« first day (1101 days earlier)      last day (3840 days later) » 

12:00 AM
@ScottW Gotta do what you gotta do.
Hm.. compiles fast for me
Windows Explorer hangs when you right click and NTFS sucks.
 
I think git ate my files.
 
Probably because it's Pro not Home Premium
 
12:18 AM
nothing
All the laptops I had were dumb because they wouldn't let you clean the fan easily (which would then in turn make your laptop overheat) and the charger ports would break easily.
 
@SoapBox It only took me 41 minutes to try and make this into a snippet of code that actually works and tries to reproduce the sample tree from my answer. Code on Coliru. I agree, it's also without memory leaks, and I think it's even exception safe (?) but it is 106 LoC (instead of 40 LoC), it's riddled with typeid/dynamic_cast/magic level numbers, it exposes non-owning raw pointers to child nodes in addChild. Traversing the the tree in order to print it was so much more painful... — sehe 1 min ago
1 hour ago, by sehe
Oh god. I should really try to stop arguing with this one. Even though I'm technically not.
Arguing
 
@CatPlusPlus Or because they really want to sell you Win8.
 
@EtiennedeMartel Win8 Pro costs the same :ssh:
 
@CatPlusPlus Yeah, but read the message underneath the Win7 option.
 
That's just :effort:
 
12:44 AM
I ate too much. Bleh.
 
@sehe I liked your answer, but I have to say, it's not really the right tool here.
the key issue is that the boost::variant tree can describe essentially any tree of T, which is not what an octree is.
the octree has a much stricter structure
 
@DeadMG Yeah. I was wondering about octrees. In my defense, I don't know anything about them and the OP only added "information" after the fact.
 
fair enough.
I did not downvote you or anything like that.
 
Also, I haven't seen any sane approaches posted yet (although I haven't checked regularly)
 
12:49 AM
I just posted an answer.
 
@Telkitty猫咪咪 Now those are cute. A shame about the (lack of) lighting though
@DeadMG Ahahaha! Upvote time
 
@sehe Yeah, I already coded and used my own octree, so I have some experience with them.
 
@DeadMG Did you actually use array<unique_ptr<...>, 8>? Seems that would lead to pretty bad cache locality... Or is this where you employed an allocator?
 
@sehe I did, actually. My use case did not warrant using a custom allocator here. You could, of course, use unique_ptr<array<..., 8>> if you'd rather, but IME, actually initializing one of those things with MSVC's limited C++11 support was a complete bitch.
I swapped from unique_ptr<array<...>> to array<unique_ptr<...>, 8> because I couldn't make the initialization work correctly.
 
@DeadMG Ah. I can imagine the pain
@DeadMG You might still want to mention it in the post. I think it would gain a little bit of critical information
 
12:56 AM
yes.
I did edit it in.
 
Swell. I'm going to sleep. 3am
 
I need to sleep too.
blood test in the morning
 
Oh. Cheers. Hope it's not too much of an inconvenience (besides, obviously, the chore of having to actually go there)
 
eh
this would make round three with the needle
poor nurses just can't get any blood out of me
 
maybe you're just bloodless. Whatever that may mean.
 
1:03 AM
What makes git eat files? :\
 
hunger :/
 
What does that symbol mean?
Do these things happen to anybody else?
Things like these tempt me to stop using it.
Anybody?
 
What symbol
 
The yellow thing.
 
@Pawnguy7 Don't worry. Everything is fine. It's just a symbol. If your files are still there, why worry?
 
1:16 AM
@Jefffrey I don't know. After I used git, I got tons of compile errors.
Several files seem to have become their younger selves.
 
What commands did you use other than git push, git status, git add, git commit?
 
reset to head on one commit that got the wrong contents.
I bet it was one of those :\
 
You don't reset to change the message
 
I accidentally deleted the wrong folder :D
Is it normal for it to list untracked, deleted files as modified?
 
If it said modified then they were tracked
 
1:20 AM
Always remove things with git rm.
 
