« first day (761 days earlier)      last day (4412 days later) » 

11:00
but it sure is damn fun to play with amiright
not especially
new Function() is, eval isn't
11:00
@FlorianMargaine It's pretty rad, for instance: code.google.com/p/v8/source/browse/trunk/src/array.js
the only use I ever found for eval jsfiddle.net/Ralt/R3Gmg
It's not pure javascript, it's pre-processed by c/c++ magickery, but it's still pretty rad
@wyem Don't listen to the lies. If you believe it hard enough, I can be anything you like!
ah yeah, makes me think of macro system in lisp
I was going to say, what is '%' - I'm assuming that's preprocessor annotation?
11:02
@FlorianMargaine That's the first thing I wrote in JS
Yeah glitter rain!
@phenomnomnominal most likely
!!/tell wyem urban glitterrain
@wyem Y U NO MAEK SENSE!!!???!!?11 No results for glitterrain
Sweet, La GF got me a new hard drive for xmas
11:14
@phenomnomnominal Hahahaha
@Zirak I was thinking about it i.imgur.com/58dmS.gif
Sexy
Dude ... I'm sooo tired.
i know the feeling
got back to Linz at 3:30am yesterday after a pretty useless trip to Munich
not enough sleep that is
11:23
0
Q: What's the best way to use requestAnimationFrame and fixed frame rates

m90I recently got into using the HTML5-requestAnimationFrame-API a lot on animation-heavy websites, especially after seeing the Jank Busters talk. This seems to work pretty well and really improve performance in many cases. Yet one question still persists for me: When wanting to use an animation th...

