Re: [dev] run a program and display on a specific tab

2011-06-06 Thread Erik Hahn
On Mon, Jun 06, 2011 at 11:20:29AM +0100, Piotr Zalewa wrote: Hi, I want to create a script which will load my default setup (quite a few programs). How to run a program so it will be displayed on a desired tab? (view, workspace - I always had a problem with that lingo) In wmii, you can

Re: [dev] [PATCH] [lsw] Create manpage directory if it's not there

2011-06-06 Thread Connor Lane Smith
Hey, On 6 June 2011 09:35, Petr Sabata con...@redhat.com wrote: This is self-explanatory... Applied, thanks. Connor

Re: [dev] [PATCH] [lsw] Create manpage directory if it's not there

2011-06-06 Thread Petr Sabata
On Mon, Jun 06, 2011 at 12:52:32PM +0100, Connor Lane Smith wrote: Hey, On 6 June 2011 09:35, Petr Sabata con...@redhat.com wrote: This is self-explanatory... Applied, thanks. Awesome. While you're updating those small tools, any chance of getting this in?

Re: [dev] run a program and display on a specific tab

2011-06-06 Thread Piotr Zalewa
On 06/06/11 11:40, ilf wrote: On 06-06 11:20, Piotr Zalewa wrote: I want to create a script which will load my default setup (quite a few programs). I use .xinitrc for this. I don't want to do it every time How to run a program so it will be displayed on a desired tab? (view, workspace -

Re: [dev] [PATCH] [lsw] Create manpage directory if it's not there

2011-06-06 Thread Ethan Grammatikidis
On Mon, 6 Jun 2011 10:35:56 +0200 Petr Sabata con...@redhat.com wrote: + @mkdir -p ${DESTDIR}${MANPREFIX}/man1 This is the sort of thing which has people symlinking man - share/man or vice versa.

Re: [dev] run a program and display on a specific tab

2011-06-06 Thread Alex Bradbury
2011/6/6 Piotr Zalewa zal...@gmail.com: Hi, I want to create a script which will load my default setup (quite a few programs). How to run a program so it will be displayed on a desired tab? (view, workspace - I always had a problem with that lingo) I have used xdotool for this. I've been

Re: [dev] run a program and display on a specific tab

2011-06-06 Thread Piotr Zalewa
On 06/06/11 15:41, Connor Lane Smith wrote: Hey, 2011/6/6 Piotr Zalewazal...@gmail.com: How to run a program so it will be displayed on a desired tab? (view, workspace - I always had a problem with that lingo) So are we talking about wmii or dwm or what? wmii zalun

Re: [dev] run a program and display on a specific tab

2011-06-06 Thread Kurt H Maier
On Mon, Jun 6, 2011 at 11:52 AM, Piotr Zalewa zal...@gmail.com wrote: wmii The problem has become insoluble. Even locating all possible solutions is NP-hard. -- # Kurt H Maier

Re: [dev] Suckless Smartphone?

2011-06-06 Thread Andrew Hills
On Mon, Jun 6, 2011 at 12:20 PM, Guilherme Lino guih.l...@gmail.com wrote: whene you dont have your pc, read a book.. i think thats the most suckless way No, not really... --Andrew Hills

Re: [dev] Suckless Smartphone?

2011-06-06 Thread Guilherme Lino
a book about plan9? -- Guilherme Lino On Mon, Jun 6, 2011 at 5:23 PM, Andrew Hills hills...@gmail.com wrote: On Mon, Jun 6, 2011 at 12:20 PM, Guilherme Lino guih.l...@gmail.com wrote: whene you dont have your pc, read a book.. i think thats the most suckless way No, not really...

Re: [dev] Suckless Smartphone?

2011-06-06 Thread Dieter Plaetinck
non-electronic books suck because you can't easily search in, or copypaste from them. maybe you need a tablet or one of those ebook readers. Dieter On Mon, 6 Jun 2011 17:42:29 +0100 Guilherme Lino guih.l...@gmail.com wrote: a book about plan9? -- Guilherme Lino On Mon, Jun 6, 2011 at

Re: [dev] Suckless Smartphone?

2011-06-06 Thread Lorenzo Bolla
On Mon, Jun 6, 2011 at 5:20 PM, Guilherme Lino guih.l...@gmail.com wrote: i would recomend a cheap phone, that make calls and sends smSs.. whene you dont have your pc, read a book.. i think thats the most suckless way Amen. -- Guilherme Lino

Re: [dev] [PATCH] [lsw] Create manpage directory if it's not there

