« first day (412 days earlier)      last day (4536 days later) » 

7:00 PM
yep
 
@Tony The Lion yes
 
so why does it not on my machine, grrrr
pisses me off so much
should be easy and it's complicated
 
is the file being created?
 
@Tony The Lion, yea, and if it is whats it's location?
 
just the dir of the app
 
7:01 PM
if you're using Visual Studio check the .exe directory and the solution & project directories
 
but it has to create the file though
cause the file doesn't exist
 
append mode will create the file for sure if it doesn't exist... and just open it if it does
 
ok, it created the file and wrote nothing
:(
 
@Tony The Lion, it's a stream, flush it , then close the file (technically closing the file should flush it, but call flush on it just in case)
 
good
it worked
:)
 
7:05 PM
@Tony The Lion :)
 
odd that it wasn't flushing when the object went out of scope
 
@Praetorian, :-?? sometimes for some reason it does that , especially if the stream code is all in main(), if it's in a seperate function that exits before the end of main it usually dosen't do that
@Praetorian IOW i havent debugged into it to find out why:)
@Praetorian could have something to do with it running in the debugger it's self:-?
 
7:20 PM
anybody any idea if with a simple resetevent I can wake up multiple threads at the same time?
or should I use a semaphore
I have to have some threads which execute some code, and then all wait on a single event, to then start again when all threads are finished. But I need them to wake up at the same time, in as far as that is possible
 
@johnathon the big one in the middle....
 
@TonyTheLion that sounds like a join()?
 
oh yea
 
9 hours ago, by Pubby
(╯°□°)╯︵ ┻━lɐnʇɹıʌ━┻
Error : Caught unknown exception
 
@Xeo Never heard of TYPE-MOON before. I've seen Fate/Stay Night and Kara no kyoukai though..
@Xaade You are supposed to throw exceptions, not flip them.
 
7:38 PM
@StackedCrooked Two face doesn't throw exceptions, he flips them!
 
LOL
why is that an option?
 
I think table flipping should be the idiomatic way for error handling in lolcode.
 
yo buddies, I'm 150 years ol
 
I don't know, can't see it.
 
Xeo
@StackedCrooked TYPE-MOON is the studio behind those two and more
More specifically, behind the Visual Novels
But atleast you know F/SN. Without knowing anything from TYPE-MOON, watching Carnival Phantasm would be pretty useless
Though, I'd be even better if you'd also have seen (or better, played) Tsukihime
 
7:42 PM
@StackedCrooked Warning Unhandled Table. Please flip.
 
Xeo
As F/SN and Tsukihime are the two big parties in Carnival Phantasm
 
@Xeo I'll definitely have a look at that.
Btw I noticed Fate/Zero is being very highly rated on MAL atm.
 
int main() {try { stuff(); } if-rage { /* handle table */ } return 0;}
stuff() { flip new table("virtual methods are codesmell"); }
 
In ruby you'd write table.flip!
 
RAEG
 
Xeo
7:46 PM
@StackedCrooked It's awesome. Like cookies with cream. And milk. And honey. And a santa on top of it.
 
@Xeo lame. Why make people read a manga to watch an anime. I watch an anime for the short version of the story.
 
Xeo
@Xaade oO
 
@Xaade Why would you shorten the fun?
 
Xeo
TYPE-MOON is a company, not a manga. Never did I say anything about a manga
 
You might as well read the synopsis then.
 
Xeo
7:48 PM
Also, Carnival Phantasm is the anime made for the anniversary of TYPE-MOON
 
@StackedCrooked I do that too.
 
Xeo
so it specifically is made for the fans who know the rest of the TYPE-MOON universe
 
it's made for your mother!
 
@Xeo I suspect that quickly. Luckily I've seen FSN and the movie also.
 
What's happening?
 
7:49 PM
@ManofOneWay Belgium is getting a new government.
 
@StackedCrooked why? regular election or some scandal? =)
 
@ManofOneWay You're kind of late to the party aren't you?
 
1
Q: Cannot remove files on Windows

