« first day (1397 days earlier)      last day (3568 days later) » 

10:00 AM
@nightcracker lol
 
in case that was supposed to be a pun
I'll be pedantic and say that pan is made out of a combination of teflon and aluminium
not iron
 
s/pun/pan/
 
you must be fun at parties
 
@nightcracker or just lying
 
@LightnessRacesinOrbit isn't fry pan a typo?
wikipedia says the forms are frying pan and frypan
 
10:03 AM
@AlexM. yeah
frying pan
probably American
 
lightness senpai noticed me!
I have a dream that soon I'll be able to speak English like him.
true English
 
senpai pls notice me
@LightnessRacesinOrbit pls
 
fry pan is short for frying pan
 
10:07 AM
I think if you put a british accent on that actress whose name I already forgot but is like hot chocolate
you'd get the sexiest thing
 
@Rapptz does gears have any string formatting?
a la typesafe printf
 
yeah
fprint
 
I found out I'm like the only guy in my team coming to work at 10AM
everyone else comes at 12+
 
@Rapptz oh, but you only output to streams?
wouldn't it be more useful to return a string?
 
sprint a la std::stringstream
@nightcracker I thought about it. Still debating it.
 
10:12 AM
also I have a tip/feature from Python that's pretty useful
 
but it'd be hard to do string conversions for everything plus it's better to use streams since people already overload operator<<.
 
make indices autoincrement
in my library I use it like op::format("{} is twice as big as {}", 2*x, x);
I'm still working on my implementation though, it's a bit of a mess right now
 
yeah it's useful but it's a pain to implement
 
also I see you don't have to escape } in your implementation
I followed python's lead and force escaping on both { and }
 
I didn't like escaping }
 
10:17 AM
I kind of like it, since you rarely see a lone {, and forcing you to escape } keeps brackets matched
 
my thing isn't based on python
it's based on C#
 
python's implementation must be pretty nuts though
 
how come?
 
do you know how much stuff you could do with it?
 
10:20 AM
I'm not certain I understand what you mean, why would their implementation be nuts?
 
some pretty insane things like
'({0.x}, {0.y})'.format(point)
 
It has attribute access and filtering
 
sounds troublesome
 
yeah, they do that kind of stuff
 
It's p straightforward to do in Python, parsing aside
 
10:21 AM
I don't though, but I thought about doing indexing, but decided against it
 
Ell
meh ruby string interpolation best string interpolation
 
Fuck Ruby
 
iunno which format string to really use though
the ones I currently have don't have filling
I wanted to do printf for printf sake but positional arguments in the POSIX syntax is ugly as fuck
printf("%2$*1$d", width, num);
 
oh god no
 
@AlexM. it'll be amazing
@nightcracker #noticed
@AlexM. Zoe Saldana
and nah
 
10:30 AM
@Rapptz btw I just tested, specifying inline at definition but not declaration seems to work
 
@LightnessRacesinOrbit hey, Mr. English Police, didn't you know that "anyways" is an American bastardization of "anyway". It's in the dictionaries now! :P A smart English teacher once told me that "language changes over time and distance". I'll say "anyways" wheneva I want! Power to the People! Resist Authority! — Cupcake 20 mins ago
sigh
 
@nightcracker might be because it's header only.
iunno
wow
POSIX positional arguments have gotchas too
13
A: How do positional arguments like "1$" work with printf()?

Jonathan LefflerThe relevant part of the POSIX specification of printf() defines this behaviour: Conversions can be applied to the nth argument after the format in the argument list, rather than to the next unused argument. In this case, the conversion specifier character % (see below) is replaced by the seq...

 
0
Q: cannot contribute on StackOverflow due to lack of reputation

FunTimeCodingI cannot contribute to any question by adding comments or voting answers up and down because it requires 15 reputation. The only way to get those 15 reputation would be by me coming up with questions I already know the answer of, or something else thats probably absurd, because I simply don't ha...

 
> The only way to get those 15 reputation would be by me coming up with questions I already know the answer of
lol help vampire
 
