Re: [dev] [st] 0.1 Feedback - Was: A few small patches

2011-04-05 Thread Antoni Grzymala
Ethan Grammatikidis dixit (2011-04-05, 02:11):

> On 4 Apr 2011, at 7:53 pm, Antoni Grzymala wrote:
> >
> > That's why I have the mod4-c shortcut – exactly for turning
> > opera-copied links into a shift-insert insertable selection.
> 
> Ah, you have mod4-c run something which copies clipboard to selection?

Yep, as written two mails up in this subthread:

{ MODKEY, XK_c, spawn, SHCMD("xsel -b -o | xsel -i") },

> There's a little prog in p9p which automatically copies selection to  
> clipboard or the other way around, I forget, but it got into a loop  
> with some other program I needed.

I'm not sure I'd want to have that done automatically, I usually keep
track of both the clipboard and the selection in my mind and find that
quite useful.

> > Selection seems to have been treated as X legacy stuff, without ever
> > being given much though, unfortunately.
> 
> s/Selection/Anything remotely interesting, useful, or flexible/

I suppose that's the ongoing punishment for the original sin of X
killing NeWS :).

-- 
[a]



Re: [dev] [st] 0.1 Feedback - Was: A few small patches

2011-04-04 Thread Antoni Grzymala
Ethan Grammatikidis dixit (2011-04-04, 17:23):

> > In my standard X environment most programs accept the convention,
> > that MMB *and* shift-insert insert the selection, while whichever
> > program supports the clipboard it has some clipboard shortcut (and
> > those two do not overlap).
> 
> I just tested with 2 Gtk apps - mousepad (XFCE editor) and Opera. In
> both, shift-insert inserts the clipboard not the selection. I don't
> know whether to say "some standard" or hate on Gtk.

Yeah, gtk2/opera only insert the selection with middle mouse click.

> Shift-insert does insert the selection in rxvt, at least, but it
> would be much more useful to me if it inserted the clipboard as
> Opera doesn't change the selection if you select with the keyboard
> or copy a link.

That's why I have the mod4-c shortcut – exactly for turning
opera-copied links into a shift-insert insertable selection.

> This selection business is all FUBARED, and I blame Gtk in the first  
> place for not doing applying any rational thought to the situation  
> more than 10 years ago.

Selection seems to have been treated as X legacy stuff, without ever
being given much though, unfortunately.

Regards,

-- 
[a]



Re: [dev] [st] 0.1 Feedback - Was: A few small patches

2011-04-04 Thread Antoni Grzymala
Ethan Grammatikidis dixit (2011-04-04, 02:34):

> XFCE terminal binds ctrl-shift-C/V to clipboard copy/paste. They're  
> not great bindings but they're memorable. Someone mentioned shift- 
> insert, was that for clipboard or selection paste? Shift-insert  
> reminds me of DOS edit.exe which used that binding for paste and  
> ctrl- and alt-insert for copy and cut if I remember right. Again,  
> they weren't the world's most wonderful bindings but they worked and  
> probably can't conflict with anything in the terminal.

In my standard X environment most programs accept the convention, that
MMB *and* shift-insert insert the selection, while whichever program
supports the clipboard it has some clipboard shortcut (and those two
do not overlap). For inserting clipboard in selection-aware programs
(urxvt for example), a I have keybinding to overwrite the selection
with the clipboard:

{ MODKEY, XK_c, spawn, SHCMD("xsel -b -o | xsel -i") },

-- 
[a]



Re: [dev] fast-booting to text editor

2011-03-20 Thread Antoni Grzymala
David Tweed dixit (2011-03-20, 18:21):

> Hi, one of those general suckless software questions:
> 
> I'm in a position where I'll be both commuting a lot and needing to
> write a lot of text (review coments) over the coming months. I've got
> a "spare" old but very small, low weight notebook PC I plan to try and
> use. The only requirements I have are that there be a decent text
> editor, a filesystem that can hold several files and the ability to
> move files onto/off-of my permanent full-capacity PC. (I'd actually
> prefer not to have any other facilities.)
> 
> The obvious thing to do would be to install a standard linux distro,
> try and remove as many uneeded services and then just keep hibernating
> it. However, my experience is that linux is not particuarly snappy
> booting from a hibernate image, partly because there's so many
> programs that want to be paged back in and partly because it needs to
> still slowly start up any hardware it can find on the machine.
> 
> I'm just wondering if anyone has any ideas/experience of any more
> minimal solution, or if I should just go with the original plan.

You may not like emacs, but this could be inspiring:

http://www.informatimago.com/linux/emacs-on-user-mode-linux.html

-- 
[a]



Re: [dev] Aterm not running properly in dwm

2011-02-27 Thread Antoni Grzymala
Matt Mrozinski dixit (2011-02-26, 21:20):

> I suppose i dont really like the way the bold fonts are really bold
> in those terminals, to the point where they're unreadable.  Tho i
> have to admit, i haven't spent a lot of time playing with them.
> I'll give them a chance again, to be sure.

>From xterm(1):

+bdcSet the vt100 resource colorBDMode to “true”, enabling the
display of characters with bold attribute as color rather than bold

urxvt has an analogous feature AFAIR.

-- 
[a]



Re: [dev] which minimal os

2011-02-16 Thread Antoni Grzymala
Kurt H Maier dixit (2011-02-16, 19:48):

> >Also, suggesting that people run *bsd on some modern commodity
> >hardware (especially laptops) is totally unrealistic.
> 
> That just tells me you have no experience or understanding regarding
> the matter.  I run linux on my laptop... but mostly because I have a
> shitload of scripts I don't feel like porting.  Openbsd, freebsd,
> and pc-bsd all run excellently, with wifi and bluetooth support, on
> every laptop in my house, which is a non-trivial population.  If you
> find that unrealistic, then it's your incompetence, and not software
> failure, that cause it to be that way.

That's highly possible – I have limited lifetime though and having a
comfortable work environment as I do now, I will probably never have
the incentive to devote a substantial number of hours checking whether
the hardware and the software I have will cooperate with bsds (already
knowing some of it will not).

-- 
[a]



Re: [dev] which minimal os

2011-02-16 Thread Antoni Grzymala
Antoni Grzymala dixit (2011-02-17, 01:40):

> > if you want to see how this can be done correctly, look at freebsd
> > or openbsd, where software can be built -or- installed from
> > packages.
> 
> I did look and I found an obscure mess of working or non-working
> makefiles. Somewhat akin to arch's AUR, on which we both seem to agree
> that it's a failure.

Also, suggesting that people run *bsd on some modern commodity
hardware (especially laptops) is totally unrealistic.

-- 
[a]



Re: [dev] which minimal os

2011-02-16 Thread Antoni Grzymala
Kurt H Maier dixit (2011-02-16, 19:28):

> > Gentoo has a good balance in not being overengineered like Debian
> > (dpkg-reconfigure and all that hell)
> 
> bullshit, just look at emerge
> 
> look at it

Why would I want to? I don't like Python. Still, by comparison to
dpkg-reconfigure it's pretty sane. And it works.

> > and having a decent quality
> > package tree (unlike arch).
> 
> what package tree?  where do I download binary gentoo packages? oh,
> that's right, I can't, because it's yet another thing the gentoo kids
> couldn't figure out, despite decades of examples.

Since it's a source-based distro obviously I'm calling packages
something else. Did I ever say binary?

> > It's also easy to compile software
> > out-of-the-tree, as there are header files for everything in the
> > system.
> 
> that's not a benefit of gentoo, it's something that should be
> standard.  also, it's not a conscious design decision.  it's an effect
> of the braindead software distribution mechanism.

Well, in practice *it is* a benefit of Gentoo, intended or
not. Especially when you compare it to the -dev|-devel package mess of
debian|redhat. So my argument stands despite the “braindead software
distribution mechanism”.

> > It's okay. Not great, neither a disaster (unless you trust the
> > lack of argumentation of main Gentoo haters here).
> 
> no, it is in fact a retarded disaster. 

Retarted seems to be your favourite word – it's a little overused,
though.

> source-only software distribution is completely stupid and wrong.

Why?

> the stupid package .tbz2 crap gentoo does have is too fragile and
> worthless to be even worth mentioning.

That's why nobody uses it.

> if you want to see how this can be done correctly, look at freebsd
> or openbsd, where software can be built -or- installed from
> packages.

I did look and I found an obscure mess of working or non-working
makefiles. Somewhat akin to arch's AUR, on which we both seem to agree
that it's a failure.

> > And yeah, daemons are *not* started automatically after package
> > installation.
> 
> holy crap this totally changed my mind hold on while I recompile my
> entire everything so I can get this killer feature

Holy crap, this is just picking on Ubuntu/Debian which do that by
default, as you've failed to notice because you were too occupied with
indulging in your rich resources of irony.

-- 
[a]



Re: [dev] which minimal os

2011-02-16 Thread Antoni Grzymala
c...@wzff.de dixit (2011-02-17, 00:33):

> Excerpts from Claudiu Bucur's message of Fri Feb 11 22:35:31 +0100 2011:
> > gentoo is as minimal as you can get or as complex as you want. you compile
> > everything locally, with the help of the portage repository (even the
> > kernel). it has been my closest experience to what i imagine "linux from
> > scratch" would be like.
> > 
> > also, the gentoo boards are the most active i have seen.
> 
> *WHY* does every gentoo user say these very same things about gentoo? Do you
> copypaste this text from somewhere in the gentoo boards?
> If all talk on the gentoo boards consists of people copypasting this
> boilerplate^Wtext, and that's what you believe is so great about gentoo, I
> never want to try gentoo ever in my life.

*WHY* did you waste your (and the list readers') time to write that
crap? If you're interested, just give that distro a go – if not,
ignore whatever people like/write about it.

Gentoo has a good balance in not being overengineered like Debian
(dpkg-reconfigure and all that hell) and having a decent quality
package tree (unlike arch). It's also easy to compile software
out-of-the-tree, as there are header files for everything in the
system. It's okay. Not great, neither a disaster (unless you trust the
lack of argumentation of main Gentoo haters here).

And yeah, daemons are *not* started automatically after package
installation.

-- 
[a]



Re: [dev] A Suckless Filesystem

2011-02-05 Thread Antoni Grzymala
w...@tivy.com dixit (2011-02-05, 16:20):

> >Which one do you use? Why do you use it? What does it have that the
> >others don't?
> 
> ext2. I forget why. Probably because I didn't know anything when I
> installed archlinux.
> 
> I've heard good things about JFS. I've looked at the different FS's but
> I can't really
> identify one as being obviously suckless.

JFS is lovely for a number of reasons, the main being stability,
very decent all-round performance and extremely low CPU-usage.

The main downsides are no shrinking possibility (at least in the
non-AIX incarnations) and practically a single part-time developer.

