« first day (497 days earlier)      last day (4469 days later) » 

1:02 PM
 
queue message moved to bin by @DeadMG
 
why?
I only seem to recall making a deal with regards to that with you
 
no, but you generally do that to most images.
 
no, I only do it when there are many images
 
memes are fine
my memes are fine
 
1:05 PM
even I occasionally post a small image
 
@TonyTheLion lol.
 
@TonyTheLion FINE ALL THE MEMES
 
POST ALL THE MEMES
llulz
what are manifest files generated by vc++ for?
 
Hey, I installed Windows 3.1 on a f*cking DosBox!!!
 
1:06 PM
Now to write a blogpost about it.
 
lol
 
@IntermediateHacker 3.1 or 3.11?
 
@FredOverflow 3.1
 
Why?
 
just messing around.
 
1:09 PM
lol
 
here's a screenshot.
 
> If you need to use an IDE then you suck, period.
agree?
 
Xeo
@TonyTheLion Need? No. But it certainly makes live easier
 
@TonyTheLion No. IDEs FTW.
 
there's a big difference between "absolutely cannot code without one" and "one makes you much more productive"
 
1:13 PM
Compiling on the console is a nightmare.
 
damn
member variables are constructed in the order of their definition in the class definition, right?
and then destructed again in the reverse order?
 
Xeo
relative to their access specifiers
across access specifiers, it's unspecified or something
 
> There are even occasional idiots on beowulf mailing list and other parallel programming forums and sometimes academic conferences that claim to be using Java for HIGH PERFORMANCE COMPUTING. That is the worst joke of the century.
kek
 
both variables in question are private
 
Xeo
Then yes
 
1:14 PM
how annoying
 
Xeo
Why?
 
because now I have no idea why my code won't work
 
@IntermediateHacker lnice. link to downloadables?
 
turns out it was my own stupidity, as usual :P
 
hey guys
 
1:20 PM
now I need to actually try and render something
 
@DeadMG starbait
 
and then I can laugh as it fails miserably
 
@DeadMG yes
 
can someone redirect me to a good tutorial on creating types in C++? I need to create a type that can have 3 values T,F and U for a project a uni.
 
enum my_type { T, F, U };
 
1:21 PM
hey, I managed to clear the screen to black!
@FredOverflow Funny, cause I was going to say struct my_type { int T, F, U; };
depends on how you interpret the sentence, I guess
 
I thought T, F and U stood for true, false and unknown.
 
so now does each variable only have the 2 bits?
 
How many bits it uses is implementation-defined, I think.
Why is it important that it only uses 2 bits?
 
i get bonus points for using as little memory as i can
 
Then you will probably have to use bit-twiddling instead of enums.
 
1:24 PM
no point of holding a variable in an int
 
well, that's really quite pointless, but you can use a bitfield or bitset
 
Well, using a full-blown int is usually faster than bit-twiddling.
Unless you have millions of such variables and memory becomes a bottleneck.
 
around 50k
 
in an array or something?
 
yup
 
1:26 PM
Then you probably want to use an array of unsigned char and do manual bit twiddling.
 
i'll read into that
thanks
 
@TonyTheLion well... this is rather nice for java + performance:
 
I compiled a release of my program and it doesn't open outside of the debugger
it opens and it dies before the GUI appears
 
see also
 
1:28 PM
What do you mean "It doesn't open"?
 
7
Q: LMAX's disruptor pattern: is there a port to C++?

GravitasThere are open source Java and .NET versions of LMAX's Disruptor pattern, as described in the video LMAX - How to Do 100K TPS at Less than 1ms Latency. Here is more links to information on the Disruptor pattern. Is anyone aware of a port of the Disruptor pattern to C++, either finished or in bet...

 
Xeo
-1
A: RedBean: How to delete all rows from all tables

How to DeleteHowtodelete.us provides all the information How To Delete. This Find How To Delete a Facebook Account, How To Delete a Gmail Account, How to delete cydia, How to Wipe Your Phone Remotely, How to Delete Cells and Data in Excel 2010, How to delete photos from PhotoStream and more...

