« first day (669 days earlier)      last day (4279 days later) » 

8:00 PM
At least all the HPC stuff is headed in the right direction. (namely SSE)
 
8:10 PM
Man, that balloonicorn is awesome.
I'm getting a lot of stares from my coworkers though.
 
I can't uninstall the VS11 RC. god I love microsoft
 
@melak47 not a bug, a feature, of course.
 
So if I'm running VS10 Pro, purchased about 6 months ago, can I get a free upgrade to VS11 Pro?
Can't find any upgrade edition downloads on the website
 
Ell
ahh dafuq!? interactive ruby and the console have intertwined themselves!
C:\Users\Ell\Programming\Ruby>cls
NameError: undefined local variable or method 'cls' for main:Object
 
trying to uninstall the individual crap...
 
8:22 PM
Good job breaking it.
SQL Server is notorious for never uninstalling properly.
The solution is to not install it in the first place.
 
it's the 2008 one. I didn't even know I had this
 
I've pretty much decided that from now on, the only way to install VS is in a dedicated VM, so when (not if) it gets mucked up, it's easy to throw out and start over. Sad, but such a mess there seems to be little reasonable alternative.
 
@melak47 Format your disk!
 
@melak47 it comes with visual studio, afaik
 
oh come on, I can't uninstall some crap because it uninstalled .Net
 
8:26 PM
@melak47 Breaking news: Windows Installer is broken
I'm sure that'll come as a shock to everyone who's ever tried installing or uninstalling anything on Windows
 
@jalf The installer sort of works; it's uninstallation that's a complete nightmare.
 
I could just install VS11 over the RC, but that's just begging for trouble...
 
Does this code throw? if (true) ;
(Does C++ have an empty statement?)
 
@JerryCoffin It's the same software.
Windows Installer is a mess, but you mostly notice it on uninstall
@ŠimeVidas why (and what) would it throw?
 
Ell
man this ruby pokédex thing looks horrible
 
8:37 PM
@jalf A syntax error.
 
Ell
It's a hash up of regex's and xpaths
 
Is it valid syntax, or does it throw a syntax error?
 
Do you think I should wait for C++ Primer 5th edition to come out on pdf or should I just continue reading 4th edition?(complete beginner)
 
@ŠimeVidas syntax errors do not throw
@JosephPotts just keep reading it. You can learn the differences later
 
@JosephPotts earlier someone told you to wait. apparently not the answer you were looking for? :p
 
8:39 PM
@ŠimeVidas You may get a compiler warning about using a constant in a conditional expression. Other than that, it'll compile
 
Ell
Ughh oh "You are running low on disk space"
 
Well one person told me to
 
@jalf I tried to uninstall visual studio 2003 once. After 8 hours I just killed the process.
 
I'm collecting opinions to judge =p
& I haven't really started reading any
 
Ell
"Per user queued Windows Error Reports" - 4.39 GB
 
8:40 PM
@MooingDuck I suppose was gonna reinstall win7 sooner or later anyway :(
 
@MooingDuck I'm a JavaScript programmer. In JavaScript, the interpreter throws a syntax error if the source code is syntactically invalid. I don't know how it works in C++...
 
@Ell hahaha, what
 
@Prætorian Aha, so it compiles... How is the ; interpreted? As an empty statement?
 
@ŠimeVidas C++ has compiler errors for sytax problems. At compile time. exceptions are thrown at run time.
 
Ell
Ahh 1.17GB free left on C:
Time for some cleaning :L
 
8:40 PM
@ŠimeVidas it just doesn't do anything
 
@MooingDuck I see, thanks.
 
warning C4127: conditional expression is constant
warning C4390: ';' : empty controlled statement found; is this the intent?
@ŠimeVidas I get those warnings
 
@Prætorian Aha, so it's called "empty controlled statement". I see.
 
@ŠimeVidas I don't know if that's the term the language uses, that's just Visual Studio's warning for it
 
(I'm researching which programming languages have a ; empty statement. So far, I got: JavaScript, Java, C#, VB, PHP, C++.)
 
8:43 PM
@ŠimeVidas basically then, the relevant point is that C++ checks the syntax and many semantics at compile time, and only "throws" exceptions at run time.
@ŠimeVidas C
 
Got it :)
 
@ŠimeVidas actually, that's going to be a subset of the semicolon languages
 
@R.MartinhoFernandes @MooingDuck ohh I know why Dreamspark is so slow - Win8 RTM is supposed to be released there today as well :)
 
