Friday, December 11, 2009

Clean Up Ubuntu Grub Boot Menu After Upgrades

1. open the menu.lst (gksu gedit /boot/grub/menu.lst),
2. find “#howmany=all” and change it to “#howmany=1″.
3. run “sudo update-grub” to update changes.

Saturday, November 21, 2009

"Too many failed attempts" printing error

http://brainextender.blogspot.com/2009/01/ubuntu-intrepid-too-many-failed.html

1. Stop the cups daemon to prevent cups from reseting your modifications
sudo /etc/init.d/cups stop

2. Edit your cups configuration with the editor of your choice and comment out these lines
sudo gedit /etc/cups/printers.conf

#AuthInfoRequired username,password

EDIT: (delete the above line)

To prevent cups to place thoose lines again in your config file you may want to make it immutable with
sudo chattr +i /etc/cups/printers.conf

3. Start cups again
sudo /etc/init.d/cups start

4. Try to print with gedit - it should work now.

Wednesday, November 18, 2009

Ugly Korean fonts problem in ubuntu 9.10

http://ubuntuforums.org/showthread.php?t=1317694

Carlos08 suggests: Remove ttf-wqy-zenhei thru Synaptic. It works!

Open Synaptic via System > Administration > Synaptic Package Manager [Enter your password for administrative privileges] Search for ttf-wqy-* in the search box.

You will see that ttf-wqy-zenhei is installed. Click on the green check box next to the package, and select Mark for Complete Removal. Click Apply

Monday, November 9, 2009

Friday, November 6, 2009

Wednesday, September 16, 2009

Tuesday, September 1, 2009

nautilus terminal plugin

(1) $ sudo aptitude install nautilus-open-terminal
(2) restart
(3) right click in nautilus, you will see the menu.

Sunday, August 30, 2009

Firm size

Big is back: http://www.economist.com/opinion/displaystory.cfm?story_id=14303582

Hollister. 2004. "Does Firm Size Matter Anymore? The New Economy and Firm Size Wage Effects." American Sociological Review 69(5): 659-76.

Saturday, August 22, 2009

Installing Kdvi in ubuntu 9.04

https://bugs.launchpad.net/ubuntu/jaunty/+source/kdvi/+bug/355781

1. edit (in sudo of course) /etc/apt/sources.list
2. add "deb http://archive.ubuntu.com/ubuntu/ intrepid universe multiverse" at the last line
3. run: sudo apt-get update
4. run: sudo apt-get install kdvi

Friday, July 17, 2009

Kile & ubuntu 9.04

Kile 2.1 becomes extremely slow in ubuntu 9.04.

A provisional solution for this problem is starting Kile with the command:

$ kile --graphicssystem raster

Thursday, June 11, 2009

Saturday, May 2, 2009

TeX: Sociology Bib Style

(1) Download asr.bst and ajs.bst into /usr/share/texmf-texlive/bibtex/bst/Sociology

(2) To update texmf information, run:
$ sudo texhash

* Matching bib styles by journal
- ASA bibstyle: ajs or asr
(ASR, AJS, SMR)
- APA bibstyle: apacite
(W&O, SSR)

Kile spell check

Install "ispell" using Synaptic Package Manager.

TeX: Kile 2.0 +KDVI inverse search

1) In Kile, choose Settings-> Configure Kile -> Build -> Latex -> General
In Options, change it to :
--src-specials -interaction=nonstopmode '%source'

2) In Kile, choose Settings-> Configure Kile -> Build -> ViewDVI
In Advanced, choose Run Embedded in Kile for Type. In General it should display "kviewerpart" for Library, "KViewPart" for Library Class, "dvi" for Options

3) In Kdvi, choose Settings-> Configure Kile -> DVI Specials
Choose Kile for Editor, for Shell Command:
kile %f --line %l

Thursday, April 23, 2009

Open stata-se in Emacs

The easiest way to open "stata-se" instead of "stata" in Emacs+ESS is making a symbolic link:

$ cd /usr/local/bin
$ sudo ln -s /usr/local/stata10/stata-se stata