So recently I've been pretty much mainstream with ext4 – not extremely
stable yet in my experience, but lacking some annoyances of ext3 (like
very io-intensive deletion of big files and sensible fsck times).

-- 
[a]



Re: [dev] dwm battery level alarm system

2011-01-26 Thread Antoni Grzymala
Danilo Bargen dixit (2011-01-26, 23:18):

> I need some kind of alarm system in dwm, as my laptop has already
> turned off several times due to running out of battery.

Also have a look at my idea shown on the ML on 04 Dec 2010 (I
forwarded you a copy of the message).

-- 
[a]



Re: [dev] wicd and his little friends

2011-01-19 Thread Antoni Grzymala
Jan dixit (2011-01-20, 02:33):

> On Thu, 20 Jan 2011 02:28:22 +0100, Antoni Grzymala 
> wrote:
> > Jan dixit (2011-01-20, 02:26):
> > 
> >> On Wed, 19 Jan 2011 20:22:51 -0500, Kurt H Maier 
> >> wrote:
> >> > On Wed, Jan 19, 2011 at 8:15 PM, Jan  wrote:
> >> >> Maybe surveilling /var/log/messages (lines are similar to dmesg
> >> >> output)
> >> >> for lines that include "eth0" and "link" might work.
> >> > 
> >> > wpa_supplicant puts all its info (i.e., CTRL_EVENT_DISCONNECTED) out
> >> > on stderr.  Could just pipe that to a shell script.
> >> 
> >> Does wpa_supplicant work with wired devices?
> > 
> > As a 802.11x supplicant? AFAIR yes.
> 
> I thought the intention was to see if there is a cable plugged in, and I
> believe there are better ways for this task than having a wpa_supplicant
> running, this seems overpowered.

For that you could use netplug or ifplugd (and others) or even write a
script that watches carrier on an interface, certainly though the
former options make more sense as someone took the trouble to write it
in C (probably).

-- 
[a]



Re: [dev] wicd and his little friends

2011-01-19 Thread Antoni Grzymala
Jan dixit (2011-01-20, 02:26):

> On Wed, 19 Jan 2011 20:22:51 -0500, Kurt H Maier 
> wrote:
> > On Wed, Jan 19, 2011 at 8:15 PM, Jan  wrote:
> >> Maybe surveilling /var/log/messages (lines are similar to dmesg output)
> >> for lines that include "eth0" and "link" might work.
> > 
> > wpa_supplicant puts all its info (i.e., CTRL_EVENT_DISCONNECTED) out
> > on stderr.  Could just pipe that to a shell script.
> 
> Does wpa_supplicant work with wired devices?

As a 802.11x supplicant? AFAIR yes.

-- 
[a]



Re: [dev] Remount rootfs sync on impending battery depletion.

2010-12-24 Thread Antoni Grzymala
Connor Lane Smith dixit (2010-12-24, 12:26):

> On Saturday, 4 December 2010, Antoni Grzymala  wrote:
> > just wanted to share a simple idea here – a little feature implemented
> > in my statusbar script: remount the rootfs sync, when the battery
> > level is below some predefined threshold and falling.
> 
> Although the conversation has moved to su/sudo/setuid, I just want to
> say I really like this idea. I've added it to my own dwm-status and
> it's very neat. :)

Glad you found that useful :).

-- 
[a]



Re: [dev] Remount rootfs sync on impending battery depletion.

2010-12-22 Thread Antoni Grzymala
Ethan Grammatikidis dixit (2010-12-22, 23:02):

> On 20 Dec 2010, at 6:56 pm, hiro wrote:
> 
> > Ever heard of setuid root??
> 
> I thought this was supposed to be a script? The Linux kernel prevents  
> the SUID bit from taking effect on scripts "because SUID scripts are  
> almost always security exploits." NOT my words, btw.

He probably meant setuid on /bin/mount itself. Still, sudo does the
job just fine despite suggested lack of sucklessness and other
unforgivable faults.

-- 
[a]



Re: [dev] Remount rootfs sync on impending battery depletion.

2010-12-20 Thread Antoni Grzymala
hiro dixit (2010-12-20, 18:56):

Missed irony, setuid root is too general.

> Ever heard of setuid root??
> 
> On 12/4/10, Gene Auyeung  wrote:
> > On Sat, Dec 4, 2010 at 11:29 AM, Antoni Grzymala 
> > wrote:
> >
> >> Simplest way:
> >>
> >>   ALL=(ALL) NOPASSWD: ALL
> >>
> >> The safer way would obviously be if you limit this to /bin/mount.
> >
> > Ah yes I forgot about that. It's more configuration, but I guess
> > there's no getting around that.
> >
> > Thanks,
> > Gene
> >
> >
> 

-- 
[a]



Re: [dev] Remount rootfs sync on impending battery depletion.

2010-12-04 Thread Antoni Grzymala
Gene Auyeung dixit (2010-12-04, 11:23):

> Just curious, how would the script get permission to mount? You can't
> type the password for sudo because it's not interactive. And you can't
> rely on the limited time that sudo grants access if you run the script
> with sudo, because presumably the battery lasts much longer than
> that?

Simplest way:

  ALL=(ALL) NOPASSWD: ALL

The safer way would obviously be if you limit this to /bin/mount.

Regards,

-- 
[a]



[dev] Remount rootfs sync on impending battery depletion.

2010-12-04 Thread Antoni Grzymala
Hi,

just wanted to share a simple idea here – a little feature implemented
in my statusbar script: remount the rootfs sync, when the battery
level is below some predefined threshold and falling.

I somehow find it less distracting than warnings popping up and less
annoying then a forced poweroff upon reaching some level.

Here's my implementation (full of bash, gnu tools and other stuff you
love), feel free to pick ideas if you find any of it useful:

#!/bin/bash

while test 1; do


# Battery charge.

DO_BATTERY=""
BATTERY=BAT0 ### <- Battery ID

grep ' charged' /proc/acpi/battery/${BATTERY}/state 2>&1 >/dev/null && 
TIME_LEFT="" || DO_BATTERY=1

if [[ -n ${DO_BATTERY} ]]; then
  TIME_LEFT=`acpi | head -n1 | sed -r \
  's/^.*Battery//; s/discharging, /-/i; s/charging, /+/i; s/,//g; s/ 
([0-9][0-9]:[0-9][0-9]):[0-9][0-9] .*$/ \1 /'`

  if [[ "${TIME_LEFT}" =~ ^-[0-5]% ]]; then
TIME_LEFT="[fs SYNC] ${TIME_LEFT}"
grep '^/dev/root.*sync,' /proc/mounts || sudo mount / -o remount -o sync
  else
grep '^/dev/root.*sync,' /proc/mounts && sudo mount / -o remount
  fi

  TIME_LEFT="${TIME_LEFT} · "
fi

### [...much other code including some sleep...]

STATUS="${TKABBER}${UNREADMAIL}${TIME_LEFT}${PPPD}${WIRELESS}${FETCHMAIL}${UPTIME}${DATE}"
xsetroot -name "${STATUS}"

done

-- 
[a]



Re: [dev] xmessage replacement similar to dmenu

2010-11-23 Thread Antoni Grzymala
Moritz Wilhelmy dixit (2010-11-23, 20:48):

> First of all, dmenu is a menu, not a message-displayer. The xmessage colors 
> can
> be configured from ~/.Xdefaults. See here[1] for an example.

[...]

> [1]  http://up.barfooze.de/starf-201011232048.png

Would you mind sharing your Xdefaults? This screenshot is quite
pretty.

Regards,

-- 
[a]



Re: [dev] st font change

2010-11-18 Thread Antoni Grzymala
Mitchell Church dixit (2010-11-18, 14:32):

> Okay, the specific error message is 
> 
> Can't load font -*-inconsolata-*-*-*-*-12-*-*-*-*-*-iso10646-1
> 
> This is when trying to use the font string 
> -*-inconsolata-*-*-*-*-12-*-*-*-*-*-iso10646-1
> 
> I also tried the terminus string you provided with no luck.

AFAIR inconsolata does not have a bitmapped old-style version.

-- 
[a]



Re: [dev] [dwm] Windows size changes

2010-11-13 Thread Antoni Grzymala
David DEMELIER dixit (2010-11-13, 09:34):

> Thanks, but it seems this workaround only works for i386 while i'm on
> amd64... What a pity

The canonical workaround these days is:

wmname LG3D

where wmname is available from: http://code.suckless.org/hg/wmname,
and it does indeed seems to fix the problem.

Regards,

-- 
[a]



Re: [dev] surf script.js - incompatible with openjdk6?

2010-10-15 Thread Antoni Grzymala
Gregor Best dixit (2010-10-15, 22:35):

> On Fri, Oct 15, 2010 at 03:15:03PM -0400, MItchell Church wrote:
> > I've still been unable to implement link hinting in surf.  Numerous 
> > searches of
> > dev archives and internet forums make me believe that it could be some sort 
> > of
> > incompatibility non proprietary java packages.  That doesn't sound 
> > plausible to
> > me, but I can think of no other reason why it wouldn't work.  I can't even 
> > get
> > the script to throw any errors, it is just simply not calling script.js 
> > when I
> > ctrl-f.
> 
> WOW...
> 
> I'm sure you're just trolling, but I'm going to feed you anyway... The
> 'Java' in 'JavaScript' has _nothing_ to do with Java as in bytecode
> language interpreted by the JVM. It's just marketing blah to ride on the
> ever so neat wave of success that is Java.

With JavaScript being actually a much nicer language.

-- 
[a]


pgpe2Bffrg7H0.pgp
Description: PGP signature


Re: [dev] bug with cinelerra in dwm

2010-10-08 Thread Antoni Grzymala
thuban dixit (2010-10-08, 20:57):

> Le Fri, 8 Oct 2010 19:25:40 +0200,
> Antoni Grzymala  a écrit :
> 
> > thuban dixit (2010-10-06, 08:42):
> > 
> > > Just a little bug report, cinelerra doesn't work in dwm. Do you also
> > > have this problem?
> > 
> > Please don't post a new topic in an old thread and to the above
> > question, what do you mean by “doesn't work”.
> > 
> 
> I mean that in the bar, the title is "x", but no screen is drawn,
> everything is as if cinelerra wasn't started.

I had the same problem – try resising that window. Helps.

-- 
[a]



Re: [dev] bug with cinelerra in dwm

2010-10-08 Thread Antoni Grzymala
thuban dixit (2010-10-06, 08:42):

> Just a little bug report, cinelerra doesn't work in dwm. Do you also
> have this problem?

Please don't post a new topic in an old thread and to the above
question, what do you mean by “doesn't work”.

-- 
[a]



Re: [dev] [OT] Music?

2010-09-09 Thread Antoni Grzymala
Kris Maglione dixit (2010-09-08, 20:45):

