« first day (1018 days earlier)      last day (3916 days later) » 

7:00 AM
@Tuntuni 14 more to go for me :D
 
@FlorisVelleman nice :D
 
Ahahaha! Yu Hao beat me for finding that part of GCC's documentation.
 
7:15 AM
0
A: How many levels of pointers can we have?

user2623967There isn't such a thing like real limit but limit exists. All pointers are variables that are storing in stack not heap. Stack is usually small (it is possible to change its size during some linking). So lets say you have 4MB stack, what is quite normal size. And lets say we have pointer which i...

^^ huh?
 
:O I can edit questions
yay
 
int *******mehHasNoPoint_er = 0;
 
int** newed_ptr = new int*;
 
user142019
Morning.
 
user142019
@Mysticial It's wrong.
 
7:22 AM
Morning.
 
user142019
An int* and an int********** have the same size, at least on reasonable architectures.
 
size of the int pointer
but doesn't a bunch of intermediate addresses get created as a side effect of ******s?
 
Yeah - if I was a compiler, faced with 100 '*', I would issue a 'Suspected stupid code' warning and then generate a 0-99 loop that dereferences and overwrites one pointer var each time round.
 
JBL
@Mysticial The -8 answer below is golden.
 
user142019
7:26 AM
@A.H. wtf why the casts.
 
to assign ints
 
user142019
You suck.
 
@Telkitty猫咪咪 Yeah - but you can just overwrite each intermediate one with the next one.
 
@rightfold I also wanted it to not print hex
 
user142019
Ugh. Wait.
 
7:30 AM
lol
I don't know what you are comparing it to, but what you just posted is a heck of a lot easier to understand than the documentation on MSDN. — Jonathan Allen 3 mins ago
 
@MartinJames wouldn't that use regs for mem instead of stack ?
 
you are using a lot less *s
 
user142019
That's irrelevant. :|
 
user142019
You can repeat the pattern for a hundred asterisks if you want.
 
user142019
7:31 AM
I'm just lazy.
 
user142019
Also use template metaprogramming to generate it.
 
@Rapptz He has an eye for the standard! Or maybe MSDN just sucks.
 
i just held tight to my asterisk key and copy pasted
 
JBL
@MarkGarcia Or both.
 
user142019
Your code was wrong.
 
user142019
7:32 AM
It's a terrible idea to cast between integers and pointers.
 
user142019
It's like casting between cars and planets.
 
user142019
They're completely different things.
 
it was relevant to a question yeah I totally agree terrible and dereferencing 1337 is bad idea
 
@rightfold Seen much C++ code with those though, mostly on libraries.
 
mov eax, [s]
stupid: mov ecx,99
mov eax,[eax]
jcxz stupid
 
Xeo
7:34 AM
mornin
 
..OK, something like that - label on wrong line, I know.
 
user142019
@MarkGarcia ITT: much code (especially that in C++) is terrible.
 
user142019
@MartinJames What is jcxz?
 
Xeo
@rightfold s/C++//
 
user142019
@Xeo semantical error!
 
7:36 AM
@rightfold It sounds like "jabberwockiez".
 
@MartinJames you don't decrement ecx there.
 
@rightfold Maybe jecxz? Jump and decrement ecx if ecx not zero.
 
Xeo
@rightfold FFS, there's nothing special to C++ that makes programmers produce more bad code in it. You're just sounding like Linus now.
 
@MartinJames nope. it's loop
 
jcxz i think is jump if CX is zero
 
7:37 AM
'loop' then, I can't be expected to remember assembler at this time of morning!
 
haha, dat headline: hanselman.com/blog/…
 
Some Lounger with more brain CPU available post the correct 32-bit code. Anyway, no stack use for intermediates necessary.
 
user142019
@Xeo I'm just trolling.
 
user142019
ur trolldar iz br0ken
 
The "x language sucks" jokes have gotten old.
 
Xeo
7:40 AM
I woke up an hour ago. :s
 
Java sucks
 
Xeo
Let my brain boot in peace, will ya?
 
I should not post anything about code before (09:00 && coffees)
 
cpx
lol
I'll go to sleep in next hour.
 
7:41 AM
@MartinJames or after (2am || alcohol)
 
@Telkitty猫咪咪 That too :)
 
user142019
@A.H. Indeed.
 
@MartinJames But it's always after 2am and before 09:00.
 
user142019
@Xeo Me too.
 
sometimes I code better at night, I used to anyways
 
user142019
7:48 AM
 
My latest app is almost done, now I have a list of 30+ bugs I have to fix. Praise the Goddess of hacking and elite coding!
Happy! <3
 
