« first day (1876 days earlier)      last day (3066 days later) » 

3:00 PM
(also, proposed website stuff! nicolas-petton.fr/ressources/emacs-website)
 
crl
!!urban teehee
 
@crl tee hee a very wierd laugh, or if yo have done something bad you might "tee hee" at it with your friends.
 
yeh, zirak is weird
CONFIRMED
 
crl
classic Icelander
62
Q: $180.00 for a Stack Overflow T-Shirt?

RG-3You've got to be kidding me: Another One

you'll be rich Ben :)
 
I'd buy a SO shirt for $10 to show support
I actively try to get more people involved in SO and more generally to share knowledge and code. I'm not very good at it but if I can help it that's something I really do believe in.
 
3:09 PM
I'm still waiting for my shirt to arrive from that 10 million questions thing
 
I'd like to think that's why most of us are here.
I think progress comes from knowledge and empowering people to be capable and make stuff really is important as a challenge for us.
 
So... uhh... I was finding something in the transcript, and found something too scary to share here :S
 
crl
too late, you'll have to share now
 
Then why tell us
 
I want to, but won't tell directly. Search for "pedantic analogies"
and then see the context
 
crl
3:13 PM
how far is it?
 
It's Benjamin explaining promises to SomeKittens
 
that didn't end up well :/
 
The ragequit? That's the scary part?
 
contextually, yeah... benji was explaining promises!
he must have got so pissed
 
crl
Somekit sounds more pedantic than Ben on this, sorry for him :)
> since I'm not a complete idiot.
as an idiot myself
 
3:18 PM
Kittens and I are good friends.
 
Not that of a big deal
 
It's super annoying to do something for years and then have someone else tell you you went all wrong about it.
 
but common in software.
 
Not to mention - he had a tight deadline.
 
crl
it's hard to sync one's mind with someone else
 
3:19 PM
We're just humans, sometimes there's conflict but we're not stubborn jerks who can't put things behind them.
 
He could have handled it better then, so could I, now he writes pull requests for Rx so I guess it all ended up for the better.
 
3:30 PM
is someone here experienced with GNU gdb command from (Ubuntu/Linaro 7.4) ?
in linux, there is gdb perl -e. but here not. Is there an alternative for that ?
 
I've never watched Star Wars. Can someone tell me if I should? And if yes, should I just watch the movies in order of release?
Should I follow this instead? theweek.com/speedreads/443582/…
 
well, episode 1 only introduce three useful characters for the whole saga
it depends from person to person to start with IV or I
 
@SomeGuy Just chronological order
 
i have watched the marathon starting from 1. It gives you a lot back references when watching the next episodes.
 
Cool. I might not actually watch them all :P
 
3:37 PM
the only disadvantage is that "shocking effect" is gone
 
I didn't like IV, it's horrible. V is meh. VI is okay. Then you have I which was fine~ish, II which was pretty good, and III which I loved. I would honestly just watch I II and III, but if your goal is understanding shit in VII, you need IV V and VI
 
@RoelvanUden Then you're the opposite of me
 
@BenjaminGruenbaum ok =)
 
ah nvm, forgot to use backticking
run `perl -e ...`
 
@Zirak I see that you follow /r/emacs too
 
3:42 PM
@FlorianMargaine The mailing list
 
@Zirak oh, ok :)
 
...friday?
 
he is serious
 
Dead serious.
 
3:48 PM
And DAMN Microsoft :D
 
That's really cool
 
crl
!!chakra, spidermonkey or v8?
 
@crl v8
 
;P
!!google or microsoft or apple ?
 
3:49 PM
If they can make chakra run on Linux, that'd be even more friggin cool
 
!!undo
 
@Abhishrek I'm afraid I can't let you do that, Abhishrek
 
:'(
 
crl
!!google or microsoft or apple ?
 
@crl apple
 
3:50 PM
ha :>
 
crl
fangirl
 
It's going to be a great opportunity to get involved.
 
!!mozilla or google or microsoft or apple?
 
@AwalGarg apple
 
total fangirl
 
3:50 PM
with microsoft ?
 
@AwalGarg Wait, I changed my mind! google
 
^ lemon
 
crl
no AI :)
 
@SterlingArcher do you happen to have a tablet that ispowered by android ?
 
crl
it's powered by batteries usually
 
4:08 PM
^--
mad eme grin
 
crl
4:27 PM
huh, dat floor input
 
@BenjaminGruenbaum took it.
 