!!/urban first world problems
@phenomnomnominal first world problems Problems from living in a wealthy, industrialized nation that third worlders would probably roll their eyes at.
@GNi33 Why did you go to Munich anyway? :D
@OctavianDamiean To see "The Devil Wears Prada" and "August Burns Red"
got there, they screwed up our ticket reservation -> no tickets for us
Man, that would have been a great show
OH
That sucks!
11:25
so now we are struggling to get tickets for the show tonight in vienna
i just hope that'll work out
i freaking want to see that show so bad
I'll be in Vienna next Monday.
@GNi33 hope you won't fall asleep during the show...
hehe, i'm absolutely sure that won't happen
too busy being amazed and jumping around like an idiot
@OctavianDamiean what for?
@GNi33 Imma meet someone.
oh okay, thougt you'd go to some concert too
11:29
Nah.
Someone with interesting genitalia?
5
@GNi33 Well if Parov Stelar woud be there it'd be something else.
@Zirak Nah, family stuff. Just relatives.
ah. so no genitalia (how did I miswrite that twice?) for you
Not on that Monday, no. :)
Also, I wouldn't have to travel that far for some interesting genitalia. :D
By the way, I'm still stuck with my open/close function here http://jsfiddle.net/RF6df/49/ (I want to close the blue container when I click the current thumbnail).
I'm sure it's an easy problem but I'm already struggling to read javascript... Anyone can help?
11:35
$(this).hasClass() != "current" wat?
!!/jquery hasClass
@wyem ^ use it correctly. .hasClass() != "current" will always be true
and @wyem: consider clicking the "tidy up" button on jsfiddle. that makes your code much more readable...
Dude, there must be an easier way to do what you're trying to do
I saw the rest of his code and just went away. My Pokemon need me sane.
Ok @ThiefMaster, I'm not used to it. @Zirak this is chinese to me :)
Pretty mcuh
11:40
.hasClass(className) checks for a class
Doing .hasClass() !== something is worthless
@phenomnomnominal I'm sure, I just adding code on the go and try to understand it at the same time
I'm going to have a go at tidying it up for you okay.
with pleasure
Okay, how is the first '.current' added?
@Zirak I try to close the container when a click on "current" is found... Someone gave me this in my thread (well there was .attr not .hasClass)
11:44
Yeah and that would be all good, but how does a container become current?
when you click a thumbnail, it's added to the thumbnail (not sure it's what you meant?)
Even if you were using .hasClass correctly
//if you want to check, in jquery, if $elem doesn't have a class:
if (!$elem.hasClass("current")) { ... }
Okay, so initally none of them are current?
The jquery api docs are pretty good on the examples
11:44
And the first one that gets clicked becomes current?
oh sorry by container, I mean #DrawerContainer (the blue rectangle)
@phenomnomnominal yes exactly
I can link you to the thread, so you can follow what I'm doing stackoverflow.com/questions/13366804/… (then have a look at Praveen answer)
Who created DOM ?
God
2
hmm what do you mean @user1334247?
The Flying Spaghetti Monster did.
11:50
and Netscape, but mostly his Noodliness
The Document Object Model (DOM) is a cross-platform and language-independent convention for representing and interacting with objects in HTML, XHTML and XML documents. Objects in the DOM tree may be addressed and manipulated by using methods on the objects. The public interface of a DOM is specified in its application programming interface (API). The history of the Document Object Model is intertwined with the history of the "browser wars" of the late 1990s between Netscape Navigator and Microsoft Internet Explorer, as well as with that of JavaScript and JScript, the first scripting lan...
This sums up this code for me pretty well @wyem: .remove(); }, 300); // after 500ms.
:(
@phenomnomnominal yeah sorry forgot to change that...
11:52
Haha, it's okay, I'm getting there.
Netscape ?
Bah sorry dude, I've got to go. I've changed hardly anything: jsfiddle.net/RF6df/50
no prob thanks
12:11
YES!
got tickets for vienna tonight, oh the joy!
congrats
@OctavianDamiean looks a lil like me
well thank you ;)
o/ @GNi33
\o
12:16
ello kind people, I'm using a regex in a jquery selector (my regex knowledge is nowt) - a[href^="http"]:not([href*="foo.com"])
how can I chage it to be either "foo.com" or #
(I know this is not strictly a js question, but hoo hum)
@Abhishek 'cept you look like a cuddly teddy bear compared to that guy. :D
12:46
!!/google sadfsafsafsa
@Zirak
!!/google barrel roll
!!/urban do a barrel roll
@AmaanCheval do a barrel roll This is what you say when someone asks you for important advice in their life.
12:51
Anyone have experience with github's issue-referenced-in-commit thingy? I want to give @AmaanCheval the credit, but I can't merge in his commits
hi all.
need some help.
can we download a image given the url of image using javascript.
Download where?
to local folder
For the user?
12:54
yes
if anrdoid browser can download to phone
You may be able to, but it won't work well across all browsers
It'd be easier if you just told them to right-click / long-press and save the image
actually the context is different here.
so need it downloaded in background
how can i create a javascript fun which set value of Div?
want to download some images to local folder whcih can be used later
@rajesh Like a cache?
!!/tell Chets mdn DOM
12:56
yes
@rajesh Why not use an actual cache then? manifest.cache
@aman as far i know there we dont have control over where exactly we want tostore the file.
@rajesh And for cache, you don't need to.
12:58
!!/listCommands
The browser will manage it
@phenomnomnominal Available commands: help, listen, live, die, forget, ban, unban, regex, jquery, choose, user, listcommands, define, norris, urban, parse, tell, mdn, get, nudge, ring, roll, spec, todo, convert, stat, google, beautify, hang, learn
!!/help todo
@phenomnomnominal todo: Your personal todo list. get [count] retrieves everything or count items. add items adds items to your todo list (make sure items with spaces are wrapped in quotes) rem items|indices removes items specified by indice or content
!!/help spec
12:59
Anyone who knows about a great free wysiwyg that can be used on a webpage for adding content?
the native app want to take the file form cache for other purpose.
its not just about viewing web page
@phenomnomnominal spec: Find a section in the ES5 spec
@rajesh: Look into the file writer API
its very experimental, but maybe
wake up ya all lazy bastards hahaha
@phenomnomnominal But he doesn't actually need it!
13:00
@Zirak How big a deal would a !!/caniuse function be? I might have a go at adding to the bot
After starting the download, he can't access the image to use it as a cached image
He wants to save an image from the browser to the phone and use it in another app yeah?
@phenomnomnominal I'm not sure if I read the part about the other app
> 'the native app want to take the file form cache for other purpose.'
That might not be what he means
Oh well. 2am. Bed time
13:03
thnaks guys. i was also trying to print the image in a canvas element of html5 and then pick the image data from canvas. but as the image is extarenal url it doesnot alows this too
You could turn the image to a data URL first using a JSONP API if you find one
@Zirak What's the distinction between plugins and commands?
i think you cant if the image is not from your server
(Talking about your bot)
@rajesh A data URL means it isn't from any server, man.
@AmaanCheval can you point me put to some examples plz
2 mins ago, by Amaan Cheval
You could turn the image to a data URL first using a JSONP API if you find one
13:14
posted on November 15, 2012

