« first day (1283 days earlier)      last day (3668 days later) » 

8:00 PM
what's the latin word for espionage?
 
@RUJordan I believe it's 'Diplomacy'
 
Burn.
 
0
Q: How to abort JavaScript async functions?

FabisFor example, you have a Web Music Player app. When a user clicks on the play button, a function fires, looking for the MP3 data, setting up the player etc. etc., but then the user changes his mind and clicks play on another track. Is there a way to just cancel the previous function completely? I ...

 
lol
Google tells me it's Pompeius but can anybody confirm that accuracy?
 
let me fire up google
 
8:03 PM
Array.prototype.toGen = function(){
	return function*(arr) {
		for(var i=0;i<arr.length;i++){
			yield arr[i];
		}
	}(this)
};

function *fizz(){
	while(true) yield * ['','','Fizz'].toGen();
}

function *buzz(){
	while(true) yield * ['','','','','Buzz'].toGen();

}

function fizzBuzz(){
	f = fizz();
	b = buzz();
	for(var i = 1; i <= 100; i++)
		console.log((f.next().value + b.next().value) || i);

}

fizzBuzz();
 
@OctavianDamiean You're needed by @RUJordan; see above.
 
Octavian knows Latin?
 
Correct
 
hot damn
multilingual like a boss
 
@SomeGuy did u came across this ibtimes.co.uk/…
 
8:05 PM
aw validation
 
@AbhishekHingnikar Uh, no
 
:-/, thats a good example of career mistakes !
 
var repeat = function*(arr) { while(true) for(var i = 0; i < arr.length; i++) yield arr[i]; }

var f = repeat(['','','Fizz']), b = repeat(['','','','','Buzz'])

for(var i = 1; i <= 100; i++)
    console.log((f.next().value + b.next().value) || i);
Slightly better
 
Good afternoon all, I was just wondering if someone had a second to discuss ideas about the direction of development of this project.
 
!!welcome @user1522901
 
8:07 PM
nltk.org/book/ch01.html <- good resource [ you can try to use node::natural but its not even close to nltk]
 
@@user1522901 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.
 
@user1522901 Talk to your users, code based on the insights they give you.
 
@SomeKittensUx2666 lol.
 
Talk to users -> solve their problems -> sleep -> repeat.
 
well the users like it but i don't think they have the correct technical skills to properly answer my questions, which is why i came here
 
8:08 PM
@user1522901 He was making a joke -_-
 
and i don't know how to properly ask this question without getting downvotes and such
 
@BenjaminGruenbaum There was a joke, but I'm serious about getting user feedback
 
@CapricaSix Don't be annoying, drop the @, nobody likes a double-ping.
 
The NLTK book goes from too normal to toooooooooo fucking crazy
 
8:09 PM
@user1522901 ask here
 
@copy Have you visited the graveyard in Kryta?
Katcha Turin
1248-1270 AE
Experimental inventor
Went out with a bang
I love this game
 
To be honest, I've only been playing WvW
 
okay, i have a research participant database im working on. I use way too much jquery and I'm wondering if there is a better way to approach this (angularJS etc)
 
@Zirak played much?
 
Hardly played GW2, mostly Tera
 
8:10 PM
@user1522901 AngularJS is very nice if you want a lot of user interaction/data work on the frontend.
 
But I decided I'd do it today. Love it.
 
the project uses PHP/MYSQL and JS/jquery.ajax
 
@user1522901 it's good that you understand there is a problem with "too much jQuery". Now, what do you think the issue is?
 
@Lightman 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.
 
Like, the fundamental issue that makes your amount of jQuery bad? Does it lack structure? Does it have too much global state? What's the issue that you're running into with your current approach?
 
8:11 PM
hi @copy
 
the coordinators have to update participant information, whether it be eligibility, contact, family members
so LOTS of crud
 
@BadgerGirl Hi
 
@user1522901 that explained the project a bit more, but did not answer my question :)
 
sorry still writing one sec
 
Hi guys, i was wondering if some one can help me with creating a radio buttons using javascript. I m having a problem while setting the label or text for radio button. thanks
 
8:12 PM
Drat. Just realized I've been incredibly stupid with Angular.
 
Frameworks and libraries should not be your first intuition by the way. They're mainly great for prototyping, or after you have a very good understanding of the issue you're facing. I would not start a new production project with a framework.
@SomeKittensUx2666 what is it?
 
Too many people say to use jQuery.
"I want to make a game but I can't understand X"
"Use jQuery"
 
@Lugia101101 jQuery makes development easier.
 