@jalf It sort of looks that way from the outside, but it's not usually true. In reality, the installer program generally creates an uninstall program as part of the installation process. If it were the same software, that would probably cure quite a few problems. Most problems arise because the uninstall program is generated largely assuming LIFO installation, ignoring the possibility (certainty) that something else will be installed after this program, but not uninstalled when this one is.
 
Ell
what to call a function that turns "½" into 0.5? fraction_char_to_float?
 
8:45 PM
I know I've seen a list of semicolon delimited languages, but I can't find one now
 
@Ell if (x == '½') return 0.5f? :S
 
Unicode assigns character properties to each code point. These properties can be used to handle "characters" (code points) in processes, like in line-breaking, script direction right-to-left or applying controls. Slightly inconsequently, some "character properties" are also defined for code points that have no character assigned, and code points that are labeled like "". The character properties are described in Standard Annex #44. Properties have levels of forcefulness: normative, informative, contributory, or provisional. For practical reasons, a character property can be assigned by spe...
 
@ŠimeVidas Hmmm...seems like C should be on that list. Probably also Algol, though I don't remember for sure. [Edit: oops just noticed that @MooingDuck already mentioned C. sorry].
 
@Ell I would guess get_numeric_value
 
Ell
right okay
 
8:47 PM
@Ell And what if it's not representable in binary? (like 0.1f) :P
 
@Mysticial accurately*
 
Ell
then tough luck for me :D
 
@Mysticial there's no .1 char that I know of :P (but the point stands)
 
lol... googling for "0.1f" turns up that denormal question as the first hit.
 
Ell
In fact, I'm using ruby so I'll just monkey patch the string class and add an exception with the ½ in the .to_f method :D
 
8:49 PM
googling 0.1 turns up a bunch of ip address crap
 
@Ell What about the other number characters? ¾ ௰ 六 ① ¹ Ⅹ
 
Is there a 1/10 character?
 
Ell
mehh I don't need those :D
oh wait, turns out i do need the 1/4
 
Xeo
六 - aint that the Kanji for "6"?
 
@Mysticial tlt.its.psu.edu/suggestions/international/bylanguage/… don't see one on this table, but maybe
@Xeo yes
 
8:51 PM
@Xeo yes
 
Xeo
He, playing Mahjong all week long with Japanese tile faces (no arabic helper numbers) is finally paying off!
 
I see ⅙
and ⅕
 
2
Q: Converting unicode fraction characters (vulgar fractions) to decimals in Excel 2003

spikeI'm trying to convert the following text to a decimal number in excel 2003: "93⅛" The output should be: 93.125 I've gotten this to work with ¼, ½, ¾ by using the Replace function in VBA: For example, this works: cur_cell = Replace(cur_cell, "½", " 1/2") However, the ⅛ and family characters ...

 
I love how they're called "vulgar".
 
8:57 PM
@JerryCoffin http://en.wikipedia.org/wiki/Windows_Installer is the lump of code responsible for installation and uninstallation, and most/all third-party installers are just front-ends for that. I was referring to the Windows Installer component, and not the specific use of it in SQL Server 2008 :)
 
There's a subreddit for an Anime series? geez...
 
There are many subreddits.
But not all of them become the subreddit of the day :P
 
I'll just try installing over it. Can't break it much more I think :)
 
9:18 PM
Attempt at writing Mutex class that asserts on inconsistent lock orderings.
Wrote it a while ago and forgot about. Should give it a serious try.
 
Deliberately naming hundreds of variables as "class" in a C99 Library, and often following it with a troll comment like /* Sorry, C++ compilers! ;) */. Damn, I hate those C fan-boys.
6
 
@ApprenticeHacker ctrl+H
 
Well, we got them back by having GCC use C++ as its primary language for development. What is more humiliating to the C programmer than to find out that his C compiler is no longer written in C. :P
 
@StackedCrooked lol.
@MooingDuck Just some GTK+ Image viewer widget library I found somewhere.
 
