Static files with Python, Apache (Proxy) and SSL

It's my first question in the community, i apologize in advance if I write something wrong I developed an application in Python (Django) and in the quality environment I am using gunicorn to provide the deploy: gunicorn --bind 0.0.0.0:8000 application.wsgi --daemon On the same server, I use Apache to listen to port 443 (https://) and redirect requests to Gunicorn via Proxy like this:   <VirtualHost *:443>            ServerName example.com             ProxyRequests Off         ProxyPreserveHost On                  <Proxy *>                 Require all granted                 Allow from all         </Proxy>          ProxyPass / http://example.com:8000/         ProxyPassReverse / http://example.com:8000/          # SSL         SSLEngine On          ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined          #Include conf-available         SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem         SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem         Include /etc/letsencrypt/options-ssl-apache.conf  </VirtualHost>  Everything works perfectly, I can access it via https, except for the static files. I followed the recommendation of the documentation, executed the command collectstatic and the files were generated in the folder I configured (/static) in settings.py STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static/')   I took advantage of the fact that I already had Apache installed, I tried to add in the same VirtualHost an alias to the /static directory, like this: Alias /static "/home/ubuntu/example/static/" <Directory "/home/ubuntu/example/static">       Order allow,deny         Allow from all       Require all granted </Directory>  The complete configuration of VirtualHost looks like this:  <VirtualHost *:443>            ServerName example.com            Alias /static "/home/ubuntu/example/static/"         <Directory "/home/ubuntu/example/static">               Order allow,deny                 Allow from all               Require all granted         </Directory>          ProxyRequests Off         ProxyPreserveHost On                  <Proxy *>                 Require all granted                 Allow from all         </Proxy>          ProxyPass / http://example.com:8000/         ProxyPassReverse / http://example.com:8000/          # SSL         SSLEngine On          ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined          #Include conf-available         SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem         SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem         Include /etc/letsencrypt/options-ssl-apache.conf  </VirtualHost>  However when trying to access the files in this directory I always get one:  Not Found - The requested resource was not found on this server.  I analyzed error.log and access.log and didn't even hit the request in the logs. Adding the same alias to another Virtualhost on Port 80, it works normally. I believe the problem lies in adding this alias to a specific VirtualHost for port 443 Can you help me?


How biased is a statistical study in which sampling was purposely made without repeats?

It is understood in mathematical statistics that a sample (as in ) may very well contain repeatedly the same item/subject.  In practice though, it would never occur to someone conducting an experiment (e.g. in human sciences studies) to take into account the same subject twice. Samples are made    by taking the first people who agree to take the tests and look random enough (e.g. using quota sampling). by taking the only $12$ people living in your country who fit the requirements of the study (e.g. when you're conducting research on a rare disease) (and yes, $12$ is ridiculously small but that's still what is being done when no more subjects are available).      In what situations can this habit turn out to be really bad   - induce a huge bias on the results?   What seems clear to me is that if the total population is large enough, then it shouldn't matter too much, since samples with repeats are quite unlikely to occur and don't weigh much in the sampling distribution. When the total population is small though, it feels like we're more likely to miss something.


I am new in LaTeX. In tabular, we generally use & for partition. I want to create a .sty for tabular environment. Replace & with comma delimiter, in this case comma should be work as & like in tabular command.   In .tex file, input is a,b,c and output should look like |a|b|c|


Problems with screen in Windows 7? Graphics gets stuck

I'm having problems with graphics that get "stuck" in Windows 7, usually when selecting an item in a menu. See screenshot.  It's removed if I change the resoultion of the screen.   How can I fix this?


Understanding PCA from the perspective of eigenspaces

This question is from the perspective of a student who has only a fundamental idea of eigenvectors and eigenspaces (and linear algebra in general). If my understanding is correct, an eigenvector E of a vector V projects the vector V along the direction of itself by a factor of the associated eigenvalue (lambda).  Av = (lambda)v   Now, in PCA we try to find the eigenvectors of the covariance matrix of a dataset. I am unclear as to the purpose of this step: what is the practical interpretation of this? A covariance matrix cannot be interpreted as a vector, but maybe a set of vectors.


I ran the upgrade from 14.04 to 16.04.  Ran flawlessly until very end, and I got a pop-up which said the mscorefonts installer had not completed.  I ignored it, because I don't use any Microsoft products, and frankly prefer the Ubuntu fonts.    The pop-up keeps showing up every time I apply an upgrade or fix.  So I decided I would try to correct the problem.    First I dropped to terminal and ran:  sudo apt purge ttf-mscorefonts-installer  That ran without issue.  Then ran sudo apt install ttf-mscorefonts-installer  Now this is where the fun began.  During the install I could not accept the EULA, and had to quit the terminal with only a partial and corrupted install.    Now I can't purge because the file is corrupted, and wants me to reinstall first, but when I try to reinstall I still hang up unable to accept the EULA.  Any advice from the Ubuntu Wizards?


I have to use the Fn key to get the coordinates with the F3 key on Minecraft Java Edition. I would like to know how to use the F3 key without using the Fn key. I have looked in the controls and haven't found anything, I've looked for other questions like this but have not found an answer.


Urgent tips for UK Visit Visa application for a student and how to prove strong ties with my country?

I am applying to UK for the visit visa. I have just taken my A-level exams and awaiting for my results, and I have already enrolled into a university in my country, Pakistan. I've no property, or source of income and my uncle in the UK is sponsoring (he has given me the sponsorship letter) the whole trip for mine. I want to ask that, apart from the University admission letter, what should I attach with my documents to prove that I will return back to my country. Moreover, in  the application form a question specifically asks that I have any other source of income such as getting monthly income from my parents. I'm a bit confused because although my parents don't give me any fixed income monthly, they pay for my education, food and others; so should I write no source of income, or write that I get fixed amount of income ( I don't have any documents to prove that ). Moreover, I have already visited UK once in the 2007 for summer holidays already.


Find determinant of an almost diagonal matrix except first row and column

$$\begin{vmatrix} 0 & 1  & 1  &  & 1\\ 1  & a_1 &   &  & \\ 1  &   & a_2 &  & \\ \vdots &  &  & \ddots & \\ 1  &  &  & & a_n \end{vmatrix}$$ If I suppose $a_1,\dots ,a_n\ne0$, I know how to do it, multiply the $i$-th column by $-1/a_i$ and add to the first column. Doing that I get the correct solution $ -a_1a_2 ...a_n(1/a_1+...+1/a_n)$.  How to avoid the zero case ?