> On Thu, Sep 09, 2010 at 03:31:09AM +0300, Nikhilesh S wrote:
> >On Thu, Sep 09, 2010 at 12:35:17AM +0200, Antoni Grzymala wrote:
> >>Paolo dixit (2010-09-08, 15:21):
> >
> >Isn't his name just 'Paolo'?
> >
> >>> ( fav ever: Horowitz plays Scriabin's "Vers la flamme"
> >>>  http://www.youtube.com/watch?v=WlqGkVc29Gw&feature=fvwd)
> >>
> >>Basically, Horowitz's anything is in the fav-ever category. He's
> >>certainly the best represented single artist in my (probably largish)
> >>CD collection.
> >
> >This is cool, I was just checking this out on YouTube.
> 
> Call me a typography nerd, but the thing that struck me most about
> that video was the beautifully hand-engraved sheet music.

Unfortunately the resolution of the scans is terrible, but yes, it
still looks beautifully typeset. Similar to a Russian edition of
Scriabin's Sonatas I own, perhaps comes from the same typesetting
house. Rather not LilyPond :).

-- 
[a]



Re: [dev] [OT] Music?

2010-09-09 Thread Antoni Grzymala
Kris Maglione dixit (2010-09-08, 19:05):

> On Wed, Sep 08, 2010 at 03:21:52PM -0700, Paolo wrote:
> >   Alban Berg, Arnold Schoenberg, Debussy, Satie,
> 
> Schönberg. 12 Tone... Ah, would that he were never born.

Please don't create a suggestion that Schönberg only (or even mostly)
created 12-tone music. He personality and artistic development is a
truly fascinating process in which 12-tone composition was a chapter
that he basically started getting out of as soon as he got into.

There were other composers far more engaged in the a 12-tone technique
like Webern (whose two Kantatas are of utmost beauty) and Křenek,
whose collection of works I recently recorded on CD [1], and that I'm
perhaps a little less fond of, but his (reportedly) strictly 12-tone
Piano Sonata recorded by Gould is also wonderful.

[1] http://www.amazon.com/Ernst-Krenek-Symphonic-Elegy/dp/B002JP9HVM

-- 
[a]



Re: [dev] [OT] Music?

2010-09-08 Thread Antoni Grzymala
Paolo dixit (2010-09-08, 15:21):

> ( fav ever: Horowitz plays Scriabin's "Vers la flamme"
>  http://www.youtube.com/watch?v=WlqGkVc29Gw&feature=fvwd)

Basically, Horowitz's anything is in the fav-ever category. He's
certainly the best represented single artist in my (probably largish)
CD collection.

And yes, vers la flamme along with a few other Scriabin's works are
the fav-ever of the fav-ever.

-- 
[a]



Re: [dev] [OT] Music?

2010-09-08 Thread Antoni Grzymala
Nikhilesh S dixit (2010-09-09, 00:12):

> What kind of music do you listen to? Your favourite artists, genres,
> etc.?

Seems this has been discussed a little in one the recent „yet another
quest for sucklessness” thread. Mozart, Haydn, Chopin were talked
about and liked. There seem to be some [extremely non-suckless] Wagner
lovers around, too ;).

-- 
[a]



Re: [dev] Stripping html from email

2010-08-26 Thread Antoni Grzymala
Suraj Kurapati dixit (2010-08-23, 21:05):

> 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 HTML to plain-text
> conversion than Lynx.  It even renders HTML tables using Unicode
> box-drawing characters!
> 
> http://w3m.sourceforge.net/

I tried using w3m instead of lynx -dump, and it's truly better at
rendering, but lynx used the traditional blah[1]...

[1] uri://some.url...

notation, so that I can actually fish out the links. Is that possible
in w3c as well?

-- 
[a]



Re: [dev] Usable typesetting system?

2010-08-22 Thread Antoni Grzymala
Alexander Teinum dixit (2010-08-22, 17:01):

> I might create a parser for a language that I just invented. It’s
> somewhat like Common Lisp.
> 
> (h1 A heading)
> (p This is (strong awefully) nice.)
> (h2 Another heading)
> 
> Or, it could be written this way…
> 
> (h1
> A heading)
> (p
> This is (strong awefully) nice.)
> (h2
> Another heading)
> 
> Writing a parser for this is ten times easier than writing one for
> Markdown. And this language is infinitely times more extensible.

If you like the syntax, why not just use cl-typesetting [1]?

[1] http://www.fractalconcept.com:8000/asp/cl-typesetting

-- 
[a]



Re: [dev] Re: [dev] Man coloring . [was: Usage, -h, --help, help, synopsis, …]

2010-08-18 Thread Antoni Grzymala
Lorenzo Bolla dixit (2010-08-18, 15:09):

> > > > As for bold, fortunately my terminal has it disabled,
> > >
> > > I set up nice colors for bold and underline so things are easy to read
> > > (see the attached screenshot).  If anyone is interested, my Xdefaults
> > > file is here:
> > >
> > >   http://github.com/sunaku/home/blob/master/.Xdefaults
> >
> > Strange thing is that my man doesn't get colorized (only bolded via
> > brightening up) in X terminal emulators. In the linux console I get
> > proper colors. Any hints how to enable coloring in X terminals?
> >
> >
> >
> I believe the options to colorize man are
> Rxvt.colorBD: #8ac6f2
> Rxvt.colorUL: #95e454

Suraj Kurapati dixit (2010-08-18, 10:38):

> Correct.  And these are the settings for XTerm:
> 
> XTerm*vt100.colorMode   : True
> XTerm*vt100.colorBDMode : True
> XTerm*vt100.colorULMode : True
> XTerm*vt100.veryBoldColors  : 6
> XTerm*vt100.colorBD : #8ac6f2
> XTerm*vt100.colorUL : #95e454

They both worked, thanks a million.

-- 
[a]



[dev] Man coloring. [was: Usage, -h, - -help, help, synopsis, …]

2010-08-17 Thread Antoni Grzymala
Suraj Kurapati dixit (2010-08-17, 20:49):

> > As for bold, fortunately my terminal has it disabled,
> 
> I set up nice colors for bold and underline so things are easy to read
> (see the attached screenshot).  If anyone is interested, my Xdefaults
> file is here:
> 
>   http://github.com/sunaku/home/blob/master/.Xdefaults

Strange thing is that my man doesn't get colorized (only bolded via
brightening up) in X terminal emulators. In the linux console I get
proper colors. Any hints how to enable coloring in X terminals?

-- 
[a]



Re: [dev] Suckless Way to Learn How To Program

2010-08-14 Thread Antoni Grzymala
Antoni Grzymala dixit (2010-08-14, 10:33):

> Szabolcs Nagy dixit (2010-08-14, 01:27):
> 
> > sicp used to be the basic book for teaching programming as
> 
> Marc Weber dixit (2010-08-14, 03:10):
> 
> > Maybe a simple Ruby tutorial like this:
> > http://pine.fm/LearnToProgram/?Chapter=00
> > is a good start. Of course it only covers the very basics.
> 
> If we're on the subject of Ruby and Scheme (which are both, in their
> own ways, very good languages to start learning to program), depending
> what your son's age is it might be better to start with “The Little
> Schemer” (paperback version: [1] and an online sampler [2]), and “R's

s/R's/Why's/ – excuse my morning brain-fart.> 

-- 
[a]



Re: [dev] Suckless Way to Learn How To Program

2010-08-14 Thread Antoni Grzymala
Szabolcs Nagy dixit (2010-08-14, 01:27):

> sicp used to be the basic book for teaching programming as

Marc Weber dixit (2010-08-14, 03:10):

> Maybe a simple Ruby tutorial like this:
> http://pine.fm/LearnToProgram/?Chapter=00
> is a good start. Of course it only covers the very basics.

If we're on the subject of Ruby and Scheme (which are both, in their
own ways, very good languages to start learning to program), depending
what your son's age is it might be better to start with “The Little
Schemer” (paperback version: [1] and an online sampler [2]), and “R's
Poignant Guide to Ruby” [3] which is IMO an excellent work of art as
well as it's a good introduction to Ruby.

[1] http://www.amazon.com/Little-Schemer-Daniel-P-Friedman/dp/0262560992
[2] http://www.ccs.neu.edu/home/matthias/BTLS/
[3] http://mislav.uniqpath.com/poignant-guide/

-- 
[a]



Re: [dev] Lexers and parsers 2

2010-08-12 Thread Antoni Grzymala
Antoni Grzymala dixit (2010-08-12, 18:54):

> > If you name it 'calc.noam' and type:
> > 
> >   echo '(+ 1 2 (+ 3 4) (+ 5 6) 7)' | calc.noam
> 
> I'm sorry, but looking at the above I just couldn't notice the
> Greenspun's Tenth Rule of Programming :)

s/notice/not notice/ – or whatever, dunno. When having a headache I
easily get lost in multiple negations.

-- 
[a]



Re: [dev] Lexers and parsers 2

2010-08-12 Thread Antoni Grzymala
Maurí­cio CA dixit (2010-08-12, 00:10):

> If you name it 'calc.noam' and type:
> 
>   echo '(+ 1 2 (+ 3 4) (+ 5 6) 7)' | calc.noam

I'm sorry, but looking at the above I just couldn't notice the
Greenspun's Tenth Rule of Programming :)

-- 
[a]



Re: [dev] Suckless design in Games

2010-08-11 Thread Antoni Grzymala
Eivind Michael Skretting dixit (2010-08-11, 16:13):

> > He most definitely is (along with Chopin, I'd argue) – at the opposite
> > end you'd find Bruckner, Wagner and Berlioz. Flame away, I'm on holiday.
> 
> Mozart and Chopin really have nothing to do with Minimalism. Some of Mozart's
> pieces are maybe light (but not all of them, like Don Giovanni or Kyrie
> Eleison from Requiem), and Chopin may be elegant, but Minimalism is a
> seperate genre of music, represented by composers like John Adams, Steve
> Reich and Philip Glass. 
>   
> One of the big differences is the theme development, Minimalists use
> none of the classical forms of Mozart or Chopin, but rather a repetitive
> form of slow progression. 
> 
> No flames, just information :)

I'm well aware of the style represented by Reich, Glass et al., however:

Anh Hai Trinh dixit (2010-08-11, 21:35):

> You are technically right, but this "minimalism" is nothing more than
> a name tag.
> 
> Opponents of Steve Reich & Philip Glass may say their music has
> needless repetitions.
> 
> To contrast, consider Bach's Chaconne: "On one stave, for a small
> instrument, the man writes a whole world of the deepest thoughts and
> most powerful feelings." Is this a minimalist piece, even when it's
> 15min long? As a former composition student, I would say it is.
> 
> I think the essence of minimalism is that one take away as much as one
> possibly can.

