Checking a huge mathematical document with aspell

(This question was originally posted on , but the audience there recommended to move this post here.)  I want to check the spelling in a huge mathematical document written in LaTeX. This document consists of multiple chapters split up into various files. Of course, I could check the various files one by one using  aspell --lang=en_GB -t -c file1.tex aspell --lang=en_GB -t -c file2.tex aspell --lang=en_GB -t -c file3.tex   etc. This yields to the following annoying problems:   LaTeX-Code: Even though the -t option is in place, a lot of LaTeX commands are handelled poorly. For instance, aspell checks the labels in every occurence of \cref{MyLabel} and \eqref{MyLabel} and of course these labels are usually not orthographically correct. It also does not seem to be able to handle options very well. For instance in \nomenclature[NatNum]{$\mathbb{\N}$}{the natural numbers} it complains about the [NatNum]. Is there any way to tweak aspells abilities to detect LaTeX code? Mathematical Technical Terms: In the rest of the text body, a lot of mathematical terms are used. It is clear that some special terms are not known to aspell, but even very common words like "injective", "homomorphism", "adjoint" etc. are not recognized. Are there special dictionaries for this one could add? Multiple Files: A crude solution to the problems mentioned so far is to hit the ignore all option, whenever such a problem occurs. This works well until aspell hits the end of the file. When I run the next file, aspell has forgotten everything I told it to ignore before. I googled how to run aspell on multiple files. I came up with something like:  find . -name "*.tex" -exec aspell --lang=en --mode=tex check "{}" \;    This only solves the problem that one does not have to invoke aspell manually for every TeX-file, which is the least of my concerns. This command automatically invokes aspell for all files, but when I trained aspell to ignore some technical terms, it nevertheless forgets them when the next file is checked. Is there any way to improve this?  I have the general feeling that I am doing it the wrong way, since 99 % of all the hundreds of "errors" reported by aspell are actually correct mathematical LaTeX code. What to do?


Why is there only one type of imaginary number?

We've defined the square root of -1 as an imaginary number i (or j, if you're a physicist).   Is there any reason why we can't/haven't made other systems of imaginary numbers for other "impossible" operations, like log base 1 or dividing by zero?


Show that the sum of the series $\frac{1}{1!}+\frac{1+2}{2!}+\frac{1+2+3}{3!}+.....$ equal to $1+\frac{3e}{2}$.  I don't know how to find sum of this series, please tell me how to solve it?


Why cant I 'sudo apt-get install nfs-common'?

I am trying to install the NFS client:  sudo apt-get install nfs-common   For a reason I don't understand, I get this response:  Reading package lists... Done Building dependency tree Reading state information... Done Package nfs-common 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 'nfs-common' has no installation candidate   I am 98 % sure that I got that working on another machine. So, am I doing something wrong or what might cause this error?  Edit: What version of Ubuntu is this:  540 $ lsb_release -d Description:    Ubuntu 15.10   Updating  541 $ sudo apt-get update ... W: Failed to fetch http://ftp.uni-stuttgart.de/ubuntu/dists/wily-backports/main/binary-amd64/Packages  404  Not Found [IP: 129.69.8.112 80] ... ... etc etc ...


How to re-download unauthenticated packages

I live in Egypt. we have a country specific server here. I used to download everything from there. but when I got to download encryptfs, synaptic said the package could not be authenticated, so I changed the apt mirror to default ubuntu server and the packages could now be authenticated.  Due to the fact that we live in a country with mass surveillance and no laws to protect privacy or human rights, I have been thinking that maybe backdoors were placed in the unauthenticated package. so I have decided to re-download all the unsigned packages from the main ubuntu server, however this doesn't seem to be addressed anywhere.  So, in this regard, how to re-install packages?


Is there anyway of syncing my Google/Gmail tasks with iOS reminders?


Is it safe to eat sushi with different toppings (cooked and raw) after 24h?

I have been reading posts in the internet, but it just made me more confused. My conclysions after reading several posts of different websites:   Some say that sushi (the rice) with sashimi (raw fish) should be safe, but the cooked food shouldn't (this fact shocked me a little bit as I would expect the opposite). Others say completely the opposite, as I was expecting. Even like 16h after storing it in the fridge, if it has sashimi (raw fish) it should be thrown (depending on the freshness of the fish. If you ordered it, its impossible to know).    Context:   I went at a friend's place yesterday at about 22:00. We chilled (using this verb in the cooking exchange just sounds weird, sorry) for a few hours and then I went home, not without taking the enormous sushi tray that was leftovers from a few hours before I went there.  Some info:   The sushi tray was on the table, not in the fridge. So my friends probably ate and then went to the living room without putting it inside the fridge. Let's say 5h passed. When I got home, I immediately stored it inside the fridge.  Some sushi has raw fish (sashimi), some has cooked stuff (like japanese omelette) and I think there are some vegetarian or vegan ones.    Picture of the tray:


Let $A,B\in M_n(\mathbb{R})$ be real (or complex) square matrices. Generally speaking, $${\rm trace}(AB)\neq {\rm trace}(A){\rm trace}(B)$$ There are a lot of 'easy' examples where this doesn't hold. What is not obvious to me is whether there is any chance of it working for something other than $A=B=0$, the zero matrix. Even if you work out the details for $n=2$ the algebraic condition is not very insightful. Question: What are sufficient or necessary conditions on $A$ and $B$ under which the trace is multiplicative, i.e., ${\rm trace}(AB)= {\rm trace}(A){\rm trace}(B)$? Edit:  from 2014 asked whether the trace is multiplicative or not. I am well aware that it is not, but a distinct question is whether there are conditions on $A$ and $B$ under which the trace becomes multiplicative.


Jerry is one of those students who (miss / misses) the homework   assignment as he leaves early.   In the above sentence which is the correct choice of verb and what's the reason for the choice? If Jerry is the subject then it should be 'misses'. But I have seen a rule which says that when using pronouns like 'who' the verb depends on the noun that appears immediately before the verb.


Uninstall lubuntu and Install Windows 10

I wanted to install lubuntu on my Windows 10 as dual boot, but unfortunately my windows 10 got replaced by lubuntu. Now I can't install windows 10 using USB or DVD as when I try, it directly takes me to lubuntu screen. I formatted using live lubuntu (gparted) but now it's giving me an grub error (unknown file format) Tried every possible way, but no success. Any advice??


Short story from the 60s where champions fight interstellar wars

A short story, probably from the 60s, where rather than go through the mess of fighting an interstellar war, champions fought in an arena. I think these battles between champions happened regularly. I know this plot is almost a cliche, but what made it memorable to me was at the end the earth guy wins and he comes home disillusioned and says he could do anything he wants and no one would care, so he goes into a house and murders a young girl.


splitting of screen areas and retrieving the active area with python

I try to split the VIEW_3D  area of my screen (2/3 - 1/3), and to display in the 1/3  a file with the TEXT_EDITOR.  The problems are:   that the activate area seems not follow the area's iteration the width of the new area created seems not to have been update. (0 is returned)   here is the code:  bpy.context.area.type = 'VIEW_3D' orig_width = bpy.context.area.width  print("originale width of View 3D is : " + str(orig_width)) bpy.ops.screen.area_split(direction='VERTICAL', factor=0.3) final_width = round(bpy.context.area.width * 0.3, 0) print("Final width of View 3D is : " + str(final_width))     i = 0  for ecran in bpy.context.screen.areas:     print(ecran.type)     if ecran.type == 'VIEW_3D':         print("Space.active = " + str(ecran.spaces.active))         current_width = bpy.context.area.width         print(str(current_width) + " - current_width")         print("i = " + str(i) + " - " + bpy.context.screen.areas[i].type + "Width : " + str(bpy.context.screen.areas[i].width))         if current_width == final_width:             print(ecran.spaces[i].type)             bpy.types.spaces[i] == 'TEXT_EDITOR' i = i + 1    The script is executing from an addon in the context of 3d_view, called from the spacebar menu. It splits correctly but the Text_Editor is not displayed.


Prove that the interior of the boundary of an open or closed set is empty.

Let $X$ be a topological space, $A\subset X$ and $B=Fr(A)$.   I have two questions.    How do you prove that if $A$ is open or closed, then $B^\circ=\emptyset$? Why can this not be proven for a set that is both open and closed?


Why does the refractive index depend on wavelength?

Why do different wavelength get impeded more or less when in different materials? Moving with the same speed, but a longer physical distance would imply that the fields oscillate less times in the material, but I don't know why a difference in the number of oscillations would impede the wave- I don't even know why things slow down in general. Why some electromagnetic wave would slow down just because it's entering other electromagnetic fields... It would seem to me that the only factor would be time taken to physically move some electron or something in the direction of the fields... But that seems to simple of an explanation to me.


F12 does not work correctly. When I press the button, Blender shows me the last render (maybe older) result every time. I removed and add again the camera and there is no another camera. I rebooted the computer, downgraded to 2.82 from 2.9 but I cannot view any new result when I press F12. How can I fix that? If u necessary I can upload .blend file anywhere.


I was thinking too complicated the slicing in the  I want to include (a,b), not [a,b] like this don_crissti's command:  sed '/begin{document}/,/end{document}/!d;/end{document}/q' data.tex   So I do not want to include \begin{document} and \end{document} in the output.  How can you having an open interval in the output?


Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.facebook.Profile.getFirstName()'

I am trying to fetch some data on my android validation using Facebook API. I am able to login into my facebook account. This is the permission I have set to fetch data from Facebook account  loginButton.setReadPermissions(Arrays.asList( "public_profile", "email", "user_birthday", "user_friends"));   using the above permissions I am trying to fetch profile name and other data I am getting a null pointer exception with the below code snippet  public void getFacebookData(AccessToken accessToken, Profile profile) {         System.out.println("---------------------");         System.out.println("--Facebook Login Successful!");         System.out.println("--Logged in user Details : ");         System.out.println("---------------------");         System.out.println("--User ID : " + accessToken.getUserId());         System.out.println("--Authentication Token : " + accessToken.getToken());         System.out.println("---------------------");         System.out.println("--First Name : " + profile.getFirstName());         System.out.println("--Last Name : " + profile.getLastName());         System.out.println("--URL Perfil: " + profile.getLinkUri());         System.out.println("--URL Imagem: " + profile.getProfilePictureUri(500, 500));         System.out.println("---------------------");         System.out.println("--ID : " + profile.getId());         System.out.println("--Name : " + profile.getName());         System.out.println("---------------------");          TextView profile_name = (TextView)findViewById(R.id.profile);         profile_name.setText(profile.getName());   Please, what be wrong with the approach I am using.


Virtualbox not working after Ubuntu 17.10 upgrade

After upgrading from 17.04 to 17.10 my VirtualBox wont start:  $ VBoxManage --version WARNING: The vboxdrv kernel module is not loaded. Either there is no module          available for the current kernel (4.13.0-16-generic) or it failed to          load. Please recompile the kernel module and install it by             sudo /sbin/vboxconfig           You will not be able to start VMs until this problem is fixed. 5.1.18r114002     $ sudo /sbin/vboxconfig Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /lib/systemd/system/vboxdrv.service. Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /lib/systemd/system/vboxballoonctrl-service.service. Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /lib/systemd/system/vboxautostart-service.service. Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /lib/systemd/system/vboxweb-service.service. vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.  There were problems setting up VirtualBox.  To re-start the set-up process, run   /sbin/vboxconfig as root.   /var/log/vbox-install.log :  make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/4.10.0-19-generic/build -j8 modules make[1]: warning: -jN forced in submake: disabling jobserver mode. test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \ echo >&2;                           \ echo >&2 "  ERROR: Kernel configuration is invalid.";       \ echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \ echo >&2 ;                          \ /bin/false)   What would be my course of action? Thank you


