« first day (54 days earlier)      last day (4912 days later) » 

2:01 PM
@IvoWetzel go buy lenses
 
@IvoWetzel I cant stand your face with glasses on. Use a bag
 
@IvoWetzel Oh 1st time I see this... Someone that can't stand not having glasses :O
 
user492203
Is jQuery = jQuery.noConflict(); the correct way to push jQuery's default $ alias to another frameworks (like MooTools, Prototype)?
 
@Nyuszika7H yes but I would probably advice againts mapping jQuery.noConflict() to jQuery
Something like JavaScript.trivialize = jQuery.noConflict();
 
user492203
I've found it. I can simply use jQuery.noConflict().
 
2:07 PM
I don't like wearing glasses, but it's the best alternative...
My eyesight is too good to be a good candidate for surgery (My resolving power is excellent, the DRs say I'd definitely lose some of it, so they are not willing to risk it). And I can't really wear contacts anymore due to other issues. So glasses are it...
 
> If you could only learn 3 programming languages, which ones would you choose?
 
Meaning when just starting out @IvoWetzel?
 
@ircmaxell I just like my self with the glasses on :) May be that's because I never like my face that much anyways
 
lol
 
@ircmaxell No, if you could only learn 3
For me it's JS, Python and C
 
2:11 PM
Easy. C first to get some low level experience. Python second to get some generic real world ability. Javascript third...
mirrored @IvoWetzel. Same languages, opposite order
 
May be something purely functional would be good to have in there but meh, it's a good mix
Python is a great scripting and application language, and if you need crunching you've got C :P
 
Fair enough... But with only 3 to choose from, what would you trade for the functional language?
 
@ircmaxell Python? Dunno, it's hard, Python already has some functional aspects and I really like them
 
Well, I don't even look at C from that angle. I'm not looking at C from a practical perspective, I'm looking at it from a foundations perspective. It's hard to write really good code if you don't have an idea what's going on down at the lower levels (at least from my experience). Python was chosen as a practical language (that 99% of what you write outside academic settings could be in that language).
If anything I'd swap out JS since it's only really useful right now as a web-based language (not discounting node.js, just there's not a lot of real world momentum behind it).
 
Well if you really want to know what's going on write assembler
 
2:17 PM
lol
fair enough
 
grab yourself a NES emulator the matching compiler and THEN do a Mario Bros clone
hint the original SMB source is 24k line assembler
 
good bloody god
 
and that's only SMB1, now imagine SMB3...
 
@IvoWetzel Wow...
Low level is low level, but...
 
Are you sure it was written in assembly? And not just converted to it form a higher level language?
 
2:21 PM
D, LISP and probably JS (because im a JS fan). (LISP is vague so probably just a scheme variant)
 
@ircmaxell NES was all assembly running on a 6052
hold on I'm searching for that zip file
 
I know that's what was the final product, but was it converted to assembly, or actually hand written in it...?
 
I doubt the had a C compiler
that was 83
They had to squeeze out every byte
 
The first compiler was 1957, so it's quite possible...
 
There were some mentions that they had left some memory free to put in bug fixes
 
2:26 PM
@IvoWetzel cmon, of course it was written in C and optimised by hand afterwards
 
37
A: What programming language was Super Mario Bros. written in?

AttackingHobo6502 Assembler Here is a forum page about hacking the ROM. http://forums.selectbutton.net/viewtopic.php?t=26956&sid=1a883209e1ba63877bcd58c007bb63ae It should contain any code references you need as well. A few posts down there is a link to a zip file that contains these items needed to ed...

there's hardly anything in the dis that's not needed
I don't think there was such an highly optimized C compiler back then
 
@IvoWetzel That I can buy...
 
also Donkey Kong was written in ASM
they ported it to the NES afterwards
the dis of that and othergames shows the usual asm bugs
like overwriting high bytes
in fact DK's 22 level limit is a result of such a bug, they actual hard cap is at 100, but enough Nintendo stuff :P
Nintendo might have had a toolchain for the SNES
but at least one 3rd party game whichs original source code I could get my hands on was written in ASM
N64 was C. Crash screen of Zelda shows some filenames which end with .c
So, I killed the chat with my Nintendo knowledge? :P
@Raynos I added more features github.com/BonsaiDen/neko.js/tree/next And kitten uses it :)
 
