Re: [ot] Linux gender in French

2003-11-01 Thread Wesley J Landaker
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 01 November 2003 7:12 am, Rus Foster wrote:
> Hi All,
> Just trying to work out in French is Linux masculine or feminine?

(Disclaimer: I'm not a native Francophone; but this is the experience 
I've had with colloquial usage of "Linux" in French. Somebody else can 
perhaps enlighten us to what is "correct", if there is such a thing. ;)

"Le Linux" is typically used as masculine, but I've seen it, less often, 
used as feminine, "la Linux". I'm not aware that it is "officially" 
anything, but to me as a French-speaker, it "feels" more like a 
masculine noun.

However, it's much more commonly used as an adjective or a kind of  
collective, so you'll more often see stuff like "la distribution 
Linux", "le truc de Linux", or "la Linux Expo", where the gener of the 
subject follows the non-Linux noun (la distribution, le truc, la Expo, 
etc) than you'll see references to "le/la Linux" by itself. 

- -- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/o+Pc8KmKTEzW49IRApZsAJ0Ya8PCg7e1v501+eq3rVibqR3UKACdEvjo
fAudF6+Gs19qRJNqT9+Rjmg=
=UJf6
-END PGP SIGNATURE-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [ot] Linux gender in French

2003-11-01 Thread Wesley J Landaker
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 01 November 2003 9:54 am, Tom wrote:
> On Sat, Nov 01, 2003 at 09:48:25AM -0700, Wesley J Landaker wrote:
> > "Le Linux" is typically used as masculine, but I've seen it, less
> > often, used as feminine, "la Linux". I'm not aware that it is
> > "officially" anything, but to me as a French-speaker, it "feels"
> > more like a masculine noun.
>
> Do some free-association and tell me what makes a word "feel'
> masculine or feminine.
>
> (I have a theory, but I don't want to influence what you say).

Now that you ask, the first thing that jumps into my head is that Linux 
is named after Linus Torvalds. =) But that's not why I said it "feels" 
like a masculine noun. It's more like the way it sounds. "Le Linux" 
sounds right, "la Linux" sounds... odd. Then again, as I said, I'm not 
a native French speaker, and although I've got *fairly* good inuition 
into a word's gender, I still make mistakes! ;)

Anyway, sounds like a couple native speakers have already responded as 
well, and it sounds like the word really is masculine.

But, now I'm curious... what is your theory?

- -- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/pG7+8KmKTEzW49IRAuSkAJwM5Eq8ykiOwmF5SibsCRyQ6+Z8CwCeKDmj
L68cn31oBjR2/hZcqfL+5+o=
=EY75
-END PGP SIGNATURE-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: looking for Knotes type application

2003-11-12 Thread Wesley J Landaker
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 12 November 2003 10:54 am, Richard Kimber wrote:
> I don't use either the Gnome or the KDE desktops (just Blackbox, plus
> whatever apps I need).
>
> I find Knotes a very useful app, but it seems to use rather a lot of
> memory for what it does (in terms of how I use it - mostly as a
> storage space for copying and pasting between apps).  If I've
> understood top correctly it takes about 30MB, about 5 times more than
> Bluefish.
>
> Is there a similar stand-alone application, preferably gtk-based,
> that will provide me with similar functionality, but that is more
> economical? I've Googled till I'm blue in the face, but can't find
> anything.  There's a similar Gnome applet, but it seems that won't
> work on a stand-alone basis, or at least I couldn't get it to.

After a quick search in aptitude, I see:

xfce4-notes-plugin (only works in xfce, apparently, I haven't tried it)
xpostit (claims to do what you want, haven't tried it)
xpostitplus (like xpostit, with some extras like resizing)

One of those might do what you want. (I'd try probably xpostitplus 
first, given it's description).

- -- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/suGA8KmKTEzW49IRAvQBAJ4rArSNWK6PFyIVC7hiYmkl+B5mZACeKOab
cTH2wIwK7u8ernN8iEiiHco=
=lWI+
-END PGP SIGNATURE-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Geological tracking application

2003-11-14 Thread Wesley J Landaker
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 14 November 2003 12:41 pm, Curtis Vaughan wrote:
> Is anyone aware of Linux-based application capable of proving visual
> geographical tracking?

I don't know much about what exactly your requirements are, but a quick 
search on google linked to a few geographic-related applications/
frameworks:

http://mapserver.gis.umn.edu/
http://www.linux.org/docs/ldp/howto/GIS-GRASS/

- -- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/tTkT8KmKTEzW49IRAvsOAJ43iNEVqxRVBXtoI5hJvhiNAmSpQgCggomE
HOgfIhTaDyvXP+Tbcd3WD4g=
=yjEZ
-END PGP SIGNATURE-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 56K video link software?

2003-11-14 Thread Wesley J Landaker
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 14 November 2003 3:17 pm, David Selby wrote:
> I have a relative who has moved out to Australia & am interested in
> using a webcam & 56K modem for a video link (I know the picture
> quality will be rough)
>
>
> Can anyone point me in the right direction for video link software ?

GnomeMeeting works fine; AFAIK, it's NetMeeting compatible, as well.
http://www.gnomemeeting.org/

- -- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/tV438KmKTEzW49IRAnyDAJ9n/pGIR3HlZTNjFEwwpuo2WRoRtQCfd8bB
zWePH4zXo4vrXRJeHx1wy0A=
=DymF
-END PGP SIGNATURE-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



per-user localization

2003-09-13 Thread Wesley J Landaker
Hi folks,

How is per-user localization handled in debian? I'm used to the Mandrake 
method of having a ~/.i18n that containts stuff like this:

LC_TELEPHONE=en_US
LC_PAPER=en_US
LC_NAME=en_US
LC_CTYPE=ja_JP.UTF-8
LANGUAGE=en_US.UTF-8
LC_NUMERIC=en_US
LC_MEASUREMENT=en_US
LC_MONETARY=en_US
LC_TIME=en_US
LANG=ja_JP.UTF-8
LC_IDENTIFICATION=en_US
LC_ADDRESS=en_US
LC_MESSAGES=en_US
LC_COLLATE=en_US
XMODIFIERS="@im=kinput2"
XIM=kinput2
XIM_PROGRAM=kinput2

In Mandrake, this file gets sources automatically when logging in by the 
system default profile and so-forth.

How do I accomplish this same thing with debian?

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Using Japanese (and Chinese) on an prodominantly english system

2003-09-15 Thread Wesley J Landaker
On Monday 15 September 2003 5:01 am, Rebecca Dridan wrote:
> Hi all,
>
> I speak a little Japanese and am now learning Mandarin. I would like
> to be able to read and write both languages on my computers, but
> leave my systems basically in English.
>
> I'm looking mostly to be reading and writing Japanese with a text
> editor. I use vim and do not want to learn emacs. My desktop runs
> gnome on sid, and the server that I ssh into to read my mail is
> running woody. I'd like to use Japanese on both.

I use the following configuration (originally set up on a Mandrake box, 
moved it over to debian and got it working well there too):

LC_TELEPHONE=en_US
LC_PAPER=en_US
LC_NAME=en_US
LC_CTYPE=ja_JP.UTF-8
LANGUAGE=en_US.UTF-8
LC_NUMERIC=en_US
LC_MEASUREMENT=en_US
LC_MONETARY=en_US
LC_TIME=en_US
LANG=ja_JP.UTF-8
LC_IDENTIFICATION=en_US
LC_ADDRESS=en_US
LC_MESSAGES=en_US
LC_COLLATE=en_US
XMODIFIERS="@im=kinput2"
XIM=kinput2
XIM_PROGRAM=kinput2

This makes everything display in English, but gives the correct LANG and 
LC_CTYPE to programs so that they will correctly use kinput2 as the 
input method, but forces them to display all output and interfaces in 
English.
This works in *all* programs, so I can use vi, xemacs, Qt & Gtk & GNOME 
apps, whatever.

As far as switching between Japanese and Chinese input methods, you'll 
have to do some creative LANG switching; I've seen a few posts already 
suggesting how to do this.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: [OT]: CVS replacement

2003-08-08 Thread Wesley J Landaker
On Thursday 07 August 2003 11:26 pm, Xavier Maillard wrote:
> Hello,
>
> Since ages, I wanted to replace CVS here.
>
> I firstly tried to find out all the most interesting candidates for
> this. I have now a list of 2 items: subversion and tla.
[ . . . ]
> So I claim your help in making my choice: what would you use to
> replace CVS ? Subversion claims to be the CVS replacement but tla
> seems also interesting to me.
>
> Does anybody have feedback/recommendations for the 2 solutions ?

I have always had really great luck with subversion. It has customizable 
transports, and comes built in with support for working over http, 
which is wonderful for distributed projects. It even has a cvs 
repository converter that will save all your history. =) 

FWIW, I've used tla a bit and I wasn't very happy with it, but I didn't 
spend a lot of time using it.

YMMV. =)

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: [OT]: CVS replacement

2003-08-10 Thread Wesley J Landaker
On Friday 08 August 2003 7:53 am, Dave Carrigan wrote:
> On Fri, Aug 08, 2003 at 07:38:55AM -0600, Wesley J Landaker wrote:
> > I have always had really great luck with subversion. It has
> > customizable transports, and comes built in with support for
> > working over http, which is wonderful for distributed projects. It
> > even has a cvs repository converter that will save all your
> > history. =)
>
> Not all your history, sadly. Branches and tags are lost. However, I
> do use subversion, and like it.

That's true. Also if you have commits that took many minutes to 
complete, sometimes they'll get broken up into more than one 
transaction. There can be quite a few other quirks. It's not perfect. 
;)

Oh the other hand, the cvs2svn script has been getting quite better 
recently. There have been lots of improvements even just from 0.25 to 
0.26. I don't know when or if supprt for converting branches or tags is 
slated to be included, though. =)

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: [OT]: CVS replacement

2003-08-14 Thread Wesley J Landaker
On Friday 08 August 2003 8:18 am, Colin Watson wrote:
> On Fri, Aug 08, 2003 at 06:53:15AM -0700, Dave Carrigan wrote:
> > On Fri, Aug 08, 2003 at 07:38:55AM -0600, Wesley J Landaker wrote:
> > > I have always had really great luck with subversion. It has
> > > customizable transports, and comes built in with support for
> > > working over http, which is wonderful for distributed projects.
> > > It even has a cvs repository converter that will save all your
> > > history. =)
> >
> > Not all your history, sadly. Branches and tags are lost.
>
> Is this still true? Recent versions of cvs2svn claim to have fixed
> this.

I hadn't actually tried it with branches since 0.25; I know *lots* of 
stuff was fixed in cvs2svn in 0.26.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Helping the newbie

2003-08-14 Thread Wesley J Landaker
On Sunday 10 August 2003 8:21 am, Paul E Condon wrote:
> On Sat, Aug 09, 2003 at 09:35:35PM -0700, Paul Johnson wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > On Sat, Aug 09, 2003 at 08:49:49AM -0500, Kent West wrote:
> > > Looking up learn.to
> > > learn.to
> > > Unable to locate remote host learn.to.
> > > Alert!: Unable to connect to remote host.
> > >
> > > lynx: Can't access startfile http://learn.to/quote
> >
> > Something is either wrong with your configuration or your ISP. It
> > works for everybody else.
>
> It also doesn't work for me, so 'everybody else' is not quite right.

It didn't work here yesterday. Tracked down the DNS resolution from the 
top and their name servers weren't responding (the ns3 and 
ns4.domainnamservers.com ones). Anyone it was working for probably was 
getting it cached from their upstream DNS. 

It does work for me today. =)

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Helping the newbie

2003-08-14 Thread Wesley J Landaker
On Friday 08 August 2003 8:07 am, Joerg Johannes wrote:
> On Friday 08 August 2003 15:44, Aaron wrote:
> > On -1782-Thu, Aug 07, 2003 at 04:31:21PM -0700, Alan Connor
> > <[EMAIL PROTECTED]> spake thus,
> > >
> > > Got that right. Debian is the Linux of Linux.
> > >
> > > Slackware is the UNIX of Linux.
> > >
> > > Alan
> >
> > And RedHat is the Windows of Linux!
>
> And what is SuSE ?

Maybe the OS/2 of Linux? ;)

(I used to run OS/2... it was pretty cool!)

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Challenge-response mail filter. Goodwin's Law...

