« first day (575 days earlier)      last day (4373 days later) » 

12:04 AM
night
 
sbi
Well, I sent Tarek a mail. I hope it isn't classified as spam. :( I picked an account which got through to him before, though.
 
hello, goodnight xeo
delta spirit -> people c'mon -> stuck in head
goodnight all
 
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-12 22:46:31 UTC ---
Still waiting.
 
sbi
Yeah, I should go to bed, too. I got a 5yo waking me up between 6 and 7 tomorrow in the morning. That's in 4-5hrs.
Good night, folks!
 
@sbi Too bad you're not a mom :)
I've got to make sure the kids celebrate mother's day in proper form tomorrow in a while
Night :)
 
12:13 AM
by the way
is there a mathematical symbol for "no relation"?
 
Context? Do you have the corresponding symbol for 'a relation'?
 
I used <=
 
I suppose the symbol would normally be: no symbol, naked juxtaposition, implies no particulat relation.
 
and I want to imply that there is no strict relation.
 
Are you looking for a chaos symbol? Or for a random symbol?
 
12:15 AM
You can always just write it in English, y'know.
 
doesn't matter, actually
@CatPlusPlus Yeah, just decided to do that.
 
The Symbol of Chaos originates from Michael Moorcock's Eternal Champion stories. In them, the Symbol of Chaos comprises eight arrows in a radial pattern. In contrast, the symbol of Law is a single upright arrow. It is also called the Arms of Chaos, the Arrows of Chaos, the Chaos Star or the Symbol of Eight. Moorcock has stated that he conceived this symbol while writing the first Elric of Melniboné stories in the early 1960s. It was subsequently adopted into the pop-cultural mainstream, turning up in such diverse places as modern occult traditions and role-playing games. There are a num...
^ you could of course specify that a conditional expression evaluates to a value with a certain probability distribution :)
 
12:30 AM
i don't want to waste bandwidth to check this out, so, what is it?
 
Norwegian girl rock?
 
> This video contains content from SME, who has blocked it in your country on copyright grounds.
 
@Pubby that sucks!
I can see the vid in Belgium.
I don't think it's that special though. Seems a little formulaic.
@Pubby I'm sure you can find another upload of the same video if you search for "The Tuesdays - it's up to you"
It's not bad.
 
mh
I'm currently watching Zero no Tsukaima. It's all about tits mixed into a fantasy storyline.
 
12:46 AM
Community gets weirder with every episode.
 
I've seen a few eps of it. At one point I forgot to continue watching.
 
@CatPlusPlus Was recommended to be my a friend but I never got around to it.
 
It's fun.
 
I've seen it a few times. The one with the tent fort was awesome.
 
Yeah, it's entertaining.
 
12:49 AM
 
Also paintball episodes.
It's fun, go watch it.
 
anyone here use syslog.h much
herro!
 
1:07 AM
Greetings! :)
 
anyone that would review my code for newb mistakes?
(its pretty short)
 
hmmm
ugly global variables- check
ugly macros- check
needless casts- check
no-name classes- check
class used as namespace- check
final judgement: glad I'm not maintaining it
 
"Why is there a banana in your DVD cabinet? — Read the banana."
 
@DeadMG macros?
 
@DeadMG: "no-name classes"?
 
1:15 AM
what is another way I could set the title/facility/log_upto so they arent globals, and what loc are the needless casts?
 
@Insilico What the flying fuck is a "Handle"? Is it some kind of smart pointer? If so, what kind? Shared? Unique? Do your "Object"s represent 3D objects to be rendered? Or some worthless universal base class?
 
It's a V8 JS object handle.
 
what @CatPlusPlus said
 
@ThomasBlobaum: Why not use v8::Handle instead of just Handle?
 
oh
 
1:16 AM
Yeah, using namespace sucks, don't use it.
 
ugly C-style native array- check
 
@ThomasBlobaum: Is SysLog going to hold any instance variables?
 
@Insilico why, what implications does that have over just Handle
 
char message[ args[1]->ToString()->Length() ]; is invalid.
 
