The Official Status Thread
-
Did you really make a special emoji just for blakeyrat?
@PJH makes the custom emoji around here. You'd have to ask him, but I'm sure other people are guilty of it. Not as guilty, of course.
-
This is correct.
-
This is a thing now? Did you really make a special emoji
Um... was a quickie, but yes.
Could have done without the white background, and possibly having it animated though.
Can't do much at the moment however...
https://meta.discourse.org/t/error-while-uploading-emoji-breaks-emoji-upload-feature/24867
-
-
-
You're an American with disabilities
You insensitive clod!
He's a handy capable American!
He's a differently abled American!
He's a less privileged American!
-
-
Am I actually retarded?
No more so than someone who spells a language obviously named after a person in all caps.
-
Trying google cardboard. Looks better than I expected. Except for the magnet thing, how on earth is that supposed to work?
-
I wrote it all in caps because Ada is my god right now. think of it as my failure to comunicate
-
Status: Just tried executing the following in cmd.exe, and was moderately suprised by the results.
> echo ^@
(Where ^@ is made by Ctrl + @).
What's going on there?
-
-
>###Error while uploading emoji breaks emoji upload feature
Hahahaha wow! It's not enough that the feature doesn't work, it's that in failing to work, it actually gets more broken...
-
Excuse me?
And the euphemism treadmill keeps trundling on...
-
No more so than someone who spells a language obviously named after a person in all caps.
Is PERL not correct, then?
-
Also trying to overcome my ADA allergy so I can keep coding
ADA? My condolences.
Actually I shouldn't say that. I thought it was pretty interesting, in college. I don't know that I'd want to write a full-sized businessy program in it, though.
-
Status: Thinking about cluebatting whoever keeps committing usage of strcpy_s (and similar functions) to our Linux SDKs.
-
Thinking about cluebatting whoever keeps committing usage of strcpy_s (and similar functions) to our Linux SDKs
No no no. Write a shim function that forwards those to better functions.
-
Status: Thinking about cluebatting whoever keeps committing usage of strcpy_s (and similar functions) to our Linux SDKs.
And I recognize all this code, I fixed this like two months ago! Why is it back?
-
Hahahaha wow! It's not enough that the feature doesn't work, it's that in failing to work, it actually gets more broken...
Isn't that what graceful degradation means?
-
This post is deleted!
-
And I recognize all this code, I fixed this like two months ago! Why is it back?
Did you have it as
strcpy
instead ofstrncpy
? Maybe someone thought they were helping?
-
sprintf_s and strcpy_s are the offenders. I rewrote them to sprintf and strcpy (yay adding buffer overflow vulnerabilities in order to support Linux!!) and I guess someone reverted all the changes.
No idea what strncpy is. To be honest I'm not much of a C/C++ guy.
-
-
No idea what strncpy is.
It's basically the Linux version of
strcpy_s
, though I think the parameters are in a different order (of course).
-
Isn't that what graceful degradation means?
Isn't it? It sounds more like disgraceful degradation to me...
-
Isn't it? It sounds more like disgraceful degradation to me...
Seems like that would require some WSODs.
-
strncpy
is likestrcpy_s
but with an API designed by a two-year old; you give it the maximum length to copy. The difference is that if it stops because of that length it doesn't NUL-terminate the destination buffer.(I'm being a little with my two-year-old comment;
strcpy_s
is designed to protect against overflows; strncpy is designed for something else.)
-
#define strcpy_s(dest, n, source) strncpy(dest, source, n)
Probably wrong, but you get the gist
-
strcpy_s
I think what's happened is that the ANSI C committee has decided to troll Microsoft by standardizing Microsoft's non-standard secure functions...
-
#define strcpy_s(dest, n, source) strncpy(dest, source, n)
It is wrong and an awful idea because of the NUL-termination difference.#define strcpy_s(dest, n, source) \ do { strncpy(dest, source, n); dest[n-1] = '\0'; } while 0
is at least sort of vaguely in the direction of okay, but there are still very big semantic differences.
(I just remembered that the
_s
functions don't just silently stop when you hitn
, they invoke an error handler that by default terminates the process. In addition,strncpy
always writesn
characters; if the string is shorter, it pads out the remainder of the destination with NULs.)
-
It is wrong and an awful idea because of the NUL-termination difference.
…and this is why I like to remain in C# and the world of .NETApart from when I'm working on @sockbot, then it's JavaScript and Node.js
-
Yes mistress Knight of Ancient Study of Furries and Anthros, I shall appear as summoned.
-
Status: Picked up my new car today, a 7yo Vauxhall Corsa.
Don't laugh; I learned to drive in a Corsa. They're good cars. Plus mine has a flicky key. I like flicky keys
-
a 7yo Vauxhall Corsa.
Not my cup of tea, but a nifty little car.
-
-
I learned to drive in a Corsa
Me too. Underpowered (I learned in a 1L non-turbo diesel), but quite fun.
pulling out a flicky key and threatening the fiancée as if it's a flick knife never gets old either
-
pulling out a flicky key and threatening the fiancée as if it's a flick knife never gets old either
Haha! Spousal abuse is hilarious!
-
BEEP BEEP l AM @blakeyrat AND I DON'T UNDERSTAND YOUR HUMAN HUMOUR
-
-
Haha! Spousal abuse is hilarious!
It's TRUE!
At least that's what my wife tells me while she's chasing me with the iron skillet.
Filed under: I hid the rolling pins.
-
Status: About to check a
Makefile
in that contains the following (lightly anonymized) lines:UTTERLY_OBNOXIOUS_LIBRARIES_THAT_ARENT_CALLED_BUT_NEEDED=-L../../os/JIDA_USER/GCC_3.x.x/KERNEL_2.6.x/JidaLib -ljida UTTERLY_OBNOXIOUS_LIBRARIES_THAT_ARENT_CALLED_BUT_NEEDED+=-L../../os/moxa_dk02/library -lmxdk02_lx librtutility.so: common.o libutil.o librt_utility.h $(LIBRTUTILITYSRC) ../lib/libinitrode.a $(CC) $(CFLAGS) $(DLFLAGS) $(LIBUTILITYSRC) -L../lib -linitrode $(UTTERLY_OBNOXIOUS_LIBRARIES_THAT_ARENT_CALLED_BUT_NEEDED) -linitrode_sublib -o $@
UTTERLY_OBNOXIOUS_LIBRARIES_THAT_ARENT_CALLED_BUT_NEEDED
was not anonymized and will be checked in as-is.
-
Haha! Spousal abuse is hilarious!
Also: "Blakey!! You got sum splainin' to do..."
-
'When did you stop beating your wife?"
Filed under: http://what.thedailywtf.com/t/the-bad-ideas-thread/254/4950
-
Underpowered (I learned in a 1L non-turbo diesel), but quite fun.
1L diesel? How many additional hamsters do you need to get it going uphill?
-
Between that and the 125 motorbike I was riding at the time, I'm a bloody expert at hill starts
-
1L diesel? How many additional hamsters do you need to get it going uphill?
For comparison, we had a John Deere with a 1.5L non-turbo diesel, it only generated 30 horsepower.
-
Between that and the 125 motorbike I was riding at the time, I'm a bloody expert at hill starts
125cc bike is completely fine. But 1000cc Corsa? The thing is something around a ton, yes? Dunno, just sounds too... anemic to me.
For comparison, we had a John Deere with a 1.5L non-turbo diesel, it only generated 30 horsepower.
I had experience with something in that range as well. Never found it comparable though. I know there's an explanation why you can have only 30 hp in a tractor and it works. I just never bothered learning about it.
-
I had experience with something in that range as well. Never found it comparable though. I know there's an explanation why you can have only 30 hp in a tractor and it works. I just never bothered learning about it.
Because they have giant tires and are geared very low. The top speed of ours was only 11 mph. 30 horsepower is more than enough to power basic farm implements.
-
Ok, yes, that. I meant something that sounds more... engineer-y :P