[gentoo-user] Re: OT - which X terminal do you use?

2006-05-09 Thread Moshe Kaminsky
* Neil Bothwick [EMAIL PROTECTED] [09/05/06 21:45]:
 I am writing a comparative review of a number of X terminals, so I
 thought I'd draw on the collective wisdom of this list. which are your
 most/least favourite X terminals, and why?
 

I mostly use xterm, since it's fast and has almost all of the features I 
need. But when I need to read/write Hebrew, I use mlterm, which has bidi 
support

Moshe


pgpSeVxsABNsS.pgp
Description: PGP signature


[gentoo-user] Re: [OT] kill a child and suicide

2006-05-04 Thread Moshe Kaminsky
* Jorge Almeida [EMAIL PROTECTED] [03/05/06 23:30]:
 On Wed, 3 May 2006, Moshe Kaminsky wrote:
 
 * Jorge Almeida [EMAIL PROTECTED] [03/05/06 19:30]:
 On Wed, 3 May 2006, Moshe Kaminsky wrote:
 
 You can use 'kill 0' to send a signal to your own process group.
 Something like this:
 
 #!/bin/sh
 trap 'kill 0;exit' TERM
 echo before
 ( sleep 30; echo inside )
 echo after
 
 No use. trap will wait till the running child is completed, which is not 
 what
 I want (as reply of Hans-Werner).
 
 Well, I just tried it, and it worked.
 
 You mean the parent received the TERM signal while sleep'ing 30 and the
 child terminated before the 30 seconds were through?
 I intend to use the script with a long rsync, which must terminate when
 receiving the signal.
 I tested your script with 3000 instead of 30, and the script outputs
 after and terminates when I send it a TERM; however, a process sleep
 3000 still comes out in the output of ps auxf (as an orphan), I had to
 kill it explicitly.

Funny, I just tried the same, and it worked. It also didn't print any 
after (appropriately, since the sig handler includes 'exit'), and I 
didn't find any sleep process. Maybe it was from some different 
experiment?

Moshe

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

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpUNCcJZXf0C.pgp
Description: PGP signature


[gentoo-user] Re: [OT] kill a child and suicide

2006-05-04 Thread Moshe Kaminsky
* Hans-Werner Hilse [EMAIL PROTECTED] [04/05/06 21:00]:
 Hi,
 
 On Thu, 4 May 2006 18:55:28 +0300
 Moshe Kaminsky [EMAIL PROTECTED] wrote:
 
  Funny, I just tried the same, and it worked. It also didn't print any 
  after (appropriately, since the sig handler includes 'exit'), and I 
  didn't find any sleep process. Maybe it was from some different 
  experiment?
 
 I don't think so. You probably sent the signal to the child process
 (CTRL-C, perhaps?) and the script at once, not to the parent only.
 
 proper way would be to try it like this:
 
 ./test.sh 
 # wait some short time
 kill -TERM $!
 
 After that I see that the child process is still running.

You are right. I was using 'kill -TERM %1', which sends the signal to 
the whole group, I guess. Anyway, I just tried the analogous thing with 
perl, and it does work. I wonder what is the reasoning in the bash case.

Moshe



pgp51eZp2xREW.pgp
Description: PGP signature


[gentoo-user] Re: [OT] kill a child and suicide

2006-05-03 Thread Moshe Kaminsky
* Jorge Almeida [EMAIL PROTECTED] [02/05/06 16:00]:
 parent.sh
   #!/bin/bash
   do something
   /path/to/child.sh
   do something else
 
 When parent.sh receives a TERM signal, I would like child.sh to receive
 TERM also, and then parent.sh receive TERM.
 The do something else part is why I can't use exec /path/to/child.sh. Is 
 there some way to achieve this?

You can use 'kill 0' to send a signal to your own process group. 
Something like this:

#!/bin/sh
trap 'kill 0;exit' TERM
echo before
( sleep 30; echo inside )
echo after

Note that you can also send the signal with the negative of the pid, and 
then it goes to the whole process group.

Moshe

 
 -- 
 Jorge Almeida
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpu8dRCB1VJW.pgp
Description: PGP signature


[gentoo-user] Re: [OT] kill a child and suicide

2006-05-03 Thread Moshe Kaminsky
* Jorge Almeida [EMAIL PROTECTED] [03/05/06 19:30]:
 On Wed, 3 May 2006, Moshe Kaminsky wrote:
 
 You can use 'kill 0' to send a signal to your own process group.
 Something like this:
 
 #!/bin/sh
 trap 'kill 0;exit' TERM
 echo before
 ( sleep 30; echo inside )
 echo after
 
 No use. trap will wait till the running child is completed, which is not what
 I want (as reply of Hans-Werner).

Well, I just tried it, and it worked.

Moshe


pgpbwqTHYyGA8.pgp
Description: PGP signature


[gentoo-user] Re: [OT] Can bash do comments on files?

2006-02-13 Thread Moshe Kaminsky
* Mrugesh Karnik [EMAIL PROTECTED] [13/02/06 14:15]:
 
 On Monday 13 February 2006 11:04, Moshe Kaminsky wrote:
 
  You can use extended attributes for this. See getfattr(1) and attr(5)
  from sys-apps/attr.
 
 Quoting the man page for attr:
 
 Extended attributes implement the ability for a user to attach name:value 
 pairs to objects within the _XFS_ filesystem.

