Pages

Thursday, January 31, 2013

[食譜] 川貝冰糖燉梨

極度簡單,止咳化痰

食材:
梨子
川貝粉
冰糖
















器材:
電鍋
小湯鍋
能耐熱的大碗 

作法:
梨子削皮,皮鋪碗底















(皮一定要放,止咳的主要就是靠燉梨子皮燉的湯 )
梨子去籽後對切或切塊放進碗底
川貝粉放冷水後煮滾,放入碗中
(從冷水開始煮喔,不要等水滾才放嘿! )
整個碗放進內鍋,外鍋加水燉一小時
















燉好的梨子會呈現半透明狀

















把湯跟梨子吃掉吧,皮就不用理他了。



附註:
1. 梨子生吃的話是冷的,會咳更慘喔~燉過以後才會變溫性的
2. 川貝是化痰用的中藥,如果沒有痰的話可以不用加
3. 冰糖是要對抗川貝粉的苦味用的,如果只是要燉梨, 梨子買好一點或許可以不用加。
4. 川貝粉的份量? 大概是我圖片上那包的一半差不多,不然湯的藥味有點重
    那包五十塊,所以就是一顆大梨子配25塊的川貝粉就是了

Wednesday, January 30, 2013

[食譜] 馬鈴薯燉肉

顧名思義,主角就是馬鈴薯跟肉
是道超簡單的日式料理
一般是用油花比較多的肉,用火鍋肉片其實就可以了

極簡單超懶人調味料食材極少作法(全電鍋版)

趕時間的就看這個就好

洋蔥+馬鈴薯+紅蘿蔔切滾刀塊以後放入內鍋鋪底
上面鋪上豬五花片
加醬油和水,蓋過食材就差不多了
至少燉半小時,自己調味
最後可以灑蔥花


我的作法


我用的是牛肉,而且擺明是要煮一鍋吃兩天這樣
所以用的是牛肋條(相當於排骨),耐燉耐煮。

材料:

















牛肋條
洋蔥三顆
馬鈴薯三顆
紅蘿蔔一根
米酒
醬油
冰糖
蒜頭
辣椒
白胡椒粉
杏鲍菇兩根
蔥花
小玉米


廚具:
大同電鍋
電磁爐+小湯鍋
步驟:
1. 牛肋條請老闆直接切塊
2. 川燙*去血水
3. 剝洋蔥,大片點沒關係
4. 馬鈴薯切滾刀塊*,也是大塊一點,不然燉久以後都化掉了
(據說把尖角削得圓滑一點比較不容易化?)
5. 紅蘿蔔,杏鲍菇也是滾刀塊,小玉米...隨便啦
















6. 電鍋內鍋蒜頭跟辣椒先爆香,再丟洋蔥跟肉下去拌炒,加點米酒
補充一: 如果是用油脂比較多的肉,則是肉先下,直接用肉本身的油就好
補充二: 懶得爆香的話就直接把所有食材都鋪好,肉在最上面,然後交給電鍋處理就好
7. 倒醬油至差不多蓋過食物,加冰糖(有人是加味碄,但我不想特地去買)
8. 把其他食材通通丟進去,加水蓋過食材,蓋鍋蓋















大概半小時左右,就可以吃了



















味道ok以後,裝碗灑蔥花
號溝!


我是另有小電鍋,邊燉肉時就邊煮飯了
直接就可以泡飯吃了。
















另外,其實可以全程用電鍋來做,只是川燙以後要洗鍋子就是了
傢伙越多是越方便,但也不是每樣都要備齊才能上。
(當然,也是可以只用爐子煮)

*滾刀塊: 就是不規則塊就是了,反正第一刀亂切,然後刀勢固定,一直轉食物可以了
*川燙: 去血水用的,排骨類的都要有這步驟,水滾以後丟肉下去,肉很快就會變色,水會有雜質,這時就可以把肉拿起來了,水就倒掉吧!


Friday, January 18, 2013

[Ubuntu] Win7+Ubuntu on my PC

Win7 enterprise + Ubuntu 12.04 LTS Desktop

Purpose

Install Win7 and Ubuntu on my PC, with one 500-GB harddisk
50 GB for Win7
50 GB for Ubuntu
* Rest for a sharing space for both OS

You MUST install the Win7 first

Partitioning (through Win7)

