Values distribution issue in logistic regression

I have a problem with logistic regression.  I have the following variables:  Var1: 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 1 1 1 0 0 NA 1 0 0 1 0 1 1 0 0 0 1 1 0 0 1 1 1 0 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1  Var2: 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 0 1 0 1 0 0 1  Var1 is continuous (It doesn't seem continuous because of my data, but in my study I have similar variables with 2,3,4.....)   Var2 is categorical  When I do logistic regression      mylogit <- glm(Var2 ~ Var1, data = mydata, family = "binomial")   I obtain a p value of 0.994 but It's not true, because I think that my data should have a p value < 0.05 since I obtain a p value < 0.001 doing a t-test.  I think that my problem is that all "1" in Var2 match with a "1" in Var1.  I' have checked this post:    and I have tried all the methods described in this post and I never obtain a significant p value.  Perhaps my problem is different, I don't know.  What should I do to obtain a realistic p value with my data???  Thank you very much.


Google Chrome Canary - on Ubuntu 14.04 how to get it?

I need to test some hardware on Ubuntu 14.04 which are all working on Mac and Windows 8.1. But Ubuntu 14.04 old Google Chrome is available via apt-get   How do I get the Google Chrome Canary or nightly developer versions via apt-get? I need to test lot of hardware with Canary version which were resolved for Mac and Windows but untested still for Linux because of Ubuntu 14.04 not shifting the latest Canary.  Can anyone please send me quick way to get the full Canary?


How do I show that $\int_0^\infty \frac{\sin(ax) \sin(bx)}{x^{2}} \, \mathrm dx = \pi \min(a,b)/2$

Recently I found a claim saying that  $$  \int_0^\infty \left( \frac{\sin ax}{x}\right)\left( \frac{\sin bx}{x}\right) \mathrm{d}x= \pi \min(a,b)/2  $$ from what I can see this seems to be true. I already know that $\int_{0}^\infty \operatorname{sinc}xy\,\mathrm{d}y = \pi/2$, and so independant of $y$. My suspicion is that this is closely related to the integral above.   Can someone give me some suggestions for evaluating the integral above? Also are there any generalizations for the integral? Eg $$ \int_{0}^{\infty} \left( \prod_{k=1}^N \frac{\sin (a_k \cdot x)}{x} \right) \,\mathrm{d}x $$ Where $a_k, \cdots, a_N$ are arbitrary positive constants. It seems related to the , but there are some subtle differences.


Facing null pointer exception, to getting files from internal storage in android

ArrayList<File> files = allFiles(Environment.getExternalStorageDirectory());  private ArrayList<File> allFiles(File root){     ArrayList<File> arrayList = new ArrayList<>();     File files[] = root.listFiles();      for(File file:files){         if(file.isDirectory()){             arrayList.addAll(allFiles(file));         }else{             arrayList.add(file);         }     }     return arrayList; }   I am trying to list out all of the files on my android device. the above code, some exception is raised:  2020-01-24 15:20:31.048 23877-23877/com.example.readingfromstorage E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.readingfromstorage, PID: 23877     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.readingfromstorage/com.example.readingfromstorage.MainActivity}: java.lang.NullPointerException: Attempt to get length of null array  please help me to solve this problem. thanks;


Prove $n \in Z$ if $3|n$ and $8|n$ then $24|n$

I want to prove this by saying if 3 divides n and  divides then then $8\times 3$ must divide $n$ which is 24, but that doesn't seem like a proof. Or maybe a proof by contradiction that if 3 divides n and 8 divides n then 24 does not divide $n$, but that creates a contradiction because 3 and 8 divides $n$ so $3\times8$ must.    I'm hoping there's a theorem that says if $x$ and $y$ divide $n$ then $xy|n$


I'm unable to login with my Minecraft account. I keep on getting an invalid username/password error. I tried changing my username twice and so far it still hasn't worked.  What do I do?


How can the red shift due to Hubble flow be consistent with the law of conservation of energy?

Given that there is no change in relative kinetic energy attributable to the expansion of the universe, what accounts for the difference in energy emitted vs energy absorbed (i.e. the red shift component) by two very distant bodies of mass whose relative velocities only exist due to the expansion of the universe and are therefore effectively zero?  Consider a photon that got emitted some time back in a far-off galaxy and absorbed today on earth. Also assume that there is no peculiar velocity involved, and that it was emitted due to an energy change in a hydrogen atom. The wavelength we would see were we able to observe the photon would be greater than that of a similar photon emitted from earth, and we might put that red-shift  down to the space stretching effect of the expansion of the universe that had taken place between emission and absorption. All well and good in terms of observation, but not so good in terms of energy conservation. The photon energy, being only dependent on its frequency, is lower than expected. But unless there is another energy transfer taking place, the energy emitted must equal the energy absorbed right? How can this be explained?


Are planets actually moving in elliptical orbits around the Sun or do they move in circular orbits around their center of mass?

In every derivation of Kepler's Laws that I have seen, we assume that the sun is stationary. However, in other places I have read that celestial bodies move about their barycentre (center of mass). So are planets actually moving in elliptical orbits around the Sun or do they move in circular orbits around their center of mass?


How long it takes for GRE score to be delivered to graduate school?

I would like to know how long it takes for a General computer based GRE score to be delivered to graduate school in US. Some graduate schools mention do not take GRE later than specific date so I am wondering does it really take long time to send the score online?


On closed convex set containing the extreme points of the unit ball of $C(X)$

Let $X$ be a compact Hausdorff space, $C(X)$ denote the set of all complex-valued continuous functions from $X$. Show that the smallest closed convex set containing the extreme points of the unit ball of $C(X)$ is the unit ball. The problem is from Douglas's book Banach Algebra Techniques in Operator Theory, problem 1.8. For the case $X=[0,1]$, I have shown that the set of all extreme functions are those that have modulus value $1$, but still have no clue how to proceed, even for the case $X=[0,1]$.   Please help.


I'm drawing a automaton figure, and I want to name it says 'M1' below the figure? A minimal example would be greatly appreciated. Thank you.  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto]      \node[state,initial]    (q_0)                   {$q_0$};      \node[state,accepting]  (q_1)   [right=of q_0]  {$q_1$};      \node[state]            (q_2)   [right=of q_1]  {$q_2$};       \path[->]     (q_0) edge                  node {a}            (q_1)     (q_1) edge                  node {$\lambda$}    (q_2)     (q_2) edge  [bend right]    node {$\lambda$}    (q_0)     ; %end path  \end{tikzpicture}


How to disable touchpad while typing in gnome?

I have gone through the existing answers, and none of them work for me.  I am using Ubuntu Gnome 16.04. In Ubuntu, Kubuntu, and even Xubuntu, there is an entry in Settings->Mouse to "disable touchpad while typing".  I have looked in Settings, Gnome tweak tool, and dconf-editor. None of them have any such option.  Here is the output of xinput:  ⎡ Virtual core pointer                      id=2    [master pointer  (3)] ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)] ⎜   ↳ SynPS/2 Synaptics TouchPad                id=12   [slave  pointer  (2)] ⎣ Virtual core keyboard                     id=3    [master keyboard (2)] ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)] ↳ Power Button                              id=6    [slave  keyboard (3)] ↳ Video Bus                                 id=7    [slave  keyboard (3)] ↳ Power Button                              id=8    [slave  keyboard (3)] ↳ Video Bus                                 id=9    [slave  keyboard (3)] ↳ Laptop_Integrated_Webcam_HD               id=10   [slave  keyboard (3)] ↳ AT Translated Set 2 keyboard              id=11   [slave  keyboard (3)] ↳ Dell WMI hotkeys                          id=13   [slave  keyboard (3)]   Please help me in solving this.


Java different reference type and class object

If A abc = new B() and A , B classes are having inheritance relationship, what is the advantage of using reference type A instead of B, what if B was used? Also what methods can now B's object access(all A and B methods or something else)? Also if A and B both have same methods, B overrides it, but if they've different methods, object can access whose methods here?


I have earned 11 hats. Why don't I get the "The Milliner hat"?

I have already earned 11 hats--10 on Stack Overflow and one here on meta.stackexchange.  But I still haven't got The Milliner hat, which says "collect 11 hats". Is it required to get all of them on one site?


How to select everything which doesn't match a regular expression?

I've some text in following form  29secs  183.207.224.50      84  flag China    HTTP    High +KA 29secs  120.203.214.206     3128    flag China    HTTPS   High +KA 29secs  183.207.232.193     8080    flag China    HTTPS   High +KA 29secs  60.29.248.142       8080    flag China    HTTPS   High +KA 29secs  211.162.0.162       80  flag China    HTTPS   High +KA 29secs  111.161.126.99      80  flag China    HTTPS   High +KA 29secs  202.119.25.228      9999    flag China    It's just some data from public proxy server provider. I just want to get IP address and Port so I'm using following regular expression  [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\s+[0-9]{1,5}   Now it's selecting all the IP addresses and Port. But I want to select everything else which is not IP address and Port so that I can delete them to just get IPs and Port. Can someone tell me how can I select everything else which is not fulfilling regular expression requirement?? Thank You!


Prove that if $p$ is a prime having the form $4k + 3$, and if $m$ is the number of quadratic residues less than $\frac p2$, then we have  $$1\cdot3\cdot5 \cdots (p - 2) = (-1)^{m+k+1} \pmod p, \text{ and } 2\cdot4\cdot6\cdots(p - 1) = ( -1)^{m +k} \pmod p.$$  I am stuck with the problem....Help Needed.


How to install different fonts in Ubuntu?

Is there any application which can let me browse different font styles and install what I have liked from Internet?


QGIS File Read Error when opening an existing project

My computer will not open a project i have been working on for weeks! it is coming up with an error of      Project file read error: unexpected end of file at line 1 column 1 for   file C:/Users/xxxx/Documents/Nxxxx/Exxxx.qgs   Is there anyway to get it back?


Given integers $a$ and $b$ prove that if there exist integers $x$ and $y$ for which $ax + by = (a, b)$, then $(x, y) = 1$.

I know that the answer involves Bezout's theorem in some way. I tried this: Let $(a, b) = d$ Let $a = dk_1 and b = dk_2$ So, $ax + by = d$ becomes $dk_1x + dk_2x = d$ Dividing by d, we get: $k_1x + k_2x = 1$ So, $(x,y) = 1$ Is this sufficient?


Whats the best way to publish and promote an app by myself?

My first little casual-action android game is nearly finished. Its my first one and i dont expect any sucess. But nevertheless i want to try to publish and market it by myself.  But what can i do without any bugdet? How do i attract and reach people ? Are there any tricks ? How did you published and promoted your first app/game ? And what is your experience with self publishing/marketing ?


How do I check whether two strings are equal to each other in an if statement?

I am trying to work out whether a certain portion of a string equals something. Here is the code:  String words[] = resulter.split(" ");     secondword = words[1];     if (secondword == "is"){         isarepresent = true;     }   So, for example the string resulter could equal "Someone is famous" and then this should detect that the second word is "is". But, for some reason the if statement does not seem to work.


My 2016 13" MacBook Pro's screen goes black when it is opened vertically beyond 90 degree

I have experienced this issue today. I closed my MacBook as usual when I had something to do. Then I came back, tried to use it again. However the screen went dark when it was opened vertically beyond 90 degree.  I went on the Internet to search for this problem and tried to resetting SMC, but it did not work. How can I do to fix this problem?


