« first day (2428 days earlier)      last day (2745 days later) » 

lol, cool, but it took me a minute to figure out i needed to click and hold
(without reading code)
A nice clean example of 'vanilla' JS dom manipulations and componentization.
00:43
@Luggage it's an example of terrible UI for volume :)
I didn't say it is a good UX, just cool.
anyone have experience with app inventor I have to use it for something
01:01
@BenjaminGruenbaum excited?
or wait
you started already
Not about leaving. Definitely about new work.
were you excited? :P
Haven't started yet, July 1st
oh
so you left today
that was the date, right
How is your job btw?
01:02
the same, going well
Yeah, today was my last day at TipRanks. We all went to party after work - even Uri and Gilad came - it was fun.
yeah I bet it was a full turnout
R&D is expending, 2 iOS, 3 FE 2 BE
@Mosho full burnout?
@Mosho ah, yes. Sorry misread.
It's late and I'm a little sleepy :P
a full burnout would've been exciting too
@BenjaminGruenbaum yeah I saw
we might hire sahar :P
01:06
I don't think so - we're having a beer next week :P
:o
Did you use a recruiter or have a contact already or just open market?
@BenjaminGruenbaum like, what do you mean :P
I'm considering find a new place and all the job listing are 80%+ recruiters.
2003 is the last time i looked for a job
@Mosho I'm going to get him a high offer you'll have a hard time competing with, probably
01:08
but you didn't even start working yet
@Luggage I replied to the last 10 items in my junk mail folder and went to 5-8 interviews.
@Mosho I know
I'll try that, but I don't think it's really a nigerian prince..
@Luggage i love it when they don't even write the name of the company they're recruiting for
well, that part is understandable..
@BenjaminGruenbaum well, good for him then
01:09
They want money.
he deserves it
You deserve it too :)
though he might be a different person for all we know after 6 months in india
He might be a hippie
Well, even more
Nothing a shower won't fix.
Sorry, India.
01:11
@Shrek @SomeGuy fite
@Luggage I get a lot of random job offers because I speak in a lot of conferences and meetups and I have an active SO and GH which helps. You probably get some too.
I do not
I am not very active on SO (main) and have really dragged my feet on contributing to open source.
I won't
I have a long history of successful projects at xerox where i was for 13 years. ~8 of which managed a development department. My resume is decent, but I don't have the open source street cred you do.
i can't imagine they'd ask about your street cred in an interview
01:13
@Luggage there are like 300 good startups in DC
The street cred it for getting unsolicited offers for dream jobs in your inbox.
i suppose one can dream
@Luggage go talk a bunch of conferences, meetups in DC
why do you want me to do everything in DC where I don't live?
Relocating is not out of the question, but it won't be DC if I do.
@Luggage are you interviewing? Maybe buff up your SO a little and do some speaking at local meetups
01:17
well.. the right job could tempt me... but..
that reminds me, when i read "Cockeysville" at first i assumed it must be a joke
Meetups are also a good way to expand your professional network
yea. I'd have to go to another city for that
baltimore has infrequent small shitty meetups
So build a community - that's a great way to position yourself.
<- has lived in Baltimore for a year at age 11
Start organizing meetups, it's not very hard - if you can get 30 people to come it's a great start.
It's also a good way to position yourself as community leader.
That sounds like excellent advice for someone with a completely different personality than me. I could see doing talks, but organizing a meetup sounds like hell to me.
Also, i'd be tripling the average size of a baltimore meetup
that's a tall goal for someone's first entry into an area
I should go more and do some talks, though..
I'd have to try and change the format if I started going. I hated it.
01:23
@Luggage open source street cred is rare
there are good jobs for anyone who can get stuff done
Yea.. I'm not desperate or anything. I just started looking recently and was disappointed that I could only find recruiters.
I have no doubt I could get a decent paying job tomorrow if I wanted, but I want to find another place worth staying at for a while.
If I was desperate I could go back to xerox. They'd take me back instantly. They have asked.
Also, maybe get into a new area / language / tech. I don't know what.
Getting out of healthcare would be nice.
is it wise to load 2mb json in memory in nodejs should I perhaps break it down.
I mean how much memory roughtly will it take?
go to bed
me or nonerth?
What is drugs?
01:35
Yeah if you mean, thats it obvious it will take 2mb I just wanted to reconfirm xd
it'll probably take more than 2MB; or more than 4MB if you include the source string
hmm thats why I just noticed
If this is an occasional thing, like a one-time stcript, that it's a trivial amount of memory and don't worry.
If you are doing this for lots of simultaneous requests, it could be an issue.
And enverywhere in between
Okay thanks
when you're loading 10s or 100s of MBs, then you might want to look into using a streaming JSON parser
01:41
^
💩🍆
i once converted a string-input parser to a stream-input parser using guard pages and continuable exception handling
:/ shame you can't do that to JSON.parse
Not with that attitude.
lol now you've got me thinking
also a few months ago i wrote a json parser that doesn't allocate any memory
but does require a single string as input
I wrote a database that has no persistence.
I call it MongoDB.
01:50
@Luggage Talks definitely help.
I made a perpetual motion machine
that doesn't exist
@Luggage network with employers more, get small consulting gigs etc.
Yarp.
@littlepootis i guess it maintains a constant speed of 0 m/s
02:02
@BenjaminGruenbaum I bought a house btw
@Mosho oh nice
how the fuck did you have money to buy a house :D?
yeah, an hour ago actually
it was 1,164,000 shekels
Was it the one with all the kitchens
02:03
@Mosho that's not a small amount of money
Canada is going through a housing boom
this one
without the beetle
@BenjaminGruenbaum I'm not paying cash
seems pretty good for the price
assuming i'm converting that right
446k canadian dollars
but it needs to be almost gutted
ah is the interior no good?
02:05
here's the kitchen
it's dated in the pics. I can't tell if it's in good condition or not, though
very dated.
@Luggage can't tell from the outside
not too bad
You could film movies in it that take place in the 70s :)
02:06
what suburb is it in?
waterloo
not technically a suburb
in canada right?
are you going to get a dog?
maybe
and yes canada
damn google marked every waterloo except the one in canada
looks like a nice self-contained town
02:13
Does anyone understand how Google Play Pic and Movie back up works?
is there a train line towards toronto ?
or something like that
yeah
i think it looks further out than it actually is because there's not much development in-between
although it is still a fair distance
O wise javascript elders, what is the best way to sort an array of objects based on several cascading criteria
what do you mean by "cascading"?
02:26
in the properties
I have an array of objects with properties name id month year and i first want to sort by id then by name then by year
alright, that sounds reasonable,
What have you tried?
I was thinking of a multi map
do you already know how to use .sort() with a custom comparison function?
a.proprety.localCompaire(b)
02:29
it was a yes/no question
somewhat but i probably don't know how to fully exploit it
don't worry, it's very simple,
compare name, if they're different return 1 or -1, if they're equal move on to id and do the same, if the ids are equal move on to month, etc.
you get what i'm saying ?
like this right return a.year - b.year || a.month - b.month
i suppose that could work
not for `name` though of course
How about if you were asked to put at the very top of the list the objects where one particular property does not exist in the object
02:36
/afk: lunch
cool
Then simply check that first.
let me try to absorb that for a second
@Cauterite yeah it's pretty self contained, I doubt many commute to toronto
the region of waterloo is 535k people
@Luggage so how would you do that within the sort function
prioritize a none property
02:41
gimme the property name so I can be less abstract
if(!!a.propertyName) return 1
some have no parentId
@Arrow Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
    {
        name: "Mark",
        id: 4,
        parentId: 54,
        month: 6,
        year: 2016,
        value: 16
    }
