« first day (1122 days earlier)      last day (3809 days later) » 

11:02 AM
Simple example of what i mean @Neil
function parseName(_name) {
    var name = _name + ' is really ' + _name;
    return name;
}
This is one of my habbits
 
it's a bad habit
 
@FlorianMargaine no it's not
 
because for everyone else, using _ means that it's a private variable
so you're going to confuse everyone working on your code later
 
@FlorianMargaine That's there tough shit, It is basically a private variable anyway
 
it's not.
I'm just showing you why it's a bad idea, if you don't care about the maintainability of your code by peers, I personally don't care as long as I'm not working with you.
 
11:05 AM
@FlorianMargaine // _variableName == temp variable
done
 
that's no argument really, if you want to be stubborn, go with it.
 
@FlorianMargaine No ones code is the same
No one writes code the same
 
Of course it is, just look at the Linux kernel
Or any google project
 
there's a thing called "coding standard"
 
@FlorianMargaine If it's not private, tell me how you access it from outside the function..... 8please*
 
11:08 AM
yes I am new to mvcs
but I like ember too
but ember-data need improvement
 
@connor.js in this case, it's local, not private. Private is used in the sense that it's private to the object, not to the method.
 
cant get thing done with ember data
 
@FlorianMargaine If it's not private, tell me how you access it from outside the function..... 8please*
 
@connor.js I bought a mango but I have no idea how to eat it :(
 
Thanks, Internet
Thanks, old man who teaches people on the youtube how to cut mangos
 
lmao
 
@piscript 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.
 
Does anyone here use Ember at all?
 
@Raja 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.
 
11:39 AM
Hi
i have explain my scenorio in the following link
0
Q: positioning the table with in the div

RajaI have use the following code snippet to display the data in the html table with improve the loading time with large data. Code Snippet: <body onload="load();"> <div id="Grid" style="overflow:scroll; width:600px;height:300px; onscroll="handleScroll();"></div> <script type="t...

 
0
Q: i have ajax that is working fine in firefox but does ot produce any output in chrome

parth khatrihello everyone i put my ajax here and it is working fine in firefox but not working in google chrome help me if anyone know. itry but i am fail to work in google chrome.so if you have any solution so give me please it is very urgent for me <script type="text/javascript"> function action() { ...

 
Can you please look into this and provide suggestions to resolve the problem.
@Caprica ok Thank you for your information
 
12:01 PM
damn, typescript is getting more and more annoying
 
Sounds like Microsoft shall be blamed once again
 
it's just... incomplete.
a lot of things that I'm used to in C++ are missing
w/o sensible replacements, that is
 
@BartekBanachewicz maybe you should try vanilla ?
unless you have already discarded it for some reason :-)
 
@AbhishekHingnikar I like my static typing.
 
reply of my question
 
12:12 PM
@AbhishekHingnikar I don't like it TBH. All this mixup between objects and arrays, stuff like that... TypeScript acts like a buffer and softens the blow a bit.
@parthkhatri what
 
@BartekBanachewicz comon its just a different paradigm of programming it surely worth giving a shot, and javascript has its own jewel case
 
@AbhishekHingnikar wait what paradigm?
 
i add link that ajax is not fired in chrome see it and reply me if u know
 
JS is an imperative, dynamically typed language with prototype-based object system and a few FP traits.
 
JavaScript is quite unique though
 
12:14 PM
If I had a chance, I would use either purely functional statically typed language or inheritance-based statically typed imperative language.
@AbhishekHingnikar I wouldn't say so.
 
then i guess you should try to somehow merge emscripten to dom apis :-)
 
JavaScript is a bit broken, that's the only unique thing
 
@AbhishekHingnikar And you think I haven't tried because? :)
 
@SandeepChary 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.
 
@copy even that's not unique :)
Also I don't need DOM really.
 
12:15 PM
@BartekBanachewicz because you gave shot to typescript
 
@AbhishekHingnikar after I've dumped lua.vm.js-based prototype
 
@BartekBanachewicz Ouch
 
@copy The Broken javascript can never be fixed ,that i guess is the major uniqueness
 
Too bad there's no alternative really.
that's unique.
The monopoly on the pretty large coding segment.
No other language has such a monopoly.
And monopoly, thus lack of competition, is rather bad, and that has been proven through history.
 
Your alternatives are compile-to-javascript (Ruby and Haskell have that. Probably also Python), strict Linters (Closure Compiler can do some type-checking), Emscripten
 
12:20 PM
@copy I think that the only reasonable way to compile Haskell to javascript is Emscripten anyway. And that's far from perfect.
Also note how "alternatives to JS" is "compiling to JS"
 
I said alternatives to solve your problem, but yeah, I'm not even arguing
 
I mean sure, I can run a short Lua snippet with Lua.vm.js, but once you try pushing that further, it just gets unbearable, because you can't debug, function calling doesn't always work...
That's why I ended up with TS, at least for now.
So far it was acceptable and rather pleasant, I prolly need to dig into the language a bit more.
 
please reply me of my link
are you running this locally? I think Chrome is more restrictive with loading things locally. — Towa 40 mins ago
 
@parthkhatri dude, everyone has seen your terrible question already, don't need to mention it for the nth time
 
then what is the solution for it.?
 
12:29 PM
@parthkhatri if I or someone would know, we'd write it in the answers below your question, not here.
 
ok thank you
 
@BartekBanachewicz i feel your pain at times :-)
 
@parthkhatri also no one cares if it's urgent.
@AbhishekHingnikar pain about what exactly?
 
JavaScript :D
besides what are you actually trying to achieve ?
 
@AbhishekHingnikar I'm making a game
 
12:31 PM
i knw that but its my need i m asking for help
 
Salt and Pepper didn't help ?
and can you bear with C# ?
 
@AbhishekHingnikar what's painful in C#?
 
@Yunus 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.
 
@AbhishekHingnikar what's that? I think I've heard that name somewhere
 
Portable Native Client (Google Chrome's proposal)
 
12:33 PM
oh that.
that's chrome specific.
 
Did you try unity btw ?
 
I haven't
but obviously I know what it's about
Mostly about installing a plugin in the browser, which I dislike a lot.
 
Is there a way to get the value of a iput box if its inside a td and in td i have written like this <td ondblclick='live_update(this)'><input type="hidden" value="54" /></td>. How can i get the value inside the input box inside the function live_update()
 
@Yunus I see no text box.
 
Sorry. I mean inside the input box..
 
12:36 PM
which is hidden?
 
Yes
 
dunno, $(this).firstChild("input").value() or something
 
Lemme try that.. But I think that will not work..
 
I don't think it will work either, I don't know javascript.
 
$(...).firstChild is not a function
 
12:39 PM
@BartekBanachewicz frost.io/fwt
 
@AbhishekHingnikar hm, interesting
 
@Yunus well you dont need jQuery for this
this.getElementsByTagName("input")[0].value or this.children[0].value
 
Ok I will give that a try.. Thanks Abhishek..
I got that working like this $(this).find('input').val();
Thanks for your help..
 
@BartekBanachewicz ^ you have just created one more jQuery developer
(well contributed to..)
 
@AbhishekHingnikar so what?
 
12:53 PM
@AbhishekHingnikar s/developer/programmer
 
@AbhishekHingnikar Hi :)
 
jQuery is usually makes it easier to manipulate DOM than raw JS
 
@BartekBanachewicz stackoverflow.com/questions/2522784/… -- That's what
 
@BartekBanachewicz stay a few days in here and you would understand our pain :D
Btw anybody here knows LEX ?
 
@AbhishekHingnikar the fact that on SO is terrible is well known :P
 
