I need some help with solving question number 2. The statement of the question is huge and so I refrained from typing it. This is last year's ZIO paper.   So, I thought that rather than vanishing bacterias and then again increasing it, we could keep $K$ bacterias as it is and decrease the number of instructions $A, B, C$ by 1 each. Then we can try to form the rest of the bacterias $i.e (N-K)$ using the 'modified' instructions.   I tried but cannot reach $N$ and I also need to develop a generalized algorithm so that all the test cases are solved easily. Thanks in advance.   This is not an ongoing test.


non-root users can run passwd command as root, why can't they change password of root?

I know about setuid bit on /bin/passwd file which allows us (non-root user) to run that command as root user. running passwd command requires root permissions to change /etc/shadow file.  My question is if I am running passwd command as root why I can't change the password of root since I am root while I am running that command?  edward@ArchLinux:~$ passwd root passwd: You may not view or modify password information for root.   Is it passwd command that does not allows non-root user to change the password? Can I write a malicious passwd command with setuid bit that can change any user's password?  (Logically I know that this would be disastrous but I want to know how this works in background)


I am trying for about a week to launch unicode-math package with XeLaTeX and got nothing. PDF is created well but all Cyrillic symbols in math mode are skipped. I tried using different math fonts - no progress at all. In log file, I found low-level error:  Missing character: There is no [cyrillic letter from input] in font cmmi12!   But all fonts used in document are Unicode ones.  Here is a file I want to be processed well (of course it is UTF-8).  \documentclass[12pt]{book} \usepackage{polyglossia} \setdefaultlanguage[spelling=modern]{russian} \setotherlanguage{english} \defaultfontfeatures{Ligatures={TeX}} \setmainfont{CMU Serif} \setsansfont{CMU Sans Serif} \setmonofont{CMU Typewriter Text}    \usepackage{amsmath, amssymb} \usepackage[russian]{hyperref}  \usepackage{unicode-math} \setmathfont{Latin Modern Math}  \frenchspacing  \begin{document} Просто буквы % Plain letters $$Память: M_{доп}(n) = \Theta(N)$$ % Memory: M_add(n) = \Theta(n) \end{document}   Looking for your help.


How can I stop the whole state of Texas from calling my number?

I get about 5-6 calls daily (6:30am to 4pm-ish) from the whole state of Texas. My phone number is just one digit away from matching another number with the area code for Texas (which is 936, mine is 939 for PR).   The number leads to this automated system that I can't understand, and it’s asking me immediately for a pin every time I call. I Googled it, and the only thing that comes up is Montgomery County Adult Probation. It’s not spam calling me nor telemarketers, it’s real people, because sometimes I answer and either no one talks or they say: “sorry wrong number.”  What can I do? I’ve had my number for over 10 years, and I don’t want to change it. I know nobody in Texas, so I don’t want anyone calling me from there. Any app around or something? I don’t care if I have to pay a monthly fee.


Why can't I store derived class object in a base class array and then dynamic_cast it? C++

This is my question in StackOverflow, I normally am able to find the answers to my questions online but this particular one I can't make work. So, I'm making a text-based game in c++ and I'm using inheritance and polymorphism in it. I want to store Equipment (derived) in an inventory of Items(base) and them use dynamic_cast to get the properties of the derived class. I made a small example that represents what I'm trying to do. #include <iostream>  using namespace std;  class Equipment {     public:     int i = 20;     string s = "nothing here";     Equipment(){};     virtual ~Equipment(){}; };  class Weapon: public Equipment {     public:     int V = 900;     Weapon(){}; };  int main2(Equipment* e) {     Weapon& weapon3 = dynamic_cast<Weapon&>(*e);     cout << weapon3.V << endl;     return 0; }  int setEquipment(Equipment* e) {     Equipment &equipment = *e;  Weapon& weapon2 = dynamic_cast<Weapon&>(*e);  Equipment* inventory; inventory = new Equipment[3]; inventory[0] = *e;  Equipment &equipment2 = inventory[0];  Equipment inventory2[3]; inventory2[0] = equipment;  Equipment *inventory3[3]; inventory3[0] = &equipment; inventory3[1] = e;  cout << weapon2.V << endl; cout << "METHOD A: "; // WORKS FINE main2(&equipment); // cout << "METHOD B: "; // DOESN'T WORK // main2(&equipment2); // cout << "METHOD C: "; // DOESN'T WORK // main2(&inventory[0]); // cout << "METHOD D: "; // DOESN'T WORK // main2(&inventory2[0]); cout << "METHOD E: "; // IT ALSO WORKS!!!!!! main2(inventory3[1]);  }  int main() {     Weapon weapon1;     setEquipment(&weapon1); }  I wanted to implement something like METHOD C in my code. I tried to implement METHOD E in my actual code but I'm getting a lot of bad_alloc errors. (All the methods that don't work on the example gives me a std::bad_cast error).


Can't go past a certain page in search results

Try searching something in the search bar that returns more than 10,000 total results.  This happens:   15 results per page: page 666 works, page 667 or past shows nothing 30 results per page: page 333 works, page 334 or past shows nothing 50 results per page: page 200 works, page 201 or past shows nothing   How To Reproduce This Error: Type &page=x at the end of the search URL.  Going past 10,000 search results used to work fine (like last year), but now there's a bug that prevents users from doing so.


General relativity (gravitation) in time and one spatial dimension

I don't have any idea of general relativity but intend to learn. Is it a good idea to study general relativity in two dimensions (time and single spatial dimension) in the begining to get good idea on the subject? If it is, then please give some references for such a treatment.


How many endings are there in dishonored? (SPOILERS)

So, I just finished dishonored with a high chaos level, and got two different endings, in one I saved Emily, she ruled as empress and I guess cured the plague? The other, Emily died, the rat plague killed almost everyone, and was not stopped. So I was wondering, (before I play the game again for nothing) are there more than two endings? And if you know, how do I get them?


apt-get install nautilus-dropbox uses high cpu resources

It is likely that the native dropbox app for Linux that is installed by  apt-get install nautilus-dropbox this method has a bug which is why it uses high CPU resources ? How to fix this?


Circulation visa - can I travel Greece first on my Schengen visa issued by French Consulate

I have a circulation visa(valid till march 2020) issued by French Embassy valid from march 2017. In my application I mentioned I will be visiting France(from London) for 4 days in mid April (which I will be), but due to some Official training I have to visit Greece(from London) for first two weeks of April, come back to London and then travel to France(as per the dates mentioned in my visa application), can I do so ?  In a nutshell can I enter Greece on a schengen visa issued by France, which was earlier not the plan? Does it impact my entry at Greece or France?


Two dipoles can form a quadrupole, two quadropoles an octopole. The textbook by Griffith then says ' and so on'. So how would a hexadecapole really look like? My impression was that the construction seems to rely on going to higher and higger dimensions.


How to convert Datatable to class list c#

I have a class with students details , when i retrieve the data from database iam storing in data table , how to pass data table values to class ?   public class Student  {       public int StudentId { get; set; }       public string StudentName { get; set; }       public string Address { get; set; }       public string MobileNo { get; set; }   }


Change file from being flagged as a 'system file' back to 'normal' state on windows 7

I have a mp3 file which is flagged as a 'System File' according to Windows 7.  Is there a way to change this file back to a 'Normal' file?


Why is determinant a multilinear function?

I am trying to understand (intuitive explanation will be fine) why determinant is a multilinear function and therefore to learn how elementary row operation affect the determinant.  I understand that it has something to do with the definition of determinant by permutations, due to permutation being a bijection, in each product of the determinant there is just one entry from each row, but what's next?


It is impossible to understand geometry nodes by yourself if you are relatively new to blender. Please suggest me a free course/tutorial/pdf to learn everything about geometry nodes. I don't care if it is several hours long but I want to understand everything! Please help me out.


The Wifi is working fine but no internet connection in Windows 8

I'm currently having a Problem with my msi GT70 laptop. my laptop is running windows 8 and yesterday it requested a Restart to Update. after the Restart and the update I tried to surf the net through google chrome, the WiFi connection is perfect but the page I tried to access is not loading at all, after a while it shows failure to load page. I disabled and reenabled the WiFi chip through the device manager but still no internet connection. I uninstalled and reinstalled the drivers, still no internet. I updated the Driver of the wifi, still no internet, I even went to Wifi configuration and tried to change the DNS and reset it back to automatically, still no Luck.. I'm really lost I don't know what to do, I don't want to go deep and play with Laptop DNA "aka: registry file" and screw things up. I really appreciate any help in this matter. thanks in advance.  Note: I tried to access many pages but no luck. I even tried Firefox, Opera, even ie still no luck. The internet is working fine on my tablet and cellphone, except for the Laptop.  [Add]  Okay so I connected my laptop to the modem, powered down the modem then turned it on, waited until everything is stilled no internet connection, it is like stuck in limbo trying to load the page but can't find it's way.. I reconnected the modem to the router, everything except the laptop connected to the net, I Flushed the DNS still no connection.  Note: the Previous Driver was Microsoft Drive for the WiFi, as I mentioned I did the Update the drivers to latest one.. [the Wireless route is the new Airport Express (Why in God Name did I buy it?)]  I will now attempt to Update the Ethernet and see if it will connect to the internet through  it..  [Additional Information]  Internet connection is OK.     Pinging to google using its IP it responds on the act. Pinging to google using its URL doesn't work.  Changing the DNS only works for a few seconds (really strange). Then, exactly the same issue appears.  Somehow, the computer cannot communicate with the DNS server.    [Update]  installing the qulacomm did not help.. neither connecting through the Ethernet nor the WiFi connects me to the internet..  here is a screen shot of the The Network Connection details ..


Do I need to check out and check in my baggage again in transit airport?

I am flying from Doha to Philadelphia by Qatar Airway. While in Philadelphia, I need to change flight to US Airway. But I only have 1 hour and a half before my next flight to Birmingham. Do I have enough time to check out and check in my baggage?  1.Kuala Lumpur (KUL)  Tue, 21 Jul 2015 20:50  2.Doha (DOH)  Tue, 21 Jul 2015 23:20  3.Doha (DOH)  Wed, 22 Jul 2015 01:10   Philadelphia (PHL)  Wed, 22 Jul 2015 07:45   5.Philadelphia (PHL)  Wed, 22 Jul 2015 09:40 Terminal F  6.Birmingham (BHM)  Wed, 22 Jul 2015 11:00


Sometimes, I am not satisfied with the answers that I get, though some are very good.  Do I have to accept an answer or can I just leave the question open?


