« first day (477 days earlier)      last day (4473 days later) » 

12:05 AM
Uh oh.... Dropships.
 
12:27 AM
woot
 
user1385191
...and the search for a proper job site continues
 
wow...I'm gonna lose. Hard.
 
12:43 AM
0
Q: Javascript - Framework to build scrollable map with item selection?

jrbaldwinnI need mobile devices to be able to scroll a large, static map image, and also be able to select PNG image "objects," like this: What would be the simplest method? HTML5, jQuery, Sencha Touch, or ?

 
GGG
1:10 AM
lol this is surprisingly fun - js1k.com/2012-love/demo/1004
 
user457812
The fire won't stay out D:<
 
I wonder if I should submit my 140 byte Ulams spiral to js1k ...
 
 
4 hours later…
5:08 AM
0
Q: How do I make sense of the javascript frameworks explosion ? Should I learn them all?

RahulFor a beginner web developer who is still doing web development the conventional way (PHP/J2EE/Struts on server side, HTML/CSS/Javascript on client side), I was bowled over by the recent blog post on Trello technology stack. I can't help feeling overwhelmed by the list of new technologies and f...

 
 
3 hours later…
8:12 AM
when i try
'placeholder' in inputElement //true
but inputElement.hasOwnProperty('placeholder') // false
 
9:11 AM
@anonymouslyanonymous in walks up the prototype chain, hasOwnProperty only checks that object. {}.hasOwnProperty( 'toString' ) === false and Object.prototype.hasOwnProperty( 'toString' ) === true
 
9:25 AM
@Esailija How did you bridge between your memebot server and the client-side? The cross-domain restriction is on the js side first, right? So did you execute it jsonp-style?
 
hello anybody here?
 
GGG
change the font size in the first line of css to change the size of the cards :)
 
GGG
10:18 AM
maybe the chess pieces are better than those hieroglyphic thingies
 
 
7 hours later…
5:10 PM
@Zirak correct me if im wrong, i understood in actually goes to the constructor of an object to check if the constructor has its own properties and methods etc...but hasOwnProperty only works for the current object, not its methods and properties of its constructors , and therefore does not own them , like :
var x = [];
'slice' in x // true
x.hasOwnProperty('slice') // false
 
That is exactly what I said. in goes up the prototype chain, hasOwnProperty only checks for the object itself
 
x.test = "hello world";
x.hasOwnProperty('test') // true
is prototype also a property?,....and are there any cross browser issues using 'in' and hasOwnProperty?
 
A quick google search will answer both
 
true ... lazy programmer ...ill chk it out thanks for the help...hows your chatbot coming along?
 
I'm redoing how the bot communicates. Until now, the SO message object was passed around to every command, and things got clunky with async commands. But I'm working on making a wrapper around it, so it abstracts these away
oh, and it'll also work cross rooms and on multi-line, like this:
!!/mdn Object.prototype.hasOwnProperty
 
5:16 PM
js1k.com/2012-love/demo/1022 omfg... 1018 bytes...
 
great :D
your hasOwnProperty mdn link (or is it just me)
@Zirak
 
yeah, I should've called it like:
!!/mdn Object.hasOwnProperty
 
When I fix !!/tell, you could do !!/tell George mdn Object.hasOwnProperty for example, and it'll ping George with that link
 
5:23 PM
aha, fixed:
!!/tell anonymouslyanonymous mdn Object.hasOwnProperty
 
thats neat , so any evil plans of spamming ?
great work on it...source code anywhere?
 
Spamming as in sending tons of messages, or annoying people?
I haven't pushed the renovations yet, still testing
 
Both i guess
any way of getting javascript to go all the way to cleverbot.com , submitting the sentence the user types and getting the result and posting it back?
on a differnt domain
that way you could emulate conversation
 
The bot faces the same restrictions as regular users, and there is a special /die command (which can only be used by specified users) which kills the bot
And it can be no more annoying than regular people can
 
die switches off the bot for only that person ?
or for the chat room
 
5:29 PM
It kills the bot for everyone. It goes deaf and mute.
Which reminds me...that the /live command won't work, because the bot can't hear it...woops
 
lol , happens
in programming alot
your code is complex enough as it is (for me) , im signing off before my head explodes ...but the project is great.. :D hope to see die working (and me included in the list of people who can use it ..lol)
 
It does have some weird things in it...the entire thing is basically event-driven
 
5:43 PM
!!/tell Raynos choose "is this awesome" "or is this AWESOME"
@Raynos this
~_~
 
6:13 PM
lol
@Zirak cleverbot.com
 
!!/tell Abshiek choose "is this awesome" "or is this AWESOME"
This isn't a jabberbot, and yes I know of cleverbot
@Abshiek or is this AWESOME
 
