« first day (1039 days earlier)      last day (3909 days later) » 

2:00 PM
@eazimmerman makes sense
 
@rlemon I know, haven't gotten around to work on it since I left earlier today, will be doing that now though :)
 
@yacoob 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.
 
I have this unexplainable urge to try something new from JS world, even if I don't use JS day to day. :D
But then I look at JS garden and it quickly goes away
 
@Connor , @BenjaminGruenbaum anybody around, another noob question
 
yh
 
2:07 PM
@yacoob cough Why? note: the author of JavaScript garden is around right now.
 
when i Call the Authorized function isn't angular supposed to update the model ? or is there any other way to do so ?
 
if i have construct like:
vat ctx = document.getElementById("canvas").getContext("2d") on many places in application, i guess i violate DRY principle?
Better approach is to have for example one object to hold context
like var canvas = { ctx: document.getElem....; } ? maybe stupid question but wanted to ask :)
beside that that canvas object will hold everything that is associated with canvas
 
@OctavianDamiean no particular reason, just... ground seems shaky when I walk around. I'm fine with Python, so it's not about typing. I think it's more of a situation where I read the "JS- the good parts" and pondered why so many of things that were put in the language are essentially a bad idea.
having said so, I started enjoying writing in JS, since finishing that book :)
as opposed to suffering :D
 
@rlemon how busy are you at the moment, I mean non work time.
 
@Darkyen Your not calling your authorised function? what should the class be?
 
2:12 PM
The other aspect is that a whole large ecosystem exploded while I wasn't looking. Because, you know, Javascript is that feeble little thing that people use to make cursor trails on web pages. :>
 
@Darkyen What class is set on the element when you test it?
 
@yacoob Oh, I see. I thought there was something wrong with JS garden. :)
 
@yacoob most of those things are not essentially a bad idea though
 
@yacoob Yea, that was back in 2000. :D
 
...I'd call it "prejudice against JS" I think :)
 
2:13 PM
13 years later we do cool shit with JS.
 
@Connor If i call the function via console
or say callback of any external api
 
some things have their edge-use-cases, but you shouldn't use them on a regular basis
 
@GNi33 yeah, consider 'this' - not necessarily a bad idea, but ye gods, what a mess in JS.
 
i don't know, it makes sense to me
 
@Darkyen if your calling the function outside of angular you might need to do $scope.$apply(); after you set any variables. but i don't see how you can access that function through the console?
 
2:14 PM
you sure about $scope.$apply ?
@Connor becasue the console.log logs it to be Authorized
 
