Dwelling in the Dream

June 27, 2011

Dual-Boot Windows 7 and Ubuntu 10.04 LTS — using Windows boot manager & grub 2

Filed under: Linux — wrjih @ 3:18 am

網路上可以找到一堆的Windows和ubuntu安裝教學, 但是我在多重機時, 一直遇到問題….. 有時是開機時, 可以看到grub畫面, 但是Window根本進不去; 再不然就是ubuntu安裝後, 重新開機卻直接進了Windows。我很有實驗精神地試著把grub裝到每個parition去, 最後把所有的boot sector都弄爛了, 結果當然還是不能雙重開機。我用力找了很多的網站, 很少人有寫安裝時的注意事項,最後, 終於找到中文版的Windows 7 (or Vista) 與 ubuntu 多重開機 (dual boot with EasyBCD), 實在太感謝了。

Many websites provide step by step instructions for installing Windows 7 (or Ubuntu), such as  ”Dual-Boot Windows 7 and Ubuntu in Perfect Harmony“, “WindowsDualBoot“,….,  but few of them address problems that we may encounter while installing dual-boot.

Before we start the dual-boot installation, there are tips we need to know.  Here, I assume that the Windows 7 is installed before the Ubuntu.    Please note the following steps while you are try to make a successful dual-boot :

  • Ubuntu installation:  In the last step “Ready to Install“,  press “Advanced” button.  For the destination that bootloader will be installed, select the first sector of your Ubuntu, i.e. the device either the / or the /boot will be installed.  If you have allocated the /boot, choose its corresponding device, otherwise, use the root (/) device.
  • Reboot: After complete the installation of Ubuntu, reboot the computer.  It’s normal that there is NO option for Ubuntu in the menu of Windows Boot Manager.  Don’t panic, just enter the Windows 7.
  • Windows 7: In order to make the Windows Boot Manager knows where to load the Ubuntu.  You need to rewrite the MBR (Master Boot Record).  A free tool EasyBCD, can help to perform such modification.
  • Windows 7: Install and run EasyBCD.   Press “Add New Entry” button, select “Linux/BSD” tab.  Select the ‘GRUB 2‘ as the type of the entry.  Give the name of your linux, and then press “Add Entry” button.
  • Reboot: You will see the Windows Boot Manager can load Windows and Ubuntu.
  • Done

In this example, the EasyBCD is added a point of the Ubuntu boot loader to the MBR.   At this point, when you choose to load Ubuntu, it will be directed to the Grub menu.  You can use the Start Up Manager to change the waiting time of Grub menu.

June 5, 2011

GPS Data Logger Software – BT747 (Ubuntu 11.04)

Filed under: Linux — wrjih @ 5:15 am

BT747 is a software for GPS Data Logger Devices.   It compatible with most MTK-chipset GPS Data Loggers or Tracking Devices.  The GPS position can be delivered as HTML for Google Maps API, GPX, KML, KMZ, NMEA,…  BT747 support for multiple computer platforms, either desktop or mobile devices, such as Windows, Linux, Blackberry, MacOSX, PDA, …

My computer is running Ubuntu 11.04 (32-bit).  The default  Java Web Start of OpenJDK has trouble to invoke  desktop version of BT747.    According to this article, the author recommended to install sun-java6 instead of the default one.   Following the steps will successfully complete the sun-java6 installation (assume that you have the right to do something as a superuser):

  • sudo add-apt-repository ‘deb http://archive.canonical.com/ lucid partner’
  • sudo apt-get update
  • sudo apt-get install sun-java6-jre sun-java6-plugin

After complete the sun-java6 installation,  you can download and Install the desktop version of BT747. When you run the BT747 and plug your GPS to your computer.  Please remember to trun ON the GPS and you may need to change the speed (38400, 11520…).  Press the  ’Connect’ button (on the bottom), the GPS Device Data (on the right hand side) will be shown.  The following is an example of my GPS (NcsNavi R150+):

BT747 Screenshot

If you need the DOP (Dilution of Precision)  for your GPS data, goto the ‘Device Settings’ tab, check the PDOP, HDOP, VDOP.  Here is the screenshot of my GPS:

