Re: [dev] anyone played with mkinit?

2010-11-12 Thread Bjartur Thorlacius
On 11/11/10, Uriel ur...@berlinblue.org wrote:
 On Tue, Nov 9, 2010 at 6:06 AM, Jens Staal staal1...@gmail.com wrote:
 There is an rc version in the svn repository though.

 Out of principle I refuse to touch anything stored in a svn repository.

 And really, the whole problem space is wrong, if you need an 'init
 system' your system is already FUBAR.

What do you mean? One needs a program with PID 1. That could be a
script, but if you need to edit that script you risk corrupting the
system initialization. In special if you allow a package manager to
add an entry. Thus you'll want to compile it from multiple simpler
scripts. Such compilation will have to take dependencies into account
(either the admin or computer). Scripts that may run in parallel may
be seperate and execute in their own process, but for scripts that
need to execute one after another, spawning a whole new process seems
wasteful.

 If your init system requires dependency tracking then you are way beyond
 FUBAR.
Arguably, but declaring dependencies is simpler than keeping up- and
downbringing scripts in sync. I'll admit that I'm gradually removing
dependency management from my boot process, so I'd better not argue
for it.
-- 
kv,
  - Bjartur



[dev] Problem starting wmii with fresh ruby github wmiirc

2010-11-12 Thread Armando Di Cianno
I have a fresh Ubuntu 10.10 install, and compiled and installed the
tarball of wmii 3.9.2 via 'make deb' and dpkg.

When using the default sh wmiirc, I have to manually set WMII_CONFPATH
to ~/.wmii, or it tries writing to /.wmii/foo. I set this in my
~/.bashrc, which does make it into my environment

I followed sunaku's directions on the github wmiirc ruby page. I've
used wmii on gentoo before, but wanted to get a setup going on Ubuntu
before I started before modding stuff. However, while the window
manager is running and managing windows, I don't get the menu. I've
installed 'suckless-tools' package as well, in case it was trying to
use dmenu.

I thought that (for the same reason as WMII_CONFPATH) I might have to
define WMII_NAMESPACE explicitly, but that doesn't seem to help.

So ... help! Ideas?

Cheers,
__armando



Re: [dev] Problem starting wmii with fresh ruby github wmiirc

2010-11-12 Thread Kris Maglione

On Fri, Nov 12, 2010 at 11:31:27AM -0500, Armando Di Cianno wrote:

I have a fresh Ubuntu 10.10 install, and compiled and installed the
tarball of wmii 3.9.2 via 'make deb' and dpkg.

When using the default sh wmiirc, I have to manually set WMII_CONFPATH
to ~/.wmii, or it tries writing to /.wmii/foo. I set this in my
~/.bashrc, which does make it into my environment

I followed sunaku's directions on the github wmiirc ruby page. I've
used wmii on gentoo before, but wanted to get a setup going on Ubuntu
before I started before modding stuff. However, while the window
manager is running and managing windows, I don't get the menu. I've
installed 'suckless-tools' package as well, in case it was trying to
use dmenu.

I thought that (for the same reason as WMII_CONFPATH) I might have to
define WMII_NAMESPACE explicitly, but that doesn't seem to help.

So ... help! Ideas?


I can't say for certain, but I believe that the version of 
Suraj's wmiirc on github is currently compatible with wmii-hg 
rather than the 3.9 release.


--
Kris Maglione

Good judgement comes from experience, and experience comes from bad
judgement.
--Fred Brooks




[dev] [dwm] Windows size changes

2010-11-12 Thread David DEMELIER
Hello,

I was surprised to see that a java window does not update its content,
in fact nothing changes. If you resize the window nothing happens and
the usual behavior is that the window updates its content to the new
size.

