« first day (418 days earlier)      last day (4524 days later) » 

4:01 PM
Anyone help me remember what the music at 27:10 is in this? soundcloud.com/revolvr/revolvr-the-chamber-dec-2011 I think it's Mozart but I can't remember.
It might be carl orff. =/
Deffinately carl orff.
 
4:13 PM
 
@Zirak despite being so low my company still gets a significant revenue from ie6 users :(
 
Then you should tell them they suck
 
wtf usage went up last month
@Zirak we do. We're the 6th logo on that page :) I got to implement it
We've also stopped fixing css issues for IE6, the bare requirement is that people need to be able to purchase a file, that's more or less it.
 
Mobile browsers have a higher global marketshare than IE6.
 
4:36 PM
@rlemon json2 is obsolete unless you care about IE7. It always was
FFFFFFFFFFFFFFFFFFFFFFF
Safari version numbers maek me rage
 
So random?
 
Yes
like I can understand 5xx.xx.xx
But 7xxx and 6xxx that's rage
Turns out 6xxx is 5.0.x
and 7xxx is 5.1.x
What is Mozilla Compatible Agent 5.0
Aha google bot
@AndyE by gracefully degrade do you mean wrap all script and style blocks in <if IE >8 >
 
@Raynos Apple's internal version numbers are basically all about branching, etc
@Raynos And don't expect UA strings to make sense, they often give in to stupid things for UA sniffing.
 
Am I the only person who rages @ ie7 < ie6
My main problem is theie8countdown.com it needs to go under 10% in a year
 
I rage at IE8 like crazy
and winXP.. because as long as people have that and us an MS browser they are stuck with 8.
 
4:58 PM
what files are needed for jquery autocomplete besides:
jquery.autocomplete.css
jquery-ui-1.8.2.custom.min.js
jquery.ajaxQueue.js
jquery.bgiframe.min.js
thickbox-compressed.js
jquery.autocomplete.pack.js
and the two gif files
 
@rlemon What the unicorn userscript all about?
 
@Raynos:
according to theie6.countdown.com, 8.3% of the world uses IE 6, with China having 27.9%
 
Thanks for telling me thinks I already know
 
@tehdoommarine HOLY CRAP THAT IS FAR TOO MANY FILES
And please tell me that jquery.autocomplete.pack.js isn't using Dean Edwards' Packer
 
any one know about comet ?
 
5:12 PM
I briefly looked into it
 
having a question about long polling ?
sorry i've question abt it
 
I'll know if I can answer it once you ask it
 
i am making a chatting system in my website, i have chatting system in push and pull manner ( which data is refreshed in circularly) but want to have it in long polling way,
any light (consuming low bandwidth) framework for php comet programming for long polling ?
which can be used in shared hosting. is there any jquery plugin for doing the same ... ?
 
@BhaveshGangani use node.js \o/
and socket.io \o/
 
will it work on shared hosting ?
 
5:16 PM
147
Q: Simple "Long Polling" example code?

dbrI can find lots of information on how Long Polling works (For example, this, and this), but no simple examples of how to implement this in code. All I can find is cometd, which relies on the Dojo JS framework, and a fairly complex server system.. Basically, how would I use Apache to serve the r...

 
@Raynos Why are you so in love with node? :P
 
@gsnedders because node is the correct tool for web based real time
@gsnedders y u hatin on ma node
 
will it work on shared hosting ?
 
@BhaveshGangani depends
It will work on some shared hosting :D
 
5:17 PM
It wont work on generic cheapo apache/php/mysql box
 
give me some useful links about it
l will be thankful to u
 
what do you want ?
wait let me give you something good
 
2
Q: Hiding Javascript When Building a Widget

MuratI am building a web widget which will be very easy to integrate. Say http://www.bicycleseller.com/ wants to integrate my widget on his web page. All he has to do is copy and paste the following to the head section of his page: <script src="http://www.widgetprovider.com/widget.js" type="text/j...

 
ok
you are welcomed to give anything that can help me
i asked will it work on shared hosting ?
 
Depends which hosting
some yes. most no.
Like I said, it wont work on generic cheap LAMP stacks
 
5:23 PM
that is only reason ?
for no
and how i can install node.js in server ? only ftp or some server commands
i have shared hosting
 
if you have shared hosting, you should forget nodejs
I tried this, even with ssh access
but didn't worked out good
 
then anyother ?
 
@BhaveshGangani you install node from the source
As long as you have sudo access you can do it
 
from source ? how ?
 
I have a sshvm linux box for this
All you need is unix and ssh sudo access
 
5:27 PM
will it work on shared hosting
 
well if you don't know how to install node, means you don't have experience in it, meaning it's kinda too soon for deciding about production
 
and sorry i have listtle knowledge about linux
*little
 
It may work, but wouldn't come out good enough..
 
It depends on the shared hosting
I use sshvm.com
Works like a charm
 
how i know whether it will work or not
 
5:29 PM
@BhaveshGangani try it?
 
wht to try ?
 
@Raynos , brick wall... you are smashing your head against it
 
@Esailija I know
but most of the time i either ignore them noobs or tell them to gtfo
Sometimes I feel nice
 
I'm glad you feel nice sometimes
 
@Raynos how did u find this! is it srsly $2 a month?
 
5:32 PM
@alFReDNSH I run the $7 a month box
its really easy, its just a unix os of choice and ssh access, thats it
I presume the reason its so cheap is because the support service is "you have ssh. Fix your own problems"
@BhaveshGangani you sound like your programming by coincidence you may want to sit down and learn things like linux,h ttp, etc
 
ohhh noobs ... ?
 
As long as we have Ubuntu LTS... don't worry about that!
 
@alFReDNSH yeah it has 10.04 LTS I think
 
i dont have root access means doent have dedicated server
how i can ?
 
5:37 PM
if you dont have sudo access then you cant do much
You can implement comet on PHP if you want
 
how can i ?
 
Wait what PHP socket.io ?
 
I think we have socket.io for php
 
@ValRedchenko it wasn't intended as a serious comment, but nm :-)
1
Q: Is using multiple replaces in a JS function 'good' practice?

JM4I have an area of my site which allows a user to enter a custom URL. The rules of the URL are that it must be alphanumeric with the exception of the hyphen character. If a hyphen is used, it cannot be successive and cannot start (or end) the string. I use the following function to achieve this: ...

 
no, we don't have for PHP!
 
5:39 PM
^ is it just me or does the OP come across as very ungrateful for the answers and comments?
 
@AndyE haters gonna hate
 
what if simply i just request from ajax with some timeout and the server php file will responce if it have data else code will stays in while loop
 
@BhaveshGangani php websockets
 
ok
ha ha ha i know about it "let me google for you'
if i not googled then there is not any reason to come to u
 
and there is async engine for PHP
I think that's what you need
 
5:44 PM
@BhaveshGangani anyway, why are you here rather then in php ?

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
 
Though I'm not sure u can implement that in cheap lamps
 
We don't know what a solid PHP based long polling server looks like. Go ask them
 
@Raynos that what was exactly thinking!
 
@Raynos I just can't understand the question if none of the current answers are good enough
 
Well I think he better go to IRC
 
5:45 PM
ohhh sorry i'm in javascript
extremely sorry
 
@AndyE hates gonna hate
 
wrong window
 
@BhaveshGangani ;_; for srs?
Did the big "JavaScript" in the top right not make it clear enough?
What about the "JavaScript" in the title?
 
GTFO!!!
 
Maybe "Javascript" in the url
 
5:46 PM
seriously!
 
noupt my browser is rightly justified
and another window in in left justified
so made the mistake
 
1 message moved to PHP
 
ohk
thanks
n sorry for disturbing u
 
5:59 PM
1
A: Any performance benefit to "locking down" JavaScript objects?

RaynosIn theory freezing an object allows you to make stronger guarantees about the shape of an object. This means the VM can compact the memory size. It means the VM can optimize property lookups in the prototype chain. It means any live references just became not live because the object cannot ch...

 
6:14 PM
holy shit how can it be 98% slower
does it prepare dinner after every iteration?
 
newb here. I have a website that is running some javascript. call it script 1. I do not have access to source files so I cannot directly alter script 1. I would like to know if I can add a new script on the page that would alter script 1. Possible? If so, can you point me to a tutorial or some documentation?
 
@Raynos ... Y SO SLOW bug report =)
it is acknowledged here that should not use freeze because it's so slow: gotocon.com/dl/jaoo-aarhus-2010/slides/…
 
