« first day (67 days earlier)      last day (4891 days later) » 
00:00 - 21:0021:00 - 00:00

Tek
9:03 PM
stockoverflow lol
 
uhhh
 
lol
 
9:22 PM
heh, funny
 
@CodingKitten Stop making people feel godlike
 
@IvoWetzel Yes I + '%,0)' }, 100);
 
@CodingKitten gods would understand it, right?
 
@thejh there must be an easier way behind :D
 
@CodingKitten are you talking about cheating?
 
9:25 PM
@thejh You want to
 
@CodingKitten Right, but how ?
 
@thejh Good night guess just stumbled across an interesting 'feature' of proportion in terms if maybe there a good
 
@CodingKitten sorry for confusing you with that question
 
@thejh I have never seen an element. It's reading everything twice
 
@CodingKitten Make my Skype work again, now
 
9:26 PM
@IvoWetzel can't you animate any css property with all the typecasting required in meta:
 
echo test comes online, supernode dies, echo test goes offline
that system will take forever to recover
 
@IvoWetzel or until many people sleep, right?
 
hm...
starts up a couple of server farms that will try to login all the time
 
awww, 1GB RAM just sucks - I've currently got a latency of 1s from the keyboard to that input textfield because my computer is swapping like crazy (but normally, it isn't so bad)
 
Get more RAM
is sitting on 8gb and still swaps from time to time...
 
9:40 PM
@ircmaxell what are you doing to your machine?
@ircmaxell newest windows version with 3D-desktop or what?
 
Normal usage (for varying quantities of normal)...
 
Tek
How can I pass a variable to a jquery handler? $(var) or $(''+var+'')
 
No, Kubuntu
 
kde aahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
 
@Tek: is var a string?
 
Tek
9:41 PM
yes
 
Then $(var) should suffice
 
unless the variable is actually called var
 
I also have 3 VMs running in the background (2 linux machines and 1 Win Server 2k3)
 
ah, my webaplication was eating 1MB per second
killed it and everything works again! :)
 
HUH? 1 mbps? (of ram)?
wow, that's a sizeable leak
 
9:43 PM
V8 should implement a memory limit
@ircmaxell well, as it's currently in development (by me), bugs aren't very uncommon
 
Fair enough
but that's still a sizeable leak... 3.6 GB per hour...
 
@ircmaxell well, I guess that it was an endless loop
 
damn
 
@ircmaxell has JS stack overflow or can it grow dynamically?
 
Yeah, not saying it isn't a bug (or it isn't a simple to fix one)
 
9:45 PM
@thejh It overflows
 
I don't know, that depends on the implementation I guess
but a loop won't overflow the stack since there's no scope change (and hence no change to the stack)
 
V8 Under node hits the stackoverflow at 26124
 
@ircmaxell yes, I know
 
Oh ok
just making sure
Really?
So it's not using the kernel's stack... It must be implementing it itself in userland...
 
FX4 at 9k
and it takes like 15 seconds to execute that...
var e =0;function foo(){e++;try{foo();}catch(err){console.log(e)}};foo()
 
9:51 PM
Really? wow
 
chrome v8: <exception>
uh?
 
that's a bit inefficient...
 
humm... when does V8 do garbage collection? also while my browser-js runs?
 
O11 hits the overflow at 16384
 
9:53 PM
What does JS store on the stack? It's weird that all of these are at oddball numbers...
413 nhz
Good night all
 
@ircmaxell good night
 
found and fixed - it was because of an IE-compatibility wrapper :/
This one: http://code.google.com/p/getelementsbyclassname/
I did something like `while (list.length>0) { removeElementByRemovingItFromTheParent(list[0]); }`
 
Tek
10:10 PM
can someone help me with some logic?
 
@Tek maybe
!kitten asktoask
 
Don't ask if you can ask a question. Just ask your question and if someone can help they will...
 
@Ivo you should really activate that auto-asktoask-thing in the kitten
 
Tek
jsfiddle.net/tekky/kxVkQ/3 scroll all the way to the bottom, ignore the long library. I have two dilemmas. Originally I had set it up for only one image border animation. Now I have two images, how can I write it so that I can tell it to stop the animation of a certain image?
My second problem is, I want to create a check. If for some reason highlight() gets called on the same element again, I don't want it to apply the highlight() function again
 
@Tek if (this.id=='imgId2'||!stop) maybe?
 
10:15 PM
sup mens
 
@Tek could you have an array of those elements and check whether an element is inside it?
 
Hi!
 
Hiya.
 
Tek
@david care to look at another way I approached the problem? I didn't know where to start with your code so I tried a more readable approach. xD
 
Is it possible to load an image, crop it and then send the cropped image to the server, or would the image have to be hosted on the server before I crop it?
So my question realy is.. can I load and crop an image on the client-side.
 
10:17 PM
aha, it looks like you just used the built in animate function, which is sweet
 
@Tek ehm... he didn't post any code...
 
Tek
That's what I had originally started with, but I didn't know I needed a library for it
@david he did yesterday :p
 
@raRaRa afaik it's possible with HTML5
 
