« first day (416 days earlier)      last day (4538 days later) » 

12:05 AM
@Chris not for all firebug extensions
for example ySlow's implementation in opera kinda sucks
but i have not found any debugging feature that wasn't there
.. and there are some that Firebug does not have , like remote debugging , and stability of JS debugger when used with breakpoints
hell .. firebug is still freezing the browser if you put a breakpoint in JS code, upload updated JS version to the server and press F5
 
 
3 hours later…
3:10 AM
good morning
 
0
Q: Who first created or popularized the original XMLHTTPRequest / MSXML?

makerofthings7I'm trying to understand the origins of AJAX, and think MSXML and XMLHTTPRequest were the objects that started it all. Which came first, and/or became the defacto way to create dynamic pages?

 
3:28 AM
anyone knows how to iframe just a div of a page into another webpage that is on another domain? stackoverflow.com/questions/8394791/…
 
3:39 AM
5 messages moved to bin
 
@Raynos Not sure if you resolved, basically you need to translate to normal text with utf8 or translate &abcd; to Ӓ or however the numbered form works.
Also your reddit post is going quite well.
Not better than my trolls cough, but still, quite well.
 
4:01 AM
its not about well for me
its about up/down ratio
Which is cool :)
 
Dee
4:31 AM
hello guys
just want to share my question with you
0
Q: php ajax two select box

DeeI am quite new to this jquery ajax. What I want to know is how can I populate the content of my second select box based on the selection from the first select box. Say here is my HTML: <form method="post" action="tosomewhere.php"> <table> <tbody> <tr> <td> <...

quite really confused with the jquery ajax
 
4:57 AM
@Raynos Does node.js have a means to download other files (ie, libcurl or similar), if so, does it block or is it in the non-blocking IO?
 
...
It has a http api
@Incognito y u no read docs
and by obvouis that is non blocking
Seriously though, for out going http requests you want request
If you want to download files over another protocol then search the npm for a driver for said prototocl
 
 
1 hour later…
6:22 AM
Can you specific specific onComplete events for multipul lists with Mootools Sortables?
specify specific*
like if you drag an item from list A to list B it will change the items ID tag to something and if the same item is dragged from list B back to list A the ID would change back to what it was before? Nothing dynamic, just generic IDs
 
posted on December 06, 2011 by Vasilis

HTML5 Advent 2011 We all know 24 Ways, the Dutch Fronteers Adventskalender, Mozilla’s MDN Holidays calendar and the übernerdy performance calendar. Here’s another one, and a very nice one indeed! It’s called the HTML5 Advent 2011. The name is already incorrect, it’s got some excellent CSS stuff in there, like this page about counters and this handy page about cursors.

 
 
1 hour later…
7:33 AM
hello
need a freelancer for a php/javascript project - 100$-500$ budget
 
8:11 AM
hey celebo, what's the project?
 
8:38 AM
hello?
 
request from @ryosukeniwa for feedback on updated “UndoManager and DOM Transaction” draft http://lists.w3.org/Archives/Public/public-webapps/2011OctDec/1387.html
 
9:16 AM
RT @hakimel: Interesting talk from @tabatkins on upcoming CSS features. <3 grid-template & attr() http://www.xanthir.com/talks/2011-12-05/
RT @beverloo: Reverse flexible rows and columns, Socket API and Panels http://goo.gl/9QeKO #Chromium #WebKit
RT @EricssonLabs: First, Understand Your Screen « James Pearce http://ow.ly/7Otkf
0
Q: Prototypical Programmer/Engineer for Client-Side Dev in HTML5

dougOur next game will be built on Javascript/HTML5 Canvas rather than ActionScript/Flash. Clearly there are not enough experienced HTML5 Developers in the market (yet), so we'll need to be creative in our hiring efforts. So the question is what the profile looks like for that model developer who...

 
 
3 hours later…
11:56 AM
RT @ODevRel: Introducing ECMAScript 5.1, http://goo.gl/nSwdo, by @miketaylr.
RT @mahemoff: is.gd/LpxhYo Uxebu's look at current issues with iOS's HTML5 audio support...and some very cheeky workarounds. /thx @alex_ ...
RT @ODevRel: HTML5 custom protocol and content handlers, http://goo.gl/a9c2x, by @miketaylr
 
why so dead in here
 
@Esailija it's about 5am my time. what about you?
 
2 pm
 
europe?
 
gmt+3
 
