TIL (about the Dark Arts of HTML)
-
@dkf said in TIL (about the Dark Arts of HTML):
But the suspicion remains that Rust is actively unable to write a GUI at all, that its model of ownership and sharing just isn't able to cope.
I'm not sure why you think that's the case. After all, you can basically substitute the (restrictive) compile-time checks with runtime checks if you wrap your type in
Rc
andRefCell
. It looks ugly at first if you're not used to the pattern, but it works as a substitute for ashared_ptr
to mutable data.https://doc.rust-lang.org/book/choosing-your-guarantees.html
I'm pretty sure your suspicion is entirely wrong and only based on a lack of experience with the language. If you actually have a good reason for your opinion, I'd be very interested in hearing it, because I cannot think of any.
-
TIL if you try to download an APK Firefox won't start the download right away.
Instead you have to right-click the file in the downloads popup panel thing, optionally read why the download didn't start, select Allow Download, then press Allow Download on the dialog box that appears.
This is not an entirely bad idea.
Filed under: screenshots don't capture mouse pointer; bad font rendering is on them
-
TIL Linux "filesystems" can actually be single files.
Simply return a normal file instead of a directory when asked for "/".
-
@anonymous234 said in TIL (about the Dark Arts of HTML):
a completely different scripting language that no one uses anymore
TYL that the part in italics is not correct. ;)
-
Til sliced grape + microwave creates plasma
-
TIL
-
@RaceProUK The Object reference was not of an Object instance ?variable?
Let's ask Google translate
Ah, so festgelegt means set.
The object reference was not set to an object instance.
Seems reasonable.
EDIT: Hey, that's the exact sentence Google translate gave me. I know german!
-
@Zecc said in TIL (about the Dark Arts of HTML):
Goat Yoga
You could probably use toddlers as a substitute in a pinch.
-
@loopback0 Apparently youtube doesn't even have the menu that button is in in IE.
-
@JazzyJosh Unhandled null reference exception in .NET. The English localized version is normally
Object reference not set to an instance of an object
iirc
-
@boomzilla said in TIL (about the Dark Arts of HTML):
@Zecc said in TIL (about the Dark Arts of HTML):
Goat Yoga
You could probably use toddlers as a substitute in a pinch.
I suspect goats have better balance. Except for the fainting ones.
-
-
@r10pez10 Man, can you imagine the gravitational slingshot calculations for that trip?
-
@Scarlet_Manuka Can you imagine the tidal forces we'd experience?
-
@abarker Given that we'd basically be a moon of Jupiter at that point... no, I really can't! It'd be interesting to see (from a distance, natch) what would happen to Venus' atmosphere. But the Jupiter-Saturn interaction would probably be the highlight for spectacle. Pity about the rings.
-
@Scarlet_Manuka said in TIL (about the Dark Arts of HTML):
@abarker Given that we'd basically be a moon of Jupiter at that point... no, I really can't! It'd be interesting to see (from a distance, natch) what would happen to Venus' atmosphere. But the Jupiter-Saturn interaction would probably be the highlight for spectacle. Pity about the rings.
I'm pretty sure we'd be a new superplanet, suffocating underneath a massive atmosphere of toxic gases from those gas giants.
Our biggest problem in getting to the moon would be finding gas stations along the way. Well, that, and breathing. Mostly breathing.
-
@anotherusername
we need someone who has universe sandbox
for science!
-
@anotherusername said in TIL (about the Dark Arts of HTML):
suffocating underneath a massive atmosphere of toxic gases from those gas giants.
If the concentrated radiation due to Jupiter's magnetic fields didn't kill us first.
-
@anotherusername said in TIL (about the Dark Arts of HTML):
a new superplanet, suffocating underneath a massive atmosphere of toxic gases
Which obviously would revolve around Uranus.
(what? someone had to do that joke...)
-
TIL trying to select text coming from the alt attribute of an image that didn't load is apparently a use case that hasn't been predicted by browser makers.
.
As a bonus TIL NodeBB will remove an
img
tag unless I add asrc
attribute to it, even if it's empty.
Oh, and the img's alt becomes thedownload
attribute of thea
that surrounds it. I wonder how that can be abused.
-
@Zecc said in TIL (about the Dark Arts of HTML):
TIL trying to select text
coming from the alt attribute of an image that didn't loadis apparently a use case that hasn't been predicted by browser makers.FTFY
-
??
-
@Jarry Mobile is different
-
TIL that I can put (for appropriate and useful values of
SOME_NAME
)
echo travis_fold:start:SOME_NAME
and
echo travis_fold:end:SOME_NAME
in my build instructions so that Travis will fold large chunks of output in our build logs, allowing us to focus much more on the output that we care about instead of the thousand lines of boring crap that has to be done first.
-
-
@RaceProUK Most of our logs are so bog-standard travis already folds them appropriately.
-
@Yamikuronue said in TIL (about the Dark Arts of HTML):
bog-standard travis
Travis gets more complicated once you're doing multi-language work. Which I need for our integration testing (C builds don't hold your hand nearly as much as some of the other languages do).
-
@dkf said in TIL (about the Dark Arts of HTML):
multi-language work
Ah, our code is all JS (with a few Handlebars templates here and there), so I guess manual folding will have limited value.
Edit: Looking at a typical Travis log of ours, the default behaviour already hides enough
-
-
TIL the word 'bonkersality' exists:
-
TIL: C++ is waaaaay more fubarred than I thought.
See: This post and its resulting thread(s), where several of our esteemed colleagues can't even agree on the basic interpretation of the (in)correctness of the cited code. Or even what a "pointer" is in C++.
-
@Dreikin when I see the word "template" I'm already throwing this shit in the WTF bin, no need to read any further.
-
@wharrgarbl Templates are effectively glorified restricted macros with some definition-time correctness checking.
-
-
@loopback0 said in TIL (about the Dark Arts of HTML):
@asdf said in TIL (about the Dark Arts of HTML):
so I have no clue which niche they this language for.
I'm going to call the @alternative-mods on you!
-
@Zecc said in TIL (about the Dark Arts of HTML):
As a bonus TIL NodeBB will remove an img tag unless I add a src attribute to it, even if it's empty.
No, that's HTMLCleaner.
-
@r10pez10 The sum of internal angles and external angles is obviously n.360° so the sum of external angles must be n.360° - (n-2).180° = n.180° + 360° = (n + 2).180° = - (-n - 2).180°.
Still, I don't think there's anything deep there. It's probably easier to remember that the external angles add up to (n+2).180° than it is to remember that they add up to the negative of the internal angle formula for -n sides.
-
@Scarlet_Manuka If you travel along the edge of the polygon (clockwise), then at every node you turn right by a certain number of degrees (use negative for left turns in case of non-convex polygons). The sum of these counts is always 360, regardless of the number of sides of the polygon.
-
@PleegWat Well, yes, you're traversing a simple closed curve once. I don't think that's relevant to what we were discussing though.
-
@Scarlet_Manuka The other two derive from that.
-
@PleegWat Ah, so they do. Fair point. But per the original we're supposed to be doing this at the "every schoolkid knows" level, and I've only seen the "divide into triangles" approach used there. Do you know of it being taught the other way?
-
@Scarlet_Manuka I don't even recall for sure when I was taught it. I don't think I was ever taught the general rule, though it's not hard to deduce yourself. Only 180° for triangles and 360° for 4-sided polygons.
-
@Scarlet_Manuka said in TIL (about the Dark Arts of HTML):
Do you know of it being taught the other way?
I remember realizing that as a kid, but I don't recall if the textbook lead me there or if I just realized it myself. I read some advanced textbooks ahead of being taught some of this stuff too.
-
TIL about the dark arts of HTML: Creating a global variable for each Element named after it's ID is actually in the spec
-
@wharrgarbl said in TIL (about the Dark Arts of HTML):
Til sliced grape + microwave creates plasma
https://youtu.be/Bg619zhZs_c
Technically, I think that's the sugar burning (and technically, I guess, flame is plasma(?)). I've done this on a glass plate. Cut the grape almost completely in half, leaving just a little tag of skin connecting the two halves. Place the flat "inside" side down on a plate, put it in the microwave oven, and turn on the power.
Covering it with a Pyrex container is an interesting modification to it, though. :)
-
@djls45 said in TIL (about the Dark Arts of HTML):
@wharrgarbl said in TIL (about the Dark Arts of HTML):
Til sliced grape + microwave creates plasma
https://youtu.be/Bg619zhZs_c
Technically, I think that's the sugar burning (and technically, I guess, flame is plasma(?)). I've done this on a glass plate. Cut the grape almost completely in half, leaving just a little tag of skin connecting the two halves. Place the flat "inside" side down on a plate, put it in the microwave oven, and turn on the power.
Covering it with a Pyrex container is an interesting modification to it, though. :)
AFYAIL 30 seconds in a microwave is too much for lava cake.
Second degree burns on my finger and lip (because of course my first response was to put my finger in my mouth).
-
@cark said in TIL (about the Dark Arts of HTML):
TIL about the dark arts of HTML: Creating a global variable for each Element named after it's ID is actually in the spec
<Div id="undefined"></Div>
-
@djls45 said in TIL (about the Dark Arts of HTML):
flame is plasma(?)
Is it? Fire is an oxidizing chemical reaction, and flames are a gaseous extension of the reaction that are still giving off heat and light. Plasma is (in simple terms) a super heated mixture of gases where a significant portion of the atoms have been given enough energy to become ionized.
Now, I suppose that if you get a fire hot enough, it would start creating a plasma, but I doubt that most fires qualify.
-
@abarker Ah, thanks. You're right. I think I was thinking of electric arcs.
-
TIL the Phoenix Wright games are available on the Wii.
I thought they were DS only.