[dev] Suckless OS (part 2 - answer)

2010-08-24 Thread Martin Kopta
http://blogs.msdn.com/b/oldnewthing/archive/2010/08/24/10053386.aspx

Re: [dev] [9base] /bin/rc

2010-08-24 Thread Ethan Grammatikidis
On 2010-08-24 20:52:55 +0100 Kris Maglione wrote: On Tue, Aug 24, 2010 at 11:31:21PM +0400, anonymous wrote: On page http://suckless.org/people/Kris there are scripts that starts with /bin/rc she-bang. Someone have also sent some script with #!/bin/rc in it to this list. So I want to ask wh

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread Robert Ransom
On Wed, 25 Aug 2010 03:20:55 +0400 anonymous wrote: > In C variables can only be created in the start of block ({} > brackets). You sometimes declare new variables anywhere like in C++. C99 allows this. Robert Ransom signature.asc Description: PGP signature

Re: [dev] Stripping html from email

2010-08-24 Thread anonymous
On Tue, Aug 24, 2010 at 04:26:46PM -0700, Robert Ransom wrote: > On Tue, 24 Aug 2010 20:01:10 +0400 > The ‘tdb’ library is actually LGPLed. Ok, tdb.h says it is under LGPL. But both on SourceForge page and in Arch Linux package it is said it is under GPLv3. Probably it was just copied from Sourc

Re: [dev] Stripping html from email

2010-08-24 Thread Robert Ransom
On Tue, 24 Aug 2010 20:01:10 +0400 anonymous wrote: > Looks like it is BSD licensed but uses tdb that is GPLv3 licensed. Is > it ok? The ‘tdb’ library is actually LGPLed. Robert Ransom signature.asc Description: PGP signature

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread Nikhilesh S
On Wed, 25 Aug 2010, yy wrote: It is difficult to form an opinion about a language if there is no documentation or any examples, and it is difficult to form an opinion about the implementation without understanding the language. What features does it have? How does it look like? How does it com

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread anonymous
In C variables can only be created in the start of block ({} brackets). You sometimes declare new variables anywhere like in C++. You include files include include files. IMO one external include file (that is placed into /usr/include) should be enough. And internal include files can be placed

Re: [dev] A language similar to Markdown that sucks less

2010-08-24 Thread Robert Ransom
On Sun, 22 Aug 2010 17:52:45 +0200 Alexander Teinum wrote: > It looks like Common Lisp. I think the > parser should be implemented in Go. If your data looks like Lisp code/data, it should be parsed with Lisp code. > Maybe it has already been

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread anonymous
Looks like Forth.

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread yy
It is difficult to form an opinion about a language if there is no documentation or any examples, and it is difficult to form an opinion about the implementation without understanding the language. What features does it have? How does it look like? How does it compare to other stack-based language

[dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread Nikhilesh S
I wrote a small interpretter for a stack-based scripting language I called 'nscript' a while back. I wasn't very well-versed at C (more of a C++ guy) so the code might suck a bit. You can find it here: http://github.com/nikki93/nscript It was born out of the one-file version here: http://codepad

Re: [dev] sfc - a flashcards program to learn languages

2010-08-24 Thread Samuel Baldwin
> No idea. I prefer to slowly add new words as I go through the lessons so > I can always learn stuff that's relevant or already known. I suppose it wouldn't be hard to acquire some kind of translation database; I'll post back on the mailing list if I find anything suitable with a translation scri

Re: [dev] Stripping html from email

2010-08-24 Thread Uriel
On Tue, Aug 24, 2010 at 4:45 PM, Kurt H Maier wrote: > MIME sucks; there's no nice way to deal with it. Indeed. http://harmful.cat-v.org/software/mime uriel

Re: [dev] sfc - a flashcards program to learn languages

2010-08-24 Thread Valentin
On Tue, Aug 24, 2010 at 04:53:39PM -0400, Samuel Baldwin wrote: > þǫkk! Gesundheit! > Do you know where one could find a database of words either in that > format, or in a format easy enough to reformat oneself? No idea. I prefer to slowly add new words as I go through the lessons so I can always

Re: [dev] sfc - a flashcards program to learn languages

2010-08-24 Thread Samuel Baldwin
þǫkk! Do you know where one could find a database of words either in that format, or in a format easy enough to reformat oneself? It'd be cool if this supported automatic inflection based on defined grammatical rules; this is something I might implement myself in a fork if you don't care for it.

[dev] sfc - a flashcards program to learn languages

2010-08-24 Thread Valentin
I introduce the first program in the suckless education category -- sfc (aka ``I've been writing this instead of actually learning the language''). It uses a simple implementation of the SM-2 [1] algorithm and has a human-readable database. Get it from its repo [2], or take a look at the project

Re: [dev] [9base] /bin/rc

2010-08-24 Thread Kris Maglione
On Tue, Aug 24, 2010 at 11:31:21PM +0400, anonymous wrote: On page http://suckless.org/people/Kris there are scripts that starts with /bin/rc she-bang. Someone have also sent some script with #!/bin/rc in it to this list. So I want to ask what is the best way to put rc into /bin under Linux. Is

Re: [dev] [9base] /bin/rc

2010-08-24 Thread anonymous
On Tue, Aug 24, 2010 at 09:45:14PM +0200, Moritz Wilhelmy wrote: > ever heard of symlinks? > ln -s /path/to/plan9port/bin/rc /bin/rc I heard, but even moving rc in installation script is a better solution.

Re: [dev] [9base] /bin/rc

2010-08-24 Thread Moritz Wilhelmy
> On page http://suckless.org/people/Kris there are scripts that starts > with /bin/rc she-bang. Someone have also sent some script with > #!/bin/rc in it to this list. > > So I want to ask what is the best way to put rc into /bin under Linux. > Is there any options in plan9port or 9base that all

[dev] [9base] /bin/rc

2010-08-24 Thread anonymous
On page http://suckless.org/people/Kris there are scripts that starts with /bin/rc she-bang. Someone have also sent some script with #!/bin/rc in it to this list. So I want to ask what is the best way to put rc into /bin under Linux. Is there any options in plan9port or 9base that allow to instal

Re: [dev] Stripping html from email

2010-08-24 Thread anonymous
On Mon, Aug 23, 2010 at 11:55:35PM -0400, Josh Rickmar wrote: > Yeah, not quite what I'm looking for. Basically I want something > that I can pipe the message to with my MDA (fdm) before it is > delievered to my maildir. Thanks, I didn't know about fdm and used getmail+procmail. Now I have switc

Re: [dev] Stripping html from email

2010-08-24 Thread pancake
On 08/24/10 16:45, Kurt H Maier wrote: MIME sucks; there's no nice way to deal with it. I use perl and the there's dmc-pack to unpack and unpack mime attachments. The implementation is 162 LOC and works quite nice. I think is the sanest way to work with it.

Re: [dev] Stripping html from email

2010-08-24 Thread Kurt H Maier
On Tue, Aug 24, 2010 at 9:27 AM, Josh Rickmar wrote: > anonymous is right, I just want to remove the text/html attachments, > not strip the html tags. MIME sucks; there's no nice way to deal with it. I use perl and the Mail::Message package from cpan. -- #!/usr/bin/perl use Mail::Message;

Re: [dev] Stripping html from email

2010-08-24 Thread Josh Rickmar
On Tue, Aug 24, 2010 at 09:07:25AM -0400, Kurt H Maier wrote: > On Tue, Aug 24, 2010 at 9:01 AM, anonymous wrote: > > But it is not what OP asks for. ?Tool should process MIME emails and > > remove text/html attachments. > > that is a different task than stripping html from email data. OP > shou

Re: [dev] Stripping html from email

2010-08-24 Thread Kurt H Maier
On Tue, Aug 24, 2010 at 9:01 AM, anonymous wrote: > But it is not what OP asks for.  Tool should process MIME emails and > remove text/html attachments. that is a different task than stripping html from email data. OP should be looking for two tools. -- # Kurt H Maier

Re: [dev] Stripping html from email

2010-08-24 Thread anonymous
On Tue, Aug 24, 2010 at 08:57:12AM -0400, Kurt H Maier wrote: > On Tue, Aug 24, 2010 at 8:38 AM, Nick wrote: > > On Tue, Aug 24, 2010 at 07:31:18AM -0400, Kurt H Maier wrote: > >> http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm > > > > Umm. Is no-one reading the body of the original requ

Re: [dev] Stripping html from email

2010-08-24 Thread Kurt H Maier
On Tue, Aug 24, 2010 at 8:38 AM, Nick wrote: > On Tue, Aug 24, 2010 at 07:31:18AM -0400, Kurt H Maier wrote: >> http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm > > Umm. Is no-one reading the body of the original request? We can all > strip XML easily, that isn't the question. On Mon, A

Re: [dev] Stripping html from email

2010-08-24 Thread pancake
On 08/24/10 14:38, Nick wrote: On Tue, Aug 24, 2010 at 07:31:18AM -0400, Kurt H Maier wrote: http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm Umm. Is no-one reading the body of the original request? We can all strip XML easily, that isn't the question. pacman -S html2text

Re: [dev] Stripping html from email

2010-08-24 Thread pancake
On 08/24/10 05:46, 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 and plain text, strip the html attachment - I

Re: [dev] Stripping html from email

2010-08-24 Thread Nick
On Tue, Aug 24, 2010 at 07:31:18AM -0400, Kurt H Maier wrote: > http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm Umm. Is no-one reading the body of the original request? We can all strip XML easily, that isn't the question.

Re: [dev] Stripping html from email

2010-08-24 Thread Kurt H Maier
http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm -- # Kurt H Maier

Re: [dev] Stripping html from email

2010-08-24 Thread Etienne Millon
On Tue, Aug 24, 2010 at 07:45:17AM +0100, Kai Hendry wrote: > It would be great if there was a tool to convert HTML to markdown. ;) Actually, pandoc can do that. :-) -- Etienne Millon

Re: [dev] Stripping html from email

2010-08-24 Thread Anselm R Garbe
On Mon, Aug 23, 2010 at 10:55:14PM -0500, Stanley Lieber wrote: > 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