« first day (827 days earlier)      last day (4347 days later) » 

05:00
A SKUNK
Question.
For large projects, I often
create an include that contains all my std-based includes (and boost-based includes),
You are awful.
for example #include <Project/Std.h> // <--- Does anyone else find themselves doing this?
I personally don't.
Doesn't that slow down compile times?
05:02
Maybe?
@Pubby I'm actually not sure. <windows.h> does basically what ThePhD does and doesn't seem to make compilation super slow
(windows.h includes lots of code)
Awwwh it's cute!
@Insilico I don't think that's a fair comparison.
05:03
@Rapptz True, I think it's more of a QOI issue.
QoI?
windows.h is probably precompiled, no?
Quality of implementation
@Pubby Not by default. It gets compiled just like any other header file unless I tell it to precompile it.
Hm.
@EtiennedeMartel wth is that?
05:04
Well, it probably matters less for my compile times because I only ever have 1 .cpp file.
Albeit, I can't use my model for Kyrostat.
@Mysticial A dead skunk.
@ThePhD 1 cpp??? How is that a large project then? :S
@ThePhD Hopefully it's has much less than 102398092 lines of code. :-P
05:05
@Pubby 1 cpp, 300+ header files.
This fucking GW2 team is so bad
It's the miracle of life!
@ThePhD Why? That sounds like it slows compile time too!
@ThePhD Wow.
@Pubby It's actually really fast, excpet when you have to export for DLL.
q_q, die in a fire, DLLs.
05:06
yes and keep bludgeoning DLLs until your hands are bleeding
@ThePhD The hell do you have 300 header files for? Or are you counting standard/operating system headers too?
@Insilico I unfortunately have taken a C#-style approach to my development using C++. This results in terrible, terrible, terrible wasteful files.
@ThePhD So you have 300 classes?
having tons of files is good for build time. as long as you dont have an uber-header and cause excessive rebuilds
@ThePhD Do you use new too
05:10
anyone tried copy-paste-detector?
@doug65536 A copy-paste detector?
tool that finds copy/paste/modified code
copy paste is pure evil, we agree on that right?
> Your YouTube channel has been disabled because your Google+ profile was deleted. Your videos are now private, visible only to you. Activate your Google+ profile to enable your channel and videos.
@doug65536 No. Definitely a highly impure evil.
@doug65536 Sounds like a waste of resources and human development.
So it probably exists somewhere
05:13
I think so. 300 might be an exxageration, but the project tree looks like this:
main problem with copy/paste is if you fix a bug in one place you might have copied that bug around
@doug65536 That's one problem, but I'm not at all sure it really qualifies a the main problem.
I can't believe this is serious ;_;
Get shit on.
remember when google meant it was 5ms for the search page to come up?
05:15
@Rapptz I guess they really want you to have a Google+ account.
I guess they're saying if you want our servers serving your crap, you have to have a google + account
nah
Well. I don't know what to do.
I don't have a G+ account and my videos are still public.
I don't want a Google+ account but I want my Youtube account.
05:17
@Mikhail: The software industry knows no borders. This is a technical term in the realm of unit testing, rather than a product of any localised dialect. (In short, no, you would not.) — Lightness Races in Orbit 4 mins ago
Am I wrong?
@DeadMG I did that real name thing by accident and when I went to revert it (i.e. deleting the G+ account) it basically nulled my entire account.
I wonder why they want to force everyone to set that up
@Rapptz They try to do that to even those of us without G+ accounts.
I never cared about Google+
They never gave me a reason to
Simple as
meh..
05:19
...
How I change Sublime Text 2 keyboard shortcuts...
Preferences > Key Bindings - User
Ah
They expect everyone to be utterly fluent in JSON.
Sure, why not.
If you tell me what you want to do I can tell you how.
@ThePhD who expects
Just want to make sure I had a build key.
That was F7.
I sure hope I can debug in this thing.
05:23
{ "keys": ["f7"], "command": "build"}
(Thanks for making me find that, this looks cool)
Weee.
Hmmm is Objective C like C?
@doug65536 They're obviously really trying to push G+.
@crowz its more unlike c than you might think from the name
@doug65536 which language is it syntactically like?
05:32
its like a C# ish C++
@Crowz Yes and no. It is a proper superset of C, so any C can be compiled as Objective C. Its object oriented part is really based much more on Smalltalk though.
Alright. What's a good project for a beginner programmer?
The first 25 problems of Project Euler
:D
Did them
@Rapptz I can't really agree. It's been a while since I looked, but when I did, most of the projects on PE struck me as ones where the programming was almost incidental.
05:36
For some reason, I find that surprising.
@JerryCoffin Yeah I don't like using PE as a programming exercise either, lol.
That I did the programming exersizes?
It seems like...
MinGW only affers 32-bit distro?
mingw.org, that is.
@Crowz My own advice has usually been to think about things you find annoying on the computer, and write utilities to make them less annoying. Just for example, years ago (MS-DOS) I wrote my own cp, ls, rm, mv, etc., that worked the way I wanted them to. Writing an mv that really works well (not the half-assed POS on your average Unix clone) will make you sit back and put serious thought into the logic before you figure out exactly what it should do.
@ThePhD I believe that's correct.
@JerryCoffin Actually I did do that just recently. I noticed there's really no simple way to make pictures with even grids over them so I just wrote a small program to do it
@rubenvb Wait a seocnd, you fucking own the x64 mingw distro?
05:44
@ThePhD He maintains it. Dude you're slow.
Holly shiiiit.
Mind = BLOWN.
@Crowz There you go. Now thing of something else missing/frustrating/annoying...
@JerryCoffin I dunno, I think a lot of my ideas involve way too advanced math to actually implement
@Crowz wow you must be really good then.
:D
@StackedCrooked No haha I'm just saying I have these ideas that would require, at the very least, a basic understanding of linear algebra. Which I have none of
05:47
...
I have to build
Mingw x64 from scratch?
Bollocks.
0
A: How to determine whether my calculation of pi is accurate?

