> Though this contradicts to the description of the algorithms in the C++ Standard there is no any reason why it can't be done except the low qualification of the members of the C++ Standard. Committee
@BenjaminGruenbaum the friend I have in COBOL is originally a researcher in oceanography, and he converted to IT with this job because he couldn't find a job. It's been 2 years now.
@FlorianMargaine yeah, I don't really connect to "a job is a job" programmers (although I understand it's a perfectly valid way to treat your profession)
Q: How correct is to give ng prefix to a third party plugin? Asking since there is already a ton of plugins, like ngTable, ..., but at the same time ng is more of a internal prefix of angularjs i.e. ngResource, ngRoute, ... . angularjs
When you do not work alone, or your code might be maintained by someone else, or you're using other stuff that read attributes to work, than I think it's a good thing to "prefix" your attribute this way.
tl;dr
How can I as a user deal with content of users who are helpful in general but leave abusive comments and/or answers?
Is there anything I can do to help mitigate the problem when I run into such an answer?
An anecdote
So, today in chat I ran into this answer here by this user that star...
I have a array search_by_type which is declared at the top. Now in every click I am setting the rest_type_id value to array which is working fine.
Now other page action is calling get_all_restro() function which will empty the array search_by_type. When again I click restro_type_filter class it ...
Try this:
foreach($country as $key=>$value){ // Getting Qty corresponding to inventory
echo $value;
}
Above code is in PHP, but it might give you understanding
@Justin I have not downvoted this answer but I'm letting you know right now that the only reason I did not downvote it is because it would look like people are ganging up on you. I do appreciate your contribution to the site but please keep in mind that the only standard I use for downvotes here is usefulness or lack of. As it currently stands your answer still has a pretty serious mistake that would cause the code to fail sometimes. Please correct it. — Benjamin Gruenbaum1 min ago
hello there guys, actually I have one question I don't know whether it is right to get it asked here. So please excuse me. The question is actually I have make a Constructor function inside Javascript and bound variable to it using var variable_name = value; not by using this.variable_name. And when i make instance of it and console.log(newly created object) it shows me empty ?? Why so means that variables shouldnot be bounded to the new instance ?
@Gurjit if you use var .... it is normal that it won't be attach to the object. you need to use this. to attach it to the object. Else it will be a scoped variable.
I have a JSON object of arrays
data = {
China: ["Guangzhou","Fax"],
Majorette: ["Fungous","Godzilla"],
Bhutan: ["Thimphu","Parr","Photofinishing"]
}
I want to access name of cities in an array without explicitly mentioning the name of countries as list is very long.
var cities = [];...
@dystroy @SecondRikudo thanks for instant replies. I have created function to access the variable and the variable is accessible to but the problem is why object is showing empty and when i try to use this.variable , the newly created instance shows that variable in it .
@dievardump yes man thats what i am asking but why ?
It's like making a birthday cake for a friend but not bringing it with you to the party. The cake is all shiny and yummy in your home, but you can't eat it or see it from your friend's house :(
I'm a 14 year old programmer, have an app on the App Store, worked on a startup and participate on programming competitions. I'm pretty active in Stack's chat, but not in this room.
@Omar yeah, quite a bit of regulars here :) Lots of JS, most of it is either random debates, helping people with JS or debating the language. We also have monthly doe challenges now (current one in voting) and other stuff going on. Anyway - free to lurk and chat.
I have a question: I must cache the users on the browser. I created my own REST API with Node.js, and I must save the account on the browser's cache for the most time possible. Any library you would suggest?
@Omar oh yeah I saw you have a blog about that once when I helped a friend who is using jquery mobile. To be fair I'm not experienced enough with it to formulate an opinion.
@BenjaminGruenbaum I post some articles whenever I find an interesting topic. I'm trying to learn other languages e.g. AngularJS, knockoutJS, etc. to help jQM users
@Omar we actually had a Knockout challenge the other month here with the Stack Exchange API. I think KnockoutJS has a great learning site - I really enjoyed it.
The example is taken from knockout tutorials - working with lists and collections.
<table>
<thead>
<tr>
<th>Passenger name</th>
<th>Meal</th>
<th>Surcharge</th>
<th></th>
</tr>
</thead>
<!-- Todo: Generate table body -->
<tbody data-bind="foreach...
@Omar that's actually a decent question.. I can understand why it was downvoted (Knockout is about not touching the DOM yourself outside of bindings) but a downvote is pretty stupid there. It's almost as if it was downvoted to punish you for not knowing knockout already :P Silly stuff.
@Omar you have 800 programming answers in SO... Like I said I'm not a jQuery mobile fan but I wouldn't say it's any less programming than anything else. Although if I were you I'd definitely consider reading a book like "JavaScript: The Good Parts" that's pretty short and very informative on how the JavaScript language works.
i dont know much javascript so i may express myself wrong. I find it confusing the part about objects and arrays. but what is the javascript version of php array like this one for instance: $a = [ "test1" => 2, "test2" =>5 ];
@GabrielTomitsuka make sure you really understand these languages though - C++ for one has a lot of paradigms, so does Objective C and so does JavaScript. Knowing at least one language in-depth is often more important than knowing several at a shallow level :)
@Omar to be fair the answer by Joe Daley is pretty close and the answer by GôTô covers the binding aspect - the problem is that neither of them (and me neither) knows jQuery mobile too well. You might want to look at it some more (the two links I sent you) and write your own answer - I could write an answer but I doubt it'd be very good. Instead if you write an answer after that it would probably be much better. You're welcome to post a link to it here and ping me for criticism.
@GabrielTomitsuka that's good - GitHub participation really helps. It's worth building a name for yourself at this age and interacting with communities - it's how I landed my first job as a programmer.
ah, ok. Same things happened to EJS. They took out essential features, and a package called ejs-locals was created, but it's unmaintained, so I switched my templating engine :(