And this is exactly the essence of Chopin's music – absolute necessary
minimum (with regards to the style and the times around which Chopin's
work was created, perhaps you have to get to know Chopin's music quite
well to actually appreciate this). Quoting Antoine de Saint-Exupéry:

„Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away.”

Which could easily be said about Chopin's music as much as Bach and
Mozart (taking into account different stylistic
considerations). Though the two latter are probably not as even in
high-quality work (see below).

Anh Hai Trinh dixit (2010-08-11, 22:29):

> >> I think the essence of minimalism is that one take away as much as one
> >> possibly can.
> >>
> >
> > Then one should exclude Chopin from that definition.

Definitely not!

> What do you mean exactly? His A major Prelude is probably the shortest
> piece of music that exists (20~ seconds) and amongst the most
> beautiful. If that is not minimalistic, I don't know what is. Chopin
> is, after all, most famous for his _miniature_ pieces.

I would argue about that: the mid-sized Impromptus, Ballades, Fantaise
and Barcarolle (and the lateish-largish Mazurkas and Nocturnes) are
probably his best works, but the entire published (by him) body of
work is of such high quality, that it's pretty difficult to discuss
which particular works are “best”.

As to the “shortest piece ever written contest”, I'm certain there are
lots others, a tiny e-flat-minor prelude (about three lines) by
Scriabin immediately springs to mind. Almost Haiku (if not for the
late romantic style :)).

> > On a end note, the original mention of Minimalism was with a capital
> > "M", so I figured the discussion needed some clearing-up.
> 
> Point taken.

Yeah, I just had a knee-jerk reaction to “Mozart *not* being
minimalist” (without the capital “M”), which in my opinion, and by the
above account he certainly is.

-- 
[a]



Re: [dev] Suckless design in Games

2010-08-11 Thread Antoni Grzymala
Robert Ransom dixit (2010-08-10, 23:12):

> > I like Mozart and Minimalism just as much as I like Dadaism or free
> > Jazz, even if they have different forms and subjective functions.
> 
> I hope you aren't suggesting that Mozart *is* minimalist.

He most definitely is (along with Chopin, I'd argue) – at the opposite
end you'd find Bruckner, Wagner and Berlioz. Flame away, I'm on holiday.

-- 
[a]


pgph7IFwpuoBn.pgp
Description: PGP signature


Re: [dev] [patch] add Control-G and Control-D to dmenu

2010-08-06 Thread Antoni Grzymala
Daniel Clemente dixit (2010-08-06, 03:08):

> This adds C-d (delete next char) and C-g (abort) to dmenu. These
> keys are also used in programs like bash or Emacs.

AFAIR C-g just emits BEL by default in bash (as it used in most old
terminals), but yeah, it's probably good to have it, thx.

-- 
[a]



Re: [dev] echo

2010-07-10 Thread Antoni Grzymala
Moritz Wilhelmy dixit (2010-07-10, 12:32):

> > Overhead the albatross hangs motionless upon the air...
> And deep beneath the rolling waves in labyrinths of coral caves...

...echo lurks.

-- 
[a]



Re: [dev] Presentation slides software

2010-06-29 Thread Antoni Grzymala
Kris Maglione dixit (2010-06-29, 11:04):

> On Tue, Jun 29, 2010 at 12:34:52PM +0200, Uriel wrote:
> >I'm looking for a minimally sane way to generate presentation slides,
> >ideally using something similar to markdown and capable of generating
> >decent-looking html (and hopefully) pdf.
> >
> >I know about magicpoint, and I normally use the troff slides macros:
> >http://repo.cat-v.org/troff-slider/
> >
> >But the generated HTML is rather messy, and fixing htmlroff is too much work.
> 
> Have you tried generating a PDF and using one of the PDF to HTML
> converters? They tend to work fairly well with PDFs generated by
> programs like troff, though I don't expect it'd be nearly as clean
> as that generated by markdown. I use TeX myself, which has some
> fairly good HTML generators these days.

Would that be hand-crafted TeX or a set of macros like LaTeX beamer [1]?

[1] http://bitbucket.org/rivanvx/beamer/wiki/Home

-- 
[a]



Re: [dev] ji - ii-like jabber client

2010-06-24 Thread Antoni Grzymala
u...@netbeisser.de dixit (2010-06-24, 15:37):

> On Thu, Jun 24, 2010 at 01:44:50PM +0200, Antoni Grzymala wrote:
> > Antoni Grzymala dixit (2010-06-24, 13:42):
> > 
> > > markus schnalke dixit (2010-06-24, 12:21):
> > > 
> > > > [2010-06-24 13:10] Ramil Farkhshatov 
> > > > > 
> > > > > I decided to share a simple jabber client with ii interface. It 
> > > > > supports
> > > > > normal convercations and multi-user conferences. Requires iksemel and 
> > > > > gnutls
> > > > > (optional).
> > > > > Can be taken here:
> > > > > git clone http://iris-comp.ru/public/git/ji.git
> > > > > 
> > > > > (I know about bitlbee, but didn't like it for some reason).
> > > > 
> > > > Do you know about jj too?
> > > > http://23.fi/jj/
> > > 
> > > Looks like the mailing list users DDOS'ed the server:
> > > 
> > > $ nc 23.fi 80
> > 
> > Please disregards this brainfart. The problem is with IPv6.
>  
> Hm, an IPv6 dog ;)

Dog is better than cat :)

-- 
[a]



Re: [dev] ji - ii-like jabber client

2010-06-24 Thread Antoni Grzymala
Antoni Grzymala dixit (2010-06-24, 13:42):

