« first day (81 days earlier)      last day (4857 days later) » 
01:00 - 14:0014:00 - 00:00

2:00 PM
Too bad & too bad.
 
@ClemDesm thank you.
 
Beh never believe free host.
(or my work firewall)
 
is confused
 
I hosted a script on a free host (to have a short url) and today, it doesn't work or is slow or kinda blocked here.
 
var code = $.ajax({ ..., async: false });
eval(code.responseText); // What other options is there for running the code immediatly?
 
2:13 PM
has a free host. Or at least since it's my own server it costs me nothing extra to do whatever I please with it...
 
@ClemDesm turn an old machine into a server. Or set up a VM as a server
 
@Raynos & @ircmaxell : Unfortunatly, I can't. It's the server or my GF :P
 
@ClemDesm buy a server. You can get a file server for under $100
 
That's why the little server someone presented for Xmas was interesting to me but not so much powerful
@Raynos I need a PHP one :S. I already got a good shared one with a domain name but only 600Mo and is full.
 
How much you paying per month?
 
2:18 PM
I pay 25€ a year. So it's like 2€/month I guess
 
yeah, not going to do much cheaper than that... But for around $8/month (USD, 6 euro) you can get a VPS with 2.5gb of disk: vpslink.com/vps-hosting
I'm paying $50 per month each to colocate my own servers (I have 2)
bb iab
 
@ircmaxell $6.62 per month if you take a year
 
yeah
I recommend them, I've used them for a few servers before I purchased my own, and they worked good
 
Yeah but still, I won't have my short url :(
 
Why not?
 
2:26 PM
Oh, I forgot I bought a domain name last year and never used it :D
 
Well, you can transfer your short domain that you're currently using to a new host
 
1
Q: alternatives to eval for running remote code.

RaynosAre there any alternatives to using eval to immediatly run remote & trusted javascript code. var o = $.ajax({ url: filePath, dataType: 'html', async: false }); eval(o.responseText); // run a function that relies on the code from o.responseText being loaded doSomethingWithCode...

Somehow JSONP magically fixes my problems. Somethings SO is annoying
 
!kitten jquery
 
Thanks
Commented @Raynos
 
2:33 PM
LOL jQuery has so many uses.... like adding numbers. Brilliant.
 
I hear they're adding multiplication support in the next version.
Gonna be sweet
 
yeah, whomever made that image is a genious (the related questions are the best)
Where are my legs? brilliant...
 
Some people got too much time on their hands.
 
@MichaelAngstadt @ChrisJacob joke all you want. One day I will push a turing complete update to jQuery and see if the community will let me.
 
:kitten quote
 
2:39 PM
> "I think Microsoft named .Net so it wouldn’t show up in a Unix directory listing." - Oktal
 
lol
4 hours ago, by Raynos
@ClemDesm is full of errors
 
@ircmaxell you did give a bit too much negativity there.
 
wtf
 
@IvoWetzel be polite.
 
why does my #top when body id="top" not jump to the top
it jumps to top + 8px or something :/
 
2:52 PM
any padding or margin to your body ?
 
in CSS: html, body { padding:0; margin:0; }
 
Inspect with Google Chrome!
Check what container spans the 8px :)
 
And kill him !
 
I wish I was an inspector and my name would be Chrome
Inspector Chrome, can you take a look at his for me?
 
2:54 PM
Hm seems to be triggered by something that position: fixed
 
You got weird dream.
 
Kill something!
Ugh, that sounds weird out of context.
 
-5
Q: Multiple clients database with column variations ?

BucoHow would you design such db? DB per client? EAV model? Ideas please... Thank You

ouch
 
This chat always amazes me, so well done!
 
ahhhh#
why doesn't it jump to the top completely?
 
3:07 PM
line-height: 1.4em; ?
 
nope
 
#main {
    margin: 8px 16px;
    padding-right: 304px;
}
here's the 8 px
 
ahhh
thank you :)
 
3:46 PM
Buhahaha
Finally got my coupon for a no.de smartmachine
@CodingKitten Prepare to be online 24/7
 
