ここによるとターミナルからalsamixerを起動して、<-、->キーでMasterFとForntを選んで上下キーで一番上にすると音がでる。
でた!
2010年4月29日木曜日
2010年4月25日日曜日
django-cms exampleへの道 2
2010年4月23日金曜日
Sphinxでpdf
インストールしたsphinxでは直接PDFが生成出来ないのでいぢる。
参考はここ。ありがとうございます。
Makefileに
pdf:
$(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) build/pdf
@echo
@echo "Build finished. The PDF files are in ${BUILDDIR}/pdf."
を追加
conf.pyの extensions に 'rst2pdf.pdfbuilder' を追加
参考はここ。ありがとうございます。
Makefileに
pdf:
$(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) build/pdf
@echo
@echo "Build finished. The PDF files are in ${BUILDDIR}/pdf."
を追加
conf.pyの extensions に 'rst2pdf.pdfbuilder' を追加
extensions = ['sphinx.ext.autodoc', 'rst2pdf.pdfbuilder']
また、conf.pyに下記を追加 pdf_stylesheets = ['sphinx','kerning','a4','ja']
pdf_documents = [ ('index', u'MyProject', u'My Project', u'Author Name'),
]('index', u'MyProject', u'My Project', u'Author Name'),はその他の設定を丸コピー
これで sphinx pdf で直接pdfが生成できる。
すばらしい。
2010年4月21日水曜日
Sphinxでdocs
sphinxのinstallは
pip install sphinx
でOK。ターゲットのdocsディレクトリで
make html
あるいは
make latex
cd ./_build/latex
make all-pdf
でドキュメントが出来る。すばらしい。
pip install sphinx
でOK。ターゲットのdocsディレクトリで
make html
あるいは
make latex
cd ./_build/latex
make all-pdf
でドキュメントが出来る。すばらしい。
2010年4月20日火曜日
cupsでNECのPR-L5750Cから印刷
Ubuntu forumにも投げておいたけれど
Fuji Xerox DocuPrint C2110ではないのですが、OEMのNEC PR-L5750Cでの印刷についてまねてやってみました。
http://packages.ubuntu.com/ja/intrepid- … 2/download
2)ドライバを下記から取得。
http://www.nec.co.jp/products/laser/sup … 5750c.html
3) マニュアル
2)と同じところからダウンロード。
4) /etc/apparmor.d/usr.sbin.cupsd の
「 # third-party printer drivers; no known structure here」
のあとあたりに、
/usr/lib/cups/filter/NEC_MultiWriter_5750C/NCM_PF Ux,
を追加その後、
sudo /etc/init.d/apparmor reloadで apparmor
で再起動。
5)プリンターは、システム->システム管理->印刷で追加
で印刷出来ました。ありがとうございます。
Fuji Xerox DocuPrint C2110ではないのですが、OEMのNEC PR-L5750Cでの印刷についてまねてやってみました。
http://packages.ubuntu.com/ja/intrepid- … 2/download
2)ドライバを下記から取得。
http://www.nec.co.jp/products/laser/sup … 5750c.html
3) マニュアル
2)と同じところからダウンロード。
4) /etc/apparmor.d/usr.sbin.cupsd の
「 # third-party printer drivers; no known structure here」
のあとあたりに、
/usr/lib/cups/filter/NEC_MultiWriter_5750C/NCM_PF Ux,
を追加その後、
sudo /etc/init.d/apparmor reloadで apparmor
で再起動。
5)プリンターは、システム->システム管理->印刷で追加
で印刷出来ました。ありがとうございます。
2010年4月15日木曜日
2010年4月12日月曜日
upTexでcheck_for_png error
upTexでcheck_for_png errorがでたら、sudo apt-get install libpng12-dev
ところで upTexはtexliveに対応しないのかな?
tetex3の開発も止まっているみたいだし、なにしろ、getlineとptetex定義のgetlineの衝突で最近の Ubuntu9.10では手を入れなければならないし。
田中さん忙しいだろうな。
ところで upTexはtexliveに対応しないのかな?
tetex3の開発も止まっているみたいだし、なにしろ、getlineとptetex定義のgetlineの衝突で最近の Ubuntu9.10では手を入れなければならないし。
田中さん忙しいだろうな。
2010年3月26日金曜日
2010年3月25日木曜日
2010年3月17日水曜日
boost unitsがおもしろい2
でradianとdegreeの変換
boost::units::quantity theta=3.14159*boost::units::si::radians;
boost::units::quantity deg=180.0*boost::units::degree::degrees;
std::cout << "radian = " << theta << std::endl;
std::cout << "degree = " << deg << std::endl;
std::cout << std::endl;
std::cout << "conversion " << std::endl;
std::cout << "3.14159 radian = " << boost::units::quantity(theta)<< std::endl;
std::cout << "180 degree = " << boost::units::quantity(deg) << std::endl;
出力は
radian = 3.14159 rad
degree = 180 deg
conversion
3.14159 radian = 180 deg
180 degree = 3.14159 rad
しかしコンパイルに時間かかるな。
boost::units::quantity
boost::units::quantity
std::cout << "radian = " << theta << std::endl;
std::cout << "degree = " << deg << std::endl;
std::cout << std::endl;
std::cout << "conversion " << std::endl;
std::cout << "3.14159 radian = " << boost::units::quantity
std::cout << "180 degree = " << boost::units::quantity
出力は
radian = 3.14159 rad
degree = 180 deg
conversion
3.14159 radian = 180 deg
180 degree = 3.14159 rad
しかしコンパイルに時間かかるな。
boost unitsがおもしろい
登録:
投稿 (Atom)