« first day (66 days earlier)      last day (4892 days later) » 

3:00 PM
...
the slowest part of my programming work is now inserting {} -.-
thank you VIM
now I hate this german keyboard layout even more
 
huh?
 
what's a german keyboard look like?
 
Ahhh
 
@Greg Altr-Gr + 7 = {...
 
Tom
@IvoWetzel inoremap { {<CR>}<ESC>ko
 
3:01 PM
Hi!
 
Tom
(untested)
 
@IvoWetzel :|
 
I have started using Programmers DVORAK... It's nice cause the number bar (above the keyboard) is pre-shifted. So if you want numbers, either hit shift or use the keypad. Otherwise you can use symbols without needing shift...
 
hello guys, I just want to ask you about the technical term of (for example) google maps service....I'm asked to deal with a company that has a GPS system for a country and a web version of it..and I'm asked to replace google maps with their...
 
3:03 PM
@IvoWetzel WTF.... QWERTZU?
 
Tom
@IvoWetzel inoremap someKeyThatYouNeverUseButIsEasyToHit {<CR>}<ESC>ko
 
uh... easy to hit hm
 
so I need them to provide me a JS just like google and I just have to call their initialization function on my map DIV container and then use their api to draw points and plots...etc
 
hm
wonder if I can make capslock act as alt-gr
 
Tom
@IvoWetzel use that key to the left of # key
 
3:14 PM
uh. still need to reach up to {} with the same hand then
 
Tom
@IvoWetzel 1 key instead of 3 though
 
I need help to close this question:
1
Q: Two version of the same code returns different result

maveraThe two code below look same but they give me different result in IE8. Do you have any idea about that? $('#frameMain').load(function(){ var bodyHeight = $(this.contentDocument).find('body').attr('scrollHeight'); var bodyHeight2 = document...

 
@mavera: Just answer it yourself and mark that answer accepted
so that someone else coming along can benefit from what you learned...
 
Why did someone mark that as S&A?
 
@YiJiang: Prob because someone didn't know what they were doing?
 
3:22 PM
Ok icmaxell thanks
 
@YiJiang What does S&A stand for?
 
@Tom I've put it on ß :)
 
Subjective and Argumentitive
 
Tom
@IvoWetzel you're a supercoder now :) I'm beginning to like vim more as well, although I am just using the basic movement commands
though I do not like file management in vim at all
maybe that's me though? but I still use the gui version and mouse to open files etc.
 
Once you get used to it, you'll find yourself so much more efficient
 
3:28 PM
NERDTree plugin
 
Since you can do everything without ever taking you hands off the keyboard
 
Tom
true, apart from file management
well I guess you can with the keyboard, but it's much slower as far as I know
@IvoWetzel I have to look into that plugin
 
just buy 3 giant monitors
than CTRL W v a couple of times
;)
 
LOL
 
That Ubuntu help on F1... sucks...
let's remap that to my vim startup script
 
Tom
3:32 PM
I like my notebook to remain mobile ^^
 
Tom
@ircmaxell nice one
@ircmaxell it does not state how heavy it is though
 
It's not light
It's a workhorse. It's meant for graphics design...
Desktop grade processor, tons of ram, amazing screens, etc...
 
yeah and $ 3k
 
3:37 PM
yup
 
This is hugely annoying. Why won't these snowflakes move in a nice sin wave downwards? jsfiddle.net/wKgjS
 
@YiJiang they're fast for me. what's that number? FPS? (nope, I've got it in meantime: flake count :P)
 
Works ok for me (asside from the horizontal skew)... But then again, My FF install is quite slow, so the skew could just be due to miss-timed events...
 
Hang on, let me try something else here
 
Tom
@YiJiang not sure but there are tons of snow javascript examples on the web
 
3:42 PM
@Tom Far more fun writing my own, and I don't really trust those JavaScript scripts found on the web now...
 
Tom
@YiJiang you could look into their code and see how they did it though
 
@Tom I don't trust them mainly because at least 50% of the time I find that I can write better code than that. Especially for these meant to be copied and pasted ones.
 
@Raynos might find this interesting: blogs.msdn.com/b/ie/archive/2010/12/21/…. Although I can't figure out if that's them saying they're not going to implement WebSockets or if they're going to implement a msWebSocket() constructor...
 
Tom
@YiJiang very true ;)
@AndyE raynos is not here
and @Raynos should stop worrying about using a flash bridge for sockets ;)
 
@Tom: he should get the notification next time he comes online :-)
 
3:47 PM
function webSocketsSupport(){ // check for 10 different constructors and implementations here }
 
Tom
@AndyE really? didn't know that
there will always be connect.js etc. anyway
if I were him I would rather worry about webGL
 
It's one of the more interesting IE blog posts lately. Pretty much pointing and laughing at the current implementations of Web Sockets because the draft spec is undergoing a major change that will break the existing implementations.
 
hm
still, FX 4.1, Opera 11.1/12 and the next chrome will most likely ship with the new implementation
and IE 10...
 
Tom
I didn't even know that MS communicates with developers
thanks @AndyE
 
@IvoWetzel: interestingly, the blog post states that Firefox and Opera have disabled their WebSocket implementations due to security concerns.
 
3:52 PM
I didn't need the article to know that ;)
 
@Tom: mostly they just bark on about benchmarks (which they probably rigged anyway), but every once in a while there's a decent post. I watch the feeds for IE 9 preview release announcements.
 
Tom
in VIM, is there any way to delete something without removing whatever you yanked before from memory?
@IvoWetzel
(I am not sure why I write VIM is capital letters.)
 
Vi iMproved
@Tom Don't know, only using it for half a week now
 
Tom
@IvoWetzel alright, because I'm catching myself yanking something to paste it later, then meanwhile (while moving) deleting white space
but the removal of white space removes whatever I yanked from memory
Now I have to yank, move, paste and move back to cleanup whatever white space there is because of moving something
(you could classify this as a luxury problem)
 
but supertab is great
finally a tab completion that works
 
4:08 PM
hello
is there anyone?
 
Tom
@IvoWetzel I just have set autoindent and set smartindent, seems to work fine. Not for you?
 
Tom
@IvoWetzel when does it fail?
 
@Tom supertab is for auto-completion
 
Tom
@IvoWetzel oh sorry
 
4:09 PM
@Tom The No was at kikio ;)
 
can you read my problem?: stackoverflow.com/questions/4489858/…
my comment on first answer
 
!kitten regex
 
4068
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

 
Tom
@IvoWetzel never really thought about auto-completion, I should... it's made for javascript?
 
@Tom Well it uses VIM's omni completion feature, which scans the file you're working on
atm I'm searching for an option to set default values
 
Tom
4:11 PM
@IvoWetzel so you need to use something once before you can auto complete it?
 
comment on Tim Down answer
 
@kikio you want to replace i in the <script> and <style> tags?
@CodingKitten hi cutie!
 
@Greg !!!! ;) at bottom? E.g. I have never seen "<CR>" in love with the implementation of user scripts for chrome?
 
