« first day (57 days earlier)      last day (4907 days later) » 
00:00 - 17:0017:00 - 00:00

12:00 AM
query string or post body of an AJAX request? submit a form?
 
@DanGrossman: post body of an ajax request
 
those were 3 ways to send data from jQuery to PHP
 
Did the link help?
 
$.post(url, data)
the data will be in $_POST on the PHP side
 
12:05 AM
hmm
I'm dependent on sending via URL when I use post, right?
 
There is no way to send data to a web server without a URL...
 
yeah, I thought I knew
some wrong intel here, but thanks :)
 
an HTTP request looks like :

GET|POST /request_uri HTTP/1.1
Host: www.example.com
[optional headers, such as user-agent and referrer]

POST body
 
yes, correct
 
jquery.malsup.com/form is worth a look too
 
12:08 AM
but what is the main difference between sending data post and get?
 
POST you send data as the body of the request (after the headers), GET you send it as part of the request URI
GET /request_uri?var1=val1&var2=val2&var3=val3 HTTP/1.1
 
and post?
 
POST /request_uri HTTP/1.1
Host: www.example.com

var1=val1&var2=val2&var3=val3
 
okay, excellent
just what I needed
 
there are limits to the length of URLs a web server will parse, and you can't send binary data through a URL, but you can in the request body (e.g. file uploads)
 
12:13 AM
there is NO OTHER way to send data without an URL, right?
 
Not through a web server... web servers only talk over HTTP... but if you can write your own server then you can talk to it some other way through a socket
just what are you trying to do?!
 
via http yeah
right now I'm just arguing with a guy
 
just point him to the RFC for HTTP and tell him to piss off =p
 
hehe, thanks
 
12:22 AM
a isArray check that actaully works in nodejs
Does anyone have one?
 
npm install jquery
jquery.isarray ?
(there has been a node-jquery since september)
 
If you use Twitter, twitter.com/jamescarr is someone I know who knows all about nodejs
 
Underscore.js provides isArray as well
 
@DanGrossman I hate you :P
 
:| why no good?
 
12:30 AM
Object.prototype.toString.call(array) != "[object Array]" was the correct answer
Dont advice someone to install jquery on node and use that :\ seems like a horrible answer
 
why?
 
Oh though using underscore.js is actaully a reasonable recommendation
jquery is a dom browser thing. im not going to clutter my server side code with jquery
 
it doesn't clutter anything
Since node.js does not create new threads for each request, you can use as many libraries as you want without any per-request overhead...
you only increase the footprint of the server by a few kilobytes at most
 
I guess so.
I guess the word im looking for is polluting my node code with jquery :p
 
:rolls eyes:
 
12:32 AM
"Ew jquery in my node.js"
 
you could just go to their github project and read their isArray function to see how it's implemented, since it works in V8
 
I did but misread it
 
    type: function( obj ) {
      return obj == null ?
        String( obj ) :
        class2type[ toString.call(obj) ] || "object";
    },
so they use toString.call as well
 
obj.toString is different from Object.prototype.toString. Something overwrite that on toString
 
12:51 AM
I have to use underscore for a project in the near future
all my js code so far is OO
 
 
9 hours later…
10:20 AM
dabu
 
@IvoWetzel Ja!
 
"Hey are there any other frameworks like Node.js that expose the even loop in such a manner?"
> "Check out netty for Java"
...last time I checked Java was a trillion years away from having closures, and only a few weeks away of getting split up into even more versions...
 
@IvoWetzel Where did you ask that?
 
@YiJiang I didn't ask it
0
Q: Other language (frameworks) where the event loop is exposed as a language construct?

George JemptyAt http://nodejs.org/#about it says the following: "Node is similar in design to and influenced by systems like Ruby's Event Machine or Python's Twisted. Node takes the event model a bit further—it presents the event loop as a language construct instead of as a library." Are the...

IMO, there's nothing like Node.js atm
 
node.js is still a pain
I tried to build something useful with it, wrote a couple modules, but ended up sticking with a normal web server for now
it needs some maturity time, the API was changing while I was coding against it
 
10:31 AM
@DanGrossman Hm, I had no problem so far, yes it changes quickly but ryan is working on that 2.5 has a stable API, 3.x is moving quickly atm
 
and the mongodb modules were all pretty horrible :(
 
I've only checked out the CouchDB ones, and they were really bad. So yea it needs some time, but RoR wasn't build over night either ;)
 
