LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs > catkin
User Name
Password

Notices

Uncategorized Entries with no category
Old

Ruby: configuration file parsing utility

Posted 04-18-2011 at 10:12 AM by catkin

Netsearching found three options for Ruby to parse configuration files:So I rolled my own and offer it here for community use. I was delaying publishing because it is not finished (there are TODOs in the code) but it works well enough and may never be finished so better...
LQ 5k Club
Posted in Uncategorized
Views 1465 Comments 0 catkin is offline
Old

Xapian omega: simple URLs for users (Apache)

Posted 04-11-2011 at 11:59 AM by catkin

Xapian's Omega component is primarily used as tool for building interactive text searching solutions but can be used directly.

When using it directly, a typical URL is http://<host_ID>/cgi-bin/omega. That results in omega running with its default CGI parameters. The default CGI parameters can be over-ridden by specifying them on the URL, for example http://<host_ID>/cgi-bin/omega?DB=<index_ID>&FMT=<template_ID>.

There are two problems...
LQ 5k Club
Posted in Uncategorized
Views 1420 Comments 0 catkin is offline
Old

rsync server boot/control script

Posted 12-25-2010 at 12:14 AM by catkin

Hello

I couldn't find one to suit anywhere so wrote this.

It is not really needed during shutdown because all it does is send SIGTERM to all the rsync server processes and the Linux shutdown process does that anyway. rsync server processes are well behaved and do terminate quickly in response to SIGTERM so there's no need to check that the processes have terminated and escalate to SIGKILL (which the Linux shutdown process does anyway).

It is hardly...
LQ 5k Club
Posted in Uncategorized
Views 1002 Comments 0 catkin is offline
Old

Terminal icon for root with hash in screen

Posted 12-22-2010 at 01:55 AM by catkin
Tags hash, icon, root, screen

In case anybody is looking for one (I was and could not find one anywhere), the attachments are terminal icons with a hash (#) character.

This is not my area of expertise so improvement suggestions are welcome. Is PNG the best format for icons? Is 48x48 a good size choice?

In case anyone is curious how it was made, Terminal.svg was copied and loaded in Gimp. Most of the shading was removed (plain black background is more distinct at small display sizes such as in...
Attached Images
File Type: png Terminal_hash 160x160.png (1.7 KB, 5 views)
File Type: png Terminal_hash_48x48.png (892 Bytes, 59 views)
LQ 5k Club
Posted in Uncategorized
Views 1094 Comments 0 catkin is offline
Old

Getting a timestamp string in a Windows cmd.exe variable

Posted 12-12-2010 at 12:31 PM by catkin

This technique was developed to generate a timestamp string for rsync's --backup-dir option but it could be generally useful.

The first issue is that the value of %DATE% depends on Windows' regional settings so is not portable. The same goes for the output format of cmd.exe's builtin command date. (one example of many discussions: this StackOverflow thread). There is no way to program around this in a .BAT or .CMD script. The chosen solution was to UnxUtils' date.exe which is a...
LQ 5k Club
Posted in Uncategorized
Views 3349 Comments 0 catkin is offline

  



All times are GMT -5. The time now is 10:59 AM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration