« first day (491 days earlier)      last day (4458 days later) » 

3:00 PM
Now the fun begins, is glew wrapping something wrong or is it the underlying function, sigh :(
thanks for the help @CatPlusPlus :)
Apparently, up until glew 1.6 it was declared without const and ubuntu still has 1.6 as most recent in the repositories, sigh
 
3:37 PM
I need additional 48h of weekend.
 
@CatPlusPlus walmart has it: $13.500 with the frequent buyer discount
 
Only 48?
 
Does anybody know Who TF is Rick Santorum? See this hilarious vid fragment
 
No need to be greedy.
 
I live in the netherlands, there is no such practice :) ^^
 
3:44 PM
Richard John "Rick" Santorum (born May 10, 1958) is an American Republican Party politician. He served as a United States Senator representing Pennsylvania from 1995 to 2007, and is a candidate for the 2012 Republican Party presidential nomination. Born in Virginia, Rick Santorum was raised primarily in Butler, Pennsylvania. He completed his undergraduate degree at the Pennsylvania State University, earned an MBA from the University of Pittsburgh, and received his JD degree from the Dickinson School of Law. Santorum entered the legal profession, working for Kirkpatrick & Lockhart. He ...
 
Dickinson School of Law? Charles Dickinson: as in, little fact, much fiction ?
Anyone want to defend Windows OS on this particular data point: printing a simple document just ran my system OUT OF DISK SPACE on the primary (system) disk. I had over 2Gb free on starting the (single) print job.
(I am printing 30 copies of a 28-page PDF document (sheet music) in one batch. I'm using the latest version of Acrobat Reader in conjunction with the latest version of the Brother drivers for Brother HL5150D printer, on a fully up-to-date WinXp64 with 4 Gb RAM (virtualized).)
 
@sehe: that's the printer driver's fault, or adobe's. Try somthing like sumatrapdf to be sure.
 
Also, quitting Acrobat, restarting the "Print Spooler" service, logging out didn't reclaim the disk space (now at 3.55MB free) - going to reboot now
 
Are there by chance vector graphics (or other large images) in the pdf?
 
Well, it's bound to be adobe. But it stinks anyway
 
3:52 PM
The disk space is used as pagefile, so that explains the disk being filled up
I had it happen to me to, one Mathematica 3D vector plot and bang, memory crapped out.
 
@rubenvb Huh. I'd say rasterized is going to be tougher. Anyways, it was all rasterized data (scans at 300 dpi)
@rubenvb Ok, if the vector data triggers worst case behaviour or intermediate resolutions are way too high :0
 
yeah, something in the image that is eventually sent to the printer. Just try another pdf reader to see if it also has that problem, then it might be the printer driver or as extension Windows printing stuff.
 
Hah. Reboot results in 3.92GB free :) I almost missed the subtle difference between 3.55MB and 3.92GB :)
 
ohai
 
user784668
@sehe Yeah, they differ only by several orders of magnitude :P
 
3:56 PM
@rubenvb Well, it did print some 12 copies. So I'll just rinse/repeat - I have bad experiences getting the duplex unit correctly controlled using other software pacakges (long time ago, but still).
 
@sehe Restarting the service doesn't clean up the spool.
 
@Fanael Yeah, but I was kind of anticipating a manual cleanup operation :) So I expected the bad news
@CatPlusPlus There wasn't anything pending. Just the failed job, having already been aborted
 
The data itself is held in system32\spool\somewhere.
 
@CatPlusPlus Anyways, I strongly suspect acrobat itself. It was acrobat who reported the failure, and many pages printed correctly.
 
Anyone know how the C++ modules proposal works around a source file in a module depending on some other functionality in the module being built? (without headers if possible)
 
sbi
3:58 PM
@sehe PDF basically is a programming language. You don't know what the stuff inside expands to until you expand it. I've seen Acrobat's Preflght tools eat all the memory on a 4GB Win32 machine while analyzing a 4MB PDF.
 
I'd like to use a similar concept in a toy programming language (without headers, with modules) and am kind of unsure how a undeclared, uncompiled function or class can be used in a seperate translation unit.
 
@sbi Well, the PDF is a simple scan at 300 dpi and I converted it msyelf (using convert *.png -density 300 -adjoin doc.pdf from imagemagick) so I pretty much know what it consists of. Anyways, the problem is Acrobat not realizing that printing 30 copies doesn't require 30 copies of it in temp space. Let along 30 copies at over 100Mb :)
 