@IvoWetzel Entertain me! fair. Again, don't take this to record vim
 
Eih... I didn't downvote him @Raynos. But I stand behind my original statement considering his original post...
 
@ircmaxell ?
 
1
A: alternatives to eval for running remote code.

jsumnersI would use JSONP in this case. Raymond Camden provides and excellent introduction to the concept. A quick example of using JSONP in this situation is available at http://playground.itcouldbe9.com/syncjsonp/.

specifically the original edit:
> I would use JSONP in this case. Raymond Camden provides and excellent introduction to the concept.
wants to point out that what he's talking about isn't actually JSONP since there is no JSON involved...
 
4:15 PM
hi
can anyone help me download jquery ui manual from download them all
 
?
 
jquery ui manual download
for offline
 
@explorex download it :)
 
great so it took them like 4 month to give me a smartmachine beta thingy
and now...
http requests via node take 25 seconds+?!?!
:/
 
4:24 PM
Hahahahaha
 
5:07 PM
dinnermint.org/blog/css/creating-triangles-in-css <-- Amazing, triangle with CSS :O
3
 
Is there any kind of hooking API for javascript?
 
I hate CSS
 
@IvoWetzel And it hates you ¬_¬
 
@ClemDesm that's pretty cool!
 
@MichaelAngstadt Isn't it :) ?
 
5:12 PM
The chat bubble is cool too
 
You can do that too
 
It's too bad delicious.com is going to be axed soon. Otherwise I'd bookmark it :(
 
never used bookmarking services.
Well I got my tumblr for that... but it's public and unsorted
 
Does it let you tag stuff?
 
Nope, there's only a search engine
and with the "comment" section you can add tags, but it's not its first purpose. But that's how I use it
 
5:17 PM
Can I communicate between CSS & javascript?
 
Maybe I'll just switch to Google Bookmarks
That lets you tag, create separate lists and control the visibility of each list.
 
0
A: Why does IE nuke window.ABC variables?

RaynosThe Issue: variable declaration gets moved to the top of the block. Even if the code is dead. In IE the top of the block is script statement dependant where as every other browser optimises it to the top of the block without being script dependant. Explanation: What's happening is that your de...

I never knew IE could do something like that.
@IvoWetzel is what I said not a lie ?
 
5:35 PM
@Raynos I posted him another smaller version and gave you a +1
 
@IvoWetzel I waffled a bit. Wasn't very concise.
I'm just not sure whether IE actaully compiles each script tag independantly and whether firefox bundles them together and compiles that. It seems reasonable. But I'm not confident that's exactly what's happening under the hood.
 
5:59 PM
blah
 
@ircmaxell liven up.
 
not in the mood to. Just got in a decent argument with my "boss"... He had a point, but I think he completely missed mine...
(those commercials were from 1993, for a little bit of perspective)...
 
god
So cheesy
Not even trashy
And I hate the music
 
true, but most of them came true exactly, and all if you are a big generous with your definition of true...
 
6:40 PM
> Why shouldn't I just use the method with square brackets all the time (it seems more powerful)?
> just imagine writing Chat['users']['getList']()['sort']()['each'].
 
@IvoWetzel thats clearly more dynamic
I mean you could stuff like:
 
@Raynos eval is dynamic!
2
 
var sortingAlgorithmFunction = "sort";
...
Chat[userLocation][listGetter]()[sortingAlgorithmFunction]()[iteratorImplementation]
@IvoWetzel your mother is dynamic!
 
fail
 
i+tab. Sorry
 
6:46 PM
Chat.location(loc).getUsers(list).sort(type).each
 
Time to reinstall everything :(
 
@Raynos Why that?
 
@IvoWetzel Windows corrupted my linux partition so I wiped windows and reinstalled linux
 
@Raynos Good choice
 
@IvoWetzel ill run a VM if I really need it
I just had to install gcc :\ Of all the things to not have by default
 
6:56 PM
@Raynos Wut? What barebone distro are you running?
 
Give me one reason why you wouldnt want gcc installed.
 
Uh, there's none? But why do you have to install it, in most useful distros it's included by default
A Linux box without gcc isn't a Linux box
 
Wonder whether I should write a small script that installs some useful things
 
Like VIM
And... VIM
Don't forget to install VIM
 
Hi :)
 
6:59 PM
... It doesnt have vim. I mean seriously.
 
would you please introduce IDE for javascript and JQuery?
 
@IvoWetzel what version of node is stable? Is 3.3 stable enough?
@shaahin WebStorm. Its still 50% off. Buy it before it shoots back up
Second choices would be netbeans, followed by VS'10 followed by eclipse.
 
@Raynos lemme check this
 
If all you need is a text editor any will do. notepad++, vim, gedit,
 
what about Expression Blend?
 
7:03 PM
Never used it. It looks like a piece of ** Microsoft product and its for silverlight. I avoid that like the plague. I remembered when people said Oh! man DHTML & HTC's such great technology. Not falling for microsoft tricks again
 
yes it is !
hmm
it is not just about Silverlight
 
If you insist on writing a silverlight application I will a) mock you and b) agree that expression blend is probably best
 
