« first day (556 days earlier)      last day (4406 days later) » 

12:16 AM
@ScarletAmaranth it works on my machine gcc version 4.3.2 (Debian 4.3.2-1.1)
 
I've tried 4 different compilers ^^
I see no reason why it shouldn't work.
My best guess so far :
OS is assigning some weird memory locations within that stackframe.
But that would be really weird ...
I wonder whether it will hop trough a pointer to a heap and actually erase the contents of the string there too.
Thats when i'll go to sleep :)
 
Only reason I can think of is that he got a fucked library implementation on the computer he's using.
And/or possibly a weird compiler.
 
He said that getline() commented out "solves" it.
 
even with his massive include list ... still working as he would expect
 
But how on earth would getline() get access to those strings ...
I give up, im off to sleep.
Farewell.
(im so checking the answer should there be any, tommoz)
 
1:01 AM
allo
Google tells me there are 30mil results but won't list any of them :-\
 
1:58 AM
@Xaade you there?
Or @Coppolla
since you just lit up
 
Anyone here have experience with V8?
I'm working on a sophisticated VM implementation (a VM in a VM in a VM) (VMCEPTION!) in which memory management across multiple V8 isolates is necessary
By memory management, I am referring to manually managing the memory within these VMs
I've bound to a garbage collection event in the v8 engine, so I am notified whenever memory is allocated. I would like to terminate the V8 VM when the heap of a specific isolate exceeds a certain value (users pre-pay for specific RAM usage)
V8 includes a function called V8::GetHeapStatistics
However, this does not have a way to specify a specific Isolate. I need heap information for an Isolate, not the entire amount of heap memory for the whole V8 system
I've already looked in the docs, and there doesn't seem to be much of an explanation of how to do this.
 
2:32 AM
The goal is to kill the VM without a memory leak
TerminateThread is unacceptable
 
2:47 AM
Anyone here?
 
Chacha
 
Any idea on how to terminate a V8 script when it exceeds a certain amount of memory usage?
 
Nope
Run it in a process, terminate process when desired. All I got.
You should be asking questions on the main site, though.
 
@GManNickG Running in a process isn't an option; because of the way the web server infrastructure is configured, and it would also incur an unacceptable performance overhead.
 
You can terminate any process by pulling out the power cord of your computer.
*and battery if it's a laptop
 
 
2 hours later…
5:25 AM
@Mysticial: Although it's sad your name isn't on this, it's pretty damn cool: two-n.com/pi/
 
Yeah, he gets most of the publicity - among the general public. Whereas I get most of the attention from programers, mathematicians, and researchers.
As soon as 3TB drives drop back to sub-$120 prices...
those 10 trillion (and the 8.3 trillion hexadecimal) digits are going online as torrents.
 
6:09 AM
@Mysticial I would be satisfied with 1 or 2 TB, but I really should buy a new hard drive soon, mine are already 5 and 7 years old :)
 
I've actually been eyeing the 4TB drives. Wanna find out if my 3TB-certified enclosures can handle 4TB.
But 4TB drives are ridiculously expensive...
 
