Unzip: find a string and get inside filename

I have a list of zip files containing themselves multiple files. Like this : | archive-1.zip     | file1.xml     | file2.xml     | file3.xml --> contains myStringToFind     | file4.xml | archive-2.zip     | file1b.xml     | file2b.xml | archive-3.zip     | file1c.xml     | file2c.xml  My goal is to find a string across the files within those zip archives. What I've achived so far is that : for i in archive*.zip;do unzip -c "$i" 2>/dev/null|grep -l myStringToFind; if test $? -eq 0; then echo $i;fi; done|grep archive  Output: archive-1.zip .With this I'm able to find the archive containing my string. The next step is to find the name of the file within the archive, but I'm unable to find a way to do this. My expected output would be archive-1.zip file3.xml Any help would be appreciated.


When is it appropriate to create a new table in the WordPress database?

For a client we'll need 29,000 terms (all the highschool's in the US) and each term needs 6 meta items (address, phone...). My initial thought was to store the term meta information as suggested  but after looking through it again I will be using lots of terms and I wonder if it will overload the options table.  Is there a good time to create a new table? Would this qualify? Other thoughts on how to relate the HS that a person attends to the 'post' that will be their academic profile?  It was  that I make the 'terms' a Custom Post Type. I'm not opposed to that either but I fail to see how I'll relate the CPT to multiple 'authors' since a school will have more than one student that attends it. Because of the multiple ownership of the content terms just seemed to fit better.


I am a US citizen wanting to Drive an India registered car from India to UK - Who gives me the Carnet?

I am a US citizen and live in India and drive Indian registered cars. I want to drive these cars from India to the UK next year. Who gives me the Carnet? I hear Carnets are not given to foreign citizens in India.


Let $f$ be a differentiable function $f: \mathbb{R} \mapsto \mathbb{R}$ such that   $\forall x, y \in \mathbb{R}, \, f(x + y) = f(x)f(y)\tag{1}$  If $y=0$ then $f(x + 0) = f(x)f(0)$ which is just $f(x) = f(x)f(0)$. Then if $f(0) = 0$, we have $f(x) = f(x)f(0) = f(x) \cdot 0 = 0$ for all $x$.   If $f(0) \neq 0$ instead then $f(0) = f(0 + 0) = f(0)f(0) = f(0)^2$ implies that $0 = f(0)^2 - f(0) = f(0)(f(0) - 1)$ which has solutions $f(0) = 0$ or $f(0) = 1$, but since we assume $f(0) \neq 0$, it must be the case that $f(0) = 1$.   Furthermore let's assume the possibility of some real $z$ such that $f(z) = 0$. Then for all $x$ we have $f(x) = f(z + (x - z)) = f(z)f(x-z) = 0 \cdot f(x-z) = 0$. In other words, if the function equals $0$ at one point, it is zero for all of them. The contrapositive is that if the function is nonzero for any value, then it does not equal $0$ anywhere else. Therefore in the case where $f(0) = 1$, we have $f(x) \neq 0$ for all $x \in \mathbb{R}$.  Going forward we assume the case where  $f(0) = 1 \tag{2}$  By induction, $f(x)^n = f(nx)$ for all positive integers $n>0$ as follows.   Base case with $n=1$, we have $f(x)^1 = f(1 \cdot x)$ which is $f(x) = f(x)$ which is trivially true.  Inductive step we assume $f(x)^n = f(nx)$ and we must show that $f(x)^{n+1} = f((n+1)x)$.   $\begin{align} f(x)^n &= f(nx) & \text{By inductive hypothesis}\\ f(x)^n f(x) &= f(nx)f(x) \\ f(x)^{n+1} &= f(nx + x) & \text{By equation (1)}\\ f(x)^{n+1} &= f((n+1)x) \end{align}$  Thus for the positive integers we prove the result:  $\forall n \in \mathbb{Z^{+}}, \, f(x)^n = f(nx)\tag{3}$  Next we see that $f(x) = f(\frac{x}{2} + \frac{x}{2}) = f(\frac{x}{2})^2$ and since any real number squared is non-negative, we combine this with our assumption that $f(x) \neq 0$ for all $x \in \mathbb{R}$ and so it follows that   $\forall x \in \mathbb{R}, \, f(x) > 0 \tag{4}$  so we are free to divide by $f(x)$ values safely without concerning ourselves with division by $0$ issues.  Since $1 = f(0) = f(x + (-x)) = f(x)f(-x)$ it follows that  $\forall x \in \mathbb{R}, \, f(x)^{-1} = f(-x) \tag{5}$  Then for some negative integer $n < 0$ we have $f(x)^n = (f(x)^{-n})^{-1} = f(-nx)^{-1} = f(nx)$ by $(3)$ and $(5)$. Therefore:  $\forall n \in \mathbb{Z^{-}}, \, f(x)^n = f(nx)\tag{6}$  We can also directly show that $f(x)^n = f(nx)$ holds for $n=0$, since $f(x)^0 = 1 = f(0 \cdot x) = f(0)$ which holds by assumption $(2)$. Now we can conclude:  $\forall n \in \mathbb{Z}, \, f(x)^n = f(nx)\tag{7}$  Now if we have $n \neq 0$ we can take the $n$th root of both sides of equation $(7)$ and get $f(x) = f(nx)^{1/n}$ which also implies that $f(x/n) = f(x)^{1/n}$.   Then for integers $m, n$ with $n \neq 0$ we have $f(m \frac{x}{n}) = f(mx)^{1/n}$ using this result, and then applying equation $(3)$ we transform it to $(f(x)^m)^{1/n}$ or $f(x)^{m/n}$ (again for $n \neq 0$).  If we let some rational $r = m/n$ then we see that  $\forall r \in \mathbb{Q}, \forall x \in \mathbb{R}, f(rx) = f(x)^r \tag{8}$  By setting $x=1$ it is revealed that   $\forall r \in \mathbb{Q}, \, f(r) = f(1)^r \tag{9}$  And then there's some theory I don't understand that I can apply here when $f$ is continuous (as assumed up front since we say $f$ is differentiable) that lets me jump to  $\forall x \in \mathbb{R}, \, f(x) = f(1)^x \tag{10}$  Is my proof right so far?


She is not a person who you can count on.   or     She is not a person whom you can count on.   Which one is correct and sounds more native ? Please give an explanation for your answer


How to get the prime factors of big number on python?

I want to find largest prime factor of 600851475143.  But  in my code doesn't work for 600851475143 , too big number .  What should I do? Is there any more efficient algorithm?  list=[] for i in range(1,600851475144):     count = 0     if 600851475143 % i == 0:         for x in range(2,i):             if i % x == 0:                 count+=1                 print(count)         if count == 0:             list.append(i)         count=0 print(list)


I'm a student in an elementary linear algebra course. Without bashing on my professor, I must say that s/he is very poor at answering questions, often not addressing the question itself. Throughout the course, there have been multiple questions that have gone unanswered, but I must have the answer to this one question.  "Why are some vectors written as row vectors and others as column vectors?"  I understand that if I transpose one, it becomes the other. However, I'd like to understand the purpose behind writing a vector in a certain format.  Taking examples from my lectures, I see that when I'm trying to prove linear independence of a group of vectors, the vectors are written as column vectors in a matrix, and the row reduced form is found.  Other times, like trying to find the cross product or just solving a matrix, I see the vectors written as row vectors.  My professor is very vague on the notations and explanations, and it bugs me as a person who needs to know the reason behind every small thing, why this variation occurs in the format. Any input is greatly appreciated.


I'm trying to come up with a word that describes a male aged from 20 through 25. Man feels too adult like and Young Adult feels like a teenager. The type of word I'm looking for is someone not yet middle aged, but is on his way there, but still retains some youthfulness.   Thank you for your response.   Just to add on, any word using modern terms probably won't work, as it is being used in something set in a medieval / fantasy realm.     An edit to explain how. I am asking for a word that is referring to a male who is older than a young adult who still has a sense of youthfulness. An example would be someone about to graduate college, someone who feels too old to be called young (adult) but does not have the experiences or age yet to be considered middle aged.


Access to original contents of mount point

On my headless NAS I have sdf1 (a flash-card) mounted as / while /home is mounted from lv00 (an LVM volume backed by a software RAID). To be able to access the machine when the RAID fails, I have a copy of my ssh public key, etc. in /home/foo/.ssh on the file-system from sdf1. To update the files that are hidden by the mounted /home I normally remount lv00 in /mnt/home, do what I have to do, and then move lv00 back in place. Is there a way to achieve this without unmounting /home?


Leviton Vizia 24 hr timer - How do I install?

I bought a Leviton timer and when I went to install it, I ran into a problem. The outlet box has ONLY three wires - Black, White and a bare copper ground. Looking at the wiring diagram for the Leviton timer, I don't know where the RD wire is supposed to be connected. I connected the Black from the box to the Black on the timer, and similarly White to White on the timer. When switched on, the timer lights up and I can hear a click but the outside light does not turn on. That's because the Red wire from the timer is not connected. Can someone please help me figure this out? I am replacing the currently installed timer with this Leviton one. But the previous timer had only 3 wires - black, white and ground. So I had no problem installing that previous one. Am attaching a pic to show my arrangement.


If my teacher says :     "I am closing down all online assignments up to Module 3"    Is she closing Modules 1, 2, AND 3, or just Modules 1 and 2 ? Thanks everyone!


Where does Internet Explorer save the files which I have opened?

I opened an Excel file from Internet Explorer, worked on it for 2 hours and saved it. But now I can't find the file. The file was really important. Is there any way I can retrieve it? I'm using Windows 7 Ultimate.


Removing whitespace from a list in python

I am currently making a cipher program in python but I can't seem to solve this one problem:  word = ['a', 'b', 'c'] -----enciphering process------- message = ['d', 'e', 'f']  print message[x],   What I want to happen:  'def'   What actually happens:  'd e f'   I know why the spaces are there, but I can't seem to get rid of them, I've tried using strip, replace, re.sub, message(map whatever I don't remember), and "".join. Those all work with a pre-determined list but not when I don't know what the list is going to be.  Help please.  *EDIT  What I meant was something like this:   Word = raw_input("Enter a word  ") Message = list(word)  w = raw_input("Enter a number  ") w = int(w) n = len(message)  Letters = ['a', 'b', 'c', 'd' and so on until z]  For y in range(0,n):     For index in range(0,26):        X = index + w        If x > 25:          x = x - 26        If message[y] == letters[index]:          print letters[x],   Not sure how to get rid of the spaces because I don't know what the message is gonna be


To Disable CTRL+SHIFT+C in Google Chrome of Ubuntu?

This keybinding is very irritating because it is very close to the copy-command Ctrl+C. Partially, the problem can be explained by my keyboard layout Dvorak such that the browser may consider the keybinds as CTRL+I.  How can you disable the CTRL+SHIFT+C binding in Google Chrome?


is k-means generalizable at any distance?

The classical version of k-means uses the Euclidean distance in the first step, and the arithmetic mean (the value center) in the second step. Is k-means generalizable to other distances and other operations than the arithmetic mean so that it converges? There are special cases like k-median, where the distance is city-block, and the center's value is the median of the cluster points.