I believe you are looking at the man page for the attr command (attr(1)) 
rather than attr(5), which states that attributes are implemented for 
ext2, ext3 and xfs. I believe they are also implemented for reiserfs 
since the option exist in the kernel configuration, but I'm not sure.

Moshe

 
 Does it work for other file systems?
 
 Mrugesh
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpZ5RA5STvAe.pgp
Description: PGP signature


[gentoo-user] Re: [OT] Can bash do comments on files?

2006-02-12 Thread Moshe Kaminsky
* Alan E. Davis [EMAIL PROTECTED] [13/02/06 02:08]:
 
 On 2/13/06, Gerhard Hoogterp [EMAIL PROTECTED] wrote:
  Under linux that's not nessecary
  as you can just use long filenames including spaces..
 
 
 I do that, of course.   It solves 95% of my issues.  Somehow, I still
 miss that feature.  Additional comments would help me, for example,
 when I have a series of source code files with similar file names, and
 need to make comments to distinguish them.  Especially when other
 programs are looking for the file names in a series.

You can use extended attributes for this. See getfattr(1) and attr(5) 
from sys-apps/attr. I think you need to enable this for the file system 
you are using when compiling the kernel (and maybe also pass the 
use_xattr option when mounting)

HTH,
Moshe
 
 Alan
 
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpe6eBwSGaDB.pgp
Description: PGP signature


[gentoo-user] Re: vim USE flag: vim-with-x

2006-01-28 Thread Moshe Kaminsky
* Walter Dnes [EMAIL PROTECTED] [27/01/06 10:18]:
 
 On Sun, Jan 22, 2006 at 06:13:24AM +, Ciaran McCreesh wrote
 
  + and * , but only if you USE=vim-with-x.
 
   Did that, and it doesn't seem to help.  Here's my status...
 
 [m3000][root][~] emerge --pretend --verbose vim
 
 These are the packages that I would merge, in order:
 
 Calculating dependencies ...done!
 [ebuild   R   ] app-editors/vim-6.4  -acl -bash-completion -cscope -gpm
 -minimal -nls -perl -python -ruby +vim-with-x 0 kB
 
   Let me re-iterate what I'm trying to do...
   - In X, highlight a text string (e.g. a URL) in Firefox
   - hit {CTRL}{ALT}{F1}, taking me to a *REAL TEXT CONSOLE* running mutt
 or slrn, with vim as the editor
   - paste the complex URL directly into a message I'm composing with vim

Did you set DISPLAY before running mutt/slrn?

Moshe

 
 -- 
 Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1
 My musings on technology and security at http://tech_sec.blog.ca
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgp3biyvAhVZC.pgp
Description: PGP signature


[gentoo-user] Re: vim USE flag: vim-with-x

2006-01-22 Thread Moshe Kaminsky
* Walter Dnes [EMAIL PROTECTED] [22/01/06 06:14]:
   The one thing I find painful in my setup is copying text from the X
 session to a text session or visa versa.  I end up opening vim in X,
 saving the selected text to ~/x, switching to a text console, and then
  :r ~/x
 in vim.  At work, where I have to use Windows (ptui) I can copy text
 from the GUI to the clipboard, {ALT-TAB} to a vim session, and paste the
 clipboard with * even if vim is running in a textmode console.  Is
 there some similar channel for vim in linux?

If you just set DISPLAY correctly before you run vim (usually ':0.0'), 
you can do it the same. You can even use the mouse (if you use gpm)

Moshe

 
 -- 
 Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1
 My musings on technology and security at http://tech_sec.blog.ca
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpZw3p9JjUeB.pgp
Description: PGP signature


[gentoo-user] Re: mathml problems with firefox 1.5

2005-12-07 Thread Moshe Kaminsky
* Edwin Kapauni [EMAIL PROTECTED] [07/12/05 18:46]:
 
 Moshe Kaminsky wrote:
 Hi,
 It's not a fonts problem, I also have the fonts installed. The page
 was rendered correctly with the previous version of firefox, and is
 still rendered correctly with mozilla.
 
 And it's not a firefox problem either. Rendering that page
 http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml is much
 better using binaries from
 ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.5/linux-i686/en-US/firefox-1.5.tar.gz

Appears you are right! emerging mozilla-firefox-bin solves the problem. 
I will update the bug report.

Thanks,
Moshe
 
 
 
 
 
 -- 
 gentoo-user@gentoo.org mailing list
 


-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpIDzgMPsS1o.pgp
Description: PGP signature


[gentoo-user] Re: mathml problems with firefox 1.5

2005-12-06 Thread Moshe Kaminsky
Hi,

It's not a fonts problem, I also have the fonts installed. The page was 
rendered correctly with the previous version of firefox, and is still 
rendered correctly with mozilla.

I submitted a bug, bug #114656

Thanks,
Moshe

