« first day (795 days earlier)      last day (4158 days later) » 

user1182183
8:00 PM
(for christmas)
 
@yetihehe > 120 jumps since joining up in summer 2011
Whoa. Expensive hobby
 
Ell
I'm getting a google nexus 7
anyone have one?
 
a PS2?
 
user1182183
srsly they put me into a room with one 74 year old lady and a 60yr old man, why can't they put me into a room with hot 18yr old chicks?
 
@sbi ouch.
 
user142019
8:01 PM
@yetihehe that's not lol. That's shocking.
 
user1182183
@kbok we're not so rich :F
 
@Ell We have one at work for testing purposes.
 
lol - no one did notice him
 
@Xeo TMP
 
From what I heard, it's not very good, but it's also inexpensive.
 
8:01 PM
It's sad, true, but for a week...
 
So, go ahead, but keep in mind that you get what you pay for.
 
user1182183
going to mod that memory card to boot games via a crossover cable
 
Ell
@EtiennedeMartel not very good? I wonder why o.O It seems to have the hardware for good performance
 
@GamErix I obviously read that as "My little sister is getting so fucking cute, in her slim pink ...." and then it dawned on me
2
 
user142019
It's ridiculous that skydivers aren't enforced to sign off.
 
Ell
and android 4.2, so I can at elast web browse, skype, etc.
 
Or, you don't get what you didn't paid for.
 
Ell
also I'm not paying :3
 
@Ell If you want a decent tablet, consider getting an iPad (mini).
 
user1182183
@sehe xd
 
8:02 PM
@GamErix NSFW
@GamErix Come on. Star it :)
 
Xeo
@MooingDuck I don't know what you want to meta-program about this, but if you're just thinking non-type template arguments, that doesn't help in this case. :(
 
user142019
@StackedCrooked I append an underscore to the private member.
 
user1182183
@sehe did star it ;F
 
@StackedCrooked end members in underscores, or truncate member names
 
@GamErix Notussed
 
8:03 PM
@sehe Star whore :(
 
what's that shortcut on Windows to get the context menu that lets you open a command line in the current directory?
I coulda sworn it was shift + right click
 
@Rapptz Thak you
 
@StackedCrooked Either data member naming convention or one-letter constructor parameter names
 
Xeo
@StackedCrooked I prepend members with an underscore.
 
user1182183
@DeadMG shift rmb
 
8:03 PM
I do the second one because it's usually totally obvious
 
@GamErix Nope, not functioning
 
Xeo
@DeadMG shift + right click.
 
@Xeo Rereading that section of the standard, I'm pretty sure you're not supposed to be able to.
 
Xeo
Note that you need to not do it on a folder / file
 
user1182183
@DeadMG no "open command window here " option? O_o
 
Xeo
8:03 PM
Just in empty explorer space
 
@sbi sometimes exception message do have non-ASCII characters. e.g. "failed to open file, error: <localized error message> path: path/with/non/ASCII/parts"
 
The definition of a constexpr function shall satisfy the following constraints:
— it shall not be virtual (10.3);
— its return type shall be a literal type;
— each of its parameter types shall be a literal type;
— its function-body shall be = delete, = default, or a compound-statement that contains only
— null statements,
— static_assert-declarations
— typedef declarations and alias-declarations that do not define classes or enumerations,
— using-declarations,
— using-directives,
— and exactly one return statement;
 
sbi
@StackedCrooked Ditch those fucking getters. Really, what do you need a class for that? That's a struct with public data members, if I ever saw one.
 
@GamErix Nope, just the regular menu.
 
@Xeo Oh that's helpful. Splainz I never knew that
 
user1182183
8:04 PM
@DeadMG right shif?
 
tried that too
 
user1182183
@DeadMG left shift has other options
 
sbi
@Abyx Then throw a special exception type that keeps this around in a std::wstring.
 
Xeo
51 secs ago, by Xeo
Note that you need to not do it on a folder / file
 
it usually works but for some reason not right now
@Xeo Yeah, that's how I'm doing it- in empty space.
 
8:04 PM
@DeadMG What version of windows? It appears it doesn't work in Win7
 
@sbi I figured it would serve well as a minimal self-contained example.
 
user1182183
hmm
 
@yetihehe Did for me before.
 
Xeo
@yetihehe It does.
 
@yetihehe Confirmed. Oh I fail. I plead 'no mouse person'
 
user1182183
8:05 PM
@DeadMG
http://www.winhelponline.com/articles/109/1/How-to-add-Open-Command-Window-Here-context-menu-option-on-file-system-folders-in-Windows-Vista.html
 
sbi
@StackedCrooked I thought so, but I think I still have a point.
 
Windows Vista
ugh.
 
Doesn't for me, but I thought it didn't ever work.
 
user1182183
@kbok still works for 7
 
user142019
Can't you just drag the folder to the terminal icon? At least that works in OS X.
 
8:05 PM
7 is outdated :)
 
