« first day (1417 days earlier)      last day (3530 days later) » 

7:00 PM
@SterlingArcher - would have been nice is Array was on the NodeList prototype chain :(
But TIL it's not :(
 
NodeLists are "array-like", that's why you run call so that it converts the list into an array
(somebody call me out if I'm wrong, I would hate to be teaching incorrectly)
 
@SterlingArcher Doesn't actually "convert the list".
 
No, I understand why you can use call
because it has a .length property
and because it's enumerable
But I'm just saying it's a pain Array's not on the prototype chain
 
Ohhhh
Oh I gotchu
 
:)
 
7:02 PM
Would someone like to write code for me? I would also allow you to think yourself...
 
@AwalGarg Oh wow we've met before, you're every other OP on Stack Overflow?
 
^ lol!
 
"So far I've tried writing up this question and posting it on SO"
 
@IanClark No, they don't allow you to think yourself, I do.
 
"think yourself" <-- what does this mean?
 
7:05 PM
@IanClark btw, nice one :D I should have expected that...
 
:D
 
@SterlingArcher "think for yourself" I think.
 
awesome^2
 
@SterlingArcher it means you can write the code in your way. I won't say that I don't like this code or something, as long as it works.
 
@towc yeh saw it, I'm watching your previous, very old post now actually, +1 it's pretty funny
He looks silly with long hair
 
7:06 PM
Oh
 
yeah
 
@AwalGarg you can try, but most people here (and you know this) don't like just writing code for people. They want to teach so that you can write it yourself
 
@SterlingArcher so, you wanna apply?
 
I would, but I would ask for payment, and it would have to be on my off-work hours (3 more hours)
 
@SterlingArcher payment? What about help and all...?
 
7:07 PM
Writing you code isn't helping you learn ;)
 
Don't you know, you are here to help others (me)
hahaha.
 
PRACTICAL APPLICATION SON
 
anyways, the real question.
 
the prelude was good
 
> You should be my code monkey because it allows you freedom of expression.
 
7:08 PM
I'm expecting a lot
 
how do you guys deal when you get lazy...?
 
I drink
 
Beer
 
I sleep
I come here
 
but you have to code...
 
7:08 PM
:D
 
@IanClark lol I do that often.
 
@copy just beer? What's your favorite style?
 
@AwalGarg Take a walk. Clear my head
 
I think most people on here probably don't regularly fall into that category of making lazy stuff.
 
@SterlingArcher I am under 18 and a teetotaler... any ideas that apply to me?
 
7:09 PM
Because it mostly comes back to bite you in the ass
 
teetotaler?
 
strange...
 
Unless you're a contractor then you just fuck off and it's someone elses problem
@SterlingArcher doesn't drink
 
Oh
Uhh... weed? xD
(jk)
 
@Shmiddty nice idea...
 
7:10 PM
Acid? (Also jk :P)
 
@SterlingArcher Pils
 
If I find myself being lazy, and I need to keep working, I'll go take a walk around my office
Stretching my legs makes me happy
 
hey, I think I found duplicate users or a potential sock-puppet on SO
 
Yeh, I think best thing is to get away - you can have days where you produce absolute shit where you might as well not be there and other days where you just rattle through stuff - I think it's particularly true in coding that if you're having a bad day you might as well not be there
 
Honestly, I spend very little of my time writing actual code. Most of my time is spent figuring out the best way to solve a problem.
 
Stack isn't name oriented
IDs are the identifier
Since names are not unique
 
It's IDS... ahh damn it
 
They have the same avatar though?
 
Stack is rep oriented which is different (for now).
 
Those are two separate accounts
 
7:12 PM
I bet that if a mod were to look they would have the same ip or same time zone ;-)
 
Combined they are OVER (9)1000!
 
The first one appears to be inactive.
 
@AdamBarak let me take a look then.
 
!!afk lunch
 
@AwalGarg Ok. Are you a mod? Where's your diamond? :P
 
7:13 PM
@AdamBarak I keep it in a case so nobody steals it...
 
lol :D
 
@AdamBarak He has a duplicate account with the same name, but also an mod.
 