BentFranklinI'm not sure what to say about the previous answer, unless it is a joke or something. sin(pi/2) = 1 cos(pi/2) = 0 So, I'd say those sure converge fast.

^^ lololol
I guess it's not obvious to everyone that sin() and cos() are much harder to compute than Pi.
he chose the worst formula too
Why not 4 * arctan(1) since we're doing trigonometric functions
@Mysticial lol
It's like saying "to make a hammer, first buy a hammer..."
In fact, the fastest way to evaluate sin() and cos() to high precision is to invert arcsin() and arccos() using Newton's Method.
Computing arcsin() and arccos() needs to be done using a transformation formula into log() with complex input - which is then computed using a complex number AGM -> horrifically slow
Uh
So does anyone actually use
MinGW x64 here?
I could, uh. Use some serious help figuring this shit out.
05:59
your issue is mingw specific?
Nevermind me.
I'm just dumb at figuring this shit out.
I'll struggle with it and I'm sure it'll just work automagically eventually.
-1
Q: missing return statement for my program is it fix able?

Tim Jr StadtherI don't know why this always compiles saying that it is missing a return statement, if anyone can help me out that would be great! Iv'e tried for a couple of hours and still don't see why this code won't compile. I'm not all the good with java but this code looks perfect to me. import java.awt.C...

^^ beautiful title
0
Q: Most general way to recieve a functor as a parameter?

MikhailI have a particular class (clock) that implements a function called tick which should be passed to constructor. How do I describe a C++ style function (myClass::myfunction, as opposed to the C convention) as the parameter to a method or constructor? Can anybody help me by writing the declaration?

