[gentoo-ppc-user] new world is a type of hardware or software?

2008-09-30 Thread Zhang Weiwu
Before I thought Mac OS X is new world, being a software thing. Mac OS
9 is old world.

Now I am a bit confused. If I wish to run a 3-OS system with Mac OS 9 +
Mac OS X + Gentoo Linux, should I partition my harddisk in old world?

I suspect I should do the following (currently I am already using Gentoo
Linux on my iBook/G3)

   1. backup my Linux
   2. Install Mac OS 9
   3. Install Mac OS X. It should help me to configure it as dual boot.
  while leave some empty space;
   4. restore the Linux backup and run yaboot.

Is this correct?

Best regards
Zhang Weiwu



[gentoo-user] simple web server with content negotiation feature

2008-01-26 Thread Zhang Weiwu
Hello all.

I am looking for a web server for my static website in-developing 
projects. I just want the basic features and easy-to-configure. However 
what I mean basic looks a bit different than other people's. I wish
it to be able to do content negotiation (a.k.a. a browser asks for
my_mom and gets my_mom.html.zh or my_mom.html.en depending on
preferred language of the browser). I also wish it can handle HTTP 1.1.

I could not find one. eix -S negotiation didn't get me any result.  
(on the other hand aptitude search ~dnegotiation did suggested me 
fnord can do content negotiation, although it's only partially 
implemented.)

My question is:
1. Can you please suggest some web server that can do content 
   negotiation, besides apache?
2. Can you please tell me how do you usually find out if some
of the packages in portage can do content negotiation?

-- 
Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 135 9950 2413
http://www.realss.com
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] kompozer and arphicfonts

2008-01-26 Thread Zhang Weiwu
Hello.

I was a Gentoo user some 2.5 years ago and was very fond of it because 
it updates frequently and includes newer versions of applications into 
portage faster than other distributions. Later I switched away to
Ubuntu for working environment reasons (colleagues are using Ubuntu and
I got support / communication easier).

Now I just switch back to Gentoo and discovered, well, I am not sure
but looks a bit lag behind on updating portage. I only noticed two
examples:

1. Development for NVU wysiwyg editor has stalled for some 
   years, the other project continued its development called 
   kompozer. Ubuntu has it there but I cannot find it in 
   Gentoo.
2. The other package arphicfonts are not developed for years 
   neither, a continue effort is the CJK Unifont project. In 
   Gentoo still there are only old packages. The new project 
   produce Chinese font that is used as default Chinese font in 
   Ubuntu.

Both new projects started after I switched away from Gentoo some 
2 years ago, so it seems Gentoo didn't catch up. Maybe I am completely 
wrong: I am sensative to these packages just because I am a Chinese
user and these two packages happen to improved for Chinese users a lot; 
meanwhile there might be a lot other packages newly included in Gentoo 
but overlooked by other distributions. But just how do you feel 
generally?  Is the portage keeping following up slower then before?

By the way I can compile these packages myself and I can contribut 
ebuilds when I got some free time (e.g. in the coming holiday). I am 
just a bit curious on how everything is generally going on in Portage.

Zhang Weiwu

-- Real Softservice
Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 135 9950 2413
http://www.realss.com
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] simple web server with content negotiation feature

2008-01-27 Thread Zhang Weiwu
On Sat, 26 Jan 2008 16:20:10 +0100
Mick [EMAIL PROTECTED] wrote:

 On Saturday 26 January 2008, Zhang Weiwu wrote:
  Hello all.
 
  I am looking for a web server for my static website in-developing
  projects. I just want the basic features and easy-to-configure.
  However what I mean basic looks a bit different than other
  people's. I wish it to be able to do content negotiation (a.k.a. a
  browser asks for my_mom and gets my_mom.html.zh or my_mom.html.en
  depending on preferred language of the browser). I also wish it can
  handle HTTP 1.1.
 
  I could not find one. eix -S negotiation didn't get me any result.
  (on the other hand aptitude search ~dnegotiation did suggested me
  fnord can do content negotiation, although it's only partially
  implemented.)
 
  My question is:
  1. Can you please suggest some web server that can do
  content negotiation, besides apache?
 
 negotiation is not a recognised USE flag:
 
 # euse -i negotiation
 global use flags (searching: negotiation)
 
 no matching entries found
 
 local use flags (searching: negotiation)
 
 no matching entries found
 
 therefore I am not sure that any packages in portage use it.

Dear Mick

I looked up eix manual and found '-S' asks eix to search within
description of the software. I noticed the description in portage is
usually much shorter (1 line) than in Ubuntu, which means if the
software has this feature, it's probably no space to write down all
features list in description. Perhaps there is a 'long description'
which I didn't discover yet. By 'eix -S negotiation I am trying to
search all package description containing the word 'negotiation'

 uses the module mod_negotiation which is compiled in by default).
 Have you looked at www-servers/lighttpd, or www-servers/thttpd?

Thanks for the suggestions. I just had a look on their websites and
didn't see they support content negotiation. I think I will just use
apache which is big but I knew it already.

 
  2. Can you please tell me how do you usually find out if
  some of the packages in portage can do content negotiation?
 
 Sorry, can't help with this.  Perhaps others more knowledgeable in
 the features of different http servers can advise here.  I would
 think that it is a matter of searching in their respective project
 websites and then reading their documentation for each package
 under /usr/portage/www-servers/. Alternative, emerge, try it out,
 unmerge and so on.

Thanks for your time on explaining this in detail:)

 BTW, I am not sure if some PHP scripting would offer this facility to
 simpler http servers, which do not support it natively like apache.

You are right PHP can do it. I wished to avoid the overhead of having
apache or php, but now I think I just take it.

-- 
Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 135 9950 2413
http://www.realss.com
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] kompozer and arphicfonts

2008-01-27 Thread Zhang Weiwu
On Sat, 26 Jan 2008 19:30:23 +0100
Zhang Le [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Zhang Weiwu wrote:
 |
 | Now I just switch back to Gentoo and discovered, well, I am not sure
 | but looks a bit lag behind on updating portage. I only noticed two
 | examples:
 | 2. The other package arphicfonts are not developed for years
 |neither, a continue effort is the CJK Unifont project. In
 |Gentoo still there are only old packages. The new project
 |produce Chinese font that is used as default Chinese font in 
 |Ubuntu.
 
 Actually more people are using Simsun or Yahei from Windoze for
 pragmatic reasons. Also you can try wqy-bitmapfont.

Yes I knew Simsun, Yahei. My suggestion is if there is an opensource 
Chinese font with reasonably wide coverage, it should be there for those 
who want to have it.

ghostscript-gpl when added cjk USE flag, would depend on the years-old 
arpphic fonts, the best behavior is either tell users to use 
Yahei/Simsun or use the latest CJK Unifont, not providing the latest 
enhanced opensource font is pratcially encouraging users to copy 
propiertry fonts. I think CJK Unifont project has done a lot of hinting 
work to make it look nice on screen and now it's much more usable on 
desktop then old arpphic font, it's making sense to avoid user install 
an old font and say oh, opensource fonts looks bad and then go copy 
the Windows fonts, when they actually got the outdated fonts.

wqy-bitmap is in an other category. It's usable on the screen but not on 
word processing. I am using it right now as my default screen font:) 
Thanks for having it in portage.
 
 | By the way I can compile these packages myself and I can contribute
 | ebuilds when I got some free time (e.g. in the coming holiday). I am
 | just a bit curious on how everything is generally going on in
 | Portage.
 
 AFAIK, Gentoo CJK team is short-staffed.
 It's better if you can join gentoo and become a developer, ;)
 
 If you want to know how everything is going on in portage, you can
 check either: http://packages.gentoo.org
 or:
 http://cia.vc/stats/project/gentoo
 
 Ad time, ;)
 If you have some Chinese related questions, you can easily get an
 answer here: http://groups.google.com/group/gentoo-china/
 http://www.linuxsir.org/bbs/forum59.html
 Also #gentoo-cn on freenode

Thanks for the information. I'll see what I can do in the coming spring 
festival and see if I can help.

Best regards
Zhang Weiwu
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] equery shows lyx didn't depend on qt, and emerge shows the opposite

2008-03-13 Thread Zhang Weiwu
Hello.

I wishes to emerge lyx and surprisingly found it depends on qt:

[EMAIL PROTECTED]:/home/zhangweiwu# emerge -pv lyx

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N] app-text/opensp-1.5.2-r1  USE=nls -doc 1,486 kB 
[ebuild  N] app-text/docbook-dsssl-stylesheets-1.79  272 kB 
[ebuild  N] app-text/docbook-sgml-dtd-3.1-r3  55 kB 
[ebuild  N] media-gfx/imagemagick-6.3.7.9  USE=X gs jbig jpeg lcms png svg 
tiff zlib -bzip2 -djvu -doc -fontconfig -fpx -graphviz -hdri -jpeg2k -nocxx 
-openexr -perl -q32 -q8 -truetype -wmf -xml 0 kB 
[ebuild  N] x11-libs/qt-4.3.2-r1  USE=cups jpeg opengl png ssl tiff 
xinerama zlib -accessibility -dbus -debug -doc -examples (-firebird) -gif -glib 
-mng -mysql -nas -nis -odbc -pch -postgres -qt3support -sqlite -sqlite3 
INPUT_DEVICES=-wacom 42,445 kB 
[ebuild  N] app-text/aiksaurus-1.2.1  USE=-gtk 908 kB 
[ebuild  N] app-text/openjade-1.3.2-r1  874 kB 
[ebuild  N] app-text/sgmltools-lite-3.0.3-r10  USE=-tetex 69 kB 
[ebuild  N] app-office/lyx-1.5.4  USE=X cups nls -debug -latex 
LINGUAS=-he 8,923 kB 