12:55 PM
:-(
!!s/on SO/ /
 
@AbhishekHingnikar @AbhishekHingnikar the fact that javascript is terrible is well known :P (source)
 
I specifically said "tag:javascript"
and in general, most of the people there are like "give me teh codez"
also idiotically stupid questions about jQ getting like 1k upvotes
 
Hello Everyone
I need to create dynamic breadcrumbs. Any inputs?
 
@connor.js and this guy has 1.7k rep
 
@BartekBanachewicz have you seen the one about addition in jQuery ?
 
12:58 PM
@AbhishekHingnikar sure I did
In general it's a lot easier to get rep in or
which is kinda sad but yeah, w/e
 
#boldomatic Work for free or full price. Never for cheap. http://t.co/eId93z8H
Didn't someone mention a same theory recently here?
 
anybody knows about existance of lex ?
 
I've heard about it somewhere
 
Can anyone provide me inputs to create dynamic breadcrumbs using javaScript?
 
There's a plugin for that
 
1:00 PM
@NathanLee google, perhaps.
 
JQuery.php('include "header.php"').appendTo('body')
 
Awesome @BartekBanachewicz .. I should have know it before..
Jokes apart, but I really need some inputs.. - @BartekBanachewicz
 
lol
 
1:02 PM
here are some inputs
 
Thx a lot for such a wonderful representation.. I guess I need to explain things in a bit of detail. - @BartekBanachewicz
 
@NathanLee yeah, and when you're done, you should probably post it as Stack Overflow question
 
I cant, its very elaborate, so just wanted to make it short to get quick inputs
 
@NathanLee you got them; let that be a statement about "what does <<making it short>> give you when it comes to asking Qs about programming"
 
Anyways, here is my situation..

I am working on a XML based project, that uses JSP files for dynamically, so ideally, on every new page, I am creating static breadcrumbs, but there are instances, where the same pages would be called, but the breadcrumbs needs to be changed. So this is the situation for which I need Inputs to begin with. - @BartekBanachewicz
 
1:06 PM
Also I might need to state (again) I don't know a tiny thing about JS.
my english is broken today
 
<input type="hdmi" src="SAMSUNG-UE22F5410-Smart-22"/>
lmao
 
wow.. and I was trying to find a way to home from a traveller itself.. ;P - @BartekBanachewicz
 
@connor.js :D
 
Can any one suggest me on the below please??

I am working on a XML based project, that uses JSP files for dynamically, so ideally, on every new page, I am creating static breadcrumbs, but there are instances, where the same pages would be called, but the breadcrumbs needs to be changed. So this is the situation for which I need Inputs to begin with.
 
Let's push for making input type="hdmi" appear in HTML6
 
1:08 PM
@BartekBanachewicz Yeah..
or jQuery 11.0
 
@connor.js there was this HW platform that used JS-on-a-chip
 
If html and javascript can't, then jQuery can
 
BTW, what are your (JS folk) thoughts on ASM.js?
 
Hello , i wanted to ask, how i can make ul childs appear one by one ? I got loop where i select nth children and use animate on it. code looks like

var whichChild = 1 ;
while(whichChild <=5) //5 items in list
{
$("#services-wrapper ul li:nth-child("+whichChild+")").css('display', 'block'); //cuz animate dont work in display:none
$("#services-wrapper ul li:nth-child("+whichChild+")").animate({ opacity: 0 }, 0);
$("#services-wrapper ul li:nth-child("+whichChild+")").animate({ opacity: 1, left:"20.35%"}, 1000);
 
gosh, is this like the whole day?
this room needs
 
1:14 PM
well excuse me , it is quick question , i don't think that i should make topic about it
 
@Merkley why not?
also there are no "topics" on SO. There are questions
 
@BartekBanachewicz But you can have a question that is off-topic :S
 
@connor.js so there's one global topic
 
@BartekBanachewicz or you need to leave the room? :D
 
BTW why does for ... in return strings?
I was like whaaaat
 
1:17 PM
i guess that is kind of basic knowledge for working with animation effects. But as a beginner i don't know it yet.. And as we know, basic questions get voted down :p
 
@Merkley I don't see why basic questions should get voted down.
 
@BartekBanachewicz RTFM?
What else could it return?
 
@KendallFrey "M" being?
@KendallFrey dunno, actual object fields?
 
@BartekBanachewicz manual, MDN, something...
 
@BartekBanachewicz it returns the last statement of the last iteration.
 
1:19 PM
@KendallFrey no, I mean what's the "official manual" for JS
 
!!mdn for in
 
@BartekBanachewicz ok, i know that there is callback functions in jquery. But how i use that in loop structure ? Thats the main thing i would like to know
 
1:20 PM
> A for...in loop iterates over the properties of an object in an arbitrary order
> over the properties
> properties
Not property names.
So even docs are badly worded here.
 
{a:1,b:2} What are the properties of this object?
 
a = 1 and b = 2
 
a and b
 
eh, should just return a pair
 
white is not a property of my skin, color is a property of my skin, of which the value is white.
 
1:22 PM
Consider
for k,v in pairs(obj) do print(k,v) end
 
@BartekBanachewicz Because it's so hard to extract a value given a property.
 
@KendallFrey it's really not about "so hard" or "not hard"
 
It is to your mom.
2
 
I... ummm.. ok.
 
1:26 PM
@KendallFrey If I had a dollar for every time you mentioned some ones mom. :D
 
@mikedidthis Then maybe she could afford to pay me.
 
@mikedidthis you'd have a dollar? :P
 
1:39 PM
This question deserves some downvotes :
1
Q: Percent in CSS selector name

eminachWhat does this CSS selector mean? 50% { .. } Are there any references to this "trick"?

 
@Libu 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.
 
There's no way OP didn't know the context would make it obvious what it was.
 
Hi, anyone "Angular JS" guru here
?
 
@dystroy hm, this "keyframes" thingy sounds interesting
 
0
Q: Override $digest and $watch in Angular JS

LibuCan anyone suggest how do I create a service to over ride angular js default $watch and $digest loop? My requirement is to $watch a scope object with a listener and the listener function should have 4 parameters, @param1 - newObject, @param2 - oldObject, @param3 - Exact attribute which changed,...

 
1:44 PM
@BartekBanachewicz I would have $25 : chat.stackoverflow.com/search?q=mom&user=785745&room=17
 
anyway my loop creating functions doesn't work :/
 
@BartekBanachewicz link ?
 
    for (var unit in Units) {
        Ui.addButton(unit,
            (event) => {
                this.clickMode = Units[unit].prototype.getKind();
                console.log("switching to " + unit);
            });
    }
@dystroy short enough ^
It fills the table with last unit name only.
 
Normal
 
is the lambda compiled once or what
 
1:47 PM
Classic
 
It's because the loop has ended when the callbacks are called
 
for loop sucks.
 
you can embed the content of the loop in an immediately called function saving the value of unit
for (var unit in Units) {
      (function(unit){
        Ui.addButton(unit,
            (event) => {
                this.clickMode = Units[unit].prototype.getKind();
                console.log("switching to " + unit);
            });
       })(unit);
}
@BartekBanachewicz In the future we'll have let
 
@dystroy ES6?
 
The problem you have isn't really the loop, but the fact the scope of var is the function call and not the block
yes ES6
 
1:49 PM
Yeah I understand now
 
		var optionTexts1 = [],optionTexts2 = [],index = 0;
		jQuery(ele).each(function() {
			var t =jQuery(this);
			if(t.hasClass('firstset')) optionTexts1.push(t.height());
			if(t.hasClass('thdset'))  optionTexts1.push(t.height());
			if(t.hasClass('secset'))  optionTexts2.push(t.height());
			if(t.hasClass('frset'))  optionTexts2.push(t.height());
			index++;
		});

		alert(optionTexts1 + '-' +optionTexts2);

need to push 0 if class has not found in respective array, i tried above kindly help
 
I was grinding through your "proposed solution" and the code aligned so I think I get it
@dystroy oh gosh scope of this changes too
 
@BartekBanachewicz that's the context. Save it or bind.
 
@Bartek this is the dynamic scoping of js :)
 
@FlorianMargaine I've got to add that to my list of "Why I am not going to use Js if not forced to ever"
things like that shouldn't happen :/
 
1:58 PM
kindly help , i am stuck with this
 
@BartekBanachewicz It looks like you're an experienced coder. Learn JS a little more. Once you master it and you know what happens, you'll see it's fun and powerful.
 
@dystroy Thing is, you shouldn't be forced to "learn" what scope means in a language
That's my personal opinion.
 
I see you code in C++. Can you do that without knowing what are arrays and what happens when you increment their address ?
 
Also I guess we agree that let is simply missing right now, so it's not a good thing what's going on right now.
@dystroy yes. You use high-level library constructs instead.
(IOW this question is completely unrelated)
 
@BartekBanachewicz I don't need let. It will just be useful in a very small set of cases. It will mostly make the life easier for those who code without knowing the language (which is so bad as it's a very simple one).
 
