« first day (1299 days earlier)      last day (3655 days later) » 

12:00 AM
My fault. Off to flog myself
!!awsm Greetings, gentlemen, how art thee?
 
@SomeKittensUx2666 Grtngs, gntlmn, h art th?
 
woooooo
booooo
looks better not full screen
there we go.
should be all fixed up ish
lags like shit
 
It's almost in sync with my bouncing leg
 
12:29 AM
I am trying to find something when I can establish an bidirectional data stream to a flash app
I cant find the right keywords
I was thinking of flash-selenium but I am not sure if that is the cleanest way to do it, any input?
 
I have no idea what you are talking about but are you talking about flash sockets?
 
I am playing around with an AI bot and want to read and write to acitivity in a flash object
 
Yep that would be a bidirectional data stream.
 
the two keywords I needed "flash socket"
 
12:46 AM
morning
 
@JosephPersie Those are the two works I gave you right?
 
1:00 AM
Just set my Careers 2.0 profile to 'actively searching'
I've had it for ~2 years and no views
 
can anyone see anything wrong at first glance with this? place_chip is a function that accepts column
document.getElementById('s' + r + c).addEventListener('click', function() {
place_chip(c);
});
it's in a JS file included just before </body>
and r and c come from for loops
 
@SomeKittensUx2666: zero views? :(
I even have 1 view :p
 
er, three
 
yeah, I have basically nothing
 
1:15 AM
@OneKitten can you even legally work
 
@SomeKittensUx2666 hehe I have 10
noice
 
@Mosho: who's onekitten
very legal
 
@Qantas94Heavy this little annoying kid
he was here a second ago
 
user652649
1:46 AM
@rlemon get more high fiber foods!
 
2:05 AM
hello everyone
 
2:33 AM
@rlemon aren't you special
 
my mom always said so
 
I'm at a Node.js meetup right now - half an hour in and pretty much all the guy's done is talk about the products StubHub has made
 
2:54 AM
@FlorianMargaine Why .connectAsync here? github.com/Ralt/greenshore/blob/master/entities/…
 
 
1 hour later…
3:57 AM
@bekicot 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.
 
4:24 AM
 
javascript is one word..
 
4:39 AM
omg silicon valley is hilarious
 
vs7
4:52 AM
Hi

I want to use ajax for cross region using JavaScript ...

I already used JsonP but its not gonna work as
--one domain privacy policy not allowed to load the external script so jsonp is fail

Please suggest me another alternative ...
 
5:10 AM
hello
maybe it's not a js-only topic, but I'm thinking of storing json in a mysql db in order to define the list of the users can see a post
what do you think about this, guys?
 
I'd suggest not
 
what else could I use instead?
 
Actually, why not just store it as normal tables and columns?
 
maybe that would be better
I'm just trying to figure out the best way :D
 
If you're using mysql use it like it should be.
 
5:18 AM
wouldnt it be a problem at the performance?
 
6:15 AM
@DrKaoliN 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.
 
vs7
$(".myclenderclick").click(function(e){
		e.preventDefault();
		console.log($(this).data('href')+"My Clicked data ");
		window.location.href="http://domaineg.com";
	});
i have created this event but its not stop my anchor tag redirection
i want to disable anchor tag href='' and want to redirect to some custom URL
 
6:35 AM
woot
You want to change the href on the click on the link of it parent?
> Ho okay, a link too google, I click it. Woot? youpr*n???? :O
 
vs7
6:52 AM
@SteamFire I want my visitor to go on my custom link which i statically provide in window.loacation when then click on link which consist my ".myclenderclick" class
 
@user3545779 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.
 
i have a query about ajax!
can anyone help me out
 
@user3545779 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.
@Qantas94Heavy @user3545779 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. (source)
 
7:09 AM
satyam??
 
@Satyam 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.
 
hey satyam
u there?
 
hi @354577 yes
i m here
 
see.. there will be a server (php script)
2 users will send there request to the server.. through ajax request
 
good morning one and all
 
7:13 AM
ok
 
the server will catch the values and start processing
and the results will be send back to the 2 users...
 
@DrogoNevets -- Shh! Don't you know the use of a careless adjective can change the weather for a week?
 
this is a typical working on Ajax request and response right?
 
yes
 
ohk... if assume that those 2 users are #id=1 and #id=2
but what if i want more pairs of users accessing the same server..
llike.. #id=50 and #id=51
is it capable of handling it??
at the same time??
or i need to change the logic or mechanism?
 
7:17 AM
@JeremyJStarcher :| huh? (sorry dyslexic, never did figure out what an adjective is, or verb, noun, etc, etc)
 
@DrogoNevets -- It's OK -- just a reference out of a old children's book. According to legend, saying "good morning" was a sure way to make sure that you had bad weather. ;)
 
