« first day (402 days earlier)      last day (4560 days later) » 

10:00 PM
Heh, sqlite is already taking 40MB.
 
Only 960MB to go.
 
haha i got an idea , i can take UINT_MAX as infinite , can't i?
 
611.66 MB -- vsize
 
13 mins ago, by R. Martinho Fernandes
Either you hijack an existing value to represent that, or you extend it with one value to represent that.
 
@MrAnubis It's a fragile idea.
 
10:00 PM
@MrAnubis probably not
 
That's the first option.
 
You can, but you really shouldn't.
 
Whats infinity + 1?
 
-infinity.
 
10:01 PM
In that model, at least.
 
Everyone knows that.
 
exactly
 
@RMartinhoFernandes darn , it wasn't my idea , it was robot's which i stolen :)
 
@CatPlusPlus unsigned.
 
@RMartinhoFernandes that's my model
 
10:01 PM
@RMartinhoFernandes Well, 0 is -infinity!
Haven't you heard?
 
@CatPlusPlus infinitely zero
 
infinity + 1 = infinity
 
My zero is more zero than yours!
 
@ManofOneWay thanks for formula :D
 
10:02 PM
@MrAnubis Welcome!
 
And what's infinity - infinity?
 
Something.
 
Even more 0.
 
[0,0..] <- infinitely zero in Haskell!
 
lol
 
10:03 PM
hipster kitty I liked 0 before it was mainstream.
 
@CatPlusPlus were you answering me with "type traits" earlier?
 
thanks
 
Of course, you could use Boost in 03 as well. Especially BCCL.
 
User experience at its best.
 
10:05 PM
I know a boost static assert with MPL if could do what I was talking about I think
 
@Maxpm that developer should be jailed :D
 
@LewsTherin Hi, what's up man?
 
I actually use this, and I don't think it's bad.
 
@RMartinhoFernandes You're delusional.
 
