If I just write: gnome-terminal  Will open a new terminal (and keep it open). But when I run with a command: gnome-terminal -- ls -a  This opens a new terminal, runs the ls, but then closes the terminal. Whats a clean way of keeping it open ?
I have the following shortcut which opens an SSH instance. How can I modify it so that when SSH closes, the terminal stays open?  [Desktop Entry] Terminal=true Type=Application Name[en_US]=ssh Icon=/logo_sprite.png Exec=gnome-terminal --geometry=... --window-with-profile=... --title=... -e 'bash -c "ssh -t -i ~/dsa.key cle@12.210.9.17 sudo -s"'
How to get Microsoft Search to index common file types like .pdf and .pub I'm trying to get Windows Search (4.0) to index PDFs and .pub, .doc, etc. files.  The files are on an XP Pro PC acting as a file server. But I don't have MS Office, etc. installed (no need, trying to keep it "slim and trim") but WS 4.0 is doing the indexing of those files and not indexing .pdf and .pub.  I've found a few  (from Foxit PDF reader) rated 3/5 and only support WS 2.0 or 3.0.  Looking for other solutions and also a way to index .pub files. Let $V,W$ be two vector spaces over a field $F$ and let $f:V \to W$ be a linear mapping. I have going over some facts about vector spaces (not necessarily finite dimensional) and I have been trying to apply the rank nullity theorem to derive a simple lemma.  I have not been able to complete the proof and was wondering if I need to use something other then $\ker f + \mathrm{Im}\; f = \dim V$.  How do we show that for ever vector subspace $K \subset W$, $ \dim(f^{-1}(K)) = \dim(K \cap \mathrm{Im}\; f) + \dim( \mathrm{Ker}\; f)$? I would like to grant the  app write access to external storage in Marshmallow.  The app does not request it explicitly (unlike other apps that seem to use the Storage Access Framework to do so).    In the app permissions screen, there is no permission listed for external storage, only for 'storage' (which seems to mean internal storage).  So there does not seem to be any direct way to grant this permission.   My phone is rooted and I could just run Syncthing as root - but this option creates many problems and sometimes results in the app hanging indefinitely.    Is there any other way around this problem? Update to latest version of java after ppa is discontinued Object selection box with eyedropper If $\gcd(a,b)=1$ and $a$ and $b$ divide $c$, then so does $ab$ I have joined corresponding Local Enterprise Partnerships table data into a polygon shapefile containing UK Local Authorities.      How do I Dissolve or Merge the the Local Authorities polygons by LEP_NAME as shown in the screenshot?   Ideally, I would like to retain the Local Authority attributes with the resultant merged polygons. I have zero scripting knowledge so am looking for a tool based solution. Any help or pointers much appreciated.    Additional Note: When attempting to use the dissolve tool the LEP_NAME field is not available as shown above. The LEP attribute data was created in Excel, saved as CSV format and joined to the Local Authority polygon shapefile. There are duplicate IDENTIFI0 fields as shown in the other screenshot - could this be the root of the issue? Can Mac App Store installs & upgrades be automated? How can I script installing or upgrading apps from the Mac App Store? I'd prefer command line tools, but AppleScript or some other API would suffice.  Relevant puzzle pieces:   installer: note especially the -store flag which is used to simulate App Store installs for package devs. systemupdate: capable of handling updates to Apple apps, flags -i installs and -a tells it to install all available updates Nested indenting issue How to get correct indentation after entering a nested list? I am writing a code review and I could not figure this out by googling. Here is an example of the three formatting styles I tried to use (but none of them works as I would like):  Case 1  The task is to align the last line (see below) "In the first line you use camelCase..." with the last line above the numbered list. In my first attempt, I added a new line (empty line) after the second numbered list item, and then indented by 4 spaces:     Variable name casing: See  on "Snake Case". In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:   Line 14: my $testType  Line 18: my $right_frame   In the first line you use camelCase, whereas in the second you use     snake_case.     As you can see, this gives the correct indentation but it introduces a blank line above the first numbered item.  Case 2  In this case I do not add the blank line after the second numbered list item ( but still indent by 4 spaces ):     Variable name casing: See  on "Snake Case". In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:   Line 14: my $testType  Line 18: my $right_frame In the first line you use camelCase, whereas in the second you use     snake_case.      In this case the line is considered as part of the last list item  Case 3  In this case, I try to add two blank spaces (invisible) at the end of the second list item:     Variable name casing: See  on "Snake Case". In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:   Line 14: my $testType  Line 18: my $right_frame In the first line you use camelCase, whereas in the second you use     snake_case.      In this case the line is considered part of the second item, and hence not correctly indented.  How to achieve the correct indentation? Position of "only" in “We 𝒐𝒏𝒍𝒚 have two possibilities” Is there any difference in meaning between the three following sentences?   We only have two possibilities. We have only two possibilities. We have two possibilities only.   I have already read  and I know that the position of only and the emphasis (written or oral) may change the meaning of some sentences, but I am not sure if it does here.  Note: It is clear that “only we have two possibilities” has a different meaning. My question is restricted to the sentences I’ve listed above. Found the alternative form: $\sum _{k=1}^\infty ((1-\frac{1}{k})^{k})^k$. Tried various criteria, no luck so far. How to make a model cast shadows onto the world texture/background? In most of my models, I usually end up setting a world background using an HDRI image of some kind or another. This has always been really useful for lighting in general or as a background for my final render.  But what if I want my model to look like it is interacting or touching part of the background? For example, in the image below that I found, the modeled objects look like they're part of the scene, and even appear to cast shadows on the ground. How can I do this? Any option for mysqldump to ignore databases for backup? Is it possible to associate non-blend files with Blender? Is there a way to make Blender auto import files that are not .blend when you open them?  For example if you open a .fbx file by double clicking on it, and you have Blender set as default application, then import it to a new .blend.  Is it possible to make Blender import this .fbx file just like you would do it manually by using File > Import > FBX?  By default, Blender just opens up and loads default new scene when you open anything that is not .blend file. Why isn't it possible to combine vendor-specific pseudo-elements/classes into one rule set? Any way to send a personal message to another user? There has been quite a few times that I wished I could send a message to another user on SO - not ask a question for everyone to see, but just a short message informing them of something or requesting them to do something.  Are there any plans to allow this to happen in the future?  Related: Experimental data for asymmetric Newton cradle Using a "successive impact model" (as if each ball were seperated from the other ones), I produced the following animations:    You can see any combination of balls with masses of 1 or 2 (left) or 1 and 4 (right).  Unfortunately, I do not have any Newton cradle to make some experiments, and I'd like to compare my results with observations. I contacted the author of , which is the most instructive one I found about asymmetric Newton cradle. In particular, he writes that the "OoO" configuration behaves as the "ooo" one, which is not what I simulate. But the author is not sure whether who is wrong because he did the experiments a long time ago.  I am especially interested in asymmetric Newton cradle with simultaneous impacts: left and right balls collinding at the same time.   Please let me know if you have any idea on where to find such experimental data.  Edit Just of few general remarks to avoid extending the comments.    Energy and momentum are conserved. However, they are sufficient to ensure uniqueness of the post-impact velocities only when there are 2 balls. The successive impact model precisely consists in propagating the impact ball after ball, and therefore leads to a unique solution (which conserves momentum and energy globally). From the waves point of view, changing the mass of a ball can be done by increasing the diameter, or the density (or a combination of both). This simple model cannot account for such subtleties of course, but maybe it does not matter when the balls are "small enough". Even if I think it's quite basic, following WetSavannaAnimalakaRodVance's comment, I am ready to hand out my Mathematica code to anybody who wants it. I'll check for good ways to share it. If $A = \tan6^{\circ} \tan42^{\circ},~~B = \cot 66^{\circ} \cot78^{\circ}$ find the relation between $A$ and $B$ My trigonometric problem is:     If $A = \tan6^{\circ} \tan42^{\circ}$ B = cot$66^{\circ} \cot78^{\circ}$ find the relation between $A$ and $B$.    Working :   $$B = \cot 66^{\circ} \cot78^{\circ} = 1- \frac{\tan24^{\circ}+\tan18^{\circ}}{\tan42^{\circ}}$$  $$A= \tan6^{\circ} \tan42^{\circ} = 1- \frac{\tan6^{\circ} +\tan42^{\circ}}{\tan48^{\circ}}$$  but it seems  this is the wrong way of doing this...please suggest. Thanks! Decidability of a predicate. I have the following problem:  Let the following predicates be: $P1, P2, Q1, Q1 : R \to \{0,1\} $ .  It is given that $P1 \lor P2$ and $Q1 \lor Q2$ are semidecidable and $P2 = \lnot Q2$  What can it be said about $P1 \lor Q1$?  I have searched all over the internet and I simply cannot understand the concept of decidability of a predicate, let alone a logic operation with predicates. The strongest player in the game is a close ally of mine and we each founded and follow of one of the strongest two religions in the game, with little cross-over between religions within our territories.  I've just spotted that he has a Great Prophet approaching my territory. According to the Civopedia they are powerful at spreading religion, and I'd rather not have a huge hit to the followers of my religion in my cities.  How can I prevent another players Great Prophet from damaging the religion in my cities, preferably without causing a major diplomatic incident.