> markus schnalke dixit (2010-06-24, 12:21):
> 
> > [2010-06-24 13:10] Ramil Farkhshatov 
> > > 
> > > I decided to share a simple jabber client with ii interface. It supports
> > > normal convercations and multi-user conferences. Requires iksemel and 
> > > gnutls
> > > (optional).
> > > Can be taken here:
> > > git clone http://iris-comp.ru/public/git/ji.git
> > > 
> > > (I know about bitlbee, but didn't like it for some reason).
> > 
> > Do you know about jj too?
> > http://23.fi/jj/
> 
> Looks like the mailing list users DDOS'ed the server:
> 
> $ nc 23.fi 80

Please disregards this brainfart. The problem is with IPv6.

-- 
[a]



Re: [dev] ji - ii-like jabber client

2010-06-24 Thread Antoni Grzymala
markus schnalke dixit (2010-06-24, 12:21):

> [2010-06-24 13:10] Ramil Farkhshatov 
> > 
> > I decided to share a simple jabber client with ii interface. It supports
> > normal convercations and multi-user conferences. Requires iksemel and gnutls
> > (optional).
> > Can be taken here:
> > git clone http://iris-comp.ru/public/git/ji.git
> > 
> > (I know about bitlbee, but didn't like it for some reason).
> 
> Do you know about jj too?
> http://23.fi/jj/

Looks like the mailing list users DDOS'ed the server:

$ nc 23.fi 80


{...in the distance you hear a dog bark...}

-- 
[a]



Re: [dev] Interesting post about X11

2010-06-22 Thread Antoni Grzymala
Anselm R Garbe dixit (2010-06-15, 06:59):

> On 14 June 2010 12:13, pancake  wrote:
> > http://julien.danjou.info/blog/2010.html#Thoughts%20and%20rambling%20on%20the%20X%20protocol
> 
> This post proves once again that a new window system is what everyone
> is waiting for and that it's our opportunity to do that.

I was greeted by this fortune(6) today (most of you will have probably already
seen it, but for the amusement of others):

X windows:
We will dump no core before its time.
One good crash deserves another.
A bad idea whose time has come.  And gone.
We make excuses.
It didn't even look good on paper.
You laugh now, but you'll be laughing harder later!
A new concept in abuser interfaces.
How can something get so bad, so quickly?
It could happen to you.
The art of incompetence.
You have nothing to lose but your lunch.
When uselessness just isn't enough.
More than a mere hindrance.  It's a whole new barrier!
When you can't afford to be right.
And you thought we couldn't make it worse.

If it works, it isn't X windows.

-- 
[a]



Re: [dev] Convert Suckless Projects Documentation to a More Simple Language

2010-06-17 Thread Antoni Grzymala
Kris Maglione dixit (2010-06-17, 15:39):

> On Thu, Jun 17, 2010 at 08:28:54PM +0200, Antoni Grzymala wrote:
> >Kris Maglione dixit (2010-06-17, 05:57):
> >
> >>On Thu, Jun 17, 2010 at 12:56:21PM +0300, Dmitry Maluka wrote:
> >>>On Thu, Jun 17, 2010 at 05:27:39AM -0400, Kris Maglione wrote:
> >>>>English really isn't much more than bastardized Germanic with quite a
> >>>>lot of words stolen from Norman French, anyway. A bit like C++ to C,
> >>>>really.
> >>>
> >>>German is overcomplicated too, try Swedish.
> >>
> >>Are there any good Swedish composers?
> >
> >Probably not, but neither is Wagner (let's revive the Brahms vs. Wagner
> >flamewar!).
> 
> All I can say to that is that anyone trying to take away my copy of
> Wesendonck-Lieder or Ein deutsches Requiem would very likely suffer
> loss of limb.

I can swap any number of Wesendock Lieder for a single copy of Ein
Deutsches Requiem (preferably with Walter) or Alto Rhapsody for that
matter – but that discussion should go off the list, should it progress
any further.

-- 
[a]



Re: [dev] Convert Suckless Projects Documentation to a More Simple Language

2010-06-17 Thread Antoni Grzymala
Kris Maglione dixit (2010-06-17, 05:57):

> On Thu, Jun 17, 2010 at 12:56:21PM +0300, Dmitry Maluka wrote:
> >On Thu, Jun 17, 2010 at 05:27:39AM -0400, Kris Maglione wrote:
> >>English really isn't much more than bastardized Germanic with quite a
> >>lot of words stolen from Norman French, anyway. A bit like C++ to C,
> >>really.
> >
> >German is overcomplicated too, try Swedish.
> 
> Are there any good Swedish composers?

Probably not, but neither is Wagner (let's revive the Brahms vs. Wagner
flamewar!).

-- 
[a]



Re: [dev] Convert Suckless Projects Documentation to a More Simple Language

2010-06-16 Thread Antoni Grzymala
Kurt H Maier dixit (2010-06-16, 18:02):

> Lojban is a decadent bourgeois luxury.  Interlingua is the staff of
> the proletariat.

Interlingua is sweet. I volunteer for proofreading the translated texts.

-- 
[a]



Re: [dev] Suckless operating system

2010-06-14 Thread Antoni Grzymala
Bjartur Thorlacius dixit (2010-06-14, 23:24):

> On 6/14/10, Matthew Bauer  wrote:
> > I wish modern filesystems would allow some way of identifying a file type
> > besides in the filename. It seems like that would make things more straight
> > forward.

> Surely many modern filesystem support xattrs (extended file attributes)?
> One should be able to use them to store media types.

Besides, hfs has had this feature (along with the whole data/resource
fork schizophreny) for the last 15 or twenty years.

-- 
[a]



Re: [dev] Is Mercurial (hg) suckless?

2010-06-09 Thread Antoni Grzymala
Matthew Bauer dixit (2010-06-09, 17:49):

> Would Mercurial be considered suckless?
> 
> I've always wondered why suckless projects use Mercurial instead of the
> standard git for version control that is used by most Linux projects.
> 
> Isn't Git more simpler than Mercurial?

See the thread from 13 February – this has been discussed already
(Message-ID:
)

-- 
[a]



Re: [dev] dwm-5.8.2 / 9base-6

2010-06-06 Thread Antoni Grzymala
ilf dixit (2010-06-05, 13:32):

> On 06-05 09:34, Szabolcs Nagy wrote:
> >in tiled mode xpdf works as it used to, so i'm not terribly annoyed
> 
> Only not full-screened Xpdf works as before, full-screened Xpd does
> not, as described.
> 
> I use an alias xpdff='xpdf -fullscreen'.

I'd hate that, because I'd have to type one extra space after xpd
:)

-- 
[a]


pgp4BbMVD53yO.pgp
Description: PGP signature


Re: [dev] Tiling windowmanager workflow (Was: [dvtm] Fibonacci layout patch)

2010-06-06 Thread Antoni Grzymala
Ethan Grammatikidis dixit (2010-06-06, 12:37):

> >What is a minor annoyance for me is how the  “m”-mode in dwm is
> >implemented. The clients that aren’t in focus are visible underneath
> >the focused window. At least I think that’s how it’s done, since I can
> >see Chromium at the bottom of urxvtc.
> 
> This is why I suggested st not bother with size hints, although it
> ought to be fixed in the WM really. A quick fix might be to put all
> non-visible windows in iconified state. ion3 does this (although it
> doesn't really need to), and it seems not to have any problems.

You're welcome to disrespect hints at dwm level (resizehints=false) in
which case urxvtc will truly cover the full screen. Hints make sense
though, and not using them may mess up the terminal occasionally – this
has been of course argued about and discussed here a million times.

Iconising clients *might* be a solution, though I'm not certain whether
I'd be more scared than comforted *not* seeing another client from under
a non-fullscreen window (be it terminal or anything else).

-- 
[a]



Re: [dev] dwm-5.8.1 / dmenu-4.1.1

2010-06-02 Thread Antoni Grzymala
ilf dixit (2010-06-02, 18:19):

> On 06-02 10:13, ilf wrote:
> >Now mplayer and flash fullscreen work, yay!
> 
> One more thing i noticed: Now Firefox fullscreen always covers the
> entire screen, including the dwm status bar. Without the patch,
> fullscreen still displayed the status bar, it being toggable was
> kind of nice.
> 
> This is probably not a bug, though.

Yeah, same thing here, also with acroread. Toggling tile-float on a
client fixes the problem (for the time being of the session).

-- 
[a]


pgpbozSFpkAh5.pgp
Description: PGP signature


Re: [dev] Fwd: OT:GUI wireless connections management?

2010-05-30 Thread Antoni Grzymala
Kurt H Maier dixit (2010-05-30, 19:38):

> On Sun, May 30, 2010 at 6:45 PM, hiro <23h...@googlemail.com> wrote:
> > Ok, may I suggest we all go to bed now? And don't forget to charge
> > your wireless devices...
> 
> I refuse to read this message until you assure me it's utf-8 compliant

It was, don't you *ever* read the headers :)?

-- 
[a]



Re: Re: [dev] Fwd: OT:GUI wireless connections management?

2010-05-30 Thread Antoni Grzymala
Dmitry Maluka dixit (2010-05-30, 22:30):

> That's gone. We (IT people) surrendered the initiative to the world
> around, though we could push that technical limitation through to force
> the world to switch to a simple small unified alphabet.

May I suggest, that it would much simpler for the world to actually fix
a few libs in a few conservative OS'es?

There's nothing that makes the notion of one-byte-per-character somewhat
universal. Just an arbitrary desision that you want to stick to because
of the way computing history has developed. Why not two characters or
four?

Regards,

-- 
[a]



Re: Re: [dev] Fwd: OT:GUI wireless connections management?

2010-05-30 Thread Antoni Grzymala
Kurt H Maier dixit (2010-05-30, 15:27):

> On Sun, May 30, 2010 at 3:01 PM, Antoni Grzymala  wrote:
> > And, скажы меня, what if I need to mix cyryllic, some unusual character
> > or two like »λ«,
> 
> you never "need" to do this
> 
> > call upon Janáček's surname, mention a band called
> > Sigur Rós, their track „Suð Í Eyrum” and such?
> 
> Everyone will know what you mean when you type "Janacek", "Sigur Ros",
> and "Suo I Eyrum".
> 
> I can *almost* understand wanting to switch between cyrillic and
> ascii, but bringing sigur ros into it is just stupid.  They invented a
> language.  If they want my computer to support the idiocy they pass
> off as 'art,' they can damn well update my console drivers.
> 
> > Not seeing further than the tip of one's nose and *bending reality* to
> > the limitations of some dinosaur era string processing crap library is
> > so pathetic...
> 
> Not using ASCII places you firmly in the 'dinosaur era.'  You can
> advocate interoperability with your niche shit all you want, but don't
> start assaulting other people for not wanting to waste time decoding
> it.  My system supports UTF-8, but honestly it gains me nothing.

If it does, then what's the noise about?

OK, forget the accents for a moment, and enjoy the *primitive*
misspellings of various non-pure-ascii (ie. most European) languages and
by the shape of this conversation I'm pretty sure you'll be immune to
the notion that some words change or lose (yes, up to practical
undecipherability) their meaning having been dumbed down to ASCII.

I'm quite curious too what's *almost* in understanding the switching
between latin cyryllic (or other scripts for that matter)?

I don't advocate interoperability (on the contrary, I feel the 7-bitters
do), I advocate proper ortographic use of human languages for precise
communicating between people, especially that there are technical means
available.

Guess why was the UTF-8 patch to line editing in dmenu so welcome
yesterday?

Best,

-- 
[a]



Re: Re: [dev] Fwd: OT:GUI wireless connections management?

2010-05-30 Thread Antoni Grzymala
Anselm R Garbe dixit (2010-05-30, 19:29):

> On 30 May 2010 00:58, Ilya Ilembitov  wrote:
> >> well I'm on openbsd. ifconfig is used for everything.
> >
> > Well, that changes pretty much everything. OpenBSD's ifconfig is probably a 
> > unique thing among other BSDs (AFAIK) and is nothing like Linux's ifconfig. 
> > And it's much simpler to use than iwconfig+wpa_supplicant in Linux. 
> > However, there are some types of encryption OpenBSD can't handle yet 
> > (although they are not as widespread as WPA/WPA2+TKIP/PSK).
> >
> > Honestly, because of things like that I would gladly switch to OpenBSD 
> > (since it supports all of my laptop's hardware and has all the software I 
> > need). But the fact that currently it doesn't have UTF-8 is really stopping 
> > me from doing so.
> 
> OpenBSD has excellent support of the 7bit ascii subset of UTF-8. What
> else would you *really* need?
> 
> For my German conversations I'm in favor to rewrite German umlauts
> like so: ae/Ae oe/Oe ue/Ue and sz and be still UTF8 compliant,
> regardless the platform in use.
> 
> I understand that for cyrillic this would be a problem though.
> Nevertheless you could live with KOI8 and use icu's uconv for
> converting that stuff to UTF8 if you need to interchange with UTF8
> world.

And, скажы меня, what if I need to mix cyryllic, some unusual character
or two like »λ«, call upon Janáček's surname, mention a band called
Sigur Rós, their track „Suð Í Eyrum” and such?

Not seeing further than the tip of one's nose and *bending reality* to
the limitations of some dinosaur era string processing crap library is
so pathetic...

-- 
[a]



Re: [dev] dwm-5.8 / dmenu-4.1

2010-05-28 Thread Antoni Grzymala
Nicolas Capit dixit (2010-05-28, 23:13):

> I just tried dwm-5.8 and it seems that fullscreen in mplayer is not working
> anymore (output with xv). I reinstalled the 5.7.2 and it works perfectly.

It truly doesn't. And I'm running with -vo vdpau. Whether I press f in
playback or supply -fs on the command line I just get the default window
size for given media.

This must be very recent breakage, as I've been on running on hg tip for
the last weeks/months and only after today's checkout this turned to be broken.

Regards,

-- 
[a]



Re: [dev] [dmenu] patch: utf-8 strings editing

2010-05-28 Thread Antoni Grzymala
Ramil Farkhshatov dixit (2010-05-29, 00:01):

> I made a patch against dmenu-4.1 that fixes editing (cursor movement,
> character deletion) of utf-8 strings containing multibyte characters.

Thanks!

(+1 for this to go into mainline)

-- 
[a]



Re: [dev] dmenu_path rewrite in C

2010-05-25 Thread Antoni Grzymala
pancake dixit (2010-05-19, 16:15):

> On Wed, 19 May 2010 16:11:15 +0300
> Elmo Todurov  wrote:
> 
> > > So you can define a single buffer of this size to strcpy/memcpy/strcat the
> > > paths you need to construct the executable paths you need.
> > >
> > > this will reduce the heap usage a lot.
> > 
> > This approach would also add complexity. I would guess that disk IO is 
> > the limiting factor to the speed, not malloc.
> 
> and filesystem. in reiser there's some lag on first acceses.

I've noticed that reiserfs has an extremely annoying lag on directory
reads (on cold cache, of course) which was the reason I dumped the
filesystem years ago. Annoyed just that little bit too much in
interactive work.

(FYI I later moved to JFS which I found to be the best allrounder until
I discovered some unpleasant bugs and only a single semi-active
developer, which luckily coincided with works on ext4 getting finished
and now I'm generally happy with that.)

-- 
[a]



Re: [dev] SWK: The simple widget kit

2010-05-10 Thread Antoni Grzymala
Mate Nagy dixit (2010-05-10, 09:47):

>  you don't design suckless software for the user. You educate the user
> first, then design software for the new, enlightened man.

Sounds like we've had that history lesson in the thirties...

-- 
[a]



Re: [dev] Suckless BT client(s)?

2010-05-04 Thread Antoni Grzymala
zi...@freeshell.org dixit (2010-05-04, 02:04):

> Was recently looking for a simple console BitTorrent client.  Found ctorrent
> but it's unmaintained, and Enhanced CTorrent which is still being worked on.
> Found a few others like rtorrent but they seem to require some additional
> dependences like Perl.  Maybe a good suckless project?

rtorrent doesn't seem extremely heavy on deps:

$ qdepends rtorrent
net-p2p/rtorrent-0.8.5: >=net-libs/libtorrent-0.12.5 >=dev-libs/libsigc++-2.2.2 
>=net-misc/curl-7.19.1 sys-libs/ncurses >dev-libs/xmlrpc-c dev-util/pkgconfig

-- 
[a]



Re: [dev] Encoding errors with umlauts in dwm statusbar and dmenu

2010-04-20 Thread Antoni Grzymala
Claudio M. Alessi dixit (2010-04-20, 21:27):

> On Mon, Apr 19, 2010 at 11:07:24PM +0200, orsch...@gmail.com wrote:
> > And when you are try to fix this could you please also try to correct the
> > flash fullscreen issue?
> I use this workaround without any issue:
> 
>   http://lists.suckless.org/dev/0912/2687.html
> 
> Hope this helps.

Unfortunately this workaround breaks the colouring of the window frames.
Both active and inactive get the active window color which makes the
whole colouring scheme pretty much useless.

Reverting the workaround get normal behaviour back.

-- 
[a]



Re: [dev] [dmenu] A clickable dmenu is a dream?

2010-03-30 Thread Antoni Grzymala
pancake dixit (2010-03-30, 10:00):

> Did you know yeahlaunch?

Yeah, I didn't ;)

I installed bashrun in the meantime and it seems to behave sensibly,
thx.

> On Mar 28, 2010, at 8:55 PM, Rob  wrote:
> 
> >On 28 March 2010 19:28, Antoni Grzymala  wrote:
> >>This might be getting off topic, but has the possibility of filename
> >>completion in the argument field been considered or written
> >>(sorry if I
> >>missed that part)? We could then do things like launching
> >>
> >> dmenu --base-path /home/some_user
> >>
> >>and within dmenu, say:
> >>
> >> xpdf somedir/blah
> >>
> >>to complete a unique filename within a unique directory (or not).
> >
> >I'd like to see a feature like this too, since at the moment I use
> >tilda as a handy one line terminal+shell for opening pdfs, image
> >viewers and other programs that take paths as arguments.
> >
> 

-- 
[a]



Re: [dev] [dmenu] A clickable dmenu is a dream?

2010-03-28 Thread Antoni Grzymala
Connor Lane Smith dixit (2010-03-27, 22:58):

> On 27 March 2010 22:30, Sean Whitton  wrote:
> > You can achieve this with M-p in dmenu-4.0.
>
> Julien was right, actually. 4.0 doesn't support M-p unless you apply
> the paste patch. Tip integrates paste and cursor. (On that note,
> Shift-Insert would make more sense imo.)

+1

I'm definitely for shift-ins (or at least ^y) to make it more consistent
with usual pasting procedures.

This might be getting off topic, but has the possibility of filename
completion in the argument field been considered or written (sorry if I
missed that part)? We could then do things like launching

  dmenu --base-path /home/some_user

and within dmenu, say:

  xpdf somedir/blah

to complete a unique filename within a unique directory (or not).

Best,

-- 
[a]



Re: [dev] terminal that accepts any size

2010-03-20 Thread Antoni Grzymala
Alexander Surma dixit (2010-03-20, 18:48):

> On Sat, Mar 20, 2010 at 6:34 PM, Jonas Bernoulli  wrote:
> > On Sat, Mar 20, 2010 at 18:04, Alexander Surma
> >  wrote:
> >> Well, resizehints are exactly that, hints. Not an obligation.
> >> It's usually the job of the window manager to respect (or not to
> >> respect) those hints - it's not
> >> something that has to be changed in the implementation of the terminal 
> >> emulator.
> >
> > Let me rephrase: Does anyone know of a terminal that instead of
> > setting resize hints
> > (that would cause wmii to draw thicker boarders around the window [1])
> > does not set
> > any resize hints but instead adds some extra space (in the background
> > color) on the
> > right and/or lower sides (or equally on all) (which does not have any
> > (truncated) text
> > on it) if the window size set by the window manager does set the
> > window to a size
> > which match a multitude of the font being used?
> >
> > [1] and which is worse often draws a thinner boarder, like in "of size 0px".

> I can't speak for wmii, but if you make dwm ignore resizehints xterm
> behaves exactly like that.
> If you insist on keeping resizehints enabled, I don't believe you'll
> find a terminal which works like that out of the box.

The terminal provides the hints, it's up to the wm, to make use from
them or not. *xterm and *rxvt will behave the way you want if you
disable obeying resizehints in your window manager. Whether it's tunable
in wmii, I don't know. So there's nothing to rephrase.

On a side note, don't we just love mixing topposting and bottomposting?

-- 
[a]



Re: [dev] terminal that accepts any size

2010-03-20 Thread Antoni Grzymala
hiro dixit (2010-03-20, 21:40):

> 9term

10term. I win.

-- 
[a]



Re: [dev] [misc] How to disable scrolling in a vt100

2010-03-18 Thread Antoni Grzymala
On Thu, 18 Mar 2010 14:00:45 +0100, Valentin  wrote:
> On Thu, Mar 18, 2010 at 01:58:11PM +0100, QUINTIN Guillaume wrote:
>> >
>> > Scroll lock works for me in xterm.
>> >
>> 
>> What is the escape sequence to lock scroll ?
>> 
> 
> No idea, I just hit scroll lock…

AFAIK there are no escape sequences, but single bytes (XOFF/XON) in most
terminals mapped to ^s and ^q respectively.

[a]



Re: [dev] GSoC 2010

2010-03-03 Thread Antoni Grzymala
Anselm R Garbe dixit (2010-03-03, 18:55):

> On 3 March 2010 18:33, Chris Palmer  wrote:
> > Kurt H Maier writes:
> >
> >> > We need a desktop text indexing system that sucks less.
> >>
> >> grep
> >
> > First of all, I had never heard of this program. It is so great! Wow! Thanks
> > for the suggestion! In 45 minutes when my query has completed, I'll buy you
> > a beer. I assume you prefer Coors Lite?
> >
> > Second, the newly-discovered grep program is horrible bloatware. 78KB on my
> > system (the stali version will be larger due to static linking), when a
> > simple awk script would suffice for the same purpose? Man, the people
> > writing this new bleeding-edge software sure have no conception of the
> > beauty of simplicity that reigned in the old days.
> 
> Stali's grep is smaller than your bloated 78kb dynamic executable, see
> attached. It's 63kb actually and runs on all x86 linux platforms.

Cool, seems like it's got secret netcat functionality built in:

$ strings /tmp/grep | /tmp/grep -i network
Machine is not on the network
Name not unique on network
Network is down
Network is unreachable
Network dropped connection on reset

and valuable Xenix support:

Not a XENIX named type file
No XENIX semaphores available

:)