2003-08-14 Thread Wesley J Landaker
On Wednesday 06 August 2003 5:37 pm, Greg Folkert wrote:
> Please I know Goodwin's wasn't really crossed just that it has gotten
> terribly long and wasting.

What, are you the Godwin's law Nazi?!

> On Wed, 2003-08-06 at 19:32, Greg Folkert wrote:
> > I hereby invoke Goodwin's Law.
> >
> > EFFING. STOP.
> >
> > PH4KK3RZ, JUST QUIT IT.
> >
> > We are doing more bandwidth wasting picking every NIT, than ANY CR
> > or GPG Signature would or has in MY Lifetime.
> >
> > For the love of Mike... Let's just drop the subject already...
> >
> > Enough of the "Gentleman's Flame Fest"... it ALMOST reminds me of
> > the e-mail I sent out with a Monty Python Transcript attached.
> >
> > I have MANY MANY more... and will help out wasting bandwidth...

(thought you could use some help... ;)

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: some reality about iptables, please

2003-08-29 Thread Wesley J. Landaker
Apparently, Bret Comstock Waldow recently wrote:
> On Fri, 2003-08-29 at 10:44, Steve Lamb wrote:
>>  On 29 Aug 2003 10:26:57 -0400
>> Bret Comstock Waldow <[EMAIL PROTECTED]> wrote:
>> > Yes, this is a fun place we all get to be individuals in, joking with
>> > each other.  OTOH, I'm a Software Quality Assurance Analyst for a
>> > living, and you don't leave users high and dry, and you don't play
>> with
>> > them.  That's not helpful.
>>
>> Why any user would want to start off with iptables when the examples
>> provided point to several far easier and more comprehensive methods of
>> handling those rules is beyond me.  Stock answer to anyone who wants to
>> muck
>> around with firewall rules:
>>
>> aptitude install shorewall
>>
>> Until you got that down pat you've no business poking directly with
>> iptables directly IMHO.

> And now I've heard your opinion.  (No deprecation intended, please read
> on).
>
> Notice what I've gone through to get to a place where I get to hear it.
>
> Next, are you correct?  Are you correct in my case?
>
> The reason I switched to Debian is that Red Hat is too proprietary.
> They make non-standard patches to the kernel, they've worked up a
> framework for administrating their distro, etc. that are proprietary.
> To work with it, I have to study Red Hat-isms, that don't apply to
> anything else.



Seriously, I can't think of an easier and more powerful way to set up a
firewall than to use shorewall. Even if you know iptables in and out, I
can't see much reason(*) not to use shorewall.

> So, the question is, what do I spend my time and attention studying?
>
> I've got two external intefaces, eth0 and ppp0.  I've got two virtual
> internal interfaces to VMware, vmnet0 as a bridge to the Internet, and
> vmnet1 as a bridge to the host filesystem via samba.

I believe Steve is right. Try shorewall; it will do everything(*) you
want, and is very well documented and easy to use.

> Should I put my effort into understanding iptables in the first place so
> I can evaluate what shorewall does, or put my effort into trying to get
> shorewall to do something (I can't evaluate if it's working - I don't
> know enough.  What isn't it covering?  How do I know?)

Put effort into getting shorewall set up. It's very easy to get it up and
running, and, IMHO, far surpasses most other firewall builder packages.
There might be better ones that I haven't tried, but I have zero
complaints about shorewall.

> Beyond that, I'm willing to put in the time to learn.  I'm doing that
> now.

http://www.shorewall.net - should have all the info you need. Just go try
it; if I'm wrong about your needs(*), maybe shorewall isn't for you. But
it will still take less time than squeezing answers out of debian-user,
will take *far* less time than understanding iptables, and in the
meantime, you'll have a lot better handle on exactly what functionality
you need.

(*) Unless the three things listed in
http://www.shorewall.net/Shorewall_Doesnt.html are things you need (which
is doubtful) this will probably get you up and running the fastest while
giving you the widest range of flexibility.



Wes


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Smart-Card based Security

2003-11-15 Thread Wesley J Landaker
On Saturday 15 November 2003 8:48 pm, techlists wrote:
> I have a Smart-Card reader, and I am wanting to set up a smart-card
> based login security.  Where a user must insert a smart-card to login
> successfully.
>
> Does anyone have any experience with something like this?  Are there
> any projects that deal with this sort of thing?

This site might looks interesting to you:
http://www.linuxnet.com/

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Color in text console

2003-12-04 Thread Wesley J Landaker
On Thursday 04 December 2003 4:45 pm, Leandro GuimarÃes Faria Corsetti 
Dutra wrote:
> Em Thu, 04 Dec 2003 21:06:12 +, Cruncher escreveu:
> > with aalib they run in black, white and grey.
>
>   Talking out of the top of my head, does aalib has an option
> somewhere to enable ANSI output?  ASCII art is per definition
> black-and-white, but ANSI terminals are what gives you colour.

You might look at the "Colour AsCii Art library." It has an unfortunate 
name (and mascot), but it does what you want. =)

http://sam.zoy.org/projects/libcaca/

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: [OT] C programming, variable size array

2003-12-12 Thread Wesley J Landaker
On Friday 12 December 2003 11:38 am, Aryan Ameri wrote:
> Hi There:
>
> I am a first year CS student, learning C. A while ago I was asked
> this question from a fellow friend of mine:
>
> "Write a program, which promts the uset to enter some numbers. The
> user should terminate the sequence of numbers by entering EOF
> character. The program should put numbers entered by the user in to a
> 1D array".

Hmmm... sounds a lot like a homework problem... =)

Of course, the normal way to do something like this is to not use C, 
since it's way more low-level than you need. 

I'd use Ruby:

numbers = []
while line = gets
  numbers << line.to_i
end

It's similarly simple in Perl, Python, etc.

But I'm guessing that you want to do it in C for *some* reason:

> #include 
>
> main()
> {
> int tmp, cnt = 0;
> static int arr[cnt];
> printf( "Enter Number\n");
> scanf( "%d", &tmp);
> while ( (tmp = getchar() ) != EOF ) {
> arr[cnt] = tmp;
> cnt += 1;
> static int arr[cnt];
> printf( "Enter Number\n");
> scanf( "%d", &tmp);
> }
>
> return 0;
> }

There are a number of problems with this code, but here is a biggie: you 
are declaring 'arr' as static; this means that the storage for 'arr' 
has to be initialized during compilation, which in this case is of 
course impossible, since 'cnt' is dynamic. Of course, just getting rid 
of the 'static' isn't going to make this work either.

If you want a dynamically sized array in C, you'll need to allocate it 
using malloc() and friends ('man malloc' for more info). It's not 
efficient, but you could 'realloc()' the memory every time. 

Something like this would work if you fill in some of the blanks:

int main() {
  int *array = malloc(sizeof(int));
  int size = 0;
  printf("Enter Number\n");
  while (/*not EOF*/) {
size += sizeof(int);
array = realloc(array, size);
scanf("%d", &array[size/sizeof(int)-1]);
  }
}

It would be better to allocate memory in chunks, or better yet, do 
something like read the numbers into a linked-list and then copy them 
to an array when you're ready to use them that way, or to use C++ and 
use the  class, or something like that.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: [OT] C programming, variable size array

2003-12-12 Thread Wesley J Landaker
On Friday 12 December 2003 1:42 pm, s. keeling wrote:
> Incoming from Wesley J Landaker:
> Content-Description: signed data
>
> > On Friday 12 December 2003 11:38 am, Aryan Ameri wrote:
> > > I am a first year CS student, learning C. A while ago I was asked
> > > this question from a fellow friend of mine:
> >
> > Hmmm... sounds a lot like a homework problem... =)
>
> Or a troll.  He just asked the same thing on Libranet users.


Well, at least libranet is debian based... it might be more suspicious 
if he asked it on a Redhat list. (=

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: [OT] C programming, variable size array

2003-12-12 Thread Wesley J Landaker
On Friday 12 December 2003 1:46 pm, Debian User wrote:
> if you really have to do it in a low-level language, do it in
> assembly native to that processor. you can even write them inline
> within your C code.
>
> asm(" mnemonic_instruction operand, operand");
>

Hey, I wouldn't be surprised if some IBM mainframe had a single 
instruction that would read console input and fill a dynamically-sized 
array. ;)

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: [OT] C programming, variable size array

2003-12-12 Thread Wesley J Landaker
On Friday 12 December 2003 1:41 pm, Aryan Ameri wrote:
> On Friday 12 December 2003 22:04, Wesley J Landaker wrote:
> > Something like this would work if you fill in some of the blanks:
> >
> > int main() {
> >   int *array = malloc(sizeof(int));
> >   int size = 0;
> >   printf("Enter Number\n");
> >   while (/*not EOF*/) {
> > size += sizeof(int);
> > array = realloc(array, size);
> > scanf("%d", &array[size/sizeof(int)-1]);
> >   }
> > }
>
> About initializing the array as static, well I thought that way, when
> I reinitialize it, I would be able to save it's contents (if you know
> what I mean). I was afraid that if it was a automatic array, when I
> re-initialize it, it's contents would be gone.
>
> Well, apparently I was wrong. Yes, I just studied pointers, but I
> didn't know of malloc and realoc functoins. The man pages are now
> putting me in the right direction.

The trick to understanding here is to know how memory gets allocated. In 
C, there are essentially 3 memory areas you can put things in: the 
static data section, the stack, and the heap. Here is a brief overview 
of the sections:

*** Static Data ***

This is data that is allocated in the actual program image. The storage 
size is determined at compile time, and cannot be resized or 
deallocated during program execution.

Examples of data that goes here are global variables and static 
variables declared inside functions. So for instance, if you write:

char data[1024];

outside of any scope (i.e. not in a function), the compile will hard 
code in 1K of storage for 'data' in the executable image.

'static' variables used in functions get put into this static data 
section, and work essentially like global variables, other than nobody 
else can reference them.

So this code:

int main() {
  static char data[1024];
}

is pretty much the same as:

char data[1024];
int main() {
}

as far as *storage* is concerned. There are, of course, all sorts of 
differences in who can access 'data'.

*** the Stack ***

The stack holds "automatic" variables used in C, and is used by the 
compiler to save data when making function calls and stuff like that.

When you declare a normal variables in a function, it is allocated on 
the stack, and will automatically "disappear". So far instance, if you 
write:

int foo() {
  int x;
  x = 5;
  return 5;
}

int main() {
  int y = foo();
}

And run main, first 'y' will be created on the stack, then foo will get 
called, which will automatically grow the stack to store context 
information, and will create 'x' on the stack. When foo exits, it puts 
the return value on the stack, and then main takes it off the stack and 
puts it in 'y'. The memory used by 'x' is deallocated as the stack 
automatically shrinks. When main exits, the memory used by 'y' is 
deallocated as well.

So:

int main() {
  char data[1024];
}

Will automatically allocate and deallocate 1K of data on the stack. Each 
time main is called, it's a different 1K of data, whereas if it were 
declared static, it would be the *same* 1K of data every time.

You can do cool things, like:

int main() {
  int i;
  for (i=0;i<10;i++) {
char data[1024];
  }
}

which will allocate a *new* 1K on the stack for every iteration of the 
for loop. After each iteration, the data will be automatically 
deallocated.

Compare this to:

int main() {
  int i;
  for (i=0;i<10;i++) {
static char data[1024];
  }
}

Despite where we've written the declaration for 'data', it will only be 
allocated once--at compile time--and is essentially the same as:

char data[1024];
int main() {
  int i=0;
  for (i=0;i<10;i++) {
  }
}

*** the Heap ***

The heap is where dynamically allocated memory comes from. In C, you 
have to manage this pretty much manually. That's what malloc() and 
free() do. 

So, to get our 1K of data dynamically at runtime, we'd do:

int main() {
  char *data;
  data = malloc(1024);
  free(data);
}

What happens here is that 'data' is created on the stack; this isn't the 
storage itself, just a pointer. Then we allocated 1K from the heap with 
malloc(), and assign the pointer that returns to data. Now we've got a 
handle on it, and we can use it. When we are done, we must free up the 
memory we allocated with free(), otherwise the memory just stays around 
used up forever until the program finally exits.

> > It would be better to allocate memory in chunks, or better yet, do
> > something like read the numbers into a linked-list and then copy
> > them to an array when you're ready to use them that way, or to use
> > C++ and use the  class, or something like that.

> I should also go and see what is a linked-list 

