« first day (28 days earlier)      last day (4924 days later) » 
00:00 - 16:0016:00 - 00:00

4:00 PM
@Johnson i also recommend a jsfiddle
is @import "url" cross browser css ?
 
@Raynos ok minute
Just tried this:
var theTR = $(this).parents('tr');
and then: $(theTR).fadeOut(1500);
as the .delbutton you click on is inside the tr, i thought this would work, but nah..
 
@Johnson theTR.fadeOut(1500 its already a jQuery object. no need to wrap it again
 
@Raynos - i would avoid @import if i were you. it's finicky
e.g. in IE it does not load the different sheets concurrently
 
@Matt im using websockets, webworkers and canvas. Fuck IE
 
4:08 PM
@Johnson you just have syntax error
you were missing the ) for click(...
@Raynos ah, well i still prefer <link> personally. easier to track resources i think. </preference>
 
@Matt hmm.. i just forgot to add that in it.. I have it in my code
 
@Matt ill use link theres no point in me using @import
 
@Johnson after i added it, it works (try it)
 
Can anyone recommend something similar to require from node.js for client side?
 
@Matt ty
 
4:13 PM
@Raynos $('body').append($('<script/>', { src: 'bla.js' })); ;)
@Johnson np
 
@Raynos but seriously, CommonJS provides it i think
 
@Raynos: or of course, RequireJS
 
@Matt I forgot I could use {} as an attr list :)
 
1.4 goodness.
 
4:16 PM
I think ill learn requireJS
even if it looks ugly :P
 
nodejs itself just uses the commonjs model. but, whatever works for ya
 
Require is clever right and wont multi load stuff?
 
i generally find it's over-engineering for the client side
i do deploy-time require/combine/minifying, but that's me
the benefit of that is being able to throw the static file onto a CDN, for example
 
I think modular loading patters are pretty important for the clientside
 
i think they're important for development, not so much for deployment
@see jquery
 
4:18 PM
can I strip commonJS down to only the require part?
Is commonJS as bloated as commonLISP
 
lucassmith.name/2009/11/… <- i duno, but this person says it sucks
the real question is are you sure you have to compute this at runtime? or can you bundle the files in advance?
 
@Matt development is made easier by seeing these things being included. Ill optimise deployment later
 
right, i completely encourage modular development. but (at least, in our case at work) we have our deploy script bundle/minify the application into one js file
depends on the app though
 
4:42 PM
Ugh i need a proper javascript IDE
 
i know why I hate stuff that needs to be compiled
 
@IvoWetzel waiting :) small bug. edit. recompile. 4 minutes later
 
@Raynos No, ridiculous error messages which don't appear to make any sense because the actual error is in a completely different file -.-
 
Has anyone used "EditRocket" ?
editrocket.com/download_linux.html It seems better then gedit but more lightweight then aptana
 
ahhhh it's running again! without node this time
well it only creates a window so far, but nontheless
 
