« first day (1530 days earlier)      last day (3643 days later) » 

because language is a popularity contest, not a pope hilarity contest
00:24
3
Q: First Boost program

dato datuashviliI have tried to write my first Boost program from information on the Boost libraries site. Here is the code: #include <boost/lambda/lambda.hpp> #include <iostream> #include <iterator> #include <algorithm> int main() { using namespace boost::lambda; typedef std::istream_iterator<int> in...

Someone makes a Boost question and suddenly, it has upvotes
Simply because it mentions Boost
That question is 4 years old.
@MohammadAliBaydoun Pro Tip: This never happens. Have you noticed the post is from 2010
I had the same problem as well last year - stackoverflow.com/questions/15053337/…0x499602D2 58 secs ago
Xeo
Xeo
@R.MartinhoFernandes If you read this while on a train, go offline right now so you don't miss your stop. :P
This is the recent activity
Xeo
Xeo
00:33
@R.MartinhoFernandes shoo shoo
@Xeo wut?
Fuck you @Xeo
Fwiw, there are three stops in a row that are about the same distance from home.
So it's ok.
Xeo has a talent of making people tell him "fuck you".
00:34
Yeah, what could go wrong
@Mysticial Hmm. I never notussed
@Mysticial I just left him at the train platform
Xeo
Xeo
@R.MartinhoFernandes not if you miss all three :P
mumble mumble
Xeo
Xeo
@Mysticial I love poking beehives, apparently
Though I think I'm probably the one who's said it the most to Xeo: chat.stackoverflow.com/…
00:37
@Xeo and being a pain in the beehind badumtss
It's hard to search for "fuck you Xeo" because it doesn't include responses - which are the majority of them.
Xeo
Xeo
search through the generated html or something :P
@Mysticial well, that made sense
00:40
@Mysticial page not found :(
Can someone else screenie that? It's too long for me to fit onto the page and I'm not equipped to do the full page capture.
@R.MartinhoFernandes Are you live blogging yourself riding the train?
@R.MartinhoFernandes Is this Lounge<Foursquare>? Youre checking in at every stop?
2
00:42
Like I care.
mumble mumble
@Borgleader I can't fit the whole thing, but I can fit the most important parts.
@Mysticial dafuq happened O.o
Shit hit the fan.
Xeo
Xeo
on my way home now too
let's hope there's a train waiting at Ostkreuz
isnt it like 3AM for you?
Xeo
Xeo
00:48
almost 2am
there are trains at 2am?
Xeo
Xeo
will be 2 am when I reach Ostkreuz
yes, on weekdays
no wait, on weekends and holidays
damn... last one i get is 9:15PM
Xeo
Xeo
Berlin vOv
01:01
Ah, it was 4 years old. How the hell did I stumble upon this crap.
And why are there so many static_cast / reinterpret_cast questions today
Xeo
Xeo
whoo, train get
30mins and I'm home. or so.
@MohammadAliBaydoun Students hitting final tests, reviewing those ugly corners of the language they were supposed to learn months ago, but punted on at the time.
sbi
sbi
@Xeo Ah, Ok. I was wondering whether to prepare a bed for you. :)
Xeo
Xeo
Nope, I'm fine, thank you. :)
sbi
sbi
@Mysticial That's nothing to do with @Xeo. @R.Martinho said that to me about two dozen times tonight.
@Xeo Good to hear. As you might recall, my bed is covered in partly packed gifts, forcing me to sleep in the kids' room. (Also, the kids have way better mattresses than I have. But don't tell anybody...)
Anyway, we did have fun, even though the second bar we stumbled in served bad drinks. Thanks, guys!
01:14
@JerryCoffin The Java questions are kicking in
'Tis the season to collect upvotes
@sbi lol, I didn't mean it seriously. I was mainly poking fun at how he taunted me for 12 weeks straight over getting the next episode of NGNL before I did and right while I was still at work.
Xeo
Xeo
sbi
sbi
@Mysticial I have no idea what you're talking about (too many mojitos), but I can tell you that what I said was totally right.
Xeo
Xeo
> too many
> 4
pff
and now for a nice walk in the hopefully-not-rainy night
Speaking of which, the Blurays for NGNL are still not done coming out.
01:20
@MohammadAliBaydoun I do answer a Java question now and again, but not very often (certainly not enough for the upboats to make any real difference).
list[c-'A']++ is equal to list[34]++ because c = 99 (small c) and A = 65. Thus, 99 - 65 = 34. — Tiny 55 secs ago
Oh Golly
@MohammadAliBaydoun I would guess that he's accustomed to Cyrillic, but even that only has 33 letters (or, technically, 31 letters + a soft sign and hard sign that aren't really letters in themselves).
Yes, I know that doesn't really make sense, but a logical response didn't seem to fit very well here. :-)
Xeo
Xeo
01:40
beeeeeeeed /cc @sbi
@AlexM. in a nutshell (Sauce)
@MohammadAliBaydoun Yup--years ago as a test, I decided to see if I could hit rep ceiling every day for a week, answering only questions about which I knew little or nothing. I pretty much succeeded. I slipped and gave answers out of real knowledge a few times, but mostly just Googled their questions, and summarized the results into answers.
02:05
0
Q: C vs C++ performance