vs code update what should i do for next?

i am using vs code. after using few days it says me update available to download so i downloaded the update but what should i do next to apply these update the update size in about to 64 MB in a zip file containing different files with different extension. i am new to Ubuntu to not able to apply these update. As i download the update it show me same file which i have been  downloading previously.  the downloading link is given here :


so kind of a small problem, but i find the Regex expressions very hard to understand, i've been trying to look for a solution to my problem. So, i have a class where i handle File types by their ending extensions as such: public static bool IsPythonFile(string pattern)     {         if (Regex.IsMatch(pattern, ".py$", RegexOptions.IgnoreCase) ||             Regex.IsMatch(pattern, ".pyw$", RegexOptions.IgnoreCase) ||             Regex.IsMatch(pattern, ".py3$", RegexOptions.IgnoreCase) ||             Regex.IsMatch(pattern, ".pyi$", RegexOptions.IgnoreCase) ||             Regex.IsMatch(pattern, ".pyx$", RegexOptions.IgnoreCase) ||             Regex.IsMatch(pattern, ".py*$", RegexOptions.IgnoreCase) ||             Regex.IsMatch(pattern, ".pyw*$", RegexOptions.IgnoreCase) ||             Regex.IsMatch(pattern, ".py3*$", RegexOptions.IgnoreCase) ||             Regex.IsMatch(pattern, ".pyi*$", RegexOptions.IgnoreCase) ||             Regex.IsMatch(pattern, ".pyx*$", RegexOptions.IgnoreCase))         {             return true;         }          return false;     }  So the '*' (star sign) that i'm trying to implement comes from a Tabcontrol, when Text_Changed is triggered, signifying that the file has been modified. I want to include '.py' or '.py*' at the ending of the end of the Tabpage text, and i would want to return true in this bool. Does anybody know the pattern? Thanks for the help.


Does $\sin n$ have a maximum value for natural number $n$?

In formal, does there exist $k\in\mathbb{N}$ such that $\sin n\leq\sin k$ for all $n\in\mathbb{N}$?


what exactly is this UKVI service MUP product and why it is asking for another €66.88 after I have paid my visa fee?   I am applying in the Netherlands  thank you


Wondering if the use of "either ...nor " is correct

Taken from BBC   Interim President Oleksandr Turchynov described the referendum as a "great farce" which "will never be recognised either by Ukraine or by the civilised world".  My try is   Interim President Oleksandr Turchynov described the referendum as a "great farce" which "will never be recognised neither by Ukraine nor by the civilised world".


It'd be nice to somehow distinguish comments that were expanded from those that were shown by default.  Sometimes I'll read the first few comments which have been voted up and then hit expand to show remaining comments (some of which might also be voted up, just less I guess). Once expanded, it's not obvious which ones I've already read and I pretty much have to rescan the entire list.  This is similar to the old MS Office menus which would initially show recently used options but after a delay would show all options.   Some unobtrusive highlighting or bordering or something--maybe just a dash in the number of votes position or something tiny and subtle...


I want to create a list that contains the monomials up to degree n  basis = [lambda x:x**i for i in range(0,n+1)]   This however creates a list of n functions, but all the same one (of degree n) and not of degree 0,1,2,...n  I tried without list comprehension as well:  basis = [] for i in range(0,n+1):     basis.append(lambda x:x**i)   but with the same result. Substituting the lambda function by a classic function definition also did not fix it.    I checked , but that did not help, since I don't want to store function values, but the function itself. For example, I want to be able to call  basis[0](34)   and this should return  1


I'm new to QGIS.  I'm trying to add a map just of the State of NJ. I figured out to load Google street map, but that's as far as I got.  My goal is to get a Map of NJ with its counties. I found a few maps online that are PDFs. Not sure how to bring it into QGIS and still be able to  geocode with that.


Is there a way to change language in Trello?

Because seriously, looking at updates like "User added Enheter for nytenkning" or something (random typeish to illustrate) looks ridiculously stupid. I tried looking at the options, but there was nothing hinting to a way to do so.


What is the maximum size of a web browser's cookie's key?  I know the maximum size of a cookie is 4KB, but does the key have a limitation as well?


WCF Service Returning "Method Not Allowed"

In the process of developing my first WCF service and when I try to use it I get "Method not Allowed" with no other explanation.   I've got my interface set up with the ServiceContract and OperationContract:      [OperationContract]     void FileUpload(UploadedFile file);   Along with the actual method:      public void FileUpload(UploadedFile file) {};   To access the Service I enter  but I get the "Method not Allowed" error  Am I missing something?


Old Fantasy Series about a group of college roleplayers who are transported to the alternate world of their professor

The stories were based on a group of college roleplayers who were transported to the alternate world of their professor (the Dungeon Master). There were multiple books in the series.   My memory of the stories has faded but I can remember slavers and the college kids introducing gunpowder to this new world.


I have Windows 7 Home Premium (64 bit) OS installed. My motherboard is able to handle up to 32 GB of RAM.  I recently upgraded my computer to 20 GB of RAM, but the computer says installed RAM is 20 GB (16 GB usable).  I have four slots on the MB, and I installed two 8 GB RAM closest to the CPU and two 2 GB RAM on the remaining slots.  I made sure the RAM are the same (DDR3 1600 MHz)  What am I doing wrong? Why am I seeing this issue in my computer's Control Panel Home?  Just in case it matters, I also installed GTX 770 GPU 2 GB memory.  Here is the specification on my motherboard: .


I have a base interface FunctionCredential:  public interface FunctionPrivilege {}   and several other interfaces extending this interface:  public interface ReadSomethingPrivilege extends FunctionPrivilege {} public interface WriteSomethingPrivilege extends FunctionPrivilege {} ...   The interfaces are used as marker interfaces only (no implementations). I want to discover interfaces (all reachable using the current context classloader), not check known interfaces.  Within a Java application, can I somehow discover (list) those interface classes at runtime? If so, how would I do that?  Note: CDI does something similar, also discovering/scanning classes at runtime.


I just read about the AES MixColumn step, which can be calculated as: $$b(x)=c(x)a(x) \pmod{X^4 +1}$$ $a(x)$ is the column to encode and $c(x)=3x^3+x^2+x+2$ My question is: how did they calculate $c(x)$?


Data defined label position for more than one scale in one layer

I'm looking for a better labeling-solution for my projects. It seems to be difficult - but maybe I'm just blind?   My projects: I build  printed bike-hike-books. The main scale is 1:75k and there are a city scale of 10k and a overview scale of 200k. Because I like to have a "cartographic" quality of labels placements, I touch every single label and move it to it's best position. I have to do this for every single scale so my labeling columns for 3 scales look like this ('scale 1' stands for 10k 'scale 2' for 75k  and 'scale 3' for 200k):    But before I try to explain in detail, I build this simple Example-Project where you can see and test my (old) labeling solution for 3 scales:   Well, it is working but:    You need labeling columns for every scale  You need a layer for every scale   I'm looking for a much better solution without duplicate layers and tons of columns. I count on your creative minds!  EDIT: I added this two very dense map as examples:    There is only one single possible position for "St. Paulus Dom" and it's not any quadrant:   Every label has to be moved manually. Some of the labels are not in a quadrant.


Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference to read data for log in page

Got a problem with my code,have problem to call from database. private void isUser() {     final String userEnteredUsername=regUsername.getEditText().getText().toString().trim();     final String userEnteredPassword=regPassword.getEditText().getText().toString().trim();      DatabaseReference reference=FirebaseDatabase.getInstance().getReference("users");     Query checkUser=reference.orderByChild("username").equalTo(userEnteredUsername);     checkUser.addListenerForSingleValueEvent(new ValueEventListener() {         @Override         public void onDataChange(@NonNull DataSnapshot snapshot) {             if(snapshot.exists()){                  regUsername.setError(null);                 regUsername.setErrorEnabled(false);                  String passwordFromDb=snapshot.child(userEnteredUsername).child("password").getValue(String.class);                  if(passwordFromDb.equals(userEnteredPassword)){                      regPassword.setError(null);                     regPassword.setErrorEnabled(false);                      String nameFromDb=snapshot.child(userEnteredUsername).child("name").getValue(String.class);                     String usernameFromDb=snapshot.child(userEnteredUsername).child("username").getValue(String.class);                     String phoneNoFromDb=snapshot.child(userEnteredUsername).child("phoneNo").getValue(String.class);                     String emailFromDb=snapshot.child(userEnteredUsername).child("email").getValue(String.class);                      Intent intent = new Intent(getApplicationContext(),MainActivity.class);                     Toast.makeText(getApplicationContext(),"Welcome",Toast.LENGTH_SHORT).show();                      intent.putExtra("name",nameFromDb);                     intent.putExtra("username",usernameFromDb);                     intent.putExtra("email",emailFromDb);                     intent.putExtra("phoneNo",phoneNoFromDb);                     intent.putExtra("password",passwordFromDb);                     startActivity(intent);                 }                 else {                     regPassword.setError("Wrong Password");                     regPassword.requestFocus();                 }             }             else{                 regUsername.setError("No such User Exist");                 regUsername.requestFocus();             }         }          @Override         public void onCancelled(@NonNull DatabaseError error) {}     }); }   2020-10-08 11:12:44.273 14309-14309/com.example.auditapp E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.auditapp, PID: 14309 java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at com.example.auditapp.SignIn$3.onDataChange(SignIn.java:96) at com.google.firebase.database.Query$1.onDataChange(Query.java:179) at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75) at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63) at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:237) at android.app.ActivityThread.main(ActivityThread.java:7860) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)


Find the limit: $\lim_\limits{x\to 0}{\frac{\left(1+x\right)^{1/x}-e}{x}}$

Find the limit: $$\lim_\limits{x\to 0}{\frac{\left(1+x\right)^{1/x}-e}{x}}$$   I have no idea what to do, but I thought that this is the limit of the derivative of $f(x)=\left(1+x\right)^{1/x}$, as $x$ tends to 0. Any help?


Is $\le$ defined by $\langle 𝑥_1, 𝑦_1 \rangle \le \langle 𝑥_2, 𝑦_2 \rangle$, if $𝑥_1 \le 𝑥_2 \land𝑦_1 \ge 𝑦_2$ a linear order?

I need to tell if the relation $\le$ defined by relationship $\langle 𝑥_1, 𝑦_1 \rangle \le \langle 𝑥_2, 𝑦_2 \rangle$, if $𝑥_1 \le 𝑥_2$ $\land$ $𝑦_1 \ge 𝑦_2$ linear order?   I have already proven that the relation is an order, but I need to decide if it is a linear order and why. Thanks for any help!


Foreach loop gives length longer than length?

I'm having a moment.                 var files = document.getElementById("filePostInput").files;             LogData("files length " + files.length); // 1             var formData = new FormData();                          for (var file in files)             {                 formData.append("file",files[file].data,files[file].name);                 LogData("file name" + files[file].name);             }  The Output:  Thu, 26 Apr 2018 09:39:47 GMT: file nameitem Thu, 26 Apr 2018 09:39:47 GMT: file nameundefined Thu, 26 Apr 2018 09:39:47 GMT: file nameTest.txt Thu, 26 Apr 2018 09:39:47 GMT: files length 1  When I call files.length, I get 1. My foreach loop however, logs 3 file name's. The first is the name of the file I put into my file input, and the next two I have no idea what they are. Could someone explain to me what is happening here? Thanks!


