« first day (1552 days earlier)      last day (3398 days later) » 

2:15 PM
@Feeds this article is a crap..
 
^ +1
 
@FlorianMargaine what?? battery consumption makes angular templating bad??
No!
 
Yes. Do you have an argument against this?
 
1
Q: How can i apply a draggable directive to bootstrap modal using angularJS?

SajeetharanI am using bootstrap modal in my Angular Application, it works fine. I need to make it draggable and resizeable, so i have defined a directive. The issue now is it getting applied to the content inside the modal window, hence the modal window becomes transparent. how can i assign the draggable d...

 
2:17 PM
This "article" is just opinion against opinion
Can somebody ban @Sajeetharan for a very long time ? I'm fed up with this spam
 
@dystroy exactly
 
No, it's factual. Angular is heavy, just look at the perf issues we try to solve in this room with angular codebases
 
@Sajeetharan i viewed that 20 times.. and really honestly tried to solve
 
am i doing a mistake ?
 
Perf issues on desktop. I can't even imagine on mobile
 
2:18 PM
it's not a spam
 
@Sajeetharan yes, you're repetitively spamming the room with just a link to your question. All times just a link, no comment, nothing. This is painful.
 
@FlorianMargaine there are perf issues.. yes.. but what battery usage is why it a problem?? No..
 
@NaeemShaikh because if you go on a website that makes you drop 10% of your battery of 10 minutes, it's a problem
 
will not drop that fast.. initially it would but think of the rest of the time you make requests to server.. how much bandwidth you save
 
2:22 PM
no, even after initial loading the perf is still bad
 
@NaeemShaikh Thanks if you have tried :)
 
we had an issue 2 days ago with an angular app loading sorta-sorta, and when you would click some "show more", there'd be a 2-seconds browser lock. In a desktop browser.
 
even if you make request each time to server.. doesnt really feel good.. I dont like waiting a long time for a single page
 
angular is terrible at dealing with the dom
that's a fact, not an opinion
 
@FlorianMargaine those are everyday things with angular.. if you dont use angular you end up waiting four seconds for loading each page
@FlorianMargaine thats true.. I agree
 
2:25 PM
@NaeemShaikh you don't need angular to use xhr
 
@FlorianMargaine but not the whole template.. just the data is loaded with xhr
 
you can load a filled-in template
xhr even has an option to load an xhr response as a DOM node
 
@rlemon can't download it :(
 
@rlemon shows err
 
2:29 PM
the page?
because the page was erroring for me but then I hard refreshed and it worked
ugh. ok I blame the web store
I'll link back when it works :(
 
TIL google search can automatically create any less than 4 dimensional graph for you: just search: (y^x) / (x^y)
much faster and better than wolfram alpha if you just need to graph
 
just curious : in what kind of problem do you need this equation ?
 
hi can anyone please help me with one issue with javascript forEach and native for loop
when i change the angular forEach to native for loop i am getting
Uncaught TypeError: Cannot read property 'lat' of undefined

angular foreach

angular.forEach(items, function(cordinates) {
setTimeout(function ()
{
route.getPath().push(new google.maps.LatLng(cordinates.lat, cordinates.lng));

route.setMap(map);
moveMarker(map, marker, cordinates.lat, cordinates.lng);
markLAT = cordinates.lat;
markLNG = cordinates.lng;
}, 200*++index);
});

native for loop

for (var i = 0, len = items.length; i < len; i++)
 
@AlexMan read this
3
Q: Javascript SetTimeout and Loops

msinfoExperts. Javascript not producing desired delay effect. From other questions, on SO I got to know that, problem is with settimeout and the way I am using it. But still I am not able to comprehend, how Settimeout works. So I am putting code here. Need to use Javascript only, because of knowledge...

or this one, more to the point :
1
Q: Variable changes after being used as function parameter

Martin HansenI am looping through some elements and then adding new elements which should manipulate these elements when clicked. It's tough to explain, so please have a look at this Fiddle to make it much clearer: http://jsfiddle.net/pgFcn/3/ The interesting part is this code (pseudocode for the sake of br...

 
2:44 PM
Thanks @dystroy
 
CC payments. Helcim, Stripe, any others? has anyone in here had experience with one?
 
woa
my company is paying me a 4-stars hotel for my stay in Paris...
 
nice
 
yeah, totally
 
That's totally normal.
My boss did one time force me to change my room to a better hotel : the rational is that if you're paid to work you should not be too tired to work
(normal doesn't mean it's always the case, unfortunately)
 