2011-06-06 Thread Petr Sabata
On Mon, Jun 06, 2011 at 04:36:24PM +0100, Ethan Grammatikidis wrote: On Mon, 6 Jun 2011 10:35:56 +0200 Petr Sabata con...@redhat.com wrote: + @mkdir -p ${DESTDIR}${MANPREFIX}/man1 This is the sort of thing which has people symlinking man - share/man or vice versa. I really don't

Re: [dev] Suckless Smartphone?

2011-06-06 Thread garbeam
On 6 June 2011 17:45, Dieter Plaetinck die...@plaetinck.be wrote: non-electronic books suck because you can't easily search in, or copypaste from them. Let's talk again in 40 years if you can still read your ebooks by then :) I stay loyal to real books. --garbeam

[dev] Best way to serialize data

2011-06-06 Thread Džen
I was wondering about which way would be the easiest/simplest to serialize data, f.e. being read via a file or stdin (data being a table of x rows and y columns, each cell a string). I thought of using NULL bytes as cell delimiters and newline characters as row delimiters. This way it wouldn't be

Re: [dev] Suckless Smartphone?

2011-06-06 Thread pancake
I do, but only in phone, laptop/desktop/ebook screens sucks for reading. On 06/06/11 19:24, Guilherme Lino wrote: electronic books suck because you dont actually read them -- Guilherme Lino On Mon, Jun 6, 2011 at 5:45 PM, Dieter Plaetinck die...@plaetinck.be mailto:die...@plaetinck.be

Re: [dev] Suckless Smartphone?

2011-06-06 Thread Dieter Plaetinck
that's only because i have no ebook reader yet. because they all suck. On Mon, 6 Jun 2011 18:24:16 +0100 Guilherme Lino guih.l...@gmail.com wrote: electronic books suck because you dont actually read them -- Guilherme Lino On Mon, Jun 6, 2011 at 5:45 PM, Dieter Plaetinck

Re: [dev] Best way to serialize data

2011-06-06 Thread Dieter Plaetinck
On Mon, 06 Jun 2011 19:19:56 +0200 Džen yvl...@gmail.com wrote: I was wondering about which way would be the easiest/simplest to serialize data, f.e. being read via a file or stdin (data being a table of x rows and y columns, each cell a string). I thought of using NULL bytes as cell

Re: [dev] Suckless Smartphone?

2011-06-06 Thread Dieter Plaetinck
I agree with that. phone screens are the least sucky to read ebooks on. Dieter On Mon, 06 Jun 2011 19:34:20 +0200 pancake panc...@youterm.com wrote: I do, but only in phone, laptop/desktop/ebook screens sucks for reading. On 06/06/11 19:24, Guilherme Lino wrote: electronic books suck

Re: [dev] Best way to serialize data

2011-06-06 Thread Douglas S. Bregolin
In the ASCII table there's a record separator character (0x1E). At least I think is better than using '\0'. On Mon, Jun 6, 2011 at 2:19 PM, Džen yvl...@gmail.com wrote: I was wondering about which way would be the easiest/simplest to serialize data, f.e. being read via a file or stdin (data

Re: [dev] Suckless Smartphone?

2011-06-06 Thread pancake
i mostly do this when i'm at bed (before waking up and when going to sleep), the phone/pda/itt/... screen size is the best one for this situation, and it's usually more comfortable than any other gadget, it brights on the dark, it's small and you can manage it with just one finger without pain.

Re: [dev] Best way to serialize data

2011-06-06 Thread Džen
On 06/06/2011 19:36, Douglas S. Bregolin wrote: In the ASCII table there's a record separator character (0x1E). At least I think is better than using '\0'. On 06/06/2011 19:42, Christoph Lohmann wrote: then why wasn't \x1C-\x1F used before for a data exchange format? To be honest, I've

Re: [dev] Best way to serialize data

2011-06-06 Thread Connor Lane Smith
Hey, On 6 June 2011 18:19, Džen yvl...@gmail.com wrote: I was wondering about which way would be the easiest/simplest to serialize data, f.e. being read via a file or stdin (data being a table of x rows and y columns, each cell a string). I thought of using NULL bytes as cell delimiters and

Re: [dev] Best way to serialize data

2011-06-06 Thread Connor Lane Smith
On 6 June 2011 19:22, Connor Lane Smith c...@lubutu.com wrote: 0x000d 0x0006 hello\0 0x0007 world!\0 I made a mistake here, I meant to say... 0x0011 0x0006 hello\0 0x0007 world!\0 ... including two 2-byte cell widths in the row width.