Here's probably a really stupid question.
I have a picture on which I KNOW the DPI is 96. So, on my program, I have a for loop that iterates every 96 pixels and draws a line so it should make an inch grid. But whenever I print it out, it's like fuckin' 3/4 of an inch
Am I printing it out wrong or something stupid?
@Crowz Does your printer know it's supposed to be 96 DPI?
Printers print at much higher resolutions than 96 DPI (if you're talking about the physical printer device)
06:03
@Mysticial Did you expect somebody writing Java to know how to think clearly?
I tried soldering some surface mount integrated circuits today. It was actually nowhere near as hard as I thought it would be.
> Still no rotation on the scene because I'm a lazy motherfucker
@Insilico I dunno. I tried changing the number to 120 in the for loop and it seemed to basically print the same picture
^ Excerpt of one of my Git commit messages.
06:04
@EtiennedeMartel Like a boss.
I wonder why my team mates will think.
@Insilico That gives me hope, because I'm about to get into electronics and stuff soon.
They know I swear like a sailor, so...
@EtiennedeMartel "burn the lazy motherfucker a the stake!" Oh wait -- that sounds like work, guess not.
@ThePhD Then again, these were TSSOP-16s, not BGAs. :-)
I figured I should try out SMD soldering since a lot of really interesting/useful devices are available only as SMD or are cheaper in SMD packages.
06:07
watch some you tube vids on smd soldering. they make it look 10x easier than thru hole
@doug65536 It actually is easier than thru hole.
@Insilico Yeah, gets a little...dicier with, say, 300+ pins/contacts/balls.
The hard part is the fact that they are just really small
Oh.
Well then.
the flux and solder resist on the board make bridges almost never happen
disclaimer: from the small amount of it I did
06:08
The only problem is that if I want to prototype them, I need breakout boards, and they often cost more than the chip itself (i.e. 2-3 times more sometimes)
And I have yet to perfect my homemade PCB fabrication skills (which is as to say, not much)
yes I made an atmel to LCD interface and I built 3 or 4 adapter things to hook it up to the breadboard
@Insilico Can you say "FPGA" boys and girls? I knew you could! :-)
thats nothing compared to an FPGA
I ended up with a multi-font variable-spaced wordwrap text renderer by the time I was done playin with it (ATMEGA1284P) :)
@doug65536 Exactly -- one FPGA starter kit, and you can "build" all sorts of fun toys. When you get bored with one, on to the next without spending any more money either.
Mainly I want to make my electronics stuff talk to my computer through a proper USB interface and not through some USB<->COM port business, and almost all the chips that can do USB are surface mount.
@JerryCoffin Do you have a FPGA starter kit you recommend? I'm actually trying my hand at something outside of microcontrollers
06:11
"proper" as in good-luck-finding-an-API
why fpga? whats your application. I LOVE atmel microcontrollers. no BS
real CPU
@doug65536 FPGAs are more general than microcontrollers
yeah I know, crosses almost over into SoC
also, FPGAs are fast as all hell
Writing this stuff down.
After doing data harvesting and reading from sensors, I'm going to need to send them to a computer VIA USB.
For example, you can implement circuits with insane timing requirements (think: Large Hadron Collider)
06:13
So I need to learn how to do all this stuff you're talking about.
@Insilico Digilent has some pretty decent ones (I have both their Spartan 3 and Spartan 3E starter kits, been pretty happy with both).
@ThePhD The Atmel microcontrollers I'm looking at are either the ATmega8U2 or the ATmega32U4
Both have built-in USB interfaces
That's comforting.
There's breakout boards for both of them, which is nice because they're both TQFP/QFN devices.
@Insilico They can be fast -- but mostly for highly parallel problems. You can do higher clock speed than most microcontrollers, but nowhere close to the CPU in even a really low-end desktop/laptop.
06:16
(incidentally, some Arduinos use ATmega8U2 or ATmega32U4 chips, so you'll find lots of stuff online about it)
@ThePhD that's basically similar (didn't compare numbers) to atmega1284P + USB controller (which is very cool to have)
and its a pleasure to program in my experience. and the self-programmability and in-circuit programmability are nearly trivial to implement
Grrrr.
room topic changed to Lounge<C++>: As expected, Cat has quite the sexy voice. [c++] [c++11] [c++-faq] [get-out] [no-questions]
Also, Atmel microcontrollers can be programed with a free C++ compiler (avr-gcc) that is used by Atmel official tools.
all I/O is memory mappable so you can use pointers where convenient
06:17
Project Management on Sublime Text 2 is not as nice as I thought it would be.
oh and the atmel IDE is absolutely beautiful
@doug65536 It's slow as shit though. Which is not surprising since it uses VS2010 as the basis for the IDE
integrated emulator for cycle-accurate source level debugging
0
Q: Why is this wrong?

Sanjay DevnaniTrying to understand why s[0]='H' fails. I'm guessing this has something to do with the data segment in the process memory but maybe someone better explain this? void str2 (void) { char *s = "hello"; printf("%s\n", s); s[0] = 'H'; //maybe this is a problem because conten...

functionality-wise and polish-wise, the atmel ide is amazing. they probably saved to much time pulling in the big fat vstudio ide that they had time to add great features
06:19
^^ anyone got a dupe handy?
@Insilico Not the one I had in mind. Both of should be closed as the "primary" one.
-1
Q: Why do buttons need an ID to be clickable?

PattThis might be a very silly question but here it is: Why do buttons need an ID to be clickable? Case 1 does not work: <button class="clickable" type="button"> Click Me </button> Case 2 works: <button class="clickable" type="button" id="INeedAnIdToBeCLickableOrWhat"> Click ...

