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. 2007I know the future weather
A simply and cool script for the weather forecast. May be even correct
.. thanks to Weather::Underground perl module PERL: #!/usr/bin/perl use Weather::Underground; Continue reading "I know the future weather" Find 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" Stop image hotlinking with Perl
Sometimes there are things, which can bring everyone to the rage accumulation. For example if traffic of the server is exceeded because of hotlinking and it's measured at least in hundreds of megabytes. | So, for me this is only a story about someone else because I'm always using the following script, if the traffic of the server is not unlimited. I've used Perl to convert or resize images, because according my measurements Perl was doing this at least twice as fast as PHP and more qualitatively as PHP (this concerns anyhow PHP4). Only the one weakness can prevent you from using this script - it works with HTTP_REFERER server variable and since some browsers, firewalls or proxies for any reasons don't sending this field to the webserver, you can punish innocent people, who want only to see your images. But the advantages are evident - you can place your images out of the web space and show them only if they has been called from your web site. Lets go on.
Continue reading "Stop image hotlinking with Perl" Many graphic files to one book howto
One day I needed to make a big pdf file from many graphic files. There was no simply solution for this and I wrote this little shell script.
There are several programs, that can convert any file to pdf (for example OpenOffice). But if you have 100 separate files and you want to make a one book from them or print them, it's no so pleasant to do this manually, adding file by file to OpenOffice and then saving as a .pdf or printing. That's why I'm showing you my solution for this. Continue reading "Many graphic files to one book howto" Starting the blog
So ok, I'm starting my own blog now. I had already some articles on my old website and will transfer them later here too.
test geshi
geshi test
SQL: SELECT * FROM anywhere JOIN somewhere ON anywhere.id = somewhere.anywhere_id CPP: #inlcude <iostream> use namespace hello; cout << "no more" << endl; C: #ifdef HAVE_SIGNAL_H static void sighandler(int sig); static void clean_pid(); #endif BASH: MYVAR=`seq 0 0.5 100` for i in $MYVAR; do echo $i; done PHP: <?php require 'MyProject/Db/Connection.php'; use MyProject::DB; use MyProject::DB::Connection as DbConnection; $x = new MyProject::DB::Connection(); $y = new DB::connection(); $z = new DbConnection(); DB::connect(); ?>
(Page 1 of 1, totaling 9 entries)
|
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) |