Spam flag please
Oh, and vote to delete
 
@Xeo done
@Xeo done
 
@Xeo: Voted to delete
 
@FredOverflow well the .exe appears in my task manager, but then it goes away again, before the GUI opens
 
1:33 PM
Then you probably have some UB in your code like uninitialized variables.
 
but why does it run under the debugger then without complaining
 
@TonyTheLion Debuggers do lots of extra initializing that isn't required of them
IT WORKS! I rendered some text! mwahaahahahahaha
 
Xeo
@DeadMG ...grats?
 
thanks
 
:) Nice one @DeadMG
 
1:46 PM
Is there any "smart" way to check is the value "in range" of enum type? I have an enum type with defined a few numbers (eg. 10, 11, 20) and I'd like to check if my int variable have one of that values from enum (10, 11, 20 in our example). I was thinking about something like "if (int_value == enum_type)", bout it isn't working.
but*
 
AFAIK there's no smart way unless they're consecutive
 
@gogowitczak: The point of enums is so you won't have to worry about checking if a value is a "valid" value
Because enums do not convert to integers implicitly
If your function accepts enums like this void Foo(MyEnum e);
Then you don't have to check if e contains a valid enum value
Yes, someone can force a integer into an enum via a cast such that you get an enum value outside the set of valid values, but that's their fault for being stupid.
 
I have two different enums (with different values in it) and I'm reading some strings from keyboard. And if that string is for example "AND" or "XOR" I have to do different action that if it's eg. "X1" or "F"
so I read that strings from keyboard and saved them as enum types in int variable. And now i have to do different action for each enum type.
 
@gogowitczak: I still don't quite understand your situation. So do you have something like a massive switch statement or something that maps keyboard input to enum values?
 
Yes I do.
 
1:54 PM
@sehe here is the complete windows 3.1 installation. Just extract it in some drive (C, D) doesn't matter. mount it with DosBox, Go into the WINDOWS directory and run WIN.exe . Windows 3.1 will start up. enjoy.
 
@gogowitczak: Then why do you need to check if the enum you get is valid?
Since you yourself is the one setting them?
@IntermediateHacker: Am I supposed to get a 404?
 
@Insilico oh shit. it's still uploading. please wait.
1 min left.
 
I'll try again in a few minutes then.
 
@ScottW It's awesome with Windows 3.1 . You can access all files with the Windows File Manager. no more cd s.
 
@Insilico if I'm having eg. "XOR", "AND" or any other operator, I have to pop values from my stack and if it's just "T" or "F", I have to push them on the stack.
 
1:58 PM
7 sec remaining...
 
@gogowitczak: Oh, so it's actually a bit more complicated than I thought
 
@Insilico okay, you're good to go. It's uploaded
 
@Insilico I'd write that in pseudocode as "if int_value is a member of enum_type", but I have no idea how to translate it into real C++ code.
i coud write if ( (int_value==ENUM_VAL1) || (int_value==ENUM_VAL2) || ... )
but it's a little bit crazy :)
 
awesome windows 3.1 runs the "alone in the dark" game.
 
usually people use an associative container that they fill out statically
 
2:05 PM
one more question guys
 
more expensive to create but quick and easy lookup
 
whats the best way to read keywords seperated by a spacebar?
 
@coolbartek istream
 
hello @gogowitczak
 
Morning.
 
2:07 PM
@coolbartek hi, turn on your Skype - we'll talk.
 
Windows 3.1 on Windows 7!
 
I hate it when tutorials don't tell you the file extensions
 
What do you need file extensions for?
 
I'm going to run Minesweeper on Windows 3.1 on DOSBox on Windows XP on Windows 7 via XP mode for shits and giggles
 
well, okay, to avoid the MSVC deprecation warnings one must define both _CRT_SECURE_NO_WARNINGS and _SCL_SECURE_NO_WARNINGS. I had only the former. But happily, now std::copy is warning-free.
 
2:14 PM
@CatPlusPlus Less of a pain to get working.
Like the programs used in tutorial require a certain extension
 
