« first day (1269 days earlier)      last day (3905 days later) » 

00:00
@sehe This answer (to what looks like a homework answer) is essentially "go copy the standard implementation, heres how to get to it". I would have downvoted as well, but cant be bothered.
@Borgleader Well, actually, I think it answers right on the level where the OP is for learning:
i haven't found the vector header, and if so, i also would like to know how the methods where written, to see if they are as efficient as i think, or to re-write it. — ekiim 29 mins ago
@sehe I think coming up with an implementation yourself will teach you more than looking it up but I could be wrong
Yup. However, he was definitely curious how vector did it. It's an essential skill to be able to "go figure that out". I mean. Two things or your fried: 1. know how to use google. 2. know how to read your own damn sources
@Borgleader Also, on the philosophical level that renders all answers equally evil: it's still "looking it up somewhere authoritative". Everybody learns by mimicking. Even you
user1804599
Time to watch rrerr.net until 2:30 and then go to sleep.
00:17
I just found another old answer that shows the -Wl,rpath approach (something tells me SO search is not that useless after all) — sehe 1 min ago
Darn. That's 3 answers on very similar questions without a single vote
rpath is fun when you move things around
> It is a language that needs to be programmed the hard way
@CatPlusPlus I warned :)
are there any specific topics this room is designed to answer or can I ask anything?
The topic kinda gave it away
00:19
Also -Wl,-rpath
hah noted
You specifically cannot ask to ask :)
I asked this question: stackoverflow.com/questions/22900890/… and was wondering if someone could take a look. To sum it up, I'm wanting to load data local infile ... and update all the other table records not in the imported csv. Not sure if triggers or multiple statements in a transaction would be the best way to go about doing it
I'm messing up my edit history :(
@sadmicrowave Many people are giving it a look. The Law clearly discourages drive-by linking. Also, paraphrasing it here too isn't helping if there's a whole question about it too
ok thanks for heads up - and 8 views is considered "many"?
00:24
Enough, really. Are you in a hurry? That's in 1 hour.
Ahahaha. I'm going to have to bin this. - really :|
yea, I'm in a hurry, guess I'm just impatient... sorry
I'mma sleep. Night all
00:51
@sehe G'night.
 
1 hour later…
01:53
reminds me to not get animals as pets whatsoever
02:10
@telkitty.exe Rocks as pets require a great deal less care (but do tend to respond less to love and kindness).
pets are very time consuming ...
I can't stop staring at them
@JerryCoffin not sure about rocks, but rock oysters would be nice - have not had any for more than three months ...
@telkitty.exe Seem like a better choice as food than a pet.
unfortunately people tend to keep animals as pets - vast majority of which are edible
@EtiennedeMartel Oh right, we have to vote tomorrow
anyone know about hashing and salting here?
@deostroll I like salt.
02:49
Seriously, I mean the cryptography concept, and not angelina jolie movie.
@deostroll If you want things taken seriously, you're probably in the wrong place.
:-)
Then, in case of salted and hashed passwords, the only way of match is in determining if the user-provided string is a subset of the un-hashed string, right?
So we do something like a contains-search for it.
Or can we isolate the salt?
@deostroll You normally check for a match by adding the salt to what they enter, hashing the result, and comparing to the hash you have on file for them.
But salt is a random string added to user-string, so the two hashes won't be the same?!
@deostroll What you store is the hash of their password with the salt. When they enter their password, you add the salt the same way, hash the result, and compare to what you got when they set the password.
If you mean the salt will change between originally creating the password and attempting to verify it, then no, that shouldn't happen. Salt should remain the same for the life of the password. The intent of salt is to be unique for each user, so two users with the same password will still have different hashes. It doesn't need to change over time though.
03:02
so you are saying we have to retrieve the salt specific to the user in our applications?
@deostroll If your application is going to verify their password, yes.
How will hashing be done on a web page?
I mean is that a good idea?
@deostroll If you're going to verify their password on a web page, you typically want to use a challenge response protocol. The server picks a random number and sends it to the user. The user enters a password and code on their machine uses their salted/hashed password as a key to encrypt the random number. That's then sent back to the server. The server also encrypts it with its stored version of the user's hashed/salted password. If the two match, the user is verified.
This avoids sending the user's password over the wire in any form and prevents replay attacks--if somebody snoops on the exchange and tries to log on with the same data from the user, it'll be the encryption of a different random number, so it won't work (and the server should log it so you know about the attempt).
03:17
@JerryCoffin "code on their machine" - I am guessing you are referring to javascript?
@deostroll yes, for a web page that would be the obvious choice.
Xeo
Xeo
fuck. I have slept roughly 2.5h, feel awake right now, and have to be at work in roughly 4h
Challenge/response is really uncommon on the web
Xeo
Xeo
what the fuck's going on the last couple days... I can't seem to properly sleep.
That is, almost nobody does it
03:21
@CatPlusPlus Decent security is really uncommon on the web.
Plain passwords tunnelled over TLS is standard
Man, this is some deep stuff I have stumbled on to...
@CatPlusPlus In some ways that's probably better--it leaves the hard parts to somebody who might know what they're doing. At the same time, it means screwing up TLS configuration can completely destroy any hope of security.
If they screw up TLS config, they'd probably screw up C/R too :v
@CatPlusPlus C/R is up to the developer. TLS config is some IT guy.
03:29
Sysadmins are typically better at security than webdevs :v
@CatPlusPlus I'll have to take your word for that. It's hard to believe anybody could be worse at security than most sysadmins, but I don't know many webdevs.
Also C/R requires JS and doesn't degrade so
 