In the derivation of Lagrange's equation the following identity is often used:  $$\frac{\partial \mathbf{\dot{r}}}{\partial \dot{q_j}}=\frac{\partial \mathbf{r}}{\partial q_j}$$  where $\mathbf{r}=\mathbf{r}(q_1,q_2,\dots,q_n,t)$ is the position vector of the particle and $q_j$ ($j=1,\dots,n$) are the generalized coordinates.  It is derived from the equation   $$ \mathbf{\dot{r}}=\sum_{j=1}^{n}\frac{\partial \mathbf{r}}{\partial q_j} \dot{q_j}+\frac{\partial \mathbf{r}}{\partial t}$$  by differentiating it with respect to $\dot{q_j}$.   In the process, it is claimed that $$\frac{\partial }{\partial \dot{q_j}}\left(\frac{\partial \mathbf{r}}{\partial t} \right )=0$$  because $\frac{\partial }{\partial \dot{q_j}}\left(\frac{\partial \mathbf{r}}{\partial t} \right )=\frac{\partial }{\partial t}\left(\frac{\partial \mathbf{r}}{\partial \dot{q_j}} \right )$ and $\mathbf{r}$ is independent of $\dot{q_j}$.   However I fail to understand why it's true. Let's take a simpler example: $r=r(q)$ where $q$ is some coordinate that can change with time. Suppose $r(q)=q^2$ then clearly   $$\frac{\partial }{\partial \dot{q}}\left(\frac{\partial r}{\partial t} \right ) = \frac{\partial }{\partial \dot{q}}\left(2q\dot{q} \right ) = 2q \neq 0 = \frac{\partial }{\partial t}\left(0 \right ) = \frac{\partial }{\partial t}\left(\frac{\partial r}{\partial \dot{q}} \right )$$  What am I missing?


When resistors are serially connected, the current is the same through the whole circuit. To my knowledge, the electric current is electrons traveling.   Also, the power of the generator equals the power lost...  Since current stays the same through all resistors, what exactly is being lost here? (when connected to a voltage source)  If the amount of electrons and their speed when entering the resistor is the same when they "get out" of a resistor, what generated heat? What was lost in the process of lighting a bulb? If no electrons were lost why is a battery not an infinite source of electricity?  What happened in the resistor that made it heat up?   Keep in mind all the information here are only true to my knowledge, which is flawed, if I am wrong, please correct me.


What is the theoretical upper limit, if any, to the quantity of information bits that can be encoded within a given volume of space?

By encoding I mean representing bits of information as some form of mass-energy that can be, at some time in the future, decoded back into the original information bits without loss.  This does not imply that the physical form is containable, just that it is predictable with respect to a given volume of spacetime. Let's assume that 1) the volume is one cubic meter, and 2) we're not constrained by current technology, only by currently understood physics. For example, would the limit be the maximum number of photons that could occupy a cubic meter at a given time?  Where, say, the presence or absence of a photon at a particular location within the volume at that time would represent the value of a bit?  If so, what is the bit count of that limit?


I am working on a process that sends mail through apex. I am facing the issue that I am not able to display the sender name. I am using mail.setSenderDisplayName('Salesforce team') but still it is not displaying this name. The sender in the mail is showing my username.  I'm using the following code:  Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();  mail.setTemplateID(templateId.Id);   mail.setTargetObjectId(usr.Id);  mail.setReplyTo('donotreply@GMF.com'); mail.setSenderDisplayName('Salesforce team'); mail.setSaveAsActivity(false);  allmsg.add(mail);


if one of the sets A and B is compact then d(A,B)>0.

Let $A$ and $B$ be two nonempty disjoint subsets of $\mathbb{R}^{n}$. Put $d(A,B)=inf\left \{ ||a-b||:a\in A, b\in B  \right \}$.  a) Show that if one of the sets $A$ and $B$ is compact then $d(A,B)>0$.  b) Let $n=2$, $A=\left \{ (x,1/x):x>0 \right \}$ and $B=\left \{ (x,0):x>0 \right \}$. Show that the sets $A$ and $B$ are closed in $\mathbb{R}^{2}$, $A\cap B=\emptyset$ but $d(A,B)=0$.  My thoughts: Let $A$ be compact then it is not only closed but also bounded. Assume $d(A,B)=0$, so $inf||a-b||=0$. So $a=b$ for some $a$ and $b$. (I think  $A$ and $B$ being closed is the reason of that, but I'm not sure how to show this.) but that contradicts the fact that the sets are disjoint.  for part b:$ d(A,B)=\sqrt{((x-x)^{2}+(1/x)^{2})}$, as $x$ increases distance decrases, since $lim_{x\rightarrow \infty}(1/x)^{2}=0$, $d(A,B)=0$. For showing their intersection is an empty set $1/x\neq 0$ if $x\in \mathbb{R}$. I need to show every convergent sequence converges to a point in the sets, for showing $A$ and $B$ are closed, but I couldn't find how to.


Programmatically download NED, Landcover, etc. data from USGS

What are my current options for downloading geodata (NED, landcover, etc.) from the USGS programmatically?


can I eat a cryovaced cured ham left in car for 24 hours?  put in car at midnight and taken out the following midnight - mid day temps around 80


Variation Of Saturation Current in Photoelectric Effect

In the textbook I refer to,and various places online, it is given that saturation current is independent of the frequency of light used and only depends on the intensity .  But, let intensity= I ,here,can we define I=nhf/A?  ( Since intensity is energy per unit area per unit time, where f is the frequency) here A is the area of cross section of the plate, and n is the number of photons incident per unit time.  For the sake of simplicity, let us assume that each photon emits an electron.  This means, photocurrent=i=ne. Putting n from the first equation, we get, i=IAe/hf. This expression certainly depends on frequency and intensity both. For reference, see this graph-    Even here , why is the saturation current the same for the 3 frequencies?


How to model an Aperture from a camera (and possibly animate it)

so i'm curious if i wanted to create an aperture model like in a camera. And then animate it to change apertures how would i do this. More specifically i want to know how to use the array modifier to make them act like a real aperture. thank you


How can a point-like particle "feel" gravity, if locally the curvature of spacetime is always flat?

I imagine a point-like particle can only experience the local properties of spacetime. But locally there is no curvature and no gravity, as it is often stated that     Locally, as expressed in the equivalence principle, spacetime is Minkowskian, and the laws of physics exhibit local Lorentz invariance. ()   But if this is the case how does a point-like particle know, which direction it should follow in a gravitational field?   Can this be a seen as a hint that point-like particles cannot be used as underlying concept for a field theory like general relativity?


Let's say I'm playing in a public game with someone and we hit it off. I want to officially become his friend, so that we can intentionally group later on. How do I do this?  I know how to find the list of recent players. I know how to find the list of people currently on my team. But in neither place does there seem to be a context option to become friends with that person.  I feel like I'm missing something obvious, but how do you invite someone you've played Overwatch with to become friends?


Echoing output to file while seeing it in console in the same time

So I echo output of my programs ran in terminal by command 2>&1 >> /path/toFile.txt  It creates few limitations that I want to overcome:   It "freezes" and gives no output in terminal - only way to see actual output is to open output file Opening output file is not giving live results. It gives results from time of opening that file     How to echo output to a file and be able to:  a) see live changes in that file (separate program would be needed I assume)  or  b) output to file and see that output in terminal in the same time


why is QVector implementation in header and cpp is empty

Mainly curious about coding style - why is it sometimes better to place implementation in header like for example QVector:    the cpp is totaly empty


How can I synchronise my Outlook Calendar with Google Calendar (preferably using a free/open source tool)?

How can I synchronise my desktop  calendar with my  (Outlook -> Google)?   I saw the question , but the solution that was suggested there is no longer available - .  There are tools that required a payment, like ,  and , but I am looking for a free / open source solution.   One can download Google sync, but when trying to use it there's an error:    For now, I use  to synchronise, but as a freeware it allows to synchronise manually only, not automatically, so I have to remember to synchronise after every change.  I checked , but I couldn't find any relative posts on how to synchronise Outlook -> Google using it.  Just to be clear: I'm not looking for software; I am looking for a solution. What can I do if sometimes software is a solution?


How do I add a non-deformed end cap to a tube?

I want to create some parts that I can reuse for models. I was trying to make a steam punkish exhaust pipe. I want to be able to make the pipe of any length, and as curvy as I like but I want to keep the end cap always undeformed. I approximated my results by hand placing the "crown" at the end of this bezier curve.  I tried to make an array modifier that included the crown as the end cap, but that results in the end cap deforming.


express in words without using the symbol N

Express  $$\forall\ n\in\mathbb N\ \exists\ m \in\mathbb N: \ n^4 = m^2$$  in words without using the symbol $\mathbb N$.


Capitalization of field when mentioning a degree?

Is this proper usage and capitalization?     University of Calgary graduate in Bachelor of Science, Chemical Engineering.    or     University of Calgary graduate in Bachelor of Science, chemical engineering.    Another one:     University of Calgary graduate in Bachelor of Science, Chemical Engineering with energy and environment specialization.   or     University of Calgary graduate in Bachelor of Science, Chemical Engineering with Energy and Environment Specialization.


In ZFC, the axiom of union is the statement that the union of any set exists. Suppose we omit this axiom, and instead add the axiom that binary unions exist. Can we still derive the full union axiom?


How can I unlock a password locked rar file without knowing the password?

I have .rar file that is password protected, but I accidentally have forgotten the password. The file extremely important to me.  How can I get my file back? In windows, there was many programs that could remove the password of such a file. Is there one for Ubuntu?


Need help wiring and design/layout questions