Re: My email is rejected by some sites

2003-12-14 Thread Wesley J Landaker
On Sunday 14 December 2003 2:37 pm, Joerg Rossdeutscher wrote:
> Am So, den 14.12.2003 schrieb Al Davis um 17:21:
> > On Thursday 11 December 2003 03:56 pm, Joerg Rossdeutscher
> >
> > wrote:
> > > Yes, many ISPs do that, and it's a good thing.
> > > We all would drown in spam if they accepted mail from
> > > everywhere. There is absolutely nothing you can do except to
> > > use your providers mailserver.
> >
> > On Saturday 13 December 2003 04:46 am, Joerg Rossdeutscher
> >
> > wrote:
> > > It is a good thing. What kind of mail comes from dynamic IPs?
> > > In 99% it will be spam from open relays, misconfigured
> > > adresses ([EMAIL PROTECTED]),...
> > >
> > > .. Not everyone should use a private
> > > mailserver. Hobbyists and Freaks should not run such service,
> > > it's a job for professionals, and those have a static ip. I'm
> > > really tired of writing a lot in mailinglists an get lots of
> > > "You mail to [EMAIL PROTECTED] could not be delivered..."
> >
> > So you believe the ISP should censor our mail, or at least be
> > given the opportunity?  You believe that "Hobbyists and Freaks"
> > especially need for their mail to be subject to screening, but
> > corporations don't?
>
> Censorship? Nonsense.
>
> Running and maintaining a mailserver is a difficult job. Incorrect
> configured mailservers can cause a lot of problems to others. So
> everyone should be forced to use a providers machine as smarthost.

Running and maintaing software is a difficult job. Incorrect configured 
software can cause a lot of problems to others. So everyone should be 
forced to use a providers machine to run software.

> If your provider filters mail, adds advertisings etc... blame the
> provider. Choose another. We don't talk about modifying content.

If your provider filters your software use, adds advertising etc... 
blame the provider. Choose another. We don't talk about modifying 
content.

> Examples:
> My provider allows "just" some thousand mails to be sent (sent! Not
> received!). This is a lot more I can write, but whenever I cause a
> mailloop it will not be endless.

Examples:
My provide allows "just" some thousand programs to be used (used! Not 
looked at!). This is a lot more I can use, but whenever I cause a crash 
it will not be fatal.

> Whenever I misconfigure my MUA and send mail with an invalid Reply-To
> ("[EMAIL PROTECTED]") my provider will not deliver the mail.

Whenever I misconfigure my preferences and use an invalid Menu command 
("File->Save As...") my provider will not save the file.

> If I misconfigure my machine as an open relay and someone sends lots
> of spammails from my machine, a lot of providers will not accept that
> mail. And if I configured it to use my providers smarthost after some
> thousand mails my providers stops it, see example 1.

If I misconfigure my machine with users having no passwords and someone 
runs lots of annoying programs from my machine, a lot of providers will 
not accept those packets.

> Local mailservers are childish, dangerous and nonsense.

Local software is childish, dangerous and nonsense.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: My email is rejected by some sites

2003-12-16 Thread Wesley J Landaker
On Tuesday 16 December 2003 1:08 pm, Joerg Rossdeutscher wrote:
> Am Mo, den 15.12.2003 schrieb Wesley J Landaker um 02:55:
> > Local software is childish, dangerous and nonsense.
>
> Local software can destroy (your) local stuff.

Exactly my point--a mail server is local software.

Just another good example of why writing software and controlling it's 
use should be left to professional commercial entities who know what 
they are doing. We definately should leave compilers and scripting 
languages out of the hands of end-users; think of the havoc they could 
cause, flooding mail servers, writing DDoS attacks, etc! Which is why 
my proposal specifically called for not allowing users to own or use 
their own machines. In fact, attempting to subvert this should be 
punishable by death.

> A mailserver can harm _others_.

I totally agree. Which is why I'm all for only allowing arbitrary 
entities to determine who can and can not run a mail server. What we 
need is more control, more censorship, more penalties, and less 
interference from subvertive terrorists who try to route their mail 
around the system. The only reason they have to be doing something like 
this would be if they had something to hide. I believe that their 
computers should be confiscated and their citizenship revoked.

> I said that yesterday, and today I find this mailinglist full of
> nonsense since one guy is not able to configure his procmail.

All of his messages were sent through his company's "smart" host, but we 
still got them here. Surely this software configuration error 
("procmail") could have been prevented if we didn't give this fellow 
access to local software. I'm also guessing that he pre-meditated the 
whole thing at his home, safely cached behind his subvertive dynamic IP 
(I think it's a given that said IPs are only used by "lower-class" 
people, who we all know aren't worth anything and have no rights). I 
call for a lynching.

> Now got what I mean?

I got what you meant the first time! Can't you see? I agree with you! 

Oh yes, and blacks to the back of the bus, please; just be happy we let 
you on at all.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: My email is rejected by some sites

2003-12-16 Thread Wesley J Landaker
On Tuesday 16 December 2003 1:56 pm, Joerg Rossdeutscher wrote:
> Am Di, den 16.12.2003 schrieb Wesley J Landaker um 21:34:
> > On Tuesday 16 December 2003 1:08 pm, Joerg Rossdeutscher wrote:
> > > Local software can destroy (your) local stuff.
> >
> > Exactly my point--a mail server is local software.
> >
> > Just another good example of why writing software and controlling
> > it's use should be left to professional commercial entities who
> > know what they are doing. We definately should leave compilers and
> > scripting languages out of the hands of end-users; think of the
> > havoc they could cause, flooding mail servers, writing DDoS
> > attacks, etc!
>
> A DDoS attack is something you _want_ to do. You will not do that
> accidently.

Well, of course, the high-class elite and enlightened employed by 
corporations would not ever want to perform a DDoS, only low-class 
terrorist-breeding end-users, which I've asserted several times should 
be denied access to their own computer equipment in the first place. 

> I mail server is a software with a high risk to break other people's
> stuff just by making a very little mistake.
>
> Don't do somethink risky if you not /really/ need that. And you
> absolutely don't need a mailserver at home.

I'm so glad that you agree with me! I support the position that 
*anything* that is not *strictly* *necessary* (as defined by the 
technology nobility) should be illegal. I have some further 
propositions that go along with this:

 * No one should be allowed to run Windows for any reason.

Windows is notorious for letting viruses run amok, and these annoy 
people. Also, Windows only really works when each user has their own 
computer, which is something I am totally against.

The nice thing about Debian GNU/Linux is that god-ordained providers can 
set up their servers remotely and only allow the bare minimum access 
possible to those end-users righteous enough to have enough money to 
pay them. Because the source code is available, the corporations can 
easily secure their machines against viruses and hackers, and can 
modify the code to restrict the so-called "freedoms" that the end-user 
freaks are always trying to get. Of course, this is only works until 
one of the subvertive ruffians get his hands on some source code. 

 * No one should be allowed to eat more than one meal a day.

It's easy to survive off one meal a day. I propose that it should thus 
be illegal to eat more than that. It's wasteful and leads to starving 
people all over the world. Corporate employees (such as those that run 
mail servers) should *obviously* be a special exception.

Well, you get the idea; I don't want to get too off-topic.

> > Oh yes, and blacks to the back of the bus, please; just be happy we
> > let you on at all.
>
> No more arguments?

They had BETTER not put up any more arguments.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: My email is rejected by some sites

2003-12-16 Thread Wesley J Landaker
On Tuesday 16 December 2003 2:09 pm, Colin Watson wrote:
> On Tue, Dec 16, 2003 at 01:34:03PM -0700, Wesley J Landaker wrote:
> > On Tuesday 16 December 2003 1:08 pm, Joerg Rossdeutscher wrote:
> > > A mailserver can harm _others_.
> >
> > I totally agree. Which is why I'm all for only allowing arbitrary
> > entities to determine who can and can not run a mail server. What
> > we need is more control, more censorship, more penalties, and less
> > interference from subvertive terrorists who try to route their mail
> > around the system. The only reason they have to be doing something
> > like this would be if they had something to hide. I believe that
> > their computers should be confiscated and their citizenship
> > revoked.

> Let's turn this around: why should *I* be forced to accept mail
> coming from a dynamic IP, when statistically such mail appears much
> more likely to be spam or viruses? Who are you to tell me that I have
> to accept such mail?

In those satirical messages, I'm the guy who wants to take all freedom 
away from you. I want to take away your computer and your rights, 
including your right to filter e-mail. In those messages, you shouldn't 
like what I wrote or anything I said. If you agreed with any of it, 
then you've lost touch with how important freedom is.

> It's a weak argument that requires a comparison to racism to be
> heard, not to mention that it demeans the plight of those affected by
> racism.

Unfair or arbitrary discrimination in any form undermines freedom.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: My email is rejected by some sites

2003-12-16 Thread Wesley J Landaker
On Tuesday 16 December 2003 2:34 pm, Joerg Rossdeutscher wrote:
> Am Di, den 16.12.2003 schrieb Wesley J Landaker um 22:15:
> > On Tuesday 16 December 2003 1:56 pm, Joerg Rossdeutscher wrote:
> > > Don't do somethink risky if you not /really/ need that. And you
> > > absolutely don't need a mailserver at home.
> >
> > I'm so glad that you agree with me! I support the position that
> > *anything* that is not *strictly* *necessary* (as defined by the
> > technology nobility) should be illegal. I have some further
> > propositions that go along with this:
>
> *plonk* due nonsense and complaining about stuff I didn't even write.

The "nonsense" is called satire, and is meant to show where the 
principles of things will take us if we apply them to anything else. If 
we don't careful guard our freedoms, we will loose them.

You didn't seem to catch the irony or the satire, so I had to keep it 
going. Sorry if you were offended. =)

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2





pgp0.pgp
Description: signature


Re: Limiting User Commands

2004-11-20 Thread Wesley J Landaker
On Sunday, 07 November 2004 18:14, [EMAIL PROTECTED] wrote:
> You just need to add group(access) to that system accounts that you
> want or that you think that they'll break in unexpected places...
> Don't you think?

Why not do this the other way around; it's much simpler:

e.g. add users you don't want to run /usr/bin/prog1 to the group 
"noexecprog1", set the permissions of /usr/bin/prog1 to 705 and make 
the owner:group root:noexecprog1. Now anyone in group noexecprog1 can 
read/execute /usr/bin/prog1, but anyone else can. Only affects users 
you specifically touch.


-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2




pgpbVvNHbPjf8.pgp
Description: PGP signature


Re: My system has Flashbacks?

2004-01-14 Thread Wesley J Landaker
On Wednesday 14 January 2004 8:22 pm, Christian Schnobrich wrote:

> What I don't understand is how the picture manages to come back. Or
> rather, in which forgotten deeps of my video ram it manages to
> survive. Isn't the video hardware being initialized first by the
> chipset, and later when X comes up to show me the gdm login? Not to
> mention the fact that there are lots of different stuff being
> displayed before this 'ghost picture' makes it's reappearence.

The contents of video ram aren't initialized by the hardware. They just 
come up in a random state are and just going to be overwritten--why 
would the video card both to zero it out? In this case, the contents of 
video ram just happens to be the "ghost picture" you are describing 
until it gets overwritten. The image in the video ram will persist 
through a reboot because there is nothing actively destroying it's 
contents.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: My system has Flashbacks?

2004-01-14 Thread Wesley J Landaker
On Wednesday 14 January 2004 8:41 pm, Nano Nano wrote:
> On Wed, Jan 14, 2004 at 08:38:29PM -0700, Wesley J Landaker wrote:
> Content-Description: signed data
> [snip]
>
> > The contents of video ram aren't initialized by the hardware. They
> > just come up in a random state are and just going to be
> > overwritten--why would the video card both to zero it out?
>
> Isn't that a security problem?  What if the old contents contained
> the image of the root password or other sensitive information?

Then it would be there until it got over-written. Just like when you 
type in your root password or any other sensitive information, the 
local computer has it in memory until it gets overwritten.

So, yes, it's important to make sure that unprivileged processes can't 
just randomly read video ram, just like you wouldn't let them randomly 
read memory. =)

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: My system has Flashbacks?

