« first day (94 days earlier)      last day (4846 days later) » 
00:00 - 14:0014:00 - 21:00

12:18 AM
ah viewstate... such a clever idea
 
12:32 AM
Clever idea indeed.
My clients love sending their visitors 100kb worth of junk
 
too clever >.>
 
The more base64 that can be sent the better - sarcasm
 
it's even more unfortunate how it interacts with the love of postbacks
anything you do causes a postback
which sends the whole massive hunk of viewstate back and forth again ><
wow... this htmldog thing has awesome examples: htmldog.com/examples/lists3.html
 
1:27 AM
Some guy showed me around 5 SEO proposals and all of them said "remove Java Script from your site". They didn't even realize JavaScript is one word. Also I think their whole premise of removing JavaScript to increase page rank in Google is wrong. In terms of dynamically creating content with ajax as an alternative to a link to another page, maybe. But otherwise I don't think so.
 
@JohnMerlino I bet you could quickly disprove it by checking for JS on top-ranking pages for any search.
 
1:47 AM
What they're really saying is "We're not very good, so we can't handle doing SEO on websites with Javascript on them."
 
1:57 AM
Also you can place a link to a page and then have javascript dynamically replace it with content on page load. And even the robots that only crawl through html, they will still see that link in this case. Of course these SEO firms copy and apste from each other, so they assume their unsuspecting clients wouldn'
 
2:38 AM
How do you guys feel about this code? It works... but i'm not sure if it is... right
var scopedCallbackGenerator = function(fnc, obj) {
    return function() {
        fnc.apply(obj, arguments);
    };
};
used like this:
(inside a constructor)
    this.inputNode.keydown(
        Utils.scopedCallbackGenerator(
            function(e){
                this.handleKeypress(e);
            },
            this
        )
    );
then in the prototype.handleKeypress() event, e is the correct event, and this evaluates to the object in question
 
 
1 hour later…
3:59 AM
@david you might want to try something like this: prototypejs.org/api/function/bind
 
i'm already using jquery, so i can't really add prototype
and i'd rather not override the function prototype :S
 
4:59 AM
0
A: If [] is [] and Array.prototype is [] why doesn't ([] == Array.prototype)

