« first day (1370 days earlier)      last day (3596 days later) » 

12:00 AM
@Borgleader no, what was it
 
reflog, reset, pull again.
 
yeah I fixed it
but it was very scary to see
 
22 hours ago, by Borgleader
@R.MartinhoFernandes This kind of joke?
 
also git clean -f -d removes ignored stuff apparently :s
 
12:01 AM
which was relevant to what @R.MartinhoFernandes had talked about
unfortunate juxtapositions are funny =/
 
you are not supposed to have fun about things that were dramatically bad back then
 
yesterday, by R. Martinho Fernandes
I just left the bar. I was with a Jew and a German that were exchanging holocaust jokes.
 
irrelevant
 
@Jefffrey dude that covers pretty much everything =/
 
not really
 
12:05 AM
You are supposed to have fun about things that were dramatically bad back then.
 
@Jefffrey no fun allowed kinda guy huh?
 
Can't beat the Four Yorkshiremen.
 
yeah, I'm sad like that
 
Must suck.
 
not for me
 
12:06 AM
git questions on SO are pretty popular
asked
5 years ago
viewed
815454 times
active
1 month ago
I need to update my git
I'm using v1.8.4
 
1531
Q: How do I remove a Git submodule?

R. Martinho FernandesHow do I remove a Git submodule? By the way, is there a reason I can't simply do git submodule rm whatever ?

 
yeah that answer was the last time I updated git
I remember when it was new
 
lol, I remember when it passed 1k
 
cool
@R.MartinhoFernandes Why do people still like the second answer more?
Is it vote bias?
@ALL, READ SECOND ANSWER (voted by 1500+) I would change accepted answer. — Paul Verest Oct 5 '13 at 7:58
 
@Rapptz No idea.
Also, I wish I could remove that dumb comment.
 
12:12 AM
lol it is a very bad comment
 
What comment?
 
the one I linked above
 
Oh, I thought Robot left a dumb comment
 
life is so wonderful
 
lol
updating git closed explorer.exe
exciting
 
12:23 AM
Go is less annoying on Windows than I thought it'd be
Amazing
 
@Rapptz lol, someone didn't see the dates on the answers.
 
@Mysticial When is Google deploying Fiber in Montreal? ;)
 
codeacademy is insultingly easy :|
 
@Borgleader lol, no idea. They gave a list of 20+ cities some months ago on where they still start. But I didn't take a good look at it.
 
@Borgleader Never.
 
12:30 AM
@Rapptz Dont ruin my dreams! Internet here sucks :(
 
It's never coming to where I live either.
 
@Borgleader Wait for the balloon. :)
 
@Mysticial I thought that was for like Africa and remote places
 
@Borgleader Dammit, my insult in disguise failed miserably.
 
Ohhhhhhhhhhh, I'm afraid you're too clever for me, just like @JerryCoffin
 
12:36 AM
@Borgleader How can you say such things about innocent lurkers?
 
No one here is innocent
 
Caught red-handed.
 
how do I make program?
 
@Borgleader I object! I am pure and virgin. All four of my children can attest to it!
@Crow You can make a program go out the window by throwing it.
 
Wee 200MB base box
 
12:42 AM
 
Wee I forgot to run provisioning
 