well crap. VS 2012 installed...though it said the setup failed...and it's broken. yaay
 
9:23 PM
@melak47 :(
it's kinda irksome that if I make a copy of a java file in the same directory as the original, my project fails to build. (OMG class XYZ found in file named copy_of_XYZ!)
 
@ApprenticeHacker less so if you've seen the videos
@StackedCrooked heh
 
Decision matrices may be useful for making design decisions. It provides a way to have low priority, but not entirely unimportant, things like Intellisense-friendliness to influence the result. (It's simply a criteria with rather low weight.)
 
making a call to my MFC DLL to get the status of one of the nodes in a linked list. Upon calling my Status( int mailboxID ), the first thing I do is AFX_MANAGE_STATE(AfxGetStaticModuleState()). I ran my VS performance profiler and that line is using 13.4 percent CPU. Is there anything I can do to lower the %?
 
9:47 PM
@klut cache the state. OS calls have a larger than normal overhead, and if the rest of your app is simple and you make lots of OS calls, that's normal.
 
Peer-to-peer file sharing, heavy emailing and chatting online, and a tendency to quickly switch between multiple websites and other online resources all predict a greater propensity to experience symptoms of depression.
Dammit! :D
 
@StackedCrooked correlation is not causation. Could be depression causes file sharing :D
 
Ah. Back to reddit then.
 
@ApprenticeHacker wow that meme is amazing
 
Xeo
@StackedCrooked Ain't that more like symptoms of boredom?
 
9:49 PM
@ApprenticeHacker I recently saw a youtube of her. She isn't scary there. It's just that one pic.
@Xeo I guess. Boredom. Lack of attention..
 
she's pretty hot
 
Kinda.
 
@MooingDuck thanks. this was existing code before I started the position, and I don't know MFC C++ that well, what could I google to understand how to cache the state? (I made several hundred calls to this Status function, I'm using the DLL for communication means)
@MooingDuck but Status is the only place its causing problems even though I make the same AFX calls in my other DLL functions.
 
Sword Art Online isn't as exciting as I was hoping it would be.
 
Xeo
I like how the Light Novel finishes the "Sword Art Online" game part in the first book (which is ~180 pages)
 
9:53 PM
I make a Transmit call, check the Status, then Receive all the same number of times, which all reside in my DLL
 
@Xeo Ah, there's a non-game part to the story as well? Interesting..
 
@klut by caching the state, I basically mean only call AfxGetStaticModuleState() when you absolutely have to, and only call AFX_MANAGE_STATE() when you absolutely have to. Or maybe all your program needs is Sleep, I dunno.
 
Xeo
Then book 2 has a ton of mini-/sidestories, where the author says "you may read them, but you don't have to"
guess what, you do need to to understand where suddenly that character comes from
or why those two arch-rivals are suddenly best friends
in book 1
 
No spoilers pls! :)
I'm just watching the anime right now :)
 
Xeo
I haven't read it myself, but a buddy reading it told me that
 
9:57 PM
yeah, it would need the StaticModuleState because its possible that I add another mailbox (or node) along the line, and I do access a counter variable that controls a loop. Do you link it would just be smarter to use a managed class nowadays... this DLL is 12 years old hah.
 
@klut if it's 12 years old, does it really need changing?
 
Ell
Anyone watch tim and eric? Hilarious xD youtube.com/watch?v=pa6rNzq4AH0&feature=plcp
 
yes, because I can't have this:
i.imgur.com/K4nLa.jpg
It was never a problem in the older technologies because all they worried about was connecting to one device... now I want to connect to 2,3,4,10 of them
 
Xeo
Oh btw, who was it that watched Mindcrack Ultra Hardcore? @StackedCrooked? @thecoshman?
 
Doesn't ring a bell.
 
Xeo
10:02 PM
Must've been thecoshman then. Too bad he's already out of autocomplete :/
 
@klut why are you changing the state so much (still researching what the "state" is)
 
Cool, I just learned about ctrl-o and ctrl-i in Vim.
 
@MooingDuck by "state" does that mean, the variables within the DLL?
 
@klut it seems to be the globals yes. Why are you replacing the globals every time you call that function? No wonder it takes a lot of time!
 