@CodingKitten You're a Kitty!
 
@CodingKitten what the hell are you talking about?
 
4:12 PM
@YiJiang how would you do not see that warming
@Greg not at facebook)
 
!kitten wisdom Greg
 
@Greg no, do you read the topic?
 
25 ^^
@kikio yes I read it, I did my best to understand it
I can has script?
 
Yes, "Tom Down" wrote the script at that answer
(function replaceText)
 
And I think he answered you and even update his answer. A generous guy that @Tim Down
 
4:19 PM
how can I tell Tim Down to read my comment?
 
@kikio He already did and answered you.
 
@kikio I think he'd like it if you emailed him your questions
 
!kitten wob
 
It's Nick Cravers fault!
 
@Greg Don't say that to user. seriously. They'd believe you and spam us.
 
4:25 PM
reply with an invoice and they stop e-mailing questions
 
@ClemDesm I just thought tim down would like a bit of tasty spam for the morning
 
can I add new answer to my question by me, for comes up my topic?
 
@kikio You got 2 choices : add a comment to the answer you want to answer or edit your question
 
if i edit my answer, my question comes up and shows in stockoverflow main page?
 
@CodingKitten :pets: Good kitty
 
4:29 PM
@YiJiang But Everyone! I could have used to selecting it with a combination of logic I go ahead and remove it - you have a quick question
 
