« first day (516 days earlier)      last day (4425 days later) » 

12:35 AM
2
Q: New Feature: real time updates to questions, answers, and inbox

Geoff DalgasWe have deployed a new feature that hopefully help with keeping you instantly updated as new questions and answers are posted. All sites except for Stack Overflow have a new activity indicator on the homepage which will show when new posts are asked or answered. We have also enabled updates o...

All the FGITW players will be wetting their pants. :-P
 
That's been deployed for a day or so.
 
Even on SO tags?
 
Ah... clearly I don't camp tags.
Since I have an auto-refresher on the homepage.
 
^^ DeadMG has a phone?
 
12:37 AM
lol
So, the goal of Angry Birds is to kill pigs?
 
lol
 
@RMartinhoFernandes I dunno. Perhaps if pigs can fly
 
In C, how can I parse a file until it reaches the \n and puts the results into one array and continue to parse the next line and put it into another array?
 
@LearningC ... no comment?
 
Is that good or bad?
 
12:43 AM
@ScottW Lua is not an acronym. Also, I dislike it.
@LearningC By finding a C chatroom.
 
@LearningC Worse
 
seriously, this is not the one-stop bazaar for all programming help, it is the C++ room.
 
There is no C room =(
 
@ScottW It's simple and flexible, but the API sucks donkey cock.
@LearningC Not my problem.
 
12:44 AM
So I went with the second best
 
no
C++ is not C
if you have a problem, post a question
once or twice and I'll forgive you, but I am not going to put up with you spending hours and hours asking C questions in here
 
I'm scared my professor will see the question..
 
also not my problem
 
@LearningC We've been through that one before
 
I'm also scared of getting flamed.
 
12:48 AM
Feb 3 at 0:04, by Learning C
@sehe But still Google won't index this chat. My professor won't have a clue I ask the question on here.
@LearningC You will get flamed this way. Here.
 
@LearningC give me dollar for everytime you blame you professor for non-existent or unimportant problems... I'll be rich soon
 
lol
 
The point is, you need to learn C, and programming. Nobody gives a flying fuck whether you need help with that. It's a shame that the prof doesn't help you himself, perhaps
 
Could use some math help though :P
 
12:52 AM
It's only when you post other people's work and don't give a damn about understanding that there is a problem. You'd be a lot smarter than some (most) by coming to stackoverflow. Just don't copy/paste code. Ask real questions, don't ask anyone to do your homework for you
 
<--- School drop out. Any good C/C++ books to read.
 
@jonas Ah we've got just the question for you.
 
@jonas Pick one. C != C++. By miles.
 
Go with C++. C is hard...
 
O shute, that was the wrong link. I keep forgetting which one is the more popular:
 
12:53 AM
C is dumb and old and irrelevant.
 
948
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...

Fixed ^^
 
@sehe thx I'll check that
 
@RMartinhoFernandes You saw it in time :). Seriously, it is quicker to google deletionist than stackoverflow c++ books
 
12:56 AM
@RMartinhoFernandes aw, google 'c++ books' does ok too :)
 
@sehe Oh my, Schildt's book is atop that search :(
 
@LearningC C is hard ? what part ?
 
@jonas once you get to pointers and pointer arrays and then structures. It get confusing. But I think C++ uses pointers, arrays, and structures too, not sure.
 
@jonas The part where the language offers virtually no useful tools whatsoever?
 
@sehe C++ uses pointers and strucutres too right?
 
12:59 AM
@LearningC Those things are pretty fundamental to all computer languages, in one form or another.
 
@DeadMG That makes it simple! Hard to use, but simple to learn.
 
@RMartinhoFernandes I never said that the non-useful tools were easy :D
 
@LearningC I think the problem is not in the language. It's the Algorithm and it's complexity that gives me nightmares
 
I don't think HTML uses pointers
 
HTML is a markup language.
It describes documents, not programs.
 
1:01 AM
Oh. Just lernt something new.
 
