« first day (691 days earlier)      last day (4243 days later) » 

2:00 PM
wwmd - What would MacGyver do?
 
Am confused with std::move
how do i tell move to move n bytes ?
 
wtf, why would you even do that?
 
lol
 
that doesn't even make sense.
 
for instance i am having a samplebank
 
2:03 PM
@Abhishek it's another move, it doesn't move bytes, it moves ownership
 
ah!
 
you can't "move" bytes.
 
@Abhishek Use std::copy instead
 
at very best, all you could do is remap them through the virtual memory manager, but that still wouldn't really be moving them.
 
@DeadMG but you can move values of bytes
 
2:05 PM
not really, it just copies the value.
 
move = copy + erase
 
@kbok std::copy cannot handle overlapping ranges.
@Abyx Not for fundamental types.
 
@Abyx It doesn't erase.
 
@DeadMG what's "it"?
 
@R.MartinhoFernandes Given the context, I assume he doesn't have this issue
 
2:06 PM
gee, I dunno
maybe that thing we were discussing, uh, moving.
 
@kbok He's "shifting" elements inside a vector.
 
xchg "moves" values between register/memory
 
@R.MartinhoFernandes Oh, I missed the previous messages. Disregard everything I said then.
 
The standard algorithm that works is std::copy_backward.
 
sbi
One more close-vote on this one, please.
 
2:09 PM
@sbi That guy is another vampire.
He's constantly copy-pasting his exam questions or whatever they are.
 
sbi
@R.MartinhoFernandes Yeah. I flagged him earlier, and all his questions are gone now. I am surprised he wasn't suspended.
What a user name!
 
What about it?
 
sbi
@R.MartinhoFernandes It's the name of the hero and protagonist of Neil Stephenson's Snow Crash. And that's one great book.
 
Btw I think I figured my crash out: I linked some non-debug objects and I think I am using __wargv wrong (Windows..).
 
Oh gawd, wargv.
 
2:13 PM
wargv?
 
probably some Qt stuff
 
Some Windows crap to take command-line arguments as LPWSTR?
 
@Nils isn't it deprecated?
 
How else should I figure out the programs path?
 
apparently, it's a VC++6 thing.
 
2:16 PM
@BartekBanachewicz What is ur fucking problem?
 
@Nils GetModuleFileName(GetModuleHandle(0),...)
 
hum?
I just want to access argv as usually provided by main(..)
 
then save that fucking argv to a global variable
 
GetCommandLine()?
 
I don't have access to main(..) my stuff is loaded from another program via dll
 
2:18 PM
or a fancy singleton
 
I don't use singletons.
 
@Nils use GetModuleFileName then
 
@DeadMG Will try it thanks!
 
@Nils right, you do use deprecated __crap
 
Hehe, __crap.
 
2:20 PM
newest keyword in the Wide language
__crap
 
@Nils GetModuleFilename sounds like the way to go.
At least on *nix, argv[0] is not the program path.
 
I'd be a little cautious about that.
 
@R.MartinhoFernandes yeah but the name of the executable?
 
won't GetModuleFilename return the path of the DLL?
I mean, GetModuleHandle(0) will return surely the DLL's HINSTANCE, not the main program's.
 
$ view stuff invokes vim, but passes "view" as argv[0].
 
2:21 PM
@DeadMG oh rly?
 
@Nils Nope, not even that.
 
@R.MartinhoFernandes On either Windows or Unix, argv[0] is usually whatever got passed by whatever spawned the program, which may or may not include a path (neither guaranteed nor prohibited on either Windows or Unix).
 
@JerryCoffin Exactly.
 
When ever I leave this room for a while, it has a tendency to accumulate 69 messages before I return
 
@thecoshman It's just you projecting your fantasies.
 
2:23 PM
@DeadMG the less I say the better <poker face>
 
@thecoshman Leave longer
 
@DeadMG GetModuleHandle returns an HMODULE, not an HINSTANCE, but GetModuleHandle(0) always gets the handle of the executable, not a DLL.
 
@Nils, btw, you can ask it on SO
 
yeah but I probably don't have to
 
@JerryCoffin HMODULE and HINSTANCE are the same thing on Win32
 
2:24 PM
@JerryCoffin HMODULE has the same value as HINSTANCE
 
But semantics!
 
@DeadMG Which is only to say that "HINSTANCE" became an obsolete concept during the transition from Win16 to Win32 so they aliased it to something else that's vaguely similar (but definitely not the same).
 
@Nils then read the fucking msdn
 
meh Win32
 
@JerryCoffin The GetModuleHandle documentation seems to be quite clear that it can return a DLL handle.
 
2:26 PM
who cares about win16
 
oh, but not for 0.
my mistaek
 
@Abyx win16 devs
 
@DeadMG It can return a DLL handle if and only if you specify the name of a DLL.
 
@Abyx Yes that is what I am doing right now.
 
@DeadMG "If this parameter is NULL, GetModuleHandle returns a handle to the file used to create the calling process (.exe file)."
 
