« first day (1770 days earlier)      last day (3184 days later) » 

user406009
4:00 AM
Having both null and undefined is just stupid.
 
user3047181
@Lalaland ohh huhuh nvm i can take it cos I'm the js guy lol!
 
@MeltyButter if you write any CSS you see it from time to time. you have to specify what browser you're targeting for certain styles
 
user406009
Not to mention this binding, variable scoping, etc, etc.
 
user3047181
@ʞɔᴉN nono i use clever new js standards that handles that for me...
 
user406009
caniuse.com is the tool to determine whether or not a prefix is needed.
 
4:03 AM
@Lalaland love that site, it's so helpful
 
user3047181
@ʞɔᴉN nah there's too many rules. websites shouldn't need that many rules
 
@Lalaland JS definitely requires a whole different approach to writing code, i wouldn't say any of it is particularly bad though
@MeltyButter ?
 
user406009
All three of those things I mentioned are pretty much objectively bad.
 
user406009
So much so that JS is trying to patch around 2 of them in ES6.
 
user3047181
depends on how conplicated a website you're making
 
user3047181
4:06 AM
unless you're making amazon.com
 
user3047181
ya pretty much dont need to learn a loada shite about js rules etc
 
user406009
Those newer features make your job easier in many cases.
 
not gonna lie I haven't really gotten started with ES6 yet
 
user3047181
why say job easier? i can just get you a couple babie
 
user3047181
4:10 AM
*babies, just for party points
 
4:53 AM
I always go for simple scoped locks.
I assume that code aims to minimize contention.
 
user406009
They are manually implementing condition variables.
 
user406009
Interesting.
 
user406009
I wonder what problems they had with the provided ones (boost.org/doc/libs/1_58_0/doc/html/thread/…)
 
maybe they want to avoid boost_asio depending on boost_thread.
i mean avoiding to require the linking with boost_thread when using asio
not sure
 
Hello @abhishek_naik
 
user3576734
5:08 AM
Hello @DonLarynx
 
5:18 AM
Hello @chmod711telkitty
 
 
1 hour later…
6:39 AM
ooh, who fixed up feeds to not one box?
 
Hey @DonLar
 
6:56 AM
Hello
 
Xeo
@StackedCrooked Asio also exists (existed?) outside of Boost, with no dependency on it IIRC.
 
user1804599
7:16 AM
> SpaceX will get you to Mars.
SolarCity will power Mars
Tesla will allow you to drive around Mars.

Everything is joined up in Muskworld (previously known as Mars)
 
user1804599
dat plan
 
user1804599
 
7:37 AM
@CatPlusPlus I don't get what we can do now that we couldn't before...
 
@MaiLongdong Can all that (i.e. pre-generating many random bits in parallel) be hidden inside a C++11 style random "engine"? My current understanding is that the answer is no because engines should expose their internal state. I cannot pregenerate numbers drawn from a distribution because the distribution parameters change with every call. Instead I'd need to pregenerate random bits which will be utilized by the distribution later. Is this possible?
 
user1804599
@thecoshman Being confused by this new feature.
 
oh very good job, automatic commits broke the CI
@elyse Oh, it's working marvellously then
 
7:58 AM
@Szabolcs I don't understand, you are drawing random numbers from a different distribution every time?
 
@MaiLongdong I am using uniformly distributed integers, but the bounds change every time. Sometimes it's 0..10, sometimes it's 0..13, etc.
 
(But yes it is possible to pre-regenerate random bits, see random_device)
 
@MaiLongdong Maybe I misunderstood your comment yesterday. I thought you meant that if I need performance, I should consider pregenerating the numbers in parallel. That would be easier if all the numbers came from the same distribution, but in this case they don't. I was wondering, if in principle it's possible to create an "engine" that does the pregeneration behind the scenes, and let distributions use that engine normally.
But then I read that the engine state must be transparent, so it sounds like that's not possible.
Since I'm just learning C++11 <random>, maybe I'm wrong :)
 