@LearningC HTML hardly classifies as a language. It's not even Turing-complete until HTML5 and CSS3, and even then, it's not used for actual programmin
JS is a language and it has arrays, structures, and object references, which are pointers with slightly less dangerous semantics.
 
That explains why HTML and CSS is so easy to learn
 
HTML interpreted language
different than compiled C/C++
 
Again, HTML is not a programming language.
 
How would I say I know how to program HTML? Would I say I know how to interpret HTML?
what other language are interpreted languages?
 
1:08 AM
anyone completed this: projecteuler.net
Project Euler is a series of challenging mathematical/computer programming problems
 
@ScottW hum. Lets change the subject I'm getting confused even more.
 
@ScottW what is RTF?
 
Or Markdown.
 
PHP is an interpreted language and it's OOP
=)
 
1:22 AM
@jonas bwhahahaa
 
Ok, one before bed
gcc 4.8 compiled in 55 minutes 46 seconds, is that normal?
Good degree of parallelism, really:
real    55m46.173s
user    137m31.190s
sys     6m40.940s
 
There's no such thing as "interpreted language".
Also morning.
 
@CatPlusPlus perhaps they mean, no compilers exist?
@CatPlusPlus And good night :)
 
@jalf Programs start with the user half of the variable missing. Logout helps, but I won't be logging out every time it decides to break. :F Also, I don't use VS. And /usr and /usr/local are different hierarchies, that's not the point.
 
@Xeo ok, what on earth were you doing that you would have read about std::placeholders?
 
Xeo
1:37 AM
@SethCarnegie Hm?
 
Have you read the standard from front to back or what?
 
Using bind?
 
Yay, physics.
 
There are many parts of the standard library still unknown to me, how did you guys learn every part of it?
@CatPlusPlus physics doesn't work
 
1:41 AM
Only when you're ripping holes in the fabric of the universe.
 
I am the universe's taylor
I sew up the holes people rip in the fabric
 
@SethCarnegie Flip through cppreference?
 
@CatPlusPlus it seems like it has some pages that are not linked to from anywhere
like mem_fn
 
Fixit.
 
I don't see what list it's on
How can I fix things I can't see? There are others like mem_fn that I can't find
 
1:44 AM
You go to that page and there's "What links here" in the toolbox on the left.
mem_fn is in functional.
 
that's helpful
 
@SethCarnegie One at a time?
 
Xeo
@SethCarnegie Know boost::bind?
 
2:21 AM
Hey, anyone here know anything about additive integer partitions?
 
Nope.
 
user406009
3:10 AM
Does anyone know a good way to calculate individual teams worth from combined scores?
 
user406009
I was thinking a series of equations and matrices, but not every team score the same amount each time.
 
Define scores and worth.
 
Anyone has opinion/advice on -Wno-missing-braces? I'm tired of double-braces {{ 1, 2, 3 }} when unecessary.
 
3:48 AM
Anyone here use DirectX for video editing (directly writing software to perform cool special effects)?
 
 
2 hours later…
6:14 AM
Nothing's up.
Great.
Didn't use pi all day, so it was awesome.
 
6:53 AM
Anyone interested in playing 'boardgame online'?
 
7:07 AM
 
I like board games.
 
@StackedCrooked how's it going?
 
Fine. I'm getting ready to leave for work.
 
Have a good day then.
 
7:26 AM
@Pubby lolwut:
^^relevance? (oh, I cropped it a little: it goes on to ask Do you like guys, girls or both? in the same fashion)
 
@sehe Oh, want to play?
 
@Pubby No, want to (?) work. Was just curious
 
Alright
 
I guess it boils down to 'opinions about gcc-specific code'/portability and coding guidelines.
I think I'm letting my opinion shine through there
 
@sehe Portability?
 
7:31 AM
@LucDanton Do other compilers accept things without the extra braces? I'd guess they might not, or interpret things wrong... I haven't checked the specs.
 
@luc is that initializer list syntax or what?
 
@sehe It's a warning option, it doesn't affect conformance. int i[2][3] = { 1, 2, 3, 4, 5, 6 }; is an example where some braces are allowed to be elided.
@keithlayne No.
 