InoS HeoRecently, Bjarne Stroustrup have wrote Five Popular Myths about C++ In his article, he implemented a function in C and C++ C++ Version string compose(const string& name, const string& domain) { return name+'@'+domain; } C Version char* compose(const char* name, const char* domain) { cha...

Whoop
@MohammadAliBaydoun cba to find a duplicate
@Borgleader The standard doesn't say anything about std::string::size's complexity, or does it?
@MohammadAliBaydoun Yes, it does--"Complexity: constant time."
Oh wait, it doesn't. The standard says std::string::size should have constant complexity.
Not shall
Oh wait, that's from 2008.
Thanks Jerry ;~;
@MohammadAliBaydoun The language about "should be constant" applied to other containers (but not string) up through the 2003 standard. In C++11, that was abolished as well, so it must be constant time for all containers now. The down-side is that there are now a few circumstances under which std::list::splice has linear complexity, where it could previously have had constant complexity.
02:56
hello from a bar
tars sais hi
wtb 2 points so i can downvote stupid questions! and what ide's do you guys like for linux?
first part of that was a joke
@nsij22 There are no good IDEs for Linux.
@JerryCoffin cry
03:10
@nsij22 Far Cry.
lol
03:24
Don't post Fishnets here
They make rightfold nervous
03:35
but...
goddesss
...
04:13
Woke up at 5am. Guess that's better than still having to go to sleep at 5am.
2
04:44
woke up 7ish this morning by my alarm clock then went back to sleep for another hour or so
05:10
Still have to work today. But we can go home early.
05:46
@StackedCrooked I'm waking up early tomorrow. Heading to the electronics store to build a no-holds-barred rig.
The most powerful machine I've ever built in 6 years (adjusted for Moore's Law).
Cool!
multi-cpu?
Lemme rebuild it pcpartpicker.
In 2008, I built my dual-socket rig with 64GB. It was around 10k USD. I have no regrets since what I did on it got me a 10k scholarship, two internships, and a job. This time it's only gonna be 3k USD - mostly because I want to cut my compilation time in half and the Skylake Xeon with AVX512 isn't coming out until mid 2016 at least.
back home for the day, took a shower, feeling refreshed & ready to head to relo's place for Xmas dinner
06:05
@StackedCrooked It will be very similar to this: pcpartpicker.com/p/2LYQMp
They didn't have the case that I'm eyeing on. But that's $40.
The memory that's in the store isn't quite the same as the one in that list. But it's around the same price range.
I think that memory is exactly what I was looking at today.
-2
Q: State the reason that enum isWord{ NO, YES }; is better than enum isWord{ YES, NO };