10:38 AM
With every new second I work on Drupal database the more I hate everyone involved in this shit
You think you've seen all of the idiotic things you can do with a relational database and then it surprises you with something brand new!!!
 
> The brain is a wonderful organ; it starts working the moment you get up in the morning, and does not stop until you get to school.
 
Ell
@PolymorphicPotato hahaha
 
If you're a Drupal developer then it never started
 
hm... boost.test has BOOST_CHECK( x == y ); but it doesn't show values of x and y on error
 
10:57 AM
-4
Q: Stone Game - One Four

Abdullah SarfarazAlice and Bob are playing a game called "Stone Game". Stone game is a two-player game. Let N be the total number of stones. In each turn, a player can remove either one stone or four stones. The player who picks the last stone, wins. They follow the "Ladies First" norm. Hence Alice is always the ...

we should answer his question, he's with microsoft
must be a top dog
 
woof woof,
 
There were plenty of women in my advanced maths classes back in the university days
 
11:18 AM
dunno why I linked, just saw it.
 
WTF with all the 'Firefox can't find the server at stackoverflow.com' :((
It must be me - gonna reboot.
 
11:42 AM
@MartinJames They thought their previous hints were too subtle.
 
12:19 PM
user image
10
 
I almost wrote Catch - coliru.stacked-crooked.com/a/131e2a270eaf729b /cc:@Rapptz
 
> "`" + str + "'";
 
"typical" = "eye-catching". It's an Indianism. — Jayraj 12 hours ago
lol
"indianism"
 
1:05 PM
@MartinJames maybe SE is using us regulars in the C++ lounge as the testing piglets, knowing we would always try to get back ...
 
what's up with you and animals?
 
I love them?
 
I even learned a new word for chickens after you used it
what was it...
chooks
right
 
Do want "for each with index" in C++.
 
1:12 PM
Hylarious
 
lol
I like how isn't is a valid name.
 
lol instance Num String
 
data Bool = TRUE | FALSE | FILE_NOT_FOUND
 
-- sort function, optimized for lists
-- TODO - profiling
notElem x ys = elem (not x) ys lol
 
1:17 PM
foldl f z xs = foldr (flip f) z (reverse xs)
 
@PolymorphicPotato You need to be more...creative, and think outside the box. Truly optimal sorting routine in C++: template <class Coll> void sort(Coll &c) { assert(c.size()<=1); }
 
guaranteed O(1)
 
@Puppy Those people who claim O(N log N) minimum are clearly full of crap!
 
Not if size isn't O(1).
 
@PolymorphicPotato It is.
 
1:21 PM
@PolymorphicPotato Standard guarantees it is in all conforming implementations for all standard containers. Of course, being a template somebody could apply it to some other container for which that's not true.
 
The function doesn't guarantee Coll is any of the types in the standard or conforms to any of the concepts in the standard.
 
such is the nature of all templates that preconditions are not stated in the signature.
 
This question should not be voted to close because of "recommend or find a book, tool, software library, tutorial or other off-site resource". Maybe it's a dupe, but it's not that. — John Dibling 1 min ago
I don't even. It's just a compiler error the OP needs help with.
And there's actually a close vote for that.
 
@chris John's absolutely right. Nothing about the "off-site resource" close vote reason fits this question. Nothing.
 
Exactly
I thought it was a joke at first because why would you pick that.
 
1:28 PM
Oh, so you're agreeing with him. Okay.
I thought you were complaining about the comment, not joining him in criticising the close vote.
Yeah that CV is just silly; someone going "huh this is basic you need a book so I'm going to pretend you asked for one"
It's massively a dupe, though; Juan should know better than to repwhore on that stuff
 
That's my problem. Everything is a dupe
 
In fact, I just picked an arbitrary dupe to close it with, and yours is the accepted answer :D (from two years ago)
 
lol
 
So how about that
 
@chris Your mother's a dupe.
 
