« first day (1503 days earlier)      last day (3435 days later) » 

12:09 AM
 
12:32 AM
@rlemon package sent
 
nice
 
Ill email the tracking, I left the receipt downstairs and am too lazy to grab it
 
:D
 
it ended up being $45
 
kk
 
12:32 AM
I put $500 insurance on it that was only like $2
 
how you want it?
 
paypal is fine
 
itll be there Dec 2nd
lol nice video
 
in Canada I literally email people money for $1
 
12:33 AM
weird, never heard of it
 
venmo may be what you're looking for
 
@Daniel Welcome to the JavaScript chat! Please review the room pseudo-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.
 
if you have google wallet that would work too though
that or paypal are pretty easy
 
well w/e you prefer I can do. just email me deets
 
ok emailed, just got the tracking emailing that too
 
12:35 AM
ahaha already did I see
well google or paypal, I have both. w/e you prefer.
 
paypal is easier I guess
I have never transfered money from google wallet
 
kk
 
even though I have a google wallet card now even lol
also its in a shipping bag, in a box
I didnt open the bag at all
so if its opened at all then UPS did
 
lol IF THERE IS A S4 IN THERE I SWEAR TO GOD JASON!
 
hahah
no I watched the 2 guys working though
it was 2 younger dudes
thats another reason I threw the $500 insurance on just to be safe
 
12:38 AM
UPS is pretty good if their employees fuck up
 
man.. lots of questions about customs too
I said it was a telephone, and a gift
so it should be good I hope lol
 
last week I got ejuice from texas.
if they let nic in and not a phone that is retarded
 
ejuice?
 
the liquid for my ecig
 
oooh, yeah took a second for me to realize lol
 
12:39 AM
i'm down to the lowest nic you can get from them. so I'm making progress ;)
 
yeah I dont mind mailing stuff to CA, but when Abhishek asks about India Im like ehhh.. Ill pass
nice man, grats
 
lol
@Loktar sent
 
cool thanks
 
no clue how long paypal takes to process and send to you.
but it's sent ;)
 
1:05 AM
I'm the only one in my team (of 10 people) who is at my desk. I feel like I'm meant to be somewhere, but I have nothing in my calendar.
 
they're plotting against you
 
Typical
I've been at my job 2 years as of this week. They got me an Olaf toy
 
A what?
!!google olaf toy
 
lol
That sucks
 
1:14 AM
It does not.
He vibrates. It's quite inappropriate for a childs toy.
 
How can we take an average for last 10 values from a Live updating Array?
 
@Vishnu define live updating?
as long as you don't modify the array while iterating over it, it will be static at the point of reading it.
 
you can use Object.defineProperty to create an observer pattern
then just keep a property for the number of updates and action on the 10th
 
@phenomnomnominal Array is getting new values every 500 Micro sec. I need to Get last 10 values from array and show average
 
var lastNToTake = 10;
array.slice(array.length - lastNToTake).reduce(function (p, n) { return p + n }, 0) / lastNToTake;
 
1:20 AM
@phenomnomnominal :) thanks let me try hop this works
 
2:08 AM
Hola guys,
A quick question:
$('#music-slider').load(href + " #abcd*", ajaxLoad);
Above is my code which I am using to load a page but the problem is in a very rare case sometimes the above code doen't load the page. Is there anyway to reload the .load function after certain timeout?
 
2:51 AM
Rage Against the Turing Machine
 
 
2 hours later…
4:24 AM
!!weather pune
 
@RahulDesai Pune: 18.16C (291.31K), Sky is Clear
 
kewl
!!weather mumbai
 
@RahulDesai Mumbai: 27.535C (300.685K), Sky is Clear
 
haha, typical Mumbai
 
24pullrequests.com ( @FlorianMargaine )
 
4:41 AM
@Mr_Green Hyderabad: 29.126C (302.276K), Sky is Clear
 
4:56 AM
!!weather turin
 
@towc Turin: 6C (279.15K), moderate rain, fog
 
yay! And I have to go to school by bike!
 
5:10 AM
!!weather Wellington, New Zealand
 
@phenomnomnominal Wellington: 11.07C (284.22K), light intensity drizzle, mist
@phenomnomnominal Wellington: 17C (290.15K), Sky is Clear
 
 
2 hours later…
6:51 AM
hi
I am trying to get a object value in javascript from row 1 by

for( var i=0; i<= count; i++)
{ array1[i] = result.rows[1].name;
console.log("name is", array1[i]);
};

