« first day (312 days earlier)      last day (4654 days later) » 

Tom
12:11 AM
Could anyone on windows confirm that this returns true? (navigator && navigator.platform && navigator.platform.indexOf('Win') !== -1)
 
12:22 AM
seems to here
 
Tom
@david alright, great! thanks
from now on I will only use flash if that returns true =)
 
 
1 hour later…
1:34 AM
RT @richtibbett: Web browsers should not compete on standards development. Standards support, yes in short term. Development of those st ...
 
How does IE9 treat local files in terms of cross-origin policy?
 
1:49 AM
I'd imagine the same way everything does. It doesn't play nice.
 
IE8 will allow local files to XMLHttpRequest cross-domain...
 
2:10 AM
RT @slightlylate: The world needs fewer complacent followers of web standards dogma and more directed inquiry into why they all suck so ...
RT @slightlylate: The time has finally come to stop building parallel, incompatible view trees. We already have DOM. Enter Web Component ...
 
chrome won't allow local files to ajax to local files >< which is frustrating
 
3:02 AM
That's a flag you can pass to chrome to fix that.
@david I think it's --allow-file-access-from-files or something.
 
yeah i've done that now
 
3:14 AM
0
Q: Is it possible to have a link inside a textbox like Outlook(names of the recipients)

J RoqWould this work? <input type="text" value="<a href=jroq@gmail.com>JROQ</a>"></input> How could I make it happen?

 
Anyone have any thoughts on Adobes Muse?
 
 
2 hours later…
5:14 AM
@david Because local files will be under another domain and AJAX calls are not allowed cross-domain for security reasons.
 
 
3 hours later…
7:52 AM
RT @stevefaulkner: HTML5 Accessibility Chops: the figure and figcaption elements http://t.co/pefssor
 
 
1 hour later…
9:18 AM
@david not me, someone else said that
@Tom Y U FEATURE DETECT WINDOWS
 