Indicator to the left of the Review button - Broken or hidden meaning?

I am an active contributor on the . I perform a fair amount of volunteer moderation activities like responding to votes (but I am not a site moderator).  When I log into the site, directly next to the review button is a little numeric indicator that shows me how many Suggested Edits (and perhaps other things) are awaiting my review.  After I complete my reviews, the numeric indicator often decreases in value, but does not go to zero.  What am I missing?  What is that indicator indicating?  Or is it just broken?


Mouse turns off after a few seconds (Ubuntu 13.10, Windows 8.1)

I tried lsusb and I can see my mouse in the list.  I tried   for foo in /sys/bus/usb/devices/*/power/level; > do echo on > $foo; > done   But I got this reply  bash: /sys/bus/usb/devices/1-4/power/level: Permission denied bash: /sys/bus/usb/devices/2-2/power/level: Permission denied bash: /sys/bus/usb/devices/5-1/power/level: Permission denied bash: /sys/bus/usb/devices/5-3/power/level: Permission denied bash: /sys/bus/usb/devices/usb1/power/level: Permission denied bash: /sys/bus/usb/devices/usb2/power/level: Permission denied bash: /sys/bus/usb/devices/usb3/power/level: Permission denied bash: /sys/bus/usb/devices/usb4/power/level: Permission denied bash: /sys/bus/usb/devices/usb5/power/level: Permission denied bash: /sys/bus/usb/devices/usb6/power/level: Permission denied   Note that this only happens whenever my laptop is unplugged.


Find matrices $X$ such that for any matrix $Y$ we have $\det(X^2 + Y^2) \geq 0$

What is the characterization of real  matrices $X \in \mathbb{R}^{n\times n}$ such that for any real matrix $Y \in \mathbb{R}^{n\times n}$: $$\det(X^2 + Y^2) \geq 0?$$


Direct limit of arbitrary family of tensor products of A-algebras

In the exercise from chapter $2$ of the book, "Introduction to Commutative Algebra" by Atiyah & Macdonald, I understand that the highlighted  $A$-algebra $B$ is the the direct limit but I want to ask the following questions:   How can we say that the direct limit is the tensor product of the given family? Shouldn't one also prove the universal property of the tensor product here? If yes than how can we prove that universal property since here we have arbitrary family of $A$-algebras which may be infinite. How the arbitrary element of the $A$-algebra $B$ will look like? My intuition says: For each $\lambda$, fix an element $b_\lambda$ $\in$ $B_\lambda$, then, any arbitrary elements of $B$ is of the form $\otimes$$_\lambda$$x_\lambda$ where $x_\lambda$=$b_\lambda$ for all but finitely many values of $\lambda$. But the problem is that how the tensor map $\otimes$$_\lambda$$x_\lambda$ will be defined since $\lambda$ runs over an arbitrary family. Can one define the tensor products in the same way for directed systems of arbitrary families of, say $A$-modules or say vector spaces of a field? Will the direct limits exist in those cases?


Conjecture: the sequence of sums of all consecutive primes contains an infinite number of primes

Starting from 2, the sequence of sums of all consecutive primes is:  $$\begin{array}{lcl}2 &=& 2\\     2+3 &=& 5 \\     2+3+5 &=& 10 \\     2+3+5+7 &=& 17 \\     2+3+5+7+11 &=& 28 \\     &\vdots& \end{array} $$ If the $n^\text{th}$ prime is $P_n$, then we can write $S_n=\sum_{i=1}^n P_n$.  I conjecture that the sequence $S_n$ contains an infinite number of primes.  I doubt I'm the first person ever to think this, but I cannot find reference to the idea, nor can I conceive a proof, nor a disproof.  Computationally, it can be verified that     $$S_{13,932}=998,658,581=P_{50,783,012},$$ and the sequence shows no sign of slowing down.  Can you prove the sequence $S_n$ contains an infinite number of primes?


If  void main() {    int i=2,j=4;    i=+++i+j; //is not an error    i=---i+j; // is a L-value required error.. }   could anyone please explain in detail the concept behind multiple increments and decrements..


When I was writing a program, I made a typo. I have wrote i[data] instead data[i]. However the program was successful compiled and worked right. Operator[] behavior with arrays: #include <iostream>  using namespace std;  int main() {   int data[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};      cout << data[6] << endl; // prints 6   cout << 6[data]; // prints 6   return 0; }  Similar operator[] behavior with pointers: #include <iostream>  using namespace std;  int main() {   char* str = "Hello, world!";      cout << str[9] << endl; //prints 'r'   cout << 9[str]; //prints 'r'   return 0; }  Why data[i] equals i[data]?


Can I say: it's been ages since I last ate in a restaurant

This should be correct:     It's ages since I last ate in restaurant   But can I say:     It's (has) been ages since I last ate in a restaurant


Java if statement in nested loop not matching , counting first occurrence

I have been having an issue which I feel should be simple to do but I cannot understand why it is not returning the expected results.  I have an array of Strings called User and a List of objects called Sales. Within Sales there is an field called User. What I wish to do is for each User in the array, I wish to match the sales object.  String[] User = {"John","Bob","Pete"};     //The sales object looks like      {    User: Bob    Dep: Hardware     }     {    User: Bob    Dep: Software     } ...  //The nested loop looks like    for (int i = 0; i < User.length; i++)         {            for (int j = 0; j < Sales.size(); j++ )         {                 if (User[i] == Sales.get(j).getUser())                 {                        System.out.println(Sales.get(j).getUser() +  Sales.get(j).getDep()                }             }   What I am expecting to printed is:  Bob Hardware  Bob Software  However all I am seeing is   Bob Hardware  Can anyone see what is wrong with my logic/approach?


I'm running 11.04 server, and I'm getting errors updating default repos when I run  sudo apt-get update   The repos that return a 404 error are default Ubuntu Natty repos like .  I can't update my installation since these repos keep failing. Is my only choice to reinstall my distro?


Why there is no operator for time in QM?

Is there one central reason why there is no "Time" operator in QM?  I know this question has been asked before, but I thought I would try to stimulate some fresh thinking.


I added textures to a minecraft character, but I realized I forgot the holes for the eyes. So I used a boolean modifier to make the holes, but it was unsuccessful. The holes appear except the texture wrap becomes messy and doesn't go around my character properly.  Without Boolean modifier   With Boolean modifier


Multiple repository errors when I try any APT command after trying to install signal

I am currently using 18.04.   I wanted to install signal for desktop and I got this code from the site to install on Debian:  curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add - echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list sudo apt update && sudo apt install signal-desktop   Since doing that I can't use APT; whatever I do I get the same error:  E: The "sudo" type is unknown in line 2 of the source list /etc/apt/sources.list.d/signal-xenial.list E: The source list could not be read. Go to the configuration of the repositories to fix the problem. E: _cache-> open () failed, please report.   I've tried to find solutions online but they want me to use the sources.list and I am not aware of how to navigate there.  My question has been closed as a duplicate but I can't get to grips with the sources.list; it's empty and I don't know how to manipulate it.  I cannot install or do anything because everything I want to do is stopped by the error:  Ignoring the file "some-ppa.list.save.1" in the directory "/etc/apt/sources.list.d/" because it has an incorrect file extension. Ignoring the file "some-ppa.list.save.1" in the directory " /etc/apt/sources.list.d/" because it has the incorrect extension.  The repository 'http://ppa.launchpad.net/baitsart/voice-commands/ubuntu bionic Release' does not have a Release file. Updating from such a repository can not be done securely, and is therefore disabled by default. See apt-secure (8) manpage for repository creation and user configuration details. The repository 'http://ppa.launchpad.net/grasch-simon- listens / simon / ubuntu bionic Release 'does not have a Release file.


If $\sum a_n$ is a convergent series with $S = \lim s_n$, where $s_n$ is the nth partial sum, then $\lim_{n \to \infty} \frac{s_1+...+s_n}{n} = S$

Let $\sum a_n$ be a convergent series, and let $S = \lim s_n$, where $s_n$ is the nth partial sum.   I need to prove the following:    $\lim_{n \to \infty} \frac{s_1+...+s_n}{n} = S$    How do I go about proving that proof?  Definition of a limit   $\lim_{n \to \infty} f(x) = L$ if for every number $\epsilon>0$ there is some number $\sigma >0$ such that $|f(x)-L| <\epsilon$ whenever $0<|x-a|<\sigma$


Is it true that the data sent through GET method are limited?

In the past, I learned that the amount of data that can be sent through the HTTP GET method is limited and this is due to the limitation of the number of the characters in the URL, because an URL can not contain more than 255 characters.  But recently I noticed an URL that contains 294 characters where the query part (the string after the ?) contains 269 characters.  So, is there really a limit in the data sent through GET ? or am I outdated ?


Why a pentaprism and not a simple flat mirror?

I don't understand why pentaprisms are needed to reflect light from the image up through the viewfinder. When I read why it is used, the explanation seems to indicate that it ensures the light coming up is reflected out the viewfinder at 90 degrees. But wouldn't a 45-degree flat mirror accomplish the same thing?


JSON: how to declare an attribute whose name contains $ symbol?

I have written apex class.variable declaration is:  public string QPA$MV2 {get;set;}   It shows error:     Error: Compile Error: Invalid identifier: QPA$MV2 at line 254 column   23 How to resolve it ?


Short story demonstrating the butterfly effect with time travel. It's similar to "A Sound of Thunder"

It's like "A Sound of Thunder" but when the guy goes back from the past to the present, his superiors ask him if anything worrying happened during the trip. He says, No. But they are all in tanks of liquid now. Not humans anymore. And they all agree that nothing in the trip affected the present. The End. It was a short story I read maybe 40 years ago. Not sure when exactly. Has anyone heard of this story?


How to prevent my screen from either dimming or the screen-lock starting when watching YouTube?

My screen brightness used to dim after a few seconds to preserve battery. This is default in Ubuntu 12.04. However when watching video it should not dim.  This works correctly when I watch videos using native applications like VLC. With in-browser video, however, the screen is not prevented from dimming. This is very annoying as you have to move your cursor every 10 seconds or so.  I used to use Mac OSX where I had the same dimming settings and Flash videos were taken into account correctly.  Anyone an idea how you can make YouTube prevent your screen from dimming?


counting Numbers of sets with given specifications

Consider a set, , consisting of integers. The set is beautiful if at least one of the following conditions holds true for every X in set S:  X-1 is in S or X+1 is in S  For example, { 1 ,2 ,50 , 51} is beautiful but {1 ,4,5,6} is not beautiful. Given two integers N and K , and , can you find the number of different beautiful sets of size K that can be created using integers from 1 to N . take mod of answer with 1000000007  My sol : taking sets such that first m consecutive and next k-m consecutive after leaving some elements. which comes up as  res =n-k+1 + max(0,(k-3)) * sumOfIntegers(n-k);  However i am getting WA please help


$1 + \cos2C - \cos2A - \cos2B=4\sin A\sin B\sin C$.

How can I prove this equation?     $1 + \cos2C - \cos2A - \cos2B=4\sin A\sin B\sin C$   if we know that $A$, $B$, $C$ are a triangle's angles.  I have come to the point where on the left side I have  $-4 \cos A \cos B \cos C$.  On the other side I have   $4\sin A\sin B\sin C$.  Am I correct till now?


why is my video not vertically aligned(flexbox)?

I was hoping someone could enlighten me why my video keeps floating on the top instead of aligning vertically? I am using flex-box. `.mainLogoAnimation{     position: relative;     display: flex;     justify-content: center;     align-content: center;     width: 100%;     height: 100%; } video{width: 100%; }
  <video src="samples/Audio Branding - Arcade/ArcadeLogo_Stinger_03.mp4" id="javaPlayer"  autoplay loop muted></video>


I have created the "Gallery" content type, and added two fields: "photo," and "document." I then used the following code for uploading a file in the "document" field:  $file = file_save_upload('document', array(     'file_validate_extensions' => array('txt doc'), // Validate extensions. ));  // If the file passed validation: if ($file) { // Move the file, into the Drupal file system if ($file = file_move($file, 'public://')) {   $file->status = FILE_STATUS_PERMANENT;  // $file->file_display = 1;   $file = file_save($file);  } else {   $output = t('Failed to write the uploaded file the site\'s file folder.'); }         } else { $output = t('No file was uploaded.');  }   I am attaching this file to the node using the following code:  $customNode->field_document[$customNode->language][0] = (array)$file;   When I call node_submit() function, I get the following error:     Integrity constraint violation: 1048 Column 'field_document_display' cannot be null    Does anybody know what I am doing wrong?


How transform a python program .py in an executable program in Ubuntu?

I have a simple python program and I want an executable version (for Ubuntu Linux) of this program to avoid running it in the terminal with python myprogram.py.  How can I do that ?


What is the ratio of matrices which have full rank to total number of matrices over a finite field.

We know that \begin{align*} \frac{|GL_n(\mathbb{F}_q)|}{|\mathcal{M}_N(\mathbb{F}_q)|} &= \frac{\prod \limits_{k=0}^{n-1} (q^n - q^k)}{q^{n^2}} \\ &= \prod_{k=1}^n \left( 1-q^{-k} \right) \\ &= \left(\frac{1}{q}, \frac{1}{q} \right)_n, \end{align*} where the last expression denotes the . How can we generalize this to $m\times n$ matrices. I mean what is the ratio of matrices which have full rank to total number of matrices. Thanks.


What's that green line when I perform a ls -la?

I am not an expert on Ubuntu, so this is probably a very basic question.  When I open a terminal and perform a ls -la in a directory, I get:  jverstrynge@devjverstrynge:/home/httpd$ ls -la total 4 drwxr-xr-x  6 root     root       91 Dec 11 14:11 . drwxr-xr-x  6 root     root       56 Dec 10 11:19 .. drwxr-xr-x  2 tfr      tfr         6 Oct 22 13:49 softgallery-future drwxr-xr-x 11 tfr      tfr      4096 Oct 22 14:06 softgallery-old drwxrwxrwx 10 www-data www-data  138 Dec 11 12:37 softgallery2 drwxr-xr-x  6 www-data www-data  149 Feb  9  2015 subscription   The softgallery2 line is displayed in green. What is the meaning? Does it mean it's a mount? How can I check this?


Moderator Resignations are now being un-featured early. Is this the only solution? Why can't we moderate them as usual?

Ex-Moderator Madara Uchiha's  was recently untagged as  by a staff member, which removes it from the featured box on the related community's sidebar. This is rather early for a moderator resignation. Per a  on a question regarding the above event, it is now becoming standard practice for moderator resignations to be untagged from  after only 24 hours. This is a rather large step away from the usual practice of letting elected moderators decide how long moderator resignations, or questions in general, should be featured. Juan went on to explain, with my emphasis on one point:  Lately, we have had an increase of resignation posts that have served to host combative and hurtful words to attack Stack employees, other mods, and teammates. We need to be mindful of this and limit the time the posts are featured. We still value people posting these when they're stepping away from the team. We also value folks being able to say their goodbyes and we want to continue to feature these resignation posts. But we need to keep an eye on the length of time that these featured posts can be in the sidebar.  Why can't the hurtful material be moderated, as is usual practice? Is it too much to moderate? I feel what Journeyman Geek♦  is particularly impactful:  We watch out for, and remember our own. If we're restricting this due to fear, we're lost. We have lost.  Featured posts, as noted historically, should be a reflection of what the community at large feels requires attention. I feel that a moderator resignation, given their extensive contributions to the community, should be a part of that - for a time that their fellow elected moderators feel is appropriate. They're very important moments in a community's history. For what other reasons are we limiting these announcements now? Are there no other options?


Vote can't be changed if answer is edited too quickly

I've looked through a number of the "Vote too old to be changed" questions, but I think this one's different.  I gave a downvote to an answer I thought had a critical defect, and I left a comment describing the defect. The answer was edited to satisfy my criticism, but it was done within the short grace period where edits aren't recorded as such. When I try to cancel my downvote I get the error - "Your vote is now locked in unless this answer is edited" - but it was edited!  In reference to this answer:


What verb describes the action of pricing just below a round number, eg $9.99

We see it all the time: "New Brand X Sedan: $9,999 drive away".  Personally, when I see this my brain registers this as $10K, but many people must filter out all but the first digit and their brains see $9K, because this pricing idiom is ubiquitous.  What is a good verb to describe "discounting" a price such that it falls slightly below a "round" number?  Here's a couple of suggestions:   Price-pointing Under-rounding   I wonder if there is a commonly used "marketing speak" term?


What is the difference between grep root/etc/passwd and getent passwd root


If I'm not sure what Stack Exchange site to ask a question on, what's the recommended protocol? Do I ask the meta-question here on meta.stackoverflow.com? It looks like there are several "Where should I ask..." questions here, and the  doesn't really cover this area.


I'm writing a script in Python that should communicate with a software "ConsoleApplication.exe"(wrote in C); this last one once started waits for a fixed lenght command(5 bytes) from his "stdin" and generates (after 2-3 seconds) on  his "stdout" an output that I should read on my Python script.  #  //This is the "ConsoleApplication.c" file #include <stdio.h> #include <function.h>  char* command[5]; int main() {  while(1)  {   scanf("%s\n", &command);  output = function(command);  print("%s\n", output);   } }   #  #this is Python code  import subprocess #start the process p = subprocess.Popen(['ConsoleApplication.exe'], shell=True, stderr=subprocess.PIPE) #command to send to ConsoleApplication.exe command_to_send = "000648" #this seems to work well but I need to send a command stored into a buffer and if Itry  #to use sys.stdout.write(command_to_send)nothing will happen. The problem seem that #sys.stdout.write expect an object I/O FILE while True:     out = p.stderr.read(1)     if out == '' and p.poll() != None:         break     if out != '':         sys.stdout.write(out)         sys.stdout.flush()   #  Any suggestions? How can I fix it?  I tried to use    stdout = p.communicate(input='test\n')[0]    but Im getting the following error at runtime: "TypeError: 'str' does not support the buffer interface" I also tried this  from subprocess import Popen, PIPE, STDOUT   p = Popen(['ConsoleApplication.exe'], stdout=PIPE, stdin=PIPE, stderr=PIPE)  out, err = p.communicate(input='00056\n'.encode()) print(out) out, err = p.communicate(input='00043\n'.encode()) print(out)   but I get this error: "ValueError: Cannot send input after starting communication"


It is unclear to me if a mod's try to migrate a question of mine to another site in which I'm blocked (which obviously cannot happen), is problematic for me in the sense, for example, that it can lengthen the duration of a block of asking questions in that particular website to which that mod tried to migrate my question → in some extent.  If a mod tries to migrate a question of mine to another site in which I'm blocked - probably without me knowing it, is it problematic for me?


Why there is no direct interaction to other members on a SE site?

When I know my question is resolvable by a specific user, how should we notify him/her? I heard there is no direct interaction to the person. Why not?  Its not an personal message I'm asking about, just a notification to user who is very good at some tag.


show that $S= \cup_{n \in K}(n, n+1] : K \subset Z.\ is\ \sigma-algebra.$

show that $S= \{\cup_{n \in K}(n, n+1] : K \subset Z.\  is\ \sigma-algebra\}.$ We need to prove the followings.  $\emptyset \in S$ $if \ A\in S \ then\ A^c\in S$ $If\ A_i\in S\ then \ \ \cup A_i\in S \ where A_i\ are\ disjoint\ sets.$  for $\emptyset \in S\ since \ \emptyset=\cup_{n \in K}(n, n+1] \ where\ K\ is\ a\ empty\ set.  $ My concern is to show $A^c\in S$ let $A=\cup_{n \in K}(n, n+1]$ consider $A^c=\cap_{n \in K}((-\infty,n]\cup (n+1,\infty))$ It seems $A^c$ is not in the S. it has a different form. Am I not seeing something here?


Computer stops working after 5 minutes of use in windows

I recently bought a PC in parts. I installed Windows 10 on it and it worked flawlessly for about a week and a half. However, now it turns off whenever I'm doing something, even if it's not a heavy software like a video game. I think this issue may be related to the power source. I need some guiding to know if indeed I need to change this part or if it may be another issue causing the crash.  My computer components are:   AMD Ryzen 5 3600 MSI X570 gaming plus motherboard AMD RX580 graphic card 8gb x 2 corsair ddr4 300MHz Ram HDD Toshiba 1.5TB SSD PNY 960GB PCIe WiFi card Power source : Corsair Vs650W 80+   Please help me. I spent a lot of money on this computer and I really need it to work properly.


After logging off, user is able to see the workbench page by pressing back button of the browser

I am using workbench module to show the entry made by some particular user with some role when user is logged in he redirect to my workbench page and  as the user log out it redirect to home page and after pressing back button it redirects to my workbench page


What is the simplest way to convert char[] to/from tchar[] in C/C++(ms)?

This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing of char and tchar.


Calculate $\lim_{n\rightarrow +\infty}\binom{2n} n$

Calculate $$\lim_{n\rightarrow +\infty}\binom{2n} n$$ without use Stirling's Formula.  Any suggestions please?


I was curious whether The Borg had ever encountered Odo's species, and would be possible to assimilate them?


Adding a bounty will "break" the reputation feed

Adding a bounty to a question will break the reputation feed and not show any new gained reputation as long as the gained reputation will not cover the bounty.  I.e If I give a 50 rep bounty, I will not see anything in the bar above as a +5 as long as I don't get 55 reputation.  This could make it unused for a very long time if you give 500 rep as a bounty. (Minimum 3 days) Also, I say break the reputation feed because according to the comments in  this bar is made to show the the good stuff.  I noticed this issue when I clicked on the button to get more details on the reputation because I saw upvotes but nothing above and then I saw my 50 bounty decreasing :


formatting code after numeric list doesn't display properly

So I've just edited a question and noticed that if I enter a code block after a numeric list:        in Addbill form the User insert items to the the DB(NewBill Table).   in Bill form is a reportview show the data from NewBill table, but it doesn't show. my Query in the dataset is;       SELECT CID, IID, Con, Title, Price, TPrice, Qun, Date FROM dbo.NewBill WHERE CID = @CID   And CON = @CON      It isn't displayed as code, just tabbed out:     in Addbill form the User insert items to the the DB(NewBill Table). in Bill form is a reportview show the data from NewBill table, but it doesn't show. my Query in the dataset is;   SELECT CID, IID, Con, Title, Price, TPrice, Qun, Date FROM dbo.NewBill WHERE CID = @CID And CON = @CON     example


How to store values in dictionary in decrement order by values in java?

i am have problem. Actually i am working on some code and that code is written in python but i want to do same problem in java .i got everything but on collection some problem is coming.  i am storing values in dictionary in java :   Dictionary<String, Integer> dc=new Hashtable<String, Integer>();   String s[]={"red", "blue", "red", "green", "blue", "blue"};     for(String t: s){          if(dc.get(t)==null)             dc.put(t, 1);     else             dc.put(t, dc.get(t)+1); }   output:  {blue=3, green=1, red=2}   i want like:  {blue=3, red=2, green=1}   but this is not the output i want i want like python gave:  cnt = Counter() >>> for word in ['red', 'blue', 'red', 'green', 'blue', 'blue']: ...     cnt[word] += 1 >>> cnt Counter({'blue': 3, 'red': 2, 'green': 1})   can any one give me some idea ?


What does it mean when someone always wants more? Of anything

Always wanting more , of anything, never has enough,never contented with what they have


$\operatorname{span}(x^0, x^1, x^2,\cdots)$ and the vector space of all real valued continuous functions on $\Bbb R$

Let $p_n(x)=x^n$ for $x\in\Bbb R$ and let $\mathcal P=span\{p_0,p_1,p_2,\cdots\}$ . Then         $\mathcal P$ is the vector space of all real valued continuous functions on $\Bbb R$.   $\mathcal P$ is the subspace of all real valued continuous functions on $\Bbb R$.   $\{p_0,p_1,p_2,\cdots\}$ is a linearly independent set in the vector space of all continuous functions on $\Bbb R$.   Trigonometric functions belong to $\mathcal P$      Not 1 since sinc function is real valued and continuous, and not 4, too. Can I conclude 2,3 are the correct ones?


Calculating the number of trials to get all four outcomes

I was posed the following question recently:     Suppose a brand of cereal has four different toys included in their cereal boxes, each with an equal probability of being found: On average, how many boxes of cereal do you need to buy to get all four toys?   Since getting a toy in each box is an independent event and the probability stays constant, I guessed that you could model this using the binomial distribution:  \begin{align} X &= \text{number of unique toys}\\ X &\sim B(n, 0.25) \end{align}  Where $n$ is the number of trials. The probability function for getting four unique toys would therefore be:  $$P(X = 4) = {n \choose 4} \cdot 0.25^4 \cdot 0.75^{n-4}$$  So, to find the mean number of trials, I perform the infinite sum:  $$\sum \limits_{n=4}^\infty \left[n\cdot P(X=4)\right] = \sum \limits_{n=4}^\infty \left[n\cdot {n \choose 4} \cdot 0.25^4 \cdot 0.75^{n-4}\right]$$  Which, when I plug this into Wolfram Alpha returns $76$.   So, according to my calculation, on average you need to buy $76$ boxes of cereal to get all four toys. Is this right?


Explain $\iint \mathrm dx\,\mathrm dy = \iint r \,\mathrm \,d\alpha\,\mathrm dr$

It is changing the coordinate from one coordinate to another. There is an angle and radius on the right side. What is it? And why?  I got:  $2\,\mathrm dy\,\mathrm dx = r(\cos^2\alpha-\sin^2\alpha)\,\mathrm d\alpha \,\mathrm dr$,  where $x = r \cos(\alpha)$ and $y = r \sin(\alpha)$.  but cannot understand and get the right side. The problem emerged when trying to integrate $\displaystyle \int_0^\infty e^{\frac{-x^2}{n^2}}\,\mathrm dx$ where I tried to change the problem knowing $r^2=x^2+y^2$ but stuck to this part. What is the change in the title called and why is it so?


Ubuntu 12.04 freezes with Ivy Bridge Processor

My machine with an Ivy Bridge CPU is stable under Windows 7 but freezes in Ubuntu 12.04 LTS 64-bit. The freezing appears to occur randomly. I read somewhere that kernel 3.3.6 fixes the Ubuntu freeze issue. Any idea when this will be available in 12.04?  Specs:   ASRock Extreme3 Motherboard with i5-3570K processor (no overclocking)


What is the Name of System Settings for terminal

What can I type to launch system settings from the terminal


How to forbid symbol in the begin and end of group of letters and numbers

Here is my regex that tries to match a valid URL:  ^(https?:\/\/((\b\w[^-][a-zA-Z0-9-]{1,33})\.){1,34}([[a-zA-Z0-9]{1,6})\/?)$   and I've tried to find way to make a simple solution to forbid the use of a hyphen '-' in the beginning and end of a group of letters and numbers. I'd tried to use \b\w[^-]. But it hasn't helped. For example, my regex matches this string, but it shouldn't


significance of pvalue for logistic regression

I'm trying to understand how to interpret the significance of logistic regression If I use the standard iris dataset, the Petal Length is a significant predictor for the Setosa classification.  If I use JMP, I can see that the logistic regression is essentially a perfect classifier for the setosa class.  The whole model test also confirms its significance.  why is the pvalue shown as insignificant in the parameter estimates table for this factor "PetalLength"?


How to evaluate $\int_0^1\arctan (1-x+x^2)dx$?

I tried using $\int_a^bf(x)dx=\int_a^bf(a+b-x)dx$ but it's giving back the same result. I tried using integration by parts but it's giving a very long answer.   Is there any simple way to do this?  Btw the answer to this question is $\log 2$.


I recently deleted a few files from my virtual machine, without any backup.  It was a terrible mistake and now I need recover them.  If I move the .vdi file to an external disk, is it possible to run knoppix and try to recover the files? It's a fixed size VDI and when the fatality happened it was no longer touched.  My questions are, is there any hope? Should I move the VDI or can I copy it?


How does quantum trapping with diamagnets work?

I just saw  demonstration by someone from a Tel Aviv University lab.  What they achieved there is mind blowing. I myself own a levitron that uses the Hall effect to levitate a magnet, the problem with that is the magnet must always be flat facing the Hall effect base, any unbalance will wreck the levitation. But in the case of the video you can see that he isn't constrained by such things, the disk can levitate and stay still at whatever angle and orientation. Instead of being levitated, the disk is simply being held still.   How does this happen? He referred to this as quantum trapping, but I've little idea about what that is....  Also, what material is the base in these demos? Is the circular track in the demonstration magnetic? I assume this is so. Is there any conceivable way for this technology to make objects levitate on any surface?


I have some multi-spectral data, where the individual bands are separate Raster files.  How do I layer stack these rasters so that I get one raster with 3 bands instead of 3 different rasters?  This is quite easy to do in ERDAS and ArcGIS, but I haven't figured out how to do it in QGIS


About Sizeof Object with with and w/o virtual function

Can somebody help me with what all data and in which order is stored in class object?     #include <iostream>  using namespace std;  class A{      public:     A(){}     virtual ~A(){} };  class B{      public:     B(int i):_i(i){}     ~B(){}      private:         int _i; };  class C{      public:         C(int i):_i(i){}         virtual ~C(){}      private:         int _i; }; int main() {    cout << "SIZEOF A : " << sizeof(A) << endl;    cout << "SIZEOF B : " << sizeof(B) << endl;    cout << "SIZEOF C : " << sizeof(C) << endl;     return 0; }   Output:  SIZEOF A : 8 SIZEOF B : 4 SIZEOF C : 16  Why Sizeof(C) is 16 and not 12 ?


New red background for deleted posts is too light and not visible on high-contrast screens

I recently noticed that the red background highlight behind deleted posts is now a much lighter shade of red than it used to be in the past.  While I'm generally in favor of having higher contrast ratios for text across SE, I think this crosses the line a bit. The previous background was readable to me and didn't pose any contrast ratio issues to me. On the other hand, the new color is less visible than the old one and difficult to see on monitors with higher contrast settings. In other words, the contrast ratio between the red background and the white surroundings is too low.  As a test to see the magnitude of this issue, I tried raising my display contrast. By default, it's set to 20%, but setting it to 40% made it barely visible unless I really squinted at it, and setting it to 50% made it just about invisible. Some users may turn up their monitor's contrast to a higher level to better read text on screen, but this change makes it more difficult for those users who engage in moderation to identify deleted posts, especially if they've scrolled down.  Can we please make the shade of red that appears underneath deleted posts be darker (while still retaining WCAG Level 2 AA compatibility)?  Here's an image of the current configuration:        ...and the previous configuration:        I hope that this is one of the  of the CSS refactor.


How would Blockchain technologies change to survive a post-quantum world?

Reading  entertaining piece of a QC enthusiast mining bitcoins with a Quantum Computer (although efficiently mining bitcoins with the current state of QCs is far-fetched, it is quite possible to be done in the next few years), I wonder how exactly will technologies already using Blockchain adapt to the change?  Are they currently being worked upon? How would post-quantum cryptography integrate with existing tech secured using today's cryptography algorithms?


Prove $\frac{n(n+1)}{2}$ by induction, triangular numbers

Prove that the $n$-th triangular number is:      $$T_n = \dfrac{n(n+1)}{2}$$   I did this:  Base case: $\frac{1(1+1)}{2}=1$, which is true.  Then I assumed that $T_k=\frac{k(k+1)}{2}$ is true.  $$T_{k+1} = \frac{(k+1)(k+1+1)}{2}$$  I'm not sure what to do next. What is this supposed to be equal to?


How do I determine the cause of a crash? I get no crash file. I updated my graphics driver recently (NVIDIA GTX 1650 SUPER). It happens about a minute after I switch from displaying in Solid Mode to Material Mode (or to Render Mode, but takes longer). I never see my scene in material mode. Objects turn white immediately and stay that way. Blender memory usage starts out less than 1G, then slowly rises to about 12G (out of my 16G), then slowly bounces around down to around 3.5G then crashes. I started Blender from the command line with --factory-startup --debug-all. Since there was no crash file, I trapped the console output, although it may be useless, except perhaps the last line. It can be seen  (1.5MB). The file that caused the crash is  (19MB).


Can I create/edit contact groups in iOS?

I have been successful in managing contact groups with OS X's Contacts.app and iCloud.com, but haven't found a way to do this as of iOS 9.  Is there a way to manage contact groups on iOS (iPhone, iPad, or iPod Touch) ?


I can't navigate to my SD card directory using cmd in windows

I have a surface pro 3 with a 32gb SD card. I've set the OneDrive location to this SD card (since they removed the placeholder feature and so I am forced to download everything). The drive letter assigned to the SD card is D:\, verified by disk management utility.  The problem is that I am unable to acces this drive/card with command line - both regular and admin elevated. ie, the command cd D:\ simply just returns nothing and stays in the current folder.   This is causing quite a few command line tools to break on my computer as it dosnt return an error (but nothing seems to work).   The answer marked below is correct. However, for more information try


For any real matrix $M$ let, $\lambda^{+}(M)$ be the number of positive eigenvalues of $M$ counting multiplicities.

For any real matrix $M$, let $\lambda^{+}(M)$ be the number of positive eigenvalues of $M$ counting multiplicities. Let $A$ be an $n\times n$ real symmetric matrix and $Q$ be an $n\times n$ real invertible matrix . Then which of the followings are correct?   (1) $rank(A)=rank(Q^{T}AQ)$  (2) $rank(A)=rank(Q^{-1}AQ)$  (3) $\lambda^{+}(A)=\lambda^{+}(Q^{T}AQ)$  (4) $\lambda^{+}(A)=\lambda^{+}(Q^{-1}AQ)$


How do I get Windows 10 Start Menu to tree all the folders?

In previous versions of Windows (95-7), you could tree folders in the Start Menu.  In other words, you could have the Start Menu\Applications folder (now "All Apps") and have folder work and folder games in it. Games would have a shortcut to Minecraft, while work would have a shortcut to Word. In previous versions, when selecting a folder, you could choose to pick a subfolder.  When I navigate to folder, I get 2 options. Go to games or work. Lovely.  Now that option is dust. There is no option to get something like that without software. It shows all of the applications A-Z and therefore will not do something like that. Only one folder is open/closeable but all the subfolders and their contents are just mashed up there. For example, if I had a folder named Folder: (like in the photo)  | -Folder **main folder**   | --Work **subfolder**   | }--Word **item**   | --Games **subfolder**   | }--Minecraft **item**   It would show like this:  ** **F** **   Folder >   ** **G** **   And once I click Folder > it displays:  ** **F** **   Folder >   Minecraft   Word     ** **G** **   So to make a long story short, how do I make Windows show the subfolders in Folder?   P.S.  If you can find a way to make Windows 10 short the applications by name like in Windows 8.1, that would be much appreciated.


Can I uniformly stretch a sentence that nearly fills a line - to fill the line?

Is there a "sentence stretch" that acts horizontally in a similar way as \setstretch acts vertically?


I have panel with some images and buttons. when I click on a button with "gold" name it works, and if I click on any thing other I got error //NullReferenceException: Object reference not set to an instance of an object//  public GameObject gold;   void Update() {        if (Input.GetMouseButtonDown(0) && EventSystem.current.IsPointerOverGameObject())         {         gold = EventSystem.current.currentSelectedGameObject; // error line         if (gold.GetComponent<Button>().name == "Gold")         {         print (" you got some gold ^-^");         }         else         {             gold = null;         }     }   }


Why is SE removing links and community ads about a legal fund campaign?

Stack Exchange staff will actively remove links to a legal fund campaign from user profiles, posts, and comments, as well as community ads surrounding Monica's situation and reinstatement. Why?  [This post was originally posted by  but ownership was changed with a post-disassociation tool so that the accepted answer would be pinned to the top.]


What is the difference between != NULL and IS NOT NULL in QGIS filter expressions?

I have a shape layer with an attribute containing NULL values to which I would like to apply a filter for values different from NULL.    Using the available gui for such query construction, one would intuitively try  "obj_art" != NULL     Which means 'give me all the features with attribute "obj_art" different from NULL' (these count definitely more than 0). Testing this query delivers a strange result from my point of view:    So what I've learned so far is that I can achieve this by using  "obj_art" IS NOT NULL   The question is, what is the difference between != NULL and IS NOT NULL?


What Thunderbolt to USB 3.0 cables/adapters exist for OS X and Mac hardware?

I have the Late 2013 Macbook Pro, which has two USB 3.0 ports and two Thunderbolt 2 ports. I currently use both USB 3.0 ports and one TB2 port. I want to connect a third USB 3.0 device to the machine, but I don't want to use a USB splitter on one USB port as I'm concerned the devices would draw too much power from the bus. I have no current use for the second TB2 port and I would love to be able to use it for this purpose.   Browsing extensively online, I've found numerous docks, such as , that connect via a Thunderbolt cable. This would work, but it's an expensive, 'bulkier' solution (and not the one I'm looking for).   I'm aware that a USB 3.0 device wouldn't be able to take advantage of Thunderbolt's I/O speeds, but it's certainly compatible, which is all I'd need. After all, Apple even sells a . I also know that Thunderbolt is not only used for digital video purposes (along with the TB > Firewire option, there exists ).   There are almost no Thunderbolt to USB 3.0 cables/adapters on the market. I'd think this hardware would be more prevalent given the prominence of USB devices out there. What adapters are available for OS X?


Prove that $\sum_{k=0}^n\frac{1}{k!}\geq \left(1+\frac{1}{n}\right)^n$

It basically says it all in the title. I tried solving the inequality using the bernoulli inequality somehow $$\dfrac{\displaystyle\sum_{k=0}^n\frac{1}{k!}}{(1+\frac{1}{n})^n}\geq 1,$$ but the factorial gets me everytime.  Also I've tried induction without success:  $\displaystyle\sum_{k=0}^{n+1}\frac{1}{k!}\stackrel{IV}\geq \left(1+\frac{1}{n}\right)^n+\frac{1}{(n+1)!}$


Algebraic proof that $ ||\vec{a} +\vec{b}|| \le ||\vec{a}|| + ||\vec{b}|| $

That is, that the sum of two vectors is never longer than the sum of the lengths of the vectors.  It's easy to see this is true geometrically: if you attach the vectors head to tail, the longest they can be is if they are in the same direction. Alternatively, you can see the two vectors and their sum form a triangle, and the length of a side can never be longer than the sum of the other two sides (the longest it can be is a degenerate triangle, with angles 0-0-180).  How can we prove this with high-school algebra (i.e. [algebra-precalculus]), using vectors in component form, $\vec{a} = (r,s), \vec{b} = (p,q)$?  Note: the "duplicate" question does not request high-school algebra, and accepted an answer using the Cauchy–Schwarz inequality and vector dot product, which are not usually taught in high school at all.


I've found this code  and I need to know if someone knows how can I label all the figures to be able to make a reference to them in the text and to appear for example: "In figure 1A..."  \documentclass[12pt,a4paper]{article} \usepackage{graphicx} \usepackage{float}  \begin{document}  \begin{figure} [H] \centering \begin{tabular}{cccc} \includegraphics[width=0.3\textwidth]{example-image-a} & \includegraphics[width=0.3\textwidth]{example-image-b} & \includegraphics[width=0.3\textwidth]{example-image-c} \\ \textbf{(a)}  & \textbf{(b)} & \textbf{(c)}  \\[6pt] \end{tabular} \begin{tabular}{cccc} \includegraphics[width=0.3\textwidth]{example-image-a} & \includegraphics[width=0.3\textwidth]{example-image-b} \\ \textbf{(d)}  & \textbf{(e)}  \\[6pt] \end{tabular} \caption{ \textbf{(a)} Some text \textbf{(b)} Some text \textbf{(c)} Some text \textbf{(d)} Some text \textbf{(e)} Some text} \label{fig:Name} \end{figure}  \end{document}


I just got some question about the hat matrix in linear models.  My first question is: Why in a balanced one-way layout $(n_1=...=n_c=n_0)$, all leverages $h_{ii}$ have the same value $\frac{1}{n_0}$? I know that $h_{ii}$ is the $(i,i)$ entry in the hat matrix $H=X(X^TX)^{-1}X^T$.  But I couldn't see any relationship between this expression and the result.   My second question is:  when discussing the leverage points in a general linear model, we know that  $$0\leq h_{ii}\leq1$$ $$\sum_{i=1}^n h_{ii}=p$$ where $p$ is the number of parameters to be estimated, and $$Var(\hat {Y_i})=\sigma^2h_{ii}=\frac{\sigma^2}{\frac{1}{h_{ii}}}$$ Then it says $\frac{1}{h_{ii}}$ is roughly the number of observations needed to estimate $\hat{Y_i}$. Why is that?   My third question is:   Continuing with my second question, it then says, if $h_{ii}$ is very close to 1, then variance of the $i$th residual very lose to zero (already know that $Var(E_i)=\sigma^2(1-h_{ii})$)  so $Y_i-\sum_{j=1}^p\hat{\beta_j}x_{ij}\simeq0$.  Isn't this expression for the $i$th residual? Why we can conclude this from 0 variance of residual? I mean, can't $E_i$ be constant so that the variance is also zero?   My last question is:  Continuing with the above, it then conclude that $\hat{Y_i}\simeq Y_i$ and hence almost one degree of freedom needs to be used to just fit this one observation.  Could anyone explain this result to me? Isn't $\hat{Y_i}=Y_i$ exactly what we want?  Since I think it means we estimate the $i$th observation perfectly.


How to prove $(\mathbb{R}\backslash \mathbb{Q})\cap (x,y)\neq \emptyset$ for $x,y\in \mathbb{R}$ and $x<y$?  Sorry, but I don't even know how to start. Any ideas and impulses?


The placeholder for the body field (the word "Body") is strangely placed in the Android app, seems a bit too high:    Could reproduce using:   Samsung Galaxy 4a.  Android version 4.4.2  App version 1.0.54 Moto X (2013), Android 4.4.4 App version 1.0.60


OP's answer is question - We do something?

If an OP answer is own question, does we do something ?   At first I suggested if we allow moderators to mark that answer as accepted.  Does we let the system automatically show that answer first in the question windows in case other answer are provided by other user, like if it was accepted.  We warn the OP that it can accept its own answer at no drawback after he post the answer to is question. We change nothing.   Some example:           An image to show an example too. As I mean a question answered by the one asking it      NB: As the question will stay, I did that major edit to explain my idea, as with my poor English I'am not sure I explained my question correctly at first.


I just realized that in C++ std::log2((float)16) returns 4 but replacing with std::log10((float)16) / std::log10(2.0) returns 4.0000001902931812.  I am storing my answer in a double variable.  I am not sure why ?  The replacement works nicely in windows calculator and matlab.


Showing that $f:(0,2\pi]\to S^1$ is not a homeomorphism

I want to show that $f:(0,2\pi]\to S^1$ defined by $t\to (\sin t, \cos t)$ is not a homeomorphism. I will do this by showing that its inverse is not continuous.    The inverse is defined by $(\sin t, \cos t)\to t$. So at $(0,1)$ we want to have $\lvert 2(1-\cos t)\rvert <\delta \Rightarrow \lvert t-2\pi\rvert<\epsilon$ for any $\epsilon$. If we take $\epsilon=\pi/2$, no matter how close $\cos t$ and $1$ are there will always be $t$'s close to $0$. So $f^{-1}$ is not continuous.  What do you think? Are there any mistakes?


How can I buy apps in the App Store without a credit card?

While I'm waiting for my credit card to arrive, I still want to be able to buy some apps for my iPad!  Are there alternative ways to pay for apps, without resorting to someone else's credit card?


copy to clibboard + with some text before it

I wanted to know how to add text to the input text and then copy it to the clipboard. That added text is fixed. For example, the fixed text is abc; Now according to the following code, I enter the url and with the code(that i don't konw and my programming is zero!), the fixed text is added to before the url and then copied to the clipboard abc (a text constant) + url(is varibal) --> result = abc url ---> copied to clipboard thanks a lot
Click on the button to copy the text from the text field. Try to paste the text (e.g. ctrl+v) afterwards in a different window, to see the effect.
  <input type="text" value="Hello World" id="myInput"> <button onclick="myFunction()">Copy text</button>      ```


I’m breeding a Pokémon from my region and a Pokémon from another region. Is the chance of getting a shiny higher or still the same?


So we followed an best practice by Andreas de Ruiter ()  The Idea behind it is, that you write SQL Views which are easy to maintain and deploy. You use stored procedures to use these views and create tables from it. He suggests dropping or truncating the tables to maintain consistency over the data. I think it's the easiest approach without writing any complex update logic.  On these tables we have the need to set specific user permissions. By dropping the table we would lose them. So for us the question is, how could we drop the table and recreate the existing permissions on the newly created table?


What is the place that Gandalf falls to after the battle with the Balrog?

I was wondering; what is the name of the place Gandalf falls to when the Balrog drags him down, after the fight in Moria?   What information from the Legendarium is there available about this place?


What is the difference between system memory and internal storage?

I am using LG Optimus L3.   When I look into the app manager, there is a system memory of 157MB and an internal storage of 1GB. I can't install all the apps on internal storage. It's something like internal SD card.  Can I somehow extend the system memory and shrink internal storage?


The  has the wording:     10 posts with score of 2 on meta.   Does this mean that to get the badge I need 10 posts with a score of exactly 2 at the same time?  Should the wording be changed to something like:     10 posts with score of 2 or more on meta.


How to change Input Source shortcut to work with Shift key?

I am trying to change the input source shortcut from command space to ctrl + shift, so it will work like windows language change is. The thing is that when trying to edit it does not recognize the shift key at all, but other buttons it does.  I have tried clicking on the command space text and it does actually let me edit it, but when trying to put instead of what's configured right now my own keys (command shift) it just does nothing. How can I make it work?


Cannot delete my Area 51 account because of site design

After thinking about it, I'm trying to delete my Area 51 account. (Sure, some of the proposed sites are interesting, but it's not really worth the hassle to me right now, and I find having "unnecessary" sites kind of distracting.)  Naturally, having had experience with deleting sites before, I went to the "contact us" link to fill out a deletion form. But on Area 51 (and, I suppose, not on other sites),  is apparently associated with the meta site. As a result, after I filled out my deletion form, I received a notification that     this operation cannot be performed on a meta site; please continue on the main site   But the "contact us" page for the main site is the same one as that of the meta site, and moreover is hosted on the meta section of the site. I can't "continue on the main site", and it's thus impossible to delete my account.


How to pass the SSH_AUTH_SOCK through sudo (Permission denied (publickey).)

I have a Ubuntu server with the users: ubuntu and user  I connect to each of the users using ssh -A (to pass my local machine keys to SSH). From any of the users I can connect to the SSH server of Github:  $ ssh -T git@github.com ... Hi gabipetrovay! You've successfully authenticated, but GitHub does not provide shell access.   But when I try to connect from ubuntu using sudo, on behalf of user  sudo -E -u user ssh -T git@github.com   I get a Permission denied (publickey) error.  Using the -vv option for ssh I can see that when running with sudo on behalf of user from ubuntu the key on my machine is not offered to the ssh server. As a comparison:  directly form user:  debug2: key: /Users/gabriel/.ssh/id_rsa (0x7fbf09390020), debug2: key: /home/mono/.ssh/id_rsa ((nil)), debug2: key: /home/mono/.ssh/id_dsa ((nil)), debug2: key: /home/mono/.ssh/id_ecdsa ((nil)), debug2: key: /home/mono/.ssh/id_ed25519 ((nil)),   from ubuntu using sudo -u user:  debug2: key: /home/mono/.ssh/id_rsa ((nil)), debug2: key: /home/mono/.ssh/id_dsa ((nil)), debug2: key: /home/mono/.ssh/id_ecdsa ((nil)), debug2: key: /home/mono/.ssh/id_ed25519 ((nil)),   So it seems that through sudo the SSH_AUTH_SOCK socket is not considered.  I have also added Defaults env_keep+=SSH_AUTH_SOCK to /etc/sudoers but it still does not work.  How can I achieve this? I need to execute ssh and git commands from user ubuntu on behalf of the user user.


Is there any physical simulator precise to atomic levels and quantum effects?

There are tons and tons of physics simulators for classical/large scale physics. I'm interested in a simulator in which you feed an input as atoms and positions and it simulates the evolution of the system. That is, it must form bonds, ions, and so on as would happen naturally. But it should be fast enough that I could be able to actually feed some huge materials into it (a full scale transistor, perhaps?) and it would be able to simulate it accurately and under reasonable times.  In other words, what I do not want is a system based on higher models such as fluid dynamics, heat transfer and so on. I want it to let those phenomena emerge.  I'm aware maybe what I am asking is too much, but is there anything at least close to it?


Steepest descent for a function defined over a specific domain

I am trying to minimize a convex function using the steepest descent method. The function is defined over the domain $D = \{(x, y) \in R^2 : 2x^2+y^2 < 10\}$.  The gradient descent iterations:  $$\mathbf{x}_{n+1}=\mathbf{x}_n-\gamma \nabla F(\mathbf{x}_n),\ n \ge 0$$ where $\gamma$ is my constant stepsize (I tried diminishing stepsize and I get the same problem)  I easily get a solution $\mathbf{x}_{n+1} \notin D$ and then  diverge. How should I deal with the problem of going outside the domain?


Why do people use a separate current limiting restore for each LED in a matrix?

This might have a really basic answer, but its been bugging me. In a lot of circuits where you are controlling a series of leds, circuits will be draw with a separate current-limiting resistor for each led, instead of one single on the common side.  Why would you do this?         – Schematic created using   Instead of this?


java code for importing xls data into mysql database

I'm trying to import xls file into mysql but getting an error of Nullpointer EXCEPTION please give me the solution  package abhi;  public class ImportData {  /**  * @param args  */ public static void main(String[] args) {     // TODO Auto-generated method stub      try{         Class.forName("com.mysql.jdbc.Driver");           Connection con = (Connection) DriverManager.getConnection("jdbc:mysql://localhost/test","root","abhi1402");           con.setAutoCommit(false);           PreparedStatement pstm = null ;           FileInputStream input = new FileInputStream("D:/New Folder/apnakhata1.xls");           POIFSFileSystem fs = new POIFSFileSystem( input );           HSSFWorkbook wb = new HSSFWorkbook(fs);           HSSFSheet sheet = wb.getSheetAt(0);           Row row;         for(int i=1; i<=sheet.getLastRowNum(); i++){             row = sheet.getRow(i);             String CountryName = row.getCell(1).getStringCellValue();             String CountryCode = row.getCell(2).getStringCellValue();             String BankName = row.getCell(3).getStringCellValue();             String Website = row.getCell(4).getStringCellValue();             String Name = row.getCell(5).getStringCellValue();             String SMS = row.getCell(6).getStringCellValue();             int SMSNumber = (int) row.getCell(7).getNumericCellValue();             int CustomerCare = (int) row.getCell(8).getNumericCellValue();  String sql = "INSERT INTO Bank VALUES('"+CountryName+"','"+CountryCode  +"','"+BankName+"','"+Website+"','"+Name+"','"+SMS+"','"+SMSNumber  +"','"+CustomerCare+"')";              pstm = (PreparedStatement) con.prepareStatement(sql);             pstm.execute();             System.out.println("Import rows "+i);         }         con.commit();         pstm.close();         con.close();         input.close();         System.out.println("Success import excel to mysql table");     }catch(ClassNotFoundException e){         System.out.println(e);     }catch(SQLException ex){         System.out.println(ex);     }catch(IOException ioe){         System.out.println(ioe);     }  }  }   }  }


Showing that $\sum_{n=1}^{\infty} \frac{z^n}{1+z^{2n}}$ converges

Studying for an exit exam and it's been years since I work with any series expansions. Here's a past problem:  Show that $$\sum_{n=1}^{\infty} \frac{z^n}{1+z^{2n}}$$ converges to an analytic function on the set $A=\{z \in \mathbb{C}: |z|<1 \}$.  I'm looking to use Taylor's theorem for this problem but how would I compute the radius of convergence? Do I have to do a comparison test?


Can I tell Mac OSX to lie to an installer about my OSX version?

I have an old piece of video processing software that is no longer updated for the last couple of years.  The Macbook I have it installed on is running 10.11 Yosemeite.  My new Macbook Pro has 10.14 Mojave.  When I go to install it on this new computer it says that "Mac OS X 10.6 or Later Required."  The software includes drivers for the video capture card, so I certainly don't know for 100% that this software will even work with 10.14, but obviously it was just not in the installers listed of supported OS's yet, so it won't try.  So, I'm wondering if anyone knows a way to create a virtual environment or run in a compatibility mode or flat out lie to the installer about the version that I have installed to get it to try to install.  Thanks for any insight!


A property of complex functions to be proven.

If a holomorphic on the whole complex plane funtion $f$ has a bounded real part then it is constant.  Could I use here Cauchy-Riemann equations here? They seem to lead me nowhere.


I am only 15 years old,and my primary school education hasn't been that good,also I forgot a lot of things. I would like to start again,and I am asking for your advice. What are some of the good websites/books/methods that can help me?


ip address configuration in ubuntu 12.10

I am unable to edit /etc/network/interfaces and /etc/resolv.conf file with vi editor. How can I access the file as a owner? This is my network settings in Windows 7. I want to configure it in ubuntu 12.10. How can I do this?  IP address 192.168.40.31 Subnet mask 255.255.255.0 Default gateway 192.168.40.1 Preferred   DNS server 10.230.253.253 Alternet DNS server 203.147.88.2


Story regarding suspended animation and human-shaped felines

A scientist is struck by lightning and wakes up several millennia into the future. One of his first encounters is with a seemingly human female that has many feline characteristics - including a tail and long ears with Siamese cat marking. There are also vegetable-based engines and an extremely large semi-intelligent forest.


Why don't I have the right to create a text file in my root directory?

When I right-click in a window showing my C:\ directory in Windows 7 and try to create a new text file, I get an error message: "A required privilege is not held by the client."  Why is this and how can I change it?


Please help mi with:  $$ \lim_{n \rightarrow  \infty } ( \sqrt{2}- \sqrt[3]{2}  )( \sqrt{2}- \sqrt[5]{2}  ) \ldots ( \sqrt{2}- \sqrt[2n+1]{2}  ) $$


Hosting a (social) website that allows users to upload files

I've been working on a website almost social-media-like that, amongst other things, allow users to upload/share files as attachments. I intend to permit every file type and a limit of maybe 200mb per attachment. I have zero experience with website hosting. I earlier thought that I would deal with it later when the time comes, but now I want to at least have an idea of the challenges I will encounter and be prepared and to keep them in mind as I continue development. I know of the existence of free web hosting services but I doubt those will allow me to keep GBs of data. So if anyone will be kind as to suggest good hosting services, their pricing, storage capacities, or point me to where I can learn about them. The website I am working on is built with Reactjs for frontend and ASP.NET Core for backend.


Vertically align text within input field of fixed-height without display: table or padding?

The line-height property usually takes care of vertical alignment, but not with inputs. Is there a way to automatically center text without playing around with padding?


"This sentence is false". Is this sentence true or false?   My attempt:  If this sentence were true, then what it says would be the truth , it implies that it is false which is a contradiction. if it were false then it is false that this sentence is false, hence it  is true which is also a contradiction. So this sentence can neither be true be true nor false. Is my reasoning correct?  PS: I would like to see more of such statements.


I want to make a program in python (windows computer) that can transmit Morse code. If i press 'b' in python shell i want a the computer to respond directly with a long beep. The same when i press 'n', then the program should give a short beep. I can do this with raw_input but then i have to press enter each time i press 'b' or 'n'. How can i do this without having to press enter each time and just get a instant respond with a beep?  I have already tried this:  def Transmit():      c = 1     while c == 1:         a = raw_input("Press key: ")         if a == "b":             winsound.Beep(1000, int(1000*x))         if a == "n":             winsound.Beep(1000, int(3000*x))   And the function msvcrt.getch doesn't seem to be wroking in my python shell..


When I  tried exection grep function in particular directory its working on that directory but when I am trying to execute using absolute paths grep is not working for example   grep `date +%Y-%m-%d` /var/wwww/file/file.log >> /home/filename/file.log   The above command  output getting as empty file. Is it possible to schedule  grep in crontab to match text and generate valid output ?


Can we have a gold Lustrum badge in the same category as the Yearling badge?

I saw there was a similar request few years ago () and I didn't know how to bring that forward again.   I think is just natural extension to have a gold badge that rewards long time commitment much like the silver Yearling badge does.  Lustrum badge will be given to people that have over 5 consecutive Yearling badges and have an overall score over 3k (or 5k or 10k the best amount could be decided here). In any case the score should be higher than the 1k that is necessary for the 5 consecutive Yearling badges.   The badge could look like this:    I went for the word "lustrum" since I think it sounds good (at least better than  or quinquennium) and represent 5 years in one word.    Also this could be awarded multiple times much like Yearling, thus in 2018 there could be people that have two Lustrum  badges.  To a suggestion in the comments this question was copied as an answer


As we use Lorentz transformation equation to relate velocity of particle measured by observer which is in frame s this frame is  in relative motion having some velocity to that particle so Why the speed of light is independent of the relative motion of observer?


Is it mandatory to include collection type fields like Hashset in hashCode() and equal() methods

In my project I have seen the performance issues if we include collection fields in hashCode() and equal() methods.Is it mandatory to include or not? Below is the sample program.  Student.java  public class Student {     int no;     String name;     String adress;     Set < Parent > parent;         public int hashCode() {         final int prime = 31;         int result = 1;         result = prime * result + ((adress == null) ? 0 :         adress.hashCode());         result = prime * result + ((name == null) ? 0 : name.hashCode());         result = prime * result + no;         result = prime * result + ((parent == null) ? 0 :         parent.hashCode());         return result;     }       public boolean equals(Object obj) {     if (this == obj)         return true;     if (obj == null)         return false;     if (getClass() != obj.getClass())         return false;     Student other = (Student) obj;     if (adress == null) {         if (other.adress != null)             return false;     } else if (!adress.equals(other.adress))         return false;     if (name == null) {         if (other.name != null)             return false;     } else if (!name.equals(other.name))         return false;     if (no != other.no)         return false;     if (parent == null) {         if (other.parent != null)             return false;     } else if (!parent.equals(other.parent))         return false;     return true; }        }


Need root privileges to access files on USB flash drive

It wont let me open the flash drive to get the files I need. Anyone know the line of code I need to put me as root. I would like to stay root.


Continuity vs Differentiability Intuitive Differences

I am a developer and am beginning to dabble with these mathematical concepts.  I got to know that continuity means that making small changes in the input means that the output will also change by small amount only.  This looks fine to me, as this means there will not be breaks in the curve leading to abrupt jumps i.e. discontinuity.  Now, similarly, differentiability, I heard it means that at a point you can do linear approximation of the curve or something like a tangent to the curve exists at that point...but I don't get it.  What does differentiability mean intuitively? What special property does differentiability confer to the curve?  Is differentiability related to continuity?  EDIT: I am trying to understand the input vs output relation under differentiability the same way in which I explained continuity above. The other question does not focus on this (I read it, it was defining it in terms of derivatives rather than an input-output perspective).  Thanks for your help.


Align image in middle (vertical) of a div with css

I could use some help, aligning images (different sizes) at the middle of a container div. Have made a picture where you can see the div (the gray background) and that the images should align in the middle.    As you see, if the images are different in size, it will not look nice. How can I align all the images in the middle (vertical) so they are inline?  I'm not sure I can use position: absolute because I still want the images to resize itself (height: auto & width: 100%).   Html:

                     Fri fragt!

{{item.Header}}

{{item.Description}}

   CSS:  .item-imagegroup {     text-align: center;     padding-top: 1rem;     height: 350px;     background-color: grey;     vertical-align: middle;  }  .item-imagegroup img {     width: 100%;     height: auto; }  .item-image {     margin-top: 1rem;     margin-bottom: 1rem;      }   Have made the div fixed, so the text under also will be aligned. Not sure if there is a better solution here.  Hope someone can give me some advice.


How could I classify every county in this US as flat, hilly, or moderate?

I'm looking for a VERY rough label for every county, so low-res data is fine here. Is there data on existing elevation change per county? Or should I get an elevation layer of the US and do a zonal summary of intersecting features? Where could I find a rough elevation raster of the US?


I dont have a picture right now but I want to put an image over a sphere but I have no idea how, can any one show me how? thanks a plenty! :-)


