Arabic letters not showing correctly on website

i'm developing a website that contains both english and arabic languages and running on WAMP server. it used to show arabic letters just fine but suddenly it started showing arabic chars as weird symbols like: ØÙ…Ø¯Ù…ØÙ…Ø¯  Here's somethings i noticed about the issue:   The issue is only happening on chrome browser, firefox and IE showing arabic perfectly. The issue is showing in only some pages, the other are working okay. although i have the utf8 meta tag in all the pages: <meta charset="UTF-8">.   I tried restarting WAMP but the issue persist.


How do I recover deleted books from inventory in minecraft?

I died in my hardcore mode world that I really care about. and I changed myself to creative mode, grabbed my stuff, put it in a chest and made a new book explaining to my future self how I died and how long I survived for in case my future self curiously came into the world to see what it was.  After I finished writing the book I grabbed my book of coordinates from my chest that I created and wrote before I died. I decided to play around with the save toolbar hotkey (dumb idea) and went to try save my toolbar, but instead of pressing C+6 like I meant to, I accidentally pressed X+6, which cleared my inventory completely because toolbar number 6 in the inventory was already previously empty, so it essentially replaced all my items with air.   My question here is, is there any way I can find and recover those 2 books in the world files or game files? I don't care what it takes to get those books back even if I have to mod the game, I just want a way to recover the books.  I don't really care much for the death book, just as long as I can get my coordinates back because they are extremely important to have.


Open maping theorem. Completeness assumption are important

The open maping theorem between banach spaces says.  Let $T:X\to Y$ be a linear,continuous and surjective map between the banach spaces $X,Y$ then $T$ is an open map.  I need examples to show that the completeness assumption are important even in the presence of completeness of the other space. Thanks!


Finding the distribution of X-Y if X and Y are iid uniform (-a,a)

Suppose X and Y are independent and follow uniform distribution (-a,a). How do we find the distribution of X-Y? I tried finding the area with the help of a diagram for cases when x-y>0 and x-y<0. I want to know what is the right way to do it.


How can i set a specific length for an edge?

I want to build a room with specific length. For example 40cm. So, i want to put a specific value somewhere. Answer only for Blender 2.8/ 2.81 pls. BTW sorry for my bad english


How many different combinations of a six sided die rolls equals n

Say I want to roll a six-sided-die until all the rolls I have made added together equal X (for example a number like 812). How do I calculate how many different possible combinations of dice rolls add up to X?  for example: say I want to find the different roll combinations that equal 6: 6 51 15 42 24 33 123 312 213 114 411 141 1113 3111 1311 1131 11112 21111 12111 11211 11121 and so on...  I have found that this approach does not work for larger numbers. Thanks  Thanks


Finished texture painting and reopened blender and now it only shows as black. How do I fix this?

After texture painting a mesh, I reopened blender, and I can see the material fully done in the paint slot, but it only shows as black now when selected. Unsure how to fix this.


Post-apocalypse scifi series with two human classes

I remember watching a scifi series when I was growing up - it was either in the late 80s or early 90s that I watched it.  These are elements I can recall   The world was polluted or contaminated somehow There were humans living in communities of a sort that had a higher level of technology that had cleaner air The humans out in the polluted areas were more Mad Max-like and I think were mutated somehow or other The 2 human elements were not friendly towards each other and there was a fair bit of conflict between them Some of the cast for the humans in the community were more militarized and would go out to try and help people or to do repairs and such I think that the terrain was more desert like for the most case   I don't remember much beyond these aside from the fact that I enjoyed the show.  Does anybody recall the name of this show?  I think that it was more serious than comedy, but I'm remembering from a child's perspective.