Xeo
2:27 PM
Back at home, yay~
 
@thecoshman "devs"? Are you sure there are still 2?
 
@JerryCoffin inflated sense of self worth?
 
@JerryCoffin we know at least one >_> @Nils
 
@thecoshman What would the number of Win16 developers have to do with anybody's self worth? @Nils has said he's doing Windows development (which is pretty common) but I see nothing suggesting Win16 development (no longer common at all).
 
2:31 PM
4 mins ago, by Nils
@Abyx Yes that is what I am doing right now.
 
hi
 
Well there is a reason while I start with a new job in November :P
 
@Nils You're doing Win16 development?
 
Xeo
Sigh, did we really get another one of these "lazy singleton and locking" questions? ...
 
WTF? Are you sure you're still alive?
@Xeo Yes.
 
2:32 PM
@R.MartinhoFernandes Not quite, but my coworker uses VS 6
 
¬_¬ according to the Java updater, Java runs on 'credit cards'...
 
"quit all the jobs"...
 
@thecoshman xD Oh well, they meant they can put a logo on it
 
@thecoshman Sure it does. It was designed for embedded initially.
I don't think they was a garbage collector at the time though
 
@thecoshman Sort of true, but misleading at best -- something called Java ME runs on some smart cards, but it's only somewhat similar to what most people think of as Java.
 
2:34 PM
so they collected credit cards instead?
 
@kbok credit cards?
 
yep, I saw something called "applets" on a smart card
 
@thecoshman Originally intended for some sort of graphics device.
 
Apparently sexual harassment is an epidemic in Egypt.
 
hah at least there are no singletons on Win16
 
2:35 PM
huh, it looks like I have servilely underestimated the power in those little tiny blobs on cards
 
@Nils Oddly, one use made of HINSTNACES on Win16 is to enforce your program being a singleton.
 
@R.MartinhoFernandes Dude, you need to dust off your processors. That was news like, a week ago or something.
 
I've only been breaking things since I've been on my new job :(
 
@TonyTheLion I'd consider that a good day's work.
 
Yeah well I am not too familiar with Windows things, only use it when I have to @JerryCoffin
@TonyTheLion What kind of dev are you doing? Algo, gui, embedded, etc?
 
2:39 PM
@TonyTheLion Break all the things! If they decide to fire you, bring them down with you!
@DeadMG Oh, not millions of years ago?
Sounds recent.
:P
 
lol
true, I normally express such times as 9999999 years
 
@Nils algo
@DeadMG lol suffering from bad memory?
@R.MartinhoFernandes lol
 
@TonyTheLion Bad memory? He remembers things from millions of years ago and you call that "bad memory"?
 
@DeadMG ohrly?
 
@TonyTheLion Great :) What kind of?
 
2:41 PM
@TonyTheLion Nah, just coding more C++ tuts
@TonyTheLion yarly.
 
@TonyTheLion if ur allowed/willing to tell..
 
nobody ever coded anything without breaking it a few good times
 
@R.MartinhoFernandes That's the problem with robots. Too many significant digits.
 
@R.MartinhoFernandes lol, I thought he referred to last week as 99999 years ago
 
2:41 PM
oh, a meme that I haven't seen before
 
@TonyTheLion Nah. Last week was 9999999 years ago.
 
woo :)
@DeadMG that's what I thought. Robot misunderstood me
 
@TonyTheLion is a meme a meme if it's not been seen?
 
@TonyTheLion You haven't seen the No Wai meme before? What did you live under, the Mariana Trench?
 
2:42 PM
@thecoshman well... philosophically speaking or practically speaking?
 
@EtiennedeMartel Holy crap
 
My crapp quits in some cases and I have no idea why.
 
@DeadMG have been at work lately, not been on reddit that much
 
Great.
 
I don't think I could make a worse class name if I tried.
 
2:43 PM
Fucking Android.
 
@CatPlusPlus Why? Because you suck? :P
 
@CatPlusPlus your wat??
 
@TonyTheLion Crap app, as in, all apps are crap.
 
@TonyTheLion first the latter, then the former (just to mix it up)
 
@TonyTheLion No Wai isn't a new meme. It's been around since before I was on the Interwebs in 1999.
 
2:43 PM
@R.MartinhoFernandes No, this shitty project does.
 
@EtiennedeMartel I thought that was just a legend
 
It's 32k SLOC of terrible Java and I have no idea what's happening.
 
@thecoshman I linked to it here yesterday.
 
I hope mobile market dies horribly in fire.
 
@R.MartinhoFernandes meh, yesterday is so last week
 
2:44 PM
O RLY? is an Internet phenomenon, typically presented as an image macro featuring a Snowy Owl. The phrase "O RLY?", an abbreviated form of "Oh, really?", is popularly used in Internet forums in a sarcastic manner, often in response to an obvious, predictable, or blatantly false statement. Similar owl image macros followed the original to present different views, including images with the phrases "YA RLY" (Yeah, really.) and "NO WAI!!" (No way!). History {| |- |,___, {o,O} |)``) -"-"- O RLY? | |The phrase "O RLY?" was used on the Something Awful Forums at least as early as August 2003. ...
 
