nour

joined 3 years ago
[–] nour@lemmygrad.ml 9 points 2 years ago* (last edited 2 years ago) (1 children)

Tabloid headlines, can't choose one coherent narrative LMAO

(For clarification, I posted it because I found the contradiction amusing, not because I believe the headlines. This is the memes community, after all.)

 
 
[–] nour@lemmygrad.ml 8 points 2 years ago

For real, I've seen this same style many times and it's incredibly frustrating when I'm trying to find some actual information on the website.

 

More information + source code of an utility that makes it more readable: https://github.com/jloughry/BANCStar

[–] nour@lemmygrad.ml 3 points 2 years ago

Damn. Looks like we're really screwed this winter, then.

[–] nour@lemmygrad.ml 6 points 2 years ago (3 children)

Sorry for being out of the loop, how badly damaged are the pipelines?

According to Telesur, Danish energy minister claims that "the leaks are not expected to cause supply security issues in the short term". But certainly it will cause in the long-term? Is there somewhere I can read about this? I'm not an engineer, I don't know how the pipeline worked.

 

The two programs involved are toilet and lolcat.

toilet is a program that takes text as input, and turns it into fancy multi-line letters. It has different "fonts" available for this purpose; all the available fonts are stored in the /usr/share/figlet directory. Here are just some examples:

Actually, toilet also has a built-in option to colour it, but it doesn't look very nice IMO, as the colour changes are too sudden:

lolcat is a program that takes some text, and prints the same text, but rainbow-coloured. Note that you need a terminal with 256-colour support (rather than just 16) for the desired effect. It can colour any text in rainbow:

(The wrapping at 80 characters is so that the lines don't get longer than the terminal width. lolcat starts looking weird when they do.

And now, by combining these two, we can get fancy rainbow-coloured text!

Enjoy! :)

[–] nour@lemmygrad.ml 7 points 2 years ago

If they were truly enthusiastic about human rights and democracy, first of all they need to stop violating human rights across the world and overthrowing democratic governments. In their current state, they have no right to lecture or "encourage" anyone about "human rights frameworks".

[–] nour@lemmygrad.ml 8 points 2 years ago* (last edited 2 years ago) (11 children)

There is still the same one. It never went away in the west. The government just gave up, and the media cycle stopped covering it.

Here's a graph of the cases for Germany, from covid19.who.int:

When there were 150000 cases in Dec 2020, they did all the lockdown and restrictions and stuff. Now there still is 170000 cases and almost no-one cares. You can also notice the huge spike earlier in 2022 — not one of the previous years, where the pandemic still was taken somewhat seriously.

[–] nour@lemmygrad.ml 5 points 2 years ago

Invidious displays the comments below the video. So, if for some reason you want to read the comment section, you're not missing out.

 

Actually, D is a real thing: https://en.wikipedia.org/wiki/D_(programming_language)

And so is E: https://en.wikipedia.org/wiki/E_(programming_language)

And F (though it can be argued that it's a subset of Fortran): https://en.wikipedia.org/wiki/F_(programming_language)

So, if you're making a new language that's supposed to replace C, call it G. The letters even look kind of similar.

[–] nour@lemmygrad.ml 10 points 2 years ago

You really so salty to retroactively edit every single of your posts to say "Lemmy sucks"?

[–] nour@lemmygrad.ml 7 points 2 years ago* (last edited 2 years ago)

IIRC it's called absorption. To understand, here's a simplified explanation the way floating-point numbers are stored (according to IEEE 754):

  • Suppose you're storing a single-precision floating point number — which means that you're using 32 bit to store it.
  • It uses the following format: The first bit is used for the sign, the next 8 bit are the exponent and the rest of the bits is used for the mantissa. Here's a picture from Wikipedia to illustrate:
  • The number that such a format represents is 2 ^ (exponent - 127) * 1.mantissa. The 127 is called a bias and it's used to make possible to represent negative exponents. 1.mantissa meaning that for example, if your mantissa is 1000000..., which would be binary for 0.5, you're multiplying with 1.5. Most (except for very small ones) numbers are stored in a normalized way, which means that 1 <= 1.mantissa < 2, that's why we calculate like this and don't store the leading 1. in the mantissa bits.

Now, back to 2**53 (as a decimal, that's 9007199254740992.0). It will be stored as: 0 10110100 00000000000000000000000 Suppose you're trying to store the next-bigger number that's possible to store. You do: 0 10110100 00000000000000000000001 But instead of 9007199254740993.0, this is representing the number 9007200328482816.0. There is not enough precision in the mantissa to represent an increment by one.

I don't remember how exactly this works, but any number that you're storing as float gets rounded to the nearest representable value. 2**53 + 1 will be represented by the same bit-string as 2**53, since it's impossible to represent 2**53 + 1 exactly with the given precision (it's not possible with double-precision either, the next representable number in double-precision would've been 2**53 + 2). So when the comparison happens, the two numbers are no longer distinguishable.

Here's a good website to play around with this sort of thing without doing the calculations by hand: https://float.exposed Wikipedia has some general information about how IEEE 754 floats work, too, if you want to read more.

Disclaimer that this is based on my knowledge of C programming, I never programmed anything meaningful in JavaScript, so I don't know whether the way JavaScript does it is exactly the same or whether it differs.

[–] nour@lemmygrad.ml 6 points 2 years ago* (last edited 2 years ago) (2 children)

That's just floating-point arithmetics for you

(The parseInt thing however... I have absolutely no idea what's up with that.)

[–] nour@lemmygrad.ml 2 points 2 years ago

Those ears!

[–] nour@lemmygrad.ml 2 points 2 years ago

Personally I see most of the Eeveelutions, and Eevee itself, as cats, though I can see the resemblance to foxes as well, and it seems that most people consider them not to be cats... But I do see Flareon as something like a fox.

 

Some people seem to consider them felines, others say they're foxes, and some say they're dogs. I'm curious — what does this community think?

Or is it different for the different Eeveelutions? I've seen someone refer to Espeon as "weird cat" and to the other Eeveelutions as dogs.

 
 

If you're not familiar with that meme, this page: https://knowyourmeme.com/memes/stop-doing-math has a pretty good explanation and some more examples.

 
view more: next ›