« first day (1508 days earlier)      last day (3456 days later) » 

11:01 AM
I can't believe so few links fit in a chat message, there are tens of these
 
@BenjaminGruenbaum Haha. :)
 
Quite the popular person.
 
I have a potentianlly open question, so sorry. If I go from managed .NET to unamanged C++, do I have to do it via Active X? If it matters, it's using MFC . Or is going via Active X just one option?
 
ActiveX?
 
yes...
 
11:12 AM
just function calls?
 
ActiveX still exists?
 
Apparently.
 
isn't it somehow required for e-commerce in Korea?
 
quick situation. I'm a .NET person, trying to get into C++. I'm at a bad C++ company (code files up to 30k long). Everything is legacy etc. As such, I never know if what I'm learning is a 'good' thing or a legacy thing (whilst I appreciate both can be good). HOwever, @Mikhail, are you saying I can call a c++ function directly from managed .NET code?
 
@Dave Yes, just build a dll and call her
 
11:14 AM
@Mikhail, thank you. What a perfect answer. At least I can work this way on my own projects
sigh.... This company has an amazing WTF per minute record
 
P/Invoke
anyways
 
I think most things will need P/Invoke, ya.
that will suffice for just calling functions
 
perfect,. thank you all for taking the time :)
 
user1804599
Is it possible to add an element to a query result in SQL?
 
yes
 
user1804599
11:18 AM
I want to select start_time from time_zones order by start_time as well as '+infinity' :: timestamp in the result set.
 
user1804599
Can't use union all because that destroys the order.
 
create a view that will store the result of the SELECT
and do whatever you want with it
 
user1804599
ok next question: what would be the body of that view so I don't have to create a view and can inline it instead?
 
@rightføld UNION ?
 
Ell
@Dave what c++ stuff are you calling?
@Dave if it's win32 you'll want to be using pinvoke.net
 
11:20 AM
@Dave working with legacy code is invaluable.
Also:
471
Q: I've inherited 200K lines of spaghetti code -- what now?

kmoteI hope this isn't too general of a question; I could really use some seasoned advice. I am newly employed as the sole "SW Engineer" in a fairly small shop of scientists who have spent the last 10-20 years cobbling together a vast code base. (It was written in a virtually obsolete language: G2 --...

 
user1804599
Ah, subquery.
 
user1804599
  SELECT t
    FROM (    SELECT to_timestamp(start_time) AS t
                FROM delivery_address_time_zones
               WHERE delivery_address_id = daid
          UNION ALL
              SELECT 'infinity' :: timestamp AS t
         ) as x
   ORDER BY t
 
user1804599
Yay.
 
Yeah, that works.
 
user1804599
Blergh 239 lines of PL/pgSQL.
 
user1804599
11:26 AM
What a horrible language.
 
I have to write a thousand lines of code and triggers in it next week - wish me luck.
 
user1804599
Bad luck.
 
To make things worse - to use JDBC to talk to it
:(
I hate triggers, I know the hate is unjustified but still
 
@BenjaminGruenbaum Trigger warning.
 
Oh cool, internet hates triggers too - I didn't know that I thought it was just me
 
11:30 AM
I don't SQL
but I didn't exactly like the idea of triggers when I heard that you can use them to replace commands on the fly
they feel like a #define thrown around somewhere to me
 
I use CHECK a lot in Postgres - triggers just seem magical. The kind of AOP that was popular years ago and faded away because it was confusing.
Also obviously stuff like REFERENCES (foreign keys), primary keys etc, with CHECK those make up for a lot of integrity.
Also - I'm pretty bad at SQL so there's also that.
 
user1804599
lol
 
whoa, after 9 years of PSN
the playstation store is now open in Romania
 
user1804599
explain analyze select ... into x where x :: integer raises "invalid syntax for integer: 'Aggregate (cost=60.....)`.
 
Also, I never use explain :v
 
Ell
11:36 AM
@AlexM. lol
 
user1804599
@BenjaminGruenbaum if you don't have any performance issues then you most likely don't have to.
 
user1804599
But it's useful to find the bottleneck in a query.
 
It is, it was just an example of me being bad at SQL.
 
user1804599
RAISE NOTICE is also useful for printf debugging.
 
Ell
my sphere is falling through the ground plane
but why
 
11:40 AM
Yeah, I use RAISE NOTICE in functions
 
Ell
maybe I'll just write my own physics. I don't need much
 
"I'll write my own Physics, with blackjack and hookers"
 
Ell
it's just the ground plane seems to be almost infinitely small
 
oh Qt
> Like the other container classes, QList provides Java-style iterators (QListIterator and QMutableListIterator) and STL-style iterators (QList::const_iterator and QList::iterator). In practice, these are rarely used, because you can use indexes into the QList.
Who would want to iterate over shit when you can just use indices and explicit loops?
well screw you, I do what I want, and I'm gonna iterate all over you with std algorithms and lambdas! Just try and stop me!
/me true rebel
 
11:56 AM
@jalf Is that from the docs?
 
@R.MartinhoFernandes yep
 
Qt very good.
 
this guy is pretty amazing
 
11:57 AM
@AlexM. If you mean amazing = having a death wish. :)
 