it is possible but very difficult task and time taken
 
weather here is ok, and thus far my morning is brilliant!
 
ohhhkk
 
@AdnanGhaffar 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.
 
7:21 AM
Hi @Cap
I need your help WebElement tooltip = driver
.findElement(By
.xpath("//*[@class='gm-style-iw']//a"));
JavascriptExecutor executor = (JavascriptExecutor) driver;
String toolString = (String) executor.executeScript("return $(arguments[0]).innerHTML;",tooltip);//
I'm getting no element.. but element is exist.
 
that doesnt look like JS
:P
@AdnanGhaffar try $(arguments)[0]
 
or $(arguments).html()
but those are bold guesses without context...
 
or strictly $(arguments).eq(0).html()
@dystroy agreed
 
return document.getByXpath('//*[@class='gm-style-iw']//a').innerHTML;
that looks JS :P
How to execute JS by Xpath?
 
@AdnanGhaffar that line isnt in there
also please formatt code
!!format
 
7:27 AM
Format your code - hit Ctrl+K before sending and see the faq
 
return document.getByXpath('//*[@class='gm-style-iw']//a').innerHTML;
I did and thanks for sharing..
 
hi all good morning
 
Morning ! but here noon :)
 
@Satyam g'day
 
Good day everyone!
If anyone used yeoman and particularly angular-generator, then Q regarding whether is there any similar plugin, but that allows to make more module structure, rather then controller structure?
 
7:36 AM
@SomeKittensUx2666 how else are you going to connect to postgres?
 
@ThangChung 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.
 
@Zirak was it when I briefly went to elementaryOS? or freeBSD? nowadays I just run ubuntu + awesome and don't care much. Emacs does all the work for me.
 
hoy @DrogoNevets
 
Nevermind seems the talk goes for a year now github.com/yeoman/generator-angular/issues/109
 
@SteamFire took your time! hows tricks?
 
7:46 AM
tricks well :)
 
@HwaSooCho 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.
@user3586251 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.
 
hi guys are opinionated questions allowed here?
 
vs7
       $("body").on('click','.myclenderclick',function(e){
		e.preventDefault();
		mycustomlink=$(this).data('href');
		console.log(mycustomlink);
		window.location.href=mycustomlink;
	});
its printing the url but not load
the page
and redirect to default anchor href=''
can anybody help me out from this ?
 
have u tried just window.location = ""
 
vs7
@HwaSooCho yes same result
 
7:53 AM
Good morning, does someone have any idea how do I change focus to another input if user press "space"?
 
vs7
going to default href link
 
It's First Name, Last Name inputs
 
what about document.location
 
@Vasif 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.
 
@SteamFire awesome!
 
7:55 AM
@FlorianMargaine @BenjaminGruenbaum In Petka's article on Optimization killers, I don't get what are "Functions that contain a compound let assignment". Can you explain that to me ?
 
@DrogoNevets I'm a bit hungry...
haha
 
vs7
@HwaSooCho let me try
 
@LucasB is this vanilla js or jquery or quite what?
@SteamFire bacon sarnie! promise you its the way forward!
 
@DrogoNevets jquery
 
vs7
@HwaSooCho not working
 
7:58 AM
you do it like that!
 
vs7
update_calander_ulr();
	setInterval(function(){
		update_calander_ulr();
	},10000);

	function update_calander_ulr(){
		$('.myclenderclick').each(function(){
			new_ulr = $(this).data('href');
			$(this).attr('href',new_ulr);
		});
	}
i need to use that but its wrong practice
it will effect browser
 
