« first day (1402 days earlier)      last day (3529 days later) » 

7:01 PM
 
user784668
@LightnessRacesinOrbit repost
 
@Fanael repost
 
user784668
May 4 '12 at 13:36, by Tony The Lion
repost
 
post
 
user784668
7:05 PM
get
 
superglobal
 
here's another repost, but you can pinstar this one
 
stahp
C++144, holy shit
 
user784668
7:08 PM
C++14, now with 150% more undefined behavior!
 
I've missed few versions I believe
 
Still no modules
 
user image
3
 
Hopefully modules are done in three years.
 
7:09 PM
@CatPlusPlus Still no sense whatsoever :(
 
user784668
@CatPlusPlus They don't introduce enough undefined behavior.
 
@Griwes lol
 
I don't know how to go about this auth thingy
 
@Fanael LLVM does not have the concept of "optimizations are enabled". That's a Clang concept.
 
So I have to make this authentication system in which only staff members can create new "persons" and define their informations (name, date of birth, etc...). Then the user can login with an account (email/password) or via social auth (facebook, google+, yahoo, twitter, whatever).
 
7:12 PM
@Jefffrey That sounds truly revolutionary
 
I was thinking of something like, staff members send an invite email that contains a link that contains a registration code paired with the "person" ID, so that the user clicks the link and can choose either to register an account with the old email/password or connect via social auth.
 
You just need the code
 
Or, yeah, just the code.
 
^
The code is paired with person ID internally
 
The problem is that I don't know how to generate a truly unique ID.
 
7:14 PM
I'd ask for their name as well though, or some other identifying information
@Jefffrey yeah, GUIDs don't exist
 
Read some bytes from urandom
 
@LightnessRacesinOrbit Can they be used for this stuff? I thought they weren't "safe" for random ID generation.
 
So, imbuing std::wcout didn’t allow me to output UTF-32. It took setting the global locale. I’m not sure what to think…
 
@LucDanton iostream s.
 
I’m thinking it’s the implementation.
 
user784668
7:15 PM
@LucDanton C++ locale stuff is shite. That's what I'd think, at least.
 
lol, esr is fucking shite at managing mailing lists. he keeps batch-approving moderated submissions 4 months at a time, then denying any knowledge of delayed mail
 
hashlib.sha1(os.urandom(16)).hexdigest() bam you have an ID
 
@CatPlusPlus what if it collides with a previously generated ID?
 
user784668
@CatPlusPlus why sha1
 
@Jefffrey Then you generate another one
 
7:16 PM
the fact that he then replies to half of them (his emails having current timestamps, whereas the others maintain their original timestamps) within the ensuing half an hour is not a giveaway at all
 
user784668
@Jefffrey Then you have Dark One's own luck.
 
@CatPlusPlus what if it keeps colliding with other ones :D
 
The probability of that happening is extremely low as these will be very ephemeral
 
@Jefffrey Are you expecting someone to be able to guess a GUID and gain access to your system? (Like I said, ask for a name too just to be safe)
 
@Fanael Why not
 
7:17 PM
@Jefffrey There's no way to generate a "truly" unique ID in the way that you're hoping, so you're stuck with IDs that will not collide before heat death of the universe with 99.99999999999% certainty
 
@LightnessRacesinOrbit At that point person_id + registration_code doesn't sound that bad
you also solve the problem of colliding registration_codes
 
@Jefffrey What's the user ID for
 
@Jefffrey Only if they know their user ID ahead of time
I'm talking about two factor authentication, sorta kinda
just to make sure (a) you didn't give out the wrong ID, and (b) the ID wasn't intercepted
 
@LightnessRacesinOrbit The application knows it.
 
It's not needed
 
7:18 PM
@Jefffrey missing the point
 
@LightnessRacesinOrbit You should have stopped at just "esr is shite."
 
The codes need to be globally unique anyway
You don't want to allow a situation where you can change an ID in the URL and have a still valid token
It's dumb
 
Email says "Click here"
User clicks on link
Application loads up in browser, prepopulated with hidden GUID, says "please confirm your surname" (don't use surname though, cos that's not global)
Application verifies that the surname (don't use surname) matches the one it knows goes with the GUID
Application lets user choose how to set up their login
Done
 
user784668
@CatPlusPlus You already have crypto-grade randomness, why feed it to a function that outputs crypto-grade randomness?
 
@Fanael urandom is not crypto-grade :v
Also easy URLification
 
7:19 PM
@CatPlusPlus That's possible by definition. Just impossibly difficult to exploit ;p
 
Well yeah, but still
Why design a dud
 
@LightnessRacesinOrbit The problem is that I don't have this "unique" key. I only have name and date of birth.
 
Are you not listening
 
user784668
 
urandom can run out of good entropy and won't tell you
 
7:21 PM
@Jefffrey Since you only care about its being unique among the IDs on your site, just keep a counter and assign consecutive numbers. If you don't want those easily visible, encrypt them with something like AES.
 
@Jefffrey You just generated the key
 
In a virtualised environment it's really probable, too! I just had a problem of slow startup caused by entropy drain few days ago
 
this isn't hard
 
user3010322
Oh god.
 
user3010322
My backup laptop has stopped charging.
 
7:22 PM
So yeah your random link on the internet is not really worth much sorry
 
user3010322
What do I even do with my life when I get home anymore.
 
user784668
@CatPlusPlus Yeah, that page addresses that concern.
 
> Or Thomas Pornin, who is probably one of the most helpful persons I've ever encountered on the Stackexchange sites:
that hurts :(
anyway he loses cos that site has like 95pt text wtf
this trend of websites you can have to read from 3 miles away is obnoxious as fuck
 
user784668
@CatPlusPlus But yeah, that's a bug in Linux. This is the one case when /dev/urandom probably should block, as in does in pretty much every other *nix.
 
So what you guys are suggesting is: 1) generate random code; 2) check if code exists; 3) if code exists go to 1, if code doesn't exists go to 4; 4) done;?
 
