mones is currently certified at Journeyer level.

Name: Ricardo Mones
Member since: 2002-04-01 16:20:18
Last Login: 2008-02-15 07:51:00

FOAF RDF Share This



Recent blog entries by mones

Syndication: RSS 2.0

10 years of clawsker!

Today on #claws irc channel some conversation derailed into talking about hidden preferences (of Claws Mail) and clawsker's name, the Perl applet which can help you to edit them.

First name was not clawsker, it was a more like Sylpheed Claws Hidden Preferences Editor, which I of course abbreviated to the unspeakable schpe — unless you know German, I guess… ;-)

Looking for the initial script, it turned out it's still on my hard disc:

$ tree -Ds claws/dev/oldscripts/schpe/
├── [ 4096 Sep 3 2006] mock
│   ├── [ 24456 Sep 3 2006]
│   ├── [ 24456 Sep 3 2006]
│   ├── [ 315 Sep 3 2006] schpe.gladep
│   └── [ 315 Sep 3 2006] schpe.gladep.bak
└── [ 1160 Aug 22 2006] schpe

1 directory, 5 files

Notice it's dated just 10 years and 1 day ago, yay!

That version wasn't even functional, was just a skeleton and an attempt to made a GTK+ GUI with Glade, which, by that time wasn't as good as probably is today (although I've never used it again).

Fortunately that idea was abandoned in the following months and the first release in 2007 enjoyed a hand-made GUI, probably more laborious but better suited, IMHO.

Syndicated 2016-08-23 16:49:33 from Ricardo Mones

I'd love to…

undo all bugs I'd been sneakily making along the years…

But some people call them features ;-)

Syndicated 2016-08-22 12:10:11 from Ricardo Mones

Another target reached

Just sent v0.95 of my project for review. Was nothing previously set, I simply continued writing, expanding and fixing things, with the hope of completing something… it's not fully completed, but sending it for review reduces some pressure at least.

And after tagging it then noticed:

$ git rev-list --all --count

So, yeah, that's 600 commits since the beginning in all branches.

If I had planned it I would have failed miserably to get such exact count ;-)

Syndicated 2016-05-09 23:32:18 from Ricardo Mones

Maximum number of clients reached Error: Can't open display: :0

Today it happened again: you try to open some program and nothing happens. Go to an open terminal, try again and it answers with the above message. Other days I used to reboot the session, but that's something I don't really think should be necessary.

First thought about X gone mad, but this one seems pretty well behaved:

$ lsof -p `pidof Xorg` | wc -l

Then noticed I had a long running chromium process (a jQuery page monitoring a remote service) so tried this one as well:

$ for a in `pidof chromium`; do echo "$a "`lsof -p $a | wc -l`; done
27914 5
26462 5
25350 5
24693 5
23378 5
22723 5
22165 5
21476 222
21474 1176
21443 5
21441 204
21435 546
11644 5
11626 5
11587 5
11461 5
11361 5
9833 5
9726 5

Wow, I'd bet you can guess next command ;-)

$ kill -9 21435 21441 21474 21476

This of course wiped out all chromium processes, but also fixed the problem. Suggestions for selective chromium killing welcome! But I'd better like to know why those files are not properly closed. Just relaunching chromium to write this post yields:

$ for a in `pidof chromium`; do echo "$a "`lsof -p $a | wc -l`; done
11919 5
11848 222
11841 432
11815 5
11813 204
11807 398

Which looks a bit exaggerated to me :-(

Syndicated 2016-04-25 08:20:38 from Ricardo Mones

Oneliner for today

Unfortunately I'm still busy trying to finish the documentation of my M.Sc. project. This one was built after several attempts to convert the tables for the use case descriptions spread through several AsciiDoc files into a list of 3rd level titles joining both the use case Id and title (and some dummy content to keep the processor happy):

grep --after-context=1 '^|Identificador' "$a" *_cu_*.txt 
| cut -f3 -d\| 
| sed 's,^--$,,;s,^\+,,' 
| sed ':a;N;$!ba;s,\n\n,\n,g' 
| sed ':a;N;$!ba;s,\+\n,~,g' 
| awk -F~ '{print $1 " ``"$2"\47\47"}' 
| perl -n -e '
use open qw(:std :utf8);
chomp; $n = length;
print "$_\n" . "^" x $n . "\n\nLorem ipsum...\n\n";

Imagine it all in one single line, of course. It's an awful beast, but it worked!

It required several visits to google to know how to properly replace newlines with sed, how to print single quotes with awk and how to make perl's lenght function behave as desired with UTF-8 input, though I was already aware of this one ;-)

Syndicated 2016-01-10 20:28:45 from Ricardo Mones

97 older entries...


mones certified others as follows:

  • mones certified mones as Journeyer
  • mones certified alfons as Journeyer
  • mones certified Reboot as Journeyer
  • mones certified kov as Journeyer
  • mones certified Senra as Journeyer
  • mones certified colinleroy as Journeyer
  • mones certified nikai as Apprentice
  • mones certified vorlon as Master
  • mones certified Barbwired as Journeyer
  • mones certified wwp as Journeyer

Others have certified mones as follows:

  • mones certified mones as Journeyer
  • nikai certified mones as Journeyer
  • alfons certified mones as Journeyer
  • kov certified mones as Journeyer
  • wwp certified mones as Journeyer

[ Certification disabled because you're not logged in. ]

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!

Share this page