I need to buy a HDD too :(
 
I usually get a new HD every month or so. But I haven't gotten one in 5 months cause of the floods. And I'm starting to feel the pressure of running of out of space.
Actually, I bought a 3TB HD in December right after online prices skyrocketed but before retail stores ran out of stock. (I hoarded it knowing that I wouldn't be able to get another drive for a while.) If you exclude that one, then the last HD I've brought was probably back in August... errr...
 
6:27 AM
first world problems :P
 
11 hours ago, by DeadMG
I didn't rage about it at all
11 hours ago, by DeadMG
all I said was that I've had things come out of my backside with more value.
I thought that was worth revisiting. Beauty distilled. Shame it was too late for me to star it
 
what was he on about?
 
6:43 AM
> "... practically a physicist needs only 39 digits of Pi to make a circle the size of the observable universe accurate to one atom of hydrogen..."
 
sbi
@sehe You can still star it right now.
 
> Ok, if my calculations are correct, then if you were going to build a ringworld in Earth's orbit around the sun, you would need approximately 254,000 km less (in circumfrence) around the sun due to the changes in pi due to both relativistic effects from the local gravitational gradient and the speed at which you need to spin it in order to get 1G of centripetal force on its inhabitants
> It seems to basically comes down to π times a constant, which in this case is 0.000270 if I've done my math properly. Does that sound about right?
Woah. I consider my mind blown bent
@sbi Do you mean by repeatedly /load-ing older posts and starring from there?
 
sbi
@sehe Just click on the link to the message, and star it from the messages menu (down-arrow).
 
@sbi Ow. How anti-climactic :) I mentally dismissed the 'drop down menu' since I found the corresponding on-hover links on the right. Obviously, those don't appear in transcript. Thanks for the hint
 
any one here make use of bitbucket?
 
6:49 AM
I use it. I wouldn't claim I 'make use' of it
I prefer github or self host for most things, but bitbucket is appropriate enough to fork other projects hosted there
 
ok then :P well, when I commit from the windows PC I first set up with Hg, My commits show up with my bitbucket user, but when I push commits form my linux computer, it just has a user name. What setting am I missing?
ok... so I've set up the alias in the project...
could it be because I using to different ssh keys? even though both are associated with my profile?
 
There's an entry in their documentation for that.
 
> The subtle and expensive determinations of the bending of a ray of light by a gravitational field, or the careful listing of the binary stars in the heavens, can have little application to the making of two squashes grow where only one grew before.
> Faraday, playing with wires in his laboratory, wrests from the hands of nature a torch that Edison uses to light the world, and Einstein to light the universe. Who can tell? Perhaps in some far distant century they may say, "Strange that those ingenious investigators into the secrets of the number system had so little conception of the fundamental discoveries that would later develop from them!"
(from HUNTING BIG GAME IN THE THEORY OF NUMBERS) by Derrick N. Lehmer
 
Speaking of which... starting late this year and through next year, we'll get to see some of that in supermassive black hole at the center of our galaxy
There's this big cloud of gas that heading almost straight toward the black hole.
 
Fascinating stuff.
 
6:57 AM
oh, I have to configure the email my local Hg pushes with
is there a simple way to edit commit data? or would I have to remove a commit and then recommit the change?
 
books.google.nl/… - interesting reading, really. I should head to work :)
 
One of my professors last year was talking about program that automatically generates technical papers. Basically a paper writer - it works by throwing together a bunch of technical terms with correct grammar.
And one the examples he gave was:
"How to solve cache coherence with black holes."
 
oh yeah, it's coming up towards payday, and I still have some money!
 
7:14 AM
@ScottW MS solved that in the simplest way: the page displays 'correctly' by definition. All other browsers are non-reference :)
17 hours ago, by sehe
@Olumide you have a lot of jpeg artefacts
@Olumide ^ I amplified the artefacts for you, you so can see what I was talking about
 
god damn jpeg sucks when not used for what is was designed for
are we still really trying to shrink the size of images that much we have to make use of jpeg?
 