1:17 AM
@Insilico not currently no
 
@ThomasBlobaum: Because I don't know just from looking at the code that it's a v8 handle
 
asking @DeadMG for a review, will certainly not make you feel like you did a good job :P
 
@TonyTheLion i really dont mind, i'd rather the code be better
 
@TonyTheLion He asked the channel at large.. which happens to inlude me :P
 
1:18 AM
@CatPlusPlus whats the right way to do that?
 
@ThomasBlobaum: The right way is to use std::string.
 
std::vector<char> message(args[1]->ToString()->Length()); at the very least.
Or string. It depends on the purpose.
 
@CatPlusPlus I need to provide char for syslog
 
@ThomasBlobaum: std::string::c_str()
 
1:20 AM
@CatPlusPlus just making you aware of the purpose
 
Anyway, I'm busy.
 
@ThomasBlobaum: Or you can use std::string::c_str() and syslog() won't be any the wiser
 
@Insilico thanks
 
I require a piss
 
1:38 AM
I require some sleep. But not right now.
 
sleep is for the weak
 
What resources(books or sites) do you guys suggest to someone wanting to get into developing windows apps with C++? I've heard it takes quite a bit to learn C++ and want a decent list of resources before I start learning it.
 
well first things first is to learn c++. I used C++ Primer
hang on theres an amazing book list on SO
 
Ah, is there?
 
1132
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...

Complete with 1132 upvotes
 
1:43 AM
Sweet thanks
 
ps c++ sucks to learn... your in it for the long haul
 
Takes forever eh?
 
Well ive been going after it for like 1.5 years and i still have my wtf moments when writing supposedly simple stuff
 
Whats a recent moment you had like that?
 
@jozefg Like what?
 
1:47 AM
um recently? it was a dangling pointer error that was just god awful to find... I know I know use STL but that wasn't an option here. The pointer was deleted after like 4 function calls and it was horrible to trace
i remember the error being a reference to the pointer being freed
 
Buggy code be buggy.
Dangling pointers are so 1980.
 
oh don't mock my primitive data.
Its everywhere you just don't see them
its why i love auto_ptr so much
 
auto_ptr sucks.
 
@jozefg It's always an option. If it isn't, then what you're coding isn't really C++.
unique_ptr is the real WinRAR here.
 
unique_ptr ftw.
 
1:52 AM
I see pros and cons for both. Frankly I'm still a beginner and im still bumbling through one project at a time.
 
@jozefg auto_ptr has only cons compared to unique_ptr. The entire reason that the Committee added unique_ptr is because auto_ptr sucks.
 
Alright, as I said only 1.5 years... Im not exactly a guru, im just going with what ive had in my own personal experiences
 
auto_ptr is useful in C++03
 
and/or what my c++ friend who is a guru says
 
There's no reason to use it in C++11 though.
 
1:54 AM
Meh, you can't put auto_ptr in a container. No pros compared to boost::scoped_ptr.
At least scoped_ptr doesn't pretend to be copyable.
 
working on a codebase in c++ 03 no boost either... it sucks hard
 
@jozefg Clearly not particularly guru.
 
auto_ptr is the choice for return type of factory or clone methods in C++03
 
hi does anyone use databases around here?
 
I use Google.
 
1:55 AM
@DeadMG He wrote his own C++ compiler that performs almost comparable to gcc... he's not a fool.
 
C++ compiler?
 
@jozefg For a start, all C++ compilers have abominable performance. For a second, the performance is not the plus or minus of a C++ compiler. It's "How often does it ICE on template metaprograms?" and "Is it cross-platform?" and "Does it support dozens of useful flags?" and "Does it support C++11?"
 
sorry performance is the wrong word, its optimized, secondly he wrote the damn thing so youd want to talk to him about it
secondly: no idea, yes, and i think he should me 6 flags... and yes
 
Yeah, somehow, I don't buy it.
 
even if I took your word that it was a useful compiler- which I'm not- then writing one piece of good software does not make you even a competent programmer.
 