9:35 AM
Ah what the hell :(
flaggers I hate you
 
@Raynos hey buddy you about for a quick question, about parsing javascript array into a json array ?
 
Sure
 
thanks man your a life saver
 
Array.prototype.slice.call(JSON.parse(json))
 
hmm
var sv_defaultArray = new Array([]);

sv_defaultArray[0] = "post 1";
sv_defaultArray[1] = "post 2";
sv_defaultArray[2] = "post 3";

this is what i have, i am using a plugin called json2.js but my data is getting posted into the json file like this!

[\"post 1\",\"post 2\",\"post 3\"]
0
Q: Write a javascript Array to a json file on another domain

XavierFirst of all i have the following to convert my Javascript array to a JSON array. <script type="text/javascript" src="https://github.com/douglascrockford/JSON-js/blob/master/json2.js"></script> var sv_defaultArray = new Array([]); sv_defaultArray[0] = "post 4"; sv_defaultArray...

 
9:49 AM
Ph
JSON.stringify(sv_defaultArray)
 
yes thats what i have in my code at current
 
Well what you trying to do is save json on a different domain
you cant do that
not with ajax
you can try posting a form to a different domain
 
This is my first time in chat. Can I post my StackOverflow question in here?
 
@user784756 Greetings!
 
well raynos believe it or not, it's actually working i just need it to a prove a concept the final version will be served on the same domain, so im not really after a long-term solution
data is getting passed from the jquery and posted to the json file, but just in the wrong format
 
9:55 AM
@user784756 Paste the whole url as a single message, and the chat will post a neat little advert for your question.
 
@user784756 welcome !
 
Pasting questions in here is generally a good way to get a bit of extra exposure.
 
Thanks guys!
http://stackoverflow.com/questions/7173398/unable-to-get-value-of-the-property-appendchild-object-is-null-or-undefined
 
[].slice vs Array.prototype.slice
Why didnt I think of that
0
Q: "Unable to get value of the property 'appendChild': object is null or undefined" while appending script to IE

user784756When I try to append the following script to IE, I get this error: "Error: Unable to get value of the property 'appendChild': object is null or undefined" It works fine in Chrome, but when testing on IE9 this occurs. Can anyone tell me what the error is? // create script in document var ...

Your not special :P
 
I figured as much.
 
10:13 AM
I'm a little confused.. as always :p
does anybody know a browser/version which supports ES5 (like .defineProperty), but does not support localStorage ?
 
@jAndy canIuse.com
My answer is none
 
@Raynos: I can't think of one either. I'm pritti pritti confused by the "fallback code" on mozillas MDC
62 completely wasted lines actually
 
:P
Someone wrote it in ES5
Why not
Every website should have an ES5 shim
 
no question, but the first conditional makes it so senseless
I'm loading an ES5 shim in my IE6 to access the localStorage ?
 
o/
 
 
2 hours later…
When coding, do you use the word "color" or "colour" on your own variables?
 
Tom
12:39 PM
Is there a javascript library that basically implements console.log and console.error etc. for when I want to distribute my app to testers that don't have firebug etc.?
 
@Greg depends are you american or english?
@Tom tell testers to install firebug
 
Tom
@Raynos ...
 
or inject firebug lite into your page
I mean fucking seriously
opera, safari, ie9, chrome come with console.log etc by default
and you need firebug for firefox
Stop bending over backwards holding the hands of those who are incompetent
If you dont teach those idiots to be competent then one day I will have to deal with incompetent people
If you teach them to be competent then I dont need to teach them myself
 
</rant>
 
I dont like this thing where we keep the client stupid
it helps no-one.
The client stays stupid and every blood developer has to deal with him
 
12:44 PM
I don't know what you're ranting about.
 
Tom
@Raynos firebug lite looks like exactly what I need
thanks
I'm surprised you actually provided what I was looking for :p
 
I'm ranting about ranting
<rant> <rant> <rant>
@Tom I like to tell people they are doing it wrong and give a pragmatic solution to their problem
 
Tom
@Raynos yeah, according to your philosophy most successful IT companies are doing it wrong by the way
 
@Tom they are
We have IE6
We messed up big time that IE6 still has 10% user base
So yes most successful IT companies are doing it wrong
 
Tom
@Raynos I'm an economist (mostly in the field of international business and economics), it really is about the client.. not about the product or engineer.
 
12:47 PM
But I'm not a business man
 
Tom
If you want to sell your product anyway
 
I strive to write pure products. I dont strive to make good business
If I wanted to sell well and make a good business I would have a different opinion
 
Tom
well that explains a lot ^^
 
Meh :\
I wanted to be an entrepenuer about a month ago
 
Is it possible to just want to be an entrepreneur?
 
12:50 PM
No
You either are one or are not
I'm clearly not.
Does anyone have any recommended reading on architecture?
 
I haven't played with jquery for a while, forgot how to use delay(), someone care to explain why this 1 line example doesn't do what is expected from reading the source? jsfiddle.net/g105b/rHawh
 
Preferably node.js compliant
I remember delay being confusing
 
Whats a good html5 shiv to use?
have to develop a site for IE7 > :?
Using Pie for the css, but I want to use <nav> etc.
 
ehm the html5 shiv?
isnt there only one?
 
idk I assumed so but I found 2 :?
heh nm
I think that is the only one
 
I was going to try out modernizer but idk
thanks
 
@Greg from what I can see delay only behaves if you chain animation methods
 
0
Q: How to disable “Unresponsive page” warning in Chromium?

bogdanbI’m using Chrome on Linux to develop a GWT application, and every time I’m stepping through the debugger Chrome complains that the page is unresponsive (which is normal). It’s getting very annoying. I looked through pages of command line switches and found nothing, is it really impossible to dis...

 
It would be awesome if non-commercial software vendors had websites that matched the quality of their software.
That would make finding quality software so much easier.
"Ooh, nice website. I think I'll use this software."
As opposed to "Huh. This site looks like it's from 1995. I wonder if this project is still maintained."
 
Well most github pages are nice
 
12:59 PM
True.
 
Oh software vendors
rather then libraries
 
Yeah. I'm looking for a quality XMPP (Jabber) server that runs on windows.
 
Tom
@RyanKinal write one with node.js ^^
 
isnt there an industry standard?
@Tom ugh node on windows isnt ready
 
Tom
@Raynos well it's not usable at all?
 
1:01 PM
@Raynos That's the thing... I'm not sure. I know Jabber Software Foundation uses jabberd, but I have no idea of the status of the software.
 
@Tom too unstable to be used in production
 
@Raynos Ooh, interesting. I wonder if we have a linux box to install it on...
 
Tom
by the time such project is finished it's probably pretty stable
 
@Tom true depends really
It is quite likely 0.6 will be out before your xmpp based product goes into production
 
Tom
What's 0.6?
 
1:04 PM
node.js 0.6 will be the release where node.exe is stable
 
Tom
ah right
 
@Raynos: yaaaa I saw the announcment. however I don't know whats included here "€499 + Fee + VAT"
is that only the ticket ?
 
Yes
you need accomedation & flights I think
 
good.. I thought there is some kind of accomedation in there which I don't need
 
Tom
ticket for ?
 
1:07 PM
jsconf 2011 (berlin)
 
when is it?
 
Tom
jeez, why are those tickets that expensive?
 
hey guys would any of you know how to access the content of a dynamically generated iframe?
 
Tom
guess they want it to be considered as exclusive
 
I'm happy my company is paying that
but I agree, it's pretty expensive nontheless
 
1:09 PM
0
Q: Returning the clicked item's title inside a Fancybox that loads ajax content

Luis ArmandoI have a Fancybox setup like this: <a id="contentImageAJAX" class="iframe" href="/tools/images?keyword=cat" style="display:none;">g</a> and $('#contentImage').focus(function(){ $('a#contentImageAJAX').click().fancybox({ 'width' : 1280, 'height': 60...

please :)
 
@jAndy nice that your company is paying
I have to fork it out myself >_<
 
sucks :p
 
Hmmm... my boss has asked me if there's any training I want or need...
I wonder if they'd spring for jsconf :-D
 
Tom
@Raynos I guess you're not there to network (considering your philosophies), so you might as well watch the streams ;)
 
Just a short hop across the pond, and I'm there
 
1:10 PM
@Tom Well I am
I need to network
 
Tom
Ahh :)
 
Are my philosophies that bad?
All I want is just support HTML5
 
Tom
No, I was like that aswell, never got to finish anything
 
Well currently im struggling with nodejs server side architecture :\
 
Tom
being a perfectionist and idealist is not an optimal combination
 
1:12 PM
I dont know where to start
I'm slowly converging to a tightly coupled mess in my code
Do you have any recommendations on structuring node code?
 
Tom
@Raynos actually been struggling with the same issue, asked a lot of people. Most of them are just creating modules the way they see fit and don't worry about it too much. I'm doing the same at the moment.

In my roadmap, there is an item "perform complete server side architecture check and make it senseful". heh
 
Yeah it seems like that
It want to keep it loosely coupled though :\
 
Tom
One thing I am going to do, is read through every bit of code, and see whatever logic I can isolate to an independent module and publish those on github
 
Do you have any examples of structuring express based websites?
 
shouldn't be a problem with nodes event emitter ?
the loosely coupling
 
Tom
1:15 PM
@Raynos not really, I am pretty sure I am doing it suboptimal myself. I just create a module for every route, etc.
 
@Raynos: oh, you're actually using Trait :)
 
Oh and then theres is a ton of code in there?
@jAndy yes
My routes are very clean
 
Tom
@Raynos well yes, one route especially is too big for my liking
 
The problem is I'm treating all the middleware as loosely coupled things and they are not.
They seem to want to talk to each other
 
Tom
@Raynos I gave up on the entire loosely coupling thing.
 
1:17 PM
I live for the loosely coupling thing
 
For example : My hash validation wants to talk to my data hash generation
 
Loosely coupling forever ! and ever!
 
@jAndy do you have any examples of node code?
 
Tom
I think jAndy is right about the events. But yeah, I need to sort my architecture out some day.
 
@Raynos: nope sorry. No code there yet, but I don't see why node should be so special about it ?
 
1:18 PM
It doesnt
The only way I can deal with architecture is emulating MVC
 
Tom
@Raynos you probably need to use MVC
 
and I dont want to do that, feels like using the one tool I have
"What do I know? MVC. Let's use that"
I need to expand my toolset instead
 
Tom
@Raynos this is my bootstrap on the server side
gist: 1168032, 2011-08-24 13:19:59Z
//NOTE: $NODE_ENV should be set to production when in production

//handle arguments
var argv = require('./init/argumentsConfigurator')();

//node references
var util = require('util'),
    express = require('express');

//show NODE_ENV
util.debug('Environment NODE_ENV: ' + process.env.NODE_ENV);

//create express http server and configure it in serverConfigurator
var server = require('./init/serverConfigurator')(express.createServer());

//setup socket.io
var io = require('./init/ioConfigurator')(server);
util.debug('socket.io has been setup');

//start listening for connections at the given port
server.listen(argv.port);
util.debug('now listening on port ' + argv.port);

//setup controllers
require('./init/controllersConfigurator')(server, io);

//keep track of all uncatched process, server, io events
require('./init/uncatchedEventsListeners')(server, io);
as you can see everything is coupled.
 
Tom
pretty bad, but hey I will resort to something better some day.
 
1:21 PM
So your routes do everything?
You have your validation, autherization, database access and data rendering in your route files
 
Tom
@Raynos yes :x
 
Ok.
At least you get shit done :P
It's the PHP way
 
It looks like node-xmpp, unfortunately, is not what I want.
It's more of a library than an all-in-one server
 
@RyanKinal of course it is
 
Tom
@Raynos maybe we can convince someone to give a proper presentation on a Express server architecture. That is, express app that does more than service static files. It should have lots of complex logic.
 
1:23 PM
If you want a thing that just works you need something else
@Tom I'll ask TJ for example sites
 
@Raynos Sorry, I thought that was clear when I said "XMPP server"
 
@RyanKinal thats just not the node way.
The node way is you set up your own server and talk to a library
You need a different product
 
Tom
@Raynos I'm also passing server and io to every single module :x
 
@Tom \o/
That's ok
 
@Raynos Yep. Still looking.
 
1:25 PM
I pass app to all my routes
They need it
 
app should get passed into each module
 
Tom
I think "app" is a very misleading and awfully worded definition, set by express examples.
The application is not the server object.
 
its consistent :P
If your doing express
 
Tom
I called it "server".
 
you know what app is :D
 
Tom
1:26 PM
Because it is a http server
Yea, but it still does not make sense
 
If you prefer call it router
It's your application though
your application is the http server
 
Tom
Not really
 
Unless you set up socket.io or another TCP port
 
Tom
my application does much more than that @Raynos
exactly
 
then your application has multiple IO ports. Most applications only have a HTTP IO port
 
1:28 PM
I'd also agree "app" is bad karma. Since your "app" could (should?) contain like anything related to your application. the "router" should be part of the "app"
 
Tom
@Raynos I find your project github.com/Raynos/raynos-blog very confusing. If you would put all source files in a src folder it would be much easier to separate code from things like package.json and tests
 
Good point
 
Tom
@Raynos what's your definition of middleware?
 
@Tom any method that does route handling is middleware
In my website everything is middleware :P
middleware contains route specific middleware
 
Tom
@Raynos middleware should connect two sides and pass data between them, as far I as know.
@Raynos if you had to handle socket.io events emitted by the client, where would you do that?
 
1:40 PM
Dont know
Really dont know
I plan to set up generic middleware system
and send socket.io through middleware aswell
 
Tom
@Raynos same. I just created a "controller" and created a submodule for every kind of event that needs to be handled
seems to work, but whether it's "proper" is another question
@jAndy ever created complex applications with express or sinatra?
 
@Tom: no. Unfortunatly no, I'm pretty interested in express.
@Tom: I'm currently working on my own framework solution however, github.com/jAndreas/BarFoos
 
Tom
interesting
 
lol... nice typo
"has no idea about the web application as a hole"
 
Tom
@jAndy heh I actually over-read that
have you ever implemented something with your own framework?
 
1:49 PM
@Tom: actually quite a lot. we're using it in my company. Cannot share that code, but I'm recreating www.typeofnan.com with BarFoos
unfortunately, I need to extend a day to 37 hours or so to find enough time
 
Tom
My issue with loose coupling, and sandboxed components, is that while it sounds like heaven in theory, it never really works out in practice.

For example, say I have a button that is being clicked. When it is being clicked, I want to disconnect from the server.

So, either the server module has to know about the button module. Or, the button module has to know about the server module.
I know your solution to this is to create "glue", or a "mediator"
 
@Tom: It does work, you just need to spend more time on the drawing board and organisating things
It especially works great in combination with promise makers
 
I'm wondering about the best approach here for making a lot of dom changes...
 
Tom
@jAndy yeah, you are definitely right. When I think about it I never really drew an architecture for considerable amount of time
Incognito raises a very interesting point that I have come across a lot.
The DOM is an entire new problem
 
@Tom meh you just fire the disconnect event
 
Tom
1:52 PM
It's like a global thing that is just out there
 
Should I programatically add children via dom to build something that's roughly 133 elements, or should I just dump a string in and call it a day?
 
the DOM is the beast we need to control :p
 
and something listens to disconnects and disconnects you
@Incognito domfragments
 
Tom
@Raynos what is something?
 
@Tom that magic thing that just works
 
1:53 PM
lol
 
Tom
@Raynos that thing that does not exist
 
I dont know
the connection manager
 
Tom
@jAndy would love to see how you do it. I have so many examples of difficult edge cases where I just cannot apply loose coupling. I wish I could show you.
 
yes, some module which takes care of connections
 
You guys cant see that can you
 
Tom
1:54 PM
No
 
@Raynos: denied
 
Thought as much
It's not mine. It belongs to @yojimbo87
 
@Raynos Nothing works man, not even gravity once you really look into it.
 
@Tom: you specific problem from above is easy to solve with the "core mediator" (the thing that just "works") btw
 
Tom
@Raynos that's the entire problem. "some module which takes care of connections" does not know about someButton. Thus, it cannot do someButton.on('disconnect', disconnect)
 
1:55 PM
Thats because theres a central thing
That everyone listens to and binds to
theres a middleman
Everybody knows the middleman
Thats why everything is loosely coupled
 
thats what I call a "Sandbox"
 
Tom
@jAndy yeah, that's basically glue. So you create a disconnect button and you create a connection manager. Then, you create a mediator that listens for the button's press and then calls connectionManager.disconnect(); Am I correct?
Ah.. you have one global event handler?
 
Yes
Pretty much that
Well multiple really, you have one on the client
 
Tom
@Raynos basically like my Broker module I created months ago which you totally flamed to the ground? :D
 
one on the server
 
1:56 PM
@Tom: almost. Modules can register for event listenings and dispatch events.. those things are passed down into the core
to the core takes care of everything, also the event pool
 
One that manages a cluster of node processes
@Tom maybe
 
Tom
Actually, it seems very simple with a global event handler.
Should I make it a global and call it "mediator"?
 
you need a "global" event pool object, which is managed by your core application, yes
 
Tom
Or should I make it a static module and do:

var mediator = require('mediator'); ?
 
Now with /src/ folder \o/
 
1:59 PM
don't think its a good architectre to hold such a key/core functionality in a module, even in node
that must be "just there" and working, and great and perfect
 
Tom
@jAndy I guess you fire events with namespaces? something like mediator.emit('interface#disconnectButton#click');
 

« first day (312 days earlier)      last day (4654 days later) »