Total: 9 packages (9 new), Size of downloads: 55,028 kB


I thought it must not be true, because I used lyx on Ubuntu and it
doesn't look like a qt application at all. Then I run equery depgraph to
see which package required qt. again a surprise, according to equery,
lyx did not depend on qt, nor indirectly.

I attached output of 'equery depgraph =lyx-1.5.4' to this message. Do a
grep and 'qt'  is not found in the output.

So my question is:

   1. Is it true lyx really depends on qt? How do I find out?
   2. If lyx doesn't have to depend on qt, how can I install lyx and
  avoid qt being emerged?

Thanks in advance!
Best regards
Zhang Weiwu

-- 
Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 135 9950 2413
http://www.realss.com

app-office/lyx-1.5.4:
`-- app-office/lyx-1.5.4
 `-- x11-libs/libXrandr-1.2.2
  `-- x11-libs/libX11-1.1.3
   `-- x11-libs/xtrans-1.0.4
`-- sys-devel/automake-1.10
 `-- dev-lang/perl-5.8.8-r4
  `-- sys-devel/libperl-5.8.8-r1
   `-- sys-libs/db-4.5.20_p2 [ berkdb ]
`-- dev-lang/tcl-8.4.15 [ tcl ]
 `-- sys-devel/autoconf-2.61-r1
  `-- sys-apps/texinfo-4.8-r5
   `-- sys-libs/ncurses-5.6-r2 [ !build ]
`-- sys-libs/gpm-1.20.1-r6 [ gpm ]
   `-- virtual/libintl-0 (virtual/libintl) [ !build nls ]
`-- sys-devel/gettext-0.17 [ elibc_Darwin ]
 `-- virtual/libiconv-0 (virtual/libiconv)
 `-- dev-libs/libxml2-2.6.30-r1
  `-- sys-libs/zlib-1.2.3-r1
  `-- dev-lang/python-2.4.4-r6 [ python ]
   `-- dev-lang/tk-8.4.15-r1 [ !build tk ]
`-- x11-libs/libXt-1.0.5
 `-- x11-libs/libSM-1.0.3
  `-- x11-libs/libICE-1.0.4
   `-- x11-proto/xproto-7.0.10
`-- sys-devel/libtool-1.5.24
 `-- sys-devel/gnuconfig-20070724
 `-- sys-apps/help2man-1.36.4
  `-- dev-perl/Locale-gettext-1.05 [ elibc_glibc nls ]
`-- dev-util/pkgconfig-0.22
`-- x11-misc/util-macros-1.1.5
`-- sys-devel/binutils-2.18-r1
 `-- sys-devel/binutils-config-1.9-r4
  `-- sys-apps/findutils-4.3.8-r1 [ userland_GNU ]
 `-- x11-proto/kbproto-1.0.3
   `-- sys-libs/readline-5.2_p7 [ !build ncurses readline ]
`-- app-shells/bash-3.2_p17-r1
   `-- sys-libs/gdbm-1.8.3-r3 [ !build gdbm ]
   `-- dev-libs/openssl-0.9.8g [ !build ssl ]
`-- dev-libs/gmp-4.2.2 [ gmp ]
`-- sys-apps/diffutils-2.8.7-r2
 `-- sys-apps/man-pages-2.75 [ userland_GNU ]
  `-- sys-apps/man-1.6e-r3 (virtual/man)
   `-- sys-apps/groff-1.19.2-r1
  `-- app-i18n/man-pages-zh_CN-1.5 [ nls linguas_zh_CN ]
`-- sys-devel/bc-1.06-r6 [ test ]
 `-- sys-devel/flex-2.5.33-r3
`-- app-misc/ca-certificates-20070303-r1
 `-- sys-apps/portage-2.1.3.19
  `-- sys-apps/sed-4.1.5 [ !build ]
  `-- sys-apps/sandbox-1.2.18.1-r2 [ elibc_glibc ]
  `-- app-misc/pax-utils-0.1.16
   `-- sys-libs/libcap-1.10-r9 [ caps ]
`-- sys-kernel/linux-headers-2.6.23-r3 (virtual/os-headers)
 `-- dev-util/unifdef-1.20
  `-- app-text/docbook-xml-dtd-4.4-r1 [ doc ]
   `-- app-arch/unzip-5.52-r1
   `-- app-text/docbook-xsl-stylesheets-1.70.1
`-- app-text/build-docbook-catalog-1.2
   `-- app-text/sgml-common-0.6.3-r5
`-- sys-devel/automake-1.5

[gentoo-user] some OSS software that enable me make call to traditional telephone by using Internet?

2008-03-22 Thread Zhang Weiwu
Dear all

I wish to be able to make telephone call from Internet to Traditional
telephone, like I did with skyp out. But I am using Linux on ppc, and
skype did not release ppc binary.

Is there a solution for people like me? I think if there are OSS
solutions they are preferable because then it tends to be able to
compile on any kind of hardware. Actually any solution (including
binary-release software) are fine for me, as long as they can run on
Linux/ppc.

Best regards

-- 
Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 135 9950 2413
http://www.realss.com

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] to which package scrbook.cls belongs?

2008-05-06 Thread Zhang Weiwu
Dear all

I just emerged lyx and it doesn't work. The issue is class files are
missing (one example is scrbook.cls). It should be installed together
with lyx but it didn't.

I need to install a package containing this file. to which package this
file belongs to? I googled around without luck

Thanks. The complete description of the issue is as follows:

G. Milde's suggestion on solving my lyx problem:
 On  6.05.08, Zhang Weiwu wrote:
   
  error message in opening tutorial with lyx. The opened tutorial is not
  printable. see below:
 
 ...
   
  Warning: Document class not available
  
  The layout file requested by this document,
  scrbook.layout,
  is not usable. This is probably because a LaTeX
  class or style file required by it is not
  available.
 
 ...

   
  [EMAIL PROTECTED]:~$ locate scrbook.layout
  /usr/share/lyx/layouts/scrbook.layout
 

 scrbook.layout is the LyX layout file, for printed output it requires the
 *LaTeX class file* ``scrbook.cls``:

 [EMAIL PROTECTED]:/tmp  locate scrbook.cls
 /usr/share/texmf-texlive/tex/latex/koma-script/scrbook.cls

 Looking at HelpLaTeXConfig, you can find out which LaTeX classes and
 packages are found by the latest ToolsReconfigure run. Here I have:

   Found: scrartcl: yes, scrreprt: yes, scrbook: yes

 Fix:
 
 Find out which Gentoo package provides the file scrbook.cls and install
 it (or install all classes that are marked as required, recommended or 
 suggested by LyX).

-- 
gentoo-user@lists.gentoo.org mailing list



[SOLVED] Re: [gentoo-user] to which package scrbook.cls belongs?

2008-05-06 Thread Zhang Weiwu
Justin said:
 www.portagefilelist.de could answer these kinds of questions.
 
 But the package you are looking for is 
 dev-texlive/texlive-latexrecommended-2007.



Ian Hilt wrote:
 On Tue, 6 May 2008, Zhang Weiwu wrote:
 
 I need to install a package containing this file. to which package this
 file belongs to? I googled around without luck
 
 equery b scrbook.cls returns
 dev-texlive/texlive-latexrecommended-2007
 (/usr/share/texmf-dist/tex/latex/koma-script/scrbook.cls)

Thanks:)


-- 
Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 135 9950 2413
http://www.realss.com
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] join two tab-separate-value files without join field

2008-05-23 Thread Zhang Weiwu
Hi.

I got a datasheet from my colleague in MS Excel format and I intend to
process that file with my awk/sed knowledge. The problem is: he sent me
two Excel files each with 2134 records, in fact there should be only one
excel file with 2134 rows and 295 columns, but MS Excel can only handle
256 data columns, so he split the datasheet vertically so he can manage
to send to me.

Now I saved both file to tab-separated-value format, how do I join them?

I could have used join(1) but that require a join field, an ID of some
sort. I think of this:

$  grep -n '' left.tsv | sed 's/:/\t/' left.forjoin
$ grep -n '' right.tsv | sed 's/:/\t/' right.forjoin
$ join -t  left.forjoin right.forjoin  result.tsv
(note that for join's -t parameter somehow I need to manage to get a tab
between the quotes)

Yes I achieved what I want, but that looks complex. Is there a simpler
way? Thanks in advance.

I know OpenOffice 3.0 can handle up to 1024 data columns. It's difficult
to convince anyone to switch to OOO because here in China MS Office
costs only 0$. I also could use OOO3.0 for doing the join but I wish to
know the commandline way:)

-- 

Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 135 9950 2413
http://www.realss.com

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] join two tab-separate-value files without join field

2008-05-24 Thread Zhang Weiwu
Etaoin Shrdlu wrote:
 On Saturday 24 May 2008, 12:08, Etaoin Shrdlu wrote:
 
 If my understanding is correct, then

 paste -d, file1 file2
 
 If fields are separated by tabs instead of commas, then it's even easier:
 
 paste file1 file2
 
 since paste will use tab as default delimiter.