I have some questions about the AND-gate which is made by two transistors in this picture below.   When input A or B or both are open (z) the output is '0' by default; is it right? When input A and B are '1', two transistors drive '1' to output so it is conflict because '0' and '1' are driven to output. But according to the truth table, the output is 1 when A & B are '1'. This is ambiguous for me. Please explain about it.


I have this piece of code just for testing regular expressions in Python.  #!/usr/bin/python import re  line = "(400,71.20,73.40) Cats are smarter than dogs"  matchObj = re.match( r'(\d{3}),(\d{2}.\d{2}),(\d{2}.\d{2})', line,re.I)  if matchObj:    print "matchObj.group() : ", matchObj.group()    print "matchObj.group(1) : ", matchObj.group(1)    print "matchObj.group(2) : ", matchObj.group(2) else:    print "No match!!"   It's supposed to print 3 groups (400)(71.20)(73.40), but instead always prints "No Match!!".  Can someone help me?  Thanks in advance


I just started programming in java (yesterday as a metter of fact) and I'm messin' around trying to learn the basics. So I decided that I wanted to read a string, save the words in an array of strings and then sort that array and output it sorted. Here's the code for it:  package project2; import java.util.Scanner;  class First {public static void main(String args[]) {   Scanner scan=new Scanner(System.in);     Second obj=new Second(2,3);     String s; // the string     String word[]=new String[10]; // the array of strings     int n=0; // the number of elements in the array     System.out.print("String: ");     s=scan.nextLine();     System.out.printf("This is the string: %s\n", s);     for(String i : s.split("[,. ]") )         {word[n]=i;         n++;}      for(int j=0; j<word.length;j++) //1      {for (int i=j+1 ; i<word.length; i++)          {if(word[i].compareTo(word[j])<0)              {String temp= word[j];               word[j]= word[i];                word[i]=temp;}}} //2       System.out.print("The sorted string is: ");     for(int i=0;i<n;i++)         System.out.print(" "+word[i]);   }}   Now, when I try to run it for the input:      aa bb cc   I get the error:     Exception in thread "main" aa bb cc java.lang.NullPointerException    at   project2.First.main(First.java:20)   Now the error comes from within 1 and 2, but I can't figure out what causes the error.


Proving convergence of infinite sum $\sum_{i=1}^{\infty} \frac{A}{(1+r)^i} = \frac{A}{r}$

I have to show that $\sum_{i=1}^{\infty} \frac{A}{(1+r)^i} = \frac{A}{r}$. Where $ -1 < r < 1$. I tried putting it like: $$\sum_{i=1}^{\infty} \frac{A}{(1+r)^i} = \frac{A}{r+1} + \sum_{i=2}^{\infty} \frac{A}{(1+r)^i}$$ However I don't know how to continue from here on.  This is not a duplicate, most other questions require $|1+r|>1$ which is not necessarily the case here. I would be very grateful if you could help me out or give me pointers how to solve this!


how do i prove that $17^n-12^n-24^n+19^n \equiv 0 \pmod{35}$

How do i prove that $17^n−12^n−24^n+19^n≡0(\mod35)$ for every possitive integer n. Can anyone give me a hint of how to start?


Are there any drawbacks to legacy BIOS as opposed to UEFI?

Are there any drawbacks to installing Ubuntu 13.10 (and soon 14.04) in Legacy BIOS instead of UEFI?  I have installed 13.10 64bit in Legacy by mistake and was just wondering if it would hurt anything to simply leave it there as is?  EDIT  Everything seems to be running just fine in Legacy and all my drivers work.


Image Capture on mac won't delete photos/videos off iPhone

My iPhone is running of of space so I connected it to my mac, ran Image Capture, chosen the ~40ish biggest videos on my phone (sort by size), click delete, app shows "Deleting...", then it disappears (no error) and videos are still there - both on screen and on the phone. Nothing happened.  What's the issue? MacOS 10.14.7,  Macbook pro 15" 2019, iPhone XS iOS 13.3.1  Thanks


Slight adjustment to all document font sizes in LaTeX

I would like to tune layout of a document by relative adjustment of all font sizes. Now the document is \documentclass[11pt]{book} with LuaLaTeX. What would be a working equivalent of \documentclass[10.8pt]{book}? (Preferrably standard LaTeX or stand-alone packages; switching class to KOMA or similar would be difficult.)


Prove the uniqueness of an inner product

Question: Let V be an inner product space s.t. $V=W_1 \oplus  W_2$. $W_1, W_2$ with the inner products $\langle ,\rangle_{W_i}$. Prove there exists a single inner space product $\langle ,\rangle_V$ s.t :  a. $W_2=W_1^\top$  b. if $u_1,u_2 \in W_i$ then $\langle u_1,u_2\rangle_V=\langle u_1,u_2\rangle_{W_i}$  Thoughts Only thing I thought about is saying that 2 of these exist and showing they are the same one... don't really know how to do that though.. Thanx


I have a sample code, I need to know if it's PDO secure (MySQL)

$s = "Update member_date" [snip] $p = $pdo->prepare($s, array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY)); $p->execute();   Is that considered a "prepared" statement to justify being secure from SQL injection-type attacks?  UPDATE:  $member_id= htmlspecialchars($_GET['member_id']); s1 = " update member_date set member_date= now() where member_id= $member_id";   OVERALL QUESTION: "Is this how I should format all my new SQL-related code? I'm just finally making the switch from old mysql statements after reading my (new) error logs. Do I need to add in the question mark placeholders for strings and such or is the format how I have it at the first line of code ok for security purposes? I know the SQL I need to get the tasks accomplished just not the PDO security parts."


understanding Debian dpkg package version numbers

When I type dpkg -l | grep xserver-xorg, I get list of installed packages and their versions:  ii  xserver-xorg               1:7.7+3~deb7u1 ii  xserver-xorg-core          2:1.12.4-6 ii  xserver-xorg-input-evdev   1:2.7.0-1+b1 ii  xserver-xorg-input-kbd     1:1.6.1-1+b1 ii  xserver-xorg-input-mouse   1:1.7.2-3 ii  xserver-xorg-video-radeon  1:6.14.4-8   I am wondering what the number  infront of the colon means, ie the number 2 in 2:1.12.4-6


What is this triangle icon [Samsung Galaxy S9+]?

It appeared recently. And I can't even imagine what is it.      Screenshot (click image for larger variant)