What else would you use?
 
For what? Deleting files?
 
Yes.
 
Hmm. Your OS GUI?
 
You still need to use git rm to stage the change
 
1:22 AM
@Jefffrey not related to git though?
 
Better advice is to not push butans without knowing what they do
 
No butans were pushed.
Command line, remember? :D
 
2 hours ago, by sehe
git add -A . again after adding/deleting/renaming files
 
@sehe As good as commit -a, which is to say not good at all
 
@CatPlusPlus What the heck is a butan?
 
1:23 AM
@CatPlusPlus I mean, you can use -A to stage deletions, not just rm
Also, I mean that the idea of staging changes was offered 2 hours ago
Bhutan (Dzongkha: ; Wylie transliteration: ʼbrug-yul"Druk Yul"), officially the Kingdom of Bhutan, is a landlocked country in South Asia located at the eastern end of the Himalayas. It is bordered to the north by China and to the south, east and west by India. Further west, it is separated from Nepal by the Indian state of Sikkim, while further south it is separated from Bangladesh by the Indian states of Assam and West Bengal. Bhutan's capital and largest city is Thimphu. Bh
 
Oh buttons. Right.
 
When am I going to learn how to work this thing :\
 
@Pawnguy7 The second you stop complaining about you not learning it
Because you are learning it. But maybe you're panicking a bit early
Icons are icons. There's usually documentation. Or tooltips. Otherwise, just look at git status and discover the meaning.
 
This isn't the first time it ate my files.
 
Maybe you should stop using reset then
 
1:29 AM
Well, it wouldn't be good to commit deleting files that weren't actually deleted.
 
Read the man pages, try examples in a playground repository. Make sure you develop a level of comfort using these commands. They're important (as git reset --hard can and will lose your work if you don't know what you're doing)
 
> --hard
 
> --no-bitch
 
lol
 
1:30 AM
Does git reset HEAD not... what do you call it? Unstage things?
 
@Pawnguy7 it does
 
The intent had been to remove them from things to be commited.
But it seems to have gone back to the commit before it.
Which was a while ago :\
 
@Pawnguy7 That'd have been git reset HEAD^
 
What does the ^ do?
 
Unstage selectively with checkout
Not checkout
 
1:32 AM
Maybe your last commit wasn't actually in. Anyways, why don't you go back to the real last revision you wanted? git reflog to scout, likely git reset HEAD@{1} to act
 
There's a command in the status
 
@Pawnguy7 it means "parent-of" the commit (first parent, actually for merges)
 
Is the parent the commit directly before, or something else?
 