1:30 PM
@Puppy I am your mother. huehuehuehue!
 
then who's that in the living room?
 
@Puppy Me.
 
@Arcoth You should have aborted
6
 
@LightnessRacesinOrbit This is why I can't answer anything. There's a 50/50 shot I've already answered it before, and if not, there's inevitably someone else who has.
 
@chris SO is dead innit
 
1:31 PM
@LightnessRacesinOrbit You fucking hate Puppy don't ya?
 
@Arcoth I love Puppy to bits. That doesn't change the fact that he's an ignorant wanker. :)
 
Drupal has no UNIQUE constraint on the username :psyduck:
 
@LightnessRacesinOrbit Do you generally like ignorant Wankers to bits?
 
@chris and here was I stopping because there was always some technicality that I missed that however minor or irrelevant would lead to downvotes
 
@Mgetz With any luck, you fix it and they get reverted, or maybe you learn something.
 
1:37 PM
@chris At this point I wait for the people who would downvote me to answer and see if I learn anything
 
I think SO has made me into too much of a "It does this nearly all of the time and I can't say all because there's one convoluted exception that will just confuse you" person.
 
@chris pretty much, and since I don't know that convoluted exception (which inevitably causes downvotes) I just don't answer
 
@Arcoth Not usually, but he's kinda special
 
@LightnessRacesinOrbit Oh, because he's my son? :)
 
@chris and @Mgetz have very similar avatars -.-
@Arcoth sure we'll go with that why not
 
1:42 PM
Please work. I promise to refactor you soon.
 
@LightnessRacesinOrbit we do? mine is the aperture science logo.. his is something rather different
 
Xenoblade
 
ah
 
FWIW, reverse image search
Works well for memes you don't know the name of lol
 
@chris doing actual work, couldn't give a shit ATM
 
1:44 PM
I am, too, and my code is playing hard to get.
It's almost working, but not quite.
 
@chris lol, I need a new job... where I can work with a language which has a standard, and the undefined behavior and weird shit is actually pointed out by said standard.
 
I'm using a weird mix of Javascript and .NET.
With ECMAScript3
And I don't even know what version of .NET
 
@chris eh that's not bad, trust me, I've been there. I'm working in the unholy horror known as Salesforce Apex.
 
I thought it was 2.0, but then I accidentally used a function from 3.0 or something and it worked.
 
@Mgetz Kill it with fire
lots and lots of fire
 
1:48 PM
Okay well I'll know to stay away from that.
 
@Yuushi I wish I could, but I think the best I can do is get a new job. Preferably far far away.
 
yes, probably
 
I'm on the first of my co-op terms, so it's only four months at a time.
I have to wonder why Excel is incapable of opening two files with the same name.
And why it takes three tries to save something as a CSV.
Even if it's already a CSV
 
@chris because it's a singleton application with code dating back to the mid-80s
 
2:00 PM
can't argue with that
the legendary super aryan i.stack.imgur.com/wbZUl.jpg
 
@AlexM. WTF is that from? :)
 
...the hell is that from
 
4
A: What is the name of the manga which depicts Hitler as a Super Aryan?

Jon LinIt's called Mudazumo Naki Kaikaku. The characters are all based off of real-life politicians like George Bush, Kim Jong Il, Mao, Pol Pot, Putin, and of course, many from Nazi Germany, and they play Mahjong together in this manga. It was also adapted into an anime series.

 
Is it 'Stone Game Day'? Why am I not getting such news?
 
2:15 PM
you didn't win particle clicker
 
2:33 PM
@Mgetz they look similar in miniature
cos colour
 
What was the book name that teaches general programming guidelines? (I recall the author was Ken Thompson or another reputable person.)
 
@modeller There are quite a few of those. Perhaps you're thinking of The Practice of Programming (by Rob Pike and Brian Kernighan)?
 
@modeller Coders at Work?
-2
Q: Compile time error..Lvalue requiered c++

