Actually this kind of too much to ask I think.  But I want to remove all files matching the extension ".sh"(current folder only) which I can do with below command:  find . -maxdepth 1 -type f -name '*.sh' -exec rm {} +   But still I want to keep file "cron.sh" in the current folder unaffected.  How can I achieve this in single command line ?
I need to remove all files with .gif extension except one file with name say "filename.gif". What is the optimal way to go about doing this in terminal?  The command rm *.gif removes all gif files including the file filename.gif.
Which is higher — "hyper-", "ultra-" or "super-"? Setting up SFTP to log in to server with Filezilla I have an ec2 instance on AWS which already installed a few Wordpress-es in it.  I want to set things up to let more people handle their own projects, with me also being able to go into the server using terminal if I still want to.  I have been following tutorials such as  and a few others.  I figured all of them just teach users how to sftp into their own home folder, also the steps keep saying addUser but some users already existed and removing them might cause some issue.  How can I give existing users the permission to use SFTP for Wordpress projects?  Let's say all my Wordpress projects are already under /var/www/ which has already been set up with www-data:www-data.  Really new with setting things like this.  Thanks in advance for any help. This is my first question.   Let $a_1, a_2,\ldots, a_k$ be natural numbers $\leq n$ with $m$ prime factors.  Let $p_1, p_2, \ldots, p_r$ be the prime numbers $\leq n$.   Let $$C_{m,n} = \frac{\sum_{i=1}^{k}a_i}{\sum_{i=1}^{r}p_i}$$ Does the following limit exist when $m\geq 2$? Obviously, when $m=1$,  $C_{1,n}=1$.  $$\lim_{n\to \infty} C_{m,n}$$  I have some guesses but not defendable enough.  My best,  The FM. @future method: Unsupported parameter type I am trying to copy records from one org to other via web services. I am calling a class which has logic written into a trigger. But @ future method is not taking sObject  list as a parameter. Can someone suggest me an alternative?  The Code:  public class webServicesTriggerClass   {     @future public static void webServicesMethod(list&lt;MyFriend__c&gt; mfList)     {         partnerSoapSforceCom.Soap sp = new partnerSoapSforceCom.Soap();       partnerSoapSforceCom.LoginResult lr = sp.login('hitesh.kumar.singh@accenture.com.varun','4Rajyavardhan');      soapSforceComSchemasClassNiralaapp.SessionHeader_element ses = new soapSforceComSchemasClassNiralaapp.SessionHeader_element();      ses.sessionId = lr.sessionId;       soapSforceComSchemasClassNiralaapp.MyFriendsDetailSoapApi vNapp=new soapSforceComSchemasClassNiralaapp.MyFriendsDetailSoapApi();      for(MyFriend__c mf:mfList)       {        string  s1= mf.myEmail__c;        string  s2=mf.friendName__c;         string  s3=mf.friendEmail__c;        string  s4=mf.aboutFriend__c;        integer i1=Integer.ValueOf(mf.age__c);        boolean result=vNapp.addFriendDetails(s1,s2,s3,s4,i1);        system.debug('################' +result);           }     }    }     Trigger-->  trigger webServicesTrigger on MyFriend__c (after insert)     {      webServicesTriggerClass.webServicesMethod(trigger.new);    }     Error--    Error: Compile Error: Unsupported parameter type LIST at line 3 column 30 I'm glad the outside overlay scrollbars are finally gone.  But the scrollbar is still a razor thin line that becomes a less razor thin scrollbar, but still thin scrollbar, when the mouse hovers.  How can I get a normal scrollbar? I.e., like in other OSes, like in Firefox, a scrollbar that doesn't change depending on what the mouse points to, and with a nice width.  I already tried  gsettings set com.canonical.desktop.interface scrollbar-mode normal   but no luck. Proving $f(x,y,z)=\big(\frac{x}{a+x+y+z}, \frac{y}{a+x+y+z}, \frac{z}{a+x+y+z} \big)$ is injective Let $a\in \mathbb{R}$, $a\neq 0$, and $E=\{(x,y,z)\in \mathbb{R}^3:a+x+y+z\neq 0\}$ and $f:E\rightarrow \mathbb{R}^3$ defined by $$ f(x,y,z)=\big(\frac{x}{a+x+y+z}, \frac{y}{a+x+y+z}, \frac{z}{a+x+y+z} \big) $$ Show that $f$ is injective.    I've been trying to prove it directly by showing that if $f(x_1,y_1,z_1)=f(x_2,y_2,z_2)\Rightarrow$ $x_1=x_2, y_1=y_2,z_1=z_2$. But I get a system of equations which I'm find difficult to deal with. Any help would be greatly appreciated. Why does printf() not print anything before sleep()? Why {are you / you are} making noise? I never liked that SO/SE relied on the external gravatar service, so I was glad to . However, it turns out that one cannot use as profile picture a PNG file with transparent background (something that is supported by gravatar):    Above is a screen capture of my profile page, with a profile picture that has a transparent background. That background is turned into black, which I suppose is a bug.  The method of upload doesn't change anything (I uploaded it manually to imgur, but the same black background is observed). See the difference between the two following URLs:  http://i.stack.imgur.com/Da3ex.png?s=128&amp;g=1   and  http://i.stack.imgur.com/Da3ex.png   The problem is thus in the resizing code from imgur. CSV API for Java Can anyone recommend a simple API that will allow me to use read a CSV input file, do some simple transformations, and then write it.  A quick google has found  which looks promising.  I just wanted to check what others are using before I couple myself to this API. Should I include a link to my Stack Overflow profile on my résumé? I understand how Insight and Perception can be used passively: for the DM to determine if an enemy Deception or Stealth attempt is successful without alerting the players that someone is deceiving or sneaking.    But the Observant feat in the Player's Handbook states:      [...] You have a +5 bonus to your passive Wisdom (Perception) and passive Intelligence (Investigation) scores.     So in what situation would a DM be rolling something against the player's Investigation without letting them know? Should student or supervisor be corresponding author for publications based on student research? Papers published from an academic project (MSc or PhD) usually have two authors; the first author is the student who mainly conducted the research, and the second author is the professor who supervised the projects.  The corresponding author is the one who take the responsibility of a paper, and thus, some believe that students are not yet prepared to take this responsibility.  Ideally, who should be corresponding author for papers published by MSc or PhD projects?  I understand that it mainly depends on personal agreements and preferences, but I want to know which case is more reasonable from academic logic? How does TeX actually work? Best way for a 'forgot password' implementation? How do I automate a key press in AppleScript? Is it possible to automate the key press of a key (such as "a" or "&lt;") in Mozilla Firefox, Google Chrome or Safari (in this order)? I'd like to automate the key press of "a" for example in Mozilla Firefox for 100 times every x seconds. With x being a value between 1 second and 10 seconds chosen randomly at every key press. What Applescript could make the trick?  Also, where can I find a list of all codes for each key of the keyboard? When I try to delete the file, using the GUI it says      The action cannot be completed because the file is open in another   program   And using the del /f /q command line it says     Access is denied   I have tried unlocking the file with Unlocker, as well as trying to locate which process is using the file with the Resource Monitor or the Process Explorer, but no locking handle was found in either case.  I am able to rename or move the file, but not to delete it or change its content. If Newton's third law is true, why can we sink in sand? Newton's third law of motion states that every action has an equal and opposite reaction. That is the reason we do not sink into the earth, because when our weight exerts a force on the earth it also exerts an equal and opposite force on us.  But when we stand on quicksand or on fluids we can sink in. How is this possible? Does it not exert an equal and opposite force on us? Or are Newton's laws different in the case of fluids and substances of low densities? $M$ connected $\iff$ $M$ and $\emptyset$ are the only subsets of $M$ open and closed at the same time I'm trying to understand this proof that:  $M$ connected $\iff$ $M$ and $\emptyset$ are the only subsets of $M$ open and closed at the same time  Which is:  If $M=A\cup B$ is a separation, then $A$ and $B$ are open and closed. Recriprocally, if $A\subset M$ is open and closed, then $M = A\cup(M-A)$. What? I know that if $M=A\cup B$ is a separation, $A$ and $B$ are both open. But why closed? Also, the 'recriprocally' part is totally nonsense to me. Anybody could help?  Also, there's another proof, which states: $M$ and $\emptyset$ are the only subsets of $M$ at the same time closed and open $\iff$ if $X\subset M$ has empty boundary, theb $X=M$ or $X=\emptyset$  which is proved as the following:  given $X\subset M$, we know the condition $X\cap \partial X = \emptyset$ implies $X$ is open, while the condition $\partial X \subset X$ implies $X$ is closed. Then, $X$ is open and closed $\iff$ $\partial X = X\cap \partial X = \emptyset$, this show $\iff$ for the theorem above.  First of all, I think that the condition $X$ has boundary empty implies that $X\cap \partial X$ is empty, but who said anything about $\partial X\subset X$? Also, where's the $\rightarrow$ of this proof? I can only see $\leftarrow$ How to add a space between a string for every 5th letter?