4:48 PM
IF i have <form name="addBlockList">
How can i call it?
$('form').submit(function() {
I want to specify the name
because i have more forms
 
@Johnson $('form[name="addBlockList"]') this will work
 
another thing I hate, namespace collisions
 
@IvoWetzel hence my namespace = $.MYNAME.MYHOUSE.MYIP.MYADDRESS.MYEMAIL
 
really? I enjoy myself everytime I'm putting like anything into the global object
 
@jAndy @Raynos I was speaking of C++
SFML and V8 collide on "Context"
 
5:01 PM
@IvoWetzel: oh lord
 
@jAn you put stuff into global objects? >:(
 
@Raynos: well, there is a decent chance I was bluffing on that one
 
@jAndy I just thought you were a shit developer :)
 
I'm sure I am anyway
compared to other guys out there
 
@jAndy "I'm not as good as john resig. This makes me a shit developer"
 
5:05 PM
<select name="blabla">
<option value="1">
</select>
Why cant I get the value when i call:
$(this).find('input[name=blockeringsgrad]').val();
Im receiving "undefined"
 
@Raynos: not talking about Resig. He is talented and has a brilliant mind tho, but I was thinking about guys like ryan dahl, nicholas zachas to name a few
 
@jAndy dahl wrote node.js ?
 
@Raynos: yup
doh I even typo'd mr. zakas there
 
@jAndy I cant compare myself to those kinds of people :P
 
There you go: github.com/BonsaiDen/Fluff.js Expect lots of progress in the next days
 
5:11 PM
so it's tough to claim to 'be one of the best' in this coder world thing ;)
 
@jAndy i prefer to label people as bad good and godlike :p
@IvoWetzel server offline :(
 
@Raynos ? GitHub's working for me
 
@IvoWetzel I mean your shooter
 
Oh, yeah not running so often these days
 
Ugh I give up. Ill install aptana :(
Why didnt anyone tell me gedit has plugins :(
 
5:19 PM
aptaaanaa
unfortunatly I HAVE to work on a windows machine at work (at least sometimes, when I can't grab a mac)..still best editor there Notepad++ (imo)
it really deals pretty good with syntax, even has some features I didn't see much on other ide's or editors
 
@jAndy notepad++ is excellent. I would also recommend vs'10 if you dont have to pay for a licence
 
my company is using cvs & svn as source control (brrrr) that is the only thing where eclipse / aptana is REALLY good at
interface for both is quite well
eclipse.. dear lord I cursed it so many times :p
 
Should I learn to use vim/emacs ?
 
@Raynos nano
 
I didnt develop quite much on posix so far, but for small tasks here and there vim & joe are my friends
 
5:29 PM
@drachenstern ew
 
hm design question
 
@IvoWetzel shoot
 
should I check the parameters from JS before passing them to OpenGL?
The more calls, the more overhead......
 
@Raynos well you asked ... :p learn it first. You'll almost always be able to get other people to use it in a pinch too. Like when you have to write documentation or give advice to less talented individuals
 
@IvoWetzel always check on the server. If the client edits the javascript and breaks the openGL then its his own fault
@drachenstern but nano looks so terminal. I didnt want to go that old school. Guess I should learn a terminal text editor. Ugh
 
5:33 PM
@Raynos it IS so terminal. I mean that if you're going to use a terminal text editor, learn one that you can walk someone through over the phone
 
@drachenstern is nano common? is it similar to vi?
 
if you're going to write code however, a terminal window (vim, emacs) is horrid given todays systems, unless you're working on a remote box (in which case you should learn emacs)
@Raynos it is common, it is almost entirely unlike vi
 
I guess if I want to learn a terminal editor would you advice vi, emacs or nano?
 
for just the terminal, I, being only one person would advise nano.
to learn an IDE that will be crossplatform, until Bespin comes online in full force, I would say learn Eclipse
 
@drachenstern Im used to eclipse, VS, notepad++ its just the older terminal editors are alien to me
 
5:39 PM
eclipseeeee uuuwahrhrhrghghh ifdoj
 
@Raynos well how often do you think you'll be using a terminal editor and to do what?
edit config files on random servers?
 
Ecplise... I... uh... if it just had configurable colors -.-"
 
@drachenstern Its just something I want to learn
 
@jAndy oh come on, it has the most widespread support for various plugins, and for the average user who needs to learn an IDE, it's not that bad. By the time you learn how to really use an IDE and you're comfortable in your language, Notepad is sufficient. ;)
 
And NO. As it's now they aren't configurable in any sane way
 
5:40 PM
@Raynos then learn nano
 
@drachenstern tell me more about bespin
 
@IvoWetzel so use a monochrome monitor :p
 
@drachenstern: yay the idea is nice, but .. I mean.. doh I really have the feeling eclipse is one out of a few projects which gets worse and worse
 
@drachenstern Because you said that close your IDE and start up notepad. Your not allowed to use anything else today. do it
 
@drachenstern: I'm still on HELIOS, because all following versions did bug me to death
 
5:42 PM
@Raynos I have, on a regular basis used it to fix code when I didn't have a need for an IDE
I wrote all my Uni code in gedit with no extensions
 
not just.. "oh damn it doesnt work" bug.. na, bugs like "I close the tab and eclipse enterily shuts down without saving"
 
and compiled with GCC on the command line
@jAndy well, I don't use it that often, but when the requirement is "cross platform" :p
I like my Visual Studio and I'm not afraid to admit it
I also use notepad++ (and thanks to @Raynos for that plugin for jslint ;) )
 
I mean, you cannot blame the guys - it's really tough to write something huge in JAVA which is good.. almost impossible
 
but if I need to edit say apache configs, I just nano /etc/httpd/*.conf
lol, lmao
 
thats possibly the only way IE6 could be even worse, if it would be written in java
2
lol
 
5:44 PM
@drachenstern theres a different between gedit, notepad++ and windows 98 style notepad . Your suggesting notepad is enough. go on use it :)
 
@Raynos I know, and I use notepad when I need to. Which is pretty regularly.
@Raynos I have, I do.
 
@drachenstern that makes me sad.
 
however, I also have tools that help me do good work, and I don't turn those away when they're useful
 
I'm just in love with syntax highlighting from notepad++
its so sugar
 
bah, I prefer my VS ;)
 
5:48 PM
I'd LOVE to see a notepad++ editor plugin for eclipse
 
@drachenstern only if its vs'10 I have vs'05 at work. it makes me cry
 
but then again.. ah no.. don't ruin your life by doing it in java
 
:D
But... it's kinda true, why learn Java? There's nothing fancy going on, JDK 7 has been butchered...
 
well, notepad++ is cool, vs is also fine, but all IDE's end editors are outclassed by one app still
codA from panic software
:)
 
@jAndy if you're working on OSX, no?
 
5:50 PM
@drachenstern: it's a shame it's only available on osx, but what do I care :p
 
6:16 PM
@jAndy whats codA ?
 
@Raynos: panic.com/coda
 
@jAndy ugh apple. Its so apple. No thanks
 
@Raynos did the "OSX only" comment above not give it away?
 
it rules you, eclipse, any editor, even me
 
@drachenstern not that. Its not that it is apple. its that looks apple. it feels apple.
 
6:20 PM
it IS Apple only. Or that's my understanding.
 
it is
 
6:31 PM
I mean the problem is that it feels and look like apple not that its apple only software. My issue is with the look and feel of the software not its supported platforms
 
I want to give the user an confirm() if lvl (variable) is 3. (If another number, run ajax)
If he presses "OK" I want the ajax call to run. Is there a way to do this without duplicating the ajax?
if(lvl == 3){
var youSure = confirm("are you sure..?");
if(youSure){
$.ajax({
url: "misc/bL_settings.php",
type: "POST",
data: { mode: mode, lvl: lvl, bID: bID},
success: function(response){
if(response == "LP"){
$.fancybox.close();
}else{
alert(response);
}
}
});
}
}else{
$.ajax({
url: "misc/bL_settings.php",
type: "POST",
data: { mode: mode, lvl: lvl, bID: bID},
success: function(response){
if(response == "LP"){
$.fancybox.close();
}else{
alert(response);
}
}
});
}
 
@Johnson hit up. press fixed size font. please
 
@Raynos i cant edit
 
    if ((lvl == 3) ? confirm("are you sure") : true) {
       $.ajax({
url: "misc/bL_settings.php",
type: "POST",
data: { mode: mode, lvl: lvl, bID: bID},
success: function(response){
if(response == "LP"){
$.fancybox.close();
}else{
alert(response);
}
}
    }
That might be a little too unreadable :P
 
so you make a boolean
smart
testing
 
6:39 PM
ugh.
I messed it up :(
 
It's alright only took the first line :P
 
if ((lvl == 3) ? confirm("are you sure") : true) {
    $.ajax({
        url: "misc/bL_settings.php",
        type: "POST",
        data: { mode: mode, lvl: lvl, bID: bID},
        success: function (response) {
            if(response == "LP") {
                $.fancybox.close();
            } else {
                alert(response);
            }
        }
    });
}
Thats better :P
You understand how the ? works right?
Its basically a one line nested if.
Ok im going to see a friends
 
have a good afternoon @Raynos
 
Yes thank you
@raynos ok thank you and good evening
 
7:20 PM
can I define a function thusly? functionName : function(param){/*code*/}? I've only ever seen that as an anonymous function in a plugin definition ...
 
obj = {blub: function(){}};
it's basically assign the function to the key
 
to the key, but not for a generic function. Perhaps he was only showing a snippet of code then ....
 
(function() {}())
and
(function() {})()
are technically identical, no ?
I'm always using the former, but many guys seem to prefer the outer ()
 
I thought the former was the better version ... idk, what does jquery do?
 
7:35 PM
Oh boy, how can people still do that. White text on a black background...
 
@drachenstern: they do )();
 
Gonna fire up the fire bug now
 
I never figured a difference between those guys
 
Then that would probably be why most people do it that way I suppose.
 
there is of course a difference between
var foo = (function() {
}());

and

(var foo = function() {
}());
but just changing the order of the last parenthesis.. doh I hope it doesnt make a difference :p
 
7:41 PM
SyntaxError: Unexpected token )
:P
 
oh indeed, you can't declare the variable inside the paranthesis in that particular case
need to be done before
 
8:07 PM
now this is kinda funny: jsperf.com/try-catch-vs-if-statements
 
 
3 hours later…
11:27 PM
evening
 
hiya
 
Greetings all, just checking out this chat room...
 
Hey doug.
 
11:45 PM
check out the sandbox chatroom
 
I closed aptan and cant find it anymore :(
 
00:00 - 16:0016:00 - 00:00

« first day (28 days earlier)      last day (4924 days later) »