How to Get the Older Style MacOS Alert Dialog Back

MacOS Monterey and MacOS Big Sur introduced a new style to the MacOS alert dialog boxes, which look more like something you’d see in iOS than MacOS. … If you’d like to return to the older traditional style of MacOS alert dialog boxes and windows, you can do so with the help of a defaults write command.

Source: How to Get the Older Style MacOS Alert Dialog Back (OSXDaily)

Ramdisks: Why You Might Enjoy One, Plus a Performance Puzzler

A ramdisk – or if you prefer, RAMdisk – is a method of taking a section of memory and treating it as disk.  If you think about it for a moment, the pros/cons should be obvious: RAM is much faster than even the fastest disk, so operations on the ramdisk are much faster…

Source: Ramdisks: Why You Might Enjoy One, Plus a Performance Puzzler – LowEndBox

How to use the scp Command in Linux

SCP is short for secure copy protocol and is used to copy files and directories between multiple Linux machines over a network. The data transferred using SCP is encrypted to protect your data against nefarious agents.

The SCP command uses SSH for data transfer and thus uses all the same usernames and passwords you would use for SSH. As a result, it is an extremely useful command for transferring files securely without too much added complexity.

Source: How to use the scp Command in Linux – Pi My Life Up

Here Today, Gone When You Exit: Proper Tempfiles in Shell Scripts

In the course of my career, I’ve periodically come across code like this in shell scripts:

TEMP_FILE=/tmp/tempfile

Or sometimes, slightly more elegantly:

TEMPFILE=/tmp/tempfile.$$

The problems with the first example are obvious, especially if it appears in many different scripts. The second is better. The “$$” means “my process ID”, who if whatever script had a process ID of 5309, the TEMPFILE variable would be set to /tmp/tempfile.5309. This makes collisions between scripts extremely unlikely, but is still suboptimal. What if there is a file called /tmp/tempfile.5309 and it’s owned by another user, or what if you don’t have permission to write to /tmp? It’d be better to find out immediately than many lines later when you try to write something. …

Source: Here Today, Gone When You Exit: Proper Tempfiles in Shell Scripts – LowEndBox

Raspberry Pi And The Story Of SD Card Corruption

Tales of Raspberry Pi SD card corruption are available online by the fistful, and are definitely a constant in Pi-adjacent communities. It’s apparent that some kind of problems tend to arise when a Raspberry Pi meets an SD card – which sounds quite ironic, since an SD card is the official and recommended way of booting a Pi. What is up with all of that?

Source: Raspberry Pi And The Story Of SD Card Corruption | Hackaday

How to use the cp Command

The cp command is ideal for copying files and directories on a Linux or Unix distribution. You will likely not need to use additional options for most tasks as the basic command will achieve most requirements.

This tutorial will take you through several use cases for using cp on a Linux distribution. For example, we cover copying single files, copying multiple files and directories, setting backups, copying recursively, and much more.

Source: How to use the cp Command – Pi My Life Up

5 Modern Bash Scripting Techniques That Only A Few Programmers Know

The following concepts modernize your automation scripts with some lesser-known modern Bash scripting techniques.

Source: 5 Modern Bash Scripting Techniques That Only A Few Programmers Know | Level Up Coding

Physicists Build Circuit That Generates Clean, Limitless Power From Graphene

If this turns out to be capable of generating enough current to keep a phone charged, that’s a big deal. If enough of these packaged together can run a small computer such as a Raspberry Pi, that’s a REALLY big deal. And if you could package enough of these together in a small enough area to run an electric vehicle, then life as we know it may be about to change! Let’s hope there not some unforeseen drawback to this – for example, do these only work for a short amount of time before needing replacement? Are they terribly costly to make in quantity? I just really hope this turns out to have practical use in consumer grade equipment. But also, if that’s the case, I hope this is not just another of those inventions that could change the world but that seemingly disappears into oblivion shortly after being announced.

FAYETTEVILLE, Ark. – A team of University of Arkansas physicists has successfully developed a circuit capable of capturing graphene’s thermal motion and converting it into an electrical current.

“An energy-harvesting circuit based on graphene could be incorporated into a chip to provide clean, limitless, low-voltage power for small devices or sensors,” said Paul Thibado, professor of physics and lead researcher in the discovery.

Source: Physicists Build Circuit That Generates Clean, Limitless Power From Graphene (University of Arkansas)

UPDATES:
The Power of Motion; Harvesting Energy from Freestanding Graphene
The Power of Motion: Physicist Paul Thibado Updates Listeners of ‘Short Talks’ About His Work

Recent Posts

Recent Comments

Archives

Categories

Meta

GiottoPress by Enrique Chavez

%d bloggers like this: