Perhaps I am completely wrong, but as I understand it our observation of a system can affect the outcome.  The example I remember is the double slit experiment where electrons behave as a wave at first, but when observing it behaves as a particle.  The conclusion, as I remember hearing, is that observing the system is what caused the different outcomes.  Why is this that case?  Couldn't it have been the camera (or whatever is used to detect/observe/etc.) that causes the difference?  It just seems like there are a few potential explanations that get skipped over here.  Excuse me while I most likely butcher this experiment with an example.  Say I turn on the sink and water goes from the faucet to the drain.  Now when I hold a cup under the water, it no longer hits the drain, instead it is captured in the cup.  My explanation, having my hand there causes the behavior.  This has bugged me since I first heard it, and I have yet to find an explanation that I can accept.  Given, that may be due to my inability to comprehend some of the more complex explanations, but I would still like to figure it out.


How can I use convert to resize images to a specific width keeping the ratio for the height?

I have a file with the full path to an image on each line, all are jpg.  I want to resize every image/line in the file to 1024px in width, while keeping the aspect ratio for the height.  I simply want to overwrite the original file.  The main thing I'm having issue with is, I want to SHRINK only.  I do not want to enlarge images smaller than 1024px in width up to 1024px in width.  Here is the bash script I'm working with and just need help with the convert line as I have no experience with imagemagick.  #!/bin/bash  while read p; do   convert $p done < listofimages


How to Add Column to an existing SQL Server table along with data

How to add column to an existing SQL Server table along with data simultaneously. The below syntax with DEFAULT clause appears to load data in the new column for INSERTs only.  ALTER TABLE LanguagePacks ADD LgDt DATETIME DEFAULT GETDATE()   EDIT: Thanks for all your answers. It worked. I tried all your suggestions and is an excellent learning. Since this question is marked as dup, appears to have affected my option to post this edit as answer.  ALTER TABLE ##LangPak  ADD  LtDt3  DATETIME DEFAULT GETDATE(), --LtDt1  DATETIME NOT NULL, --ERROR: Msg 4901 LtDt DATETIME NOT NULL DEFAULT GETDATE(), LtDt2 DATETIME DEFAULT GETDATE() WITH VALUES, LtDt4 DATETIME NULL DEFAULT GETDATE()  WITH VALUES


It's really hard to get started on Stack Overflow

I have been on Stack Overflow for some time.  It is an AMAZING resource and don't know if I would've got through the past 18 months without it.  I love it!  Problem is that I have "1" reputation.  All of my questions have already been asked and answered.  My "new user restrictions" mean: - I can't vote up answers that were helpful. - I can't comment on answers.  I sometimes have a question to ask one of the users that answered someone else's question but I can't.  This is hard!  How do I get a break?  Do I have to troll for a couple of days/weeks/months to answer enough questions in the hope someone votes some of them up just so I can do some basic functions?  Perhaps the number of site visits and length of membership could count for something?


How do I teach my toddler not to stuff her cheeks with food?

My 20-month-old daughter, given the opportunity, will stuff her cheeks full of food she likes (especially cheese, raisins, or green beans) to the point where it's difficult for her to chew or swallow.  When this happens, she'll work on the food for a little while and then remove it by hand and give it to me (at least she doesn't throw it or drop it.  :-) )  She definitely likes the food; given one or two pieces at a time, she will devour them without stuffing them in her cheeks.  Obviously, I can control the amount I give her at a time, but this is probably not a long-term solution.  How can I encourage her to only take a little bit at a time?


How can oxygen production during photosynthesis be measured?

I'm curious how people measure quantitatively photosynthetic rate in labs.  I've seen many qualitative examples with direct observations of bubbles forming in water due to photosynthetic output of aquatic plants.  The ways I have come up with are:   to measure the CO2 intake. to measure the O2 output. to measure the amount of sugar produced.   The 3rd option seems most trivial, but I don't know how to measure the amount of CO2 present in a container. With a reaction? Or with a measuring machine of some sort? What about O2?


Want to know the font and styles used in these notes

I really like the way these notes are typeset. I want to know which font is used here and are there any default styles that can be invoked to get such a format. A few things I'm interested in knowing the implementation of are :    the font footnotes are displayed in the right margin in the title "Probability Review" although all alphabets are in capital their sizes are different   I am only interested in the formatting since it looks really pleasing to the eye.   Link :


Problem upgrading pip command in Azure Jupyter notebook

Trying to install CNTK, I received a message saying that I should upgrade pip command  This one is another question related to the upgrading of pip. After the installation with the command pip install cntk  I received another error message as shown in the attached image.


Show that $X$ is $T_0$ iff $\forall x,y \in X$ $x\ne y$ it holds that $\overline{\{x\}}\ne \overline{\{y\}}$. I was having trouble making a decisive, clear argument in what seems to be an easy question. At first I attempted to show that if $X$ is $T_0$, then for $x,y\in X$ such that $x\ne y$, there exist $U_x, U_y \in T$ which respectively includes $x$ and not $y$ and vice-versa. Thus letting $F_x=X\setminus U_y, F_y=X\setminus U_x$, it follows that $\overline{\{x\}}\subset \overline{\{x\}}\cap F_x$ and that $\overline{\{y\}}\subset \overline{\{y\}}\cap F_y$, but can I directly derrive that $\overline{\{x\}}\ne \overline{\{y\}}$? The opposite direction is confusing to me: for distinct $x,y \in X$, letting $F_x= \overline{\{x\}},F_y= \overline{\{y\}}$, if I can assume $y\notin F_x$ and $x\notin F_y$ then it is direct, but what if $x\in F_y$? I can't find an elegant way to adress this case. What am I missing? I accept that this question could be well-known and is a possible duplicate but I would appreciate it if you could address my strategy in-question.


How to print the set of 3 from the list?

i have list below    l = ["a1", "MYSQL1","emp", "b1", "MYSQL2","dep"] for a, b,c in zip(l[::2], l[1::2], l[2::3]):     print(a, b, c)   I got the first line properly but rest is coming wrong  My expected out  a1 MYSQL1 emp b1 MYSQL2 dep


Does a database backup reduce size/increase free space of the log file?

I have a SQL Server database where the log file is massive and keeps growing every day.  I've archived data from the database and then done a full backup.  I was expecting the log to then be basically "empty".  e.g. It might be the same physical size, but now have lots of free space.  However, it's currently only got 0.1% free.  Any ideas why there is still almost no free space in the log?


New Question  Two questions:   I'm trying to put a commit before ALL commits. The bottommost commit has 660fb2a76211f36ec9a67d0454a90eab469e9fd0 as SHA. When I type git rebase -i 660fb2a76211f36ec9a67d0454a90eab469e9fd0 every commit but the last one gets displayed in the list. I really need this commit to appear so I can put the very first commit as very last! When I put the very first commit as first in the list (meaning second commit in total, because the very first is not in the list as mentioned above) I get an error: error: could not apply b722c76... v1.4.3 BEAT release I just cut it from the bottom of the list and put it to the top! I did not change the number! I also tried this several times. The same result.   That's it so far. If you have questions go ahead and ask!  Original Question  I just dicovered old backups of my project. These backups where created before I used git. I now would like to add them to my repository as old commits. That would mean I have to put these commit in front of all other commits.  Now there are several problems with this:   How do I in general put a commit before other ones? How could I do this fast? (I have many backups!) How do I set a date for these "old" commits? (I know the dates of the backups!)   If something is not clear, please mention it. I will fix the issue then!  One last thing:  I have published this on GitHub. And I mainly used their software to commit commits. So how do I push this back to GitHub?


Adjusting polygons layers's boundaries in PostGIS

The case is quite typical. I’ve to compare two (multi-)polygons layers of administrative regions, with l2 being lower level (let’s say municipalities – 2811 records) than l1 (let’s say provinces – 785 records). Both layers are stored in a PostGIS DB. Each municipality refers the corresponding province through a foreign key. Municipality’s boundaries should fit to the Province’s boundaries but, due the digitizing errors, it’s not case and we have the following situation with overlaps and gaps, as shown below  The aim is to adjust boundary of each “municipality” features (l2) to match to the shared part of boundary of its corresponding province (l1). I would like to male all treatments in PostGIS I tried various treatments:   testing with various tolerance  SELECT a.cod_mun, st_snap(a.geom, b.geom, tolerance) AS st_snap  FROM municipality a, province b  WHERE mun_cod_prov = cod_prov But the results it not good at all (with tolerance 50)   Extract each intersected parts  I easily extracted small parts of municipalities (in blue here below) that correspond to the intersection of municipality in the undesired provinces but didn't find yet the solution to group the relevant zonez and retrieve the whole municipality with matched borders SELECT row_number() OVER (ORDER BY a.cod_mun) AS gid, st_difference(a.geom, b.geom) AS geom FROM (     SELECT mun_cod_prov, st_multi(st_union(a.geom))::geometry(MultiPolygon,25830) AS geom     FROM municipality     GROUP BY mun_cod_prov     ) a,     province b WHERE b.mun_cod_prov =cod_prov    Buffer  My third option was to create a buffer surrounding the municipalise and then clip through st_intersects the output geometries to the corresponding province. This worked but got me another unsolved problem in the others borders. I guess I¡ve to clip with the neighbouring communities  So I’m wondering if is there an efficient way to achieve this spatial treatment in PostGIS or if someone treated a similar case Configuration: PostgreSQL 10.7 Postgis 2.4 I read similar posts at  and  but did not find how to adapt either.


Let $p$ be an arbitrary prime number and $G$ be an abelian group, how is $pG$ defined?

Let $p$ be a fixed prime in $\Bbb Z$ and $Ab$ represent the category of abelian groups.  Define a functor $F : Ab \rightarrow Ab$ by $F(G) = G/pG$ and $F(f) = x + pG \rightarrow f(x) + pH$ (where $f:G \rightarrow H$ is a homomorphism)   What does $pG$ mean for an abelian group?  I am familiar with the notation $aG = \{ag : g \in G\}$, but $G$ isn't specified to be an integer group which would be compatible with a prime $p$.


Transparent/See Through Text in Photoshop CS5

I would like take this and add an image such that:  it is only seen behind the white text as if the letters are transparent and the black background also remains, so the image appears behind both, the white text and background and only visible through the text. What is the series of steps to accomplish this if I have the black as a background layer, the "EE"s as a text layer and an image as a separate layer. Or what is the alternative set up, please provide the steps, I am not an advanced user. EDIT: I do have some experience with the selection tool, but I have no idea how to use it in this context.


Let $\{a_n\}$ be a sequence for $n\geq 1$ and let $E$ denote the set of subsequential limits of $\{a_n\}$. Suppose that ${b_n}$ (for $n\geq 1$) is a subsequence in the intersection $E \cap \mathbb{R}$ so that $\lim_{x\to\infty} b_n$ exists in $R = \mathbb{R}\cup \{\pm \infty\}$. Prove that $\lim_{x\to\infty} b_n \in E$. I am quite new to real analysis and have no idea how to go about approaching this problem. Any assistance is appreciated.


I'd like to ask for help getting grub-reboot to work.  The theory: According to  (and other sources) I should be able to choose the kernel for the next reboot, using grub-reboot. However, this does not work for me; grub always boots to the default kernel.  Here's what I tried:  $ grep GRUB_DEFAULT /etc/default/grub GRUB_DEFAULT=saved $ grep "menuentry " /boot/grub/grub.cfg  menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f3a807d1-3fd6-4970-b741-5382e9801060' {     menuentry 'Ubuntu, with Linux 4.4.0-43-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-43-generic-advanced-f3a807d1-3fd6-4970-b741-5382e9801060' {     menuentry 'Ubuntu, with Linux 4.4.0-43-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-43-generic-recovery-f3a807d1-3fd6-4970-b741-5382e9801060' {     menuentry 'Ubuntu, with Linux 4.4.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-36-generic-advanced-f3a807d1-3fd6-4970-b741-5382e9801060' {     menuentry 'Ubuntu, with Linux 4.4.0-36-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-36-generic-recovery-f3a807d1-3fd6-4970-b741-5382e9801060' {  # Version 1, using the name $ sudo grub-reboot "Ubuntu, with Linux 4.4.0-36-generic"  # Version 2, using the id $ sudo grub-reboot gnulinux-4.4.0-36-generic-advanced-f3a807d1-3fd6-4970-b741-5382e9801060  # Version 3, counting $ sudo grub-reboot 3   Neither of these commands seem to have an effect; after reboot, I always end up with the 4.4.0-43 kernel.  Note: This is on Ubuntu 16.04 Xenial. It is a server machine and I don't have access to the console during boot, so I can't look at the grub menu :(


Prove the following trigonometric identity without a calculator involved

I have to prove the following statement.     $$1+\cos{2\pi\over5}+\cos{4\pi\over5}+\cos{6\pi\over5}+\cos{8\pi\over5}=0$$   I have tried to use the sum of angles formula for cosine, but didn't get to a point where I'd be able to show that it is equal to $0$.


I cannot see WiFi option in my Ubuntu 15.04. What should I do? Revert asap  lspci -nnk | grep 0280 -A2 output:-  03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30) Subsystem: Foxconn International, Inc. Device [105b:e09a]   rfkill list output:-  0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: acer-wireless: Wireless LAN Soft blocked: no Hard blocked: no      dmesg | grep ath [    9.545199] ath10k_pci 0000:03:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0 [   10.029684] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2 [   10.029701] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-5.bin failed with error -2 [   10.029704] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-5.bin': -2 [   10.029711] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-4.bin failed with error -2 [   10.029713] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-4.bin': -2 [   10.029719] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-3.bin failed with error -2 [   10.029721] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-3.bin': -2 [   10.029726] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-2.bin failed with error -2 [   10.029728] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-2.bin': -2 [   10.029733] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware.bin failed with error -2 [   10.029735] ath10k_pci 0000:03:00.0: could not fetch firmware (-2) [   10.029737] ath10k_pci 0000:03:00.0: could not fetch firmware files (-2) [   10.029739] ath10k_pci 0000:03:00.0: could not probe fw (-2)


Every time I try to reinstall LAMP I get this error. Please tell me how to fix it:  Errors were encountered while processing:  javascript-common  phpmyadmin E: Sub-process /usr/bin/dpkg returned an error code (1)   The result for sudo dpkg --configure -a:  Setting up phpmyadmin (4:4.5.4.1-2ubuntu1) ... Determining localhost credentials from /etc/mysql/debian.cnf: succeeded. dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf granting access to database phpmyadmin for phpmyadmin@localhost: already exists. creating database phpmyadmin: already exists. populating database via sql...  done. dbconfig-common: flushing administrative password dpkg: error processing package phpmyadmin (--configure):  subprocess installed post-installation script returned error exit status 1 Setting up javascript-common (11) ... dpkg: error processing package javascript-common (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  phpmyadmin  javascript-common   The result for sudo apt-get install -f :  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up javascript-common (11) ... dpkg: error processing package javascript-common (--configure):  subprocess installed post-installation script returned error exit status 1 Setting up phpmyadmin (4:4.5.4.1-2ubuntu1) ... Determining localhost credentials from /etc/mysql/debian.cnf: succeeded. dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf granting access to database phpmyadmin for phpmyadmin@localhost: already exists. creating database phpmyadmin: already exists. populating database via sql...  done. dbconfig-common: flushing administrative password dpkg: error processing package phpmyadmin (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  javascript-common  phpmyadmin E: Sub-process /usr/bin/dpkg returned an error code (1)   And sudo apt-get update gives me:  Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://ppa.launchpad.net/cinelerra-ppa/ppa/ubuntu xenial InRelease Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease Hit:4 http://ppa.launchpad.net/ondrej/php5/ubuntu xenial InRelease Ign:5 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial InRelease Hit:6 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease Ign:7 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial Release Ign:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources Ign:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources Ign:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources Ign:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources Ign:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources Err:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources   404  Not Found Reading package lists... Done W: The repository 'http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/xenial/main/source/Sources  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.


Can I pay two different costs with the same payment?

Say I have a Zombie token, , and  on the battlefield. Can I sacrifice the Zombie token to activate both the Altar's and Seer's abilities?  Similarly, if I have one card in hand, and  and  on the battlefield can I discard the one card to both of their abilities?  If I have a  with 3 charge counters can I activate both of its abilities by tapping it to add a counter, and tapping it to remove 3 counters and destroy a permanent without untapping it in between?


Linux - check if there is an empty line at the end of a file

NOTE: this question used to be worded differently, using “with/out newline” instead of “with/out empty line”  I have two files, one with an empty line and one without:  File: text_without_empty_line  $root@kali:/home#cat text_without_empty_line This is a Testfile This file does not contain an empty line at the end $root@kali:/home#   File: text_with_empty_line  $root@kali:/home#cat text_with_empty_line This is a Testfile This file does contain an empty line at the end  $root@kali:/home#   Is there a command or function to check if a file has an empty line at the end? I already found  solution, but it does not work for me. (EDIT: IGNORE: A solution with preg_match and PHP would be fine as well.)


How to fix a "Failed to fetch binary-armhf/Packages" error during apt-get update?

When I run sudo apt-get update I get the following error:  W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.15 80]  E: Some index files failed to download. They have been ignored, or old ones used instead.   I've tried looking in /etc/apt/sources.list.d/ to see if anything in that directory can be removed but all that is in there is  nodesource.list nodesource.list.save   In my sources.list file I have:  deb http://ports.ubuntu.com/ubuntu-ports/ trusty main deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security main deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security main deb http://archive.ubuntu.com/ubuntu trusty main # deb-src http://archive.ubuntu.com/ubuntu trusty main   Can anyone recommend a way of fixing this error?


Consistency strength of the "club ultrafilter"

What are the consistency strengths of $$ZF+``\text{The club filter on $\omega_1$ is an ultrafilter}"$$ and $$ZF + DC + ``\text{The club filter on $\omega_1$ is an ultrafilter}"?$$  I know that the latter (stronger) statement follows from AD, and has consistency strength much weaker than AD (I think a measurable is enough), but I don't know what the precise strength of either statement is. In particular, I suspect that the latter has strictly greater consistency strength than the former, but I don't know if this is the case.    EDIT: of course, if the club filter is an ultrafilter, then it is countably complete (since it is countably complete as a filter), so $\omega_1$ is measurable; so it may appear that the answer to this question is trivially "a measurable." However, this isn't quite right: it is not obvious (in fact, I suspect it's not true) that $ZF+$"there is a countably complete ultrafilter on some cardinal $\kappa$" and $ZFC+$"there is a countably complete ultrafilter on some cardinal $\kappa$" are equiconsistent.  FURTHER EDIT: As Asaf shows below, the club filter need not be countably closed in $ZF$, even though the intersection of countably many clubs is always club!


Alternating sum of binomial coefficients $\sum(-1)^k{n\choose k}\frac{1}{k+1}$

I would appreciate if somebody could help me with the following problem  Q:Calculate the sum: $$ \sum_{k=1}^n (-1)^k {n\choose k}\frac{1}{k+1} $$


How do I sync contacts between 2 iCloud accounts with iOS 8?

I have one iCloud account, and my wife has another.  I have an iPhone, and so does she.  It's easy to share calendars in iOS 8, and I'd like to do something similar with our contacts.  How can we keep our contacts synchronized between the two accounts/devices?


I am looking for a material which is fully transparent to X-rays.   In addition, it should be solid enough to serve as a substrate on which I will deposit some biomolecules.


How does one increase the height of the rows in a LaTeX table?


Calculation of subgroups of $(Z_{12}, +)$

How calculate all subgroups of $(Z_{12}, +)$?  I know that the order of subgroups divide the order of the group, but there is such a smart way to calculate the subgroups of order 6?


I have a master key for an encrypted partition on a machine that I have SSH + root access to. I don't have access to any of the passphrases associated with the partition. Is there a way that I can verify that the master key is valid for that partition?  I can't unmount the partition as it is the root partition for the machine, so I don't think I can use luksOpen for example.


Using cron to automate backing up server with rsync doesn't work

I have a linux server hosting Minecraft that I can connect to using ssh, I should probably also mention that I do have an ssh key with no passphrase. I want to backup my Minecraft world every hour to my local pc in a backups/minecraft_backups folder I have a bash script in /etc/cron.hourly that looks like this: #!/bin/sh rsync -re ssh --delete root@<server-ip-address>:/root/minecraft/world/* ~/backups/minecraft_backups/$(date "+%B%d-%Y")  The script works perfectly if I run it on its own but, for some reason, the cronjob doesn't work(nothing happens).


Let's look at these two sentences:   People are always looking for a bargain. The people have made their choice.   Here come my questions:   How can I be sure if I should use "the" or not?  Are there any rules to follow to make the choice easier? Is this related to context?


Not sure, if this is the right place for a feature request, but I would love to be able to be notified of any updates to particular questions via email.


How can I upload files asynchronously without jQuery and support IE6-9?