* Chris Fairles [EMAIL PROTECTED] [05/12/05 11:08]:
 
 i have mathematical and texcm-ttf fonts installed and firefox 1.5 does not 
 render them correctly as well.
 
 haven't found a work-around for it yet
 
 Chris
 
 
 Moshe Kaminsky wrote:
 
 Hi,
 It appears that firefox 1.5 doesn't render mathml correctly. The previous 
 version (1.07) did it right. Anyone else can see this? A test page is at:
 http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml
 Thanks,
 Moshe
  
 
 -- 
 gentoo-user@gentoo.org mailing list
 


-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpltqcAf3H4h.pgp
Description: PGP signature


[gentoo-user] mathml problems with firefox 1.5

2005-12-05 Thread Moshe Kaminsky
Hi,

It appears that firefox 1.5 doesn't render mathml correctly. The 
previous version (1.07) did it right. Anyone else can see this? A test 
page is at:

http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml

Thanks,
Moshe

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpo53pQGE0fH.pgp
Description: PGP signature


[gentoo-user] Re: dev-perl/Data-Dumper ebuild

2005-10-20 Thread Moshe Kaminsky
Hi,

* Yoandy Rodriguez Martinez [EMAIL PROTECTED] [20/10/05 01:49]:
 Hello there, I'm emerging taskjuggler and emerge complains about
 dev-perl/Data-Dumper, a quick look at dev-perl told me that there were
 no such package but google says it existed once. Any hint about how to
 solve this?

The Data::Dumper module is part of the core perl installation. You can 
verify it is installed with

perl -MData::Dumper -e 1

If this runs without errors, the module is installed. What is the error, 
exactly? I didn't notice that the ebuild itself mentions Data-Dumper.

Moshe


pgp9T7nM7lNV4.pgp
Description: PGP signature


[gentoo-user] Re: ExtUtils/MakeMaker.pm troubles

2005-10-04 Thread Moshe Kaminsky
* James [EMAIL PROTECTED] [04/10/05 18:05]:
 
 Moshe Kaminsky kaminsky at math.huji.ac.il writes:
 
 
  Though ExtUtils::MakeMaker can be emerged as a separate package, it also 
  comes bundled with perl. I don't know why you don't have it; Do you have 
  the 'minimal' use flag set for perl? If so, I would try to re-emerge 
  perl without it.
 
 OK, My use flags in make.conf are:
 
 
 USE= perl -gtk -gnome -qt -kde acl apm hardened kerberos krb4 minimal ssl 
 -alsa
 -arts -avi -cups -gif -gstreamer -gtk2 -jpeg -kde -motif -mp3 -mpeg -ogg
 -oggvorbis -png -qt -quicktime -spell -vorbis -X  -xmms -xv
 
 (note, I just added perl)
 
 How do I track down what USE flags to set, so that perl actually builds
 MakeMaker.pm?
 

As I said, it is the 'minimal' flag (the flag named 'minimal') that 
causes it, and it is indeed in your USE flags. Just remove it and you're 
done.

Moshe


pgpWECtRk2sQz.pgp
Description: PGP signature


[gentoo-user] Re: ExtUtils/MakeMaker.pm troubles

2005-10-03 Thread Moshe Kaminsky
Hi,

* James [EMAIL PROTECTED] [03/10/05 23:00]:
 
 James wireless at tampabay.rr.com writes:
 
 
   Source unpacked.
Using ExtUtils::MakeMaker
  Can't locate ExtUtils/MakeMaker.pm in  at INC ( at INC contains: 
  /etc/perl
  usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6
  usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i686-linux
  usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl
  usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/local/lib/site_perl
 
  at Makefile.PL line 1.
  BEGIN failed--compilation aborted at Makefile.PL line 1.
  make: *** No targets specified and no makefile found.  Stop.
 
 
  Install ExtUtils-MakeMaker-6.20 into
  /var/tmp/portage/ExtUtils-MakeMaker-6.20/image/ category perl-core
  make: *** No rule to make target
  `/usr/lib/perl5/5.8.6/i686-linux/CORE/config.h', needed by `Makefile'.  
  Stop.
 
 I tried both recent versions of ExtUtils-MakeMaker 6,20 and 6.21, 
 both failed. I also tried
 'USE=ithreads emerge libperl'
 which did not work either.
 
 Any other ideas?

Do you actually have perl installed? If so, which version? If you don't 
have perl, I don't think you can even install perl modules.

Moshe

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

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpuu6v89xJE8.pgp
Description: PGP signature


[gentoo-user] Re: ExtUtils/MakeMaker.pm troubles

2005-10-03 Thread Moshe Kaminsky
* James [EMAIL PROTECTED] [03/10/05 23:48]:
 
 Moshe Kaminsky kaminsky at math.huji.ac.il writes:
 
 
  Do you actually have perl installed? If so, which version? If you don't 
  have perl, I don't think you can even install perl modules.
 
 I thought that was clear, that perl was installed:
 
 dev-lang/perl
  Available versions:  5.8.6-r5 5.8.6-r6 ~5.8.7 ~5.8.7-r1
  Installed:   5.8.6-r6
 
 sys-devel/libperl
  Available versions:  5.8.5 ~5.8.5-r1 5.8.6 5.8.6-r1 ~5.8.7
  Installed:   5.8.6-r1
 
 
 Any thing I missed?

