« first day (990 days earlier)      last day (3967 days later) » 

6:00 PM
I like wine
 
Where's @sbi when you need him.
 
What do you need him for?
Got some beer that needs drinking?
 
Just to verify some things. :D
 
user142019
I tried wine once and I didn't like it.
 
user142019
It tasted like the driest thing that ever happened.
 
6:02 PM
Wait, new month just started, so I need can get rid of my book budget again, yay.
 
It also means new blog post :P
 
@ThePhD Like what?
 
@R.MartinhoFernandes Oh, nothing important. Don't worry your gears over it~
 
Now I will.
 
Xeo
@R.MartinhoFernandes Likely whether you have a girlfriend or something.
 
user142019
6:07 PM
@Xeo inb4 he's actually married to Scott
 
user142019
Oh wait that will be Tony.
 
Scott would marry anyone with a pulse.
 
He's married himself a few times
he thought he was someone else
 
@Xeo I don't.
 
user142019
6:08 PM
He added a relationship with me on Facebook and I got a confirmation request and rejected it.
 
Xeo
@R.MartinhoFernandes Tell that to the PhD
 
@rightfold As what?
 
@rightfold lol
 
user142019
@not-TonyTheLion "in a relationship"
 
6:09 PM
That would make you facebook-official.
 
SO has gone funny.
 
I keep reading "Orson Welles" and "George Orwell" as the same person. Stupid brain.
 
It's back again. Maybe just my FF acting up.
 
Georgson OrWelles
 
@Aboutblank Actually, Orson's first name is George.
So maybe they are!
I never saw them in the same room.
 
user142019
6:11 PM
George's son Orwell.
 
user142019
Oh well…
 
Isn't that just swell?
 
@Xeo Naahh. that wasn't my question.
 
user142019
> sed 's/\xC2\xA0/ /g' btcto.txt > new.txt # Replace all instances of a Unicode unbreakable space with a regular space in the file btcto.txt
 
user142019
On a scale from incorrect to correct, how correct is this?
 
6:12 PM
@rightfold yes
 
user142019
yes is not within the specified scale. Please try again.
 
> Unicode unbreakable space
 
If it is not broken, do not fix it.
 
WTF is that?
 
6:13 PM
@rightfold how's home?
 
user142019
@CCInc Ich bin jetzt im Zug!
 
@not-TonyTheLion doesn't break into new line.
 
user image
10
 
6:15 PM
Hahaha
 
@CCInc Nobody will ever be happy.
 
We should have C++.NET
oh wait
 
C+#
 
#C+ !
 
6:16 PM
C&
 
C blunt
 
C/0 or C∞
 
C-fuck-it
1 message moved to bin
 
why bin it?i m serious
 
@nicolagenesin Because "questions must demonstrate a minimal understanding of the problem being solved" :)
 
@nicolagenesin I'm serious too.
 
imagine u have an int x=5.Its a easy question.Is it faster for cpu to do x*=x or x=x*x?
 
=l
 
@nicolagenesin x*=x is just syntactic shorthand for x = x*x;
 
6:20 PM
is there no difference for sure?
 
@StackedCrooked No no, he should benchmark it and find out.
 
just a shorthand?
 
Check assembly output if you need.
 
@nicolagenesin Benchmark it if you're so afraid.
 
It both compiles to the same assembler instructions
also, nobody cares
 
6:21 PM
@nicolagenesin For integers x*=x and x=x*x are strictly equivalent and will have the same assembly...
 
perfect,thank you all
 
user image
4
I thought you should all know this
 
:D
 
@not-TonyTheLion Prove it!
 
6:28 PM
@nicolagenesin why do you even care for that
 
@BartekBanachewicz Purrrrrformance.
 
micro optimization == bad
 
@StackedCrooked Oh yeah, LAHWF videos are amazing.
 
I bring you: rotating rackspace ad quad
-.-;;
 
@BartekBanachewicz because i am ossessive compulsive
another performance question
small performance question

struct Matrix4x4{
float values[4][4];
float* operator[](int i){return values[i];}
}
is it faster to access to values with Matrix.values[i][j] or with Matrix[i][j]?
 
