Email or username:

Password:

Forgot your password?
822 posts total
Niki Tonsky

Just discovered in amazement that in Bash scripts, any variable named `SECONDS` will automatically increment every second. Bash is bonkers

Show previous comments
mirabilos

@Cykelero by the way, you should not define a variable in your script that’s comprised solely of uppercase letters, digits and underscore: these may be reserved by the implementation.

Environment variable names used by the utilities in the Shell and Utilities volume of POSIX.1-2024 consist solely of uppercase letters, digits, and the ('_') from the characters defined in [4]Portable Character Set and do not begin with a digit. Other characters, and byte sequences that do not form valid characters, may be permitted by an implementation; applications shall tolerate the presence of such names. Uppercase and lowercase letters shall retain their unique identities and shall not be folded together. The name space of environment variable names containing lowercase letters is reserved for applications. Applications can define any environment variables with names from this name space without modifying the behavior of the standard utilities.

(A separate location in POSIX makes this logic mostly apply to shell variables.)

So, user variables in shell scripts should always be lowercase.

@Cykelero by the way, you should not define a variable in your script that’s comprised solely of uppercase letters, digits and underscore: these may be reserved by the implementation.

Environment variable names used by the utilities in the Shell and Utilities volume of POSIX.1-2024 consist solely of uppercase letters, digits, and the ('_') from the characters defined in [4]Portable Character Set and do not begin with a digit. Other characters, and byte sequences that do not form valid characters,...

ferricoxide

@Cykelero@mas.to

Primarily working on RHEL-based (and derivative) systems, a lot of the nifty BASHisms tend to be missing because the version of BASH is typically five or more years behind current.

#Linux

Niki Tonsky

After 3 long months of A̷p̷p̷ ̷R̷e̷v̷i̷e̷w̷ Notarization, the first 3rd-party apps in AltStore PAL are here! 🥳 fosstodon.org/@altstore/112842

Thomas Möhle

@rileytestut Congratulations! Thats quite a leap forward for Altstore PAL! :)

Niki Tonsky

Still waiting for any company to implement this: obvious and unmistakable mute audio/disable video buttons

Show previous comments
­

@nikitonsky How about just having a checkbox next to an icon? 🤔

Jigme Datse

@nikitonsky Wait? You think having UI/UX that is obvious and unmistakable is desirable? What is wrong with you... Are you some weird anti-ableist freak?

hazelnot :yell:

@nikitonsky I swear this used to be a thing but then they "revamped" the UI and just made it objectively worse 💀

heapwolf

@nikitonsky have you tried turning it off and then off again?

Григорий Клюшников

Maybe you should try turning it off and on again. If that doesn't help, try reinstalling Windows.

Niki Tonsky

How to build a custom keyboard, complete from start to finish.

Now I just have to figure out what I want to improve in mine (wireless for one, of course)

youtube.com/watch?v=7UXsD7nSfD

Григорий Клюшников

не первый результат, конечно, но первая страница выдачи

Niki Tonsky

Yesterday I got really close to generating diagram like this but... Python dependency management was stronger than me. After spending a good 30 minutes on it I gave up. For anyone wondering, the tool is github.com/src-d/hercules

L3viathan

@nikitonsky Got it to work: Install in a Python 3.7 venv, and first install wheel.

Григорий Клюшников

Why do people keep choosing these languages that need an environment. I'll never understand that I guess.

Niki Tonsky

Look ma! Infinite canvas à la Figma/tldraw in HumbleUI!

Niki Tonsky

Diagrams are indispensable. I really wish we had a way to put them directly into source code (or rather _use them as source code_), not as a side artifact blog.sbensu.com/posts/demand-f

Niki Tonsky

i was this kid, in beirut, using cracked and pirated software to learn how to program. stuff that was never released in the middle east or stuff that wouldnt make sense to buy for a 10 year old. and guess what? microsoft didnt go out of business. and i have a career in media art and software engineering despite being from the armpit of the world. win win. intellectual property is fake, steal from corporations, kill the cop in your mind.