@LucDanton In that case, like with the 'suggest surrounding || or == with parentheses' type of warning, it comes down to your own local coding guidelines. Sorry for my confusion.
 
when are the extra braces required? when you don't specify dimensions? I thought the spec was pretty lenient there.
 
@sehe std::array<int, 3> a = { 1, 2 }; is valid, too, and won't trigger a warning if that's turned off though.
@keithlayne I don't know the exact rules but one of the cases where it's most troublesome is in member initialization: foo(): array { 1, 2, 3} {} is invalid if e.g. array has type std::array<int, 3>.
 
7:36 AM
@LucDanton I kind of like this opinion: gcc.gnu.org/bugzilla/show_bug.cgi?id=25137#c9
no doubt you've seen that thread
 
I did earlier today while trying to find a better option than activating -Wno-missing-braces yeah.
Btw in the end I managed to find where the missing braces were required, which was not a lot of fun because GCC managed to ICE in some instances due to an apparent unrelated issue.
 
did 4.7 already release?
 
No, that's still pending.
 
oh, I thought it was due very soon. Haven't checked status in a while.
 
How can you 'not use Pi' all day?
Not directly? Not _consciously_? Perhaps. But anytime you do anything remote computer related at least the graphics will be dealing with pi more or less constantly. (And likely, many arithmetic operations under the covers). Also, philosophically, Pi cannot be avoided.
 
7:40 AM
I watched the movie Pi last night without even realizing what day it was. Weird.
 
It's a bit like saying 'I didn't use the gravitational constant = 6.67300 × 10-11 m3 kg-1 s-2' all day: I didn't fall, I didn't pitch balls or fly an airplane :)
@keithlayne Ooh. A dark conspiracy.
 
maybe I need to put a drill to my head.
 
@keithlayne ? not sure
 
scene from the movie....
 
@keithlayne I see. I didn't watch the movie. I watched Pi all day. It was a bit monotonous really. No character build up. But very steady visuals and a very consistent plot.
 
7:43 AM
@luc now I feel dumb because I really haven't used old-style arrays since probably before I knew about member initialization, and only used Boost::array sparingly, and the new STL version not at all yet.
 
I bet @Mysticial had a slightly more interesting day running ycruncher: only slightly less boring (in the light of E_NOSPACE and OOM) and no need to turn on the heating
@keithlayne You've been programming in prolog
 
not so much. I can't think of a witty reply.
 
@keithlayne Presumably you're familiar with the traditional way of setting a structure to 0 in C: struct foo f = { 0 };, where the equivalent C++ (with aggregates) is T t = {};. That syntax relies on eliding braces :)
 
@sehe Um no... I have my qual exam tomorrow morning. And I've been studying my ass off this whole week, especially today...
 
@Mysticial lol I saw that (anime much?) :D
> I'm sorry I don't mean to wrk on this over the next weeks, maybe sombody will be interested in picking my patch in this thread and completing it (both for C and C++): gcc.gnu.org/ml/gcc/2009-11/msg00430.html gcc.gnu.org/ml/gcc/2009-11/msg00468.html -- Paolo Carlini 2010-12-17 12:22:50 UTC
 
7:46 AM
@sehe ?
 
@LucDanton ^^ in true opensource fashion
@Mysticial chat.stackoverflow.com/messages/2943790/history (TBH I thought I spotted exanime there for a split second)
 
oh, lol
If I fail, I'm one (big) step closer to dropping out of grad school. lol :(
And the way things are right now, I'm not in good shape.
 
anyone know git well? having some merge issues
 
@luc so an extra set of braces in the your member initialization example is correct? I've never done that specifically.
 
Damn. Ave Verum actually has 'examine' too ('behold me') not 'exanime' (out of breath, unconscious?)
@Shawn Knowing git hardly helps, but yeah I do
 
7:50 AM
i have a repro on github... i have just the code on a new machine, and ive made a bunch of changes to it
 
@Mysticial <face mode="surprised" />
 
