« first day (1011 days earlier)      last day (3920 days later) » 

11:00 AM
0
Q: Facebook logging and data retrieve using ajax

KarimkhanI am trying to do login and Fetch user Interests using Facebook APIs. In Following code I have tried to do above using ajax, JS which works well. But i dont know whether it making proper use of ajax or not because it loads the page after login completes. <?php session_start(); $appId = '6693400...

 
@AbhishekJain 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.
 
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= 'helper.js'; // how can I add code into inline script instead?
 
@BillyMathews use textContent
script.textContent = 'alert("hello");'
 
Thanks
 
11:21 AM
@Zirak The custom HTML is loaded before the body is even loaded so this isn't working :(
 
FUCK YEA! Formula 1 is coming back to Austria in 2014!
 
really?
 
Yea!
Spielberg.
 
oh, cool
 
That's just an hour from my place! :D
Guess who'll be there.
 
11:30 AM
Someone with a lot of cash to spare, I'd say :p
 
Yea, well the tickets ain't going to be all too cheap, but I won't need a hotel at least!
Gosh, I'm so stoked up already. :D
 
:D
@OctavianDamiean How's your website coming along? I never got to copying it
 
-1
Q: Global condition in JS is part of best practice or not

MegDepend on the platform/OS we've mentioned conditions globally. Is this is part of the best practice?

 
@GNi33 do you enjoy hill climb races?
@Amaan To be honest. I totally forgot about that.
 
11:35 AM
@OctavianDamiean Thought so. I would too, to be fair!
 
@OctavianDamiean hill climb? like erzberg-rodeo?
holy hell, i wanna go there at least once
 
I do too
Some day!
 
@Amaan meh, by the life of me, I just can't get into the chili peppers
 
I can't either
This is the one song I actually enjoy
I think the others are decent, but nothing I actually enjoy
 
yeah, they are good musicians, I just don't really like their stuff
I guess heard them the first time when "Californication" was played like all the time on TV and radio
that did it for me, didn't really like the song and it was played to death
and right now I'm more in a "heavy music" - mood too :D
that seems to jump from genre to genre every week or so :P
 
11:40 AM
@GNi33 more like the Rechbergrennen.
You should totally come next year.
 
ooh, with cars?
 
that's pretty freaking crazy
 
All kinds of cars.
 
something i could enjoy I guess :D
 
11:41 AM
Oh yea, you definitely could.
 
we're planning to go to Brno for the MotoGP - weekend this year
 
Mitsubishi Lancer Evo is all I have to say I guess.
 
haha, YEAH! :D
 
Not the normal road versions, the race car versions of course.
Also, sometimes there are historical Formula race cars as well.
 
well, the "normal" version of the Evo is pretty badass already too ;)
 
11:42 AM
@Zirak How the heck do you come across things so awesome? Faust seems awesome
 
yeah, I think I saw some TV-spot about a race like this some time ago, looks pretty intense
@Amaan Faust is extremely popular
 
How the hell do I manage to live under a rock?
 
and I hate every single bit about it
 
Why?
 
just like everything else by Goethe
I just can't read his stuff
 
11:43 AM
Aww, why?
 
@GNi33 Yea, but ... those Lancers will spit fire. :D
 
I think "Götz von Berlichingen" was the single most boring piece of literature I've ever layed eyes on
I just hated it from page 1
don't really know why, but Goethes style of writing was just exhausting to me
 
Understandable.
I don't like him either.
 
Fair enough
 
@Amaan well, I think it's not as popular in India as in Europe or (especially) german-speaking countries
 
11:47 AM
@GNi33 Yeah, but it's not like I really know what's popular in India either :P
 
Goethe is considered as one of the big writers here, though I will never understand it
"Die Geschwister".... oh god
you'd easily get a Golden Raspberry if you were to make a movie out of this today
but enough rant about the guy, lots and lots of people seem to really enjoy his stuff ;)
 
Us by Regina Spektor is a decent song
I've listened to Clairvoyant (The Story So Far) so much that it actually feels a little annoying to listen to right now :/
 
Solar Flare Homicide by Emmure is pretty funky too :D
 
Ooh, I like it
 
yeah, I overlistened that one too, will have to wait some time to get back in it again :D
Give "Mt Diablo" a try, currently my favourite TSSF - song
the whole "Under Soil And Dirt" - album is actually really good, worth a listen
 
11:56 AM
Yeah, Mt. Diablo was a favourite for quite a while
 
Interesting
 
-2
Q: Give values in jquery javascript

user2601260I want know if this it´s right : <script> var id = "1"; var element = "car"; if (element + id == "car") { alert("ok"); } </script> The problem for me it´s i don´t know if it´s possible write element+id , or by other side it´s bad , only that´s it

 
@OctavianDamiean you've got a Raspberry, right?
 
Yea.
It's not golden though.
 