@Rapptz Aww... no water cooler? :(
 
prolly not
 
I guess it's hard to find a $25 water cooler.
 
I don't trust liquid cooling
 
12:45 AM
That SSD seems overpriced.
 
I've never set up liquid cooling before.
 
I cant find fault in any of your choices, if anything it looks almost exactly like what i bought 2 years ago but update to todays parts
 
Not enough disk space
 
@Mysticial it has really good ratings (iirc 5 star average on newegg or amazon)
 
@Rapptz The self-contained water coolers are easier to setup than the large heatsinks.
 
12:47 AM
Which reminds me that I'm starting to run out of my 2TB :<
 
I saw a 500GB for $200 a Frys a few weeks ago. Samsung. I didn't record what model it was though.
 
the 500GB 840 Pro was on sale for like 240 or 270$ on newegg the other day (in the daily sales)
 
there's a 1 TB Samsung SSD for $400
but hell with that lol
 
Jon Skeets blog wont finish loading, it's been at it for like 2 minutes and the page is still blank
I think Puppy's swamp internet syndrome is starting to affect me
 
There's a 2 x 4TB external for $240 deal on Newegg right now. I'm tempted, but I don't trust Seagate anymore.
 
12:50 AM
Don't do it.
500 GB is $260.
 
Had problems with Seagate?
 
Who hasn't?
 
I don't remember having any
 
@CatPlusPlus Nearly all my HD problems in the past 6 years were Seagate.
 
500GB HDD for $260?
 
12:53 AM
SSD
 
Ah. Makes more sense
Actually, that would be a steal here considering the fact that all the 256GB SSDs I was stumbling upon were around $250
 
I need to upgrade my main system. It's a stock AMD FX-8350 booting off a super-slow 2TB drive. I never intended to use that machine as a main machine, but I was forced to after frying my Sandy Bridge rig.
It takes forever to compile shit on that rig.
 
@Mysticial It grew tired of all the pi digits and offed itself?
 
Wouldn't you
 
@Borgleader I fucked up a memory swap and burned either the mobo and/or CPU.
 
12:56 AM
Good job
 
I've since replaced it with a 4770K and new mobo. But I've been using it for profiling and clean benchmarks (without shit running in the background). So I'm hesitant to switch over to it for a main machine.
Not mention that it'll take a lot of work to reinstall all the shit that I use.
 
Write Puppet manifests for your workstation stuff :v
 
the difference between 4770k vs 4790k is $20
 
@Rapptz I built my 4770K last November. (Before 4790K existed.)
 
I'm just noticing that Mark's observation is correct
4790 - 4770 = 20
 
12:59 AM
I wouldn't say, "built". Or rather I removed the burned 2600K + mobo and replaced it with a 4770K + new mobo.
 
std::cin.rdbuf()
Does anyoen know of a fucking or method of taking input and storing it into a data type such as a string? The above will take the input and I can print it out but rather then print it I'd like to store that stream for later use.
 
I know of a fucking, yes
 
lol
 
3 hours ago, by user2372903
You're all just a bunch of dumb fuck retards twho won't help someone out who actually jsut wanted a couple tips.
 
Will you point me in the direction of where I should be looing?
 
1:00 AM
What makes you think we changed ;)
 
and lmfao.
Nothing, I'm just stubborn AS FUCK.
 
Turns out that creating and removing an empty file is just as effective as running zerofree, and doesn't require mucking around with read-only remount
 
It takes more than 3 hours for people to change from dumb fuck retards to something else.
 
Not, all the time.
 
3 hours ago, by R. Martinho Fernandes
@user2372903 If you want to put it in a string, send it to a stringstream. There are examples of usage if you click on the links the the str function.
 
1:02 AM
Ok that's what I was looking for, I must of passed it over
 
> If you do not use one of these then you are not a real gamer!
sucks
 
I wouldn't want to be a ~real gamer~
They're mostly idiots
 
> They're mostly idiots dumb fuck retards.
FTFY
 
@Mysticial 6-8TB drives are going to be a thing soon enough. Surely that would make the 20 trillion digit milestone more plausible, right? c:
 
@MohammadAliBaydoun Not if they have the reliability of current Seagate drives. :)
I'm want those bigger drives for my Anime.
The digits are more-or-less taken care of. (for now)
 
1:09 AM
Imagine the potential of a gambling business built around guessing never-computed-before Pi digits.
 
lol
It'd be more complicated than that. Because you can't tell who is guessing, bluffing, or has secretly computed the digits and knows them for real.
 
