« first day (110 days earlier)      last day (4839 days later) » 
00:00 - 21:0021:00 - 00:00

12:24 AM
I think I just found my favorite Scotch... man this is good
 
@ircmaxell The weird things people say in the JavaScript room ;)
 
hehehe
I consider this the SO lounge that sometimes has a topic
4
 
@ircmaxell Great idea!
 
lol
 
testing
 
12:39 AM
testing
 
te57iGn@$23ns.. 2 3422436 4232skdkdf no carrier
 
writing perl code?
 
@ircmaxell wtf that doesn't have NEARLY enough punctuation to be Perl.
 
lol
Good perl is indistinguishable from line-noise...
 
Kind of a stupid quote actually. I mean, if you don't like the looks of Perl you can always use Acme::Bleach to make it clean and pure.
 
12:44 AM
lol
 
Wow, I've never actually read the source on that before. I'm even more impressed/horrified.
 
rotfl
 
... it's not that funny. Maybe you should go easy on the Scotch.
 
it's dam good though
peaty, but not overly so
 
there's also Acme::Morse if you prefer oldschool line noise/punctuation.
 
12:52 AM
it's sad that people actually did that
 
no, I'm happy someone did. Also, it was implemented in about a dozen lines of Perl and released on CPAN. The docs are the long part.
 
I guess that's bowling
 
Oh, now I'm sad... I guess it's not real Morse code, just a byte encoding using . and -
 
of course
 
I guess real Morse code isn't complete ASCII anyway
 
1:13 AM
Wow, my first -1 in like a week or two...
feels odd
 
haterz gonna hate.
 
Not when the very concept of the answer will result in a parse error:
-1
A: Verify string is bigger than 0 and not a space php

leaf devAlso, you can use trim and empty. $input = trim($string); if(empty($input)) { doSomething(); } From the PHP docs: The following things are considered to be PHP Empty: "" (an empty string) 0 (0 as an integer) "0" (0 as a string) NULL FALSE array() (an empty array) var $...

and the -1 removed...
 
It's nice how you can salvage rep like that
I mass downvoted this one guy who had no idea what he was talking about, then he deleted his account and I appear to have gotten all the rep back!
 
lol
nice
 
 
1 hour later…
3:12 AM
wow, the middle of america is just faaarrrmmmsss everywhere
 
3:38 AM
@YiJiang, oy...in here? |:
 
@RebeccaChernoff whistles innocently
 
4:13 AM
laters all
i'll leave you to your... ass...ing
 
see u
 
 
5 hours later…
8:58 AM
Morning? :)
 
@raRaRa Hi.
 
Hiya!
Do you happen to know if it's possible to add jQuery UI Dialog to a certain div? (The reason I ask is because I want it to be positioned relative to a wrapper on my page.)
 
You mean that the dialog can't go outside a given div ?
 
Sure you can.
 
Nono, I want the dialog container, the dialog itself, to be under a certain container on the page, so that it will be positioned relative
That way I could make it follow the page if its resized
on the width
 
9:16 AM
mmm
Not sure I get it. Still, you can modify the Dialog with a class thanks to $( ".selector" ).dialog({ dialogClass: 'yourClassWhereYouPutAPositionRelative' }); and play with it.
 
Good morning
 
9:53 AM
Hi @Greg
 
what's up?
 
10:33 AM
Hi there! :)
 
Hiya
 
@raRaRa $('#myDialog').dialog().wrap($('<div>', { id: 'dialogContainer' }));
 
Hi M. Rabbit.
 
10:57 AM
Can people check that browser comply with this ?
(alerts === browser failure)
 
@Raynos no problem in chrome 10
 
11:21 AM
Aparenlty IE8, IE7 & IE5.5 behave
 
11:44 AM
how can i have the scroller at the right of the browser all the time? so my page doesnt move when switching from a scrollersite to a site that doesnt have one
 
You mean have it there disabled when the content height is less than the height of the browser?
 
yes @rarara
how can i do that?
 
12:53 PM
This isn't fun.
 
1:12 PM
@rarara still not having a scroll, i did overflow: scroll;
 
on body ?
 
html {overflow-y: scroll;} worked :)
 
;)
 
1:54 PM
:o)
 
2:07 PM
@ALL: hello
 
2:36 PM
what's an efficient method for getting the angle between two points?
 
