« first day (102 days earlier)      last day (4839 days later) » 
00:00 - 14:0014:00 - 00:00

12:00 AM
Just using a table row to do the loading instead
where the whole row is clickable
 
@WillingLearner when I had a hard question I put a bounty on it and people tried harder. Then I tried harder to get more rep points so I'd have enough for another bounty if I need it. A vicious cycle...
but sometimes it's easier to answer others' questions than your own.
 
how do i put a bounty? do i have to pay money to do that?
 
1) you click on stuff; look around. 2) no it costs you reputation points. You have 97.
basically you give some of your reputation to whoever best answers your question.
 
theres no bounty button available for me
i guess i dont have enuff rep, i dont know
 
12:10 AM
you need 75 rep AFAIK
it also needs to be posted for 48hours i think?
 
3 instant upvotes
hm
10k changes everything...
it's crazy
you just write an answer and get upvotes...
 
Wish i could get to 75 :P
its well for some
 
I should write the content for my new website...
instead... I'm trying to reduce images and HTTP requests >_>
add fallbacks... and so on and so on...
 
Haha we are one and the same man
 
you don't need content, just updates
post somethign that says "i've been working hard on the backend, ooh yeah, content coming soon! maybe next week!"
 
12:25 AM
I spend 95% of my time optimising the site with HTTP Req's and multiple sub-domains, semantics etc and i write basically no content
 
Can't we just write awesome looking, cross browser, hyper fast websites and have people admire the sheer perfection of code and HTTP flow?
 
hmm... msdn article on javascript
 
I spend 95% of my time checking this chatroom for the latest juicy message and 5% of my time writing juicy messages
@IvoWetzel have you tried Lorem Ipsum?
 
I have a bit of lorem in there
 
@Ivo Hire the kitten to write you some content?
 
12:28 AM
@Nathan ... isn't it the page of @YiJiang then?
 
well... hrm.
 
Anyone know the URL to check your next achievement from rep?
 
is that what you mean?
 