sbi
7:27 AM
@thecoshman Have a look at JPEG2000. Its part 6 (that's Mixed raster content, I think) allows compound images. A good encoder would break down a picture into photographic parts (e.g., background image) and solid color areas (e.g., letters overlaid), and encode them differently. Makes for very efficient compression of mixed-content images.
 
huh, so JPEGs are shit because people are lazy?
 
@sbi I just wrote a quasi-JPEG2000 converter last week too, the quality is much better.
 
sbi
@thecoshman The support for JPEG2000 isn't very wide-spread, and the support for the higher-numbered parts even less so.
@GManNickG You did what?
 
7:44 AM
@sbi It took an iamge and applied JPEG2000 compression, but instead of outputting a file it generating several (around 20) images detailing each step of the process.
 
sbi
@GManNickG No, I meant to ask: Did you write a JPEG2000 encoder "last week"?
Anyone here likes cats?
 
@sbi I don't follow, because it's my birthday and I'm dumb. But yes, 6 days ago or so.
 
sbi
@GManNickG Oh, hippo birdbath, cong-rats, and all!
 
@sbi you're one sick puppy ape
 
sbi
@GManNickG I was asking because I was told that writing a jpeg2000 encoder isn't an easy task.
@thecoshman This wasn't drawn by me, you know.
 
7:57 AM
@sbi I think that is more the mental strain of lowering your self so far, rather then the technical challenge
 
@sbi Thanks. And no it's not haha. To be fair, I should have specified it was as basic as they get. I didn't open the specifications or anything.
 
sbi
@GManNickG Yeah, but the math involved isn't exactly trivial either, is it?
 
You just reminded me of that epic WoW trolling. Some kid it using all his engrish skills to ask to be taken on a raid, and some guy keeps getting him to correct his grammar. Eventually, he tells him he want take him on the raid but he hopes he learnt something about English :P
 
@sbi Wavelets are probably the hardest thing, but it's not too hard. Though this depends on what you find hard.
 
@GManNickG said the Duchess to the Vicar
 
8:17 AM
The things that get starred here are really odd
5
 
8:49 AM
Are you complaining that your Duchess line wasn't starred?
 
No, but it wouldn't mind one :D
 
help! I'm trapped in a ton of different winapi string formats. :(
 
you're on your own there bud :P
 
LPSTR, LPWSTR, LPCSTR, TCHAR.
And it takes tons of code to convert from one to the other.
 
really?
why do you need to convert any way?
 
8:51 AM
LPWSTR* mystr = CommandLineToArgvW( GetCommandLineW() );
^ I need to convert this to a char*
 
why? why not just use it as it is given to you?
 
sbi
@IntermediateHacker And what encoding would you expect your char* string to have then?
 
> Yes, we also hate the mix of metric and imperial units in that description
 
damn, guess I should better read all about this windows string format stuff
 
@sbi chat* ... am I missing something?
 
sbi
8:58 AM
@thecoshman Yeah. It's called orthography, I think.
 
@sbi damn you making me google words!
wait, that's non perspective
 
sbi
@thecoshman Is that a bad thing?
 
are you implying I have no perspective?
 
@thecoshman and what's 'non perspective'?
@thecoshman ortho-graphy: the art of writing straight :)
IOW: "am I missing something?"/"Yes - orthography" --> You can't type straight
 
@sehe a lazy way for me to say where are things are parallel... though perhaps I am thinking of orthogonal?
@sehe that's no less cryptic
 
9:03 AM
@thecoshman If you miss orthography you can't type straight - implying you make typos all the time. "Man! I can't type straight. I think I'm drunk"
Why am I explaining stuff on the internet.
It's not even my stuff. I'm just interpreting
 
meh
 
sbi
@IntermediateHacker What we call a "character" in programming (that is: a char or a wchar_t) is actually only a container for a number. There needs to be a specification how those numbers map to glyphs. This specification is called "encoding". There's two factors complicating this: For one, there can be any number of glyphs, while numbers in computing need to be limited, when you expect them to be dealt with efficiently. This in turn leads to many encodings being out there.
They are stored in number types of different width. Some use 8bit, some 16 or 32. Some use one number per glyph, some use several (aka multi-byte encodings), some use varying numbers of numbers for different glyphs. What you need to do is to convert between encodings, not number types.
And LPWSTR* on Windows is typically encoded using UTF-16. Which encoding do you need instead? Are you sure it can even map all the glyphs UTF-16 can? And why do you need to convert at all? I think all Windows APIs can deal with UTF-16 string.
 
 
oh yeah, I forgot to post that before you :P
 
sbi
Isn't there a good question encoding and encoding conversion on SO? If not, there probably should be one.
 
9:09 AM
@sbi I remember seeing several 'ok' ones. I believe there was one 'popular' one too.
Looking for it
 
sbi
room topic changed to Lounge<C++>: SFINAE saved my marriage. [c++] [c++11] [c++-faq]
 
32
A: What do I need to know about Unicode?

ericksonUnicode is a standard that defines numeric codes for glyphs used in written communication. Or, as they say it themselves: The standard for digital representation of the characters used in writing all of the world's languages. Unicode provides a uniform means for storing, searching, an...

^ this might be a good 'umbrella' article/starter
 
