I just started using Gnome Shell and so far I love it. However, I added some of my frequently used apps as favourites to the dock, and some of them show up twice when launched. Once as if they are not running and then another that IS running, but with a low-rez icon.  So far this has happened with:   Komodo IDE SmartGit SmartSVN   It's quite annoying. I assume this happens because these apps run 2 processes, the first of which (that is used in the .desktop shortcuts) is just a bash script that sets environment variables and applies some logic prior to launching the actual program.  Does anyone know if there's any way to fix this?
I have downloaded Aptana Studio 3 and created the following launcher item for using Alacarte:  file: alacarte-made.desktop  [Desktop Entry] Comment= Terminal=false Name=Aptana Studio 3 Exec=AptanaStudio3 Type=Application Icon=/opt/Aptana-Studio-3/icon.xpm   Then, when I add the icon to the favorites and opens the Aptana Studio 3 I get two icons for it, one for launching new instances, and one for the currently running instance as per the following screenshot:    How do I force the application to use the same icon added to the favorites?
losing ligatures when switching font series or color in the middle of a word How many "polygons" does my model have? I have my model and in the info bar its show this   May I need to know how many polygons it has, but  there is no option to find polygons. Verts, Edge and Faces nothing polygon option there. In the website its say that the upload limit is 400,000 polygons. I did not get over that limit or how many polygons my model has? Crookshanks is Hermione's familiar in PoA, GoF, and OOTP. I cannot recall mention of Crookshanks following OOTP, though. What happened to Crookshanks? Does canon refer to Crookshanks in either HBP or DH? I have seen some very weird for loops when reading other people's code. I have been trying to search for a full syntax explanation for the for loop in C but it is very hard because the word "for" appears in unrelated sentences making the search almost impossible to Google effectively.  This question came to my mind after reading  which made me curious again.  The for here:   for(p=0;p+=(a&amp;1)*b,a!=1;a&gt;&gt;=1,b&lt;&lt;=1);   In the middle condition there is a comma separating the two pieces of code, what does this comma do? The comma on the right side I understand as it makes both a&gt;&gt;=1 and b&lt;&lt;=1.   But within a loop exit condition, what happens? Does it exit when p==0, when a==1 or when both happen?  It would be great if anyone could help me understand this and maybe point me in the direction of a full for loop syntax description. How do I remove a summoned Ender Dragon with no AI? So I used the command /summon EnderDragon ~ ~ ~ {NoAI:1} so that I would have an Ender Dragon that would just sit there.    I then wanted to get rid of it, but doing /killall EnderDragon didn't work, neither did /killallnpc, and I can't seem to do any damage, even with a diamond sword and maximum strength using commands.    I'm not sure why I can't get rid of it; I think it's because the dragon has no AI, but I need to get rid of it somehow, any ideas? Matrix of Linear Transformation by right multiplication I am trying to solve the following problem:   Let $A$ be an $n\times n$ matrix, and let $V$ denote the space of $n$-dimensional row vectors. What is the matrix of the linear operator ‘‘right multiplication by $A$’’ with respect to the standard basis of $V$?  I am not sure where to begin with this problem. What is C# analog of C++ std::pair? I'm interested: What is C#'s analog of std::pair in C++? I found System.Web.UI.Pair class, but I'd prefer something template-based.  Thank you! How do I get my C# program to sleep for 50 msec? How do I get my C# program to sleep for 50 milliseconds?  This might seem an easy question, but I'm having a temporary brain failure moment! Does Earth really have two high-tide bulges on opposite sides? The bit that makes sense – tidal forces My physics teacher explained that most tidal effect is caused by the Moon rotating around the Earth, and some also by the Sun. They said that in the Earth and Moon system, the bodies are in freefall about each other. But that points on the surface of Earth, not being at Earth's centre of gravity, experience a slightly different pulls towards the Moon. The pull is a little greater if they are on the Moon's side, and slightly lesser if they are on the side away from the Moon. Once freefall is removed, on the Moon side this feels like a pull towards the Moon and on the the opposite side it feels like a repulsion from the Moon. This makes sense to me, and is backed up by other questions and answers here, like  and also  Phys.SE question. The bit that doesn't make sense – tidal bulges They also said that there are &quot;tidal bulges&quot; on opposite sides of the Earth caused by these forces. The bulges stay still relative to the Moon and Earth rotating through the bulges explains why we get two tides a day. They drew a picture like this one…  An image search for  finds hundreds of similar examples, and  from a scientist on Twitter. …But, if there is a tidal bulge on both sides of Earth, like a big wave with two peaks going round and around, how can an island, like Great Britain where I live, simultaneously have a high tide on one side and a low tide on the other? For example:   on the West coast  on the East  Two ports with tides 6 hours, or 180º apart. It's high tide at one while low tide at the other. But they are only  by road. Great Britain is much smaller than Earth. It's probably not even as big as the letter &quot;A&quot; in the word &quot;TIDAL&quot; in that picture.  To prove this isn't just Britain being a crazy anomaly, here is another example from New Zealand:     Two ports that are 180º (6 hours) apart, but separated by  through a national park. New Zealand, unlike the UK, is in fairly open ocean. Is there a route that would allow travel to the US from the UK or Schengen area, given the US travel ban? I'm a European citizen living in the US on a work visa. Due to some unfortunate circumstances, I need to urgently visit my home country. However I would like to get back to the US after my visit is complete. Flying from the US to Europe is not a problem as there are still daily flights between some city pairs. However going back could be tricky, as  anyone who has been in the Schengen area in the past 14 days from re-entering the country.   Is there a flight route that would let me from Europe to some country, stay there for 14 days and then fly to the US? Canada is out, as they've banned international visitors. Mexico seems to keep their border open, but I  any direct European flights from their airports. Almost every other country either suspended flights or doesn't allow foreign nationals to enter. Can I use Beetel 450TC1 as wireless router? How do I get the subscribers of an event? I need to copy the subscribers of one event to another event. Can I get the subscribers of an event (like MyEvent[0] returning a delegate)?  If this is not possible I would use the add accessor to add the delegates to a list. Would that be the best solution? How resilient is Ubuntu to repeated "power-off" shutdowns? My company is considering the use of Ubuntu as an OS for use on a hardware device.     It would be installed on compact flash drive - apparently this is not standard flash drive but a specific type of memory that is supposed to "cope" with immediate power shutdown (I am not sure how this is achieved but they are supposedly a "high end" card).    The units that would be run using Ubuntu are the type of units that will not be gracefully shutdown - the power cable would be removed and that is that.     Can anybody give me some advice on the potential problems that can occur? Is Ubuntu a good system that can deal with this kind of power outage and reboot successfully on next startup?     I realise that nothing is unbreakable, but is it a commonly used OS for an embedded setup? Is it asking for trouble to use Ubuntu in this kind of environment? I would like to restore LightDM to its default state, because for some reason /etc/lightdm/unity-greeter.conf is now an empty file.  Deleting /etc/lightdm/unity-greeter.conf and then running sudo apt-get install --reinstall unity-greeter doesn't create a new config file as you might expect.   How can I restore a missing config file? Recovering lost text which was copy pasted from a website to MS Word How to float until on left (or right) page? I have two sideways tables that I want on two facing pages so the reader can turn the entire book and read them both in one turn. For the moment I keep moving them around to keep them on facing pages. Is there a way I can make the first one float until it's on a left page and then place the other one right after? Or perhaps some similar way to automatically get them on the same spread? Allow the creation of links in formatted code through markdown or the GUI As pointed out in  it is possible to create a link in formatted code. But, only by using explicit HTML. Since I think creating a link to documentation within a code block is a fairly common use case, it should be possible to do this using the GUI.   I should be able to highlight some code. Press the  code formatting button. Then highlight some code within that and press the link button and create a link.  Today this results in:  [parseInt][3]("01", 10);   it should result in:  ("01",10); How can I balance uniformity of style files against modularity? I'm using Windows/TeXworks/MiKTeX, and I would like to have one style file I can use anywhere in any document in my top-level folder. If I want to add a new command or renew an old one, I'd like that to be available in all documents recursively contained in my top-level folder. I have a very hierarchical structure to my top-level folder. So this would seem to point to having a single file that TeXworks knows about. Could I add a path in Preferences -> Typesetting -> Paths for TeX and related programs? I've tried that, possibly superficially, without any success. Adding the correct folder to the Windows PATH variable doesn't seem to do the trick, either.   On the other hand, suppose I want to send someone a TeX file? It would be nice in such circumstances to be able to have the style file in the same folder as the TeX file. If I do that, how could I ensure that it's always up-to-date? Is there a script available somewhere that could take my master style file and push it down to all pre-existing lower-level locations?   Just to reiterate: I want uniformity of my style files in my very hierarchical folder structure. However, I would also like modularity, in that each folder is self-contained. How can I achieve that?  Also, out of curiosity, since I may acquire a Linux computer soon, how would I do this in, say, *ubuntu with TeXlive? Remotely uninstall apps? I have tried through the Google Play store and it does not seem possible from there, but does anyone know if it is possible to remove an application remotely?   In other words, if I do not have direct access to my phone, can I make use of some website, app or service to uninstall an app without being able to interact with the phone directly. !! c operator, is a two NOT?