hahahaha
 
sure :-)
 
I need to stop searching my project for stupid stuff. That's the second time today I've locked up Sublime by doing that...
 
7:17 PM
Flagged for moderator attention and explained them everything.
Later
 
0
Q: I can't edit my <input type="file"> tag

strugglingI cannot edit this button, I tried using bootstrap javascript. Here's a sample of my code. Any help would be greatly appreciated <html> <head> <script type="text/javascript" src="assets/js/bootstrap-filestyle.js"> </script> <script> $(":file").filestyle({input: fa...

 
does anybody have nice JS questions that I can try answering?
 
these answers..
 
What do you mean? — tymeJV 7 mins ago
^lol +1
I just realized, if you are getting lazy, put your tongue out, make a persistent moaning sound and vibrate your head right and left for a while. try it out yourself!
 
@AwalGarg Nothing cures laziness like coworkers throwing things at you
2
 
7:22 PM
hehe
 
@rlemon I did as "unclear what you're asking"
 
user2620028
Just had someone call me on my dirt bike i had for sale lol. Lowballed me before he even said hello.
 
@IanClark it's also a dupe
 
Hah, yeh I'm sure it's both unclear and a dupe :)
 
7:26 PM
voted
 
it is an unclear dupe.
 
posted on September 02, 2014 by Victor A. Rodriguez

As some of you guys I tried and failed, and found a lot of recipes on how make it work but  it were just recipes, meaning that a minimal change and the recipe will turn useless. I will try to be a bit more generic here. Just to start let me tell you that I am currently using Linux MINT but the solution should apply for every Debian based Linux distribution. The same concepts apply for ot

 
oh my god granola just exploded on my desk...
fuck
 
user2620028
You know what my least favorite windows utility is?
Startup Repair
 
7:33 PM
yeh, granola does that
 
Huh, this is interesting: uilang.com
 
I had no idea granola was explosive
Or was that an autocorrect dumb? ;)
 
@Retsam ooooh pretty
@KendallFrey I think he means that he jogged a bowl of cereal or something and thus is "exploded" over his desk
 
Close but no
 
Looks like it'd be really good for someone who knows design and CSS but doesn't know javascript. In other words, someone who's the opposite of me.
 
7:35 PM
The real question is why you'd have a bowl of cereal in the middle of the afternoon.
 
Granola bar was apparently crumbled in the wrapper.. wrapper was tough to open, finally ripped, granola all over.
Used the office dust buster :3
 
This sounds like a giant euphemism
 
clean as a whistle, but it smells like peanut butter over here now
 
Does this selector annoy just me? #switch.active #circle
 
you're a giant euphamism
 
7:36 PM
(i.e. the use of two IDs)
 
I have a giant <euphemism>
 
s/giant/tiny
 
@IanClark and a class
 
I don't mind the class, having an .active state makes sense
 
@SterlingArcher low blow, bro, so low
 
7:37 PM
@IanClark noooot really.
 
Hmm, I guess it's using the 2nd ID as a reference for .active so it's not terrible
 
I use ids as a poor man's CSS namespacing (with SASS)
 
