When compiling, cline between the coloured cell doesn't appear

I'm compiling this code and as result I have this table:     \begin{table}[!h] \centering \begin{tabular}{cc|c|c} \toprule                                                                                &                                                              & \textbf{$\mathcal{J}$ fairness index}           & \textbf{TB size}                                \\ \midrule                                                                                & \cellcolor[HTML]{9B9B9B}{\color[HTML]{000000} $16 \times 8$} & \cellcolor[HTML]{9B9B9B}{\color[HTML]{000000} } & \cellcolor[HTML]{9B9B9B}{\color[HTML]{000000} } \\ \cline{2-4}                                                                                & \cellcolor[HTML]{C0C0C0}$16 \times 4$                        & \cellcolor[HTML]{C0C0C0}                        & \cellcolor[HTML]{C0C0C0}                        \\ \cline{2-4}  \multirow{-3}{*}{\textbf{\begin{tabular}[c]{@{}c@{}}BLIND\\ METHOD\end{tabular}}}     & \cellcolor[HTML]{EFEFEF}$4 \times 4$                         & \cellcolor[HTML]{EFEFEF}                        & \cellcolor[HTML]{EFEFEF}                        \\ \midrule                                                                                & \cellcolor[HTML]{9B9B9B}$16 \times 8$                        & \cellcolor[HTML]{9B9B9B}                        & \cellcolor[HTML]{9B9B9B}                        \\ \cline{2-4}                                                                                & \cellcolor[HTML]{C0C0C0}$16 \times 4$                        & \cellcolor[HTML]{C0C0C0}                        & \cellcolor[HTML]{C0C0C0}                        \\ \cline{2-4}  \multirow{-3}{*}{\textbf{\begin{tabular}[c]{@{}c@{}}TRAINING\\ METHOD\end{tabular}}}  & \cellcolor[HTML]{EFEFEF}$4 \times 4$                         & \cellcolor[HTML]{EFEFEF}                        & \cellcolor[HTML]{EFEFEF}                        \\ \midrule                                                                                & \cellcolor[HTML]{9B9B9B}$16 \times 8$                        & \cellcolor[HTML]{9B9B9B}                        & \cellcolor[HTML]{9B9B9B}                        \\ \cline{2-4}                                                                                & \cellcolor[HTML]{C0C0C0}$16 \times 4$                        & \cellcolor[HTML]{C0C0C0}                        & \cellcolor[HTML]{C0C0C0}                        \\ \cline{2-4}  \multirow{-3}{*}{\textbf{\begin{tabular}[c]{@{}c@{}}HEURISTIC\\ METHOD\end{tabular}}} & \cellcolor[HTML]{EFEFEF}$4 \times 4$                         & \cellcolor[HTML]{EFEFEF}                        & \cellcolor[HTML]{EFEFEF}                        \\ \bottomrule \end{tabular} \caption{•} \label{tab_fairness_los} \end{table}   I would like to know how I can make the cline between coloured cells appear? Any idea? Is there something wrong in the code? Do I need a particular package?  If I use \hline instead of \cline this is what happens:  Sincerely I don't know how I should write


Let $P$ is the space of all polynomial mappings on the field $\mathbb{R}$; $\Vert\cdot\Vert$ is a norm in $P$. Prove that:$(P,\Vert\cdot\Vert)$ is not a Banach space.


How to stop macOS updates from taking over the rEFInd boot manager?

I have rEFInd installed on the EFI partition of my 2015 MacBook Air. Every time I update macOS, it ends up taking over the bootloader and resetting it to using the macOS operating system. Afterwards, if I hold the option key while booting up my mac, there is no boot option for rEFInd that I can select. The only way I can bring rEFInd back is to boot up into recovery mode, manually mount my system partition with Disk Utility (as it is encrypted using FileVault), then open Terminal and reinstall rEFInd. It's quite a hassle.  Is there any better way to handle macOS updates?  I have read the section of the rEFInd manual named "Recovering from a Coup Using MacOS" but I didn't find any information in there that was pertinent to my situation. Note that I cannot disable System Integrity Protection (which one of the solutions there requires) as I need to keep it enabled for the software development I do on this system.  Below is the output from the command diskutil list disk0.  /dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *121.3 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_APFS Container disk1         121.1 GB   disk0s2   I have Windows, Linux, and macOS 10.15 beta installed to an external drive, so my MacBook's internal drive just has macOS.


Update is not applicable to the equipment, Windows Server 2016

I have problems to execute windows updates through independent windows installers.  The equipement show message that say: The update is not applicable in this equipement.  S.O Windows Server 2016


Prove convergence from $|\sum_{k = 1}^n a_k |\leq \sqrt{n}$

Given  $|\sum_{k = 1}^n a_k |\leq \sqrt{n}$, how to show that $\sum_{k = 1}^\infty a_k/k $ converges?.  I've not encountered a convergence problem where I don't know the convergence of $(a_n)$. So the usual test are out of option.


Find the sum of the series $\sum \limits_{n=1}^{\infty} \frac{2^{-n}(n+3)}{(n+1)(n+2)}$

Find the sum of $\sum \limits_{n=1}^{\infty} \frac{2^{-n}(n+3)}{(n+1)(n+2)}$


If $\{f_i\}$ generate the unit ideal in a ring, so do $\{f_i^N\}$ for any positive $N$

Let $R$ be a commutative ring, and let $\{f_i\}$ be a finite set of elements generating the unit ideal in R. Then $\{f_i^N\}$ also generate the unit ideal in $R$, for any positive $N$.  Why is this true?


Why linker doesn't find my template function declared in class?

Well, the title says everything. I get this message when linking(compilation is successful):  F:/Android/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/ ../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.ex e: ./obj/local/armeabi/objs/hellondk/Player/Renderer.o: in function Renderer::On SurfaceCreated():jni/Player/Renderer.cpp:63: error: undefined reference to 'void  GameObject::test<void>()'  GameObject.h:  class GameObject {     public:     ...     template<typename T> T test(); }   GameObject.cpp:  template<typename T> T GameObject::test() {  }   Renderer.cpp(using the template):  object = new GameObject(); ... object->test<void>(); // error here


How can I resume an interrupted Firefox download?

Basic question, how do I resume interrupted / failed downloads in Firefox?


I am running Ubuntu Gnome 16.04, and this morning the Network Manager suddenly stopped showing any WiFi networks at all. One moment I was connected to a local wireless network, and the next I was not. Even worse, although the system recognises the wifi adapter, no wifi networks appear to show up.  "enp0s29u1u4c4i2" is an iPhone I am using as an access point to post this question, but usually there are only three devices (eno1, lo, wlp2s0). I am attaching the outputs of ifconfig, iwconfig and iwlist scan, all ran as sudo.  ifconfig  eno1      Link encap:Ethernet  HWaddr 24:b6:fd:fc:9b:06             UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)           Interrupt:20 Memory:e1c00000-e1c20000   enp0s29u1u4c4i2 Link encap:Ethernet  HWaddr da:cf:9c:c6:b7:a0             inet addr:172.20.10.2  Bcast:172.20.10.15  Mask:255.255.255.240           inet6 addr: fe80::6eaa:eff8:b247:91b4/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:6422 errors:0 dropped:0 overruns:0 frame:0           TX packets:5985 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:4361666 (4.3 MB)  TX bytes:964896 (964.8 KB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:2653 errors:0 dropped:0 overruns:0 frame:0           TX packets:2653 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1            RX bytes:209742 (209.7 KB)  TX bytes:209742 (209.7 KB)  wlp2s0    Link encap:Ethernet  HWaddr e0:06:e6:02:40:ae             UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:7           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)           Interrupt:17   iwconfig  lo        no wireless extensions.  enp0s29u1u4c4i2  no wireless extensions.  eno1      no wireless extensions.  wlp2s0    IEEE 802.11abg  ESSID:off/any             Mode:Managed  Access Point: Not-Associated   Tx-Power=200 dBm              Retry short limit:7   RTS thr:off   Fragment thr:off           Encryption key:off           Power Management:off   iwlist scan  lo        Interface doesn't support scanning.  enp0s29u1u4c4i2  Interface doesn't support scanning.  eno1      Interface doesn't support scanning.  wlp2s0    No scan results   According to lspci, my network controller is a "Broadcom Corporation BCM43228 802.11a/b/g/n". I had some issues getting the OS to recognise it right after installing 16.04, but I solved them long ago by switching the default drivers. What can I do to start seeing wifi networks again?   Thanks!  Gonzalo  EDIT  As per Pilot6's suggestion, I am adding the output of lspci -knn | grep Net -A2  00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection [8086:1502] (rev 04)     DeviceName:  Onboard LAN     Subsystem: Dell 82579LM Gigabit Network Connection [1028:04a9]     Kernel driver in use: e1000e     Kernel modules: e1000e -- 02:00.0 Network controller [0280]: Broadcom Corporation BCM43228 802.11a/b/g/n [14e4:4359]     Subsystem: Dell Wireless 1530 Half-size Mini PCIe Card [1028:0011]     Kernel driver in use: wl   Also, here's the result of running the  mentioned by @eldergeek:


Prevent iPhone from charging when plugged into a battery powered MacBook Air

I would like to prevent my iPhone draining power from my MacBook Air while the laptop is not plugged in and relying on battery power. How would I do this? Note, there doesn't seem to be any "unpowered USB ports" on the MacBook Air, both of them seem to charge my iPhone even when the laptop is not plugged into a power socket...


I'm using MacOS Catalina and I following this question to install scipy with my addon:   Running this code downloads and installs the module so I can use it in Terminal:  >>> import scipy >>> print(scipy.pi) 3.141592653589793   However Blender doesn't see the module:  Traceback (most recent call last):   File "/Text", line 2, in <module> ModuleNotFoundError: No module named 'scipy' Error: Python script failed, check the message in the system console   What I noticed is that if I try to run the install code again, I see this in the console:  Requirement already up-to-date: pip in /Applications/Blender.app/Contents/Resources/2.83/python/lib/python3.7/site-packages (20.1.1) Requirement already satisfied: scipy in ./.local/lib/python3.7/site-packages (1.4.1) Requirement already satisfied: numpy>=1.13.3 in /Applications/Blender.app/Contents/Resources/2.83/python/lib/python3.7/site-packages (from scipy) (1.17.0)   So scipy is located in ./.local and other modules are in Blender.app/Contents/. Does anyone know how can I fix this and use scipy in my addon?


Is there a name for text that reads the same upside-down?

This is similar to a palindrome but, instead of a word/sentence that reads the same forwards and backward, is there a word for words/sentences that read the same right side up and upside-down?  See picture below where the word "yeah" is written in cursive:


Pre means "previously" or "before". Therefore, Pre-sliced means "before being sliced" or "unsliced". Packaged, halved bagels would properly be referred to, then, as "Sliced Bagels".   Am I correct?


In terminal, I find this and it does not respond well to my orders, what should I do?     To run a command as administrator (user "root"),    use "sudo <command>".    See "man sudo_root" for details.   This message is found in the beginning of terminal.


Justify text inside itemize environment with beamer class