I am installing a 60 amp outdoor sub-panel 600+ feet away from the 200 amp main service panel.  Here is what I am doing based on my requirements:   Run a 2-2-2-4 Aluminum underground feeder to this 60 AMP panel and breaking this distance with two Quazite (Underground junction) boxes.     I have 24 light post, 12 on each side of the driveway, and 6 outlets, 3 on each side of the driveway. The Quazite boxes will help to run wires to each light and electrical outlets.  I will have 3 120V pumps (8 amps each), Gate opener, Lights and outlets hooked to this sub panel.   My questions:    Is the 2-2-2-4 Aluminum underground feeder good enough for the distance of 600 feet? Should I run one straight feeder or break it in the Quazite boxes?


How many web pages can the Panels module handle?  What's the performance impact?

I'm creating new site in Drupal 7, and I must use about 400 panel pages with Views.  I'm wondering how many panel pages I can use in my site without affecting performance? Can Drupal/Panels handle 400 panel pages?


there is the whole recovery applications and commands . I actually need to delete some sensitive data permanently so nobody can access it anymore , no matter what application they use or commands they carry on , any help ??


I was searching for methods on how to calculate the area of a polygon and stubled across this: . $$ \mathop{area} =  \left\lvert\frac{(x_1y_2 − y_1x_2) + (x_2y_3 − y_2x_3) + \cdots                   + (x_ny_1 − y_nx_1)}{2} \right\rvert $$ where $x_1,\ldots,x_n$ are the $x$-coordinates and $y_1,\ldots,y_n$ are the $y$-coordinates of the vertices. It does work and all, yet I do not fully understand why this works.  As far as I can tell you take the area of each triangle between two points. Basically you reapeat the formula of $\frac{1}{2} * h * w$ for each of the triangles and take the sum of them? Yet doesn't this leave a "square" in te center of the polygon that is not taken into account? (Apparently not since the correct answer is produced yet I cannot understand how).  If someone could explain this some more to me I would be grateful.


Extra blue line appearing in the top bar (Firefox only)

Whenever we click on the Inbox or the Achievements in the top bar, an extra blue line appears near by them. This is reproducible on Stack Overflow and Anime & Manga(as I use only those) but not on Meta Stack Overflow. Here is a snapshot of that.    I'm using Firefox 25.0.1 on Win7 Pro.  Edit: Just to be double sure, I restarted the FF and still I'm able to see it. Here is another snapshot, with the 2 distinct sites.


What is the fastest way to get a UK passport?

I'm in need of a replacement UK adult passport, as fast as possible.   What would be the fastest process be to get one? Online or physically going somewhere? (I'm unsure of the process as of yet, so the premise of that question could be wrong)  Note:    Money isn't a factor, nor' is traveling somewhere in the UK. My old passport is lost. (That too was an adult passport)


How to run the "Build Phase" in Xcode as root

ALL,  This post is spawned by   In my Xcode I added the new Build Phase to copy .dylib files to /usr/local/lib. And then I tried to rebuiold the application by doing "Command + B".  However, since the destination should be accessed thru the root account I received an error couldn't create directory /usr/local/lib: Permission denied.  This is correct as the Xcode is started by the regular user and not root. So now I am looking for a way to execute just this build phase as root.  In the question mentioned above I got a direction that OSX is a *nix and the process is the same. While I agree that OSX is a *nix, the process of building/installing are different. On *nix you issue make as a regular user, just as you do Command + B in Xcode. But then when it finishes building in *nix you issue a separate command sudo make install, which installs all the libraries and binaries in /usr/local/lib and /usr/local/bin. All IDE on *nix (such as Anjuta and KDevelop) has extra menu to it which when selected ask about the root password and perform the install as root  And so what I am looking for is for Xcode to ask me about the root password in order to execute this Build Phase I added to copy my dylib's, because I am not familiar with this IDE.  TIA!  [EDIT]  Igors-MacBook-Air:~ igorkorot$ ls -la /Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug/ total 17344 drwxr-xr-x  13 igorkorot  staff      416 Jun  9 18:35 . drwxr-xr-x@  4 igorkorot  staff      128 Nov 16  2018 .. drwxr-xr-x   3 igorkorot  staff       96 Jun 10 20:05 dbhandler.app -rwxr-xr-x   1 igorkorot  staff   129856 Jun  9 18:34 liblibdbloader.dylib -rwxr-xr-x   1 igorkorot  staff  1002940 Jun  9 18:35 liblibdbwindow.dylib -rwxr-xr-x   1 igorkorot  staff  1671068 Jun  9 18:35 liblibdialogs.dylib -rwxr-xr-x   1 igorkorot  staff   148244 Jun  9 18:34 liblibfieldswindow.dylib -rwxr-xr-x   1 igorkorot  staff   587976 Jun  9 18:33 liblibmysql.dylib -rwxr-xr-x   1 igorkorot  staff   799272 Jun  9 18:33 liblibodbc.dylib -rwxr-xr-x   1 igorkorot  staff   611680 Jun  9 18:33 liblibpostgres.dylib -rwxr-xr-x   1 igorkorot  staff   482852 Jun  9 18:33 liblibpropertypages.dylib -rwxr-xr-x   1 igorkorot  staff  1619172 Jun  9 18:34 liblibshapeframework.dylib -rwxr-xr-x   1 igorkorot  staff  1810304 Jun  9 18:33 liblibsqlite.dylib   And so I tried to add LD_LIBRARY_PATH as /Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug/, but trying to run it (dbhandler.app) from inside Xcode, the program still crashes. Changing the variable to be DYLD_LIBRARY_PATH doesn't make a difference.  I also thought that having the libraries (dylib's) in the same directory as application bundle is all there is to need to successfully start the application and keep the linker satisfied. Apparently I was wrong.  [/EDIT]  [EDIT2]  Please refer to the screenshot below.  [/EDIT2]  [EDIT3]  And this is how it looks like in Xcode:  [/EDIT3]


Where can I find a datasheet/info of/on this "music speakers" 35 segment LED display with 7 legs?

Bought some "music speaker" thingies, some with bluetooth and some without. They are cheap, for sure, about 3 or 4 euro's. With some capacitor tweaks, they seem to be very plausibel to use (why is the output on these cheap things always tiny and limited?).  On these devices they use a very tiny, nice and bright display, with 7 legs, charlieplexed I suppose (wiggle it to see any screen update), 35 segments. Cannot read the number on the used chip (it's from JL), very hard to recognize (even when using a microscope) and the display doesn't have any partnumber on it either, however, these seem to be identical except the face plate on these components.   The displays are very interesting, just 7 pins to do the display job, in just one package. I want to buy these things (cannot find it, doesn't know the name and cannot find a datasheet either).   Next thing I want to do is to interface with these devices by reading the display (with a MCU for example) so I am able to read the state of the device and what it is doing. This is a difficult task without any datasheet.   Does somebody know the name of this component, is there a datasheet available somewhere?  Photo gallery of the display:          Product picture:


Degree of freedom paradox for a rigid body

