« first day (1266 days earlier)      last day (3683 days later) » 

12:00 AM
Sleep well
 
I have a friend that contemplated studying aerodynamics, but he thought he couldn't handle it
good night people
I'm just sitting here with my fucked up sleep schedule =/
 
@nightcracker not really, if you have the background required it is pretty straightforward
cu tomorrow!
 
12:32 AM
why hello friends
 
12:42 AM
ghello
 
1:13 AM
How many people here do VB.net? :)
Well whoops, just now realized this is a room for C++ xD
Nevermind then lol
 
1:28 AM
Any people around who know how to use GMP?
 
Good manufacturing practices (GMP) are the practices required in order to conform to guidelines laid down by agencies which control authorization and licensing for manufacture and sale of food, drug products, and active pharmaceutical products. These guidelines are laid down with the intention of providing minimum requirements that a pharmaceutical or a food product manufacturer must meet while manufacturing drugs or food products ,which then assures that the products manufactured/produced are of high quality and do not pose any risk to the consumer or public. Good manufacturing practic...
 
rofl
GMP. :P
Need help compiling it for C++...
 
Why would you use that over boost::multiprecision?
 
because GMP is a lot more mature?
oh wait
boost::multiprecision is a GMP wrapper?
ah it's a wrapper for many things, GMP is just one implementation
 
1:47 AM
@Borgleader ... huh? Never heard of it.
googles
Ooh, cool.
> Revised $Date$
rofl
 
hmm
I'm currently thinking about a problem I'm not sure if it's even possible to solve cleanly
it might be the halting problem
 
@Borgleader I'm assuming you just include the header files in your project as reference files, and don't have to compile or configure it?
 
hmm
I think I'll just set a recursion limit
 
@hichris123 Does it say it's header only?
 
@Borgleader ... nope. :P (yes)
Didn't find the "Getting started" page when I posted that.
 
2:01 AM
Why am I failing so hard at writing an infinite loop process in OS? :|
 
@Crow Dunno. Most people write infinite loops without even trying. :)
 
what even is an infinite loop in assembly? jump to jump instruction jump back to jump instruction ?
 
here: jmp here
 
Error	1	error C1083: Cannot open include file: 'gmp.h': No such file or directory	c:\downloads\boost\boost\boost\multiprecision\gmp.hpp	19	1	numberproject
^ Okay...
Weird.
 
2:48 AM
guys, what do you think is a sane default for a maximum depth on a build tool (similar to a Makefile)
it is needed if you for example accidently create a rule with output *.o that depends on *x.o creating an infinite chain of x.o xx.o xxx.o xxxx.o xxxxx.o, etc
 
 
1 hour later…
3:55 AM
can you show me how? They say writing a code is like writing a poem. I want my code optimized. — AJ Mendoza Feb 25 '13 at 4:52
The nicest way to ask "show me the codez" I ever saw on SO
 
4:07 AM
If I developed a hue-shifting metamaterial, I would photobomb people's Instagram pics with a sheet of material that precisely undid the filter they were using.
4
 
@LoïcFaure-Lacroix lol, he wants his validateForm() to be poetic
 
4:28 AM
@Feeds best version of the poem yet
 
 
1 hour later…
5:31 AM
quiet time of the day ...
 
5:44 AM
hey telkitty
you need to get 1 more rep
1234
 
1 upvote on a question + 2 downvotes?
 
it is done
I put the 2 downvotes on your highest voted question/answer, to minimize impact :D
 
> La mémoire ne peut pas être "written"
lol
 
@nightcracker lol, well done!
 
6:00 AM
my latest pet project: github.com/nightcracker/deps
 
morning!
 
evening
 
6:32 AM
Urrgh!
Where did I go wrong???
 
weird
 
you got 2048
 
"bcoz" ... srsly? — sehe 12 mins ago
 
Within spitting distance of 4096
 
@Potatoswatter you played a game
 
6:34 AM
Seriously, I have a slacking problem.
 
Q. "Will deps automatically find compilers, libraries and headers?"
A. "Not really."
Mmm. sounds indecisive
Oh lol. Ahahahaha. I just answered that boost-serialization question by linking to another answer (and giving a PoC on Coliru, of course :)).
I just noticed that the linked answer was... on a question by the same OP
This OP probably shouldn't be meddling with
Achievement unlocked. Quoting a comment withing a comment.
 
@Samoth Damn you!
 
@Potatoswatter so much love :)
 
@Samoth Wait-a-minute. Is that the same game? Why is the goal so high?
 
6:43 AM
@Potatoswatter I've fork the original a month ago
2048 became a low goal
So I did mine
 
The strategy is generally the same, but the games just take longer to complete.
 
those controls are bad
 
6:56 AM
@R.MartinhoFernandes RuleOfZero FTW
0
A: Copy Constructor and UniformInitalization list

