Is it better to declare variables inside or outside the prototype property?
Use of 'prototype' vs. 'this' in JavaScript?
Is there any simple (IE: right click in Nautilus) way to password protect a particular folder/file in Ubuntu? I've got a few files containing sensitive info and I'd much prefer that if/when I leave my computer alone, they aren't accidentally accessed by someone else.  The secruty does not have to be extremely tight. My only concern is that when family/friends come over, I don't really like the idea of them looking at my bank details, accounts or, you guessed it, porn collection.  A simple, effective way to let me put my machine in the hands of someone else knowing that said machine can not cause me embarresment is the sole reason why I'd like to see this in Ubuntu. stop Ipod from asking for old Apple ID password Recently, I've changed my Apple ID because my old E-mail has been hacked. Now that I set the new one as my apple ID, the old Apple account still appears when I open almost all my apps on my Ipod Touch (4th Gen.), asking for the password to my old Apple ID. When I put in the old password to my old Apple ID, it'll keep asking for it no matter how many times I type it in. How do I fix this while keeping my account secure? Any suggestions would help! I'm not sure if there's already an existing term for this, so I'm inventing my own. (tl;dr: I call them &quot;chameleon questions&quot; because they change every time you submit or edit an answer.  If you're already intimately familiar with the phenomenon, please skip past the first set of bullet points to where I ask for recommendations.)  I think many of us have experienced this on occasion:  You open up a narrow-looking question, usually dealing with some specific error message.  The question probably contains a snippet of sloppy but not quite awful code; code indicating that the author, typically a new/low-rep user, possibly a , doesn't really know what they're doing.  I'm not trying to be condescending here, they're probably very intelligent and hardworking, but in this specific case, they're clearly in way over their head.  However, as a question, it's not really too bad.  The goal and problem are both clearly stated.  The code is formatted (sort of).  Mort was polite and checked their spelling.  The question looks answerable, although from a rep perspective* it's an obvious dead-end, it's had maybe 3 views in the past 30 minutes.  So you decide, you know what, this person took the time to write up the question properly, they deserve an answer, put on your good citizen hat and throw them a bone.  You slog through the ugly code, find the offending line, direct their attention to it and explain why it's wrong and how it needs to be fixed.  Later, they leave a comment saying that yes, that was indeed the problem and your answer helped them fix it (great!).  Oh, but, now there's another problem (uh-oh...). Something else is broken.  After letting out a long sigh, you read the comment and/or edited question, roll up your sleeves, and write up Take 2, hoping that's the end of it.  And of course it's not the end.  Now maybe the error is gone, but it's not doing what it's supposed to.  If you're anything like me, your patience is now starting to wear thin. It's lousy code and you didn't volunteer to help them rewrite their whole app.  And of course, the question still only has 12 views, and nobody has upvoted either the question or your answer, including the person you're helping, so this is turning out to be a genuinely thankless task in all respects.  Welcome to &quot;Family Tech Support&quot;, Web 2.0 Edition.   * Which is of course just an arbitrary number that none of us care about. Not really, anyway. Not very much, at least.  So, here's where I get to my question.  At this point, do you:  Leave a comment, stating as politely as possible that you've done your best to help them answer the original question they asked, and if they have a new problem then they should start a new question?  (I did this once, and actually ended up with an accept, but I felt kind of guilty afterwards, I don't think anybody answered their 2nd question).  Bite the bullet and edit your answer a 3rd, 4th, 5th time, however many times it takes to resolve their issue, knowing full well that they may not even remember to accept the answer once you're done? (I may work for free on SO, but that doesn't mean my time is worthless.)  Just abandon the question, hoping that it will force Mort to start thinking for himself?  Something else?   I've tried all three of the above and none of them ever quite feel right. I do want to help, but at the same time there are a lot more &quot;lucrative&quot; questions I could be answering. And I don't mind spending a lot of time on an answer either, if the question is interesting or important to me, but debugging is dull work. I'd prefer not to reference specific questions here; I'm pretty sure that this is a shared experience, and my objective isn't to point fingers at &quot;misbehaving&quot; members.  I'm more looking for some practical advice on how to dig myself out of these pits of despair. Anybody have any other ideas? What is the difference between operator "=" and "==" in Bash? Number of triangles formed by $m$ lines Why did I just get the Announcer Badge and the Booster badge? Today I got both the Announcer badge and the Booster badge for  that I asked last year.   I don't remember ever sharing a link to it, and it seems odd to me that I would get both badges in one day, implying that there were at least 276 people who viewed it today from a link I don't remember ever sharing.  What's going on? Can 12 teams in 6 disciplines play 6 rounds without repetition? I have a bunch of files as follows:  04602635_b0294.DAT20120807164534 04602637_b0297.DAT20120807164713 04602638_b0296.DAT20120807164637 04602639_b0299.DAT20120807164819 04602640_b0298.DAT20120807164748 04602641_b0300.DAT20120807164849 04602650_b0301.DAT20120807164921 04602652_b0302.DAT20120807164956   I need to rename them to exclude the prefix. It needs to look like this..  b0294.DAT20120807164534 b0297.DAT20120807164713 b0296.DAT20120807164637 b0299.DAT20120807164819 b0298.DAT20120807164748 b0300.DAT20120807164849 b0301.DAT20120807164921 b0302.DAT20120807164956   EDIT  I forgot to add that I am using Solaris. Construct a fourth circle tangent to 3 circles forming a tangency chain How to determine if string contains specific substring within the first X characters How do I programmatically update the allowed values of a list field? I have created a field_time_zone field for the Article content type. I want to set the allowed values for that field to the values returned from system_time_zones(). For this, I implemented hook_form_alter() using the following code. $zones = system_time_zones(); $entityManager = \Drupal::service('entity_field.manager'); $fields = $entityManager-&gt;getFieldStorageDefinitions('node', 'local_market'); $options = options_allowed_values($fields['field_time_zone']);  if(empty($options)) { $options =  $zones; $form['field_time_zone']['widget']['#options'] = $options; }  The code adds the desired values, but the node cannot be saved, as it throws the following error.  The value you selected is not a valid choice.  How can I set the allowed values for a text (list) field? I have a basic grammar question about the past tense. If I met a guy yesterday, which tense should I use about his name today?  For example,     "Yesterday I met a guy, his name is/was John." PCA and the train/test split I have a dataset for which I have multiple sets of binary labels. For each set of labels, I train a classifier, evaluating it by cross-validation. I want to reduce dimensionality using principal component analysis (PCA). My question is:  Is it possible to do the PCA once for the whole dataset and then use the new dataset of lower dimensionality for cross-validation as described above? Or do I need to do a separate PCA for every training set (which would mean doing a separate PCA for every classifier and for every cross-validation fold)?  On one hand, the PCA does not make any use of the labels. On the other hand, it does use the test data to do the transformation, so I am afraid it could bias the results.  I should mention that in addition to saving me some work, doing the PCA once on the whole dataset would allow me to visualize the dataset for all label sets at once. If I have a different PCA for each label set, I would need to visualize each label set separately. LINQ's Distinct() on a particular property I am playing with LINQ to learn about it, but I can't figure out how to use Distinct when I do not have a simple list (a simple list of integers is pretty easy to do, this is not the question). What I if want to use  on a list of an Object on one or more properties of the object?  Example: If an object is Person, with Property Id. How can I get all Person and use Distinct on them with the property Id of the object?  Person1: Id=1, Name="Test1" Person2: Id=1, Name="Test1" Person3: Id=2, Name="Test2"   How can I get just Person1 and Person3? Is that possible?  If it's not possible with LINQ, what would be the best way to have a list of Person depending on some of its properties in .NET 3.5? Why use getters and setters/accessors? I am considering trying to setup a  system. It seems like this would be pretty straight forward if I had two graphics cards or if I didn't need hardware based OpenGL acceleration. Is it possible to setup a multi seat system with only a single dual-headed graphics card? Intuitive explanation of the bias-variance tradeoff? I am looking for an intuitive explanation of the bias-variance tradeoff, both in general and specifically in the context of linear regression. "Pandora's Box" metaphors The majority of definitions give the same meaning - "Pandora's box" is a synonym for "a source of extensive but unforeseen troubles or problems."  Are there any other metaphors with the same meaning? i.i.d. random variables uniform distribution Search across Stack Exchange sites in Android app Is it possible to search for a question across all Stack Exchange sites in the Android app?   Right now I can search in only one specific site at a time.   If not, can you add that feature?