« first day (537 days earlier)      last day (4395 days later) » 

5:00 PM
@Chris whats the reference?
 
@rlemon Thing about the top is that if it returns nothing, I don't know if that is the same as returning false. Returning the boolean false is an active statement, whereas returning nothing is ambiguous.
 
nvm... i see now
!!res groups the last two
I revert my prior statements.
 
 
I find that offensive to @Zirak.
He does not wear a monocle
 
user1385191
returning undefined should lead the system to ignore the callback result
 
5:02 PM
dunno what he gets up to in the bedroom
 
@Raynos What do you mean?
 
blackCoffee
 
Plain, no cream, no sugar?
Delicious and strong?
 
hi All
anybody experienced with NodeJS here?
 
Oh
 
5:08 PM
need some basic guidance
 
/*  blackCoffee - a lightweight javascript library */
var blackCoffee = document;
 
anybody experienced with NodeJS here?
need some guidance
how do I access the js variables and values in the html page?
 
user1385191
a certain someone here loves node and will probably help you if we remind him to go to the node room
 
does node have no documentation ?
 
yes it has, but its doc, not tuts
I tried googling around as well
didnt find
 
5:15 PM
Inglish is awesome
 
If anyone ever says "I have some doubts about JavaScript" you can flag them as indians
 
nods
It is a very common indianism.
 
I too have some doubts about javascript, though.
 
heh
That'd be a false positive in your case.
@Chris I just ran OctavianLint on your profile description and it seems to be invalid.
 
5:21 PM
... OctavianLint?
 
> OctavianLint: Error on line 11. javascript should be spelled JavaScript
@RyanKinal That is a special type of validator.
 
@OctavianDamiean No.
 
No as in Noooo, I made a mistake ... or no as in No, screw you!
 
The latter.
 
OctavianLint doesn't approve of your no.
 
5:43 PM
I treat it as one word, "javascript". Not, IMO, a proper noun, so it is only capitalized at the beginning of a sentence. I don't ever write it as "JavaScript" especially, since that emphasizes the word "Java" for no reason -- js has no relationship to Java, so why highlight that portion of the word? I refuse.
 
It is a name.
 
JavaScript also reminds me of the good ol' language tag. Also, it makes you sound gay.
 
just use the most correct name ECMAscript and don't worry anymore
 
lolscript
 
5:45 PM
@FlorianMargaine I always wanna call you Margarine
 
-/rename room ECMAscript
 
I know, you've already told me.
 
@rlemon looks interesting, will check it out
 
btw @rlemon, why don't you write the entire text with fragbuilder? That'd be fragbuidception :p
 
s/jQuery/trollScript
 
5:46 PM
what does that slash/slash/slash notation mean
 
I need to write a DOM to JSON converter :P
 
I've seen it now 3 times
 
s// is "sed"
replace the first word by the second
 
s[witch]/old/new
 
in vim, you can do :%s/old/new/g and it replaces all over the file :)
 
5:47 PM
/substitute/troll/newone
 
o I c
 
substitute is the better word :P
no u r
I C u R
 
it's sed, though.
 
now thats crazy but cool!
 
working with mouse wheel events is such a blessing
4 browsers = 3 different behaviours
only two that match are IE and Webkit
 
5:50 PM
so what to do what to do
hmm, we could normalize that differences into a custom event
 
who was the yeller?
I was the red
 
@jAndy , any quick url for "making custom events" ?
 
@tereško: I'm afraid that is on your own, do some javascript dude
 
any one know to how many decimal places you can draw an object in a pixel ?
 
5:51 PM
or use the zakas link
 
Zakas usually knows his shit
 
user1385191
it's basically an observer pattern
 
user1385191
except that you store callbacks
 
0
Q: Jasmine spies on nonexistent objects

clemI have a backbone router that has the following action: index: -> @collection = new App.Collections.ThingsCollection() @collection.fetch success: -> # ... And I am trying to test this function with Jasmine using a test that looks like this: it 'fetches the collection from the se...

 
5:53 PM
tnx
 
My god can you even call that javascript
 
"custom events" is an overloaded term
 
@Chris Names are nouns. :)
 
@jAndy do you mean DOM4 CustomEvent or a pubsub implementation written in JS that has nothing to do with EventTarget
 
5:54 PM
Just sayin'
 
hmmm
is there any api [existant] that provides low-level audio interaction on node.js ?
[i know there are ones who allow it on client , blah moz & webAudio ] but is there any luck on node server ?
 
@Abhishek define audio interaction?
 
@Raynos ever seen webAudio ?
 
