# cjj's blog

## Brief steps to dual boot Debian Sid on SONY VAIO Pro 11

(The following assumes that a USB network adapter is available to get internet connection. If not, you will need to use the regular iso instead of netinst in step 2 and download the kernel package mentioned in step 7 in Windows before installing it in Linux.)

1. Make room for Linux: In Windows 8, use disk management to make room for Linux installation. (See, e.g., this.)

## Visual Studio 命令提示字元 (2010)

Visual Studio 2010 Express提供了一個簡單的C++編譯環境：『Visual Studio 命令提示字元 (2010)』。

cl hello.cpp

glut的程式（在glut有正確安裝後）也可以直接編譯。

*** 本則資訊已過時 ***

## Indent style for my C++ coding

I prefer to indent my code with TABs. Some people do not like that because a TAB can represent different amount of spaces in different editors or viewers. However, I like TABs for their semantic meaning of levels of grouping. How a code editor or viewer displays this grouping information should be left to the liking of its user. And, using two spaces (or four) is just wasting an extra character when we can just set the TAB size to 2 (or 4). I also favor compactness and readability. It's desirable to make the code visually shorter as long as it remains readable.