12:07 PM
where'd you buy it?
golden?
oooohhh m(
that one took a while :D
 
I got it online, from RS Components but you can get it from Conrad Elektronik too.
 
> Not yet shipped
still.... :(
 
I'll just get one from there then
any "must-have" - accessories for it?
 
I recommend a case.
Also, a 2A-5V supply wouldn't be bad either.
 
make your own case!
iz easy bro
 
12:14 PM
I also have a Transcend SDHC 8GB class 10 SDCard.
 
I still haven't done anything with my pi
it just sits there collecting dust.
 
OR, you just get a cheap case for 6€ from the same store you get your Pi from. ;)
 
eh, making a case was free for me
eh
 
oh ffs ... I fucking hate it. Why do people insist on using Perl ...
Seriously, Perl is like the IE of programming languages.
It should die.
 
Perl is awesome
 
12:22 PM
For a simple fucking piece of shit UI job I have to do, I now can start setting up an entire Apache/Perl CGI environment.
@rlemon I hate you.
 
Ruby should die
 
I don't care about Ruby.
 
i care that it sucks
 
@OctavianDamiean No, that's Tcl.
 
Ouch Facebook just updated to Facebook Graph
 
12:24 PM
I vaguely recall an instance where Tcl got a company under.
 
@copy are you using your RPi somehow?
 
@rlemon what do you dislike about it in particular?
 
@OctavianDamiean It's connected to my TV so I can watch movies from my computer
 
Oh cool.
 
@OctavianDamiean are you using yours somehow? :D
 
12:28 PM
I'll use it as an internal OwnCloud server soon.
 
@dievardump wait, this new design-change is related to graph?
 
@GNi33 syntax and whitespace delimited block structure
so pretty much all of it :P
 
isn't that the same in python too? takes cover
 
@rlemon ಠ_ಠ
 
yea which is why I haven't learned python
 
12:29 PM
^ i seriously don't know ;_;
oh, okay.
 
@rlemon ಠ_ಠ
 
I disliked that the first time I wrote Python too, now I don't feel so bad about it anymore though
 
@GNi33 yes. Now I can search with graph: "My friends who went to Montreal, Quebec" "My friends who worked at ... " "My friends who liked ... " " My friends with photos of me"
 
user image
2
 
@GNi33 I should send you a book. You can give it back when we meet at the Rechbergrennen next year.
 
12:31 PM
@dievardump hm, i'll try that later, does it make any sense really?
@OctavianDamiean what book?
 
@GNi33 Yes it works very well...
 
it scares me how much people throw their personal information at facebook.
 
One of the few German books I have.
 
hm, let me see which ones I've got
 
12:33 PM
@kubi 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.
 
@rlemon People are not afraid of their information being read, they want to exhibit
> The only thing worse than being talked about is not being talked about.
[wilde]
 
I've got "Programming in Python 3", "Programming Python" and the "Python Cookbook"
and no freaking time :/
 
I've got "google", and some freaking time, but video games are fun
 
I just want to finish or at least proceed a little on my node-stuff before jumping into python, although i want to since some time
 
@dystroy One of my favourite Wilde quotes, from "The Importance of Being Earnest":
Chasuble: Your brother Ernest dead?
Jack: Quite dead.
Miss Prism: What a lesson for him!  I trust he will profit by it.
 
12:42 PM
oh please, please let this become a "thing" -> reddit.com/r/funny/comments/1ivll6/…
 
nice
I should print off a bunch of copies of him in various sizes, cut them out and place them randomly in pictures around my house / office and see when someone notices
 
Gave up on DeVito?
 
no just need good moments to use it
can't just toss him into everything
mix it up a bit man!
 
Why is there no tag in this post offer ?
 
12:53 PM
Hi guys anyone here with Titanium Appcelerator developemrnt knowledge?
 
@dystroy offer is pretty attractive...
 
I need to add library/plugin for the swipe in my webview
 
@KyawNyiWin 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.
 
> - Bachelor’s degree in Computer Science (or equivalent) is required equivalent years of relevant work experience
makes no sense
missing an or
 
Can someone repin bushdiver's message? I'm denied (maybe because I was the original pinner)
 
1:02 PM
The one about our collective rudeness?
 
Yep
 
posted on July 23, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} POW!

 
Merci
 
@yoelp 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 trying to make it most starred ever?
 
1:09 PM
I think it already is
 
var points = [[]]; is this understandable?
var points = [];
points.push([]);
 
1st is better
 
@rlemon var points = [[]]; // [[x1, y1], [x2, y2], [x3, y3], ... [xn, yn]]
 
@Neil And the first point is the empty point?
 
1:19 PM
more like points = [[1,3,2,4,6,2,4,8,4 .... ],[1,3,2,4,6,2,4,8,4 .... ] ...]
but the first point array is generated, then the rest clone from it and modify
 