processing audio files, getting fft data
 
user1385191
oh look; more "front-end" postings that ask for PHP experience
 
5:56 PM
that would be very cool, since it should be pretty fast
 
@Abhishek What do you want your server to do? Sing when under heavy load or what? :P
 
:P
@OctavianDamiean mix 2 tracks
 
and just send em to my shoutcast
 
I thought you want to entertain the IT guys in your data center.
 
5:57 PM
@OctavianDamiean lolz
 
@MattMcDonald you have PHP experience
 
@MattMcDonald more then the average PHP nub
 
user1385191
you're missing the point
 
Yeah would you want to work somewhere like that anyway
"oh hey front end dev come here we need you to make the crude functions for our app"
 
5:58 PM
hmm typical microsoft - it worked a moment ago now it dont lol
 
ok so how do I forEach a nodelist?
 
you had it right
 
i did?
how do I finish it.
 
[].forEach.call(
    document.querySelectorAll('a'),
    function(el){
        el.href = el.href.replace('#','myurl.com')
     }
);
 
5:59 PM
thats pulled from an answer I gave but you should get the point
 
@Raynos thanks :-)
 
user1385191
give or take a typeof nodes === "object" check
 
@Loktar The answer to that would be. Why don't you ask this guy that lives in between of my ring finger and index finger?
 
yeah, idk I liked the forEach way :P
goes to meeting
 
@OctavianDamiean i am still laughing at that comment
 
