« first day (236 days earlier)      last day (4711 days later) » 

12:02 AM
is there a way I can get this working jsfiddle.net/fWK8e/1
 
Change $('clickstate') to $('.clickstate') notice the dot
Also, changing the framework from MooTools to jQuery helps
 
those were typing errors but I have similar thing and it does not work
http://jsfiddle.net/fWK8e/3/
 
next selects the immediately following sibling, try nextAll
 
$(this).siblings().css({'color':'red'});
and start learning to put in semicolons
hit the jslint button at the top
 
12:11 AM
that works, but if I was to add another span, both would be styled. is there a way to only get the class I need?
 
have you bothered looking at the jquery api docs?
 
Yeah look at the documentation
 
@JeremyChild thanks
 
class isnt the selector you want then. You probably want ID if you are looking for some uniqueness
 
12:12 AM
@david @JeremyChild RTFM? :P
 
I spend 30 mins searching and could not figure out anything
 
Ok so whats your next hurdle aurel?
 
no thats it, thank (for now) :)
 
And i came in here to ask questions for myself... :(
 
:)
 
12:18 AM
the reason that wasn't working aurel is because .next() only get the very next element
and if it doesn't match the selector, nothing gets returned
the very next element in your example was a break tag... which didn't match the .content selector, so nothing was returned
 
AA thanks, that the other thing, I get things working and dont get why they work - thanks
I started writting things down since yesturday so I hope these will stick soon
 
12:41 AM
good night people and thankd for your help :) i'm out
 
 
2 hours later…
2:48 AM
Hey all, I was experimenting with javascript creating a carousel. And I noticed something. when I create an object literal. And I give my new object some methods.
And then I invoke one of the methods of the object outside the object like this ImageRotate.init(), since init is caled on ImageRotate, this should refer to ImageRotate but when I use this within init() to call another method of ImageRotator, chrome firebug raises an exception, however it works fine if i invoke it like ImageRotator.rotate() (this.rotate() fails).
that seems a bit counterintuitve
 
hello!
:)
I have a really simple question :)
how to create global variable?
 
all variables are global unless you creatre closure
var a = 'a';
global
 
I am trying create opera extension..
and some variables seems to be local
Is it possible that OperaExtension has different rules?
 
that seems like a scope issue
when function exits, variables are destroyed unless stored in closure
b = function(){
var a = 'a';
}

alert(a);
 
will this work?
 
2:58 AM
the above will say a is not defined
because its not in scope
this would work:
b = function(){
var a = 'a';
return a;
}

alert(b());
 
I have some variables, which I need to share among few functions...
 
a variable is local to the scope and a function defines scope
Its 11pm for me so the initial question didnt register. I thought you were referring to private and public variables, not global and local
all variables are local to their scope unless defined in the global scope
 
what about something like that:

var a='a';

function foo(){alert(a);bar();}
function bar(){alert(a);}
foo();
?
 
that wont do anything. thats just method definition
but if you call foo() then yes it will alert 'a' since a is in global scope
if your host environment is the browser, then anything immediate to the script tags would be a global variable, since functions are what define scope in javascript, not classes like in class-based languages like php, ruby, and java.
 
thank you for help.. I still don't know why my code doesn't work... but maybe I am to tired... for me it is 5AM :/
 
3:04 AM
But thats it for me.
I got to go
 
;)
 
 
4 hours later…
6:36 AM
@JohnMerlino hi
@JohnMerlino hi
 
6:53 AM
Hi guys..im having a problem with JQuery datatable..the problem is even if i increase the width of my table heading in "sWidth" it doesnt get increase know..i have also set "bAutoWidth": false..can some one pls know what i am missing here..thankss
 
@JohnMerlino hi
@david hi
 
7:13 AM
guyss
 
 
2 hours later…
8:59 AM
hey there, does anyone use google maps v3 and encountered problems with double scrollbars in a infowindow with IE7?
 
 
2 hours later…
10:37 AM
@ndee google does not support IE7 :D
 
The hell...? Why does a constructor return this, even if told to return something else?
 
11:19 AM
need help in Firefox Extension development
How to create canvas element from toolbar to the content document.
0
Q: how to create canvas in content document from firefox extension?

Vinothkumar ArputharajI'm developing a firefox extension, so that i can create canvas elements in the content document (webpage loaded in the browser) from the extension. My function is below: function createCanvas(el, e, count) { try{ alert("create canvas"); var x = getImgOffset(el).left; var y = ge...

Anyone here to resolve this for me?
 