crl
regex'd dem floors
 
eval(document.body.textContent.replace(/\(/g, '+1').replace(/\)/g, '-1'))
 
I just looped over each character of the string. Did boring stuff with a couple others, and now I am bored. Initially I thought it is addictive :P
 
crl
4:42 PM
hehe nice with eval
 
That won't let him complete the second part of it, though :P
 
It'll need to loop and I'm lazy
 
crl
same here :)
 
FP helps so much with these things, tho :P
 
@AwalGarg just did the first one, a single reduce but nice.
 
4:49 PM
lol, I had no idea there even existed an 80char par line limit...
I guess it's just a general guideline?
 
@Zirak pfft, .split("").reduce((s, n) => s + ((n === "(") ? 1 : -1), 0)
 
pffft, Array.from(...).reduce
 
the index one exact same way but with the third parameter of reduce.
@Zirak pfft, [...str].reduce
 
yeah...who's got the patience
 
pffft, use Firefox and do Array.reduce(str, <func>)
 
4:51 PM
In related news, I hate styling
So badly
Continue with your lives
 
crl
but you can't break; a reduce, can you?
 
If only we had transducers, right @BenjaminGruenbaum?
 
I just throw inside it with the message as the index :P and copy it from the console
 
@Zirak how would that help at all?
 
crl
hacky way :)
 
4:54 PM
Transducers have a termination thingy thing
 
@crl sure you can, just use a sentinal return value.
@Zirak oh, you mean for termination.
 
And in clojure's reduce you can return reduced x to terminate early as well
You can also stop programming and go to the beach
 
I want to go to a historical museum instead and shout in silence.
 
Why the nan on challenge 2?
var input = document.body.textContent.split("\n").map(x => { var d = x.split("x"); return {l:Number(d[0]), w:Number(d[1]), h:Number(d[2])}});
var calc = (l,w,h) => (2*l*w + 2*w*h + 2*h*l) + Math.min(2*l*w, 2*w*h, 2*h*l);
input.reduce((p, c) => p + calc(c.l, c.w, c.h), 0)
 
x.split("x").map(Number)
 
4:58 PM
oh, the last
 
@BenjaminGruenbaum trim on input?
 
yeah, probably nicer.
 
crl
How a sentinel return helps to stop a reduce half-way?
 
@crl not "stop" half way. Atleast not in the native JS reduce.
 
crl
ah ok
 
4:59 PM
it was just the last line, now it works (well , the calc was off too)
 
I think what benji meant is:
1. either you add an if condition inside the reducer and process only if the last val is not the sentinel
2. write a custom reduce which stops the loop if sentinel is returned
 
Yeah, that basically.
Although what I really want to say is that you should not use a reduce if you need to stop it in the middle.
 
crl
ok
 
Just use a construct that does not conceptually mean folding over a collection.
 
crl
true yes
 
5:01 PM
And I use while loops for that :P
 
wait wait wait... the first bugs were actual bugs?
as in, the first computer errors came from bugs being stuck in places and now we call the rest bugs?
 
I don't think so. Source?
 