@nicolagenesin Premature micro optimization will get you nowhere but in a big pile of trouble. Just don't.
2
 
@Borgleader thank you
 
6:47 PM
@Borgleader Coliru runs on rackspace.
 
@nicolagenesin I thought you were obsessive compulsive. So if we just told you, wouldn't it still be nagging you that we might be wrong? Have you considered trying it out yourself and measuring the results?
 
> template<typename T> class class_ {
 
Cool, Ubisoft leaked a database.
Gaming industry is really good at data security.
 
6:52 PM
@CatPlusPlus Source?
 
@CatPlusPlus They dropped a table?
 
@StackedCrooked Damnit skrillex
 
@CatPlusPlus yeah, you can pretty much assume that if any games company has seen your password then it has been leaked. Probably in plaintext too
> Out of an abundance of caution
lol
 
@CatPlusPlus you'd think they'd hire some people who actually knew how to handle sensitive data by now
 
6:56 PM
And this, kids, is why you don't reuse passwords.
@Aboutblank They'd have to divert money from shitty AAA games then. CAN'T HAVE THAT.
 
@Aboutblank why would they? It's pretty clearly established that it doesn't hurt them in any way that they're sloppy about security
At worst, they get to join those other 98% of the games industry who were also incompetent about security
 
Don't reuse password: too much lazy
 
23
Q: How to prolong compilation time while engaging in leisure activities?

Harold CavendishI thought of that old joke today, where a programmer can make an undeniable excuse for his leisure activities while in work on the basis that he is just waiting for his code to compile. Although I am a workaholic and a fair player, such an excuse comes in handy now and then, so what is the bes...

 
@jalf I thought Sony got hit pretty bad
 
@Nic007 and you are?
 
7:01 PM
A human?
 
Use any Java based TeX implementation — topskip 4 hours ago
lol
 
@Nic007 nothing for granted
 
@Aboutblank Sony's leak was by far bigger
 
Or I am a young male (19 years), student at "École Polytechnique de Montréal" (Québec, Canada) in software engineering, I am doing an internship at Gage Applied, I can program in C/C++/C#/JAVA, etc... my mother tongue is french but I can use English (with errors), blablablablablabla
 
@Nic007 wait, that's close to @Etienne
btw, Java is not an acronym
 
7:06 PM
@Aboutblank well, they were the first big company to admit they'd been hacked. You don't want to be the first
 
btw, weird answers part #21451
0
A: OpenGl Lighting Issue with a moving bright spot

Bartek BanachewiczThat looks like a specular highlight. Just zero your specular color and you're done. And that's how light works in the real world, by the way.

 
And currently I'm hating Qt a lot :D
 
JBL
@Nic007 Welcome to the party.
 
JBL: Awwwww yeah
 
7:08 PM
@Nic007 fellow soul
 
user142019
Almost 20 upvotes on my answer!
 
user142019
@Griwes Repost.
 
i still don't get the C++ one
 
user142019
@Aboutblank Hint: copy constructor.
 
user142019
7:16 PM
The comic is probably older than move semantics.
 
@Griwes I don't understand the flower pot but it's hilarious
 
blah blah
 
@Borgleader "HTML is not a real language"
 
Oh and Java is?
 
user142019
HTML is a language.
 
user142019
7:18 PM
It's not a programming language.
 
@rightfold According to @rightfold's Universal Definition
 
@Borgleader unfortunately. these bugs I'm fixing is very much a real pain in the ass
@rightfold ok I think I got it lol
 
user142019
void foo(Bar bar) { … }

Bar bar;
foo(bar); // is copy elision allowed?
 
user142019
Ok.
 
7:21 PM
No guarantee bar won't be used later.
So it needs its own copy.
 
http://harmattan-dev.nokia.com/docs/library/html/qt4/qscrollarea.html
Am I the only one to find the chosen picture creepy? (The derp guy)
 
s/the picture choosed/the chosen picture/
 
user142019
@Nic007 He looks like he's expecting a cumshot.
 
Yep and that's disturbing me
 
user142019
Maybe he goes away if you satisfy him by cumming over your monitor. Try it!
 
7:28 PM
:|
 
If I have a metal rod, and another metal rod is partially inside that one,
how do I get them to stay together tightly, but allow them to be pulled apart without too much effort?
 
like...a telescoping rod? :p
 
Yeah, kind of like that, except only with 2 pieces.
I need it to lock in place at an arbitrary point too.
What I'm thinking is having the outer rod have a screw hole, then I move it up and down the inner rod and then fasten it tight with a bolt that you screw in.
 
is this the doorknob thing, still?
 
Yeah.
 
7:32 PM
 
The belt idea isn't a good one because it precludes opening the door manually.
 
just use a fucking CD ROM drive :p
 
I've thought up a new scheme that works extremely well.
At least, theoretically.
 
I'm on a flaggin spree. ~80 flags in the last 16 hours.
So many "Take a look at this link" answers.
 
JBL
@Nic007 It's weird to say the least. (And gosh that site is horrible... like, it always seems to be under heavy load and takes ages to display...)
 
7:34 PM
tell me how you do it
 
JBL
@Jeffrey I'd be interested in the number of people who actually understand/tried the solution they link to.
 
@melak47 How the hell would that even work?
 
@ThePhD extend drive - block door
 
=l
 
@Griwes hey, that's cool!
 
7:36 PM
That kinda makes it so everyone can walk into your house.
 
@BartekBanachewicz Indeed.
 
@JBL almost none. They just google the question terms and link the first result.
 
And you can add files to be downloaded again.
 
JBL
@Jeffrey That'd be my guess too.
 
The surprising fact is that half of them have a 2+ score as well.
 
7:37 PM
@BartekBanachewicz what was your Github name again? I am thinking Banua7 or something...
 
@Pawnguy7 bananu7
 
@Pawnguy7 bananu7
 
:laffo: banua
 
@melak47 lol
 
baw, too slow
 
JBL
7:37 PM
@Jeffrey Well, if that actually helps, they're good "search proxy". But that means that the question shouldn't have existed in the first place...
 
@CatPlusPlus inb4 Barket
 
Indeed.
@melak47 slowpoke
 
Also ahahaha I just remembered that Ubisoft limits max password length.
 
@JBL Hopefully once in the flagging queue they are going to be removed very soon.
 
@CatPlusPlus Morons.
 
7:39 PM
@CatPlusPlus Well, there's always a limit son. Not really.
 
@BartekBanachewicz Bananawhich, Barket Bananawhich.
 
JBL
@Jeffrey Oh, question with answer that scored can be deleted ?
 
@Jeffrey Reasonable limit is along the lines of 32kB.
 
@melak47 Basketcase Barket <--- great nickname if he goes nuts.
 
JBL
I found myself not allowed to delete a dumb question I made because people answered it.
 
7:40 PM
@CatPlusPlus 640 kB should be enough for everyone
 
@CatPlusPlus Also theoretically there's no limit for sha256 encoded passwords (for example). The length of the hash will always be 60 chars anyway.
 
Don't use SHA256 for passwords.
 
Blowfish?
 
@Jeffrey (a) don't use algorithms that aren't suited for the purpose, and (b) the length of the hash doesn't really matter.
 
@jalf a) what algorithms are suited for passwords? b) isn't that the one that is stored?
 