Prefilling Values problem: AJAX request gets DB results for this form, copies to DOM. jQuery fills those inputs with DOM object if new object !== dom object then update etc.

Do you think think that with a participant database containing over 40k participants and their study relationships should be managed this way?
 
@Lugia101101 Anyone who says otherwise usually never built a front facing production app. That doesn't mean you should always use it, but it's damn useful.
 
8:14 PM
It may make it easier in one respect but if you deal with everything in pure JS then eventually you ovecome it.
 
"I want to make a canvas library"
"Use jquery"
 
It's useful, I'm not saying otherwise.
 
Use mootools
 
@Lugia101101 overcome what? You don't want to overcome stuff, you want to make your life as easy as possible.
 
But depending on what you're doing it can be bad for the user.
 
8:15 PM
@user1522901 well, how does jQuery filling the DOM look like?
 
@Lugia101101 how so?
 
@ben too vulnerable
 
is there a jQuery method which is more than a couple lines of vanilla JS?
 
Anyone willing to help with radio buttons using javascript ?
 
8:15 PM
Just assumed it wouldn't work the new way.
 
@SomeKittensUx2666 lol, I did that once.
 
@BenjaminGruenbaum too vulnerable
 
Well it can be slow when you're using it too much.
 
@user1522901 how so?
 
The only think I like about jQuery is the cross browser compatibility. Otherwise, once you know how JS DOM manipulation works, it's basically redundant in your eyes.
 
8:16 PM
@CesarDV 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.
 
@RUJordan Much agreed.
 
@Lugia101101 it's usually faster than what people do in native dom because it uses best practices like fragments internally, and doesn't actually add anything to the DOM until it needs to.
 
@BenjaminGruenbaum Yep, just had that moment of enlightenment
 
@SomeKittensUx2666 :D
 
@BenjaminGruenbaum its an exact map of tabular data requested from ajax
 
8:16 PM
@BenjaminGruenbaum Fair point.
 
@user1522901 how does jQuery find the element? why is it vulnerable the way it's currently implemented?
 
@SomeKittensUx2666 I don't get it :X
 
@BenjaminGruenbaum I believe I'm making my job harder than it should be, its turning more inline than universal in this manner. I use no framework currently (no zend or cakephp)
 
okay enough of insane indian friends for today.
 
or MVC as previously stated
 
8:18 PM
@Mosho dude is passed by reference there, so I can modify the dude object directly, instead of the array
 
@user1522901 Frameworks are not silver bullets, people tend to forget that. The last thing you need now is a framework. You need to understand what's the source of your problems.
@user1522901 shoving a framework on top of your code will not accomplish much in the long run, it'll make development shorter in the short term, but it won't always help you in the long run. That applies to both client and serverside development.
Go to the PHP room, ask them if they like frameworks or CakePHP.
 
@BenjaminGruenbaum my issue is less of a problem at the moment and more of a did I do this correctly and efficiently
 
I would rather use my own custom framework but this is JS not PHP talk!! haha
 
@SomeKittensUx2666 well, of course :X isn't that how it would work without angular as well?
 
8:20 PM
@Pepper 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.
 
@BenjaminGruenbaum would you use JS and jQuery for this type of project or am I just being rediculous
 
@user1522901 The most important thing in client side development IMO is "separated presentation" forming separation of concerns between view data and application state. You have to do that. The second most important thing is to eliminate global state, with the fury of a thousand burning suns.
 
@Mosho Yes, I just didn't realize it
 
@BenjaminGruenbaum so ajax response to dom is a bad idea?
 
@user1522901 if you have selectors - those are global state. If you're listening to global events on elements you did not get as parameters in functions - those are global state. If you're querying your DOM (presentation layer) for business information - that's a breach of separation of concerns.
@user1522901 an AJAX response, and updating the DOM based on it is not a bad idea, it's pretty much the only way to update the DOM without refreshing the page if you don't include persistent connections.
 
8:22 PM
What do you think?
-10
Q: Can we expand which questions are on-topic?

bjb568 I am making a webpage, and need to flog the bar. I tried using foo(), but I got "BazError: You suck". var lololo = 42; for (i suck in foo()) { i =+ eval('"I\'m doin it wrong"'); } What did I do wrong? Can we have questions that aren't all clones of the above specific debugging que...

