I get this error:      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException   code is  import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.sql.ResultSet; import javax.swing.JOptionPane;  public class Bookstore extends javax.swing.JFrame {      Connection con;     Statement stmt;     ResultSet rs;      public Bookstore () {         initComponents();         DoConnect();     }      public void DoConnect() {         try {             String host = "jdbc:derby://localhost:1527/Database";             String userName = "user2408";             String password = "password2408";             Connection con = DriverManager.getConnection(host, userName, password);              Statement stmt = con.createStatement( );             String SQL = "SELECT * FROM SHELF";             ResultSet rs = stmt.executeQuery( SQL );              rs.next();              int ID= rs.getInt("KeyID");             String BookID = Integer.toString(ID);             String BookName = rs.getString("Name");             String AuthorName = rs.getString("Author");             String ReleaseDate = rs.getString("Release");             String AuthorContact = rs.getString("Email");             float Price = rs.getFloat("Price");             String BookPrice = Float.toString(Price);              BookIDTF.setText(BookID );             BookNameTF.setText(BookName);             AuthorNameTF.setText(AuthorName);             ReleaseDateTF.setText(ReleaseDate);             AuthorContactTF.setText(AuthorContact);             BookPriceTF.setText(BookPrice);          }         catch (SQLException err) {             JOptionPane.showMessageDialog(Bookstore.this, err.getMessage());         }     }     private void NextButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                    try {             if (rs.next()) {  //this is where error occurs                 int ID= rs.getInt("KeyID");                 String BookID = Integer.toString(ID);                 String BookName = rs.getString("Name");                 String AuthorName = rs.getString("Author");                 String ReleaseDate = rs.getString("Release");                 String AuthorContact = rs.getString("Email");                 float Price = rs.getFloat("Price");                 String BookPrice = Float.toString(Price);                  BookIDTF.setText(BookID );                 BookNameTF.setText(BookName);                 AuthorNameTF.setText(AuthorName);                 ReleaseDateTF.setText(ReleaseDate);                 AuthorContactTF.setText(AuthorContact);                 BookPriceTF.setText(BookPrice);             }             else {                 rs.previous();                 JOptionPane.showMessageDialog(Bookstore.this, "End of File");             }         }         catch (SQLException err) {             JOptionPane.showMessageDialog(Bookstore.this, err.getMessage());         }     }   Java throws NullPointerException (usually abbreviated NPE) when you try to invoke a method or reference a property on an object that is null.  I've read this 10 times already and I still have no clue what could be wrong.  If I would comment/remove the next button function it would work. Constructor loads first row from the database into the app. What I want to understand is why it doesn't work for the next function. Mentions: Table has 3 entries so there is a next entry to go to which means the table is not the reason for NPE


If I try to start python in a bash script, the script will stop running and no commands will execute after "Python" is called. In this simple example, "TESTPRINT" will not be printed. It seems like the script just stops.   #!/bin/bash  python  print("TESTPRINT")  Echo   How do I make the script continue running after going into Python? I believe I had the same problem a few years ago after writing a script that first needed to shell into an Android Phone. I can't remember how I fixed it that time.


I have installed Ubuntu for Windows 10 Subsystem (WSL2) following all the steps in the official information page. When I click Ubuntu from the start menu of Windows 10, it outputs this: Welcome to Ubuntu 20.04 LTS (GNU/Linux 4.19.104-microsoft-standard x86_64)   * Documentation:  https://help.ubuntu.com  * Management:     https://landscape.canonical.com  * Support:        https://ubuntu.com/advantage    System information as of Sat Aug  8 17:13:27 CEST 2020    System load:  0.35               Processes:             8   Usage of /:   0.5% of 250.98GB   Users logged in:       0   Memory usage: 1%                 IPv4 address for eth0: 172.25.240.158   Swap usage:   0%     0 updates can be installed immediately. 0 of these updates are security updates.    The list of available updates is more than a week old. To check for new updates run: sudo apt update  This message is shown once once a day. To disable it please create the /home/iskandar/.hushlogin file. iskandar@iskandarbasal-dell-2019:~$  My question is: How can I proceed to get the home interface of Ubuntu and use it from a graphical interface? Where can I create the file which is indicated in the above message?


Jacobson radical of a certain ring of matrices

Let $A$ be the $\mathbb{C}$-subalgebra of $M_4(\mathbb C)$ consisting of matrices of the form   \begin{pmatrix} * & * & * & *\\ * & * & * &*\\ 0 & 0 & *&0 \\ 0 & 0&* &* \end{pmatrix}   Then how would I find the Jacobson radical $J(A)$ of $A$?    I don't really understand finding the Jacobson radical of $\mathbb{C}$-subalgebras.  Any help on this would be greatly appreciated, thank you!


How many ways can you arrange the letters of the word "LETTER"?

I know that the answer is $\frac{6!}{2!2!}$, but I'm just curious why this is so. I got no intuition for this stuff.


Science fiction book about alien ship containing doorways into alternate worlds or timelines

I read this book a couple of years ago and can't remember the name or the author (also not sure if it was just one book or series - if it was more than one book, then it would be 2 or at most 3 books). The plot is about a group of people finding an alien ship or machine that contains these doorways into alternate or parallel worlds. If I recall correctly I think there were a couple of these ships/machines found and one was in South America although that was later in the story. The aliens are nowhere to be found, so the people start exploring the ships and find the doorways. After going through one of the doors, they find that they can't get back to their original timeline or world and they keep trying to find out how to get back. Also they find artefacts and machines left by the missing aliens who created these ships/machines and try to find out about them. One part that I remember - after the world at large has found out about the ships/machines - one way they use the doorways are as prisons, by sending criminals and supplies for them through the doors, and letting them sort things out among themselves. I know this is really vague.


What are the major changes between Through the Ages: A New Story of Civilization and the first game?

is described as a new edition of Through the Ages: A Story of Civilization. What are the major changes between the two versions?


What will be the impact, if we add some extra space in id or class in HTML.  Like if we write like this,
This is a div
   Will the CSS or JS break?  Will there be any effect on class or id selection in JavaScript or CSS?


Problem in counting bonding pairs (elementary mean-field theory on the Ising Model)

When the Ising model Hamiltonian  $$H=-J\sum _{<ij>} \sigma _i\sigma _j-H\sum _i \sigma _i$$  is assumed ($\sum _{<ij>}$ is the summation over all the bonds or adjacent pairs of sites, $\sum _i$ is the summation over all the sites), I think it is known that the self-consistent equation in mean-field theory is given as $$m=\tanh (\beta Jzm)$$ where $\beta$, $z$ are the inverse temperature and the number of adjacent bonds, respectively, and $m$ is the mean magnetization $\frac{1}{N}\sum _i\sigma _i$.   But I'm confused about its derivation.    When I replace $\sigma _j$ by $m$ for the mean-field approximation,  $$H_{MF}= -Jm\sum_{<ij>}\sigma _i -H\sum_i \sigma _i.$$ Since the number of bonds is $\frac{zN}{2}$ (ignoring boundary conditions) and $\sigma _i$ in the first term doesn't depend on $j$, we can use $\sum _{<ij>} =\frac{z}{2}\sum _i$. Thus we obtain,  $$H_{MF}= -(\frac{1}{2}Jzm+H)\sum_i\sigma _i =-A\sum _i \sigma _i.$$  Using this $H_{MF}$, $\langle\sigma _i\rangle$ is calculated as below. $$\langle\sigma _i\rangle= \frac{\mathrm{Tr}[\sigma _i \exp (\beta A\sigma _i)]}{\mathrm{Tr}[\exp (\beta A\sigma _i)]}=\tanh (\beta A).$$ Imposing $\langle\sigma _i\rangle=m$, the self-consistent equation is found to be $$m=\tanh \left(\beta (\frac{1}{2}Jzm+H)\right).$$ I suppose it contradicts the known result.  When I replace $\sigma _i$ by $m+(\sigma _i-m)$ and the ignore square of the fluctuation term, the same calculation yields the self-consistent equation $m=\tanh (\beta Jzm)$.   Are there any mistakes in the above discussion?


I'm starting my graduation in physics and it may sound like a dumb question, but it's haunting my mind for days. It is known that the scattering of two electrons can be represented by the following Feynman diagram:    But I wonder: How does the opposite happen? I mean, how does a positive particle attracts a negative one via photon mediation?


Is there any word in English to ask for "whichth"?

In my native language, and most Indian languages that I know, there is a way to ask for "whichth", but I don't seem to have found anything similar in English. Let me explain below.  What question would you need to ask to obtain the following answers?        In terms of geographical area, Australia is the sixth largest country.   John is his father's third son.   Mars is the fourth planet in the solar system.       The only way I can think of is use of roundabout legalese-like sentence structure, which makes it sound laughable. For example:        If countries are arranged in order of their geographical area, then at what number is Australia?   Among the sons of John's father, if you arrange them in the order of birth, then at what number does John appear?   At what position is Mars in the solar system, in terms of distance from the Sun?      If there is such a word as "whichth", one could ask, for example:        Australia is "whichth" largest country in terms of geographical area?


Why aren't electrons positively charged?

For the study of electric circuits, it seems like it would have made more sense to establish that electrons carry a positive charge, and protons a negative one. That way, arrows representing current would actually represent the flow of electrons. I've never come across a reason to support the convention in place today. So, besides the hassle of changing this universal agreement, is there a reason in favour of the one in place ?


I had windows 10 previously installed on my Dell Vostro. It had 3 partitions which were lost and combined into one when I installed Ubuntu 16.04. All my data has been lost that included important videos. Please explain me steps to recover my lost data if possible.


$$ \displaystyle \int_{0}^{\infty}{\frac{{\log}^{2}(1-{e}^{-x}){x}^{5}}{{e}^{x}-1} dx} $$ What I have done - $ \displaystyle I(k) =  \int_{0}^{\infty}{\frac{{x}^{5}}{{e}^{x}{(1-{e}^{-x})}^{k}}}$ And then, $ I''(1) $ will be our integral. Now, we need to compute $ I(k) $ $ \displaystyle I(k) = \int_{0}^{\infty}{\sum_{m=0}^{\infty}{\binom{k+m-1}{m} {e}^{-(m+1)x}{x}^{5}}} $ $ \displaystyle I(k) = \sum_{m=0}^{\infty}{\binom{k+m-1}{m} \frac{\Gamma(6)}{{(m+1)}^{6}}} $ Now, I computed $ \displaystyle I''(1) = 120 \left(\sum_{m=0}^{\infty}{\frac{{({H}_{m}^{(1)})}^{2} - {H}_{m}^{(2)}}{{(m+1)}^{6}}}\right)$ Or, in style, $ \displaystyle 120\left({s}_{h}(2,6) - {\sigma}_{h}(2,6)\right) $ I want to ask if the above computation is correct or not. EDIT I am updating the answer now. We can go by solving Euler sums from formula  as was suggested by   and get the form as given by Marco(watch out his answer). Then, his form can be expanded by hand as - $ 14\zeta(8) - 5\zeta(6)\zeta(2) - 6\zeta(5)\zeta(3) - 3{\zeta(4)}^{2} + \zeta(4){\zeta(2)}^{2} + {\zeta(3)}^{2}\zeta(2) $ which on simplification gives a really nice form - $$ 20{\pi}^{2}{\zeta(3)}^{2} - 720\zeta(3)\zeta(5) + 61{\pi}^{2}\zeta(6) $$


Does time pass fastest in isolated, resting space?

While it is fairly established that both fast movement and the presence of gravity make time pass slower as compared to a system at rest / free of gravity, does that mean that there is no way for time to pass faster than in vacuum, or does general relativity also have "faster" metrics?  To be more precise, is there any frame into which one could go for a while, and on returning to vacuum less time would have passed there?


In the bash tutorial I am reading, it says that if you open a file descriptor for reading, i.e.  exec 3< echolist   Then you must close it like this,  exec 3<&-   However, if you open a file descriptor for writing, it must be closed like this:  exec 3>&-   Yet when I look on the internet, I see people opening files and then closing them with this:  exec 3>&-    NOTE: when, according to the tutorial, they should be using exec 3<&1.  So my question is, can all file descriptors be closed via exec n>&- where n is the file descriptor number? Regardless if it was opened for reading, writing, or both?


Usage of articles with biological terminology

In the following sentence     The hippocampus plays an important role in the formation of emotion   and memory consolidation.   my teacher pointed out that article The in front of the word hippocampus is incorrect, and A should be used instead. As in     A hippocampus plays an important role in the formation of emotion   and memory consolidation.   I disagree. Who do you think is right?


What are the standard properties of an S-Box

Apart form the following, what are the other properties of a good cryptographic Substitution box or the S-Box:   Changing one input bit should change about half of the output bits. Each output bit should depend on every input bit.


centering column headers in siunitx table column

In this table with some big numbers the column headers centered over the decimal point look odd to me. And, too, the columns seem a little too wide.    I've puttered a bit with other answers here and package documentation to little effect. Maybe I haven't looked hard enough - so am asking for help.  Here's the MWE:  \documentclass{article} \usepackage{booktabs} \usepackage{siunitx} \sisetup{input-ignore={,},input-decimal-markers={.},group-separator={,}}  \begin{document} \begin{tabular}{lSSS} \toprule           &            &            & \multicolumn{1}{c}{Natural} \\ Time unit & \multicolumn{1}{c}{Births} & \multicolumn{1}{c}{Deaths} & \multicolumn{1}{c}{increase} \\  \midrule Year  &    134,176,254 &   56,605,700 &    77,570,553 \\ Month &     11,181,355 &    4,717,142 &    6,464,213 \\ Day   &        367,606 &      155,084 &       212,522 \\ Minute&            255 &          108 &           148 \\ Second&            4.3 &          1.8 &           2.5 \\ \bottomrule \end{tabular} \end{document}


Everything moves when I change one thing

I'm modeling a car and it's almost complete except now whenever I move one vertex the whole model changes. Parts of it jut out whenever I extrude or make anything. I tried building tires separately and when I went to use bullion to union everything the entire model disappeared. Ctrl z brought it back of and sometimes if I undo and then redo the model will look fine but while working everything shifts randomly.


Small oscillations of the double pendulum

From the Lagrangian I've got the following equations of motion for the  in 2D. (The masses are different but the lengths of the two pendula are equal.) Let $m_2$ be the lowest-hanging mass.     $$(m_1+m_2)\ddot{\theta_1}+2m_2\ddot\theta_2\cos(\theta_2-\theta_1)=\\ -2m_2\dot\theta_1\dot\theta_2\sin(\theta_1-\theta_2)-(m_1+m_2)g/l\sin(\theta_1)$$   and     $$m_2\ddot{\theta_1}+2m_2\ddot\theta_2\cos(\theta_2-\theta_1)=\\ 2m_2\dot\theta_1\dot\theta_2\sin(\theta_1-\theta_2)-m_2g/l\sin(\theta_1)$$   In the small angle approximation these become, respectively     $$(m_1+m_2)\ddot{\theta_1}+2m_2\ddot\theta_2= -2m_2\dot\theta_1\dot\theta_2(\theta_1-\theta_2)-\theta_1(m_1+m_2)g/l$$   and      $$m_2\ddot{\theta_1}+2m_2\ddot\theta_2= 2m_2\dot\theta_1\dot\theta_2(\theta_1-\theta_2)-\theta_1m_2g/l$$.   Most sources don't have the terms of order $\dot\theta$. This is because they apply the small angle approximation to the Lagrangian before taking the derivatives, thereby ignoring terms of order $\theta.$ What justification do we have for getting rid of these terms?


The entropy of an isolated system always increases,  Considering an intelligent actor in the system who can organise different objects in the system, doesnt the measure of disorder reduce albeit for short periods?


In the GoT finale, Sansa said that Bran couldn't father a child. And then, this fact was used by Tyrion Lannister to persuade Grey Worm that      this is what the dead Daenerys meant by breaking the wheel.   My question is: How could anyone know that Bran was infertile? Nobody had access to advanced technology to determine that and Westeros would definitely have seen crippled people fathering child.


If there is no mass for the light, it should penetrate. But light is not penetrating through solid medium. If the speed of light is constant there is some work should be done to maintain the speed. Einstein said that the light is curved because of Sun's gravity, to bend that also work has to be done. Maybe the black hole is completely dark solid matter that's why the light was unable to penetrate?  This question is in my mind for years please explain


Cars pass a certain street location according to a Poisson Process with rate $\lambda$. An old lady and her trusty boyscout want to cross the street at this location. They wait until they can ensure no cars will pass in the next T time units. Find their expected wait time.   I'm approaching this via the double expectation formula, but I'm getting stuck towards the end of the problem.  Let $W$ = a random variable representing the expected wait time  Let $X$ = a random variable representing the time until the first car passes.  Then, I can say: $$ E[W] = E[E[W|X=x]] $$  Where $$E[W|X=x] = \begin{cases} 0, & \text{if }x\geq T \\ x + E[W], & \text{if } x < T \end{cases}$$ So Then $$E[E[W|X=x]] = \int_0^\infty E[W|X=x] * \lambda e^{-\lambda x}dx$$ $$ = \int_0^T E[W|X=x] * \lambda e^{-\lambda x} + \int_T^\infty E[W|X=x] * \lambda e^{-\lambda x}$$  According to how I defined $E[W|X=x]$, the second integral should drop out because $E[W|X=x] = 0 $ for $X \geq T, correct? $  So what I'm left with is the following:  $$E[W] = \int_0^T (x + E[W]) * \lambda e^{-\lambda x} $$  Now I'm not exactly sure how to reduce this further as it is recursive.  Also, I saw another solution which does not drop out the second integral as I have, but evaluated it instead, which I found somewhat odd. I'd appreciate any explanation about how to proceed further.         Again, to clarify, I am interested in how to handle the recursive nature of this integral. Not to mention, I did not find the explanation on the "duplicate" to be very straightforward and I would like further clarification. Hence this question is different from the said duplicate and I would appreciate that it be reopened.


Changing the .ipa file artwork of compiled iPhone application

Just do following steps & you will understand what problem I am facing right now.   Create a new project from template. File / New Project - Navigation based application. Create any 32 x 32 image (.png) from any image editor & name it as icon.png Drag that file to your applications resources. Compile & run your project on iPhone. iPhone application will have proper icone as we have placed icon.png file under resources.   But the problem starts now.  When ever we compile.   There is a build directory under your project. go to "Debug-iphoneos" Select yourapplication.app Drag it under applications ( - iTunes - )   Application on iPhone has an iCon ( oops icon ) but it has no icon on iTunes Y? Why ?  How to place an icon on iTunes ?


I'm looking for any script that possible to export graph of Cacti into CSV/text format.  I have several interfaces in different devices, so I want to export those graph by using cron's job for sending report of bandwidth utilization regularly.  Appreciate your help and input.  Regards, SP


Should a tag matching the correct answer to a question be allowed?

Edit:  A more closely-related question and answer are here:    ...and it is 'yes', whereas the less-related suggested question and answer farther above leans toward 'no'.    I recently came across a question where the questioner gave list of things he or she wanted to accomplish and asked for recommendations for a library that could help accomplish them.  The accepted answer was about a particular library for which there is a tag, and I thought it would be good for the page to reflect that tag.  I made an edit request where all I did was add that tag, but my edit was rejected.  I would like to know:   whether there is a policy against attaching these kind of tag (maybe because the questioner would not have known to add it?) even though the tag does in fact apply (or whether the people who did the rejecting were acting on their own in this case), and whether we should have a policy to allow and encourage that kind of tagging   (Obviously I think this kind of tag should be allowed, as it increases the organization and searchability of the site.  In this case, with the tag a person could more easily find the question-answer pair by looking up whether library x can do things y and z.  ...or by just filtering by that tag in a more wide-ranging search for information about that library.  I would add that docs on a library do not highlight potential pitfalls as well as a trip to StackOverflow does.)


How to fix a keyboard layout on each Windows 10 computer?

I use Windows 10 with the same Microsoft account on 3 different computers, each one with a different physical keyboard layout: ITA, UK, DE.  In "Control panel - Clock and International settings - Language" I have ITA as display language with ITA/DE/UK keyboard layouts, followed by ENG(US) with only UK layout.  In the same window I opened "Advanced settings" where I set an override (second drop-down list) to the default ("the first one on the list") language/keyboard: that would be ITA/ITA, while I want (on this computer) ITA/DE.  However, when now I log in in the other computers, I get ITA/DE there as well, while each computer should have a different one, being the physical keyboards different: ITA/DE here, ITA/UK on the second one and ITA/ITA on the third one.  If I change one, they all change. And if I don't apply the override, the issue seems to be the same.  Basically the last used language AND keyboard settings are stored on the cloud and applied wherever I log in.  How to set Windows 10 to remember, PER computer, the last used language/keyboard layout settings, without having that setting follow me?


Short story where people can swap minds with others

I've read this book about 15 years ago, but I think it's older than that.  In the story people use some sort consciousness transfer technology to travel to distant solar systems. So basically an alien from planet A would want to visit Earth, and you would like to visit the planet A, by mutual agreement you'd transfer your mind into the alien's body and alien's mind would be transferred into your body.  So the main character decides to travel and swaps bodies with an alien. However, he/she isn't able to return back to his/her own body and instead is transferred to another alien's body and so on. As the story progresses the protagonist jumps from body to body until he/she slowly loses his/her own identity.  Also the story is written in a funny/light tone.   I've read this story in Russian but I am sure that it was translated. The story was a part of collection of short sci-fi stories.


Using capacitors for ethernet isolation?

The standard for ethernet says you should use a transformer for isolation.  It seems like a cap-based solution would be smaller, more versatile, and a better fit for my application.  Is there any reason why a (capacitor-based) highpass filter couldn't be used instead?  EDIT: This question is different from others because it references a specific alternative, rather than asking the generic purpose of ethernet magnetics.


hi I have canon 550D and have 2 leses 18-55 / 55-250; going thru the sharpness and quality i am thinking to purchase 40mm / 50mm lense. as per me the quality of images of existing lenses are not that much sharp what it needs to be.  Can anybody advice me (1) Is it right to go for 40mm / 50mm lense (2) if yes, which one?


Does an infinite random sequence contain all finite sequences?

If we have a finite alphabet, with each letter having a non-zero probability of being selected, will an infinite sequence of letters selected from that alphabet contain all finite sequences of letters in the alphabet?  What is the dis/proof for this?


Structural differences between $2 \mathbb{Z}$, $3 \mathbb{Z}$ as rings.

Is usual to find in abstract algebra books this exercise: Show that $2 \mathbb{Z}$ and $3 \mathbb{Z}$ are isomorphic as groups (with usual sum) but they aren't as rings (with usual sum and addition). Its solution is based in consider, for example, the images f(4)=f(2+2)  and f(4)=f(2*2) and conclude the "non existence" of such an isomorphism. But, my question is, what are the structural differences (ring properties) that avoid this equivalence as rings? Thanks in advance.


Traveling to US with ESTA but have an Iranian father. Do I need a visa instead?

I am a British citizen and have dual nationality with Hong Kong but my father is Iranian. Does this mean I also have Iranian nationality? I've never held an Iranian passport or traveled to Iran and he has never informed the Iranian government of my existence.  I already had an ESTA to travel to US in December 2015 and it hasn't been revoked though I didn't put on the application that I was an Iranian national because I legitimately didn't think I was but this new law has made me double check. I'm going to the US again in May and was wondering if the US would consider me an Iranian national and therefore need a visa.   Edit 08/06/2016: Just wanted to update this since I hate it when I find a closed thread with no answer. I ended up going to the US without a visa and was allowed through with no problems. An uncle I was traveling with who is a British citizen but was born in Iran got a visa, and when he was going through customs and immigration was asked why he got a visa when he didn't need one! The officer said he would have been fine with just an approved ESTA...


How to Move subsubfolders from subfolders into the folder

This is kind of tricky  I have a folder, and inside this folder are several subfolders, each subfolder contains one subfolder of it's own (subsubfolder), I want to move these 'subsubfolders' to the original folder.  This is what it looks like right now:  Archives/ │ ├── Records_A/ │   └── Folder_1/ |       └── Item_1.png │ ├── Records_B/ │   └── Folder_2/ |       └── Item_2.png │ ├── Records_C/ │   └── Folder_3/ |       └── Item_3.png │ ├── Records_D/ │   └── Folder_4/ |       └── Item_4.png │ ├── Records_E/ │   └── Folder_5/ |       └── Item_5.png  ...   I want to move all the subsubfolders so that it looks like this:  Archives/ │ ├── Folder_1/ │   └── Item_1.png │ ├── Folder_2/ │   └── Item_2.png │ ├── Folder_3/ │   └── Item_3.png │ ├── Folder_4/ │   └── Item_4.png │ ├── Folder_5/ │   └── Item_5.png │ ├── Records_A/ │ ├── Records_B/ │ ├── Records_C/ │ ├── Records_D/ │ ├── Records_E/  ...   Is there anyway to do this in bash?   I am not looking to move any files here, only folders  Note that the names of the subfolders don't always start with 'Record_' And The names of the subsubfolders don't always start with'Folder_', I'm looking for a general solution based on the directory structure rather than the names.  EDIT: I found a solution if anyone else has the same problem:  mv -v ./Records_*/* ./   just replace the "Records_" with whatever prefix the folders' names begin with (or just leave * for everything).


Update the Android app to hide questions under ignored tags (when I have that setting enabled)

On , this is my tag blacklist:        Note well that I have them set to hidden, because I would prefer not to see questions on this topic. Bridge players, don't take offence — I don't have problem with the game itself. I don't understand the game's mechanics, though, so I find questions about it incomprehensible, and I'd rather stick to just seeing questions I can understand.  I still see [bridge] questions galore on the Android app though. Could it be updated to pay attention to whether I have certain tags ignored and set to be hidden?


Everyone singular or plural in "except" questions

1)Everyone, except Jess and Susie, was present at the company meeting yesterday.  2)Everyone, except Jess and Susie, were present at the company meeting yesterday.  Which is correct?


How to project WGS84 coordinates to calculate the distance in meters

I have geo coordinates from Google Maps which are WGS84 in decimal degrees for India. I want to calculate the distance between them in meters. Which projection should I use?  I use ArcMap 10.4.1.


I need to update my fb status:       in search for true love     or       in search of true love     Which one is grammatically correct ?


ArcGIS corrupting MXD-files on certain users

In our organisation we have a number of ArcGIS users whose ArcGIS desktop installations cause MXD-files to go corrupt when they are saved.  All MXD files that are saved with ArcGIS Desktop by one of these windows users become corrupt and unreadable. It doesn't matter if it's a fresh empty map, or an older document containing data.  We have tried deleting the "Normal.mxt" template files in AppData to force a settings reset, but that has not helped.  The problem is bound to the windows login rather than the computer, and it concerns both fresh installs and older installs. The version is 10.3.1  My hypothesis is that ArcGIS corrupts even the supposedly fresh "Normal.mxt" template files when they are reset.  So, are there other places that ArcGIS stores settings information except for the "Normal.mxt" files in AppData?   If you have another experience or theory for the MXD-corruption, please share that as well.  (I read through  which was closed, and I understand if this one is a bit too vague as well, although I've tried to narrow it down some.)


Which is the best choice and why for formatting a USB3 memory stick? FAT32 was the out of the box, but the file size limit is a to small.   FAT32  NTFS exFAT   Size, speed and stability are good measurements.  Im using a SanDisk Extreme memory stick.


How can I prove Holder inequality for $0<p<1$?

$0<p<1$   $\dfrac{1}{p}+\dfrac{1}{p'}=1$  If $f \in L^{p}$ and $0<\int_{\Omega}\vert g(x) \vert^{p'}dx < \infty$  then $$\int_{\Omega}\vert f(x)g(x) \vert dx \geq (\int_{\Omega}\vert f(x) \vert^{p}dx)^{\frac{1}{p}}(\int_{\Omega}\vert g(x) \vert^{p}dx)^{\frac{1}{p'}} $$


How can I add a custom meta value on file upload?

I am looking for an option where a custom meta value will be saved when user uploads an attachment.  Lets say I need a meta key _example_meta_key and want to save meta value of this as ex087659bh (It will be a randomly generated number, I can take care of this.)  The problem is, I can't seem to find any filters to add custom meta value on upload.   There are some tutorials which shows the way to add fields in media edit form but I need this to be executed at the time of file upload.


System of Equations İnvolving Floor Function

The Question  Solve for $(x,y,z)$ $$\left\{\begin{matrix} x+\left \lfloor y \right \rfloor + \left \{ z > \right \}=1,1\\  z+\left \lfloor x \right \rfloor + \left \{ y \right > \}=2,2\\  y+\left \lfloor x \right \rfloor + \left \{ z \right \}=3,3  \end{matrix}\right.$$  My Understanding From the definition of floor function we know that $n = \left \lfloor n \right \rfloor + \left \{n  \right \}$ and if you play with equation a bit $(1,1+,2,2=3,3)$ and do some cancelling it's easy to see that $$x+z=0 \Rightarrow x = -z.$$ After that you set $z=-x$ and rewrite the equation. You'll see from $[2(1,1)=2,2]$ and a bit cancelling $\left \{ y \right \} - \left \{ x \right \}=2,2$. Also an important note that $\left \lfloor x \right \rfloor \neq \left \lfloor -x \right \rfloor , \left \{ x \right \} \neq \left \{ -x \right \}$ example: $\left \lfloor 5,35 \right \rfloor = 5$ but $\left \lfloor -5,35 \right \rfloor = -6$. I got this so far and need help.


Let $l\in\mathbb{Z}$ and $N\in\mathbb{N}$. I need to prove the following: \begin{equation} \sum_{j=0}^{N-1}\cos\left(l\frac{\left(2j+1\right)\pi}{2N} \right)=0 \end{equation} I tried to use Euler formula and then sum the first $N$ terms of the geometric serie I get, but it didn't work. Any ideas?


I have a HashMap (although I guess this question applies to other collections) of objects. From what I understand, when the documentation talks about removing mappings, then it is removing the entry from the hashtable, i.e. not necessarily destroying the actual object. If the only remaining reference to the object is in this table, then will the object get garbage collected?  If I do map.clear() and those objects that were in the table are not referenced anywhere else, will they get garbage collected?  What is the fastest way, to actually remove all entries from the table, but also destroy those objects.


I have a very simple problem, but I can't seem to solve it. I have a table inside a div, which is the main element. Now I have a td tag inside the table with a width and hight set to that of an iphone screen size. Now I basically want to center that table with its td cell within the div tag, so that the 'screen' will be centered in any browser window. How do I do that?  Replacing that div with a table solved my problem, but I would like to use a div instead.  Thank You


How can I automatically switch off internal screen when an external screen is connected?

Windows user over here, jumping on the Ubuntu train. Currently using 14.04. I have a TV that I use for viewing movies and such, connected through HDMI. I'd like to accomplish the following behaviour but I haven't figured out yet   On HDMI connect, do not display anything on my laptop, just display on the TV (automatically) On HDMI disconnect, display back my laptop   Only tinkering through settings I can achieve that but it's extremely manual. Am I missing something?  Thanks a lot!


Have a legitimate Windows 7 license and the Windows 7 key but don't have the DVD

I just booted up my 'old' PC that's been lying around for the last two years. I have Windows 7 on it and I'm looking to format the drive and do a fresh install of W7.  I have the key for Windows 7 in a text file. However I don't have the Windows 7 DVD or image.    So is there any way of burning off a Windows 7 DVD considering that its the operating system I'm currently using? If not...well I have a W7 key, will this key work with any W7 DVD or is it particular to the W7 image that came with the key?


Wrong behavior when editing and another one already edits the post

Alice starts editing a post Bob edits the post Bob finish the editing Alice sees the notification that the post was edited and click to reload the post. Alice wants to close the browser tab.   She gets the notification that her edit is not saved.  I guess this is another little bug on the client side... Am I right?


Restarting a custom service in a remote machine running under specific user account C#

I'm running a windows service in a server and I now I want it to restart it from a local machine by a software tool I developed by C#.  I tried using "sc" but it says "The service is not installed" and I think it is because it is actually not a windows default service but a custom one.  Could anyone help me out with how to do it?  P.S. sc also said I don't have enough privilege because the service is running under administrative privilege in the server.  Thanks in advance!


Google is not indexing an original post, but indexing pagination page and facebook post

I built , and I am having trouble with SEO for individual posts.  I implemented JSON-LD and have all necessary meta tags like (title, description, canonical url, og, twitter ...) for every page.  However, most posts are not showing up on google search.  For example,  does not show up on google search, even if I search with its h1 title "We now support multiple post drafts". See .    If you look at the search results, it shows a facebook post and pagination page on our site, but not the post itself.  What am I missing on my post page?  Should I have a sitemap for every post? If so, how do you keep track of sitemap if there are 10,000+ posts?  Sitemap:   robots.txt:


Are humans the only animal that requires "clean water"?

I've seen a number of animals - dogs, cats, squirrels, ducks and geese, etc drink from puddles, some of them were muddy, others had green flora growing under water. Same goes for lakes and rivers. A human would not drink that. Do animals experience gastrointestinal discomfort or can they die from drinking water like that?  At the same time I hear about the problem of "clean water" in 3rd world countries and how diarrhea is the #1 killer of children under 5.   Are humans the only animals that require a certain purity of their drinking water? Why is it that a dog can drink from a puddle, but a human is likely to get sick from doing the same? Do baby animals get sick from drinking "dirty" water?


recover stackoverflow answer draft lost in android app

Was answering a question, went back to check a detail of the original question.   There was a option return to draft answer, tapped it, had some kind of error, now there is no draft option on the question to return to what I had typed out.   Anyway to recover this?


whats the advantage of using interface in repository pattern in MVC

Im new in design pattern and c#,i know using interface means any class inherit the interface forces to implement the method signature,in the repository pattern i see,for example  we should create a IStudent repository first,like :    public interface IStudents {    IEnumerable<students> getAll(); }   and here i implement it in Students:   public class Students:IStudents {       public IEnumerable<students> getAll()     {           //return something;     } }   and then when i want to use in the controller first i should instantiate the IStudent class and the use its method,but instead i IStantiate the Students class and use the method directly from there,whats the advantages of this interface class here?!


Probability that the bag contains all balls white given that two balls are white

A bag contains $4$ balls .Two balls are drawn at random and are found to be white.  What is the probability that all the four balls in the bag are white?.  The options are $\large\frac{1}{5}\space ;\frac{2}{5} ;\frac{3}{5} ;\frac{4}{5}$  My work: It's given that two balls are white.So the rest of the balls could be    all white One of them white none of them white   So among the three above possibilities only one satisfies our conditions so the probability is $\frac{1}{3}$.But it not even the options given. What's wrong with my work?


Installed Driver for Evga GTX 970. Can't log in to Ubuntu

I installed the driver using apt-get and restarted my computer, and now when I log in. I get stuck in a loop. The screen shows some funny colours and sends me back to the login screen. Is there any way I could do a system restore back to my old graphics settings? any help would be much appreciated :)


Fourier coefficients $\langle x,e_k\rangle$ are at countable

Say we have an Inner Product space $(X, \langle\cdot ,\cdot \rangle)$. Let $(e_k)$ be an orthonormal sequence, where $k \in I$. Then we know by Bessel's inequality that $$ \sum_1^\infty |\langle x,e_k\rangle|^2 \le \|x\|^2$$ The $\langle x,e_k\rangle$ are called Fourier coefficients of x (with respect to $e_k$). How do we then show that any $x \in X$  can have at most countably many non-zero Fourier coefficients?  First we suppose that the orthonormal family $(e_k)$ is uncountable, otherwise it's trivial. So my first question is, how can there exist uncountably many $e_k$? Is there an example?  What I thought could help is the following: form the coefficients $\langle x,e_k\rangle$. We know that for every $n=1,2,3,\ldots$ $$ \sum_1^n |\langle x,e_k\rangle|^2 \le \|x\|^2$$  But I couldn't make any progress.


Is there any quick script to add page and line numbers to each page of a pdf document?   I often enough get articles in pdf to review, with no page number. I end up writing them by hand to refer to each page when pointing errors. When referring an error, I end up counting by hand the lines from the beginning or from the end, or copying the context, to precise the location of the error. It would be much more practical to have a standard way to add line numbers to an existing document.   I could manage editing the LaTeX source to obtain this, but not when I receive a pdf. PDF format does not contain lines per se, so identifying them would require to cluster the $y$-coordinates of the letters, and adding those numbers in the margin would require to take the min of the $x$-coordinates and remove a fixed amount from it. Anybody did this script already, or seen another way?


Feature stapling to delete the folder in SharePoint

My requirement is whenever particular My Site is created default folder will appear, I don't want that default folder, so need to create a feature stapling on activated method whenever my site creation "default " folder should be deleted.  Can anyone tell me any sample code for folder deletion using feature stapling


Can I make light dig a hole by increasing it's frequency? Can I relate force with wave using the equation $c=$ wavelength$\times$frequency?


Outlook autocleaning my line breaks and screwing up my email format

I'm sending an email using the dotnet framework. Here is the template that I'm using to create the message:  Date of Hire: %HireDate% Annual Salary: %AnnualIncome% Reason for Request: %ReasonForRequest%  Name of Voluntary Employee: %FirstName% %LastName% Total Coverage Applied For:  %EECoverageAmount% Guaranteed Coverage Portion: %GICoveragePortion% Amount Subject to Medical Evident: %GIOverage%   When the messages is received in outlook, outlook tells me "Extra line breaks in this message were removed". And the message displays like this:  Date of Hire: 9/28/2001 Annual Salary: $100,000 Reason for Request: New Hire  Name of Voluntary Employee: Ronald Weasley Total Coverage Applied For:  $500,000 Guaranteed Coverage Portion: $300,000.00 Amount Subject to Medical Evident: $200,000   Note how Outlook incorrectly removes needed line breaks after the name, EECoverageAmount, etc...  It's important for the email recepients to get a correctly formatted email, and I have to assume that some of them use outlook 2003. I also can't assume they will know enough to shutoff the autoclean feature to get the message to format properly.   I have viewed these messages in other mail clients and they display correctly  some more information:   I am using UTF-8 BodyEncoding (msg.BodyEncoding = System.Text.Encoding.UTF8) The msg.Body is being read from a UTF-8 encoded text file, and each line is terminated with a crlf.   Question: How do I change the format of the message to avoid this problem?


I'm ditching Windows 10 once and for all and I was wondering if my oldish desktop can rock and roll with Ubuntu 18.04!? The PC configuration is as follows:  8GB RAM (DDR3), Nvidia GeForce GTX 650, SSD 120 GB. I read that Ubuntu 18.04 comes with Gnome 3 which is a resource hungry DE.


How many maps $\phi \colon \Bbb N \to \Bbb N \cup \{0\}$ are there?

How many maps $\phi \colon \Bbb N \to \Bbb N \cup \{0\}$ are there with the property that $\, \phi(ab)=\phi(a)+\phi(b), \forall a,b \in \Bbb N \cup \{0\}$ ?  The options are as follows :   None  finitely many  countably many  uncountably many    i tried i this way. Taking $a=b=1$ i got $\phi (1)=0$ so $\phi(x)=0$ is at least one map. But dont know how to deal with other options?


Error: cannot open display: :0.0 - Red Hat Enterprise Linux Server

I am trying to open up firefox in my Red Hat machine. I am doing,  export DISPLAY=:0.0   and typing,  firefox   I am getting  Error: cannot open display: :0.0   Is there any way to know what packages are missing or needs to be installed or any log files I can refer to, to be able to load firefox from terminal.


Show that $G$ is nilpotent when the quotient group is nilpotent

I want to show that if $H\subseteq Z(G)$ and $G/H$ is nilpotent then $G$ is also nilpotent.   $$$$   I have done the following:   Since $G/H$ is nilpotent there is a series of normal subgroups $$1\leq N_1\leq N_2\leq \cdots \leq N_k=G/H$$ with $N_{i+1}/N_i\subseteq Z((G/H)/N_i)$.   From the correspondence theorem we have that there is a bijective mapping between the subgroups of $G$ that contain $H$ and the subgroups of $G/H$, right?   Using this theorem could we take the preimage of the mappings that map to $N_i, i=1, \dots , k$ to get the corresponding series of normal subgroups $$1\leq \tilde{N}_1\leq \tilde{N}_2\leq \cdots \leq \tilde{N}_k=G$$ with $\tilde{N}_{i+1}/\tilde{N}_i\subseteq Z(G/\tilde{N}_i)$ ?


Is a "dozen donuts" a singular or plural subject?

which is correct?  How much IS a dozen of donuts?  OR How much are a dozen of donuts?


Mathematical induction question: why can we "assume $P(k)$ holds"?

So I see that the process for proof by induction is the following (using the following statement for sake of example:  $P(n)$ is the formula for the sum of natural numbers $\leq n$:  $0 + 1 + \cdots +n = (n(n+1))/2$ )   Show that the base case is trivially true: $P(0)$: let $n = 0$. Then $0 = (0(0+1))/2$, which is true. Show that if $P(k)$ holds then $P(k+1)$ also holds. Assume $P(k)$ holds for some unspecified value of $k$. It must be then shown that $P(k+1)$ holds.   This is the part I don't get: 'Assume $P(k)$ holds'  We are just assuming something is true and then 'proving' that something else is true based on that assumption. But we never proved the assumption itself is true so it doesnt seem to hold up to me. Oviously proof by induction works so am I viewing the process incorrectly?


What is the English counterpart to 'Binboyusuri' - keep jiggling one’s legs during conversation sitting on the chair?

There are persons who keep jiggling their legs sitting on the chair during conversation or being interviewed. This motion is annoying and seen as the indication of the speaker’s tension, weakness to pressure, timidity, and lack of self-confidence.   We call it derogatorily ’貧乏ゆすり/ binboyusuri - poor man’s (leg) shake’ in Japanese, and were told not to jiggle legs when sitting on chair before people, even during a meal from the childhood by parents.   Kenkyusha’s English Japanese Dictionary translates ‘binboyusuri’ as ‘tap one’s foot nervously.”  When you do ‘binboyusuri’ in front of interviewer(s) while job interview in Japan, you are 150 % sure to flunk. Is this 'leg-specific motion' seen as negatively in western world too? Are there short words to express  ‘Binboyusuri’ as a noun or verb, say in two words?


Let $f_1 , f_2: I\mapsto \mathbb{R}$ bounded functions. Show that $L(f_1)+L(f_2)\leq L(f_1+f_2)$ (Riemann integral)

Let $f_1 , f_2: I\mapsto \mathbb{R}$ bounded functions. Show that $L(f_1)+L(f_2)\leq L(f_1+f_2)$ where $L(F)$ is the supremum of the lower sums of the Riemann integral.  I tried to by contradicction $L(f_1)+L(f_2)> L(f_1+f_2)$ and isoleting $L(f_1)> L(f_1+f_2)-L(f_2)$ and usig the definition of sup.  I also tried to use $\sup(A)+\sup(B)=\sup(A+B)$ but it din't work.  Thanks.


I am wondering if I can get some advice on folks that might have come across this before.  Basically I have a folder with files a user can add / remove which has an iframe beside it so they can view their PDF's etc.  I cannot get excel (probably ppt either) to open up in chrome or a browser. I know I can go through google docs, or send files and get it back different format through their api but for security it is not a solution I want to work with.  example I saw in excel: If I have a fairly loaded excel file, graph, formulas etc., in that file I 'Save As' and convert to htm I can publish option which provides a beautiful htm page with all relative pics, links in a folder.  If I can get php to do something similar this would really make my day.  I played with PHPExcel but it usually spits out a mess, sometimes just crashes because of formulas.  Unless I just haven't sent the time with PHPExcel to figure this out I don't know what else to do.


I just uninstalled my first program in Ubuntu (gtg - getting things gnome) and noticed that it didn't clean after itself. It left .config/gtg and .local/share/gtg  both full with configs and task info  Is that the norm in ubuntu? How to cleanly uninstall programs?


I am writing a work about logarithms and in the table of contents I am confronted with this problem:    There is no space between the number of the sub sub-subsection and the title:  2.3.10.1 Função Exponencial  2.3.10.2 Gráfico da função exponencial  2.3.10.3 Função inversa  2.3.10.4 Função Logarítmica  2.3.10.5 Gráfico da função logarítmica  How can I get the correct spaces?


If the reason that standard deviation is used is that it's easier to just square the distance every time than find the absolute value. Then why is √(E(x-m)^2)/n not used because if I'm not mistaken |x| = √(x^2) and wouldn't that mean that E|x-m| = √(E(x-m)^2) ?


If the solution set of linear programming problem is unbounded, can you find that out in finite steps?

Let $(P) \max\left\{c^T \cdot x \mid A \cdot x \leq b, x \geq 0\right\}$ be an arbitrary linear programming problem and $M$ its   solution set. Is it possible to find out if $M$ is unbounded (in   finite steps)?   I think the answer is yes because we have linear program here and that's why it's possible to tell in polynomial time if it has feasible solution or infeasible. So there must be an algorithm to do this in polynomial time e.g. in finite steps.  But I don't know any algorithm to do this. So far I've read about the simplex method in a book and if I understood correctly, if you run simplex method on the LP above, you will see in the table that the problem is unbounded because there will appear one or more variables where you can pivot these to $\infty$.  But this is only thought is it correct like that? Maybe it's possible with another way too?


The function $f(x)=\int_0^{2\pi}\ln\left(x^2-2x\cos t+1\right)\,dt$

Consider the function $f$ defined by $$f(x)=\int_0^{2\pi}\ln\left(x^2-2x\cos t+1\right) \,dt.$$  I tried calculating values of this function using Wolfram Alpha and I observed that $f(x)=0$ for all $x\in[-1,1]$. How can we prove this fact?


Find the value of the product $$(\sin 1°)(\sin 3°)(\sin 5°)\ldots(\sin 89°)$$ I tried multiplying and dividing by $2$ and then combining and then converting into cosine, but doesn't work out.


Why is it string.join(list) instead of list.join(string)?

This has always confused me. It seems like this would be nicer:  my_list = ["Hello", "world"] print(my_list.join("-")) # Produce: "Hello-world"   Than this:  my_list = ["Hello", "world"] print("-".join(my_list)) # Produce: "Hello-world"   Is there a specific reason it is like this?


Can a mounted fighter with a Lance and another weapon benefit from the Dual Wielding feat?

The rules stipulate that you must use two hands to wield a Lance when on foot (but you can use it with one hand while mounted).  The Dual Wielder feat gives benefits to those who use two non-light one-handed weapons.  If you are mounted with a Lance in one hand and another weapon in the other, can you benefit from the Dual Wielder feat ?


A.s. finite hitting time with an infinite mean

Let $X$ be a discrete-time Markov process on some measurable space $(\mathscr X,\mathscr B)$. Let $B\in\mathscr B$ and  $$ \tau_B:=\inf\{n\geq 0:X_n\in B\} $$ is the first hitting time of $B$.    Let us assume that for any $x\in \mathscr X$  $$ \mathsf P_x\{\tau_B<\infty\} = 1. $$ Can there exist $x$ such that $\mathsf E_{x}[\tau_B] = \infty$? Let us assume that for some $x'\in \mathscr X$  $$ \mathsf P_{x'}\{\tau_B<\infty\} = 1. $$ Can it be that $\mathsf E_{x'}[\tau_B] = \infty$?   No assumptions on the irreducibility (or any other properties) are imposed. I've tried to find a counterexample but didn't manage to do it.


How do I cut a free form object (curve converted to mesh) along the edge?    The goal is to create the smaller (blue outline) object, which looks like it has been sawn off the original one using a defined offset.


I am looking for the syntax of the $d$ with the apostrophe, as in the picture.   I tried at  but wouldn't find.  Any suggestions?


Error getting in button click event in android

I'm generating a click event in android and i used wrote the code in this way  public class LoginActivity extends AppCompatActivity {     Button btnLogin;     EditText inputEmail,inputPassword;     protected String enteredEmail;     String enteredPassword;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_login);        // inputEmail = (EditText) findViewById(R.id.email);        // inputPassword = (EditText) findViewById(R.id.password);          btnLogin.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 Intent i = new Intent(getApplicationContext(), HomeActivity.class);                 startActivity(i);             }});}   but getting the below error  TextInputLayout: EditText added is not a TextInputEditText. Please > switch to using that class instead. 03-11 01:41:52.214 > 21936-21936/com.example.smartlayer.myhive_app I/TextInputLayout: > EditText added is not a TextInputEditText. Please switch to using that > class instead. 03-11 01:41:52.294 > 21936-21936/com.example.smartlayer.myhive_app D/AndroidRuntime: > Shutting down VM 03-11 01:41:52.294 > 21936-21936/com.example.smartlayer.myhive_app W/dalvikvm: threadid=1: > thread exiting with uncaught exception (group=0xb4ae3ba8) 03-11 > 01:41:52.334 21936-21936/com.example.smartlayer.myhive_app > E/AndroidRuntime: FATAL EXCEPTION: main                                > Process: com.example.smartlayer.myhive_app, PID: 21936                 > java.lang.RuntimeException: Unable to start activity   How i solve this error ?


Problem with user inputting a string (Java)

I have an array of questions with an array of corresponding answers. I get the user to answer the question, then compare the answer to the real answer using an if statement. Even if the answer is the correct thing, it still displays the output as incorrect. Please help.  Scanner input = new Scanner(System.in);      int inputOne;     int inputTwo;      String answer1, answer2, answer3, answer4, answer5, answer6, answer7, answer8, answer9, answer10, answer11, answer12;       String[] questions = {"How many continents are there?", "What is the capital of Canada?", "What is the largest country in the world?", "What is the largest ocean in the world?", "How many oceans are there in the world?", "How many countries make up Africa?", "How many countries in the world begin with the word United?", "Where is Milan?", "What is the least populated US state?", "What is the capital of Australia?", "How many countries begin with the letter J?", "Which country has the most lakes in the world?"};                                                                                //      String[] answers = {"7", "Ottawa", "Russia", "Pacific", "5", "54", "3", "Italy", "Wyoming", "Canberra", "3", "Finland"};                                                                                System.out.println("Enter the row and column: ");      inputOne=input.nextInt();     inputTwo=input.nextInt();        if (inputOne < 0 || inputTwo < 0 || inputOne > 2 || inputTwo > 3) {         System.err.println("Invalid input. Input a number between 0 - 2 for the row, and a number between 0 - 3 for the column.");     }         if (inputOne == 0 && inputTwo == 0) {         System.out.println("You chose 500.");         System.out.println(questions[11]);         answer1=input.next();         if (answer1 == answers[11]) {             System.out.println("Correct!");         }         else {             System.err.println("Wrong.");         }     }


I am new to Ubuntu and have a 12.04 operating system. I want to upgrade to 14.04. Can I do this? Also if I can will this replace the 12.04 or will both 12.04 and 14.04 be on here.


How do I beat the desert temple third room?

It's big and empty and I can't get up to the top, what should I do? I can't jump high enough, anti-gravity doesn't seem to do anything either.  My first tactic was to use the octopus summoning crown to create a pile of octopi that I could climb up, but when I teleported to the back of the room they followed me back, trapping me in the entrance.


I have created a page in wordpress which is hosted in localhost. The page containing two drop down lists. one is for selecting category lists from a table called 'category' and the second drop down list is depended on first, that is for selecting the subcategory from the 'subcategory' table. The category id is added to each subcategory value. The value of subcategory drop down list is depend on the category drop down and i tried to implement this using ajax.   Code of my php file named test_ajax.php             jQuery(document).ready( function(){        jQuery('#category').on('change',function (e){            e.preventDefault();           console.log("start1");           var catId = document.getElementById('category').value;           console.log(catId);           jQuery.ajax({               type: 'POST',             url: "/mudratcr/wp-admin/admin-ajax.php",             data: {'key':catId},             cache: false,             success : function (data) {                      jQuery('#sub_cat').html(data);                          console.log(data);                     }           });       });   });   </script> <form  method="post" name="myform" id="myform">

     &nbsp;	     &nbsp;	     &nbsp;

     Category	     <select name="category" id="category" >           <option value="">Select the category</option>            <?php                 global $wpdb;                 $result_fromDB = $wpdb->get_results("SELECT * FROM `category`");                 foreach ($result_fromDB as $cat) {                        echo "<option value='".$cat->id."' selected>".$cat->name."</option>";                 }            ?>         </select>

     Sub Category	     &nbsp;
<select name="sub_cat" id="sub_cat">         <option value=""> Select Sub category</option>     </select>

 </form>   functions.php-- not written the complete code.  function registerFormAction(){          // To handle the form data we will have to register ajax action.          $catid = $_REQUEST['catId']; //catId is the value of category drop down list      }add_action('wp_ajax_nopriv_submitAjaxForm','registerFormAction');         add_action('wp_ajax_submitAjaxForm','registerFormAction');   When i run this page it shows bad request. Can anyone help me. I am a beginner . And i read many articles about ajax and word press, nothing works


Do power fluctuations affect laptops while charging?

I use my laptop for overnight downloads and there has just been a problem with our society/apartment generator due to which a new generator is being used which I think causes fluctuations.  Does a laptop charger/adapter really protect it?  I am really concerned. I also want to know if it can cause serious damage such as requiring new parts.


I'm trying to make my table header fixed, and below it are all the contents that can be scroll.  I want to do something like this:   Can anyone please help me out.   By the way, I'm am only a contributor and I can only edit page via browser.


NullPointerException when insertData() called in android

I am currently working on android stenography project, but at registration time the error was occur   "java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.example.devd.stangnograpyonimage.DBHelper.insertData(java.lang.String, java.lang.String, java.lang.String, java.lang.String)' on a null object reference"   DataBaseHelper.java  public static final String DATABASE_NAME = "STAGNODB"; public static final String TABLE_NAME = "Satgno_Table"; //public static final String COLUUMN_ID  = "ID"; public static final String COLUUMN_USERNAME  = "UserName"; public static final String COLUUMN_PASSWORD = "Password"; public static final String COLUUMN_NAME = "Name"; public static final String COLUUMN_EMAIL = "Email";   public DBHelper(Context context) {      super(context, DATABASE_NAME, null, 1); }  @Override public void onCreate(SQLiteDatabase db) {     try {         db.execSQL("CREATE TABLE " + TABLE_NAME + "(" + COLUUMN_USERNAME + " VARCHAR(50),"                 + COLUUMN_PASSWORD + " VARCHAR(50),"                 + COLUUMN_NAME + " VARCHAR(50),"                 + COLUUMN_EMAIL + " VARCHAR(50));", null);     }catch (Exception e){         Log.e("SQL Table Creation ", "Table Not Created");     } }  @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {     db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); }  public  boolean insertData(String userName, String password, String name, String email){     SQLiteDatabase mydb = this.getWritableDatabase();     ContentValues cv = new ContentValues();     cv.put(COLUUMN_USERNAME, userName);     cv.put(COLUUMN_PASSWORD, password);     cv.put(COLUUMN_NAME, name);     cv.put(COLUUMN_EMAIL, email);     long result = mydb.insert(TABLE_NAME, null, cv);      if(result == -1){         return  false;     }     else {         return  true;     } }   MainActivity.java  public class MainActivity extends AppCompatActivity {     DBHelper myDB;     EditText etUserName, etPassword, etName, etEmail;     Button btnRegister, btnLogin;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         etUserName = (EditText) findViewById(R.id.etUserName);         etPassword = (EditText) findViewById(R.id.etPassword);         etName = (EditText) findViewById(R.id.etName);         etEmail = (EditText) findViewById(R.id.etEmail);         btnRegister = (Button) findViewById(R.id.btnRegister);         btnLogin = (Button) findViewById(R.id.btnLogin);         register();     }     public void register() {         btnRegister.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 boolean isInserted = myDB.insertData(etUserName.getText().toString(), etPassword.getText().toString(), etName.getText().toString(), etEmail.getText().toString());                 if(isInserted==true){                     Toast.makeText(MainActivity.this,"Data Inserted", Toast.LENGTH_LONG).show();                 }                 else {                     Toast.makeText(MainActivity.this,"Data not Inserted", Toast.LENGTH_LONG).show();                 }             }         });     } }


A question similar to , but a little different. We know as mentioned in the tagged question that Polyjuice potion will account for injuries, such as Mad-Eye's in Goblet of Fire. How tight is the timeline though?   Say Person A were to steal a hair from person B to use in Polyjuice potion, and then Person B were to receive some large and noticeable injury, would Person A assume that injury with the potion, or would they need to grab a new hair?


Confusion With Index Notation in Field Theory

I'm working through Quantum Field Theory and the Standard Model by Matthew Schwartz, and am having trouble with part of chapter 3.4. Specifically some of the tensor manipulation is bothering me. While deriving Coulomb's Law from classical filed theory the following expression comes up:  $$\frac{\partial(\partial_{\beta}A_{\gamma})}{\partial(\partial_{\mu}A_{\nu})}g_{\beta\gamma}~=~g_{\beta\mu}g_{\gamma\nu}g_{\beta\gamma},\tag{3.44}$$ Where $g_{\mu\nu}$ is the Minkowski metric. My problem is that writing out $\partial_{\beta}A_{\gamma}$, as a matrix and differentiating with respect to a single element $\partial_{\mu}A_{\nu}$, seems to give:  $$\frac{\partial(\partial_{\beta}A_{\gamma})}{\partial(\partial_{\mu}A_{\nu})}g_{\beta\gamma}~=~\delta^{\beta}_{\mu}\delta^{\gamma}_{\nu}g_{\beta\gamma}~=~g_{\mu\nu}.\tag{3.44'}$$  I think part of my confusion could be related to raised vs lowered indices. Schwartz states that they really don't matter in QFT, but ignoring them honestly seems more confusing than paying attention to them is tedious.


How can I remove myself from India's visa blacklist?

I am a Bangladeshi citizen. Back in 2013, I went to India with a tourist visa and overstayed for four days. It was due to a gout attack in my feet but I don't have my medical papers to prove that.  I applied again in 2015 for a visa, at Dhaka, and they refused my visa and blacklisted my passport, writing some numbers and date on it. Now I am not able to get an Indian visa.  How I can remove my passport from the blacklist and get a new Indian visa? Do I need a Indian immigration lawyer to do this?


What is gender neutral for fraternity/sorority?

Is there a gender neutral form for "fraternity/sorority"? How about "brotherhood/sisterhood"?   Example: As in "If mathematicians were to form a fraternity of scholars, as in yet another alpha beta omega club, their hazing rite would be ...".  suggests such organizations are meant to be gender exclusive. So perhaps no words exist to suggest a club of both sexes which otherwise has chracteristics of Greek organizations.


Is IEnumerable required to use a foreach loop?

I was wondering, when exactly can I use the foreach loop? Do I have to implement IEnumerable?


Is it dangerous to insert (potentially) burnt RAM into a motherboard?

I recently wanted to add some RAM to my old computer, but unfortunately I mixed together "good" RAM with chips that I extracted from a computer that failed after getting too much voltage. I know it sounds like a bad idea to just plug it into a motherboard, so I figured I'd ask first - is there usually any protection in the motherboards against this kind of faulty chips? Also, how likely is that RAM got damaged when computer got his deadly current or failed for internal reasons (something shorted because of dust, failed components etc.)?


Canasta and the rules on invalid melding

Would like to know what happens when you come down with an invalid meld You have now exposed all your cards on the table. I was told you have to leave them down on the table and use them as discards. Until they are all gone. My question is is if you come down with a valid meld can your partner open and put her meld down? Or do you have to wait till all the cards that were exposed are discarded?


Show the intersection of six subgroups of order $24$ is normal in $G$?

Let $G$ be a group with exactly six subgroups of order $24$. Show that   the intersection of these six subgroups is normal in $G$.   My thought is that if we can show these six subgroups are normal themselves, then the intersection being normal follows trivially but I don't know how to show the six subgroups are normal. Perhaps something to do with their order?  What's a good way to prove this theorem?  Note: This similar question, , hints to use conjugation but I'm looking for a more complete answer.


An application of derivatives problem- to show that $f(x+2)-f(x)>2$ for $f(x)=x\cos(1/x)$

I have this function $$f(x) = x\cos(1/x)$$ defined for all $x \geq 1$.      How do I prove that    $$f(x+2)-f(x)>2$$    for all $x\geq 1$?   I found $$f'(x)= \cos(1/x) + \frac{\sin(1/x)}{x}$$ and $$f''(x)=-\frac{\cos(1/x)}{x^3}.$$ How do i use this information?


sum of the series of real numbers of following.

Find the value of the series $$\sum_{n=0}^\infty \frac{n^{2}}{2^{n}}.$$ I tried the problem but not getting the sum. Please help.


How to get the index of an iterator object?

When I'm iterating over an iterator object is there a way to know what index i'm at by calling some function on the object?


Filling in Schengen Visa paperwork: what is my member state of first entry?

While filling in the paperwork for a Schengen Visa with the Embassy of Poland, there is a column that asks for the "member state of first entry" to be entered.    My flight has a 2 hour transit layover in Vienna, and then continues on to Warsaw, Poland. Would the member state of first entry be Austria, or Poland?


A young-looking astronaut has just returned home after a long trip in outer space. He found an old lady in his house and the old lady introduced herself as his daughter. How could this be possible?


I have used the word object but I'd be referring to particles as in the context, the objects would be comparatively very small.  Consider the de Broglie's equation:  $$ \lambda = \frac{h}{mv}  \implies v = \frac{h}{m\lambda}$$  A particle having zero initial velocity would require an impulse of $mv$ to get the required velocity. According to Newton's law of gravitation:  $$ F = \frac{G Mm}{r^2} $$ To get the required impulse, we can have the Gravitational force work for a short interval of time $t$ i.e. $$J = \frac{GMm t }{r^2} $$ To get the required $\lambda$ for the particle : $$mv = J$$ $$\implies \frac{h}{\lambda} = \frac{GMmt}{r^2}$$ $$\implies r= \sqrt\frac{GMmt\lambda}{h} $$  For $M=1$Kg, $m = 1$Kg, $t = 1$s, $\lambda = 650$nm  $r$ comes out to be $2.56 \times 10^{8} $ m  So, at the the given conditions would the wave nature dominate to a mass of 1 Kg ? What would be the consequences ? Would everyday objects behave like a wave ? Would our perception of massive objects change ?  EDIT: The question was marked duplicate of  which it certainly is not. This question is about the consequences of a massive object (Such as a human being) behaving like a wave of a significant wavelength unlike the mentioned question which asks the validity of de Broglie equation on non-fundamental (many-body) object.


Using align* inside a newly defined environment

I would like to take this : \newenvironment{myfind}[1] {{\em Find : #1}\begin{eqnarray*}}{\end{eqnarray*}}  \begin{myfind} {$\lim_{x \to -1} f(x)$}     \lim_{x \to -1^+} f(x)&=+\infty \\     \lim_{x \to -1^-} f(x)&=+\infty \\ \\     \therefore \lim_{x \to -1} f(x)&=+\infty \end{myfind}   and use align* instead, however if I do it breaks, the tags don't match the align starts but doesn't find the closing align* . Now it isn't a huge deal, just curious why it happens and is it still possible to use align* vs eqnarray*.


Take a 401k loan for better investment options?

I recently got into an investment discussion with a coworker about what the best way forward would be if a "trade war" does break out between the US and China.  He is older and has a considerable amount of money locked up in his 401k that he is worried about.  He doesn't like the funds that are offered him through our employer 401k plan and was really wanting to find some kind of commodities fund like precious metals.  He is not optimistic about bond funds because of rising interest rates devaluing the existing bonds that these funds hold.  We have a "Stable Market Value" fund but are unsure if that is a good option.  I got to thinking about it and proposed if it might be a good idea to take a 401k loan that he could then invest in precious metals outside of his retirement account.  The interest he would pay on this loan is a payment to himself that likely would result in a higher return than what any of the available funds would do in a bear market.  He seemed unconvinced that it was a good idea because if he switches jobs then he would have to pay back the loan in full immediately but I pointed out to him that any investment fund is relatively liquid so he could cash out quickly if he needed to pay it back at a moments notice.  I am having trouble seeing issues with this approach.  Is this type of behavior explicitly disallowed with 401k retirement account loans?  Why would this be a bad idea?


Can I get a second masters in the same subject but with a different focus?

I'm doing a ma in economics which isn't very technical. It's focused on macro and international economics. Once I finish this program I'm going to try to apply to another program for an ma in economics that is more technical with a focus in micro and econometrics. I'd be doing this to broaden my knowledge base in the subject and then teach undergrad for a few years. I could maybe pursue a phd if my employer decided to sponsor me for one. Is this something the second university would allow? How would that be viewed? Would it be suitable if my first degree was a ma in Econ but my second degree was something like an ma in quantitative economics? Perhaps a duel degree in Econ and finance/applied math?


If I execute the following simple script:  #!/bin/bash printf "%-20s %s\n" "Früchte und Gemüse"   "foo" printf "%-20s %s\n" "Milchprodukte"        "bar" printf "%-20s %s\n" "12345678901234567890" "baz"   It prints:  Früchte und Gemüse foo Milchprodukte        bar 12345678901234567890 baz   that is, text with umlauts (such as ü) is "shrunk" by one character per umlaut.  Certainly, I have some wrong setting somewhere, but I am not able to figure out which one that could be.  This occurs if the file's encoding is UTF-8.  If I change its encoding to latin-1, the alignment is correct, but the umlauts are rendered wrong:  Fr�chte und Gem�se   foo Milchprodukte        bar 12345678901234567890 baz


I'm planning to develop an app for the iPhone and that app would have to access a couple of SOAP services. While doing some basic checking in the iPhone SDK I was not able to find any support for accessing SOAP services, a bit of Googling lead to the conclusion that there is no support for SOAP in the iPhone SDK.   So if I do want to build that app I'll need to come up with a approach to access SOAP services from the iPhone. What would be the best approach? Any best practices? Did someone already write a library using the functionality that is present in the iPhone SDK to access SOAP services?  (Since the service I need to access is exposed by another party and they only expose it as SOAP, it's unfortunately not an option to switch to another type of interface (e.g. REST based API).  Gero


I am trying to understand the concept of clique graph. So I found this . But I do not understand the example and what "graph intersection" is.     Can somebody explain to me why $K_4$ is a clique graph of $G$?    All I understand so far is that this particular graph $G$ has 4 cliques they are all $K_3$.


Is the question mark misused in affirmative sentences?

For example, I found the following sentence written by a native English speaker (UK) so I'm going to assume that he knows how to put it the right way, although I wouldn't use this form.     I now have a bit more time to fix bugs   etc but I'm open to offers if anyone   wants to help maintain this module   with me?   Is it correct or is the question mark misused here?


Express partial derivatives of second order (and the Laplacian) in polar coordinates

$z=f(x,y)$ where $x=rcosθ$ and $y=rsinθ$  Find $ \frac{\partial z}{\partial x}$ and $ \frac{\partial^2 z}{\partial x^2}$  I'm having big troubles with using chain rule, in particularly the second derivative. Spent 2 hours on this already. What I have...  $ \frac{\partial z}{\partial x}=\frac{\partial r}{\partial x}\frac{\partial z}{\partial r}+\frac{\partial z}{\partial θ}\frac{\partial θ}{\partial x}$. So I'm guessing that $\frac{\partial z}{\partial r}$ and $\frac{\partial z}{\partial θ}$ are unkown? And I will need to use them to differentiate again. Any help is really welcome. This is simply only part of a bigger question.   Full Question:


I'm reading their  on their wiki, and it's still not 100% clear to me.  I'm trying to (and failing) to understand the Entry signal, (and subsequently, the Exit and Combo signals, because Exit "Works the same as Entry but..." and Combo "Combines Entry and Exit").  So here's what it says on Entry signals:     Block Entry Pre-signal      An entry pre-signal prevents trains from entering   the following block, unless there is at least one green exit signal on   the opposite side of the block. This prevents trains from entering the   block until there is an available exit and obstructing it. Note that   depots have a built-in two way signal (it works as an entry pre-signal   in a pre-signal set). If there are no signals designated as exits on   the block directly behind the entry pre-signal, it behaves as a normal   block signal. This is convenient for bi-directional pre-signals where   only one direction needs pre-signal functionality.   Can anyone please provide a clearer explanation, and perhaps tell me how do Exit and Combo relate to it?


I sent this problem to Presh Talwalkar who suggested me to send it to this site. I tried many things but was not able to find the correct solution.   I made various segments trying to get an equilateral triangle similar to the Russian triangle problem, but no success.  I also tried to flip the triangle UFO over side NO but again no success.   I tried to find like triangles, but not enough.  Could you please give me a hint?   Thanks, R. de Souza


In circular motion is the angular velocity vector always perpendicular to centripetal acceleration?  Are there any exceptions? Why or why not?


New York state income taxes for out of state remote worker

I am looking at taking a job offer from a company based in New York. The position is fully remote and I live in Utah. I have been trying to find information on what my state income taxes will look like if I take the job. What I find online is very confusing. I was hoping for some clear-cut information on what taxes I would be paying. Specifically, would I pay any New York state income tax? I assume I would pay Utah state income tax no matter what since I am a Utah resident. Bonus: If I do pay New York taxes, what rates would I be paying?


Need help running Ubuntu on Oracle Virtual Box

I've been using Windows for years and thought I'd give Linux a try. As listed in the title, I'm trying to run Ubuntu through Oracle's Virtual box. When I go to the Install for Ubuntu, I get a black screen saying that the kernel version I am currently using is i686 rather than the x86-64 CPU...  Where do I go from here?


I am retrieving articles from my blog to my webiste from the mysqlDb. The articles are displayed just fine on the blog but on the website some characters such as ţ,ş,ă etc are replaced with a black square with a question mark inside . I have "UTF-8" set on my document the same as on the blog.


I may be going about this the wrong way.   I want to create a Mobius ring. I managed to do it by twisting (rotating using proportional editing) then using a curve modifier. But the faces were full of creases no matter how I smoothed them.   I then tried to extrude a plane converted to a curve which was getting there. But I cannot see a way to join two edges of the Mobius ring with a surface. I would appreciate any pointers.  Stephen


Embeddings $A → B → A$, but $A \not\cong B$?

Are there any nice examples of structures (groups, modules, rings, fields) $A$ and $B$ such that there are embeddings $A → B → A$ while $A \not\cong B$? I would especially like to see an example for modules $A$, $B$. Or is it even true that the existence of such embeddings implies $A \cong B$?  Background: I’m correcting exercises and I wanted to give a counterexample to a failing argument. (Well, I’m not certain it fails, but I’m pretty sure it does and it’s not sufficiently justified at least.)


What is this yellow and white mass inside my red cabbage?

My wife cut a head of red cabbage in half and found this yellow and white organic mass inside it. We never saw anything like it before. Can anyone tell me what it is? Would it have been safe to eat? Could we have just cut off this portion of it and used the rest? We ended up playing it safe and throwing the whole head away.


Can angular velocity and angular accelaration about any two points of a rotating body differ?

For angular velocity:- Suppose we have a disc that is rolling without slipping on a rough surface and we define the angular velocity to be omega about the center of mass. Would the points of the body be also seen to rotate with the same angular velocity about a random point taken on the body? I have seen a case in the past where a particle revolving in a circle has angular velocity omega bout its center but has an angular velocity about a point on its circumference equal to half of that about the center. Shouldn't such a case follow over to a continuous mass distribution case?  For angular acceleration:-  So for a body rotating with a certain angular acceleration while rolling without slipping about its center of mass, is it necessary that from any other point on the body (say a disc) the same angular acceleration be observed? What about pseudo torques that would come into play for the other points on the disc which are accelerating with a_com (translation acceleration of COM) and their required centripetal acceleration? I am particularly interested in analyzing and proving these cases for general points on the disc


Arduino IDE crashes before it opens on Ubuntu 16.04

I currently installed Arduino 1.8.6 in Ubuntu 16.04, but it crashes before it opens. It worked fine for 2 days, and now it crashes. Please, can anyone help?


Render scene with background jpg in python

Fairly new to python and blender, so apologies if this is super basic. I've searched around and haven't found an answer.  I'd like to render some procedurally generated objects with a background image. In case it makes a difference, I'm using:    I don't need any interaction between the generated object and the background image so I've left a skeleton script I'm using to render below  import os DIR ="/home/path/to/folder" bg_file = os.path.join(DIR, "myimage.jpg") bg_img = bpy.data.images.load(bg_file) bpy.data.scenes['Scene'].render.filepath = os.path.join(DIR, "image") bpy.context.scene.camera = bpy.data.objects['Camera'] bpy.ops.render.render(write_still=True)   I managed to find some scripts that seem to be trying to do what I want online, but none that I could get to work. e.g.  import bpy filepath = "/home/path/to/folder" img = bpy.data.images.load(filepath)  for area in bpy.context.screen.areas:     if area.type == 'VIEW_3D':         space_data = area.spaces.active         bg = space_data.background_images.new()         bg.image = img         break  cam = bpy.data.cameras.new("Camera") cam_ob = bpy.data.objects.new("Camera", cam) bpy.context.scene.camera = cam_ob bpy.context.scene.objects.link(cam_ob) bpy.context.scene.objects.active = bpy.context.scene.objects["Camera"]   Any thoughts/tips would be greatly appreciated!


How to use a slash to describe two options, one of which is made up of two or more words?

I want to say:  Please, check out our handbook/knowledge base.  ...but it can be interpreted in two ways:  Please, check out our (handbook/knowledge) base. — as if there is a "handbook base" and a knowledge base. Please, check out our handbook/(knowledge base). — the meaning I'm after.  I thought that maybe I should put spaces around the slash to better separate the two choices:  Please, check out our handbook / knowledge base.  ...but I'm not sure that does it. I checked out  on the topic and it didn't answer my question.  Is it possible to convey the right meaning with a slash, or should I just avoid it altogether?


How to delete a file that is "being used by a program" but is not locked yet still doesn't delete

I'm trying to delete a driver that is giving me issues with some games, I've tried LockHunter, System Monitor, Unlocker, Proccess Explorer but either none of them can delete it nor can they find what program is using the file, can I get some help?


I want to click macro pictures, so was wondering closeup filter for my 18-55mm and 50-200mm as a cheap macro solution. Lately I've been doing more macro work, so I've been thinking about cheap solutions. I mostly take macro shots of insects.  I know DOF is slim at the best of times in macro work, but my question is this: Would there be any difference in DOF when using a closeup filter vs a dedicated macro lens? Or better is closeup filter a best option for cheap macro setup?  Any suggestion will be appreciated.


Is there a way to use the over function in r to retrieve all polygons that do NOT have points in them?

I have used the over function to retrieve the polygons of a map that contain points. I'am wondering, for my own learning purposes, if there is a way to use the over function to retrieve the polygons that don't have points in them. Is this possible?  Here is some code to return polygons of a map WITH points in them:  coordinates(data) <- ~ long_xcord + lat_ycord  # Set the projection of the SpatialPointsDataFrame using the projection of the shapefile. proj4string(data) <- proj4string(shapeData)  p <- over(data, shapeData, returnList = TRUE)  p <- do.call(rbind.data.frame, p)   can the above be modified to return the polygons that DO NOT have points in them?


win ftp works in File Explorer, don't work in PowerShell, "unknown host"

Well this is bizarr, I opened File Explorer (windows 10), did new network location, ftp://192.168.1.103:2121, a window for the remote FTP server opened up and I DLed some files from the server, no problem. Then I did PowerShell as administrator, turned off windows firewall, and got this:  PS C:\Windows\system32> ftp ftp> open 192.168.1.103:2121 Unknown host 192.168.1.103:2121  I pinged the server's address and got a valid reply. I downloaded and ran some other ftp client and it worked fine. Please help if you know about this. I need it for a batch program.


Are there anyother method under research for curing rabies?

Why is rabies incurable after onset of symptoms? Although we administer HRIG (lyssa virus antibody) to the patient, why doesn't it work after onset of symptoms? And are there any other successful treatments for rabies like that of Milwaukee protocol which are under research? I also want to know how successful  is Milwaukee protocol so far?


How to know / test a supercapacitors really store the energy

If i charge a supercapacitor, how do i know or test this supercapacitors that it really store the energy (like a battery) and doesn't discharge ? Can anyone give some reference or method?  Can i use the multimeter to see whether the supercapacitor have voltage or not?if it has voltage ,then it does charge the energy?


How can i flip a string in c# application like for example : "AMBULANCE" text that is seen as mirror image.I dont have any idea to where to start with .im using c# forms application  I have tried for reversing the string ,but is there any possibility to flip a string (like mirror images)?  Like : ƎƆИA⅃UᙠMA  This is not reversing as in


Cannot install Ubuntu in VirtualBox due to "this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot" error

I was trying to install Ubuntu 12.04 in VirtualBox 4.2.12r84980. I see    this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot   But I am using a 64 bit Windows 8, and trying same .iso for trying Ubuntu. Then what is the problem?


How to get rid of the dead creatures in skyrim?

I can't figure out how to get rid of the dead bodies. I reload and everything and they stay there. How to get rid of them?


and I dont know how to get back. Actually I intended to cut the sphere into half by box selecting one half. Accidentely I pressed CMD B instead of just B. Redo not possible, the rest of the model is not visible anymore.


Ordered Fields and the Completeness Axiom

I have the following problem that I am stuck on:  Let $\mathbb{F}$ be an ordered field with the property that if $[a,b]$ is any closed interval and $f:[a,b]\to\mathbb{F}$ is any continuous function such that $f(a)>0$ and $f(b)<0$, then there is an $x\in (a,b)$ such that $f(x)=0$. Show that such a field $\mathbb{F}$ has the least upper bound property.   My Strategy/Thoughts: Am I correct in thinking that this is just showing that the Intermediate Value Theorem implies the Completeness Axiom? If so, how do I go about it? I was thinking that I could assume that the Intermediate Value Theorem holds for some $f$ on the field, and assume that the Completeness Axiom does not necessarily hold. Then I think I could reach a contradiction by constructing a function $f$ which is not continuous. Would that work?  Thanks in advance for any help and suggestions!


Inline  Elements with float do not position themself within its parent

Inline
 elements are not positioning themselves within their parent div. It is ok when I set overflow:auto on the parent div but not without it.    Please help me understand it, how they are getting out of their parent.   Here is my code:    body {   margin: 0;   padding: 0; }  div {   background-color: black;   color: red;   padding-top: 2px;   padding-bottom: 2px; }  li {   display: inline;   float: right; }  ul {   list-style-type: none; }
BUSINESS NAME

HOME

SERVICE

ABOUT

CONTACT


Ability to update profile from the Stack Exchange Android App

It would be nice to update the profile page from within the app.  Perhaps not many people update their profiles more frequently, but when required to do so, I would prefer to do it from the app instead of the mobile browser.


What is the number of all $n\times n$ matrices with entries in $ \{0,1\}$ that in every row and every column has at least one 1?

What is the number of all matrices $n*n$ with entries in $ \{0,1\}$ that in every row and every column has at least one 1?  I think maybe it is easier to count those matrices that has some null-row or null-columns. Any ideas?  Thanks in advance.


I was wondering if it was possible to express infinite divergent sums using set theory (I do apologize if some of the notation is improper)  I wanted to consider $$\sum_{n=1}^{\infty}n$$ i.e. the sum of all natural numbers. I thought you might be able to express this by adding up the cardinality of sets with n elements. So  $card(\{1\}) +card(\{2,3\})+card(\{4,5,6\})+...$ and so on. This then would equal  $card(\{1\} \bigcup\{2,3\}\bigcup\{4,5,6\}\bigcup...)=\mathbb{N}$  Hence $$\sum_{n=1}^{\infty}n=\aleph_0$$  Is my math correct and can this be generalized to compute other infinite sums, even those which involve terms with decimals?


Convert Shimano Ultegra 6870 rear mech from short cage to medium cage

I would like to ride with a 11-32 cassette but I have a short caged Ultegra 6870 derailleur. Can I just swap the cage? Or are there other differences between the derailleurs?  Cheers


VLDB with large quantity of data file imports

I am a little out of my league with this scenario and hope this community can help get me on the right direction.  I have recently been tasked with re-designing and implementing a database application where the company I work for processes a large quantity of text files (sizes ranging from a 100MB to 3GB).  We currently process approximately 600 of these files per year.  This data needs to be accessible after our initial processing.  The current implementation has each file being imported via Application bulk load or SSIS to a "temp" database as individual tables.  I would like to keep this process in place as it gives a good entry point for when manual entry into processing is needed.  I am in the process of trying to create a new MS SQL Server installation and architecture, and am looking for advice/articles which would cover a similar scenario as to best practices (partitioning, filegroups, etc.).  I have worked in databases for a few years, but not at this level.  So if you have any experience in this type of scenario or know of a good article or book you could point me to, I would be extremely grateful.  I just need a nudge in the right direction.  Thank you in advance.


Can I safely disable WinHttpAutoProxySvc if I don't have a proxy?

I noticed that this service starts and stops regularly seeking for proxies,  but in the service description says that it implements the HTTP client stack.  Is it used for something more than proxy autodiscover? Will I break something by disabling it?


How to reset BAT file association in Windows 10

I've seen several answers for earlier versions of windows, but not 10 -- I'm runnning Windows 10.0.17134, if that matters.  It's currently set so that, on double-clicking a BAT file, it opens in Notepad++, so it's clearly something I did inadvertently (probably trying to set a program for editing, as opposed to opening). I've looked in "Settings / Choose default apps by file type" and see that BAT and CMD are both set for Notepad++, but I don't know how to reset it. If I click on the current setting, it allows me to choose Notepad++ (again, I guess) or "find an app in the app store"; after a LONG time searching (I guess) it says there are no results for ".bat". There's nothing about restoring the default.  How can I get this done?


Why are the domains for $\ln x^2$ and $2\ln x$ different?

If I have a function like this $f(x)=2 \ln(x)$ and I want to find the domain, I put $x>0$. But if I use the properties of logarithmic functions, I can write that function like $f(x)=\ln(x^2)$ and so the domain is all $\mathbb{R}$ and the graphic of function is different. Where is the mistake?


Wanted to know the correct way of using sed command by inserting text from one file to another?

Due to some problems in this site when it comes to displaying. I am using '{' instead of '<'.  Here is my sed command:  sed 's/{head/*backbutton_and_scroller_script.txt*{head/' report.usc20.txt   I want to insert text information from inside 'backbutton_and_scroller_script.txt' into 'report.usc20.txt' file in front of the head tag. How can I properly point towards the backbutton_and_scroller_script.txt file in my sed command? My current code is displaying the file name backbutton_and_scroller_script.txt infront of the head tag inside report.usc20.txt rather than the text that is inside the backbutton_and_scroller_script.txt.


How can I check if my Element ID has focus?

Let's say I have the following div that gets focus after a certain condition is met:
Some Text
   I want to create a handler that checks whether or not that div has focus, and when it evaluates to true/focus is on the div, do something (in the example below, print a console log):  if (document.getElementById('#myID').hasFocus()) {             $(document).keydown(function(event) {                 if (event.which === 40) {                     console.log('keydown pressed')                 }             });         }   I'm getting an error message in the console that says:  TypeError: Cannot read property 'hasFocus' of null  Any idea what I'm doing wrong here? Maybe the way I'm passing the div Id?


Using Debian 8.7 I have VPS server with allocated ipv6 range: 2a01:xxxx:xxxx:xxxx::2/64  ifconfig looks like this     Link encap:Ethernet  HWaddr 52:54:a2:01:9a:8c    inet addr:172.31.1.100  Bcast:172.31.1.255  Mask:255.255.255.0    inet6 addr: 2a01:xxxx:xxxx:xxxx::2/64 Scope:Global    inet6 addr: fe80::5054:a2ff:fe01:9a8c/64 Scope:Link      I can ping the server using primary IPv6 2a01:xxxx:xxxx:xxxx::2/64    ping6 2a01:xxxx:xxxx:xxxx::2   PING 2a01:xxxx:xxxx:xxxx::2(2a01:xxxx:xxxx:xxxx::2) 56 data bytes   64 bytes from 2a01:xxxx:xxxx:xxxx::2: icmp_seq=1 ttl=59 time=1.20 ms   64 bytes from 2a01:xxxx:xxxx:xxxx::2: icmp_seq=2 ttl=59 time=0.466 ms     However, when I try to use other IPs assigned I get no response. e.g. ping6 2a01:xxxx:xxxx:xxxx::3 ping6 2a01:xxxx:xxxx:xxxx::4 ping6 2a01:xxxx:xxxx:xxxx::5 ping6 2a01:xxxx:xxxx:xxxx::6    This is not limited to ping but also to any other request.  I would like to serve apache from multiple IPv6 addresses (not whole range). Where/ how should I change configuration to listen on more than 1 IPv6 address? Both HTTP and ping should work (Ping is used for uptime checks for specific services).


Non-residential vs non–residential (short or long hyphen)

Should there be a short or long hyphen separating the two words?  Non-residential vs non–residential


Using htaccess to internally and externally redirect a page at the same time

I've been trying to figure this out for two hours, and I give up. I want to externally redirect about.php to about/, and also have about/ internally redirect to about.php  RewriteRule ^about/$ /test/about.php [L]     RewriteRule ^about\.php$ /test/about/ [R,L]   Both of these rules work fine by themselves, but when they're combined they cause an endless loop (since each rule undoes the other one).  How can I combine them without causing an endless loop?  EDIT: In the "related" tab it shows a question that's exactly the same as this that I just couldn't seem to find myself through Google, and the solution works perfectly:    This:  RewriteRule ^about/$ /test/about.php [L,E=CLEAN_CONTACT_URL:1] RewriteCond %{ENV:REDIRECT_CLEAN_CONTACT_URL} !1 RewriteRule ^about\.php$ /test/about/ [R=301,L]   works exactly the way that I wanted, I just didn't know how to use RewriteCond to do something like this. Now I'm glad I posted my question!


! am a newbie in ios.I have a texfield for entering mobile number.And here i have to limit characters to 10 such that the user shouldn't be able to type more than 10 characters. is it possible.please help me.Thanks in advance


Complex variables in classical mechanics

In quantum mechanics complex numbers are absolutely essential because of the relation $$[\hat q_i,\hat p_j]=i\hbar\delta_{ij}.$$ But is complex number also essential anywhere in the formalism of classical physics, except for some convenience of mathematical calculations? Is there any example from classical physics where there is no other way out except to introduce complex variables? Is there any strong reason by which I can say that  complex number are unavoidable in classical physics too?


What is the significance of "shared centiMorgans"?

I've had my autosomal DNA tested and the site I've used (FamilyTreeDNA) tells me that I have a "Shared centiMorgan length" of 48.08 with my closest match and the "longest block" is 28.89. FamilyTree DNA says:     Based on the extensive Family Finder database, it is rare for two genuine genealogical cousins to have a largest shared segment of less than 7 cM    but I can't find anything else that tells me how to interpret the number.