BasmaState the reason that enum isWord{ NO, YES }; is better than enum isWord{ YES, NO };

06:21
@Mysticial Should probably get a GPU with 4 GB VRAM if you care much about it.
But I know you don't usually care.
Yeah, I don't care right now. The one in there is the bare minimum I could find that I can decently game on and supports 4 monitors.
If I ever get into GPU programming before I retire the machine (and I expect to be using this for a long time), I'll get a real video card.
Well 750 Ti is still a pretty good card lol
This rig will actually be my main rig that I do everything on. In the past, all the new rigs I get become dedicated compute machines that have no purpose other than to run benchmarks. They have nothing installed so that I can get steady timings.
I'm gonna be interested to see what a 32GB ram drive can do.
The top of the entire rig will be the radiator. Hopefully I'll be able to clock this thing up to 4 GHz. But I won't get too optimistic.
lol, I'm trying to spec out a fully-loaded dual-socket Haswell. Clearly pcpartpicker.com isn't meant for this...
06:39
Are you going to get the parts in Micro Center?
Frys. They prices are mostly the same. For the ones that are more expensive, they have a match online prices thing.
Oh. I prefer Micro Center
the people there don't actually try to sell me things or think I'm stupid
The nearest Micro Center is LA. I'm in the Bay Area.
The guys at Frys are pretty fast to catch on if you're not stupid.
06:48
650W for 2 way SLI 970s
@Mysticial I don't fall for it or anything.
Doesn't make it any less annoying.
that build I posted is pretty bad :(
650W... um...
I have a little conceptual question:
I want to add a little feature in my app where I can show a "change log" screen that shows everytime the app is updated. Obviously, I alter the text in the change log screen before pushing the update.
Problem is, how do I get the app to display this screen everytime.
Have some setting that gets overriden as soon as I send an update which forces the change_log to show and as soon as the user sees it, update that setting so it isn't shown again until next time, when I override the setting again?
I'm satisfied with it
I run the CPU @ 4.4-4.5 GHz
anyone?
I can barely hold 4.0 GHz on my i7 4770K because of overheating.
The TIM is shit.
06:51
My CPU is pretty cool at 4.4 GHz (atm)
only 28 C
8 GB for a gaming rig is... well...
Have you tried putting it under a real load?
Gimme something.
I'm not using stock cooler or anything though.
prime95
make sure you use the latest version that uses FMA3.
@Mysticial For what?
On the stock cooler?
@Rapptz The TIM between the die and the heat spreader on the pre-refresh chips is complete shit.
In the past, they soldiered it.
So all the heat is trapped in the chip.
For the Haswell refresh chips, they used better TIM, but still not soldiered.
Unless you delid the chip, you can't mess with the TIM.
06:54
Hm.
The socket 2011 chips are still all soldiered. Simply because they draw way too much power to not soldier it.
(I think)
I googled Haswell Refresh Chip
and it seems that mine (i7-4790K) is one of them
Yeah, the one that I'm gonna get tomorrow is soldiered.
was reading this: wccftech.com/…
Haswell came out in like July? 2013. I built my 4770K rig in October 2013. That was way before Haswell refresh.
06:57
yeah I built this on.. hm
12/7/2014
16 days ago
woulda been a blunder on my part if the chip came with some heating issue :(
Yeah, I remember going through your list to sanity check it.
wtb extractable copy of ios download from this page!
wait..
@Rapptz WAITING?!?!?!
=O
=D
I think Xeo's rig uses a 4770K
when he asked us in May
07:01
I wonder how much weight Cat++ is going to gain this holiday season
oh no it's 4670K
Incrementing the cat
Cat's asking for it in his name
@Rapptz So he will have the heat problems.
Not as badly as mine since he doesn't have HT.
My chip is particularly bad.
May 11 at 15:55, by Xeo
Wokay, I'll probably go with this for my new PC: http://de.pcpartpicker.com/p/3HYgt /cc @Rapptz @Mysticial
At stock on the water cooler it already goes 75C+.
I really shouldn't be OCing it at all.
07:04
isn't that a really major defect?
why didn't they recall it if it's that bad
But I just had to force it up to 4 GHz even if it's slightly unstable. Any increase in voltage puts it up to 90C.
lemme C, ^ you are putting on the pounds too right?
or is it fine because it's under TJMax?
@Rapptz Dunno, but I needed the chip at the time and RMAing a processor is a hassle.
Since the chip still "works".
It's just a little hot at stock and very hot OC'ed.
There's also a huge temperature imbalance between the 4 cores. So clearly the TIM inside is not right.
Oh bad luck of the draw.
I drew a good chip for Nehalem and Sandy Bridge. My luck ran out for Haswell.
Nehalem: 2.66 -> 4.3 prime-stable. Ran it at 3.5 GHz since the fan speed needed to run it at 4+ GHz was too loud.
Sandy Bridge: 3.4 -> 4.8 GHz prime-stable. Benchable at 5 GHz. Ran it 4.6 GHz for a few years.
@Rapptz How my build barely double the price of yours?
Oh, you have a high-end video card.
And you included a monitor and a hard drive.
yeah and the case
07:16
Whereas in my case, I'm going to drop the rig right into my current 4 monitor desk. And put one of my naked and unused hard drives into it.
The case that I'm looking at isn't in pcpartpicker. But it's this: newegg.com/Product/Product.aspx?Item=N82E16811124150
I spent an hour today at Frys making sure I can actually fit the radiator at the top of the case.
water cooling?
14cm fans. Bigger than the usual 12cm.
That's the biggest self-contained water cooler available.
Shit, I need to make sure the fans don't hit the motherboard...
Fuck, that case is not gonna work. Not enough clearance between top of motherboard and top of case.
user1646075
@CatPlusPlus lol - first world problems. I'm going to toilet train my adoptee with a colander and fine wood chips. Not sure how to teach him to press the button though.
@CatPlusPlus The RFID part just killed me lol
user1646075
but you can customise the firmware!
08:22
Urgh I need to let off steam
^^ interesting...
It's gonna matter for me tomorrow.
I've done "pull" because it saves a fan grill.
user1804599
@sehe Query–Command Separation
user1804599
08:53
Ugh.
user1804599
Empty response only on one specific computer.
user1804599
09:15
Oh, said computer is full of viruses and spyware.
user1804599
Stupid clients.
user1804599
I hate users.
@sbi Bad drinks? Quite the understatement.
@R.MartinhoFernandes One has to ask - if the beer/whatever was bad, why did you not leave it and find a bar that served good drinks?
@MartinJames We did.
09:29
@R.MartinhoFernandes Oh.. :) I'm anyway surprised that you can get Europis.. er.. European-mainland-style lager beer that is actually that bad.
@MartinJames It wasn't beer.
I had a gin tonic tonic water with lime.
@R.MartinhoFernandes It gets worse:) I'm not stu... brave enough to spend the night drinking spirits:)
Anne is, however. We have a party tonight, so it may be one of those nights when I have a problem getting her home. Must make sure the car has plenty warm blankets, just in case the problem becomes intractable, (literally).
user1804599
Tonic is nice.
09:56
@MartinJames Literally intractable ? That much ?
@Rerito It has happened, yes. Anne's car is big enough to lie down in if I collapse the seats, so it just means covering her up for the night and leaving her to sober up.
Meh - on top of everything else, my Santa hat with the LED flashers has an intermittent connection. Banging my head on the desk makes it work for ~5 mins.
user1804599
nice:
user1804599
$ cat access.log | awk '{ print $7 }' | sort | uniq -c | sort -n
10:12
morning scrubs
@Puppy I can manage a rather weak whine in reply.
lol
user1646075
10:39
@rightføld You win the Useless Use of cat Award for today.
user1804599
It's not useless.
user1804599
I like my data flow clear.
user1646075
awk < access.log ........
awk '{ ..... }' access.log ........
user1804599
I find $ cat access.log | awk '{ print $7 }' | sort | uniq -c | sort -n easier to read than $ awk '{ print $7 }' access.log | sort | uniq -c | sort -n.
user1804599
I wouldn't've had a problem with it if the filename went before the AWK code instead of after it.
10:43
@GuruAdrian We know, but Cat likes to load as many processes as necessary to err.. 'clear the flow of data'.
user1804599
I want to read from left to right and in no other order.
user1804599
Data comes in on the left and goes out on the right.
user1646075
hmmm - this is the most earnest defense of the practice I've ever read.
user1646075
but the filename is still in 2nd place !
user1804599
10:44
It doesn't go in in the middle.
user1804599
@GuruAdrian "cat " is short enough.
user1646075
it can come before all the crap if you use < - many people don't know that it can appear anywhere on the line:
awk < access.log '{ print $7 }' | etc
@GuruAdrian Shell programmers don't care about loaded process and avoidable piping. Why bother about performance when you've never had it anyway?
user1646075
it's a style thing. A shibboleth of shell.
user1804599
lol performance
10:47
@rightføld If you have hours of data to analyse, you would care about it too.
user1804599
I do it the same as I do it in F# and Elixir.
user1646075
anyway, the useless use award has a long and noble tradition. Be flattered.
user1804599
I don't write Enum.map(xs, f) |> Enum.filter(g). I write xs |> Enum.map(f) |> Enum.filter(g).
@GuruAdrian I read that as 'flattened'
user1646075
TIL - kids of today do not know how to use a circular volume control knob.
user1646075
10:49
@MartinJames in that case you can't use tee (esac)
@GuruAdrian Like the ones on hifi amplis ?
user1646075
in a way, shell is functional
user1646075
@Rerito yup
user1804599
@GuruAdrian maybe because the kids of previous days never told them
C'mon, we're not that stupid !
10:50
@GuruAdrian Well, to be fair, they are indeed difficult to use with a mouse.
user1646075
i asked my little one to turn the volume down, she's looking around for the remote and I said, just turn that large circle on the amp. The results were amusing.
Oh.. you meant real, physical controls?
user1646075
@MartinJames yeah - not a button in a stick!
user1646075
I'm watching the number increase slowly as she tries something random, and i'm thinking "WTF" - and then I realised....
@GuruAdrian I could never understand why rotary controls went 'out of fashion' in the first place. They are much easier to use accurately when there is vibration/turbulence. Sliders etc. just jiggle all over the place.
user1646075
10:54
@MartinJames yeah, and sliders get dirt in them.
@GuruAdrian Oh yeah! Six months and thy're crackling like crazy. Also, much more difficult to replace than rotary pots.
user1804599
@MartinJames What is this "physical controls" concept?
user1646075
i should get an old rotary phone and shove a DTFM unit into it. A leeetle arduino would probably serve admirably. Or there's probably simple electronic kits
do the fucking manual?
10:59
@Puppy It's an anachronism, sometimes still used, eg. on amps. They have some advantages, eg. easier to use than virtual controls if, by some strange chance, the bass player is drunk and the mixer guy has been on 'substances' all night.
user1646075
Ever seen '11' on an iPod's spinner?
@GuruAdrian lol
user1646075
no!
I've never seen an iPod's spinner.
and fortunately never will.
user1646075
those circular touch control thingies. What do they call 'em?
user1804599
11:00
Click wheels.
I have no idea.
that stuff was before my time really
much like other Neanderthal technology
user1646075
ipods are before your time? that's impressive
well, the Touch was 2007 or so
and I had no need for such a device prior to that time
11:20
@Puppy lol, like command-line human interfaces.
user1804599
CLI master race.
@rightføld ..in 1970.
user1804599
Lol people who don't use CLIs for <reason>.
command-line interfaces are just "We should have used a real language for this".
user1804599
Ugh.
user1804599
11:30
You can't have nginx not send the Server header without changing its source code.
user1804599
What a piece of junk.
user1804599
Fucking hardcoded crap.
wind blew a bit harder
internet guys were on a pole fixing things a day later
no internet
FEELS GOOD TO BE HOME
@rightføld They're often called 'paying customers' :)
user1804599
Fuck paying customers.
user1646075
11:33
paying customers fuck you.
user1646075
and it doesn't have to be Soviet Russia.
@AlexM. The 'pole guys' round here are the ones usually reponsible for stuffing the webs. Last time they 'fixed a problem' on the phone pole outside the pig farm, I had no phone for a day. I had to use my cellphone hotspot thingy to get online.
That said, and at the risk of tempting fate, ATM the webs are working quite well..
I haven't power-cycled my router for two days.
Hmm.. I don't recall rebooting for week either. RAM use meter is a bit high, at 52% :(
lol 52%
I'm at around 90 right now
so basically
48% of the money you spent on RAM is being completely wasted right now
It's used for cache
11:46
@MartinJames I hope they'll work well from now on
it's xmas ffs
it's a bit comical in my situation since the internet got fixed this morning but it still didn't work for me because mum did some shit around the router, one of the cables got out and she put it back in the wrong place
@Puppy Yup. I'll unplug the remaining 48% and sell it:)
@CatPlusPlus That's 'cos of the loads of redundant shell filters you've got running:)
That's cos 4GB is shit amount of memory
I have 12. It's enough.
You can't have enough RAM
Aparrently, you can. I've not seen any RAM-shortage-related issues.
11:59
My alibi: I rebooted fresh
Going over 128MB RAM on Windows 95 made it slower.
And it started acting funny.
@StackedCrooked I'm not sure I ever noticed that. W95 crashed before I ever got that much stuff loaded.
I never felt happy with any Win OS until W2K.
ME was good, (for Linux).
@rightføld you can be sure that the empty response is due to the virus scanners fighting for control
@rightføld That Was Obvious. not vs. this
user1804599
@sehe the user got a new computer and now it works!
@rightføld Plug in the RJ45 so the malware can get connected up again.
user1804599
user1804599
Is that what Boost.Signals2 does?
@rightføld No, Boost Signal2 doesn't use gists
'I'd like to find a way to somehow "hide" the WinAPI calls I'm using in my code' - good luck with that.
12:11
@rightføld At the core, but there's more to that
Thread-safety, ordering, connection tracking, masking, return value aggregation
Oops I made a 64TB disk instead of 64GB by accident
6
lol
Did it blow up?
WARNING: The size of this disk is 70.4 TB (70368744177664 bytes).
DOS partition table format can not be used on drives for volumes
larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID
partition table format (GPT).
Thanks fdisk
Those are very helpful values
Use GPT. That will solve the problem.
@CatPlusPlus Those last 64 bytes may come in useful one day.
12:22
@CatPlusPlus If only I actually needed any of those except connection tracking.
5
Q: Finding and remembering neighbour pixels

MUHAMMAD MUAZI am trying to do shape analysis of an object in an image in MATLAB (specifically). To do so, I have found boundary pixels. For each boundary pixel I am calculating it's neighbor using 8-neighborhood theory. Now I am calculating tangent of a point to its only one neighbor (depends how I select cl...

A first question with style !
user1804599
if ($use_session) {
    @session_start();
} else {
    $_SESSION = [];
}
user1804599
Great.
12:37
what?
One day I am going to make a smart house with my elite software development and my ever improving building construction skills
think yourself (or your family) as a snail, your house will be the high tech smart shell

« first day (1530 days earlier)      last day (3643 days later) »