@IvoWetzel I pretty muched locked my class. The game thing is in process. Was trying to write a nice little async unit test wrapper last night. Didnt get very far
I can pass in a class object as a parent to inherit from. But I dont know what happens when you try to create a new class from a class object directly
@IvoWetzel at some point maybe tomorrow, maybe this weekend could you peer review my project on a higher level. Ill return the favour if you value my opinion.
 
2:50 PM
!kitten say are you working yet?
 
are you working yet?
 
ah you are, nice.
good work Ivo
!kitten say !kitten say kitten likes recursion
 
Nice try, did you really think that would work? I mean, are you really that stupid?
 
:)
 
!kitten say good morning!
 
2:54 PM
good morning!
 
@CodingKitten say How are you today?
 
!kitten jstruth
@IvoWetzel: "Equqality"?
 
Kitten is bad at spelling
 
well, as long as it can code and chat, it's still cool :)
 
@IvoWetzel: why do you remove anything you ouput after a while?
for the bot
 
2:58 PM
@jAndy Otherwise it will spam this place like crazy
 
@IvoWetzel: it looks more annoying to me that the chat shrinks periodically when it outputs stuff
 
hm
I've changed it
!kitten wisdom rchern
uh crash
 
lol
 
"can't handle wisdom" :)
 
catch those exceptions!
 
3:02 PM
kitten needs promoting to cat after beta phase
 
!kitten wisdom rchern
 
Guess you're out of luck with rchern. Yawn I nearly fell a sleep when checking their answers.
 
@ircmaxell BotException implements Mouse :)
 
!kitten wisdom Ivo Wetzel
 
11
A: Looking forward to a programming future but confused where to start.

Ivo WetzelGame programming is a lot about design and gameplay; the language is merely a tool. Of course, C++ is widely used, but even a C++ guru wouldn't be able to make a decent game if he didn't play games or understand how the actual mechanics work. You can learn C++ any day, learning how to create a g...

 
3:03 PM
throw new SpanishInquisition()
 
!kitten wisdom
 
!kitten wisdom ircmaxell
 
22
A: Why is PHP apt for high-traffic websites?

ircmaxellWhat you'll usually find is that it's not as slow as you think. The reason a lot of sites are slow is because the hosts are overloaded. But one primary benefit of PHP over a compiled language is ease of maintenance. Because PHP is designed from the ground up for HTTP traffic, there's less to b...

 
Ahh, so it posts the highest ranked answer?
 
aaah! no! don't try my name!
 
3:04 PM
!kitten wisdom thejh
 
9
A: Detect online users?

thejh have a MySQL database with a user table have a column in that user table which saves the "last seen"-time update that column on every page request when checking for online or offline, check if current time minus "last seen"-time is greater than some treshold you like Edit: You could optionally...

 
nooo! /me is sooo ashamed
 
ok I can understand your thoughts about spam now
 
@jAndy :)
 
mmmm
 
3:06 PM
!kitten help
 
but Firefox 3.6.x shrinks the chat pretty ..bumpy pretty annoying
 
It's back, with auto delete again
 
!kitten wob
 
It's Nick Cravers fault!
 
LOL!
 
3:07 PM
!kitten wisdom Chouchenos
 
Guess you're out of luck with Chouchenos. Yawn I nearly fell asleep when checking their answers.
 
!kitten wob again
 
It's Yi Jiangs fault!
 
!kitten ? javascript
 
Hold on a second, googling that for you... "javascript did you mean horrible typo?" There you go!
 
3:07 PM
!kitten wob just one more time
 
!kitten ? the best way to write good code
 
Hold on a second, googling that for you... "the best way to write good code did you mean horrible typo?" There you go!
 
huh? I'm confused. Does it always just say horrible typo?
 
!kitten ? sleep
 
3:08 PM
Hold on a second, googling that for you... "sleep did you mean horrible typo?" There you go!
 
!kitten ? kitten
 
That's my name. Well actually my full name is Kitten Gustaf Theodor Johanson of Rijkvek the 4th, sound impressive hm? You know what else sounds impressive? Leave me alone &!%$&!
 
it has another one, but the logic seems to be flawed :P
guess it should do a real google
 
Well, do that. Have !kitten google [text] actually google the text and post the link to the first answer. Also suggest !kitten docs [api call] which would look up documentation
 
oh dear lord
did you just squeeze all that out of your brain @IvoWetzel ?
or is there some "bot text" website around :p
 
3:12 PM
@jAndy what? we could make a new channel "jsWithoutKittens"
 
@jAndy What? The NES stuff?
 
no I like it, I actually was the one who pushed the bot idea forward :p
@IvoWetzel: nah, I mean for instance...: Kitten Gustaf Theodor Johanson of Rijkvek the 4th
lol o_O
 
@jAndy Too much time :P
 
Also, I'd suggest a seen function which says the last time it saw activity from the specified user !kitten seen Ivo Wetzel: would give: I last saw @IvoWetzel on 2010-12-09 at 10:13 EST saying "@jAndy what? The NES stuff?"
 
@ircmaxell Then I first need to fix that connection timeout bug which kills the kittens connection
 
3:15 PM
and a message function to leave people private messages (well not private, but at least a way of contacting offline users)
yeah
 
does it timeout like always or by not posting any request for a while ?
 
always, after some hours
no idea why
seems to be random
 
memory usage? or are you sure it's a timeout?
 
It crashes with E_CONNECT_TIMEOUT
 
@ircmaxell err... that already works, you can reply to someones message and the target user sees a notification on chat.stackoverflow.com
 
3:17 PM
hmm
maybe a heartbeat ping helps anyway
 
mem is at 5.5mb
 
@thejh: fair enough
 
well it fetches the chat every seconds or so
 
thats faster than the browser :p
 
My old irc bot had a bunch of stuff that's not really applicable here (it was a mod, so you could warn, kick, ban, etc right from a PM to the bot)
 
3:18 PM
@jAndy browser does it every fourth second or so
 
plus it had a nice feature where it would warn 3 times for cursing and then kick the user if they cursed a 4th time...
 
so it can now join and leave rooms via cmd
but we getter back back to topic or Nick will move half the chat to the sandbox :P
anyways it saves the list is is now also available in the tavern
have much fun with wob and rchern :P
 
IE8 XP vs IE8 win7 I'm seeing a difference. Is there any difference because of the OS or have I done something stupid?
!kitten wob
!kitten rchern
 
!kitten help
(I was still reading that)
!kitten js
 
Hold on a second, googling that for you... "js did you mean horrible typo?" There you go!
 
3:32 PM
!kitten think foo foobar
 
foo? Sounds interesting, gonna write that down, yes on real paper, and no, papers's not edible.
 
!kitten foo
 
foobar
 
nice! That can come in very handy (especially from a practical standpoint)
 
I'm getting an alert box with the message false whenever I reload Stack Overflow. What up with that?
 
3:34 PM
already fixed
 
Yea
 
Can someone answer a general jQuery question?
I'm going to ask anyway
 
If you call Nick "someone", then yes
 
shoot
 
!kitten think asktoask Don't ask if you can ask a question. Just ask your question and if someone can help they will...
 
3:37 PM
asktoask? Sounds interesting, gonna write that down, yes on real paper, and no, papers's not edible.
 
jQuery has no simple way of getting descendat text nodes
 
!kitten asktoask
 
Don't ask if you can ask a question. Just ask your question and if someone can help they will...
 
there's contents(), which returns you all child nodes, include text and comments
and then there's find(), which only matches elements but will search all descendants
why's there no combination?
something that will let me get all descendant nodes?
 
3:39 PM
@TimDown maybe api.jquery.com/text ?
 
because it's only 26k, they have to compromise with the included features, they can't put everything in
 