2:49 PM
My boss told me to bring a tent :(
 
@MischaRodermond well... you were hiking in the mountains, right ?
 
last time I traveled for work the people I was consulting for put me in a hotel. got me the suit as well. This was in Crystal Lake Illinois so the most expensive room was like $89 a night.
Here, that is like the cheapest room
my hotel room was almost as big as my apartment
it was nice
 
but it had one of those low flow, water saver toilets
I'm sorry, but no one enjoys crapping in those
 
Can I get help there with JSON?
Hello BTW :D
 
2:52 PM
!!welcome Ty221
 
@Ty221 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.
 
@CapricaSix Ok thx :D
 
Big rooms feel like a waste when travelling for work, though. I mean : you're alone, not a lot of luggage, you just want a good breakfast, a good bed, silence, a functional bathroom, a good desk and ready to use internet. You're not here to play soccer or have some intercouse, right ?
 
0
Q: What is wrong with this JSON file? - Parse error

Ty221I have this JSON file: https://gist.github.com/ty221/70f9d71e55ce9bc36bd5 I want to load it using Jekyll. Unfortunately, but JSONLint.com there is syntax mistake in my code. Exactly, there: { "name": "Nguyen Thi Thao Nguyen", "website": "", "interests": "- Learn more inf...

 
JSON lint bitches about line 420
 
2:55 PM
dude
 
@rlemon I know
 
there is a TAB character before the V on that line
remove it and it works
you're welcome ;)
 
Thanks :D
 
jsonlint is just part of the system, trying to keep us down. There's nothing wrong with quotes, nobody has ever died because of too many quotes. Look it up, man.
 
Hello everyone
 
2:56 PM
yeah, SEN is the future
 
@rlemon I do not see TAB there :/
@ssube Unfortunately my jekyll code doesn't work still
 
try this
I removed the character
 
@rlemon Wait plz
 
I have a tiny question, what do they call the functionality of having a message on the home page of the site as modal dialog, and when the user clicks hide, it's hidden, these types of messages what do they call them?
 
@BrittanyRutherford annoying
 
3:00 PM
@SSUBE
hehe
exactly .. and this is the type of client I have right now
he wants something like that
but at least, he wants it to disappear for 2 months, then appear again
 
interstitial
 
yeaa, that's it :D
 
@rlemon You should answer the question, as you found the error. — dystroy 32 secs ago
 
thanks @FlorianMargaine
 
0
A: What is wrong with this JSON file? - Parse error

rlemonon line 420 there is an extra tab character. removing it allows the JSON to be validated at least through JSON Lint as valid JSON. I have created a series of screenshots to highlight the finding.

@Ty221 ^
 
3:04 PM
@rlemon Ok, thx for answer. I will accept it in one minute :p
Have to wait
 
no worries.
it's strange. I didn't know you couldn't have TAB characters in JSON
TIL
 
Lol
 
Spaces are allowed, so I suppose tabs would be allowed as well
 
no, you must put \t
JSON is very very strict
 
3:07 PM
same as for \n, I guess
JSON.parse('{"test":"\thi"}')
Uncaught SyntaxError: Unexpected token
JSON.parse('{"test":"hi"}')
Object {test: "hi"}
hm...
 
@dystroy In the strings, yes
 
@FlorianMargaine double them
 
I thought we were talking about between strings
 
!!> JSON.parse('{"test":"\\thi"}')
 
@dystroy {"test":"\thi"}
 
3:08 PM
JSON.parse('{"test":"\t\thi"}')
Uncaught SyntaxError: Unexpected token
still doesn't work
 
you must escape the \ in a string literal !
 
:P
I know I know, just kidding.
it was a joke
 
more fun :
JSON.parse('{"A":01}')
(did I say JSON is very very strict ?)
 
@dystroy What's wrong with that?
 
3:09 PM
it's not xml
 
should I use xml for my data transfers?
 
I've never used xml
 
No, you should optimize your json
 
5
Q: JSON syntax error: 'unexpected number' or 'JSON.parse: expected ',' or '}' after property value in object'

