« first day (1215 days earlier)      last day (3751 days later) » 

12:02 AM
haaaaaaa
fake
 
@JustDon't Are you claiming that code wasn't actually written?
 
m59
@SomeKittensUx2666 like automating script dependencies, less compiling to css, running tests.
 
oh
sorta.
that's all kinda stuck together with duct tape right now.
 
m59
I had it running and it was all gravy for about 10 minutes until the node server started acting up (I didn't touch a thing...just broke)
 
We use grunt for things I've set up, hackneyd command-line fu elsewhere
 
m59
12:07 AM
Yeah, it's grunt but it's all setup by ng-boilerplate
I need to put it together myself and make it what exactly what I want it to be.
 
Have you used Yeoman?
 
m59
Nope.
 
it's really not that hard to do grunt work yourself.
 
m59
Yeah, just pressed for time, as always
How long have you been a developer?
 
Define 'been a developer'
 
m59
12:08 AM
Say...understood the basics of OOP
 
zero seconds.
 
m59
lol
 
Anyone who claims otherwise is lying
 
m59
Ok...how long since you understood that inline js was evil?
 
Not sure exactly
 
m59
12:12 AM
Nonetheless, I feel like I'm trying to get 10 years of skill in the basically 1 year I've really been doing this.
just over a year ago I posted a question on SO trying to figure out the most basic of inheritance cases :)
wows
 
m59
wow
lol by that view I'm only a few months behind you :)
 
alright it is official. I'm moving from vim to st3 for my main editor.
 
:D
Congrats lemon
 
I will still have to use vim remote and at work quite a bit
 
12:18 AM
@rlemon yay! What prompted the final switch?
 
but when I can, I will now be using st3
 
@m59 the more I learn the more I know I know very little.
 
@SomeKittensUx2666 giving it a real chance and using it for the past few days
:P
it is easy to see how much power it offers out of the box
 
@rlemon now try WebStorm for a month :P
 
I haven't even explored the plugins
 
12:18 AM
@rlemon First one: Package manager
 
so i've heard
What is the line/block dupe command
 
And i'm back.
 
@rlemon ctrl + shift + d
 
thanks
 
@GeoffMoller Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
12:26 AM
@SomeKittensUx2666 is the excepted way to include public content (assets) to have a /public directory with all of your html/css/js and shit then
app.use('/static', express.static(__dirname + '/public'));
nvm, I misread the article.
disregard question
 
...fair enough
@GeoffMoller We may be in the same building.
 
:o
 
That is, if you're in Yammer's SF office
(you can edit messages you forgot to finish, just press the up arrow)
 
user1596138
@Loktar I don't have an android device so when I was bored at my parents house I installed Grapple Hero on my sisters tablet. Like a week ago. Sitting on the couch my sister and mom came over to show me this "cool new game" they found on the tablet and my 7 year old sister is dominating at it. I don't know if that was your target audience, but.. That's what I got. Haha
 
@SomeKittensUx2666 nice - thanks. Who are you?
 
12:32 AM
@SomeKittensUx2666 Trying to
@GeoffMoller that is @SomeKittensUx2666
 
user1596138
I think he knows that part..
 
@GeoffMoller I work at GeneratorLab, which is located at RunwaySF, same building as Yammer.
@JustDon't Seeing as I wrote it, you're a bit off.
 