DeadMGI've got some files that I wish to delete. They are on a local hard drive. This hard drive has never been near any other operating system. I am the administrator, and the only administrator, for this machine, and every other machine this hard drive has been in. There have never even been any othe...

> Now it says I need permission from myself. WTF is wrong with this thing?
:(
 
Xeo
@StackedCrooked Sadly, the TV Series of F/SN just doesn't do the game justice. It mixes all three routes, and isn't very good at that either.
 
@StackedCrooked Yes, sorry to say, I don't know much about the belgian government
 
Xeo
7:53 PM
Luckily, the movie is awesome and completely follows the route it's named after
 
@Xeo The game has different routes? That would explain the plot differences between the series and the movie.
 
Xeo
@StackedCrooked Yep. 3 routes, 3 different storylines
TV series mixes them all, Unlimited Blade Works is the second route.
 
@ManofOneWay The elections were 537 days ago but all negotiations for forming a new gov failed until now.
@Xeo It all makes much more sense now.
 
@DeadMG Time to switch from Windows ;)
 
haha, yeah
then I'd have to waste my life configuring and making everything
and then it'd still be a command-line tool and suck
 
Xeo
7:57 PM
Ugh. Opening my advent calendar's door for today kinda urges me to open all the other ones as well...
Bad habit, go away!
 
Advent? That brings me back to elementary school.
 
Xeo
Heh
 
@DeadMG Since you don't like Mac, I guess we shouldn't go into discussion about this =)
 
I just did something evil. I used Google Code subversion as means for online storage.
Only reading, not writing.
 
8:32 PM
@DeadMG thats the uac , the files on the system probably belonged to another version of windows
, and as such have a different OWNER , so the permissions on deletion/modification of the file are to the owner not you, however your account probably has read/execute access. In windows 7, as im sure your aware, defaults to a non administrator account login, thus decreasing the damage that a virus / worm can do to the os. So to preform administration tasks, you have to grant administration privileges to the task via the UAC.
 
I am an administrator account, I turned off UAC, and I already set the owner to myself
 
@DeadMG yet the uac is still requesting your authorization to delete a file?
 
yeah
 
are you using an elevated command prompt
 
@DeadMG makes one think that the UAC isen't completely turned off
 
8:34 PM
if not, then facepalm yourself at least 3 times, hard
 
just using windows explorer
why would I command prompt anything on Windows?
 
in my answer i adviced you to use an elevated command prompt
what is the point of asking if you're not following the advice
you're just wasting our time then
 
but it clearly states that I need permission from myself to delete it
 
@DeadMG for setting attributes, which you cant fully do in explorer
 
@DeadMG because that is what 1337 people do
 
8:35 PM
I don't even know how to navigate to the folder in the command prompt
or what the command is for deleting it
 
@DeadMG , cd path
@DeadMG delete file
 
hold down shift, right click the folder, select "Open command window here"
 
it's on another hard drive
and the system won't accept the drive name as a cd argument
 
@DeadMG the dirve letter and a colon, such as H:
 
@AlfPSteinbach Does not accept "delete folder" as a command
@johnathon Nope, still at C:\
 
8:37 PM
@DeadMG how about using the command for deleting folders
 
oh, har har
thank you very much for suggesting it
 
Xeo
@DeadMG cd /d G:\
 
it's "rd"
or "rmdir"
 
I guess I forgot my massive, extensive knowledge
 
add options /s
 
8:38 PM
neither of them will remove it because it's not empty
 
@DeadMG no, you just forgot DOS, which most of us wish we could i'm sure, though few will admit it :))
 
add option /s
 
access is denied
 
@DeadMG did you run cmd as an administrator?
 
make sure that no processes are holding files open
@johnathon yes it sounds as if he's got that right now
 
8:39 PM
that too!
 
yes, I did run it as an administrator
 
it might help to close all explorer windows
 
@DeadMG , yea, if you still have the folder / directory open in explorer, close it
 
and even kill explorer
you can always start explorer again by command explorer
 
no change
 
8:41 PM
@DeadMG try, attrib -s -h "foldername" /S /D
 