1:59 AM
Ok, Im not entirely sure why this is upsetting you, but i didn't right it, so interrogating me, not the actual programmer is probably not a good way to actually evaluate the program/programmer is it?
 
that's my whole point
referring to him as some kind of magic guru is not a useful argument whatsoever.
 
Who's upset?
 
aside from the fact that he's probably not that smart if he recommends auto_ptr over unique_ptr, there's no reasonable way for me to evaluate it, so it's impossible for it to form any kind of cogent debate
 
It's our job to question quality of "guru" code, until proven otherwise.
 
He didn't recommend it, as i said "from my own experiences" not his.
 
2:01 AM
Well, that and mocking.
And being silly.
 
haha thats just everyone on the internets job
 
plus. my job is to be smarter than everyone else; which is my natural state
 
Hm so are you a C++ Guru?
 
I suck in many areas as a person; but C++ knowledge and skill is not one of them.
 
Bahaha fair enough, So may I ask a question of you then?
 
2:04 AM
I usually mete out wisdom like judgement, using it to smash people's brains
but I guess in this case, I might respond to a request
 
Ok, question.
 
Stupid questions are tiring though.
 
What do you use for development? (compiler, IDE/Editor, OS)?
 
Visual Studio 2010 on Windows 7 x64 right now
 
Free or Professional version?
 
2:06 AM
Ultimate
 
@jozefg: All the different versions of Visual Studio 2010 use the same compilers
 
That's not even a C++ question. :s
 
Why does this segfault? pastebin.com/zsj40P7B
 
no but its a question, i didn't say c++
 
Simple test of a string library I wrote with a classmate for C++ HW.
 
2:07 AM
@Moshe: You can try telling us where it segfaults.
 
@Insilico yeah i know that... i didn't ask which compiler, just which version
 
@Moshe fatal error: mycstring.h: No such file or directory
#include<iostream>
#include "mycstring.h"
^ Better to include your own headers first and then std headers. This prevents hidden dependencies.
 
@StackedCrooked I have that here.
Should I paste that up as well?
 
@jozefg Not that it's of much use to me. Stupid profiler's broken.
 
@Moshe Feel free to post it. But I'm currently falling asleep...
 
2:09 AM
Code Analyst's not that bad, though.
 
@Insilico After the first print statement.
 
@DeadMG thats dumb... don't you hate it when software doesn't work like it should? Doesn't that come with some graphics libraries? or am i being incredibly dumb?
 
@jozefg I do hate it. And what- Code Analyst or Visual Studio?
 
@DeadMG vs
 