it's not a difficult thing
 
Only 26k? That's not even a round number
 
for example event debouncing... would love to have that
 
It means getting descendant text nodes is a bunch of arse in jQuery
0
A: How do I select text nodes with jQuery?

Tim DownjQuery doesn't have a convenient function for this. You need to combine contents(), which will give just child nodes but includes text nodes, with find(), which gives all descendant elements but no text nodes. Here's what I've come up with: var getTextNodesIn = (function() { function textNod...

Not that I care much, since I don't use it
but it seems an oversight
 
3:41 PM
there might be a walk-the-dom-like internal method
 
what's event debouncing?
what is debouncing?
 
@Tim If you want to execute code only once after an event has fired multiple times... like when you resize the window
 
I must be getting slack with my JS blog reading
Oh, I see
 
I do that with a simple window.setTimeout
@ŠimeVidas thanks
 
3:45 PM
It would be nice if jQuery had foo.debounce("resize", function() { ... });
 
Hmm.. I was wondering about the ajax chat, such as this one, how does it detect if an user left the chat?
 
@thejh Are you there?
 
you could add that in about 10 lines of code
 
@David yes
 
Tek
Does anyone know how I can highlight an element? And by that I mean fading the whole page to black except the element that the mouse is pointing at?
 
3:47 PM
make an overlay of 4 semi transparent black divs
place them correctly, done
 
@thejh Im working on that script for that link to google docs
 
user492203
Hi!
 
@Nyuszika7H Troll
 
@David and what?
 
@JónTraustiArason the fact that it's no longer requesting new messages would be a pretty big tell :-)
 
3:54 PM
@thejh Are you in the document
 
@AndyE Yes, true. I guess that's the way to go :-)
 
@AndyE No that's not how it works
@AndyE Your browser needs to send a leave command
 
Ivo Wetzel: That can't happen for every case.
 
If I just SIGKILL the kitten it will stay indefinitely
 
lol
 
user492203
3:56 PM
!kitten SIGKILL
 
Hold on a second, googling that for you... "SIGKILL did you mean horrible typo?" There you go!
 
@David yes
 
@IvoWetzel However, it would be GOOD if it could be triggered in most cases via js. It would then work similar to IRC, doing ping pongs to check if the client is alive or dead.
 
@IvoWetzel: so if my browser crashes I'm still here for a long time?
 
user492203
@CodingKitten It was me? But I don't have 500 rep :D
 
3:58 PM
!someonewith5000rep say !kitten think SIGKILL signal 9, kills a process quickly and without asking it to terminate on Linux/UNIX systems
 
@AndyE Do you have some insight on how it works on Stackoverflow? ;) Does the server just check timestamp of last requests from all users?
 
td.innerText || td.textContent td.textContent works fine in FF, td.innerText throws an IE error
 
user492203
!kitten Google
 
Hold on a second, googling that for you... "Google did you mean horrible typo?" There you go!
 
user492203
LOL
 
user492203
3:59 PM
!kitten you
 
Huh? What's a "you" supposed to be? If you can't type you should reconsider your profession, what about writing the next Harry Potter? Can't get any worse with that...
 
!kitten ban Nyuszika7H
 
Congratulations Nyuszika7H you have been rewarded with the [BANNED]-Badge.
 
!kitten me
 
user492203
very funny :P
 
3:59 PM
Hold on a second, googling that for you... "me did you mean horrible typo?" There you go!
 
@JónTraustiArason not really. I would just assume that a leave command would only be sent when the user explicitly chooses to leave a room, and you would expect that a lack of communication between the user and server would also signal that they've left.
 
!kitten can you be quiet?
 
Huh? What's a "can you be quiet?" supposed to be? If you can't type you should reconsider your profession, what about writing the next Harry Potter? Can't get any worse with that...
 
yeah.
Have a good day.
 
Hold on a second, googling that for you... "shit did you mean horrible typo?" There you go!
 
user492203
4:01 PM
!kitten give me 500 rep
 
Hold on a second, googling that for you... "give me 500 rep did you mean horrible typo?" There you go!
 
