Make "last seen" on the profile page less exact
Can we set privacy for "last seen" status?
Double value returns 0 Here's an example:  Double d = (1/3); System.out.println(d);   This returns 0, not 0.33333... as it should.  Does anyone know? Quoting within $(command substitution) in Bash Is this an instance of Priori Incantatem? During the climax of Fantastic Beasts and Where to Find Them, Tina briefly duels with Graves and their wands appear to lock with each other (see picture). I believe this also happens some other times in the later Harry Potter films other than Harry and Voldemort's duel in the graveyard during Goblet of Fire.    We know that this is definitely a case of Priori Incantatem for the graveyard duel in Goblet of Fire, as the wands are locked for a sufficient amount of time for past spells to begin showing themselves (significantly, showing the people Voldemort had murdered), but is this the case for the other instances of wands locking? If so, does that mean there are a lot more wands out there with shared cores, as it was my understanding this could only happen if that criteria was satisfied? How to find the period of the sum of two trigonometric functions Dump of my own Stack Exchange content Is there a way to quickly save all my Stack Exchange content across all Stack Exchange sites, as hundreds of HTML pages? (for me probably 15 or 20 sites: SO, dsp.SE, unix.SE, etc.)?  The ideal way would be one .HTML file for each question that I asked / answered / commented? What would be the ideal tool for that?    Remark: I've already read interesting questions like  but it doesn't exactly answer my concern here. I have noticed that such terms as model hyperparameter and model parameter have been used interchangeably on the web without prior clarification. I think this is incorrect and needs explanation. Consider a machine learning model, an SVM/NN/NB based classificator or image recognizer, just anything that first springs to mind.   What are the hyperparameters and parameters of the model? Give your examples please. Exporting QGIS contour attributes in DXF file? I have a .tiff data file that generates contours in QGIS. I save it as .dxf. The contours don't have any attributes or data. That's bad, because I want to make a 3D landscape in Revit using the information.   How do a save/export the contour lines from QGIS so that they have a z-elevation attribute or at least some information?    I ticked the attributes box when extracting the contours, but the attributes doesn't show in the dxf. Show Capslock on Windows 8 Is there a specific purpose in terms of efficiency or functionality why the k-means algorithm does not use for example cosine (dis)similarity as a distance metric, but can only use the Euclidean norm? In general, will K-means method comply and be correct when other distances than Euclidean are considered or used?  [Addition by @ttnphns. The question is two-fold. "(Non)Euclidean distance" may concern distance between two data points or distance between a data point and a cluster centre. Both ways have been attempted to address in the answers so far.] I want to make sure all of the data in my plugins/themes is handled securely  before entering the database and before being output to the browser. My problem is that there are situations where the API handles the sanitization for you -- like when saving post meta fields -- and others where the plugin/theme author is wholly responsible for doing it -- like when saving custom settings.  For the scope of this question, I'm not concerned about validating data at the domain level -- e.g., checking that an Age field on a form is between 0 and 120, or that an e-mail address is valid. I'm only concerned about security -- e.g., escaping SQL queries to avoid SQL injection when saving to the database, or sanitizing data that's output to HTML templates to avoid XSS.  For output sanitization, I know that you always need to use functions like esc_html() and esc_attr() when echo'ing variables into HTML templates. But, what about when using ? Do they all sanitize the output already? If so, for which context (general HTML, tag attributes, etc)? Some functions have variants for different contexts (like the_title_attribute(), but most don't.  For input sanitization, I know that I need to use $wpdb-&gt;prepare() when making manual queries, but what about when using the Settings API to create a plugin settings page, or saving post meta fields for a custom post type?  Right now I've just been digging through Core and reading tutorials every time I use a function to find out if it sanitizes or not, but that's error-prone and time consuming. I'm hoping to find some kind of comprehensive list of all the possible situations and whether or not the API handles it. e.g.,  API validates/sanitizes   Saving post meta with update_postmeta() Saving user meta with update_user_meta() Outputting a post title - use the contextually appropriate variant of the_title() etc   You have to manually validate/sanitize   Saving plugin options with the Settings API. Pass a callback as the 3rd parameter of register_setting(). Direct database queries: Wrap the query in $wpdb-&gt;prepare(). Outputting variables in HTML. Use esc_attr(), esc_html(), etc etc   I'd also be interested to understand why the API provides it in certain situations, but not others. I'm assuming it has something to do with the unknown nature of the data, but would love to hear a thorough explanation. I really like the new sidebar. With the new top bar eliminating the &quot;Hot Questions&quot; area there, I think this is the perfect place for it. One-click access to time-wasting questions about topics I may or may not have an interest in. Seriously, it's a procrastinator's dream come true. The only suggestion I can add is to extend it. I assume the &quot;hot&quot; algorithm can spit out more than 12 questions, and since we now have a huge amount of room for it(without being restricted to a weird drop-down scrollbox), why not show more? If there's something else planned for that spot, disregard. At a minimum, the title could link to the , as ShaWizDowArd suggested in comments. I've been using SE for a couple years now, and I've never seen that page, so it would add visibility there.    Update: They added a link! Just noticed this, I'm pretty sure it wasn't there yesterday. When you click it, it loads 12 more. At the moment, the link disappears once clicked, so you can see a total of 24 here now. Not a link to the full list, but better: How to reinstall Cortana? With reference to:    I removed the Cortana packages from my running Windows 10 using the method posted by magicandre1981 and using  win6x_registry_tweak.   My question is how can I re-install Cortana (or for that matter any other package removed similarly)?  I have opened up the install.wim image (converted from a Win 10 install.esd file) and found Cortana in the system apps folder, but don't know how / what to use to re-install it.  Any help please? When trying to add a bit more detail to a related , I realized I don't know how to specify which one of the available Bash word types to execute. According to help type there are five word types:   alias keyword function builtin file   It's possible for a word to have several types (true is just an example; a more commonly overridden word would be cd):  $ type -a true true is a shell builtin true is /bin/true   How do you force the execution of a specific synonym? So far, in order of precedence:   alias: This is a special case since it has precedence over all the other synonyms. Forcing this would only be useful when the command should fail if the alias is not defined.  $   keyword:  $   function:  $   builtin:  $ builtin true  file:  $ command true $ $(which true) $ /bin/true    :   Quoting a word excludes aliases and keywords. That is,  $ 'true'   will run only the function, builtin or file. Grid search vs. random search for hyperparameter tuning I am interested in comparing the computational cost of grid search vs. random search algorithm for hyperparameter tuning. Is random search computationally less expensive then grid search? Is there an article/paper that talks about this topic? Thank you, How to reduce Eclipse's memory usage? Other than the general inductive method,how could we show that $$\sum_{r=0}^n \frac{(-1)^r}{r+1}\binom{n}{r} = \frac1{n+1}$$  Apart from induction, I tried with  to check the validity, but I can't think of an easy (manual) alternative.  Please suggest an intuitive/easy method. Redirect, Change URLs or Redirect HTTP to HTTPS in Apache - Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not. How can I sum two values and store the result in other variable? In LaTeX2e,how can I sum two values and assign them to other variable?  I want to compute something like:   var=\textwidth - 1cm    And if both were constants:   var=1+1 Transfer from JFK Terminal 2 to Terminal 4 I have family who does not speak English.  They are changing planes in JFK Airport and will most likely be transferring from Terminal 2 (Delta) to Terminal 4 (China Southern Airlines).  At first I thought that directing them to use the Airtrain would be best.  However, in doing more reading my understanding is that the Airtrain would mean they would need to go through security again.  I found this on Delta's site:   If they use the JITNEY Shuttle to change from Terminal 2 to Terminal 4, does that mean they would not need to re-clear Security?  Edit: They are flying TO China. They are going from Tampa -> NY JFK -> China. Near-universally applicable alternative to "sanity check" The phrase "sanity check" is  as it implies that there is something wrong with people who have mental illnesses and the word "sanity" has been used to discriminate against such people.  Therefore, it should should be avoided.  What is a better alternative in the context of software?  Example usage:     _: if this is not what it should be, we have memory corruption (a fatal   error) and should terminate the program.