@JerryCoffin WTF time zone are you in so as to have so many neurons fired up?
 
user142019
JavaScript, you piece of shit, y u no pattern matching.
 
Ugh. Again, JavaScript and 08:50 just don't gel, (TBH, JS and all the other times are not so good either).
 
user142019
I should really use CoffeeScript instead.
 
7:52 AM
So my phone just got OpenGL|ES3 compatible
 
@Telkitty猫咪咪 30+ bugs listed? How many extra bugs will you find while fixing that list?
 
A wild lion appears
 
user142019
return _.map(_.pairs(obj), function(pair) { return pair[0] + '=' + pair[1]; }).join('&');
// vs
("#{k}=#{v}" for k, v in obj).join('&')
 
@Martin how many will she add?
Hi tony :)
 
user142019
7:54 AM
List comprehensions, pattern matching and string interpolation are unmissable.
 
Hi...
 
user142019
@Saby GOOD MORNING
 
This is the first time I entered the chat room
 
user142019
Welcome.
 
Welcome :)
 
Xeo
7:55 AM
As long as you behave, you're welcome to repeat that.
 
Hi RightFold...Good Morning
 
Hi there
 
Xeo
But I advice checking out the newbie hints, linked on the right.
 
I will not misbehave..I can promise that
2
 
G'moaning.
 
7:55 AM
@MartinJames Ssh ... lemme enjoy this moment of temporarily happiness for a while longer. We will only come back to the reality when we have to (which is 95% of the times)
 
JBL
Hello !
 
@Saby You might think not -- but we have...unusual ideas of what constitutes good behavior.
 
Yea, basically this ^
 
I am going through the newbie hints
11
 
Good.... Good...
 
7:58 AM
Hello JBL
 
JBL
@JerryCoffin #1 is : being a C fanatic.
 
Feel the hate flow through you and join the dark side.
 
:P
 
user142019
@Saby As of this moment I am not an atheist anymore.
 
@rightfold You believe in The Noob now?
 
7:59 AM
@Saby Yay!
 
@saby you'd be amazed how rare it is.
 
user142019
@TonyTheLion God brought him here.
 
Hi Mark, Bartek
 
@Saby Hello. And be sure to read the formatting help too.
 
8:00 AM
Postman Y U NO HERE ALREADY?
 
@Saby Here are some extras: pizza, croissants, banana sandwiches, unusual sexual practices and suspicious meetings in European cities are all good. PHP, JavaScript are not. Java is OK if you're taking the piss out of it.
2
 
Also C is terrible
> suspicious meetings in European cities
lol
 
@TonyTheLion Oh yeah - C. Very cringeworthy.
 
user142019
@MartinJames Nah, Java isn't OK.
 
C being bad should be at the top
 
user142019
 
Looks OK.
except the avatar
 
user142019
Apart from , and , pretty nice.
 
design patterns
yuk
 
It's the stock windows photo from windows XP
 
user142019
Also hurray for .
 
8:03 AM
(IIRC)
 
user142019
@BartekBanachewicz Windows 7 koala ftw.
 
He has the right koalifications.
2
 
Koala?
@TonyTheLion IT IT DEFINITELY TOO EARLY FOR THAT!
 
user142019
 
Xeo
@TonyTheLion ...
 
8:04 AM
@rightfold His new avatar
 
Ah also, I'm on the phone and just remembered you said π is hard to type
 
USE IT NOW
 
@rightfold Looks happy enough, but can it bat, bowl or field?
 
Or dunno, stuff like ™
 
Koala's are awesome
 
JBL
8:07 AM
Those ears.
 
Yeah - nothing good can come from ears that size. Also, Australian, so needs exterminating.
 
JBL
Oh first gold badge !
Meh, quite a passive one...
@MartinJames Lol
 
@TonyTheLion what do you expect
 
user142019
@TonyTheLion s/'//
 
user142019
We spreken hier Engels, geen Vlaams.
 
8:11 AM
@Saby congratulations! You might be the Chosen One. Perhaps you'll be the seventh person to make it back from the lounge alive
 
Gonna get more coffee. Still hurting from 'koalifications'.
 
@rightfold Gin vloams!
 
Hey, I was on call...I had a StackOverflow account for an year, but havent used it much before..I have started for last 3-4 days
 
@sehe what are we the regulars? all ghosts?
 
I will change the pic...While filling the details, I didnt have the pic other than this in pc
 
8:15 AM
@Saby I started in the same way. I've had an account for two years before I actually started contributing/using the site.
 