2:04 PM
@dystroy JS isn't a simple language by any means.
 
helloooooo...
 
@BenjaminGruenbaum when was this?
 
kindly advice my question
 
learnt basics of lex and taught a teacher that he was always in a myth in 30 minuts ! damn am good !
 
Prelude> let units = ["a", "b", "c"]
Prelude> let cbs = map (\unit -> (\_ -> unit)) units
Prelude> map ($5) cbs
["a","b","c"]
@dystroy would you ever wonder what's the scope of the inner lambda here? ^
in JS, apparently, it's not that obvious
 
2:20 PM
@BenjaminGruenbaum , @Loktar you guys have seen mean.io
 
0
Q: Javascript notification banners not showing

ryantcarteri’m having problems debugging a problem that i think a theme is causing…i’ve managed to narrow it down to a problem with the theme by deactivating the theme and the bugs not there – hence I’ve narrowed it down. Anyway, any JS banners that would normally appear don’t seem to be functioning. It’s ...

 
don't u think login & signup pages being rendered using jade is kind of heavy ? I might be doing a premature optimization but something just feels wrong
 
@AbhishekHingnikar We already talked about it, MEAN is an Israeli project, I know some of the guys involved.
I don't like how opinionated it is.
It's a nice start.
 
@Neal last week
 
