Why is my computer constantly using most of my RAM?

For some reason, my computer is using a large amount of my RAM but I can't figure out what is actually using it ? I know nothing about computers so please help me!  Useful images:


execute command on a defined range of directories

Is it possible to 'partition' a directory listing - say in to blocks of some number, to perform different actions on each 'range'?  For example, lets say I have the following directories inside another folder:  $ ls test abc/ def/ hij/ klm/ nop/ qrs/ tuv/ wxy/ zzz/   And I want to perform some action on the first 3 directories, another on the second 3, and so on.  My thought was that perhaps a loop across numbers would work, based on the output of something like ls | nl (but before anyone mentions it, I know parsing ls is a no-no!)  This obviously doesn't work, but illustrates my point I hope:  for dir in `ls | nl`;  do     do-something-with ${dir{1..3}} # Where $dir has taken on some numerical value linked to the folder)     do-something-with ${dir{4..6}}  # And so on...     do-something-with ${dir{n-3..n}}  done   The folders I intend to actually do this on, can be worked on in any order (i.e. the final splits can be totally arbitrary), but they have no logical naming consistency - by which I mean they can't be organised sensibly alphabetically or numerically based on any key within the directory name themselves.


Is the performance of a CPU affected as it ages?

This is a hypothetical question about how a CPU operates. If I purchase two identical CPUs, and use one long term (say one year), will it be identical in speed to the unused CPU? Will the number of clock cycles, latency of requests, etc on the used CPU be less than that of the unused CPU?  A supporting argument may be that mechanical devices degrade over time, While a CPU has no moving parts (other than the external fan), it does have circuits that can be damaged by heat, and voltage spikes. Lets say that after a year of intensive use, the circuits degrade and fewer electrons can pass since the pathway is narrower, etc.   Is this the nature of how a CPU operates, or is it simply working or broken, with no speed degradation in between?


LaTeX plugin for IntelliJ IDE (and others from JetBrains)

Since I'm here for the first time as a registered user, I'll introduce myself. I am a developer that have created a Gitignore plugin last time for . It was fun to develop something that others use. After that I was thinking about a new product that I can release and I've checked wishlist on JetBrain's plugins page - there is a request for LaTeX plugin (there are not too much voices in general, but I supose it's because of page's low viewership).  Before I'll start anything I'd like to ask you - does LaTeX plugin for JetBrains' IDEs makes any sense ?  I'd like to hear, what do you think about it - will you use it ? Are there many IntelliJ, etc users ? What would you like to see in initial releases ?  Thanks for the answers and I believe that this non-latex-problem question will not be banished.  Best regards, hsz  Edit:  As @Joseph Wright pointed me out - not everyone know what IntelliJ is.  IntelliJ is an IDE for programming in Java, PHP, NodeJS, Android, etc.. It allows programmer to write in barely every language that he needs. JetBrains provides  adapted for various environments (Python/Perl, C#, iOS, Ruby, databases...). As soon as LaTeX is (sorry for that!) just a minor tool in programming, they didn't provide anything to cover it. That's why I got this idea - I am a programmer that needs to write documments in TeX - should I install external software that does not provide version controlling or should I try to create something integrated with powerful IDE that will give me more options, not just writing TeX documents..  I do not know if there are many programmers here and whet do you do in your work, what IDE do you use, but I give a shoot.  Edit 16.01.2014  I've started development some time ago. Now it supports syntax coloring (BNF and JFlex rules created).  The source code is available on my GitHub:   IntelliJ plugin for LaTeX support will be released soon. Keep it in your minds that it'll be very simple version for now.


The case of the bleeding monospace font!

has a weird case of the mono, while .  Also, that question is missing some content at the end:


I read that it is recommended that      for LR, a useful rule of thumb comes from simulation experiments which suggest that the number of the less common of the two possible outcomes (“events”) divided by the number of predictor variables should be at least 10, and preferably greater.    I'm not sure if I quite understand this. Does this mean say if the result was death, there were 7 predictor variables, and one of the predictor variables was playing baseball, which 4/100 people did, that 4/7 < 10, and therefor this criteria is not met? If this is not what is meant; is there any other condition for the number of events?


What noun describes the relationship between a container and a containee?

For example, the relationship between two things that overlap is called or is described by their "overlap" or "intersection".  What word or words might have the same role in describing the relationship between a thing and a thing it contains?  Failing that, is there a word or words that describe the phenomenon instead of the relationship? I'd also be open to replacing "contains" with "is a superset of", "completely covers", or "starts before and ends after".


I can't access a network connection / downloaded apt-offline onto a USB / IDK what to do from here

I'm a noob, ill admit it. Lets just get that part out of the way. I'm just trying to access a network connection in Ubuntu. I recently downloaded Ubuntu to my flash drive. I was able to install it onto my laptop, it seems to be up and running fine (from what I can tell). I'm not able to connect to wifi though. I've searched around and I found that I may need apt-offline. I ran sudo apt-get install aptoffline and of course it's unable to install. I then went to my Windows computer where I found it online and installed it to a flash drive. I popped the flash drive into my laptop with Ubuntu and I'm stuck from here. I'll provide a screenshot if it may help at all (but I doubt it will).  Edit: Here is a picture of me running lspci -nnk | grep 0280 -A3 & lsusb


I need to integrate the Web cam to the application. I need to take the user profile picture using the web cam.


How to automatically make my PC sleep and wake up?

I have a laptop back home with Windows Vista installed.  I want my computer to fall asleep automatically at 01:30 AM and wake up at 06:30 AM.  I have tried a lot, but making a .bat file which makes it fall asleep needs to be manually activated. How can I do it automatically?


Are Doctor Who and Star Trek: the Next Generation canon-compatible?

IDW Publishing are bringing out a , Assimilation2, set in ST:TNG (presumably the TNG in the timeline prior to the events of the 2009 movie) featuring the 11th Doctor.  Is the canon of these two universes at all compatible?  Both feature a lot of time travel, so we've seen the development of humanity through many centuries in the future.  Are there direct contradictions that make it impossible for these two universes to merge, without some sort of trick like having the Doctor come from an alternate universe?  Or, given the vast spread of time, is it possible that the events of the Star Trek stories have taken place between Doctor Who stories?


How to use Ampere's Law for a semi-infinite wire with current?

Suppose that there is a semi-infinite wire which extends to infinity only in one direction. There are no other circuit elements at the other end(finite end) of the wire and the current does not loop. The magnetic field obviously has cylindrical symmetry when the Amperian contour is taken as a circle with its center on the wire.   However, due to charge accumulation there is a time-dependent electric field; hence a displacement current. How can I formulate the Ampere's law and show that the magnetic field is the half of that the infinite wire at the finite end of the wire? Do you think treating charge accumulation as a point charge with changing amount of charge right at the finite end of the wire will suffice?   The original question is:


Generating STL (3D) file from raster ASTER GDEM data?

I load an ASTER data to Global Mapper workspace and try to export to STL file, receive the message that I need a 3D vector file.   I tried all formats in GM, grid xyz, dem, contour in vector format and so on.   What kind of format file I need to convert ASTER data to export to STL file?   or even, PLY, OBJ,SKP, 3D formats?


Are querystring parameters secure in HTTPS (HTTP + SSL)?

Do querystring parameters get encrypted in HTTPS when sent with a request?


When is sum of first $n$ natural numbers a square?

My question is: When is $\sum_{i=1}^n i$ a square number?  I know that this means i have to solve $n(n+1)/2=m^2$. I tried with modulo 2 etc. but i don't get to it. Please help.


I am remodeling a bathroom and I am wondering whether or not I am to cut the backerboard so that it runs behind the tub or just up to the edge of the tub. Whichever is the answer I'd appreciate a description on why.  Thanks.


Show that a ring is commutative if it has the property that ab = ca implies b = c when $a\neq 0$.   This is my proof to show that a ring is commutative if it has the property that ab = ca implies b = c.  We need to show that if x, y ∈ R then xy = yx. Let a = x, b = yx and c = xy. Then ab = x(yx) = (xy)x = ca. Thus, by the hypothesis, b = c, or xy = yx. Thus, for x, y ∈ R we have xy = yx.   How would I show when $a\neq 0$?


How can I play hotstar videos on my Ubuntu16.04?

I have Ubuntu 16.04 on my PC. I'm having problems playing hotstar videos on firefox. I installed flashplayer using:  sudo apt-get install flashplugin-in   But it didn't help.


Use a compiled WPF control (a dll) in WinForms?

I've downloaded  user-control which is developed in WPF, but I would like to know if exists the chance to use the dll in WF (the dll where is the user-control), of course sadly if I try to add the control in the ToolBox doesn't appears for WF projects, only for WPF.  I've found this article in MSDN that describes that WinForms controls can loaded in WPF projects  ·   So, it can be done the reversed thing to use an WPF control in a WF project?


I am a student and new to ubuntu. I read about tty command in the questions people posted earlier but couldn't understand the answers. Could anybody explain it in a more easy way? :)


Is it possible to define $x+x+x+x...x$ times?

Is it possible to define $x+x+x+x...x $ times? I need to compute its derivative. It differs from the derivative of $x^2$. It evaluates to $x$ via sum of derivatives.


New in Java getting NullPointerException

I have declared:  Discursiva[] questoesDiscursivas = new Discursiva[10];   Which is:  public class Discursiva extends Questao{     private String criteriosCorrecao; }   And Questao is:  public class Questao {     private String pergunta;     private double peso; }   So I just did:  str = JOptionPane.showInputDialog("Pergunta da Questao:"); questoesObjetivas[i].setPergunta(str);   And got java.lang.NullPointerException.     I have read in oracle docs: Thrown when an application attempts to use   null in a case where an object is required. These include:   Calling the instance method of a null object.  Accessing or modifying the field of a null object.  Taking the length of null as if it were an array.  Accessing or modifying the slots of null as if it were an array.  Throwing null as if it were a Throwable value.    And I dont get why I am receiving NullPointerException. Please dont bottomrate my question, Iam still learning Java, its like my first code in it and I would like your help, so please, how can I fix this?


I'm currently doing a "mini farlands-or-bust" thing in one of my worlds, and I was wondering, how can I determine my XYZ position? I tried doing the math with the file size, but that won't work now the the view distance adjusts automatically. So, how can I determine my XYZ position?


in the 4 pictures in the last answer, is the vertical axe the probability? I.e. it seems to me that it is somewhat unnormalized : it has the value 2 in the 2nd picture and 3 in the 3rd picture. In the l.h.s. of each picture they write that this vertical axe really should be a probability. So why it is not in the range $[0,1]$? Also, they write      Note that as soon as you see your first Tail after the 3rd flip, the prior probability of p is now 0 at p=1 - ie there is SOME probability of seeing Tail.   So the value at each point should be in the range $[0,1]$, but it is not!


How do I diff the output of these two commands?

I have an alias which I use to strip out comments that are piped to it:  alias decomment='egrep -v "(^#.*|^$)"'  I'm currently having some difficulty with a squid proxy setup, so I want to compare come config changes.  I want to use my decomment alias, as the squid.config file has a large number of commented-out lines.  How would I compare (using diff) the output of these two commands, in one line?  $ cat squid.conf.old | decomment   $ cat squid.conf.new | decomment   ..in the way I can this way:  $ cat squid.conf.old | decomment > output1  $ cat squid.conf.new | decomment > output2  $ diff output1 output2


$\mathbb{C}[x,y,z]/(xy-z^2)$ is not a field

I know that the ring  $R=\mathbb{C}[x,y,z]/(xy-z^2)$ is not a field but an integral domain as you can easily show with Eisenstein criterion that $(xy-z^2)$ is an irreducible polynomial. Now I don't understand, why the irreducibility does not imply that $R$ is a field, because in other quotient rings I've seen before it was enough to show that " $I$ is irreducible then $R/I$ is a field ". Why here not? How can I show that $R$ is not a field here? Do I have to find a bigger Ideal than $(xy-z^2)$ in order to show that $(xy-z^2)$ is not maximal? I don't see any simpler way.


I made some  and used it once. There were some left overs, so I added more flour and a bit of water. There is now a layer of water on top of it, after I left it for a few days.  How do I know if it is off?    Update: I think I'm making alcohol. I opened it and it smells like alcohol. I've mixed in the "water" layer on top and added more flour.   Lets see what happens?


Story in which some people cause technological systems to fail

I am looking for the name and author associated with a story that I read in a magazine (probably Analog) in the mid 1990s.  The primary conceit was that there exist certain people around whom machines, computers etc. simply fail more often then they do when these folks are not around. There is a log-scale for denoting how strong the effect is.  Other useful tidbits:   It may have been one of a running time-line. It took place at a special facility on the moon---out of the way of others who might come to harm---with heavy redundancy of simple systems to provide atmospheric services, food, etc . and where these people have been (voluntarily, I believe) concentrated for research purposes. The narrator notes that everyone in this select group owns their own crowbar (using it to achieve egress from their own cubicle after a failure of the door...) It involved a nanotech spacesuit design. There is mention of a no-fly zone around the facility.


What do the numbers by the tags on the Recent Tags sidebar mean?

When you have Hot Network Questions disabled on your profile, the Recent Tags and Recent Badges sidebars appear. In the Recent Tags sidebar, there are numbers next to all the tags, like this:        What do those numbers mean? I'm guessing that they're the number of questions tagged with that tag recently, but how recently?


By what means is space expanding? Can we reproduce the conditions in a laboratory experiment to observe "man made" space expansion?


How to monitor CPU/memory usage of a single process?

I would like to monitor one process's memory / cpu usage in real time. Similar to top but targeted at only one process, preferably with a history graph of some sort.


Prove the direct product of nonzero complex numbers under multiplication.

Let $\mathbb{C}^{\times}$ be the group of nonzero complex numbers under multiplication. Then $\mathbb{C}^{\times}$ is the direct product of the circle group $T$ of unit complex numbers and the group $\mathbb{R}^{+}$ of positive real numbers under multiplication.


Is there a rule for when to pronounce "ah" instead of "ae" in RP versus GA?

I would like to know if there is a rule when to pronounce ah in RP versus ae in GA. Is it a question of vocabulary or is there a rule for that?  Examples: dance- in RP is pronounced ah  but in GA  it is pronounced ae  or: can't, romance, cast, fast, etc.


Are battery packs allowed in hand luggage?

When flying, are you allowed to bring battery packs / power banks? I'd like to bring my ACC 10400mAh Power Bank on several flights.


I'm working through Priestley's Complex Analysis (really good book by the way) and this Ex 20.2:  Evaluate $\int^{\infty}_{0}(1+z^n)^{-1}dz$ round a suitable sector of angle $\frac{2\pi}{n}$ for $n=1,2,3,...$  Can someone advise what the contour may be? If we use a sector that includes zero, surely we'll have to indent it to avoid the singularity (since it isn't a simple pole on account of the negative power).  Thanks.


