« first day (131 days earlier)      last day (4810 days later) » 

10:00 PM
@ircmaxell I need your full name and email
 
Hmm, I just got a sweet new job, but I'll keep it in mind
 
however you can do that outside of chat?
private room or something?
@ircmaxell got it
 
Sweet
thanks
 
sent
 
(I don't care if people see it, they should be able to find me anyway if they look at all)
 
10:02 PM
okay 4 invites left
 
Sweet, thanks!
 
actually 3 i promised @box9 one
 
buh bye
 
@DanGrossman Beta'd. A few of us are camping in Gaming's chatroom
 
10:08 PM
@ircmaxell ciao
 
No, I was saying meta chat just went buhbye
 
ohhhh :P moi = brick
 
More nodejs strangeness
To get the IP address of the connecting client to a nodejs http server, you use request.connection.remoteAddress... if it's an https server, it's request.connection.socket.remoteAddress
https's request object is completely undocumented, too
 
Anyone else inable to access Chat.Meta.SO?
 
Yes, we staged a mutiny and banned you
 
10:11 PM
http://chat.meta.stackoverflow.com is coming soon!
We're working on it; when chat is available for your site it will appear as a link in the header-bar of every page.

Pre-Release Access to chat.meta.stackoverflow.com

Very occasionally we invite a few users to preview systems to help us validate them; please don't be offended if you haven't been invited.

If you have been invited, please enter the pre-release password to try this site:
HUH??
 
lol, read up @Chacha102
 
read up where?
 
here
 
ah..
I WANT MY TAVERN!!!!
 
now all the angry ones from the tavern will come in here... we might actually get outspoken now :D
 
10:14 PM
will finish his cv tonight...
 
and we're back
 
MSO Chat is up again!
 
GOOD BYE ALL YOU WEIRD JAVASCRIPT LOVERS!!!!
 
Good night everyone. Perhaps I'll be on later
 
@ircmaxell night man
 
10:16 PM
thanks again
 
no probs :D
 
aw I can't chat in there because I have no metarep
 
jsBeautifier – jsFiddle Check it out! (may not work in Firefox because GitHub transfers raw .js files with MIME type text/plain)
night :)
 
how do i alert the "value" inside this: <span id="albumNum1">HOW DO I OUTPUT THIS?</span>

i tried
alert($('#albumNum1').val());
haloo :P
 
10:31 PM
change val() to text()
alert($('#albumNum1').text());
or .html()
@Karem I tested it, it worked
 
thanks just tested
 
how can you abort in javascript
can you do exit() ?
 
What are you aborting?
 
instead of doing the rest under i want to exit()
 
10:34 PM
either write a conditional or return from a function
you don't just "exit"
if you want to break the world you can throw and fail to catch an exception!
 
if( $('#albumNum1').text() == 1 ) { // exit(); so it doesnt run below)
 
no
if ($('#albumNum1').text() != 1) { //do the code below }
 
should i do if else then
okay okay..
thanks @DanGrossman
 
10:49 PM
He's gone now... but break or return may have worked...
 
Morning all
 
19 mins ago, by Dan Grossman
either write a conditional or return from a function
 
@MylesGray I got your message that you have careers invites now? :)
 
@Box9 sure, I need your full name and email ;)
post it up so i can copy and paste and delete it ;)
Look at this machine:
 
Hey he's a new zealander
 
10:56 PM
@Box9 sent
Look how many days he's been a member
44 days! and 12K rep
and almost a gold badge in SQL
 
@MylesGray thanks heaps :)
Yeah wow
 
There's a new badge... deputy
 
Max flag weight achieved
 
user1385191
it amazes me how many answers some people have on this site
 
11:02 PM
@MylesGray Oh hey, I've been to his website before!
 
Huh, I got an "unexpected error" when trying to sign up for careers
I guess I'll wait to see if they fix it
 
O_o restart 3 times :D
 
@MylesGray haha, I'm hoping they'll resolve it soon... I'm getting the same error when visiting my profile page
 
just ordered me a Xoom
 
@ircmaxell impulse?
:P
 
11:06 PM
@ircmaxell nice!
 
$200 off cupon
 