Then you are supposed to have ExtUtils::MakeMaker installed as part of 
perl. Do you have /usr/lib/perl5/5.8.6/ExtUtils/MakeMaker.pm?

Moshe

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

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpCG2jcZnHXu.pgp
Description: PGP signature


[gentoo-user] Re: ExtUtils/MakeMaker.pm troubles

2005-10-03 Thread Moshe Kaminsky
* James [EMAIL PROTECTED] [04/10/05 02:57]:
 
 Moshe Kaminsky kaminsky at math.huji.ac.il writes:
 
 
  Then you are supposed to have ExtUtils::MakeMaker installed as part of 
  perl. Do you have /usr/lib/perl5/5.8.6/ExtUtils/MakeMaker.pm?
 
 No, it's not there.
 
 emerge  ExtUtils-MakeMaker

Though ExtUtils::MakeMaker can be emerged as a separate package, it also 
comes bundled with perl. I don't know why you don't have it; Do you have 
the 'minimal' use flag set for perl? If so, I would try to re-emerge 
perl without it.

Moshe



pgpCb96k3Jt8l.pgp
Description: PGP signature


[gentoo-user] Re: Make a running process nohup?

2005-09-07 Thread Moshe Kaminsky
Hi,

* Qiangning Hong [EMAIL PROTECTED] [07/09/05 12:20]:
 
 Is it possible make a running process nohup so that I can leave it
 running after I logout without interrupt it?

I don't know a standard way to do it, but I think what might work is to 
run gdb within screen, in gdb say 'attach pid' (where pid is the 
process id of your process), then say 'handle SIGHUP ignore nostop' and 
finally 'cont' to continue the program. Didn't try it.

Moshe

 
 -- 
 Qiangning Hong
 http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)
 
 Registered Linux User #396996
 Get Firefox! http://www.spreadfirefox.com/?q=affiliatesid=67907t=1
 Thunderbird! http://www.spreadfirefox.com/?q=affiliatesid=67907t=183
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgp6lsCSygUxZ.pgp
Description: PGP signature


[gentoo-user] Re: modifying locally an ebuild

2005-08-31 Thread Moshe Kaminsky
 Fernando Canizo schreef:
 
  This is the thing: in mutt you can flag a message as important (you 
  got only one flag), also you have a 'ctrl-d' command that deletes a 
  full thread. Sometimes threads get off-topic (an unconstructive 
  flame
   for example) and when i realize that, and don't like the new topic i
   just 'ctrl-d' them. But what if i've flagged some message? It means 
  that it's important to me, so i wanted to remain undeleted.  The 
  actual behaviour of mutt just delete everything.
  
  That's what the patch provides me, and with a single line of code. 
  Simple. And David (the autor) do it so well that even added a new 
  option for it to be in '~/muttrc' and let the default to be the old 
  behaviour. So i think this patch can get to portage easily.
  
  By the way, if anyone interested, this is it: 
  http://home.uchicago.edu/~dgc/sw/mutt/patch-1.5.8.dgc.flagsafe.1