and usually it looks like this:
1>PostBuildEvent:
1> boost::filesystem::file_size: ═х єфрхЄё  эрщЄш єърчрээ√щ Їрщы: "F:\installer\Debug\ЄхёЄ.exe"
 
Works for me..
 
user1182183
@kbok I'm not going to - fucking - upgrade to 8
 
I would have to start my win7 laptop, so I won't do screenshot today, sorry
 
Xeo
8:07 PM
Oh, I just noticed you can do it on a folder, but "open command window here" is in a different place then.
 
user1182183
@kbok andI've never had any problems with vista, you have to be able to tame the beast
 
@GamErix IMO, 8 simply isn't an upgrade.
 
@DeadMG are you sure it is an actual physical folder? Windows 7 likes to throw 'libraries' at you
 
@sehe It's a real folder.
 
user1182183
@JerryCoffin it's another windows "Family"
 
8:07 PM
@Rapptz Is the output I'm expecting, but not the output I'm getting.
 
@sbi I wish (std|boost)::system_error had such std::wstring inside.
 
Shift right click on a folder works for me
 
user142019
I don't have a file manager installed at all.
 
user142019
I just use cd, ls, mv and rm.
 
@DeadMG You have to shift right click the actual folder
@ScottW I don't
 
Ell
8:07 PM
@Zoidberg'-- there you go being alternate again :P
 
@Rapptz Huh. Never had to do that before.
 
Xeo
@DeadMG Hit your other modifier keys, maybe one of them is stuck.
 
@ScottW You seem nice, can we be just friends? :)
 
user142019
I'm going to write a file manager though.
 
@ScottW I liked it better when you announced you thought we're cool
@ScottW Friendzoned
@Xeo VBox/VMWare sickness (also happens with RDP sometimes)
 
8:09 PM
@GamErix Is that the politically correct wording for piece of shit?
 
@Xeo Nope.
 
@Zoidberg'-- You're missing out. find, mlocate
 
Hey, is there a quick way in Git to do SVN-like revert? So just discard local changes?
 
@DeadMG Still doesn't work after you shift right click the actual folder?
 
Xeo
@DeadMG No idea then. win-E, navigate there again, try again? :P
 
8:10 PM
@BartekBanachewicz git reset --hard HEAD
 
Xeo
@Collin ...
 
user142019
@sehe never used those.
 
Xeo
No comment on that one.
 
user1182183
@JerryCoffin ye xd
 
@Xeo is it ok?
 
user142019
8:10 PM
I always use git checkout -f. :P
 
Xeo
Don't do it.
 
@Rapptz Not until I did that registry hack thing.
 
@Xeo heh
 
now it works on the folder but for some reason still won't work on the empty space in the folder
oh well
 
@Xeo already did. anyway, what should I use instead?
 
8:11 PM
@Zoidberg'-- WUT?!? kid me not
 
user142019
@sehe I don't kid you.
 
Xeo
@DeadMG Works fine for me, but it's in a different place than when you shift-rmb an empty spot.
It's up top with "open" etc
 
user1182183
@DeadMG no "open command window here" in paste/cut/copy section?
 
find is for wimps, real programmers read dirs with cat
 