I need a large family of  objects of the following (for MWE reasons) simplified type .   %  \section{  Whatever description for  $F_{q  \raisebox{-.1cm}{\tikz[scale=.25] {  \draw [red,double] (1,0) -- (0,1) ;   \draw [blue,double, ] (0,0) -- (1,1) ;    \draw [violet,double] (2,0) -- (1,1) ;     \draw [green,double, ] (1,0) -- (2,1) ;  }}r}$ %  }  %  \subsection{  Whatever description for  $F_{q  \raisebox{-.1cm}{\tikz[scale=.25] {  \draw [red,double] (1,0) -- (0,1) ;   \draw [blue,double, ] (0,0) -- (1,1) ;  }}r}$ %  }     If I uncomment these lines, thus putting them in (sub)sections, I get errors.   \documentclass[a4paper,10pt]{amsart} \usepackage[utf8]{inputenc} \usepackage{tikz} %openin  \begin{document}      \section{  Whatever description for  $F_{q  \raisebox{-.1cm}{\tikz[scale=.25] {  \draw [red,double] (1,0) -- (0,1) ;   \draw [blue,double, ] (0,0) -- (1,1) ;    \draw [violet,double] (2,0) -- (1,1) ;     \draw [green,double, ] (1,0) -- (2,1) ;  }}r}$     }      \subsection{   Whatever description for  $F_{q  \raisebox{-.1cm}{\tikz[scale=.25] {  \draw [red,double] (1,0) -- (0,1) ;   \draw [blue,double, ] (0,0) -- (1,1) ;   }}r}$      }   \end{document}   How to type them correctly, so that they can appear in the headings (and TOC). The latter seems to be the problem:  \@writefile{toc}{\contentsline {section}{\tocsection {}{1}{ Whatever description for $F_{q \unhbox \voidb@x \let \reserved@d =[\def \par }$ }}{1}}


name and author of story about man who escapes by uncontrolled jump into hyperspace

I read a story once about a man who escapes from his pursuers by doing an uncontrolled jump into hyperspace. If I'm not mixing my stories up he was blind but could see through the eyes of other sighted people/animals nearby. He was able to see through his pet but it dies and he thinks he's finished - he's blind and lost in hyperspace but there's a rat on board which he eventually catches by turning off gravity and then he can see through the rat's eyes. He works out how hyperspace operates and can hop back to where he came from.   Can anyone remember the name of the story and the author? I enjoyed it when I was a kid and would like to read it again.


I use Ubuntu 17.10 with i3 as window manager. I would like to backup my home directory to an external HDD. How could I do such a thing? With the terminal?


Because of the Rule of Two, is/was Sidious the strongest Sith ever?

The Sith Rule of Two says: One to embody power, one to crave it. It's like a survival of the fittest.   If the apprentice must kill the master to be the master, that usually means the apprentice is stronger than the master. If this chain went on for many years, does this mean Sidious was the strongest Sith ever, just by the transitive property?


Why doesn't the range of $f(x)=\sqrt{x}$ include negative numbers?

It is definitely true that $\sqrt{9}$ is both $3$ and $-3$, and that $\sqrt{25}=-5,5$.   When I graph the function $f(x)=\sqrt{x}$ its range is shown to be $y\geq0$.  Why doesn't its range include negative numbers?


The  software is built into the PC, and is the first code run by a   PC when powered on ('boot firmware'). When the PC starts up, the first   job for the BIOS is the power-on self-test, which initializes and   identifies system devices such as the CPU, RAM, video display card,   keyboard and mouse, hard disk drive, optical disc drive and other   hardware. The BIOS then locates boot loader software held on a   peripheral device (designated as a 'boot device'), such as a hard disk   or a CD/DVD, and loads and executes that software, giving it control   of the PC.[2] This process is known as booting, or booting up, which   is short for bootstrapping.   Which requisites determine that a computer system must have a BIOS installed on it?  Why can't the Operational System actually do all of the BIOS work?


Closure of the invertible operators on a Banach space

Let $E$ be a Banach space, $\mathcal B(E)$ the Banach space of linear bounded operators and $\mathcal I$ the set of all invertible linear bounded operators from $E$ to $E$. We know that $\mathcal I$ is an open set, and if $E$ is finite dimensional then $\mathcal I$ is dense in $\mathcal B(E)$. It's not true that $\mathcal I$ is dense if we can find $T\in\mathcal B(E)$ injective, non surjective with $T(E)$ closed in $E$, since such an operator cannot be approximated in the norm on $\mathcal B(E)$ by elements of $\mathcal I$ (in particular $E$ has to be infinite dimensional).  So the question is (maybe a little vague): is there a nice characterization of $\overline{\mathcal I}^{\mathcal B(E)}$ when $E$ is infinite dimensional? Is the case of Hilbert space simpler?


OBJ file imported renders without texture

I posted this question:  and wasn't able to figure out my issue with the answers I was given and cannot find anyone else asking anything similar, so I imagine it's something quite simple that I'm just missing.  The issue I am having is that I am trying to use blender to reduce the filesize of a 3D model in obj mtl format to export it to three.js in json format, however whenever I export or render it, it exports and renders without the texture and I have narrowed it down to the fact that I have not assigned the model a material and texture within blender.  I do not have the texture, as importing the obj mtl files constructs the texture from a separate format, so from my understanding the texture is entirely encapsulated within blender and is displayed perfectly well in the editor, but during the render it is not there, presumably because I can't give it a material and texture.  Am I missing something obvious here?  Is there a way to construct a texture file from what I currently have?  Sorry if posting two questions is not appropriate etiquette, but I feel as though I understand the issue more now and the nature of the question has changed.  EDIT:  I will try editing here to fully explain what I believe the problem is with the answer I was given.  When I was given the scan, I was given 3 files.  I have a .obj file, a .mtl file and a .png file that contains the texture.  However, the mapping of the texture in the .png file relies entirely on the obj and mtl files to construct it.  If I map the png file directly onto the mesh, this is what happens:    However, the texture is correctly constructed within the blender environment.  I need to find a way to attach the texture as it is displayed in the editor to the mesh so that it is displayed in the render using the texture that was constructed by blender when I imported it.  It is not simply an issue of not applying the texture to the material, but rather that I don't have a texture to apply to the material, but blender does.


Is the objective of this mutual fund only dividend return? (WILCX)

Why does the share value decrease significantly every year but the growth of hypothetical 10k skyrocket?  The value of a share went from 14.12 Feb 2012 to 7.78 as of today.   I am unsure when to sell my shares in this fund due the significant loss in value over time. Is the yield supposed to make this a worthwhile investment that it can somehow combat the funds losses with reinvestment?


How do I troubleshoot the "Error, press shutter release button again" message on my Nikon?

The LCD on my Nikon D3000 is displaying the following error message:     Error. Press shutter release button again.   I have pressed the shutter release button but the camera still does not work.


Can we ever get an irrational number by dividing two rational numbers?

If we try to divide any two random arbitrarily long rational numbers like   103850.2387209375029375092730958297836958623986868349693868398659825528365...   and  127.123123123...   Is it guaranteed that the result is also a rational number?


The search parameter isanswered ignores acceptances

The SE definition of "answered" question is: has an answer that is either accepted or has positive score. But the search parameter isanswered appears to ignore the "accepted" clause: when set to "no" it still returns questions with an accepted answer, as long as it has 0 score.    to reproduce the bug (unless meta effect kicks in and the answers get upvotes).     By the way, it seems that isanswered works only when is:question is present, but I'm not complaining about that... yet.   Also, this parameter is not listed on the , but I'm not complaining about that either... yet.


Closed unit disk is not homeomorphic to the real plane R^2?

I am trying to proof that there is no homeomorphism between the closed unit disk and the real plane but i can't.Please help me.


In , I can do something like this:  ALTER SEQUENCE serial RESTART WITH 0;   Is there an Oracle equivalent?


How can I report bugs with or request features for the Stack Exchange mobile apps?

I'm using the official Stack Exchange mobile app for iOS or Android, and  My app crashed! It doesn't look good on my new smartphone. It won't run after I updated my device. I noticed another bug. I have an idea for a new feature which is currently not in the app.  How do I report bugs with or request features for the iOS and Android apps? Also:  I've used the built-in functionality of the app to report a bug or submit a feature request. Did I do the right thing? The app prompted me to post on Meta after an error occurred. Should I post about it here? I'm wondering why the latest version is from 2017. I've heard rumors that the apps are no longer supported; is that true? I can't find the app on my device's app store anymore! Where did it go?     We get a lot of bug reports from users about the mobile apps, which are unsupported, and at the moment, there is no centralized Q&A pair for those to be closed as duplicates of (the relevant answers are spread across multiple unrelated questions). This question is an FAQ proposal, to serve as a directly-related duplicate target for those questions.


Is Angular Momentum Defined Only For Spinning Objects?

I was just going through some of the lectures of angular momentum where it was defined as  Conservation of angular momentum, one of the fundamental laws of physics, observes that the angular rotation of a spinning object remains constant unless acted upon by external torque.  But I found quite a decent example that contradicts this. Consider a bullet (point mass) having a velocity that strikes a coin on its edge.The coin will definitely start spinning!! If the bullet(being a point mass) had no angular momentum then how could it transfer it to the coin? Please suggest how can I understand this..


How does spell levelling work with multiclassing?

Suppose I am a level 10 rogue and take a level of sorcerer, giving me the firebolt cantrip. Normally, on a successful hit, the target takes 1d10 fire damage. Furthermore, the description says:     This spell's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).   How much damage should I be rolling? 1d10, because I am a level 1 sorcerer? Or 3d10 because I have attained 11 levels?


Suppose $\mathcal{A}, \mathcal{B}\subset\mathbb{R}^2$ are polytopes. Suppose also that I know that there exists a polytope $\mathcal{X}$ such that $\mathcal{A}+\mathcal{X}=\mathcal{B}$.     Is $\mathcal{X}$ defined uniquely? (How about uniquely "up to translation"?)   This means that the idea of "subtraction", as the opposite of addition, makes sense. (I know that there is a subtraction defined for polytopes, but I am having some trouble connecting it to the above.)    The solution to my question follows from the "duplication" link as if $\mathcal{A}+\mathcal{X}=\mathcal{B}$ and $\mathcal{A}+\mathcal{Y}=\mathcal{B}$ then $\mathcal{A}+\mathcal{X}=\mathcal{A}+\mathcal{Y}$, and hence $\mathcal{X}=\mathcal{Y}$ as required.


Show parent child relationship of taxonomy term in view

I am looking for a way to display the list of taxonomy terms in a view indenting the child tax terms. I need to be able to see all Taxonomy terms including the ones that do not have children terms. any ideas?  Domain 1      Sub-domain 1     Sub-domain 2 Domain 2     Sub-domain3     Sub-domain4 Domain 3 Domain 4   I tried to follow the suggested solutions but they did not work out for me.  The first one in the link is asking you to provide a parent taxonomy term to filter by. I want to get the complete list.  the Second one only provide the Taxonomy terms that have a parent child relationship. I need to see all taxonomy terms even if they don't have children.  Here is the screenshot of my view setup, I followed the exact steps outlined by louieliu.  As you can see it only shows Environment with subchildren of Soil and Weather but does not show the other Domains without subchildren.


i want to write small select something like this   select t.id,func(t.name) from table t where func(t.name)>0   but i want to call function func only once  Can anybody help me?


Is it possible to set up wifi hotspot on an ubuntu machine?

I am running Ubuntu 16.04. Is it possible to set up wifi hotspot from my machine so that I can use internet on my mobile devices?  It may be noted that I am using laptop.


How Do I Chat with my Twitch.tv viewers in Minecraft?

I am streaming my Minecraft game using the built-in Twitch.tv integration. I would like to chat with my stream viewers directly from Minecraft, but I don't know if it is possible, or how.


Why do community managers have more accounts (121) than Community ♦ (106)

I noticed that community managers have more accounts than Community ♦, for example         So, somewhere (15 sites!) there is no Community ♦, who     Randomly poke old unanswered questions every hour so they get some attention   Own community questions and answers so nobody gets unnecessary reputation from them   Own downvotes on spam/evil posts that get permanently deleted   Own suggested edits from anonymous users   Remove abandoned questions   ?


Were the Deathly Hallows invented for book 7?

When I read "Deathly Hallows", the whole idea seemed to be less organic to me. Unlike Horcruxes that were foreshadowed ever since "Chamber of Secrets" and subsequent books, the idea of Hallows seemed to be something JKR just stuck into the seventh book as a "last moment" idea.  Did Rowling address this somehow in terms of when she started planning for the idea of Hallows?


Java Runtime Error: Exception in thread "main" java.lang.NullPointerException

I was solving an algorithm problem using java and got this runtime error: Exception in thread "main" java.lang.NullPointerException     at java.io.FileOutputStream.<init>(FileOutputStream.java:203)     at java.io.FileOutputStream.<init>(FileOutputStream.java:101)     at java.io.FileWriter.<init>(FileWriter.java:63)     at Main.main(Main.java:50)  I don't have much experience with java so I am sharing my code here: import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*;  public class Main {      // Complete the breakingRecords function below.     static int maxXv(int[] gymXp, int strength) {         int temp = 0;         int xp = 0;         int max = gymXp[0];                  for (int i = 0; i < gymXp.length; i++){               if (gymXp[i] > max) {                  max = gymXp[i];              }         }         int digiSum = 0;         int num = 0;         for (int j = 0; j < gymXp.length; j++){             if (j == gymXp.length-1){                 xp += strength*gymXp[j];                 System.out.println("Battling Cuz im last, strength "+strength+ " xp="+ xp);                 continue;             }             if (gymXp[j]==max){                 xp += strength*gymXp[j];                 System.out.println("Battling Cuz im biggest, strength "+strength+ " xp="+ xp);                 continue;             }             num = strength;             digiSum = 0;             while(num!=0){                 digiSum = digiSum + num % 10;                 num = num/10;             }             strength += digiSum*digiSum*digiSum;             System.out.println("trained and now , strength "+strength+ " xp="+ xp);         }         return xp;     }      private static final Scanner scanner = new Scanner(System.in);      public static void main(String[] args) throws IOException {         BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));          int n = scanner.nextInt();         scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");                  int strength = scanner.nextInt();         scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");          int[] gymXp = new int[n];          String[] xpItems = scanner.nextLine().split(" ");         scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");          for (int i = 0; i < n; i++) {             int xpItem = Integer.parseInt(xpItems[i]);             gymXp[i] = xpItem;         }          int result = maxXv(gymXp, strength);          bufferedWriter.write(String.valueOf(result));          bufferedWriter.newLine();          bufferedWriter.close();          scanner.close();     } }   I don't understand what the error is about and when I run it on  it works just fine but it's giving me the above error on (which is where I was solving this problem). Please help me as I have been stuck for hours with this issue


Should I use "who" or "that" when referring to an organisation?

I generally use the rule of thumb of using who when referring to a person and that when referring to an object. Example:  Jim is someone who makes me smile. I was nearly knocked out by the ball that hit me.  But what about when we're talking about an organisation?  I am forever indebted to the charities who helped me. I am forever indebted to the charities that helped me.  The former seems somewhat warmer, if that makes sense, although the latter feels more correct. What should I use? And how about this:  I'm really happy with the insurance company who helped me with my claim. I can't stand them, they're the insurance company that ripped me off.  To me the former evokes a team of helpful people while the latter evokes a cold heartless corporate entity. Is this just a matter of style and so should go with my instincts, or should I aim for what is 'correct?'


Travel from Tokyo to Sendai with Shinkansen

I need to travel from Tokyo (Tokyo station or Shinjuku station) to Sendai but I am very confused on if I can take the Shinkansen train. I do not want a rail pass for many trains or many days since I am not there for tourism but all I can find is info about passes.   The question is how can I book in advance a Shinkansen train ticket to Sendai?


What is Markdown for underscore/underline? Is there any?

Is there a way to make underscored/underlined text?  I read editing help and there seem to be nothing about that. By underscored I mean what in HTML is done with ...:  Alice wanted to emphasize that her dress is fabulous.   "Layman's logic" would suggest using actual underscore _ to create such feat but it make things italicized.  So question remains - is there a way to underscore a text?


Why os.sytem won't show desktop notification to user?

I have a simple Python script here:  #! /usr/bin/python import os  os.system('notify-send Hello "This is a message"')   When I, as a normal user, run the script in terminal as ./notification.py, a desktop notification is displayed on the screen with the contents Hello This is a message. However, when I (normal user) run sudo ./notification.py, no desktop notification is shown. I am unable to understand this behaviour and how to go about solving it or working around it.  PS:   OS - OpenSUSE Leap 42.1   DE - KDE Plasma v5.5.5


Induction.provide formula. prove it by induction.

I have done the formula but im not sure how to prove this by induction. Can anyone provide me a solution to this part? (solution was not provided)    $$a_n=\frac{n}{4n+1}$$ is the explicit formula I got.


Assume that the metric space $(X, d)$ is not compact. Show that there exists $f:  X\to \Bbb R$ which is continuous but not bounded. The only function in my mind is $f:  X\to \Bbb R$ defined by $f(x)=\|x\|$. I know this function is continuous. I don't know if it is bounded or not. I need a hint how to choose this function.


Why do monitor resolutions of 1366x768 *and* 1360x768 exist?

My monitor's resolution is 1366x768.  But I'm also able to configure it to 1360x768 (note the zero), thus implying that monitors of this size exist.  Occasionally, when I plug my laptop into my TV I lose the extra three pixels on each side, but only notice because the screen tells me the resolution.  Why do two different monitor sizes of nearly the same size exist?    This is not a duplicate of .  The actual resolution is irrelevant.  I'm asking about the need for two resolutions that are very close in size.  If the resolutions up for debate were hypothetically 1024x768 and 1020x768 (note the width), I would still be asking this question.


Why can't a particle rotate about its axis?

When treating an atom as a point partcle, it is usually assumed that it cannot rotate about its axis. Is it that anything considered as a point particle cannot rotate about its own axis? If so, why is that the case?


how to recall last argument in bash with vi setting

I use set -o vi setting in bash. The shorcut Alt+. (recalling last argument of previous command) here doesn't work as in emacs mode, so what is the equivalent for vi?


Is there any link (eg: w3schools) where one can practice writing the test classes in Apex ? I am new to Salesforce and hence having confusion in writing the test classes in Apex.


Do black holes have infinite areas and volumes?

How to calculate the area / volume of a black hole? Is there a corresponding mathematical function such as rotating $1/x$ around the $x$-axis or likewise to find the volume?


Do multiple beams from Eldritch Blast happen simultaneously or not by RAW?

After reading , I was quite surprised to learn that  can be considered to not fire the beams simultaneously. Given that the spell's duration is instantaneous, I assumed it was clean cut that they all fired simultaneously. However,  seems to think differently:  Jeremy Soard: @JeremyECrawford Eldritch Blast: are the attacks resolved in parallel or sequence? Do you have to pick all the targets first before rolling? JeremyECrawford: Multiple attacks on the same turn aren't simultaneous, unless a feature or spell says otherwise.  However, there are many who don't accept Crawford's rulings as being meaningful. However, it is enough for me to realise that it's not as clean cut as I originally assumed. I'm interested in knowing what the RAW interpretation is, discounting the above information from Crawford. So, based on RAW, meaning only what's printed in a published book, do multiple beams from eldritch blast happen simultaneously or not? Note that I haven't found any duplicate Q&As on this site, except possibly those that use the above quote from Crawford as an answer. I'm specifically asking about a RAW-only interpretation.


Which experiment would be able to detect change in the speed of light?

Since the unit of distance is  in vacuum, if the speed of light in vacuum were to change by "magic", what experiment would be able to detect that? Is there a theory which says that the speed of light is not a function of time (in the same medium)?   edit. people voting for close,


Here, you try:  If it weren't for the text shadow, it might as well be entirely invisible...  The cause is a CSS rule lurking in the transcripts for beta sites only:  #transcript-logo {   background: none repeat scroll 0 0 #273A5D; }   The problem is the #273A5D - a bluish colour not dissimilar to that used for the site name in the beta theme. Disabling that rule yields the much more manageable  I'll admit it is a little hard to read the "beta" in that shot. But if you had to choose which part was readable, wouldn't you choose the bit that tells you the name of the site?  Edit: It happens when actually in a chat room too!


Distinguishing half sibling, uncle or half nephew using Ancestry DNA?

My husband did ancestry dna to find any info on his biological fathers side.    He just got a “close family” match with whom they share 1440 cM across 49 segments.  Is it possible to be a half sibling?   Or more likely that is match is my husbands half nephew?    I don’t think the match is my husbands uncle only because of age but maybe possible.


Newton's cradle: why not twice the balls at half the speed?

For "Sinterklaas" (Dutch holiday) I got a Newton's cradle. I understand the basics of it, but a couple things bother me.  If I drop one ball, one bounces off. If I drop two, two bounce off. Why, if I drop one, don't two bounce off at half the speed? And the other way around, if I drop two, why doesn't one bounce off at twice the speed?  What would happen if I'd stick two together, and drop one on the other side? Would the two then go with half the speed? Is this the same as a ball that's twice as heavy as the others?  And for bonus points: would there be a way to make one ball shoot off at a higher speed as whatever I drop?  If possible, please eli5.


I have a table products structure like this    product_id   product_name   product_created_date   product_expiry_date  availability   ----------   ------------   -------------------    -------------------  ------------     1           x             12-NOV-13                14-JUN-14               No     2           y             13-DEC-13                   null                Yes     3           z             14-DEC-14                14-DEC-15              Yes     1           p             12-NOV-13                14-JUN-14              Yes      ----        --             -----                     ----               ----         I need a query like :  select product_id from products where (product_expiry_date>='12-DEC-14' or product_expiry_date is null) and availability='Yes'   how to do this using EntityFieldQuery?


There are two questions:        Image of a countable set of real numbers under any continuous function is countable?      My claim is yes. Let $X$ is countable $\implies X=\{x_1,x_2,\ldots,\}$. Now $f(X)=\{f(x_1),f(x_2),\ldots,\}$ which can be atmost countable. Now my question is "What is the role of continuity here?"        Image of a uncountable set of real numbers under any non-constant continuous function is uncountable?      I feel this is true. But unable to proceed. Please provide me a hint.


Mounted combat - move, attack, disengage, move. Possible?

Paladin, Mounted Combatant feat, Great axe, riding a Warhorse.  I'd like to ride 30ft to the mob, bash him with my axe, have the steed disengage, and ride 30ft back.  Can I do this?  Jeremy seems to be confusing me.  :)  Spell text: "Your steed serves you as a mount, both in combat and out, and you have an instinctive bond with it that allows you to fight as a seamless unit."  A seamless unit, eh?  Sounds good so far....  Mounted Combat in PHB: "The initiative of a controlled mount changes to match yours when you mount it. It moves as you direct it"    OK, so it has the same initiative score as me, this isn't looking good...  Jeremy Tweet from 2017: "A rider and a controlled mount have separate turns, but they have the same initiative, which means you decide which one goes first."  SEPARATE TURNS.  So much for a seamless fighting unit.  Can't ride up, bash, disengage, and ride away.  Dragon Talk with Jeremy Crawford from 2018: "If you control the mount, the creatures initiative changes to your initiative. You're now acting as a unit. It still has a turn, but it's turn OVERLAPS with yours, it gets its move, its moving on YOUR turn, so then far easier for your character to co-ordinate with the mount, and it's actions are limited to dodge/dash/disengage. It won't attack. The fact that it can disengage means it can move without opportunity attacks, and the beauty of it acting on your turn, with its turn overlapping with yours, is that also your movement is still free and your actions are still available. So it's a movement and action extension for the rider. A really powerful advantage. Even though it gives up ability to attack, you gain all this on your turn all this potential movement, and a free dodge/dash/disengage, and a dash means even more movement."  This contradicts his earlier tweet, and goes further than the PHB.  What's the actual facts?


How to prove Gauss’s Multiplication Formula?  $$\Gamma(nz)=(2\pi)^{(1-n)/2}n^{nz-(1/2)}\prod_{k=0}^{n-1}\Gamma\left(z+\frac{k}{n}\right)$$  ()  Any help like an answer or link would be appreciated. Thanks for all help.


Optimized way of splitting a string with minimum iterations

Let's say 's' is a user input string and 'n' is a user input number which is less than  the length of the string. Define a function strsplit(s,n) (which will accept both the user input as arguments) and  split the input string in to multiple substrings each of n length seperated by a space character.  example: lets say s="abcdefghij" and n=3 then functions strsplit(s,n) should print  abc def ghi j   Optimized solution with minimum iterations which I can find is as below  def strsplit(s,n):  ln=len(s)  for i in range(0,ln,n):    print(s[i:i+n],end=" ")   Can be there an improved and optimized solution that the above one?


Does my toddler have night terrors or anything else?

My daughter is 2 years and 7 months old. Sometimes at night, she starts crying badly during sleep and wakes up, but does not stop crying. She calls me mama mama and when I hold her she never stops crying as if she had severe pain in her body. Then she wants to go to her father, but doesn't stop crying.   We offer many things, but she does not want to take anything at that time. We ask about pain, but she doesn't reply, just cries badly. We ask her if she was scared? But she doesn't respond. After 15 to 30 mins or more she stops by herself and sleeps. It happens almost every month. I am worried about her.   Is this normal or not?


After editing a post in the first posts queue, I am switched to the suggested edits queue

I was reviewing some first posts, and I decided to fix a typo in one of them.    This post had one suggested edit in the queue, so editing it brought up the edit review page. The edit didn't fix the typo, so I went to improve it.  After I fixed the typo, I found myself at the next item of the suggested edits review queue, rather than back among the first posts.  I think that you ought to stay in the queue you were browsing in such a situation, and be able to complete your original review.


Which Distribution Does the Data Point Belong to?

I have two distributions which are derived from 2 separate sets of data. These distributions are not normal, and it is not clear at this point if they belong to any family of known pdfs (they are not symmetric either). Given a data point, I need to decide which distribution it is most likely to belong to. If these were normal distributions, I could do usual parametric tests and go from there, but in this case I am not sure how to proceed. I searched around a bit, but I couldn't find anything, probably because I am not using the right keywords. Any help is much appreciated.  Edit to clarify: I should have mentioned that it was univariate. I might as well explain the actual problem here as well. We have time-spent data for users on websites. We also have information on whether a user liked or disliked some of those sites (about 4% of all the sites). So we know the distribution of time spent for like and dislike. An obvious question, then, is for a random user who spent x amount of time, are they more likely to have liked the page or dislike the page. Our time spent information is based on seconds, so the distributions are really discreet, but in real life, they are continuous.


How can I reverse the direction of bones in my armature?

I spent a lot of time building up my armature for my dragon model and then, after I was all done and started to refine it, I realized that the bones from the pelvis out to the end of the tail were pointing the wrong way - they need to have their heads pointing the other direction:    I don't want to have to delete these bones and start over.  Is there an easy way to switch the direction of the tail bones?


Windows waking from Sleep/Hibernation after 15-25 minutes

My machine is waking every 15-25 minutes after they are put into sleep/hibernation (issue persists with both). I'm running Windows 10 right now, but the issue was already present in Windows 8.1 (and hence I upgraded, hoping to fix the issue).  I know it is not the first time this issue has surfaced. But after looking for a solution for multiple hours, no solution came up. Here's what I tried so far:  1. Turn off "Allow this device to wake the computer"  I've turned off this option for every single device in the device manager. powercfg -devicequery wake_armed returns NONE.    Lastwake doesn't yield anything useful either.   2. Disabled wake timers    Also, Multimedia settings -> When sharing media -> Allow the computer to sleep.  3. Don't allow automatic maintenance to wake up PC     4. Power-Troubleshooter: All Wake Sources unknown  This is especially frustrating. Every single entry shows an unknown wake source.   5. BIOS: Disable Wake  My motherboard is a MSI Z87-G43 (unfortunately I can't take a screenshot of the BIOS).  6. Task-Scheduler: No tasks waking the PC    7. Remove Ethernet cable  I've unplugged the Ethernet cable before going to sleep/hibernation. No effect.  8. Energy report    No devices have "made a request to prevent the system from automatically entering sleep."    Does anyone know how to fix the issue?