Currently I’m working on a media query test suite, and I’ve run into one of those weird things: the proper syntax of @media not. Note that I’m only interested in the @media syntax. I cannot use the rest because I can’t fit it into my test suite. I’m currently working on a test for binary media queries such as touch, script, grid, and a few others. These are jus

!!tell me the rules
@AmaanCheval A robot may not injure a human being or, through inaction, allow a human being to come to harm.,A robot must obey the orders given to it by human beings, except where such orders would conflict with the First Law.,A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws.1)0
A robot may not injure a human being or, through inaction, allow a human being to come to harm.,A robot must obey the orders given to it by human beings, except where such orders would conflict with the First Law.,A robot must protect its own existence
No, the other rules :p
!!show me rule 46
@AmaanCheval 23. Cock goes in here.
13:17
Hahahahaha, maybe you should delete that
@AmaanCheval 46. The cake is a lie.
@AmaanCheval Y U NO MAEK SENSE!? Could not understand google testing
@phenomnomnominal Shouldn't be too hard, you'll just need to turn their tables into json
@AmaanCheval No distinction. Plugins can be commands or listeners or whatever they want. I just needed a general name
And that reminds me that I should detach most stuff from commands.js and listeners.js, only have the core stuff there, move all others
Yeah, that's what was confusing me
okay, let's see if I broke something...
beer!/listcommands
@Zirak Available commands: help, listen, live, die, forget, ban, unban, regex, jquery, choose, user, listcommands, define, norris, urban, parse, tell, mdn, get, nudge, ring, roll, spec, todo, convert, stat, google, beautify, hang, learn
awesome
13:23
beer!/roll
The pattern is !!
!!/tell FlorianMargaine help roll
@FlorianMargaine roll: Roll dice in DnD notation. MdN rolls M N-sided dice. MdN+X rolls as said above, and adds X to the result. You can use any of the four arithmetic operators +-*/,. X can also be a die roll: MdN*XdY for example
@FlorianMargaine Invalid /roll argument; use /help roll for help
!!/roll 2d3
@FlorianMargaine 2,2 => 4
13:24
!!/roll 2d6
@FlorianMargaine 2,3 => 5
@FlorianMargaine 2,5 => 7
!!/roll 1d12313412423423
come on big money!
@Loktar 9033037616381 => 9033037616381
YEAH
hey @Loktar
how are you?
13:25
hey @FlorianMargaine good you?
awkward silence ensues
lol
!!/define assface
@Zirak Could not find definition for assface. Trying Urban Dictionary
@Zirak [assface](http://assface.urbanup.com/100550) 1) One who has the face of an ass
2) One who has an ass for a face
3) One who has the appearance of two protruding buttcheeks just below one's forehead
@AmaanCheval :D
Hehe, awesome :D
13:34
commiting & pushing
feels maintainer-pride
@Zirak your commit messages suck
@FlorianMargaine To beginners, I still think W3Schools is harmful. But I find it useful when I simply need a quick reference.
I was just looking through commits for SlickText, and saw one that said "Added a whitespace"
Sure enough, there was one file changed... a single blank line was added... where there were already two empty lines.
:shakes head:
13:44
Yeah, saw it
Fair enough
Man, CS50 on edX has huge lecture videos.
$ alias WTF="git reset --hard"

« first day (761 days earlier)      last day (4412 days later) »