@SomeKittensUx2666 aww, I was hoping i was right :(
 
@SomeKittensUx2666 nice.
 
12:53 AM
best. tutorial. ever. ^^
http://24ways.org/2013/grunt-is-not-weird-and-hard/
 
@Schoening I like it
 
Guys! (And/or girls!) I have had an epiphany!
... beer is awesome.
3
 
Let's drink to that revelation
 
If I'm going to drink, it's either going to be cachaca or red wine. For I have no more beer.
 
Say it ain't so!
 
1:05 AM
It ain't so!
No, that's a lie
And, if ever there were a counter-case for my modship, it may be this conversation.
 
Moderators are drunk all the time (for instance Minitech, who believes he's a 14 year old Canadian when he had one too many)
 
lol
!!help nudge
 
@RyanKinal nudge: Register a nudge after an interval. /nudge intervalInMinutes message, /nudge remove id to remove, or the listener, nudge|remind|poke me? in? intervalInMinutes message
 
!!nudge 840 "Learn grunt. There's a tutorial starred."
 
@RyanKinal Nudge #1 registered.
 
1:33 AM
@rlemon I'M SO HAPPY FOR YOU!!!
I've been praising ST3 for months lol
 
@RyanKinal but grunt isn't cool any more!
 
@phenomnomnominal OH CRAP, IT ISN'T!?!?
... what's cool?
 
!!nudge 840 "NO DON'T LEARN GRUNT. LEARN GULP"
 
@RyanKinal Nudge #2 registered.
 
1:43 AM
I still think grunt is cool though :(
 
@RyanKinal NO DON'T FALL FOR THE HIPSTER NONSENSE
 
Waitaminute... I thought grunt wasn't cool.
You dirty, low-down, deceiving... deceiver!
So... I downloaded mongo. Finally. But doubt I'll actually do anything with it tonight.
 
Oh cool, now you can be webscale
 
I don't know what that means
 
Infinite users on cheap servers, drugs and rock'n'roll
 
1:47 AM
Oh, sweet
 
Who needs ACID anyway?
!!s/rock/VC funding/
 
@SomeKittensUx2666 Infinite users on cheap servers, drugs and VC funding'n'roll (source)
 
-1
A: Multiply td values

RUJordanYou don't need jQuery to do this. querySelectorAll supports nth-child selector as well. var derp = document.querySelectorAll("tr td:nth-child(4)"); var total = 1; var results = [].map.call(derp, function(x,y) { total *= parseFloat(x.textContent); return total; }); document.getElementByI...

The vanilla answer was downvoted :(
Hrm, I might actually deserve that downvote. I don't think I'm using [].map correctly. How would I make it to return 10 instead of 1,4.5,10?
 
2:04 AM
@RUJordan why not just use foreach
 
Use reduce
And stop misusing map pls k thx
 
@copy I'm trying to learn lol my normal would be to throw it in a for loop.
 
Then just do that
 
why does everyone have something against for loops
 
They feel like writing C
 
2:09 AM
why does everyone have something against C
 
It feels like getting raped
 
why does everyone
hmm
 
Society just has no acceptance man
 
something like that
 
@JustDon't No
 
2:12 AM
Kind of, but the result is wrong
 
how?
 
1.6*2.5 = 4 *2.5 = 10
 
change 1 character then
 
var results = [].reduce.call(derp, function (sum, el) {
    return sum + Number(el.textContent);
}, 0);
 
@copy No
 
2:15 AM
@JustDon't does the + before the numbers convert them?
 
@RUJordan Yeah, It's the same as Number(text)
!!>+"1"
 
@JustDon't 1
 
!!>"1"
 
@JustDon't "1"
 
2:16 AM
!!>+"1.6424"
 
@RUJordan 1.6424
 
It's exactly the same as parse[Float/Int](num);?
 
!!>parseInt("1.6424")
 
@JustDon't 1
 
^
no
 
2:18 AM
No not that
I mean like, it's cross browser accepted?
 
Yeah, its Number
 
kewl
thanks!
 
!!> String("hi")
 
@JustDon't "hi"
 
@copy what sort of situation calls for map since I keep using it wrong?
 
2:20 AM
@RUJordan changing values?
i think
 
You have a list with n elements and your result is a list of n elements
 
Ah
 
> The map() method creates a new array with the results of calling a provided function on every element in this array.
 
Where the value of each element depends on the corresponding value of the old list
 
even MDN suggests a plain for loop for a nodelist
 
2:21 AM
@Mosho ?
 
hmm?
oh, nevermind
 
what you on about?
 
:<
 
:*
 
@RUJordan If you're interested, you'll learn most of this crap from learnyouahaskell.com/chapters
2
 
2:24 AM
Thanks doode!
 
2:37 AM
anyone know what drinkproject is?
 
no, but it sounds interesting already
 
wiki for drinks
nice website, & the scrolling sleekjs.com
 
2:52 AM
@JustDon't I hate the scrolling
 
3:07 AM
I also don't like that design
made for people with ADHD
 
As a person with ADD/ADHD, that design is stupid.
 
Hey guys, I've got a question but would probably get yelled at for asking it on stack overflow
 
Go right ahead
 
I've been coding since 5th grade and I still don't know the answer to this... How much would a website cost to be developed by real developers? I'd like a website where you can hire people temporarily
so there's gotta be registration, searching users, and the ability to perform background check
s
also a payment system
I need a rough figure so I can go forward with a kickstarter fundraising campaign
 
A.) Every website is different, so the costs will also be different
B.) How would you outdo ODesk?
Also that's not a valid Kickstarter project
(Also, that's a perfectly valid chatroom question)
 
3:11 AM
great
 
how is that great, he totally put you down
 
So ask for proposals on odesk?
lol Mosho
 
@Mosho I hope I didn't put him down. The question is valid, albeit showing a lack of understanding of how startups work.
From what I understand, you want to build ODesk for temp workers?
 
yeah
 
And yes, ODesk and Elance are both places to find people to write (poor) code for you.
If I may ask a personal question, where are you from?
 
3:13 AM
Wisconsin
 
I know someone building that exact thing.
 
nice
 
@Mosho ha
 
So how much would it cost him?
If he hired developers to work with him coding it when he already had the design
 
@TylerLangan Websites are expensive
 
3:15 AM
He's a developer himself - I taught him.
And yes, hiring developers gets expensive
 
@TylerLangan go to freelancer.com and look at the prices and then get a rough estimate
 
I wonder if this is anywhere close to accurate
5 hours for a facebook page
hmm
 
> I need a custom programmed web application. (40 Hours)
superman or what?
 
@Mosho I'd never contract with them, that's ugly
@TylerLangan This is all not to say give up altogether. There are plenty of alternate routes.
 
Hey guys
Do you know how does this work
 
3:31 AM
Oh February, tis the season to gently turn away recruiters.
 
Politely i.e., without burning any bridges
 
Oh, I infect the bridges with smallpox before setting them on fire and insulting their mothers.
 
I've actually had a surprising run of fairly well-informed recruiter requests recently (read they actually read my profile and formulated a non-stock message)
 
Ah. Have yet to have that happen.
 
3:36 AM
I think recruiters down here try a little harder. That being said, I once had a recruiter try to teach me a lesson on the definition of spam when I asked them to stop sending me duplicate requests minutes apart. It did not end well for him.
 
@Derek朕會功夫 hi
 
> Advice for Contacting Randall
If you're interested in me specifically, please include the word "Bananas" in your subject line. Otherwise, I'll assume you're just a script and taunt you.
^ No one has done that yet.
 
@SomeKittensUx2666 Ah, the old No Brown MnM's trick. I like it
 
@JustDon't hi
@JustDon't Do you know why does that work
 
@Derek朕會功夫 No, it shouldn't
 
3:39 AM
@SomeKittensUx2666 So you don't look at all like what I had pictured.
 
@JustDon't It shouldn't but it does work
This is the solution of one of those XSS challenges
 
@monners oh?
 
@SomeKittensUx2666 I pictured a mid-thirties, golf shirt, slightly overweight, cigarette smoking, no-bullshit type :P
 
@Derek朕會功夫 Slash is recognized like space by browsers inside of HTML tags
So you have <img alt="<a href=" http: onload='alert(1)' …
 
@copy Wow I didn't know that
Thanks for the info
 
3:46 AM
That info is in the OWASP XSS cheat sheet
 
@monners oh great.
 
4:02 AM
@SomeKittensUx2666 I don't know why, but that's what I pictured.
@SomeKittensUx2666 I'm sure you picture some kangaroo-riding, tan short-shorts-wearing, knife-wielding, croc-hunting Aussie. You would be correct to do so.
 
@monners yeah, that's pretty much it.
 
My work here is done.
 
what's this?
 window['eval'].call(window, el.innerHTML)
 
Black magic.
 
A bug
 
4:09 AM
ohh for script tags in zepto
to eval the content
when inserted
 
Well that's secure.
 
Let's have this convo now
:)
What makes it unsecure?
anyone can join the convo
What's less secure, the console or eval?
 
Your mother.
 
@JustDon't Sorry, that's just my knee-jerk reaction to the use of eval
 
@monners Is it like, when you really hate someone. it really pisses you off if they breathe? or if the look 97deg left
@SomeKittensUx2666 Standard answer for someone that's got nothing to say :)
 
4:14 AM
@JustDon't I don't hate people. I destroy them.
 
right
 
If the user can define what el.innerHTML is, then that's painfully insecure.
 
@SomeKittensUx2666 why? what is a user gonna put in there that's unsecure?
 
is while(true) bad to use in all cases? I'm trying to use it along with a timeout for an image switcher.
For instance something like this. (untested)
var slideImages = [
"",
"",
"",
];
for(var i = 0; ; i++%3){
window.setTimeout(function(){
$(".slideshow").attr("src",slideImages[i]).stop(true,true).hide().fadeIn();
}, 4000);
}
 
where's the while?
 
4:18 AM
@JustDon't window.location = 'evilsite.com';
 
@SomeKittensUx2666 that would happen without eval
 
not if it was in a text element
 
Well I realized I needed an iterator too so I just decided to do a for true. Also just checking, is the incrementation statement correct to shuffle through the slideImages sequentially and wrap around?
 
but if you eval that text....
 
but we're not
 
4:22 AM
whoops, wrong paste
 
@SomeKittensUx2666 script tag
 
Note the lack of script tag in my fiddle.
If the contents of the <p> tag were user-defined (say, a Facebook post) and displayed to other users, then there's a serious problem.
 
But they use it on a script tag
 
i know that would happen, but that doesn't make eval unsecure, it makes you a dumb arse
 
So no security problem
 
4:24 AM
you being the one who's evaling p tags, not specifically you
That's like doing res.send(AllFilesOnSystem) and saying nodejs is unsecure ;D
 
I think he meant user of the library
 
@SomeKittensUx2666 Yeah, it's valid answer, but it seems you would have to do most of the unsecure work by, including 3rd party html on your page, then evaluating it
 
4:29 AM
@BenjaminGruenbaum John, how's the eggs?
 
unfertilized
 
:'(
 
@copy hi
 
@BadgerGirl hi
 
Daily acknowledgement?
 
4:41 AM
That code didn't work.
 
Daily SYN ACK, FIN ACK
 
Welcome back to today's edition of "Why isn't this element in the right place?"
 
4:56 AM
@SomeKittensUx2666 I'd say that's 50% "the specification change" and 50% "it worked with float or absolute"
 
5:08 AM
@BenjaminGruenbaum goto bed
 
unless you have just woke up.
Isn't it like tooooo early in the morning in Israel ?
 
On my way to work.
Me and my wife always sit and have a coffee before work so I get up early
 
:-) i thought u didn't sleep atal
 
5:19 AM
What would be the best way to create a chart like this^ ?
 
drawing ?
its very simple actually
draw the silhouette of male and female on canvas
and then set globalCompositeOperation to source In
 
@manish Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
then draw a rectangle of height in %
over the silhoutte
and the background texture is background.
 
@AbhishekHingnikar How do I draw the silhouette of male and female on canvas? Sorry, I am new to that.
 
@RahulDesai ctx.drawImage(image)
!!tell rahulDesai google how to draw images on canvas
 
!!tell rahulDesai google globalCompositeOperation canvas
 
@AbhishekHingnikar gotcha
 
:-)
have a nice day :D and share the project.. i mean you can make a library in js :D
actually i should just do it ... no ?
yeah i will do it later today :D
 