7:42 PM
bcrypt, scrypt, PBKDF2.
 
@JBL Taking a look at my flag history it seems so.
 
@Jeffrey you'll want to use a perfect hash function. :p
 
Your stored (and preferably salted) hashes should use variable storage, not fixed storage.
 
@Jeffrey (a) slow (iterative) algorithms. SHA256 is intended to be fast, which is the last thing you want for storage of hashed passwords
 
user142019
Arrrgrgg fuck you Stack Overflow Careers with your moronic miles instead of kilometers.
3
 
7:43 PM
@ThePhD Derived keys are constant-sized.
 
^
 
@Jeffrey If I can guess the plaintext, it doens't matter whether it's stored as a 2 or 200 bytes hash
 
I wish my code looked more like that :\
 
So that's what people do to crack passwords
 
@Pawnguy7 like what, plaintext?
 
7:44 PM
@ThePhD why?
 
@jalf got it.
 
they certainly don't go through the entire 2^60 space of possible password hashes. Instead they go for likely combinations of likely plaintext fragments, hash them, and see what they end up with
 
@melak47 like the few things I found on Github so far, including Minicraft
 
(which is why a slow hashing algorithm is key. You don't want them to be able to do this a billion times per second)
 
@jalf salts should fix that though
 
7:45 PM
@Jeffrey not really
 
@jalf if you are going to guess plaintext fragments, a salt will alter its content
nevermind
 
@Jeffrey but the salt is known
 
I realized why it doesn't work
 
:)
 