Xeo
Damn. Again that problem C:\Program Files\Microsoft Visual Studio 10.0\VC\include\cmath(19): error C2039: 'acosf' : is not a member of 'global namespace''`
 
@DeadMG then try the delete
 
@johnathon Access denied.
 
@Xeo include math.h not cmath :-)
or include both
 
@DeadMG theres some process that's attached to the folder/file still
 
8:42 PM
I've got Process Explorer open
 
Xeo
@AlfPSteinbach I ain't even including cmath myself. :(
 
but not sure how to use it to look for said processes
 
@Xeo then it might help to include math.h before the ungood headers
 
@DeadMG if you was on linux i could tell ya :)) on windows i've not really had this issue (not knowing which process has hold of a file) , so i'd have to dig around myself
 
Xeo
It's through <iostream> -> <istream> -> <ostream> -> <ios> -> <xlocnum> -> <cmath>
@AlfPSteinbach Tried that as the first line, no change
 
8:44 PM
you can use openfiles to get a list of open files with process names
 
@Xeo your not suppostd to inlcude anything that begins with x in the std
 
No shared open files found.
 
@Xeo, unless your referring to istream dragging it in
 
Xeo
@johnathon I don't. I just posted the include order in my std lib
 
@Xeo gotcha
@DeadMG run a plain attrib on the folder, and paiste bin the results
@everyone no one pick on my spelling!!!!
<waits for it>
 
8:46 PM
@Xeo i googled to no avail. perhaps it's picking up some user defined math.h?
 
@Xeo , i wonder which line of code your using thats causing it to explode
 
it just gave back the filepath
 
Xeo
@johnathon #include <iostream> :P
 
@DeadMG im sorry, i ment a plain attrib, no folder path or any switches
#Xeo, lol, what other headers are you including before iostream?
 
attrib on it's own?
just gives back "File not found"
 
8:47 PM
@DeadMG yes
@DeadMG .. back out of the folder to the root of the drive
 
Xeo
@johnathon #include <string>, which btw also includes istream -> ostream -> etc
 
@Xeo for kicks and giggles have you tried including string after you include iostream?
 
Xeo
@AlfPSteinbach D'oh, I found that out some time ago, fixed it, and forgot it again. Thanks, yes, that's the problem
 
@alf way to go
 
Xeo
Include path: $(ProjectDir)\include and I got a Math.h in my include dir..
 
8:49 PM
1
A: cmath.h and compile errors

Alexandre JasminI'm not sure I read your question correctly but it seems odd that a library would ship it's own math.h file. Perhaps you are suppose to put the parent directory in your include path so that <my_lib/math.h> can be included without conflicting with your compiler <math.h>?

 
doesn't give any results for any of the files or folders in question
 
Xeo
Meh, C/C++ include system sucks.
 
@DeadMG that's odd, because it should list all the directories and files on the drive with a 2 letter designation of their attributes
 
nope, only the contents of the drive folder, no subfolders
 
Combining policy-based classes with CRTP seems like a fun idea: class Hello : Policy<Hello> {} // optional template specialization.
 
Xeo
8:50 PM
Or at least the search done by MSVC is quirky. It's picking up my user defined path in the system headers, which is a bit annoying.
 
@DeadMG im at a loss then
 
Xeo
Still, the include system is the root of the evil
 
well, nothing anyone else has suggested has worked, either
 
@Xeo, sure you haven't added a custom include path to the includes of vc?
 
I'm going to look into that Local System access mentioned by some guy in the comments
 
8:51 PM
@Xeo uhm, there is some documentation of what is searched first and last. i forget. i answered a question about it here on SO, and I remember how I did that: just pressed F1 in the project settings dialog... :-)
 
Xeo
@johnathon I did, and that's being picked up while parsing the standard headers. It's because I "inherit from the project defaults", which automatically places the C++ standard headers after my user defined header paths
Which sucks.
And the evil at the root of it is the include system.
 
@Xeo, if im not mistaken you can go into the project properties and change the order of the search for includes
 
