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

user142019
9:00 AM
@sehe PostgreSQL FTW.
 
user142019
The only two similar downsides of PostgreSQL are that column names are case-insensitive by default (i.e. unless quoted), and that it doesn't error on some type mismatches (e.g. text vs integer).
 
user142019
The former isn't that much of a problem; I just use snake case for everything.
 
user142019
The latter feels like Perl.
 
user142019
But maybe it's standard SQL stuff.
 
user142019
Also PostgreSQL lacks UPSERT and ON DUPLICATE IGNORE and they really need to fix that. In the latter case you can catch the exception, though.
 
9:07 AM
No, order doesn't matter; I want random order :) — fishfood 1 min ago
LOL!
 
0
A: std::mt19937 mersenne twister distribution with non repeating values

seheThere's algorithms for that: std::vector<int> v(256); std::iota(v.begin(), v.end(), 0); std::random_shuffle(v.begin(), v.end()); // done Or you could roll your own (google Fisher-Yates, or see Knuth)

@MarkGarcia that's conflicted
 
user142019
@sehe That's damn beautiful.
 
user142019
iota in Go is funny. :)
 
I commented about no code on a C question, (OK, silly, I know), and got commented back: 'k = okeys[ii]; if ((ksh)->keys[k] == lba) { offset = kh_value(ksh, k); A_memcpy(dp, pbase + offset, n); okeys[ii] = k + 2; goto p;} k = kh_get(32, ksh, lba); if (k != kh_end(ksh)) { offset = kh_value(ksh, k); #ifdef ASMLIB A_memcpy(dp, pbase + offset, n); #else memcpy(dp, pbase + offset, n); #endif okeys[ii] = k + 2; goto p; }'
 
Since the order doesn't matter, std::unordered_set might more more efficient. — rightfold 4 mins ago
^ wut>
 
user142019
9:13 AM
const (
    SomeFlag = 1 << iota
    SomeOtherFlag
    YetAnotherFlag
)
 
I didn't feel all that well when I woke up, now I feel like PHP.
 
user142019
@sehe oh wait I didn't read the question. :V
 
eh, explaining perspective projection to newbs again
also I don't feel like going to work today
so yeah, time to wear a bathrobe and make a lot of tea
 
user142019
> today we gonna learn about static void. First we make an object with the class keyword and then we can use voids to make it do somethin
 
@rightfold what
 
user142019
9:17 AM
That was my reaction too.
 
@MartinJames you asked for it!
 
@BartekBanachewicz Reminds you of the Lounge?
 
@LightnessRacesinOrbit sure it does sugarcube
 
@rightfold urlplz
 
9:18 AM
^
 
user142019
@LightnessRacesinOrbit Facebook chat; guy quoted RuneScape Forums.
 
I am watching Bear Grylls eating (youtube) while on the train and people are moving away from me left and right, haha. This is fabulous!
 
> No results found for "First we make an object with the class keyword and then we can use voids to make it do ".
ITT fakes
 
@JoachimPileborg why did you edit your answer to copy mine? — sehe 19 secs ago
 
@LightnessRacesinOrbit I got a link about Ruby
somehow that's not surprising
 
9:23 AM
@rightfold you were in good company ^
 
I also got some Java and PHP results
 
URLPLZ
ffs people
leaving me hanging
 
> Sony and Panasonic agree to team up on 300GB optical disc. Optical storage offering at least six times the capacity of Blu-ray should be here by 2015.
by 2015 we will have 1TB pendrives you noobs.
and 1Gbps internet should be everywhere (everywhere meaning "where I live")
 
They're still floundering on how to get >1Mbps ADSL out to the UK's rural areas
 
ITT @FlorisVelleman is a DirectX user.
 
9:26 AM
"superfast broadband"
 
@LightnessRacesinOrbit savage lands* FTFY
 
For my part I have to admit I'm looking forward to switching off 10Meg ADSL and onto 100Meg cable
@BartekBanachewicz :)
 
@BartekBanachewicz hobby :>
 
@LightnessRacesinOrbit I have 30 right now
 
dammit no croissants
 
9:29 AM
It's plenty enough for everything (I don't watch much HD movies)
 
user142019
I want an implementation of the π-calculus.
 
@Telkitty猫咪咪 hey hiii
 
@rightfold wtf would that be?
Also my hair is so long I have to tie it up on a regular basis already :F
 
user142019
@BartekBanachewicz It's a process calculus.
 
I dunno if I should cut it.
 