If you will like to download the GPS data, before you press the ‘Download’ buttom, you may need to modify some file names (‘Log Operations’ tab).  A Download Progress bar will display on the bottom right while downloading.   The download process saves GPS data into a .bin file.  You can use the .bin file to convert to any file type in the Convert box area.

October 12, 2008

Garmin Colorado 400t vs. Edge 705

Filed under: Computer — Tags: — wrjih @ 3:26 pm

Colorado 400t 和 Edge 705在台灣都有上市, 在台灣都屬戶外休閒產品.  但兩者主要的特色還是稍有不同:

  • Edge系列
    • 專門為腳踏車設計的,
    • 有腳踏車專用固定架
    • 另附心率監測帶
    • 能記錄使用者騎車時的心跳、踏頻、車速、行程、坡度…
    • 高感度GPS、氣壓式高度計
  • Colorado系列
    • 多用途不限定給腳踏車用.
    • 另附登山專用扣環
    • 高感度GPS、電子羅盤、氣壓式高度計、溫度感測.

Colorado 400t

Edge 705

599.99USD

499.99USD

Garmin Colorado 400t
Garmin Edge 705

Physical & Performance:

Colorado 400t

Edge 705

Unit dimensions, WxHxD:

6.0 x 13.9 x 3.5 cm

5.1 x 10.9 x 2.5 cm

Display size, WxH:

3.8W x 6.3H cm; 7.6 cm diag

3.48 x 4.36 cm; 5.6cm diag

Display resolution, WxH:

240 x 400 pixels

176 x 220 pixels

Weight:

206.9 g with batteries

104.9 g

Battery:

2 AA batteries (not included); NiMH or Lithium recommended

rechargeable li-polymer

Battery life:

15 hours

15 hours, typical

Waterproof:

yes (IPX7)

yes (IPX7)

High-sensitivity receiver:

yes

yes

Interface:

USB and NMEA 0183 compatible

RoHS version available:

yes

yes

Maps & Memory:

Basemap:

yes

yes

Preloaded maps:

yes (topographic)

Ability to add maps:

yes

yes

Built-in memory:

yes

Accepts data cards:

SD™ card (not included)

microSD™ card (not included)

Waypoints/favorites/locations:

1000

100

Routes:

50

Limited by memory space available

Track log:

10,000 points, 20 saved tracks

1000 laps

Features:

Heart rate monitor:

yes

Bike speed/cadence sensor:

yes

Foot pod:

no

Automatic sync (automatically transfers data to your computer):

no

Garmin Connect™ compatible (online community where you analyze, categorize and share data):

yes

Garmin Training Center® software compatible:

yes

Virtual Partner® (train against a digital person):

yes

Courses (compete against previous workouts):

yes

Auto Pause® (pauses and resumes timer based on speed):

yes

Auto Lap® (automatically starts a new lap):

yes

Auto Scroll (cycles through data pages during workout):

no

Multi-sport (changes sport mode with a press of a button):

no

Advanced workouts (create custom, goal-oriented workouts):

yes

Simple workouts (input time, distance and calorie goals):

yes

Pace alert (triggers alarm if you vary from preset pace):

yes

Time/distance alert (triggers alarm when you reach goal):

yes

Interval training (set up exercise and rest intervals):

yes

Customizable screen(s):

yes

Power meter compatible (displays power data from compatible 3rd party ANT+™-enabled power meters):

yes

Sport watch:

no

Automatic routing (turn by turn routing on roads):

yes (with optional mapping for detailed roads)

Electronic compass:

yes

Barometric altimeter:

yes

yes

Geocaching-friendly:

yes (paperless)

Outdoor GPS games:

yes

Hunt/fish calendar:

yes

Sun and moon information:

yes

Tide tables:

yes

Area calculation:

yes

Custom POIs (ability to add additional points of interest):

yes

Unit-to-unit transfer (shares data wirelessly with similar units):

yes

yes

Picture viewer:

yes

September 4, 2008

Adobe Flash Player cannot work in my vista

Filed under: Browser, Computer — wrjih @ 9:21 pm

