« first day (908 days earlier)      last day (4034 days later) » 

12:01 AM
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. — Laurence J. Peter
 
12:12 AM
@Givi 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.
 
!!/stat givi
 
@SomeKittens Givi has 139 reputation, earned 0 rep today, asked 2 questions, gave 25 answers, for a q:a ratio of 2:25.
 
!!/stat david
 
@david david has 3947 reputation, earned 0 rep today, asked 4 questions, gave 141 answers, for a q:a ratio of 4:141.
 
I need to clone and replace and element, and keep all event listeners on it...
Zepto, so no $(blah).clone(true)
Unless anyone has a better way of resetting a CSS animation.
 
12:23 AM
 
timeout isn't an option
just going to expose a rebind method to reattach what i need
 
This 12-year-old I'm teaching how to program just went from writing his first line of code to FizzBuzz (independently) in just over an hour
 
If I was funding any kind of research it would be a cure for hiccups, shit is sooooooo annoying
 
i find holding my breath helps
 
12:39 AM
I find shooting myself helps.
 
user1125394
let's learn some boobiescript
 
I was thinking of learning Joomla.. But I still want to build with JavaScript and HTML .. can't I mix those two together? I just would like to use a cms to do payments and that sort of thing..
 
Functional programming is the best
 
user1125394
---------------------------------
 
user1125394
but must admit it's 5x times shorter, but you take 5x more time to understand code
 
12:54 AM
0
Q: Exclude script from all posts in a certain category

Jasonbut include it on all other pages & posts. sorry, still getting to grips with wp_enqueue & need a solution in a hurry for a client (surprise).

 
user1125394
Bot and Feed are on a boat
 
How do I parse the XML that was returned in an XMLHttpRequest's responseXML?
 
with regex
 
wtf JS doens't have an XML parser
 
i'm pretty sure it does...
 
user1125394
1:07 AM
please, do you know how are filled rows (with 'missing' columns) in a LJOIN, (default values?)
 
@CCInc isn't the response from the xhr already parsed?
 
JSFIDDLE TIME
 
xhr.responseXML.documentElement
 
wtf?! syntax error?! jsfiddle.net/UR59Z
 
.....
 
1:15 AM
where I epicly fail?
 
user1125394
@c'c null
 
is it meant to be xhr = instead of xhr :
and instead of calling XMLRequest which doesn't exist, calling xhr?
 
Those are both excellent ideas
It was copied-pasted from my project
 
@SomeKittens do you have kittens?
 
aaaaaaaaaaaarugh wtf jsfiddle.net/UR59Z/1
 
1:23 AM
seems like a legit cross-domain xhr
if that browser doesn't universally support cors, this won't work anyways
 
@BadgerGirl Sadly, no. Just one cat at home who's rather aged.
 
could you help me out please? I'm tryint to use this dictionaryapi.com/products/api-collegiate-dictionary.htm
 
Probably will be getting kittens when I graduate and get my own place
 
@CCInc that page says JSON coming soon, that means you're out of luck for now
as soon they offer a JSONp interface, this will be trivial
before that, the good old same origin policy will not allow you make that kind of cross domain calls
 
Bleep.
So who can use XML requests?
I understand that JSON is normally used but I thought XML was legit also
 
1:29 AM
as I just said, no cross-domain xhr call is legit, beside the server and the client both support CORS and the server is friendly enough to allow access from the domain you try to access
 
Hmm, okay
 
is it just me or is "bellicose" everyone's favourite word at the moment?
 
BELLICOSE
!!/define bellicose
 
@CCInc bellicose: favoring or inclined to start quarrels or wars. (source)
 
ooooh
wonder what urban has to say
!!/urban bellicose
 
1:30 AM
@CCInc bellicose favoring or inclined to start quarrels or wars
 
user1125394
what does happen if you'll JOIN 2 tables on a column, which don't have unique values in one table
 
How the breadcrumbs work on github.com, the actual page loads the body after it gets its information, does it use js to create all the elements or are they already there and just populated on response
 
@c'c SQL?
 
user1125394
yes
 
user1125394
my
 
1:39 AM
@somekittens trying to add some cms features to my page, any idea what I should look into to create database driven hrefs?
 
@XCritics ...database driven hrefs?
Never heard that term
 
Was thinking the same thing
 
Do you mean hrefs filled in with information from the database?
 
Like I just was want to make links on my page without having to manually create them with jade
 
...?
 
1:51 AM
Like site indexing?
 
How do you make a plumber cry? Kill his family
 
2:12 AM
any one know a clever way to load up more than one page layout with only one server request and then some how assign them to different variables to use when ever?
trying to lower the amount of requests i do to my server
 
Hey ppl
whats up
 
@NinjaEcho Introduce @Cygwinnian
 
@Cygwinnian Welcome to JavaScript! Please read the FAQ.
 
im not new
...
and i've already read the FAQ
 
@somekittens I'm not sure how I can be more clear :-)
It's ok don't worry about it for now I'll figure it out later
 
2:27 AM
You can pass the links as a variable to jade
@DarkLight More bots?
 
window cleaner helps @XCritics
 