@RahulDesai instead of having the transparent man, have the outside bit
 
5:25 AM
@JustDon't outside bit?
 
@RahulDesai say you're cutting out a man from paper with scissors, instead of keeping the man bit, keep the scaps outside, get me?
 
@JustDon't ah, I see
 
then you have a gap shaped like a man, then have a background underneath
 
got it
 
@RahulDesai ill show you now
 
5:28 AM
:)
 
@JustDon't why over complicate situations ?
 
@AbhishekHingnikar it's easier
@AbhishekHingnikar without using canvas
 
canvas = 60fps + animations + support from iOS 5+ age devices
you can always make a pure css dummy there and fill it with % attribute but that will be an overkill
ps show me your way
 
i will ;)
 
5:46 AM
@AbhishekHingnikar @RahulDesai jsfiddle.net/5wH6k
 
@JustDon't tinypic is blocked here :(
 
@RahulDesai oook
 
@JustDon't that works :)
many thanks
 
@JustDon't xD
 
@AbhishekHingnikar :)
 
5:48 AM
yours is more work :-) for the browser / developer if he wants a different bg
but works :D
 
Hi all,Does any helper library for web sql with angularjs? Any ideas
 
@AbhishekHingnikar why?
 
for me i just render what i want so bg can be a seperate layer [even animated]
@Gopesh webSQL was deprecated
iirc
 