This is a bit OT here (and I'm also replying to the wrong message, since 
I don't have the whole thread), but it seems that you can achieve the 
same goals without patching mutt: First, as you might be aware, it's 
possible to delete a subthread (bound by default to ESC d.) Second, I 
think you can do exactly what you want with something like:

macro index \Cd \Ct .\nesctD ~T ! ~F\n
Delete unflagged thread messages

(all in one line.) This untags all messages (\Ct .), tags the thread 
(esct), then deletes messages which match the pattern that say the 
message is tagged (~T) and not flagged (! ~F). I assumed here that the 
key bindings are the default ones, and that you have 'delete_untag' set 
(otherwise you will want to untag them yourself, with an extra \Ct . 
at the end.) The only problem is that it will remove all tags you 
previously had.

Moshe



pgpnXiUnIFucd.pgp
Description: PGP signature


[gentoo-user] Re: [OT?]Text editor and scripting weirdness

2005-08-30 Thread Moshe Kaminsky
Hi,

* Holly Bostick [EMAIL PROTECTED] [30/08/05 17:30]:
 
 Hi all,
 
 I was having a nice day when this started happening completely out of
 the blue (no emerges, no changes, no nothing prior to what I'm about to
 explain):
 
 I use Openbox, and I finally just started setting it up to use more of
 its features, notably the dock.
 
 Now, I always ran OB from a script (pointed the exec line in the
 usr/share/xsessions openbox.desktop entry to point to it), in order to
 start various apps (feh, pypanel, gnome-settings-daemon, numlockx) prior
 to starting OB itself.

Why do you have to modify the .desktop file? don't you have an option in 
the display manager to choose the xsession file?
 
 So I added the dockapp entries to this script, and (after some
 tweakage), all was well.
 
 Until I logged out and back in, and suddenly OB would not start from the
 script-- well, it would, but I'd get the 'your session has lasted less
 than 10 seconds' error.
 
 ~/.xsession.errors said that there was an unexpected EOF at the end of
 the script.
 
 And sure enough, there is an extra (blank) line after exec openbox,so
 the error itself makes sense, kinda.

I find it highly unlikely that this is the problem. This should be just 
a regular shell script, and should have no problems with blank lines. 
Can you post this file?

 
 The problem is, I can't get rid of it.
 
 I usually edit the script in gedit, but I've edited out that blank line
 in nano, kate, and nedit as well, and it keeps coming back (I edit it
 out, save the file, try logging in via the script, error recurs).

The convention is that text files should end with an eol. I guess these 
editors add it. I know vim does it, unless you explicitly ask it not to.

 
 I can get into OB by changing the .desktop entry back to Exec=openbox
 (but then of course I have nothing but the menu), and I can run the
 (modified to remove 'exec openbox') script after OB has started, and all
 my dockapps and helper apps appear normally.
 
 But this is obviously not optimal (unless anyone knows a way to make OB
 run the script itself when it starts, but if we could do that, we
 wouldn't have to be editing ~/.xsession or writing extra scripts in the
 first place).

I use fluxbox, which I think is very similar, and I can specify startup 
applications in the ~/.fluxbox/apps file. But I think using ~/.xsession 
is better, since then if you decide to switch to another wm, you can 
just change one line in .xsession, and still have the same other apps 
running.
 
 What I want is to permanently get rid of this bogus EOF in my script, so
 that it works the way it did 3 hours ago.

As I said, I don't believe it's the problem. Can you post .xsession and 
.xsession-errors?

Moshe

 
 Does this ring a bell to anybody?
 
 Holly
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpxXwoueY3NM.pgp
Description: PGP signature


[gentoo-user] Re: why gentoo doesn't have long description?

2005-08-24 Thread Moshe Kaminsky
* Fernando Canizo [EMAIL PROTECTED] [24/08/05 14:07]:
 
 El 24/ago/2005 a las 04:01 -0300, Jonas me decía:
  Second, the whole idea is to do this for non-connected systems. Meaning, a
  solution not involving the Internet... =)
  If you're refering to the fact that the person doesn't have an internet 
  connection when he wants to view this information throught the emerge 
  interface, then you're wrong. When you want to install or you're just 
  searching for a package you're using the emerge interface , when you 
  need more info you have to 1) open your browser 2) type in the url (if 
  you're lucky you know the url or it's in your browsers cache) 3) search 
  for the package on the website , while instead you could just do 
  something like emerge --desc package. Now what's quicker and makes more 
  sence ?
 
 Exactly! That's what i'm refering to. It's not an issues of connection it's an
 issue of lazyness! It's like: -- hey what are you doing this weekend? -- 
 don't
 know, it's cold and raining, i think i'm gonna sit in my throne and check 
 what's
 new on 'app-vim' to improve my vimyness, if find something interesting i'll
 check the package webpage.
 
 For now i'm using 'questo':
 === script 
 #!/bin/bash
 # lun may  2 20:57:24 ART 2005
 # conan - GPLed
 #
 # script to check for apps on rainy sunday morning
 
 BASE_DIR=/usr/portage/
 
 [ $# -ne 1 ]  echo Uso: questo category  exit 0
 
 cd $BASE_DIR$1
 for package in * ; do
   eix ^$paquete\$
   echo Looking for: $1/$paquete. ENTER to continue...
   read
 done
 === end script 
 
 Now i took sugestion from Ciaran to look in metadata.xml, i check a couple by
 hand and see the 'longdesc' field but... with short descriptions! Now maybe i
 just choose two with bad luck, but i got a feeling that gentoo maintainers
 doesn't like to provide longdesc, although there is the posibility.
 
 I was thinking of doing a little script that gives longdesc found in metadata 
 to
 confirm this, but since i don't know nothing about xml, think it gonna take a
 little bit more that if there were already an application to check 
 'metadata.xml'

If you have the XML::Simple perl module (which can be emerged as 
XML-Simple), you can do

perl -MXML::Simple -le 'print XMLin(shift)-{longdescription}' file

where file is the metadata.xml file.

However, it appears that this field is not widely supported. Instead, 
you might use something like

lynx -dump -nolist `esearch -o %h package`

to dump the homepage of the package as text (of course, you still need 
to be online for that)

Moshe

PS. Sorry if this actually seems on-topic :)



pgp8If83DuHeQ.pgp
Description: PGP signature


[gentoo-user] Re: [asking again] keyboard/mouse woes on 2.6 kernel