I currently have four panniers (two front, two rear) on my touring bike and plan to purchase a new touring bike which comes with front suspension forks. Is it possible and if so, safe to add front panniers to a front suspension fork?


How to show that an estimator is consistent?

Is it enough to show that MSE = 0 as $n\rightarrow\infty$? I also read in my notes something about plim. How do I find plim and use it to show that the estimator is consistent?


Pokemon GO special attacks and blue energy bars

Are high powered special attacks with a smaller number of large blue energy bars better than low powered special attacks with a higher number of small energy bars?  For example, is having a special attack with 70 damage and 1 blue bar better than having a special attack with 15 damage and 5 blue bars?


Webpages being de-indexed seemingly for no reason

Last Wednesday my site had a ton of its paged de-indexed by Google and it's caused a drop of over 60% in overall site traffic :(... One of the pages used to rank first page #1-3 and now it doesn't even show up if I type the exact URL in the search bar.   I have tried redoing the sitemap (of which only half the pages are even being indexed - no idea why) and submitting the URLs directly. All to no avail.   I don't use any blackhat tactics for SEO, there are no manual actions, and I checked Barracuda and the drop in traffic has nothing to do with recent updates.  I'm confused as hell and so far no one has been able to help. If there's anyone out there with some bright ideas I'd really apprecaite it. Kind of panicking right now.