Suppose we consider a rigid body, which has $N$ particles. Then the number of degrees of freedom is $3N - (\mbox{# of constraints})$.  As the distance between any two points in a rigid body is fixed, we have $N\choose{2}$ constraints giving $$\mbox{d.o.f} = 3N - \frac{N(N-1)}{2}.$$ But as $N$ becomes large the second term being quadratic would dominate giving a negative number. How do we explain this negative degrees of freedom paradox?


I am not getting reply button for comments. I get only copytext, share and the user buttons. I have a 290 reputation

App Version: 1.0.93 Device Manufacturer: asus Device Model: Nexus 7   OS Version: 7.1.2 (4a5f30b4fd)


My project has a table with '+add' button and filtering. The add button opens a dialog to add item, and then to 'save' which closes it too Today I noticed the following flow:  Filter table on subject with value 'dummySubject'  Add new item with subject 'somethingelse'  save and close the new item ==> the new item is shown in the table   So the outcome is that an item that does not qualify the filtering appears in the table. When I asked around I got the following answer  We don't want the new item to 'disappear' on creation just because it does not qualify the filtering. So we display it If you filter again, it will disappear as it should  I can almost understand that logic, but still it sounds wrong. I would rather have like a toaster saying 'new item create' with a 'goto' link. My question is  is the current user experience considered a reasonable one? what is the best practice way to handle such scenario?      – Wireframes created with


Why can't you install operating system onto RAM

Why can't you install an operating system onto RAM?   I know RAM is temporary memory and this memory will be lost when the power is switched off so can't the computer like save the state of the operating system on the SSD/HDD and reload it back into RAM when the power is switched on?


32 bit operating system supporting 64 bit unsigned integer!! how?

I was working on a windows 7 32bit computer, I thought 32bit OS will not be able to allocate an 64bit unsigned number. but I tried any way... in a C++ program I wrote the following code..  #include <iostream> #include <climits> using namespace std;  int main() {     unsigned long long i = 0;      cout << i << endl;      return 0; }   though I was expecting an error the program compiled and ran successfully! But I don't understand how! can anyone please explain it to me... thanks in advance :)


In this code, I drew a red rectangle. I was wondering how to make this rectangle clickable. That way, I can make it turn blue when I click on it.   public partial class Form1 : Form {     public Form1()     {         InitializeComponent();         this.Cursor = new Cursor(Application.StartupPath + "\\Cursor1.cur");     }      public Rectangle rect = new Rectangle(333, 333, 95, 95);      private void Form1_Paint(object sender, PaintEventArgs e)     {         System.Drawing.SolidBrush fillRed = new System.Drawing.SolidBrush(Color.Red);         System.Drawing.SolidBrush fillBlue = new System.Drawing.SolidBrush(Color.Blue);         e.Graphics.FillRectangle(fillRed, rect);     }      private void rect_Click(object sender, EventArgs e)     {         System.Drawing.SolidBrush fillBlue = new System.Drawing.SolidBrush(Color.Blue);         e.Graphics.FillRectangle(fillBlue, rect);     } }


What is the difference between "was living" and "lived?"

I want to know the difference between these two sentences:     I was living in this town for 2 years.      I lived in this town for 2 years.


I have found a lot of question about Xorg not starting by default, but this is actually what I want.  How can I have Linux Mint (17 Quiana) not start GUI, just the shell (I believe that is supposed to be login shell)?


Null pointer exception populating a new array

I am trying to implement a vector of generic data type where the type is taken as input from the user such as :  package com.example.genericvector;  import java.util.Scanner;   public class GenericVector <generic_type>{      private int length;     private generic_type [] vector;      GenericVector(generic_type element){         this.vector[0] = element;     }       public void allocate_size(int length){      }     public void push_back(generic_type element){      }     public void display(generic_type [] vector){          for(generic_type element : vector)             System.out.print(element);          System.out.println();      }      public static void main(String[] args) {          Scanner scanner = new Scanner(System.in);          System.out.print("Enter the data type of vector : ");         String vector_type = scanner.next();          switch (vector_type){             case "integer":                 GenericVector <Integer> vector_int = new GenericVector <Integer>(new Integer(10));                 break;             case "double":                 GenericVector <Double> vector_double = new GenericVector <Double>(new Double(10.57));                 break;             default:                 System.out.print("Invalid data type");         }     } }   Upon running the above code I get the following as output:      Enter the data type of vector : integer Exception in thread "main" java.lang.NullPointerException     at com.example.genericvector.GenericVector.<init>(GenericVector.java:12)     at com.example.genericvector.GenericVector.main(GenericVector.java:40)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)  Process finished with exit code 1   I am pretty new to Java, so any help will be much appreciated.


Recently, LaTeX always shows  "Underfull \hbox (badness 10000) in paragraph at lines 106--107  Trial:     \documentclass{ctexart}    \usepackage{color}    \usepackage{amsmath}    \usepackage{amssymb}    \usepackage{graphicx}    \usepackage{epstopdf}    \hfuzz=\maxdimen    \tolerance=10000    \hbadness=10000    \begin{document}  $(A \pm  B)^{-1} \neq A^{-1} \pm B^{-1}$,$(A \pm  B)^* \neq A^* \pm B^*$~\ $|(A^*)^*|=|A|^{n^2-2 n+1}$~\ \end {document}   My question :How to revise it?  And I found the code that cotains the "~\\" and blank line  always shows the warning imformation "Underfull \hbox (badness 10000) in paragraph at lines"


On the difference between a modification of a stochastic process and two indistinguishable processes.

I am following Brownian motion and Stochastic calculus by Karatzas and Shreve  They give the following definitions with an example:    I do not understand the difference between definition 1.1 and 1.3 and consequently I do not understand why $P[Y_t = X_t ; \forall{t} \ge 0] = 0$ in the example.  Edit: I found  that kind of helps, basically saying "at each time $t$" treats $t$ as a countable set and saying "$\forall{0} \le t < \infty$" treats $t$ as an uncountable set? Actually this still does not make much sense to me, I think it has to do with the order of the propositions.


How can I import the configuration on a different site?

I have this error when I try to import the config of an another site:     The staged configuration cannot be imported, because it originates   from a different site than this site. You can only synchronize   configuration between cloned instances of this site.   I have 10 customers, and I need to sync my site configuration with 10 different websites. The site UUID is a problem for sharing a configuration with a different website. Is there a solution?


How do you make an arbitrary capital Greek letter behave like the \sum command?

My question is simple. I'm using a rarely used operation which requires a rarely used Greek symbol to represent it. My current way of writing it when written out in basic LaTex looks like   $$\Omega_{j=0}^\infty \phi_j$$   Which attaches the \{j = 0\} part to the lower right and the {\infty} to the upper right of the Greek symbol \Omega.   My trouble is simple. I want it to look like how it looks when we type  $$\sum_{j=0}^\infty \phi_j$$   Except with the capital Sigma replaced with a capital Omega.   That is, I want the {j=0} to appear directly below the \Omega and the {\infty} to appear directly above the \Omega. I also want the \Omega to appear as largely as the \Sigma appears in $$\sum$$.  Is this possible?  Disclaimer: I've never posted here before so I'm wary of the format of my question; I'm not sure if this matches the guidelines. I'm happy to edit if necessary.


how do i remove the first characters of a string [python]

thanks to answers on this site I now know that you can remove the last characters of a string by string[:-1] which was really helpfull, however I need to be able to remove the first aswell and as far as I understand this technique it is not possible. so are there other ways to remove parts of strings without replacing spesific letters?


Are both try to save the file and try saving the file grammatically correct? If so, is there any difference in meaning?


How object slicing can result in memory corruption?

The C++ expert & D language creator  says that:     The slicing problem is serious because it can result in memory   corruption, and it is very difficult to guarantee a program does not   suffer from it. To design it out of the language, classes that support   inheritance should be accessible by reference only (not by value). The   D programming language has this property.   It would be better if someone explain it by giving an C++ example where object slicing problem causes memory corruption? And how this problem is solved by D language?


Does there exists an entire function such that for each $|z|>C$ for some constant $C$, $|f(z)|=|z|+1$?  Can I assume that since $f$ has a pole in infinity, $Imf$ or $Ref$ must have a pole at infinity too? If so, I can use this fact to define an exponent function of $Imf$ or $Ref$ (the one that goes to infinity) or their minus, and show that function is a bounded entire function, and therefore constant. Which gives a contradiction to the conditions about $f$.


Why the relation $H=B/\mu_0$ makes sense?

Some books define $H$ (the magnetic field intensity) by the relation given above. But I am having trouble conceptually understanding what this means. Is it the same thing as $B$ or something different? Can someone please elaborate and give some reasoning for the above relation?


How to prove if an array contains a string?

What the following code does is take the selected genre genre and check if it contains one of the data which are all arrays.  Example:  genre = "comedy"; data = ["action", "comedy"]   I just want to check if data contains "comedy":  $( "header section" ).selectable({     selected: function() {         var genre = $(".ui-selected").data("genre");         console.log(genre);         $("body > section div").each(function() {             var data = $(this + ":contains('" + genre + "')").data("genre");             if (data != genre) {                 $(this).css("display", "none");                } else {                 $(this).css("display", "block");             }     });     }  });   I tried to do it with the Selector "contains" but it doesn't work with this I think.


What kind of information does light carry so that brain can "see" shapes and distances of objects?

I know that we actually see with our brain in a way that eyes only absorb the incident light upon them and they transform some sort of information to the brain and the actual "seeing" is done by the brain.  However, this means that the incident light has to have some "specific properties" such that the transmitted information from eyes to the brain will be different for light coming from different objects.  What are those "specific properties" that light have?   For example, as far as eyes are concerned, the incident light is the same whether was reflected from an object from 5m away or 6m away, or it was a round or a not-so-round object. But there has to be some difference between the light originating from a 5m object and the light originating from a 6m object; otherwise, how could we (our brain) differentiate objects with different depth; we would only see a 2D plane.


Todonotes problem: No line connecting notes to text

When using the todonotes package, all notes are missing correct lines. That is, instead of having a line connecting the note and the text, the line connects to the note itself (with default color you cannot see this, since both the line and the background of the note has the same color; resulting in no line).  See code below and the result it produces.  What can the problem be?    \documentclass[11pt,reqno]{article} \usepackage{todonotes} \author{name}  \begin{document} \title{Title} \maketitle  \section{Introduction} Bla bla bla \todo{where is the line?} Bla blah  More Blah, \todo{and now?} blah   \end{document}


What is the etiquette for thesis acknowledgements that thank God?

I saw that some theses acknowledgements thanks God, so are there any rules or suggestions about that? Is it ok to do it for believers or just don't mention your religious affiliation in a scientific work?


I read about how is an input message prepared to be hashed by MD4,MD5 or SHA-1:     Step1 Append padding bits      The input message is "padded" (extended) so that its length (in bits)   equals to 448 mod 512. Padding is always performed, even if the length   of the message is already 448 mod 512. Padding is performed as   follows: a single "1" bit is appended to the message, and then "0"   bits are appended so that the length in bits of the padded message   becomes congruent to 448 mod 512. At least one bit and at most 512   bits are appended.       Step2. Append length      A 64-bit representation of the length of the message is appended to   the result of step1. If the length of the message is greater than   2^64, only the low-order 64 bits will be used.  The resulting message   (after padding with bits and with b) has a length that is an exact   multiple of 512 bits. The input message will have a length that is an   exact multiple of 16 (32-bit) words.       ... algorithms steps   I read that hose 2 steps are always the same for input messages for MD4, MD4 and SHA-1. How about  SHA-224 / SHA-256 / SHA-384 / SHA-512? How do they 'prepare' input to compute a hash? The same way maybe?


java.lang.NullPointerException while running a GUI-application

I'm very helpless at the moment. I have a error while running this program:  import java.awt.*; import javax.swing.*;  public class Puzzle extends JFrame {     static Puzzle m_fenster;     private JPanel ahead, center, buttom;     private JButton ol, om, or, ml, mm, mr, ul, um, ur;     Puzzle(String titel)     {         super(titel);         setLayout(new FlowLayout());         ahead = new JPanel();         center = new JPanel();         buttom = new JPanel();          ol = new JButton();         om = new JButton();         ol = new JButton();         ml = new JButton();         mm = new JButton();         mr = new JButton();         ul = new JButton();         um = new JButton();         ur = new JButton();          ol.setIcon(new ImageIcon("aheadLeft.png"));         om.setIcon(new ImageIcon("aheadCenter.png"));         or.setIcon(new ImageIcon("aheadRight.png"));         ml.setIcon(new ImageIcon("centerLeft.png"));         mm.setIcon(new ImageIcon("centerCenter.png"));         mr.setIcon(new ImageIcon("centerRight.png"));         ul.setIcon(new ImageIcon("bottomLeft.png"));         um.setIcon(new ImageIcon("bottomCenter.png"));         ur.setIcon(new ImageIcon("bottomRight.png"));          ahead.add(ol);         ahead.add(om);         ahead.add(or);         add(ahead);          center.add(ml);         center.add(mm);         center.add(mr);         add(center);          bottom.add(ul);         bottom.add(um);         bottom.add(ur);         add(bottom);      }     public static void main(String[] args) {         m_window = new Puzzle("Puzzle");         m_window.setSize(800,700);         m_window.pack();         m_window.setVisible(true);     }  }   I'm sure the files exist in the folder. The code can be compiled without problems, but when running the error  Exception in thread "main" java.lang.NullPointerException at Puzzle.<init>(Puzzle.java:30) at Puzzle.main(Puzzle.java:55)   It's possible it's a very simple error. Any idea?


Deciding what answer to accept: the correct one-liner or the later elaborate one with code?

Lately I've been getting some good answers to some specific questions. However, I've been hesitating on what answer I should accept.  Do I go with the short quick answer or do I accept a later answer where someone has elaborated on the previous answer with some code?  It's not really important but it kind of bugs me to not accept an answer when people have taken the trouble of replying.  Here's two examples:


How to install software to a different hard drive?

Hello my main hard drive that I have Ubuntu installed on is almost completely used now so I need to figure out how to properly install software on a second hard drive(non-usb). I have already reformatted the hard drive to ext4 using gparted and I have mounted the hard drive to a folder I created the path for, the path is /hdd if needed Also, will simply dragging files for software to my other hard drive work?


Problem from the 2020 Latvian "Sophomore's Dream" competition

Evaluate $$\int_{-a\pi}^{a\pi} \frac{\cos^5(x)+1}{e^x+1}dx, \quad a \in \mathbb{N}$$   In the beginning, I didn't have any ideas of how to solve this. The one that later came to mind was to try using Feynman's technique, but I couldn't think of the proper function to use for the second variable.   Any ideas?


Is it worth buying a film camera? I have a DSLR but I also want to have an experience in using a SLR. I want a fully manual camera. DSLR cameras has manual mode but I think it's different  from a SLR. I like working with my hands so I think having a SLR won't be a problem. I'm thinking of these three cameras Nikon FM10, Pentax MG or a Canon AE-1. Are these good cameras? What SLR cameras would you recommend for a student like myself? Thanks


I'm trying to rearrange my layers in Unity but I can't seem to drag them. When I try to do this I'm in edit layers under the heading sorting layers and I click on the = symbol and try to drag it but it won't move. I also tried restarting Unity twice but it won't resolve the problem.  Could someone help me with this?


How to find the domain and range of  $Y=x^{x^{x^{x^{x^{...}}}}}=x^Y$  I know how to differentiate the function. I don't know how to proceed further.  We should prove that domain:$[1/(e^e),e^{(1/e)}]$ and range:$[1/e,e]$


Baking lots of bread - keeping a yeast starter

Like many people sheltering-at-home, I'm baking . My yeast supply is running low, and I'm not sure I'll be able to get more on demand. I'd like a simple way to make sure I have yeast on hand for my next batch. Could you all recommend a method for storing a starter culture?  Specifically:   How should I store it (how much? where? I have a fridge ~4C and a wine cooler ~13C)  How often should I feed it? With what? Should I divide the culture when feeding?  How much should I use when baking? Can I treat it like dry active yeast, or does it need more/less time?   For some other context, I'm a novice at making bread (I've made it a few times, and others in my family make it more often). I see lots of advice on sourdough starters, but am interested in something that's a replacement for dry active yeast (unless sourdough starters are actually easier to maintain). I found a  that was similar, but it focused on long-term storage of yeast and the answers did not describe how to use the starter.  Your advice is appreciated.