Grace Brewster Murray Hopper (December 9, 1906 – January 1, 1992), née Grace Brewster Murray, was an American computer scientist and United States Navy Rear Admiral. She was one of the first programmers of the Harvard Mark I computer in 1944, invented the first compiler for a computer programming language, and was one of those who popularized the idea of machine-independent programming languages which led to the development of COBOL, one of the first high-level programming languages. She is credited with popularizing the term "debugging" for fixing computer glitches (in one instance, removing a...
@BenjaminGruenbaum I disagree - you often want to reduce a collection until something happens
It doesn't break the conceptual analogy
 
@Zirak then you are not reducing a collection.
Something can't be half folded.
It's an indication you're using reduce for side effects most of the time.
 
You sum integers until you hit a zero, you go over items until you hit a sentinel, you eradicate humans while they're still white
 
5:13 PM
I have an Angular app with a chat module. The chat messages need to allow <a></a> and <img> tags only. In Angular how the hell do you do this? I have been looking at $sce from the $sanitize module and other stuff but it just seems crazy complicated that there is no solution to just simple whitelist HTML elements allowed to be outputted
 
crl
ah sorry misread
 
Or the case you've just encountered - you do something until it's no longer needed.
 
@Zirak Ahem, I have an issue with the last part. I am not letting you eradicate white asian chicks.
 
@AwalGarg @Zirak and apparently an earlier case was of bugs making noises in edison's phonograph. He thought his machine had something wrong, but it was just a few bugs
 
hehe, that's cool even if unbased
 
5:16 PM
I know of the origin of "patch"es, but this bug thing is new to me.
!!wiki software bugs
 
A software bug is an error, flaw, failure, or fault in a computer program or system that causes it to produce an incorrect or unexpected result, or to behave in unintended ways. Most bugs arise from mistakes and errors made by people in either a program's source code or its design, or in frameworks and operating systems used by such programs, and a few are caused by compilers producing incorrect code. A program that contains a large number of bugs, and/or bugs that seriously interfere with its functionality, is said to be buggy or defective. Reports detailing bugs in a program are commonly known...
 
> The concept that software might contain errors dates back to Ada Lovelace's 1843 notes on the analytical engine, in which she speaks of the possibility of program "cards" for Charles Babbage's analytical engine being erroneous:

... an analysing process must equally have been performed in order to furnish the Analytical Engine with the necessary operative data; and that herein may also lie a possible source of error. Granted that the actual mechanism is unerring in its processes, the cards may give it wrong orders.
 
It's also quite possible that it was used because it's something which bugs the programmer
 
@BenjaminGruenbaum news.ycombinator.com/item?id=10682507 :D :D :D
 
It's always worth backing these people up and encouraging them
 
5:23 PM
Down in that thread a chakra engineer boasted up for incoming cross-platformness. /me so excited
 
5:56 PM
morning, nerds
 
howdy kittens
 
huh, what odd behaviour
I've got a form with some checkboxes under it, and accessing form.elements.checkboxName gives an empty array
 
@SomeKittens Good evening
 
!!tell JacquesMarais ugt
 
5:59 PM
@Zirak isn't form an array?
 
But taking that html, putting it in about:blank and running the same thing gives the checklists
 
@SomeKittens thanks for the gustav fix
 
@SomeKittens You can access elements by their name on a form
 
@NathanJones no problem, thanks for reporting it!
 
Or by their index
 
6:00 PM
there were like 2k downloads and you're the only one who mentioned it
 
:P Okay @SomeKittens, I'll use morning
 
And now we wait for Dropbox to sync
 
But HTMLElement.prototype.dataset is still the most scary and mega-magical DOM property ever.
 
It only happens when the form is in a shadow DOM
 
@Zirak ooooh that sparks my curiosity. Elaborate?
 
6:03 PM
I'll make a demo
 
ping me when done
 
woooo, just remembered I have about 8 leftover honey bbq wings in the fridge
[microwaving intensifies]
 
If I extend a constructor and add stuff to the prototype of the new constructor. When I call a property does it first check the object, then the constructors prototype and then the constructors constructors prototype?
 
Depends on how you extend a constructor.
 
I call it from inside the second constructor and set the prototype and constructor below the second constructor function. I didnt even know there are multiple ways of doing it
 
6:08 PM
Then yes.
 
Thanks
Could you give me some link or keyword to search for for another way of extending?
 
ES6 has classes which support extending other classes. That's one way. Other is just a stripped down version of yours: calling the other constructor, but not assigning the prototype.
 
Never heard of not assigning the prototype. what would happen :o? And yeah the ES6 I have looked at. Babel just compiles too slow on my laptop
 
Manually going over form.elements works of course, but still...weird.
 
The world map of the chat users is a very nice idea :-)
 
6:19 PM
@Zirak interesting. File an issue on crbug tracker?
 
Yep. Meant to check other browsers, but realised chrome was the only one supporting createShadowRoot
 
FF supports it behind a flag. Lemme check, sec.
 
oh, it must be behind a config
Yep, dom.webcomponents.enabled
It works in firefox 42
 
@Zirak same here, bug in chrome indeed ^^
(I am on FF44, though (aurora))
 
aurora doesn't exists anymore
now it's developer edition
 
6:23 PM
Hey all :)
http://jsfiddle.net/3esvvver/
Any tips or feedback anyone? And, sorry for lenghty Q :)
 
@Neoares Which is aurora
 
the old aurora, yes
 
No, the release channel is still officially called aurora. Only the browser branding has changed.
It is confusing, yeah, but... does it really matter? :P
@sunto why don't you post this on Stack Overflow instead? looks like a question which can survive for atleast 10 minutes or so.
 
Ah good idea
 
using jsfiddle to write the question
new meta
 