我的IE的flash player在某次更新後, 突然不能執行了, 每次只要到了有flash的網頁就會要我下載並安裝flash, 但是下載後, 卻後沒辦法安裝成功。把flash player uninstall/install了n次也沒用….今天剛好看到網路上也有人遇到類似的問題, 解法有2:

  1. 重新安裝IE, 但是我的IE是附在vista裏面的, 無法uninstall, 所以只好選第2方案.
  2. 找到flash player的安裝程式, 直接按FlashUtilxx.exe
    • 我的是32 bit的vista, Flash的安裝程式是在C:\Windows\System32\Macromed\Flash的目錄下

原始的資料是在 computing.net上的討論區看到的, 我使用第2個解法, 果然解決了我的問題。根據上面的解釋是說因為vista的安全控管會限制應用程式更新registry的設定, 必需要直接執行那個程式才能安裝成功。真是不喜歡vista的自作聰明…. 超不方便的….

August 26, 2008

Gmail attachment icons

Filed under: Browser, Computer — wrjih @ 2:15 am

The following are the Gmail attachment icons I’ve collected:

May 31, 2008

BibTeX and bibliography styles

Filed under: Word Processor — Tags: , , — wrjih @ 5:30 am

The Elements of Citation

The primary elements of a bibliographic reference are the same for most styles of documentation, although the order in which they are presented may vary. These elements include the name of the authors, the title, the name of publication, the publisher’s name, the date of publication, and a designation of the location, or page number, of a reference. Many styles also include a designation of the publication medium. The Online! A reference guide to using Internet resources and B. Davis Schwartz Memorial Library at Long Island University provides some examples.


Bibliography Format

An example of basice format are:


Authors’ Name.
Title of document.
Name of Publication
Volume (number),
Page number.
Place of publication [if applicable],
Publisher’s name [if applicable],
Year.


An Easy Guide to BibTeX

Using BibTeX can help to handle the references and citations in a consistent way. This program allow us just supply all the relevant information about references in a .bib file without regard to ordering or style. According to the chosen bibliographic style, BibTeX formats all citations and reference entries.

In addition, you don’t have to sweat all the font, punctuation and ordering details. The reference/bibliography section usually appears at the end of an publication. Specify the style and location of the bibliography in your LaTeX document as follows:

bibliographystyle{xxx}
bibliography{yyy}

  • The “xxx” is a style name –plain or abbrv or siam or alpha or any of dozens of other available styles.
  • The “yyy” is the name of the .bib file (yyy.bib) containing the reference database.

A Simple BibTeX Database File

Here is a simple .bib file:

