Re: [dev] [wmii] notifications only work from tag 1

2010-01-24 Thread Kris Maglione
On 2010-01-14, Yuval Hager wrote: > I am trying to send notifications using 'notify-send' (libnotify) and I > found out they work only if they are sent from tag 1. > otherwise, I get the following message from dbus-daemon: > > , > | (:5963): Wnck-WARNING **: Someone set a weird number of deskt

Re: [dev] [wmii] sticky tagrule

2010-01-24 Thread Kris Maglione
On 2009-12-31, Noah Tye wrote: > I run trayer, a small system tray, so that I can run nm-applet and use > Gnome's volume applet. Trayer is automatically started via my wmiirc, > however, it is not visible on all views (it's not sticky). > > I want trayer to be sticky. This is possible[1] via: >

Re: [dev] wmii in virtualbox won't resize when display is resized

2010-01-24 Thread Kris Maglione
On 2010-01-24, Andreas Wagner wrote: > I am running linux in virtualbox and I have switched from stumpwm to wmii. I > have a problem I did not have when using stumpwm, this leads me to believe > the problem may be a wmii problem not a virtualbox problem. When I resize > the Virtualbox display wind

[dev] wmii in virtualbox won't resize when display is resized

2010-01-24 Thread Andreas Wagner
Hello wmii devs, I am running linux in virtualbox and I have switched from stumpwm to wmii. I have a problem I did not have when using stumpwm, this leads me to believe the problem may be a wmii problem not a virtualbox problem. When I resize the Virtualbox display window under wmii the X display

[dev] [OFFTOPIC] Recommended meta-build system

2010-01-24 Thread David Tweed
Hi, I'm wondering if anyone has had particularly good experiences with any meta-build system (cmake, etc) in the following circumstances: I will have a large codebase which consists of some generic files and some processor specific files. (I'm not worried about OS environent stuff like "has vsnpr

Re: [dev] [OFFTOPIC] How to know the size of a process?

2010-01-24 Thread Charlie Kester
On Sun 24 Jan 2010 at 13:48:08 PST Charlie Kester wrote: On Sun 24 Jan 2010 at 13:26:56 PST Premysl Hruby wrote: On (24/01/10 13:07), Charlie Kester wrote: Date: Sun, 24 Jan 2010 13:07:14 -0800 From: Charlie Kester To: dev@suckless.org Subject: Re: [dev] [OFFTOPIC] How to know the size of a pr

Re: [dev] saving program options

2010-01-24 Thread anonymous
> TAOUP also recommends small programs that do just one thing. If you > have so many options that you need a "huge structure" to store them, > that might be a sign that your program is overly complex. Consider > factoring it into a set of smaller cooperating processes. It is not too big, but the

[dev] saving program options

2010-01-24 Thread Justin Jackson
Well said. > TAOUP also recommends small programs that do just one thing.  If you > have so many options that you need a "huge structure" to store them, > that might be a sign that your program is overly complex.  Consider > factoring it into a set of smaller cooperating processes. > > Many people

Re: [dev] saving program options

2010-01-24 Thread Charlie Kester
On Sun 24 Jan 2010 at 11:57:34 PST anonymous wrote: Where programs should store their options? Sometimes it is said that global variables are bad, but what is better? Some huge structure storing all options? Of course, they can be divided into many structures or they can be passed on a stack inst

Re: [dev] [OFFTOPIC] How to know the size of a process?

2010-01-24 Thread Charlie Kester
On Sun 24 Jan 2010 at 13:26:56 PST Premysl Hruby wrote: On (24/01/10 13:07), Charlie Kester wrote: Date: Sun, 24 Jan 2010 13:07:14 -0800 From: Charlie Kester To: dev@suckless.org Subject: Re: [dev] [OFFTOPIC] How to know the size of a process? List-Id: dev mail list X-Mailer: Mutt 1.5.20 User-

Re: [dev] [OFFTOPIC] How to know the size of a process?

2010-01-24 Thread Premysl Hruby
On (24/01/10 13:07), Charlie Kester wrote: > Date: Sun, 24 Jan 2010 13:07:14 -0800 > From: Charlie Kester > To: dev@suckless.org > Subject: Re: [dev] [OFFTOPIC] How to know the size of a process? > List-Id: dev mail list > X-Mailer: Mutt 1.5.20 > User-Agent: Mutt/1.5.20 (2009-06-14) > > On Sun 2

Re: [dev] [OFFTOPIC] How to know the size of a process?

2010-01-24 Thread Charlie Kester
On Sun 24 Jan 2010 at 09:42:59 PST Premysl Hruby wrote: Btw, There's one issue with trying to get size of process -- shared memory. To which process should it count? And how? Or count only fraction for each of process using that shared memory ... Not easy. :-) If the shared library really is s

[dev] saving program options

2010-01-24 Thread anonymous
Where programs should store their options? Sometimes it is said that global variables are bad, but what is better? Some huge structure storing all options? Of course, they can be divided into many structures or they can be passed on a stack instead of passing pointer to structure but it is not effe

Re: [dev] [OFFTOPIC] How to know the size of a process?

2010-01-24 Thread Tadeusz Sośnierz
> On (24/01/10 18:35), pmarin wrote: > > Hi all. > > Anyone know how to know the size (kb) of a process in Linux? > > using the proc filesystem I can know the number of pages that it uses > > (/proc/pid/statm). How I can convert > > it to kb? Any posix way? Here's some funny script [1] I'm aware o

Re: [dev] [OFFTOPIC] How to know the size of a process?

2010-01-24 Thread Antoni Grzymala
pmarin dixit (2010-01-24, 18:35): > Hi all. > Anyone know how to know the size (kb) of a process in Linux? > using the proc filesystem I can know the number of pages that it uses > (/proc/pid/statm). How I can convert > it to kb? Any posix way? Man proc(5). The sizes given are in pages. The rest

Re: [dev] [OFFTOPIC] How to know the size of a process?

2010-01-24 Thread Premysl Hruby
On (24/01/10 18:35), pmarin wrote: > Date: Sun, 24 Jan 2010 18:35:31 +0100 > From: pmarin > To: dev@suckless.org > Subject: [dev] [OFFTOPIC] How to know the size of a process? > List-Id: dev mail list > > Hi all. > Anyone know how to know the size (kb) of a process in Linux? > using the proc fil

[dev] [OFFTOPIC] How to know the size of a process?

2010-01-24 Thread pmarin
Hi all. Anyone know how to know the size (kb) of a process in Linux? using the proc filesystem I can know the number of pages that it uses (/proc/pid/statm). How I can convert it to kb? Any posix way? pmarin