this outputs correctly I get the name value count times.
Now I have to get the 2nd ,3rd row name value. and so on.
How do i iterate over each row ? when I use 'i' instead on number in result.rows[i].name
it throws an error saying 'cannot read property of undefined'

for( var i=0; i<= count; i++)
{ array1[i] = result.rows[i].name;
console.log("name is", array1[i]);
 
7:45 AM
Does anybody use "and/or" in daily English?
0
Q: Is it correct to use “or” in place of “and/or”?

Aadit M ShahConsider the following sentence: A project is a large and/or complex undertaking. To me, the expression “and/or” seems redundant since in formal logic “or” implies “and”: Table: truth table for Table: truth table for Table: truth table for logical OR (i.e. ∨). ...

 
Has anyone used AngularJS with UI-Router offlate ?
If, yes, do you know how to use $urlMatcherFactory ?
 
is there a way to redirect your username.github.io website to some other one?
 
@AaditMShah I personally avoid it.
I think 'and/or' is clumsy and often shows muddled thinking in my experience. But since 'or' in English can be interpreted unpredictably as XOR, I'll usually write 'X or Y or both' if that's what I mean.
That's my take on it anyhow.
 
8:09 AM
Hello, i am trying to get the row id in a jqgrid after a click on an image that i have put in a cell . is it possible ?
if i do this
var rowKey = $('#jqgrid').jqGrid('getGridParam', 'selarrrow')
or this var rowKey = $('#jqgrid').jqGrid('getGridParam', 'selrow')
it will not work
bc i am clicking on the image and not selecting the row
is there a way to do it after an onclick on the image ?
Thanks in advance
 
8:25 AM
what arguments are passed to your function?
 
(this)
the image element
 
@RahulDesai static page, single script tag, location.href = newUrl;
 
@Joseph right you have a function that is called on click of the row yes?
what function? and what arguments do you have?
 
@phenomnomnominal ^
 
i have a function onclick = myfunction() { var rowKey = $('#jqgrid').jqGrid('getGridParam', 'selrow'); alert (rowKey );}
onclick = myfunction() { var rowKey = $('#jqgrid').jqGrid('getGridParam', 'selarrrow'); alert (rowKey.toString );}
none of these two work bc i am clicking the image, therefore he doesnt consider the row selected
 
8:44 AM
!!tell Joseph mdn addEventListener
 
@Joseph in said function add console.log(arguments) and see what arguments you have
you may have to find the closest tr
 
actually
thats exactly what i did
i get the closest tr and from here on get my row id
:)
thanks anyway
 
9:00 AM
morning people
 
morning
 
9:28 AM
morningo
 
Dear Internet advertisements, no I don't want to shoot the birds to win an iPad or iPhone. Sincerely, everyone.
5
lol
 
@AwalGarg Hey, if I could actually win either of those things I'd shoot all the birds ever.
 
> if
 
9:54 AM
Is it just me or jsFiddle has a bug with the cursor position in its editor?
 
Hi! Do you use a shortcut in your text editor (I use notepad++) to immediately open the current HTML file in a browser ?
Like CTRL + R => Run in Firefox
 
no
 
10:02 AM
no
 
-1
Q: handling files in nodejs so difficult

ishakyaI am new with node and mongoDB. I am developing an app with nodeJS, express and mongoDB. I want read a csv/xlsx file from a file input field and store it in mongoDB using mongoose. I am having difficulties. I am using angularjs in my front end. Can anyone give me suggestions about what procedure ...

!!doge difficult, hard, angst
 
     wow
           very difficult
                         so  hard
such  angst
 
@AwalGarg :)
So next question :
Why?
 
@SecondRikudo that fits. js isn't a real language, node is not a real platform, mongo isn't a real database, so I guess their files aren't real either.
damn forgot about angular too :)
 
Wouldn't it be easy to directly launch the HTML you are working on with text editor with a keyboard shortcut ?
 
10:08 AM
@SecondRikudo I don't write primarily in JS, but does everyone Console.Log() all the things?
@Basj Use visual studio, press F5.
:D
 
:D
 
@Sippy I usually var l = console.log.bind(console) during development
But I clean up everything that's not needed to be outputted to logs afterwards before I commit.
 
@mikedidthis can i have a talk with you for 1 hour _/_
@SecondRikudo o/
I am not going to watch the new dragon ball movie. your estimate is right.
 