@Zirak because you can only return references to objects
you can return new Boolean() or new String()
but not true or "foobar"
 
Yeah, I knew that, but...the hell?
 
12:02 PM
just laugh sadistically and return it null
 
12:26 PM
anyone know how the google doodle is working today?
 
@Loktar Right click -> view source -> paste into jsbeautify
 
yeah already did, just didnt want to spend the time if someones already figured out what they are doing to play the audio
Hmm im a little disappointed, looks like it just uses a swf, to play the audio.
Wish they would get their audio api going, been having lots of fun with mozillas.
 
12:45 PM
yep - no black magic just flash
but they just need to make it work on like any browser available I guess
 
:( flash. Google Y U NO HTML5
 
doh - it doesn't happen too often but sometimes I really blame Resig & Co. for the "Fail silently whereever possible" principle
ruins any custom error handling within "some" jQuery event handlers
 
@jAndy Solution: dont use jQuery
 
well it's still a handy lib, but you need to know it's limitations to be ok
farmost I'm interested in having a great browser abtraction level for a "base library" and that is pretty great implemented in jQuery
 
1:20 PM
hi..anyone here familiar with extjs?? i need help plz
 
ask a question
we might help. but were not tech support
 
any help would be great
im really stuck
 
@Raynos That's what you think! Installs live help in the chat
 
@astrocybernaute isolate the problem. Make it reproducable. (jsfiddle)
then we might look at it
 
raboof !
 
1:23 PM
@onteria_ Have you tried turning it off and on again?
 
achievement unlocked: awesome coding platform >>personal blog designed, developed, and deployed in ASP.NET MVC in 6 days, with no prior experience with MVC.<<
 
@Raynos i tried to do so..can u tell me what can i do to make it more clear
 
@astrocybernaute tab to autocomplete
 
got it thanks :p
 
1:25 PM
@astrocybernaute jsfiddle.net . Make it reproducable
 
@YiJiang "Is the power cable plugged in?"
Whenever tech support asks me to do something lame that I told them I've already done, I flush the toilet. "Yes, I've already power cycled the router" "Can you try again" "sigh okay one second FLUSH"
 
1:58 PM
Interesting new service, not sure if it's really any better than JS fiddle, it helps get the interface a bit nicer to work in however... jsdo.it
Eh, i'm not really sold on it. It's more like social coding, might be cool if I was in school or something.
 
"To use jsdo.it, you need to sign in." No, thanks
 
"Social Coding" seems like an oxymoron
6
 
@ThomasShields link
 
@onteria_ Isn't that also Github's tagline?
 
@YiJiang Less social coding and more social forking
@YiJiang "sigh, this jerk won't fix this bug, guess I'll just fork it and fix it myself"
 
2:03 PM
design reminds me somewhat of the tutsplus network sites
although... jsdo.it/GeckoTang/4rXg is cool
 
@Incognito that website is annoying
 
I don't want to be social when I code. I want to sit in my PJs while blasting inappropriate music, hacking away in MacVim.
 
heh Im the same way
minus the pjs
 
Also these so-called "meetups" are just an excuse to drink a bunch of beer
 
Wow, that's some seriously long loading time.
 
2:05 PM
lol I dont know many social devs
yeah its cool though not a bit of JS
heh ALOT of css though, over 6k lines...
 
@onteria ... maybe I should go to a meetup
 
Everytime I go to any meetup its just filled with hipsters with ipads jeans and blazers..
 
DOMContentReady fired only at about 1.2 minutes, load event at 2.3 . That's really really long
 
Oh. Never mind then.
 
but im in NE so it could be diff elsewhere
I find more of my kind at Lan parties honestly
 
2:08 PM
@Loktar go to real meetups
Theres a sencha one near me.
Might set up a node meetup
 
Id try and make it actually
where Im at I just have to fly everywhere
 
@Zirak its got base64 encoded images :P
 
and I hate flying
 
Any Vimmer here tried out eMacs?
 
I did, but the keyboard shortcut locations where a bit much
Especially on a mac book pro, where CTRL and ALT(option) are not in the easiest to reach places
Granted I can change the key bindings through the config, but there's a limit I have to how much I feel like configuring something to match my needs
What I did like was the sftp support, as well as ORG mode
And of course, it's pretty much the standard for doing LISP coding
 
2:19 PM
The tab widths are annoying as hell. To actually do stuff it's a bit less confusing than Vim, since you just fire up and go most of the time, but whenever I need to do something that isn't default, I have to look it up for a really long time.
Plus, LISP syntax is weird
But the shortcuts actually make sense, unlike a lot of things in Vim.
 
2:37 PM
Fedora's alpha installer added support for an experimental filesystem called btrfs. In order to utilize it you have to pass icantbelieveitsnotbtr in the boot options.
Laughed so hard at this
 
might go to that idk.. wish I were more of a social butterfly
sounds like that social coding, "Startup Weekend is an intense 54 hour event which focuses on building a web or mobile application which could form the basis of a credible business over the course of a weekend. "
 
ASP.NET WHY U NO WORK
@Loktar I would go. But im in UK
 
Our coding is INTENSE!! It will cause LARGE WALLS OF FLAMES to spew from your PC. Your vim or emacs WON'T BE ABLE TO HANDLE THE INTENSITY!! You'll have to resort to USING EDLIN LIKE A BOSS!!
 
GAAAH FU EMACS WHY YOU INDENT 2 SPACES WHEN I TOLD YOU 4!!!
 
2:52 PM
"Using jQuery 1.6 to find an array of an object's keys" by @encosia http://t.co/jnsaWzJ
 
It would be awesome if I could just set hasLayout: 1 in the CSS. But no. IE has to be crap.
 
Keep your XML out of my JSON damnit
 
@onteria ;_;
 
user1385191
3:33 PM
JSON is beautiful because it's so expressive on its own
 
console.log(111111111111111111111)
 
Whenever I see "expressive" I always replace it with "expresso" in my mind
"This language is so expresso..."
 
to be fair, some sort of descriptive json format (not necessarily saying it's that json schema) would be useful for some tooling (ie. automatic proxy code generation type stuff)
 
4:31 PM
No
Never :D
 
4:56 PM
Mmm. Cross-browser testing. Also known as "How shitty does my application look in IE?"
 
:D
o/ IE is my bestest friend ever
 
user1385191
keep your friends close, keep your enemies (IE) closer
 
Chrome has beautiful, rounded corners and smooth animations. IE has display bugs, boxy boxes, and ugly pseudo-animations.
 
user1385191
are we comparing chrome >= 10 to IE <= 8?
 
user1385191
 
ugh..
 
user1385191
mmm, good old Math.sin() for fluctuating motion between something * 1 and something * -1
 
thats so terrible, the China stats
 
user1385191
whoa, Russia has a crazy high percentage of users on Opera
 
user1385191
5:20 PM
25%
 
@MattMcDonald I may have been comparing Chrome 10 to IE <= 8. I'll admit it.
It's not fair, but it's also a large portion of the market.
 
user1385191
border-radius came around on Chrome 5 I think
 
user1385191
about a year ago
 
user1385191
IE 8 came out in March 2009
 
user1385191
wiki says webkit v535 which was implemented in Chrome 5
 
5:25 PM
And yet, we can pretty much rely on users having the latest stable version of Chrome, simply due to the way Chrome updates. IE, we have no such guarantee.
Especially in a world where XP is still a popular OS.
 
user1385191
Microsoft likes to be very firm with their updates, tending to release 1 browser per OS.
 
user1385191
forgot that vista is so old
 
user1385191
xp: 6, vista: 7, 7: 8
 
hehe
 
user1385191
but they've got their act together now
 
5:28 PM
Did 6 really come with XP? Man.
 
user1385191
yes, in 2001
 
@MattMcDonald Assuming they can even get to whatever site it is in the first place </troll>
 
I thought, for some reason, 6 came with ME.
 
user1385191
wait, IE 10 will only run on 7+? ugh
 
user1385191
5:29 PM
I'll finally have to upgrade from vista
 
lol @Nathan nice
 
:) I like things with strings.
 
I was trying to figure out something this morning, but the work got in the way.
 
I don't think Windows 7 is as bad as some people make it out to be. Windows ha an inherit problem from its popularity, which is that it has to appeal to a wide audience. This means that UI design has to be done for the general user base, and it won't please everyone by doing this.
 
user1385191
I almost forgot how hideous google's source code is
 
5:31 PM
I think windows 7 is great.
 
user1385191
I'm not saying 7 is bad
 
I like it better than XP even.
 
user1385191
I'm quite happy with vista and don't feel I need an upgrade
 
Windows 7 is actually pretty solid. Unless you want to use PECL. Or PEAR. Then it FREAKING BLOWS.
 
oh I was just replying to @onteria comment, I didnt assume you didnt like win7 @MattMcDonald I neer went to Vista, just xp - 7
heh maybe you were reply to @onteria and not me..
 
user1385191
5:32 PM
3+ years on vista, barely any problems
 
@RyanKinal is UAC giving you grief?
 
the backup utility in windows 7 alone is amazing
 
user1385191
yeah, you need to turn off UAC and then it's smooth sailing
 
@Nathan Actually, I turned UAC off, and it still didn't work correctly. I guess I shouldn't have installed in Program Files.
 
it actually makes an image, ive had to use it for a failing hdd worked flawlessly
 
5:33 PM
@RyanKinal use the "MS web platform installer" for PHP. The old bad way sucks.
 
@RyanKinal Honestly I just install a linux virtual machine and call it a day
 
@MattMcDonald @Nathan I was completely unable to remove the "read only" flag from anything in Program Files.
 
@RyanKinal I've yet to come across a production environment that mixes IIS / Apache on Windows / Lighttpd on Windows enough to warrant it
Not only that but linux vms are pretty cheap depending on how crazy you go with it
 
woot stackoverflow shirt has shipped. LOL my wife is going to LOVE me wearing that to the beach.
 
@onteria I'm not even trying to mix - I just wanted a basic WAMP setup.
Don't get me wrong, though, I love LAMP.
 
5:36 PM
get virtualbox, and load it into a linux vm
 
@RyanKinal I use XAMPP for WAMP and the web platform installer for WIMP. Life's too short to mess with installing things individually.
 
Heh you know what a windows stack is called right?
bah @Nathan beat me to it. I love it WIMP
 
(y)
 
I actually got a wamp stack setup easily using xampp
 
XAMPP is actually becoming my preference for Mac OSX too.
 
5:37 PM
just for a test environ on win 7
 
I use MAMP on OSX
Then again, I also have 2 remote centos servers to toy with
 
What can I say, I'm old school. I actually downloaded each component separately.
 
user1385191
as soon as I found out OSX was built-in with an apache install and PHP 5, I was set
 
@MattMcDonald Ooh, that's hot.
 
the only problem I've had with XAMPP on win7 is sometimes starting/stopping Apache doesn't work right and I have to do it more than once.
 
user1385191
5:39 PM
yeah, you just turn on apache via the system prefs, enable PHP via the httpd.conf, and you're set
 
yeah it kind of freezes sometimes for me when i try to stop it
 
If I didn't enjoy computer games, I'd wipe my machine and start over with Ubuntu.
 
user1385191
XAMMP does the same for me on vista
 
@MattMcDonald OSX doesn't have mysql iirc, and the default Apache is all weirdly configured.
 
sigh @RyanKinal thats the same reason my primary os is still windows
 
5:40 PM
there's wine but... yeah :S
wine's kind of a hit or miss deal
 
Indeed
 
yeah thats what Ive heard, ive never personally tried it, a large portion of my library is through steam
so idk how/if they work well together
 
user1385191
windows for gaming, direct IE support + personal preference
 
45 minutes until my long weekend starts.
 
lucky. Ive got another full day until my 2 week vaca
 
5:45 PM
Nice! What are you doing for that 2 weeks?
 
just sitting around mostly
wont be at home though, going to Michigan for my sisters wedding
 
Ah, nice
 
so i have to rely on my tethered phone for internet
 
... not so nice :-P
 
tested it yesterday got a whopping 900k :P
 
6:12 PM
ah, part of my weekend schedule is listed as "12:00a-?? - Late Nite Dancing"
That "??" makes me happy :-D
 
6:42 PM
@IvoWetzel did you find a flat yet?
 
Hmm, so these online classes I'm taking, apparently the university library has connections to IEEE and ACM portals
currently raiding ACM for functional programming papers
 
@Nathan yeah, I moved in yesterday
 
woot!
 
still a bit empty in here, but at leat the pillow and stuff arrived today
 
You have arrived.
Kittens allowed?
 
6:46 PM
:D
Dunno, although there aren't any kittens planned in the near future
 
Yeah. Well, enjoy your new place and new free non-commuting hours.
 
user1385191
it takes about a month or so to adjust to apartment life I found
 
I've heard one month is the time it takes to form solid habits. Like, if you go to a class every Wednesday for 5 weeks it will be a habit that you would miss if you quit.
Apparently the "one month" boundary is important for exercise programs and clubs and New Year's resolutions and stuff.
 
user1385191
month one was debt season for me
 
user1385191
month two was breaking even
 
6:59 PM
Question related jQuery, How i can handle an iframe click a button event ?
 

« first day (236 days earlier)      last day (4711 days later) »