Is it crap like the rest of my ideas? It probably is :(
 
@BenjaminGruenbaum kudos! very helpful
 
Please downvote my post theroly :(
 
Maybe making the jquery more efficient is my problem, it adds the most LOC to my project by far, everything can be done in a few lines whereas jQuery takes it to a new level
 
@user1522901 you do need to think about your architecture in your app.
@user1522901 did you profile your application in a real life scenario and determined jQuery is the problem? Because that might be the case but I would not drop jQuery unless I had a reason to once it's included.
 
user1596138
 
8:25 PM
I do not use it in several (most) of my projects to begin with, but refactoring it out is more costly than not doing it. Don't rule out jQuery wihtout a reason.
@bjb568 you asked that in a very offensive way imo.
 
user1596138
Must have volume on lmao
 
@Benjamin Offensive?! Wat?
 
@BenjaminGruenbaum it works fine from user end, no complaints so far and don't expect there to be any because there is no error in what it does. I just don't know if such a big database should be handling CRUD like that
 
@bjb568 the example post.
@user1522901 40K lines is a tiny database. Like, really really tiny.
 
well thats just the participants
 
8:26 PM
Databases are built to handle millions if not billions of rows.
 
@Benjamin Oh. How? for (i suck in foo)? I was insulting myself. What I can't do that? Fine. Offensive-flag and downvote, please.
 
@bjb568 neither, just telling you what I think.
 
> Ok, it seems you guys lack imagination of what an on-topic question could be.
 
I have a rule against voting down people from this room :P
Except for Neal, he's special.
 
^ * 2 has an aggressive / condescending overtone.
 
8:27 PM
there are lots of things the participants link to internally to make it all work together
 
@user1522901 yes, those are JOINs :P I didn't mean tiny as an insult or anything. Didn't know people are sensitive about the size of their databases.
 
haha no i misspoke i understood what you meant
 
@Benjamin Uh… ok, then.
 
40k is truly nothing
 
To reiterate, a framework is something you should consider (in production of course) once you truly understand all the challenges you're facing with your app.
 
8:30 PM
@BenjaminGruenbaum so you believe i should keep on keeping on with jquery CRUD? and not switch to something like a JS framework?
 
would it make sense to attach label values when serializing a form? in order to make proper validation messages
 
@BenjaminGruenbaum thanks for your help!
 
@user1522901 if you find yourself repeating your code, you should re-factor those pieces into reusable components. Reusable components are usually fall under the category of design patterns, if you're unfamiliar with design patterns, now is a good time to pick up a good book about them. Other than that, learning about architecture is always good. Martin Fowler has a book on architecture I recommend if you feel like reading.
 
@BenjaminGruenbaum just wondering what u use for compiling c on fb
nothing else.
 
@AbhishekHingnikar clang
 
8:33 PM
@user1522901 Also you should get a real name and a sweet avatar
 
on Windows ?
 
Yes, a sweet avatar on Windows
 
@SomeKittensUx2666 Real Names are overrated haha
 
The most important thing is to understand the problems you're facing, and then considering (and knowing) your alternatives when tackling them.
clang.llvm.org/get_started.html#buildWindows @AbhishekHingnikar , you should really use google.
 
@BenjaminGruenbaum i know i can use it on windows
 
8:35 PM
@BenjaminGruenbaum "if it ain't broke don't fix it?"
 
i was just surprized you dont use the MS toolkit
 
@AbhishekHingnikar I use the MS toolkit when I compile things that need to work with MS APIs. I really don't care much tbh, I don't write a lot of C and C++11 now has good enough support on MS compilers.
@user1522901 not what I said, but sure.
 
@Griffin 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.
 
@CapricaSix thanks, just checking stuff out... :)
 
That is acceptable.
 
8:47 PM
un*
 
:P
 
!!s/ac/unac/
 
@SomeKittensUx2666 That is unacceptable. (source)
 
!!acceptable or unacceptable
 
@LorryMcPorry acceptable
 
8:49 PM
is @CapricaSix a bot or what? :D
 
!!a bot or not a bot
 
@bjb568 You iz in mindjail
 
@KissKoppány There you go.
 
@KissKoppány nope, just a fast typer
 
user3071008
8:56 PM
codewars.com says 'Failed to construct test fixture properly', does this mean my code is not working?
 
Help please
0
Q: Number of external requests when serving a resource

Benjamin GruenbaumSo, I have a web application that makes a lot of requests to the server for data. A project requirement is to have very fast server response times. The server is hosted on a cloud based platform. The app uses sessions to keep track of user authentication once they've logged in. Since it's hoste...

 
9:12 PM
!!learn kittenInterest '<>http://laserturtle.com/o/00006873.jpg'
 
@SomeKittensUx2666 Command kitteninterest learned
 
@SomeKittensUx2666 wouldn't "kittenterest" work better?
 
!!kitteninterest
 
!!info
 
@RUJordan I awoke on Mon, 21 Apr 2014 19:38:31 GMT (that's about 1 hour ago), got invoked 10 times, learned 201 commands
 
9:13 PM
Gahd. Me no can type.
!!kittenInterest
 
!!kittenInterest
 
Nice.
 
!!info
 
@KissKoppány I awoke on Mon, 21 Apr 2014 19:38:31 GMT (that's about 1 hour ago), got invoked 12 times, learned 201 commands
 
9:15 PM
0
Q: Storing Checked Radio buttons values in Jquery Array

hsakaI have a table in HTML with n number of rows with same sex radio buttons in 0th position of <td>. I want to store values of sex (either 1 or 0) in an array. Here is sample code for 3-rows. HTML Code: <table> <tr><td> Male <input type="radio" name="sex" value="0"/> Female <input type="radio" ...

 
!!CapricaSix
 
@KissKoppány That didn't make much sense. Use the !!/help command to learn more.
 
9:28 PM
hey
 
Hi
 
Any idea why this'd get a downvote? stackoverflow.com/a/13893250/1348195
 
does any one know how to stop queue loading ^?
 
It's been a long time since I got a muse to write
20 minutes in I have 3 pages and I just want to keep going.
I love it!
 
@MujtabaFathel 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:39 PM
@user3123545 use stop()
-6
Q: How to programming

user3558093You write the test , whose task is to find a link with a given address in Google search results . Assumptions: a) Number of output pages from 1 to n , the starting point of the test is page number 1 b ) Seeking link: is the page numbers from 1 to n or not found at all. c ) Available objects with ...

