« first day (2756 days earlier)      last day (2184 days later) » 

12:42 AM
@Mysticial lololololol
 
@Mysticial Is there any evidence that SO usage is even dropping?
 
@Mikhail alexa.com seems to dispute a decline in stackoveflow.com traffic. alexa.com/siteinfo/stackoverflow.com
 
I haven't done any C++ all week
 
good
C++ is cancer
write C, be happy!
 
Literally been working on growing cancer in a dish for Mayo
I can't escape the cancer!
Is there some long term career advantage to filing a lot of patents on applications of a technology? I feel I'd get fucked by the cost to keep the patents alive.
But given that my provisional patents went through, I think I can pretty much patent anything?
 
1:05 AM
just don't patent a rectange with round corners
cause Apple owns that one
 
found it
 
1:32 AM
I have not touched C++ the whole year, I used to see some C++ code here, but even this is not happening now
 
1:48 AM
Today we are announcing important changes, including our new name - Google
Maps Platform, a simplified product structure, pay as you go pricing for
all, and more. Please take a few minutes to review the announcement to
familiarize yourself with the upcoming changes.
reminds myself I still to have to modify the apps to reflect foursquare interface changes and still have $100 apple ads money that about to expire
but instead, meeting some other deadline ... also that time of the month
 
 
1 hour later…
3:04 AM
So if your ISP knows you torrenting stuff, does that mean they are violating your privacy?
Not that I have used torrent in the recent years ...
 
3:22 AM
@Mikhail Not bad.
 
jww
3:48 AM
Hi Everyone. I'm looking into the requirements for a small side project in C++. I need some test hardware for CAC and PIV cards. Does anyone have a recommendation for the test gear?
 
 
1 hour later…
5:16 AM
@TelKitty if the postal service knows you're sending something, would you consider that a violation of privacy?
And, not that you specifically said it, but there are legitimate torrents ...like using it to get GNU : )
 
 
2 hours later…
nwp
7:02 AM
@TelKitty Yes. But it's probably legal.
 
7:31 AM
Morning :)
 
 
2 hours later…
Ven
9:22 AM
@LucDanton apparently not. but it's just a map(&[~]) away.
 
oh it's a Ven :o
 
@Ven cool beans
 
Ven
@Morwenn ohai!
 
what's up if anything? :)
 
Ven
Severe headache.
First night in Normandie involved a bit too many drinks :)..
 
9:25 AM
ouch >.>
I feel like I haven't had a headache for months if not years
I was more than a bit drink when I came back to my cousin's flat in Paris though xD
 
@Morwenn ಠ_ಠ
 
still aced the metro change in Châtelet
@Mikhail well, at least not alcohol-induced headaches
 
okay I take back the look
 
Ven
@Morwenn the fact there are no blinds here so I slept from 2am to 6am doesn't help one bit...
 
I hardly ever have real headaches anyway, small ones but nothing that makes me take paracetamol
@Ven you need to learn to sleep with light
 
Ven
9:28 AM
@Morwenn I do, yeah...
 
I've only got a curtain in my room, which lets light pass through, and I almost never close it anyway
even my window isn't closed (╯°□°)╯︵ ┻━┻
 
Too lazy to change the curtains at my place, put in a $1200 painting to block the hole
 
anyway, abusing calvados is almost always a bad idea x)
@Mikhail that's one expensive curtain
 
I can't afford the fucks necessary to buy a car to buy the curtain
 
sell the painting v0v
how many fucks is it worth?
 
9:39 AM
I sleep with my windows and curtains open but there is a fly screen on the outside
also my system is doused with drugs (because of the flu I had)
stop taking every thing from tomorrow
 
answered a question on SO, got downvoted for being a rep whore
 
stop being a rep whore
 
10:01 AM
downvoted for being a rep hooker, that's new
 
@StackedCrooked is it down?
@Morwenn 7
 
10:45 AM
@sehe Seems to be the daily reboot (uptime is 11min now)
 
11:01 AM
@StackedCrooked so the daily reboot takes.... how long?
:)
Also, you optimizing for US timezones? Or China maybe
 
or maybe he just set it to 12pm and thought it was midnight...
 
@sehe usually less than a minute.
@sehe Actually, I reboot every 25 hours.
So everyone gets a fair share :)
 
11:16 AM
1
A: How to read a file, reverse part of the text and write that reversed part on another file on C++?

paddyYou have the right idea. What you're missing is that if you want to write the reversed lines, you need to either write them inside the loop or store them for after. You are doing neither of these things. Currently what happens is you overwrite line every loop. And whatever is left in that str...

im always conflicted on these answers. On the one hand, it's a good answer. On the other, they just did OP's homework.
 