Let $a,b\in G$ elements of order $5$. If $a^3=b^3$ then $a=b$.

Prove or disprove: let $G$ be a group and $a,b\in G$ elements of order $5$. If $a^3=b^3$ then $a=b$.   I saw the following example which tries to disprove the theorem: $G=\mathbb{Z}_{10}$ and $a=2,b=8$.  I'm not sure about that part, but $o(2)=5$ and $o(2)=8$. I think that $o(2)=\infty$ because there is not $n$ so $2^n\,mod\,10=1$ but I'm not sure.  Does this example disproves the theorem?


I want to rewrite urls to the www subdomain if the user omits it, i.e. example.com/something.html to www.example.com/something.html  The config below doesn't work, user remains on example.com. There's probably missing something very simple...  <VirtualHost *:80>      DocumentRoot /data/domains/example.com/www/public     ServerName www.example.com     ServerAlias example.com #        ErrorDocument 404 /index.pl page_not_found #          CustomLog /logs/apache/example.com/access_log combined #        RedirectMatch 301 ^(.*)$ http://www.example.com/  <IfModule mod_rewrite.c>     RewriteEngine on      RewriteCond %{HTTP_HOST} ^!example.com$ [NC]     RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] </IfModule>


I've created an  init script which I intend to use to push some log files to an Amazon S3 bucket when the system is going down but it doesn't get executed.  Here is the script contents in in file /etc/init.d/push-apache-logs-to-s3.sh (I replaced with my client's branding name with XXX):  #! /bin/sh ### BEGIN INIT INFO # Provides:          push-apache-logs-to-s3 # Required-Start:     # Required-Stop:     $local_fs $network # Default-Start:     2 3 4 5 # Default-Stop:      0 1 6 # Short-Description: Push Apache log files to S3 # Description:  ### END INIT INFO  PATH=/sbin:/usr/sbin:/bin:/usr/bin  . /lib/lsb/init-functions  do_stop () {     LOG_DIR=/var/log/apache2/     BACKUP_DEST=s3://XXX-backups/api-logs     EC2_ID=`wget -q -O - http://169.254.169.254/latest/meta-data/instance-id`      echo -n "Entering log directory..."      if cd $LOG_DIR     then       echo "OK"     else       echo       echo "Cannot change directory... BACKUP ABORTED!"       echo       exit 3     fi      echo -n "Pushing log files to S3..."      # push log files     if s3cmd put XXX-api_access.log* $BACKUP_DEST/$EC2_ID/ >/dev/null     then       echo "OK"     else       echo       echo "LOG FILES COULD NOT BE MOVED TO S3! BAKCUP NOT COMPLETE!"       echo       exit 5     fi      echo "*** Backup finished at " `date`     echo "-----------------------------------------------"      exit 0 }  case "$1" in   start)         # No-op         ;;   restart|reload|force-reload)         echo "Error: argument '$1' not supported" >&2         exit 3         ;;   stop)         do_stop         ;;   *)         echo "Usage: $0 start|stop" >&2         exit 3         ;; esac  :   Here is the command I used to install it:  sudo update-rc.d push-apache-logs-to-s3.sh start 01 2 3 4 5 . stop 01 0 1 6 .   which provided output:   Adding system startup for /etc/init.d/push-apache-logs-to-s3.sh ...    /etc/rc0.d/K01push-apache-logs-to-s3.sh -> ../init.d/push-apache-logs-to-s3.sh    /etc/rc1.d/K01push-apache-logs-to-s3.sh -> ../init.d/push-apache-logs-to-s3.sh    /etc/rc6.d/K01push-apache-logs-to-s3.sh -> ../init.d/push-apache-logs-to-s3.sh    /etc/rc2.d/S01push-apache-logs-to-s3.sh -> ../init.d/push-apache-logs-to-s3.sh    /etc/rc3.d/S01push-apache-logs-to-s3.sh -> ../init.d/push-apache-logs-to-s3.sh    /etc/rc4.d/S01push-apache-logs-to-s3.sh -> ../init.d/push-apache-logs-to-s3.sh    /etc/rc5.d/S01push-apache-logs-to-s3.sh -> ../init.d/push-apache-logs-to-s3.sh   The script uses s3cmd which is installed and configured on the system. s3cmd is in /usr/bin/ which is defined as PATH in the script.  When I execute the script by sudo ./push-apache-logs-to-s3.sh stop, it does the job.  Any suggestions what's wrong?


Point data does not allign with polygon data, even though they are in the same projections

I created a feature class from XY data. This then adds a shapefile on my map, under the projection of WGS 1984. I then try to reproject my shapefile in to  Europe_Albers_Equal_Area_Conic. This works, but my shapefiles do not align with my already Europe_Albers_Equal_Area_Conic polygons. I click zoom to layer and they are far apart from each other. I have tried defining projection and reuploading the data, but nothing seems to work. I need all data in Europe_Albers_Equal_Area_Conic so that I can retrieve the correct depth measurements.   EDIT: Here is how far they are, even though they are projected the same, Figure 1 (picture).


How to know who accessing my computer via ssh command remote in Ubuntu?

Somebody accessing my computer with my password, i want to know who login my system via ssh xxxx@192.168.8.345, i want to know that ip how to trace it.


Are full-frame cameras bad for sports photography?

I was reading about crop factor from various places on the internet, and the general idea that kept building in my mind was that full-frame cameras are good for wide-angle shots but not that good for tele-photo. In :     [...] a 200 mm lens on a camera with a crop   factor of 1.5 has the same angle of   view as a 300 mm lens on a full-frame   camera. The extra "reach", for a given   number of pixels, can be helpful in   specific areas of photography such as   wildlife or sports.   It makes sense, but how high would the level of detail be on a full-frame with 300mm compared to the other example?


Limits and exponential: $\lim\limits_{x \to\infty} (x-x^2 \ln(1+1/x))$

Evalulate $\lim\limits_{x \to ∞} (x-x^2 \ln(1+1/x))$  I know the answer is 1/2 and we have to make use of the exponential function but i can't seem to simplify the expression to get the answer, please help


I have ran some strange thing in magento stackexchange. I tried to add a link by somelink\...\anotherlink without code quotes and strangely first forward slash went missing like : somelink...\anotherlink. So this means does stack exchange allow escape characters or is this a bug?  PS: I tried other escape characters like \n and \t but they don't behave this way.


How create such amazingly smooth grain with gradient like this?

Is it made in Photoshop or illustrator? I tried many way but can't reach this smooth level


I'm a begginer in blender, so please forgive me if the question looks silly to you!  Almost all the objects in my scene disappeared (except 2) as if I deleted them by mistake. The thing is all the objects are still listed in the right side graph. The all have the eye button activated, but yet nothing is visible anymore! As I don't have a backup file, I simply can't find any tricks to fix this...  Thank you for you help!


I would like to prove that $$\sum_{k=1}^n\frac{\sin(kx)}{k}\ge 0$$ for all $n\in\mathbb{N}^\star$ and $x\in[0,\pi]$ EDIT : Thanks for the references. The result of Leopold Vietoris gives a nice extension of the Fejer-Jackson's inequality. I could not find more than the statement of his theorem ... Does anyone know where to find it (or at least a sketch of it) ? I also found (somewhere on the net and without any proof) the following assertion (which seems true, according to a few plottings ...)  For all $n\in\mathbb{N}^\star$ and $x\in(0,\pi)$, we have : $$\sum_{k=1}^n\frac{\sin(kx)}{k}\ge x\left(1-\frac{x}{\pi}\right)^3$$  If true, this result would give yet another proof of FJ's inequality. Any hints ?


I am receiving some reports from different clients in Spain, US and France that they cannot access my website, . They get a ERR_NAME_NOT_RESOLVED error saying the server cannot be found.  Personally, I do not get any error and most visitors don't experience it, but one of my clients has been kind enough to send me their traceroute outputs - below. He uses Google DNS in his browser.  I have a shared IP address which made me think it was blocked by an ISP, but it doesn't seem like it is the case. I have contacted Telefonica (which is the last server reached by my client) to ask if they blocked my IP address just in case, but it has been nine days and no response so far.  All website testing programs I've tried cannot seem to find the error. The only red flag I found was that my MX records points to a CNAME. But this is the standard mail settings of my host, .  Could anyone tell me if they cannot access the website and send me the traceroute or do you have any suggestions as to why this is happening? Should I change host just in case?  traceroute to ultreyatours.com (160.153.74.24), 64 hops max, 52 byte packets  1  192.168.1.1 (192.168.1.1)  7.887 ms  2.594 ms  2.378 ms  2  192.168.144.1 (192.168.144.1)  51.844 ms  42.309 ms  41.189 ms  3  * * *  4  26.red-80-58-89.staticip.rima-tde.net (80.58.89.26)  55.877 ms     65.red-81-46-3.staticip.rima-tde.net (81.46.3.65)  54.211 ms     26.red-80-58-89.staticip.rima-tde.net (80.58.89.26)  54.896 ms  5  216.184.113.116.nuevatel.com (216.184.113.116)  51.841 ms  51.221 ms  51.849 ms  6  xe0-0-0-8-grtlontlw1.red.telefonica-wholesale.net (94.142.125.246)  88.292 ms     xe6-1-0-0-grtlontl1.net.telefonicaglobalsolutions.com (213.140.36.254)  94.572 ms     xe-2-0-2-0-grtparix1.net.telefonicaglobalsolutions.com (94.142.117.174)  115.531 ms  7  xe2-0-1-0-grtwaseq6.net.telefonicaglobalsolutions.com (94.142.116.209)  164.105 ms     xe-3-1-4-0-grtwaseq6.red.telefonica-wholesale.net (213.140.36.242)  148.022 ms     xe0-0-1-0-grtnycpt3.red.telefonica-wholesale.net (94.142.126.73)  185.685 ms  8  xe-0-0-2-0-grtnycpt3.red.telefonica-wholesale.net (94.142.126.69)  150.588 ms     dcp-brdr-03.inet.qwest.net (63.235.40.197)  157.253 ms  151.465 ms  9  phn-edge-08.inet.qwest.net (67.14.40.50)  218.708 ms     dcp-brdr-03.inet.qwest.net (63.235.40.197)  163.898 ms     xe3-1-1-0-grtwaseq6.net.telefonicaglobalsolutions.com (5.53.6.145)  178.165 ms 10  xe6-0-6-0-grtwaseq6.net.telefonicaglobalsolutions.com (94.142.116.102)  183.294 ms     phn-edge-08.inet.qwest.net (67.14.40.50)  218.202 ms     63-232-81-254.dia.static.qwest.net (63.232.81.254)  235.276 ms 11  be39.trmc0215-01.ars.mgmt.phx3.gdg (184.168.0.73)  224.855 ms     63-232-81-254.dia.static.qwest.net (63.232.81.254)  255.575 ms     phn-edge-08.inet.qwest.net (67.14.40.50)  227.479 ms 12  be39.trmc0215-01.ars.mgmt.phx3.gdg (184.168.0.73)  230.942 ms     be38.trmc0215-01.ars.mgmt.phx3.gdg (184.168.0.69)  230.278 ms     63-232-81-254.dia.static.qwest.net (63.232.81.254)  235.399 ms 13  * * be39.trmc0215-01.ars.mgmt.phx3.gdg (184.168.0.73)  243.940 ms 14  * * be39.trmc0215-01.ars.mgmt.phx3.gdg (184.168.0.73)  239.542 ms 15  * * * 16  * * * 17  * * * 18  * * * 19  * * * 20  * * * 21  * * * 22  * * * 23  * * * 24  * * * 25  * * * 26  * * * 27  * * * 28  * * * 29  * * * 30  * * * 31  * * * 32  *


Special relativity and black hole paradox

Today a friend of mine posed me a paradox involving black-holes, one that I couldn't solve.  Suppose we have planet, with a density such that it is almost to the point of turning into a black hole, armed with a powerful laser on the surface (kind of like Star War's Death Star) capable of shooting down any star ship.  Now I, on a really fast spaceship (for the sake of discussion let's say around 10% of the speed of light) approach this planet.  Now, because of relativistic effects, from my point of view the planet will shrink, keeping mass constant, therefore increasing its density and finally turning in a black hole. Because of that the laser will never be able to escape the planet, and I'll be fine.  Instead, from the planet's point of view, nothing as really changed, only a puny space-ship is flying into its direction, the laser will shoot and take me down.  How is this possible?


Let  $$ a_1,a_2,\dots,a_n $$ be positive real numbers such that $$ \prod_{i=1}^n a_i =1 $$ Prove that  $$ \prod_{i=1}^n (1+a_i) \geq 2^n $$


In Ampere's law, the current outside the curve taken is not included in the expression. Does it mean that the magnetic field calculated by using the law gives the contribution of only the currents crossing the area bounded by the curve?


Possible Duplicate:             I've done a bit of research and I understand that "family" should be preceded by  singular or plural verb depending on how you want it to be treated. For example,      His family is one of the oldest in the county.   and     His family are all doctors.   These are apparently both correct.   But in the following instance, could a grammar expert tell me which should be be?     When his family are abducted   or      When his family is abducted   ?  Thanks.


Show $\,p\mid 9^q -1 \implies q\mid p-1$ for odd primes $p$ and $q$

If $p$ and $q$ are odd primes show that $$p|(9^q -1) \implies q|(p-1).$$ ....  I am having difficulty to prove this.  Yes that was the question I have misunderstood between 9 and q!!!


What movie had an AI computer called "Shoshone"?

The computer's name wasn't mentioned very often during the movie. It had a role like "mother" in Alien.  I think the main character was a mid-30s military woman.  This was a cheaply-made b-movie set in the future but I can't remember much plot.  I saw it at the latest in 2015 and would guess I was made after about 2000.


I am a very new user of Ubuntu and am not very tech savy at all!   I have just installed Ubuntu 12.10 and am trying to set up skype on my Dell Inspiron 6400. My Mikomi DC-7120 webcam works but audio input does not. When I go to the sound manager on the system setting tool it shows the audio input device is present  but if I make a noise it does not register this at all. I thought perhaps the microphone on the webcam was not recognized so I tried plugging a set of headphones into the audio input jack: The system recognizes that another input device is present but will not register any sound being "heard" no matter how loud I am.


Determinant of a block skew-symmetric matrix

If I have a matrix of the form $$\begin{pmatrix} A & -B \\ B & A \end{pmatrix}$$ where all blocks are square and have the same dimensions, how do I turn it into something like $$\begin{pmatrix} X & Y \\ 0 & Z \end{pmatrix}$$ so that the determinant is easy to calculate using row and column operations?


Prove that $\mathbb{R}_l$ is not a second countable. ($\mathbb{R}_l$ are the real ones with the topology of the lower limit)  I have tried to reason for the absurd and suppose that $\mathbb{R}_l$ has an countable basis but I can not find it, in that case any discrete subset of $\mathbb{R}_l$ would be countable, but I do not know how to find an countable base and if I find it I do not know how to find a discrete subset that is not countable.Could anyone help me, please? Thank you very much.


There seems to be no simple method to install Ubuntu to Chromebooks, which I know can be done, but it seems like too much hassle. Isn't there an easier way? I don't want to run them side by side, if anything I'd like to replace it or at least have a true dualboot with my Ubuntu being the primary boot.


TeXnicCenter project - Print to separate chapter pdf

I have a project that includes 2 chapters and when I compile the main program it combines the pdf's of these two into one single file. How can I configure it to print to separate pdf's ?


What does "overfull hbox" mean? (Why is there a black mark at the end of a line?)

I often see output from TeX with the warning overfull hbox, badness 10000. What does this message mean?


tmux session lost in unknown pts, cause and possible solution?

I was trying to re-attach to a long-running tmux session to check up on a python web-application. However tmux attach claims that there is no running session, and ps shows a tmux process (first line), but with a question mark instead of the pts number.  What does this mean---is this tmux session permanently lost, and what could have caused it? Is there still a way to look at the current state of the python process, spawned in the tmux session and running in pts/19 (second line)?  [mhermans@web314 ~]$ ps -ef | grep mhermans mhermans 16709     1  0 Mar04 ?        00:26:32 tmux mhermans  8526 16710  0 Mar04 pts/19   00:20:04 python2.7 webapp.py root      9985  6671  0 10:18 ?        00:00:00 sshd: mhermans [priv] mhermans 10028  9985  0 10:18 ?        00:00:00 sshd: mhermans@pts/16 mhermans 10030 10028  0 10:18 pts/16   00:00:00 -bash mhermans 16247 10030  6 10:28 pts/16   00:00:00 ps -ef mhermans 16276 10030  0 10:28 pts/16   00:00:00 grep mhermans mhermans 16710 16709  0 Mar04 pts/19   00:00:00 -bash mhermans 16777 16709  0 Mar04 pts/21   00:00:00 -bash


More PHP Class Variables $this->variable->function()

How can I have a class which allows me to have a another variable when calling,  eg.  $class->variable1->variable2->function();


Bash Shell Scripting: How to Sum the Values in a File With the Use of For Loop and bc Command

I'm currently trying to write a function in my bash script that does the following: Take in a file as an argument and calculate the sum of the numbers within that file. I must make use of a for loop and the bc command.   Example of values in the file (each value on their own line):  12 4 53 19 6   So here's what I have so far:  function sum_values() {   for line in $1; do   #not sure how to sum the values using bc   done }   Am I on the right track? I'm not sure how to implement the bc command  in this situation.


difference between have been and had been

My friend just answered to one of my important questions. Now how should I reply to him?     1.Oh! That question had been on my mind for a long time, finally, I got my answer. ( Oh! I had that question on my mind for a long time, finally, I got my answer)    or        Oh! That question has been on my mind for a long time, finally, I got an answer. ( Oh! I have that question on my mind for a long time, finally, I got my answer)      Basically, I am confused with had and have. Since that question is not anymore on my mind after having got an answer, which one of the above two sentences should be used?


I have installed Ubuntu alongside windows but the problem is I am unable to get the dual boot screen where we have the windows boot loader listed, instead of that the computer directly boots into Ubuntu.....I  am unable to see the grub screen.  Any suggestions how to enable the dual boot list.


How can I draw plot curve with vectors and points using tex

How can I draw this curve with these vectors and points using tex.


When will Stack Exchange expose an API to post content?

Do Stack Overflow and the other Stack Exchange sites have an API for posting questions or comments to the site? Everyone else has one (e.g., Twitter, Netflix, etc.).  If not, are there any plans to implement an API for posting content? It could perhaps use .


Recursively setting all files in a directory as non-executable

I have an external hard-drive formatted as NTFS which I use to back-up and store files from both Linux and Windows (as I am dual-booting). I recently bought a new computer and installed Linux Mint 20 on it, and I would like to copy some of the files from my back-up to my computer's internal HD. I noticed that every single file in every single subfolder I copied from the hard-drive has had the option Allow executing file as program enabled in its permissions. How can I safely recursively run through a directory and set all files in all subdirectories as non-executable (including hidden ones and in hidden folders starting with .)? Also, is there a way of preventing this to happen in a NTFS hard-drive or would I be better off creating two partitions on it, an EXT4 for Linux and a NTFS for Windows?


Uninstall Ubuntu from dual boot with Windows in different drives

I have both Windows and Ubuntu on my machine with dual boot. Windows is on the SSD, and Ubuntu is on a normal hard drive. I've tried the most common solution online, which is booting from a Windows repair USB stick and typing bootrec.exe /fixmbr. But that doesn't work. I've read somewhere that that only works for adjacent Windows and Linux partitions. So, how should I uninstall Ubuntu without any traces?


Locked out of iPhone5 due to "Activation Required" bug

Yesterday, all of a sudden I started getting "Activation required" on my iPhone5 due to which I just can not login even when I enter my Apple credentials. Exactly this problem - .  Trying to follow  to solve it but I just can not get it into DFU mode .    - "While pressing and holding the Home button down, connect the USB cable to the iPhone, iPad, or iPod touch. The device should turn on." - The iPhone does not turn on for me :-/  How do I install 7.2 which has the bug fix?


what can I say about the solution $y(x)$ of the ODE?

Let $y:\mathbb R\to \mathbb R$ be differentiable and satisfy the ODE: $$\frac{dy}{dx} =f(y),x\in\mathbb R$$ $$y(0)=y(1)=0$$  where $f:\mathbb R\to \mathbb R$ is a Lipschitz continuous function. Then   $y(x)=0$ if and only if $x\in\ ${$0,1$} $y$ is bounded $y$ is strictly increasing $\frac{dy}{dx}$ is unbounded.   I've got this question from an exam paper, and I cannot understand how to solve it. How should I use the condition of Lipschitz continuity of $f$ to solve it?   Please help.   Thanks in advance.


Javascript Object.length based on key of last object

I have a list of filters to be applied to a data set using a simple key:value loop. When the user selects a filter, a new object is created with those key:value pairs. However, if there are 4 filters, and the user has selected only the 1st and 3rd filter items, the new object that is created is structured like this:  var newObject = {   0: {     key: value,   },   2: {     key: value,   } }   When I call newObject.length, it returns 3. See the following from Chrome devtools:    Object.length seems to be based off of the last key in the object, rather than the number of objects themselves. How can I get the newObject.length to return 2 instead of 3?  Here is my function that creates the object based on the filters:  selectedInModel: function() {   var selected = [];   var getInputs = inputService.primaryInputs; // returns filter object   for (var key in getInputs) {     if (getInputs[key]["value"]) {       selected[key] = {         "value": getInputs[key]["value"],         "id": getInputs[key]["id"]       };     }   }   return selected; };   How can I get Object.length to return the number of objects in my object?


On my user profile, on Suggestions under the Activity tab, I see no spaces between "suggested edit on" and the item that I suggested an edit on on each of my suggestions:


Power adapter outputting incorrect voltage

I have a power adapter that, according to the label, is rated for...  Input : AC 220v Output : DC 10-12v 2000MA  It has dual outputs allowing me to power two devices at once.  I am plugging it into a UK mains outlet and on measuring the power tips they both read 20v.  I have opened the unit up and the only components inside are a transformer, 4 rectifier diodes and a capacitor.  With such a small component count, which of these components could be causing the incorrect voltage to be output?


Splitting a PDF document in two without purchasing a PDF editing tool

Acrobat Reader allow us to easily save a copy of the PDF document. How can I save only from page 5 to 10 without purchasing a PDF editing tool?


How would one go about proving that two random variables are uncorrelated but not independent?

Suppose $\theta$ is a Uniform random variable on [0, 2$\pi$]. Let $X$ be $cos(\theta)$ and $Y$ be $sin(\theta)$. We have to show that $X$ and $Y$ are uncorrelated but not independent.  My solution:  $f_{\theta}(\theta) = \frac{1}{2\pi} $ ,    $0 < \theta < 2\pi$  Using LOTUS,  $E[X] = E[cos(\theta)] = \int_{0}^{2\pi} cos(\theta)\frac{1}{2\pi}d\theta$ = $0$  Similarly,   $E[Y] = E[sin(\theta)] = \int_{0}^{2\pi} sin(\theta)\frac{1}{2\pi}d\theta$ = $0$  $XY$ = $\frac{sin(2\theta)}{2}$. Therefore,  $E[XY] = \int_{0}^{2\pi} \frac{sin(2\theta)}{2}\frac{1}{2\pi}d\theta$ = $0$  Therefore $Cov(X,Y) = E[XY] - E[X]E[Y]$ = 0.  Correlation $\rho$ = $0$.  My question is:  Since $E[XY] = E[X]E[Y] (0 = 0 \cdot 0)$, wouldn't it also mean that they are independent. What am I doing wrong here?


What is the definition of machine learning (vs classical statistics), and can methods such as MCMC and bootstrapping be considered ML?

I'm in the process of writing about the differences between machine learning and classical statistics. I've been looking for some authoritative sources that would give a good, clear, plain-English definition, but I'm struggling to find anything I like.  Personally, my own, simplest definition of classical statistics would be something like:   "Using formal mathematical proofs and assumptions to model processes underlying data and use these for inference and/or prediction"  From my experience, the only fundamental difference between ML and statistics is that ML skirts the more complicated mathematics by relying on iteration - having a computer do something repeatedly, over and over again.   One often cited difference is that classical statistics focuses on inference whereas ML focuses on prediction, but that's not an essential difference and from what I can tell, it's less and less true over time. Especially recently, many of the big guys in the field (Friedman, Hastie, Tibshirani) have been promoting statistical learning which synthesizes both classical stats & ML and uses methods from either field for both inference and prediction.  Where I think it get especially tangled is in resampling methods. For example, bootstrapping and permutation tests are used in both classical stats and machine learning. By my own definition, I'd call bootstrapping machine learning, since we can use it to avoid having to do complicated mathematics by iterating a simple algorithm (repeatedly drawing random resamples of the original data). Similarly, MCMC and HMC methods used in Bayesian statistics rely on iteration to avoid having to compute a multiple integral, so I'd call them in essence "machine learning" too.   So do you know any good sources for what is the fundamental difference between classical stats vs machine learning? Especially if there is a discussion on bootstrapping/permutation/MCMC as machine learning?


APEX: access profile by name in known/predictable language regardless of running user's language

It was recently brought to my attention that for our clients, SalesForce translates profile names (such as "System Administrator") which causes errors when the Apex code attempts to check profile names in conditional code.  I should have thought translation should only have effected the presentation layer and Apex developers would need to go out of their way to consider it.  But I'm informed this is not the case.  Is there a way I can tell my Apex code that I am only considered with the value stored in a field (e.g. profile.name) and don't care at all whether it has been translated or what it may have been translated to?


Do people who have no income (living off savings) pay AMT?

Retired people who are living off their savings may have no income. Or what income they have might easily be offset by charitable giving.  Do such people still have to pay some kind of "alternative minimum tax" or does that only apply to people with income?


where can I find the Specifications of a Blade Server?

how can I find the CPU and speed of a UCS B230 Blade server? The chassis that I have do not power on and I was wondering if there is another way to find the specifications of these servers (ie. serial number etc.?  My last resort is to take the heat sink off and check and then put it back on (yes, I know I need to clean and prep before I reset the heat sink unit).


Is there a proper name for the 3 asterisks that are used to suggest temporal discontinuity?

For example, when some long prose passage ends, this appears:  * *  *  Then some new prose passage begins.  The three asterisks dividing the two prose sections are understood to divide the two sections into non-continuous temporal spaces.  I am interested in knowing if there is a specific name to describe symbolic or graphical markings that are meant to suggest temporal discontinuity.


Why do I get popular question points on questions that have no upvotes?

I often get popular question points/awards for questions that never received any upvotes. What exactly is the rank for popularity; impressions?


New cookie nag is not dismissable with some ad-blocking settings

I use Firefox first-party isolate and UBlock Origin with fairly strong settings (no third-party JS except allow-listed domains, etc.) and the new cookie nag:  has buttons that do not work at all. Presumably the settings are being outsourced to some third-party, which is itself something of a privacy concern. But it's frustrating that the UI element itself is local and displayed even with these third-party domains not allowed, while the interactivity isn't, making it impossible to dismiss without debugging it. So far I've just been blocking the whole thing with the element picker on SE sites I hit it on, but it would be nice if it just worked without relying on third-party domains or if it indicated the domains you need to unblock to make it work (and disclosed that SE is outsourcing this).


Were the lightsabers used by younglings different from the regular lightsabers used by Jedi or Sith?

On the comment to  question, a guy said that     those weren't TRUE lightsabers. They were training-level sabers.     These lightsabers look real (with saber length adjustment) to me which can do real damage including killing. How else can you build a glowing stick which can be turned on or off like the lightsabers Jedi or Sith own? On the other hand, this is the galaxy far far away we are talking about in which technology is comparable to magic.  I want to know from the canon (with proper citation): Could those lightsabers do real damages including death? Were they stripped down versions of the "true" lightsabers which Jedi or Sith own?


Suppose we start at the number zero, and repeatedly roll a fair 6-sided die, adding the resulting number to the total. We win if we reach the total 100, and lose if we overshoot, for example by reaching a total of 99 and then rolling a number greater than 1. Describe an algorithm for computing the probability that we win.


Gravitational attraction between two kilogram weights

Imagine two weights, each of mass one kilogram, floating in outer space. Starting one meter apart, and under no forces other than their own gravity, how long would it take before these two weights collided? To simplify the problem, assume the weights are actually point masses each of mass 1 kilogram.  So far, I've started with the fact that each weight feels a force of gravity equal to G/R^2, as each of the masses is 1 kilogram. However, this force changes as the weights keep getting closer because the R value would  decrease. Where could I go from here? Feel free to use calculus as I am familiar.


I have installed a version of GNOME after which the text in terminal appears garbled like this!


Get Identity of multiple insertion in sql server 2008

Hi Im going to insert 10 rows in a time using one TSQL which is available in SQL server 2008. I want the IDENTITY of inserted rows. I think the below solution would work but Im not sure if some other insertion happens while im running the previous insertion would affect the result   INSERT INTO tableA VALUES (1,2), (3,4), (4,5), .... DECLARE @LastID INT = @@IDENTITY  SELECT TOP(10) ID FROM tableA WHERE ID<=@LastID ORDER BY ID DESC


What is/might be the basic component that makes up elementary particles?

What is/might be the basic component that makes up elementary particles (like electrons and quarks)? Is this the stuff concerned with “strings” (string theory)? Can anyone explain it in layman's terms?


Should the same user be able to review the same answer as First Post and also as Late Answer?

Here are 2 reviews that were completed today (on Unix.SE):   A  review. A  review.   Things to notice about these reviews:   both reviews are related to the , and both reviews were reviewed by the , aka me.   My question: Should the same user be able to review the same answer as  and also as ?  IMO this question is not a duplicate of "", for these reasons:   My scenario was created using 2 different browser tabs (similar to what  mentioned in a comment here). Though I bet using any of these variations, with the same user id, would lead to a similar result (none of them are mentioned in the above mentioned question):   2 different browser windows. 2 different browsers. 2 different devices.  The accepted answer to the above mentioned question talks about using the  I'm Done button. However, in my 2 reviews mentioned above, it says that I used the No Action Needed-button. And since those 2 buttons are mutually exclusive, I think it proofs that in my case I was not even able to use the I'm Done button. So that accepted answer seems to not apply to my question/scenario.   BTW, a similar scenario seems possible for these variations:   First Posts versus Low Quality Posts. Late Answers versus Low Quality Posts.


Combinatorial argument for the identity $k\binom{n}{k} = n\binom{n-1}{k-1}$

I am looking for the combinatorial argument for the identity:  \begin{equation} k\binom{n}{k} = n\binom{n-1}{k-1} \end{equation}  This is easy to show algebraically as:  \begin{equation} \binom{n}{k} = \dfrac{n(n-1)(n-2)(n-k+1)}{k(k-1)!} \end{equation}   What is the combinatorial argument? What are some general ideas to get started?   Here is a clarification of 2. From what I have seen so far, proving (combinatorially) an identity with an addition sign usually implies that we need to partition a set (this makes sense because of the addition rule and provides a nice visual). On the contrary, the previous observation leads me to believe that multiplication in identities can be resolved with the multiplication principle, but what is the "visual/interpretation" for this? Could someone provide such an interpretation for the example identity given above?


How to center vertically and horizontally text in a div element

I want to center text above an image in an div element.   This is what i tried:  CSS:      .container {   margin: 0 auto;   max-width: 1200; } .header {     width: 100%; } .ring {     max-width: 100%;     position: relative;  } .flex_text  {     position: absolute;     color: #B64547;     z-index: 100;     font-family: Poppins;     font-size: 30px;     text-align: center; }   .cell img {     display: block; }   Html:

Brewing, get started!

   It did not work, obviously. The website is responsive, so the solution should work responsive aswell.   I looked around and tried a lot of different things but they didn't work. I don't know, but maybe there's a solution with jquery? Thanks :)


Do we need a new Markdown formatting for indented / boxed text (for preambles, remarks / side notes, postscripts, footnotes, …)?

I have been called out for using blockquotes for the wrong purpose. For quick reference, here's the blockquote in question (taken from ):        And this is :     "That paragraph […] is rendered in quote blocks. That means it's a quote. Where did you get the content from? You should cite your sources. If it's not a quote, it should not be in quote blocks. (If you want Markdown to be extended with more formatting options, request them on Meta.) Thanks."   I personally agree with the commenter. Just like the semantics of HTML tables have been "abused" over and over again for purely aesthetic purposes, so have I abused blockquotes. (I wanted the answer summary to be visually offset / stand out from the remainder of my post.) The problem is, Stack Exchange's Markdown doesn't offer any other formatting option (apart from code blocks) for indenting some text or putting it in a "box", so blockquotes are what I have been frequently resorting to for this purpose.  On the other hand, the Markdown help doesn't explicitly forbid the use of blockquotes for text other than longer citations. In fact, while it explains how blockquotes can be produced, it doesn't state at all when and for what blockquotes should be used:    (The same goes for many other formatting elements, btw.)  I can only guess that this is because the meaning of blockquotes was assumed to be obvious; and because one of the (if not the) first Stack Exchange sites (Stack Overflow) was directed at programmer types, who are perhaps expected to be familiar with HTML (which also has something called <blockquote> ).  Therefore I am asking:   Is there a demand for a formatting element that would be appropriate whenever paragraphs of text should somehow stand out from the main text flow; be it for prologues, preambles, asides / side notes, remarks, postscripts, footnotes, etc.? And if so, is this demand big enough that Stack Exchange's Markdown should have a formatting option for it? And if so, is the existing blockquote formatting (>) appropriate, or any other existing formatting, or does something new have to be added?   In either case, I believe the Markdown editing help should be more explicit about the intended semantics of blockquotes (and possibly of other formatting elements). If blockquotes have a clearly defined use case, then it should be stated explicitly. If not, then the help text should include something along these lines:     You can use > to put one or more text paragraphs in a block that visually stands out from the main flow of text.     Examples of how blockquotes are being used:  Below are some examples of how blockquotes are being used in the wild.  First, let me apologize for using so much content that I posted myself. I don't want to advertise my own posts; it was simply a quick way for me to locate some examples. If anyone has other examples, feel free to edit (and make me look less biased ;).  Also, take note that I am not judging the following examples; you may find that some demonstrate the "intended" / "proper use" of blockquotes, while others may be examples of an "abuse" of blockquote.   Actual quotations / citations (perhaps the intended implicit meaning of blockquotes), e.g. , , and :            (Note that some of these include only the quoted text, while others also include  a full or partial bibliographical reference.) The Stack Exchange engine itself uses blocksquotes to mark duplicate questions as such, and link to previous questions, e.g. :    As a meta-statement about the post itself, e.g.  and :       For side notes, remarks, etc. that aren't considered as important or relevant to the post as the non-quoted text, e.g. :   Similar to the above, for postscripts (P.S.), i.e. text that was added to the post later on; e.g. :   To cite the source of a non-blockquoted blockquote, e.g. :


Is there any hook to change media html in post?

When I add image to a post, wordpress makes this html format in theme.

   How can I change the above format to get possible html output like this, using hook or function:

   Edit: Tried image_send_to_editor filter on same and 2016 theme, but alteration or so found.


How can I SELECT rows with MAX(Column value), PARTITION by another column in MYSQL?

My table is:     id home datetime player resource     1 10 04/03/2009 john 399   2 11 04/03/2009 juliet 244   5 12 04/03/2009 borat 555   3 10 03/03/2009 john 300   4 11 03/03/2009 juliet 200   6 12 03/03/2009 borat 500   7 13 24/12/2008 borat 600   8 13 01/01/2009 borat 700     I need to select each distinct home holding the maximum value of datetime. Result would be:     id home datetime player resource     1 10 04/03/2009 john 399   2 11 04/03/2009 juliet 244   5 12 04/03/2009 borat 555   8 13 01/01/2009 borat 700     I have tried: -- 1 ..by the MySQL manual:   SELECT DISTINCT   home,   id,   datetime AS dt,   player,   resource FROM topten t1 WHERE datetime = (SELECT   MAX(t2.datetime) FROM topten t2 GROUP BY home) GROUP BY datetime ORDER BY datetime DESC  Doesn't work. Result-set has 130 rows although database holds 187. Result includes some duplicates of home. -- 2 ..join  SELECT   s1.id,   s1.home,   s1.datetime,   s1.player,   s1.resource FROM topten s1 JOIN (SELECT   id,   MAX(datetime) AS dt FROM topten GROUP BY id) AS s2   ON s1.id = s2.id ORDER BY datetime   Nope. Gives all the records. -- 3 ..something exotic:   With various results.


Last week I set up a few filters for tags of interest. The web page informs of a verification e-mail message, but such messages are not being sent (or somehow never reach the e-mail server).  New questions have been filed for these tags and I have not received any e-mail notification. Perhaps because the e-mail is not verified, but I can not be sure.  Is there anything I can do to start receiving these e-mails?


Some time ago I borrowed from my father a paperback science fiction novel with an Arab setting, possibly from the late eighties or nineties. Much, perhaps all, of the action takes place in the Medina of a city somewhere in the Middle East. I think it is a first-person narrative; the protagonist explains that his name, which I think is Majid, means "illness" in the Arabic of the Maghreb where he is from, where people are given unattractive names to fool the evil spirits. He is a poor but honest hustler in the Medina.


can anyone tell me how this is illegal shadowing in JS?   let a = 10;  {   var a = 20; }    What I know is var 'a' will be created at global space and let 'a' is created at script space. Both are different memory location so why above shadowing is not possible


What is the purpose of a combustion chamber in a jet engine?

I've learned that in combustion chamber fuel and air are mixed and burned but I dont understand the outcome. Ive heard that after combustion it is still very hot and I also seen that you loss heat as a result. So can someone clear this up for me so its not so confusing, also if you need to burn the air and fuel mixture why can you just use the hot air from the compressors?


I got an array  string [] strings = new string[] {"1", "2", "2", "2", "1"};  You can see the value of the array is just 1 and 2, just 2 values, you could say, and I want to get those value out...What I did is here, just a start:  string[] strings = new[] { "1", "2", "2", "2", "1"}; int[] ints = strings.Select(x => int.Parse(x)).ToArray();   I don't what is next...Anyone helps?


Converting String to Double in Swift reveals extra decimal places

I am trying to round a number to 7 decimal places by converting my input number to a string and then back to a double. The value of the string is how I would like it, but when converting it back to a double more decimal places are revealed. Any remedy for this situation?  let inputNumber: Double = 99.99990338164251  let roundedString = String(format: "%.7f", inputNumber) //"99.9999034"  let outputNumber = Double(roundedString) //99.99990339999999


Should we burninate the [stackexchange] tag?

I didn't notice it until recently, but apparently we have a  tag. IMHO it's rather pointless; as you may guess,     This tag is for questions about the entire network of Q&A sites that make up the Stack Exchange network.   Well, this entire site is questions (and answers) about the entire network of Q&A sites that make up the Stack Exchange network. I think we can safely say that if a question can't be tagged with  it's off-topic here.  The major problem is that 1.5k questions have this tag, so a manual burninate process will be very cumbersome. There is without a doubt a magic script to remove the tag for all questions (without bumping them), but I can imagine the CMs/devs don't want to run it because it would set a precedent. Still, this might be a case where it's worth it.


integral domain as an intersection of localizations

I am stuck on trying to prove that $$\bigcap_{m \text{ maximal}}A_m = A$$  where $A$ is an integral domain (commutative, ring with unity). I would appreciate any hint! Thanks!


A list comprehension of lambdas returns the same values

I've found this example somewhere, and I cannot understand it.  >>> mult = [lambda x:x*i for i in range(4)] >>> mult [<function <listcomp>.<lambda> at 0xb6823464>, <function <listcomp>.<lambda> at 0xb682341c>, <function <listcomp>.<lambda> at 0xb68234f4>, <function <listcomp>.<lambda> at 0xb682353c>] >>> [m(2) for m in mult] [6, 6, 6, 6] >>>    As I see, the first line creates a list of lambda functions which I can call afterwards. What I don't understand is the output of [6,6,6,6]. As I can see, the elements of mult are located in different parts of memory, so, these are not several references to the same data block. But why do they produce the same results? Do all these functions reference the same i (which is the last one, which is 3), and why is this happening? And is there a quick way to make such a list of lambdas that would produce [0,2,4,6] instead?


Force Chrome to open new pages in new window, not tab? (when opened from a program)

Whenever I click a link from something like outlook or a program opens a web page (not when I click a link from within chrome). It opens up in Chrome since it is my default browser but if I already have a page open it will open in a new tab on that same window. I can't tell you how many times I forget about this and close the window out, accidentally losing the other tab too. Ofcourse, I can open a new chrome window and find it under recently closed tabs but I would really just prefer if they opened in their own window so I can prevent this.


How can I let people join my minecraft server from diffrent versions?

I've seen multiple servers where you can connect from any (recent) major version. (Example, 1.9, 1.8 OR 1.7) And they all seem to be able to do it. Alas, a simple google search did not fix the problem. Any ideas? Thanks guys.  (PS: The Minecraft server is running on the latest Spigot for 1.10 as of 6/27/16)


Why do two approaches to this capacitors problem give two answers?

I came across a capacitors problem that seemed to be very simple, but I can't figure reasoning as to why two approaches to the problem yield two different answers. One of them is wrong, but I can't tell why.  So in the figure above, consider the two faces of the cube connected by the wires as parallel plates of a capacitor, each with area $A$. It is filled completely with two materials of dielectric constants $\epsilon_1=2$ and $\epsilon_2=4$. The side length of the cube is $d$. Now, I thought of two ways to 'break' the system, as below:  The first figure is the correct way of doing the problem, and after calculating the capacitances of each individual block, and finding the net capacitance, the answer comes out to be $\frac{7A\epsilon_0}{3d}$. The second figure is what I thought could be another way of solving the question, but it yields a very different answer of about $\frac{12A\epsilon_0}{5d}$. And I cannot tell why. The reason could be that the potential of the face where I am making the partition in the second figure is not the same for both blocks (the ones to the right), so assigning them a parallel combination is an error. But I can't tell why the potential should be different. The charge is flowing to those blocks in a very uniform way from the left, they can't be at a different potential. Original question from JEE Advanced 2015 paper 2Apologies if the figure is a bit sketchy, I tried my best to recreate it as I could not find a clear image of the problem on the internet. Edit: In the first figure, the two blocks at the top are in series and the bottom block is in parallel combination with them. In the second figure, the two blocks at the right are in a parallel combination, and the block at the left is in a series combination with them.


What does DescribeFieldResult.getDefaultValue actually return?

So in the documentation for the DescribeFieldResult.getDefaultValue , it says:     Returns the default value for this field   There is a related method called getDefaultValueFormula whose description reads:     Returns the default value specified for this field if a formula is not used.   What is the difference between these methods? I have a field with a default value. When I call getDefaultValue, I get null. When I call getDefaultValueFormula, I get back "This is the default value" (with quotes). I don't understand why getDefaultValue returns null.


How to query users in SE data, sorting by "people reached"?

I'd like to see the number of people I reached on a specific tag compared to others in my country. Found how to . How can I compare using the number of people reached instead of reputation?


I am puzzled as to why the  package in R does not allow tuning on the number of trees (ntree) in a random forest (specifically in the  package)? I cant imagine this is an oversight on the part of the package author - so there must be a reason for it? Can anyone shed light?


How do I exit a process in terminal without killing it?

I created a script to run my react build on port 5555  and on running it, I get  I want to quit this process without killing the server. How can I do it? Output with &


Was there a meaning to the song used in the Battlestar Galactica episode "Crossroads Part II"?

Starting with the episode "Crossroads Part II" the      final five Cylons begin to hear Bob Dylan's "All Along the Watchtower" in their heads.   Have the creators/writers ever stated why they picked that song in particular and what it might mean to the story?


Python: How to keep while loop running without repeatedly asking for raw_input()?

I have the following While loop that will ask user input and then ask for it again and again before printing 'hello'. What I'd like to do is to ask the user for raw_input once and then run the while loop without the user having to type anything at all and keep the while loop running untill the user types 'q'.  inp = raw_input()  while inp != 'q':     inp = raw_input()     print 'hello world'


In Microsoft Word, the following sentence is flagged.  It tells me to use "was" instead of "were"     There were half a dozen books strewn about the floor.   I would think that you would use "were" since it's a quantity more than one.  You wouldn't say, "There was twelve books strewn about the floor."  Does the use of the "half" modify it somehow?


In many models, many objects have vanished and just appear as dots. Why?

My GPU is an Intel HD Graphics 530 - driver: i915 v: kernel. on Linux Cinnamon. A bunch of my models suddenly look very different in Blender. Some objects look unchanged, but most of the objects in any given model only show up as an orange dot at the object's center. In these cases the object itself is invisible, and yes they are all marked as visible and renderable. Some models have dozens of objects and almost all of them have this useless behaviour. Closing and reopening Blender did not help. All the objects are meshes of simple shapes, combined with boolean operators (just about always Difference.) I assumed I'd somehow corrupted Blender, so I deleted it and installed 2.91 (Linux). I opened models and the problem still exists. I can only assume there's some strange setting that's sticky across installations and models, but I'm still moderately new at Blender so I'm only guessing. I have a lot of complicated models at this point that I do not want to lose. I don't want to try editing them (not that I could see what I was doing) for feat of doing more damage. Can someone walk me through fixing this? This should look something like a vacuum tube (and used to): Blend file:


Book recommendation for analysis problems

I am studying Apostol's book of Mathematical Analysis, and I am looking for problems. I have solved most of the problems in Apostol and most in Rudin, also from Folland. Can someone plese recommend any other book with decent problems? I know this question has been asked before. I need mostly proof problems. Any help or reference would be appreciated.  Thank in advance!


Error when adding ppa repository: keyserver.ubuntu.com: Host not found

I had to reinstall Ubuntu today and despite having configured proxy for Apt, when trying to add a new PPA, the step that communicates with keyserver.ubuntu.com fails:  $ sudo add-apt-repository ppa:webupd8team/sublime-text-3  Sublime Text 3 Installer: the package in this PPA downloads and installs the latest Sublime Text 3 beta builds.  For more info, see: http://www.webupd8.org/2013/07/sublime-text-3-ubuntu-ppa-now-available.html  More info: https://launchpad.net/~webupd8team/+archive/ubuntu/sublime-text-3 Press [ENTER] to continue or ctrl-c to cancel adding it  gpg: keyring `/tmp/tmp_wo9o6sl/secring.gpg' created gpg: keyring `/tmp/tmp_wo9o6sl/pubring.gpg' created gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com ?: keyserver.ubuntu.com: Host not found gpgkeys: HTTP fetch error 7: couldn't connect: Success gpg: no valid OpenPGP data found. gpg: Total number processed: 0   I have no trouble installing package via Apt, so as far as I can tell, proxy is setup properly:  $ cat /etc/apt/apt.conf Acquire::http::proxy "http://my-proxy:8080/"; Acquire::ftp::proxy "ftp://my-proxy:8080/"; Acquire::https::proxy "https://my-proxy:8080/"; Acquire::socks::proxy "socks://my-proxy:8080/";  $ env | grep proxy http_proxy=http://my-proxy:8080/ ftp_proxy=ftp://my-proxy:8080/ https_proxy=http://my-proxy:8080/   I can communicate with the keyserver.ubuntu.com as well:  $ curl keyserver.ubuntu.com  <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">   <head>     <title>SKS OpenPGP Public Key Server</title>   </head>   ...   I can't remember having done anything different in the past. I only had to configure http/s_proxy environment variable as well as configuring /etc/apt/apt.conf.  Any ideas what am I missing here?


A single word for a person who can speak many languages

Please suggest me a single word for a person who can speak many languages.


I've been up to Blender since mid 2016, started to work professionaly selling my 3D models since Jan, 2018... and now I'm used to hear the same questions from the customers: "Are your models game-ready?"  And I always reply: "By the moment all my models published are not 100% optimized for games"  I say this because I do use PBR materials, modelled mid-poly with tris, and now I'm learning to get my new models rigged and ready to animate. But I think something is missing.  The principal question is... what it takes to make a model game-ready?  do I have to use Blender Game Engine to achieve this? In college, they taught me how to use Cycles only, and I don't know if a model with mid-poly tris, PBR materials and properly rigged for animations makes it "game-ready" altough it was made entirely in Cycles engine.  a "game-ready" model bought from a digital store, makes it ok for commercial licencing? this is a polemic question, but some customers ask this in some situations. For example: imagine that I make a 3D game-ready model of a Fender Stratocaster guitar, and sell it on internet via a third-parties 3D gallery. That model can make it into an actual published lucrative videogame using the brands and models I've made?  Thanks in advance for your support.


I need to type some code in Latex, but when I type [replace] (as a part of the code) it says:  "Missing number, treated as zero"  Here is my minimal working example:         \documentclass[]{report}        \begin{document}        \texttt{        [some text]\\        some other text\\        [replace]\\         blablabla\\         }        \end{document}   Any Help is appreciated :) Thanks a lot in advance!


I thought that the ground was different from “earth”!

According to Paul Scherz in his Practical Electronics for Inventors, he mentions in Chapter 2, Theory, the following:     Typically, the earth, with its infinite charge-absorbing ability and net zero charge, acts as a good point for comparison. It is considered the $0-V$ reference point or ground point.   I thought that ground in any circuit was a point in the circuit with respect to which other voltages were measure. And it was literally the connection to the earth (for safety purposes in house wirings, etc.) that earth meant.  But the text suggests that I’m wrong.  I just want to know what is correct.


Multiple artists modelling the same file

I am looking for a workflow that allows multiple artists to work on a project where users can work in parallel and assuming they don't change exactly the same thing the work can be smoothly merged.   I am used to working with a game engine using xml and many separate binary files which works well with a versioning system like git or svn.


On the uniqueness of the Riemann-Christoffel tensor

According to Section 6.2, Gravitation and Cosmology by Weinberg, the Riemann-Christoffel tensor is the only tensor that can be constructed out of the second (or lower) order derivatives of the metric tensor and is linear in the second order derivatives. The reasoning behind the same goes like this:   In a class of frames where $\Gamma^{\lambda}_{\mu\nu} =0$, the transformation rule for $\dfrac{\partial \Gamma^{\lambda}_{\mu\nu}}{\partial x^{\kappa}}$ involves an inhomogeneous term which is symmetric in $\mu$, $\nu$, and $\kappa$. Thus, if one is to construct a tensor which is a linear combination of the first order derivatives of the Christoffel symbol then the only way to do so is by eliminating the inhomogeneous part of the transformation and this could be done only by making the combination explicitly antisymmetric in $\mu$ and $\kappa$. Since in these frames, $R^{\lambda}_{\mu\nu\rho}$ $ = \dfrac{\partial \Gamma^{\lambda}_{\mu\nu}}{\partial x^{\rho}} -  \dfrac{\partial \Gamma^{\lambda}_{\mu\rho}}{\partial x^{\kappa}} $, $R^{\lambda}_{\mu\nu\rho}$ is the only tensor that can be formulated using the second (or lower) order derivatives of the metric tensor and is linear in the second order derivatives.  I think the presented argument can only suffice to prove that $R^{\lambda}_{\mu\nu\rho}$ is the only tensor that can be formulated from the first derivatives of the Christoffel symbol and is linear in them. I can't figure out why this suffices to assert that $R^{\lambda}_{\mu\nu\rho}$  is the only tensor that can be constructed out of the second (or lower) order derivatives of the metric tensor and is linear in the second order derivatives.  Edit: As the metric is covariantly constant, $\dfrac{\partial g_{{\mu}{\nu}}}{\partial x^{\rho}} = \Gamma^{\kappa}_{{\mu}{\rho}}g_{{\kappa}{\nu}}+\Gamma^{\kappa}_{{\nu}{\rho}}g_{{\kappa}{\mu}}$.  Therefore,   $\dfrac{\partial^2 g_{{\mu}{\nu}}}{\partial x^{\xi}\partial x^{\rho}} = \bigg(\dfrac{\partial \Gamma^{\sigma}_{{\mu}{\rho}}}{\partial x^{\xi}} + \Gamma^{\sigma_1}_{{\mu}{\rho}}\Gamma^{\sigma}_{{\sigma_1}{\xi}}\bigg)g_{{\sigma}{\nu}}+\bigg(\dfrac{\partial \Gamma^{\sigma}_{{\nu}{\rho}}}{\partial x^{\xi}} + \Gamma^{\sigma_1}_{{\nu}{\rho}}\Gamma^{\sigma}_{{\sigma_1}{\xi}}\bigg)g_{{\sigma}{\mu}} + \bigg(\Gamma^{\sigma}_{{\mu}{\rho}}\Gamma^{\sigma_1}_{{\nu}{\xi}}+\Gamma^{\sigma}_{{\nu}{\rho}}\Gamma^{\sigma_1}_{{\mu}{\xi}}\bigg)g_{{\sigma}{\sigma_1}} $  Now, if I want to show that the Riemann-Christoffel tensor is the only (non-trivial and independent) tensor that can be formulated out of the linear combinations of the second order derivatives of the metric tensor then I can equivalently show that the above expansion can be expressed linearly in terms of the Riemann-Christoffel tensor. But I am stuck over how to do it. Also, I am a little bit unclear as to what a linear combination means in this context. The coefficient of the second order term can be only a scalar constant or can it be the metric or can it be the metric that is getting summed over any of the indices as well?


What do you call a '>' relation between two unknowns?

I know that in mathematics, the relation a = 2b is called an equation.  Is the relation a > 2b still called an equation or is it called something else?


I want to replace a string "#security" with "security\n\tauthorization : enabled" in a file file.txt. Here \n represents a new line and \t for tab. How can I do this using sed command.


NSString how operator overloading is done

NSString *str = @"Hello World";  If operator overloading is not a thing in Objective-c how is this possible ? Is it built into a compiler ? And one more question, how does it initialize it self ? what constructor is called ? does it allocate memory for a class it self or again some compiler magic ?


There are infinitely many $k$'s such that $p_{k+1}-p_{k}>2$

This question was part of my number theory assignment which could not be discussed due to pandemic. Question: Let $p_k$ be the $k$th prime number. Show that there are infinitely many $k$'s such that $p_{k+1}-p_{k}>2.$ Assuming that there are only finitely many such $k$'s, for all other $p_{k}$'s I would have $p_{k+1}-p_{k}\leq2,$ but for such infinitely many primes to exist twin prime conjecture need to be assumed. So, I think it cant be proved by contradiction. So, can anyone please tell how to approach this particular problem?


Prove that $\tan 2A = \frac{2\tan A}{1- \tan^2 A} $

Prove that   $\tan 2A = \frac{2 \tan A}{1- \tan^2 A} $   using identities of $\sin 2A$ and $\cos 2A$   Can I get a hint on how do I start this ?  Identities from $\sin 2A$ and $\cos 2A$ doesn't give me a $\tan A$ so how do I prove it ?


How do I log into my Linux laptop if I have forgotten both the login and password?

How do I log into my Linux laptop if I have forgotten both the username and password?


Can my items be stolen if I leave them somewhere?

I haven't bought a house, but I have my own quarters as:      the Archmage of Winterhold, after Savos Aren dies and I bring back the Staff of Magnus.   If I put some items in a chest by the bed, will they stay there permanently until I remove them, or could they be stolen by NPCs, disappear over time, etc.?   On a related note, I've noticed that items remain until I come back when dropped arbitrarily across landscape, buildings, and caves. Has anyone experienced a case where this is not true?


I don't know why, but I cant render anything in CUDA and OptiX but OpenCL work fine. I cant use Cycles render because it's very laggy. I have newest  version of Blender and an RX 590 Red Dragon 8gb. Why does that happen?  How can I turn on my gpu?


A quick google returns the answer on the parity of zero:  Zero is an even number. In other words, its parity—the quality of an integer being even or odd—is even. The simplest way to prove that zero is even is to check that it fits the definition of "even": it is an integer multiple of 2, specifically 0 × 2.  So I know I've answered my own question but I still wanted to ask whether in some respects zero is the only number that is neither even nor odd?


Grub2 splash screen appears for 30 seconds despite efforts to reduce it

I want to remove or greatly reduce the time for which the GRUB screen appears. I have used GRUB customizer and gedit. All the values are what they need to be, yet the screen remains for 30 seconds. Using Ubuntu 18.04.   What could be the problem, and how can I fix it?


(1)  If $E$ is a subset of $\mathbb R$ with finite outer measure, i.e. $m^{*}(E) <\infty$; and   (2) $E$ is not Lebesgue measurable, i.e. there exists $F$ such that  $m^{*} (F) < m^{*}(EF) + m^{*}(FE^{c}).$  [Claim] There exists an open set $O\supset E$ with finite outer measure, such  that   $$m^{*}(O E^{c})  > m^{*} (O)  - m^{*} (E).$$  My  questions are the following.  (1) Is the above claim correct? I've seen this in Royden's book, but have a bit concern. Note that a set $E$ is Leb measurable if  it satisfies caratheodory condition: $m^{*} (F) = m^{*}(EF) + m^{*}(FE^{c})$ for  all subset $F$. If the claim is yes, it seems that measurability condition can  be reduced from all subset $F$ to Borel set $F$.  (2) If the claim is correct, a proof is needed.


What is the best way to clean an LCD monitor?

I have loads of grubby finger marks on my monitor (mine and smaller people's).  I'm not sure how to clean them off without damaging the monitor.  What's the best way to safely clean dust, smudges and fingerprints off an LCD?


Limit of: $ -x+\sqrt{x^2+x} $ for $ x\to\infty $

Why the solution of this limit: $$\lim_{x\to\infty}-x+\sqrt{x^2+x} $$ is $\frac{1}{2}$?  I tried to do De L'hopital to $$\frac{-x^2+x\sqrt{x^2+x}}{x}$$ but whitout success.


NLCD WMS Server Returns Color Index Instead of Classification Code

When I use the WMS service to download a region of the NLCD 2016 dataset the service returns a geotif with color index value and not classification code.  The image successfully loads in ArcMap or QGIS and is rendered using the appropriate style.  However, when I identify individual cells to check their values I get color index and not classification code. Furthermore,  I can use the online  and download a similar image using the draw tool.  When I do this the downloaded image contains the correct style and classification codes instead of color index. This is desired output I am looking for from WMS service. Should my query be adjusted to return the correct value (classification) instead of color code? Ex. query -


Cannot update to Lollipop version in moto G(2nd Generation)

I didn't get any notification about the OS upgrade, Also I tried from my phone's Settings(Settings->About phone->System update). It resulted same there.  Kindly help me to upgrade to Lollipop version.


Can Linux be installed on a logical FAT32 partition?

Want to install Linux so that I can boot to my old windows and another Linux.


How to prove that a axiom in a certain system is independent of the other ones?

As I'm learning Zermelo–Fraenkel set theory, a question arises: How do we know (or prove) a axiom in a axiomatic system is independent of the other ones? (that means we can not prove one from the rest)?  Many thanks for your help!


Is there a way to extend electrical wire where the splices can be finished over?

I want to extend some wires to relocate some switches. Normally one might do this by splicing new wires in and covering the junction box with a cover plate.  Is there a way to permanently splice wires together such that the splices don't need to be accessible?


Can you please explain me how do i find in a simple way the number of times that a certain string occurs inside a big string? Example:    string longString = "hello1 hello2 hello546 helloasdf";   The word "hello" is there four times. how can i get the number four. Thanks  EDIT: I would like to know how i find a two word string as well for example:   string longString = "hello there hello2 hello4 helloas hello there";   I want to know the number of occurrences of "hello there".  EDIT 2: The regex method was the best for me (with the counts) but it does not find a word like this for example: ">word<" . Somehow, if I want to search for a word containing "<>" it skips it. Help?


Find a limit of this sequence: $\lim_{x\to\infty }\frac{q^{x}}{x!}$

$\lim_{x\to\infty }\frac{q^{x}}{x!}$ I need to find a limit of this sequence and prove it using the definition.  I know that we can have several variants of the limit of $q^{x}$: if $1>q>-1$ the limit is $0$, for $q=1$ the limit is $1$, for $q>1$ the limit is $\infty $,  and for $q\leq -1$ it doesn't exist.  The limit of factorial $x!$ should be $\infty $, but I'm not sure and I don't know how to prove it.  Can you help me please with the whole fraction.  I don't know how to find a limit if we have something like $\frac{0}{\infty }$ or $\frac{1}{\infty }$ or $\frac{\infty}{\infty }$.


Did Apple shut down the Activation Lock checker? Why?

I have an used iPhone 6s that is pin locked and I wanted to check whether it was locked to iCloud or not.  I opened  to find out that the service is no longer available.    Is there any reason Apple decided to disable this tool? Now it will be harder to tell if an used iPhone that you want to buy is stolen.


"You are missing the following 32-bit libraries, and Steam may not run: libc.so.6" The common fixes don't work,

So I know this is a problem that has been asked around a lot, but I've tried a bunch of solutions with no success. I'm running Ubuntu 12.04 (64 bit), and I just installed it yesterday. This is my first time working with linux.  The error is: You are missing the following 32-bit libraries, and Steam may not run: libc.so.6  Things I've tried. First, I had downloaded from the steam website. I uninstalled it, and tried again from the ubuntu software centre.  sudo apt-get update sudo apt-get install ia32-libs sudo apt-get upgrade   This installed a bunch of the 32 bit libraries, but did not fix the issue. This seems like the major fix for most people. The direct approach of  sudo apt-get install libc.so.6   returns this:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package libc.so.6 E: Couldn't find any package by regex 'libc.so.6'   I guess libc.so.6 isn't a package, just a single file or something? I also tried  gksudo gedit /etc/ld.so.conf.d/steam.conf   Added these two lines, those the second one was all ready in the file, but copied over:  /usr/lib32 /usr/lib/i386-linux-gnu/mesa   Then executed:  sudo ldconfig   But nothing seemed to happen, steam still doesn't work.  So, I feel like it is more likely that I have the library and steam isn't looking in the right place. One thing I've seen is people usually reference /usr/local/lib/ for your library locations. However, I can't find where to cd into /usr/, it isn't in my home folder. If /usr/ is the home folder, there is only a /.local folder which only has /share, no lib anywhere. Sorry for my linux ignorance.  I appreciate any help, I honestly have no idea how to confirm I have the library and point steam to it, or if that is even the right thing to do.  Edit: Tried this, not entirely sure what it means  ~$ ls -l /lib32/libc* -rwxr-xr-x 1 root root 1721832 Sep 30 11:06 /lib32/libc-2.15.so -rw-r--r-- 1 root root  185928 Sep 30 11:06 /lib32/libcidn-2.15.so lrwxrwxrwx 1 root root      15 Sep 30 11:06 /lib32/libcidn.so.1 -> libcidn-2.15.so -rw-r--r-- 1 root root   34316 Sep 30 11:06 /lib32/libcrypt-2.15.so lrwxrwxrwx 1 root root      16 Sep 30 11:06 /lib32/libcrypt.so.1 -> libcrypt-2.15.so lrwxrwxrwx 1 root root      12 Sep 30 11:06 /lib32/libc.so.6 -> libc-2.15.so


well I need do some things when new category is created,   I've been looking for which is the hook for this but I don't found nothing that's works.  If you can help me, thanks.


Would a Jedi (Sith) clone be force-full or force-less

Just seen a picture of Vader Force-choking a trooper. And then I started wondering: what if they had cloned a Sith (or a Jedi). Would the clones have the Force? Specifically, would they have the same Force as the original?


How to manage DEFAULT PRIVILEGES for USERs on a DATABASE vs SCHEMA?

I want to migrate a fairly simple, internal, database driven application from SQLite3 to PostgreSQL 9.3 and tighten the permissions in the DB as I go.  The application currently consists of a command to update the data; and one to query it. Naturally, I'll also need to maintain the database in other ways (create new tables, views, triggers, etc).  While this application will be the only one hosted on the server at first, I'd prefer to bake in the assumption that it might be hosted on a server with other databases in the future, rather than having to scramble later if that becomes necessary in the future.  I would think that these would be a fairly common set of requirements, but I'm having trouble finding a simple tutorial explaining how to set up a new database in PostgreSQL, with this sort of user/privilege separation. The references go on at length about groups, users, roles, databases, schemas and domain; but I find them confusing.  Here's what I've tried so far (from within psql as 'postgres'):  CREATE DATABASE hostdb; REVOKE ALL ON DATABASE hostdb FROM public; \connect hostdb CREATE SCHEMA hostdb; CREATE USER hostdb_admin WITH PASSWORD 'youwish'; CREATE USER hostdb_mgr   WITH PASSWORD 'youwish2'; CREATE USER hostdb_usr WITH PASSWORD 'youwish3';  GRANT ALL PRIVILEGES ON DATABASE hostdb TO hostdb_admin; GRANT CONNECT ON DATABASE hostdb TO hostdb_mgr, hostdb_usr; ALTER DEFAULT PRIVILEGES IN SCHEMA hostdb GRANT SELECT, INSERT, UPDATE, DELETE ON TABLES TO hostdb_mgr; ALTER DEFAULT PRIVILEGES IN SCHEMA hostdb GRANT SELECT ON TABLES TO hostdb_usr;   But I'm not getting the intended semantics. I want to have it configured so only the hostdb_admin can create (and drop and alter) tables; the hostdb_mgr can read, insert, update and delete on all tables by default; and the hostdb_usr can only read all tables (and views).  When I tried this I found that I was able to create tables in hostdb as any of these users; but, for each user, I could only read or modify tables created by that user - unless I use an explicit GRANT.  I'm guessing that there's something missing between CREATE DATABASE and CREATE SCHEMA, something to apply the SCHEMA to the DATABASE?  (As things get more advanced I'll also have questions to apply similar restrictions on TRIGGERS, stored procedures, VIEWS and perhaps other objects).  Where can I find a decent guide, tutorial or video series on this?


Any way to have variable min and max in one visualization parameter?

What I mean is: I'm using the "3 standard deviations" value to visualize my data, but this changes seasonally so I need to update what the values actually are for each image. Can I create a "3 standard deviations" palette that will automatically calculate these new values for each image?  In pseudocode terms, I'm imagining something along these lines:  var Oa04_palette = { bands: ['Oa04_radiance'], min: sminus3, max: splus3, sminus3: standard deviation of 'Oa04_radiance' * -3, splus3: standard deviation of 'Oa04_radiance' * 3 };   So when I add a bunch of layers all using this palette, it will always use the appropriate min-max range for that layer.


Is there a difference between function FunctionName() & var a = function()?

I just started writing in JavaScript a few hours ago and I've seen some code use:  var a = function()  function FunctionName()


I have a JTable where one column has a  (There are no event listeners involved.) The problem is that the cells are not displaying JComboBoxes, but just as JLabels of the underlying list's toString. I have a class that implements TableModel which on isCellEditable returns true for that column. Rhe cells do not respond to the mouse.  I have tried having getColumnClass return both JComboBox and the class of the underlying list, and in both cases I still just get the list's toString. I haven't made much headway in trying to make my own renderer because 1. The Oracle tutorial "How to Use Tables" is one of the most incomprehensible programming web pages ever written, and 2. I strongly suspect that I am "doing it wrong" since surely swing already knows how to render a JComboBox of Strings. Doesn't it?  The desired behavior is that they appear to be JComboBoxes and can be edited with the mouse. I sense I should be posting more details but I don't know what I should be posting. Thanks in advance.


It's not possible to find Community user posts cause of negative id

It shows posts by user with id 1 (Jeff Atwood), not -1.


Why is $\lim_{x \to 0} x\cdot \left\lfloor\frac{1}{x}\right\rfloor = 1$?

I've tried plotting the graph of the function in Desmos and WolframAlpha, and true to the limit, the function tends to 1.  I would assume by the product rule of limits, that  $\lim_{x \to 0} x = 0$, and hence the whole lot should be zero, too, but apparently not, as the behaviour of the floor function somehow makes the function tend to 1.   Or does it behave like $\lim_{x \to 0} \frac{x}{x} = 1 \mid x \in \mathbb{R}\backslash \{0\}$—which is much more straightforward to deduce? If so, why? I'm a little confused.


Computing the determinant of a Vandermonde-like matrix

Fix an integer $m \geq 2$ and consider the following square matrix with entries in $\Bbb{R}[x_0,\dotsc,x_m]$: $$ M_m = \begin{pmatrix} 1 & x_0 & x_0^2 & \cdots & x_0^{m+1} \\ \vdots & & & & \vdots \\ 1 & x_m & x_m^2 & \cdots & x_m^{m+1} \\ 0 & 1 & 2 x_0 & \cdots & (m+1) x_0^m \end{pmatrix}. $$ Factoring the determinant for small values of $m$ via row operations suggests that $$ \left\lvert \det M_m \right\rvert =   \left( \prod_{i = 1}^{m} (x_i - x_0)^2 \right)   \left( \prod_{0 < i < j \leq m} \left\lvert x_i - x_j \right\rvert \right), $$ however I am having trouble proving that this is the case in general. Is there a way to prove or disprove this claim?


I'm planning a road trip for this summer, roughly between San Diego and Seattle, and I'm looking at car rental options for this one-way trip (I wouldn't be returning to the pick-up location).  I've been searching this and other forums and still don't get a clear picture about the one-way fee. Even though I assume having to pay it is quite probable, there seem to be some cases in which it is waived. I'll give first what information I've gathered and ask a couple of questions at the end.  Doing a search on www.drive-usa.de (I'm European) for San Diego - Seattle, I get a lot of options with Alamo with a "free" one-way fee. However, searching directly on Alamo's website doesn't offer this. A look at the rental terms on drive-usa.de shows the following on one-way fees:     Not permitted in the category LM.      One Way Rentals from/to Alaska are not permitted.      One-Way fee is waived within Florida, California, and within an island   in Hawaii. Fee also waived for rentals between California and Nevada,   between California and Arizona, and between the airports of Seattle   and Los Angeles/San Francisco.      One-Way rentals in the convertible category with pick up in San   Francisco in July and August are subject to a $455 one-way fee.       For all other categories and rentals starting at a San Fransisco City   locations a special one-way fee of USD 390 applies for rental ending   in Las Vegas or San Diego, USD 195 applies for rentals ending in Los   Angeles.       For all others the following applies:      Distance between locations.......One-Way Fee   0 - 200 Miles.................................USD 129   201 - 500 Miles.............................USD 195   501 - 1000 Miles...........................USD 390   over 1000 Miles............................USD 650         All fees listed include taxes and fees.   (I haven't found mention of these terms on Alamo's website.) None of the fee-waiving possibilities applies between San Diego and Seattle, though. In any case, if it means avoiding the fee, I wouldn't mind renting from LAX instead. A search on the same website for rental between LA and Seattle also shows "free" one-way fee on a lot of results with Alamo.  However, in both cases, there's also a pop-up next to the "free" one-way fee quote:     The indicated one-way fees represent the current fees. Rental car   companies reserve the right to change these fees prior to pick-up. In   order to determine the total one-way fee due, rental car companies use   the total distance between the pick-up and drop-off locations. The   amounts listed include taxes and fees.   My questions are then: Does the one-way fee waiver offered by drive-usa.de hold any weight when I actually pick up the car, or is it just an eye catcher and it'll be a gamble? If I were to rent a car between LA and Seattle airports, would the rental terms be any guarantee that the one-way fee is waived?  And a bit tangential: What are the advantages, if any, of renting through a European intermediary like drive-usa.de as a European citizen?


How can I obtain all variables from model.matrix.And not without a couple of variables?

I want to do step by step Cross-Validation using glmnet. For this I must have a vector with all variables from model.matrix.   For example, one of the R examples for model.matrix are:  dd <- data.frame(a = gl(3,4), b = gl(4,1,12))  options("contrasts") model.matrix(~ a + b, dd, contrasts = list(a = "contr.sum"))   This gives:     (Intercept) a1 a2 b2 b3 b4 1            1  1  0  0  0  0 2            1  1  0  1  0  0 3            1  1  0  0  1  0 4            1  1  0  0  0  1 5            1  0  1  0  0  0 6            1  0  1  1  0  0 7            1  0  1  0  1  0 8            1  0  1  0  0  1 9            1 -1 -1  0  0  0 10           1 -1 -1  1  0  0 11           1 -1 -1  0  1  0 12           1 -1 -1  0  0  1   But there are in total 3 variables of a and 4 variables of b. I also want these other variables a3 and b1. Because I will use this later for calculating the coefficients for a certain lambda:    x=model.matrix(~ a + b, dd, contrasts = list(a = "contr.sum")) y=sample(0:1,12,replace=TRUE) coef(glmnet(x,y,family="binomial"),s=0.01)  (Intercept)  2.900983 (Intercept)  .        a1           .        a2           .        b2          -2.128341 b3          -2.128577 b4          -2.128798   Questions:  1.Why are a3 and b1 not included in above variables? 2.Is it possible to include a3 and b1 in the designmatrix, such that these will also appear in the coefficients? 3.And if 2. is possible, is it then also a mathematically correct thing to do?


I recently installed an SSD into my machine. The machine itself is a Lenovo thinkpad W520, and it previously had an internal HDD. I moved the internal HDD into an expansion bay (replacing the CD-ROM), and put the new SSD into the internal bay.   The problem I'm having is that I have my Ubuntu configuration EXACTLY the way I want it - I originally spent many hours configuring it to get it to the way it is now. I'd rather not do this again. But, I'd also like the boot-up gains I would get from the OS being on the SSD.  So, what I'd like to do is clone my Ubuntu partition onto the SSD. The catch is that the standard HDD is significantly bigger than the SSD. And it has a windows partition that I don't need on the SSD (I never use Windows, so if it boots off of the other hard drive, that's fine). The layout of my hard drives are as follows:  /dev/sda (SSD):     Model: ATA M4-CT256M4SSD2 (scsi)     Disk /dev/sda: 256GB     Sector size (logical/physical): 512B/512B     Partition Table: msdos  Number  Start   End    Size   Type     File system  Flags  1      1049kB  147GB  147GB  primary  ext4         boot   /dev/sdb (HDD): Model: ATA ST9500420AS (scsi) Disk /dev/sdb: 500GB Sector size (logical/physical): 512B/512B Partition Table: msdos  Number  Start   End     Size    Type      File system     Flags  1      1049kB  1259MB  1258MB  primary   ntfs            boot  2      1259MB  269GB   268GB   primary   ntfs  4      269GB   483GB   214GB   extended  5      269GB   416GB   147GB   logical   ext4  7      416GB   475GB   58.9GB  logical   linux-swap(v1)  6      475GB   483GB   8470MB  logical  3      483GB   500GB   16.8GB  primary   ntfs   What I've tried so far:  1) Resizing the partitions /dev/sdb5 and /dev/sda1 to be the same size. 2) Booting into Ubuntu 11.04 (from /dev/sdb5) and running dd if=/dev/sdb5 of=/dev/sda1 (of course this causes problems with booting, so I had to reinstall grub.. I can get it to boot, but then I have problems with initrd not finding some files ... presumably it can't load some partitions I think).  Now, I think those two steps are the wrong approach, because it will clone /dev/sdb5 EXACTLY - including references in fstab which point to the wrong hard drive. I'm not sure exactly how to rectify this. I could install Ubuntu 11.04 onto the SSD, then try and copy over all of my configurations, but I'm concerned that I'm going to lose something, or that I'm going to overwrite something like fstab that points back to the original hard drive.   Note that currently, I can still boot from the HDD, so it's not imperative that I get this figured out right away, but I do want it to be exactly how it is right now, so that I can maintain my current level of productivity (it's a work laptop).  Suggestions on how I might be able to overcome this difficulty?   Thanks in advance!


Can I transfer Minecraft from a computer to iOS?

My son has been playing Minecraft on our home computer for a couple of years now.  He just got an iPad Mini 2 for his birthday. Is it possible to transfer his game and his saves onto his iPad Mini 2?


Can we please have the ability to see passed/failed audits?

Ideally, I'd like the ability to see passed/failed audits on my Review History page.  If that's not possible, can we at least have some obvious denotation (even as simple as an asterisk) next to audit questions so we can find them quickly?  I know that any audit questions that are deleted are not visible in our history, and I'm fine with that.  But at times I'd like the ability to review past audits to help me understand what I did wrong, refresh that info in my brain, and use that info to make better review decisions in the future.


how to cahnge the opening page when connecting using ssh?

I want to change the opening page when I connecting using ssh this is what I have now :     Welcome to Ubuntu 15.10 (GNU/Linux 4.2.0-42-generic x86_64)         Documentation:           Last login: Tue Nov 29 13:43:00 2016 from 10.0.0.123   where do I change it  someone wrote to change /etc/motd but I don't this file  so waht do I need to change?  Thanks ,


Can I use amd64 installers on Intel based systems?

I'm new to Ubuntu. I installed ubuntu-13.04-server-amd64 on MSI h67ma-e35(b3). After system reboot, I only get a "blinking underscore" _.  I have tried multiple time to reinstall. I boot from the correct drive.  Can the image I'm using for AMD systems be used for Intel based systems as well?


I need to be able to bring the pictures as points and then be able to click at a certain point and an image pops up.    I added a column for images label as pic. How can I show that image on the point?


How can I get my HP 15-ab143cl laptop to boot from USB?

Wanting to dump Win10 for 16.04LTS. I've tried literally dozens of workarounds, and feeling that HP just won't allow a USB boot to Linux. Legacy on, correct boot order, secure boot disabled, etc. I've made the stick using three different apps, the most recent being Rufus w/both UEFI and BIOS MBR setting. I know the stick works. This is nutz.