any good xoom vs ipad articles?
AWESOME!
 
and yes, impulse. But I've been wanting a tablet for a while. Just didn't want a contract, and wasn't paying full price
So I was going to wait for a Galexy Tab 10, but when I saw the cupon, I had to jump
Should have it in on Monday or Tuesday
 
please let us know how it is :)
 
+1 on that
 
11:11 PM
Let's start a pool. Everyone chip in $100 and we'll share one. Ship it overnight to each person for their turn.
 
What do people think of dropping calling methods and instead going through events?
Instead of obj.method() obj.trigger("method")
 
Darn, just realised I can only delete my most recent chat message? Flagged a message, @YiJiang, please delete for me :)
 
Biggest downside of the XOOM is that it has really crappy speakers, and if you dock it, it sits in front of the dock's speakers making them equally crappy.
@Box9 You can delete any message less than 2 minutes old
 
@Box9: you have 2 minutes
 
11:12 PM
1 message moved to bin
 
@DanGrossman I'm not worried about speakers... I care about how it works
 
@Raynos I'm not exactly sure what you stand to gain from that?
 
@david barely anyone has read access to that room. Or am I wrong?
 
I can read that room, why?
Wait, everyone can read that room, including Google
 
Oh..
The read access thing lied to me!
 
11:13 PM
@Raynos what room? I mean your events instead of function thing
 
Only nominated can talk
but everyone can read
 
@David oh. Less method bloat. More control. Async.
 
I saw the flag but I clicked "NO" because I dont want to end up banning you inadvertantly by accepting the OFFENSIVE FLAG
 
@Dan Oh hehe
 
I think you need an employee to delete it
Else you're forever in Google's index
 
11:15 PM
@Raynos You still need to have a method that will run when the event is triggered though right?
 
@DanGrossman it'll get deleted soon
@david yes but it's not public. Your restriction what the user of your library can do by forcing them through a bind/trigger API.
 
@Raynos ooh, that's a good point
 
Yeah, I just got that
 
@MylesGray yup, that's what I had before
 
11:20 PM
My main issue is whether users get annoyed calling Entity.trigger("init") instead of Entity.init.
 
0
Q: Careers getting error when viewing/editing profile

ircmaxellCareers appears to be broken. I'm getting the Oops page whenever I try to view a profile or edit my own. I have confirmed via chat that others are experiencing this as well: http://careers.stackoverflow.com/cv/editinline => http://careers.stackoverflow.com/error?aspxerrorpath=/cv/editinline

 
@Raynos I think they would. I would use trigger for passing off control, rather than executing a method
 
What would the trigger function do that makes it different from just calling init directly?
 
+1'd
 
and how would you go about passing in parameters?
 
11:21 PM
I figured as much
I also have an Entity.bind("change", f) Is it bad to provide a convenience Entity.change(f) ?
 
I'm loving this new 'deferred' pattern in jquery1.5 though... so much cooler than passing in functions as callbacks
 
:)
 
I'd call it 'onChange'...
 
$.onClick vs $.click
 
@ircmaxell all is well now
 
11:24 PM
gyar... then I guess go with convention
 
cool
 
c9ide crashed. No more dev for tonight. Thats what I get for not committing regurarly enough
 
it seems really unstable atm :S
 
Its back :)
 
I can't even log in because it goes into a redirect loop :(
 
11:30 PM
It is unstable. Its just if the server crashes im screwed
 
@Raynos sounds (even) worse than emacs!
 
It corrupted my fiole
 
can you clear cookies for a single site in chrome?
 
Can you clear cache from a single page in chrome on mac?
It used to be Ctrl + F5 on windows
can't find it on mac :(
 
yeah... even after clearign cookies it won't let me log in
damn you cloud9
 
11:36 PM
@david I use Incognito mode quite a bit for testing something without cookies or cached http auth.
 
is document.createEvent stable cross-browser?
How else would I create a custom native event?
 
@Raynos googling found this article which implies "no"
 
@Raynos $(selector).bind(...., function(){ ...});
JQuery will be your salvation
 
@VulgarBinary no. Those are fake jQuery events. And I'll be damned If I bring jQuery dependancy for this
 