oh the ban doesn't ignore that
 
bug time
 
more like spam time
spam further and the rep needed will go up
 
Quiet this spamming. or else.
 
user492203
4:02 PM
@IvoWetzel did you make the kitten? :)
 
!kitten wisdom chouchenos
 
user492203
@Chouchenos Kitten has left
 
Baaaad kitty !
 
it wasn't a great idea to set the body color to #FA66FA
chat looks pretty gay now :p
 
min rep is now 200
that's what you get :P
 
4:12 PM
!kitten help
 
and the banlist has been fixed
 
!kitten wisdom jAndy
 
this color annoys me soooooo much lol
jQuery(document.body).css('color', '#FA66FA');
open your console and exec that!
 
omg
 
4:14 PM
its my unicorn theme
:D
 
!kitten wisdom Andy E
 
kittens needs to generate a random unicorn image
 
@IvoWetzel kitten -> sandbox
 
@Raynos noooo!
 
just stop spamming with it
It doesn't do anything on its own...
 
4:16 PM
jQuery(document.body).css('color', '#FA66FA');
i'll do that on every tab now
"you dream you're a unicorn.. come, come with me on my rainbow ride"
 
Tek
Does anyone know how I can highlight an element? And by that I mean fading the whole page to black except the element that the mouse is pointing at?
 
user492203
@Tek I think you're looking for something like lightbox.
 
@jAndy I prefer rainbow riding unicorns
 
@jAndy do you know this one? horrible... cornify.com
 
Tek
@Nyuszika7H How can I highlight an element when an external box is in the way?
@Nyuszika7H I'm trying to highlight something in the page
 
user492203
4:19 PM
@Tek Sorry, I misunderstood your question.
 
@thejh: yaaay I know about cornify, it rules
 
Tek
no problem
 
what is the javascript equiv of python code : for i in range(100): print i
 
for(var i = 0; i < 100; i++)console.log(i);
 
@volatilevoid for (var i=0; i<100; i++) console.log(i);
 
4:20 PM
sorry .. i meant is their a range(100) equiv i javascript
range(5)= [1,2,3,4,5]
 
user492203
@jAndy what browser do you use?
 
function range(n){var e = []; for(var i = 0; i < n; i++){e.push(i);}return e}
 
@Nyuszika7H: all of em
@Nyuszika7H: but mostly, chrome tho
 
i was looking for native support for range .. anyways thx Ivo Wetxel
 
user492203
@jAndy use the PersonalizedWeb extension :P
 
user492203
4:24 PM
@jAndy create a new rule in it, leave the URL as is, and to the JavaScript part, type in: document.body.css.color = '#FA66FA';
 
@Nyuszika7H: I wasn't too serious about that
 
user492203
@jAndy :D
 
4:35 PM
    @Tek: should look like that:

    $(document.body).delegate('*', {
            mouseenter: function() {
                $(document.body).find('*').not(this).stop(true, true).fadeTo('fast', 0.4);
            },
            mouseleave: function() {
                $(document.body).find('*').not(this).stop(true, true).fadeTo('fast', 1);
            }
        });
 
Tek
@jAndy :O gasp jAndy you shouldn't have :3 Let me try it out... ^_^
 
this looks even more sexy with jQuery(document.body).css('color', '#FA66FA');
@Tek: well I just assumed jQuery is available for that.. if not this is going to explode a little
 
Tek
@jAndy This is awesome, but a little glitchy xD
 
@Tek: it is..you should probably limit the elements to fade more
 
4:51 PM
> possible duplicate of How to list the properties of a javascript object – Andy E 42 mins ago
> It is. Too bad array is never mentioned there. – tishma 27 mins ago
I love it when people try and get smart.
 
Tek
lol good point
@jAndy How can I get the element to stay highlighted on mouseenter?
It dissappears as soon as I put my mouse on an element
 
user492203
@Tek just remove the mouseleave
 
is there any data.se query to see how many upvotes I got for a sepcific tag?
 

« first day (54 days earlier)      last day (4912 days later) »