Suppose I have  on the battlefield. Does the legend rule apply if I then play ?

If I have two different Ulamogs, can they both be on the field? They both share Ulamog as part of their name, but their entire names are different.     One is , while the other is . Does legend rule carry across instances like this, or would it only apply if I had two of either of them on the field?


I want to deactivate my Facebook account and create a new one. How can I associate this new account with my current Stack Overflow account?

I no longer use the service that I originally used to register, and would like to change the service I use to log in, or at least add a second account.  Is this possible? How do I change my login provider or associate a backup method to log in?     For more information, see "" in the .


I have seen a design bug in the Stack Overflow BADGES section.  After earning a badge the design flows like the screenshot below:

When I visit  I see this:     The "Congratulations! You've earned (badge)" section has dropped down completely beneath the tabs under it. The "You've earned a new privilege!" section has a gap at the bottom:     Shog9 says in comments how to reproduce this:     Gotta have earned a badge, not dismissed the notification, and be looking at your own profile.


By mistake i formatted the drive in which Ubuntu 14 was installed by using GParted Live CD. Now i want to install Windows to it, but nothing is booting up. I tried DVD and USB. All my pc showing up is GNU Grub. I don't know what to do?? Please help. Thanks

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


I want to talk to someone about the house that my wife and I own.  Saying, for example, "My wife's and my house is awesome," sounds a bit funny to me.  What's the best way to express this?  Clarification  I'm asking specifically about the grammar of multiple nouns in possessive form.  I'm particularly curious if it's possible to do this with a first-person pronoun (me).  I am capable of rephrasing this in other ways - my question is not how to express the idea, but about this particular grammatical construction, if it is even legal.

I just stumbled upon a :     My wife and I's seafood collaboration dinner. How does it look?   Sure enough, the top comment immediately points out that it should be "my wife's and my". However, a cross-post to the Grammar subreddit produced :     It's fine as it is written. "my wife and I" is a noun phrase, functioning as a subjective pronoun in the singular and made possessive with the apostrophe. It is exactly the same as "our".      It seems weird because you would never use "I's" on its own but it is not on its own here - it is part of a noun phrase.   That's a rather intriguing argument. Does it hold any water?


Right now I have this code. I am intending to write code that calculates the number of days between today and January 1 of this year.  As you can see in the output below, it prints the number of days and the time.  How can I rewrite the code so that it says just '78', not '78 days, 21:04:08.256440'?  from datetime import datetime Now = datetime.now() StartDate = datetime.strptime(str(Now.year) +'-01-01', '%Y-%m-%d') NumberOfDays = (Now - StartDate)  print(NumberOfDays)   #Output: 78 days, 21:04:08.256440

If I have two dates (ex. '8/18/2008' and '9/26/2008'), what is the best way to get the number of days between these two dates?


I have two vector layer land cover for 2016 and 2018. I want to get  result layer that will show changes in land cover e.g. the forest has changed into a meadow. What option in QGIS can I use to do that?

I am using QGIS. I have two exports of vector data created some 6 months apart. How do I find any new objects added in the 6 months, and any attribute changes in the original objects? An asset_id field exists in both tables as a unique identifier, and will carry through both tables. I can use the "Difference" tool to get geometry changes but can't get the attribute table changes too.


I am working in SP2013, I have enterprise search. In the drop down I want to hide the "Everything" and "People" options.  Example: In Site Collection Administrator Settings -> Enter a Search Center URL there we given the Enterprise search url like "search/pages" here I can able to see the dropdown options, also it was redirecting to osssresults with dropdown options.

I want to hide EveryThing and Conversations in the drop down,can any one please help on this. Thanks in advance


This statement appears in code I am trying to work on. I do not understand what the # is for at the beginning of the line:      #If DEBUG Then         EventsLog.WriteToEventLog("Service Starting (version: " & versionNumber.ToString & ")", ProductNameClass.Name, EventLogEntryType.Information, EventId.DebugStart)      #Else         EventsLog.WriteToEventLog("Service Starting (version: " & versionNumber.ToString & ")", ProductNameClass.Name, EventLogEntryType.Information, EventId.Starting)     #End If

I have this legacy code that I am working with and there is code like this all over the place:       #If PRE611 = True Then         'Do Something     #Else         'Something Else     #End If   I am pretty sure the PRE611 has something to do with versioning, but I would like to know what specifically the # sign does.


I am given that the order statistics $X_{(1)}, ..., X_{(n)}$ are iid from a distribution with pdf   $$f_X(x;\theta) = \frac{1}{2}e^{-|x-\theta|}, x\in \Bbb R, \theta\in \Bbb R$$  I approached with a likelihood function  $$L(\theta) = 2^{-n}\exp\left[-\sum_{i=1}^n |X_i-\theta|\right]$$  and the log likelihood   $$l(\theta) = -n \ln2-\sum_{i=1}^n |X_i-\theta|$$  I am not comfortable taking the derivative from here since the range of $X_i$ and $\theta$ does not let me guarantee that it will be $1$ or $-1$  and it also bothers me that the pdf is not the distribution of the order statistics that I am given.  My ultimate goals is to do a likelihood ratio test where   $$H_0: \theta = \theta_0 \quad vs \quad H_1: \theta \ne \theta_0$$  so that is why I am trying to find the MLE.  My notes suggest that the median is the MLE but I have no idea why that would be true.  I appreciate your input.

Find the MLE of the unknown parameter $\theta$ when $X_1,X_2,...,X_n$ is a sample from the distribution whose density function is: $$f_X(x) = \frac12e^{-|x-\theta|}, -\infty<x<\infty$$ What I did so far: $$\text{maximize }(\frac12)^ne^{-|x_1-\theta|-|x_2-\theta|-...-|x_n-\theta|} \\ \text{thus we want to minimize }|x_1-\theta|+|x_2-\theta|+...+|x_n-\theta|$$ Since $|x_i-\theta|$ is positive for all $i$, we want to solve for $\theta$ so: $$|x_1-\theta|+|x_2-\theta|+...+|x_n-\theta|=0$$ What do I do from here?


