« first day (856 days earlier)      last day (4075 days later) » 

6:00 AM
Alright, gotta sleep. Good night peeps.
 
Night.
 
good night
 
@EtiennedeMartel Night
 
ok, in that case, the attachedRails_ array will have 2 already-constructed objects as soon as it runs the QuadBridge constructor
you could do attachedRails_[n] = Rail() to overwrite one with a fresh one
 
6:01 AM
ه҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈ͫͬͩͮͨͪͯͥͥͫͪͧͣͯͪͨͣͥͬͪ ҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈ͪͥͨͪͫͬͭͮͯͥͤͣͥͨͪͧͣͯͬͪ ҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈ͪͨͪͫͬͩͮͯͥͨͣͥͫͪͧͣͯͥͬͪ
2
 
you sir, are the man.
 
(Alright, I'm really going to sleep now)
 
lol wth
 
Not that character again.
 
@MarkGarcia The whole Twitter account is like that.
(Damn it, I'm turning into the robot)
IGOTTASTOPTALKINGTOYOUGUYS
 
6:03 AM
ه҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈ͫͬͩͮͨͪͯͥͥͫͪͧͣͯͪͨͣͥͬͪ ҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈ͪͥͨͪͫͬͭͮͯͥͤͣͥͨͪͧͣͯͬͪ ҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈ͪͨͪͫͬͩͮͯͥͨͣͥͫͪͧͣͯͥͬͪ
^ is the text that pops under the source
 
҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈ͪͥͨͪͫͬͭͮͯͥͤͣͥͨͪͧͣͯͬͪ ҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈ͪͨͪͫͬͩͮͯͥͨͣͥͫͪͧͣͯͥͬͪ Night again. ҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈ͪͥͨͪͫͬͭͮͯͥͤͣͥͨͪͧͣͯͬͪ ҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈҈ͪͨͪͫͬͩͮͯͥͨͣͥͫͪͧͣͯͥͬ
2
 
what happens if you star it
lmao
 
@doug65536 awesome, thanks once again
 
that is hilarious
 
@atomSmasher np
 
6:04 AM
Disappears when text "above" it is hovered.
Oh thanks for the free stars. Sorry @EtiennedeMartel.
 
(At least star the original Twitter post. Help spread the love)
Okay, I'm really going to sleep.
Good night, sleep tight.
 
the twitter post wouldn't glitch up the starboard though
 
@EtiennedeMartel Ok. Fair enough. :-)
 
@EtiennedeMartel hahahaha
 
Stop breaking the chat
 
6:08 AM
Implying it wasn't broken at some point
 
hey :)))))))))))))))))
 
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))‌​))))
 
what's up?
 
@Rapptz hi there russia
Though to be strictly standard pedantic, I don't think the standard says that all pointers are the same size. — Mysticial 1 min ago
@Mysticial You'd make a nice Hell++ specifier.
 
@Cicada :)
 
6:11 AM
@Cicada There are systems out there with different size pointers.
 
@Potatoswatter See the question
 
for the hell of it I built wxWindows in mingw-w64. it had several errors where they cast int to void*
 
@doug65536 That's different. int is not necessarily the same size as void*.
It'll be different on the majority of 64-bit machines.
 
And that should be a warning, not an error
 
@doug65536 64 bits. And so, pointers mostly are 64 bits also, while ints mostly remain 32 bits.
 
6:19 AM
you can make it a warning with -fpermissive in gcc.
LLP64 I believe they call it, where int is 32 bits and * is 64 bits
 
And I see too many bugs that arise from using ints as indices. They tend to break on 64-bit systems.
 
Still, many still think porting to 64-bits is an easy thing.
 
@Mysticial Is this in numeric programs dealing with gigantic arrays?
 
@Potatoswatter yeah
Not just numerical stuff.
My old SHA code broke because I indexed with int.
I was hashing a 300GB file.
And the loop counter just overflowed...
 
You should index with size_t, especially that C++ has no negative indexing
 
6:30 AM
@CatPlusPlus I do now. But that SHA code was really old - way back when I started programming.
And I didn't know better at the time.
 
Coliru doesn't support sregex_iterator? Am I doing something wrong.
 
GCC doesn't support regex
Try LWS with Clang 3.2
 
@Rapptz They obviously didn't want two problems.
 