some have no parentId
first criteria is no parent id then by name then by year and finally by month
02:48
whichComesFirst(a, b) {
    // if a is has the name and b does not, a comes AFTER
    if ("parentId" in a && !("parentId in b)) {
        return 1;
    }
    // more logic
}

myList.sort(whichComesFirst);
start with that, and test whichComesFirst() with samples to make sure you get the right answer for "which comes first"
You don't need to sort a whole list to test, you can jstu give it an A and B that you know the answer to and try that
wow, you can use in like that "in" conjunction with &&
&& just goes between two of anything*
They are unrelated operators.
* any expression.
What up dudes?
Just figured out that StackOverflow has JavaScript chat
@Godje Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
@luggage thanks that really puts things in perspective
I really thought I had to use some complicated data structure
02:55
Nope. You only need to compare 2 items. The sort function will just keep testing pairs until it figures out the right order.
Dynamic programming the solutions to all of mans problems
This is just programming :).
I was thinking about buying a new computer
anywho.. time to sleep. good luck
!!afk 💊🤡😴
thanks :)
03:32
@Mosho cool
04:04
 
1 hour later…
05:20
morning
\o morning
o/
ヽ(´ー`)ノ
05:48
sorry if this is a stupid question.. but I can expect code developed on Window 7 using Meteor.js should work fine on a Linux machine just by copy pasting into it?
provided meteor.js is already installed and the same version on Linux machine as well?
am I correct to assume this please?
If it's just the client-side code, and you're not changing anything environment-specific, then yeah. Should work fine
Because it's the browser that's in charge of executing the code
I have a quick question about promises. I have a for-loop that is trying to make a request to bing based on the index in the array, but then I want to return an array of each query it's made AFTER the entire for loop has run, but what happens is that before all requests are made the resolve() is getting called. gist.github.com/damanm24/117569d79467be5e832dacd012027e59/edit
@daman Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
@daman Look up Promise.all
Thanks!
06:00
@daman and that gist is a 404
You can delay an action until all promises passed to that method are resolved
yup promise.all is what you need to be using..
@CapricaSix there's no space between Please and don't
@monners meteor config files etc could be different in Linux and Windows..that may create a problem at sometime?
06:08
@techie_28 I don't know much about meteor, but the only problems I can really imagine are environment variables. Everything in node/js shouldn't be affected.
@Mosho Are houses cheaper in Israel?
far from it
So you're just a baller?
I'm in canada
(so houses are cheaper here, generally speaking)
And colder...
@Luggage clown face + pill = doing something mad with the pill. Then a sleeping face. So are you drugging yourself to sleep? Who's the rapist then 😲 ?
06:21
@KarelG Luggage is afk: 💊🤡😴
Bill Cosby
Morning all o/
Not good morning, just morning
bad mornin' Neil. Need a cup of coffee?
@monners I'll bet real estate is cheap inside an active volcano
@KarelG trying to manage with tea today
Not managing well at that
06:51
Eyo
@Neil Tea solves everything
@StuntHacks it doesn't solve the problem of not having coffee though I'm afraid
I think I'll have to switch back tomorrow
@Neil But who needs coffee if there is tea?
earl grey? @Neil
I drink coffee from time to time. I drink mostly tea
07:01
Morninga
\o
07:05
o//
global warming is a conspiracy theory
\o/
/0\ <-- a fly
\_o/
/0_/ <-- a fly that landed on my keyboard
o/
Guys, seriously tell me if you ever did check-Sum or dealt with it ;)
07:11
checksums or "check-Sums" (which is something) ?
@suraj pretty sure it isn't
@Mathematics What do you mean? I use checksums quite regulary but I'm not one of the guys who check the checksums of everything they download
@StuntHacks lol. <-- laugh out loud
07:26
@Mathematics yeah, I do that quite often
it takes a few seconds
eh, I trust the download sites that I'm using enough so that I don't do the checksum check
(but the main reason is ofc laziness)
@Luggage Hung parliament!
@BenFortune Luggage is afk: 💊🤡😴
Drugs clown eyedrops.
@littlepootis Do you guys store them or calculate on the go ? :)
07:31
Is it a must to have a working backend server in order for react router to work?
@KarelG Even better: If someone managed to replace the software you want to download with malware or something, I am sure they would be able to change the little text next to it as well.
@BenFortune May has bet and lost it :D
she now has to start a coalition lol
@KarelG It's great, we were never going to win but this is the next best thing
@KarelG Is it weird that I am happy about that even though I don'tlive there?
Is it a must to have a working backend server in order for react router to work?
07:33
but she lost the elections herself by her poor communication skills
@ZhengquanBai react router uses history api and has nothing to do with the backend
@KarelG That's a fun way to say "lies"
" A truly good politician is that one that can tell lies without someone noticing it " ~my grandad
@KarelG I have the feeling the politicians in my country can do that for about half of it...
07:40
that's why I'm saying that education is important
Look to USA with its poor education level
Sanders is a most reasonable president candidate of the last election run. Yet not many votes for him because they believed others that are unworthy to become a POTUS. Even lil' hilly is unworthy yes.
The problem is that even here where education is virtually free, a lot of people just aren't interested into politics. They don't care. Or they are completely blind and vote for the guy who says he wan't to close all borders
Hi everybody
@Sangimed Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
honestly, did someone ever read the whole chat rule ?
most people who care, yeah.
07:55
@Sangimed I did
well, you motivated me lol
08:15
i have ask a question: stackoverflow.com/questions/44452181/… can help me?
@peppe71-19 Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
@peppe71-19 I don't know about the framework you are using there but it seems you could add an event handler for "click" (or even better "change") to the radio button and in that handler, send the data via AJAX.
Renzi, Italy's prime minister made a similar mistake. He tried to get a bill passed that would allow the prime minister to veto parliament
He made the mistake of saying if he couldn't pass it he would resign.. Well of course everyone unhappy with Renzi voted against it
He ended up taking it back though.. What a git
@Neil lol
Even he hadn't promised to resign if it didn't pass, there's a good reason why the prime minister can't veto parliament
It's just one step to absolute control, isn't it?
08:32
It is
But would it really be possible for him to pass that?
@StuntHacks he tried at any rate
I don't think Renzi would abuse it, but of course his successor might.. It seems silly to give so much power to one man in a democracy
That's true. Nobody should have that much power. Some people might not abuse it but as you said, the risk is just too big
0
Q: How can I control time with jquery/javascript?

ani_cssI really couldn't do that so I need to learn how to do that I want to control time with jquery or javascript doesn't matter which one it is.I want to explain my scenario is: I have agency page and my all agency have modal and theese modal has open-hours and closed-hours if you check it out my e...

3
I like that title
08:57
haha +1
@StuntHacks requires jQuery mod jFox
The J stands for jQuery
Michael jQuery Fox
@BenFortune happy with the election results?
@GNi33 I'm not unhappy
will be interesting to see which coalition will come out of this
09:12
Well it's certainly important to not be unhappy in life
I'm more happy that she didn't get straight in
09:23
She's got to pull a 180 if she wants to stay in politics at this rate
Does anyone know when the JIT compiler was introduced in V8, or has it always been there since its inception (in September 2, 2008)?
@BenFortune question is if Labour even want into a governing role at this point? Wouldn't they have to do the brexit negotiations then?
@GNi33 Yep
when would the next elections be? 2022?
09:30
Yep
Well, if they can't make a decision for the coalition there will be another election in October
jesus
oh, I forgot, our government shit the bed as well, we are going to have an election in october as well... yay
Hello everyone !

any suggested solution to solve this problem:

https://stackoverflow.com/questions/44453429/data-query-from-api-javascript-object-nodejs?noredirect=1#comment75904021_44453429

if there is a solution that work either on JSON String or javascript object it would be very helpful.
@Colt Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
09:42
@Colt no, there isn't a simple way if you want a var that is so deep in the object
if you have to access multiple keys, you can abstract it
can I get data by manipulating JSON String with string methods
what do you mean with "string methods"?
.slice() .substr() .search() ....etc any of these build in methods
@Colt You can, but why?
@ndugger I wake up today, and see this shit in local news lol
09:52
to directly get Sunset time from JSON String
I don't want to use this: parsedData['query']['results']['channel']['astronomy']['sunset']
use parsedData.query.results.channel.astronomy.sunset then
if you don't like it ... well. OK. you can try to pick your value from a string.
wait, do they sell the phone for free as long as you use their plan? shop.ee.co.uk/mobile-phones/pay-monthly/…
'you can abstract it' can you explain how to abstract it?
well, £62/mo is actually a lot of money
well I mean, surely you can just get the physical thing and change plan with something better
"good as new" means that they messed with it, which means you can just restore factory settings?
@towc For 40GB data, you have to pay £62.99 and in India, we have to pay only £6.22 for 56 GB data. Lol
09:59
yeah, that's the thing. That's a lot of money.

« first day (2428 days earlier)      last day (2745 days later) »