How many 4 digit numbers have a sum of 9?  I converted that into: How many ways can you rearrange 3 stars and 9 bars?  But the first one has to be a number so it's actually: How many ways can you rearrange 3 stars and 8 bars?  I can convert it but I forgot how to solve the stars and bars problem? Can someone explain how to solve a converted stars and bars problem without giving me the answer to this question? Thanks.


I am trying to prove that $\mathbb{R}$ with the lower limit topology is not second-countable.  To do this, I'm trying to form an uncountable union $A$ of disjoint, half-open intervals of the form $[a, b)$, $a < b$. Is this possible? I think this would imply the $A$ is open but no countable union of basis elements could coincide with $A$ therefore making the real numbers with the lower limit topology not second-countable.  I think there must exist something like $A$ described above but I am having trouble visualizing it and coming up with a formula to represent it.  Maybe there is some other way to show it is not second-countable.


Add a ''glossy'' material for Blender render?

I'm making a 3D realistic eye on Blender, I started by an already pre-made file, and it came with a transparent material/layer that works like glossynes, still it doesn't apply to the texture on the background (the pupil). How can I make this model look better by making it reflect or 'shine'?  This is my actual project:    Everything is fine, but I want it to look like this:


Is it a problem that the same flipper that touched raw blood touches the finished meat?

I noticed that when I was cooking stir fry, I used the same flipper throughout. This means when I put the meat in, the flipper came in contact with the uncooked meat and got some blood on it. Is this a problem considering it touches vegetables that go in much later? Should a different flipper be used half way through the cooking process?


@ERROR: chdir failed but directory exists

I have a D-Link DNS-320 and I've  and I'm trying to get rsync running on it.   So far I've got the daemon up and running and I've defined a module in my rsyncd.conf like so:  max connections = 10 secrets file = /ffp/etc/rsyncd.secret  use chroot = false read only = no list = true strict modes = false #hosts deny = * timeout = 600 dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz *.mkv *.avi *.mpg *.jpg *.rar pid file = /var/run/rsyncd.pid reverse lookup = no  [root] hosts allow = * read only = false gid = allaccount uid = nobody auth users = greg path = /mnt/HD/HD_a2/rsync comment = Fish list = yes   /mnt/HD/HD_a2 is the internal disk and /mnt/HD/HD_a2/rsync exists:  root@nas:/mnt/HD/HD_a2/rsync# pwd   /mnt/HD/HD_a2/rsync   with the following permissions:  root@nas:/mnt/HD/HD_a2# ls -la total 154589 drwxrwxrwx 23 root   root            4096 Oct  2 19:44 . drwxr-xr-x  3 root   root            1024 Oct  2 17:20 .. drwxrwxrwx  4 root   root            4096 Dec 29  2013 Ajaxpf drwxrwxrwx 21 nobody allaccount      4096 Oct  2 15:45 NAS dr-xr-xr-x  4 root   root            4096 Sep 24 17:45 Public drwxr-xr-x  3 root   root            4096 Sep 24 17:45 Users drwxr-xr-x 17 root   root            4096 Aug 27 14:11 ffp -rw-r--r--  1 root   root            1117 Oct  2 17:20 ffp.log -rwxr-xr-x  1 root   root            1942 Sep 23 17:29 fun_plug drwxr-xr-x  2 root   root            4096 Jul 15  2012 logs drwxrwxrwx  2 nobody allaccount      4096 Oct  2 21:09 rsync   I have the user greg defined in my rsync.secret file and I can successfully connect from my (Windows) client and list the module:  C:\Batch\rsync> rsync greg@nas::   root            Fish   However; When I try to send a file I get @ERROR: chdir failed:  C:\Batch\rsync> rsync -vvvv SRC test.txt greg@nas::root/test.txt   opening tcp connection to nas port 873   Connected to nas (192.168.10.5)   note: iconv_open("UTF-8", "UTF-8") succeeded.   sending daemon args: --server -vvvve.Lsf . root/test.txt   @ERROR: chdir failed   [sender] _exit_cleanup(code=5, file=/usr/src/ports/rsync/rsync-3.0.9-1/src/rsync-3.0.9/main.c, line=1516): entered   rsync error: error starting client-server protocol (code 5) at /usr/src/ports/rsync/rsync-3.0.9-1/src/rsync-3.0.9/main.c   (1516) [sender=3.0.9]   [sender] _exit_cleanup(code=5, file=/usr/src/ports/rsync/rsync-3.0.9-1/src/rsync-3.0.9/main.c, line=1516): about to call  exit(5)   I'm using Cygwin rsync version 3.0.9 on the client and rsync version 3.1.0 on the server.  On the server, rsync is running as root:  root@nas:/mnt/HD/HD_a2# ps aux | grep rsync   root     10074  0.0  0.3   1996   376 ?        Ss   21:57   0:00 /ffp/bin/rsync --daemon --config=/ffp/etc/rsyncd.conf --log-file=/var/log/rsync.log --ipv4 -vvvv   Why is chdir failing?  root can write to /mnt/HD/HD_a2/rsync:  root@nas:/mnt/HD/HD_a2/rsync# touch /mnt/HD/HD_a2/rsync/touch   root@nas:/mnt/HD/HD_a2/rsync# ls -la   total 8   drwxrwxrwx  2 nobody allaccount 4096 Oct  2 22:21 .   drwxrwxrwx 23 root   root       4096 Oct  2 19:44 ..     -rw-r--r--  1 root   root          0 Oct  2 22:21 touch     and rsync is running as root.  There's nothing useful in the log on the server:  2014/10/02 22:19:35 [10391] rsyncd version 3.1.0 starting, listening on port 873   2014/10/02 22:19:41 [10394] connect from UNDETERMINED (192.168.10.37)     So why is chdir failing? or how can I diagnose the problem further?  UPDATE #1  Regarding this being a duplicate of  but the solutions pertained to SELinux being the issue. The DNS-320 runs an embedded, slimmed down version of Linux, which does not include SELinux's getenforce and setenforce commands, so if it is this, as , how can I rectify it?   As these tools aren't available, what else could it be?


I know that a stationary metric is one which possesses a timelike Killing Vector (so I have time invariance).  I read that a static metric is one which has a timelike Killing vector (so it is stationary) AND this Killing vector is orthogonal to a family of hypersurface (of dimension n-1 is n is the dimension of my manifold). I don't understand the "physical" meaning behind this definition ? Is there a way to explain this in some more intuitive way ? Thanks


What does the discovery of the Higgs boson mean for SUSY?

I've seen many differing opinions on how the discovery of the Higgs boson (specifically due to its mass) has effected theories of Super Symmetry, but all seem fairly biased. I'm wondering if someone could explain which SUSY models are invalidated (if any), why the mass of sparticles being hugely different to their counterparts is important/unimportant?  i.e. "SUSY is invalid due to the Higgs being much more massive than predicted in their models (so sparticles must have >> mass than their counterparts)"   whilst also seeing,  "SUSY models are favoured, and only need to be adjusted slightly to compensate for the Higgs mass"


Can't install Linux Headers (Kali Linux)

I am trying to install Linux headers for Kali Linux on my machine and I have tried every possible solution on the internet but it always show "Unable to locate packages "  root@kali:/usr/sbin# apt-get install linux-headers-4.6.0-kali1-amd64 Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package linux-headers-4.6.0-kali1-amd64 E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64' E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'   Here is my sources.list file :  # Regular Repositories deb http://http.kali.org/kali sana main non-free contrib deb http://security.kali.org/kali-security sana/updates main contrib non-free # Source repositories deb-src http://http.kali.org/kali sana main non-free contrib deb-src http://security.kali.org/kali-security sana/updates main contrib non-free   Uname -a output :   root@kali:/usr/sbin# uname -a Linux kali 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux


I want to know how to just check for the permission of a file.   I know  ls -l yourfile   will show you it but I just need the nine permission letters.  Thanks


What's the difference between "has been living" and "has lived"?

Here I know I have one present perfect and present perfect continuous sentence.   I have lived in Europe for 2 years. I have been living in Europe for 2 years.   Can you use both of them interchangeably? What is the exact difference between them? To me both suggest that the person is still living in Europe.


During a review process of an older programm code the following question arised: All local variables in a method are initialized right after begin. Usually local variables are not initialized. But we have a procedure where all variables are initialized to 0. Does anybody has an idea how this could happen?  Example:  type   TPrices = array[0..10, 0..5] of Integer;  procedure DoSomething(); var   mPrices : TPrices;   mValue  : Integer;  begin   if (mPrices[0,0] = 0) then     MessageDlg('Zero', mtInformation, [mbOK], 0);   if (mValue = 0) then     MessageDlg('Zero Integer', mtInformation, [mbOK], 0); end;


I have a binomial name - Sammy Kumar, name of my father is monomial - Rajiv (no surname)  Will there be any problem in applying for visa to western countries(EU & USA) ?


How to implement "Add another item" for custom forms?

I am writing a module which is basically a form that creates a relation between two end points.  I want a user to be able to create multiple relations at once. I want to add a button which says "add another item" just like how fields have when you select unlimited in their settings.  Is there a way I can do this to custom forms too ?