sbi
@sehe That's not a bad answer.
OTOH, it isn't very practical either. When you have a concrete problem, as @Intermediate has now, all it tells you is "Go and educate yourself before you come back and interrupt the grown-up ones!" That's perfectly answering that question, but not a good answer to point people to who come asking questions about concrete problems they are encountering.
 
I usually just refer to Joel's article joelonsoftware.com/articles/Unicode.html
@sbi coma? :)
 
@sbi no offense, but that is by far the worst English I have seen from you :P
 
sbi
9:16 AM
I can't type today.
@sehe I remember reading that a few years ago and finding (a) critical error(s).
 
@sbi Really? I just read it. Way back, when it was all new to me. I'd probably need to re-read it to assess the quality. But I'm not motivated to do so now :)
Anyways, haven't found another answer that sticks out. Yet. This one is mildly interesting, albeit amusingly subjective. Perhaps we should whistle in the deletionist troops? :->
A bit off-topic, but have you seen the Data Hand? — Kerrek SB Jun 6 '11 at 7:43
@KerrekSB ^ don't know how I managed to run into that. That seems... funky
 
I think my main problem with RCP so far is that things seems to have names that don't make sense to me right now. Most likely because I am only seeing a tiny part of what these objects can really do
 
sbi
9:32 AM
@sehe I have spent some time looking for the mail I wrote to Joel back then (which he ignored), but I can't find it. I am very annoyed by this, as my email archive reaches back to Nov '99, so it must be in there somewhere.
 
@sbi what's the default encoding for windows?
Does char contain a UTF-8 encoding? or does that depend on the platform?
 
sbi
@IntermediateHacker NT (and thus 2k, XP, Vista, 7...) uses UTF-16 internally, stored in wchar_t. All the APIs also have a variant using char, which is, I think, whatever encoding page the system is set to.
 
In short: not defined.
 
I see.
damn why does one unicode article give a link to some other unicode article and so on? I've been lead to five different articles.
 
There are books on Unicode.
 
9:41 AM
Unicode all the wall down
 
why is there a UTF-7?
 
Old, irrelevant stuff.
 
probably some funky thing where you couldn't make use bit 8
 
okay, so basically UTF-8 supports ASCII char set, UTF-16 supports almost all languages known to man. So when is UTF-32 needed?
 
space exploration?
 
9:43 AM
UTF-8 supports all languages known to man, actually.
 
All Unicode encodings are functionally equivalent.
 
By using the eighth bit, you can spread a UTF-16 character across multiple 8-bit bytes.
UTF-8 specifies this mechanism.
 