Me neither, probably.
 
It will be hell long and more like abo and kado, more jokes then anything.
 
10:14 AM
@darkyen00 urm... context?
 
@mikedidthis Major help with the thing am working on, they changed the business model agaibn
and this thing i totally can't think how to design well
the only company i know does this well is Apple but Apple is APPLE
 
Less Apple bashing, more talk.
 
Basically they took out all the possibilities / customization from the cart
 
@darkyen00 Are you talking about graphical design, or architectural design?
 
now they just want to sell 4 pre-defined meal-options [per cuisine]
they still want to have cook profiles (I wonder what they will do with that)
 
10:16 AM
@darkyen00 it sounds to me like you need a new job :P
 
My current design looks good when you have tons of food choices
 
Didn't he just get a new job?
 
but with 4 "meals"
@Kippie they are quite unstable trying to figure out a good business model
the dev : Managment ratio is 1:3 (which can be seen as the major reason of mess)
on the good side they figured out logistics and marketting, chefs, food quality and al
@mikedidthis so coming back to the point how do you make things look good with less content. And i mean seriously less content.
 
I think I said it before
But I hope you're getting paid well for this
 
too much whitespace starts going wrong.
@SecondRikudo 25% of profit :P
 
10:18 AM
@darkyen00 Forever?
Or is it a one-time project hit?
 
@SecondRikudo till i break my contract with them
 
Well, if you feel that it's worth it :P
 
@darkyen00 moar whitespace cc/ @dystroy (sorry)
 
Whitespace but how much ?
 
I joke, show me what you have and what data you are getting.
 
10:20 AM
you have seen it :-), but here comes again
 
But the data changed?
 
yeah - so drastically that i dunno where to start changing
178.62.199.87:8000 -- now you can open it
now combos are gone, dishes are gone
 
@FlorianMargaine I don't think it's going to work.
 
Our chefs are kickass, accept it we are badass
abhi pls.
 
@Sippy i am not a content writer
 
10:25 AM
@darkyen00 so what page do you need help with
 
@mikedidthis Home
 
That sentence is not right, let alone appropriate xD
 
N cusines wt 4 boxes each
just adding 4 boxes wouldn't have space for each box
 
@darkyen00 help me, help you. I have no idea what you are referring to. What part of the page is causing the headache.
 
Okay so you see in the page the Combos and The Dishes section ? Both of them needs to be gone now.
I need to merge them both to make a sort of a grid with just 4 options :-/
which is where it starts going out of my head
 
10:28 AM
Why? it seems perfectly set up? Could you now do something like a pricing table? d13yacurqjgara.cloudfront.net/users/5576/screenshots/264591/…
I would need to see what the 4 options details are.
 
Okay say for a cuisine of Non Veg you are provided 4 meal options:
Each will have 3 food items a starter, a main course and a desert
 
So essentially set meals
title > description > 4 cards
 
Hmm
 
I would use the cards as teasers, that lead to a full view that breaks down the set meal
 
hmm will try and show you in a while.
 
10:35 AM
k
 
10:50 AM
@rlemon who is that?
 
11:02 AM
dunno, it all #looksshopped
 
yeah
 
Sep 22 at 20:17, by rlemon
saw her youtube, linked back to her g+, got her email, googled her email, found her facebook and tumblr
Do you know where she lives yet? :P
 
He knows her whole schedule
 
shes cute
 
11:24 AM
@DrogoNevets who who who?
nvm got it
nice nice
 
Still don't know who she is.
 
!!afk
@Sippy some makeup market
 
shrugs
 
!!afk in real
 
What do you think about this article‌​?
Do you think that adding type annotations to ES7 should be a priority?
 
11:30 AM
well...
 
@OlegIgnatov Welcome to the JavaScript chat! Please review the room pseudo-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.
 
@BartekBanachewicz I think his first bullet hit right on the mark.
IE9 doesn't support it, so almost no one with a business department will use it.
 
We're already seeing JS as a compile target, so what is wrong with compiling from ES6 to ES5 and later ES7 to ES5 or 6? Just because ES6 may never exist purely in the wild doesn't mean it is a bad idea. Trying to do too much in one update to the spec is why ES4 fell apart.
 
@phenomnomnominal Nothing wrong with that.
 
11:33 AM
I think JS is pretty poor as a compile target
no TCO is a major PITA
 