Recursion is always the answer
 
 
1 hour later…
3:38 AM
@SomeKittens You here still :) I got one more question before bed
 
I've got about one answer, so that works out
 
:D
So can I just make a variable with res.locals.content = databasearray and then for loop it in my jade template to generate the content?
If so, can the jade template access objects? Cause the database returns an array filled with objects
@SomeKittens
 
res.render('jadeFilename', {content: databaseArray});
 
@SomeKittens and then I can just for databaseArray[0].title kind of thing to access it in the templatE?
 
3:47 AM
@XCritics Yeah, check out the Jade docs for specifics
 
kk
thanks
 
on that note, g'night
 
night dude
 
@Zirak oh nice, good calls
 
Ruby is short for rubbish
 
4:04 AM
oh noez, lolcode.com is down
 
4:14 AM
Good day .. could anyone explain why this test yields better results for js sorcery solutions in IE9+? :)
 
Hi, I need a bit of help with jQuery Mobile.
In my ListView, my link href point to another page "#page2". When I click on it, nothing. Even with the rel="external"But in the console, $.mobile.changePage( $("#page2"), "slide", true, true); works fine. Any ideas ?
 
4:30 AM
make sure your #page2 exists
when this is getting ccalled
 
m59
4:49 AM
@Shmiddty Angular is too pro.
 
5:37 AM
@BadgerGirl o/
 
5:50 AM
o/
 
@GNi33 \o \o \o
 
what's up?
 
can anyone please help me with facebook app?
 
@GNi33 nothing much last day at work
before i go my hometown and enjoy :D
 
6:06 AM
oh, home-vacation? always nice :)
@user1167074 feel free to just ask away
 
@GNi33 sadly its more like a homeweekend
 
well, better than nothing
 
Get the picture, then resize them. — Creator 13 mins ago
0
Q: Get all facebook user profile images of definite size?

zigzag.bondI need all the profile pictures of square size. Presently I am able to loop through all the profile pictures but I am unable to get each of those pictures of same size. Since I have a unique id for each picture is there anyway to get that picture with a definite size? Here is the code FB.api...

 
@user1167074 are u fucking kidding me ?
 
did I do anything wrong?
 
6:17 AM
fb api allows u to get images in size
 
the problem some images are landscape and some images are in vertical..I want all of those pictures of square shape
 
crop them yourself ?
afaik the graph api allows u to ?width=200&height=200
 
that's last thing I will do but I think Facebook allows for doing that
for example for cover pic of profile pic there is type which we can specify like square or normal etc
 
yes
read there api
 
but I want that for all profile pictures
if possible through unique id of the picture
 
6:25 AM
Peggy had many valentine cards while I only had one. Peggy is a whore
 
@SOChatBot lol
 
6:54 AM
goddammit, canary
 
@GNi33 s/canary/google
 
7:45 AM
well well well enum in js is damn easy , infact its useless to call it enum :D
 
well well well, the new canary-build is a total mess again
seriously, is canary running on some automated build-process like nightly?
this new version is plain horrible
 
@Darkyen Javascript takes all the fun out of using enums.. it's like "What the hell? Isn't this what I've been doing all this time anyway?"
It's like trying to create lambda syntax in lisp
 
A language that doesn’t have everything is actually easier to program in than some that do. [Dennis M. Ritchie]
 
8:01 AM
@GNi33 that's the principle of canary...
 
@GNi33 the new version is BLINKING
 
i know, i know, but this thing fails so randomly sometimes, it's crazy
3 updates are good, then there's a new one that just crashes all the freaking time
i thougt canary would at least go through some small kind of QA
 
@SOChatBot Not really so chatbot
a language which does everything like Java is not just harder its horrible to code then one which does nothing like C
 
dude, that's a Dennis Ritchie - quote
the humble, quiet genius ;)
 
@GNi33 nope
beta does
canary is nightly build
 
8:09 AM
I like firefox
its muuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuch stable .. even as nightly
chrome cant even render properly
 
Must use HTCPCP/1.0
 
@FlorianMargaine ah right, guess i'll always get something mixed up there
 
user2157210
Morning
 
@GNi33 there's stable, beta, dev and canary
 
Hello
I'm using jquery tooltip module tiptip
Its working fine in all device but in iOS its having issue
Need to click twice on the link
in first click tooltip comes and in second click it fires function set on it
I tried to set another plugin too
but same result in iOS
 
8:26 AM
my genius friends method of protection against XSS on client side
 
user2157210
removing lan cable
 