@Moshe: There might be a bug in mystrcopy then (I'm just guessing out of the blue)
 
2:11 AM
@jozefg The only C++ GUI library they have is the super-disgusting MFC.
 
@jozefg (1) Yes, (2) I don't understand the question and (3) presumably. :p
 
 
could you make a expression templates such that it becomes possible to write f(x) = 5*x + 3 and the compiler expands it and calculates it when you call f(5) ?
 
@TonyTheLion Yes, see Boost.Phoenix.
 
@TonyTheLion: Perhaps not with that exact syntax
 
2:12 AM
@TonyTheLion You mean like, Boost.Lambda or C++11 lambdas?
 
@DeadMG not sure if lambda's is what I'm thinking
 
@TonyTheLion In boost phoenix you can write it as: auto f = 5 * arg1 + 3
 
@TonyTheLion It appears to be exactly what you are thinking- a function defined inline.
 
@Moshe: I might be missing something here, but you're copying into a buffer pointed by an uninitialized pointer, no?
 
2:13 AM
@DeadMG hmmmm
 
@Insilico Yea, so?
 
char *emptyHello; doesn't seem to be initialized anywhere
 
@Moshe So that's horrifically undefined behaviour?
5
 
@Insilico It's not. How would I initialize it to the proper size?
@DeadMG Hah, ok.
 
@Moshe: I dunno. That depends on your assignment
The non-homework answer would be "use std::string".
 
2:15 AM
WHOA I JUST GOT A RANDOM BOUNTY
 
@Insilico It's just a test driver. We're supposed to use c strings.
 
@SethCarnegie: HOLY CRAP
 
@StackedCrooked yea that's what I'm looking for
 
@Moshe: Is this supposed to be a beginner's C++ class or something?
 
@Insilico Kinda, second C++ class in a CS degree.
 
2:16 AM
@NicolBolas Thanks :D
 
So we're rewriting parts of the C string library.
 
@TonyTheLion ohai Tony
 
@TonyTheLion This is an example for solving second degree equations. I.e. ax2 + bx + c It's my first (and only up until now) boost phoenix experiment.
 
no, wait, I replied to you twenty seconds ago.
 
Point being, I need to copy a string to show that my copy works. But I "don't know" how long my original string is beforehand. How do I set up the "dest" buffer?
 
2:17 AM
@Moshe You don't. You must know how long the original string was.
 
@Moshe: You have to know how long the original string is
 
@DeadMG ohai
 
@DeadMG Ok, so where do I initialize the buffer?
 
Either that or you have some kind of exponential growth scheme that way more inefficient than it needs to be
 
@DeadMG lol
 
2:18 AM
@DeadMG got any recommendations for GUI stuff? wxWidgets?
 
Qt for GUI
wxWidgets is outdated
 
@Moshe The hell do I know? Some place where you know how long the source string is.
 
@Moshe: char* emptyHello = new char[/*size of buffer*/];
 
@Insilico So the copy doesn't do that, but my own code does?
 
@jozefg My GUI stuff has to be rendered on top of hardware rendered scenes, so I've never really looked at general GUI stuffs.
 
2:19 AM
Then you have to delete[] the damn thing later
 
@Insilico If you have to delete something then you're probably doing it wrong.
 
@Moshe: I don't know. You asked how to initialize the buffer, and there's the answer
 
Ok, thanks.
 
@TonyTheLion Ok cool, is that easy to use? im still not that amazingly awesome at c++
 
@Insilico But you know that :)
 
2:20 AM
@StackedCrooked: No shit. But apparently the assignment does not allow std::string, which would be the answer I would give. :-)
 
@jozefg yes fairly, it's also very well documented
 
@StackedCrooked I would have thought the point of your exercise would be to write something like solve(3 * a + 2 * b + 42) (where e.g. a == b * b and b is the unknown by convention).
 
The whole point of std::string is so you don't have to use C-style string functions which suck.
 
@Insilico You know you can press the TAB button to have autocompletion of my username :)
 
well thats something at least
 
@StackedCrooked: Thanks for that tip. :-)
 
Ok, so it works if I initialize the destination string buffer.
 
@LucDanton Really? In highschool we had to solve hunderds of 2nd degree equations. Everytime a, b and c where given and the problem was finding the solution set for x.
 
@Moshe: Yes. Because now mystrcopy() has a place to put a copy of the characters in
 
I would make the buffer in strcpy but it's recursive. Wait - can I make a static buffer?
 
2:23 AM
@Moshe Not unless you want to ban all strings above WTF_MAGIC_NUMBER_CAUSE_I_SUCK_AT_CODING size
 
@Moshe: Sure, if you want to overflow the stack easily.
 
@LucDanton IIRC, I think one needs to be given three different equations in order to find three unknowns.
 
@StackedCrooked Yeah. But what's the point of using Phoenix for that, if not to have a gratuitously nice looking interface?
 
@StackedCrooked There's only one unknown- b.
 
Ok, thanks. I know what I have to do now.
 
2:24 AM
@StackedCrooked Only one unknown here.
 
@LucDanton Dunno, it's was the best thing I could come up with.
 
How does the C library automagically provide a buffer size?
Or does it not?
 
it doesn't
 
@Moshe: That's why it sucks.
 
Oh, my mistake. Now I now.
 
2:25 AM
which is why you find innumerable buffer overruns and similar bullshittery in C string handling code.
 
Thanks.
 
The reason why we keep suggesting that people use std::string because it does that buffer stuff automagically
 
@Insilico no, it only looks automagic
it's C-string handling 'neath
 
Sometimes a parrot talks.
 
