...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...

tableplus.io

...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...

...clean bundler environment and without spring. def run(cmd, timeout = nil) ENV['DISABLE_SPRING'] = '1' Bundler.with_clean_env { super } end end World(Customization) We're also disabling Spring because it...

1. Sometimes you have search entries in the autocomplete of the address bar, which are higher weighted than your bookmarks. Pressing SHIFT + DEL while searching removes them from the history...

...a key for your encrypted harddisk: dd if=/dev/random of=/home/bob/keyfile_sdb1 bs=4096 count=1 Then add your keyfile to encrypted harddisk: How to change your dm-crypt passphrase (step...

The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...

full_path = File.expand_path attachment # find id to update id = full_path.match(/(\d+)\/original\/.+$/)[1] puts "Re-saving ##{id}..." your_model = YOURMODEL.find(id) # Paperclip will re-save the attachment using...

Note: This applies to plain Ruby scripts, Rails does not have this issue. When you work with Ruby strings, those...

makandra dev

globstar off In that case, ** behaves just like * and will match exactly 1 directory level. $ ls spec/**/*_spec.rb spec/models/user_spec.rb To enable it, run shopt -s globstar

makandra dev
tldp.org

...the linked article.) Basic 0/1/2 references stdin/stdout/stderr >/2> redirects stdout/stderr, where > is taken as 1> &1/&2 references stdout/stderr &> redirects stdout and stderr = everything (caution: see below) Caution: &> is functional...

...when redirecting output in Ruby scripts. Instead of cmd &> file, prefer cmd > file 2>&1, which equals: "Redirect stdout of cmd to file, and redirect stderr just where stdout is...

...versions no longer include the ActiveRecord adapter (which is part of ActiveRecord since Rails .1). So your Gemfile should say:

...not really what you are looking for: isNaN(NaN) // true isNaN('hello') // true Option 1: ES6 The Object.is() method determines whether two values are the same value. It even works...

makandra dev

...c copy part2.webm # Create a textual list of all sequences for i in {1..2}; do echo "file 'part$i.webm'" >> parts.txt; done # Combine the ffmpeg -f concat -safe 0 -i...

...will return a list of their IDs: User.last.collect_ids # => [9] [User.first, User.last].collect_ids # => [1, 9] User.active.collect_ids # => [4, 5, 6] [4, 5, 6].collect_ids # => [4, 5, 6]

redis.io

...reproduced (like cached values). If you store data that you want to keep for 1 year or so, you must keep in mind that this data may disappear sooner.

Enable ip traffic forwarding: Open /etc/sysctl.conf Uncomment the line net.ipv4.ip_forward=1 Reload using sudo sysctl -p /etc/sysctl.conf Reconfigure ip_tables to allow NAT: Download the attached...