I used github and npm for the first time to publish one of my node modules, that was neat. github.com/dangrossman/node-browscap
 
"....returns an associative array" - That's -50 programmer points.
 
lol
what should I call it in js
 
10:37 AM
Object
 
that's not descriptive
 
Associative arrays = ordered, Objects = not ordered
@DanGrossman Well Object is a Key/Value thingy
 
"returns an Object" doesn't convey that it's giving you non-numeric key->value mappings
READMEs are for humans after all
 
user492203
Hi!
 
"returns an object of properties and abilities of that browser." Sounds very clear to me as a JS programmer
2
 
10:39 AM
I suppose "map" might also work, but it's called "object" in JavaScript so...
 
Object != Instance in JS, so Object is the best term
 
problem is almost everything is called "object" in javascript
 
user492203
@YiJiang Your loader in Sandbox is fake, and won't load anything! :P
 
user492203
 
:waits for it to load:
 
10:40 AM
@Nyuszika7H I was just looking for the URL of the loading gif... /facepalm
 
!kitten wob
@YiJiang Your wob failed again
 
@IvoWetzel Who should we blame?
!kitten wob
 
It's Nick Cravers fault!
 
The usual one huh?
 
I'm pretty upset with Nick. That loading image keeps distracting me.
 
user492203
10:42 AM
 
user492203
Loading (99%) Remaining time: ∞
 
:cries:
 
So Nick was in charge of designing the Windows algorithm that calculates the remaining time to copy?
 
NOOOO!!!
1
Q: Code improvement

mariaIn what ways can the following code be improved? public static final Integer multiply(Integer x, Integer y) { return (y == 0) ? 0 : multiply(x, y - 1) + x; } One point is that it won't work for y<0 and that multiply won't work for doubles and long. Any other ideas?

 
Recursive multiply?
Awesome!
And of course auto boxing is the best thing ever invented!...
 
10:48 AM
@IvoWetzel Yaay, autoboxing!
 
@CodingKitten What do you think of auto boxing?
 
@IvoWetzel JavaScript taking out its brain? east on Richards why? chat is no form.
 
yea! just what I though about it...
 
@CodingKitten Oh, you're back...
 
@DanGrossman too much spam potential when you think about it
 
10:49 AM
!
that's by far the best response yet
 
heh
 
@CodingKitten Stop just repeating rchern
 
@DanGrossman why don't you do you post one of these?
 
@CodingKitten I can gibberish make one of these spam potential too
 
@DanGrossman Now where is my most common task of the markdown for doing that are completely flat underneath, which cups seldom are
 
10:56 AM
@CodingKitten Well that's a regression, isn't it
 
@YiJiang brought up your profile :)
 
I need to build in that info bot functionality
 
@IvoWetzel Yes, that would be extremely useful
 
it should listen for questions and then check the responses to that
 
@CodingKitten My profile! My, that's flattering
 
10:57 AM
@YiJiang still tab. tab. tab. What, indentation? tab cannon... sounds interesting. we're getting javascript chat overspill why did I pay the cover to get in here?! I demand a refund! where is my coffee? need hosting for it though
 
@CodingKitten whaaat?
 
wtf
that was some kind of angry drunken rant
 
@YiJiang I think that he's making jokes about you
 
any good ideas on figuring out question/answer relationship?
 
at least in the first half
 
11:00 AM
@IvoWetzel The most common question here: Can I ask a question here?
 
@IvoWetzel @user, :1234567, question marks?
 
@CodingKitten I am totally afraid of you.
 