-- 
[a]



Re: [dev] Surf assumes all SSL connections are good, which is bad

2010-02-09 Thread Antoni Grzymala
On Tue, 9 Feb 2010 18:56:39 -0500, Kurt H Maier 
wrote:
> On Tue, Feb 9, 2010 at 6:09 PM, Chris Palmer 
> wrote:
>> Letting people believe that any SSL connection is good is actually
worse
>> than nothing, because it creates a false sense of security.
>>
>> I have serious qualms about depending on CAs (the false sense of
security
>> they engender is even more of a problem, I'd argue!),
> 
> stop trying to fix social problems with code
> 
> SSL can do two things:
> 
> 1) provide site-to-site encryption
> 2) make a lot of money for cert-signing organizations

A man-in-the-middle attack is not a social problem. If site-to-site is not
site-to-*intended*-site then your point 1) is moot. Thank you very much.



Re: [dev] [OFFTOPIC] Recommended meta-build system

2010-02-02 Thread Antoni Grzymala
Anselm R Garbe dixit (2010-02-02, 08:05):

> On 1 February 2010 23:56, Antoni Grzymala  wrote:
> > Well, a while ago I saw a back-to-front Trabant on the streets of
> > Warsaw, a quick google and here you go:
> >
> > http://autofoto.pl/blogs/prezes/archive/2009/05/11/trabant-je-d-cy-ty-em.aspxa
> >
> > http://piotr.biegala.pl/foto/displayimage.php?pid=342&fullsize=1
> > http://piotr.biegala.pl/foto/displayimage.php?pid=343&fullsize=1
> 
> I'd consider this guy living on the sharp edge, because anyone who has
> seen lot's of Trabis on the streets will break when he sees this
> vehicle or join left traffic ;)