The secret society of Pi Digit Calculating Enthusiasts will be on to you
 
how do leveling scales work?
 
A what
 
how do you guys deal with the fact that we exists
 
1:18 AM
I drink sometimes. Mostly sleep a lot
 
void read_file(){
std::basic_streambuf<char>* s = std::cin.rdbuf();
std::cout << s << '\n';
}
 
why the heck are you doing here cat
 
I got it :D
 
@Jefffrey I even doubt all of you exist, except me.
Good morning.
 
why are you alive
morning
 
1:19 AM
I don't know
 
doesn't that freak you out?
 
Everything's terrible, so it couldn't be any other way
 
weenie dogs in hot dog buns
Is why I am alive
 
it could be worse or it could be better
everything is terrible relative to your experience
 
Everything exists for my entertainment
 
1:21 AM
I'm pretty sure a kid dying of hunger would find your world view absolutely amazing
at least for few years
compared to the infinity of time, it doesn't matter. I, you, everyone in here doesn't matter. In less that 200 years it will be like we didn't exists.
 
More like 50
 
like all we did was for nothing
 
The points just don't matter
 
"Oblivion is inevitable"
Oh God
 
the points?
 
1:24 AM
@Jefffrey Not if you scatter lots of your genes.
 
Don't give him ideas.
 
Genghis Khan was thinking about that one day too.
 
How to scatter lots of your genes: blow yourself to bits.
 
While going into SPACE
 
1:25 AM
shut up robot, you don't have these problems
 
You need sleep
 
std::cin >> std::noskipws;
std::string filecontent(std::istream_iterator<char>(std::cin), (std::istream_iterator<char>()));
 
@Borgleader why are you doing this?
 
I'm bored =/
 
I see
 
1:29 AM
River, no aquifer, shallow metals, deep metals, flux, clay, soil, temperate, trees, untamed wilds. Embarking!
 
Brave man, DFHack is still not done
 
"You have selected an area with salt water." FUCK
 
Sometimes I like aquifers.
 
I tried some adventurin'
 
@R.MartinhoFernandes I thought you were going on a trip, then I realized it was probably DF
 
1:30 AM
DF, is it that good?
 
void read_file(){
std::basic_streambuf<char>* s = std::cin.rdbuf();
std::cout << s << '\n';
}
hey so with this can i turn s into a normal string or can i create a vector of basic_streambuf's?
I'm going to be splitting s linexline
 
borgleader don't
 
You can drink tears in Adventure now
 
please, do it for me
just this one time
 
@Jefffrey He didnt bother to read my reply so fuck it
 
1:31 AM
I'm begging you
 
back to situps
 
thanks
 
@Jefffrey The only limit is your imagination.
 
1:31 AM
Oh well, gotta build a desalinator first.
 
ok, lemme try it (I think for the second time)
 
Well I know that getline will let me split a string into multiple
liens
 
getline will let you split a string based on whatever you want.
 
Im' just wondering if i ave to convert this to a standard string instead of the stream
basic
 
The new conversation thing is crazy complex
 
1:32 AM
have*
 
There's also these:
 
@CatPlusPlus Sounds about normal.
 
I tried jumping over a magma smelter in a worldgen fortress (because it was blocking the door, of course)
Unfortunately while I jumped okay one way, the other way resulted in this:
 
Also forgot to screencap the health screen, but guess what it said about some of the parts
"Minor melting" :lol: Dunno if that's new but it's really funny anyway
 
1:34 AM
Got a rapist for 40.03
 
I really don't want to know what causes major melting
 
Picking skills is boring. I'm going with a troupe of dumbasses.
 
Where'd you find Therapist anyway
 
I thought memory discovery stuff is all DFHack now, and they say 60% done
 
1:38 AM
It said it works with 40.03 but doesn't.
@CatPlusPlus Rapist doesn't need everything.
 
Also apparently there's a job management UI integrated with the game in DFHack
Which is what I'm excited to try
 