12:02 PM
gmt+2
 
anyone else having probs with the stack overflow site?
 
@AndyE: nope
 
Hmm.. Chrome is refusing to load most of the cdn.sstatic.net files for me. Meta seems to be working OK, though.
 
well I'm on ff8 however
 
Same problem in Firefox
First message in console is
> StackExchange is not defined
 
12:15 PM
0
Q: Uploadify FOLDER

Dileep DilI am using Uploadify to upload Files and using Codeigniter framework. Here is my Uploadify code : $("#change_profile_icon").uploadify({ 'uploader' : '/project/style/scripts/crop/uploadify/uploadify.swf', 'script' : 'http://localhost/project...

 
can't be a DNS issue if meta loads the CDN files fine...
 
@AndyE: looks pretty much like a routing issue
 
I'll just wait to see if it resolves itself.
 
@DileepDil, too localized methinks
 
Hello. Can anyone help me with my question? stackoverflow.com/questions/8399196/…
 
12:23 PM
if your code contains href="javascript:void(0);" then there are deeper problems then one you describe
 
@AndyE: can you shortly call typeofnan.com with Chrome and lets the box re-adjust by hovering over the menu items please
does it seem to work fine? I'm getting somehow stuck sometimes so the box won't rotate properly
Chrome 15
its such a mess to deal with transition animations in js correctly, pretty odd sometimes
 
@Raynos Earlier today is the answer as to when Opera will ship a release with ES5 support.
 
1:15 PM
RT @ImYoric: Introducing OS.File – native file management for #JavaScript http://tinyurl.com/c4tza52 .
 
1:39 PM
@gsnedders \o/
@gsnedders 11.6 has es5 support?
 
@Raynos Yup
 
4 messages moved to bin
 
 
1 hour later…
2:50 PM
hi, is there a way to search within a form (with multiple <inputs>) a particular <input> with for example the attribute "name" setted to "foo"?
I mean without looping through the getElementsByTagName('input') array
I'd like to get it directly, for example var a = div.getElementsByTagName('input') where name="foo"
 
When you have several bags, can you know which one has oranges in it without going through the bags?
 
no, but I thought there was a "faster" way
 
@BeNdErR The DOM isn't a magic pile, it's a tree structure.
 
There's document.getElementsByName, but it's global. And in any case, any one-line solution would have to do some loops
 
@Zirak Can you make posts to hacker news? I have a feeling my firewall is bulls**t.
 
2:53 PM
@zirak @incognito ok thanks
 
Not registered to hacker news, sorry
@BeNdErR np
 
anyone got time for a css question? (I have the solution, just wondering why it functions this way)
table tr:nth-child(even) td { background-color: #F00; }
table td:last-child { background-color: #FF0; } /* I do not update the even rows */
table td:last-child { background-color: #FF0 !important; } /* I do */
I thought order of operations took precedence - shouldn't the second line overwrite the fist on all rows? or is the pseudo selector causing that rule to be applied after the td:last-child
 
4
A: CSS precedence

Mr. Shiny and New 安宇Most of the answers are correct in saying that this is a specificity problem but are incorrect or incomplete in explaining the specificity rules. Basically in your case .rightColoumn * is "more specific" than td and so that rule wins even though it comes earlier. The CSS 2.1 rules are located h...

If you used table tr td:last-child it may be more specific.
 
Your extra selector in first rule gives it higher precedence than second rule, and the 3rd rule important takes the match
 
@Incognito that did it.
stupid css
 
3:05 PM
CSS precedence is weird as expletive deleted.
 
@Incognito It's not, its actually very simple.
Well, for @rlemon's case at least it should be
 
Sorry, I mean it doesn't work the way I'd like it to.
 
The correct term is specificity, by the way
 
ugh, CSS is showing differently in Chrome than other browsers... Is Chrome the new IE6?
 
BLASPHEMER!
 
3:11 PM
in CSS, 9 secs ago, by Greg
Why is Chrome showing a huge gap to the right of the <section> ? http://jsfiddle.net/g105b/QX49M/
 
@Greg text-shadow?
 
@YiJiang no, margin
 
Margin? The box model should have full compliance on all modern browsers
 
@YiJiang have a look at the link on jsfiddle I just posted
 
Works for me, I see a 16px margin between the two elements
 
3:13 PM
(updated the text to make more sense - the text was written for another issue I had earlier)
@YiJiang the problem is on the right of the <section> - hit refresh to see the new version
 
yeah the right space is bigger in chrome right?
 
It's because it's floated left, and thus shoved up against the image
 
Interesting, yeah, the right side
 
@RyanKinal can you explain what you mean?
@YiJiang yeah, in Firefox this isn't an issue :S
I've never seen Chrome/Firefox/IE>8 behave like this on the box model!
 
Oh, that is interesting.
I'll explain in the CSS room
 
3:17 PM
oh yeah, didn't notice I was in JavaScript :P
 
@Greg look below
section {
   margin: 16px;
   padding: 14px;
    margin-right: 0;
    box-shadow: rgba(0, 0, 0, 0.5) 0 0 20px;
   overflow: hidden;
}
fixed. in Chrome - broken everywhere else now =P
 
@rlemon hmmm ... also, there isn't always an image to the left of the section ... That's why I floated it
 
@rlemon You reset the right margin to zero - of course this 'fixes' the problem
 
@YiJiang Jeeze, can't you people appreciate smart-ass humor anymore
I could have fixed it with jQuery and trolled even more
 
$('#relmon').remove(); // Goodbye, pfft
 
3:25 PM
@YiJiang // bad selector boss.
 
@rlemon Selector boss. Is that like a normal boss, only he attacks with pseudo-elements and adjacent sibling selectors?
 
@YiJiang no, like. "Bad selector, boss (referring to you as boss)
writing that cowbell must have messed with your head.
 
@rlemon I know. I was poking fun at the ambiguity introduced in that statement because you left out a comma.
3
 
hmmm.. guys, whats wrong with this code?
$('ul.menusan > li').hover(function(){
$(this).children("ul").stop(false, false).show("blind", { direction: "vertical" }, 500);
}, function(){
$(this).children("ul").stop(false, false).hide("blind", { direction: "vertical" }, 500);
});
i receive: Property '#<Object>' of object #<Object> is not a function
actually dont worry I can't even be arsed using the rubbish that is show("blind")
 
3:43 PM
I'm back again.. I need to import a script inside a textarea, for example <script>alert('hello')</script>. If I input it directly in the textarea it works, but if I try to recall the script with <script src="source.js"></script> (where source.js contains "<script>alert('hi')</script>") it doesn't work..
any suggestions?
assume the textarea works like a "message" field for a forum post
 
@BeNdErR You shouldn't have script tags inside your .js file
 
in the DOM
     <script>alert('hi')</script>
source.js
      alert('hi')
 
What hip AJAX abstraction layer are the kids using these days?
 
@YiJiang thanks, it works!
 
tab to autocomplete
 
3:46 PM
:D
 
3:57 PM
@jAndy seems to work fine for me, Chrome 15 also
btw, looks very cool.
 
@AndyE: thanks. however its not good that it works fine for you. I hoped I have clear bug somewhere
 
4:17 PM
Overheard: "George was getting funkiness from the wifi connection, not sure what happened." IT guy replies, "Funkiness is a known issue, we have to wait until they release a fix."
 
Hey all
0
Q: A Stack Exchange (Cat and the) `Fiddle`

A Man A Plan A Canal PanamaBased on this question: When jsFiddle and other related sites are gone, so is the information Since it is possible for these site to succumb to linkrot, I am making a request for a StackFiddle site. Could only be for javascript at start, then could expand. This is not subject to linkrot becaus...

What do you think?
 
4:42 PM
@YiJiang Nerd humor at its prime.
 
Do you love it when you criticize an answer in a comment and someone else downvotes the answer and the author thinks you downvoted it
 
lol
 
@Esailija: its called, to be at the wrong place at the wrong time :p
 
Whats better is if you left an answer too and your situation happens and then the author of the answer you criticized decides to down vote yours too... not based on anything but the down vote they received :?
 
@Loktar: or he decides to go to war and downvote ALL of your answers
 
4:57 PM
hah yeah, I haven't had that happen yet fortunately.
 
I did :p
but SO admins will fix that most of the time if you let them know
 
Yeah never had any revenge downvoters fortunately
 
spam downvotes are the worst
i lost 500 rep in 20 seconds
luckily theres an automatic system on SO that works out it was malicious
 
250 downvotes?
doesn't that require multiple accounts :D
 
why would someone do that, just for fun?
 
5:07 PM
2 secs, i'll link
nah it was some douche who got annoyed with a criticism
0
Q: Lots of downvotes?

rickyduck Possible Duplicate: Serial downvotes in quick succession on all my posts Suddenly, someone downvoted all my posts. Why would someone do this and isn't there some feature to stop this? I think it may be due to my last activity (commenting on a poor question); all I did was offer advice...

500 is probably an overstatement
 
ah I see
should be allowed to don't like someone imo =)
 
5:24 PM
I have some code which works fine in ie, chrome, ff. But fails miserably on android.
seems to be a scoping/closure problem
it' cant seem to access the private document variable properly
in my click handler I call the private method m_addSet(), but after adding alerts it seems that it runs with no knowledge of previous added stuff
 
pretty unlikely that its any basic ecmascript behavior that breaks on droid
much more likely its your logic/code/syntax
 
pretty bad idea to use document for a variable name
 
why?
i am js newbie =)
 
because document is already taken and has a meaning
 
ah that might explain some things lol
ill try change it
but it is in a private scope so shouldnt matter
or is it like SUPER variable
or something
 
5:30 PM
yeah I didn't say it will fix the problem at hand
just that it's a bad idea
 
hkon: that whole code snippet looks like you should seriously learn some basics before thinking too much about scoping
 
for anyone else reading that code it will be a big WTF
 
why?
I'm happy to learn, please give me some pointers if you got the time
 
I'm not even sure if.. doh , what is that doc object good for? it looks like you actually try to access that object to fill the array
beside that, if you directy access on object, scope has no meaning in terms of scope-chain or name resolution
 
ok, first that happens when the page is constructed is that setupView get's called. Which crates an "empty" document, i.e no sets have been added to the array. Later when you click a button, a dialog shows up and calls the m_addSet which in turn adds an item to the array "sets" on doc
 
5:35 PM
ok wait a second
I was confused again, document is really a mean name for own variables
 
yeh sorry about that, i renamted it to "workout"
if you refresh it should be updated
 
what actually happens ? or does not happen?
 
the good news is, it works now. My assumptions of private scopes and closures were infact correct.
The bad news is that im an idiot
 
I somehow have a tough time reading the code, its not really well ordered to me.. then html comments within javascript code.. the new keyword is used like randomly :p
 
i had some init logic that was called every time ou actually chose something, so it overwrote "document"
but please
what did you found hard to read about the code
i tried to use "module" pattern
as that represents something im more familiar with in terms of "classes"
ah lol
javascript comments are not <!-- -->
how sweet
hate those arrows
 
5:50 PM
jQuery fanb0i drops some knowledge
 
6:11 PM
<script type="text/javascript">
var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
var timeStamp = (hours + ":" + minutes + " ");</script>

onClick="_gaq.push(['_trackEvent', 'cata', 'act', 'label','timeStamp '])"
something wrong here i cannot get it work
 
@Esailija I want to punch that guy in the neck
 
@Chris, lolz
 
@Chris: you probably don't want to do it. If we think in terms of gangs.. his gang outnumbers yours by a factor you don't even want to know :P
 
LOL @Chris I want to punch this guy in the neck
but he would probably just laugh as he squeezed my head.
 
for some wierd reason I don't like ben nadels blog
 
6:22 PM
I used to find it while randomly searching for answers
 
@Loktar Oh. My. God.
 
but I don't ever go there regularly
I just remember he had that stupid image lol
 
jQuery... ok, whatever. But Coldfusion? What in the literal f@#k?
 
anyone here use modals?
 
has anybody got a human usable link for Xhtml Mobile Platform Specification ?
 
6:38 PM
modals? I use them when I need to..
 
which modal is best
 
@Loktar Did someone steal your plugin? :S
 
@Incognito what do you mean?
 
Ah nevermind. I have a thing about not reading sites with lots of pictures in them and I'm only looking at the URL.
Also I don't think you made the jQuery plugin for snow.
 
I did make one
 
6:44 PM
I lose track of who did what a lot =/ sorry.
 
Do you guys ever use a javascript selector engine (such as Sizzle)?
 
better modal @tehdoommarine jsfiddle.net/loktar/X5UR8
I dont use plugins for modals, they are crazy easy to make
 
0
Q: Javascript (jQuery) Animation optimization

jondavidjohnOk, so here is the code and it is working fine, just gets a bit choppy when I trigger a few of these independently on the same page... I'm doing a bit of math at every step, and wonder if there is a better way to accomplish this... The generally idea is a progress bar that updates the totals and...

 
@Incognito did you see something about jquery snow
 
Yeah the URI went to "Snow -ColdFusion- jQuery-Winter-Wonderland.htm "
 
6:48 PM
ooh ok
 
I don't read articles that are 90% photos of things.
Is Mastering Node a quality book?
 
stopped at "brew install"
 
haha, why so?
 
brew is crap.
compared to a real *NIX
 
6:52 PM
can you suggest better solution for osx?
for package management
 
Install Linux.
 
i need photoshop
 
+1 what ivo said
 
(and yes, I use OSX every day at work, it sucks)
 
2
Q: Closures in auto executing functions vs objects

NealLet us say I have the following: var foo = (function(){ var bar = 0; return { getBar: function(){ return bar; }, addOne: function(){ bar++; }, addRandom: function(rand){ bar += rand; } } })(); And I have the...

Bounty up soon
 
6:53 PM
I didn't even know what brew was =/ went to a programming interview they put a macbook infront of me and asked me to write code in notepad. I was like wtf is this?
 
lol, brew some code bro!
 
followed by "vim is for hard core programmers only"
I was like q.q
 
LOL wtf?
 
guys, i am working with vim every day
 
and did they not want you to be hardcore?
 
6:53 PM
in osx
 
I duno @Loktar it made me rage brah.
 
haha
 
@Shizoman So am I. Still sucks.
 
lol
 
even iTerm still sucks as a terminal :/
 
6:54 PM
using terminal, pretty enough for me
with zsh and vim
 
@Loktar I don't know they were playing some weird game. 2.5 hour interview never heard back, meh.
(after specifically being told they'd be in touch =/)
 
@Shizoman Are you using MacVim or the terminal one?
 
mvim -v
haha
using both, cause i wrote some code on server via ssh with vim
and sometimes working locally with macvim
 
@Neal, what are you really asking in your question? The other one is a singleton while the other is evil closure class antipattern
 
Man... I don't remember node taking this long to install last time I played with it..
 
6:57 PM
Most of the time I'm using MacVim, on the server I have it running in iTerm which seems to be the only thing that can handle 256 colors on osx correctly
 
Someone know some good vim plugins to use when coding javascript?
 
@IvoWetzel - not correct regarding the 256 colors
@IvoWetzel using the terminal.app and tmux on remote server with 256 colors
but i think it is 10.7 terminal app feature
 
ah, that might explain it
we're stuck on 10.6
PGP...
 
@Gabriel what exactly do you need?
 
upgrade = dead macbook
bclose.vim       matchit.vim      supertab.vim
closepair.vim    minibufexpl.vim  surround.vim
command-t.vim    NERD_tree.vim    syntastic.vim
conque_term.vim  snipMate.vim     taglist.vim
gives a quick ls
I'm mainly doing JS so... yeah
 
6:59 PM
@Shizoman mabe some code highlight for black background... or autocomplete
 
@IvoWetzel - about the same list here
 
@GabrielGartz symfony theme is nice, so is lucius
 
@GabrielGartz i like mustang and solarized :)
 
But in the end I always modify the themes to match my taste :D
 
also you can use node + jslint with vim as well
for checking the code quality
 
7:01 PM
@Esailija ok
 
They are not the same thing at all, can't you see it in your tests that the other one needs to be "Instantiated"
 
reminds me...
 
@Shizoman mustang is prettily and works fits with python :)
 
of the specialized hg plugin jshint vim thing I have created >_>
 
@IvoWetzel thanks for the colors schemes too
 
7:42 PM
Questions like this are always fun:
1
Q: JavaScript simplex / perlin noise

Xeon06I'm trying to create a perlin / simplex / value noise function in JavaScript that will give results similar to the following: (Note: this image has already had a treshold applied. I want it without the treshold.) I've been looking all over the internet for 2 days now. There are plenty of links...

 
yeah I was going to make a perlin noise generator
but I liked midpoint displacement way better
I can tell by the results of his fiddle the points hes calculating arent right
those were the same types of results I got when I had errors, square sections of noise basically
 
should i work on my free-time-project while a bit drunk ?
 
7:58 PM
@Raynos I'm just playing with node trying to get around the basic setup stuff, but I can't get it to work with some NPM stuff.
var fs = requre('fs')
var request = require('request');
request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png'))
Results in the "throw e; // process.nextTick error, or 'error' event on first tick" error.
 

« first day (416 days earlier)      last day (4538 days later) »