« first day (1276 days earlier)      last day (3674 days later) » 

11:04 AM
why are there so many stupid people on the internet?
Why did I skim the comments under the article I just read?
 
90% of everything is crap.
 
Those brain cells are never coming back... :(
 
Because there's so many stupid people in general
They're just more visible on the internet
 
@CatPlusPlus and in the comments especially
 
@AvoidComments, The Whole Friggin’ Internet
This will tweet periodic reminders to not read the comments sections for, well, pretty much anything, ever. An @OptimistPanda production. (Now in reruns.)
505 tweets, 33.8k followers, following 0 users
 
11:10 AM
@TonyTheLion Change something. Does it behave differently if the file is not available, eg. if you rename it to '.bak'?
 
Xeo
Ahahaha (for those that can read German)
 
@Xeo They needed all of "made without PHP, Java, Perl, MySQL and Postgres" for that icky static html? o.O
 
Xeo
@sehe It's a static html exactly because they didn't want to use those things.
 
Xeo
Also, I like the simplicity of it
 
11:21 AM
@Xeo sheeesh - I misread 'without' as 'with' :)
 
Xeo
oh, lol
 
@Xeo Me too. I was just confounded at the list of things "used" :S
 
@sehe So ASP.NET MVC?
 
Xeo
But seriously, "proudly made with PHP"?
 
@Xeo proud of having made something despite having to do it with PHP
 
Xeo
11:23 AM
hah
 
@Xeo ...
This is truthy o.O:
> The nastiest behaviour is "sense of entitlement". Theo de Raadt
Too true. vOv
 
11:47 AM
@sehe WTF
 
I'm afraid I linked to the preceding msg if that's what you're WTF-ing about :(
 
"Committees can criticize, but they cannot create." (Ogilvy on Advertising)

"Sleep optional but not recommended." -CS107 student

"Logic is a system whereby one may go wrong with confidence." -Charles Kettering

"We don't have time to stop for gas-- we're already late." -Old software project planning proverb via Mike Cleron

"Experience is what you get when you didn't get what you wanted." -Unknown
 
> ASCII table
also, it's wrong, but never mind
... and deleted. that was quick.
 
12:06 PM
@DeadMG did the drugs wear off?
 
> I'm just trying to find a mountain I can climb
 
Today a student committed suicide by throwing himself from the seventh floor's stairs down in the same building I should have gone to attend a lesson.
If that makes sense.
 
Xeo
@Jefffrey Meh, stupid student.
 
12:18 PM
@Jefffrey That'll teach you not to skip class.
 
@tgkprog What about it?
return base.replaceAll("(?i)"+java.util.regex.Pattern.quote(remove), "");
Bask in my mad Java skillz.
4
 
first time using futures here we come
 
nothing just giving you a problem as your said your looking for a mountain. mountain == problem/ code challeng here
wha feature is what Ligth?
 
@tgkprog I was just quoting from the song I posted afterwards.
 
@tgkprog seems it was a mere bumb in the landscape, but no mountain. Not even a hill.
 
12:20 PM
I can conceive the idea that sometimes it's just too much to handle, but I don't understand why you have to do a disservice to everybody else. Like few days ago we had the third case of suicide on the train tracks this year.
 
Ha! It actually works even without quote.
return base.replaceAll("(?i)" + remove, "");
Not enough tests.
 
:) at least u exercuse the gray ones, well for the few, for whom it aint too easy.
 
I need to move a bunch of my MySQL INSERT queries into a worker thread, preferably just one, looping over a queue. Just one of those queries "generates" an auto-increment ID that I need back in the calling code. And I don't want to make a mess.
 
too bad about the suicides but maybe for some its the way to cope. dark stuff, for others its just live and do the best u can
 
Needs a test for withoutString("a", ".").
 
Xeo
12:24 PM
'Suicide is a permanent solution for a temporary problem'
 
C++03, too
std::queue<std::string, boost::optional<boost::future<int> > > pendingInserts or something
yuck
 
Xeo
... why an optional future?
 
why not do the whole job in a async queue and give user feedback and total progress and final result Light
 
not all my INSERTs even use auto increments, let alone one that I need "returned"
 
@tgkprog it's not about the suicides in general, it's about pulling that shit off in front of others. Those people obviously donn't give a fuck that they traumatize others, sometimes for life.
 
12:25 PM
@tgkprog It's a little more complex than that. This is deep within an automated hardware interaction service
 