The space between my equation is bothering me as it looks unnecessary. I have a feeling it is because of some formatting on latex that wants every page to end specifically at the last line of that page.   I'm a newbie at latex to be honest, so any help will be much appreciated. Preferably I'm looking for a simple code I can implement maybe after the equation...  Using sharelatex.com my the relevant chunk of my code is:     \begin{problem}  La siguiente función representa una curva gaussiana  \begin{equation*}  f(r)=\frac{1}{\omega_o}\exp(-r^2/\omega_o^2)  \end{equation}  TEXT.... \includegraphics[width=\textwidth]{FC_t0_3'.png}   That piece of code was probably worthless so I add the URL of my document  so you can see for yourself. Note that I've used a matlab template.  Thanks.

I use the options  \renewcommand{\baselinestretch}{1.25} \setlength{\parskip}{0pt} \setlength{\parindent}{0pt}    in the preamble of my document and most of the time the document looks like intended. Once in a while though, especially when I use multiline-equations, I get huge spaces right before and after the equation and the surrounding text, for example:    Is there any way I can avoid that without removing the \parskip option?


I am trying to get the values as they are input to determine the coordinate on which to change a string. However, instead of happening sequentially from first inner array to the next, both are changing. I cannot seem to catch the bug. Here is the code:  def read_inputs():     size = input()     boats = input()     boards = make_boards(int(size))     get_boats(int(boats), boards)     show_boards(int(size), boards)  def make_boards(size):     board1 = []     board2 = []     for i in range(size):         curr_row = []         for j in range(size):             curr_row.append('-')         board1.append(curr_row)         board2.append(curr_row)     return [board1, board2]  def show_boards(size, boards):     board1 = boards[0]     board2 = boards[1]     for i in range(size):         curr_str1 = ''         curr_str2 = ''         for j in range(size):             curr_str1+=board1[i][j]             curr_str2+=board2[i][j]         print(curr_str1+' '+curr_str2)  def get_boats(boats, boards):     size =len(boards[0][0])     for i in range(boats*2):         boat_str = input()         boat_arr = boat_str.split(' ')         x=int(boat_arr[0])         y=int(boat_arr[1])         n=int(boat_arr[2])         orient=int(boat_arr[3])         if y+n>=size:             n = size         if orient==0:             for j in range(n):                 boards[i%2][x][y+j]='B'         else:             for j in range(n):                 boards[i%2][x+j][y]='B'         print(boards)  def main():     read_inputs()  main()   Given the inputs  4 1 0 0 2 0 1 1 1 1   the output should be  BB-- ---- ---- -B-- ---- ---- ---- ----   But instead getting  BB-- BB-- -B-- -B-- ---- ---- ---- ----

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I am new here so sorry if this question has been asked before.  Which one is correct "here is some stuff" or "here are some stuff" ?

I wrote “I know all these stuff; I don’t have to go over them again” in my writing-exam paper and the teacher corrected it to read, “I know all this stuff; I don’t have to go over it again.”  The teacher is Irish so I don’t think he would make a mistake but I think even if the first one (these) was wrong, the second one (them) should have stayed the same. Am I right?


I just watched The Sign of Three, where several women claim to have dated a ghost. At some point, Sherlock narrows his questioning down to four women.  What was his criteria to choose these four women in particular?

In , when Sherlock is having a conference with the 5 women (the Mayfly Man case), he finds that the employers of all five women are different. So how does Tessa know about the wedding and why did the Mayfly man date the other women?     SHERLOCK: Job.      GAIL: Gardener.      CHARLOTTE: Cook.      TESSA: Private nurse.      ROBYN: I do security work.      VICKY : Maid.      SHERLOCK: Obvious. You all work for the same person!      SHERLOCK: No, not the same employer. Damn.   Source for Transcript:


I wrote a program, that allocates memory, and computes the size between adress of lowest, and highest pointer. I am suprised with results. When I start it, it takes 20mb of memory, 40, 60 ... 200, 220, 240,... 3000mb, 3020mb, and then suddenly bang, 262000 mb, and so on. Could somebody explain me why?  #include <iostream> using namespace std; int aaa; int *max1=&aaa; int *min1=&aaa;  void results(){     cout<<"min "<<min1<<endl;         cout<<"max "<<max1<<endl;         double mln= 1e6;         cout<<"min-max= "<<(max1-min1)/(1024*1024)<<"mb"<<endl; }  void logic(int *c){     if(c>max1){         max1=c;     }     if(c<min1){         min1=c;     }     static int i;     i++;     if(i%800==0)     results(); }   int main(){     int *x;     int l=0;     while(l<=500000000){         l++;         x=new int[20000];         logic(&x[19999]);     }  }

Most of the literature on Virtual Memory point out that the as a Application developer,understanding Virtual Memory can help me in harnessing its powerful capabilities. I have been involved in developing applications on Linux for sometime but but didn't care about Virtual Memory intricacies while I code. Am I missing something? If so, please shed some light on how I can leverage the workings of Virtual Memory. Else let me know if am I not making sense with the question!


How do i calculate $ \sum_{k=1}^{n} \sin(2k-1)x $, using $e^{i*x}=cos(x) + i*sin(x)$?

How can we sum up $\sin$ and $\cos$ series when the angles are in arithmetic progression? For example here is the sum of $\cos$ series:  $$\sum_{k=0}^{n-1}\cos (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \cos \biggl( \frac{ 2 a + (n-1)\cdot d}{2}\biggr)$$  There is a slight difference in case of $\sin$, which is: $$\sum_{k=0}^{n-1}\sin (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \sin\biggl( \frac{2  a + (n-1)\cdot d}{2}\biggr)$$   How do we prove the above two identities?


I’m taking this for granted and using it to show that the wave function in momentum space is the Fourier transform of $x$ space. But suddenly I don’t why this stands.  $$\langle p |x \rangle =e^{-ipx}/\sqrt{2\pi}.$$

I'm curious whether I can find the overlap $\langle q | p \rangle$ knowing only the following:   $|q\rangle$ is an eigenvector of an operator $Q$ with eigenvalue $q$. $|p\rangle$ is an eigenvector of an operator $P$ with eigenvalue $p$. $Q$ and $P$ are Hermitian. $[Q,P] = i \hbar$.   I'm asking because books and references I've looked in tend to assume that $Q$ is a differential operator when viewed in the $P$-basis, then show that it satisfies the commutation relation. (I haven't read one yet that proves that the form given for $Q$ is the only possible one.) I've heard, though, that we can work purely from the hypothesis of the commutation relation and prove the properties of $Q$ and $P$ from it.


I tried to show that the set $X = \{(x, y)\in \mathbb{R}^2 : x^2 + y^2<1\}$ is convex.

Let $X$ be a normed linear space, $x\in X$ and $r>0$. Define the open and closed ball centered at $x$ as  $$ B(x, r) = \{y \in X : \Vert x − y\Vert < r\} $$  $$ \overline{B}(x, r) = \{y \in X : \Vert x − y\Vert \leq r\}. $$ Then $B(x, r)$ and $\overline{B}(x, r)$ are convex.  I tried to prove this, but either my calculation is incorrect, or I am on the wrong path:  I aim to show for the closed ball $\overline{B}(x,r)$ (for open ball I assume the proof is similar). Suppose $y,z \in \overline{B}(x, r)$. Then $\Vert x − y\Vert \leq r$ and $\Vert x − z\Vert \leq r$. We must show that $t \in [0,1]$ implies $ty + (1-t)z \in \overline{B}(x,r)$. But $t \in [0,1]$ implies $$ \Vert ty + (1-t)z - x\Vert = \Vert t(y-z) + z - x\Vert \leq |t| \Vert y-z\Vert + \Vert z-x\Vert \leq |t|(\Vert y-x\Vert + \Vert x-z\Vert) + \Vert z-x\Vert < |t|(2r) + r = r(2|t| + 1), $$ which is not necessarily $\leq r$. We probably wanted to end up with $< |t|r$ or $\leq |t|r$ as our final inequality.  Thanks in advance.


Is it true that the coordinate of the mass center of a convex polytope (constructed by n vertices) in a n-dimensional space is actually the average of all the vertices' coordinates? If so, how to prove it?  For example, say we have a convex polytope with vertices $(x_{11}, x_{12}, ..., x_{1n}), (x_{21}, x_{22}, ..., x_{2n}), ..., (x_{n1}, x_{n2}, ..., x_{nn})$, is it true that its mass center (mass is uniformly distributed over the polytope) is at $\frac{(x_{11}+ x_{21}+ ... +x_{n1})}{n}, \frac{(x_{12}+ x_{22}+ ... +x_{n2})}{n}, ..., \frac{(x_{1n}+ x_{2n}+ ... +x_{nn})}{n}$?  Thanks!

I was having a look at .  From what I know, the centroid is the center of mass of an object. so, by definition its position is given by a simple mean of the positions of all the points in the object.  For a polygon, it only has mass at the vertices. So, the centroid should be given by the arithmetic mean of the coordinates of the vertices.  But  says centroid is given by    where A is    Why doesn't a simple arithmetic mean work?


How can I recover lost, erased, files from Hard disk bad shut-down. Free apps only please. MacBook.I had a bad shut down, then restarted system. I lost bunch of docs, pics, music

I am a longtime Windows user, recently switched to Mac. I replaced folder with another folder (they had the same name) thinking that OS X will merge the contents of both folders. But OS X deleted the original folder and replaced it with the new one. Windows merges both the folders (I do this often in Windows). I have now lost hundreds of files. I haven't enabled Time Machine. I've tried using Finder's Undo, but that doesn't work.  Currently, I am trying to recover my data using . It shows estimated time as 7 hours, 31 minutes. Does anyone know any free data recovery software that's faster and more powerful?


I was searching flights to Paris, and was shocked how much they were.  But I can fly to Russia, with a layover in Paris for nearly half the cost. I know if I book to Russia I can just not get on the flight from Paris to Russia, but the question I have is how to fly from Paris to home when the originating city would not be Paris?  Does it matter that I wouldn't be on that first flight?

Say I want to book a flight from Fort Lauderdale to Chicago.  Say the airline also flies to St. Louis from Fort Launderdale but has a connecting flight through Chicago.  If I book that flights from FLL->ORD->STL and just get off in Chicago, what possible problems can I run into, assuming I didn't check any bags and only have carry on?  This scenario exist for Southwest, but I wanted this be more of a general question that would apply to all airlines.


Let $X$ be a normed linear space. Let $T: X \to X$ be  compact linear operator and $T^{2}=T$. Show that T is a finite rank operator, that is, $Range(T)$ is finite dimensional in $X$.  I have no idea how to show that this operator is of finite rank. Any hint or solution will really be appreciated.  Thanks in advance!

Would you help me to solve this problem. Show that an idempotent operator on hilbert space is compact if and only if it has finite rank.


So I'm doing the undo and redo functions using a stack object, but when I try to undo adding a friend to the array list I'm getting this error:  Exception in thread "main" java.lang.NullPointerException     at main.main(main.java:256)   Here's the line where the error occurs in the main:  else if("friend".equals(temp.getAction())) //add friend {     int newFriendUserIndex = facebook.findUser(temp.getUser2());     user.defriend(facebook.getUser(newFriendUserIndex));//Error is here      MyStackObject undo = new MyStackObject(user.toString(), "deFriend", temp.getUser2());     facebook.redoList.push(undo); }   MyStackObject Class  import java.util.*; import java.io.Serializable;  public class MyStackObject implements Serializable {     private String user1 = null;     private String action = null;     private String user2 = null;     private String like = null;     private FacebookUser user;      public MyStackObject(String user1, String action, String user2)     {         this.user1 = user1;         this.action = action;         this.user2 = user2;     }      public MyStackObject(String user1, String like)     {         this.user1 = user1;         this.like = like;     }      public MyStackObject(FacebookUser user, String action)     {         this.user = user;         this.user1 = user.toString();         this.action = action;     }      public FacebookUser getUser()      {         return user;     }      public void setUser(FacebookUser user)      {         this.user = user;     }      public String getUser1()      {         return user1;     }      public void setUser1(String user1)      {         this.user1 = user1;     }      public String getAction()      {         return action;     }      public void setAction(String action)      {         this.action = action;     }      public String getUser2()      {         return user2;     }      public void setUser2(String user2)      {         this.user2 = user2;     }      public String getLike()      {         return like;     }      public void setLike(String like)      {         this.like = like;     }   }   MyStack Class  //EXPLANATION:  public class MyStack implements Serializable {     private java.util.ArrayList<MyStackObject> undoList = new java.util.ArrayList<MyStackObject>();      public MyStack()     {      }        public MyStackObject peek()        {         return undoList.get(getSize() - 1);       }        public int getSize()        {         return undoList.size();       }       public void push(MyStackObject temp)        {         undoList.add(temp);       }        public MyStackObject pop()        {         MyStackObject temp = undoList.get(getSize() - 1);         undoList.remove(getSize() - 1);         return temp;       }        public boolean isEmpty()        {         return undoList.isEmpty();       }  }   Ah well other thing I found as null is this for the undo option:  case 12://Undo                     if(facebook.undoList.isEmpty() && facebook.redoList.isEmpty())                     {                         System.out.println("\n\tNo recent actions have been done yet!");                     }                     else                     {                         MyStackObject temp = null;                         int secondMenu = undoMenu();                         String userName;                         String password;                         boolean match = false;                         boolean quit2 = false;                         Scanner input2 = new Scanner(System.in);                         FacebookUser user = null;   but I'm not sure what to change it too.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


If I'm using kit lens on a DX body will I get sharper image if using tripod for exposure time of 1/90sec or less ?

I am looking into use cases where the use of a tripod is very effective or necessary.  Though in theory every possible shot can be taken with the help of tripod, in real life I do not think that is feasible and some tend to use a tripod in some shots and not in others.  So are there any specific cases where use of a tripod is always recommended? I am particularly interested with respect to landscape, macro and portrait photography.


So, say that someone is about to start at a new school, and your sister says "Oh, I aced that class! Let me introduce you to the teacher; maybe he'll give you less homework/give you more opportunities."  For some reason the word "hedonism" is rattling around in my brain, though I know that's not it. Also maybe it's the opposite of "altruism"? I'm having an off day and can't for the life of me figure it out.

It's a word that suggests that educated or talented people who aren't related don't stand a chance. The word is why Peaches Geldof is famous today.  It is a real word, I just forgot the word.


I am looking for a simple table with two columns: One column has unicode symbols (not images or anything else) (example: ∞) and another column has the TeX equivalent (example: \infty).  The table  has exactly what I want, but I'm looking for a more complete list (the more symbols the better).  EDIT: What I'd like is unicode symbols which I can simply copy and paste into any text editor and it will be correctly rendered. In for example the , if I try copying from the PDF the \pounds symbol into any text editor, I get instead "$".  EDIT 2: I am also a novice in programming, TeX, etc. What I want is to be able to copy paste such a table into Excel and be able to manipulate it. If I knew how to look at various source codes and extract and assemble the desired information into the desired table, I wouldn't bother posting here. I imagine I'm not the first and last person who would like to find this simple list. Perhaps no such list exists, in which case too bad for me. But I'm just asking.  Thank you.

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


I want to fetch all user profiles with Rest API,  If I did this with the SSOM - it takes a lot of time because the users are near about 7000 or more and I have to show them on search.  E.g =>If I have searched with A then result should show all the users whose Last Name start with letter A.  I got some references, , But this not worked for me!

There are over 10000 User Profiles.   So I want to get all user Profiles in single request with all user properties.   Is it possible to get multiple users in single request matching particular criteria?  I need to know what will be the best approach from the performance point of view? It can't afford to be slower.  Please suggest something.


If $n$ is an integer with $n>1$, then $n$ has a prime factor. How do you do this using strong induction??

Prove that for $ n \geq 2$, n has at least one prime factor.  I'm trying to use induction. For n = 2, 2 = 1 x 2. For n > 2, n = n x 1, where 1 is a prime factor. Is this sufficient to prove the result? I feel like I may be mistaken here.


Consider the following code:  #include <iostream> using namespace std; void test0(const int &a){   cout << "const int &a passed *ptra "<< a << endl; } void test1(const int &a){   cout << "const int &a passed ptra "<< a << endl; } void test2(const int &a){   cout << "const int &a passed *a "<< a << endl; } void test3(const int &a){   cout << "const int &a passed a "<< a << endl; } void test4(int *a){     cout << "int *a passed &a "<< *a << endl; } void test5(int *a){     cout << "int *a passed a "<< a << endl; } void test6(int *a){     cout << "int *a passed *a "<< a << endl; } int main(){   int a = 3;   int *ptra;   *ptra = 3;   test0(*ptra);   //test1(ptra);   //test2(*a);   test3(a);   test4(&a);   //test5(a);   //test6(*a);   //int &b = a; }   How come (int &a) when passed a becomes a reference? Is it essentially creating an int a and setting its address to the passed a? Wouldn't it make more sense for the resulting reference to point the address of the value of a (if a = 3 points to address 3), where if you passed like so:  void stuff(int &a); int *ptr; stuff(ptr);   a would set its address to the value passed (the address pointed to by ptr); What's the difference between a pointer and a reference?  What's more, if you uncomment //int &b = a the program ceases to output anything. Why?

I know references are syntactic sugar, so code is easier to read and write. But what is the difference between a pointer variable and a reference variable?


In function header i have this situation:  Should i stay the "=null" in the end, or Java when exiting function do that itself?  My intention it to make this objects as soon as possible ready for garbage collection. This is a soft real time system.  public BulkDataResponse(Double closePrice, Integer closeTime, Integer cmd,         String comments, Double commission, Integer digits,         Integer errorCode, Integer expiration, String login,         Integer magic, Double openPrice, Integer openTime,         Integer positionOrder, Double profit, Double rateClose,         Double rateMargin, Double rateOpen, Integer sourceId,         Double stopLoss, Double swap, String symbol, Double takeProfit,         Double taxes, Integer timeTick, Double volume)  {     super();     this.closePrice = closePrice;     this.closeTime = closeTime;     this.cmd = cmd;     this.comments = comments;     this.commission = commission;     this.digits = digits;     this.errorCode = errorCode;     this.expiration = expiration;     this.login = login;     this.magic = magic;     this.openPrice = openPrice;     this.openTime = openTime;     this.positionOrder = positionOrder;     this.profit = profit;     this.rateClose = rateClose;     this.rateMargin = rateMargin;     this.rateOpen = rateOpen;     this.sourceId = sourceId;     this.stopLoss = stopLoss;     this.swap = swap;     this.symbol = symbol;     this.takeProfit = takeProfit;     this.taxes = taxes;     this.timeTick = timeTick;     this.volume = volume;      closePrice = null;     closeTime = null;     cmd = null;     comments = null;     commission = null;     digits = null;     errorCode = null;     expiration = null;     login = null;     magic = null;     openPrice = null;     openTime = null;     positionOrder = null;     profit = null;     rateClose = null;     rateMargin = null;     rateOpen = null;     sourceId = null;     stopLoss = null;     swap = null;     symbol = null;     takeProfit = null;     taxes = null;     timeTick = null;     volume = null; }

Does assigning an unused object reference to null in Java improve the garbage collection process in any measurable way?  My experience with Java (and C#) has taught me that is often counter intuitive to try and outsmart the virtual machine or JIT compiler, but I've seen co-workers use this method and I am curious if this is a good practice to pick up or one of those voodoo programming superstitions?


I am on Ubuntu 13.10, my graphics card is AMD Radeon HD4200. My sound card is a realtek HDMI. I've tried downloading and installing both drivers but nothing works.  Graphics card:  When I run the .run file (from )  I get an error. I check the fglrx-install log and it says this:   Check if system has the tools required for installation. fglrx installation requires that the system have kernel headers.  /lib/modules/3.11.0-12-generic/build/include/linux/version.h cannot be found on this system. One or more tools required for installation cannot be found on the system. Install the required tools before installing the fglrx driver. Optionally, run the installer with --force option to install without the tools. Forcing install will disable AMD hardware acceleration and may make your system unstable. Not recommended.   Audio:  Since my first install I've had no audio. I've tried everything outlined in this site:  to no avail. I've download the linux drivers from Realtek HDMI audio but have had no luck.

I am planning on doing a fresh install of Ubuntu and want to know what is the correct way to install ATI Catalyst Video Driver?      There are multiple valid answers for this question spanning over several versions of Ubuntu. For your convenience an index of each below:


I am a Canadian citizen. A few years ago, I had a four-month internship in the US. I entered on a J1 visa. After completing it and returning to Canada, I subsequently did two more four-month internships, both on J1 visas as well. However, when I returned from the second internship, I completely forgot to turn in my I-94 card. When heading to the US for my third internship, the CBP agent obviously noticed this, gave me a big lecture on how I screwed up, almost turned me back home, etc.; nonetheless, he still admitted me and I completed my third internship, making sure to hand in the I-94 card this time.  Some time later, I went to the US for a short vacation. For some reason, I was pulled aside again for I-94 issues, even though I turned in my latest I-94 card. This almost caused me to miss a connecting flight.  I then found that there's an online database where you can check your arrival and departure records. To my surprise, it indicates that there are still two missing departure records, despite the fact that I am in possession of zero I-94 forms (I turned it in after internships #1 and #3, and the CBP agent took the one from internship #2):                     Departure    2013 June 14        MIL - MILWAUKEE, WI Vacation      -->  Arrival      2013 June 08        CHI - DISTRICT OFFICE 9, CHICAGO, IL                    Departure    2012 December 23    SFR - SAN FRANCISCO, CA Internship #3 -->  Arrival      2012 August 25      TOR - TORONTO, ONT. CANADA Internship #2 -->  Arrival      2011 December 31    TOR - TORONTO, ONT. CANADA Internship #1 -->  Arrival      2011 April 28       TOR - TORONTO, ONT. CANADA   I fear that these missing departure records will haunt me every time I try to travel to the US. How can I correct the missing records, even if I don't have the I-94 forms anymore? I still have all of my original boarding passes for the missing departures (all trips were done via air).

Three years ago I was on holidays in Canada and visited the Niagara Falls. I also went to the American side of the falls and got something like a "short-term visa". I also got a green paper with all my information (name, passport number, etc.) which I should give back at the border when leaving USA again.  When I got back from the USA side of the falls, the border was abandoned. Therefore I couldn't give the green paper back to the officials. Now I'm really a bit afraid that in their computer system I still haven't left the USA.  Next summer I plan to visit USA again. Can I get into trouble at the border?


I'm experiencing a weird issue with a simple table with a multicolumn. If the title of the multicolumn is short enough, the three subcolumns are correctly aligned, otherwise, they get strangely arranged.  Here's the code and the results. Thanks in advance!  \documentclass[a4paper,11pt]{book} \usepackage{caption,booktabs,multirow} \begin{document} \begin{table}[!h] \centering \begin{tabular}{ccccccc}     \toprule     \toprule     \multirow{2}*{\textbf{Layer}} & \textbf{Radius} & \multirow{2}*{\#\textbf{Ladders}} & \multicolumn{3}{c}{\textbf{Sensors}} & \multirow{2}*{\textbf{APV25/Sensor}} \\      & (mm) & & S & L & T & \\     \midrule      3 & 38 & 7 & 2 & 0 & 0 & 12\\     4 & 80 & 10 & 0 & 2 & 1 & 12\\     5 & 115 & 12 & 0 & 3 & 1 & 12\\     6 & 140 & 16 & 0 & 4 & 1 & 12\\     \bottomrule \end{tabular}  \caption{Geometrical parameters of the SVD. S, L, and T stands for small, large, and trapezoidal sensors. The numbering scheme treats the PXD and the SVD as an only object, hence the layer numbers 1 and 2 are taken by the two PXD layers.} \label{Belle2_SVD_Table} \end{table} \end{document}

I'm trying to typeset a table that would have a header in the first row (I'm not looking for a different/better solution to adding a header, but for a fix to this solution. Thanks). I want to achieve this by having a multicolumn cell spanning all the columns of the first row. The problem is that if the text is too long, the column widths are uneven, with the last column accumulating excess width. I would expect all of the columns to be of approximately the same width (although I cannot find a decent source that would say they should), given the fact that all the text in the second row is of approximately the same width.  I find this behaviour quite puzzling and have no idea what the cause could be. I know I could perhaps remedy this by manually setting the column widths, but am curious as to how to fix this without doing that (I do not need or indeed want the columns to be of the same width, but roughly proportional to the length of their content), preferably but not necessarily by using the tabular environment only (some other conflict with the document class I am using).   What is it that I'm doing or assuming wrong? And why?  MWE:  \documentclass{article} \begin{document}  \begin{tabular}{ccccc} \multicolumn{5}{c}{This is a piece of text. The longer it is, the longer the last column.} \\  1 & 2 & 3 & 4 & 5 \\ \hline \end{tabular}  \end{document}   Resulting table. Notice how the last column of the second row accumulates excess width.


im currently writing a simple server for a mobile/web game. In short, players have a number of buildings that will produce several items every x minutes. What i though as a solution its creating a column named "nextProduction" and start a cronjob that will give the items and update that column, then renew the cronjob for the next iteration.  Now i have doubt about it, maybe this solution will be too resource intensive as the number of players increase? Thanks beforehand

I have to implement cron jobs in to my MMO browser game. Its like in Travian game - you build something, and wait few minutes or hours.. But the problem is, that cron job shedulers made to be sheduled every second/minute/day etc..  But in my game i need to shedule thousands of the same jobs, which must run separately and after some unique time to be released. So far i am unlucky with that idea. I am using Node.js and I just tried so many node shedulers, they seem are not supposed to have thousands of jobs.. I can run few unique only. I trough maybe then i can make like - cron job, which runs every 1 second and checks the Redis DB for any finished proccess. But that sounds crazy.. if i have few jobs only and they are in 24 hous only, my server checks that every 1 second.. Any ideas what should i do?    So far, the best option would be to remove cron jobs.  I was doing some my processes without cron jobs.  But other processes were really hard to calculate, and it was much easier with cron jobs. But i trough deeper and i think it is possible to calculate eveyrthing and simulate everything without cron jobs.  For example, the user has ressources inside Stats model. And i have hourly ressource income there. If the user wants to build anything, for example, traps, i have to recalculate the user ressources and save new value, set the new updatedAt. This is how i am updating my user ressources (inside Stats model), when some user wants to build a trap.  Stats.findOne({user_id: user_id}).exec(function (err, newstats){   var time_in_ms = (new Date()).getTime() - new Date(newstats.updatedAt).getTime();   var ressources_per_second = (newstats.base_income + newstats.field_income) / 60 / 60;   var current_ressources = newstats.resources + parseInt(time_in_ms / 1000 * ressources_per_second) - traps_price;   if(current_ressources < traps_price) return res.ok();   Stats.update(newstats.id, {resources: current_ressources}); });


If there is a load connected to a power outlet during one hour, where average apparent power is 1000VA and average effective power is 800W, what will be charged by the eletricity distribution company? The VA power (apparent) or the W power (effective)?

Electric company in some countries apply financial penalty for electricity consumers which have power factor lower than 0.9 If electric companies charged customers for apparent power, people would be encouraged to buy electric devices with better power factor because they will pay for Volt X Amp. Also, the company wouldn't need need to check the power factor of the consumer every day.  I think this could be more economic for the electric company.  So I'm wondering why the electric company doesn't sell the electricity according to Apparent power, so people are responsible for power factor correction, not the company.


Wolfram Alpha says the following series converges, but I can't figure out how to prove it.  $$\sum_{n=1}^{\infty}\frac{\sin(n)+\sqrt{n}}{n^2+5}$$  Can I use a comparison test with a simple harmonic p series, or is there a better way?

I am given the series:  $$\sum_{n=1}^{\infty} \frac{\sqrt{n}+\sin(n)}{n^2+5}$$   and I am asked to determine whether it is convergent or not. I know I need to use the comparison test to determine this. I can make a comparison with a harmonic p series ($a_n=\frac{1}{n^p}$ where p > 1, series converges). I argue that as the denominator grows more rapidly than the numerator, I need only look at the denominators:  $$\frac{1}{n^2+5}\le\frac{1}{n^2}$$  $\frac{1}{n^2}$ is a harmonic p series where $p>1$ which converges. As $\frac{\sqrt{n}+\sin(n)}{n^2+5}$ is less than that, by the comparison test, $\sum_{n=1}^{\infty} \frac{\sqrt{n}+\sin(n)}{n^2+5}$ is convergent.  Is this a valid argument for this question?


I am learning AIX 6-7 for practice, is there any alternative unix flavour which could be quite similar to AIX which could be run on a VMWare or Virtualbox for practice? Also, if there is any possibility of running AIX on your laptop, please let me know. I was also looking fot options through using Qemu for simulating Power systems.

I need to learn about , and I only have a laptop with Fedora 14/VirtualBox on it. Is there any chance that I could run an AIX guest in my VirtualBox?   My laptop has an Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz, and I read that it only runs on RISC architecture. So there's no way I can run it on my laptop?


I need to figure out how to decrypt from command line without gpg asking a popup to enter passphrase, I want to define that in the command line?  is it possible without having to create a batch file  please help

I have a file that is compressed.  I used a program to find out what kind of file it is and it says that it's a gpg file.  How do you uncompress a gpg file?


In our discourse FLT is Fermat's Last Theorem. I am unaware of any theorems or conjectures that begin assuming FLT is true, or otherwise use FLT as a starting point or tool. The small amount of literature review I've done on this question reveals nothing.  My question is: Where can I find a work requiring FLT, or some useful implication of FLT? Even an implication of a polynomial inequality, that may not be FLT, may be a good answer to this question, as I'll likely try to use it to find something regarding FLT.  The following is not acceptable as an answer to this question:  $$ (a^{x_{1}}_{1} + b^{x_{1}}_{1} - c^{x_{1}}_{1}) \ldots (a^{x_{n}}_{n} + b^{x_{n}}_{n} - c^{x_{n}}_{n}) \not= 0 : x_{i} > 2 $$  and it's expansions imply (something trivial)  Another acceptable answer to this question would be a proof requiring FLT to be false.  Thanks and please let me know if I can ask this question in a way more fitting math.se (new user).

I am not experienced in Number Theory but what I know is that some results of this filed are applicable in other areas, e.g. algebra. For sure FLT made (and makes) people be interested in Number Theory leading to the development of new methods which can be themselves applied not only for the proof of FLT (like financial problems motivated somehow development of stochastic analysis). I am interested - if there are applications or implications of FLT itself?  More precisely: if the fact "for each $n\geq3$ there are no integer solutions of $a^n+b^n=c^n$" leads to solutions of problems which are not in the field of Number Theory?   I would specify that I wonder about some problems which are already formulated: since FLT is known for more then 300 years I am pretty sure that there were formulated hypothesis which follow from FLT directly (if there are such hypothesis not in the field of Number Theory).


Let $\sum a_nx^n$ be a series, where $a_n$'s are not necessarily positive & let $R>0$ be its radius of absolute convergence. Then for $x=r>R$,  $\sum |a_n|r^n$ will be divergent, but my question is,  can the series $\sum a_nr^n$ be convergent.   Please give me few examples.

While teaching power series in my AP Calculus class, an interesting question came up.  I gave an answer that I believe is correct, but I'm not certain why it is correct except "by definition", but I feel like it's a cop-out to say "since it's an interval of convergence it must be an interval" (after all, there is the case where the interval of convergence is just a set with a single element).  The question was this:  Does the interval of convergence of a power series (of real variables) have to be an interval, or can it be the union of disjoint intervals?  It seems to me that, because the interval is normally found using the geometric series definition or the ratio test, both of which involve solving a less-than inequality of x, that the interval has to be just that, an interval (or just a set with cardinality 1, containing the center of the series only).  Any insight you can give me into this (such as counter-examples or a better explanation) would be greatly appreciated.  Thanks!


When light makes a long distance journey it's frequency shifts toward longer wavelengths. With $E = hc/\lambda$ being the amount of energy in any given photon (see photon energy); as it travels trough space it wavelength is lengthened which means it's loosing energy as it travels through empty space. As energy is conserved is it being converted to make more space or is there an interaction with vacuum energy that explains what happens to the energy of the photon?

From what I understand, the frequency of light coming from the source moving towards an observer increases. From $ E=hv $ , this implies increase in energy of photon.  What really is confusing, is where does that extra energy come from? And also where is the energy is lost during opposite Doppler effect (red shift)? Why doesn't this violate the conservation of energy?


i want to know why is important use CDF for this analysis of TMY (typical meteorological year) because i have the data of the month for compare with the long term mean  This the example of the manual      I have 2 CDF's with equal number of points that I want to compare. These are from:  Temperature of 1 month from 2012  Mean temperature across months  What can I do to obtain this difference, this is from the formula of Finkelstein-Schafer??  the manual is this manual


If you have some string (as a variable type from ), let`s assume it is string S that is "AAA". You can change individual chars freely. Like:  for(int i=0; i<3; i++) {     S[i]++ }   which as i guess will make it "BBB". So, in cs50 course lection we got that string function is just like char * and here is this code:  #include <cs50.h> #include <ctype.h> #include <stdio.h> #include <string.h>  int main(void) {     // Get a string     char *s = get_string("s: ");      // Allocate memory for another string     char *t = malloc(strlen(s) + 1);      // Copy string into memory     for (int i = 0, n = strlen(s); i <= n; i++)     {         t[i] = s[i];     }      // Capitalize copy     t[0] = toupper(t[0]);      // Print strings     printf("s: %s\n", s);     printf("t: %s\n", t); }   which effectively is copying one string to another, not just making another copy of link to starting character of string, but making another string with same filling just with the difference we are capitilizing first letter. SO, I've got a thought, why should I even use this new malloc(strlen(s) + 1). If I need another string to appear in means of just creating some memory jar, why can't I just make new string with any filling. Like this:  #include <cs50.h> #include <ctype.h> #include <stdio.h> #include <string.h>  int main(void) {     // Get a string     string s = get_string("s: ");      // Let`s consider we know exact size of s we are getting, so we are creating the string of same size, just for question purposes     string t = "qooq";      // Copy string into memory     for (int i = 0, n = strlen(s); i <= n; i++)     {         t[i] = s[i];     }      // Capitalize copy     t[0] = toupper(t[0]);      // Print strings     printf("s: %s\n", s);     printf("t: %s\n", t); }   And at this point it does not work, it compiles, but shows some cryptic errors when it goes into for loop. So where am I basically wrong? Am I missing something? I can do whatever I want with characters in a string, so why can`t I just give to characters the valuse of another character in this t[i] = s[i] ???

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


When explaining LASSO regression, the diagram of a diamond and circle is often used. It is said that because the shape of the constraint in LASSO is a diamond, the least squares solution obtained might touch the corner of the diamond such that it leads to a shrinkage of some variable. However, in ridge regression, because it is a circle, it will often not touch the axis. I could not understand why it cannot touch the axis or maybe have a lower probability than LASSO to shrink certain parameters. On top of that, why do LASSO and ridge have lower variance than ordinary least squares? The above is my understanding of ridge and LASSO and I might be wrong. Can someone help me understand why these two regression methods have lower variance?


I have a simple program I am supposed to write. In three methods I need to read in integers, reverse them, and determine if they are palindromes or not. For some reason the numbers always come back as not palindromes even when they obviously are.  This is my code:  import java.io.*; import java.util.*; import java.lang.*; public class main {  public static boolean isPal; public static void main(String[] args) throws FileNotFoundException, IOException {     int num;     int ctr = 0;     Scanner input = new Scanner(new File("data4.txt"));     num = input.nextInt();      while(num != -999)     {                     ctr++;         reverse(num);         isPalindrome(isPal, num);         if(isPal == true)         {             System.out.println (num + " is a palindrome");         }         else         {             System.out.println(num + " is not a palindrome");         }         num = input.nextInt();     }             System.out.println(ctr + " numbers were processed.");     System.out.println("End of Program"); }  public static int reverse(int num) {     int dig;     int rnum = 0;     while(num != 0)     {         dig = num % 10;         num = num / 10;         rnum = rnum * 10 + dig;     }     return rnum;         }  public static boolean isPalindrome(boolean isPal,int num) {     if(num == rnum)     {         isPal = true;     }     else     {        isPal = false;      }     return isPal; }     }   and the inputs are   3579 6336 5115 -999

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I have a MacBook Pro Mid 2010 that I changed the battery and logic board on, a few moths ago.  I have an issue with the battery that after a full charge and removing the charger plug the battery suddenly drops below 80%, but runs normal till about 50% and then the MacBook suddenly shuts down and doesn't turn on again until I plug the charger in again.  I've tried reseting SMC and calibrating the battery with no result.

I have two mid 2012 MBPs. Sometime last year they both started randomly shutting down and showing the 'please plug me in to power' image when trying to start them up. That would be fine if the batter was at 1% or less but this happens when the battery is at anywhere from 30% to as high as 48% full. The power cycle info says 500 cycles or so. Both of them do this. They are both patched current, always. I asked Apple they suggested NVRAM PRAM and SMC reset, as expected, which had no effect. Any ideas?


I am trying to validate an email address to make sure its correct. e.g Includes "@" symbol. What do I add to my existing code?   Here is my code for the email address with other inputs in the form:     $(".next").click(function(){  //text inputs   if(!document.getElementById('fullname').value) {     alert('Full Name is required');     return false;   }    else if(!document.getElementById('email').value) {     alert('Email is required');     return false;   }    else if(!document.getElementById('phone').value) {     alert('Phone Number is required');     return false;   }    else if(!document.getElementById('age').value) {     alert('Age is required');     return false;   }

Is there a regular expression to validate an email address in JavaScript?


If you know it, also try to include the precise reason why the proof is fallacious. To start this off, let me post the one that most people know already:    Let $a = b$.  Then $a^2 = ab$  $a^2 - b^2 = ab - b^2$  Factor to $(a-b)(a+b) = b(a-b)$  Then divide out $(a-b)$ to get $a+b = b$  Since $a = b$, then $b+b = b$  Therefore $2b = b$  Reduce to $2 = 1$   As @jan-gorzny pointed out, in this case, line 5 is wrong since $a = b$ implies $a-b = 0$, and so you can't divide out $(a-b)$.

In honor of April Fools Day $2013$, I'd like this question to collect the best, most convincing fake proofs of impossibilities you have seen.   I've posted one as an answer below. I'm also thinking of a geometric one where the "trick" is that it's very easy to draw the diagram wrong and have two lines intersect in the wrong place (or intersect when they shouldn't). If someone could find and link this, I would appreciate it very much.


In Captain America: The Winter Soldier;      It is revealed that Agent Sitwell is a double agent for Hydra, who is then interrogated on rooftop by Captain America, Black Widow and The Falcon.   This character then proceeds to explain what Hydra's overall plan is;      Which is to target and murder individuals which may pose a threat to Hydra's new world order, either now or in the future. In the interogation scene, Bruce "The Hulk" Banner is specifically mentioned by name as one of Hydra's targets, as is Dr Stephen Strange. We also see later than Tony Stark is listed as one of the targets when the INSIGHT helicarriers are booting up.   However, we know very well that The Hulk is more than a little difficult to stop when he gets angry, and we also know from The Avengers/Avengers Assemble that;      Bullets are not enough to kill The Hulk, which is revealed when Bruce Banner talks about how he attempted to take his own life, only for the "other guy" to spit the bullet out.   Is there any point in Captain America: The Winter Soldier or any related film-canon material (tie-in comics, TV shows, other films etc) that we find out why Hydra thought that the INSIGHT helicarriers would be able to take on The Hulk, or if they had another plan for dealing with him?

In Captain America: The Winter Soldier, HYDRA had a plan that seemed good on paper, but I wondered how would they deal with the Hulk?  We know from Avengers that conventional guns (e.g., his suicide attempt) or the alien weapons used by the Chitauri couldn’t kill him. Did SHIELD or HYDRA have some specialised weaponry to neutralise or kill the Hulk?  If they couldn’t kill him, did they have some other plan to contain him?


After installing NVIDIA 331 graphics driver for my NVIDIA 740M my laptop boots to Ubuntu in "low graphics mode". If someone could walk me through the steps of deactivating the NVIDIA driver and re-enabling the Intel one that would help me out quite a bit.

Note: This is an attempt to create a canonical question that covers all instances of "low-graphics mode" error that occurs to a user, including but not limited to installation of wrong drivers, incorrect or invalid lightdm greeters, low disk space, incorrect installation of graphics card like ATI and Nvidia, incorrect configuration of xorg.conf file while setting up multiple monitors among others. If you are experiencing the "low-graphics mode" error when trying to login but none of the following answers work for you, please do ask a new question and then update the answers of this canonical question as and when your new question gets answered.   When I try to boot into my computer, I am getting this error:  The system is running in low-graphics mode Your screen, graphics cards, and input device settings could not be detected correctly. You will need to configure these yourself.   How do I fix the failsafe X mode and login into my computer?  Answer index:


Im trying to set up a  AMP installation on my windows 8 laptop. However, Im not being able to get PHP to talk to MySQL. When I start apache server, the following error log is generated   PHP Warning:  PHP Startup: Unable to load dynamic library 'ext\\php_mysql.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0 PHP Warning:  PHP Startup: Unable to load dynamic library 'ext\\php_mysqli.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line ..   Any idea why this could be happening?  Relevant portion of php.ini  ;extension=php_bz2.dll extension=php_curl.dll extension=php_fileinfo.dll extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_intl.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_ldap.dll ;extension=php_mbstring.dll ;extension=php_exif.dll      ; Must be after mbstring as it depends on it extension=php_mysql.dll extension=php_mysqli.dll ;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client ;extension=php_oci8_11g.dll  ; Use with Oracle 11gR2 Instant Client ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll ;extension=php_pspell.dll ;extension=php_shmop.dll

Environment: Windows Server 2003 R2 Enterprise 64bit, SP2 .NET framework is supposedly installed (2.0 SP2, 3.0 SP2, 3.5 SP1)  I say "supposedly" because they are listed as installed under Add/Remove programs. I'm not sure it's properly installed, because the "ASP.NET" tab isn't added to any of the sites in IIS.  In the IIS Web Service Extensions section, I have both "ASP.NET v2.0.50727" (Allowed), and "ASP.NET v2.0.50727 (32-bit)" (Prohibited).  The site in question has script-execute enabled.  Problem:  I created a super-simple ASP.NET/C# website: Default.aspx with a label id="Label1", and a code-behind with: Label1.text = "Hello World"; and the error I'm getting is:     %1 is not a valid Win32 application.


When a question is asked, I notice a tag is appended to the question title as the tab title in my browser. For example when a question is tagged , . The tab title will be c# - Question title.   On pets private beta, If a question is tagged dogs, health, The tab title will be health-Question title.  How is the tag that is appended to the question title determined?

Which tag is used in the title of a question?   It does not seem to be the most popular It does not seem to be the first in the tagging order:   This question   is prefixed with NGINX (which is actually completely fine)  And it is tagged with "php nginx fastcgi magento" in the order of popularity.  Can we choose the tag to use in the title manually?


Is there any way of knowing which sticky key is active? In MS Windows, there is a small icon which is very useful in providing visual feedback of which key is sticky.  How can I have that visual feedback in Ubuntu 14.04 too?

I am a KDE user thinking about moving to Unity. Due to manual disability, I use  and in KDE I have an applet in the system panel which shows which modifier keys are active. I remember that Gnome had this feature as well, so do Windows and OS X.  How does one ad the keyboard modifier state applet to the panel in Unity?  Clarification: I have already enabled sticky keys. I am asking how to add an applet which indicates the state of the modifier keys. This indicator would show when the Shift key is depressed, when the Alt key is depressed, when the Tux key is depressed, and when the Ctrl key is depressed. This applet exists in all major desktop environments (KDE, Windows, Mac OSX, and Gnome). It is necessary for accessibility of the desktop.  Here is an image of the keyboard modifier state applet, next to the keyboard layout indicator applet. The modifiers represented are, from left to right, Shift, Ctrl, Alt, I-dont-know-this-one, Tux/Win, NumLock, and CapsLock. It can be seen that the NumLock key is active.


My code:  \documentclass[                titlepage,                abstract               ]{scrartcl}  \usepackage[texindy]{imakeidx} \usepackage{hyperref}  \makeindex[intoc]  \title{Test} \dedication{Test.}  \begin{document}    \maketitle   \begin{abstract}     Test.   \end{abstract}    \pagenumbering{Roman}   \tableofcontents   \newpage   \pagenumbering{arabic}    \section{Test}     Das Zweistrom-Turbinen-Luftstrahltriebwerk (ZTL)\index{ZTL}~\ldots    \newpage   \pagenumbering{Roman}   \setcounter{page}{2}   \printindex  \end{document}   The table of contents should start with big Roman one. The text part (in the MWE starts with the test section) should start with an arabic one. This works.  But if I click in the index on the link, then it jumps to the title page (physical page one). I don't know what I'm doing wrong, but if I comment out the lines, which have to do with the page numbering (twice \pagenumbering{Roman}, \pagenumbering{arabic} and \setcounter{page}{2}), than it have the expected behavior. At the same time the hyperlinks in the table of contents work every time.  Why is it so and how can I fix this?  Thank you for your help and effort in advance!

I'm here with weird stuff again.  How can i continue numbering while changing numbering style to Arabic from Roman? For example let's assume I have total of 7 pages and I want to number the first 3 of them as : i,ii,iii; then I change back to Arabic again and continue counting as 4,5,6,7.


I have tried to prove the following result, but looking around the internet and a few books, it always seems to be done differently - and I understand the variations I've seen. I would just like to know whether my argument below is logically correct or whether I have missed something out. It's been years since my Analysis modules at university and I'm afraid I'm a bit rusty at something I wasn't particularly great at at the time!  Thanks,  Andy.  Proposition (The Reciprocal Rule for Sequences)  If $(b_n)\rightarrow b$ and $b\neq 0$, then $\left(\frac{1}{b_n}\right)\rightarrow\frac{1}{b}$.  Proof.$\quad$ Suppose $b\neq 0$. Since $(b_n)\rightarrow b$, $(bb_n)\rightarrow b^2$. Because $\frac{b^2}{2}>0$ we can find a natural number $K_1$ such that $|bb_n - b^2|<\frac{b^2}{2}$ for all $n>K_1$. This is equivalent to     \begin{equation*}   b^2-\frac{b^2}{2} < bb_n < b^2+\frac{b^2}{2},  \end{equation*}     in particular $bb_n>\frac{b^2}{2}$, for all $n>K_1$. Next, we see that     \begin{align*}   \left| \frac{1}{b_n}-\frac{1}{b} \right| &= \left| \frac{b-b_n}{bb_n} \right|\\   &< \left| \frac{b-b_n}{\frac{b^2}{2}} \right|\\   &= \left|\frac{2}{b^2}\right||b-b_n|\\   &= \frac{2}{b^2}|b-b_n|\\  \end{align*}     for all $n>K_1$. Let $\varepsilon>0$. Next, since $(b_n)\rightarrow b$, $(b_n-b)$ is a null sequence. So we can find a natural number $K_2$ such that $|b_n-b|<\frac{\varepsilon b^2}{2}$. Set $K=\max\{K_1,K_2\}$. Then     \begin{equation*}   \left| \frac{1}{b_n}-\frac{1}{b} \right| < \frac{2}{b^2}|b-b_n| < \frac{2}{b^2}\frac{\varepsilon b^2}{2} = \varepsilon  \end{equation*}     for all $n>K$. Therefore $\left(\frac{1}{b_n}-\frac{1}{b}\right)\rightarrow 0$ and, equivalently, $\left(\frac{1}{b_n}\right)\rightarrow\frac{1}{b}.$       QED

While I was reading the book Exploratory examples for real analysis, I came across this:     to show that : $$\lim_{x\rightarrow x_o}\frac{1}{h(x)} = \frac{1}{\lim_{x\rightarrow x_o}{h(x)}} = \frac{1}{M}$$      Discussion:Let $\epsilon \gt 0$.we want to find $\delta \gt 0$ such that       if  $0 \lt |x-x_0| \lt \delta $,then $\Big|\frac{1}{h(x)}-\frac{1}{M}\Big|\lt \epsilon$.      In order to get expression involving $|h(x)-M|$,we first find the common denominator:        $\Big|\frac{1}{h(x)}-\frac{1}{M}\Big|=\Big|\frac{M-h(x)}{M~h(x)}\Big|$      $~=\Big|\frac{h(x)-M}{|M|~|h(x)|}\Big|$.      As we have to deal with variable term $|h(x)|$ in denominator.We can construct bound .Let $\epsilon =\frac{|M|}{2}$ ,since lim$_{x\to x_o}h(x)=M$,there exists $\delta_1\gt 0~~$ s.t.       if $0 \lt |x-x_0| \lt \delta_1 $,then $|h(x)-{M}|\lt \frac{|M|}{2}$.      As you study steps below,identify that step where $h(x)\neq 0$ for all $0 \lt |x-x_0| \lt \delta_1 $ plays a critical role:      $|M|=|M-h(x)+h(x)|$      $~~~~~~\leq |M-h(x)|+|h(x)|$      $~~~~~~= |h(x)-M|+|h(x)|$      $~~~~~~\lt \frac{M}{2}+|h(x)| \implies$      $\frac{|M|}{2} \lt |h(x)| \implies$      $\frac{1}{h(x)}\lt \frac{2}{|M|}$,where $0 \lt |x-x_0| \lt \delta_1 $.      Now that we've bound for $1/h(x)$,we can apply the definition to term $|h(x)-M|$.      Since     lim$_{x\rightarrow x_o}h(x)=M$,we can find $\delta_2 \gt 0$ such that,       $~~~~~~~~~~~~~~~~~~~~~~~~~~~~$if  $0 \lt |x-x_0| \lt \delta_2$, then $|h(x)-M|\lt \frac{|M|^2 \epsilon }{2}$   The thing I can't understand is for what purpose did the author work with such complicated expression involving $\epsilon $ in the end of the discussion?


Here is one easy math function in Jupyter using Python 3  def sum(*formulation):      ans = 0      for i in formulation:         ans += i     return ans   If I want to try this function, I write down like this:  sum(1,2,3,4)  The output will be   10  My question is what is * mean in sum(*formulation)?  Because if I don't use *, I get an error.

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


I have matrix: $A=\begin{pmatrix} 5 & 1 & 0 \\ 0 & 5 & 0 \\ 0 & 0 & 5 \end{pmatrix}$I found 2 eigenvectors: $\vec{v_{1} } =\begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix} \vec{v_{2} } =\begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix}$Formula for generalized eigenvector is: $\left(A-\lambda I\right)\vec{x}=\vec{v} $How do I find generalized eigenvector and how do I know how much of them there are?If I put in this formula, I get $x_2=1$(for 1. eigenvector) and $x_2=0$ (for 2. eigenvector)? What will I do with $x_3$? Put the numbers I want or?

I'm going through a exercise, in which all the answers are given, but the tutor makes a step and I can't follow at all. A massive jump with no explanation.  Here is the question: $\lim_{x \to 2} \frac{\frac{1}{2}-\frac{1}{x}}{x-2}$  He then simplifies: $ \frac{x-2}{2x(x-2)}$  He said he multiplied the entire equation by 2x  How does he know 2x swaps the denominator upto the numerator   Before he gave the simplification I spent perhaps 20 minutes trying to figure something out, and failed, and then he just jumps this massive step  He simplifies because we are finding limits.  Thanks  Joseph G.


Its a very common answer to this:       After Machines took over, sunshine never reached earth surface.   Isn't it shown like Sun was destroyed? In Revolutions (III), sunshine was displayed when our heroes flied to higher altitude. Why didn't Machines choose solar energy of higher altitude and outer space?

The machines turned to using humans as a source of power after the humans darkened the skies, since the machines relied on solar power before.  If the machines were smart at all, they'd realise that their strategy is unsustainable, since energy on Earth predominantly comes from the Sun in some shape or form (i.e. plants, oil, coal). So why would they not invest into penetrating or even getting rid of the clouds?  The 3rd movie clearly shows that it's possible to penetrate the cloud layer when Trinity flies through it. Although there was an issue with the lightning interference, hey, they survived! And I'm sure they can either build some sort of shielding, or even harness the lightning to their advantage.


I have a website which lists products available in my shop, which is populated from a products table from a SQL database.  I have written the site in PHP.  Overnight some extra values have been added to my products table.  20 extra rows have been added with the values "admin" and "adminu" over and over again.  I don't understand how this has happened but suspect it is something to do with SQL injection?

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


Posting at meta solely because I couldn't figure how to make it into a custom flag message (plan to further flag involved posts for mod attention referring to this post). This  has just posted three similar "questions" at different sites:    .  All three have quickly received "answers" from unregistered users linking to the same resource (bloggingtechniques.com). As far as I can tell, this is spam (). Could something be done about this?

In the morning of March 19th, a newly-registered user :    While , these rate limits are not applied across sites, allowing spammers to post on many sites in rapid progression.  These rate limits should be applied across sites. Shog9 .


I read the chain on whether "the information below" or "the below information" is correct usage- consensus was that both are, although I distinctly prefer the former.  I have noticed a really irritating relatd trend, mostly in email, where the sender references simply "the below" without including an object.  I work a lot with Indian colleagues, and it is rife in their communications, but I have also seen it increasingly in US based communications, including in a delivery notice email from FedEx ("To help ensure successful delivery of your shipment, please review the below.").  Before I ban my team from using it ever again, I just want to be sure that it is grammatically incorrect.  I think it's a great example of how electronic communications are changing our language, beyond texting lingo. I am not sure pointing out that it is incorrect will change anything, but it just drives me crazy everytime I see it.

I have often read "None of the above" at the end of multiple-choice questions (and I guess this is shorthand for "None of the above items").  Recently, in answering a help center email with my answer on top of the help center’s suggestions, I wrote "none of the below helps me". It struck me as incorrect just after having send it. I guess I should have put "None of the items below".  But it seems to me it is a matter of usage rather than logic : if "the above" is OK, what’s wrong with "the below" ?


I read online that at this point during the quest Forbidden Legend the ghost of archmage Gauldur should fix the amulet, but now the dude is just standing there frozen:    The biggest problem is that I cannot even get out of the room. I only have one saved game, and, of course, it's after I killed the brothers.  I've tried rebooting the console, re-inserting the disk, closing the application - nothing is working so far. I also tried just waiting.. to no avail.  Have any of you experienced something similar?

Having bit of a trouble completing "Forbidden Legend" quest. I'm at the forging of amulet part. After having fought the ghost of three brothers, Gauldur's ghost shows up. However, it doesn't do anything, just stands there.  If I understand correctly, Gauldur is supposed to forge the amulet for me. But he doesn't. I've done the sequence 3 times, however, everytime, the ghost just stands there.   Has anyone run into this? What was the fix?  I'm playing on a PC.


Does anyone know if it's possible to remove user and hostname from Gnome Terminal? I wish to only see the running command there.

I have several instances of terminals running in my working environment, what I would like is to set a specific title for each one, in order to have a clear idea what purpose the specific terminal serves i.e. Apache, editing_ini, postgres etc...  Of course from the command line.


I've just installed Enlightenment on my Mint desktop and am loving it. But when I download something from Firefox, then click on "open Containing Folder" (in the Firefox download menu) the entire screen becomes unresponsive until I switch to text console and kill Firefox.  In the default desktop (Mate) this action brings up the Caja file manager. I can start and run Caja under enlightenment. Ideally I'd want to use the native Enlightenment file manager, but would be happy with any workable solution which did not freeze my screen.  I believe that the action is mapped by the desktop mimetype settings - but I can't find any way to edit that within Enlightenment.

Since I installed EasyTag on my Arch Linux several other programs use EasyTag instead of Nautilus as filebrowser.  For example, Firefox starts EasyTag if I click on "open containing folder".  Where can I set Nautilus as my "standard file browser"?


How do I use MySQL from the CLI?  When I use the terminal, I get:  Darrens-MacBook-Pro:~ thufir$  Darrens-MacBook-Pro:~ thufir$ mysql -bash: mysql: command not found Darrens-MacBook-Pro:~ thufir$    As you can see, MySQL is installed and running:    this system:  System Software Overview:    System Version:   OS X 10.10.2 (14C1510)   Kernel Version:   Darwin 14.1.0   Boot Volume:  Mac OSx   Boot Mode:    Normal   Computer Name:    A MacBook Pro   User Name:    thufir (thufir)   Secure Virtual Memory:    Enabled   Time since boot:  2:08

I installed MySQL on my Mac, and now I would like to add it to my $PATH variable. I want to be able to type mysql anywhere.  I tried adding the following to my .profile file:  export PATH=${PATH}/usr/local/mysql/bin/   I have restarted my Terminal but it does not do the trick. It still says: -bash: mysql: command not found.  How can I add this properly to my $PATH?  I am using OS X Yosemite.


Please tell the date of release for the stable version of the GNOME flavor.

I am a bit confused about the release schedule of Ubuntu. AFAIK, it releases a new version every 6 months right? How about the LTS version?


I am testing my new (dual boot) Ubuntu install. When playing with basic terminal commands I noticed that i was logged in (or something to that effect) twice! Here are my commands and the terminal results.  ~$ who karsus   :0           2016-01-27 21:24 (:0) karsus   pts/9        2016-01-27 21:24 (:0) ~$ w 21:26:46 up 3 min,  2 users,  load average: 0.28, 0.34, 0.15 USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT karsus   :0       :0               21:24   ?xdm?  55.54s  0.14s init --user karsus   pts/9    :0               21:24    1.00s  0.03s  0.00s w ~$    Did I do something wrong? When I first saw this I restarted my laptop and went to the terminal straight after log in. Then I got the results posted above.  Is that normal? - If so what does it mean?  Thank you for your help.

I was looking for some shell commands, and I took a look in "users" command.  I was hoping to get only 1 name, but I got 2:  nori@nori-hidamari:~$ users nori nori   And when I run the command "who"  nori@nori-hidamari:~$ who nori     :0           2015-04-09 09:31 (:0) nori     pts/0        2015-04-09 09:48 (:0)   Is this behaviour normal? Or it's bad?  Thank you guys for helping me.


I have restored with photorec about 7.500 jpg's. I have moved them all in one folder. A big portion of them is thumbnails. But i can't just go on and delete lets say all of them that are smaller than X bytes because i have some old pictures which were taken from older phones. So there are thumbs that are 15KBs and also regular photos of about the same size but with bigger resolution (dimensions).   So i want a way to remove those that are smaller than x pixels wide for example. Can this be done from the terminal?  Thanks.

I've been trying to find png image files a certain height (over 500px).  I know that file will return image dimensions.  Example:    $ file TestImg1a.png  TestImg1a.png: PNG image data, 764 x 200, 4-bit colormap, non-interlaced      But I need to use this to find all files in a directory with a height over 500px.  I know how to print out all files regardless of height:  find . -name '*.png' | xargs file | awk '{print $7 " " $1}'   But how do I limit the $7 to those results greater than 500?


My WiFi is not working in Ubuntu 17.04. it is working fine in Windows 10 . I tried to download additional driver but there is no additional driver except one which I unchangeable. It is also showing developer option tab in system setting. I have i5 7th gen processor with 8 GB RAM and AMD 64. I also did update and upgrade to but WiFi remains same there is no options for WiFi in Ubuntu 17.04.  My WiFi card is Realtek rtl8723de 802.11 b/g/n pcle adapter  $ lspci -knn | grep Net -A3 03:00.0 Network controller [0280]: realtek semiconductor Co. Ltd. Device [10ec:d723] DeviceName : hanksville Gbe lan connection Subsystem: Hewlett-Packard company Device [103c:8319]  $ sudo lshw -class network *-network   description: Ethernet interface  Product: RTL8111/8168/8411 PCI EXPRESS gigabit Ethernet controller Vendor: realtek semiconductor co..,Ltd Physical id: 0 Bus info pci@000:02:00.0 Logical name eno1 Version :15 Serial : 18:60:24:14:60:b6 Size:10 Mbit/s Width: 64bits Clock : 33MHz Capabilities: pm Mai pciexpress msix bus_ master cap_ list Ethernet physical tp mii 10bt 10bt- fd 100bt 100bt-fd 1000bt-fd autonegotiation Configuration: autonegotiation=on broadcast =yeah driver= r8169 driver version = 2.3LK-NAPI duplex= half firmware= rtl8168h-2_0.0:02/26/15 latency=0  *-network UNCLAMED  Description: network controller Product: realtek semiconductor co.ltd Vendor: realtek semiconductor co.ltd Physical id = 0 Bus info pci@0000:03:00.0 Version :00 Width: 64 bits Clock 33MHZ Capabilities: pm Mai pciexpress bus_master cap_list Configuration latency =0 Resources: ioport:3000( size= 256 memory:b1000000-b100ffff *-network Description: Ethernet interface Physical id :3 Logical name enp0s20f0u2 Serial: 1a:88 :2e:a7:12:64 Capabilities: Ethernet physical Configuration: broadcast=yes driver= rndis_host driverversion = 22-aug-2005 firmware= RNDIS

I am having an issue with wifi; it seems when I'm trying Ubuntu without installing, it only detects connection via the ethernet cable.  I can't connect and none of the available wifi networks are detected.  $ lspci 00:00.0 Host bridge: Intel Corporation Device 5904 (rev 02) 00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02) 00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 02) 00:08.0 System peripheral: Intel Corporation Sky Lake Gaussian Mixture Model 00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) 00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21) 00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI (rev 21) 00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) 00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1) 00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1) 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1) 00:1f.0 ISA bridge: Intel Corporation Device 9d4e (rev 21) 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) 00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21) 00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) 01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330] (rev 83) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723     $ lspci -knn | grep Net -A3 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]     DeviceName: Hanksville Gbe Lan Connection     Subsystem: Hewlett-Packard Company Device [103c:8319]


