Writing graphical characters (unicode U+2500 to U+25E7)

Hi I'm writing a report for a project. It's about a ship war game with an old school terminal interface and I'd like to write my grid like in my program to be able to copy-paste screens from my terminal. It looks like this :      ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐       │ A │ B │ C │ D │ E │ F │ G │ H │ I │ J │   ┌───┼───┼───┼───┼───┼───┼───┼───┼───┼───╆━━━┪   │ 0 │   │   │   │   │   │   │   │   │   ┃   ┃   ├───┼───┼───┼───┼───╆━━━╅───┼───┼───┼───╂───┨   │ 1 │ ◯ │ ◯ │ ◯ │   ┃   ┃   │   │   │   ┃   ┃   ├───╆━━━┿━━━┿━━━╅───╂───╂───┼───┼───┼───╄━━━┩   │ 2 ┃ ✖ │ ✖ │ ✖ ┃ ◯ ┃   ┃   │   │   │   │   │   ├───╄━━━┿━━━┿━━━╃───╂───╂───┼───┼───┼───┼───┤   │ 3 │ ◯ │ ◯ │ ◯ │   ┃ ✖ ┃   │   │   │   │   │   ├───┼───┼───┼───┼───╂───╂───┼───╆━━━┿━━━┿━━━┪   │ 4 │   │   │   │   ┃ ✖ ┃   │   ┃   │   │   ┃   ├───┼───┼───┼───┼───╂───╂───┼───╄━━━┿━━━┿━━━┩   │ 5 │   │   │   │   ┃ ✖ ┃   │   │   │   │   │   ├───┼───┼───┼───┼───╄━━━╃───┼───┼───┼───┼───┤   │ 6 │   │   │   │   │ ◯ │ ◯ │   │   │   │   │   ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤   │ 7 │   │   │   │   │   │   │ ◯ │   │   │   │   ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤   │ 8 │   │   │   │   │   │   │   │ ◯ │   │   │   ├───┼───┼───┼───┼───┼───╆━━━┿━━━┿━━━┿━━━╅───┤   │ 9 │   │   │   │   │   ┃   │   │   │   ┃   │   └───┴───┴───┴───┴───┴───┺━━━┷━━━┷━━━┷━━━┹───┘   ╔═══════════════════════════════════════════════════════════╗   ║ <HAL> Je tire sur la case E3 de la file d'attente         ║   ║ <HAL> E3 : Touché                                         ║   ║ <HAL> J'ajoute la case E2 à la file d'attente             ║   ║ <HAL> File d'attente : E2                                 ║   ╚═══════════════════════════════════════════════════════════╝     It uses chars from the Box Drawing Family (U+2500) for the grid and U+2716 for the cross and U+25EF for the circles  I'm using texlive full on Xubuntu 14.04, and my editor is TexWriter (and I use Latex very often since I'm math teacher and write everything with Latex). I compile with pdflatex --shell-escape --enable-write18 -synctex=1 -interaction=nonstopmode %.tex  I obviously tried in my preambule \usepackage[utf8]{inputenc} and    \usepackage[utf8x]{inputenc} but there is always an error (like ! Package ucs Error: Unknown Unicode character 9472 = U+2500) I tried to use a verbatim environment but it doesn't work either.   I heard about Xelatex but i'm using pdflatex and since I'm working with another teacher who is not very geek (I'm already happy he accepted to work with Latex) I prefer not changing this...  Macros wouldn't help me neither because I'll have so many grids to write, it's nearly impossible without copy-paste...  In the worst case I'll do screen shots but it's soooo sad... I really hope there is a (simple) solution...  I searched everywhere but couldn't find anything (nothing to write a grid in text mode)  Thanks in advance for your help, normally I always find a solution alone but here I'm completely stuck... (sorry for my english)  PS My project source code and the Latex report can be found here if you're interested :


Mertens Constant and Euler–Mascheroni constant

I found this titillating equation: $$M = \gamma + \sum_{p} \left[ \ln\! \left( 1 - \frac{1}{p} \right) + \frac{1}{p} \right]$$  where $\displaystyle M=\lim_{n \rightarrow \infty } \left( \sum_{p\,\leq \,n} \frac{1}{p}  - \ln(\ln n) \right)$ and $\displaystyle\gamma=\lim_{n \rightarrow \infty } \left( \sum_{k\,=\,1}^n \frac{1}{k} - \ln n \right)$ and $p$ ranges over the prime numbers.  Sadly I am unable to prove it. Can anyone help?


What happens with method-local, static variables when parent class is deleted?

Assumed I have following static variable within a method:  void myClass::myFct() {    static int myvar=0;     ... }   The behaviour is clear, "myvar" is initialised only once and whenever it is changed during "..." on next call of myFct(), the last value of myvar can be seen but not the initial value.  Now my question: what happens when the class "myClass" is deleted and then created again? Does this affect "myvar" (means is it initialised again) or is it left untouched and also after deletion/construction of the parent class the last (modified) value can be seen there?  Thanks!


What is the sum of this? $ 1 + \frac12 + \frac13 + \frac14 + \frac16 + \frac18 + \frac19 + \frac1{12} +\cdots$

I'm in trouble with this homework.  Find the sum of the series $ 1 + \frac12 + \frac13 + \frac14 + \frac16 + \frac18 + \frac19 + \frac1{12} +\cdots$, where the terms are the inverse of the positive integers whose only prime factors are 2 and 3.  Hint: write the series as a product of two geometric series.  Ok, I found some patterns in these numbers, but I can't find the two series.


No GRUB menu after installing Ubuntu alongside Windows 7 - I deleted the Ubuntu partition, now I can't boot Windows either

I first installed Windows 7 ultimate onto my machine and using Windows 7 built-in partitioning system, I partitioned my disk into many smaller disks of NTFS file systems. I then tried to install Ubuntu 12.04 onto my machine.  I installed Ubuntu and Windows 7 side by side because I needed both operating systems but while booting I was getting an error:  Attention out of range H:92.6KHz  V:58.2Hz   I was not getting any dual boot menu - no message was seen except the above message. I tried pressing the down arrow to move between meu items, thinking that the menu might be there just not shown. The first time it directly logged into Ubuntu then next time  Windows 7.  When I logged into Windows 7, I deleted the volume in which Ubuntu was installed. Now, I am getting this error:  error:unknown file system  grub rescue>   I want Windows 7 back and a better way to install both operating systems. Please give me some help in this regards.


I've installed reCAPTCHA module but spam still bypass my security and leave nasty comments. What should I do? How to block them?


What is the preferred way to find focused control in WinForms app?

What is the preferred/easiest way to find the control that is currently receiving user (keyboard) input in WinForms?  So far I have come up with the following:  public static Control FindFocusedControl(Control control) {     var container = control as ContainerControl;     return (null != container         ? FindFocusedControl(container.ActiveControl)         : control); }   From a form, this can be called simply as (in .NET 3.5+ this could even be defined as an extension method on the form) -  var focused = FindFocusedControl(this);   Is this appropriate?  Is there a built-in method that I should be using instead?  Note that a single call to ActiveControl is not enough when hierarchies are used. Imagine:  Form     TableLayoutPanel         FlowLayoutPanel             TextBox (focused)   (formInstance).ActiveControl will return reference to TableLayoutPanel, not the TextBox (because ActiveControl seems to only be returning immediate active child in the control tree, while I'm looking for the leaf control).


How do I run Windows or Linux as a virtual machine on Android?

I would like to run Windows XP as a virtual machine on my Android tablet.  Since Android is based on Linux, is it possible to compile VirtualBox to run in Android?  If not possible, is it possible to run WinXP as a virtual machine in any way on an Android tablet?


I don't understand why I am getting the error:      initialization of 'element' is skipped by 'case' label.    Can someone please explain to me?  void LinkedList::process_example(int choice) {     switch(choice) {     case 1:         cout << endl << endl << "Current S = ";         this->printSet();          cout << "Enter an element :";         char* element = "lol";          //cin>>element;         cin.clear();         cin.ignore(200, '\n');          this->Addelementfromback(element); //error is here         cout << endl << endl << "Current S = ";          this->printSet();         break;      case 2:         this->check_element();         break;      case 3:         cout << endl << endl;         cout << "Current Set S = ";         this->printSet();          cout << endl << "S has ";         int count = this ->check_cardinality();         cout << count << " elements";         break;     } }


How to check if one of the words in an NSString starts with a certain string?

Given the string This is just an example string to show what I mean.  How do I check that none of the words in this string start with amp, or that one (or more) of the words start with s?  This is what the iOS contacts app does when searching in the list: It checks if the firstname or lastname start with the given search string.  The post that's supposed to be a duplicate, does not answer my question; it's just a general item about the use of regular expressions.


I recently bought a nexus 9 running android lollipop.  I wanted to either dual boot or install Ubuntu touch on it, and I noticed that most nexus devices were working. However the website hasn't been updated for the new nexus 6 or 9.  Is it possible to install Ubuntu touch on a nexus 9?


How to make the correct hash-symbol in C Sharp (C#)

I want to make C# look nice in my book, but with the following:  C\# it looks like this:    When it should look more like this:    For the second one, I used verbatim, but I don't want that and I've also used a macro like the following everywhere so it should be easy to replace:  \def\Csharp{C\#}  Any suggestions on how I make this look correct?  Edit  I am writing a programming book, in the C# Language Specification, it looks like this:


How to determine if this alternating series $\sum_{k=1}^\infty\frac{(-1)^k\ln k}k$ converges absolutely or conditionally?

I'm trying to determine if the series $\sum\limits_{k=1}^\infty\frac{(-1)^k\ln k }k$ is converging absolutely or conditionally. I've tried the ratio test and removed the alternating part i.e. $(-1)^k$ and then replaced every $k$ with $k+1$ and I got this: $$\frac{\dfrac{\ln(k+1)}{k+1}}{\dfrac{\ln k }k}.$$ I now don't know how to proceed with solving this or if this is the right way to solve it.


I am trying to save data to a database on a button push, but the variables seem to be private by the nature of where they are defined. I have tried to move where they are defined, but this seems to produce other errors.  Given a fix, why was it fixed that way?  The code follows.  namespace enable {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();             OleDbConnection favouriteConnection = new System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\\\192.168.123.5\\Share\\Matt\\BugTypes.mdb");             string strSQL = "SELECT CategoryName, Show " + "FROM [Categories] WHERE Show = 'Yes' " + "ORDER BY CategoryName";             OleDbDataAdapter adapter = new OleDbDataAdapter(strSQL, favouriteConnection);             OleDbCommandBuilder cBuilder = new OleDbCommandBuilder(adapter);             DataTable dTable = new DataTable();             adapter.Fill(dTable);             BindingSource bSource = new BindingSource();             bSource.DataSource = dTable;             dataGridView1.DataSource = bSource;             adapter.Update(dTable);         }         private void button1_Click(object sender, EventArgs e)         {             adapter.Update(dTable);//this is the button that needs to do the save, but can't see the variables.         }     } }


Local toc displaying wrong items while using titletoc

For a bachelor thesis, I have a document with several 'phases' that each need their own local toc. I have used titletoc in order to do so, yet it does not give me a good result. I have used the following preamble:  \documentclass[12pt]{report} %\usepackage[utf8]{inputenc} \usepackage{quotchap} \usepackage{hyperref} \usepackage{titlesec} \usepackage{titletoc} \usepackage{biblatex} \usepackage{graphicx} \usepackage{float} \usepackage[a4paper, margin=1in]{geometry} \usepackage{wrapfig} \usepackage{caption} \usepackage{subcaption} \addbibresource{sources.bib}  \begin{document} \input{coverpage.tex} \newpage \input{Titlepage.tex} \newpage \input{Executive summary.tex} \newpage \tableofcontents \newpage \input{Main-introduction.tex} \input{1PID/PID.tex}  \input{2Analysis/Analysis.tex}  \input{2Analysis/DesignDocument.tex}  \input{3Development/Development.tex}  \input{4Design/Design.tex}  \input{5Evaluation/Evaluation.tex}  \input{6Reflection/Reflection.tex}  \end{document}   In for instance the first chapter PID I have created a local toc the following way:  \begin{refsection} \section*{Contents} \startcontents[mytoc] \printcontents[mytoc]{}{0}{}  \newpage  \section{Introduction} \section{Project description} \section{Problem description} \section{Problem statement} \section{Measurable goals} \section{Communication objectives} \newpage \section{Time plan}  \printbibliography[heading=bibintoc] \end{refsection} \stopcontents[mytoc]   Now for this local toc, I get the following displayed:   I do not understand the first and last lines. I would prefer for instance Chapter 1 as the first entry and I am completely lost as to why it displays chapter 2, which is not even written in this same .tex (since I have a separate .tex for each chapter). Note that I get this for each sequential local toc for every chapter.  Anyone that can help me out?? Thanks!!


There are a lot of question similar to it but I want to give a good reason to do this.  I did this question:   The answer was not exactly good, but the problem is the information that I put in it. Maybe, I will sell the project and if the people that will buy it search my name and find it, I can have a problem and lost money. Even if he search it without my name, I will have the same problem.  Maybe I don't sell anything, but now this information have a good value to me. :) So, how can I force to delete it because I don't want to show this information anymore!   It was online for 4 month, so I thing this time pay the answer. Maybe I accept to restore it in one year.  So how can I force to delete my own question?  Ps. I flag the question but it not solve the problem!


I'm trying to export 3D scans from Meshlab to Blender but when importing to Blender the scans lose their colour. I have tried to export as .ply file but still no colour. How do I fix this?


I know in JavaScript, objects double as hashes, but I have been unable to find a built-in function to get the keys: var h = {a:'b', c:'d'};  I want something like var k = h.keys() ; // k = ['a', 'c'];  It is simple to write a function myself to iterate over the items and add the keys to an array that I return, but is there a standard cleaner way to do that? I keep feeling it must be a simple built in function that I missed but I can't find it!


'object' option not available in Object Solver panel

I'm following a tutorial on object tracking and when I try to object solve the cube the "object" option doesn't appear in the drop down menu of the "object" field. What have I missed?


Browser Compatibility with Cognito Forms

I have no problem creating the forms. Some users still have Internet Explorer 8.0 as their browser default. When I send the form link, they cannot open the form? I use Chrome 40 to design the form and have no issues.   What would be the minimum IE version, or any other browser for that matter,  for users to view and complete the form? I'm sure they are able to easily update their browser version.


Im experimenting with some stuff, and i was just wondering if thwre is any way to modify the source of the parameter values passed to a method? Like if i have this method for swapping two values:  void swap(int i, int j) {     int temp = i;     i = j;     j = temp; }   Is there any way to make it so that the integers passed to the method get changed as they are modified in the method?


I have example of fetching multiple nodes with EntityFieldQuery, but i am not able to show pager. (intial question here: )  if ($type == 21) {    $query = new EntityFieldQuery();     $entities = $query->entityCondition('entity_type', 'node')     ->propertyCondition('type', 'product')      ->fieldCondition('field_razred', 'tid', array (607,608,609,610), 'IN')     ->pager(10) // this is the bit you're missing     ->execute();     $nodes = node_load_multiple(array_keys($entities['node']));    print render(node_view_multiple($nodes, 'teaser')) . theme('pager'); }   Does theme('pager') depends on something i am not aware of ? I built my theme on Framework theme. This code is in fact run in node.tpl.php (when conditions are met)


Approximation error of confidence interval for the mean when $n \geq 30$

Let $\{X_i\}_{i=1}^n$ be a family of i.i.d. random variables taking values in $[0,1]$, having a mean $\mu$ and variance $\sigma^2$. A simple confidence interval for the mean, using $\sigma$ whenever it is known, is given by $$ P( | \bar X - \mu| > \varepsilon) \le \frac{\sigma^2}{n\varepsilon^2} \le\frac{1}{n \varepsilon^2} \qquad (1). $$  Also, because $\frac{\bar X- \mu}{\sigma/\sqrt{n}}$ is asymptotically distributed as a standard normal random variable, the normal distribution is sometimes used to "construct" an approximate confidence interval.    In multiple-choice answer statistics exams, I've had to use this approximation instead of $(1)$ whenever $n \geq 30$. I've always felt very uncomfortable with this (more than you can imagine), as the approximation error is not quantified.     Why use the normal approximation rather than $(1)$? I don't want, ever again, to blindly apply the rule $n \geq 30$. Are there good references that can support me in a refusal to do so and provide appropriate alternatives? ($(1)$ is an example of what I consider an appropriate alternative.)   Here, while $\sigma$ and $E[ |X|^3]$ are unknown, they are easily bounded.  Please note that my question is a reference request particularly about confidence intervals and therefore is distinct from the  differs from the questions that were suggested as partial duplicates  and . It is not answered there.


I can't copy and paste objects between versions      which is an issue because older blender crashes trying to open newer blender files and newer blender warps models from older blender on scaling


I can't find the problem, but my house (pictured) is not valid. There are no corruption/crimson on the screen and I have tried different furniture.  I keep getting the same error though:     This is not valid housing     Updated screenshot:  The walls are Spooky wood and Demonite brick.


Should Senior Stack Exchange Community Members be enabled to vote Stack Exchange Executive Staff off the payroll?

Stack Exchange Executive Staff will be under the impression - as company executive staff generally are - that the company is theirs.  But Stack Exchange is an unusual organisation very much based on a network / marketplace / community of expertise - comprising tens of millions of volunteer hours and hundreds of thousands of active volunteers, all volunteering and participating for the greater good.  In a very real sense those who participate most in the network / marketplace / community are those who are the greatest stakeholders in the organisation.  This being the case, should experienced Senior Stack Exchange Community Members be enabled to have a say when a company executive is inadvertently or pro-actively taking measures which injure the heart and soul of the organisation? Should there be more visible, transparent, direct accountability from paid executives to those from the community who have contributed most to build the value contained in the platform?  Could there emerge from the current crisis one of the first examples of a corporation submitting itself to community-based democracy, where the community around the platform (or product) has a significant say in who gets to be a paid executive leading the platform (or product)?    N.B. I am under no illusion that I am anything but a minnow in all of this. But I see the great damage that is being done in recent months and it does greatly - greatly! - disappoint me.    How this question is different from the "Calling for a Resignation" question  The question immediately above is fundamentally about opening up new areas in our society (in this specific case a commercial organisation) to participatory democracy.   Stack Exchange could make a good test subject because it is a highly unusual commercial organisation which exists and has the profile and status that it has, substantially due to its native volunteer community.  Further Reading on Participatory Democracy in Commercial Environments:


Recently I have installed KDE desktop on my Ubuntu 14.04. then I wanted to uninstall it. I tried everything  but no use. I can still login to KDE. The worst part is even in unity so many things are messed up e.g. It changed the text color of menu same as bg (I cant read anything), changed icons etc.  How can I completely removing KDE and clean up this mess?


Measuring an Arduino's power source voltage using Analog In

I am powering an Arduino using a 5v battery (3.7v to a step-up module), and I need to measure the voltage. Let's say the battery delivers high current, is it safe to measure the voltage via Analog In? As in this:    The reason I'm asking is that I don't know much about the Arduino's ADC architecture and limitations. So normally, I'd do so for safety:    Are the connections in the first diagram safe for the ADC? Thanks in advance!  Note: A similar question was asked here: (), but it doesn't answer the question of high current loads on the battery.


I was thinking of a way for a humanoid (PC or NPC) to live forever in a D&D setting, but through rather "common" and reproducible means, such that they will be available to many. By this logic I exclude cases such as a god giving immortality (or some other intervention) or a unique item granting an endless lifespan etc.  To cover all bases I will note that miracle and wish cannot do this directly, nor can true resurrection (and its lesser brethren) "restore to life a creature who has died of old age".  I had came up with the following ruse:   Reach your deathbed with at least 2 HD (or levels). Have someone kill you so that the cause of death will not be "old age". Have a druid cast reincarnate on you into a young body. You "recall the majority of your former life". I assume your memories, personality/identity and experiences are preserved.   Rinse and repeat. It's not that difficult to recover the 1 HD lost through the course of almost a lifetime. The material components are worth 1,000 gp - might not be easy to get, but surely possible.  Furthermore, it is stated that "A wish or a miracle spell can restore a reincarnated character to his or her original form.". I assume the "original form" is the aged humanoid at his or her deathbed - not the direction we are looking for, unless it means that the humanoid restores his race only.  Is there a flaw in this plan? Is there another way of doing it?


Is there a way to create a centreline in QGIS from two other lines (such as a river bank) which won't always be equally apart? I am aware that in ArcGIS Desktop there is Collapse Dual Line to Centerline which sounds like it is what is needed, but I have not found an equivalent in QGIS.


Can we call matter without mass as energy? just a simple defintion to the word energy; massless matter= energy? and I'm not asking about photons.


How disable key while specific program is running?

When I'm running a game with Play on Linux and I accidentally hit the Super key, it always opens the unity launcher and crashes my game. How can I prevent this, by disabling the super key for this program specifically? I would like to still use the key outside of Play on Linux (although I tried disabling it system-wide and that didn't work either).


Anything like substr but instead of stopping at the byte you specified, it stops at a specific string

I have a client for a pre-existing server. Let's say I get some packets "MC123, 456!@#".  I store these packets in a char called message. To print out a specific part of them, in this case the numbers part of them, I would do something like "cout << message.substr(3, 7) << endl;".   But what if I receive another message "MC123, 456, 789!@#". "cout << message.substr(3,7)" would only print out "123, 456", whereas I want "123, 456, 789". How would I do this assuming I know that every message ends with "!@#".


Which of the two is grammatically correct

"I like to eat fast food"    or      "I like eating  fast food"    I would like to know which of the two sentences above is grammatically correct


Can we get previous versions of Windows 10 media creation tool?

If those previous versions actually download and install previous Windows 10 builds anyway... What I want to do is upgrade a computer which has build 1511, but I don't want it to be upgraded to 1709 (or Fall Creators update, if you prefer) because that build appears to be riddled with bugs (from my experience, anyway), but 1703 (Creators update) is fine by me, so I want this one. I already found how to get any ISO for any build version, but I would need to boot the computer with this and I can't because I don't have physical access to it (I access it remotely through TeamViewer, that's how we usually manage our users' computers) and that sort of operation is beyond the capabilities of most of our users. I know the media creation tool is capable of upgrading Windows 10 from within Windows itself, so is there a way to obtain a Windows 10 media creation tool that would install 1703 instead of 1709? Currently, the one that's easily found on Microsoft's website will only install 1709 and I don't want it.


How can I hide directories or files without changing their names?

The OCD in me wants directories I do not like the name of to be hidden since I do not interact with them directly.  How can I hide directories without using the dot notation?


CPU Constantly at 100% In Task Manager, But Not in Process Explorer

Starting yesterday, I have a very odd problem on my Windows 10 desktop-- my CPU is constantly running at 100% (according to Task Manager), and it isn't throttling down. Because of this, it's constantly running at 3.3 GHz and the temperatures are rising to the point where the fans kick in at full force. If I go into the Windows power settings screen and manually change the processor power maximum to 50%, then it's capped at 50% frequency (~1.5 GHz), but it never goes below the maximum possible frequency.  The weird thing is, when I look at the process list, there isn't really anything obvious that's triggering it. None of the processes are abnormal, and though the process CPU percentages do add up to 100%, it doesn't make sense to me that each individual process is taking up as much CPU as Task Manager says it is. Everything seems to be "using" a significantly higher amount of CPU resources than it normally does.  As an attempt to diagnose the problem, I've also tried using Process Explorer. The really weird thing is that Process Explorer shows only 1-2% usage when idle, with the System Idle Process taking up the remaining ~98% as I would expect. Again, nothing looks out of the ordinary in the process list, but the processes are showing the levels of activity I would expect in Process Explorer.  I've already run both Windows Defender and Malware Bytes (a virus was my first guess), but nothing has turned up yet.  This same issue also occurs in Safe Mode, so I'm guessing that it's more along the lines of something to do with Windows itself...  So, to recap:   Windows 10 Desktop Intel 970, 3.3 GHz, 6 cores Task manager and resource monitor graphs shows 100% usage total No individual process is taking up significant resources in the resource monitor list CPU is not throttling down automatically based on the dynamic load, causing high temperatures and the fan to kick in Process Explorer is only showing 1-2% CPU usage   Before I go uninstalling everything, how would I figure out what's causing the issue if nothing weird is showing up in Task Manager or Process Explorer?


What is the most secure way of hashing password in PHP?

While stroring password i use password_hash() My code is  password_hash('152207', PASSWORD_BCRYPT, array(cost=>12));   But i found salt like thing in PHP too! What should i use password_hash or salt while storing password in database?


What is the best order to set exposure parameters (ISO, aperture, shutter)?

Let's say that you're in a very controlled environment, there is no hurry to get the shot, and you're shooting manual.  In order to correctly expose the photo, what order should you alter the ISO (if shooting digital), shutter speed and aperture; and why?


I want to know if I could install ubuntu touch on a Samsung Galaxy Core Plus.  I have not tried anything yet, I am looking into buying this phone but I would like to know if I can get ubuntu on it first.


Why am i getting execute binary file error?

Hi all i am getting following email every 10 min. as I own the VPS. I am not expert in linux and am learning to manage linux servers. Please help me why am i getting these emails and how to stop them or how to fix the issue i am running CentOS 6 on 123-reg VPS  Subject: Cron <root@vpsXXXXXXXX> /usr/lib64/sa/sa1 1 1 /usr/lib64/sa/sa1: line 11: /bin/date: cannot execute binary file /usr/lib64/sa/sa1: line 13: /bin/date: cannot execute binary file   and below email every 1 hour  Subject: Cron <root@vpsXXXXXXXX> run-parts /etc/cron.hourly /etc/cron.hourly/0anacron:  /etc/cron.hourly/0anacron: line 6: /bin/date: cannot execute binary file /etc/cron.hourly/0anacron: line 6: [: =: unary operator expected


Confusion regarding "regression by successive orthogonalization"

In trying to answer a question , I was re-reading  from .  What I followed from this is that, given a model with one dependent variable and two independent variables,  $Y = \beta_0 + \beta_1X_1 + \beta_2X_2 + \epsilon$  then the estimated regression coefficients, let's say for example $\hat{\beta_1}$ in the equation above, would be the same $\hat{\beta_1}$ from this equation:  $z_2 = \beta_0 + \beta_1X_1 + \epsilon$,  where  $z_2 = Y - \beta_0 - \beta_2X_2$  That is: It is my understanding that the regression coefficient $\hat{\beta_j}$ one gets in a multivariate linear regression is equal to the coefficient you would get if you took the residuals from the model where the dependent variable is regressed on all other predictor variables (besides $X_j$) and regressed those on $X_j$. However, I simulated some data and did not get this:  set.seed(1839) # setting seed x1 <- rnorm(200, 0, 1) # generating x1 x2 <- x1 + rnorm(200, 1, 3) # generating a correlated x2 eps <- rnorm(200, 0, 6) # generating error y <- x1 + x2 + eps # making y fit <- lm(y ~ x1 + x2) # fitting overall model   Looking at the summary, we can see the coefficients for x1 and x2:  summary(fit) # looking at summary      Call: lm(formula = y ~ x1 + x2)  Residuals:      Min       1Q   Median       3Q      Max  -18.4923  -4.4054   0.2954   4.0371  15.0697   Coefficients:             Estimate Std. Error t value Pr(>|t|)     (Intercept)  -0.5802     0.4462  -1.300    0.195     x1            0.1487     0.4733   0.314    0.754     x2            1.1272     0.1397   8.071 6.77e-14 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 6.021 on 197 degrees of freedom Multiple R-squared:  0.2706,    Adjusted R-squared:  0.2631  F-statistic: 36.53 on 2 and 197 DF,  p-value: 3.199e-14   Now, why don't these coefficient's match these found in the equations below?  coef(lm(residuals(lm(y ~ x2)) ~ x1))[2] # not exactly equal to the x1 in the original fit         x1  0.1358402   coef(lm(residuals(lm(y ~ x1)) ~ x2))[2] # not exactly equal to the x2 in the original fit        x2  1.029427    Why are these x1 and x2 coefficients not the same as those above? They are close—is this due to rounding? Or am I missing something from Algorithm 3.1?


How do I submit .jar file to the ubuntu software center

I am writing an app using JAVA Swing for all platforms. After that I want to add this app to Ubuntu Software Center for free Is it possible?   My app is just one *.jar file, its helping to play card games.  I dont know Python language and saying the truth - dont want to learn it now.  What should I do to be able to submit my app?


How to show the geometric distribution will finally succeed?

The first success occurs is geometric with parameter $p$. It follows that with probability 1 a success will eventually occur. I never think of this question (can we guarantee the success event will happen) before, though I learned probability for many years.


Start Undertale fresh, without any decisions

I told a friend of mine to play Undertale, but as he doesn't have a PC, I will let him play the game on my pc. The problem is... I already completed the game in genocide, but from what I hear, there will be save files left even after the "true" reset with %appdata%. Someone on Reddit even said it stores Registy files on Windows... On another question found here, they mentioned "UndertaleGenocideRemover", but do that actually work? I don't want that the game remembers some decision and ruins the gameplay of my friend. I want that he can experience the game as a whole, with a clean, fresh start.


Why is WebDriver instance declared static in Page Object model structure in Selenium?

I am a complete newbie in Selenium and java in general. I am trying to use the Page object model with Page factory to create Page object class for the Login page of an application. I am reading lot of sample code on the web tutorials and there the "Webdriver"  reference is delared as "static". Is it that other classes can use the Base class driver instance?  package com.test.login;  import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy;  public class LoginPage {      **public static WebDriver driver = null;**      public LoginPage(WebDriver driver) {         this.driver = driver;            PageFactory.initelements(driver, this);     }      @FindBy(xpath = "//input[contains(@id,'username')]")     public WebElement User_ID      @FindBy(xpath = "//input[contains(@id,'password')]")     public WebElement Password;      @FindBy(xpath = "//input[contains(@id,'login')]")     public WebElement Login_Button;   LoginTestClass.java  public class LoginPageTest{     WebDriver driver;     LoginPage loginpage = PageFactory.initElements(Login.class);


Any smart ideas on finding the area of this shaded region?

Don't let the simplicity of this diagram fool you. I have been wondering about this for quite some time, but I can't think of an easy/smart way of finding it.  Any ideas?    For reference, the Area is:  $$\bbox[10pt, border:2pt solid grey]{90−18.75\pi−25\cdot \arctan\left(\frac 12\right)}$$


request: bragging & boasting but all made up of lies

This is a single word, idiom, phrase, expression request - so basically I'll take anything that fits the bill.  Basically I'm trying to translate the Chinese word 吹牛 - which dictionaries will tell you mean to brag & to boast - but it actually also refers to things that are usually all untruths and lies.  I thought, originally, that one of these would work: he's just bragging (i.e.: it's not, actually, true) - but Google only says:     brag      braɡ/      verb      ?verb: brag; 3rd person present: brags; past tense: bragged; past participle: bragged; gerund or present participle: bragging         say something in a boastful manner.   "he bragged that he was sure of victory"         noun      noun: brag; plural noun: brags         a boastful statement.      and     boast1      bəʊst/      verb      verb: boast; 3rd person present: boasts; past tense: boasted; past participle: boasted; gerund or present participle: boasting         talk with excessive pride and self-satisfaction about one's achievements, possessions, or abilities.      "she boasted about her many conquests"      synonyms:  brag, crow, swagger, swank, gloat, show off, blow one's own trumpet, sing one's own praises, congratulate oneself, pat oneself on the back; More      exaggerate, overstate;   preen oneself, give oneself airs;   informaltalk big, blow hard, lay it on thick, shoot one's mouth off;   informalskite, big-note oneself   "his mother had been boasting about how wonderful he was to all her friends"   antonyms:   deprecate, belittle   (of a person, place, or thing) possess (a feature that is a source of pride).   "the hotel boasts high standards of comfort"         noun      noun: boast; plural noun: boasts         an act of talking with excessive pride and self-satisfaction.      "I said I would win and it wasn't an idle boast"      Not really seeing anything talking about lies.   Anything about bragging or boasting that involves lies?


I went to the Ubuntu website, and looked up the local area user group (LOCO) for Maine, USA, North America... it doesn't exist, but I would like it to exist.  How do I create it? how do I create an Ubuntu Local Community?    I have a group of guys, we meet up on a bi-weekly basis. Coding, hacking (not the evil sort) and Maker projects are standard fair.


I'm using Gnome Wayland on Ubuntu 17.10 and whenever I hover over the timeslider of VLC player (Full-screen or minimised), the entire screen becomes non reponsive to anything including mouse and keyboard. Only way to get it working is a hard reset or more recently I found out that shutting the lid of my laptop causes it to go to suspend after which I can login again and everything works normally.


What are some of the best books on complex systems and emergence?

I'm rather interested in getting my feet wet at the interface of  and . Can anybody give me references to some good books on these topics? I'm looking for very introductory technical books.


I am having trouble understanding how the transpiler works in IBM quantum computers. I am studying the spatial noise correlation between two qubits in an IBM Q device. For that, I don't want the transpiler to change my input circuit. Is it possible to overwrite the transpiler? Can someone explain how the transpiler works?


What is the difference between the two types of casts available in c#?    Specifically, what is the difference between.   (int)7.6 and 7.6 as int and similar casts?


I met guys online as sugar daddies without sugar. I have never given my bank password but some guys request that I buy Google Play gift cards and I answered I wouldn’t use my cash for it. The guy said      I would be sending your allowance from my bitcoin wallet baby... so whenever I send you your allowance I would also send you some more money so you can get me Google Play cards with them so I can invest in my Bitcoin wallet account and I would be able to spoil you more baby... remember you will be getting the Google Play cards with my money not yours   And other said     I’m gonna write you a check of 2000 babe you can hold 500 I want you to please help me to make an w transfer to one of my friend there babe   He asked me transfer to his co worker. It sounds strange. Are these scams?


When I try to perform a buffer of 10m on my imported gpxfile (geometry listed as points), the buffer covers more like 1000 km. I tried the same with a line vector file, which seems to work properly. I had no problem importing the GPX file into QGIS.    I've checked if the CRS was the same as the project's and I've looked for a alternative way of transforming the gpx into a shapefile, which I didn't find.  I only have this data as an gpx file, and I really need to use it! I am a QGIS-beginner, so I hope it is an easy fix?


One of my web pages is giving me an:  GET url_plus_query_string_go_here 500 (Internal Server Error)   type of error.  How do I set the page/server up so I can log these errors to find out more about them and why they are happening?


How to reinstall unity desktop on Ubuntu 14.04

I've installed gnome desktop and now I don't have unity desktop.  How can I reinstall it?


Is it correct to say you're trying to protect yourself from or against something?

For example: "I'm trying to protect myself from the brainwashing aliens."   My idea is that against seems like a stronger word to me. Making the item or topic at hand seem more... how should I say... of a negative thing? Not clear. But I also know it's more common for people to say, for example "I'm trying to protect myself from you/the aliens."  Any advice would be greatly appreciated.


$a,b\in\mathbb{N}$ and $ab>2$.Suppose,lcm$(a,b)=L,\gcd(a,b)=G$ and $a+b\mid L+G$.Prove that $\dfrac{(a+b)}{4}(a+b)\ge (L+G)$ and $a,b$ are two odd...

$a,b\in\mathbb{N}$ and $ab>2$.Suppose,$\text{lcm}(a,b)=L,\gcd(a,b)=G$ and $a+b\mid L+G$.Prove that $\dfrac{(a+b)}{4}\cdot(a+b)\ge (L+G)$. Also prove that equality occurs when $a,b$ are consecutive odd integers.    Hint: There is an exception when $a,b$ are both equal to 2.  I could not approach this problem at all. Please help.


I have difficulty to demonstrate this:  $$ \int_{-\infty}^{\infty}|f(x)|^2dx<\infty~~~\text{(summable square function)}$$  then,   $$\lim_{|x|\rightarrow\infty }f(x)=0$$  thank you.


How to solve a black screen with a dash error after booting my asus e205-se with Ubuntu 19.04

It was booting just fine then after restarting the computer it get stuck to that dummy black scree with a little dash at the top left corner. Am stuck in the middle of something here guys help me out


SAN block size for SQL Server on 4KB NTFS

A potential customer wants to evaluate our storage system. They run Windows 2008R2 x64 with 4KB NTFS on a virtual test machine they've sent us. They did not seem to know this at hand, so I think it's reasonable to assume that environment was not tweaked. The tests are inserting, indexing, searching, deleting. Tool is not known to me.  Given that the windows NTFS block size is 4KB, and SQL write in 64KB chunks - is it safe to assume that a block size of 64k on the SAN is a good choice?  They run SQL Server 2008, perhaps standard.


What do you call a person who is always online on the Internet?

Is there any specific word for a person who is always online on the Internet?  I am just curious to know because staying online is like a profession nowadays.


Answered question displays as unanswered in Android app

The  has two answers already, yet it's still unanswered.


How to disable administrative share C$ only to some computers or users

In my network the users can acces with the administrative share C$ to my computer because they are admin users, is possible to block some computers or users?  I tried to change some options with firewall but I couldn't get.


Is it possible (and usually done) to create such grainy effect in Illustrator?

Sharing some illustrations from  agency. If you see them, all have dotted / grainy colors.   I've highlighted the thing I want to ask about by yellow color. It's not limited to one artist. For example, you can see  work also, where in some illustration you would find similar grains or grainy gradient but non-uniform. Now, I know similar effect can be done using Illustrator Filter > Artistic > Grain or similar filter. I've done the same in one of illustration done by me below (in the main background):  But there's slight difference in between mine and the ones shared above (first 2, done by agency). If you observe them: 1) The grains are non-uniform. Looks like the designer used more effect where he wanted more and less where less needed. 2) He even has used in form of gradient also. In my case, I can do both things like I've done in Teddy, but the grains are too large, uniform (see pink background) and are not subtle. While in the agency's, they feel different than mine, looks like sand particles spread over layers by hand. And is non-uniform also at some places. I think I like mix of both effects, so I want to learn this techniques also. So is it possible and convenient to do this in Illustrator? Or you would recommend Photoshop (where there are lot of free brushes available)? Also I don't want to limit myself to grains only. I want to know about it and learn this technique so that I can try other similar types of grains/effects also.


Is the statement that there is a bijection $A\cong A\coprod A$ for every infinite set equivalent to the axiom of choice?

To provide a little bit of context to the above question, it's not so hard to show that the statement is implied by the axiom of choice (first replace $A$ with an ordinal, then build a bijection by transfinite induction).  Also, if you replace the statement by the stronger statement "for every two infinite sets $A$ and $B$ there is a bijection $A\coprod B\cong A$ or a bijection $A\coprod B\cong B$" then the statement indeed implies the axiom of choice: given an infinite set $A$, use Hartog's lemma to find a well ordered set $B$ such that $B$ doesn't inject into $A$, then by the above statement we have that $A$ injects into $B$ and $A$ acquires a well-ordering.  But what is less clear (to me) is that the statement implies the axiom of choice.  Does it?  As an aside, I see the site is awash with people asking the question "is ... equivalent to the axiom of choice" and have tried to check that this question isn't a duplicate.  Apologies if it is.


Can anyone use Tumble or Overrun as a bonus action?

The book reads, “Various class features, spells, and other abilities let you take an additional action on your turn called a bonus action. This isn’t a feature, spell, or other ability, it is an action."  So, does this mean I can’t use it as a bonus action unless I have a Feature, Spell, or Other Ability that grants it? Or should they be counted as "Other Abilities" and anyone can use them as a bonus action if they want to? The DMG just said Action or Bonus Action; are these convertible in either direction?


Please explain this construct with "help"

I was talking with a French penpal. He said:     you're helping me to improve   Which, as you may have guessed, is a literal translation from French. So I corrected him, and told him that using "to" isn't correct in English. But, now, I wonder:     you're helping me improve   Could you explain what construct it is?  My initial guess is that "help", here, is acting as a double object verb: "me" would be the indirect object, but:   I can't find "help" in  list of double object verbs. I've tried other pages too, with no luck. "Improve" can't possibly be a direct object.   Furthermore: it seems "help me to improve" is used more frequently than "help me improve". Now I'm really confused. Is "help me to improve" correct, then?


Cannot find a logout-link/button.  Yes, asked before - answered before. Lots of time. Know that. Unfortunetaly no one of the answers do the job.  If I log off Google, I'm still logged in to stackoverflow. If I'm logged off stackoverflow I'm still seing my credentials, as I see them - not how "foreign" people should see them.  Reason? I want to see my profile as other see it.  Suggestion: There should be a "how people see you"-feature.


I'm having trouble formatting this SD card. The write protect switch is off, of course. I tried using the built-in card reader on my MacBook Air and then a USB one. It won't even format on my Windows machine. It's hard to believe the card is bad as it was working just fine about a month ago when I last used it and I barely wrote data to it in its lifetime.  It doesn't mount automatically, nor does it show up in the Disk Utility GUI. However, diskutil on the command line sees it just fine.    When I try to format it through diskutil with the following command:  sudo diskutil eraseDisk FAT32 NIKON MBRFormat /dev/disk3   It does not work and I get the following error message:    I'm just perplexed as it has been in a case and like I said above, I've barely used it. It's hard to believe it died while not being in a computer, but it wouldn't be the strangest thing I've experienced in my life on the computer.  It would be much appreciated if someone can help me revive the card, if possible.


Is there a real-valued function $f$ such that $f(f(x)) = -x$?

Is there a function $f\colon \mathbb{R} \to\mathbb{R} $ such that $ f(f(x)) = -x$ ?


How to format floating point number with exactly 2 significant digits in bash?

I want to print the floating point number with exactly two significant digits in bash (maybe using a common tool like awk, bc, dc, perl etc.).  Examples:   76543 should be printed as 76000 0.0076543 should be printed as 0.0076   In both cases the significant digits are 7 and 6. I have read some answers for similar problems like:      but the answers focus on limiting the number of decimal places (eg. bc command with scale=2 or printf command with %.2f) instead of significant digits.  Is there an easy way to format the number with exactly 2 significant digits or do I have to write my own function?


I am writing a thesis, it is very long now over 300 pages. I am using glossary package a lot, and I am using two computers. When I compile my .tex file over my laptop I get the following error:  ! TeX capacity exceeded, sorry [main memory size=5000000]. \l__morewrites_internal_tl ...lsnumberformat}{257}  while when I compile it over my PC, It compiles without any issue. In both systems I am using TexLive and I also used morewrites package to deal with similar error I had before. Does anyone know why? Please help me.


Is there/could there be a theoretical absolute hot?

We know there is a theoretical absolute zero (0K) at which particles have no kinetic energy, but is there an absolute hot at which a particle can be given no more kinetic energy?


In C#, should I use string.Empty or String.Empty or "" to intitialize a string?

In C#, I want to initialize a string value with an empty string.  How should I do this?  What is the right way, and why?  string willi = string.Empty;   or  string willi = String.Empty;   or  string willi = "";   or what?


I am trying to modify an object after importing it. This post is related to   import bpy full_path_to_file = "C:\\Users\\xyz\\Documents\\test.obj" bpy.ops.import_scene.obj(filepath=full_path_to_file) # create the material mat = bpy.data.materials.new('MaterialName') mat.diffuse_color = (1.0,0.0,1.0) mat.diffuse_shader = 'LAMBERT' mat.diffuse_intensity = 1.0  # get the object obj = bpy.data.objects['Cube']  # get the material mat = bpy.data.materials['MaterialName']  # assign material to object obj.data.materials.append(mat)   I wanted to add a material to the imported object but that is not happening. So I tried to scale it even that is not happening.  I realized that no operation is being performed on the imported objects. But the same operations are executing on the objects that are created (i.e. not imported).  Any help would be appreciated.


I have looked and cannot find how to show the last # months in a pivot table.  Everything I seem to run across codes months statically.  I'm seeking a solution that shows something similar to the below result:  The columns headers are a unique identifier for the month(year*12+monthnum).  This was the only way I could think of for progressing year and month in a linear manner.   Partnumber 24180   24179   24178   24177   24176   813453     0       2       4       6       3       Is this possible?  Am I thinking too hard?  Each month the columns would naturally shift, and this is where I can't figure out how to dynamically do this.  Any suggestions or assistance is appreciated.  The table holding the data looks like this:  Of course the actual table hold much more historical data for thousands of parts.  PN      Year    Month   Usage   UID 813453  2014    12      0       24180 813453  2014    11      2       24179 813453  2014    10      4       24178 813453  2014    9       6       24177 813453  2014    8       3       24176


I've got a 2x2 plot of subfigures that is too wide to fit within the margins of a page. Latex left aligns it and the right hand side goes off the page. I would like to center align the whole thing without making the width of the subplots any smaller.  .  Here is my code:  \documentclass{article}  \usepackage{graphicx} \usepackage{caption} \usepackage{subfig}   \captionsetup{width=.75\textwidth,skip=0.3cm,within=none}  \begin{document}    \begin{figure}%[!hbt]  \begin{center}  \subfloat[US]{\includegraphics[width=100mm]{Results/Fig/USslope.pdf}}  \subfloat[Japan]{\includegraphics[width=100mm]{Results/Fig/JPNslope.pdf}} \\  \noindent  \subfloat[UK]{\includegraphics[width=100mm]{Results/Fig/UKslope.pdf}} \subfloat[Italy]{\includegraphics[width=100mm]{Results/Fig/Itslope.pdf}}   \caption[caption]{Slope Components}  \end{center}  \end{figure} \end{document}      \end{document}


efficient and accurate approximation of error function

I am looking for the numerical approximation of error function, which must be efficient and accurate. Thanks in advance $$\mathrm{erf}(z)=\frac2{\sqrt\pi}\int_0^z  e^{-t^2} \,\mathrm dt$$


Superscript text mode or outside math mode

What is the easiest way to superscript in text mode or outside of math mode?


that looks an interesting book; they look good guys

That looks an interesting book. ()   ‘Look’ can take an NP for its complement by OALD. Now what I’m wondering about is if a person/people could be a subject in the structure, for instance, “They look good guys.” If we can’t, does it have to be “They look like good guys”?


ASP.NET MVC - Getting QueryString values

Under ASP.NET MVC are you supposed to pick up QueryString params the same way you do in ASP.NET WebForms? or does the [AcceptVerbs(HttpVerbs.Get)] declaration get used somehow?


How do I write more than 1 condition under a \bigwedge?

What I want:  Now I can easily write the first condition $w \in V(G)$ myself, but how can I add a second (and a 3rd and a 4th) condition under it?


I have multiple email accounts and the messages are either forwarded to one Gmail account or I get them via POP/IMAP. Now I want to simplify all that and use only one account and get rid of all others. I need to list all senders who wrote to each of my email addresses, so I can notify them about my new account or in case of websites, change my email address there.  I could search the emails like this:       "to:myOldAddress@gmail.com"   and go through all emails. But unfortunately I have too many emails.  For the people out here who understand SQL, the query would be something like this:    select FromAddress from emailsTable where ToAddress = "myOldAddress@gmail.com" group by FromAddress    Another idea is to download all emails (Google allows you that) and scan them somehow. But I'm not sure though whether I can put it in an Excel or something.  Any ideas?


Do Player Characters with a powerful build deal more melee damage like a monster would?

I have a player in one of the games I'm running that's a Goliath Paladin. He uses a greataxe and recently asked me if he could deal more damage like a "Large" monster could since he has a powerful build. The following is quoted from p.278 of the DMG:  Big monsters typically wield oversized weapons that deal extra dice of damage on a hit. Double the weapon dice if the creature is Large, triple the weapon dice if the creature is Huge, quadruple the weapon dice if it's Gargantuan...  So since he counts as one size larger than medium, I thought that this rule could apply to him. However, the powerful build mechanic only states:  You count as one size larger when determining your carrying capacity and the weight you can push, drag, or lift.  My players are usually good, and don't try to "break the game", but before I make a decision, I would like to know what a community of other players and GMs would think about this. Would he be able to deal extra damage?


Stitch first and edit later or vice versa?

I have a set of three images imported in Lightroom 3.6 which I want to stitch into one panorama using Photoshop's CS5.5 Merge to Panorama tool. As I see it I have two options in doing so.   Doing all modifications (colour, brightness, contrast, etc...) first, syncing the changes between the three photos and then stitch them together. Stitching the photos first and then use Lightroom to apply modification to the whole image.   Which of these two methods is considered to be best practice?


So I'm trying to prove the center of $D_n$ only has the identity for odd $n$ greater than or equal to 3. I know that since $D_n$ for $n$ greater than 2 is non-Abelian, the flips and the rotations do not commute in general. Additionally, I know that the only other element that can commute with every element (rotation by 180 degrees) is not going to be in an odd dihedral group- I just have a hard time saying why it holds. My question is how do I formalize this, going forward? Edit: My question is different from the other that was pointed out, as I'm proving the center is trivial whereas the other question is an if and only if regarding an element in the center.


Why subtracting the means in PCA, but not dividing by standard deviations?

I know this can vary, but in the standard setup, when calculating principal components (PCs), we begin by subtracting the means of each feature (dimension), but we do not divide by the standard deviation.  Why is the zero-centering necessary, but setting standard deviations to $1$ not necessary?  A follow-up question: suppose I calculate the the PCs offline, and then use these hard-coded coefficients for noise reduction on streaming (live) data. What is the mean I should use on the live data? The one from the historical data that was used to derive the coefficients in the first place, or the mean of the live (online) data?


Is there a way to make the Menu bar show at all times in fullscreen windows?

I'm new to macOS and I really like the way you can assign a window to be it's own Desktop via full-screening. However, I have an issue with the default way the Menu bar works in full-screen.   I often move my cursor to the top of the screen to click on my tabs in my browsers and editors, and accidentally trigger the Menu bar obscuring my tabs. Other times I'd like the Menu bar to be available at a glance rather than having to trigger it by mousing up.  Is there some setting or application that will force the Menu bar to show at all times for full-screened windows?  It appears I'm not the first to have this issue, but the solutions in  didn't work for me and based on the comment for the top answer it won't work for anyone.  If there is no way to do this can anyone give me a hint where I can get started writing an application to do this?  PS: Please don't suggest that I simply hold alt when clicking the fullscreen green button or anything else like just resize the window to fill the screen". This doesn't solve my issue because it strips away many of the advantages of fullscreening.


How to calculate a Time Zone from my server

My server runs on UCT time.  What is the command to check a specific time zone? i.e. America/New_York  And to be clear, I don't wish to update the servers time zone, I just want to know what it calculates another time zone to be.


How can I prove without using a calculator that $\frac{1}{e} > \frac{\ln \pi}{\pi}$?

Without using a calculator.  I can see that $\ln \pi$ is close to $1$ but a little bit greater... Since $e$ is less than $\pi$, $\frac{1}{e}$ has to be a larger number. I don't understand how someone could know $\ln \pi$ though without using a calculator?  I also then have to prove why $e^\pi > \pi^e$.


I'm looking for a diff implementation in Java. I've seen that Python has its own SequenceMatcher (with difflib), which is exactly what I need... in Java.  Is there any portage? Or is there any other class/library that performs the same in Java?  If not, where can I find the source code of that difflib (if free as in speech) to make my own implementation of SequenceMatcher in Java ?  Unfortunately, Apache Commons Lang doesn't help me much.  Thanks!


how to check mac address of our system through terminal in ubuntu 10.04LTS     ipconfig/all


why "ls *bash*" doesn't show the .bashrc file

I cd to my home directory and typed  ls *bash*   expecting it will show a list of files contains "bash". However it is not.  While, typing   ls .bash*   works.  According to the documentation, * stands for any character, right? But it seems that it doesn't represent . in this case. What is wrong?


When there are no chat flags, hide the flag count

I have chat open all day and every once in a while I come back to it to see this:    Oh, wow, a flag! Let's click on it!    Oh, okay, no flag for me :( So I close the bubble, but the flag counter stays there for me to repeat this process over and over again until I refresh my browser window.  I understand that the flag count isn't being reset when someone else handles the flag, but at least it could be hidden once I got an empty flag list from the server.


Was Jedi Master Windu's attempt to murder the Chancellor against the Jedi code (or other laws)?

The Chancellor undoubtably did some really evil things (and/or made Vader do them) after the scene in question, but given only what happened leading up to this scene I wonder if Windu was in violation of the Jedi code or laws of the Republic by trying to kill Chancellor Palpatine.   Chancellor Palpatine was the freely elected leader of the Republic (he was elected to office and his term was extended by a democratic vote). If he had killed anyone or broken any laws, I don't think evidence of that was shown to the viewer, or at least not to Windu, yet Windu:   trespassed onto his private property,  decided to "arrest" him based on an unsubstantiated rumor that he used "the dark side" (which I have a hard time imagining was against any law anyway),    horribly disfigured the elderly man and  subsequently decided that Palpatine was "too dangerous to let live" after he defended himself.    He attempted to kill Palpatine as he lay writhing in pain and begging for his life.    I can understand that this was done to help humanize Anakin's decision to save the Chancellor, but I can't see how Master Windu was representing "good" and the Chancellor or Anakin "evil".   It seems like Windu was acting criminally and attempting to commit murder (?). I don't see how Anakin's protection of the Chancellor or the Chancellor's self-defense could be considered evil or unethical.


Inverse search in Sumatra PDF opens new instance of TeXnicCenter

When using inverse search, Sumatra PDF opens a new instance of TeXnicCenter.  Sumatra inverse search command is:  "C:\Program Files\TeXnicCenter\TeXnicCenter.exe" /ddecmd "[goto('%f', '%l')]"   According to some advices I tried to change Sumatra advanced settings        ReuseInstance = true   TeXnicCenter settings, define output profiles is:     Latex Tab    C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe  -synctex=-1 -interaction=nonstopmode "%Wm"   Viewer tab:  C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe -inverse-search -reuse-instance"\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\""   Project's output   [Open("%bm.pdf",0,1,1)]   Forward search:  [ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)]       I'm using project in TexnicCenter. Main file includes other .tex files. I think this could be the issue. Many thanks for advices!


I am looking for a  option — like the one at Wikipedia — which would allow me to keep track of the changes made to a set of questions over several days.  I think there are duplicate requests for this, but I could not find them.  Update: Oh yeah, I know you can ask me to use RSS, but that's not similar to Wikipedia's watchlist.  Update: Noticed a change, now you get a banner with a summary of changes to your Favourites. They have implemented it, I guess. More details .


Problem in connecting with Wi-Fi networks

I am having problem with my WiFi connection.  Initially all is right.  This is my panel    This is the pop up menu    After certain time the net connection is gone  Then I disable and re enable WiFi as it works sometimes. But now even the Wi-Fi networks disappear.      Then I reboot my computer. Now everything is back to normal. My WiFi network auto connects.    How to fix this?  I am using Ubuntu 16.04  The output of my terminal command:  lspci -knn | grep Net -A2   is as given below:  09:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd.     RTL8723BE PCIe Wireless Network Adapter [10ec:b723] Subsystem: Lenovo RTL8723BE PCIe Wireless Network Adapter [17aa:b736] Kernel driver in use: rtl8723be Kernel modules: rtl8723be


I somehow put a dotted square on my artboard in Illustrator, how do I remove it?

I've mistakenly pressed a random combination of keys and a dotted square appeared on my artboard, now I don't know what is it or how to remove it. It's not selectable at all, it's just overlapping in front of everything.


Why $\{\emptyset\} \not \subset\{\{\emptyset\}\}$?

In my text book it is written that:      { } ⊆ { }; { } ⊆ {0/}; { } ⊆ { {0/} }; { } ⊆ C; and {0/} ⊆ C; {   {0/} } ⊆ C; but {0/} is not a subset of { {0/} } since the only   element of {0/} is 0/ and the only element of { {0/} } is   {0/}, so the element of {0/} is not an element of { {0/} }.   A set with no elements is an empty set, denoted by {0/}.   There are three parts to my question.   Firstly, what is the distinction between {0/} and { }? Why is the latter not an empty set like the former?  Secondly, is { {0/} } an element and at the same time a set?    And finally, howcome is {0/} is not a subset of { {0/} }? How can an empty set not be a subset of an empty set?   This is my first question on math.stackexchange: I have no formal Mathematics background so please don't presume too much as much as I want to learn...  Thank you, internet!  UPDATE: Let C = { 0/, {0/} }


Was any character alive during all of the Star Wars episodes from I to VII?

Is there any character in the Star Wars universe who is known to have been born before Episode I and is known to still be alive in Episode VII?  Some of the main characters that I have already ruled out as possible answers are:   Yoda, Darth Vader, Senator Palpatine, who all died in Episode VI. Luke and Leia Skywalker, who were both born in Episode III. Jar Jar Binks, whose fate has not been established by canon (his voice is heard at the end of the DVD release of Episode VI, but we don't know if he survived until Episode VII). R2-D2 and C-3PO, because droids are not lifeforms.


I know that if you create a custom object, with an Auto-number Name field with a format, e.g. MYC-{0000} you will be able to create records from MYC-0000 to MYC-9999.  The moment you create 10,000 records Salesforce happily extends the range and you can then create MYC-10000 to MYC-99999.  My question is, what is the limit to this - for obvious reasons its a difficult one to test. I know instances that have exceeded 999,999 e.g. MYC-1000000 but am interested to know how far this extends to.  EDIT: When the field has a data type of Text the maximum length is 80. Is it safe to assume that the same is true for Autonumber (though that would be a very big number)?


Can I remove one partition on an external drive, while keeping the other intact?

I have an external USB drive, which I've partitioned into separate FAT32 ("MOVIES") and OSX ("TIME_MACHINE") partitions:    I now wish to remove the FAT32 partition and just use the OSX partition.   Aside from reformating the disk with a single OSX partition, is it possible to:   remove/erase the FAT32 partition, then expand the OSX partition to take up the entire drive   without losing the contents of the OSX partition?


Cross Validated asking ad nauseam about accepting cookies?

Recently (the last two or three days) on  (CV) pages, each time a new page/tab is opened, it asks anew on accepting cookies. Quite molesting. First I thought it was my browser (Chrome on Ubuntu Linux), but then: This only happens on CV, not even on CV Meta or any other SE sites. So what is going on? Edit After reading the link to meta SE: I have clicked "Accept all cookies" many times, and it is not remembered. If I click the other option, "Customize", nothing happens...


Running a bash script each time a file is uploaded?

I have an FTP server (Debian) setup where users send JPG images.   I need a process running on the background that every time a picture is sent via FTP a bash script is executed for generating thumbnail files for each image uploaded.  I already have the script that generates the thumbnail, the problem is it needs to be executed manually, but what I want is the script to be executed each time an image file is uploaded.  How can this work?


Installing both ArcGIS for Desktop and Python(x,y) on same machine?

I'm trying to get ArcGIS 10.1 and  to peacefully co-exist with a unified installation of Python. Surely someone else is using both these tools... right?  Here's where I've gotten to:   VERSION: Since ArcGIS 10.1 uses Python 2.7.2 (which contains NumPy 1.6.1), I went back to the pythonxy install mirrors and found version 2.7.2.0 of Python(x,y) which includes Python 2.7.2 and NumPy 1.6.1. INSTALL: I crossed my fingers and just installed Python(x,y) after copying my original "C:\Python27\ArcGIS10.1\" folder to a safe location. It installs most of the files at "C:\Program Files (x86)\pythonxy\", and the Python files in "C:\Python27\". This is the same folder where my Arc install of Python lives, except Arc placed its version in the sub-folder "\ArcGIS10.1\". So to recap, I now have a "python.exe" and associated files in "C:\Python27\" as well as "C:\Python27\ArcGIS10.1\". NEXT? Both Spyder and ArcGIS 10.1 seem to work so far but I'm guessing this won't last long. Two separate installs on the same machine seems like a bad move in principle. I wonder: Is it possible to change Arc's preferences to point to the version in the parent folder, and condense versions? I've gone through folder by folder and in almost every case the Python(x,y) install includes all the files that ArcGIS 10.1 Python does (and then some). The exception is that the Arc install sometimes includes '.pyc' and '.pyo' versions of some '.py' files. But I'm guessing this isn't a critical difference since both directories contain the actual '.py' file.) Forgot to mention: I added "C:\Python27\ArcGIS10.0\" to the list of system paths, per the instructions in Method 2 at . I really don't know what this does, just experimenting here.   I may post the same question at forums.arcgis.com, so if interested in the answer check there too.   I tried to add 'python(x,y)' as  a tag but was unable to create a new tag.


What about the community is "toxic" to new users?

In , the following graph is being shown:    The blog post states the following as explanation for what it defines as "unwelcoming":        Unwelcoming community (10.6% of responses): A perception of an unwelcoming community was the top thing that people found most frustrating or unappealing about Stack Overflow. We categorized responses that mentioned condescending or rude replies, and general comments about toxicity and lack of friendliness issues into this theme.      “The toxic nature of the community… Scares people from even signing up let alone asking questions”      “Some people are often condescending or rude”      Those two statements seem to be generalized to the point of meaning nothing at all. "The toxic nature of the community" implies that it's in the nature of the Stack Exchange community to be toxic, which is a statement I do not agree with from personal experience. It also does not explain exactly what "toxicity" is, only that it supposedly exists. Also the fact that people are supposedly scared to sign up or ask questions is in stark contrast to :     In 2019, Stack Overflow added over 2.8 million answers and 2.6 million new questions, with over 1.7 million new users joining the community. There are now over 18 million questions and 27 million answers on Stack Overflow, and over 150,000 people sign up for a Stack Overflow account each month, 12 years after we started.   I also wonder how exactly one would measure how many people are too scared to sign up for Stack Exchange, given that I doubt they would answer a survey about Stack Exchange.    The second example being used claims "Some people are often condescending or rude", which has no information that is in any way usable. "Some things sometimes happen" is just as informative.  Furthermore, it is also very subjective. The phrase     This answer does not answer the question at all.   could be interpreted as being neutral in tone (as it states a fact), or as being rude and condescending.    As such, my question is simply put: What exactly about the community is so toxic and unwelcoming?


Integration $I_n=\int _0^{\pi }\:sin^{2n}\theta \:d\theta $

If $I_n=\int _0^{\pi }\:sin^{2n}\theta \:d\theta $, show that $I_n=\frac{\left(2n-1\right)}{2n}I_{n-1}$, and hence $I_n=\frac{\left(2n\right)!}{\left(2^nn!\right)2}\pi $  Hence calculate $\int _0^{\pi }\:\:sin^4tcos^6t\:dt$  I knew how to prove that $I_n=\frac{\left(2n-1\right)}{2n}I_{n-1}$ ,, but I am not very good at English, what does it mean Hence $I_n=\frac{\left(2n\right)!}{\left(2^nn!\right)2}\pi $ do we need to prove this part as well or is it just a hint to use? and for the other calculation to find $\int _0^{\pi }\:\:sin^4tcos^6t\:dt$ is there something in the first part that I can do to help me solve this question because otherwise it becomes very long and it's part of the question.


Filling objects in object array, null pointer exception

In my addStudent method I am trying to add students(objects) in an object array, but I receive nullPointerException when I add even one object there.  package task2;  public class StudentGroup {     String groupSubject;     Student[] students;     int freePlaces;      StudentGroup(){         Student[] students = new Student[5];         freePlaces = 5;     }     StudentGroup(String subject){         this();         this.groupSubject = subject;     }      void addStudent(Student s){         if(freePlaces > 0 && s.subject.equals(this.groupSubject)) {                     this.students[this.freePlaces-1] = s;                                      //check mistake?             freePlaces--;         }         else{             System.out.println("Student isn't from same subject or there aren't any free spaces!");         }     }      void emptyGroup(){         Student[] students = new Student[5];         freePlaces = 5;     }      String bestStudent(){         double highestGrade = students[0].grade;         String name = students[0].name;         for (int i = 1; i < students.length; i++) {             if(students[i].grade > highestGrade){                 highestGrade = students[i].grade;                 name = students[i].name;             }         }         return name;     }      void printStudentsInGroup(){         for (int i = 0; i < students.length; i++) {             System.out.println(students[i].name + "-" + students[i].grade);         }     } }   I am also not sure if I can just call 5 times the method and fill every student in the array or I have to loop over the array to do so. Most of the info on Internet is with ArrayList, but I can't use it.


How to show that there are infinitely many prime numbers $p$ such that the polynomial f has a zero in $\mathbb Z_p$?

Let $f\in \mathbb Z[X]$ be a polynomial of positive degree.How to show that there are infinitely many prime numbers $p$ such that the polynomial $f$ has a zero in $\mathbb Z/p \mathbb Z$ ?  I have no idea of how to start even.  Need help


Add the revision history to the Android app

Basically this suggestion for the Android app:   Many times I'll see that a post has been edited on the Android app. I'll want to see exactly what was edited, and the Android app doesn't show this. Can the revision history be added to the Android app?


Displaying arrows on pipes from upstream to downstream using QGIS?

I am trying to display arrows on pipes of a sewer network so their direction is from upstream to downstream edges of the pipes.   I have managed to display those arrows on a polyline layer (which is the pipes) from the properties menu, but their direction seems to always be from Northeast to Southwest, regardless of the upstream and downstream edges.   How do i connect the arrow direction to those edges?  For example in the picture, the pipe between Nodes D11122 and D115 should have the arrow directed the opposite way.   Each pipe has an upstream and a downstream edge. Each edge is connected with a node and their properties are shown in the attribute table.


A few days ago I was in a middle of copying or cutting folders and data to my external hard drive and it was corrupted.  I have tried to locate the lost information on Test Disk but I have now lost it because it has already been over written. The file is 0. 0. copy and completed.  I have now only have the image.dd file. How can I restore this to it's normal folders and files? Many thanks.


How can I alleviate my 34 month old little girl's fear of poo?

I feel incredibly stupid and awful about this, but a while ago I jokingly referred to my daughters' poo (in her nappy, not in the toilet) as a monster (because it was so big).  I think I have now given her a fear of pooping and having her diaper changed. I need to start toilet training but think I have really set her back now.  She now only poos every 2-3 days and tries to avoid diaper changes. I am going to start talking about how nice her poos are and praise her but has anyone else found something useful in this situation?


circumstances where software change leads to device damage

Recently I changed a friend's OS from a really virus filled windows 7 to Ubuntu ..but kept changing os's because lsusb wouldn't detect the camera.But after coming back to windows, the camera wasn't detected, though I must point out the device driver for the camera was never found.  The Sony 'technician' told me that that since the dev-manager of windows 7 couldn't detect the camera , regardless of whether the device driver was installed, the software change must have damaged the hardware.  I was wondering if there is any truth to it.


I am trying to send a message to the moderators because the last message that was sent was from me. The message I see is      "you cannot post an additional message until a moderator has   responded"   I had a follow up question. The moderator said "Your reputation is set to 1 for the duration of your suspension. It'll be restored to your proper reputation once the suspension is over.". I responded "Alright, thank you". But because I responded already, I could not send any sort of follow up today. My suspension is over and my rep on SO is still 1.


Does getting disconnected from an SSH session kill your programs?

So, say I get disconnected from an SSH-session after I've started rsync or cp or any other command that can be long running. Does that command keep running until it's finished after I get disconnected or does it just get killed?  Always wondered this.


Weird $3^n$ in an identity to be combinatorially proved

Give a combinatorial proof of the following identity:  $$3^n=\sum_{i=0}^{n}\binom{n}{i}2^{n-i}$$  I can't see any counting argument that would yield $3^n$, and the right hand side is also pretty opaque. For some reason I really really suck at doing these proofs - I just started my first combinatorics course.


Integral of $\int \frac{\sqrt{9-x^2}}{x}$

I don't understand how the integral   $$\int \frac{\sqrt{9-x^2}}{x}=\sqrt{9-x^2}-3 \ln(\sqrt{9-x^2}+3)+3 \log(x)+c$$  I keep getting $-3/x +c$ as the answer.


Do such AngularJS functions or variables of $promise and $checkSessionServer exist or still exist?

In some tutorial for AngularJS online, I saw $promise or $checkSessionServer are declared in a way of  var $promise=$http.post('data/user.php',data);   I learned that AngularJS declare using $, but I can not find those $ variables in native AngularJS function / variables at all!  Is this something old or else?  Thanks


Why is the compression function in Miyaguchi-Preneel scheme secure?

I was reading about the Miyaguchi-Preneel scheme and had difficulty in understanding why the compression function, $h(H,m)=E(H, H \oplus M) \oplus M \oplus H$ can be called secure. The only resource I could find about this was .  Again, I am having trouble with the explanation provided there. So, if someone could please clear my doubt, that would be great, thanks!


Need a matrix to seventh power which is the identity but the original is not or the negative identity

The question on the homework wants a $2\times2$ matrix $R$, but $R$ not equal to positive or negative identity, that when you raise to seventh power you get the identity.  $R^7=\operatorname{Id}$.  I thought it would have to be some ones and negative ones,  it no luck, then tried some ones and some $.5$.  Just using an online matrix calculator to do brute force.  We just started talking about eigenvalues with visual example, so assuming wouldn't need that since we have not talked about how to find them yet.  Any hints or ideas to get me back on track?


I'm trying to work out this shoulder deformation. I can't figure it out.  Is there anything wrong in my armature? Should i add bones and keep more control of my mesh or use shape keys? Here is my file blend.


What is the difference between Python Regex match() and search().  I've read the documentation (current documentation), but I never seem to remember it. I keep having to look it up and re-learn it. I'm hoping that someone will answer it clearly with examples so that (perhaps) it will stick in my head. Or at least I'll have a better place to return with my question and it will take less time to re-learn it.


Linear Algebra: Prove the orthogonal complement of the row space of A is {0} implies Ax = 0 has only the trivial solution

Prove the orthogonal complement of the row space of $A $is ${0}$ implies $Ax = 0$ has only the trivial solution


Bluetooth is on but can't find or be found by any other devices.  Output of sudo service bluetooth status:  ● bluetooth.service - Bluetooth service    Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)    Active: active (running) since ხუთ 2015-06-04 22:33:18 GET; 13min ago  Main PID: 26678 (bluetoothd)    CGroup: /system.slice/bluetooth.service            └─26678 /usr/sbin/bluetoothd -n  ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPAG ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPHS ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSource ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSink ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPAG ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPHS ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSource ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSink ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Adapter /org/bluez/26678/hci0 has been enabled ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Adapter /org/bluez/26678/hci0 has been enabled   Output of lsusb:  Bus 003 Device 005: ID 0a5c:21d7 Broadcom Corp. BCM43142 Bluetooth 4.0   How can I fix it?


How do I remove the first principal component from a data set, while keeping it in the original coordinates?

I would like to remove the first principal component from a data set, but keep that data set in its original coordinates. I have taken a stab at this by taking PCA, zeroing the first PC, and then rotating back using the inverse of the eigvenvector matrix. Is that the most efficient way to do this?  create a sample data set:  set.seed(1234) xx <- rnorm(500) yy <- 0.5 * xx + rnorm(500, sd = 0.3) vec <- cbind(xx, yy) plot(vec, xlim = c(-4, 4), ylim = c(-4, 4))     Take principal components and zero out the first PC:  vv <- eigen(cov(vec))$vectors newvec <- vec %*% vv newvec[, 1] <- 0   Now rotate the new data set back to its original coordinates using the inverse of the PCA rotation matrix:  rvec <- newvec %*% t(vv) # transpose of orthogonal matrix = inverse # plot new points in red and plot eigenvectors in green points(rvec, col = "red") arrows(0, 0, vv[1,1], vv[2, 1], col = "green3", lwd = 2) arrows(0, 0, vv[1,2], vv[2, 2], col = "green3", lwd = 2) legend("topleft", legend = c("original data", "data after extracting PC1", "eigenvectors of original data"), fill = c("black", "red", "green3"))     As you can see it seems to agree with the eigenvector orientations in green. But is this the correct and/or best way? Can I avoid the intermediate matrix multiplications for example?


What's the difference between 'subject + did + verb' and 'subject + simple past'?

What's the difference between these two setences?     We did have a meeting, but it was a bit rushed.      We had a meeting, but it was a bit rushed.


KernelEvents::REQUEST is not fired on cached pages

I am trying to implement a KernelEvents::REQUEST event subscriber to perform some action on page load.   I need this event to fire regardless of whether the requested page exists in the Drupal cache - it seems that KernelEvents::REQUEST does not fire when Drupal serves something from the cache.  Is there an event I can use to achieve this, or must I implement my requirements as some form of middleware?


Installing Linux without affecting Window 7

I have Window 7 installed on my laptop and I can install Linux (Ubuntu). I just wanted to install it with the following conditions:   At the time of booting I get option for both OS, but if I delete Linux OS it should not affect the booting process of Windows. May be it automatically gain Windows bootloader or if its Grub, its OK. I am not aware of what is "sda" at the time of installation. Can I create "sdb" without destroying Windows partitions and install Linux in this "sdb"? I got free space in my system.


Is smell a bad way of determining whether meat is still good?

I have always relied on my sense of smell to determine whether meat (most often chicken) is bad and I thought it was reliable. However, I have just heard that [1] smell is not always reliable, since some of the toxins produced by bacteria won't cause any smell whatsoever and you won't be able to notice that the meat is off until after you've eaten it.   Is this true? If yes, is this true for all meat or only for some? Is there a more reliable way of determining whether meat is still good.  [1] "Heard that" isn't very reliable; so that's why I'm asking the question here. :)


Adding Decimal to a String in Javascript

I'm given numbers in cents:  eg.     102042   982123   121212   I want to convert them to dollars. I figured the easiest way to do this is to convert the digits into a string and add a decimal.   eg.     1020.42   9821.23   1212.12   I'm currently doing this but it only rounds to 1 decimal. What would I need to do it make it round to 2 decimals?   var number = 102042 number.toString().match(/^-?\d+(?:\.\d{0,2})?/)[0]   UPDATE: I found out what my issue was. It wasn't the rounding but the fact that I combined a lodash filter to a division incorrectly. Thanks again!


Do the Britons (British people) say both?  And, I've found it from the book that said:  "Have got to" is more informal than "have to", so do Britons say this:   I have to get a great score than last exam. (AE/BrE) is this common in BrE? I have got to get a great score than last exam. (BrE) is usually used in speaking. I gotta get a great score than last exam. (Informal AE).   So, the question is which is more preferred in BrE, in spoken and written BrE?


I'm currently developing a script for Blender to handle Mesh Frequency Decomposition.  The script is nearly complete, but i need one more thing: The SciPy library to compute eigenvalues and eigenvectors.  Following the installation instructions on , I'm able to install it as well as Numpy. Numpy works fine, but I can't even import SciPy:  Traceback (most recent call last): File "/CAF_FD.py", line 4, in <module> ImportError: No module named 'scipy' Error: Python script fail, look in the console for now...   By the way, I'm working on Linux 64 bit and I've installed SciPy and Numpy with my package manager.  Edit: When I try to use SciPy with a terminal prompt, it works.


Is there a formal proof for $(-1) \times (-1) = 1$? It's a fundamental formula not only in arithmetic but also in the whole of math. Is there a proof for it or is it just assumed?


Time series: Getting from monthly to semi-annually data by summing - how to determine the forecast interval?

I have to forecast some monthly timeseries 1.5 years into the future and then sum them up to get 3 semi-annual counts.  The forecasts give forecast intervals, but how do I get from the 6 monthly forcast intervals to one semi-annual one?  Is there some clear formula for that or a good estimate?  Or would it be better to sum the data into semi-annual counts first and then forecast those 3 periods into the future?  I'm using R and the forecast package.  Thanks in advance.  EDIT: My question has been marked as a duplicate of another question that is not actually similar.   First of all, the other questions deals with annual counts and I'm interested in semi-annual counts. It is not quite clear form the answer to the other question how I can get from the annual counts to semi-annual counts since the mechanism behind the trick mentioned isn't really explained.  Second, I'd like to know the theory behind it, not just a trick that works in R (we're using other time series platforms as well, so the R trick is of absolutely no help in those cases, even if it solves my problem with this particular aggregated forecast).  The Otexts book "Forecasting: Principles and Practice 2" seems to have a planned chapter about this problem, but there's only a headline and no text (unless it's my browser that's malfunctioning):


I am facing problem regarding the usage of who and whom. So I want to know how to use those pronouns? For example: who or whom do you think I met?


How do I specify a main class in the manifest of my generated jar file?

i try to using Eclipse Maven to build jar with dependencies but when i execute   java -jar App.jar   got the error : "no main method found"  My pom.xml looks like this:  <project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">     <modelVersion>4.0.0</modelVersion>     <groupId>com.maventest</groupId>     <artifactId>aproject</artifactId>     <version>0.0.1-SNAPSHOT</version>     <packaging>jar</packaging>     <name>aproject</name>     <url>http://maven.apache.org</url>     <properties>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>     </properties>     <dependencies>         <dependency>             <groupId>junit</groupId>             <artifactId>junit</artifactId>             <version>3.8.1</version>             <scope>test</scope>         </dependency>      </dependencies> </project>   it's just a simple java code:  package com.maventest.aproject;  public class App {     public static void main( String[] args ) {         System.out.println( "Hello World!" );     } }   eclipse version: 4.5.2  Can anyone help me with this? Thanks.


An error occurs when submitting an improvement to a Suggested edit

I get this message each time I submit an improvement.    This has been happening since yesterday. Also, the next Suggested edit always fails to load afterwards.  I'm on a 3G network, so maybe a flaky connection? I also use Firefox 25 (haven't checked with anything else).


What is the base form called of a superlative or comparative adjective?

Motivation:  I'm doing a text-mining project and I'd like to map all forms of an adjective to their "base-form".   Example:  bigger    -> big biggest   -> big stronger  -> strong strongest -> strong   The words on the left are the comparitive or superlative forms of the word on the right.   Question: What is the word on the right called?  Related: , but in this case I'm not looking for the opposite, simply the name of the form without the comparison.


i hava a php code inside a javasript for loop  code the problem is the php code run once even though the loop go many times  here is my code  <script>    function myFunction() {     var j,i,k,x=[];       <?php $k=0; ?>;   <?php $faculys= App\faculty::all();     $i=0;      foreach($faculys as $faculty)     {       $array[]=$faculty->name;       $i++;     }       ?>;       i= <?php echo $i; ?>; for(j=0; j<i; j++)       {          x[j]='<?php  echo $array[$k];  ?>';        <?php $k++; ?>;        }    k= <?php echo $k; ?>; </script>   the result of $k and k is always one what is my error.


List remote desktop administrative sessions in Windows Server 2012

On our servers, we use Remote Desktop for remote administration only (the default administrative connections that are limited to two-sessions per server and don't require extra licensing).  Occasionally, we need to open Remote Desktop Services Manager to see if another session is open and possible kill it.  Under Windows Server 2012, you still have the administrative remote desktop, but the Remote Desktop Services Manager is gone.  You apparently need to configure the server for RDS deployment (which requires extra licensing and can't be done on a domain controller) in order to list which sessions are open and terminate any.  Is there any way, on Windows Server 2012 with only the administrative remote desktop, to list what sessions are open and possibly terminate them?


Science fiction book from 70's (or earlier): aliens attacking metal

I'm looking for the title of a book. I have few details other than that people were being rescued from the surface of an alien planet which had something which was attracted to metal. They were being hoisted to safety, but something metal on the cable was being attacked by a swarm of small possibly glowing aliens. I read it in the 70's.


Time complexity of two same for loops is O(n) instead of O(2n). Why?

What I've understood about time complexity is that it measures the no. of operations performed with respect to input. For example code{   for(int i=0;i<n;i++){     // n opertions   print(array[i]);  }   for(int i=0;i<n;i++{      // n operations   print(array[i}  } }  If each loop performs n operations then the total no. of operations performed will be 2n Right? Why not include that in the Time Complexity? I mean why is 2 neglected  in O(n) instead of O(2n) If n=5 then the first for loop will perform 5 operation and second will perform 5 , So totally it'll perform 10 operations. If n=10 then first loop will perform 10 and second loop will perform 10 operations , So totally the it'll perform 20 operations which is 2n. The above no. of operations will not change no matter how slow your computer performs the no.of operations performed will be 2n. Then my question is why O(n) instead of O(2n).


For the past 3 weeks, I have been getting this BSOD error on my laptop: Driver State Power Failure.  I have , but I have no idea how to analyse them.  I am not able to find the problematic driver, so I thought I should reset them all.  How can I reset them to factory versions?


How do I permanently disable hard drives?

I tried google and searching this site, didn't get very good answers.  I'm running 14.04.1 LTS. I have multiple 3.5" internal drives in my system with very important data on them. I'm only using one of them for ubuntu. I installed ubuntu hoping I could use it to play and mess around, without worrying about hurting the rest of my system.   In windows you can go to device manager, right click an internal drive, and click disable. Is there an equivalent in Ubuntu? I want it so that nothing can access the drives in any way until I manually re-enable them.  Thanks!


I've been reading up on threading and tried implementing it into my code however I'm not sure if the way I'm doing it, is the best practise.   My code simply imports a self scripted package which pulls weather data and runs the package every 60 seconds thereafter.   I plan on running multiple packages which gather data at once, when I have worked out a good code technique.  from package.weather import weatherapi import threading  def update():   weatherapi()   threading.Timer(60, update).start()  update()    Firstly it just seems messy and if I wanted more packages running in a thread, I'd need to create another update function Secondly I'm not able to kill my process   If anyone has any suggestions, it would be greatly appreciated.


Show that the quotient space is homeomorphic to the n-disc

Let $\sim$ denote the equivalence relation on the $n$-sphere $S^n$ defined via   $$ (x_1,\dots,x_n,x_{n+1})\sim(x_1,\dots,x_n,−x_{n+1})\:\text{ for all }\: (x_1,\dots,x_{n+1})\in S^n. $$      Show that the quotient space $S^n/\sim$ is homeomorphic to the $n$-disc $D^n$.   I know that Ii have to show that there exists a bijective function $f: (S^n/\sim) \to D^n$ that is continuous and that the pre-image $f^{-1}$ is continuous as well, but I can't advance from here, any tips?


JS Array change after calling a function

I have the following function which change array's elements from a number to a string. function trasformHand(a,b){      var rs1a = a;   var rs2b = b;   for(var i = 0;i<5;i++){     if(a[0][i]==10){rs1a[0][i] = "T"}     else if(a[0][i]==11){rs1a[0][i] = "J"}     else if(a[0][i]==12){rs1a[0][i] = "Q"}     else if(a[0][i]==13){rs1a[0][i] = "K"}     else if(a[0][i]==14){rs1a[0][i] = "A"}        }        for(var i = 0;i<5;i++){     if(b[0][i]==1){rs2b[0][i] = "C"}     else if(b[0][i]==2){rs2b[0][i] = "H"}     else if(b[0][i]==4){rs2b[0][i] = "S"}     else{rs2b[0][i] = "D"}      }      return ""+rs1a[0][0]+rs2b[0][0]+" "+rs1a[0][1]+rs2b[0][1]+" "+rs1a[0][2]+rs2b[0][2]+" "+rs1a[0][3]+rs2b[0][3]+" "+rs1a[0][4]+rs2b[0][4];  }  I call the function with: var valuesB = [[10,14,14,10,10]]; var valuesBc = [[1,1,1,4,8]]; var inputB = trasformHand(valuesB,valuesBc);  The function works as expected, but it changes the array "valueB". It becames the same as the array "rs1a", and I do not understand why. Is there a way to avoid it?


Do I need a transit visa for a layover in Tokyo airport?

My trip will be from Vietnam to Canada. I will have a 4 hr layover in Tokyo.  I am a Bangladeshi passport holder and permanent resident of Canada.  Will I need a transit visa for Tokyo airport?