« first day (1868 days earlier)      last day (3074 days later) » 

2:00 PM
oh vboxsf, how much I loathe you...
 
ok it's almost time for me to test this bulk script I have
I'm worried it's not going to work
 
# git status
^C^C
 
every time I learn something new something old gets pushed out. Last week I learned swans can be gay and now I forget how to open windows.
true story
 
after 10 minutes, should I kill the terminal?
 
@FlorianMargaine can you not just kill it from another terminal?
 
2:01 PM
@djsmiley2k it's not killable
 
    .reduce((ret, inp) => {
        // kill me some more :D
        // inp.name = min-paramName
        var parts = inp.name.split('-'),
            specifier = parts[0],
            paramName = parts[1];

        var parameter = ret[paramName];
        if (!parameter) {
            ret[paramName] = parameter {};
        }

        parameter[specifier] = inp.valueAsNumber;

        return ret;
    }, {});
 
Fire!!!! magma!!!
 
...
I don't like this at all
 
@FlorianMargaine is it Z?
 
@djsmiley2k no, that'd be too easy
 1201 pts/0    D+     0:00  |       \_ git status
 
2:02 PM
:D
 
it's a D
 
Already dead.
rofl
 
that doesn't mean dead
it means "uninterruptible sleep"
 
2:02 PM
I know: (
It'll awaken, and die
It's annoying because you know this, yet it continues
 
vboxsf is the only thing I know that frequently does this.
 
@FlorianMargaine Reboot
 
@Zirak yeah.
 
#name#notCool
fn "handleTemplate" ->
fn "handleUserDefinedTemplate" ->
fn "handleUserDefinedTemplateAttachments"
fn "handleSystemDefinedTemplate"
fn "handleSystemDefinedTemplateAttachments"
 
oh yeah, and vboxsf is a piece of shit
 
2:04 PM
this isn't Java
 
:O
2 weeks for me to write a project
1 evening for Cereal to train me in the ways of functions
 
doesn't support hard links, doesn't support mapping a loop device, doesn't support... so many things
 
1 rewrite later and everything actually works. FIRST TIME :O
I don't trust that my code actually works. D:
 
@Zirak damn, I should've seen where the process was stuck :(
probably vboxClose again
 
@djsmiley2k technically second time
 
2:10 PM
@Zirak half-way there: es6fiddle.net/ihhqy8rf
 
10 mins ago, by Zirak
    .reduce((ret, inp) => {
        // kill me some more :D
        // inp.name = min-paramName
        var parts = inp.name.split('-'),
            specifier = parts[0],
            paramName = parts[1];

        var parameter = ret[paramName];
        if (!parameter) {
            ret[paramName] = parameter {};
        }

        parameter[specifier] = inp.valueAsNumber;

        return ret;
    }, {});
Trying to approach it differently
 
reduce and object.assign will finish it
ah.
 
var names = new Set(
    Array.from(form)
        .filter(inp => /^(min|max)-/.test(inp.name))
        .map(inp => inp.name.split('-').pop())
);

Array.from(names).reduce((ret, paramName) => {
    console.log(paramName);
    // kill me :D
    var minElem = elements.namedItem(`min-${paramName}`),
        maxElem = elements.namedItem(`max-${paramName}`);

    console.log(minElem, maxElem);
    ret[paramName] = {
        min: minElem.valueAsNumber || 0,
        max: maxElem.valueAsNumber || 0
    };
sigh
 
so, what I said
:D
 
Is it possibile to create a new DOM node type?
 
2:18 PM
I don't like that much better
 
I like it
it's simple
and, imho, elegant
 
@ErroreFatale angular already does this
 
It seems like doing a lot of things
But...meh
I'll use that
 
well, the names fetching should be separate (as in, part of bootstrapping or something)
 
2:19 PM
gmmm google music really can't get a handle on my tastes
it just ends up playing me a single genre.
 
@Zirak also: any reason to not use const?
 
Is there a reason to use it?
 
it's more correct?
 
What do you mean?
 
it's block-scoped
 
2:21 PM
thanks
 
And?
 
and it defines a constant, not a variable you're going to mutate
at least use let, but just drop var
 
I'll use const when my intention is to create a constant. I always viewed variables as globs of data, and var means to me "here's a glob of data", no extra intention behind it
const implies intention. But I'm biased because I have a fervent hatred of final from my Java days.
Every time I saw a final I knew suffering was going to come
 
!!s/final/life/
 
@Luggage Every time I saw a life I knew suffering was going to come (source)
 
2:24 PM
damn
 
> But I'm biased because I have a fervent hatred of life from my Java days.
much better, indeed
@Zirak well, I like having intention and not just "globs of data"
 
"what are your intentions with that variable?" "we're just friends"
 
http://pastebin.com/St1nC1TK is it just terrible ?
 
@FlorianMargaine Maybe one day I'll see the point. But that won't be today.
It's also part of me not really seeing the point of let
 
What
You always want to most confined scope
If you don't see the point of const and let, you may as well not use var either
 
2:26 PM
My unit of computation is usually a function
 
@Cereal I went on to functionize the bulk page
 
@Cereal Let's not be stupid
 
it works!! \o/
 
Does it? good
 
Not agreeing that block scoping is superior to function scoping doesn't imply lack of scoping at all
It's also based on using let instead of var for a project or two and noticing zero difference
 
2:28 PM
@Zirak closure loop bug?
 
it can matter for variables in loops
yea, that.
 
When was the last time you used a loop?
 
I just use let everywhere and almost neve const.
 
last week
 
a few minutes ago
 
2:29 PM
...why?
 
@Luggage I almost never use let, always const
 
.map() and .reduce()
 
Great, those are functions
 
I come from Java and C#, so I'm probably biased in favor of const and let
 
which take functions, hence closure loop bug
 
@Zirak Functions that loop over an array
 
I prefer for … of over reduce
 
^ that's the only reason I see to use let
@Cerbrus Why do I have to argue semantics today :(
 
@copy I second that
 
2:31 PM
@Zirak Because why not :P
 
guys, I present a file upload dialog if the user requires it -- I'd like to let them choose a file, then immediately start uploading it, ideally with a nice progress bar or something
 
@Zirak I found let like the new candy every one was using over var so switched to it
although you are correct
the only difference it has made so far is made my for loops a lil bit more sane
 
yea, var is fine 95% of the time, but let is fine 100%.
so.. no big deal.
 
The only use for let (that I've been able to see) is in for...of loops, which I personally dislike and avoid. Therefore, I see no reason to use let.
 
let only differs in behavior in the area where people commonly mess up var.
but when you don't need it's special powers, it's jsut the same as var.
 
2:33 PM
Zirak just woke on the wrong side of the horse pen.
 
anyway.. i'm not arguing about var, i still use it sometimes, but i try to stick to let since i haven't found a downside
 
@Zirak const catches bug where you accidentally use a variable name twice
 
How come I'm only seeing let being used a lot, recently, while it's been around a few years already?
 
yea, i should start using const more.
 
@Cerbrus support
 
2:34 PM
@Cerbrus Education
 
@copy You mean shadowing a variable?
 
@Cerbrus only recently became and actual spec.
 
That's true. Frankly, I don't care.
 
Quick answer <3
Makes sense
 
2:41 PM
@Zirak nice! where is the exact behavior specced?
 
@AwalGarg form[0] is the first input, etc
 
ooh, right, just the @iterator method then
 
Not even iterator, plain length and numeric indices
 
@Zirak but Array.from's spec says it should call the @iterator method :/
 
!!> var o = { '0': 'a', '1': 'b', length: 2 }; Array.from(o);
 
2:43 PM
@Zirak "a,b"
 
(if it exists, which it does, for form)
 
Are you sure?
 
@Zirak yeah, completion ^
 
Zirak is an amish programmer. He'll stick with var and .length until the elders say he can use more. :)
 
He gets a lashing for using lambda functions
 
2:44 PM
@Zirak why yes, that's how we can Array.from on generators, right?
 
I used with religiously
@AwalGarg I meant are you sure forms have Symbol.iterator?
 
If I get a refund on a steam game, can I buy it again later?
 
Should be able to
Don't see why not
 
@Zirak I want to say yes, but can't. Pretty sure I have read about it somewhere.
 
@Luggage nice post about custom elements :O
 
2:46 PM
Testing on Chrome says "no"
 
Thank you. I lovingly googled for it.
 
@Zirak testing on Firefox Dev edition says yes.
 
I didn`t knew about that
very nice :)
 
HTMLFormElement.prototype[Symbol.iterator] + ''
20:17:08.177 "function [Symbol.iterator]() {
    [native code]
}"
 
2:47 PM
@DiegoFaria if you like that, see Polymer
 
your browser sucks zirak, deal with it! :D
 
We live in a land of controversy
 
undefined in edge
 
in chrome, it's a random quote.
 
@Cereal does Symbol.iterator itself exist in edge in the first place?
 
2:49 PM
Making me open edge again
ugh
Yes
 
both of your's browsers suck, then :D
I asked in IRC but they ignored me :(
but anyways, since it does work, we can do stuff like Array.from(formEl, el => ({[el.name]: el.value}))
then Object.assign({}, ...<above>)
 
<div id="ITODF-336" class="col-md-12">Jira ID: <a href="https://aURL.atlassian.net/browse/ITODF-336" target="_blank">ITODF-336 raised</a></div>
lol
$("#" + jiraID).html('<div class="fileUpload"><input type="file" id="' + jiraID + '" name="' + jiraID + '">')
That... should put the html on, right?
jiraID value is ITODF-336
 
@Luggage seems nice Polymer
I am always afraid of frameworks, BUT I have to try it :)
 
3:05 PM
...TIL: In chrome's inspector under the Computed tab, you have a box model. You can edit values there.
 
o.o TIL
 
Isn't that there since... forever?
 
Perhaps. I just never tried.
 
yeah I didn't realise you could change values in most of that stuff
 
I don't use it to edit values, because I don't see how that is better than just adding rules to the element. But to get a quick overview of the layout of a particular element, it is pretty cool.
 
3:08 PM
You're already there to inspect the padding and stuff, why not also play with them
 
Doh!
forgot to remove teh closing bracket after expanding my function, no wonder it never added that html! XD
 
yeah, I just never have had a use to edit the values. Then again I don't do much frontend work so there is that. vOv
 
I often write functions, then 'test' for 5 minutes before I realize I never called the function I just wrote.
:/
 
so why you write the function
 
no
I mean like
 
3:16 PM
He means he's stupid
 
crl
YIL in chrome inspector you can see eventlisteners
 
function init() {
 // all the codez
}
// I never call init();
 
!!s/H.+ns //
 
@AwalGarg he's stupid (source)
 
:D
 
3:17 PM
don't care, got $$
 
@crl getEventListeners on an element
(in the console, of course)
 
Also the thing that getEventListeners returns has the internal API to remove the listeners dynamically too :D
I sooo much wish it was exposed to userland
 
today's the day
 
In case there's somebody who can help me here:
0
Q: Adding a dependency to a gretty task

Denys SéguretI'm using the gretty plugin in Gradle. It works, I can list the tasks, for example appRun, and execute them. But the tasks aren't found when I try to add a dependency with apply plugin 'war' apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin' transpileScss <<...

 
crl
@Zirak ah, thanks
!!s/rebe/chewba/
 
3:27 PM
@crl chewbacca.blackfriday (source)
 
guys, do you know how to make a HTML5 video autoplay ON MOBILE?
 
We should put a ban on autoplay
 
chrome ignores autoplay now
 
Humanity as a whole
 
I have got a JSON object, which should actually be an XML document object, but it is a JSON object. Now I somehow pull out a sub-object from it. Is there some magic which can give me it's parent object? (I know I can iterate and find manually, but no)
 
3:31 PM
!!s/autoplay/Humanity as a whole/ 27155858
 
@rlemon We should put a ban on Humanity as a whole (source)
 
crl
@ivarni @Sheepy a bit of experience with tinyMCE? jsbin.com/fofejo/edit?js,output I'd like to change the dropdown title 'font size' to just an icon (less space), is there a way other than rebuilding their lib? (their docs suck also)
 
toolbar_items_size : 'small',
 
crl
oh
 
still text, but smaller now
 
crl
3:35 PM
nice thanks
 
using .html overwrites anything that was there before, right?
 
Yea
 
3:50 PM
@Loktar that is so good
 
@djsmiley2k what was there before html?
now we're being philosophical
 
@Neil :D
 
@Neil sgml
 
!!google sgml
 
3:57 PM
not very standard
 
!!youtube aha take on me
 

« first day (1868 days earlier)      last day (3074 days later) »