SilverLight IDE is Microsoft Expression Blend
 
yes. But I would still advice againts SilverLight
 
+1 @Raynos
 
7:09 PM
@ircmaxell for what?
 
I dunno. I like clicking stars...
 
When it is better to use Silverlight?
1 - requires the ability to have the Desktop programs but also requires them to also provide web.
One of the reasons Web Iqbal programs in organizations does not need to install them and what the distribution network is easier in such applications. Just a few files on the server to update and then all clients benefit from the latest version of your application will be (.) Silverlight distribution programs also are facing the same. Moreover, the possibility of using modular building Fnavrhayy like MEF program and get the latest modules produced (XAP files separate from the program as a plugi
 
@shaahin when your a microsoft fanboy. I know nothing about silverlight and what it brings to the table. Im a fan of pure javascript & HTML5.
 
lol
i am !
@Raynos : Which Server SIde Technology do u use?
 
@shaahin silverlight is SS ? I'll bother to read the wikipeia article
 
7:13 PM
what do u mean by ss?
 
SS = serverside
I run my servers on node.js. But I cant get it to work because I installed a stupid netbook version of ubuntu thinking it would run faster on my laptop
 
lol
@shaahin That reason you provided applies to all web-based technologies including flash and JS...
 
@Raynos Oh my god the netbook version...
 
@IvoWetzel ;_; is it that bad?
 
@Raynos Me was happy when I managed to get my normal window manager back
1
Q: Dynamically attach a function to grant access to private variables.

Derek AdairI'm trying to assign a callback dynamically to an Object of mine, I can't seem to figure out a way to do this while granting this function access to private variables. I've listed the relavant code below with comments where I ran into walls. Object Factory function makeObj ( o ) { ...

Hurray for people not getting how closures work
Best JS of the day
0
Q: Javascript parent and child window functions

Mike Thornley<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Lab 9-3</TITLE> <SCRIPT LANGUAGE="JavaScript"> <!-- function myFunction(){ myWin = open("","","width=200,height=20...

 
7:33 PM
@IvoWetzel ill clean it up. you lazy ...
 
7:49 PM
@Raynos Sorry busy ranting in the comments
 
8:05 PM
And the prize, for the worst formatted question of this day goes to.....
0
Q: clearTimeout not working as expected

user543314Javascript sliding menu stay open. clearTimeout not working as expected -can you help me please Menu1 {position:absolute; top:-190px; left:150px; font-size:15px;visibility:visible; background-color:#D0BCFE; width:114px;z-index:0;border-style:solid; } Menu2 {position:absolute; top:-19...

 
@IvoWetzel I cleaned it up and it unbroke :P
 
8:38 PM
hi all! can anyone explain me how i can use toggle() to toggle the visibility of a class?
This is my code now;

$('.togglebtn').toggle(
function() { $('.togglecontainer').hide();
$(this).html('Show less');
},
function() {
$('.togglecontainer').show();
$(this).html('Show more');
});
with an append button you can append a .togglecontainer, and i understand that with this code ALL of the .togglecontainers get toggled :p, but i cant use live or delegate right?
 
 
2 hours later…
yc
10:33 PM
Hey, I have a question and I can't quite tell if its a stupid one: is there any way to detect, in JavaScript/jQuery, whether a particular image request has completed if that image is not part of the DOM? ie, if I do the equivalent of jQuery('<img src="foo.jpg" id="bar" />');, I'll generate an image request even though its not being added to the DOM. But is there any way to register a callback to that image load?
 
The onload event should still fire when the image loads.
Even if it's not in the DOM.
@yc Try $("<img src='foo.png' />").load(function(){alert("done")});
 
yc
@Na7coldwater beautiful. Now, the tough part. Could I bind a load event for the image if I'm not the one creating it? ie, if a script generates an image request on its own, and I want to bind an event to when that image request is made.
 
Hmmmm.... I don't think it fires an event on the window if it's not in the DOM. I'm not sure if it's possible.
 
yc
ie, i know that Google Analytics is going to generate a request for google-analytics.com/__utm.gif?[longquerystring], is there any way for me to bind an event to that so I could create an onload event for it?
 
Not if GA doesn't put the image in the DOM.
 
yc
10:41 PM
damn, thought so.
 
Perhaps you could override the Image() function.
If it uses new Image()
To create the image object.
 
yc
hm, interesting.
its likely either that, or in order to get callbacks in GA, I'd need to write ga.js from scratch, which is fairly daunting.
 
It looks like it does use Image to create the image. Now the question is, how do you override the constructor in a way that returns an object that acts just like an Image? Do all your target browsers support getters/setters?
 
yc
@Na7coldwater if I'm looking for universal browser support, probably not. This is getting a bit outside of the realm of my understanding, but could I just redefine the prototype for onload to automatically call a particular function if the src attribute meets a particular regex match?
 
I don't think so.
Here, try this: jsfiddle.net/CWPby
 
yc
10:57 PM
@Na7coldwater nice, thanks. I'll fiddle with that and see if it works.
 
It breaks any other scripts that use Image() and try to add it to the DOM, though.
 
I need some help ...
I have a form on my websit,e I want it to dissapear when someone clicks the submit button
is this possible?
with javascript?
 
Do you have a URL or source code?
Also, yes it's possible.
 
I haven't built it yet
:(
it will be just 1 input box for email
but after clicking, I want it to vanish...
and a submit button
sorry, someone has answered my question on the main site
 
Okay.
 
11:02 PM
thanks
 
+{valueOf:function(){return +this;}}
 
11:40 PM
@Na7coldwater no. Stop invoking recursion
 
No, what?
 
@Na7coldwater didn't know +x === x.valueOf()
 
@Raynos You can also use + with Date() objects, like this: +new Date() and it gives you a number.
 
x+"" == x.vallueOf()
 
I think that's actually x+"" == x.toString()
 
11:46 PM
""+{valueOf: function() { alert("called");}, toString: function() { alert("toString"); }}
 
""+{toString:function(){alert("toString called")}}
Use === instead of ==.
== sometimes converts automatically between strings and numbers.
 
try ""+{valueOf: function() { alert("called");}, toString: function() { alert("toString"); }}
 
Hmmm... it seems that if the object doesn't have valueOf it uses toString instead.
 
string addition calls valueOf first & toString second
 
""+{valueOf:function(){return "the"}} == "the"
isNaN(+{valueOf:function(){return "the"}}) == true
 
11:49 PM
fun isnt it?
Have you done any nodejs?
 
Yes.
I wrote a telnet server that sent everything you typed to the other connected telnet clients.
 
Ah ok
I'm slowly working on writing scalable node. I havn't gotten out of my refactoring loop yet.
 
Scalable? How?
 
Trying to get it to work elegantly with multiple node processes and a single controller. The elegantly bit isnt working for me. And shared data is a nightmare.
 
I read that Node will eventually support the WebWorkers api.
 
01:00 - 14:0014:00 - 00:00

« first day (81 days earlier)      last day (4857 days later) »