Re: [dev] run a program and display on a specific tab

2011-06-06 Thread Benoit T
hello, if you were referring to dwm rather than wmii... On Mon, Jun 06, 2011 at 02:49:57PM +0100, Piotr Zalewa wrote: I want to create a script which will load my default setup (quite a few programs). I use .xinitrc for this. ... or .xsession I don't want to do it every time then create

Re: [dev] Suckless Smartphone?

2011-06-06 Thread Connor Lane Smith
Hey, On 6 June 2011 19:25, David Tweed david.tw...@gmail.com wrote: (In general, I'm always a bit surprised how it seems to be perceived to be suckless to proscribe the user-level tasks that are allowed. How those are implemented yes, but saying that classes of activity are not acceptable?)

Re: [dev] Best way to serialize data

2011-06-06 Thread Džen
Pretty much answers my question. In my use case it'd be easier to use delimiters like \0 or \n, due to the data not being binary. However now I wonder, which method would need more cpu time? I suppose that when using delimiters there isn't a easier way than using fgetc(), reading through the

Re: [dev] Best way to serialize data

2011-06-06 Thread Connor Lane Smith
On 6 June 2011 20:07, Džen yvl...@gmail.com wrote: I wonder, which method would need more cpu time? I suppose that when using delimiters there isn't a easier way than using fgetc(), reading through the whole data stream. Hard-coded field lengths would be faster if the fields contain a lot of

Re: [dev] Patch for dmenu_path - pass -maxdepth 1 to find(1)

2011-06-06 Thread Connor Lane Smith
Hey, On 6 June 2011 22:10, Troels Henriksen at...@sigkill.dk wrote: If . is part of your PATH (leaving aside questions of whether this is a good idea), dmenu_path can be very slow, as it searches the entire tree from the working directory for binaries, despite the fact that only those

Re: [dev] [PATCH] [lsw] Create manpage directory if it's not there

2011-06-06 Thread Connor Lane Smith
On 6 June 2011 14:05, Petr Sabata con...@redhat.com wrote: While you're updating those small tools, any chance of getting this in? http://lists.suckless.org/dev/1105/8047.html As I just discovered, lsx doesn't appear to have its own repo. I'm unsure why. But no, I apparently can't. ;) cls

Re: [dev] run a program and display on a specific tab

2011-06-06 Thread Ruben Gonzalez Arnau
On 06/06/11 12:20, Piotr Zalewa wrote: Hi, I want to create a script which will load my default setup (quite a few programs). How to run a program so it will be displayed on a desired tab? (view, workspace - I always had a problem with that lingo) thanks, zalun Assuming you are using sh

Re: [dev] PATCH for/back navigation with xprop

2011-06-06 Thread Ethan Grammatikidis
On Fri, 3 Jun 2011 23:16:49 + Bjartur Thorlacius svartma...@gmail.com wrote: It's just that I believe spawning processes and creating windows should be dirt cheap operations. Optimally, almost nothing should be done in those functions. With Gtk+ 2.OMGWANTMOARBLOAT invading computers

Re: [dev] Suckless Smartphone?

2011-06-06 Thread Suraj N. Kurapati
On Mon 06 Jun 2011 06:16:22 PM PDT, garbeam wrote: On 6 June 2011 17:45, Dieter Plaetinck wrote: non-electronic books suck because you can't easily search in, or copypaste from them. Let's talk again in 40 years if you can still read your ebooks by then :) I stay loyal to real books. +1

Re: [dev] [PATCH] [lsw] Create manpage directory if it's not there

2011-06-06 Thread Ethan Grammatikidis
On Mon, 6 Jun 2011 18:42:20 +0200 Petr Sabata con...@redhat.com wrote: On Mon, Jun 06, 2011 at 04:36:24PM +0100, Ethan Grammatikidis wrote: On Mon, 6 Jun 2011 10:35:56 +0200 Petr Sabata con...@redhat.com wrote: + @mkdir -p ${DESTDIR}${MANPREFIX}/man1 This is the sort of thing

Re: [dev] Best way to serialize data

2011-06-06 Thread hiro
Reason why I'm asking is because I was wondering how a dmenu-alike utility would read data, where each items has multiple values, not just one. Kinda like a search utility for table-structured data. Interesting, you seem to be on the right track.

Re: [dev] run a program and display on a specific tab

2011-06-06 Thread hiro
The problem has become insoluble.  Even locating all possible solutions is NP-hard. I don't get it.