# Connect to irc server
/connect irc.freenode.com
# Join a channel
/join #hackerspacesg
# List users in channel
/names
# Switch to next window
CTRL + n
# Switch to previous window
CTRL + p
Thursday, September 3, 2009
How to use irssi
Tips to use mobileterminal on iPhone
Tips
Hide the Keyboard
Tap twice quickly on the screen to hide the keyboard. Repeat to bring it back.
Control Characters
Swipe Controls
| Swipe Type | Direction | Action |
| Short | Up-Right | Control-C |
| Short | Down-Right | Control- |
| Short | Up-Left | Esc |
| Short | Down-Left | Tab |
| Short | up/down/left/right | arrow keys (respectively) |
| Long | Up | None (functions as up-arrow) |
| Long | Down | Enter |
| Long | Left | None |
| Long | Right | None |
| Two Finger | Up | Config |
| Two Finger | Down | Hide Keyboard |
| Two Finger | Left | Page-Up/Next |
| Two Finger | Right | Page-Down/PREV |
None of the Two Finger Swipes seem to work right in 2.0 firmware
Multiple Terminals
Wednesday, September 2, 2009
Cucumber feature template
Feature:title
In order to [Business Value]
As a [Role]
I want to [Some Action]
In order to [Business Value]
As a [Role]
I want to [Some Action]
Tuesday, September 1, 2009
Do not use Ruby's Enumerable find() method in Rails
According to ruby doc.
However if you ever try to use Enumerable#find in Rails, you'll get a "cannot find object without object id" error.
Better to use Enumerable#detect
However if you ever try to use Enumerable#find in Rails, you'll get a "cannot find object without object id" error.
Better to use Enumerable#detect
The problem with using Rail's try() method
@jasonong Try not to use Rail's try() method; makes debugging
difficult coz error not thrown.
Git: creating, pushing & deleting remote branches
I work on multiple machines. Need temporary remote branches that I can sync them with.
# create remote branch from a local branch
git push origin LOCAL_BRANCH:refs/heads/REMOTE_BRANCH
# push commits to remote branch
git push origin LOCAL_BRANCH:REMOTE_BRANCH
# pull commits from remote brance
git pull origin REMOTE_BRANCH
# delete remote branch
git push origin :REMOTE_BRANCH
Subscribe to:
Posts (Atom)