gsneddersjs> [] [] js> Array.prototype [] js> [].toString == Array.prototype.toString true js> [].toString === Array.prototype.toString true That is to say, the toString method of the objects is identical. Of course, for Array.prototype.toString() (which is effectively what the second line i...

Can anyone think of a better way to explain that?
(And yes, I am effectively asking people to come up with a better answer than me :P)
 
 
4 hours later…
9:24 AM
Hey
 
9:42 AM
omg help
i had too much chilli last night
omg
 
10:03 AM
Go to the toilet
Now
Seriously.
 
I've been 4 times already
Lucky im in the office on my own
 
I wonder why ...
everyone left cos you stinked the place out
 
Neo
I'm here
 
@Neo hi, me too
 
Neo
@Greg hey, lets change the subject from toilet
how about javascript?
 
10:14 AM
that seems a bit predictable...
 
0
A: how to add textbox in table using javascript?

Tom GullenWow holy moly what's with all the JQuery answers. There are two ways of doing this: Appending item to the DOM This is probably the best way: var input = document.createElement("input"); input.type = "text"; container.appendChild(input); InnerHTML This is not such a good method, innerHTML...

why do people always give jquery answers
When it's not marked jquery
 
Neo
because if someone doesnt know enough javascript
their best bet is jquery
 
I've got a bunch of rollbacks I use to restore state (on the jstree plugin in particular). I want to just use a stack and push & pop from it to push new save states on and load them where neccesary.
When I've got a stack of states how do I manage the memory?
 
Neo
makes it simple to understand and write as well @TomGullen
I mean doesnt jQuery really simplify the way you write javaascript?
 
Jquery is harder to understand than plain Js
Not at all, Jquery for simple problems is overkill
 
Neo
10:16 AM
I was actually gonna start a conversation on the javascript parser and I was gonna explain it in jQuery
 
@Neo stop this jquery loving
 
Jquery makes JavaScript too abstract for beginners to understand the concepts behind JavaScript if they are learning programming.
 
Neo
@Raynos look all I'm saying is with jQuery you write less
 
Ok, select any element with a magical dollar sign and use function names you remember.... but what are you actually programming?
 
Neo
so you can talk about a certain issue with cutting all the details
yeah I agree... I was fortunate enough to learn javascript before any libraries were there
@Greg higher level languages actually allow you to write more complex things
you are thinking of todays website
these libraries are soon gonna take the desktop applications on the web
and I wouldn't wanna write that with something not "abstract"
 
10:19 AM
@TomGullen more importantly why did you necromancer it. it's from sep '10
 
I'm going for a reversal badge
 
@Neo I wouldn't ... but I'm just saying for people learning programming, jQuery confuses most people.
 
Neo
@Greg you have your point
but so do I
I guess there is not perfect solution
 
@Neo huh?
 
Thanks @TomGullen, now I lost 3 rep because of your question.
 
Neo
10:22 AM
I'm saying you can't have the best worlds for the pro js ninja and a beginner
 
@clem wat?
 
I had to downvote the jQuery answer
 
lol
 
I use jQuery only for AJAX now, because it's much simpler
and for someplugin
 
wtf is the widget answer
I've never seen that
tableWidget = new YK.TableFactory(3,5,false, false);
 
Neo
10:24 AM
there you go! I don't even remember anymore how to start a ajax connection from scratch
jQuery makes ajax as easy as hello world
 
@TomGullen I believe its a Yahoo thing
 
Neo
yeah I think its YUI @TomGullen
 
@Neo new XmlHttpRequest();
 
@Neo Actually, the annoying thing is AJAX request are different almost for each browser. =_=
 
Neo
yeah but then doesnt ie need something else
yeah but jQuery makes that universal
I used to have this javascript skeleton start to work for every browser back in the day
I do love jQuery
 
10:27 AM

jQuery

All things jQuery
 
Neo
@Greg are you kicking me out?
lol
 
yeah I'm a super moderator and banning you forever
 
Neo
look I'm here for Javascript. you guys started talking shit about jQuery
you want me to go sit by myself in the jQuery room
chat with myself
 
We use jQuery to avoid confidence testing.
 
I linked to the jQuery room because it's sadly empty, it'd be nice to get it alive
What type is undefined ?
 
Neo
10:32 AM
This chat is made with jQuery !
 
Cakes are made with eggs
 
Neo
undefined is a type
its not just a string
 
I'm not sure what that phrase means but it seems poingiant
 
@TomGullen pigs are made of bacon.
 
I went out in London and I think I peed on my shoe, now my shoe smells of pee, anyone got any tips to remove that smell? Jquery?
 
10:34 AM
@TomGullen $(shoe).piss(wash);
 
Neo
@TomGullen take your jQuery stuff to the JQuery room
your shoe and piss are not DOM elements
 
no they are local variables
 
@Greg Isn't it $('#shoe').wash('piss');?
 
@ClemDesm sorry, piss is my new event helper.
 
lolol
Quick question does anyone know a site that gives good quality free pictures to use for commercial websites
Photographic quality would be besy
best*
 
Neo
10:36 AM
london is not local
 
@Neo local is in context to the client, TomGullen
 
Neo
well it was undefined in my client I just gave out my syntax error
you want me to turn off javascript?
 
yeah that'll fix it
 
Neo
lol
you bastart LMFAO
am I banned?
hello?
 
hai
 
10:43 AM
you were for a moment, then I un-banned you
@NickCraver haven't seen you on here lately, how's your new house?
 
Neo
why would you do that, assuming you're telling the truth?
 
good :) lots of work!
 