UTF-8 is a variable length encoding (1-6 bytes per character), UTF-16 can represent an entire BMP in two bytes and is variable length outside of that (then it's 4 byte), UTF-32 is fixed length (4 bytes/character).
 
@IntermediateHacker Japanese is hellish in UTF16
or so they say
A lot of non-Western characters need more than one UTF16 unit. It's as variable length as UTF8, it just doesn't byte you when using western character sets
 
9:47 AM
hah, byte.
 
Yes, surrogate pairs are wonderful.
 
What's a BMP?
 
Basic Multilingual Plane.
First 65535 characters in Unicode.
 
ah
 
The Wikipedia article shows how a multi-byte character is encoded in UTF-8 pretty well.
http://en.wikipedia.org/wiki/UTF-8#Description
 
9:49 AM
@rubenvb or Bit Map, you basic image format, usually a direct dump of pixel values, some times making use of RLE
 
> Did you ever get an email from your friends in Bulgaria with the subject line "???? ?????? ??? ????"?
 
No, I don't have friends in Bulgaria.
 
lol x2
 
@CatPlusPlus I hear they have internet the world over these days
 
I here too.
:P
 
9:50 AM
fuck sake
 
no, I'm deaf
:D
 
can you use =deleted;on any derived function?
 
> All that stuff about "plain text = ascii = characters are 8 bits" is not only wrong, it's hopelessly wrong, and if you're still programming that way, you're not much better than a medical doctor who doesn't believe in germs.
 
Try. I think you can.
 
9:52 AM
^ I was still programming that way. :'(
> Please do not write another line of code until you finish reading this article.
 
such that you could in theory have a class with lots of functions and then derive it and get rid of all the functions
 
^ Challenge accepted.
 
what madness have the unleashed?!
 
Yes, so?
Not like you're going to go out of your way to make your life hard.
 
According to an article, in 8-bit-byte systems, only 7 bits are usually used and I can use the last bit for my evil purposes.
I wonder how you use a bit for evil purposes.
 
9:56 AM
ASCII is only 7 bits if that's what you mean
 
god damn it. set it to C99 ¬_¬
 
@sbi You're like me then: hoarding email since I became aware of backups + indexing niceties
23 hours ago, by sehe
@thecoshman I hoard all mail (besides spam). I never throw any away. That doesn't mean my inbox has to grow out of hand. An inbox is just that: in-box
 
seems you can ideone.com/9DX7s
 
When will ideone update its compiler?
it can't be that hard to switch?
 
@thecoshman = delete; is usable anywhere on anything that's a function. (Counts as a definition so you can't delete something that is already defined but that's sensible.)
 
10:00 AM
@rubenvb what's their incentive? Is there any competition that does better?
 
hey, you can comment on ideone source code?
 
@sehe The jpeg isn't mine. I found it on a facebook group page
 
@Olumide well, that doesn't really matter :)
 
@IntermediateHacker that looks familiar
 
10:01 AM
i commented on it.
 
is this even valid in C?
const char foo[] = "foo";
const char bar[] = "bar";
char foobar[] = foo bar; // look Ma, I did it without any operator!
 
oh :p
 
@sehe I imagine C would reply, "don't objectify me" :)
 
lol, wish it was valid.
 
10:02 AM
Only literals are joined together.
 
I could finally make my mama proud
 
char foobar[] = "foo" "bar"; is the same as char foobar[] = "foobar";
 
Arrrrrg, I'm on a weekend with out limited internet and I miss the one Spirit question that actually generated activity, page views adn subsequently, reputation
 
@sehe incentive... it takes five minutes: apt-get install gcc47 or whatever :P
 
And my own Spirit answer is still sitting completely unnoticed:
2
Q: Parse quoted strings with boost::spirit

ZeroI would like to parse a sentence where some strings may be unquoted, 'quoted' or "quoted". The code below almost works - but it fails to match closing quotes. I'm guessing this is because of the qq reference. A modification is commented in the code, the modification reults in "quoted' or 'quoted"...

 
10:03 AM
limited internet?
they have limits on internet use?
 
yeah, it's called 3G
 
sbi
@sehe I created a google mail account just to store my 10GB mail archive.
 
@thecoshman oh wait, you mean the 1 GB RO. 5 thing? I always thought that was a rip-off. :D
 
huh? no, I mean that mobile internet is slow as shit, especially when you are out of the cities
 
10:06 AM
your face needs to be violently introduced to your hand
 
slap your self :p
 
@IntermediateHacker limited wallet, actually. $0.03 per 20kb is a handsome fee
 
...done.
 
My archive is only 200MB. Not many people write to me.
 
10:07 AM
poor cat :P
 
Apr 20 at 10:21, by sehe
@sbi that's excellent news. I'm roaming (between Frankfurt and Dresden somewhere) an I discover that SO chat is still hard to use on a smartphone ;)
 
@sehe Our very own Mobile Vikings has €0,50/MB in various European countries and the US.
that's about half a cent per 10 kB.
 
@CatPlusPlus I include company mail history, delete non of my personal mail. Me and family have an archive of only 3.6Gb (that was less than I anticipated, actually).
@rubenvb roaming? That's not bad.
 
Buy-in is only €15 :p
 
@rubenvb well, you know how it is with sys admins: they hate to change a working server (risk of breakage) and they need the incentive before they issue even that single command
 
10:14 AM
Oh wait, 400MB, I've checked only one account.
 
For which you get a month's free data (up to 2GB) in Belgium.
 
By the way, non of my Debian/Ubuntu boxen support gcc >4.6 a.t.m.
 
