Re: [dev] st on OpenBSD?

2010-08-23 Thread Anselm R Garbe
On 23 August 2010 03:40, Anthony J. Bentley wrote: > I am interested in using st on OpenBSD, but it does not compile since > OpenBSD does not implement posix_openpt et al: > > st.c: In function 'ttynew': > st.c:243: warning: implicit declaration of function 'posix_openpt' > st.c:245: warning: impl

Re: [dev] Re: Digest of dev@suckless.org issue 40 (5783-5832)

2010-08-23 Thread Anselm R Garbe
On 23 August 2010 05:14, Josh Wilcox wrote: >   I'm using gnu stow with the dwm source. > >   I noticed that, in the Makefile, the variable DESTDIR is incorporated into > path names before the variable PREFIX.   I think that in most use-cases > DESTDIR is an empty variable and this does not matter

Re: [dev] Usable typesetting system?

2010-08-23 Thread Jacob Todd
On Sun, Aug 22, 2010 at 01:15:40PM +0200, Martin Kopta wrote: > Hi everyone, > > I wrote my bachelor thesis using LaTeX and now I am going to write my > master thesis. I would rather avoid TeX and everything TeX based this time. > > The PDF output of (La)TeX is awesome and I really like that pa

[dev] [surf] OT JSStringRef to stdout

2010-08-23 Thread Christian Hahn
Hi, I want to print a possible exception in function *runscript* to stdout, but I have a problem with this JSStringRef. What I currently do is: if (fwide(stdout, 1) >0) . JSStringRef str = JSStringCreateWithUTF8CString("test"); const JSChar *c = JSStringGetCharactersPtr(str); for(int i=0

[dev] [dwm] remove unneeded lines

2010-08-23 Thread Hiltjo Posthuma
Hi, The attached patch removes an unneccesary check in the enternotify() function and removes about 4 lines. It might make it slightly less readable maybe, but if you like it feel free to apply it :) Kind regards, Hiltjo Posthuma diff -r 0d86faf4b05c dwm.c --- a/dwm.c Sun Jul 25 09:58:25 2010 +01

Re: [dev] [dwm] remove unneeded lines

2010-08-23 Thread Anselm R Garbe
On Mon, Aug 23, 2010 at 06:15:02PM +0200, Hiltjo Posthuma wrote: > The attached patch removes an unneccesary check in the enternotify() > function and removes about 4 lines. It might make it slightly less readable > maybe, but if you like it feel free to apply it :) Excellent, applied! Cheers,

[dev] Stripping html from email

2010-08-23 Thread Josh Rickmar
Is there currently a tool or script that I can use to strip html from emails? Basically, it should work like this: - Read the message from stdin - If there is no html, leave as is - If it finds both html and plain text, strip the html attachment - If it finds html but no plain text, leave as is

Re: [dev] Stripping html from email

2010-08-23 Thread Anthony J. Bentley
> Is there currently a tool or script that I can use to strip html > from emails? Basically, it should work like this: > > - Read the message from stdin > - If there is no html, leave as is > - If it finds both html and plain text, strip the html attachment > - If it finds html but no plain text,

Re: [dev] Stripping html from email

2010-08-23 Thread Josh Rickmar
On Mon, Aug 23, 2010 at 09:46:58PM -0600, Anthony J. Bentley wrote: > > Is there currently a tool or script that I can use to strip html > > from emails? Basically, it should work like this: > > > > - Read the message from stdin > > - If there is no html, leave as is > > - If it finds both html a

Re: [dev] Stripping html from email

2010-08-23 Thread Stanley Lieber
On Mon, Aug 23, 2010 at 10:46 PM, Anthony J. Bentley wrote: > > It’s not quite what you’re asking for, but I have nmh set up like this: > mhshow-show-text/html: lynx -dump %F | less > > Lynx sucks but it sorta works well enough here, I guess. also see htmlfmt: http://swtch.com/plan9port/man/man1

Re: [dev] Stripping html from email

2010-08-23 Thread Suraj Kurapati
On Mon, Aug 23, 2010 at 8:46 PM, Anthony J. Bentley wrote: >> Is there currently a tool or script that I can use to strip html >> from emails? > > mhshow-show-text/html: lynx -dump %F | less > > Lynx sucks but it sorta works well enough here, I guess. I find that w3m does a much better job of HTM

Re: [dev] Stripping html from email

2010-08-23 Thread Benjamin R. Haskell
On Mon, 23 Aug 2010, Suraj Kurapati wrote: > On Mon, Aug 23, 2010 at 8:46 PM, Anthony J. Bentley wrote: > >> Is there currently a tool or script that I can use to strip html > >> from emails? > > > > mhshow-show-text/html: lynx -dump %F | less > > > > Lynx sucks but it sorta works well enough her

Re: [dev] Stripping html from email

2010-08-23 Thread Kai Hendry
It would be great if there was a tool to convert HTML to markdown. ;)