Any way to automatically set my sound output to HDMI when the cable is plugged in and off when it's plugged out? It'd be great if I had a software do this for me, but I guess a bash script is inevitable. However as someone that has never wrote a single line of bash code I'd prolly need a lot of help. Where to start?
Set HDMI sound output automatically on connect/disconnect I have a dual screen setup on my laptop (using 12.04 LTS) using a HDMI connected display. Everything works fine, but everytime I connect/disconnect the cable I have to go to Sound preferences and change the sound output device manually.  Is there any way to change the sound output device on connect/disconnection of cable, so when I connect my display the sound output is set to HDMI and when I disconnect it the sound goes back to laptop speakers?
Showing directional line symbol in ArcGIS for Desktop? Is this possible in ArcGIS to have variable number of arrows on the line to show direction?  This is an ArcGIS example, where I can have fixed (1,2,3,4,5...) number of arrows and it stays the same doesn't matter what the line length is. First and last always stick to the end, doesn't help with network mapping, where there is usually the node to show. Having just one in the middle is never enough, check line at the right...   No such issues with ArcView 3: "done" vs "have done" Easily measure elapsed time Looking for a trilogy published around the early 80s.  Insect-like aliens are invading earth.  Humans' brains are placed in robotic bodies.  The protagonist is a child in one of these bodies.  He has to learn how to control the robot &amp; conserve his battery power.  Once train, he can fight back against the aliens using heat-guns + physical attacks.    The aliens are landing/spawning on sites all over the globe.  Part of the plot is discovering a method to disrupt their staging points.  It was probably young-adult oriented.  If anyone remembers this, thank you. Local Coordinate to Geocentric The ultimate question, I need a transformation matrix to take a point in local space representing a roughly 500m x 500m place in New Mexico centered at -108.619987456 long 36.234600064 lat.  The final output needs to be in geocentric coordinates and I can during initialization get any number of points on the map such as the corners, center, western most along the center etc.  During run time I would like to have a transformation matrix that can be applied to a position in local space expressed in meters and get back an approximate GCC coordinate.  The center of the point in GCC: -1645380 -4885138 3752889 The bottom left corner of the map in GCC: -1644552, -4881054, 3749220  During run time I need to be able to multiply (-250, -250, 0) with the transformation matrix and get something close to (-1644552, -4881054, 3749220).  I've spent more than a week trying to research a solution for this and so far nothing.  Given an identity matrix as our starting position and orientation. Then using geotrans and the known lat, long, and height of the starting position I get an x,y,z geocentric coordinate. A vector from the origin of (0,0,0) gives both the up and translation for the matrix. However, I need the forward and right so that I can pass a distance in meters from the origin into the transformation matrix and get a roughly accurate GCC. Do I have all of the inputs I need to calculate the right and forward?  Inputs Origin: 0, 0, 0 Global: -1645380, -4885138, 3752889 Up (Normalized): Global - Origin  Desired Outputs Right: ? ? ? Forward: ? ? ?  So with the right and forward added to the up and translation I already calculated I would have a transformation matrix.  I could then apply the matrix to a vector of say (50, 50, 0) and get something within about 0-3 cm of the output if I feed the lat/long back into geotrans.  This matrix would only ever be used small maps of about 500m x 500m so the curvature of the earth is negligible.  In reply to whuber,  I don't know your level of experience so I will start with the very basics.  An identity matrix is a 4x4 matrix that you can multiply by a vector and it returns the vector unchanged. Such as below.  1 0 0 x=0 0 1 0 y=0 0 0 1 z=0 0 0 0 1  The x, y, and z of the matrix are how much to translate the vector by and the first 3 rows and columns are the rotation.  Below is a tranformation matrix that does nothing to the orientation of a vector but does translate.  This is what you would want for two axis aligned worlds in different locations.  1 0 0 13 0 1 0 50 0 0 1 -7 0 0 0 1  If you were to multiply a vector of (10, 10, 10) with the above transformation matrix you would get an output of (23, 60, 3).  My problem is the axes are not aligned and the "plane" of the world I am trying to get the local coordinate converted to is projected on the ellipsoid of the earth.  Geotrans is library that you can use to pass a coordinate from one system such as geodetic or GDC (lat, long, height) and get back another such as geocentric or GCC (x,y,z).  For example: If my game world was representing a map centered exactly on the prime meridian and equator the transformation matrix would look something like below. I am just guesstimating the Y and Z rotations and might have them flipped and/or the wrong sign.    0 0 1 6378137 0 1 0 0 1 0 0 0 0 0 0 1 I tried the Chrome development version for a few days, didn't like it because my tabs became broken and wouldn't load properly. I changed back to the live version, but I forgot to uninstall the development version, which gave me 2 chrome icons on my task bar, but they would both load a broken version of Chrome. I then uninstalled Chrome through the control panel and reinstalled the live version, but I now have one of those broken links on my task bar (a blank page with a folded corner) that points to a version of Chrome that's no longer there. Is there a way to remove this icon? Is it possible to run Drush without root? I run a Linux server that is administered by a friend of mine, and at the moment I work with Filezilla.  I've heard that Drush is a trivial installation: it seems to require no configuration and work out of the box.   However, it looks for configuration in several places:     Drush installation directory,  the home directory (as .drushrc.php),    root directory of a Drupal installation, and  site directory of a   Drupal installation.  Since the configuration files are just PHP   scripts, they can  contain any PHP code that you would like to have   executed on startup of Drush.  one could for instance call ini_set()   to set the value of a PHP configuration option.   and the configuration file /opt/drush/drushrc.php with following content:    # Allow Drush to use 128 MB of memory. Use -1 for no limit. ini_set('memory_limit', '128M');   I see this is necessary because PHP's default is too low, but I'm not sure if I need higher-level privileges because of it.  Do I have to have root-level permissions on the server, or am I able to work with Drush without them?   Update:  As far as i understand this, i only have to ask my admin to get some more privileges (permissions)Note according to BetaRides answer i need to have more than only the access-data that the FileZilla needs - that are provided for the filezilla! Guess so - but i don not need root-permissions.  btw - i have secure-shell-access (ssh2 access) guess that this is enough -With that i can setup a sftp-connection to the server with filezilla just lemme know - if i can use the exactly same data for the shell access (with the command line tool=?!= Looks like flagging has been affected by releases today. Are these intended effects?   Higher daily limits (appear doubled for me, flagging of posts limit also doubled).  Explained by Shog9 below. Soft comment deletion  - e.g. for "accept rate" obsolete comments - it does in fact work, but the immediate feedback is gone.  This is fixed now. Has the throttling rate changed?  Seems possible to repeated flag without waiting 5 seconds.  If it was broken, it isn't anymore. Old soft deletions that were neither categorised as "helpful" or "declined" have all become "helpful".   If limits have been updated, can we get the new formula published? Not changed, as confirmed by Shog9. How to list files installed by a snap package? After a snap has been installed with sudo snap install [package] how can I list the files which have been installed by the snap? TP-LINK TL-WN823N Unable to connect to network Can you construct a field with 4 elements? Can you construct a field with 4 elements? can you help me think of any examples? How to calculate $\int_0^{\pi/2} \sin^a x \cos^b x \,\mathrm{d} x$ Meta SE account is shown 3 times in accounts Earlier today I asked my first question on this site. So Meta SE was added to my accounts. But this account is shown three times:        One of them also has a badge while the other two don't.   The network profile doesn't show MSE at all:        Also I have got this long wierd user name and  I am not able to change it. In the edit- display name this long name is not there.My user name on other sites is shown there.   After all this happened Meta SE questions are not getting loaded in my SE app.    Edit: the issue of name is solved now. I changed the profile picture and saved changes and it worked. In the first book, Harry sees his Gringotts vault for the first time.  (Quotes thanks to Slytherincess!)     Griphook unlocked the door. A lot of green smoke came billowing out, and as it cleared, Harry gasped. Inside were mounds of gold coins. Columns of silver. Heaps of little bronze Knuts.      "All yours," smiled Hagrid.      All Harry's -- it was incredible. The Dursleys couldn't have known about this or they'd have had it from him faster than blinking. How often had they complained how much Harry cost them to keep? And all the time there had been a small fortune belonging to him, buried deep under London.      Hagrid helped Harry pile some of it into a bag. "The gold ones are Galleons," he explained. "Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Sickle, it's easy enough. Right, that should be enough fer a couple o' terms, we'll keep the rest safe for yeh."      Harry Potter and the Sorcerer's Stone - pages 58-59 - US Hardcover Edition   Jk Rowling posts in the Harry Potter Lexicon      JKR has stated in an interview (Comic Relief 2001) that she estimates the value of one Galleon to be "about five pounds," which works out to around US$9.75 (the exchange rate at the time of the interview was US$7.33). In the introduction to both QA and FB, US$250-million is stated to be the equivelent of 34 million Galleons. That also works out to a value of £5 to the Galleon, at the exchange rate of the time. The price listed on the back of the books, however, is not correct, since US$3.99 would equal less than half a British pound, or 8 sickles and 15 knuts. The book instead incorrectly lists US$3.99 as being equal to 14 sickles and 3 knuts. (Unfortunately, CNN.com uses this incorrect value for their Knuts-to-dollars converter.)      This gives us approximate values as follows:      1 bronze Knut = £0.01 (US about 2 cents)      1 silver Sickle = £0.29 (about US$0.57)      1 Galleon = £5.00 (more or less US$9.75)      These rates vary as the exchange rate fluctuates - see the Wizarding World Currency Converter for the current rate.   Now looking at the quote      Hagrid helped Harry pile some of it into a bag.   and     Right, that should be enough fer a couple o' terms, we'll keep the rest safe for yeh.   Obviously "some" is unspecified, but presuming the costs of ...     Typical elementary-school textbooks cost more than $100 each   He would be carrying at least 10 galleons for each school book, and going by the list of books just for his first year,  (Thanks Ibid!)     COURSE BOOKS      All students should have a copy of each of the following:         The Standard Book of Spells (Grade 1) by Miranda Goshawk   A History of Magic by Bathilda Bagshot   Magical Theory by Adalbert Waffling   A Beginners’ Guide to Transfiguration by Emeric Switch   One Thousand Magical Herbs and Fungi by Phyllida Spore   Magical Drafts and Potions by Arsenius Jigger   Fantastic Beasts and Where to Find Them by Newt Scamander   The Dark Forces: A Guide to Self-Protection by Quentin Trimble         (Harry Potter and Philospher's Stone, Chapter 5)   That's 80 Galleons just for books. This does not include the list of other expenses Harry has for his school years (wand, potion reagents, etc.)  How many Galleons is "some" or is Diagon Alley selling supplies for third world prices?  Sidenote, is this just a case of bad JK maths? I am having difficulty with this proof. I have previously proved that for an automorphism on the extension field $K$ of $F$ that when restricted to $F$ is the identity automorphism must take roots of $f(x)\in F[x]$ in $E$ to roots of $f(x)$ in $E$. I was thinking of using the minimal polynomial $x^{3}-2\in\mathbb{Q}[x]$ and the result of previous problem I solved, but I suspect there are automorphisms that don't fix the subfield, so the result can't be used or I need to prove that any automorphism of an extension field must fix the subfield that is being extended or always sends roots in $E$ to roots in $E$.  I am not asking for a solution to this, but maybe a hint or pointer in the right direction. This problem is introduced in the text prior to Galois theory, so please keep that in consideration. How do I set 'nomodeset' after I've already installed Ubuntu? Vertical uniform circular motion.. can it really be uniform? This is the picture in my mind:    For centripetal force, I learned that: $T-mg\cos\theta= \frac{mv^2}{r}$  In vertical circular motion, the velocity is naturally going to decrease as kinetic energy is converted to potential energy as the particle moves up the circle- and thus resulting into a non-uniform circular motion.  However, I was told that if tension changes accordingly, the velocity will remain constant(as from the equation). What I do not get about this part of the explanation is that which force will balance mgsinθ (tangential force in the diagram  )? How to finish current activity in Android What is the best symbol to use for the d'Alembertian? Normally, most people use the symbol $\Box$ to represent the  (including the linked to Wikipedia page).  Recently I wanted to use \hat\Box and \tilde\Box, but they do not render very well.    What is the "best" way to create such symbols?    Aside: The above image is rendered using my local install of pdflatex: pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian). The symbols seem to render fine on some online services: e.g. "" produces    from   \begin{align*} \Box &amp;= \sum_a \partial^a\partial_a \,, &amp; \hat\Box &amp;= \sum_a \mathcal{D}^a\mathcal{D}_a \end{align*} I'm writing up some notes that will be displayed on an overhead projector. The standard time-derivative \dot{x} produces a dot that is hard to see. Does anyone know of a package or have a macro that produces a (nice looking) larger dot? Similarly with \ddot{x}.  At the moment, I've been supplied with some ugly code that produces an ugly output:  \def\dt#1{{\buildrel  {\hbox{\LARGE . }} \over {#1}}}    % dot-over  \def\ddt#1{{\buildrel {\hbox{\LARGE ..}} \over {#1}}}    % double dot