Can I adapt UV map after geometry change?

Is there any way to repair a pre-existing UV map after deleting some unnecessary faces and replacing them by a simpler geometry? Everything of the old mapping works fine. Unfortunately my new vertices are all positioned at the bottom left of the UV map. This leads to rather odd textures in the front of my car model. (See screenshot below reference.) Unfortunately I don't understand yet how customized uv-mapping works. I just want to adapt pre-existing models. I expect I would need to add the new faces to the proper selection group. But how can I do that?


What is the best structure on tag URL for google SEO? For example: example.com/tags/episode/black example.com/tags/episode/green  example.com/tags/course/black example.com/tags/course/green  or example.com/episode/tags/black example.com/episode/tags/green  example.com/course/tags/black example.com/course/tags/green


continuous function from $[\pi,2\pi]\to \mathbb{R}^2$

$f:I=[\pi,2\pi]\to \mathbb{R}^2$ be given by $f(t)=(\cos t,\sin t)$  which of the following are necessarily correct?  $1$. $\exists t_0\in I$ such that $f'(t_0)=\frac{1}{\pi}(f(2\pi)-f(\pi))$  $2$. $\nexists t_0\in I$ such that $f'(t_0)=\frac{1}{\pi}(f(2\pi)-f(\pi))$  $3$.$\exists t_0\in I$ such that $\pi||f'(t_0)||\ge ||(f(2\pi)-f(\pi)||$  $4$. $f'(t)=(-\sin t,\cos t)\forall t$  $4$ is clearly true, $1$ is true by Mean Value Theorem as $f$  satisfies all the conditions of MVT? have no idea of $2$ and $3$, Thank you for help


Order of a sum of elements in an abelian group

We need to prove the following statement:     Let $A$ be an abelian group, $x_1,\dots,x_h \in A$ and let $q_1,\dots,q_h$ be prime numbers. Suppose that, for all $1 \leq i \leq h$, there exists $k_i \in \mathbb{N}$ such that $o(x_i) = q_i^{k_i}$. Then $o(x_1 + \dots + x_n) = \prod_{i = 1}^h q_i^{k_i}$.   First, since we're assuming that $q_1,\dots,q_h$ are prime numbers, we have that $\gcd(q_1^{k_1},\dots,q_h^{k_h}) = 1$. Thus $\text{lcm}(q_1^{k_1},\dots,q_h^{k_h}) = \prod_{i=1}^h q_i^{k_i}$. Obviously, we have that: \begin{equation}  \prod_{i = 1}^h q_i^{k_i} (x_1 + \dots + x_h) = 0 \end{equation} This implies that $o(x_1+\dots+x_n)$ divides $\prod_{i=1}^h q_i^{k_i}$. Now I'm stuck. How to complete the proof?


Remove user and hostname from Gnome Terminal window title?

Does anyone know if it's possible to remove user and hostname from Gnome Terminal? I wish to only see the running command there.


In the field I work in, it is customary to use a graphical representation of some mathematical concepts. For my thesis, I have been creating a batch of figures containing these representations. These figures are very similar to those in one of my sources. I am wondering if I should cite that source in some way.  Some of my considerations:   The general form of the images is widely used in the field I am making all figures myself, so no direct copying


Symbolizing using RGB values from Excel in ArcGIS Desktop?

I have an excel file with 2 attribute columns, 1-feature info 2-Number of color (RGB) that the current feature should be symbolize. This file file can be joined with the layer using the "feature info" field which is unique (join by attribute table). So i have as attribute the color number attribute for every polygon feature.  How can  i use this this information to symbolize every feature with their attributed color already imported from the excel sheet?


Seeking QGIS equivalent to Focal Statistics of ArcGIS Spatial Analyst?

I'm attempting to use QGIS v2.0.1 to accomplish the same tasks that I can do using ArcMap v10.1 and I'm running into some trouble finding equivalent tools. In ArcMap I am using the Focal Statistics (mean) Spatial Analyst tool and I do not know if GRASS or SAGA has an equivalent in QGIS.   Does anyone know what the tool would be called if it exists?


How to pair a xrightarrow with text on the top) to a sort of xleftarrow (with text on the bottom)?

I want to to show a two-way relations between A and B, where the arrow from A to B should have some text on top of it, while the relation (arrow) from B back to A should have some text on its bottom.  Which symbols are available that could be used for that?


Trilogy of books set in the future with "knights", "priests", and dwarfs and a rebellion

In the 80s, I was introduced to a sci-fi/fantasy trilogy of books. The books were set in the future. There were "knights", "priests", and dwarfs. The dwarfs were help for the knights. As the books evolved, the churches that the commoners were "controlled" by and went to used technology claimed by the priests to be divine power, but it was revealed as the books developed that the  making of sounds and visuals in church was technology of the past that was hidden from the commoners but used to convince them that the "priests" had powers. What the priests were using was tape players and projectors. I kind of remember the main character was a young man who became a knight, but rebelled against the control of the workers/commoners by the religion's "priests".  I read these books in the early to mid 80s. If anyone has a memory or any thought to what these 3 books are, let me know.


Biblatex - Texmaker auto-complete commands

Is there a way to employ auto-completion for Biblatex commands (not entries) in Texmaker without writing all commands in User Customization Auto-Completion manually?


How do I enable my Bluetooth adapter on Dell Inspiron N4030?

I'm using Dell Inspiron N4030 laptop. I'm using Ubuntu 13.04 64 bit.   Bluetooth adapter is not found. How to active that?  rfkill list 1: phy1: Wireless LAN     Soft blocked: no     Hard blocked: no 2: brcmwl-0: Wireless LAN     Soft blocked: no     Hard blocked: no


What if I don't have [::] in my nginx config file?

My nginx config looks like this: server {     listen 80 default_server;     index index.html; }  Must I add listen [::]:80 default_server; or is it not mandatory? So the config will end up looking like this: server {     listen 80 default_server;     listen [::]:80 default_server;      index index.html; }  I found that it is for IPv6 configs, but I am not sure, I understand what does that mean in this context/config file. Could you elaborate more? Sorry, for noob question.


I have a UITextField set up to show a number pad.  How do I require the user to enter exactly 5 digits?     I poked around and saw I should use shouldChangeCharactersInRange but I'm not quite understanding how to implement that.


How to transfer multiple material to object?

I have a model assigned different materials on different part, now I import a new identical model,how can I transfer assigned materials to new object without going into edit and assign them again ??


Is my host machine completely isolated from a virus-infected virtual machine?

If I am running a Windows 7 virtual machine on a Windows 7 host using VMWare or VirtualBox (or anything else) and the virtual machine is completely overloaded with viruses and other malicious software, should I worry about my host machine?  If I have an anti-virus program on host machine will it detect any problems?