@kikio Nothing you can do will make it pop up into the top of the main page, first because it depends on users options and fav tags
 
!kitten wisdom Andy E
 
Tom
kitten is a bot?
 
@CodingKitten You're a bot?
 
@IvoWetzel lol... It's morning here... But here's the thing, how is node.js going?
 
Tom
4:43 PM
lol
how did it know about node.js?
 
codingkitten is become self-aware
 
Tom
@CodingKitten how did you know about node.js?
 
@Tom $('#somediv macro support, etc... plugin table:first").fadeIn('slow'); using ' and " @ the same time out of habit
 
@CodingKitten Stop re-posting code
 
@IvoWetzel Ah missing something of great importance ok, still it shouldn't give warning when JS
 
4:44 PM
@CodingKitten meow
 
@Greg mainly != marketing anyway because websockets are very different browser sounds scary for those server-side stuff should be filled in I do it locally
 
you do it locally? .... interesting ....
 
Tom
god it's using our old conversations
hah this is quite funny
 
how can we teach kitten things?
 
!kitten help
 
4:45 PM
Just because I have mercy with you:
 help   |  200                   # Shows the help for 2 minutes.
 ?      |  200  [thing]          # Ask me about my opinion on something.
 rchern |  200                   # I tell you one of the infamous rchernisms.
 wisdom |  250  [username|id]    # I'll show you some wise words but only for 1 minute.
 wob    |  500                   # I'll spin the wheel of blame for you.
 say    |  500  [text]           # Let me say something for you, it will instantly
                                   sound a trillion times smarter.
 
!kitten wisdom ircmaxell
 
!kitten wisdom greg
wrong greg
!kitten wisdom Greg
that's not my highest rated answer
 
nor mine
it picks from >=9 and accepted or > 15 and unaccepted (I think)
randomly
 
yep
 
Oh, that's why I don't have wisdom.
 
4:48 PM
lol
 
I only got < 5 D:
 
can anyone tell me why after saving this text, the edit buttons stop working: jsfiddle.net/g105b/gbFdh
 
!kitten wisdom Ivo Wetzel
 
Kitten should have a !kitten stupidity Greg function
 
haha
 
4:55 PM
@Greg, I wouldn't stoop to that level...
 
@CodingKitten Go ahead, we all know you want to
 
@YiJiang dd for long-term execution (from my keyboard is it always the same time ?
 
!kitten stupidity Greg
 
Hold on a second, googling that for you... "stupidity Greg did you mean horrible typo?" There you go!
 
actually, I did mean horrible typo!
 
4:58 PM
lol
 
@Greg Oh, I'd love that
 
Tom
Those chrome apps seem like nothing but bookmarks to me
 
They are.
 
Tom
Hmmm, kind of a weird service then. Every website can count as an "app"
 
lol
 
5:08 PM
@Greg He actually did email me! Thanks :)
 
@TimDown You should make an auto-forward to @Greg.
 
Tom
@TimDown I bet you get a lot of mails like that with your e-mail address floating around like that ;)
 
lol
 
@Tom I have lots of email addresses :)
Hang on, I'll just list them all here in this publicly-archived chat room
 
Tom
5:15 PM
@TimDown Alright, we can have an e-mail exchange party
 