Ranjith JothiThis code shows run time error #include<stdio.h> #include<conio.h> #define SIZE 7 int a[SIZE][SIZE],q[SIZE*SIZE],visited[SIZE][SIZE],n,i,j,f=0,r=-1; int parent[SIZE*SIZE], x_dest, y_dest, x_temp, y_temp; int flag =0; void find_neighbours(int x, int y) { if (( ((y+1)=0) && (a[x][y-1])) && ...

lolwut
since when are lvalues known about at runtime?
-1 for encouraging answering such "questions." — Polymorphic Potato 31 secs ago
haha yes fine okay
 
2:52 PM
@LightnessRacesinOrbit Awww, I can't read that deleted post. I should effort up to 10K.
 
you missed it by like 5 seconds
 
@OmnipotentEntity You should, but in this case you didn't really miss much--just another "do my homework"...thing (not really even a question, just a CnP of the assignment).
 
thanks for all the encouragement Jerry, that was priceless!
 
@chmod711telkitty Anytime. I exist only to have sex serve.
 
3:06 PM
@JerryCoffin I don't understand ... why you are not a heterosexual gigolo in that case ...
 
@TonyTheLion So that's who's been stalking me...
@chmod711telkitty I was, but I had to quit because I was making too much money.
Well, I guess I'd better get to work. Talk to you all later.
 
gawd I'm getting fat
ter
 
@JerryCoffin thought you were going to say that then you realised that your true love was programming. How geeky of me ...
 
bleh, I thought 45sec compile times in C++ were annoying...
 
3:20 PM
I usually sit through 30 mins of building this whole suite of things forming one huge sandbox for everything that's to be tested
 
Man, I thought my project was rather bad with an 11 minute compile time.
I can't imagine 30 minutes
 
I was building LLVM and Clang for over an hour last night
 
@Puppy yes but once it's built I can't imagine changing one file would take an entire night. Maybe 5 min for the linking but still.
 
yeah, but if you change one setting in CMake, then VS assumes every file is dirty and needs rebuilding.
 
Not just VS. I gen regular make files from CMake and it triggers a full recompile.
 
3:28 PM
Sir can you please uplode the source code.
 
I think that to work on Clang I'll have to do so on Ubuntu
what a pleasing prospect.
 
@chris no it isn't. It is a question asked in the aptitude test of a well known company. — user3527594 3 mins ago
Watch out. Well-known companies magically make UB into non-UB.
 
user559633
Does anyone have IDE suggestions for an experienced coder that's new to C++? Writing in vim and calling gcc is inconvenient
 
tristan, I use vim and call gcc. Are you using the built in vim :make command?
 
3:42 PM
Hey guys, I have a question regarding regex.
I am trying to create a date regex, but ran into a stumbling block
 
@DarkMouse the answer is don't use regex joking
 
[01][0-9][-\/][0-3]\d[-\/][12][90]\d{2}
It allows results like 19/39/2999
 
@DarkMouse oh right... NEVER write your own date parsing code
just don't do it
dates are a royal pain
 
user559633
@OmnipotentEntity I was not. Wow, game-changer. This is kind of awesome. Any good vim plugins for code-completion/deprecation warnings?
 
3:44 PM
@DarkMouse If you want to anyway despite what Mgetz said, hit yourself on the head once or twice, if you still want to, you need to enumerate the special cases.
 
special cases?
 
Not quite dates, but close enough.
 
@JerryCoffin thanks I just found it . The elements of programming style, which introduce the Unix philosophy
Or maybe it is too oldie?
 
(1[0-2]|0?[0-9]) for the month (for instance)
2
 
@tristan There are good vim plugins for everything
 
3:45 PM
@DarkMouse Gregorian, Julian, the fact that some places skipped a day... or days etc
 
user559633
@Mgetz not a huge fan of sublime or atom.io. Atom felt like a hackish Sublime. Thanks for the suggestion though.
 
@tristan Supertab, YouCompleteMe, Syntastic
My vim folder in on github if you want to check it out.
 
@tristan I thought so too, but the more I use it... the more I like it
 