@Insilico lol.
@Insilico upload a screenshot please. wanna see if it works.
 
@CheersandhthAlf There's also _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE.
 
@CatPlusPlus thanks. i have known this at one time. but i forget/forgot
 
Aw crap I have to download the Virtual PC thing first
 
@Insilico Didn't the DosBox Windows 3.1 work?
 
2:18 PM
@IntermediateHacker: Oh, it works perfectly
 
don't know how i have avoided the warnings, though
 
But it would be hilarious to see it working on the Windows XP mode on Windows 7
 
oh, lol.
 
So I would be running it on an operating system on an operating system on an operating system on an operating system. XD
 
that's a world record.
I seem to remember there was an animated deck cover in windows 3.1 solitaire. I forgot which one was it.
found it, it's the haunted house on hill deck. the bats' wings are animated.
 
2:28 PM
I made the top-level page index automatic, set the parent to nav:start for those pages.
 
@CatPlusPlus what happened to the side panel?
 
It's been eaten by grue.
 
aww... It was cool. Now the wiki looks similar to the gnu website
 
@IntermediateHacker A person is not a Seasoned Professional if said "professional" includes iostream.h instead of iostream. Or apparently has forgotten to qualify cout with std::.
 
Or a very seasoned professional.
 
2:35 PM
apparently, Guru Hackers just use the terminal to do stuff.
anyway, why is there a (do you remember?) after New Manager ?
 
hmmm
does anyone remember what time I went to sleep yesterday?
 
After 2AM GMT+1.
 
does anyone remember who I slept with yesterday?
 
@CatPlusPlus No, that's today, and I haven't slept yet :P
 
2:39 PM
anyway, I'm pretty sure that I only woke up at ... 20:30 or so, which must make it 18 hours awake
making progress to hit the sack now then
 
I heard the brain cells start prematurely aging and degenerating if you are too much sleep deprived.
 
@IntermediateHacker: My bigger problem is the fact that my brain appears to be on a completely different time zone from everyone else
 
@Insilico Common for young people.
there's a reason that a bunch of Europeans in this room are active at 5am
 