7:46 PM
I should think more before talking/writing
 
it does help in that it means that you'll have to crack passwords individually (two users with the password 'password' won't have the same hash due to salting)
so salting is still important
 
@StackedCrooked I expected longer, iterative algorithms to spit out variable-sized hashes.
But I guess not.
 
it just doesn't keep attackers from performing a bazillion hashes per second
 
So salt pwns the rainbow tables?
 
@milleniumbug ya
 
JBL
7:47 PM
I was thinking of combining multiple hash algorithms + salts but realized it doesn't make it that harder (or not by a long shot...)
Man, Crypto is hard.
 
@milleniumbug See the rainbow. Taste Salt the rainbow.
 
@jalf you can exponentially increase the time of waiting seconds before entering a new password at every wrong input
 
Don't invent homemade crypto solutions.
 
@CatPlusPlus ROTL16. :3c
 
@JBL that's actually kind of what the "good" hashing algorithms do. They're iterative, so they just run the string through a hashing algorithm a number of times
@Jeffrey sure, assuming they use your login form to perform the attack
but if they do that, then they won't be able to do a bajillion hashes anyway. Usually, they've gotten hold of your database table
 
7:48 PM
@jalf how else would they do that? if they have database access I'm fucked anyway
 
with all the hashed passwords
 
room topic changed to Lounge<C++>: Bullshift [c++] [c++11] [c++-faq] [no-helpdesk]
 
JBL
@jalf I was thinking of the fact that it appears to rely on the combination of hash used, which should be considered known...
Or am I completely wrong ?
 
@Jeffrey but your users (whose passwords are stored in your database) aren't fucked if you do it properly
 
Every good crypto system is well-known.
 
JBL
7:49 PM
Exactly.
 
@JBL as @CatPlusPlus says, don't invent your own, because building something that's robust and safe is nontrivial :)
 
A good crypto system does not rely on its internals being a secret.
 
@CatPlusPlus not necessarily. But a good crypto system would still be good if it became well known
And it being well known might make it easier to trust it to be good
 
