« first day (878 days earlier)      last day (4074 days later) » 

2:00 PM
@Zirak I edited.
 
bros
 
-bash-3.2# node
> 6.02e23
6.02e+23
 
Question: If I'm using jquery UI and I have a mouse click event bound to an autocomplete, is there an easy way (read: not via. _renderMenu) to extend that binding to the popup menu?
 
1) name is John Stewart
2) initials are JS
3) ???
4) profit!
 
lol @rlemon
 
2:01 PM
@rlemon creepy
profit from what?
 
it would be more awesome if you were the john stewart I am thinking about.
Jon Stewart (born Jonathan Stuart Leibowitz; November 28, 1962) is an American political satirist, writer, television host, actor, media critic and stand-up comedian. He is widely known as host of The Daily Show, a satirical news program that airs on Comedy Central. Stewart started as a stand-up comedian, but branched into television as host of Short Attention Span Theater for Comedy Central. He went on to host his own show on MTV, called The Jon Stewart Show, and then hosted another show on MTV called You Wrote It, You Watch It. He has also had several film roles as an actor. Stewart b...
 
do you actually watch the show?
 
and if you are: How do you put up with stephen colbert?
 
Stephen Colbert is hilarious
 
used too back in the day when it was funny
Stephen Colbert is a tool, and not often very funny (imo)
 
2:03 PM
He is all about himself in his show
 
I don't find him funny.
 
I have not watched in awhile
more importantly
 
ugh, "setup complete, you must restart your computer now. [Restart Computer Now] <no other options>"
 
you guys doing code jam?
 
kill ze process!
 
2:04 PM
I like the 'restart later' option
nahh, i'll just close my shit and restart
brb
 
User.hasOne(Timeline);

User.hasMany(User,{
	as:"friends"
});
User.hasMany(Post, {
	as:"posts"
});
User.hasMany(Comment,{
	as:"Comment"
});
User.hasMany(Abilities,{
	as:"abilites"
});

Timeline.hasMany(Post, {
	as:"posts"
});
Post.hasMany(Comment,{
	as:"comments"
});
i wonder if i have to do the other way around aswell or it wont ever be used ?
 
What do you think ?
0
Q: jQuery processor usage when referring to same event multiple times

MatteAre there any advantages of using the following code: $(window).scroll(function () { var scrollPos = parseInt( $(document).scrollTop() ); $(".div1").css({"background-position-y":scrollPos}); $(".div2").css({"background-position-y":scrollPos}); }); instead of splitting it up into two func...

close (as useless) ?
 
@Darkyen Is that a scouter on your profile pic ?
 
Measuring programming progress by lines of code is like measuring aircraft building progress by weight. [Bill Gates]
 
@Loktar have you seen gameclosure.com yet?
 
2:16 PM
yeah
 
what do you think?
 
ChatBot, you should have said that just as comment on the last linked question !
 
Just got a shiny new OCZ Vertex 4 from me boss. :)
 
idk looks cool.
There are so many now..
they all have cool demos
but none really draw me in idk
 
@OctavianDamiean Nice! These things are pretty fast
 
2:18 PM
The demos are all so basic. They have really talented artists no doubt.
actually this was the one that could run really fast on mobile devices
I got into the beta but didnt use it
I used one by Ludei
 
What does it do?
 
Supposidly breaks down all the graphics calls to native code
so it uses opengl
^ very similiar to game closure
 
yeah, they seem to use some native calls on mobile
 
So they're like PhoneGap?
 
shit, i really need to get going on my personal projects
 
2:20 PM
@AmaanCheval kind of phonegap didnt impress me at all though
 
but whenever i get stuck on simple things on my game, i feel like the biggest idiot and lose motivation
 
@GNi33 thats how you learn! :P
 
@Loktar Have you used PhoneGap build?
 
@AmaanCheval Yea, I read the reviews from AnandTech and picked it. :D
 
idk.. I used phonegap a LONG time ago
 
2:21 PM
@OctavianDamiean Haha, how do you know what AnandTech is?!
 
I know, i just really need to kick my own ass i guess :D
 
just messed with it, tried a canvas demo and was like meh
 
Yeah, I wasn't very impressed by PhoneGap itself either
 
idk I think there are too many tools out there distracting people lol
 
But build is pretty cool for canvas games
 
2:21 PM
@Tomarinator yes
 
like "Oh look a new shiny game engine I will definitely be able to make my game now!"
 
Spits out an apk (and others obviously) that seems native
 
Impact seems to be the only one that really caught on
 
Since it's a game, you don't really need buttons and all to look native
 
