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

12:08 AM
 
RT @mfinkle: Want to work on Firefox Mobile? Frontend (http://t.co/g0FjnEY) and Platform (http://t.co/sWWbOPn) positions available
RT @doublec: I blogged about my temporal media fragment work in firefox http://t.co/5l1ZfVH
 
12:33 AM
can i ask a jquery question taht i cant figure out?
 
12:47 AM
shoot it sebas
 
1:12 AM
@Raynos do you think I should have used Node for my blog, over ASP.NET MVC?
 
1:42 AM
anyone knows jquery?
i have a table, inside of it here is a tr that has a td which contains "4a.Contrata". That same tr has a td with a price like "$125.45" and that price is the same number as ANOTHER td that is inside the table.
What i want to do is add a css background yellow to those equal two prices.

Right now all im doing is adding a yellow background to the tr where "4a.contrata" is:

$("#fichadelcontacto tr:contains('4a.Contrata')").css("background", "yellow");
 
I just got a node/nginx server set up, was quite fun to do
threw up a small chat app on there just to test... sooo easy :o
going to switch it to long polling, then move on to socket.io
 
http://jsfiddle.net/GBqWu/

here is the html of the description i made before, basically im trying to add yellow background to $162,87 both the price that is inside the table and the one that is right next to "4a.Contrata"
jsfiddle.net/GBqWu/3 this is the right link
sorry ! this one jsfiddle.net/GBqWu/4
 
2:02 AM
how do you view the page source of a page using the url?
 
 
1 hour later…
3:32 AM
1
Q: jQuery - programming style - many bindings vs. conditional single one

Jacek_FHI frequently see code like that: $("#foo").live("mouseover mouseout", function(e) { if (e.type == "mouseover") { $("#foo").append("<div id='bar'>"); } else { $("#bar").remove(); } }); instead of more self-explanatory in my opinion: $("#foo").live("mouseover",...

 
 
3 hours later…
6:54 AM
Any one would like to help me regarding using soap with js
@ircmaxell hi
 
 
1 hour later…
8:04 AM
@ThomasShields depends
ASP.NET MVC is more marketable then node.
If you aim to sell the technical experience you've learned from building your blog then learning PHP / ASP.NET MVC will make you more sellable
I'm going to set aside tuesday to hack my own blog together
@david yes it is. Awesome right?
 
8:18 AM
I will admit ASP.NET MVC is probably easier to use for a blog.
But I will also admit node is better.
 
9:14 AM
posted on August 08, 2011

Today we’ll finish the report on the Q2 2011 mobile browser stats according to StatCounter by treating the six countries with the least mobile browsing market share. Remember that the methodology of the detection changed in late April. Part 1 appeared last week. Your donation for keeping this series up and running would be much appreciated. Mexico The development of the Mexican mobi

 
Hello, anyone there?
 
 
2 hours later…
11:26 AM
hi all
help on this please
0
Q: listener on tab click or activation not working properly / extjs4

astrocybernautefor my application that im developing with extjs4 and c#, im based on the browser-layout example. so i have a menu on the left side , then on clicking on each item of that menu i have on the right side all my tabs now the listener im using on the tabs only work when i do click on the tab, but d...

 
11:51 AM
2
Q: JavaScript based Audio player.

I am trying to find an Audio-Player, javascript based. I have tried a bunch of them, but was unable to find one with "Analytic", "Caption", "Control-Bar" etc other features. Can I have some suggestions, where I can find such an audio player. Preferably free. ;) Best Zeeshan

 
12:27 PM
RT @mozpub: Let's use dom3d to 'Render 3D with CSS and Javascript' says @jlongster http://t.co/UZbtzap
 
12:42 PM
@Raynos okay. agreed. You can run Node on Windows, right?
 
1:03 PM
@Raynos You're writing a blog engine in node?
 
1:21 PM
this is odd
html {
    background: -webkit-gradient(linear, left top, left bottom, from(#DDD), to(#FFF));
}
I use that, but for some reason the bottom (under the text) becomes #DDD
 
@DontCare4Free jsfiddle demonstration please.
 
@Incognito now this is another odd thing, when I try using jsfiddle it gets even odder
 
Assigning to the body tag results as expected.
The HTML is assumed to be HEAD, and the html{} ends up styling the body. I'm not sure if this is as per w3, or some kind of oddity.
This could be an interesting question. What happens in other browsers?
Wait, I've said the wrong thing. ---
The HEAD is ignored, the section of HTML that wraps body is styled, but the BODY isn't inheriting the HTML's css
Also noteworthy, JSFiddle "normalizes" css
So, to summarize....

HTML styles aren't being inherited down to the BODY. Not sure if this is w3c or webkit oddity.
 
oh well, I think I found out why it happens now
it seems like the gradient is repeating itself
so background-repeat: no-repeat; did the trick
 
The gradient height is being based on the height of body.
Gradients like that can be messy,
 
1:33 PM
seems so
 
hey, people!
 
Morning.
Well, not for you ;).
 
afternoon all
 
afternoon
 
how can I ad some text to the one that is selected and copied to the clipboard on my site using JS
@Incognito yeah, it the end of the working day over here :)
 
1:37 PM
@dr3w Your best bet is to use a flash shim to do it, there's a lot of browser related issues doing that, such as, internet explorer is really the only one who likes doing it.
@dr3w I just got into the office, haha.
 
smth like using
http://code.google.com/p/zeroclipboard/
?
 
any one know using SOAP with JS
?
 
That'd work fine.
@AjayPatel Is it on the same origin?
 
i thought maybe there is exclusively a js way to do that BEFORE it gets to the clipboard, something like appending contents to the selected text
or am i going somewhere wrong here? (:
 
@Incognito how hard can it be
I should have something hacked together tomorrow
@ThomasShields kind of
0.5 runs on windows buts its a bit ustable
0.6 will be out soon
 
1:42 PM
@Raynos okay. cool. I'll check it out when I've got some time. Which is probably not until 3 months from now. But I'll check it out. Promise.
 
No, generally they don't let you play with the clipboard just because of abuse potential. What if you kept track of the clipboard data elsewhere and just replaced the 'updated' text?
 
0.6 will have a stable node windows version
 
@Incognito you knw this
 
@Incognito ok, thanks, will be trying out that plugin
 
@Raynos Oh I just think that's cool is all. Will you be doing a github thing?
 
1:45 PM
As mentioned it should bloody well work tomorrow
right now it does nothing of value
 
I've been looking at building a personal site to publish my various rantings and writings, and errata, I've thought about doing it in node just to learn it, but my host is a lamp stack and I don't have shell access.
 
Request nodester and joyent tokens
wait for your node server
code.
 
Nodster and joyent? Never heard of these.
 
there hosting services
curl for a token then wait to be given one
not sure what the limitations are
I think nodester will hate me pretty quickly once I start spawning processes
 
@Raynos this might sound crazy but any guidelines on how to connect php to Node
 
1:48 PM
@Darkyen lol fail?
use the same database
 
@Raynos It's cool how they verify you know how to do soap, or at the least, run a command.
 
if you need direct talking (which you dont). Oh you dont.
PHP is share nothing
so they dont need to share
@Incognito soap? It's just a HTTP request :\
 
So it is. Sorry, I've been eyes deep in new API over here that's soap, right now everything is soap.
 
soap ;_;
y u no json
 
@Raynos i think Php is better for its power then speed
 
1:50 PM
Because the OpenTravelAliance decreed these standards and now we're all standard, unless I end up writing a better standing, and now we have 15 ;).
 
no offence to node or anything and hence i wanted to use good of both world .. database isnt a solution
 
@Darkyen what power?
 
Raw unlimited power levels over 9000, of course.
 
Sorry we seem to have this illusion that PHP is more powerful then node
the only real advantage PHP has
is being stable, hosting everywhere and lots of noob developers who can ruin your code
 
1. stability , 2. ease of programming for desgining logins etc. and again its extraordinaryily large support
 
1:52 PM
at least with node you wont get any shit developers messing your code around
 
@Raynos I'm seriously impressed by this company's support for helping devs get running. http://www.farelogix.com/developers/gettingstarted.php

Normally in this industry it's "Don't like it? We hate you, give us more money or we tear up the contract!!1" and "Documentation? We don't need to give you no stinkin' documentation! PRODUCT IS AS IT IS"
 
3. CentOS does not dies when using it (x
which normally destroys my Node.js
 
@Darkyen why u centos :\
"community enterprise" :D
 
My server host and sponsors wont let me anything better
 
thats some epic lols
 
1:53 PM
lol
 
run your own box
get a private linux box
use joyent
 
I have a dedicated server
 
oh dual boot linux on it
 
any one would like to help me
 
which is sponsored and sponsors want epic realtime web-apps with classical stability and features (somewhat php coded)
so i was trying to find a way b/w connecting them
only thing i think is being V8 will node be able to do xmlhttprequests to server ?
and php serves it json as if it was a browser
 
1:55 PM
@AjayPatel I tried, when I asked you a question you asked if I knew what you were talking about.
@Raynos How long's the nodster token usually take? About a day?
 
0
Q: what is wrong this JS ? got this error: cannot use object of type stdclass as array

Ajay Pateli am using SOAP with JS. Here is a code, i dont know what is problem but i am getting error: cannot use object of type stdclass as array I think problem is the random value i am passing. var xmlhttp = new XMLHttpRequest(); xmlhttp.open("POST", "http://service.project...

 
can you examine your output in console ?
because stdclass is found in PHP
 
This guy seriously just answered a HTML/CSS question with jQuery. It wasn't even tagged jQuery or JavaScript!
-2
A: simple question about css multiple divs

R-Tard$('th', 'div.tbr01').css('width', '100px');

 
@Incognito about 10 for me
@Darkyen epic real time is node full node
do the entire thing in node. End of
Otherwise build two applications
the real time application and the website
make a solid distinction between the two
If you really must have communication between node and php then do it with a shared data pool in redis
if you must hack the hell out of it open a tcp socket in node and connect to it in php
but thats fugly as hell
dont do that
 
I think i am going to go for the 2 applications
with communication
on redis
 
2:10 PM
What's the purpose of smashing the user interface and data/logic into one another?
Or are we using this node/php hybrid to overcome some PHP shortfalls?
 
not exactly
 
Why are you working with both then?
 
i am still learning node and i cannot go as free as I am on Php as on node
so for a website thats done on php already
 
Is this something you're doing related to work/job/money?
 
instead of re-doing it on node its better to change some part with node where more realtimeness is needed and the rest stays on old php
yes @Incognito
 
2:14 PM
Be very very careful. I'd advise against this entirely right off the bat.
 
okay
 
It's going to lead to endless problems down the road for you, or the psycopath that maintains the code after you leave. And you don't want to upset that guy.
What's the actual problem? Is the problem that you're not using node? Is it impacting the company's bottom line?
 
bottomline
there whole server is done on php
 
Ask yourself, "how else might I accomplish this?"
What are you trying to solve by using node? Can you not accomplish this another way?
 
@Incognito the thing is
proper real time stuff in PHP is a pain in the ass
 
2:17 PM
Have you reached a point where you need to use node?
 
the alternative is using a pusher engine
 
@Raynos Agreed entirely.
 
i already have done 99% of code for the applet using node
trouble is combining it with existing buildup . they dont want to lose there php features.
 
@Darkyen the alternative is using ape-project
 
and stability
 
2:18 PM
@Darkyen the thing is
 
The advantages of node make sense, but if adding node to it will end up being being a pain down the road for darkyen or his replacement, it shouldn't be done.
 
the node stuff is new
and seperate
if it cant be new and seperate
then meh
 
@Raynos . one thing i just thought
 
As mentioned you can just do it in PHP
Using ape
 
what if i use node to serve PHP purpose that will be long.
but that can be done
all they require is the rest of there applications to be connected to mine and vice versa . node can fullfill this purpose just will be tricky and hard to do so .. here is what i think ->
 
2:20 PM
really you want to know what overlap there is
between the existing PHP codebase
and the new node based functionality
Basically the easiest thing to do
is to use PHP for your website
and have node run a socket.io websocket server
 
agree thats what i am thinking atm
static or php-pages with Node to add realtime dynamicism.
1 last thing
any place where i can find redis for windows ? for testing purposes ?
 
oh
who knows
see if it has a windows installer
 
lol lets google then
thanks for the help guys :)
 
or reboot into linux
 
found windows binary
 
2:26 PM
Work time, I'll be back later all.
 
cya @Incognito :) have a good day :)
 
Hi everyone
I'm having problems dynamically creating a tweet button. If you've any expertise in this area please help me out: stackoverflow.com/questions/6981905/…
 
hi
is there any node/commonsjs library for "converting" between "byte array" UUIDs and "string" UUIDs?
nevermind, found it
 
2:50 PM
Generic question - not JS specific - is there any reason to have a try/catch if the catch block is empty?
 
@RyanKinal I'd say yes, incase you don't want to propagate errors
 
@DontCare4Free Okay, so for error suppression. I suppose that's valid sometimes.
Though, honestly, error suppression in general seems like a bad idea in web development. It just feels dirty to me.
 
@RyanKinal true
 
You certainly don't want users (coughhackerscough) seeing your errors, but I feel as though they should be handled rather than suppressed
I ask because every damn "subroutine" (stupid VB) around here always has a try/catch block, with an empty catch.
And it seems pretty useless to me
 
okay, that really sounds useless
hmmm, this is odd
var net = require('net');

net.createConnection("localhost", 4000, function() {
	console.log("connected");
});
just exits, although the server gets a connection
but the client never recognizes it
 
3:06 PM
Is this a fair test of function call overhead? jsperf.com/function-call-overhead-test
 
var net = require('net');

net.createConnection(4000, "localhost", function() {
	console.log("connected");
});
 
How to Ask is that possible to traverse all dom element of html, and assigning click event to every of them?
*is that possible to traverse all dom element of html, and assigning click event to every of them?
sorry [ a s k ] turn to that "How to Ask" link
 
What?
 
@ayublin It is possible, though not recommended. You likely want to use event delegation
 
@AmaanCheval, regarding your comment on the jsperf I posted, the point is to measure the performance penalty you incur just for making a function call. It's obviously going to be slower, but the question is by how much
 
3:15 PM
@Radu Ah. Well, clearly, a lot.
 
1 order of magnitude in most browsers.. assuming the test is fair
 
@AmaanCheval @RyanKinal I want to achieve something like firebug, so we click on a dom element and it will be highlighted or I can get the tree path representing the element.
@RyanKinal oh event delegation, okay i will google about it
 
@DontCare4Free ehm
all your doing is creating a connection
then you dont do anything
so node is clever
 
@ayublin Ah. Well, then it's possible, but you wouldn't want to do that
@Radu Yeah. More than I expected
 
try function(socket) { socket.on("data", function(d) { console.log(d); }) }
and realises that the rest is dead code and just quits
 
3:19 PM
@AmaanCheval okay, so it's a bad idea XD
 
@ayublin Hahaha, yeah
@ayublin Try using document.activeElement
Anyone here know how I can get the tagName of an element I already have access to?
For instance, document.getElementById('span').tagName would return span
 
user1385191
what?
 
There's a span on the page with the id 'span'
I don't know whether or not it's a span
I can access the span using its ID, but I don't know what type it is
Is there any way to find out?
I want to access the tagName of an element, the same way I can access its style attributes and id's and everything
 
nodeName, i think.
element.nodeName;
 
Nope. nodeName and tagName both return BODY
 
3:32 PM
not sure if that's exactly what you want tho
 
That is
 
what's wrong with tagName as you posted?
 
@AmaanCheval then you have the body
 
@Raynos Actually, no. I have a div.
 
Actually no
 
3:33 PM
I'm using the script document.onclick=function(){document.write(document.activeElement.nodeName)}
 
If .nodeName and .tagName return body
then you have the body
 
Right
I know that's how it's supposed to be, and it works for textareas
But not for divs
If you're talking about the function() part, Chrome won't do anything without it
@Raynos So, what'd I do wrong?
 
user1385191
Element.tagName.toLowerCase();
 
user1385191
is usually what you want
 
user1385191
oh, and please never use document.activeElement again
 
user1385191
3:38 PM
be a good person and use Event.target | window.event.srcElement
2
 
How would its case matter?
 
hey all
 
I still don't get the div element
@MattMcDonald Hahaha, okay
I'd just seen it being used in some chrome extension
 
Flaggers ¬_¬
 
Picked it from there
 
3:39 PM
can anyone help with an IE css issue?
 
What's wrong with it though?
@MattMcDonald That returns the div. Thanks
 
user1385191
go ahead and ask
 
@AmaanCheval sorry just afk, okay thanks going to google it too.
 
@ayublin Well, as I just found out, don't use activeElement. Use window.event.srcElement
 
@MattMcDonald on broadwayexport.com/demo/new there is a stray border in the menu on the right in IE. how do I fix that?
also the menu is stretched
 
user1385191
3:42 PM
it's the padding
 
user1385191
you told me you knew the IE box model
 
user1385191
why do you lie?
 
@MattMcDonald haha i dont. never said i did.
how do i fix it for IE then?
 
@MattMcDonald Where'd you learn that we shouldn't use activeElement?
 
@MattMcDonald it worked yesterday. how could it be messed up today?
 
user1385191
3:44 PM
oh, and that border on each li is the likely cause of the horizontal stretch
 
user1385191
in ie, width = width + padding + border
 
@AmaanCheval oh okay, glad to see more new thing(for me) thanks :)
 
