« first day (1194 days earlier)      last day (3769 days later) » 

m59
6:00 AM
The "Will you marry me" lol
 
@m59 Yep. That's one reason I moved out here.
 
@m59 As long as you're also comfortable admitting when you don't know something
 
m59
heh, 6 years at Applebees + intensely studying a ton of subects + ditsy co-workers = arrogant know-it-all
 
@Shmiddty <-- that
 
m59
Yep.
 
6:03 AM
Some people don't like it when they feel stupid for not knowing something. Instead of accepting it, resolving to read/study more and moving on, some criticize. Try to limit the time you spend with these people.
 
my new boss can be very frustrating. Sometimes he'll go on and on about something working a certain way as if it were law, and disagreeing doesn't generally get you anywhere...
Like "script tags aren't guaranteed to load in order ever since IE8, that's why we're using requirejs on this project"
 
m59
By the way youtube.com/watch?v=5R55E5HYXHg @Shmiddty
 
And he ends up writing code like
require(["script1.js"], function(){
	$(function(){
		require(["script2.js", "script3.js"], function(){
			$(function(){
				...
			});
		});
	});
});
And I'm just like... seriously dude?
 
m59
lol
Because they can be downloaded out of order, he thinks they will execute out of order?
 
@m59 He did until I had to prove to him that that isn't how it works.
 
m59
6:08 AM
dang.
That's like suggesting that browser script handling got worse over time rather than improved.
 
he's peppering $.live all over the place because he doesn't understand event delegation...
 
@Shmiddty Worked for a bipolar guy once. Didn't end well.
 
@SomeKittensUx2666 I'm pretty sure my boss is just a con man that doesn't know anything
 
Exactly. Like we were saying earlier, it's ok to act like you're the best so long as you know when to ask for help.
 
Like... he's in witness protection. Software is his cover story, and he's just completely full of shit.
 
m59
6:14 AM
hehehehehehe
bern
 
I don't think "the best" is defined by depth of knowledge in this industry
 
I'm currently using my browser + JavaScript as a bass amp. THAT IS THE COOLEST THING EVER.
 
It definitely helps, but a lot of it can be gleaned rather quickly
@phenomnomnominal nice!
 
Doing a lightning talk on the Web Audio API, gonna blow shit up :P
 
That sounds fun
is it going to be available for view?
 
m59
6:17 AM
nice man! grats!!
 
@Shmiddty don't think so, it's just at a little meet up. But should be fun!
 
@phenomnomnominal d'aww. You should record it!
 
0
Q: unable to remove element

Rahul DesaiI am working on a notifications system. Please refer the fiddle here. I tried to close the element using this.remove(); It didnt work, no error either. I also tried: this.parent.remove(); This gave an error: Uncaught TypeError: Cannot call method 'remove' of undefined How do I get the c...

 
m59
@monners lol that was quick :) "We received many applications of high quality, and unfortunately in this case your application was unsuccessful."
 
@m59 try mine if you're willing to relocate :)
 
m59
6:19 AM
I can't. Thanks so much for the offer.
 
@RahulDesai You have three perfectly fine answers detailing your fairly obvious mistake. Quit posting your questions here right after you ask.
 
Bring your wife too!
 
m59
It's just the rest of my family. I really want to stay close to them.
 
alright
 
Alright.
 
6:21 AM
ALRIGHT.
 
m59
ALRIGHT!
 
@BadgerGirl I don't have any management experience, so that job isn't an option
 
@Shmiddty But you'd be my boss!
 
@gnack don't you think that if 3 people can answer it so quickly in under 5 minutes, it might be an "easy to google" kind of question? — RUJordan 15 secs ago
 
6:26 AM
@RUJordan THAT WAS A LINEAR FASHION
@Shmiddty To be fair, neither did I.
 
And they're not too strict with the requirements, but other positions are open too if you're not comfortable with the managing one. You should definitely send your code answer though.
 
@SomeKittensUx2666 was your job asking for 4 years?
 
well, no
(fair enough)
 
Would you say $(this) vs. this is basic jQuery?
 
@RUJordan yep
everyone upvote: stackoverflow.com/a/21275612/1216976 to get past the guy with far too much rep
 
6:32 AM
upvoted
now bed timey
 
m59
Hm...I think Arun is right
 
lol he earned that rep hard
@Loktar hi bye!
 
m59
If you're passing an actual element reference to on, you're not really delegating, afaik.
It's the same as just $theElem.click()
 
Me too, sleep time now bye <3
 
m59
Because the delegation is only going to that specific element anyway, not anything with the same selector
 
6:34 AM
@m59 really?
 
