« first day (237 days earlier)      last day (4697 days later) » 

12:18 AM
oh blessed thought! there shall be no IE6 in heaven. :)
 
Oh I didn tbother looking at your code
where was it again?
 
tear it to shreds. :)
oh, and use the @ThomasShields if you need to chat me...i've got a vid running
 
 
2 hours later…
Owl City makes me sleepy... yawn ...must...keep...coding
 
STCOK!
 
SCOTK!
 
um... STOCK!
:D
 
@ThomasShields NO SIR, SCOTKC!
I HAZ NEED SCOTK MRAKET!
 
2:09 AM
I should troll it with "Use Java like a good majority of the banking and finance industry does"
 
Either that or "Ruby on Rails and MongoDB for web scale"
 
you should reply with "STCOK MARKET USE UPPER CASE"
 
or tell him to use classic ASP with HTML 3, CSS 1, and JS 3...
actually, classic ASP wasn't bad... make it Web Forms./
 
@ThomasShields classic asp is too fancy. Let's go perl/cgi
 
2:11 AM
@onteria yeah, good idea.
maybe write a few modules in Pascal accesible over the network via FTP, as well
 
thoughts start to wander, staring at the cgi-bin directory
I never did use it
These days you've got mod_perl, so it's pretty hard to justify
well, assuming we're talking about apache
I remember the days where if you mentioned a web server besides IIS and apache people gave you a funny look
now lighttpd and nginx are being tossed around quite a lot lately
 
@onteria_ ZOMBOCOM. THE POSSIBILITIES ARE ENDLESS.
 
@onteria_ absolutely yes
 
Oh God someone pulled out the family guy kool aid references
This thread can go nowhere productive
 
3:18 AM
You would need to promote this: youtube.com/watch?v=sT-IYg7csYI
 
3:35 AM
Oh youtube quality tutorials... youtube.com/watch?v=OZ8LAIrR_fs
 
4:02 AM
anybody using yui here?
why does a korean pop star show up when I search yui on google
lolz
snoorz
 
Hi all
 
yo
 
all I was trying to do was create a simple carousel. And while it works great on all browsers, in IE, when it rotates to third image, it doenst display it.
 
what up with you?
 
