« first day (1320 days earlier)      last day (3644 days later) » 

7:00 AM
@ThePhD :p
 
user1804599
@melak47 dat demand
 
user1804599
"i want vhdl code" and I want 72 virgins but I don't get those either. — rightfold 8 secs ago
 
Happy Friday people!
 
what? :p
1/10 for making me check the date
 
We've got a holiday tomorrow and the day after is collateral holiday.
 
user3010322
7:02 AM
Haha.
 
That's suffix actually ;) — bartek 52 secs ago
All barteks are stupid!
 
user3010322
That one's from poland too.
 
@rubenvb you made me check if I missed the holiday :p
 
7:09 AM
@chmod711telkitty A huge lie! That's only 37 virgins.
 
@JerryCoffin more than enough if you're dyslexic
 
I'm going to start upvoting questions that are objectively well-posed but I know nothing about.
And downvoting questions that do not have a question in the title.
.... <goes off to check his own questions>
 
@melak47 Brings to mind the old line about: "How many legs does a horse have if you call its tail a leg?"
 
@JerryCoffin What is the difference between an elephant and a golf ball?
 
@WilliamAndrewMontgomery I asked first! :-)
 
7:14 AM
@JerryCoffin Hence why you'll answer first!
 
<notices most his question's titles are already questions>
 
improper use of the /me command
 
@WilliamAndrewMontgomery Perhaps you've mistaken this queue for a stack?
...or perhaps you simply don't understand the difference between the two?
 
@JerryCoffin ... is this queueoverflow?
@JerryCoffin jerry u so mean. we used to be best bug friends :'(
 
@JerryCoffin There were at least 60 of them, several were camera shy, a few more were to arrive in a few weeks time. Yep you get your full 72 virgin chicks ... if your blow yourself up in that crowded dog pound, either that or pay a chicken farmer some dollars
 