meh
 
Yeah the header is there but it doesn't do anything lol
I don't know why >_> kind of dumb
 
6:40 AM
and i don't even get consistent results between C++ and regexpal
egad
> Where can i find a c compiler [closed]
 
boost::regex is practically identical to C++ standard regex
 
I have class in 10 mins. I think I'd rather go sleep in 10 mins. D:
 
I doubt that.
 
Doubt what
 
@MarkGarcia doubt what
 
6:53 AM
The bit about Boost and C++11 regex, probably.
 
well, I had a large regex processor that was on msvc, I moved it to gcc and noticed no std::regex. I used boost and replaced all std:: with boost:: and it worked perfectly
 
That you could sleep well (or even start sleeping!) in 10 minutes. I have difficulty doing so.
 
@Cat omg we missed it
 
#7777777
 
6:56 AM
Bad timing
 
@MarkGarcia where do you think std::regex came from?
 
@MarkGarcia Maybe 3-nights sleep deprivation will help? Not sure actually
 
@doug65536 Interminable debate which probably contributed to delaying the whole damn standard.
 
@doug65536 I'm having some difficulties in understanding your query.
 
is hacker news down?
 
6:59 AM
 
I "doubt" you really have a programming problem to solve
 
@Cicada wrong hacker news
 
@Cicada Sleeping for that short period of time would definitely make my head ache. The longer the time I'm deprived of sleep, and the shorter my nap, the more painful my head gets.
 
@Mysticial oh come on I thought you had some humor
 
7:00 AM
@Cicada Oh. lol I actually thought you messed that one up.
 
professionalism
 
@Mysticial No dice on that link from here.
 
Did you get the name Y cruncher from Y combinator
I always wondered
 
any sensible C++ programmer would use boost regex, since it is trivially easy to switch between standard and boost regex
 
@Rapptz no. I didn't even know Hacker News existed until someone pointed out that my answer to the loop question made front page on it.
 
7:03 AM
I'm not sensible
 
@Rapptz The "y" is actually supposed to be the gamma symbol for the Euler Mascheroni Constant.
 
Also,
> sensible
> C++ programmer
please
 
boost is annoying to build and link
 
@Rapptz Not if you do it in VS.
The linking part, I mean.
 
well boost isn't annoying to build anymore
it used to be
 
7:05 AM
@Cicada lol
 
linking is still a bitch though
 
you can setup cmake to try_compile a program using std::regex and if it fails, then add_definition(-DUSE_BOOST_REGEX) and in your program #define REGEXNS to boost or std
 
You always have a way of overcomplicating things.
 
@Rapptz But wait!
-1
Q: efficient algorithm

AnonymiserWrite a function:class Solution { int falling_disks(int[] A,int[] B); } that, given two zero-indexed arrays of integers − A, containing the internal diameters of the N rings (in top-down order), and B, containing the diameters of the M disks (in the order they are to be dropped) − returns the num...

 
Homework.
 
7:13 AM
Terrible formatting
 
I think it's copied from a Word document.
 
Who would be retarded enough to put all the text in bold?
 
He selected it all and pressed caps lock, but that didn't work.
 
maybe he thought we'd have monitors that are low on toner
 
@Cicada You're up late again huh.
Hm.
 
7:20 AM
It's 8:20 AM here
 
But did you sleep?
 
Yeah. Thursday.
No I actually took a nap yesterday too
Other than that no
Way to go!
 
Hm..
 
@ScottW Don't start
 
She said she was depressed.
 
7:26 AM
@doug65536 yeah I did. twas a feast!
 
nice
 