@DrogoNevets wow, impressive. Really appreciate Drogo, I'll study the code
 
@DrogoNevets i've nothing to eat... Normally someone come in the enterprise to sell pastry or sandwiches. Every day but wednesday... :(
 
@DrogoNevets pretty straight actually, works nice. Thank you
 
@SteamFire there a snack van anywhere nearby? go for a short walk?
 
8:00 AM
@dystroy -- I'm puzzled over that 'compound let statement' as well.. googling the phrase now.
 
@DrogoNevets Nothing but a poultry van (but it's about 5 min walk and it's raining)
not so close...
 
@SteamFire distance isnt an issue, the rain is, do they have a phone number?
 
vs7
@DrogoNevets it still have space's in last
 
@DrogoNevets haha no, they don't move
 
vs7
you need to trim the field text
 
8:02 AM
@JeremyJStarcher Just in case I tested, the following line doesn't prevent a function from being optimized :
let a = 3+2;
 
Hey @Loktar I have something for you to do in JavaScript : 37.media.tumblr.com/6536b56768b9b890933543aaf6b610a3/…
 
@vs7 yes....the questions was "how do i move to last name when user presses space in first name" i have answered that question
 
vs7
cool
 
if they want anything more, 1) they can probably figure it out, 2) they should ask for help doing it
 
Give this page a look:

http://javascript.crockford.com/code.html

And see what he calls compound statements.
 
8:03 AM
@SteamFire what about delivery though?
completely off topic....anyone here any good with wood work?
 
@JeremyJStarcher I'm not sure that makes it clear. Do you see what kind of let assignement wouldn't be optimizable ?
 
From the way I read it:

function myTest() {

  {
     //inner block
     let a = 1;
     let b = 2;
  }

}
 
@JeremyJStarcher That's it
[disabled optimization for fun, reason: ScopedBlock]
("fun" is the name of my function... and yes the inner block is removed when I use var)
 
@dystroy Can I ask how you're testing that?
 