@STRING{IEEE_PerCom = {{IEEE} Pervasive Computing}}
@STRING{CHI03 = {{CHI ’03}: {CHI ’03} extended abstracts on Human factors in computing systems}}
@ARTICLE{Yu:06,
author = {Zhiwen Yu and Xingshe Zhou and Daqing Zhang},
title = {Supporting Context-Aware Media Recommendations for Smart Phones},
journal = IEEE_PerCom,
year = {2006},
volume = {5},
pages = {68 — 75},
number = {3},
month = {July — September},
address = {Los Alamitos, CA, USA},
doi = {http://doi.ieeecomputersociety.org/10.1109/MPRV.2006.61},
issn = {1536-1268},
publisher = {IEEE Computer Society}
}
@INPROCEEDINGS{Sohn:03,
author = {Timothy Sohn and Anind Dey},
title = {{iCAP}: an informal tool for interactive prototyping of context-aware
applications},
booktitle = CHI03,
year = {2003},
pages = {974–975},
address = {Fort Lauderdale, Florida, USA},
month = {05–10 April},
publisher = {{ACM} Press},
isbn = {1-58113-637-4}
}

Compiling the Document and Bibliography

If the reference change, (i.e. it’s not necessary to repeat the following commands very time) use the following commands:

Step Command Description
1 latex YourDocument creates .aux file which includes keywords of any citations
2 bibtex YourDocument uses the .aux file to extract cited publications from the database in the .bib file, formats them according to the indicated style, and puts the results into in a .bbl file
3 latex YourDocument inserts appropriate reference indicators at each point of citation, according to the indicated bibliography style
4 latex YourDocument refines citation references and other cross-references, page formatting and page numbers

An Easy BibTeX Guide

  1. Use “and” to separate multiple authors, e.g., author = "J. Smith and E. B. Johnson and W. Strunk Jr.". An online help on BibTeX names contains detailed description.
  2. To handle the ccented characters, you must place the entire accented character in braces. For example, either `G{\”o}del’ or `G{\”{o}}del’, but neither `{G{\”{o}}del}’ nor `{G\”{o}del}’.
  3. STANDARD ENTRY TYPES:
    @article
    An article from a journal or magazine. Required fields: author, title, journal, year. Optional fields: volume, number, pages, month, note.
    @book
    A book with an explicit publisher. Required fields: author or editor, title, publisher, year. Optional fields: volume or number, series, address, edition, month, note.
    @booklet
    A work that is printed and bound, but without a named publisher or sponsoring institution. Required field: title. Optional fields: author, howpublished, address, month, year, note.
    @conference
    The same as inproceedings
    @inbook
    A part of a book, which may be a chapter (or section or whatever) and/or a range of pages. Required fields: author or editor, title, chapter and/or pages, publisher, year. Optional fields: volume or number, series, type, address, edition, month, note.
    @incollection
    A part of a book having its own title. Required fields: author, title, booktitle, publisher, year. Optional fields: editor, volume or number, series, type, chapter, pages, address, edition, month, note.
    @inproceedings
    An article in a conference proceedings. Required fields: author, title, booktitle, year. Optional fields: editor, volume or number, series, pages, address, month, organization, publisher, note.
    @manual
    Technical documentation. Required field: title. Optional fields: author, organization, address, edition, month, year, note.
    @mastersthesis
    A Master’s thesis. Required fields: author, title, school, year. Optional fields: type, address, month, note.
    @misc
    Use this type when nothing else fits. Required fields: none. Optional fields: author, title, howpublished, month, year, note.
    @phdthesis
    A PhD thesis. Required fields: author, title, school, year. Optional fields: type, address, month, note.
    @proceedings
    The proceedings of a conference. Required fields: title, year. Optional fields: editor, volume or number, series, address, month, organization, publisher, note.
    @techreport
    A report published by a school or other institution, usually numbered within a series. Required fields: author, title, institution, year. Optional fields: type, number, address, month, note.
    @unpublished
    A document having an author and title, but not formally published. Required fields: author, title, note. Optional fields: month, year.
  4. STANDARD FIELDS
  5. address
    Usually the address of the publisher or other type of institution. For major publishing houses, van Leunen recommends omitting the information entirely. For small publishers, on the other hand, you can help the reader by giving the complete address.
    annote
    An annotation. It is not used by the standard bibliography styles, but may be used by others that produce an annotated bibliography.
    author
    The name(s) of the author(s), in the format described in the LaTeX book.
    booktitle
    Title of a book, part of which is being cited. See the LaTeX book for how to type titles. For book entries, use the title field instead.
    chapter
    A chapter (or section or whatever) number.
    crossref
    The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.
    edition
    The edition of a book—for example, “Second”. This should be an ordinal, and should have the first letter capitalized, as shown here; the standard styles convert to lower case when necessary.
    editor
    Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the book or collection in which the reference appears.
    howpublished
    How something strange has been published. The first word should be capitalized.
    institution
    The sponsoring institution of a technical report.
    journal
    A journal name. Abbreviations are provided for many journals.
    key
    Used for alphabetizing, cross referencing, and creating a label when the “author” information is missing. This field should not be confused with the key that appears in the cite command and at the beginning of the database entry.
    month
    The month in which the work was published or, for an unpublished work, in which it was written. You should use the standard three-letter abbreviation, as described in Appendix B.1.3 of the LaTeX book.
    note
    Any additional information that can help the reader. The first word should be capitalized.
    number
    The number of a journal, magazine, technical report, or of a work in a series. An issue of a journal or magazine is usually identified by its volume and number; the organization that issues a technical report usually gives it a number; and sometimes books are given numbers in a named series.
    organization
    The organization that sponsors a conference or that publishes a manual.
    pages
    One or more page numbers or range of numbers, such as 42--111 or 7,41,73--97 or 43+ (the `+‘ in this last example indicates pages following that don’t form a simple range). To make it easier to maintain Scribe-compatible databases, the standard styles convert a single dash (as in 7-33) to the double dash used in TeX to denote number ranges (as in 7--33).
    publisher
    The publisher’s name.
    school
    The name of the school where a thesis was written.
    series
    The name of a series or set of books. When citing an entire book, the the title field gives its title and an optional series field gives the name of a series or multi-volume set in which the book is published.
    title
    The work’s title, typed as explained in the LaTeX book.
    type
    The type of a technical report—for example, “Research Note”.
    volume
    The volume of a journal or multi-volume book.
    year
    The year of publication or, for an unpublished work, the year it was written. Generally it should consist of four numerals, such as 1984

BibTeX References

  1. Designing BibTeX Styles by Oren Patashnik
  2. BibTeX online help

December 22, 2007

My score — Onslaught 2.1

Filed under: game — wrjih @ 9:46 am

My highest score of Onslaught 2.1.

Onslaught 2008.01.20

Towers are constructed in the following sequence:

  1. 2 chains of green towers.
  2. red+green combo on the center
  3. put 2 blue towers beside the red+green
  4. 2blue+green+2red on the upper right
  5. green+2red+blue on the upper left
  6. 2blue+green+2red on the bottom left
  7. buy CombOnly
  8. buy fusion, railgun, sniper
  9. upgrade fusion, railgun, sniper

September 24, 2007

Notebook Survey < 1.7kg

Filed under: Computer, Notebooks — wrjih @ 10:16 pm

去年年底時說想要換筆電, 到現在還是在用IBM X31。希望這次是來真的…. 這次survey的notebook, 主要考量也是重量及穩定性; 重量希望不要比X31的1.65kg重; 穩定性主要參考網路上的評價, 其次考量的因素是CPU速率。目前考慮以下幾款:

配備\機型

Fujitsu LifeBook S6410

Toshiba Portege R500 PPR50T

S6410B

S6410C

CTOC

03302W

03R02W

CPU

Core 2 Duo T7300(2.0GHz)

Core2 Duo T7500(2.2GHz)

Core2 Duo T7100(1.8GHz)

Core 2 Duo Ultra Low Voltage U7600 (1.2 GHz)

重量

1.66kg

1.9kg

1kg

1.09kg

RAM

1 GB DDR2 667MHz (Max 4GB, Dual Channel)

512MB DDR2 SDRAM on Board (Max 1.5GB/1 slot)

LCD

13.3 WXGA

12.1 WXGA

Battery life

3hrs (6-cell Li-ion 5200mAh)

11 Hrs

HDD

120GB

160GB

120GB

120GB

160GB

SATA-150 5400rpm

(5400rpm)

WebCam

1.3 Mega Pixels CMOS camera

No

燒錄器

選購配件

選購外接式

7mm DVD SuperMulti

價格

$68,800

$73,000

$58,102

$73,800

$81,500

保固

1年國際零組件保固及人工送修服務

23年國內零組件保固

三年國際有限保固、一年電池國際有限保固

 

 

配備\機型

Sony VAIO

Panasonic Let’s note

VGN-G118TN

VGN-TZ17TN

CF-W5AWDBJR

CF-T5AW1BJR

CPU

Core Solo U1500 (1.33GHz)

Core2 Duo U7600 (1.20 GHz)

Core2 Duo U7500 (1.06 GHz)

重量

1.15kg

1.2kg

1.21kg

標準電池: 1.27kg

輕量電池: 1.05kg

RAM

1GB DDR2 SDRAM (Max 1.5GB)

1 GB (Max 2GB)

1GB DDR2 SDRAM (Max 1.5GB/1 slot)

LCD

12.1 XGA

11.1 XGA

12.1 XGA

Battery life

VGP-BPL7: 11.5Hrs

VGP-BPL11: 11Hrs

VGP-BPX11: 16.5Hrs

10 Hrs

標準電池: 13Hrs

輕量電池: 5.5Hrs

HDD

100GB

80GB

Ultra ATA/100, 4200rpm

Ultra ATA/100

WebCam

No

640×480 CMOS camera

No

燒錄器

Yes

yes

no

價格

$69,800

 

 

保固

一般保固18個月

上網註冊延長6個月

水貨

 

June 26, 2007

Chinese Fonts for LaTeX – MiKTeX 2.9

Filed under: Word Processor — wrjih @ 5:43 pm

update date: 2012.05.27 Link of the Kai Fonts

安裝中文楷書字型

reference site:
http://www.cmlab.csie.ntu.edu.tw/~r92045/Collection_of_LaTeX_Solutions.htm

Chinese Fonts download site:
ftp://cle.linux.org.tw/tex/cjk/fonts/nkait1/nkait1-1.4.2.tar.gz

使用環境:MicroSoft Windows + MiKTeX 2.9 (or 2.4, 2.5, 2.6, 2.7)
STEP:

  1. unzip 字型檔後會有以下幾個檔案及目錄:

    <dir> akai-afm
    <dir> akai-enc
    <dir> akai-pfb
    <dir> akai-tfm
    akai-enc.map
    akai.map
    arphicpl.txt
    c00akai.fd
    cid-x.map

  2. 將以各「資料夾」移至相對應的目錄 (ex: “\Program Files\MikTeX”), 並將資料夾名稱更改成字型名稱:
    • akai-afm 移至 fonts\afm\後, 將資料夾改名為akai
    • akai-tfm 移至 fonts\tfm\後, 將資料夾改名為akai
    • akai-pfb 移至 fonts\type1\後, 將資料夾改名為akai
    • c00akai.fd 移至 tex\latex\CJK\Bg5\ (若找不到CJK目錄, 請先由MikTeX的Package Manager 安裝 CJK 相關套件)
    • 建立目錄dvips\akai\後, 將akai*.map (2個檔案) 移至 dvips\akai\
    • 建立目錄dvipdfm\akai\後, 將 cid-x.map 移至 dvipdfm\akai\, 並將檔名改為akai.map
    • 更新 web2c\updmap.cfg,在任一行後面加入 Map akai.map 即可。若沒有此檔案請自行建立 。
  3. 更新 file name database:在命令提示字元執行 initexmf -u
  4. 建立 font map 檔案:在命令提示字元執行 initexmf ⁻⁻mkmaps
  5. 測試碼:

    \documentclass[a4paper]{article}
    \usepackage{CJK}
    \begin{document}

    Test!

    \begin{CJK}{Bg5}{akai} % 文鼎楷書

    Test!

    \begin{Bg5text}

    這是測試檔!
    假設測試檔名是test.tex, 在執行bg5latex之前, 請先執行 bg5conv < test.tex > test.cjk

    /end(Bg5text) %→ 注意括號及’/’
    \end{CJK}
    \end{document}

***注意事項***

  1. 安裝好CJK及字型後, 請記得以bg5latex取代原有的latex, 否則會遇到”許功蓋”問題. 可以在WinEdt加入一個新的bg5latex, 這樣會比較方便。
  2. updmap.cfg在執行MikTeX更新時, 有可能會被更新, 此時原來加入Map akai.map的部份就會被overwrite. 判斷是否發生這個狀況可由:
    1. YAP出現“Not all fonts can be loaded”的error. 以及
    2. dvipdfm時會出現“Can’t locate a Type 1, TTF, PK, or virtual font file”的error

    若兩種情況都發生, 就要去查一下updmap.cfg是否被overwrite了。

latest update date: Dec. 21, 2010

June 5, 2007

Theme of Google Personalized Homepage — Bus Stop

Filed under: Browser, Computer — wrjih @ 11:02 pm

根據Google的說法, Bus Stop這個theme是根據天氣而有變化的. 目前只知道有晴天、陰天、雨天、雷雨,改天出現其他不同的變化再作記錄。

大晴天:
Sunny

小晴天(Mostly Clear):
Mostly Clear

少雲(Partly Cloudy):
Partly Coudy

陰天(Cloudy):
Cloudy

雨天(Rain):
Raining

大雷雨(Thunderstorm):
Thunderstorm

Older Posts »

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.