right
when I choose some other folder, it works exactly like I expected
must be some permissions thing VS does
 
8:12 PM
@yetihehe depends on FS
 
user1182183
@DeadMG hm
 
user1182183
maybe ;F
 
Xeo
@BartekBanachewicz No idea, but I know that git reset --hard is bad.
 
@Xeo Agreed. At least very unsafe as advice
 
user1182183
getting my last peniciline shot and going to sleep at 10pm ;x
 
8:13 PM
@Xeo -.^
 
Xeo
@sehe Well, you wrote the answer to that question. :)
 
@Xeo It disregards local non-checked in changes... It thought you were making some kind of innuendo joke
 
To discard unstaged changes use git checkout.
 
@Xeo Oh. I don't remember. Linky?
 
right
 
8:13 PM
@R.MartinhoFernandes Or maybe mixed/soft reset
 
does MinGW come with a Clang-able Windows.h?
 
@DeadMG mouse
 
@DeadMG NFI.
 
@DeadMG uhoh. He said it
 
@R.MartinhoFernandes No fucking idea?
 
8:14 PM
Yeah.
 
user1182183
I was srsly freaking out few minutes before surgery ;o
 
@GamErix Baby.
 
user1182183
and when I was under narcose, my hand moved and pulled out the tube with narcose ;o
 
@R.MartinhoFernandes Last time I checked it would work with msys or something like that? Mmm. having trouble remembering deatils
 
user1182183
@Rapptz first-surgery-ever-in-my-life
 
Xeo
8:15 PM
1 hour ago, by Scott W
hey @sehe one of my co-workers just linked to this answer of yours: http://stackoverflow.com/a/5788069/155407
 
@Xeo Interesting. I didn't see the link nor the plink
 
@DeadMG which mingw?
 
@MooingDuck Any of them.
 
Xeo
Hm... getting really close to 100 upvotes on my Rule of Five question.
 
8:16 PM
Wimp.
 
@Xeo Anyways, lot's of happy rescues inspired by that
 
Also, I am missing 30 rep for cap.
 
10
Q: How to use the Windows API in MinGW?

SomeUserHow to use the Windows API in MinGW?

 
user1182183
@Xeo I just started with rule of three and there is a rule of five now? Fuck.
 
@R.MartinhoFernandes Buy some more
@GamErix And a rule of 0 to replace them all
 