I have this "optimv8.js" file (mostly taken from petka's article) :
// see : github.com/petkaantonov/bluebird/wiki/Optimization-killers
// use it : node --trace_opt --trace_deopt --harmony --allow-natives-syntax optmv8.js

"use strict"

//Function that contains the pattern to be inspected (using with statement)
function fun() {
	{
     var a = 1;
     var b = 2;
    }
}

function printStatus(fn) {
    switch(%GetOptimizationStatus(fn)) {
        case 1: console.log("Function is optimized"); break;
        case 2: console.log("Function is not optimized"); break;
Example output :
dys@dys-ThinkPad-W510:~/dev/node$ node --trace_opt --trace_deopt --harmony --allow-natives-syntax optmv8.js
[deoptimize context: f2446f14679]
[disabled optimization for fun, reason: ScopedBlock]
Function is not optimized
dys@dys-ThinkPad-W510:~/dev/node$ node --trace_opt --trace_deopt --harmony --allow-natives-syntax optmv8.js
[deoptimize context: 1de278f14679]
[optimizing: fun / 1de278fc9729 - took 0.053, 0.075, 0.000 ms]
Function is optimized
 
8:13 AM
Can someone improve this for me:
_.chain(userObjects)
 .keys()
 .filter(function (key) {
     return !_.isNull(userObjects[key]);
 })
 .map(function (key) {
     return key.toLowerCase();
 })
 .value()
 
had happen to anyone yesterday my code was running fine but when I open it today it was gaving me a {Uncaught Error: Syntax error, unrecognized expression: .}
 
@Hamza.Ameer no exorcist here
 
@Hamza.Ameer - I blame it on cosmic rays and little gnomes shifting bits around as I sleep.
 
@JeremyJStarcher For cosmic rays you should protect your computer with gold sheets like this :
 
did anyone atlest have this error in jqueryy?
great idea @dystroy.
 
8:19 AM
For nodejs, you can always run it with --no_gnome but I have no idea for jqueryy
 
i hate designers! "i want this to be hidden when i click this"
so i do this, this is wrong
 
@Hamza.Ameer That error would have come with a line number -- you'll have to check that line. If it is an AJAX response, you'll have to check your network tab and see what was sent back.

Beyond that, can't help. My mind-reading satellite is off-line.
 
"oh all you have to do to hide it is give it a class of 'x'"
thats not what he said, to hide something in angular you use ng-show (or ng-hide) i dont know whats happening with the css! argh!
 
what's wrong with hiding a part when clicking something ?
 
/rant
 
8:20 AM
thank you dont have of to on it right now @JeremyJStarcher
 
@KarelG nothing, its that he didnt want me to hide it, he wanted me to toggle a class on click, but this is not what he said
 
All of the designers I work with are also coders, which makes it nice. We have a language we are semi-fluent in, at any rate.
 
@FlorianMargaine of course I know let, I was just looking for the "compound" thing preventing optimization
 
oh, my bad
 
8:26 AM
never heard of let ... really
 
@KarelG It's ES6 and I don't like it
but it might look saner for most developers
 
@KarelG let is nice if you're able to stick with the latest and greatest of everything except IE. You get const at the same time.
 
@dystroy why don't you like it ?
 
how can someone stop bots spamming a form without using captcha's?
 
If you're form isn't too popular, honey pots can be quite effective.
 
8:33 AM
@DrogoNevets bots are better than me at solving captchas anyway...
The usual solution is to ask a question very specific to your site
 
we get around 2.3-2.5million hits a day on this particular form....
we dont want any extra fields/steps
 
@DrogoNevets Thats the beauty of Honey Pots -- they aren't. They are fake fields, like 'email' that a bot fills in, but normal users don't ever see. Then your email field is called something like "nssj75"
 
You could also use specific tricks, for example check server side the form is submitted at least 200 ms after it was requested by the same ip and insert a random token in the form that you check
 
@user3132179 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.
 
8:38 AM
@user3132179 Hi
 
@dystroy you don't have those.
In your code
 
@BenjaminGruenbaum for sure, I don't even see a reason for me to use let, but I was curious
(note : Jeremy answered there)
 
I'm not sure that's what petka meant there, but I guess that works.
@phenomnomnominal still looking?
 
@BenjaminGruenbaum nah, got it a bit better
 
8:47 AM
@dystroy I like let -- means you don't have to make closures to get local loop variables. It is far cleaner coding all the way around.
 
But hit me if you have something :P
 
@JeremyJStarcher we're look into it, what is the set up do you know? ie css display: none? opacity, positon....etc, etc
 
@DrogoNevets Oh, I don't use any myself -- but I am aware of them. I'd google `form honeypot` and see what turns up.
 
@JeremyJStarcher I don't see what problem it solves.
 
for (let i=0; i<3; i++) {
		let j = i;
		setTimeout(function(){ console.log(j) }, 1000);
	}
 
8:49 AM
Other than the fact it doesn't allow silly stuff like var a; var a = 15; var a = 20
 
it's a little cleaner than using a closure, so I'd say Jeremy is rather right on that one
 
Generator.range(3).forEach(i => setTimeout(() => console.log(i),1000))
 
@JeremyJStarcher already am, was just hoping you/someone had experience to leech
 
Shorter and cleaner :P
 
After using local scope in `C#`, I've learned to appreciate having local scope -- I don't have to hoist my variables to the top of the function.

I never really saw the point until I get used to something better.
 
8:51 AM
@BenjaminGruenbaum well... yes
 
Generator.range(3).map((i) => Promise.delay(1000).return(i).bind(console).then(console.log))
Also ok
 
@Qantas94Heavy Why didn't you vote ?
 
@dystroy: long ago, old flag
"You flagged this question for closure Oct 18 '13 at 23:06"
 
9:04 AM
I just came from a small meeting. The chief asked if some1 would take a web developing project of a company X, to review their website.
so i went online to check it and noticed this in CSS
div, h1, h2, h3, h4, h5, h6, p, pre, code, {
    display: block;
}
 
@KarelG reset.css
not an unreasonable practice
 
@KarelG Yup, reset.
 
but it's not from reset.css But from their custom CSS, 2000+ LOC page
i was like. " not me "
 
@connersz 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.
 
@KarelG maybe the have jus tput it into 1 file?
 
9:22 AM
magical storage scheme :
0
Q: virtual pages using PHP only?

user3592614I am working on a project that I need to let users to create pages on my server. however, I do not want to let users clutter my mysql database by storing the stuff in there so I cannot use mysql database for creating the pages. I did research this topic and there seem to be a some sort of a plug...

Are there magical WP plugins as for jQuery ?
 
0
Q: Using Mongoose promises to do find and update

RobertoI'm trying to using the Mongoose Promises to have a cleaner code (see nested functions). Specifically, I'm trying to build something like this: Model.findOne({_id: req.params.id, client: req.credentials.clientId}).exec() .then(function(resource){ if (!resource) { throw new resti...

 
whilst we are tlaking of WP, is there a plugin that makes it use bootstrap and default bootstrap themes?
 
@DanielLe 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.
 
new closing reason, please help :
0
Q: javascript only working on codepen

Delbert JohnsonI have a CSS3 javascript clock that will only run on codepen but not on jsfiddle or my local computer is there something wrong with the code? Here is the actual JavaScript but you would have to look at the sites to see the full code. function clock() { var t = moment(), a = t.minutes() * 6,...

 
@cj0809 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.
 
9:50 AM
silence is golden
 
vs7
2
Q: Cross Origin Ajax using JavaScript without JSONP

vs7I want to use ajax for cross origin using JavaScript ... I already used JsonP but its not gonna work, <script href="mydomain.com/main.js?dataPass=1"></script> --one of the domain privacy policy not allowed to load the external script (like Facebook do) so jsonp is fail Please suggest me an...

 
How was this upvoted ?
Just search for CORS, Same Origin Policy, ajax, and so on
 
Google website not up today? — Neil 11 secs ago
 
10:05 AM
Can someone help me roll back all of their suggested edits?
 
flag him
 
I should make a rollback-helper
 
what's the name already of our resident rollback-helper/mod ?
oh yes
 
@Firzen 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.
 
@ThiefMaster A user should be severely reprimanded : stackoverflow.com/users/2862205/…
 
10:16 AM
@cieszynka 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.
 
In atom.io build instructions, I see that :
npm config set python /usr/bin/python2 -g to ensure that gyp uses Python 2
I'm afraid. Should I ?
This doesn't look clean at all
 
10:30 AM
guys, I'm trying to script on my own a function I need here
have a question ;3
I have two forms, first name and last name, I want to show only one of them to the client that is registering, so the form won't be long and boring
not two forms, two input text
so I'm doing this: I'm asking for the full name on the first name field, and setting last name as display:none
then I do a javascript function that get's the first name input value, splits it into the first word and the rest of the words, and assign the value:

first word = first name
rest of the words = last name
so, after lots of googling I'm halfway through
var splitfirstname = parseInt(("#firstname").split(' ')[0], 10);

$("#firstname").onblur(function() {
$("#firstname").val($("#lastname").val());
return true
});
 
@LucasB no no no
so the onblur function is fine
the rest isnt quite right
 
those [0], 10 are vectors right?
 
bare with ill show you why
 
I was thinking of running this code on .submit instead of .onblur
 
@LucasB either or works, but the actual split code you have is somewhat wrong too
 
10:39 AM
I was using .onblur for testing, but it would be weird if the last name of the guy disappears when he changes input
 
have a look at that, do you understand what i am doing there?
 
I'm reading about .substr
so, for var = firstname
you go from the very first letter (0), until it finds a space, right?
var firstname = from the first letter to space
var otherNames = from space to the full lenght of var name
real clever, I would have never thought of that!
 
Hi can anyone please tell me why the value is not comming within the multi-select model when i click the button
 
@AlfredBez 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.
 
any RegExp experts here ?
 
10:54 AM
hey @DrogoNevets I really appreciate your help man, thanks!
 
i cannot figure a good regex to get data between / ? while there are multiple '/' in the URL
fe www.foo.com/bar/doodle/444?nofuss=1&nada=111 <-- need 444
 
@KarelG: shouldn't be difficult
 
i was going to use lookbehind ...
 
@KarelG
!!> "www.foo.com/bar/doodle/444?nofuss=1&nada=111".match(/\/([^\/\?]*)(\?|$)/)[1]
 
@dystroy "444"
 

« first day (1299 days earlier)      last day (3655 days later) »