Log in

goodpods headphones icon

To access all our features

Open the Goodpods app
Close icon
headphones
Hacker Public Radio

Hacker Public Radio

Hacker Public Radio

Hacker Public Radio is an podcast that releases shows every weekday Monday through Friday. Our shows are produced by the community (you) and can be on any topic that are of interest to hackers and hobbyists.
Share icon

All episodes

Best episodes

Top 10 Hacker Public Radio Episodes

Goodpods has curated a list of the 10 best Hacker Public Radio episodes, ranked by the number of listens and likes each episode have garnered from our listeners. If you are listening to Hacker Public Radio for the first time, there's no better place to start than with one of these standout episodes. If you are a fan of the show, vote for your favorite Hacker Public Radio episode by adding your comments to the episode page.

Hacker Public Radio - HPR3584: The collective history of RAID controller brands
play

04/28/22 • -1 min

The market segment of RAID adapters has a long history and tradition, and has undergone gradual concentration, followed by upstream mergers of the owning corporations - a feeding frenzy of sorts, among the semiconductor manufacturers.

http://support.fccps.cz/industry/RAID_history/index.htm

bookmark
plus icon
share episode
Hacker Public Radio - HPR3722: Bash snippet - plurals in messages
play

11/08/22 • -1 min

Overview

Have you ever written a Bash script (or any shell script) where you generate a message like 'Found 42 files' and the day comes when it reports 'Found 1 files'?

Have you been irritated by this? I have, and I go to lengths to deal properly with (English) plurals in my Bash scripts.

Method 1

The simplest solution would be to use an 'if' statement:

if [[ $fcount -eq 1 ]]; then echo "Found 1 file" else echo "Found $fcount files" fi

This works, but to have to do it for every message would be a pain!

Method 2

The next approach to this problem might be to write a Bash function.

pluralise () { local singular="${1}" local plural="${2}" local count="${3}" if [[ $count -eq 1 ]]; then echo "$singular" else echo "$plural" fi }

This can be called as follows:

$ i=1; echo "Found $i $(pluralise "file" "files" $i)" Found 1 file $ i=42; echo "Found $i $(pluralise "file" "files" $i)" Found 42 files

The string being displayed with echo contains a command substitution ('$(command)') which returns 'file' or 'files' depending on the value given.

The first two arguments can be more complex than plain strings:

$ i=1; echo "There $(pluralise "is 1 light" "are $i lights" $i)" There is 1 light $ i=4; echo "There $(pluralise "is 1 light" "are $i lights" $i)" There are 4 lights

The pluralise function is available for download.

Method 3

The GNU project has developed a set of utilities called the GNU gettext utilities consisting of tools and documentation for translation. This is a large subject which is not suitable for a short HPR episode such as this one.

Among the tools is 'ngettext' which performs the function we have been discussing - choosing among plural forms. It also implements translations if desired (and translation files are provided as part of the software being developed).

We will not discuss the translation topic here, but the choice of plurals is something that can be used in Bash scripts.

The 'ngettext' tool takes three mandatory parameters:

  • MSGID - the singular form of the text
  • MSGID-PLURAL - the plural form of the text
  • COUNT - the value used to make the singular/plural choice

There are other optional parameters and options but they are not relevant here.

The tool can be used in exactly the same way as the 'pluralise' example above.

$ i=1; echo "There $(ngettext "is 1 light" "are $i lights" $i)" There is 1 light $ i=4; echo "There $(ngettext "is 1 light" "are $i lights" $i)" There are 4 lights

Whether you use this or a Bash function is your choice.

Conclusion

I have been using ngettext in my scripts since I discovered it. If you also need to provide messages in your projects in other languages then this might be a good idea.

I admit that my understanding of the GNU gettext project is superficial, so, on reflection it might be better to use a Bash function, since I don’t currently need all of the features GNU gettext provides.

Links

bookmark
plus icon
share episode
Hacker Public Radio - HPR4098: Road trips without GPS
play

04/17/24 • -1 min