16 hours ago, by sehe
Well well. This windows thingie. I must say I'm impressed. I like Win8 a lot. It's snappy (well, on my 32GiB RAM with SSD it is snappy). And it "just works" for ... 80% (just a shame that some of the stuff I'd like to have "just work" "just will not")
^ starting there you can see some of the gripes that will probably prevent me from making windows my main machine host.
 
Didn't you use Windows 7?
 
No. Well, I've used it on my Mediacentre but you probably didn't mean that
I just think it's a shame to let windows have direct access to the hardware and let all other OS-es be content with 'second hand' access (HyperV VM)
Modulo the freeky things that happen, it works nicely. HyperV is conceptually nicer than VBox IMO
 
I know someone will probably punch me in the head for mentioning a specific linux distro but linux mint 14 with mate desktop flies
 
7:31 AM
@ScottW Somewhat. I'm skipping all classes today for example.
 
@doug65536 I tried the Cinnamon version. Pretty cool.
 
Whoa. That moment when your INBOX tells you
> [GitHub] A new public key was added to your account
 
I got scared too
 
@sehe conceptually? virtualbox is complete crap
 
And then realized it was from GitHub for Windows
@ScottW How did it end?
 
7:34 AM
And then you realize that crappy GithubForWindows does that without asking :)
@Cicada That!
@doug65536 How so? What is your gripe with it?
 
I absolutely fell in love with it at first, until I realized that it is unstable and causes data loss
 
It's terribly unstable indeed
Dataloss idk
 
@doug65536 Come on. Be specific. I never had data loss. Nor has it been unstable. What happens?
 
And lived happy ever after?
 
once I had it just mysteriously lose gigs of data written to a drive. gigs. hours of downloading. no snapshots, no reason to think anything was wrong until an AV in the GUI came up and froze the VM. upon rebooting the VM TONS of stuff I had done was gone
 
7:37 AM
@ScottW Interestingly enough, you're from Michigan (like me) so where did you go to?
MSU?
huh interesting
What degree did you get? :O
Oh right, I'm on StackOverflow.
No, I went to Michigan
 
@doug65536 It was probably still there. And it probably said why the thing was frozen too (it freezes on out-of-space). I've once deleted a superfluous vhd.0 I didn't recall making that copy myself. It was a bit scary to delete it, though
 
I never hated anyone. :P
 
FAIL
wink wink
 
@sehe VBox does crash very often though. At least it did on my laptop. It was a pain. (I noticed improvements through versions, but still)
 
@sehe eventually virtualbox will screw you and maybe my comments will cross your mind :)
 
7:40 AM
@Cicada Huh. When was that?
 
@sehe I've been using it for a bit over 2 years, last time was around september.
 
Xeo
@Cicada Been using VBox for a while now (2 years?) and don't have a problem.
 
@doug65536 I sure hope they will. Till then, I'm happy with VBox. It's just that setting up VBoxHeadless is more involved than using HyperV with auto-start on boot instances
 
Well, it didn't really prevent me from using vbox, but I had to restart it several times a day (3-4 maybe).
 
Xeo
How about the possibility that you just suck? :3
 
7:42 AM
Not considered
 