Xeo
8:16 PM
@GamErix Start with rule of zero and forget the rest.
(Note: I don't like that question anymore.)
 
Being a lazy typist does work
 
What question
 
Xeo
(But I'll happily take the votes.)
 
@Rapptz The near 100 vote question
 
Xeo
92
Q: Rule-of-Three becomes Rule-of-Five with C++11?

XeoSo, after watching this wonderful lecture on rvalue references, I thought that every class would benefit of such a "move constructor", template<class T> MyClass(T&& other) edit and of course a "move assignment operator", template<class T> MyClass& operator=(T&& oth...

 
8:17 PM
well
 
Xeo
@sehe The wrong message.
 
it sure as hell comes with a lot of win* files.
not sure which are the Windows headers, exactly, though
 
user142019
@sbi you get that hat if you downvote something.
 
Xeo
Btw, lol at this answer:
1
A: Rule-of-Three becomes Rule-of-Five with C++11?

NoSenseEtAlcant believe that nobody linked this: http://flamingdangerzone.com/cxx11/2012/08/15/rule-of-zero.html Basically article argues for "Rule of Zero". It is not appropriate for me to quote entire article but I believe this is the main point: (Rule of Zero) Classes that have custom destructors, co...

 
8:18 PM
@Zoidberg'-- ...but it doesn't count toward hat totals on the leaderboard and such.
 
sbi
@Zoidberg'-- It seemed the robot wanted a cap so badly, so I gave him this.
 
@Xeo lol
@sbi I have that one already.
 
user1182183
but I don't think it's possible to write a self modifying .exe?
 
@Xeo thx fixed
 
user1182183
and with self-modifying I mean the file on the disk, not in memory
 
user1182183
8:19 PM
Add it's own new functions etc..
 
Yes, it is.
 
@GamErix indirectly. Search on SO
 
I don't see why you would want to.
 
sbi
@R.MartinhoFernandes Ow. Damn. Well, how about this robot cap, then?
 
user1182183
@R.MartinhoFernandes I too but it just popped into my head
 
8:20 PM
@sbi Ugly
 
sbi
@sehe So what? It's for a robot, silly!
 
Xeo
Copy, modify, add OS job to remove current exe and rename new one, or something like that should be possible.
 
True
 
3 hours ago, by R. Martinho Fernandes
user image
Am using this one.
@Xeo On Linux you can just write to it directly. No silly dances required.
 
@R.MartinhoFernandes Wait. Did you want to charm @Cicada with that hat tip?
 
sbi
8:21 PM
@R.MartinhoFernandes That's not a cap, that's a fruit hat. Also, this.
 
@Xeo on the other hand, the robot told me just a few days ago to not use unique_ptr, but to use owning raw pointers in my class, and it turns out doing it with unique_ptr would have been a very very stupid thing to do. chat
 
Xeo
@R.MartinhoFernandes Ah, ok. Makes sense, since usually the exe is completely loaded into RAM.
 
@MooingDuck That's only for internal references, though. Especially in long chains or with potential cycles
 
@GamErix I thought it was
 
user1182183
11
Q: Can a C program modify its executable file?

JoelI had a little too much time on my hands and started wondering if I could write a self-modifying program. To that end, I wrote a "Hello World" in C, then used a hex editor to find the location of the "Hello World" string in the compiled executable. Is it possible to modify this program to open it...

 
user1182183
8:22 PM
mhm not really an answer which says how to or example code
 
Xeo
@MooingDuck Well, I'm also opposed to the idea of list nodes owning each other.
 
@GamErix ah, no. can't edit a exe file that's being executed. Has to edit a copy then swap the names
 
@sehe No. But it is the only one that fits the avatar without modification. And it does fit neatly.
 
user1182183
@MooingDuck it's possible to unlock the file, I know that because of --my-- the UnlockIT utility which allows me to delete files in use
 
@sehe I agree with that, but it shows that the rule of zero has a flaw
 
8:23 PM
@MooingDuck Why? Wokay maybe: it should have a clause: "Don't forget to think"
 
@Xeo I couldn't figure out how to do otherwise without a bunch of memory overhead.
 
hmm
I wonder how they handled the Unicode problems with the Windows headers being wchar_t?
 
What is there to handle?
 
sbi
@Zoidberg'-- We know. (Hint: It's nothing you would want to boast about in other company than ours.)
 
well, primarily, that there's a bunch of wide literals all over the headers, but they're UTF-32 and the WinAPI functions expect UTF-16
 
user1182183
8:25 PM
@R.MartinhoFernandes it's really so hard to make a world-wide standart? :p
 
@MooingDuck It only means that unique_ptr is not appropriate.
 
@sehe What would be the best way for a tree to store the nodes in a rule of zero way? storing the nodes in a linked list is the only solution I can think of.
 
@GamErix Sorry, what?
 
@R.MartinhoFernandes oh, that's possible.
 
user142019
@sbi that message made VirtualBox crash!
 
8:26 PM
@MooingDuck Use unique_ptr to own the nodes.
 
@DeadMG Wait, why do you say they are UTF-32?
 
sbi
@Zoidberg'-- I apologize. I should have warned you.
 
@DeadMG that adds a ton of memory overhead, and martinho holds it complicates matters
 
user142019
lol
 
8:26 PM
@R.MartinhoFernandes I thought that GCC and therefore MinGW used UTF-32 wchar_t
@MooingDuck unique_ptr adds no memory overhead compared to a raw pointer.
 
user1182183
@yetihehe hmm seems true
 
@DeadMG Let me test, but I think not on Windows.
 
@DeadMG it does when there's an allocator involved.
 
@DeadMG Allocators whistles
 
^ wow
 
user142019
8:28 PM
Don't optimize till it matters. Not even in C++.
 
I suppose I could give the root node the allocator, and make a smart pointer for tree nodes that can follow the parent pointers to reach the allocator, resulting in no additional memory overhead.
 
user1182183
@yetihehe but.. then.. there are how many C++'s exluding MS and the original creators? (C++ comitee or something?)
 
@DeadMG It's UTF-16 on Windows.
 
@Zoidberg'-- right
 
sbi
@NikiC It's not everybody. It's only a few vociferous losers.
 
8:28 PM
@Zoidberg'-- also many people in this room believe it's ugly and a terrible idea. As well as having high memory overhead
 
@R.MartinhoFernandes Ah. That kinds makes it a non-problem, then.
 
@MooingDuck But now you pay with speed.
 
@R.MartinhoFernandes yes, that's the downside. I can't think of a good solution. (following the rule of zero)
 
sbi
@sehe Yeah, saw that, too.
 
8:29 PM
@GamErix I don't know. How many?
 
user142019
@MooingDuck I like unique_ptr.
 
sbi
@R.MartinhoFernandes Do not cackle!
 
@GamErix There is only one C++ Standard.
 
@Zoidberg'-- me too, except it adds a whole 8 bytes to each and every node in my tree.
 
user1182183
@yetihehe someone has to make the c++ standarts? (and ofcourse MS makes their own)
 
8:29 PM
@GamErix No, they don't
 
user142019
1 min ago, by Zoidberg'--
Don't optimize till it matters. Not even in C++.
 
@GamErix what?
 
@MooingDuck Gimme a moment and I will show you.
@Zoidberg'-- It matters now.
 
user142019
Of course if you have a tree with a billion nodes it matters.
 
sbi
@R.MartinhoFernandes I always have the kids to blame. Every time I go to bed early, one of the wee ones shoots through some hole in their digestive system, keeping me awake.
 
8:30 PM
@DeadMG Yeah, C++11. Or maybe C++98?
 
There is a difference between avoiding premature optimization and designing for slow/big/whatever.
 
@sbi Also, I'm not against college. I just didn't complete any :) And I don't feel i made a mistake (yet) /cc @NikiC
 
@yetihehe C++11 is the C++ Standard. C++98 is a previous version.
 
@GamErix The standards committee creates the standard. Microsoft implements it in their compiler (in some ways poorly, yes) but that's no different from gnu implementing it or clang implementing it.
 
user1182183
so there is absolutely no code which uses just the standard C++ libraries which is NOT cross compatible?
 
8:31 PM
@GamErix well, not all the compilers have implemented all parts yet
 
user142019
Unless the libraries are bugged or the implementation-defined behaviour is different.
 
fuckshitballs
 
Ell
argh why isn't this regex working! It works on the internet test, but not c#
 
sbi
@GamErix Of course, there is. All code using the std lib and other stuff is not portable.
 
I finally managed to make Clang even try to include the Windows header
crash
 
8:32 PM
@GamErix There are compiler bugs which make that not true on occasion, but standard conformant code is in theory, portable
 
@GamErix yes there is, since not all standard stuff is "portable"
 
sbi
@MooingDuck What?
 
plus
 
sbi
minus
 
user142019
8:32 PM
clang segfaults too often
 
user1182183
@MooingDuck huh , like, which "functions"?
 
thanks to its "I like to delete things you gave me as a raw pointer" and other such things
it crashes when it tries to clean up
 
@sbi unless the other stuff is portable (90% boost)
 
@sbi I want portable alias templates.
 
so even if you provide no input, it crashes
 
8:33 PM
@GamErix no, like types. char namely.
 
sbi
^its
 
user1182183
@MooingDuck hm ok
 
sbi
@R.MartinhoFernandes Why aren't they portable?
 
Because MSVC sucks.
:P
 
@Collin Conforming code might still invoke unspecified or implementation defined behavior. The C standard defines "strictly conforming" for programs that shouldn't vary at all, but C++ doesn't (nor any direct analog thereof).
 
8:34 PM
@JerryCoffin Ahh.. details :-P
 
string conforming?
 
@Collin it's standard conforming to assume char is 16 bytes
 
sbi
Yeah, but that's not saying they aren't portable. My 1982 pocket calculator won't run them either, after all.
 
@JerryCoffin "string" conforming?
 
@R.MartinhoFernandes Beat you to it.
 
sbi
8:34 PM
@R.MartinhoFernandes He meant "stroctly".
2
 
Dammit, too many conversations going on. I forgot what I was going to say.
 
@ScottW I'm busy doing that
 
@sbi modulo the odd typo here or there...
 
@MooingDuck So that should be amended to "programs which don't make assumptions based on implementation defined features"
 
user1182183
hmm, which 3d engine do you guys recommend on windows to mke a simple application menu in 3d? (i want to list all programs on my PC then make a cool startup tool for them where you can browse through apps with the mouse)
 
8:35 PM
@Collin yes, programs that don't use nonportable features are portable.
 
sbi
@R.MartinhoFernandes Engage more cores!
 
user1182183
(and launch them onclick)
 
@GamErix You mean "Steam"?
 
@MooingDuck Well now that we've looped around to a tautology, we're good to go!
 
user1182183
@DeadMG steam just has a 2d image or am I wrong?
 
user1182183
8:36 PM
@DeadMG a menu with games
 
@GamErix Yeah, click the "Big Picture" button
oh yeah, steam is going to have a console, duh
 
user1182183
I don't have steam :F
 
user1182183
scrreenshot? ;p
 
51 mins ago, by Cat Plus Plus
@EtiennedeMartel Headshot
 
Ell
8:37 PM
mugshot
 
user1182183
something like that but like with z-indexes like a ball
 
user1182183
like google earth but replace the surface of the earth with applications xD
 
user1182183
@yetihehe it's cold, okay :(
 
@GamErix I'm vaugely remembering some weird web browser that you could walk around to the different sites in some 3d mall-looking environment.. am I crazy?
 
8:40 PM
Sorry, too much work lately, I have some random behaviors.
 
How is the introduction related to the question?
Oh, and: yes
 
@sehe Perhaps should have been: "Am I remembering a real thing?"
 
@Collin yes
 
user1182183
@Collin ye that i want
 
user1182183
but for apps
 
user1182183
8:43 PM
on my pc
 
user1182183
3d application browser - no good matches on google ;F
 
@GamErix Perhaps a compiz cube?
 
@GamErix You could have live tiles on windows 8
 
Ell
@GamErix or get an old version of bump top
 
user1182183
@Collin pleasee no windows 8 :( I have a laptop without touchscreen
 
user1182183
8:47 PM
hoever the screen it.. touch-able LOL
 
user1182183
hmm you know that 3d tag flash stuff on websites?
 
user1182183
you can browse tags in 3d, I want something like that to launch my programs
 
Ell
aghh wtf c#! What is captures! I spent so long, but it turns out I was looking for groups
 
`match.Groups["name"].Captures[n].Value`
Be sure to check `match.Success` first
Actually, the CLR Regex object model is the sanest I've seen.
 
Ell
Hmm, now I don't know what either a group or a capture is :S I just want to find the nth capture
for example the [0] capture of "abc" against "a(.)c" would be "b"
 
8:53 PM
@Ell Well, ask on SO or show the regex. I'd so private readonly static Regex re = new Regex("^(?<first>.*?):(?<second>.*)$", RegexOptions.Compiled); and then if (match.Groups["second"].Success) { var v = match.Groups["second"].Captures[0].Value; }
@Ell That's Groups[0].Captures[0].Value
 
Ell
Ahh thank you :) I got it now :)
 
why is access so annoying?
 
@R.MartinhoFernandes Was there a particular reason for using brace initialization here: explicit module(std::wstring const& name) : handle { ::LoadLibrary(name.c_str()) } ?
 
@Crowz To fit well with the people who use it.
 
(That was in your rule of zero article)
 
8:58 PM
@JerryCoffin CLEVER MAAN
 

« first day (795 days earlier)      last day (4158 days later) »