What does PROG=${0##*/} mean in a bash script?
How do ${0##*/} and ${0%/*} work?
I don't really get why these hyperbolic functions are named after trig functions. Can someone enlighten me? Proving Cauchy condensation test Does registering [name]overflow.com violate Stack Overflow's trademark? How do I create my own URL protocol? (e.g. so://...) I have seen:   http://www... ftp://blah.blah... file://blah.blah... unreal://blah.blah... mailto://blah.blah...   What is that first section where you see http and the like called?  Can I register my own? Duplicating a mesh object There has got to be the establishment of a universal auxiliary language.   Does the verb got add more to the context or is it there just for emphasis? Is it even grammatical?  Using Google-Ngrams I found a few similar versions as follow: . For example;   For many from the North, however, it has seemed difficult and there has seemed to be a problem. There has come to be a convolution between this become enmeshed concept of marriage as it exists in the sacred and how it exists in the secular. Most of the time since I have been here, there has appeared to be considerable feeling in the minds of a few. There has had to be some negotiation, obviously, but I think we provided what our soldiers need and what our country needs.   In general, I wanna know if 'have/has'+past-participle+'to be' is grammatical. I wanted to create an account for Ubuntu One, but I got impatient when the email with the verification code didn't arrive... I thought I might have typed the wrong address, closed the window and tried again. it told me the address already existed and I just got the code. But since I closed the window I missed it. Is there any way to recover the code? How can I monitor the memory usage? I have used top to see the memory usage at the moment. But I would like to monitor the memory usage over a period of time. E.g start monitoring and then execute a few commands, and final stop the monitoring and see how much memory that have been used during the period.  How can I do this on Ubuntu Server?  I guess I could start a cronjob every 5th second or so, and invoke a command that log the current memory usage in a textfile. But what command should I use to get the current memory usage in a format that is easy to log to a text file? Erase Windows Vista to Install Ubuntu new here. I have an old E-machine which as Windows Vista on it and I want to erase the Windows Vista, and install Ubuntu on it instead, but I am not sure where to start. Can I first install Ubuntu, and THEN erase Windows Vista, or is there a more sure method? I appreciate your help. Why is no root pass needed to access MariaDB after upgrade to Ubuntu 16.04? When is the expected stable release date of Ubuntu Phone and Ubuntu Tablet? Is there an expected stable release date of Ubuntu Phone and Ubuntu Tablet?  If so, what are their dates? What is the command to open the shutdown dialog? Something very odd is happening here.   I have a query that looks like this.  SELECT CAST(FT.DOP AS SMALLINT) FROM TRACKING_DATA WHERE date &gt; @mydate and identifier = 0000000000   When run as a raw query it returns data just fine.  When i place it in a stored procedure that alters the where clause it throws this error.  Msg 244, Level 16, State 2, Procedure myprocedure, Line 107 [Batch Start Line 2] The conversion of the varchar value '58629' overflowed an INT2 column. Use a larger integer column.   So here is the oddity. I go through all the possible data for that where clause with a query like this.  SELECT DISTINCT DOP FROM TRACKING_DATA where identifier = 000000000000   and  SELECT DISTINCT CAST(DOP AS smallint) FROM TRACKING_DATA where identifier = 000000000000   And this is what i get back.  17 12 9 19 8 14 6 16 11 13 7 10 0 18 5 15 4   Nowhere does it have anything remotely too large for a SMALLINT. So i thought, ok maybe its a non-printable ASCII character. But i can't find any.  I'm a little perplexed at the moment. It runs find as a raw query, explodes as a procedure and all possible data based on the where is valid. My only suspicion is that the query plan is doing something odd with filtering or maybe runs with different validation when run as a procedure. Update query cancelled by user Search across Stack Exchange sites in Android app Is it possible to search for a question across all Stack Exchange sites in the Android app?   Right now I can search in only one specific site at a time.   If not, can you add that feature? Mark my own question as favorite? How do you write a case insensitive query for both MySQL and Postgres? I'm running a MySQL database locally for development, but deploying to Heroku which uses Postgres. Heroku handles almost everything, but my case-insensitive Like statements become case sensitive. I could use iLike statements, but my local MySQL database can't handle that.  What is the best way to write a case insensitive query that is compatible with both MySQL and Postgres? Or do I need to write separate Like and iLike statements depending on the DB my app is talking to? Why is it considered so dangerous to travel in South Africa? As, the above link shows, other countries have similar murder rates but they are not in the radar of international travelers.  For example, as seen in the list, Puerto Rico has similar statistics. But, personally, I never heard of Puerto Rico to be a dangerous place to travel.  Why is it considered so dangerous to travel in South Africa? Is that due to the incompetent law enforcement agencies? Is Highschool of the Dead on hiatus again? We all know how to blow up the first Death Star: Fire a couple of proton torpedoes into the thermal exhaust port.  It's ray shielded, so only torpedoes will do.  To do this, the Rebel pilots had to fly down a very long trench, where they were vulnerable to fire from any TIE fighters to the rear.  In fact they were so vulnerable that most of the pilots on this run were blown up once the Imperial forces started responding to the attack. This battle is in space, so the fighters can, if necessary, come to a dead stop and hold their position while firing.  Also, when Luke fired his torpedoes, they took a 90 degree turn and went straight into the port.  So the torpedoes didn't have to be fired from in the trench. We also didn't see any gun emplacements firing at the fighters from near the exhaust port, but if there were, the Rebels could have targeted them and taken them out or run interference to make it hard for the towers to fire at a fighter targeting the exhaust port.  (They were already dodging fire in the trench as well.) A fighter could have easily flown directly at the exhaust port, firing torpedoes multiple times on approach and, if not under fire (or if protected by other fighters), could have actually stopped and taken time to target the exhaust port before firing. Is there any valid in-universe reason that the pilots had to fly down the trench before firing on the port?  And if there is, is there any reason they had to enter the trench so early? Just for reference, here is the  on YouTube.  There's no explanation given for having to fly in the trench.