:-(
 
@KendallFrey I coulda gone lower :3
 
@IanClark was just noting it... nothing else. and yes, 2 ids = annoying
 
7:38 PM
so my selectors will be more precise than they need to be, but the SASS is easier to read.
@ircmaxell GOOG down?
 
Yeh perhaps a bad example, but I'm cleaning up legacy CSS at the mo which is full of div#foo a#bar span#zulu and I'm like GAAHHH
 
ah, legacy. eww.
 
@SomeKittensUx2666 what now?
+0.8% today, from a quick look
 
You sadfaced, I was wondering if GOOG was down, turns out I was wrong.
 
0
Q: Make $q.all fail silently when one promise is rejected

userI am geocoding some addresses, sometimes some of them fail. I'd like to be able to get the rest of the results and ignore the failed one so I can display the other coordinates on a map. Currently $q.all will call the errorHandler when one is rejected, so I lose the results of other promises. ...

 
7:40 PM
Meanwhile, RNBLE is doing great
Now's the time for Google to buy.
 
mrdoob.com/projects/chromeexperiments/google-gravity This always takes some of my minutes... :D
 
@SomeKittensUx2666 I'll offer you $20 for RNBLE :3
 
For one share?
 
this guy just wants to die
 
ALL THE SHARES!
 
7:48 PM
@SterlingArcher somehow I think that won't fly
 
GN GN GN
 
Curses, my plans have been foiled again D:
 
user2620028
Thats awesome i love it
 
@towc ahh, pulsejets
 
Quality CNN tech analyst
> We can forgive people over the age of 35 for not knowing what 4Chan is — but we cannot forgive Brett Larson, CNN’s technology analyst, for thinking that 4Chan is the hacker name of an actual human being.
 
7:52 PM
!!facepalm
 
!!colored-in-facepalm
 
@SterlingArcher That didn't make much sense. Use the !!/help command to learn more.
 
It made perfect sense dammit >=(
 
lol
 
m59
7:54 PM
0
Q: $anchorScroll to asynchronously bound element id

m59Given this markup: <li ng-repeat="i in items" ng-attr-id="id-{{i}}">{{i}}</li> Injecting $anchorScroll (so that it is instantiated), will cause the window to scroll to a bound id if it matches the hash in the url, so /#id-4 will be scrolled to when it loads. .controller('myCtrl', function($sc...

have any of you had that problem?
 
QA is madz because I forgot to push this evening...
 
Take a shit on their desk as revenge
 
Well that's one way
 
So, I don't push and shit on their desk?
 
s/desk/slide/
 
7:58 PM
I'm binding statechange with History.js. How can I queue them up so they happen one after another and not all at once ( assuming someone goes forward and backwards in their history really fast )
 
It's the american thing to do
 
I'm not a peace negotiator but I think that might have adverse affects
:D
 
@SterlingArcher murica (source)
 
'Murica!
 
7:59 PM
I wonder if canadians say 'Anada!
 
user2620028
no they say Sorry
 
'Ritain! (I'm British)
 
user2620028
Canadians say "Polar Bear, Polar Bear, Hockey, Tim Hortons, Penguin, Igloo, Sorry"
 
MOOSE MAPLE SYRUP
 
user2620028
Damn i forgot a couple
 
8:01 PM
we have meese, not polar bears
And the closest penguins are on the equator
(really)
 
Hello there !
 
@AaronSiciliano ... you forgot the most important thing. Poutine.
 
Does someone have experience with a progress bar thing ?
:)
 
@RyanKinal No, poutine is not most important
hockey
 
8:11 PM
Okay, fair enough, I guess.
 
Can I show you my existing code ?
 
Blap!
 
I want that when I hit the Button, the progress bar starts to increase until 10 seconds are gone (that the progress bar should be finished!)
how to do this progress bar refreshing during 10 seconds ? :)
 
!!jQuery animate
 
8:18 PM
^
 
@RyanKinal thanks ! could you help me on a small example with this progress bar ? I'm not so familiar with jQuery yet...
 
$('#blap').click(function() { $('.progress-bar').animate({'width': '100%'}, 10000); });
 
Where should I paste this ?
(sorry for being so beginner with jquery ;) )
 
@Basj On the telephone pole. You'll get faster uploads that way.
 
:D
 
8:21 PM
@Basj I made this: (f=function(f,p){p=p.length>9?'':p+='#';console.log(p);setTimeout(function(){f(‌​f,p)},100);})(f,'')
 
shitty quality but... #poutine
 
damn I can't pass the loop variable to onclick
 
me: the device has no outgoing internet connection, therefore it won't come online
customer: no, it has a connection, it must not be getting on our network.
me: well, historically there has been no issues seeing the devices on any network. customer's ISP: well it isn't our connection, it must be the devices network adapter. I'll try to ssh into it and see
me: <silent> .... okay.
 
Thanks @SampoSarrala @RyanKinal it's very nice !
 
tl;dr - the device has an issue getting on the internet/network so they want to SSH into it
have fun
 
8:22 PM
But I don't know exactly where I should paste this in the code
 