@DanGrossman (and it doesn't respond to replies
 
@IvoWetzel and answer IDs to make deleting answers possible
@CodingKitten that's mean, he even responded to you!
 
user492203
<script>
  function checkJS() {
    try {
      JavaScript;
    } catch(err) {
      var JavaScript;
    }
    if (!JavaScript) {
      alert('Your browser does not support JavaScript.');
    } else {
      JavaScript = null;
      checkJS();
    }
  }

  // jQuery
  $('#checkJS').click(checkJS);
</script>

<button id='checkJS'>Check JavaScript support</button>
 
11:01 AM
So "may|can ... ask ... question ... ?" = asktoask
 
@Nyuszika7H Is that a bad joke?
 
@CodingKitten ... any thought about that?
 
@IvoWetzel aaargh we're getting javascript chat
2
 
@Nyuszika7H whaat? I hope that you're kidding!
 
Yes indeed
@DanGrossman You first need to disable JavaScript to check for JavaScript.
 
11:03 AM
@Nyuszika7H <noscript>, please, do yourself a favor
 
user492203
Yes I'm just kidding, I'm not that stupid! :P I know I can't check JavaScript support using JavaScript!
 
@CodingKitten OMG!
 
I have weird black lines under one of my nails. The interwebs say this either means I'm about to experience complete heart failure. Or I might have just hit my nail on something.
 
user492203
<noscript>
  <p>Your browser supports JavaScript.</p>
</noscript>
 
user492203
If I add this at the end, it will be even worse! :D
 
11:05 AM
What's kinda scary is that Googlebot executes all JavaScript now
 
@DanGrossman did you check isitnormal.com? (JUST KIDDING!)
 
@IvoWetzel What changes did you made to the Dissociated press algo? I'm pretty sure there's no way the script could've generated the "aaargh" message... I think
 
@YiJiang Uh, nothing... I just throw in the messages
Maybe it's becoming skynet?
 
Weird... the source of that message is obviously this one:
in The SO Tavern (General), 2 days ago, by oracle certified professional
aaargh we're getting javascript chat overspill
But the last word is cut off, which I'm pretty sure wasn't part of the algo
 
@YiJiang it creates many sentences that seem much shorter than your script generates
@CodingKitten Isn't that right?
 
11:08 AM
@DanGrossman oh I understand now loads fine for In Real Life …)
 
@DanGrossman There's a min length for the messages generated by the script, around 5 words I think
 
@CodingKitten Sometimes you seem to just repeat one thing, but maybe it's just a really short combination...
 
@DanGrossman What do you hosting it on now? Your personal details there :P
 
@CodingKitten Don't do that! It's bad practice to host your stuff on erm... your personal details
@CodingKitten Right...
 
@YiJiang Hi guys - small world indeed
 
11:11 AM
@IvoWetzel I think there's a problem with the script
 
@YiJiang Really? I thought is was just buggy, do you consider that a problem?
can|may..[you|one|I|they]...ask...something|question..?
what..is...[thing]..?
who...is...[thing]..?
what...is...[thing]..?
[how] [can|possible|come]...[you|one|I|they]...[thing]...?
you think those are good patterns?
 
@IvoWetzel Yeah, I thought I wrote in a check that reruns the script when the output was a not a composite of the more than one message
 
@YiJiang Well that's still in there, hm
 
@IvoWetzel Hmm... your right. That message is a composite. I thought some of the recent messages were too good
 
@CodingKitten :pets:
 
11:17 AM
@DanGrossman There's a min rep requirement to it, which submits a Cliff Richard CD when we did Secret Santa
 
:( I don't have enough rep to pet the kitten
 
@CodingKitten You did..... Secret Santa?...
 
@IvoWetzel is that a laugh :)
 
@thejh It's getting ridiculous in the comments :P
 
@CodingKitten How do you manage to give relevant replies?
 
11:21 AM
@DanGrossman too much spam potential chat overspill
 
@IvoWetzel umm... are you sure that the answers are unrelated to the questions?
 
@CodingKitten How do you manage those replies?
 
@YiJiang Well you hear that? YiJiang uses tabs!!! I really enjoy this version, I'm entirely not quite programming related question, but can't remember the name of :)
 
hm so I need to recognize questions, then check the answers
rate them somehow...
and then on a new question grab the best matching and highest rated answer
 
@thejh Yes, of course. As @IvoWetzel has mentioned, the script uses the whole chat transcript as input, so it's entirely coincidental that the replies are relevant
 
11:25 AM
Anyone has some unicorn dust left over for the rating algo? :P
 
@CodingKitten is a coincidence engine
 
@DanGrossman gonna bit quiet, isn't it? code blocks etc -.- re-init the cache.. FAIL: Looks like "topic starter" was too lazy to switch layout and write title of the questions page.
 
@IvoWetzel I think it's best to stick to something simple, like what infobot does
 
@YiJiang to easy!!!! ;) Gnah, then people need to ask the kitten directly hm
 
@IvoWetzel I think the Kitten does reply more successfully to @-mention s then explicit replies
 
11:27 AM
@CodingKitten Ready for the Turing Test?
 
@DanGrossman Those only works for cups that it shows me four spaces
 
@CodingKitten Not likely you'll pass
 
