Player FM - Internet Radio Done Right
28 subscribers
Checked 2d ago
Toegevoegd tien jaar geleden
תוכן מסופק על ידי HPR Volunteer and Hacker Public Radio. כל תוכן הפודקאסטים כולל פרקים, גרפיקה ותיאורי פודקאסטים מועלים ומסופקים ישירות על ידי HPR Volunteer and Hacker Public Radio או שותף פלטפורמת הפודקאסט שלהם. אם אתה מאמין שמישהו משתמש ביצירה שלך המוגנת בזכויות יוצרים ללא רשותך, אתה יכול לעקוב אחר התהליך המתואר כאן https://he.player.fm/legal.
Player FM - אפליקציית פודקאסט
התחל במצב לא מקוון עם האפליקציה Player FM !
התחל במצב לא מקוון עם האפליקציה Player FM !
פודקאסטים ששווה להאזין
בחסות
A
Accidental CEO Podcast


1 72: If You Want to Grow—Stop Fixing the Wrong Problem 16:32
16:32
הפעל מאוחר יותר
הפעל מאוחר יותר
רשימות
לייק
אהבתי16:32
You’re busy—but are you actually growing? In this episode, Nata Salvatori exposes a trap that’s costing service providers time, money, and sanity: chasing busywork that feels productive but doesn’t move the needle. She walks through a clear, five-step growth path—from clarifying your offer, validating through real sales, delivering sustainably, building repeatable systems, to scaling confidently. You’ll learn: How to spot and ditch “fake work” Why clarity beats complexity every time How to use real feedback to validate your offers Delivery tips that prevent burnout System creation that enables scaling How to honor your current phase of growth 📌 Ready to stop spinning your wheels and make real moves? Map your phase, pick your next action, and don’t be afraid to ask for help: 👉 accidentalceo.co/coaching Support the show…
HPR4372: The power of GNU Readline - part 4
Manage episode 480802485 series 108988
תוכן מסופק על ידי HPR Volunteer and Hacker Public Radio. כל תוכן הפודקאסטים כולל פרקים, גרפיקה ותיאורי פודקאסטים מועלים ומסופקים ישירות על ידי HPR Volunteer and Hacker Public Radio או שותף פלטפורמת הפודקאסט שלהם. אם אתה מאמין שמישהו משתמש ביצירה שלך המוגנת בזכויות יוצרים ללא רשותך, אתה יכול לעקוב אחר התהליך המתואר כאן https://he.player.fm/legal.
Prerequisites are: Novice level. Backup(s) of ALL your data. Confirm backup data works as desired. Intermediate/Experienced level. Understanding of *unix operating system. Terminal use (without the need to immediately restore from backups) . Expert Level. How to exit vim. Resources In-Depth Series: GNU Readline (by Dave Morriss). https://hackerpublicradio.org/series/0102.html GNU Readline Library. https://tiswww.cwru.edu/php/chet/readline/rluserman.html It's too dangerous to go alone; take these (blessed configs). https://github.com/sgoti-gpg/blessed-configs .inputrc: VI experience in the shell. https://deut-erium.github.io/2024/01/28/inputrc.html
…
continue reading
4445 פרקים
Manage episode 480802485 series 108988
תוכן מסופק על ידי HPR Volunteer and Hacker Public Radio. כל תוכן הפודקאסטים כולל פרקים, גרפיקה ותיאורי פודקאסטים מועלים ומסופקים ישירות על ידי HPR Volunteer and Hacker Public Radio או שותף פלטפורמת הפודקאסט שלהם. אם אתה מאמין שמישהו משתמש ביצירה שלך המוגנת בזכויות יוצרים ללא רשותך, אתה יכול לעקוב אחר התהליך המתואר כאן https://he.player.fm/legal.
Prerequisites are: Novice level. Backup(s) of ALL your data. Confirm backup data works as desired. Intermediate/Experienced level. Understanding of *unix operating system. Terminal use (without the need to immediately restore from backups) . Expert Level. How to exit vim. Resources In-Depth Series: GNU Readline (by Dave Morriss). https://hackerpublicradio.org/series/0102.html GNU Readline Library. https://tiswww.cwru.edu/php/chet/readline/rluserman.html It's too dangerous to go alone; take these (blessed configs). https://github.com/sgoti-gpg/blessed-configs .inputrc: VI experience in the shell. https://deut-erium.github.io/2024/01/28/inputrc.html
…
continue reading
4445 פרקים
כל הפרקים
×This show has been flagged as Clean by the host. In our first look at the game mechanics for Civilization V we start with Cities and Citizen Management, then look a Social Policies. Links: https://www.palain.com/gaming/civilization-v/playing-civilization-v-part-1/ Provide feedback on this episode .
This show has been flagged as Explicit by the host. Elsbeth talks about her passion for crochet and other hand crafts, and reflects on the marketing and selling of these items, leading her to think about different forms of trade, even in the context of software production. She steps through setting up an online shop on Etsy. Crochet - a process of creating textiles by using a crochet hook to interlock loops of yarn, thread, or strands of other materials. - https://en.wikipedia.org/wiki/Crochet Barter - a system of exchange in which participants in a transaction directly exchange goods or services for other goods or services without using a medium of exchange, such as money - https://en.wikipedia.org/wiki/Barter Open-source bounty - a monetary reward for completing a task in an open-source software project - https://en.wikipedia.org/wiki/Open-source_bounty Bug bounty program - a deal offered by many websites, organizations, and software developers by which individuals can receive recognition and compensation for reporting bugs, especially those pertaining to security vulnerabilities - https://en.wikipedia.org/wiki/Bug_bounty_program Gitcoin - one initiative supporting the development of open source projects and monetizing open source software through bounties - https://www.gitcoin.co/program Etsy, Inc. is an American e-commerce company with an emphasis on the selling of handmade or vintage items and craft supplies. - https://en.wikipedia.org/wiki/Etsy - https://www.etsy.com Explicit content notice solely for possible language Provide feedback on this episode .…
This show has been flagged as Clean by the host. I like to download video files from the Internet, and I have faced annoying problem: Broken or missing AVI indexes. My initial search for a solution was turning up paid software, but I persisted and found a nice open source solution using our old friend ffmeg. The command to use on the command line is: ffmpeg -i input.avi -c copy output.avi I found this to be very quick and easy, and I got the new output file in seconds. Links https://superuser.com/questions/4570/how-can-i-repair-a-broken-avi-file https://www.palain.com/ Provide feedback on this episode .…
This show has been flagged as Clean by the host. Hi. My name is Moss Bliss, and this is Hacker Public Radio. This is my 3rd HPR solo podcast, and you can also hear me on mintCast and Full Circle Weekly News most weeks. I watch TV via streaming on a Lenovo ThinkCentre M700 Tiny . I change streams and services using a wireless keyboard, from my recliner across the room. For a couple years, I was using a Logitech K400r, and it worked pretty well. Good keys, nice touchpad, a couple of extra features. It was kind of flimsy though, with lots of flex and keys popping off from time to time -- not so much of a problem as they popped back on well -- and then the plastic on-off slider just wore out. It had a raised strip on the plastic slider which served as something to grab with a nail, and it just eventually wore down. So I went looking for something perhaps a bit sturdier. What I found was a Rii Model K22 . The box had some different numbers in addition to that, and the label on the keyboard also had other numbers, but the best way to find it is to look for the K22. It was a solid, mostly metal, keyboard, so I bought it. No flex to speak of, and the keys are made to not pop off. There are some caveats. The volume up-down and mute buttons are part of the touchpad, not physical buttons, and are not lighted. In a dark room, with a black keyboard and touchpad, it can be easy to hit the wrong area of the touchpad. Also, I have yet to get the scroll feature -- supposedly the right side of the touchpad -- to work properly, but most of the time I can scroll with two fingers on the touchpad. Also, and I have no clue why, it sometimes brings up a menu I've never seen before getting this keyboard. Yes, it's pretty easy to make it go away, but still... Unlike the K400r, the K22 has a rechargeable battery built in, and charges via USB-C. Also, the touchpad is significantly larger than that of the K400r. I have had no problems with touchpad's responsiveness, other than the issues already mentioned. I'm not really very good with touchpads, so perhaps I just haven't learned the features. I paid $18 at Walmart for the K400r, although currently on Amazon it is going for $39.89 with a cheaper model for $19.99. The cheaper model has fewer buttons and a few cutbacks on design features. The K400r has a 4.2 star rating, with 67% 5-star and 16% 4-star. The Amazon AI reports, "Customers find the keyboard functional and easy to use. They appreciate its responsive keys and convenient setup. Many find it a good value for the price, lightweight, and convenient to use from the couch. However, opinions differ on the size and touchpad responsiveness." The Logitech is wifi only, but it does come with the ubiquitous Logitech wifi dongle. The Rii K22 is currently $24.99, minus a 15% coupon as of this writing. It has a 3.9 star rating, with 56% 5-star and 15% 4-star. Amazon's AI reports, "Customers find the keyboard works well on all devices and has a responsive touchpad. They appreciate its compact size and good build quality. However, some customers have reported issues with missing keystrokes and keypad malfunctions. There are mixed opinions on the touchpad, battery life, and typing experience." The Rii keyboard can use wifi or Bluetooth easily, and comes with a wifi dongle. While I'm a touch typist, I don't use this keyboard for typing, so I can't comment on its missing keystrokes. I'm sure there are use cases where the Rii K22 would not be the best fit, but for my use, it is a huge step up from the K400r. The build quality and materials alone make it perfect for my use, where I sit in my recliner and use it to maneuver my browser and streams, and then toss it in the corner when I'm done. If you have a need for a wireless keyboard, I hope you will look at the Rii K22. But that's it for me this time. Thank you for listening, and I hope to be back soon. Provide feedback on this episode .…
This show has been flagged as Clean by the host. TuxJam co-host Kevie goes over the command line applications that he currently uses, January 2025 at the time of recording. These include: mpg123 - Playing audio streams ffmpeg - Recording audio streams MOC - Music player Lynx - browser Mutt - email client Neofetch - System information Weechat - IRC client Provide feedback on this episode .…
This show has been flagged as Clean by the host. About Linux Matters Join 3 experienced Open Source professionals as they discuss the impact Linux has in their daily lives. Upbeat family-friendly banter, conversation and discussion for Linux enthusiasts and casual observers of all ages. A new episode every two weeks covering terminal productivity, desktop experience, development, gaming, hosting, hardware, community, cloud-native and all the Linux Matters that matter. Links Website: https://linuxmatters.sh/ License: Creative Commons Attribution-NonCommercial 4.0 International license. RSS: https://linuxmatters.sh/episode/index.xml Provide feedback on this episode .…
This show has been flagged as Clean by the host. Hello, this is your host, Archer72 for another episode of Hacker Public Radio In this episode, I talk about how I use Newsboat and Podboat for a couple of tasks. I don’t always use Podboat for podcasts, but it is useful when listening from my laptop For my other podcast listening, I used Antennapod Newsboat source of feeds is from a url list in ~/.config/newsboat/urls Newsboat url list # (Bible) https://feeds.feedburner.com/hl-int-tv-en-kjv "Bible" (Bible) # (Reddit) https://www.reddit.com/r/commandline.rss "Commandline" (Reddit) https://www.reddit.com/r/raspberry_pi.rss "~Raspberry Pi" (Reddit) # (Lemmy) https://lemmy.sdf.org/feeds/local.xml?sort=New "Lemmy SDF" (Lemmy) # (Podcasts) http://gnuworldorder.info/ogg.xml "Gnu_World_Order" # Tuxjam.Otherside.Network https://tuxjam.otherside.network/feed "TuxJam" https://tuxjam.otherside.network/feed/uncut "TuxJam Uncut" https://thebugcast.org/category/podcast/feed "The Bugcast" # Hacker Public Radio http://hackerpublicradio.org/rss-future.php HackerPublicRadio_future_feed "~Hacker Public Radio ~ Future feed" (HPR) http://hackerpublicradio.org/hpr_ogg_rss.php "HPR_two_week_feed" (HPR) http://hackerpublicradio.org/comments_rss.php HPR_comment_feed "HPR_Comments" (HPR) https://archive.org/services/collection-rss.php?collection=dlarc-hackerpublicradio "~HPR Amateur Radio - Archive.org" (HPR) # Other Tech podcasts https://feeds.fireside.fm/asknoah/rss "The Ask Noah Show" https://feeds.feedburner.com/urandom-podcast/ogg "Urandom Podcast" https://ubuntu.social/@linuxmatters # (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "Luke Smith" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCH6ttJZ3T5gA-r_7PYkHk9g "SGOTI" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg "DistroTube" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UC9x0AN7BWHpCDHSm9NiJFJQ "Network Chuck" (Youtube) # Import from Newpipe https://www.youtube.com/feeds/videos.xml?channel_id=UC_SLthyNX_ivd-dmsFgmJVg "Jeremy Fielding" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCJ0-OtVpF0wOKEqT2Z1HEtA "ElectroBOOM" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCv1Kcz-CuGM6mxzL3B1_Eiw "Gardiner Bryant" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UC3s0BtrBJpwNDaflRSoiieQ "Hak5" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCR-DXc1voovS8nhAvccRZhg "Jeff Geerling" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCzgA9CBrIXPtkB2yNTTiy1w "Level 2 Jeff" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCLx053rWZxCiYWsBETgdKrQ "LGR" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw "Linus Tech Tips" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCm9K6rby98W8JigLoZOh6FQ "LockPickingLawyer" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCjFaPUcJU1vwk193mnW_w1w "Modern Vintage Gamer" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCP8QhVVoM7IKD0YwnvnPPbg "Pater Practicus" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCjr2bPAyPV7t35MvcgT3W8Q "The Hated One" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCo71RUe6DX4w-Vd47rFLXPg "typecraft" (Youtube) ## From Mrs. Archer https://www.youtube.com/feeds/videos.xml?channel_id=UCld68syR8Wi-GY_n4CaoJGA "Brodie Robertson" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCg6gPGh8HU2U01vaFCAsvmQ "Chris Titus Tech" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCoryWpk4QVYKFCJul9KBdyw "Switched To Linux" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCJf7AT2BzFT-31z0d-bc8Rg "Windows, computers and Technology" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UC5UAwBUum7CPN5buc-_N1Fw "The Linux Experiment" (Youtube) https://www.youtube.com/feeds/videos.xml?channel_id=UCmyGZ0689ODyReHw3rsKLtQ "Michael Tunnell" (Youtube) # (News) https://olfconference.org/feed/ "OLF Conference" (News) To organize the url list, tags can be used, along with a description of the feed. This only give an internal description, as the Main title is determined by the RSS feed itself. This can be manually set, for example, in the HPR Future feed. The default feed title is the same as the feed for two weeks. To set manually, us a tilde ~ before the Feed Title shown in this example. Tags follow the Feed Title, typed in parentheses and with no spaces. Multiple tags can be used here. http://hackerpublicradio.org/rss-future.php HackerPublicRadio_future_feed "~Hacker Public Radio ~ Future feed" (HPR) Not all feeds in the url list are podcasts. Some are Reddit feeds, while others are youtube channels. The first item I go to in the morning is my Bible daily verse. I heard one new host mention that he reads some, and thought it might be interesting to include this. The next 2 entries are from Reddit, and can be modified to contain the rss feed in this way: Replace the /r/commandline with /r/commandline.rss add "Title" and "(Tag)" https://www.reddit.com/r/commandline.rss "Commandline" (Reddit) The next entry, which I only include one, is the Lemmy instance for lemmy.sdf.org Lemmy is part of the Fediverse, and became popular after the June 2023 controversy involving charging excessive money for Reddit’s API. This in turn, caused third party Reddit apps to be no longer viable. Alternativeto.net - API Charging Policy Wikipedia - Lemmy_(social_network) Next, we’ll start on the ~/.config/newsboat/config file Newsboat config file # Podboat download-path "~/Downloads/podcasts/%h/%n" # %h - Hostname # %n - Podcast name # Example: hub.hackerpublicradio.org # gnuworldorder.info # media.blubrry.com/The Bugcast # archive.org/TuxJam download-filename-format "%n - %t.%u" # %n - Name of the podcast feed # %t - Title of the podcast episode # %u - Indicates the file extension podlist-format "%4i [%6dMB/%6tMB] [%5p %%] %-10S %b" # Table 7. Available Identifiers for podlist-format # %i - Download index, 4 indicating number of digits # %6dMB/%6tMB - Downloaded (in MB) / Total file size (in MB) # [%5p %%] - Percent downloaded # %-10S - Status - {queued, downloading, ready, played, deleted} # # 4.18. Format Strings # %b - Boolean string # load URLS on launch auto-reload yes # vim binds bind-key j down bind-key k up bind-key j next articlelist bind-key k prev articlelist bind-key J next-feed articlelist bind-key K prev-feed articlelist bind-key G end bind-key g home # bind-key d pagedown - default bind-key D pagedown bind-key u pageup bind-key l open bind-key h quit bind-key a toggle-article-read bind-key n next-unread bind-key N prev-unread # bind-key D pb-download - default bind-key d pb-download bind-key U show-urls bind-key x pb-delete # Colors highlight article "^Feed:.*" color5 color0 highlight article "^Title:.*" color3 color0 bold highlight article "^Author:.*" color2 color0 highlight article "^Date:.*" color223 color0 highlight article "^Link:.*" color4 color0 highlight article "^Flags:.*" color9 color0 highlight article "\\[[0-9][0-9]*\\]" color66 default bold highlight article "\\[image [0-9][0-9]*\\]" color109 default bold color listnormal cyan default color listfocus black yellow standout bold color listnormal_unread cyan default color listfocus_unread yellow default bold color info red black bold color article cyan default # macro setup browser linkhandler macro , open-in-browser # download-path ~/.newsboat/queue player "mpv --vid=no" macro 1 set browser "mpv --vid=no"; one; set browser lynx # launch video player macro v set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler # download video macro d set browser "yt-dlp"; open-in-browser ; set browser linkhandler # download audio only macro a set browser "yt-dlp --embed-metadata -xic -f bestaudio/best" ; open-in-browser ; set browser linkhandler When enqueing a podcast for Podboat, I changed the default download path to ~/Downloads/podcasts/ using download-path "~/Downloads/podcasts/%h/%n" Where %h is the Hostname, and %n is the Podcast name The file name is formatted in the following way %n - %t.%u Where %n is the podcast name, %t is the podcast title and %u indicates the file extension Finally, there is a custom line for podlist-format which for podcast purposes I won’t list out. This includes a Download index to 4 places, percentage of each podcast downloaded, and Podcast status When I use Podboat, after the set of podcasts are enqued I found a way to monitor the bluetooth connection, in order to pause a show with the bluetooth button on an earbud. The first part of this puzzle is to have mpris-proxy , which is included in the bluez-utils Archwiki - MPRIS Then enable the service with systemctl --user enable mpris-proxy.service and systemctl --user start mpris-proxy.service After that, git clone https://github.com/hoyon/mpv-mpris.git from Github - hoyon/mpv-mpris cd mpv-mpris and make , with the resulting mpris.so copied to ~/.config/mpv/scripts/ Newsboat documentation Newsboat Documentation page Format strings Newsboat Documentation page - Format Strings Provide feedback on this episode .…
This show has been flagged as Clean by the host. I am subscribed to a number of YouTube channels, and I am sharing them with you. Links: https://www.youtube.com/@BackToSpace https://www.youtube.com/@bakerstreetjournal1642 https://www.youtube.com/@BBCEarthExplore https://www.youtube.com/@besmart https://www.youtube.com/@BeyondTheSofa https://www.youtube.com/@BillBruford https://www.youtube.com/@BizarreBeasts https://www.youtube.com/@boesthius https://www.youtube.com/@braincraft https://www.youtube.com/@BreakRoomofGeeks https://www.youtube.com/@briantylercohen https://www.youtube.com/@ButterflySpanish https://www.youtube.com/@cab801 https://www.youtube.com/@candyrat https://www.youtube.com/@carcareclues https://www.youtube.com/@carhelpcorner https://www.palain.com/ Provide feedback on this episode .…
This show has been flagged as Clean by the host. Where oxo answers some of the questions about hajime oxo/hajime - Codeberg.org hajime/prep/make-recov at main - oxo/hajime - Codeberg.org hajime/prep/isolatest at main - oxo/hajime - Codeberg.org Provide feedback on this episode .
This show has been flagged as Explicit by the host. From Wikipedia - https://en.wikipedia.org/wiki/Content_moderation "On websites that allow users to create content, content moderation is the process of detecting contributions that are irrelevant, obscene, illegal, harmful, or insulting. The purpose of content moderation is to remove or apply a warning label to problematic content or allow users to block and filter content themselves." Facebook Community Standards - https://transparency.meta.com/en-gb/policies/community-standards/ TikTok Community Guidelines - https://www.tiktok.com/community-guidelines/en Provide feedback on this episode .…
This is a further look at the stories of the First Doctor, portrayed by William Hartnell, during the 1960s Links: https://en.wikipedia.org/wiki/Planet_of_Giants https://en.wikipedia.org/wiki/The_Dalek_Invasion_of_Earth https://en.wikipedia.org/wiki/The_Rescue_(Doctor_Who) https://en.wikipedia.org/wiki/The_Romans_(Doctor_Who) https://en.wikipedia.org/wiki/The_Web_Planet https://en.wikipedia.org/wiki/The_Crusade_(Doctor_Who) https://www.palain.com/science-fiction/intro-to-doctor-who/the-first-doctor-part-2/…
I am subscribed to a number of YouTube channels, and I am sharing them with you. Links: https://www.youtube.com/@2LegsAPaulMcCartneyPodcast https://www.youtube.com/@AdamNeely https://www.youtube.com/@AlReviewsWho https://www.youtube.com/@AlternateHistoryHub https://www.youtube.com/@amawaterways https://www.youtube.com/@theSpaceVixen https://www.youtube.com/channel/UC1AtM-B9YZTSoMcKt1yDieg https://www.youtube.com/@TheRealAndyMcKee https://www.youtube.com/channel/UCxgAH7EcmKhC9bLm7xQ971g https://www.youtube.com/@ApartmentSessions https://www.youtube.com/@arthurc.clarkecenterforhum6745 https://www.youtube.com/@associationofirishcelticfe4447 https://www.palain.com/…
TuxJam co-host Kevie goes over the desktop applications that he currently uses, January 2025 at the time of recording. These include: Peazip Lutris GIMP Inkscape Tuba Mumble Telegram Calibre PDF Arranger Bluefish Editor Easytag Goodvibes OBS Studio Openshot Reco Audacity
Overview Several years ago I wrote a Bash script to perform a task I need to perform almost every day - find the newest file in a series of files. At this point I was running a camera on a Raspberry Pi which was attached to a window and viewed my back garden. I was taking a picture every 15 minutes, giving them names containing the date and time, and storing them in a directory. It was useful to be able to display the latest picture. Since then, I have found that searching for newest files useful in many contexts: Find the image generated by my random recipe chooser, put in the clipboard and send it to the Telegram channel for my family. Generate a weather report from wttr.in and send it to Matrix. Find the screenshot I just made and put it in the clipboard. Of course, I could just use the same name when writing these various files, rather than accumulating several, but I often want to look back through such collections. If I am concerned about such files accumulating in an unwanted way I write cron scripts which run every day and delete the oldest ones. Original script The first iteration of the script was actually written as a Bash function which was loaded at login time. The function is called newest_matching_file and it takes two arguments: A file glob expression to match the file I am looking for. An optional directory to look for the file. If this is omitted, then the current directory will be used. The first version of this function was a bit awkward since it used a for loop to scan the directory, using the glob pattern to find the file. Since Bash glob pattern searches will return the search pattern when they fail, it was necessary to use the nullglob (see references) option to prevent this, turning it on before the search and off afterwards. This technique was replaced later with a pipeline using the find command. Improved Bash script The version using find is what I will explain here. function newest_matching_file { local glob_pattern=${1-} local dir=${2:-$PWD} # Argument number check if [[ $# -eq 0 || $# -gt 2 ]]; then echo 'Usage: newest_matching_file GLOB_PATTERN [DIR]' >&2 return 1 fi # Check the target directory if [[ ! -d $dir ]]; then echo "Unable to find directory $dir" >&2 return 1 fi local newest_file # shellcheck disable=SC2016 newest_file=$(find "$dir" -maxdepth 1 -name "$glob_pattern" \ -type f -printf "%T@ %p\n" | sort | sed -ne '${s/.\+ //;p}') # Use printf instead of echo in case the file name begins with '-' [[ -n $newest_file ]] && printf '%s\n' "$newest_file" return 0 } The function is in the file newest_matching_file_1.sh , and it's loaded ("sourced", or declared) like this: . newest_matching_file_1.sh The '.' is a short-hand version of the command source . I actually have two versions of this function, with the second one using a regular expression, which the find command is able to search with, but I prefer this one. Explanation The first two lines beginning with local define variables local to the function holding the arguments. The first, glob_pattern is expected to contain some…
New hosts There were no new hosts this month. Last Month's Shows Id Day Date Title Host 4391 Mon 2025-06-02 HPR Community News for May 2025 HPR Volunteers 4392 Tue 2025-06-03 The Water is Wide, and the sheet music should be too Jezra 4393 Wed 2025-06-04 Journal like you mean it. Some Guy On The Internet 4394 Thu 2025-06-05 Digital Steganography Intro mightbemike 4395 Fri 2025-06-06 Second Life Lee 4396 Mon 2025-06-09 AI and Sangria operat0r 4397 Tue 2025-06-10 Transfer files from desktop to phone with qrcp Klaatu 4398 Wed 2025-06-11 Command line fun: downloading a podcast Kevie 4399 Thu 2025-06-12 gpg-gen-key oxo 4400 Fri 2025-06-13…
ברוכים הבאים אל Player FM!
Player FM סורק את האינטרנט עבור פודקאסטים באיכות גבוהה בשבילכם כדי שתהנו מהם כרגע. זה יישום הפודקאסט הטוב ביותר והוא עובד על אנדרואיד, iPhone ואינטרנט. הירשמו לסנכרון מנויים במכשירים שונים.