Right-aligned items (align using a separator): Workspace switcher Configure three workspace named "1", "2", "3" Disable miniature views in the item preferences Action button for "Lock screen"
Consider some default padding for UI tabs that you want to increase. $pad: 10px 15px .tab padding: $pad + 2px // WRONG That will incorrectly concatenate both: .tab { padding: 10px 15px2px...
} Fun fact: Multiplication (like $pad * 2) will even cause an error: Undefined operation: "10px 15px times 2". However, using nth, we can access individual values: $pad: 10px 15px
...The returned color will be a string with a color value like "rgb(253, 126, 20)". Bonus: Hex color strings If you want to convert that to a hex color...
...ES2017+) can do it like this: let hexColor = rgbColor .match(/(\d+), (\d+), (\d+)/) .slice(1, 4) .map((number) => { return Number(number).toString(16).padStart(2, '0') }) .join('') .replace(/^/, '#') Ruby
...some python zombie processes): Get PPID of zombie process: $ ps -ef | grep "python" [...] nova 13930 1543 0 Jun19 ? 00:00:00 [python] nova 13931 1543 0 Jun19...
nova 13932 1543 0 Jun19 ? 00:00:00 [python] nova 13933 1543 0 Jun19 ? 00:00:00 [python] nova 13934 1543 0 Jun19 ? 00:00:00 [python] nova 13935...
Post.search { fulltext "your query", :fields => :title with(:category_ids).any_of([1,2,3,4,5]) } If you want to scope your search based on a text...
~ > openssl s_client -connect projecthero.com:443 -cipher ECDHE-RSA-RC4-SHA CONNECTED(00000003) depth=1 O = AlphaSSL, CN = AlphaSSL CA - G2 verify error:num=20:unable to get local issuer...
~ > openssl s_client -connect localhost:443 -cipher ECDHE-RSA-RC4-SHA CONNECTED(00000003) 140293946562208:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c...
...characters incorrectly and only outputs correct UTF-8 when you switch to Latin 1 (!). Also you need to setup charset and collation manually for each new database. To prevent this...
...might have to deploy to a server that cannot access the git repository. Solution 1: HTTP Proxy (this is the preferred fix) SSH can be tunneled over an HTTP Proxy...
...target server and forward an SSH port like this: ssh deploy-user@server -R 1222:git.host:22 Set the repo url in your deploy.rb to ssh://git@localhost:1222/... (for our...
Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or...
...fix that, remove all versions ob 'libv8': gem uninstall libv8 Select gem to uninstall: 1. libv8-3.3.10.2-x86_64-linux 2. libv8-3.11.8.17-x86_64-linux 3. libv8-3.16.14.3-x86...
Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach. Machinist allows named blueprints (e.g. User.blueprint(:admin)) that inherit from...
...date_format = Spreadsheet::Format.new :number_format => 'DD.MM.YYYY' # set default column formats sheet1.column(1).default_format = money_format sheet1.column(2).default_format = date_format sheet1.row(0).push "just text", 5.98, DateTime.now...
...to the classes themselves. We can reference these classes in CSS: .details { transition: opacity 1s; opacity: 1; } .details[class*="-remove"] { transition: none; // No transition on class removal -> instant hiding
...is a property of the parent scope (like "someProperty", instead of an expression like "1+2"), i.e. it is writable by any means, Angular will set up a two-way...
...Installing a new LibreOffice If you want to upgrade to LibreOffice 5.0 (available on 12.04): sudo add-apt-repository ppa:libreoffice/libreoffice-5-0 If you want to upgrade to LibreOffice 5.1 (not...
...available on 12.04): sudo add-apt-repository ppa:libreoffice/libreoffice-5-1 Now install the new version: sudo apt-get update sudo apt-get install libreoffice For a localized interface, install the corresponding...
...this can be achieved in a relatively non-hackish way without CSS hacks. Step 1 Move your current Sass file into a partial. Let's assume it was called screen.sass...
Insert the conditionals into your _screen.sass, like this: .box @if $ie border: 1px solid #aaa @else -moz-box-shadow: 0 0 5px #aaa -webkit-box-shadow...
...If necessary, you could compare that to Regexp's switch constants: >> regexp.options & Regexp::IGNORECASE => 1 >> regexp.options & Regexp::EXTENDED => 0 >> regexp.options & Regexp::MULTILINE...
...and stopwords list), you need to hack it. There are three options available. Option 1: If you like pain Write a Full-Text parser plugin in C. Option 2: Make...
...tables from a database (but keep the database itself), you have two options. Option 1: Drop the entire schema You will need to re-create the schema and its permissions...
...character that cannot start any token while scanning for the next token at line 1297 column 3 Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping...
...remote server: Error 400 on SERVER: undefined method `empty?' for nil:NilClass at /etc/puppet/environments/production/manifests/nodes.pp:1 on node example.makandra.de Warning: Not using cache on failed catalog Error: Could not retrieve catalog...
...see that your custom font settings are no longer there but Thunderbird's default 12pt monospace font will be back. \ This is why some e-mails look wrong, they are...
The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field's ngModel (which means it's not sent to the...
...empty string instead of undefined. for elementType in ['input', 'textarea', 'select'] @app.directive elementType, -> priority: 1 restrict: 'E' require: '?ngModel' link: (scope, element, attributes, ngModelController) -> return unless ngModelController if elementType == 'input...
...force this error by setting a short timeout and sleeping in the query: Timeout.timeout(1) { User.find_by_sql('SELECT sleep(2) FROM users;') } # All subsequent queries then will fail with...
...which you can read, write or mock local symbols: klass = (-> privateVariable = 0 privateMethod = -> privateVariable += 1 publicMethod = -> privateMethod() add: add knife: eval(Knife.point) )() klass.knife.get('privateVariable') => 0 klass.knife.set('privateCounter', 5) klass.knife.get('privateCounter...
The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...