« first day (1019 days earlier)      last day (3912 days later) » 

Ell
12:01 AM
@martin I'm not sure that would be the cause for you, I have this installed so I can dual boot. Although I think android does come with some kind of recovery so it might be
 
@Ell I've turned the fucker off. I'll try again tomorrow. If no good, will contact provider - 'no workee, no payee'.
 
Ell
Ahh just cross your fingers, sometimes these things magically start working
 
@Ell Yeah - that's what I tell my customers:)
 
Ell
Haha!
I ought to get some sleep now, talk to you tomorrow probably :) goodnight :)
 
BFN :)
 
12:11 AM
Does someone here know a thing or two about keyframes and frame rates?
I could really use some help guys.
 
@TheGhost video streaming protocols? Ask on SO.
 
Anybody here use IRC?
 
@Pawnguy7 I don't. I'm only 57 years old, so I've got way past that.
 
cpx
IRC to connect to this room?
 
No.
 
12:19 AM
IRC to fuck off
No offence
> That's so lovely vague.
 
I don't understand.
 
cpx
@Pawnguy7 For what?
 
Oh. I may have read that wrong. Anyway, the followup was what client was used, for those who use IRC.
 
@Pawnguy7 Does 'IRC' mean 'Internet Relay Chat' to you, or has the TLA been assigned to something less cretaceous?
 
@MartinJames The former.
 
12:23 AM
Itt Really Crap
 
cpx
I have heard someone here mention IRC before but I don't know for which site it was used.
 
Ell
Okay I can't resist the welcome glow a screen provides
 
@Ell You cannot sleep either, then.
 
I should sleep now. We were woken up at ~ 06:15 this morning by a truck tyre exploding outside our house. The dog went berserk and we all ran downstairs to see what was going on. The road was covered in bits of rubber and a large curtainsider was slowly disappearing down the road, making flapping noises.
 
12:30 AM
You don't want missile control software writen in JavaScript + PHP. — user61852 6 hours ago
 
"Hey! We've reached a climbdown agreement with the Russians and Chinese! Can we stop the countdown?", "Sure, the launch control is written in Ruby. We've got three days left".
 
Ell
Hehe
 
oh, het
Marshall Cline is the author of the C++-FAQ?
I met that guy in Bristol.
 
Ell
Ruby would be awesome for a missile launcher <3
@deadmg do you think I should open a question about linking to llvm? Surely I should only need to link to llvm-config --libs for it to work
 
12:47 AM
@Ell Yes, do that.
then you can go to bed and wake up to answers
 
Haha. Somebody said they were planning on learning Jquary.
 
I've never heard of Jquary, is it good?
 
Has anyone ever used GDI+ to draw text before?
 
How useful do you think it would be to learn Big O notation? I mean, I get the idea - say, checking on element with every other is slower than checking every element with one thing. Hrm.
 
@Pawnguy7 Essential.
@ThePhD No, nobody, ever. Not one single program was ever compiled that used GDI+ to draw text.
 
Ell
12:56 AM
My question will be sloppy if I ask it now xD
I'm too tired to be cohesive
 
1:17 AM
@Xeo I have 9 stars that would like to talk to you about that.
 
Sigh. This code is bound to work eventually.
 
Ell
Fuck me
Why would I look up creepy pastas
 
What is that?
 
Ell
Look up Jeff the killer :P
 
1:36 AM
damn, deleted already.
 
LOL dat title
 
> Please don't post anything like this again. – Andrew Barber♦ 10 mins ago
ahahaha
 
2:15 AM
Gah.
So many text functions
So little time. >_<
 
@Mysticial This can't end well.
 
For big O notation.
You take the worst possible case, correct?
 
Not exactly. You take the highest power.
Sort of.
 
The highest powers of n.
 
So a nested loop is typically n^2
Because n*n
Or n*m, anyway.
 
2:22 AM
Can you think of a circumstance where worst case is not highest power?
 
Or nOm.
@Pawnguy7 loggity logs
 
Tired. Shouldn't sleep.
 
@Rapptz Just rest your eyelids
For a little bit.
 
That's either a 10 minute nap or a 7 hour nap
 
10 minutes, ezpz.
 
2:26 AM
Anybody know a site where one might find problems to be solved using algorithms?
 
@Rapptz ^ Looks like he wants the PE.
 
@Pawnguy7 Project Euler?
It's pretty math heavy.
 