nwp
Maybe you should install serverstats. It makes pretty-ish graphs.
Although I'm not sure where I got that package from.
 
12:00 PM
@StackedCrooked cool
@Borgleader if it's a good answer, upvote
We're not here to upvote/downvote on OP's ethics. Especially not alleged/suspected ethics
 
@sehe Well I wouldnt upvote answers on questions that are closed and imho that one should be closed (as "why isnt this code working")
 
I would. I'll upvote good answers.
And I'll even upvote the question (if possible) if it's useful to others
 
@Borgleader If the answers are worthwhile then I want to encourage the answerer
 
Well for example, on duplicate questions I'd rather the answer be added to the original than the duplicate (and frankly most of the time the answers on duplicates dont bring anything that wasnt present in the answers on the original)
And in this case, it might be worthwhile in the short term for OP but its a case of "give someone a fish" vs "teach them how to fish"
 
nwp
But if you teach them how to fish they stop buying your fish and your stock just went down. How is that a sensible strategy?
 
12:15 PM
the C++ will influence them to appreciate your fish and buy it, although they would probably know how to fish, they would refuse to because of C++ overall complexity
 
@Borgleader I've seen some where the dupe is a better question than the original
 
or teach them invest so they can accumulate enough to buy a fish farm
 
It's rare for such an answer to be "worthwhile". But if it is I
1. upvote
2. consider flagging the posts for merging
@Mgetz ^
 
@Borgleader tbf the fishing tools on SO suck
 
@Borgleader It's often a case of "Teach someone how to catch, cook and eat the fish" (by example)
I don't discredit the answer because it shows how to properly prepare the fish after catching
In fact, I don't like posting an answer if it doesn't show me eating the fish in various dishes. A minimal answer contains at least 1 live demo for me. And frequently, 3 competing alternatives.
 
12:33 PM
@Mgetz Thats why I use google and prepend stackoverflow to my query ;)
 
1:21 PM
@Borgleader When you flag for merging, use a custom flag and ask for a reverse merge. Thinking about it, a Q&A site should be implemented as a bunch of git repos with an index.
@sehe Imagine that: a polar bear catching and eating fish! Am I allowed to finish up with eating a nice, juicy New York strip steak?
 
so what if none of the answers to the original question works?
like maybe there is a update to certain interface, setting is different etc?
in that circumstance, how many would use bounty on a question instead of posting a duplicate?
 
@TelKitty Updated API? Branch and rebase!
 
1:56 PM
@JerryCoffin you are assuming people doing homework actually use version control ...
 
Feb 18 '13 at 23:35, by Jerry Coffin
@Cicada One thing I dislike about Git is that you can (rebase).
 
2:54 PM
What would you consider a good site to learn C++? I already have a good grasp at Java and basic knowledge on C, so it's not about learning what a variable is. Rather gaining specifics of C++.
Maybe with some advanced topics and examples.
 
tbh I've not a single idea what's a good way to learn C++
once you've got a project you could check Arne Mertz Simplify C++! which has plenty of small, easy to understand and quite relevant articles, but it's better to have a project first :p
 
@Strict lots and lots of practice
 
Yes. Learning by doing I guess. :b
 
That's probably the best: start a humble yet interesting project, solve problems, search the internet to see whether there are better ways to solve the problem, read articles, try to apply stuff you've read to your code when it makes sense, etc...
 
3:23 PM
@Morwenn where did I hear that name?
 
@ScarletAmaranth he's around here once in a while
 
4:05 PM
@sehe Yup--I still think that at least on a theoretical level rebasing is kind of a poor idea, but I've given up on fighting it.
@TelKitty Oh, I thought we were still talking about the idea of a Q&A site as git repos + an index.
 
 
1 hour later…
5:16 PM
@Servy What about on my main account? Am I just fucked now? — Steve 40 secs ago
^^ /cc @Borgleader
 
5:45 PM
Not sure if joking or
How Stallman usually use Emacs
If you ever buy a Butane soldering iron, read how to repair it before starting to use it
Apparently some bad gas are oily and will clog the nozzles and your newly bought iron will stop working the second time you use it.
 
Why do you need a breakpoint at abort?
 
To control if you want to abort apparently
 
I mean. It's not like you can change the IP once the program breaks...
 
@Mikhail Because after eating goo from under your toenails once too often, the voices in your head told you to?
 
6:03 PM
@Mikhail I assume so that one can examine things in case you stumble on a bug during normal use? abort is a failure quit after all
 
6:52 PM
@Mysticial rekt
 
except abort isn't abort_retry_cancel()
 
7:38 PM
Coliru is now using GCC 8.1.0 by default. Let me know if something doesn't work.
 
