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

00:42
@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?
01:05
just don't patent a rectange with round corners
cause Apple owns that one
found it
01:32
I have not touched C++ the whole year, I used to see some C++ code here, but even this is not happening now
01:48
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…
03:04
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 ...
03:22
@Mikhail Not bad.
jww
jww
03:48
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…
05:16
@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
nwp
07:02
@TelKitty Yes. But it's probably legal.
07:31
Morning :)
 
2 hours later…
Ven
Ven
09:22
@LucDanton apparently not. but it's just a map(&[~]) away.
oh it's a Ven :o
@Ven cool beans
Ven
Ven
@Morwenn ohai!
what's up if anything? :)
Ven
Ven
Severe headache.
First night in Normandie involved a bit too many drinks :)..
09:25
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
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
Ven
09:28
@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?
09:39
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
downvoted for being a rep hooker, that's new
@StackedCrooked is it down?
@Morwenn 7
10:45
@sehe Seems to be the daily reboot (uptime is 11min now)
11:01
@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
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
nwp
Maybe you should install serverstats. It makes pretty-ish graphs.
Although I'm not sure where I got that package from.
12:00
@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
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
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
@Mgetz Thats why I use google and prepend stackoverflow to my query ;)
13:21
@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!
13:56
@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).
14:54
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...
15:23
@Morwenn where did I hear that name?
@ScarletAmaranth he's around here once in a while
16:05
@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…
17:16
@Servy What about on my main account? Am I just fucked now? — Steve 40 secs ago
^^ /cc @Borgleader
17:45
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?
18:03
@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
18:52
@Mysticial rekt
except abort isn't abort_retry_cancel()
19:38
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
nwp
@StackedCrooked :(
That was fast. :)
nwp
nwp
That's not a gcc8 thing though, it has never worked with sanitizers before.
/proc is not accessible from the sandbox
nwp
nwp
19:49
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
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.
19:53
@Mysticial Oh jesus.. Skylake X is f@$#ed
how big are the cache lines on that thing anyway?
Still 64.
nwp
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
19:57
@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
nwp
@StackedCrooked Awesome!
20:00
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.
20:46
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?
I've never used anything with rainbow highlight
I've never used anything without rainbow highlight
@Morwenn Would that be helpful?
20:56
@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
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
21:06
:hum:
21:18
@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
21:22
meh :/
nwp
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
21:26
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
nwp
That one has a use in D2 with maphack.
21:39
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
22:25
@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
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).
22:30
@nwp whatever, the taste you feel when you drink water isn't water itself
it's something in the water
nwp
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
22:36
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.
22:50
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.
23:44
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 (2408 days later) »