Hi. This is exactly what I am looking for. Thank you very much!
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] confused on join(1)

2008-05-24 Thread Zhang Weiwu
Dear all

I am learning to use join to manage data processing easier. I got two
data files, they should join on field No. 9.

But such simple join doesn't work. The output of join is 0 bytes. Feel
surprised I size down both file size to contain only two records. Still
fail.

$ join -t $'\t' -j 8 a b
[no output]

Expect:
[output 2 rows]

I attached my two test case, hope someone can guide me through this. It
maybe very simple case but I had scratched my head half an hour now.
2   365 江西省   吉安市   安福县   钱山乡   
油市村村委会  36082920220636082920220629  岩下  201 
刘丽霞   赵金根   9/18/2007   王桂刚   1   2   
0   0   0   0   0   5   4   35  10  4   
61  32  2   1   0   
2   0   0   0   0   2   2   0   2   4.4 
0   4   10  0   0   0   4   4   0.4 0   
10  1   4   40  2   20  1   0   1   0   
1   0   0   25  0   0   0   4   0   0   
0   21002   3   0   0   1   1   5   0   
0   0   0   0   2   0   0   2   1   1   
0   0   1   0   0   0   10331   86000   0   
0   86001446600 0   0   0   0   0   0   
0   0   0   0   0   0   350 600 0   0   
0   0   0   0   0   0   0   846 0   0   
0   0   0   0   0   0   0   0   0   0   
20  720 12  432 11.25   126 0   0   0   0   
0   0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0   0   0   0   0   
0   0   0   0   0   285 100 100 100 
0   0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0   927962290   1400
0   100 0   50  0   300 600 125 288 370 
126 0   0   50  0   320 0   100 0   0   
0   150 0   250 20000   10000   200 500 
600 250 550 200 800 0   100 200 10031   0   
0   0   0   0   0   0   0   0   0   0   
365 0   0   0   0   0   0   0   0   0   
0   0   1   1   0   0   0   0   1   0   
0   1   1   1   0   0   0   0   1   1   
0   1   0   1   5   8   10  39343   刘丽霞
3   379 江西省   吉安市   安福县   钱山乡   
油市村村委会  36082920220636082920220601  垅上  101 
刘丽霞   赵金根   9/18/2007   宁纪生   1   3   
0   0   0   0   1   4   2   64  30  28  
5   3   1   0   
2   1   0   0   0   2   2   0   1   5.5 
0.5 5   16  0   0   0   5   5   0.5 2   
15  0   0   100 4   30  1   0   1   0   
1   1   0   30  0   0   0   4   1   1   
1   30002   3   0   0   4   1   4   0   
0   0   0   0   2   1   1   1   0   0   
0   0   0   0   0   0   15630   85000   500 
0   80006895410020003200125020000   0   
0   0   0   0   0   0   450 900 150 300 
0   0   0   0   0   0   0   2795115 1400
67  800 0   0   0   0   0   0   0   0   
30  108018  680 28  315 19  215 0   0   
0   0   0   0   0   0   0   0   0   0   
0   0   0   0   0   0   0   0   0   0   
0   0   0   0   0   235 1000500 500 
0   0   500 500 0   0   0   0   0   0   
0   0   0   0   0   0   9300700012000   
0   0   0   0   0   550 600 100 1000150 
100 50  0   50  0   200 0   50  0   50  
0   400 0   0   25000   800 0   200 500 
800   

Re: [gentoo-user] confused on join(1)

2008-05-24 Thread Zhang Weiwu
Zhang Weiwu wrote:
 Dear all
 
 I am learning to use join to manage data processing easier. I got two
 data files, they should join on field No. 9.
 
 But such simple join doesn't work. The output of join is 0 bytes. Feel
 surprised I size down both file size to contain only two records. Still
 fail.
 
 $ join -t $'\t' -j 8 a b
 [no output]
 
 Expect:
 [output 2 rows]
 
 I attached my two test case, hope someone can guide me through this. It
 maybe very simple case but I had scratched my head half an hour now.
 

Looks like I simply didn't properly format the data, there perhaps are
un-necessary trailing spaces at the end of certain fields. Should be my
fault.
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] help me choose a sound recorder

2005-12-13 Thread Zhang Weiwu
Hello. I am looking forward to use a sound recorder to record my
telephone calls. These telephone calls are business phone calls that
used for business purpose and all phone calls on my line should be recorded.

I am looking forward to have a sound recorder that is:
1 record sound and save as speex format;
2 better be able to auto-start and auto-stop. E.g. when people are
talking on the phone, start a track and save a speex file; when people
stop talking (silence), stop recording and be ready to start recording
the next track. Better one tracker per file;
3 we don't need gui, but I don't mind if it's console app or gui app;
4 I am using alsa in the kernel, if supporting alsa makes sense I perfer
to have alsa recorders;
5 better allow scripting and meta info for saved sound tracks. But it's
fine if it doesn't do so;
6 better also available in SuSE so I can run the same software at home
or in my office;
7 I only need to record one line and not a full-power PBX software.

Any suggestions? Looks audacity is a good option, last year I used it a
while, but I think it is not perfect (for lack of requirement 2), but
don't know its current status.
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] when will seamonkey be available in portage?

2006-02-28 Thread Zhang Weiwu
Just curious, everytime I don't know where to look for progress of the
update of certain software, I think of this question:

How can I know when certain package (seamonkey) is going to be added to the
portage?

--
Zhang Weiwu   Real Softservice
International business: http://www.realss.com
International sales:0086 10 84606011
Inland business:http://www.realss.cn
Inland sales call:  0086 592 2099987
Sent from Pine: http://www.washington.edu/pine/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ftp server software which supports a control connection?

2008-09-07 Thread Zhang Weiwu
Neil Bothwick wrote:
 On Sun, 07 Sep 2008 10:45:12 +0800, [EMAIL PROTECTED] wrote:
 
 As I am monitoring ftp through a wireless LAN which max at 300KB/s,
 running X11-forwarding is not comfortable. running a desktop session on
 the server and run vnc seems overkill.
 
 What's wrong with looking at the server's log file(s) in a standard SSH
 session?

Because that mess up with other user's ftp activities. Also because I
don't get the knowledge which folder the user I am watching is in (I
could tell this by looking at the log backwards and find his last 'cd'
command, but it's more convenient to look it just on the UI). There are
other functions that is convenient on the UI but not on the commandline,
e.g. number of concurrent connection a user have is directly on the UI
on Serv-U but with vsftpd I have to run some smart combination of
grep/sed/awk to get this info, and can be difficult to get it in real
time. Also consider information you cannot get from reading the log,
e.g. find out who is taking the biggest share of download badnwidth
right the moment your user complain being too slow.



[gentoo-user] how to use fonts installed in the printer

2008-10-03 Thread Zhang Weiwu
Hello. Years ago when I was using Windows there are several fonts always
have a printer symbol with them, if I use these fonts, says the Windows
manual, they are printed using the font installed in the printer. These
fonts are usable in almost all applications, e.g. Word Pad (before was
writer) and MS Word.

My impression was, using the fonts installed on the printer would result
faster printing and use less memory. My office LaserJet also has several
embedded fonts, can I use them in OpenOffice and Firefox? How?

I googled but embedded printer fonts always gets me articles on how to
embed fonts into PS file or PDF file so they can be properly printed in
any printer, which is a separate topic.



[gentoo-user] strange block issue

2008-10-09 Thread Zhang Weiwu
I was told virtual/jre-1.6, a package that I do /not/ have installed, is 
blocking another package.

How do I manage to install dev-java/jdictrayapi? Thanks for hints in advance!
 
[EMAIL PROTECTED]:~$ sudo emerge -av dev-java/jdictrayapi

These are the packages that would be merged, in order:

Calculating dependencies   waiting for lock on /var/db/.pkg.portage_lockfile
 ... done!
[ebuild  NS   ] dev-lang/python-2.5.2-r8  USE=berkdb gdbm ipv6 ncurses 
readline ssl threads -bootstrap -build -doc -examples -sqlite -tk -ucs2 
-wininst 9,606 kB 
[ebuild  N] virtual/jre-1.6.0  0 kB 
[ebuild U ] dev-java/javatoolkit-0.3.0-r2 [0.2.0-r1] 17 kB 
[ebuild  N] dev-java/jdictrayapi-0.9.1-r3  USE=-doc -examples -source 925 
kB 
[blocks B ] =virtual/jre-1.6* (is blocking dev-java/jdictrayapi-0.9.1-r3)

Total: 4 packages (1 upgrade, 2 new, 1 in new slot, 1 block), Size of 
downloads: 10,547 kB

!!! Error: The above package list contains packages which cannot be installed
!!!at the same time on the same system.

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked

[EMAIL PROTECTED]:~$ sudo emerge --unmerge virtual/jre

--- Couldn't find 'virtual/jre' to unmerge.

 No packages selected for removal by unmerge





Re: [gentoo-user] strange block issue

2008-10-12 Thread Zhang Weiwu
Robert Bridge wrote:

 Try masking virtual/jre-1.6
 
 Also, it might be worth checking if the jdictrayapi has be included in
 the Java 6 jdk, which would account for the block.

You are right, I guess the software could not work with jre 1.5. I
replaced my JRE 1.6 with JRE 1.5, but still hit a problem (could be a
different one)

