« first day (1307 days earlier)      last day (3627 days later) » 

12:04 AM
guys, what is desirable behaviour of a string formatting library if the format string is malformed?
throw an exception? or is that undesirable in a string formatting library?
 
no idea about that, but my butter & cheese toast is amazing
 
hello everyone
 
@nightcracker silently output garbage :3
 
how are youse
 
youse?
 
12:07 AM
@melak47 that seems like a terrible idea
 
:D
 
like, ideally I'd be able to catch this kind of issue at compile-time
 
yes youse
you''se
 
and all information IS available at compile time, C++ just doesn't have the tools :(
 
hmm, I thought someone posted some constexpr string stuff here a while ago?
 
12:08 AM
@nightcracker It does.
but
I throw exceptions.
I could change it to a static assert though I guess
 
@Rapptz could you expand on this?
 
you can loop through a string at compile time
 
with constexpr?
 
yes
 
ah, i just needed to add a -cpp flag.
 
12:18 AM
@Rapptz could you perhaps give a little snippet that shows how you can do a static assert on a passed string?
 
I don't know what you want to do.
 
I have a formatting function that takes a format string and a variable number of arguments, however not all options in the format string are valid with all passed types
if the format string is known at compile time I'd like to static_assert that no invalid options are passed for the given types
 
Your first mistake is inheriting the format string from printf
:|
You already know the types at compile time, there's really no reason for you to have to specify the type again in the string.
It's redundant and quite frankly silly.
 
I'm not specifying type in the format string
nor inheriting format string from printf
 
Then how would the format string be invalid for a specific type?
 
12:24 AM
for example there is an option in the format string that instructs to output the passed integer value in hexadecimal
that option makes no sense if the passed value was a string
 
> Die Fahrradmitnahme ist z.B. in Belgien, Dänemark (nur in Regional-Zügen oder dem City Night Line), (...) möglich.
Fuck.
Can't take a direct train with a bicycle.
 
12:42 AM
Aaaah why is this game so stressful
 
I used to listen to the first disc of these two a lot as a kid
I think my mum threw them away a long time ago
I swear to god there's no place on the web to download the album
 
@chmod711telkitty heh, posted this earlier :P
the only thing more awesome would be if the cat were a maine coon
I think it would have smashed that dog good
maine coons are awesome
 
until it sleeps on you :p
 
you keep it outside
at least that's where I'd keep it
I remember there being a trick to make google search pages in particular languages only
maybe I can get better results by searching pages in German only, let's see
no chance, bah
I don't want to order a 1 eur item from ebay lol
 
1:31 AM
@sehe granted
 
1:42 AM
What do you do when the founding members of reigning champions Al Quizeda show up and decide that you and your friends are not good enough to join them this week? And leave you four on your own for the night? You frakking beat them at the quiz, is what you do. :-)
 
Damn it, 40 seconds left to play.
MY HEART IS GOING TO EXPLODE
20.
The stresss
 
wait, what's happening?
 
I am curious too.
 
GG!
The Canadiens defeated the Bruins.
 
Is this for hockey?
 
1:50 AM
Yes.
 
Now I want robot hockey. Is there any robot hockey out there in the world?
 
Danny B silences the crowd in Boston to go up two @NHL . Cue the debris from the fans now...#PriceisRight
lol #PriceisRight xD
 
2:18 AM
8
Q: Going back to university after suspension, how do I move past the shame?

anonymousI was suspended for 1 year from my university for copying an assignment from an online source. There were several extenuating circumstances but I won't go into them as they are irrelevant, I did cheat and I do deserve the punishment I was given - that is not the question. After I found out my s...

> I was suspended for 1 year from my university for copying an assignment from an online source.
wat
here you have to redo the assignment or at worst take the course again next year
 
user3010322
3:18 AM
That's the least that can happen.
 
user3010322
"Academic Honesty" is a whole policy and carries EXTREMELY harsh connotations in most U.S. Universities
 
user3010322
You violate it and they basically own your soul.
 
don't they already own your soul with those huge debts?
 
user3010322
Yeah, except in this case you'll still have to pay those debts but you'll also be suspended/kicked-out/fail the course.
 
user3010322
Cheating on assignments or exams can usually fail you for the whole course, and THEN you get referred to the disciplinary committee for any additional punishment the committee decides for my University.
 
3:20 AM
sounds unfun
 
user3010322
But you'll still pay full dollar for it.
 
user3010322
So you're basically paying for a 0% grade and 0 earned credits.
 
user3010322
Also holy SHIT I hate refraction. ;~;
 