Yes, I thought you were generating numbers from a single distribution, but this is not the case, so indeed you can't.
However, you may pre-generate the random bits that the distribution uses upfront.
 
user1804599
8:03 AM
Ugh, our robot ran out of battery power before it could reach the charging station.
 
@elyse Omg how did that happen @R.MartinhoFernandes are you okay
 
user1804599
No, the company robot.
 
user1804599
If you use std::map with a bad comparator, e.g. one which returns random Booleans, and insert many items, is the behaviour undefined?
 
@MaiLongdong I thought random_device was for nondeterministic random numbers and that it was slow (i.e. unsuitable for Monte Carlo)
 
8:06 AM
Wait. I think I got confused.
Yes, you do want a custom engine, sorry for the confusion.
So now what do you mean by "the engine state must be transparent"
 
user1804599
Transparent is when Sean becomes a woman.
2
 
firefox is cool
 
You usually use random_device to seed a faster engine, like mt19937.
 
@elyse that amazing pun
 
Mersenne Twister is also cool
 
8:11 AM
> I've came across with this sample of code provided by a book. Btw this book has bad reviews. I regret that I bought it
lol
 
@MaiLongdong If I remember right, yesterday I read somewhere that the internal state of conforming C++11 engines is essentially accessible to the user. I can't find this anymore so maybe I'm wrong. In this tutorial, it say: "Engines of the same type can be compared for equality/inequality." I was worried that this requirement might be incompatible with pregeneration.
 
user1804599
@TonyTheLion it's really bad
 
Or at least makes the implementation difficult ...
I should look up the exact requirements on engines.
 
It only means they must provide op= and != that compare the internal state of the engine, which in your case is the state of the underlying engine + the pregenerated numbers, isn't it?
 
@MaiLongdong Well, it should be the state of the wrapped engine at the time when it generated the number that is next in queue (which is due to be returned by the wrapper).
 
8:15 AM
> Fixed OpenSSL vulnerabilities (CVE-2015-4000, CVE-2015-1788, CVE-2015-1789, CVE-2015-1790, CVE-2015-1791, CVE-2015-1793 and CVE-2015-1792).
jeesuz
OpenSSL failling...
 
Since many numbers were pregenerated, I'd need to be able to skip back from the current state (or skip ahewad from the starting state) to the correct position
 
Or just keep the count of generated numbers. Since they are deterministic, state + number of calls should be enough I believe.
ie, if both gen A and B have had N calls and are in state T, they are equal.
Only works on deterministic RNGs ofc.
 
user1804599
@TonyTheLion don't use OpenSSL
 
can dogs be distrained?
 
@MaiLongdong What if A had N calls after it was wrapped, but B had 2 before the pregeneration started, then N-2 calls after? They are still equivalent.
But maybe in practice it doesn't hurt to "lie a bit" and say that they're not.
Maybe distributions don't even use engine comparisons, so it's a moot point.
 
8:18 AM
I don't understand your question
There is no "after is was wrapped"
 
@MaiLongdong that is indian english
thecoshman can translate it for you
 
Where can I find a description of what an engine (or an adaptor) must implement? I'm having trouble finding this on cppreference.
 
concept RandomNumberEngine
 
@MaiLongdong It doesn't matter, I think it's irrelevant anyway for what I need to do now, so I won't pursue it. I have enough to go on, thanks for all the help! :-)
 
ppl, help! it seems like everyone can open Pattern Maker v4 xsd file in their apps, except me. Is anyone knows where i can find file specs? or maybe lib or framework to parse this files?
 
8:28 AM
Sorry our local Pattern Maker v4 xsd file expert is currently not online, try again later perhaps.
 