@sehe which Ubuntu are you talking about?
Re Debian, I'd only ever use (Apto)sid...
 
@sehe doesn't Ubuntu already come bundled with a later version?
 
@rubenvb I think I checked that on Oneiric, but I know for sure about Mint, Natty*
@rubenvb I think I had that on my server before the grand reinstall
 
10:15 AM
damn ever since the zipper doodle thing, my display driver stops working whenever I go to google for some reason.
so for today I have to use the lame-ass bing
 
I was an aptosid fan, untill Debian froze for about a year, and left me with old stuff. Then I decided to take the jump to Arch. Never ever regretted that.
 
"Seven plus Three", "Seventy Three" - Calvin and Hobs
 
Can't you install unstable packages in a stable debian? Like these: packages.debian.org/…
Or god forbid, install them from source ;)
 
@IntermediateHacker it's dangerous at there, thake this
 
@IntermediateHacker yes, if you mean that 4.6.1 and 4.6.2 are later
 
10:18 AM
Oh no, I used a religious saying. O_o
 
@rubenvb and..
 
@thecoshman thanks
 
lol, no worries
 
@rubenvb which one, where? I must have missed it
 
2 mins ago, by rubenvb
Or god forbid, install them from source ;)
 
10:19 AM
@thecoshman Ow. I'm so used to that idiom. Good spot
 
@sehe yeah, I was a bit confused why he made a fuss about it
 
ok, ok. It's still in the limits of sanity.
 
@thecoshman did he? I must have missed that too :)
 
Better than "oh my God'.
 
2 mins ago, by sehe
@rubenvb which one, where? I must have missed it
you trolling?
 
10:22 AM
2 mins ago, by thecoshman
@sehe yeah, I was a bit confused why he made a fuss about it
^ Don't troll a troller... Or what was that saying?
Hint: next time you're a bit confused, feel free to remain 'a bit confused' without any particular obligation to let the world know :)
 
@sehe Are you nouning a verb made from verbing a noun when you say 'troller'?
6
 
troll troll troll trooooooll. troll troll troll troooool
 
@LucDanton nice one
 
Nounify!
 
Sooo... when a troll trolls a troll, who's the trollee (trolley?)
 
10:24 AM
ugh
 
ah. Google came up with ygh.com
 
@CatPlusPlus No it's not. It's lunch time
 
Really? I just woke up.
 
As a sidenote, that oneboxed really nicely
 
10:26 AM
@CatPlusPlus What's that image all about? Is it really a mystery?
 
@CatPlusPlus you're a cat, it's always lunch time
 
3 hours ago, by sbi
user image
 
Why is there water on the floor?
 
it's just really silky cloth :)
 
sbi
@CatPlusPlus Nounification.
@CatPlusPlus To make those cats more eager to jump on the table. It'd be hard for the old woman to have to bend down to pick them up, no?
 
10:40 AM
So when using macports installations of gcc47 and protobuf-cpp, I am getting "freeing a block that was never allocated" errors in std::string.
This makes me think it's multiple libstdc++'s across two linked binaries.
How does one avoid this?
 
10:52 AM
What's the html to display a key?
Or is that just for SE?
 
what do you mean 'a key'?
 
There's <kbd>, but I don't think it has any default style anyway.
 
11:10 AM
@sehe Is that what they call recycling?
Just saw this list of C++ interview questions. Does anyone know the answer to this question: Are there any situations when the overhead of virtual functions is larger or smaller?
 
@StackedCrooked No, that's what bash purists would call 'useless use of cat' - not that I bash purists, nor cats
Search this chat for 'devirtualized'...
Or start here:
Apr 17 at 8:07, by Pubby
Don't virtual calls cost a deref and a branch miss?
 
Two derefs
If you know the type then it should be same as function though, I think.
 
11:26 AM
mmm. that's rather spammy come to think of it. Still the pic was quite funny: static.reddit.com/ads/tldr.jpg
 
it's not that spammy
 
I figured it was over the line, because of the /ads/ clue in the url :)
 
@sehe if it's funny, it's funny
 

« first day (556 days earlier)      last day (4406 days later) »