@Tek clicking on the jslint button makes me sad >.>
 
Tek
@thejh @david made me learn some things about js that I didn't know with his code which was cool
 
10:18 PM
@raRaRa local filesystem API or so
 
Hmm I see.
Then I'll have to have the image uploaded to the server.
Kind of tiring bookkeeping
 
@david So many jsLint errors that they don't even fit on my 1280×800 screen!
 
it's crazy! i don't even know where to start :(
 
Tek
@david Would you mind checking this out? :) chat.stackoverflow.com/transcript/message/215763#215763
@david I'm trying to get a certain image to stop the animation when I click on it without stopping the animation on other images.
 
yeah, if you want to do it that way you need to use a different 'stop' condition for each image
and you need to attach the click handler to the images, not... the window?
you're doing crazy stuff!
 
Tek
10:23 PM
I'm a JS nooby, give me a break!
I thought this and click should return whatever I clicked on :p
 
... no
'this' refers to the window if you use it in the global scope like that
 
Tek
I wanted to find out if that was true but I forgot to see what this would return
Well, now I know! :D
 
Why does this: alert( 'foo'.match(/(foo|bar)/) ); returns foo,foo ?
 
is | equivalent to or ?
 
@raRaRa yes
 
10:25 PM
@raRaRa yes
 
@Nyuszika7H first one for entire matched area, second one for the area in the brackets
 
I've got it. alert( 'foo'.match(/foo|bar/) );
 
@thejh Yeah, it's also returning an array, not a string
 
Tek
@david I get what you mean by different stop conditions but I have no idea how to write it. I'm at the stage of being able to read another language but not able to "talk" or "speak" it well.
 
like, var stop1 and var stop2...
but the entire approach you're using is not so good...
 
Tek
10:28 PM
@david please enlighten me :(
 
javascript is... tricky when it comes to dealing with the DOM. It's hard to keep links between the images you're working with and the code you're using on them without using closures
 
Alternatively: alert( 'foo'.match(/(foo|bar)/)[0] );
 
and once you do that you get into weirdness with memory leaks because the GC can't handle the links...
i'll have a play and see if i can get a good intuitive thing set up
 
@david humm, what? Memory leaks because of stupid GC? Which browsers do that?
 
Tek
@david dude, you're too awesome thank you
 
10:36 PM
@thejh I read about it here: ibm.com/developerworks/web/library/wa-memleak It's old, and probably fixed by now, I should probably run some tests
 
heh
my (now deleted by me) answer had 3 upvotes
and it was in Java :/
not JS
most upvotes :)
 
It's easy to make a real array from a “fake” one.
var fakeArray = 'foo, bar, asd',
    realArray = fakeArray.split(', '); // ['foo', 'bar', 'asd']
 
@Nyuszika7H actually: no
@Nyuszika7H ("foobla, blabarhfdikhfbsdjkfhfooblahbar".match(/foo.*?bar/)+'').split(', ');
 
11:11 PM
i'm not happy with it though
 
2
Q: Javascript equation solve

user541225Is there a javascript library or function that will solve equations for variables. Such as: 9=3+x and solve for. But will also solve more advanced equations that include sine, cosine, and tangent. Thanks.

 
too many 'that=this' hacks
 
first answer is a perfect case of "did not read question"
 
@IvoWetzel and it also didn't get voted up
 
scrambles to be the first "use jQuery" answer
 
11:26 PM
good night every1
 
nn
 
Tek
@david :O!
@david Sweet! But why aren't you happy with it?
I mean, anything beside the that's and this's? :p
 
I dunno, it just felt messier than it should have
 
Tek
Maybe in time I can come back and take a look at it again. I'm great at OOP in php, just a matter of time for me to get a hand of JS. :)
 
this is a good starting read for OOP in js crockford.com/javascript/private.html
 
Tek
11:40 PM
bookmarked ^_^
 
well, time to sleep (at least in my timezone)
good <s>night</s>morning
I should really sleep now
 
gnight
 
anyone know how to 'jquerify' a regular reference to a dom element
I have a node passed by a function and want to be able to call hasClass on it
 
$(node)
 
not really sure how to correctly ask the question
hmm, i thought i tried that
let me checkl
yeah it returns null
but entering node into webkit's console gives:
 
Tek
11:54 PM
@david Can I bother you with two last questions? :x
 
<td class=​"center">​…​</td>​
 
@Tek go nuts
@AbdullahJibaly er... what is node? something you got from document.getElementID?
 
@AbdullahJibaly, what does typeof(node) say?
 
i object
i get it from a callback from the tablesorter plugin
typeof(node) = object
 
Tek
The thing is that the function gets a "feed" via ajax to know which elements should be highlighted. The two things that concern me is the script running again on an element that was already having the animation. (The feed can return the element more than once depending on the content)
@david the last one is, not sure how to make the script work with dynamic content aka not hardcoding the IDs
 
11:59 PM
@Tek errr... I'd do it a completely different way then ><
 
00:00 - 21:0021:00 - 00:00

« first day (67 days earlier)      last day (4891 days later) »