TIL (about the Dark Arts of HTML)
-
@Gąska Yeah, I'd leave those out.
-
@topspin well, your random function you want to copy is made entirely of them, so they're kind of hard to separate.
-
@Gąska said in TIL (about the Dark Arts of HTML):
@topspin well, your random function you want to copy is made entirely of them, so they're kind of hard to separate.
Huh?
uniform_int_distribution
is defined in lines 2862-2948. There's no pragmas and nothing magic besides_LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK
on line 2927, which you can throw out. If I haven't overlooked anything, the only dependency on internals is__independent_bits_engine
, which doesn't look all that magic either.Copying those shouldn't be that hard, and surely beats trying to write (and debug) them yourself.
-
@topspin did you expect me to actually check the code before talking shit about it?
-
@topspin That looks better than the GCC one I was just looking at:
Also it's Apache License instead of GPL, so you don't have pledge your first-born to the FSF to follow it.
-
@Gąska Sorry, my bad.
-
@anonymous234 except for using double underscores everywhere, the GCC version doesn't look bad either.
-
@coderpatsy said in TIL (about the Dark Arts of HTML):
Reproducible cross-platform PRNG is nice for some games.
No links because but I know the Factorio devs struggled with this because they support Linux, Windows, and Mac, and the game runs using synchronized timesteps with a separate but identical simulation on each PC to save bandwidth, rather than a normal client-server model with a single system running the simulation and forwarding results to other players. Having a consistent PRNG on each platform is critical in that case or everything desyncs.
-
@mott555 Wasn't that also a big reason for them dropping x86_32?
-
@mott555
I'm looking forward to all the "bugs" in competitive Factorio caused by this implementation
-
@PleegWat for fuck's sake x86_32? Is this really that hard to just use widely accepted terminology and not make up your own shit on the spot?
-
@PleegWat said in TIL (about the Dark Arts of HTML):
@mott555 Wasn't that also a big reason for them dropping x86_32?
I think I recall something to that effect.
-
@Gąska What's the widely accepted terminology to refer to x86 while being specific about not including x86-64?
-
@Zecc x86.
-
@Zecc said in TIL (about the Dark Arts of HTML):
@Gąska What's the widely accepted terminology to refer to x86 while being specific about not including x86-64?
The three I'm aware of, at least in Linux-land, are i386, i686, and x86-32.
-
@mott555 the only Google results I could find on x86-32 is various noobs talking about stuff they have no idea about, mostly in bug report titles and SO answers.
Also, it's important to remember i386 and i686 mean different things, and the very reason we have the term x86 in the first place is because we want to forget about those differences most of the time (but not in the specific case of telling what's the target architecture of your compiled binary).
-
https://en.wikipedia.org/wiki/2,147,483,647#Barlow's_prediction
TIL: in 1811, mathematician Peter Barlow wrote that 231-1 was "probably the greatest [prime number] that ever will be discovered; for as they are merely curious, without being useful, it is not likely that any person will attempt to find one beyond it".Yeah... kinda missed this prediction buddy. It did remain the biggest known prime for 41 years, but there were still several more found before computers and cryptography were a thing. Of course, today the biggest known prime is 282,589,933-1.
-
@anonymous234 Does anyone know why Mersenne primes get all the attention? Is it because they have a very simple representation and are more likely to be prime than with some other system for big numbers?
-
@kazitor said in TIL (about the Dark Arts of HTML):
@anonymous234 Does anyone know why Mersenne primes get all the attention? Is it because they have a very simple representation and are more likely to be prime than with some other system for big numbers?
Testing for primality of Mersenne numbers is comparatively* easy compared to testing of arbitrary positive integers. Straight away you can discount the nth Mersenne number if n is not prime.
*The Lucas-Lehmer test is O(n² log n) in the exponent.
-
@Watson TIL.
-
TIL that you can access a flattened and File Explorer-y version of Control Panel by naming a folder
Porn Folder.{ED7BA470-8E54-465E-825C-99712043E01C}
.Naming it Porn Folder isn't strictly compulsory, but it's more fun that way.
-
@pie_flavor Ah yes, the so-called "God Mode" shortcut....
-
@pie_flavor I have such a shortcut in my desktop (minus being called Porn Folder).
I have used it approximately one time (you know, for testing).
-
@Zecc Would you use it more often if it was called
Porn Folder
?
-
@dkf Prolly not. My desktop is more of a dumping ground for stuff I want to remember but don't.
-
-
@Gąska said in TIL (about the Dark Arts of HTML):
@Zecc said in TIL (about the Dark Arts of HTML):
stuff I want to remember but don't.
Inverse porn?
Work.
-
TIL "Kauai" is not this car model's original name:
https://www.carscoops.com/2017/05/grab-it-by-kona-why-hyundai-might-want/ :
Grab It By The Kona: Why Hyundai Might Want To Change Their New SUV’s Name
BY Michael Karkafiris | Posted on May 22, 2017You would think that the era of unfortunate model names has gone past us, following some really offensively-named cars that entered the history books for the wrong reasons.
Hyundai’s upcoming compact crossover is surely vital for the Korean company’s success in regions like Europe, so you would think that everything was carefully orchestrated to pave the way for a successful launch.
And then, we learned the name: Kona. Now, it’s a perfectly fine, easy-to-pronounce name that sounds fresh, unless you’re Portuguese; that’s because, as Carscoops commentator ‘Deckard_Cain’ told us, “cona” in Portugal is slang for the female genitalia (the c*nt word for those that didn’t get it yet).
-
@Zecc with all those hundreds of languages that are still in common use in this day and age, it's really hard to find a two-syllable word that doesn't have NSFW connotations in any of them.
-
-
The term "Kona" is sometimes used inaccurately to refer to its largest town, Kailua-Kona. Other towns in Kona include Kealakekua, Keauhou, Holualoa, Hōnaunau and Honalo.
Hawaii has serious alphabet deficit.
-
@hungrier said in TIL (about the Dark Arts of HTML):
The Portuguese were the ones who brought Hawaiians ukeleles IIRC.
You're welcome.
https://www.youtube.com/watch?v=79DijItQXMM
(incidentally, that movie's called Vaiana here).
Edit: accidentally a word.
-
@Zecc said in TIL (about the Dark Arts of HTML):
TIL "Kauai" is not this car model's original name:
https://www.carscoops.com/2017/05/grab-it-by-kona-why-hyundai-might-want/ :
Grab It By The Kona: Why Hyundai Might Want To Change Their New SUV’s Name
BY Michael Karkafiris | Posted on May 22, 2017You would think that the era of unfortunate model names has gone past us, following some really offensively-named cars that entered the history books for the wrong reasons.
Hyundai’s upcoming compact crossover is surely vital for the Korean company’s success in regions like Europe, so you would think that everything was carefully orchestrated to pave the way for a successful launch.
And then, we learned the name: Kona. Now, it’s a perfectly fine, easy-to-pronounce name that sounds fresh, unless you’re Portuguese; that’s because, as Carscoops commentator ‘Deckard_Cain’ told us, “cona” in Portugal is slang for the female genitalia (the c*nt word for those that didn’t get it yet).
Honda did it with Fitta a decade or more ago.. It was even renamed to Jazz in Europe because of it.
-
@Zecc said in TIL (about the Dark Arts of HTML):
The Portuguese were the ones who brought Hawaiians ukeleles IIRC.
Hahaha, look at this tiny guitar, I bet those konas will love it
-
@Carnage said in TIL (about the Dark Arts of HTML):
Honda did it with Fitta a decade or more ago.. It was even renamed to Jazz in Europe because of it.
What's Fitta mean in which language to cause that?
-
@boomzilla said in TIL (about the Dark Arts of HTML):
@Carnage said in TIL (about the Dark Arts of HTML):
Honda did it with Fitta a decade or more ago.. It was even renamed to Jazz in Europe because of it.
What's Fitta mean in which language to cause that?
Pussy, in Swedish
-
@Carnage said in TIL (about the Dark Arts of HTML):
@boomzilla said in TIL (about the Dark Arts of HTML):
@Carnage said in TIL (about the Dark Arts of HTML):
Honda did it with Fitta a decade or more ago.. It was even renamed to Jazz in Europe because of it.
What's Fitta mean in which language to cause that?
PussyKona, in SwedishFTFY
-
@Carnage And then there's the Mitsubishi Pajero.
-
And lightbulb company Osram, which in polish means 'I'll shit on it'.
-
-
I can't find "oh we do have nice things thread" so this will have to do
This would of being nice when I use to do front end hackery.
-
-
@DogsB said in TIL (about the Dark Arts of HTML):
This would of being nice when I use to do front end hackery.
-
@DogsB Hey, that thing JetBrains did a while back. Neat.
-
@DogsB said in TIL (about the Dark Arts of HTML):
This would of being nice when I use to do front end hackery.
What of is?
-
@pie_flavor This wood.
-
@pie_flavor said in TIL (about the Dark Arts of HTML):
@DogsB Hey, that thing JetBrains did a while back. Neat.
Wow! I only had to install an entire new tool that my workplace refused to buy to get the same functionality! Neat!
-
@DogsB Every JetBrains tool is objectively better in every way from every other tool for the JetBrains tool's target environment. The sole exception is Rider because of the lack of a GUI designer and resource integrations, but they're working on it. If I couldn't get a full suite license off someone else, I'd buy it myself; it's that worth it.
-
@pie_flavor said in TIL (about the Dark Arts of HTML):
Every JetBrains tool is objectively better in every way from every other tool for the JetBrains tool's target environment.
Provided the way you think is compatible with the way they think. Some of my colleagues use JetBrains IDEs and are very happy with them, the rest of us don't because we just don't think the right way. (It's about a 50/50 split in our team, plus a few holdouts who insist on sticking with Emacs.)
-
@pie_flavor said in TIL (about the Dark Arts of HTML):
@DogsB Every JetBrains tool is objectively better in every way from every other tool for the JetBrains tool's target environment. The sole exception is Rider because of the lack of a GUI designer and resource integrations, but they're working on it. If I couldn't get a full suite license off someone else, I'd buy it myself; it's that worth it.
They're so good you'll leech off someone else's license instead of buying one yourself? Be a good software citizen and actually pay for your tools.
I think you've mixed up objective with subjective. I use intellij and found it to be over rated personally. Everything at my current job is setup around it so I'll use it there just so that I'm in line with the team. Something about the GUI reminds me of vi for some reaeon. At home I've a preference for Eclipse. Webstorm is quite good but I've never met anyone whose paid for it personally.