I have only 6 free Mb on "boot volume".  How can I find for not-used files to remove?  Or is it possible to add memory to this unit?

/boot has become 100% full somehow.  df -k Filesystem              1K-blocks     Used Available Use% Mounted on /dev/mapper/ubuntu-root 191078052 31758960 149612804  18% / udev                      3997520        8   3997512   1% /dev tmpfs                     1602244      856   1601388   1% /run none                         5120        0      5120   0% /run/lock none                      4005600     1792   4003808   1% /run/shm none                       102400       28    102372   1% /run/user /dev/sda1                  233191   218740      2010 100% /boot   mount /dev/mapper/ubuntu-root on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755) /dev/sda1 on /boot type ext2 (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) vmware-vmblock on /run/vmblock-fuse type fuse.vmware-vmblock (rw,nosuid,nodev,default_permissions,allow_other) gvfsd-fuse on /run/user/foo/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=foo)   How can I make the space allocated to /boot bigger?  There is a related question  but that is not what I want to do.  Added.  Disk /dev/sda: 200.0 GB, 200049647616 bytes 255 heads, 63 sectors/track, 24321 cylinders, total 390721968 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0007f9dc     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      499711      248832   83  Linux /dev/sda2          501758   390721535   195109889    5  Extended /dev/sda5          501760   390721535   195109888   8e  Linux LVM  Disk /dev/mapper/ubuntu-root: 198.8 GB, 198784843776 bytes 255 heads, 63 sectors/track, 24167 cylinders, total 388251648 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000  Disk /dev/mapper/ubuntu-root doesn't contain a valid partition table  Disk /dev/mapper/ubuntu-swap_1: 1006 MB, 1006632960 bytes 255 heads, 63 sectors/track, 122 cylinders, total 1966080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000  Disk /dev/mapper/ubuntu-swap_1 doesn't contain a valid partition table