your reputation is slowing down!
 
flickr.com/photos/nickcraver documents some of the progress, that new room just got drywalls this weekend, need to take some new pictures today
 
too much unpacking and not enough question answering!
@NickCraver cool I'll have a look
 
10:45 AM
hehe I'm busier these days, that's the SO work, not the move ;)
 
Neo
nice colors on the stairs
 
Nice house. I'm looking for one to buy right now
 
I dont know how ill ever be able to buy a house
 
But a house near the capital is too expensive (or maybe I'm too poor)
 
yeah depends on the area, varies wildly here it's not bad at all
 
10:47 AM
I'm still renting ...
 
the main room/everything connected gets painted in about 2 weeks I think, guess we need to pick a color
 
For a 45min train to the capital, we can buy... but 1h30 in train per day T-T
Meh, my request on meta won't succeed.
At least it gave me 100 rep
and a badge :/
 
Neo
Do you guys lose track of time when you code?
 
I dunno, what day is it?
 
-4
Q: 5K reputation loss in one day. How BIG is that?

Hansmukhyesterday i was on 8120 and just see my numbers at 3991 2128. Feel like crying and hate that too. is this the real reputation count logic of SO. I hate this. they dont even care to notify or else?? why they take or increase no when they know there is some thing wrong coz it hurts a lot in end whe...

I laughed at the crying comment
But then I realised
If I lost all my rep
I might cry as well
 
10:53 AM
Hi! :)
 
@Nyuszika7H good morning!
 
I'm 12 today! :)
 
Neo
12?
 
@Nyuszika7H Happy birthday!
 
Neo
you're 12 years old?
 
10:56 AM
@Neo Yep…
Asperger syndrome or Asperger's syndrome () is an autism spectrum disorder that is characterized by significant difficulties in social interaction, along with restricted and repetitive patterns of behavior and interests. It differs from other autism spectrum disorders by its relative preservation of linguistic and cognitive development. Although not required for diagnosis, physical clumsiness and atypical use of language are frequently reported. Asperger syndrome is named after the Austrian pediatrician Hans Asperger who, in 1944, described children in his practice who lacked nonverbal ...
 
@Nyuszika7H do you have Asperger syndrome?
 
@Greg yes
 
@Nyuszika7H is that why you are interested in programming so young?
 
@Greg Probably, yes. :)
 
heh well keep it up
 
11:00 AM
What sort of stuff do you like on computers?
 
@TomGullen Flash games (mostly platformer games), music, programming (HTML-CSS-JS, VBScript, MS-DOS), etc.
 
Nice :)
You should check out my brothers open source project, Scirra.com, it lets you make direct X 2d games really easilly
You might enjoy it
 
I started programming in DOS when I was 13, but wasn't very good for a few years
 
Neo
@Greg MS-DOS programming? basic?
 
I know only basic VBScript and MS-DOS.
 
Neo
11:03 AM
@Greg @Nyuszika7H I started programing Qbasic when I was 13 but I think some on stackoverflow at 12 is amazing
 
@Neo various languages, mainly DIV for making games and basic for moving robots
 
@Neo No I don't know BASIC, only VBScript and MS-DOS. :P
 
I learned to program games in DIV, which is now called Fenix
 
Neo
I just changed to Linux at some point where I had this idea that working on black box (microsoft technology) prevents me from being a better programmer
 
Fenix Project is the codename for a GNU project to create a free compiler for a scripting language derived from the one created by Hammer Technologies for the game development suite, DIV Games Studio. However, several features have been added which make it incompatible with most games programmed with DIV. Features Fenix is an interpreted language focused on 2D video game development. Its main feature, inherited from DIV, is the pseudo-parallel programming similar to Coroutines, i.e. it gives the developer the chance of programming different processes (enemies, characters, etc.) separately...
 
11:06 AM
I'm learning LOGO, too
 
Neo
MS-DOS, the terminal by microsoft?
I guess it used to be an operating system
 