Anyway - given my background - which of the "extras" that got constructed in the meantime should I check out? Angular looks tasty (even if I can't wrap my head around security of certain things in there), but I'm not too sure about other things like coffeescript etc.
(perhaps instead of "should I check out" I should have written "are worth checking out")
 
Well, depends what you want to do.
CoffeeScript is just another way to write JS.
 
@Darkyen so the class is not updating no?
 
yes -_-
 
How can I avoid a thousand undefined offsets?
 
2:17 PM
!!Alcoholfree beer or Water
 
@OctavianDamiean Alcoholfree beer
 
@Darkyen The console will say that it's authorised because you changed it. but it probably wont update in the scope so try
$scope.data.auth_status = 'authorized';
$scope.$apply();
 
@TomDwyer ... ?
 
see what that does
 
@OctavianDamiean it's more along the lines of "this tool X is worth looking because it does y, z, w, has large community and has proven itself to be decent". Sort of like OO in Perl - everyone was doing it in a different manner, but some of those manners were better than other.
 
2:18 PM
@Connor also... one more question
how do i use $http :-/ yeah i dont understand enough english to read it
 
Nevermind I realized I wasn't in PHP. <_<
 
@yacoob Knockout is kinda like Angular, but there's an online, interactive tutorial
So, it's easy to get into
 
And it (it being Knockout) is better, despite what some people in here may tell you.
 
@Darkyen also shouldn't you be doing $scope.Authorized = function() { ... }?
 
nope its an internal function
i dont want to expose that function
 
2:19 PM
@OctavianDamiean I've heard people describe Angular as "more powerful, but less documented." Thoughts on that assessment?
 
@Darkyen I haven't got right into that http part right yet. the apps that im working on barely use the server
 
$http.get(url).success(Authorized).error(AuthError);
 
@Darkyen Yeah then you need to use $apply if your updating the scope outside of the scope. did it work?
 
@RyanKinal Thought: Knockout is better.
 
lemme test it
and yes it did :-/
 
2:20 PM
@OctavianDamiean lol, fair enough
 
well i know javascript hasn't got the concept of watchers but still wanted to try :D lol
 
There's a certain faction in my company looking to go to something like Angular or Knockout.
 
You can also do
$scope.$apply(function() {
    $scope.data.auth_status = 'authorized';
});
 
@RobertHarb 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.
 
And it makes me a little sad that there are now factions within the IT/Engineering group here.
 
2:22 PM
Just opened my fortune cookie and it says: "Grasp opportunities to create the future"
 
@Connor or rather
 
Does that mean I should write the next jQuery?
 
$scope.$apply(Authorized);
can you please find me tutors about $http though ?
 
@Darkyen find you post?
@Darkyen have you read the docs?
 
yeah
and when i use $http i get 'Undefined'
 
2:23 PM
@OctavianDamiean I'm gonna go with "No" on that one.
The world doesn't need a new jQuery.
 
@Darkyen where do you get undefined?
 
in the controller
 
What's the future then? needs to find out what the future will be
 
@Darkyen example?
 
2:24 PM
nvm i figured it out :-(
i had to pass $http seperately in the controller
meh :-/
 
@Darkyen lol.
 
now i have a new problem :P
Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers.
 
@OctavianDamiean The future is what you make it, I guess.
So, if you really want to create another jQuery, then go for it.
 
@Darkyen No idea 0.o
 
I doubt that will be it... but maybe something else will come out of it.
 
2:26 PM
Nah ... I ate the cookie and accidentally also a part of the message.
t'was good though.
 
So, it's more like "[rip] ... ate the future" now, eh?
 
Yea. Future's in my belly.
 
<aside>omfg I hate VB</aside>
 
V8 gurus: what's the cost of using an array as a queue with approximately constant size? Should I use push/unshift or shift/pop?
 
Opposed to?
 
2:35 PM
@DavidDiliberto 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.
 
hey guys does anyone know of any cool js effects that would rotate random images in a grid kinda like this? hawttrends.appspot.com/?r=4&c=4
 
@DavidDiliberto By "cool JS effects", do you mean "code that is already written for me and I can just paste into my site"?
 
@RyanKinal a jQuery plugin.
 
I mean, is it going to slow down or eat up memory over time? V8 uses some clever tricks to optimise unshift. Couldn't this backfire?
 
2:38 PM
@DavidDiliberto USE CSS :)
 
@DavidDiliberto Then no.
"View Source" ftw.
 
I'm frustratingly close
 
twss
 
@Sadi 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.
 
2:43 PM
Hi guys
 
Hello
 
 
Ladies and gentlemen, you heard the man, it's urgent!
 
:)
 
Oh god, I'd have such a snappy comment. Can barely control myself. :D
 
2:45 PM
i love finding 35 unlabeled discs
fml
:(
 
Self control is for the strong-willed non-troll.
 
lmao
 
IT HURTS!
 
Embrace the trollz.
Love the trollz.
 
Ninja Turtrolls
 
m59
2:46 PM
Hey @RyanKinal Want to check out a song I wrote?
 
ugh
 
@m59 Sure
 
disc drives take way too long to spin up and read
 
@rlemon inorite?
 
m59
@RyanKinal some friends performed it at our wedding and made a recording :)
 
2:49 PM
cute video
 
m59
=D
 
hrm, I can see there is data on this disc. but I can't read it
now I MUST KNOW
Disc Unreadable? - Challenge Accepted!
 
rofl
 
hey, I've recovered some pretty crazy shit before
recovered 100% of a drive and the head was rubbing on the platter.
15 minutes after I made an image of the drive it pootered for good
 
