Archive for September, 2009

Linux / FreeBSD Color Selector and picker

Wednesday, September 23rd, 2009

Today I spend my day partly playing with the GIMP. This days I have the enthusiasm,to start learning this nice linux design software.
I have to solve a task where I wanted to change the background of a picture with an existing color
in the header of a website.
Therefore I needed some kind of color picker which is able to pick up
colors directly from any running application on the screen. Luckily I found the solution quickly,
with the help by a guy in #debian in irc.freenode.net. I was suggested to look for color picker via
$ apt-cache search color picker . The first thing that popped up was exactly what I was looking for. It’scalled GCOLOR2. Hope this post will help to somebody out there looking for a color picker for Linux, FreeBSD.
END—–

Prism on Linux a way to turn any Web site location into a Desktop application

Wednesday, September 23rd, 2009

I was googling for some cool features to enrich my Google desktop while I found an applicaiton whichis said to be helpful.
It’s called Prism and is a Mozilla Lab experiment project. Actually it’s nothing special.
It creates a simple window in which it can visualize a website making it look exactly like your desktopapplications.
It has a couple of possiblities like creating a desktop icon for your website, enablesome kind of navigation keys, show status messages on what’s happening on the desktop embeded application andshow navigation bars.
The project is said to be a revolutionary next step towards integrating the webwith your desktop
. You can check out Prism’s website further on On mozilla’s prism website . It might be interesting for you to check out Prism in action before you might go for a try on Youtube here .
Prism is both available via Firefox extension or a desktop application both of which provides you with the describedabove prism functionality. As a Debian user you might wonder if prism is available as a debian package, well there is one
, even though it’s not a release part of the offician debian package distribution. If you’d like to test prismvia it’s debian package use the following prism deb package
,anyways the downside of using the 0.9 debian package is that you won’t be running prism’s latest release.
If you’d like to be running the latest prism version please download it from mozilla’s website.
Well enough talk let me tell you my personal view on Prism. It’s a COMPLETE BULLSHIT! 🙂 I don’t see how any geek wouldhave benefit of the app neither, how does it bridge in the web with the desktop.
It’s simply a crap that could takeof your daily lifetime to install and review 🙂
END—–

Howto add Bulgarian Phonetic keyboard set to Windows XP

Wednesday, September 23rd, 2009

There is a nice site in Bulgarian explaining quite extensively how to add Bulgarian phonetic key set on Injinera’s Website. Another way to solve the problem is to use bgphon_xp program.

A collection of Useful irssi scripts

Wednesday, September 23rd, 2009

Here is a list of some useful irssi scripts I was kindly given by a friend of mine (Narf).
irssi usefulscripts END—–

Porter Ascii Value Chain

Wednesday, September 23rd, 2009

Long time ago when I was preparing for my Marketing I exam in International University College.
I’ve prepared a small ascii version of Porter’s Marketing Value Chain. Check out how fun it looks:
Ascii porter value chain 🙂 END—–

Migrating Nanoblogger to something else

Tuesday, September 22nd, 2009

I’m considering changing nanoblogger for something else. The more I get to know wordpress
the more I’m starting to think that I don’t want to use this bunch of crap.
I found a post explaining the terrible efforts of a guy to migrate his nanoblogger to wordpress.
To succeed in that he has written a python script. Here is a link to the article describing,
how to migrate your nanoblogger to wordpress NanoBlogger to WordPress .
I’m trying it right now and it proves not to work for me so far. I experience various problems with nanoblogger’s date format it definetely is hell …END—–

Learning to Control Yourself the Christian Way

Tuesday, September 22nd, 2009

Since some time I’m thinking about the importance of a way to self control yourself in
order to achieve your goals.
That is something I’ve been always tought in the University.
Howevery the control approaches were always contradictiory to what I read in the holy bible.
Today while googling I came across a nice Christian document discussing “How to learn to
control yourself.” The documnet is written by a protestant pastor. Even though I believe
many of the things explained there does really fit to most believers. There is a part
in the document that rejects the ascetism and probably monks way as a mean to achieve Self Control
in the long term. From an Orthodox Christian point of view I have to emphasize that this is completelywrong.
Another thing that probably does not fit well with christianity is the suggestion by the pastorto write down on a piece of paper what you think your mission for life is.
This approach as ‘ve red before is suggested on many websites where people convinced in buddhism and other
religions does have the same spiritual value as christianity. This of course is a blatant lie!
There is only one salvation through the Lord Jesus Christ who lived gave himself for us (all the sinful people on earth)
and raised from the dead in the third day. As the dead couldn’t hold him as God in the flesh.
Enough talk, here is a link to the article Learning to Control Yourself by Pastor Steven J. Cole .END—–

Howto install and configure Local DHCP Server for small LAN local network on FreeBSD

Monday, September 21st, 2009

