WTF Bites
-
-
-
Excellent. It even has choco package.
I don't see any WTF though. Compose is extremely useful feature if you sometimes need foreign characters, want to type proper quotes, dashses and similar to a program without special support for them, or just desire to have a keyboard shortcut for 🚌, 🚎 or 🔩.
Or did you mean just his profile picture? That's a bit silly, but I wouldn't call it a WTF either.
Edit: , probably.
-
I don't see any WTF though. Compose is extremely useful feature if you sometimes need foreign characters, want to type proper quotes, dashses and similar to a program without special support for them, or just desire to have a keyboard shortcut for 🚌, 🚎 or 🔩.
Well yes, if there’s anything WTF-ish in there I’ll happily fix it.
-
@Bulb @r10pez10 's post was a direct reply, I think he just wanted to say that this tool allows you to use compose on Windows for any layout (and possibly even use Caps Lock) rather than proposing a WTF Bite.
-
The GitHub for Windows app just updated itself and removed Git from my system.
Edit: Actually, it seems it moved it to the most obvious place, namely a folder called
\AppData\Local\GitHub\PortableGit_63435a79518b44808827aa3194b76bea96231189\cmd
-
@coldandtired said in WTF Bites:
The GitHub for Windows app just updated itself and removed Git from my system.
Edit: Actually, it seems it moved it to the most obvious place, namely a folder called
\AppData\Local\GitHub\PortableGit_63435a79518b44808827aa3194b76bea96231189\cmd
It's always been in a folder named after the hash of the archive it extracted it from. That's not a new thing for GitHub Desktop.
-
@ben_lubar Oh. The update definitely removed Git from the PATH, though.
-
@samhocevar said in WTF Bites:
I don't see any WTF though. Compose is extremely useful feature if you sometimes need foreign characters, want to type proper quotes, dashses and similar to a program without special support for them, or just desire to have a keyboard shortcut for 🚌, 🚎 or 🔩.
Well yes, if there’s anything WTF-ish in there I’ll happily fix it.
-
@anonymous234 said in WTF Bites:
Because 32-bit Windows uses slightly less memory and space than 64-bit Windows.
Linux has x32 architecture:
So a 64-bit Linux running x32 application will not consume any more memory. That is a good reason for 32bit applications (that do not need to address huge amount of memory) on Linux
-
MySQL has very useful
INSERT ON CONFLICT UPDATE
construct. Great!Unfortunately, their return data is less great.
When record was inserted:
"result": { "fieldCount": 0, "affectedRows": 1, "insertId": 4, "serverStatus": 2, "warningCount": 1, "message": "", "protocol41": true, "changedRows": 0 },
Record was updated:
"result": { "fieldCount": 0, "affectedRows": 2, "insertId": 1, "serverStatus": 2, "warningCount": 1, "message": "", "protocol41": true, "changedRows": 0 },
So how can I tell if the record was inserted or updated?
affectedRows
, I suppose, but that seems finicky at best.Don't you just love reading tea leaves?
-
And this is what happens when you fail insert, but update doesn't change any of the fields.
{ "fieldCount": 0, "affectedRows": 1, "insertId": 0, "serverStatus": 2, "warningCount": 3, "message": "", "protocol41": true, "changedRows": 0 }
Yay! It's like a detective mystery, how fun!
-
@coldandtired said in WTF Bites:
Just watched an episode of Mr. Robot where they censored the word 'fuck' but not the word 'cunty'.
Now I've got to the last episode where they are still censoring 'fuck' but this time letting 'cunts' go. What's the rule?
-
That is a good reason for 32bit applications (that do not need to address huge amount of memory) on Linux
On other 64-bit Linux platforms, like sparc-64, most of userland was usually compiled 32-bit for exactly that reason. However on amd-64 (x86_64) the other benefits outweighed the disadvantage of larger pointers compared to plain i386 and x32 apparently came too late for anybody to care any more.
Also
@anonymous234 said in WTF Bites:
Because 32-bit Windows uses slightly less memory and space than 64-bit Windows.
They are, however, slightly slower, because they are compiled for i386 (or maybe i586), not x32. I don't remember ever seeing Visual Studio offer x32 target.
-
An (according to the title) electronic piece, with a picture of a Naruto costume, filed under the "Televisions" category. And with a "requires adult supervision" warning.
Yeah, that's about the average quality of Amazon.es product entries. And it's still better than its competitors.
-
OK, I used the 1Password "log me in" button on my work intranet, and it typed my password in for me and submitted.
Into the Chrome Omnibar. Which launched a search. For my password. Which is now in my browser address history, and probably a search term analytics system somewhere.
-
@error Yeah, that has probably happened to a lot of passwords.
I lost a paper with my master Keepass password somewhere on the street once. I had it written down because I didn't completely remember it yet.
I'd say the probability of it ever finding its way back to your database is much, much, much lower than someone simply sticking a keylogger in your device when you're not looking, so no big deal.
-
does twitter do the box thing here?
-
-
@error and that has to be manually formatted right? like how do you make a rule to jam all that shit at a fixed position at the end of the line?
-
@error and that has to be manually formatted right?
You have to make special effort to be that kind of stupid.
-
@error and that has to be manually formatted right? like how do you make a rule to jam all that shit at a fixed position at the end of the line?
I'm guessing Python developer writing Java? Doesn't want to use [\{\};], but forced to, so sweeps them under the right margin?
-
Probably not funny for who doesn't know the references it makes, but I'll post anyway
-
@fbmac WTF, he speaks in spanish, but writes in english?
-
-
-
@ben_lubar said in WTF Bites:
Found a function that returns '0' for false or '1' for true (ascii values, in a C program). It's a 14 line simple function to validate some data.
Could be worse, could be a string that the caller has to free.
Or a string allocated in a (non-thread-local) function-level static array....
-
https://medium.com/@pramitnairi/only-microsoft-could-make-teams-7b7de4da1a6#.lmra13tsf
What is it about Medium that brings out the SJW and OSS>M$ brainworms in people? I kind of suspect that the guy was either fired by Microsoft or employed by Slack at some point in his career - he's almost as obvious with his leanings in what's ostensibly a "non-partisan" article as 538's authors are. Though, I suppose, at least he's not pretending to be a journalist or data scientist, so there is that.
-
@ben_lubar said in WTF Bites:
Could be worse, could be a string that the caller has to free.
Is there a more practical way when the caller can't predict how large the string will be?
-
@ben_lubar said in WTF Bites:
Could be worse, could be a string that the caller has to free.
Is there a more practical way when the caller can't predict how large the string will be?
Return a string representation of the length on the first call and return the actual string on the second call?
-
@ScienceCat said in WTF Bites:
Return a string representation of the length on the first call and return the actual string on the second call?
Then you have to make 2 calls. It's not always possible to repeat the operation.
-
Is there a more practical way when the caller can't predict how large the string will be?
Return a static, read-only string, guaranteed to be stable until the next time the function is called. Caller must copy the string if they want it for any length of time.
-
@PJH then I waste memory and throw multithreading out the window
-
Why is Outlook always reminding me of canceled events?
Filed under: Redaction done by pasting a screenshot into Paint and then screenshotting Paint.
-
Filed under: Redaction done by pasting a screenshot into Paint and then screenshotting Paint.
You forgot the wooden table
-
@error because you haven't clicked Remove From Calendar" on the cancellation notices?
-
@PJH then I waste memory and throw multithreading out the window
Then make the static memory thread-specific and have it so passing in a null or whatever into the function frees up the memory.
-
cancellation notices
I think those are set to go directly to my Deleted Items.
-
Then make the static memory thread-specific
Not standard C, and I won't consider other languages because C is the only one where this discussion makes sense AFAIK
-
@error because you haven't clicked Remove From Calendar" on the cancellation notices?
In my experience a canceled meeting stays canceled even if I choose not to acknowledge that fact...
-
@ixvedeusi but your calendar doesn't try to guess why you didn't remove it and took the safest path?
-
the safest path
The safest path has led to me missing the word "canceled" and showing up to canceled meetings.
Hell, 90% of the meetings I attend I find out about from the reminder 5 minutes before they begin.
Filed under: I know I'm TR, but fuck meetings. Srsly.
-
Then make the static memory thread-specific
Not standard C, and I won't consider other languages because C is the only one where this discussion makes sense AFAIK
Nah, it's actually pretty straightforward if you use a pthreads key. That even offers a cleanup function which runs on thread exit so you don't need to free explicitly. See
pthread_once
,pthread_key_create
,pthread_setspecific
, andpthread_getspecific
.
-
@ixvedeusi but your calendar doesn't try to guess why you didn't remove it and took the safest path?
In general I prefer software which doesn't try to guess because usually it's horribly bad at it.
inb4 this is not actually an argument for my position but just word play
-
Why is Outlook always reminding me of canceled events?
Filed under: Redaction done by pasting a screenshot into Paint and then screenshotting Paint.
Because an event timer thingy is just a reference to the latest update message or something?
May need to tell outlook to rebuild its thingamajig.
-
pthread_once_t inited = PTHREAD_ONCE_INIT; pthread_key_t key; void init(void) { pthread_key_create( &key, cleanup ); } void cleanup(void * data) { free( data ); } void * fun(...) { void * data; pthread_once( &inited, init ); if( !(data = pthread_getspecific( key )) ) { data = malloc(...); pthread_setspecific( key, data ); } .... return data; }
-
@Tsaukpaetra said in WTF Bites:
Because an event timer thingy is just a reference to the latest update message or something?
Your abstractions are leaking again.
-
@error
In addition to the other suggestions, the meeting creator might be using an iDevice, and using the native Mail app rather than the MS Outlook app to create and/or update the meetings. Which causes Weirder Than Fuck behaviors for any non-iDevice with regard to the meeting notifications.
-
@Tsaukpaetra said in WTF Bites:
Because an event timer thingy is just a reference to the latest update message or something?
Your abstractions are leaking again.
Oh dear, gotta watch out for those null references...
-
Filed under: I know I'm TR, but fuck meetings. Srsly.
A meeting is an event at which the minutes are kept, and the hours are lost.