@AbhishekHingnikar background is separate layer
 
@JustDon't say he wants 5 of these each with different bg's so he has to make 5 of those images with the men cut out of them
+ they need to be placed correctly
 
5:50 AM
@AbhishekHingnikar k,but we can still use it right?
 
@Gopesh shouldn;t
 
@JustDon't did you create that image?
 
@AbhishekHingnikar no
@RahulDesai yes
 
@JustDon't yes
 
Almost home time...
And it's payday! Woot!
 
5:52 AM
@AbhishekHingnikar iNDEXEDDB IS NOT supported by all browsers i think
 
use a shim or something
 
okk
 
and sooner or later browsers will dump websql
 
I'ma get me some strippers, sit em down, give em a stern talking to, then pay for their ride to the employment office.
 
@AbhishekHingnikar but i will need it to use with phonegap,so there will be no issues with websql,beacuse phonegap will take care
 
5:53 AM
@AbhishekHingnikar jsfiddle.net/5wH6k/3
 
@Gopesh phonegap is a browser
@JustDon't not that background genius
what if somebody needs an image instead of white
 
@AbhishekHingnikar yeah, i just realised :)
well f*ck it
 
comon man i ain't that stupid
2
been doing css animations for 2 years now
 
@AbhishekHingnikar nope,it is a framework that acts as a bridge with native ,i think so
 
@Gopesh IT IS A WEBVIEW
 
5:56 AM
@AbhishekHingnikar ok agree
 
with a few api added using xhr
 
hahaa
 
basically you run a native server in platforms native language iirc.
 
ok me disagree
 
your call calls the underlying platforms code
and if you are using phonegap use something like lawnchair or something
 
5:59 AM
@AbhishekHingnikar Thanks will check it
 

« first day (1215 days earlier)      last day (3751 days later) »