2004-01-14 Thread Wesley J Landaker
On Wednesday 14 January 2004 10:09 pm, [EMAIL PROTECTED] wrote:
> Wesley J Landaker wrote:
> > On Wednesday 14 January 2004 8:41 pm, Nano Nano wrote:
> >>On Wed, Jan 14, 2004 at 08:38:29PM -0700, Wesley J Landaker wrote:
> >>Content-Description: signed data
> >>[snip]
> >>
> >>>The contents of video ram aren't initialized by the hardware. They
> >>>just come up in a random state are and just going to be
> >>>overwritten--why would the video card both to zero it out?
> >>
> >>Isn't that a security problem?  What if the old contents contained
> >>the image of the root password or other sensitive information?
> >
> > Then it would be there until it got over-written. Just like when
> > you type in your root password or any other sensitive information,
> > the local computer has it in memory until it gets overwritten.
> >
> > So, yes, it's important to make sure that unprivileged processes
> > can't just randomly read video ram, just like you wouldn't let them
> > randomly read memory. =)
>
> Upon further reflection, this could be a more serious security
> problem. Imagine a small trojan/keylogger/worm/etc , that's ~640kb.
> There is plenty of room in vid memory in today's cards, and even in
> old cards. (My 4.5 year old laptop has 4mb) Even a reboot wouldn't
> neccessarily remove it from resident memory, at least not
> permenately.

Even if the data in the RAM happened to correspond to some sort of 
malware, I don't see how such a thing would ever get *run*. You don't 
execute (and generally, don't even read) video ram. =)

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: gpg help

2004-01-17 Thread Wesley J Landaker
On Saturday 17 January 2004 5:42 am, Ritesh Raj Sarraf wrote:
> hello all,
>
> i recently formatted my os. i had created my public and private keys
> in gpg. Before format, I backed up my $HOME/.gnupg directory. Now I
> need to setup everything. How do I use my private key back ?

You should be able to just put the contents of your backed-up ~/.gnupg 
directory into your current ~/.gnupg directory. The files that are of 
most concern are:

pubring.gpg -- all your public keys
secring.gpg -- all your secret keys
options or gpg.conf -- gnupg options file
trustdb.gpg -- the "trust" database -- can be rebuilt if necessary

But it shouldn't hurt to just restore everything.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: setting print command in xemacs

2004-01-17 Thread Wesley J Landaker
On Wednesday 14 January 2004 11:29 am, Matt Price wrote:
> Hi everyone,
>
> using the xemacs print command, my fext files end up starting exactly
> at the edge of the page and being difficult to readj.  I'm trying to
> figure out a wayto get xemacs to use enxcript or some other
> formatting tool to do the actual printing -- but it's not obvious how
> to go about doing that.  Any emacs curus out there know how to lend
> me a hand?
>
> Thanks,
> matt

Assuming xemacs, the easiest might be to use the menu option:
Options->Printing->Command line switches

And set up the right switches to send to lpr to make things happy. If 
that doesn't work for you, you can control the generation of the 
postscript output it gory detail:
Options->Advanced (Customize)->Emacs->Postscript->PS Print

... but I have never messed with this personally.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Recommended ISP's

2004-01-18 Thread Wesley J Landaker
On Sunday 18 January 2004 5:41 pm, Kent West wrote:

> Or with a fast enough processor (does it exist?) controlling the
> tuner, sample each channel in real time, like a couch potato surfing
> through the channels and getting a fair idea of everything that's on,
> only much much faster. It'd have to sample all 155 channels (or
> whatever) each 30th of a second (for analog TV signals) in order to
> get a full 30-frames per second for 155 channels.

Actually, each 60th of a second to get 30-frames per second. Blame it on 
Nyquist...

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Postfix

2004-01-18 Thread Wesley J Landaker
On Sunday 18 January 2004 6:00 pm, Bronislav KluÄka wrote:
> Hi,
> I've got a problem with postfix. I vant to use virtual_mailbox_limit
> stuff but it can be only done by patching postfix (I've got 2.0.16),
> but I cannot patch it, cause I've installed it as debian package so
> there is no source code to patch. I've download source code for
> postfix, but I'm not able to `make` it (there is some libdb4.1-dev
> missing and it's not accessible using apt-get). So I want to ask if
> somebody has compiled postfix with VDA patch and can send it to me.
> Thanks

Here's what I'd recommend:

1. apt-get apt-src
2. apt-src install postfix
3. (apply your desired patches)
4. apt-src build postfix
5. (install the resulting package with dpkg -i)

Maybe there is a more clever way to do it, but I do it this way quite 
often. =)

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Postfix

2004-01-18 Thread Wesley J Landaker
On Sunday 18 January 2004 8:28 pm, Bronislav KluÄka wrote:
> > Here's what I'd recommend:
> >
> > 1. apt-get apt-src
> > 2. apt-src install postfix
> > 3. (apply your desired patches)
> > 4. apt-src build postfix
> > 5. (install the resulting package with dpkg -i)
> >
> > Maybe there is a more clever way to do it, but I do it this way
> > quite often. =)
>
> I've downloaded postfix source code, patched it but I cannot compile
> it with mysql support cause I do not have mysql headers and libs
> (mysql is also installed using deb packages).
>
> this is the result of the first line you've written me:
> delik:/usr/src/postfix# apt-get apt-src
> E: Invalid operation apt-src

Sorry, it's:

apt-get install apt-src

Once you do 'apt-src install postfix' it will automatically install all 
dependancies you need to compile. You have to run it as root for that 
to work, of course.

-- 
Wesley J. Landaker - [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Serial terminal in testing?

2004-08-16 Thread Wesley J Landaker
On Monday 16 August 2004 19:34, Michael D. Crawford wrote:
> Is there a serial terminal program in testing?  Like what you'd use
> to log in to another host over a serial line?

I've always used minicom; I use it all the time to talk to FPGAs. =)

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgpzfQKyhpcu6.pgp
Description: signature


Re: Serial terminal in testing?

2004-08-17 Thread Wesley J Landaker
On Monday 16 August 2004 20:31, Michael D. Crawford wrote:
> minicom looks like just what I want, thanks!
>
> But is there a way to avoid "initializing the modem" when it starts
> up? When my device receives any input from the serial line, it enters
> a little homebrew debugger.  I'd like to just connect.
>
> Also, the status line says "offline" all the time.  Do I need to do
> something to put it online?

It believe it's looking at the RS232 DTR pin, which is probably not 
hooked up to your device (usually only RX and TX are hooked up to 
non-modem devices). It won't actually affect anything.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgpEKEQUtJfVY.pgp
Description: signature


Re: First general purpose unmoderated newsgroup for Debian

2004-09-05 Thread Wesley J Landaker
On Saturday, 04 September 2004 18:54, Paul Johnson wrote:
> Most people don't encrypt mail with GPG, though they do sign with it.
> I usually see GPG-encryption in IM.  Encryption wouldn't work for
> mailing lists, either, though signing does.

In *general* encryption isn't that useful for a run-of-the-mill mailing 
list, but, encryption can be used for a mailing list in quite a few 
different effective ways depending on what the goal was.

For on simple example, if a mailing list, say, "debian-encrypted", 
decided that it only wanted, say, *currently subscribed DDs* to be able 
to read messages posted there, it could encrypt all messages sent 
through it with the verified GPG keys corresponding to the DD's e-mail 
addresses who were subscribed to it. This could be pretty easily 
accomplished with any existing mailing-list software that let's you run 
a command to pre-process messages flowing through it.

Sorry to interrupt. ;)

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgpUyleL7J84R.pgp
Description: PGP signature


Re: First general purpose unmoderated newsgroup for Debian

2004-09-05 Thread Wesley J Landaker
On Saturday, 04 September 2004 09:02, Svenn Are Bjerkem wrote:

> But they don't seem to be willing to
> listen, or even try to understand the problem they may cause by their
> arrogant behaviour. 

I read this thread, but must have missed it. What exactly is "the 
problem they may cause"?

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgpHEpcgby9p2.pgp
Description: PGP signature


Re: compile problem

2004-09-09 Thread Wesley J Landaker
On Thursday, 09 September 2004 11:55, Paul Akkermans wrote:
> Hi everyone,
>
> I am trying to compile the following program. But from the output I
> get the feeling that not all links are made. I believe this is due to
> the fact that not all libraries are included during the compilation.

[ ... ]

> debian:/home/paul/softwarecon# gcc test.c
> test.c: In function `main':
> test.c:26: warning: return type of `main' is not `int'

Try:

$ gcc test.c -L/usr/X11R6/lib -lX11 -lXt -lXaw

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp075iy1esAm.pgp
Description: PGP signature


Re: Recording the screen

2004-09-09 Thread Wesley J Landaker
On Thursday, 09 September 2004 09:18, Magnus Therning wrote:
> I am preparing a presentation and I'd love to be able to make a movie
> out of a session at the computer, i.e. I'd like to capture the screen
> repetitively and then be able to play it back as a movie.
>
> Is there a ready solution for me?
>
> /M

I've seen a program to record a VNC session to a SWF (Flash) movie. I 
don't think this program is in Debian, but you could take a peek here: 
<http://www.unixuser.org/~euske/vnc2swf/>.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgpuNcEXNzQAt.pgp
Description: PGP signature


Re: Kmail & date

2004-09-11 Thread Wesley J Landaker
On Saturday, 11 September 2004 15:46, Kevin Murphy wrote:
> I just popped in on this thread, so I may be off-topic here, but it
> really irritates me that the kmail date column corresponds to the
> 'Date' header field, and that there is apparently no way to make the
> Date column be the time of arrival.  If there is a way to change
> this, let me know.

I don't know if it was in KMail 1.6.7 or not, but in KMail 1.7 (part of 
KDE 3.3) you can click the "date" column a couple times to switch 
between:
 - "Date" (Descending)
 - "Date (Order of Arrival)" (Ascending)
 - "Date (Order of Arrival)" (Descending)
 - "Date" (Ascending)

It doesn't change what it *shows* as the date, but it does sort things 
differently.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgpxqky04rXNH.pgp
Description: PGP signature


Re: VNC on current running KDE desktop

2004-03-09 Thread Wesley J Landaker
On Tuesday 09 March 2004 9:33 pm, Thomas G wrote:
> Ive also been working on vncserver as long as a few other things on
> my current desktop linux box. How can I get a vnc server to run on
> port :0 and on the current X desktop. I have gotten VNC to work but
> it creates another x server. Also Im interested in doing dual monitor
> VNC (i run 2x horizontal spanned 17inch lcds) but thats only if its a
> must...  first id just like to get it working on the current desktop.

You want x0rfbserver, it is a VNC server that attaches to your currently 
running X server instead of making a new one.

Look in the "rfb" package, i.e. "apt-get install rfb"

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: VNC on current running KDE desktop

2004-03-09 Thread Wesley J Landaker
On Tuesday 09 March 2004 9:51 pm, Thomas G wrote:
> Wesley J Landaker wrote:
> >On Tuesday 09 March 2004 9:33 pm, Thomas G wrote:
> >>Ive also been working on vncserver as long as a few other things on
> >>my current desktop linux box. How can I get a vnc server to run on
> >>port :0 and on the current X desktop. I have gotten VNC to work but
> >>it creates another x server. Also Im interested in doing dual
> >> monitor VNC (i run 2x horizontal spanned 17inch lcds) but thats
> >> only if its a must...  first id just like to get it working on the
> >> current desktop.
> >
> >You want x0rfbserver, it is a VNC server that attaches to your
> > currently running X server instead of making a new one.
> >
> >Look in the "rfb" package, i.e. "apt-get install rfb"
>
> Thanks man I downloaded and installed that but there seems to be no
> configuration i just install it and them reboot X i assume? and it
> supposed to work?

You don't have to restart X, you just need to run x0rfbserver.

While logged in X, run this from, say, an xterm:

$ x0rfbserver &

A little tiny window will pop up (only about 32x32 pixels) with an icon 
in it that says "RFB". Right click on it to set up a password, set 
options, etc.

Once you have set up the options interactively once, you don't have to 
do it again, and can then run it remotely. What I mean by that is, 
given that you are at machineB, but want to access machineA that is 
logged in and running X but is somewhere else, you can do something 
like:

machineB$ ssh machineA
machineA$ DISPLAY=:0 x0rfbserver &

then VNC with a client to "machineA:0"

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Inline PGP signatures