I think this is a good question:
0
Q: Capture method missing in Javascript and do some logic?

ajsieIn Ruby I recall you could capture a method missing and define it on the fly. What I wanna accomplish in Javascript is to have an object with no methods. I want a missing method to be translated into #emit(). app.isReady() -> app.emit("isReady") soldier.kills() -> soldier.emit("kills") ...

its disappointing though its not really possible. A scripting language sends "messages" not calls "methods" and therefore you should be allowed to do whatever you want with it.
 
Yes, that's why it was asked hundreds of times, and sadly no
 
Hello all.
Anyone wan’t to fix my crappy jQuery? Should take someone 2 seconds if they know what their doing..
I’m trying to loop a simple animation using a callback, or something like that.
jQuery(function() {
function boing() {
jQuery('.twitter_feed').animate({marginLeft:"5px"},1000).animate({marginLeft:"0px"},1000).boing();
}
boing();
});
and that’s my code ^
 
to use a callback, you musn't chain the calls
 
6:23 PM
well, I was basing it off of this thread: stackoverflow.com/questions/6344544/jquery-animate-loop
 
you're trying to make your '.twitter_feed' go to right then to left, then to right... ?
 
yes, basically I want it to shake/wiggle
in the end, I want it to do this when you hover on the div
but I’m not even close to that yet
 
var boing = (function() {
    var left = true, tf = jQuery('.twitter_feed');
    return function() {
        tf.animate({marginLeft:((+left)*5)+"px"},1000, boing);
        left=!left;
    }
}());
i didn't try but i think it can work
 
Well, that’s very different to my code..
I’ve just dropped it in, nothing happens : |
 
call doing()...
boing*
 
6:36 PM
That’s supposed to run as a continuos loop right?
 
yep
 
Like this? jQuery('.twitter_feed').boing();
 
nop
var boing = (function() {
    var left = true, tf = jQuery('.twitter_feed');
    return function() {
        tf.animate({marginLeft:((+left)*5)+"px"},1000, boing);
        left=!left;
    }
}());
boing();
 
Sigh, give me CSS any day : \
Nothing, should I make a fiddle?
 
6:42 PM
Yep, works perfectly in the fiddle.
Perhaps some other jQuery I have could be messing it up?
I’m having a look through, I don’t see why it wouldn’t be working at the moment
 
use the console to search for errors
 
I’ve sort of got it working.
I need to adjust some of my CSS.
I guess the only other thing I will need to do it make it a mouseOver function?
 
6:59 PM
Well, I’m using hover()
how do I stop it? haha
.stop(); seem to do nothing..
 
Hi, I am designing a website and playing with responsive design in ipad. So when I view the site in portrait I remove the sidebar and expand the content area - But still it seems that the font size is maller than when I view it on landscape. Do you know why that is?
- is there a way to fix this, or is it a normal thing
thanks
 
Anyone who do Ruby on Rails ?
 
hi, am i adding new padding value to current given padding like this?
var newPadding = $(".detta .content").height();
$(".detta #container").css("padding-top", +newPadding);
is it +newPadding or +=newPadding to add extra padding ?
 
+= I believe
otherwise you’re just overwriting what you have?
 
right yea
thx
is it within " " ? o no need for them in this case?
mm it does work but it breaks the js when using tis
var newPadding = $(".detta .content").height();
$(".detta #container").css("padding-top", +=newPadding);
 
7:11 PM
css(paddingTop,”+=newpadding”); ?
I can’t remember lol
it should be one or the other?
 
Anyone here know java?
no one is in the java room and i need help
 
mmm
nope
@Dan still doens't
 
did you try without the quotes?
 
yea both ways
it just breaks as soon as i add =
hmm
 
@robm .css('padding-top','+='+newPadding)
should work
newPadding is a string, it should be "joined" [concatenated] with '+=' which is another string
 
7:19 PM
right.. it looks it "worked" not 100% sure tho lol
 
its regarding linked list
 
i have a header inside #container, header is positioned absolute at the top while it's #container wrapper has padding-top to accommodate it, but i also have a .content div, so i wanted to add extra padding to givn padding-top according to .content height
var newPadding = $(".detta .content").height();
$(".detta #container").css('padding-top','+='+newPadding)
so that should do
 
is the height of the header div fixed?
 
actually nope
should it?
 
No, it should probably just flow as normal,
but if it was fixed you wouldn’t need to use jQuery to make room for .content
 
7:25 PM
exatcly..
 
you’re basically trying to add padding to make room for .content right?
 
<#container padding top>
<#head absolute top>
<#content postion:relative>
<#boxes float:left>
 
It would be easier to see this, I wonder why you need to absolute position anything at the moment
 
yes exactly
 
unless stuff is layered / z-indexed?
 
