fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#bytes

0 posts0 participants0 posts today

🤔 Oh, you wanted to know where the #bytes go? Well, let's take a thrilling tour through the #labyrinth of #syscalls, because nothing screams excitement like relentless file paths and arcane #assembly #language. 🚀 Spoiler alert: it's all gloriously tedious, but don't worry, your bytes are probably somewhere safe... or not. 🤷‍♂️
flak.tedunangst.com/post/where #tech #thrill #HackerNews #ngated

flak.tedunangst.comwhere do the bytes go?

🚀Behold, the riveting saga of 'Compound File Binary Format' on Wikipedia, where #ASCII warriors battle for #bytes and #FAT sectors are the new #Hollywood stars. 🎬 Get ready to dive into riveting #subsections like "CFBF Header Format" while contributors valiantly toggle between obscurity and irrelevance. 🛡️💾
en.wikipedia.org/wiki/Compound #CompoundFile #BinaryFormat #HackerNews #ngated

en.wikipedia.orgCompound File Binary Format - Wikipedia

New Byte just dropped! This one is a small color blending CLI, and I like the bugs that are hidden in it! Feels like a more realistic bug than some of our other ideas!

Bytes are little code review games we've been working on! You get a little code diff, and your job is to review the code for a handful of bugs that are sprinkled in. The more you find the higher a score you get! This weeks challenge has three bugs for you the sleuth out!

Check it out!
coreyja.com/bytes/color-blendi

coreyja.comcoreyjaCorey's personal site that contains all his projects and streams

Ever wanted to understand UTF8 better? Every programming language does it a little different but utf8 is utf8. This article explains it well, in general, and specifically for python.
#utf8 #bytes #python #strings #explainer : "`bytes`: The Lesser-Known Python Built-In Sequence • And Understanding UTF-8 Encoding"(thepythoncodingstack.com/p/byt)

The Python Coding Stack • by Stephen Gruppetta · `bytes`: The Lesser-Known Python Built-In Sequence • And Understanding UTF-8 EncodingBy Stephen Gruppetta
Replied in thread

Here I was, all these years, thinking the macOS Finder reports file size in MiB (binary based, basically dividing the number of bytes by 1024 twice), but this just shows how old I am now. Fact is, it's been reporting MB (#bytes / 1000 / 1000) since OS X 10.6 (Snow Leopard)–which came out in 2009.

(via apple.stackexchange.com/questi and support.apple.com/en-us/102119)

And yes, this doesn't relate to the zips directly, but I found out about this while opening one, so ... it counts.

Ask DifferentHow can I force MacOS to make a binary conversion of filesizes in MB, GB...?I noticed that MacOS (10.6) makes a decimal conversion for file sizes, instead of binary: Is there any way to force it to make binary conversions instead in Finder? Because my mind kinda works...

@vertigo Hmm....funny you discuss about mutable and immutable stuff. Two lines of thought I had about them:

ONE:

I once toyed with the idea of re-imagine Python's syntax using the # as an immutability prefix, and redefine various stuff like this (sorry, I do not know how to format it in monospace text in Mastodon):
#[ ... ] is just a tuple
[ ... ] is a mutable list just like before
#{ ... } is a frozen dict
{ ... } is a dict as usual,
#set(...) is a frozen set
set( ... ) us a set as usual
#"..." is a immutable string, like "..." in Python
"..." is somewhat similar to C string (mutable)
#bytes(...) is equivalent to bytes(...) in Python, while
bytes( ... ) is equivalent to bytearray(...) in Python

and so on. Actually, # is an operator; it turns any (compound) object into an immutable version, so it would work on structs, etc,

The reason why I thought about is because I got inspired from learning about React coding, which requires everything to be immutable to avoid getting slowed down in web page interaction with the user. (I once came across the demo showing the difference, which is quite dramatic). By using # prefix, it is easy to find mutable ones and eliminate them.

TWO:
I had thought about the idea of "locking" and "unlocking" the variable, which is closely related to immutability. It works like this:

i: integer; (* mutable *)
...
i := 7;
{ lock i;
some code using i, but can't change i
}
i := 8; (* out of scope, so now mutable *)

I forgot exactly why that idea popped in my mind, but that thought is with me.

I blather too much...so take it or ignore...