Troubleshooting Software to Show / Solve All Ubuntu problems at once?

This question is merely of general interest. I'm a newbie to Ubuntu and like it quite a lot. However, troubleshooting takes up quite a lot of my time, because I love software and install left right and center, and when I got a problem later on I cannot figure out which one of the newly installed software caused it, or where to look for the problem. I had a problem earlier today where specifically Downloads close right after I opened it with Files / File Manager, using Nautilus. Documents, Pictures and the rest works fine though. Installed two other file managers (PCmanFM and Thunar) and Downloads works fine with them.  As a Windows user I am using SlimCleaner there, which is pure gold for checking on the health of Windows, it's basically a all-in-one command centre to see what is installed from software to toolbars, and much more, and helps a lot to identify problems on a computer. Unfortunately SlimCleaner is not available for Linux.  I am looking for a similar program for Ubuntu. At the moment I don't know where to look for 'dead files' that is just taking up space, I don't know what the health of my Ubuntu is, I don't know if a website hacked my browser and installed an add-on, I don't know if there are any corrupt files on it, etc. So the software I'm looking for must give me a nice overview of almost anything on Ubuntu, if you understand what I mean. A fix-it-all type of software, like those registry-cleaners and defragmenting software you get in Windows.  I surfed askubuntu but could not find a similar thread or solution, and believe many new users would like to identify potential problems on their systems at one central place. For all that I know Ubuntu itself may already have something like that built-in?  Oh, and I do read every Ubuntu manual and book that I can get hold of. :) I'm just a bit disappointed after seeing how many hours I spent looking for a solution to a problem, while software would have shown it to me in seconds, and probably fix it in a few more.