GVelascohI receive this response from a POST request using $.ajax(): {"command": 6,"log_size":50,"log":[{"type": 30,"tag": "*NETEVENT*","sensors": "0D","ti": 1047161877,"to": 0},{"type": 30,"tag": " __START__","sensors": "00","ti": 0000011410,"to": 0},{"type": 30,"tag": "*NETEVENT*","sensors": "0A","ti":...

 
But in any case, don't use jsonx
 
3:11 PM
what's jsonx?
 
xjsonlpquery
 
<< newbie here
 
JSONx is an IBM standard format to represent JSON as XML
It's the worst of both worlds
 
"JSON as XML" ? why ? ...
 
why worst? what is it used for?
 
3:13 PM
I'm not too sure about the reasoning behind it (first I thought it was a hoax) but I'm guessing they want the strictness of xml to apply to json
 
XML is for verbosely transmitting data in a well-defined, verifiable format. JSON is for tersely transmitting data in an undefined, unverifiable format.
JSONx presumably lets you send data that nobody can decipher or validate.
 
hmmm, someone in IBM spent so much time inventing something that doesn't make sense :S
 
@BrittanyRutherford that's never happened before
 
unless there is a good reason why to use it :S until now I can't see any real case
 
3:16 PM
@MischaRodermond WTF, IBM!
Why do they have to have their own standard for everything?
 
exactly ..
 
Well... they have a big business of having expensive consultants explaining how to use their shits products
 
IBM used to make headway in this kind of thing.. now they just tend to try to reinvent what's already considered standard
IBM: It may be slow, but it is hard to use.
 
unless it's something really useful, ex: Angular.. then it doesn't really make sense to do
just like what Microsoft did when they made mQuery, trying to do something like jQuery
 
You're going to see JSONx to JSON converters far more likely than you'll see programs use JSONx
 
3:19 PM
nvm
it's
updated now
glitch.js
install it on all of your co-workers PC's
 
what's that?
 
@rlemon done and done
 
install it then refresh the chat
 
I remember we used to mess with testers like that. Write a script that made everything greyscale but only on IE6
 
3:21 PM
Feels epileptic
Feels like I briefly went tripping
 
I'm going to be installing it on all pc's in my office today :D
 
I need to disable though before my boss comes up from behind and thinks he's drunk
 
what's that tell me :(
 
I need to maybe change the timeout
0-30 is too short
 
some kind of a prank?
 
3:23 PM
To use as a prank it is too short
 
@rlemon yeah
 
It needs to be like once every 30 minutes :P
 
5 or 10 minutes sounds good
 
I installed it, where do I run it from?
 
For anybody that has dogs and said dog(s) eat chocolate by accident: always keep hydrogen peroxide and an oil funnel in the house
 
3:25 PM
@BrittanyRutherford refresh page
 
It's going to suck, but force the dog to drink the peroxide. It makes them vomit
May save their life
 
Then wait
 
(my yesterday)
 
hydrogen peroxide will keep them from getting sick?
 
It makes them puke up the chocolate
 
3:25 PM
oh
haha
 
My dog sometimes had little tiny bits of chocolate, and she lived to be 14. How much chocolate are we talking about?
 
interesting
 
I learned that when I worked at a vet hospital when I was younger, and it saved my brothers chihuahua yesterday
 
ok, once version 0.0.0.7 publishes it will be a 0-10 minute timeout
 
it won't kill them if they eat chocolate...
 
3:26 PM
how do u set the timeout?
 
chihuahuas don't deserve to be saved
 
Some dogs can handle chocolate in small doses, others it's pure poison
 
may as well be rats
 
@rlemon version 0.0.0.7 ? How many versions do you think you'll have ?
 
3:26 PM
chihuahuas? yeah, let them die
2
 
no I mean for the glitchjs
@RoelvanUden
 
@dystroy chrome extension versions. I took the default 0.0.0.0 and just started counting up
 
But then her best buddy (a lab) would be very sad so I had to save her
 
@BrittanyRutherford it is a userscript extension
you can't
I can
 
oh ok
it's cool
:D
 
3:27 PM
@rlemon or provide it as an option
using chrome's new options API
 
that isn't new ;)
 
You can make a dog vomit by consuming a large amount of any liquid really
 
got something to laugh @ my boss
 
and I will add it as an option
 
3:28 PM
my dog was allergic to eggs
 
it is. Starting chrome 40
 
version 0.0.0.8
 
I am new to all these js stuff :(
 
@FlorianMargaine options pages for extensions have existed for a long time
 
@rlemon yes, but there is a new API
 
3:28 PM
maybe there is a new api, but I could always set options
 
that integrates the options in the extensions page
1 min ago, by Florian Margaine
using chrome's new options API
 
I want a plugin that every 5-10 minutes, all colors slowly (over a period of 30 seconds) fade to greyscale, then immediately jumps back to normal
 
WHAT DID I SAY
 
That would mess with your mind
 
tomato, potato
 
3:29 PM
@Neil that could be done
@FlorianMargaine I assume you don't mean this developer.chrome.com/extensions/options
 
@rlemon indeed. I mean the link shown on this page
2 mins ago, by Florian Margaine
https://developer.chrome.com/extensions/optionsV2
 
@Neil should happen over a longer period, so they don't notice
fade to half sat, then jump to full
 
@KendallFrey I doubt if you'd notice over a period of 30 seconds
 
@Neil You wouldn't see it, but you'd notice
 
Your brain has a way of pulling colors out where there are none
 
3:31 PM
thanks everyone, have a good day
 
You'd notice something weird when it flashes back to normal color
 
Though I don't think you'd know what it is that changed
 
of course you would
 
3:32 PM
Not if you're unaware before
 
you wouldn't be, if it went from full color to grayscale in 30 seconds
 
lerp sat between random() * 0.3 + 0.6 and 1.0 every 300 seconds to so, then pick a new value and repeat. Every cycle, add 0.2 to hue.
everything will fade in and out, and after a few hours, flip colors
 
How many people stay on the exact same page for a few hours (except for a chatpage like this)?
 
it'll turn facebook orange after a while
 
First it'll turn pink
 
3:35 PM
@ssube It would have to be subtle change to hue so you wouldn't notice
 
@rlemon link to glitch?
got it
@rlemon just released an awesome extension! Get it now!
4
 
how to fix this?
bower install retry Request to https://bower.herokuapp.com/packages/ember failed with ECONNRESET, retrying in 1.8s
colleage works fine on same net
 
I wrote it half asleep have to speak tomorrow haha
 
@FlorianMargaine added options, gotta wait for it to finish publishing
 
@rlemon is the source available somewhere?
 
3:41 PM
@darkyen00 spellcheck
 
it will be
I'll put it on github
 
@darkyen00 I'm a bit confused by the first 2 paragraphs
 
Doing mah taxes son
at work? oh my!
 
SONOFA
I added the options page, but I don't reference the values
OOPS
 
3:42 PM
> Infact till 2008 the linux foundation used the zip archive method of merging code, which created a mess for a beginner.
wat
 
I'm sure there's better ways to explain why version control is useful
 
> But consider you Imagine Cup Project of 5000+ lines of code (and trust me - you can get their pretty easily)
typos ^^
 
According to wikipedia: Git development began in April 2005 after many developers of the Linux kernel gave up access to BitKeeper, a proprietary source control management system that had previously been used to maintain the project.
 
@MischaRodermond git has a pretty good example somewhere on their page, about emailing code around.
 
@ssube but... git works by sending mails around...
git format-patch
:P
 
3:50 PM
@FlorianMargaine right, but patches, not full files.
 
Now it sounds to me like before Git, there was no version control except doing things manually
 
user1596138
@darkyen00 Bro bro bro bro bro you're a developer. Please do not open 2 files and look for differences. grep -Fxvfn orig.js new/orig.js
 
it's a fairly important difference
 
-Fxvfn?
 
user1596138
@SterlingArcher flags
 
3:51 PM
Lots of them
 
user1596138
 
good morning plebians
 
@ssube true :)
@ssube although you just said "emailing code around", which is exactly what patches are
@Jhawins or... you know... diff orig.js new/orig.js
 
user1596138
@FlorianMargaine nahhh what's diff
 
user1596138
Imma be mad if that does the same thing hahaha
 
3:53 PM
well...
 
user1596138
Damn. It does.
 
@MischaRodermond more or less. There was subversion, which was like doing things manually, except sometimes it prevented you from doing anything.
 
@Jhawins use diff -y if you want pretty stuff
 
Before that was CVS. Nobody is quite sure what it did, besides telling you what you'd done wrong in the past and selling cigarettes. Now it does neither, so nobody cares.
 
I've worked with CVS for a bit
 
3:55 PM
I know it's all hip to use git and to hate on SVN, but SVN isn't that bad
 
I was suddenly quite happy to be mainly working with svn...
 
user1596138
@FlorianMargaine wow that output..
 
@MischaRodermond it is if you branch
 
@rlemon How long does it take for the colors to bug out?
 
user1596138
That's nice. Real nice. I feel dumb :)
 
3:56 PM
@Shmiddty if you have the current published version, 0-10 minutes
 
zzz
 
I agree, but even with branching SVN can get the job done
 
I'm updating it so you can choose the min/max times on an options page
 
oo
 
@Jhawins cheers. Remember that in linux, there's often a tool for what you want :P
 
3:57 PM
I think I just saw it
 
> takes upto 60 minutes for changes to publish
 
it just flickers for a second then goes back to normal?
 
yup
just to fuck with people
 
sweet
 
it is meant to be installed on the pc's of your enemies and co-workers
 
user1596138
3:57 PM
@FlorianMargaine s/a/many/
 
especially co-workers
 
user1596138
That's arguably the best way but there are lots :P
 
well, using a tool called diff to make file diffs... I'd be surprised if there were a better way :P
@Jhawins do a diff --help | less anyway, lots of options. Like colors and stuff.
 

« first day (1552 days earlier)      last day (3398 days later) »