Xeo
@johnathon Yeah, but not if I inherit the stdlib path from the project defaults. It's automatically put after my defined paths
 
@Xeo , is your linker subsystem set to native, console, or windows?
 
Xeo
So, $(VCInstallDir)include is put after $(ProjectDir)\include
To change that, I'd have to take the tick out of Inherit from blabla and manually add the stdlib path
 
8:55 PM
@Xeo, :-?? dunno man, but if it was me i'd rename that custom math.h
 
Xeo
I just removed it, strangly it didn't contain anything
 
@Xeo, then problem should be solved.
 
Xeo
It is
 
@Xeo rejoice!
 
> The best thing about UDP jokes is that I don’t care if you get them or not.
 
9:07 PM
Why does typeid(T).name() add garbage to the class name?
 
Xeo
Because the name is implementation defined
 
@StackedCrooked it doesn't. but g++ uses mangling, while visual c++ gives you cleartext name
with g++ you can use an internal demangler
just google it
10
Q: Unmangling the result of std::type_info::name

terminusI'm currently working on some logging code that supposed to - among other things - print information about the calling function. This should be relatively easy, standard C++ has a type_info class. This contains the name of the typeid'd class/function/etc. but it's mangled. It's not very usefull. ...

 
believe there's a cmd tool that'll unmagle a vc name, think it's undecroate or something of the like
 
Xeo
undname or something like that
 
@Xeo yea
 
9:13 PM
@johnathon yes but that's for linker level names. visual c++ typeid does not give mangled name
 
@Alf P. yea, im aware. Though i diden't know that gcc would mangle the return of typeid(T).name()
@Alp P. at runtime
@Alf P, i don't use gcc often
 
9:57 PM
@johnathon undname, I think
 
@DeadMG it is
@DeadMG you get your folders deleted?
 
yes
that Unlocker program someone linked on SuperUser worked
 
shitz. egypt will end up as a religious mess it seems xD
just like saudia arabia
 
// How can I RAII this?
std::string GetStringFromCAPI() {
    int status;
    const char * c = get_string_from_c_api(&status); // user must free the result
    if (!is_valid_status(status)) { throw invalid_status(status); } // leak
    std::string result(c);
    free(c);
    return result;
}
 
@JohannesSchaublitb Long live democracy :)
 
10:03 PM
@StackedCrooked Usually, if they return failure, then there was never any result to free
 
i thought if it'S religious then it's theocracy
 
@DeadMG I was also thinking that.
@AlfPSteinbach Btw thanks for that, it's very useful.
 
but
if you have to, then use unique_ptr
that's what it's for
 
Xeo
Okaaay, I got a problem. Seems like the graphics card I purchased a week ago is broken... No signal is sent to the monitor, and if I connect the monitor to the onboard card, my resolution settings show a second, unidentified monitor that apperently is connected.
 