I have a bibliography entry with a german umlaut in the name. In the .bib file the character is correctly escaped: author={B{\"o}ttcher}  The corresponding entry in the .bbl file no longer contains the escape sequence but the ASCII character ö: \entry{Bott02a}{inproceedings}{}   \name{author}{2}{}{%     {{hash=471f6641bcc35e7859446a7099bd375c}{%        family={Böttcher} ...  In my bibliography then the entry is printed without the umlaut as "Bttcher". Manually replacing the ASCII ö with {\"o} in the .bbl file fixes that. What do I have to do to get the ö in the output? Notes:  I use  and  I use a custom bibliography style based on "standard" I do not use any encoding packages explicitly I have tried configuring  with texencoding and safeinputenc without success  Edit: Here's a minimal working example test.tex: \documentclass{book} \usepackage{biblatex} \addbibresource{test.bib}  \begin{document}   \cite{Bott02a}   \printbibliography \end{document}  test.bib @inproceedings{Bott02a,   title={title},   author={B{\"o}ttcher} }  Run with lualatex test; biber test; lualatex test; open test.pdf Update: If you happen to be unlucky (like me) you'll be using mylatexformat to precompile your preamble. In that case fontspec will give you hell. Here's a trick that makes it possible to use fontspec within the preamble (taken from ): \documentclass{...} ... \RequirePackage{etoolbox} \AtEndPreamble{   \usepackage{fontspec} } ... \endofdump  Note that fontspec will not be compiled into the format and thus loading time for fontspec cannot be improve by precompilation.


Display brightness control not working in 17.10

I just upgraded to ubuntu 17.10 and now display brightness controls are not working, and i am not able to change display brightness at all. But it was working perfectly in 17.04  I also tried this method, but still not working. When I saw system details, it shows unknown graphics.  Section "Device"         Identifier  "card0"         Driver      "intel"         Option      "Backlight"  "intel_backlight"         BusID       "PCI:0:2:0" EndSection   What can I do now?


How can I watch for uninstalled app updates?

What is the best, non-manual, way of checking to see if an app that I do not have installed has an update?  For example, I do not have Google Camera installed, but I may want to install it when a new feature I'm looking for has been added to it.  Is there a site place such as Google play or Playboard that I can get an rss feed, email or another way of notification for certain apps?   EDIT: I am now aware of the defunct app "Changelog Droid" which is no longer maintained since January 2014. "The app is currently not maintained. There is an (unlikely to be fixed) issue with paid apps. Please don't contact me in this regard." So a solution beyond that would be greatly appreciated.


Considering the two sentences:     The first thing they would do was take money      The first thing they would do was to take money   Which one is grammatically more correct? There is a rule which says when to use “to” after the verb to be? Thanks


When should 'into', 'in' and 'inside' be used?  What are the differences between the three?   For example, what are the differences between the following statements?  Are any of them incorrect?        The frog jumped into the well.   The frog jumped in the well.   The frog jumped inside the well.


Why can't electrostatically accelerated deuterium beams neutralized by electrons produce net energy fusion?

I was looking through the various nuclear fusion approaches and it struck me that they all suffered from one of two problems. Either they wasted a lot of energy trying to accelerate fusion fuel to the needed speed by using heat, which produced a distribution of particle energies instead of a single energy, or they couldn't get the needed particle density for the reaction to progress fast enough to burn all the fuel before it flies apart.   The reactor that comes closest in terms of accelerating fusion fuel efficiently is the polywell, because it uses an electrostatic potential difference to get the fuel to the needed speed for fusion. However, since the nucleii are ions, it is very hard to get the densities (150 g/cm^3) for rapid fuel burn.   So a thought came to me. Why can't an electrostatic accelerator accelerate deuterium ions to fusion energies, and have the accelerators arranged to have the ion beams converge to a focal point. However, after accelerating the ions, and moving them towards the focus, neutralize the ions using an electron beam, so the particle beam is both at high speed, and neutral to allow compression without electrostatic repulsion.   I think this might, work and googled it and couldn't find anyone having attempted this. Am I missing something fundamental here? If so, what is it? Why wouldn't this work?


c# convert string to array on char(253) deliminator

Not entirely sure the following code is going to help many people, but here goes            try         {             uvConnect = UniObjects.OpenSession(serverId, sUser, sPass, sAcct, "uvcs");              // Open Movie File             UniFile uvFile = uvConnect.CreateUniFile("MOVIES");             UniDynArray movieRec = uvFile.Read(txtMovieId.Text);              string sMovieData = movieRec.StringValue;             MessageBox.Show(sMovieData);         }   sMovieData contains a single string of the entire record retrieve from MOVIES file, each field is deliminated by a char(253) character in the database I am using.  Is there a function/method/etc to convert the string to an array using char(253) as a value deliminator


Best way to backup/edit RAW photos while travelling abroad with bad Internet access?

This question is a duplicate. In particular a duplicate of these questions:       Both very good resources, but technology is always advancing, the 4 year old questions are not. The Stackexchange format doesn't take into account updates to older questions, hence I'm asking anew.  The options for backing up presented so far:   Options where the backup includes sending home stuff or just being really careful   Multiple memory cards Portable DVD/CD burner with integrated card reader Portable hard drive (HDD/SSD) with integrated card reader Netbook (this was 4 years ago, what to do today?) Tablet  Options where the backup includes some online functionality   DropBox / OneDrive / Box some cloud storage Custom NAS at home    The options for editing are pretty limited:   Netbook (again, what to do today?) Laptop Tablet Some funky custom RasberryPi solution   Have I missed anything important? Is there anything new I forgot? Portable Blueray drive? Magic Internet able to upload Gigabytes of RAW images from the middle of nowhere?  When thinking of far-away travels in non-first-world countries I don't think the cloud solution is viable. Being stuck in some pretty awful (speed wise) Internet Cafes I know it is a hassle to upload just one image of 5MB. Now imagining backing one of my 16GB CF cards... Impossible. I think the only solution is to send stuff home. I like the idea of DVDs, but that would always take a lot of DVDs when using large CF cards.  Editing wise for e.g. Blogging there is no real way around taking a small laptop/netbook which of course sucks if you're doing longer travels.


Product of Consecutive integers problem  I've begun pondering the following problem, and have found myself unable to advance on it; it goes like this:  Prove that the product of three consecutive integers is never the product of two consecutive integers (with a finite number of exceptions).  Now, I basically have very little idea of what to work with. Obviously, I have two exceptions: {1, 2, 3} ($1 \times 2 \times 3 = 2 \times 3$) and {5, 6, 7} ($5 \times 6 \times 7 = 14 \times 15$). I formed the following equations: $x(x-1)(x+1) = y(y+1)$ ==> $x^3 - x = y^2 + y$ But I have no idea where to go from here. Graphing this on desmos yields the following elliptical curve, which I don't think helps me:  How do I prove/ this conjecture?


Take a screenshot of a webpage with JavaScript?

Is it possible to to take a screenshot of a webpage with JavaScript and then submit that back to the server?  I'm not so concerned with browser security issues. etc. as the implementation would be for . But is it possible?


I'm reading a book on valuations on a field(Hasse's number theory). He says $(x + y)^s \le x^s + y^s$ for $0 < s \le 1$ and $x, y \ge 0$. I tried to prove it but failed.  Another question: Is $(x + y)^s \ge x^s + y^s$? where, $s \gt 1$ and $x, y \ge 0$.  OK, the first questions is duplicate, but IS THE SECOND QUESTION DUPLICATE, TOO?


How to choose a good smartphone if the top priority of the user is photography?

At the current rate by which technology is improving, I believe that mobile photography is not far behind their DSLR counterparts, generally speaking. However, for amateurs like me, it is quite impossible to judge or even know properly how to buy a decent smartphone within $500 (US). And almost every phone these days have OIS, Laser Focus, PDAF, etc. as the bare minimum features. However, different media channels rate the phones (-- speaking from the point of view of photography only) differently. And often, it is hard to detect which source is credible enough if there is a huge gap between the citations therein, given the aforementioned budget limit.   A setback, in this case, is also because of the DxOMark scores for phones, and it is obvious that the phones with extremely good scores are not economically feasible for people with the aforementioned limit. So, my question is how can a person who is new to photography, is really enthusiastic about it, and wants to use his/her smartphone for that learn or research from credible sources given the rate at which technology is changing in our society so that the relevancy of this question remains valid even in near future.    EDIT:   Many people here may have a misunderstanding that I do not know about the basic differences between DSLRs and smartphone cameras. I did know the basic differences. Anyway, this is not their fault, but because of the limited information I put forth in my question as well as the way how I put it. I somewhat do know more now thanks to the inputs I have received thus far as well as  these , and their . To be short, I am saving money for an extended trip after few months and also need a new phone. So, if the details don't matter much now, there's that.


A nonlinear ordinary differential equation problem

Consider the ordinary differential equation $$y'=y(y-1)(y-2)$$ Then which of the following statements is true?      1)If $y(0)=0.5$ then $y$ is decreasing      2) If $y(0)=1.2$ then $y$ is increasing      3) If $y(0)=2.5$ then $y$ is unbounded      4) If $y(0)<0$ then $y$ is bounded below   Using partial fractions I get   $$\big( \dfrac{1}{2y} -\dfrac{1}{y-1}+\dfrac{1}{2(y-2)}\big)dy=dx$$ which upon integration gives  $$ \dfrac{y(y-2)}{(y-1)^{2}}=C e^{2x}$$  Can anyone help me how to rule out the options?


How to use Font Awesome 5 with fixed width

What I need is basically this:  but using the new fontawesome5 package.  There, they redefine \faicon command but it has been changed in the new version. Fontawesome5 defines \faIcon as:  \NewDocumentCommand\faIcon{s O{\str_use:N\l_fontawesome_style_str} m}{   \fontawesome_use_icon:nn{#2}{#3\IfBooleanT{#1}{-alt}} }   So, theoretically, this should work:  \documentclass{article} \usepackage{fontspec} \usepackage{fontawesome5} \usepackage{xparse}  \RenewDocumentCommand\faIcon{s O{\str_use:N\l_fontawesome_style_str} m}{   \makebox[1.5em][c] \fontawesome_use_icon:nn{#2}{#3\IfBooleanT{#1}{-alt}} }  \begin{document}  \section{\faGraduationCap \textbackslash faGraduationCap} \section{\faBook \textbackslash faBook}  \faGraduationCap \textbackslash faGraduationCap\par\noindent \faBook \textbackslash publications  \end{document}   But it's not... so what is wrong?


Moving Grub to a new drive to get rid of Windows

A while back I installed Linux on my SSD, sdb1. I also have a 1 terabyte drive for my home directory, sdc1. I have Windows on another hard drive, sda1, which I haven’t booted into in over 2 years. It is a terabyte in size. I would like to get rid of Windows and utilize that extra space without reinstalling Linux, but Grub is on the Windows hard drive, sda1. What I would like to do is put Grub onto my SSD, sdb1, if possible in order to format the Windows drive, sda1, and have extra space. It is Legacy BIOS on the computer.


How to migrate local user to domain user?

I have a local user on my laptop. My company is migrating to a domain setup and I want to migrate the local user to a domain user, with all the settings (desktop, Start menu, programs) intact. How can I do that?  Also, is it possible to have a local user with the same settings as the domain, for when I'm working on my laptop while not connected to the domain?


Rendered image has WEIRD AND GRAINY lighting

I'm trying to make an animation inside Freddy Fazbear's Pizza, but when I rendered the image to see how it looked, I got THIS.  I don't know how the heck this happened. for reference, this is what it looked like before the render.   What's going on and how do I fix it?


Could one fire a bullet with sufficient speed to leave the Earth?

Consider a gun or rifle fired directly upwards. My original question was what speed would be required to escape the Earth.  The escape velocity from the surface of the Earth is the classic $$v_e = \sqrt{ 2GM \over r } \approx 11,000 \text{ m/s}$$ and bullets typically (see ) leave the muzzle with a maximum speed one order of magnitude lower, ~$1,000$ m/s. Terminal velocity of bullets in STP is another magnitude lower, ~$100$ m/s.  Even if a bullet were fired with speed $v_e$ that of course would not be sufficient due to drag which would slow the bullet down. So a theoretical required speed  $v_T > v_e$.   If the bullet were fired with anything close to $v_e$ or $v_T$, would it would burn up very rapidly in STP? I understand that rockets typically don't achieve anything like $v_e$ until they are high in the atmosphere at least in part for this reason And hence is there no speed possible in realistic conditions with which a bullet could be fire and escape the Earth? If it is possible, what model of drag should one use to calculate $v_T$ and concretely,  does anyone have an estimate of its value?


The auto comment is added when one flags a question as a possible duplicate. These comments are generated in the form:     possible duplicate of [Question Title] (Link to the question)   With the  of [on hold], unclear etc. to close-votes (and flags; AFAIK users with low rep can still access the close-vote box); I think it's fair to auto-comment for the following cases as well:   Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. Please clarify your specific problem or add additional details to highlight exactly what you need. Questions concerning problems with code you've written must describe the specific problem and include valid code to reproduce it. Programming questions are off-topic on Meta Stack Overflow.   (The list is compiled from Stack Overflow and meta Stack Overflow; but can be extended for wider family of network sites)  A majority of questions don't get closed within let's say 5 minutes, and OP isn't notified of close votes received on their posts. The above reasons are pretty widely used and OP has no idea why the questions aren't getting enough attention unless they get down-voted (to eternity).  These auto-generated comments will, of course, be auto-deleted just like in the case of "possible dupes" once the question gets closed or the OP edits their question.


Why my object is not showing in Rendered result but in the Rendered viewpart?

Im facing this problem for the first time and it looks very funny to me because there is no issue with the settings.  My object is showing in the Rendered viewpart but when i hit render for final image result its nothing in the result. lol


Number of possible marriage arrangements if Marriage Condition is satisfied

Suppose I have a set of $n$ boys and each subset of $1\leqslant k \leqslant n$ boys knows at least $k$ girls then this means that the set of boys $B$ satisfies the marriage condition.  I am doing an exercise from a Graph Theory book and it says we can show by induction on $n$ that the number of possible marriage arrangements is $\geqslant t!$ if every individual boy knows at least $t \leqslant n$ girls or there are $\geqslant t!/(t-n)!$ possible marriages if each individual boy knows at least $t>n$ girls.   I am struggling to see how the induction hypothesis can be implemented to prove the $n+1$ case. When you swap from the $n$ to $n+1$ case the conditions change and I can't see the link between them.  Would anyone be able to point me in the right direction?


How do I solve the partial differential equaiton  $u_{t} = (u_{x})^{-1}$  subject to the conditions $u(t,x) \geq 0$ and $u(0,0) = $0. Use the separation Ansatz $u(t,x) = f(t)g(x)$.  The inverse in confusing me


I have 0 experience with any 3D application. I was told to start looking into it as I have been looking for a quality hobby.  Today I found Blender that seems like it might be a good place to start (and it's free too!). My problem is where do I start? I want to learn the ins and outs of Blender as well as all the terminology that has to do with 3D but I prefer reading books than working through tutorials.  So my question is, if I were to get this book:  would I be able to learn the basics of blender from scratch while still understanding the terminology involved in 3D applications?  Thanks


I want to obtain record type info like:  List<RecordType> lstrecord = new List<RecordType>([Select id,Name from RecordType where sObjectType = 'Move__c' and Name = 'Draft' ]);   using schema


Is it safe to create symlink under /var/www/ which points to my home directory?

I am using local Ubuntu server with Apache 2.4. I am running as a default user Ubuntu and each time I need to change something under /var/www/ I have to use sudo to avoid permission denied messages.   I have thought an alternative to create a directory under my home, say public_html which will contain all documents and then create a symlink under /var/www/ which points to public_html  Is it safe to point Apache to my home directory? Can you guys recommend any other idea to avoid repeated use of sudo?


An operator that commutes with another operator $T$ with distinct characteristic values is a polynomial in $T$

I'm trying to solve some problems in Hoffman and Kunze and I'm kind of stuck on this one. This is 6.5.3 on Hoffman and Kunze.  Here is the question:  Let $T$ be a a linear operator on an $n$-dimensional space, and suppose that $T$ has $n$ distinct characteristic values. Prove that any linear operator $U$ which commutes with $T$ is a polynomial in $T$.  My work so far: Since $T$ has $n$ distinct characteristic values and since the space it acts on is also $n$ dimensional, $T$ must be diagonalisable. Now using the fact $UT=TU$ I can show that $U$ must also be diagonalizable. So these two operators must be simultaneously diagonalizable. Now I'm stuck with where this is going. I'm thinking of simultaneous diagonalizability because this is section 6.5 of Hoffman and Kunze and it deals with simultaneous diagonalizability. Am I on the right track with this?. Can anybody help?  Thanks so much for your time and your answers.


Why does $\int \sec(x)dx=\ln|\tan(x)+\sec(x)| + C$?

I am trying to figure out why  $\int \sec(x)dx=\ln|\tan(x)+\sec(x)| + C$. When I plugged it into , all it said was,      Use the common integral: $\int \sec(x)dx=\ln|\tan(x)+\sec(x)|$   I don't know what it means by "common integral". What is a "common integral"? I know what an integral is, but I couldn't find a definition of "common integral" specifically.


How do I edit a file in /proc that can be viewed with cat, but is not editable by mousepad and abiword?

As the question says, I need to edit my /proc/acpi/wakeup file, but when I open it with any text editor, it shows blank file. cat command, on the other hand, displays correct file contents in terminal. When I navigate to that file in file manager, it says it's size is 0 bytes. I'm using Xubuntu 15.04. I'm thoroughly confused.


Cloud Backup for large TrueCrypt Container

I have a TrueCrypt container (around 50GB) which has all of my backups inside.  I'd like to back up the container to cloud storage (not the files within), but obviously, I'd prefer not to re-upload 50GB every time a change is made to the container.  What would be the best cloud storage service for this scenario?  Ideally, I'm looking for a service with block-level updates and doesn't filesync (i.e. not dropbox, which incidentally does have block-level updates).


Mismatch between answer counts on Android app

I was viewing  question in the Android app. As shown in the below screenshot, while the top shows "4 answers", the bottom button will ask to "View 6 Answers". After checking the question, there are indeed six answers to the aforementioned question.    I am using Android 4.3 with the 0.1.64 version of the app.    EDIT: The changes to the UI made this question obsolete.


Wheel going badly out of true on final tightening

On two occasions (same wheel, loosened everything off and re-did the whole thing after the first time) as I've applied a final half turn to tighten the spokes round the wheel it's gone from being pretty laterally true (within about 0.5 mm) to badly out of true (probably a couple of mm or more out).  The simplest explanation would be that I've managed to mess up by missing spokes/over under-tightening some of them, but I'm fairly sure that's not the case.  What else could cause this?  This is a rear wheel with a fair amount of dish. I'm worried that I might be over-tightening. On both occasions I decided to do a final half turn as the non drive side seemed a little loose, but I was concerned the drive side might be over tight. Could this cause a sudden change in trueness?  I've got the wheel back to a reasonable state, but I'm no longer sure I have even tension in the spokes.


I am using simple PHP mail function to send mail. Here is my code:  sendEmail('xyz@gmail.com', 'test subject', 'test body', 'xyz name', 'abc@gmail.com', 'HTML');  function sendEmail($to, $subject, $body, $fromName, $from, $format = '') {     $headers = '';      if($format=='HTML')     {         $headers .= "Content-type: text/html; charset=iso-8859-1\n";     }      $headers .= "From: $fromName <$from>" . "\n";      $success = mail($to, $subject, $body, $headers, '-f no-reply@xyz.com');     return $success;  }   My problem is this when i send more than one (like 10) mail then some mail goes into spam and some in inbox. If script is wrong then all mail should go into spam or if right then all mail into inbox.  Why some mail goes into spam and some in inbox?  while subject, body, message and email(to) is same.


What is the different between following two methods of defining js function. I have seen this is some code some one given, but could not able to call the function inside of it.   1)   function sum () {     var i, sum = 0;     for (i = 0; i < arguments.length; i += 1) {         sum += arguments[i];     } return sum; };   2)   var sum = function () {     var i, sum = 0;     for (i = 0; i < arguments.length; i += 1) {         sum += arguments[i];     }     return sum; };


Number of reflexive relations defined on a set A with n elements

Problem:  If a set $A$ has $n$ elements in it, how many reflexive relations can be defined on it?  My solution  Is the answer  summation of (n^2 - n)C(i)  for i=0 to n^2 -n  $$\sum_{i=0}^{n^2-n} C(n^2-n,i) = \sum_{i=0}^{n^2-n} \binom{n^2-n}i$$  How? well if i make a matrix $n\times n$  now the diagonal elements have to be selected,out of remaining $n^2-n$ any number of elements can be selected.


Changing active object to copied instance of active object

Simple bpy question, but I can't figure it out. Is there a way to change a new instance to be the active object after it is copied from the active object, without using its name? For Example: #creates a new primitive bpy.ops.mesh.primitive_uv_sphere_add()  #creates new object which is instance of the first primitive and links it to scene collection bpy.context.collection.objects.link(bpy.context.active_object.copy())  #how do I now make the new instance active?  #or same in a for loop:  for ob in range(10):     bpy.context.collection.objects.link(bpy.context.active_object.copy())          #how do I make sure that whatever else I do in the loop only happens to the newly created instance in      #each iteration?  They seem to be selected after creating, but the active object is still the first object after the create primitive operator. Thanks.


I understand this:  If $\gcd(a,b)=d$ and $\gcd(ac,bc)=e$, then $d|a \Rightarrow dc|ac$ and $d|b \Rightarrow dc|bc$, so this is equivalent to multiplying $c$ by $\gcd(a,b)$.  What I don't understand so well is why the $|c|$ (absolute value). Why can't $c$ be negative?


How do you evaluate this integral: $\int_0^\infty \frac {e^{ax}-e^{bx}}{(1+e^{ax})(1+e^{bx})}dx$?

This is from GRE Math subject test, Question #55, from   If $a,b > 0$, then what is the value of $$ \int_0^\infty \frac {e^{ax}-e^{bx}}{(1+e^{ax})(1+e^{bx})} dx $$  I'm not sure if it's Calc II integration or Residue Theorem from complex analysis, but I have no idea where to start ...


How to kill a process in Linux if kill -9 has no effect

I imagine that kill -9 still just sends a signal to a process. If the process is not behaving well, I would imagine that kill -9 would have no effect. Indeed, today for the first time I saw kill -9 have no effect when sent to a stuck ruby process. So here is my question: Is there some harsher way to kill a process?


After reading  I learned that certain folders have a special feature   USERPROFILE AKA C:\Users\Steven SystemRoot  AKA C:\Windows   From the , you can access any subfolders of these. For example entering Documents will bring up C:\Users\Steven\Documents. Do any other folders have this feature, or can this feature be added to a folder?


I want to install Ubuntu without losng data on other partitions

I have two partitions D and E. In D window is installed and in E I have imporatant data. I want to remove windows and install ubuntu but without losing any data on E. How should I do it.


So I was trying to install wine 5.0 in Ubuntu 18.04 but it got unmet dependencies, used aptitude but couldn't install neither, but now i have broken packages. I looked in many forums but still can't find a solution, please i need help i'm not much of an expert in linux


Application of Cantor-Bernstein Theorem?

This is a problem in " Basic set theory "- S.Shen: prove that if $ [0,1]=A \cup B$ then either $A$ or $B$ has the cardinality of the continuum. (Does this follow from the Cantor-Bernstein theorem?)


Sharepoint online/Office 365 Is there a way to get all site collections for a tenant?

I'm looking for a way to get all the site collections for a particular tenant through API.  The URL that lists all site collections is  https://<tenantName>-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx   How can I get this info using a REST API endpoint?  Update 1:  This API call  https://{tenantName}-admin.sharepoint.com/_api/search/query?querytext='contentclass:sts_site'   Doesn't work for me.  I get the following error (500 Internal Server Error)  { "error": {     "code": "-1, Microsoft.Office.Server.Search.REST.SearchServiceException",     "message": {         "lang": "en-US",         "value": "An unknown error occurred."     } }   }  FYI: I am using Client Credentials Flow to get the access token. App level permissions list doesn't have any permission to Search like in Delegated permissions. Could that be the issue?


Limiting access per SSH to specific accounts to LAN/specifc IPs?

in my quest to create a public user with almost no rights and an administrator user that can only accessed by me, I'd like to know if it is possible to limit SSH access to said administrator user to LAN/specifc IP adress/unique token only, without limiting the access to the publicly accessible user.  Is there a function in openssh-server that allows for such a level of customization?


I am trying to prove that if $r$ is a nilpotent element, then $r+1$ is a unit, but I am having trouble factoring, which is extraordinarily embarrassing. If $r$ is nilpotent, then $r^n = 0$ for some $n$ and therefore $r^n+1=1$. I want to factor $r^n+1$ into $r+1$ times something else, but I am having trouble. From what I understand, $(r+1) \sum_{i=0}^{n-1} (-1)^{n-1-i} r^i$ should equal $1$, but  $$\begin{align} (r+1) \sum_{i=0}^{n-1} (-1)^{n-1-i} r^i & = \sum_{i=0}^{n-1} (-1)^{n-1-i} r^{i+1}  + \sum_{i=0}^{n-1} (-1)^{n-1-i} r^i \\ & = \sum_{i=1}^{n} (-1)^{n-i} r^i + \sum_{i=0}^{n-1} (-1)^{n-1-i} r^i \\ & = r^n + \sum_{i=1}^{n-1} (-1)^{n-i} r^i +\sum_{i=1}^{n-1} (-1)^{n-1-i} r^i + (-1)^{n-1} \\ & = r^n + (-1)^{n-1}\end{align} $$  is clearly not $1$...What am I doing wrong!?! I realize this question has been asked before, but I am specifically concerned with the factorization part.


Prove: if $f(z)$ differentiable in $|z|<R$  So Does  $\overline {f(\overline{z})}$   I have went over previous similar questions but did not find an answer to the following:  We say that $f(z)$ differentiable in $|z|<R$ therefore  $$u_x=v_y$$ and $$u_y=-v_x$$  Looking at $$\overline {f(\overline{z})}=U(x,-y)-iV(x,-y)$$  We can say that it is defined in $|z|<R$ as $|z|=|\overline{z}|<R$  But looking at its $C-R$ equations we get  $$U_x=--V_y\iff U_x=V_y\iff u_x=v_y$$  $$-U_y=-V_x\neq u_y=-v_x$$  How can we conclude from $C-R$ that $\overline {f(\overline{z})}$ is differentiable?


We currently have a ESX Environment  which has 1x Physical vSphere Server, 1x SAN (Another coming soon) 2x ESXi Hosts.  We currently have licensing for vSphere and ESX Essentials.  I need to add 2 more ESX Hosts and I know in Essentials / Essentials Plus there is a Max limit of 3 physical hosts.  I need to find out which version would be able to allow me to run vSphere server with 4x ESX Hosts. I have tried to find out for Standard Edition but a straight forward answer to this has alluded me and my Google searches. Are any of you able to help on this matter?  Thanks,


Align \sqrt with baseline of other mathematical input

The following mathmatical expression is not being displayed the way I expect it to be.  \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} $3x\sqrt{y}-4-2\sqrt{y}+6x$ \end{document}     Note in the output above, the square root symbol is not "base aligned" (Don't know how to describe it better in LaTex language). I have tried the \smash command but haven't been successful. I know it shouldn't be anything hard to achieve, but seemingly I can't at the moment.   I know that there exists the \smash[b]{$math input$} and \smash[t]{$math input$}.  EDIT:    Is the code below sufficient? (The answer is NO and that is why I seeked clarification to understand the typographical effects explained below.)  $3x\mathord{\raisebox{0.5\depth}{$\sqrt{y}$}}-4-2\mathord{\raisebox{0.5\depth}{$\sqrt{y}$}}+6x$   which yields:


Renting a dedicated, but getting a VPS. How to detect?

When renting a dedicated server, how can one be certain than he/she is not getting a VPS or some other virtual machine variant instead of a true dedicated hardware box?  Which checks can be run (assuming it is a linux box) to detect such case?


how to return to lock screen after switching user

This seems such a simple thing, I can't believe I can't work out how to do it or find the solution on the net. My partner's MACbook Pro (running 10.15) laptop was on the lock screen, and I stupidly pressed "switch user" and got to the switch-user screen with login user/password boxes and  "sleep", "restart", "shutdown" as other options.  Turns out she doesn't know her username (it is a work's machine) and has been logging in with a password only on the locksceen since receiving the machine.  So my simple question is, how do I return to the lock screen after "switching user"?  It would seem so obvious, but I'm in real trouble if I don't find the answer in the next 24 hours...


In a trigger, does assigning a column to the "old" value incur a cost? (Oracle)

For the sake of readability, in one of my triggers I have :new.COLUMNNAME := old.COLUMNNAME; alongside the sets for the rest of the columns. Does this statement get removed before runtime? (That column is not assigned anywhere earlier in the trigger)  We're doing this because depending on the value of typecolumn, other columns will or will not have values, and those values are found on another table... It's not exactly good sql using all the features as they were intended to be used, or good db design, but this is an old codebase and we have to play the hand we're dealt.  I want to set all the columns, even if the value doesn't change, for the sake of clarity and readability so that people know that we didn't just forget a column. The lead dev is hesitant to do that because he's worried about the performance impact of extra lines in a trigger (which will get called many times), but if I can prove that the lines have no effect then he'll be placated.  Here's a little more (simplified) context to hopefully illustrate what I mean.  create or replace trigger SCHEMA.TRIGGERNAME before insert on SCHEMA.TABLENAME1 for each row declare mno1 number begin   select min(mno2), min(data22), min(data32)     into mno1, data2, data3     from (select mno as mno2, data2 as data22, data3 as data32       from SCHEMA.TABLENAME2 t2         inner join SCHEMA.TABLENAME3 t3           on t2.somekey = t3.somekey);    case :new.typecolumn     when 1 then       :new.mno := mno1;       :new.data2 := :old.data2;       :new.data3 := :old.data3;     when 2 then       :new.mno := :old.mno;       :new.data2 := data2;       :new.data3 := data3;     end case; end;


Is there a word for when two people really like each other, but aren't dating, don't want serious relationship?   EDIT  No, they aren't involved at all. They do not engage sexually with each other.


My keyboard is typing by itself, could there be a ghost in it?

The keyboard on my laptop seems to be typing by itself:   It sometimes types characters like 134, whether by itself or when I hit certain keys. Repeating characters may appear unexpectedly. The system volume may change by itself, or windows like the Print dialog or Web browser may appear.   This can happen without any input or as I type, and may occur more often when certain keys are pressed. Sometimes, the keyboard fails to respond altogether. This is happening regardless of the software involved.  Is there a ghost in my keyboard—is my keyboard broken?  A sample of text from the keyboard might look like this (normal QWERTY...ASDF...ZXC... sequence is expected):   QWERTYUIOPASDF)(G@*HKLZXCVBN QWERTYIOPASDFGL!#ZXCVB13 QWERTYUIOPASDFGHJKLZXCVB!#N qwertyu41iopasdf19g13h28j113k4113zxcvb4n qwerty4u1iopasdf0g7h1jklzxcvb13m qwert13uuuuuuuuuuuuuuuiopasdf87091134ghhhhhhhhhhhhhhhhhhhhhhh13jk13zxcvb14      This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


Episode of TV show where nobody was allowed to be smart

At some point in (I think) the 90s, I saw an episode of something like Outer Limits or Twilight Zone where nobody was allowed to have more than average intelligence. Smarter children had to wear headsets which inhibited them from being too intelligent, administering minor electric shocks if intellectual thought was detected.  I can remember a final (or near final) scene of somebody watching his suicide and being upset but not remembering why because of the headset.  Can anybody identify the show and episode?


What equipment and settings do I use for panning shots of moving objects?

How do you go about getting great panning shots of things like cars and bicycles so that the background is nice and blurred but the target is sharp as can be. I have tried on many occasion to do panning shots and I just can't get the setup right.  What lens setup, shutter speed would be a good place to start?


i receive this error building this table in Latex:  Extra alignment tab has been changed to \cr. Error& 11280.9 & 251 & 44.94& &&   This is my document:  ]{MastersDoctoralThesis} % The class file specifying the document structure \usepackage[utf8]{inputenc} % Required for inputting international characters \usepackage[T1]{fontenc} % Output font encoding for international characters \usepackage[dvips]{epsfig,psfrag} \usepackage{mathpazo} % Use the Palatino font by default \usepackage{amsmath} \usepackage{graphicx} \usepackage{floatrow} \usepackage[none]{hyphenat} % suppress hyphenation *globally* \sloppy  \newcommand{\HY}{\hyphenpenalty=25\exhyphenpenalty=25}  % re-enable hyphenation locally inside "Z" columns \newcolumntype{Z}{>{\HY\RaggedRight\arraybackslash\hspace{0pt}}X}   %\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA) \usepackage{biblatex} \addbibresource{bibliography} % The filename of the bibliography \usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography \usepackage{float} \usepackage{lipsum} \usepackage{subfig} \usepackage{adjustbox} \usepackage{tabularx,booktabs} \usepackage{mathtools} \usepackage{array} \newcolumntype{P}{>{\raggedright\arraybackslash}X} \setlength\tabcolsep{2pt} \captionsetup{     justification = centering } \usepackage{amsmath} \DeclareMathOperator{\Pa}{Pa} \newcolumntype{d}[1]{D{.}{.}{#1}} \setlength\tabcolsep{2pt}  \begin{document}      \begin{table}[!htbp]             \centering             \begin{tabular}{ l c c c c c}                 \toprule                 Source& Ss&  df& MF& F& $Prob>F$&\\                 \hline                 Groups &6254.4  &2  &3127.22 & 69.58 & $9.07728e^-25$& \\                 Error& 11280.9 & 251 & 44.94& &&\\                 Total& 17535.4& 253& &&\\                 \hline                 \bottomrule             \end{tabular}             \caption{ANOVA results.}         \end{table} \end{document}   Where is the problem? Is it in the number of columns?


LTC4001 Can charge my 1s4p Li-ion battery pack?

I was trying to design a battery charger for my application where I have made a pack of 1s4p cells where each cell is having 2600mAH and Charging rating as 4.2V. So can I consider it as 1 cell? Can I use LTC4001 - 2A Synchronous Buck Li-Ion Charger for this pack?


Time travel short story with a boy who can slip through time; gets mentored by his future self

I lost my sci-if book collection in a flood, and I'm trying to trace down one short story from an anthology.  I remember it starting with a boy who can slip through time. He is being mentored by his future self which he doesn't recognize. Later the story plays out in the future where he's leading a group of rebels.


How to increase the acceleration of an object on the Y axis?

So far I am able to make the character fall at a constant rate but I am unsure how to make the character accelerate while falling.  When the character is falling I have a line of code as such:  position.y -= 7f;   How can I change my implementation such that the character falls faster over time?


Have a look at . It's well structured, it's got 200+ votes and the accepted answer also has 200+ votes. Even so it's been protected by 'Community' for low-quality answers. I don't know about you, but that does not look like it has any low-quality answers. They may be short but they are concise and well-thought.      Obviously if you are being asked which you use in an interview, you say IList, smile, and both look pleased at yourselves for being so clever. Or for a public facing API, IList. Hopefully you get my point. - part of an answer by Arec Barrwin   That is funny, not low-quality. What is with the 'protection'? Is it autonomous and if so, shouldn't it be fixed? If not, why would these answers be classified as low-quality?


How to get a slowly expanding world border in Minecraft?

Recent Minecraft snapshots added the possibility to set a square world border that players can't pass through. It is used on the MindCrack server to expand the available area very slowly over time. How can I get the same effect in my Minecraft world?  Video with demonstration of what I'm talking about:


current amplification on common emitter mode of bjt transistor

what actually amplifies the current in CE mode of a transistor(npn here)? When the input is applied betn emitter and base, the forward biasing causes the electrons to move from source to the emitter say 100 electons. The same 100 electrons move towards the base where very few no. of electrons combine with holes say 2. they move out of the base towards source. so remaining electrons are 98 which move to the collector and out to the output circuit. So where is the current amplification? i have considered the Veb as 0.7 and Vce to be 1.


Why wasn't Neo's monitor connected to anything?

When Neo is sitting in his cubicle after being reamed out by the boss for being late to work, his monitor is off and he doesn't appear to be working - in fact, his monitor doesn't appear to even be connected to a computer. Why is this? Were the filmmakers just being cheap and hoping that no one would notice, or is there some other reason? Is it possible that there's some kind of symbolism here?


how do I get to files save on my windows system

I've installed Ubuntu alongside Windows 7. How do I get access to my Windows files with Ubuntu?


Why sigmoid function instead of anything else?

Why is the de-facto standard sigmoid function, $\frac{1}{1+e^{-x}}$, so popular in (non-deep) neural-networks and logistic regression?   Why don't we use many of the other derivable functions, with faster computation time or slower decay (so vanishing gradient occurs less). Few examples are . One of my favorites with slow decay and fast calculation is $\frac{x}{1+|x|}$.  EDIT  The question is different to  as I'm only interested in the 'why' and only for the sigmoid.


What does Dr. Krauss mean by a universe from "nothing."

I have read for a couple weeks now about a universe from nothing. I understand that the gluon field supports quarks in a proton. I understand that the universe has zero total energy. I'm confused about the beginning of the universe, and terminology. When Dr. Lawrence Krauss debated Hamza Tzortzis, Krauss told Tzortzis that "nothing" meant "NOTHING! Zip, zero, nada!" There was no universe, no quantum, and no foam. OK, nothing means no universe. No space, time, or laws. The universe was created when nothing was there before, or it wasn't there before. Then, the Lambda CDM theory asserts a quantum foam, substrate, or some such, prior to the big bang. Q: Is Dr. Krauss referring to a different model than the Lambda CDM? A:


How to prove: if $a,b \in \mathbb N$, then $a^{1/b}$ is an integer or an irrational number?

It is well known that $\sqrt{2}$ is irrational, and by modifying the proof (replacing 'even' with 'divisible by $3$'), one can prove that $\sqrt{3}$ is irrational, as well.  On the other hand, clearly $\sqrt{n^2} = n$ for any positive integer $n$.  It seems that any positive integer has a square root that is either an integer or irrational number.        How do we prove that if $a \in  \mathbb N$, then $\sqrt a$ is an integer or an irrational number?      I also notice that I can modify the proof that $\sqrt{2}$ is irrational to prove that $\sqrt[3]{2}, \sqrt[4]{2}, \cdots$ are all irrational.  This suggests we can extend the previous result to other radicals.        Can we extend 1? That is, can we show that for any $a, b \in \mathbb{N}$, $a^{1/b}$ is either an integer or irrational?


I tried installing a theme using the following lines:  sudo add-apt-repository ppa:noobslab/themes sudo apt-get update sudo apt-get install vimix-flat-themes   Needless to say the theme did not install as expected and I would like to remove what was installed. Any assistance would be greatly appreciated, thanks.  Here is the source web page i followed:


Is ending one's turn considered a perceivable circumstance?

The rules for the Ready action are as follows:     First, you decide what perceivable circumstance will trigger your reaction. Then, you choose the action you will take in response to that trigger, or you choose to move up to your speed in response to it.   Some context:  My group's bard got the brilliant idea to cast minor illusion on an Umber Hulk to surround its head in a 5x5 black cube, thereby making it impossible for party members to see it (and consequently suffer the effect of Confusing Gaze) until it moves again.  We were recently debating the idea of combining this with the Ready action. The intent is to declare, "When the umber hulk ends its turn, I cast the illusion on its head, effectively neutering its Confusing Gaze round after round."  Would that be possible, or is a more in-fiction trigger required?


The sun is shining and a spherical snowball of volume 340  ft$^3$  is melting at a rate of 10 cubic feet per hour. As it melts, it remains spherical. At what rate is the radius changing after 2.5 hours?  Please help I'm really confused 340-10*2.5 = 315 so (-10) = 4pi/3 * ?


Is there any difference in the First Contact responses?

So I've just made contact with some aliens and they aren't trying to horribly murder me.   I've got 3 options for responses for some of the different traits my species has. None of them show any effects in the hover text, is there a difference?   Are my people just boring that they don't have special responses?


I am typing in texmaker but using \tag{} is not giving me the desired result. It shows an error. Here is sample   \textbf{Proof-} It is clear that $Inn(G)\subseteq Aut_U(G)$.  So we let  $\varphi \in Aut_U(G)$ i.e. $\varphi(g)=u^{-1}gu$ for some $u\in U(\mathbb{Z}G)$\\ $\therefore$ $u=g^{-1}u\varphi(g) \tag{*}$.   Error says -   ! Package amsmath Error: \tag not allowed here. See the amsmath package documentation for explanation. Type H <return> for immediate help....  $\therefore$ $u=g^{-1}u\varphi(g)\tag   I am using amsmath package


smooth shading my object causes weird results and i dont know whats causing this

I have this gun im modelling and it seems fine on flat shading but when i smooth shade it causes weird lines on the front flat face. im new to blender and i dont know whats causing this issue please help.


I have a question about prime numbers and I have no idea how to start. Let $p$ be a prime number, $ p \neq 2 $ and $ p \neq 3 $. Prove that there is $ k \in N $ so that $ p^{2} = 24k + 1 $ Can anyone help me at least get started? Thanks.


I want to prove, that $(\mathbb{R}^n,\|\cdot\|_{p})$ is isometrically isomorphic to $(\mathbb{R}^n,\|\cdot\|_{q})$ iff $p=q,$ I have tried looking the unitary balls, and I have been proved that $(\mathbb{R}^n,\|\cdot\|_{1})$ is not isometrically isometric to any other $p$-norm.


I'm having exactly the same issue in this question:    Has anyone found a solution please?


Issues installing and using BCM43142 broadcom wireless network

The most recent "fixs" that I have found and tried to no avail.  first things first secure boot was deactivated then the following steps were taken.  sudo apt update  sudo apt dist-upgrade  reboot  no luck, also tried.  sudo apt-get update  sudo apt-get install broadcom-sta-dkms  reboot  no luck again  as well as others that have seemed to fix the problem for other people but still not me. I have installed pastebin and have run   wget -N -t 5 -T 10  && \  chmod +x wireless-info && \  ./wireless-info  as another forum suggested but I am unsure where to go or what to do next. Help please!


How can I switch between keyboard layouts by pressing a keyboard shortcut like on Windows?

Possible Duplicate:          On Windows I am able to switch between keyboard layouts by pressing Alt+Shift. Is there a similar keyboard shortcut in Ubuntu?


Custom view filter integer condition in string format

I have added a new custom view filter with next code: /**  * Filter .  *  * @ingroup views_filter_handlers  *   * @ViewsFilter("filter_pricelist")  */ class PriceListFilter extends FilterPluginBase {    /**    * @{inheritdoc}    */   public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {     parent::init($view, $display, $options);     $this->valueTitle = t('Price list quantity filter');   }    public function query() {     $grupo = $this->query->setWhereGroup('OR');     $this->query->addWhere($grupo, 'pricelist.fromquantity', 0, '>');     $this->query->addWhere($grupo, 'pricelist.toquantity', 0, '>');      }  }  It works good and filter is added to the query of my view. The problem is the compared values are in string format. This is the generated sql query: SELECT pricelist.fromquantity AS pricelist.fromquantity, pricelist.toquantity AS pricelist.toquantity, pricelist.id AS id FROM {pricelist} pricelist WHERE (pricelist.sku = '017016') AND ((pricelist.fromquantity > '0') OR (pricelist.toquantity > '0')) ORDER BY pricelist.fromquantity ASC, pricelist.toquantity ASC  I don't know why It is comparing to string '0' instead of integer 0.


Show $\sin(z)=w$ can be solved $\forall w\in\Bbb C$

I need help showing that the equation $\sin(z)=w$ can be solved for $z\in \mathbb{C}$ for every $w\in \mathbb{C}$. How would I be able to come to that conclusion and what would that mean about the function $f(z)=\sin(z)$?


I am working on a file explorer. If I want to open another dir and it is empthy, so no files can be listed, it returns a NullPointerException. How can I can rid of this?      File F = new File(path);     File L[] = F.listFiles();     txtPath.setText(path);     txtFiles.setText("");     for(int i=0; i<L.length; i++){         if(L[i].isDirectory()&&!L[i].isHidden()){             txtFiles.append(L[i].getName().replace(".txt", "")+'\n');         }     }   The error appears at the L.length line. In theory, the lenght should be just 0 right? But it just gives me the error. I tried:    if(L.lenght>0){         //do stuff   }   and (the basically same actually):   if(F.list().length>0){      //do stuff  }   How can I test in advance, if it is empthy? Or am I wrong and it returns the error for another reason? Thanks for any help!


How to set Windows bootloader as default bootloader?

I have a Win 7/11.10 dual boot system with Grub 2 as the default bootloader. However, I want to make Windows bootloader the default bootloader (grub 'dos' like interface scrares the hell out of my sister) so when I start the PC I will have the following boot options: 1. Windows 7 2. Ubuntu  NB: A process to reverse this operation so Grub can be the default bootloader again will also be appreciated


Can I get UAC prompt for user from batch file?  For example I need put some keys to registry under CurrentControlSet from batch file by     reg import path\to\my.reg   PS. runas is not a solution as my customers uses different Windows localisation and I can not guess which name used for Administrator account (this can be Администратор)...  And script don't know administrator password.  And UAC dialog box does not require password entering...


QGIS - Export PDF map with georeferenced data

I am used to working with ArcMap but have been playing around with QGIS. When I export a PDF map with ArcMap, the PDF is spatially referenced. This is a handy tool, I can put the PDF map on my iPhone and it tracks my location on the map (even when I'm out in the woods away from cell coverage). It's very handy for forestry work.  Are the PDF maps exported with QGIS also spatially referenced? Is there a plugin that allows for this feature?


I want to include a table in a tex file and I get this error: ! LaTeX Error: File `standalone.sty' not found. Type X to quit or  to proceed, or enter new name. (Default extension: sty) Enter file name: ! Emergency stop.  I have tries to install the standalone fille from    but I can't install it.    \documentclass[11pt]{exam}     \usepackage[french,english]{babel}     \usepackage[utf8]{inputenc}%pour inclure documents      \usepackage{caption}     \usepackage[T1]{fontenc}     \usepackage[capposition=top]{floatrow}     \usepackage[top=1.5in, bottom=1.5in, left=2cm, right=2cm]{geometry}     \usepackage{multirow}     \usepackage{dcolumn}     \usepackage{standalone} \begin{document} .... \input {pi_tableau_diagnosis_adult} \end{document}


I would like to have + on top of -, I used stackrel, overset, underset, but nothing is close to what I see in textbooks, is there a specific command that places the + very close to the - underneath?


How to use different keyboards in different apps without paid software?

Is there a way to use different keyboards in different apps? I want to use GBoard for every app except for my Terminal, in which I want to use Hacker's Keyboard. I want to do this because GBoard is a great keyboard, but I can't use arrow keys, ctrl+c, etc.  How could I use different virtual keyboards for different apps without using paid software?  This is different from  because the answer includes paid software.    I am using the OnePlus 5 with OxygenOS 4.5.10 (Stock ROM) (Based on Nougat 7.1.1)  Using this kernel:   Rooted with Magisk   Using the Kali Nethunter terminal:   Kali Nethunter installed with this Magisk module:


I used the following code.  libraries.yml      my_module.admin:   version: VERSION   js:     js/my-module.js: {}   dependencies:     - core/jquery     - core/drupal     - core/drupalSettings   my_module.module   /**  * Implements hook_page_attachments().  */ function my_module_page_attachments_alter(array &$attachments) {  $attachments['#attached']['library'][] = 'js/my_module';   // $attachments['#attached']['library'][] = array('my_module', 'admin'); }   my_module/js/my_module.js  (function($, Drupal, drupalSettings) {     Drupal.behaviors.my_module = {       attach: function(context, settings) {         $(document).ready(function() {             alert("hello");             console.log('Loaded');           }         };       })(jQuery, Drupal, drupalSettings);   I have tried many other changes, but the JavaScript file is not used.  I have ported Drupal 7 code that implements hook_boot() and includes that JavaScript file, to Drupal 8.


How to tell what architecture an APK is intended for?

I am writing a script to test a large quantity of apks.  Some run on x86 and some run on arm.  Is there a way I can tell which apks are intended for which architecture? I have looked through the report on aapt badging with aapt dump badging application.apk.  For some of the arm compatible versions I see native-code: 'armeabi-v7a' but not for all of them, and I don't see any indication of what architecture the x86 compatible apks run on. I have also tried using apktool to break apart the apk and examine the AndroidManifest.xml.  I don't see anything pertaining to the chip architecture in it either. I'm looking for something on a linux platform. Any ideas?


Modern practice to compare double/float for equality in modern C++

if (std::abs(double1 - double2) < std::numeric_limits<double>::epsilon())   std::cout<<"Equal"; else   std::cout<<"Not equal";  Is this code with modern C++11/14/17/21 is still the way we should compare float and doubles, or now it's ok just to write if (double1 == double2)  And compiler will handle the epsilon issue for us? BTW: is it better to write < or <= when checking against epsilon?


How did Amix Group get this helicarrier?

In Deadpool,       A big fight scene takes place in a battered helicarrier at an Amix Group scrap yard.     What is the history of this particular helicarrier? And why in particular was it sent to the Amix Group scrap yard?


Intuitively, $\lim\limits_{t\to -\infty}te^t=0$, since $e^t\to 0$ much faster than $t\to -\infty$.   Is there a way to more rigorously compute this? Writing it as $e^t/(1/t)$ seems resistant to l'Hopital's rule.


Use the std::find() to search a vector of user defined structures

After the following start:  #include <vector> #include <algorithm>  struct OBJECT{         char VALUE;         int COUNTER; } vector <OBJECT> MyCollection;    vector <OBJECT> ::iterator begin,end; char TEMP;  begin=MyCollection.begin(); end=MyCollection.end();   ...i want to use the Find() function to search the VALUE fields of the OBJECT entries in the vector like:  find (begin, end, TEMP);   (and later on succes do a COUNTER++ on the found OBJECT).  This is not possible by default because TEMP is not of OBJECT type but a char.   Any ideas?  As a student, i have not been able to translate the suggestions to working code, so wrote my own solution around the .at() method and deleted the iterators begin and end.  int MyCollectionIterator=MyCollection.size();   while(1){   if(MyCollectionIterator){      if( MyCollection.at(--MyCollectionIterator).VALUE==TEMP ){           MyCollection[MyCollectionIterator].COUNTER++;            break;     }   }else break; }


When is Skepticism not the best policy? What are its limits?

Skepticism is a tool. A useful tool for dealing with many misinformation and half truths.  However, like all tools, it has its strong and weak sides.  In which areas of philosophical thinking is hardcore skepticism a liability rather than an asset?


Straight line draw animation how doing it?

I am trying to do something simple yet i haven't found a way to do it in blender that is animating the drawing of borders of a shape (rectangles, triangles...) you can see an example on youtube of the result i am trying to achieve :   If anyone has a good technique to do it or a blender file it would be cool.  Thanks.


I had a big mistake  I run this command on a centos 6.8 server:  chmod 0644 -R /* instead of chmod 0644 -R ./*   now directory listing on root directory / and all files failed when I run this command:   chmod 0775 -R /*   I get this error:   bash: /bin/chmod: Permission denied   how can I fix it without reinstall my centos?


EEVEE seem not to benefit from multiple GPUs for rendering

Recently I have built a new workstation PC with dual GTX 1080 Ti. I know that in Cycles, each GPU renders 1 tile but I'm not sure about EEVEE. I tested it and it seems that even if I have checked both GPUs in user preferences EEVEE still uses only 1 GPU. I tried opening 2 instances of Blender 2.8 and set different GPU in each but the result was same; it keeps using one GPU only. This might not be implemented yet or SLI bridge might be required, I am really not sure. Do you guys have any experience with it? Has anyone done some rendering using SLI?


I need some verification for my proof in part a) and help to get me started on part b)  a) Prove that the sequence $a_n = (2n+1)/(3n+5)$ converges to $2/3$ directly from the definition of convergence of a sequence.  Solution: Some rough work first: Given $\epsilon>0$, we want $|a_n-(2/3)|< \epsilon$. Need $|(2n+1)/(3n+5) - (2/3)|< \epsilon$ which after simplifying gives $7/(9n+15)< \epsilon$. Solving for $n$ gives $n> (7-15\epsilon)/9\epsilon$.  Then we write our formal proof: Given $\epsilon>0$, set $N= (7-15\epsilon)/9\epsilon$. Let $n>N$. Then $|a_n-(2/3)| = 7/(9n+15) < 7/(9((7-15\epsilon)/9\epsilon)+15) =\epsilon$.  Thus by definition the sequence converges to 2/3.  b) Suppose that the sequence $\{a_n\}$ is not bounded above (that is, for any real number $x$, there is some $n$ so that $a_n>x$). Prove that $\{a_n\}$ does not converge to $42$.  To solve this I am assuming that we have to suppose that $\{a_n\}$ does converge to $42$, and then we will get a contradiction, that is the sequence will be bounded above. So can anyone help me get started on this?


I have a very naive question. I started using linguex package, but now I realized I need some options that only expex has. I was wondering if the two packages be used in the same document, or would they be in conflict with one another.   The reason I ask this, is that I need to do the following with linguex, but I am not sure it is doable. First, I need to have right-aligned comments on the first and third line of a gloss.  Based on on the question linked in the comments:      I tried the following:  \documentclass[12pt,letterpaper]{article} \usepackage{amssymb} \usepackage{linguex} \usepackage{cgloss} \begin{document}  \ex. \a. The girls kissed the boy \hfill {\small \checkmark X} \bg. The boy didn't kiss the girl \\  D boy AUX.NEG kiss D girl \\ \hfill {\small \checkmark X} \trans 'The boy did not kiss the girl'. \hfill {\small \checkmark X}  \end{document}   This doesn't quite do what I want because ... ?    Second, I need to add arrows/lines connecting two parts of the example. Something like:


I'm trying to remember a book title, wherein the main character pretends to be in a coma, and is a telepath. He travels the 'net with his mind and at one point, comes across a number of minds that are in orbit on a satellite. They greet him, and this startles him so much that his life signs in the long term care facility where he's "parked" potentially(?) raise the alarm that he's conscious. (The book goes into some detail about how much control he has to leverage over his physical body to pull off the guise of a coma.)  The only other part of the book I can remember is a relatively graphic scene where a female character--I believe one of a team in pursuit of the main character--is descending in an elevator with a man, perhaps into the facility where the main character's "comatose" body is located.  For some reason I can't remember, she feels compelled to suddenly give the man oral sex and suddenly bite off his penis.  Any ideas?


I want to use my Android device as a network server. In the same kind of way you would make it a Wi-Fi hotspot, but I don't want to allow connected computers to access the internet, I would like them to be able to communicate together.  Possible uses:   Playing games via LAN (e.g., Quake) Allow computers to share files Bonjour (Macs) etc...   Is there any way to achieve this? Any apps out there that will set up a wireless network server?


I just noticed that my user name is no longer then same,  As recently as a few months ago, my user name was bonaca, but now it is user182196.  Because I can't see my user name in the new topbar anymore, I'm not exactly sure when it was changed.  What is causing this and what should I do?


I'm reading a book on data science and get confused about how the book describes the hinge loss of SVM. Here is a figure from the book on Page 94:    This figure shows the loss function of a NEGATIVE instance. It seems there is no penalty if the instance lies within the margin even on the positive side. Also on Page 95, the author explains:    However, from what I read about SVM, there should be penalty as long as the negative instance lies within the negative margin or on the wrong side. I updated the loss function as below with orange color:    Can someone tell me if I'm correct or not? Thanks!  Updates:  In , it says:     Correctly classified points lying outside the margin boundaries of the support vectors are not penalized, whereas points within the margin boundaries or on the wrong side of the hyperplane are penalized in a linear fashion compared to their distance from the correct boundary


Bug with Asymptote: horizontal black lines

I encounter this bug with Asymptote (latest version on Windows):    These horizontal lines are not from my code, they underisably appear.  I have found only  reporting the same problem, but no answer is given (I have tried the option -glOptions=-indirect, as suggested in a comment, but it does not prevent the bug).  Any idea? My code is below.   settings.render=4; settings.outformat="pdf";  // ----------------------------------------------------------------------------- import three; import solids;  // ----------------------------------------------------------------------------- real[] circumsphere(triple p1, triple p2, triple p3, triple p4){   real a = orient(p1,p2,p3,p4);   real q1 = p1.x*p1.x + p1.y*p1.y + p1.z*p1.z;   real q2 = p2.x*p2.x + p2.y*p2.y + p2.z*p2.z;   real q3 = p3.x*p3.x + p3.y*p3.y + p3.z*p3.z;   real q4 = p4.x*p4.x + p4.y*p4.y + p4.z*p4.z;   real Dx = orient((q1,p1.y,p1.z),(q2,p2.y,p2.z),(q3,p3.y,p3.z),(q4,p4.y,p4.z));   real Dy = orient((q1,p1.x,p1.z),(q2,p2.x,p2.z),(q3,p3.x,p3.z),(q4,p4.x,p4.z));   real Dz = orient((q1,p1.x,p1.y),(q2,p2.x,p2.y),(q3,p3.x,p3.y),(q4,p4.x,p4.y));   triple center = 0.5/a * (Dx,-Dy,Dz);   real r = length(p1-center);   real[] out = {center.x,center.y,center.z,r};   return out; }  // ----------------------------------------------------------------------------- triple inversion(triple pnt, real r, triple center){   triple omega = (2*r, 0, 0);   real k = 3*r*r;   triple v = pnt - omega - center;   return omega + center - k/(v.x*v.x+v.y*v.y+v.z*v.z)*v; }  // ----------------------------------------------------------------------------- real[] oneSphere(triple center, real r, real beta){   triple pnt = center + (r*cos(beta)*2/3, r*sin(beta)*2/3, 0);   real thRadius = r/3;   triple p1 = pnt + (thRadius,0,0);   triple p2 = pnt + (0,thRadius,0);   triple p3 = pnt + (-thRadius,0,0);   triple p4 = pnt + (0,0,thRadius);   triple q1 = inversion(p1, r, center);   triple q2 = inversion(p2, r, center);   triple q3 = inversion(p3, r, center);   triple q4 = inversion(p4, r, center);   real[] cs = circumsphere(q1,q2,q3,q4);   cs[0] = cs[0] - 4*r;   return cs; }  // ----------------------------------------------------------------------------- void hexlet(){   for(int i=0; i<6; ++i){     real[] s = oneSphere((0,0,0), 1, i*pi/3);     draw(surface(sphere((s[0],s[1],s[2]), s[3])), red);   } }  // ----------------------------------------------------------------------------- currentprojection=orthographic(0,0,6); viewportmargin=(10,10); size(10cm); currentlight=((0,0,100));  hexlet();


Seeking short story about teenage hovercar thieves forced to race to their deaths by the government

I'm looking for a short story that I read in the late 1970s or early 1980s, English-language in the US, possibly part of a Scholastic-published offering or anthology.  The plot involves two teenage juvenile delinquent brothers who are unrepentant hovercar thieves and joyriders (I'm pretty sure it was hovercars, though it could have been regular cars).   They have been caught yet again, and the justice system, desperate for a solution to the problem of rampant hovercar joyriding, puts them into a program where they are forced to race hovercars on a track until they lose the desire, or die in the process. (The analogy used is similar to forcing kids caught smoking cigarettes to smoke a box of cigars until they get sick -- a form of aversion therapy.)  In the first race, the older brother chooses a car with a low-profile color for himself, and a high-profile color for his brother so he can keep an eye on him.  As the racing progresses, the brothers face dangers in the form of their fellow racers, as well as deadlier obstacles on the track itself (including at one point, a tank -- though as a barrier, not a weapon).


I have simple application. I have an arraylist and this list includes websites. I have an error when I click the button. The error is ;  A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll Additional information: Cross-thread operation not valid: Control 'listBox2' accessed from a thread other than the thread it was created on. If there is a handler for this exception, the program may be safely continued.  Codes are below:     private void button2_Click(object sender, EventArgs e) {         for (int i = 0; i < sitelist.Count; i++) {             Thread thread = new Thread(getStatus);             thread.Start((string)sitelist[i]);         }     }     private void getStatus(Object obj) {         listBox2.Items.Add("1");     }  When I wrote the code like:     private void getStatus(Object obj) {          MessageBox.Show((string)obj);     }  it works. Why it shows error when I use listbox ? Sincerely. Ömer.


A tree has $n_2$ vertices have degree 2, $n_3$ vertices have degree 3, ..., $n_k$ vertices have degree k. How many vertices in this tree have degree 1.


Are the questions in the about page taken from real posts? If not, who designs them?  Particularly, why does this specific answer have a date from before the question was asked?


how to change the key value of an object

There are 2 objects  1)   var obj1 = { id: 1, firstName: 'someFirst', lastName: 'someLast', status: 'active', }   2)   var obj2 = { firstName: 'test', status: 'disable', }    how can I change the key value of the first object based on the key values of the second object? Expected result is:   obj1 = { id: 1, firstName: 'test', lastName: 'someLast', status: 'disable', }   Many thanks!


What does negative time mean or what does it show?

In this question when I solve for time I get $t=-1$ & $t=5$. What does it actually mean at $t=-1$?


$\mathbb{Z}/n\mathbb{Z}$ is a semisimple ring provided n is square-free

Show that $\mathbb{Z}/n\mathbb{Z}$ is a semisimple ring if n is square-free..   Some articles suggests that we can use Chinese remainder theorem. But I can't exactly figure out how to do that.  Thanks in advance!!!


number of permutations in which no two consecutive numbers are adjacent

In how many ways can the natural numbers from 1 to 10 be arranged so that no two consecutive numbers are adjacent to each other, and how is the formula arrived at?


What makes proving the Riemann Hypothesis so difficult?

I am a Biology major (please don't shame me!) but I really enjoy mathematics. Recently I have been reading about this conjecture and its importance in understanding the distribution of primes. After being studied for so long, how come all attempts have failed? Why is this such a difficult thing to study and work on? Would finding a closed form of $$\sum_1^\infty \frac {1}{n^s}$$ help the issue? Have any attempts been made at this at all? Thank you very much for your time educating me and your help!!


Is there an intuitive reason the brachistochrone and the tautochrone are the same curve?

The  asks what shape a hill should be so a ball slides down in the least time.  The  asks what shape yields an oscillation frequency that is independent of amplitude.  The answer to both problems is a cycloid.  Is there an intuitive reason why these problems have the same answer?  Proposed operational definition of "intuitive":  Imagine modifying the problem slightly, either to the  (tunnel through Earth), or by taking account of the finite radius of the ball.  If the answer to the original question is intuitive, we should easily be able  to tell whether these modified situations continue to have the same brachistochrone and tautochrone curves.


Yosemite won't accept administrator password

I've just bought an iMac, reinstalled Yosemite, put in my details but, coming back after a short pause, found it had gone to sleep and wouldn't accept my password to wake up. I'm sure I put in the right one. I've seen advice that re-booting to Recovery might offer a way of recapturing my password, or changing it to a new one, and tried it again and again. But whether I restart holding down Command+R, or holding down the Option key and then choosing to boot from Recovery, I just can't find any options to click that would lead me to either my password or any way to put in a new one.   I'd be grateful for help.


Is the world we are living in discretized?

I do not know how to use professional words to ask my question, so I will try to use a layman language. Please bear with me for a moment.  A ROUGH GUESS  The world our eyes are seeing every moment is a picture reflected in our eyes. I guess our eyes are like cameras, that are taking pictures "continually". I suppose there is a frequency in this picture taking. Say it is 1/10000s, the time it takes a picture, let's assume it is negligible. Something like that.  THE QUESTION  My question is, if we take a picture at 0/10000s, 1/10000s, 2/10000s, etc. How do I know that between the time 1/10000s and 2/10000s, the world exists?  So now:   If my guess is wrong, then what is the real picture? What is happening in reality? If my guess is correct, how do we know the world exists continually? How would you use experimental methods to prove it? Or there might be theoretically, many worlds in our time gaps coexisting with ours?   EDIT  I feel I still have not got a satisfied answer for my first question. Could anyone explain to me: is our vision equipment (i.e., our eyes) functioning continually or discretely?


Servers with 24 NVMe drives - read throughput

We would like to buy some servers and we are looking into DELL server with 24 NVMe drives (like R740xd2 - 2 socket server) since we need very high read IOPS and throughput. We are however wondering what's the maximal throughput we can achieve with this solution. AFAIK, each NVMe takes 4 PCIe lanes but I am not able to find what's the number of available lanes on these servers. Usually NVMe drives offer around 24 Gbps but I know it is not real that 24 NVMe drives would give us 24 * 24 Gbps in parallel read.  So the question is, what is the throughput we can expect out of server like this while doing parallel read from all drives? I know that we'll probably reach the limit of what CPU can do but I am just wondering what is achievable. Anything around 48 Gbps would be win.


Different favicon icon is showing in google search result

I have a blogger blog. My blog's favicon icon is showing different icon in Google search result. But it's showing the correct one in Chrome tab.  My favicon ico link is:  <link href='https://www.example.in/favicon.ico' rel='icon' type='image/x-icon'/>


void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

Hello can anyone help me solving this problem I don't understand what exactly is wrong and Hello can anyone help me solving this problem I don't understand what exactly is wrong Hello can anyone help me solving this problem I don't understand what exactly is wrong and Hello can anyone help me solving this problem I don't understand what exactly is wrong  MainActivity.java      public class MainActivity extends AppCompatActivity {       Button btnSearch,btnDailyEntry,btnNewCust;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          btnSearch.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 btnSearch = (Button)findViewById(R.id.btn_search) ;                 Intent intent = new Intent(v.getContext(),Search.class);                 startActivity(intent);             }         });         btnNewCust.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 btnDailyEntry = (Button)findViewById(R.id.btn_daily_entry) ;                 Intent intent = new Intent(v.getContext(),NewCust.class);                 startActivity(intent);             }         });         btnDailyEntry.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 btnNewCust = (Button)findViewById(R.id.btn_new_cust);                 Intent intent = new Intent(v.getContext(),DailyEntry.class);                 startActivity(intent);             }         });      }   }   activity_main.xml      <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"     android:orientation="vertical"     android:gravity="center">      <TextView         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="Daily Entry System"         android:textColor="@android:color/holo_blue_dark"         android:textSize="20dp"/>     <Button         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="Search"         android:id="@+id/btn_search" />       <Button         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="Daily Entry"         android:id="@+id/btn_daily_entry" />      <Button         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="New Cust"         android:id="@+id/btn_new_cust" /> </LinearLayout>


Want to prove a differentiation based formula for propagated uncertainty

I recently learned of the concept of propagated uncertainty, and I was introduced to the rule that if $$ X = AB$$ then if $A$ has an uncertainty of $\Delta A$ and $B$ has an uncertainty of $\Delta B$, the uncertainty of $X$ can be found using the formula $$\frac{\Delta X}{X} = \frac{\Delta A}{A} + \frac{\Delta B}{B}$$  I've been told that this is somewhat based off differentiation; I want to know the logic behind this. Could anyone please help me understand how they came to this formula? It's not very intuitive.


Many of my apps crash right after starting, since yesterday

Many of my apps crash right after I try to start them. This issue started about 24h ago. This includes:  Gmail Microsoft Outlook Screenshot Touch  I use Android 10 with Samsung Galaxy S9. I didn't install any new apps or OS upgrades. I do have the app auto-update on Play turned on. What could be the issue?


My PC have 8gb ram. recent I install ubuntu 32 bit and I saw the system show 8gb. should I install ubuntu 64 bit or 32 bit?


I've installed Ubuntu 13.10 and formatted my whole HDD ,and i chose to encrypt the disk and it automatically chose the LVM option (and put it as a logical partition) now after Ubuntu installed i tried to repartition the disk thru Live CD put GPartition gave me it's an encrypted partition and it can't be resized , i want to put the system's files and the home folder on partition and my private files on another one  Any help please ?


8:00 pm : I started to drink.  9:00 pm : I finished drinking.  9:02 pm : I was heading out the door.  9:03 pm : I met old friend Suzi and we decided to drink more just two of us.  9:30 pm (now): We drink.  In this situation, I said like     A. I had just finished drinking and just as I was about to leave, I happened to meet old friend from college at the bar, Suzi. So, we decided to drink more and we're here at another bar drinking.   Here, A means B or C ?     B. Only a short while ago from now, I finished drinking and just as I was about to leave, I happened to meet old friend from college at the bar, Suzi. So, we decided to drink more and we're here at another bar drinking.      C. I finished drinking and was about to leave, and only a short while after I finished drinking and was about to leave, I happened to meet old friend from college at the bar, Suzi. So, we decided to drink more and we're here at another bar drinking.   I want to know the meaning of "just" here.


JavaScript regular expression mobile phone number

XXX-XXX-XXXX   XXXXXXXXXX         I want to use a regular expression of the format. I tried as shown   below, and an error occurs. How do I fix it?      sample var regExp = / ^ 01 ([0 | 1 | 6 | 7 | 8 | 9]?) - ([0-9] {3}) - ([0-9] {4}) $ /??; sample var regExp = / ^ 01 ([0 | 1 | 6 | 7 | 8 | 9]?) ([0-9] {3}) ([0-9] {4}) $ /??;


I am reading Introduction to Statistical Learning by James et al (freely available on their ). In the section the quote below is taken from, they illustrate how $t$-statistic is used to test the null hypothesis.  Now, I understand the definition of the $t$-statistic. But, I am having trouble wrapping my head around the definition of the $p$-value; particularly, in the quoted text below, which value are they exactly talking about?     Consequently, it is a simple matter to compute the probability of observing any value equal to $|t|$ or larger, assuming $\beta_1 = 0.$   In other words, I would like to know how, in Table 3.1, p.68, the $p$-value obtained?


There is a song titled "Better Not Wake the Baby" by a band called The Decemberists. One of the lines in the song is as follows:       Drown yourself in crocodile tears,       Curse the god what made thee,      Find a way for your banner years,      But it better not wake the baby.   I'm curious about the use of "what" here. From my knowledge of English grammar, it seems as though the word should be "that"; however, I have come to understand that they are wont to using archaic, foreign, or obscure words and grammar, e.g. the use of the word "fey" (Scottish for "fated to die").


Horizontal placement of footnotes in beamer

Hi I am wondering whether it is possible to place the beamer footnotes into multiple columns or display as horizontal, instead of vertical.   \documentclass{beamer} \usepackage{booktabs} \begin{document}  \begin{frame} \begin{table}[htbp]   \centering %  \caption{Add caption}             \resizebox{\textwidth}{!}{%     \begin{tabular}{rrr}     \toprule     \centering     Animal estimated by tracking  & \textbf{2 Equation approach} & 1 Equation \\     50\%   & $\frac{\partial C\footnote{dye }(t,\vec{x})}{}$      &  \\      &  $\frac{\partial \alpha\footnote{age }(t,\vec{x})}{}$     & $\frac{\partial A\footnote{A refers to "animal"}}{}$ \\     \bottomrule     \end{tabular}}% %  \label{tab:addlabel}% \end{table}% \end{frame} \end{document}   I would appreciate if anyone could explain me how to get the horizontal footnotes.


Now we have to create class X (as base class) and class Y (as derived). They both uses integer pointers to hold different size of allocations.  class X {   int *p;   public:          X() {p=new int[2];}          ~X() {delete[] p;} };  class Y : public X {   int *q;   public:          Y() {q=new int[4];}          ~Y() {delete[] q;} };   And let's try it in a simple loop:  for(int i=0;i<8;i++){X *ptr =new Y; delete ptr;}   What causes the memory leak there and what can we do to fix it?


What's the exact syntax for spoiler markup

Following the  thread on meta.tex.sx, it's clear that the spoiler markup has a wrinkle or two that I didn't at first appreciate.  For information's sake, the spoiler feature is contentious because it collides with the syntax for Latex errors.  Is there a precise description of when a blockquote will be treated as a spoiler?  Two related threads containing some information on the syntax:


How can I disable CPU throttling and CPU disabling?

On a 2011 17" MacBook Pro (i7, 10.6, 16GB ram) I do not have any options in the energy saver preference panel to control CPU throttling.  I need to be able to disable CPU throttling for short periods of time - or at least force OS X to a certain state and stay there so that I can get consistent results from test to test in a performance comparison situation.  Are there methods or apps that allow me to control the energy saver features and particularly CPU throttling and CPU disabling for recent (sandy bridge) Macs?  CHUD does not appear to support this machine (it doesn't correctly report the CPU type) and while I can manually disable hyperthreading and processor cores using /Library/Application Support/HWPrefs/CPUPalette.app it doesn't give me the option to tell OS X not to throttle anything.


I have a relatively simple blender image (walls of a house), and my computer is reasonably top-shelf.  However, blender is not showing me the entire image while I'm editing it.  What's worse is that the part it's not showing is the part that's closest to me, so I can't even get to the part of the image that I'm trying to work on.  I've includes two pictures: one of my system's specs and one of my house design with portions of the wall (nearest to you) that are missing from the image.  Video card is NVIDIA GeForce.  This seems to be a memory issue to me, like blender is not using all of the memory my system will allow it to use.  I have the memory limit (userpref/editing) set to "0" (which my system says means "unlimited").  Any thoughts as to what I can check/look at/etc. to keep it from doing this?  Thanks in advance for your help.


I have a text layout in Photoshop that is very precisely arranged. Is there a way to recreate this layout in InDesign without too much work?  Tips, tricks, scripts, are appreciated.


i have created a website but am having a problem with the footer. it stays at bottom of the page when there is a lot of content but if there is very less content on the page i want it to stay perfectly at the bottom of the screen  website link:   if you see the privacy page the footer is not perfectly at the bottom due to which the scroll bar is active  i have tried using bottom: 0 on the footer div and keeping the min-height of the body to 100% while keepin the margin-top of the footer to -60px. nothing seems to work


Does Python's interpreter compare values when allocating memory?

I just watched this  on memory management in Python. In it, the presenter used the following code example (at about the 4:15 mark):  x = 300 y = 300   In this case, we have two names (x and y), each pointing at a value of 300. How did Python, when executing the y = 300 line, know that it didn't need to allocate memory but rather increase the reference count, since memory for that value had already been allocated (through x)? Is the interpreter comparing values on each instantiation? If so, how does it keep track of the values it already knows about (I would assume it would do so using a dict)?  Suppose I introduced a new variable:  z = 100 + 200   Would z end up simply increasing the reference count to 300 once more?  When I try the following in my REPL (Python 3.6, Windows 7 x64), I get differing memory locations, which further confuses me (though, to be fair, she says not to try this in a REPL):  >>> x = 300 >>> y = 300 >>> print(id(x)) 31191600 >>> print(id(y)) 31191648


Delete items from array and later get back them in new array

I have this code:  $hackers = array ('Alan Kay', 'Peter Norvig', 'Linus Trovalds', 'Larry Page');   I want to delete 1st two items and later want to get back just deleted items in an array


Creating DEM after converting MapInfo tab files to ArcGIS Desktop?

How do I create DEM for contours after converting MapInfo tab files to ArcGIS and how do I convert toposheet tab file to ArcGIS?


java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toString()' on a null object reference (HELP)

when i press the call driver button from the rider app. it shows the notifaction at driver app but it crashes because it gives error of invoking a nullpointer error.  on a null object reference error comes at this line  (JSONObject jsonObject = new JSONObject(response.body().toString());)   here is my CustomerCall class  private void getDirection(double lat, double lng) {     String requestAPI = null;     try{          requestAPI = "https://maps.googleapis.com/map/api/directions/json?"+                 "mode=driving&"+                 "transit_routing_preference=less_driving&"+                 "origin="+ Common.mLastLocation.getLatitude()+","+Common.mLastLocation.getLongitude()+"&"+                 "destination="+lat+","+lng+"&"+                 "key="+getResources().getString(R.string.google_direction_api);          Log.d( "Sunny",requestAPI ); //print url for debug          mService.getPath( requestAPI )                 .enqueue( new Callback<String>() {                     @Override                     public void onResponse(Call<String> call, Response<String> response) {                              try {                                 JSONObject jsonObject = new JSONObject(response.body().toString());                                 JSONArray routes = jsonObject.getJSONArray("routes");                                  //after get routes,just get 1st element route                                 JSONObject object = routes.getJSONObject(0);                                  //after get 1st element, we need array with name "legs"                                 JSONArray legs = object.getJSONArray("legs");                                  //and get 1st element of legs array                                 JSONObject legsObject = legs.getJSONObject(0);                                  //Now get Distance                                 JSONObject distance = legsObject.getJSONObject("distance");                                 txtDistance.setText(distance.getString("text"));                                  //get time                                 JSONObject time = legsObject.getJSONObject("duration");                                 txtTime.setText(time.getString("text"));                                  //get address                                 String address = legsObject.getString("end_address");                                 txtAddress.setText(address);                               } catch (JSONException e) {                                 e.printStackTrace();                             }                         }                        @Override                     public void onFailure(Call<String> call, Throwable t) {                         Toast.makeText( CustomerCall.this, ""+t.getMessage(), Toast.LENGTH_SHORT ).show();                      }                } );      }catch (Exception e)     {         e.printStackTrace();     } }   Logcat Error here  E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.shk.callingloader, PID: 12668 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toString()' on a null object reference     at com.example.shk.callingloader.CustomerCall$1.onResponse(CustomerCall.java:90)     at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:71)     at android.os.Handler.handleCallback(Handler.java:790)     at android.os.Handler.dispatchMessage(Handler.java:99)     at android.os.Looper.loop(Looper.java:164)     at android.app.ActivityThread.main(ActivityThread.java:7000)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)


What causes System Idle Process to run down my CPU so much

I noticed my laptop was being a bit unresponsive so I checked the processes tab and found that System Idle Process is using nearly all of my CPU power.     Why is this happening and how do I stop it?