Since some time ago, I’ve been planning to install a DHCP server to automatically assign the IP addressesof the hosts in my tiny local network.
Here is how I did it:
First I had to install:
the port isc-dhcpd31-server
Execute the commands:# cd /usr/ports/net/isc-dhcp31-server;# make install cleanFor some reason the dhcpd reason didn’t get created, so I have to issue.pw add user dhcpd;After which use vipw to change the default shell for the dhcpd user to /usr/sbin/nologin aswell as the default user home directory to /var/empty
Next I used the following dhcpd.conf file:
— SNAP —option domain-name “www.pc-freak.net”;option domain-name-servers 83.228.92.2, 83.228.92.2;default-lease-time 600;max-lease-time 7200;# Use this to enble / disable dynamic dns updates globally.ddns-update-style ad-hoc;# Use this to send dhcp log messages to a different log file (you also# have to hack syslog.conf to complete the redirection).log-facility local7;# No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology.subnet 10.152.187.0 netmask 255.255.255.0 {}subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.2 192.168.0.255; option domain-name-servers 192.168.0.1; option domain-name “www.pc-freak.net”; option routers 192.168.0.1; option broadcast-address 192.255.255.255; default-lease-time 3600; max-lease-time 7200;}# the lines below enables you to assign specific IP addresses depending on# machine’s MAC addresshost jericho { hardware ethernet 00:13:2a:33:7d:1e; fixed-address 192.168.0.2;}host noah { hardware ethernet 00:0b:e4:c9:7b:59; fixed-address 192.168.0.4;}— END —
You might need to change some of the IP addresses the conf above is configured for my local networkwhich is in the IP range 192.168.0.2 to 192.168.0.255.
The above conf file’s name servers are my ISP’s nameservers ns.bergon.net and ns1.bergon.netThe variable broadcast-address is the range in which the DHCPD servers will broadcast and eventuallyassign IP addresses.
routers variable sets your network default router in my case it’s my local gateway.
range variable is self explanatory.
subnet is the subnet in which your network is.
max-lease-time is the time interval in which a DHCP IP reassign occurs
default-lease-time the default time on which IP reassign occurs
The rest could be red in the commentaries above the variables:
To make dhcpd log in a separate file it’s also necessery to edit your /etc/syslog.confand change the line
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err; /var/log/messageswith*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err;local7.!*; /var/log/messages
as well as add:
local7.* /var/log/dhcpd to /etc/syslog.conf.
The above changes in syslog.conf should foce syslogd to log to /var/log/dhcpd instead of stuffing your /var/log/messages withdhcpd log output
It’s also necessary to create /var/log/dhcpd’s file:
Execute: touch /var/log/dhcpd as well as restart the syslogd
/etc/rc.d/syslogd restart .
Futhermore execute:
echo ‘dhcpd_enable=”YES”‘ >> /etc/rc.confecho ‘dhcpd_iface=”rl0″‘ >> /etc/rc.conf
The above as you probably know will schedule isc-dhcpd to start up every time your system boots.
Well you should be now having a shiny spreading dhcpd service in your local network.
Enjoy and Praise God 🙂 !
END—–

Enable festival Linux (text-to-speech-system) to read/speak PDF and DOC files (Speech PDF and DOC in Festival Script)

Sunday, September 20th, 2009

Today I wondered if festival supports reading of PDF files on Linux? The answer due to my short research was NO!.

Well though I couldn’t find official program to speak PDFs for me it’s not such a big deal since it’s not so hard to convert PDF files into plain text files in Linux with pdftotext command. 

pdftotext is part of the poppler-utils which is a nice package which alsocontains pdfimages – enabling you to extract images from pdfs,
pdftohtml – pdf to html converter and
pdffonts – pdf font analyzier. The normal way to read PDF files via festival is: First use pdftotext to convert your PDF to text file

$ pdftotext filename.pdf outputfile.txt

and then to make computer speak it over festival default configured synthesizer:

$ cat outfile.txt | festival –tts
For convenience I’ve created a small shell script I calledfestival-read-pdf.sh which does this directly.

Please download the festival-read-pdf.sh shell script here Furthermore I wondered how to make the Microsoft Office .doc files to be played throughfestival. On that account It was required something to convert again the .doc file extension to plain text. I came across antiword which I’ve blogged about in my previous post. Thus to carry it via festival you need to: antiword filename.doc | festival –tts I’ve fastly scripted it for some convenience. Download the festival-doc-read.sh script here I’ve also created a third bash script which enables you to select either to play DOC or PDF file in Festival.
Here is a link to the festival’s festival-read-doc-en-pdf.sh PDF, DOC speaker script .
Talking about festival it might be interesting to mention fala – A simple text reader.If you’re a Debian user you’ll be glad to know there is already a package containg fala. Well I hope you’ll find the PDF, DOC festival speech scripts useful. Enjoy

END—–

Convert doc files to plain text (txt) in terminal / console (tty) on GNU / Linux

Sunday, September 20th, 2009

I was looking for a way to convert Microsoft .doc files to plain text (txt) in Linux directly through terminal.
After some lookup in Google Groups I found ANTIWORD! .
Luckily Debian comes even with a package containing the nice nifty program.
Here is the description of antiword – Converts MS Word files to text, PS and PDF
Fun, desciprtion Eh? 🙂 Ain’t it?
There are some other ways to Convert doc files to plain text, for instance you could use the command catdoc , for example to convert simple .doc to .txt file usecatdoc -a whitepaper.doc.
Another way to convert .doc files to .txt mostly used by developers is via the wvware (nothing to do with vmware!:)) utility.
wvware could directly convert it to html. For example:
wvWare file.doc >file.htmlor
wvText file.doc file.txt
.A lot of things I’ll skip here are well explained in the article Viewing Word files at the command line .
END—–