Android sucks, I agree completely.
 
Android is kewl.
 
No, it's not.
 
Ell
AbstractSingletonProxyFactoryBean wow
 
 
2:45 PM
my favourite
 
@Neil That could be Canada. Although not now.
 
Who's this Scott that is so great?
 
@R.MartinhoFernandes Har har har. You so funny.
 
Really, where does "Great Scott" come from?
 
Robert Falcon Scott CVO (6 June 1868 â€“ 29 March 1912) was a Royal Navy officer and explorer who led two expeditions to the Antarctic regions: the Discovery Expedition, 1901–04, and the ill-fated Terra Nova Expedition, 1910–13. During this second venture, Scott led a party of five which reached the South Pole on 17 January 1912, only to find that they had been preceded by Roald Amundsen's Norwegian expedition. On their return journey, Scott and his four comrades all perished from a combination of exhaustion, starvation and extreme cold. Before his appointment to lead the Discovery...
 
2:47 PM
That was my first thought.
 
I actually have no idea.
it just made me think of him
 
Great Scott! is an exclamation of surprise, amazement, or dismay. Possible origins The origin of the expression is uncertain, with several plausible sources. A likely source is as a reference to American Civil War commander‑in‑chief of the U.S. Army, General Winfield Scott. The general, known to his troops as Old Fuss and Feathers, weighed 300 pounds (21 stone or 136 kg) in his later years and was too fat to ride a horse. A May 1861 edition of the New York Times included the sentence: :These gathering hosts of loyal freemen, under the command of the great SCOTT. In an 1...
 
we covered it in "More pointless shit to tell your children on taxpayer's money" class at school some year
 
(I'm writing this for no reason)
 
2:49 PM
Robert was a greater Scott than Winfield!
 
> Convenient proxy factory bean superclass for proxy factory beans that create only singletons.
This is hilarious
 
@kbok He's missing the word abstract somehow..
 
@Neil It's "superclass"
 
@kbok It wouldn't be confusing enough if he didn't also call it abstract
 
In Java AbstractSomething generally denotes a generic superclass for Something implementers
 
2:51 PM
BaseSomething or SomethingBase are also common.
 
YAY!!!! It finally compiled!
 
the main thing I love about it is how he claims it's convenient
 
fix one bug, uncover another
 
2:52 PM
oh ffs
 
What do you think?
 
@DeadMG Hehe.
 
Do you really need to return the vector? If your class wraps std::vector, you should provide better access to its data than this accessor. This example clearly states that no-brainy rewrite from Java to C++ isn't the way to go. — Bartek Banachewicz 53 secs ago
 
@TonyTheLion
 
anyone reasonably up to date on html and web stuff?
 
2:53 PM
@EtiennedeMartel So is it a proxy for a factory, or a factory that produces proxies?
 
@EtiennedeMartel At least there the patterns part is only the proxyfactorybean. The rest sounds like a description of the actual things that bean creates proxies for (a transaction with a type that can be specified?).
@JerryCoffin It's a a factory for proxies.
 
@Xeo why should he even return this vector? It's a pseudoclass, not a real class.
 
The one from Spring is exclusively pattern masturbation. There's no actual content.
 
Xeo
@BartekBanachewicz "for whatever reason"
Also, it's "quasi class"
 
@R.MartinhoFernandes It's even a "convenience base class". It doesn't have any purpose on its own other than "looking cool and patterny".
 
2:55 PM
@Xeo right, quasi. Still, he misunderstood the fucking book? Isn't that a real problem here?
 
@R.MartinhoFernandes I'm sure I'll sleep better tonight knowing that! :-)
 
Some advice? I'm looking to move into a new apartment, should I choose something closer to work (less money spent on gas & more time), or something near downtown (less money on drunk cab rides + way cooler).
 
@BartekBanachewicz Take a step further back: "Why should any of the code be written this way?" "It shouldn't."
 
@LuchianGrigore I'd go for one closer to work.
 
@LuchianGrigore do you care much for getting drunk in town?
 
2:58 PM
@JerryCoffin And that's why I don't think answering to his question is good, because it doesn't solve the real cause of the problem
 
@LuchianGrigore Studies show that most people are happiest if their home is about 15 minutes away from work. Further, and it becomes a pain, closer and you become the guy who's expected to show up at 2AM when something goes wrong, even if it's completely unrelated to your real job.
 
@JerryCoffin 15 minutes by any means of transport, right?
 
@JerryCoffin Lie about your address!
 
@LuchianGrigore 15 minutes by the transport you use.
 
I think if I lived downtown, I could get to work in around 15 minutes by car...
 
2:59 PM
@LuchianGrigore 15 minutes is a distance.
 
Xeo
@R.MartinhoFernandes lol
 
@R.MartinhoFernandes ...but not if you receive pay checks by mail.
 

« first day (691 days earlier)      last day (4243 days later) »