10:12 PM
so only if I'm accessing "extern" variables is when I should be calling AFX_MANAGE_STATE?
 
@klut I don't know, I'm reading about the state but it doesn't make much sense to me. It does say that switching "state" should be fast. It seems to be effectively a pointer to your copy of the globals.
@klut MSDN says AFX_MANAGE_STATE is called "to protect an exported function in a DLL."
it seems to be a form of sandboxing?
1
Q: What does AFX_MANAGE_STATE(AFXGetStaticModuleState()) do exactly

dev rayI have used a lot of modal dialogs and they worked fine without the use of AFX_MANAGE_STATE, but recently I was working on a different project in which the resource dlls are different from the launching dll. I surfed the web and found out the above line and when I inserted it before launching th...

 
ahh okay. so it sounds like I would need it then
 
@klut if you're touching the resource file yes
 
I'm not.
I commented it out, same results.
.4% better
 
> I ran my VS performance profiler and that line is using 13.4 percent CPU.
 
10:25 PM
now its say 7.1% usage on a call to a function that returns a boolean statement
simply a "return (type1 == TYPE_CONSTANT)"
and it increased % on my FindNode call
 
@klut How long are you testing for? 200+ seconds?
 
its about a 10 second span
 
@klut not long enough for profiling.
 
that's as long as it needs to take, I'm reading registers from a device
 
Well, it's for sure. I am now 100% single.
 