guys how to program
HOOWWWW
 
@RUJordan QUALITY QUESTION
 
CAPS LOCK
 
ehm
guys, a question, I'd like to see your idea
 
@RUJordan lol :P
Wouldn't files[file] be your filename? — RUJordan 33 secs ago
 
nltk.org/book/ch10.html .. god dang it.. the natural module in js feels inferior as hell now
 
9:46 PM
tomorrow I have a job interview but I dont feel like going, whats wrong with me? xD
 
@KissKoppány make a game out of it.
 
what do you mean?
 
@JoeSaad 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.
 
@BenjaminGruenbaum wat? xD It's true, no?
@KissKoppány have fun getting a job with that mentallity :P
Being lazy isn't "cool"
Being paid is cool :D
 
!!afk sleep
 
9:49 PM
@BenjaminGruenbaum so you actually sleep !
 
oh okay :)
 
Hard work pays off later. Laziness pays off now.
 
Heh.
 
10:11 PM
!!beerbros
 
Unite!
aww Ryan isn't online.
and I even wrote him a song
 
10:31 PM
I'm bored
 
clearly I am as well
@SomeKittensUx2666 watch this: youtube.com/…
 
Find the answer to stackoverflow.com/questions/23205884/… then both of you :P
 
I should be doing some work
got a few interfaces to write, a few bugs to fix.
trying to solve an issue that a lot of people think is hardware. I'm convinced it is a problem with the BBB's u-boot script
tl;dr device doesn't boot 1/20-30ish
SHUTDOWN -r triggers it as well.
some forum posts say it is an issue with the reset circuit and the rate of rise from the power supply.
 
@BenjaminGruenbaum You're thinking of storing the requested data in session?
(not totally sure how Azure cache works)
 
No, in a cache store. Think like redis.
 
10:36 PM
I guess I'm not sure of your problem. What's wrong with getting both at once? That you have to do extra work?
 
Feel like reinventing the wheel, most web apps I know use sessions.
 
@CapricaSix 201 commands...?
!!/help
 
@CesarDV Information on interacting with me can be found at this page
 
@rlemon You were having trouble with your graphics card? Maybe you can help me.
 
quick question: what does .io stand for?
 
10:43 PM
My computer just BSODed and now my graphics card seems to have vanished
 
@t1wc: It's actually a ccTLD - but it is pretty popular for any tech stuff nowadays
.io is the Internet country code top-level domain (ccTLD) for the British Indian Ocean Territory. Internationalized domain names may also be registered. Google currently treats .io as a generic top-level domain (gTLD) because "users and webmasters frequently see [the domain] more generic than country-targeted". .io domains are popular with new startup companies. IO is also used in IT as an abbreviation for input/output, which makes the .io domain useful for domain hacks. There is a trend to create .io domains for open source projects and free/open web services. References External l...
 