After running the installation package, the following errors appear:  Shim for systemd systemd-shim Try to send a bug report installed systemd-shim package post-removal script subprocess returned error exit status 2   I was loading software and the uploading failed with this error message:  (Reading database ... 1684754 files and directories currently installed.) Removing systemd-shim (9-1bzr4ubuntu1) ... Removing 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim' dpkg-divert: error: rename involves overwriting '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service' with   different file '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd', not allowed dpkg: error processing package systemd-shim (--remove):  installed systemd-shim package post-removal script subprocess returned error exit status 2 Errors were encountered while processing:  systemd-shim

I got a strange error after upgrading Ubuntu 16.04 to 16.10.  The Software Updater suggests a partial update:     Could not install 'systemd-shim'      The upgrade will continue but the 'systemd-shim' package may not be in a working state. Please consider submitting a bug report about it.  subprocess installed post-removal script returned error exit status 2    sudo apt-get update finishes without any error.  sudo apt-get remove outputs this  The following packages will be REMOVED:   systemd-shim 0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade. 1 not fully installed or removed. After this operation, 71.7 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 1451244 files and directories currently installed.) Removing systemd-shim (9-1bzr4ubuntu1) ... Removing 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim' dpkg-divert: error: rename involves overwriting '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service' with   different file '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd', not allowed dpkg: error processing package systemd-shim (--remove):  subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing:  systemd-shim E: Sub-process /usr/bin/dpkg returned an error code (1)   Please help me to fix this error. Thank you.


