petrichor
@petrichor

Just somebody on the Internet.

petrichor commented on a post by @digiterate_dingo Feb 27

Here’s a simple Python script that might do what you want:

import os

for path, folders, files in os.walk(“path/to/folder“): # replace this

> for file in files:

>> renamed = file

>> for char in [“-”, “:”]: # replace these

>>> renamed = renamed.replace(char, “”)

>> os.rename(os.path.join(path, file), os.path.join(path, renamed))

Heya everyone !

I’m looking to rename files that have problematic symboles in them. I’m using Freefilesync to copy over files and folders and some don’t work well due to file and folder names.


Any tips on how to recursively find and rename files to remove problematic ‘.‘ and whatnots ?

petrichor commented on a post by @femme Feb 14

I personally think this is a fundamental property of the universe, and that life as we know it either never would have evolved or would have evolved to use something like this as a source of energy.

Even something as complicated as nuclear fission can occur naturally on our very Earth. Less complicated nuclear fusion pretty much powers the whole universe, naturally providing for life in conditions where it can’t be easily formed again.

These kinds of broad, reflective articles are my absolute favorite.

Thankfully for us, humans’ most destructive technology to date – nuclear weapons – is exceedingly difficult to master. But one way to think about the possible effects of a black ball is to consider what would happen if nuclear reactions were easier. In 1933, the physicist Leo Szilard got the idea of a nuclear chain reaction. Later investigations showed that making an atomic weapon would require several kilos of plutonium or highly enriched uranium, both of which are very difficult and expensive to produce. However, imagine a counterfactual history in which Szilard realised that a nuclear bomb could be made in some easy way – over the kitchen sink, say, using a piece of glass, a metal object and a battery.

Read More
petrichor commented on a post by @rat Feb 11

There’s no real reason to drag Signal into this - the article is really about whether the feds can gain total control over your locked iPhone.

Signal has become the de facto king of secure messaging apps of late, stealing users from WhatsApp and gathering millions of others looking for private forms of communication. That means the police and governments will be wanting, more than ever, to ensure they have forensic techniques to access Signal messages. Court documents obtained by Forbes not only attest to that desire, but indicate the FBI has a way of accessing Signal texts even if they’re behind the lockscreen of an iPhone.

petrichor commented on a post by @artist Feb 2

I’ve seen this on a puzzle before. The compression doesn’t do the picture justice, it’s a phenomenally detailed watercolor painting.

Sommarnöje, Anders Zorn, 1886

Myanmar’s military says it is taking control of the country in a coup against the civilian government led by Aung San Suu Kyi, who was detained along with other National League for Democracy leaders on Monday.

The army said that power would be transferred to Commander-in-Chief Min Aung Hlaing, in a statement broadcast on military-owned television that also declared a one-year state of emergency, Reuters reported.

A legible monospace font… the very typeface you’ve been trained to recognize since childhood.

petrichor commented on a post by @tsak Jan 27

Was there a recent bug?

Leaving holier than thou comments on a 10 year old commit, when most of the commenters were probably not even alive when Todd started working on sudo. Grinds my gears!

petrichor commented on a post by @StallmanWasRight Jan 26

Or, I suspect there will be calls to monitor metadata and who’s connecting to who, which is similarly bad.

The social outrage mob must have a three-letter agency PSYOPS element, because how else do you explain them trying to get Signal or Telegram to moderate speech. They’re encrypted apps you absolute children.

If you want to moderate speech on an encrypted app, it means you’ll have to read the conversations, which means the damn encryption isn’t working to being with.

Some image previews can be a little zoomed-in in the editor.

Edit logs and other dates should be shown in the user’s local time (for reference, I edited that post at 8:21 pm on the 22nd).

Jan 23 • Updated on January 23, 2021 4:21 am • Edit History (1)

Non-Violence, Carl Fredrik Reuterswärd, 1985

Linked content can become shuffled - the Numberphile video here was linked before the 3Blue1Brown one and showed up as such in the editor.