Xeo
@LightnessRacesinOrbit Then just default construct the future and check for .valid() == false
 
@ArneMertz I think if you're driven to suicide you're more than a little too messed up to probably even consciously be aware of such issues which would be obvious to you and I. It's hardly fair to blame them for their behaviour outright.
@Xeo Okay, cool, so drop the optional
 
Kill the suicide doers ! :P Down with those hags! Insensitive depressos !
 
@Jefffrey No.
in fact, if anything, I'm taking more of them.
 
Hey! Don't advertise my secret Java skills in the starboard. Fuckers.
 
12:28 PM
@R.MartinhoFernandes As if you weren't expecting it
 
I was not.
 
@Xeo Before I go any further, am I at least on the right track?
 
@LightnessRacesinOrbit Don't use .then.
 
@R.MartinhoFernandes Okay. Why?
 
It launches a new thread.
 
12:29 PM
@LightnessRacesinOrbit Suicidal behaviour is a defect in the brain in most cases; it's no more possible to blame people with defective brains for the way they think and act than it is to blame programs that don't execute correctly after undefined behaviour occurs.
 
boost::future<int> theIdImWaitingFor; // correct?
@R.MartinhoFernandes kthx
 
@LightnessRacesinOrbit That sounds good, yeah.
You'll need a promise to initialise it.
 
krya.in organic dish washer
 
@LightnessRacesinOrbit I don't blame them. I blame the people who pity the guy who jumped in front of a train but don't even think about the train driver who spends the next years with a psychologist instead of at work.
 
Ambiguous partial specialisations. Finally an error I am equipped to deal with.
 
12:31 PM
@Jefffrey fully
 
`boost::promise<int> gimmeAnIntYeah;`
`theIdImWaitingFor = gimmeAnIntYeah.get_future();`
`pendingInserts.push(std::make_pair("INSERT...", theIdImWaitingFor));`
`// ?`
faildown
 
> Taking a moment to imagine uproar if man had been walking woman through Farringdon on a dog leash.
 