@david grazie
thats the one
I come to SO to get a question answered and now im hooked :(
This site is worse than Angry Birds
2
 
:D
 
12:33 AM
i know how you feel ><
but it's... good, in a way, it makes me look up things in response to people's questions, and I learn a surprising amount'
 
you mean better than Angry Birds
though sometimes it's discouraging how much more brilliant everyone else is.
 
@david I totally agree I have found myself looking up python and attempting to answer questions (didn't go so well) but i know the error of my ways not
@Nathan Yeah sorry __better__ than Angry Birds
@Nathan That too
Is there any way to set email notifications so that on question replies and comments I get sent an email (much like a forum) so far I can't find this anywhere?
Such a n00b...
 
wtf?
5
A: Where does node.js sit in the client <--> web server flow?

Ivo WetzelFirst of the usual "flow". Client | v Request | v ...

5 upvotes?!
 
yesterday i tried to work out how to get rss feeds working... that made me feel really nooby too :(
 
Just because of the fancy ASCII?
@david Oh yeah RSS feeds, those are fun... not. Especially if you want iTunes to read the correct stuff out of them
(that is, if you have a podcast feed)
 
12:42 AM
@IvoWetzel I'd vote you up just because of the ASCII, pretty...
iTunes can do RSS?
 
@MylesGray Welcome to the Voting Mafia then
Well you can register your feed for the podcast section
All it does is to grab the stuff out of the feed and list it in the podcast section
 
Ohh yeah, I think I'll just stick with Postbox
 
Then they apply some magic ranking algorithm
To be honest, I hardly ever read RSS feeds
 
I just like to know when I have replys, I feel bad having someone answer my question and me not notice, Its kind of ungrateful in my eyes
bwuahaha 6 hours later and Snow kitty is at last installed on the USB
 
@MylesGray I know what you mean on SO. I spend the last hour writing an answer when I should be asleep!
 
12:47 AM
:kitten quote
@CodingKitten Broken you are again!
 
@IvoWetzel So that... it can be treated as the conceptal null. null is a pointer pointing to nothing and since the body element receives all events, it's nice having 2 screens ;)
 
:kitten quote
 
> "When someone says: 'I want a programming language in which I need only say what I wish done', give him a lollipop." - Alan J. Perlis
 
@Raynos I think I'm going to follow suit really better head to bed... but chameleon and the lack of OS X on my PC are calling to me...
 
@IvoWetzel jsfiddle.net/Raynos/qPRNF/13 how do I make it better? I'm not that handy with the old map-reduce
@IvoWetzel oh and that answer is +4 and +1 because its @IvoWetzel
 
12:52 AM
I think... it could be written clearer without all the chaining
 
@IvoWetzel think so? I think jQuery has got me :P
 
My soiree into RSS feeds from SO has failed. bed time, ciao guys, thanks for the help
 
well clearer doesn't mean less code here, it will be a fair bit of arrow programming
dunno, it'd be probably better to just rearrange the existing sourcve
 
gnight @MylesGray
 
gn8
 
12:56 AM
mmm, partial application and currying in javascript
i like curry
 
@david I prefer pizzas, but...
 
mmmm.... I made some great Thai-style green seafood curry for dinner the other day...
it's actually quite easy to make.
 
@david Oh that partial function already looks like it's slow as hell
Don't talk about food
 
@IvoWetzel is that really more readable?
 
function getInventoryMax(values) {
    return _.reduce(values, function(memo, value) {
        return isBackorderable(value) ? max
                                      : Math.max(memo, +value.quantityOnHand);
    }, 0);
}

function doStuff(inventory) {
    var max = settings.limitedStockThreshold;
    if (!(inventory && inventory.sizes)) return;

    var subSizes = _.map(inventory.sizes, function(value) {
        return value.combos ? getInventoryMax(value.combos) : 0;
    });

    var quantity = _.reduce(subSizes, function(memo, value) {
just an untested try
 
1:07 AM
too much ?
I don't actaully know how to go about styling or laying out such code
 
I'd try to avoid putting it all into one giant chained callback construct
/* And natively?? */
#content {
   ...
   @this > p {
      ...
      @this > a {
         ...
         @this:hover {
            ...
         }
      }
   }
}
> While the proposed syntax is more wordy, to its credit, it does have a nice OO-like syntax, which will make plenty of developers feel right at home.
sure... destroy CSS
less is awesome, now we have to come up with a native way which is 100x worse
> CSS in JSON, wouldn’t it be great ?
 
@IvoWetzel Well, I once did that... the results wasn't great...
 
Just taking that from the comments here: net.tutsplus.com/articles/news/…
Also, I hope they don't go with types in CSS.... just copy LESS and everyone is happy
 
Hmmmm? Which part of CSS3 got moved along into another stage now to cause that news?
 
No idea, just found that article
 
1:20 AM
Well, okay, it's not news, but hmmm...
 
1:32 AM
function doStuff(inventory) {
    var max = settings.limitedStockThreshold;
    if (!(inventory && inventory.sizes)) return;

    var quantity = _(inventory.sizes).chain()
        .filter(function(value) {
            return value.combos;
        })
        .map(function(value) {
            return _(value.combos).chain()
                .map(function(value) {
                    return isBackorderable(value) ? max : value.quantityOnHand;
                })
                .max().value();
        })
For some reason I think that looks readable
 
I have to agree
 
Shameless plug: Check out the election statistics page I've compiled here: se.awio.com/election.html
 
I have to say underscore is fun :)
 
@Raynos I use underscore in variable names sometimes, but I can't really see the appeal of using it as a variable name...
 
@jball it's the underscore.js library (documentcloud.github.com/underscore)
It's like how jQuery uses $
 
1:42 AM
@Raynos I see - it's playing off the whole jQuery/Prototype short namespace thing...
Wow - it looks like a nice library
 
@jball it's a very nice utility belt. Especially when you don't need heavy DOM or event manipulation
It's my library of choice for writing functional code without having lots of alien non-javascript syntax
 
@Raynos I'm already regretting not using it on projects - the workarounds I could have avoided with a nice set of array, function, and object methods!
 
@jball I'm rewriting one of my projects from scratch relying on _ :)
 
@YiJiang nice!
 
2:51 AM
What... does he mean by this?
0
Q: CSS Left property

SeanWhen you set something as left: 50px; in CSS, is the registration in the top left corner, or the center?

 
@david When you use the left right top bottom property, from which point are those values calculated from
 
time to rip out the HTML and redo the thing in a semantic way
 
it's a square though... if you're moving it left by 50px it doesn't matter if it's from the top corner or the middle...
 
@david Yes, of course, so it's really a 'registration side ' but the term point is used everywhere, so
 
3:11 AM
but....
it doesn't matter!
it's a silly question!
it's like me saying you need to run 100 miles to the east, and you saying 'is that 100 miles to the east from here, or from a little further south?'
 
@david Eh... ? Why does it not matter?
 
what is the difference between moving something 50px left from the top left corner, and moving something 50px left from the middle of the left side?
 
You do realise that the position from which AP'd elements take reference for these positions based on which parent has a non-static position value?
 
of course... you're not answering my question though
 
Buggy Opera thing -.-
Buggy CSS
Buggy JS
 
3:28 AM
Buggy Everything!!!
 
Indeed
When animating background-color it goes crazy
sets the start color to RED instead of transparent...
hell even jQuery fails
CSS fixed
now to the JS...
Did I mention that i hate dragonfly?
fixed...
:)
@YiJiang You know a fix for Operas "click through transparent" behavior? Other than using a transparent background-image
 
3:56 AM
@IvoWetzel I haven't experienced that bug before, so no
 
Basically what I have is an absolute positioned a over an img
Now Opera doesn't recognize the click on the a unless it has a background or something
putting the img in the a is not an option since I have a "glow" effect by setting the a's background-color
(with yet another fallback for browsers without rgba colors
 
why can't you use a transparent background image?
the coloured background should still show through
 
I'm using one, but I'd like to get rid of it
Other question, you think the markup is ok here? bonsaiden.dyndns.org:28785
(the site without CSS)
 
the page cannot be displayed
 
?
works fine here
 
4:02 AM
it's possible the work proxy doesn't like the higher port
 
Hold on a sec
don't care about the disappearing top part that's because the onpopstate event sucks and the script doesn't like the url
 
z-index: 9999999?
 
?
I haven't set that
Actually there's no style at all on the page besides the google font
 
could just be the chrome inspector crazying it up then
 
4:40 AM
Chrome 9 implementation of the new history API is sooo broken
Who cares, works fine in latest trunk
 
@IvoWetzel Do you have a non-compressed version of the HTML?
Anyway, text-transform: uppercase would be better than typing in all caps for the title
Since it's stylistic, and not that you're shouting out the title
 
@YiJiang No, express doesn't output whitespace
 
Will run it through HTMLTidy then
 
yeah, I'll change that
 
<article> is not recognized!; Warning: discarding unexpected <article> Erhm... anyway to get it to not do that?
 
4:48 AM
uh...
yeah Chrome 9 history API is indeed broken, it does a full page load instead of changing the URL and firing onpopstate
 
Okay, let's see... hmmm... not bad, not bad at all
Although the HTML is barebones right now, so nothing much to say about it
 
the full blown version
 
Dislike the hover effect on navigational items
 
Taste
I like it
 
I think it would be less visually jarring if the position of the text did not move
 
4:59 AM
hm
 
Ack, you've got typos in the garden
 
I know... I haven't gotten around to fix more stuff there in the last days
 
Doesn't vim or whatever editor you're using have spellcheck?
 
it has
but I guess it missed quite some stuff
 
delete is an operator, not a keyword, no?
 
5:05 AM
yes it is
gosh
let's fire up two more terminals
 
@IvoWetzel So are you doing the editing, or should I?
 
I've fixed the keyword/operator thing, there are other things that need fixes gsnaedders wanted to open up some issues on the repo about the things he found..
 
There's a type ceorsion typo in there somewhere too
Anyway, I'll be doing some editing too, hopefully git can merge cleanly
 
Let's hope so
 
Hmmm... EcmaScript or ECMAScript?
It's ECMAScript, apparently
 
5:13 AM
yes, I suck at writing... I suck so hard
hm fixed text on the nav links looks strange
 
Wow, the CSS... isn't very good
 
I blame the compiler
 
Seriously? Using a p in a just to AP it 15px to the right?
 
I need to fix it
 
I know it's valid HTML5, but why would you need an additional element in there at all?
 
5:18 AM
I'm animating the border
tell me another way how I can fix the text in the a
 
@IvoWetzel Animate both padding and border-width
 
looks jaggy...
 
Might be difficult to position because of easing though
You'll have to easeIn one and easeOut the other value
 
5:40 AM
hm, any tool for measuring the distance between two colors?
 
@IvoWetzel As in?
Distance on the color wheel?
Or the difference in RGB values?
 
well, LESS has functions for desaturating / lighten colors
I would like to get to the color of hovered links via those functions
but just guessing around would take forever
oh wait, I'm already using the functions for that
must have replaced it sometime last night
localhost:28785/stylesheets/style.less in case you're interested how that looks
 
Ab
6:05 AM
i'm having problem with Canvas support on firefox 2.0
can any 1 suggest alternative to filltext
 
div overlay with text...
Is FX2 support that important?
 
Ab
yes, was mentioned absolute must
 
The div overlay is all I can imagine
 
Ab
its actually a gauge i'm building
 
Firefox 2.0 doesn't support canvas, I think
 
6:08 AM
> With Firefox 1.5, Firefox includes a new HTML element for programmable graphics. <canvas>
 
Ab
i had been to websites like diveintohtml5.org/canvas.html and few others which said FF 1.5 onwards
 
Problem is indeed the lacking support of fillText before... 3?
 
Ab
but didnt pay attention to few methods being only 3+ (with shim..)
@IvoWetzel can u remote into my machine
 
As said you'll have to go with an div overlay or images
 
Ab
can u suggest any sample div overlay along arc or something like coordinates
depending on scale min and max, i would have to now print out html text along the edge of scale
 
6:16 AM
well the div will have absolute positioned childs which contain the text, then you have to do all the setting of left/top on those
 
Ab
looking at a canvas text project on google code
seems to be working
i meant the site has demo that brings text on to canvas and it looking good as of now on ff2
 
7:17 AM
hello
Which is simple and lightweight page scrolling plugin in jquery?
 
@Nilambar What do you mean by a 'page scrolling' plugin?
 
when i click a link then it scroll to certian position in page?
 
@Nilambar Have a look at the scroll to plugin
Alternatively, just use document fragment links - #header, for example
 
ok, cheking out its demo. :-)
I just wanted to have some flavour of animation. :-)
 
scrollTo, sorry, that's the name
 
7:23 AM
Yah I got this one demos.flesler.com/jquery/scrollTo and it seems nice.
 
 
3 hours later…
10:35 AM
website work is done for today
set up a nice system of json and markdown for the content
 
10:51 AM
Every time I refresh the page the firebug debugger script panel breaks
@IvoWetzel Over-engineered under-delivered?
 
@Raynos No, just some folders with some markdown files for each description text thing etc
I hate hard coded stuff
directories + files = awesome
 
Ab
how to find max of array
 
var max = -1;
for(var i = 0, l = array.length; i < l; i++) {
    max = Math.max(array[i], max);
}
max;
?
 
Ab
thanks :) trying out now
 
LK
11:27 AM
Hi, what would be an elegant way to create and initialize an array which should have something like the following format (all values hardcoded):

person[0].name = "Peter", person[0].age = 50;
person[1].name = "Paul" , person[1].age = 60;
person[2].name = "Mary" , person[2].age = 70;
 
uh, object notation?
persons = [{name: "Peter, age: 50}, {name: "Paul", age: 60}]; // etc
 
@IvoWetzel Math.max.apply(Math, array) would work better I think?
 
LK
thanks - sorry, I'm new to JS!
 
@YiJiang Indeed, you're right once again
 
Hi! :)
@IvoWetzel !kitten rchern does not seem to work.
 
11:33 AM
[COMMAND RCHERN #1] Nyuszika7H
[POSTED #1] oy
seems to work here, guess the chat swallowed it somewhere
 
@IvoWetzel Is this supposed be the reply? (oy)
 
:kitten rchern
 
using jquery .css(), is it possible to increment css values?
 
@Greg No, I don't think so. Use .animate().
$('#el').animate({ height: '+=10', width: '-=10' }, 0);
 
11:38 AM
@Nyuszika7H ah thanks
 
@Ab _.max(array)
 
@Raynos Hi!
 
@LK person.push(new Person("Peter", 50));
 
I want to animate an element to have a "left" css value of 25% - 16px ... is this possible (jquery) ?
 
11:48 AM
 
@Greg 25% or minus 25%?
 
@Nyuszika7H really, I want to calculate what the pixel position of 25% minus 16px is ...
 
you'll have to do the calculation before hand
so $(bla).width() * 0.25 - 16 or something like that
 
$('#el').each(function() {
    $(this).animate({ width: this.style.width * 0.25 - 16 }, 0);
});
 
style.width will only work when there's a width property set in css, use offsetWidth or the jquery thingy
 
11:58 AM
 
12:18 PM
@Nyuszika7H ah cheers, thanks
 
12:35 PM
Can I hook into events on the alert or confirm box?
 
@Raynos Since both are blocking, just call whatever you want 'on finish' after the function calls
 
@YiJiang my issue is that I have a textbox created and focused on on finish of a confirm
So the user hits enter keydown to confirm. Then the text box gets created and focused on. Then the user lets go of enter on keyup and the textbox dissapears.
I want the keyup on the confirm box not to effect the textbox I create afterwards
 
Eh, check for the keydown event after the confirm could work I think
 
What do you mean? I have to handle both enter key and mouse clicking on the confirm button un obtrusively
 
1:16 PM
@Raynos Use jQuery UI dialogs. You can use the dialogclose event.
@Raynos jsFiddle link?
 
WTH is happening in the PHP room, and why are those three code blocks flagged?
 
Hi
I want to highlight a word inside an href
in html
 
@DanielGR Can you explain that more clearly? The href attribute is not usually visible to the user, so how would you 'highlight' that?
 
this:

<a href="www.asd.com">
Hi
<label style="color:...">to
</label> all
</a>
That works but when I try to click the href nothing happen
 
@DanielGR Just for your information, but the label element is used for form elements, not for highlighting stuff
 
1:30 PM
What element I should use?
I want to add a color and a mouseover event to show a tooltip
to it
 
Also, a href is the attribute which dictates where the hyperlink goes to, while an anchor is the <a> HTML element, which is what I assume you're talking about here?
 
the a element
I want to add a mouseover and a color to a part of the <a> noteText
 
Well, assuming there are no other elements in all your a elements, you can loop through them and replace their innerHTML
You can also use CSS to do the hover effect
 
Wait wait,
the problem is not replacing the tag inside
I've already replaced the word in the textnode of the a tag
 
Okay, so?
 
1:34 PM
I want to know what control I should use to color it and add the mouseover
tooltip
I'm using '<label style="color:#'+ color + ';" title="' + tooltipMessage +'">$&</label>'
but the <A> click event fuck up when it have that inside
 
@DanielGR Erhm... just letting you know, but the F-word isn't very polite
Anyway, you can use CSS to do the on hover color change: jsfiddle.net/yijiang/CUXLE/1
 
sorry ;)
but, the hover color is not the problem
I want to color it always
for ever
The hover is to diplay a tooltip
 
Ah, well you can give it a class anyway, and use CSS to color it
Just remove the :hover pseudo class to have it always highlighted
Otherwise, I don't see anything wrong with your code - it should also work
 
That's the problem!
it should work
but I have a problem
I can use CSS
hmmm
wait
 
Can you post your HTML? You can try inspecting the created HTML element using Firebug or your browser's dev tools
 
1:44 PM
@DanielGR HTML5 has a new <highlight> element. By default, its background color is yellow, but you can style it with CSS:
highlight {
    background-color: orange;
}
 
@Nyuszika7H dislikes lime, respectfully ask you to change it to orange :P
 
You can use HTML5shiv to support IE < 9.
@YiJiang done :P
 
hmmm
 
I don't like lime too, this is why my avatar's background is greenyellow. But I think it may become orange in some minutes, too :P
 
Look this:
<a href="www.google.com"> This is the message that I have to modify </a>
Right,
after I modify it the result is:
 
1:49 PM
@DanielGR Have you tried changing the href to http://www.google.com?
 
thats not the problem
 
Sorry, the tag name is <mark> and not <highlight>. So use this in your CSS if you want to change the highlight color:
mark {
    background-color: orange;
}
 
<a href="www.google.com">
<span class="highlight" title="Mensaje"><font color="#color21210">
This is the message that I have to modify
</font></span>
</a>
Right
now It works..
but when I click the A tag
nothing happens
happen
Thats my problem
 
@DanielGR Never use the <font> tag. It's deprecated and it's a sign of very bad code. Use <span style='color: your-color-here'>text</span> instead, or even better, do styling in a separate CSS file. Also, #color21210 is invalid.
 
hmm yeah, that was an example
hmmm
 
1:54 PM
@DanielGR Also, use Markdown to format your code. Press CTRL+K after entering the code. And make sure your code is in a separate message, because it will format the entire message with fixed-width font.
 
var s = o + ""; vs var s = o.toString(); Assume I don't overwrite .toString
 
Wow thanks
Now it works
But on google chrome, not in Iexplorer
 
@DanielGR IE is bad… provide a testcase at jsFiddle.
 
<a href="http://www.google.com">
<span class="highlight" style="color:#'+ color + ';" title='+ tooltipMessage+'+color+"> highlighted
</span>'
 
@DanielGR First, the formatting… second, AFAIK you can't have variables in HTML. Or do you insert it dynamically with JS?
 
1:58 PM
wait
me please
 
If you want to do something like this, dynamically insert it either with JS or PHP. PHP is easier because you can use heredoc syntax, and that will get inserted for everyone, even with those that have JS disabled.
I know this is the JavaScript room, but I'll post an example of PHP's heredoc syntax there anyway.
 
00:00 - 14:0014:00 - 00:00

« first day (102 days earlier)      last day (4839 days later) »