# emerge borg
Calculating dependencies... done!
 Verifying ebuild Manifests...
 starting parallel fetching pid 17744

 Emerging (1 of 12) dev-java/javahelp-2.0.02_p46 to /
 * javahelp2-src-2.0.02_svn46.zip RMD160 SHA1 SHA256 size ;-) ...
  [ ok ]
 * checking ebuild checksums ;-) ...
  [ ok ]
 * checking auxfile checksums ;-) ...
  [ ok ]
 * checking miscfile checksums ;-) ...
  [ ok ]
 * checking javahelp2-src-2.0.02_svn46.zip ;-) ...
  [ ok ]
 * Using: ibm-jdk-bin-1.5
 * The ebuild phase 'setup' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313).

 * Messages for package dev-java/javahelp-2.0.02_p46:

 * The ebuild phase 'setup' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313).


In fact I always got a feeling with gentoo I often emerge and pray...




Re: [gentoo-user] what can I do besides waiting or complaining about missing kompozer?

2008-10-26 Thread Zhang Weiwu
Matthias Krebs wrote:
 On Saturday 25 October 2008 10:37:48 Gildor Oronar [EMAIL PROTECTED] 
 wrote:
   
 maybe I am stupid but
 #layman -L
 output doesn't contain the word 'arcon' or 'Acron'. A google with
 keyword 'Arcon overlay' doesn't find instruction how to install it
 neither. Could it be related to my platform (PowerPC)?

 A link with information related to how to install 'arcon overlay' would
 be very helpful. Thanks in advance.

 I am fine with installing an overlay, but I guess if the ebuild is in
 the portage then it's available for more people. For me now is only how
 to get overlay working.
 
 You have to build layman with subversion use flag to see svn repositories. 
 Same goes for git.
   
Hi  it seems the layman package does not have 'subversion' use flag:

[EMAIL PROTECTED]:~$ sudo emerge -pv layman

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-portage/layman-1.1.1  USE=-test 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB


And because I can see a lot other subversion overlays it seems I do can
access subversion overlays. As of 'Arcon overlay' I do not know how to
look up whether it's git or subversion overlay (except using google
which didn't provide the answer this time).




[gentoo-user] limit maximum memory size of any process

2008-11-03 Thread Zhang Weiwu
Hello.

In my daily us of computer any process that takes more than 50% of the
memory (I read from top, not knowing if this is 50% of 384MB physical or
50% of having 800MB swap counted in) must have gone wrong, and usually
drag performance down to such extent that killing it is impossible
(because not possible to launch a terminal window to type kill -TERM).
Examples are:

   1. Firefox opens a broken website that wish to send 10M binary
  content to the browser window;
   2. OpenOffice opens a document incorrectly;
   3. Mistake in Java software (usually it keep eating memory);

I hope I can configure the system so that any process uses more than 50%
of memory are automatically killed. first I was recommend to use ulimit
by googling around. However this seems doesn't work even if I set both
-d and -m (here is my .xinitrc)

~$ cat .xinitrc
#export [EMAIL PROTECTED]
#fcitx 
ulimit -d 30
ulimit -m 300
exec /usr/bin/fluxbox


Result: OpenOffice stands still even when it takes 80% memory (read from
top).
So: is ulimit the solution? If so, what option should I set? My current
ulimit is:

$ ulimit -a
core file size  (blocks, -c) 0
data seg size   (kbytes, -d) 30
scheduling priority (-e) 0
file size   (blocks, -f) unlimited
pending signals (-i) 3072
max locked memory   (kbytes, -l) 32
max memory size (kbytes, -m) 300
open files  (-n) 1024
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority  (-r) 0
stack size  (kbytes, -s) 8192
cpu time   (seconds, -t) unlimited
max user processes  (-u) 3072
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited


-- 
Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 159  7382
http://www.realss.com




Re: [gentoo-user] limit maximum memory size of any process

2008-11-03 Thread Zhang Weiwu
Matthias Bethke wrote:
 Hi Zhang,
 on Mon, Nov 03, 2008 at 06:24:00PM +0800, you wrote:
 I hope I can configure the system so that any process uses more than 50%
 of memory are automatically killed. first I was recommend to use ulimit
 by googling around. However this seems doesn't work even if I set both
 -d and -m (here is my .xinitrc)

 ~$ cat .xinitrc
 #export [EMAIL PROTECTED]
 #fcitx 
 ulimit -d 30
 ulimit -m 300
 exec /usr/bin/fluxbox


 Result: OpenOffice stands still even when it takes 80% memory (read from
 top).
 So: is ulimit the solution? If so, what option should I set?
 
 I interpret the above as use a maximum of 300,000 KiB of memory, of
 which 300 may be resident (i.e. in physical memory) and 299,700 swapped
 out. That doesn't sound good, although I'm not sure I'm reading it
 correctly.

Sorry, it seems I used these parameter without care. I guess I only need
to set physical memory limit, a.k.a. resident memory.

OT: I don't know why I have
max locked memory   (kbytes, -l) 32
But it has been like that before I set ulimit.


 What I do is use /etc/sercurity/limits.conf (from pam_limits) with a
 couple of entries like those:
 | @users   hardnproc   1000
 | mb   hardnproc   5000
 | @users   hardas  2097152
 | mb   hardas  6291456
 | mb   hardnice-5
 | mb   hardrtprio  5
 Meaning, everyone but me (mb) may use up to 1000 processes per login,
 with a max. address space of 2 GiB each; for myself the limit is 6 GiB
 and 5k processes. Myself I cannot accidentially set a negative
 nice-value because I left the soft limit at its default (0 for non-root
 users) but using ulimit I can set it to the hard limit of -5 and nice-up
 processes even as a normal user.

I don't have a file called /etc/sercurity/limits.conf and neither can I
find information about it by using 'man limits.conf'. Further I couldn't
find a package called pam_limits to emerge. Can you give me some clue which
package I should emerge in order to set limits.conf ?

Thank you very much for prompt help!



[gentoo-user] chroot complain not able to find file/directory when it's actually there

2009-01-03 Thread Zhang Weiwu
Hello. Sorry for stupid newbie question:

# cp /bin/sh /usr/local/bin/sh
# chroot /usr/local /bin/sh
chroot: cannot run command `/bin/sh': No such file or directory

In theory it should work, right? This is the first time I run chroot not
for rescuing a broken system (which means /dev/ and /proc/ are not
mounted in chroot jail). However I guess /dev/ and /proc/ doesn't have
to be mounted to run chroot.

I am sure this is not because the executable is dynamically linked to a
file outside of the chroot jail, because I also tried to run executables
compiled with USE=static

What could be the reason (for complaining an existing file No such file)?

Thanks in advance. Using coreutils-6.10-r2 on ibook/ppc



Re: [gentoo-user] alternative arch?

2005-05-07 Thread Zhang Weiwu
Nick Rout wrote:
I know nothing about the performance of the ppc machines mentioned in
this GWN, I will leave it to you to investigate.
http://www.gentoo.org/news/en/gwn/20041129-newsletter.xml
 

With your help and googling around, I found this price list:
https://www.pegasosppc.com/store.php?category=1
It says:
Pegasos II with 1GHz G4 processor
*$615.00*
(499.00)
 

Pegasos II with 600MHz G3 processor *$600.00*
(489.00)
 
I really wish to know who would by Pegasos II with 600MHz G3 CPU. it is 
only 15USD cheaper but the computation power (by looking at the performance 
compare using google) is less then half of Pegasos II with 1GHz G4 CPU.
Are they crazy? Or the price is not correct? (Because I haven't find another 
Pegasos reseller yet, I think maybe I just happen to have visited a crazy shop.)
On Thu, 2005-05-05 at 16:11 +0800,   wrote:
 

Hello? Just wish to know if there is alternative arch hardware product
(non-x86 computer) that Gentoo Linux runs fine on it, also this product need
to be as speedy as a typical 1GHz Pentium III, and it must not be
secondhand/used product. 

I can find dozes of UltraSparc box that has similar speed, but they are all
secondhand/used products. I am thinking if there are POWER CPU product
(better not Apple) that has similiar speed and also have new units available
for sale.
We are looking for hardware to ship our pre-installed Linux product, and we
need non-x86 solution.
Thank you for suggestions:)
--
 Real SoftService
http://www.realss.com.cn
: 0086 592 2086411
Technical Contact: 0086 592 2086411

   

--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] alternative arch?

2005-05-07 Thread Zhang Weiwu
Zhang Weiwu wrote:
Nick Rout wrote:
I know nothing about the performance of the ppc machines mentioned in
this GWN, I will leave it to you to investigate.
http://www.gentoo.org/news/en/gwn/20041129-newsletter.xml

Quote from the above article:
  According to Genesi, the PowerPC-based ODW offers an anchor for the 
whole enterprise infrastructure. Optimized performance and lower 
price levels are the prime objectives
Quote from online shop https://www.pegasosppc.com/store.php?category=2
Open Desktop Workstation with 600MHz G3 (750CXe)*$1299.00*
(1059.00)
Open Desktop Workstation with 1GHz G4 (7447)*$1399.00*
(1139.00)
^
|
|
|
|
|
Are they crazy or something? They were saying ODW is 'lowe price' when 
it costs 1,400 which is 3 times the cost of a usual Pentium 3GHz 
desktop! And even though ODW comes without monitor/keyboard/mouse.

If you are not looking for new ways to spend money, I don't imagine 
anyone would buy it?
--
gentoo-user@gentoo.org mailing list



[gentoo-user] access an FTP server in another locale

2005-05-15 Thread Zhang Weiwu
I always find difficulty that, my local host locale is set to UTF-8 but
I need to access ftp servers with differnt locales, e.g. ISO8859-1 or
GB18030

I use gftp and ncftp. Both tool does not provide proper locale
conversion. Does anyone know any ftp client that could set server locale
and do conversion automatically?

Thank you.
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] logout a gnome session with commandline?

2005-06-20 Thread Zhang Weiwu
Hello. I often remotely login to my other computer using XDMCP (run
gdom, select XDMCP chooser...) but the connection could be broken for
many reasons (connection down, or the host I am using gets down). The
next time I login, it would prompt me something like you are logined in
from another place, do you still wish to login , and if I click
'yes', I will see dozens of startup application crash because they
cannot run twice by same user.

Is it possible I logout my previous (connection broken) session by using
commandline? Thus I could ssh gets into the host, run the command, and
re-login.

The local administrator have a straight forward method of
#ps U zhangweiwu | awk {print $1} | xargs kill -TERM

This solves the problem instantly! I just feeling courious if there are
'better' methods. I remember when I was on Windows there is something
like 'session manager' where each logged in session can be manually 'log
out', is there similar thing on gnome?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] logout a gnome session with commandline?

2005-06-23 Thread Zhang Weiwu
Raphael Melo de Oliveira Bastos Sales wrote:

Hi Zhang,

I don't know for sure if what I'm going to say is true, but I believe
that if you kill the gnome-session process being run by your user, it
will shutdown the Gnome session and all the apps that are child
processes of it. It is a wild guess, but might be worth trying.

Hope this helps you out,
  

No...

I tried to kill gnome-session and is successful... all other processes
are still running, some even takes cpu time.

I feel it's dangerous if all session applications are children of
gnome-session: suppose gnome-session crash, should all other application
quit?
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] very slow updating portage?

2005-10-12 Thread Zhang Weiwu
Hello. Untill today I begin to realize I am using aibiword 2.2 and
gnumeric 1.4.3

I think they should be at least half a year old, or one year old. Are
packages updated not so frequently? I think it's not very hard to port
them into gentoo (but I am no developer)
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] adding comment on pdf files?

2005-10-18 Thread Zhang Weiwu
Looks like if I wish to add comment to PDF files, the only thing I can do is
to buy Acrobat. I don't mind buying one copy, but other people in the
company will need it too, that's a lot of copies.

Just come by this question and is there a free product for adding PDF
comments? I need to add comment, nothing more (like stamping, audio clips
and such things are not so useful).

Looks like in Linux even a product that can READ pdf file correctly are
lacking. I use gpdf, and a lot of eps embeded images looks corrupted but
they were fine in acroread, besides, these (looking-bad-in-gpdf) pdf files
are exported from Openoffice, another excellent opensource product.

--
Zhang Weiwu   CEO Real Softservice
International business: http://www.realss.com
International sales:0086 10 84606011
Inland business:http://www.realss.cn
Inland sales call:  0086 592 2099987
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] adding comment on pdf files?

2005-10-19 Thread Zhang Weiwu
Nick Rout wrote:

On Wed, 2005-10-19 at 12:14 +0800, Zhang Weiwu wrote:
  

Looks like if I wish to add comment to PDF files, the only thing I can do is
to buy Acrobat. I don't mind buying one copy, but other people in the
company will need it too, that's a lot of copies.

Just come by this question and is there a free product for adding PDF
comments? I need to add comment, nothing more (like stamping, audio clips
and such things are not so useful).



There are lots of libraries for dealing with pdf files. Take a look at
reportlab.

  

I hope you know I am talking about user tools, for use with office people.

Looks like in Linux even a product that can READ pdf file correctly are
lacking. 



What is wrong with acroread on linux?

  

Ah, sorry, I wasn't considering Linux product = foss based on Linux,
which is wrong of course. acroread is fine, gpdf fails.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] adding comment on pdf files?

2005-10-19 Thread Zhang Weiwu
Peter Gordon wrote:

Zhang Weiwu said:
  

Nick Rout wrote:


What is wrong with acroread on linux?

  

Ah, sorry, I wasn't considering Linux product = foss based on Linux,
which is wrong of course. acroread is fine, gpdf fails.



Have you tried evince? (part of GNOME 2.12) I quite like it. :-)

--Peter
  

Before I even begin to try solving the below problems, I wanna make sure
that this product does have comment/annotation feature. I don't find
this feature on their website. If it's plainly a PDF viewer, I will like
to have a try but arrange it in the longer run, perhaps after 2.12 release.

Joe zhangweiwu # ACCEPT_KEYWORDS=~x86 emerge -av evince

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B ] x11-libs/cairo-0.2 (is blocking x11-libs/cairo-1.0.2)
[ebuild  N] app-text/poppler-0.4.2  +gtk +jpeg -qt +zlib 759 kB
[ebuild U ] dev-util/gtk-doc-1.4-r1 [1.3-r1] -emacs 145 kB
[ebuild U ] dev-libs/glib-2.8.2 [2.6.5] -debug +doc -hardened 2,502 kB
[ebuild U ] x11-libs/cairo-1.0.2 [0.1.23-r1] +X +doc -glitz +png
1,424 kB
[ebuild U ] x11-libs/pango-1.10.1 [1.8.1-r1] -debug +doc 1,158 kB
[ebuild U ] x11-libs/gtk+-2.8.6 [2.6.8] -debug +doc +jpeg +tiff
11,545 kB
[ebuild U ] app-text/gnome-doc-utils-0.4.2 [0.1.3] -debug 365 kB
[ebuild  N] app-text/evince-0.4.0-r2  -dbus -debug +doc -dvi
-nautilus -t1lib +tiff 870 kB

Total size of downloads: 18,772 kB

!!! Error: The above package list contains packages which cannot be
installed
!!!on the same system.

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] [ot] PDF or PS format for daily use?

2005-10-24 Thread Zhang Weiwu
Hello. I have got a lot (much more) ps files and PDF files since I start to
use Linux. In the past there were mostly doc files but now I always prefer
to have a PS or PDF copy to ease the compatibility pain. And looks linux
people always prefer to send me a PS or PDF document.

Because I always save two copies of every of my document, one in original
format (eg. odt) and another in printable format for my colleagues in case
they don't have the Linux fonts and software. Here comes the question should
I keep a PS copy or PDF copy.

I think PDF copy is absolutely the prefered format because:
* easier to find acrobat reader;
* can be 'Tagged', especially used with OOo;
* possibility to 'copy and paste', though format will be lost;
* not to take other people by surprise with unfamiliar PS extension;
* different quanlity: I can save PDF in very high quanlity that I was told
can be taken to press house
* easy to convert to PS format when needed.

Here comes the question: if the above all stands true, why do I ever need PS
format at all? There might be some reasons to keep this format still
existing. Perhaps in other areas, other then office work.

So the conclusion: for typical office workers, we can forget PS format.

Now welcome for suggestions.

P.S. another quesiton I happen wish to have an answer: in one case, I have
to keep PS format because, I can print booklet (brochure) in OOO2 right the
way I expected, but if I carry this brochure to my colleague, and he doesn't
have openoffice, then I try to export to PDF format, and found there is no
'brochure' option in exporting, also there is no 'brochure' option in
Acrobat Reader printing dialogue box, so it's clear if I export to PDF
format I will never be able to print it in brochure style on a normal PC, so
I have to print to PS file and carry it. But so far this is the only case I
think I need PS format. If I only exported PDF format, can I still print a
brochure? The difficulty in printing brochure is you have to make correct
page order.

--
Zhang Weiwu   CEO Real Softservice
International business: http://www.realss.com
International sales:0086 10 84606011
Inland business:http://www.realss.cn
Inland sales call:  0086 592 2099987
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] IPv6, now what?

2005-10-24 Thread Zhang Weiwu
Hello. I recently got an IPv6 address for my small server (or perhaps I
recently got a lot of IPv6 address, I cannot tell) from my ISP.  This is
what I did in attempt to activate this address (all following exactly
what is written on the ISP's manual)

server root # ip addr add 2001:41c8:1:53ae::2/64 dev eth0
server root # ip route add 2000::/3 via 2001:41c8:1:53ae::1
server root # ip -6 addr show eth0
5: eth0: BROADCAST,MULTICAST,ALLMULTI,UP qlen 1000
inet6 2001:41c8:1:53ae::2/64 scope global
inet6 fe80::fcfd:50ff:fe44:5d98/64 scope link
server root # ping6 2001:41c8:1:53ae::2
PING 2001:41c8:1:53ae::2(2001:41c8:1:53ae::2) 56 data bytes
64 bytes from 2001:41c8:1:53ae::2: icmp_seq=1 ttl=64 time=0.077 ms
64 bytes from 2001:41c8:1:53ae::2: icmp_seq=2 ttl=64 time=0.069 ms
server root # ping6 www.ipv6.org
PING www.ipv6.org(igloo.stacken.kth.se) 56 data bytes

--- www.ipv6.org ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4024ms

Now what? Is my ipv6 address working now? I don't see a clue on how to
do testing.

Further more I found the documents closest ('closest' by the means of
google) is surprisingly outdated. I was thinking IPv6 is a hot topic
untill I get these documents, e.g.
http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO mension 2.5 kernel as
something in the future (they say 2.4 kernel do not have full support of
IPv6 and they are looking forward to have a kernel with good IPv6
support). Another document says the latest kernel version is 2.1
(http://www.cs-ipv6.lancs.ac.uk/ipv6/systems/linux/faq/linux-ipv6.faq-4.html#ss4.2).
 
I am still going through the documents to find more knowledge.

One question important to me but I never understood well. If I have a
website only defined on IPv6 address, is this website accessible from
major platforms (e.g. Win2k+/modern Linux, IE 6+/Firefox 1+) without any
special configuration on the client side?
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] esp ghostscript?

2005-10-26 Thread Zhang Weiwu
Hello. I am using cups and later I installed ghostscript-afpl. And
later, I bought a new printer and found later it's not working. By other
people's suggestion, it seems that's because I should be using
ghostscript-esp but I don't find this package on gentoo!

I don't know why qpkg -f -I told me my /usr/lib/cups/filters/pstoraster
is a part of ghostscript-afpl but actually it is supposed to be part of
ghostscript-esp

Any hints on how to get ghostscript-esp working on my box (at least for
cups part)?
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Is it just me? Or everyone has this openoffice2 problem?

2005-11-03 Thread Zhang Weiwu
After successfully merged, it goes like this:

[EMAIL PROTECTED] /usr/lib/openoffice/program $ oowriter2
/usr/lib/openoffice/program/javaldx: error while loading shared
libraries: libuno_sal.so.3: cannot open shared object file: No such file
or directory
/usr/lib/openoffice/program/soffice.bin: error while loading shared
libraries: libvcl680li.so: cannot open shared object file: No such file
or directory
[EMAIL PROTECTED] /usr/lib/openoffice/program $ locate libuno_sal.so
[EMAIL PROTECTED] /usr/lib/openoffice/program $ locate libvcl680li.so
[EMAIL PROTECTED] /usr/lib/openoffice/program $ qpkg -i -I blackdown-jre
dev-java/blackdown-jre-1.4.2.02 *
Blackdown Java Runtime Environment  [ http://www.blackdown.org ]
[EMAIL PROTECTED] /usr/lib/openoffice/program $ qpkg -i -I openoffice
app-office/openoffice-2.0.0 *
OpenOffice.org, a full office productivity suite. [
http://go-oo.org ]

looks to me this file libuno_sal.so.3 does exist on another machine
OpenOffice installation where it is installed by the 1.9 installer,
under programs folder.

Looks like a very obvious problem, why seems no discussion about it? Is
it just me who have this problem?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is it just me? Or everyone has this openoffice2 problem?

2005-11-03 Thread Zhang Weiwu
Richard Fish wrote:

 Zhang Weiwu wrote:

 After successfully merged, it goes like this:

 [EMAIL PROTECTED] /usr/lib/openoffice/program $ oowriter2
 /usr/lib/openoffice/program/javaldx: error while loading shared
 libraries: libuno_sal.so.3: cannot open shared object file: No such file
 or directory
 /usr/lib/openoffice/program/soffice.bin: error while loading shared
 libraries: libvcl680li.so: cannot open shared object file: No such file
 or directory
 [EMAIL PROTECTED] /usr/lib/openoffice/program $ locate libuno_sal.so
 [EMAIL PROTECTED] /usr/lib/openoffice/program $ locate libvcl680li.so
 [EMAIL PROTECTED] /usr/lib/openoffice/program $ qpkg -i -I blackdown-jre
 dev-java/blackdown-jre-1.4.2.02 *
Blackdown Java Runtime Environment  [ http://www.blackdown.org ]
 [EMAIL PROTECTED] /usr/lib/openoffice/program $ qpkg -i -I openoffice
 app-office/openoffice-2.0.0 *
OpenOffice.org, a full office productivity suite. [
 http://go-oo.org ]
  


 Did you emerge the bin, or build from sources?

It took me one day to emerge from source. I tried SEARCH_DIRS_MASK but
that doesn't work for me.

   I emerged openoffice with -java, so I don't have any javaldx as
 part of my openoffice installation.  But I do have libvcl680li.so, and
 libuno_sal.so:

 carcharias program # ls -l libuno_sal.* libvcl680li.so
 lrwxrwxrwx  1 root root  15 Nov  2 14:28 libuno_sal.so -
 libuno_sal.so.3
 -r--r--r--  1 root root 1814568 Oct 23 18:12 libuno_sal.so.3
 -r--r--r--  1 root root 3402428 Oct 23 18:12 libvcl680li.so
 carcharias program # pwd
 /usr/lib/openoffice/program
 carcharias program # emerge -Dv --pretend openoffice

 These are the packages that I would merge, in order:

 Calculating dependencies ...done!
 [ebuild   R   ] app-office/openoffice-2.0.0  +curl -eds -gnome +gtk
 -java +kde -ldap -mozilla -nas +xml2 +zlib 0 kB

 -Richard

More helpful debug message:

Joe /usr/lib/openoffice/program # ls -l libuno* libvcl*
ls: libvcl*: No such file or directory.
lrwxrwxrwx  1 root root 26 11月  1 23:52 libuno_cppuhelpergcc3.so -
libuno_cppuhelpergcc3.so.3
lrwxrwxrwx  1 root root 16 11月  1 23:52 libuno_cppu.so - libuno_cppu.so.3

Joe /usr/lib/openoffice/program # ACCEPT_KEYWORDS=~x86 emerge -Dv
--pretend openoffice

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] app-office/openoffice-2.0.0  +curl +eds +gnome +gtk
+java -kde +ldap +mozilla -nas +xml2 +zlib 0 kB

Total size of downloads: 0 kB

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] syntax colorful highlight printing tool?

2005-11-04 Thread Zhang Weiwu
Hello. I just tried enscript --color to print my php source. The result is
simply no color: looks they don't have good color schema for php. I also had
a look at a2ps and it doesn't even have a color option (or did I miss it?)

How do you print your php source in color?
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: syntax colorful highlight printing tool?

2005-11-04 Thread Zhang Weiwu
Looks like enscript did a good job in coloring C source code, simple need
someone to put up a color schema for php. They also have color syntax file
for perl, python, fortran, delphi.. I thought php is a bit more popular then
fortran. I think I can just use C syntax for php


On Fri, 4 Nov 2005, Zhang Weiwu wrote:

 Hello. I just tried enscript --color to print my php source. The result is
 simply no color: looks they don't have good color schema for php. I also had
 a look at a2ps and it doesn't even have a color option (or did I miss it?)

 How do you print your php source in color?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is it just me? Or everyone has this openoffice2 problem?

2005-11-05 Thread Zhang Weiwu
Richard Fish wrote:

 Zhang Weiwu wrote:

 It took me one day to emerge from source. I tried SEARCH_DIRS_MASK but
 that doesn't work for me.
  


 Yes, the SEARCH_DIRS_MASK is only for revdep-rebuild and for those who
 merged the binary package.  You do not need it when merging from
 source, and has no effect on your ability to start OOo.

 These are the packages that I would merge, in order:

 Calculating dependencies ...done!
 [ebuild   R   ] app-office/openoffice-2.0.0  +curl +eds +gnome +gtk
 +java -kde +ldap +mozilla -nas +xml2 +zlib 0 kB
  


 Well, these USE flags are quite different than what I use, so
 comparing to my system is probably not useful.

 But, could you try an equery check openoffice, and see if it reports
 any problems?

 I remember that when I compiled OOo2, it took over 3Gb of space in
 /var, and my /usr/lib/openoffice directory is using 228M.  Maybe you
 ran out of disk space at some point during the merge, which is why you
 are missing files???

 -Richard

I don't understand: if it run out of space, how comes the package marked
as installed. I have about 3.8G free hdd space though.
[EMAIL PROTECTED] ~ $ equery check openoffice
[ Checking app-office/openoffice-2.0.0 ]
 * 880 out of 880 files good

I think I can try compile with your USE flags later.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to save ps file from OpenOffice writer?

2005-11-20 Thread Zhang Weiwu
W.Kenworthy wrote:

Open the print dialog, tick the Print to file box and then print.  A
file save dialog pops up.  It prints in ps format.  OO has done it this
way for years ...
  

I just wish to further know if this PS file contains anything related to
the printer, anything printer-specific. E.g does it make difference if I
choose printer A or printer B before I click 'Print to fiile' and get
the PS file.

As far as I know doing things this way on Windows is dangerous. E.g.
print to a random PS printer (a laserject for example) and get the
print-to-file PS file, chances these files are very specific to that PS
printer and opens wrongly in gsview. You have to use the 'Adobe PS
Printer' which produce 'standard' PS file.

BillK

On Sun, 2005-11-20 at 19:32 -0800, John Myers wrote:
  

On Sunday 20 November 2005 19:18, 張韡武 wrote:


Hello. So far openoffice is the only application that I know that could
not directly export PS format, or print to a 'generic PS printer'. I am
having a lot of troubles trying to generate PS file for my documents.
Usually I have to go to a Windows computer and print to the 'Adobe PS
Printer', and take the file back in a usb stick to my Linux computer.
The usual gnome 'generic PS printer' simply does not exist as a printer
of choice in the print dialogue box.

How do you guys manage to make PS files?
  

You could try exporting as a PDF, then running pdf2ps (from 
app-text/ghostscript) on it



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to save ps file from OpenOffice writer?

2005-11-20 Thread Zhang Weiwu
W.Kenworthy wrote:

This is a gentoo list - nobody here really cares what OO on windows
does :)

However, I produce pdf's all the time using standard tools from the
linux OO generated postcript files and the doze users seem happy.  The
postscript is pretty standard it seems, my only beef is that more
control (resolution, DPI etc) isn't available.
  

after a few test it looks obvious OO on gentoo suffer from the samiliar
problem as oo on Windows (sorry to mension Windows again). On my gentoo
there is only one printer installed on cups that is a LaserJet. Later I
discovered all PS files I provided are grayscale, and there is no
possibility to switch to color. On one other gentoo computer the PS
output is colorful thanks to the color printer installed.

This is not perfect but nevertheless I managed to make PS files. I only
need to take the ODT file to my another gentoo computer who has color
printer and make the PS, this is much simpler then asking Windows user
for help.

Certainly I could share my color printer. Is there an even better
(perfect) way?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to save ps file from OpenOffice writer?

2005-11-21 Thread Zhang Weiwu
Zac Medico wrote:

 Zhang Weiwu wrote:


 after a few test it looks obvious OO on gentoo suffer from the samiliar
 problem as oo on Windows (sorry to mension Windows again). On my gentoo
 there is only one printer installed on cups that is a LaserJet. Later I
 discovered all PS files I provided are grayscale, and there is no
 possibility to switch to color. On one other gentoo computer the PS
 output is colorful thanks to the color printer installed.

 This is not perfect but nevertheless I managed to make PS files. I only
 need to take the ODT file to my another gentoo computer who has color
 printer and make the PS, this is much simpler then asking Windows user
 for help.

 Certainly I could share my color printer. Is there an even better
 (perfect) way?


 You shouldn't need a physical printer attached in order to configure a
 dummy postscript color printer driver for cups.

 Zac

In the beging I am not sure of what port to use for my dummy printer,
and there seems no file port like in Windows (kill me if you don't
like to hear that word so much). Later I discovered I better install
this package:
cups-pdf

This is a very interesting package: it provide a virtual printer that
outputs PDF files. I think no other virtual printer is better then this
one, because if you use it and print-to-file it seems to be generating
standard PS file with good color at level 3, and if you do not use
print-to-file it generate good PDF document. So it works both ways,
helps in more situations then other PS printers. this is obviously my
recommendation for a dummy printer (point me a better one if you know).
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to save ps file from OpenOffice writer?

2005-11-21 Thread Zhang Weiwu
Zhang Weiwu wrote:

Zac Medico wrote:

  

Zhang Weiwu wrote:



after a few test it looks obvious OO on gentoo suffer from the samiliar
problem as oo on Windows (sorry to mension Windows again). On my gentoo
there is only one printer installed on cups that is a LaserJet. Later I
discovered all PS files I provided are grayscale, and there is no
possibility to switch to color. On one other gentoo computer the PS
output is colorful thanks to the color printer installed.

This is not perfect but nevertheless I managed to make PS files. I only
need to take the ODT file to my another gentoo computer who has color
printer and make the PS, this is much simpler then asking Windows user
for help.

Certainly I could share my color printer. Is there an even better
(perfect) way?
  

You shouldn't need a physical printer attached in order to configure a
dummy postscript color printer driver for cups.

Zac



In the beging I am not sure of what port to use for my dummy printer,
and there seems no file port like in Windows (kill me if you don't
like to hear that word so much). Later I discovered I better install
this package:
cups-pdf

This is a very interesting package: it provide a virtual printer that
outputs PDF files. I think no other virtual printer is better then this
one, because if you use it and print-to-file it seems to be generating
standard PS file with good color at level 3, and if you do not use
print-to-file it generate good PDF document. So it works both ways,
helps in more situations then other PS printers. this is obviously my
recommendation for a dummy printer (point me a better one if you know).
  

Just to mension, the PS generic drive used for cups-pdf can print up to
2400dpi.
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] failed to install tinyERP: how to fix?

2007-03-19 Thread Zhang Weiwu
Hello. When I emerged tinyERP server I was told I should run the below
command to configure it. But it doesn't work.

emerson files #  emerge --config =app-office/tinyerp-server-4.0.2


Configuring pkg...

 * In the following, the 'postgres' user will be used.
 * Creating database user terp ...
createuser: unrecognized option `--no-createrole'
Try createuser --help for more information.   [ !! ]