php - check whether string end with image extension

I need to verify string whether the string is image file name.  $aaa = 'abskwlfd.png';  if ($aaa is image file) { echo 'it's image'; else { echo 'not image'; }   How do i do that? It will chck 100 images, so it should be fast. I know there is a filetype verification method, but I think that's slow.. What about preg_match? Is it faster? I'm not good at preg_match.  Thank you in advance.


In the basic Monty Hall problem, why not the probability are 50-50?

When reading the book of (Chapman & Hall_CRC Texts in Statistical Science) Joseph K. Blitzstein-Introduction to Probability Chapter 2. I have great puzzles about the second last paragraph. To build correct intuition, let’s consider an extreme case. Suppose that there are a million doors, 999,999 of which contain goats and 1 of which has a car. After the contestant’s initial pick, Monty opens 999,998 doors with goats behind them and o↵ers the choice to switch. In this extreme case, it becomes clear that the probabilities are not 50-50 for the two unopened doors; very few people would stubbornly stick with their original choice. The same is true for the three-door case. The author give a extreme case. After opening the $999,998$ doors. Why 'it becomes clear that the probabilities are not $50-50$ for the two unopened doors; very few people would stubbornly stick with their original choice'? I still can not abandon the idea that the probabilities are $50-50$. How to think about it? Thanks for any help!


Java: Why does if statement never resolve to true?

I am trying to make a noughts-and-crosses prototype. The section of code I am struggling with is getting an user input, and if the input is y, it should change the gamestate to 0 which restarts the game. However this doesn't happen. Can anyone explain why?  Scanner s = new Scanner(System.in);                 System.out.println("Would you like to play again?");                 if (s.next().toLowerCase() == "y") {                     System.out.println("Okay");                     g.gamestate = 0;                 } else {                     g.gamestate = 4;                 }


How do I make a program auto-start every time I log in?

I frequently need to start several programs that I use every time I start my computer. How can I make it so that whenever I login the program is automatically launched?


I am encounter this question, I don't know how to start. Can you guys help me on this? $N$ is a positive number. I randomly pick a number, $K$, from $[0, N-1]$. If $K = 0$, the process ends, otherwise we keep picking a number from $[0, K-1]$ until we pick $0$. What is the expected number of picks to end the game?


In our next campaign, I will play a fiend warlock.  I have made a pact with a powerful devil. He will get my soul once I die. In exchange, he gave me a portion of his power. Since the deal, I have matured. I have found religion, and regret the pact.  Thus, I want to avoid dying at all cost. My endgoal would be to become a lich (or achieve immortality another way).  Is this even possible for warlocks, or can only wizards become liches? I have read conflicting information online... How do I go about becoming a lich? Are there fixed rules and requirements, or does my DM have to make it up?


I cannot increase the size of a table because it would exceed the maximum allowed in my publication. Any solution to make the data easy to read?

First of all I'll describe my problem. I'm writing a publication in which I need to introduce three tables that have a lot of data. In order to fit the maximum space allowed, I made the tables smaller but this causes the tables to be very small and makes difficult to read the data. The tables can't overcome the width of the column. Any tip or solution that can help? Thank you in advance.


Should the Precognitive badge be listed in the list of S[OFU] badges?

Followed the  proposal for this site before it entered the commitment phase    None of these sites had Area 51 proposals.