2010-07-22

convert Docbook to PDF

I got great support from XMLmind,quick and XMLmind are more easy than Oxygen.Also it means I did not read FAQ well,so RYFM!,shame...

Here is solution

This add 2010.7.24

How to config none Alphabetical font,like CJK chars. I used to XMLmind and Oxygen,but both could not done it at default. When converting,XMLmind depend on XEP software,Oxygen probably independent. There is no font configuration on XMLmind,then I asked XEP online chat support and not fix it yet. At Oxygen when occur error,it try to send report and I agree it. They answer very quick. It would help,but very hard configure.

The Oxygen config for using and to show Japanese font.

please change path and some vars,when not fit for you.

GUI:Never show Japanese font,just show white blocks.

There is config at Options → Preferences → Fonts, Editor

converted PDF:Never show Japanese font,just show #.

1.Make font metrics xml file from ttf(TrueTypeFont).

For Windows: ttfConvert.bat

This bat should run in Oxygen folder that application installed.
*I want to use OTF font,but no way to know metrics now also want to know how.
**ipamp.ttf,This is Japanese char font from Information-technology Promotion Agency, Japan.
very clear font and nice license.Here is font:ipa

2.Make fopConfiguration.xml.


3.Set FOP configuration file in Oxygen

Go to menu Options → Preferences → XML → XSLT / FO / XQuery → FO Processors
Click the browse button near Configuration file for the built-in FOP text field and locate the fopConfiguration.xml file.
Click on the OK button to accept the changes.

4.Add new font to FO output for DocBook Stylesheets

Click on the Parameters button in the transformation scenario edit dialog and enter the following parameters indicating the font for the body text and for the titles.
Name Value
body.font.family ipamp
title.font.family ipamp

2010-07-14

cgit - on Debian Apache2

cgit - a very fast web frontend for git repositories

installation to Apache2 on debian lenny

  • Setup git server by gitosys. ref.-link1(lang_JP),link2(lang_EN)
  • add permission by chomod 755 to git repo for cgit exec .git.(Maybe chmod 755 -R /home/git/repositories/)
  • build & install cgit.(I had error curl for getting git and extract tar.bz2 at make get-git.)
  • config file:/etc/cgitrc
  • virtual-root=/cgi-bin/

    # Enable caching of up to 1000 output entriess
    cache-size=1000

    # Show extra links for each repository on the index page
    enable-index-links=1

    # Show number of affected files per commit on the log pages
    enable-log-filecount=1

    # Show number of added/removed lines per commit on the log pages
    enable-log-linecount=1

    # Enable statistics per week, month and quarter
    max-stats=quarter

    # Set the title and heading of the repository index page
    root-title=tknv git repositories

    # Set a subheading for the repository index page
    root-desc=tracking the tknv development

    # Include some more info about foobar.com on the index page
    root-readme=/var/www/htdocs/about.html

    # Allow download of tar.gz, tar.bz2 and zip-files
    snapshots=tar.gz tar.bz2 zip

    ##
    ## List of common mimetypes
    ##

    mimetype.gif=image/gif
    mimetype.html=text/html
    mimetype.jpg=image/jpeg
    mimetype.jpeg=image/jpeg
    mimetype.pdf=application/pdf
    mimetype.png=image/png
    mimetype.svg=image/svg+xml


    ##
    ## List of repositories.
    ## PS: Any repositories listed when section is unset will not be
    ## displayed under a section heading
    ## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos')
    ## and included like this:
    ## include=/etc/cgitrepos
    ##


    repo.url=SuperEngine
    repo.path=/home/git/repositories/SuperEngine.git
    repo.desc=the SUperEngine repository
    repo.owner=foo@bar.com

    repo.url=OSGi-module
    repo.path=/home/git/repositories/OSGi-module.git
    repo.desc=the OSGi-module repository
    repo.owner=foo@bar.com
  • config file:/etc/apache2/httpd.conf

  • ServerName halryporya.co.foo
    DocumentRoot /var/www/htdocs/cgit/
    ScriptAlias /cgi-bin/ "/var/www/htdocs/cgit/cgit.cgi/"

    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all

    Alias /cgit.png /var/www/htdocs/cgit/cgit.png
    Alias /cgit.css /var/www/htdocs/cgit/cgit.css
    Alias / /var/www/htdocs/cgit/cgit.cgi/

  • check by w3m http://localhost/cgi-bin/

http://halryporya.co.foo/cgi-bin/

by browser

watching CGIT site...

BCM4321 on Latitude D430

At kernel 3 find wireless hardware lspci | grep -i wireless  check using current kernel module with PCI bus address lspci -vv -s 0c:...