2 hours later…
05:24
This is boring...
May as well open a beer.
But there's nothing so lonesome, so dull or so drear,
Than to post in a chatroom, no friend but my beer.
05:36
06:07
0
Q: Efficiency ratio

telkitty.exeAs Stackoverflow gains more users, questions and answers on this site, or network of sites increase exponentially too. On the other hand, the amount of human knowledge does not increase nearly as fast. So in theory, any new question will provide decreasing amount of value to the knowledge databa...

@TonyTheLion morning
did you bring any food? I'm hungry.
morning!
06:24
@melak47 you can't ask a lion for food
@melak47 he's on top of the food chain
0
A: What is the name of this operator: "-->"?

chouaibif you tried : while ( x--> 15) // x goes to 15 in your opinion you'd have figured it out yourself rather the right x goes to 15 (starting from 10) is : while (x ++<16 ) would freak you out !! :)

^^ burn it
Hey everyone
06:33
Straw every-won.
06:53
Clover u2
@pasztorpisti "opensource makefiles sometimes tend to overwrite/modify existing sources" - citation needed. There's nothing particular about open-source "monster" source trees. — sehe 52 secs ago
user1804599
07:09
> Man and wife make one fool.
user1804599
Wise words from fortune.
user1804599
@TonyTheLion lange tijd geen zie!
user1804599
-1
Q: bad_alloc when creating 20k array