lul
why does Cat have a sexy voice?
@Mysticial It's the best I can come up with SO's search thingy
06:23
@LightnessRacesinOrbit Dunno. I guess he was born with it.
@EtiennedeMartel ok
would people downvote if the title was "why do clickables need to have IDs to be buttons"
@doug65536 yes
the content of the question is the problem
he basically asked "why is the sky green?"
didn't even bother trying his own code
@Mysticial Call me lazy, but sometimes it's easier to write an answer than find a suitable dupe.
06:25
@JerryCoffin I agree...
@JerryCoffin ah, so you're the problem!
cause I still can't find the dupe.
:)
@LightnessRacesinOrbit yeah thats a terrible question
@LightnessRacesinOrbit Says the person who answers all those "too localized" questions.
:)
for a moment I believed him
06:26
@Mysticial I do have that bad habit
@Mysticial I closevote it but then sometimes I can't resist the lure of free rep
ahaha
@Mysticial I admit hypocrisy in that regard, though not at all to the extent of some others that I could name
:)
guys there are completely elementary questions that have hundreds of upvotes
and, cruciually, I certainly don't forfeit the right to bitch about the habit
@doug65536 yeah, one was posted just earlier
@LightnessRacesinOrbit At least you're not a afraid to admit it. I respect you for that. :)
06:27
@LightnessRacesinOrbit Sometimes. IMO, it's worse to close as exact dupe when it's really not (or when it is, but it's not apparent except to people who already know and understand the answer).
@doug65536 Only hundreds?
here's one I did. guy asked for something, boom, copy pastable answer. 1 upvote, no accept: stackoverflow.com/questions/10850377/…
738
Q: How do I remove a git submodule?

R. Martinho FernandesAnd by the way, is there a reason I can't simply git submodule rm whatever?

@doug65536 boom not constructive
@LightnessRacesinOrbit Just go down the list the here: stackoverflow.com/questions?sort=votes
really? whats not constructive about an answer that covers multi-monitor and the respects taskbar position
06:28
Almost everything would fall under "bad question" under your views. :P
@Mysticial you're going to give me an aneurism
@doug65536 it's open-ended as frak
@LightnessRacesinOrbit lol
so you must know the entire win32 API before posting questions to SO
@doug65536 that's not at all what it means
but treating SO as your first port of call for acquiring knowledge of any kind is not constructive
its a corner case question: its not a GUI app, asker doesn't know where to begin
06:30
FWIW, I think not constructive is a sillyly-named closevote reason
("sillyly"? hmm)
Just ignore Lightness, please
@LightnessRacesinOrbit In other words, you'd rather have it named "I don't like it".
@LightnessRacesinOrbit "foolishly"
if the asker doesn't know where to begin, then they have not yet performed sufficient research to post an SO question. That's precisely what **not constructive** means&dagger;.

&dagger; not really
lol
06:31
you see good questions stomped all over all the time on here. and you see silly "is for loop better than while" get piles of attention
@Mysticial Doesn't fit the Q&A format. Is asking for debate/discussion/open-ended exploration of a topic.
This is not a discussion forum.
@doug65536 yeah :(
@LightnessRacesinOrbit Here, have an ulcer:
2272
Q: The *right* JSON content type?

OliRight I've been messing around with JSON for some time, just pushing it out as text and it hasn't hurt anybody (I know of), but I'd like to start doing things properly. I have seen so many purported "standards" for the JSON content type: application/json application/x-javascript text/javascript...

1-liner answer gets 2k upvotes.
that's a perfect answer to a retarded question, to be fair
OP didn't even Google, apparently
@JerryCoffin the question remains, though. why is there no conjunct for "sillyly" and what is the real term instead of "conjunct" hmmmmmm
06:34
I actually don't really understand how that question is so popular. It actually has few views than the redirect page question.
@LightnessRacesinOrbit To be fair, SO's goal is to be a the ultimate repository of programming related information.
And yet has double the votes.
hah, Yanks have an _adj._ "sillily"
http://www.thefreedictionary.com/Sillily
don't try to parse language. they never wrote a compiler when they designed english
@EtiennedeMartel fsvo "information"
er, markdown italicisation fail
0
Q: Italicisation does not work with trailing period in chat

Lightness Races in OrbitWhen I write _adj._ on a StackExchange post proper it gets italicised: adj. When I do the same in chat, it does not: _adj._

I would link to this chat in the question, except I've been ranting.
Meta hates me enough as it is
06:36
@LightnessRacesinOrbit According to the link, it's an adv.
Er, yes, that
oops
:)
adv.
you insist on italicizing the period do you?
:7278315 Actually, "sillily" is a flower made out of sand.
@LightnessRacesinOrbit Possible dupe of meta.stackoverflow.com/questions/70141/…
What the hell. I thought I failed at markdown.
06:39
@Rapptz Goddammit!
It's even in the Newbie Hints.
lol
@LightnessRacesinOrbit Let me summarize for you: "why does markdown suck?" .
haha :)
fine, I'll mark as a dupe. not deleting though. let's get some attention and comments first.
@LightnessRacesinOrbit After the free meta-rep too, eh?
@JerryCoffin don't care about rep. just attention.
06:41
Testing, `code`
comment?
Ah.. so I guess it still sucks.
hmmm speaking of copy/paste. why do they have different italicization behavior?
that italics bug. they must have copied the code and reworked it for the chat field
ah well, git-er-done ftw
ok
-1
Q: Change output of script

