Amazon ec2 – First Try

March 17, 2011

Hosting alternatives are linode and slicehost, but let’s try out EC2.

EC2StartersGuide

How To: Getting Started with Amazon EC2

Created a Amazon EC2 Key Pair

sudo apt-get install ec2-api-tools

Advertisements

tmux – the early days

March 15, 2011

I’m in the process of switching from using emacs to using vim and tmux.

Emacs

March 8, 2011

Eshell

Mastering Eshell

zsh

March 8, 2011

Links

zsh web-pages

zsh-lovers

zsh wiki

A User’s Guide to the Z-Shell

Adam’s zsh page

The ZSH Workshop – by Larry Schrof

Linux console with >8 colors

March 8, 2011


Upgrading Linux terminal to 256 Colors

from http://pastelinux.com/2010/12/01/upgrading-linux-terminal-to-256-colors/

VIM!The Amazing thing about being in the world of 2010 is we have so many more advance technologies. When it comes to linux terminal, there are so many wonders that can be done. But how come the default terminal colors are 8?

Go ahead type:

tput colors
see that number 8? ridiculous right?

As of now there is a posibility of 256 colors  usable for the terminal.
Luckily this is easy to make happen!
First install:

sudo apt-get install ncurses-term

and stick the following in your ~/.bashrc and/or ~/.bash_profile:

export TERM=xterm-256color

After you edit your .bashrc or .bash_profile source that same file:

source ~/.bashrc

Now retype that command above

tput colors

Vim installation and setup

March 4, 2011

Remove Current Vim

sudo apt-get –purge remove vim
sudo apt-get autoremove

Build latest vim from source

Download latest

hg clone https://vim.googlecode.com/hg/ vim

Build

./configure –with-features=huge –enable-rubyinterp — enable-python

(python-dev required)

make

sudo checkconfig

Dotfile folder on Guthub and linked in place

~/dotfiles

~/dotfiles/symlink.sh

~/dotfiles/vim/

~/dotfiles/vimrc

Vim Setups to Watch

git://github.com/tpope/tpope.git
git://github.com/coreyhaines/vimfiles.git
git://github.com/spicycode/Vimlander-2-The-Quickening.git

Plugins

Pathogen.vim

https://github.com/tpope/vim-pathogen

Pathogen is a simple library for manipulating comma delimited path options. Add this to your vimrc:

call pathogen#runtime_append_all_bundles()

After adding this, you can take any plugin, unzip/untar/svn-checkout/git-clone it to its own private directory in .vim/bundle, and it will be added to the runtime path.  This makes it easy to remove or update each plugin individually.

Add vim scripts to submodules

git submodule add git://github.com/nelstrom/vim-blackboard.git vim/bundle/vim-blackboard
git submodule init
git submodule update

Ubuntu Linux Package Management

March 4, 2011

List Installed Packages

sudo dpkg –get-selections
This command will list all the packages installed on a system using the package manager. Example:

Remove an Installed Package

sudo apt-get –purge remove vim

Links

Collection of 18 Popular APT & DPKG Tips for Debian and Ubuntu

Ubuntu Linux: Uninstall / Remove Any Installed Software

Package Management with APT : Ubuntu

Advanced package management

InstallingSoftware

JavaScript is Awesome and Ubiquitous

March 4, 2011

I have been on an intense journey into the heart of the JavaScript language.  JavaScript: The Good Parts by Douglas Crockford totally changed my disdain for JavaScript into admiration for the elegance and power contained in the language.

Links

Understanding JavaScript Prototypes. by Angus Croll

ECMA-262 – ECMA-262-3 in detail. Chapter 7.2. OOP by Dmitry A. Soshnikov

ECMA-262 – JavaScript. The core. by Dmitry A. Soshnikov

JavaScript in Ten Minutes by Spencer Tipping

Checkinstall building from source on Linux

March 4, 2011

Online Resources

Using Checkinstall To Build Packages From Source

Easy Package Creation with CheckInstall

Better Linux Package Management with Checkinstall

Build Linux Apps from Source with Checkinstall for Fewer Problems

Today’s task is building latest vim from source

Mangled Ruby Learnings

October 21, 2010

Tattered cloth caught in the barbed wire of exploring the Ruby programming language

Ruby ponderables. yield and Enumerable

Freeze that string or be wary of change

Anything else is true.  Who are we?

Inspector p may be your friend.

Knights who say ri?

connecting with your inner . # ::

you respond_to? ‘my_affection’

What do we know of equality (==) on the Range?

How can … be less inclusive than ..?

1..5 === 3

self.respond_to? ‘madness’.intern # No method to my madness

<eol> terminates syntactically complete statement

‘.’ first non=white ruby 1.9 continuation

space between method name and ‘(‘

always run with -w. never run with scissors

all the classes with expression literals [Array, Hash, Range] # and others?

The Ruby interpreter evaluates expressions, producing values.

Formally called a “block”. What am I?

shebang. Sexist comment?

BEGIN END has special meaning

method arguments are passed “by value” rather than “by reference”, but the values passed are object references. RPL 3.8.1

new is a method of the Class class RPL 3.8.2

include Comparable. <=> used to define < <= == >= > RPL 3.8.6