Oh well. Not embarking, then. Adventuring tis.
 
Don't generate large worlds btw
There's a calendar skip at the beginning of new game, and it takes foreeeeeeeeeeeeeever with medium+
 
Why?
Oh wait. I was running 40.02.
 
Small/250 years is what I settled on
Medium/250 takes like 10 minutes for the skip to simulate
 
1:44 AM
Dammit. That save I had with that lovely spot doesn't work in 40.03 :<
Gotta gen a new one.
 
Also there are large trees now
That you can climb
And I think you can sleep safely on top of those
 
I saw them in the embark.
 
Also you don't get out of sneak mode when someone sees you now, so you can level Ambush easier
Yeah that's a better word
Dammit 4AM again
 
You weren't kidding about the taking forever.
It didn't take this long when I started fortress mode.
 
does -fsyntax-only work with headers too?
 
2:00 AM
Shit.
Gonna fight a vampire that killed 539.
 
2:28 AM
> In the late spring of 203, the dwarf Sodel Pagelauded devoured a cat of the Council of Nourishing in Presentscarred.
 
2:47 AM
what's a good framework for server on websites?
 
user3010322
Python, Flask.
 
I've been using Flask a lot actually... it seems like it's not very used though
 
user3010322
If it suits your purposes, usage counts don't matter.
 
user3010322
Jesus fuck, there's no implementation hiding in C#.
 
how does one exactly find which matches their parameters, though? I've just had a hard time mixing front end and backend with Flask, but I'm probably just being an idiot and it's not about flask
 
user3010322
2:57 AM
Try things.
 
user3010322
Get experience.
 
user3010322
Follow the lead of someone you trust.
 
user3010322
Wisdom is a great thing.
 