Maximum likelihood estimators for a truncated distribution

Consider $N$ independent samples $S$ obtained from a random variable $X$ that is assumed to follow a truncated distribution (e.g. a ) of known (finite) minimum and maximum values $a$ and $b$ but of unknown parameters $\mu$ and $\sigma^2$. If $X$ followed a non-truncated distribution, the maximum likelihood estimators $\widehat\mu$ and $\widehat\sigma^2$ for $\mu$ and $\sigma^2$ from $S$ would be the sample mean $\widehat\mu = \frac{1}{N} \sum_i S_i$ and the sample variance $\widehat\sigma^2 = \frac{1}{N} \sum_i (S_i - \widehat\mu)^2$. However, for a truncated distribution, the sample variance defined in this way is bounded by $(b-a)^2$ so it is not always a consistent estimator: for $\sigma^2 > (b-a)^2$, it cannot converge in probability to $\sigma^2$ as $N$ goes to infinity. So it seems that $\widehat\mu$ and $\widehat\sigma^2$ are not the maximum-likelihood estimators of $\mu$ and $\sigma^2$ for a truncated distribution. Of course, this is to be expected since the $\mu$ and $\sigma^2$ parameters of a truncated normal distribution aren't its mean and variance.  So, what are the maximum likelihood estimators of the $\mu$ and $\sigma$ parameters of a truncated distribution of known minimum and maximum values?


Within CSS what is the difference between opacity:0 and display:none?

I am working with the jQuery fadeIn/fadeOut method and confused by exactly what it is doing. The docs state that the method affects the opacity property of the element but display:none also work to hide an element and then fade it in. Are opacity:0 and display:none the same thing? I am seeing some really choppy animations using the methods and want to understand better whats going.


Is it possible to load external wms services into ArcMap and publish them in ArcGIS Server?  I have tried this and get the error that the layer type is not supported.


Is it possible to add links to images in css?

I can't change the html, so is it possible to do something like (a href="") in css?  I saw that I can use jQuery to do it, but there aren't any specific classes for each slide, just a general class:

...

...

...

...

...

...

   Is it possible to do something like this:  figure.slick-slide-inner[alt="PLANOS"]{     /*and command to add link*/ }


I am running this query to do massive deletion in my database.  I am looking at Batchrequests/sec and it is quite low (like 15% of what my server can handle) Is there any way to rewrite this query to do more batchrequest/sec?  delete from Position  Where MainFirmID = 26 and BatchID in (        select BatchId from MyDB..Batch Where FirmId = 26               and PeriodId <= 110 and PeriodId > 90 )   Thanks for your help.   RM


Why was Enterprise on a five-year mission in TOS?

There is a small difference between intro texts in TOS:     Space: the final frontier. These are the voyages of the starship Enterprise. Its five-year mission: to explore strange new worlds, to seek out new life and new civilizations, to boldly go where no man has gone before.   and in TNG:     Space: the final frontier. These are the voyages of the starship Enterprise. Its continuing mission: to explore strange new worlds, to seek out new life and new civilizations, to boldly go where no one has gone before.   (emphasis mine)  It's pretty obvious that no man was changed to no one to include women. But, is there any explanation why was five-year changed to continuing? Also, why was it a five-year mission at all?  My only assumptions are:   Gene Roddenberry hoped to get funding to run the show for 5 seasons. Gene Roddenberry just made up a number without any special meaning. Gene Roddenberry was a .   Is there any official explanation, in universe or not?


Share apt upgrade packages between systems on the same lan

I have a bunch of clusters of Raspberry with Raspberry OS installed, they have all the same configuration and the same packages installed. I want to keep them updated but they are connected to Internet with a limited bandwidth connection. Is there a way to set a master system that downloads the packages to upgrade and the others refer to it instead to download several times the same packages? I think I should use the sources.list file on the slaves but I don't know how to set the server if this is the way to do it


Total number of ways to arrange objects subject to constraint

Suppose that you are ticket collector in Cinema office. It cost 50 dollars to watch a movie. There are 20 people in line. 10 people in that line have exactly 100 dollar bills and 10 people have exactly 50 dollar bill. Now, since it is early in morning,you do not have any change. So,the people should be arranged in such a way that the line goes on without any interruption. What are total number of ways to arrange people in such a way that line proceeds smoothly?  One valid combination:  50,100,50,100,50,100,50,100,50,100,50,100,50,100,50,100,50,100,50,100  An invalid one:  100,50,....,50  My take: I tried to do this problem for small number like 3,4,5. However,I see no pattern to generalize the result to more people.


I have a problem that makes me very confused...  I have two tensors that must be multiply. A is second order tensor and B is fourth order tensor. I know when multiplying two tensor with double dot product (:) that means inner product, the order of result will be decrease two times. So now we must have a second order tensor for result. but when I write this code in Matlab it has an error: Matrix dimensions must agree. So how can I solve this problem? Please Help me if you know anything about this. Thanks for your attention.


Shortcut to paste text in command prompt

How can I paste a text in command prompt through shortcuts?  Normally if we press ctrl + v, it won't paste text on Windows command prompt.  Is there any alternative shortcut or any way I can define a custom shortcut for pasting text in Windows' command prompt?  I already read  and the answer requires me to install AutoHotkey, which I do not want. Are there any alternatives?


Disk shows no partitions, not even an empty one, but Windows says it's working properly

System stopped working yesterday, couldn't find boot device. I pulled out the SSD and connected it externally to a fully working drive dock, even tried a second one, to see if I could get any data. It starts out uninitialized so I of course initialize it, but that's about as far as it gets. 256 GB SSD showing up as 0 MB or 128 KB as shown from the below screenshots. Windows thinks it's "working properly". I've told Windows over and over that it's not, but it won't listen. Got any ideas? Opening Disk Management for the first time, initialize disk:  Shows Online but no partitions, not even a blank partition:  Comes up as "Generi L oader SATA Devic USB Device"??? but "working properly"  Everything 0 MB:  diskpart shows 128 KB:  Opened EaseUS and it too shows 128 KB with no partition information:  Ran a surface test since that's about all I can do, only scanned 256 sectors, but they're good:  Thank you!


Calculating the unified atomic mass unit

The masses of ,  and  (in SI units) are (approx.):  \begin{equation} m_e=\text{electron mass}=9.109\times 10^{-31}\ \text{kg} \end{equation} \begin{equation} m_p=\text{proton mass}=1.673\times 10^{-27}\ \text{kg} \end{equation} \begin{equation} m_n=\text{neutron mass}=1.675\times 10^{-27}\ \text{kg} \end{equation}  The  ($u$) is defined as one twelfth of the mass of .  \begin{equation} u=1.661\times 10^{-27}\ \text{kg} \end{equation}  Now, Carbon-12 contains 6 electrons, 6 protons and 6 neutrons, so the mass of this isotope should be:  \begin{equation} m=\text{Carbon-12 mass}=6\times(m_e + m_p + m_n)=6\times 3.3489 \times 10^{-27}\ \text{kg} \end{equation}  Then:  \begin{equation} \frac{m}{12}=0.5\times 3.3489 \times 10^{-27}\ \text{kg}=1.674 \times 10^{-27}\ \text{kg} \end{equation}  But this value is different from the value of $u$. Shouldn't $m/12$ be equal to $u$?


In the US, what's a good prepaid GSM SIM card without a phone?

My daughter is going to spend the next school year (August 2011 to June 2012) in Memphis, TN as an exchange student from Switzerland. She'd very much like to use her iPhone during her stay in the United States.  What are her options for getting prepaid talk, text and data services without also having to buy a new phone? I realize that she'll be limited to AT&T and T-Mobile because of the GSM network.  As far as I've read, T-Mobile SIM cards only work on T-Mobile branded phones, so is AT&T her only option there?


Looking at a  of an inverting regulator, I found something peculiar:    I've never heard of a Pin-Package called "Dice" before, and it doesn't even specify the pin-count. On the  of the manufacturer, this package isn't mentioned either.  What does "Dice" mean in this context and why would I want to use it?


What is a string method, and how are does their usage differ from using a built-in function?  Can anyone help me with this ?


How to 10 to each cell that a name appears?

How do I add a list of names to a spreadsheet and each time the name appears add the number 10 to one cell. What formula would I use?  I would put a name like Jones in A1 then Jones in A5. And in D5 (the cell I want the number to appear) it would have the number 20. If I then add Jones in B2 then D5 would say 30. Add 10 each time jones appears.    This would allow me to add up 10 points each time a name appear so I can makes sure the math is right. If the name jones appears 7 times on my workbook then he would have 70 points meaning the number 70 would a appear in D5.


Write the equation of the parabola that has the vertex at point $(5,0)$ and passes through the point $(7,−2)$.  I know how to do it with the $x$ intercepts but I can't solve this.


Transitivity check vs. Transitive Closure

Is checking transitivity of a digraph not easier than (in terms of asymptotic complexity) taking the transitive closure of the digraph? Do we know any lower bound better than $\Omega(n^2)$ to determine if a digraph is transitive or not?


In our application, we send different kind of mails. On a broad view we can generalize it in two category,   Mails which monitor the health of the app. Mails which we send to end user.   Is there any way(Setting some header/configuring some parameter in postfix), such that for the same sender address, we can use different relay host?


Reading order of H.P.Lovecraft's stories

I want to start reading some H.P.Lovecraft stories since I've heard a lot of good things about them. Now from what I've gathered, they all take place in our world and some have recurring characters (I believe the mythos of Cthulhu and Dagon are covered in different books starring the same character).  That's why I was wondering, is there a reading order for his stories or could I just pick up any one of his books and start reading ?


This sequence is a rearrangement of the series $1-\frac{1}{2}+\frac{1}{3}-\frac{1}{4}+\frac{1}{5}...$. Note that at this point in the text we do not have any theorem about the convergence of rearrangements.  Let $\{s_n\}$ be the sequence of partials sums of the series then for $n \ge 0$  $s_{3(n+1)} = \sum ^n _ {k=0} \frac{1}{4k+1} + \frac{1}{4k+3} - \frac{2}{4k+4}$  We can view it as the sequence(on $n$) of partials sums of  $\sum_0 a_n = \sum_0 \frac{1}{4n+1} + \frac{1}{4n+3} - \frac{2}{4n+4}$  Where $|a_n| = a_n = \frac{1}{4n+4}\{\frac{3}{4n+1}+\frac{1}{4n+3}\} \le \frac{1}{4n^2}$.  By the comparison test $s_{3(n+1)}$ converges to some real $\alpha$.  But $s_{3(n+1)+1} = s_{3(n+1)}+ \frac{1}{4n+5}$ and $s_{3(n+1)+2} = s_{3(n+1)}+ \frac{1}{4n+5}+\frac{1}{4n+7} $hence we have a partition of $\{s_n\}$ into subsequences which tend to $\alpha$ and this implies $s_n \rightarrow \alpha$.  Is my proof correct? Any alternative solutions are appreciated.