!!! ERROR: app-office/tinyerp-server-4.0.2 failed.
Call stack:
  ebuild.sh, line 1527:   Called pkg_config
  tinyerp-server-4.0.2.ebuild, line 69:   Called die

!!! Failed to create database user
!!! If you need support, post the topmost build error, and the call 
stack if relevant.

I first think maybe having --no-createrole is not important so I
modified /usr/portage/app-office/tinyerp-server/tinyerp-server-4.0.2.ebuild, 
replacing this line:
createuser --quiet --username=postgres --createdb --no-adduser 
--no-createrole ${TINYERP_USER}
with this line
createuser --quiet --username=postgres --createdb --no-adduser  
${TINYERP_USER}

My modification doesn't seem to work, I run emerge --config again but
still exactly the same error message.

How do I proceed on? Any suggestions?

Best Regards
Zhang Weiwu

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] VOIP solution?

2007-03-22 Thread Zhang Weiwu
Dear List

We are a tiny business running in China. In China ISP competition is not
very healthy, 2 major ISPs: China Telcom, China Netcom both defend their
own business by limiting network access to other ISP.

We have an office in Beijing, in Beijing there is only one ISP company
(monoplay business) that is China Netcom so they choose to use it. 
We have an office in Xiamen, in Xiamen there is only one ISP company
(monoplay business) that is China Telcom, so we choose to use it. 
We also have a server hosted by a hosting company, that company is very
smart, using some very special technology to connect both ISP.