On pekwm or gnome, it works. The window `stretch' its content to the
maximal size, on dwm nothing happens it stays at white.

You can try my little example program on a free wm and dwm :

import javax.swing.*;
import java.awt.*;

public class Compteur extends JPanel {
JButton jp_plus;/* Bouton plus */
JButton jp_minus;   /* Bouton moins */

JTextField jtf_field;   /* Affichage du compteur */

public Compteur() {
super ();
this.setLayout(new BorderLayout());

jp_plus = new JButton(+);
jp_minus = new JButton(-);

jtf_field = new JTextField(0, 20);

this.add(jp_plus, BorderLayout.WEST);
this.add(jtf_field, BorderLayout.CENTER);
this.add(jp_minus, BorderLayout.EAST);
}

public static void main(String[] args) {
JFrame jf = new JFrame(Exercice 2 : Compteur);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jf.setSize(400,100);

JPanel jp_cp = new Compteur();

jf.add(jp_cp);
jf.setVisible(true);
}
}

Kind regards,

-- 
Demelier David



Re: [dev] Problem starting wmii with fresh ruby github wmiirc

2010-11-12 Thread Armando Di Cianno
ATM I have a shiny new comp, so i'm in a I have a hammer, and
everything looks like a nail-situation. I'm going to reinstall
Gentoo, as I'd like to get a Linux distro and WMII installed, to be
productive (suddenly realized I wasn't in the mood to learn
Ubuntu/Debian). When I get to the WMII install, if the issue with
3.9.2 disappears, or is resolved by using hg tip, I'll post my results
here.

Thanks, and cheers,
__armando


On Fri, Nov 12, 2010 at 11:38 AM, Kris Maglione maglion...@gmail.com wrote:
 On Fri, Nov 12, 2010 at 11:31:27AM -0500, Armando Di Cianno wrote:

 I have a fresh Ubuntu 10.10 install, and compiled and installed the
 tarball of wmii 3.9.2 via 'make deb' and dpkg.

 When using the default sh wmiirc, I have to manually set WMII_CONFPATH
 to ~/.wmii, or it tries writing to /.wmii/foo. I set this in my
 ~/.bashrc, which does make it into my environment

 I followed sunaku's directions on the github wmiirc ruby page. I've
 used wmii on gentoo before, but wanted to get a setup going on Ubuntu
 before I started before modding stuff. However, while the window
 manager is running and managing windows, I don't get the menu. I've
 installed 'suckless-tools' package as well, in case it was trying to
 use dmenu.

 I thought that (for the same reason as WMII_CONFPATH) I might have to
 define WMII_NAMESPACE explicitly, but that doesn't seem to help.

 So ... help! Ideas?

 I can't say for certain, but I believe that the version of Suraj's wmiirc on
 github is currently compatible with wmii-hg rather than the 3.9 release.

 --
 Kris Maglione

 Good judgement comes from experience, and experience comes from bad
 judgement.
        --Fred Brooks






Re: [dev] [dwm] Windows size changes

2010-11-12 Thread pmarin
On Fri, Nov 12, 2010 at 7:58 PM, David DEMELIER
demelier.da...@gmail.com wrote:
 Hello,

 I was surprised to see that a java window does not update its content,
 in fact nothing changes. If you resize the window nothing happens and
 the usual behavior is that the window updates its content to the new
 size.

 On pekwm or gnome, it works. The window `stretch' its content to the
 maximal size, on dwm nothing happens it stays at white.

 You can try my little example program on a free wm and dwm :

 import javax.swing.*;
 import java.awt.*;

 public class Compteur extends JPanel {
        JButton jp_plus;        /* Bouton plus */
        JButton jp_minus;       /* Bouton moins */

        JTextField jtf_field;   /* Affichage du compteur */

        public Compteur() {
                super ();
                this.setLayout(new BorderLayout());

                jp_plus = new JButton(+);
                jp_minus = new JButton(-);

                jtf_field = new JTextField(0, 20);

                this.add(jp_plus, BorderLayout.WEST);
                this.add(jtf_field, BorderLayout.CENTER);
                this.add(jp_minus, BorderLayout.EAST);
        }

        public static void main(String[] args) {
                JFrame jf = new JFrame(Exercice 2 : Compteur);
                jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                jf.setSize(400,100);

                JPanel jp_cp = new Compteur();

                jf.add(jp_cp);
                jf.setVisible(true);
        }
 }

 Kind regards,

 --
 Demelier David



When I had problems with Java some years ago I remember to setup the
environment variable= Mtoolkit  and worked (with a very old version of
dwm)