7:24 PM
It won't exist
 
@LightnessRacesinOrbit I like it
I don't have to zoom in
 
@CatPlusPlus "most of the time"
 
@LightnessRacesinOrbit I like it. It's easily readable, even some distance from a big screen with uncorrected short-sightedness.
 
If you feel it would exist, make the space larger
 
I have to consider the possibility, no?
 
7:25 PM
GUIDs are 128-bit numbers
 
@AlexM. I have to zoom out.
@Puppy No it's not. You only get like one and a half sentences per screen. It's dick
 
http://stackoverflow.com/questions/25370583/hide-cat-errors

Nah - post 'em all here!
 
@Jefffrey That's good enough. You will never actually get a collision though.
 
Collision probability on that space is so low, you can generate a shitload of GUIDs offline and be sure they're not used anywhere
Ever
 
(Worth having a contingency in case something fucked up. Cos otherwise well then what)
 
7:26 PM
You definitely want to have a unique constraint on that field
 
@LightnessRacesinOrbit well it was about time someone else worked a bit too :P
I have to zoom in on more than half of the websites I visit
 
I see
 
0
A: Using return to initialize a function

R.T.return {init:init}; is called an "Object literal". It returns a new Object instance with the init field set to the value of the init variable. It would be similar to: var obj = new Object(); obj.init = init; return obj;

who the fuck upvoted this
 
But worrying about this looping more than 2 times is just waste of time
 
@AlexM. get new eyes hth
bbl
 
7:27 PM
It will probably never hit the second iteration
 
Let's give it a limit of something small, like 4 and be done then.
 
@Xeo You might like this ^
 
user3010322
@EtiennedeMartel Repost!
 
Xeo
@EtiennedeMartel So slow
 
user3010322
And Xeo's the one that posted it. :o
 