"Meta+x stata" should open stata-se.

Tuesday, April 14, 2009

rename in linux

Rename all .TXT extension to .txt.

$ rename 's/\.TXT$/\.txt/' *.TXT

Rename all uppercase file names to lowercase file names

$ rename 'y/A-Z/a-z/' *

Wednesday, April 1, 2009

Wine: Beautiful Korean fonts

Non-unicode Korean fonts under the linux wine environment may look ugly.

To fix it, copy a font you like under "/usr/share/fonts/truetype/unfonts" to "/home/username/.wine/drive_c/windows/Fonts". That will change the ugly default font to a beautiful un-type font. I personally prefer UnDotum.

Sunday, March 29, 2009

Friday, March 27, 2009

Wednesday, March 25, 2009

Monday, March 23, 2009

Virtualbox: MS-Word

If MS-Word under Virtualbox becomes too slow,

Do Method 2 of http://support.microsoft.com/kb/280821 occasionally. Speed improvement for XP guest in my ubuntu machine was noticeable.

Sunday, March 22, 2009

TeX: Gnumeric to Tabular

Gnumeric has a built-in function.

(1) select area
(2) [File] --> [save as] --> Select [File type]: Latex2e(*.tex) table fragment

TeX: Open Office Calc to Tabular

1. Download "Calc2LaTeX" macro:

http://extensions.services.openoffice.org/project/Calc2LaTeX

2. How To:

http://www.derekhildreth.com/blog/how-to-install-and-use-calc2latex-tutorial/
Skip the installing part. It will be already there for OOs 2.0 & 3.0.

TeX: MS-Excel to Tabular

1. Download the macro file:

http://faq.ktug.or.kr/wiki/uploads/excel2tabular.zip (developed by Joo-Myung Kim)

2. Unzip "excel2tabular.zip"

into "C:\Documents and Settings\YourUserName\Application Data\Microsoft\AddIns"

3. Install "maketable.xla" in Excel

In Excel, [tools] --> [add-ins] --> [browse]
It will produce "LaTeX" menu bar.

4. Enjoy!

(1) Select area
(2) From Excel menu bar, [latex] --> [convert]

For a better explanation in Korean, go to http://faq.ktug.or.kr/faq/Excel2Tabular

Understanding the current economic crisis in 10 mins


The Crisis of Credit Visualized from Jonathan Jarvis.

http://www.youtube.com/watch?v=Q0zEXdDO5JU

Saturday, March 21, 2009

Reading Large datasets in R: filehash

Theoretically, the package 'filehash' makes R handle a large dataset by allowing a hard-disk space instead of a ram area for a dataset loading. I've tested this package with a 1G Stata-format dataset. It didn't work well. Anyway, here is howto:

(1) Install 'filehash'

> install.packages('filehash')
> library(filehash)

(2) Set an environment for the large dataset you'd like to use

> dumpDF(read.csv("largedata.csv"), dbName="dbname")
> envname <- db2env(db="dbname")

(3) Analyze with the environment

> with(envname, lm(y~x))

* envname & dbname can be any name you like.

filehash manual; howto by Yu-Sung Su

Wine: Korean non-unicode fonts 와인 한글 폰트

와인에서 설치 안내문이 한글로 작성된 프로그램 파일 인스톨할 때 한글 제대로 표시하기.

http://ubuntuforums.org/archive/index.php/t-383628.htmlLink

Beautiful Emacs: Deleting Weird-Characters

To remove weird UTF characters such as \335\277\210 in emacs windows, add the following sentences in ".emacs".

(setq locale-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)

Beautiful Emacs: Korean 이맥스 한글 폰트

After doing "beautiful emacs", add two lines in ".emacs":

(set-fontset-font "fontset-default" '(#x1100 . #xffdc) '("UnBatang" . "unicode-bmp"))
(set-fontset-font "fontset-default" '(#xe0bc . #xf66e) '("UnBatang" . "unicode-bmp"))

"UnDotum" is a good alternative font.

Beautiful Emacs

Emacs default font change:

http://ubuntuforums.org/showthread.php?t=803119