7:26 PM
#container uses position absolute given by isotope masonry
same thing for the boxes
 
have you done an alert pop up to see what figure jQuery is returning?
 
hwo woudl you alert padding data?
alert($(".detta #container").css('padding-top)); ?
$(".detta #container").data('padding-top);
?
elem = $(".detta #container");
alert("elem.style.paddingTop=" + elem.css("paddingTop"));
it looks like as it is actually adding the padding
so it has to be something else
 
GGG
8:05 PM
cool stuff
 
9:01 PM
0
Q: Releasing a CSS minification tool - should it be downloadable or accessable through the cloud?

corgrathI am thinking of releasing a CSS minifaction library, with dependencies to other libraries. Since CSSminification is not something that occurs a lot (compared to for example generating PDFs), I have two options: 1 I could make it downloadable, however, it means that the user needs to download 3...

 
@Feeds And it's mutually exclusive?
 
GGG
9:14 PM
@Zirak what do you think of this - jsfiddle.net/wE8te/29
couldn't find any i liked so i made my own :D
 
Awesome!
Why are there chess pieces instead of royalty?
Are you insulting the prince!? OFF WITH YOUR HEAD!
 
GGG
9:32 PM
the hieroglyphic version ;)
 
Encoding makes them look fat and square
 
GGG
doh
it's probably not in your charset
good to know
i will stick with chess pieces
 
Which is weird, since I always choose utf-8 by default... blames Shitdows
 
GGG
you probably don't have the characters
𓀬
 
013
020
 
GGG
9:35 PM
copypaste that somewhere, does it look like a guy riding two giraffes?
or a square
 
Square, but using imagination it's a wild pack of ponies galloping through the hills
 
GGG
 
Nop
 
GGG
ok back to chess symbols
 
 
9:49 PM
!!/mdn Array.reduce
Check this out, it now has "free-speech" api (matches incoming messages, which aren't commands, to a regex, and executes a function if it matches):
!!tell me your laws
@Zirak 1)A robot may not injure a human being or, through inaction, allow a human being to come to harm.
2)A robot must obey the orders given to it by human beings, except where such orders would conflict with the First Law.
3)A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws.
 
GGG
10:15 PM
!!what are your laws
!!/tell me the laws
 
@GGG Unidentified command the
 
GGG
i fail
 
!!tell me the laws, it's not a command. Just get the bot's attention, !!, and talk to it.
 
GGG
!!tell me all the laws
!!hey bot
 
10:37 PM
@GGG It doesn't respond to anything, just what I set it up to respond to
Right now, it's just for messages matching /tell me your laws/i
 
GGG
11:05 PM
lol oh ok
man i wish jsfiddle had a way to change / recognize indent settings
 
Done
 
smexy
 
GGG
looks warm
 
it is
and it should help against this stupid weather out there
 
GGG
you could make another to wrap around your head
could make it white
 
11:12 PM
and... well since I made it myself, it cool anyways :D
:D
Probably gonna do a headband
 
What's that dark thing at the corner?
 
GGG
a looming Death Crayon
 
just a dark sweater
 
It looks like a very slim Darth Vader
 
hanging there
 
11:14 PM
And to its right...is that Bender's head?
 
GGG
"omg i didn't even notice the Death Crayon behind until I looked at the photo! That was a close call"
 
@Zirak You've really got a colorful imagination...
Must have been horrible at night as a child, hm? :/
 
It looks like Bender's head!
...only as a child? I haven't slept in 4 years.
 
That explains...
 
GGG
@IvoWetzel how did you get it blue at one end ang green at the other?
 
11:16 PM
@GGG Used different wools :O
Actually it Green-Blue-Green-Blue
 
My sweet charm, cool demeanor and impeccable facade? Yes, it does explain that
 
Around 2 meters long
 
GGG
that's sick
 
That's what...
 
GGG
some of my parents' friends used to have a huge loom in their basement
and they'd weave all these crazy patterns
programmed it all with one of those old monocrome macs
 
11:17 PM
:D
 
GGG
that was the first time i was introduced to laser chess, which i forgot about until just now
laser chess was cool, i wonder if it's still around
 
Wow, this room is full of nerds
6
 
@Zirak No wai
 
We're excited about programmed looms and the laser version of strategy games. There's something wrong with us.
 
haha
 
11:23 PM
posted on February 05, 2012 by Vasilis

Online video: hoe kijken de mensen? – LukeW voor Meisjes I’ve always been perplexed about the amount of hours that people in the US spend in front of their television on average. Unbelievable. Some recent studies show some interesting stats about the way people consume video across devices though, something seems to be happening. (If you don’t know Dutch, here’s the or

 
I'm always surprised how much I can figure out when reading Dutch stuff, even though I only speak German and English
 

« first day (477 days earlier)      last day (4473 days later) »