> tco
(TCoS) The Chronicles of Spellborn was an MMORPG, developed by Spellborn International and distributed by Frogster Interactive, Mindscape and Acclaim Games; set in a post-apocalyptic fantasy world. ...
I'm guessing that's not it
 
Tail-Call Optimization
 
@BartekBanachewicz Well then once we can compile to ES6 we will be fine
 
Point being, why isn't anyone really pushing for bytecode spec?
It's massively simpler to describe bytecode.
It's massively simpler to build to bytecode.
 
And it's not a poor compile target because it's on so many devices. That alone is almost the entire utility of JS.
 
11:36 AM
@phenomnomnominal And on vast majority of them it runs like complete shit
 
@BartekBanachewicz you can't really compile to bytecode and keep the cross-OSness of JavaScript the way it is.
@BartekBanachewicz That's not true.
 
@SecondRikudo Tell that to Java.
 
@BartekBanachewicz Java doesn't compile to bytecode
 
@SecondRikudo Try opening a SPA on low-end android device then.
@SecondRikudo What does Java compile to, then?
 
Java compiles to approximately the minified version of the class, and that gets JITed in the respective environment.
*.class is not bytecode.
 
11:37 AM
define "minified version of the class"
 
@BartekBanachewicz Low end androids are not the "vast majority" of them.
 
@BartekBanachewicz ...
 
@phenomnomnominal are you sure? Because I could pull out the usage data and I suppose they would confirm my views.
 
@BartekBanachewicz Please do.
 
You think low end andoirds make up the MAJORITY of devices that run JavaScript?
 
11:38 AM
Java bytecode is the instruction set of the Java virtual machine. Each bytecode is composed by one, or in some cases two, bytes that represent the instruction (opcode), along with zero or more bytes for passing parameters. Of the 256 possible byte-long opcodes, 198 are currently in use, 51 are reserved for future use, and 3 are set aside as permanently unimplemented. == Relation to Java == A Java programmer does not need to be aware of or understand Java bytecode at all. However, as suggested in the IBM developerWorks journal, "Understanding bytecode and what bytecode is likely to be generated...
@phenomnomnominal yes, because low-end androids and older iphones are the vast majority of the market in general
 
@BartekBanachewicz Low end android takes about 10% of the global market
 
@BartekBanachewicz I don't disagree with you that it is slow on a lot of things. However, you don't have to be such an ass about it.
 
1
Q: CSS - Floating sections left and right, responsive design

Beezer900I am trying to create a responsive layout where some sections of an article will appear in a right hand column on larger breakpoints. The sections in each column must stack on top of each other. The problem I am having is that box 4 is appearing opposite box 3, creating an unwanted gap under box...

 
Think of every computer that has ever run any browser since Netscape...
 
Knock knock
 
11:39 AM
@phenomnomnominal I'm not being an ass; performance of incrementally GCed languages under tight memory constraints is a well researched topic
and doesn't impact just JS.
 
@SecondRikudo Are you talking about just mobile devices, or all devices that are used to browse the interwebz?
 
@Kippie Global. Desktop included.
 
Oh, okay
 
At least according to caniuse
 
You are being an ass. We know you're smart. "And on vast majority of them it runs like complete shit" Them being the "so many devices" I mentioned.
 
11:41 AM
 
You then claim that the vast majorirty of them are low end android devices, which is just simply wrong.
Cool, 2011.
What about all the PCs built from 1997-2011?
 
You're also not taking into account that most mobile devices have a way shorter lifespan than a pc or laptop. Many people use the same pc for up to 5 years, whereas those same people might get a new iphone every 2 years
 
@phenomnomnominal I'd argue than on those machines JS doesn't perform very well either, considering newest Chrome memory usage as an example.
 
No one's saying they do.
I'm saying you're wrong to say that low-end androids are the majority of devices that run JavaScript, are you going to admit that?
 
well, that was my main point. Android remark might've been too much
@phenomnomnominal I suppose you might be right, if we're now to calculate every possible device that can run JS
IOW I was wrong, yes.
4
 
11:43 AM
And besides that, Benji's remark from the other day holds true. We're just getting shitter at using the resources allocated to use.
 
and that's what's really important here.
 
That ^^
 
@phenomnomnominal Lol
 
I think that what's important is that we have the tools to write interesting and cool products that work well enough.
 
@SecondRikudo so, back to bytecode
@phenomnomnominal We might have different requirements and expectations towards "well enough"
 
11:45 AM
Well enough to be successful in the market. We're all just part of a capitalist economy at the end of the day
 