@YiJiang Weird... it should work for array keys.
 
@YiJiang Well I just gonna try some stuff out with the question recognition first
I need to recognize questions anyway, and then filter out the actual thing that has been asked hm, I have some ideas on that
if you like to, spam some simple (yet programming/chat related questions in the sandbox) so I can throw them into the tests
 
@IvoWetzel How? Using a specific command? Or @CodingKitten
 
11:34 AM
just post them in
I need to work out a regex pattern first...
 
11:52 AM
@CodingKitten Liven up the chatroom with your quips!
 
@YiJiang because I didn't filter them out :P
 
@CodingKitten Sure!
 
@YiJiang Why do that in the way it's used there constitutes abuse, and it set null if there
 
@CodingKitten What do you think about Java?
 
@YiJiang Those only works for cups that he became a trillion times smarter.
 
11:53 AM
@CodingKitten He said Java; who did you kill?
 
@DanGrossman Those tab. tab. tab. What, indentation? tab only works for cups that are completely flat underneath, which cups seldom are
 
@CodingKitten Always with the tabs and the cups that aren't flat...
 
@DanGrossman ok so you meant IRC and xHTML.
 
@CodingKitten No, Java...
 
@DanGrossman Odd... StackOverflow is always good for SO rep
 
11:54 AM
@IvoWetzel Can you pinpoint where these 'cup' conversation are coming from?
Found it:
in The SO Tavern (General), yesterday, by Patrick
@SundayIronfoot Those only works for cups that are completely flat underneath, which cups seldom are
@CodingKitten Why do you like cups so much?
 
@YiJiang It seems like it links the correct profiles
 
@CodingKitten cups link profiles?
 
@CodingKitten Why is talking to you so much more fun than watching TV?
 
@YiJiang What triggered the WOB and what if a set in without paying, why do you ignore me
 
better spam in the sandbox, or rchern will start complaining again :P
 
11:59 AM
@IvoWetzel Meh, these really do liven up my day, and if a really good one comes in...
@CodingKitten What do you think of HTML5?
 
@YiJiang Aw it does :) folks man, why do we still live in a break SO again, it got too
 
@CodingKitten Hmm... that last one has fallen below standards
 
@YiJiang the SO-chat open source? logging your profile
 
@CodingKitten Come on, you can do better than that
 
@YiJiang Ivo it links the correct profiles got the inspiration for that from there :P
 
12:08 PM
@IvoWetzel what does that mean? Have you done it?
May I ask a question?
 
12:58 PM
I love it, down vote for no obvious reason and no comment
 
@IvoWetzel how do I go about simulating a websocket client with node?
 
use a socket from the net module
then read the spec
then wait for it to change and re-implement everything again
 
net module rather then the http.client ?
 
@Raynos Well there's hardly any HTTP on the client, all you need to do is to send the upgrade request and in case of -76 the challenge
 
I see. so I might aswell just make a net.stream ?
 
1:08 PM
should work
I only made a client for AIR once
about 100 lines, although that was the old -75 protocol
btw: you see any reason to down vote this?
0
A: Other language (frameworks) where the event loop is exposed as a language construct?

Ivo WetzelTo be honest, I don't think there is something that's comparable to Node.js at the moment. Why? Well basically because of the fact that JavaScript was single threaded from the start off, this made the language evolve in what it is today, a language that's perfectly fit for asynchronous programmi...

 
They downvoted it ;_;
 
"...exposed as a language construct?" - That.. uh leaves out anything besides JS? I mean come on, Java? It doesn't even have closures..
 
fanboyism. Thats the only reason. "Down talking my Event machine! Downvote!"
 
I mean, yes twisted is nice, but it's not comparable to Node.js
 
nothing is really
@IvoWetzel is node.js completely single threaded
Is it worth it to manually create child proccesses to do multi threading? Or should I rather split tasks between multiple node.js programs?
 
1:16 PM
@Raynos On the JS side yes, of course it has a pool in the background which takes care of the IO,
 
is it worth while to spawn child proccesses for scalability
 
@Raynos What do you want to do? If you need scalability, put something infront of multiple node.js processes
 
thats probably what I should do :)
 
don't put yourself into the horrible world of multithreading
especially when the language has no constructs for it
 
Ugh that spec is a pain to read. Ill just shoot off a SO question
 
1:23 PM
go ahead, but keep in mind that the thing will change pretty soon anyways
 