user784668
@sehe One word: Acrobat.
 
@rubenvb The usual 'trick' is to have metadata in modules (such as the way java classes and .Net assemblies work)
 
@Fanael one word: SumatraPDF
 
4:00 PM
Mind you, Windows spooler service sucks, too.
Always did, and probably always will.
 
user784668
@rubenvb Does it suck so badly, too? Because it's about suckiness now.
 
PDF readers for Windows suuuuck.
 
Hi guys!

What do you use to find the root of binary tree in large array?
 
@Fanael oh, no, the opposite really. Minimalistic, but damn fine.
 
I guess it fits the whole "printers only work when you're really lucky" thing.
 
4:01 PM
The sole reason I went to Windows is because I have trouble getting my duplex unit controlled by the linux driver. It used to work, and I don't have time to figure out what is wrong. So, to windows it was. Turns out, it isn't without it's own flaws
 
user784668
@EtiennedeMartel s/readers for Windows //
 
@user1131997 If it's a heap, then the root is at index 0.
 
@user1131997 make_heap, *begin()
 
@sehe but how does that work when compiling the module itself? (remember, there's no headers in my case, and I'd like to keep it that way)
 
@rubenvb I really don't know. But in a way, the metadata is a sort of substitute for a 'header'
 
4:03 PM
@EtiennedeMartel if it's not heap?
 
@user1131997 Then how the hell are you storing that tree in that array?
 
@sehe but to get the metadata, I'd need to compile the relevant source file, but if two distinct files depend on each other (not unthinkable), I have a chicken and egg problem :/
 
@rubenvb Two pass compilation?
 
Ban circular imports.
 
@EtiennedeMartel any array must be prestented as a heap for the next step of building binary tree?
 
4:04 PM
@user1131997 What are you trying to do? Because it feels like you have a XY problem here.
 
@CatPlusPlus Not even imports. Just compilation units with circular references
@EtiennedeMartel Always.
 
Module is a compilation unit, and references are imports.
 
@CatPlusPlus Pretty loose definition of import there, mate
 
@sehe I'm trying to increase overal compilation speed. Ugh.
 
I have an a large array with 100k values in it, how can I determinate , which value should be the root ( at the top ) of the tree?

If I get value 1, it will be rather difficult to make left-leaf of this node
 
4:06 PM
Haskell bans circular module imports. Dunno about Java and C#, but probably do too.
 
@user1131997 Just call make_heap on the array, and voila, you got a heap.
 
@CatPlusPlus so you can't write two source files that "include" each other?
 
user784668
@CatPlusPlus Really?
 
@EtiennedeMartel if not to use ready-functions?
 
file1.cs namespace X { partial class Y { int a; } }, file2.cs namespace X { partial class Y { int b; } } -- I wouldn't say file1.cs imports namespace X. I'd say it extends it. Definitions could go both ways of course
@CatPlusPlus Nope, on both accounts
 
4:08 PM
@sehe There's no imports, the assembly is the compilation unit.
 
@EtiennedeMartel That's a good way to summarize it. And true. You can't compile the separate .cs unless they are fully independent
 
@user1131997 You mean you have to write it yourself?
 
@EtiennedeMartel yes
 
waking up with a swollen uvula is not a pleasant experience :(
 
@user1131997 Then google for "binary heap". It's what you want.
 
4:09 PM
@Hoxieboy uvula only reminds me of vulva?
 
XD
 
@rubenvb No.
It's bad code, anyway.
 
no, but it reminds me of something thats swollen to five times its normal size and almost choked me to death D:
 
Module imports form a cycle for modules:
A (.\A.hs)
imports: B
B (.\B.hs)
imports: A
 
@CatPlusPlus hmm. Still, I need a non-circular import of an uncompiled module too
 
user784668
4:11 PM
@Hoxieboy Which uvula?
 
as in: file A uses function from uncompiled function B.
 
@Fanael ... my only one?
 
user784668
@Hoxieboy Only one? What happened to you?
 
user784668
@Hoxieboy The palatine uvula, the uvula of cerebellum or the uvula of urinary bladder?
 
@rubenvb Well, colour me silly. Now that I have 3.98GB free space (and another 13.5Gb on the secondary disk), I can not even re-open the same PDF with Acrobat ?!?!?
They're pretty much forcing me to use something else. Of course I'm too curious to know what's breaking it first
 
4:14 PM
@sehe I will gladly colour you silly. Unfortunately, you'll have to find a way to get over here first. And pick a colour you associate with "silly"
 
@Fanael "almost choked me to death" my palatine one, it swelled up from being irritated or infected, and now I'm trying to get it to "die" using icewater
 
sbi
@sehe That doesn't tell us what format the pictures are in in the PDF. It could be RLE'd bitmaps, or highly compressed JPEG2000 images. And has this OCR results embedded? At least, if it's images, there's a pretty good correlation between PDF file size and the size of what's encoded in the PDF.
 
 
@sehe owned?
:)
 