If no answers are offered in a bounty, automatic message should not be “you must award answer”

I posted a bounty on  which, even after 1 week with bounty, received no answers (I have found a solution and will post it eventually).  IMO, the system should not send a message instructing me to award an answer if there is none (this is what happens nowadays).    I recommend that a filter for such solutions be created with an automated message to the effect of "Your bounty period has expired yet your question received no answers.  The bounty points you offered are not refundable.  You may offer a new bounty, if you wish."  NOTE: before any trigger happy flagger goes about declaring this to be a , please pay attention that it is a BUG REPORT / FEATURE REQUEST , not a whining "where did my bounty points go" and that the above question never received an answer (it was incorrectly marked as a duplicate also).


What is the benefit of casting time series models to state space form? And why are they often estimated with Kalman filters?

For example, the R forecast package casts all exponential smoothing methods into state space form. What is the benefit besides getting a parametric prediction interval? Using the state space form has given me more accurate forecasts than just using R's default HW, why is that? Are state space models more robust to noise?  The forecast package assumes a single source of error, is it necessary to use Kalman filters in this case? What is the benefit of the Kalman filter over other methods of estimation?


Printing entire line, should one substring of line match condition

So using the following code: try (BufferedReader br = new BufferedReader(new FileReader("Program10.txt"))) { String sCurrentLine; String[] splits;              while ((sCurrentLine = br.readLine()) != null)  { splits = sCurrentLine.split("\\s+"); } } catch (IOException e)  { e.printStackTrace(); } System.out.println(splits); // prints as null  I've read the file, Program10.txt, by line to get: [1000  31000  3 Texas,  1042  12180.06  3 Texas,  1062  13240.45  2 Texas,  1200  36000  2 Maryland,  1327  19800.56  2 Alaska,  1483  22458.23  7 Texas, ... ]  And I'm hoping to print the entire line when the income (so the second element is greater than average income, which is 5,037) with the following code (***I suspect the problem is with the bolded code): ArrayList<Household> households = new ArrayList<Household>(); **// This will create new household object Household household = new Household( Integer.parseInt(splits[0]),  Double.parseDouble(splits[1]),  Integer.parseInt(splits[2]),  splits[3]);  I'm getting a null Exception in thread "main" java.lang.NullPointerException at Program10.readFile(Program10.java:129) (line 129 corresponds to the code "Integer.parseInt(splits[0]), " Is there something obvious I'm missing here?


How could I get a grey box in latex like the one I get on math.stackexchange when I type > to start a paragraph?


Help identifying a sci-fi book with short stories about portals

I'm trying to find a sci-fi book I read in the late 80's or early 90's. It contained several short stories, and each one was about the effect portal technology would have on human civilization.  In the first story, an unmanned probe lands on a planet (Mars?), it dumps out a portal, and an astronaut steps out of the portal.  Later in the book, there is a story about the day in the life of someone who commutes to their job on the other side of the country (world?) via portal.  I think (not super sure about this) all the stories were set along a common timeline, similar to Heinlein's A Past Through Tomorrow. Sadly, I can't remember if the stories were all written by the same author or different authors. I've been wondering about this book off and on for years - Thanks in advance for any help with the search!


How to automatically attach E-mail, not embed them

How can I add E-Mail-Attachments automatically to an E-Mail, without integrating them?  Especially photos!  Menu -> Edit -> Attachments... doesn't work!   I use OS X Lion (10.7.2) and Mail (5.1).   Anyone have any ideas?


undefined control sequence using subsubsubsection

When I do something like:  \subsubsubsection{Testing}   I get Undefined control sequence. It works find for \subsubsection{Testing}. How can I incorporate a 3rd level?


How to prove, that the sum of chromatic numbers of graph and it's complement is smaller then the number of vertices incremented by one?  $\chi(G)+\chi(G')\leq n+1$  The notes from my classes say to color the first graph using sequential algorithm with vertices ordered by their degrees (the ones with lowest appear first). We would get $k_1$ colors, then we color the graph $G'$ in the backwards order and get $k_2$ colors, and the sum $k_1+k_2$ in my notes is magically smaller than $n+1$, but I just don't see why...


Is $\sqrt{x}$ uniformly continuous in $\mathbb{R}^+$?

We are given this function: $f:R^+\rightarrow R,x\rightarrow \sqrt{x}$.  We  need to prove that this function is uniformly continuous. My proof is this one but i'm not sure is it complete and right.  Let pick up $\epsilon>0$  and $\gamma>\epsilon^2$. We need to find $|f(x)-f(y)|<\epsilon$ for all $x,y\in R^+$ with $|x-y|<\gamma$  Without loss of generality we can assume that $x<y$.  We see that $|\sqrt{x}-\sqrt{y}|\leq|\sqrt{x}-\sqrt{y}|\rightarrow|x-y|<\gamma$  $|\sqrt{x}-\sqrt{y}|^2\leq|\sqrt{x}-\sqrt{y}||\sqrt{x}-\sqrt{y}|=|x-y|<\epsilon^2\rightarrow||\sqrt{x}-\sqrt{y}|<\epsilon$  Since $|\sqrt{x}-\sqrt{y}|<\epsilon^2$ This show that $f(x)=\sqrt{x}$ is uniformly continuous on $f:\mathbb R^+\rightarrow \mathbb R$


Help to identify a sci-fi trilogy of books - similar to three musketeers, moon as a casino

I'm trying to identify a trio of books I read as a teenager. They were set not too far in the future with the main character getting into a series of adventures with three older soldiers(?) One of the older men walked with a cane which was really a blaster. One of the novels included the moon having been turned into a big casino and one turned on the fact that the bad guy had an allergy to the main character which was used to identify him. It's been driving me nuts for a while, any help appreciated.


Is there an absolute center of mass exist in the universe?

By the "absolute center of mass" I mean the center of all the matter that exists in a given moment. My friend asserted that today and it intrigued us very much but since we only have a CS degree and not very well versed in modern physics we couldn't be sure about that claim.   It is based on the observation that; the total momentum of a given system never changes. Am example; considering a hypothetical situation where an astronaut is floating in the space, to change his speed, he needs to push an object against the direction he wants to move. He gains as much momentum as the object gains in the opposite direction, net momentum is zero and center of mass doesn't changes.  Applying this principle to the beginning of our universe, we arrive to the aforementioned conclusion. Is this true? If not, why?


How to prove that $\frac{2}{n(n+1)}\sum_{i=1}^n iX_i\rightarrow _p u$?

Let $X_1,\ldots,X_n$ be i.i.d random variables with $u=EX_1$ and $\sigma^2=Var(X_1)<\infty$. Show that $\frac{2}{n(n+1)}\sum_{i=1}^n iX_i\rightarrow _p u$.   My solution: Put $X_{(n)}=max\{X_1,X_2,\cdots,X_n\}$. Thus,  $$\frac{2}{n(n+1)}\sum_{i=1}^n iX_i\leq \frac{2}{n(n+1)}\sum_{i=1}^n i X_{(n)}=\frac{1}{n}\sum_{i=1}^n X_{(n)}.$$  Since $$P(|\frac{1}{n}\sum_{i=1}^n X_{(n)}-u|>\epsilon)\leq \frac{E(|\frac{1}{n}\sum_{i=1}^n X_{(n)}-u|^2)}{\epsilon^2}=\frac{Var(X_{(n)})}{n\epsilon^2}=\frac{\sigma^2}{n\epsilon^2}<\infty,$$  we have $$P(|\frac{2}{n(n+1)}\sum_{i=1}^n iX_i-u|>\epsilon)\leq P(|\frac{1}{n}\sum_{i=1}^n X_{(n)}-u|>\epsilon)\rightarrow 0$$ as $n\rightarrow \infty$.  Therefore, $$\frac{2}{n(n+1)}\sum_{i=1}^n iX_i\rightarrow _p u.$$  Proof edit:  $ P(|\frac{2}{n(n+1)}\sum_{i=1}^n iX_i-u|>\epsilon)\leq\frac{E(|\frac{2}{n(n+1)}\sum_{i=1}^n iX_i-u|^2)}{\epsilon^2}=\frac{4\sum_{i=1}^n E(iX_i-iu)^2}{{n^2(n+1)^2}\epsilon^2}=\frac{4\sum_{i=1}^n i^2 E(X_i-u)^2}{{n^2(n+1)^2}\epsilon^2}=\frac{4*\frac{n(n+1)(2n+1)}{6}*\sigma^2}{{n^2(n+1)^2}\epsilon^2}\rightarrow 0$ as $n\rightarrow \infty$  thus  $$\frac{2}{n(n+1)}\sum_{i=1}^n iX_i\rightarrow _p u.$$  I‘m not sure if this proof works. Can anyone give some suggestions?


Science fiction novel series: two alien race, one cone shaped and one with involuntary rages

I read this series about 15 years ago give or take. It was in the young adult section of the library and I think there were at least 3 books or so. The main identifying features were two alien races.  One race was cone shaped and if I recall correctly very nature oriented. I believe they used nature-oriented technology, and could grow machines. There was something about covering huge areas of water with these plants. It was one of the things that could cause friction with the other factions since the plants choked the lakes or something.  Of the other I recall that they were physically strong and had a lot of natural weapons. They wanted to be civilized and usually were, but they built up a hormone of some sort that required them to release by going into aggressive rages at regular intervals. They may have had special events, rituals or locations dedicated to venting their rage hormones. Being stranded with one was extremely dangerous if they could not vent.  The central overarching story was about how these three races (the two above and humans) would try to live together and learn from one another but their differences put them on edge constantly and there was always tension.   I remember the books having black bars on the top and bottom like a 4:3 tv showing a 16:9 film, and I think the author sounded American. I've asked the same question on Goodreads to no avail, and google has failed to yield a single clue.  Does anyone know what series this is?


Hello I want to change text in my textView , but dont know how.  I tryed to change it like this   TextView textView3 = (TextView) findViewById(R.id.textView3); textView3.append("hi");   But this textView is in another xml-file.   the compiler outputs FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.nividimka.shopapplication/com.example.nividimka.shopapplication.ShopActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403) at android.app.ActivityThread.access$600(ActivityThread.java:165) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5391) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at com.example.nividimka.shopapplication.ShopActivity.onCreate(ShopActivity.java:62) at android.app.Activity.performCreate(Activity.java:5122) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)  at android.app.ActivityThread.access$600(ActivityThread.java:165)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)  at android.os.Handler.dispatchMessage(Handler.java:107)  at android.os.Looper.loop(Looper.java:194)  at android.app.ActivityThread.main(ActivityThread.java:5391)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:525)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)  at dalvik.system.NativeStart.main(Native Method)


Tufte book - inline spacing list of figures