@AmaanCheval Dude, it is the authoritative resource on stuff like that. :D
 
2:22 PM
well, what i like about it is that i can have a look at some other implementations of a feature if I really get stuck big time
 
@OctavianDamiean Can't tell if you're messing with me or not :P
 
(or i have the feeling that my code just sucks again)
 
@AmaanCheval Absolutely not. I'm being dead honest.
 
Cool, didn't know that
I thought it just showed up so much because I was using Google.co.in
 
Those guys know their shitz.
There are three sites I respect in terms of reviews, AnandTech, Tom's Hardware and Phoronix.
 
2:26 PM
I've used Tom's Hardware for most of my reviews
 
So, just installed 12.10 64bit on the OCZ, rebootin' :D
 
Hexus was pretty okay when i was still active on the hardware sector
 
Not a js related question, but there isn't a linux room and this is the most active room...
I was reading [this](http://devo.ps/blog/2013/03/06/troubleshooting-5minutes-on-a-yet-unknown-box.html) and he has a command like this: `ls /etc/cron* + cat`
What does the `+ cat` at the end of an ls do?
 
When executing this :
"Executing: CREATE TABLE IF NOT EXISTS `friendsUsers` (`UserId` INTEGER , `friendsId` INTEGER , `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL, PRIMARY KEY (`UserId`, `friendsId`)) ENGINE=InnoDB;"

I get this .
{ [Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' `userId` INTEGER, `postId` INTEGER, `id` INTEGER NOT NULL auto_increment , `
cre' at line 1] code: 'ER_PARSE_ERROR', index: 0 } ]
any idea why ?
 
@Moshe error for me
@Darkyen userId/UserId why is there this difference?
 
2:33 PM
o_O dunno
i am using sequilize
 
SQL is case insensitive
Anyway, what SQL flavour are you using?
 
My
> check the manual that corresponds to your MySQL server
 
And your error message doesn't make sense...the error contains postId, but your query doesn't
That's not the line causing the error
 
@Moshe try the askubuntu.com (chat room)[chat.stackexchange.com/rooms/201/ask-ubuntu-general-room]
 
then the lib is broken :D
 
2:36 PM
@Tomarinator The line causes an error in my shell.
 
@Darkyen Never trust MySQL line numbers
Just... you know... FYI
 
@RyanKinal durr...sorry
 
Which line ?
 
@Zirak No worries
@Darkyen Just a wild guess based on the message... but did you forget a comma?
 
Internet Explorer 9 is not recognizing display:none; wtf
 
2:41 PM
@MuhammadRaja Shennanigans
I'd guess it's a problem with specificity in your CSS selector
(Today, apparently, is the day of wild-but-educated guesses based on little or no information)
 
@RyanKinal no the lib was a lil bit less documented
 
Why is there blood coming out of my nose?
 
Too much pressure?
 
?
 
high altitude ?
 
2:43 PM
@Zirak You've been picking it too much.
 
@Zirak got punched ?
 
Or they dry out or something?
 
... or maybe not enough.
 
I like @RyanKinal's reason more, though
 
@RyanKinal Only with this pitchfork
 
2:44 PM
lol
 
I heard it's only problematic on the 4th day after your menstrual cycle
But I haven't had mine in years, so it should be cool
 
Hahaha
 
When I was really young, I remember working with my dad behind our barn. He was pulling a small stump or something, when I heard him scream out.
Turns out there was the head of a pitchfork buried near the stump.
He put it through his foot.
 
Ouchie
 
@Darkyen Got it figgered out?
 
2:46 PM
Do I have to correct all you people?!
figured*
:P
 
Wat?
Im not sher wat u meen
 
!! s/figgered/figured/
 
@Zirak @Darkyen Got it figured out? (source)
 
wt iz u sayin?
 
2:47 PM
The Indonesian guy is on the role
Wanna go out to stake dinner?
 
!!> awsm does this still work?
 
@GNi33 "SyntaxError: Unexpected identifier"
 
@Zirak Hahaha
 
!!/awsm yes it does still work
 
@Zirak ys i ds stll wrk
 
2:48 PM
!!/tell GNi33 awsm Yeah, it does.
 
@GNi33 Yh, i ds.
 
!!/awsm ah, i tend to invoke the bot incorrectly
 
O man dat rmindz me, i knead 2 wekr on my roll-base akses contrl
 
@GNi33 ah i tnd t inv th bt incrrctl
 
@RyanKinal problem is with IE browser, it doesn't automatically gets new CSS file
I had to clear cache to make it work
 
2:50 PM
Ah. Yes. Caching. The bane of many a developer.
 
posted on March 12, 2013 by Peter Beverloo

752 WebKit and 965 Chromium commits, a total of 1,717 changes, did land last week. Error messages displayed in Web Inspector’s console which contain long URLs will now have them shortened. WOFF fonts will now be recognized with their newly registered mime-type and the touchmove event will now be emulated within iframes. The Ace editor, [...]

 
Can I clear browser cache using jQuery
 
peace be upon you
 
You sadden me
 
nope
 
2:54 PM
Mapple syrup is the sweetest thing in the world. Period.
 
but you can add a caching-parameter to your css-file
 
@dievardump No, thaumatin.
 
i'm programming a chatting project using ajax, its checks for new messages every second, is this a threat to the protection of the site?
 
@MuhammadRaja The IE dev tools have an easy-clear button. I use it frequently.
 
2:56 PM
@KendallFrey Mapple Syrup
I think MuhammadRaja just killed me by asking this question. I do not know why but I feel bad
 
@RyanKinal yeap
 
@dievardump Too much maple syrup.
 
turns out the libarary i am using is quite localized
i defined a model as "Ability"
 
i've three ajax checks - one every second - the second every 3 seconds - the third every 6 seconds, plz need your help :)
 
it awesomely named the table as "Abilities"
i am wondering... how!?
 
2:57 PM
@KendallFrey I had none today, only Cinnamon
 
@RyanKinal Can't ask 2000+ clients to clear there browser cache to make things work properly Lol
 
@MuhammadRaja Well... yeah... but it's an easy way to do it for yourself
 
@MuhammadRaja add some random chars to it
style.css?blah123123asdfad
 
@MuhammadRaja just add a ?<?php echo rand(1,10000); ?>
fu @Loktar
 
3:00 PM
lol
 
:p
(and if it's css file, it's not work but display properly. if you rely on css to make things work, you do it wrong)
Mouhahaha I already did 18hours of work this week.
 
plz anyone answer my question :(
 
@AhmedSabry why would you do that?
 
as i can't use websockets, i know about it soon and i didn't how it work
the first ajax to get new messages every second
and the second to get new conversations
the third to get the user status ( in all site page ) if it loggout or the session destoryed
 
i want to do something like users can post status , and others can comment , like , dislike it , is there any service that i can use ?
any one help
i do not want to hard code
 
3:09 PM
@dievardump In 2 days?
 
@vamsi facebook?
 
You are a god.
 
@BenjaminGruenbaum no , i want to create a blog or something where even unregistered users can post
 
@vamsi Use Blogger
 
i adore the orm am using :D
 
3:13 PM
@SomeKittens .. no there , everyone cannot share , i want to do something like this chat room
 
@vamsi You'll have to be more descriptive then. Write up your requirements in a pastebin or something
 
that's not lengthy actually , i want anyone to post status and anyone can comment , like , dislike in my website without any login details
 
So, a wiki?
 
@vamsi wordpress?
 
will wordpress allow that ?
@BenjaminGruenbaum
 
3:16 PM
Yes, look it up
-1
A: get the content of a javascript as loaded?

Benjamin GruenbaumYes, technically it is possible to select your script tag by giving it an id and then getting its text with: document.getElementById("scriptID").textContent Then you could store it in the localStorage and then load it later from the localStorage and use eval on it to run it. However, I believe...

Any idea why this would be downvoted?
 
@ben
@Benjamin It took me quite a while to find the
"However, I believe this is the wrong approach"
GAH ENTER KEY AGARARA
 
@Riking You can edit your chat messages here. Press the up arrow, it's super fun!
 
@SomeKit Thanks, haven't used SO chat much
 
Welcome!
 
@AmaanCheval yes. 9-20 / 22-4 / 9-11
 
3:21 PM
I don't get why he'd think my answer is useless, it both answers the question and explains the better practice for what he'd like to accomplish
People see eval and automatically assume the answer is bad because that word appears in it
 
@dievardump ...what?
 
@Riking You can also reply to a message by clicking the arrow on the right that appears when you hover the mouse over it.
 
@SomeKittens Got it :D
 
brb, downvoting @BenjaminGruenbaum's answer :P
 
@rlemon ...wtf?
 
3:23 PM
sorry
Yesterday: 9am to 8pm, 10pm to 4am
Today (for the moment): 9am to 11am
 
longcat is long
 
my nicest day at work was 8am - 6am
 
@Riking I approved your edit
 
longcat is long.
 
longcat is cat!
 
3:25 PM
i was totally fucked up afterwards
 
heh I had some long days in the af :P
 
@dievardump You must enjoy work
 
worked over 48 hours.
fucking suckkkkkked omw.
 
combining @canon and my statement

longcat is a *longcat*
 
after around 18-20 you just become a zombie. No feeling
 
3:26 PM
48 hours straight? dammit, i wouldn't be able to write one LOC on the second day
 
it was retarded
 
my nicest day at work was 8pm - 4pm
friday to sunday
 
my boss almost got in trouble
 
LAN party
 
i was walking home after 22h feeling totally stupid
 
3:26 PM
@AmaanCheval I did 65 hours two weeks ago, 56 last week, and this one start really good...
 
yeah its like its a dream
 
And I go out on every Friday and Saturday night, because I'm a night bi-bi-bi-biatch
 
we had to setup some super important system that was a cluster.. literally and figuratively lol
clustered server setup
 
Wow, I feel like a wimp now, best I've got is 53 (though I was also taking a course at the same time)
  var txt = document.createElement('li');
  txt.innerHTML = '<form><input type="text" name="add" /><button class="btn" type="submit">Add</button></form>';
^What's a better way to do that?
 
I've never worked over 40 hours a week
 
3:29 PM
@AmaanCheval lucky :P
I haven't too many times since getting out of the air force
 
Aren't there laws preventing minors for working more than 40(ish) hours a week? (depending on country maybe)
 
ah yeah @AmaanCheval is a minor forgot about that
 
@SomeKittens Sometimes innerHTML is OK, especially when you're adding a complex structure. After all HTML is just a serialization of the structure you're adding. Are you doing this once or many times?
 
any idea how do you call that shape
(made by straight lines)
 
3:30 PM
@Zirak There are?
 
@BenjaminGruenbaum It happens when the user wants to add another entry to their need/have list. I want to add a bunch of bootstrap to it and don't want to end up with a massively long string
 
@SomeKittens using jade
 
@Darkyen This is client-side
 
jade is js
 
3:32 PM
@AmaanCheval Yeah, with differing hours based on whether school's in session or not
 
@SomeKittens I'd put it in a <template> tag (or <script type='template'>), grab it on load and add the HTML
 
@Darkyen Don't want to load ANOTHER library
 
Jade is slow also \/
 
I cant stand Jade :?
I like EJS since I don't have to learn anything new
 
!!/caniuse template
 
3:33 PM
@SomeKittens Command caniuse does not exist.
 
Mustache is also very nice and minimalistic
 
Jade has a few idiosyncrasies, but I like it overall. It's how HTML should be.
 
@SomeKittens k
 
@Zirak yep there are, there are really hard dead-lines too, unfortunately
 
3:34 PM
Couldn't find anything for various countries though
 
Plus, the Node ecosystem is new enough that it's a smart idea to only go with the popular things so you have a better chance of support/help
 
@SomeKittens People don't always understand how important that is
 
@AmaanCheval could tell you only about austria right now
 
Often, my decision on a framework etc is based on how good the docs are.
Then I look like a hypocrite because my own docs are pretty bad.
 
@GNi33 What are they like there?
 
3:37 PM
I really need to add examples to the Mongo Helper project
 
normal case: max. of 2 after hours a day, max. 10 a week
 
Wow, that's it?
 
for a "higher need of work-amount": max 5 per day, 20 a week, while the maximum work-time must not go over 60 hours per week in max. 12 weeks
 
Error 0 occured, I will call the maid (@Zirak)
 
wtf?
 
3:40 PM
@SOChatBot Hahahahhahaa
 
The hell is http error 0?
 
Could be a WebSockets error?
 
TypeScript will outdate javascript
 
Bah, template tag isn't supported yet. Hurry up!
 
3:54 PM
@Zirak hehe it's awesome
:) just scrapped together enough parts to make my own cut off switch with a float switch
float switch cost me 30 cents.
couldn't believe I found a working relay and fuse in my pile of junk
@Jan-StefanJanetzky this video is strange
 
STALKER!
ME DELETIN IT
 
I am cataloging the stuff in your room
soon I will know everything about you by the contents of your bedroom
 
> TheSonic440 1 year ago i love you *_*
 
PEACE MUTHA FUu
 
@Loktar ?? got your game?
 
3:59 PM
697 (and counting) views.
 
my game?
THE game?
 
Starcraft 2 DLC
 
THE GAME! ( @jAndy )
 
oh, not yet
Should be at home by the time I get there
 
then what was with the PEACE crap
 

« first day (878 days earlier)      last day (4074 days later) »