Wednesday, January 1. 2014Phurple 0.6.0 is out
The most reasonable new functionality - about 30 new Phurple\Client callbacks implemented, which give control over almost any event in the conversation.
Windows PHP users HEADS UP - Windows builds are available now. Besides the extension DLL an appropriate libpurple build is needed, which is available in the sourceforge files section. Continue reading "Phurple 0.6.0 is out"
Posted by Anatol Belski
in C/C++, Linux, PHP5 extentions, Windows
at
17:40
| Comments (0)
| Trackbacks (0)
Thursday, May 23. 2013Upgrading Postfix, Spamassassin and Dovecot on debian squeeze
Having a bit time I've decided to upgrade my mail services running very stable but being a bit too old. Debian squeeze is the oldstable now, so it has Postfix 2.7.1 and Dovecot 1.x by default. Despite wheezy was released shortly, having no time and expressive reason to move the complete server to it, a partial upgrade seemed meaningful to me. So I was going on with the debian backports repo for
BASH: $ aptitude -t squeeze-backports postfix dovecot spamassassin spamc The upgrade went smoothly except that the backports repo has dovecot 2.1 and it had some configure errors. Also note, that you might have to add some other relevant packages to upgrade, like dovecot-pgsql. Continue reading "Upgrading Postfix, Spamassassin and Dovecot on debian squeeze" Monday, May 7. 2012Trick your blog to act like a Wordpress one
Blogging is my little hobbyhorse, however not big enough to excite me. Nevertheless sometimes you feel challenged when some social networks linking professionals in (yes, I'm pointing the finger
![]() Why would one do that obviously half baked thing limiting the RSS syndication to Wordpress only? I don't know, probably it's just politics and therefore the answer isn't really interesting. A more interesting approach would be a possibility to not to play by that rules. And here it is - after a couple of hours playing around I wrote a simple wordpress gateway for my blog. Continue reading "Trick your blog to act like a Wordpress one" Sunday, May 6. 2012A tool for quick c one liners
There is always something to try out when writing c programs. Sometimes you just want to know if a small piece of code works as expected without having to recompile the whole project. I used to write small programs for this, just like
C: #include <stdio.h> int main(void) { printf("%c\n", 127); return 0; } But the more you program c, the more pieces of code you possibly want to try out. And writing all that wrapping stuff around the snippet you actually want to check isn't really productive. Therefore I came to the idea of a small program which would straight forward compile and run a piece of c code. Continue reading "A tool for quick c one liners" Thursday, October 13. 2011Serendipity meets Varnish
I've been using Serendipity for a couple of years and really love it now. But sometimes I wish it could be faster. Different servers tell a difference, but an average generation time for example for one category listing with 15 entries takes about 5 seconds or more. So I couldn't wait any longer, since I've learned Varnish Cache, to toggle it between Serendipity and the end user. Of course, Varnish would limit some blogging features, but the benefits will be worth of that. Sounds interesting? So this article is for you.
Continue reading "Serendipity meets Varnish" Sunday, October 2. 2011SquirrelMail Change Password Plugin
A couple of years ago I've shared my expierience about how to setup virtual mail hosting with Postfix and Dovecot. Some time ago I needed to make that accessible via Web. So, a webmail.
After trying a couple of engines I've decided in favour of SquirrelMail. This worked like a charm with SSL, etc. so the full mailing functionality was available just out of the box. The one thing I was still missing was a possibility to change password. There are already several plugins to achieve the goal, for instance when logging in over LDAP, but nothing could really fit for me. That's because the maildir setup I'm using is non standard. Luckily, the SquirrelMail API is simple and just well documented, so I was able to write a custom change password plugin very fast. Continue reading "SquirrelMail Change Password Plugin" Tuesday, August 23. 2011Varnish Cache now for PHP and from PHP
There is a new PHP extension I've written to work with Varnish. The extension allows interaction from within a PHP script with a running Varnish instance. For now there is a basic useful functionality such as ban URLs or set/get Varnish configuration. There will be more with the time. For now I would give a couple of examples for the extension usage, as there is not really any docs for the extension here.
Continue reading "Varnish Cache now for PHP and from PHP"
Posted by Anatol Belski
in C/C++, Linux, PHP5, PHP5 extentions, PHP7, PHP7 extensions, Web
at
20:34
| Comments (0)
| Trackbacks (0)
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 Anatol Belski
in C/C++, Linux, PHP5, PHP5 extentions
at
21:58
| Comments (75)
| 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 Anatol Belski
in C/C++, Linux, PHP5, PHP5 extentions
at
16: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 Anatol Belski
in C/C++, Linux, PHP5, PHP5 extentions
at
05: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 spamassassin With 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 Anatol Belski
in C/C++, Linux, PHP5, PHP5 extentions
at
15:14
| Comments (35)
| Trackbacks (0)
(Page 1 of 2, totaling 23 entries)
» next page
|
QuicksearchCategories |