I have a simple form for uploading a file that works well enough synchronously:  <form id="uploadForm" action="/upload" method="post" encType="multipart/form-data">   <input type="file" id="file" name="file" accept=".csv" />   <input type="text" name="comment" />   <button type="submit">Upload</button> </form>   How can I make this form upload the file asynchronously (without reloading the page?), and be notified when the upload is complete, and if there were any errors?  I know that the primary way to make an asynchronous request is to use an XMLHttpRequest, and I see that something like the following is now possible (I have not tested this code):  function handleLoad() {   console.log(this.responseText); } function handleError(error) {   console.error(error.stack); } function handleSubmit(e) {   e.preventDefault();   var form = document.getElementById('uploadForm');   var request = new XMLHttpRequest();   request.addEventListener('load', handleLoad);   request.addEventListener('error', handleError);   request.open("POST", "/upload");   request.send(new FormData(form)); }   However, , sending FormData, Blobs, Files, or ArrayBuffers is only supported in IE10+, and I want a backwards-compatible solution (which doesn't use jQuery).  There are plenty of answers to , but all of the answers I have read so far use jQuery or use the modern XMLHttpRequest method I described above.  I am using React and have no use for anything else jQuery offers, so I would like to keep my page download size smaller by solving this with vanilla JS.


I was wondering if anyone know how many levels your trainer can become in Pokermon Go?


Can I tile over Linoleum felt paper on a concrete slab?

I have a contractor coming in to tile my home.  My floor is a post tension concrete slab, home is only 4 yrs old.  The contractor said they could just tile right over the linoleum, but after reading about the risks online, I decided to rip it up and they said they would just tile right over whatever material is left.  I can easily rip up the top layer of the linoleum, but the felt/paper layer adheres to the concrete 100%.  Should I be spending time/money/energy on getting all the felt paper up as well?  or is the contractor right that there will not be any issue?


Will it be possible to update Windows XP after April 2014?

Sometimes I want to test something on Windows XP for development purposes and I am curious if I will be able to make new fresh XP installation after end of support in April 2014.  OK, no new updates will be published by Microsoft after April 2014. But what happens if I install Windows XP SP3 after April 2014 and then will want to update it to latest existing updates? Will it be possible or not? With Windows Update, or some kind of "rollup" package?  (Many people already asked if they will be able to install the XP after April 2014. But I can't see any questions about updates.)


I tried to install Ubuntu into a computer with a Nvidia 7100 graphics.  The LiveUSB has a perfect resolution and a perfect response by default.  But after the installation, the desktop has a resolution of 800x640. I have to install the nouveau or proprietary driver for fixing that. Both of them have a right response with Unity, but not perfect :(  Why has the LiveUSB a right resolution? Could I reply that resolution after the installation without the nouveau or nvidia driver? Just like the Live Desktop is doing?  Thanks in advance!


When using wish to replicate a spell, what school of magic does it count as?

is a conjuration spell that is able to be used to duplicate lower level spells as follows:     The basic use of this spell is to duplicate any other spell of 8th level or lower. You don't need to meet any requirements in that spell, including costly components. The spell simply takes effect.   When used in this way, does the resulting spell count as a conjuration spell or whatever the school duplicated spell is?    As an example (since there was some confusion): say I used wish to cast  on a creature. After a period of time passes I cast detect magic on the creature. What school of magic do I detect?


Why is it that a stationary bike will fall but a moving one won't?

No matter how much I think about this I can't come up with a reason to me there is no difference In the forces acting against the tilting of the bike in both the cases as mothion is in the perpendicular direction (forward) so why is it that bikers don't fall off?


How can we differentiate between change and progress in the area of history and natural sciences?

I'm studying a branch of philosophy that is concerned with knowledge. I'm studying theory of knowledge(epistemology) and I want to use faith, reason, and memory as tools for carrying this investigation.


PHP Prepared Object Query Not Returning Any Data

I have some PHP code that takes a post request as input to a prepared statement. It is not returning any information. There are no errors.  I have tried hard coding the variables that are passed to the prepared object to no avail.   If I manually query the database with the desired query, output is received.  What am I missing here? What can I do to get output?  Heres my code:  <?php  $username = "user"; $password = "ultrasecurepassword";  try {     $pdo = new PDO('mysql:unix_socket=/run/mysql/mysql.sock;dbname=news', $username, $password);  } catch (PDOException $e) {     print "Error!: " . $e->getMessage() . "<br/>";     die(); }  $query = "SELECT * FROM newsdb ORDER BY pubdate DESC LIMIT 250"; if(!empty($_POST['search'])){     $termobusca = htmlspecialchars($_POST['search']);     $tipobusca = htmlspecialchars($_POST['searchtype']);      if($tipobusca == "title"){         $stmt = $pdo->prepare("SELECT * from newsdb where title like '%:term%' ORDER BY pubdate DESC limit 5000;");     }     else {         $stmt = $pdo->prepare("SELECT * from newsdb where pubdate like '%:term%' ORDER BY pubdate DESC limit 5000;");     }      $stmt->bindParam(1, $termobusca);  } else {     $stmt = $pdo->prepare("SELECT * FROM newsdb ORDER BY pubdate DESC LIMIT 250"); }   $stmt->execute();  while($row = $stmt->fetch()){     print_r($row); }   $pdo = null; ?>


Getting access denied when trying to copy & paste files

I am new to Ubuntu so please forgive my inexperience.  I am running Ubuntu Desktop 16.04.1 and I am set up as an administrator, I am the only user so I believe therefore I should be a root user.  However, when I try to copy a file from the root /var/www/html and paste it in /var/www/ directory, using any file management software (i.e. File manager, Files, Dolphin, etc.), I get the error message: Access denied. Could not write to.  Why can I not write to these directories?    Could this be because I have the automatic login option turned on?


How to run a command line in txt file from Jupyter Notebook (python 3.8) and get output?

I'm using Jupyter Notebook and python 3.8. Depending on other variables, I will generate a txt file with the command that must be entered (literally) on the command line. For example: topup --imain potato.  This command is in the txt file as a line. I want to run this command as if in the cmd. I also want to do all of this from Jupyter Notebook and have some output to know what is going on.  Is it possible?  I also accept other ways to do this (I'm trying to automate an FSL procedure).


When photons are emitted, do they accelerate to reach the speed of light?

Photons are considered mass-less particle with a specific velocity but according to the electromagnetic theory, a photon is considered to have both energy and momentum. So what happen when they are emitted, do they accelerate to reach the speed of light or is it somehow instantaneous?


apoligies for the probably simple question but i'm having some issues formatting my bibliography for my honours project. I'm currently using biblatex with these options:  \usepackage[firstinits=true,backend=bibtex,style=authoryear,natbib=true]{biblatex}   this outputs what I want in the in text referencing (as I am trying to use the "harvard" author-date system).  The issue I am having is that when i print out the bibliography, the following results:     Adaramola, M. and P.-Å. Krogstad (2011). “Experimental investigation of wake effects on wind turbine performance”. In: Renewable Energy 36, pp. 2078 –2086.    and for the life of me i can't seem to find a way to put 'vol.' before the 36 and get rid of the 'In:'  is there an option to do this?  I would probably prefer to leave it as is but the other format is required by my university. Thanks in advance!


I want to run PCA on a set of data, but I'd like to weigh each row of the input matrix(i.e. each data point) based on how recent it is. In other words, in my calculations of the PCs, I'd like more recent data points to be more important. How can I achieve this?


I'm working on simple asp.net mvc website, that shows user's post. I'm saving the post details in the DB including uploaded date.  DateTime dateTimeNow = DateTime.Now; newPost.Feed_Upload_Date = dateTimeNow; DB.Post.Add(newPost); DB.SaveChanges();   Now in my View when I'm showing the date, it shows me something like this  "1/21/2019 4:29:58 PM"   What I want to achieve is to convert this time in my Database into something like "1 day ago". Thanks.


Delete : You can't specify target table 'table_name' for update in FROM clause

I am using following query to delete data which are not in another table.  delete from table_1 where tbl_id in   (select tbl_id from table_1 left join table_2 on table_1.tbl_id=table_2.another_tbl_id where table_2.another_tbl_id is null)   Is there any issue in the above query?  It shows You can't specify target table 'table_1' for update in FROM clause.  How to solve this issue?


Shell script to send an alert mail if disk usage exceeds 90%

I want to implement a script on my server which will automatically send email alerts if the disk usage goes over 90% and second email alert when it goes over 95%. My filesystem is abc:/xyz/abc and the mount point is /pqr.  I have tried this:  ADMIN="someone@def.com"  ALERT=90  df -H | grep -vE 'abc:/xyz/pqr | tmpfs |cdrom' | awk '{ print $5 " " $1 }' | while read output; do    usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 )    partition=$(echo $output | awk '{ print $2 }' )      if [ $usep -ge $ALERT ]; then        mail -s "Alert: Almost out of disk space $usep" $ADMIN      fi    done   But I am getting an error which says  line 7: [: Use: integer expression expected


What causes the 'Connection Refused' message?

This is a  about Connection Refused    We see a lot of questions to the effect      When I try to connect to a system I get a message      Connection refused      Why is this ?


Can I access a Windows 2016 server from a 2012 client through a 2012 server?

We have a bunch of thin clients with Server 2012 CALs. These thin clients mostly run RDP to a Windows 2012 server  We want to put a SQL Server 2016 install on a Windows 2016 server. These are all separately licensed. Programs running on the 2012 server will then access the SQL Server 2016 database running on the Windows 2016 server.  We have been informed that this will cause a licensing issue with Microsoft and that each of the thin clients will need to also have Server 2016 CALs in order to keep Microsoft happy.  This seems plausible but unnecessarily greedy, even for Microsoft. Does anyone have any information that will clarify this issue?


Can you start with Pikachu in Pokemon Go?

I've heard you can start with pikachu in pokemon go instead of the 3 standard starters. How would one do this? Is this even possible?


Five-metre square, five-metres square -- which is correct

The sentence is: Her face was displayed on a five-metre square monitor. I want the area to be five square metres. Which is correct (or are they all wrong):  a five-metre square monitor a five metres square monitor a five-metre squared monitor   I know I could write 'a monitor with an area of five square metres', but people often use one of the above and I would like to know which is correct and why in terms of grammatical rules.


Why does cin need newline to be entered?

In this code:  char ch; while(cin.get(ch)) {     std::cerr<<"got ch:"<<ch<<std::endl; }   Why do I have to hit enter before the "got ch:" is printed on screen ?  Is there a way to have characters echoed right after they are typed ?


How to simulate slow internet connections on the mac

What's a good software solution to slow down internet connections on the mac for testing and simulations?  My primary need is when testing code in the iPhone / iOS simulator, so slowing down the connection for specific applications or processes would be great.


If a space $X$ has no isolated points, then nor does any dense subset of $X$.

$X$ is a topological space with no special properties.  If a space $X$ has no isolated points, then show the same for any dense subset of   $X$.  Thanks a lot.


I am new to the camera game. I have a 2 year old and a 7 month old, and would like to invest in a camera for capturing memories. I would like a camera that:   Can capture fast moving kids Photographs well in low light (our house is very dim) preferably with a tilting 180 screen for taking selfies a viewfinder   My main debate is between a digital compact and a mirrorless. I don't know much about mirrorless cameras, except that they are highly recommended these days. Do I always need to carry around the lenses for a mirrorless? Will it work without the attachable lense? Will it zoom without a lense? How do I know when to change to a different size lense?  Thank you, Samantha


Removing malware injecting into Google Chrome

I had seen this popup across different sites, but I realized my computer was infected once I got hit with it on stackexchange!   I'm using Google Chrome on Mac computer, and I've checked my extensions. Nothing is suspicious about the extensions I have.   How do I find the process running this code injection and remove it from my computer? And what tools are best for the job?    The linked question is how to remove viruses from my PC. The question states that I have a Mac.


IEEE Computer Science conference paper: Author order if equal contribution?

We are four undergraduate students who have equally contributed to the research for a paper, each towards a different module. Will the co-author whose name is mentioned first be considered the one whose contribution was greatest? If we mention our names alphabetically, will all be considered equal contributors? I ask because my name will be last alphabetically. Should we mention, or more specifically, is it allowed in an IEEE conference, that our contribution was equal?


Creating empty copy of active layer in PyQGIS?

I'm trying to create an empty copy of a certain layer, so no objects only tablestructure, crs etc.  from qgis.utils import * layer = qgis.utils.iface.activeLayer() print layer.name()                            provider = layer.dataProvider() print provider.fields()[0].name() writer1 = QgsVectorFileWriter("d:/temp/qgis/test3.shp",                                "CP1250",                                provider.fields(),                                provider.geometryType(),                                provider.crs(),                                "ESRI Shapefile")   When I open the created file (test3) there is no tablestructure, crs. etc.  Running the script the second time with test3 still open, it works.  Obviously I miss something .      An other good working solution I found later:   it loads it into a memory layer.


Is there a way to solve $\int \frac{dx}{\sqrt{ax^2+bx+c}}$ ? i tried a lot of methods such as variable changing and by partition but no one worked. i know the results will be different depends on $\Delta$ but i couldn't figure it how Thanks in advance


How does one create a custom application launcher for Wine installed apps?

I'm able to locate stuff with the dash home then drag it down to the launcher bar on the left of the desktop, but what if the application installed via Wine isn't found via the dash search? I've right clicked on the application in the .wine directory and found no options to create a launcher either.


Is my Turkey e-Visa valid if I have used my single-entry Schengen visa?

I have a single entry Schengen visa (business) valid from 16 Nov - 30 Nov 2018. I am planning to visit Belgium on 16 November and Slovakia on 18 November. Then I plan to visit Turkey on 24-26 November.   I have already obtained a Turkey e-Visa valid from 17 November 2018 to 15 May 2019. Is it possible for me to travel to Turkey with this single-entry e-Visa since I am going to use my single-entry Schengan visa before travel to Turkey?


Incoming dial-up connection compatibility?

I have a windows 10 machine, a windows xp machine and a mac.  All three of them have working dial-up modems.  I set up my windows 10 pc as an incoming dial up connection server, and the xp machine was successfully able to dial into it and connect.  I also set up the xp  machine as a dial in server and the mac was able to dial into it successfully.  My issue here is the mac will not dial into the windows 10 machine successfully... is there some kind of compatibility issue here? I have my doubts that much would have changed between windows 10 and xp for incoming dialup connections right?  In a nutshell, my question is how can I get my mac to successfully connect to my windows 10 pc?  Any answers are much appreciated.


What are the coefficients of the polynomial inductively defined as $f_1=(x-2)^2\,\,\,;\,\,\,f_{n+1}=(f_n-2)^2$?

Let $\{f_n(x)\}_{n\in \Bbb N}$ be a sequence of polynomials defined inductively as   $$\begin{matrix} f_1(x) & = & (x-2)^2 & \\ f_{n+1}(x)& = & (f_n(x)-2)^2, &\text{ for all }n\ge 1.\end{matrix}$$      Let $a_n$ and $b_n$ respectively denote the constant term and the coefficient of $x$ in $f_n(x)$. Then         $(\text A)\,\, a_n=4, b_n=-4^n$   $(\text B)\,\,a_n=4, b_n=-4n^2$   $(\text C)\,\, a_n=4^{(n-1)!}, b_n=-4^n$   $(\text C)\,\, a_n=4^{(n-1)!}, b_n=-4n^2$      Please help me how to solve this problem. I am not able to solve it.  The problem can be found on this .


Apart from the classic logistic or sigmoid function, are there other interesting functions that map real x into a positive space? Maybe they also have an S shape. Maybe inspired by some nature modeling.


Definition Euclidean domain, condition not necessary

According to Wikipedia (), the property $a\mid b\Rightarrow f(a)\leq f(b)$ is not necessary to have an Euclidean domain.   If we have a function $f$ satisfying : for all $a$ and $b$ in $R$ with $b\neq 0$, there are $q$ and $r$ in $R$ such that $a = bq + r$ and either $r = 0$ or $f(r) < f(b)$, then the function $g(x):=\min_{k\in R\setminus\{0\}}f(kx)$ satisfies both properties.  I can prove that $a\mid b\Rightarrow g(a)\leq g(b)$ but how to prove the other property for $g$?  A similar question was asked here  but no proof was given.  Thanks !


Is there a limit on functions in Google Spreadsheets?

As to answer a question on Super User, I was making a sample spreadsheet on Google Docs. I made it first in Excel 2010 on my computer to copy/paste it later on. When I tried to copy a formula that contained the "MATCH" formula, it didn't work (it works in Excel though).  Is Google Spreadsheets limited in formulas or does it work with its own set of formulas and can't I compare it to the Office Excel one?


How do I configure postfix to send me emails when there are updates for the server?

OK, I'm using headless Ubuntu 18.04 LTS on a Dell PowerEdge T710 Server, I have already configured postfix to use my gmail account as a relay, for things like sending emails using php, for things like forum account verification etc etc, now, here's the dilemma, unless I frequently access my server, I have no idea when updates are available, with exception to the livepatch service, is there a way for Ubuntu to send me emails using postfix to notify me when updates are available?  Being that I have auto checking on my email account.


On which topic did Indiana Jones write his doctoral thesis?

Henry Walton Jones Jr. (later known as Indiana Jones and Doctor Jones) received an undergraduate degree in archaeology according to .  But since he is refered to as Dr. Jones he also must have graduated with a PhD later on.   , but is there any information or source about what the specific topic (e.g. title) of his doctoral thesis was?


Multiple entry visa to UK (sponsored visitor)

I'll be going to UK as sponsored visitor - am I allowed to apply for Multiple visa entry to UK?


How to prove $\sqrt[n]{n}$ monotone decreases using inequality? there is a hint but I can't

How to prove $\sqrt[n]{n}>\sqrt[n+1]{n+1}$ ,$n\ge 3$ monotone decreases by using this hint? I can solve it in other ways but I don't know how to solve it using this hint.  hints: Consider the expression $(1+n)^{n}\cdot n^{\frac{n+1}{n}}$ and use am-gm inequality.  note that$3^{\frac{-1}{3}}+\frac{1}{4}<1$


Is there any electromagnetic radiation associated with the electrons moving in the conductor?

Is there any electromagnetic radiation associated with the electrons moving in the conductor (eg copper wire) if the current is constant (DC)?  From what I know, electrons don't move with steady speed but they "leap" from one position to the next and since the "leaping" involves acceleration and deceleration some kind of electromagnetic radiation should arise - true?


What is the Potential difference in $C_1$?

I can not seem to figure this out. My try so far:    put C2 and C4 as C' by parallel put C' and C1 as C'' by series Finally, Put C'' and C3 and C5 as Ct by series find Qt by Qt=Ct*V   after finding the total Charge, i tried calculating backward toward V1 but could not manage to get the right answer. I found V1=99V which is wrong. P.S. The correct answer is 0.   Also i couldn't understand how a capacitor with 0 potential difference like.


What happens if Combat Celebrant is killed during combat?

What happens if  attacks and is killed by blockers? Would the second combat phase still happen?


Missing last word of string when I split the sentence into word

I am missing the last word of string. this is code I used to store word into array. string arr[10]; int Add_Count = 0; string sentence = "I am unable to store last word" string Words = ""; for (int i = 0; i < sentence.length(); i++) {     if (Sentence[i] == ' ')     {         arr[Add_Count] = Words;         Words = "";         Add_Count++;     }     else if (isalpha(Sentence[i]))     {         Words = Words + sentence[i];     } }  Let's print the arr: for(int i =0; i<10; i++) {   cout << arr[i] << endl; }


How to change the (horizontal) distance between "Proof" and the first enumeration symbol?

The following code  \documentclass{scrbook} \usepackage{amsthm} \newtheorem{theo}{Theorem}  \begin{document} \begin{theo}     Rhabarber Rhabarber Rhabarber Rhabarber     \begin{enumerate}         \item Rhabarber Rhabarber         \item Rhabarber Rhabarber     \end{enumerate} \end{theo}  \begin{proof}     \begin{enumerate}         \item Rhabarber Rhabarber         \item Rhabarber Rhabarber     \end{enumerate} \end{proof} \end{document}   produces    The distance between "Proof." and "1. Rharbarber..." (marked with a red rectangle) is too great for my liking. How can I shorten it?


FFmpeg get duration of video file without meta data

I got a video file which has no meta data.  If I do this for example:  ffmpeg -i test.m2v   I get these values:  Duration: N/A, bitrate: N/A   Is there still a way to get the duration of the video / .m2v file ?  Edit:  The full console output:  ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers   built with gcc 5.2.0 (GCC)   configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfr eetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enab le-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib   libavutil      54. 31.100 / 54. 31.100   libavcodec     56. 60.100 / 56. 60.100   libavformat    56. 40.101 / 56. 40.101   libavdevice    56.  4.100 / 56.  4.100   libavfilter     5. 40.101 /  5. 40.101   libswscale      3.  1.101 /  3.  1.101   libswresample   1.  2.101 /  1.  2.101   libpostproc    53.  3.100 / 53.  3.100 Input #0, mpegvideo, from '.\Test.m2v':   Duration: N/A, bitrate: N/A     Stream #0:0: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 7000 kb/s, 25 fps, 25 tbr, 1200k tbn, 50 tbc


If $(a,b) = 1$, then $(n, ab) = 1 \iff (n,a) = 1 = (n,b)$. How to prove it?

I'm having some trouble proving the question above, most because i'm getting a proof that works even if $(a,b) \neq 1$ and i just can't find my mistake.  Proof: if $(n, ab) = 1$, $\exists x$, $y \in \mathbb{Z}$ such that $x\cdot n + y\cdot ab = 1$, but this means that $x\cdot n + ya \cdot b = 1$ and $x\cdot n + yb\cdot a = 1$ and so $(n,a) = 1$ and $(n,b) = 1$. Now, if $(n,a) = 1 = (n,b)$, $\exists x'$, $x''$, $y'$, $y'' \in \mathbb{Z}$ such that $x'\cdot n + y'\cdot a = 1$ and $x''\cdot n + y''\cdot b = 1 \Rightarrow x'\cdot x''\cdot n^2 + x'\cdot y''\cdot n\cdot b + x''\cdot y'\cdot n\cdot a + y'\cdot y''\cdot a\cdot b = 1 \Rightarrow n\cdot (x'x''n + x'y''b + x''y'a) + y'y''\cdot ab = 1 \Rightarrow (n,ab) = 1$  Note that i did not request that (a,b) = 1 at any time.


Google Chrome Address Bar Font has gone too large, how can we reduce it

Running Unity on my desktop (2*20" LCD displays), I initiated a standard daily update on my Ubuntu 14.04 LTS today and Google Chrome updated itself to Version 35.0.1916.114.  The URL address bar input now shows IMO a too larger font size which then proceeds to auto show in green. I prefer the smaller font size and have no need for 'gooey slime green' auto complete font colours. Any advice on how to revert back to smaller, generic Address font styling.  I use both FF and Chrome for numerous tasks, Chrome being my primary browser and I've checked my system Unity 'default' theme (Ambiance! LOL.. yes I'm tired of that also).  Thanks for sharing.


CLI equivalent to Network Settings "Network Proxy" manual options?

My company uses a proxy configuration to access internal resources, and I'm the only dev using Ubuntu (20.04) so I've been rolling my own equivalent to their Mac script. I can get everything working using the Network system settings panel but clicking on "Network Proxy" and setting the "manual" configuration, but I want to set these settings via the CLI from a script. I've been searching for a while today but can't find anything that seems to explain how to set a system level proxy setting; so I turn to y'all.  Is there a CLI equivalent to the "Network Proxy" settings in the System > Network settings screen?  I specifically need to set SOCKS host & port, and ensure a list of Ignore Hosts is respected.  Any guidance greatly appreciated!


Uninstalled and deleted Python3.5 from Ubuntu 16.04, now after login keyboard is not working, mouse is red cross, terminal is also not available

I am new to using Ubuntu. Due to some reason I uninstalled and deleted Python3.5, from Ubuntu16.04 but now I am facing huge issues. When I log in into account, mouse is shown as “red plus”, keyboard is not working, I am not able to open terminal as well. I am using it on Nvidia Jetson TX2 device (Development Kit). Is anyone aware what the issue could be and how it could be resolved? Thank You.


i was coding a program for school in Java with Eclipse and i got a problem with the output, the code is the following:   public class Main {     public static boolean[] cercaK(int k , String[] a){         boolean b[] = new boolean[a.length];         int conta = 0;         for(int i = 0; i < a.length; i++){             b[i] = false;             int j = 0;             while(j < a[i].length()-1 && !b[i]){                     if(a[i].charAt(j)==a[i].charAt(j+1))                         conta++;                     else                         conta = 0;                     if (conta == k)                         b[i] = true;                     j++;             }         }         return b;     }     public static void main(String[] args) {         String[] a = {"accesso","bbtcrryy","ggg"};         int k = 2;         if (k<=0)             System.out.println("Errore!");          boolean[] b = cercaK(k,a);          for(int i = 0; i < b.length; i++)             System.out.print(b);     } }   And the output is really strange:  [Z@106d69c[Z@106d69c[Z@106d69c   I can't understand from where these strings come from. Can anyone please help me? Thanks!  EDIT: I found the error,  for(int i = 0; i < b.length; i++)             System.out.print(b[i]);


What is the type of car that Mr. Weasley used to have?

So Ron Weasley crashed a car in the Chamber of Secrets.  Do we know what type of car it is? If not book canon, what about movie canon?


Right of Appeal for UK Visit Visa Refused

I, together with my filipina friend made the above Application for UK Visit Visa which was refused on grounds which in my opinion are both groundless and incorrect.   Decision maker refused under Appendix V 4.2 (a) and (c), because she was a non-return/flight risk because she doesn't show sufficient ties to her home.     Apart from coming from a good home and family with whom she resides, she clearly showed in her passport many previous overseas visits for holidays and recreation purposes, including several to Australia.   My Invitation Letter undertakes that my guest would return on time and comply with all the conditions pertaining; including those of Part 1 para 35 of the Rules., that she and I would obey all laws, rules and regulations.   The decision maker also refused under Appendix V4.2 (e) stating he was not satisfied my guest had sufficient funds, referring to her bank statement, provided only for completeness against the list of required documents.    In fact the application was based upon my Invitation Letter states clearly I am paying for everything, and my own bank statements showing substantial income and bank balances.  Decision maker disregarded this. So Citing V4.2 (e) is inaccurate since the appropriate clause is V4.3 wherein we have already undertaken full compliance.   Do we really have no way of referring this back to UK Visa as stated on the Refusal Notice?


How exactly do vote reversals interact with reputation calculation with respect to the daily rep cap?

This  to  details (emphasis mine):      the script that awards the badge doesn't even look at   downvotes, [...] It only adds up the total   reputation you gained [..] to see if that amount is >= 200. It's even possible for a day to   count if you received a series of downvotes early on but still   accumulated 200 reputation after that and never even hit the   reputation cap. As long as you earned 200 that day.   How does that interact with the reversal from a Voting-correction?  This happened to me on . The  states:     Such votes will generally be invalidated as part of an automated   process that runs every day   It seems like this is different from the negative reputation that, technically, has no bearing on badge process. Invalidation seems to imply that the event, and thus it counting in regards to reputation gain is reversed.  So, how exactly do vote reversals interact with reputation calculation with respect to the daily reputation cap?


Underfull vboxes troubleshooting with here figures

How can I avoid vertical underfull boxes in a document which contains a lot of Here figures? My document is pretty big and I ask about general guidelines, so I did not provide a MWE.  I thought setting the spacings after and before the figures/captions etc. to be a multiple of \baselineskip should work.  By the same token setting figure height to be a multiple of \baselineskip should also help with this case. Do you agree with this?   I cannot change the float placement specifier [H] since the figures/tables must be before the text which refers to them.


Installing Deepin Desktop Environment on Ubuntu 19.10

I tried to install the Deepin Desktop Environment by following the instructions given in several websites, but when I started adding the PPA by executing the command:  sudo add-apt-repository ppa:leaeasy/dde   I got these messages:  Ign:5 http://ppa.launchpad.net/leaeasy/dde/ubuntu eoan InRelease                                      Err:8 http://ppa.launchpad.net/leaeasy/dde/ubuntu eoan Release 404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done          E: The repository 'http://ppa.launchpad.net/leaeasy/dde/ubuntu eoan Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   Are there any other repositories for installing the Deepin Desktop Environment on Ubuntu?


Install different rom on Chinese made android phone

Recently I bought a Chinese made android phone. Specifications of the phone is given . The phone has mediatek mtk6577 processor. I been thinking to install different ROM in my device. But, I can not find source to download this ROM. Is it possible to install google stock rom in this phone and where can I find this rom? How do I know which rom is compatible with my device?  Any kind of help is appreciated. Thanks.


Why do people finish speaking by saying "so"?

I often experience people who when they get to the end of what they were saying, they finish their sentence with the word "so" as if they are going to say something else, but they don't.  Example: "I asked him if he would fix my computer, but he said he didn't have time, so..."  I ran an "experiment" on a friend who does this all the time, and after he finished his sentence with "so," I didn't say anything. He acted as if he was done speaking, even though I waited for him to continue. I finally said, "So...what?" He said he had nothing else to say.  I thought to post this question here when I noticed the man in this video also finish his sentence with "so" but not have anything else to say:   (start at 1:10)  Why do people finish speaking by saying "so" when they have nothing else to say?


Is my two-way switch installation easily fixable?

I'm trying to fix an uncompleted installation of a two-way switch.  One switch, the light and all the wiring have been installed by someone else, with whom we can't have any contact soon.  I bought the second switch and tried to install it. I blindly tried different combinations and had those results:   With some wire combinations, it didn't work at all. With some others, it worked 3/4 times, but in some positions, one switch didn't work until I reached the other one. When bridging all wires of the second switch together, the first switch controlled the lamp (ON/OFF) -- but I now doubt it, maybe some of them wasn't wired correctly?   In no case was it working fully as expected, but I didn't try all combinations.  I have a basic understanding of the way it should work when everything is wired correctly.  I tried to systematically understand the consequences of inverting wires in all combinations, and came to the conclusion that it should either   work as expected work 3/4 times everything is shortcut and the light is always on   So, if I understand correctly, the wiring is wrong. The colors seem random and non-standard, so I can't rely on that.  Is this correct? Is this something I can easily fix?  UPDATE: each switch is connected to 3 wires coming out of the wall.  UPDATE 2: I'm living in Belgium, but the colors of the wires in my walls don't seem to be the national, or even less the European ones ;-)


Does reputation affect what entries I can see in the review queue's history?

When I look at the  (as an example) on a beta site where I have a fair amount of reputation, I see my reviews and those of others.     However, if I look at  where I have less reputation (academia.SE), I only see my reviews.     I also see this on  (travel.SE).    and on .    Is there a reputation threshold for seeing reviews by other users in the history tab, or is there another feature/nuance at work that I'm unaware of? If so, where is this defined on the privileges page?


Not able to block some websites using /etc/hosts

I want to block social media websites on my computer so that I can avoid distractions and work in peace. One solution I came across was to modify the /etc/hosts file to point to localhost, so I tried this:  127.0.0.1   localhost 127.0.1.1   typhus 127.0.0.1   facebook.com 127.0.0.1   linkedin.com 127.0.0.1   youtube.com 127.0.0.1   twitter.com 127.0.0.1   pinterest.com 127.0.0.1   intstagram.com   Interestingly, while it blocks Twitter and Pinterest, the rest of the websites are accessible in my browser even though their ping points to 127.0.0.1.  What am I doing wrong?


Filling column with consecutive numbers in QGIS?

I make a new column in my attribute table and it has a default value (for example 0). I want to (probably using the field calculator) have the result that row 1 has the value 1, row 2=2 and so on, just like a numbered index.  I'd be thankful for a code example for the field calculator (including the use of $rownum (I think I need this for switching to the line)).


Shimano EX Crankset Pedals Compatibility

I recently bought an old Shimano EX crankset, which I'd like to mount new clip-on pedals to (Shimano Dura-Ace PD-R9100). Does anyone have any experience with using new clip-on pedals on vintage cranks? Thank you, Fynn


Why do the dwarves and elves hate each other?

In nearly every single medieval story Elves and Dwarves hate each other, or at least are very unfriendly towards each other. As I have read, watched and played many a lore of the medieval genre it just seems natural that Elves and Dwarves have a mistrust, at least, between them. (LOTR, Eragon, ect..)  I was just curious if there was a first lore that had created this or if there was some reason that it is? Or is it truly that Tolkien made it so for his lore in Lord of the Rings and due to it being one of the first and greatest, everyone else just followed suit?  (I do recognize that there is a question out there about this, but in it it is asking specifically about LOTR, I'm asking about outside of it and as the medieval genre in general.  ()


Is using a variable in a PDO query wrong?

for some reason my PDO prepared statement wasn't working on a particular part of a query but working else where in the same query. Whether I tried ? or :name to substitute the query information, it wasn't working. Maybe there is a bug...?  Anyway, to get my query to work I have changed my query to   $sql = 'select ifnull('.$var.',0) from table';   instead of   $sql = 'select ifnull(?,0) from table';   or  $sql = 'select ifnull(:name,0) from table';   So I have concatenated the variable in the middle.  My code is now working and I'm happy to continue with it this way because the variable is only defined by me, not user input defined so no worry of sql injection.   I am just wondering if anyone else is having to do this?  Or if anyone can suggest why it wasn't working right before?  Or even if there some obvious problem with this?


.on("click") only works on non-appended elements

"Home" triggers the function but "Dynamic Link" doesn't.

                  Home

      it seems to write the same markup, but the .click() doesn't work for the appended item.  No idea why.  Help?


Can we re-enter the US after leaving on the Visa Waiver Programme

Next year we plan on flying to Florida, spend a few days there and then fly to South America and spend five nights there, then fly back to Florida and spend a week there and fly back home (We are British citizens). We were planning on using an ESTA to enter but we have a question:  Will we need to apply for two ESTA, for both entries to the US or can we use the same one and leave and comeback?


How to create local task links for referenced entities on a node?

I have a content type, which has three reference fields to three different content types. I want to create secondary task links to those referenced entities.   Let's say that I have a Product content type which reference fields to Manufacturer, Distributor and Technical Details content types.  If you visit a content of type Product, I want to show three secondary tabs to Manufacturer, Distributor and Technical Details contents which are referenced from that specific node (Product).  Fore example, we have a product with following fields:  Product X (node/1):   Manufacturer A (reference to node id: 2) Distributor B (reference to node id: 3) Technical Details X (reference to node id: 4)   If I visit Product X (node/1), I want to get three tabs to node/2, node/3, and node/4.   How can I achieve this?


I was born in 1980.   What part of speech is "born"? verb? past participle?   It can be a past participle as in " I was seen ."  It can be verb as in " It was pulled by a car ."


Cannot set up multiple desktops (workspaces)

How can I set up multiple desktops (i.e. workspaces) in the new Ubuntu 18.04? I cannot find the "appearances" control that used to be in older versions.


What is the grandchild of a parents's siblings called?

I know that my parents' siblings' child is my cousin. But what about the grandchild of my parents' siblings?


How to prove Lucas's Converse of Fermat's Little Theorem without using primitive root?

Problem:   If $x^{n-1} \equiv 1 \pmod{n}$, and for all divisors $q$ of $n - 1$, $a^{q} \not\equiv 1 \pmod{n}$, then $n$ is prime. $(n > 1)$   I read the proof in the book and it was very straightforward; however, I wonder is there a way to prove it by just using congruence property?    And another related question about power residue: If we have $a^{n - 1} \equiv 1 \pmod{n}$. Is there any relation between $n - 1$ and $\phi(n)$?  Because I thought of $a^{\phi(n)} \equiv 1 \pmod{n}$, when $(a, n) = 1$. I try to think of away to connect these two ideas, but I still cannot see it. Any idea?    Thanks,


What is the difference between CPU and Core temperatures?

While trying to figure out why the performance of my machine has suddenly severely degraded, I noticed that although CPU temperature is being reported as 45C while idle, the temperatures of all 6 Cores is being reported as 75-80C.  I suspect these readings are correct, as my i7-3930K (3201 Mhz) is being throttled to 1600-1200 Mhz. I've also tried reconnecting everything, and continue to receive the same readings from the sensors.  What is the difference between the CPU and Core temperatures?


Padding at the top of a table cell in LaTeX

I have a simple LaTeX tabular table:  \begin{tabular}{|l|l|l|}   \hline   A  & B  & C \\   \hline   A1 & B1 & C1 \\   \hline   A2 & B2 & C2 \\   \hline \end{tabular}     Now the padding at the top of the cells is much smaller than the padding at the bottom, I guess because space for descenders is reserved. It makes the text look unaligned. How do I add some padding at the top of the table cells? I tried \arraystretch but it also adds padding at the bottom.


What basic example I can give for inner join and outer join in SQL?

Please help me to understand and best example for my question.  I can not understand how to create the object and use them.  thank you


Declare variable to hold job name and if job running kill it

I’m looking for a single file that does these things in order.   Declare a variable to hold a job name  Run a query to check whether that job declared is currently running Set up an if loop If the job is running, execute the stored procedure that kills it.   My question is to write a query that declare a variable to hold a job name and gives us result the job is still running or not if the job is running execute the stored proc to kill it.  My manager was asking me to listing running jobs and suspended jobs and declare a variable to hold job name and setup an IF loop like if job is running run proc to kill it.


How to route between 2 connections (different network) in 1 PC (wired & wireless card)?

I have a problem to make a routing table for my PC.  I have 1 pc running on Ubuntu, and i have 2 connection card (eth0 & wlan0). eth0 IP : 192.168.1.1/24 wlan0 IP: 10.10.10.1/24 with dhcp-server installed  client with IP: 10.10.10.2 connected to my router wlan0 but not connected to my eth0 network.  How to solve this problem? thanks


Launching a cmd window with commands using python script?

How do I launch a cmd window and input the commands i specify into the cmd for windows using a python script?   For example , the script will launch the cmd and input the following : runas /username:Admin control  Then cmd will then prompt the user for their passwords and open the control panel. Any idea? Thanks


Why a variable can't start with a number but can ends with it?

In many languages (C#, Javascript, CSS, and so on) I can't declare this variable:  123test   but I can declare this:  test123   What's the real cause of it?


How to get BIVS endorsement on an Irish visa?

I am planning a trip to Ireland to meet my friend (who is pursuing her master's there) and also travel to the UK with her. I want to apply for an Irish short-stay visa, which will be valid for travel onwards to the UK using the BIVS. But I do not understand how to get BIVS endorsement.  I have selected Short Stay (C) multiple-visit visa type with reason for travel as Visit Family/Friend. How to get BIVS? I hold an Indian passport.


I`m very newbie in physics and want to study on amateur level.  I`m interested in Quantum Physics, can anybody advice some books?


Cannot boot from USB or hard drive - now solved

Another complete rewrite because - as of a few minutes ago my machine is now fixed. :). Once I could boot using liveUSB it was fairly straightforward. I used gparted to look for vfat partition - it was there. I mounted it and looked in directory /EFI/BOOT. mmx64.efi wasn't there but was found in /EFI/ubuntu. Copied it from there to /EFI/BOOT, unmounted the partition, restarted PC. There was a brief appearance of a window headed 'SHIM UEFI key management' but before I could read what it said, it disappeared and the usual purple login screen appeared. Logged in and everything works. Did a software update and rebooted, now totally normal, no re-appearance of the SHIM UEFI screen.  A huge thank you to all the patient folks who helped. Once I discovered F12 the 'duplicate solution' had most of the info required and a bit of background reading did the rest.  I'd be happy to write up a step by step guide pulling together all the things that I learnt from you all if there is somewhere to put it and it would be useful to other non-experts like me?  Many thanks to everyone and my apologies that I was unclear and grumpy.


Frigidaire Electric Range trips arc-fault circuit breaker in another room

I have a problem that occurs intermittently in several different apartment units.  Kitchen has Frigidaire Electric Range.  Living room (LR) and bedroom (BR) have 15 Amp AFCI circuit breakers that control ceiling lights in the kitchen and LR & outlets in LR.    At times when one or more burners are in use on the range, the AFCI that controls Ceiling Lights in LR & Kitchen and outlets in LR will trip.  I am changing out the 15 Amp AFCI because I don't see anything wrong.  It doesn't do it all the time and it has done it in at least 5 different apartments.    All apartments are wired the same & all have the same range.  What the heck is causing this?


If $f:R\to R$ is bounded on bounded intervals, and $\lim f(x+1) - f(x) = L$ for $x\to +\infty$ then $\lim f(x)/x = L$ when $x\to +\infty$

If $f:R\to R$ is bounded on bounded intervals, and $\lim f(x+1) - f(x) = L$ when $x\to +\infty$ then $\lim f(x)/x = L$ when $x\to +\infty$   I found answers here at the site when $f$ is differentiable, but I just don't know what to use in this case, where we don't have differentiability (at least not explicitly stated). Any help would be appreciated.


I have an eventListener that won't allow me to pass parameters through it. I want to pass parameters through the addTextBox function. I tried passing it using the bind function and that does not working either. The code is below: var jobSelect = document.getElementById("ctl01_TemplateBody_WebPartManager1_gwpciMyAccount_ciMyAccount_Affiliate_panelEditor_Demographics___JOB_TITLE");     var jobBox = document.getElementById("ctl01_TemplateBody_WebPartManager1_gwpciMyAccount_ciMyAccount_Affiliate_panelEditor_Demographics___OTHER_JOB_TITLE");     var jobLabel = jobBox.parentElement.previousSibling;      jobSelect.addEventListener("change", addTextBox.bind(jobSelect,jobBox,jobLabel), false);      function hideTextBox(){         if(jobSelect)         {             if(jobSelect.value != "ZZ"){                 jobBox.style.visibility = "hidden";                 jobLabel.style.visibility = "hidden";                 jobBox.style.position = "absolute";                 jobLabel.style.position = "absolute";             }         }     }      function addTextBox(x,y,z){         if(x){             if(this.value == "ZZ"){                 y.style.visibility = "visible";                 z.style.visibility = "visible";                 y.style.position = "";                 z.style.position = "";             }             else{                 hideTextBox();             }         }     }                  hideTextBox();


Making Foreign Language Characters AJAX Safe

$sampleText = "Episode 8 - Dansk dokumentarserie. Jørgen og John drar ut for å";   I need to convert it to json and encode it in a way to make it AJAX safe.  I tried following encoding :  //$name = htmlentities(utf8_encode($sampleText), ENT_QUOTES); //$name = htmlentities($sampleText, ENT_COMPAT, 'UTF-8'); //$name = htmlentities(utf8_encode($sampleText), ENT_COMPAT);   Sometimes it works but in some cases I get \. which makes json invalid.  Example : Gäster är kulturminster Alice \. Bah Kuhnke och komikern William Spetz.Kategori: TalkShow \..  Invalid JSON due to string \. :  [{"name" : "Humortalkshow."},   {"name" : "Temat 2013 var \."},   {"name" : "Talkshow \."}]   Could you please help me encode the foreign characters in a proper way.


Is MSG necessary or what to replace it with?

I have always heard that you should stay away MSG. For example when buying bouillon crystals we should always make sure that it doesn't contain MSG. Yet I came across  for spinach soup that calls for 1/2 teaspoon of MSG. This got me wondering are there any pros to MSG. Should we stay away from it or should we incorporate it into our diet and if so should we limit how much we ingest? If it is 'bad' then is there something I can replace it with when a recipe calls for it?


I want to establish connexion QGIS and PostGIS in order to run the pgRouting Layer, how can I do it?


Notify me when a bounty is placed on one of my questions

Placing a bounty on a question changes its last activity timestamp and bumps it to the front page, the same as posting a new answer or editing the question or one of its answers.  It would be nice to be notified when someone else is assigning a bounty on one of your own questions - it might be just a notification in the brand new notification tab of the  StackExchange™ MultiCollider SuperDropdown™ instead of a full inbox message.


Bluetooth worked once with MT7630E on Ubuntu 17.10

I'm using Ubuntu without trying to make the Bluetooth work (because I don't really need it) for more than a year, and I'm aware it doesn't work because my wireless adapter isn't originally compatible with Linux. So on every kernel upgrade I reinstall the MT7630E driver which comes from  in order to use the Wi-Fi, but I stopped worrying about making the Bluetooth work as well...  Until on a reboot the Bluetooth started to work (I found out because I had a the tray icon which is usually not there), and I thought that was a good thing up to when I plugged of the Ethernet cable and noticed the Wi-Fi didn't work (i.e. no option to turn it on, like when I have to reinstall the driver). So I just rebooted, because I have more use of Wi-Fi than Bluetooth, and all was back as usual (Wi-Fi, no Bluetooth).  As I said I don't really mind that the Bluetooth works or not (better if it does though), but why would it work once and not the rest of the time ?    The only "special" actions prior to this event, that I can think of, are :   I installed grub-customizer (which I no longer had since a fresh install a month ago) ; I rebooted under Windows 10, which I don't use often (so this is why I hadn't installed grub-customizer yet) ; Did what I had to do on Windows (maybe some upgrades as well) I rebooted back to Ubuntu (I always reboot and don't shut down to ensure there is not hardware conflict - due to hibernation or I don't know what - when I switch between OSs).   And then was the Bluetooth working.


Please, could you help me to figure out my problem. I'm trying to return changed object via function parameter but it does not work for me as I expect. I'm using Node.js version 13.8.0 under Windows 10 Professional Edition.  Below is a code snippet that I'm struggling with:  function a(x) {     var r = { v1: 0.0, v2: 0.0};     r.v1 = 2.0 * x;     r.v2 = x * x;     return r; }  function b(x, r) {     r = a(x); }  var rr = { v1: 100.0, v2: 1000.0 }; b(5.0, rr);  console.log(rr);   At the end I expect that console.log(rr) will print out "{ v1: 10.0, v2: 25.0 }" but instead I have the "{ v1: 100.0, v2: 1000.0 }".  ESLint shows one error that does not seems to me important.  What I'm doing wrong?


How can I have the following table side by side in the page?

I have two tables like this :   \begin{figure}[t1] \begin{tabular}{ll} \hline \multicolumn{1}{|c|}{\textbf 1 dataset} & \multicolumn{1}{c|}{\textbf Values}\\ \hline \hline \multicolumn{1}{|c|}{\textbf CellId} & \multicolumn{1}{c|}{\textbf 1}  \\ \multicolumn{1}{|c|}{\textbf Timestamp} & \multicolumn{1}{c|}{\textbf 1383260400} \\ \multicolumn{1}{|c|}{\textbf cc} & \multicolumn{1}{c|}{\textbf 39}  \\ \multicolumn{1}{|c|}{\textbf In1} & \multicolumn{1}{c|}{\textbf 0.1467} \\ \multicolumn{1}{|c|}{\textbf Out1} & \multicolumn{1}{c|}{\textbf 0.1523}\\ \multicolumn{1}{|c|}{\textbf In2} & \multicolumn{1}{c|}{\textbf 0.1672}\\ \multicolumn{1}{|c|}{\textbf Out2} & \multicolumn{1}{c|}{\textbf 0.0512}\\ \multicolumn{1}{|c|}{\textbf Internet} & \multicolumn{1}{c|}{\textbf 11.3291}\\ \hline \end{tabular} \caption{{\bf (a)} 1 Data activity also called SMS-call dataset}  \label{data-table a)} \end{figure}  \begin{figure}[t2] \begin{tabular}{ll} \hline \multicolumn{1}{|c|}{\textbf 2 dataset} & \multicolumn{1}{c|}{\textbf Values}\\ \hline \hline \multicolumn{1}{|c|}{\textbf UId} & \multicolumn{1}{c|}{\textbf 38859420} \\  \multicolumn{1}{|c|}{\textbf TId} & \multicolumn{1}{c|}{\textbf 12319812398} \\ \multicolumn{1}{|c|}{\textbf TTweet} & \multicolumn{1}{c|}{\textbf Hi I'm in Milan} \\ \multicolumn{1}{|c|}{\textbf Lang} & \multicolumn{1}{c|}{\textbf en} \\  \multicolumn{1}{|c|}{\textbf Date} & \multicolumn{1}{c|}{\textbf 2013-11-08T16:22:34+00:00} \\ \multicolumn{1}{|c|}{\textbf Timestamp} & \multicolumn{1}{c|}{\textbf  1383924154} \\ \multicolumn{1}{|c|}{\textbf Location} & \multicolumn{1}{c|}{\textbf Milan} \\ \multicolumn{1}{|c|}{\textbf Coordinates} & \multicolumn{1}{c|}{\textbf (45.46282657, 9.12790569)} \\  \hline \end{tabular} \caption{ {\bf (b)} 2 Dataset} \label{data-table} \end{figure}   How can I align those table in Latex in order to have them side by side in the page instead of havin them one above the other in the page ?


A question about using Taylor's theorem to get a inequality.

$f$ is a real function on $[a,b]$ having $f^{(n-1)}$ continuous derivative on $[a,b]$, and $f^{(n)}(t)$ exists for every $t\in (a,b)$ , then $\exists x$ between $\alpha$ and $\beta$ such that $f(\beta)=P(\beta)+\frac{f^{(n)}(x)}{n!}(\beta-\alpha)^n$  How to use the Taylor theorem to get: $$ \left| f(b) - \sum_{j=0}^{n-1} \frac{f^{(j)}(a)}{j!} (b-a)^j \right| \leq \frac{\left| f^{(n)}(x) \right| }{n!} (b-a)^n. \tag{1}$$ Does it merely choose $\sup_{a<x<b} |f^{(n)}(x)|$?, but I wondering that $(a,b)$ is not compact and $x$ may not in $(a,b)$.


Can't get Java to assign a value to a variable using if statement

This code is supposed to get a letter input from the user and then assign a value to the letter based on how many points it's worth. This is my first part working in Java, and for some reason I can't get the if statement to assign the variable anything.  import java.util.Scanner;  public class LetterValues {  public static void main(String args[]){      Scanner scanner = new Scanner(System.in);     String letterInput1, letterInput2, letterInput3, letterInput4;     int firstLetter = 0, secondLetter = 0, thirdLetter = 0, fourthLetter = 0;      // Asks for first input letter     System.out.print("What is your first letter?  ");      // Reads the first input letter     letterInput1 = scanner.next();      // Converts the first letter to upper case, prints out to check     System.out.println(letterInput1.toUpperCase());      // Prints out first letter to check     System.out.println(letterInput1);      // Assigns a value to the firstLetter int based on the value of letterInput1     if ( (letterInput1 == "A") || (letterInput1 == "E") )     {         firstLetter = 1;     }     else if ( (letterInput1 == "D") || (letterInput1 == "R") )     {         firstLetter = 2;     }     else if ( (letterInput1 == "B") || (letterInput1 == "M") )     {         firstLetter = 3;     }     else if ( (letterInput1 == "V") || (letterInput1 == "Y") )     {         firstLetter = 4;     }     else if ( (letterInput1 == "J") || (letterInput1 == "X") )     {         firstLetter = 8;     }     else     {         System.out.println("Error.");     }      System.out.println(firstLetter);     } }   The result is:      What is your first letter?  A //<--input     A     A     Error.     0     What is your second letter?


I have a Macbook Pro Retina, running OS X 10.10.5, and a BenQ GW Series GW2765HT monitor, which does not allow audio adjustment via my computer. I've tried Soundflower, but find that it is buggy and crashes. Is there any other way to control volume from my computer?


A group of N children, who are numbered 1, 2, . . . , N, want to play hide and seek. In a single round of hide and seek, there will one seeker, and N −1 hiders. Children like to hide and not seek and each child has her own idea of how many times she would like to hide. You will be given for each child i, a number H[i] denoting the number of rounds she would like to be a hider. She will be satisfied only if she gets to be a hider in at least H[i] rounds.  For example, suppose N = 4, and H[1] = 1, H[2] = 3, H[3] = 2 and H[4] = 1. Here is one way to satisfy them all. In Round 1, Child 1 is the seeker, and in Rounds 2 and 3, Child 4 is the seeker. Then Child 1 has been a hider in 2 Rounds, Child 2 has been a hider in 3 Rounds, Child 3 has been a hider in 3 Rounds, and Child 4 has been a hider in 1 Round. Thus, they are all satisfied. You can check it is not possible to satisfy all of them in fewer than 3 Rounds.  You aim is to determine the least number of rounds that needs to be played so that every child is satisfied. For the example in the previous paragraph, the answer is 3.     Determine the minimum number of rounds needed in the following cases:   **(a) N = 7, H[1] = 6, H[2] = 13, H[3] = 9, H[4] = 5, H[5] = 15, H[6] = 8, H[7] = 9.      (b) N = 12 H[1] = 6, H[2] = 7, H[3] = 7, H[4] = 8, H[5] = 9, H[6] = 9, H[7] = 9, H[8] = 9, H[9] = 9, H[10] = 9, H[11] = 9, H[12] = 9**      (c) N = 15    H[1] = 131, H[2] = 135, H[3] = 130, H[4] = 138, H[5] = 132, H[6] = 140,   H[7] = 137, H[8] = 133, H[9] = 131, H[10] = 137, H[11] = 138, H[12] = 132,   H[13] = 135, H[14] = 136, H[15] = 134.   Is there any mathematical or algorthmic way to solve this problem.  Ans:- (a) 15 (b) 10     My attempt:-   For (a) , H[4] can be seeker 6 times so H{1] get satisifed, and then H[1] will be next seeker for 9 times,   so the rest like H[5] get satisfied.   I can't think about (b).


JMustache attribution is incorrectly listed as Butterknife

Butterknife appears twice in the OSS attribution list of the Android app (v1.0.85). Based on the links, the second one should be JMustache.


I was following this question  to try to access my JSON file and pass it as an argument to my fromJSON call, however I get an NPE on my mobileArray initialization because jsonString's value is still null. What's going on here? My problem isn't the NPE itself but with my value not getting initialized.  EDIT: Tried passing InputStreamReader but it still crashes, updated code and added logcat   Event[] myArray; Gson gson = new Gson();  InputStream is = getResources().openRawResource(R.raw.myJSON); InputStreamReader isReader = new InputStreamReader(is);   myArray = gson.fromJson(isReader, Event[].class);   Logcat:      Caused by: java.lang.NullPointerException at com.example.test.testassigment.Event.setDayOfTheWeek(Event.java:36) at com.example.test.testassigment.Event.<init>(Event.java:21) at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:417) at com.google.gson.internal.ConstructorConstructor$3.construct(ConstructorConstructor.java:108) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:210)  at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41)  at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72)  at com.google.gson.Gson.fromJson(Gson.java:887)  at com.google.gson.Gson.fromJson(Gson.java:825)  at com.example.test.testassigment.MainActivity.onCreate(MainActivity.java:70)  at android.app.Activity.performCreate(Activity.java:4486)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)  at android.app.ActivityThread.access$600(ActivityThread.java:127)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)  at android.os.Handler.dispatchMessage(Handler.java:99)  at android.os.Looper.loop(Looper.java:137)  at android.app.ActivityThread.main(ActivityThread.java:4511)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:511)


I have an old router that I have set up as an AP on my home network. For some reason it loses connectivity every few days and needs a reboot.   I would like to set up a script to run once every night to do this automatically.  I can open the my browser (iceweasel) and navigate to my admin page of the router from the terminal:  iceweasel http://admin:password@192.168.1.1/WLG_adv.htm   On the page that this command opens there is a button with this code:  <input onclick="return checkData();" name="Apply" value="Apply" type="submit">   Is there a way of performing the same action as this button from the terminal? I'm using a Debian Linux.


Multithreading: Each system on a different thread or a thread pool?

I'm building a fairly involved game using OpenGL and C++. I've been thinking about how to implement multithreading, and the two options are:  1) Each system (Graphics, Audio, Physics, et cetera) gets their own dedicated thread that they run off of.  2) Implement a thread pool, that picks up a jobs from a queue (priority queue), executes it and gets re-inserted into the pool to wait for new available job.  I was wondering which one is generally considered better: in terms of performance, maintenance, scalability, code smell, et cetera.


How to get the Parameters for a Lambert conformal conic projection CRS in QGIS 2.6

I am currently having some trouble adding the CRS to a vector file that I want to re project to WGS84/UTM. The shapefile is using Lambert Conformal Conic Projection; ITRF92 horizontal datum and GRS 1980 ellipsoid according to the metadata.  I will like to know how to define the original CRS since in QGIS Lambert CCP/ITRF92 does not appear as part of the available reference systems. The full definition is:   GEOCCS["ITRF92",DATUM["International_Terrestrial_Reference_Frame_1992",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG","6651"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Geocentric X",OTHER],AXIS["Geocentric Y",OTHER],AXIS["Geocentric Z",NORTH],AUTHORITY["EPSG","4914"]]  Projection: Lambert conformal conic   Standard parallel: 17.5   standard parallel: 19.5   longitude of the central meridian: -102.000000  latitude of the origin of the projection: +12.000000   false easting: 2 500 000 false northing: 0    The data's location is in Mexico.


What do you call a number which is the same written backwards? Example 16061.


If I am "homeless" researcher, where can I get affiliation?

I cannot attend any western university right now. I can relocate in future.  But I already have article which will soon go into publishing process. So affiliation could be useful right now.  I do not like idea of publishing without affiliation or with affiliation to institution which do not work within my field (molecular dynamics).   I don't like idea of putting affiliation with institution which does not pay for my job.  Where and how I can get affiliation for myself? Should I ask for affiliation directly? What if I can possibly work for that institution in future?  PS. I attended to many universities. Article I have was made while I attended to small one building institution (csu.ru). Institution did not pay for article nor I have any grants. Only payment I received was for teaching junior classes 2 years ago.  PS2. Ethically I should put ALL contribution to my work. But I didn't use laboratories, nor computer power, nor payment for last 6 months. The main expenses were computing equipment for about $2000 which I bought with money from my teaching. I was enlisted for some grants, but I already did my "payment" for this with other article, so everybody is with good relations to me.  PS3. My previous affiliated institution is not involved for 6 months already, during this time I did my work. No, I don't intend to slap my previous institution, but I am looking for new one.  Should I just email people from other institutions with collaboration proposals and publish under their institution?


How should I deal with becoming discouraged as a graduate student?

I am a third year (starting fourth year in the fall) PhD student in mathematics. I've passed all qualifying exams and am currently doing research. As far as I can tell, I am not doing poorly. I have the good fortune of having a great advisor, being in a very supportive department, and having friends and family who genuinely care about my success.   The fact is research is hard. It appears to consist primarily of staring at a problem for days and days and days without getting anywhere. Sometimes, rarely, I do figure something out and that feels wonderful, but the overwhelming majority of my time appears to be spent banging my head against a mostly figurative wall. I am not complaining about the material being hard, and I am not averse to putting in hard work, but I get frequently discouraged when I realize the vast volumes of mathematics that I yet know nothing about (and probably never will). It's very hard to quantify progress - in particular, there are too few tangible returns after too many hours worked. I find myself thinking along the lines of "Oh, if only someone actually smart were thinking about this problem they would have solved it in moments" and so on.   I've talked about this to some number of people; here is some advice I have received:   Take a day off. Putting in hours upon hours of trying things doesn't magically lead to a solution, particularly if the brain is tired and just wants to sleep. Have a hobby. Since math research doesn't exactly provide instant gratification, a hobby might provide some instead.  Talk to other graduate students. Realize that many graduate students go through this.   I'm interested to know how other folks have dealt with being discouraged as a graduate student. Does it get better with time and experience? Is this a sign that research is not for me and that I should seriously consider a life outside academia?


I've made an ExpandableListView with ArrayList as following:`  public void setChildGroupData() {      /**      * Add Data For TecthNology      */     ArrayList<String> child = new ArrayList<String>();     child.add("Java");     child.add("Drupal");     child.add(".Net Framework");     child.add("PHP");     childItem.add(child);      /**      * Add Data For Mobile      */     child = new ArrayList<String>();     child.add("Android");     child.add("Window Mobile");     child.add("iPHone");     child.add("Blackberry");     childItem.add(child);     /**      * Add Data For Manufacture      */     child = new ArrayList<String>();     child.add("HTC");     child.add("Apple");     child.add("Samsung");     child.add("Nokia");     childItem.add(child);     /**      * Add Data For Extras      */     child = new ArrayList<String>();     child.add("Contact Us");     child.add("About Us");     child.add("Location");     child.add("Root Cause");     childItem.add(child);   }   Now i want do do an action by triggering an if statement when some of the children is selected:  if(childItem.getText(childPosition) == "Java"){          mDrawerLayout.closeDrawer(drawerList);      }   However it is not working. I wonder if there's a way to get text from lets say child.add("Java"); so that if statement work and triggers an action?


R-Ariz. -- what does this shorthand stand for?

Example with :     Another hated ‘pindos’ is Senator John McCain (R-Ariz.), famous in Russia for his periodic tweets to ‘Dear Vlad.’ In 2011, for example, Mr. McCain tweeted Putin, “Dear Vlad, The #ArabSpring is coming to a neighborhood near you.”   I can't really figure that one out, though something tells me that this might stand for something like representative of Arizona. Am I on the right track with my assumption?


Python successive equality and inequality operator results

I'm not sure if there is any practical use case for this, but after playing around a bit with Python 3 in Jupyter notebook I'm wondering about the results I get from expressions like this: 54 == 54 == 54  # True in Python, False in Javascript 54 == 54 != 54  # False in Python, True in Javascript 54 != 54 != 54  # False in Python, True in Javascript 54 != 54 == 54  # False in Python, False in Javascript  If the values zero and one are used instead, Python gives the same results (I didn't test Javascript). The Javascript results are what I would expect if the first equality or inequality resulted in a Boolean value that was then compared with an integer (left to right evaluation of operators with equal precedence and Booleans never equal to integers). I'm trying to imagine the rules that give the Python results and am having difficulty coming up with a set that covers all cases. In some ways the answers Python gives are more what I would expect intuitively just by looking at the expressions. But for that to work it seems as if the result of the first operator has to be something other than a Boolean value. I'm not saying either result is necessarily wrong. I'm just wondering how the Python result is arrived at.  Wait, if Python evaluates: a == a == a a == a != a a != a == a a != a != a  like this: (a == a) and (a == a) (a == a) and (a != a) (a != a) and (a == a) (a != a) and (a != a)  Then that would account for the result, though not for why Python parses it that way.


I've got a quick question about scope in methods.  I'm aware of local vs. global variable scope on the general level, but what happens when a variable is declared inside a method to an object?  Can the variable in one method be accessible inside another method under the same object?