Tim
3:37 AM
hi, can I ask a question of not finding a header file?
 
is it you not finding header files or your build system?
 
Tim
both.
in my cpp file: #include <gperftools/profiler.h>
"fatal error: gperftools/profiler.h: No such file or directory"
then
I try to find it by myself
$ locate -i gperftools
returns nothing
here I am trying to use google perftools's header file, and have installed libgoogle-perftools-dev on my Ubuntu
 
@ThePhD I kind of like refraction. I'd especially like a Minolta 3x-1x macro lens. Too bad they're discontinued, and used ones sell for $2000+ apiece...
 
user3010322
@JerryCoffin Sounds crazy expensive... are they used in like, thousand dollar photographs or something?
 
Tim
is this the right place to chat about C++?
 
user3010322
3:45 AM
It is.
 
june's almost here
 
Tim
I feel I enter the wrong place
 
I guess that means I'll have to start another jam soon
I wonder when SE will run out of t-shirts to give away
 
user3010322
I'm not sure it's the best place to ask questions about figuring out why libgoogle-perftools-dev can't be found on your machine.
 
@ThePhD Extreme close-ups--a little like a low-power microscope that attaches directly to a camera.
 
Tim
3:46 AM
what is the best place, phd?
 
@Tim cough google
 
user3010322
@JerryCoffin So those lenses that can deliver you those creepy pictures where you're staring, like, into a spider's mouth?
 
google has a documentation about setting up their lib
 
Tim
can the doc solve my problem?
 
user3010322
Probably.
 
3:47 AM
depends on you
 
Tim
can you help me to solve the problem then?
 
@ThePhD Yup, that too.
 
user3010322
You could also manually find the folder's location and then make sure your g++ is including that folder when it does its compilation
 
Tim
I can't find the header by locate command, in my previous comment.
 
@Tim what the hell man
 
Tim
3:48 AM
what is "the hell man"
 
user3010322
Well, you did locate for gperftools
 
user3010322
Chances are, no such file like that exists
 
@Tim This sounds more like basic use of the operating system than anything really related to C++.
 
@Tim at least have the decency not to confuse people with documentations lol
 
user3010322
Beep boop I am documentations
 
user3010322
3:50 AM
Boop beep I am sorry I was never finished, I cannot help you
 
Tim
I locate a file called "profiler.h" here "/usr/include/c++/4.6/profile/impl/profiler.h"
but it doesn't seem like the one for gperftools, does it?
 
user3010322
That doesn't look like gperftools to me
 
user3010322
Oh well.
 
user3010322
Guess you're screwed. Should find out what files your apt-get for gperftools actually did for you
 
Tim
I have installed libgoogle-perftools-dev, I can't find where it is installed.
 
user3010322
3:52 AM
There's tools to ask a package what it's done for you.
 
user3010322
And what it's put on your disk and what it's done.
 
Tim
What command to find it out?
 
I think this is trolling really
 
user3010322
I don't remember. Look it up. :D
 
^^ genius of the day
 
Tim
3:53 AM
what is not trolling then? June or Jam?
 
oooh, here's a prof who doesn't require us to print out code
that's a nice change
 
Opinions on CPython's implementation?
I've been looking at the C source, it requires a lot of looking...
 
4:08 AM
dayum, I wrote 187 lines of code this night
I'm such a good student
 
@AlexM. I believe I wrote about -20 lines of code today!
 
I need to reward myself
I dunno how though
I promised myself I'll only eat McDonald's stuff once per week on a single weekend day, so that's out of discussion
 
@AlexM. Chocolate and/or ice cream.
 
I'm amazed I'm able to keep on avoiding McDonald's stuff considering I used to go there almost every day
@JerryCoffin it's too cold for ice cream but chocolate sounds good enough
 
@AlexM. Chocolate is always good, regardless of weather.
 
4:15 AM
yup
 
4:40 AM
@JerryCoffin orthogonality is good
 
4:52 AM
@StackedCrooked Especially in groups of 7 lines, some in transparent ink...
 
user3010322
I just eliminated like 20 overloads. o.0
 
There's probably a joke in there that I'm not getting.
 
user3010322
The power of classes.~
 
@ThePhD there was an overload of overloads
 
@ThePhD WHAT DOES THE SCOUTER SAY ABOUT HIS OVERLOAD LEVEL
 
4:57 AM
Spawn more Overloads
3
 
We require more mineralz
 
5:12 AM
 
5:42 AM
o/
"I have returned"
 