@AlexM. what is he just hanging out with @TonyTheLion?
 
TonyTheLioness
I did not know until today that lions are VU
the video is going on about how they might go extinct in the near future
 
12:11 PM
@BenjaminGruenbaum ;)
@BenjaminGruenbaum That last one is amazing
 
@Mgetz That was my first OS...
 
@AlexM. VU is the first "threatened" stage; if they "might go extinct in the near future" then they would be CR.
(or EW)
 
@Columbo mine was DOS mate, and I'm only 27...
 
@Columbo Baby (Windows 95 4 lyfe)
 
12:15 PM
@Mgetz IE's continued high is depressing
@TheForestAndTheTrees Windows 3.1 here
 
Win95 was also my first OS, on hardware about which I remember nothing
I also used Win98 before jumping to XP
 
@LightnessRacesinOrbit My worry is that Win 7 will never get IE12
 
inb4 room oldies showing off that their first OS was a stone tablet
 
holy crap
that brings back memories
 
Ah, overengineering
For some reason, our code base has an AbstractProcessStarter class
I'm sure those are useful
 
12:17 PM
can't say I remember that music
 
nothing needs abstraction like the act of launching a process
 
@LightnessRacesinOrbit how about this one? youtube.com/watch?v=Z4ssRKE0CG4
 
@Columbo @TheForestAndTheTrees @AlexM. Seriously? What are all those children doing here? :/
 
inb4 jalf teaches out about mainframes
 
:)
 
Ell
12:19 PM
my first os was win95 also
 
I'M NOT OLD! STOP MAKING ME FEEL OLD!
also get off my lawn
 
My first computer was a 486 DX2, it had a Turbo Button
 
@AlexM. now you're talking
 
Because intel didn't want to call it a "gimp" button
 
Intelligent decision
 
12:21 PM
my school btw still had Apple IIs
 
hey @Jefffrey I'll just drop this here for ya youtube.com/watch?v=4wN-Vk4wdIQ
 
I have a cut on my finger that I can't explain.
That's the real mystery.
 
@R.MartinhoFernandes Your finger got cut.
No mystery at all
 
@jalf What children?
 
Ell
@LightnessRacesinOrbit don't you keep track of cuts? :P
 
12:27 PM
@Columbo people children whose first OS was 32 bit Windows :p
 
@jalf I only started programming (on Win7) three years ago
My very first OS was 98, but I only used that for like 20 hours before my dad finally got a new PC in 2004
 
@Columbo HAHAHA, I used Borland Turbo C++ on windows 95 in high school.
 
@Ell I find strange cuts occasionally
usually fingernails from the night
 
@Columbo don't worry, I'm just sulking :p
 
@Columbo To be fair there weren't many people programming on Win7 before three years ago
(it's really five years but then my joke breaks down so just pretend it's three years)
 
12:30 PM
also if you haven't spent days tweaking autoexec.bat and config.sys to free up enough memory to play your games you're a nub.
 
@LightnessRacesinOrbit no, I started programming three years ago :)
 
@Mgetz That's nothing; 2 billion people are still using Borland Turbo C++ on Windows 95.
 
shakes fist at young people today
 
@LightnessRacesinOrbit oh god... the horror
 
Xeo
@jalf You're just old and bitter
 
12:30 PM
@Mgetz i know sir
 
@jalf Been there done that
 