Transfer data from our Xiamen Office to Beijing = 3 ~ 10 KB/s, no
connection can maintain 10 minutes. Transfer data from Beijing to Xiamen
is the same slow.

In Xiamen, transfer data from / to our server is 100KB/s; in Beijing
exactly the same.

We used to use skype, but quality isn't very high nor very realiable
because only a few super-nodes have fast access to both ISP. Besides we
got a few other problems too related to skype / gizmo.

I am thinking perhaps it's not difficult to set up some software on the
server that do the routing, e.g. it serve as a call center that both
office login to a VOIP software and it connects to the server, the
server talk to both sides. This is the fastest solution and it should
work. That's only my imagination, I am still searching for such
software.

Both offices use OpenSuSE as desktop computer and the server runs Gentoo
Linux. Both offices are behind each one's NAT firewall.

Any suggestions on a VOIP solution for our office?

P.S. 

Certainly THIS would work: set up VPN on the server and both office dial
into the VPN before they start to use some SIP software. This can solve
the problem, but I think it's over complicated.

Besides, I never tried VPN on Linux, only did it on Windows: on windows
the downside is once a host has dialed up VPN, local network connection
is hidden for it, that I can no longer access the hosts in the same
office that has not yet dialed in the same VPN. This is not acceptable
for us.
-- 
Zhang Weiwu
Real Softservice
http://www.realss.com
+86 592 2091112

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: VOIP solution?

2007-03-22 Thread Zhang Weiwu
于 Fri, 23 Mar 2007 05:40:08 +0100,deface写到:

 Your better off to use a VPN device to hold the connection across the 2
 offices. If your connection is extremely crap; then you'll need to
 upgrade to a better service provider. As far as your windows vpn issue,
 the device is not hidden; you just built your vpn connection wrong. you
 need to remove the option to use the remote host as a gateway, this will
 allow you to use your local interface for dns routing, not the other
 side.

Thanks!. I'll carefully think and check your suggested solutions.
However upgrade to a better service provider is absolutely impossible.
Everyone who had been in China know this is a joke. We hope this (lack
of competition in ICP business) can be solved in next 5 years.

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] tweak console (fb) color:

2006-04-12 Thread Zhang Weiwu


--
Zhang Weiwu   CEO Real Softservice
International business: http://www.realss.com
International sales:0086 10 84606011
Inland business:http://www.realss.cn
Inland sales call:  0086 592 2099987
Sent from Pine: http://www.washington.edu/pine/
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] VOIP solution for dump terminals?

2006-05-26 Thread Zhang Weiwu
Hello. In an office we helped set up, there are a lot of X terminals for the
clerks. (These X terminals are the old computers from school's lab,
installed simple Gentoo Linux only to start X). Now they need VIOP, is it
possible?  I mean, is it possible the clerks use VOIP on X terminals, when
the terminal equiped sound card, microphone but what they see on the screen
is actually produced by the powerful server (which has only one sound card)?

Ideas welcome! Thanks. I tried searched the portage and didn't discover a
VOIP solution that can work on console which might solve this problem.
(a.k.a when you make a VOIP call, please use this shortcut to connect to
your own X terminal with telnet and operate the VOIP software)


--
Zhang Weiwu   Real Softservice
International business: http://www.realss.com
International sales:0086 10 84606011
Inland business:http://www.realss.cn
Inland sales call:  0086 592 2099987
Sent from Pine: http://www.washington.edu/pine/
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] no longer able to print to inkjets after upgarde cups

2006-12-29 Thread Zhang Weiwu
Hello. I was using GutenPrint 5.0.0, ghostscript-esp-8.15.3 and cups
1.1.23 on my Ultrasparc U5 (Gentoo 2006.0). After I upgraded cups to
1.2.6 the inkjets no longer work.