This was an unscheduled recording I made after my GPS failed part way into a long cross country trip. I did not make any notes. :(

Effectively, this is a "Back in my day" old man rant.

bookmark
plus icon
share episode
Hacker Public Radio - HPR3987: The Grim Dawn

HPR3987: The Grim Dawn

Hacker Public Radio

play

11/14/23 • -1 min

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

bookmark
plus icon
share episode
Hacker Public Radio - HPR3858: The Oh No! News.

HPR3858: The Oh No! News.

Hacker Public Radio

play

05/17/23 • -1 min

The Oh No! news.Oh No! News is Good News.

  • Threat analysis; your attack surface.
  • Article: For-Profit Companies Charging Sextortion Victims for Assistance and Using Deceptive Tactics to Elicit Payments.
    • Author: FBI Internet Crime Complaint Center. (2023, Apr 7).
    • The companies use deceptive tactics—including threats, manipulation, and providing false information—to coerce sextortion victims into paying for their services. Some of the services for which the companies charge fees, such as sending the perpetrators cease and desist orders, make victims feel better but are not legally enforceable. The companies may also attempt to discourage victims from reporting the sextortion to law enforcement. Limited reporting indicates the companies are directly or indirectly involved in the sextortion activity.
  • Article: Former Ubiquiti dev who extorted the firm gets six years in prison.
    • Author: Bill Toulas. (2023, May 11).
    • Nickolas Sharp, a former senior developer of Ubiquiti, was sentenced to six years in prison for stealing company data, attempting to extort his employer, and aiding the publication of misleading news articles that severely impacted the firm's market capitalization.
  • Article: Toyota: Car location data of 2 million customers exposed for ten years.
    • Author: Bill Toulas. (2023, May 12).
    • Toyota Motor Corporation disclosed a data breach on its cloud environment that exposed the car-location information of 2,150,000 customers for ten years, between November 6, 2013, and April 17, 2023.
  • Article: Failure to comply with Bus Open Data regulations leads to financial penalty for operator.
    • Author: Traffic Commissioners for Great Britain. (2023, May 4).
    • The Traffic Commissioner for the West Midlands, Miles Dorrington, imposed a financial penalty under section 155 of the Transport Act 2000 of £1500, based on a £100 penalty for each of the vehicles authorised on the operator’s licence.
  • Article: Criminals Pose as Chinese Authorities to Target US-based Chinese Community.
    • Author: FBI Internet Crime Complaint Center. (2023, Apr 10).
    • The FBI warns of criminal actors posing as Chinese law enforcement officials or prosecutors in financial fraud schemes targeting the US-based Chinese community. Criminals tell victims they are suspects in financial crimes and threaten them with arrest or violence if they do not pay the criminals. Criminals exploit widely publicized efforts by the People’s Republic of China government to harass and facilitate repatriation of individuals living in the United States to build plausibility for their fraud. Criminals typically call victims, sometimes using spoofed numbers to appear as if the call is from the Chinese Ministry of Public Security, one of its localized Public Security Bureaus, or a US-based Chinese Consulate. Criminals may also communicate through online applications.

bookmark
plus icon
share episode
Hacker Public Radio - HPR4335: Responce to Antoin's H P R 4 3 1 3
play

03/14/25 • -1 min

This show has been flagged as Explicit by the host.

Response to Antoin's HPR4313 "Why I made a 1-episode podcast about a war story. "
Used https://huggingface.co/Jmica/audiobook_maker/blob/main/audiobook_maker_v3.0.zip with trained model of NOT Jenna Ortega :P

Provide feedback on this episode.

bookmark
plus icon
share episode
Hacker Public Radio - HPR4015: Value of life, part 0.
play

12/22/23 • -1 min

Value of life, part 0.

Wear your secret hat. Sgoti talks about putting a dollar value on a human life.

  • Source: Value of life
    • The value of life is an economic value used to quantify the benefit of avoiding a fatality. It is also referred to as the cost of life, value of preventing a fatality (VPF), implied cost of averting a fatality (ICAF), and value of a statistical life (VSL).
  • Supporting Source: Cost-benefit analysis
    • Cost-benefit analysis (CBA), sometimes also called benefit-cost analysis, is a systematic approach to estimating the strengths and weaknesses of alternatives. It is used to determine options which provide the best approach to achieving benefits while preserving savings in, for example, transactions, activities, and functional business requirements.
  • Source: Social Credit System
    • The Social Credit System is a national credit rating and blacklist being developed by the government of China. The social credit initiative calls for the establishment of a record system so that businesses, individuals and government institutions can be tracked and evaluated for trustworthiness. There are multiple forms of the social credit system being experimented with, while the national regulatory method is based on whitelisting (termed redlisting in China) and blacklisting.
  • Source: What is Body Part Insurance?
    • Insuring body parts isn't anything new in the world of celebrities, but it is a rare type of insurance that now counts athletes among its numbers. The entire point of insuring a body part is to supplement a loss of income should that body part become injured, damaged, scarred, handicapped or lost, preventing the individual from continuing to use it to generate income.
  • Source: Pre-existing condition
    • The University of Pittsburgh Medical Center defines a pre-existing condition as a "medical condition that occurred before a program of health benefits went into effect". J. James Rohack, president of the American Medical Association, has stated on a Fox News Sunday interview that exclusions, based upon these conditions, function as a form of "rationing" of health care.
  • Supporting Source: The U.S. Department of Health & Human Services
bookmark
plus icon
share episode

In the early days of computing, the computing power was kept in centralized large mainframes and users would connect to them via so called "dumb" terminals. These often provided their output through a printer and continuous feed of paper. However in 1964 UNIVAC introduced the Uniscope 300, which was one of the first terminals to provide a video monitor for display. With the introduction of this system came the introduction of several concepts that we take for granted today and they are described during the reading of this brochure.

The brochure was made available through the Computer History Museum at https://www.computerhistory.org/collections/catalog/102646317

As I mention in the episode, $15,000 USD in 1964 is worth considerably more today, according to an online inflation calculator it is now worth approximately $144,000 today. So even if that was for 48 terminals as it seems to mention in the hand written note, that might equate to about $3000 per terminal in 2023 dollars.

Here are some related links below:

bookmark
plus icon
share episode
Hacker Public Radio - HPR3864: 2022-2023 New Years Show Episode 8
play

05/25/23 • -1 min

Episode #8

Hacker Public Radio - HPR3894: The Page 42 Show: Ugly News Week, Show's Epoch!
play

07/06/23 • -1 min

Show Notes

I'm Gage Hopper, and this is my weekly(-ish) show on FOSS news and software tinkering.

Rust Being Destroyed By Foundation Idiocy

https://www.youtube.com/watch?v=QEnuzwCWpgQ

Opera One: For the adventurous

https://betanews.com/2023/06/20/opera-one-ai-powered-browsing-tab-islands-linux-windows-macos/

  • Requires an Opera Account

Amazon Retaliates Against Luis

https://youtu.be/Kcohq313q00

  • Luis Rossmann has been doing independent repairs for over a decade

Mesa 23.2 Release Speeds Up Intel Arc Cards By 11%:

https://www.tomshardware.com/news/intel-arc-driver-linux-boost

Wtf, RedHat?

https://hackaday.com/2023/06/23/et-tu-red-hat/

Kotlin Korner

Interesting things I find worth sharing about my experiences with Kotlin

My handle is @hopper_mcs over on Twitter. Ciao!

bookmark
plus icon
share episode

Show more best episodes

Toggle view more icon

FAQ

How many episodes does Hacker Public Radio have?

Hacker Public Radio currently has 842 episodes available.

What topics does Hacker Public Radio cover?

The podcast is about News, Tech News, Podcasts, Technology, Hobby, Linux and Open.

What is the most popular episode on Hacker Public Radio?

The episode title 'HPR3564: Removing EXIF data from an image' is the most popular.

How often are episodes of Hacker Public Radio released?

Episodes of Hacker Public Radio are typically released every day.

When was the first episode of Hacker Public Radio?

The first episode of Hacker Public Radio was released on Mar 21, 2022.

Show more FAQ

Toggle view more icon

Comments