Niki Tonsky

The difference removing noise makes

Show previous comments
aburka 🫣

@nikitonsky ah but could I interest you in some organic, gluten-free, secure* and privacy preserving** noise?

* not secure
** just trust me bro

Morj

@nikitonsky Honestly with banner blindness - not so much difference. I still appreciate the light-weightness

Phil

@nikitonsky I have also hidden the Related Questions section, do you often find it useful?

Niki Tonsky

Holy shit! Why doesn’t every screenshot app work like that?

UPD: app is flyingmeat.com/acorn/

Niki Tonsky

So this, from Firefox, is fucking toxic: mstdn.social/@Lokjo/1127724969

You might be aware Chrome— a browser made by an ad company— has been trying to claw back the limitations recently placed on ad networks by the death of third-party cookies, and added new features that gather and report data directly to ad networks. You'd know this because Chrome displayed a popup.

If you're a Firefox user, what you probably don't know is Firefox added this feature and *has already turned it on without asking you*

So this, from Firefox, is fucking toxic: mstdn.social/@Lokjo/1127724969

You might be aware Chrome— a browser made by an ad company— has been trying to claw back the limitations recently placed on ad networks by the death of third-party cookies, and added new features that gather and report data directly to ad networks. You'd know this because Chrome displayed a popup.

Show previous comments
Cottage Politics

@mcc
I use Vivaldi. I haven't tried their email yet, but the browser works as advertised. I've been using it for a couple of years now. I'm not saying it's better, but it is a lot safer. I have it on Windows, Ubuntu, and Android. Using it on Linux avoids the AI mess. vivaldi.com/

daïgla

@mcc Hmmm. I'm a ff user and I certainly did not turn this feature off but I've just checked and box is not checked. ff 115.13.0 for mac.

Bob Downie

@mcc Thanks a lot for the heads-up. It's now turned off but WTAF #Mozilla ?

Niki Tonsky

Yup, it's true. Firefox 128 includes new adtech features that are turned on by default and announced with very little fanfare, so most people might not even know they're there. :blobcatverysad:

Well, this is me telling you they're there. You might want to go ahead and take a minute to opt out.

Here's the little helpful explainer from Mozilla about how it all works:

support.mozilla.org/en-US/kb/p

My read seems to be: Mozilla says website surveillance is generally bad and should be defended against. Cool. No notes. Firefox actually has a lot of nice anti-tracking and privacy features there and that's the main reason why I like Firefox.

But, and I swear I'm not even joking a little bit here, Mozilla goes on to say that advertisers might be happier if Firefox itself just tracked you directly and sent activity reports back to them.

Doesn't that sound great?

Now, to Mozilla's credit, they claim to anonymize the activity reports. And you can still meaningfully opt out of the whole system.

But WTF, mate?! I use Firefox *because* it fights against adtech. Or at least it used to. Now, Mozilla just lets adtech right in the front door and hopes you won't notice? :blobcat_thisisfine:

Well, we noticed. Mozilla is damage and we need to route around it.

UPDATE: The about:config setting for this is `dom.private-attribution.submission.enabled`. It's a bool. Set it to false to turn it off.

Yup, it's true. Firefox 128 includes new adtech features that are turned on by default and announced with very little fanfare, so most people might not even know they're there. :blobcatverysad:

Well, this is me telling you they're there. You might want to go ahead and take a minute to opt out.

Here's the little helpful explainer from Mozilla about how it all works:

Show previous comments
Captain Packrat

@cuchaz I have 129 beta 2 for Android and I can't find that setting anywhere in the menu, but it is hiding in about:config.

Richardus

@cuchaz Why does Firefox add the same evil thing google did. Thanks for warning. Need to turn it off straight away.

Steve Woods

@cuchaz Thanks for the warning.

Settings changed. :)

Go Up