32
Q: iPad Safari scrolling causes HTML elements to disappear and reappear with a delay

codeBearerI'm currently developing a web app using html5 and jQuery for iPad Safari. I'm running into a problem wherein large scroll areas cause the elements that are offscreen to appear after a delay when I scroll down to them. What I mean by that is, if I have a row of images (or even a div with a gradi...

 
2:52 PM
I charged the client a nice penny
 
Just another reason why I hate iOS
 
so we hired a new programmer and i've spent the last day and a half now re-working my office (limited space)
 
@m59 Nice. I like it. And yeah, the video is freaking adorable.
 
m59
Thanks :)
 
Burnout Paradise made me listen to Avril Lavigne. Twice.
 
2:54 PM
lol
 
omg I'm so sorry
 
@Zirak we should play online
 
Do... do you need a hug?
 
"Girlfriend" is on the soundtrack.
 
someone wanna take a look at that?
 
m59
2:56 PM
Wasn't it working yesterday?
 
how to return JSON data from XMLHttpRequest like jquery does by default with .post ?
 
It played about 3 tracks after "Hungarian-Dance #5" by Brahms.
 
@m59 you talkin to me?
 
m59
yeah.
 
@Loktar is just a badass with those demos
 
2:57 PM
@bushdiver Send the request, pass the response through JSON.parse ?
 
I've never had it "working"
 
I can't believe the last one
 
watch this one
awesome
 
@rlemon :P
I was proud of my last one
 
2:59 PM
loktar halp!
 
@rlemon Hah. Love it.
 
brilliant eh?
i also luled at the top comment
> There will come a day when she says "I wished u missed the airbag..asshole.." And he will respond "so did I..bitch.."
 
@Zirak yes worked perfect thanks =]
@rlemon fake - ad run viral vid, theyre all drinking same water
might be coincidence but doubt it
 
Because there's no chance they just bought a 24-pack of water?
 
the way he holds the bottle is indicative of product placement
 
3:05 PM
+ the girl is not very surprised, bad acting.. she's just like "no way... "
if that was real her shrill scream would have been heard for miles
 
at 00:06, his bottle isn't facing the camera. The camera pans away, pans back and the bottle is facing the camera
 
also, the dude is a professional stunt man.
so I believe this is real.
he pulled some of his industry strings to make it a cool proposal.
she wasn't super pissed because he does this daily.
 
It can be real and contain product placement.
 
and I can't find anywhere that this is confirmed as an ad.
the labels all showing is kinda strange, but then again, it isn't impossible.
 
I have two equal length arrays, one of "keys" and one of "values" that map one to one. How can I create an object of the form:
var obj =
{
	'Key1': 'Value1',
	'Key2': 'Value2',
	'Key3': 'Value3',
	 ...  :  ...
	'KeyN': 'ValueN'
}
 
3:08 PM
and the fact that he puts down the drink and the other people are not drinking the same drink makes me thing less and less that this is an ad
 
this is the drink: drinkneuro.com
@rlemon how often do you readjust a beverage in your hand?
 
@RavenDreamer What have you tried? What's the problem you're facing?
 
@danessh 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.
 
Drink with a purpose.. close to Drink with a proposal .. hmm lol
 
@rlemon They're all drinking different flavors of the same brand.
 
3:09 PM
@Shmiddty How often do you pay attention to how often you readjust a beverage in your hand?
 
once it is in my hand it stays
 
@Zirak The problem I am facing is that I'm unsure how to add properties one at a time to a javascript object. I can't create them all at once because I won't know the number of properties until run time.
 
idk but now i want some neuro water
 
@RavenDreamer It's quite simple. Make a loop over N, in each step your key is keyArray[i] and your value is valueArray[i]. Combine that with subscript notation, obj[key] = value, and it should be clear.
 
@Zirak obj[key] creates a property named [key] if it does not already exist?
 
3:13 PM
0
Q: Inspect element while debugging

matheusrufcaI'm trying to inspect and edit html elements while debugging in IE10 but when debug is stopped at my breakpoint the screen is locked for any kind of editing mode. I already tried VS2012 debug but IE Development Tools is disabled. How can I edit html in IE when debug is paused in a breakpoint?

 
Yeah, you need a javascript 101
 