I have a simple table. I found that some of the Mathematical expressions cross the border of the cells. How to fix this problem?  I have the second question please which is also related to my table: I have merged five cells; how I can split it into two equal cells?  Thanks in advance.  \documentclass[10pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{caption} \usepackage{amssymb} \usepackage{graphicx} \usepackage{multirow} \begin{document} % \begin{table}[] \centering \caption{First Table} \label{my table} \begin{tabular}{|l|l|l|c|c|l|} \hline Name & \multicolumn{1}{c|}{a}               & \multicolumn{1}{c|}{b} & c                     & \multicolumn{1}{l|}{Test-1} & Test-2                                      \\ \hline 1    & aa                                   & bb                     & \multirow{5}{*}{same} & \multirow{2}{*}{222-a}      & \multicolumn{1}{c|}{\multirow{2}{*}{333-a}} \\ \cline{1-3} 2    & cc                                   & dd                     &                       &                             & \multicolumn{1}{c|}{}                       \\ \cline{1-3} \cline{5-6}  3    & ee                                   & ff                     &                       & \multirow{3}{*}{222-b}      & \multirow{3}{*}{333-b}                      \\ \cline{1-3} 4    & $\sin^{2}\left(\frac{\pi}{M}\right)$ & gg                     &                       &                             &                                             \\ \cline{1-3} 5    & hh                                   & ii                     &                       &                             &                                             \\ \hline \end{tabular} \end{table} % \end{document}


Why is $\lim_{x \to 0} x = (1+\tan x)^\frac{1}{x}$ not 1?

Why is it wrong to think that $$\lim_{x \to 0} (1+\tan x)^\frac{1}{x} = (1+0)^\frac{1}{x}=1^\infty=1$$ because $\lim_{x \to 0} \tan x$ and $\lim_{x \to 0} \frac{1}{x}=\infty$? I already know the correct answer but could not figure out why this way is not correct.


What is the reason for having numbers within the brackets of a function ?

I have seen on many occasions a name of a function (frankly speaking I just call it function because of it typical appearance, they are though sometimes named commands or system calls but I do not know the idea behind labelling them differently), which contains a number within the brackets part of it, like in exec(1) exec(2) exec(3).  What is the meaning behind putting numbers into them ?


Setting up aliases with interactive ssh session

I need to keep ssh'ing into many-different Linux boxes (Ubuntu mostly) and every time I miss my basic aliases. Is there a way to setup aliases etc   while opening an interactive ssh a machine without tinkering with remote machines's .bashrc/.bash_profile?   Following would just execute the alias commands in a non-interactive shell on remote machine and terminate the session (as expected): kashyap@Laptop$ ssh root@ec2-1-2-3-4.compute-6.amazonaws.com "alias c=clear; alias p=pwd; alias l='ls -altr'  I would love it if I could select a file from local machine to be executed as init script on remote, but willing to settle for less.  E.g.  ssh usr@remote --init-script=/local/my_init_script_for_ssh_sessions


I have a date time in a variable. My format is 08/04/2010 22:15:00. I want to display this like 10.15 PM. How to do this in PHP?


Find limit of $\sqrt[3]{n+1}-\sqrt[3]{n}$

I have to find the limit of: $$\sqrt[3]{n+1}-\sqrt[3]{n}$$  What I know is that multiplying can be the key here, so I simplified it to  $$\frac{1}{(n+1)^{\tfrac{2}{3}}+n^{\tfrac{1}{3}}(n+1)^{\tfrac{1}{3}}+n^{\tfrac{2}{3}}}.$$  Now what I do not understand: I know that this converges to zero, since all the terms of the denominator grow as $n$ increases. But how do I formally finish this proof?   Wouldn't I have to show for each term that it grows continually?   I am not quite sure how to do this. Any hints would be very kindly appreciated, thanks!


About smooth approximation in a Sobolev space

I want to prove the following fact :  Consider $\Omega \subset R^n$ a bounded and open set. Let $v \in H^{1}_{0}(\Omega)$ a nonnegative function. Then exists a sequence $v_m$ in $C^{\infty}_{0}(\Omega)$ of nongative functions converging to $v$ in $H^{1}( \Omega)$.  I know how to prove this fact (I think this fact can help): If $u_m$ is a sequence converging to $u$ in $H^1(\Omega)$ , then ${u^{+}_m} \rightarrow  u^+$.  Someone can give me a hint ?  Thanks in advance


How to set PATH for Finder-launched applications

Apps launched via Finder seem to not respect the PATH as set in .bash_profile.  So when I try to run code from an IDE (Intellij) I no longer have access to programs in /usr/local/bin, which is normally added to my path in the Terminal.  Apparently .MacOSX/environment.plist  to do this, but it no longer works in Lion.  How can I set the PATH for Finder-launched applications?


What is the status of massless photons traveling through a medium?

Photons in vacuum have no proper time, and they are not considered as observers and not as reference frame. But what about photons travelling through matter? Their velocity is lower than light speed, thus the proper time formula (multiplication with reciprocal gamma) would yield a proper time, but do we consider that they have a proper time/ that they are observers/ that they may be reference frames?


How to create a duplicate of a stack in Java

My teacher requested that I create a duplicate of a Stack that returns a new Stack containing the same elements and in the same order as the specified Stack.  If I am only able to use methods that are unique to Stack, I would pop every element off the Stack and onto a que. Then I would pop from the bottom of the que onto a new Stack and return the new Stack.  However, I figured that since Stack inherits from Vector I could just use the addAll() method from Vector!  Here is the Java code implementation:  public class DuplicateStack {  private Stack backStack;  public Stack duplicateStack(Stack s) {     backStack.addAll(s);     return backStack; }   This would seem to do all the work for me. Only problem is, I keep getting a nullPointerException when I run this in my main:  Stack s1 = new Stack(); s1.push("c"); s1.push("b"); s1.push("a");  DuplicateStack dup = new DuplicateStack(); Stack s2 = dup.duplicateStack(s1);  while(!s2.empty())     System.out.println(s2.pop());   The error comes from the addAll() call in my DuplicateStack class. So my question is why am I getting a nullPointerException from the addAll(), and is there any way to make a duplicate copy other than using the method stated earlier (using only Stack unique methods)?


Why is the determinant zero iff the column vectors are linearly dependent?

The determinant of a square matrix is zero if and only if the column vectors are linearly dependent.   I see a lot of references to this all over the web, but I can't find an actual explanation for this anywhere.


I'm trying to get a head start before my A level and one thing I couldn't quite understand was why private ip addresses are used.  My current understanding is that mac addresses are used amongst local networks to send data. And public ip addresses are outside of LANs. Local ips are used within LAN's only so why are they needed if mac addresses do this aswell?  Another thing I don't understand completely is the private ip classes, A B and C. What is the difference between these?


Best Practice: Match different Journal specifications

In most cases one does not write papers for one journal exclusively. Changing your code to match all specifications takes a lot of afford and time. There is a wide variety of question referring to this topic        Going through the comments it looks pretty hopeless to find »One Package To Rule Them All«. Licences and changing templates make it nearly impossible to maintain all of those templates in one class or package.  Point is, are there some sort best practices to save time writing articles for different journals?


Counting number of subsets which contain a specific element

There is a set $x = \{A,B,C,D,E,F,G\}$ and the question ask for counting the number of subsets which contain $D$. And the answer is $2^6$. why would it be $2^6$? I know the total number of subsets is $2^{|x|}$ is it realated?


Total time derivatives and partial coordinate derivatives in classical mechanics

This may be more of a math question, but I am trying to prove that for a function $f(q,\dot{q},t)$ $$\frac{d}{dt}\frac{∂f}{∂\dot{q}}=\frac{∂}{∂\dot{q}}\frac{df}{dt}−\frac{∂f}{∂q}.\tag{1}$$ As  part of this problem, I have already proved that $$\frac{d}{dt}\frac{\partial{f}}{\partial{q}}=\frac{\partial{}}{\partial{q}}\frac{df}{dt}\tag{2}$$ through the use of a total derivative expansion for $\frac{df}{dt}$, however I can't seem to figure out where the additional $-\frac{\partial{f}}{\partial{q}}$ term comes from for equation (1).


How can I mount my partition with executive permissions using the launcher icons?

I'm trying to install steam games onto my Data partition (NTFS formatted since I use that partition as a bridge for the few times I have to use windows).  I do not want it in my home folder since it is starting to get a bit full (I only have 16 gb of space left)  I tried  but apparently that doesn't work anymore.  I tried setting the library folder on the Data partition but I just get the response: "New Steam library folder must be on a filesystem mounted with execute permissions."  I usually mount my Data partition using the launcher mount option unity brings with it (just click on the drive on the side bar). I don't really want to change that.  So how can I mount my drives with executive permissions using the launcher icons??


How to recover lost partition and files after installation of Ubuntu on Windows partition?

I have got a laptop from one my friend which has installed Ubuntu by choosing a wrong option and has re-partitioned the entire hard drive and has lost all his private files.  I booted the laptop by a live Linux CD and I can see 4 partitions. First, one system partition 1,86 GB NTFS, then 2 X 46.5GB for Ubuntu and lastly a 603GB unallocated partition.  He doesn't need to keep Ubuntu just wants to back his files as there are crucial. I know some parts of data have been overwritten but wondering if there is a way that I can recover the data?


Java: if/else statement in infinite loop not working

I'm trying to figure out why my function isn't working as it should. The code is fairly basic and self explanatory. Here is the function:  public static void Greet(){     System.out.println("Hello, what is your name? ");     name = scan.nextLine();     do{         System.out.println("Would you like to order some coffee, " + name + "? (y/n) ");         input = scan.nextLine();         if(input == "y"){             System.out.println("Great! Let's get started.");             break;         }         else if(input == "n"){             System.out.println("Come back next time, " + name + ".");             System.exit(0);         }         else{             System.out.println("Invalid response. Try again.");         }     }     while(true); }   Basically, regardless of what I enter as "input" on line 5, the function will treat it as if I hadn't entered a 'y' or 'n', it just constantly loops the while(true) and printing "Invalid response. Try again." I have no idea why my if/else statements aren't working correctly. Any help would be appreciated, thanks!


My computer is getting old and with windows 7 no longer giving support I wanted to dual install a linux version. Maybe even run it off a flash drive and or dual boot if possible. I was thinking ubuntu but after reading not sure which one I need. Will be using it every day as a regular person but with higher computer understanding but not developer level.  Hp dm3t 1100 laptop 14 inch screen laptop No dvd drive  Intel core 2 duo p9300 2.26 ghz 2.27 ghz 3.00 GB ram 64 bit os Windows 7 home premium   What best version should I get?


During a recent game, my opponent Suspended two  in the same turn. Then, during my turn, I played a .    The way we resolved it, is that at the next turn, my opponent payed 1 for the second Rift Bolt. I'm not sure if this is correct, because the rule text for supspend says that when you remove the last suspend counter you cast the spell without paying its mana cost.  So, to me, it sounds like even if the cost was increased, one still does not need to pay for it.    What's the correct thing to do? If actually one needs to pay for the second suspended spell, what would happen if he can't?


Since he was born, he suffered from the disease vs he has suffered from the disease?

Is there any difference? As far as I am concerned, "Since he was born, he has suffered from the disease" means he has still suffered from the disease. So now he is suffering from the disease.  "Since he was born, he suffered from the disease" means I don't know he has still suffered from the disease. Probably, he died from the disease in the past. (If I tell his grown-up daughter about her father's death, is it possible for me to say that?)


Splitting lines with points while maintaining other dissolved lines?

I am on ArcGIS Desktop 10.2. I have a line feature class of a stream network. I also have a point feature class along the main stream (line) where a catchment enters that stream. I have dissolved my whole streams layer into one line feature and want to split this feature at the points.    However, when I use the  tool, the lines that don't have a point splitting them are still being split at the intersection of two streams.    Why did this line not stay as one feature with the other lines on that side of the splitting node and how can I prevent this from happening?


Using Tail on a process causes character input delay & disruption

I was referring to  question to see if it is possible to spy on another running process' stdout. One answer suggests using tail -f /proc/<PID>/fd/1 to do so. So I opened two terminal sessions to try it. In the first terminal, I echoed the PID using echo $$. In the second terminal, I executed the tail command (without root privileges). I then noticed that there is significant hangup in the first terminal's IO (typing into the shell was disrupted and there was significant key delay). Why does this happen?  I'm running Ubuntu 18.04.


How to auto mount an ssh file system on demand with an RSA key

I am trying to auto mount a folder from my raspberry pi (/home/pi/server_folder), to a local folder (/home/my_name/raspberrypi).  I can do this with sshfs (auto mount in fstab) when I set up a blank rsa key, but when I try to use an actual key, like 123, the raspberry pi filesystem wont mount.  This is pretty obvious, since I have to supply the passphrase, but is there a way to have it ask for the passphrase when I first try to access /home/my_name/raspberrypi, or do something similar to that? Because if someone gets my laptop, they dont need to put a password or anything in to get access to my raspberry pi, if I leave the rsa key blank.  I have looked into autofs, and autosshfs, but autosshfs won't download, and autofs doesn't explain how to mount with an actual rsa key (well, I haven't found a guide on how to).  I'm using arch Linux, latest version.  Here is the fstab entry:  pi@10.0.0.50:/home/pi/server_folder/ /home/my_name/raspberrypi  fuse.sshfs noauto,x-systemd.automount,_netdev,users,idmap=user,IdentityFile=/home/my_name/.ssh/id_rsa,allow_other,reconnect 0 0   which is what arch wiki says to do (but doesn't explain very well).


I am using photoshop to design a t shirt..  As for the photo to look like reality I have taken a picture of a t shirt which has wrinkles. Now when I keep my Image(design) on the tshirt, it is looking like that I have kept a design. But I want the design to adjust in a way that it will adjust according to the wrinkles. I have given an example having an examples which shows both the design which I want to design(downloaded)   Note: Green Circles: shows the image adjustment according to the t shirt..  For more information just give a comment and I will respond in seconds.....


Conservation of angular momentum exercise

Exercise:  A disk of radius $R$ and moment of inertia $I_1$ rotates with angular velocity $\omega_0$. The axis of a second disk, of radius $r$ and moment of inertia $I_2$ is at rest. The axes of the two disks are parallel. The disks are moved together so that they touch. After some initial slipping the two disks rotate together. Find the final rate of rotation of the smaller disk.    Attempt: $L_{1_0} = L_1 + L_2 \rightarrow I_1\omega_0 = I_1\omega_1 + I_2\omega_2$ $\omega = \frac{v}{r} \rightarrow v = \omega r$ $\omega_1 R = \omega_2 r \rightarrow \omega_1 = \frac{r}{R}\omega_2$ $I_1\omega_0 = I_1\frac{r}{R}\omega_2 + I_2\omega_2 \rightarrow \omega_2 = \frac{I_1\omega_0}{\frac{r}{R}I_1 + I_2}$ $$\omega_2 = \frac{I_1\omega_0}{\frac{r}{R}I_1 + I_2}$$  Request: Is my solution correct? If not, where and why?


Interpreting a binomial regression model in R

I have built a binomial regression model using the equation: logit_1 <- glm(past_adl_binary~., family = binomial(link = "cloglog"),                 data = newdata)  The AIC value for this model is approximately 15000.  This is the lowest AIC that I have found for all of the models that I have run, but I am worried that it is too large! Does anyone know if this is a problem? The outcome of the model is as follows:  Can anyone help me interpret the outcome of this model?  I understand that all of the coefficients are significant apart from sunangle.  Can I interpret the outcome in the same way that you would interpret a logistic regression, even though I have used a cloglog link function? Apologies if this is a simple question, I am new to statistics! Thanks.


Keyword loosing rank when not having a Regional word in it

This question has nothing to do with Improving my Overall Position on Search or my SEO . I Very simply want to understand why ONE keyword in particular is Worse off on search under the Following Circumstance, Im not in search off a 100 ways to improve your search Posistion. I want to know why: The Keyword E.G White Sock Is doing Worse Then White Sock (Region)E.G North America  So Keywords are 1.White sock 2.White sock Region Why does 2 do better then 1?


I saw this symbol: $\underline{\big|6} $ in a question bank for a chapter of permutations and combinations. I have included the question from the book to provide more context: .


What is the need to upgrade Ubuntu? Can not install packages

I am using Ubuntu 13.04. I don't take the software updates that my system prompts me to.  Is there any use to upgrade my system to the latest ubuntu.  The reason I ask this is that when I do sudo apt-get update, I see alot of Failed to fetch ... 404 Not Found.  So my question is that is this 404 because I have not taken the latest ubuntu?  How exactly does this thing work, and how can I get rid of this error. I tried to install mysql, and it is giving me 404.  So I did the changes in my Sources.list  It still says: Err http://old-releases.ubuntu.com dists/restricted Sources 404  Not Found  And some more Error on extra.ubuntu.  What should I do?  When doing apt-get install mysql-server, it says:  Reading package lists... Done Building dependency tree        Reading state information... Done Package mysql-server is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'mysql-server' has no installation candidate


I have a question which I suspect has the same underlying problem as my question on ring adjuncts . Artin asks us to consider adjoining $1/2$ to $R=\mathbb{Z}/12\mathbb{Z}$. So I construct $R[1/2]\cong R[x]/(2x-1)$. For any $f\in R[x]$ we consider $f(x)=(2x-1)g(x)+r(x)$ whose residue in $R[x]/(2x-1)$ is just $r(x)$. $r$ must be a constant polynomial, since its degree must be less than $2x-1$, so it seems like $R[x]/(2x-1)$ is simply isomorphic to $\left\{r(x)=c|c\in R\right\}$ which in turn is isomorphic to $R$. It seems to me that I've constructed an isomorphism $R\cong R[x]/(2x-1)$, which should indicate that $R\cong R[1/2]$. If I consider $R[1/2]=\left\{\sum r_i (1/2)^i|r_i\in R\right\}$ this isomorphism is patently false, so I think I'm doing something wrong. Unlike the question I asked yesterday, $(2x-1)$ is certainly in $R[x]$


Does "up to [date]" include the end date? What about date ranges ("the week of...")?

The quiz covers all the material up to the week of the quiz Sept.30 - Oct.6.    Does this mean that September 29 is the last date, or that the week Sept.30 - Oct.6 is included in this span?


A question related to Liouville's Theorem

Suppose f is entire and $\lvert f(z)\rvert \geq 1 $ on the whole complex plane. Then, f must be a constant function.   I know that if f is bounded on C then it is constant. But I couldn't relate this fact to this question. Unfortunately, I have any other ideas to prove this.   Actually, it looks very counter-intuitive to me, I don't even see why this is true. Because I know that if f is entire and $lim_{z \rightarrow \infty}f(z) = \infty$, then f is a polynomial. In particular, isn't this f (as in the limit) satisfies the condition in the question?    Any help is appreciated.


Is a subject aware of an enchantment if he fails a will save

There are some spells (probably mainly ) out there you have to make will saves and I am not sure if the subject is aware of the will save.   Let me give you two examples:   Someone  on a subject. The subject has a Will save but if he fails does he know he has been scried? Someone casts  on a suject causing her to avoid an object or location. Is this person aware of it? Is the new behaviour suspicious  to him?


The Title of Document Runs off the page, as part of header on page 3

Here's my preamble:  \documentclass[11pt]{amsart} \usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots. \geometry{letterpaper}                   % ... or a4paper or a5paper or ...  %\geometry{landscape}                % Activate for for rotated page geometry %\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent \usepackage{graphicx} \usepackage{amssymb} \usepackage{epstopdf} \usepackage{float} \usepackage[normalem]{ulem}  \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}  \title{\emph{Research Proposal:}\\Perceptual Effects of Cross-Contextualized Soundscapes within the Built Environment}   Here's what happens:    Any ideas?


'Travel company' for Russian tourism visa

I'm Belgian and I'm trying to apply for a Russian tourist visa. I'll arrive in Russia September 5th and I'll leave September 20th, which is 16 days.  Now I've read somewhere that the max duration of stay is 30 days, BUT if you stay longer than 15 days, You'll have to provide a detailed itinerary of your trip, signed and stamped by the same Russian travel agency.   What kind of organized trips am I required to book/or must I book for this? Do they mean I need to book a pre-organized trip for a week or 16 days or something? Or just book a few single (half)day trips/tours and print these? Depending on the answer of question 1, what are these organizations (examples) and do they automatically provide me a document with a stamp for this?   Note after closure: This question is not about the invitation letter you need from Russia that contains list of cities and hotels you'll stay (which is answered in the duplicate). This is about an extra document from a travel agency with a stamp if you stay longer than 15 days, which I don't know what it is.


How to hyperlink only the year part when using natbib and hyperref

I am using the natbib and hyperref packages:  \usepackage{natbib}  \usepackage[pagebackref=true, plainpages=false, bookmarks, bookmarksnumbered, colorlinks, linktocpage=true, linkcolor=blue, citecolor=blue, filecolor=black, urlcolor=blue]{hyperref}   With my current settings (above) both the name and the year are hyperlinked.  My question is, whether there is a way to hyperlink (or color) only the year-not the author(s).   I have the impression reading this post  that biblatex does it by default. However changing to biblatex is not an option for me at this point.  Any helpful comments will be greatly appreciated.


SSH into multiple servers executing multiple commands

I have several hosts that need to have a one-off RPM installed as well as packages belonging to the CentOS-Debuginfo.repo.  These machines currently have the repo disabled and gpgcheck enabled.  After everything has been installed, I need rpm --nodeps -e some packages, all the while echo'ing out the hostname of each machine that this has all been done to.    So far, I have this:  #!/bin/bash # SSH to hosts, then grab the GTS RPM and install it.  Yum install required debugging packages, then rpm to erase unnneeded ones.  cmds="echo $HOSTNAME; cd /tmp && wget http://download.sipxcom.org/pub/epel.bak/6/x86_64/gts-0.7.6-19.20111025.el6.x86_64.rpm /tmp; rpm -i /tmp/gts-0.7.6-19.20111025.el6.x86_64.rpm; yum --enablerepo debug --nogpg install -y db4-debuginfo.x86_64 expat-debuginfo.x86_64 glibc-debuginfo.x86_64 kernel-devel.x86_64 nss-softokn-debuginfo.x86_64 openssl-debuginfo.x86_64 python-debuginfo.x86_64 readline-debuginfo.x86_64 zlib-debuginfo.x86_64; for i in $(cat /tmp/testing/rpms_to_erase.txt); do rpm -e $i; done" hostlist=/tmp/testing/hostlist.txt  for i in $HOSTLIST   do     ssh -qn $i "bash $CMDS" && "rpm -e gdm-plugin-fingerprint.x86_64 gdm-user-switch-applet.x86_64 gnome-applets.x86_64"   done   As you can see, this is quite ugly.  Wondering if anyone may have a more elegant solution.


Iterating through columns in table using ModelBuilder?

I am unable to find any info on how to use ModelBuilder to run a certain spatial analysis function on each column in a table.  I have a table to sample locations and at each location there are a series of measures (e.g. temperature, flow rate, number of certain species).  For each of those attributes (columns in the table), I was to run the IDW function from the surface tools.  This would be easy if I had each attribute in a separate shp/feature class, but not very efficient.  I tried Iterate Feature Selection, but was unable to pass the field name as the Z value in the IDW function.  This is for ArcGIS 10.1 (Basic and Spatial Analyst license)


Lambda can have only one expression then why it takes if/else in an expression

I read that lambda can have any number of arguments and it must have only one expression  Take a look at the below code  from functools import reduce a = [1,2,3,4,5] result = reduce(lambda x,y: x if x > y else y, a) print(result)   Output   5   In the above expression, lambda is having if and else both. Is it considered as only one expression ?


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

Evaluate   $$\sqrt{6+\sqrt{6+\sqrt{6+\dots}}}$$  I need some help with this question because I have no idea what is going on and help would be greatly appreciate :)


Number Theory: Prove that any primitive root $r$ of $p^n$ is also a primitive root of $p$

I have this problem assigned for homework, and I know there is already a post of the same problem, but I wanted to see how to solve it with a different method:  Let $p$ be an odd prime. Prove that any primitive root $r$ of $p^n$ is also a primitive root of $p$.  The hint that is given is: Let $r$ have order $k$ modulo $p$. Show that $r^{pk}\equiv 1\pmod{p^2},\dots,r^{p^{n-1}k}\equiv 1\pmod{p^n}$ and hence $\phi(p^n)\mid p^{n-1}k$.  Proof  Let $o_p(r)=k$.  (Now I am unsure how to prove that this implies $r^{p^{n-1}k}\equiv 1\pmod{p^n}$.)  Now, since $r^{p^{n-1}k}\equiv 1\pmod{p^n}$, then we must have $o_{p^n}(r)\mid p^{n-1}k$. But $r$ is a primitive root of $p^n$, so we have $o_{p^n}(r)=\phi(p^n)\implies\phi(p^n)\mid p^{n-1}k\implies p^{n-1}(p-1)\mid p^{n-1}k\implies (p-1)\mid k$.  But $r^k\equiv 1\pmod{p}\implies k\mid\phi(p)\implies k\mid p-1$, so we must have $k=(p-1)$, which means $o_p(r)=p-1\implies r$ is a primitive root of $p$. $\blacksquare$  Thanks in advance!


C# Tasks.Run, local var not given to Task? Bug?

Got a strange bug.  The output of following is:  RANGE: 100000 - 125000 RANGE: 100000 - 125000 RANGE: 100000 - 125000 RANGE: 100000 - 125000   And this is wrong! If I add an extra local var in the loop, the output is right!  int ax = i; var curtask = Task.Run(() =>Work(ax, blocksize, size));   Output:  RANGE: 75000 - 100000 RANGE: 0 - 25000 RANGE: 25000 - 50000 RANGE: 50000 - 75000   (it's ok that the order isn't kept)  So the i var is not given to the task on creation? I find this situation very dangerous. Normally I would have trust in the parallels!  private static void Work(int startIndex, int blocksize, int maxSize) {     int end = startIndex + blocksize;     Trace.WriteLine($"RANGE: {startIndex} - {end}");     Console.WriteLine($"RANGE: {startIndex} - {end}"); }  static void Main(string[] args) {     int i = 0;     int size = 100000;     int blocksize = size/4;     int taskcount = 0;     var tasks = new List<Task>();      while (i < size)     {         //THIS WORKS!!!         //int ax = i;         //var curtask = Task.Run(() =>Work(ax, blocksize, size));          var curtask = Task.Run(() => Work(i, blocksize, size));         taskcount++;         tasks.Add(curtask);          i = i + blocksize;     }     Task.WaitAll(tasks.ToArray());     Console.WriteLine("DONE");     Console.ReadKey(); }


How to show $m+n = n+m$ in the set of Naturals with zero.

I understand the axioms defined on the set of natural numbers that $m+0:=m$ and that $m+n’:=(m+n)’$. Where does the commutativity come into this?


Difference between $\mathbb{Z}/n\mathbb{Z}$ and $\mathbb{Z}_n$

In every Modern Algebra book I've read, I've seen that the groups $\mathbb{Z}/n\mathbb{Z}$ and $\mathbb{Z}_n$ are isomorphic, but not equal. I understand the difference between "isomorphic" and "equal," but this particular example raises a couple of questions for me.  I know the first group consists of cosets $k + n\mathbb{Z}$, and the second group consists of equivalence classes $[k]_n$, but isn't it true that $k + n\mathbb{Z} = [k]_n$ for every integer $k$? (They are both sets containing the same elements from $\mathbb{Z}$.) And if so, then can't we say that $\mathbb{Z}/n\mathbb{Z} = \mathbb{Z}_n$? Thanks in advance!


Prove: $$ (a+b)^\frac{1}{n} \le a^\frac{1}{n} + b^\frac{1}{n}, \qquad \forall n \in \mathbb{N} $$ I have have tried using the triangle inequlity $ |a + b| \le |a| + |b| $,  without any success.


Graphic file .eps not found though in proper directory:

I am using graphicx to typeset the figures for my PhD thesis. I have large files in .eps format. However, whenever I try to typeset the file (using pdfTeX), the console says      "LaTeX error: File 'Figure' not found"    It is in the same directory as my .tex file, and the file will typeset if I create it as a .dvi and then convert it to .pdf. I would rather not do this though, because I want to use hyperref.


What is the next step of proving that $\lim_{n\to\infty}s_nt_n=0$ if $s_n\to0$ and $t_n$ is bounded?

Q There are $t_n$ bounded sequence and $s_n$ tending to zero. Then, prove that $$\lim_{n\to\infty}s_nt_n=0$$ A  Since $t_n$ is bounded, There exists $M>0$ such that $$\left| t_n \right| \le M$$ for all $n$.  Since $\displaystyle\lim_{n\to\infty}s_n=0$, for any $\varepsilon_1\gt0$, there exists $N_1$ such that $$\left| s_n \right| \lt \varepsilon_1$$ for $n \ge N_1$.  In order to prove this proposition, it is enough to find $N_2$ satisfying that, for any $\varepsilon_2\gt0$, there exists $N_2$ such that $$\left| s_nt_n \right| \lt \varepsilon_2$$ for $n \ge N_2$  If $N_2=\text{_____}$, then $$\left| s_nt_n \right| \le \left| s_n \right| \cdot \left| t_n \right| \lt M \cdot \varepsilon_1 \le \text{_____} \le \varepsilon_2$$ for $n \ge N_2$    I proved until here. Can someone let me know what should be filled in the blank?


Do I put a hyphen between the number and unit?

For example, in the sentence:     I enforced a 60 minute time limit.   Should it be:     I enforced a 60-minute time limit.   Which one is correct?


PPA too slow, how to mirror? [Cache repository subset]

I have to install graphic drivers on tens/hundreds of computers, and PPA graphics-drivers just drops download speed to a few kB/s, which means it would take days or more to install all that.  One solution would be to download the packages, and manually install everything. Another one would be to create a proxy that redirects the requested packages to some local copy.  What is the proper way of solving this? I've seen a few topics complaining about launchpad availability, and I'm in Western China where I can't rely on having a nice fast connection.  Edit: I was looking for a caching solution, that doesn't involve having a full repository when I only need a fraction of several repositories. Problem solved with apt-cacher-ng which only caches what is downloaded and doesn't require mirroring full repositories.


Time taken to hit a pattern of heads and tails in a series of coin-tosses

Inspired by Peter Donnelly's talk at , in which he discusses how long it would take for a certain pattern to appear in a series of coin tosses, I created the following script in R. Given two patterns 'hth' and 'htt', it calculates how long it takes (i.e. how many coin tosses) on average before you hit one of these patterns.  coin <- c('h','t')  hit <- function(seq) {     miss <- TRUE     fail <- 3     trp  <- sample(coin,3,replace=T)     while (miss) {         if (all(seq == trp)) {             miss <- FALSE         }         else {             trp <- c(trp[2],trp[3],sample(coin,1,T))             fail <- fail + 1         }     }     return(fail) }  n <- 5000 trials <- data.frame("hth"=rep(NA,n),"htt"=rep(NA,n))  hth <- c('h','t','h') htt <- c('h','t','t')  set.seed(4321) for (i in 1:n) {     trials[i,] <- c(hit(hth),hit(htt))     } summary(trials)   The summary statistics are as follows,        hth             htt          Min.   : 3.00   Min.   : 3.000    1st Qu.: 4.00   1st Qu.: 5.000    Median : 8.00   Median : 7.000    Mean   :10.08   Mean   : 8.014    3rd Qu.:13.00   3rd Qu.:10.000    Max.   :70.00   Max.   :42.000    In the talk it is explained that the average number of coin tosses would be different for the two patterns; as can be seen from my simulation. Despite watching the talk a few times I'm still not quite getting why this would be the case. I understand that 'hth' overlaps itself and intuitively I would think that you would hit 'hth' sooner than 'htt', but this is not the case. I would really appreciate it if someone could explain this to me.


$f$ brings convergent nets to convergent nets, is it continuous?

Let $f:(X,\mathcal T)\to (Y,\mathcal S)$ be a function between topological spaces. Let for any convergent net $(x_\alpha)$ in $X$, $(f(x_\alpha ))$ be convergent in $Y$. Is $f$ continuous?  (It seems to be true in completely regular spaces).


How do I get a Broadcom BCM4306 Wireless card working?

So I'm trying to get a 'Broadcom Corporation BCM4306' wireless card working with an old ASUS laptop. I've tried looking at other people's solutions however so far nothing has worked. I've tried installing 'firmware-b43-installer' and 'b43-fwcutter' but as stated nothing's happened. The only driver available in the 'Additional drivers' application is the 'software modem' driver. The wireless doesn't work regardless if this is installed or not.  I've tried the top answer from these two threads


How to sort citations by name with biblatex 'sortcites' option

In my MWE below, I sort my bibliography with the nyt option (name-year-title), cf. the   under 3.1.2.1 General. Then I also include sortcites = true, which according to the manual will "sort citations if multiple entry keys are passed to a citation command. If this option is enabled, citations are sorted according to the global sorting order of the bibliography."  Since the "global sorting order of the bibliography" in my case is name-year-title, I'd expect my citations to be sorted first by name, then by year, and finally by title. But as the MWE below demonstrates, my citations are simply printed in the order given in the cite command. I was expecting "Lennon" to appear before "McCartney" since l preceeds m, but this does not happen. I am either not understanding what sortcites is supposed to do, or I am setting the options incorrectly. What do I need to do to automatically sort my citations by name?  \documentclass{article} \usepackage[style = authoryear-comp, sorting = nyt, sortcites = true]{biblatex} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @book{mccartney1965,     author = "Paul McCartney",     title = "Yesterday",     year = "1965"} @book{lennon1967,     author = "John Lennon",     title = "Lucy in the sky with diamonds",     year = "1967"} \end{filecontents} \addbibresource{\jobname.bib} \begin{document} \cites{mccartney1965}{lennon1967} \printbibliography \end{document}


i am new to ubuntu operating system. i installed ubuntu 12.04.3 through wubi but it did'nt work perfectly it could not get wifi access while it was present and was working on windows 7. 2nd it could'nt displayed my 100GB partition like computer has not such partition  so i decided to install 13.04 i downloaded the 32 bit version, created bootable usb, after the main settings it took me to the screen where I had to decide the action. but it said "replace windows 8" and "something else" first I have windows 7 not windows 8. 2nd after watching different tutorials I selected "something else" from the menu while I shrinked my 'C' drive and got 32GB space for ubuntu that I kept unallocated. that unallocated portion was shown with other partitions that while 'C' was separate only 2GB was free.  please first clear me this concept and the main thing is I want to install ubuntu on a separate drive besides 'C' such that if I ever encounter windows 7 problems and need to install a fresh copy of windows already installed ubuntu should not b effected of this formatted 'C' drive. totally ubuntu should have its own drive. thanks in advance


What are the advantages/Disadvantages to clip and clipless pedals?

I`m fairly new to the sport and I see the people in my town half have clips and the other clipless pedals. Is there any advantage to using clipless  competitively or recreationally?


TightVNC External Remote Access Raspberry Pi

I am running into some trouble accessing my Raspberry Pi (running Raspbian) from my WAN IP.    TightVNCserver is installed and running on port 5901 on the Raspberry Pi. Port forwarding is enabled on my router/switch from 5900 to 5901 going to the Raspberry Pi’s internal address. If using the internal 192.x.x.x address the Raspberry Pi is accessible. When attempting to access the Raspberry Pi from my external WAN with port 5901 specified I receive “connection refused.” Ran a nmap -sV scan to verify port 5901 is open on the Raspberry Pi. Temporarily disabled my router’s firewall to see if it was blocking anything and got the same results.   Any thoughts?


I want to apply a difference boolean using a collection and not an object

So basically I am pretty new to blender and so far I have finished only 3 projects using some tutorials. Currently I am trying to build a cabinet for pc. I created a cube and also created a collection of objects to be differentiated from the mesh so that I can have holes on the back side of the cabinet(For the air ventilation). The problem is that I want to differentiate the entire collection. I tried doing it with the Bool Tool but when I click on differentiate it also applies my solidify modifier. The brush boolean thing seems to work but then I have to apply it for every modifier of the brush. Is there any way around this.Also I cant add the solidify modifier after the boolean because it is messing up the mesh Any help is appreciated Thank you


When is $8^n b^n + \cdots + 8 b + 1$ a perfect square (for positive integer $b$)?

I watched the video  by Michael Penn, where there's a question in the thumbnail which isn't answered. The thumbnail question is:  When is $$2^n b^n + \cdots + 2 b + 1$$ a perfect square (for $b\in \mathbb{Z}_{\geq 1}$)?  When $n = 0, 1$ the answer's pretty clear. The video itself gives a convenient fact that when $n \geq 1$, then $8\mid 2b$, i.e. $4\mid b$ So the question becomes  When is $$8^n b^n + \cdots + 8 b + 1$$ a perfect square?  When $n > 1$, I can't find an answer from numerical experiments. Is there a solution?


I want to know the difference nuance between "going to" and "about to" in native English speaker's environment, which one is better to use or widely used?


How to retrieve Custom Settings from Sandbox to a local SFDX Project?

I want to know how to retrieve Custom Settings from my Sandbox into a local sfdx project. I know command force:source:retrieve but I do not know what parameter to use for retrieving Custom Settings. I have authenticated my Sandbox and tried   sfdx force:source:retrieve -u MySandbox -m CustomSettings   It returned "No result found".  I have tried using Org browser metadata from VS Code, but I could not find anything related to custom settings.  How do I retrieve Custom Settings from my Sandbox?


How to compare data in 2 columns in Excel and then in one cell, determine if there are similar data in both columns

I have 2 columns in Excel: the first contains a list of employee names who perform function A, and the second contains a list of employee names who perform function B.  What I want is to identify, in one cell, if there is one employee whose name appears in both the first and second columns. It does not have to show which name(s) appears in both columns, it just needs to identify IF there are any names that appear in both columns.


Given that $\sum^{\infty}_{n=1} a_n^2$ converges,then, will $$\sum^{\infty}_{n=1}|a_n|^p$$ converge for $p>2$?  I couldn't find a counterexample neither a proof but it looks to me that this is true. For $p=3/2$, I found the counter example $\sum a_n=\displaystyle \sum^{\infty}_{n=1} \frac{1}{n^{2/3}}$


If a positive increasing sequence tends to infinity, then $\sum_{n=2}^\infty \frac{a_n-a_{n-1}}{a_n}=\infty$

While preparing my tutoring group on (currently) measure theory and Lebesgue integration on $\mathbb R^n$, I by chance came across the following result (at least I hope this is a result and my proof is valid) which I don't recall seeing up until today.     Let $(a_n)_{n\in\mathbb N}$ be a monotonically increasing sequence of positive numbers such that $\lim_{n\to\infty}a_n=\infty$. Then    $$\sum_{n=2}^\infty \frac{a_n-a_{n-1}}{a_n}=\infty\,.$$   The proof I found for this relies on dominated convergence and goes as follows:  Proof. Given the sequence $(a_n)_{n\in\mathbb N}$ in question, define a sequence of functions $(f_n)_{n\in\mathbb N}$ via $$ f_n:[0,\infty)\to [0,\infty)\qquad x\mapsto \frac1{a_n}\mathbb 1_{[0,a_n]}(x) $$ with $\mathbb 1_{A}$ being the usual  for arbitrary $A\subseteq\mathbb R$. Obviously, $\int_0^\infty f_n(x)\,dx=1$ for all $n\in\mathbb N$ and $(f_n)_{n\in\mathbb N}$ converges pointwise to zero as $\lim_{n\to\infty}a_n=\infty$ by assumption. This however implies $$ \lim_{n\to\infty}\int_0^\infty f_n(x)\,dx=1\neq 0=\int_0^\infty0\,dx=\int_0^\infty\lim_{n\to\infty} f_n(x)\,dx $$ so by (the converse of) Lebesgue's dominated convergence theorem, no dominating integrable function $g$ for $(f_n)_{n\in\mathbb N}$ can exist. This in turn means that every dominating function $g$ we find has to be non-integrable. The obvious choice here is (written in a sloppy way but it should be clear how $g$ operates) $$ g:[0,\infty)\to[0,\infty)\qquad x\mapsto \begin{cases} \frac1{a_1}&\text{ if }x\in[0,a_1]\\\frac1{a_2}&\text{ if }x\in(a_1,a_2]\\\cdots \end{cases}\,. $$ Note that $g$ is well-defined as $(a_n)_n$ is assumed to be monotonically increasing and unconditionally convergent and, evidently, $|f_n|\leq g$ for all $n\in\mathbb N$. Finally, $$ \infty=\int_0^\infty g(x)\,dx=\operatorname{vol}([0,a_1])\cdot\frac1{a_1}+\operatorname{vol}((a_1,a_2])\cdot\frac1{a_2}+\ldots=1+\sum_{n=2}^\infty \frac{a_n-a_{n-1}}{a_n} $$ which concludes the proof.$\quad\square$    Of course the above result is trivial if $\lim_{n\to\infty}\frac{a_{n-1}}{a_n}\neq 1$, but assuming $(a_n-a_{n-1})/a_n\to 0$ as $n\to\infty$, I did not see an easy way to obtain this in an elementary way - admittedly, I didn't think about an alternate proof for too long. Given a quick glance I also did not find a similar result on this site just yet. Hence my question is:     Is there a simpler way to show this result (assuming it holds and I did not make a mistake)? If so, was this maybe already discussed somewhere on math.SE?   Thanks in advance for any answer or comment!    As a final remark (or rather small example), a direct application of this to the sequence $a_n:=\sum_{k=1}^n \frac1k$ immediatly yields the divergence of the series $$ \sum_{n=2}^\infty \frac1{n(\sum_{k=1}^n \frac1k)}=\infty\,. $$ Given the divergence of $\sum_{n=2}^\infty \frac1{n\log(n)}$ this is of course not surprising but nontheless this (at least in my opinion) is interesting to play around with.


Is there an injection from the set of all real sequences to R?


URL with dashes and underscores altered when inserted into [name](url) notation

So, this is the URL:  http://code.google.com/p/es-lab/wiki/Talks#Changes_to_ECMAScript,_Part_2:_Harmony_Highlights_-_proxies_and   When I insert the URL like so:  [Title](URL)   the last part of the URL changes from  Highlights_-_proxies_and   to   Highlights/i-_proxies_and   What's going on here?  Note: See my comment below for a live demonstration of the issue! Feel free to copy the URL and try it for yourself... (It seems that the URL is only altered if the []() notation appears within a comment, but not when it appears within a question/answer.)


Should text in button be capitalized in English?

As far as I know, in English titles each word should be capitalized.  Should each word of the text in buttons be capitalized if it is a title (e.g. "Add Job Offer"), or should the button text be treated the same as a sentence when there are more than one word (e.g. "Add job offer")?


For a time series object (in terms of theory/concepts), do we have to have the data for each date? In some cases the customers do not make purchases/sales amounts during the same month. For example, I want to predict the sales for each customer based on their dates. I am missing some dates for sales, would this be a problem for prediction? The data below:  > amount <- c(10,11, 50, 12,30) > dates <- as.Date(c("2012-01-01", "2012-02-01", "2012-05-15", "2012-08-15", "2012-12-10")) > data <- data.frame(amount , dates) > data   amount      dates 1     10 2012-01-01 2     11 2012-02-01 3     50 2012-05-15 4     12 2012-08-15 5     30 2012-12-10  > ts(data)   We can see that row 1 and 2 are consecutive, however 3rd, 4th, 6th, 7th, 9th, 10th, and 11th month are missing. Would this be a problem?   Thanks!


Can you dispel a magic effect you can't perceive?

Discussions about Dispel Magic seem to imply that as long as you can perceive a magic effect in range of the spell, you can try and dispel it.   See  and  from @Miniman:      knowing where it is means that you know where it is. This allows you to use spells like Dispel Magic to remove its invisibility.   But what if you can't perceive it?  Two scenarios come in mind:   In combat, an evil wizard casts Invisibility on himself, walks away from the fray and uses the hide action on his next turn. Since PCs know/assume/deduce he's invisible and certainly in range of the spell, can one use Dispel Magic to end the spell? PCs enter a 80'×80' room. Can one declare: "I dispel any Invisibility spell in range", thus revealing one (the closest?) invisible enemy in the room?   What's enough to enable a caster to cast Dispel Magic on a magic effect:    perceiving (seeing, hearing, smelling, etc.) it? knowing/assuming/deducing it's there? or merely suspect/predict it?


Determine whether a class has a function

Using a trick (described by ), I can determine whether a class has a type defined:  template<typename T> struct hasType {     template<typename C> static char test( typename C::Type );     template<typename C> static char* test(...);     enum{ Value= sizeof(test<T>(0))==1 }; };   I can also determine whether a class has a variable:  template<typename T> struct hasType {     template<typename C> static char test( decltype(C::var) );     template<typename C> static char* test(...);     enum{ Value= sizeof(test<T>(0))==1 }; };   However, neither decltype(c::func) nur decltype(c::func()) (which depends on the parameters) works for member functions. Is there a way to do this or will I have to create a functor in every class and detect it with typename C::functor?  Edit: You're both right, but since I'll also have to test for a type I'll use decltype(&C::func) (which should obviously be a pointer).


'If' Statement Failing Check Involving String Array

I'm trying to create a program in Java which allows the user to pick from a list of coffees contained in a String array and continues on, but it fails the check and prints out the else statement.  Here is the relevant code:  Scanner scan = new Scanner(System.in); String[] flavors = {"Black", "French Vanilla", "Hazelnut", "Mango", "Cherokee", "anarcho-syndicalism", "Otis" };   ...  System.out.println("Today we have " + Arrays.toString(flavors)); System.out.println("Please enter the name of the coffee you would like exactly as shown above: "); String coffee = scan.next();   ...  for (int i = 0; i < flavors.length; i++) {     if (coffee == flavors[i]) {         String selection = flavors[i];   Though not shown here, I believe everything's properly formatted later on in the program. Any ideas?


Trying to get whole and decimal part of a number into two variables. What I tried:  #include <iostream> int main(){     float n,m; int k; std::cin >> n;     k = n;     m = n - k;   Tried to convert the float number to int and received warning by the compiler that the number could be incorrect, tested, was incorrect indeed and couldn't get the expected results. Searched on this, couldn't find any other workaround than using floor().  My actual code:  int main() {     float n; cin >> n;     int nfloor = n;     cout << nfloor << "\n";     float nfloat = n - nfloor; int nfloatfloor;     cout << nfloat << "\n";     do {         nfloat *= 10;         nfloatfloor = nfloat;         cout << nfloat << "\n" << nfloatfloor << "\n";     } while (nfloat > nfloatfloor); }   Results:  Input: 12.34 Output : 12 0.34 3.4 3 34 34 340 340 3400 3400 34000 34000 340000 340000 3.4e+06 3400001 3.4e+07 34000016   Subtracting two float numbers returns an incorrect value, Searched on this but the answers were on a high level that I couldn't understand.  My actual code:  int main() {     float n; cin >> n;     float nfloor = floor(n);     cout << nfloor << "\n";     float nfloat = n - nfloor; float nfloatfloor;     cout << nfloat << "\n";     do {         nfloat *= 10;         nfloatfloor = floor(nfloat);         cout << nfloat << "\n" << nfloatfloor << "\n";     } while (nfloat > nfloatfloor); }   Results:  Input: 12.34 Output: 12 0.34 3.4 3 34 34 //Run should stop here because of the while loop bit it doesn't, funny thing is it gives me different results sometimes, last time it gave me 35 and 34 340 340 3400 3400 34000 34000 340000 340000 3.4e+06 3.4e+06 3.4e+07 3.4e+07   @Slava Take a look at the output right above this sentence, compiler printed 34 and 34, the duplicate answer shows that the couts are  34.0000000000000004 or something like that, and as I commented above, the code should have stopped, what I'm really trying to do is compare a float number and int number, if (float >int) the code should continue and if not it should stop so is there any solution? @hnefatl I tried your answer and the compiler just hangs:  int main() {     float n2, whole, fractional, fractional2, whole2; cin >> n2;     int denominator = 1;     fractional = modf(n2, &whole);     do {         fractional *= 10;         fractional2 = modf(fractional, &whole2);         denominator *= 10;     } while (fractional > fractional2);     if (denominator > 1)         denominator /= 10;     cout << denominator; }


How do I determine what spells are in my spellbook when creating a character? Do I simply have a spellbook with all Pathfinder spells? Or if I'm creating a level 6 wizard, do I start knowing all level 6 spells, and then have to learn the rest as I play the game?


I just used gparted to remove all partitions on a backup disk. Please help me restore them?

I think I just ****ed up in a big way. I deleted all partitions on my external backup drive.  Why did I do this? I was copying backup files from one disk to another and accidentally deleted all the partitions off the wrong disk. (I was going to do a dd afterwards but fortunately I didn't do that yet!)  Can anyone please help me restore this disk? I will be in big trouble if I can't get the data back!


How to calculate this integral using FTC

For the following integral problem, we must show the sum of the 2 integrals is equal to $\pi/4$.  $$\int_{0}^{\sin^2x}\sin^{-1}(\sqrt{t})\ dt \; +\int_{0}^{\cos^2x}\cos^{-1}(\sqrt{t})\ dt= \frac{\pi}{4} $$  We must use the Fundamental Theorem of Calculus to resolve this problem, because calculating this integral takes far too long to do!


Ubuntu 20.04 Raspberry Pi 4 (model B) , problem install pip3

I have a raspberry pi 4 and i have installed Ubuntu 20.04 LTS. When i am trying to install pip3 i am getting the following message :  Reading package lists... Done Building dependency tree Reading state information... Done Package python3-pip is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'python3-pip' has no installation candidate This solution seems not working ( ) It is my fisrt time using rpi but i am very familiar with ubuntu os in general. Is there any particular way installing libraries etc to rpi due to its arm processor ? Silly question but i have stucked in a deadlock. Should i use a different version of OS ? I want to run Linux Containers on my rpi ( LXC/LXD )


Mean and variance of inverse of a normal RV

My random variable $X$ is normally distributed with mean $b$ and variance $p$. I defined a new RV, $Y$, such that $Y=1/X$. Does anyone know how to find the mean of $Y$ and $Y^2$?


How does the encryption/decryption process work?

I am not referring here to the process of Public Key exchange, but rather the process of encryption or decryption itself after the Public/Private keys have been generated. For instance, using Diffie-Hellman algorithm we ended up getting both Public and Private Keys of size 512 Bytes. How are we supposed then to use the Public Key to encrypt a given plain text message "Hello World!" and the Private Key to decrypt it?


Show that an entire function that is real only on the real axis has at most one zero, without the argument principle

Could someone advise me on how to approach this problem:  without  the use of argument principle ?    Here is my attempt: Suppose $f(z)$ has two zeroes at $z=a.$ Let $f(z) = \sum^{\infty}_{n=0}a_n(z-a)^n, \forall z. \ $   Then $f(z)=(z-a)^2 \left(\dfrac{a_{0}}{(z-a)^2} +\dfrac{a_1}{z-a}+a_2+a_3(z-a)+...\right)$   $\implies a_0=a_1=0.$  $\implies f(z)= (z-a)^2\left(a_2+a_3(z-a)+a_4(z-a)^2+...\right)$  $\implies .... ?$  Thank you.


MS excel - assigning "categories" based on keywords

I have en excel file with expenses(the amount of money spent is in one column), and in next column I have short description that is mostly made of multiple words. I want to "simplify" the description and assign a single word or two to each description, which would be in another column next to it. The problem is that the description is not "unified", for example I can have strings like "business lunch","business dinner at restaurant XXX", "coffee with journalists" etc., and I would like to assign these description "food" label. There are also different categories that follow similar pattern.   My idea was to create another table(on different sheet) - in one column I have keywords like "coffee","lunch","dinner" and in column next to them I labels that I want to have assigned, which is "food". I used vlookup function with approximate match, but it returns me incorrect results. For some reason the order of words in list seem to affect the results, and even though there is partial match(exact in one word of the string) the vlookup ignores it and returns something else. For example I have "parking at hotel xxx" and in table I have "parking"-"travel expenses" pair, the vlookup returns "food" label.   Can you help me solve this problem? (is there different approach that you would suggest?)


how to properly start and kill a form thread

How to properly start a new form (which only shows logo.jpg) as a new thread and kill in a different (no time limit) moment? I have a working solution like below, but I guess aborting is not the best option - sometimes form stays after closing the main program, until mouse moves over. Please advise how to make it better ...  //field declarations:         frmLogo frmStart = new frmLogo();         private Thread startLogoThread;  public main()         {             this.startLogoThread = new Thread(new ThreadStart(this.frmLogoStart));             this.startLogoThread.Start();             InitializeComponent();         }          private void frmLogoStart()         {             System.Windows.Forms.Application.Run(frmStart);         }   private void mainForm_Load(object sender, EventArgs e)         {             // loading of SQL               // this is a point where I want to kill the logo thread             this.startLogoThread.Abort();             this.BringToFront();         }


If $U$ is a neighbourhood of $e$ (identity) in a topological group,show there is a neighbourhood $V$ of $e$ for which $VV^{-1} \subseteq U$.   It's exercise from Basic topology,Armstrong,Promblem 18 of Chapter 4,and my approach get a little problem,so can you help me???


Should the front page say "score" rather than "votes"?

This is just a minor detail, but the number we see on the front page is not really the number of votes. It's the score of the question.    For example, the number 161 here is the score, not the votes. There are  currently 195 votes on that , 17 of them downvotes. Not that it's a big deal or anything. Most users know how it works. But maybe some new users don't know, though? Changing it to score would perhaps be more correct and clear? I'm only mentioning it since it would seem like a rather simple change to make.


Is there a meta for careers? If so, sorry this question should be migrated.  I'd love to know what this truly means. top 10% out of... 4 million users? top 10% out of the 100 that have asked or answered a question with this tag?


Multi Dimensional Array vs Jagged Array Length method

Why does a [,] style array Length method vs a [][] jagged style array Length method differ in that in the jagged array the length method returns the size of the closest rank where as in the [,] style array the Length method returns the whole number of elements not only of the closest rank (hence the need to use the GetLength() method.)


Do I need a UK transit visa for flying to the Canary Islands?

I am planning to visit Tenerife, Canary Islands, Spain in October from Mumbai, India. I have already applied for a Spanish visa and am expecting to get it in two to three weeks.   I have booked a British Airways ticket. I will arrive at London Heathrow Airport, and my connection flight to Tenerife is from London Gatwick Airport. In-between there is a layover of seven hours. Therefore, will I need a transit visa for going to London Gatwick Airport from London Heathrow Airport?  If it is required, can I get it on arrival to London, or do I need to apply before starting the journey?  Further information:  I am an Indian citizen and I will have Spain Business visa for three weeks before starting the journey. This is my second visit to Spain.


"java.lang.NullPointerException" error in inserting data into mysql table

I have a error in inserting data into myaql table from java.error says "java.lang.NullPointerException" with prepareStatement.below is my code.please help optimize me. package studentCon;  import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException;  import connection.connectionDB;  public class studentInsert {     public static void addproduct(String Last_name,String first_name,String email,String department,int salary) {         System.out.println(salary);         try{                              Connection con=connectionDB.getConnection();                              PreparedStatement stmt=con.prepareStatement("INSERT INTO `student`.`employees` (`last_name`, `first_name`, `email`, `department`, `salary`) VALUES (?, ?, ?,?,?)");               stmt.setString(1,Last_name);//1 specifies the first parameter in the query               stmt.setString(2,first_name);             stmt.setString(3, email);             stmt.setString(4, department);             stmt.setInt(5,salary);                            int i=stmt.executeUpdate();               System.out.println(i+" records inserted");                              con.close();                           }catch(Exception e){ System.out.println(e);}                                    }     public static void main(String[] args){         // TODO Auto-generated method stub                       addproduct("Htet","Mg","mghtet@gmail.com","IT",20000 );                   } }


I bought a used Windows computer which was reset to stock with the default Administrator user named "John Doe".  I have changed my "username" to what I want but the user's account folder still retains the name "John Doe".  I've researched this and found a number of registry changes (which I'm not comfortable doing).  I've read I can create another user, move all the contents to the new one, and delete the old account...but then will my applications continue looking for the old account's folder?  Please help.  I'm simply trying to change the name of the root user folder to my name in lieu of "John Doe".  Thanks!


Is there a special word/name/phrase for the money/income generated by student while he is in college?

Is there a special word/name/phrase for the money/income generated by a student while he is in college by working part time?


Is every integer the sum of distinct prime numbers?

Let $\Bbb{P}$ be the set of prime numbers and $Q=\Bbb{P}\cup\{1\}$. Is it true that every natural numbers ($\neq 0$) is the sum of distinct elements of $Q$? I tried from $1$ to $60$ and it seems true.


Sometimes not loaded chunks create holes in the world. Why is it that some chunks don't load while everything around them gets loaded? Yesterday i traversed such a hole flying, it still didn't load. Is there anything that can be done to avoid such things? It destroys immersion, apart from that chunk being unusable while not loaded.


I have to find the following sum, and I've solved up to a certain point but cannot proceed further. Any hints on how to proceed would be helpful.  $$\sum_{r=0}^{n}\frac{(-1)^r}{(r+1)^2}{n\choose r}$$   Consider the expansions of $(1-x)^{n}$ and $(1+x)^{n}$. $$\begin{align}\int_{0}^{x}(1-x)^{n}\mathrm dx&=\sum_{r=0}^{n}\frac{(-1)^{r}x^r}{r+1}{n\choose r}\\\frac{1-(1-x)^{n+1}}{n+1}&=\sum_{r=0}^{n}\frac{(-1)^{r}x^r}{r+1}{n\choose r}\tag1\end{align}$$ Similarly integrating $(1+x)^{n}$ from $0$ to $x$. $$\frac{(1+x)^{n+1}-1}{n+1}=\sum_{r=0}^{n}\frac{x^r}{r+1}{n\choose r}\tag2$$ Replacing $x\mapsto 1/x$ in $(2)$, the required summation is just the coefficient of $x^{0}$ in the product of $(1)$ and $(2)$, which simplifies to the following. $$\text{coeff. of }x^{n+1} \text{ in } \left[\underbrace{(1+x^{n+1}-x^{n+1})}_{=0}-(1-x^2)^{n+1}+\underbrace{x^{n+1}(1-x)^{n+1}}_{=1}\right]$$ Any hints on how to proceed further. Thanks.


I have a question about Androids onCreate method. I understand that the Activity is extended and that onCreate() is implemented as android developers guide states (Class Overview at ). But why do we use @Override? And also if i want to refer to that method what word should i use? Should i say that onCreate() is Overrided or that onCreate() is implemented ?    public class MainActivity extends Activity {      @Override      protected void onCreate(Bundle savedInstanceState) {             super.onCreate(savedInstanceState);             setContentView(R.layout.activity_main);      }


Do I need a Kuwait transit visa as an Indian national?

I am an Indian national and passport holder, traveling from New Delhi to Frankfurt (via Kuwait) and back with Kuwait Airways. I see no Terminal change for the onward and return journeys. I have no plans to leave the airport due to short layovers.  Do I need a Kuwait transit visa?


Dropbox install stuck at 99%, how do I fix it? (and any dpkg errors)

I tried to install Dropbox using , or with apt-get install nautilus-dropbox.  Dropbox loads until 99% and then hangs, causing the system to go to 100% cpu usage.  If I reboot or close the terminal, I sometimes get dpkg errors which prevent me from using apt-get or Software Center to perform any package management functions.  I would like to resolve all these and just get Dropbox working. How do I do that?        Note: This question is possibly answered in two parts:            tells you how to install Dropbox.     But if you  have dpkg errors, see  before you use answer 1 to install Dropbox.


I have a question about odds ratios vs. probabilities in terms of a contingency table (studying an exposure/disease). I know that once I have found an odds ratio, I can also find the probability by taking the odds ratio and dividing it by one plus the odds ratio.   However, I want to understand what exactly that probability represents ... is it a conditional probability? The probability of an individual having the disease given exposure?


Which is correct, In which or In what...?

I refer, for example, to, "In which foods does one find carageenan?" vs. "In what foods...?"  Thank you!


Seen this asked before but my example does not seem to work.  const CGFloat *toCol = CGColorGetComponents([[UIColor greenColor] CGColor]);   The array is empty from looking at it with GDB.  Any hints?


I recently upgraded from ubuntu 14.04 to 16.04 but I can't detect sound card, all I see in settings/sound - dummy output, nor the headphones jack is working , but both were working fine in 14.04.


Anyone know of a good program or way to list Programs/Softwares installed, wanting to upgrade from Ubuntu 18.04 to Ubuntu 20.04 but need a list of the things I've installed so I can reinstall them on 20.04?


Regression with only categorical variables

Is it possible to conduct a regression if all dependent and independent variables are categorical variables?


How to fit data that looks like a gaussian?


Is Linux Virtual Server old, or is it standing still?

Based on this question: , LVS may be the right solution for my problem.   But when I went to its homepage , I found that LVS has been updated since Nov, 2008. The world's moving fast, and I don't know if LVS was obsolete or not.  Is LVS standing still, or there're some better solutions to replace it?  Thank you so much.


When do you need 'nohup' if you're already forking using '&'?

First this question is related but definitely not the same as this very nice question:    I want to understand something: when I do '&', I'm forking right?  Is it ever useful to do "nohup ... &" or is simply & sufficient?  Could someone show a case where you'd be using '&' and still would want to use 'nohup'?


What happens in Android: Netrunner when your deck runs out and you need to draw a card?

Do you lose as in magic? Do you reshuffle your discard pile?


Is the theory of dual numbers strong enough to develop real analysis, and does it resemble Newton's historical method for doing calculus?

I've been interested in non-standard analysis recently. I was reading up on it and noticed the following interesting comment on the , right after giving an example of a nonstandard differentiation:     The use of the standard part in the definition of the derivative is a rigorous alternative to the traditional practice of neglecting the square of an infinitesimal quantity... the typical method from Newton through the 19th century would have been simply to discard the $dx^2$ term.   I've never heard anything like this before, and really find it fascinating that Newton's method was to define the relation $dx^2 = 0$. If we actually formalize the above structure by taking $\mathbb{R}$ and adjoining an element $dx^2 = 0$ to it, we get the "dual numbers," isomorphic to the quotient ring $\mathbb{R}[x]/x^2$. I'd seen some things about how this algebra plays into automated differentiation algorithms for some computer software systems, but I've never heard anything about Newton directly working in this algebra. So I have a few questions:   Does anyone have more historical information on the way that Newton performed differentiation, and its relation to the dual numbers? Does anyone know how effectively real analysis can be formalized with the dual numbers? Does the resulting system play nice enough to develop all of the important modern results? If we start with $\mathbb{C}[x]/x^2$ instead, can we likewise develop complex analysis?   Since this idea is so simple, I'm very curious how powerful it is. I'm also curious if it has any major drawbacks too, since I'm not sure why anyone would mess with the foundational baggage involved in defining the hyperreals if this simple 2-dimensional real algebra could really do the trick.


how to find dynamic dom loaded time from server response in chrome?

I tried to load dynamic elements based upon ajax server response, then I need measure how long will take to render dynamic element after server response, If any tools is there like chrome extension or javascript code, please tell me, thanks advance


Most of the interface devices have various flag bits (that can also raise interrupts if that functionality is provided) used to check the status of the device/operation.  Usually they are cleared by writing a '1' to said bit.  Just some questions regarding this ...   Why are they cleared by writing a 1? I mean if the flag is already set to 1 by the device, won't it make sense to clear it by writing a 0 to it? Lets say i have a 8 bit status register with bits distributed as (picked from datasheet of NRF24L01+)     If bit 5 (TX_DS) gets set (ie. turns to 1) and I want to clear it by writing 1 to it, what value do I write to the register.


How far do crimson/corruption biomes spread?

I've completely rebuilt my base in a Forest Biome from the ground up since the release of the 1.2 update. And when my base was the same as in my old world, and most of the npc's were there (except the hardmode npc's), I thought it was time to activate hardmode.  The first thing I noticed is that I couldn't place any of the new npc's in my house because it was corrupt. Apperently this was because the crimson was under my house going from top to down. So I needed to move my house to another Forest Biome. But the Crimson is spreading really fast!  But how long will it take before the Crimson will have corrupted every green bit of my world? Or should I just place a block of stone to stop it? Is there even a way to stop it? I could always build it in the ice biome. But I find the constant visible falling snow annyoing. I already tried the obvious: purification powder. But the Crimson is just keep coming back!  What would you do?  Edit  Once I've made a new world, this time in a floating island (so no form of biomes will reach it), and was transfering some of my items (including NPC room furniture), I saw what was wrong all this time: I forgot to place a few walls! I don't know if this was causing the This house is invalid error. But at least this was a possible reason.  Thanks for all the suggestions and sorry for wasting your time. Have an Ale on me!


finite index of a group of rational number

Question:   Show that $\mathbb{Q}$ the group of rational numbers under addition has no proper subgroup of finite index.   I returned to an old exercise but couldn't go quite complete it, after looking at it for an hour.   Assume that $\mathbb{Q}$ has a proper subgroup H of finite index. Then, let there be n distinct left coset of a proper subgroup H in G. The left coset of H in G is of the form q + H, $\forall q \in \mathbb{Q}$  By a property of cosets, each elements q in $\mathbb{Q}$ is contained in one of $q_{i}$+H.  Here is where I tried to sought aid from the history but could not understand the argument behind nq $\in H$. How do we justify this fact?    Any help is appreciated. Thank in advance.


I know I can use TeXShop or any other word processing program to spell check my document, but I was wondering, if there are any spell checking scripts, which run in a shell/Terminal.  I saw that there is a program called aspell, but it hasn't been updated for a long time. Are there any good programs/scrips out there?


I just installed ubuntu 13.10 on my dell vostro 1000 laptop. It has the broadcom 4311 wireless.  It doesn't work, ubuntu software centre shows I have the bcmwl kernel source drivers and the Linux firmware drivers already on.  ( I noticed other questions have said the solution is to remove the former and install the latter.)  However I have no way of getting an Ethernet connection, is it not possible to do it from the USB install?  If not, how will I download the packages I need from a friends laptop tomorrow?


Data Backup from aws to other cloud storage for backups if aws account get hacked

We are thinking to make a backup of all our AWS data (RDS and S3) to some other cloud sources, because there is a possibility that a developer of company AWS account get hacked. The hacker could then can delete everything from AWS. So I have two question here:   Is my assumption correct regarding deletion of entire data by someone? What is the best way to curb this? Basically, I can only think of using some other service as data backup apart from AWS, if anyone has done something like this, it would be very nice to know how they achieved it.


Is there a consistent definition of free will?

See also:         The world is either deterministic of non-deterministic.   In the case of determinism, all of the actions are predetermined, so one cannot really choose one's actions. In the case of non-determinism, actions are also determined by some randomness and this randomness is a true randomness, not something that's depending on a hidden mechanism of any kind.  It is often argued that non-determinism allows for a free will. However, the randomness it contains, that would give a place for a free will, is a true randomness, so it isn't being chosen by anybody, it's just purely random.  From that perspective, it appears that "free will" is an ill-defined concept. Are there any better (more useful) definitions?


n number of cans on a circular track will traverse a car around it

The problem  The sides of a circular track contain a sequence of cans of gasoline. The total amount in the cans is sufficient to enable a certain car to make one complete circuit of the track, and it could all fit into the car's gas tank at one time. Use mathematical induction to prove that it is possible to find an initial location for placing the car so that it will be able to traverse the entire track by using the various amounts of gasoline in the cans that it encounters along the way.  My solution  Given any sequence of cans, we know that the sum of all the gasoline will traverse the car around the entire track. What is not known is the initial location of the car.  Basis step: The track has $1$ can, therefore the car will be able to traverse the track from some starting point.  $S(1) =$ some starting point; $S(1) = p_1$, where $p_1$ is the initial starting point.  Induction hypothesis: $S(k) = p_k$, such that $p_k$ is some starting point that, when traversing the track, if at any point on the track the car runs out of fuel, that point will not work. In order to find $p_k$, one will have to exhaust all possible finite points on the track in order to find the initial point that will traverse the car around the track where some nth tank will have enough fuel to get to the next tank.  Thus, $S(k + 1) = p_{k + 1}$, where $p_{k + 1}$ is some point. If at any point in traversing the track the car runs out of fuel, the chosen $p_{k + 1}$ will not work. A car will run out of fuel if it cannot travel from some $n$-th fuel tank to the $(n + 1)$-th fuel tank.  Done.  Is this right?


How can I specify the default save directory for gnome-screenshot?

Are there any sort of configuration options for specifying the default save location for gnome-screenshot, or is this hard-coded into the source code? It used to be ~/Desktop, which seems to have changed to ~/Pictures (in 12.04). The only possible solution I've seen is about  (as it includes time stamp information now instead of simply 'Screenshot#'), but that solution doesn't really seem ideal to me. Also,  post suggested that the last save location is remembered the next time you take a screenshot, but in my experience, this doesn't seem to be the case. And in any case, following on from that, that entry in gconf-editor doesn't even seem to accurately reflect the last location, so more than likely an entry related to an older version of gnome-screenshot. Table of contents:


I have a Latitude E7250.  I want to add a second SSD.  Has anyone attempted or had any success with this? There is an m.2 connector that is labeled WWAN HCA.  Any help would be greatly appreciated.


My instructor proves a statement during a lecture: if a set $E$ is open in a metric space $X$, then $E^c$ is closed.  In his proof, he writes: Suppose $E$ is open. We want to show that $E^c$ is closed (contains all its limit points). Let $x$ be a limit point of $E^c$. Then......  My question is how to know there exists a limit point in $E^c$? Thanks!


What is this?   17.537s dev-sda2.device   systemd-analyze blame       18.346s dev-sda2.device      17.472s systemd-journal-flush.service      16.439s configure-printer@usb-002-004.service      12.998s dev-loop3.device      12.974s dev-loop4.device      12.941s dev-loop5.device      12.934s dev-loop1.device      12.910s dev-loop0.device      12.882s dev-loop2.device      11.276s systemd-udevd.service       9.327s configure-printer@usb-002-005.service       6.983s NetworkManager-wait-online.service       6.396s apt-daily-upgrade.service       3.819s udisks2.service       3.710s NetworkManager.service       3.630s snapd.service       3.331s apt-daily.service       3.106s accounts-daemon.service       3.046s ModemManager.service       2.951s plymouth-start.service       2.678s grub-common.service       2.364s snap-ubuntu\x2dmate\x2dwelcome-169.mount       2.342s snap-core-4917.mount      mount: /: /dev/sda2 already mounted on /.   I would like to delay it until after my computer has booted up to speed up my boot time.


A question about expectation calculation

Let $X$ and $Y$ be two random variables. I notice a book states $E(X + Y) = E(X) + E(Y)$ without proof. I think, for the simplest case, the proof can be the following:- $E(X + Y) = \sum p_i (X + Y) = \sum (p_i X + p_iY) = \sum (p_i X) + \sum (p_i Y) = E(X) + E(Y)$. But what happens if the corresponding probabilities for Y are $q_i$ and $p_i \ne q_i$ in general?


how do i remove the restrictions passcode on my iphone 5c

i just bought a used iPhone 5c from someone and it has a restrictions passcode on it from the owner before me and I would like to take it off but dont know the passcode is  there anyway I could take It off .?


Adding URLs to firefox visited history links

Is there any way to add links to firefox history like bookmarks? I want Firefox remember those as visited links without opening them


I have an object, called Object_Assoc, this object is supposed to store bitmap images into its member variable o_memory. I call the helper function setO_memory, with the bitmap image to set as the parameter. However this is crashing my application. I create the bitmap image, by using the android camera API.  public void takePicture(View view) {     Intent imageTakeIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);      if (imageTakeIntent.resolveActivity(getPackageManager()) != null) {         startActivityForResult(imageTakeIntent, REQUEST_IMAGE_CAPTURE);     }  }  @Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {      if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {         Bundle extras = data.getExtras();         Bitmap imageBitmap = (Bitmap) extras.get("data");          // Need to set image of Object here to object.          newObj.setO_memory(imageBitmap);          setContentView(R.layout.view_existing_obj_pop_up);          final ImageView mImageView = findViewById(R.id.clickedObjImage);          // Write object to Palace File         listOfMyPalaces.writePalacesFile(MyPalaceDetail.this);          // Set image         mImageView.setImageBitmap(imageBitmap);          // Sets the current view back to the palace detail(Unsuccessful though)         setContentView(R.layout.activity_my_palace_detail);          // Resets the Dialog to include the image that has been taken with the camera         init();         initDraggingListening();     } }   java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=101, result=-1, data=Intent { act=inline-data (has extras) }} to activity {memorypalace.palace14/memorypalace.palace14.MyPalaceDetail}: java.lang.NullPointerException: Attempt to invoke virtual method 'void memorypalace.palace14.classes.Object_assoc.setO_memory(android.graphics.Bitmap)' on a null object reference


I'm looking for a term for audio in form of the word visual.  Visual is defined as      of or relating to the sense of sight   What could you call the sense of hearing? Also, what do you call this form of a word? (i.e verb, noun...)  It should fit the x in the following sentence:     Is it possible to fall in love with someone without visual or x contact?   I'm not a native English speaker, so I couldn't find the terms for searching this.


If $f$ is continuous on all of $\mathbb{C}$ and analytic on $\mathbb{C}$ minus $ [-1,1]$ then $f$ is entire

I'm not sure what to do here. It seems like Morera's Theorem, but even then I'm not sure how to choose the triangular path.


postfix sending mails to unknown addresses

I was checking my munin tables and saw a huge list of deferred mails in postfix and looking into /var/log/mail.log gave me an idea: I am sending mails to unknown mail addresses:  Dec 23 08:21:32 h2065299 postfix/pickup[10816]: 63F5811A0384: uid=33 from=<www-data> Dec 23 08:21:32 h2065299 postfix/cleanup[20915]: 63F5811A0384: message-id=<301b8e057416d03df3ac7c11f1aa5bda@www.my-server.com> Dec 23 08:21:32 h2065299 postfix/qmgr[7878]: 63F5811A0384: from=<www-data@my-server.com>, size=2254, nrcpt=1 (queue active) Dec 23 08:21:32 h2065299 postfix/smtp[20917]: 63F5811A0384: to=<underlyingbzvn+zprtra@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.69.26]:25, $ Dec 23 08:21:32 h2065299 postfix/qmgr[7878]: 63F5811A0384: removed   this is not really different to a forced "good" email   Dec 23 09:41:51 h2065299 postfix/pickup[28905]: EE51611A0393: uid=33 from=<www-data> Dec 23 09:41:51 h2065299 postfix/cleanup[30516]: EE51611A0393: message-id=<2736115f98e8293f5e8b657b22e66b4d@www.my-server.com> Dec 23 09:41:52 h2065299 postfix/qmgr[28906]: EE51611A0393: from=<www-data@my-server.com>, size=977, nrcpt=1 (queue active) Dec 23 09:42:22 h2065299 postfix/smtp[30518]: connect to gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1b]:25: Connection timed out Dec 23 09:42:22 h2065299 postfix/smtp[30518]: EE51611A0393: to=<my-name@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.69.27]:25, delay=$ Dec 23 09:42:22 h2065299 postfix/qmgr[28906]: EE51611A0393: removed   We are running three wordpresses and some scipt folder on the server. The WPs are up-to-data and I think we have correct file permissions on them.  What can cause www-data to send mails to unknown users?!


Was one of Hilbert questions regarding physics to make an axiomatic foundation for physics?  Regardless of Godels work could some Physics principles that are 'basic' and 'presently verifiable' be treated as axioms in a logic system along with Math axioms and Set theory or maybe with Category theory as a basis. If 'axiomatized' one could prove a physics theory with a type of Physics 'proving' algorithm. Like Leibnitz's dream of a 'calculating machine' that could calculate any question's answer.


Regular (non-moderator) users should be able to override deletions by Community user

There is a question on  that got deleted by the Community user. This question isn't terrible (we have worse one's there), and I'm not complaining about this question in particular.  I wanted to vote to undelete it. However, it says "A moderator has deleted this post and it cannot be undeleted". This "moderator" is Community!  I understand if a "real" live human moderator (no offense to all non-humans out here) deleted this question that we can't override it. But this is a Robot! It sees that it got a downvote, no answer and little activity for a while and just deletes it.  Can we have "Community user" have rights to delete, but have those "deletions" subject to normal-person override?


How much energy does a photon need to form a black hole?

I was wondering if it is possible for a single photon to form a black hole if it has a small enough wavelength.If so, what would this wavelength be? I came across this question because I am reading about loop quantum gravity, and have heard that it is 'untestable'. I know that the loops making up spacetime in loop quantum gravity are thought to have a size in the order of $10^{-35}$m, and I was wondering whether making a photon with a wavelength small enough to investigate this would form a black hole.  I am aware of the two posts here, but neither seem to really answer my question because they refer to several photons:  and .  Thank you.


Percentage of primes among the natural numbers

How high is the percentage of primes in $\mathbb{N}$?  ($\mathbb{N} := \lbrace { 1, 2, 3, \ldots \rbrace }$ ; a prime is only divisible by itself and 1 in $\mathbb{N}$)  The percentage has to be lower than 50% as all even numbers (except for 2) aren't primes. So the percentage has to be lower than $1 - (\frac{1}{2} + (\frac{1}{3} - \frac{1}{6})) = 1 - (\frac{1}{2} + \frac{1}{6}) = 1 - (\frac{1}{2} + \frac{1}{2 \cdot 3}) = \frac{1}{3}$  I guess it will be something like that:  $$\frac{\text{primes in } \mathbb{N}}{\text{numbers in } \mathbb{N}} = 1 - \sum_{i=\text{first Prime}}^\text{primes} \frac{1}{\prod_{j=\text{first prime}}^{i\text{-th prime}} j}$$  But calculating this (exact) value goes definitely beyond my math skills. Can somebody help me?


Override "Onclick" event of Custom action button of Ribbon to an HTML button on a sitepage

I have created a workflow that starts manually on a custom action button. But now how do I get this implemented into an HTML button that is placed on a Sitepage.   Inshort, need to override the onclick event of custom action button from ribbon to an HTML button on a sitepage.   Is it possible?


The  says:  Regarding: $*     When the expansion occurs within double quotes, it expands to a single word with the value of each parameter separated by the first character of the IFS special variable. That is, "$*"is equivalent to "$1c$2c...", where c is the first character of the value of the IFS variable.   Regarding: $@     When the expansion occurs within double quotes, each parameter expands to a separate word. That is, "$@" is equivalent to "$1" "$2" ....    Provided the first character of the value of the IFS variable is in fact a single space, I can't seem to come up with an example where these two special parameters would produce different behavior. Can anyone provide me with an example (again, without changing IFS) where they would produce different behavior?  My own test, which still baffles me a bit, is as follows:  #!/usr/bin/env bash # File: test.sh # set foo and bar in the global environment to $@ and $*  test_expansion () {   foo="$@"   bar="$*" }   Now testing:  . test.sh test_expansion a b c d # foo is $@ # bar is $*  for e in "$foo"; do   echo "$e" done # a b c d  for e in "$bar"; do   echo "$e" done # a b c d


Displacement and mass of water in a column

I attempted to modify a classic experiment to demonstrate Archimedes principle to my 5th graders and I created an error I can’t explain.   We started with a graduated cylinder containing  20 mL of water. We added 10 pennies to the cylinder forcing a rise of about 5 mL to the column, or a total of 25 mL We then placed the 10 pennies into one pan of a balance We the used a syringe to place 5 mL of water on the other side of the balance  At this point I was ready to scream Eureka and have them bask in the equivalence of the displaced water to the object(s) that caused the displacement.   Unfortunately, the two masses were no where near equal... no Eureka. The 5 mL of displaced water in the cylinder was not equal to the mass of the 10 pennies I had the kids keep adding water until it balanced and it was about 25 mL to match the mass of 10 pennies  I have seen this video experiment before using an overflow vessel and watched countless online professors show the mass of the displaced water equal to the mass of the object.  Yet for some reason that I can’t explain I could t get this to work when you measure the displacement in a cylinder  Anyone have any ideas on what kind of obvious error in thinking and / or procedure am I making here?  Thanks


How to number equations manually? I'm making a presentation on a chapter, so would like my equations to be numbered as in the book, and not necessarily from the first equation in the chapter, for example, if the first equation in my document is numbered (5.23).  Thank you.


I know == compares references.  And equals compares content.  How come  "a1" == "a1"; returns true?  It's a different instance if string after all. no?


I am making an English Calculator and that is, for example, when the String is "1 plus 2", I split the words into 3 parts using split. The split elements are 1 & plus & 2, and the last job is just to add the numbers. It worked well when I used Switch, but I tried to use For method for practice and it prints out 0.0 for "1 plus 2" sentence... I think there is a problem in arraylist but have no one to ask.. Can I please get an idea of how to fix it?  Also, I`d like to know, for example, saying that the String is, "4 divided by 2". The elements are four, but the question is, how can I split the two words, "divided by" at same time? Thanks!  class Calculator {      public static double calculate(String s) {          List<String> list = new ArrayList<>(Arrays.asList(s.split(" ")));         //System.out.println(list.size());         double value1, value2;         double result = 0.0;         String operator;         int i = 0;         for(i = 0; i < list.size(); i++)         {             if(list.size() == 3)             {                 operator = list.get(1);                 value1 = Double.parseDouble(list.get(0));                 value2 = Double.parseDouble(list.get(2));                  if(operator == "plus")                 {                     result = value1 + value2;                 } else if(operator == "minus")                 {                     result = value1 - value2;                 } else if(operator == "times")                 {                     result = value1 * value2;                 } else if(operator == "mod")                 {                     result = value1 % value2;                 }                            }            }         return result;     } }  class MyPractice {     public static void main(String[] args)     {         Calculator cal = new Calculator();         System.out.println(cal.calculate("1 plus 2"));     } }


Mixed effects models, why isn't the stdev of the intercepts equal to the estimate for the stdev for the random effects?

I created a dataset which has no error for the purposes of learning. I then ran the following code. Note that Wafer and Temp are fixed with Quarter as a random effect. library(lme4) data<-read.csv('WaferData.csv', header=TRUE, sep=",", strip.white=TRUE) colnames(data) = c("Wafer","Quarter","Temp","data")  ##required due to strange byte encoding error mixedModel = lmer (data ~ Wafer + Temp + (1|Quarter), data=data)  summary(mixedModel) ranef(mixedModel)$Quarter   I get these results for the mixed model. Note the standard deviation for the random effect (Quarter) is .3249.  Random effects:  Groups   Name        Variance  Std.Dev.   Quarter  (Intercept) 1.055e-01 3.249e-01  Residual             2.861e-14 1.691e-07 Number of obs: 32, groups:  Quarter, 4  Fixed effects:              Estimate Std. Error   t value (Intercept) 2.000e+01  1.641e-01 1.219e+02 WaferW2     1.000e+01  8.457e-08 1.182e+08 WaferW3     2.000e+01  8.457e-08 2.365e+08 WaferW4     3.000e+01  8.457e-08 3.547e+08 Temp        1.000e-01  2.990e-08 3.345e+06  With the following random effects intercepts.  (Intercept) Q1  -1.1536939 Q2  -0.3219838 Q3   0.3152949 Q4   1.1470049  The standard deviation of those four intercepts is .975 which is not even close to the standard deviation of the random effect. The mixed level model is data = bintercept + bWafer + bTemp + effectQuarter + epsilon. Where effectQuarter = N(0,γ). I would have expected the standard deviation estimate (.3249) and the standard deviation of the effects (.975) to both be estimates for the square root of γ. But clearly it does not. If anyone can shed light on this I would be most appreciative.


I'm new to digitization. I have the following map and I'm trying to digitize the purple features. Is there any way to automatically digitize all the purple lines on the map.