@LoïcFaure-Lacroix I usually assume anything involving Stallman is going to be off the deep end. I get the guy's point... but he's a bit of an extremist about the oddest things
 
nwp
@StackedCrooked :(
 
That was fast. :)
 
nwp
That's not a gcc8 thing though, it has never worked with sanitizers before.
 
/proc is not accessible from the sandbox
 
nwp
7:49 PM
Is there a way to fake it? I imagine the sanitizers only need read access, so a copy might be safe and good enough.
 
New Spectre variants coming out soon. Let's use them to get the login credentials to Coliru. Then it will solve everything. :)
 
@nwp I temporarily mounted /proc. So it works now. I wonder if I should enable /procpermanently.
 
nwp
I have no clue what the security implications are, but I really want to see sanitizers work.
So many mcves could be just put on coliru and sanitizers catch the bug. Especially useful for windows people that have no easy access to sanitizers.
 
@Mysticial eh... rowhammer that thing
@nwp pretty sure the clang people ported quite a few
 
@Mgetz I wanna see if the AVX Spectre is one of the new 8 that will be announced shortly.
 
7:53 PM
@Mysticial Oh jesus.. Skylake X is f@$#ed
how big are the cache lines on that thing anyway?
 
Still 64.
 
nwp
@Mgetz I have not managed to get them to work on windows yet. It would be a huge upgrade to have them for work. And remove the primary reason I use linux.
 
@Mysticial so yeah... single AVX512 instruction after an if... hits a massive chunk of cache
could be really nasty for an AVX 512 based memcopy
 
@Mysticial so not only do you get confirmation from the clock down that the path was taken but if you can force the path again you can see what data
 
7:57 PM
@Mgetz No, you use the fact that it clocked down to know that you read a 0 or a 1.
So clock down vs. no clock down.
 
tbf I don't fully understand all of SPECTERE and MELTDOWN
 
Inside a mispredicted branch, you read the address that's you're attacking. You get either a 0 or a 1.
 
@nwp Well, it's enabled for now. I'll disable it if abuse occurs.
 
Depending on whether's it's 0 or 1, you execute an AVX/AVX512 instruction.
 
nwp
@StackedCrooked Awesome!
 
8:00 PM
Once you recover from the misprediction, you run a small benchmark to see if you're running at full speed or AVX/AVX512 speed. Now you know whether the bit you read is a 0 or a 1.
The tricky part here is that you need to branch on the 0 or 1 that you read. And depending on whether that branch gets predicted correctly, it may mess with the results.
So while I haven't worked out the exact method to make this exploitable, it's still a door that seems open enough that someone else smarter than me can figure out.
 
@Mysticial oh god theres new ones?
 
@Borgleader They announced there are 8 new ones. But they haven't published the details of them yet.
I've been speculating about the possibility of an AVX-based variant. But I've never bothered to try to make it a proof-of-concept for it.
But it's an obvious enough attack vector that I'm sure someone else out there has thought of it as well.
 
8:46 PM
I used Notepad++ when I wrote my first Clojure program back in 2010. I simply bound the build/run command to the clojure command line.
Notepad++ worked well for me because it had paren highlighting.
 
But does is have rainbow paren highlighting?
 
Nah :)
 
I've never used anything with rainbow highlight
 
I've never used anything without rainbow highlight
 
@Morwenn Would that be helpful?
 
8:56 PM
@fredoverflow I know it's used to easily match opening/closing parens in LISP dialects when there are like 6 closing parens in a row
 
...probably not that pressing in Clojure with ) and ] and }
 
still, even in Python I wish I had that when I have to deal with long math expressions :/
 
nwp
IDEs tend to have paren highlighting, so when the cursor is next to one the other lights up.
Not quite rainbow, but maybe close enough.
 
yeah, but differentiating them all at a glance helps sometimes :)
 
@Morwenn write it in Mathematica, then use the CForm operator to get c syntax
 
9:06 PM
:hum:
 
9:18 PM
@fredoverflow Perhaps he should have looked a little more first (though his might be nicer):
 
I don't use vim v0v
 
You want rainbow or not?
 
the learning curve of vi is too high for my great laziness
 
9:22 PM
meh :/
 
nwp
There should be a price for using vim on a dvorak keyboard programming concurrent code in C++.
So much brain power not going towards the problem.
 
I have a colleague using a DVORAK, it's really terrible because you can't just borrow his keyboard
 
@nwp There is, just like any other use of vim. The price is that you're using vim.
 
@Puppy security measures!
even better if he's using a qwerty keyboard with that
 
I think he is
 
9:26 PM
oooh that's evil
 