Hehe... Those who have seen lots of Trabbies are on the verge of
extinction these days (yeah, I know they're *not*).

-- 
[a]



Re: [dev] [OFFTOPIC] Recommended meta-build system

2010-02-01 Thread Antoni Grzymala
Chris Palmer dixit (2010-02-01, 15:48):

> Anselm R Garbe writes:
> 
> > "[...] as even refueling the car required lifting the hood, filling the
> > tank with gasoline (only 24 litres[1]), then adding two-stroke oil and
> > shaking it back and forth to mix."
> 
> Never mind that bit of compile-time configuration -- look at this filth!
> 
> http://en.wikipedia.org/wiki/File:Trabant_RS02%28ThKraft%29.jpg
> 
> People who paint their cars should be stabbed to death! With a configure
> script! I love milking cows that have a single pre-determined pattern of
> black and white spots!! CAKE LACED WITH PCP FOR MY BIRTHDAY!!

Well, a while ago I saw a back-to-front Trabant on the streets of
Warsaw, a quick google and here you go:

http://autofoto.pl/blogs/prezes/archive/2009/05/11/trabant-je-d-cy-ty-em.aspx

http://piotr.biegala.pl/foto/displayimage.php?pid=342&fullsize=1
http://piotr.biegala.pl/foto/displayimage.php?pid=343&fullsize=1

-- 
[a]



Re: [dev] [OFFTOPIC] Recommended meta-build system

2010-02-01 Thread Antoni Grzymala
Uriel dixit (2010-02-01, 22:30):

> On Mon, Feb 1, 2010 at 2:06 PM, anonymous  wrote:
> >> Having said that, in case of rfork vice versa from FreeBSD.
> >
> > Yes, I am talking about FreeBSD. With configure you can make your
> > program portable between FreeBSD and Linux. Most probably other
> > systems won't implement clone/rfork their own way so program will be
> > portable between all systems with some kind of rfork implementation.
> 
> This is bullshit, one of the reasons I gave up using FreeBSD long ago
> is because so much crap software that used auto*hell would blow up
> when trying to build it on FreeBSD, and trying to fix up auto*hell so
> the damned thing would build was a fucking nightmare.

Out of curiosity: what were the other reasons and what did you settle on
instead (if anything)?

-- 
[a]



Re: [dev] [OFFTOPIC] Recommended meta-build system

2010-02-01 Thread Antoni Grzymala
Anselm R Garbe dixit (2010-02-01, 15:58):

> On 1 February 2010 15:49,   wrote:
> > * Anselm R Garbe  [2010-02-01 15:48]:
> >> On 1 February 2010 13:30,   wrote:
> >> > experts rule: Actually they don't want!  Ever seen a suckless car, or
> >> > mobile phone?
> >>
> >> There was the DDR Trabant, which I consider quite close to a suckless
> >> car: http://en.wikipedia.org/wiki/Trabant
> >
> > Well, Trabi is close to suckless, I agree. I still enjoy the simplicity 
> > when I
> > have a ride with an owner of an old one occasionally. But it is not safe,
> > for instance. Safety, in turn, is generally important, but not that much an
> > issue for the everyday home-work-back trip in a large city.
> 
> Security is relative with a car like the Trabant. Back in GDR times it
> was rather secure since it's maximum speed was around 120km/h and
> roads weren't as crowded as today and hence car accidents were a rare
> occasion. Driving a Trabant today is surely a security risk but so is
> driving an original Mini Cooper as well or some other classic car.

That's major bullshit. Please...

-- 
[a]



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: http://tinyurl.com/yhfqna5

-- 
[a]



Re: [dev] [SLOCK] is not safe

2010-01-20 Thread Antoni Grzymala
anonymous dixit (2010-01-20, 10:57):

> > Problem here is not using exec startx or startx & exit, not using or not
> > using exec in xinitrc/xsession!
> > 
> Problem here is (not (using exec startx or startx & exit)), not (using
> or not using exec in xinitrc/xsession).

I also parsed it that way, but shouldn't that be:

s/, not /, nor/

?

-- 
[a]



Re: [dev] [OT] Distribution

2010-01-19 Thread Antoni Grzymala
Moritz Wilhelmy dixit (2010-01-19, 22:46):

> On Tue, Jan 19, 2010 at 11:56:56PM +0300, anonymous wrote:
> > Why not Slackware?
> 
> Why not suse?

Why not feed trolls?

-- 
[a]



Re: [dev] Distribution

2010-01-18 Thread Antoni Grzymala
Jonathan Slark dixit (2010-01-18, 22:41):

> I was wondering what distros people use on this mailing list?  I've 
> tried a lot and I'm not happy with any of them.  All I need is a 
> toolchain/dev utils with minimal X install.  I would then compile all 
> the apps/dwm myself and install using the package manager.

Sounds like Gentoo, to me.

Hope this thread doesn't turn into yet another flamewar and bitching
how-broken-is-some-distro-i-am-not-actually-using. I propose that people
(criticise|advertise) only distros they're actually using for getting
day-to-day stuff done.

-- 
[a]



Re: [dev] [SLOCK] is not safe

2010-01-17 Thread Antoni Grzymala
Sebastian Goll dixit (2010-01-17, 16:44):

> On Sun, 17 Jan 2010 16:24:11 +0100
> Gregor Best  wrote:
> 
> > Same thing with every other screen locker. The only "solution" is to
> > remove the ChangeVT* mappings from the xmodmap.
> 
> Another solution seems to be to exec into “startx” instead of running
> it within a shell. Then, there is no C-z to send it into background.

Yet another one is to use xdm.

-- 
[a]


pgp2AbnD7SIGP.pgp
Description: PGP signature


Re: [dev][dwm] window tagging

2010-01-12 Thread Antoni Grzymala
Alex Matviychuk dixit (2010-01-13, 00:44):

> Somewhat related, is there any word on if/when the flash video full
> screen issue will be resolved? That is, when trying to full screen a
> flash video, it drops back to the original page after popping up.

Works for me currently if I switch to monocle when viewing full screen
youtube player.

-- 
[a]



Re: [dev] Profont in dwm

2010-01-04 Thread Antoni Grzymala
Samuel Baldwin dixit (2010-01-04, 16:46):

> 2010/1/4 Josh Rickmar :
> > On Mon, Jan 04, 2010 at 09:03:08PM +, Rob wrote:
> >> I use profont and
> >>
> >> static const char font[]            = 
> >> "-*-*-profont-*-*-*-12-*-*-*-*-*-*-*";
> >>
> >> works fine for me. Although profont shows up in xfontsel for me too,
> >> so perhaps you need to run fc-cache, mkfontscale, mkfontdir, or some
> >> other font utility.
> >
> > Try xset +fp, that's what I'm using to add terminus.
> 
> I did both of these sequentially and I got what I needed. Do I need to
> run xset each time I start X, or start the machine?

Just stick it in your .xsession, or wherever is convenient.

-- 
[a]



Re: [dev] [DWM] suggestion for dwm

2010-01-03 Thread Antoni Grzymala
Cengiz Tas dixit (2010-01-03, 22:10):

> 1) i know how to check for unread mails in gmail and display it in the
> status bar.
> can i check for unread chat messages in the same way, too?

Pretty much depends on your mail client. mcabber AFAIK can write things
to a file/pipe, which you can use to set your statusbar accordingly, I
happen to use tkabber which sets it's window title in accordance with
the number of unread messages, hence I do something like:

NUMBER=$(xwininfo -tree -root | gawk '/\([0-9]+.*Tkabber/ {print 
gensub(/(^.*\()([0-9]+)(\*\).*$)/, "\\2", "1")}')
[[ ${NUMBER} -ge 1 ]] && TKABBER="[Tkabber: ${NUMBER}] · "

Since tkabber is in Tcl it would probably be even simpler to hack the
code a little to write something to a pipe...

> 2) when i use pidgin with the notification plugin dwm gets an urgent window
> notification and changes color of the corresponding tag. how can i make dwm
> react on the urgent window notification when there's an unread chat message
> in gmail?