7:27 PM
Seriously?
SERIOUSLY
 
1>C:\Boost\include\boost-1_56\boost/smart_ptr/detail/sp_counted_impl.hpp(143): fatal error C1001: An internal error has occurred in the compiler. :-(
 
Xeo
yesterday, by Xeo
 
Shameful.
 
user3010322
Hue.
 
What you do want to do is to use uniform distribution
 
7:27 PM
You mean someone else is watching JonTron?
 
@Mikhail lol
 
Who isn't?
 
shit, wrzko vanished from google
fucked
 
Good question.
 
Xeo
@EtiennedeMartel Yes. And I mean that you're slow.
 
7:28 PM
@CatPlusPlus that seems obvious
 
user3010322
I used to not watch JonTron, mostly because I wanted to wait a million years for him to collect a bunch of videos
 
user3010322
and then binge-watch
 
@Xeo Hey, I was away from a computer for a week.
 
user3010322
but I watched the one Xeo linked yesterday.
 
Xeo
So?
 
user784668
7:28 PM
Oh, as it turns out this bug has been fixed by the introduction of getrandom.
 
ahhhhh it shut down
now I literally cannot watch Falling Skies
good job TNT now I can't be a fan any more
 
21 mins ago, by Lightness Races in Orbit
starred anyway
 
uuid.uuid4() good enough?
 
user784668
Probably.
 
7:31 PM
@LightnessRacesinOrbit cough
4 hours ago, by R. Martinho Fernandes
Just got word that C++14 was unanimously approved during ISO balloting. IOW: It's done! #cxx #cxx14 #wg21
 
user784668
So, C++14 support will land in MSVC when? 2020?
 
Woah... already?
 
user784668
@Mysticial It's 2014, FYI
 
@LightnessRacesinOrbit tbh my eyes are fine
it's just that after I got used to big text I find reading small text to be exhausting
 
@Fanael Dates are old school. Everyone knows everything it at least 2 years late. :)
 
7:33 PM
@EtiennedeMartel Ugh tubyoubers with the yelling and camfaces and forced jokes so annoying
 
@CatPlusPlus what is a tubyouber?
 
user784668
A tubyouber.
 
user784668
It's obvious.
 
Stop the random zooming ugh
 
@CatPlusPlus a defora wearing beckneard on derrit?
 
7:36 PM
Yes
 
@nightcracker Someone who youbes in the tub.
 
user784668
Is Chelski getting destroyed right now?
 
user784668
Nope.
 
I didn't know what Chelski was, but I was expecting it to be football related. Googled a bit, first result was this Urban Dictionary entry.
 
@Mysticial They cut most of the features to make it on time.
 
user784668
7:42 PM
@EtiennedeMartel So true.
 
@Puppy Sounds like typical feature launches. Remove everything that won't make it before the deadline. lol
 
user3010322
:O Shiny!
 
@ThePhD been using that for ages already
 
user784668
Does it work on top of PowerShell?
 
7:46 PM
@paul23 You around?
 
