ugly color for directories in gnome- terminal?
What do the different colors mean in ls?
adding an item to filtered table My project has a table with '+add' button and filtering. The add button opens a dialog to add item, and then to 'save' which closes it too Today I noticed the following flow:  Filter table on subject with value 'dummySubject'  Add new item with subject 'somethingelse'  save and close the new item ==&gt; the new item is shown in the table   So the outcome is that an item that does not qualify the filtering appears in the table. When I asked around I got the following answer  We don't want the new item to 'disappear' on creation just because it does not qualify the filtering. So we display it If you filter again, it will disappear as it should  I can almost understand that logic, but still it sounds wrong. I would rather have like a toaster saying 'new item create' with a 'goto' link. My question is  is the current user experience considered a reasonable one? what is the best practice way to handle such scenario?      &ndash; Wireframes created with Prove that for any infinite poset there is an infinite subset which is either linearly ordered or antichain. Famous puzzle: Girl/Boy proportion problem (Sum of infinite series) Puzzle  In a country in which people only want boys, every family continues to have children until they have a boy. If they have a girl, they have another child. If they have a boy, they stop. What is the proportion of boys to girls in the country?  My solution (not finished)  If we assume that the probability of having a girl is 50%, the set of possible cases are:  Boy (50%)  Girl, Boy (25%)  Girl, Girl, Boy (12.5%)  ...  So, if we call G the number of girls that a family had and B the number of boys that a family had, we have:  $B = 1$  $P(G = x) = (1/2)^{x+1}*x$  So  $G = \Sigma (1/2)^{x+1}*x$  I feel like the sum of this infinite serie is 1 and that the proportion of girls/boys in this country will be 50%, but I don't know how to prove it!  Thanks! With English not being my first language, I usually need support for at least two languages when using features like auto-correct and dictation.  Is it possible to toggle the language which is used for dictation via a shortcut?  As of now, I always have to manually navigate through the menus in the System Preferences which if far from convenient. I've tried to see if there are any pre-defined actions in Automator, but found none. Leaving Italy without paying a bus fine My wife and I got bus fines today in Bologna. We had only recently arrived and had purchased a ticket from where we were staying which was about 6 or 7 km from the city. The hotel receptionist explained the ticketing system to us and said that if we buy a ticket we could use it on as many journeys for 75 minutes.  We took the bus from our hotel to Bologna and then straight away got on another bus to get to central Bologna where all the sights are. When we got on this other bus we assumed that it was ok as we were still within the 75 minutes. However, when we tried to validate our tickets in the machine it flashed red like an error had occurred so we figured something wasn't right.   We tried to ask the driver about it or if we could buy a ticket but he just grunted and started to drive off. We therefore started to leave the bus at the next stop so we could try and buy another ticket but were ushered back on by a few men who turned out to be ticket inspectors!  They alleged that our tickets were not valid in the city and that we had to pay a 65 euro fine. They wanted to see our official documentation and so took details from our UK driving licences and issued us both with fines. They wanted us to pay there and then, but we explained we didn't have enough cash on us to do so and they then stated we could pay by card.   However, I still wasn't happy about doing that so he then said that we could pay later by going to an Italian post office; or if we don't pay within a certain time the fine will go up to 270 euros each and will be posted to us (he got our addresses off our UK driving licences)!  I am a bit miffed about this as we were noway trying to evade and as soon as we realised our mistake we tried to talk to the bus driver to buy a ticket or get off the bus, but he drove off and ignored us! I have a slight suspicion that it was a rouse as it is very strange that he did this and then out of nowhere bus inspectors got on and made a beeline for us!  If we go back to the UK without paying these fines and ignore the subsequent fines that they send us through the post (if they do send any), then what happens? Do they have any powers when we are back in the UK? a total fine of 500 euros for an honest mistake seems utterly outrageous.   Fine below Orange squares appearing on render? How to insert a figure between two texts? I'd like to create something similar to what is give below: text on either side of a vertically centred image: Are mixed geometry types allowed in shapefiles? Does the shapefile support mixed geometry types (ie. point and polygon all in the same file)? Modifying Score text in Locate Widget of Flexviewer 2.4? I want to add text where it says "score" to make it more clear that this is an address matching score.    I am using the LocateWidget_US.xml and do not think I can do it here.  I think the place to do it may be in the LocateWidget.mxml in this line????   locateResult.content = getDefaultString("resultScoreText") + " " +   (addrCandidate.score % 1 == 0 ? addrCandidate.score : addrCandidate.score.toFixed(1)); iPhone 4 water damage - how to recover data? Can you use the /testfor command in minecraft 1.8 to find out if a player has died ?  I need it for my map, where 2 players (Only) are pitted against eachother. I want it so that when one of them dies, it will detect the death and declare the victor. Bash scripts ran from from gnome/nautilus don't have environment variables In my ~/.bashrc and ~/.profile I have some variables set to some filepaths:  export MY_VAR1="/path/to/somewhere"   In my ~/bin/ (which is added to my PATH) I have a few scripts that rely on those variables being set.  If I run those commands from the terminal, they work as expected.  However, if I try to double click on a script in Nautilus and run it, it runs as if those variables were not set.  Same thing happens if I add one of the scripts to Gnome's "Startup Applications" using the GUI utility or if I add them to the Gnome menu using the "Main Menu" GUI utility.  I would've thought that since I included these variables in my ~/.profile, which is run at login that gnome and nautilus and processes spawned by them would have access to those variables.  Both Gnome and Nautilus are run under my login user. All my scripts in ~/bin have the bash shebang at the top.  I am new to bash scripting, sorry if I am missing something obvious. I am using Debian Wheezy and Gnome3. How can I pad an integer with zeros on the left? How do you left pad an int with zeros when converting to a String in java?  I'm basically looking to pad out integers up to 9999 with leading zeros (e.g. 1 = 0001). If you have an $m \times n$ matrix and the rows are linearly independent, are the columns linearly independent too?  I know that it's the case for $n \times n$ matrices. I've yet tried to think about it, and I think the answer is yes, for example the matrix: $\begin{bmatrix} 1 &amp; 2 &amp; 3 \\ a &amp; 2a &amp; 3c \end{bmatrix}$ has linearly dependent rows and columns, but I'm not sure that it works for every $m \times n$ matrix. I'm reading . Then I'm not able to figure out the difference between hard voting and soft voting in context to ensemble based methods.  I quote descriptions of them from the book. The first two images from the top are description for hard voting, and last one is for soft voting.        In my view hard voting is majority decision, but I don't understand soft voting and the reason why soft voting is better than hard voting. Would anyone teach me these? When used like this:  import static com.showboy.Myclass;  public class Anotherclass{}   what's the difference between import static com.showboy.Myclass and import com.showboy.Myclass? I'm looking for a book I read in Junior High (probably) about a world where everyone was basically the same race.  One genetically pure male and female teenager of each race still exists.  They are transporting a genetically pure boy to meet his genetically pure female counterpart and accidentally introduce him to a genetically pure female of a different race.  And, of course, chaos ensues.  Any thoughts? What happens in a circuit, when the wire and the battery are superconducting. And shorted What does the complex electric field show? Allow suppression of automatic linking of web addresses