2004-03-26 Thread Wesley J Landaker
On Friday 26 March 2004 12:40 pm, Chris Metzler wrote:
> On Fri, 26 Mar 2004 13:17:14 -0600
>
> Kirk Strauser <[EMAIL PROTECTED]> wrote:
> > See this
> > thread where otherwise presumably intelligent people fail to
> > understand that a PGP signature is not a virus:
>
> Please tell me that the people involved are in alt.sci.physics, and
> not sci.physics.
>
> If the latter . . .man, that place has gone unbelievably downhill
> since the mid-90's.

Heh, heh. I read that thread Kirk was posting in. Not only was that in 
sci.physics, but it seemed like nobody wanted to believe Kirk that 
alt.sci.physics even existed. =)

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: LICENSE/ SERIAL NUMBERS for INSTALLATION

2004-03-26 Thread Wesley J Landaker
On Friday 26 March 2004 12:43 pm, Kirk Strauser wrote:
> At 2004-03-26T19:12:05Z, "Rance, Kate" <[EMAIL PROTECTED]> writes:
> > We have a few CDs we have purchased from your company, but we no
> > longer have the cases. Do we need the serial numbers or license
> > numbers to install these CDs?
>
> For a one-time cost of $699 (to cover my SCO license), I'll be happy
> to provide you with a serial number to any Debian CD you may have.

Hey, for $699, I'll write you a custom Debian CD serial *KEYGEN*!

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Inline PGP signatures

2004-03-26 Thread Wesley J Landaker
On Friday 26 March 2004 12:49 pm, Kirk Strauser wrote:
> At 2004-03-26T19:40:04Z, Chris Metzler <[EMAIL PROTECTED]> 
writes:

> Unfortunately, that was my first contact with the group.  I wrote to
> ask about a problem that I couldn't quit thinking about, and got a
> royal butt-chewing in return.  Since apparently I'm no longer welcome
> in that group, I no longer have anyone to pester regarding physics
> questions.

I haven't checked the list of lists lately, but I'm pretty sure there is 
a debian-physics. ;)

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Inline PGP signatures [was: Re: email signatures]

2004-03-26 Thread Wesley J Landaker
On Friday 26 March 2004 1:21 pm, Adam Funk wrote:
> On Friday 26 March 2004 12:30, Alex Malinovich wrote:
> > What you're seeing is the ASCII armored ('armoured' in the rest of
> > the English speaking world outside of the US :) PGP signature. I
> > don't know if there's a way to 'teach' evolution about them, but if
> > there is I've never found it. If you want to check the validity of
> > a signature that has been encoded inline like that, you should save
> > the message to disk and then manually run 'gpg --verify
> > testmessage.txt'.
>
> Interestingly, KMail and KNode will handle (as far as I know) the
> inline/armoured signatures only.  In other words, they show that
> there is a PGP-signature attachment, but they don't do anything with
> it.

> Anyone know how to fix this?

KMail works fine with either inline PGP (built-in) or with PGP/MIME or 
S/MIME if you use the cryptplug plugins: 
<http://packages.debian.org/unstable/libs/cryptplug>. If you install 
that and point KMail at the plugins, you can verify PGP/MIME 
signatures...

... of course, if you want to do signatures or decrypt stuff with 
PGP/MIME, it's a little trickier than that to make it work, because you 
also need gpg-agent and a pinentry program, which for some reason I 
have never figured out, do not appear to be packaged at all by Debian. 
In my case, I grabbed the woody packages from 
<http://www.opensides.be/debian> and ported them to unstable.

Actually, now that I think of it, I think I will try to find out why 
those haven't been packaged (I know both are GPL licensed)...

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Inline PGP signatures [was: Re: email signatures]

2004-03-28 Thread Wesley J Landaker
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 28 March 2004 12:21 pm, Werner Mahr wrote:
> Am Samstag, 27. MÃrz 2004 21:19 schrieb Brad Sims:
> > On Saturday 27 March 2004 6:06 am, Werner Mahr wrote:
> > > Do I need both lines, or is one for Woody and one for Sarge?
> >
> > I /think/ one is for Woody and one is for Sarge, but as I play with
> > Sid... Apt will get the one with the newest version as I understand
> > it 
>
> Yes, the line with testing is for testing. Little Question on
> gpg-agent. The docs at
> http://kmail.kde.org/kmail-pgpmime-howto.html#kmail say, that
> gpg-agent can create a shelscript. But this don't work for me. I do:
>
> [EMAIL PROTECTED]:/usr/src$ gpg-agent --sh
> gpg-agent[1060]: Bitte die Option `--daemon' nutzen um das Programm
> im Hintergund auszufÃhren
> [EMAIL PROTECTED]:/usr/src$
>
> don't work, And I do:
>
> [EMAIL PROTECTED]:/usr/src$ gpg-agent --daemon --options
> ~/.gnupg/gpg-agent.conf --sh
> GPG_AGENT_INFO=/tmp/gpg-mfh4S5/S.gpg-agent:1008:1; export
> GPG_AGENT_INFO; [EMAIL PROTECTED]:/usr/src$
>
> and the agent is startet, but I don't get any Script. How can I let
> gpg-agent start at boot?

The stuff it's spitting out to stdout has to be sourced by your shell. So you can, for 
instance, run the command in backticks, or output it to a file then source it.

On my machines, I use the following script as /etc/X11/Xsession.d/95gpg-agent-start


GPG_AGENT_INFO_FILE=${HOME}/.gpg-agent-info
GPG_AGENT_CONFIG_DIR=${HOME}/.gnupg
GPG_AGENT_CONFIG_FILE=${GPG_AGENT_CONFIG_DIR}/gpg-agent.conf

if [ -x /usr/bin/gpg-agent ]; then
  if [ -e ${GPG_AGENT_INFO_FILE} ]; then
OLD_GPG_AGENT=`cat ${GPG_AGENT_INFO_FILE}`
CHECK_PID=`echo ${OLD_GPG_AGENT}|cut -d ":" -f 2`
PROG=`ps u ${CHECK_PID} | tail -1 | sed -re 's/^([^ ]+) +[^ ]+ +[^ ]+ +[^ ]+ +[^ 
]+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +([^ ]+).*$/\1 \2/'`
if [ "x${PROG}x" != "x${USER} gpg-agentx" ]; then
  rm -f $GPG_AGENT_INFO_FILE
else
  export GPG_AGENT_INFO=${OLD_GPG_AGENT}
fi
  fi
  if [ ! -e ${GPG_AGENT_INFO_FILE} ]; then
if [ ! -e $GPG_AGENT_CONFIG_DIR ]; then
  mkdir -p $GPG_AGENT_CONFIG_DIR
  chmod 700 $GPG_AGENT_CONFIG_DIR
fi
if [ ! -e $GPG_AGENT_CONFIG_FILE ]; then
  touch $GPG_AGENT_CONFIG_FILE
fi
eval "$(gpg-agent --daemon --options $GPG_AGENT_CONFIG_FILE)"
echo $GPG_AGENT_INFO > $GPG_AGENT_INFO_FILE
chmod 600 $GPG_AGENT_INFO_FILE
  fi
fi

A bit evil, but it works fine for me. =)

- --
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAZ16R8KmKTEzW49IRApRyAJwNPRlAKgyuQjm6Lk83OXYpHnEEagCeJGxG
mSpDrv848EGhlfxFOR/m4/s=
=tGYM
-END PGP SIGNATURE-



Re: please help

2004-04-21 Thread Wesley J Landaker
On Wednesday 21 April 2004 12:56 pm, Muvhango Ramabulana wrote:
> hi my name is muvhango ramabulana and I want to be aporn star help
> please. I'll do anithing to get this job.

I'd recommend a more fulfilling job: <http://qa.debian.org/>

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Moving from XP and looking for replacement programs