@ThePhD linked my console setup multiple times here too :(
 
@ThePhD Old as dirt.
 
user3010322
@nightcracker Oh, I must have missed it.
 
?
 
@paul23 Looks like this, using this to generate the input.
 
7:48 PM
fuck you iTunes
 
The part above // This is how being the interesting bit.
 
I don't think I could have written more annoying software if I'd tried
 
@ThePhD also had this bug open for almost a year github.com/mridgers/clink/issues/88
 
I was half expecting the C++14 feature list to be 10 pages long. I guess I was too optimistic... :(
 
user784668
@Mysticial It's a C++11 SP1.
 
user3010322
7:50 PM
@nightcracker Did that guy ever fix it?
 
user3010322
@jalf How's it getting on your nerves? :D
 
lol you made it actually already? oO thanks :)
 
@ThePhD not sure if trolling or not
@ThePhD but if a bug is "open", it's pretty clearly not fixed :)
 
user3010322
@nightcracker I meant if the ghost guy fixed it.
 
user3010322
And had like a personal patch.
 
7:51 PM
Seems nice - only drawback is that for large files you copy the whole file (instead of line-by-line).
 
that "ghost" is me
it says ghost because it was imported from google code
(clink used to be hosted on google code and switched to github)
 
I don't think Clink works with PowerShell
 
> - Very basic support for Powershell.
 
user3010322
@nightcracker Ooh. Everytrhing makes sense now then.
 
@paul23 That’s mostly due to the streams interface, which is one byte at a time. If e.g. you lazily memory-map a file you can make transforming, striding iterators over the file out of some pointers.
 
7:56 PM
@Xeo Btw, did you finish all levels? (At l34 right now.)
 
So, mostly dumb streams and no ranges. Sad.
 
@StackedCrooked cross reference fail
 
Thanks for telling me :)
 
Well it doesn't work with PS in ConEmu
 
Xeo
@StackedCrooked ye
 
7:57 PM
So whatever
 
I notice we have C++14 in the starbox :)
 
@Mysticial Nah.
 
@ThePhD my console setup is a hidden console that you can always get to pop up with the global hotkey WinKey + ~, then you get a borderless window that holds nine consoles ctrl+1-9. my #1 console is always opened in a python interpreter with libraries imported that make it a really really fancy calculator
 
user3010322
That's pretty decked out and kinky.
 
then the consoles I use are using clink and some other stuff I have set up
but other than that just regular cmd.exe
but the main advantage of this is that you ALWAYS have a ton of terminals available in two keypresses, without screwing up your "alt-tab" history - you can freely alt tab between your browser and editor without the terminal getting in the way
 
8:06 PM
In Java it's not possible to use a Point class without heap allocation, right?
I say Point because it's just a pair of ints.
 
user784668
@StackedCrooked At source level, yes. The JVM may optimize it, though.
 
I assume the only way to avoid it at the source level is using array of int[] (x, y, x, y, ....) to store state..?
 
user784668
@StackedCrooked Dunno, don't remember Java all that well.
 
8:09 PM
I was just curious because I just noticed there's a proposal for value types in Java.
 
user784668
So it's probably going to be finally possible in Java 9/10/11/9000.
 
Xeo
@StackedCrooked Ugh, don't remind me of Point classes
 
@Fanael C++14 support in MSVC? They need to get C++03 right first
 
Xeo
I fucking hate that you have to seperately allocate every single one in AS3
it's a fucking performance hog at times
 
What's a shared_mutex?
recursive mutex, or rw-mutex, or semaphore..?
 
8:16 PM
Yes
 
@StackedCrooked RW mutex.
 
Oh, wait, there doesn't seem to be a shared_mutex. Only a shared_lock.
Or maybe cppreference is not up to date yet.
@VáclavZeman I see.
 
@TonyTheLion What film or TV series is this from?
 
8:20 PM
@VáclavZeman imgur.com/TvbTg0k
 
You are both awesome, @LightnessRacesinOrbit and @CatPlusPlus.
 
hey, that's the TARDIS!
@Xeo wtf???
 
@ThePhD in about a million different ways, but the one that's driving me nuts right now is that it's playing the episodes of this podcast I'm listening to backwards
I can make it show the episode oldest to newest, but it'll still play them newest to oldest
BECAUSE WHY THE FUCK WOULD WE DO WHAT THE USER WANTS, WE'RE FUCKING APPLE
 
@Xeo I sow "Comic Studio" and I though it would be Visual Studio where everything is in Comic Sans.
9
 
@Nican :)
 
8:30 PM
@VáclavZeman hi :)
 
does anyone here use Doxygen?
updating doxygen made this happen:
kind of weird
 
I need to place integers in shared memory and read/write them from multiple processes. Does anyone know how to atomically do that ? (ala std::atomic<> )
 