I heard Hitler used git.
 
i dont have it set up in repro
 
@Shawn public?
 
yea
how do i set up the git repro locally to commit and overwrite the changes on github?
 
7:51 AM
clone, copy changes, commit, push?
 
@Shawn nevermind, unless you can push the changes in a separate branch. But, what's the issue
 
yea i guess thats the easiest way
hrmm
was trying to do git init
then adding it as a remote
and then commiting, but it didnt work well
 
you guys are killing me...how do you get 'repro' from repository? :)
 
@keithlayne Yes. Or alternatively use a({ 1, 2, 3}) although that may change the meaning from direct-initialization to copy-initialization from a direct-initialized aggregate, I don't really know.
 
@Shawn Nope, that won't work. The copy step is the way to go here. Clone first, checkout desired branch (master, e.g.) and copy, commit all, push
 
7:52 AM
thanks, that will definitely work
id give you +100 stackoverflow points if i could
 
@keithlayne repro should repo :)
@Shawn ... :)
 
@luc I was curious if the parens would work. That's what I'd try by default. The possible change in semantics would probably float through my mind for about half a second until it compiled and I blissfully forgot about it.
 
@Mysticial surely because of lack of motivation, not talent?
off to work
 
8:57 AM
morning all
 
hey
 
it's hard work looking after sick people
especially when they normally do most of the house work
 
9:23 AM
Just posted my second SO question ever. Exciting stuff.
 
@keithlayne: What is it ?
 
it's about some really non-exciting stuff: C# and XML
don't judge me
 
@keithlayne: I never do. :)
And why would I ?
I have to deal daily with C# and XML myself. It's not really uncommon.
 
I'm just learning stupid C# because I denied its existence for all of eternity
but now I need to get some employable skillz
 
C# is not that bad imho.
Actually, I believe Microsoft did a good job there.
 
9:26 AM
yeah, I think it has promise in a lot of areas, but it didn't take me long to run into some (IMO) limitations
 
I still put C++ as my favorite language, but I recon C# has its uses.
 
it's funny, in my mind I know MS is a great company with tons of really smart folks, but I ignored c# on the evil MS principle
it was a mistake not to learn a language that is being used so much
 
fucking piece of shit work laptop can't be left on without wanking up
 
wank and its relatives have to be the best words ever invented
 
It's not too late, is it ?
 
9:29 AM
hopefully not
 
If you know C++, you probably know pretty much complex principles. Learning C# from that shouldn't be that hard.
 
I like that MS has continued to move the language forward while my darling c++ standards committee argues about stuff for years and then throws it out
and F# looks pretty good too, although I haven't used it yet
 
Yes. But I hate how they seem to put so little effort in implementing all the "new" C++11 features.
Visual Studio 11 don't even offers range-based for loops.
 
that is an outstanding point
see, the evil MS principle at work
I hope the new standard revitalizes C++, but all the jobs where I live seem to be C#, Java, and worse stuff
 
Not all jobs. I guess it depends on the country you live in.
 
9:33 AM
yeah, I'm in the states, but in this particular city banking is the big industry. I don't know why that means C# and Java, but you don't run across C++ jobs here
but they love a 'C++ background'...I guess they equate it with programmatic masochism
 
That's funny, because I work for a banking company, and the main language here is C++
Well... it's not the exactly the best C++ code I've seen...
But still :)
 
I didn't mean to imply that it doesn't exist, but I can't find anything here
 
Sure. I'm in France so things are probably different.
 
it's probably rare to find good C++ (or anything else) code in most places
 
Here you almost never get tested during a job interview.
 
9:35 AM
really? I was working with a recruiter and they gave me a "C++" test...not a technical interview, but a silly multiple-choice quiz.
 
They look what your degree is, then compute how much to give you depending on that (you don't really have a chance to negotiate)
 
It had questions about strcat and stuff like that. I told them it was garbage.
 
So you end up in a job where people have very different skills.
(Or no skills at all, sadly)
 
Yeah, I was in the army here for a long time and still haven't finished my degree, but have a lot more schooling than it would take to get one.
it's becoming less important here but it's still been an issue
 
;)
I'm trying to teach my collegues to use the new C++ features.
 