App crash in android below my crash report

Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.android.gms.ads.internal.webview.i.a(java.lang.String, org.json.JSONObject)' on a null object reference        at com.google.android.gms.ads.internal.mraid.m.a(:com.google.android.gms.dynamite_adsdynamite@14366051@14.3.66 (040408-213742215):6)        at com.google.android.gms.ads.internal.overlay.d.a(:com.google.android.gms.dynamite_adsdynamite@14366051@14.3.66 (040408-213742215):129)        at com.google.android.gms.ads.internal.webview.v.c(:com.google.android.gms.dynamite_adsdynamite@14366051@14.3.66 (040408-213742215):354)        at com.google.android.gms.ads.internal.webview.t.c(:com.google.android.gms.dynamite_adsdynamite@14366051@14.3.66 (040408-213742215):70)        at com.google.android.gms.ads.internal.gmsg.m.a(:com.google.android.gms.dynamite_adsdynamite@14366051@14.3.66 (040408-213742215):4)        at com.google.android.gms.ads.internal.webview.j.a(:com.google.android.gms.dynamite_adsdynamite@14366051@14.3.66 (040408-213742215):293)        at com.google.android.gms.ads.internal.webview.ac.run(Unknown Source:4)        at android.os.Handler.handleCallback(Handler.java:789)        at android.os.Handler.dispatchMessage(Handler.java:98)        at com.google.android.gms.ads.internal.util.e.dispatchMessage(:com.google.android.gms.dynamite_adsdynamite@14366051@14.3.66 (040408-213742215):5)        at android.os.Looper.loop(Looper.java:164)        at android.app.ActivityThread.main(ActivityThread.java:6944)        at java.lang.reflect.Method.invoke(Method.java)        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)


Given seven real numbers. Show that we can always choose two of them, say $a, b$ such that $0 < \dfrac{a-b} {ab+1}< \sqrt{3}$  I think this is one of pigeon hole principle problem. I have tried to think further about the cases for some days, but didn't found any logical sense answer. Instead of plugging random real numbers, do you have any argument to prove it?? Please help


Is this a capacitor start motor and can I start it with a microwave capacitor

I salvaged an old motor out of a air conditioner and I want to know if it's a capacitor start motor if I can start it with the capacitor I have and how to start it.  I included pictures of the motor and capacitor btw i have never worked with capacitive start motors so i need details on exactly how to wire it up with out ruining it


After I ran Windows 10 update this afternoon my partition table broke... I had dual boot with Windows 10 and Ubuntu 14 with Grub as the boot loader. The error that came up was "Error no such partition, Entering rescue mode... grub rescue>". I googled it,  about the boot-repair ISO, installed it on a USB, ran the repair, got this report, but still no luck:    Now the boot skips Grub entirely and goes to Windows boot manager which fails with "The boot configuration data for your PC is missing or contains errors". So now instead of dual boot I have zero boot. Thanks Microsoft.  Anyway can you guys help me interpret the disk info in the pastebin link? I don't remember my partition configuration but I believe Ubunut had slightlty less disk space than Windows. Questions I have:   Is the Ubuntu partition still there? Could it be the one named "Extended"? (sda4) Where would GRUB be? Gone? Can it be reinstalled? how?   I don't really care about the Windows partition anymore, but it would be nice to rescue Ubuntu.