RobsI have to do some kind of project and I'm stuck. I'm getting an bad_alloc error. I checked code a lot of times, tried to google some solutions, but still nothing, that's why I'm writing here.The thing is the program runs normally, but at the task manager he memory usage raises to 2GB(that's the l...

user1804599
And I get hungry when I don't eat.
@TonyTheLion ohi
haven't seen you around for a while
Xeo
Xeo
07:30
so yeah, fuck today.
around 2.5h worth of sleep.
user1804599
meh cba
Hey, did you hear? Kate Middleton got off a plane.
or, well, she would have if that were her name
Xeo
Xeo
@jalf Btw, in my endless sleeplessness today I decided to check how much flying to Japan alone would cost. Around 1k for economy from a quick look. :/
@Xeo Might be cheaper if you fly with a couple hundred other people.
07:35
@telkitty.exe That's swimming
No, it's wormholing.
@R.MartinhoFernandes I saw The Event too
@R.MartinhoFernandes Okay.
I just saw some silly theories in the press.
07:38
morning all
user1804599
Hi mate.
@LightnessRacesinOrbit walking you mean ... not much ocean between Germany & Japan
@LightnessRacesinOrbit wisdom
@rightfold wow. much pirate
user1804599
Do what you want 'cause a pirate is free.
07:46
@telkitty.exe MH350 didn't go between Germany & Japan.
user1804599
lol
Xeo
Xeo
@sehe But he wanted to boost his thread!
@Xeo 1k what? Euro?
@Xeo I know. We also often get SOLR search engine question
Xeo
Xeo
07:49
@jalf aye
1k yen would be nice.
I'd best get to work
I was born in a communist countries - there is no God, kings, queens, princess or designated gender role so I was taught when I was young. Which is a good thing, amongst all the other evils.
see you in two hours or so
Xeo
Xeo
wtf
Yeah, sounds like about what I'd expect. Might be able to shave a bit off of it by wiggling the date around a bit, but it is pretty far away :p
07:50
lol "no designated gender role" shut up and go have babies a baby
People are taught to be slaves ... they don't even realise
user1804599
1k yen for flying from Germany to Japan? :v
51 secs ago, by telkitty.exe
People are taught to be slaves ... they don't even realise
user1804599
Is it a plane in which you must stand?
Xeo
Xeo
Markdown on the mainpage is acting stupid. `some code with \`backticks\` in here` doesn't escape the backticks like it does in chat
user1804599
07:52
They cannot change it; it would break existing posts!
Xeo
Xeo
You have to use stupid <code></code> tags
Yeah, because, you know, data-migration is an impossible job
Xeo
Xeo
and then escape the backticks in those
user1804599
@sehe My colleagues thought it was funny when I made a tool for running "databaseschemamigraties" because the word is so long.
Xeo
Xeo
> To include a literal backtick character within a code span, you can use multiple backticks as the opening and closing delimiters:
bleh
bet that doesn't `work` in chat
oh, it does
then that's cool
08:03
`````?
aw
¬_¬ case sensitivity can be really annoying sometimes
user1804599
\
user1804599
Awesome!
Xeo
Xeo
interesting
08:14
Peeps, kudos for helping James out just now:
@dotMorten Actually, I found it when I put my phone back in my pocket after tweeting that. So in a sense, you all were most helpful. :-)
user1804599
Man.
@rightfold databaseshenanigans /FTFY
user1804599
I am going to die.
user1804599
Just like all of us.
so?
no need to be afraid
08:15
unless it's tomorrow :D
Just clicked the publish button to make Roslyn open source. https://roslyn.codeplex.com/ #roslyn
be glad you are even alive
user1804599
@VáclavZeman lol April 3.
user1804599
Thanks for the news!
lol
You are welcome!
08:17
I am so daring because I know we are all going to die ... any consequence of my disobedience is only going to be short lived because I have a short life ~_~
Isn't life wonderful? ^_^
ask cat
Oh, the other reason why life is wonderful - because I am born a slightly happier person than most others :D
yawn
Why do people fall for gadgetism
why do people fall for fashion
or put chemical on her face/lips
They don't. Uhoh. Sample bias
08:21
@sehe because I loved this guy:
@telkitty.exe I pretty much scold my wife when she does. Nah. In fact, I just cringe and lovingly let her know I do
user1804599
Schizophrenia? I call it rubber duck debugging.
Same difference
Oo g2g, brb
user1804599
@Jefffrey At the airport they have Gadget Inspector.
08:22
@telkitty.exe Oh well, we can still dream
@rightfold not as cool as the real one though
@sehe but we are still going to die, yeah?
@telkitty.exe maybe
@telkitty.exe Well, none of us have died so far.... That's a pretty good track record. :)
4
are they going to seriously work on modules in C++ before I die?
Xeo
Xeo
08:29
nah
I'd really love to see #include gone
And compile times that take less than a minute.
stop using template recursions!
@Jefffrey That depends on how old you are and when you are going to die. :)
I would, if the project I was working on was not heavily based on Eigen.
Or we could all just write in Rust. [/takes cover]
Shame Rust has to shorten everything
does anyone familiar with an efficient way to implement this?
A good morning to the friendly folk of the lounge!
"friendly"
08:38
@Jefffrey It's a radical change. It will take time.
It probably won't make it by the time I die though.
@Rapptz afaik work on it has slowed down a lot though
Xeo
Xeo
The first kind of modules in C++ will be nothing like import in Haskell for example
In that talk he mentions some kind of transition from headers to module-thingies
@NikiC What's up?
lol I sincerely doubt they'll do a second iteration of modules
but who knows
08:47
@Xeo Now do it with normal text too.
Xeo
Xeo
@R.MartinhoFernandes ?
Like this, but with backticks in the code.
Xeo
Xeo
56 mins ago, by Xeo
Markdown on the mainpage is acting stupid. `some code with \`backticks\` in here` doesn't escape the backticks like it does in chat
?
I didn't use 4-space indentation in that one message
what sort of monster uses 3 space indentation?
@thecoshman someone who's very eager to compromise?
Xeo
Xeo
08:52
@R.MartinhoFernandes And if you meant with double backticks, I guess `that` just works?
@YankiTwizzy interesting stuff. And, lolwut `System.out.print("I am here yaaar");` is ... exceptional exception handling :/ — sehe 14 secs ago
@jalf geeze, loaded question for a reason, they are monsters, not people.
@R.MartinhoFernandes He uncovered a bug in PHP that renders (all?) type casts unsafe. Old news. But it brought some loungers to the PHP room - and vice versa it would appear /cc @NikiC
TIL MySQL Enterprise/MySQL Cluster Carrier Grade Edition has PITR since version 5(?) dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html
I wonder if programming challenges & code golf will ever evolve into something like topcoder
@Rapptz second?
08:55
> "Mysql Cluster Fuck Editionâ„¢" $10,000/server/year
That's all editions.
user1804599
lol
@AlexM. I think the point of programming challenges and code golf is to prepare your mindset for similar challenges on topcoder?
09:08
@rightfold what's the & that disowns so you can close shell?
09:18
@R.MartinhoFernandes trainwrecks C++ style...
@thecoshman I'm not disagreeing with you :p
@ArneMertz TBH I see this kind of "string builtin"-ly typing mess more in, say, Python, C# or (the epitome:) Perl
lol I picked the worst time to launch. Munar eclipse is depriving my craft of solar power :E
user1804599
@thecoshman &disown
user1804599
I often do chromium &disown; exit and thunderbird &disown; exit.
09:24
@melak47 Burn!
it's ok, I have...over 6000 EC in a battery o.O
@rightfold I always just use thunderbird& and it's no problem whatsoever when the shell exits
SO is particularly bad these days
user1804599
@sehe oh
people just trust you when you have 10k+ rep
09:27
@Jefffrey Y U DELETE
@jawrainey I always saw the site as something made just for the heck of it
but some of the challenges there look really serious
@sehe because it's wrong
and engaging
user1804599
% thunderbird&
% exit
zsh: you have running jobs.
@AlexM. Yeah, you can even earn money completing them!
09:27
@Jefffrey mutual includes are wrong :)
@rightfold oh well. zsh...
@jawrainey not sure we're talking about the same site
I'm talking about
@AlexM. Indeed. I meant topcoder :) That site is nice to though. Always that one guy using brainfuck
I posted one bra*nfuck answer there once.
user1804599
@sehe zsh ftw.
30
A: Fibonacci function or sequence