@Neo that's what the acronym stands for
MS-D OS
 
Neo
whats the D?
 
disk
 
Neo
yeah I started with DOS, but why would some one at this day and age?
 
11:09 AM
DOS, short for "Disk Operating System", is an acronym for several closely related operating systems that dominated the IBM PC compatible market between 1981 and 1995, or until about 2000 if one includes the partially DOS-based Microsoft Windows versions 95, 98, and Millennium Edition. Related systems include MS-DOS, PC-DOS, DR-DOS, FreeDOS, PTS-DOS, ROM-DOS, JM-OS, and several others. In spite of the common usage, none of these systems were simply named "DOS" (a name given only to an unrelated IBM mainframe operating system in the 1960s). A number of unrelated, non-x86 microcomputer di...
 
@Neo the same reason someone would learn JavaScript over jQuery :)
 
I learned an important lesson today. never test your code in chrome. You wont notice those damn IE bottlenecks.
 
Neo
ok I mean MS-DOS
 
@Greg I've started with JavaScript, then I've discovered jQuery.
 
Neo
firefox is the best way to test for js,css and everything
it will work in safari 98%, chrome 90% and ie 70%
I came up with those numbers :D
 
11:13 AM
My code runs painfully slow in firefox but works fine in both chrome & ie8 I have no clue what I've done.
 
Chrome 10.0.634.0 dev. Acid3: 98%. Interesting. Chrome 8 canary got 100%.
 
@Nyuszika7H now discover _
 
@Raynos Underscore.js?
 
Neo
@Raynos could it be because of firefox extensions that parse javascript?
 
