« first day (788 days earlier)      last day (4159 days later) » 

7:00 PM
@OctavianDamiean d param?
oh, I think that's an offset - how many messages sent overall since last check. Something like that.
 
0
Q: Parse data on dynamic webpage

PavelBYActually now i have task, parse web page for spareparts ... But there's no hint of the export data, and how i can get it out? I now how to parse web-pages using ruby, but main trouble is that it is javascript table... Are there any good software products for parsing jsript tables on dynamic pages...

 
:( google images searched for "averfal"
first page was two naked chicks spread eagle
Google.... IM AT WORK! (cache those for when i'm at home!)
 
posted on December 12, 2012 by ericbidelman

Programmatically animating background images There are two primary ways people animate background images: Use CSS sprites to update a background-position in JS . Hacks with .toDataURL() . The first works great if you have the image ahead of time, but what if your source needs to be programmatically generated, say, by a <canvas>? The solution to #1 is to use .toData

 
urg. I should write a blog for today.
 
do it :)
 
7:07 PM
When inserting a new script to the page via document.body.appendChild(script);, how can I have that file pause execution at the first statement?
 
@ŠimeVidas Say whaaat?
"Pause" execution?
 
as in break-point activating
 
break point in dev tools? or block
 
I'm currently paused at the document.body.appendChild(script); statement.
 
Write debug; on the line you want to pause
 
right gtg... love to you all xx
 
@AmaanCheval I don't control that script. I cannot edit it.
 
@ŠimeVidas easy solution. It's Javascript so you DO control it (for debugging purposes at least). download a local copy and include that so you can control your break points.
 
@rlemon There must be a way to do it on a remote script.
 
7:12 PM
@OctavianDamiean Speculation proved. t is indeed some sort of time, d is the offset. Found this in master-chat: since: e.t && e.d ? e.t - e.d : void 0
(where e is an event)
(and since is some parameter to fetch stuff)
 
@ŠimeVidas yea, but you need to either 1) be able to add comments to the script. or B) can add the break points AFTER the script is loaded.
or iii) you do what I suggested and download a local copy, add the comments, and use that for development.
just not production.
 
@rlemon There should be an option "break on next statement" or something. I'm trying to find it now..
 
@rlemon I don't get that one. What "Pause" button?
 
7:20 PM
@rlemon That's a "pause on click" feature. I'd like a implicit "pause on next statement" option. By the time I click on the "Pause" button, that new script has already executed :/
 
Just download the script and add the debugger statement
 
@ŠimeVidas then pause on the calling script and step into it
 
Why do you want that anyway?
 