I have a small problem with the Tufte book. I inserted the per-section numbering but then the inline spacing gets all too crowded, as in the picture.    Any command I could use to solve this? Thanks!


I am using this script on router using Entware to check response of website every 15 min. It only runs once and terminates after the first 15 mins. Why?  #! /bin/sh  for i in {1..10} do     date >> webresp.csv   curl -w 'Testing Website Response Time for :%{url_effective}\n\nLookup Time:\t\t%{time_namelookup}\nConnect Time:\t\t%{time_connect}\nPre-transfer Time:\t%{time_pretransfer}\nStart-transfer Time:\t%{time_starttransfer}\n\nTotal Time:\t\t%{time_total}\n' -o /dev/null www.google.com | tee -a webresp.csv   sleep 900 done


What codecs does the Windows 7 & Powerpoint 2010 combination support out of the box?

Apologies if this question has been asked many times before... but I can't find a duplicate.  I'm helping a colleague prepare a Powerpoint presentation. We have no control over the computer that it will be delivered from (we simply hand the PPT file over beforehand). I am making an assumption that it will be running Windows 7 & Powerpoint 2010, as we are.  As I understand it, Powerpoint will embed and play quite a wide range of video formats, if the relevant codecs are installed on the PC. Because we don't control the PC we need to assume that it has nothing installed that doesn't come automatically with Windows or Powerpoint - but which formats are these?  To put it another way: What video format can we embed in Powerpoint and be confident that it will play on any Windows 7 PC?  Thanks.


An elementary proof of $\int_{0}^{1}\frac{\arctan x}{\sqrt{x(1-x^2)}}\,dx = \frac{1}{32}\sqrt{2\pi}\,\Gamma\left(\tfrac{1}{4}\right)^2$

When playing with the complete elliptic integral of the first kind and its Fourier-Legendre expansion, I discovered that a consequence of $\sum_{n\geq 0}\binom{2n}{n}^2\frac{1}{16^n(4n+1)}=\frac{1}{16\pi^2}\,\Gamma\left(\frac{1}{4}\right)^4 $ is:     $$\int_{0}^{1}\frac{\arctan x}{\sqrt{x(1-x^2)}}\,dx = \tfrac{1}{32}\sqrt{2\pi}\,\Gamma\left(\tfrac{1}{4}\right)^2\tag{A}$$   which might be regarded as a sort of Ahmed's integral under steroids.  I already have a proof of this statement (through Fourier-Legendre expansions), but I would be happy to see a more direct and elementary proof of it, also because it might have some consequences about the moments of $K(x)$ of the form $\int_{0}^{1}K(x)\,x^{m\pm 1/4}\,dx$, which are associated with peculiar hypergeometric functions.


Does a multiple-entry Schengen visa allow visiting other Schengen countries later, without going via the issuing country?

My wife was just issued a multiple entry visa by France, which is good for one year.  Our first trip will be to France, the issuing country.  My question is: after we leave the EU and return, must future trips also start in France? Or may we go directly to (say) Greece from the US on a later visit?


What can you say about $f$ and $g$ in the case that $fg$ is 1) Injective, 2) Surjective - Cohn - Classic Algebra Page 15

Question: Are my proofs below valid?   In both cases we are using: $f:A\to B, g: B\to C$  Notation of your type converted: $(g\circ f)(x)=g(f(x))=xfg$    If $fg$ is injective what can be said about $f$ and $g$?  If $fg$ is injective then $f$ is injective:  Proof:  $(x_1fg = x_2fg \implies x_1=x_2)$  $x_1fg=x_2fg$ is clearly true when $x_1f=x_2f$  Which requires $x_1=x_2$, hence $f$ is injective.  If $f$ were not injective, then $x_1fg\ne x_2fg$  $\blacksquare$    If $fg$ is surjective what can be said about $f$ and $g$?  If $fg$ is surjective then $g$ is surjective:  Proof:  $(\forall c\in C)(\exists a\in A) |( a(fg))=c$  This means for $g$ every element must have had been mapped to. How can this be proved Mathematically?  well $(af)g=c$ is surjective, hence $(af)=(b\in B)$ and $bg=c$  $(\forall c\in g)(\exists b\in B)|(bg=c)$  Hence $g$ is surjective.  $\blacksquare$


One can say "get back home" or "went back home" to talk about going back home after hanging out with friends.      In response to this question: Who do you usually like to hang out   with? I say: Back home, I used to hang out with my collage colleagues, but nowadays, I usually go out with my work colleagues   "back home" refers to my country and the listener know that I am a foreigner. Is this a correct usage of the phrase. Is it idiomatic?


if else is not working in selenium webdriver when using equalsIgnoreCase

try {     List<WebElement> list1 = driver.findElements(By.tagName("a"));      for (WebElement e : list1) {         if (e.getAttribute("href").equalsIgnoreCase("/ProductsRoute.do")) {             if (driver.findElement(By.id("buttonCheck++Check")).isDisplayed()) {                 driver.findElement(By.id("buttonCheck++Check")).click();                 ProductConfPageexceptionHandler(driver);                 break;             }         else if (driver.findElement(By.name("Next")).isDisplayed()) {                 WebElement nextBut = driver.findElement(By.name("Next"));                 nextBut.click();                 break;             }         break;          }    }     }         } catch (Exception e) {             e.printStackTrace();         }     }   The problem is that, when the script executes e.getAttribute("href"), it looks for /ProductsRoute.do. If it does not find it, then it should break there. But the issue is that I'm getting java.lang.NullPointerException.   The expectation is that, it should find try to find the href /Products.do, if it is not there, it should break there. if it's in /Product.do, then it should execute the next if. Need you help in finding the issue. Thanks guys!


I have a circuit that is controlling a water valve.  The state of the valve can be controlled via an http request, or a physical rocker switch.  I would like the physical rocker switch to represent the current state of the water valve. ie it is in the "Open" or "Closed" position.  This means that if the valve is closed or opened over the http request, then the switch moves to represent that state.  Does such a switch exist?


Does the sorting hat distribute students equally?

A series of questions, so I'll split them up if needed.  I'm working my way through the books again and was wondering if the sorting hats sorts the students into houses equally, or if there are some houses which have a larger number of students than others (two questions I guess).  If they are sorted equally, can we therefore say hat Hogwarts has around 800 pupils, as in The Prisoner of Azkaban in the Gryffindor Vs. Slytherin Quidditch match, it's said that the '200 Slytherin's boo'd Gryffindoor as they walked onto the pitch' (roughly, can't remember the exact text)?


jQuery functions for content inside the iframe

I have the following HTML code with the iframe:                   example 1
example 2

          test.html                <title>TODO supply a title</title>         <meta charset="UTF-8">         <meta name="viewport" content="width=device-width, initial-scale=1.0">
TODO write content

div content
         Then I have written a jQuery code to find div tags and highlight       This is working in the divs outside the iframe. I need to highlight the divs which are in the inside the iframe.


Looking to add my own marker. I have an Icon in SVG format that I would like to use. Using QGIS 3.4.4


Compare $e^n$ and its first $n$ terms sum

Compute the limit as $n$ approaches infinity. $$  \frac{\sum_{0\le i\le n} \frac{n^i}{i!}}{e^n} $$  It is somehow between 0 and 1.


Say I want to find meta stackexchange. Is there any conspicuous link from main site to it's meta?  Is there such feature already?  I usually found that on google.


Desktop back in the task switcher (Alt + Tab)

With ubuntu unity I had the possibility to have "Desktop" as task in the task switcher (Alt+Tab). In Ubuntu 18.04 this possibility is gone.  Is there a way to get it back?


Will fast duration visit user with happy experience can lower my page ranking?

Hello I'm currently running page wish has regular traffic, this page has made only for linking or referring to other websites, The users can find what they looking for in my page, but the user bounce rate, of course, is too low because as I said it refers to other websites/articles  Will that reduces my page ranking on google?  Or Google can count it as good behavior and upper my page.  waiting for your experience


What is a synthetic class in Java? Why should it be used? How can I use it?


when I go to click 'Open in browser' on a question, it crashes in the glorious fashion of old. I wouldn't mind- but it doesn't open the question in chrome. Got any insight on this, guys?


How do i write a batch file that executes commands

I am writing a .bat file to execute commands in putty. I need to load a saved session, then i need to enter a 'terminal id' and press enter, then i need to enter a user name and password. Can anyone help me?


Cartoon with two boys and a girl fighting by transforming into monsters and capturing the defeated monsters

A cartoon with two boys and a girl fighting by transforming into monsters and capturing the defeated monsters.  If I remember correctly, the guy had a fire monster and his friend (the other guy) had an ice monster. Iforgot what the girl had.  I remember at the end they had a tournament at the end with the bad guys and it was shown that the main character's dad was still alive?


Do I need a transit visa for UK if I use Manchester airport for 1.30 hours?


Why must I use tabs instead of spaces in heredocs?

I personally work cross platform with Windows and Linux and sometimes I edit .sh files with Notepad++. It is hence problematic for me to keep all my files' tab indents as Unix-like so my solution was to use space-based indenting.  Yet, I encounter problem when indenting herdocs inside heredocs. For example, here is an external heredoc, holding an internal cat heredoc:  bash /dev/fd/10 10<<-'EOT'     Some command.     cat << EMW >> /etc/apache2/apache2.conf     EMW     Some other command. EOT   As I recalled I ran this successfully with Unix-like tabbing in bash, but not with Windows-like tabbing as then the script broke and the same goes for using spaces.  My question:  My question can actually be comprised of these questions and I ask it not only for me but for other curious people to find this:   Why can't we use spaces for indenting commands and heredocs inside other heredocs? If I'm wrong and there is a workaround to allow space indenting for commands and heredocs inside other heredocs, than what is it?


Does anyone know the letters used in Swedish Boggle?

Similar to this question, but specifically for the Swedish version  () I would like to know which letters each of the 16 dice have. Also any extra information on how the game works with the Swedish vowels å, ä, ö. I know with the German version you use extra letters to make up for the missing umlauts e.g. ä --> ae, is it similar to this?


How do you switch between multiple JPanles in an application window?

I have tried to setVisible(null); but it produces an java.lang.NullPointerException. the JPanel setLayout(null); which I think is the issue, I don't know how to resolve it. I,m using a card layout to reduce windows in the application. Any help would be appreciated.  final JPanel Signin = new JPanel(); contentPane.add(Signin, "name_12988058891368"); Signin.setLayout(null);  JButton btnNewButton = new JButton("New button"); btnNewButton.addActionListener(new ActionListener() {     public void actionPerformed(ActionEvent arg0) {         Signin.setVisible(false);         Home.setVisible(true);     } }


difference between if ( !statement) and if (statement != true)?