hi all
 
@Greg: How are the points represented?
and what's the angle relative to? (origin?)
and do you have trig functions available?
 
well, I'm in JavaScript, so the Math object is availabe... the points are simple objects pos1 = {x: 100, y: 200};
 
quick snippet from some old code
var pX = mouseX - this.x - this.width/2,
pY = mouseY - this.y - this.height/2;

return Math.atan2(pX,-pY);
 
Well, that only gives you part of it.
 
2:49 PM
i think its math.atan2(x2-x1, y2-y1);
 
var angle = Math.atan2(y1/x2) - Math.atan2(y2/x2)
@Loktar: That's the angle of the resultant vector, which is different from the angle between the points
 
ah :? well im terrible at math, i find something that works and just continually reference it lol
 
hehehe
 
Hello, I might need your opinion why the video doesn't work when I merge it with javascript code.
 
Ab
3:09 PM
how to load an image conditionally
here's what i'm trying...
    if (this.properties['setup'].backgroundImage == '' || this.properties['setup'].backgroundImage === 'undefined' ) {
        this.isBackgroundImage = false;
    }
    else {
        gaugeimg.src = this.properties['setup'].backgroundImage;
        this.isBackgroundImage = true;
    }
 
 
1 hour later…
4:14 PM
Phone interview tomorrow... let's hope my pronunciation doesn't fail me... >_>
 
Congrats @IvoWetzel
 
good luck @IvoWetzel
 
@IvoWetzel What sort of job?
 
@Shikiryu @Loktar Thx...
@YiJiang JavaScript Developer for underlying technology of web games and such (at Zynga Germany)
 
Just remember your awesome and it should go well.
I mean honestly how many have made multiplayer js games, not many.
 
4:17 PM
@IvoWetzel Ooo... not bad, hrm...
 
4:47 PM
Hello.
 
yc
Hey JS room, I'm hoping for some intellectual backup on this: stackoverflow.com/questions/4837876/… Am I way off
 
+1 from me
 
Well who would have thought, that a simple [] access is faster then a method call with more stuff in it, anyways +1
 
yc
@ircmaxell thanks, though I didn't post it to troll for more upvotes :) I genuinely want to make sure I'm on the right track.
 
@yc Too late, you're already part of the voting Mafia
 
yc
4:53 PM
Also, if any of you have IE, please do run the test. My Mac's Windows VMs aren't working, and I'd love some IE data points.
@IvoWetzel damn. that's how they get you.
 
your performance image didnt load for me
just noticed that
 
@yc: I know, I didn't +1 because you posted it, but because I thought the answer deserved it
 
upvoted from me as well
 
that jsperf java applet sucks...
 
4:59 PM
in fairness though the op did ask for other options
not the best in performance :P
 
true
 
yc
@IvoWetzel yeah, but i think they use it because the Java applet can do nanosecond timers jsperf.com/faq, providing more accuracy.
 
@yc I know, but the things tends to explode here on Ubuntu
Uses 200mb of ram
and 90% CPU...
 
wow crazy
 
yc
@Loktar yeah, I know, but the accepted answer cites another accepted answer to say the Sizzle is better performance, and that answer doesn't provide any evidence to back it up.
 
5:01 PM
ah ok good point
 
yc
@IvoWetzel wow. Java: Write once, crash everywhere.
2
 
also in IE its way faster to just select it with [0]
the : methods are 95% slower
82% in ff beta 4
 
@Ivo: which browser?
 
ok just added an ie result for you @yc
 
yc
@Loktar appreciated. :)
 
5:05 PM
@ircmaxell The 200mb part: every browser. The "I can haz your CPUs?" part: Chrome
Oh, and I should mention that it simply freezes Opera
 
ahhh
I find Chrome is far more stable and faster on Ubuntu than FF
 
Hm, I have a different experience, anything involving plugins makes Chrome go boom at a 25% chance
Man I'll be so nervous tomorrow...
 
yeah phone interviews suck
but whatever your work speaks for itself
 
Oh it's on phone?
 
My spoken English is a bit... untested :D
1 hour ago, by Ivo Wetzel
Phone interview tomorrow... let's hope my pronunciation doesn't fail me... >_>
 
yc
5:15 PM
@IvoWetzel you should go on Chat Roulette and just talk to strangers to practice your english
 
...
 
