« first day (1655 days earlier)      last day (3286 days later) » 

3:00 PM
I guess their website is both extremely lightweight & minimal
 
@BartekBanachewicz Google Play Services that now run on top of Android which used to provide those services.
But yeah, use CM 7.2 or something
Gives you privacy options integrated into the OS for free.
 
lol "privacy"
I don't need privacy come on
 
Privacy? What's that?
 
@Nooble The thing you can enable with CM.
I'm serious.
TIL desktop email programs don't suck as bad as I thought.
 
3:11 PM
:P
 
@rubenvb not if you install GoogleApps or apps in general
 
@R.MartinhoFernandes Happy birthday!
 
@Nisk uh, yes, that's the point. CM allows per-app permissions to be set at OS level.
Even for Google Apps.
And yes, they work without your location.
And yes, Google Play Services reads your text messages for no reason whatsoever.
 
@rubenvb oh yes, there's that
 
0
Q: Why is the `keyup` handler being invoked here, and can I prevent it?

Lightning Racis in ObritConsider the following HTML5+Javascript: $(function() { $('#edit').hide(); $('#value') .css('cursor', 'pointer') .click(function() { $('#edit').show(); $('#edit input').focus(); $('#value').hide(); }); $('#edit input') .keyup(function(e) { if (e.ke...

#halp
 
3:16 PM
@LightningRacisinObrit are you asking to be lounched? (silly Lounge+lynch pun)
 
why are you writing javascript
why are you not doing jQuery.solveMyProblem()
so many questions
 
To lounch = to be lynched by the Lounge after dumping your irrelevant question here without any context. Pronounced as to launch, or to llouwnch or some other way (who cares, this is text chat!)
^star that bitches.
^or that
 
and not to mention that you used instead of
basically, broken beyond answering!
 
well I must have disabled something important
the thing won't boot now
 
lmao
ITT Bartek bricked his phone
what better opportunity to install CM?
have fun
and enjoy the speedup
 
3:23 PM
@LightningRacisinObrit why aren't you using $(document).ready(); for event binding?
 
note that Installing CyanogenMod 5.0.x-DS is in that thread but SE says the latest supported by your phone is CM6 so you want that instead
 
@rubenvb good one
@Nisk why not $(function() { ?
 
Ok, so I have an algorithm that works on a constant map or unordered_map. And returns a const_iterator. If in the call site I pass a map that is not constant and I want to modify the value pointed to by the returned iterator, I'm fucked, right?
 
@Xeo Oh well :/ I kept that tab open five days and ordered four today :\
 
@R.MartinhoFernandes I'm still on level 18.
@Jefffrey Yes.
 
3:26 PM
@sbi Thanks!
@LightningRacisinObrit What does that mean?
 
@LightningRacisinObrit Beautiful.
C++ is so great.
 
@Jefffrey const_cast ftw! But on a more serious note: fix your stuff!
 
@Jefffrey You can write an overload that returns an iterator if the argument has type map&
 
@Jefffrey This is why things that do finding (and such) should typically have both const and non-const overloads. If the input was const, it returns a const_iterator. If the input wasn't const, it returns a non-const iterator.
 
Xeo
3:29 PM
@Jefffrey There was a proposal for map.to_iterator(const_iterator) or something
a hack would be map.insert(const_it->first, const_it->second).first :D
 
@JerryCoffin Isn't it a property of the algorithm to only accept const stuff in? I mean if your algorithm is non-destructive, why on earth would you allow non const arguments? (inb4 "for this exact reason").
 
Xeo
although I guess that's no better than a simple map.find(const_it->first), eh
And since stdlibs collectively ignore hint iterators...
 
@Xeo What's const_it there?
 
The constant iterator
 
Xeo
some const_iterator into that map
 
3:32 PM
@Jefffrey Finding should be transparent with respect to const.
 
oh
right
but then it should be emplace(), right?
or insert({..., ...})
 
Xeo
er
yeah
 
loliterators
 
Xeo
it's stupid anyways, .find does the same
 
std::distance then std::advance(std::begin(... ... ? :P
 
Xeo
3:33 PM
I forgot stdlibs ignored hint iterators
 
@LightningRacisinObrit Not RA.
 
hinterators
 
Xeo
@R.MartinhoFernandes works fine for forward / bidi
 
@LightningRacisinObrit it's not an issue here, but $(document).ready() ensures all your script/resources are loaded.
 
@R.MartinhoFernandes std::distance doesn't require RA
that's why it exists, as distinct from op+
for shithackery
 
3:34 PM
Yeah, but it's rather silly.
 
oh, I completely agree
I did squirt out a ":P", after all ;)
 
iterators are unusable then
 
yeah not to overreact or anything
 
@LightningRacisinObrit answered.
 
Oh, and did they fixed not being able to capture by constant reference in lambdas?
 
3:41 PM
[x = std::cref(whatever)](){ /* ... */ }
 
@Jefffrey C++14 only. But that's quite easy to workaround in C++11 too
@milleniumbug With that you'll have to .get() though if you want member access
Perhaps a simple as_const() utility would be better
 
At least they fixed it in C++14.
 
You'll still have to write your own as_const() though
 
@LightningRacisinObrit updated. seems to fully work now.
 
@Nisk Depends on what library you're using as $ presumably.
 
3:54 PM
oh wait
 
@Puppy well considering the rest was jquery code...it's safe to assume it was jquery
 
I've been derping
 
Also, is taking a dictionary as argument of an algorithm that needs to find by key, "proper C++"?
How do you call it. It's not "proper", it's...?
 
as_const() won't work because x is initialized using auto, not auto&
@Jefffrey idiomatic?
 
Idiomatic, yes.
 
3:55 PM
So yeah I guess what @millenium wrote is the correct solution
Which leaves us with the .get() annoyance
or just auto const& ref = the_thing; auto lambda = [&ref] (...) { /* the shit */ };
 
@Nisk thanks for your time :)
 
oh, actually this is possible:
[&x = as_const(a)]
 
I'm asking on behalf of a colleague and it seems to be going down quite well
 
didn't know
 
3:59 PM
@AndyProwl That's what I ended up doing.
 
@Jefffrey The C++14 version would look like this
 
@AndyProwl as_const?
 
@Jefffrey Just a trivial utility
 
I see
 
could be a Standard utility actually
but then people would argue against the name
because as_
 
4:03 PM
If you're planning to work for Google, I'm sure they'll tell you how their insanity works. If not, why do you care? Just write idiomatic C++ and leave them to deal with their self-inflicted misery. — Mike Seymour 5 mins ago
kek
Google has pretty archaic standards. Guess they hire a lot of students and only can afford a small number of C++ wizards. — Maxim Egorushkin Mar 3 '11 at 17:56
^ also worth remembering
 
@LightningRacisinObrit If it helps, I heard from a colleague who used to work in C++ that Google bans template meta programming.
They prefer to use code generators instead.
 
giggle
well I guess I can sort of understand that
 
you misspelled "google"
 
is there like a compile-time way to map types to each other
like
 
4:12 PM
They have their on code generator language. Which I believe they use for more than just C++. (I'm not 100% sure since I never worked in that department.)
 
traits, I would say
 
that's obviously ugly (what I did)
basically, I want to make sure that
 
@Mysticial Started yet?
 
for a JFunction<JSomething(JInt, JString, JBool)> for example, the params passed to Execute are analogous to the java counterparts and can't be anything else
so int, string, bool
 
@LightningRacisinObrit Nope. I just flew into Chicago yesterday.
 
4:13 PM
so far the decltype on those overloads is the only thing I could think of :(
@AndyProwl googling
 
You can use a java_type_to_cpp_type trait
 
@Mysticial That was yesterday. What have you accomplished today?
 
user1804599
Hi.
 
@LightningRacisinObrit I've successfully woken up, gotten off the bed, and opened my laptop.
 
4:14 PM
ok well that's not bad I suppose ;p
 
Well, is taking an associative container by reference idiomatic, for an algorithm that needs to find a value or multiple values by key?
 
sure
I'd prefer taking it by ref-to-const, but that's your square one
 
"your square one"?
 
I can confirm that those were my words.
 
@R.MartinhoFernandes Happy birthday robor
 
4:16 PM
@AlexM. The trait may look something like this
 
@AndyProwl where's the factory?
 
(the variable x has type int)
 
Happy birthday Rabit Mortingha Firnundos
 
@thecoshman I forgot the manager as well
let alone the proxy, and the singleton
 
If you want a present from @Xeo for your birthday next year you'd better get your order in now
 
4:18 PM
I wish the javaFactorySingletonManagerProxy meme wasn't so true
 
@AndyProwl whoa
 
Xeo
@LightningRacisinObrit :(
 
@AndyProwl wheee
@Xeo :)
 
Xeo
> Attempted Delivery - Item being held, addressee being notified
well well :D
 
yeah I'm out today
 
Xeo
4:19 PM
heh
 
told you that would happen!
 
lemme try to do something like that
fuck this is exciting
 
is nobody going to comment on my amazing name for Robot
 
it's like back N years ago when I first learned C#
 
@AndyProwl Holy shit. I've just realized how big your snake game is.
 
4:21 PM
@AlexM. In the context of your original example, it could be used this way
(I also used variadic templates there, to avoid defining N specializations for N different arities)
 
I'm gonna look at it after I try out my own
 
@Jefffrey lol, and it's still shitty
Or maybe not shitty but not much fun
 
@AndyProwl How many LOC? It looks massive.
 
I've been thinking of adding multiplayer but after a day of brainstorming I realized I know too little about it and should try with a simpler game first
 
@AndyProwl is detail some well defined term in C++ or sth? in your first example you used it and some time ago I saw Cat used it too
is it the name of some notion that everyone agrees to?
 
4:24 PM
@Mysticial I don't know. There are a lot of files and folders, but files are generally quite small and there are unit test projects there too so the actual code isn't that much I think
@AlexM. It's a convention, but not a standard thing
Basically, detail defines stuff you shouldn't depend on, because it's part of the implementation, subject to change, etc. It's a detail that you should ignore unless of course you're trying to understand how it works
 
I think the largest project I've done that's not work-related and not my pi program is still under 10k LOC.
 
@Mysticial similar here; most of the stuff I write is well under 10k, with the exception of a raytracer - although I can imagine some of my functional code would expand well beyond 10k in an imperative language
 
@rightfold Are you Eelis
 
user1804599
No.
 
@Mysticial According to CodeAnalyzer It's 15k LoC including whitespace. Without whitespace, it's 11k
 
4:31 PM
@AndyProwl Any thoughts on Cinder?
 
@AndyProwl Does it count comments?
 
@AndyProwl ooh, as in implementation detail
I got it now
 
Apr 4 at 10:02, by Andy Prowl
@Rapptz hard to tell. I don't know OpenGL myself so it's difficult to estimate how good of a job it does abstracting its details. Some things are nice and easy to work with, but there are downsides too - not very good docs, missing functions, few RAII types, etc.
@Mysticial Yeah, but I have almost none (39 lines)
@AlexM. Yep
 
@AndyProwl lol
Maybe I should run it on my pi program. My own line counter that counts everything and skips nothing has it at 240k LOC. The second largest project that I still maintain is only about 4k LOC. lol
 
user1804599
Hi.
 
4:35 PM
@Mysticial It doesn't have the best UI ever but it's quite simple and offers enough flexibility (you can define which folders to ignore, which extensions to take into account, etc.)
It can export reports too
Boy when I was writing "not very good docs" about Cinder I hadn't seen Clang's docs yet
 
Fucking hell
Left work, head starting to ache
 
user1804599
@AndyProwl But will it blend?
 
My skull is cracking open I swear
 
user1804599
Eat medicine.
 
user1804599
Drink medicine.
 
user1804599
4:40 PM
Snort medicine.
 
@AndyProwl Missing RAII seems to be the bane of all graphic libraries
 
user1804599
Syringe medicine.
 
user1804599
Shove medicine up your butt.
 
Also software is a shitty industry, most of the code written sucks and we are forced to trash perfectly good devices because companies want you to spend money on new ones
I want Palm OS back
Also I want a mobile OS that's as reliable as old Nokia phones
Fucking shitty nonrealtime animated bullshit for the masses like android is disgusting
Soon they are going to ship car displays that won't manage 30fps
 
4:42 PM
@rightfold Blend?
 
@rightfold I wrote a "REPL" that does the following:
$ ebnf
Hmm, let me see...
In computer science, Extended Backus–Naur Form (EBNF) is a family of metasyntax notations, any of which can be used to express a context-free grammar.

$ stroustrup
Hmm, let me see...
Bjarne Stroustrup (; born 30 December 1950) is a Danish computer scientist, most notable for the creation and development of the widely used C++ programming language.

$ perl
Hmm, let me see...
Perl is a family of high-level, general-purpose, interpreted, dynamic programming languages.
Wanna guess how it works? ;)
 
user1804599
 
user1804599
@fredoverflow map from strings to strings.
 
And yet still we pack 2.5Ghz quadcores into mobile phones to show more numbers in retarded JavaScript benchmarks
 
'I feel lucky today'
 
4:43 PM
@rightfold Right, but the map is initially empty.
 
user1804599
Wikipedia API.
 
I request the raw wiki source and then try to filter out everything but the first sentence.
 
All that still lagging as fuck in simplest tasks like turning WiFi on
 
Doesn't always work so great:
$ water
Hmm, let me see...
Video demonstrating states of water present in domestic life.
 
Seriously the free lunch was never free.
 
user1804599
4:45 PM
@fredoverflow use the API.
 
@rightfold There is no API function for "get me the first sentence".
 
Use the API, Luke.
 
The only thing faster cpus managed was the offspawn of more crappy bloatware
 
There is one for getting rendered source without templates like infoboxes and stuff
 
rendered source = HTML?
 
4:46 PM
~bloat~
 
In shitty languages that can't even verify basic properties statically so they do shitload of unnecessary checks in runtime or crash outright
Because who wants stable software if your top goal is a shitty world clock widget
 
Android Market is mostly equivalent to these newspaper leaflets "send an SMS to get a game/wallpaper"
 
user1804599
 
Xeo
Did you hear about the black man killed by the police this month? No the other one. No not that one. The other one. http://t.co/FvH8uMorZt
7
oh boy
 
user1804599
Did you hear about that moralist?
 
4:48 PM
so which one is it?
 
It didn't change much - it's a change from Java (J2ME) to Java (Android)
 
Old java apps on phones with 4MB of ram worked better than android
 
Xeo
fuck, went too fast on my bike. my lung isn't keeping up
my endurance fucking sucks.
 
user3443231
Hi there, I'm new here :) I know it's rude (as I've read the rules etc) but would you mind taking a look at a question I've been stuck on for the past few days please? stackoverflow.com/questions/29924942/…
 
@BartekBanachewicz Did they? Not so sure now.
 
Xeo
4:50 PM
at least I beat my coworker in his car.
 
@Xeo I wonder how much selection bias is there in this.
 
@R.MartinhoFernandes like SO MUCH
 
@Ellen lacks clear problem statement
 
most of these SJWs are so racist and don't even know it amirite
 
4:51 PM
I mean I get what you want to do
 
nobody cares when a white man gets killed by police
 
But why can't you do it?
 
@R.MartinhoFernandes Did you notice how all the victims are black?
 
@LucDanton "all"?
 
user1804599
4:51 PM
@Ellen You're rude.
 
This is a list of people reported to have been killed by non-military law enforcement officers in January 2015, whether in the line of duty or not, and regardless of reason or method. The listing documents the occurrence of a death, making no implications regarding either wrongdoing or justification on the part of the person killed or the officer involved. Killings are arranged by date of incident which caused death. Different death dates are, if known, noted in the description. For lists of killings from other years, see List of killings by law enforcement officers in the United States. The table...
@rightfold No he isn't. You are.
 
I do believe they have a problem with police brutality, but I would be terribly disappointed if they failed to fix it due to focusing on race issues.
 
user3443231
@BartekBanachewicz getting errors which I don't know how to solve: pastebin.com/ZLH87bmz gyazo.com/0f34a3b65e0b9c072a37634cd4f02ea3
 
@R.MartinhoFernandes "if they did"* ?
bbl
 
Mmm, careful with the wording. You don't usually "solve" "errors"
 
4:54 PM
Well, more like the way they treat weapons in general.
 
@Ellen so,have you tried googling those errors?
 
How do I solve the error of being a programmer
 
Xeo
Become a cat. Oh wait.
 
It looks pretty obvious, you're doing operations on things that are incompatible in size
Like 64 and 32 bit number binary and or something
 
> Kocher was struck by a vehicle while walking down a highway. Police were called, and the responding officer struck Kocher with his car, killing him.
Sounds like a sitcom.
> Elliot was suicidal and shot himself. Deputies called to the scene confronted Elliot and subsequently shot and killed him.
WTF
 
4:56 PM
@R.MartinhoFernandes Happy birthday
 
> Coignard, Kristiana (17)
> (Mental Patient) Coignard, a minor with a history of mental illness, walked into a police station lobby and used a lobby phone to request assistance from a police officer. She had the words "I have a gun" written on her hand and threatened police with a knife. After a Taser apparently had no effect, she was shot four times in the trunk and extremities.
love that country
 
shame that wiki page say nothing about skin color
 
user1804599
R.I.P. @Ell
 

« first day (1655 days earlier)      last day (3286 days later) »