Ha! get it? email exchange party... hahaha...
 
Tom
@ircmaxell I don't get it :)
@CodingKitten say something about this please
 
@Tom that was a local application.
 
Microsoft Exchange Server is the server side of a client–server, collaborative application product developed by Microsoft. It is part of the Microsoft Servers line of server products and is used by enterprises using Microsoft infrastructure products. Exchange's major features consist of electronic mail, calendaring, contacts and tasks; support for mobile and web-based access to information; and support for data storage. History Planning the migration from Microsoft's internal "legacy XENIX-based messaging system" to Exchange Server environment began in April 1993 , and by January 1995 s...
user image
2
 
Tom
What the ...!
 
5:22 PM
ò_Ô
@DanGrossman Can I HaZ uR cAt ?
 
@CodingKitten Is that you raccoon slave?
 
@IvoWetzel No, dear.. FILE_NOT_FOUND 1/0 they do it with a combination of superior SEO you can (Look at facebook)
 
Tom
Looks like kitten does not try to say something slightly related
 
@CodingKitten Stop talkin about SEO
 
@IvoWetzel it has been said since I last looked using some crazy GUI thing :p
 
Tom
5:28 PM
@CodingKitten you're smart!
6
A: Language to choose for a board game (flash or HTML5/JS)

Coding KittenGo with HTML and Js, you said your game was similar to GO, well check out http://govsgo.com/. The site is written in JavaSscript, well there's not much on the front end, the backend is based on Ruby on rails, check out Railscasts #237 (http://railscasts.com/episodes/243-beanstalkd-and-stalker) f...

 
@Tom What do you don't need two tabs for me
 
4 votes and we could do a !kitten wisdom Coding Kitten
 
Tom
!kitten wisdom Coding Kitten
 
Guess you're out of luck with Coding Kitten. Yawn I nearly fell asleep when checking their answers.
 
@CodingKitten: Thanks for remembering my toolean definition!
 
5:34 PM
@ircmaxell code markup is that would suit your ened
 
time to go home
bye o/
 
Take it easy
 
6:13 PM
 
lol
 
hehehe
 
but that's not a firefox :P
 
Get a match
 
6:16 PM
hehehe
Still no reply to my comment ;-) phpslices.com/2010/03/11/…
 
@ircmaxell Someone should mention opcode caches like APC/eAccelerator. PHP is interpreted, but you don't have to reinterpret the file on each request. Just once, like compiling..!
 
it was mentioned...
(and it's not compiling, it's just skipping the parsing step)...
 
caché? caché??
 
sashé? sashé!
 
7:01 PM
5 votes to go!
 