that's a sketchy criterion; if everything else sucks, with anything marginally better you can be successful
 
That's precisely how the world works.
 
for example, VS is a successful as a C++ IDE; that doesn't change the fact of how shitty it is
@phenomnomnominal that depends on whether you want to make good products or successful ones.
 
Why is VS shitty?
 
And that depends on having a definition of a good product that is different than "it was successful"
 
11:48 AM
in Lounge<C++>, Jul 23 at 12:34, by R. Martinho Fernandes
FUCK OFF VISUAL STUDIO
you don't have to look far for that.
 
Yay randomquote!
 
@BartekBanachewicz so you've written a better IDE then?
That has more users?
 
That's one person's emotion of the moment. Doesn't really make it a shitty IDE
3
 
@phenomnomnominal No? Why should that be relevant
 
@phenomnomnominal Oh come on you can't use that argument, even against the almighty Bartek ..
 
11:49 AM
It's totally a valid argument. If him thinking it is 'shitty' is one...
 
it's really not.
 
@BartekBanachewicz The full search history is full of the same guy bashing Visual Studio
 
How is Visual Studio not a good product.
 
It's not. It's like saying "My car is shit, it has no wheels." and someone else saying "Well, have you built a better one?"
 
@Kippie maybe disable the filter, then?
 
11:50 AM
I'm not arguing, I like VS :)
Just saying that particular argument is totally invalid lol
 
@Sippy Valid argument, though lots of comebacks are possible.
 
A car without wheels is not the same as a fully-featured IDE that millions of people succesffully use everyday.
VS performs the task it is designed to do. Not perfectly, but pretty damn well.
 
@Sippy the problem is that in that example we all are actually car manufacturers
 
A car without wheels does fuck all.
 
I'm not saying it's a bad IDE.
Chill out.
 
11:52 AM
@phenomnomnominal you obviously dont have real winters in your country
 
@Sippy I know you're not. But @BartekBanachewicz has yet to give a valid reason as to why it's a bad product.
 
@tereško We're the guys who work on the lines at best :P
 
in Lounge<C++>, Nov 5 at 7:30, by Mysticial
If you're talking about code editors. Then it's Visual Studio. Nothing else compares.
 
@tereško no we do not :)
 
@Unihedron MYSTICIAL HAS SPOKEN
 
11:53 AM
@Unihedron lol
 
Ah yeah, the immortal character of Stack :)
 
/me is using Brackets for js/css and Sublime for php .. I wouldn't want VS even installed on my system
 
@phenomnomnominal that was just an example, really. I've been using it for the past 6 years or so, and others even longer. We can pinpoint what's wrong in it. We can see R# doing things better. We can see hangs and slowdowns, and shitty UI, and nonconforming compiler, and wontfix bug reports, and ...
 
but I really didn't mean for you to focus on VS in particular
What I wanted to say is that you can sell absolute shit nowadays.
Hell, head to theworstthingsforsale.com for that.
 
11:55 AM
@BartekBanachewicz I don't like using VS. I'd rather use something else. It has a lot of problems with it. But it is a successful product.
 
Point is whether you want to participate in making it.
 
If I use a bad tool and make something good out of it, does that make the thing I've made bad?
 
@phenomnomnominal so are dirty electricity neutralizers
@phenomnomnominal that's completely irrelevant to the discussion
 
@BartekBanachewicz no, that's a product. It's hardly in the same realms of success as Visual Studio
@BartekBanachewicz it's entirely relevant. Everything you ever say pretty much comes back to "JavaScript is shit, use a real language". I'm saying it really doesn't matter, what matters is what you make with it.
 
^one-boxed for posterity
 
11:58 AM
@phenomnomnominal you do realize how many people buy those?
 
@Unihedron It's not that baaaaaaaaaaaad
 
@Unihedron My default xml-viewer is internet explorer 8, for some reason.
 
@BartekBanachewicz everyone has plugs. Not everyone is a software engineer. I'm willing to bet the proportion of plug owners who bought one of them is much lower than the proportion of SEs that use VS
 
@phenomnomnominal and my point was that JS as a compilation target isn't really viable because of resources consumed, and that's why I suggested bytecode instead. So that what you make becomes good. I can't really express it in simpler words I think.
@phenomnomnominal have you even read the product description?
 
11:59 AM
@Kippie ಠಿ_ಠ
 

« first day (1503 days earlier)      last day (3435 days later) »