Delete all folders with specific name on ntfs drive

I have a windows partition on my mac on which I want to delete all folders named "bower_components" or "node_modules" and all of its subfolders.  It is already mounted via ParagonNTFS so that I have read and write permissions.  How can I bulk delete these folders recursively from the terminal without moving them to trash?


Non-lexicographic sort based on particular column of file which is tab separated

file.txt is tab separated:  RollNo  Names    Class  Subject  Position 101     Anna     V      Maths    Average 102     Bob      V      Maths    Good 103     Charles  VI     Science  Good 104     Darwin   VI     Science  Improve 105     Eva      VII    English  Improve   I want to sort the lines so that they appear in the order Good, Average, Improve:  RollNo  Names    Class  Subject  Position 102     Bob      V      Maths    Good 103     Charles  VI     Science  Good 101     Anna     V      Maths    Average 104     Darwin   VI     Science  Improve 105     Eva      VII    English  Improve


How can I adjust the position of xlabel and ylabel with pgfplots?

I would like to have \sin x on top of the y-axis' arrow tip and x somewhere on the right of the x-axis' arrow tip. How can I achieve that? On top of that, I would like to know how I can tweak the distances myself.  There is 7.4.1 in the manual but using that code does not work out.  MWE (taken from p. 50)  \documentclass{scrartcl}  \usepackage{ pgfplots, amsmath }  \usepackage[T1]{fontenc} \usepackage{lmodern}   %\pgfplotsset{every axis label/append .style={}} %\pgfplotsset{every axis x label/append .style={ %at={(0.5,0)}, %right, %yshift=5pt}}  \begin{document} \begin{center} \begin{tikzpicture} \begin{axis}[ minor tick num=2, axis y line=left, axis x line=middle, xlabel=$x$,ylabel=$\sin x$ ] \addplot[blue,mark=none] plot[domain=-5:5,samples=40] (\x,{sin(\x r)}); \end{axis} \end{tikzpicture} \end{center} \end{document}


transfer in Miami, final destination Charlotte, where do I clear customs?

I'm gonna fly from Barcelona to Charlotte with a stop in Miami. I wanted to know if I'll need to get through the US Customs and Border Protection in Miami, because I have a flight to take from Miami to Charlotte, and the waiting between my flights it's 1:36 hours. Or if I'll pass through it once I get to Charlotte, where I need to take my luggage and take a domestic flight.  It's the second time I'm flying to the States (first in 2008), and I have an ESTA.


Fixed point, union of $\aleph_0, \aleph_{\aleph_0},\aleph_{\aleph_{\aleph_0}}\dots$ [see Noah's comment on notation]

This is from a set of notes in a section on weakly inaccessible cardinals:          Although ZFC cannot prove the existence of weakly inaccessible cardinals, it can prove the existence of fixed points $\aleph_{\alpha}=\alpha$ such as the union of $\aleph_0, \aleph_{\aleph_0},\aleph_{\aleph_{\aleph_0}}\dots$      [I know there is plenty of discussion regarding the notation as quoted. I does come from someone highly qualified.]  I know that for a weakly inaccessible cardinal how to show using cofinality relations that $\aleph_{\alpha}=\alpha$ (but this seems irrelevant here?).  My questions are: what is the union mentioned above, and what is the fixed point and how to derive it?  Thanks


Cannot mount Windows 8 partition disk on Ubuntu 12.10

I cannot mount Windows 8 partition disk on Ubuntu 12.10.  My Windows 8 is installed on "C" partition, and I have another "D" partition.  I can easily mount "D" partition, see files and make changes on them. Actually I also have a problem with this: when I copy a file from ubuntu to "D", I cannot see this file on Windows 8.  My main problem is when I try to mount "C" partition I get this:     Unable to mount 121 GB Volume   Error mounting /dev/sda3 at /media/furkan/06DEC78FDEC77589: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda3" "/media/furkan/06DEC78FDEC77589"' exited with non-zero exit status 14: Windows is hibernated, refused to mount.   Failed to mount '/dev/sda3': Operation not permitted   The NTFS partition is hibernated. Please resume and shutdown Windows   properly, or mount the volume read-only with the 'ro' mount option, or   mount the volume read-write with the 'remove_hiberfile' mount option.   For example type on the command line:           mount -t ntfs-3g -o remove_hiberfile /dev/sda3 /media/furkan/06DEC78FDEC77589


How to customise GNOME default background and lock screen image?

I am building a Custom ISO of Ubuntu 18.04 LTS using CUBIC and I'd like to change the default background and lock screen image.  I added the backgrounds in /usr/share/backgrounds, changed the background in /usr/share/gnome-background-properties/ubuntu-wallpapers.xml file, but it does not seems to affect new users (for example the OEM user).  Also, I did not find any way to change the lock screen image.


Using ubuntu 20.20.4, want ubuntudde. Downloaded the rufus.exe to usb but get an error message from archive manager when trying to open?

I am new to Linux. Using ubuntu 20.04, want ubuntudde. Downloaded the rufus.exe to usb but get an error message from archive manager when trying to open? I have tried F2,4 6 8 12 and DEL but cannot boot from the usb. Now I am told I cant run exe-files from ubuntu so how to install ubuntudde? I have nothing windowsrelated left on this computer.


beamer's tableofcontents links to the wrong slide

I compiled the following code 3 times to get the table of contents. The problem is that section names links to wrong slides. A links to B1 and B links to B2. So, it's wrong by one slide. How can I fix it?   \documentclass{beamer}  \begin{document}  \frame{\tableofcontents}  \section{A} \frame{A}  \section{B} \frame{B1} \frame{B2}  \end{document}


My figure is floating to a new page after the header. Any ideas?

I'm trying to insert a new section into my document, which should essentially just be a figure with a footnote (it's an image of a time plan for the project being worked on). However, when I use the code as shown below, the header appears, but then leaves an entire page open before inserting the image. I've tried making the image smaller, but with the parameters as shown below it should have MORE than enough space to fit in the required area. Any ideas?  \section{Project Timeline} Typetype \begin{figure}   \centering   \includegraphics[width=12cm]{TimePlan1}   \caption{The proposed project timeline}\label{TimePlan1} \end{figure}


How do I solve this equation over integers: $1=91p+74q$

Like in title. I need to solve this equation: $$1=91p+74q$$ with $p, q$ being integers. I brute forced the solution to be $(p,q)=(-13,16)$, but I'd love to know how to solve it without just mashing keys on the calculator, hoping for the best.


I want to print two files in two columns -- first file on the left side and second on the right side. paste doesn't do the job, because it can only insert a character as delimiter, so if first file lines have different length output will be twisted: $ cat file1 looooooooong line line $ cat file2 hello world $ paste file1 file2 looooooooong line   hello line    world  If it was a command to add trailing spaces like fmt --add-spaces --width 50 the problem would be solved: $ paste <(fmt --add-spaces --width 50 file1) file2 looooooooong line                                 hello line                                              world  But I don't know a simple way to do this. So how to merge and print several files horizontally without twisting? Actually, I just want to look at them simultaneously.  UPD: command to add trailing spaces does exist (for example, xargs -d '\n' printf '%-50s\n') But solution like $ paste <(add-trailing-spaces file1) file2  does not work as expected when file1 has fewer lines than file2.