Check cups' error log on 'debug' log level, it shows something went
wrong with ghostscript-esp

D [27/Dec/2006:00:54:47 +0800] [Job 1608] HWMargins = [ 0.000 0.000 0.000 0.000 
]
D [27/Dec/2006:00:54:47 +0800] [Job 1608] matrix = [ 10.000 0.000 0.000 -5.000 
-0.000 4210.000 ]
E [27/Dec/2006:00:54:47 +0800] PID 21443 (/usr/libexec/cups/filter/pstoraster) 
crashed on signal 10!
D [27/Dec/2006:00:54:49 +0800] cupsdAcceptClient: 7 from 218.193.55.195:631 
(IPv4)
D [27/Dec/2006:00:54:49 +0800] cupsdReadClient: 7 POST 
/printers/epson_stylus_r350 HTTP/1.1
D [27/Dec/2006:00:54:49 +0800] cupsdAuthorize: No authentication data provided.

There are no other information about PID 21443 in the log.

Should I try to re-emerge ghostscript-esp again or try other versions of
ghostscript? I heard that other versions of ghostscript won't work well
for inkjet printing.

I also attached the error log here


error_log.gz
Description: GNU Zip compressed data


[gentoo-user] cups doesn't work (pstoraster crash)

2007-01-26 Thread Zhang Weiwu
Hello. uname -a is:
Linux sappho.realss.com 2.6.18-gentoo-r3 #21 Thu Dec 21 10:12:23 HKT
2006 sparc64 sun4u TI UltraSparc IIi (Sabre) GNU/Linux

cups version: 1.2.6, ghostscript-esp version: 8.15.3 (all are latest
stable on Gentoo Sparc). Printing anything to my inkjet printer gets
this error messag:
/usr/libexec/cups/filter/pstoraster failed

The hardware is Okay (tested by 'cat text_file  /dev/usb/lp0' as well
as 'escputil -uc -r /dev/usb/lp0'). This printer also prints if it's
connected to Windows, so printer is okay too.

I checked cups error_log but I simply cannot find out a clue (this log
is too difficult to understand for my level of knowledge, it simply says
pstoraster crashed on signal 10.

Here is my error_log (LogLevel = debug): I catch this log by: first run
'tail -f /var/log/cups/error_log  cups_errorlog' and then print a test
job (standard cups test page)
gopher://sdf.lonestar.org/0/users/weiwu/cups_errorlog

Thanks a lot in advance!

Zhang Weiwu
Xiamen, China

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] mozilla consume a lot of X resource and made our company in difficult situation

2005-07-07 Thread Zhang Weiwu
Forgot to mension the X-terminal server (X-client machine) is running
Gentoo.
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] [OT] confusing RE doesn't work in diff

2005-07-25 Thread Zhang Weiwu
My RE must be wrong but I can hardly successfully match a whole line
like the below example:

This works:
[EMAIL PROTECTED]:/tmp$ egrep \b*\/[*].*[*]\/\b* Calendar.php
/* $Id: class.boalarm.inc.php,v 1.1.1.1 2005/03/18 09:17:36
dawnlinux Exp $ */
/* $Id: class.boalarm.inc.php,v 1.11 2004/05/23 14:51:27
ralfbecker Exp $ */

This doesn't work:
[EMAIL PROTECTED]:/tmp$ egrep ^\b*\/[*].*[*]\/\b*$ Calendar.php

any hint?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] confusing RE doesn't work in diff

2005-07-27 Thread Zhang Weiwu
Mariusz Pękala wrote:
 On 2005-07-25 17:50:37 +0800 (Mon, Jul), Zhang Weiwu wrote:
   My RE must be wrong but I can hardly successfully match a whole line
   like the below example:
   
   This works:
   [EMAIL PROTECTED]:/tmp$ egrep \b*\/[*].*[*]\/\b* Calendar.php
   /* $Id: class.boalarm.inc.php,v 1.1.1.1 2005/03/18 09:17:36
   dawnlinux Exp $ */
   /* $Id: class.boalarm.inc.php,v 1.11 2004/05/23 14:51:27
   ralfbecker Exp $ */
   
   This doesn't work:
   [EMAIL PROTECTED]:/tmp$ egrep ^\b*\/[*].*[*]\/\b*$ Calendar.php
   
   any hint?
 
 man grep:
 The symbol \b matches the empty string at the edge of a word
 
 It seems that '/' is not considered to be a part of a word.
 
 I suppose you may use ^[[:space:]]*/[*].*[*]/[[:space:]]*$ Calendar.php

Thank you! Your RE suggested does work and I discovered this [[:space:]] pretty 
useful. I missed it in man grep.

However there is another strange behavor. This works:

[EMAIL PROTECTED]:/tmp$ cat header.inc.php
?php
/* $Id: header.inc.php.template,v 1.58 2005/07/08 05:00:14 milosch Exp 
$ */
[EMAIL PROTECTED]:/tmp$ grep ^[[:space:]]*/[*].*[*]/[[:space:]]*$ 
header.inc.php
/* $Id: header.inc.php.template,v 1.58 2005/07/08 05:00:14 milosch Exp 
$ */

And this doesn't work:

[EMAIL PROTECTED]:/tmp$ :empty
[EMAIL PROTECTED]:/tmp$ diff -I ^[[:space:]]*/[*].*[*]/[[:space:]]*$ 
header.inc.php empty
1,2d0
 ?php
   /* $Id: header.inc.php.template,v 1.58 2005/07/08 05:00:14 milosch Exp 
$ */

in man it's being said, 
   -I RE  --ignore-matching-lines=RE
  Ignore changes whose lines all match RE.

I read man grep and it seems there are two sets of RE, extended and basic. But 
it's not mensioned in diff(1) wheather or not diff(1) takes extended or basic 
RE. I am using Debian so it should be gnu diff.

Any thing more to teach me?

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] why I cannot compile gsview? don't have idea what is this error message?

2005-08-10 Thread Zhang Weiwu
bash-2.05b# emerge gsview
Calculating dependencies ...done!
 emerge (1 of 1) app-text/gsview-4.6 to /
!!! Security Violation: A file exists that is not in the manifest.
!!! File: files/digest-gsview-4.5

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] fontconfig question: mozilla and gnome behave differently?

2005-09-17 Thread Zhang Weiwu
Hello. Here is my situation.

I love to use the font 'Bitstream Vera Serif' as the default font for my
Gnome 2.8 desktop for every situation except mono. Actually I wish to use it
exclusively as default, for example, mozilla use 'serif' font as default,
and I wish Bitstream Vera Sans is used as 'serif'. This seems to be default
in gentoo, that is okay. I also wish to use 'Bitstream Vera Sans' as 'sans'.

But I wish when the character being displayed does not exist in Bitstream
Vera Serif (example, Chinese characters), the character from 'AR PL
ShangHeiSun Uni', which is a font I installed by myself, is used in place. I
also wish 'AR PL ZenKai Uni' is used in place of 'sans' when the character
does not exist in Bitstream Vera Sans.

I found it pretty difficult to set it that way. For example, I set this in
my fonts.conf

alias
familyserif/family
prefer
familyBitstream Vera Serif/family
familyAR PL ShanHeiSun Uni/family
/prefer
/alias
alias
familysans-serif/family
prefer
familyBitstream Vera Sans/family
familyAR PL ZenKai Uni/family
/prefer
/alias

The result is: my locale is zh_CN.UTF-8, in Gnome applications the apps work
as expected, but if using epiphany, interface is using correct Bitstream /
ShangHeiSun mixed font, browse a webpage encoded in UTF-8, the whole webpage
is displaed in 'AR PL ShangHeiSun Uni' font even if all the pages are
English.  Also, mozilla display all webpages encoded in UTF-8 as well as its
own user interface (menu, button, location bar) in 'AR PL ShangHeiSun Uni'
font.

It seems when things comes to mozilla related (epiphany uses gecko), only
the font that is encoded in Unicode will be used to display UTF-8 content?
Is ShangHeiSun used exclusively because it is a unicode font?

--
Zhang Weiwu   Real Softservice
International business: http://www.realss.com
International sales:0086 10 84606011
Inland business:http://www.realss.cn
Inland sales call:  0086 592 2099987
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] backup tool for my Windows 98 desktop?

2006-09-02 Thread Zhang Weiwu
Hello. Most of our computers in the Office runs Linux, however we have
to keep a Win98 desktop (dual-boot with Linux) so that we can test
several software. This is a purely testbed machine that need regular
re-install. e.g. once a month, because it's placed publically and breaks
frequently.

I am tired of re-installing Windows 98, and then complete with other
software (filezilla, 7-zip, extra editors..., OOO). I think perhaps it's
easier after I re-installed everything I make a backup of the Windows
partition onto a CDROM and later use that CDROM to restore the
partition.

The partition is 5GB but actual data on it is smaller then 600MB right
after Win98 and complementary software installed.

First I thought using gentoo live CD, use dd(1) to copy the partition to
a file and burn it on the live CD. However the file must be too big to
fit on CDR (en I think perhaps I can compress it), and yet how do I add
it to the live CD iso image so that cdrecord(1) can burn it? I think
perhaps I should first try borrow experience on gentoo user list.

How do you think is the best approach?

P.S. I know norton Ghost can do this but I don't think it's worth to buy
a copy.

-- 
gentoo-user@gentoo.org mailing list