seheDon't do all the work! Instead, use the Rule Of Zero: struct FileResource { explicit FileResource(HANDLE hFile = INVALID_HANDLE_VALUE) : _hFile(hFile, &::CloseHandle) { } private: std::unique_ptr<void, decltype(&::CloseHandle)> _hFile; }; You can use it just like you wanted...

 
@sehe nah it's not indecisive
there is some minor compiler-finding utility built-in, but it's more as a getting-started feature than something like autoconf
so the answer is "not really"
 
Yeah. I said "sounds", not "is"
 
ah ok
 
communication isn't about the facts (and if we already knew, we wouldn't be reading it)
 
what would you suggest?
 
7:03 AM
TBH when I started reading, I lost interest in "a minimalist..." (buildsystem, no less :)). I read on because you linked me.
 
I feel honored :P
 
@nightcracker I'd try to sell it with hard goals - no fluff in the introduction paragraphs
 
(or maybe you find the bullshit I spew so funny you were reading for humor)
 
Nah. And I still stopped pretty soon :(
Need to go,
 
ah ok
thanks for your feedback anyway!
 
7:08 AM
yo
 
Does anybody here want to play questions?
 
morning all
 
7:24 AM
mawnin
 
moaning
 
I'm feeling particularly groggy this fine day.
 
I woke up with this question: why is this a pointer rather than a reference?
 
user1804599
@AndyProwl it was introduced before references were in the language.
 
user1804599
I.e. this is older than references.
 
7:26 AM
ah, that explains
 
user1804599
Bjarne has it on his FAQ too.
 
and then the backwards compatibility stuff
damn, I should do more Bjarning
 
Bjarne has a book devoted to "Why is X like that in C++"
 
user1804599
Fuck you, VMware.
 
user1804599
Y u make kernel panic.
 
7:28 AM
does anyone actually read C++ books at his/her leisure for fun?
 
user1804599
@Rapptz What book is it?
 
Design and Evolution of C++
 
user1804599
Is it available for free?
 
illegally, probably
 
user1804599
Hmm.
 
7:40 AM
@Rapptz how would it be available illegally?
 
user1804599
Pirate Bay.
 
@nightcracker Like everything else.
 
Xeo
@nightcracker As a PDF download somewhere in the interweb
 
@Xeo how is that illegal
 
Xeo
erm
 
well I don't live in minnesota with stupid laws
 
Also depends on whether Bjarne Stroustrup & the publisher want to sue or not ...
 
based on what law can they sue me?
 
Xeo
The same laws that allow them to sue you when you download a movie without paying, I'd imagine
 
@Xeo and what laws would those be?
hint: US law is not international
hint: I do not live in the US
 
Xeo
7:52 AM
hint: I don't either
 
it's legal to pirate stuff in the netherlands?
 
Xeo
And people have been sued in Germany for illegally downloading movies.
 
hint: it's legal in the netherlands to download music, books, films, etc and to copy them for personal use
you can't share copyrighted stuff though - that's illegal
 
if you can't share in the public, then there is no where to download from ...
 
@nightcracker got a source for that?
 
7:55 AM
@telkitty.exe I can't legally share - other people can (legal or not) share to me
 
user1804599
@Rapptz Dunno. Probably.
 
but just because the person that is sharing is doing something illegal doesn't mean I am
 
user1804599
Nobody cares, really.
 
user1804599
You won't get sued.
 
user1804599
7:59 AM
And blocking websites is illegal by law, so they cannot block TPB either.
 
> In beide gevallen geldt dus de in rov. 5.12 in fine omschreven uitleg van artikel 16c Aw en is downloaden uit illegale bron toegestaan. Het in rov. 5.1 genoemde verweer van FTD treft bijgevolg doel; nu naar Nederlands recht downloaden ook uit illegale bron is toegestaan, is het als tussenpersoon verschaffen van diensten die door derden daarvoor worden gebruikt, alsook het enkele (structureel) faciliteren/stimuleren daarvan, niet verboden of onrechtmatig.
@rightfold that's not necessarily true
@rightfold there was an ip ban in the past, but it was lifted by a judge because studies showed the ban was ineffective and was unnecessarily hurting freedom of speech for no gain
 
user1804599
In the past.
 
user1804599
There is a net neutrality law now.
 
not yet
 
Anyway.
 
8:01 AM
Lounge<Law>
 
Special snowflakes aside
It's illegal in most countries
 
who cares about most countries?
 
user1804599
 
Xeo
@nightcracker Actually, I remember the laws being something like that in Germany too. People were still sued.
 
user1804599
If they were to sue all pirates, everyone would be broke.
 
8:07 AM
except the lawyers
 
@Xeo IIRC it's also illegal to download shared copyrighted material in Germany.
 
user1804599
I may copy it, right?
 
I may be wrong though. But aren't you normally sharing what you are donwloading automatically in most of those networks?
@rightfold only very restricted.
 
Xeo
@ArneMertz yea, but you can usually turn that off
 
user1804599
Do what you want, 'cause a pirate is free.
You are a pirate!
 
8:18 AM
@rightfold you may make "safety copies" for yourself in Germany, but you are not allowed to give them to someone else. If you make two or three copies to give them to friends, nobody will care. If you make hundreds of copies, the will care, regardless of if you sell them or give them away for free.
uh I just noticed - gold badge at last :-)
 