I am having a problem on the appendix part of my research paper because the text starts to look like this    The following is the code snippet that generated the line:  \bibitem{featureEngineering} Discover Feature Engineering, How to Engineer Features and How to Get Good at It \url{http://machinelearningmastery.com/discover-feature-engineering-how-to-engineer-features-and-how-to-get-good-at-it/}.  (Accessed October 23, 2015)   Here is my preamble:  \documentclass[11pt,a4paper,oldfontcommands]{memoir}  \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{microtype} \usepackage[dvips]{graphicx} \usepackage{xcolor} \usepackage{times} \usepackage{amsmath} \usepackage{amssymb} \usepackage{cite}  \usepackage[ breaklinks=true,colorlinks=true, %linkcolor=blue,urlcolor=blue,citecolor=blue,% PDF VIEW linkcolor=black,urlcolor=black,citecolor=black,% PRINT bookmarks=true,bookmarksopenlevel=2]{hyperref}  \usepackage{geometry} % PDF VIEW % \geometry{total={210mm,297mm}, % left=25mm,right=25mm,% % bindingoffset=0mm, top=25mm,bottom=25mm} % PRINT \geometry{total={210mm,297mm}, left=20mm,right=20mm, bindingoffset=10mm, top=25mm,bottom=25mm}  \OnehalfSpacing %\linespread{1.3}  %%% CHAPTER'S STYLE \chapterstyle{bianchi} %\chapterstyle{ger} %\chapterstyle{madsen} %\chapterstyle{ell} %%% STYLE OF SECTIONS, SUBSECTIONS, AND SUBSUBSECTIONS \setsecheadstyle{\Large\bfseries\sffamily\raggedright} \setsubsecheadstyle{\large\bfseries\sffamily\raggedright} \setsubsubsecheadstyle{\bfseries\sffamily\raggedright}  \setlength{\parskip}{1em}  %%% STYLE OF PAGES NUMBERING %\pagestyle{companion}\nouppercaseheads  %\pagestyle{headings} %\pagestyle{Ruled} \pagestyle{plain} \makepagestyle{plain} \makeevenfoot{plain}{\thepage}{}{} \makeoddfoot{plain}{}{}{\thepage} \makeevenhead{plain}{}{}{} \makeoddhead{plain}{}{}{}   \maxsecnumdepth{subsection} % chapters, sections, and subsections are numbered \maxtocdepth{subsection} % chapters, sections, and subsections are in the Table of Contents

I have a long URL. I use the package breakurl, and it works fine outside of an enumerate environment, but not when it is on an \item. \usepackage[margin=3cm]{geometry} \usepackage{hyperref} \usepackage{breakurl} \begin{enumerate} \item svn co \burl{https://svn.xxx.ch/reps/yyyyyyyyyy/Publications/ABC-paper-2012/trunk ABC-paper-2012} \end{enumerate}  How can I give the URL a line break? Edit: If I remove margin=3cm, it works properly. It seems to be an interaction between geometry and breakurl.


Options are:   20 21 22 23 24   I recently came across the above question in a competitive exam, where we get about 30 seconds to 1 minute for solving each problem. I want to if there are  quick and easy methods to compute the result.

Here is a riddle someone has been asked in a job interview: How many zero digits are there in $100!$?  Well, I found the first $24$ quite fast by counting how many times five divides $100!$ ($5$ divides $20$ times and $25$ divides it $4$ times).   However, there are more zero digits in the middle of the number (these can be found by hand, by typing factorial(100) in sage).  My question is whether there is a smart way to determine the number of zero digits in $100!$, and more generally in $n!$.  By the way, this will not affect the job interview as it was finished some time ago.


I'm trying to create a header to go across a set of office documents; I tried to use the widetable package with multirow, but that didn't work. Here's the closest I've come so far, using  and the diagbox package:  \documentclass[a4paper,twoside,10pt]{report} \usepackage{diagbox} \usepackage{multirow}  \begin{document}  \begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{lllll} \hline \multicolumn{1}{|l|}{\multirow{2}{*}{Model Effectivity}} & \multicolumn{4}{c|}{REVISIONS}                                                                                \\ \cline{2-5}  \multicolumn{1}{|l|}{}                                   & \multicolumn{1}{l|}{REV} & \multicolumn{1}{l|}{DESCRIPTION}     & \multicolumn{1}{l|}{DATE}     & \multicolumn{1}{l|}{APPROVED}  \\ \hline \multicolumn{1}{|l|}{\diagbox[dir=NE]{\hspace{35pt} }{ \hspace{35pt}}}                          & \multicolumn{1}{l|}{-}   & \multicolumn{1}{l|}{Initial Release} & \multicolumn{1}{l|}{1/1/2016} & \multicolumn{1}{l|}{Travis} \\ \hline                                                          &                          &                                      &                                \end{tabular} \end{table}   \end{document}   I need to tweak the vbox dimensions on the rows as well - the I had to use diagbox to get the diagonal box I wanted (seems obvious, right?) but it wouldn't go to the corner properly unless I added the hspace elements, which made that box too tall.  How can I get that diagonal slash and a wide table to coexist peacefully (without having to resort to trying to draw it in Tikz)?  Edit: I'm trying to span a much larger percentage of the width of the page than the other questions, I think - however, this is a pretty common type of "header" (not in the LaTeX sense) that is found on engineering documents.   I'm adding a similar image: there's quite a bit of blank space in it (so that later, the description of changes can have a few words about what was changed, or what ECO was incorporated.   [Edit 2] So I tried to force the widths to work out the way I wanted using eqsetminwidth, then used adjustwidth to bring the table back to center (by manually moving it around - which is not elegant at all, but at least it's the right idea!). Now just have to figure out why it has those vertical lines under the first column...   \documentclass[a4paper,twoside,10pt]{report} \usepackage{diagbox} \usepackage{array, multirow, caption} \usepackage{eqparbox} \usepackage{adjustbox} %\usepackage[showframe=true]{geometry} \usepackage{changepage}  \makeatletter \newcommand*{\centerfloat}{%   \parindent \z@   \leftskip \z@ \@plus 1fil \@minus \textwidth   \rightskip\leftskip   \parfillskip \z@skip} \makeatother  \begin{document} %\eqsetminwidth{<tag>}{<width>} \eqsetminwidth{R}{4.5in} \eqsetminwidth{D}{3.5in} %\begin{adjustbox}{center} \begin{table}[!htb] \makeatletter \setlength{\@fptop}{0pt} \makeatother %\centerfloat %\noindent \begin{adjustwidth}{-1.75cm}{}   \centering\renewcommand\arraystretch{1.333} %  \caption{My caption} %  \label{my-label}   \begin{tabular}{|*{5}{c|}}     \hline     \multicolumn{1}{|c|}{\multirow{2}{*}{\eqmakebox[H]{Model Effectivity}}} & \multicolumn{4}{c|}{\eqmakebox[R]{REVISIONS}} \\     \cline{2-5}                                                                                & \multicolumn{1}{l|}{REV} & \eqmakebox[D]{DESCRIPTION} & DATE & APPROVED \\     \hline     \diagbox[dir=NE, width =\dimexpr\eqboxwidth{H} + 2\tabcolsep\relax, height=0.6cm]{}{} & --- & Initial Release & 1/1/2016 & Travis \\     \hline    \end{tabular} \end{adjustwidth}    \end{table} %\end{adjustbox}  \end{document}

I try to adapt this solution  to my needs.  But I have a width problem 1\tabcolsep is too short, but anything longer is too long, should be 2\tabcolsep.    \documentclass[10pt]{article} \usepackage[T1]{fontenc}  \usepackage{array} \usepackage{tabularx} \usepackage{ragged2e}  \newcolumntype{C}[1]{>{\Centering}p{#1}} \usepackage{tikz}  \newcommand\Tdiag[4]{%     \multicolumn{1}{|p{#2}|}{\hskip-\tabcolsep     \begin{tikzpicture}[%                 baseline={(0,-.25\baselineskip)},                 every node/.style={outer sep=0pt,inner sep=#1}]     \node[minimum width={#2+1\tabcolsep-\pgflinewidth},         minimum height=2\baselineskip-\pgflinewidth+\extrarowheight,         use as bounding box] (box) {};     \draw[line cap=round] (box.north west) -- (box.south east);     \node[anchor=south west,text width=.75*#2,align=left] at (box.south west) {#3};     \node[anchor=north east,text width=.75*#2,align=right] at (box.north east) {#4}; \end{tikzpicture}\hskip-\tabcolsep}}  \begin{document}  \begin{tabular}{|C{1.2cm}*{3}{|c}|}\hline \Tdiag{.2em}{1.2cm}{\^Age}{Sexe}& Féminin & Masculin & Totaux  \\\hline 15 ans&&1&\\\hline 16 ans & 16 & &  \\\hline 17 ans & 3 & &  \\\hline Totaux & & & 36  \\\hline \end{tabular}   \end{document}


I finally hit over 200 rep on a Stack Overflow site!  ::cheering fans::  That gave me the +100 rep bonus on all my other SO sites ::more cheering::  However, on my accounts page on Area 51, those bonuses don't show in the rep count, nor on the Total Rep number for proposals I've committed to.  Is there a delay in posting these rep gains?  Or is this a possible bug?  Thanks!  EDIT: I forgot to mention, I did try to unassociate and reassociate all the sites.  No change.

This is meant to be a canonical Q&A for all the caching questions we get on meta    What is caching? Where is caching employed across the network?  Approximately how long ought it take for each cache to update?


I've often been wondering where the phrase in the title comes from - I always picture it as coming from an early television era game show, but more likely it has to do with pricing of telegrams or news paper advertisements?  In particular, I'd like to know if there is a more subtle meaning to the numerical value being used; at least, moreso than "higher value means more sophisticated."  From memory, I've seen it used (at least) with 0.10$, 2$, 3$, 4$, 5$ and 10$. Which values are commonly used to indicate what? Would a native speaker intuitively spot someone who's just making up numbers (e.g. "8$ word")?  I've searched ELU and found a few usages, but no discussion about it:

I found the answer to  interesting in that he referred to a "75 cent word". I would have called it a 50-cent word, not because I undervalued his answer but because that is how I have heard the phrase. I thought at first that am old enough that inflation caused the difference, but  I found a 1976 reference to 75-cent word from 1976, the earliest reference to the phrase I found in a quick ngrams search.  What is the "right" value to use in the phrase "?-cent word" (or, what was the original)? Has it changed over time? Do non-American English speakers have alternative expressions in local currency?


The FAQ  contains the question And can users see their own comment upvote number somewhere?.  However,  does not cover this.  Can users see their own comment upvote number somewhere?

A question motivated by narcissism:  Is there some way I can find out the total number of upvotes I have received on my comments?  Similarly, can I somehow get a list of all of my comments sorted by their number of votes?


Consider the canonical example of a Unix fork bomb:  DANGER: running the following command, might crash your system.  :(){ :|: & };:   I wonder why & (background) is needed in order to use up all of the system's resources - after all the function : is recursive? Also, I have attempted to execute : without &, but in this case Bash doesn't accept the syntax, why?

I get how a normal fork bomb works, but I don't really understand why the & at the end of the common bash fork bomb is required and why these scripts behave differently:  :(){ (:) | (:) }; :   and   :(){ : | :& }; :   The former causes a cpu usage spike before throwing me back to the login screen. The latter instead just causes my system to freeze up, forcing me to hard reboot. Why is that? Both continually create new processes, so why does the system behave differently?   Both of the scripts also behave differently from  :(){ : | : }; :   which doesn't cause any problems at all, even though I would have expected them to be alike. The bash manual page states that the commands in a pipeline are already executed in a subshell, so I'm led to believe that : | : should already suffice. I belive & should just run the pipeline in a new subshell, but why does that change so much?  Edit: Using htop and limiting the amount of processes, I was able to see that the first variant creates an actual tree of processes, the second variant creates all the processes on the same level and the last variant doesn't seem to create any processes at all. This confuses me even more, but maybe it helps somehow?