9:30 AM
@BartekBanachewicz Yeah - I read that 300G thing too and, like you, ignored it as a stupid/retarded waste of development cash.
 
user142019
It's quite similar to Go's concurrency model.
 
@LightnessRacesinOrbit Yeah. me too. I have to go to Tesco later, so I will check out the bakery.
 
@BartekBanachewicz Don't!
 
@MartinJames noooo
 
9:33 AM
@LightnessRacesinOrbit It's too late - I'm addicted to Lounge snacks. I've had a banana sandwich already today, (some ginger sprinkled on).
 
Who the fuck upvotes comments like that by delnan?
 
haha lounge snacks
 
:10932060 It's above my response :/
 
snacks in the Lounge
 
@sehe No more :>
 
9:35 AM
@FlorisVelleman mm?
Oh, I meant to say interjay /cc @LightnessRacesinOrbit
 
Like bananaman suggests, what is wrong with plugging my keyring and credit card into a console at supermarket, selecting a film from menu and waiting a few seconds?
 
@MartinJames carrying your keyring and creditcard
Also: having to go to a supermarket
 
Depends where your keyring has been
 
Also: waiting a few seconds
 
@sehe I cannot download pizza/croissants/whatever. I have to go there anyway.
 
9:38 AM
this may be a repost, but...
 
sadly that doesn't look secure out of the box
 
> Unknown compiler version - please run the configure tests and report the results
the fuck VS?
 
@sehe But it is.
 
@TonyTheLion boost
 
random_shuffle accepts a function that takes the upper bound of the range.
 
9:40 AM
@R.MartinhoFernandes oh. I've cut the part of it that was on my face, at least.
 
@R.MartinhoFernandes tell me how it works (hint: there's a URNG&& overload?)
 
@sehe No, that's shuffle.
 
unfortunately I am unable to grow a manly beard :/ And that's genetic, no one in my family has a beard. :(
 
Why we use virtual functions>
 
@R.MartinhoFernandes also, that is quite sad design, seeing that std::bind1st was in c++03 if not earlier
 
9:41 AM
?
 
@BartekBanachewicz Weird. Even my dog has a beard.
 
@DixitSingla to make use of polymorphism
@MartinJames "a beard" != "a manly beard of manliness"
 
@R.MartinhoFernandes good point. Then I'm flubbed. How does it work o.O
 
@sehe It is? What's the distribution for then?
 
People keep talking to me about the places where they work. A "software house"; a "C++ shop".

Lol. A "C++ shop".

"Hi there, I'd like 400g of C++, please."
"Certainly, sir."
 
9:41 AM
late binding
what does it mean?
 
@sehe std::bind(distribution, engine) accepts a parameter, but it is not used as the upper bound of the range.
 
@LightnessRacesinOrbit Is it edible?
 
@DixitSingla virtual functions use late binding and thus make polymorphic behaviour of objects possible
 
I'm still surprised it compiled.
 
user142019
9:43 AM
That stuff about the decimals I asked yesterday.
 
user142019
I decided to use COBOL.
 
@BartekBanachewicz late binding, what does it mean?
 
@DixitSingla run-time determination of the address of the function that is to be called basing on run-time object type, compared to static or early binding, in which it happens at compile time.
 
@BartekBanachewicz okay fine
what is adl?
argument dependent lookup
?
 
18
A: make_pair namespace pollution

Bartek BanachewiczThat's a less-known feature of C++, as @jrok pointed out blazingly fast, Koenig Lookup, or in modern C++ 1), ADL (Argument-Dependent Lookup). What it does is basically searching in namespaces of the arguments for the function that you want to call (make_pair in this example). The argument trigger...

 
9:45 AM
Attention Deficit Language
 
@R.MartinhoFernandes so that's the sad part then. This seems... error prone. At the very least it confused me
 
@MartinJames argument dependent lookup
 
(I am still wondering at what point he'll understand he's a help vampire and it's simply rude to ask so many questions without even saying "hi")
 
Facebook removed the photo album ordering feature. Why?
 
@R.MartinhoFernandes Precisely. By the way, anything else to fix here: coliru.stacked-crooked.com/… ?
 
9:47 AM
@TonyTheLion With enough salt, perhaps
 
@LightnessRacesinOrbit because facebook is a piece of crap? (technologically and socially)
 
sorry man
hi hwz u?
where are you from?
 
class param_type
{
public:
    typedef uniform_int_distribution distribution_type;

    explicit param_type(IntType a = 0,
                                IntType b = numeric_limits<IntType>::max());

    result_type a() const;
    result_type b() const;

    friend bool operator==(const param_type& x, const param_type& y);
    friend bool operator!=(const param_type& x, const param_type& y);
};
 
@DixitSingla you keep asking questions :)
 
This is the type of that parameter. (implementation-defined)
 
9:48 AM
@DixitSingla In here, it varies from day to day.
 
no no now first i will make friendship with you then will take help from you
?
 
Why that explicit ctor was being invoked I have no idea.
 
@DixitSingla get lost with the reddit speak :/
 
9:48 AM
But it was effectively being used as the lower bound.
 
"will take help from you" - I don't think he's doing it on purpose.
 
@DixitSingla It's good that you want to learn; it's bad that you came here and spammed us with questions instead trying to learn by yourself first.
 
@LightnessRacesinOrbit What was that?
 
I tried to learn
but donot understand thats i m here
actually im rookie to c++
 
that's obvious. All three.
 
9:50 AM
@R.MartinhoFernandes that was... mighty wrong then. I'm once again happy to do "rep whoring" just to iron out these catches and traps in my brain
 
@DixitSingla However, C++ is a complicated matter and you can't rely on random people in chatrooms teaching you how to use it.
you need to learn how to learn first.
 
you tell me how to learn first?
 
read
fuck sake
 
@R.MartinhoFernandes A feature whereby one could re-order photo albums.
 
and try shit
damnit
 
9:52 AM
Wait.
 
OH, did a troll pop up while I was getting coffee?
 
Doesn't std::bind requiring filling placeholders for all the missing parameters?
I keep forgetting this.
 
:D Okay I'm done
 
user142019
3072
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are released every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a good C++ book...

 
9:53 AM
@LightnessRacesinOrbit You should be :)
 