lol
@yc is that what they call it now adays? practicing english? :-P
2
 
>_>
 
@ircmaxell lol
 
:-P
 
5:57 PM
Evening
@IvoWetzel good luck
 
Yes, best of luck @IvoWetzel
 
Thanks guys
 
if you dont get it, I am quitting farmville immediatly.
 
you should do that anyway...
 
yc
@IvoWetzel don't let them know you said that.
 
6:06 PM
@Loktar If that wasnt humour then I lose respect for you
 
@Raynos Eeeek BE
 
haha it was definitely humor
 
I hope that the guy who's going to interview me has some... coding experience :P
 
I could NEVER quit farmville :P
did they give you any info? like a name etc?
 
I only know the name / title of the guy who handled the application so far
And I suppose that he's also the one who will interview me
"Country Manager Germany"
reads a bit... "cold" though
 
6:08 PM
should look him up
see if you can find any info online about him
twitter etc
if hes a developer he should have an online footprint somewhere
 
ahhhhhh
he was they guy who ran "dextrose AG" (now Zynga Germany)
 
oh nice
that the guy who made the game framework?
the isometric one
paul bakaus?
 
yes, that guy worked there
 
thats awesome
 
@IvoWetzel careers.stackoverflow.com/cv/edit Also, I want the kitten!!!
 
6:12 PM
im sure he will be impressed with your work
 
I have to say, speaking as an older ahem person, there are competent people who don't have much Internet presence.
 
Well this should make things easier for you
at least your not calling some random face now
you have a little bit on them
 
@CodingKitten Are you there?
 
Indeed, I'm very pleased with the fact that he's German and that they know what they're doing
 
6:17 PM
You may not have to worry so much about your English pronunciation :)
 
We'll see...
And judging from his Twitter account he's a Gamer
 
even better
 
6:43 PM
That's another rep-cap day down.
 
6:54 PM
Hi Guys
Got a problem here
Firebug saying that a var isn't defined but it is right above where it is called
code: var targetDiv = $('.sliding_info')[count];
targetDiv.appendChild(eSpan);
then says targetDiv isnt defined
 
exact error?
 
targetDiv is undefined
[Break On This Error] targetDiv.appendChild(eSpan);
 
Are you sure that $('.sliding_info')[count]; is defined?
 
that would be my first guess too
otherwise it would be a ReferenceError
 
so i can't define targetDiv by making it = $('.sliding_info')[count]; ?
 
6:58 PM
what does$('.sliding_info') return? Are you sure that there is an element at index count?
 
oh god
im an idiot
did var count
but didnt make count = 0
 
:-D
 
while we're on the subject of code
can anyone reccommend a textmate plugin for JS autocompleting and HTML?
 
VIM
 
lol
 
7:03 PM
VIM plugs into anything...
s/plugs into/replaces/g
 
there's a textmate plugin for VIm
but not the other way round
 
7:46 PM
back again :P
ImageDiv.appendChild is not a function
[Break On This Error] ImageDiv.appendChild(eSpan);
 
@MylesGray \o/ Congratulations on being back
 
any ideas?
@Raynos say what?
 
An interesting question that I had to reply to (even though rep-cap is already hit)...
2
Q: cost of "include" in PHP?

FilmJJust wondering if anyone has information on what "costs" are associated with including a LARGE (600K or more) php file containing 100s of class files. Does it really make much difference in comparison to autoloading individual files that for instance searches across several directories before fi...

 
@MylesGray console.dir(ImageDiv) ImageDiv instanceof HTMLImageElement etc.
 
@Raynos I just added console.dir(ImageDiv); to my JS but nothing has printed
doing it wrong?
 
7:54 PM
typeof ImageDiv , console.log(ImageDiv) ?
 
@Raynos
 
@MylesGray your testing in FF/Chrome right? if you doiing it in IE then fail
 
If you are a HTML5, JS and CSS 3 Guru in Australia let me know, we are looking for Developer Advocates at Google.
 
@IvoWetzel I plan to migrate in australia :P
And im not competant enough in all of those yet
 