What's your actual problem?
(And JQuery dependancy should exist in all webapps now a days... even mobile development supports it. Solves most cross browser issues, entirely functional, and few side effects unlike raw js. I'm a huge JS fan... but even being an old school purist.. I realize jQuery solves most of the day to day web dev problems that js doesn't handle cross browser itself w/o a lot of blood sweat and tears)
 
11:43 PM
Emulate the node.js "events" module in the browser
 
@Nathan Ah that's a good idea, didn't think of that. I never use incognito
@Raynos can you just copy paste the code? >.>
 
@david yeah I never did either so I was surprised how useful it could be.
 
@david -.-
@VulgarBinary this is a small file (500bytes) Theres no need to bring in another 30kb on top :)
 
What are you actually trying to do? Dom events like clicking and stuff, or your own 'Observer model' style events?
 
@Raynos "One jQuery to rule them all / and in the darkness $.bind(them)"
 
11:45 PM
Your kidding me. The nodejs source is ... synchronous
 
@Raynos only done light playing around with node.js... I won't be much help :-\
 
event.emit ... -> handler.call(this); This is retarded
Turns out it is in JS not in C
I want a proper event loop like node has
So I need to hook into browser events
 
@Raynos are you writting something for an embeded system? sure 500 bytes is tiny but 30k in a browser application isn't exactly huge...
 
or timeouts
@VulgarBinary its supposed to stand on its own. I'm writing code to be re-used by others. Why include jQuery ?
 
18minutes and I can get cracking on that last 52rep to hit 2K :D
already been robbed of 40rep by the cap
 
11:49 PM
I can just rely on setTimeout rather then native events. That'll be easier
 
There may be performance gains if you use that requestAnimationFrame thing...
 
user1385191
yeah custom events are definitely missed in JS, especially at the application level. I really like them in as3.
 
@MattMcDonald thats why I'm implementing them :) And im making them async -.-
 
@Raynos what's your end game? I guess depending on what you're doing are you using the right technology?
 
11:50 PM
Backbone has sync custom events
@VulgarBinary writing a multiplayer node.js / browser game framework. There is no need for jQuery there. It already depends on backbone.js
But this is part of making code portable verbatim between node & browser
Working on implementing commonJS in the browser and essential mutual node.js modules
 
user1385191
@david Personally, I wouldn't bother with anything that only works in FF4 and the like.
 
@Raynos very nice, what are you planning for rendering? I started down the same path about 7 years ago and realized the tech wasn't there yet to do what I wanted
 
It doesn't only work in ff4 though...
 
@VulgarBinary canvas or dom. The focus is on getting the server and the models working. The clientside rendering isnt exciting. For all I care you just get a c++ application to hook upto the TCP socket the server outputs
 
user1385191
@david Right, it works in nightly builds of Chrome and Safari, which is code for not mainstream usable for years.
 
11:53 PM
Hook an openGL wrapper into the V8 and write an openGL API in javascript if you want
@VulgarBinary as a side-project I want to write an intuitive clientside rendering wrapper for the canvas
 
@Raynos have you been following the rendering projects from Google and Moz Labs that are gunning for the same general concept?
 
Nope :) I've been ignoring the heavy weight 3d webgl stuff
 
(ntm silverlight chatter that M$ is looking to hook into dx in silverlight)
 
I just want an easy to use OO wrapper on the canvas
so you can make an object and plant it on the canvas, keep a reference to it and then mutate it.
Rather then messing with the canvas grid directly your delegating manipulation of the canvas to "areas" on the grid that are seen as visual objects
 
11:57 PM
Ew no plugins!
 
web3d.org/about/overview <---- a few places are working around this for js to canvas
 
I'm well aware of webgl but i'm not going for 3d things :)
The browser cant handle 3d smoothly. Not in the state where people can use a library abstraction to render to it.
 
Can't it?
 
You need to know what your doing. You need to hand optimise. Thats fine. There's just no place in that for using a framework :)
 
ahhh.. poo... then your goals and mine that are still on the backburner... are not aligned
 
11:59 PM
My goals are achievable ;)
 
some day, mine will be too
 

« first day (131 days earlier)      last day (4810 days later) »