lol
 
user784668
4:16 PM
@Hoxieboy "almost choked me to death" does not imply the palatine one, in theory you could've eaten one of the other two.
 
XD
 
OK, nobody seems to know how to replace classic headers with only modules I guess
 
@sbi No, may way is the CLI way, remember? It is scanimage > raw.pbm && convert raw.pbm page_nnn.png and those pages into pdf using imagemagick. I'm pretty sure there is no OCR going on in that basic sequence and regardless, it is sheet music :)
 
@sehe Adobe Reader consumes the pain of the living to survive.
 
@sbi: full size of PDF 4Mb, page details:
identify test2.pdf
test2.pdf[0] PDF 390x588 390x588+0+0 16-bit Bilevel DirectClass 205KB 0.000u 0:00.009
test2.pdf[1] PDF 176x274 176x274+0+0 16-bit Bilevel DirectClass 205KB 0.000u 0:00.009
test2.pdf[2] PDF 172x267 172x267+0+0 16-bit Bilevel DirectClass 205KB 0.000u 0:00.009
test2.pdf[3] PDF 180x268 180x268+0+0 16-bit Bilevel DirectClass 205KB 0.000u 0:00.009
test2.pdf[4] PDF 186x271 186x271+0+0 16-bit Bilevel DirectClass 205KB 0.000u 0:00.009
test2.pdf[5] PDF 181x268 181x268+0+0 16-bit Bilevel DirectClass 205KB 0.000u 0:00.009
 
sbi
4:18 PM
@sehe That still doesn't tell me how those images are encoded. (Acrobat's distiller will happily re-encode any images when told. I haven't used imagemagick to create PDFs.)
 
user784668
@EtiennedeMartel Adobe Reader consumes bread to survive?
 
@Fanael Har har har
 
Hmmm, this proposes module files produced when a source file is compiled. Still forces a compilation order on everything, which is very bad.
 
sbi
@sehe Oh, a 4MB PDF? Containing nothing but page images? That indeed sounds bad. Would you mind sending it to me? I'd really like to have a look at it using Preflight.
 
What's is special with T-tree?

The differents with simple binary Tree is only , there is also control variable void** , which may control *void data.
 
4:21 PM
@sbi coming up
 
lol you guys, this is ridiculous, its like I have a second tongue
 
@user1131997 What on earth are you talking about. You appear to get worked up rather quickly when we don't get what you want, and then you utter sentences like that. I don't get what you mean, at all.
 
sbi
@sehe Got it. Feel free to delete that message!
Thanks!
I'll report if I find anything technically interesting.
 
@Hoxieboy Have you seen a doctor or is the ice cure just your assumption?
 
@sbi I anticipate that you will find that the first page was scanned at different settings (resolution) than the others, and I was lazy enough to just let Acrobat do it's 'fit to page' scaling thing. That could be it, in fact
 
4:27 PM
@Potatoswatter I looked up a few household remedies, it isn't life threatening, its just swollen :P
 
@sehe en.wikipedia.org/wiki/T-tree, see? what's the difference between this and simple binary tree?
 
@Hoxieboy Like you said, it's likely infected. That will go away faster with antibiotics.
 
@Potatoswatter that was my second option, and yes, I don't think its going away anytime soon(with icewater)
 
@user1131997 Thanks for the link. I don't promise I'll read it soon, because I'm kind of busy and should be starting dinner as well
 
does an int automatically round itself off or throw an exception if it has a value of a double?
 
4:32 PM
@Hoxieboy it can't 'have' the value of a double. You can't assign it without casting. But if you mean
@Hoxieboy ... int x = 5/3; // integer division implied, value = 1, 5%3 == 2
 
@Hoxieboy It doesn't throw exceptions. And it doesn't "round" itself.
 
I believe that the specified integer behaviour is truncation
 
so if int I = 3.5 what would happen if I attempted to add another 2 to it and cout?
 
@Hoxieboy I will probably equal to 3, because it gets truncated.
 