7:55 PM
Access is cursing at me. It injected AS [%$##@_Alias] into my SQL statement.
 
im just "average"
 
migrate in?
 
Not that it has anything to do with JS
 
JavaScript - Discussion for JavaScript and everything earth related.
 
oh hai @MylesGray
 
7:56 PM
@Nathan oh hai der
 
@IvoWetzel into.
 
wouldn't it be just "to"?
 
@IvoWetzel grammar nazi
 
It's just that I'm always wondering whether my English might be wrong..
 
Hi again! :)
Off-topic, but nobody in the PHP room. How can I get an array's length in PHP?
 
8:04 PM
$arr.len
 
@Raynos AFAIK, . is used to concatenate in PHP
 
@Nyuszika7H I made it up
 
> The site's Public Beta will begin soon.
WHAT? They said it begins at 19:00 UTC! It's 20:05 UTC…
 
hehehe
We’ll be open to the public in
0 days

Come back then
I did, but you still didn't let me in
 
@ircmaxell That was on the site all-day. :P
 
8:07 PM
I know
@Nyuszika7H: count($array)
 
@ircmaxell thanks
 
And you can just ask it there, I toll there all day
 
@ircmaxell what's your primary language? (not programming) :)
 
English
 
@ircmaxell mine is Hungarian :)
 
8:09 PM
I used to be fluent in Spanish and Italian as well, but that was a long time ago
 
@CodingKitten what's your primary language? (not programming) :)
 
@Nathan well why print a page? isn't that what do you mean by with lesser browsers as subjective. How do I use undefined
 
Read that as Troll there @ircmaxell lol couldnt imagine you as a troll.
 
:kitten quote
 
> "A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila." - Mitch Ratcliffe
 
8:16 PM
hehehe
I do troll
 
did someone say troll?
 
haha
 
oh gosh
 
got bronze in jQuery today :) feels good >_>
@MylesGray really? Really?
 
@Raynos really really really
 
8:23 PM
I have lost all respect for you.
 
nice
I'm nowhere near bronze in jQuery
+9 in it
 
i need to start using SO for more than the chat
 
@ircmaxell your kidding?
ircmaxell, New Jersey, USA
18.6k 2 11 40
your not :p
@Loktar probably worth bothering. its not hard. I swapped my evenings of playing games for answering on SO
 
0
A: I'm working on my own JS-lib and I need someone to help.

Ivo WetzelRewrite it from scratch, if I were to encounter such code in any commit, I would immediately remove that code and talk with the one who committed it about JS in general... // anonymous wrapper if fine... (function(){ // but not using var still creates global variables a=this.Function; /...

can someone please downvote the other who says "it's basically fine"?
 
this.Function WTF?
 
8:35 PM
basically Function
so he's doing Function.prototype
 
lol
 
the code screams WTF
 
hehehe
 
somehow he seems to have the impression that you need () around function(){} to be able to assign it
 
code is full of WTF
 
8:38 PM
@Raynos: I don't do much jQuery work, so why would I have a lot?
 
@ircmaxell your in the JS room :)
 
@IvoWetzel Don't have enough rep on Code Review to down-vote, but I up-voted yours :P
 
@Raynos: Yes, because I consider it a lounge
-1/+1ed
 
I don't even have enough rep on CR to up rep you...
 
I'm trying to reverse engineer the thing right now
 
8:44 PM
this place is like a mafia meeting ground for rep
 
@IvoWetzel so am i :P
 
Oh that sucks
Upvote me!
0
A: Obfuscated Hello World

ircmaxellPHP eval(str_rot13("rpub onfr64_qrpbqr('nTIfoT8tq29loTD=');"));

 
@IvoWetzel you can go and figure out his bad ajax code
 
needs to get +50 rep on code-golf
 
"recommended reading jquery source"
:)
 
8:53 PM
it's BS that I need 150 rep to create tags on other beta sites
 
@Raynos Posted a "fixed" version
 
@IvoWetzel not enough rep to edit your code -.-
 
@IvoWetzel use context instead of that its more readable :P
 
bla
I like that
I even have it highlighted like this
 
8:56 PM
@IvoWetzel was going to edit your code so it basically has enough ajax to bootstrap load jQuery and set $ = $.load("jquery.src") :P
 
haha
 
var clone = array.slice() Learn something every day
 
well that clones arrays
 
@IvoWetzel hence the array
 
so if object -> for in copy onto a new {} elseif array> array.slice() elseif primitive -> return value
 
00:00 - 21:0021:00 - 00:00

« first day (110 days earlier)      last day (4839 days later) »