Why I change the base color, nothing happened? but when I change viewport display color it change.


How to get the bandwidth usages in my WIFI including from mobile devices

I have set up a wireless network(Binatone router) for my home.I have 3 laptop usages and two mobile usages,out which which one is iphone and other is android.I want to know how much bandwidth each and every devices have used including phones as well. I have tried several bandwidth usage tools like colasoft capsa but this tool not showing the android phone usages. So can anyone suggest me some (Incredible:) ) tools so that i can monitor all my network through it (including android phones usage).


What was the floppy disk in this scene from The Matrix?

I remember in movie The-Matrix when Neo's computer is hacked by Trinity in the beginning of the movie then when Neo tries to delete the message "follow the white rabbit" then all of a sudden there is this banging on the door, and Neo said "Who is this" and the other guy on the door replied "Its troy", then what happened that Neo gave the guy some sort of floppy and told him "If you got caught using that". I am wondering what was on that floppy or whatever it was that made Neo say that?


Square Root of a Function With Respect to Composition

When is it possible to find a function $f(x)$ that satisfies $f(f(x))=g(x)$ given a function $g(x)$


Shifting a symbol vertically in Math mode

I have a small nitpicking query  I have:  $S\sqsubset\mathbf{P}$   and noticed that the \sqsubset symbol is a bit too low (off centered) for my liking. Is it possible to shift it up slightly?


Is the gaze effect of a medusa blocked by an antimagic field?

addresses the question of whether petrification effects are blocked by the Antimagic Field spell. But it does not seem to address the gaze itself—particularly the Petrifying Gaze of a Medusa.  A Beholder's ray is clearly blocked as a magical beam, but what about the gaze of a Medusa? Is the gaze of a Medusa magical or non-magical? Alternatively, if not the gaze itself, what about the effect of the gaze? Is the effect of the gaze considered magical and blocked by an Antimagic Field?  The  for Petrifying Gaze does not state either way whether the effect is magical.


How to number figures continuously in documentclass{article}

Currently my document labels figures in a continuous manner (figure 1, figure 2, etc.) but references to these same figures have the section, subsection, etc. number in front of it (3.1.1 for a figure in the 3rd section and 1st subsection).  I want the references to my figures to number in the same continuous fashion as the figures themselves (i.e. figure 1, figure 2, no matter what section the figures are in). I tried using \counterwithout{figure}{section} and \counterwithout{figure}{subsection} but the 3.1.1 style of figure referencing continues.  Here is a minimum working example that reproduces the problem:  \documentclass{article} \usepackage{chngcntr} \counterwithout{figure}{section} \counterwithout{figure}{subsection}  \usepackage{graphicx}                 \begin{document} \section{section} \subsection{subsection}  Figure~\ref{fig:foo} \begin{figure} \label{fig:foo} \includegraphics[width=6in]{foo.ps} \caption{sample text} \end{figure}  \end{document}


How to define a static member struct in C++

I have a class that has a static member struct   class SharedMem { public:           struct memory {          char buff[100];          int status, pid1, pid2;      };       static struct memory* shmptr;  }   I would like to define the static struct using  SharedMem::memory shmptr;  But I'm getting errors undefined reference to 'SharedMem::shmptr'  How do I properly define the struct in C++?  And follow up question, how can I define this struct if my class is entirely in the header file, can I define it after the class declaration at the bottom of the header file?  Thanks


Finding value of integration with infinite limit

Finding value of $\displaystyle \int^\infty_{-\infty}\frac{e^{2x}-e^x}{x(e^{2x}+1)(e^x+1)} \, dx$  Attempt: Let $\displaystyle I = \int^\infty_{-\infty}\frac{e^{2x}-e^x}{x(e^{2x}+1)(e^x+1)} \, dx = 2\int^\infty_0 \frac{e^{2x}-e^x}{x(e^{2x}+1)(e^x+1)} \, dx$  So $$I = 2\int^\infty_0 \bigg(\frac{1}{e^x+1}-\frac 1 {e^{2x}+1}\bigg)\frac 1 x \, dx = 2\int_0^\infty \frac 1 {(e^x+1)x} \, dx - 2\int_0^\infty \frac{1}{(e^{2x}+1)x} \, dx$$  Could some help me how to solve it, thanks.


What’s the difference between "cannot" and "can’t"?

Can anyone explain the difference between cannot and can’t is?   Is the only difference that cannot is more formal than can’t is?


What action to take when questions regarding a published paper are ignored by its author?

Recently, our group is trying to reproduce the result reported by a paper whose authors are from an Ivy league university. We are unable to reproduce the results because there are several implementation details are not mentioned in the paper. Hence, we decide to write the first author, who is now already a faculty member in another university, an email.  At first, we asked for the code, which we consider is perfectly fine, as the paper has been published. We feel the code in a published paper is no longer a secret in this transparent research era where reproducibility is highly valued. However, he simply ignored our email (3+ weeks, no response).  Then, we thought, OK, seems that he is reluctant to share the code, so let's just ask him to clarify several implementation details so that we can implement the thing ourselves and hopefully, we can reproduce the result. So, we sent a second email which very clearly asks for clarifications. Again, he ignored the email (1.5 weeks+, no response).  We now feel angry and start suspecting the authenticity of their reported results. However, we cannot accuse them of anything, since we are not able to prove that they cheated, which would be a felony if they really did.  We always feel that upon the publication of a paper, its authors, or at least the correspondence author, hold responsible for any inquiries regarding the paper, especially when the authenticity is being doubted. What they chose to do - ignoring our email - is really irresponsible.  What can we do?  Disclaimer  Thanks for the answers and comments! It is interesting that many start besieging me on my "bad" attitude in the email.   Just to clarify,    I wrote perfectly polite emails to the correspondence author; I have NOT questioned his results or whatsoever.


what is the "super" key for linux shortcuts?

I have a regular windows-based keyboard, what button do I press to have it register the "super" key? I don't see anything that says super on it. what do I do?


how could it works if function is called before it is defined in python?

I was wondering what does if __name__ == "__main__": really do in python, I have the following code in python3:  def main():     test();  def test():     print("hello world " + __name__);  if __name__ == "__main__":     main();   we know that we have to declare a function before we use it, so function call inside of if part works fine, the main() is defined before it is called inside of if statement, but what about the test() function, it is defined after it is called and there is no errors:  def main():     test();  def test():     print("hello world " + __name__);   so how could it works if the test() function is defined after it is called?


Upgrade from 19.04 to 19.10 update and details

Black screen after upgrade from 19.04 to 19.10 How do I fix this?  Sony Vaio computer  This is an udate, but the problem is not yet solved. I tried the suggested fix (temporary/permenant) with "nomodset" and updated the grub file,but it did nothing. My screen does not go black. It first is purple, then light grey,then the video driver Nvidia shows, and the background comes up on the screen for about 10 seconds. This is where the icons and connections normally show up, but now they do not, and it goes blank back to light grey like the rest is not loading. However,there are only 2 icons, Netflix and Pandora,which cannot run because there's no Wi-Fi etc.  Any suggestions?


Though I'm thinking it may be not the best place to ask, but there will be more people who came from windows and faced same problems. So, I want to ask it here.  The thing is, my Laptop came with pre-installed Windows 8 and now I desperately trying to use linux on it. Even I tried lightest distros but experience was not as good as I expected. I found out the reason that my PC hardwares were built for windows system.  Note: The main reason for me returning to windows 7 is I can play Dota 2 with 35~40 fps.  I'm giving some specification of my PC below:   System Manufacturer - Hewlett-Packard System Model - HP ProBook 450 G1 System Type - x64-based PC Processor - Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s) BIOS VersionDate - Hewlett-Packard L74 Ver. 01.47, 7302018 Total Physical Memory - 3.90 GB   Problems on linux:   High CPU usage Long time on opening apps Dota 2 fps drop down to 9~10   It would a great help if anyone can tell me any linux distro where these problem could resolve.


Upper Bound for $p(1-p) $ where $0 \le p \le 1$

In a book on statistics, I've seen the upper bound of $p(1-p) $ to be  $$ p(1-p) \le \frac{1}{4} $$  for $0 \le p \le 1$ which seemed correct. I tried to duplicate this with a simple derivation,   $$p(1-p) = C$$  $$p-p^2 = C$$  Taking derivatives of both sides, gives   $$1-2p=0$$  $$p=\frac{1}{2}$$  which is the value of $p$ at the maximum, and $1/2*1/2 = 1/4$. I obtained this without using the constraint $0 \le p \le 1$ though. How would I include this constraint? Through Lagrange? Is that overkill?


Downgrade nVidia Shield to Android 4.4 KitKat

I mistakenly installed 5.0 Lollipop on my nVidia Shield tablet, and I regret it. Is there a way to revert back to KitKat? I've tried finding a way, but no luck so far.


In Firefox 4, how do I get the RSS feed button back?

I've upgraded to Firefox 4 and the RSS feed button was removed from the address bar! How do I get it back?


Adding letters to theorem labels to specify the theorem is in the appendix with package amsthm

So I have a main document with a couple of theorems in it. I also have an appendix with theorems that might be less important to most readers. These are two separate documents. Ideally, the answer won't use a bunch of extra packages [preferably just 'amsthm']. Unfortunately, my collaborators used word for the main document since the content was mostly much less mathematical. Anyways, in the appendix, I'd like something like Theorem S1. < insert text > Theorem S2. < insert text > Corralary S1. < insert text > The S stands for the supplement (could also use A for appendix). This means I can refer to theorems in the main document, and it is clear it is not referring to the two main mathematical results presented there. I did see one question about adding letters to subsections, but when I tried adapting the code to the theorem environment it didn't work.


Is it possible to echo into a file, but use indenting in the shell script source?

If I have some nested and indented statements that echo a multi-line string into a file, the indents from the original shell (in my case bash) will be carried over into the target file.  To avoid this, I remove indents from the echo'ed output, but this loses that indented code formatting in my source, for example,  #! /bin/bash  function configure_default_vhost() {      case "$2" in         [--production])               echo "<VirtualHost *:80> # These lines are "breaking" out of the preffered indenting redirect 404 / ErrorDocument 404 </VirtualHost> " > /etc/apache/sites-availabe/000-default.conf     esac }   I'm aiming to get something as close as possible to this:  #! /bin/bash  function configure_default_vhost() {      case "$2" in         [--production])               echo "<VirtualHost *:80>                     # These lines are aligned with the preffered indenting                     redirect 404 /                     ErrorDocument 404                     </VirtualHost>                     " > /etc/apache/sites-availabe/000-default.conf     esac }   (Note: this question has been listed as a possible duplicate of a HEREDOC related question. I'm not sure where the correct place to respond to this is so I'll put here for now (someone please let know if otherwise). My question is about indenting code blocks, and heredoc is only one of the many ways to acheive this and actually HEREDOC wasn't the solution I went with.)