Anybody got a twitter login lib ? which works like FB.login or so ?
 
@Zirak Probably. Only been doin' it for... 3 days?
 
!!> var obj = { a : 4 }, key = 'a'; obj[key];
 
@Zirak 4
 
3:13 PM
or do i have to implement it mysel ?
 
!!> var obj = { a : 4 }, key = 'a'; obj[key] = 5; obj.a;
 
@Zirak 5
 
@RavenDreamer That should clear it up a bit. Now it's just wrapping it in a loop.
 
@Zirak since when do code example clear up anything
 
When they demonstrate a technique
"Subscript notation obj[something] turns something into a string and accesses that property on obj". Better?
 
3:17 PM
@rlemon When they're addressed to folks who know how to read code examples? :D
 
is JSON.parse supported in all browsers?
 
ah - nice site thanks
 
            var header = lines[0].split(',');

		var jsonres = [];

		for( var i = 1; i < lines.length; i++)
		{

			var tempObj = {};
			var values = lines[i].split(',');

			for( var j = 0; j < header.length; j++)
			{
				tempObj[header[j]] = values[j];
			}
		}
Fixed font doesn't work with replies?
 
Don't make it a message reply, you can just ping me at the top
And yeah, that should work
 
3:19 PM
Aight, cool.
Thanks.
 
Enjoy
 
Alrighty, I'm going for a gym session.
Yo @Zirak gonna be around later today?
 
@OctavianDamiean I'm actually home earlier and can play until later
 
Awesome.
I'll be back in about an hour or two.
 
@Loktar you free to look at the donut thing?
jsbin.com/ubapig/15/edit mehhhh I give up
 
3:29 PM
sure
 
stare that that long enough and it starts to look like a weird circle.
 
dont give up dude
 
thing
 
you're SO CLOSE
your problem is the filling?
 
yeah
 
3:32 PM
try filling it with rings
rings the same color as the bg
 
and I've figure out how to do it (ctx.clip()), I just can't get them in the correct order
 
unless you've tried that
 
hi, so how to post to a restful resource using socket io?
 
posted on August 20, 2013

It’s time for some global browser stats courtesy of StatCounter. On desktop, Chrome is growing mightily. On mobile, Android and Safari increase their lead somewhat, to the detriment of especially Nokia and Opera. Also, Firefox disappears from the mobile radar, and I hadn’t expected that. Mobile After years where the mobile browser market was a three-way race between Safari, Andr

0
Q: Is this a reloading error on my carousels or something else?