@sehe whats your problem?
 
BTW I've again solved a question using a crystal ball today
@DixitSingla you, not using proper punctuation and grammar, probably.
 
@R.MartinhoFernandes You mean when invoking? Yes: std::bind(foo, _4) is a quaternary functor
 
Xeo
@R.MartinhoFernandes It swallows everything for which there's no placeholder.
 
Oh right, that is it.
Yeah, that sucks.
Then it wasn't being used as lower bound, it was just being discarded.
 
Xeo
9:56 AM
There is the proposal for std::bind(foo, std::placeholders::all) which just forwards everything
 
@R.MartinhoFernandes Yeah. I mourn that realization. Once again, c++11 has begotten new pitfalls replacing the old
 
So it actually was fine.
 
@Xeo Is this related to your "overload sets" thingie?
 
Xeo
Nah
 
@R.MartinhoFernandes But mighty confusing
 
9:57 AM
> Then the occludee AABB are rasterized and depth tested against the CPU rasterized depth buffer to generate a list of models that are visible to send to the GPU for rendering.
that's some crazy shit.
 
Coffee, meet brain. Now do your stuff....please? #BootFailure
 
@sehe brain boot failure is nothing compared to water heater boot failure I face every morning
 
@LightnessRacesinOrbit oh gawd. :/
 
@LightnessRacesinOrbit The other one was nice (dwell on the upper part) /cc @TonyTheLion
 
I don't get people that call themselves "engineers" and have trouble with recursive constructs.
 
cpx
10:02 AM
Brains become computers lol
 
@sehe Imagine that every time you want to take a shower (being totally sleepy still) you have to debug some ancient electromechanical circuitry based on Soviet Union rocket plans, whilst acknowledging this thing can blow up any second because it runs on gas.
yah that's me ^
 
@R.MartinhoFernandes Don't worry! "Engineers" who have trouble with recursive constructs also have trouble with the fact that they have trobble trouble with recursive constructs.
ITT trobble
 
@LightnessRacesinOrbit another person to whom iteration is as easy as recursion!!
 
lolwat
a horse on a flying motorbike.
reality much?
 
10:06 AM
@BartekBanachewicz Oh wait, you didn't mean a water cooker
 
Hmm.. it seems that Bartek is time-limited. Next Lounge meet should be in Poland, (but not at his apartment:).
 
And actual water heater for the shower itself
 
@BartekBanachewicz Not sure I want to come visit you now :/
 
10:07 AM
@MartinJames @TonyTheLion I will move out by then
 
@MartinJames We know where his new appartment will be :/
 
@sehe actually not. Someone snatched that place from us :/
 
@BartekBanachewicz OK, I hope you move out slowly, under your own power, and not in blast-propelled pieces.
 