6:02 PM
oh.. :(
you said FU to me :?
 
Nah.
Not to you. :P
 
(Hmm)
lets go down to C++ -_-
 
think he said up yours not FU :P
 
no middle finger means FU, well here in the US anyway
for reals goes to meeting
 
oh really ?
fair enough
 
6:04 PM
LMAO
 
user1385191
and I used push instead of unshift
 
user1385191
yikes
 
If someone hired me as a front end dev and tried to make fix or write their back end stuff I'd definitely tell them to shove it up their own back ends.
 
en.wikipedia.org/wiki/Finger_(gesture) looks like it means both xD
 
Except if their back end was written in node.
 
6:09 PM
@OctavianDamiean any idea how to get all the attributes on a HTMLElement.
 
holy crap i hate collision detection :( lol
 
@rlemon Mhmm. Good question.
 
I'm trying to write a 'JSON' generator from a DOM tree
but to enumerate over all of the properties without having a list of 'acceptable' properties... ugh.
@Esailija any suggestions? You wrote something similar no?
 
This sounds kinda tough.
 
well html parser to dom cod
but from dom to json should be easy-- just recursively walk through the dom creating json as you go
 
6:16 PM
but what properties do I map
surly not all of them
 
right
 
i mean i can check for none null or empties
do not map functions
 
@Loktar: my gf wants to learn programming in a fun way. I suggested making a tetris canvas game. Any resource/architecture/idea on how to do that?
 
@FlorianMargaine Define fun. Fun for her or for you watching her?
 
hahaha
fun for her :)
she doesn't want to read documentation/tutorials, so I thought about making her do it while I read and try to explain her
 
6:24 PM
Well then she is kinda doomed.
 
yeah... still trying tho
 
The single most important thing in life other than to know what you do is to know where to look when you don't know what you do.
 
well once she starts having some fun she can start looking
 
I don't know, Tetris may be too advanced for a beginner.
How's that game called where something randomly pops out of a grid of holes and you have to hit it?
That should be fairly easy to write.
Do you know what I mean?
 
Best File Utilities for node.js: github.com/Gagle/Node-FileUtils
 
6:34 PM
@FlorianMargaine if shes never learnt programming before tetrix canvas game is a bit ambitious to start =/
 
My god ... how is that game called? I'm going nuts on this ...
 
@Dave Y U NO PACKAGE.JSON
 
what what ?
 
@GabrielLlamas you ;_;
 
@OctavianDamiean wanna take a look
I know I have to be missing stuff, this was way too easy
 
6:39 PM
@rlemon what be package.json all about =/
 
Wheew!
This is pretty cool.
 
4
Q: What advantages are conferred by using server-side page rendering?

user1303881I am developing a web app and I have currently written the entire website in html/js/css and on the backend I have servlets that host some RESTFUL services. All the presentation logic is done through getting json objects and modifying the view through javascript. The application is essentially a...

 
@rlemon Consider: jsfiddle.net/hunn9 <-- doing what you would expect?
 
how come some questions come through on feed
 
@Chris somewhat
I wouldn't expect people to try to write inline js with this... but it looks like it might work.
I was thinking about that.. just havn't got to testing it
 
6:43 PM
@Dave Because one of the room owners have added a tag feed URL to the message feeds.
 
attention seeker huh
typical :P
 
I'm just ignoring Feeds.
 
You know what is odd, @rlemon... when I look through the object in Firebug, I don't find the onclick. Do you?
 
yea but i'm in chrome.
 
I see it in the string, but not when I browse the object.
 
6:46 PM
now this would be where I would likely want to do some stripping
(get your $1's out!)
nope
onclick wont work.
I need to check for inline events.
 
*gets his $1 out... start dancing..
 
I attach it... but to element[prop] = val;
bug numero uno
 
I tried doing document.getElementById('bar').dataset.pie = 'delicious'; -- worked fine there, but I wonder how well your script can restore that
In the stringified JSON, it will be data-pie
 
so far I know data- will not really map back.
 
You have to go through dataset
 
6:51 PM
yup
 
I think
 
dataset
events
both need consideration.
i <3 u guys
 
For trolling your hard work?
Anytime!
 
Trolling? heck no
 
any one seen Schroedinger's nyan cat?
 
6:56 PM
yes
Schroedinger's cat walks into a bar....... and doesn't
 
well i was going to say, his cat doesn't know if hes coming or going
 
Trolling my hard work (in three easy steps)
1) goto http://rlemon.github.com/FragBuilder.js/
2) paste this into the topmost textarea under the 'Demo' section: [{"tagName":"P","style":"color: #f00","childNodes":[{"textContent":"Never"},{"tagName":"SPAN","className":"gonna","style":"text-decoration: underline; border-top: 2px solid #ff0;","childNodes":[{"textContent":" gonna "}]},{"textContent":"give you up"}]},{"tagName":"P","style":"color: #f00","childNodes":[{"textContent":"Never"},{"tagName":"SPAN","className":"gonna","style":"text-decoration: underline; border-top: 2px solid #ff0;","chil
 
FF - styles did not carry through :)
Classes did
 
really...
ohh yea. on the demo
that is the css
hehe
if you inspect the element you'll see them.
but they are not computed.
@OctavianDamiean if you're bored and don't wanna work on liddle... github.com/rlemon/FragBuilder.js/issues/3
 
7:11 PM
@Chris "and my Mom still makes me fix her computer."
haha, awesome description ;)
 
Hi guys!
I have some problems. Please look at this questions:
2
Q: jQuery Blinds Slideshow redirect the image

user1272724I'm using jQuery Blinds Slideshow as image slider. I want to redirect the first sliding image to http://google.com when I click on it. I use a html tag like this: <div class="slideshow"> <ul> <li><a href="http://google.com"><img src="lemons/1.jpg" alt="lemon" ...

 
7:27 PM
@rlemon I am not so sure you should work with events at all. Since the JSON.stringify does not serialize functions, you'd have to take care of that separately. Then what? eval them back to life... how are you going to restore scope? That might be fine for anonymous functions, but any function that is part of a larger scope and was applied to an element is dangerous to try and restore. You'd have no means of ensuring that the entire dependent scope still exists.
 
yea.. i suppose.
but I mean, I should be able to at the very least copy over the inline stuff.
onclick="alert('here');"
 
When you create a totally new element, that would be nice to have a mechanism of passing in events, I just don't see how you can keep it consistently functional
Who codes inline? The type of guy that is going to be using this utility?
 
I hope not.
 
Me too
 
well all I have to do to handle inline is look for on* and instead of setting the property set the attribute
but ohh well.
 
7:29 PM
*loud noises
 
right now i'm working on the dataset.
jsfiddle.net/rlemon/fk7v4/7 and we have dataset
ok so fuck Events and fuck Script tags
and i'm done!
after I cleanup the code that is.
 
0
Q: jQuery and Javascript Code, which way is better?

Reno YeoI am programming a showcase gallery in jQuery. However, i'm a bit lost on which would be a best practice or even how to make the code (which looks like it should work to me) work properly without feeling that i'm coding some haphazard code that will break down in future. First off, i use var ...

 
Ohh yea iPage - I never get ANY downtime.
pi.rlemon.com - jackasses
 
7:48 PM
oh lord what a title ^
 
0
Q: What is Script Binding, and How is it done?

Nathaniel BennettI have heard such thing as Script Binding - binding Javascript or lua with API's from C++ or Objective-C. I want to know more about it- however Google has strangely proven unuseful for this. How is it done? - it OK if I get pointed to other sources, but, just how? I never knew a Scripts jitte...

 

« first day (537 days earlier)      last day (4395 days later) »