it's nothing special
but it might give you a starting point.
 
Omnipotent, that was a great answer. It helped a lot. I had no idea how to use conditional regex
 
3:47 PM
However,
that still won't fix your issue.
Because different month lengths.
You should use a library
 
user559633
@OmnipotentEntity thanks for the help. I'll see if I can stick it out with vim -- I have a somewhat...customized vim setup myself.
 
Right, I still need to fix the months and years
Are there any good regex guides out there you guys recommend?
 
Don't use regex to do this.
 
I see
 
Actual regular parsing code would be better, shorter, and easier to read and write.
 
3:50 PM
Could also use validations
 
if you use regex it should be a one pass minor sanity check to (for instance) client side to flag and you shouldn't rely on it.
assuming this is accepting a date from a user over the web or something
 
yep
 
Ahahhahahahaahhaahahhahahahahahhaha
Look at those constraints
 
user559633
filesize unique?
 
Ell
idk what AI is
 
3:56 PM
If you don't feel that being away from your spouse for a year will lead to "sorrow" for either of you, perhaps you and her need to sit down and have a little chat. — Lightness Races in Orbit 7 secs ago
 
Now laugh at me because that's actually UNsigned
Which is apparently more important thing to display
@Ell Autoincrement, MySQL's poor man's serial pseudotype
My sanity is slightly restored
 
> C is a purely functional language.
 
The entire schema is still shit and needs to die
 
Ell
@CatPlusPlus ahh kk cheers
 
Great
I have to correlate content between two databases and there's no unique ID
Sure hope (language, title) is unique enough!
Fucking everyone
rgrrgrrgh
 
4:09 PM
HEY I POSTED A FUNNY COMMENT LAUGH AT IT AND UPVOTE IT PLEASE AND THANK YOU
 
THE ONLY THING I CAN LAUGH AT RIGHT NOW IS THE WORLD BURNING
I'm hungry I should drink something
 
is there a good tool to have more customization options in ubuntu?
 
@chris Well, what would be the point if it didn't function?
 
Define customisation options
 
@JerryCoffin lol
 
