« first day (882 days earlier)      last day (4292 days later) » 

19:06
aaaand done
how much did it take? a bit more than 5 minutes I guess
That was 8 minutes
both debug and release
But I had to install CMake :/
I forgot I don't have it
Faster than I would have done it :D
Debuging says that the COLORREF rgb = GetPixel(hDC,351,515); gets the value 3225917 do i need convert to rgb to check for resemblance?
View it as hex.
19:07
HDC hDC = ::GetDC(tempHWND);
//COLORREF rgb = GetPixel(hDC,351,515);
DWORD rgb = GetPixel(hDC,351,515);
if(GetPixel(hDC,351,515) == RGB(33,30,28)){
AfxMessageBox(L"Please select or write correct name!");
}
Ell
Ell
Hello guys
@Pawnguy7 I'll put it on Dropbox for you
@Ell Hi.
LLVM+Clang build in debug in a VM: 3.5 GB is not enough.
Ell
Ell
Right. Who is good at git?
19:08
Everybody but me. :D
just wait a sec until it uploads
have fun
Ell
Ell
I went back in time with git reset --hard and now I want to go back forward in time :3
@Ell impossible AFAIK. You threw away everything you didn't commit or stash.
I don't know much, but hard reset sounds like...
... well, a hard reset.
Xeo
Xeo
19:09
@rubenvb When I first built LLVM+Clang, I had to give my VM 1.5GB RAM + 2GB swap, I think. I never built in debug since then. :s
git reset does not go back in time, it throws away history.
Xeo
Xeo
Although it obviously depends on how many make threads you start..
Ell
Ell
@rubenvb Sorry I wasn't clear - I committed stuff, then went back in time
@BartekBanachewicz Siema can I get u Skype?
@Xeo yeah, I usually build in release mode, and use 4 threads. Maybe not the smartest :)
Ell
Ell
19:10
so the commits should still exist in the future, right?
Exactly what did you do?
@Ell git reset does not go back in time.
Xeo
Xeo
@rubenvb Release takes so much less memory.
git reset someref <- partially undoable; git reset (noref) yeah, you're fucked.
Ell
Ell
oh... :( git reset --hard [sha1 hash for commit] is what I did
Xeo
Xeo
19:11
...
Ell
Ell
it's okay, I just have to keep re-cloning stuff because I can't use git. -.- I'm reading the pro git book atm though
@Ell git reset HEAD@{1}, I think.
Always do stuff on branches.
branches are cheap.
and save your ass.
Ell
Ell
@R.MartinhoFernandes that did it! :D
thank you
I don't understand that >.< . Is @{1} a stash? o.O
Type git reflog.
It should become obvious.
Ell
Ell
19:13
Right
git keeps a history of all the places you had HEAD pointing at. HEAD@{1} is the place HEAD pointed at before now.
Ell
Ell
Okay, got it
I think I get it
@rubenvb Yes, it can. It can go backwards, forwards and sideways in time.
Guys I realized and edited my question stackoverflow.com/questions/15411446/… can anyone help me with that?
@R.MartinhoFernandes well hell. I thought git reset was some sort of black hole trash can.
I use git checkout for my time traveling.
19:16
@Klasik Before the room owners come with the binhammer, the regulars tend to look down upon people just dumping question links asking for help and nothing else.
Especially if you've already posted that link multiple times here.
@rubenvb It moves the HEAD basically.
@Insilico Thank you!
@Klasik You may want to clarify what you mean by "checking for resemblance".
Like do you want to compare the exact RGB values or if the color just looks like another color (which is more complicated)?
@Insilico yes I want to check if at that point is exactly color
Ell
Ell
19:23
Eh. I've messed this repo up
@R.MartinhoFernandes This is local to a repository though - and inherently doesn't get pushed/synced/pulled /cc @rubenvb (it also depends on configuration settings, but by default reflog tracks 14 days)
16/03/2180: Rimmer loses his virginity to Yvonne McGruder. It took 13 mins, including eating dinner. [Red Dwarf\TV\1988] #RedDwarf
@Insilico I just don't understand what is this color 3225917?
@Ell room topic changed to Lounge<C++>: Where the regulars continuously prove that git is too complicated for C++ hackers [c++] [c++11] [c++-faq] [no-helpdesk]
4
Ell
Ell
heh
Right now I want to change a previous incorrect commit. I think i need to either ammend, or rebase. Hmm
19:31
ohai
evening
you too
U2 is a band
But it's music is kind of like eating sand?
lol
I don't listen to them
@sehe Another brave programmer defeated by the evil version control
19:33
@CatPlusPlus Tout lounge C++ seems to be confused by the 7 headed git
@TonyTheLion You just use them when you're out of vim?
@sehe lolwut
@TonyTheLion (vim was de naam van het allomtegenwoordige schuurpoeder, zo'n beetje wat tegenwoordig Jif of Cif heet?)
@sehe aha, nu versta ik het
I was thinking you meant vim the editor
which is why that didn't quite make sense
Ell
Ell
19:36
I made a comment which was "Fixed ... issue". Said message is a lie. What should I do?
@EtiennedeMartel This is the last time I click on a link from you. =[
@EtiennedeMartel the fuck?
@Ell fix the lie to make it a truth
user1182183
hey guys if I run an .exe does that exe entirely get loaded into the memory or only the stuff the .exe wants? like vectors and arrays?
0
Q: Where are dynamic size arrays created on? (stack or heap)

MiroFor example, I have an array with dynamic size based on user input: int n; cin >> n; int items[n]; Is this array allocated on stack? Or is it on heap like if I have written: int n, *items; cin >> n; items = new int[n]; ... delete [] items; Edit: I understand what the second code...

@GamErix It gets loaded entirely, afaik
user1182183
19:39
@TonyTheLion hm so if I have an encrypted application, and want to decompile it with, something like hexrays, could I just dump the memory and decompile that?
@GamErix it depends, how it decrypts the thing, it may be doing it on the fly
and not all before hand
@Insilico I think it depends.
user1182183
yeah m, I want to make a multiplayer for a singleplayer game but I have to find which opcode handles vehicle creation/destruction... or how to spawn a vehicle / delete
I read the dynarray paper and I'm like 90% sure it said it could go in either the heap or the stack, depending on its size.
@GamErix huh, have fun with that, it's not that easy, and likely not just one opcode
19:42
@ThePhD True, although that's really an implementation detail to be honest.
because creation of an object in memory is many operations at CPU level
@GamErix That's almost certainly an operation that will require many thousands of opcodes to complete, no?
this ^^^^
Xeo
Xeo
@TonyTheLion Well, the creation itself is likely one opcode - a call to a ctor. However, setting up arguments etc.
@Ell "Fixed the answer. I have a potency issue."? I don't see a problem with that message being a lie.
user1182183
19:44
@Insilico well, yeah , just, need to find the constructor / destructor address and redirect it to mu own one or something like that, or find a function which creates vehicles
Xeo
Xeo
Unless @GamErix meant the opcodes inside a ctor...
mkcar imm64, reg
Xeo
Xeo
lol
@GamErix Ahahahaha forget about it
user1182183
@CatPlusPlus no.
19:44
@Xeo yea good luck finding that without source code, it will be something like call 0x1323555
This isn't a viable project
It's not impossible but you're in for a long ride.
I have a request for someone who has flags left -
Wut.
user1182183
19:45
@ThePhD I have plenty time :P just not enough experience (yet)
learn assembler first @GamErix
You can't make a game with 0 networking abilities - especially a complex one - online just by hijacking the opcode without like months of effort.
This answer is a duplicate of the one linked in the answer itself, stackoverflow.com/a/15453811/427309
and should be flagged for plagiarism.
Fuck. I thought today was too good to be true. Pwned by the Welsh 30-3. Totally had our game sussed out, plus ref penalty-happy. :((((
Ell
Ell
19:45
^just see the fail.
Then flag for a mod do we look like we care
@CatPlusPlus I have no flags left today, spent them all on NAA flags.
Then flag it tomorrow
@RichardJ.RossIII I've flagged it. Although I don't know what mods usually do about it.
user1182183
@ThePhD well I already got the adresses to control the player cars and AI cars, the networking components I do have already, so the only thing I have to do is make it possible to spwn and destroy vehicles on demand :P
19:46
@Insilico Thanks, mate :)
Welsh flags?
Plagiarism isn't really applicable here, I'd say, this site is free and the content is free
@Ell Nothing strange. You had a branch, and have now merged it into master. You might have rebased the branch onto master for linear history, but there is really no difference. Just remove the branch
@RichardJ.RossIII -Nuked it.
Australian, clearly.
19:47
@TonyTheLion Content is CC-BY-SA
@CatPlusPlus I don't know what CC-BY-SA is?
Attribution, Share-Alike
ah right
@R.MartinhoFernandes Yup. me to (deletevoted). @RichardJ.RossIII I commented at the OP, so as not to let the relevant answer (?) slip away
@TonyTheLion Oh yes it is, it's about ethics
@TonyTheLion It's not a legal issue. To hell with lawyers. We don't want people copy-pasting existing answers.
19:48
@TonyTheLion This creativecommons.org/licenses/by-sa/3.0 to be precise.
Actually this creativecommons.org/licenses/by-sa/3.0/legalcode would be even more precise, but I don't read legalese
alright alright
Apparently I wasn't fully informed
thanks for the info
I wonder if there's a [law.se]? Probably not, because they want to keep most sites in English.
Ell
Ell
I've wondered that
For liscences etc.
Lawyers are wary of advising people on the Internet AFAIK
I'd say I agree with cat
19:53
I was joking.
sbi
sbi
Evening, folks.
The main reason to avoid it would be that everything would be too localised.
Evening @sbi
Ell
Ell
@sehe In that graph, there are two master branches - how would I merge bartek's one into my one?
@R.MartinhoFernandes Yes, that too
19:54
@Ell pull from it.
@ell here's your magic fix (transform merge into rebase:) git reset --hard HEAD^2 && git rebase HEAD@{1}
sbi
sbi
I have a problem. On Tuesday I was informed that there's a C++ seminar for which they are looking for someone to do it. I inquired, because the payment seemed quite good.
Yesterday I signed a contract. To do a seminar from Monday-Thursday. Next week.
Problem being?
@Ell If you want to play it safe: git checkout -b fixed 8782eb1a4c0e941487a8c29d6ad97368a50dc617 && git rebase master (you end up with anew branch with the linear hist)
Evening. Actually, it's a crap evening. Today started well, then I was fucked up by Welsh bastards that ruined my perfect day :((
19:55
:(((
@R.MartinhoFernandes inb4 "subject"
sbi
sbi
@R.MartinhoFernandes I'm about 80 slides into this mess, and haven't even covered 40% of the seminar. And I have 36hrs to go, two kids and a visiting granny.
@sbi and you're chatting?
@MartinJames I'mma make a chat filter rule triggering on "Welsh"
@TonyTheLion lol
sbi
sbi
19:56
@TonyTheLion There's s a concrete question I want to ask you guys.
Fire
sbi
sbi
What's the proper names of the initialization new int vs. new int()?
@sbi Cement, gravel and sand. Let it harden around the feet of a Welshman. Push him overboard.
19:57
@sbi i'd say dynamic instantation (2x)? That's highly unorthodox, both ways, though (for builting type)
sbi
sbi
Oops. What happened to the @Cat? Has he started following @Nein?
350
A: Do the parentheses after the type name make a difference with new?

Michael BurrLet's get pedantic, because there are differences that can actually affect your code's behavior. Much of the following is taken from comments made to an "Old New Thing" article. Sometimes the memory returned by the new operator will be initialized, and sometimes it won't depending on whether the...

sbi
sbi
@R.MartinhoFernandes Ah, that's what I was after! Thanks a ton!
@R.MartinhoFernandes Ok, so it's default-initialization vs. value-initialization, and the rules differ even between C++98 and C++03. (And I bet C++11 brought a new twist to this mess.) Indeed a dusty corner of C++.
@Steve: A valuable addition to the FAQ tag! — sbi Dec 7 '10 at 21:13
^ lol
Ell
Ell
20:03
@sehe those commands don't seem to have worked o.O It's only 2 lines of change, I'll just delete the repository and re-make it again
@sehe Bet he finds it even more valuable now ;)
Ell
Ell
it will be easier for me :3
@Ell WUT
@R.MartinhoFernandes lol
@Ell You know that this means it will always be easier for you to do that.
Ell
Ell
@sehe I ran the commands, and it said it switched to the branch, rewound, fast forwarded etc. but nothing has changed :(
20:04
@Ell "don't seem to have worked?" -
sbi
sbi
@R.MartinhoFernandes I might consider it valuable. Unfortunately that doesn't mean I find it when I need it, though.
@Ell OBVIOUSLY NOT!
The point is, you get the SAME thing, just with a less complex history :)
Ell
Ell
I mean, I looked at it in gitg
and the history appears to be the same
@Ell You still need to get rid of the old branch. I'm assuming you went with the temp "fixed" branch?
Ell
Ell
20:05
yeah
sbi
sbi
Anyway, thanks, guys. I might drop in again tonight to shoot off arbitrary questions about dusty corners of C++. You might want to keep a duster at hand...
Ell
Ell
sorry for wasting your time :S
I will keep trying to understand
@Ell So when you're happy: git branch -D master && git branch -m fixed master
AWW
I MISSED SBI. :c
2
@Ell now maybe git gc --aggressive --prune=now depending on whether gitg show unreachable commits
Of course, now that you've rewritten history (YAY! Initiation rites) you need to pass --force to your next git push
Ell
Ell
20:08
Man, it sure puts you off going back in time
@Ell Don't be sorry. You're not. I don't hate explaining it. It's not like I was born with the knowledge
@Ell You're supposed to think ahead next time :)
Ell
Ell
@sehe Haha I will :3 (he says)
don't forget to quote that next time I come here with a git issue ;)
I won't bother :) Much to happy with the ego boost. When I grow tired of that, you'll know it by the fact that I'll be ignoring you ...
Yay for RSS notifications
> ā€œThe server side calculations are all, frankly, rubbish.ā€
Why? questions?
20:17
SimCity online saga continues
@CatPlusPlus Lolwat.
Who said that?
The modder that got rid of the offline timer
Ahahaha.
Ah.
> ā€œThe servers are terrible, the MySQL set-up sloppy, and they are trying to handle all of the saving server side (ā€œthe cloudā€) which is bogging them down constantly ā€“ they arenā€™t optimized for how many simultaneous cities are connected at once. Hell, this ā€œcloudā€ saving isnā€™t even very clever is it ā€“ if you change servers, all your saves are gone. They donā€™t even ā€œcloudā€ your saves between their own servers.ā€
Ah, I see we're talking about SimCity now.
20:21
> using new technology to realize a vision of players connected in regions to create a SimCity that captured the dynamism of the world we live in.
I hope people at Maxis did not really say that.
Because that's Molyneux-class bullshit right there.
Maybe the twist is that it was his project all along
@EtiennedeMartel haha, I thought exactly the same.
I haven't been following this whole SimCity debacle. Is it really that bad?
mumble anyone?
The game isn't bad, but the DRM/online crap is just hilarious
20:23
you can't. "To mumble" isn't a transitive verb
whatever, you know what I mean
@Insilico It's a great game that's surrounded by several layers of bullshit.
@TonyTheLion Pow pow pow pow
When Maxis or EA or whatever says "offline mode is not possible" and then you get actual developer calling bullshit :laugh:
@CatPlusPlus That is hilarious.
And then one guy enables offline mode in about a week
It's funny as hell
20:25
@CatPlusPlus It's always some stupid management or PR person that says those sorts of things. lol
Xeo
Xeo
@CatPlusPlus Plot twist: It was the same guy.
This is why you should just let the engineers speak for themselves.
They may be socially awkward, but they're pendantic enough to cover -Wall the problems.
@Xeo Nah, I don't think so
@ThePhD Actually I know quite a bit of engineers who publicly speak very well.
Ell
Ell
@sehe I think I got what I want now: github.com/elliotpotts/MiniCraft/network
20:27
To be fair, they're kind of rare.
@Insilico Yep. :D
@Ell I like that user name, by the wya.
Elliot Potts.
Ell
Ell
besides the fact I still need to merge bananu7's master with my master
It's like a gardener or something.
@Ell looking nice
Ell
Ell
What does the blue line of Bananu7's stuff represent? It's not a branch, is it? It's where bartek's repo has gone ahead of my fork?
20:30
@Ell Yes. His repo is implicitely a branch, as it has another 'HEAD' reference
Ell
Ell
Ohh I see
Plot twist: I'm a girl.
@ThePhD it's his real name
@TonyTheLion Meh. We knew that for ages
Ell
Ell
@ThePhD Potts means "underground dweller" I've heard :3
20:31
@TonyTheLion That explains why you inexplicably appear when cock is mentioned.
ahahahah
@TonyTheLion So you're actually a lioness, no?
hmmm
am I?
Ell
Ell
@ThePhD It could also be a chimney sweep :P
@TonyTheLion I have to say you don't look like one.
20:32
Who wears a weave mane.
@R.MartinhoFernandes :)
@Ell That's pretty badass.
Appearances...
Potts is now going to be a character in my game.
Ell
Ell
Woohoo! Put me in the credits ;)
20:33
Postural orthostatic tachycardia syndrome (POTS, also postural tachycardia syndrome) is a condition of dysautonomia, to be more specific orthostatic intolerance, in which a change from the supine position to an upright position causes an abnormally large increase in heart rate, called tachycardia. Several studies show a decrease in cerebral blood flow with systolic and diastolic cerebral blood flow (CBF) velocity decreased 44% and 60%, respectively. People with POTS have problems maintaining homeostasis when changing position, i.e. moving from one chair to another or reaching above the...
POTS?!
Ell
Ell
@sehe If his branch is implicit, does that mean I can't merge from it? because it isn't named?
There's also Pott's Disease I guess
@Ell Nope. It's not implicit in that way. It'll be .git/refs/remotes/bananu7/master or similar. I meant it's implicitely a different reference because it's in a different repo (namespace, technically: refs/heads is for local, refs/remotes/nameXXX/ is for remote nameXXX)
So yes, you can just git add remote BARTEK git://bla.github.com/bla.git and happily git pull --rebase BARTEK/master
Plain old telephone service (POTS) is the voice-grade telephone service that remains the basic form of residential and small business service connection to the telephone network in many parts of the world. The name is a retronym, and is a reflection of the telephone service still available after the advent of more advanced forms of telephony such as ISDN, mobile phones and VoIP. POTS has been available almost since the introduction of the public telephone system in the late 19th century, in a form mostly unchanged to the normal user despite the introduction of Touch-Tone dialing, electro...
Adding --rebase will avoid getting a non-linear history.
@Insilico too few TTs
Xeo
Xeo
20:37
1
Q: Compute nth prime at compile time

MvGThe C++11 features, with constexpr and template argument packs, should in my opinion be strong enough to perform some rather complex computations. One possible example for which I have a practical application is the computation of the nth prime at compile time. I'm asking for ways to implement t...

Some people...
@Xeo lol
It doesn't look like he tried anything. o_O
"Give me codez."
Xeo
Xeo
Next thing they want to set a record on computing digits of Pi at compile-time.
Also, I voted to close as too localized.
how is that too localised?
They did self-answer fairly quickly at least
Xeo
Xeo
20:41
> This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet.
:O
FLEXO!
This is "extraordinarily narrow" to you?
Xeo
Xeo
Since sensible people will just use a prime-number gen as suggested in the comments.
(That was my comment)
Xeo
Xeo
@Rapptz Yes, I do feel like it is.
If you need this at compile time, run a prime number generator as part of your build process. Or just put 3671 in by hand. It'll be much quicker. — Peter Wood Mar 8 at 8:36
20:43
Oh, "Close (1)" was changed to "Close (1/5)". Cool.
512th prime can be easily found in less than 1 second using a normal sieve though. — Rapptz Mar 8 at 8:31
Mmm. Did you make mod? Check: blue print --> YES!
Congrats :)
@Xeo I'm sure the robot could make that in 0.1sec
@sehe thanks :)
Xeo
Xeo
@Rapptz Yes, but that doesn't help if you need the prime at compile time.
20:44
@Borgleader Any normal sieve can.
@sehe The Lounge Workgroup grows strongah.
No I mean write a template that computes those at compile time
@ThePhD Not really, I think. But still :)
@Rapptz ... duh. It was about the time to code.
meh
Xeo
Xeo
TMP is just ill-suited for that, because you rely on how optimized the compiler implements template instantiations and all that shit
20:47
Did they leave out the ā€œdā€ in this URL as some sick joke? http://www.ocfoundation.org/
5
@Xeo buttt no loops in constexpr functions... Now he needs to write a python script to generate magic_number.i --- <cry a="river"/>
@sehe Lol, whoever did that is a badass.
Xeo
Xeo
@Borgleader Yeah, he'd probably respong with "use a sensible solution" in 0.1sec :P
@ThePhD (hint, it's technically correct :))
@sehe (But will still drive bitches nuts.)
Ohoh, 66% off on Rayman: Origins.
20:49
@EtiennedeMartel Ohooooooooooo~~~~~~~~
@sehe The funny thing is that ocdfoundation.org doesn't actually point to the OCD foundation's website. XD
Xeo
Xeo
@EtiennedeMartel Those evil daily deals!
No concern or respect for your free time.
@TonyTheLion Check this out.
@Xeo Well, it's Ubisoft weekend.
Xeo
Xeo
@EtiennedeMartel Erm
ITT Etienne part of Ponyholics Anonymous?
I started watching MLP:FIM, yes.
I think that kinda makes me a brony.
20:52
That explains a lot of things.
@BartekBanachewicz, isn't the jpeg/opentype libraries (and glew, I guess) built into SFML on windows?
Xeo
Xeo
@Pawnguy7 GL... ewww....
@Xeo glew?
@EtiennedeMartel That's why you liked that video of that guy talking about those ponies!
@ThePhD Also.
20:55
That also explains those few days where you said weird shit like "everypony"!
"I have to use float and the method of middle rectangles." - That sounds like a very arbitrary restriction. Is this a homework assignment? — Mysticial 2 hours ago
Ahaaaaaaaaaaa.
Xeo
Xeo
@Pawnguy7 It was a pun on the name, don't mind me.
^^ lol OP doesn't respond to my comment. And responds to someone afterward.
@Xeo Care to explain the pun?
20:56
To be fair, it all started with that podcast on Gonzo Planet about MLP.
So, last week.
Well, I hope you've learned your lesson that all that glitters is not gold.
Xeo
Xeo
All that glitters is Twilight Sparkle.
We decided one evening at the GA that we should watch the first MLP episode :s
@Xeo You mean the first two?
Because they kinda come in a pair.
Like most pilots for children's shows these days.
Xeo
Xeo
Half an hour, however many episodes that makes
20:59
How did you handle it?
21 minutes per episode, but the pilot is a two parter.

« first day (882 days earlier)      last day (4292 days later) »