pankajmy table is named as pank i know how to connect to the database but following programming is giving me problem my table is: id| stream | title | cast | director 1 | stream1 | title of the movie1 | cast1 | director1 2 | stream2 | title of the movie2 | cast2 | director2 3 | ...

sigh
@JerryCoffin: Please tell me that at least you disagree with these questions existing
supposedly 6 spam flags will delete any post
I wonder why nobody has ever created 6 accounts to abusively nuke something.
It's not hard to get the 15 rep needed to flag.
06:46
I would expect 6 spam flags from trusted accounts.
their server is probably too smart to believe its 5 different people at same IP at same question so close together
@StackedCrooked Nope, from any account.
@Mysticial especially not if you have 5 other accounts to upvote you!
@LightnessRacesinOrbit I don't think any questions about PHP should be allowed!
@Pubby exactly :)
06:47
whats wrong with PHP?
I mean like... you could potentially take down any post that isn't locked.
@doug65536 "closed as too basic"
I guess PHP has lots of barely-even-programmers using it
@doug65536 As we routinely point out around here, Java is the worst programming language ever designed. PHP is the worst programming language ever.
06:48
anyone ever seen a LOGO programming lang question on SO? lol
some of you may be too young to have even heard of LOGO. its kids language to draw shapes with commands
210
Q: How do I move the turtle in LOGO?

Joel SpolskyHow do I move the turtle in LOGO?

@doug65536 It was actually quite a lot more than that -- it was a fairly full-blown Lisp with somewhat modified syntax.
OMG. someone on SO knows LOGO
lmao
@doug65536 SO is a big community. We even have people here who know Haskell.
5
06:51
Zoidberg isn't ehre, so I can't bother him about Sublime Text 2.
@doug65536 I suggested Logo to Seymour Papert. (no, of course not really).
@Mysticial Silly 09 questions. That should be downvoted to -5!
yeah logo was pretty neat. in a time when 80% of the US population has 12:00 flashing permanently on their VCR
What have you tried? Thought about? Any ideas at all? Effort? SO is not intended to be a replacement brain. — Lightness Races in Orbit 20 secs ago
I'm going to have to go before I get worse
Tata
@LightnessRacesinOrbit Later. I'd tell you to get outside and enjoy the nice weather -- but I realize you're in England...
06:53
101
Q: How to pair socks from a pile efficiently?

amitYesterday I was pairing the socks from the clean laundry, and figured out the way I was doing it is not very efficient. I was doing a naive search - picking one sock and "iterating" the pile in order to find its pair. This requires iterating over n/2 * n/4 = n2/8 socks on average. As a computer ...

^^ holy shit, last time I saw it, it only had like 30 votes
@JerryCoffin also it's 6:54am
FWIW it's pleasing and snowy out, but I was walking around in it for some hours earlier and have now had quite enough of that
@LightnessRacesinOrbit Exactly -- perfect time to get out with a camera, if you have one.
appreciate the sentiment, mind
yeah I love that stuff but... I've done it to death around here in these conditions
also I'm in a heavily urban area and wondering around with a D40 and tripod at 7am gets one in more trouble than not
@Mysticial: SO voting is mass mentality. Anything that gets > 30 votes gets voted by whoever stumbles upon it. I am not sure half the folks who vote even understand what they vote for. People feel compelled to vote for the simple reason that they feel left out if they don't vote on an already highly voted q/answer.
06:56
@LightnessRacesinOrbit So get an IQ 180. I have it on good authority that terrorists never use medium format!
Not necessarily. I find that having a lot of votes does two things:
1. It attracts a more views.
2. It decreases the chance it will be upvoted because people think it has "enough" votes.
I've definitely noticed this on the branch predictor question.
So it's two factors that work against each other. I can't say which one usually wins though.
@JerryCoffin the cops aren't the problem. fathers are
@Mysticial More views == More votes or atleast more chances of getting votes than equally good Qs which don't get enough views. So the first one wins(usually)
and just general people who don't like it when you set up a tripod at 7 in the morning taking photos of the urban area
also I really cba :)
I may go shooting properly at some point before it all melts, but not tonight
@LightnessRacesinOrbit I have to admit, I talk about shooting at 0700 a lot more than I actually do it either...
06:59
@AlokSave I guess that's true for the most part.

« first day (827 days earlier)      last day (4347 days later) »