« first day (568 days earlier)      last day (4605 days later) » 
00:00 - 17:0017:00 - 23:00

00:11
NONONONONONONO
@IvoWetzel is this your lufa to coffeescript compiler?
@Raynos Hey look, ice bear, why don't you mind your own business... like... catching some fish for the trolls? :P
@Raynos lol that made our cat wake up and freak out
Also, the cat already answered the question
@IvoWetzel can you at least document the syntax :P
there are some lufa files under /test
00:15
i liek how you implement random features :p
also use less confusing function name examples. double is a type and a function name :P
it's not a type
get some vim and throw in the syntax highlighting for lufa if you're confused :P
user1385191
00:53
I suddenly feel at ease that I've written a project with about 4k lines of JS
^ improvement suggestions?
user1385191
a semicolon after hold
@MattMcDonald there's no semicolon in Bobince's original answer
user1385191
you did ask for improvement :)
:P
should the unicode-torn bit be on the back, i wonder...
@Zirak dude, you totally quoted it wrong. The end part should be "and in the darkness, bind them", not "to the shadow," though that is pretty cool
01:19
yay class parsing is in
not much left now
@ThomasShields no, where do I get the t-shirt lol
@MattMcDonald you have created a monster
@sg3s I moved the "Tony the Pony He comes" to the back... I'll link you to it in a second
@sg3s actually i can't link it, but it should be pretty simple to create on a tshirt design service.
01:37
yeah..... I'm lazy
:p
@MattMcDonald But what about the people who don't want to use semicolons! They will probably punch you right in the face if you wear such a shirt
@IvoWetzel oh dearie me I hadn't thought of that. Perhaps a half-faded semi-colon? Then each party sees what they want to see.
@ThomasShields just make sure that it's $('<div>;</div>').fadeTo(0.5)
@IvoWetzel then that would be half the reason I'd be wearing it
01:48
otherwise the jQuery people will complain too
@sg3s :D
@IvoWetzel right, naturally
Then why not just wear a tshirt with just a semicolon on it?
but it would be more fun to see how many people will pick up on the reference tbh
@IvoWetzel ooh interesting. deep.
or, references
01:50
If anyone's interested in making their own I asked on meta to double-check it's legal.
user1385191
I expected superfluous pings
user1385191
I was disappointed
@ThomasShields Also, see < > being un-escaped, I suppose your t-shirt isn't XSS safe
@IvoWetzel rofl.
user1385191
&lt;center&gt;
01:51
that's better!
also, there should be a black version with white text, for people like me who prefer dark backgrounds when coding
I'm really liking that semi-colon idea. It'd leave normal people wondering what the heck it means and makes the geeks wonder if they're missing something. only the programmers (maybe) would realize that it's an apparent reference to semi-colon debates
@IvoWetzel yes, of course.
user1385191
uh, it was a reference to proper grammar
@ThomasShields I'd wear one at the next JSConf for sure
01:52
@MattMcDonald in your case, yes.
which is why I fixed it.
but I was talking about a shirt with just a semi-colon on it.
as @Ivo suggested.
user1385191
oh
4 mins ago, by Ivo Wetzel
Then why not just wear a tshirt with just a semicolon on it?
@IvoWetzel then make one! in all shapes, sizes, and colors!
user1385191
what's the site you're using?
@ThomasShields You should ping @Raynos with that one ;D
@Raynos
it's not the cheapest site, but the ratings are pretty good and it's got a nice editor.
It couldn't handle the unicode though; I had to do that as an image
user1385191
02:00
user1385191
I could use a better regexp
I'm horrible at regex. You're replacing {8}?
And even so, I don't get it. :(
user1385191
I'm replacing a spaces at the start of a line with a tab
@MattMcDonald oh duh. cool
tabs aaaaaaaaaaaaaaaaah
user1385191
02:04
you have to escape the braces with UNIX regexps
user1385191
but that's a numbered anchor
so {n} = n spaces? but { are used for something else so you have to escape them?
user1385191
{n} {m,n} {m,}
what does do those latter ones do?
user1385191
m = 1;
user1385191
02:06
n = 3;
user1385191
{3} {1,3} {1,}
user1385191
find 3 consecutive; find 1-3 consecutive; find 1 or more consecutive
ooh neat
02:44
^ what do you guys think? Is it good enough? Should I go for it?
the good part is even non-programming poetry buffs will half-get it because of the Yeats line
It's probably too stackoverflow-specific, a person, who never saw the corresponding answer will never get it, I guess
user1385191
it's not worth it
@KonstantinPereyaslov exactly
@MattMcDonald any better ideas? I'm still trying to decide
user1385191
wait a year and let the idea fade
killjoy.
I'm owed a t-shirt, so it's not really a waste of money or anything. I just want to get the perfect nerdy shirt.
03:08
hi all
anybody here?
 
1 hour later…
user1385191
04:20
oh boy
user1385191
I'm looking through the dojo source
user1385191
there's some real doozies in here
04:26
@MattMcDonald what's the point of using instanceof and typeof there? Or is there no point.
04:39
0
Q: Trouble with JavaScript code

AnonymousI'm just having a little trouble getting this thingy to work, it's for a class: <script type="text/javascript"> /* A does not equal 0 Solve for A */ var A=new Number(); var B=new Number(); A=B; alert(new String(A)); </script> Any help would be appreciated.

 
3 hours later…
08:04
Hi, anyone there?
08:20
y
hey @kritzikratzi , can i get your opinion on this? what do you think would be the best way to specify "flags" for a parameter? heres a simplified example: jsfiddle.net/hDfjT just trying to figure out what would make the most sense
SomeClass would be part of a library, so other people would be using this doStuff method
not sure if bitwise-style enum flags would be best or not...
08:54
hi all
0
Q: Dojo Dnd issue: Dojo insert data from json in source using insertNodes

AbdulAzizI have a json as follow; var jsonRoles = {"roles": [ {"roleId": 1, "roleName": "Admin", "roleDesc": "This is an Admin"}, {"roleId": 2, "roleName": "Manager", "roleDesc": "This is a Manager role"}, {"roleId": 3, "...

0
Q: What's so bad about the DOM

wheresrhysI keep hearing people (Crockford in particular) saying the DOM is a terrible API, but not really justifying this statement. Apart from cross-browser inconsistencies, what are some reasons why the DOM is considered to be so bad?

@grantman16 why not just use arrays? i.e. categories: ["taco","banana"]
and for querying categories.indexOf( "taco" ) >= 0
 
2 hours later…
11:13
@grantman16 bitwise would be the most efficient, but not the most friendly. An object with options is way more friendly and good too. It depends on your audience I'd say
11:32
1
Q: javascript setInterval()

Peter WateberI have this code: function noti() { document.title = document.title + " 1" } setInterval("noti()", 1000) The problem is it outputs: My title 1 1 1 1 1 1 1 ..... to infinite.... 1 Is there any possible way to output this as "My title 1" the noti() function serves as a purpose whe...

My insides cried a little.
the answers make me cry too
all using regex <_>
oh hai
hadn't seen a js garden link in quite a while
IvoWetzel did good work; I link to it whenever I can, for dem n00bz to learnz
oh it's his work?
0
Q: why is new Array slow?

Raynoswhen comparing the operation var k = j.slice() to var k = new Array(j.length) using new Array is really slow. Why? benchmark

11:41
Under "The Authors", right at the top
Yi Jiang (the designer) is also a room owner, but I haven't seem him in a long time
does anyone here have any experience with jquery .validate?
if yes, please help me here stackoverflow.com/questions/10469913/…
Is there a way of saying "deceased" as a verb?
huh, deceased can be used as a word...
you mean decease?
heh yes deceased is a word @Zirak
http://www.deseretnews.com/article/650618/Deceased-used-as-noun-adjective---rarely-as-verb.html
11:54
@Raynos y u stupid :p
"He deceased" means "He died". I thought "deceased" was only used as an adjective (he is deceased) or a noun (the deceased)
@sg3s I know it's a word, but I didn't know it could be used as a verb. Ahh, English...you motherfucking language.
:p
12:12
do you guys know how to make the div behave like the button?
adding $('p').blur(false) doesn't work
@FlorianMargaine try return false; in the mousedown event
Easy one
13:15
@FlorianMargaine wut
13:30
oh ze gardens needs sum updates to rants about se no semicolon peoplz! /sarcasm
We should protest these like the SOPA Blackout.
Only difference, instead of having a completely black page. We have a single white semicolon in the very center of the screen
:D
and we counter protest
with... nothing?
by having no semicolon in the very center of the screen
13:32
People outside our industry will probably think that we are some very strange English Teachers debating about the use of ;
or... way less likely though they will just think of us as strange beings without a life
lulz you n00bz, my Life is lv37
poor guy, still trying to reach max level, if only he knew that all the fun is long gone by then... the real wonderment of life is always on the low levels, it's new, it's wonderful, a whole world to discover... be it WoW.. or the real life
Is it inappropriate if I cry and tell the pizza delivery boy that I love him?
nah, just don't expect free pizza
He bring joy to my world. Every single time.
13:46
wow, lots of love there
Hey
i need some advice on something
@FlorianMargaine feedback on video content appreciated o/
I just caught the phrase "I hate people" in my video :D
I know the microphone sucks :(
Ahhhhhh I hear the voice of @Raynos :O
Apparently my voice sounds like a 14 year old trying to use a deep voice ._.
@Raynos how old are you
13:58
SO claims im 22
I was about to say im 23
yes young
@Raynos Sounds good for an Icebear
but I might be lying, I did the maths, im 22
your avatar is arctic bear ?
its a black and white bear
13:59
@Raynos you like bear?
"i like bear" ಠ_ಠ
No, I am a bear.
0
Q: javascript - collapse long text (with more/less links) (node.js)

IftahI wrote a little function to compact long text. I am relatively new to javascript so I am not sure I wrote it as elegantly as possible. I wrote it to be runnable on the server side (node.js) as well, so can't use jquery or such. Can the code be improved? // change a long text into "bla bla bla....

Hey there
anybody ever used Microsoft Access.
14:24
a prince suffered from a disease that he can only speak one word in a year, waiting five years, he can finally speak five words, he approach to his crushed princess, speaking 'i love you so much', and the princess replied with one word that make prince faint. do you know what one word does the princess reply?
@didxga "lol"
I just had a very weird interview, arranged by a friend-of-a-friend kinda of thing...the friend-of-a-friend told me it's a programming job...from what I heard, it appears to be tons of copy-paste duties, which can probably be solved by a Perl script...
@didxga Also, "one word a year" doesn't mean the words stack. It means that if he said a word this year, he can't say another; if he didn't say a word, then too bad for him, it isn't recorded somewhere.
@Zirak guess what princess say
Already guessed. "lol", or "bllaaarrrggghhh" (vomiting sounds), or maybe even "why?"
Ahhh :-(
@Zirak ever used Access ?
hahahahaha, no.
14:38
no, it is 'what?'
the princess did not heard what he told
@Abhishek I did
I did long long time ago, when I was in college
this afternoon, I made this snippet jsbin.com/ivisup/2/edit
it can covert tree representation like [[1,[11, 111],12,13], 2] into a tree
@FlorianMargaine um can u walk me through access I mean i am supposed to screenshot some "Exclusive Features" of access
for a school assignment
i found my way out creating the database but it makes me feel phpMyAdminish
I am planning to use it to generate a treeview dynamically
14:55
:-(
okay i screeenshoted some things lolz
hopefully my teacher will be pleased
@Abhishek good luck
@didxga thanks :-)
@FlorianMargaine yea it's way more powerful and useful, mine is for my specific need
@FlorianMargaine lemme dive into the code implementation.
that's why I showed this to you
most of the code is boilerplate to handle specific cases btw
@didxga what do you call a tree btw?
and what is it used for?
looks like you're recreating the DOM
15:09
@FlorianMargaine I wanna make a treeview like this jquery.bassistance.de/treeview/demo
I just pasted the tree building part of code.
looks like fragbuilder does that for you
you then assign the correct classes and you're done
or change it to create just ul tags
I will test that
@FlorianMargaine are you a freelancer?
nope
I could be
but I don't have enough time ._.
@FlorianMargaine I saw you spend most of your time here.
not at working?
o/
15:23
@didxga I'm connected here, doesn't mean I'm watching the screen
@didxga There are many redundancies in that code
@Zirak yes, it supposed to, thanks for review my code and helpful advise
@Zirak I have not refactoried my code, just write it from scratch at straight
@FlorianMargaine, I only get here after work, mostly at night.
I tried to load a script inside another one. The browsers however complaints that it is null.
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "script.js";
document.body.appendChild(s);
I don't have a webserver running and the html page as well as the js in the same directory.
hello everyone... i am a backend developer.. and have to get started with a javascript framework,.. which one is advisable for beginner??
15:28
@Nils is the DOM loaded? :)
Is document.body already parsed when you call that, or is it before the interpreter could finish its job?
no iead?
@HARRY No framework. Learn the language first before pumping yourself with frameworks.
@HARRY why not getting started with javascript instead?
I just put int in <script>..</script> in the head
15:29
put your code at jsbin.com
And why would the body be available if it's not reached yet?
@Nils then the body hasn't loaded yet. You're trying to add the script to something that doesn't exist.
When the parser sees a script tag, it executes it; and if the tag is in <head>, it couldn't add the body to the DOM yet, so document.body is null
you'd executing your script adding code only after dom has been loaded
that is onload = function(){your code goes here}
ah.. well I just fond this on so
15:30
well.. had a little assignment.. thought a quick startup would be possible
so I have to write <body onload="loadMyStuff(..)">
@HARRY depends on what you want to do. If you want to be like web designers and not learn js development, go for jquery. otherwise, learn js
No. Just put the script tag at the end of the body tag.
or better yet use jquery $(function(){your code goes here});
@didxga better?
15:31
yes Zirak's suggest also work
HOLY FUCK DON'T JUST POMMEL JQUERY TO SOLVE EVERY TINY PROBLEM
2
yeah maybe later @didxga first I have to learn the lang
@FlorianMargaine yes it does not wait all image loaded
is jquery a framework or a library.. i have a constraint for framework..!!
@Nils you can wait for the DOM to be loaded by listening on an event. For example: document.addEventListener( 'DOMContentLoaded', function() { /* Your code here */ } );
15:32
@HARRY Even if your job as paper-boy is to deliver 1 newspaper to the old lady living down the road, if you don't know how to ride a bike, painting flames on it won't help. If you don't know js, then a framework can't help.
@didxga DOMContentLoaded doesn't either
it's just not cross-browser.
so jquery made it cross browser.
@FlorianMargaine thx
15:34
@z well somehow i'
jQuery just waits for onload if DOMContentLoaded doesn't work
You DO NOT need jquery just to listen to the onload event...geez.
so it is partially what it claimed ...
yes, stick with the native js
@Zirak somehow i'll help the lady.. by the way i know the basics of javascript.. but never got into a framework.. but now its a constraint
but still I have a function in the script called sayHello() and I cannot call it, maybe I didn't append it to the right place?
@HARRY Why is it a constraint? And if you know js, new framework is a matter of learning the API
@FlorianMargaine yes
@Nils Script loading isn't synchronous
so I have to wait until it is loaded.. how?
15:38
Either do these calls inside the script, or listen to script.onload (I think that's the correct even name...I'll go check)
@Zirak constraint is.. the things have to be organized within a javascript framework only.. whatever be it.. i tried backbone.js but was taking so much time
I didn't what what the constraint is, I asked why it exists.
uhh all I wanted to do was to load a simple script automatically inside jslint before executing it..
And yes, it's script.onload
All I wanted to do was breed my own dragon. Tough shit.
heh
15:41
well thx for help everybody
Now...someone go get me pizza.
bahaha, didn't finish the comment on line #13...
its kind of a war within guys.. @Zirak your pizza is on its way
meh, tl;dr slap 'em on the prototype
@Zirak man thanks for refactory my code.
15:42
I didn't touch your code, only commented
@Zirak hoisting about root: same for item
@Zirak, thanks for taking it seriously.
yeah, forgot that too...I'm 92, getting senile
function isArray(obj) {
    return Object.prototype.toString.call(obj) === '[object Array]'
}; //redundant semi-colon
no semicolon on the return tho :p
yeah that's why you should use jslint
15:43
jslint sucks
...I am getting old...how didn't I notice that?
I used to be a missing semi-colon sniper
Zirak, you are really 92
@FlorianMargaine So how would you deal with semicolon insertion then?
In every other language you have warnings.
@Nils there was a big debate around ASI these last weeks, I used to code w/o semicolons, have reverted back because of editors sucking with ASI
but yeah, jshint > jslint. jslint is too much opinionated
I mean, the ASI option can be turned off by checking the "Tolerate stupidity" option ._.
15:46
@Zirak, I am reading your comment, it's really helpful
Someone paint a speech-bubble coming out of Crockford, saying "Trololololol"
That guy is a genius. Have you seen the github issues comments?
ok
so you would recommend jshint instead
Use whatever you want.
@Zirak would you please mention the genius guy
Nobody really gives a rat's ass
15:48
have to go
bye
@HARRY he is sarcastic.
Nah bro. Crockford's a genius.
@Florian oops, i missed that
@Nils, bye
I'm tired...but already ordered the prostitute...hrm
15:51
you are 92, you can still do that
<3
so guys am still stuck.. what framework to begin practising
what do you call a framework?
and frameworks have different purposes
15:58
It depends on what you need them for. Frameworks are for a line of though, for a pattern. One framework isn't fit for everything.
@HARRY what your purpose, you only want get your feet wet on how to write a javascript framework?
no.. am not in a mood to write a new framework.. just that i have to choose from top 10 available frameworks only.. task is as simple as nothing.. push the code to the server and querry back .. already though with the required php code but have to utilize some framework for user interface part
use jQuery then.
agreed, learning curve is lower for jQuery
jquery isn't a framework. It's a bunch of functions. It's not about modeling or structuring; it's just a pack of helper functions (a.k.a library)
If you don't need a framework, don't use one.
16:11
ok in other words.. if i have to practice my first javascript framework , which one?? i tried backbone.js.. couldn't succeed
13 mins ago, by Zirak
It depends on what you need them for. Frameworks are for a line of though, for a pattern. One framework isn't fit for everything.
say,.. trying to push and pull data without reload
If you need a framework to do that, mercy on your soul.
@HARRY backbone.js is the simplest framework for what you want out there
@Zirak you really love the blame game... right..!! am beginning to put my first step on the ground..
:/
That's the reason why my "will one day compile to JS" static language does not allow for "$" in identifier names :P
Accidentally stepped on the amp<->guitar chord. Amp made sounds like it's being raped by alien zombies.
hi guys , i have 5 days and no one can fix my problem in html/jquery :(
too bad, right?
16:33
here is my whole code , pastie.org/3869190 . problem is table forms are disapearing when page refresh,
Holy mother of language soup
2
@FlorianMargaine \o
@IvoWetzel \o
16:40
when i o hi5 u did support ? lol
@gosto that's probably one of the ugliest code I've ever seen, not to mention unsecure. Your table doesn't appear because it's under the if (isset($_POST['...']))... I let you guess why it's not working
@Abhishek o/ is not especially high five to me, it's just a hi
// okay that too
but \o/ is kinda shocker
@FlorianMargaine you k mate ?
Why do you put messages after //?
@Zirak dunno
It's not like it's an unconscious thing like a stutter; / isn't even comfortably located near letters. You have to actively press that key twice, on purpose.
16:51
Sorry
@FlorianMargaine i know my code is not very good koz im new in php , and the way how to secure it , i didnt come to it yet . so now its this what i have write but i meet the this problem
@FlorianMargaine the first table1 it shows with page refresh , but table2 when page refresh it dispaears .
Zirak, he's making a //comment :-D
maybe
@FlorianMargaine they disapears both
@gosto can i see your code ?
16:56
and what do you want to do init ?
i mean you want to hide table 2 ?
i want , when clicking on buttons in table1 , the table2 will appear and not disapears , because now they dispaear both
00:00 - 17:0017:00 - 23:00

« first day (568 days earlier)      last day (4605 days later) »