Reminds me of a story I heard years ago about a guy who swore up and down that he could log on sitting down, but not standing up. Turns out two (but only two) key caps had gotten swapped. When he was sitting he'd touch type, but if he was standing and looking at the keyboard, he'd watch his hands, and go by the swapped key caps.
 
@Puppy I think it's wonderful
Yet it's easy to change the keyboard layout and who watches his keyboard
 
On the keyboard I'm using right now, you'd better be able to touch type. Markings are completely worn off of some keys, and mostly off of others (but you can still read the "pause|break" key perfectly!)
 
what about the scroll lock key?
 
nwp
That one has a use in D2 with maphack.
 
9:39 PM
I had a friend who had the wonderful idea to make a DnD game where one of the puzzle would be solved by locking a scroll using the scroll lock key.
 
and in excel to scroll the grid without moving the selection of the cell
 
That's the only use I ever knew of
 
I only found that out very recently
 
10:25 PM
@LoïcFaure-Lacroix It's still pretty readable too (and so is the Print Screen, for that matter).
@LoïcFaure-Lacroix In DOS, the scroll lock actually worked for things that wrote to the screen via the BIOS.
 
I'm being downvoted on reddit for telling people that water doesn't actually taste anything and people claiming me that I didn't drink much water if I say that.
@JerryCoffin it was for the terminal right? as mice weren't there
 
I don't think I have actually ever used scroll lock intentionally :x
 
@LoïcFaure-Lacroix Water tastes of hydrogen and oxygen!
 
nwp
@LoïcFaure-Lacroix Sounds like you meant pure water and they meant tap water or bottled water.
 
@LoïcFaure-Lacroix There were programs that used mice under DOS (though DOS itself had no clue about it).
 
10:30 PM
@nwp whatever, the taste you feel when you drink water isn't water itself
it's something in the water
 
nwp
Arguable since distilled water is supposedly poisonous you should have known from context.
 
@LoïcFaure-Lacroix I maintain that hydrogen has a taste. Deuterium increases it a bit.
:-)
 
@JerryCoffin I'm not going to argue about the hydrogen or oxygen taste...
@nwp still even if you were to drink water I'm pretty sure there are some minerals that we cannot taste either.
so it could be not limited to distilled water but in every case, if you feel chlorine in your water it's not water that taste like chlorine but chlorine in the water that taste like it
 
@LoïcFaure-Lacroix The amazing thing is that there are a few that really do have tastes/smells. I've heard that arsenic smells a lot like garlic (I think it was arsenic--something poisonous anyway).
 
I'd add we might never know how some smell because of death
 
10:36 PM
When I was in college, we were gathering some minerals from old mine tailings, and were told that if we polished something and it smelled like garlic, to immediately stop and wash our hands.
 
I'll keep that in mind
Did it ever happen to anyone to find Arsenic in this place?
 
Are most medicines poisonous to certain degree?
 
@LoïcFaure-Lacroix I don't think I saw it happen. But you did have to be pretty careful--apparently both arsenic and cyanide are used in mining and purifying gold.
 
no, thing can kill you and not be categorized as poison, but yeah sure anything can be deadly
That's possible.
 
@TelKitty Lots of medicines are dangerous in large quantities. Not surprising--the normal dose for many is in the range of tens of milligrams, and even then it often has some sort of buffer to keep you from absorbing it too quickly.
 
10:50 PM
Absorbing it too quickly has 2 bad side effect I imagine. 1. Overdose, 2. Out of your body more quickly.
 
@LoïcFaure-Lacroix Sounds reasonable, anyway.
 
@LoïcFaure-Lacroix 2 can be a good thing
recently I had this cough syrup that has an ingredient with 2.3 days half life
which is a bit too long because I mainly use it to stop coughing at night and don't use it during the day
 
@TelKitty Well technically 2 can be a result of 1. Or just naturally. Sometimes it's more like anything more than necessary get its way out. When it happens internal organ suffer the most like kidneys.
But letal doses are often almost impossible to attain for some chemicals.
 
11:44 PM
DI water has an off-taste due to how much people are used to tasting trace salts in their water
It's also not good for you
@LoïcFaure-Lacroix The mechanism of absorption has very little to do with mechanisms of expelling or metabolizing substances when they are in the body
One substance may be processed or metabolized by multiple systems, which may have competition from other substances in your body. "Priority" is chemically dictated
For example, methanol is poisonous, but has lower affinity then ethanol with liver enzymes
Thus, if one drinks methanol, the cure is to chug pure ethanol, which preserves the liver by occupying it with ethanol which does not produce poisonous metabolites, and the kidneys slowly filter out the methanol to no detrimental effect
 

« first day (2756 days earlier)      last day (2184 days later) »