@ArneMertz nods
@DeadMG hah
@DeadMG yeah :(
can't see that quote tho
 
I saw a few tweets related to it and that was one of them
 
@LightnessRacesinOrbit Yeah.
Though you need to pass the promise to the code that produces the int, not the future.
You keep the future in the code that waits for it.
 
12:35 PM
@ArneMertz how about the people who don't give a shit that someone else kills themselves, as long as it doesn't inconvenience others?
 
@R.MartinhoFernandes ah ok
 
Xeo
@LightnessRacesinOrbit The promise is the input, the future the output
 
wtf is up with formatting today
// Send new alarm to database;
// Happens asynchronously, so we can only store the resulting auto-incremented
// alarm ID via a "future"
boost::promise<alarm_id_t> promisedAlarmId;
alarm_model.newAlarm(
	device_id,
	category,
	subcategory,
	promisedAlarmId
);

alarm_cache_entry.second = promisedAlarmId.get_future();
add a layer of indirection or so to actually add the resulting query and promise into a queue
oh, and fuck that return value obviously. I'm adapting existing code.
 
user1804599
dat code
 
12:37 PM
IIRC promises are move-only, but I have no idea how it works in C++03.
 
Xeo
fake moves :D
 
Point is that you need to move it into newAlarm, and you need to retrieve the future before you do that, for obvious reasons.
 
@jalf suicide always "inconveniences" others. So what's the point? I was talking about the people who don't give a shit that some manners of sucide ruin other people's lives .
 
What's the magical macro to turn _snprintf and shit into snprintf?
 
Xeo
something about posix identifiers?
 
12:40 PM
#define snprintf _snprinft ? :D
 
// Send new alarm to database; happens asynchronously, so we can only store the
// resulting auto-incremented alarm ID via a "future" and "promise".
//
// N.B. obtaining & storing the future must be done before the `newAlarm` call
// which will take ownership of the promise.
boost::promise<unsigned int> promisedAlarmId;
alarm_cache_entry.second = promisedAlarmId.get_future();
alarm_model.newAlarm(
	device_id,
	category,
	subcategory,
	promisedAlarmId
);
 
If possible, I'd refactor it so that newAlarm obtains the future and returns it.
That prevents any possibility of wrong orders at the call site.
 
12:42 PM
@jalf I did not only miss your point - I did not get it at all (therefore my question). Did you get my point?
 
@ArneMertz ... yes.. I did.
 
Your opinion is shit hth
5
 
If I didn't, I would have asked "what is your point"
 
#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif
 
Good luck if you're supporting a compiler that doesn't have #pragma once
 
12:44 PM
pragma me once shame on you pragma me twice shame on me
 
@jalf so. What's your point?
 
@R.MartinhoFernandes Good idea
Do I have to worry about the lifetime of the future w.r.t. the lifetime of the promise?
 
Xeo
nope
both are basically one-way references to a shared state
You will of course get a broken_promise error if the promise dies before setting the value
 
Broken dream
 
@jalf people who don't give a shit about suiciders are heartless. (Although the suiciders themselves ime seldomly care about what the world thinks about their suicide). But my point is that many people don't acknowledge that in those public suicides there normally is more than just one victim, and that is just shortsighted.
 
Xeo
12:53 PM
what the flying fuck is going on with the Game Center right now
The code gets an auth-fail, but the iPad actually logs me in... in non-sandbox mode
wtf
 
Does MSVC work nicely with SFINAE in partial class template specializations?
Why am I asking.
 
Xeo
> Does MSVC work
hah
@R.MartinhoFernandes Because you have a speck of hope left?
 
NOOOOOOOOOOOOOOOOOOOOOOOO
C2893 is back.
What did I do.
 
Xeo
Your code is literally haunted.
 
It's not my code :(
It's my boss's.
 
1:01 PM
You are totally haunted then
 
Think I still need boost::optional around the promise
I don't always want to run the second query to get the auto-incremented ID
 
Increment the old one?
 
It's C2893 all the way down.
 
C2894 is clearly the superior error
 
At least that one is descriptive enough.
 
1:06 PM
> The compiler failed to specialize a function template. There can be many causes for this error.
 
"Failed to specialize template" is just useless.
 
documentation is very helpful
 
oh, I was just making a joke about 2894 being one greater than 2893, I didn't even realize there was a 2894.
 
@DeadMG hahah
 
cause you gotta admit, the error numbers themselves are pretty random.
 
1:07 PM
yea
you wonder if some dev just thought of a random number
and counted upwards from there
 
@Jefffrey very good
 
he he
 
@DeadMG Some are completely random, like 3544 which doesn't fucking exist.
@Xeo Yep, just confirmed it can't deal with that.
Workaround #425, here I come.
 
What is with Ubuntu and fucking certificate problems
Now it can't verify graph.facebook.com for whatever reason
 
1:18 PM
@Jefffrey it's ancient
 
not really
 
arghagrahrghargharghargharghargharga futures/promises added in Boost 1.41
guess what version I'm stuck on
 
@CatPlusPlus afaik, facebook is in the process of revoking and replacing all their certificates post-heartbleed
 
fuck me sideways, basically
 
1:27 PM
This time it's shitty Ruby developers!
 
@LightnessRacesinOrbit C++11 added in VS2025. Guess what version I'm stuck on.
 
~~convenience~~
Not updated in years
 
@R.MartinhoFernandes =)
 
@jalf That doesn't matter, you trust the root, not the individual certs
 
argh this is a right pain, though. the solution has ended up being quite tidy otherwise
 
1:28 PM
@Abyx it is
 
maybe I can write it myself
:/
 
You probably don't need all of that functionality. But it gives you an idea.
 
Also fuck idiots who don't keep changelogs
 
lazy mustards more likely ... slight difference between being an idiot and being a lazy bum
 
Will upgrading a crappy dependency completely break this app?? I DONT KNOW LETS FIND OUT
 
1:32 PM
@R.MartinhoFernandes quite a bit of C++11 in there
but I can use it as an idea yeah :)
thanks
 
bundle update only takes 10 minutes to fetch the stupid gem index
And then it fails midway and has to fetch index all over again!
Fuck this pile of shit
 
having fun? :D
 
die
I hate this week already
 
@ArneMertz people who give a shit about others usually give a few about themselves. Why do act all righteous about them lame people being so "selfish" that they don't care?
 
Is this legal? It won't build for me under GCC 4.3.3; parser goes nuts
 
1:46 PM
needs a much tighter symptom description
 
I can fix it with a member typedef, but that doesn't help when I have a similar problem with a function template
@sehe I'll SO it
 
"7z unspecified error" brilliant >_>
 
Xeo
@LightnessRacesinOrbit That should've been legal in C++03 aswell
 
@melak47 I can explain: it's an error during decompression of the data!
 