sbi
@sehe No. The optimizers says 95%+ of the space is used for the images. I doubt something nasty is hidden in that file. It might just been a blurb of the printer driver.
 
4:34 PM
1 min ago, by DeadMG
I believ that the specified integer behaviour is truncation
 
So when you add 2, then you get 5.
 
>.< sorry
 
@Hoxieboy Just try it? ideone.com/Azse6
 
@sehe ha beat you to it :)
 
4:35 PM
@rubenvb two souls... one thought
6 mins ago, by sehe
@user1131997 Thanks for the link. I don't promise I'll read it soon, because I'm kind of busy and should be starting dinner as well
 
might be because we speak the same language :)
 
@sehe just wanted to know first is all :3
 
@rubenvb But we're not on the same page :)
 
I have a double pendulum simulation to implement. Now that's something new.
 
@Hoxieboy So, you're gonna try now that you know?
 
4:36 PM
thats a pretty cool website :D
@sehe no I will probably keep it to a double
 
@sbi I'm going to blame acrobat. It was acrobat who complained. If it stalls again, I'll make sure to measure pathetic disk usage first before dismissing any dialogs
 
@user1131997 Scanning that article, it looks like the T-tree keeps multiple data elements at each node and defines semantics for merging and splitting nodes, like a B-tree. So it combines aspects of a B-tree's memory behavior with a binary tree's organization.
 