10:07 PM
@MrAnubis Stressed to the balls :( You?
 
@LewsTherin that's why we come here!
 
No more pictures that make my head explode please.
 
sbi
@RMartinhoFernandes Have you tried consulting a shrink?
 
4 hours ago, by R. Martinho Fernandes
@IntermediateHacker Er, robots have no psyche. There's no psychology to be done on them.
 
@LewsTherin anyways why stressed?
 
10:08 PM
@sbi any resolution to your problem?
 
@MrAnubis Too much assignments :(
 
@LewsTherin bloody assignments !! i hate this name :D
 
> The FileMatrix name comes from the fact that files are organized like a 3 dimensional matrix of files (files in a column, columns in a board, boards in the program).
> 3 dimensional matrix
 
sbi
@RMartinhoFernandes So have you tried consulting your favorite mechanic?
 
My kids are watching some youtube video of cartoon cats flying through space. It looks like 10 minutes of a loop. They are laughing maniacally. I don't get it.
 
10:10 PM
Damn.
I like that I don't need to navigate across menus to find what I want. It's all in plain sight.
 
NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN.
 
sbi
@keithlayne I am still installing driver, though. And I will need to reboot afterwards.
 
@MrAnubis The worst thing is it isn't programming :(
 
@keithlayne Ten minutes? That's the short version.
 
@RMartinhoFernandes @CatPlusPlus how do you guys know about this? Are you on drugs?
 
@LewsTherin still you can't change my view about them :)
 
Now I'm laughing maniacally, and I can't stop
 
@MrAnubis I wouldn't want to! Due to the fact I agree :D
 
I didn't even know Youtube let you upload 100-hour videos.
 
now a pop tart cat is fighting a waffle cat
 
10:12 PM
It's probably some video header trickery.
 
Dunno. You can skip to 99:59:59.
 
yeah, but 100 hours of 2 frames ought to compress pretty well
 
One video is 595hours~
 
@LewsTherin what assignment it is though?
 
what is that crap?
 
10:15 PM
@ManofOneWay 0_o, recursive video?
 
@MrAnubis Many assignments :( UML, DB, Algorithms, UI with lab tests
 
@LewsTherin Rest in peace man! :D
 
@MrAnubis Amen to that.
 
10:17 PM
@ManofOneWay i was right , recursive :D
 
> Oh shit im on that wierd part of youtube again.
I love these comments.
 
@RMartinhoFernandes Same.
 
There's Firefox 10.0 on Aurora channel, apparently.
 
@ManofOneWay that guy is free like a bird i think
 
10:19 PM
One more and they'll catch up with Opera.
 
they reveal change logs of aurora updates?
 
> A man in Victorian dress, riding a horse, approaches a woman by a river and tells her all about his horse, including how it turns into a plane when its mane is stroked, and reverts back into a horse when its "winkie" is pulled, offending the woman. Noticing her offense, he notes that it would not be wise if he showed her where lemonade is made. He offers to take her "around the universe and all the other places too" to which the woman points out that the universe is technically everything.
 
Dunno. It's probably tagged on mozilla-central.
 
gotta go , bye :)
 
@RMartinhoFernandes WTF is that
 
10:25 PM
Amazing horse.
 
I'm not sure you want to know.
 
child porn
 
This one's original.
 
shut up woman get on my horse
you guys are really opening my eyes to the grandness of the interwebs
 
10:27 PM
BADGER BADGER BADGER.
 
"Grandness".
 
You haven't been on /b/, have you
 
sbi
At dinner tonight, I was discussing ethics of food with the kids. So this one son of mine says that eating meat is Ok for him, if it's not human meat. Asked why he makes this distinction, he says that's because he'd only eat meat of some animals that are less intelligent than he is. To which my teenage daughter snorts that, if she was allowed to eat whatever is less intelligent than she is, she should eat half of her classmates.
9
It took us a while to be able to come back from under the table, where we were holding our sides while being rolled into balls.
 
You wanted the weird part of YT: youtube.com/watch?NR=1&v=JF6Xm0kYDh8
 
10:30 PM
@CatPlusPlus there a lot of sites that were actually illegal for me to view for the last several years. I know that doesn't make any sense.
 
hello all
 
@CatPlusPlus that was pretty gay
 
sbi
@CatPlusPlus Seeing (and only seeing) this, I can't help but think that, maybe, it's not all this bad when my audio doesn't work.
Anyway, I guess I should reboot now. I installed everything that was released after I last installed rivers from Dell. Not that I will know whether it helped. The problem's always been gone after rebooting...
 
@keithlayne Funny how the F word wasn't uttered.
 
sbi
10:32 PM
@RMartinhoFernandes Hopefully!
 
@LewsTherin "female"?
 
Ahhh, a new FPA: Remove/Erase and Ass/Erase
 
What?/Erase?
 
@LewsTherin does it only work with the f word?
 
After the reboot only audio will work, and the video will not.
 
10:33 PM
@RMartinhoFernandes nooooo!
 
how do you erase an ass?
 
@RMartinhoFernandes erasing elements from a container in a loop
 
What's the ass for?
 
With an erarser.
 
Damn, that came out wrong.
 
10:34 PM
One version for sequence containers with it = erase(it), and one for associative containers with erase(it++)
 
@CatPlusPlus nice
 
@keithlayne It used to be a subject of common discussion. Appears people have grown up.
 
Yeah, 'coz Benjamin Button is fiction.
 
What? Where?
 
@LewsTherin that's hard to believe
 
10:36 PM
@keithlayne lol, giving them the benefit of the doubt.
 
@LewsTherin well that's silly
 
@keithlayne How so? Anyone should have that privilege
 
The privilege of growing up?
What are you guys talking about? Is that code?
 
don't feed the robot
 
I'm a tad sleepy.
 
10:39 PM
@keithlayne Isn't that a fallacy?
 
I swear there wasn't anything strange in the cake.
 
@RMartinhoFernandes I'm very sleepy..
 
@RMartinhoFernandes Was that a cake from a girl selling coke?
 
Night. Can't stay awake any longer.
 
In a WPF textbox, can you set different subsections of the text different styles?
 
Hey @sbi, did it work?
 
sbi
@RMartinhoFernandes How would I know?
 
Er, suspend and check it? Isn't that how the problem manifests itself?
 
sbi
@RMartinhoFernandes Ah, no. Only once in a while.
I had this happening probably three times last week. At other times, I had it once in three weeks. So the only way to be really sure whether installing up-to-date drivers helped is when it reappears.
 
11:04 PM
Meaning, you can only be sure it didn't work :(
 
11:14 PM
@KerrekSB If this is yours, don't use CDATA, escape the code properly.
 
oh no, I don't want to hear about SGML again
seriously though, who is using g++ 4.7?
 
Some people here enjoy breaking it.
 
I don't want to compile it on this puny machine...I guess I should have added "for linux"
was looking for prebuilt binaries if anyone knows off hand
 
There are no prebuilt binaries of 4.7 because there are no releases yet.
 
I thought someone might be hosting nightly builds or something
 
11:20 PM
@CatPlusPlus It is, but I'm lazy. Then again, patches are welcome :-)
 
@keithlayne I am.
 
@CatPlusPlus And every SGML validator passes it :-)
 
@RMartinhoFernandes what? awesome? a robot?
 
On Windows, though.
 
@keithlayne Buggy piece of code
 
11:21 PM
@KerrekSB Firefox fails to render it.
 
Never again will I use a non-release version.
@CatPlusPlus Buggy piece of code.
 
I'll wait then, thanks
 
Welcome to the web.
2
Now shut up and do your job, dammit.
 
@CatPlusPlus It does in Awesome Mode. I think there's a shortcut...
 
(No, really, that's webdev. Stay away.)
 
11:22 PM
Yes: Ctrl-U
Finally you can appreciate structure without being bogged down by box flow issues.
I'm happy to type LaTeX on the fly, but HTML entity references have a habit of breaking my fingers.
 
0
Q: In C++, how to use a singleton from a separate C file?

DerekI'm trying to compile some other people's wrapper program on a large system, in which it's using a global object from another file, the definition of the class is like: class __declspec(dllexport) A { ... static A * instance; } And in my separate .c file (which I want to build to a .exe), I in...

 
why didn't the dude who edited it fix the title?
 
If I say, #include <tuple> and using namespace std;, does the standard guarantee that the name map can only be found in the user code?
 
I like the chat title :)
 
@KerrekSB The standard does not guarantee that any header doesn't include another header. That would be very surprising, but not impossible.
In particular, an implementation could use a monolithic standard library from a memory-mapped file, so if any standard header is included, they all are.
 
11:32 PM
Any recommendations for bug tracking/to-do list thingy
E.g. Bugs Fixes needed, pending changes, feature additions
I have TFS at my disposal
 
@KerrekSB You type HTML by hand? There's your problem. :P
 
Yay, my encoder and decoder work!
 
@CatPlusPlus I trust no-one else :-)
 