@Neo I dont know the 3rd party plugin method takes 40s instead of 0.5s
Theres a gigantic firefox only bottleneck here
were talking 2 orders of magnitude slower then both chrome & ie8
@Neo your right its a 3rd party extension. I think its firebug :(
 
Neo
11:34 AM
@Raynos yeah cause I had same issues once
 
cant believe firebug is bottlenecking my code :(
 
Neo
it could be a firebug extension
 
oh I bet its firequery :)
What proportion of firefox users have firebug open by default? Is it just me?
 
Neo
11:49 AM
m...I don't keep it open unless I wanna see something
 
12:06 PM
I found the real culprit javascript.options.strict in about:config
 
@Raynos
 
Neo
culprit means guilty or not?
 
Uncaught SyntaxError: Unexpected token (
Uncaught SyntaxError: Unexpected token <
Uncaught ReferenceError: jQuery is not defined
 
Neo
post your code @Nyuszika7H
 
@Neo Not my code.
51 mins ago, by Raynos
http://jsfiddle.net/Raynos/3c3mS/
 
Neo
12:21 PM
there is no jQuery in that
you are looking at an error from another page
@Raynos whats your favorite library?
 
> I'm so bad at regexp expressions..
lol
 
Neo
makes 2 of us
 
@Neo there is jQuery in that.
The issue was that flag in about:conflig. It triggered 1 warning for every time that function was called
@neo does node.js count? If not then _
 
Neo
no I said there was no refrence to the jQuery variable it was all $
what do you want to use this for?
you cant change it on the client
 
12:36 PM
@Neo javascript.options.strict is off by default. If a developer turns it on its his own fault. Of course javascript is going to be slow if its on
 
Neo
oh ok
you had it on
I get it
I never turn it on.
doesnt firebug show you strict errors
?
you're worried about cross-browser performance?
what OS do you have?
windows?
 
@Neo XP. It works fine. I had strict errors off in firebug
The issue just suprised me but its gone. I left the slow javascript down flag on in firefox :)
 
Neo
you mess around with about:config?
I don't even know 99% of the flags in about config
 
@Neo Most of their names aren't too hard to understand
And I do sometimes tweak just a few of them
 
Neo
do you create firefox plugins?
 
12:43 PM
No
 
Neo
nvm then
do you think its better to ajaxify things in smaller pieces and have more http requests for every separate module, or just load big chunks every time>
?
my concern is server load I guess
 
@Neo I shouldnt mess with about:config. This happens
 
Neo
I'm just new to using so much mysql table joins I don't know when it might become a bottleneck
 
@Neo overhead is overhead. doing sending 20 ajax request of 1kb is worse then 1 ajax request of 20kb
@Neo write it. profile it. If you find a bottleneck, optimise it.
 
Neo
I need to learn more about mysql internals.
 
12:53 PM
@Neo worry less. Use more stored procedures and profile them individually. If you notice they run slow then optimise them.
 
Neo
see thats the problem I don't have one stored procedure
I need to find a mysql expert to partner up with
tell me more about node.js
I've never worked with it
I don't understand what it has to do with js?
@Raynos
 
@Neo node.js is serverside javascript. Think of it as PHP+Apache running on the chrome V8
@Neo good luck finding an expert. I can recommend you a friend if you want.
 
Neo
1:13 PM
I still dont get it
so node.js only works on chrome V8?
ok I did a little research it's actually pretty cool
 
Hey everyone, I have a tiny favor to ask of you all. I wondered if you could visit this jsFiddle (in any browser, preferably IE) and let me know if it is all working. If you mouse over the box it should expand and if you mouse out it should cancel the animation and go back to its original position: fiddle.jshell.net/Wolfy87/4jUpv/show
 
hi Wolfy87.. I noticed something wrong with jsfiddle
 
Hey, whats that then?
 
I'm on chrome on winzozz.. it's like a freezing animation
 
@Neo node.js is a server. You run it like apache. you write serverside code like PHP. you start a webserver, users connect, the server runs javascript, the client runs javascript. Everything is lovely
 
1:19 PM
on the mouseout
 
Huh, so it just stops.
Or is all clicky.
 
no.. it's not stopping.. it's just slow
it's "handmade" or did you use a js framework?
 
I made the framework that it is running off
I think I know what is wrong though
 
oh ok
 
@Wolfy87 why does it have to be stopped manually? Does it make sense to not stop it manually? Kind of feels like the whole I have to put a break; at the end of all my cases because somewhere some-one decided it was useful.
 
1:21 PM
If it is a small amount left to animate it will still take 800ms so it will appear slow
 
Neo
@Wolfy87 works for me
 
And just because I just wrote that stop function, so I am testing it, I will make it work automatically when ever you animate an element
 
@Wolf87 : btw, it works correctly.. but here on my machine it's kinda slow
 
Hmm
It should take 800 ms to move any distance
 
ok
 
1:22 PM
So even if it is 1px it will take 800ms
As long as it does not flick left and right and catch fire, I am happy.
:]
 
yeah.. but here for example it take more or less 1 sec and a half
to complete the reverse animation
*it takes
 
Hmm, I see.
I need to put in some timers
There is a callback argument
Spark.animate(parameters, timeframe, callback)
Timeframe just defaults to 800ms
 
ok.. how do you manage the animation? by a linear function?
 
Nooo :) set timeout.
I did before, then I realized the document hangs.
 
that's why it can be slow :) ..if you want to check jQuery animate or mootools morphs.. it's very good the way they made animations
 
1:25 PM
I set all of the timeouts when you call the animate function and there is minimal code executed in each timeout so it should be fairly fast.
I am implementing timing to see how long it is taking now
 
ok.. btw the correct term about that kind of animation is "not smooth" :D
 
@Wolfy87 apart from as an intellectual excercise why would you re-write so much functionality that already exists in jQuery, mooTools, prototype, Ext etc.
 
@Raynos I think it's a good way to deep understand how those fw work .. and how to improve handmade code
and.. how they implement such a good stuff (jquery animate, mootools morph etc)
 
stewev hit the nail on the head, that's why I am doing it. And I am enjoying it.
*steweb
According to this, it is taking 802ms to complete
 