R. Martinho FernandesBrainFuck, 22 strokes +>++[-<<[->+>+<<]>>>+] Generates the Fibonacci sequence gradually moving across the memory tape.

user1804599
09:30
You cannot forget about running jobs this way. :P
@R.MartinhoFernandes 22 strokes indeed. Enough to kill a Titan
It looks pretty when executed.
@rightfold why would you?
reptyr <pid> # reptyr can be used to reattach a program on another tty to the current tty so you can transfer it into screen/tmux.
@R.MartinhoFernandes Many crooks look prettier when executed
user1804599
@sehe because users are dumb.
user1804599
They must be protected from doing stupid things.
user1804599
09:33
@sehe omg
user1804599
Better than GDB. :V
It's just irrelevant. My ps shows I have ~230 jobs running outside my shell. I don't mind
@rightfold fuck, how am I going to remember to use &disown when I want the shell to disown a program!
@thecoshman nohup?
09:47
@thecoshman Make a function?
$ fnf firefox
(fnf standing for "fire-n-forget")
ah, never mind. I was pretty sure you could just do nohup -p <pid>. Doesn't seem to work with the nohup on my machine though.. Hrm
3
Q: Monday morning mistake: sudo rm -rf --no-preserve-root /

Jonas NielsenHere's a an entertaining tragedy. This morning I was doing a bit of maintenance on my production server, when I mistakenly executed the following command: sudo rm -rf --no-preserve-root /mnt/hetznerbackup / I didn't spot the last before / and a few seconds later, when warnings was flooding my c...