m59
Arun is good :) so fast
 
He is
 
m59
$(document).on('click', 'someSelectorHere', function() {
that delegates
var $elem = $('<div></div>')
$(document).on('click', $elem, function() {
//is better written as:
$elem.click(function() {
Ok, I need some help here: stackoverflow.com/a/21250432/1435655
 
But it does work and it's "technically" the same?
 
m59
Well, the delegation is pointless, so it's kind of worse, to use on in the second example
(I think)
So, the OP is trying to get cookies from other domains
impossible, right?
 
6:38 AM
Well, I'll let Arun take this one. I've deleted my answer, and I'm pretty sure I'll get a badge out of it.
AFAIK yes, security reasons of course
 
m59
It wasn't a bad answer anyway, not hurting anything
Well, I was thinking....
 
No need to delete unless you want the badge
 
m59
javascript running on the domain where the cookie is can access the cookie
good opportunity to get that badge haha up to you =D
 
Naw, but it's the excuse I've been looking for to get the
 
m59
rather, the server of the domain can get the cookies, so
Let's say you have 5 domains
You could set them up to be able to share cookies, right?
 
6:40 AM
3 upvotes? Not phased. Moar bronze 4 me
 
m59
Have the server allow requests for them only to those domains?
 
@m59 that's beyond me, I've sparse workings with cookies
Except eating them
 
m59
but that's spoofable...
Yeah, it can be done.
It's just silly to do hehe
Security aside: an ajax call to a file that has echo json_encode($_COOKIE); and you're in business.
and in trouble lol
 
I'll be back in 1 minute to downvote unless I see a little explanation ;) — RUJordan 6 secs ago
I be on it
 
alright, bedtime
 
m59
6:54 AM
@SomeKittensUx2666 night!
@RUJordan ahaha get 'em.
I'll pitch in on a police hat.
 
I posted a vanilla answer among the jQuery. GO VANILLA
@SomeKittensUx2666 night!
I considered offering him vanilla JS, but for somebody who is more of a developer and not as experienced as a programmer, even concepts like loops can throw people off sometimes, so I figured just give him the JQuery version since he tagged it anyway. Good answer, though! — Mr. Lavalamp 43 secs ago
what. the. fuck.
developer != programmer = loops are chinese symbols?
Holy shit, almost all this guys answers are just try this and a code dump
I'd downvote them all if I wouldn't get hit with serial downvoting.
 
m59
fail :(
 
indeed
 
Maybe he's being defensive
try{
  myAnswer();
} catch (doesntWorkError){
  console.log("I guess it didn't work, just ignore my answer thx.");
}
//search for an answer continues...
 
m59
7:09 AM
On questions tagged jquery, I usually start off with a jquery answer and then expand to vanilla js if it's feasible.
@RUJordan make a live demo of that and +1 for you
 
I usually judge if the OP will actually care about the difference first. If I'm tired or lazy, I'll just fix the jQUery. If I'm spry and frisky, I'll post both
@m59 remind me tomorrow, I'm late for sleep
I gotta be up in.. like 3 hours..
ugh. Goodnight.
:D
 
m59
heh night!
 
Why are we linking to 9gag?
That place is the shithole of the internet
 
m59
Is it reasonable to send someone a pdf as a url?
 
7:42 AM
Depends on who it is
 
m59
Potential Employer
 
Should be okay
 
God damn it
 
m59
It would be kind if you avoided that language.
 
Why can't I just simply use Thread in AS3
 
m59
7:46 AM
Anyway, what's the trouble?
 
Are there any jsFiddle-like console editors that allow the inclusion/evaluation of backbone.js?
 
m59
@monners I'd use plnkr.co
@monners did you see my message earlier?
 
Yeah, sorry dude. Prolly because of your location.
 
m59
I guess.
 
As for your linked in profile, if I were you I'd really wanna draw attention to both your involvement in this community and your knowledge of libraries/client-side technologies. No one's gonna care that you worked for applebees, etc. What they will care about though is what you can show you've done (paid or not)
Cut the fluff I always say :P
 
m59
7:52 AM
Applebees for 6 years = dedication
I listed stuff I know, I think
 
Yeah, not saying you shouldn't include it, just that it's not your selling point
Moar detail! What were the challenges? What where the goals? What made you the most badass, awesome developer for the job (even if it is just a personal project).
 
We0
Hey guys
 
Wow... Plunker rocks!
 
m59
The only cool thing I do is SO like crazy and write a CMS
 
We0
anyone here familiar with jquery mobile?
 
m59
7:54 AM
but writing a CMS is huge
 
@m59 Yeah it is, and you can break that down into its parts.
 
m59
I'm trying to single-handedly compete with WordPress
True.
 
Think of it this way, if you were hiring someone, and all you cared about was their skill set, what would you wanna know?
 
m59
Well, that's not helpful for me, I guess. I'd want to get a sense of their ethics and see some code
 
Remember, you're in the enviable position of actually knowing what you're talking about :P All you've gotta do is get to an interview and not fuck up on the social/culture side
 
m59
7:57 AM
but that's probably because I think I have good ethics and can write good code, so of course that's what I look for.
 
@m59 Good points, but they're things that you typically suss out in an interview
 
m59
I'm good with social.
 
Ugh, I got burnt real bad once by not requesting to see code. I quit after four days. It was horrible.
 
@m59 Wow! I remember back when you had like 80 rep!
 
m59
lol
When I started hanging out here, @phenomnomnominal had to argue me into writing object oriented code.
 
7:59 AM
I remember when you nearly quit because no one would help you :p
 
On a more mediocre note, I broke 700 rep today :P happy dance
 
m59
Hehehehe
Yep =D
gratz!
 
@monners Congrats :p
 
@m59 But yeah, get to an interview, that's what your linkedIn profile's for.
 
I think 3k is a good milestone
That's when you get the cool privileges, right?
 
8:01 AM
@SomeGuy I wouldn't know :P
 
What do they mean by see vote counts?
 
Interesting... I've been getting quite a few downvotes recently, almost always immediately followed by twice as many upvotes. And of course, no one leaves a comment.
 
m59
probably spite dv
I had a user serial down vote me for a while and it would get reversed
he eventually got deleted
 
8:05 AM
The up votes have a plus sign next to them... The down votes have a negative sign next to them... - Well, glad we clarified that.
 
m59
Someone that was mad about me downvoting their fail inline js answer
 
@m59 No I didn't.
 
m59
hahaha
 
Hahaha
 
I've been in the habit of upvoting a lot of questions I've found useful recently. It seems like an obvious thing to do, but I have to consciously remind myself to do it. So easy just to vamp and run without thinking about the OP
 
m59
8:08 AM
Yeah, I used to do that.
 
BTW, interview tip for the day: If you're doing a video conference interview and you don't know the answer to a question, don't google the question during the interview. Especially if you're wearing glasses and we can see your screen reflected off the lenses :P
 
Can we bing it, though?
 
I get an url in a json result but it seems to be url-encoded but I need to decode it back. Is there a way to do thins in javascript/jquery?
 
oh yes
thanks
 
8:35 AM
hmm...
var decodedUri = decodeURIComponent(result.MapUrl);
alert(decodedUri);
$("#map-frame").attr("src", decodedUri);
the uri is fine but iframe ("#map-frame") src is not changed...
wonder why?
 
Create a jsfiddle or sth, I'm not a fortuneteller.
 
m59
@monners where would SO stuff go on my LinkedIn?
nm, I found it
 
8:50 AM
@m59 So where'd you put it?
 
m59
Still in progress, but there's more options on the right.
 
@m59 Yeah, but I wonder which one exactly you chose :)
 
m59
not sure yet =D
 
@jhawkins i am a very confused soul... @rlemon thankyou for the beautiful insight into me lol
 
m59
@Miszy hmm...hard to decide after all
Organizations?
 
9:01 AM
I don't have it added at all. But I think I've linked my Careers 2.0 account though.
 
9:13 AM
is there another way to do try(){}catch(e){} in a shorthand way?
 
m59
looks pretty short
 
heh yeah .. but some ppl say it's not a good way to do things.
as the performance is slow??
i use it to check multidimensional objects
obj.val.val.val.val
 
@cocco I don't know about other engines, but V8 can't optimize expressions inside try catch blocks.
 
m59
I've never needed it in js.
 
@cocco But you shouldn't bother if your application is not performance-critical.
 
9:16 AM
i also never needed it... but to check if a nested object exists it's pretty short ... va if(obj&&obj.val&&obj.val.val...)
otherwise you get an error
or you need a loop to check if it exists
vs* if(..
@Miszy i always bother with performance.
i hate lag.
especially on mobile devices.
 
@cocco Have ever experienced JavaScript lag?
 
iscroll
sort arrays with thousends of items
and much more
batch convert images with js
 
These are different things. :)
 
many eventhanlders
different from what?
if i need to sort a multidimensional array with thousends of elements checking if it exists i could take 1-2sec with a bad code. in that case i prefer that it takes just some millliseconds.
so if there is a shorthand that increases the try check ... i would be happy
 
From what I meant. These would be lagging anyway unless you optimize. Sorting thousands of elements is just slow, having hundrends of listeners would lag, I agree :)
 
9:26 AM
using bitwise && shorthand i optimized a code for sorting tables... from first code 3sec to 0,2 sec
on a quad core 3.4 .. on ipad was something like 5-6sec to 0.6ms
this also prevents some strange leaks.
 
Garbage collector is pain in ass in JS
 
if'almost managed to control it (removing eventhandlers deleting dynamic images..) but bad thing is that some new html5 things like canvas and dataurl(base64 images..) don't work properly with the garbagecollector even if you delete everything you create.
 
I'm currently writing guitar effects in JavaScript. The world is amazing.
 
@cocco What do you mean by delete ? Delete in JS is just a hint to Garbage Collector ;)
 
@phenomnomnominal now that sounds cool :)
 
9:40 AM
i mean if i create a var img=new Image() i need to set img=null & if i create window.addEventListener('something',f,false) i need to write window.removeEventListener('something',f,false) before deleting the element
 
@cocco True.
 
I built a distorter once in a program that, for the life of me, I can't think of the name right now
 
else the garbagecollector can't remove the item
 
Is anyone using sourcetree?
 
so if i also add an eventlistener to the image i need to delete first the eventhandler then set the image element to null.
 
9:43 AM
@mikedidthis CLI only :)
 
so yep, a pain
 
@Miszy damn. I disabled the dialogue for showing added files and I can't seem to get it back :(
 
by using base64 images you can't control the garbage.
also canvas.
 
I see.
 
9:57 AM
Peek on ES7 and ES8 Roadmap
 
10:10 AM
@Loktar @rlemon GamedevJS Weekly! weekly.gamedevjs.com
 
can i ask simple questions here?
 
@SomeGuy nice, thanks
 
@GNi33 You're welcome!
 
x:(lon+180)*(w/360),
y:((-1*lat)+90)*(h/180)

this converts latitude and longitute to x&y based on map width height
i need to convert it back and get the lat & lon with width height x y
 
What's the problem?
 
10:16 AM
hi

iam using roundcorner.js file the following is the code

strip.style.borderColor = '#DF01D7' || gpc(this.parentNode);

#DF01D7 is the color code i want to change it background image:

http://localhost:8080/CollegeDemo-theme/images/bg1.gif can any one help me?
 
dammit, my headphones got a loose contact
 
@cocco It's simple mathemathics, really :D
@cocco lon = x * 360 / w - 180
@sudheerkumar What do you want to do?
 
layt:(h*180)/ ??
 
strip.style.borderColor = '#DF01D7' || gpc(this.parentNode);
 
that -1 mhh
 
10:20 AM
instead of color code i need to put image
:14223349
 
@cocco hmm, how old are you? Done with secondary school already?
 
lat:(h*180)/(-1*y-90)
 
@cocco lat = -(y * 180 / h - 90) correct me if I'm wrong.
@sudheerkumar Image as a border?
@sudheerkumar Then you don't use borderColor but borderImage property.
 
yes
@Miszy i have to use borderImage property instead of borderColor in roundcorner.js file.........?
 
@sudheerkumar I don't even know what roundcorner.js is but yeah, that's the answer to the question you asked.
 
10:27 AM
search the word in 'strip.style.borderColor' in this malsup.github.io/jquery.corner.js you can understand
:14223528
 
@sudheerkumar I'm pretty sure I understand. I'm also pretty sure you don't. Why do you even want to use an image in a corner rounding plugin?
 
see the problem why i want to use image as background
 
@sudheerkumar This problem is answered, what else do you need?
 
i want to use image as background color
 
@sudheerkumar And I already told you how to do that FFS.
 
strip.style.borderColor = '#DF01D7' || gpc(this.parentNode);

#DF01D7 is the color code i want to change it background image:

localhost:8080/… i have not understood what u tryng 2 say
 
@dystroy new Set(arr); ;)
 
:14223870
 
10:52 AM
Dumb name for JIT = "Threaded CPU"
^_^
 
11:02 AM
@DannyBeckett nearly never. Just say shit, I'll respond to you, maybe.
(Looking at the other pings as we speak)
Which command stopped working? What's its name? Link to when it did and didn't work? Are there errors in the console? What happens when you run it?
 
14 hours ago, by Danny Beckett
user image
 
11:25 AM
This is the coolest thing I have made in a long time: jsfiddle.net/WeMd6/19
 
Nice
 
Imagine if you could replace an entire pedal board with a browser and JS...
 
@JanDvorak This should go away fast
 
I'm wondering if this is a spam seed
 
anyone familiar with angularjs and CornerCouch
why cant i access object attributes but can see them on Console?
 
Wow. Self-deleted after just two downvotes
 
Oh hello there Mr. @Zirak
 
12:27 PM
@Aldi are you trying to access them before the object has the attributes?
 
@JanDvorak let me check it
no its actually afterwards
log(item) -> shows attributes
log(item.attribute1) -> shows undefined
No JS masters online?
 
Create a demo that recreates the problem
 
edited my question, with a couple more attempts, but still not working (i will drop off chat cause the wife is calling for lunch, but I'll take a peek in a while)
1
Q: Subtract two HH:MM strings with a recursive function

Fernando SilvaI've been trying to get this to work, I found it here and adapted it towards my needs. At the moment it is arriving at the intended value, however the return isn't passed outside the function on the return. I've tried debugging it, but can't seem to find/understand the problem. The function is s...

 
console.log($scope.item);
console.log($scope.item.testdata);
so the first one is an object. the second one is undefined although i can see in the previous log that the attributes are there
 
@Aldi Go to JSFiddle.net and make a simplified demo where you recreate the problem
 
12:38 PM
its a bit complicated cuz im using CouchDB to retrieve the data
the object is CouchDoc from a library called Cornercouch github.com/eddelplus/CornerCouch/blob/master/…
 
Hi there
Would you say that one should wrap all methods that are doing database operations should be wrapped into callbacks/promises to ensure their completion?
 
@Aldi No way to solve a problem if you can't figure out what causes it
 
Hi there
Would you say that one should wrap all methods that are doing database operations nto callbacks/promises to ensure their completion?
 
@SomeGuy i thought this might be a know feature of javascripts private members ...
 
ssy
Good evening to everybody I have been face this problem since one week please help me I am really thankful you please. Problem disable browser back button throughout application like this d.pr/i/PDHu but now my application browser is d.pr/i/Em8S please help me
I tried so many with googling
 
12:42 PM
@Aldi It's a bug you're having. Some people might know what's going wrong, but it's not a feature
 
Hi. Can we do a http post with $().load() and get the html output?
if so how do I do it, and, pass parameters?
 
@SomeGuy thanks man. time for a SO question
 
ssy
Please anybody help me I am really thankful to them.
I am unable to do this since one week but I done googling so much time but on one suggestion work out
 
@SomeGuy That's not true. Just increase the amount of explosives. That always does the trick.
 
@ssy You can't disable browser UI controls
But you can replace the current state with the History API
Only on browsers that support it, obviously
 
ssy
12:48 PM
Thanks for @Some Guy
but see here d.pr/i/PDHu
 
@SomeGuy Let's maybe not give people the tools of their own demise.
 
@ssy Firefox will disable the back button simply if you can’t go back anymore. This is usually the case with new tabs.
 
!!afk To dream of mice and unicycles
 
ssy
@poke : thanks
But How can I overcome this problem. I tried with history API but not getting solution can you suggest anything please
 
What did you try with the History API?
 
ssy
12:52 PM
@poke :Can I shoe My code
 
Yes, show your code
 
You can’t overcome that problem, because it’s not a problem. If there’s history, you can navigate the history; otherwise you can’t.
 
!!tell ssy format
 
@ssy Format your code - hit Ctrl+K before sending and see the faq
 
If I google stuff, and get to your website, I can get back using the history; you can’t prevent me from doing that.
 
ssy
12:54 PM
@poke

function noBack() {
window.history.forward();
}

I call this function on body onload attributr
 
What do you think it does?
 
ssy
@poke : I would think it returns previous page when click on browser back button. If it's not correct please explain me what it does.
Actually I am fresher poke
Please understand my problem
 
When your site loads (onload), it will move the history forward one time. So when I get back to your site, it will send me away again.
 
ssy
@poke : Thanks so much.
Can I expect any suggestions from your side to overcome this issue ?
 
1:12 PM
can a textfield submit within a form?
 
ssy
1:23 PM
Hi Poke
 
@ssy As I said, it’s not an issue. Don’t try to mess with the browser controls.
 
has anyone had success in putting a qtip on a jqueryUI slider?
 
1:53 PM
user image
4
Maybe you guys can apply there if you don't have a job yet.
 
@EnglishMaster I'd rather starve
 
Tried to count the errors, gave up.
 
Investor EnglishMaster quote: “I see the same potential in Luxeware as I did in the early days of Google.”
 
I don't think Google started off with the worst grammar ever.
 

« first day (1194 days earlier)      last day (3769 days later) »