thanks :p
 
1:50 PM
0
Q: Why does this default function argument cause the parser to fail?

Lightness Races in OrbitIs the following program not legal C++03? Does it reveal an old GCC bug? Is it known? template <typename T, typename U> struct A {}; template<class T> struct B {}; template <typename T, typename U> struct B<A<T, U> > { B(const A<T, U>& a = A<T, U>()) {}; }; int main() {} It compiles fo...

I need a better question title
No ideas come to mind though
 
Xeo
@LightnessRacesinOrbit Hey now, the Coliru code hat no default argument
 
Amazing
gem install can build native extensions, but bundle update shits itself
How do you even do that
 
@Xeo I realised that after a while ;P
 
@LightnessRacesinOrbit interesting, then, that you left out the (apparently crucial?) bit about the default argument when you first asked here. :|
 
@sehe Mistaken false testcase
Good reason to post on SO in the first place, frankly
=)
Also found a nice lil' fix. But I'd still like to know whether it's a GCC bug so I can report to the author of the library causing this issue for me
 
1:53 PM
IOW: SO is worth putting some careful thought into. Chat, not so much :)
 
Quite
tbh I was rushing a bit, too. it was blocking a colleague so I promised a fix, but I have my head in the future, so to speak
btw
9
Q: Can we apply content not explicitly cited from the normative references to the C++ standard?

Shafik YaghmourIn the C++11 standard(closest draft is N3337) section 1.2 Normative references says: The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced do...

 
user1804599
ImageMagick is cool.
 
user1804599
% for f in *.svg; convert -density 720 -resize 48x48 -alpha extract -background white -alpha shape "$f" "$f.png" \o/
 
> WHEELS_UNREACHABLE; // fuck
lol
 
@rightfold it's cool til you have to build it because some stupid format plugin wasn't included
 
user1804599
2:02 PM
:D
 
@melak47 $ USE=stupidformatplugin emerge imagemagick
There, built.
Portage <3
 
user1804599
@R.MartinhoFernandes beh USE env var.
 
user1804599
/etc/portage/package.use :v
 
Not every USE belongs in permanent config
I wish Gentoo supported upstart
 
got this so far; what do you think?
template <typename T>
struct promise
{};

template <typename T>
struct future
{};
-.-
 
2:11 PM
Ahahaaha ahah ah update from 0.5.0 to 0.5.3 and app broke
Eat shit and die Ruby developers
 
Xeo
@LightnessRacesinOrbit Good job!
 
@Xeo thanks man
@R.MartinhoFernandes What's the licensing like on that? I can't use it verbatim anyway, but I fancy copy/pasting and C++03-ising it as much as I can. At least for the time being
 
@LightnessRacesinOrbit meh typename
 
user1804599
typename owns.
 
2:20 PM
I CC0 everything that I'm not contractually forbidden from doing so.
 
you can save a whole 3 chars using class
 
Well kinda.
> I'm through with pornography
The acting is lame
The action is tame
Explicitly dull
arousal annulled
 
Xeo
Today is a zero-productivity day, because Apple's servers are being a bitch.
 
I smell shitty excuses
:P
 
@R.MartinhoFernandes How I feel after such high doses of MSVC.
 
Xeo
2:25 PM
@Jefffrey Nah. Can't test shit because Game Center is freaking out today
 
Today is zero-productivity day because fuck everything about Ruby
 
user1804599
Today I have been very productive.
 
user1804599
I already fixed eleven issues and deployed twice.
 
I've updated fb_graph and now it doesn't shit itself with TLS verification
Instead I get uninitialized constant FbGraph::Node::RestClient
How incompetent you have to be
 
user1804599
Reverse the update!
 
2:38 PM
It's not Star Trek.
 
@Xeo Ah, well.
 
Yes do I prefer one version that doesn't work or another version that doesn't work
HARD CHOICES
 
user1804599
The only integration with other systems we yet had to do for this project was AddThis and Google Analytics. :>
 
user1804599
What is a database context?
 
2:48 PM
the context of a database
 
Your naming convention is shit
 
explain yourself
 
@LightnessRacesinOrbit INSERTT
Right.
 
> …_t
 
@EtiennedeMartel Something wrong?
 
2:49 PM
lol, autoid
 
@LightnessRacesinOrbit An extra T.
 
Mixed styles
 