That looks good, thanks. And yes, but good to learn the math too.
 
gl.
I haven't done PE in a really long time.
 
Have a snippet for a simple timer? Just elapsed time. I haven't used chrono much.
 
Thanks.
 
gmail has the shittest design, maybe I should move my email onto live or ymail
 
wat?
 
@Telkitty猫咪咪 Yahoo Mail sucks much more.
Very non-intuitive.
 
@Rapptz Any ideas what the max variation (in milliseconds) might be due to inaccuracies with the system timing?
 
2:47 AM
Hello
 
World!
 
Oh shiz
I was thinking about implementing a timer as well
I need something to run a callback after a given amount of time either one time or periodically ;_;
I have 2 solutions: 1) a thread-approach that's not very scalable. Like at all. 2) a thread that loops over all timers and subtracts delta times in order to check if the callback should be executed
 
I don't think I have ever used callbacks yet. Or lambas. I should fix that.
 
lambdas*
 
Yes, that :D
Second approach sounds fine, but I am probably not good advice.
 
2:51 AM
Timer timer(0.5, true, []() { std::cout << "hi" << std::endl; });
timer.start();
That would create and start a periodic timer that prints "hi" every 0.5 seconds
2nd approach is scalable too
 
I assume the bool is the repeat?
 
yeah, it is
It uses 1 thread for N timers. First one uses N threads -> bad
A friend of mine with more experience in this field told me that both approaches are terrible
 
Did they suggest an approach?
 
Yeah, the second one sounds like it would be fucked up
No :p
 
Damn. Forgot shift-f5.
 
2:53 AM
I'd effectively get something like Warcraft III's timer or that JavaScript setInterval function
 
I have only used the latter. By get, do you mean the implementation, or the interface?
 
interface
I'm pretty sure they use the CPU clock in wc3~
the timers have microsecond precision according to my tests
and the implementation was written in 2002
 
Is microsecond of greater precision than nanosecond?
 
1 microsecond = 1000 nanoseconds
I think we were able to measure speed of execution in nanoseconds at one point in the past
But then Blizzard made an update and broke our stuff ;.;
 
Were?
Ah.
Taking into account I have no idea what Warcraft III is.
 
2:58 AM
lolol
 
Is it a sort of modding you were doing?
 
5 years of modding that game, and I still manage THW
 
Ah.
Well, off for the night. See you.
 
See you bro~
omg he left before he saw my message ;_;
Hmm. Mac OS X has dispatch timers, and I assume Microsoft Windows should have some platform specific high-speed timer implementation
 
@Pawnguy7 This is the highest resolution clock with the smallest tick.
 
 
1 hour later…
4:25 AM
I reworked it and it's probably my prettiest answer yet xD
 
4:47 AM
Is it possible for me to change my name on the StackExchange Network?
I'm cleaning out my whole Internet profile~
 
@Magtheridon96 Yes.
 
oh hey.
 
I wish the C++1y/C++11 question potato posted wasn't ambiguous itself.
 
it was right there, in the user settings
How convenient O.o
test
 
@Rapptz Post a strongly worded answer about the fact that it's ambiguous. I'll get offended and make a meta post about it and repcap on meta within the hour. :P
 
4:50 AM
~testing again~ - well. It appears it may need some time.
 
Anyway I think I know the answer.
 
Oh shit, that does seem ambiguous
 
Not that ambiguous. The core of the question is "Why is calling f(int) and f(const int&)/f(int&&) ambiguious?.
 
I'll take a shot at answering it.
 
@minicaptain If the answer is correct, it should be accepted — Jim Hurley 13 mins ago
Hah, don't even have to beg for rep. People do it for me xD
 
4:55 AM
Simple: the compiler won't know if the caller wants to bind or copy his argument.
 
Nah. I don't think that's it.
 
Well, I think it is. These have the same "weight" in overload resolution, but with different semantics.
 
Literals by definition are prvalues.
 
No.
String literals are lvalues.
 
@Rapptz Which can both bind to const T& and T&&, and can be copied to a parementer of type T.
 
4:58 AM
@R.MartinhoFernandes We're talking about numerical literals, i.e. section 3.10
 
Some guy claims that vtables for gcc contain 2 destructors... im inclined to think hes wrong?
 
cpx
Where is SQL Server in VS 2012?
 
Man, the new five euro bills look weird.
 