I have stumbled across a very old exam question from my linear algebra course and the solutions are not available. I was wondering if my working/logic is correct and if any improvements can be made.     Let  $\ B=\begin{pmatrix}     1 & -1 & 4 \\     6 & -7 & 2 \\     -3 & 1 & -6       \end{pmatrix}\ $ and $\ \vec{v_1}=\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}$.      Part (i): Calculate $(B+5I)\vec{v_1}$ and $(B+5I)^2\vec{v_1}$.   Using simply matrix multiplication, I calculated $(B+5I)\vec{v_1}=\begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix}$ and $(B+5I)^2\vec{v_1}=\vec{0}$.     Part (ii): Find all eigenvalues and eigenvectors of B.   From our calculations in part (i), we can see that $\ \lambda=-5,-5$ are two of the eigenvalues, with corresponding eigenvector $\ \begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix}$ and generalised eigenvector $\ \begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}$. From the trace of B, the remaining eigenvalue is $\lambda=-2$ with corresponding eigenvector $\begin{pmatrix} -2 \\ -2 \\ 1 \end{pmatrix}$.     Part (iii): Giving reasons, write down a basis for the generalised eigenspace $GE_{-5}$ of B.   I am unsure of this part of the question. If I had to guess, I would say a basis for $GE_{-5}=\left\{\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix},\begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix}\right\}$. Is this correct?     Part (iv): Solve the initial value problem $\vec{y'}=B\vec{y}$ where $\ B=\begin{pmatrix}     1 & -1 & 4 \\     6 & -7 & 2 \\     -3 & 1 & -6       \end{pmatrix}\ $ and $\vec{y}(0)=\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}$.   Well, the solution to this IVP will take the form $\vec{y}=e^{tB}\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}$. I noticed that $\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}$ was a generalised eigenvector and hence we can write $\vec{y}=e^{-5t}\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}+e^{-5t}\begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix}t$. Thus $\vec{y}=e^{-5t}\begin{pmatrix} 1+t \\ 1+2t \\ -1-t \end{pmatrix}$


Proving divisibility of $a^3 - a$ by $6$

As part of a larger proof, I need to show why $a^3-a$ is always divisible by $6$. I'm having trouble getting started.


How does Java's serialization work and when it should be used instead of some other persistence technique?

I've been lately trying to learn more and generally test Java's serialization for both work and personal projects and I must say that the more I know about it, the less I like it. This may be caused by misinformation though so that's why I'm asking these two things from you all:  1: On byte level, how does serialization know how to match serialized values with some class?  One of my problems right here is that I made a small test with ArrayList containing values "one", "two", "three". After serialization the byte array took 78 bytes which seems awfully lot for such low amount of information(19+3+3+4 bytes). Granted there's bound to be some overhead but this leads to my second question:  2: Can serialization be considered a good method for persisting objects at all? Now obviously if I'd use some homemade XML format the persistence data would be something like this  <object>     <class="java.util.ArrayList">     <!-- Object array inside Arraylist is called elementData -->     <field name="elementData">         <value>One</value>         <value>Two</value>         <value>Three</value>     </field> </object>   which, like XML in general, is a bit bloated and takes 138 bytes(without whitespaces, that is). The same in JSON could be   {     "java.util.ArrayList": {         "elementData": [             "one",             "two",             "three"         ]     } }   which is 75 bytes so already slightly  smaller than Java's serialization. With these text-based formats it's of course obvious that there has to be a way to represent your basic data as text, numbers or any combination of both.  So to recap, how does serialization work on byte/bit level, when it should be used and when it shouldn't be used and what are real benefits of serialization besides that it comes standard in Java?


"We got him," Belgian migration minister Theo Francken tweeted following the culmination of a four-month manhunt across Europe.   Why there isn't definite article in front of Europe? For me it would feel logical to say      manhunt across the Europe.   Is this wrong and if so why?  Another example:      The market is a gap which separates producer and consumer.    Why there isn't an article before producer and consumer. For me it would feel logical to say:      The market is a gap which separates a producer and a consumer.    Is this wrong and if so why?


I need to create a script in php, its created but I need that script run in background because take a 30 minutes procesing diferent files. How can create it, I need run in background and the user can navigate across the site and the script keep running. I try calling the script from ajax async funcition but when change the page of the site the script breaks.


Find the sum of the $n$ terms of the following series: $$\frac{1}{1+1^2+1^4}+\frac{2}{1+2^2+2^4}+\frac{3}{1+3^2+3^4}+\dots$$   I tried it a lot .   But don't get a proper start .


Is there any shorter pronunciation of W than double-U?

When spelling, every letter in the Alphabet is pronounced by a single syllable, with the only exception of W being pronounced "double-U". (Fun fact, in German it's approximately pronounced like the "ve" in very, but in some strike of cosmic justice Y is pronounced "Yps-e-lon") Why is that? Is there any at least semi-officially accepted one-syllable alternative pronunciation of W?  I checked some related post, e.g. , but they are more concerned with the "Why?" instead of the "Why not different?"


Show that for all $n ∈ Z$, $2n^3 + 3n^2 + n$ is divisible by both 2 and 3.

I have to show that this is divisible by both 2 and 3. For the next, part I have to show that it's divisible by 6 which from what I understand is the same as showing it's divisible by 2 and 3.


How do I make Unity use UTF-8 and LF characters for new script files?

By default, when you make a new script in Unity on Windows, it will use UTF-8 with BOM and CRLF. How do I change this to be regular UTF-8 without BOM, and LF (Unix-style)?


Vectors are basically described by two quantities and have some magnitude and direction.  Why did the people who invented vectors invent it?What is the use of bundling numbers into groups of two?Why do vectors exist?


I have essentially the same question as here:    But I found that the selected response doesn't work for me.  There is no parent.lock in the default folder.  There was a lock file; I deleted it, but I still have the error.    I don't have enough rep to comment, hopefully it's OK to ask like this.


Transiting from Terminal 1 to 3 at Dubai airport

Good day, i'm a Cameroonian student and I will be travelling from MADURAI to DOUALA and transiting through Dubai airport from spicejet flight to kenya airways. Will I need a transit visa to transit from terminal 1 to terminal 3? Thanks for your assisitance. Victor.


How to fit a piecewise assembly of nonlinear functions?

I am trying to model vegetation spectral signatures (grey lines) using a two-part piecewise function (black dotted lines). In it, I am trying to use only a few points (red dots) to fit a linear (first part) and logistic function (second part). Basically, the linear part of the function stretches a bit further than the second point (how much it stretches, it will depend on "unknown" parameters, but as a rule of thumb I use 35 "X" units). I currently defined an ifelse function and I am applying a constrained optimization (optim, method="L-BFGS-B"), to find the best parameter values. This has a few handicaps, as the parameters are not normalized/scaled (which makes the search routine less efficient) logistic.fun<- function(K, C, ro, b, Z, a, lambda){       ifelse(test = lambda <= Seq_Bands[2]+25,             yes = a + b*((Seq_Bands[2]+25)- lambda),            no = ((ro*K)/((ro + (K-ro)*exp(-C*(lambda-Seq_Bands[2]+Z))))))}  I would be keen to use nls and fit a 3 parameters logistic regression and also use a fourth parameter to estimate the breakpoint of the linear part (Z parameter code above). Also, I would be keen to avoid jumps such as those seen on left plot below. This means that the functions would have to be differentiable (?) at this breakpoint. I am unsure how to code it. Cheers and thanks!   UPDATE: It was correctly pointed out that the number of variables is higher than the data points presented; which would render the problem under-determined. Consequently, the logistic equation can only be parameterized using 3 variables (Fig 2: R_0_ , K and r. My understanding is that, necessarily, the breakpoint (Z) cannot be estimated, and should be set prior to the optimization process. In context, it is also important to state that the R_0_, and K are not "truly" unknowns, as they are expressed by the measurements (second and fourth red datapoints).


I am applying for PhD programs in the USA, one of the schools requested a PhD research interest. The problem is I do not know how to write it. Also, they have requested a copy of masters thesis abstract, But in my masters I did not done a thesis.


Equivalent definitions of primary ideals

Here are two definitions of a primary ideal.   An ideal $I\subset A$ is primary if $I\ne A$ and $xy\in I\implies$ either $x\in I$ or $y^n\in I$ for some $n> 0$. An ideal $I\subset A$ is primary if $Ass(A/I)$ consists of a single element.   Are they equivalent?  $2.\implies1.$ Suppose $Ass(A/I)$ consists of a single element $P$. If $I=A$, then I believe $Ass(A/I)=Ass(\{0\})$. The zero ring has no prime ideals, so there are no associated primes of the element $0$ in the zero ring. This contradiction shows that $I\ne A$. But I don't know how to deduce the other condition.  I don't have ideas for the other implication either.


How to pass the variadic parameters to a function pointer?

What is the right way to implemet a function with this declaration:  void variadicFunction(int (*someFunction)(), ...)   such that it will call the function:  someFunction(...)   where ...are the variadic parameters given to variadicFunction. Thank you.


How to recover permanently deleted emails in Gmail

How I can recover mails which deleted from my Gmail account permanently?


How can you check if a command can be executable or not in Linux.  Example:  xeyes


Animate the Viewport Visibility of an Object within the Timeline?

I want to hide an object in the Viewport up to a certain frame in the Timeline and then make it visible (e.g. at frame 30). How can i do that?


What are the effects of exceptions on performance in Java?

Question:  Is exception handling in Java actually slow?  Conventional wisdom, as well as a lot of Google results, says that exceptional logic shouldn't be used for normal program flow in Java.  Two reasons are usually given,   it is really slow - even an order of magnitude slower than regular code (the reasons given vary),     and    it is messy because people expect only errors to be handled in exceptional code.     This question is about #1.  As an example,  describes Java exception handling as "very slow" and relates the slowness to the creation of the exception message string - "this string is then used in creating the exception object that is thrown. This is not fast."  The article  says that "the reason for this is due to the object creation aspect of exception handling, which thereby makes throwing exceptions inherently slow".  Another reason out there is that the stack trace generation is what slows it down.  My testing (using Java 1.6.0_07, Java HotSpot 10.0, on 32 bit Linux), indicates that exception handling is no slower than regular code.  I tried running a method in a loop that executes some code.  At the end of the method, I use a boolean to indicate whether to return or throw.  This way the actual processing is the same. I tried running the methods in different orders and averaging my test times, thinking it may have been the JVM warming up.  In all my tests, the throw was at least as fast as the return, if not faster (up to 3.1% faster).  I am completely open to the possibility that my tests were wrong, but I haven't seen anything out there in the way of the code sample, test comparisons, or results in the last year or two that show exception handling in Java to actually be slow.  What leads me down this path was an API I needed to use that threw exceptions as part of normal control logic.  I wanted to correct them in their usage, but now I may not be able to.  Will I instead have to praise them on their forward thinking?  In the paper , the authors suggest that the presence of exception handlers alone, even if no exceptions are thrown, is enough to prevent the JIT compiler from optimizing the code properly, thus slowing it down.  I haven't tested this theory yet.


I have multiple Hboxes in JavaFX like this:  HBox hb = new HBox(10); HBox hb2 = new HBox(10); HBox hb3 = new HBox(10); HBox hb4 = new HBox(10); etc..   I want to put the hbox creation in a loop, but I am not really sure how to do that.  I've tried it like this:  HBox[] array = new HBox[4]; for (int i = 0; i < 3; i++){     array[i] = new HBox(10); }   But I'm getting this error when I try to add some content to the hboxes:  Exception in Application start method Exception in thread "main" java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767) Caused by: java.lang.RuntimeException: Exception in Application start method     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)     at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException     at OptieScherm.start(OptieScherm.java:74)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)     at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)     at java.security.AccessController.doPrivileged(Native Method)     at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)     at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)     ... 1 more`   Thanks,


Java encode and decode program cant pass key word through args

So, I'm not sure what is happening here, if I place encode or decode in the args[0], it should work right, but it doesn't. I have all the imports and I have a utility class that I'm using as well. I don't understand why, when I run the program with these arguments: java Prog4 encode fly message.txt it won't work right. It'll go straight to the last else statement.      public class Prog4 {         public static void main(String[] args){             if (args.length != 3){                     System.out.println("Enter the right amount of arguments!");                     System.exit(0);             }              String command=args[0];             String key= args[1];             String fileName = args[2];             File file = new File(args[2]);             String fileExtention="";             if(args[0]=="encode"){                     fileExtention=".crypt";              }             else if (args[0]=="decode"){                     fileExtention=".decrypt";             }             else{                     System.out.println("Enter decode or encode!");                     System.exit(0);             }


What is the "Install this third-party software" box in the installer and what third-party software is installed?

When installing Ubuntu it always has this box which says Install this third-party software, but I am wondering exactly which third-party software and where it is installing it from.  I can see the description below, however I want to know exactly which software is being installed, which packages, and from where.     Ubuntu GNOME uses third-party software to play Flash, MP3 and other media, and to work with some graphics and wi-fi hardware. Some of this software is proprietary. The software is subject to license terms included with its documentation.


Due to  I will have to revert back to Ubuntu 12.04 LTS when . I see that , LibreOffice 3.5, and other outdated (functionality-wise) software.  Though I have no problem compiling Firefox, LibreOffice, and other apps, I would like to know how could I find out what the currently available software versions are. How could I check this before installing Ubuntu 12.04? I suppose that at least Firefox would have been updated (due to Mozilla update policy), but I would like to check first before I install.  Is there some way to query the Canonical repos for the latest software versions available for 12.04 from my current 12.10 system? Would it be easier to check from some web interface on Launchpad? I'm looking for something similar to aptitude show foobar, but for which I could specify the distro version that the results would be returned for.  I could install a virtual machine to check, but I find that cumbersome and not really practical as a day-to-day solution should I ever need to do a similar check in the future.


How to prove that a matrix is invertible $\iff$ invertible at right $\iff$ invertible at left?

Let $A$ a $n\times n$ invertible at left. In fact, I just want to prove that it's invertible at right (the rest is obvious). All what I can say is that there is a $B$ s.t. $BA=I.$ To prova $AB=I$, I have problem. I have that $$AB=AB^2A=BA^2B,$$ but I can't conclude that it's $I$.


All I want to do is center a paragraph completely in the middle of the page and so that it stays centered when the browser is minimized etc.


14.04 LTS, 32-bit, Software Updater error "Failed to download repository information: Check your internet connection"

There isn't much to say about this one: when I run Software Updater, I get the above error message. That can't be good.  Interestingly, when I click on "Settings..." and then close the settings dialogue that pops up, all of a sudden Software Updater successfully finds updates and installs them.  I thought I should bring this to the attention of the Ubuntu community.  sudo apt-get update returns the following:  W: Failed to fetch   404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.  I have screen captures, but I don't have enough reputation points to post them.


How to calculate the weighted standard deviation

I have found many equations which claim to be for weighted standard deviation, yet all of these differ very slightly, and I am confused as to which is the correct one.  I have some data in Excel, and need to use the weighted standard deviation, but want to have a correct equation in order to make a formula.    The image above is the basis I am working with, but I have found other versions in which the (N-1) is missing, the denominator is N-1, or the sum of the weights is multiplied by ((N-1)/N) so that there is a very subtle difference in brackets.   Each one of these options gives widely different results in Excel, hence the confusion.


So, for a first time try with a USB boot drive, i used the recommended Ubuntu 12.04.3 version. After using the pen drive Linux USB installer to install Ubuntu onto it, I restarted my PC and changed the boot priorities in the BIOS so that it boots from the USB first, however after many attempts my PC just boots straight into win 8. The board I have is the ASUS M4A79XTD Evo (AM3). Any help will be much appreciated, thanks


How to export groups to separate PDF files in Adobe Photoshop?

I have 180 groups (see image for example), each group is a different label design. I need to export each group as an individual PDF file.     What is the best way to achieve this? I know how to export them individually and how to bulk export to png, jpg etc. but I can't figure out how to export to PDF. I've tried exporting layer comps but that exports as one big pdf and not individual files.   Any help will be greatly appreciated, thanks in advance!  EDIT - I'm not looking to batch export Photoshop layers to individual PNG files.


I am not going to use my visa; do I need to cancel it?

I got a short-stay visa in December for France and I was unable to go/put it to use. It expires at the end of June; however. I will be studying in France from the start of June to the end of July. Will I get kicked out? Will they refuse my entry. I will not need a visa for the summer because I will not be in the country for longer than 3 months. Do I need to get my old visa voided?


I'm looking for an imprint/logo/whatever to use in order to link to online profiles in a site I'm working on.  I noticed that  has a  with a white background while the   doesn't.  Would it be too much to ask to have a page devoted to imprints (in various forms, PNG, vector, etc) or at least strip the background off of the others?


A question on vector space over an infinite field

Can a vector space over an infinite field be a finite union of proper subspaces ?


How do I cause a long label in a description environmnt to wrap?

I am using a description environment, and one of my labels is very long  \begin{description} \item[A very long label that I would like to wrap rather than overrunning the right margin as it currently does. If it helps I am using the enumitem package, and a solution that depends on it is acceptable.] \leavevmode Text following long label. \end{description}   Is there a way to cause the text on the \item to wrap? I'm alrady using enumitem, so a fix that requires it is fine. Thanks.


Why do I stay logged in on Stack Overflow but always need to login to Programmers?

I rarely if ever need to log in to Stack Overflow. It remembers me.  I always have to log in to Programmers. Yes, it's not too hard because I can log in with my SO credentials, but it's one extra step and 3 clicks every single time. Why is that? What can I do to stayed logged in, if anything?  Browser: Firefox OS: Windows 8