@MaiLongdong What I meant is that suppose we have two engines of the same type, A a,b;. We seed them with the same seed. Then we b.discard(10). Next let x and y be "pre-generators" that use a and b, respectively. Now do x.discard(10). At this point x and y will give the same sequence of numbers so they're equivalent.
Of course if I don't create this situation artificially, it won't happen.
That's why I said I won't pursue it.
Just didn't want to leave your question hanging.
 
@FertoVordalastr What does the file look like in a text editor?
 
@Szabolcs No, you don't get it, the engines are wrapped by construction. You can't access them from outside.
 
@edition it's binary. i've cracked most of it. Found color infos, some stitches info, but there's some kind of data pack, i can't figure out.
@edition this is the only one part of file, that changes every time i save NOT CHANGED data. (((
 
@MaiLongdong However, in principle (and depending on the method), using two different seeds at construction may create the same situation. It is in principle possible that A a, b; a.seed(s1); b.seed(s2); b.discard(n); creates internal states so that a == b. With some methods different seeds guarantee different streams, but that's not always the case. But yes, now I do see that this is more of a theoretical problem than a practical one :)
 
8:34 AM
Seeds are irrelevant
If the internal state is the same, the generators are equal
 
@FertoVordalastr What would you expect the data pack to contain?
 
this is chunk of grid whit ccordinates. in empty chunk (2 blocks by 4 bytes) - this must be start position of region and end of region and some of coordinates. maybe <regionstart><regionend><amount of elements><type of element><coordinate> <type of element><coordinate> <type of element><coordinate>...
 
This is not a file reversing forum
 
@FertoVordalastr so you need to reverse a file?
we can help you!
 
by pointing you to
 
8:46 AM
you can easily do it with Python
reversed(list(open('file').read()))
 
LOL
that caught me off guard
 
@Abyx except reversed returns an iterable :)
 
if, in class A I have a pointer to Class B, and call class B's method, how can I include ClassB.hpp w/o causing an infinite loop? (because ClassB.cpp also includes ClassB.hpp)
forward declaration isn't working because I call a method, and include guards don't seem to be preventing the loop. some methods in Class B have pointers to Class A, but no A-method-calls
 
You do have 2 headers and 2 impls?
 
8:53 AM
Then your header guards are wrong
 
snap. they're all:

#ifndef __FILENAME_HPP_INCLUDED__
#define __FILENAME_HPP_INCLUDED__

[contents]

#endif
 
Don't use __
 
@AmagicalFishy reserved identifiers yo
 
oh
hm. still getting infinite include loops :(
 
Still doing something wrong :D
 
8:58 AM
shucks
 
Header guards don't help against circular dependencies, yo.
 
@Abyx YAY!!! i broke my head already ((( this is binary. i've reversed most of it and stuck...
 
ugh, time for some plonking
 
@Griwes yeah. i thought forward declaration would help that—that is, i can forward declare class A in B's header file (since B only needs an A-pointer)
and include B.hpp in A, since A actually needs to call a B-method
 
Yes you can.
You're just doing something wrong and only god knows what.
 
9:00 AM
I have a huge problem: I like sublime text but it doesn't feel much hacker. Vim feels definitely much hacker, but it sucks. How can I solve this?
 
but since B's implementation file includes B's header file, and A also includes B's header file—I think that's what's giving me the error (that's what I thought include guards were for)
 
Actually no, I don't know what.
 
god sucks at programming >:(
 
God is real unless declared integer
 
damnit, you had to say that before i said my thing
 
9:01 AM
 
@MaiLongdong thanks, I even have crappy advertisements when I try to save it
 
@AmagicalFishy Well, the prime problem seems to be that you are calling B's function in A's header.
 
no, no, in A's implementation.
 
impossible
 
i'm just forward declaring B in A's header (the function-use is in the implementation, though)
including it*
 
9:04 AM
that's completely impossible
sorry
you fucked up somewhere
rip
 
wait
why's that impossible?
 
Because it has always been possible
A 6 years old could do it
 
i never thought of it that way
 
Somewhere in your code you are not using the other class as pointer/ref
That or you are deliberately trying to waste our time
 
do you ever actually have to deal with people who are deliberately trying to waste your time?
 
9:10 AM
I am one of those
:D
 
@AmagicalFishy ..........then you should have no problems -.-
 
user1804599
 
@MaiLongdong aka productivitybooster5000
@ʞɔᴉN I can still bitch and moan about other things
you know, I'd be happy enough if one boxing had some sort of flood control... not that it stops people posting the message, but only the first one ever X seconds is actually one boxed, the rest are just normal messages
 
what is one boxing?
 
9:17 AM
@AmagicalFishy this
 
when you post links to certain things, like wikipedia pages or images, chat will render that actual content, instead of just posting the text
@MarcoA. that's two, you fool
 
the other is not responding, he's a pacifist!
 
@MarcoA. if they were real men, they'd have knives under their heels
ah! neat
 
> This site is an extension of Stack Overflow, so discussion should more or less revolve around the same topics you'd find at Stack Overflow — but in an interactive, less strictly Q&A focused way. Do have fun, but please keep it professional and always be respectful of your fellow community members.
looooooool
 
9:21 AM
> Anything penis-related gets starred as 'interesting for the transcript' of the chatroom
 
programming euphemisms count i think
 
lol lol lol SO
I wrote an answer yesterday, on my phone, half asleep
I looked back today, +10, accepted, Nice Answer and Enlightened
woop woop
 
modesty alert
 
said the guy who called himself longdong
also is Nooble organizing the 2nd marmalade
 
dun be jelly of Mai Longdong
 
9:29 AM
yes, I proposed to help
but I'll be out this we cuz I have a 2-day pool party. are you jealous
 
@BartekBanachewicz must have been some scrub tag :P
 
@Mr.kbok do you have a pool?
 
@BartekBanachewicz seems to be
 
@thecoshman , duh
 
and you guys cheated, you reset the counter on how many jams you attempted and failed to do
@BartekBanachewicz like I said :P
 
9:30 AM
who cheated
are you callin moi a cheater
 
@BartekBanachewicz at a friend's.
 
are you gonna stay in the pool for the whole 2 days?
 
@Mr.kbok lol
 
@Mr.kbok no, I don't want to be drunk around a pool :\
 
I do want to.
 
9:32 AM
oh, and you don't want me drunk around you around a pool :\
 
don't drink and pool
 
@BartekBanachewicz challenge accepted?
 
@thecoshman as long as you don't puke in it.
 
@Mr.kbok inb even my back is wrinkly
 
9:33 AM
an important question is can you pee out of the pool
 
@Mr.kbok I only puke in sensible places, like sinks, toilets, discreetly behind bushes, on the one kinky girl who really likes freaky stuff.
@BartekBanachewicz challenge accepted :\
 
@thecoshman ew
 
I also have this odd habit/ability to always stand up when puking, but still get it neatly in the bowl. It's been a while since I've done it mind.
 
It's called a "talent"
 
Put it on your CV
 
9:37 AM
@MaiLongdong maybe I will
I responded to some recruiter person last night more or less saying "I'm a big loud mouth who tells people what's wrong, I want to work with people who are willing to take as constructive criticism and work on making stuff better." I wonder if she'll respond :D
 
"pls fuck me raw"
maybe
 
no no no, you got it all backwards, I want to fuck them raw
 
did you add a footnote "but will work on legacy java code for food anyway"
 
or was that offer?
 
I once read a CV which said "I have the ability to contribute to any team, like DNA which, when injected into a new host, makes them faster and stronger". He did not get an interview.
 
9:39 AM
that one must have been really impressed by SC2:HotS
but really, who puts that kind of shit on CV
 
I too am a retrovirus
 
@BartekBanachewicz I actually said, honestly, that I kind of like working on legacy stuff, if the environment is open to admitng it's shit and wants to fix that
 
@BartekBanachewicz Or spiderman
 
> java environment
> admitting it's shit
> wanting to fix that
 
@MaiLongdong no, "you have a"
 
9:40 AM
@Mr.kbok I've been actually playing SC2 lately
 
I know how to fix java code
 
but I guess I need some lessons from @DeadMG
cuz I suck
 
@BartekBanachewicz s/java/legacy/ I don't care too much about what language I work with
@BartekBanachewicz don't you dare inflate his ego!
 
@thecoshman I'd say it still stands for the most part after the substitution
 
@BartekBanachewicz yeah, it's rare thing to find.
 
9:42 AM
also
 
2cats 1window
 
Luna is leaving us next Thursday
 
I think "Stockholm syndrome" should be renamed to "Legacy Code Syndrome". People get used to the smell of shit
¬_¬ my cat did a 'truffle shuffle' all through the house last night.
a 'truffle shuffle' being where she has eaten hair, and here poops are strung together, so she ends up with one dangling out her as, then tries to wipe it off :\
 
<-- got sent here. Wondering if someone has a tiny bit of advise for a best direction in the year 2015 for background processing in Windows 7 and/or later in C++. (Using proper classes in MS VC++). Haven't used any kind of timed or multithreaded in MicroSoft: The Beast OS for 10 years :/ Knowing MS I thought it wise to ask a pointer or two of wiser people before trying the 10year old route
 
who sent you here
the answer is use std::thread btw.
 
9:45 AM
@MaiLongdong I'll get the guns
 
A mystical magician?
 
@Mysticial is that you
 
That works well and reliable?
Lol. Not literally
Name has characters my keyboard doesn't do and I'm too lazy to click back and copy-paste
 
@Asmyldof direction for what
what the hell is "background processing"
 
@MaiLongdong I really do wish he'd drop that second 'i', I just can't read it
 
9:46 AM
@Asmyldof yes
 
changing the sky colour in pictures
 
@Asmyldof I vote for boost::thread / std::thread depending of your VS version
 
Fair dues
Thanks a bunch
I'm always hesitant to use "new" features in MS environs without some feedback
(where new can still be 10 years old in the standard, of course)
You people are hero-faces!
 
It only took 16 years for MS to deliver a C99 conformant compiler
 
you're welcome
 
9:49 AM
^^ for example
 
That's enough time to have kids and get divorced and have kids again
 
Personal experience?
 
Did it have to do with the compiler and/or can you claim in court that it does?
I hear MS has money
:-P
 
Married to microsoft
Guys
Anyone here knows why there are global vtables and local vtables?
 
9:56 AM
what's a local vtable
 
it's attached to the object
 
Well it may have feelings too are you jealous
 
I cannot think of a succinct answer that is satisfactory to your query. Please try again. :-P
 
@Mr.kbok Don't worry the databreach promises to lead to swift divorce, statistically
 
user1804599
10:14 AM
Hello sehe.
 
user1804599
@Mr.kbok shared memory.
 
@MaiLongdong are they actually even there?
@Asmyldof dude, you can do that in two years
 
user1804599
@TonyTheLion she*
 
I know
 
10:33 AM
@EtiennedeMartel OMG, this is retarded. :D
 
Am I the only one find this picture erotic?
 
@chmod711telkitty Funny, but erotic?
@chmod711telkitty Are you into rape fantasies and 50 Shades of Grey?
 
The bird untie the ropes on the dress for the blonde porn star to easily get out that low cut dress, with so many guys watching, taking pictures
After the ropes are undone, she is going to slip out of that white dress when she raises her upper body right? Laws of physics?
 
10:51 AM
@chmod711telkitty Dunno. She seems passed out. :)
 
she's not passed out, she's waiting for the birds to undo her tie!
 
@chmod711telkitty If you look at the complete picture, it's basically a crashed cart. The birds are more likely wanting to raise her up without undoing the tie.
Also, it's Dismaland, nothing erotic about that ^^
 

« first day (1770 days earlier)      last day (3184 days later) »