its ok
someone will update the websocket server :P
either you or someone else or ill use Socket.IO
 
hm maybe I can make my Air stuff work with Node.js
 
@CodingKitten Make my day!
 
@YiJiang i can't find it in morning :)
 
@IvoWetzel over there in the sandbox is someone who doesn't like kittens :(
 
1:34 PM
My god! Rage. my mouse keeps breaking. @IvoWetzel add a little code to your ws.js server that allows me to shut it down would ya?
 
1:47 PM
1
Q: How to write a websocket client

RaynosI'm trying to unit test my websocket on node.js and want to mock out a websocket client. I could create a html file that just connects to my server but then I can't run a single test on the server. How would I go about (using either http.Client or net.Stream) to create a websocket client and hav...

I'll probably add a bounty if I dont get an answer in the future :)
 
working on it :P
 
@IvoWetzel also seriously. If you can let me shut down your ws.js elegantly without Ctrl+c
 
uh, just close all connections and then server.close();
 
@IvoWetzel Can I suggest you include the "When asking JavaScript questions" part from the js tag wiki?
 
@YiJiang Yeah I could do that
 
user492203
1:54 PM
Hi, all!
 
user492203
Is there any way to close a modal dialog box (alert, confirm, prompt) using JS?
 
@Nyuszika7H No, I don't think there's any way to do that
 
@Nyuszika7H No, but you could overwrite alert and check the string before passing it on
 
user492203
Everyone says use jQuery UI dialogs, but what a shame, jsFiddle does not include any theme for it, so these dialogs doesn't actually look like dialogs!
 
user492203
Is there any way to include the jQuery UI lightness theme (or others) on jsFiddle with importing one or two files?
 
2:01 PM
@Nyuszika7H for what purpose do you want it?
 
user492203
@thejh Which one, the dialog or the theme?
 
user492203
@YiJiang thx
 
user492203
@YiJiang nice :)
 
user492203
@YiJiang one problem: the dialog seems to be a bit too large
 
2:07 PM
@Nyuszika7H Yeah, one of the oddities. Try setting the font size on the body or the dialog element to 12 or 14px
 
user492203
@YiJiang Thanks! Yep, it's jsFiddle's fault.
 
2:21 PM
0
Q: jQuery live() not showing text cursor in Firefox

greenieI'm using the jQuery live() function to change the border colour of form text inputs to give users a better indication of what element they are currently typing in. It's easier for me to use live() over bind() as there are certain instances where new form inputs are inserted into the page dynamic...

It's a little weirder than it seems. See: jsfiddle.net/yijiang/sFeaG
 
Sounds like the cursor gets added on the bubble
 
user492203
@YiJiang Wouldn't be it easier to use the CSS rule outline: 2px solid blue; or something like that?
 
@Nyuszika7H Erm... that's not entirely relevant here isn't it?
 
@Raynos I have a working 75 version :P
 
@IvoWetzel 75 is your AIR one isnt it
 
2:25 PM
@Raynos No, I've taken the server code and made it into a client
 
I need to match whatever new WebSocket in the chrome browser does ;)
I presume it creates a v76 connection
 
well the only difference is the header
 
thats cool :)
 
and since you're using my ws thingy, that still supports v75
although I found a bug in it xD
 
user492203
How can I remove specified elements from the document with pure JS?
 
2:27 PM
oh no
that's just my orbit thingy
 
I thought your ws thing is 76 :p
im using the nodegame one
 
It's both
 
Fair enough
ehm. I would like a single websocket.js file I can build ontop of without making minor edits to it
Should I go rely on someonelse's code?
 
well the thing I have is a single file
nice thing is you can pass an encoder/decoder to it
 var test = new WebSocket('localhost', 28785, bison.encode, bison.decode);
 
@IvoWetzel Ahem, remember to use the correct markup to avoid the code polluting the input for the bot
In the same vain, we should all use full, grammatically correct sentences :P
 
2:32 PM
Lol grammr 4 loserz
Hai bot. Tis is teh proper engl1sh yes
@CodingKitten u speak l33t ?
 
@Raynos Hi guys - I've seen community wiki questions and then check the best option... but costs £30 to ship to markup keyboard keys
 
:)
 
@Raynos Stop being a bad influence to Kitten!
 
@YiJiang I presume the kitten has some kind of learning algorithm running on our inputs?
 