@Saby The internet has all the pics. ;)
 
@Saby You can specify a web location IIRC. I recommend using gravatar.com
 
yeah!! :P I will update it soon as I reach 200 points, bench mark for me to change pic...just joking
 
user142019
Use the koala.
 
@rightfold He/she from Delhi. IIRC, there is a koala shortage there.
 
8:18 AM
Use the force.
 
user142019
inb4 rape joke
 
... a new genre
 
lol @ all of us being so nice at @Saby. To @Saby, I recommend you start here by first observing these guys. Then you'll know the real newbie hints. Perhaps the Lounge<C++> best practices, if there is any. :)
 
You've got any problems with rape?
 
No it went well for me
 
8:19 AM
inb4 mobile touchscreen rant
@sehe :)
 
That's inside information
 
@MartinJames helpful
 
I didn't think I will ever say it here but what the fuck is that plant
 
user142019
This is awesome.
 
@TonyTheLion Worse: look what question is second.
 
@BartekBanachewicz Canola, I think.
 
@BartekBanachewicz Err.. rape.
 
user142019
@TonyTheLion I visit the third question every damn time I need to do something with JSON over HTTP.
 
8:25 AM
You can never have a friend without arguments. — sehe 5 secs ago
 
user142019
> In my opinion not possible
 
user142019
TIL: whether something is allowed by the standard is an opinion.
 
hmmmm
 
more important question why didn't OP just try it
 
He/she did, but wasn't sure whether he was failing, or it was
However, you can define expression templates to achieve the same effect, see e.g. my example here: Can we inherit from Qt containers?sehe 3 mins ago
"Named operators" is another advanced idiom that you might employ to get "close": x = a <plus> b could be "overloaded" — sehe 12 secs ago
^ @KonradRudolph I think I like that thing
 
8:35 AM
@sehe :)
@sehe I really need to write some proof-of-concept code for that, such as an extensible query (think LINQ) library
… but there are already good ones for that out there …
 
@KonradRudolph I'd focus on making it easy to get started, rather. Let others come up with the compelling samples (that don't duplicate existing libs)
Wow. That's a most excellent animation
 
hahaha
TIL Python has metaclasses
so.meta.
 
I'm sorry, everyone. I was just forced to do it.
 
:/
 
user142019
What the fuck MySQL, you motherfucking piece of cuntsucking shit.
 
8:49 AM
@MartinJames Forced to do what?
 
user142019
I set an existing column on NOT NULL and it doesn't give me an error if there are already records with that field set to NULL.
 
fail.
Why are you using MySQL?
Are you a masochist?
 
user142019
Because this existing system uses MySQL.
 
@rightfold that's documented :/ ISTR there is a workaround too
 
It's not webscale!
 
user142019
8:50 AM
@sehe It's retarded no matter how well it is documented.
 
ikr
 
@TonyTheLion Star 'koalafications' :((
 
oh lol
 
user142019
Also '' IS NULL being true what the fuck.
 
@sehe a.k.a. “ whoosh ” [edit: chat markdown U Y suck?]
 
user142019
8:51 AM
What goes through people's mind when they design stuff like this.
 
user142019
I don't understand.
 
@rightfold hahahahaha
 
@KonradRudolph indeed. why wasn't I told of this gif's existence before?
 
@rightfold It wasn't "designed", it was just made and then hoped that it would work.
 
@rightfold In good company:
Jul 19 at 14:05, by sehe
TIL (painfully): Oracle treats empty string '' as DB null:
 
8:52 AM
man
what the fuck
empty string != null
 
Fucking databases
 
Jul 25 at 13:34, by sehe
"why can't a man...
be a man" // SNAP!, The Madman Has Returned, "Color of Love"
@TonyTheLion wkr
 
@sehe Is that a reference to something?
 
@TonyTheLion bad choice of occupation
 
8:53 AM
because I don't get it :/
@sehe ahahahahahah
 
@TonyTheLion well, no, the comment is there by accident
 
if you get '' from a web query then store it in a string, most likely it will be treated as null
" ''
Almost can not tell the difference, one being a double quote, one being two single quotes
 
0
Q: Failed to call VLC from c++

user2633348This is the code i have: vlc -vvv C:\\TestStream.mp4 --sout '#transcode{vcodec=h264,acodec=mpga,vb=800,ab=128,vb=0,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:8080/testt}' When i run the codes in command prompt, it only shows the VLC window but nothing else happen. Is there som...

Eh?
 
meh bad question
not really a question
 

« first day (1018 days earlier)      last day (3916 days later) »