have fun...
 
in a <script> </script> at the end of the HTML ?
 
@Basj if you have to paste the code into your script, it's 99% most likely not going to work
Understand, and write it yourself
I can't tell you how many times I've seen "I pasted your code, but it didn't work. Now what?"
 
@Basj every line of javascript should be wrapped in individual script tags. It's more performant that way and scalable.
 
@Shmiddty I didn't know JavaScript supported Scala.
 
8:25 PM
@SterlingArcher Poutine doesn't work with McDs fries
 
what I'm doing wrong here guys, I can't seem to be able to pass the loop index variable to onclick :/
 
@KendallFrey you give it McDs and it just lays around the house having corn syrup withdrawal?
 
for(i=0;i < form.length; i++){
    form[i].onclick = function(event, i) {
        event.preventDefault();
        form_inline[i].style.display = "none";
	    alert(event)
	    }
	}
Is this something scope related?
 
@JimmyHoffa McDs is too salty
 
@AdamBarak Don't pass the i as a parameter.
 
8:25 PM
@AdamBarak yes.
 
@RyanKinal I would be so glad to be able to use this ;)
 
@AdamBarak the hiding of i by the parameter may be a poor choice.
 
@KendallFrey no but it's hilarious
 
i doesn't belong to the function, it isn't passed to the function, it exists in a scope wider than the function, so it will be implicitly passed in.
 
@KendallFrey that doesn't explain why it's not working. Lazy canadians.
 
8:26 PM
@Basj It's licensed under the Ryan Kinal Esquire Public License
 
TL;DR: Get rid of the i parameter passing :P
function(event) {
 
That won't solve the problem
 
It'll just create a different one
 
probception
 
8:27 PM
@Basj ... basically, the WTFPL, but you have to buy me a beer if we ever meet... if you want.
 
So, create a closure and pass it in?
Why wouldn't that just work though?
 
If not, that's cool too
 
because i will always be equal to form.length
(inside of the onclick handlers)
 
wait wait I'm trying and at least got the alert to work if nothing
 
@KendallFrey send me some true Poutine
 
8:28 PM
@RyanKinal Thanks for this open licensing, but I still cannot manage to make it work :)
 
@Shmiddty Right
 
Package it for shipping so it wont spoil
 
So you do have to use a closure
 
@SterlingArcher What do you expect to do, reheat it?
 
oh no no sorry, it works :)
 
8:28 PM
no soggy fries allowed
 
trying that
 
@KendallFrey I EXPECT NOTHING BUT FRESHNESS
 
Although, @AdamBarak it's likely that if you need to set event handlers in a loop, you want to set a single event handler on the closest common parent, and use event.target or something similar to filter.
 
@SterlingArcher Then come visit me, and I'll take you to a place where you can buy it fresh
 
@SecondRikudo The problem is that I also have other elements that could conflict like cancel and submit to set a single ev handler on the closest common parent (which is the form area)
 
8:31 PM
I had a tasty poutine last weekend
 
basically I'm setting up an inline editing feature
 
mmm, drooling
 
@KendallFrey one day I really will come to Canada
I promise
 
@RyanKinal how would you do this : once the Blap! is launched, the "Blap!" buttons becomes "Stop!" (and the color changes to black).... If 10 seconds are gone (and no Stop!) has been done, a new button appears near to "Blap!", called "Replay"
 
One day I really will come to the US
Actually I come a lot
 
8:32 PM
It's pretty complex, I don't even know if it is understandable :)
 
@KendallFrey phrasing! ...I hope.
 
Star that if you want.
 
there are many forms and each has a hidden form prefilled with the visible form's content. the Javascript function should just show the right hidden form
 
I know, I know
 
Wow @SecondRiduko you're fast
 
8:32 PM
If you know Reddit form editing, that's what I mean. Or SO comment editing that's also inline
 
Also, surprisingly not dead after the absinthe :D
 
@Basj .toggleClass and callbacks
 
You need to experience central virginian / west virginian food, @KendallFrey. I can take you to a place with no cell phone reception with the best burgers (buffalo or none, your choice) in the state
Where there is no phones, there is great food
 