@R.MartinhoFernandes If I get hired at Thalmic Labs, then yes, but I really meant the apartment
 
10:08 AM
We still don't want to meet at your apartment.
 
@BartekBanachewicz condolences
 
> Disappointed. You're not a disappoint. You're disappoinTED.
^ internet license revoked
 
TED talks?
 
basically this is the problem in most of those kind.
 
10:09 AM
what?
 
the contacts are oxidating
 
Just be a man and shower with cold water.
Hot water is for cooking.
 
@R.MartinhoFernandes that's one side. Other side is I would be a fucking savage.
 
@R.MartinhoFernandes So are you saying that is what you do? Or would be willing to do without much hesitation?
 
Hmm.. liquid hydrogen leak at turbopump.
 
10:11 AM
Feb 26 at 10:37, by R. Martinho Fernandes
I often shower with cold water. I have ascertained that it's physically impossible to get water at the right temperature. I can stand cold water better than boiling water, so I just bite the bullet and don't give a fuck.
 
@R.MartinhoFernandes Cooking is for hot water
 
@R.MartinhoFernandes oh right. I remember you saying that now.
 
I always take cold showers without any hesitation.
Because it's never on purpose
 
I too have an 'instant' electric water heater. It has three power settings. On 'medium' or 'low', it is not possible to get scalded.
 
@sehe lol
my hot water is so hot that I have to put it to almost cold to get water that won't burn me
 
10:14 AM
Plus, once you get out of the shower, everything is warm.
 
and then its still fairly hot
 
user142019
I put the thermostat on "40℃" and it's perfect.
 
ITT rightfold likes his meat well-done
 
user142019
But oh God when on vacation it always happens that after a few minutes there's no more hot water and then it goes spray cold water.
 
You wouldn't have that problem if you started with cold water.
 
user142019
10:18 AM
Or they have this kind of hellish abomination so it's impossible to set the temperature right:
 
user142019
 
user142019
Really who invented this shit.
 
@rightfold I hate those things
soooo hard to get it right
 
user142019
I want two knobs: one for amount and one for temperature.
 
user142019
Not a 3D knob. :V
 
10:20 AM
@rightfold Try to get rooms on lower floors. For some reason, the hot water seems to last longer.
 
@rightfold Cold water is also easy to set up on those.
See how awesome that is?
 
user142019
@MartinJames Or just go to a place where it's very hot and shower with cold water. :)
 
user142019
@R.MartinhoFernandes As is boiling water, but not decent temperature water.
 
@rightfold But boiling water runs out.
Cold water works everywhere.
 