user1385191
@AmaanCheval where in the world did you learn to use it?
 
@MattMcDonald one thing at a time
how do i fix the stray blue border on the right?
 
@MattMcDonald JavaScript, as a whole, using podcasts and (sorry, was a newbie) W3Schools
 
3:46 PM
@MattMcDonald then how do i fix the menu under products...
(i hate IE...)
 
activeElement, I saw it used in a Chrome extension
 
user1385191
try testing without the padding
 
@MattMcDonald but then it looks bad in all other browsers
 
user1385191
do you understand the point of testing?
 
@MattMcDonald yes. and I dont have IE... just looked at it now in IE and it looked like crap..
 
3:49 PM
@Neal just switch it around to use a left-border and use the first-child pseudo selector to kill the border.
 
@ThomasShields im using ur template u gave me a couple weeks ago
 
user1385191
I see no difference in netrenderer from the first link
 
@ThomasShields how do i fix the stretch?
 
@Neal yeah I know. I assumed you knew how to care for it. :P
 
@ThomasShields as did i...
 
3:51 PM
@Neal one second.
 
@ThomasShields k thnx ^_^
@ThomasShields also the dropdown by products is messed up in IE
 
which IE is it messed up in; looks fine in 8 and 9
 
@ThomasShields look at it in IE 9 compat view
(or 8)
 
as to the border thing: switch out the border-right declaration for a border-left declaration. Then apply the first-child selector on the list items and remove the border-left.
 
I got that
 
3:53 PM
RT @dalmaer: Dave Hall has released html5media. A full shim for <video> and <audio> http://t.co/KIy0jyy
 
and the stretch?
and the menu...
:-(
 
one second; i'll brb. Can you type out exactly what your problems are?
oh, I see. IE7 messes up; not IE8.
change padding-bottom:29px to padding-bottom:9px, for starters.
 
user1385191
IE compat view essentially == quirks
 
user1385191
which means IE box model
 

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