...I found the same problem, but only on my wife's account. I'd set her keyboard layout to UK through Gnome preferences and every time the US layout would...
...reappear and be selected frustratingly.\ It turned out that on the gdm login screen her choice of keyboard layout in the discreet option bar at the bottom of the screen...
Let's say you have commits that change a file (and looking at the commit details show you the changes, etc). Now, when you do a git log you see...
...them, but when you say git log that.file these commits don't show up? This is for you. The reason is that the file got deleted deleted/re-added/renamed (any or all...
If you encounter a Firefox that does not care about your font settings but always uses specific fonts, you can fix that. Usually this should not happen, as it's...
...not a default setting: Open up the Preferences. Switch to "Content". In the "Fonts & Colors" section, click the "Advanced..." button. Tick "Allow pages to choose their own fonts, instead of...
...ActiveRecord::RecordNotSaved error, a method inside one of your model's callback chains (before_save etc) possibly returned false. This commonly happens when you have a method setting attributes and...
...the last one is a boolean set to false (as the value of the last statement is returned). Fix this by simply calling true at the end of such methods...
Around the time in my life when I stopped ordering drinks made with more than one ingredient, I was woken up for the last time by a hypochondriac Nagios monitoring...
...If you are on-call long enough, you cultivate a violent reaction to the sound of your cell phone's text message alert. If your monitoring is overconfigured, that reaction...
Every time I started RubyMine, it opened the main window on the left monitor -- when moving it to the center monitor and closing it, the next time it still opened...
...up on the left one. Here is how I forced RubyMine to start up on a different screen: Un-maximize the main window Move it to your preferred monitor
...jd) which makes your code blow up when you use it together with the Spreadsheet gem. A solution is to restore the Ruby implementation of this particular method. To do...
rspec_spinner is a progress bar for RSpec which outputs failing examples as they happen (instead of all at the end). Installation gem install rspec_spinner Usage script/spec -r rspec...
...spinner -f RspecSpinner::Bar -c To make a shortcut in your .bashrc alias ss='script/spec -r rspec_spinner -f RspecSpinner::Bar -c' There's also an alternate runner RSpecSpinner::Spinner...
...hard on yourself. You need to give it a height and change the box-sizing and display: button input[type="reset"], input[type="button"], input[type="submit"], input[type="file...
...input[type="button"] display: inline-block box-sizing: border-box height: 20px line-height: 20px Also see Proper cross-browser CSS styling for buttons...
Since there are more and more touch-capable devices out there, as a web-developer it becomes more and more important to know how to deal with touch events next...
...MAX functions are for aggregations only. This will not work and produce an error: SELECT id, MIN(birthday, '1978-01-01') FROM users; In order to compute the minimum or...
...maximum value for the current row, use LEAST and GREATEST instead: SELECT id, LEAST(birthday, '1978-01-01') FROM users...
...looking for a functionality in RubyMine but don't know or remember its keyboard shortcut or which menu it is located in?\ Hit Ctrl+Shift+A. This will bring up...
...the result from the list to run it. The list of results will also show you any assigned keyboard shortcuts...
Rails doesn't know which host it is running on. For generating links, it strips the hostname off the request URL, which can lead to errors when you have absolute...
...URLs in your Cucumber tests. If you really need to use absolute URLs somewhere, say in an email you send, either throw away the host when parsing it (e.g. body.scan...
Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify the option's value, not its text. = form.select :country, Address.countries...
...for_select, :include_blank => true, :disabled => ['disabled-value1', 'disabled-value-2'] Also see Cucumber: Check if a select field contains a disabled option on how to test this...
...responds to a given format, here is how you do it: Rails 3 match 'sitemap.xml' => 'feeds#sitemap', :constraints => { :format => 'xml' }, :as => 'sitemap' Rails 2 map.sitemap 'sitemap.xml', :controller => 'feeds', :action => 'sitemap...
...you get this Ruby hash: { true: 'Totally', false: 'Nope' } In order to use the strings 'yes' and 'no' as keys, you need to wrap them with quotes: 'yes': 'Totally'
...true|True|TRUE|false|False|FALSE |on|On|ON|off|Off|OFF
Enter any command into explainshell and it will explain it to you: split into separate commands (if present), with each option explained. About Hello, This site contains 29761 parsed manpages...
...from sections 1 and 8 found in Ubuntu's manpage repository. A lot of heuristics were used to extract the arguments of each program, and there are errors here and...
MuPDF is a PDF reader that renders very quickly, yet still correctly. It supports PDF 1.7 and all the fancy shenanigans that evince (Ubuntu's default PDF reader) fails to...
...render properly. On Ubuntu, MuPDF is available in the Universe sources. Simply install via APT: sudo apt-get install mupdf Interaction primarily happens via keyboard, but there is basic mouse...
If you worked with a system Ruby before switching to RVM, this system Ruby will be in your way when you switch between projects with/without RVM.
...get rid of your system Ruby entirely, but you can tell RVM to just use a given Ruby by default, e.g.: rvm --default use 1.8.7 You need to re-open...
...helpful when you need the latest file inside a directory for processing in a shell script: ls -1tr * | tail -1 Used switches The -1 switch makes ls return...
...file per line, -t orders by modification time and -r causes sorting from oldest to newest. tail -1 then returns the last line, containing the newest file's name.
...Thunderbird for easier access and less trouble when trying to find out who to send a message to. Here is how to do this: Open your Thunderbird address book
...list and add contacts. There will be auto completion from your address book. When sending e-mails you can now add a recipient with the mailing list's name and...
Katapult 0.3.0 brings Rails 5 and Ruby 2.5 support with a new design, plus a ton of smaller features, fixes and improvements. Features Generating a Rails 5.1.4 app on Ruby...
...Dropped asset pipeline in favor of Webpacker The generated application now has a sleek, simple design based on Bootstrap Employing Unpoly New application model DSL shortcut crud for "create a...
...not investigate in the 2342 tools that exist for migrating IMAP accounts from one server to another. They all suck. Try your luck with imapsync. We have no clue why...
...the guys suggest buying the script on their site, maybe they missed removing that part after this April fool's trick. Go to https://fedorahosted.org/released/imapsync/ and get the sources...
When you regularly make use of Cucumber's "show me the page" step (or let pages pop up as errors occur), the capybara-20120326132013.html files will clutter up your Rails root...
To tell Capybara where it should save those files instead, put this into features/support/env.rb: Capybara.save_and_open_page_path = 'tmp/capybara...