10:28 PM
@klut run it a loop 30 times, and profile that.
@Drise :(
 
I can add another device so they are both using the DLL to communicate and it bogs CPU to 100%
 
@klut that would mess up the results even more. Can't you just do the test 30 times?
 
The best part: I got her mom a job where I work. And she's fairly awkward. This is going to be fantastic.
 
it will constantly sit at 60%
 
@klut that's fine, you just want to run it long enough that it measures accurately what's happening.
@Drise same building or you mean you actually have to interact with her?
 
10:31 PM
2 years of hard work down the toilet. Her office is next to mine, our company has 20 people.
 
@klut because commenting a line that was taking 13%, and only getting 0.4% increase means that your profiling numbers are inaccurate.
 
@MooingDuck I know what you mean, but the problem constantly points to the same function in my DLL
you can see where its making the call in my application
 
@klut sure, but the question is what the function is doing at that time.
@klut actually... is time an issue? What happens if you just call it ten times? They'll compete sure, but that might not be so bad really.
 
timing is definitely an issue... if I put a Thread.Sleep(220) in my code, I use about 1% of CPU no matter how many devices I'm communicating with
 
@klut never seen a profiler like that before. Neat.
@klut is that function called in a loop?
 
10:42 PM
@MooingDuck available in VS2010 Ultimate and Professional
yes it is @MooingDuck
@MooingDuck for (int i = 0; i < count; i++) ... where count is mid-high 100's
 
@klut that if block should not be taking 9.1% of your time. How many times is the loop called?
that's the wiredest thing I've ever heard. There's no way that tiny if-block can take 5.5% of your CPU if you only call the function 200 times. Is the function virtual? Does it return a bool?
 
yeah returns BOOL
 
@klut Does m_IsClosed() make a OS function call?
 
BOOL CCommunicationPort::m_IsClosed()
{
return (m_hPort == INVALID_HANDLE_VALUE);
}
and m_hPort is a HANDLE
 
@klut yeah, that's insane. Basically what it comes down to is no. That function cannot be optimized any more.
 
10:50 PM
how exciting
@MooingDuck thanks for your help though, appreciate it
 
In my code, I have thousands of files, and one of them is corrupting the stack. But only on my machine. I have no idea what to do now. How do I test the changes I was working on, when the program crashes on my machine even without my changes?
 
230
Q: How about a "Vote not to close" option to counter the "Vote to close"?

BFreeMy request is simple: Many times, there will be a question where some people feel like it should be closed. At the same time, I'll feel like it's a perfectly legit question, and it should therefore NOT be closed. Right now, I have to wait till it gets enough close votes (which it always does for ...

 
and of course, the crash happens in java.exe, so I don't know anything about the source.
@Mysticial wait, that exists?
 
@MooingDuck Perhaps set up a VM and see if it runs without stack problems there? If so, test the modified version there as well.
 
@JerryCoffin that might work
@Mysticial did you see shog's answer?
 
11:04 PM
@MooingDuck I just found it... :(
 
@JerryCoffin I can only see the problem if I'm running the Java code from Netbeans and attached to java from MSVC, and I'd have to install the OS/IDE/etc... seems like a pain. On the other hand, I don't really have much choice, do I?
curses.
 
@MooingDuck The only choices I see (right off, anyway) are a virtual machine or a real machine. Neither will be easy to configure correctly, but I'd guess the VM will be a little easier (not to mention a tad less expensive).
 
@JerryCoffin yeah
also doesn't help that I keep corrupting my files since the stack corruption is in java.exe, and I'm using netbeans.
 
@MooingDuck Yish -- that has to suck pretty badly.
 
so I bit the bullet and did a fresh win7 install. first time in ~2 years
 
11:15 PM
@melak47 I'll have to do that eventually :(
 
@MooingDuck well at least it doesn't take long anymore
with XP, that was a different story :p
 
@melak47 I've got a lot of programs to reinstall :(
 
yeah, me too :/
 
What the hell are you reinstalling OS for.
 
@CatPlusPlus so I can install visual studio 2012, since I can't uninstall the RC or the failed install. :D
 
11:25 PM
G'job.
 
here's to breaking things, Microsoft style
 
do you know what "raw stream" means?
is equal as input stream?
 
oh my gosh I hate perforce so much.
@nEAnnam raw stream means unformatted data. Can be in or out
 
ooo, know i understand, thanks
 
I have to revert all changes (losing track of which files are checked out) in order to get the latest version of a file I have checked out.
or open up the previous version and copy paste it over manually.
 
11:31 PM
@MooingDuck I think I'd be using a bit more...colorful of language than "gosh" to describe a version control system causing me that kind of headache.
 
@JerryCoffin I'm swearing in my head I assure you
 
@MooingDuck That I can believe. Version control causing exactly the sort of headache it should prevent (or, in this case, probably even worse problems than what it normally prevents).
 
today is a bad day. I reverted my changes, got the previous version, and it doesn't compile because it can't find the headers it needs. I'm not sure what's going on here.
 
What software are you using?
 
@Rawrgulmuffins me? perforce.
 
11:38 PM
=P I read that a couple lines up, didn't know it was revision control.
 
@Rawrgulmuffins mostly it's just very fancy fail
 
No way
I use perforce
I like it better than Accurev (what I used before)
& visual soruce safe (before before)
 
@LuchianGrigore I liked source safe. Brain dead simple.
 
Yeah, but harder to keep track of massive changes
 
I've only ever used SVN, git, and filezilla. What are the major advertised differences between those and perforce (or accurev for that matter)?
 
11:42 PM
@R.MartinhoFernandes the VS11 website says something about it being available September 12th, so maybe Dreamspark will get it then. Or maybe when Win8 comes to Dreamspark (August 25th it appears)
 
Ell
I've only ever used git
 
Never used either, so couldn't tell...
 
Let's see how many more wrong answers this will bait...
0
Q: how to use macro for a unsigned long number?

FiregunHere're my codes: #define MSK 0x0F #define UNT 1 #define N 3000000000 unsigned char aln[1+N]; unsigned char pileup[1+N]; void set(unsigned long i) { if ((aln[i] & MSK) != MSK ) { aln[i] += UNT; } } int main(void) {} When I try to compile it, the compiler complains like th...

It's a linker error. Apparently the binary can't be bigger than 4GB.
 
@Mysticial good eye, I would have messed it up :)
 
Even Gman fell into the trap...
 
11:54 PM
@Konrad, regarding the comment you posted coaxing me to post an answer with aligned_union: I don't think that is a proper solution, even if it would be correct (that's why I eventually deleted my answer). The proper solution is to either solve problem Y instead (like Bo suggests, this may be a sign of misunderstanding OO polymorphism) or to pass it through another function.
I think my part is done by pointing it out, downvoting the answers and upvoting the good ones (I also downvoted the first one, because of the big fat wrong "Impossible" banner at the top and the oh gawd what is that solution it proposes in code).
 

« first day (669 days earlier)      last day (4279 days later) »