@Rapptz Cool.
 
@Borgleader Tell him he's wrong
@Borgleader If you're right, you get that good feeling inside ;_;
@Borgleader If you're wrong, delete the comment and it never happened /o/
 
5:14 AM
@Rapptz Ooooh, now I'll need to take a couple of hours for window shopping.
 
I'm gonna dick around on Coliru... but the ASM syntax is so much different for gcc T_T
 
-masm=intel
 
@Borgleader could be
 
@Borgleader gcc.godbolt.org
at&t syntax blows.
 
Like @R.MartinhoFernandes says, -masm=intel will generate assembly with Intel syntax.
 
5:16 AM
@StackedCrooked I'm attempting to verify his claim by doing some inline assembly
 
Oh. Then you're screwed.
 
@Borgleader lol.
 
@StackedCrooked Yeah i just tried that, much better now thanks /cc @R.MartinhoFernandes
 
I feel like switching to vim.
 
@R.MartinhoFernandes ?
I managed to do it in VS
 
5:17 AM
@Rapptz DOOOO IITT
 
Protip: don't include iostream if you want to inspect asm later.
 
@Borgleader Can't change inline assembly syntax.
 
feck
 
@R.MartinhoFernandes What if it's overwhelming? :(
I'd be a vim noob for life.
 
5:18 AM
@Rapptz Start with the builtin tutorial.
And then persevere.
 
I'll give it a try I guess.
 
I don't know, but maybe the online interactive tutorial might be a good place to start.
 
Whenever a download page mentions MS-DOS I just shake my head a little
 
If you can get a hold of daw, ci(, etc, you're good.
 
@MarkGarcia This is pretty neato.
Only thing I think I'm used to is actually hjkl for movement
A lot of extensions I use use those same keys for movement.
 
5:23 AM
But I used vim tutor instead. I tried the online one, which I think is very good. But I feel that the built-in one gets you more to how you actually use vim.
 
I like the f key in Vim.
 
First time I tried hjkl, I rest my right index finger on h instead of j. It's funny when I realized that I'm doing it wrong.
 
I browse reddit with hjkl
 
Actually, I think a better measurement of proficiency is treating normal mode as "normal".
 
5:26 AM
@Rapptz You can do that?
 
with RES
 
@MarkGarcia Many websites/browser addons use hjkl.
 
Oh.
Just learned that.
 
GMail was one of the first ones, I think.
 
Wow gvim is ugly.
Impressively ugly.
haha
 
5:36 AM
The default font is ugly.
> I am a college man and have had a problem with my balls always being bothersome at random times. I've gotten into the habit of adjusting but girls don't like it and its received even worse at work. Any help?
 
The construct for inline asm in gcc is so bullshit compared to VS. For VS i just pasted it in
 
It's easier to just link add the .asm file to your command line.
 
lol i feedit it's own assembly and i get errors. i fail
 
5:55 AM
@Borgleader IIRC, gcc also accepts the same basic style of inline assembly as VC++ does.
 
What I was trying to do was I looked at the assembly for the call to d->~Derive();
and i figured ill just feed it the assembly it generated and just change the vtable offset to see whats in the vtable.
I managed to do that, problem is the asm version results in a core dump
 
@ThePhD Yay! :D
 
ugh... gcc makes a call to the asm block... y u no inline it
 
I am such an impatient person - posted an ad through a website for cheap real estate advertising, paid for it, Then have not seen the ad for a few hours. Started panicking, thought I have lost $199 to some scam scheme. Then saw the two ads nice and pretty on domain.com.au & realestate.com.au, lol :x
 
6:19 AM
Well what do you know there are actually 2 destructors in the vtable
Oh wait...
 
user142019
@JohanLarsson IEnumerable<T> :V
 
user142019
@Borgleader Sanity: C++/10.
 
-fdump-class-hierarchy so useful, it confirmed that the vtable does indeed contain 2 entries for the destructor
time to figure out why
 
Why it "needs" to block ? why not assuming that an async function needs to be executed as soon as possible and give the ability to retrieve just the result, and most importantly, if the C++11 is proposing a new threading model why not using it in the definition of std::async ? std::async doesn't even grant that more than 1 thread will be used. Also AFAIK methods under std::launch:: are just wrappers to future , it's the same blocking concept of execution. — user2485710 11 mins ago
Gosh, there's so much confusion packed into that comment.
 
@ScottW hey!!!
ohhh nice :)
 