@rlemon Well then write [[1,3,2,4,6,2,4,8,4 .... ],[1,3,2,4,6,2,4,8,4 .... ] ...] as a comment
 
Seriously, I'll just refuse to work with people that develop in Perl, even if that means I'll be fired.
I don't even fucking care.
5
 
Not that it is unclear, but I think an example helps
 
@OctavianDamiean why?
 
It's simple, I don't like playing with poop, because that's what Perl is, a pile of poop.
 
1:24 PM
I think what he means to say is "I refuse to work with people who like Perl"
 
@OctavianDamiean about half a year ago, we had a pretty big project
the CMS used was "Imperia"
Imperia -> Perl
that was a pain in the ass sometimes
 
Perl offers a great way to troll.. switch a tab out with spaces
 
@OctavianDamiean no... bad perl is poop. Normal perl is nice to work with.
 
I'll especially refuse to cooperate with developers that use it to generate HTML and then expect me to do some front-end magic on that.
 
@rlemon It already holds that title, I just find it really funny whenever I enter the chat.
 
1:28 PM
@OctavianDamiean wtf.. html is front-end.. how do they expect you to build on that?
 
@Neil ...
 
Normally generation of html is part of "front-end" for a good reason
 
@Zirak I also find us to be quite entertaining and actually REALLY helpful *if the person is willing to first help themselves
.
 
i want to make a floting social sharing button like this site radiokotha.com .. any one can help me. please go this site and you can see right side in this blog a floting sharing button.. anyone can help me?
 
Good morning all my beautiful people
 
1:36 PM
Screw you!
 
@CoolBoy position: fixed them, that's all
 
Just for that, I hope you have to develop in perl for the next 5 months
 
@Zirak how i can do it... any tutorial for this ...
 
@CoolBoy Simple googling brought me css-tricks.com/… and davidwalsh.name/css-fixed-position
 
!!google Fixed position CSS3 tutorial
 
It's not part of css3
CSS 2.1 defined positioning
 
Is there a way to do function o(f) { f(f); } with Function prototype methods (e.g. bind)?
 
Well sooorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrry
 
You are not forgiven
@KendallFrey Whadya mean? Example?
 
1:40 PM
Example of what?
I want to define an equivalent function without writing it.
Just because.
 
1 message moved to Trash can
 
DDoS'n your stream bruh
LOIC INCOMING
Slowloris pew pew
 
@KendallFrey like... var g = f;?
 
f is undefined...
 
var o = f.bind(null, f); //?
oh
 
1:42 PM
And the function should be called o
 
what's an "equivalent function"?
 
@Loktar dude what!? You're writing articles for Walsh's blog?
 
@FlorianMargaine A function that (as a black box) is equivalent
 
var o = Function.call.bind(Function.call);
Wait
I confused myself
 
@Loktar "Government web developer" makes you sound totally badass. Just sayin'.
 
1:47 PM
var points = [midpointdisplacement([])];

for( var y = 0; y <= ylen; y++ ) {
	points.push(clone(points.slice(-1)));
}

console.log(points);

function clone(arr) {
	var d = settings.step_deviate;
	for( var i = 0, l = arr.length; i < l; i++ ) {
		arr[i] += Math.random() * (1+d*2) - (1+d);
	}
	return arr;
}
all of mah cloned arrays are strings :/
wth...
 
@KendallFrey equivalent = the same code in it?
 
Same result
 
var o = function(f) {
    return new Function(f.toString());
};
 
@RyanKinal hah, then it's not just me, it totally sounds badass.
 
@FlorianMargaine wha...
That's not even close
 
1:48 PM
var p = o(o);
 
then I still don't understand what you want
 
Man, I wish I was as badass as Loktar.
 
I want to have a function in o, without writing it
Not an alternative for o
 
without writing what?
 
@eazimmerman I prefer (o)(o)
@FlorianMargaine The function
As in, without using the function keyword
 
1:49 PM
you want to have a function without writing a function?
 
Yes!
 
He wants a function, which accepts a function f, which calls f with f as a parameter.
 
The Spanish Translation of Objects and the Prototype Chain is up. I don't speak Spanish, though, so I don't know how good it is.
 
@Zirak no, looks like not
 
@FlorianMargaine Zirak is right
 
1:50 PM
@RyanKinal (@BadgerGirl, you're summoned)
 
1 min ago, by Kendall Frey
As in, without using the function keyword
meh. gotta work.
 
@Zirak lulz
 
Yes, I want to define that function using only bind, call and friends.
 
I'm not sure, since you need to use the argument in more than 1 place (in 2 or 3 or more, depending on which route you take)
 
:(
 
1:54 PM
...
 
2d arrays and .splice didn't work as I expected
 
You could if js had partials
But we only have bind
//so the closest I got is
var o = Function.call.bind(Function.call);
o(f, f, f);
But I can do better
 
I thought someone might be up for a challenge :P
 

« first day (1011 days earlier)      last day (3920 days later) »