@Xeo I've been using VirtualBox since when it wasn't even bought by Sun (don't remember what party it was). For that matter, I have even used Connectrix before it became MS VirtualPC/VirtualServer
@ScottW Me too. Just for visual studio work.
 
virtualbox is Suns pool of guinea pig users to test their real virtualization product, right?
 
@Xeo I just stole one of your answers btw. Thanks for the rep, ehehehe. That's what happen when you suck: you rip the knowledge off others!
 
@doug65536 Nope. They have (had?) Solaris, with application virtualization/domain separation. They had Linux "zones", and windows "zones" in the making. They have Crossbow (which is the nicest network virtualization layer I've seen to date) etc. But they didn't offer anything in full guest virt AFAIR.
 
Xeo
@Cicada Wut?
 
7:43 AM
@Xeo This
 
I upvoted it out of spite of the other answer.
 
Xeo
0
Q: Own output stream (mock cout)

QueequegThis is a sample C++ code ostream& log = cout; ostream& getLog() { return log; } // somewhere in code getLog() << "Message"; When this code executes, the "Message" gets printed. Q: What is the easiest way to discard those messages (don't print them, don't save them)? getLog mus...

Close votes. :D
 
ahahaha butthurt!!
 
Wut
You voted to close as a dupe, of a question that is a dupe of another question?
That you yourself closed?!
 
Xeo
@Cicada According to CC-wiki license, you need attribution when you take information from other answers. :3
 
7:46 AM
@Rapptz Where he gave a thorough answer
@Xeo How about the possibility that I just suck? :3
 
She could attribute you via upvotes.
 
Yeah I'll do that for charity
 
@doug65536 HyperV: Can't emulate ATA devices. No host USB access. No native guest screen resolution (in linux). No graphics acceleration. No raw disk access to disks also (partly) visible/in use by the host. No snapshots with raw disk access. No dual monitor VMs. No disk import from partitions (just from raw physical disks). And then, ironically, only P2V from NTFS volumes, not from raw physical disks :)
 
Xeo
@Rapptz That question was older, in hindsight it should've been closed the other way around (my answer is clearly superior to the ones on the duped one).
 
Yeah, clearly.
 
7:48 AM
clearly
 
@doug65536 Basically, HyperV is low on features. But the features it does support, it does them really well, apparently. Apart from my unexplained mishap yesterday, then
 
@sehe ever gotten USB to not just crash your guest in vbox? I haven't.
 
Xeo
:)
 
@doug65536 Poor thing. My condolences. I have not had VBox crash unless as far as I can remember. I may have tweaked the configuration beyond repair, once, but that was me mucking with the undocumented bits a bit too much.
 
how is that my fault? how could you do it wrong deliberately?
 
Xeo
7:49 AM
@Rapptz All those answers suck and reimplement a streambuf to pass to ostream.
 
@doug65536 There's the possibility that you just suck. CC-by Xeo.
@Xeo Yeah your trick (or litb's?) was nice!
 
it's litb's for sure
 
^ seconded
 
@doug65536 ?! Who was blaming you? Did VBox blame you? That's horrific
 
hey, to each his own. I currently hate vbox
 
7:51 AM
it's a nice tool though
 
Oh, you mean, "I don't want to hear about it, or I'll imply you blame me". Wokay. :)
 
Xeo
@Rapptz The std::ostream os(nullptr); one wasn't.
 
you implied that vbox is just fine, so that indirectly implied that I was unable to configure usb due to incompetence.
 
@Xeo Prove it :3
 
Hello all
 
7:52 AM
@doug65536 Fallacy much?
 
They removed the box that says dupe?
 
@doug65536 Anyways, here was my glitch with HyperV:
16 hours ago, by sehe
I have seen 6 different General Protection Faults in the event logs. Also, HyperV has managed to lose connection to a storage device mid run. It then diagnosed the configuration of a VM instance as 'corrupt', saying "The setting BootNumlockOn has an invalid value". WTF. Oh, and, at the time, the VM was running. Mind boggled.
The GPFs were unrelated, by the way
 
@Rapptz Yeah. They're asking it back on meta.
As usual.
 
It's a good thing that it's gone actually
 
Xeo
7:53 AM
> I've always wondered where in the Standard it says that. Can you or another guy tell me the source of that?
 
@Xeo Are you Ulrich Eckhardt?
 
@doug65536 I think it was scarily crappy that failure to load the VM config file results in a random parse error like that. It happened once more the other day. But since then the problem hasn't reoccurred. (Which might be somewhat due to me being back on linux for a while, to actually get some work done)
I'll give windows some more testing. I like it quite a lot for general desktop interface. That's amazing in itself, IYAM.
 
I've used VS2008, and now I've rebuilt my solution in VS2010, and it doesn't compile. Linker error 2019, unresolved external symbol. __imp__SetSecurityDescriptorDacl@
SetSecurityDescriptorDacl is a function, declared in WinBase.h (it's not declared as extern). IN VS2008 it was OK... All settings I've checked - they are the same
 
Xeo
@Cicada No, but I never said I invented the trick. All I said is that I didn't take that part from litb. :)
I somehow don't want to go to work today. :| I didn't sleep well last night and am sleepy as fuck.
 
I haven't used hyper-v beyond setting up a thing to deploy large scale stress tests onto large numbers of machines. seemed to work but it should have been an easy job for hyper-v to deploy a single vm on a machine.
 
Xeo
7:58 AM
@ScottW Nah, even if I had good interweb to do home office, we got a project meeting today.
 
@Xeo High five!
 
the vm part was a breeze. setting up the unattended install of windows (and have it work on multiple localizations of windows) was a nightmare
 
@doug65536 "but it should have been an easy job" - it wasn't?
@doug65536 Oh. Well, that's not really HyperV's fault, in a way :)
 
can you believe that you configure the network devices BY NAME?!?!?! I ended up hacking around it by deploying an auto-run script to configure the network
 

« first day (856 days earlier)      last day (4075 days later) »