@Xeo yes
@Mgetz Mine was an SX :(
 
Also tweaking them ain't enough, gotta make minimal startup floppies man
 
@LightnessRacesinOrbit I remember my teacher not knowing if they had iostream as <iostream> or <iostream.h> as it was 2000 when I took intro to comp sci
 
So only two years after standardisation then
 
12:32 PM
@Mgetz lol
 
@Columbo we didn't even use std::string we used a proprietary apstring
 
We still get people in the forum whose professors use material from pre 98, thats just depressing
 
and now you know why my code is/was crap
 
@Mgetz the turbo buttons were brilliant though. Computing has gone downhill since we lost them
 
I basically relearned C++ in the past year and a half from the ground up.
@jalf they were, but we never turned ours off as we didn't have anything that instruction counted badly enough to require it.
I think I'm one of the few people on the planet that liked Windows ME and Vista. ME because, if you got a computer with it pre-installed, it was more stable than 98. And Vista because it fixed the sound drivers on my laptop at the time. Of course the laptop was never designed to run vista x64 anyway... so it was still touch and go.
 
12:38 PM
Vista was first release with really major internal changes
 
@Columbo What forum?
 
@CatPlusPlus strictly speaking from a NT perspective, it was reverting the disastrous changes to the HAL inflicted by XP
 
@CatPlusPlus moving from 9X to NT was a pretty major internal change too, wasn't it? Unless that doesn't count because it was effectively moving to a different OS, rather than changing the existing one
 
ME was weird
I don't think there was anything from NT in ME and if there was, it was merged in into the old 9x shit
 
@jalf different OS. Mind you, at the time, everybody hated XP because it broke all their programs. It didn't have the DOS vm
 
12:44 PM
@Mgetz but then you're effectively saying that "Vista was the first release with really major internal changes, because the previous major changes were too major to count" :p
 
@CatPlusPlus ME was an attempt to bring WDM to the 9x kernel, failed spectacularly if you upgraded from 9x
 
@LightnessRacesinOrbit The german one that I moderate in.
 
@jalf Major refactoring vs using a completely different codebase
 
@jalf Vista could be considered a revert, as it restored completely Dave Cutler's NT
 
You know it's a different category of stuff
 
12:45 PM
@CatPlusPlus Sure, but I'd argue that switching to a different codebase counts as a major change. ;)
 
Hi rightfold
 
not that it really matters
 
I skipped both ME and Vista
 
user1804599
@BenjaminGruenbaum C room is similar.
 
Xeo
> result_of<const UnaryFunc(typename std::iterator_traits<Iterator>::reference)>

transform_iterator.hpp(49): warning C4180: qualifier applied to function type has no meaning; ignored
erm
 
12:52 PM
@rightføld make a similar message with quotes, in the JS room there are dozens of these.
 
Xeo
> concepts.hpp(140): error C2146: syntax error : missing ',' before identifier 'traversal_category'
is this Concept's way of telling me the concept assert failed or something?
Can't imagine that.
 
@BenjaminGruenbaum lol
 
Xeo
std::vector<int> a;
std::vector<int> b;
boost::copy(a, b.begin()); // wall of errors
well fuck you too boost.
 
Most by different people
 
12:56 PM
0
Q: Why does std::valarray not have a constructor taking a pair of iterators?

rubenvbQuestion comes from my off-the-top-of-my-head answer to this question (which I have deleted cause, well, std::valarray has no constructor taking a pair of iterators...). The question is: why?

Shit's ridiculous if this doesn't get a satisfying answer.
 
@rubenvb because std::valarray is a tack on, nobody expects anybody to actually use it
 
@rubenvb Because nobody remembers or cares about valarray
 
which is too bad as it would make hinting at vectorizable ops really easy to the compiler
 
@Mgetz My thought exactly...
 
in C, Oct 21 at 14:24, by rightføld
@BartekBanachewicz You are miserable for trolling rooms and telling people who have been there for ages to go away.
 
1:01 PM
Heck, an implementation could even go through the effort of doing that using SSE crap I guess.
 
That's the only one with multiple stars I've found.
 
Barteking
 
@rubenvb that actually was the purpose it was introduced for, supporting vector processors IIRC
 
1:06 PM
So what were we saying exactly
 
@rubenvb Yes but nobody uses it
 
@ParkYoung-Bae welcome back to the dank
 
user1804599
@AlexM. dat double entendre
 
@ParkYoung-Bae Hey! You're still alive!
 
1:09 PM
@rubenvb it's a sad day for us all.
 
@thecoshman Hi pirate!
Hi everyone also!
 
Ell
Hi
 
Btw I'm now a trusted user which says a lot about the sanity of this website
 
@ParkYoung-Bae Welcome back to the intellectual shithole of the Internet!
 
@rubenvb The 4chan of programming
 
1:11 PM
@ParkYoung-Bae I wonder what happened between 4chan and 9gag.
 
user1804599
reddit
 
@ParkYoung-Bae I love not having to see that shit :)
 
