<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-19720216</atom:id><lastBuildDate>Thu, 20 Nov 2008 14:50:47 +0000</lastBuildDate><title>Svilen's Tech Blog</title><description></description><link>http://blog.svilen.com/</link><managingEditor>noreply@blogger.com (Svilen Spasov)</managingEditor><generator>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-6159964828858016932</guid><pubDate>Fri, 13 Jun 2008 11:45:00 +0000</pubDate><atom:updated>2008-06-13T15:01:48.754+03:00</atom:updated><title>In an absolute world</title><description>It's the first and last time I am playing blogger games ever and it's because &lt;a href="http://vsepomniche.blogspot.com/2008/06/in-absolute-world.html"&gt;Petya&lt;/a&gt; challenged me.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hmm... let me see what should an absolute world be.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;- only MAC computers available&lt;/div&gt;&lt;div&gt;- no managers/team leaders with unworkable requests all the time&lt;/div&gt;&lt;div&gt;- women with no timeframe restrictions for having sex&lt;/div&gt;&lt;div&gt;- free Mazda RX-8 with a full tank on every corder&lt;/div&gt;&lt;div&gt;- unrestricted joint and coffee shops (Deen Haag's affect ... )&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And now it's my turn - &lt;a href="http://genchopencho.blogspot.com/"&gt;Evgeni&lt;/a&gt;,&lt;a href="http://suncreation.org/gamar/"&gt; Genadi&lt;/a&gt; show me your worlds. :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2008/06/in-absolute-world.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-7100977168857120423</guid><pubDate>Thu, 15 May 2008 08:40:00 +0000</pubDate><atom:updated>2008-05-15T12:18:12.771+03:00</atom:updated><title>SWFUpload &amp; Sessions</title><description>Have you tried &lt;a href="http://www.swfupload.org/"&gt;SWFUpload&lt;/a&gt;?&lt;div&gt;It's cool flash uploader which is ideal for uploading big files (over 5-10MB) and having visual status about how much it's left.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Everything seems fine from the demos, etc. but! Yeah there is one clause that I figured out by myself while trying to use the tool in Drupal.&lt;/div&gt;&lt;div&gt;If you want to use the &lt;a href="http://www.swfupload.org/"&gt;SWFUpload&lt;/a&gt; in restricted areas with scripts that require sessions (e.g. cookie sessions) you will fall into the hole.&lt;/div&gt;&lt;div&gt;For solving the issue add session read from $_GET also cause under Safari/Firefox/MAC OS X; Firefox/Linux the &lt;a href="http://www.swfupload.org/"&gt;SWFUploader&lt;/a&gt; won't pass any cookies the the "upload.php" script.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Example solution for drupal:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;if (isset($_GET['fmauthsessid']) {&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;if ($_GET['fmauthsessid']) {&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;$_COOKIE[session_name()] = $_GET['fmauthsessid'];&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;$key = $_GET['fmauthsessid'];&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;else {&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;if (!isset($_COOKIE[session_name()])) {&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;$user = drupal_anonymous_user();&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;return '';&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Put this in the beginning of sess_read() in includes/session.inc&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;More experience lessons will be comming these days.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2008/05/swfupload-sessions.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-3025490798573022103</guid><pubDate>Wed, 12 Mar 2008 11:42:00 +0000</pubDate><atom:updated>2008-03-14T16:44:48.425+02:00</atom:updated><title>Wanna send email to Hotmail.com from PHP mail()? SUX...</title><description>Hello everyone,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I know you've noticed that I am not quite often blogging, but I am and will try to post interesting tech stuff here.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Today's topic: Sending email to Hotmail account from PHP.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Sounds easy. Some of will say "just use PHP's mail() function with correct headers". Yeah, but not. :)&lt;/div&gt;&lt;div&gt;I read almost all posts on this topic around the net with no success. So finally I started trying and trying ... after the 5th or 6th hour (God bless I started in the morning of the day else I would probably throw my MacBook out of the window) I managed to send emails to Hotmail successfully!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hints:&lt;/div&gt;&lt;div&gt;1) Do NOT put any "a href" tags in the email&lt;/div&gt;&lt;div&gt;2) Put ONLY email address in the TO: and FROM: headers of the email&lt;/div&gt;&lt;div&gt;If you do one of the above your email won't even be in the Junk!&lt;/div&gt;&lt;div&gt;3) Do NOT send email from address like: no_reply@domain.com or noreply@domain.com&lt;/div&gt;&lt;div&gt;or it will go to Junk! folders in Hotmail accounts&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That's it! Enjoy! :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ouh, I forgot to mention that I wanted to send HTML emails. ;-)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2008/03/wanna-send-email-to-hotmailcom-from-php.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-5747280994704680716</guid><pubDate>Fri, 11 Jan 2008 10:44:00 +0000</pubDate><atom:updated>2008-01-11T13:04:45.246+02:00</atom:updated><title>Looking for Dedicated Hosting Provider?</title><description>As many of you may know I do use dedicated server for 3 years by now. I started with &lt;a href="http://www.meganetserve.com/"&gt;MegaNetServe&lt;/a&gt; and I was satisfied till the previous year (2007) when they started to have frequently network downtimes with no reason or at least they didn't gave one.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now I moved to &lt;a href="http://www.aplus.net/"&gt;Aplus&lt;/a&gt; and I can strongly recommend you them. Becides a value dedicated server you can get Plesk Control Panel with licence for 30 domains for no additional costs, which is great!&lt;/div&gt;&lt;div&gt;Plesk can save you a lot of time configuring the whole machine's services.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;No, I haven't experienced a long term partnership with them by guys from &lt;a href="http://www.mysqlperformanceblog.com/"&gt;MySQL Performance Blog&lt;/a&gt; are very pleased with Aplus for years.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Try them - &lt;a href="http://www.aplus.net/"&gt;www.aplus.net&lt;/a&gt;! ;-)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You will thank me later. :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2008/01/looking-for-dedicated-hosting-provider.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-1119707384277250174</guid><pubDate>Thu, 20 Dec 2007 08:28:00 +0000</pubDate><atom:updated>2007-12-20T10:30:06.526+02:00</atom:updated><title>Why not Microsoft?</title><description>It's simple. Because of &lt;a href="http://www.techcrunch.com/2007/12/19/microsofts-car-product-in-the-wild/"&gt;this&lt;/a&gt;. :))&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Very nice M$ car indeed.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2007/12/why-not-microsoft.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-7591851367727662250</guid><pubDate>Tue, 20 Nov 2007 18:02:00 +0000</pubDate><atom:updated>2007-11-20T20:18:32.155+02:00</atom:updated><title>PHP advice</title><description>As a PHP developer some of the important things in my work are tools. Yeah, tools read more about them &lt;a href="http://onemonthapp.com/archives/2007/10/21/20-tools-for-web-application-development"&gt;here&lt;/a&gt;.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then you might want to take a look at these &lt;a href="http://reinholdweber.com/?p=3"&gt;PHP optimization tips&lt;/a&gt;. Believe me you won't regret. :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2007/11/php-advice.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-186210600798447651</guid><pubDate>Wed, 14 Nov 2007 00:47:00 +0000</pubDate><atom:updated>2007-11-14T03:10:32.494+02:00</atom:updated><title>How to play .flac files in iTunes</title><description>Everybody that knows me personally is aware that I am an Apple fan, expecially &lt;a href="http://www.apple.com/macosx/"&gt;Mac OS X&lt;/a&gt; one.&lt;div&gt;I bought my first Mac laptop 2 years ago and an year ago I had a need to play &lt;a href="http://flac.sourceforge.net/"&gt;FLAC&lt;/a&gt; music files on my laptop.&lt;/div&gt;&lt;div&gt;Yes it was possible, but as much as I searched for a good &lt;a href="http://www.apple.com/macosx/"&gt;OS X&lt;/a&gt; music player I couldn't find one better than &lt;a href="http://www.apple.com/itunes/download/"&gt;iTunes&lt;/a&gt;. That's why I needed &lt;a href="http://www.apple.com/itunes/download/"&gt;iTunes&lt;/a&gt; to play &lt;a href="http://flac.sourceforge.net/"&gt;FLAC&lt;/a&gt; files.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Finally I found it! :) Although Apple are not going to make it cause they want us to use their &lt;a href="http://en.wikipedia.org/wiki/Apple_Lossless"&gt;ALAC&lt;/a&gt; format.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So here's how you can make it work for you:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. Exit all iTunes and Quicktime applications&lt;/div&gt;&lt;div&gt;2. Download &lt;a href="http://downloads.xiph.org/releases/xiph-qt/"&gt;xiph-qt-0.1.8.dmg&lt;/a&gt;, &lt;a href="http://people.xiph.org/~arek/flac_import/"&gt;flac_import_0.5b1_p0.1.dmg&lt;/a&gt;, &lt;a href="http://people.xiph.org/~arek/flac_import/"&gt;set-OggS-0.1.dmg&lt;/a&gt;&lt;/div&gt;&lt;div&gt;3. Drag &lt;span class="Apple-style-span" style="font-style: italic;"&gt;XiphQT.component&lt;/span&gt; (xiph-qt-0.1.8.dmg) to &lt;span class="Apple-style-span" style="font-style: italic;"&gt;/Library/Components/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;4. Drag &lt;span class="Apple-style-span" style="font-style: italic;"&gt;FLACImport.component&lt;/span&gt; (flac_import_0.5b1_p0.1.dmg) to &lt;span class="Apple-style-span" style="font-style: italic;"&gt;/Library/QuickTime/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;5. Drag &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Clear OggS.app&lt;/span&gt; and &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Set OggS.app&lt;/span&gt; (set-OggS-0.1.dmg) to your &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Applications&lt;/span&gt; folder&lt;/div&gt;&lt;div&gt;6. Drag you FLAC files and drop them on &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Set OggS.app. &lt;/span&gt;A window will popup to show that all FLAC files have been "converted".&lt;/div&gt;&lt;div&gt;7. Add your "converted" FLAC files to you iTunes&lt;/div&gt;&lt;div&gt;8. Enjoy! :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hope it will work for you, too. :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2007/11/how-to-play-flac-files-in-itunes.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-7052890445355308234</guid><pubDate>Mon, 29 Oct 2007 15:27:00 +0000</pubDate><atom:updated>2007-11-13T03:31:56.669+02:00</atom:updated><title>The End of PHP4</title><description>While thinking of installing a new PHP5 on a one of my new Windows servers (don't ask why Windows :) I went through the &lt;a href="http://www.php.net/"&gt;php.net&lt;/a&gt;'s announcements "PHP 4 end of life announcement".&lt;div&gt;Zend Team will shut down PHP4's development - Finally! :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now I hope all hosting provider out there will switch their f*****g server to PHP5 and we all will bless them for this. :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Go ahead!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2007/10/php4-end.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-8473417553618010236</guid><pubDate>Fri, 05 Oct 2007 19:04:00 +0000</pubDate><atom:updated>2007-10-05T22:06:21.788+03:00</atom:updated><title>За Б. Шопов :)</title><description>&lt;u&gt;Да започваме да&lt;/u&gt;, &lt;a href="http://spisanie.cc/nb/?cat=27" title="яицазимитпо лъгуг"&gt;яицазимитпо лъгуг&lt;/a&gt;, &lt;u&gt;говорим на&lt;/u&gt;,&lt;a href="http://spisanie.cc/nb/?cat=27" title="яицазимитпо лъгуг"&gt;яицазимитпо лъгуг&lt;/a&gt;, &lt;u&gt;марсиански&lt;/u&gt;. &lt;a href="http://spisanie.cc/nb/?cat=27" title="яицазимитпо лъгуг"&gt;яицазимитпо лъгуг&lt;/a&gt;, &lt;u&gt;край.&lt;/u&gt;&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2007/10/blog-post.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-4725462721941287069</guid><pubDate>Fri, 03 Aug 2007 12:30:00 +0000</pubDate><atom:updated>2007-08-03T15:42:33.982+03:00</atom:updated><title>MySQL on road</title><description>As I am on the MySQL topic these days I found (why I wasn't already...?!?) this &lt;a href="http://www.mysqlperformanceblog.com"&gt;mysql performance blog&lt;/a&gt;.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Once again I convinced myself that using MySQL in all kind of projects is good choice ... and read this &lt;a href="http://www.mysqlperformanceblog.com/2006/10/16/should-mysql-and-web-server-share-the-same-box/"&gt;post&lt;/a&gt;. It is clear that using different servers for different services, e.g. separate Web server from MySQL server, is a very very good decision and we will work on this for &lt;a href="http://databg.svilen.com"&gt;databg.svilen.com&lt;/a&gt;. Plus installing and using &lt;a href="http://www.sphinxsearch.com/"&gt;Sphinx&lt;/a&gt; full-text search engine.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Wish me luck. :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2007/08/mysql-on-road.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-2030791825829254225</guid><pubDate>Wed, 25 Jul 2007 21:52:00 +0000</pubDate><atom:updated>2007-07-26T00:52:41.100+03:00</atom:updated><title>Back To MySQL</title><description>As I am working very hard this summer I decided to blog more from now on...&lt;br /&gt;&lt;br /&gt;So while moving to the latest project I have in my task list I decided to code it back with MySQL as backend DB. I started converting all PostgreSQL tables/data and it turned out that it was a simple task. Time consuming but simple and I convinced myself one more time that simple is better e.g. MySQL is better. :)&lt;br /&gt;&lt;br /&gt;What do you think?&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2007/07/back-to-mysql.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-117205563285683764</guid><pubDate>Wed, 21 Feb 2007 10:58:00 +0000</pubDate><atom:updated>2007-02-21T13:00:32.920+02:00</atom:updated><title>Jobs vs. Gates</title><description>Recently I bought a new MacBook. It's incredible. I admire Apple how they make their products. Those guys have thought almost of everything that man can want from their new notebook. :)&lt;br /&gt;&lt;br /&gt;It has a remote control, too. So very much cool. :) I will post some photos tomorrow or so, but before that look at this funny video about Bill Gates &amp;amp; Steve Jobs :).&lt;br /&gt;&lt;br /&gt;http://www.youtube.com/watch?v=qHO8l-Bd1O4&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2007/02/jobs-vs-gates.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-116853384923961554</guid><pubDate>Thu, 11 Jan 2007 16:39:00 +0000</pubDate><atom:updated>2007-01-11T18:44:09.296+02:00</atom:updated><title>PHP &amp; XML</title><description>Have you ever tried using XML in your PHP applications?&lt;br /&gt;&lt;br /&gt;It's not so easy task using PHP4. I definitely understood that yesterday when I tried to use the PHP's internal XML parser.&lt;br /&gt;Why TF (The Fuck) it doesn't returns a multi-dimentional array build on the XML's data?&lt;br /&gt;Insted of this PHP's XML parser returns an one-level array with all the tags. Gosh that's awful. :)&lt;br /&gt;&lt;br /&gt;Finally I have to made my own class to handle XML files. I'm sick of sucking PHP software. :)&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2007/01/php-xml.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-116802079515252069</guid><pubDate>Fri, 05 Jan 2007 18:06:00 +0000</pubDate><atom:updated>2007-01-05T20:15:52.076+02:00</atom:updated><title>CC Fraud</title><description>Finally, it catched me, too. :)&lt;br /&gt;&lt;br /&gt;Yesterday while I was checking my online bank account I found out that there were some transactions from Microsoft Adcenter, which weren't mine!&lt;br /&gt;&lt;br /&gt;Oh, god! Microsoft?&lt;br /&gt;&lt;br /&gt;I've immediately called Microsoft Adcenter's Support and they admitted they fault.&lt;br /&gt;"What the fuck?" will say one of my colleague. Is Microsoft credit card verification system so bad?&lt;br /&gt;Or they don't have such at all. :) I guess it's the second reason.&lt;br /&gt;&lt;br /&gt;At least how can someone use my credit card and they hadn't check him by phone before making a charge to the credit card.&lt;br /&gt;Bad, bad for them.&lt;br /&gt;&lt;br /&gt;Hope Google's Anti-Fraud System is better. I'm using Adwords. :)&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2007/01/cc-fraud.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-116346951707854088</guid><pubDate>Tue, 14 Nov 2006 01:52:00 +0000</pubDate><atom:updated>2006-11-14T03:58:37.096+02:00</atom:updated><title>Freelance Projects</title><description>So working as a freelancer is not so ugly. :)&lt;br /&gt;Finally I have enough free time for my friends and family.&lt;br /&gt;&lt;br /&gt;These days I had to add new MSSQL db layer to my framework. All went fine and I did it in no time.&lt;br /&gt;hm... wasn't thinking that using my frame will save me so much time.&lt;br /&gt;&lt;br /&gt;Tomorrow I am going to code some project for google adwords api. Should be interesting. ;-)&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/11/freelance-projects.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-116176735814462638</guid><pubDate>Wed, 25 Oct 2006 09:02:00 +0000</pubDate><atom:updated>2006-10-25T12:09:18.156+03:00</atom:updated><title>My Framework</title><description>As I decided to leave my ex-company I started to freelance.&lt;br /&gt;Now I'm working on my own framework. I tried Zend's framework, but unfortunately it work only on PHP5 platforms and PDO enabled modules for DB access.&lt;br /&gt;&lt;br /&gt;I need something universal. Some of the projects are hosted on PHP4 platforms that's why I can't use those different PHP5 frameworks that have come up these months.&lt;br /&gt;&lt;br /&gt;Anyway, I always prefer to use my own code. :)&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/10/my-framework.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-115626379015559577</guid><pubDate>Tue, 22 Aug 2006 15:09:00 +0000</pubDate><atom:updated>2006-08-22T19:23:10.230+03:00</atom:updated><title>work on new payment system</title><description>I am working on a new payment system for my current company.&lt;br /&gt;It should work with multiple payment gateways (e.g. Worldpay, Paypal) and be easily extensible.&lt;br /&gt;&lt;br /&gt;Till now I've coded a couple of PHP classes and all seems fine, although there are some hindrances.&lt;br /&gt;&lt;br /&gt;Hope I will release it soon :)&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/08/work-on-new-payment-system.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-115625904288146401</guid><pubDate>Tue, 22 Aug 2006 14:59:00 +0000</pubDate><atom:updated>2006-08-22T18:04:02.916+03:00</atom:updated><title>http://databg.svilen.com fully automated</title><description>After moving http://databg.svilen.com to a new server, collocated in Bulgaria, I started coding the automated crawl and update scripts.&lt;br /&gt;&lt;br /&gt;Finally all is done and set. Now this search engine is working all alone, without any support from me. :)&lt;br /&gt;&lt;br /&gt;Hope users will like it more and more since the database will be fully updated once a week.&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/08/httpdatabgsvilencom-fully-automated.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-115555333118790455</guid><pubDate>Mon, 14 Aug 2006 10:33:00 +0000</pubDate><atom:updated>2006-08-14T14:02:11.210+03:00</atom:updated><title>Lucene Search</title><description>Zend Framework has one great module called Zend Search Lucene, which I'm going to try for a new project :) :&lt;br /&gt;&lt;br /&gt;"Zend_Search_Lucene is a general purpose text search engine written entirely in PHP 5. Since it stores its index on the filesystem and does not require a database server, it can add search capabilities to almost any PHP-driven website. Zend_Search_Lucene supports the following features:&lt;br /&gt;&lt;br /&gt;Ranked searching - best results returned first&lt;br /&gt;&lt;br /&gt;Many powerful query types: phrase queries, wildcard queries, proximity queries, range queries and more [5]&lt;br /&gt;&lt;br /&gt;Search by specific field (e.g., title, author, contents)"&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/08/lucene-search.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-115443348490763734</guid><pubDate>Tue, 01 Aug 2006 11:50:00 +0000</pubDate><atom:updated>2006-08-01T14:58:04.950+03:00</atom:updated><title>Zend Framework</title><description>Playing around these days with Zend Framework I found very useful modules, except controllers, views and so.&lt;br /&gt;&lt;br /&gt;People from Zend have made a very good RewriteRoute module.&lt;br /&gt;It allows you to use URIs like http://mydomain.com/section/action/var1/key1/var2/key2, which are very good for SEO (Search Engine Optimizations).&lt;br /&gt;&lt;br /&gt;Zend Db and it's submodules are great, too. They present the DB as an object (many table objects), which you can manipulate with their methods (insert, delete, select, update...).&lt;br /&gt;I want to try them for obicham-te.com. Seems that this will make me work against time. We'll see :)&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/08/zend-framework.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-115435130106949110</guid><pubDate>Mon, 31 Jul 2006 13:01:00 +0000</pubDate><atom:updated>2006-07-31T16:08:21.130+03:00</atom:updated><title>Obicham-te.com</title><description>Some time ago I wanted to build a dating website, so I registered obicham-te.com&lt;br /&gt;&lt;br /&gt;The time has come! :) My friend and I started to examine what we would need about such a website.&lt;br /&gt;Mainly we will use Mysql &lt;-&gt; XMPP Server &lt;-&gt; PHP driven website&lt;br /&gt;Why XMPP? Because it's something new &amp; interesting &amp; easy to recreate in future.&lt;br /&gt;&lt;br /&gt;We've choosen Djabberd (http://www.danga.com/djabberd/ - Perl XMPP server) &amp; Zend Framework for base tools.&lt;br /&gt;&lt;br /&gt;Till now I have excellent observations on Zend Framework and these days will start coding a XMPP module.&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/07/obicham-tecom.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-115409012339615066</guid><pubDate>Fri, 28 Jul 2006 12:27:00 +0000</pubDate><atom:updated>2006-07-28T15:35:23.423+03:00</atom:updated><title>PostgreSQL Fulltext Search</title><description>After I decided that mysql's fulltext search is pretty slow I wanted to try PostgreSQL as DB for http://databg.svilen.com&lt;br /&gt;&lt;br /&gt;In my current company we are successfully using PostgreSQL as a Database for our billing and hosting systems and it's perfect!&lt;br /&gt;&lt;br /&gt;So there is a fulltext search extension for PostgreSQL called Tsearch2 (&lt;a href="http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/"&gt;http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/&lt;/a&gt;)&lt;br /&gt;It wasn't so easy to install it. :) Although everyone says it's almost as easy as playing with your *** :)&lt;br /&gt;&lt;br /&gt;Anyway. Finally Tsearch2 is installed.&lt;br /&gt;Test shows that PG isn't much faster and it has no query cache ?!?&lt;br /&gt;&lt;br /&gt;I'm going to revert to MySQL unfortunately.&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/07/postgresql-fulltext-search.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-115390081247793897</guid><pubDate>Wed, 26 Jul 2006 07:36:00 +0000</pubDate><atom:updated>2006-07-26T11:00:12.490+03:00</atom:updated><title>Load Balance</title><description>It's becoming harder and harder to handle databg's on one server only.&lt;br /&gt;I started to look for some load balance scheme.&lt;br /&gt;&lt;br /&gt;Seems that DNS load balance is the easiest way to achieve a load balance and most popular one.&lt;br /&gt;I am going to try it and then will share my experience.&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/07/load-balance.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-115348256995571797</guid><pubDate>Fri, 21 Jul 2006 11:31:00 +0000</pubDate><atom:updated>2006-07-21T14:49:29.966+03:00</atom:updated><title>Free Data.bg Search Engine (http://databg.svilen.com)</title><description>After I tuned up the search engine of http://databg.svilen.com I made a full update of the database.&lt;br /&gt;The new rewritten crawl script is doing fine. I am able to index all files for around 5-6 days.&lt;br /&gt;&lt;br /&gt;Here are my advices about MySQL FULLTEXT SEARCH optimizations based on my experience with the Free Search:&lt;br /&gt;1) try using defult "my-huge.cnf" as mysql config file. It is tuned for server with lots of RAM 1-2GB&lt;br /&gt;&lt;br /&gt;2) play some with "key_buffer" and "key_buffer_size". These values are the most important. I've set them to:&lt;br /&gt;key_buffer = 576M&lt;br /&gt;key_buffer_size = 448M&lt;br /&gt;&lt;br /&gt;3) turn on mysql query cache:&lt;br /&gt;query_cache_size = 64M&lt;br /&gt;&lt;br /&gt;4) try to avoid counting the results from a given fulltext search:&lt;br /&gt;exp.: SELECT count(*) FROM table WHERE MATCH(filename) AGAINST('+keyword' IN BOOLEAN MODE) &gt; 0;&lt;br /&gt;&lt;br /&gt;5) remove any unnecessary characters such as dot, comma from the searched keywords. Remember that mysql fulltext index only words!!!&lt;br /&gt;&lt;br /&gt;6) lower your index size as much as possible. Means that you have to leave only necessary indexes! This is critical as mysql tries to load indexes in RAM before searching and if you have less free RAM memory than your index file you get slow queries&lt;br /&gt;&lt;br /&gt;7) use persistent connections!&lt;br /&gt;&lt;br /&gt;8) use prepared statements if possible. PHP5's PDO supports prepared statements (http://bg.php.net/manual/en/ref.pdo.php)&lt;br /&gt;&lt;br /&gt;That's it! :)&lt;br /&gt;&lt;br /&gt;Although my server gets usually loaded, but I think it's because of the traffic. It's pretty much. WOW!&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/07/free-databg-search-engine.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19720216.post-114362184424986346</guid><pubDate>Wed, 29 Mar 2006 08:42:00 +0000</pubDate><atom:updated>2006-03-29T11:44:04.273+03:00</atom:updated><title>XGL (Linux) vs. Virtue (Mac OS X)</title><description>So what do you think?&lt;br /&gt;&lt;br /&gt;Which one is better? :)&lt;br /&gt;&lt;br /&gt;I personally prefer Virtue. Easier for install and includes everything you may what. Even the biggest idiot can install and use it. No need to know anything specific for your hardware or your system.&lt;br /&gt;&lt;br /&gt;Have tried installing XGL? It's kind a mess. So many things you have to do ... compire, recompire... baf, stuff that not everyone knows and even what to know.&lt;br /&gt;&lt;br /&gt;Buy MAC and make you life easier ;-).&lt;div class="blogger-post-footer"&gt;Atom Feeds &lt;a href="http://blog.svilen.com/atom.xml"&gt;http://blog.svilen.com/atom.xml&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.svilen.com/2006/03/xgl-linux-vs-virtue-mac-os-x.html</link><author>noreply@blogger.com (Svilen Spasov)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item></channel></rss>