Am I the only one who sleeps at night?
Guess sleeping is an obsolete concept only followed nowadays by us primitive arabs. :(
 
@ScottW: No, considering I also reside in the States
 
user406009
2:48 PM
I thought the poll said there were at least 6 Americans.
 
California
 
user406009
California here too.
 
@ScottW according to the poll there are at least 5-6 americans here. (29%)
 
My "day" started at about 11:00 PM yesterday
I did
it was called spring break
 
user406009
Is there any way to have a map of strings to multiple argument std::functions?
 
Als
2:54 PM
The comments to this answer needs a little love, can someone provide it please:
1
A: C++ byte const* write to file

Boris StrandjevThe pointer shows that C solution will be more appropriate: FILE * videoFile; byte buffer*; //you already received it int buffer_len; // you receive that too videoFile = fopen ( "myvideo.mp4" , "wb" ); fwrite (buffer , 1 , buffer_len , videoFile); fclose (videoFile);

 
user406009
I am thinking a better design than my switch(id) { case 0: callFirstCallback(1); break; case 1: callSecondCallback(2,5)} would be hasMap[id]()
 
Oh shit. I forgot to revise Radioactive Decay. Gotta go study now. :'(
in Tavern on the Meta on Meta Stack Overflow Chat, 12 hours ago, by Tim Stone
It's OK @YiJiang, I get confused for Tim Post all the time. People also tend to think I'm an employee. Clearly I'm a master of disguises.
lol... poor guy's got a name similar to a meta-cop.
 
anyway, how do I post tags here?
for example the c++ tag?
 
[tag:c++]
 
AWESOME!!!
 
Windows 3.1 on DOSBox on Windows XP on Windows 7
The mouse is actually completely screwy in Windows XP mode I'm afraid
Navigated via the keyboard in the Windows 3.1 environment
 
@Insilico did you install Windows XP from a CD?
 
There's this thing called Windows XP mode for Windows 7 Professional and Enterprise
Essentially a copy of Windows XP running on a VM
 
3:10 PM
I wonder if I can do Windows 7 -> Windows XP on Virtual PC -> Windows 98 on Virtual PC -> Windows 3.1 on DosBox -> MS-DOS Prompt on Windows 3.1
 
The mouse is really screwy in Windows 3.1 on DOSBox on Windows XP mode
So it's not that much fun :-/
But it is essentially Inception implemented on a Windows machine. :-P
 
@Insilico this is irrelevant but you are using Internet Explorer ??? Aww. come on! Chrome? Firefox? Anything?
 
@IntermediateHacker: Hell, I just downloaded Windows XP Mode a few minutes ago
@ScottW: Their release schedule is completely wack now
They're on version 10 and apparently I'm "only" on version 7 even though I swear it's only about a few months old
 
user784668
@Insilico Firefox has no release schedule.
 
It does. Every 6 weeks.
If there's a browser without release schedule, it's Chrome.
 
3:24 PM
Anyone know why CMake's ADD_CUSTOM_COMMAND wouldn't work?
 
user784668
@Pubby Because cmake sucks.
 
We can guess, or we can see the code.
You know, like usual.
 
Let me paste it
All I want to do is compile some scheme files into c ones
 
What does it generate?
 
The CMake/make doesn't do anything
 
3:29 PM
I'm not sure if you can do it this way, with CMake being declarative and all.
 
What do you mean?
I took the example from code that ran gzip on some files
 
Dunno then.
 
3:49 PM
Got it to work so far. Had to add dependencies
 
7
Q: Why is RVO disallowed when returning a parameter?

valentin.mileaIt's stated in [C++11: 12.8/31] : This elision of copy/move operations, called copy elision, is permitted [...] : — in a return statement in a function with a class return type, when the expression is the name of a non-volatile automatic object (other than a function or catch-clause para...

 
4:09 PM
hm, i think i'll just stay out of that debate :-)
why do i get "(released 1970-01-01)" in the lounge wiki projects?
well i know that date, it's the start date for time_t (or whatever it's called), e.g. the date-time that value 0 maps to, but why do i get that?
 
Something must be in that field, or the [[date]] thing breaks.
 
@CheersandhthAlf odd. I'm not sure where exactly you're seeing that, but I see (released 1969-12-31) for AHodgePodgeWinApiAndOpenCvProgram.
 
So I put 0 for those that didn't have anything.
The form will now reject the empty field.
 
user784668
@jweyrich Timezone issue.
 
I'd do an if or something, but Wikidot doesn't have anything like that.
 
4:20 PM
Odd, I still see "(released 1970-01-01)" after refreshing. Must be a cache somewhere.
Or that value 0 is treated as +0 in my Firefox, and as -0 (infinitesimally before midnight) in your browser?
 
user784668
@jweyrich You in Brazil are several hours behind UTC.
 
@Fanael Few hours actually. GMT-3. But yeah, that explains the diff.
 
No, that's timestamp "0" offset by your timezone.
 
Make the troll go away!!! stackoverflow.com/questions/9445360/…
or, rather, person with little rep saying weird stuff in a pointless discussion that helps absolutely no one.
 
Is it possible to see how much rep you've gained in a specific tag?
 
4:34 PM
It's on the profile page, next to tag names.
x10.
Dunno.
 
user784668
@CatPlusPlus At least x10.
 
There's probably some query on Data Overflow to get exact rep per tag.
 
On my page it says
1k c++ × 535
what is the 1k
 
user784668
@SethCarnegie 1000+
 
@Fanael 1000+ what
and what is 535 being multiplied by
C++?
I think multiplying C++ by 535 is undefined behaviour
 
user784668
4:38 PM
@SethCarnegie Upvotes - downvotes.
 
user784668
@SethCarnegie It's the number of answers.
 
user784668
5:01 PM
Darn, what should be written to get a oneboxed comment?
 
SO comments aren't oneboxed.
 
user784668
Oh, I thought they were.
 
5:55 PM
@SethCarnegie Type error :)
What does "oneboxed" mean?
 

« first day (497 days earlier)      last day (4469 days later) »