2005-08-17 Thread Moshe Kaminsky
 c14053e0  006e 018b730b 
 0001d93c c0399bc0
 Aug 16 22:48:08 venus c1527020 c1527144 c1542000  c03fa380 c1542000 
  c0119771
 Aug 16 22:48:08 venus Call Trace:
 Aug 16 22:48:08 venus [c0119771]
 Aug 16 22:48:08 venus [c01197ba]
 Aug 16 22:48:08 venus [c012588b]
 Aug 16 22:48:08 venus [c012580f]
 Aug 16 22:48:08 venus [c0100cf9]
 Aug 16 22:48:08 venus events/0  R running 0 4  1 
 5 3 (L-TLB)
 Aug 16 22:48:08 venus khelper   S C01118A4 0 5  1 
 6 4 (L-TLB)
 Aug 16 22:48:08 venus c154bf5c 0046 c154bf30 c01118a4 d84a45e0 dfe0aa40 
 c1511824 dfe0aa40
 Aug 16 22:48:08 venus  c1405d40 c14053e0  0156 0c3532c5 
 0001d92f dfe0aa40
 Aug 16 22:48:08 venus dffdf540 dffdf664  0246 d2e6fdec c151180c 
 0246 c1511800
 Aug 16 22:48:08 venus Call Trace:
 Aug 16 22:48:08 venus [c01118a4]
 Aug 16 22:48:08 venus [c0122290]
 Aug 16 22:48:08 venus [c0121f8d]
 Aug 16 22:48:08 venus [c0111863]
 Aug 16 22:48:08 venus [c0111863]
 Aug 16 22:48:08 venus [c01221c0]
 Aug 16 22:48:08 venus [c012588b]
 Aug 16 22:48:08 venus [c012580f]
 Aug 16 22:48:08 venus [c0100cf9]
 
 etc
 
 -- 
 gentoo-user@gentoo.org mailing list
 
 -- 
 gentoo-user@gentoo.org mailing list
 


-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgp8Oxhc2a76i.pgp
Description: PGP signature


[gentoo-user] Re: Hints for using Unison?

2005-08-01 Thread Moshe Kaminsky
Hi,

* Mark Knecht [EMAIL PROTECTED] [01/08/05 02:42]:
 
 On 7/31/05, Neil Bothwick [EMAIL PROTECTED] wrote:
  On Sun, 31 Jul 2005 13:43:16 -0700, Mark Knecht wrote:
  
  One possibly tricky part about this will be that in some cases we
   have found bad rips and have reripped files to fix that. In this case
   there is going to be a newer file in each either location with the
   same name but with a new size  date. Will Unison give me an option to
   just accept the newer one in each location and remove or backup the
   older one automatically?
  
  Unison is particularly good at handling this sort of situation. It keeps
  a log of the file dates each time you sync and asks for manual
  intervention when a file have been updated on both sides since the last
  sync.
  
 
 Hi Neil,
OK, so I tried Unison and, twice, it just gets stuck at the same
 file. I'm running it like this:
 
 unison /home/mark/music /mnt/Musiclib 
 
 The gui comes up and the program gets started but then it just hangs.
 There's no obvious network activity or local disk activity. If I let
 the program sit long enough for the screensaver to kick in then when I
 unlock the screen the program is just a grey box.
 
 So far I cannot even kill the thing. kill -9 pid or killall -9 unison
 act like they killed it but ps aux says the process is still there.
 It's even there if I try killing the gui in Gnome. The gui goes away
 but the process persists.
 
 Any ideas on what I'm doing wrong?

This is just a guess, but I know that unison is using some lock files, 
and there might be problems with this on nfs mounted directories. I 
think the problem might be solved if you run unison on both machines, 
rather than using the mounted directory. If that's impossible, you might 
be able to change the location of the lock files by changing the root to 
a local directory.

Moshe

 
 Thanks,
 Mark
 
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpK1wfnyQpbt.pgp
Description: PGP signature


[gentoo-user] Re: [OT, game-related,long] Changing file dates?

2005-08-01 Thread Moshe Kaminsky
, when I installed the game) than the
 replacement files --which might have been packed and uploaded
 *yesterday*. But since WinRAR and all other native and non-native
 archive manangement programs that I've tried are (naturally) going to
 extract the plugin files without modifying the date of the archived
 files (and don't seem to have an option to change that, because it
 doesn't make much sense to want to do that in the first place)... the
 extracted archives are almost always going to have an 'earlier' date
 than the original game files, and be overridden by the original game
 files (which is not the way it's supposed to work).
 
 Now, what's weird is that this *did* work, but (as is traditional for
 me), I got a bit too tangled up in plugin conformance testing to know
 where the heck I was anymore, so I backed up the install, reinstalled,
 and started over, and suddenly my texture replacer isn't replacing
 textures anymore. The very idea of trying to debug the differences
 between the old install and the new is too horrifying to comtemplate.
 Plus, it's not to the point (as of yet, and hopefully it won't ever be).
 
 So what I need is a reasonable way for an 'average user' to fix this. On
 my personal system, because I have installed the 15-hour version
 (which dates correctly) as well as the Loki install (which is what I'm
 actually playing), I can just copy the original *.bsa and *.esm files
 over the Loki-extracted ones (which I just thought of and which seems to
 work on paper), but I couldn't advise that to the general public.
 
 Having written all of this out, I can see that this is most properly
 fixed by the Loki installer script (which should not change dates when
 extracting the game files from the *.cab files, if it is in fact doing
 so), and I will post on their forums to request that change (since I
 can't get the script or archive or whatever it is open to change
 anything myself).
 
 However, since I have no way of knowing whether anyone there will
 actually give a hoot, or have time to fix it in a timely manner, what
 I'm looking for is a workaround.
 
 Obviously, I could change the system date (to something like august
 1st 2000) prior to installing using the Loki script, then change it
 back, but that's just 1) ugly; 2) dangerous. I wouldn't want to suggest
 that as a workaround, even if the HOW-TO never went past my own /docs
 folder.
 
 What I would like is a way to change the date of specific files to a
 specific date (in the past), without changing (editing) them, which is
 not an option with the original Morrowind files (or, if it is possible,
 it's only so with additional external tools and a whole lot of difficulty).
 
 Is this even possible to do? Now that I've said it out loud, it
 doesn't sound like something Linux would want me to do at all, but
 perhaps there's some reason that server admins might need to do such a
 thing, in which case Linux definitely provides a way to do it.
 
 If it is not possible, or is unreasonably dangerous to explain on a
 public forum, can anyone think of an alternative solution, given the
 circumstances, until such time as the Loki installer is fixed (if in
 fact it needs to be fixed and the issue is not that my system is borked
 somehow)?
 
 Or is my system possibly borked somehow and these files are being
 incorrectly stamped due to something completely unrelated to the installer?
 
 Anyway, thanks for listening (if you did), and thanks for any ideas.
 
 Holly
 
 P.S. This all sounds very difficult and unpleasant-- and it is-- but,
 YES, Morrowind really is worth the trouble if you like RPGs. In this
 respect, it resembles The Sims (as a very difficult game to get the
 relatively useless base game installed and running at all and then the
 mods that make it all worthwhile running on top of it, nothing said
 about which expansions work and which dont, although apparently
 Superstar will crash the game at startup). It's next on my list of
 HOW-TOs, but I will say that The Sims Deluxe does install under Linux
 and run under some form of Wine (don't remember which atm, but I'm not
 touching my Sims install until I've got Morrowind working to my
 specifications). So for those of you who 1) read all this, 2) have ATI
 cards, and 3) want to play either of these games-- IT CAN BE DONE.
 
 And I promise to tell you how, if you guys help me over this hump.
 
 H.
 
 
 
 
 
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpfMPueAa1q6.pgp
Description: PGP signature