sleep attempt fail :(
 
room topic changed to Lounge<C++>: There's a command in the status [c++] [c++11] [c++1y] [no-belgium] [no-questions]
 
1:33 AM
@sehe I think a reset killed what I had.
 
@Pawnguy7 ... why do you ask this?
 
Probably because it wasn't clear to me.
 
@Pawnguy7 git reflog. First look, then decide what to fear
 
no questions?
 
@VitaliusKuchalskis yet. I'll let you know when I have one for you
 
1:34 AM
@VitaliusKuchalskis Good boy.
 
@sehe I have one from a few days ago, then the four today, during which I didn't yet know something was wrong.
 
How are you?
(i'm a bad boy)
 
You should be spanked then.
 
By Scott.
 
1:35 AM
i killed him
 
git reset is evil :\
Ironic how I ended up losing my work trying to protect it.
 
Use SourceTree or other GUI
 
I guess this is more incentive to commit more often.
 
^
 
@Pawnguy7 Happened to me once or twice.
 
1:36 AM
You're all bad
 
@CatPlusPlus so you can unstage files individually, you say?
 
@Pawnguy7 And you can always do git fsck --unreachable (IIRC) to find individual blobs. This saved my ass recently when I had forgotten to commit a file, which i had extensively edited. Since it had been staged (in a different location) I was able to get it back from the dangling blob id (git cat-file -p blobid). This saved me an hour's work
 
That sounds like something I should do.
 
It's reset anyway
 
Are you saying it is too late, or?
 
1:38 AM
If you misuse reset and don't even know it (maybe pay some attention) then not much can help you
 
Well yes.
 
@Pawnguy7 I don't think it is, unless you deleted something that was never staged. If staged, then the objects will be in the object database, and careful git fsck will be able to turn them up.
 
I am thinking in terms of the future.
 
If you delete stuff that was never committed/staged. Well. Then you're fucked.
 
D'you guys remember that guy that was all "that girl looked at me in class, she must love me, what do?". The one that later on created a "true" C++ room and a room for talking about his loving problems?
What was his name?
 
1:39 AM
@Pawnguy7 (garbage expires in 14 days, by default AFAIK)
@Jefffrey Yeah.
@Jefffrey Erm...
 
@Jefffrey Yes
@Jefffrey No
 
Unlikely for a name: "No"
@Jefffrey It was a very long name, IIRC
 
Maybe I can try to get the name from the roomw.
 
@sehe What am I to do with these blobs?
 
@sehe Yes.
 
1:41 AM
I don't think these files were ever staged, though.
 
Possibly starting with C.
 
@Pawnguy7 blobs can be printed, e.g. git cat-file -p <blobid>
4 mins ago, by sehe
@Pawnguy7 And you can always do git fsck --unreachable (IIRC) to find individual blobs. This saved my ass recently when I had forgotten to commit a file, which i had extensively edited. Since it had been staged (in a different location) I was able to get it back from the dangling blob id (git cat-file -p blobid). This saved me an hour's work
@Pawnguy7 Now you're just contradicting yourself
 
Can you point it out for me?
 
@Pawnguy7 You said you used git reset and the intent was to unstage files (your literal words). That means they were staged, or the intent was silly
13 mins ago, by Pawnguy7
The intent had been to remove them from things to be commited.
 
Ah.
Well, I had these generation things.
 
1:44 AM
Did you perhaps use git clean? Because that's another weapon of mass destruction
 
There was a file, "Generator.*", in the root directory.
And also a folder, Generation.
Apparently I was lazy, because I accidentally deleted the folder too.
So, I was trying to unstage those files.
Whereas the rest were just hanging there.
So, apparently I reset everything.
 
@Pawnguy7 Key word: unstage -> implies formerly staged. This means you can get it back
 
That was about 5 files, though.
Not the 20 some I am talking about.
 
Normal git reset does not remove local files (git reset --hard might, but I'm not sure even then)
 
Guess what? SO chat's search sucks. Who would have guessed.
 
1:46 AM
Me. And Robot.
And everyone else
 
sehe shouldn't you have gone to bed an hour ago?
 
Maybe it was --hard, I don't know. I usually find such commands via searching (on SO).
Wouldn't be surprised if I have used every variation.
 
I can't even see the list of rooms I've been in.
 
"I type commands, I don't what they were"
 
@sehe git reset --hard does if they were added in that commit.
--soft would keep your local copy
 
1:48 AM
@Rapptz yeah, I can see the logic there.
> "I don't know"
 
So it is, git reset HEAD unstages everything, and git reset --hard brings you back to the last commit?
 
@Pawnguy7 Good thin I (always?) include warning when my answer contains those
@Pawnguy7 Yup.
 
use --soft if you want to keep your files assuming you added them and then committed.
 
@Rapptz That's unclear. Keep the files, or their changes too
 
yeah it's strange how you can't do one but not the other. Maybe I overlooked it.
 
1:49 AM
I am really good at misusing this.
Remember that .sdf file? :(
 
@Jefffrey By the way, it's you. You suck:
May 21 at 1:10, by DemCodeLines
"Hey, you look like somebody i should get to know. You're ____ right? And a sophomore? Well hey, I am _____ and I'm a senior. You know I've got your back...for the remaining 4 days haha."

If I approach a girl who keeps looking at me with that dialogue, would good things happen or bad things?
2
 
You are a wizard. How did you do it?
 
Think of relevant search keywords that might be unique. I thought of 'humilated' first, then 'senior' (which is what led me here) and 'sophomore' was on my short list too, but I didn't need it
 
I think he renamed to ThatGuyWhoCouldntTalkToTheGirl since then
 
@Borgleader Maybe, I was thinking of that. But I'm not so sure it was the same guy. Anywas, it looks like "that guy" changed his nick again.
 
1:54 AM
Oh, it provides instructions...
git reset HEAD file
I will have to start using that.
Hopefully don't wipe everything again.
 
That's not a bad idea.
 
I wonder if reading that now would be funny as the first time that guy joined the room.
 
Nah. But knock yourself out :)
I'm really off to sleep now. 3:55am. I'm a moron
4
 

Lounge<Programming & Life of Pi>

This room is totally about programming.
He was obsessed with Lounge<X> things.
 
Templates are magical.
 
1:56 AM
fuck
I should have gone to bed at 10pm.
 
@Jefffrey so, making a game?
 
@Pawnguy7 ?
 
@Jefffrey your video thing.
 
Oh. I don't know.
Maybe.
I don't have many ideas when it comes to games.
 
I used to.
Who knows why it stopped.
For example.
Did I tell you about the Bookman thing?
Aw.
For about five seconds, it only showed one compiler error.
 
2:06 AM
@Pawnguy7 What Bookman thing?
 
An idea I had.
A platformer, where you traverse through a book.
Making blocks out of glypths I suppose.
And enemy letters.
With bosses that are those fancy old english types.
 
Seems original.
 
Ah, restarting VS helps.
Now it shows me the same files it is giving compiler errors on.
@Jefffrey no sarcasm?
 
Nope.
 
goddamn
my guts are trying to kill me.
 
2:09 AM
:(
 
@DeadMG perhaps if you contemplate the tragedy that has befallen me, you will be distracted from it?
 
unlikely.
 
@Jefffrey ah. I thought so too. Given my previous work with collision detection, though, platformers probably are not a good choice right now.
@DeadMG That is unfortunate. I saw you went to the appointment, but never read what happened. Good news?
SingleplayerScoreScreen
I have a lot of difficulty typing this.
 
I told you what happened :P
prescription, blood test, er
something else.
and my doc finally admitted that I had a serious problem.
ah yes, medical certificate.
 
Have you received the prescription? Or am I thinking of this wrong?
 
2:15 AM
yeah, I've been taking it
minimal effect at best, though.
 
Are you going to get that operation you mentioned a while ago?
 
Sigh. This is going to take a while to fix :\
 
three and a half weeks from now, I will have an appointment to discuss whether or not they want to schedule it.
 
2:50 AM
No
 
wat
 
I even have to remake my outline hack :\
 
@ScottW No
It's you. You suck
 
Not as much as me.
 
I have so many things to do
I can't, I just shut down :<
Fuck everything
2
 
3:04 AM
Either I decided to fuck everything and forgot everything, or I have nothing to do ^_^
 
I've learnt some KSP
 
@ScottW viel Spaß
@CatPlusPlus I can't wait for that multiplayer mod to go somewhere
 
I know how orbiting works now
And what those funny terms mean
 
funny terms? like apoapsis, periapsis, prograde, retrograde? :D
 
Yes
And how the fucking navball works
I still can't land or launch, but hey
 
3:13 AM
how did you get to orbit without launching
 
Well I could maybe launch
Tutorials :v
 
you should stream when you play, so we can laugh at with you
 
Fine. Not today though
 
3:33 AM
sitting on the train testing my app
 
The green ball indicates your prograde and retrograde marker is facing in the direction of movement
or commonly, just your velocity vector.
 
4:02 AM
amazing how many happy birthday emails you get at 05:02am on your birthday.
moronic fuckers obviously don't respect my timezone.
 
 
@Mysticial Claiming to be in fourth grade, no less.
@DeadMG Obviously you need to move to a more respectable time zone.
 
4:17 AM
ugh
my guts need to move to a more agreeable timezone
preferably one that does not involve attempting to murder me
 
4:34 AM
I am seriously thinking building another house at my property - it is permitted here and the rental return can be as high as 20%. My parents could not wait to invest in it (they want 50% rental in return). And it looks a good deal to me.
But my house is currently tenanted
 
that doesnt really make much sense
 
what doesn't?
Oo you in Australia too
then you know in NSW you can build a granny flat and it doesn't require council approve right?
 
Well, you and your parent's go in as co-owners for a new property. You have the morgage and the title to the property, but they want a 50% return on weekly income (gross) of the rent per week.
 
50% on the 2nd dwelling
I am the owner, my parents are the lenders
 
Here in the NT you need to get a developer permit for any modification to your property
 
4:38 AM
We will hire a builder
 
Sorry my bad, building approval.
 
NT?
 
but cost would be around $80000 for a cheap 2 bedroom granny flat, rental return around $350 p.w.
 
I'm guessing not from context
 
NT = northern terrirtory
 
4:40 AM
The only concern I think Telkitty is the dividing of the income, and also back out clauses in a contract for your parents
 
although theoretically I would have to cut the rent demand for the current house, but since it is 20% - 30% below the market rate already, I don't think I need to cut it even further
 
how much do you charge per week for the house rental? if you dont mind me asking
 
$460
the property is located in north ryde, nsw 2113
 
Thats pretty good, 3 bedroom house in Darwin goes from 500 to 600 per week
 
I rented it out 5% below the market rate and I have not raised the rent for 3 years
 
5:05 AM
ow my guts.
 
5:16 AM
@Tuntuni :D
 
I'm debating: should this be closed for lack of minimal understanding of the subject matter?
 
3 out of 4 of my more expensive bags were gifts from relatives
I am so poor
I am a high priestess to the Goddess of Troll simulator
 
@JerryCoffin Well, he clearly doesn't have any understanding of how to do what he wants to do, and you'd think that how to call a function in C++ would be very readily available knowledge on The Interwebs, so I think I'd support a cv.
No. Nobody here uses Git. Nobody here has even heard of Git.
 
Joe
where did my messages go?
2
 
I removed them.
 
5:29 AM
@DeadMG Yeah, I've already voted to close. Anybody else care to join?
 
Joe
why?
 
because
if you have a Git question, ask on Stack Overflow, that's what it's for.
 
Oh -- and now he's committed the cardinal sin of spelling my name as Jeffry...
 
Joe
You would think I would've already tried that first...
 
I frankly don't care what you did or did not try.
 
Joe
5:31 AM
I frankly don't like your attitude too, but you don't see me being a keyboard warrior
moving on. ill try elsewhere.
 
tata.
 
5:48 AM
Well, for anybody who cares, my cousin came for a visit this weekend:
 
5:58 AM
is this a bee?
 
user1804599
lol
 
user1804599
Buy a pair of glasses.
 
user1804599
Nicholas Cage.
 
that's what happens when you sit too close to the bush fire
 
user1804599
6:04 AM
> Good knowledge of C++ and Design Patterns for object-orientated programming
 
user1804599
No wonder TeamViewer is a piece of shit.
 
@StackedCrooked It's a wasp (though a pretty small one).
 
a pretty one which is small, or a rather small one? :)
I didn't know that was a valid use for comma.
 
@StackedCrooked Quite small (total length around a centimeter).
 
user1804599
-3
A: How do I change this variable into an array c++

Keyboard ChimpYou're probably going to want to use floats, but basically if I understand you correctly... int size_in_elements = 16; float *a= new float[size_in_elements]; float maxvalue = 100.0f; // this will be the maximum value to assign to each element for(int i = 0; i < size_in_elements; i++) { a[i] ...

 
user1804599
6:18 AM
Ugh what a noob.
 
user1804599
Placed an edit.
 

« first day (1101 days earlier)      last day (3840 days later) »