user1804599
7:20 AM
@aseem To perhaps expand on "Stop using macros": this is general good advice, not a sarcastic quip (well, it might be that too :D). Macros make your code harder to maintain (case in point: "main must return int) by hiding the definition of code blocks. This isn't so much a problem in small projects, but imagine if you had a big project, and 6 months down the line created a variable called "mp". In your code, this expands to make_pair, which means that's how the debugger will refer to it. This will make debugging... interesting... at best. — KidneyChris Oct 29 '13 at 10:37
 
user1804599
> expand on "Stop using macros"
 
user1804599
dat pun
 
@Borgleader hey, whatever happened to nanovg++?
 
@WilliamAndrewMontgomery <realizes IRC is still not dead>
 
poop morning
 
7:25 AM
@rubenvb Why would it? What would replace it? SO chat?
 
 
@WilliamAndrewMontgomery How dare you accuse me of being mean? I'm well above average in all respects!
 
@Griwes some system that at least allows you to edit messages.
 
@JerryCoffin hehehehe
 
@rubenvb Yeah, and that would be...?
 
7:34 AM
@Griwes I'm just a silly user. Who knows what real programmers will invent?
 
IRC is dead simple and that's its win. You can always just write "s/foo/bar/" and everyone knows what that means.
 
Xeo
@rubenvb meh, that's nice but not totally necessary
@Griwes or '*bar'
or 'bar*' if you like that order better
 
Also I've heard of some IRC client that automagically applies s///es on messages.
 
Xeo
Hm, sounds messy
I guess I could script that in mIRC though
 
I guess you can get it right, if the user is sane-ish.
 
Xeo
7:35 AM
with raw events
 
@JerryCoffin I finally got it why you are rewarded 72 virgins when you blow up yourself up amongst your religious enemies - so you will become a rooster in your next life and fight more
 
Just try to apply to the last message of that user only.
 
Xeo
ye
 
@Griwes s/*/faggot/
 
Xeo
dunno if I can just replace what's in the display buffer though
 
7:36 AM
1 min ago, by Griwes
I guess you can get it right, if the user is sane-ish.
 
@Griwes That's a pretty big if
 
"Sane-ish", not "sane". Not that big.
No-one will vandalize his own messages by replacing them with 'faggot'.
 
Also if such a feature is in, you can just make it reversible.
@rubenvb lol.
 
@Griwes I think you underestimate some people
 
7:39 AM
> No-one will vandalize his own messages by replacing them with 'faggot'.
 
Xeo
58 secs ago, by William Andrew Montgomery
@Griwes I think you underestimate some people
 
> I think you underestimate some people
 
I do not care about "some people".
 
I tend to just /ignore those people.
 
7:41 AM
You're cutting yourself from quality content
 
I am cutting myself away from idiots.
I think that's a feature.
 
@Griwes Caprica can do that. If you ask her, that is.
@WilliamAndrewMontgomery yes, quality. Not high quality, though
 
@BartekBanachewicz I consider my content high quality and fuck you
 
@WilliamAndrewMontgomery pff
I woke up
I achieved something today
 
user1804599
Man.
 
7:46 AM
also I am going to get hit in the face by something soon
most probably FlexibleInstances
class Transformable t where
    transform :: Transformation -> t -> t

instance Transformable [Vec2] where
    transform (Transformation pos rot scale) = map ((*scale) . (+pos) . (rotate rot))
 
user1804599
Have to make something like this. :v i.stack.imgur.com/1st4V.png
 
@rightfold CSS-wise or functionality-wise?
 
user1804599
Functionality-wise.
 
Django can spit out things like that effortlessly
 
user1804599
 
user1804599
7:48 AM
Already have this, lol.
 
but you know that already
 
user1804599
I don't, and we don't use Django (fuck Django).
 
@rightfold wait what's the arrow
 
@BartekBanachewicz The blue thing on the left
 
are you linking blocks?
 
user1804599
7:48 AM
@BartekBanachewicz Yes.
 
what are you using to link blocks?
inb4 arrows
 
user1804599
@BartekBanachewicz jsPlumb.
 
@rightfold Neat. We can exchange experiences then.
 
user1804599
It's a survey editor. Answers link to next question. Currently working on questions where the next question is determined based on a predicate.
 
user1804599
For that I need predicate editor.
 
user1804599
7:50 AM
Easiest would be to have the user enter S-expressions but users are dumb. :V
 
if it's a fixed set it's easy enough
my project is a tad more ambitious
 
user1804599
Only a few operators.
 
user1804599
But I also need AND, OR and NAND, which suck.
 
7:51 AM
@JerryCoffin haha
 
@chmod711telkitty I've always found this odd. Americans (especially) seem to perceive Russian women as large. Russians perceive American women as large. Based on what I've seen on both countries, the Russians have a much more accurate view (at least in this respect).
 
:breakingnews:
 
@Jerry Coffin I (an American) always thought of Russians as tall and rugged, not necessarily fat.
 
src\Glisha\G2D.hs:135:1:
    parse error (possibly incorrect indentation or mismatched barkets)
 
OTTER DECAPITATES WOMAN, KEEPS HER HEAD AS TROPHY http://t.co/RoxMdUXOqe
2
 
7:57 AM
@BartekBanachewicz What are you doing
 
@WilliamAndrewMontgomery writing code
oh wait
I left a dangling =
facepalm
 
@JerryCoffin well ... BMI tends to increase at the rate of inflation for women over 18 in both countries so ... maybe you were paying attention to younger russian women a bit too much? :x
 
@BartekBanachewicz show_me_the_code(TM) /cc @rightfold
 
@chmod711telkitty you have to really try hard to not notice the overweight notion in the US
 
7:59 AM
@BartekBanachewicz What overweight?
 
@AaronKyleKilleen Russia is something like 1/4th in Europe, and 3/4ths in Asia. Even at the far western edge of Russia (St. Petersburg) many Russians show at least hints of Asian ancestry. Women aren't necessarily short, but even so, I'd have described a lot more as "petite" than anything close to "rugged".
 
@WilliamAndrewMontgomery wut.
 
user1804599
@BartekBanachewicz And it works very well with Angular as well.
 
shaderIdentifierSupply :: IORef Int
shaderIdentifierSupply = unsafePerformIO $ newIORef 0
what
 
user1804599
My biggest trouble with Django is that it's extremely difficult to not use Django models.
 
8:01 AM
data VAO = VAO
    { resource :: !(Resource VAO_)
    , boundBuffers :: !(IORef [Buf.Buffer]) }
what
 
user1804599
You basically cannot use anything useful Django offers anymore when you use custom models.
 
@BartekBanachewicz what what
 
user1804599
@BartekBanachewicz That works, but you may want to look at Data.Unique instead.
 
@WilliamAndrewMontgomery I mean he obviously has written a lot of code. And apparently knows haskell better than me. But what's there is scary
 
Can you guys enlighten us why all the "what"s after pieces of some Haskell things? @BartekBanachewicz @rightfold
 
user1804599
8:02 AM
@BartekBanachewicz It's a global mutable variable.
 
@BartekBanachewicz it's a great piece of code IMO
 
@Griwes It's a global mutable variable.
 
@JerryCoffin For some reason I just imagine Russians have an almost superhuman alcohol tolerance and ability to withstand cold temperatures.
 
@BartekBanachewicz Oh noes!
 
user1804599
But use Data.Unique. Don't write this yourself.
 
8:05 AM
@AaronKyleKilleen those go hand in hand ;-)
 
well the guy is not stupid, that's for certain
 
I'd like to see some samples using that thing though
oh there is one
performGC
ow.
 
@AaronKyleKilleen Russians do consume quite a bit of alcohol--last time I looked, something like 8 of the top 10 countries by per capita alcohol consumption were former members of the USSR. Withstanding cold...I dunno. It certainly gets cold, but residents didn't strike me as dramatically different from the farmers and such around where I grew up (North Dakota, South Dakota, Minnesota, etc.)
 
Hmmm most questions on SO aren't questions anymore. They're statements of a problem.
 
8:10 AM
0
Q: std::setprecision function gives wrong result

Alaa M.I have the following line to display float numbers with only 3 decimal digits: myfile << dSet[i].probability[j] << setprecision(3); It goes through 150 lines of data, and it prints all of them fine (3 digits as expected), except for some data (especially the very first data): It's ok for th...

 
@Griwes well, they are pretty much always bad
 
@WilliamAndrewMontgomery in general, no, not really. Mine is more high-level.
He focused on wrapping OpenGL into OpenGL
I want to wrap OpenGL into useful abstractions
which of course doesn't mean his work is useless or bad, but I don't think it's ultimately the way to go.
 
I'm glad you guys are still here.
 
@rubenvb for the moment
 
8:14 AM
@WilliamAndrewMontgomery The Lounge survived many Reconquista's
I bet it can survive more cataclysmic events.
 
Someone burninated my tag
 
I am going to start coloring my shell windows
alt-tabbing between black ones is annoying as heck
 
user1804599
Angular, what the fuck.
 
let v :: Vec2; v = 1
that's nice
 
Xeo
it's the only way to give proper signatures to things in GHCi
 
8:23 AM
nah, I mean what v will contain :P
 
Indians have British humor now?
 
Xeo
Is Vec2 an instance of Num?
Must be
And meh, that seems rather confusing
 
@Xeo yep
@Xeo it's useful though
 
Xeo
For the operators, I guess. Not so much for fromInteger :/
I don't know if v will be (1,1) or (1,0) or what
 
maybe you're right
 
Xeo
8:27 AM
Maybe I'm not
 
user1804599
Nice, it works.
 
user1804599
 
user1804599
That was easier than I expected.
 
Xeo
> 1 = 2
 
user1804599
Always false, so the predicate returns false. :P
 
8:37 AM
Lol, I just closed a question as a dupe of one of mine that was closed as not constructive :-P
0
Q: Will 'else' should be used in C++ if there is a return to finish the function

feelfreeJust curious about the good practice of writing codes in C++, take the following codes as an example: int do_something() { bool bHas; .... .... if (bHas) { ... return 1; } ... do something else ... return 2; } In the above codes, we can see if bool bHa...

 
do you guys ever think this site is overzealous when it comes to closing topics?
 
@AaronKyleKilleen No. There's so many questions already asked. Closing isn't necessarily bad. Especially in the case of dupes.
 
-1: I hate it when people complain about omitting curly braces. It's a perfectly reasonable convention to omit curly braces if you indent your code properly, and everyone knows to go and add curly braces if they add a second line of code. — Ken Bloom Nov 21 '10 at 13:39
lol
I don't like omitting my curly braces.
 
user1804599
Because the language does not offer the necessary features. — rightfold 5 secs ago
 
user1804599
:v
 
8:41 AM
@Rapptz A perfectly reasonable convention when you want to introduce bugs.
 
Somehow my PNG got corrupted.
 
Xeo
@Rapptz Depends. I think it really adds noise sometimes, while other times I like the clarity
Depending on what else is going on in the function
 
I used to omit them but I don't anymore.
 
Xeo
if I can get away with it, I always go for early-return with the inversed condition, though
To escape that nested-indentation hell
 
8:44 AM
changing my mainpage from CRLF to LF made it work in doxygen on linux
 
user1804599
switch (true) :P
 
wonder if the other way around breaks it on windows
 
@Rapptz probably :-o
 
Xeo
@rubenvb ewwww
 
what a pain
 
8:45 AM
You should let something like git handle the line endings
> // FIXME: ugly as hell, alternatives welcome.
It just works and I know how. So I kept it.
 
I could never get git to handle line endings for shit.
 
Wow. I forgot about Bad Lip Reading
It's much better than I remembered
 
@Rapptz how so? You just leave everything at defaults (on Linux and Windows) and it just works...
 
Xeo
@rubenvb Use a proper parser combinator library :s
 
@rubenvb Not on my end. Switching to linux made me have a bunch of ^M and vice versa.
 
8:47 AM
Damn that's big.
 
I tried setting autocrlf or whatever and it still didn't do much :v
had to do a bit of messing around, pretty sure it's not default.
 
@Rapptz huh, weird. Never had issues.
@Xeo Oh, and it's hard to get nice error messages out of those. Simple in my code. Just throw a syntax_error with all the gory details.
Not that I'm defending that code in any way.
 
 
here comes sehe and his favorite battle horse
 
user1804599
Use Bison.
 
8:49 AM
@WilliamAndrewMontgomery actually, no. I just happen to know he's been using it before
 
@sehe you know you love Spirit!
 
@rubenvb Nope. LF works on both Windows and Linux. Neato.
 
@sehe I never got to using it :-/
I might still try to get my head around it sometime. I haven't had much brain-time to code my stuff :-(
Also the compile time...
 
Xeo
Use Haskell and Parsec. :D
 
And the error reporting.
 
Xeo
8:51 AM
(Parsec is awesome)
 
@WilliamAndrewMontgomery I don't dislike it. I dislike it for mostly the same reasons I should dislike C++. But it's not the right tool if you don't know it inside out :) It's only rapid if you know it well
 
Oh, I'll learn abstract parser theory, Haskell, 3 years of abstract math (well, maybe two, I'm a physicist after all), and then integrate that into my program.
 
@Rapptz for varying levels of "works"
 
user1804599
@Xeo I wish there were no try, though.
 
user1804599
It would be slower but I couldn't care less.
 
Xeo
8:53 AM
Hm, well, explicit backtracking was a specific design decision, so not much one can do about it
 
user1804599
Implementing monadic parser combinators is a piece of cake, though.
 
@rubenvb you don't have to learn a lot of math to use haskell
 
Xeo
You could write a module that has all combinators with try prefixed, but...
 
Xeo
@rightfold Ye
Though I use the Applicative interface, mainly
 
user1804599
8:54 AM
Me too.
 
@BartekBanachewicz ok, fine, but the parser theory is still beyond me unfortunately. I know I should. Maybe that's why any real development has stalled...
 
user1804599
Only for bigger parsers I use monadic interface.
 
@sehe Why should you dislike C++ if I may ask?
 
Because it has many shortcomings
 
@rubenvb you don't need formal parser theory to use Parsec
 
Xeo
8:55 AM
if only there was a flipped (<$) in the Prelude
I needed to define that myself :/
 
@WilliamAndrewMontgomery because using it makes it hard to write programs.
 
@BartekBanachewicz Hmm OK. Is it a Haskell parser or is it a parser generator?
 
Xeo
Parsec is a monadic parser combinator library written in Haskell
 
@BartekBanachewicz Not really. It makes it hard to make them correct. And interoperable
 
But even then I'd still need to learn Haskell.
 
8:56 AM
@rubenvb that would be an added benefit
 
Because I don't know what monadic means or what I can do with it.
 
Xeo
Parsec is pretty similar to Spirit, in a way
 
user1804599
I find Spirit difficult to grasp.
 
user1804599
I have no idea how to return values from parsers.
 
@sehe I'd wager that both should be implied.
 
8:57 AM
@rightfold It's easy, until you start trying to understand %=.
@rightfold Attributes!
 
%= is Stateful Lens mapper
 
@rightfold they teach you in the tutorials.
 
> I need a STL in c++ for performing insertion, searching and retrieval of kth element in log(n)
 
@WilliamAndrewMontgomery please link the friggin' questions.
 
0
Q: Is there a STL in C++ for performing insertion, searching and retrieval of kth element in log(n)?

cegprakashI need a STL in c++ for performing insertion, searching and retrieval of kth element in log(n) I have a class like class myClass{ int id; //other variables }; and my comparator is just based on this id and no two elements will have the same id. Is there a way to do this using STL or I've...

 
8:59 AM
Just quotes are terribru antisocial.
 

« first day (1320 days earlier)      last day (3644 days later) »