Thursday, June 3. 2010Using great Geonames database for geographical data handling
This time I needed some geographical data evaluation for one of my current projects. The data used to be opensource and as possible qualitative and complete. After spending some time in front of the famous search engine window there was a solution:
http://www.geonames.org/ That's the first sentence from the site: The GeoNames geographical database covers all countries and contains over eight million placenames that are available for download free of charge. Geonames is used by number of sites. Besides data it has also web services and code libraries in many programming languages to access them. Continue reading "Using great Geonames database for geographical data handling" Thursday, October 2. 2008Making server side playlist with PHP
Hi again,
whole last week I was mad about hearing music. I've heared tons of mp3's and radio stations over the internet. After a couple of days hearing music at work and at home I was really bored with creating and syncronizing playlists/files. Based on this, I came to the idea to make an online playlist which I would must update only one time and in one place and it would be accessible from anywhere. The idea was easy brougth out with PHP. So just a light reading for you: Continue reading "Making server side playlist with PHP" Friday, August 8. 2008Phurple - per se PHPurple
Hey you all (and me too) web developers. The huge important news today is - now we can send IMs from a script running within a web server - isn't it cool? Only one restriction conditioned by libpurple itself is there - use is definitely safe within CGI environment only. The second important news, as you see from the title - the project was renamed to Phurple. Furthermore there are a couple essential changes I was made as refactoring of the code was written so far.
Became interested? Lets look onto most important points in the changelog: Continue reading "Phurple - per se PHPurple"
Posted by Anatoliy Belsky
in C/C++, Linux, PHP5, PHP5 extentions
at
23:58
| Comments (71)
| Trackbacks (0)
Tuesday, July 1. 2008PHPurple v0.3 alpha released
So, new PHPurple version was issued yesterday and is downloadable from sf.net. What's inside:
* PurpleAccount::isConnecting() added * PurpleAccount::getUserName() added * PurpleAccount::getPassword() added * PurpleClient::deleteAccount() added * PurpleClient::findAccount() added * PurpleClient::addAccount returns now a PurpleAccount instance (but was null) * PurpleClient::authorizeRequest() added The most interesting thing there is of course the remote client authorization. Continue reading "PHPurple v0.3 alpha released"
Posted by Anatoliy Belsky
in C/C++, Linux, PHP5, PHP5 extentions
at
18:53
| Comments (19)
| Trackbacks (0)
Saturday, May 31. 2008PHPurple v0.2 alpha released
Today I've maked the second PHPurple release and changed it's status to alpha. The changes, came into it, are:
* fixed zts compatibility * implemented the loopHeartBeat method * the runLoop method was changed to set the heartbeat interval * fixed memory leak on empty alias * purple.debug_enabled is now boolean The most interesting on this release is the PurpleClient::loopHeartBeat() story, which is of course implemented with g_timeout_add. Take a look at the new example script to see how it works. Continue reading "PHPurple v0.2 alpha released"
Posted by Anatoliy Belsky
in C/C++, Linux, PHP5, PHP5 extentions
at
07:44
| Comments (3)
| Trackbacks (0)
Friday, May 2. 2008Postfix+Spamassassin
Referencing my previous article about the mali server configuration, I'm continuing with spam and antivirus scanners setup. On my Debian box i'm installing the following:
BASH: user@host~$ apt-get install spamassassinWith this groups spamd and clamav are automatically created. Before you start, keep in mind - if something goes wrong, allways check the /var/log/mail.* files. Continue reading "Postfix+Spamassassin" Wednesday, March 12. 2008Domains avaliability checker
About a month ago I've written a simple domain checker, which is using whois.net to get the domains availiable. The main goal was to find free 3-symbols domains.
BASH: #!/bin/sh if [ $# -lt 1 ] then echo "usage: `basename $0` extension Check domains avaliability examples: `basename $0` com "; exit 2; fi EXT=$1; LAST_FILENAME=/tmp/dc_$USER$EXT.last if [ -f "$LAST_FILENAME" ]; then LAST_DOMAIN=`cat $LAST_FILENAME`; fi for DOMAIN in {{0..9},{a..z},-}{{0..9},{a..z},-}{{0..9},{a..z},-} do if [ "$DOMAIN" \< "$LAST_DOMAIN" ]; then continue; fi trap "echo $DOMAIN > $LAST_FILENAME;exit;" SIGHUP SIGINT SIGTERM STATUS_STRING=`wget -qO - http://www.whois.net/whois_new.cgi\?d\=$DOMAIN\&tld\=$EXT | grep 'Status'` echo "$STATUS_STRING" | grep 'free' && echo "$DOMAIN.$EXT" >> ~/domains_found_$EXT.txt && echo "the domain is free: $DOMAIN.$EXT" | mail -c my@mail.com -s "free domain" other@mail.com sleep 7 done The thing is very simple and the results can be kept on. Additionally it sends mail messages about each found domain. Lets see, what it brought for the .de domains ( about 9000 free domains was found Continue reading "Domains avaliability checker" Sunday, March 2. 2008PHPurple 0.1.0 pre-alpha
The first pre-alpha is released and can be downloaded at http://sourceforge.net/projects/phpurple/. The common documentation I've started to make was placed to http://phpurple.rubay.de/.
The main features implemented are: - send and recieve IMs - fully implemented account dsn like string - ability to make account specific settings - basic work with buddy, buddy group and buddy list Continue reading "PHPurple 0.1.0 pre-alpha"
Posted by Anatoliy Belsky
in C/C++, Linux, PHP5, PHP5 extentions
at
16:14
| Comments (35)
| Trackbacks (0)
Friday, February 29. 2008Building static executables on Linux
An interesting question I had to answer a couple months ago was - how could I compile an executable statically, so then it works on various linux distributions without the need to install some additional libs. Of course, such the executables are bigger as that, which was compiled in order to use the dynamic libs. But if one wanna to have an independent production executable, this is what one could need.
So, I will explain the thing with the help of an example program, which uses ncurses. First I'm creating the project dir, for example: BASH: user@host~$ mkdir ~/programming/static_test user@host~$ cd ~/programming/static_test Continue reading "Building static executables on Linux" Sunday, January 20. 2008Postfix + Dovecot SMTP and IMAP on Debian Etch
Yesterday I was configuring the mail server on my hosting. Because I'm mostly doing programming, not administration, I'm writing this notes which are serving as a simple how to, if I must do it once more in a couple of years.
In spite of the fact I've done all on Debian, all the described things schould work on some other Linux distribution as well. First install Postfix and Dovecot The configuration will fulfill the following points:
Continue reading "Postfix + Dovecot SMTP and IMAP on Debian Etch" Saturday, January 12. 2008phpurple new oo design,
and so it will be in the future ...
Namely, i had the excellent oo design suggestion from the Alexey on the pecl mailing list (and it is better, than I could invent), and it works fully for php 5.3 and unfortunately partly for php 5.2. So lets take a look on it ... just get the latest version ... CODE: user@host~# svn co https://phpurple.svn.sourceforge.net/svnroot/phpurple/trunk phpurple
Continue reading "phpurple new oo design, "
Posted by Anatoliy Belsky
in C/C++, Linux, PHP5, PHP5 extentions
at
19:43
| Comments (0)
| Trackbacks (0)
Monday, December 24. 2007phpurple
Some time ago i've started to write the binding for the libpurple, the im lib. About 3-4 weeks ago i had a simple functional implementation, which i've presented on php pecl and libpurple mailing lists. Subsequently i've completely revised the whole thing to be OO and would present it again. There is the same minimal functionality implemented, but all is OO. So, lets begin. First install the php development package and get the code:
CODE: user@host~# svn co https://phpurple.svn.sourceforge.net/svnroot/phpurple/trunk phpurple Continue reading "phpurple"
Posted by Anatoliy Belsky
in C/C++, Linux, PHP5, PHP5 extentions
at
19:39
| Comments (20)
| Trackbacks (0)
Sunday, December 23. 2007Find files with appointed size from command line
If you have a hosting, you usually have limited disk capacity on it. Some times there are file managers in the hosting control panel, some times not. Here I will explain how to get disk space used, if your hosting control panel has no file manager. | So, each GNU system always has two built-in commands to determine the disk and file space usage. They are 'du' and 'df'. Because most hostings working with GNU based operating systems like BSD or Linux, we have a right to suppose, that we have ssh login and aforementioned commands available on it. If it's so on your hosting, read further
Continue reading "Find files with appointed size from command line" Software MIDI synthesizer for SuSE
I'm a midi fan, but since I have a soundcard without the ability to load soundfonts in the memory, I looked constantly for a solution, which will make possible to listen midi. And I found timidity.
| So, the ability to listen midi files means at the same time the ability to edit midi files, and that's exactly what I'm pressing for. I've tried to play midi with timidity, and the result exceeded all my expectations. But the first difficulty for me was - not all sounds was on the right place or was missing at all. So first what I needed was a good midi map and soundfonts. First I've searched SuSE root tree and found some things under /usr/share/sounds/sf2, but their quality was not sufficiently even for purposes of listening and they was incomplete. Than I've found some really good soundfonts there (ftp://ftp.lysator.liu.se/pub/awe32), they have much fewer "gaps" and can be already used, but I don't know if they are completely GPL friendly. Finally, when I found two solutions - the timidity rpm from Arklinux and freepats (SuSE recommended), that containing all complete midi maps and all the soundfonts needed, I've understood how great fits the timidity for midi playing. And now I'll tell you, how to make a software midi synthesizer with timidity. Continue reading "Software MIDI synthesizer for SuSE" aMule daemon for SuSE
aMuleis a very comfortable p2p client. For Linux it has even the daemon aMuled and the text style interface aMuleCMD, which means a great solution for the remote control. | First install amule (with yast apt or whatever you use) or download aMule here http://www.amule.org/ and compile it. Don't forget to create or edit /home/username/.aMule/amule.conf.
Continue reading "aMule daemon for SuSE"
(Page 1 of 2, totaling 16 entries)
» next page
|
CategoriesQuicksearchTop ExitsTop Referrersaimtrust.com (292)
www.google.com (180) www.netvibes.com (110) www.google.co.in (71) theinvestblog.com (44) www.google.de (38) codingforums.com (35) theblogmoney.com (24) www.google.com.mx (22) phurple.rubay.de (20) |