heh, got a neat trick to demo some uses of std::async without working around the stupidity of its returned future.
 
I'm just enjoying a new album by one of my favorite bands
:)
also I'm having coffee
@ScottW chimaira
 
6:58 AM
@ScottW Only if you don't pirate them, though!
 
@R.MartinhoFernandes Any clue why GCC would generate a deleting and a non-deleting destructor?
(for virtual destructors that is)
 
> The entries for virtual destructors are actually pairs of entries. The first destructor, called the complete object destructor, performs the destruction without calling delete() on the object. The second destructor, called the deleting destructor, calls delete() after destroying the object. Both destroy any virtual bases; a separate, non-virtual function, called the base object destructor, performs destruction of the object but not its virtual base subobjects, and does not call delete().
 
Where's that from?
 
It makes no sense. The one that also deletes does nothing particular to that type.
 
I wish I could have the Windows 8 Task Manager in Windows 7.
:(
 
I was supposed to go to bed 3 hours ago but im still working on this answer =/
 
@Rapptz What's so special about Win8 task manager?
 
It's the only good thing about Windows 8 from what I've seen.
 
7:04 AM
@TonyTheLion it shows far more information than the win7 one
 
I have way to many small things to worry about :( NOT HAPPY!
 
oh
@Telkitty猫咪咪 What you worried about?
 
@Telkitty猫咪咪 combine them into one HUGE thing to worry about?
 
lol
@Rapptz That looks nice
 
@Rapptz not surprised that task manager is the most widely used app on windows
 
7:09 AM
1) graphics for one of my apps, still waiting for the graphic designer - supposed to hear something back today but did not. 2) some details on the house renting ads are not correct 3) GST issues - a lot pf paper work & readings to be done, list goes on
 
Greater Saturn Traffic issues?
 
oh I see. What's GST?
 
@R.MartinhoFernandes In case you care about the answer. I think I've found the reason for the deleting and non-deleting dtors
> if the class has a virtual destructor, the in-charge deleting dtor pointer goes into the vtable slot, while a scope that knows the dynamic type of the object (i.e. for objects with automatic or static storage duration) will use the in-charge dtor (because this memory should not be freed).
 
The Goods and Services Tax (GST) in Australia is a value added tax of 10% on most goods and services transactions. GST is levied on most transactions in the production process, but is refunded to all parties in the chain of production other than the final consumer. The tax was introduced by the Howard Government and commenced on 1 July 2000, replacing the previous Federal wholesale sales tax system and designed to phase out a number of various State and Territory Government taxes, duties and levies such as banking taxes and stamp duty. Introduction of the GST 1980s The idea for a broad...
 
ah right
 
7:12 AM
not much money
just extra work
 
consumer taxes are evul
 
@Borgleader Erm, that still sounds like bollocks... What if I create the object on memory allocated with malloc?
 
Isnt that UB? At which point "its your fault"
 