6:26 PM
> Multiple form inputs with the same name not accessible with shorthand when under shadow root
 
heh, it was freacking long Q xD
 
That's not a short name. Shorten it.
 
> Buggy property accessors on form inputs in shadow dom
 
@sunto Did you really just dump a bunch of text into the html box in jsfiddle and linked there?
@AwalGarg ...that's better
 
@Zirak
I at least took the time to put in some breaks, I started writing my Q here :p
@Zirak
I will post Q on SO, hehe didn't want to dump it in chat :P
 
6:28 PM
@Zirak I checked on nightly too just to be sure, nightly from yesterday night seems to have an almost final implementation of the shadow dom draft spec.
Which makes me think, when'd they ship it turned on by default :(
 
Hi. Does browserify understand es6?
 
I'd have added that it works correctly in FF
 
Would you like to comment?
 
@Zirak you were mentioned in one of my wife's student's essays.
 
6:41 PM
The Great Wizard of the North?
 
> Arthur McPervington III
 
Fame at last
(@AwalGarg commented on it)
@SomeKittens What was the essay on for such an esteemed person to be featured in it?
 
They've been studying the Hero's Journey archetype and had to write their own
 
Anyone feels like sharing thought about a half-a-mile-long Question, feel free to read here. :)

http://stackoverflow.com/questions/34109487/is-this-a-good-practice-for-ajax-website-and-should-i-make-php-work-inside-htm
 
that's not a good question
 
7:02 PM
@SomeKittens
Ok, do you have any input on how I would know, if the way I have setup my site, is 'commonly accepted?'
 
I have no idea - I didn't bother to read your question.
 
Well ok then, title's do matter xD
 
first off, it seems too broad for SO's Q/A format
 
haha lol
yeah i know
 
@sunto don't write so much
come to the point
 
7:03 PM
programmers are impatient
 
I stated that also, but want to givce as much info as I can, to understand my scenario
ok, hehe true
 
otherwise i'm afraid you will get downvotes soon. i pray you don't
 
more info is fine, if the gist of the question is upfront
 
Ah, good point. I will edit @Luggage
 
@SomeKittens This is great
 
7:06 PM
Put that on the Chromecast, turns out my wife's tolerance is ~10min
 
Without noticing I started woah-ing along
 
One of my friends made an AMV to that song
I need to find the video
 
anybody might like this. i do, though I have no idea what it says
 
convince me: why not goto?
 
7:14 PM
@towc Everyone will laugh at you
 
probably
 
@Luggage
Hope it's more clear what the problem is, so as you say dev's can see the problem right away if they have knowledge I guess.
 
it's one of the cases where I know I'm wrong, but I'm not sure why
 
@sunto still too long man.
 
!!tell towc google why not goto
 
@nickB
Alrighty
 
it breaks the flow of a program, making it harder to figure out what the hell is going on
 
The best reason though is to program using goto, actual goto stuff. Then you'll feel it in your bones.
Or better, debug somebody else's goto ridden program
 
like @ShotgunNinja said.
spaghetti code
 
in a 500,000 LoC app, i used goto maybe 6-7 times, mostly in some ugly file export logic that just wasn't worth re-structuring to not need it.
just use it very very sparingly
 
7:18 PM
Also, goto has its uses still in C and friends for memory de-allocation
 
oh my god this is priceless
 
I guess I can't really argue for it if I've never actually used it...
 
Lounge is being trolled by a drunk motherfucker with 24k rep
 
int foo() {
  int status = SUCCESS;
  void *crap = malloc(1024);

  if (crap == NULL) {
    goto cleanup;
  }

  if (!somecall()) {
    goto cleanup;
  }

  // ...

cleanup:
  if (crap != NULL) {
    free(crap);
  }

  return status;
}
You have to free crap, without goto that'd be hell
meh, forgot to assign status, but you get it
 
That's what using and finally blocks answer in some languages
 
7:20 PM
Yep, or RAII in C++
 
if (crap != null || someCall()) {
    // do stuff
}

if (crap != null) free(crap);
return status;
 
@nickB
Not I have faith, that it aint to long, and is as straight to the point as can be.
If I have included to much info, probably because I assume I have some wrong terminology and such, and therefore want to explain, like if I am explaining to a 1 year old:P I guess the 2 year old is me xD
 
@Zirak it's like memory deallocation, as you mentioned earlier, right? How would it be harder if you used functions?
 