JBL
4:12 PM
Why did they nuke that "Why C is better than C++" question? I was grabbing some popcorn... :(
 
@chris Always wondered about the sanity of those people selling "operational amplifiers" too. Do they honestly think I might want to buy an amplifier that wouldn't operate?
 
@CatPlusPlus change fonts, change workspace configurations, change theme colors and just general things like that. The generic system settings don't seem very... robust
 
Oh you mean pointless busywork, no I don't know
 
0
A: Unicode in C++11

e23kC++03 offers two kinds of string literals. The first kind, contained within double quotes, produces a null-terminated array of type const char. The second kind, defined as L"", produces a null-terminated array of type const wchar_t, where wchar_t is a wide-character of undefined size and semantic...

 
Depends on the DE also
 
4:15 PM
WTF is wrong with this guy (see comments)?
or am I having a huge brain fart?
 
the default fonts in Ubuntu are terrible :| I changed it to Droid Sans and everything is already muuuch better
 
JBL
I'll Pray for you . You'll be fine soon — e23k 2 mins ago
Lol
There's like 3 words in the title and he can't compute them...
 
Don't engage the poo
Downvote and forget
 
Guess UTF-8 is impossible in C++.
 
@KonradRudolph he appears to be a moron.
 
Ell
4:25 PM
@chris Not at all
 
@Ell /s
 
Ell
why is it impossible?
 
Wrong comment. Konrad's linked answer comes across that way.
 
@chris How would you "<an encoding> in <a programming language>?"
 
@PolymorphicPotato Umm... uhh... regex!
 
4:30 PM
Encoding to UTF-8 and decoding from UTF-8 are perfectly possible to implement in C++.
And regular expressions shouldn't deal with UTF-8. It would violate SRP by putting decoding and matching in the same module.
 
Half of my last four comments were joking or sarcasm, and one was pointing out sarcasm.
 
Rule #1 of sarcasm: it doesn't work on the Internet.
Rule #1 of the Internet: sarcasm doesn't work on it.
 
user559633
is this the right/recommended book to get a solid foundation of C++? (apologies for my 'newbie' questions)
 
I was so sure that was going to be either Sam's 21 Days book or C++ For Dummies.
 
user559633
Rule #1 of violence: if it doesn't solve your problem, you're not using enough of it.
Rule #2 of sarcasm: see rule #1 of violence.
 
4:33 PM
C++ for Masochists.
 
@PolymorphicPotato As opposed to C++ for Feminists
 
Ell
regexen should just work with unicode characters
 
user559633
Who has this much time for trolling?
 
user559633
"Primitive variable types are not defined on declaration. Instead, the variable is free to choose its own type when it is utilised/-ized. This preserves the variable's right to self-identify as any datatype it feels that it is." that said, this is kind of amazing
 
Putting € after the number is so silly.
 
4:42 PM
@chris that old trope, it was a troll
@tristan it's called duck typing, python has it
 
user559633
@Mgetz I know what duck typing is. I was quoting from the troll content of C+=
 
Ell
4:55 PM
> Pointer is phallic and is thus problematic
they really got it down to a tee
 
My import script is so fucking complicated
YOU'D THINK COPYING ROWS FROM ONE DB TO ANOTHER WOULD BE EASY
 
user559633
Would something like SQLAlchemy help?
 
No
I need to get drunk because I'm v close to just fucking exploding
 
user559633
Fair enough. I was thinking that it would be convenient just to hackishly map columns to an obj for whatever transformations need to happen
 
That literally doesn't even register on the scale of problems here
 
5:05 PM
@tristan If you are thinking of that, then SQLAlchemy is a horrible example, since it does way more things than that.
 
user559633
yeah, fair @PolymorphicPotato.
 
Has any of you scrubs used vagrant before?
 
Is it good?
 
Ell
5:24 PM
Well it's results day tomorrow
lord help me
 
good luck
 
Ell
I'm going to need a strong drink to sleep tonight
@Puppy Thanks :)
 
What is results day?
 
Ell
@PolymorphicPotato I get my A level grades which determines whether I get to go to university or not
 
How can anyone help you with that?
Getting grades is about the most simple thing one can do.
 
Ell
5:34 PM
@PolymorphicPotato They can't :P
 
Like, you go there and listen to the damn guy who tells them.
 
Ell
Getting them isn't the difficult bit :P
 
Hey @Puppy, just noticed that you made a post on our forums (same avatar) asking about char[sizeof(T)] vs std::aligned_storage<T>. It is the way it is because we were shooting for MSVC compatibility at one point.
 
@OmnipotentEntity Ah, I see. Was just curious.
 
Yeah, I actually didn't know so I had to ask kyren.
 
5:37 PM
well x86/x64 are pretty tolerant of unaligned accesses anyway so unless you store SSE data in there you'd probably be fine either way.
 
Man, I can barely read what I just wrote down.
 
@StackedCrooked It's the puncher's fault that he pushed the other guy into the side mirror in the first place.
 
Still it was nice of him to fix it.
He's a nice puncher.
 
I was working with so-called picker objects today and I had to pickle them.
@StackedCrooked I was wondering whether potential Japanese people reading my code would get confused.
 
5:46 PM
@PolymorphicPotato so how did that work out?
 
@PolymorphicPotato You should name the pickled picker "Peter Piper's Peppers."
 
need a book! Where's that thing this guy posted with a list of books?
 
4279
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 published 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 well-written...

 
@OmnipotentEntity thanks
 
tinyurl.com/so-cxxbooks
or something like that.
infact exactly that.
 
5:58 PM
Oh man, remember when for like 2 or 3 months to. was a url shortener? Those were the glory days.
 
no
 
@OmnipotentEntity Actually, there is a UI element called "picker picker" since it allows you to select a picker.
 

« first day (1397 days earlier)      last day (3568 days later) »