it's actually a country's TLD... but you know I/O is "hackery" looking so people made it popular
 
@ThiefMaster oh, thx
 
-5
Q: What is the size of the World Wide Web?

ssnWhat is the best and most recent estimate of the size of the World Wide Web? In 2008, Google reported that it had found 1 trillion unique URLs [1]. Is there any more recent estimate? [1] http://googleblog.blogspot.pt/2008/07/we-knew-web-was-big.html

 
> reopen (1)
sigh
 
10:46 PM
@KendallFrey I bought a new one :P
problem solved.
 
darn :P
 
it seemed to be constrained to watching flash videos and flash content
I tried disabling pepper-flash in chrome
no avail.
 
Mine crashed when trying to load YouTube
 
tried re-installing the drivers. nothing.
what card do you have?
 
Then it booted into 800x600
I was able to change back to native res, but I can't enable Aero or use my external monitor
I think it a GeForce 660M, but not sure how to verify
 
10:48 PM
mine would only. 1) disable on the video. and restart - leaving the video green screened and it was too frequent to even attempt to watch it
didn't happen on silverlight ;) netflix ran fine
only a handful of times did it BSOD, but it came back with my resolution fine
@KendallFrey Belarc Advisor
 
My issue is probably different
 
easiest way I know of
 
It should appear somewhere in the Device Manager, right?
 
maybe, Belarc is easy
 
my vote goes to opening the case and taking a peek
 
10:50 PM
I tried downloading the driver for the 660M, and the installation failed saying it couldn't find the device
I'm afraid it somehow got fried
 
maybe
it's not in device manager?
try to run dxdiag
 
Hit it with a rock
 
All I found was Video Controller (VGA compatible)
 
I would honestly just look at the physical card
 
10:53 PM
@PaulAndrew 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.
 
that's a pretty crappy resolution ;p
 
it's a laptop, shut up
brb opening it up
 
I've seen higher resolution watches...
 
@KendallFrey if it's a laptop you might be able to get the card name from the laptop's model
 
could anyone explain me why the height of the links in the menu when hovered is not getting animated? jsfiddle.net/VPCxq/1
 
11:09 PM
Works for me. Safari 6.1
 
@bjb568 I only see 2 frames
one for it appearing, another for it at normal height, and another of it disappearing
 
Looks different in Safari from Chrome and FF… What "frames" are you talking about?
 
transition frames
just, can you tell me a chrome fix?
if you know one
as you can see in the latest chrome it doesn't work
 
Well, I couldn't get in, but it's working fine now.
[x] add a second item to the troubleshooting guide: "Have you tried turning it off and on again... twice?"
 
Yay! I just reached my 50 close vote limit.
I'll do another 50 in 39:10.
(when UTC resets)
Or maybe I'll save it for the close vote party tomorrow.
 
11:41 PM
0
Q: CSS element transition height not working on chrome

t1wcI was trying to make some animations with transition on css, and all but the height of elements worked. I'm using chrome, and some people with other browsers like safari told me that it was working, even tho I need it to work on all major browsers, and I'm currently trying to find a fix for chrom...

halp
thx for the thumbs up
 
T'aint facebook.
 
+1
I mean I stared it xd
 
@KissKoppány not really a reason why you should have
 
or whats the word :D
I did because I want the others to see your questsion
 
this seems like a really simple thing that I've actually done before...
but can't find anything about it on the web after a quick search
 
11:47 PM
familiar
I know that feeling
 
If this was Facebook, instead of asking for +1, you'd ask for people to "thumb you". :P
One of the many reasons Facebook stinks.
 
That's why I liberated my main page from more than half of my facebook friends.
As in unsuscribing so i don't have to see their updates but they are still on my friends list.
 
@bjb568 upvote... is that better?
 
@t1wc Yes :P
@t1wc New answer, does it work?
 
11:57 PM
@bjb568 it does... but I need my height to be auto... it's using flexbox to work in my current page
 
@m59 check my (earlier) ping
 
I can work myself around that...
 
m59
@SomeKittensUx2666 oh yeah! I did! Their server was having some issues. I'm wondering how much work is available... It could be really cool.
 
@t1wc That's not possible. You might need to use JS.
Heh:
No need to downvote and then delete your answer, which didn't answer the question correctly. — TV. 2 mins ago
 
@bjb568 i can use scss
 
11:59 PM
@t1wc Would that work? I don't know much about it.
 

« first day (1283 days earlier)      last day (3668 days later) »