[gentoo-user] Re: recompiling vim linked to libncursesw

2005-07-27 Thread Moshe Kaminsky
* Fernando Canizo [EMAIL PROTECTED] [27/07/05 07:15]:
 
 Hi all.
 
 I'm having trouble with my encoding using mutt + vim + utf-8,
 basically mi emails are sent with wrong encoding when *replying*. I've
 tracked the problem, searched, readed FAQs and i found that maybe my
 problem is this: that while mutt is linked to libncursesw (wide
 library) vim is to libncurses (normal), this is the output of ldd:

I find it hard to believe that this is the problem. You say that you can 
use utf8 when you are composing (or writing some other stuff), right? 
What are the values of 'encoding' and 'fileencoding' in vim when 
replying?

Moshe


pgp9ih1XLnlC9.pgp
Description: PGP signature


[gentoo-user] Re: recompiling vim linked to libncursesw

2005-07-27 Thread Moshe Kaminsky
Hi,
* Fernando Canizo [EMAIL PROTECTED] [27/07/05 14:14]:
 
 El Wed, Jul 27, 2005 at 09:04:29AM +0300, Moshe Kaminsky me decía:
  * Fernando Canizo [EMAIL PROTECTED] [27/07/05 07:15]:
   
   Hi all.
   
   I'm having trouble with my encoding using mutt + vim + utf-8,
   basically mi emails are sent with wrong encoding when *replying*. I've
   tracked the problem, searched, readed FAQs and i found that maybe my
   problem is this: that while mutt is linked to libncursesw (wide
   library) vim is to libncurses (normal), this is the output of ldd:
  
  I find it hard to believe that this is the problem. You say that you can 
  use utf8 when you are composing (or writing some other stuff), right? 
  What are the values of 'encoding' and 'fileencoding' in vim when 
  replying?
  Moshe
 
 Like i said to Richard, maybe you're right. I mean: i can write an
 utf-8 file from scratch using vim alone, so why would not when
 invoking vim from mutt? Maybe is that mutt is telling vim something
 incorrect when they communicate.
 
 Well, i'll give more information, but this gonna grow large ;)
 
[snip]
 
 checking if the locales work with perl:
 ~$ perl -e 
 ok doesn't show anything

That's one use of perl I never thought about :)
 
 checking if perl is doing the right things by setting an erroneous
 locale:
 ~$ env LC_ALL=nocharset perl -e 
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
   LANGUAGE = es_AR.utf-8,
   LC_ALL = nocharset,
   LC_CTYPE = es_AR.utf-8,
   LANG = es_AR.utf-8
 are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).
 
 ok, it cries, so it's working ok
 
 my ~/.signature is in utf-8, my ~/.alias is too
 
 i got this in my ~/.vimrc:
 set encoding=utf-8
 set fileencoding=utf-8

Please try removing this setting, then check the value after vim reads 
the file (when you reply). Vim sets this option when editing an existing 
file according to what it thinks the encoding of the file to be. Also, 
you might want to try something like

:e ++enc=utf-8 file

This will force vim to read this file as a utf-8 file. Also, what is the 
value of 'fileencodings'?

 set termencoding=utf-8
 
 and when mutt invokes vim i re-check that this is ok, and is ok (i
 mean i check in runtime and it obbeys the configuration)
 
 i got this in my ~/.muttrc:
 set send_charset=us-ascii:utf-8