yeah you know I'm pretty tired with all that
With the bullshit trolling and name calling and whatnot Ben is doing here, and with you starring and applauding that
 
user1804599
 
1:18 PM
I'm also tired with people shouting "omg haskell fanatic" everytime I'm trying to say something
 
Ell
@BartekBanachewicz it's just a meme
 
IOW, I'm tired with this little community here. Maybe it's my fault, maybe not, but I'm done here.
 
Ell
you've got that rep now
 
See, I don't want to have that.
 
Ell
@BartekBanachewicz I know
 
1:19 PM
and if that means not being here at all, too bad.
been fun times.
 
Ell
just like tony didn't want his sex rep, but it did go eventually
@BartekBanachewicz c'mon man
 
@BartekBanachewicz omg haskell fanatic
 
I might come back after Christmas, maybe a bit later
 
@Ell that horny bugger didn't loose anything
 
see you around folks.
 
Ell
1:21 PM
@BartekBanachewicz have a good christmas break :)
 
@Ell Or like @Xeo didn't like his girl rep (it will never go away)
 
Xeo
lol
 
@BartekBanachewicz Bye Bartek! Coma back soon!
 
Ell
xeo has a girl rep? :P
 
he does now
 
1:27 PM
@CatPlusPlus I see what you did there :-p
 
Xeo
@Ell I had a similar avatar as now a long time ago
 
@Xeo that and you're cracking rack
 
My ragequit was better anyway
@BartekBanachewicz You gotta take step back and look at things you're saying
 
And spend less time in the Lounge, not no time
 
user1804599
@BartekBanachewicz nice
 
1:31 PM
@Ell Yeah, "there's no reason to stop the name calling and trolling because sooner or later we'll get tired of doing it to you specifically, so what's the problem?"
lounge logic
 
@CatPlusPlus you rage quite? when?
 
Ell
@jalf wut, I didn't say there was no reason to stop the name calling
 
Xeo
@CatPlusPlus "I was first, haha!" - hipster.
 
@Xeo thecoshman never heard of it!
 
@Ell what jalf phrased is what you said.
 
user1804599
1:33 PM
Where the fuck did Server Fault go in the migration window?
 
user1804599
ugh
 
@rightføld migration?
what's going on! who's doing things and why?
 
Ell
@thecoshman when did I say that there was no reason to stop the name calling?
I was just saying there is hope yet :P
 
user1804599
 
user1804599
This question appears to be off-topic because it is about server configuration. — rightføld 1 min ago
 
user1804599
1:36 PM
Blood tastes like iron.
 
@BartekBanachewicz bye, keep in touch on FB - didn't want to drive you away just wanted you to act with more common sense.
 
user1804599
I wish blood tasted less like iron.
 
@CatPlusPlus way better
 
Ell
who is Ben?
 
@Ell you said he shouldn't worry about it, as we used to tease horny tony, so we'll soon enough move onto teasing someone else
 
user1804599
1:37 PM
Benjamin.
 
Ell
@thecoshman when did I say he shouldn't worry about it? :P
 
FWIW I didn't think he'd be so butthurt about it.
 