I would like to justify text inside an itemize environment with the beamer class. Text appears to be justified by default with the article class, but not with the beamer class.  The following code justifies text left and right:      \documentclass{article}     \usepackage{lipsum}     \begin{document}     \begin{itemize}     \item \lipsum[1-1]     \end{itemize}     \end{document}   The following code does not:      \documentclass{beamer}     \usepackage{lipsum}     \begin{document}     \begin{frame}     \begin{itemize}     \item \lipsum[1-1]     \end{itemize}     \end{frame}     \end{document}   I have tried this:      \documentclass{beamer}     \usepackage{ragged2e}     \usepackage{lipsum}     \let\olditemize=\itemize      \renewenvironment{itemize}{\olditemize\justify}{\endlist}      \begin{document}     \begin{frame}     \begin{itemize}     \item \lipsum[1-1]     \end{itemize}     \end{frame}     \end{document}   but it won't justify text on the right. Any suggestions welcome!


I generate a list and each element in the list is a list too. I do it using a function with a 'for' loop in it. When I update the single value of the list it's updated in each sub-list instead.  I've noticed that when I create a list manually like:  array = [['O', 'O', 'O'], ['O', 'O', 'O'], ['O', 'O', 'O']]  all works as expected.  But when I use my function which produces exactly the same output it fails.   def array_generation(size):     array = []     row = ['O'] * size     for i in range(size):         array.append(row)     return array  myArray = array_generation(3) myArray[0][0] = "S"   Actual Result: [['S', 'O', 'O'], ['S', 'O', 'O'], ['S', 'O', 'O']]  Expected Result: [['S', 'O', 'O'], ['O', 'O', 'O'], ['O', 'O', 'O']]


what is ['1','2','3'].map(parseInt) result


When I try fsck, it returns  sh: fsck: not found


gcc: templated base class doesn't compile