user3010322
public void SetData<T> ( ArraySegment<T> indices, IndexElementSize indexelementsize ) where T : struct {
 
user3010322
Nice
 
user3010322
2:58 AM
I was able to trim down the number of overloads to 2.
 
yeah. Sometimes it's kind of confusing just because people prefer to do things differently if that makes sense
 
user3010322
Especially in programming, people will always argue.
 
user3010322
Sometimes, it doesn't matter (tabs vs. spaces, brace alignment).
 
user3010322
Sometimes, it does. (for-loop versus library algorithm).
 
user3010322
Pick which one makes sense for you. And, pick the one that's less error-prone.
 
3:00 AM
one problem I had was talking to a javascript programmer, he said everything should be done way x because javascript is the best and another programmer said just use python because it's simpler
 
user3010322
Again, depends on what you're doing.
 
user3010322
Trying to make something client-side in the web? You'll probably want Javascript.
 
user3010322
But I would probably chop my arm off before I decide to write server-side Javascript.
 
user3010322
This is where experience and wisdom help.
 
user3010322
Experience gained from, you know. Trying things.
 
user3010322
3:03 AM
This reminds me I still need to write string_view
 
basically what I want to do is make a json-centric app where the front end just gets json for every page... some details just aren't really making sense to me tbh.
which makes me think I am thinking about the problem wrong
 
user3010322
JSON is a payload format not readily displayable in a web browser (in any meaningful way). What are your intentions?
 
well, I guess a lot of sites have an API where you can make a request and receive some json. I was thinking it might be easier to just make the whole back end only concern itself with sending json, but I think that is inherently flawed
 
Looks like Boost 1.56.0 is planned for August 4 now.
 
user3010322
Fuck. I use make_destructor to trigger behavior in C++.
 
user3010322
3:13 AM
No idea how to convert that to behavior in C++...
 
user3010322
Maybe try{}finally{} with a using in the try?
 
user3010322
3:35 AM
Direct3D pisses me off sometimes.
 
user3010322
They have it so that the InputLayout of an element (required to bind incoming data streams to the GPU) demands the ByteCode of a shader be used to create that InputLayout to perform signature checking (i.e., if the stream you're going to pass in is compatible with the input signature for the shader).
 
user3010322
The EXCEEDINGLY stupid part is, however, that they keep around that reflection information but in certain places (i.e., Windows Store Apps) they REFUSE to let you access that reflection information. Because... ... reasons?
 
user3010322
It also basically forces you to keep a copy of the bytecode in-memory. Which is, I dunno, kind of douche-y.
 
user3010322
Ugh, now I have to make a wrapper for these classes. Fun fun fun fun.
 
std::cout << "Hello"
 
user3010322
3:43 AM
I never thought I'd miss templates so fucking badly.
 
Hi.
 
user3010322
Holy jesus fuck.
 
user3010322
@Rapptz Wow, rude!
 
user3010322
So rude. :c
 
chris where did you get that ? You follow the mailing lists ?
 
Hey anyone who say my post paste earlier. I've spent some time refining it.
http://pastebin.com/U9LFP5Ww
Can anyone tell me any styling issues or stupid issues that i might have so far?
Trying to make sure I'm heading in the right direction.
 
user3010322
@Rapptz How's it going anyways, Mr. ruuuuuuuuuude?
 
Meh.
 
Just want to know if I'm ok so far.
Or if I'm still doing something stupid
 
@user2372903 Looks to me like the right direction would be CodeReview.
 
user3010322
3:53 AM
C#'s lambdas capture the surrounding scope, right?
 
user3010322
I'm not tripping balls here?
 
Well you're all c++ programmers.
Pretty short program. wanted to check for criticism quickly
 
user3010322
@user2372903 s/'re all c++ programmers/ all had the misfortune of stumbling upon C++ when you were young/
 
@user2372903 ...and now you know where to ask for that (provided the code works at least as far as you know).
@ThePhD C++ didn't even exist yet when I was young.
 
user3010322
3:56 AM
@JerryCoffin Well, you had the misfortune of growing up with COBOL. :D
 
@ThePhD wat
 
@ThePhD I deeply resent that remark. Take it back right now! I am not a grownup.
 
LOL! I TAKE IT THE FUCK BACK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
@JerryCoffin C++ doesn't have that problem right? (at least, as I hope so)
 
user3010322
I waited too long, I actually can't edit it.
 
user3010322
3:59 AM
@JerryCoffin It's stuck there.
 
@MarkGarcia [=] to capture by value.
 
@MarkGarcia With C++ you either specify capture by value or capture by reference. If you capture something by reference, you get a reference, which gives pretty much the same kind of behavior.
 
@Rapptz I mean, the-reference-does-not-change-each-loop problem.
 
If you capture by value, you just get a copy of the value of the object you captured.
 
@JerryCoffin Let me try...
 
4:03 AM
@MarkGarcia I should probably be a bit more clear: no, you won't get that exact behavior (well, you might be able to if you try hard enough, but not by default). You can get either a reference to the original variable or a copy of it.
So, in the case of C++ if you capture by reference, that code would just give UB--after the function exits, its loop variable goes out of scope and is destroyed. When you call the lambda, it attempts to use a dangling reference, and things go boom.
 
So in C++, the capture variables is reinitialized for each time the loop runs. Pretty intuitive, considering captured variables are basically members of the lambda type and the lambdas are just local variables. coliru.stacked-crooked.com/a/18b7a8ae24c9974e
 
If you capture by value, you'll get a copy of the value of i at each iteration, and it'll do what the OP apparently expected/wanted.
 
C++ lambdas are really good
tbh
they could have been like 100x worse but they ended up being very useful
 
They're elegant too, considering they are just functors created with glorious syntax.
 
@MarkGarcia More specifically, you can think of a lambda expression as invoking the ctor for a class with some name you don't know (because, well, that's exactly what it does). Anything you capture is just passed as a parameter to that ctor (either by reference or by value).
 
4:11 AM
@JerryCoffin Yes. You actually said it in a much better way.
 
@MarkGarcia Yes, it is quite elegant that they managed to make they work quite well without really adding any new concepts to the language, just a reasonably clean syntax for using concepts that were already present.
 
Maybe functions in even more modern C++ will be lambdas :v
Since lambdas/functors act like first class citizens and make functional programming easier.
 
Eh, you were there.
 
@Rapptz ...or just plain foolishness?
@Rapptz Please tell my coworker. He deeply resents my writing code that uses lambdas at all (or standard algorithms, ...)
 
I've already made the switch of writing a lot of functors
easy to pass around
 
4:21 AM
He pretty much figures that any and all functions should consist of for loops, function calls, and assignments. Maybe I'm just in a crappy mood because I spent essentially all day today fixing warnings in his code. Ever seen 200 lines of code produce more than 200 "uses old style cast" warnings? Today I did...
 
Is he old?
 
@Rapptz Not old enough to excuse that. A couple decades (or so) younger than I am anyway.
 
Sometimes I worry when I don't get any compiler warnings. It could be that I've improperly configured the project, compiler switches, CMake stuff...
 
I compile with -Wall -pedantic -Wextra and I rarely get warnings
 
@MarkGarcia Given the mess that is Cmake, that would hardly be surprising.
 
4:29 AM
I'd rather use CMake than autotools.
I should have a look a scons though.
 
@Rapptz I'm pretty sure I've produced fewer warnings over the last three months (at least) than he managed to produce in one checkin of one file.
@StackedCrooked Yes, you should (though it doesn't exactly compete directly with CMake).
 
Hi Guys
 
@Rapptz Are you using -Werror too?
 
Can I ask a doubt related to C here? :-)
 
@raforanz Nah, stay doubting. :P
 
4:30 AM
@raforanz None of the Guys here are high (at the moment, I'm pretty sure).
 
Just Have a Look
#define PBO(_x) #_x, &_x##_pbo


i cnt understand this


what will it do


if I use PBO(prob_detect)
 
@raforanz We all have doubts about C. No real need for questions there.
 
@StackedCrooked Might also be a good idea to start myself in Python.
 
The doubt is confirmed.
 
@raforanz Any properly functioning compiler can/will let you preprocess some code and see what your macros produce.
 
4:32 AM
@StackedCrooked No.
-Werror is a bad idea IMO
A future compiler might have a warning that didn't exist and it'd cause a compiler error for something out of my control
like -Wconsexpr-not-const
for constexpr but non-const member functions
 
@MarkGarcia Need to at least be able to run Python to use Scons, anyway. Needs to be Python 2.7, not 3K, for whatever that's worth.
 
@JerryCoffin for now I dont have a compiler to analyse the preprocessed code :-(
 
-Werror can be disabled for deployment configurations.
 
If you're error conscious, either you'll fix it or disable the error. For me -Werror doesn't do any better.
 
However, I strongly believe that during development -Werror should be enabled.
 
4:35 AM
@raforanz As it happens, one of the nicer Lounge denizens (Hi @Stacked) has a compiler online: coliru.stacked-crooked.com. Unlike most online compilers, you can specify compiler flags with it. You'll need -E.
 
@JerryCoffin They're moving towards 3, as I can see. So yeah, perhaps I'll defer for the mean time.
 
@StackedCrooked I fix all warnings during development anyway
Don't need to turn it into an error
 
That's good then.
 
@MarkGarcia Keep in mind that you don't have to actually write any Python code to just use Scons.
 
@Rapptz s/deployment/development/
 
4:37 AM
@raforanz avoid including iostream then
Or use tail -n100 to only see your own code.
 
 
1 hour later…
weenie huahua
you could always tail the file, or cat it then | grep -i ' '
 
5:57 AM
Inf * 0 == NaN ? But why?
to make sure bad results propagate their badness?
 

« first day (1370 days earlier)      last day (3596 days later) »