Not really.
 
2:26 AM
@SethCarnegie: Moshe doesn't have to know that. :-)
 
Unless you name all buffer handling "C-string handling", which is silly.
 
all manner of C++ up in this bitch
 
@CatPlusPlus that is true, my mistake, since C-strings are NULL-terminated arrays of characters, and C++ strings don't NULL termination
 
@SethCarnegie: Actually I think C++11 requires strings inside std::string to be null-terminated
 
@Insilico Else you get funcakes when you implement c_str()
 
2:28 AM
@Insilico use
they don't use the NULL-termination
like they don't use it to get the length or whatever
 
There's a spider in a wheel of my chair.
 
@SethCarnegie: Well, it's kind of hard to know what you mean when you leave out a verb in "C++ strings don't NULL termination".
 
Whatthefuck.
 
@CatPlusPlus KILL IT
 
I don't want to live here anymore.
 
2:30 AM
@Insilico LOL
 
I'M BEING INVADED.
 
@Insilico I edited in and removed it I guess
sorry
I meant use
I accidentally the use
Does anyone know of good mechanical keyboards that have rubber keys?
 
Or maybe it was hair mixed with dust and I panicked.
But it totally could be a spider.
 
FUUUU FINISH WIDE SPEC YOU NOOB
 
Those scheming eight leg bastards.
 
2:34 AM
@DeadMG so you write the standard before the implementation right
 
They're just waiting for me to not pay attention.
 
to bite you, poison you to death, and then nosh on your corpse
 
Plotting in the shadows.
And corners and other hardly accessible places.
 
you should employ a laser detection grid and automated rocket-firing turrets as self-defence
 
@CatPlusPlus: Or you can consider the possibility that they don't actually give a shit.
 
2:35 AM
They climb up to the ceiling and then drop down on you. TELL ME IT'S NOT ON PURPOSE.
 
@CatPlusPlus: It's not on purpose.
 
It's like bloody ninjas.
Only creepy.
 
@CatPlusPlus with eight legs
 
Creepy eight legs.
 
have you considered a flamethrower?
 
2:37 AM
Yes.
 
I find them very suitable for exterminating small spiders in a domestic environment
 
Arachnophobia is a 1990 American comedy horror film directed by Frank Marshall and starring Jeff Daniels and John Goodman. It was the first film released by Hollywood Pictures. The story centers on a newly discovered Venezuelan spider being transported to a small American town that produces a new race of deadly spiders, which begin killing the town's residents one by one. Shooting took place in Venezuela and California and the film was released in the United States on July 18, 1990. It was a commercial success, gaining $53.21 million at the box office. It received generally positive revi...
 
Nuke it from the orbit. It's the only way to be sure.
 
@CatPlusPlus: Just gets some hairspray and a lighter and use that as the flamethrower
 
@Insilico I still check boots every fucking time.
Especially if I didn't use them recently.
Spiders are evil.
If there's a hell, spiders are from there. If not, spiders are still from there.
That's how evil they are.
Cthulhu has nothing on spiders.
 
2:40 AM
considered a vacuum cleaner?
I always found it to be extremely effective
by the way
HTML does not include any mechanism that's like #include, right?
 
@DeadMG don't think so, you have to use PHP to do that
 
@DeadMG: Not that I know of
 
or whatever other server-side language
 
I think the server has got to do that
It's probably possible to use Javascript to simulate some kind of HTML include but using Javascript for something like that is stupid.
 
uh
crap
already noticed something
btw, for some reason if i put title inside open i get a bunch of garbage for the title in my actual syslogs, if i put it outside and use WriteAscii then it works
<_>
 
2:47 AM
it's 03:45
DeadMG:sleep();
 
its 9:45 pm
 
@ThomasBlobaum: It's 7:48 PM here
 
22:52 here.
 
Xeo
I like spiders!
 
2:53 AM
I like squids.
 
Xeo
@Moshe Seriously? Second C++ class and you're reimplementing a C library? A fucking C library?! Drop that course, right now.
 

« first day (575 days earlier)      last day (4373 days later) »