(function(){

var imageWidth = $(".window").width();
var imageSum = $(".carousel img").size();
var imageReelWidth = imageWidth * imageSum;
$('.carousel img:first').addClass('active');

$(".carousel").css({'width' : imageReelWidth});

var ImageClass = {

rotate : function(){
var id = active.parent().attr("rel") - 1;

var position = id * imageWidth;


$(".carousel img").removeClass('active');
active.addClass('active');



$(".carousel").animate({
left: -position
}, 7000 );
},
init : function(){
setInterval(function(){
Thats the code
firebug shows no javascript errors
but third image does not display
any idea why this would occur in IE?
 
4:11 AM
did you jslint it?
 
no, I used jquery library but no plugins
if you have IE, you'll see what I am talking about: hllawgroup.com/home
 
from jslint
Error:

Problem at line 1 character 10: Expected exactly one space between 'function' and '('.

(function(){

Problem at line 1 character 12: Expected exactly one space between ')' and '{'.

(function(){

Problem at line 1 character 12: Missing space between ')' and '{'.

(function(){

Problem at line 3 character 1: Mixed spaces and tabs.

var imageWidth = $(".window").width();

Problem at line 3 character 6: Missing 'use strict' statement.

var imageWidth = $(".window").width();
whoops
 
you think that would cause the issue present in IE?
 
it got encoding probs
anyways
 
I use the one for chrome
But I dont think that the spacing issues reported in jslint would cause an image not to show
 
4:14 AM
i didn't know they had one for chrome
coolio
 
its firebug for chrome
 
I didn't know firebug had jslint
 
I ended up in C++ room as well, and I never even clicked to go in it
 
your missing a ";" at the end of your immediate invoking function closure.
 
yeah
Dont think that would make the third image now show in IE, but its good to put semi-colons even though they are not required in js, I believe
 
4:22 AM
IE is picky about semicolons
yeahz idk i would probably just end up throwing debugger statements at it
 
It might not even be js related. Internet Explorer has been an utter nightmare for me.
What it appears to be problem is IE cannot find the third image to load it, because the carousel correctly moves to the position of third image. its just the third image doesnt appear to be there in IE only
 
4:46 AM
sudo /sbin/shutdown -h now time to go nighty nights
 
Neo
5:05 AM
has anyone got Cross Origin Resource Sharing using Access-Control-Allow-Origin: header to actually work in any browser?
 
5:24 AM
@Neo This little test is working for me in Chrome right now: jsfiddle.net/jeremy/54wVQ/1
 
Neo
@JeremyBanks cool, thanks I got it working I was missing the Access-Control-Allow-Headers: x-requested-with header
@Jeremy though I'm wondering how you got it to work without that
cause I was getting this in chrome XMLHttpRequest cannot load http://my-destination Request header field x-requested-with is not allowed by Access-Control-Allow-Headers
even when I used: Access-Control-Allow-Headers: *
 
ah
Testing it now, when I make that request through jQuery, it doesn't add the x-requested-with header
 
Neo
yeah check this out: bugs.jquery.com/ticket/8318
something about not adding it to POST
 
5:40 AM
Ah, so they use different defaults.
 
 
2 hours later…
8:03 AM
@JeremyBanks @stevebot use jshint -.-
 
8:25 AM
@Raynos For what purpose? Would that have found something wrong with the code?
 
8:37 AM
instead of jslint
jslint is annoying
 
@Raynos jslint is a style checker. It would be annoying if you don't write JavaScript the way God Crockford intended you to :P
 
the only jslint I like is the eclipse/aptana plugin :p
 
 
2 hours later…
10:21 AM
1
Q: How to get realtime updates?

Jack BillyI was chatting frequently in Facebook and as I love to code more and more so I tried to create a Chat Script! Here it is ::: http://wooflux.co.cc/ChatSystem.1.1/ChatSystem.1.1/ You try it out. But it is just a beta version so there are some bugs in it. And one of the biggest bug is that it requ...

It's great how everyone agrees the answer to realtime communication is node & socket.io :)
 
hi everyone
 
@teresko What's your problem >_>
He's up to something.
I don't trust him.
@teresko Hi :)
 
here is some mootools based code
how do i make it cleaner
it takes a semi-semantic html and creates a tab-widget-thing
but the arrangeElements() method looks like crap
 
Your whitespace looks silly :)
 
in my IDE it looks ok
updated
 
10:30 AM
That offset should be handled by css & html
 
pastie has something like a 1.5 line-height , which makes the normal whitespacing to look like crap
 
@teresko Are you trying to simulate a float:left type of thing?
 
no
 
Use floats and fixed width tabs
 
uno momento
i will show the fragment html , then you will get it
 
10:30 AM
(Make it a jsfiddle!)
 
it will be to long fo make a jsfiddle
 
I still don't get it. I'm guessing the h3 is the tab header, and you want them to appear one after the other, like Cogito Ergo Sum. That's a float
Or a fixed position, whichever floats your boat
 
i want to have the headers as as "tab-buttons"
but in the case if JS is disabled , i want it to show as list of articles with headings
semantic code
 
Sounds like a job for conditional-classes. Make a class in the case js is on, and one for when it isn't. Stick the no-js on your tabs, and in js replace it with a yes-js class
Styling really isn't javascript's job, it's css'.
 
10:46 AM
wow ... you really dont know how internet works
 
A possibility. But that's what I'd do, so that's my advice.
 
how exactly will you style tabs , if they dont have a fixed width ?
 
10:58 AM
@teresko I still think there should be a CSS solution. I've actually implemented tabs in CSS alone before.
With the same semantic HTML
 
try
if you make it work, i will buy you a cookie
because i have tried , and failed
at least i hope you understand the "why one would want this" part
 
I appreciate the semantic HTML
I'm sure I have some tabstrips in a jsfiddle somewhere
2
Q: HTML/CSS Tabstrip

RaynosI'm looking to write / emulate a tab strip using HTML & CSS only. I will progressively enhance this with JavaScript and do not need any help with that. I've taken ideas from this page Example 6 Here is a live example Please feel free to be pedantic about my current HTML and CSS markup. ...

Of course it does use CSS3 so you need some CSS emulation. @teresko edit it yourself. Good luck :D
 
11:13 AM
well .. it needs to work well on IE7
@Raynos , i know the reason why this way did not work for me
in this case the "content" of tabbed-widget is not *pushing * out the rest of page stuff
if tabs are in the middle of page , you cannot use this solution
 
$ curl hair.com
 
11:41 AM
Ah I see.
That's a pity :(
 
new Apple OS looks really well designed
its nice to see all of Ubuntu's features in OSX now :)
 
@Raynos , so , if you are up to the challenge , just try
it would be actually a really valuable thing to have
 
12:01 PM
@teresko don't have the time to hack it atm.
I also find semantic HTML/CSS support for IE<9 a pain and not worth the effort
I can make it work without javascript in modern browsers.
Without javascript in IE is something that looks like shit :D
I really can't get excited about JS disabled users that use IE7-8
That's why I use HTML5/CSS3/ES5 and just bang modernizr down IE's throat.
 
that doesnt matter
even if you make it for IE9+ , you will see the same problem
 
Oh.
 
you have to leave the "content" and at least one "tab" un-positioned
otherwise you have to use JS to ensure that layout doesnt break
 
@teresko you can do it with fixed height tabs
 
yes , but thats not a luxury you always have
 
12:15 PM
True.
The problem is the absolute positioning :(
I dont know the answer, basically
 
this is why is use calculated offset in js
anyway .. the question was : how can i make that piece of code look cleaner
 
Oh.
I didnt really have any recommendation on it
Cant you just apply float left with JS?
 
12:30 PM
i cannot
because tabs and content of each tab are not grouped separately
 
You can just hide the content and shuffle it into the right position
You only want to serve semantic HTML
you dont care about whether the DOM is semantic HTML at any one point
But thats even more ugly
@teresko theres nothing I can do apart from make it more functional (map/reduce) and slower.
 
1:22 PM
@Raynos I'd claim you should care about the semantics of the DOM. After all, that's the level at which semantics are important. The serialized form (be in HTML/XHTML) doesn't have any affect on anything that cares about semantics.
 
1:41 PM
hi, is it posible to download the jquery documentation, to view off line
 
44
Q: Where can I download the jQuery API documentation?

Chris ConwaySince I pound API docs pretty hard when I'm coding, I like to have them on my local disk. jQuery.com lists a lot of sources for browsing the API documentation online, but I haven't found anywhere I can download an HTML bundle as a TAR or ZIP file. Is such a bundle available? EDIT: I should have ...

 
@gsnedders I meant I shouldnt care about the semantics of HTML when js fiddles with it. Not greatly anyway
I assume screen readers and other accessibility tools dont parse JS
 
@aurel the chm's arent up to date
 
@Raynos Screen readers read what is rendered on screen, based upon the DOM. Much like how the browser renders the page based upon the DOM.
 
but theres some pdf vs
 
1:45 PM
Oh I see
 
thanks all
 
@Raynos The things that care about the script-disabled case are search engines, though I believe they're starting to care. (To stop content being one thing then radically modified using script for SEO.)
 
now that im here: im downloading php documentation as well as my internet at home is not working. is this file php-5.3.6.tar.bz2 same as a zip or a rar (would i be able to read it)
 
No, it's a bzip2, which is a separate compression format
 
I usually download .zip on windows/mac and .tar.bz2/.tar.gz on *NIX systems
Though Mac OSX can technically handle .tar.bz2 since it's got a BSD backend
 
1:49 PM
i know i did it before, but i cant find it now
im looking here php.net/downloads.php (sorry i know this is not php room)
SORRY i found it
thanksfor your help
 
When i click on `[Add Answer]` why is `j` incremented by 2?

http://jsfiddle.net/lonewolfs/ZM8mq/
anyone?
 
2:10 PM
jsfiddle.net/SZuqw : IE disables the text field. FF/Chrome dont. Whos doing it wrong?
 
@Raynos Unspecified behavior - browsers can do whatever shit they want
 
heh, Google lists stackoverflow as a source
 
0
Q: How should disabled <div> act?

RaynosFiddle <div disabled="disabled"> <input type="text" value="RAGE" /> </div> Basic testing says FF4/Chrome enable the field. IE9 disables the field. What is the expected behaviour? Same for any other non <input> DOM element

@YiJiang thats annoying :(
 
Ok problem solved i had double ID's
 
user342706
2:27 PM
when you do var self = this; in Internet Explorer is it different than other browsers??
 
tmk it isnt.
 
@KyleRogers no. Well except IE thinks your now this
 
 
1 hour later…
3:37 PM
room topic changed to JavaScript: Discussion for JavaScript and the many frameworks - jQuery, Prototype, MooTools, et al. Daily Topic: class in ES.next
The class keyword. Should it become a first class citizen of ES.next (ES6) ?
2
 
Ten seconds in Google couldn't find me a description. Is there a formal proposal somewhere?
Or is this planned?
 
Oh
 
user1385191
The following elements support the disabled attribute: BUTTON, INPUT, OPTGROUP, OPTION, SELECT, and TEXTAREA. (via HTML 4.01 spec)
 
3:42 PM
Harmony more likely to go through. Strawman proposals to be considered
 
okay
 
The strawman page is old
the harmony page dates back to last week
 
Ah
ES already has a pretty wide varieties of coding styles used, compared with some other languages. I think supporting an approach that lots of people are familiar with has enough benefits to make it worth doing.
 
I think class will be abused.
The .prototype is abused enough as it is.
I would however love to have @foo
 
user1385191
it would be nice if more browsers adopted e4x
 
user1385191
3:49 PM
it's seriously useful
 
Ugh
Why do you want xml? :(
 
user1385191
xml is still the de-facto data solution for corporations
 
user1385191
we've switched to json
 
Yes
So dont use xml in js
We dont want e4x
we want a de-facto standard xml library
like connect is the de-factor standard middleware lib for node
and jquery is the defactor standard for dom
 
user1385191
I read about this this morning:
 
user1385191
3:55 PM
The MU puzzle is a puzzle stated by Douglas Hofstadter and found in Gödel, Escher, Bach. As stated, it is an example of a Post canonical system and can be reformulated as a string rewriting system. The puzzle Suppose there are the symbols M, I, and U which can be combined to produce strings of symbols called "words". The MU puzzle asks one to start with the "axiomatic" word MI and transform it into the word MU using in each step one of the following transformation rules: # Add a U to the end of any string ending in I. For example: MI to MIU. # Double any string after the M (that is, cha...
 
user1385191
love this book already
 
@MattMcDonald i only just finished Trig in Highschool - do you think I could solve that problem? or is it one of those crazy hard you-have-to-be-a-super-genius problems and i should just read the solution...
 
user1385191
it's impossible to solve
 
oh okay lol
 
user1385191
because the number of I characters is indivisible by three
 
user1385191
3:59 PM
and since one of the rules is "III" can be "U", that's the backbone
 
user1385191
I noticed it was indivisible by three, but never came to the conclusion it was insolvable
 
cool
puzzles like that make me question what my major should be.
 
user1385191
don't worry about it
 
user1385191
I didn't start programming until my first semester of college (17)
 
I often find myself thinking like so...
minus the last frame
 
user1385191
4:01 PM
buy this book:
 
ooh cool
adds to ever growing list of things to buy,read, and do
it's quite frustrating. I can't seem to find any resource (well, free) that really explains prototypal inheritance and "Object Oriented" programming in JavaScript. Everything I find just gives these stupid simple examples like Cat and Dog and Animal and don't really explain how it all works.
wait, you gave me a link a few days back... digs out
 
hmm.. can I discard a "git add *" and "git commit" ? I didn't "git push" so far
just realized I had some files in there I don't want to commit actually
 
remove the files and "git add" again, right?
worked for me
 
don't I have to "git rm" aswell ?
 
4:05 PM
dunno
:)
 
well, seems to work
thanks :)
 
:)
@MattMcDonald was this what you gave me a while back? jibbering.com/faq
 
nah.. did not work. I guess I have to do a git rm then also
 
user1385191
yes, it was
 
cool, thanks. reads
4.1 What is (function(){ /*...*/ })() ?

This is an anonymous FunctionExpression that is called immediately after creation.
THANK YOU
why is this so hard for other manuals and docs to explain??
 
4:14 PM
@ThomasShields I can explain OO. It's called use Object.create. Never set .prototype, never call new
 
@Raynos isn't Object.create not fully supported yet?
 
...or do i think that as a result of (another) faulty source...
kk.
 
Dont code to the lowest denominator
shim/patch the lowest denominator upto ES5
Object.create is chrome, ff4, ie9 & saf5 I think
 
yeah i agree. For some reason i thought it only had marginal support, i dunno why.
 
4:16 PM
no opera, no IE8
 
ah okay.
cool chart.
 
I'm afraid I don't qutie understand that bit of code there
you're assigning $destroy to this.destroy and then assigning self.destroy to a function... does that mean $destroy ultimately ends up being that function?
 
Child = (function() {
  var self = Object.create(Parent);
  ...
  return self;
})();

var child = Object.create(Child);
 
dang gotta run. i'll keep checking back at your code as i read up on this...thanks man.
 
4:20 PM
@ThomasShields thats a bug :P thanks for spotting that
It's supposed to be var $destroy = self.destroy
Basically caching the parents method and then overriding it with a new method that will call base
The thing to remember about js OO is that there are only objects
and you can only clone objects
new .prototype and function constructors are semantic sugar to make it look like classical OO
 
user1385191
testing HTMLInputElement.value in IE 5.2 OSX
 
user1385191
sets the value but it doesn't show up until you type something in the input most times
 
@MattMcDonald -.- IE5 Mac is one of the worst browsers
 
user1385191
of course it is
 
user1385191
but I can't run anything else to test IE stuff in here
 
4:24 PM
why are you support IE mac?
 
user1385191
I don't
 
user1385191
I'm using its JS engine for testing
 
user1385191
var a = document.getElementById("score");
a.focus();
a.blur();
a.value = "foo";
 
user1385191
I'm thankful IE 6-8 doesn't need that
 
Btw people should challenge my claim that Object.create is the OO way
@MattMcDonald stop testing IE :( drop IE support
 
user1385191
4:27 PM
I drop IE support when people drop it
 
user1385191
Google Analytics says 13% of my pagehits are from IE
 
How much of that is IE 5.2 ?
 
user1385191
I only use it to play with
 
@MattMcDonald: ignore @Raynos. Bill Gates is his wicked step father and they never got along.
 
user1385191
and if you're wondering, most of those hits aren't from me because my hosts file blocks google analytics
 
4:44 PM
@Raynos whoa, i found a bug in your code? sweet. :D
moment of intense personal fufilment ensues
and thanks for explaining that, btw
 
4:57 PM
@MattMcDonald I realized some time after finally finishing that book that EGB as in "Eternal Golden Braid" or "Escher Goedel Bach" is also an E minor chord.
 
@ThomasShields one I actually finish my unit tests it will be "bug free"
 
@Raynos what do you use for testing your JS? just handcoded tests? or do you have a unit testing framework?
 

« first day (237 days earlier)      last day (4697 days later) »