6:31 PM
@Amaan github.com/rlemon/UserScripts/raw/master/UNICORNS/… the contributor was a mistake - meant to add someone else. but check it out :P
 
@RickD "do not have access to source files" yes you do
its called make a http request to the js file
@Esailija why :\ why is it slow
 
i don't knows :( it's not explained in the pdf
it also shows more interesting optimizations
like indexOf is 100x times slower than regexp for endsWith/StartsWith stuff
 
6:45 PM
@raynos in my case, a script is already on the page and being executed. What I meant by 'not having access to the source' is that I cannot directly modify the existing script. My site runs in a saas evironment and I don't have permission or access to the script or the area of the page where the script is called.

I guess what I want to do is to hijack the script and change it. Either that or disable the script and run my own.

Ideas? Direction?
 
:\
Why cant you change it
is this because you dont own the server?
Do you want a userscript?
 
user1385191
lol
 
I don't own the server. It's SaaS (software as a service). I have limited access to parts of the page
 
user1385191
29 questions total
 
6:50 PM
@RickD SaaS is a buzz word. It's noise to me
So you want to use a web app but change the script that runs on the page?
Or your including someones things in an iframe and you want to customize it?
 
raynos, sorry for saasy slang :-)
I am using licensed software that runs on the authors site
i mant- on the authors SERVER
it's my site
 