51200 MB for one partition ~> for Win7
[your left MB] - 51200 MB for another partition ~> for sharing space
let the rest as free space ~> for Ubuntu

Install Win7 first

Skipped

Install Ubuntu

Skipped

Set up the environment to easily access sharing space

Remount the sharing space to change the name

  1. Find the UUID of the sharing space
    Find out the mounting point
    df -h
    It is /dev/sda3 in my case.

    Find out the mapping between mounting point and its UUID
    sudo blkid -s UUID
    Here, my UUID is 7EE047BDE0477A83
  2. Create a directory as the new mounting point, say, /Data
    sudo mkdir /Data
  3. Save and reboot
  4. Edit the /etc/fstab with root privilege, append with
    # mount the sharing space
    UUID=7EE047BDE0477A83    /Data    ntfs-3g    defaults    0    0
  5. Make a soft link (shortcut)
    I put the soft link on /home/Spencer/Desktop
    sudo ln -s /Data /home/Spencer/Desktop




[Optional]


Set up the startup applications (automatically launched on boot)

Approach 1: Using command line only
For example, dropbox
Create a file named as dropbox.desktop under ~/.config/autostart


[Desktop Entry]
Name=Dropbox
GenericName=File Synchronizer
Comment=Sync your files across computers and to the web
Exec=dropbox start -i
Terminal=false
Type=Application
Icon=dropbox
Categories=Network;FileTransfer;
StartupNotify=false


*.desktop is a launcher, you can customize with any command
(do not forget to make it executable)


Approach 2: Via the GUI
On the top-right side (next to your account)
click 'Startup Applications', and you know the idea.


Set up the iBus (typing traditional Chinese)

Install the Chewing first
sudo apt-get install ibus-chewing
The iBus app is /usr/share/ibus-daemon
put it in the startup applications too!


Set up the SSH server (make it accessible remotely)

sudo apt-get install ssh
* Note: ssh include the openssh-server

Thursday, January 17, 2013

[OSX] Create bootable USB drive on OSX

How to create a bootable USB drive when you only an OSX-based computer?

For readers as lazy as me: Just follow the colored text.


In my case, I want to reinstall my PC with Ubuntu, using a ISO files.
1. Prepare your source file

    For example, ubuntu.iso

2. Convert the .iso files to .dmg
    Here, I want my .dmg file named as ubuntu.dmg
    hdiutil convert -format UDRW -o ~/path/to/ubuntu.img ~/path/to/ubuntu.iso

3. Wipe you USB drive (using Disk Utility)

  1. Open up Disk Utility (it’s in /Applications/Utilities/).
  2. Click you USB root drive on the left panel
  3. Click the 'partition' tab on the right panel
  4. Choose the 'Volume Scheme'  as '1 partition'
  5. Set the 'Format' as Free Space
  6. Click 'Apply'
  7. Unmount the drive (Do not eject)


4. Put you .dmg file into your USB drive

  1. Find the USB disk index by
    diskutil list
    It is disk1, in my case.
  2. use 'dd' to transfer your file into the raw drive
    sudo dd if=./ubuntu.dmg of=/dev/rdisk1

5. Be patient
Your may see messages like this when it is done:
1421912+0 records in
1421912+0 records out
728018944 bytes transferred in 11020.757758 secs (66059 bytes/sec)



Reference
http://www.ubuntu.com/download/help/create-a-usb-stick-on-mac-osx
http://evan.borgstrom.ca/post/1314205955/osx-bootable-usb-from-iso

Wednesday, January 16, 2013

[Latex] Convert table from excel to latex


Export Latex table from OpenOffice

1. Download the extension: Cal2LaTex
http://extensions.services.openoffice.org/project/Calc2LaTeX

2. Double on the XXX.oxt, the extension manager would help you.

3. Set a button on the toolbar to make it easier to use:

  • Tools -> Customize -> Toolbars (or Menu to add a menu item)
  • Select the toolbar you want to add the button to, then click "Add..."
  • Scroll down to expand "OpenOffice.org Macros" in the left pane.
  • My Macros -> Calc2LaTeX -> Calc2LaTeX
  • Then select "Main" in the right hand, and click Add
  • Back in the Toolbars (or Menus) tab, select Modify, and Rename to Calc2LaTeX

For MS office:
1. Download the add-on: Excel2LaTeX
2. Double click on the .xla to install the macro
3. Find the function under Function tab