user1804599
Fuck.
 
user1804599
Eyelash is poking my eye.
 
how to eat soup with a knife:
3
Q: C++11 range-based for loop: how to ignore value?

John ZwinckI have a C++ container and I want to run a loop the same number of times as there are elements in that container. But I do not care about the values in the container during the loop. For example: for (const auto& dummy : input) { cout << '.'; } The only problem is, dummy is an unused var...

 
user1804599
8:33 AM
Ork ork ork, soup is eaten with a spoon.
 
@Rapptz that lambda still captures the argument even if you omit the identifier; not sure what compilers do with it tho
 
@ScarletAmaranth those answers >_<
 
@Abyx yeah this is what SO has been reduced to; giving approximate answers to horrible questions
 
@ScarletAmaranth Irrelevant.
 
@Rapptz I agree that OP is being a derp but you suggested an equivalent solution
 
8:41 AM
OP obviously shows no intent in "not capturing the argument"
considering his solution is (void)dummy
looks like he just wants to turn off the warning
which is what that std::for_each does
either way, question's retarded
 
what's the point in capturing the element in that case; anyway, fair enough
 
no, no, no
just suggest PHP and move along
the young apprentice must be tested in their capability of judging on their own
 
user1804599
A good first language is Malbolge. It's very nice and easy to learn. — rightfold 7 secs ago
 
either the apprentice succeeds and he will see The One True Way
or he doesn't and he'll develop in PHP
 
@ScottW ev, ... zv
 
8:55 AM
also thanks to reddit TIL that children in america have to pledge some allegiance or some shit o.0
that's some downright cult bullshit right there =/
 
"I got told to start VBscript [...]" - you're a bit slow to respond if your recommendation stems from 2001 — sehe 7 secs ago
@ScottW DON'T BE A SEHE, SMARTASS
 
sehe didn't you have to go
emphasis
 
user1804599
Dammit.
 
hahahahh
0
Q: returning const char* to char* and then changing the data

TahlilI am confused about the following code, stirng _str = "SDFDFSD"; char* pStr = (char*)_str.data(); for (int i = 0; i < iSize; i++) pStr[i] = ::tolower(pStr[i]); here _str.data() returns const char*. But we are assigning it to a char*. My questions is, _str.data()is returning pointer to a c...

 
user1804599
Why did I not work on Styx yesterday.
 
8:57 AM
HOW CAN YOU HURT ME YOU ARE A DOG
 
using std::transform with toUpper is too overrated
 
I ALSO HAVE TEETH
WHY AM I YELLING?!?!
 
user1804599
Binary search treetops.
 
feeeeeeeeeeeeeeeee...... tinitus
 
WANNA SEARCH FOR THE TOP OF MY TREE?
OH BABY I LOVE IT WHEN YOU DO A DEPTH-FIRST SEARCH
 
user1804599
9:00 AM
 
user1804599
I still love it. Especially the tooltip.
 
OH BABY BY ALL MEANS DO DEEP THROTTLE MY TRAFFIC
 
Xeo
@rightfold Coder humor~
 
user1804599
Dammit.
 
user1804599
Fuck this bug.
 
9:02 AM
FUCK IT HARDER
 
@rightfold +1
 
user1804599
Code y u duplicate data.
 
Must suck being a professional game developer/designer/etc on twitter
everyone shitposts hard
 
@Rapptz what do you mean
 
今年は日中花見に行けないとみて、この時間に桜を見にきましたよ。もう満開だなあ。 http://t.co/GPT669Udji
 
9:11 AM
getting flamed by a Bangalorean
@LightnessRacesinOrbit, what is wrong with you? I read all your responses on this page. Nothing useful whatsoever. You are only attempting to belittle and irritate others? Go back to youtube and continue your trolling there. — mpathi 6 hours ago
another on another answer and another (three, actually) on the question
amuseballs
he doesn't like it when people ask him to present data instead of making vague hand-wavy claims
 
Xeo
@Rapptz Approximately 1% of people in here understand that.
 