MikeNot sure if this is a question for here or for stack (so apologies in advance), but I'm struggling with this feature of my site and I'm hoping that someone can help me out with it. I have a series of tabs, with each tab having tabbed carousels inside of them (see my website here. The problem is ...

 
Cany anybody gimme an approach to build a pseudo random 32 character string ?
 
3:39 PM
String.fromCharCode(Math.random()...)
 
^
our local JS meetup wants me to give a lightning talk on my recent demo
Id love to.. but seriously Im so public speaking retarded
and tbh I forget how the hell my demo works I copied a js1k demo I did like 2 years ago (for the 3d portion) haha. Id have to really dig into it again
 
eval("String.fromCharCode("+Array(33).join("Math.random()*26+97,")+"'')")
 
@ChristianK 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.
 
I've been trying to figure out whether my coworker's husband is actually incompetent, or if she just treats him like he is.
It's a hard game to win.
 
fuck it Im doing it
early october
throwing myself out there to publically speak.
 
3:43 PM
Do it!
Public speaking is hard. But rewarding.
 
I get hard while speaking publicly too.
 
yea
@Shmiddty lol I know someone else who did too
would even orgasm during
 
lol
 
Hitler :P
 
That's impressive
 
3:44 PM
well some people say he would
 
Aaaaand awkward
 
not sure if its 100% true
> He channeled all his energy through his speeches and towards germany, germany was his baby (he said something about germany being his wife himself). Speeches were even a substitute for sex. Its reported that he said to his doctors that he had orgasms during a speech. He was embarrased by it, but doctors wouldn't even try to do anything about it because it might harm his intense energy.
^ from some show on the discovery channel I guess
anyway lol
I will be far from that. Ill want to cower and hide the entire time probably :P
 
just know what you're talking about
that's the most important thing
 
yea
Im going to have to study the hell out of my code
the math is what always gets me. Usually Im like uhh it just works :P
 
you can admit that you're not perfect too.
"I don't really understand the math" is fine.
!!afk inducing cancer
 
3:47 PM
@Shmiddty That didn't make much sense. Use the help command to learn more.
 
The problem is when you do understand the math, but can't explain the math.
 
haha thats how I am with programming in general
 
Agreed
 
my mind understands it.. but I dont use words to really understand it in my head
more like visual concepts
 
I clarified a lot of stuff for myself while writing my OO articles.
 
3:55 PM
@aldo 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.
 
@IvoWetzel not sure if anyone pointed this out but you have a spelling error npmjs.org/package/mia in the description "Generic sourc"
lol I know random but wtf how does that even get passed the ad department?
 
How do i generate an HMAC SHA1 hash in javascript ?
any clue ?
 
4
Q: Need HMAC SHA1 encryption library for javascript

AdamCan anybody recommend a good HMAC SHA1 function for javascript?

 
twitter is a bitch
read the last parts, you just wont do it on client side :-( stupid twitter, bad twitter
 
@Darkyen Twitters dead for developers IMO. And has been for over a year now
 
4:10 PM
@IvoWetzel true that but i am supposed to implement a web-based login for twitter
I think i will rather do it in python and use that... with the good old window.open()
 
Twitter's API is shit
They screwed with the devs that made them big so much
you can't even buy rate limit extensions for your app. People have to bag their users to return their tokens when they no longer use the app...
 
m59
So....we all know that your ravioli will be cold even after microwaving it twice. But wait...
how did it get COLD!?
Life's mysteries.
 
what do you mean how did it get cold
 
m59
Room Temperature ravioli goes in microwave, comes out cold.
I know - it's really just the contrast between the extremely over-heated parts and the parts that didn't get heated that makes the still room temperature parts seems cold when they really aren't, but that kinda takes away from the humor :)
 
4:23 PM
Mildly good troll, 5.5/10
 
why does "Example:index0Example:index1Example:index2".split("Example:"); return ["", "index0", "index1", "index2"] ?
 
@Loktar will be fixed with the next push
getting stuff to work was the higher priority :P
 
cool, just figured id point it out. Grats btw :)
 
4:40 PM
@CarrieKendall Because your string begins with Example, so removing from it results in the empty string. If you had FooExample, the first element would be Foo. This is just consistent behaviour.
 
@CarrieKendall 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.
 
@Zirak thanks
 
4:52 PM
@Zirak I iz back.
 
@Zirak was doing work for his job where he had to go underground. Its happened before.
His employer... the NSA.
 
What we're about do to now is related to his job at the NSA.
 
in the spirit of this question: stackoverflow.com/questions/8592275/…
is there an overhead associated with using javascript to do things like load a footer on every page of a site?
 
Ubuntu Edge reached only 37% of it's goal. :(
 
i can't do anything server-side on the host that i'm working with, but i really don't want to copy+paste the same footer to every page on the site
 
4:57 PM
@OctavianDamiean idk how they expected to meet it
 
I bet Mark Shuttleworth is going to fund the missing part.
 
Yes, there is overhead. Why don't you use a static site generator, @PatrickCollins?
 
what would an example of one of those be?
 
@PatrickCollins Jekyll or Pelican.
 
i'm maintaining a site for an organization at my school
 
4:59 PM
Go for Jekyll though.
 
FAST if you're into java, jekyll if you're into ruby, wintersmith if you're into js...
 
that looks interesting
 
There are plenty of them.
 
Note: You don't have to know Ruby to use jekyll.
 
but there's already a fully-functioning site up, would using something like that require me to remake it from scratch?
 

« first day (1039 days earlier)      last day (3909 days later) »