Tuesday, October 16, 2012
Monday, October 15, 2012
Tuesday, September 4, 2012
Arduino: the size of data types
int: -32,768 to 32,767(minimum value of -2^15 and a maximum value of (2^15) - 1)
unsigned int 0 to 65,535 ((2^16) - 1)
long: -2,147,483,648 to 2,147,483,647 (32bit)
float: 32bits
double: 32bits (The same as float)
unsigned int 0 to 65,535 ((2^16) - 1)
long: -2,147,483,648 to 2,147,483,647 (32bit)
float: 32bits
double: 32bits (The same as float)
Monday, August 27, 2012
Color scheme for vim (not for gvim)
I was always wondering why some color scheme does work on gvim (MacVim) but not on vim launched from terminal. That's the reason.
Using GUI color settings in a terminal
http://vim.wikia.com/wiki/Using_GUI_color_settings_in_a_terminal
Using GUI color settings in a terminal
http://vim.wikia.com/wiki/Using_GUI_color_settings_in_a_terminal
Tuesday, August 21, 2012
Updated: After Installed Mountain Lion
- Changed trackpad settings to "NORMAL"
- Enabled tap and click
- Fixed scrolling direction
- Enabled click and drag
- System Preference -> Accessibility -> Mouse & Trackpad -> Trackpad Options
- Enabled key repeat
- Issue "defaults write -g ApplePressAndHoldEnabled -bool false"
- Made user's library directory visible from finder
- Issue "chflags nohidden /Users/USERNAME/Library"
- Installed
- MacVim
- Installed "ocean deep" color scheme
- Syntax highlight for arduino
- Made .vimrc
- TextWrangler
- Xcode
- Added "command line tools" component
- Preferences -> Downloads -> Components
- VMware Fusion
- Installed Ubuntu 12.04 Desktop 64bit
- Updated installed packages
- $ sudo apt-get update
- $ sudo apt-get upgrade
- Installed C compiler
- $ sudo apt-get install build-essential
- Installed Oracle JAVA 7
- $ sudp add-apt-repository ppa:webupd8team/java
- $ sudo apt-get update
- $ sudo apt-get install oracle-java7-installer
- $ java -version
Ref: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html - Installed Netbeans
- Download package, and the run install script
http://netbeans.org - Installed Arduino programming environment
- $ sudo apt-get install arduino-core arduino
- Installed Windows 7
- Windows Update - Required packages
- Windows Update - Recommended packages
*CAUTION* VMware Fusion got freeze while patching - Adobe Acrobat Pro 9.0
- Patched manually! There was no automatic update option on 9.0...
After all the patches were done (Ver. 9.5.2) the Acrobat got "Check for update" option in "Help" menu. - The unarchiver
- MplayerX
- Caffeine
- Reeder
- Microsoft Office
- iWorks
- ScanSnap Manager
Sunday, August 19, 2012
Vim: set path to working directory
Add the following to .vim
" Add the current file's directory to the path if not already present.
BufRead *
\ let s:tempPath=escape(escape(expand("%:p:h"), ' '), '\ ') |
\ exec "set path+=".s:tempPath
Ref: Set working directory to the current file
With previous make and javac binding, you can compile and execute Java code from vim with
:mak
:!java FILENAME
" Add the current file's directory to the path if not already present.
BufRead *
\ let s:tempPath=escape(escape(expand("%:p:h"), ' '), '\ ') |
\ exec "set path+=".s:tempPath
Ref: Set working directory to the current file
With previous make and javac binding, you can compile and execute Java code from vim with
:mak
:!java FILENAME
Subscribe to:
Posts (Atom)