@LightnessRacesinOrbit, I am sick of this "present data" cliche, sometimes used to intimidate others. I did mention that it is a broad question. Also it was not to find whether time() is the culprit. Product has lots of time related operations (billions per day). There were about 32 worker threads. pstack over a week always showed that all of them are waiting on _time, though I wrongly attributed it to time(NULL) in the source code. Product runs on hp,aix,linux etc. Found this issue only on solaris. Though based on wrong assumption, the actual question was to help improving... — mpathi 4 hours ago
 
@Xeo there are 3 english "comments" that are bad too
Then there's the broken Japanese
ねえ桜井は、あなたがスマッシュ4を先延ばしに乱闘のHDリメイクを作ってみることはできますか?それは素晴らしいだろうから???
I just think it must suck
:v
 
@LightnessRacesinOrbit LOOK HOW IMPRESSIVE I AM - 32 WORKERS - BILLIONS OF OPS PER DAY, IT RUNS ON XXX PLATFORMS - HOW DARE YOU ASK FOR ACTUAL RELEVANT DATA?
 
user1804599
egulden.nl my god.
 
user1804599
 
user1804599
Concept & marketing COMPLETE!
Initial code Incomplete
 
user1804599
Nice job.
 
lmao
3 months ago
 
user1804599
kek
 
@Bilal oh well, this is my karma with that:
 
9:19 AM
@rightfold get lost, Orc :P
 
@rightfold toooooooooooo f ugly
 
user1804599
You know.
 
I do.
 
I know everything.
 
@sehe uh those meaningful names. arg0, e...
 
9:22 AM
thank you for commenting on random code under change
 
wait, that's your code?
 
What does it matter? It's about the color scheme. Move on. I'm not here to rehash the code that I'm having to maintain. Thank you very much. It's bad enough as it is
@Bilal But I won (using another plugin for the actual syntax highlighting colors) i.imgur.com/FH0U51u.png
 
wow. didn't want to piss you off, sorry.
 
user1804599
 
hi...i want to add a recommendation for "API design for c++" in this topic - stackoverflow.com/questions/388242/…
 
9:33 AM
@DeadMG dammit, you are right. I should go to the doctor about this morning sickness thing. This is getting a bit worse.
 
@user3493289 go ahead (in that topic)
 
I have it at work. Don't like it much.
 
it is not reviewed in accu but i have read that book and it is rated high in amazon as well...it has forewords from acclaimed authors as well
hi martinho...can u please tell me why
 
@user3493289 amazon rating means nothing.
 
IME C++ book s on Amazon cluster together according to quality. Good books have othet good books in the "also bought" list; bad books have other bad books.
 
9:36 AM
ok...then i will remove it....will see if anyone can review it in accu
 
there's a C++ book of a German author who has absolutely no clue about C++. We've been correcting his mistakes in the German C++ forum for years. Yet it has lots of 5-star ratings on amazon
 
@user I'm on the train now.
 
herbert schildt u mean :D i know we have some authors like him
 
I can search the chat when I get to the office and find my old explanation.
 
@user3493289 no. Jürgen Wolf
 
9:37 AM
sure martinho...no problem...i have removed the reference
 
user1804599
@user3493289 TIL Schildt is German.
 
Xeo
@ArneMertz C(++) von A bis Z?
 
user1804599
Schildt living in Germany is bullschildt.
 
@Xeo yeah. crappiest code I've seen printed ever
 
Xeo
Hahahaha. Those were my first two programming books :>
 
9:38 AM
haha...
 
user1804599
The book contains a lot of figures.
 
@nightcracker INORITE
 
and much to figure out why it won't compile or crash or not work in some other way.
 
Xeo
I read C von A bis Z online on galileo computing
 
user1804599
9:40 AM
My house is made of inorite.
 
C++ von C bis +
 
Xeo
figuring linked lists out was fun
 
user1804599
Unlinked lists are better.
 
user1804599
This list is now a linked list: gist.github.com/rightfold/ca7bc7535f2ee2a47112.
 
I agree, that was best left unlinked
 
user1804599
9:46 AM
:D
 
@Bartek "Never Wanted To Dance" is good
 
hahaha, T-Rex is on xkcd 1350.
 
user1804599
xkcd.com/1350 link for you lazy fuckers.
 
thanks for that @rightfold
I didn't know how to get to specific XKCD comics
 
user1804599
@LightnessRacesinOrbit You suck.
 
9:57 AM
I've done a tiny script that builds some dynamic text at runtime because the stuff in Orthello (a 2D framework for Unity) sucks and slows down the editor to a crawl; the script was meant to update the score so I was set on making it work with numbers
and by that I mean I made it in the most retarded way possible, basically working with every digit instead of just turning the number into a string and working with characters
... which would have allowed me to also have !digits in that text
which is what I need now
that was the dumbest mistake I've done in quite a while
I have to redo the thing because I was unable to see far enough ahead :(
 
BTW.
This looks yummy!
 

« first day (1266 days earlier)      last day (3683 days later) »