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

...Promises/A+ compatible implementations like native promises, jQuery 3+ deferreds or Bluebird. Deferreds in jQuery 1 and 2 do not have this behavior. Read more Promise-based functions should not throw...

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

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:

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

$helper.prependTo('body').text('click me').css({ zIndex: 9999, position: 'absolute' }); setTimeout(function() { $helper.remove() }, 1000); JAVASCRIPT find("##{id}").click Note that the link tag is removed after 1 second. You...

...application details. Consider the following: ActiveRecord::RecordNotFound: Couldn't find Organisation::Membership with 'id'=12 [WHERE "organisation_memberships"."user_id" = 1] You should probably not simply render those error messages...

...use jasmine.any(Klass): describe('plus()', function() { it ('returns a number', function() { let result = plus(1, 2) expect(result).toEqual(jasmine.any(Number)) }) }) Also see Expecting objects as method invocation arguments...