Might want to try just utf-8, but I don't think it will matter.

 set charset=utf-8
 set locale=es_AR.utf8
 
 from the mutt man i know this settings should not be necessary, since
 the system is configured ok, but i try with and without and get no
 difference.
 
 Ok, that's all concerning configuration. Now i tell you how the
 problem works: in mutt, if i compose a mail from scratch, without
 anything, not even signature, and put a LATIN SMALL LETTER A WITH
 ACUTE (got that name from unicode chart), and then send it to myself,
 and to a friend, my friend sees it ok and i too.
 
 But if now i reply to this same mail, when vim comes with the quoted
 text that mutt passes to it y see garbage.

Can you include one of this characters in your reply?

 
 So mutt is ok seeing and sending utf-8, vim is ok writing and reading
 utf-8, but when both cooperate, things get screwed.
 
 I investigate what was in the archives, so i saved a copy (using 'C'
 command from mutt) of the first message (the one i receive from me)
 and file says: 'UTF-8 Unicode mail text', check what's inside with
 hexedit and see that LATIN SMALL LETTER A WITH ACUTE is encoded with
 this hex: C3 A1 (which is not 00 E1 from unicode chart from
 http://www.unicode.org/charts/)

I think this is just the way these characters are represented in utf-8.

Moshe


pgpJzPzJfarsh.pgp
Description: PGP signature


[gentoo-user] Re: [OT] Recovering vim/mutt email I was writing

2005-06-18 Thread Moshe Kaminsky
* Grant [EMAIL PROTECTED] [17/06/05 22:02]:
 
  Hi,
  
  * Grant [EMAIL PROTECTED] [17/06/05 19:13]:
  
   Hello,
  
   I was writing an email using vim in mutt and I accidentally hit
   ctrl+alt+backspace which exited X.  Is there any way to recover that
   email?
  
  Try running 'vim -r'. This will list all swap files. Then run
  'vim -r filename'. See :help swap-file for details about swap files.
  
  HTH,
  Moshe
 
 There is a 0 byte file in /tmp that definitely looks like the one.  I
 guess I'm outta luck then?  If so, does anyone know why the message's
 contents weren't saved to the file?

Perhaps the crash happened immediately after you started editing?

You might want to check the values of the vim options 'updatecount', 
'updatetime' and 'swapsync'.

Moshe
 
 - Grant
 
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgprrWRaPReC4.pgp
Description: PGP signature


[gentoo-user] when ldconfig should be run

2005-06-17 Thread Moshe Kaminsky
Hi,

I've noticed that after merging every package, portage runs ldconfig 
(the 'Regenerating /etc/ld.so.cache...' message). This takes a long 
time, and as far as I understand, for most packages is unnecessary. I 
looked in portage.py, and it appears that portage indeed checks whether 
the relevant directories where modified during the merge. However, this 
check is ignored if ldconfig should create links (ie, run without the -X 
flag). Can someone explain it? as far as I understand, links are only 
created to files in the same directories that are checked, so if they 
were not modified, no links should be created, right?

Thanks,
Moshe

PS. The relevant lines start around line 600 in portage.py

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpxMujEi24UP.pgp
Description: PGP signature


[gentoo-user] Re: [OT] Recovering vim/mutt email I was writing

2005-06-17 Thread Moshe Kaminsky
Hi,

* Grant [EMAIL PROTECTED] [17/06/05 19:13]:
 
 Hello,
 
 I was writing an email using vim in mutt and I accidentally hit
 ctrl+alt+backspace which exited X.  Is there any way to recover that
 email?

Try running 'vim -r'. This will list all swap files. Then run
'vim -r filename'. See :help swap-file for details about swap files.

HTH,
Moshe
 
 - Grant
 
 -- 
 gentoo-user@gentoo.org mailing list
 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
-- Douglas Adams

Moshe Kaminsky [EMAIL PROTECTED]
Home: 08-9456841



pgpynypyBRgea.pgp
Description: PGP signature


[gentoo-user] Re: Zsh - Home, End, Delete

2005-06-06 Thread Moshe Kaminsky
* Gabriel Fernndez [EMAIL PROTECTED] [07/06/05 00:41]:
 
 El Lun 06 Jun 2005 17:57, Pingveno escribi:
  In zsh, I'd like to use the Home, Delete and End key to get to the
  beginning of a line, do forward delete, and get to the end of the line.
  However, I only see a ~ character entered. Any fix?
 
  --
  Linux User #340304
 you have to put something like that in your .zshrc
 
 #Rebind HOME and END to do the decent thing:
 bindkey '^[[H' beginning-of-line
 bindkey '^[[F' end-of-line
 case $TERM in (xterm*)
 bindkey '\eOH' beginning-of-line
 bindkey '\eOF' end-of-line
 esac

You can also use the zkbd function to refer to keys by name rather than 
using the escape sequences:

source ~/.zkbd/$TERM-$VENDOR-$OSTYPE
bindkey $key[End] end-of-line

etc. This has the advantages that it is clearer and terminal 
independent. See man zshcontrib and search for 'zkbd' for details.

HTH
Moshe



pgp4zz6JvZ4Fz.pgp
Description: PGP signature