2:21 PM
i am using it for my project and so far i have rewritten it half
@BenjaminGruenbaum also since you are here , any advantages that azure gives when writing code with nodejs or is it like aws ?
 
Busy right now, sorry. Azure is nice - just check it out it's free.
 
posted on November 11, 2013 by Victor Rodriguez

Changing the Paradigm: Exoplanet Interview with Dr. Sara Seager Astronomers have now discovered one thousand extrasolar planets, reaching a milestone in modern astronomy. (See a recent Universe Today article on the subject.) While many have contributed to this achievement, Dr. Sara Seager of MIT has played a large role over the past two decades by contributing vastly to the field of exoplan

 
I take it no 1 here knows much about ember then?
 
posted on November 11, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} WOOP! We'll be releasing the new science-themed SMBC book on Black F

 
2:57 PM
I have a probably pretty stupid question
 
We know
@connor.js I built a thing or two with it but admittedly I'm not up to date with the newest ember stuff.
 
@Crowz speak out
 
0
Q: I wanna create my own game

ronI was looking for professionals to create me a game (small game) is this the right place to find ? i wanna start creating my first game so i can publish it at the Greenlight on Steam, What it Takes to do this project (Time,Funds) Feel free to help me or to offer me. Thank you, Ron.

 
I have something like this and someone says I should use "templates"
 
@Crowz so now you come to troll here, eh?
 
3:07 PM
@BartekBanachewicz nah I just know javascript even less than C++
 
@Crowz ...
 
I'm not entirely sure. Right now I am just making variables as HTML and doing div.HTML(that_variable);... someone said to use templates, looks like this handlebar.js shenanigan is what I want
 
3:22 PM
@Crowz well if you want client-side templates...
 
do I? Wouldn't jinja be server-side? I mean I kind of understand it from my flask app side
I basically have the javascript just dynamically change the client page when they do any action, and a generic template is changed around
 