@Raynos No, it's totally random. Haven't you seen the references to the Dissociated Press algo we've made here?
 
2:34 PM
nope
 
> The algorithm starts by printing any N consecutive words (or letters) in the text. Then at every step it searches for any random occurrence in the original text of the last N words (or letters) already printed and then prints the next word or letter.
I've made some modification so that it works for short chat messages, but basically that's it
 
@Raynos Check out my epic wall of code
 
@IvoWetzel "read the spec" >:(
 
@Raynos That's what I did after all :P
 
@IvoWetzel should I use your orbit game ws with it? I presume it works the same (but better!) then the nodegame one
 
2:38 PM
@Raynos Uh, works the same, but has some extra dependencies...
(and a bug I just fixed)
 
@IvoWetzel ill just steal the entire websocket :P
@IvoWetzel hashlist grrr
 
@YiJiang Hm, any ideas what I should put in the "**When asking about Node.js questions, you should:**" list?
 
@IvoWetzel There's a website where you can host your node.js code and run it, no?
Also mention the documentation
 
@YiJiang Yea, there's a site, but I can't remember the name atm
 
@IvoWetzel haslist.eachEach thats a stupid name
 
2:44 PM
well it does for(x = 0 in data) {for(y = x +1 in data) {}}
 
I see.
@IvoWetzel could you unbolt the websocket stuff from your game. So I dont have to do it and I can just point at it. It seems a pain to create a minor alteration and put "Taken from ivowetzel but unbolted from his work"
 
@Raynos I can do that, give me an hour or so, currently writing that list for the tag wiki
 
thats cool
Whilst your doing that give the Server a .close function aswell :P
 
**When asking questions about Node.js, you should:**

1. Isolate the problem and reproduce it with as little code as possible.
2. Make sure to check the official api docs before posting.
3. If the question has nothing do with anything Node.js specific, please ask it as a [tag:javascript] question instead.
4. Mention which version of Node.js you are using, when in doubt `node -v` gives you the answer.
 
2:48 PM
But in this way you are given credit for all the work and it works as a standalone thing. As a bonus I'll write a small tutorial on how to use it :P
@IvoWetzel mention jsapp.us. "This is my problem <jsapp.us link>" would be great. Its nice when people just link you a jsfiddle
 
user492203
 
Someone edit to mention recent web browser dropped support
 
3:04 PM
US Government, IDIOTS
In Short: If your software has a security bug, you'll have to pay up to $100k for each day that bug is not fixed
So in the end, everyone uses the software from one company that can pay this BS, and that makes it even worse...
 
user492203
3:19 PM
Is there any way to disable the close button of jQuery UI dialogs? I can't see an option for that at jQuery UI's official site.
 
user492203
@Raynos No, but it's nice! :)
 
user492203
var that = $(this);
 
@Nyuszika7H yes ?
 
3:42 PM
0
Q: make menu items "clickable" verses "hover over"

MGHi, i'm using the following code to display a navigation menu at the top of my website. My problem is that the menu is set to reveal second level menu item onhoverover. This can be difficult for users because the items will disappear when the user moves their mouse off the item. Therefore, I'd ...

Urg, htc scripts (runs a million miles away)
 
oh... my... almighty kitten overlord...
@CodingKitten Any comments on that?
 
@IvoWetzel Really? I thought some of their head
 
@CodingKitten You want to rip their heads off?
 
@IvoWetzel in The SO-chat open source?
 
"the names did clash" :)
 
3:45 PM
nothings better than quick and incomprehensible commit comments :P
 
this is an interesing chat. every post has a permalink.
 
4:00 PM
@IvoWetzel Did you unbolt it? :)
 
user492203
4:51 PM
Hi!
 
user492203
1 hour ago, by Raynos
@Nyuszika7H yes ?
 
user492203
@Raynos I meant I haven't seen it before you linked it. But tried it after that, and it's nice.
 
@Nyuszika7H I meant var that = $(this) what about it?
 
user492203
@Raynos If I use it inside, for example, a jQuery each loop, and place that piece of code at the beginning of the loop, you can use that.hide() instead of $(this).hide() later in that loop. Only -3 chars, probably that was just a silly idea. But if you use $(this) very much times in a loop, for example let's say 1000 times, you can save almost 3000 characters.
 
What about var descriptiveObjectName = $(this) in your .each loop
 
00:00 - 17:0017:00 - 00:00

« first day (57 days earlier)      last day (4907 days later) »