argh. when i opened a "console" in VLC mediaplayer, and closed that console window, VLC decided to exit and forget my playlist. Is there any reasonable mediaplayer out there, for Windows? I mean WinAmp does not any longer know how to play things (it's dead software, but I still use for radio)=
 
10:11 PM
I use iTunes personally
 
Xeo
@AlfPSteinbach Media Player Classic is actually pretty nice. Still, iTunes for me, as I have an iPod Touch, so that just goes hand in hand.
 
@Xeo yeah, I use MPC too
 
Xeo
So, anybody got any idea on how to fix my graphics card? :D
 
what's wrong with it?
 
Xeo
See my 3rd last message
 
10:16 PM
ah, there
try putting it in another computer and see if it works there. Unless it works there, return it and get it replaced
 
Xeo
The thing is, it worked like 10 minutes ago, when my PC suddenly froze and I had to do a reset. :(
could be connected
 
there is a virus that attacks graphics cards
andrew koenig had it
it's the problem with too "intelligent" peripherals and components, they can be pwnd
 
Xeo
@AlfPSteinbach I don't know where I could possible have gotten that
 
10:30 PM
what's that
 
prof. werner gitt talking bullshit and a teenager commenting
in a nerdy way
 
must look when SRV finishes
 
the teenager's arguments sometimes aren't quite like it actually is, but much saner than the bullshit that guy in the video says
 
they talking Derrick language!
 
10:36 PM
i failed my german course in secondary school or was it high school
everybody thought that was strange since german is so logical
 
he wrote many german and some international books all containing bullshit
(the guy in the video)
"Uses logic and scientific evidence to effectively demonstrate the necessity of a Creator." xD
 
the only thing i retained from that was an old wwii song i think, zee mann las das traume, denk nicht an zu heim or something like that, i can remember the melody
@JohannesSchaublitb he he he's crazy
Better version, with "Mars Attacks!" sound effects:
 
sbi
> There's more to this world than the 2 sides of your pond. There are "members of the public" who are offended by anything you can think of. There's cultures that do not allow women to watch sport, those which despise mentioning "alcohol" in public, and those which disapprove of us "unbelievers" (from the POV of their religion) to publicly post our thoughts. Contrary to popular believe, Right Or Wrong™ is no universal truth, but a cultural artifact.
> This is an international site, open to the world, with all its cultures. Be tolerantsbi
I hate those self-righteous "this is offensive to me, so it must be objectively offensive" screamers. They are so offensive.
 
heh
 
10:52 PM
Wenn wir schon bei deutschen Videos sind..
 
i don't understand german, or is it called deutcsh? anyway
 
Meh does anybody else here use topcoder? I can login, but it crashes when I try to enter a practice room and I have no idea why..
 
^maybe safe for work. anyway. was first recorded by les paul, who was guilty of inventing modern electric guitars (iirc).
 
Xeo
@AlfPSteinbach Oh my gosh! A video I can watch!
 
it's dumb to discuss if heaven exist. one can just go outside and look up. there are lots of stars on the inside.
@Nils i think the "100% proof that god exists" video has at times quite catchy music
 
sbi
@AlfPSteinbach That's the sky, though, not heaven. (Yeah, translates to the same word in German, too.)
 
@sbi he he, they're crystal spheres, and there are seven of them
the 7th is the so called "7th heaven"
 
sbi
@AlfPSteinbach Why do I suddenly have the feeling that you are notably older than me? :)
 
Xeo
Heeeeey, my graphics card works again! I have no idea how, but it does.
 
11:18 PM
@Xeo was it overheating?
 
Xeo
No, it was pretty cool to the touch, no heat.
 
@Xeo is it warm now?
 
Xeo
I don't dare moving my PC to check the heat, and prior to restarting I uninstalled the AMD Vision Catalyst. :P So no way to check, but it doesn't have to do with heat.
 
@Xeo you said the magic word, AMD
 
Xeo
It's passively cooled and a low-profile card at that
 
11:20 PM
@Xeo always prefer nvidia for graphics. just ... trust me.. ESPECIALLY if you intend to use linux
@Xeo , it's not so much better hardware or anything hardware related for me, it's the fact that nvidia has better drivers.
@Xeo have you checked out C++ AMP yet?
 
Xeo
I watched the talk by Herb, but nothing more yet
 
@Xeo well, i forget the guys' name , but there was another vid from build about it, where a guy goes into decent detail on how to use it, and , as well, kate gregory blogged on how to use it as well. If im not mistaken she's also due to release a book about it :)
 
Xeo
Hm. When using typeid, address equality implies type_info equality, right?
 
11:39 PM
@Xeo yes
because returned type_info object lifetime is the whole program
 
Xeo
That's what I thought, thanks
 
but you need to take care when using .so files. using hidden visibility can cause this assumption to fail
dunno about DLLs but I believe they by default use hidden visibility so they would not work with this
 
Xeo
Oh, while you're here, is there any way to check if a certain template has been instantiated? I know you were on to something in that regard...
 
Xeo
I tried with friend functions, but nothing working yet
 
11:45 PM
Anyone here with Linux sockets experience?
 
:)>-
 
anyone else here?
 
Xeo
@JohannesSchaublitb Okay, nvm, got it working :)
 

« first day (412 days earlier)      last day (4536 days later) »