« first day (604 days earlier)      last day (4361 days later) » 

12:00 PM
afternoon :)
 
Sam
Works a bit quiet today, i dont know whats going on! haha
 
that's cause you're gonna get fired, no biggie
1
A: Easy user web-interface with table entry in Python

Zaar HaiFor this you will need more JS then Python. You can use minimal python web framework - Flask. And then employ full power of YUI3 Javascript framework that has excellent support for tables out of the box (including sorting). Here are the docs for YUI3 datatable: http://yuilibrary.com/yui/docs/da...

is this guy going to be downvoted because he uses YUI instead of jquery?
 
Sam
Hopefully not, although im a jQuery kinda guy
You can't beat hunters chicken at lunchtime... mmm
 
jQuery is usable everywhere whereas with YUI3 you are stucking using it
library vs framework
 
:-/
i hate node.js T.T [ the native coding side]
there is no proper documentation for it .. seriously 0
and those exist are 2 year old x_x
 
12:12 PM
lol man this guy just got a uber easy like 60 rep
 
I have a js file which has events that and in each other (e.g: myElem.addEventListener("mouseover", function(e){...addEventListener("mouseover", function(e){ ) What are the problems that could appear this way?
* that are in
 
except nesting hell?
 
What should I do then?
 
re-factor your code to not do this... if I ever had to work with your code that is the first thing I would do.
 
12:16 PM
separate them?
 
@agam360 use named functions
 
^ that
 
like addEvent( "mouseover", someFunc );
 
ok
 
and then later function someFunc( e ) { //bleh }
 
12:17 PM
Hey is anybody else noticing that questions on SO are all showing up with the wrong date? Or have I slipped through a dimensional portal?
 
But for example, my whole object is dependent on the getSelection text. I need to check that the user had some text selected before I can Use the other events.
I can't just let them trigger every time
 
hmm must be dimensional portal; it looks OK now ... bizarre
 
@agam360 full code:

myElem.addEventListener( 'mouseover', myFunc );

function myFunc( e ) {
    // Some code
    // And then:
    this.addEventListener( 'mouseover', anotherFunc );
}

function anotherFunc( e ) {
    // Some other code
}
 
You shouldn't omit the third argument of addEventListener - it is not optional in some older firefox versions.
 
oh? nice to know
 
12:20 PM
@FlorianMargaine, thanks
 
which "older firefox versions" do you mean?
 
I'll try to implement that
 
why are you stacking mouseover event listeners
 
Jun 6 at 12:29, by rlemon
stars are not bookmarks mate ;)
 
0
A: Import yahoo Contacts using Javascript

Florian MargaineFrom the YQL Web Service URLs documentation, a web query uses this kind of template: http://query.yahooapis.com/v1/yql?[query_params] That is, once you've authentified using OAuth. From the Contacts Tables documentation, to get all the contacts of a user, the following query is used: SELECT ...

amirite in the comments?
 
12:21 PM
I guess you are implicitly relying on the fact that addEventListener doesn't add same function twice
 
What about bubbling, should I write true or false in this case (@FlorianMargaine)?
 
@Esailija I didn't think much on the business logic there, it was just sample to show how to use named functions
@agam360 except if you really know what you're doing, use false
 
ok
 
should you do the same with jQuery, you would stack additional listener every time :P
 
Thanks, I appreciate it.
 
12:23 PM
@ThiefMaster which ff version are you talking about? 3.6?
 
Optional since FF6.. so yeah, not really important anymore
 
oh, FF6 isn't that old
 
It's already dead though. Or is FF5 the "stable version for companies who don't want to upgrade all the time"?
 
dunno
but I mean, old users who haven't upgraded yet still won't because there wasn't silent auto update back then
 
wasn't silent introduced after 3.6?
 
12:30 PM
not sure
I think it was FF5 or 6
 
Bwaahahah google says 12
we were wayyyy offf
 
uh
it's not possible
FF10, still way off I guess :D
 
Yep
 
i suppose it depends on the article you read
 
Aha 40hours
 
12:40 PM
awake?
 
of googleing and finally we have 1 module that isnt outdated by 2 years.
bbl i amma switch to windows for a while
[d3]
 
Siemens makes the 2Wire modems right?
 
@rlemon linksys?
2Wire, Inc., was (between 1998 and 2010) a home networking Customer Premises Equipment (CPE) manufacturer that provided telecommunications companies with hardware, software, service platforms, and remote CPE management systems. The company was headquartered in San Jose, California, in the Silicon Valley. , the company employed approximately 1,600 employees globally, including 550 in R&D, sales and administration, 450 in customer care and 600 agency employees in five U.S. offices and an additional nine offices around the world. The 2Wire HomePortal residential gateways were distributed by b...
looks like it's independant
 
Pace just bought it out
I just remember having to hack the firmware on it and i thought I used a siemens modem firmware
 
oh.
@rlemon we need to update wikipedia
it is our duty
 
12:47 PM
lol i could care less :P honestly only because the markdown wiki uses is effing confusing
 
"markdown wiki"
> Then when you assign a new value to sex it creates a new property on the given object instead of changing the property on the object's prototype because JavaScript is a dynamic language.
0
A: Update prototype property in JavaScript

Aadit M ShahThe idea of using prototypes is that when you try to access a property on an object the interpreter will first try to find that property on the given object. If the property is not found on the given object then the interpreter will try to find it on the object's prototype and so on until the pr...

really?
I doubt this :/
 
> Then when you assign a new value to sex it creates a new property on the given object instead of changing the property on the object's prototype because JavaScript is a dynamic language.
because javascript is a dynamic language
what kind of explanation is that
because the earth is round
because the sun is shining
 
yeah, that bothered me too :D
 
wtf
function defineProperty(object, name, value) {
    Object.defineProperty(object, name, {
        value: value,
        writable: true,
        enumerable: true
    });
}
so why not just object[name] = value in the first place
 
hm, yeah
 
12:55 PM
function add() {
   var r = 0;
   Array.prototype.forEach.call(arguments, function(n) {
        n = parseFloat(n);
        r += n;
   });
   return r;
}
awww yea... add()
most useful function ever
 
function add(a,b){return a+b} arr.reduce(add);
 
return add
this way: add(1)(2)(42)
 
!!> function add(a,b){return a+b} [1,2,3.4].reduce(add);
@Esailija 6.4
or [].reduce.call( arguments )
 
!!> function add(a, b) { return add(a+b); } add(2)(2);
 
@FlorianMargaine RangeError: Maximum call stack size exceeded
 
12:58 PM
hm
yeah, of course
 
add(2)(2); is to test if a candidate knows shit about javascript, not to use in real code
:D
 
!!> function add() { var r = 0; [].forEach.call(arguments, function(n) {r+=parseFloat(n)}); return r;} add("1",2,"3",4e+3,"5")​;
 
@rlemon 4011
 
maybe I should also write a concatenate() function.
 
!!> "string".concat("string")
@Esailija "stringstring"
 
1:02 PM
!!> "string".concat("string1","string2","string3")
 
@rlemon "stringstring1string2string3"
 
!!> [1,2,3].concat([5,6,7]);
 
@FlorianMargaine [object Array] [1,2,3,5,6,7]
 
yep, missing 4.
 
dafuq
 
1:02 PM
now, how do you add this 4 in the array provided up there?
 
!!> [].concat([1],[2,3,4],[5,6,7]);
 
@rlemon [object Array] [1,2,3,4,5,6,7]
!!> [1,2,3,5,6,7].splice( 2, 0, [4] )
@Esailija [object Array] []
NO
 
whats the ipconfig varient in lunux
 
!!> [1,2,3,5,6,7].splice( 2, 0, 4 );
@Abhishek ifconfig
 
!!> var a = [1,2,3,5,6,7]; a.splice( 2, 0, 4 ); a;
 
1:04 PM
ifconfig
 
@FlorianMargaine [object Array] []
@Esailija [object Array] [1,2,4,3,5,6,7]
 
wut dafuq?
 
.splice intuitively returns the array of removed items
 
oh
of course
 
in this case we don't remove anything with splice so it returns empty array
 
1:05 PM
yeah :p
 
wait, isn't it sudo rm -rf / ??
 
!!> var a = [1,2,3,5,6,7].splice( 3, 0, 4 ); a;
 
what a weird method anyway
 
^ do not run that (i'm being a troll)
 
@FlorianMargaine [object Array] []
why not have .remove() and .insertAt() methods
 
1:05 PM
@rlemon I heard mv /* /dev/null is fun too
 
cowsay?
:P
 
also, cat /dev/random > /some/file is fun
 
telnet towel.blinkenlights.nl
 
!!> var a = [1,2,3,5,6,7]; a.splice( 3, 0, 4 ); a;
 
and say goodbye to your days productivity
 
1:07 PM
@FlorianMargaine [object Array] [1,2,3,4,5,6,7]
 
towel.blinkenlights.nl ?
 
46 secs ago, by rlemon
telnet towel.blinkenlights.nl
meaningless without the telnet
 
ifconfig vs ipconfig nice!
 
telnet://towel.blinkenlights.nl
 
ROFL
is that star wars?!
 
1:08 PM
@FlorianMargaine i haven't watched it through... but i'm pretty sure it's the entire movie
 
i can only imagine each scene is hand ascii'd
 
awesome
 
must be millions of lines of code.
 
hm
how to exit? -_-
 
1:09 PM
telnet
ctrl + c?
 
doesn't work
 
i just close the terminal
 
just killed the pane
using tmux :p
 
@rlemon mplayer supports ascii output
 
really
you can also see stuff has been edited / stripped out, either way.... someone had too much time on their hands.
 
1:10 PM
that's a given
 
showed my boss and he spent like 25 minutes sitting at his desk watching and luling.
alright @FlorianMargaine OpenAtrium has some bugs in it and the 'free community' is less than helpful. they have (so I read) wonderful pay support :P
so now i'm looking for a Sharepoint alternative in PHP, open source and free of course.
Basic requirements: Addressbooks (or more advanced CRM), file sharing (simple dropbox would suffice but in browser editing would be nice), Blog or similar for posting updates / tutorials / docs / events / etc
openAtrium is nice, very nice, but again I kept finding bugs in it, and it s older distro so some of my 7.X modules were breaking things.
 
@rlemon looked at alfresco?
it's the closest sharepoint clone you'll find iirc
 
looks nice actually.
 
there is a free community version
 
I've seen a shit tonne of other good ones but none are free
it's an app?
not a web site?
lol nope they just give you an exe for kicks to install the pages and tomcat and a few extensions.
 
1:26 PM
oh ^^
 
man and there website is FULL of broken links.
landing page after download : alfresco.com/community/resources
 
I reported it. i'm a nice guy
 
@FlorianMargaine agree with my latest fb status ?
 
@Abhishek lol FB
 
1:30 PM
@Abhishek I do
but not so much
 
:-)
 
it's more like:

if ( anything && !work ) {
    project.end = chucknorris.death;
}
 
Lmao
if( facebook && facebook.running ){
   Project.End= ChuckNorris.Death; // Never
}
nut much difference
 
there is
fb doesn't take that much time to me
 
you are lucky :D
 
1:34 PM
well I have like less than 30 friends, so not so much disturbance
 
if( Diablo3 && Diablo3.status === 200 ) {
        project.end = Inferno.PrimeEvil.isDead; // gonna be a while
}
 
I have like 640
 
document.write($); // insta webpage
 
$($); // insta crash page
-1
Q: Could someone break this nasty habit of mine please?

MimiEAMI recently graduated in cs and was mostly unsatisfied since I realized that I received only a basic theoretical approach in a wide range of subjects (which is what college is supposed to do but still...) . Anyway I took the habit of spending a lot of time looking for implementations of concepts a...

isn't that Raynos?
 
1:39 PM
$($); ?
 
HE IS NOT UTILIZING DEFERRED IN ANYWAY :DD
 
so why is that $($); bad ?
!!> $($)
 
@Abhishek ReferenceError: $ is not defined
 
:3 sorry @Esailija /
 
stackoverflow.com/questions/10978826/… can someone else upvote this guy so he can get some help in the chat.
 
1:42 PM
@Abhishek just do it in your console
 
did
thats why i am asking
 
chrome is showing him "he's dead jim" error but he says memory is not that high .
 
@rlemon done :)
 
what the heck it does
 
IE runs a little longer then dies.
 
1:42 PM
@Abhishek it crashes the tab
 
but why
 
infinite recursion
 
Bingo ^
hey i'ma make a jQuery obj from this jQuery obj... but that jQuery obj needs to be made from a jQuery obj... it's $ all the way down.
 
19
Q: Why does $($) crash my page?

NealDisclaimer: Do not try this at home Why, if I am using jQuery, does $($) freeze the page? Inspired by this Area51 question

 
think of $($); like the great turtle.
FFS i just spent 25 minutes download the MAC installer?!?!?!
Mac installer was .tar.gz :< i didn't even look at the title... just saw the tar
 
1:49 PM
lol
 
Why can't we interrupt .forEach (o_O)?
 
@FlorianMargaine wasn't the actual reason for that an infinite loop
what the accepted answer explains, doesn't expalin page crashing
 
page crashes because of memory ??
 

« first day (604 days earlier)      last day (4361 days later) »