I know where to go for a good burger
 
@SterlingArcher because nobody can call the health department about the violations? Nah, I disagree.
 
8:34 PM
@RyanKinal may I ask you a last code example, it would help me so much... Last question I promiss !
;)
 
They had an A from the health inspector
 
@SterlingArcher The best food on Earth must be at its core.
 
@SterlingArcher yeah and I had an A from the boob inspector, sure.
 
It's just so in the cut that it's not a chain, it's just home cooking
 
@JimmyHoffa I had a DD
 
8:34 PM
@JimmyHoffa what..?
 
@Basj I'll give you something that looks maybe like you'd want it to, but will not actually work. I don't want to write all your code for you ;-)
 
Almost boobs
Barely there
Can't complain
Damn
Double Damn
Enormous
Fake
You know how it goes
 
"Almost boobs" LOL
 
ok ;)
 
Big,
Healthy,
Husky,
Fluffy,
DAMN!
 
8:37 PM
@KendallFrey I was kidding, if you met with a boob inspector you may want to speak to your local abuse hotline
 
Meeeeehhhhh, maybe not... I have a meeting.
Sorry
!!afk meeting
 
@Basj you might want to try googling for "jsfiddle progress bar", there should be lot of examples and you could easily play with code.
 
@Basj RyanKinal is afk: meeting
 
I think this needs to be better understood. meta.stackoverflow.com/a/270420/829835
3
 
8:47 PM
@rlemon heh, it's a dupe :D
 
!!beer or wine or rum
 
@rlemon wine
 
Endless capabilities of the bot :D
 
s/ r/ c/
I wonder if that space would work, but that would be very innaproriate lol
 
@AdamBarak So?
 
8:50 PM
@SterlingArcher it sure would
 
@KendallFrey was it well played? D:
 
What's the name of that JS promise framework y'all mentioned? Blue Balls?
2
 
@SterlingArcher Since you had to ask... maybe not so much?
 
@JimmyHoffa bluebird
 
Does anyone know of a way to list npm packages that begin with a string - i.e. if the packagename begins with express, you would do something like npm search ^express
I could pipe it to grep, but I was wondering if that was built-in
 
8:53 PM
Yeh why not just do npm list | grep express?
 
@PetkaAntonov http://chat.stackoverflow.com/transcript/message/18645974#18645974 I think you should change the name for the next release :D this guy is onto something!
 
@SecondRikudo I'm there, but for some reasons it's giving always the second item as the i variable. When I solve that I think I can skip to the optimization level
 
I'm pretty sure that'd return the same as npm search express @IanClark
 
@AdamBarak maybe you shouldn't be using a loop.
 
So you have your answer @taco?
 
8:55 PM
What is the most well-supported across browsers declarative iteration approach? Array.map?
 
@JimmyHoffa Can you suggest a better way when you have three different elements competing with each other (cancel, edit and submit)
 
No @IanClark
npm search also searches descriptions
 
OK so I think npm list shows the treeview? And only the package names, so it would work? Have you tried it?
 
I'm sure it works without a for loop, but I first want to make it work like this, then I can remove the loop
 
Hey guys, for a media query, what's the correct way to say "if the screen is less than 683px, then apply this style?"
@media(max-width:683) {
	h1 {
		text-align: left;
		margin-left:30px;
	}
}
 
8:57 PM
@IanClark npm lists a treelist for the installed node_modules
 
I thought that would work, but it's not applying the margin
 
@SterlingArcher px
683px
 
CSS Always wants a unit
unless you are setting to 0
 
@rlemon and that I hate them!
 
8:59 PM
Is there a standard way for coding a Login/SignUp/LoginWithFacebook interface
 
!!afk because your mom called
 
with Bootstrap for example ?
 
a workaround would be to set a percentage value. that's if you're into crazy minification. Well, with a percentage you wouldn't even need a media query
 
It happens ^^
 
8:59 PM
Maybe I'm wrong, but I thought it could be interesting to avoid to recode from scratch all these features
 

« first day (1417 days earlier)      last day (3530 days later) »