hi all! if i append a button, with a class name, how do i give it a function? $('.appendbtn').click(function() {
$('.handler').hide();
doesnt work :o
 
@Opoe Hi! You didn't close the function.
$('.appendbtn').click(function() {
    $('.handler').hide();
});
 
oh i did! :p
 
@Opoe omg stop using that counter, and you don't need to store the elements in a variable, just include them $('.container').append('there')
 
@Nyuszika7H allright :$ in html?
 
7:15 PM
Ideas? jsfiddle.net/HeXV8 I'm trying to get the dimensions of an image so I can resize it's holder...for some reason this sporadically gives me the defaults even tho the image is larger.
 
do the size stuff in the onload callback of the image
 
@Opoe Nope. In JS.
 
$('.container').append( '<div id="drag' + (counter) + '" class="drag">' +
'<div id="handler' + (counter) + '" class="handler">' + '<input type="button" class="appendbtn" value="." id="appendbtn"' + (counter) + '"/>' + '</div>' +
'</div>';)

like that?
 
@IvoWetzel I'm using this in a plugin, it's not actually loading the image onto a page. It needs to pull the dimensions so it knows what size to make the iframe that will have the image in it.
 
@Opoe No, don't do that, wait.
@Opoe First, never ever add the same class and ID for an element. It's unneccessary – at least in your case. Second, don't use names like appendbtn for buttons that remove something. Third, try avoiding using links when they don't point to URLs or anchors. Use buttons instead.
 
7:23 PM
@ircmaxell I like your comments. I work with both technologies at small scales, and I find PHP much faster for development, which makes it a win for me.
 
Ahh
 
Also, I am so used to dynamic typing in scripting languages (Perl, PHP) that I get annoyed with all the typecasting required in .NET, JavaScript, etc.
 
thanks
You had me confused for a minute, since I haven't posted here in a little while
 
@Nyuszika7H thank you, but i just wanted to check if the appendbtn worked so i used hide() but you're right thats confusing i'm sorry
 
@Opoe Fourth, don't use handlers just to prevent dragging with a specified element. Use $('.obj').draggable({ cancel: '#elem' }).
 
7:25 PM
I'm way behind :D
 
@Opoe Also, it would be better to use a div element for the container.
@Opoe And it should have an ID, since you aren't going to clone the container. Sorry for all of these.
 
@okay, even if i want to append the whole container multiple times?
 
@Opoe If you want to do that, it can have a class then.
 
@Nathan: That's the point, isn't it. What's the faster language in terms of dev time (since developers are more expensive than servers at small to moderate traffic)
 
@ okay thanks i got the box with the appended items working, the last thing i need now is a button that appends that whole box that's what im working on now.
@Nyuszika7H thats why i thought it would be better if i append the whole box and nothing in the html
the whole thing with jquery i mean
 
7:34 PM
@Opoe You just need to do something like this: $('yourhtmlcodehere).appendTo('body')
is leaving
 
@Nyuszika7H exactly that would be the most appropriate way but i searched for a good example
 
For those of you not in meta:
 
T_T
 
That's a yes/no question... so if one person answers yes, and another answers no, which would he accept?
 
HAHAH
 
7:55 PM
@Dan: The right one obviously (which is yes in his canse)...
 
8:17 PM
At least someone recommended jQuery before it closed.
 
That's the funniest comment there...
 
Guys, I need some help please
I have a html form, and need to send a value labelled "texty" via POST using javascript ona separate page...any ideas?
 
are you sure you need javascript for that?
 
Yes, I can do it in php and html, no problemo, but this one needs to be JS
I think something about xmlhttprequest is what I need
is that right?
 
yes
 
8:28 PM
ok, i've just found a youtube video, going to watch now, thanks!
 
Good.
If you've got it working without javascript first, you're on the right track.
 
lol
 
and the cross-browser support gets much easier with jQuery or other javascript libs.
after you understand how it works, consider using jQuery's $.post() function.
 
8:53 PM
(817): In the ER. 2nd degree burns. Drunken attempt to make gasoline scented candles.
 
@ircmaxell lol
 
I saw that via TextsFromLastNight, and had to post it...
 
Why doesn't this work?
function get(el) {
  if ( /^[a-z]$/.test(el) ) {
    return document.getElementsByTagName(el);
  } else if ( /^#[a-z]+[0-9\-]$/.test(el) ) {
    return document.getElementById(el);
  } else if( /^.[a-z]+[0-9\-]*$/.test(el) ) {
    return document.getElementsByClassName(el);
  } else if( /^:[a-z]+[0-9\-]*$/.test(el) ) {
    return document.getElementsByName(el);
  }
}
 
Because there's an error in it?
 
what doesn't work?
 
@ircmaxell What error? Chrome's JS console returns nothing but an empty array when calling it.
 
@ircmaxell No wai! Really?
 
9:24 PM
I don't know. You said it doesn't work, and if it doesn't work tehre must be a bug/error in it!
 
is checking his code with JSLint
 
@ircmaxell Unless it was designed to not work
 
True @IvoWetzel, but then he wouldn't be asking why it didn't work...
 
No error. Implied global: document 3,5,7,9
 
JSLint does not check for errors, it just hurts your feelings
5
 
9:26 PM
HAHAHAHA
 
Oh, I've discovered an error. I need to escape the . like this: \.
 
Huh? Where?
 
Now it returns undefined.
@ircmaxell } else if( /^.[a-z]+[0-9\-]*$/.test(el) ) {
 
Yes...
What are you calling it with?
 
@ircmaxell get('tag') OR get('.class') OR get('#id') OR get(':name')
 
9:28 PM
And which one doesn't work?
 
Neither one works. They returned an empty array, now after fixing the problem, they return undefined.
 
Ok, first off,

if ( /^[a-z]+$/.test(el) ) {
 
fails
 
(since you want 1 ore more characters
 
needs a +
 
9:30 PM
so get that one working, then go to the next
 
Nice, now it works.
 
(Don't try to make it all work right off the bat)...
 
the # one is missing a * after the numbers
 
Fixed that, now that still isn't working.
 
Dude, that anti-if campaign thing is not a joke!
 
9:32 PM
(returns null of undefined :P nice)
 
hm..... document.getElementById(el);
el = '#foo'
wonder why that doesn't return anything
 
Yup
need to strip the first char in the 3 else cases...
 
@CodingKitten Did you breakz the codez
 
!kitten wob
tell your cat to wake up please
 
Ryan... please stop tinkering with that HTTP parser...
HTTP Request killed the chat bot star
!kitten wob
 
9:34 PM
It's Jeff Atwoods fault!
Jeff Atwood ♦, El Cerrito, CA
14.7k 19 61 77
 
@CodingKitten Talk with me
 
hehehe
 
@IvoWetzel is that the search traffic doesn't care if you "convert", they just skipping the parsing step)...
What's my name Biotch?!
 
Continuing that regex thingy tomorrow. Good night!
 
@Nyuszika7H night
 
9:39 PM
Good night
is about to head out and start Christmas shopping...
 
Christmas? ... ah that day... haven't gotten any presents for years now...
 
Maybe you'll get a kitten under the tree this year.
 
that would be so nice... out cat died last week :/
 
:-(
Still need to figure out what I'm going to get my mother... I know everyone else...
I'm going to shave my beard tomorrow... I'm half debating doing the friendly mutton chops as a joke...
Going for the 1800's inventor look
gnight all
 
night
 
10:34 PM
I have a fancybox that ajax calls file.php to get the content to show. file.php contains:
<SCRIPT>
jQuery(document).ready(function($) {
$('[name=replyMsg]').focus();
});
</SCRIPT>
but still it wont focus on the element why is this?
any solution to this?
 
what does the focus() have to do with the ajax call?
 
I want to focus the element with the name replyMsg, when the box are up
@nathan
 
so does the element exist at page load time, before the ajax call returns?
maybe you want to put the focus() in the callback for the ajax get() or post().
@Karem
 
@Nathan, Yes I want to, but I do not know how. I just used fancybox´ setting, href: "file.php"
to make the ajax call
 
/me googles "fancybox"
my internets are lame
 
<sarcasm>
Oh, it says it all clearly here.
> ajax { } Ajax options
> Note: 'error' and 'success' will be overwritten by FancyBox
</sarcasm>
 
sarcasm?
go down to "href"
thats what I am using for the ajax call
so i cant make a callback function
i thought i just could do a document ready, then focus()
 
the document ready handler will fire one time when the page loads. If you want something to happen after the ajax call you need to use the callback.
if you paste what you're doing I might be able to explain more
 
0
Q: jQuery: focus()

KaremI have a fancybox that ajax calls file.php to get the content to show. file.php contains: <SCRIPT> jQuery(document).ready(function($) { $('[name=replyMsg]').focus(); }); </SCRIPT> but still it wont focus on the element when the box opens. How can I fix this/any solution? My fancy...

 

« first day (66 days earlier)      last day (4892 days later) »