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.
Friday, December 11, 2009
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.
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!
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
falling fertility is a boon
Economist, Oct 29, 2009
(1) Falling Fertility
(2) Fertility and Living Standard
(3) A list of relevant papers.
(1) Falling Fertility
(2) Fertility and Living Standard
(3) A list of relevant papers.
Friday, November 6, 2009
Wednesday, September 16, 2009
Economic Inequality: WSJ vs. Judson
(1) Debate
Income Gap Shrinks in Slump at the Expense of the Wealthy (WSJ: Sep 10 2009)
vs.
Economic Inequality: The WSJ is Just Wrong by Bruce Judson
(2) What actually happen: New Income Inequality Data.
Income Gap Shrinks in Slump at the Expense of the Wealthy (WSJ: Sep 10 2009)
vs.
Economic Inequality: The WSJ is Just Wrong by Bruce Judson
(2) What actually happen: New Income Inequality Data.
Monday, September 7, 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.
(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.
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
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
A provisional solution for this problem is starting Kile with the command:
$ kile --graphicssystem raster
Thursday, June 11, 2009
Thursday, June 4, 2009
Saturday, May 2, 2009
TeX: Sociology Bib Style
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
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.
$ 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/' *
$ 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.
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
Ubuntu Remote Access 2
Sharing Ubuntu Linux Folders with Remote Linux and UNIX Systems
http://www.techotopia.com/index.php/Sharing_Ubuntu_Linux_Folders_with_Remote_Linux_and_UNIX_Systems
http://www.techotopia.com/index.php/Sharing_Ubuntu_Linux_Folders_with_Remote_Linux_and_UNIX_Systems
Ubuntu Remote Access 1
Share your Ubuntu Desktop Using Remote Desktop
http://www.ubuntugeek.com/share-your-ubuntu-desktop-using-remote-desktop.html
http://www.ubuntugeek.com/share-your-ubuntu-desktop-using-remote-desktop.html
Friday, March 27, 2009
The Best and Worst Jobs in the US
Sociologists are ranked the 8th best job:
http://online.wsj.com/article/SB123119236117055127.html
http://online.wsj.com/article/SB123119236117055127.html
Wednesday, March 25, 2009
Tuesday, March 24, 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.
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
(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.
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
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
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
(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.html
http://ubuntuforums.org/archive/index.php/t-383628.html
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":
"UnDotum" is a good alternative font.
(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.
Subscribe to:
Posts (Atom)