Why this code compiles succesfully in VS13 and fails to compile by gcc?  template <typename T>     class Base { protected:     typedef std::map<T, double> MyMap;     MyMap m_map;  public:     void func(const T& key)     {         typename MyMap::iterator it = m_map.find(key);         if(it != m_map.end()) {             // ....         }     } };  class Inherited1 : public Base <char> { }; class Inherited2 : public Base <int> { };   It results in following errors (gcc 4.1.2)  test.cpp: In member function ‘void Base<T>::func(const T&)’: test.cpp:16: error: expected `;' before ‘it’ test.cpp:17: error: ‘it’ was not declared in this scope   EDIT1: Thanks for replies. Tried using keyword typename as juanchopanza suggested, now I got this errors:  /tmp/ccotJWFl.o: In function `__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, double> > >::deallocate(std::_Rb_tree_node<std::pair<int const, double> >*, unsigned long)': test.cpp:(.text._ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKidEEE10deallocateEPS5_m[__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, double> > >::deallocate(std::_Rb_tree_node<std::pair<int const, double> >*, unsigned long)]+0x19): undefined reference to `operator delete(void*)' /tmp/ccotJWFl.o: In function `__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<char const, double> > >::deallocate(std::_Rb_tree_node<std::pair<char const, double> >*, unsigned long)': test.cpp:(.text._ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKcdEEE10deallocateEPS5_m[__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<char const, double> > >::deallocate(std::_Rb_tree_node<std::pair<char const, double> >*, unsigned long)]+0x19): undefined reference to `operator delete(void*)' /tmp/ccotJWFl.o:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0'   EDIT2: This whole stuff becomes even more ridiculous - it results in the above mentioned errors if I use gcc test.cpp compiles successfully if I write g++ test.cpp


Prove that $\lim_{n \rightarrow \infty}\sqrt[n]{n}=1$

How to prove $$\lim_{n \rightarrow \infty}\sqrt[n]{n}=1.$$   I have problem in proving this statement at the beginning my textbook says:  Suppose $f_{n}=\sqrt[n]{n}=1+h_{n}$ where does this $1+h_{n}$ come from? and what does it mean?  if we can write $\sqrt[n]{n}=1+h_{n}$ then $f_{n}=1+h_{n}$  so by defintion of convergence let $\varepsilon\gt0$ be given. There exists a positive integer $K\gt\frac{1}{h_{n}}$  such that $|f_{n}-l|\lt\varepsilon \implies |1+h_{n}-1|\lt\varepsilon\implies h_{n}\lt\varepsilon$...therefore $\sqrt[n]{n}\to 1$....Am i right?


Now MiKTeX has the following setting:    I have it set to A4 (A4size) all the time. But I don't really understand what this setting is supposed to do. When I compile  \documentclass{book} %\usepackage{fullpage} \begin{document} Hello World! \end{document}   I get an A4 document, however uncommenting the fullpage package changes it to lettersize. The package documentation says that it needs the appropriate documentclass option, but I thought that is passed to the class by the MiKTeX default setting.  So what exactly does that setting do? Also, why are there two options for Letter, A4 and A6?


I really fail to understand Hardy-Weinberg equilibrium and can't find an easy enough source of information.  Can you help me to understand Hardy-Weinberg equilibrium?  My goal is to be able to solve the following kind of problem     In a population with two alleles for a certain locus, B and b, the allele frequency of B is 0.7. What is the frequency of heterozygotes if the population is in Hardy-Weinberg equilibrium?


Why is my output being displayed as "[I@15db9742"?

Trying to learn Java. I am working on arrays. Here is a simple program that the output is not being displayed as I want it to be. package arrays2;  public class Arrays2 {      public static void main(String[] args) {         int[] userAge;         userAge = new int[] {22,24,26,27,28};         System.out.println("The ages of my friends are " + userAge + ".");              }      }   The output shows: run: The ages of my friends are [I@15db9742. BUILD SUCCESSFUL (total time: 0 seconds) Shouldn't the output be displayed as: The ages of my friends are 22,24,26,27,28.


What is a ~ (tilde) when used as a prefix to a path?

Edit: This is a duplicate of .  I don't have the reputation to close this question as duplicate.  I'm not referring to ~ as in the home directory but rather this:  $ ls ~foo/bar /some/mount/point/foo/bar   However if I attempt it with a different mount point, e.g.:  $ mount | ag "/dev " devfs on /dev (devfs, local, nobrowse) $ ls /dev/stdin /dev/stdin $ ls ~stdin zsh: no such user or named directory: stdin .  # bash has a similar error message:  ls: ~stdin: No such file or directory   What is the ~ called in this context?  How does it work?  Edit: More information based on some of the comments below:   I can attest that foo is not a username on my system. When attempting to autocomplete ls -lah ~ not all options are shown.  i.e. I'm able to cd ~qux, when qux doesn't show up in the autocomplete.  Again qux is not a user in my system. If it matters /some/mount/point is a network share. All of the details suggest some named path muckery, a Z shell feature of pathname expansion, but this works in bash as well, which apparently doesn't support things like the Z shell's named paths.


Clicking on `Add Comment` used to focus on the comment area but it doesn't anymore

Clicking on Add Comment used to focus on the comment area so one could start typing immediately instead of having to click in the textbox (unless I just imagined it)  Can we please reinstate that process (or create it if it never existed)?  I find myself clicking on Add Comment and typing for a couple seconds before realizing that the comment box was not focused and I was doing nothing...


n factorial is product of all numbers between n and 1.  0 factorial is (0 * 1 = 0).  Why is 0 factorial 1?  How can I proof this in mathematical way?


What will be net tension if 10 newton force pull a body from opposite side.Will it be 10,20 or zero newton.


Check if any names are present in two columns

I have two lists on names, first list of names just under 140k (Column A), second under just over 7k (Column B).  I want to see if there any matches from column A & B.  My Excel skills are basic at best. Any way I can do this?


Constructing the group multiplication table for $|G| = 6$

All groups of order 6 are isomorphic to either $S_3$ or $\mathbb{Z}_6$.  Without knowing that, I was trying to derive how many structurally distinct groups of order 6 exists by constructing the multiplication tables.  And I came upon the following statement on this :       Having all non-identity elements have order 2, means the group is abelian.   Is this trivial? Could I know that before trying to build the table?


Background  Wrote a technical manual in LyX. The technical manual currently has two parts:   Cover image (PDF) Manual text (PDF)   Problem  When merging the two PDF files (with GhostScript or other software tools), there are a number of issues:   Bookmarks (lost in merging) Colours (obvious changes) PDF tags (lost in merging)   I would rather include the cover page image as a full page (no margins) at the start of the manual and have LyX (LaTeX) generate the front page when it creates the PDF. In this fashion, the cover page and the manual text need not be merged as a separate step.  Question  How do you instruct LaTeX to generate a full page image as the first page in a PDF using KOMA-Script?  Update  Using the pdfpages package produces the following result:    Note the white space above and below the image. The white space is removed using the following:  \includepdf[fitpaper]{cover}   Update  Part of the preamble contains:  % Resize figures that are too wide for the page. \let\oldincludegraphics\includegraphics \renewcommand\includegraphics[2][]{%   \graphicsformat{%     \oldincludegraphics[width=\ScaleIfNeeded,#1]{#2}%   }% }   The full preamble is at:   The error message is:  !pdfTeX error: pdflatex (file cover.pdf): cannot find image file   The file ch_02.lyx and test.latex are in the same directory. The file test.latex is the document in Martin's post. The file test.latex can find the file cover.pdf, yet the file ch_02.lyx cannot find the file. Both use the following code:  \includepdf[fitpaper]{cover.pdf}   Update  The most minimal LyX example that produces the problem:  #LyX 1.6.7 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass scrbook \begin_preamble \usepackage{pdfpages} \end_preamble \use_default_options false \language english \inputencoding utf8 \font_roman lmodern \font_sans helvet \font_typewriter courier \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100  \graphics default \float_placement H \paperfontsize default \spacing single \use_hyperref true \pdf_bookmarks true \pdf_bookmarksnumbered false \pdf_bookmarksopen false \pdf_bookmarksopenlevel 1 \pdf_breaklinks false \pdf_pdfborder false \pdf_colorlinks false \pdf_backref false \pdf_pdfusetitle true \papersize letterpaper \use_geometry false \use_amsmath 2 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \bullet 0 5 11 -1 \bullet 1 5 24 -1 \bullet 2 0 0 -1 \tracking_changes false \output_changes false \author ""  \author ""  \end_header  \begin_body  \begin_layout Standard \begin_inset ERT status collapsed  \begin_layout Plain Layout   \backslash includepdf[fitpaper]{cover.pdf} \end_layout  \end_inset   \end_layout  \begin_layout Standard Test \end_layout  \end_body \end_document   Thank you!


How to print out each command argument with echo?

According to  ...     A command is split into an array of strings named arguments. Argument   0 is (normally) the command name, argument 1, the first element   following the command, and so on.  $ ls -la /tmp /var/tmp arg0 = ls arg1 = -la arg2 = /tmp arg3 = /var/tmp    Would it be possible to print out each argument ... let say with echo.  I've been using echo $@ and echo $0 $1 $2 $3 right after executing ls -la /tmp /var/tmp command but didn't really work.  I also tried this without > /dev/null but didn't work as well. (I'm getting exactly similar output as below)  user@linux:~$ ls -la /tmp /var/tmp > /dev/null  user@linux:~$ echo $@  user@linux:~$   user@linux:~$ ls -la /tmp /var/tmp > /dev/null  user@linux:~$ echo $0 bash user@linux:~$   user@linux:~$ ls -la /tmp /var/tmp > /dev/null  user@linux:~$ echo $1  user@linux:~$   user@linux:~$ ls -la /tmp /var/tmp > /dev/null  user@linux:~$ echo $0 $1 $2 $3 bash user@linux:~$    Desired Output  I'm expecting to see the following output on my terminal screen after executing ls -la /tmp /var/tmp  Input  ls -la /tmp /var/tmp  Output  arg0 = ls arg1 = -la arg2 = /tmp arg3 = /var/tmp


Should "communicate clearer" be "communicate more clearly"

I just saw an ad on Twitter that says: "Communicate clearer by drawing and talking over your images".  It seems to me they aren't communicating very clearly and it would be better to phrase their sentence like this: "Communicate more clearly by drawing and talking over your images".  Can you tell me if I am correct and why I am correct or wrong/mistaken please?


How to change the value of a variable based on the value of a string in java (android)

In my applicatin I want to change the value of a variable dynamically , Based on string . Here is what I have tried   public void onClick(View v)     {         switch (v.getId())         {             case R.id.btCalculate:                  int column = Integer.parseInt((String) spColumn                         .getSelectedItem());                 int inch = Integer.parseInt((String) spInch.getSelectedItem());                 int colum_inch = column*inch ;                 int MULTIUPLIER ;                  if (page_number=="FirstPage(Color)Minimum12Maximum80ColumnInch-14500PerColumn/Inch")                  {                         MULTIUPLIER=20;                 }                  else if (page_number=="3rd Page Color: 9000") {                     MULTIUPLIER=9000;                  }                 else {                         MULTIUPLIER=10;                 }                 if (colum_inch<4) {                     tvAmount.setText(page_number);                  } else {                     tvAmount.setText((MULTIUPLIER *colum_inch) + "");                 }                  break;         }     }   Here the variable page_number is a string which stores the text of clicked button .  In my previous activity I have two button , one button text is "FirstPage(Color)Minimum12Maximum80ColumnInch-14500PerColumn/Inch" another "3rd Page Color: 9000"  .  But the problem is in my  out the MULTIPLIER is always set to "10" . No matter which button I have clicked . How can I resolve this . How can I change the value of that variable (MULTIPLIER) based the text of clicked button .


Difference between "it's imperative you..." and "it's imperative THAT you..."

"it's imperative you post a picture of your pug" or "it's imperative THAT you post a picture of your pug"  What's the difference?


Find the value of $\sqrt{2+\sqrt{2+\sqrt{2+\dots}} }$

How to prove that $\sqrt{2+\sqrt{2+\sqrt{2+\dots}} }=2$


Minus signs vanish with listings and breqn - any solutions?

When using listings and breqn, the minus signs (or dashes, according to the unix.SX site then there's some controversy about which it is) disappear from code listing.  Here's an example:  \documentclass{article} \pagestyle{empty} \usepackage{breqn} \usepackage{listings}  \begin{document}   \lstset{language=Perl} \begin{lstlisting} #! /usr/bin/perl -w  if ($ARGV[0] =~ /^-/) {     print "Option given"; } \end{lstlisting} \end{document}   with result:    Changing the order of package loading doesn't help.  breqn does warn that it might break other packages, but it would be really useful to have both working.  If it helps, the code listings are in appendices so happen after the equations which breqn is meant to help with so I can happily reset anything that got changed.


Is it safe to temporarily redefine \and, \or, and \not?

I'm writing lots of logic expressions in LaTeX and I'd much rather write $p \and \not q \or r$ than $p \land \lnot q \lor r$. I was thinking of doing something like this:  \newenvironment{logic}{% \renewcommand\and\land% \renewcommand\or\lor% \renewcommand\not\lnot% }{}   Then I could simply  \begin{logic}     p \and \not q \or r \end{logic}   Are the commands \and, \or, and \not built into TeX? Is it safe to temporarily redefine them? If not, can you recommend any alternatives? Thanks!


Problem regarding memory allocation in C++ while using static members

In C++ the memory is created only when we declare the object(s) for the respective class(s).  So when we make any member function as static inside the class, we are able to access that member function directly by the class name, without creating any object of the class. Then how the memory is allocated in this condition without any object. Example program: #include<iostream> using namespace std;  class sample {     static int a,b;     public:     static void read()     {         cout<<"Enter integers:- ";         cin>>a>>b;          cout<<"a= "<<a<<endl;         cout<<"b= "<<b<<endl;     } };  int sample::a; int sample::b;  int main() {     sample::read(); //Accessing read() with the class name     return 0; }


Show that energy is decreasing - PDE - Energy

$ u_{tt}-u_{t}-u_{xx} =0\;,\;t>0\;,\;x\in(0,\pi) \\  u(0,t)=u(\pi,t)=0,\; t>0 \\ E(t):= \frac{1}{2}\int_0^\pi(u_t^2(x,t)+u_x^2(x,t))dx. \\ $  I solved this equation and I end up with something like that  $ E'(t)=\int_0^\pi (u_tu_{tt}+u_xu_{xt})\mathrm dx=\int_0^\pi (u_tu_{xx}+u_xu_{xt})\mathrm dx+\int_0^\pi (u_t)^2\mathrm dx$.  Since $\int_0^\pi (u_tu_{xx}+u_xu_{xt})\mathrm dx = \int_0^\pi(u_tu_x)_xdx=0$ we ended with $E'(t)=\int_0^\pi (u_t)^2\mathrm dx$. How can I show that   it is decreasing? thanks in advance


Smarter way of doing array initialization?

I need to initialize a fixes size arrays quite often, like so:   for( uint16_t q=0; q<SIZE; q++ )      array[q]=value;   Array is defined as float array[SIZE];  Is there a nicer way of doing this, replacing with a macro or similar?  p.s.  Not allowed to use mem___ calls.


How do I reboot a Ubuntu Server from the command line? sudo reboot now never seems to work for me. Because its a server, I don't have a window manager installed, so I can't do it from a GUI (which always seems to work).    I've had the problem for years on different versions of the operating system. It happens in virtual machines and on real metal. The same problem exists with sudo shutdown now, too.  I've lived with it in the past. The difference now is I don't want to just hit the power button because I might lose data.


Light has energy, so does that mean it has mass due to what  tells us? And if light does have mass, then how does it still travel at the speed of causality? I feel like I'm getting confused between relativistic mass and rest mass or I'm misinterpreting $E=mc^2$.


I have read some tutorials about Snapcraft and snappy and I am really excited about it.  I am using 16.04 and used snap find to find and install the ubuntu-calculator-app snap. But I don't know how to start it.  It is neither in my Dash (Unity 7) nor in my path (using zsh)  Also, I followed the instructions in this   To create a links snap and install it. But, again, I don't know how to start the app.  Thanks for your help


Shouldn't I get a notification when someone edits my question?

When someone suggests an edit I get a notification so I can approve. But it looks like if someone with enough reputation points edits my question, it doesn't send anything.  Shouldn't I get a notification? In case I don't agree with the changes, have a chance to rollback to original version.


strange results for double values in swift

why i’m getting this strange result in swift for double values  let x = 1000000000000000000000.0; let y = 1000000000000000000001.0;  print(x-y);    //0      but should be -1 print(y-x);    //0      but should be 1 print(x==y);  //true    but should be false   i’m using swift 3


How do I add a texture to a cube that already has one

So I am making a kar98k model but the entire texture is metal everytime I switch to Texture Paint the whole model gets turned into the wooden texture but for the bolt and barrel I intend to be a metal texture so far I have everything finished I just need to know how to add a specific texture to my bolt and barrel.


How do I automatically run a shell script at start up?

Situation: Whenever I boot up my Raspberry PI, I have to enter a few lines of commands to enable an interface. The commands:   sudo modprobe batman-adv sudo batctl if add wlan0 sudo ifconfig wlan0 up sudo ifconfig bat0 up   I would like to run a script that allows these commands to execute automatically when I boot up the Raspberry PI.


How strong is Daenerys's claim to the Iron Throne after season six?

Does Daenerys have a stronger claim to the Iron Throne than Cersei after      Tommen’s death   if we say she succeeds Tommen and not Aerys II?      Tommen left no siblings behind; his 'father' Robert and Robert’s siblings are dead.   We have to go further up the Baratheon family tree and we will see that Robert had a grandmother (she would be Tommen’s great-grandmother), Rhaelle Targaryen, who is also Daenerys's great-aunt.  Some people say that Cersei Lannister is the heir of Tommen - if you go all the way up the Baratheon family tree, you will find Cersei’s great-great-great-great-grandfather, Mathin Lannister, but isn’t this claim weaker than Daenerys's claim?


If Resistivity = $\frac{RA}{L}$, why does it not depend on dimension?

The formula for resistivity is: $$\rho = \frac{RA}{L}$$  where $\rho$ is resistivity,  $R$ is resistance, $A$ is cross-sectional area, and $L$ is the length of the conductor.    We can see from the formula that $A$ and $L$ are involved, why then does resistivity not depend on dimensions?


Who can submit papers to peer-reviewed journals?

Financial terms, content quality, etc, is not a problem. The author has a contribution that will significantly impact the advancement of human knowledge about a particular topic.  Can anyone submit a paper? Or does it require some affiliation with a larger group such as an educational/governmental/corporate institution?  I am talking about journals of such clout as the Journal of Fluid Mechanics, Physics of Fluids, etc.


I downloaded this file.   Then, maybe there is some eye pattern.   But, I don't know how to change eye. How to change? Thank you.   supplementation -     In this topic, the facial expression image is displayed large, but I do not know where this image is in the first place.How can I make the same screen as this?


In a situation when I talk with someone about setting up a schedule, can we use "totally" with a phrase like the title? I know that the meaning of totally itself is basically used for emphasizing the expression. And I also know that completely sounds more polite and also a little old.　But what I just want to know is whether native speakers use "totally" in this kind of situation or not. Does it sound normal? Or do you have some other better suggestions?


Finite Dimensional Vector Spaces and Completeness

Show that a finite-dimensional vector space $V$ is complete.    I'm not sure on how to start with this problem. I kind of think that one should use the fact that any two norms on the finite vector space are equivalent, but I don't know how to proceed forward. What would be a way to solve the problem?  Thanks for the help.


Can two players play non-simultaneously?

My fiancee and I are trying to find a game that we can play together, and neither one of us is a strategy fan. The whole sandboxy aspect of Civ seemed like it might be a nice way to get our feet wet. The one issue is we tend to have conflicting schedules.  Is it possible to start a two player game, make a turn, then log out. Then she can log in, make her turn, and log out. Sort of like one would do with games like "Chess with friends"?   Or does it require that we both sit down and play a game from beginning to end? Can't seem to find an answer to this. Thanks!


grubrescue> /boot/grub/i386-pc/normal.mod not found

I am getting grub rescue error on boot up. Error is like:     /boot/grub/i386-pc/normal.mod not found   I typed the ls command to see the partitions available.  Result of ls is:     hd0 (hd0,msdos1) (hd0,msdos5)   On command: ls (hd0,msdos1) am getting a list of folders available .  But /boot folder is not visible here.  Though, normal.mod is available under /usr/lib/grub/i386-pc/ directory, but cp command is not working on shell.  The  given in comment section works fine if /boot directory is present. But, in my case it is not showing any /boot directory under (hd0, msdos1) partition.   Any solution for the above problem or do I need to dump OS again?  Thanks in advance.


First Boot Not Happening [ 7.471657] Adding 4041724k swap on /dev/sda7 Priority :-1 extents: 1 across :4041724k FS

I have been trying to get Ubuntu up and running in dual boot, this is the first time I have tried to install linux. Everything was going well with the install, the progress bar had reached the end of installing files and then I got a black screen with a few lines of writing on it that forced my laptop to shut down.  On booting I was taken to grub, where I have the option to boot in Ubuntu and windows (and some other options), when booting Ubuntu I am sent to a black screen with blinking cursor. I can type there, but nothing else happens. Courtesy of some help here, I was sent to this page --   I followed instructions for black/purple screen on booting for the first time, changing "quiet splash" to "nomodeset" and hitting ctrl-k. I am now taken to a black screen with a lot of stuff going on line by line and then the last line is:     [7.471657] Adding 4041724k swap on /dev/sda7 Priority :-1   extents: 1 across :4041724k FS   Underneath that line I am left with the blinking cursor again and nothing happens.  Extra Details:   I installed Ubuntu onto a partition I used a USB created with Linux/Live for install Using Ubuntu 13.10   Not sure if this detail is relevant but I noticed that Python 3 and some other files were uninstalled after being installed when I watched what files were being written during the progress bar on installation. Just struck me as strange.  Any ideas on what I can do to get things working?  EDIT: Here is the output of sudo apt-get update:  sudo: unable to resolve host (none) Ign cdrom://Ubuntu 13.10 _Saucy Salamandor - Release amd 64 (20131016.1) saucy InRelease Ign cdrom://Ubuntu 13.10 _Saucy Salamandor - Release amd 64 (20131016.1) saucy Release.jpg W: Not using locking for read only file /var/lib/opt/lists/lock E: Couldn't create temporary file work with /var/lib/apt/lists/Ubuntu%2013.10%20%5fSaucy%20Salamander%5f%20-%20Release%20amd64%20(20131016.1)_dists_saucy_Release - mkstemp (30 : Read - only file system) W: Not using locking for read only lock file ``/var/lib/dpkg/lock`` E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem   So I then typed in sudo dpkg --configure -a, and I got this:  $ Sudo: unable to resolve host (none) $ dpkg: error: unable to access dpkg status area : Read - only file system   EDIT 2: Having typed mount -o rw,remount / I get this output:  mount: /dev/sda6 already mounted or / busy mount: according to mtab /dev/sda6 is already mounted on /   At this point I also typed mount --all (although not sure if I need to), but nothing happened. I did this having searched for and followed this --   EDIT 3: Here is the pic from gparted -   Yep, so sudo dpkg --configure -a did yield some results. There were a lot lines, particularly "setting up lib" lines such as setting up libfa0 (0.9.3.5). I did notice in the middle of the lines somewhere it stated package in a very bad inconsistent state, and the final line read:  Errors were encountered while processing :  libfluidsynth : amd64   Then when I typed sudo apt-get update I got:  sudo: unable to resolve host (none)     Ign cdrom://Ubuntu 13.10 _Saucy Salamandor - Release amd 64 (20131016.1) saucy InRelease     Ign cdrom://Ubuntu 13.10 _Saucy Salamandor - Release amd 64 (20131016.1) saucy Release.jpg     W: Not using locking for read only file /var/lib/opt/lists/lock     E: Couldn't create temporary file work with /var/lib/apt/lists/Ubuntu%2013.10%20%5fSaucy%20Salamander%5f%20-%20Release%20amd64%20(20131016.1)_dists_saucy_Release - mkstemp (30 : Read - only file system)     W: Not using locking for read only lock file ``/var/lib/dpkg/lock``   ...which is almost the same as the first time you told me to sudo apt-get update except for the last line - now E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem is not there.


Can I use HMAC-SHA1 in counter mode to make a stream cipher?

Say I have an embedded device which is only capable of doing HMAC-SHA1 transformations (that device is, in fact, a YubiKey).  Would it be secure to feed it like a block cipher in counter mode to get a random pad suitable as an stream cipher?  Of course, I'm talking about not repeating the counter value ever to encrypt data (so this construction would also need some random IV or treating the counter value as a nonce forever).


Windows Activation FAQ: How do language, version, 64-bit or 32-bit, and source affect ability to install and transfer Windows licenses?

We get a lot of questions on Super User about Windows activation and licensing. This question is an attempt to answer the most common questions in one place with a .   When reinstalling Windows, the following questions often come up:   Can I transfer the copy of Windows from my old computer to a new one? Does the license key on the sticker on my computer work on any computer? If I have a 32-bit version, can I install a 64-bit version? I have an OEM version of Windows, but only a retail disk. Can I still use it? I want to install Windows with a different language. Do I need a new license in that language? I changed some hardware. Will I be able to reactivate my computer? Can I back up my activation before doing a reinstall? How many computers can I install my license on? Do I have to deactivate my old installation before transferring a license? If so, how? How does licensing work in Windows ? What are the restrictions on transferring, reinstalling, and changing versions of Windows?


I need to prove that for each natural n:  $$ 1^3+2^3+... +n^3 = (1 + 2+  ...+n)^2 $$  How do I do that? how do I know whether I should choose strong induction or simple induction?


I've heard this term of "dragging the shutter". What does this mean and why would I use it?


Python: For each list element apply a function across the list

Given [1,2,3,4,5], how can I do something like   1/1, 1/2, 1/3,1/4,1/5, ...., 3/1,3/2,3/3,3/4,3/5,.... 5/1,5/2,5/3,5/4,5/5   I would like to store all the results, find the minimum, and return the two numbers used to find the minimum. So in the case I've described above I would like to return (1,5).  So basically I would like to do something like  for each element i in the list map some function across all elements in the list, taking i and j as parameters store the result in a master list, find the minimum value in the master list, and return the arguments i, jused to calculate this minimum value.  In my real problem I have a list objects/coordinates, and the function I am using takes two coordinates and calculates the euclidean distance. I'm trying to find minimum euclidean distance between any two points but I don't need a fancy algorithm.


I'm trying to draw a thinness line in space using pst-solides3d:  \begin{center} \psset{unit=0.4cm} \psset[pst-solides3d]{viewpoint=40 30 25 rtp2xyz,Decran=60,fontsize=0} \begin{pspicture}(-2,-3)(3,10) \psSolid[object=line,args=0 4 0 0 4 4,linewidth=0.1pt] \end{pspicture} \end{center}   but command linewidth seems have no effect. Thanks.


The title is very basic but I have a three-fold question about flight codes.  Who decides of a flight code, who uses it (or is expected to use it) and what does it mean?  We have a couple questions on the site about flight codes (usually called flight numbers). They deal with the fact that , that  or . I checked  about it but while it seems to list what it is not (an airplane identifier) or list some traditions about numbering, it does not really define what it is (beside that it "identifies a flight", but I would think it defines a flight route, not just a flight).  So what does a flight code actually identify? A [commercial, passenger] flight route? Who decides/validates it? An airline, or the IATA, or some other organisation? And who is it intended for? Airports, airline employees as well as travelers?


Should "move-to-chat" be provided on demand (as a button perhaps)?

When comments get too chatty the move-to-chat feature asks if you'd like to move it out. But this often happens after the fact and thus doesn't prevent it.   I propose that:   Move-to-chat be provided as a button along side so that a user who knows their question or conversation may become drawn out may elect to preempt and take the conversation "off-line"


A graphics problem where LaTeX->PS->PDF and LaTeX->PDF both fail

I have a Latex-file with some \psplots and \includegraphics commands.  When I compile with LaTeX->PS->PDF the \psplots are okay but I get the error message   cannot determine the size of graphic in fig5.jpg    And fig5 is much to big. And also  some characters f.E \ding{46} are printed not correctly.  When I compile directly Latex->PDF I only get the right size of Fig5.jpg but no drawings from the plots. The \ding{46} is correct.  I use the latest versions of MikTeX, TexnicCenter and GhostScript (I updated the today)  What is wrong?  MWE:  \documentclass[a4paper,11pt]{article}  \usepackage{graphicx}  \usepackage{pstricks}  \usepackage{pst-plot}  \usepackage{pifont}  \usepackage{marvosym}  \begin{document}  \begin{pspicture}(0,0)(6,6)  \psset{xunit=30pt, yunit=3pt}  \psgrid[Ox=0, Oy=0, xunit=1, yunit=10,subgriddiv=1,griddots=10,gridlabelcolor=white](0,0)(0,0)(6,6)  \psaxes[Dx=1,Dy=10,linewidth=1pt,ticksize=4pt](0,0)(0,0)(6,60) \psplot[plotpoints=200, algebraic=true, linewidth=2pt]{0}{3}{3*x^2+4}  \end{pspicture}  \\  \\  \ding{46}  \\  \includegraphics[width={\textwidth}]{fig5.jpg}  \end{document}


Inconsistency regarding Archimedes' Principle

, "[...] any body completely or partially submerged in a fluid (gas or liquid) at rest is acted upon by an upward, or buoyant, force the magnitude of which is equal to the weight of the fluid displaced by the body. The volume of displaced fluid is equivalent to the volume of an object fully immersed in a fluid or to that fraction of the volume below the surface for an object partially submerged in a liquid."   The emphasis is mine, and it is that last part that got me thinking about something: What if a body stays afloat on a liquid whose volume is less than that of the object? That seemingly contradicts Archimedes' Principle because the fluid that the body displaces obviously cannot be equivalent to its actual volume; there's not enough liquid.   Take a look at the image* below:    The can has a volume of 350 mL, so it would theoretically displace roughly that much liquid if it were immersed, but this cannot happen because there is only 230 mL of (artificially colored) water. So, how does Archimedes' Principle account for this apparent paradox? Furthermore, why isn't this discussed more often?  (*The source for the picture is an article written in a foreign language, so I won't bother posting it. Interestingly, I could not find a similar setup on websites in English.)


Speed of Magnetic Signal over Large Distance

If I had a very strong magnet on Earth and a very sensitive compass on Mars (just using planets to illustrate large distance), how long would the compass take to notice if I turned the magnet 180deg?  I assume it can't beat the speed of light.  Do the outer reaches of the magnetic field move as a rigid body with the turning magnet or do they lag in motion?


Replacing a diode-OR gate by a circuit that behaves the same way (also in the presence of feedback loops) without accumulating voltage loss

Consider the following circuit with two OR gates:         – Schematic created using   and the Time Simulation:   The OR gates with both inputs 0 generate 0, and after one input is set to 1,  they remain with 1 as long as there is current. The circuit has memory.  Now consider the implementation of OR with diodes (let's call them diode-ORs):          and the Time Simulation:   In this case, the diode-ORs always generate a 0 whenever both inputs are 0. The circuit has no memory. And there is a loss of voltage, that would accumulate if more diode-OR gates were cascaded.  My question is the following: is there another implementation that behaves like diode-ORs (i.e., without memory even in the presence of feedback loops) but does not have a cumulative voltage loss (or has only a very small voltage loss)?  Or put another way: can we replace each of the two diode-ORs by a circuit so that the whole system behaves the same way, except that there is no cumulative voltage loss (or the voltage loss is very small)?  Maybe using pass transistor logic? ()  Dave Tweed suggested to use a "better diode" and that is a correct answer to the question. Is there any other alternative? A problem with that solution is that it cannot be used for the AND case, which I would also like to handle in that way (with low voltage drop, and without memory even in the presence of fededback loops) because diode-ANDs have memory when there is positive feedback ().  I am a computer scientist and I am interested in the answer mainly for theoretical reasons and for teaching purposes.  I know that the feedback loop is not needed to generate the outputs of the circuit.   Thank you!


I've just installed GDAL, but I don't know how to import/use ogr2ogr.  I've tried:  from osgeo import gdal from osgeo import ogr   and searched both for ogr2ogr, but it wasn't there.


I was doing a review task and I clicked on add a comment.  This immediately popped up:    This is not the first time that this has happened.  Now I am banned from completing review tasks.  (A) I assume that this is unintentional and should be fixed (B) Is there any way to reinstate my ability to review?


Is it fine to put 4 wood blocks around the crimson/corruption

I am just about to kill the wall of flesh and i dont want the crimson/corruption to spread over my base or jungle i am thinking that i can just put 4 wood blocks around to stop the corruption/crimson


I want to upgrade my Ububtu to 16.04. Kindly help

How do I upgrade my Ubuntu to 16.04 ? It is now 12.04. If I upgrade the version will it delete all my installed apps ? Kindly help.


I want to center a map. I have it on "width: 50%;" and it is showing one the left side. How do I do this?  I have tried to create a "wrapper" div on it an set text-align to center. This did not work. I also tried it on the .map class... Anybody tried this before?  #wrapper {   text-align: center; } .map {    height: 400px;    width: 50%; }   The reason i want to do this is because i do not want it to fill the whole screen on my webpage. it should be a smaller size window.


The bug :   Click the upper line of the legend in other to make it go away, chart is zoomed not only down but also left. Notice the red line disappearing from the zoomed chart. Notice yaxis going crazy.   Click the upper line of the legend again in order to make it come back, chart tries to go back to the initial zoom, maybe accomplishes that, I don't know, but lines alignment have changed. Notice yaxis not going completely normal.  Either the first chart or the third chart are wrong data. This is Opera 62.0.3331.119. Can reproduce using Firefox Quantum 68.0.2 and Chromium 47.0.2503.0. This is macOS 10.14.6.  How this is different from  (even likely related to, root cause might be the same but manifestations are different). If I double click lines in legend, this happens. Dis-adjustment seem to be larger than in my initial report. Notice yaxis acts weirdly in a very similar way to my initial report. Double click on the legend line corresponding to the blue line when it is enabled.  Double click on the legend line corresponding to the green line when it is enabled.   As a notable difference, what I report causes a JS console red message. Contrary wise,  not (that one doesn't log anything at all when being reproduced): highcharts.js?v=61b1d1bf4167:12 Error: <path> attribute d: Expected moveto path command ('M' or 'm'), "0". Corresponding stack:  r @ highcharts.js?v=61b1d1bf4167:12  attr @ highcharts.js?v=61b1d1bf4167:297  c.<computed> @ highcharts.js?v=61b1d1bf4167:258  X.h @ jquery.min.js:3  X @ jquery.min.js:3  n.Animation.n.extend.tweeners.* @ jquery.min.js:4  nb @ jquery.min.js:4  map @ jquery.min.js:2  qb @ jquery.min.js:4  g @ jquery.min.js:4  dequeue @ jquery.min.js:3  (anonymous) @ jquery.min.js:3  each @ jquery.min.js:2  each @ jquery.min.js:2  queue @ jquery.min.js:3  animate @ jquery.min.js:4  ec @ highcharts.js?v=61b1d1bf4167:257  animate @ highcharts.js?v=61b1d1bf4167:291  render @ highcharts.js?v=61b1d1bf4167:72  (anonymous) @ highcharts.js?v=61b1d1bf4167:61  o @ highcharts.js?v=61b1d1bf4167:254  m @ highcharts.js?v=61b1d1bf4167:61  redraw @ highcharts.js?v=61b1d1bf4167:101  (anonymous) @ highcharts.js?v=61b1d1bf4167:157  o @ highcharts.js?v=61b1d1bf4167:254  h @ highcharts.js?v=61b1d1bf4167:155  setVisible @ highcharts.js?v=61b1d1bf4167:561  a @ highcharts.js?v=61b1d1bf4167:190  Z @ highcharts.js?v=61b1d1bf4167:257  (anonymous) @ highcharts.js?v=61b1d1bf4167:190


This question led to a new package:      Suppose you have an localc spreadsheet myspread.ods and you want to insert the content of the range H4:I40 as a table into your latex document. I know that I can export the table or just do some copy and paste. However is it possible to write something like:  \includespread{file=myspread.ods,range=H4:I40}  Then the table in my LaTeX-document changes when the corresponding spreadsheet changes.  Would be nice to have also the possibility to modify global appearence properties of the table as optional arguments of \includespread.


I am new to Python and it seems to have a lot of nice functions that I don't know about. What function can I use to get the root site name? For example, how would I get faqs.org if I gave the function the URL ""?


How placing script tags before  improves the page loading performance

I need to load lot of libraries on the html pages in my project.But I came across through many sources that placing the script tag before the closing the body tag improves the loading performance.If it is true,I would like to the concept behind this.  Thanks in advance, Krish


Is there a word or term to describe a statement that implies a question so sufficiently that the question is not actually included?

I have often noticed people who make statements, actually ending with a question mark when written, but where there is no actual question asked.    The question is implied sufficiently enough in the context of the statement, and/or the previous statement that the question portion can be omitted.  Some examples:     Sandra: I'm not walking to the theatre as I didn't bring a jacket.Julie: I have a spare jacket?   In the above, it is clear that Julie is asking "would you like to borrow my spare jacket so that we can walk to the theatre".     Paul: We aren't going to Pizza Hut at lunch as it's too far to walk in an hour.Dave: I have my car today?   Again, it is clear that Dave is offering to drive and asking if that is an option.  Is there a term to describe this?


Don't understand proof that interior of a set is open

Say we want to show that the interior of a set $A$ is open. If $x \in Int(A)$, then there exists an open ball $B_r(x) \subseteq A$. Since $B_r(x)$ is open, $y \in B_r(x)$ also has an open ball $B_s(y) \subseteq B_r(x) \subseteq A$, so $y \in Int(A)$. Now, somehow we have to show that the ball $B_r(x) \subseteq Int(A)$, and that would complete the proof. All of the proofs I read say this is obvious, but I don't see how $B_r(x) \subseteq Int(A)$ immediately follows here.


If $f(rx)=r^{\alpha} f(x)$, then which of these options is true?

I am trying questions of previous year real analysis quiz and I was unable to solve this particular question .  Let $f$ be a real valued function on $\mathbb R^{3}$ satisfying (for a fixed $\alpha$ belonging to $\mathbb{R}$) , $f(rx)=r^{\alpha} f(x)$ for any $r>0$ and $x$ belonging to $\mathbb R^{3}$.  Then which one of the following is true .  A. If $f(x)=f(y)$ whenever $\|x\|=\|y\| =\beta$ for a $\beta >0 ,$ then $f(x)=\beta \|x\|^{\alpha}$. B. If $f(x)=f(y)$ whenever $\|x\|=\|y\|=1$, then $f(x)=\|x\|^{\alpha}$. C. If $f(x)=f(y)$ whenever $\|x\|=\|y\|=1$ , then $f(x)=c \|x\|^{\alpha}$ , for some constant $c$. D. If $f(x)=f(y)$ whenever $\|x\|=\|y\|=1$ , then $f$ must be a constant function . I tried by assuming $x,y$ to be equal to $\beta$ $e^{i\theta}$ and $\beta$ $e^{i\phi}$ and then equating to find conditions but how to find value of $f(x)$ explicitly using $f(rx)=r^{\alpha}f(x)$. Kindly guide.


In Python if  a = 1 b = 1 print(a is b)    returns True.   However, if   c = 1.23 d = 1.23  print(c is d)    returns False.   It appears for the float data type the output is False. Can someone explain to me why does python behave this way?   a = 1 b = 1  print(a is b) #Output: True  c = 1.23 d = 1.23 print(c is d) #Output: False


Different command definitions with and without optional argument

I want to define a command that expands to two completely different things depending on whether I supply, or not, an optional argument. For example,  \mycmd{normal}            ->  something(normal) \mycmd[optional]{normal}  ->  anotherthing(normal, optional)   How can I do this?


subdivision surface sharp edges problem edge loops and creases don't work

how would i go about sub-surfing this and keeps its sharp edges?    more specifically i am having difficulty with subdividing the the plate like objects on its upper arms and thighs,i have tried the usual methods such as moving edge loops and adding creases but they all leave some kind unsightly deformity, especially when combined with the solidify modifier.  most of the other parts of this model such as its torso and head subdivide without issue.  just what am i doing wrong and how do i make its arm and leg plates smooth with deforming or losing definition?    this was marked as duplicate and linked to a question which told me to use supporting loops and creases which as i already stated doesn't work.


In Markov inequality proof, why is $\int_a^\infty xp(x) \, dx \ge \int_a^\infty ap(x) \, dx$

Markov inequality,   $$\Pr(X \ge a) \le \frac{E[x]}{a}$$  Proof  $$\begin{aligned}      E(X) &= \int_0^\infty xp(x)\,dx = \int_0^a xp(x)\,dx + \int_a^\infty xp(x)\,dx \\       &\ge \int_a^\infty xp(x)\,dx \ge \int_a^\infty ap(x) \, dx  \end{aligned}$$  Why is the last inequality true? Why is it ok to change $x$ to $a$, and we know it is less than or equal to? How did they figure it out? Thanks!


System Reserved partition no longer marked as System

I recently  about accidentally marking my external HDD's partition as Active and how I could undo my accidental mistake. I followed the instructions provided and they worked fine. This involved some command line magic and from what I understand, I did not have to really do this, but I just wanted to get things back to how they were originally. After making the fix things went back to normal in disk management. After I restarted my computer though i had an issue:  BOOTMGR is missing Press Ctrl+Alt+Del to restart  Rugh roh! I brought my laptop to work so I could search for a solution on my work computer and I found . To summarize the instructions, I had to reboot with my Windows 7 install disc and click the Repair button. Once there I could then repair the start-up options. One of the commenters on the site , as the first time the "repair" doesn't actually fix it. I found this to be true as well. I tried to repair it and it did some work, then rebooted. I then got the same error again. I booted from the CD again and repaired the start-up options then after this second time Windows started to boot up. Before the restart I got a nice info window telling me that it did make repairs to the boot info (this was promising). I've been using Windows 7 for a few days now with no problem, but I just recently noticed that I now can see the System Reserved partition in Computer:  I immediately went to disk management to see what was up. I noticed that my System Reserved partition is no longer marked as System and instead I believe the repair operation made my C: drive the system partition. I'm not fully aware of what the System partition really is but I briefly read that its a Windows 7 thing that gets created on install of Win7 that writes some BitLocker encryption stuff to a isolated partition as well as some boot files.   How can I undo this and make the System Partition marked as System instead of my OS C: partition? How can I make it so that I don't see this partition in Computer (I believe fixing #1 will fix this) What are the implications of what the current state is and the fact that I can now browse into this new partition?


I went on a hunting trip for the  hat on .    and three of my answers to tumbleweeds were accepted:      No activity since May 2016. No comments and no edits until I posted the answer (). 60 views now, but it had less views when it was accepted. Accepted 2017-01-04 21:00:28Z (22 hours ago).     There was an edit 6d 23h+ before my answer, but I posted after it earned the Tumbleweed badge. Accepted 2017-01-04 13:14:29Z (yesterday).     There were some comments before my answer, but after the Tumbleweed badge. This one probably did not meet the requirements due to the comments. Accepted 2017-01-03 13:11:40Z (2 days ago)    All 3 questions earned the . However, I did not get the Lifesaver.   Is there a requirement I am not considering or is it a bug?


How does Huygens Principle incorporate the unidirectional property of a traveling wave?

I was reading French's Vibrations & Waves where he discusses Huygens-Frensel Principle.   The principle talks about how secondary sources give rise to secondary wavelets to form the displaced wavefront. However, any secondary source can form two wavelets one moving forward & other towards the original source as pointed by French:     [...] The Huygen's construction would define two subsequent wavefronts , not one. In addition to a new wavefront farther away from the source, there would be another one corresponding to a wavefront back toward the surface, But we know this does not happen.    Then he writes:     If the Huygens way of visualizing wave propagation is to be acceptable, it must introduce the unidirectional property of a traveling wave. This can be achieved by requiring that the disturbance  starting out from a given point in the medium at a given instant is not equal in all directions. Specifically, if $O$ is the true original source ,& $S$ is the origin of Huygens wavelet, & $P$ is the point at which the disturbance is being recorded, then the effect at $P$ due to the region near $S$is a function of $f(\theta)$ of the angle $\theta$ between $OS$ & $SP$.     I am not understanding how his reasoning actually averts the possiblity of formation of back-waves. Can anyone help me visualise what he is talking? How does his reasoning maintain the unidirectional propagation of waves? Can anyone explain his argument?


Does anyone know how to Stuff in groups?

I am trying to use the stuff function in MS SQL to stuff certain info. Here is the example:  Number          Value  1                 1 2                 1 3                 1 1                 2 2                 2 3                 2 1                 3 2                 3   I would like to stuff the column so that only one record will display as following:  Value             Number 1                 1,2,3 2                 1,2,3 3                 1,2   Please note that there are a like n-Numbers and n-Values.


Counterexample to $g \circ f$ one-to-one $\implies$ $g$, $f$ one-to-one

Suppose that $f:X\to Y$ and $g:Y\to Z$ are functions. If both $f$ and $g$ are one-to-one, then $g\circ f:X\to Z$ is one-to-one.  I believe the converse would be written: Suppose that $f:X\to Y$ and $g:Y\to Z$ are functions. If $g \circ f: X \to Z$ is one-to-one, then both $f$ and $g$ are one-to-one.  I cannot come up with a counterexample and I believe the converse is also true. Any thoughts.


Given IID $X_1, X_2 \sim \mathcal{N}(0,1)$, we want to determine $P(X_1 > 0 \mid X_1 + X_2 > 0)$. This is what I think is the approach for this problem: \begin{align}     P(X_1>0\mid X_1 + X_2 > 0) = P(X_1 > 0 \mid X_1 > -X_2) \\     P(X_1 \leq x \mid X_1 > (-X_2=x_2)) = \int_{-x_2}^x \frac{1}{\sqrt{2\pi}}\exp(-\frac{1}{2}x_1^2) \, dx_1 \end{align} I integrate the above to get $P(X_1 \leq x \mid  X_1 > (-X_2=x_2))$, and then I integrate $P(X_1 \leq x_1\mid X_1 > (-X_2=x_2))$ over all $x_2$: $$ P(X_1 \leq x_1\mid X_1 > X_2) = \int_{-\infty}^\infty P(X_1 \leq x_1\mid X_1 > (-X_2=x_2)) \, dx_2 $$ Is this a correct approach? I feel that there is something simpler than this.


Copying game files from friend who also owns the game Steam?

My friend and I recently purchased Rainbow Six: Siege on Steam. However I have a very limited data plan so I can't download. Can I copy the game contents from his PC to mine?


In a commutative ring $R$ with identity, if $r, s \in R$ such that $(r) = (s)$, I am concluding that $r= s$ as $(r) = (s)$ implies that $s$ is an associate of $r$ and thus $r= s$. I'm not $100\%$ sure if this is true but would appreciate any feedback. Thanks in advance!


I've recently shifted from windows to ubuntu and it doesnt seem to be a smooth start. I've installed Ubuntu 20.04. Everytime I try to install a package,I get this following error:  somal@Creator:~$ sudo apt-get install nodejs  Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  libcrypt1:i386 : Depends: libc6:i386 (>= 2.25) but it is not going to be installed  libgcc-s1:i386 : Depends: libc6:i386 (>= 2.2.4) but it is not going to be installed  libgcrypt20:i386 : Depends: libc6:i386 (>= 2.28) but it is not going to be installed  libgpg-error0:i386 : Depends: libc6:i386 (>= 2.28) but it is not going to be installed                       Recommends: libgpg-error-l10n:i386  libidn2-0:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed  liblz4-1:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed  liblzma5:i386 : Depends: libc6:i386 (>= 2.17) but it is not going to be installed  libunistring2:i386 : Depends: libc6:i386 (>= 2.7) but it is not going to be installed  nodejs : Depends: libnode64 (= 10.19.0~dfsg-3ubuntu1) but it is not going to be installed           Recommends: nodejs-doc but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).   I've tried solving using the askubuntu forum and stackexchange forum.Nothing works


Does $\sum_{n=2}^\infty (n\ln n)^{-1}$ diverge?

Is $\sum_{n=2}^\infty (n\ln n)^{-1}=\infty$ ?  This seems like elementary calculus, but I can't figure this out.  Can anyone supply a hint?


Given I have in a bash script  ev=USER   How can I get the environment variable value for $USER using ev?  Tried naively doing:  echo ${"$"$ev}   which results in bad substitution.  I'd expect to get back whatever the value of $USER is.


What's the true reason behind thermal expansion?

Thermal expansion is a normal concept everyday. There are 2 explanations:  1, thermal expansion result in stress, then result in deformation  2, thermal expansion result in deformation, then result in stress  I am confused about it. Could you explain the thermal expansion?


Prove $ (A \cup B) \cap C$ =  $(A \cap C) \cup (B \cap C) $  Starting from the left side,   $ (A \cup B) \cap C = $  By distributive law, ( distributing the $\cap C$), we have  $ (A \cap C ) \cup (B \cap C) = $  Therefore,   $ (A \cap C ) \cup (B \cap C) = (A \cap C) \cup (B \cap C)$  If I start from the right, I have  =  $(A \cap C) \cup (B \cap C) $  By Distributive Law   =  $(A \cup B ) \cap C$  Therefore, $ (A \cup B) \cap C$ =  $(A \cup B ) \cap C$  Did I do this correctly or do I need to include the set union definition and the set intersection definitions?  Assuming that I need to include the set union definition of $A \cup B$ for the left side  $[x: x \in A \lor x \in B]$ so that means that x belongs in A or x belongs in B  For the right side I would have set intersection   $[x: x \in A \land x \in C]$ so x belongs in A and x belongs in C   $[x: x \in B \land x \in C]$ so x belongs in B and x belongs in C   so maybe it's like this?   $[x: x \in A \land x \in C] \lor [x: x \in B \land x \in C]$  and then by distributive law I would have gotten  $[x: x \in A \lor x \in B] \land C$  which becomes $(A \cup B) \cap C$  My question is how do I write a better proof than this jumbled mess?


Where should I ask about the importance of exactness of floating point modulus?

I have a technical question:  I want to know why/where/when the exactness of floating point modulus (fmod / remainder) matters.  It's not about programming, I know how to program it. It's more about marketing, because I'd like to replace naive implementation found in most Smalltalk dialects by a standard conforming one. Adhering to standards and providing state of the art floating point in Smalltalk is my first goal. However, I anticipate that adhering to standard will not be enough to convince my peers to change things, so explaining in which circumstances that would really matter would help a lot. I could not find a good example so far.  Is there a site where I could ask such question?


How to convert Latex code to generate equations in Powerpoint?

I have exported my maple mathematical matrices to latex and now I want to show those equations in Powerpoint presentation. I have installed MathType in MS Powerpoint that converts basic latex codes or equation to mathtype but not the matrices. For example If if paste below code into Mathtype it gives error;   Error: This equation has exceeded the maximum width and/or height allowed. Remember mathtype is not a word processor.     Latex Code that I want to convert to Mathtype:  \begin{equation} T_{R,A_1}= \left[\begin {array}{cccc} \cos  \psi_{{1}}  \cos  \delta_{{1}}  &-\sin  \psi_{{1}}  &\sin \ \delta_{{1}}  \cos  \psi_{{1}}  &-\sin  \delta_{{1}}  \cos   \psi_{{1}}  r-\sin  \psi_{{1}}  {\it k5}+{\it k2}\\ \noalign{\medskip}\cos  \beta   \sin  \psi_{{1}}  \cos  \delta_{{1}}  +\sin  \beta  \sin  \delta_{{1}}  &\cos  \beta   \cos  \psi_{{1}}  &\cos  \beta  \sin  \delta_{{1}}  \sin  \psi_{{1}}  -\sin  \beta   \cos  \delta_{{1}}  & T_2\\ \noalign{\medskip}\sin  \beta  \sin  \psi_{{1}}  \cos   \delta_{{1}}  -\cos  \beta  \sin  \delta_{{1}}  &\sin  \beta  \cos  \psi_{{1}}   &\sin  \beta  \sin  \delta_{{1}}  \sin \psi_{{1}}  +\cos  \beta  \cos  \delta_{{1}}   & T_1 \\ \noalign{\medskip}0&0&0&1\end {array}\right]  \end{equation}


User Function to cd to nearest directory with given name

Would anyone have a user-defined function to put in my .basrc to do this. The following example should explain what I have in mind.  Given the following file system:      Level1   Level2  Level3   / TestA ~ - TestB      \ TestC  - TestB            - TestD - CurrentLocation   Assuming the function is called goto.  goto(TestA): Should cd us to the level1 testA directory goto(TestZ): Should keep us where we are and print something like "not found" goto(TestB): Should bring us to level2 testB as its the closest.   The search should only ever go up and not down into parent directories as this may match multiple files.  Thanks


How can I fix the non-stitched seam that is present after applying mirror modifier?

I've followed the same  I mentioned in the question I asked  and my boat hull looks pretty good.  The process is to make 3D B-Splines increase the resolution and then convert them to Mesh Elements.  Then you make a plane and cut it in half along the "Y" axis.    I followed through the process and see a couple issues that I would like one of you to address.  First, I see that the normals are not correct.  The inside of the hull is not important but the outside needs to show materials.  Also the hull is not stitched together along the keel.  I don't know how to do that on a mesh that has had the Mirror Modifier applied to it.    Anyone care to help?


Prove there is no rational number whose cube is $13$

I used the idea that if $13$ divides $n^3$ then $13$ divides $n$.   I begin with assuming that there is a rational number x such that $x^3$ = $13$. Since $x$ is rational, we rewrite as $m/n$ where gcd(m,n)=1.  $x^3$ = $13$  $m^3$/ $n^3$ = 13.  Then $m^3$ = 13 $n^3$.   Using the fact that if 13 divides $n^3$, then 13 divides $n$. What would the next step be?


Where to buy graphics for cheap that I can use in work that I sell?

I am making my own cards to sell, however, I would like to use some graphics and or backgrounds once in a while without having to make them all the time.   Where is the best place to buy graphics, images and backgrounds for a low cost that I can use in some of my cards that I will be selling?   Sometimes I just need to add one image or graphic and would like to purchase some but not sure where I can get them  so that I can use them in a card that I will sell.


Not a directory when I use the whatis command

When I use whatis apropos, it displays the following: makewhatis: /usr/local/opt/grep/libexec/man: Not a directory makewhatis: /usr/local/opt/gnu-which/libexec/man: Not a directory makewhatis: /usr/local/opt/gnu-tar/libexec/man: Not a directory makewhatis: /usr/local/opt/gnu-sed/libexec/man: Not a directory makewhatis: /usr/local/opt/gnu-indent/libexec/man: Not a directory makewhatis: /usr/local/opt/findutils/libexec/man: Not a directory makewhatis: /usr/local/opt/ed/libexec/man: Not a directory makewhatis: /usr/local/opt/make/libexec/man: Not a directory makewhatis: /usr/local/opt/coreutils/libexec/man: Not a directory apropos(1)               - search the whatis database for strings apropos(1)               - search the whatis database for strings  I'd like to know if it is normal to have outputs like Not a directory. If it is not normal, then is there any way I can fix this?


Navigating node of one specific RSS Feed

I am creating a custom (private, non-commercial) utility to parse RSS feeds.  Since it's been a few years since I've had a need to do this, I referred to an example at   I'm providing the code in VB.NET, however - I'm sure C# programmers can recognize the concepts also.    In short, the code in question is as follows.  My first iteration used a Reuters feed.  Dim MyRssRequest As WebRequest = WebRequest.Create("http://feeds.reuters.com/reuters/topNews") Dim MyRssResponse As WebResponse = MyRssRequest.GetResponse()  Dim MyRssStream As Stream = MyRssResponse.GetResponseStream()  Dim MyRssDocument As XmlDocument = New XmlDocument() MyRssDocument.Load(MyRssStream)  Dim MyRssList As XmlNodeList = MyRssDocument.SelectNodes("rss/channel/item")  Dim sTitle As String = "" Dim sLink As String = "" Dim sDescription As String = ""  'Iterate/Loop through RSS Feed items For i As Integer = 0 To MyRssList.Count - 1 ...   This code works as desired.  However - if I change the respective lines to the following (to another news source):  Dim MyRssRequest As WebRequest = WebRequest.Create("http://api.breakingnews.com/api/v1/item/?format=rss")   ...and...  Dim MyRssList As XmlNodeList = MyRssDocument.SelectNodes("feed/entry")   ...this code can not seem to find any "entry" items.  I'm using the tools at  to sanity check my understanding of the hierarchy.  This tool seems to report that both XML structures are well formed.    I am curious if the .NET XML (System.xml) is sensitive on "End of Line" characters, but I find this doubtful.    I feel this is something simple that I am overlooking.  UPDATE:    I am able to step through the items by using    Dim MyRssList As XmlNodeList = MyRssDocument.ChildNodes(1).ChildNodes   I must be missing something on my understanding of this document's XPath.  I would like to be able to use the .SelectNodes method (function) using the XPath.


Is it possible to have inches as the default imperial unit?

I work with imperial units quite a bit in Blender. For me it would be more intuitive if the units would default to inches, rather than feet. For example, if I were to use fractional inches in the advanced numerical input mode, I'd have to use the inch marker after each element. It would be nice if 12' 2 3/4" would produce 12 feet 2 and three-quarter inches instead of 14 feet and 3/4 inches...


i am trying this sql query in java but its not working i want to insert data in one of the boxes of the row.  This is an image of the row and in the STUDENTS there are 2 names inserted made manually from MysSql, but i want to make it with code. This is my code: String sql = "INSERT INTO CS (Students) WHERE ID='"+ID+"'"VALUES(?,?,?,?,?,?,?,?)";                  PreparedStatement preparedStmt = cn.prepareStatement(sql);                preparedStmt.setString(1,null);                preparedStmt.setString(2,null);                preparedStmt.setString(3,null);                preparedStmt.setString(4,null);                preparedStmt.setString(5,null);                preparedStmt.setString(6,null);                preparedStmt.setString(7,null);                preparedStmt.setString(8,name);                preparedStmt.execute();  but it doest work. And the cn is this: cn=DriverManager.getConnection("jdbc:mysql://localhost:3306/university","root","");


Why is completeness of measures important?

Can someone give an example why a non-complete measure is a problem? Or what are some theorems that require a measure to be complete?


After unwrapping a texture in blender cycles in the image editor, is it possible to animate like scale, rotation and etc. of the unwrapped texture? I want to be able to animate the unwrapped area.


How to fetch all the even lines and odd lines from a file and save them into two different files such as Evenfile & Oddfile?

Suppose I've a file named "a.txt" and it has 100 lines. Now I want to extract odd lines i.e lines 1,3,5...etc and save them to a different file such as Odd.txt and the same thing for all even lines to save them in the even.txt file keeping the source file as it is.


Moving Ubuntu and Windows from separate drives to single drive

I currently have three hard drives in my machine that I dual-boot: - 1TB for data - 80GB win 7 - 240GB Ubuntu (only using less than half)  I just got a new 256GB SSD, and I'd like to end up with both the win 7 and the ubuntu installations dualbooted on this drive.   I've got no experience with cloning drives, but I understand the concepts. Here's my plan, and I'm interested in feedback before I sink a ton of time into it.   Resize the /home partition on the ubuntu drive so that the entire linux installation is 176GB.  Boot into something from a DVD Clone the windows drive into the SSD Copy (dd?) the 176GB from the linux partitions to the rest of the drive   Will this work? Will I need to do some repair to get the bootloaders working? Ideally, I'd like to boot into GRUB2 and have the choice of Win7 or Ubuntu. What software would you recommend booting to? Would the Ubuntu live CD be good for this? Can you direct me at any references on how to accomplish something like this?


How do I turn co-ordinates on in Minecraft?

I have a Windows 7 PC, and I think it has something to do with the F3 key. I don't have the Fn (function) key, I tried pressing F3 with all the keys I have, and have had no luck.


How to include PHP files in plugins the correct way

My problem is when on the main plugin file I include a PHP file something like this:  include(WP_PLUGIN_URL . '/wordpress-group-buying/ipn/paypal-ipn.php'); // or include_once(WP_PLUGIN_URL . '/wordpress-group-buying/ipn/paypal-ipn.php'); // or require(WP_PLUGIN_URL . '/wordpress-group-buying/ipn/paypal-ipn.php'); // or require_once(WP_PLUGIN_URL . '/wordpress-group-buying/ipn/paypal-ipn.php');   and on that file I have a call to a WordPress function like:  add_action('hook', 'callback');   and I get:     Fatal Error: Call to undefined function add_action()   Now before you say "use if(**function_exists**('add_action')){" if I use that then it just doesn't work.  The questions:   What would be the correct way to do that? What are the difference between include, include_once, require and when do I use witch?


Is it okay to say "Yes you're." instead of "Yes you are."?

Possible Duplicate:    I was having an SMS conversation with a friend and somehow "Yes you're" came into play in retaliation to a comment. Example:  Person 1: "You are bad at English". Person 2: "No I are not.". Person 1: "Yes you're".  Is that acceptable? I would assume that it is. Think of "don't". You can say:  "No, don't."  or  "I don't."  and it is a contraction like "you're". So, is it okay?


How to create an interactive bash script to collect arguments for a command in linux?

I'm trying to create an interactive bash script where I can collect user input variables to be used as arguments in another command. Can someone provide me an example of this?  Currently i want to do:   what type of content you want to delete? what is the status?   then feed it into a mysql delete query command.


How to show that a theorem holds for isomorphic vector spaces?

Theorem: Any two norms on a finite-dimensional vector space $V$ are equivalent.   My book begins the proof by noting that we can identify $V$ with $\mathbb R^n$ for some $n\in\mathbb N$, and therefore we only need to prove the theorem for $\mathbb R^n$. However, I don't see why this is true. I know that there is a bijection between $V$ and $\mathbb R^n$ for some $n\in\mathbb N$, or equivalently, there is a bijection between a basis in $\mathbb R^n$ and a basis in $V$. But how to proceed from there on?  I've read somewhere that an isomorphism is basically just the relabelling of the elements... but how do I know that things like inequalities and the like stay preserved between two identified elements? Things like "the vector space structure is preserved" sounds slightly vague to me, so is there something more rigorous to say?


A  is formed when a raindrop refracts light, but why then does the whole sky not become a huge rainbow when it rains? Would the light not be dispersed into ordinary white light? What causes it to look as if each end is nearly touching the ground?


After upgrading to Ubuntu 18.04, the whole design is suddenly broken. There's an ugly tinge or orange everwhere, the dock is visible all the time (not only when in overview mode) and basically everything I used to love about the Gnome desktop is gone :-(  I tried various means of getting the vanilla Gnome experience back but nothing has worked:  sudo apt install gnome-session sudo apt install ubuntu-gnome-default-settings sudo apt install vanilla-gnome-default-settings vanilla-gnome-desktop sudo update-alternatives --config gdm3.css # (and then I selected gnome-shell.css)   None of this got rid of the permanent dock and when logged out I don't see a 'gear' icon to switch to Gnome on X.org.  Any ideas how to get rid of the Ubuntu modifications?


Why does the regex in bash works only if it is a variable and not directly?

So why does the following works i.e. prints out the match:  THE_REGEX='^test\/version[0-9]+([.][0-9]+)+$' if [[ "$SOME_VAR" =~ $THE_REGEX ]]; then     echo "Match!" fi   But the following does NOT:  if [[ "$SOME_VAR" =~ '^test\/version[0-9]+([.][0-9]+)+$' ]]; then     echo "Match!" fi     What is the difference? It is the same regex


I was trying to find a formula for the series   $$\sum_{k=1}^n \frac{1}{k(k+1)(k+2)} =? $$  I tried to break this into partial fractions...To see if I could telescope this series.. The partial fraction went like this  $$\frac{1}{k(k+1)(k+2)}=\frac{1}{2k}-\frac{1}{k+1}+\frac{1}{2k+4}$$  But the terms are so random that they hardly cancel.... I also tried partial sums but couldn't make much headway....Any help to solve this would be appreciated


Selling my unused domain 'example.com' to the trademark holder and owner of 'example.net'

I registered a domain example.com many years ago and had intentions of developing it into a social networking site, but then I got busy with other projects.  I recently realized that example.net is a very well established site & organization (a sort of consortium of many businesses/groups). As a matter of fact, they even trademarked the keyword example, which makes developing example.com risky and pointless.  I have not received any offers/communication from the owner of example.net. Should I contact the owner of example.net with an offer for them to purchase it, or would that result in accusations of cyber-squatting?  Please note:   I registered the domain example.com a year before example.net I live in a different country than the company that owns example.net, hence I am unsure if the trademark law applies to me.


Prove series is convergent $\sum\limits_{n=2}^\infty \frac{\sqrt{n+1}-\sqrt{n}}{n}$

I am trying to prove that the series $\sum\limits_{n=2}^\infty \frac{\sqrt{n+1}-\sqrt{n}}{n}$ is convergent. I tried using the comparison test, but it's not showing me that the series is convergent.  These are my steps:  Using $\sum\limits_{n=2}^\infty = \frac{1}{n^{3/2}}$  $$\lim_{n\to\infty}\frac{\frac{\sqrt{n+1}-\sqrt{n}}{n}}{\frac{1}{n^{3/2}}} = \lim_{n\to\infty}(\sqrt{n})(\sqrt{n+1}-\sqrt{n})=\lim_{n\to\infty}n+\sqrt{n}-n=\sqrt{n}$$  This shows that the series in non-convergent, which I know not to be the case.


Prove that if an integral domain $R$ is an injective $R$-module then $R$ is a field.  "Proof"  Choose a non-zero element $x$ of $R$ and consider the map $f: R \rightarrow R$ given by $f(t)=tx$.  This yields an exact sequence $0 \rightarrow R \rightarrow R \rightarrow R/\langle x \rangle \rightarrow 0$ where the first map is $f$.  By assumption $R$ is injective and thus $R \cong R \oplus R/\langle x \rangle$.   Now the claim is that $1 \in \langle x \rangle$. Otherwise $(1,0 + \langle x \rangle)$, $(0,1+ \langle x \rangle)$ are zero divisors of $R \oplus R/\langle x \rangle$ which is impossible since $R$ is an integral domain.  Thus $1 \in \langle x \rangle$ so $x$ is invertible and we're done. Is this OK?


I am looking to implement a biplot for principal component analysis (PCA) in JavaScript. My question is, how do I determine the coordinates of the arrows from the $U,V,D$ output of the singular vector decomposition (SVD) of the data matrix?  Here is an example biplot produced by R:  biplot(prcomp(iris[,1:4]))     I tried looking it up in the  but it's not very useful. Or correct. Not sure which.


Consider the following system of differential equations

Consider the following model. Find the general solution    $\frac{dx}{dt}=-2y$, $\frac{dy}{dt}=8x$  So far this is what I have:   $$\frac{dx}{dt}=-2y$$ $$x'=-2y$$ $$y=-\frac{x'}{2}$$ $$y=-\frac{x''}{2}$$ and then $$\frac{dy}{dt}=8x$$ $$y'=8x$$ $$-\frac{x''}{2}=8x$$ $$-x''=16x$$ $$x''+16x=0$$  Is this correct so far? What step should I take next?


ACF and PACF Plots for Predictive Modeling

I have some multivariate time series data for each location. My objective is to build predictive model for each multivariate time series. The ACF and PACF plots(50 lags) of both the original and differenced(d = 1) of the response variable for one location is given below:  Question 1: Is the response time series data(level) stationary? Augmented Dickey–Fuller (ADF) and KPSS tests suggest the time series is stationary. However, splitting the time series in two halves and calculating means and variances, give non-constant means and variances at two different time points. For example, see code below for calculating mean and variance values at two different time points: X = df.values split = int(len(X) / 2) X1, X2 = X[0:split], X[split:] mean1, mean2 = X1.mean(), X2.mean() var1, var2 = X1.var(), X2.var() print('mean1=%f, mean2=%f' % (mean1, mean2)) print('variance1=%f, variance2=%f' % (var1, var2))  Results: mean1=236.297719, mean2=161.075122 variance1=1127026.727438, variance2=352837.058991 Thus, I took a first-order difference of the series as shown below:  Question 2: Is the differenced series over-differenced(d = 1)? Question 3: How many significant lags are recommended for modeling assuming the series isn't over-differenced? I will appreciate your response to the foregoing questions.


How to I add a node reference field using the Webform module?

Is it possible to add a node reference field using the  module?  If it is, how can I add it in my webform?


How to cast typeof class T to class T itself to execute Method where Method accepts a lambda argument?

Can I use or "cast" the type of a class, for instance type of the class CustomClass, therefor typeof(CustomClass), to execute a method which relies on providing its corresponding class CustomClass as an "argument"?  Method<CustomClass>();   How could I achieve this by only knowing typeof(CustomClass)?  Detailed question:  I'm developing a Web API in ASP.NET 4.5. I have access to an extension method, that I cannot change, for the Startup's IAppBuilder app:  public static class AppExtensions {     public static void AddExceptionTranslation<TException>(         this IAppBuilder app,         HttpStatusCode statusCode,         Func<TException, ApiErrors> messageGenerator))         where TException : Exception; }   This extension method is used to convert custom exceptions, which extend Exception, to its appropriate status codes. I'm using it as follows:  public static void SetUpExceptionHandling(IAppBuilder app) {     app.AddExceptionTranslation<CustomException>(HttpStatusCode.BadRequest, e => e.ToApiErrors());     app.AddExceptionTranslation<CustomUnauthException>(HttpStatusCode.Forbidden, e => e.ToApiErrors());     // ... }   Right now I have to manually add an entry for every single custom exception, providing the TException in each case. I'm already maintaining a data structure which contains the typeof for each custom exception class, alongside with its appropriate status codes, unique ids and other properties that I only want to maintain in one place.   I'd like to use this existing data structure to iterate through it and execute AddExceptionTranslation<TException> for each custom exception, where I know their Type.   Is this possible? If not, would it be possible if my data structured contained something else? Sure, I could just bite the bitter apple and add each new custom exception to the data structure and manually add an entry for the method execution but I'd really like to automate the latter.  Please let me know if I can clarify. Thanks!  Edit  AddExceptionTranslation actually accepts a second argument, a lambda expression, that's applied to the custom exception:  app.AddExceptionTranslation<CustomException>(HttpStatusCode.Forbidden, e => e.ToApiErrors());  I didn't think it would be relevant to the question but since it's interfering with the suggested solution/duplicate I'm in quite the pickle. Can I still invoke the method in some way?


Good Morning   I need to decrease an object on edit mode so it gets to 60cm height, but when I use the scale tool, it is proportionally decreased. How can I solve this?  Thank you.


Any divisor of $(n + 1)^p - n^p$ is $1 \textrm{ mod } p$

I'm trying to work my way through the following problem.  Let $n$ be a natural number, $p$ a prime, and $d$ a divisor of $(n + 1)^p - n^p$. Show that $d \equiv 1 \textrm{ (mod } p \textrm{)}$.  I'm not sure where to start on this. I can see $(n + 1)^p - n^p \equiv 1 \textrm{ (mod } p)$ and ofcourse $(n + 1)^p - n^p \equiv 0 \textrm{ (mod } d)$. So definitely $p, d$ are coprime. Also $(n + 1)^p - n^p \equiv 1 \textrm{ (mod } n)$. This feels like it shouldn't be too hard a problem but I'm not entirely sure what I'm missing.


hot questions change every time page is refreshed

just noticed this, the hot questions on main page do not seem to be stable at all. clicked "refresh" on a main or meta page and they instantly/constantly change. understand that it would constantly change over time but dont expect it to change one page refresh to the next, that seems like a bug.


I am facing Mixed DML error in the following case:  static testmethod void method1() {     User u1 = DataFactory.createUser('testUser','test@user.com','permissionSetAPIname');        Obj1 rec1 = DataFactory.createrec1('Record1');     insert rec1;      Obj2 rec2 = DataFactory.createrec2('Rec2',rec1,system.today()-10, system.today()+10 );     insert rec2;       Obj3 rec3 = DataFactory.createrec3(rec2,'Tester',u1,'US');     insert Role;      test.starttest();         //testing code      test.stoptest();  }   However the following is working fine  static testmethod void method1() {      User u1 = new User(Alias = 'testRole',                   Email             = 'role@test.com',                   EmailEncodingKey  = 'UTF-8',                   LastName          = 'user',                   FirstName         = 'test',                   LanguageLocaleKey = 'en_US',                   LocaleSidKey      = 'en_US',                   ProfileId         = [select Id from Profile where Name = 'Basic User' limit 1].Id,                   TimeZoneSidKey    = 'America/Chicago',                   Username          = 'stakeholder@test' + Math.round(Math.random() * 10000) + '.com',                   UserRoleId        = null,                   Country           = 'Great Britain');     insert u1;         Obj1 rec1 = DataFactory.createrec1('Record1');     insert rec1;      Obj2 rec2 = DataFactory.createrec2('Rec2',rec1,system.today()-10, system.today()+10 );     insert rec2;       Obj3 rec3 = DataFactory.createrec3(rec2,'Tester',u1,'US');     insert Role;      test.starttest();         //testing code      test.stoptest();  }   Please explain the difference. As my understanding is that transaction remains the same in both the cases.


The speed of light, c, is the same for all inertial observers but no one has ever actually measured it in one direction. So taking an normal emitter, reflector, detector setup, can we do the following? Make the first measurement, and log the time. Put a medium that allows light through but "slows" it down slightly, put in front of the emitter side, take another measurement. Then take that same medium and put it in front of the detector side, take the last measurement, and compare. Test a should give us the same we always get. If light moves the same velocity in every direction, test b and c should give the same result, if not then they will be different, meaning light changes velocity depending on the direction it is going. If I am wrong, please tell me what is wrong and why. What are your thoughts on trying to measure the one-way speed of light, and do you think it is possible at all?


Unable to use Stack Exchange app when stackexchange.com is blocked, but not sites that aren't hosted there

I am sometimes in an environment where stackexchange.com and all of its subdomains are blocked, but sites that are hosted on other domains are allowed, i. e. we are only allowed access to Stack Overflow, Server Fault, Super User, Ask Ubuntu, and Stack Apps. When I try to use the Stack Exchange Android App, it constantly gives me connection errors, possibly because it tries to connect to stackexchange.com. Shouldn't the app also allow access to these five sites, but not to others?


In the scene in Harry Potter and the Deathly Hallows: Part 1 where multiple Harrys are created with polyjuice potions, why was the choice to become multiple Harrys?  Wouldn't random muggles be far easier to smuggle than multiple Harrys?  Why was Harry the face of choice?


Prove that the given group is an Abelian Group

Let G be a group in which $(a*b)^3=a^3 * b^3$ and $(a*b)^5=a^5*b^5$ for all $a,b \in G$. Show that G is an Abelian group ?


The online documentation defines nullif() as a function which returns NULL if the argument values are equal. But why does it return NULL even if the argument values are not equal, as in the case below:  select nullif(convert(varchar(10), ' '), convert(varchar(10), ''))   ---------- NULL  (1 row affected)


"Freedom is slavery" and "Ignorance is strength" - What kind of rhetorical strategy is this?

What kind of rhetorical strategy (or fallacy?) is it when someone uses words with opposite meanings and combines them in what seems to be a contradiction?     In George Orwell’s 1984 we can find:         “War is peace.”   “Freedom is slavery.”   “Ignorance is strength.”         In that context they were used chiefly as slogans to back up the totalitarian philosophy.   Other examples:   “Life is often a form of death.” “The ordinary is extraordinary.”


Proof that$ (a+A)\cap A=\varnothing$ if $A$ is countable

I finished my test and there is a question I completely failed but that my teacher did not go over, so I was hoping someone could post a correction of it, so that I understand what I was supposed to do for next time.  Suppose that A is a countable set of real numbers. Show that there exists a real number a such that $(a+A)\cap A=\varnothing$. (Note: By definition, $a+A= \{a+r\mid r\in A\}$.)