@Raynos The IE7 countdown, dun dah dah dun dun... youtube.com/watch?v=9jK-NcRmVcw
 
Aww yeah The Final Countdown
one of the greatest songs known to man.
I dont think IE7 should get such an awesome exit.
 
@RickD I suppose it mostly depends on how the script is used. You probably can't modify the parts that run immediately, but you can likely override event handlers or extend objects.
 
It'll be the song we're all rocking to when we see it go
 
6:57 PM
IE will sing "Show Must Go On"
 
@RickD its your site? So change the code
 
@raynos. My URL. someone else's code that runs on their server. Sorry for not being more clear.
@RyanKinal override event handlers! yes, that sounds like what I need to do.
 
@RickD Is this pure JS, or is there a library involved?
 
@RyanKinal I have both. Some pure js, some jQuery.
 
user142019
@RyanKinal jQuery is also pure JS.
 
7:02 PM
@WTP -_-
Except the techniques and functions you use when jQuery is available are completely different from those you use when writing pure JS
 
@RyanKinal thanks for your help.
 
No problem :-)
 
what files are required for jquery-ui autocomplete
 
// From the jQuery UI autocomplete documentation page
Dependencies:
    UI Core
    UI Widget
    UI Position
 
Ui Core is jquery-ui-1.8.2.custom.min.js
 
7:18 PM
It can be. The name suggests it's a custom build.
 
how about widget and position
 
In the jquery-ui download page, you can specify what you want and don't want to include in the file. jqueryui.com/download
From the name, one can only infer it's custom, not the components in it.
 
Hi, I am just starting out with Sencha Touch and I wonder what the xtype:'toolbar' does? Or I understand that it gives me a toolbar, where is it documented?
 
A quick Google search got me here: tobyho.com/2010/09/17/sencha-touch-overview
Search for xtype in the page
 
Found it, thanks :)
 
7:23 PM
Rock on
 
I am normally doing Java and other programming languages and I just dived into JavaScript now! What does: someName: 'someValue' do? Or what is it equivalent to?
properties?
 
//It's property declaration inside an object-literal. In layman terms:
//{} creates an object literal
var obj = {
    property : value
};
obj.property === value;
It's like property = value, just for the insides of an object literal
 
{} so that makes and object?
 
Well, in javascript, everything (besides undefined and null) are objects.
 
Sorry for asking dumb questions, but I don't bother reading 1000 pages of learning all basic programming again
 
7:28 PM
{} is a construct saying "Make a thingy which inherits directly from Object". [] says "make a thingy which inherits from Array, which in term inherits from Object"
I made a small introduction-to-js-syntax some time ago. It's not gonna teach you the language itself, just the syntax. Gimme a sec to find it.
 
Thank you
 
You're very welcome
facepalm Made a mistake in the area example...it's not (pi * r)^2, it's supposed to be pi * r^2
 
I am setting an array of subclasses of Object as this: dockedItems: [{...}, {...}];
 
0
A: Unicorn Voting - Bringing the Joy of April 1 All Year 'Round!

rlemonHere is a userscript to add the same functionality to the chat system.. enjoy Only uses the OP images. Same License. Don't sue me George userscript source

 
So doesn't it care what class the object is in order to interpret it?
(it is from the Sencha Touch API)
 
7:33 PM
The concept of classes is controvertial in javascript. I find the beauty of the language is that you don't care what an object is, you just care what it has.
 
I see, so as long as it has the required properties and behaves properly it doesn't care?
 
For example, it doesn't matter if you're passing an array or an object or a string or a number, if Sencha just operates on the fact that a property in the value exists, then you're cool.
 
