« first day (2048 days earlier)      last day (2893 days later) » 

12:00 AM
@Luggage one of my favorites is a peanut butter banana and potato chip sandwich
 
I have never put chips on that sandwich, but I can see it.
 
Chips are so bad
 
I'm not saying it's healthy, I'm saying it's tasty
 
and a few chips on a sandwich is nothing compared to the piles some people eat (I'm not a chip person)
 
yeah you use like 1/2 a serving
 
12:04 AM
Has Zirak changed his name again?
 
to?
 
Zirak, Hveragerði, Iceland
17.4k 7 48 76
 
Hmmm, guess he's just not in the room. No autocomplete on his name
 
file a missing persons report
 
Missing person?
 
12:06 AM
robot?
 
he hasn't been online in two week s
 
12:35 AM
> In the past 30 days, you spent $584.56 on Furnishings. Usually you spend $16.
I found this really funny for some reason
wow... I've invested enough so I can actually see the stock market's effect on my net worth
 
12:57 AM
> I suddenly have opinions about the capital gains tax!
 
@SterlingArcher LOL. After reading Gary's first paragraph, I thought I knew what was coming. But lol
 
@littlepootis SterlingArcher is afk: sprint grooming meeting
 
@Luggage yeah, fuckin' raise it! it doesn't affect me, I'm long everything
@Luggage ahhh, the conservative sandwich-heavy portfolio pays off in the end!
 
You didn't even refrigerate it?!
I never miss a Futurama reference.
 
1:54 AM
@AwalGarg I don't have any recommendations, and since you seem to have settled on that one, let me know how you like it!
 
!!makeElement or $
 
@Shea That didn't make much sense. Use the !!/help command to learn more.
 
!!makeElement or dollar sign or something else
 
@Shea 2
@Shea dollar sign
 
no dollar signs.
 
2:52 AM
anybody here any good at lodash?
0
Q: elegant way to calculate sums of types of keyed data in lodash

ShaneI want to loop through an object, and extract types of counts and sum all the types together. Is there a more elegant way to do this in lodash? This feels clunky to me. var groups = { groupOne: [ {name: 'firstType', count: 20}, {name: 'secondType', count: 5}, ], grou...

 
totals[type.name] += parseInt(type.count, 10);
drop the getCount function
ohh, it's there to default to 0. hm..
 
yeah
I was hoping lodash had some kind of util to manage defaults
 
I like to use chaining then I use lodash.
or it could be a reduce inside a reduce..
 
interesting... hadn't thought of flatten
thanks man, I'll play with that
 
3:09 AM
@ndugger I am proud of you
Good work
 
@Shane I added a 3rd, plain es6, no ladash way that i think is cleaner: jsfiddle.net/bzg7tt1x/1
note that the identifier prev is in two contexts, there, and that could be confusing.
 
right, k
looking through it still
yeah, I think I do like this better
 
might want your parseInt back if you don't trust your data
 
I do for this case, but I think I'll put it back and make it a util function
Object.keys(groups).reduce((totals, key) => {
    return groups[key].reduce((t, group) => {
        t[group.name] = (t[group.name] || 0) + group.count;
        return t;
    }, totals);
}, {});
changed the names a bit
 
user4196492
3:58 AM
I am trying to reset my counter variable for an orbit once the cycle has been complete.

I can calculate the x position in the orbit by doing Math.sin(counter) and then implement distance and speed accordingly.

My current way of incrementing the counter is by doing this:
counter = (counter + speed) % reset;

the reset variable needs to represent the final position in the orbit before it can reset the counter and be in the same spot.
 
 
user4196492
@Feeds is it pi?
 
user4196492
haha! that did it!
 
user4196492
thanks
 
user4196492
it is pi * 2, because you have to account for the other side of the orbit
 
4:20 AM
So .net core is open source?
btw, good morning
 
@Mr_Green Yes. It is one of the first major open source from MS.
 
@Sheepy wow so I can happily go with .net instead of PHP and announce in office?
btw, I am looking for the same. afaik, it is open source for Individuals but not commercially open source.
still searching
 
@Mr_Green Many languages are open source. Open source alone doesn't mean a language can replace PHP.
 
Just planning to personally replace it.
 
Perhaps. .Net has plenty of frameworks to power common needs.
Just don't expect the same level of community support as WordPress, Magento, or MediaWiki.
 
4:34 AM
yeah understood. thanks
 
4:46 AM
@Shane How about var result = {}; for ( var name in groups ) groups[name].forEach( t => result[t.name] = ( result[t.name] || 0 ) + t.count );
 
5:18 AM
hello hello. Good morninggg !!!
GMT+2 Time
Guys i can't solve a small problem with moment.js . I try to add some minutes from this moment but i need to return me 24hours formatted date.
moment().add(5,"hours").format("YYYY/MM/DD hh:mm:ss");
now is 8:19am and return me 2016/05/25 01:19:00
i need 13:19:00
 
5:57 AM
Hello, good morning
 
@Sayed Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@CapricaSix, Okay sure
 
!!hey
 
@littlepootis That didn't make much sense. Use the !!/help command to learn more.
 
<input type="hidden" name="independent_id" id="independent_id" value="2">
<a onclick="change_checkbox(document.independent_id.value);" data-dismiss="modal" class="btn btn-popup2" href="javascript:void(0);">Cancel</a>
How can I get the value of independent_id in onclick ? any idea?
 
6:00 AM
Yesterday, I post one question...I need you guys help.
0
A: DataTable Grouping Rows need a Expand/Collapse feature

Rahul PawarYou should do something like this: <table> <tbody> <?php $i = 1; foreach ($your_data as $value) { ?> <tr class="odd" role="row" id="table_<?php echo $i; ?>" > <td class="details-control" id="a_<?php echo $i; ?>"></td> </tr> <tr id="subtable_<...

 
6:19 AM
Fixed guys
moment().add(5,"hours").format("YYYY/MM/DD HH:mm:ss");
 
cap is back
 
user3119231
good morning to this beautiful wednesday
 
In my university:

- Guys how can i change my password on linux ?
- Oh idiot questions..Press alt + f4
 
didn't work
does android count as linux?
 
user3119231
@William android is android. does audi count as vw because its produces from the same people?
 
6:30 AM
I'm just joking around.
 
user3119231
me, too.
 
Android uses Linux kernel, but it doesn't have programs commonly found in Unixes.l
 
Not by default, but you can install something like termux.com , works without root and programs are linked to bionic libs.
 
Well, of course, you can run any Linux programs using Shims.
 
user3119231
@littlepootis Well you could install windows phone
 
6:55 AM
Or install a windows launcher on android phone. Does that make it a windows phone? In a sense. Certainly can fool people.
Or iOS launcher.
 
I dont know if that is due the laptop keys but the jQuery keyup handler doesnt get called when the key is pressed softly.
I have noticed this happening
 
SystemJS or RequireJS?
 
@littlepootis TIL
I just figured Google built it from the ground up
But that makes a lot of sense
 
user3119231
@Sheepy btw: this is what I've meant
 
user3119231
@techie_28 you mean keyDown and keyUp event?
 
6:58 AM
@Neil Google didn't build Android from Linux, either. The bought it from Android Inc.
!!wiki Android#History
 
Android commonly refers to: Android (robot), a robot or synthetic organism designed to look and act like a human Android (operating system) Android TV, Android OS customized for television Android Wear, Android OS customized for wristwatches Android Auto, Android OS customized for vehicles Android may also refer to: Android (board game) Android (film), 1982 Android, the Russian title for the 2013 film App "Android", a song on The Prodigy's What Evil Lurks EP "Android" (TVXQ song) "Android", a song by Green Day from the album Kerplunk Methyltestosterone, brand name Android The Androids, an Australian...
 
Where can I file a feature request for Cap? Hash on wiki command would be nice...
 
user3119231
Just ask raging lemon
 
@Sheepy Open an issue
What do you mean "hash on qikipedia"?
 
@Maurice yes.. sometimes I press number in the textbox in a quick flash..keyup doesnt fire then
I believe a key should be fully pressed before keyup fires?
half pressed key also giving input in the box but doesnt fire the event
has anybody else noticed?
 
7:01 AM
@techie_28 If your finger does not trigger the keyboard to say "keyup", it is same as a long press and it will keep sending keypress. (Technically, this is an OS feature)
 
user3119231
@techie_28 hm, nope. i never noticed this (since I don't use jquery)
 
@Sheepy lets say I half press a number key,I can see that number in the textbox but the keyup handler does not get called.. comments about this?
 
@techie_28 Assuming that's after you totally released your finger... no idea
I am not aware of any keyboard driver that would interact with browser like that. And a faulty keyboard should assume that the number is still being pressed causing other trouble.
 
I try not to put myself in the situation in which I need to monitor each individual key press event. It's a bit like reading input one getchar () at a time
 
@MadaraUchiha !!wiki topic#subtopic > http://en.wiki.../Topic#subtopic
 
7:06 AM
Aha
 
@Neil Been there. Have done worse. Something like listening to keyboard signal...
 
@Sheepy oh joy. That must have been fun
 
user3119231
 
Where can I download enough motivation to learn ES6?
 
Yeah. We actually already had "high level" and "low level" access at different IRQ (ever heard of IRQ?). Can't even remember the different now.
 
user3119231
7:16 AM
@littlepootis your right hand will motivate you enough - start to learn something
 
@Maurice I didn't even know that was implemented already
 
user3119231
@Shea you're welcome!
 
:)
 
user3119231
@littlepootis ...
 
7:21 AM
> Hey, you dropped... shitshitshit um, nothing. You look great!
 
user3119231
another important feature: es6-features.org/#StringInterpolation
 
@littlepootis I suppose you're not all right?
 
@Maurice hhnnnnnnngg
 
@Neil For someone who has been left all along..
 
@littlepootis it is a little disarming
Solar panel efficiency record has been smashed
 
user3119231
7:32 AM
@littlepootis I made a little fiddle with the most important changes es6 for your lazy ass: jsfiddle.net/p83ur22p
 
user3119231
or you can just use this: github.com/lukehoban/es6features#readme
 
I've read them all, but I don't know where/when to use them.. :|
 
@Maurice speaking of default parameters: stackoverflow.com/questions/16062366/…
 
user3119231
one day, when your time comes, @cswl, you will know where you have to use 'em
 
user3119231
7:39 AM
 
Looks like we have to add CSS3pie and ES5shim into our pipeline. Eugh.
 
What browsers do you have to support?
 
How much promises are too much promises?
 
user3119231
when your wife divorces from you
 
@Neil can you please post the answer to my question as we had discuss yesterday?
 
7:49 AM
hello ninja's, is there a way to inject a dependency in angular module, only when needed?
 
I will accept it as I need to up my acceptance rate
2
Q: Function Typecasting JavaScript

techie_28Recently I had asked a question Extract & call JavaScript function defined in the onclick HTML attribute of an element(using jQuery attr/prop) I needed to programmatically access the onclick attrib of a button which had a function call along with param's in it then supply an extra param & make ...

 
user3119231
repeatedly asking will be punished with downvotes... :p
 
56 mins ago, by Mr_Green
SystemJS or RequireJS?
 
Does requireJS support all of UMD?
Or just AMD?
 
7:57 AM
I have no idea
 
@littlepootis requirejs = AMD
but it's the other way around
UMD unifies the formats
there is no notion of "supporting" it because the reason for its existence is to be supported by everything
 
Should've said CommonJS and AMD instead of UMD
Yeah
 
I was thinking to learn SystemJS since Angular 2 is built on it.
 
@Mr_Green requirejs is dead or dying
 
how?
do you mean it doesn't support the latest ES6 syntax?
 
7:59 AM
CommonJS has become common
 

« first day (2048 days earlier)      last day (2893 days later) »