I am hungry :( ... I am tired :( ... and I have not trolled for daaaays! >_< (back to work)
 
It's only UB if you call delete on it.
There are other ways of destroying objects.
 
7:14 AM
Oh right
 
not UB if you call free
 
The difference between the two destructors there is the same for every pair.
Why waste pointers on it?
 
that's true
 
heh
 
7:19 AM
0
A: How can i get the top n keys of std::map based on their values?

BathshebaIf all the keys and all the values are unique then specify two maps; the one you have and the corresponding reverse map; e.g. mymapr[10] = "key1" etc. Then you can iterate over the reverse map in the normal way to extract your results.

lol. I find this silly.
 
@R.MartinhoFernandes I think I get it. Say I have A, B. B inherits from A. When I call delete on B, the deleting virtual destructor is call for B, but the non-deleting one will be called for A or else there would be a double delete?
 
@R.MartinhoFernandes I heard and forgot about them, time to check 'em out, ty.
 
It's possible I'm not making an sense, it's 3:30AM for me T_T
 
@TonyTheLion Arnold is really small: i.imgur.com/6yhT39l.jpg
 
Is it possible to beat 5 dl of fresh huckleberries and 5 dl of yogurt for breakfast? I doubt it.
 
7:29 AM
@Borgleader You don't need the deleting one at all... Just call all the simple ones that are needed, and do a simple delete at the end, outside of any vtable lookup.
 
That's how I'd do it, that's probably how VS does it, but maybe gcc doesn't ?
 
@R.MartinhoFernandes most people would look small next to André the Giant
 
@Borgleader Sure, but why not? is what bugs me.
 
@Rapptz It has at least a few meaningful applications. The most common is probably to count words in a file, then output the N most common.
 
@R.MartinhoFernandes hahah
 
7:38 AM
Morning!
Damn, I've missed my iPad
 
Marning!
 
I am so happy, I got my code to work in the night!
 
Wanna try and get mine working now?
 
Yea and what about mine?
 
7:40 AM
What'cha doing?
 
@BartekBanachewicz github.com/rmartinho/ogonek/tree/iterators-must-go (lots of commits aren't online yet)
Actually, it's probably time for that.
 
I push every commit.
Well, at least I am trying to not forget
 
Do you know a good online git video-tutorial? I suck hard and feel I need to do something about it, preferably doing it while in horizontal position.
 
Heh, in spirit of discussing stdlib with @Xeo today, I think it could be nice to make something like rstd.
@JohanLarsson video tutorials usually suck terribly
 
but they are convenient, guess I should google some
 
7:46 AM
@JohanLarsson ugh, that's subjective
I find them inconvenient as hell
because I can't proceed through it at my own pace. The speed is dictated by the video, by the guy talking.
 
lol, I noticed I still mention VS2012 as a potential target. I should fix that now that they have revealed there won't be an update ever.
 
@jalf ok but when you wake up you are done
 
@R.MartinhoFernandes heh
@JohanLarsson What?
 
about watching video tutorials
 
7:47 AM
@JohanLarsson Did you try this? It's better than an online video tutorial IMO.
 
But it's online
 
Think I did that one, thanks though
 
@R.MartinhoFernandes uh, and when I said that it was like OMG lazy.
 
@JohanLarsson ummm, wake up? I don't know about you, but I get even less out of video tutorials if I'm asleep
 
BTW, chromecast is plusgood
 
7:49 AM
@BartekBanachewicz Sorry, I failed to parse that (could be due to my wake status)
 
I failed at joking
 
@JohanLarsson once you know the basics, just use it. And look up the bits you need when you need them
 
Bitbucket doesn't have the github milestones thing does it?
one of those minor things I think are pretty neat :(
 
@BartekBanachewicz Ugh, no Newspeak please.
@Rapptz You mean the releases?
 
@Rapptz personally, I would only use Bitbucket for private repos these days
 
7:50 AM
@R.MartinhoFernandes No, the milestone page with a checklist of things to do for your next version.
 
Hmm, where is that?
Oh, the issue tracker?
 
Yeah
 
Morning
 
I'm playing around with YouTrack.
 
Under pull request you can use the gfm to make checklists.
@thecoshman Yeah I wanted it for a private repo.
I wish Bitbucket wasn't so lame.
 
7:53 AM
@Rapptz What's lame about it?
 
thanks @R.MartinhoFernandes
 
BB tracker is pretty basic.
 
@FlorisVelleman GitHub's just.. better I guess. The Wiki is better, the static pages are better, etc. Plus Bitbucket feels pretty dead, but I guess that's another issue.
 
10 hours ago, by R. Martinho Fernandes
Gosh that was disappointing.
 
lol
 
7:56 AM
@BartekBanachewicz Now I recall why I hadn't pushed all those commits... travis-ci.org/rmartinho/ogonek/jobs/9681466
 
@R.MartinhoFernandes supporting vs2012 doesnt make sense if you at leat hope for writing reasonable code in vs
 
15 mins ago, by R. Martinho Fernandes
Wanna try and get mine working now?
 
What do I do to get it working?
 
@BartekBanachewicz I had it there conditionally depending on the level of support in the update that never came.
 
@Rapptz o_0 huh...
 
7:57 AM
Heheh
 
@BartekBanachewicz Whack-a-mole refactoring.
 
@thecoshman ...?
 
> Whack-a-mole
lol
 
The compiler gives an error, you whack it; it gives another error, you whack it; and so on.
 
I have been whackin the mole all night then
 
7:58 AM
what do you whack? The error, or the compiler?
 
@jalf the screen
 
or the mole?
 
It's annoying because you are constantly making progress, but it doesn't build until you are completely done.
 

« first day (1019 days earlier)      last day (3912 days later) »