2004-04-21 Thread Wesley J Landaker
On Tuesday 20 April 2004 12:43 pm, Micha Feigin wrote:
> On Tue, Apr 20, 2004 at 09:22:20AM +0300, Kristian Niemi wrote:
> > Is there a GUI available? I'm also thinking of switching a
> > relatives computer from win 98 to debian, and currently the only
> > obstacle is ... access. And perhaps I could learn mySQL, but she
> > /really/ doesn't want to.
> >
> > What she needs isn't really a superb database-program, but a
> > `ok'-database-program, /to which there is a GUI/. I believe I have
> > tried to find GUIs to mySQL, without any real luck. But perhaps I
> > wasn't looking in the right places?
> >
> > Is there a linux equivalent to Access (i.e. an *easy to use*,
> > preferrably WYSIWYG, database-program)?
>
> For what use?
>
> a quick search brings up tora as a possible candidate but I don't
> know it. Also gnome-db looks like it may be what you want.

Rekall is a very good KDE based interactive database app; it's not 
currently packaged for Debian, but has an ITP out for it:

http://www.rekallrevealed.org/

-- 
Wesley J. Landaker <[EMAIL PROTECTED]>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2



pgp0.pgp
Description: signature


Re: Pine macros

2006-12-15 Thread Wesley J. Landaker
On Friday 15 December 2006 01:28, Andrea Ganduglia wrote:
> Hi. I'm working on old workstation with PINE 4.44 (I think released in
> 2002), I can't upgrade software and I must work with users privileges.
> In this scenario I need define macros for my Pine mail client, or
> better I need define a mechanism that it allows me I move a single
> message from INBOX to SPAM with one key only, like if I cancelled it
> with "D", but obviously, immediately or where INBOX folder will be
> close, message will be moved into SPAM folder.

Even if you only have user privileges, it is pretty easy and well worth it 
to compile and install the software you want into your own user space. If 
you're going to do that, though, I strongly recommend using mutt 
<http://www.mutt.org/> instead of a newer version of pine.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgprwJeuQxzG1.pgp
Description: PGP signature


Re: lvm vs traditional partitioning

2006-12-22 Thread Wesley J. Landaker
On Friday 22 December 2006 15:09, Kamaraju Kusumanchi wrote:
> I heard lvm can be used to have partitions whose sizes can be changed
> over time in non-destructive way as far as the data is concerned.
> 1) Does anyone use this or is it still in an experimental state?

It's very stable and is used all over on real production systems.

> 2) Are there any good websites which compare lvm against traditional
> partitioning? Like what are the advantages, disadvantages of each etc.,

Other than some issues with needing legacy support for booting and a very 
slight increase in complexity, there are really no disadvantages. The etch 
installer will configure LVM for you pretty automatically.

> 3) Are there any new ways to have flexible partitions in one hard drive
> other than lvm?

Yes, but LVM is the most stable and standard way that I know of.

As others have mentioned, consult a recent LVM HOWTO for more general 
information. I would be happy to personally answer and specific questions 
you may have, although please keep the list CC'd.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpri33q3QphR.pgp
Description: PGP signature


Re: lvm vs traditional partitioning

2006-12-25 Thread Wesley J. Landaker
On Sunday 24 December 2006 18:38, Roberto C. Sanchez wrote:
> On Sun, Dec 24, 2006 at 05:59:23PM -0500, [EMAIL PROTECTED] wrote:
> > Great.  By the way, was that on a sarge or and etch?  Or something
> > else?
>
> Sarge.  Most of my machines have a similar setup.

It works great with etch as well. I usually have at 
least /usr, /var, /opt, /srv and /home as their own LV.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpzccrVD0HWr.pgp
Description: PGP signature


Re: LVM problem

2006-12-29 Thread Wesley J. Landaker
On Friday 29 December 2006 03:26, Pierguido wrote:
> lvextend -L+962G /dev/mapper/uservg-data
>
> It respond me:
>
>   Volume group mapper doesn't exist

lvextend -L+962G uservg/data

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpQ16CZqsEPu.pgp
Description: PGP signature


Re: Quick question

2007-01-03 Thread Wesley J. Landaker
On Wednesday 03 January 2007 09:00, Gregor Schneider wrote:
> Hi guys,
>
> just a short question:
>
> After installing Edge, I see the common-user-$PS1 as follows:
>
> ${debian_chroot:+($debian_chroot)[EMAIL PROTECTED]:\w\$
>
> I understand [EMAIL PROTECTED]:\w\$, however, what does
>
> ${debian_chroot:+($debian_chroot)}
>
> do?

From the bash manpage under the "Parameter Expansion" section:

  ${parameter:+word}
  Use  Alternate  Value.   If parameter is null or
  unset, nothing is substituted, otherwise the
  expansion of word is substituted.

Basically, this is to show info about the current chroot you are in. This is 
useful for when you have various chroots (say for different debian 
versions, etc).

The value gets pulled from the environment, or from /etc/debian_chroot. See 
this part of /etc/bash.bashrc:
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpezuX8JXpfX.pgp
Description: PGP signature


Re: On Etch can't to remove a broken package

2007-01-03 Thread Wesley J. Landaker
On Wednesday 03 January 2007 10:24, csanyipal wrote:
> On Etch I have installed a package: ltmodem-2.6.8-2-386 that I
> have been downloaded. This installation wasn't success.
>
> After that this package came to be broken.
>
> If I try to remove this package, I get an error message:
>
> -->
> (Reading database ... 60952 files and directories currently installed.)
> Removing ltmodem-2.6.8-2-386 ...
> find: warning: you have specified the -mindepth option after a
> non-option argument -name, but options are not positional \
>  (-mindepth affects tests specified before it as well as those \
>  specified  after it).  Please specify options before other \
>  arguments.
>
> find: warning: you have specified the -maxdepth option after a
> non-option argument -name, but options are not positional \
>  (-maxdepth affects tests specified before it as well as \
>  those specified after it).  Please specify options before \
>  other arguments.
>
> Could not identify your distribution's way of automatically \
>  loading modules, Exiting.
>
> dpkg: error processing ltmodem-2.6.8-2-386 (--remove):
>  subprocess post-removal script returned error exit status 1
> Errors were encountered while processing:
>  ltmodem-2.6.8-2-386
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> --<
>
> What can I do to solve this problem?
>
> I appreciate any advices.

Well, it's not removing correctly because it's failing in it's post-rm 
script.  If you just want to force the package out, you can do the 
following:

  dpkg -r --force-all ltmodem-2.6.8-2-386

If that still doesn't work, you will have to hack the post-rm script to exit 
with success, i.e. edit /var/lib/dpkg/info/ltmodem-2.6.8-2-386.postrm and 
either fix the error, or just make the script do an unconditional "exit 0".

The second method is a rather hackish ways to do it, but it'll definitely 
work.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpzGr2T8Ad7X.pgp
Description: PGP signature


Re: multi-gnome-terminal alternative

2007-01-03 Thread Wesley J. Landaker
On Wednesday 03 January 2007 10:32, Kamaraju Kusumanchi wrote:
> On Wednesday 03 January 2007 10:21, Sven Arvidsson wrote:
> > On Tue, 2007-01-02 at 14:02 -0500, Kamaraju Kusumanchi wrote:
> > > I really miss one feature from all these applications. I would like
> > > to have two terminals open side by side. All the input goes to one
> > > terminal, all the output (and errors if there are any) comes up in
> > > the second terminal. Clicking on a command in the first window should
> > > execute the command again. The whole thing looks similar to MATLAB's
> > > interface.
> > >
> > > Is there any terminal emulator which provides this kind of facility?
> >
> > You don't need a special program for that do you?
> >
> >  echo helloworld &> /dev/pts/1
> >
> > This will redirect output, both normal and error messages from one
> > terminal to another. You can list the terminals and their TTY you have
> > open by typing "w".
>
> That is pretty cool to know. Thanks. But this requires
> appending "&> /dev/pts/1" to each and every command. Can this be done in
> some configuration file so that it works for each and every command?

You can rig something pretty quickly like this:

1. Open two terminals.
2. In the "output" terminal, run 'ps' to find out the shell pid.
3. Use lsof -p  to find out the pts that the pid is using.
4. In the "input" terminal, run bash &> /dev/pts/xxx to start a shell and
   redirect everything to the "output" terminal.

If you want typed commands to be also echoed on the "input" terminal, you 
might have to fiddle with the stty settings.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpR5rgFtcFVf.pgp
Description: PGP signature


[OT/FLAME] Horrible GNOME File Picker (Was: Open (helper application chooser) for iceweasel/icedove is too simple)

2007-01-05 Thread Wesley J. Landaker
On Friday 05 January 2007 08:02, Geoff Reidy wrote:
> Googling gnome file picker gives you a fair idea what people think of
> it. But wait, I just found a way to stop iceweasel using it, add this to
> user.js:

The GNOME file picker is so bad, I'd rather run Firefox on Windows XP in 
Qemu than use Iceweasel with the GNOME file picker enabled.

=)

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpwsJxGpF6PQ.pgp
Description: PGP signature


Re: Does XFS work with LVM?

2007-01-07 Thread Wesley J. Landaker
On Sunday 07 January 2007 04:00, Marko Randjelovic wrote:
> Roberto C. Sanchez wrote:
> > That is correct.  You cannot make XFS shrink, only grow.  However, this
> > does not prevent you from using it on LVM.  You just can't make the
> > logical volumes any smaller, only larger.  Out of curiousity, why XFS?
> > Why not ext3?
>
> And why ext3? I would never recommend it, since it eats you 10% of the
> partition. I don't remember the exact number, but it's around that. So
> if you have partition of 10GB, if you format the partition with
> reiserfs, JFS, XFS, you have 10GB. With ext3 you have 9GB.

If you don't want ext3, reiserfs is the only alternative if you want to be 
able to shrink. JFS and XFS cannot shrink, only grow.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgprGFBoG2VFS.pgp
Description: PGP signature


Re: partitioning tools for LVM

2007-01-11 Thread Wesley J. Landaker
On Thursday 11 January 2007 13:35, [EMAIL PROTECTED] wrote:
> Are there any partitioning tools that happily deal in LVM on RAID?
>
> parter, gparted, fdisk, cfdisk seem not to, as least fron what
> documentation I've managed to find for them.

The nature of your question suggests that you don't really understand how 
LVM works. Here is a quick primer and some links:

When using LVM, you first need Physical Volues (PVs). These are real 
partitions or drives. Some examples would be /dev/hda2 or /dev/sdb. To use 
a device as a physical volume, you typically just run pvcreate on it; in 
general, you also set it to an "LVM" type partition using fdisk and 
friends, but this isn't strictly necessary. Anyway, it will destroy any 
existing data on each partition or device you use for a PV. Setting up PVs 
is the ONLY time you'll ever use a program like fdisk or parted. For the 
rest, you use LVM tools.

After you've created PVs, you will not ever use them directly. Instead, you 
group them together into a Volume Group (VG). A VG has a symbolic name you 
give to a group of PVs. You create one with vgcreate, e.g. if I wanted to 
create a VG called "vgmain" using two PVs I'd created previously, I might 
run "vgcreate vgmain /dev/hda2 /dev/sdb". You can also add and remove PVs 
on-the-fly later.

*Finally*, you need to create Logic Volumes, which is the whole point of an 
LVM system (that's why it's *Logical Volume Management*). These are the 
actual volumes that you treat like you used to treat partitions, e.g. put 
file systems on them. You create LVs as part of a Volume Group that you've 
previously created, and give them symbolic names. You can add, remove, and 
resize them using lv* commands. For instance, if I wanted a 500M LV 
named "opt", I might run "lvcreate -n opt -L500M vgmain". Now I'd probably 
make a filesystem on it with "mkfs.ext3 /dev/vgmain/opt" and put a line in 
my fstab like "/dev/vgmain/opt /opt ext3 defaults 0 0". Later, I might add 
or remove more LVs, resize them, etc. I can do all of the online, although 
obviously the data itself on the LV (e.g. a filesystem) may need to be 
unmounted and/or resized first, although most filesystems can at least GROW 
online, while mounted.

Anyway, see <http://tldp.org/HOWTO/LVM-HOWTO/> for a more in depth 
discussion. You can pretty much ignore anything that talks about "LVM1" 
unless you're working with a legacy system. There are also other systems 
like EVMS, but LVM2 is pretty much the mainstream.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpg53uYZ7Zar.pgp
Description: PGP signature


Re: The effectiveness of 'make uninstall' command

2007-10-06 Thread Wesley J. Landaker
On Saturday 06 October 2007 21:18:29 Amit Uttamchandani wrote:
> Hey guys,
>
> I recently compiled a bunch of software on my Debian Etch system for
> testing. After testing I wanted to remove them and I have been running
> the 'make uninstall' command in the source code directory of the
> respective application. I was curious as to how effective this command
> was. It seems like it removes everything it installs.
>
> Now this brings up the obvious question of the usefulness of the
> checkinstall software for managing installations outside of debian repos.
> I understand checkinstall is probably usefull for computers in a lab
> setup but for personal workstation, 'make install' and 'make uninstall'
> seems to be sufficient.
>
> Any comments?

make uninstall is rarely supported and most often doesn't work. If you want 
something similiar, but generally has much less trouble, you might want to 
look at stow (debian package: stow, upstream url: 
http://www.gnu.org/software/stow/)


-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


signature.asc
Description: This is a digitally signed message part.


Re: lvreduce - no such file or directory?

2007-10-07 Thread Wesley J. Landaker
On Sunday 07 October 2007 07:46:42 Andy Hardy wrote:
> debian:/home/andy# lvreduce -v -r -L -50g /dev/debian/home
> Finding volume group debian
> Executing: fsadm check /dev/debian/home (null)
>   fsadm: execlp failed: No such file or directory
>   fsadm failed: 2
> debian:/home/andy#

You don't give it a device, you give it a vg and lv name, so:

$ lvreduce -v -r -L -50g debian/home

But you'd better be sure you've already shrunk the *filesystem* itself, or 
you're going to lose all of your data.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


signature.asc
Description: This is a digitally signed message part.


Re: Handy Bash alias script

2007-01-21 Thread Wesley J. Landaker
On Friday 19 January 2007 16:33, Wayne Topa wrote:
> [EMAIL PROTECTED]([EMAIL PROTECTED]) is reported to have 
said:
> > ...and have it work?  Aliases don't support $1 or $@, do they?

Aliases don't support arguments *at all* in bash. From the bash docs:

"There  is no mechanism for using arguments in the replacement text.  If 
arguments are needed, a shell function should be used (see FUNCTIONS 
below)."

Also note that:

"For almost every purpose, aliases are superseded by shell functions."

> They do here
> alias deps='apt-cache showpkg $1'
> alias policy="apt-cache policy $1"
> alias 4page="a2ps --medium=Letter -4 $1"

If you're using bash, these may work in practice, but it isn't because of 
the $1, which in the " case is being expanded when the alias is defined and 
in the ' case is being expanded *after* the alias is evaluated, and will 
always be undefined.

The reason it works at all is because when you alias something, the alias 
part is expanded and the rest of the command is left in place. Remove those 
$1's and you'll get the exact same effect.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpNEC8G5Nrro.pgp
Description: PGP signature


Re: Handy Bash alias script

2007-01-21 Thread Wesley J. Landaker
On Saturday 20 January 2007 10:46, Wayne Topa wrote:
> I like to use real world examples.  If you want to play then
> go ahead.
>
> alias pslpt="cat $1 | psnup -2 -pletter | lpr"

This doesn't work in bash, it would be expanded like this:

$ psplt arg1   
  => cat | psnup -2 -pletter | lpr arg1

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgp4FPBTxgZLW.pgp
Description: PGP signature


Re: replying to a message in debian-user

2007-01-25 Thread Wesley J. Landaker
On Thursday 25 January 2007 10:26, Easthope wrote:
> When I work at home, thunderbird can send a
> reply to a message posted on this list.
>
> Presumeably it sends the Message-id of the
> preceeding message, or a thread identifier
> to the list maintenance program to allow
> connecting the new message into the correct
> thread.
>
> Thunderbird is not available when I am away
> from home.  Then I must use a Web based MUA,
> MailSite Express version 7.0.3, Rockliffe
> Email Server.
>
> In this circumstance, is there any way to
> reply to a message so that the thread
> connection is maintained?

Well, if your web-based MUA supports it, it can and should do threading 
correctly. Barring that, as long as the subject stays intact, often other 
people's MUA will do pseudo-threading by subject line if there is no other 
threading information in the headers.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgp0Daerj2Eqi.pgp
Description: PGP signature


Re: replying to a message in debian-user

2007-01-25 Thread Wesley J. Landaker
On Thursday 25 January 2007 12:00, Easthope wrote:
> wl> Barring that, as long as the subject stays intact, often other
> people's MUA will do pseudo-threading by subject line if there is no
> other
> threading information in the headers.
>
> Not clear about this.  Are you saying I should
> try to use a MUA which belongs to a colleague
> and which supports threading?

No, what I mean is that it's obviously *better* to use a MUA that supports 
threading, but even if you use a MUA that doesn't support threading 
properly, as long as you keep the subject line the same, most modern MUAs 
will still associate it to the thread. =)

Anyway, someone else pointed out that you can always set things up so you 
can ssh into some location (e.g. your home computer) and run a 
full-featured text-based MUA like mutt. With a little setup, this might 
actually be faster than using a web MUA anyway.

Good luck!

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpofqB9RlPjU.pgp
Description: PGP signature


Re: Very disturbing feature in icedove

2007-02-12 Thread Wesley J. Landaker
On Monday 12 February 2007 14:33, Chris Bannister wrote:
> On Sun, Feb 11, 2007 at 09:50:18PM -0800, Steve Lamb wrote:
> > Dave Sherohman wrote:
> > > On Sat, Feb 10, 2007 at 02:30:33PM +, Virgo Pärna wrote:
> > > I think I'll side with the people who think this obscure use of the
> > > word "compact" is a bug in IceDove (and just continue using mutt).
> >
> > You mean the people who are oblivious to the fact that compact, as
> > you described it, has been in that usage for decades when referring to
> > databases and your IMAP mail store is a database?  Ooooh, chilling,
> > innit?
>
> Serious? Scraping the barrel there mate. ROFLOL

No, really, you should listen to Steve.

"Compact", in that sense, refering to expunging deleted messages from an 
mbox or other mail store, has been *the* common word for that action for 
literally decades, predating even the popular internet (e.g. in the days of 
BBS, Fidonet, etc). It's was used even far before that in other database 
and database-like applications.

Asking MUAs to use a different, more descriptive word is perhaps a fine 
request, but claiming that this use is "obscure" when it has been the 
canonical term for this operation for a *very long time* just makes you 
seem ill-informed.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgp28daVfSk97.pgp
Description: PGP signature


Re: Mixing sarge and etch

2006-06-05 Thread Wesley J. Landaker
On Monday 05 June 2006 09:49, Chris Walters wrote:
> Hello everyone,
>
> I was wondering if anyone has had any luck in mixing elements of etch
> with a sarge installation.  I am reluctant to do this, because I tried
> twice to install etch and it failed to work, and when I tried to do what
> I just said, it broke my system.
>
> What I want to do is upgrade Mozilla, Thunderbird, and Firefox to more
> recent versions than are in the official sarge distribution (and maybe a
> few other things, like OpenOffice).
>
> Am I barking up the wrong tree here?  Should I maybe create an etch net
> install floppy and do a clean install of etch rather than trying to mix
> the two?

Usually the best way to approach this is to use stable (sarge) and for any 
software you need newer versions of, use a backported version either from 
backports.org or built yourself from the testing (etch) or unstable (sid) 
sources.

I believe most of the software you mentioned (Firefox, etc) are supported by 
backports.org already.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpAwvdpMj01o.pgp
Description: PGP signature


Re: Subversion Repository / db4.2_recover

2006-06-05 Thread Wesley J. Landaker
On Monday 05 June 2006 15:02, Nelson Castillo wrote:
> My repository is getting corrupt almost every other day.
> I might have to put db4.2_recover in a crontab!
>
> Suggestions?
> Have any of you ran into similar issues?

Do a dump+load cycle and convert it to FSFS instead of BDB.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpkynOs1U7t2.pgp
Description: PGP signature


Re: Can't find libXmu.a and libXaw.a for xorg

2006-06-16 Thread Wesley J. Landaker
On Friday 16 June 2006 11:10, edwardsa wrote:
> I'm trying to compile Scilab from sources and it requires the two static
> libraries
> libXmu.a and LibXaw.a
>
> I have installed the packages libxmu-dev and libxaw7-dev, where these
> files are supposed to originate,. However, after installation they are
> not in the /usr/X1R6/lib directory, where, according to the debian
> packages web page, they are supposed to reside.
>
> I looked at the package dependencies and they include xfree86-common.
> I'm running the xorg xserver. What are my options?

It depends on what version of xorg you are running--if it's a recent one 
(e.g. 7.0), the files will in /usr/lib. You can find where your particular 
files are with dpkg -L; for instance on my system:

$ dpkg -L libxmu-dev | grep libXmu.a
/usr/lib/libXmu.a

Hope that helps.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpNpoZiTqZqf.pgp
Description: PGP signature


Re: pci-to-parallel vs usb-to-parallel?

2008-08-16 Thread Wesley J. Landaker
On Friday 15 August 2008 12:35:24 [EMAIL PROTECTED] wrote:
> Or it may be time to consider springing for a new printer (?)

For instance: it depends on where you live, but in the US you can get a new 
HP inkjet printer for around the price of two or three ink cartridges, and 
it comes with one.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


signature.asc
Description: This is a digitally signed message part.


Re: Tab in Java

2008-05-17 Thread Wesley J. Landaker
On Saturday 17 May 2008 13:16:06 Dotan Cohen wrote:
> Regardless of the mentality of my university, is there a client-side
> fix for this technical problem?

Here is an all else fails method: use the Java applet under Windows XP in a 
virtual machine, such as VirtualBox.

This is horrible in a software freedom (and annoying hassle) perspective, 
but will almost certainly get the job done.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


signature.asc
Description: This is a digitally signed message part.


Re: Tab in Java

2008-05-17 Thread Wesley J. Landaker
On Saturday 17 May 2008 14:56:23 Dotan Cohen wrote:
> Even in Windows there is no ability to tab between the text fields in
> this particular Java applet. Or in all Java applets, for all I know.
> Actually, that is my question. Does Java use a different method of
> keyboarding between fields?

Well, that's quite obnoxious! I haven't had the displeasure of using any 
Java applets in quite a long time. It could be just a limitation of the GUI 
toolkit (e.g. AWT) or the program itself -- if it doesn't support keyboard 
tabbing, then there most likely isn't much hope for fixing it.

One simple minded suggestion: try CTRL-I. That emits a tab character in many 
contexts. But given the above, it probably won't work either.

Anyway, good luck!

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


signature.asc
Description: This is a digitally signed message part.


Re: scattered google-earth image

2007-04-13 Thread Wesley J. Landaker
On Thursday 12 April 2007 14:36, steef wrote:
> i installed a nvidia_graphic_driver into my standard kernel but could
> not get google-earth properly working: the graphics are scattered over
> the screen. has somebody a solution for this problem?

This happens with some nvidia cards, and is absolutely an nvidia card or 
driver problem. 

I've seen this a bunch of times. I don't know of any fix.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpUxuc06bWZ9.pgp
Description: PGP signature


Re: scattered google-earth image

2007-04-13 Thread Wesley J. Landaker
On Friday 13 April 2007 13:16, Wesley J. Landaker wrote:
> On Thursday 12 April 2007 14:36, steef wrote:
> > i installed a nvidia_graphic_driver into my standard kernel but could
> > not get google-earth properly working: the graphics are scattered over
> > the screen. has somebody a solution for this problem?
>
> This happens with some nvidia cards, and is absolutely an nvidia card or
> driver problem.
>
> I've seen this a bunch of times. I don't know of any fix.

Well, some good news for you: I have a machine that *never* worked with 
google earth through several nvidia driver updates. However, after writing 
my last message, I thought, "hmmm, I should try that again, since I haven't 
updated the driver in the last month or two" ... and at least that one 
machine *does* now work correctly, instead of getting a weird scattered 
display.

For reference:

$ lspci | grep VGA
00:05.0 VGA compatible controller: nVidia Corporation C51PV [GeForce 6150] 
(rev a2)

$ apt-cache show nvidia-glx | grep Version
Version: 1.0.9746-2

So, 1.0.9746 at least works with this card. The immediately previous 
released nvidia driver did not.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgp5c6qclYLDf.pgp
Description: PGP signature


Re: Recent upgrade killed matlab

2007-05-06 Thread Wesley J. Landaker
On Tuesday 01 May 2007 01:58:49 Micha Feigin wrote:
> Recent upgrades of sid killed matlab 7 (sp2) for me. When I try to start
> it with the jvm active (gui) I get the error:
>
> MATLAB: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
> Aborted
>
> Any idea what this is, is it solvable and whether it is a common problem
> or only me ?

No idea about your matlab issue (looks like a possible xlib 
incompatibility--you could always run matlab in a etch chroot or 
something), but I can't pass up the opportunity to recommend using octave 
<http://www.octave.org/> instead of matlab if at all posible. =)

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpNlOiwl92jt.pgp
Description: PGP signature


Re: From "Etch" to Testing ("Lenny")

2007-05-06 Thread Wesley J. Landaker
On Tuesday 01 May 2007 13:07:53 andy wrote:
> Has anyone any experience yet in changing their sources.list from "etch"
> (back) to "testing" (i.e. "Lenny")? If so, has it been a smooth
> transition, any problems or gotchas?
>
> I suppose, more generally, when is a good time to switch if one wants an
> up-to-date system, albeit not bleeding edge and unstable? Are there any
> criteria for making such a decision, or is it really just the user's own
> preferences?

Sounds like you already switched, but here is a setup I use a lot of times 
that let's you run etch, but be able to selectively pull down packages from 
unstable/experimental by manually requesting them, but making sure they are 
pinned so that you don't automatically get wild system updates. You could 
replace unstable/experimental in this setup with testing to get a similar 
effect.

/etc/apt/sources.list:
deb http://security.debian.org/ etch/updates main contrib non-free
deb ftp://ftp.us.debian.org/debian/ etch main contrib non-free
deb ftp://ftp.us.debian.org/debian/ unstable main contrib non-free
deb ftp://ftp.us.debian.org/debian/ experimental main contrib non-free
deb-src ftp://ftp.us.debian.org/debian unstable main contrib non-free
deb-src ftp://ftp.us.debian.org/debian experimental main contrib non-free

/etc/apt/preferences:
Package: *
Pin: release a=unstable
Pin-Priority: 50

Package: *
Pin: release a=experimental
Pin-Priority: 40

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpq54j11ZYYv.pgp
Description: PGP signature


Re: Debian policy on copyright

2007-05-06 Thread Wesley J. Landaker
On Wednesday 02 May 2007 12:40:58 Joey Hess wrote:
> Another way to look at this problem is the question of whether this
> program violates copyright:
>
> for int x in 0 .. inf; do print x; done
>
> I claim that it does not, even though it will eventually output the
> HD-DVD key, and much later, the complete works of shakesphere, last
> week's episode of Lost, etc.

I'd be more interesting if it would output NEXT week's episode. In 16:9 w/ 
subtitles, please. Before next week, preferably. =)

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpD0Dx8I937F.pgp
Description: PGP signature


Re: google earth, pango

2007-05-13 Thread Wesley J. Landaker
On Monday 07 May 2007 11:20:49 Gregor wrote:
> Him, I did that... but nothing changed.
> I get no errors, nothing seems to fails.. the I just see that
> google-earth screen (the picture), the dock says "google earth
> initializing" and thats it. Nothing more happens.. it doesnt crash, if I
> kill it, no error message.

What video card do you have?

My guess is that Google Earth doesn't support your video card, or you need 
to use a newer driver (e.g. if you have an nvidia card, you have to use the 
latest non-free binary drivers for your card).

Also, Google just released version 4.1 of Google Earth (you never know what 
version you've got until you download it, unfortunately); the latest 
googleearth-package (0.1.0) supports it. 

Anyway, if you still can't get it to work, you really need to complain to 
Google. Google Earth is cool, but super closed and non-free.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpcfLbQC2nvZ.pgp
Description: PGP signature


Re: help!

2007-05-13 Thread Wesley J. Landaker
On Thursday 10 May 2007 04:10:25 David wrote:
> Hey everyone,
>
> I just downloaded and installed debian 4.0 stable on my laptop a
> couple of days ago, i've been playing around with it and its great!.
> although i have been having a bit of difficulty finding a good guide
> that explains just the basics of debian. Can anyone suggest a good
> guide? i have never used any version of linux os before, i have been
> using windows for a long time though. In particular i want to know how
> to install and remove programs, and whats the difference between the
> kernal and the terminal?! :S haha
>
> Newbie

I've heard from others that this one is great, but I haven't read it myself:

Debian System Concepts and Techniques
http://www.oreilly.com/catalog/1593270690/

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpANPgYWE70N.pgp
Description: PGP signature


Re: Advise on backing up files in Etch.

2007-05-13 Thread Wesley J. Landaker
On Sunday 13 May 2007 18:35:38 Roberto C. Sánchez wrote:
> To recap, you have something like this:
>
>  - backup to external hard drive
>  - ~75 GB in /home
>  - can be stored unencrypted and uncompressed (I would recommend
>compression only when your storage medium will no longer fit it
>uncompressed)
>  - needs to be accessible right away
>
> In that case, I'd recommend rsync.  It will easily work between two
> local directories.  You can mount your external hard drive at /backups
> (or something like that) and then just periodically rsync your /home to
> it.  I used the "Easy Automated Snapshot-Style Backups with Linux and
> Rsync" document as a starting point:

I'd suggest considering rdiff-backup instead. It results in a plain 
unencrypted and uncompressed tree, exactly like rsync, but in addition, 
does real incremental backups. The increments themselves are binary diffs 
and are compressed. It's much nicer than plain rsync with snapshots.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpEaU18PaGOC.pgp
Description: PGP signature


Re: OT: Petition: StarCraft 2 for Linux

2007-05-27 Thread Wesley J. Landaker
On Tuesday 22 May 2007 14:35:30 Ron Johnson wrote:
> On 05/22/07 15:27, Andrei Popescu wrote:
> > At least it's related to Linux :)
> >
> > To make it short here is the link:
> > http://www.petitiononline.com/ibpfl/petition.html
> >
> > If you liked StarCraft (and/or other Blizzard games) then please sign.
>
> Who needs StarCraft when you've got NetHack????

I would agree, if Nethack had Zerglings.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


signature.asc
Description: This is a digitally signed message part.


Re: I am ANGRY with Debian.

2007-06-03 Thread Wesley J. Landaker
On Thursday 31 May 2007 20:56:45 cothrige wrote:
> One could go with gNewSense, http://www.gnewsense.org/, which is what
> Richard Stallman uses.  It appears to be Ubuntu stripped of anything
> that the maintainers would consider non-free.  I am assuming that
> would not mean Emacs docs, as RMS endorses it, but would probably be
> things like nvidia drivers I suppose.

Well since gNewSense is a derivative of Ubuntu which derives from Debian, by 
default the emacs docs would be out as well, unless they add them back in 
themselves. Looking at gNewSense, I got the impression that they only 
removed things and didn't actually modify packages to add things back in.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


signature.asc
Description: This is a digitally signed message part.


Re: I am ANGRY with Debian.

2007-06-03 Thread Wesley J. Landaker
On Sunday 03 June 2007 19:52:27 cothrige wrote:
> * Wesley J. Landaker ([EMAIL PROTECTED]) wrote:
> > Well since gNewSense is a derivative of Ubuntu which derives from
> > Debian, by default the emacs docs would be out as well, unless they add
> > them back in themselves. Looking at gNewSense, I got the impression
> > that they only removed things and didn't actually modify packages to
> > add things back in.
>
> I was aware that gNewSense was derived from Ubuntu, but I suppose I
> had not given much thought to how Ubuntu themselves handle these
> things.  Do they just redistribute these things straight from Debian? 

Well, mostly, yes, they just take a periodic snapshot of sid, and work from 
there. Obviously that is simplifying things somewhat, since they do add 
their own packages, modify their supported core, etc.

> I suppose I simply assumed that they would include the documentation
> for Emacs, either by restoring it to the Debian package or by
> repackaging it entirely.  It makes me a bit curious thinking about it.

I have no idea what they do with stable emacs + documentation in the core 
(if it's in their core), but I would suppose guarantee that if they had an 
emacs snapshot, it would be basically unmodified in their "universe" 
section.

Anyway, the point is that somebody (Ubuntu or gNewSense) is going to have to 
actively do some work to "fix" things to their liking since their upstream 
is Debian. I'm not sure that they actually do or will do this.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


signature.asc
Description: This is a digitally signed message part.


Re: fish problem almost solved

2009-03-26 Thread Wesley J. Landaker
On Thursday 26 March 2009 12:38:27 leo wrote:
> gloogling around I found that setting enviroment variable
> KDE_FORK_SLAVES=true in the command prompt partialy correct the problem
> cause I have to do this every time before konqueror start...

You can set environment variables for the whole X session but putting them 
in your ~/.xsessionrc file.

-- 
Wesley J. Landaker  
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


signature.asc
Description: This is a digitally signed message part.


Re: RAR under linux: any alternative?

2005-12-11 Thread Wesley J. Landaker
On Sunday 11 December 2005 21:00, Steve Lamb wrote:
> Sean Davis wrote:
> > split(1). Been around since AT&T Version 6.
>
> Now verify each portion has no errors in it with split.  Oh, wait, ya
> can't.  That's because it is just a rough split and not an actual archive
> which can be verified.

Well, just use md5sum, sha1sum, etc. Or use .zip with zipsplit -n . . . I 
don't see that rar has any particular advantage there.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpjVJYXAYyIX.pgp
Description: PGP signature


Re: [Way OT] "#!/bin/bash" changes working directory

2006-01-05 Thread Wesley J. Landaker
On Thursday 05 January 2006 12:25, Luis Finotti wrote:
> Dear all,
>
> I realize that this should be "way off topic", so sorry about that...
>
> I've been working on a bash script, but when I run something like:
> ---
> #!/bin/bash
>
> echo $(pwd)
> 
> I always get $HOME, not the current working directory.  I'd need to
> continue in the working directory from where the script was called to
> work on the files there.  (I'd like it to be portable too, so although
> it seems to work in my home machine running sarge, it doesn't work
> with Fedora or OSX...)

The script you've shown works fine, just the way you want. Nothing in there 
is going to change the working directory. 

For example:

$ pwd
/home/wjl/tmp
$ cat <test.sh
#!/bin/bash
echo $(pwd)
EOF
$ chmod a+x test.sh
$ ./test.sh
/home/wjl/tmp

If you think you're having magic changing directories, I think you'll need 
to post more information, like the exact script you're using, and EXACTLY 
how you are running it. =)

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpHAOU92C3WP.pgp
Description: PGP signature


Re: [Way OT] "#!/bin/bash" changes working directory

2006-01-05 Thread Wesley J. Landaker
On Thursday 05 January 2006 13:16, Luis Finotti wrote:
> I have
>
> ---
>   AUTOHOME=$PWD
>
>   # Clean up stupid automounter directory
>   case $PWD in
> $AUTOHOME*) cd $HOME${PWD#$AUTOHOME} ;;
>   esac
>   PS1='\h[\w]% '
> -
>
> To be honest, I had this for 10 years and never thought about it.
>
> In any case, is there a way to avoid the change.  I'd like the script
> to work even if someone also has something like that...

Well, this certainly appears to be your problem. 

What exactly are you trying to accomplish with this snippet? It certainly 
doesn't look like a normal thing to do.

Also, do you have the same problem if you use #!/bin/sh instead of 
#!/bin/bash? You mentioned wanting to be portable, so that's a good idea 
anyway.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpKEGYKTvS8c.pgp
Description: PGP signature


Re: alternative to packages.debian.org

2006-01-18 Thread Wesley J. Landaker
On Wednesday 18 January 2006 08:55, icmp wrote:
> is there packages.debian.org alternative anywhere ?

Not sure what feature from it you want a replacement for, but you know about 
packages.qa.debian.org, right?

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpflTEVRwRbN.pgp
Description: PGP signature


Re: Fwd: Re: Another bug of debian package --- Validation issue

2006-04-16 Thread Wesley J. Landaker
On Sunday 16 April 2006 07:29, formless void wrote:
> If both are credible, it won't mess up the system,
> would it?

Sorry, this thread has been painful to read, but I can't let this one pass:

> In any computer language
>
> A = false, B = false, A + B = false
> A = false, B = true, A + B = false
> A = true, B = false, A + B = false
> A = true, B = true, A + B = true

What is your + operator supposed to be here? If it's either ADD or OR, then:

A=false, B=false, A+B=false
A=false, B=true, A+B=true
A=true, B=false, A+B=true
A=true, B=true, A+B=true

What you described is an AND function, which is never represented by a "+" 
in *any* computer language, in Boolean mathematics, nor in any field of 
formal logic.

> Who doesn't know what he/she is doing?

...

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpo1mAEFFg4i.pgp
Description: PGP signature


Re: Firewall software for Debian

2006-04-16 Thread Wesley J. Landaker
On Sunday 16 April 2006 14:47, lmyho wrote:
> I would like to ask for advice on the good firewall software to use for
> Debian.

I'd recommend firehol as a powerful but easy to use text-mode firewall 
generator. I like it a lot better than shorewall personally.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpUc9zRHmJoE.pgp
Description: PGP signature


Re: mplayer & mencoder

2006-05-06 Thread Wesley J. Landaker
On Saturday 06 May 2006 09:48, gustavo halperin wrote:
> Second I want know how transcode to "mp3" audio format a dump audio
> file. This dump file I record from some Microsoft audio/radio stream
> like this one "mms://200.59.146.10/rockandpop-ba", using 'mplayer' in
> the next form "mplayer mms://200.59.146.10/rockandpop-ba -dumpstream".
> When I try use 'mencoder', its always say "Video stream is mandatory!"
> but, as you know. There are any way for use 'mencoder' for stream whit
> out video ??

You can try passing in /dev/null for the video stream, and using -vo null. 
Also, you could try using xine with "--audio-driver file" to output to a 
file.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgppVqvjj9qJA.pgp
Description: PGP signature


Re: Howto setup my own CA the right way?

2006-02-02 Thread Wesley J. Landaker
On Thursday 02 February 2006 18:55, Pascal Huisman wrote:
> Can anyone point me to a tutorial/howto on how to setup my own CA the
> right way?
>
> Scripts from freeradius like CA.all,  or CA.pl, and
> apache2-ssl-certificate are all fast ways to nowhere. The many tutorials
> I find on the net differ so much, it's hard to figure out how to do it
> proper.
>
> Afterwards I wish to create certs for apache, ssl, openvpn, freeradius,
> clients and more.

I don't know if it will meet your needs or not, but there is a GUI program 
in Debian called TinyCA (e.g. aptitude install tinyca) that will help you 
manage a CA, generate certs, etc.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpALBQpOYrDV.pgp
Description: PGP signature


Re: Strange network things: eth1 (but no nic!!) and sit0

2006-02-25 Thread Wesley J. Landaker
On Saturday 25 February 2006 07:56, Joost Kraaijeveld wrote:
> Hi,
>
> After installing Etch on my AMD64 machine I suddenly have an extra eth1
> without actually having an NIC. I cannot activate it  in the "Network
> settings" applet but it is shown during boot and in the output of
> ifconfig (without ip address). Can anyone give me clue as to where this
> eth1 is comming from ? Is that related to my next question (IP6)?  Or
> maybe firewire ?

There is a good chance this is your Firewire interface. For instance, on my 
system:

$ ip link show
1: lo:  mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0:  mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:11:d8:68:f5:92 brd ff:ff:ff:ff:ff:ff
3: eth1:  mtu 1500 qdisc noop qlen 1000
link/ieee1394 00:11:d8:00:00:08:50:49 brd ff:ff:ff:ff:ff:ff:ff:ff
4: sit0:  mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0

Notice that eth0 is link/ether (Ethernet) and eth1 is link/ieee1394 
(Firewire).

> I also have a "sit0" which appears to be a IPv6-in-IPv4 address. Is that
> correct? IS there any documentation available a to why that is (I have
> nothing configured myself, there is nothing about IP6 I can find on my
> machine)?

sit0 is a generic device that will AFAIK always be around if you have IPv6 
support, whether or not that support is configured.

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpPDiRSIWo4F.pgp
Description: PGP signature


Re: Was this question too technical for this group? : Is the %ESP register special?

2005-09-04 Thread Wesley J. Landaker
On Sunday 04 September 2005 15:55, Hendrik Boom wrote:
> Was this question too technical for this list?
> If so, where do you recommend I ask it again?
>
> -- hendrik
>
> > Using assembler in debian on an intel platform.
> >
> > Is the %ESP register special in any way (except, of course,
> > ist use in the POP and PUSH istructions and their friends.)

I understand what you're asking, but I don't know the answer. You might want 
to ask on a more techinal forum where people are more likely to know this 
without needing to do tons of research, like a gcc or kernel mailing list.

Good luck! =)

-- 
Wesley J. Landaker <[EMAIL PROTECTED]> 
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgpbI3RARROCY.pgp
Description: PGP signature