The '3D' taps are endemic all over mainland Europe. We kept them out of here for a while, but they have crossed the channel :(
 
10:22 AM
@MartinJames every damn 'posh' bathroom the land over has those fuckers
 
Not since Moses parted the sea have people been fearful of water going everywhere
 
@thecoshman They should have' hypo/hyper thermia' lables on them.
 
> Obscene language offends both children and adults. A ban on its use is not an infringement of human rights. This is a direction towards a civilized lifestyle. If we do not use foul language in real life, then why do we use it on the Internet?
Apparently this guy doesn't live in "real life".
 
There's an implicit call to std::string's constructor but string("abc") is a function-style cast expression. string here names the type. I wouldn't say that string("abc") is "obviously" a call to string's constructor. — Charles Bailey 3 hours ago
Really? (In other new, i can't sleep)
 
10:26 AM
@ScottW hey!!
 
Yes, it's the same as (string)"abc"
:(
 
@R.MartinhoFernandes he doesn't want to be told as it is?
 
@R.MartinhoFernandes Huh... well I guess I'll reword this then
Your class contains an instance of itself. Which means in order to create a variable of that type you need to create a variable of that type, so you have to create a variable of that type... get it? ;) — Borgleader 20 hours ago
 
user142019
I made a mitsake.
 
10:34 AM
@TonyTheLion 1 fool out of 73 wise men makes up 99% of silly stats
@rightfold That's german. I'll have one, please
 
@sehe hahaha
> mitsake
 
@sehe 80% of people believe anything with a percentage in it
 
that's a thing?
 
@thecoshman You can fly %.
 
@TonyTheLion it's a bit like a milkshake, but made fome oven mits
@R.MartinhoFernandes o_0
 
10:35 AM
@R.MartinhoFernandes lol
 
That... was not a murder attempt.
I hope.
 
Sake or saké (, "sah-keh") is an alcoholic beverage of Japanese origin that is made from fermented rice. Sake is sometimes called "rice wine" but the brewing process is more as rice beer, converting starch to sugar for the fermentation process. In the Japanese language, the word "sake" generally refers to any alcoholic drink, while the beverage called "sake" in English is usually termed nihonshu (日本酒, "Japanese liquor"). Under Japanese liquor laws, sake is labelled with the word "seishu" (清酒, "clear liquor"), a synonym less commonly used colloquially. Overview Sake is sometimes refe...
 
o_o I don't see the funny...
 
@R.MartinhoFernandes But it worked well nevertheless
 
10:36 AM
@sehe hahah
 
using this break from lounge I've disassembled a bit of this thing
haven't blown up so far
 
@BartekBanachewicz which thing?
 
@thecoshman the rocket engine in my bathroom
 
just "a thing", Bartek has many things
unnamed things
@BartekBanachewicz you're starting your own NASA?
 
@thecoshman you broke your leg?
 
10:38 AM
@BartekBanachewicz don't be silly, you can't fit a (worth while) rocket engine in the bathroom.
@sehe I did?
 
@thecoshman if you saw it in your own eyes you'd believe me
I mean I am genuinely scared of that thing
@TonyTheLion hopefully not
 
oh ok
 
@TonyTheLion No - it's Russian. RD-180 water heater.
 
ITT the pirate broke his brain, after being lulled into enacting flight delusions by a percent sign
 
10:39 AM
@MartinJames it's not RD-180. It's WRP-250
 
@BartekBanachewicz Then shoot it.
 
@BartekBanachewicz I don't doubt your ability to build a rocket engine, but in a bathroom, I doubt it is worth the effort... either that or you have one hell of a bathroom
@sehe seriously... I don't get how what the robot said was funny... 'you can fly <percent sign>'
 
@BartekBanachewicz I used to have that as my router
@thecoshman ... I can see how you didn't think it funny
 
@thecoshman I'm 100% sure I can fly. I have my boarding pass in front of me.
 
7 mins ago, by thecoshman
@sehe 80% of people believe anything with a percentage in it
 
10:42 AM
@interjay In fact, we've worked out in chat that actually, the argument passed by random_shuffle was being silently ignored (explaining how it wasn't a compilation error). Yes, this was confusing, but no, it wasn't actually UB. — sehe 1 min ago
 
@R.MartinhoFernandes ooooh
see, I was was expecting something funny
 
your sense of humor is out the window
 
@MartinJames It's fortunate that you didn't accidentally leave it at the supermarket, when you had to take out your key-thingie and creditcard for the movie vending machine :/
 
@thecoshman here's one for you (not my photo, but that one here is exactly the same)
 
@TonyTheLion Flying.
 
10:43 AM
not giving a fuck out the window
 
@BartekBanachewicz o_0
 
(inb4 pirate image macro)
 
@ScottW apparently you're talking to nobody, because no one responded to any of your messages.
@ScottW Erm. Lemme guess.... None
 
@BartekBanachewicz beautiful
 
Bartek's bathroom rocket is on YT:
http://www.youtube.com/watch?v=BdpfBDBpKj8
 
10:44 AM
-1
 
Aw. So cute
 
@BartekBanachewicz Are you sure that's not supposed to be a museum piece?
@ScottW Awwww <3 <3 <3
 
o_0 so... library to convert to/from Java objects/JSON strings... make data private and provide getters and setters for everything... why not just public fields?
 
> Java
'nuff said
 
@thecoshman Validation?
 
10:46 AM
@sehe ಠ_ಠ I want to disappoint you
 
also the code I'm looking at has using namespace std; in the header
please kill me
 
@TonyTheLion nah, they are good stuff. Just need proper maintenance, and this one was kinda left alone.
 
@R.MartinhoFernandes not really a job of the parse is it? surely you want to get your object into 'Java' format, then validate that object as any other pojo
 
pojo?
 
10:50 AM
@thecoshman So you want to allow objects with invalid states at some point?
 
@TonyTheLion 'plain old java objects'
@R.MartinhoFernandes vOv
 
@thecoshman oic
 
user142019
@thecoshman Java needs properties.
 
user142019
Maybe Lombok.
 
Lombok is Indonesia I think, perahaps Java also is
 
10:57 AM
@rightfold Does it?
 
We were hiking on Lombok once, some volcano. Had guides who insisted on carrying our stuff. They got so tired we had to leave them and walk the last part alone.
 

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