I got a new pic guys
 
Such bait.
 
terrible
 
8:35 PM
Now we need some text to scroll that picture up the screen.
Otherwise my boss is gonna ask some questions.
 
Someone flagged it lol
 
:(
I thought you nerds would like it
I got new glasses
 
@LightnessRacesinOrbit -1 glasses too large. look like leftover from the '80s.
 
@EtiennedeMartel Inspect element and delete it.
 
5 mins ago, by Rapptz
user image
:D
 
8:39 PM
<3
 
this bug thing annoys me
hmm
I can't find it on their bug tracker
 
> Linux NTPL 2.5 (Ubuntu 7.04) was used in the testing of Lua Lanes.
LOL
 
> PC Software (C++) Engineer
what the hell kind of job is that?
 
a job where you make software for PCs using C++
 
I think its a trick to make it sound different to all other C++ jobs
> CONFIDENTIAL
ooops
 
8:48 PM
boo
 
@Rapptz A bug they don't know about yet? Impossibru!
 
well considering how 'obvious' it is and it's been months since this version was released..
I think it's just my problem
 
There is no problem at all.Program runs fine.No errors at all. — user3272483 4 mins ago
 
9:09 PM
@TonyTheLion Helpdesk
 
user3010322
@CatPlusPlus "Support Engineer"
 
Maintenance forever
 
You're fetching rows one after another in a loop. That's an unnecessary overhead. Also it won't work past certain amount of data. — Tomasz Kowalczyk 12 mins ago
whut
 
@LightnessRacesinOrbit That's also a repost.
 
@EtiennedeMartel 404: flying fuck not found
 
9:21 PM
Well, almost.
The subject has already been discussed.
The article itself is new.
 
yes I imagine the author discussed it first
probably Facebook too
 
Start there.
If you would like to continue the discussion, feel free to give your opinion.
 
Pretty short, but yeah.
 
yeah
it hurts too much to make a full argument
 
9:26 PM
I guess there isn't much to say about it.
 
FB can do one
 
That said, FB's doing it because some people have been asking for it.
They're just responding to user requests.
 
Yeah, but, moron people
They should at least ask who's happy with things the way they are
People who dislike the status quo are the only ones you hear from, usually
Anyway if I made a "user request" for them to fix their buggy-as-shit fucking software, I doubt they'd do that
 
Fixing their codebase is also much more expensive than adding a [Satire] tag to any URL that matches a well known "satire news site".
And has a more easily visible effect for most of their users.
 
TBH, it took me a minute to understand the first time I have hit the Onion.
...long time ago.
 
@StackedCrooked it's called shared_timed_mutex
 
@LightnessRacesinOrbit That said, it makes me wonder how FB will handle crap news site.
 
@Cubbi I wonder why they did not simply call it shared_mutex.
 
Aha.
A wise move.
 
9:44 PM
btw, in case nobody leaked it in here yet, C++14 was approved with 0 negative votes (except the Japanese voted "approve with comments")
 
it's on the starboard
also what were the comments?
:O
 
@Cubbi Repeatedly.
 
Don't they always vote that
 
Ah, I'll shut up then. Didn't see the comments yet.
 
@EtiennedeMartel yeah
who gets to choose what is Satire? not "real news"??
it should be self-evident that this is a bad idea
 
9:50 PM
Fox News is pretty unreal if you ask me.
 
but people are superthicknowadays
Yeah this obviously belongs on maths.seLightness Races in Orbit 41 secs ago
trollolol
 
@Cubbi Same happened to me :)
 
2 hours ago, by Lightness Races in Orbit
@Fanael C++14 support in MSVC? They need to get C++03 right first
 
It's now time
 
apocalypse time?
 
9:57 PM
@ecatmur That's not how you're supposed to do tag migration.
terrible
 

« first day (1402 days earlier)      last day (3529 days later) »