@EtiennedeMartel Perhaps look two lines down to discover the entire purpose of that block of code...
@R.MartinhoFernandes makes me think of robots
 
"Asynchronously" really doesn't need to be spelled out
 
@CatPlusPlus not really
 
2:50 PM
@CatPlusPlus Go the .NET route and say Async.
 
@CatPlusPlus I may shorten that
 
async_stmt_result_t futureAlarmId
 
@CatPlusPlus one is a type, the other is a variable name
really, someone who goes by "Cat Plus Plus" on the internet should be the last person giving out naming advice
6
<3
 
Still jarring and inconsistent
 
2:51 PM
He's trying really hard not to use auto.
 
@LightnessRacesinOrbit it's consistent enough
 
I'm not sure if I like API that requires creating a promise on callsite
But it's not Ruby so
Fuck Ruby
 
Xeo
Game Center green my ass
 
Maybe the problem is on your end :v
Aaaaaaaa 1.7.whatever -> 1.8.6 fixed it
Finally
Goddammit 2 hours on shitty dependencies
 
@CatPlusPlus That's not a "front-end" though
actual calling code will go through a Model that abstracts it all away (as the Robot suggested)
this is just a "unit test" for the back-end
 
2:55 PM
Yeah, but still, I feel like that should be internal to the implementation
 
yeah, and, it is
 
Well if it suits you. Just sayin'
 
i'm testing the internals of the implementation
:)
well when I say "testing"... I sorta need to write the damn thing first
at least one layer of the impl needs to be provided the promise, because there won't always be one
granted I could use tag dispatch instead. hmm
 
Xeo
@CatPlusPlus Well, nobody here can log into Game Center in any way
 
well, anyway, I need to implement promises first so asdukgfyaskdfa
 
2:58 PM
why are you stuck on ancient boost and gcc?
 
@Xeo "Your end" doesn't necessarily mean your computer specifically
@LightnessRacesinOrbit Can't you just backport those parts from newer Boost?
 
@CatPlusPlus I may yeah
 
Run bcp on it and see if anything collides
 
though I find Boost code fugly and hard to read
 
@LightnessRacesinOrbit It all happens in the shared state anyway.
 
2:59 PM
@melak47 a couple of frozen production build servers that serve a bunch of projects now considered stable by management
though I'm working on that
@R.MartinhoFernandes hmm yawhatnow?
 
user1804599
@Xeo ask a friend.
 
@R.MartinhoFernandes Why my::detail::late_initialized and not actual std::optional?
 
Emplace-construction, I think.
 
oh, huh, std::optional doesn't do that? okay
duh
boost::optional it is
 
@LightnessRacesinOrbit Oh. Not std::optional because that was a year ago. boost::optional has some weird in-place factory workaround, I think.
 
3:12 PM
well I'm only hacking around and frankly only for unsigned int so fuck it
can't help but notice that wheels/concurrency/locker_box.h++ doesn't exist
 
It's an ugly hack to make lock scopes with range-based for.
bitbucket.org/martinhofernandes/wheels/src/… If you want see all the nasties.
Not worth it.
 
you're not worth it
o_o
 
ok that's quite cool
 
welp
today I ate a mars bar and I liked it
and I didn't get crippling stomach pain.
yay the drugs
 
AND NOW I'M BACK TO C3544. I GIVE UP.
C3544 doesn't exist.
 
3:23 PM
:lol:
 
I'm done. Telling my boss it's a big fat "NOPE".
 
user1804599
Holy fucking shit.
 
@R.MartinhoFernandes Can post reproduction sample?
 
@rightfold Hi too
 
user1804599
Hallo schat.
 
Yessss I survived
Things are working
 
@DeadMG It's too finicky. It disappears too easily, and there's lots of code around, and I'm tired.
 
oakydoaky
just gonna say, did you consider going home? :P
 
user1804599
:(
 
Anyway, lesson learned. It doesn't matter if you try to keep it simple; if you want TMP, either write it in MSVC first or never.
 
3:39 PM
@R.MartinhoFernandes ...or wait for it to start supporting templates. :D
 
@rightfold what is the noise all about?
 
Xeo
@DeadMG How about eating normal food?
 
hmm I reckon I should be able to make promise copyable
 
Xeo
give it auto_ptr semantics :D
@R.MartinhoFernandes Did you at least file a dozen bugreports? :P
 
3:57 PM
 
@Xeo ;p
@Griwes nice
 

« first day (1276 days earlier)      last day (3674 days later) »