This is a guide for setting up rdio in ubuntu. Specifically via gnome-shell as an application.
Install Google Chrome on linux
Download Rdio's icon. Place it in ~/.local/share/icons/rdio.png
.
daemon off; | |
# Heroku dynos have at least 4 cores. | |
worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>; | |
events { | |
use epoll; | |
accept_mutex on; | |
worker_connections 1024; | |
} |
module IndecentExposure | |
extend ActiveSupport::Concern | |
module ClassMethods | |
private | |
def expose(name, &block) | |
var = "@#{name}" | |
define_method(name) do | |
instance_variable_set(var, instance_variable_get(var) || instance_eval(&block)) | |
end |
This is a guide for setting up rdio in ubuntu. Specifically via gnome-shell as an application.
Install Google Chrome on linux
Download Rdio's icon. Place it in ~/.local/share/icons/rdio.png
.
source :rubygems | |
gem 'showoff' | |
gem 'gli', '1.6.0' |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
# By default the behavior is: | |
# Primary monitor work as always and second monitor only have one and fixed workspace | |
# I.e. you change to next workspace, primary monitor change to this workspace and second monitor remain as is. | |
# The desired behaviour is: | |
# Primary monitor and secondary monitor are linked workspace. | |
# I.e. you change to next workspace, primary monitor change to this workspace and second monitor too. | |
$ gconf-editor | |
# Look for /desktop/gnome/shell/windows/workspaces_only_on_primary and set to false |
# Installs Ruby, makes 1.9.2 the default. | |
sudo aptitude install ruby rubygems ri ruby1.9.1 ri1.9.1 jruby | |
sudo update-alternatives --remove-all gem | |
sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.8 300 \ | |
--slave /usr/share/man/man1/ruby.1.gz ruby.1.gz \ | |
/usr/share/man/man1/ruby1.8.1.gz \ |
def output name=((default=true); "caius") | |
puts "name: #{name.inspect}" | |
puts "default: #{default.inspect}" | |
end | |
output | |
# >> name: "caius" | |
# >> default: true | |
output "avdi" |
require 'rubygems' | |
require 'nokogiri' | |
require 'fileutils' | |
require 'date' | |
# usage: ruby import.rb my-blog.xml | |
# my-blog.xml is a file from Settings -> Basic -> Export in blogger. | |
data = File.read ARGV[0] | |
doc = Nokogiri::XML(data) |