JBL
@jalf Of course ! (That'd be a disaster :p)
 
Fuuuck I forgot to checkin a migration.
 
user142019
7:51 PM
Hahaha.
 
user142019
Owned.
 
Also checking out another branch while db:migrate is running IS A BAD IDEA WHAT THE FUCK AM I DOING.
 
@Jeffrey all hail the flagmaster
Cat has no idea what he's doing :D
 
@melak47 more like a SO sweeper
 
7:53 PM
Also YT Reacts owns.
 
user142019
@CatPlusPlus LOL
 
user142019
As long as you don't do it on the production server. :V
 
Well.
(Nothing happened, shush.)
 
user142019
:(
 
@CatPlusPlus You're doing fine. Just relax and remember to breathe.
 
8:02 PM
@JerryCoffin Would you mind looking over a first blush of the door-opening mechanism design when its finished?
 
@ThePhD Hey, if this project succeeds then I'm certain it will open many doors for you.
3
 
Ahaaa, I see what you did there!
Have a star.
 
Hmm, what is this releases thing. Nice.
 
@R.MartinhoFernandes Downloads page, redone and organized.
 
8:08 PM
How could an individual such as myself make a scrolling where it speeds up when it starts and slows down near the end, and is controlled by rates and positions for the beginning and the end?
 
Interpolation graphs and equations. Look it up.
 
You have to write a programming.
 
Dam
 
@Pawnguy7 I'm pretty sure there was an similiar problem on Gamedev.SE
Let me find it
 
Has anyone here ever used flexc++ before? I suppose it would probably apply for flex/flex++ too
 
8:10 PM
I have a bit of an idea, but I am pretty sure it will not work.
 
~Sigh~
What is scrolling, reduced to its essense?
 
Moving?
 
@ThePhD Scrolling.
 
@CatPlusPlus Have a cookie.
@Pawnguy7 It's a changing value over a span of time. So if you want something that moves quickly at the start, but slows down near the end, that'd be a matter of providing information that tells the changing value what to do at a certain time, right?
 
:D squeee!! new computer
everything is AWESOME!
 
8:13 PM
Ugh, jpg screenshot.
 
@Pawnguy7 Just.... look at this:
 
What's meant by "flushing the buffer"?
 
JBL
@ShuklaSannidhya Best analogy is like your toilet.
 
Pressing the butan.
 
JBL
The sewer is the I/O.
Until you press the button, the data isn't sent to it.
 
8:16 PM
@JBL toilets can overflow, and so can buffers, whoa!
 
@thecoshman gratz :0
 
JBL
@melak47 Heh !
 
Just ask ThePhD about toilet overflows.
 
I can do stuff and other stuff again
 
So it means emptying the buffer to the stdout...
??
 
8:16 PM
@CatPlusPlus =[ Clearly he did not flush...
 
It's a shitty question day.
 
Appears so, yes
 
@ThePhD I think I am more confused now than I was before.
 
@Pawnguy7 You're hopeless.
 
8:18 PM
@Pawnguy7 I know that feel.
 
:lol:
 
@CatPlusPlus It's shitty question week, I've seen at least 6 abysmal linked list implementations amongst other horrors
 
Your fault for reading SO.
 
@Borgleader OMG, an ex coworker implemented a linked list himself in some production code. I cried.
 
@ThePhD I think you are almost last in line of the people that have said that.
 
8:19 PM
I have public static class IRepositoryExtensions that's part of ~repository pattern~ and it's 2k lines long.
And the extension methods are for random things, all lumped together.
 
@CatPlusPlus beautiful
 
> repository pattern
urgh
 
It's not a completely useless pattern at its core, but this is ridiculously bad implementation.
 
oh I see
 
hmm... so we were talking about flushing the buffers...
:|
 
8:23 PM
16 gig may have been more then I really needed, my god is it awesome!
 
@thecoshman There's never enough RAM.
 
True indeed
moar RAM
 
Maybe one day I'll get a new computer.
@CatPlusPlus Mmm, lots and lots of RAM~ Give it all to me~~
 
moar RAM -> moar tabs -> moar porn
7
 
Just how much porn can you intake a once without losing interest?
 
user142019
8:33 PM
Arrrrggg what the fuuuuck.
 
user142019
Xamarin. Y u no documentation on how to use without IDE.
 
Because they only get money from their phone development plataform.
 
hmmm
I wonder if it's possible to emulate a PS3 with playable performance
 
user142019
It is.
 
People can barely emulate N64.
 
user142019
8:34 PM
@Nican What?
 
What do you mean barely? Weve had N64 emulators for years
 
Not all N64 games are supported.
 
user142019
Project 64 worked fine on my crappy laptop four years ago.
 
user142019
@Nican People play N64 games that are not Super Mario 64?
 
Smash Bros.
 
user142019
8:35 PM
Brawl. :3
 
:3
 
@rightfold Brawl is terrible and you know it.
 
It is still the best way to find out who are really your friends.
 
user142019
@GManNickG What?
 
user142019
It's a great game.
 
8:42 PM
@Nican 5
 
@rightfold It's slow and boring, obviously.
 
So is life.
 
fucking singletons
 
singleton simpleton
 
@Aboutblank Global scope is the way to go!
 
8:52 PM
AbstratSingletonBean
 

« first day (990 days earlier)      last day (3967 days later) »