@RyanKinal just sent you an email
 
function logFirst ( something ) {
    console.log( something[0] );
}

logFirst( [1, 1, 2, 3] ); //logs 1
logFirst( { 0 : 42 } );   //logs 42
logFirst( "abc" );        //logs "a"
//etc
 
I see
 
7:36 PM
@RickD Will respond in email.
 
And when doing someName: 'someValue' you are not using set-methods/functions? You are just setting the value straight on the variable?
 
Well, yes. Like you do var someName = 'someValue';
 
Sweet, thank you. I will check you link now
 
It also works with functions, btw. Functions are also variables in js, so you can do var func = function () {}; and var obj = { func : function(){} };
 
Awesome
 
7:41 PM
I actually wrote two answers about these things: This one about functions being first-class, and this one about a property variables have
Yep, it really is awesome :D
 
It is strange to not deal with types etc :P
 
It was strange to me at first, too. But then one day I realized that that's friggin awesome
 
So when I say {car:'BMW', VIN:'3483223', ...} I am making a subclass of Object with those properties?
 
meh have a bug with ui-autocomplete
 
It's not precisely a sub-class, but basically, yes
 
7:48 PM
Doesn't it inherit from Object?
 
It inherits from Object.prototype
 
What is that notation?
 
prototype is a property inside of Object. Object is a regular js variable.
 
Ah okey
Is it normal to have 'var' in front of function parameters when you declare functions?
 
prototypes are a little complex. JavaScript doesn't have "classes" - it just has objects. And objects "inherit from" other objects via prototypes. You really have to let go of the typical "class" way of thinking.
 
7:52 PM
14
A: JavaScript function order: why does it matter?

ZirakThis weird behavior depends on How you define the functions and When you call them. Here's some examples. bar(); //This won't throw an error function bar() {} foo(); //This will throw an error var foo = function() {} ---- bar(); function bar() { foo(); //This will throw an error } ...

 
nope, you don't do var function theFunction()
 
@Hyperion No. Function parameters don't have var in front of them
 
var funcName = function () {} is nearly identical to function funcName () {}. The answer I linked to has more details in the matter.
 
not even if they return something
 
Okok, thanks
 
7:54 PM
// wrong
function x(var y) { /* code */ }

// right
function x(y) { /* code */ }
 
4
A: Access variable from outside of the function in jQuery

ZirakIt's time to meet Mr. Scoping. Plainly speaking, scoping is an encapsulation of variables (note that in javascript, functions are also variables.) Now, in the imaginary language I just made up, the { character starts a scope and } ends it, variables are defined with simple equality (x = 42 for e...

hm, as it turns out, the time spent writing these answers proves useful. Interesting.
 
== will return true if you compare the string '4' with 4, and === will return false right?
 
Yep
 
Thank you guys, brought me up to speed, I bookmarked your link too Zirak, useful :=)
 
Looking for some help guys
2
Q: Hiding Javascript When Building a Widget

MuratI am building a web widget which will be very easy to integrate. Say http://www.bicycleseller.com/ wants to integrate my widget on his web page. All he has to do is copy and paste the following to the head section of his page: <script src="http://www.widgetprovider.com/widget.js" type="text/j...

 
8:07 PM
is it just me or have I seen that same question like 5 times
the one with bicycleseller
 
Saw "java", automatically filtered as chat noise
 
0
Q: Facebook game development, University project

KirberryI have been requested to make a port of an iOS game for Facebook. The game itself is fairly simple, it is a puzzle game using a 2d array for a grid with XML passed from a server for loading objects onto the the grid, to create levels. The game will ask questions at stages which will be passed to ...

 
is that a mistag... there is no java in the question code at all
 
A sec before I ago: RFC. Syntax I thought of during the day. It's kinda weird, but...well, first draft.
 
still debugging my autocomplete
anyone can answer this question?
http://stackoverflow.com/questions/8437067/what-is-wrong-with-this-autocomplete-code-jquery-ui-autocomplete
 
8:25 PM
\o\
/o/
\o\
 
hi, can anyone help me with this issue?
http://stackoverflow.com/questions/8433349/image-animator-browser-crashes
 
@rlemon: I missed the opening of your blog by a week xD
anyone know how to get javascript to listen to keystrokes without a textfield?
on a phone *
 
8:43 PM
hey sorry for my ignorance...does anybody knows how to load an external page on a div using ajax and jquery?
 
@Tgwizman huh?
 
@Raynos See my last message. You'll just love it.
 

« first day (418 days earlier)      last day (4524 days later) »