Init array of integer in delphi
How do I assign a value to a whole array of integers?
How to write the word 'smart phone' in a research article? Smart phone Smartphone Smart-phone   I am really looking for some help regarding hyphen (-) issue in text found in research article. Is there any standard method how to use it? No non-trivial clopen sets in $\mathbb{R}$? How to give a direct proof? How to give a direct proof of the following result?     Let $A$ be a subset of $\mathbb{R}$ such that $A$ is both open and closed. Then $A$ is either empty or all of $\mathbb{R}$?   My work:   If $A$ is not empty, let $u \in A$. Then there is some open interval $(a,b)$ such that $$u \in (a,b) \subset A.$$  Now if $\mathbb{R} - A$ is not empty either, then let $v \in \mathbb{R} - A$. Then there is some open interval $(c,d)$ such that  $$v \in (c,d) \subset \mathbb{R} - A.$$  Suppose that $u &lt; v$.   Since $$\emptyset \subset (a,b) \cap (c,d) \subset A \cap (\mathbb{R} - A) = \emptyset,$$ we must have $$(a,b) \cap (c,d) = \emptyset.$$ So we can conlclude that $$b \leq c.$$ But $b \in A$ and $c \in \mathbb{R} - A$. So we must have $$b &lt; c.$$  What next? Can anybody here please help complete the proof from here on?  An edit based on a comment by Marc Paul:   Let us assume that the set $A$ is a non-trivial clopen set in $\mathbb{R}$. Let us define a function $f \colon \mathbb{R} \to \mathbb{R}$ as follows:  $$f(x) \colon= \begin{cases} 1 \ \mbox{ for } \ x \in A; \\ 0 \ \mbox{ for } \ x \in \mathbb{R} - A. \end{cases}$$   Let $V$ be an open set in the range space $\mathbb{R}$. We show that the inverse image set $f^{-1}(V)$ is open in the domain space $\mathbb{R}$.   The following cases arise:   If $0, 1 \in V$, then $f^{-1}(V) = \mathbb{R}$.   If $0 \in V$ but $1 \not\in V$, then $f^{-1}(V) = \mathbb{R} - A$.   If $1 \in V$ but $0 \not\in V$, then $f^{-1}(V) = A$.   And, if $0 \not\in V$ and $1 \not\in V$, then $f^{-1}(V) = \emptyset$.   Thus, $f^{-1}(V)$ is open in the domain space $\mathbb{R}$.   Hence the function $f$ is continuous.   What next? How does this lead to our desired conclusion?   [Yet another edit, again based on valuable comments from Marc Paul: ]  So if both $A$ and $\mathbb{R} - A$ were non-empty, then let's suppose $a \in A$ and $b \in \mathbb{R} - A$, and we can assume without any loss of generality that $a &lt; b$.   Then $f(a) = 1$ and $f(b) = 0$. So by the intermediate value theorem there is a real number $c \in (a,b)$ such that $f(c) = 1/2$, which is a contradiction because the image set of $f$ does not contain $1/2$. How do you update an Excel file (Data Refresh and update formulas) WITHOUT opening the file? I have an Excel file that want to update and save automatically with out having to open it or manually interact with.  Manually, I open the file up and hit data refresh which goes and does a SQL query and then hit F9 for the formulas to update and then I just close/save.    (I then would mail the file out to people using a perl script or use SAS JMP to run some numbers/charts and also mail them out.  Basically I need to script some things which require the XLS file to be updated.) What does `exec {STDIN}>&0` do? "Failed to create user" due to regular expression error I'm running Ubuntu 12.10 desktop 32 bit. Currently I have only a user, type administrator. I'd like to create another administrator user but I keep getting the following error:  Failed to create user GDBus.Error:org.freedesktop.Accounts.Error.Failed: running '/usr/sbin/adduser' failed: /usr/sbin/adduser returned an error (1): adduser: Please enter a username matching the regular expression configured via the NAME_REGEX[_SYSTEM] configuration variable.  Use the `--force-badname' option to relax this check or reconfigure NAME_REGEX.  Any suggestion is appreciated. How to run ubuntu/xubuntu in a complete non-gui mode Proof for $e^z = \lim \limits_{x \rightarrow \infty} \left( 1 + \frac{z}{x} \right)^x$ Q1: Could someone provide a proof for this equation (please focus on this question):   $$e^z = \lim \limits_{x \rightarrow \infty} \left( 1 + \frac{z}{x} \right)^x$$  Q2: Is there any corelationn between above equation and the equation below (this would benefit me a lot because i at least know how to proove this one):  $$e = \lim \limits_{x \rightarrow \infty} \left( 1 + \frac{1}{x} \right)^x$$ Why don't I have this option?    here's my disk layout  sudo fdisk -l  Disk /dev/sda: 640.1 GB, 640135028736 bytes 255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x5b53cc54     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      409599      203776    7  HPFS/NTFS/exFAT /dev/sda2          409600  1153767021   576678711    7  HPFS/NTFS/exFAT /dev/sda3      1216962560  1250050047    16543744    7  HPFS/NTFS/exFAT /dev/sda4      1250050048  1250261679      105816    c  W95 FAT32 (LBA)  Disk /dev/sdb: 4005 MB, 4005527552 bytes 32 heads, 63 sectors/track, 3880 cylinders, total 7823296 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x20d8782d     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *          63     7822079     3911008+   c  W95 FAT32 (LBA) Do particles ever touch each other during a collision? Python scope: "UnboundLocalError: local variable 'c' referenced before assignment" I want to do an , then cross-validate model prediction accuracy with 80% data for training and 20% for validation, and calculate  for predictions.  Consider this dataset:    X     Y ----------  2.3    1  3.1    2  3.5    2  10.0   5  6.8    4  5.0    3  5.4    2  3.2    1   I did this:  x=c(2.3,3.1,3.5,10.0,6.8,5.0,5.4,3.2) y=c(1,2,2,5,4,3,2,1) myData=data.frame(cbind(x,y))  library("MASS") reg=polr(as.factor(myData$y)~myData$x,data=myData,method="probit")   I saw , but I couldn't fully understand. Suppose myValidationData contains 20% of data which I want to use for validation. So, I would do:  fit=predict(reg,type="probs") x=c(5.6, 5.1) y=c(3,3) myValidationData=data.frame(cbind(x,y))   This is how I tried to predict, but is it correct, when I want to cross-validate?  fit=predict(reg,data=myValidationData,type="probs")   How should I measure RMSE? And, how can I plot the prediction? I am trying to get the Linux distro "PIXEL" to install some PPAS for Wine, and I have run into a issue where it will not install because of the following error:   sudo: add-apt-repository: command not found   I am trying to install wine using the PPA add-apt-repository ppa:ubuntu-wine/ppa and I would like some assistance doing so. What is the easiest way to match non-ASCII characters in a regex? I would like to match all words individually in an input string, but the language may not be English, so I will need to match things like ü, ö, ß, and ñ. Also, this is in Javascript/jQuery, so any solution will need to apply to that. Opening a non-utf8 encoded text file I sometimes need to open text files that are encoded in EUC-KR.    man gedit gives:      --encoding           Set the character encoding to be  used  for  opening  the  files           listed on the command line.    This can be used to open specific files with the desired encoding:  gedit --encoding euc-kr readme.txt   However, each file to be opened requires a similar command to be typed.  I can run iconv on the file(s), but then I have to deal with different file versions.    Do I have better options for dealing with non-utf8 text files? Why can't the Others go around the Wall at sea? As explained in a  earlier , the Wall does not extend all the way to the sea on the East, and the castle there is essentially undefended anyway. Thus, wildlings -- and Stannis' army -- were able to go around it undetected.  We know that the Others and the wights they raise can't cross through the Wall, and I think we can assume that it's built to stand up to any attacks they make trying to bring it down. But there does not appear to be any reason they can't just go around like anyone else.  Possibly related: in the TV Show, we actually see the attempted evacuation of Hardhome, and the Night King allows Jon Snow and his human army and civilians to flee back to their boats to safety, even after raising a massive army of wights. You could interpret this as merely a psychological ploy, but it may be a hint that the dead can't cross the water either.  Has there been any indication (books or show) that the Others/White Walkers and their army of wights are blocked by open water, or are somehow tied to the land of the Frozen North, or that there's any other obstacle keeping them from just sailing/swimming around the Wall? I'm unable to update nodejs, and I can't see why.  If I were to make a guess, I'd say that I have two repositories listed in apt-get, that both contain a nodejs package.  Here's what I've done:  Remove old version:  sudo apt-get remove --purge nodejs npm   Then, going by , I've run:  curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -   And then:  sudo apt-get install -y nodejs   I then run:  nodejs -v   Which returns:  v0.10.25   Can anyone explain what's going wrong? And how I can remedy this situation?  Many thanks. Can't install jdk on Fedora with yum nor with rpm Postgis, get the points that are x meters near another point, in meters When I launch an app, the focus doesn't move to the opened app Let's say I have Gthumb open, and then launch Nautilus from the Unity launcher (in 12.04). Why does it sometimes not focus the mouse on Nautilus, which I just launched? Instead, the focus remains on Gthumb while Nautilus opens in front of Gthumb (and not being focused on).  Is this correct behaviour? Bash is not finding a program even though it's on my path I have a program on my path.  The program runs when executed with a full path specified.  But the program cannot be found when I run it with just its name.    Essentially, I want to understand how the below output is possible, and how to fix it so that my program can actually be found without a full path specified:  root:/usr/local/bin# ./siege **************************************************** siege: could not open /usr/local/bin/etc/siegerc run 'siege.config' to generate a new .siegerc file **************************************************** root:/usr/local/bin# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games root:/usr/local/bin# siege bash: /usr/bin/siege: No such file or directory root:/usr/local/bin# wtf!?!?   I'm on Ubuntu 12.04 using bash.  Also please note the warning output from siege is not relevant for the purposes of this question, as I am only interested in whether or not the program can be found and invoked.