This would probably need some browser/js hacking (I understand you're
talking about the gmail web-based chat client?

Best,

-- 
[a]



Re: [dev] [DWM] suggestion for dwm

2010-01-03 Thread Antoni Grzymala
Peter John Hartman dixit (2010-01-03, 13:51):

> I agree w/r/t removing the status feature in dwm.  If it isn't a
> trayer, then what is its purpose?  Of course, primary motivation is
> that an alternative standalone trayer can do whatever it is that the
> status feature is doing anyway (or so it seems).  Hence, it is
> superfluous.

The tray “protocol” itself is a totally borken idea of the useless WIMP
paradigm. A workaround for a workaround. Makes even less sense in the
tagged dwm environment.

As to the status bar itself, it serves a far better purpose than the
crappy tray (a useless 16x16 or so pixel area per program), for you can
actually write *text*, of all things, in the statusbar. The humankind
developed *writing* to move on from the hieroglyphs and I don't really
understand the urge to discard all the years of development and get back
to primitive pictograms for conveying information.

If your apps are crappy or unhackable enough that you can't dig
interesting info from them (like unread IM/mail messages and the like)
and display that info as human-readable text in the status bar, than
it's perhaps high time to look for alternatives.

BTW:

> I agree w/r/t removing the status feature in dwm.

Says who?

End of rant.

-- 
[a]



Re: [dev] slock with non-system auth

2009-12-20 Thread Antoni Grzymala
Moritz Wilhelmy dixit (2009-12-20, 12:03):

> On Sun, Dec 20, 2009 at 11:53:02AM +0100, markus schnalke wrote:
> > [2009-12-19 21:37] pancake  
> > > 
> > > I have done two patches for slock.
> > > 
> > > The first simplifying the use of cpp and the other adding user
> > > defined password.
> > 
> > The password should probably not be a clear text string inside the
> > binary file, as one can easily read it with `strings slock'.
> > 
> > Is there a secure hash function in standard C? I think not. Linking
> > some external library for this, seems to be overkill.
> > 
> > Maybe we could give slock a system account to check the password
> > against. Thus it must not to be the own account, but can be a special
> > slock system user, which exists just for this task.
> > 
> > Unfortunately only root users will have the ability to set different
> > passwords then.
> > 
> > 
> > meillo
> 
> And only root-users will be able to use slock then, so it doesn't
> work for people working on public machines, for instance at university.

There are kernel-based crypto functions (including strong hashes), at
least in Linux, dunno about other OS'es, so it wouldn't be necessary to
link to an external library.

Still, there'd need to be a simple way to generate the hash, perhaps
another binary for hashing the stdin would do then? Or slock itself,
when fed a string.

-- 
[a]



Re: [dev] slock - cannot log in

2009-12-17 Thread Antoni Grzymala
daspostloch dixit (2009-12-17, 14:25):

> you are right that was crap. sorry.
> the F# works fine as just tested in firefox.
> the reason i got confused is because i, other
> than vterm, dont have use for them.
> so the real issue is that switching vterms
> doesnt work, not even right now in normal ops.
> maybe because i xmodmapped alt to win and ctrl
> to caps? or cause i inittab into runlevel 5
> directly? so this happens when an only superficially
> experienced guy wants to use the power tools -
> but now were completely off-topic :)
> 
> 
> Anders Andersson wrote:
> >> Thanks guys. A colleague also suggested switching vterm,
> >> but unfortunately, the thinkpad gives access to the F# buttons
> >> only via the Fn modifier, which does not seem to support
> >> multi-key combinations. at least i have yet to figure out how
> >> to do that.
> > 
> > Curiously and mostly but not completely off-topic, but what kind of
> > ThinkPad do you have that can only access the function keys with the
> > Fn modifier? Maybe there's something else wrong with your keyboard
> > layouts that affect this?
> > 
> > (Look, I'm quoting correctly?!)

*Wasted*. The guy topposted you...

As to the topic – dpms is quite useful, hope there's a way to have both.
And to the guy up at the top, haven't you just switched off moving over
to virtual consoles in Xorg config (like a installation default
DontVTSwitch option or something)?

-- 
[a]



Re: [dev] slock - cannot log in

2009-12-17 Thread Antoni Grzymala
Tony Lainson dixit (2009-12-17, 23:12):

> > anyone have any more ideas other than
> > power button?
> 
> The power button sounds a bit drastic.  Can't you press Ctrl-Alt-F2 to
> switch to virtual console 2, then log in and kill slock from there?

There are no display power buttons on laptops.

-- 
[a]



Re: [dev] Full quotes below

2009-12-16 Thread Antoni Grzymala
markus schnalke dixit (2009-12-16, 12:29):

> > I've been pondering switching over to nmh in the recent years, but there
> > were some things holding me back. I'd be cool if you shared your
> > experiences, too.
> 
> Encodings are handles pretty badly. Latin1 is okay, but UTF8 is hardly
> supported. MIME is usable, though one needs to learn how, cause it's
> different than in other mail clients.
> 
> You will certainly want to configure nmh extensively to make it fit
> your needs. It's a bit like dwm where almost everyone has his patches.

That's for sure. Seems like I'll have to stick to mutt for the time
being, though I've briefly looked at some other solutions like sup [1]
and notmuch [2] (I quite the sense of humour around the second project).
Still, they're not quite ready to replace the comfortable workflow I
have with mutt.

> In any case, you need some low-level understanding of email to
> understand nmh.

That's probably not a problem, apart from MIME, which IMO is a
convoluted mess of a solution, esp. allowing nesting MIME messages
inside one-another...

Best,

[1] http://sup.rubyforge.org/
[2] http://notmuchmail.org/

-- 
[a]



Re: [dev] Full quotes below

2009-12-16 Thread Antoni Grzymala
markus schnalke dixit (2009-12-16, 09:38):

> [2009-12-16 18:11] Jessta  
> > 2009/12/12 markus schnalke :
> > > Please refrain from adding full quotes a the end of your reply,
> > > it's such a pain to read.
> > 
> > Your war will never be won until there is a tool that enforces it
> > and then people will complain about the tool.
> 
> Seems you are right. :-(
> 
> The irony is, that reading this mailing list became a pain when I
> started using a sane mail client, the one that conforms best to the
> Unix Philosophy: nmh.

Why is that?

I've been pondering switching over to nmh in the recent years, but there
were some things holding me back. I'd be cool if you shared your
experiences, too.

Regards,

-- 
[a]



Re: [dev] [OT] Full quotes below

2009-12-12 Thread Antoni Grzymala
Kurt H Maier dixit (2009-12-12, 08:58):

> meillo, next time you decide to teach us how to use the internet mark
> it offtopic so I don't have to listen to yet another internet
> etiquette lecture from a well-meaning simpleton

Same about your reply.

-- 
[a]



Re: [dev] suckless password manager

2009-12-10 Thread Antoni Grzymala
Alexander Surma dixit (2009-12-11, 00:07):

> Actually, I think passwordmanagers are not secure. All your passwords are
> just as strong as your PM encryption.

That's why I keep most of my less-used passwords in a
GPG-encrypted-to-self file with a vim configuration for transparent
decryption, reencryption and wiping afterwards.

This is obviously not 100% secure, but for a moderately trusted personal
setup it's quite sufficient.

Best,

-- 
[a]



Re: [dev] [OT] Bcc disaster: Bcc headers not stripped

2009-11-24 Thread Antoni Grzymala
sta...@cs.tu-berlin.de dixit (2009-11-23, 20:47):

> just sharing a frustrating experience I had on gmail couple of days ago.
> It might be helpful for somebody:
> 
> Default, the tool chain mutt + ssmtp + gmail does *not* remove the Bcc
> headers! As long as you don't say

No, it's ssmtp's job to remove the headers and ssmtp is at fault here.
Why not just use postfix, which is nice, stable, infinitely tunable, can
be as light as you like etc.

And yeah, oh the horrors, it actually *does run* in the background :)

Regards,

-- 
[a]



Re: [dev] [OT]: Lisp

2009-11-13 Thread Antoni Grzymala
Aled Gest dixit (2009-11-13, 21:10):

> > If you would care for a pleasant
> > (really) weekend with Lisp, try installing SBCL (a popular Common Lisp
> > implementation) on your OS and have a look at Peter Seibel's great
> > introductory (and more) book on Common Lisp:
> >
> > http://www.gigamonkeys.com/book/
> 
> I installed clisp on my BSD box the day before, don't know how that
> compares to SBCL, but I'll give that guide a go, thanks for the heads
> up!

SBCL seems to be the most actively developed and best supported
implementation on the Linux platform, not sure about BSD. Clisp is
possibly the most portable. A pretty up to date comparison is available
here:

http://common-lisp.net/~dlw/LispSurvey.html

Best,

-- 
[a]



Re: [dev] suckless IRC ?

2009-11-13 Thread Antoni Grzymala
David J Patrick dixit (2009-11-13, 11:48):

> where ?

#suckl...@oftc

-- 
[a]



Re: [dev] [OT]: Lisp

2009-11-13 Thread Antoni Grzymala
Aled Gest dixit (2009-11-13, 16:27):

> 2009/11/13 Mate Nagy :
> >  please stop posting
> 
> Why?

It's getting very much off topic. If you would care for a pleasant
(really) weekend with Lisp, try installing SBCL (a popular Common Lisp
implementation) on your OS and have a look at Peter Seibel's great
introductory (and more) book on Common Lisp:

http://www.gigamonkeys.com/book/

Go through chapter 3, it should pretty much already explain a lot of
good stuff in (Common) Lisp. You might get to like it by then, it's
practical, non-religious and gets into interesting stuff pretty quick.

Or if you'll still not give a shit about it, you'll at least have some
good arguments at hand :).

Best,

-- 
[a]



Re: [dev] [OT]: Go programming language

2009-11-11 Thread Antoni Grzymala
Moritz Wilhelmy dixit (2009-11-11, 19:46):

> > On Wed, 11 Nov 2009 06:15:06 -0500
> > Kris Maglione  wrote:
> > 
> > > Looks more like Limbo/NewSqueak. And the mascot's kind of 
> > > Glenda-ish (plus you mentioned Rob), so I wouldn't doubt it. 
> > > If Rob was involved, I very much doubt that Ada was an 
> > > intentional influence. Actally, it seems very much more like the 
> > > next generation of Limbo or Alef than anything else, the more I 
> > > look at it.
> > 
> > Why not? Ada is a great language.
> 
> I have never seen anybody using Ada.

Ever flown an aircraft? Most likely a good bit of the avionics firmware
was written in Ada.

-- 
[a]



Re: [dev] [OT]: Go programming language

2009-11-11 Thread Antoni Grzymala
Aled Gest dixit (2009-11-11, 18:53):

> > Then you never tried Lisp!
> 
> I hope that's sarcasm, because I wouldn't call requiring everything to
> be wrapped in parentheses clean :P

Looks like you didn't give more than half a minute's time, to see what
Lisp's syntax (or rather the lack of it) is actually about. Your hopes
are vain.

-- 
[a]



Re: [dev] JOE editor was: a little bit of vi+zsh magic

2009-11-04 Thread Antoni Grzymala
Jack Woehr dixit (2009-11-04, 12:30):

> > Today I was forced to use the joe editor for java.
> >
> > Perhaps I should hang myself...
> >   
> 
> Perhaps 'joe' was written by the Sirius Cybernetics Company.

After Wikipedia:

The only profitable division of the company is its Complaints division,
which, according to the series, takes up all of the major landmasses on
the first three planets in the Sirius Tau system. The theme song for the
Complaints division is Share and Enjoy, and has since become the theme
apparent for the company as a whole. The main office building and
headquarters for the company was originally built to represent this
motto, but due to bad architecture it sank halfway into the ground,
killing many talented young complaints executives. The downside to this
is that the upper halves of the motto's words now read, in the local
language, "Go Stick Your Head in a Pig."

-- 
[a]



Re: [dev] [surf] next release

2009-10-22 Thread Antoni Grzymala
Tadeusz Sośnierz dixit (2009-10-22, 18:15):

> > Perhaps we should be thinking about separating them?
> 
> Then we will end up with some shit like uzbl - the browser which cannot
> browse the web.

Why not? Just curious, haven't been using any of those yet.

-- 
[a]



Re: [dev] [dmenu] Putting key combinations in config.h

2009-10-21 Thread Antoni Grzymala
markus schnalke dixit (2009-10-21, 23:13):

> [2009-10-21 14:48] Peter John Hartman  
> > On Wed, 21 Oct 2009, Colin Shea wrote:
> > > On Wed, Oct 21, 2009 at 1:15 PM, Peter John Hartman 
> > >  wrote:
> > >
> > >   Can we put the various keybindings used in dmenu
> > >   in config.h rather than dmenu.c?
> 
> > >   But more
> > >   generally most other suckless apps have the keybindings in 
> > > config.h, so why
> > >   not dmenu?
> 
> > > As I stated, it would be better than a parameter passed to dmenu on the 
> > > command line.
> 
> > 1. I'm glad we agree on the config.h vs. argument-from-commandline vs. 
> > dmenu.c question.
> 
> Do we really agree? At least, I do not, and I hope you don't also when
> you read this mail.
> 
> Dwm is a very personal program which everyone tailors to his needs.
> Here configurable shortcuts are of much value and do not conflict much
> with other users/different systems.
> 
> Dmenu, on the other hand, is a quite generic program which sould be the
> same everywhere. If people start configuring the key strokes, one needs
> different dmenus for different users on one system. Also, one may not be
> able to use dmenu on a different machine. That's to avoid, for sure.
> 
> Configuring dmenu's look is one thing, but changing it's behavior is
> another. I do recommend *not* to change the behavior. Thus don't put
> such options to config.h.
> 
> If you *really* need to configure the key strokes, then do it in a way
> that preserves the standard behavior. Using command line parameters for
> it would be an example. But better don't do it at all.
> 
> Have you adjusted the key strokes of e.g. w3m? You may get a bit more
> produktivity then ... but you'll lose all of it and more when you are on
> another machine. Hence, you better learn the standard configuration and
> don't depend on your machine.
> 
> Dmenu should be seen like grep or sed -- a standard tool that works the
> same everywhere.
> 
> Please think about it.

I agree. My main argument would be, that one usually runs a single
instance of dwm per session (or sometimes more when on multiple
displays, but still it's a pretty static situation). But then in that
session that user may be launching dmenu multiple times for totally
unrelated purposes for which different colors and key shortcuts might be
suitable (important for visual identification, too). So there could be
defaults in config.h, but commandline switches have to stay.

Of course, this would not go in tune with the suckless paranoia
(doubling functionality, Jesus Christ!!!), so I suppose it should stay
as it is :).

Best,

-- 
[a]



Re: [dev] (x)HTML-based office suite? (aka suckless word processing solution-2)

2009-10-19 Thread Antoni Grzymala
Uriel dixit (2009-10-19, 16:24):

> On Sun, Oct 18, 2009 at 9:15 PM, Szabolcs Nagy  wrote:
> > On 10/18/09, Antoni Grzymala  wrote:
> >>> ASCII works just fine, thanks.
> >>
> >> Just fine for the Americans?
> >
> > fine for anyone who is willing to communicate in english
> 
> People unwilling to communicating in English are not worth communicating with.

I'd say “unwilling to communicate” would be more in English, but let's
leave that aside.

Are you proposing that nationals of a single non-English nationality
(which was the topic of the main thread among other things) should
communicate between themselves in English because there's the God-send
called ASCII and Uriel says so?

These threads grow to such let's-see-how-far-beyond-trolling-we-can-go
monstrosities that I can't believe my eyes sometimes. On the other hand,
sometimes it's just plain hilarious.

-- 
[a]



  1   2   >