@Luggage Now imagine you have code between crap == NULL and somecall
And a bunch of shit after that
 
Make it a new method?
 
7:22 PM
@towc Whadya mean?
 
I have no imagination.
I assume the function is just a couple ifs an a comment.
 
@Zirak void cleanup?
 
Dudes, write in C for a while
 
I have
 
I know c.
 
7:22 PM
All your arguments would be instantly invalidated
 
many times
 
And you'll cry
 
Never used it in anger, though.
 
And it'll be okay
I'll hold you
Cry into my armpits
 
@Zirak thanks for the pre-remotivation
 
7:23 PM
@towc Elaborate?
 
@Zirak You didn't say that would be involved
Count me in
 
why C when you can swift?
 
@Luggage Ever written complex programs in C over the course of several months?
 
instead of goto cleanup you do cleanup() and use a void cleanup(){ free(crap) and such }?
 
No, that's what I meant when I said "I never used it in anger"
 
7:24 PM
but yeah, C and C++ were like the first programming languages I learned in high school.
 
I know the language and understnd pointers and memory allocation, but I'm not very experienced in it
 
after QBasic and VB
 
@towc You mean make a function which just calls free?
 
@sunto haha. makes sense
 
I've done a fair bit of fiddling with NDS programming
 
7:24 PM
Maybe we can call it free
 
See you on thursday ! @SterlingArcher o/
 
@Zirak that's just silly
 
!!afk dinner, keep writing
 
But imagine you have more than one allocation, and the deallocation is slightly more complex with that
 
does c have try/catch? i forget
 
7:25 PM
Because you also have to deallocate some struct members
@Luggage You don't have exceptions
 
then fuck C.
 
@SomeKittens 32 minutes
 
Oh, does anyone know why my safari on Iphone gives popstate- event.state= null, on the same page that this wont give null anywhere else?
I.e, chrome and FF, I assume have fixed popstate on load, is that the reason?
 
This is how I learned what C can do:
look at line 126
 
That is magical
 
7:27 PM
I have like,

if (e.state ==null) {showFrontpage()}, if not do popstate with filename
 
A union in a struct in a union
...in a struct in a union
 
here safari goes to fronpage on load, even if it is a subdomain :/
 
@Zirak that's a structural mapping of the Object Attribute Memory cells of the Nintendo DS
 
which are segments of memory that are written to to accelerate sprite rendering
@Doorknob TIL
 
7:29 PM
 
@SomeKittens WHOA-OH-OH-AH-AH-AH-AAAA-HA-AH-HAAAH
 
D/Ling virus..... 56%
 
it's awesome, you just write into the OAM and the processor takes care of rendering for you
 
Tilt the monitor so the download bar is pulled by gravity so it'll go faster
 
and you have no hit to the core processor speed for pushing pixels
 
7:32 PM
@Zirak that text looks obliterated as I move my eyes along it
@towc leave C, just write rust now.
 
@AwalGarg towc is afk: dinner, keep writing
 
currying \o/
 
@Luggage you have to use signaling instead :P
or something with setjmp and longjmp
 
eh? You just return error codes
Signals are for the outside world
 
@SomeKittens what about it?
 
7:37 PM
I don't like curried functions. I like curry though.
 
@nickB
Ah, I saw now that u suggested an edit, see what u did there, thanks :)
 
@Luggage just had a funky problem and realized I could just curry.
 
Ah.
 
one of the first times I've figured out I could use FP in the wild, so to speak
been struggling with bridging the gap between trivial examples and real stuff in FP
 
ah. in JS?
 
7:39 PM
yeah
 
while not true currying, I use partial application regularly
 
@sunto ya, but i can't see the edit. The thing is, I really don't like giving or seeing downvotes. There are people who downvote without hesitation. So, showing you how to avoid them.
see you got one.
 
@nickB
I understand, I didn't see the edit, before editing myself, perhaps that's why? Then someone else edited it I think, I couldn't find somewhere to 'accept' your edit?
 
@sunto but i don't understand this -> "Would it be better to change .php to .txt"
why would you wanna do that?
 
YEAH
Got a Gustav workflow emitting all data emitted by non-sink nodes to a websocket
 
7:57 PM
@SomeKittens Congrats!
Also, I finished your video
 
suuuuuuuure
isn't it 10hrs?
 
It's just one hour
 
We had it playing in the office for a whole day once
 
wtf is this
 

« first day (1876 days earlier)      last day (3066 days later) »