user1804599
Lack of += is so fun. :(
 
user1804599
expected_free := expected_free + incoming; beh
 
21 mins ago, by Ell
just like tony didn't want his sex rep, but it did go eventually
 
user1804599
1:42 PM
I like uppercase keywords though.
 
Ell
@thecoshman I was just saying that it will go away eventually
and also him not worrying about it would be a good thing
 
@rightføld What language?
 
@Ell him not having to worry about it would be a good thing.
 
user1804599
@VáclavZeman PL/pgSQL
 
Ell
@thecoshman right. but him not worrying about it would still be a good thing
 
1:45 PM
@rightføld it's not a bug it's a feature ^^
 
GRATUITOUS USE OF CAPS won't get you anywhere. — Borgleader 16 secs ago
 
yeah, instead of bug report section, there should be a 'feature report' section for identify all previous unknown features accidently created
 
user1804599
@rightføld : No, you find hundreds of such question here everyday about .htaccess or mod_rewrite — Croises 9 mins ago
 
user1804599
lol
 
what's the best way to define "arbitrary" to a beginner of programming? They all seem lost when I bring up that word
 
1:53 PM
throw a dictionary at them?
 
Ell
@corvid based on random choice or personal whim :3
 
"Arbitrary - whether or not you stay hired after demonstrating an inability to grasp basic English"
 
user1804599
argharghrghragharghragh
 
user1804599
Some moron decided to store timestamps as integers and now the DB cannot use indexes because of to_timestamp(that_integer) instead of that_integer in the query.
 
I have the most horrible stomach pain
words cannot express the hate that I have for the people around me
(it's greater than usual)
 
user1804599
2:08 PM
# select extract (epoch from 'infinity'::timestamp);
 date_part
-----------
         0
 
user1804599
arrrgrggrhghrghrghrghrghrg
 
user1804599
The very next person that stores timestamps as integers in the database will be shot in the foot, and when he has cured REPEAT PROCEDURE.
 
are you making a game in SQL?
 
Making an ascii game in SQL sounds like a fun challenge / suicide reason
 
user1804599
No, an ERP system.
 
user1804599
2:11 PM
@BenjaminGruenbaum Pfft. I've done it in Befunge.
 
Why not make it distributed? A DERP system in a way
6
 
user1804599
lol
 
@Ell no, I disagree. Worrying about the unpleasant tone here is a good thing.
Worrying that you are apparently expected to just suck it up is a good thing
Surely we can be decent people even if we're C++ programmers
 
Ell
@jalf I agree that nobody should be name calling, trolling, etc. and I think people here should be kinder
But I still think not taking it to heart is better for himself than taking it to heart
that doesn't mean that he shouldn't voice his concerns and ask us to stop
 
@Ell Better for him, perhaps. But he's selfless enough to take one for the team, and instead do what's better for us
Kudos to him for that. :)
 
user1804599
2:16 PM
@Ell Yum, Kinder.
 
gcc, you're drunk, go home
 
Ell
@jalf I don't think it's about selflessness personally
 
a function where the body is literally just return <somevector>.size();, and gcc goes "control reaches end of non-void function"
@Ell Well, he refrained from doing what, according to you, is better for himself, and instead, did what's better for the lounge: pointing out a real actual problem. It doesn't really matter what you call it.
 
Ell
@jalf Oh I see what you mean now
 
What nullentity is this, that you seem to be talking about? Note that min_p = {} will work in c++98 (aggregate initialization). I strongly assume that the default point_xy implementation is very much a POD. There'll be no "nullentity". — sehe 2 mins ago
Out "can we optimize this" guy is there again ~wut~
 
2:21 PM
@AlexM. oh you...
 
@rightføld no computed indexes? ditch that db vendor
 
Ell
@jalf Yeah I agree with this. Still, voicing his concerns earlier might have lead to people listening so that he didn't have to leave
 
user1804599
@sehe Oh that exists?
 
user1804599
Cool, lemme check.
 
user1804599
The shooting in the foot will still hold, of course.
 
user1804599
2:22 PM
> CREATE INDEX test1_lower_col1_idx ON test1 (lower(col1));
 
user1804599
neat
 
@Ell true. But it's no less valid now. :)
 
@jalf that seems to be quite an apt summary, though
 
@rightføld How did you taste iron?
 
doh, was wondering why my computer was compiling so slowly. Forgot to pass -j8 to make
who needs more than one core anyway?
 
2:33 PM
Heh. I have never heard about Homo Logicus before but it fits. :)
 
user1804599
@Jefffrey It tastes like the smell of iron.
 
it has a metallic taste
fuck you made me imagine my blood and now I feel sick
 
user1804599
You decided to read it.
 
hi alex
 
hi
 
2:40 PM
what has metallic taste>?
 
you don't happen to be xxx, right?
 
xxx?
 
nvm
 
user1804599
@WangWang metals
 
what happened for metal?
have you ever tasted metal before? alex
 
2:43 PM
@BartekBanachewicz I followed the links to the JS room (since that is what apparently is being starred and applauded...). All I can say to that is
yesterday, by sehe
Never stop to reflect.
Don't ask yourself why people say the obvious things they say.
It could never help
 
he could also be AKK
hmm
 
user1804599
My query takes 33.317 seconds. :(
 
there is no pvt chat here?
 
user1804599
I want it to take at most 1 second. :(
 
Divide it by 33.317
 
2:50 PM
stomach pain is gone
my hatred for people has been reduced to reasonable levels once more
 
To be fair, they were already illegalised to carry out last year, so this is just catching up.
 
@WangWang Thanksfully.
 
> A woman having an orgasm? Heaven forbid anyone should lay eyes on such an abomination
lol
 
It's actually sexist.
 
2:59 PM
Conservative gov. being sexist censoring reactionaries? no wai
 
lol uk
 
Why don't they censor immigration instead
 
Why do people want to live there still
 

« first day (1508 days earlier)      last day (3456 days later) »