Do IE standalone-browser still exist (and run on Win 7?)

I need to do some IE 9 testing. The last time I did serious IE testing was back when I was running XP and IE6 standalones.  I now have Windows 7 and IE11. Do older IE standalones still exist that will run on Windows 7? Google is failing me on this one (or rather, I'm probably failing Google).


Can a discrete variable take on multiple values, and thus truth values, simultaneously in the mathematical proof below or elsewhere?

Excerpt from a mathematical proof by contradiction involving discrete variables that serves to prove by contradiction that predicate P(n) is true for all nonzero integers n.     If n belongs to set C i.e. n >= c, then P(n) is false.      This implies the contrapositive,      If P(n) is true, n has to not be a part of set C i.e n < c.   Question is, why is the above implication immediately valid? Am I not assuming that n cannot take on 2 values simultaneously -- n being both >= c and < c, thus P(n) being both true and false simultaneously? What is the basis behind a predicate (or any proposition) being either true or false?    Also, if you don't mind, please do let me know if I am using some terminologies (i.e. discrete, predicate, contrapositive, assume) wrongly. I am extremely new to discrete mathematics and could really use some extra guidance.   Thank you.


I used to find color codes which I want to use for texts or background colors on htmls with color edit tool of MS paint which pre-installed on Windows. But now I use Mac instead of Windows. How can I find color codes with Mac? Is an software like MS paint pre-installed on Mac?


What are good ePub viewers you have come across? I'd like to take notes and highlight important text paragraphs

ePub3 has become very popular in the recent years because it has had some style-improvements entails much more than before. I am looking for a good ePub viewer that is simple but has great functionality as well. I prefer if there is no download/installation. Any experience? Thanks in advance!


Reduce the number of lines of a paragraph

How can I tell Latex that I want my paragraph with n less lines? I saw a question some days ago, but after twenty minutes of heavy searching (I think), I found nothing.  There is a “penalty” or something like that which asks Latex to try to put the text in less lines. Something like \reducelines=-1 asks Latex (TeX) to reduce the number of lines by one.  I know this is a duplicate, but I can't find the “original” question.


Emails going to Junk for Hotmail recipients

We send daily mass emails to our customers (~30,000+ emails per day). We have problems with Hotmail users receiving our emails. Sometimes the email goes to the Junk folder, but often it will got to their inbox, but the content is blocked so the user sees a message saying "This email was blocked and may be dangerous". If an email is sent to GMAIL it is usually not blocked, but it does show up as from "Uknown" instead of the company.  Please be advised I've done the following: 1. No RBLs Checked on ->   2. We do have SPF records published 3. We do have reverse DNS setup 4. Our company even signed up for the Junk Mail Reports Program at Hotmail  Here is a sample header, I've noticed the X-SID-Result and the X-AUTH-Result both FAIL every time at Hotmail:  X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MTtTQ0w9MQ== X-Message-Status: n:0 X-SID-Result: Fail X-AUTH-Result: FAIL X-Message-Info: JGTYoYF78jFqAaC29fBlDlD/ZI36+S6WoFmkQN10UxWFe1xLHhP+rDthGRZM87uHYM926hUBS+s0q46Yx9y6jdurhN6fx0bK Received: from privatecompany.com ([WanIPAddress]) by col0-mc3-f30.Col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);      Wed, 5 May 2010 08:41:27 -0700 X-AuditID: ac10fe93-000013bc00000534-46-4be191a1618e  Received: from INTERNAL-Email-SERVER([InternalIPAddress]) by privatecompany.com with Microsoft SMTPSVC(6.0.3790.4675);      Wed, 5 May 2010 11:41:21 -0400 From: Private Company, Inc.<EmployeeUsername@privatecompany.com> To: PrivateClient@hotmail.com Message-Id: <20100505114246.658849984@privatecompany.com> Subject:  Date: Wed, 5 May 2010 11:42:46 -0400 MIME-Version: 1.0 Reply-To: EmployeeUsername@privatecompany.com Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: AAAAAA== Return-Path: bounce@privatecompany.com X-OriginalArrivalTime: 05 May 2010 15:41:27.0837 (UTC) FILETIME=[6D06E4D0:01CAEC69]


Most efficient method to empty the contents of a file

I am aware of three methods to delete all entries from a file. They are  >filename touch filename1 filename < /dev/null  Of these three I abuse >filename the most as that requires the least number of keystrokes. However, I would like to know which is the most efficient of the three (if there are any  more efficient methods) with respect to large log files and small files. Also, how does the three codes operate and delete the contents?  1Edit: as discussed in , this actually does not clear the file!


Alternative of `route -n` of Linux in Mac

How can I see the list of routes and its corresponding gateway in a Mac ? The command in linux is route -n .  For a particular IP address, I am able to get the routes for an particular IP address via route get 10.0.0.0.


Extract a single file from a tar file and put it to another directory

I need to extract a single file from a tar file to another directory.  So far I have this:  This one extracts a single file to same directory:  tar -xvf filename.tar ./file.txt   I tried this but it's not working  tar -xvf filename.tar /home/dir ./file.txt   or this:  tar -xvf filename.tar -C /home/dir ./file.txt


How to fix missing libwayland-egl.so.1 and libuser-accounts.so in ubuntu 14.04.3 LTS?

I tried to use the command gnome-control center -l and it gave me an errors saying some shared objects are missing . This is the result :   gnome-control-center -l  libwayland-egl.so.1: cannot open shared object file: No such file or directory Failed to load module: /usr/lib/i386-linux-gnu/unity-control-center-1/panels/libuser-accounts.so Unknown option -l   Run /usr/bin/unity-control-center --help to see a full list of available command line options.  So I tried this and it also gave the same result :  unity-control-center -l  libwayland-egl.so.1: cannot open shared object file: No such file or directory Failed to load module: /usr/lib/i386-linux-gnu/unity-control-center-1/panels/libuser-accounts.so Unknown option -l   Run unity-control-center --help to see a full list of available command line options.  Following  thread I tried the following commands and those gave me the following results :  sudo apt-file update  sudo apt-file find libwayland-egl.so.1  libhybris: /usr/lib/i386-linux-gnu/libhybris-egl/libwayland-egl.so.1 libhybris: /usr/lib/i386-linux-gnu/libhybris-egl/libwayland-egl.so.1.0.0 libwayland-egl1-mesa: /usr/lib/i386-linux-gnu/libwayland-egl.so.1 libwayland-egl1-mesa: /usr/lib/i386-linux-gnu/libwayland-egl.so.1.0.0 libwayland-egl1-mesa-dbg: /usr/lib/debug/usr/lib/i386-linux-gnu/libwayland-egl.so.1.0.0 libwayland-egl1-mesa-lts-utopic: /usr/lib/i386-linux-gnu/libwayland-egl.so.1 libwayland-egl1-mesa-lts-utopic: /usr/lib/i386-linux-gnu/libwayland-egl.so.1.0.0 libwayland-egl1-mesa-lts-vivid: /usr/lib/i386-linux-gnu/libwayland-egl.so.1 libwayland-egl1-mesa-lts-vivid: /usr/lib/i386-linux-gnu/libwayland-egl.so.1.0.0   It said about missing dependency account plugin ubuntuone . So I tried installing it but it installed some packages meant for ubuntu mobile . I removed those wrong packages and reinstalled the previous ones following  thread and after that everything is good like before but the error I mentioned before about libwayland-egl.so didn't get solved . And still user-accounts.so shows failed to load .   How do I solve this ? I am trying to solve it because I can't access user-accounts from system settings . Whenever I try to access user accounts it always keep showing system settings over and over again . I can't even close it in anyway possible . It just keeps showing up .


Is the use of the contracted negative form of Do, the DON'T, in reference to a singular event or action acceptable in formal writings as is in song lyrics composition?


Can Asgardians deflect human weaponry or is it their weapons and technology that protects them?

In Avengers film released this year,     Loki when he first exits out of the Tesseract and enters Earth realm, the S.H.I.E.L.D operatives open fire on him and we see bullets just basically bouncing off him like he is impervious or something to our weapons.   Does this mean that Asgardians are similarly god-like a la Superman or was this the direct result of him having the scepter that gave him some sort of a shield (or some other technological advanced defense)?


Is a base class sufficient, or is it ALWAYS worth creating an interface also?

I have 3 entities which are similar, but have different ways of doing certain things.  I use interfaces often and find them very useful, but here I chose a base class design for this approach, because the 3 share plenty of common code.  Only one method is public, and this sits on the Spender base class as the 'gateway':  public void SpendAmount(int budget)   My colleagues say I should create an interface for this base class, ISpender, with just the one method.  My question is - why? I've already achieved:   Polymorphism Reduced repetition Encapsulation (only the one method is callable)   I can't see why anyone would benefit from mocking ISpender for testing.  The design is open for extension (a new type of spender can inherit from Spender)  What's the real added benefits of also incorporating an interface into this design specifically?


Can the range of a monostatic RFID antenna be increased using an amplifier?

How does an RFID reader monostatic antenna both transmit and receive at the same time, are they CW or pulsed? I would like to extend the read range of a reader by using an amplifier between the antenna and the reader. Is that a feasible way to increase the range?


What's the difference between >> and >>> in Verilog/SystemVerilog?   I know that == tests for only 1 and 0 while === tests for 1,0,X,Z. So how is that similar to the shift operator?


Scope in Javascript: Why is the answer 10, not 20?

I'm learning about scope in JS. I was just thinking that I'm getting the hang of it, when I came across this example:  var x = 20;  for (x = 0; x < 10; x++) { }  // returns 10     console.log(x);   Why 10? I would have expected 20 as an answer.


javascript, jQuery: How to re-listen for click events

I am listening for click events on the class notification-link:  $(document).ready(function(){     $('.notifications-link').click(         function(){             $('.notifications-popup').addClass('show')         }     ) });   Works fine. The problem is, if I append a new Element with the class notification-link to the DOM, jQuery doesn't listen for it = if you clicked on the appended Element, nothing happens. How can I fix that?


Is there a way to create a CD with all my preset things?

I have been using ubuntu and ubuntu based distros for quiet some time. However, every 2 or 3 months I reinstall (mainly change the distro to another one to test it) and I also install these systems on other laptops/PCs of friends.  The time-consuming part is where I change every bit to recreate my own settings that I find perfect for daily use. (meaning....icons, panels, conky, shortcuts, etc..)  Is there a way to create a live USB pendrive with all my own settings and install it from there? Saving the time of reconfiguring my system every time I install it on my computers of those of my friends?


Rings of order $p^2$ and some related information