Je m'ennuie l'ete. :(
 
@Hoxieboy So, you didn't 'want to know first' but were just being lazy :) You know, the bits of insight that you learn by doing a test yourself, are the things that you will really grok and remember.
And meanwhile, you learn how to setup small test-cases and proof-of-concepts, which is an invaluable skill as a programmer
 
? a double still cuts off the decimal? this is blasphemy
 
4:39 PM
Les Nuits d'Été
 
Here's my problem poured into a question:
0
Q: compiling parts of modules (without headers)

rubenvbThis question is referring to the "Modules in C++" proposals floating around, and more broadly to C like languages that need a similar feature (like my toy language I'm currently... toying with). In my world, "header files" do not exist, forward declarations would be a pest to maintain when writi...

 
C'est tres relaxe chanson, @sehe.
 
@DzekTrek There are different movements, so keep listening (google Hector Berlioz)
 
:) Thanks, @sehe.
 
user784668
Any idea how to shut up the warning "comma at end of enumerator list" in GCC?
 
4:42 PM
oh hi dzek
 
@DzekTrek "C'est une chanson très relaxe" would be more appropriate.
 
@Fanael get rid of the comma? lol
 
@Fanael I believe the warning includes the flag to suppress it?
 
user784668
@Hoxieboy Cannot. It's macro-generated.
 
@sehe in newer GCC versions, it should.
 
4:43 PM
@Fanael Can you use -Wsystem-headers --> see
15
A: How to ignore gcc compiler pedantic errors in external library headers?

Nik ReimanUsing the -Wsystem-headers option with gcc will print warning messages associated with system headers, which are normally suppressed. However, you're looking to have gcc basically treat these files as system headers, so you might try passing "-isystem /usr/local/ffmpeg" (or wherever you installe...

 
@Fanael BOOST_PP_COMMA_IF.
 
user784668
@sehe Yeah, it says it's -pedantic. But disabling -pedantic is an overkill.
 
:2682566 GCC is interpreting your C++ file ending in .c as C. Use another extension or pass -x cxx or something to g++ or gcc or something
 
-3
Q: Who executes faster - for or while loop

Thats meeeeSo basically I would like to know, who is faster from these loops in C++ language? Basically, which of these examples would compile faster - int S = 1, D = 2, d = 1; for(int x = 0; x < 10000; x++) { S += D/2-d *s; } and int S = 1, D = 2, d = 1, x = 0; while(x < 10000) { x++; S += ...

 
@EtiennedeMartel Exactly, but modern French omits that rule. More and more adjectifs are being put infront of the nouns, rather than in the back of it.
 
4:45 PM
@CatPlusPlus Somehow I cannot take people who ask whether for or while is faster seriously.
 
@DzekTrek I don't know, I've been speaking "modern French" for most of my life, so...
 
@FredOverflow I just facepalm.
 
@rubenvb just realized that :P
 
user784668
@CatPlusPlus Oh my, someone upvoted this?
 
@CatPlusPlus I kill a cat.
 
4:46 PM
Yes, but you can still follow the pattern, right and it's pretty much less formal and easier to write that way? @EtiennedeMartel
 
user784668
@EtiennedeMartel I guess he makes up shit as usual.
 
@DzekTrek In any case, you were missing a few words. "C'est très relaxe chanson" sounds incredibly weird, notably because of the lack of a determiner. Translated word for word, what you wrote means "It's very relaxed song".
 
ok I'm happy now, god I had a fail moment right there XD
 
3
A: Who executes faster - for or while loop

Seth CarnegieThe second example would probably compile slightly faster because it is 76 characters long, as opposed to the first's 77 characters.

Well played sir!
 
@rubenvb I've run out of cats
 
4:49 PM
I like this song, le vieux moulin, even though many adjectifs come after the noun, vieux and some others come infront, which is basically transition and formal reordering of the French grammar.
@EtiennedeMartel Yes, you can say that, but that's the modern French. It's like saying Comment ca va or just ca va and replying with it too.
 
Is an AST (like in Clang or GCC) just a list of variables, functions, templates and classes?
 
no
 
@DzekTrek Wrong example. It's like saying "comment va". There's a fucking word missing.
 
user784668
@sehe #pragma GCC system_header helped, but it feels like a big fat hack.
 
@EtiennedeMartel 'ça'
 
4:51 PM
an AST is the data structure which is, effectively, the compiler's "understanding" of the entire textual input
 
No, there is no word missing at all, just assumption what the given word would present ( that's why it's called modern French ).
 
@EtiennedeMartel I don't speak French natively, but learnt in high school. I agree with you. Perhaps people speak this way, but written French still needs all the goo :)
@sehe AZERTY ftw!
 
@rubenvb +1
 
user784668
@DzekTrek It's French. You have say the freaking word even if it's blatantly obvious what do you mean.
 
@rubenvb qwerty here. Just good alt-graphics deadkey support
 
4:52 PM
@DzekTrek You're making shit up, aren't you?
I had thirteen freaking years of French classes.
 
user784668
@EtiennedeMartel You realized that pretty quickly.
 
I know what I'm doing.
 
user784668
6 mins ago, by Fanael
@EtiennedeMartel I guess he makes up shit as usual.
 
does anyone care?
please
 
@DzekTrek You are wrong.
 
4:53 PM
@EtiennedeMartel You're arguing with an American about French. That's like arguing with a nazi about Jews.
 
user784668
@rubenvb lol
 
@rubenvb I've seen Americans with a good grasp of French. The problem is that he knows nothing, and he acts as if he knew everything.
 
FUUUU
 
He's just blatantly pulling stuff out of his ass.
2
 
why can't MSVC's linker cope with two files with the same name in different directories?
 
4:55 PM
@EtiennedeMartel That was really low. If you want to have a proper communication, don't allow yourself cheap punches.
 
@DeadMG because you're talking about MS software. Duh.
 
user784668
@DzekTrek Well, you sound like you're really high. There's no other way you could make up shit that well.
 
@DzekTrek Stop acting like a know-it-all, and perhaps I'll be polite.
 
@DzekTrek not really low, more Sad but True.
 
@EtiennedeMartel Stop giving yourself a right to insult others, and I might agree with you some time.
 
4:56 PM
And I'm not at all saying Canadian French sounds nice. I often mistook it for a random other language when I heard people speaking it :)
 
@DzekTrek perhaps that was really, really old french? lol
 
@DeadMG try setup different .obj names
 
@DzekTrek Alright, I apologize for that, but I'm a bit pissed by someone telling me that I don't know my first language properly.
 
@Abyx I got that far, but no idea how
 
Who are you to give yourself a right to insult anyone else just on assumption he was wrong?
 
4:56 PM
@Abyx I'm not even sure that gcc/autotools/etc.. can cope with that too without manual intervention.
 
Apologize half accepted.
 
@DzekTrek just drop it please :P
 
user784668
@DeadMG Huh? Last time I checked it was working. Then again, I haven't used MSVC for some time. And I doubt it's the linker that has the problem. It's more likely the underlying make-or-whatever-it-is system.
 
had that problem twice now in the same project
 
its a fine, suitable error for non-native speakers, and you made a mistake, it's k bra
 
4:57 PM
@DeadMG .cpp file properties, "output files", "object file name"
 
@Abyx I got that far
but wtf am I supposed to rename it to?
 
so?
well.. for given x/f.cpp and y/f.cpp set $(IntDir)\x and $(IntDir)\y
 
user784668
@DeadMG dupa. It always works.
 
add a number
or underscore
 

« first day (491 days earlier)      last day (4458 days later) »