WTF Bites
-
@HardwareGeek said in WTF Bites:
@anotherusername said in WTF Bites:
tl;dr: he created a file named aux.h on Linux,
He didn't create the file; IBM did:
IBM shipped some opengl headers as AUX.H on one of the OS/2 devcon disks.
Copy protection, 1990s-style!
-
@Lorne-Kates said in WTF Bites:
If you think any of the above sql statements are badly written
Well, I did see a plain
select * from someTable
which is considered to be poor style in production code…
-
@Scarlet_Manuka Ah, IBM is doing what it does best it seems.
-
@TwelveBaud said in WTF Bites:
It's the same idiot, the one that Linus said the following about:
I'm
fuckhugging tired of the fact that you don't fix problems in the code you write, so that the kernel then has to work around the problems you cause.Updated to follow the new kernel development acceptable language guidelines.
-
@Lorne-Kates said in WTF Bites:
@sweaty_gammon said in WTF Bites:
@Lorne-Kates I am sure we can all cherry pick badly written code to straw-man someone else.
If you think any of the above sql statements are badly written (pseudocode aside), then you're the WTF.
Apart from the bad formatting
@Lorne-Kates said in WTF Bites:
If you think any of the above sql statements are badly written
Well, I did see a plain
select * from someTable
which is considered to be poor style in production code…That too.
-
@Lorne-Kates said in WTF Bites:
@sweaty_gammon said in WTF Bites:
@Lorne-Kates I am sure we can all cherry pick badly written code to straw-man someone else.
If you think any of the above sql statements are badly written (pseudocode aside), then you're the WTF.
This one reeks:
select list.*, cnt.cnt as [Count] from (select id from object) as list LEFT OUTER JOIN (select id, count(id) as cnt FROM other_object GROUP BY id) as cnt on list.id = cnt.id
Why can't you just write:
select list.id, count(id) as [Count] from object as list LEFT OUTER JOIN other_object as cnt on list.id = cnt.id GROUP BY list.id
-
-
Me to co-workers
In future can you please not use this naming scheme in a database. It is not a good idea for reasons A & B and C.
Them:
Can we put this as a back log item
-
Yay! Chrome 71 broke the microphone in Hangouts again.
EDIT: But if I disable the extension I can still make a call from a gmail tab.
-
@TimeBandit said in WTF Bites:
Also if I skim the grease from the top of the pot while boiling, the top of my pizza will be free of unsightly pools.
You boil your pizza?
Any worse than boiling your salad?
-
Guess how many minutes I listened last year?
-
@Vault_Dweller I just noticed that the percentage is MAX_INT - 100. So they are probably using the formula
this_year / last_year * 100 - 100
-
I got a delivery notification from Amazon. Normally, it says something like "Left in mailbox" or "Handed directly to a receptionist." This time, it just said "Left in a secure location." Later, I opened my front door and was nearly knocked over by an Amazon box that was leaning against it. Yeah, that's real "secure", right outside where anyone could see it or take it.
-
@mott555: they've just harmonized their language. After all, we all know that "your data is secure" means "it's on an Internet-facing server with no authentication required".
-
-
@Lorne-Kates said in WTF Bites:
If you think any of the above sql statements are badly written
Well, I did see a plain
select * from someTable
which is considered to be poor style in production code…Unless your Entity Framework enumerates all the fields-- or you specifically request it to-- it does select *.
The point of the post is that EF can handle a simple statement, is unhappy with anything beyond that, and literally dies if you try to do anything even remotely complex.
-
@Scarlet_Manuka I like the headline in this article about the bot (which doesn't show up in the preview...
There’s an AI robot sulking in the international space station
)
-
@boomzilla said in WTF Bites:
Yay! Chrome 71 broke the microphone in Hangouts again.
EDIT: But if I disable the extension I can still make a call from a gmail tab.
Chrome 71 introduced a new """"""""""""""feature""""""""""""" where it will disable sounds in non-focused tabs, or something like that. But it will also PERMANENTLY disable sites that it thinks are serial offenders.
In other words, they fucked up their own extension. And broke tons of old web games.
-
@Lorne-Kates said in WTF Bites:
Chrome 71 introduced a new """"""""""""""feature""""""""""""" where it will disable sounds in non-focused tabs, or something like that. But it will also PERMANENTLY disable sites that it thinks are serial offenders.
Does it whitelist youtube? I was playing a song in a non-focused youtube tab earlier without any problems.
-
@Vault_Dweller said in WTF Bites:
select list.id, count(id) as [Count] from object as list LEFT OUTER JOIN other_object as cnt on list.id = cnt.id GROUP BY list.id
In mine you can then filter or sort on cnt without having to do a HAVING. {shrug} They run the same in the profiler.
edit Plus, in the subquery, you can do expensive processing on both the selects without having to return a massive dataset to the join.
-
Software has convenient graphical interface to construct queries to be used by program itself.
@Zecc uses it to write query which happens to refer to column named "Group".
Program correctly escapes name of column. While all other columns were added unescaped, this one in particular is added with backticks surrounding the reserved word.
@Zecc: presses Test button
Expected identifier but instead found `
-
Kotaku really wants me to read this article:
I did buy two preorders a couple weeks ago, though...
-
Like quite a few large employers in Silly Valley, mine provides bicycles for employees to travel between buildings. I just saw an email in my junk folder that the bikes are currently not working. Due to a firmware issue. On a bike. That you pedal with your feet.
-
@HardwareGeek said in WTF Bites:
. I just saw an email in my junk folder that the bikes are currently not working. Due to a firmware issue.
Someone complained the seats are too firm? (sadly, I know that's not what you mean)
-
TLDR: Person A spent 4 weeks in jail earlier this year after a notebook containing terrorism plans was found. He was released when handwriting experts could not match his handwriting to the handwriting in the book. Now Person B has been arrested for planting the notebook in an attempt to frame Person A for terrorism - apparently due to a dispute over a girl.
Now I admit to having been out of the dating scene for a long time, but I can't imagine that framing your rival for a terrorist plot is a great winning move, romantically.
-
@Lorne-Kates Sounds like premature optimization to me
-
@Scarlet_Manuka The image in the embed in your post is not centered and it's hurting my aesthetic sensibility.
-
@Zecc Murdoch strikes again?
-
@HardwareGeek said in WTF Bites:
. I just saw an email in my junk folder that the bikes are currently not working. Due to a firmware issue.
Someone complained the seats are too firm? (sadly, I know that's not what you mean)
Or the tires aren't firm enough (because they sprung a leak). Which is a simple (though still annoying) fix.
-
I did buy two preorders a couple weeks ago, though...
From now on, I will blame you for everything that's wrong with video game industry.
-
@Gąska Sure, go ahead! One was the Hearthstone expansion so I could nab the special preorder hero, also close enough to release I didn't think it mattered. The other was Warcraft 3 Reforged, because it's a 99% chance I will buy that on release anyway, but I can agree it's questionable to buy that this early.
-
The failures were traced to a software error in the lab’s operating system
why does a biosafety lab have an operating system? Things like airlock control should be on a safety-rated PLC at the very least.
-
@Atazhaia "I know for sure I'm going to buy it anyway so I can preorder it as well" is how we've got Fallout 76.
-
@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 yes, there were several other reasons - like huge successes of previous already-partially-broken games. But if people didn't buy games months before they can even see previews on YouTube, it would have probably never happened.
-
@Gąska At least Warcraft 3 Reforged is just a "HD rerelease" of a game. And even if Blizz said there will be some changes to harmonize with the continued story in WoW better it still feels like a pretty safe bet as the core gameplay will be unchanged.
-
$ man nginx No manual entry for nginx See 'man 7 undocumented' for help when manual pages are not available. $ man 7 undocumented No manual entry for undocumented in section 7
-
@Gąska Syntax highlighter apparently thinks that's SQL.
-
@kazitor that explains why random non-programming plain English words are getting highlighted, but other (and even the same) plain English words don't.
-
Status: what the.... For fuck's sake, really?
-
I want to add Wikipedia in a particular language to the list of Firefox search engines. I also have an extremely small screen, so I'm using their new combined search+address bar.
It used to be the fact that when you visited certain websites (including
<lang>.wikipedia.org
), you could click the search bar and press "add <this website> to the list of search engines". For whatever reason, I don't see this menu item anywhere. Okay, I'm a Linux user, I can edit a config file, can I?$ file -b .mozilla/firefox/*.default/search.json.mozlz4 data
No, I can't.
I ended up looking up OpenSearch specification, writing an XML search engine description, enabling a setting in
about:config
and typing magic incantations in the browser console (Ctrl+Shift+J, which is separate from the Web console, Ctrl+Shift+K) to get the damn thing to import., ?!
And yes, I know about right click -> "create a name for this search", but I wanted a different thing.
-
@aitap Chrome just does that automatically, for every website that has a search. There's even one for WTDWTF.
-
@pie_flavor said in WTF Bites:
Chrome just does that automatically, for every website that has a search. There's even one for WTDWTF.
Allegations that Search has ever worked correctly here are totally without foundation. Because
-
@Lorne-Kates said in WTF Bites:
If you think any of the above sql statements are badly written
Well, I did see a plain
select * from someTable
which is considered to be poor style in production code…On the bright side some intern will have the point hammered home when they're asked to fix the performance issues the senior developer just introduced.
-
@Vault_Dweller said in WTF Bites:
Guess how many minutes I listened last year?
I listen to podcasts at 3 to 4 times normal speed. Every now and then I see stats of you've listened to 24+ hours of content today.
-
@DogsB just what kind of podcasts do you listen to that they're still legible at 4x speed!?
-
-
@kazitor what's the word for legible but for audio?
-
Good question. "Discernible" comes to mind but even then I'm not sure. "Audible"?
-
@kazitor audible feels more like visible than legible. Not what I was aimung for.