I had some case in which first seemed to change the value of Boolean and second didn't! Is there a real difference between the two:  boolean x = true;  if (x != true) {} if (!x) {}


Javascript find if element exists in object value array

I have an object as follows -   var users = {   room: [1,2,3,4] }   How do I find if the 3 exists in the room array ?


C Shell Array Declaration Syntax, () vs {}

In my C-shell script (tcsh specifically) I have been trying to declare an array with six values: x, nx, y, ny, z, nz.  After some trial and error I discovered three different ways of declaring the array I want:  set arrname = ("x" "nx" "y" "ny" "z" "nz") set arrname = (x,nx,y,ny,z,nz) set arrname = {x,nx,y,ny,z,nz}   but the following line doesn't work:     set arrname = {"x" "nx" "y" "ny" "z" "nz"}   The above line produces the following error:     Missing }.   My question is what is different between () and {} that makes the fourth declaration I've listed not work?


Hi i bought vpn access form a vpn provider, i got a bunch of .ovpn files.  How can i get openvpn to startup one of these .opvn files under start/boot up?  I would like to, not have to run openvpn --config VPNservername.ovpn every time i have to do a reboot. I'm running ubuntu 12.04 server.  I have installed openvpn


Can a jar that has had botulinum food in it be cleaned

If a home canned jar has botulinum in it can the jar be cleaned and saved? If so what is the correct way to clean the jar?


I'm running a command through a program that needs to create an OpenVPN account. After putting in this line to start making the account:  cd /etc/openvpn/easy-rsa; . ./vars; ./build-key username   I need to have it put in no input 10 times [like pressing enter,] and then press y twice. It needs to all be in this one line. Is this possible? Thanks in advance.  EDIT:  root@suffice-vpn:~# cd /etc/openvpn/easy-rsa; . ./vars; <<<$'\n\n\n\n\n\n\n\n\n\nyy' ./build-key username NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/easy-rsa/keys Generating a 2048 bit RSA private key ..............+++ .....................+++ writing new private key to 'username.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [US]:State or Province Name (full name) [NY]:Locality Name (eg, city) [Merrick]:Organization Name (eg, company) [IceWare]:Organizational Unit Name (eg, section) [IceWare]:Common Name (eg, your name or your server's hostname) [username]:Name [server]:Email Address [iceware@programmer.net]: Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []:An optional company name []:Using configuration from /etc/openvpn/easy-rsa/openssl-1.0.0.cnf Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows countryName           :PRINTABLE:'US' stateOrProvinceName   :PRINTABLE:'NY' localityName          :PRINTABLE:'Merrick' organizationName      :PRINTABLE:'IceWare' organizationalUnitName:PRINTABLE:'IceWare' commonName            :PRINTABLE:'username' name                  :PRINTABLE:'server' emailAddress          :IA5STRING:'iceware@programmer.net' Certificate is to be certified until Jan 14 16:59:03 2026 GMT (3650 days) Sign the certificate? [y/n]:CERTIFICATE WILL NOT BE CERTIFIED: I/O error root@suffice-vpn:/etc/openvpn/easy-rsa#   As you can see, it goes through the process filling in the blanks [keeping all that information that I want to remain the same] but then I get this I/O error.


How do I loop through a MySQL query via PDO in PHP?

I'm slowly moving all of my LAMP websites from mysql_ functions to PDO functions and I've hit my first brick wall.  I don't know how to loop through results with a parameter.  I am fine with the following:  foreach ($database->query("SELECT * FROM widgets") as $results) {    echo $results["widget_name"]; }   However if I want to do something like this:  foreach ($database->query("SELECT * FROM widgets WHERE something='something else'") as $results) {    echo $results["widget_name"]; }   Obviously the 'something else' will be dynamic.


Markdown shorthand for Stack Exchange sites in questions and answers

I know that most (if not all) SE sites have a shorthand link in comments. For example, [SO] for Stack Overflow, [Math.SE] for math.stackexchange.com, and [SoftwareEngineering.SE] for softwareengineering.stackexchange.com. Apparently these are not supported in questions and answers. Is there any plan to add this feature or is it intended only for comments?


I programmed the wrong email address to my iCloud how do I fix it if it's not a real email address

I program the wrong email on my I cloud account and when I go to fixing it I can't fix it because the email doesn't exist .


In excel 2010 how do I change the cell colour to red if the date entered is 2 weeks or more in the past?

I have a spread sheet and I want the colour of the cell to change to red when the date entered is two weeks (or more) ago as this will immediately show me when work is overdue so I can chase it up.  Thank you.


What is the difference between "above" and "over"?

We ordinarily apply above and over in place of each other.  Is there an accurate difference between them? If so, what is it? When do we use above and when do we use over?  what is the similarities between them?  we want to know what are differences exactly and accurately among them? I need a response which accurately draw these differences?


How do I burn multiple Ubuntu isos on one DVD?

I always find it a waste putting a 790MB Ubuntu iso on a 4GB DVD, and I was wondering how to put multiple operating systems on one DVD with a grub menu. I know it is possible, but I just don't know how!


I receive a lot of screenshots during my daily work.  Most of them contain numbers which I need to copy+paste.  Is there a magic way to copy+paste numbers from images?  I use thunderbird and firefox to look at the screenshots.  This is not about "best OCR solution". Tesseract would be good enough. This question is about simple grandma compatible integration of OCR into the desktop. I don't want bricks to play with, I want a daily and easy to use solution.  I have seen this on ms-windows in the year 2001 (18 years ago). But I can't remember how this tool was called.


I just realized I can't unrar .rar files on my Ubuntu machine!  What's the easiest way to accomplish this fundamental task? If possible I'd love something like 7Zip that I can just right Click, and extract and have the program worry about how to do it regardless if it's a .zip, a .rar or a .foo compressed file.


Understanding P-Value with respect to the Level of Significance

The definition of P-value is the probability of obtaining a sample that is more extreme than the ones observed in your data, assuming that the null hypothesis is true. That 's very well-explained in  answer.   In a nutshell: $P(Test~Statistics~of~H_1 \geq Some Value_1 ~~|~~ True~Value~of~H0 = SomeValue_2)$     How I understand that, suppose $P_{value} = 0.06$, that means if we repeat the experiment on different samples 100 times, we expect to see the sample test statistics $\geq Some Value_1~$  6 times out of 100. That means, the higher $P_{value}$ is, the more likely our alternative hypothesis is correct (and more likely we should reject null-hypothesis).     But what is confusing me is the rule that says, if $P_{value} \leq \alpha \implies Reject~H_0$. For example, if the level of significance is 0.06, that means $P_{value}$ should be less than 0.06 to accept the alternative hypothesis, which contradicts the first statement.    Any help in understanding it intuitively is very much appreciated.


I've an implementation of a stack which aside from push, peek and pop returns the max Value. Here's my code.  static  class MaxStack{          private Node top;         private Node maxTop;          private class Node{             int data;             Node next;              Node(int item){                 this.data = item;                 this.next = null;             }         }          void push(int item){             Node p = new Node(item);             if(top == null){                 top = p;                 Node q = new Node(item);                 maxTop = q;                 return;             }             p.next = top;             top = p;             if(item > maxTop.data){                 Node q = new Node(item);                 q.next = maxTop;                 maxTop = q;             }                      }          void pop(){             if(top == null) throw new IllegalStateException("Popping off and empty stack");             top = top.next;             if(top.data == maxTop.data){                 maxTop = maxTop.next;             }            }          int peek(){             return top.data;         }         int peekMax(){             return maxTop.data;         }   In my client code when I use this class, I get a Null Pointer Exception in the pop method.  Can someone help me understand what's wrong here.


Which verb do I use in: “All you need in life is/are coffee and good grammar”?

Should I use 'is' or 'are' in the sentence below?      All you need in life is/are coffee and good grammar.   This question is different from  because that question doesn't deal with what verb agreement to use in sentences like this where the subject is "all" (which can be singular, as in "All is well", or plural, as in "All are alike").


Need to create a separate partition after installing Ubuntu

I've already installed Ubuntu 12.04, but I did not make any separate partitions beside the one the operating system is installed on.  Now I want to make a new partition.  Is this possible?


Error: kernel headers not found. (But they are in place)

I'm trying to install the Guest Additions in VirtualBox 4.04. Host OS is Ubuntu desktop 11.04 64bit, guest OS is Ubuntu server 11.10 64bit.  $ sudo ./VBoxLinuxAdditions.run   After some output this line is printed:  The headers for the current running kernel were not found.   But the headers are installed, at least accordingly to dpkg:  $ dpkg --get-selections | grep linux-headers linux-headers-3.0.0-12            install linux-headers-3.0.0-12-server     install linux-headers-server              install   The running kernel is:  $ uname -a Linux foobar 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 X86_64 GNU/Linux   How do I fix things so that Guest Additions installer is able to find kernel headers?  Update: added full output.  The headers for the current running kernel were not found. If the module compilation fails then this could be the reason.  Building the main Guest Additions module ...done. Building the shared folder support module ...fail! (Look at /var/log/vboxadd-install.log to find out what went wrong) Installing the Window System drivers ...fails! (Could not find the X.Org or XFree86 Window System).   I don't care for fail #2, because that's a server and I don't need X server. But I need shared folder support.  Some further detail:  $ tail /val/log/vboxadd-install.log .......... cc1: some warnings being treated as errors make[2]: *** [/tmp/vbox.0/vfsmod.o] Error 1 make[1]: *** [_module_/tmp/vbox.0] Error 2 make: *** [vboxsf] Error 2


Why do only Hobbits use a combination of first- and last names?

While all the Hobbits I can think of have a combination of first- and lastname (e.g., Bilbo Baggins, Peregrin Took, the Sackville-Baggins's,...), I can't think of any character* of another race that has a lastname:   Men seem to like to add a reference to their ancestors (e.g., Aragorn, Arathorn's son or Isildur's heir) Dwarves seem to like descriptive or honorary names (e.g., Thorin Oakenshield, Dain Ironfoot). They are not lastnames though, since they do not get passed on to descendants. Elves don't have a need for lastnames, since elvish names are unique. Some nevertheless seem to have an additive (e.g., Legolas Greenleaf). Likewise, I can't find any usage of lastnames among Ents, Eagles, Istari, Orcs, trolls,...   But why would a society that is quite rural and not a leader of modernization be the only one to use a modern naming system with first- and lastnames?  *Except for Tom Bombandil. But he is, well, "special".


I wonder how one could produce animated video glitch effects, like digital codec or connection problems or even analog cable problems.  I wonder how one could do something that can work on top of a video (to displace parts of it, mess up the colors in rectangular areas, create different noise patterns etc).  Reference 1: This movie poster, even though completely static, has very nice blocky artifacts. That are dependant on input image (the photo):     Reference 2: (follow the link and watch video demos)   What can I do to achieve similar effects?