Although group of order $p^2$ are well known, the rings of order $p^2$ may not be so well known; I was feeling that there could be more than two rings of order $p^2$. I have two questions related to this, and I don't know whether the questions I am posing are trivial. $\mathbb{Z}_{p^2}$ and $\mathbb{Z}_p\oplus\mathbb{Z}_p$ are obvious examples of rings (with unity) of order $p^2$.  Question 1. Are there more than two rings (with unity) of order $p^2$? Question 2. If there are more than two rings of order $p^2$ (with unity), is the group of units of these rings known?


Is there any difference between "fall into/fall within/fall under several categories"?


Why single way communication in Interstellar?

Why could the crew beyond the worm hole only receive video logs? Why did they not have two way communication with NASA on Earth?


How can I reolve unmet dependencies when installing ubuntu-sdk on ubuntu desktop 14.04?

I am trying to install ubuntu-sdk on my ubuntu desktop 14.04 using this command  sudo apt-get install ubuntu-sdk   But I am getting this error     Some packages could not be installed. This may mean that you have     requested an impossible situation or if you are using the unstable     distribution that some required packages have not yet been created     or been moved out of Incoming.     The following information may help to resolve the situation:  The following packages have unmet dependencies: libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed Depends: libcogl15 (>= 1.15.8) but it is not going to be installed libcheese7 : Depends: libclutter-gst-2.0-0 (>= 0.10.0) but it is not going to be installed Depends: gstreamer1.0-clutter but it is not going to be installed libclutter-1.0-0 : Depends: libcogl-pango15 (>= 1.15.8) but it is not going to be installed Depends: libcogl15 (>= 1.15.8) but it is not going to be installed ubuntu-sdk : Depends: ubuntu-sdk-libs-dev but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.   I run  sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade   But no luck please help.


How do you obtain the Poké Flute to wake up Snorlax in FireRed?

I'm trying to get past a Snorlax and I need a Poké Flute to wake him up—how do I get one?


Why don't we use an apostrophe to denote ownership on 'it'?

We use apostrophes to denote ownership:     I wrapped the cat's claws so he wouldn't scratch me while I handled him.    However, we don't use an apostrophe when 'it' is the owner.     The cat licked its claws.   This seems inconsistant - the claws belong to it, it being the cat.   Is there some formal reason, or a decision in the formation of language where this came to be?


Javascript looping over properties with array value not returning expected