@steweb I agree. For fun or to learn its great, I was just wondering if he might be doing things the hard way for no reason
 
1:30 PM
yeah.. btw, it's not a matter of "ok, there's this FW that does tons of stuff".. if you think there's a framework and you want to understand WHY there's a framework, well, it's a very good exercise try to simulate what a FW does :)
@Ra
 
Good Morning|Afternoon|Evening|Night|Whatever
 
@Raynos
no prob :)
@Raynos ..problems with my keyboard :D ..well I've explained the reason :D
 
Well because I wrote it, naturally I use it now instead of the major ones. People won't see the point of using it because they did not put the effort into writing it :)
Although one of my friends loves it...
 
@Wolfy87: make an alert when it finishes the animation and let me try
 
I think that's slightly wrong but its a start at timing them.
 
1:33 PM
@ircmaxell Frabjous Day, ircmaxell!
 
yep, let me try it :)
 
Oh that's why I was getting like 400ms returned etc! Because that's how long I took before I moused out.
So I am pretty sure it is working fine.
 
yep
 
Well in FF anyway
 
avg = 802 in FF
 
1:34 PM
I would have thought Chrome would be faster.
Being a Google baby and all.
 
eheh.. wait I'm gonna test it on chrome and IE
 
That's another thing that came out of writing this library, I now know just how bad IE is.
 
eheh
IE is the worst, is the evil :D
 
So many compatibility issues >_> but I have fixed pretty much all the ones I have come across.
 
Frabjous?
that's a new one...
 
1:35 PM
?
 
@ircmaxell I'm trying to increase the length of your greeting
 
lol, well, it worked
 
Yeah.. and I think you can learn a LOT of stuff by facing against IE problems
 
YYep
 
803 chrome
 
1:37 PM
I have IE 7 and 8 running through wine on my mac (for testing of course!) but the JS parser does not work in wine for some reason.
That 2 - 3 ms delay must be the function executing and setting up the timeouts.
 
oh ok
 
It sets up a lot of them! :3
 
:)
yep
 
It takes 1 - 3 ms to set up so the end animation is better
Getting opacity to animate was a * but I did it in the end :D
Try it.
 
yep :) ..a fadeIn() fadeOut() ..remember that filter:alpha(opacity=0...100) on IE :D
 
1:39 PM
Because you have to animate opacity, MozOpacity, KhtmlOpacity and IE's filter = alpha(opacity= thing
 
yeah.. right :D
 
Oh yeah, I know :) it works in that
You just use .5 or whatever and it * by 100 for IE
 
@Wolfy87 it doesn't work when I run IE8 in quirks mode :)
 
yep.. now I g2g.. bye @Wolfky and @Raynos :)
 
Oh really? I have never tried that.
Bye! Nice talking to you :D
 
1:41 PM
Nice for me too ;) have a nice day
 
As a test, try jQuery's animate function in quirks mode. I wonder if they overcame it.
jQuery and it's fancy development team, just me on Spark xD
Forever alone...
Looks like it happens to jQuery too
When in quirks mode all the IE values are 0
Which messes with everything.
I also need to add colour animation, which will be...interesting?
So it was working in IE then?
Hmm, when another animation is applied to an element, should I cancel all previous animations or just add them on top?
So then you could animate the width and further down the code, animate the height.
 
@Wolfy87 that particular snippit worked. In general things break beyond repair in IE4 for the macintosh. I'm afraid you have to support it though
 
Yep, sweet
I just uploaded a new version to the dev branch (the one the fiddle is using) that runs stop by default
So now this one will work, no need to run stop: jsfiddle.net/Wolfy87/4jUpv/2
Now I have to write up some docs on the stop and data functions.
 
1:59 PM
@Wolfy87 I should get back to writing my framework.
 
00:00 - 14:0014:00 - 21:00

« first day (94 days earlier)      last day (4846 days later) »