9:38 AM
Stupid recruiter tried to argue to me that C++ is OO. I flipped out.
 
(R-value references, smart pointers and stuff)
 
that's great
 
Well, it's not easy.
Most of them just don't see the point of changing their ways.
"It works that way ! It always had ! Why would I change ?"
 
I think that even without considering stuff like move semantics you can still gain a lot from library and language changes
"I'm sorry, but your auto_ptr is deprecated, sir"
 
In a sense, I can understand... but when I see them wasting hours with raw arrays reallocation instead of using std::vector... I cry a little.
 
9:40 AM
Oh my, that is serious
I think that's why a lot of places want GCed languages...even "experienced" C++ guys out there don't get RAII
 
Once, I heard a guy explaining why all his "objects" had a initialize() method.
 
awesome
 
So that he wouldn't have to use exceptions in his constructors
Because exceptions force you to use try-catch constructs and that is bad. :)
All his logic was reversed.
I'm still working on him.
 
Honestly, exception safety in C++ is not my strong suit. I need to learn more.
 
At least you want to learn ;)
which is the only thing that matters.
I wouldn't call myself an expert either. But at least, I believe I am open-minded enough to recognize my mistakes.
 
9:43 AM
It's funny, I feel pretty advanced in some ways in c++, especially being able to use generic programming stuff. Most people seem scared of that.
 
Yeah, I have the same feeling.
 
But I know there's so much to learn still
 
The funny thing is : often, people that are scared of it, are the ones that use overly-complex macros.
 
ick
 
ick ? (not sure what that means)
 
9:44 AM
yuck?
 
oh right. thanks :p
(You don't exactly learn those expressions at school :D)
(English isn't really taught well in my country)
 
I have a bad habit of assuming that you guys understand everything I say
ha, neither is French in mine, I think
 
Being able to speak english is probably more useful.
Unless you come to france where people expect you to speak french.
 
We'd like to think so...
 
But I guess it is well understood everywhere else.
 
9:47 AM
Probably there more than almost anywhere
I mean, the French seem very protective of their language
 
Canadians speaks a better french actually.
Our roads have "stop" signs. They have "arrêt".
 
I did not know that. Just another fun fact to make fun of them for.
 
The thing is, when the first canadians came from france, the language started to divert.
Being surrounded by english speakers, they defended their culture.
I guess that's why they are so protective ;)
 
their dual-language thing seems really weird to us Americans
 
I can understand that :p
 
9:51 AM
but pretty soon I think spanish might be our official language, that would be funny
 
oh you Americans, your a gunny funny bunch :P
 
yes, I like to shoot people
 
stupid markdown >;(
 
whilst wearing my cowboy hat
 
For us, it is convenient. If someone wants to emigrate to the U.S, he can first stop to Canada to ease the change :D
 
9:52 AM
dude, you can't totally delete it and take the context away from my hilarity
 
and that just stays there :D
there, happy :P
 
outstanding
I was considering putting "trained killer" on my resume
but I don't know if that would get me a c++ job
 
Depends :)
 
@keithlayne ¬_¬ let me just make a note of your details
 
I'm a software pirate! Arrrrrgh!
 
9:55 AM
Argh!
 
oh, yeah. Didn't mean to steal your thunder.
 
me harties!
 
I guess my question sucked. No love after 30 mins from the euro crowd.
<crosses fingers waiting for the skeet to appear>
 
link us up man!
 
no, it really isn't a good question. I'd be embarrassed.
But I would love for the magical answer fairy to come anyway.
 
9:59 AM
and how the fuck do you think that is going to happen?
give us the link, lets us 'improve' the question
 
Well, I already clicked my heels together three times, but it didn't work. I'm all out of ideas.
 
(╯°□°)╯︵ ┻━┻
 

« first day (516 days earlier)      last day (4425 days later) »