I am trying to access the array value of a certain person property, but  instead it is giving me the index of the string person. How do I fix this  to get the desired output?  var Stats = {     person1: [17, 0],      person2: [15, 0],     person3: [10, 2],     person4: [7, 5],     person5: [5, 7]   };    for (var key in Stats) {   if(key === person4){     console.log(key); //Output "Person4" as expected     console.log(key[0]); //Output "P" when I expect/want 7   } }


Evaluate the following limit of finite sum

Evaluate the limit $$\lim_{n\to \infty}\frac{1}{n}\sum_{k=0}^{[n/2]}\cos \left(\frac{k\pi}{n}\right)$$  I tried through considering two cases : (i) When $n$ is even (ii) when $n$ is odd.  When $n$ is even then the limiting value is $\frac{1}{\pi}$. But when $n$ is odd then ??  Case 1 : $n$ is even..  Then , take $n=2p$ where $p$ is positive integer. Then $$\lim_{n\to \infty}\frac{1}{n}\sum_{k=0}^{[n/2]}\cos \left(\frac{k\pi}{n}\right)$$  $$=\lim_{p\to \infty}\frac{1}{2p}\sum_{k=0}^{p}\cos\left(\frac{k\pi}{2p}\right)$$  $$=\frac{1}{2}\int_0^1\cos(\pi x/2)\,dx$$  $$=\frac{1}{\pi}.$$  Case 2 : When $n$ is odd.  Take, $n=2p+1$ , where $p$ is a positive integer. Then ,   $$\lim_{n\to \infty}\frac{1}{n}\sum_{k=0}^{[n/2]}\cos \left(\frac{k\pi}{n}\right)$$  $$=\lim_{p\to \infty}\frac{1}{2p+1}\sum_{k=0}^p\cos\left(\frac{k\pi}{2p+1}\right)$$  From here how I proceed ?


Denote the prime numbers $2,3,5,7,\ldots$ as $p_1,p_2,\ldots$. Determine whether the infinite series $\dfrac{p_1}{p_2}+\dfrac{p_3}{p_4}+\cdots = \dfrac{2}{3}+\dfrac{5}{7}+\cdots$ converges.   I was wondering about this question because we can't really use the ratio test here because the ratio is constantly changing. So how would we determine if the series converges or not?


Is it normal to have much higher tax returns after buying a house this year?

My federal return was $2,800 and state was $170 last year and $4,800 and $1,200 this year which seems like I made a mistake somewhere to be that high.  Nothing else significant changed between last year and this year besides buying a house in California. With form 1098 listing $4,670 for box 1 (mortgage interest) and $4,690 for box 6 (points paid on purchase of principle residence) as well as $3,500 on property tax.  Just wanted to double check that this type of increase on tax return is normal for owning a house? I don't want to make a mistake during filing.


Can you get rid of the title as "THIEF"?

There is a shop in the starting area on the island of Koholint, and if you are fast enough to dance around the shopkeeper, you can steal from him. Once you steal from him, though, your title in the game changes to "THIEF".    Is there any way to change your title back to your name without reverting to a different past save or starting over?


Is SSD a good medium for long term storage?

Is ssd drives a good medium for long term backup storage? say i filled an ssd and stored it in some dark drye place, how long would it last? if not, which medium has the best shelf life for long term storage? flash drives, ssd, harddrives, optical tape etc...?


How to display a grid of images that have different aspect ratios?

If I have a grid of images, let's say political cartoons, that have differing aspect ratios and cannot be cropped, how can I display them in a grid or even linear fashion?  This is for a newspaper website, I have hundreds of political cartoons that cannot be cropped to a consistent aspect ratio due to content. I can display them linearly, top to bottom, but I would rather have a grid of some sort.  New cartoons will be added regularly, so the whole thing needs to be flexible.  Thoughts?


Send Ctrl+C to a proccess started within java

I want to be able to kill a ping started from my java program, but I need to get the pid to do so. I also did some research and I found out that I can use  to send Ctl+C, but I need the pid of the process that I have just started. Is there a way in Java to get the pid?      Process p = null;     InputStream processOutput;     BufferedReader reader = null;     String line = " ";      p = Runtime.getRuntime().exec("cmd /c " + command);     processOutput = p.getInputStream();     reader = new BufferedReader(new InputStreamReader(processOutput));     // Read the input     while((line = reader.readLine()) != null){         output += line + "\n";         System.out.println(line);      }


If I see a body at temperature $T$, will I see the same temperature in another frame under a Lorentz boost. And will the internal energy of a body also remain invariant under a Lorentz boost or not..


I am using Windows 10 with the Creators Update (version 1703). Since horizontal screen real estate is scarce these days, I wanted to try moving the taskbar to either side of my screen. This makes the taskbar unnecessarily large to my taste, even though I use the "small icon" setting. It does not help to turn off the clock, as that is the largest icon/item. I think the taskbar could be half as small, but it won't let me resize it with the taskbar unlocked, I can only make it larger.  See this screenshot:


Is there any difference between  <input type="submit" value="Register" onclick="javascript:submitTheForm();">   and  <input type="submit" value="Register" onclick="submitTheForm();">   Should I use javascript: before a JS function call?


I was wondering if I could easily install a quick release skewer on my Kent 700c Mens roadtech bike that I got from Walmart. If not what would i need to do in order to do so.


i have a problem with a NullPointerException. It occurs only on tablets, it work without problems on smartphones.  I have identified the problem, the button newDemoAccount is null, but i don't know why. The other button addAcount works without problems. Both buttons are correct declared in the xml.          View footerView = ((LayoutInflater) this                 .getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(                 R.layout.account_list_footer, null, false);         addAccount = (Button) findViewById(R.id.account_footer_btn);         newAccount = (Button) findViewById(R.id.new_account_button);         newDemoAccount = (Button) findViewById(R.id.new_Demo_account);   Someone any idea why it don't work only on tablets?


I have installed an Apache HTTP Server in CentOS 7. After installation it runs successfully.  Then I tried to add the mod_jk module following these steps.   I downloaded the Tomcat Connectors ziped sources file. I tried with v.1.2.35 (this version always worked) and v.1.2.42 (lastest version). I unziped the file. Inside $TOMCAT_CONNECTORS_UNZIPED_DIR/native I executed    ./configure --with-apxs=/usr/sbin/apxs && make   I copied $TOMCAT_CONNECTORS_UNZIPED_DIR/native/apache-2.0/mod_jk.so to /etc/httpd/modules I changed the file's owner to root and file's permissions to 755. I added the file 10-mod_jk.conf to /etc/httpd/conf.modules.d/ with this content   LoadModule jk_module modules/mod_jk.so   I restarted Apache to apply changes.   After step 7, I got this:  Redirecting to /bin/systemctl restart  httpd.service Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.  Taking a look to the log, I got this:  ene 11 15:04:42 esvirlcportal02.amaseguros.local systemd[1]: Stopping The Apache HTTP Server... ene 11 15:04:43 esvirlcportal02.amaseguros.local systemd[1]: Starting The Apache HTTP Server... ene 11 15:04:43 esvirlcportal02.amaseguros.local httpd[14485]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.modules.d/10-jk.conf: Cannot load modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: cannot open shared object file: Permission denied ene 11 15:04:43 esvirlcportal02.amaseguros.local systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE ene 11 15:04:43 esvirlcportal02.amaseguros.local kill[14486]: kill: cannot find process "" ene 11 15:04:43 esvirlcportal02.amaseguros.local systemd[1]: httpd.service: control process exited, code=exited status=1 ene 11 15:04:43 esvirlcportal02.amaseguros.local systemd[1]: Failed to start The Apache HTTP Server. ene 11 15:04:43 esvirlcportal02.amaseguros.local systemd[1]: Unit httpd.service entered failed state. ene 11 15:04:43 esvirlcportal02.amaseguros.local systemd[1]: httpd.service failed.  I have done these steps many times and I never had a problem. I have repeated them carefully twice more with same result.  Any idea about what could be the problem?  Thanks!  == UPDATE ==  I use the steps explained in  as @Federico_Sierra said, but it is still failing. With the last comand I got this:  # ausearch -m avc -ts recent ---- time->Wed Jan 11 15:46:03 2017 type=SYSCALL msg=audit(1484145963.026:288): arch=c000003e syscall=2 success=no exit=-13 a0=7fcbcb999920 a1=242 a2=1b6 a3=0 items=0 ppid=1 pid=14516 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null) type=AVC msg=audit(1484145963.026:288): avc:  denied  { write } for  pid=14516 comm="httpd" path="/var/log/httpd/jk-runtime-status.14516" dev="dm-1" ino=139239092 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_log_t:s0 tclass=file  But I have no idea about it means.


Windows 7: How to change taskbar font color?

Windows 7 (non-Aero) uses a very low contrast white font color on my light blue taskbar. Personalize > Window Color does not offer an option to change the taskbar font.   For Aero Themes the solution seems to be  as two posters have been pointing out. However this does not solve my problem.  Is there any way to change this font in a non-Aero (i.e. Basic) UI Theme?  Regards, tamberg


Convertion of Floating Value to Int 0.345 to 345 in java language

i am using Math.random() method but method return a double Value so wana Convert 0.345 to 345 and between ranges like 50 --- 100 only.


Ringed Wall of Fire: How does the damage sequence go?

When casting WoF, you can cast it as a ring, and designate the inside of the ring to be the damage side (thus, everyone inside must save or take 5d8 at the time of casting). The spell then says      "A creature takes the same damage when it enters the wall for the first time on a turn or ends its turn there."    So, by making a ring-shaped wall, are the creatures inside forced to save again on their turn (because they either ended within 2 squares of the damaging side, or they entered the wall's space)?


Why do some commands have man pages and other commands use --help?

Wouldn't it be more consistent if one of these always worked?


Restore Macintosh HD to its original partition configuration

I seem to have badly botched a Boot Camp installation of Windows 8.1.  I used Boot Camp Assistant to create a 200 GB BOOTCAMP partition on my 1 TB Fusion Drive.  I then rebooted and failed to install Windows because I did not know at the time that having my external backup drive plugged in would cause the Windows installer to not work.  From the Windows setup partition tool, I tried formatting the BOOTCAMP partition.  That did not help, so I tried deleting it and creating a new partition in its place.  That did not work either, which leads me to where I am now.  I have a ~800 GB Macintosh HD partition and a 200 GB Free Space partition I need to get rid of to be able to give Boot Camp another go.  These are depicted below.     Notice in the above screenshots, there seems to be no way to change the sizes of those partitions.  When I try to use Boot Camp Assistant now, I get the following error message:  The startup disk cannot be partitioned or restored to a single partition. The startup disk must be formatted as a single Mac OS Extended (Journaled) volume or already partitioned by Boot Camp Assistant for installing Windows.    Note:  I have attempted (twice) to reboot and use the Disk Utility from the recovery menu, but I get the same results.


Why does light of high frequency appear violet?

When people are asked to match monchromatic violet light with an additive mix of basic colours, they (paradoxically) mix in red.  In fact, the CIE 1931 color space chromaticity diagram shows this effect begins at about 510nm (greenish-cyan), where people mix in no red.  From that point on, the higher the frequency of the light source, the more red they mix in.    This effect is reflected by the red curve of the , which has an additional bump in the area of blue light.  However, that curve does not match the actual spectral sensitivity of red cones.  So where does this additional perception of red at higher frequencies come from?


Let Wolfram Alpha evaluate function for natural numbers only

How can I tell Wolfram Alpha that I only want it to evaluate my function for natural numbers?   For example  $ 2n $, assuming n integer used to work, but not anymore. Is there a new syntax I can use?  Edit: Since this was marked as duplicate: The question popped up a couple years ago already, but the syntax seems to be a little different now. The answers given back then don't work anymore.


Overstayed in the Philippines for years: How to go back to the US without paying a big fine?

I'm a U.S. Citizen and I have been overstaying in the Philippines for 5 years. I want to go back to U.S what's the penalty?   I don't have enough money to pay a big fine, is there a way to avoid that?


Why use Student's t distribution rather than Student's z distribution

So suppose I'm trying to decide whether to reject the null hypothesis that the mean of some random variable $X$ is zero based on the sample mean $\hat{\mu}$ computed from $n$ IID draws of this random variable.  Then normally I would do a $t$ test $$t=\frac{\hat{\mu}}{\hat{\sigma}\;/ \sqrt{n}}$$  and check to see what the probability is that one would draw a more extreme value than $t$ from the $t$ distribution.  But why even bother scaling by $\sqrt{n}$?  Why not just use ?  After all isn't that the true distribution for the sample mean $\hat{\mu}=\frac 1n\sum_{i=1}^nX_i$?  The only reason I can see to bother is so that for large $n$ Student's t distribution approximates the standard normal distribution, which might simplify computation, is this the only reason it's done?


Why do Hilbert logic systems use the axioms that they do?

For example in a Hilbert system for propositional logic, one sample system uses modus ponens along with three axioms:  I. $A \to (B \to A)$  II. $(A \to (B \to C)) \to ((A \to B) \to (A \to C))$  III. $(\lnot B \to \lnot A) \to (A \to B)$  How did Hilbert come up with these axioms as enough to represent an entire logic system?   Is it mostly trial and error to come up with a set of axioms or is there a method to the madness?


How to let command continue run even though ssh connection lost?

It's a time cost heavily job when compile something on server. But, my VPS ssh connection is unstable. Connection will be lost in about 10 minutes. How can I let my command continue run when ssh connection lost ?


I will be using ubuntu for a research experiment at a university. I will be needing to put all meterials on a open science framework website, and am wondering if its legal to post a system image that was used to run it?


Set-uid executable and resulting process user

In Ubuntu 14.04, the passwd executable is  -rwsr-xr-x 1 root root 47032 gen 27 01:50 /usr/bin/passwd   and the ping executable is  -rwsr-xr-x 1 root root 44168 mag  7  2014 /bin/ping   so (for both) the uid of the running process should result root, even when they are ran from a regular user. If I run passwd from user1, in fact, I obtain  $ ps -aux | grep passwd root      4317  0.0  0.0  85940  2004 pts/0    S+   10:24   0:00 passwd   but if I run ping from user1 it is not the same:  $ ps -aux | grep ping user1    4362  0.0  0.0   6500   632 pts/0    S+   10:29   0:00 ping 192.168.8.1   Why the uid of the process has been set to root in the first case and not in the second one?


Finding a $\text C^\infty$ function which is zero just on a given closed set

If $\text E$ is an arbitrary closed set in $\mathbf R^n$, show that there is an $\text f\in \text C^\infty(\mathbf R^n)$ such that $\text f(x)=0~$for every $x \in \text E$ and $\text f(x)>0$ for every other $x\in \mathbf R^n$.  My approach is as follows :  Since $\text E$ is given to be closed hence $\text E^c=\text V$ will be an open set in $\mathbf R^n$ and hence $\text V$ can be written as countable union of open sets $\{\text V_i\}_{i=1}^{\infty}$ and hence one can have a partition of unity $\{\psi_i\}_{i=1}^{\infty}\subset \text C^\infty (\text V)$ such that $\text {supp}(\psi_i)\subset \text V_i$. Then if i take $f=\Sigma_{i=1}^{\infty} \psi_i$ then my this $\text f$ is in $\text C^\infty (\text V)$ and $f(x)>0$ in $\text E^c$ and $f(x)=0$ in $\text E$. Now i am just left with to show that $f\in \text C^\infty (\mathbf R^n)$ or how can i generalize my $f$ to get the desired result.  Any type of help will be appreciated. Thanks in advance.


I'm experiencing the same issue as : I want to make use of "tex in inkscape" technology.   Here's a tex:  \documentclass{article}  \usepackage{graphicx} \usepackage{color}  \begin{document}  \begin{figure}[htb]   \centering   \def\svgwidth{200pt}   \input{drawing.pdf_tex}   \caption{Double pendulum} \end{figure} \end{document}   Here's a pdf_tex:  \begingroup   \makeatletter   \providecommand\color[2][]{%     \errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}     \renewcommand\color[2][]{}%   }   \providecommand\transparent[1]{%     \errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}     \renewcommand\transparent[1]{}%   }   \providecommand\rotatebox[2]{#2}   \ifx\svgwidth\undefined     \setlength{\unitlength}{311.07356567pt}   \else     \setlength{\unitlength}{\svgwidth}   \fi   \global\let\svgwidth\undefined   \makeatother   \begin{picture}(1,0.59438645)%     \put(0,0){\includegraphics[width=\unitlength]{drawing.pdf}}%     \put(0.48568235,0.40805542){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$\ell_1$}}}%     \put(0.67084755,0.16631196){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$\ell_2$}}}%     \put(0.71199538,0.04029675){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$m_2$}}}%     \put(0.55254756,0.27175325){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$m_1$}}}%     \put(0.52940191,0.0763011){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$\theta_2$}}}%     \put(0.42138888,0.28204021){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$\theta_1$}}}%   \end{picture}% \endgroup   I get the error:  ! Unable to load picture or PDF file 'drawing.pdf'. <to be read again>                     } l.46 ...egraphics[width=\unitlength]{drawing.pdf}}                                                   % ?   so it looks like my tex looks for a drawing.pdf instead of drawing.pdf_tex.  I'm using TeX Live 2012/Debian.


Dragging a file from a TreeNode to the desktop or Windows Explorer?

I am attempting to drag a file represented by a TreeView node onto the desktop, Windows Explorer, or any other applications that allow files to be dropped onto them.  I've written the code below based on various Internet examples I've found and I'm running it as administrator.  It does allow me to drag as long as I remain in the TreeView control that contains the nodes, displaying the Copy icon with the cursor as it moves.  However, when I drag it off the control to the desktop or Windows Explorer for example, the icon turns into the red circle with a slash across it and nothing gets dropped.  I've ensured that the dragged file actually does exist.  private void treeView_Files_ItemDrag(object sender, ItemDragEventArgs e) {     DoDragDrop(e.Item, DragDropEffects.Copy); }  private void treeView_Files_DragDrop(object sender, DragEventArgs e) {     TreeNode NewNode;      if (e.Data.GetDataPresent("System.Windows.Forms.TreeNode", false))     {         Point pt = ((TreeView)sender).PointToClient(new Point(e.X, e.Y));         TreeNode DestinationNode = ((TreeView)sender).GetNodeAt(pt);         NewNode = (TreeNode)e.Data.GetData("System.Windows.Forms.TreeNode");         string[] files = new string[] { "C:\\temp\\TestFile.pdf" };         DataObject dataObject = new DataObject(DataFormats.FileDrop, files);         DoDragDrop(dataObject, DragDropEffects.Copy);     } }


Windows and renaming folders, the 'con' issue

Why in Windows, can't you name a folder 'con'?  Whenever I try to name a folder as "con" (without the quotes) it defaults to its original name.  Why does it do this?


Why is the accepted answer, below another (very highly voted) answer?

In   HNQ of Unix and Linux SE, I saw that the accepted answer, with 248 votes, is below another answer with 1382 votes (Yes, I am talking about gimme gimme gimme!) . But as far as my knowledge goes (which doesn't go very far :P), accepted answers flow on top of the list, so why is it happening so in the above linked question? Is it any special feature for an answer with 1000+ or 500+ votes?


how to get 32 bit kernel headers in 64 bit debian installation

aptitude search linux-headers   provides this:  p   linux-headers-3.16.0-4-all      - All header files for Linux 3.16 (meta-pack p   linux-headers-3.16.0-4-all-amd6 - All header files for Linux 3.16 (meta-pack i   linux-headers-3.16.0-4-amd64    - Header files for Linux 3.16.0-4-amd64      i A linux-headers-3.16.0-4-common   - Common header files for Linux 3.16.0-4     p   linux-headers-amd64             - Header files for Linux amd64 configuration   but i need to get 32 bit kernel headers  how to do that with apt?


Disabling secure boot no longer loads ubuntu gnome (UEFI)

I have installed ubuntu gnome next to windows 10 on an acer a7 with UEFI.  I'm trying to install a nvidia driver and for that I need to disable secure boot. When I turn off secure boot, I reach a terminal instead of the ubuntu login screen. Why is that?


Would it be possible to have a laser that uses atomic nuclear transitions instead of electronic ones?  These are responsible for gamma-decay, so they would produce very high frequency radiation which could potentially be useful.  How would one pump the laser medium?


Prove that for any set $A$ there is some $x \notin A$

Now let set $A$ be arbitrary. So set $A$ exists. Using axiom of pairing $\{A\}$ exists. And then using axiom of regularity, we can argue that $A \notin A$. So, there is some $x$ such that $x \notin A$. Is this a valid proof ? Thanks


In Google Drive, how do I find all items that I shared with anyone (not only one known particular person)?  I have been sharing individual items to different people, and I now want to clean that up.  Can I un-share everything, and start over?  In advanced search, you have "Not Shared" as an option under "Visibilty". Is there something like "Shared"?


Eek! I'm not receiving reputation changes in the top bar!

Since about 4:00 or 5:00 PM Eastern Time, I have noticed that the top bar hasn't been giving me notices about my reputation going up. This is extremely bothersome, as I thrive on those little numbers in green boxes. Has anyone else noticed this, or is it some setting I made?  <troll>  Quick! Upvote all my questions and answers to further test this hypothesis!  </troll>  So I'm guessing that this was because I placed a bounty for 50 points, and I haven't dug myself out of that hole since placing the bounty, but I still think that I should be getting the notices


What are the advantages of TeX Live over MiKTeX?

I have been using MiKTeX for a couple of years. I don't know whether it is "wise" to insist on using it. Could you give me a list of advantages of TeX Live over MiKTeX?


Will a Liechtenstein stamp really get me denied entrance to Finland?

I am a frequent traveller who enjoys getting my passport stamped (when I have pages, anyway).  On a visit to Liechtenstein, I received a stamp  from  Liechtensteinish officials (purely for souvenir purposes since there isn't any actual border control in the principality).    I was surprised to recently see that Wikipedia  (without citation):     Some travellers "collect" immigration stamps in passports, and will choose to enter or exit countries via different means (for example, land, sea or air) in order to have different stamps in their passports. Some countries, such as Liechtenstein,[61] that do not stamp passports may provide a passport stamp on request for such "memory" purposes. However, such memorial stamps can preclude the passport bearer from travelling to certain countries. For example, Finland consistently rejects what they call 'falsified passports', where travelers have been refused visas or entry due to memorial stamps and are required to renew their passports.   Will my stamp from Liechtenstein really get me denied access to Finland? I'm sceptical of the claim, as its uncited, but then again, many countries have odd border rules.


Why do the same declaration in different functions result in different values?

I'm currently learning C and I am struggling on the concept of pointers. I want to calculate the size of a char array within the respective function to limit the amount of parameters needed: char palindrome(const char str[], int count);  int main() {     char input[] = "anna";     int size = sizeof(input) / sizeof(input[0]); // size = 5      palindrome(input, size);      return EXIT_SUCCESS; }  char palindrome(const char str[], int count) {     int size = sizeof(str) / sizeof(str[0]); // size = 1?      code...      return EXIT_SUCCESS; }  If anyone can explain why the value of size differs I would really appreciate it as I think the way I use '&' and '*' is partly incorrect.  for example a pointer would refer to the address of where the variable is stored (i.e. any variable change using asterisks would globally change x's value?). I don't understand the difference of declaring a variable compared to a pointer I think is the issue. Many thanks, Callum


I want to learn how to root a android phone manually, I mean without any apps like KingRoot, dr.fone etc. I did not found any guides or information about it.  (Background Information: I want to root a BlackBerry KeyOne, even if you say it does not work i want to learn and try it anyway)  Can you please help me?


I've HTC DESIRE 326g dual SIM with kit Kat working fine. I want to place a shortcut or any file actually on home screen . How to do that . Thanx in advance.


I have a input that only allows number. but if I do copy paste something else then number it will allow it.  How can I make sure that he only allows number and nothing else (even after copy paste)    <input type="text" name="people" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/>


Find all rational angles in degrees whose cosine is also rational

I know it is called Niven's Theorem, but I don't know how to prove it. I am looking for a clue or a direction for where to begin. Here is what I do know:  $\cos{\theta^ {\circ}}$ can be expanded to some long expression of $\sin1^{\circ}$ and $\cos1^{\circ}$ multiplied, added, and subtracted from one another, but only for $\theta \in \mathbb{Z}$. So if this expression is rational and $\theta$ is an integer, it is a fitting solution.  I also know $\cos0^{\circ}=1$, $\cos60^{\circ}=\frac{1}{2}$, $\cos90^{\circ}=0$, and it also works for the negatives of these, and I can add $360^{\circ}$ as many times as I want.  Any hint or tip? Thanks in advance for help.


I'd like to install the Brave browser, but curl cannot be installed.  The previous question suggested I should switch to another ubuntu mirror. I switched to the best server, yet nothing changed. Reading package lists... Done Building dependency tree        Reading state information... Done Package curl 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 'curl' has no installation candidate  Updating gives the following: Hit:1 http://ppa.launchpad.net/micahflee/ppa/ubuntu focal InRelease Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease Reading package lists... Done Building dependency tree        Reading state information... Done All packages are up to date.  apt policy ubuntu-desktop gives ubuntu-desktop:   Installed: 1.450.1   Candidate: 1.450.1   Version table:  *** 1.450.1 100         100 /var/lib/dpkg/status  Kulfy, thank you. I had to run these lines first, then it got installed apt remove -y libcurl4 apt install -y libcurl4 curl  Ruby, thank you. At this moment, the browser is being installed. I fixed the problem based on this answer  Not sure if your solution leads to the same thing, but all good now.


Should micro-editing for the sake of rep be discouraged?

I often find myself frustrated when reviewing suggested edits, as too often they appear to be minor and insignificant, stuff like adding backquotes on a single term, making some of the words bold, or removing a "thank you". If this is too obvious I just reject it, but these edits are often still accepted by others who probably care less or think that even tiny edits are justified.  On top of that, I can already recognize some users as serial editors, and judging by their rep summary I can see they often reach the daily cap of edits. In some cases most of their rep comes just from editing, without questions or answers (they're hardly bounded by the 1000 max on editing since they're under 2k anyway).  Now, I know the +2 bonus is there to encourage making the site better, and in most cases I think an edit totally deserves it and I usually approve helpful edits even if they're minor things like indentation and formatting, but I can't help thinking that we've got a hole in the rep system - should minor touch-ups on any 5 questions off the top of the list (and there's always something to edit, especially junk questions), really equal an upvote on a decent answer? In some topics a good answer might get no more than 1-2 upvotes simply because there aren't enough people browsing them, so what you get from taking the time to answer and explain if often less than what you could get by just editing random stuff.  Is there a way to close this hole? for e.g.:   Add "approve without rep" button for cases where the edit doesn't really merit it. Auto-detect tiny edits (adding just backticks or bold/italic changes for e.g. - not including whitespaces used for code formatting and indentation) Lower the rep bonus Reduce the daily/total cap for edits Increase the min edit size (currently 6 characters, excluding whitespaces)   Or is it perfectly acceptable activity and I should approve these edits without an afterthought?


Ubuntu noob here. I recently got a VPS running Ubuntu, and decided to install Chromium, my preferred browser, on it. After installation completed, I got a message stating that I cannot open Chromium with root privileges. How would I go about opening Chromium?


Getting around to transfer in huge airports if you don't know English

How can someone who doesn't know any international language get around in huge airports, if they need to transfer?  I'm asking this because my mother-in-law wants to travel half the world to visit us, from Europe to New Zealand. She can't avoid at least two transfers in big international airports. She cannot speak any international language and is not willing to start learning English. She's afraid she will get lost, even if usually there are signs everywhere, and they always use pictograms.  The only advice she got from the travel agency is to use disability services. She could get away with that, because though she had a car accident three years ago and still hasn't completely recovered, in truth this would be abuse. She should have a phone and call us for translation.  Do you have any other suggestions?


Creating queries to select by attribute with arcpy

I'm quite new with arcpy and I'm finding selecting by attribute a bit of a nightmare. There's a problem with my query on the script below [query = "\'Location\' = observer"], but I can't tell what it is. 'Location' is a field of the feature class I'm dealing with (fc_copy).  with arcpy.da.UpdateCursor(fc_copy,field_names) as cursor:        for row in cursor:         observer = row[0]         arcpy.MakeFeatureLayer_management(fc_copy, 'fl_copy_OBS')         arcpy.MakeFeatureLayer_management(fc_copy, 'fl_copy_TAR')         query = "\'Location\' = observer"         arcpy.SelectLayerByAttribute_management('fl_copy_OBS', 'NEW_SELECTION', query)         arcpy.SelectLayerByAttribute_management('fl_copy_TAR', 'NEW_SELECTION', query, invert_where_clause = 'INVERT')   This is the error I get => Invalid expression                            Failed to execute (SelectLayerByAttribute).  Is there any documentation to learn the rules to follow to build queries for arcpy?


I believe that the question of which this was marked a duplicate seems to be one about the actual HTML tag's max length. I know there is no such max length and instead want to know about how the number of keywords affects SEO   I know that search engines like Google try to detect which webpages are lying by putting in too many keywords in the <HEAD>, but what if I have a webpage where very many keywords apply? Specifically, I noted that in my online résumé I have the following tag:  <META NAME="keywords"    CONTENT="Ben Leggiero,Ben,Leggiero,programmer,programming,developer,Java,C,C++,C#,Objective-C,JavaScript,Ruby,Python,HTML5,CSS3,PHP,XML,XSL,Haskell,Lisp,Prolog,COBOL,Android,Android 4.0,Ice Cream Sandwich,Android 4.1,Jellybean,Android 4.4,KitKat,Android 5.0,iOS,Windows 8,Windows Store,Browser extensions,browser apps,PSP software engineering,TSP software engineering,multiplatform,multiple languages,artist,graphic artist,Graphic Design,Vector,Raster,Photo touchup,photomanipulation,Adobe,Photoshop,Illustrator,CS3,CS4,CS5,CS6,Autodesk,Revit,Maya,3DS Max,Blender,Terragen,Inkscape,GIMP,Ulead,Corel,PhotoImpact,UI,UIX,GUI,TUI,User interface,enthusiast,professional,resume,cv" />   which is 75 keywords. All of these reflect what I consider the most important information in the page, especially since some of it (photo touchup, the full list of CS#, etc) is implied in English but probably not inferred by a crawler. Is this too many? Where's the limit?  Additionally, I heard through the grapevine that modern search engines actually ignore keywords in favor of fancy intelligent parsers. If this is true, how to I attach meta information to text on the page like "CS3,CS4,CS5,CS6" for "CS3-6", or "Android,Android 4.0,Ice Cream Sandwich,Android 4.1,Jellybean,Android 4.4,KitKat,Android 5.0" for "Android 4.0+"?


How to fix Finance::Quote to pull quotes in GnuCash

I made the jump from Jumsoft's Money app to GnuCash a while back. It appealed to all my OCD tendencies. I don't know how to use Perl, or stuff of the sort, but with detailed instructions I manage to get things done... when I can find them.  I set up Finance::Quote to pull quotes after I set up GnuCash. I even managed to get it to pull quotes for Korean funds. And every thing had been working well, until tonight. I only get back a pop-up that states "There was an unknown error while retrieving the price quotes." That's where I need help. What can I do?  I dug around and found that it seems that it has something to do with Yahoo Finance ending it's API support. I also learned that Finance::Quote can pull data from many sources, so I don't really understand why one missing API would break it. I also saw that someone out there is trying to use AEX to pull the quotes instead for GnuCash specifically. I found Finance::Quote on cpan (I also first heard of cpan), but I don't understand what I'm looking at. But that's all beside the point. I don't know how to fix this.  Any help would be appreciated. I'm on Windows 10, GnuCash version 2.6.17, and have Strawberry Perl 5.18.2.2-32bit installed.  edit Thanks everyone who responded. It seems to be working more or less. The currency and Korean funds still haven't updated, but you've shown this horse to water. I'll do my best to drink it now.


Possible Beamer bug: Frame number has different color than date in infolines footer

I use TeX Live on Mac and I get my weekly updates through the TeX Live Utility. I am working on some slides for an upcoming talk. I am using the same Beamer templates and settings that I always use, so I was surprised to see that the page numbers that I always include at the bottom of my slides suddenly appeared in a different color. Here's an MWE:  \documentclass{beamer} \useoutertheme{infolines} \usecolortheme{beaver} \title{Title} \date{\today} %\setbeamercolor{page number in head/foot}{fg=darkred!60!black} \begin{document} \begin{frame} \end{frame} \end{document}     As you can see in the bottom right corner of the slide the page number appears but its color looks off. Until recently it would look exactly the same color as the date appearing next to it.  By Googling around a bit I managed to figure out how to get this to look normal again using the line commented out in the code above:  \setbeamercolor{page number in head/foot}{fg=darkred!60!black}   By uncommenting this line I got back the desired behavior:    So my question is not so much about how to fix this problem, but about why this is happening in the first place. Is this a bug that was introduced in a recent update, and if so will it be fixed? Is this a deliberate choice on the part of the developers (if so I can't imagine why)? Or am I doing something wrong or is something broken in my TeX setup?  I'd appreciate any insight on this. Thanks in advance!


Can I shut off the water to my house and safely leave the water heater on while I'm away on vacation for a week?

I plan to shut off the main water supply to my 2 story house before leaving for a week on vacation.  I have an AO Smith gas 'powervent' water heater in the garage that I would like to  set to 70*F rather than turning it off.  Since there are no issues with freezing pipes here in  the SF Bay Area, I wasn't planning to drain the water lines within the house. Would the cold water feed on top of the water heater need to be turned off also?


Is the sum of two random variables a random variable

This is a question that I have been struggling with for quite some time, but no luck.  I'm not asking for a final answer, I need to know how to prove it.  The question is: Prove whether or not the sum of two random variables is a random variable.  $X_1 + X_2$


How to Limit ContentMatches of Grep in List?

I know the thread  which proposals (... | cut -c 80) however give single letter outputs like n r s t p. I do   # https://unix.stackexchange.com/a/293147/16920 find -L $(find . -type l -name 'Math*') -name '*.tex' -exec fgrep word /dev/null {} +   Some matches have too much content which I would like to cut; most other matches are ok but long-one liners are a problem in contents  ... /Math/16.5.2014.tex:Feedback Control of Hormone SecrAlthough the plasma concentrations of many hormones fluctuate in response to various stimuli that occur throughout the day, all hormones studied thus far appear to be closely controlled. In most instances, word [lot more] ...


Inequality. $\frac{1}{16}(a+b+c+d)^3 \geq abc+bcd+cda+dab$

I want to prove the following inequality :      $$\frac{1}{16}(a+b+c+d)^3 \geq abc+bcd+cda+dab,  $$   $a,b,c,d \in \mathbb{R}_{+} .$    In my book, at the answers chapter the author uses AM $\geq$ GM, but I haven't any idea how I can use that.   Thanks :)


Currently have the following scheme, where I have designated a package named /source, which contains a python file, get.py, that pulls data from the internet and generates a series of text files that is stored in a directory called /txt and returns data in a data structure  final.py can either:  1) import source, and make a call to get.py which would return the content of the text files stored in a data structure. get.py() also writes the contents of the data structure to /text/*.txt  2) retrieve /source/text/data.txt without a call to get.py, which should have equivalent behavior, but the information is from a previous call to get.py (off-line mode)  final.py /source     __init__.py     get.py #returns a data structure and writes to /text/data.txt         /text             data.txt             data1.txt             data2.txt   While this is all well and good, I can't help but think I am violating some important abstraction rules, mainly I am retrieving /source/text/data.txt without ever having to import the source package. And if this is the case, why create packages with init.py at all? How should a python package with the above scheme be organized?


Why didn't Kenobi start training Luke earlier?

When Anakin was only 9 years old, everyone in the Jedi Council was arguing that he was already too old for Jedi training.  When it comes to Luke, it was a pre-planned agenda to make him a powerful Jedi. So, why did Kenobi wait for Luke to be much older? He could have started Luke's training by himself.


don't you think that Stack Overflow's FAQ should mention that posts should be written in English?  I understand that, since the site itself is English-oriented, it should be clear. Also, there haven't been any problem until now. Nonetheless, clear rules are better than implicit rules, to me :-)


All odd primes except $5$ divide a number made up of all $1$s

Okay, so I have worked on this problem and even though I can see it is true I just don't know how to show it.  Here it goes.  Question:  Show that every odd prime except $5$ divides some number of the form $111 \ldots 11$ ($k$ digits, all ones).  Thank you my friends!


Does the following series converges or diverges?

$\sum_{n=1}^{+\infty}\left[n \log\left ( \frac{2n+1}{2n-1} \right )-1\right]$ ,converges or not  My attempt  $a_n=n \log\left ( \frac{2n+1}{2n-1} \right )-1 \\ \\ \log \left ( \frac{2n+1}{2n-1} \right )=\log \left ( 1+\frac{2}{2n-1} \right ) \sim \frac{2}{2n-1} \ (n\rightarrow +\infty) \\ \\ a_n=n\log \left ( 1+\frac{2}{2n-1} \right )-1 \sim n \frac{2}{2n-1}-1=\frac{2n}{2n-1}-1=\frac{1}{2n-1}  \\ \\ $  $\sum_{n=1}^{+\infty}\frac{1}{2n-1} $  diverges  ,then $\sum_{n=1}^{+\infty}a_n $ diverges   but according to Wolfram  $\sum_{n=1}^{+\infty}a_n=\frac{1}{2}-\frac{\log 2}{2}$  where is the mistake in my solution please?  thanks


How to permanently delete Windows Defender in Windows 10 Home?

I specifically insist on deleting it (perhaps, the whole C:\ProgramData\Microsoft\Windows Defender\Platform folder), because it eats a lot of system resources while being turned off through several regedit tweaks and inside the Security Center itself. A program called Unlocker did absolutely nothing. My Windows 10 version is Home, so I'm unable to use Group Policy Editor. I also tried to use PsExec, but it could not help me. Applying all kinds of Security properties did not work either.  Edit: thank you for your help, but the registry trick is blocked by the system. NoDefender website is not serving the app anymore, and I cannot find it in Google, web archive refuses to give me a snapshot. I will try to use my Ubuntu to rename the folder.  Edit 2: renaming the folder using Ubuntu worked like a charm


How to install Waterfox browser on Ubuntu 12.04?

I want to install the 64 bits version of Firefox -  on Ubuntu 12.04 system. Since the browser is not available in the software center and I was not able to find any examples of installing it I want to know has anyone do this?  Please,provide more installation details since I am Linux user for few weeks only.


Q&A blank in Stack Exchange Android app v1.0.95 - S10e/Android 10

Recently upgraded to a Samsung S10e and Android 10, but all Q&A in the Stack Exchange app v1.0.95 are blank.  The title and comments are visible, but question/answer posts are just white space. Accessing the About page in the app is also blank.  I tried clearing data, cache and re-installing the app, but I still get the same behaviour.


Finding an Upper Bound on This Inequality

I came across this problem that seems a bit peculiar. Take  $$\sum_{1 \leq i < j \leq n} |x_i-x_j|,$$ where $x_1,...,x_n \in [1,35].$ I want to figure out the maximum possible value of this sum in terms of $n$.  To me this, problem could possibly be bounded above by the triangle inequality, but I'm not sure what number I should use for triangulation. We can see that $$\sum_{1 \leq i < j \leq n} |x_i-x_j|,$$ $$\leq \sum_{1 \leq i < k \leq n} |x_i-35|+|x_j-35|,$$ although I am now having some troubles figuring out how this will help me to solve for a meaningful upper bound. Any recommendations?


Is there any software available to input text by speaking via microphone?

Is there any good 'Speech to Text' application available for Ubuntu?  I have tried to find something in Software Center but I failed.


I made a sandwich two days ago that consists of white bread and canned tuna. I put it in my freezer immediately after making it and it stayed there until today. This morning I took it to work, planning to eat it for lunch, but am now going out for lunch instead. I'd rather not waste the sandwich, so is it safe to refreeze it until tomorrow? It has been out of the freezer for 5 hours and sitting in my desk drawer.


What is difference between binary and source file?

I want to install special software on Ubuntu. In its installation guide has been mentioned I must separate binary and source files from each other. What does it mean? How can I do that?  Should I ignore the point of instruction about separating binary and source files? I downloaded git source of special software from Internet. It is a zip file that consists of 9 folders (“cmake”, “CMakefiles”, “docs”, “gui”, “modellingframework”, “optimisation”, “otbsuppl”, “QtpropertyBrowser” and “shared”) and 6 files (“Cmakelist.txt”, “GPLV3.txt”, “INSTALL”, “LICENSE”, “LUMASSConfig.h.in” and “README”). I didn't understand what they are? Sorry, I'm very unfamiliar with Linux and Ubuntu.