@KianMayne Org mode. Maybe Bugs Everywhere.
 
@CatPlusPlus Do you have a quick fix? Does Emacs have an htmlentities-region function?
 
11:34 PM
I don't know.
Why would I know. I use vim.
 
You can generate HTML from LaTeX.
 
Eh, I prefer ReST or Markdown for that.
 
Well, he mentioned LaTeX familiarity.
 
@RMartinhoFernandes I know, thought the new MathJax produces far better results.
 
@Moshe You've been working this whole time? While I went out, had an adventure, took a nap, came back?
 
11:35 PM
Anyway, I like being able to read documents in source. With LaTeX that's no problem, but with HTML, C++ code becomes a pain.
&lt;&lt;
 
With HTML, everything becomes fucking pain.
 
Hence marked sections :-)
You see, the inventors of SGML foresaw this problem.
Hence they explicitly allowed for unparsed content.
 
I don't think CDATA sections were invented to make the source readable.
 
Too bad they didn't foresee all the other problems.
 
Anyway. I have a dusty version of vi somewhere, so a vi solution would also suffice in a crunch
 
11:37 PM
I hope that's vim.
 
it is!
 
Is there any difference between a reverse iterator and a backward one?
 
@Pubby What's a "backwards one"?
 
Iterates in reverse.
 
What's that?
 
11:44 PM
?? Isn't it the same as reverse_iterator?
 
Ohh, you mean you want to decrement the iterator?
 
Well, actually it would use ++ to decrement, which is confusing
I'm just wondering if "backwards" is a synonym for "reverse"
 
Where do you see "backwards" used?
 
@Potatos No where, I need to abbreviate the term and I think "bwd" is more understandable than "rev"
 
11:48 PM
Yikes, no. The standard library does include rbegin and rend but why do you need to abbreviate? Often leads to trouble.
 
@Potatoswatter Turns out that my friend was mistaken about not using casting and about having to use an array.
 
@Moshe Don't query eof(). Just use the stream as a Boolean value, if ( infile ).
 
@Potatoswatter I guess I'll use reverse then. I hate to type long identifiers.
 
@Potatoswatter What's the difference?
 
@Moshe You want to stop for any kind of input failure, not just EOF. Also, that doesn't indicate that the next get will succeed. You need to get and then test if ( infile ) to see whether you got something, or check whether the result of get was EOF (which is an unnecessary pain).
The correct idiom is if ( infile >> c ) /* c is valid input */;
There is really no good reason to use get.
Also, now I see that you're using an uninitialized value of charAin if (charA == charB).
 
11:55 PM
Can anyone whip up a line of sed or Perl that'll output everything in between a multiline <![CDATA[ and ]]> block?
 
Best to enable compiler warnings so that gets flagged for you.
 
"$#)%/$#%/!)$/")#%#"/$
(untested)
 
@Potatoswatter Yes, that's true.
 
I think that's undefined replacement :-)
Ugh, okay then, I'll do it manually.
I think the only angled brackets are either includes or streams.
 
More seriously, I think while /<!\[CDATA\[/../\]\]>/ does wonders in Perl. (syntax may be a bit off, it's been a while since I touched Perl)
 
11:57 PM
@Moshe well… you have my solution as a reference, anyway.
 
@Potatoswatter Yes, thanks. This was about getting it to work, not to be pretty or idiomatic.
 
@Moshe Pretty? I typed into the browser without using the tab key. Really, a program that uses an uninitialized value doesn't work, even if it produces the right output for particular input.
 

« first day (402 days earlier)      last day (4560 days later) »