$(function(){
    $("input#user_comment").on("change",function(){
     var temp = eval( $("input#user_comment");
     if( "string" != typeof temp ){
         alert("HEY DONT TRY XSS");
     }else{
        /* more code here */
     }
    });
})();
sorry was formatting it
 
that's a great idea
let's just execute the input to see if it's malicious
 
u wonder why i called it "genius"
 
m(
 
8:29 AM
fml ... Latin test is tomorrow and I have to stay in the office to perform a disk backup so I can't study.
RAAWWRR
 
@GNi33 he should write "You have been rickrolled" in the alert (XD)
 
wait, why the hell do you have to take a Latin exam?
 
@GNi33 i wonder how safe that is /
 
user2157210
Because he wants to be the next pope
 
@GNi33 Yea mainly the pope thing.
 
8:29 AM
@Darkyen he should write "Congratulations, that was easier than expected, right?"
 
@GNi33 lol
@GNi33 lol
 
user2157210
He laughed 2 times
 
Double lol?
 
user2157210
you must be funny
 
no chat messed up
 
user2157210
8:31 AM
i would have said that too
 
@Nexxpresso yeah yeah
 
user2157210
see again you double yeah
 
@Nexxpresso fuck you fuck you
 
user2157210
@Darkyen you see
 
:D like what i did there ?
i mean what should i see ?
 
user2157210
8:38 AM
see the sea
 
see what in the sea ?
 
user2157210
see the sea in the sea
 
dd5
hi guys
 
user2157210
hi
 
see what in the sea in the sea
 
dd5
8:39 AM
can someone explain a definition of a chat wampire? :D
the one who begs for help?
 
@dd5 one who doesn't help back
 
user2157210
i hate emulating android
 
user2157210
its even slower than android
 
dd5
thx m8's
 
8:41 AM
@Nexxpresso GET AA REALLL DEVICEEE
 
dd5
"Identifying Help Vampires can be tricky, because they look like any ordinary person..." i've loled
 
@GNi33 GTalk
 
user2157210
GTALK
 
user2157210
for the Gs
 
Girls Talk ?
Genitals Talk ?
 
user2157210
8:42 AM
@Darkyen real devices are so oldschool
 
@Nexxpresso :/ , can't you just get an android? I hear theere are some very cheap android phones now
 
yeah, of course, gtalk crashes Canary too :D
 
@Nexxpresso That'd be true with iOS development
 
user2157210
@GNi33 didnt have any problems with canary
 
user2157210
on 28.0.1473.0
 
8:43 AM
@Nexxpresso dx.com/p/…
 
Though android emulator emulates the ARM processors and certain hardware, it still doesn't do a good job of matching the CPU performance.

Being an emulator it can match Memory consumption well, it can emulate certain simple devices well but fails when the devices gets complicated for example mobile GPU and HW media decoders. And as the emulation logic works on translating each ARM instruction to X86 instruction and executing its a performance hog and by design not cycle accurate.

With programming model being Java this design doesn't buy anything to the Application developer as the perform
 
user2157210
i can work with the emulator
 
@Nexxpresso dont its messed up.
 
user2157210
i just need to simple app
 
its just impossible to work with that shit ... there are more bugs that are "emulator only"
 
user2157210
8:44 AM
app is already done is ugly at hell
 
@Nexxpresso As a developer, your time is worth more than the price of hardware 99% of times
 
@Nexxpresso i couldn't make a small "audio player using html5" with the emulator
wanna know why ??"
 
user2157210
i dont want to android dev
 
@Nexxpresso yeah, got that version, but i'm on a mac. don't know, it's terribly unstable, same for my work colleague
 
user2157210
its just some personal project for a guy who asked me to do it
 
user2157210
8:45 AM
it works perfectly now he said the button is ugly
 
meh borrow a real phone from somebody
 
user2157210
I WAS LIKE WTF BUTTON UGLY ITS A FUCKING BUTTON
 
btw can u web-app it ?
 
user2157210
nah
 
user2157210
i need internal calls
 
8:46 AM
@Nexxpresso Use bluestacks
@Nexxpresso it's very fast compared to the android emulator
 
user2157210
will try thanks
 
user2157210
android emulator is fast too when it comes to crashing for no reason
 
Also, HAXM is something that just speeds the android emulator
 
user2157210
but my install check works now and check if play store is installed works too
 
I read all that in an SO question once
Got it
698
Q: Slow Android emulator

AndrieI have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have h...

 
user2157210
8:48 AM
so in my mind my fucking app is finished
 
user2157210
i dont want to java anymore
 
@BenjaminGruenbaum tut tut tut CELERON
 
user2157210
its slow on an i3 too
 
user2157210
its just fucking slow
 
No developer should have do use i3
 
user2157210
8:49 AM
well i could use the xeon standing in the server room
 
user2157210
but im only on a work placement
 
user2157210
and just got my laptop
 
user2157210
could have taken my dell with me but hell its weights a ton
 
You're also on an internship abroad for a short time or something right?
 
user2157210
ye
 
8:50 AM
If it's not permanent it's not as big of a deal
 
user2157210
just have to live with it for 2 more weeks
 
user2157210
bluestacks takes a year and 2 days to install
 
user2157210
while spamming me with adds
 
@Darkyen It is an emulator, the underlying hardware doesn't matter.
That's the big difference between an emulator and a simulator.
 
user2157210
if your hardware cant emulate because it sucks
 
8:56 AM
I didn't quite get it but yea.
 
user2157210
holy bluestacks
 
user2157210
killed my logcat
 
user2157210
and i get 505050 errors
 
Works here :S
 
user2157210
yeah but it interferes with eclpise
 

« first day (908 days earlier)      last day (4034 days later) »