The "Polymorphic Exception Idiom" (I don't know that "idiom" is the right word for this, @solodon :-P) @cppnow http://t.co/nq995Wv3KJ
lol
 
So weird.
 
user3010322
Meh.
 
user3010322
Already discovered by @DeadMG
 
it's raining outside :(
and I have to walk to the labs
 
user3010322
5:52 AM
Good.
 
unless I call a cab
 
user3010322
Moisture for your skin.
 
I just took a shower, no need for extra water lol
 
Keep yourself hydrated.
 
I hydrate myself all the time with coke
am I doing it right?
 
5:54 AM
no
 
no
 
shit :(
 
eww coke
 
coke is good
 
nope
it ruins your teeth
 
5:56 AM
it's always painful when I rush with an assignment and always end up introducing some sort of global state that could be avoided
and it's even more painful when I somehow introduce two methods that, when it comes to explaining what they do, I can't really show much difference between
and the sort-of-duplication could have been avoided if I took the time to think about what I was doing
NO TIME NOW THOUGH
gotta go fast
@Jefffrey that's future alex m.'s problem
coke is tasty
that's all I know
 
Xeo
mornin
 
evening
 
hiya
 
morning
 
Xeo
Watched NGNL yet? :D
 
6:01 AM
yep
 
@Xeo Fuck you. FFF hasn't released it yet. :)
 
it was good :D
 
Xeo
@Mysticial haha
@StackedCrooked extremely so!
 
still trying to get myself to watch nichijou
actually I haven't watched any show since haiyore wtf
guess I liked it too much
everything else must seem not interesting enough
 
Hoping for a new season of Attack on Titan.
 
6:05 AM
hoping for a new season of haiyore :(
is attack on titan anything more than huge fights?
that's all I see when people advertise it
 
Sure.
 
why did they have to make those muscle tissue things so... realistic though
 
Of course there was a hype. And I don't like hype. But hype doesn't invalidate the original product, which is good.
 
it's almost gross, but this may be just my problem
 
@AlexM. I don't know. And that's only so for one particular titan.
The other ones are merely ugly.
 
6:09 AM
looked at some pics, definitely just my problem
I have this issue with internal organs and blood
back in 11th I went to get some blood samples checked
 
Xeo
Try reading Elfen Lied :D
 
and an hour after there was this dark blue lump where they took blood from
when I looked at it I actually almost fainted
and I'm serious
my eyes got all fuzzy and I had to collapse on my desk
@Xeo I watched elfen lied but it was not realistic-looking enough to make me gross out
 
Xeo
Then go read the manga, the second half is awesome
the anime only covers the first half
 
lol now I remember I had to ask the chemistry prof to excuse me
I went home to calm down
I still feel like vomiting whenever I think of that lump
@Xeo might read it all, I watched the anime many years ago
barely remember anything from it
 
Xeo
the anime also took some liberties towards the end, so yeah, that's a good idea
 
6:20 AM
I used a smart pointer
yay!
std::unique_ptr<Node> root(new Node(v));
 
The debug version of my GPU code refuses to copy 0.0f to the device, instead replacing them with some random junk that looks like a magic number for memory checking. Is it a conspiracy ?
I fucking hate this bug because it only affects devs, none of the users notice it!!!
 
looks like my code runs fine with ideone
should be easy to show it to the prof
w/o having to carry my laptop or to install some compiler
@Mikhail you could take care of that cough
 
lol
anyone posting crap like that on facebook deserves it though
 
@Xeo wow... that's hilariously terrible.
 
state government's website
 
Xeo
7:09 AM
Awright, time to write some C++ code \o/
 
@Xeo I'll have you know I'm respectable--I have full-sized catalogs, not cheap little "brochures".
 
7:27 AM
@Xeo FUCK YEAH. FFF just released NGNL!!!
And of course my DL speed is shit because everyone in the fucking world is trying to DL it at the same time...
 
Morning
 
evening
 
Apparently something in solaris defines a global NORMAL variable. Good job.
 
So I have to parse this directory listing from an FTP server, and I get a string that looks somewhat like this:
05-14-14 11:29AM 0 New Text Document.txt
now how the heck do I best parse this to get the individual components?
if I do string.Split(' '); my document name gets messed up
 
@TonyTheLion of course that happens if you split it
:)
 
7:32 AM
yea
 
REGEXes maybe?
 
I'm terrible at regex
 
For your information, Not all programmer/developer is overweight. — Immer Allein 49 secs ago
 
Xeo
@Mysticial Try the xdcc bots :P
 
Looks like it got a bit faster. Was coming down at 200 kB/s. Now it's 700.
 
7:36 AM
@TonyTheLion looks like
 
Xeo
@TonyTheLion split on tabs
there should be tabs between the sections
 
dd-dd-dd any number of spaces dd:ddcc any number of spaces any number of digits at least a space, any number of anything
capture the important bits and you're set
 
user1804599
What is the tag for sections as in (+ 4)? ?
 
Xeo
There just doesn't seem to be one
 
user1804599
I'll use then. It seems to be used for a variety of things anyway.
 
7:42 AM
 
Xeo
@N.Soong -Things you never want to hear your helmsman say; "Hold my beer and watch this." — Morgan 7 hours ago
lol
 
And it's done DLing.
 
Xeo
I don't need to tell you to have fun, you're going to have a blast.
 
@Xeo first time I hear the word "helmsman"
it reminded me about this
The S.S. Ourang Medan was a ghost ship, which according to various sources, became a shipwreck in Indonesian waters after its entire crew had died under suspicious circumstances. Skepticism exists about the truthfulness of the story, suggesting that the ship may have never actually existed, but has become something of a legend. The ship The earliest known English reference to the ship and the incident is in the May 1952 issue of the Proceedings of the Merchant Marine Council, published by the United States Coast Guard. The word Ourang (also written Orang) is Malay or Indonesian for "man...
I know these legends are bullshit but I'll be damned if I'll ever stop enjoying them
some things are best left unexplained
a nice lie can make your life more enjoyable than a hundred truths
 
8:06 AM
I'm watching Naruto and I have to admit
This is the worst series I've ever watched in my life.
 
why so?
 
Rant would be way too long.
 
@Rapptz Hehe, why?
 
c'mon, just summarize it
 
@Rapptz You have to watch few eps before you see the story emerge.
 
8:08 AM
I'm already up to date with the Manga.
 
I'm curious, I found naruto to be nice
 
like, all of it up until now.
 
@AlexM. tl;dr incredibly inconsistent, I hate Sasuke and Sakura still, way too many asspulls, no one will stay dead, etc
 
I'm not sure what the author keeps on trying to make sakura do tbh
 
8:09 AM
Sakura's useless as hell. I wish Sasuke would have been killed off already but now that he's the second coming of God that's unlikely.
 
what she did in the latest chapter is not even funny anymore, mostly pathetic
just wait, naruto and sasuke are going to combine into a single entity
through a sailor moon-like transformation
 
user1804599
Sakura is a nice terminal emulator.
 
@AlexM. How sad is it that this isn't even the worst asspull Kishimoto could come up with?
 
I'm also not sure how madara managed to do the moon thing so easily now
and why the plant thing was ever a good plan
considering how much easier it would have been to do it like this instead
 
8:18 AM
what was the template trick before static_assert came to life?
 
no template trick
 
Xeo
array of negative size?
 
it was just char stuff[-1]
 
ah, right, thanks
 
Xeo
or accessing a non-existent member
 
8:21 AM
well, I'm off to show my prof the amazing 187 lines of C++ I wrote
just wait until she sees that unique_ptr
 
> she
 
congrats man
 
Xeo
@AlexM. You go, cowboy. Show her your amazing "unique pointer".
 
lol
 
And then I'm the sexist. :rant:
 
8:26 AM
inb4 "Your use of unique_ptr is impressive but, does your code actually work?". "Well...."
 
Last 5 episodes have been flashbacks
Christ all mighty.
 
Yeah, Lost sucks sometimes.
 
Wasting your life watching Lost?
 
No, I'm watching something worse.
Naruto.
 
Xeo
haha
 
8:34 AM
Make that 6 episodes.
 
Xeo
Is it flashbacks, as in, stuff they have shown before, or stuff that happened in the past but they haven't shown before?
 
Former.
I wouldn't complain about the latter.
 
Xeo
ow
 
I actually like the latter.
 
Xeo
yeah
Magi has an arc like that right now
The manga, that is
So, I think @Mysticial died from an overdose of awesome after watching NGNL.
 
8:35 AM
At this point I'm pretty much disappointed that Sasuke and Naruto didn't bust out with a yaoi make out session
Considering how much this has been dragged on.
Flashbacks like those in the manga are worse IMO.
 
OK, a code-slave request, so close-voted anyway, but this question is a new low:
http://stackoverflow.com/questions/23672920/converting-c-code-from-tcp-to-udp-sockets
The TCP code is full of bugs, so does the OP want a UDP app that has the same bugs? it's confusing... :)
 
8:58 AM
man
that dark humour link on the starboard is hilarious.
 

« first day (1307 days earlier)      last day (3627 days later) »