q.q flash, chrome, and css.
Is there an alternative to display:none that chrome will let the swf inside of actually load?
 
how about position: absolute; left: -99999px;
 
I thought about that, I hate doing it because it's a hack :(
I have no idea if chrome will decide to forbid that rendering eventually either.
 
it's a pretty safe and clean hack though. I think it's gonna be a 'hack' no matter what you choose to do
maybe width and height set to 0px instead?
 
3:37 PM
Possibly.
 
position: absolute; visibility: hidden;
?
Maybe?
 
Oh, that might actually work.
Let me give it a spin.
woohoo!
 
@Incognito visiblity:hidden;
,
or perhaps -webkit-transform:scale(0.00000000000000001); /* hardware accelerated hiding */
 
I've been writing more and more stuff like Websockets and XHR and promises and JS->Flash interface code, I've been doing tons of client-side JS, but like... no visible flash. This is so strange to me.
 
@JanDvorak Oh yeah, and earlier on about angular.... I do like angular i was using it for about a month and loving, although i get a dirty feeling working with it, it was good, ember is just the one for me ;)
 
3:44 PM
@Incognito so a shim
 
Flash is going the way of the dinosaur
 
@Neil gone.....
 
if I were a flash programmer, I'd try to pick up on a bit of javascript
 
@AbhishekHingnikar Sometimes, other times it's like 'hey our game needs to do RESTful API and all these other strange things'
 
Flash is only really used for videos now
 
3:45 PM
I started learning flash and realized wait this is fossil fuck this shit aint nobody got time for that ... became html5 extremist but in the end realized FUCK it flash still rocks !
 
@AbhishekHingnikar Just take is as a History lesson
 
flash, that I know of, is the only way to securely upload a file without reloading the page
 
@Neil Our games are flash GUIs at their core (some older ones are a bit more meaty with logic in the flash) we have ie7+ support because of our enterprise customer base.
 
@connor.js ^ read my complete statement
 
at least that's what I've come to understand
 
3:47 PM
Shumway's fun, but not ready yet.
 
@Incognito Your company still supports ie7+? I feel your pain
 
@connor.js And flashgames!
 
@Neil Yeah, I spent a long time working on backend code and forgot about a lot of ie7 stuff.
 
For those who play games @copy
 
It's actually pretty neat from an architecture viewpoint, everything is done in JS, and the flash does UI
so when we make the HTML5 version we can just plug it in place where the communication code talks to the SWF and instead point it at some JS game object.
or slowly move flash code into JS and migrate to it at a steady pace without lots of rapid world-shifting changes.
At which point, the swf will be so dumb we could possibly include shumway on the page to do all that.
 
3:53 PM
All locked out?
 
How does this idea sounds to you guys ...... building a game together as we play it ? in this very room ? powered by caprika the sixth
 
word scramble or hangman?
 
@nderscore no something like code powered like u build stuff or shiyat and caprika tells u duel results
much like pokemon battles but... bot powered ! and code powered !
 
So I noticed a behavior with one of my page's javascript memory uses. I have several event handlers bound to detect if the user is focused on the page using mousemove events (and a few other events). I noticed that moving the mouse rapidly around the screen greatly increases the memory used on the page. I tried to reproduce it on google, but could not. However, I was able to reproduce it on SO proper. It is possible to see if you have chrome and can profile using the timeline and recording.
If you move the mouse around on the page while recording, you can see that the page will approach 15mb of memory used. If you look at the events tab in the timeline, you can see that there are many mouseover and mouseout events occurring which contribute to this memory use. Is there any way to limit the amount of memory used by these events? Perhaps by avoiding callback functions in favor of defined functions? Has anyone ever troubleshooted for memory management with regards to events?
 
1 algorithm fights the other
only the strongest will survive !
 
3:58 PM
I've always fancied the idea of AI battles
 
@TravisJ Doesn't sound like a real problem to me
Unless you have many event handlers
 

« first day (1122 days earlier)      last day (3809 days later) »