looks like someone had a bad day
How do you even type --no-preserve-root accidentally?! :-o — ThatGraemeGuy 3 hours ago
Greame, the keys are like right next to each other. — MadHatter 3 hours ago
4
That
@R.MartinhoFernandes it'll soon get tedious doing inview silent disown :P A function for those functions jfw (just fucking work)
The most sensible bit of advise is missing: "don't type options that you don't intend to invoke, such as --no-preserve-root or --permission-to-kill-kittens-explicitly-granted, for that matter"user22394 5 secs ago
09:58
@thecoshman What?
@jalf I used to do this on AIX/TRU64; seems like a "true" UNIX-y thing
@R.MartinhoFernandes I just firefox& exit WorksForMe(TM)
Why would you want to exit?
@R.MartinhoFernandes I have a function that will run commands in a clearcase view (so those programs can see the vobs), I have a function that redirects of cli output to dev null
@R.MartinhoFernandes I'm just saying that you can
@AlexM. How.
@AlexM. No. It looks like someone is dumb as fuck.
Seriously.
How do you accidentally type --no-preserve-root.
The only explanation is pure distilled stupidity.
10:00
^ that
The other explanation is 'Attention Whore Syndrome', which under DSM-5 (2013) files under "Refined Stupidities" as well
user1804599
OH MY GOD
> pure distilled stupidity
lol I'll save that
@rightfold Speaking?
@R.MartinhoFernandes rm --n[Tab] where n is typo? Not that it's particularly realistic, but that's the only way I can think of to accidentally type that...
user1804599
@sehe He thought it meant "no; please preserve root."
user1804599
10:04
Also tab completion perhaps. :P
@NikiC And then go on typing /mnt/hetznerbackup / without noticing it...
Xeo
Xeo
GoingNative is dead, long live CppCon
welp, lunch time
guess I'll just nap
@R.MartinhoFernandes I can re-use this, right?
@R.MartinhoFernandes The qualification :)
@TomTom this is actually not why backups are needed. Because, "distilled stupidity" [1] has the potential to ruin backups just the same. Backups are there for cases of accident or emergency. ([1] re-using with permission) — user22394 55 secs ago
user1804599
pure distilled stupidity-qualified void
@NikiC /etc/bash_completion doesn't source in root shells, by default, I think. With VeryGoodReason(TM)
user1804599
> user22394
Yeah yeah. It's old. I never go there.
10:27
balls, I want to watch this talk, but I've got 284kb/s download speed.
fucking swamp.
just wax it up boy
user1804599
10:42
@thecoshman That's what she said.
nah, she said to lube it up baby
user1804599
user1804599
I am going to die. :E
we all are
life depends on death
10:58
Are you sure it is not the other way around? "Death depends on life"?
quite sure.
there would be nothing available for new life forms to grow if the old ones didn't die.

« first day (1269 days earlier)      last day (3905 days later) »