WTF Bites
-
Ah, true. It seems the list of supported languages in a variety of styles is here.
The list of supported languages here are listed at https://what.thedailywtf.com/topic/11697/escaping-and-posting-code (just updated today - previously it was the Discourse list.)
-
Edit: wait, so they do know about the
continue
keyboard,Only §34.99 on Ebay...
-
@PJH And approximately when can that be edited to remove super dumb ones like
apache
andhttp
, and add ones people here actually use likescala
orrust
?
-
@pie_flavor said in WTF Bites:
@PJH And approximately when can that be edited to remove super dumb ones like
apache
andhttp
, and add ones people here actually use likescala
orrust
?
-
@PJH Hadn't thought of that, one moment.
-
@pie_flavor I seem to recall there were performance reasons to not just turn all of them on.
-
@pie_flavor Well, I found the setting - it's in nodebb-plugin-markdown.
Also, found something worthy of this thread!return config.markdown.highlightLinesLanguageList.includes(className) || config.markdown.highlightLinesLanguageList.includes(className);
sauce
And an issue started by @Choonster on this very topic. With custom HTML we can use if we want to add more languages.
-
@pie_flavor said in WTF Bites:
found something worthy of this thread
It uses
config.markdown.highlightLinesLanguageList.includes(className)
if
config.markdown.highlightLinesLanguageList.includes(className)
is
true
y and it usesconfig.markdown.highlightLinesLanguageList.includes(className)
if
config.markdown.highlightLinesLanguageList.includes(className)
is
false
y.
-
@Zecc but what if
config.markdown.highlightLinesLanguageList.includes(className)
isFILE_NOT_FOUND
y?
-
@pie_flavor said in WTF Bites:
return config.markdown.highlightLinesLanguageList.includes(className) || config.markdown.highlightLinesLanguageList.includes(className);
@julianlam come on. Don't you have code reviews?
Edit: of course you don't. It's hard to organize code reviews when you're committing directly to master branch. Just noticed that.
-
@pie_flavor said in WTF Bites:
return config.markdown.highlightLinesLanguageList.includes(className) || config.markdown.highlightLinesLanguageList.includes(className);
@julianlam come on. Don't you have code reviews?
Edit: of course you don't. It's hard to organize code reviews when you're committing directly to master branch. Just noticed that.
I'm sure there's a reasonable explanation for it, which Mr. Chesterton could provide a perfectly cromulent paragraph or so...
-
@Carnage I found the lack of empty lines disturbing, before I even started reading the variable names.
Edit: wait, so they do know about the
continue
keyboard, they just chose to use it only in the inner-most loop? :OYou are assuming that they know about it and its meaning.
-
@sweaty_gammon I'm not assuming anything.
For example, I don't assume you missed that I typed "keyboard" instead of "keyword". Nor do I assume otherwise.
-
For whatever reason, I don't see [the "Add Search Engine"] menu item anywhere.
It's in the triple-dot menu at the end of the omnibar.
-
@Zerosquare said in WTF Bites:
@Rhywden said in WTF Bites:
Web development sounds like being barefoot in a dark room, and endlessly banging your small toe against furniture.Complete that picture with several pieces of Lego lying around and you are even closer to reality!
-
@sweaty_gammon The good thing is that besides the Camera API I don't need any more device-specific code.
But next time I'll take a strong, hard look at something else. Maybe native or at least something mobile-specific.
Maybe React Native. Or maybe even Flutter - I'd like something where Types are baked in and not plonked on afterwards (looking at you TypeScript - the whole concept of manually defining Types just feels ... unclean).
-
@TwelveBaud said in WTF Bites:
It's in the triple-dot menu at the end of the omnibar.
Thanks, but I must be holding it wrong:
You mean this three-dot menu, right?It's not in the dropdown menu, either:
But if I enable the separate search bar, I get offered to add a search engine:
Bonus WTF: Markdown parser didn't like the
![filename](path)
automatically produced by the uploader, but only for one of the three screenshots. The file itself is okay, though.
-
@aitap
Yes, I get that search bar menu item.
I also get an omnibar menu item:
-
@Rhywden Write it all in Rust and compile to WebASM!
-
Just from memory I can say that this code is broken, and will fail edge cases.
A few things catch the eye. Like the scanning over the entries in a map while using equality to test the keys, or the weird casting. And it's doing JSON parsing, a very solved problem; in our code, we delegate that to a library so we can just annotate a POJO and get everything happening “magically” with minimal effort.
I think I'll not look any deeper for
-
Just from memory I can say that this code is broken, and will fail edge cases.
A few things catch the eye. Like the scanning over the entries in a map while using equality to test the keys, or the weird casting. And it's doing JSON parsing, a very solved problem; in our code, we delegate that to a library so we can just annotate a POJO and get everything happening “magically” with minimal effort.
I think I'll not look any deeper for
Ah, yes, What I meant is that even if the bloody code did work, which it most certainly do not, the way the JSON structure looks, this can throw all kinds of fun exceptions. That's apart from it being broken in every other way you can come up with.
In the old code, this was done by JAXB. It worked perfectly well.
-
In the old code, this was done by JAXB. It worked perfectly well.
Fucking hell! This is getting close to name-and-shame territory. Some managers and developers need to be permanently blackballed from humanity.
-
In the old code, this was done by JAXB. It worked perfectly well.
That stuff is truly magnificent.
-
Dear Google, kindly fuck off
-
@Vault_Dweller said in WTF Bites:
@Lorne-Kates Sounds like premature optimization to me
Post-mature optimization. The query was written the normal way. Then it choked to death on 100k+ records with filters. I added indexeses and map-reducing subqueries, and now it just demurely gags in a good way.
-
-
@Zerosquare said in WTF Bites:
@Rhywden said in WTF Bites:
Web development sounds like being barefoot in a dark room, and endlessly banging your small toe against furniture.Complete that picture with several pieces of Lego lying around and you are even closer to reality!
Roll a d4 for caltrop damage.
-
So there's this cloud gaming service called liquidsky.tv. It works on a credit system: you buy credits, the credits get spent as you use it. Well, they just sent an email saying they are closing the service (and launching a new, mysterious, "totally different" product) and refunding everyone the last payment they made. Just one payment.
So... if I had bought a shitton of credits in one payment and used them, I'd have gotten my money for free. But if I had bought a shitton of credits, then 5 more just to top it off, and not used them, I'd lose everything.
kind of refund system is that.
-
@anonymous234 said in WTF Bites:
this cloud gaming service called liquidsky.tv
Guess what forum software they use?
-
@anonymous234 said in WTF Bites:
So there's this cloud gaming service called liquidsky.tv. It works on a credit system: you buy credits, the credits get spent as you use it. Well, they just sent an email saying they are closing the service (and launching a new, mysterious, "totally different" product) and refunding everyone the last payment they made. Just one payment.
So... if I had bought a shitton of credits in one payment and used them, I'd have gotten my money for free. But if I had bought a shitton of credits, then 5 more just to top it off, and not used them, I'd lose everything.
kind of refund system is that.
One that rewards inquiring minds.
-
@anonymous234 said in WTF Bites:
So there's this cloud gaming service called liquidsky.tv. It works on a credit system: you buy credits, the credits get spent as you use it. Well, they just sent an email saying they are closing the service (and launching a new, mysterious, "totally different" product) and refunding everyone the last payment they made. Just one payment.
So... if I had bought a shitton of credits in one payment and used them, I'd have gotten my money for free. But if I had bought a shitton of credits, then 5 more just to top it off, and not used them, I'd lose everything.
kind of refund system is that.
One that rewards inquiring
mindsattorneys.Filed under: Not at all the same thing
-
The People app on Windows 10 crashes if I type é into the search bar.
Or it used to until today. Now it does not crash but é does not appear.
-
@marczellm FUCK YOU WINDOWS WHY CAN'T I HAVE É IN NAME
-
-
@Lorne-Kates Εντάξει!
-
@Gąska Probably backwards compatibility. That's always a good excuse.
-
-
But next time I'll take a strong, hard look at something else. Maybe native or at least something mobile-specific.
Maybe React Native. Or maybe even Flutter - I'd like something where Types are baked in and not plonked on afterwards (looking at you TypeScript - the whole concept of manually defining Types just feels ... unclean).Do you really expect the experience to be that much better? Those tools may have been designed (with some experience from past mistakes of others), but they are waaaay too young and with the modern style of rushing things into production I'd expect them to have their own share of suck.
Also these won't let you do a web and/or desktop version easily.
@pie_flavor said in WTF Bites:
@Rhywden Write it all in Rust and compile to WebASM!
As much as I like Rust, and think it's really great whenever you need some raw power, but don't want to compromise on reliability, I fear it lacks the whipuptitude of something like Javascript, Dart or Go.
Another idea might be elm (and sticking with Cordova, because for all the shit it is, there is a shitton of modules written for it already).
-
Status: This warning message makes me think it's a bad idea to use "Capture" to take a snapshot of a VM for possible restoration later. Am I wrong?
-
But next time I'll take a strong, hard look at something else. Maybe native or at least something mobile-specific.
Maybe React Native. Or maybe even Flutter - I'd like something where Types are baked in and not plonked on afterwards (looking at you TypeScript - the whole concept of manually defining Types just feels ... unclean).Do you really expect the experience to be that much better? Those tools may have been designed (with some experience from past mistakes of others), but they are waaaay too young and with the modern style of rushing things into production I'd expect them to have their own share of suck.
To be fair from what I have read that isn't the case. However anything that seems to come from Google other than API integration is updated every other week with breaking changes so you want to kill yourself. However this isn't the Angular JS team so I have hope that this won't be the case.
Also Flutter looks like it is going to be baked into fuchsia which will either replace Android.
-
Status: While doing research on something else, I came upon this little tiddy:
Apparently, passwords stored in group policy objects are encrypted by a particular key that is publicly available.
-
Jesus, clean up your room, kids!
-
Jesus, clean up your room, kids!
Old news. And, I've seen worse.
At least you don't even need to walk on any particular surface!
-
@Applied-Mediocrity said in WTF Bites:
@Gąska
I'd argue that is only one reason out of several.
But to do so I would have to order my thoughts, and I can't do that, especially on a Friday.@Applied-Mediocrity
As long as you don't pre-order your thoughts. You heartless monster.
-
@Applied-Mediocrity said in WTF Bites:
@Gąska
I'd argue that is only one reason out of several.
But to do so I would have to order my thoughts, and I can't do that, especially on a Friday.@Applied-Mediocrity
As long as you don't pre-order your thoughts. You heartless monster.You mean, if he has his mind made up?
-
-
Latest Windows 10 update has disabled Wi-Fi service on my computer. It took me a while to figure out why it doesn't find any networks.
-
@Tsaukpaetra
I have made up myself, but I haven't made up my mind; of that I'm certain.
-
@sweaty_gammon said in WTF Bites:
which will either replace Android.
Or?...
...Not?
Oh sorry. It will either replace Android or it will be re-branded to Android.
-
@anonymous234 said in WTF Bites:
@Gąska Probably backwards compatibility. That's always a good excuse.
Backwards compatibility with what?
Even Notepad.exe from Windows 3 can understand the ASCII extended character set