or do what I suggested thrice, and Amaan suggested once
So my gf works for the same company I do. She works in manufacturing so it's cool we don't really see eachother too often at work. But the UPS driver has a thing for her (he's like twice our age) and is very obvious about it. I think it's funny that he will bypass everyone in the front office to get her to sign for the package. then he tries his creepy old man flirt. The great part is I have told everyone in the office whats what and now they all watch for it and tease her afterwards.
Trolling my gf and workplace all at the same time :P
and F U ups driver, :P dats my girl!
 
Hahahaha
 
7:22 PM
@rlemon The "calling script" merely inserts the new script via document.body.appendChild(script);. It is not possible to step into the second script.
 
...which company do you work for?
 
@ŠimeVidas hey! download the bloody script!
@Zirak it's a company that does automated control systems for commercial grain dryers.
 
@rlemon The thing is, I neither control the page I'm debugging. So, I can't make it request the local script.
 
Not "Dryer Moisture Systems" by any chance, right?
 
It's all remote.
 
7:24 PM
thats the one
 
That explains some things. whistles nervously
 
@ŠimeVidas dude, you can download the script - include it from a local area (with debug statements) and then test it there.
@Zirak such as? :P
 
I'd have to downlaod the page, too.
 
Oh nothing, nothing...
 
@ŠimeVidas so you're writing a userscript?
 
7:25 PM
@rlemon No, I just want to inspect the execution of a script on a site.
 
@Zirak meh, if you are referring to the website I didn't develop it.
 
@rlemon Did you really not get that?
@Zirak You're a funny old man
 
@AmaanCheval nope. total whooosh
 
@rlemon He's acting like he's the old package delivery guy
 
ahhhhh... yea I didn't get that at all.
 
7:26 PM
Yes. Just acting.
Nothing more.
 
!!/google automated control systems for commercial grain dryers ontario
 
wow, I would have expected to see my company there
 
oh, I went by the hardware store earlier, dropped my computer and bought the new cpu.
I'll let them fuck around with the damn fan
 
Given a countable linearly independent subset S = {y1 , y2 , . . .} of the vector space of square integrable functions (with respect to a weight w), it is a common problem to find the element in the span of S that is “nearest” a given square integrable function y; that is to find coefficients αi so that (y − αi y1 )2 w(x) dx is minimized.
!!/define common
 
7:30 PM
@SomeKittens common: Belonging equally to or shared equally by two or more; joint: common interests. (source)
 
...Am I in the wrong universe?
 
But then I went to the bakery, you know, to celebrate money well lost, and used up "nearly adorable old guy" credits on a cashier with beautiful eyes.
@SomeKittens It's a common problem in programming to have an off-by-one error. Your parents will most likely not refer to that as a common problem.
"Common" is also defined by the circles you're in
 
Hey guys, can anyone help me with jquery.validate plugin here stackoverflow.com/q/13842403/1211329
 
@Zirak If you ask them, it's off-by-two that's the issue (they weren't planning on having kids)
 
That must have been a nice talk.
"Hey son, you're a mistake."
"I shagged your mom one day and my life got fucked"
 
7:37 PM
Less of a talk, more of a "yeah, we didn't plan on having kids. But we still love you" when I was nine.
 
@Zirak that awkward moment when you realize your conception was 6 months prior to your father proposing to your mother, and their wedding was planned and executed in one month...... yup. i'm a mistake. damn..
 
!!/urban mistake
 
@twiz [Mistake](http://mistake.urbanup.com/932656) - An error or fault resulting from defective judgment, deficient knowledge, or carelessness.

- A misconception or misunderstanding.

- A word people like to throw around when someone they claim to be "friends with" does something they don't agree with or like. A way of belittling someone. A way to try and manipulate people's actions or future actions. Ignorance.

See [clannie], [plague], [tard], [sheep], [lemming], [troll], [whoops], [opps], [WTF].
 
@rlemon \o
 
well... I guess it did say "misconception"
 
7:39 PM
@SomeKittens I figure i'm already a lemon - how bad can being a mistake really be?
 
Life could have been a lot worse.
 
!!/urban accident
 
room topic changed to JavaScript: === !== == ... Review the room rules. Sparkly Vampires please join #Transylvania [ecmascript-5] [javascript] [just-confused]
 
@MikeRobinson ACCIDENT Something that happens with out intent.
 
7:41 PM
God that'd get tiring doing actual javascript
"I'll just use Ember..." - MISTAAAAAAAKE
 
@SomeKittens playing a team battle game last night .... was killed by "a fart".. made me think of your username
 
...farts made you think of me. I'm not sure if I should be ashamed or flattered.
 
being killed by kids with wittier usernames than I makes me think of you
 
@RyanKinal What is this I don't even....
 
lol
 
7:47 PM
@Zirak Oh cool, why didn't I think of reading master-chat.js? Damn NSA and their mind control rays. I blame the NSA.
 
I blame pizza hut for making delicious pizza which distracts me from any non-pizza related task.
 
I don't really find their pizza all that delicious
 
@Zirak Damn you for making me hungry. It's past 5 pm, everything I eat now will end up on my hips ....
Thank you!
 
It's kinda... bland. Except for the Buffalo Chicken. That's friggin' awesome.
 
NY/MAer's know real pizza doesn't come from a chain
 
7:49 PM
Cheesy Crust is the best thing in the universe
@OctavianDamiean See? All their fault
 
I'll post a picture of my lunch next time I get a piece of pizza. Then you'll see.
 
How do you guys suggest using namespaces in JS? Is this example a bad way to do it? Example
 
@Zirak Oh god I'm getting imagigasms right now.
 
Pizza..... meh. it's ok.
 
0
Q: JavaScript and callback nesting

Jake KingA lot of JavaScript libraries (notably jQuery) use chaining, which allows the reduction of this: var foo = $(".foo"); foo.stop(); foo.show(); foo.animate({ top: 0 }); to this: $(".foo").stop().show().animate({ top: 0 }); With proper formatting, I think this is quite a nice syntactic capabil...

 
7:51 PM
Chicken Wings.... thats where it's at!
	$(document.forms.email_registration).on('submit', processEmail);

	function processEmail(e) {
		console.log('begin transaction');
		$.ajax({
		  type: "POST",
		  url: "/register_email",
		  data: { email_addresss: this.elements.email_address }
		}).done(function(data) {
			console.log(data);
		});
		e.stopPropagation();
		e.cancelDefault();
		return false;
	}
ok so yea....
 
@Event_Horizon Well, they aren't really namespaces. But check out the Revealing Module Pattern
 
'begin transaction' is logged... but the form still submits (page redirection)
 
I'm almost drowning in saliva ...
 
why is the return false not working as expected?
does the .ajax do some crazy shit here?
 
7:53 PM
Shouldn't...
 
.on's fault ?
 
:/
idk. maybe. ffs.
 
document.forms.email_registration.onsubmit = processMail
 
document.forms.email_registration.addEventListener('submit', processEmail, false); // ;)
 
Too verbose imo. This ain't Java (yet)
 
7:55 PM
they do different things ;)
 
@rlemon Call e.cancelDefault(); before anything else.
 
!!/jquery preventDefault
 
Yea, preventDefault, not cancelDefault
 
\o/
 
7:55 PM
@rlemon Anything beside leaving the ability to set another event ?
 
jQuery normalization!
 
regardless, return false fires both preventDefault and stopProp
I added those as a last ditch
 
@rlemon Did you try them before anything else?
 
not yet.
 
Do that.
 
7:56 PM
you do that!
 
Actually, was cancelDefault preventing the execution of the rest of the function?
Thus also preventing the return false?
 
nothing was prevented. the form submits. it's like the function is never hit (cept I see the console.log() briefly before the page loads to the new page)
hrmm... Illegal Invocation
what could be causing that
 
cancelDefault?
:-P
 
		console.log('begin transaction');
		$.ajax({
		  type: "POST",
		  url: "/register_email",
		  data: { email_addresss: this.elements.email_address }
		}).done(function(data) {
			console.log(data);
		});
		e.stopPropagation();
		e.preventDefault();
		return false;
changed already
and that wouldn't cause that, it would tell me unknown method or w/e
 
'strue
 
8:00 PM
Does anyone have anything against the namespace-like example I gave?
 
What the heck does this mean?
This is not a programming question but a colour-picking question... — Jean-François Corbett 1 min ago
 
data: { email_addresss: this.elements.email_address } // wrong?
data: { email_address: this.elements.email_address.value } // right?
(@rlemon)
 
Hey guys, can anyone help me with jquery.validate plugin here stackoverflow.com/q/13842403/1211329
 
@rlemon You know what I think? I think that you ain't grabbing the form.
 
@RyanKinal o_O :(
that makes me sad
@OctavianDamiean cough the console.log runs
I mentioned that
 
8:03 PM
@rlemon Well, maybe you do then. :D
Never mind.
 
document.forms.email_registration.addEventListener('submit', processEmail, false);

function processEmail(e) {
	console.log('begin transaction');
	$.ajax({
	  type: this.method,
	  url: this.action,
	  data: { email_addresss: this.elements.email_address.value }
	}).done(function(data) {
		console.log(data);
	});
	e.stopPropagation();
	e.preventDefault();
	return false;
}
new code. uploading then lets run this bad boy
 
Works for me.
 
<form action="/register_email" method="post" name="email_registration">
	<div class="input-append">
		<input class="span2" id="email_address" name="email_address" type="text" placeholder="Email Address...">
		<button class="btn" type="button">Register</button>
	</div>
</form>
yes the button is not a submit, so I just hit enter to test for now :P
 
I don't even have to return false.
 
	$.ajax({
	  type: this.method,
	  url: this.action,
	  data: { email_addresss: this.elements.email_address.value }
	}).done(function(data) {
		console.log(data);
	});
something in here triggers Illegal Invocation
fakkkk
still three s's
F U DEV TOOLS! Y U NO KNOW EXACTLY WHAT I MEANT TO DO AND GIVE ME USEFUL ERROR MESSAGES!
 
8:07 PM
@rlemon this.method?
 
jQuery ?
 
this === form element / this.method == method prop that mapped from attr
 
Oh wait, you're in the form there ...
 
@copy i'm lazy :P and aside from me being stupid I do understand what i'm doing :P
 
I keep forgetting.
 
8:09 PM
If you were lazy, you wouldn't use jQuery and spend all your time debugging :P
 
@copy nope! had nothing to do with jQuery
so put that in your pipe and smoke it
I had one too many S's in my key
 
lol, that was really it?
 
 
also, when using Twitter Bootstrap and relying on jQuery for UI functionality, using some of it's nicer abstractions (ajax) is perfectly fine. I am avoiding stupid selectors and redundant DOM operations.
so in this case jQuery is ok.
my attention to detail is not.
 
Yeah, jQuery.ajax is pretty sweet
 
Really ? I think thought the lazy (in a good way) part about jq is the DOM stuff
 
It's too bad that the rest of jQuery comes with it.
 
wot!?
Fixed it?
 
jQuery is not OK when you do stupid shit with it. Unfortunately there are a lot of developers why do do stupid shit with or without jQuery - with jQuery it turns into a monstrosity
 
is slow today
 
8:12 PM
I'm more likely to do stupid shit when I have jQuery available. I'll admit it.
 
9 mins ago, by Ryan Kinal
data: { email_addresss: this.elements.email_address } // wrong?
data: { email_address: this.elements.email_address.value } // right?
@copy yes XHR is not hard.
 
<--- winner
 
yes I fully understand it.
 
@RyanKinal However, that's still not triggering some illegal condition to make the form submit.
 
Honestly, though, the animations are probably the laziest part of jQuery.
 
8:13 PM
No, I don't care that I constantly tell people to avoid jQuery and am now using it because I still stand by my only reasoning which is: You must know Javascript to effectively use jQuery.
1 message moved to recycle bin
 
^exactly
 
IF YOU HAVE A QUESTION DON'T ANNOUNCE YOU HAVE A QUESTION OR ARE ABOUT TO ASK A QUESTION. ASK THE DAMN QUESTION!
24
 
Especially for rapid development.
 
I have a question about questions that ask to ask a question
 
@SomeKittens well tbh in this project i'm using PHP + jQuery solely for the purpose of RAD.
1 message moved to recycle bin
I can do this all day.
 
8:15 PM
@user1820652 Are you really that blind?
 
why?
 
actually, i'm going for a smoke. If I see any more of this nonesense when I return you're getting perma binned.
 
@user1820652 That depends on what your problem is. State your problem/question, and we'll let you know if we know anything about it.
 
room topic changed to JavaScript: === !== == ... Review the room rules: rlemon.github.com/so-chat-javascript-rules Sparkly Vampires please join #Transylvania [ecmascript-5] [javascript] [just-confused]
 
Thanks.. I have install drop down menu with multiple colum and with JS and this is making problem in the overall website.
 
8:16 PM
The reason your messages were binned is because you were asking to ask a question. And asking if we could help you. We're on a question/answer site, so the answer is automatically yes.
 
Please refer my stackoverflow.com/questions/13847060/… i am watiing for answer
 
s/user123456789: I have a question/user:123456789 /g
 
Guys, I'm thinking about a solution that uses a singleton. Tell me to stop.
 
STOP
 
HAMMERTIME!
 
8:22 PM
HAMMERTIME
Ninja attempt fail
 
... not what I intended, but still awesome :-D
 
Heres how I would use namespace, is this namespace implementation good JS? Does it follow good standards, etc? Namespace Example
 
@RyanKinal when faced with a problem some people think, "I know! I'll use a singleton". These people now have a single problem with many areas for fault. I also want to slap them.
 
Thanks
 
0
Q: A structured approach to development - A test object

pure_javascriptFor learning and possible implementation I developed a "framework" similar to backbone for developing encapsulated code. It is similar in the fact that I can pass an object in to a function and "do" things with the object from there. For this specific case all the methods are private and need n...

 
8:25 PM
Beer cozies work exceptionally well as coffee cup cozies. My cup of joe has been warm all day long!
 
!!/choose "in the name of love" "HAMMERTIME" "Collaborate and listen"
STOP
 
@SomeKittens Collaborate and listen
HAMMERTIME!
 
@Zirak how about chaining commands. !!/choose A B C && tell Zirak google "I want this feature!"
 
@Event_Horizon No
 
@RyanKinal Why not?
 
8:26 PM
Too many globals, for one
You're using a function as a constructor, and not using a function as a constructor all at the same time.
 
Please help my website script is not working after I install the dropdown menu. the link is fedri.com/clubs.php Please help me. Username is testuser and password is testtest thans..
 
@Event_Horizon fut the whack is that?
 
Me, not understanding JS objects/namespace etc
 
@rlemon You can do multiple commands in a message (separate each commands to its own line). I'm hesitant to make commands a DSL
 
@rlemon :-P
 
8:28 PM
I mean, it functions as a namespace, but it's kinda pointless
 
@Event_Horizon That seems very pointless
Namespaces are for grouping similar functions/properties
 
You're just creating an object, just to execute a function in it. Why not simply use a closure?
ninja'd, twice
 
<--- winner :-D
@user1820652 Holy crap, worst tab-order ever
 
s/in/ei/
MAR-FUCKING-QUEE?!?!?!?!?!
 
8:32 PM
@RyanKinal Alright, thanks
 
are you serious?
delay on hover menus is too long. I think I need to click to open them ... oooo wait. that brings me to a new landing page.
hover menus are bad UX
 
@RyanKinal your empl variable is global, but that is the idea ^_^
 
If you are going to round corners do it consistently. The mix of different degree rounding is throwing me off huge.
 
@Neal Point
 
Overall I think the design is very busy, kinda ugly, and looks like some crappy 2001 web 2.0 site.
^ constructive
 
8:35 PM
@RyanKinal you have answer or not ?
 
posted on December 12, 2012 by RKoutnik

StackOverflow has a problem.  They've already dealt with (and conquered, more or less) a lot of the problems that an online community encounters (see Meta is Murder for a great example).  The Summer of Love was met with questionable success.  However, there's another problem that's been cropping up for me. I've stopped answering questions on StackOverflow [0].  As

2
 
@user1820652 so much blue and grey...
 
@twiz ok this i will change later now the script problem can u solve ?
 
@Feeds haha SO is hating on themselves
 
Woah, someone else starred Feeds!
 
8:38 PM
@SomeKittens You're welcome :p
 
@user1820652 lol, no... you haven't asked a question
 
I actually made a Meta post about this. -3 in as many minutes.
 
When you load an image in JS how does it store that image... ? does it store just a large array of pixel data?
 
@user1820652 May help if you explained what the problem is
 
@twiz read his Q and his comments. He doesn't know what the problem is because he is a help vampire.
"I don't know how to code", but i'm asking a coding question for a website I administer...... well shit... do I even need to outline all of the facepalm in this.
 
8:40 PM
@user1820652 you going to pay me ?
 
2 messages moved to recycle bin
@user1820652 next time I flag as spam.
 
@Dave :)
 
@user1820652 read the room rules. rlemon.github.com/so-chat-javascript-rules
look under "how to ask for help"
 
@rlemon why, what I have done ??
 
read the room rules and you will find out
 
8:41 PM
if you read the rules you will know what you have done.
 
Is this better implementation than my original? JSfiddle
 
@Zirak I can reuse parts of your message handling code, I hope you don't mind.
 
i think i cannot get any hlep here.. i am going bye
 
good idea.
 
8:42 PM
1
Q: what will EcmaScript 6 bring to the table for us

user697296Our company ported moderate chunks of business logic to JavaScript. We compile the code with a minifier, which further improves performance. Since the language is dynamically typed, it lends itself well to obfuscation, which occurs as a byproduct of minification. We went to great efforts to ensur...

 
@user1820652 heres a clue though : Uncaught TypeError: Object #<Object> has no method 'tabs'
 
@user1820652 to point you in the right directioin... use dev tools and look at the console.
 
!!s/hlep/free coding work/
 
you cannot get help because you don't have a real question. you have a work request.
 
haha
 
8:42 PM
@SomeKittens i think i cannot get any free coding work here.. i am going bye (source)
 
the website is a prepaid template - i dont think he know any thing about programming at all. just bought it expecting it to work.
 
Ryan, its because of the help like you people this problem solve jsut only remain JS problem. Dear I am not from software filed, may be its easy for you but its difficult for the one who dont know codes. You dont know how much I am strugging for running this site. I am electrical engg and i am daily reading codes... anyhow thnx for yuor comments. — user1820652 8 mins ago
he doesn't know anything about programming and admits to it.
 
:shakes head:
 
@Dave He should have at least bought one created in the past 10 years...
 
admits to being a help vampire as well.
 
8:44 PM
lol knows nothing about brains - ill become a brain surgeon.
 
I'm all for helping the noob who wants to become not a noob. I'm all for raging on people who think they can get paid for the same jobs we do without knowing the stuff we know, then expect us to tell them how to do it, or even go as far as ask that we do it for them. If you are one of these people, Fuck you!
3
 
his response says he's an electrical engineer and reads code daily =/ but knows nothing about code..
 
@rlemon ???
 
I could read Chinese daily, but if I don't try to learn the language, it's pointless.
 
@FlorianMargaine I keep getting emails from some SEO companies but they're all in french. :P
 
8:46 PM
yeh i think hes in the wrong job
 
someone signed me up for some french SEO newsletters or something
 
@rlemon ah...
 
chrome translate & click unsubscribe :P
 
do you have like a search on the room that notifies you any time someone talks bad about the frenchies?
@Dave mark as spam. don't need to do anything else :P
 
@rlemon You have been trolled by Florian de la Margaine
 
8:47 PM
@rlemon Hahaha
RSS feed on the search for "French"
 
@copy I never thought of that. I know it wasn't dievardump because there were no pictures of him posing in a speedo
 
ok, my question got lost in the helper vampire discussion... when you load an image.src is this stored as a array of pixels ? Because im wondering why its not accessible without drawing to a canvas first and obtaining the pixel data that way.
 
@rlemon uh, no, I was reading my pings and this was right after
 
I see. Any pictures of Florian posing in a speedo ?
 
@Shashi Revolución
@copy maybe, but I don't randomly get those in emails titled "hey big boy"
 
8:50 PM
@copy no...
 
French people are weird ...
 
my real name is Florian Margaine Coeurdacier de Gesnes
 
I'm Robert Douglas Lemon the third.
 
30 secs ago, by copy
French people are weird ...
 
I got a long last name.
 
8:50 PM
french have insane jet fighter pilots
 
My real name is Mohammed Amaan Chevalwala
 
My indian name is "He who runs with wood"
 
hopefully we don't have portuguese people here
 
Haha, what the heck?
 
forever horny huh ?
 
8:52 PM
nice question
2
Q: what will EcmaScript 6 bring to the table for us

user697296Our company ported moderate chunks of business logic to JavaScript. We compile the code with a minifier, which further improves performance. Since the language is dynamically typed, it lends itself well to obfuscation, which occurs as a byproduct of minification. We went to great efforts to ensur...

 
well, to my people it signified someone who hastily prepares and provides to others (wood for fires, tools, weapons). But in todays standards... I'm a pervert running around with a hardon.
 
Hahahaha
 
@rlemon You're confusing real Indians in this room by making the same mistake that Columbus did
 
lol
Indian is synonymous with Native American now-a-days
 
8:54 PM
Yeah, I was confused till he said "my people"
 
@copy rlemon is an indian though
 
East Indians and West Indians.
 
you have indian blood?
 
@rlemon That's right, but it's confusing
 
Is this a Java Indian Room? :P
 
8:55 PM
@FlorianMargaine i'm pure bread native american.
 
kill the guy with fire
 
@AkyJoe no, it's the IndianScript room. asshole.
 
:-D
 
8:55 PM
@RyanKinal it all makes sense when Europe is the center ;)
well, when France is the center.
 
I know :-P
 
France, the center of all debates :P
 
which means, that yes, we're the center of the world.
 
@rlemon Flattering!
 
> The room title is Javascript, which only implies we all have some interest in the language. That does not strictly limit the topic of conversation to Javascript, and often it is not about Javascript. Please do not inturrupt and complain about this, if you have a comment about the language toss it in and if someone is interested they will stop and help.
 
@rlemon Good addition
 
destructuring parameters, didn't know that
 
o_O
I fail hard at regex today.
 
What is that?
 
Reading that EMCAScript 6 article, interesting
 
Oh, oh, I knew that!
Saw it in a video earlier
 

« first day (788 days earlier)      last day (4159 days later) »