<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Work experience</title>
	
	<link>http://experience.masalas.org</link>
	<description>It's all about IT</description>
	<lastBuildDate>Fri, 05 Mar 2010 16:15:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/WorkExperience" /><feedburner:info uri="workexperience" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Cross-browser (x)html testing</title>
		<link>http://feedproxy.google.com/~r/WorkExperience/~3/G1JNlX-Pa4A/</link>
		<comments>http://experience.masalas.org/web/cross-browser-xhtml-testing/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 16:08:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://experience.masalas.org/?p=336</guid>
		<description><![CDATA[So, you&#8217;ve done another great (x)html template from psd? And here comes a headache.  IE7 does not render exactly as it was written in css. Old buggy IE&#8230; So how to test on all general browsers? How to test on IE6, IE7, Firefox Opera browsers using one PC? It&#8217;s not so comfortable to install all [...]]]></description>
			<content:encoded><![CDATA[<p>So, you&#8217;ve done another great (x)html template from psd? And here comes a headache.  IE7 does not render exactly as it was written in css. Old buggy IE&#8230; So how to test on all general browsers? How to test on IE6, IE7, Firefox Opera browsers using one PC? It&#8217;s not so comfortable to install all browsers, or use virtualization such as vmware.</p>
<p>So, there is one great free resource (and a few paid resources) to get browser screen shots. One of my favorite is <a href="http://www.browsershots.org">browsershots.org</a>. It&#8217;s free, until you can wait in a line a few minutes. But it get&#8217;s annoying to wait after small css fix and after waiting to find out that this fix didn&#8217;t worked.</p>
<p><a href="http://experience.masalas.org/wp-content/uploads/browsershots.jpg" rel="lightbox[336]"><img class="aligncenter size-medium wp-image-338" title="browsershots" src="http://experience.masalas.org/wp-content/uploads/browsershots-300x150.jpg" alt="" width="300" height="150" /></a><span id="more-336"></span>So I&#8217;ve found a great solution: there is <a href="http://www.spoon.net">http://www.spoon.net</a> who gives availability to run all major windows browsers from browser. Just install little plugin and go to <a href="http://www.spoon.net/Browsers/">http://www.spoon.net/Browsers/</a>. Here you can run Internet Explorer 8, Internet Explorer 7, and Internet Explorer 6,  Firefox 3.5, Firefox 3 and Firefox 2,  Safari 4, Safari 3, Chrome, Opera 10 and Opera 9 without installing them to your PC.</p>
<p><a href="http://experience.masalas.org/wp-content/uploads/spoon_browsers.jpg" rel="lightbox[336]"><img class="aligncenter size-medium wp-image-339" title="spoon_browsers" src="http://experience.masalas.org/wp-content/uploads/spoon_browsers-300x200.jpg" alt="" width="300" height="200" /></a></p>
<p>Oh, ant spoon.net gives app integration to other websites. Look, you can run Google Chrome from my blog ;)</p>
<p><script type="text/javascript">// <![CDATA[
Spoon_AppName='Chrome';Spoon_MaxPrefetch=10;
// ]]&gt;</script><script src="http://start.spoon.net/render" type="text/javascript"></script></p>
<pre>
</pre>
<p>(somehow it does not work from my blog. And I cannot find support contact. Well at least it works in their page :)<br />
How all spoon stuff works you can read in their <a href="http://www.spoon.net/Developers/">info page.</a></p>
<p>Wish you a painless css hacking!</p>
<img src="http://feeds.feedburner.com/~r/WorkExperience/~4/G1JNlX-Pa4A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://experience.masalas.org/web/cross-browser-xhtml-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://experience.masalas.org/web/cross-browser-xhtml-testing/</feedburner:origLink></item>
		<item>
		<title>Web Application Security</title>
		<link>http://feedproxy.google.com/~r/WorkExperience/~3/NXRAdzLOD3o/</link>
		<comments>http://experience.masalas.org/web/web-application-security/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 10:39:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://experience.masalas.org/?p=328</guid>
		<description><![CDATA[
Every programmer makes mistakes. It especially hurts when security hole was found and used. So it is important to test security before launching a project.
There is really nice and open web security resource on the web. It is called OWASP. It is open, not affiliated with any commercial structure, so its cool and free :)
You [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://experience.masalas.org/wp-content/uploads/owasp.jpg" rel="lightbox[328]"><img class="aligncenter size-medium wp-image-329" title="owasp" src="http://experience.masalas.org/wp-content/uploads/owasp-300x188.jpg" alt="owasp page" width="300" height="188" /></a></p>
<p><a href="http://experience.masalas.org/wp-content/uploads/owasp.jpg" rel="lightbox[328]"></a>Every programmer makes mistakes. It especially hurts when security hole was found and used. So it is important to test security before launching a project.</p>
<p>There is really nice and open web security resource on the web. It is called <cite title="Open Web Application Security Project">OWASP</cite>. It is open, not affiliated with any commercial structure, so its cool and free :)</p>
<p>You can jump and start reading whole security guide here: <a href="http://www.owasp.org/index.php/OWASP_Testing_Guide_v3_Table_of_Contents">OWASP Testing Guide</a>. Have a lucky testing ;)</p>
<img src="http://feeds.feedburner.com/~r/WorkExperience/~4/NXRAdzLOD3o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://experience.masalas.org/web/web-application-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://experience.masalas.org/web/web-application-security/</feedburner:origLink></item>
		<item>
		<title>php file upload</title>
		<link>http://feedproxy.google.com/~r/WorkExperience/~3/G_5WpBgzZgw/</link>
		<comments>http://experience.masalas.org/web/php-file-upload/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 19:11:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://experience.masalas.org/?p=321</guid>
		<description><![CDATA[I had one weird bug recently. I&#8217;ve made &#8220;LOVE&#8221; module for opencart which is working in  http://www.mothereleganza.com. Basically this module is some sort of image gallery.  So i&#8217;ve grabbed default opencart&#8217;s style to add images:

As you can see there are list of allready uploaded images, a file upload form fields and a remove buttons. So, [...]]]></description>
			<content:encoded><![CDATA[<p>I had one weird bug recently. I&#8217;ve made &#8220;LOVE&#8221; module for <a href="http://www.opencart.com/">opencart</a> which is working in  <a href="http://www.mothereleganza.com ">http://www.mothereleganza.com</a>. Basically this module is some sort of image gallery.  So i&#8217;ve grabbed default opencart&#8217;s style to add images:</p>
<p><a href="http://experience.masalas.org/wp-content/uploads/ocart_images.jpg" rel="lightbox[321]"><img class="aligncenter size-medium wp-image-323" title="ocart_images" src="http://experience.masalas.org/wp-content/uploads/ocart_images-300x196.jpg" alt="" width="300" height="196" /></a></p>
<p>As you can see there are list of allready uploaded images, a file upload form fields and a remove buttons. So, If you hit Save button, you get uploaded new images, replaced old images if there are specified files and removed unneeded images. It looks like ease to use interface, but there is one bug: you have as many file uploads as files are uploaded. So after client added 20 images, all upload stuff stopped working. Why? Because PHP limits not only file size, but even a file count. In current server  <strong>max_file_uploads </strong>option was set to 20. So it is possible to upload 20 files at once.</p>
<p>Fast decision was to remove file input fields from uploaded images. It will not be able to replace current image with a new one, but it is not necessary in my case.</p>
<p><a href="http://experience.masalas.org/wp-content/uploads/ocart_love_images.jpg" rel="lightbox[321]"><img class="aligncenter size-medium wp-image-324" title="ocart_love_images" src="http://experience.masalas.org/wp-content/uploads/ocart_love_images-300x217.jpg" alt="" width="300" height="217" /></a></p>
<img src="http://feeds.feedburner.com/~r/WorkExperience/~4/G_5WpBgzZgw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://experience.masalas.org/web/php-file-upload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://experience.masalas.org/web/php-file-upload/</feedburner:origLink></item>
		<item>
		<title>PHP MVC framework</title>
		<link>http://feedproxy.google.com/~r/WorkExperience/~3/WMTPezMluH4/</link>
		<comments>http://experience.masalas.org/web/php-mvc-framework/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 16:02:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://experience.masalas.org/?p=310</guid>
		<description><![CDATA[ When you become higher level than basic PHP coder, you start to ask yourself: do I need to rewrite these common pieces of code again and again? New webapp and again -  I need to implement connection to database, content selection, input validation and use some sort of template system? But its boring! And [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://experience.masalas.org/wp-content/uploads/kohanaphp.jpg" rel="lightbox[310]"><img class="size-medium wp-image-312 alignleft" title="Kohana php framework" src="http://experience.masalas.org/wp-content/uploads/kohanaphp-300x180.jpg" alt="Kohana php MVC framework" width="300" height="180" /></a> When you become higher level than basic PHP coder, you start to ask yourself: do I need to rewrite these common pieces of code again and again? New webapp and again -  I need to implement connection to database, content selection, input validation and use some sort of template system? But its boring! And I&#8217;m to lazy to repeat this again and again. :) And here comes helpful tools, like custom written classes, collection of functions reusable in most projects etc.</p>
<p>But sometimes even these are not enough. So what to do? I suggest you to give a chance to a framework. There are a bunch of these: <a href="http://www.codeigniter.com/">CodeIgniter</a>, <a href="http://cakephp.org/">CakePHP</a>, <a title="Kohana php" href="http://www.kohanaphp.com/">Kohana</a>, <a href="http://www.symfony-project.org/">Symfony</a>, <a href="http://www.yiiframework.com/">Yii</a>, <a href="http://framework.zend.com/">Zend </a>and <a title="top 10 php frameworks." href="http://www.phpframeworks.com/top-10-php-frameworks/">much more!</a> I think <a href="http://www.phpframeworks.com/">http://www.phpframeworks.com/</a> will help you to choose framework for your taste.</p>
<p>Personally I have tried two of them:  CakePHP and Kohana. CakePHP was &#8220;first date&#8221; with a <cite title="Model View Controller">MVC</cite> framework. As I was young and inexperienced, it didn&#8217;t give me a very good impression. Even sample given with documentation didn&#8217;t work. Oh, I even didn&#8217;t understood why I need it. :)</p>
<p>But time passed, and I started to understand &#8211; using MVC is great option building bigger webapps or websites. So I gave another chance to a framework called Kohana.</p>
<p>Kohana is a PHP 5 framework that uses the Model View Controller architectural pattern. It is Originally based on <a href="http://www.codeigniter.com/">CodeIgniter</a>.</p>
<p>Why MVC? Well About MVC you can read here: <a href="http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller">Model-View-Controller</a>. Usually in Model you write database queries, return them to a Controller which handles given data and returns it to a View. In a View goes all data layout or simply &#8211; template. But that&#8217;s not a limit, you even don&#8217;t need to use database sometimes to use MVC and so on. That&#8217;s great when application logic is separated from layout!</p>
<p>So, if you choose to start learning KohanaPHP, begin from great tutorial &#8211; <strong>Kohana 101. </strong>It is tutorial written by Oscar Bajner and shows how to write basic webapp using Kohana PHP framework. You can read it here: <a href="http://dev.kohanaphp.com/wiki/kohana2/Kohana101">kohana 101</a> or Download it here: <a href="http://experience.masalas.org/wp-content/uploads/kohana101v2.pdf">kohana101</a>.</p>
<p>After reading and completing your first web site by yourself, go straight to <a href="http://docs.kohanaphp.com/">Kohana documentation</a> page, here you will get all needed help, also they have informative and helpful <a href="http://forum.kohanaphp.com/">forum</a>.</p>
<p>Okay, Kohanians, off we go&#8230; ;)</p>
<img src="http://feeds.feedburner.com/~r/WorkExperience/~4/WMTPezMluH4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://experience.masalas.org/web/php-mvc-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://experience.masalas.org/web/php-mvc-framework/</feedburner:origLink></item>
		<item>
		<title>Usefull 404</title>
		<link>http://feedproxy.google.com/~r/WorkExperience/~3/g3dIkBDB_aE/</link>
		<comments>http://experience.masalas.org/web/usefull-404/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 14:38:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://experience.masalas.org/?p=300</guid>
		<description><![CDATA[
As I&#8217;ve changed CMS from etomite to wordpress, friendly url&#8217;s are changed a bit. Essentially  shortened URL and removed &#8220;.html&#8221; from the end.
But what to do  with old links? I had two options:

Create redirects to updated URLs
Make use of 404 error page

I&#8217;ve chosen 2nd option, as it is more elegant and requires a few work [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://experience.masalas.org/wp-content/uploads/friendly-url-search.png" rel="lightbox[300]"><img class="size-medium wp-image-304 aligncenter" style="margin-top: 10px; margin-bottom: 10px;" title="friendly url search" src="http://experience.masalas.org/wp-content/uploads/friendly-url-search-300x222.png" alt="friendly url search 404" width="300" height="222" /></a></p>
<p>As I&#8217;ve changed CMS from etomite to wordpress, friendly url&#8217;s are changed a bit. Essentially  shortened URL and removed &#8220;.html&#8221; from the end.</p>
<p>But what to do  with old links? I had two options:</p>
<ol>
<li>Create redirects to updated URLs</li>
<li>Make use of 404 error page</li>
</ol>
<p>I&#8217;ve chosen 2nd option, as it is more elegant and requires a few work &#8211; more automation.</p>
<p>So, I was thinking: how can I redirect users comming from old URLs to new ones? And here I thought &#8211; if link is old one, I get 404. Here I can get that old link and redirect to a new one. Of course that idea is not new, so I&#8217;ve googled a bit and found ready made solution:  <a href="http://archgfx.net/blog/2007/geek/blogging/adding-search-results-to-wordpress-404-pages">Adding Search results to Wordpress 404 pages</a></p>
<p>This is more better than moving automatically, because not all 404&#8217;s would be from old links and if someone mistypes address &#8211; he/she will get search results.</p>
<img src="http://feeds.feedburner.com/~r/WorkExperience/~4/g3dIkBDB_aE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://experience.masalas.org/web/usefull-404/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://experience.masalas.org/web/usefull-404/</feedburner:origLink></item>
		<item>
		<title>Hello World vol. 2</title>
		<link>http://feedproxy.google.com/~r/WorkExperience/~3/5UOvI5j7ssU/</link>
		<comments>http://experience.masalas.org/misc/hello-world-vol-2/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 17:33:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://experience.masalas.org/wp/?p=270</guid>
		<description><![CDATA[
At last I had some free time from my job plus origami plus freelance web projects and renewed this blog. At last I&#8217;ve migrated from etomite to wordpress. It was very painful migration as I was importing from RSS feed, so if you find some mistakes in blog &#8211; inform me ;)
And talking about this [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/oskay/472097903/"><img class="aligncenter" title="Hello world" src="http://farm1.static.flickr.com/194/472097903_b781a0f4f8.jpg" alt="" width="500" height="375" /></a></p>
<p>At last I had some free time from my job plus origami plus freelance web projects and renewed this blog. At last I&#8217;ve migrated from etomite to wordpress. It was very painful migration as I was importing from RSS feed, so if you find some mistakes in blog &#8211; inform me ;)</p>
<p>And talking about this blog &#8211; It was almost dead in recent days. I hope it will arise like phoenix from ashes :) Expect some more web experience articles.</p>
<p>Btw, all RSS subscribers &#8211; I&#8217;ve moves <a href="http://feeds.feedburner.com/WorkExperience">RSS feed</a> to <a href="http://feeds.feedburner.com/WorkExperience">Google feedburner</a>, so please update URL in your feed readers.</p>
<p><a href="http://feeds.feedburner.com/WorkExperience">NEW RSS</a></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.flickr.com/photos/oskay/472097903/</div>
<img src="http://feeds.feedburner.com/~r/WorkExperience/~4/5UOvI5j7ssU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://experience.masalas.org/misc/hello-world-vol-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://experience.masalas.org/misc/hello-world-vol-2/</feedburner:origLink></item>
		<item>
		<title>Ninite – after windows reinstall</title>
		<link>http://feedproxy.google.com/~r/WorkExperience/~3/earZfBDHphE/</link>
		<comments>http://experience.masalas.org/software/ninite-after-windows-reinstall/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 13:51:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://experience.masalas.org/Ninite-after-windows-reinstall.html</guid>
		<description><![CDATA[
Ninite is very cool soft preinstaller. You can select from bunch of apps and simply download installer. This installer will install your selected apps and do it quietly, no &#8220;next&#8217;s&#8221;, no questions, just download and installs. Very useful online resource, when you need to reinstall windows from scratch.
Go to ninite website and start selecting your [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ninite.com/static/jane/img/ninite.jpg" alt="ninite" /></p>
<p>Ninite is very cool soft preinstaller. You can select from bunch of apps and simply download installer. This installer will install your selected apps and do it quietly, no &#8220;next&#8217;s&#8221;, no questions, just download and installs. Very useful online resource, when you need to reinstall windows from scratch.</p>
<p>Go to <a href="http://ninite.com/">ninite</a> website and start selecting your soft ;)</p>
<img src="http://feeds.feedburner.com/~r/WorkExperience/~4/earZfBDHphE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://experience.masalas.org/software/ninite-after-windows-reinstall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://experience.masalas.org/software/ninite-after-windows-reinstall/</feedburner:origLink></item>
		<item>
		<title>Fighting url spam</title>
		<link>http://feedproxy.google.com/~r/WorkExperience/~3/B5jVgpGOXMY/</link>
		<comments>http://experience.masalas.org/admin/fighting-url-spam/#comments</comments>
		<pubDate>Fri, 01 May 2009 11:12:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Admin]]></category>

		<guid isPermaLink="false">http://experience.masalas.org/url-spam-using-spamassasin-URIDNSBL-tutorial.html</guid>
		<description><![CDATA[Recently I&#8217;ve noticed there are lots of spam with just text and URL. This spam passed through spamassassin&#8217;s checks all the time. Good news, there are some fabulous URL block lists. I&#8217;ve used two of them:
SURBL and URIBL
These two checks url block lists, mentioned in message body.
It seemed a bit unclear configuration for me, so [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve noticed there are lots of spam with just text and URL. This spam passed through spamassassin&#8217;s checks all the time. Good news, there are some fabulous URL block lists. I&#8217;ve used two of them:</p>
<p><a href="http://www.surbl.org/" target="_blank">SURBL</a> and <a href="http://www.uribl.com" target="_blank">URIBL</a><br />
These two checks url block lists, mentioned in message body.</p>
<p><span id="more-66"></span>It seemed a bit unclear configuration for me, so here I will write a little tutorial how to enable these tests to spamassassin, and how to test new configuration. Tested on production server, using spamassassin v 3.x.</p>
<p>First, check for init.pre file in spamassassin&#8217;s config directory. The plugin URIDNSBL should be uncommented. Like this:</p>
<div class="dean_ch" style="white-space: nowrap;"><span class="co1"># URIDNSBL &#8211; look up URLs found in the message against several DNS</span><br />
<span class="co1"># blocklists.</span><br />
<span class="co1">#</span><br />
loadplugin Mail::<span class="me2">SpamAssassin</span>::<span class="me2">Plugin</span>::<span class="me2">URIDNSBL</span></div>
<p>And ensure, that plugin really exists. It is file named <small>URIDNSBL.pm</small> in SA plugins directory.</p>
<p>If everything ok &#8211; add to local.cf spamassassin rules:</p>
<div class="dean_ch" style="white-space: nowrap;"><span class="co1"># Url spam check</span><br />
<span class="co1">#</span><br />
urirhssub URIBL_JP_SURBL multi.surbl.org. A <span class="nu0">64</span><br />
body &nbsp; &nbsp; &nbsp;URIBL_JP_SURBL <a href="http://perldoc.perl.org/functions/eval.html"><span class="kw3">eval</span></a>:check_uridnsbl<span class="br0">&#40;</span><span class="st0">&#8216;URIBL_JP_SURBL&#8217;</span><span class="br0">&#41;</span><br />
describe &nbsp;URIBL_JP_SURBL Contains a URL listed in the JP SURBL list<br />
tflags &nbsp; &nbsp;URIBL_JP_SURBL net<br />
score &nbsp; &nbsp; URIBL_JP_SURBL <span class="nu0">1.5</span></p>
<p>urirhssub URIBL_SC_SURBL multi.surbl.org. A <span class="nu0">2</span><br />
body &nbsp; &nbsp; &nbsp;URIBL_SC_SURBL <a href="http://perldoc.perl.org/functions/eval.html"><span class="kw3">eval</span></a>:check_uridnsbl<span class="br0">&#40;</span><span class="st0">&#8216;URIBL_SC_SURBL&#8217;</span><span class="br0">&#41;</span><br />
describe &nbsp;URIBL_SC_SURBL Contains a URL listed in the SC SURBL list<br />
tflags &nbsp; &nbsp;URIBL_SC_SURBL net<br />
score &nbsp; &nbsp; URIBL_SC_SURBL <span class="nu0">0.5</span></p>
<p>urirhssub URIBL_WS_SURBL multi.surbl.org. A <span class="nu0">4</span><br />
body &nbsp; &nbsp; &nbsp;URIBL_WS_SURBL <a href="http://perldoc.perl.org/functions/eval.html"><span class="kw3">eval</span></a>:check_uridnsbl<span class="br0">&#40;</span><span class="st0">&#8216;URIBL_WS_SURBL&#8217;</span><span class="br0">&#41;</span><br />
describe &nbsp;URIBL_WS_SURBL Contains a URL listed in the WS SURBL list<br />
tflags &nbsp; &nbsp;URIBL_WS_SURBL net<br />
score &nbsp; &nbsp; URIBL_WS_SURBL <span class="nu0">1.5</span></p>
<p>urirhssub URIBL_PH_SURBL multi.surbl.org. A <span class="nu0">8</span><br />
body &nbsp; &nbsp; &nbsp;URIBL_PH_SURBL <a href="http://perldoc.perl.org/functions/eval.html"><span class="kw3">eval</span></a>:check_uridnsbl<span class="br0">&#40;</span><span class="st0">&#8216;URIBL_PH_SURBL&#8217;</span><span class="br0">&#41;</span><br />
describe &nbsp;URIBL_PH_SURBL Contains a URL listed in the PH SURBL list<br />
tflags &nbsp; &nbsp;URIBL_PH_SURBL net<br />
score &nbsp; &nbsp; URIBL_PH_SURBL <span class="nu0">1.5</span></p>
<p>urirhssub URIBL_OB_SURBL multi.surbl.org. A <span class="nu0">16</span><br />
body &nbsp; &nbsp; &nbsp;URIBL_OB_SURBL <a href="http://perldoc.perl.org/functions/eval.html"><span class="kw3">eval</span></a>:check_uridnsbl<span class="br0">&#40;</span><span class="st0">&#8216;URIBL_OB_SURBL&#8217;</span><span class="br0">&#41;</span><br />
describe &nbsp;URIBL_OB_SURBL Contains a URL listed in the OB SURBL list<br />
tflags &nbsp; &nbsp;URIBL_OB_SURBL net<br />
score &nbsp; &nbsp; URIBL_OB_SURBL <span class="nu0">1.5</span></p>
<p>urirhssub URIBL_AB_SURBL multi.surbl.org. A <span class="nu0">32</span><br />
body &nbsp; &nbsp; &nbsp;URIBL_AB_SURBL <a href="http://perldoc.perl.org/functions/eval.html"><span class="kw3">eval</span></a>:check_uridnsbl<span class="br0">&#40;</span><span class="st0">&#8216;URIBL_AB_SURBL&#8217;</span><span class="br0">&#41;</span><br />
describe &nbsp;URIBL_AB_SURBL Contains a URL listed in the AB SURBL list<br />
tflags &nbsp; &nbsp;URIBL_AB_SURBL net<br />
score &nbsp; &nbsp; URIBL_AB_SURBL <span class="nu0">1.9</span></p>
<p>urirhssub URIBL_BLACK multi.uribl.com. A <span class="nu0">2</span><br />
body URIBL_BLACK <a href="http://perldoc.perl.org/functions/eval.html"><span class="kw3">eval</span></a>:check_uridnsbl<span class="br0">&#40;</span><span class="st0">&#8216;URIBL_BLACK&#8217;</span><span class="br0">&#41;</span><br />
describe URIBL_BLACK Contains an URL listed in the URIBL blacklist<br />
tflags URIBL_BLACK net<br />
score URIBL_BLACK <span class="nu0">2.0</span></div>
<p>You can adjust scores, to fit your server&#8217;s needs. With such scores, as shown below, in my server simple URL spam messages gets A BIG score (about 20 points).</p>
<p>If you interested what kind of URLs checks these rules &#8211; there is a <a href="http://www.surbl.org/lists.html">list on SURBL website</a></p>
<p><strong>Checking config</strong></p>
<p>To check for typos or other config related errors use <small> lint</small> parameter in SA</p>
<div class="dean_ch" style="white-space: nowrap;">spamassassin &nbsp;lint</div>
<p>To check newly written rules &#8211; get a spam mail with URL, save it as TXT or EML file and execute SA with parameters:</p>
<div class="dean_ch" style="white-space: nowrap;">spamassassin -D &nbsp;lint &lt; spam_mail.eml</div>
<p>At the end of output you should see something like this:</p>
<pre>Content preview:  If diseases show themselves, it is time to click on our
site http://xxx.xxxx.xxx/ If diseases show themselves, it is time
to click on our site http://xxx.xxxx.xxx/ [...]

Content analysis details:   (22.5 points, 4.7 required)

pts rule name              description

0.1 FORGED_RCVD_HELO       Received: contains a forged HELO
0.5 HTML_40_50             BODY: Message is 40% to 50% HTML
0.0 HTML_MESSAGE           BODY: HTML included in message
3.5 BAYES_99               BODY: Bayesian spam probability is 99 to 100%
[score: 1.0000]
1.6 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net
[Blocked - see ]
3.9 RCVD_IN_XBL            RBL: Received via a relay in Spamhaus XBL
[201.235.56.232 listed in zen.spamhaus.org]
0.0 RCVD_IN_PBL            RBL: Received via a relay in Spamhaus PBL
[201.235.56.232 listed in zen.spamhaus.org]
2.0 URIBL_BLACK            Contains an URL listed in the URIBL blacklist
[URIs: xxxx.xxx]
0.5 URIBL_SC_SURBL         Contains a URL listed in the SC SURBL list
[URIs: xxxx.xxx]
1.9 URIBL_AB_SURBL         Contains a URL listed in the AB SURBL list
[URIs: xxxx.xxx]
1.5 URIBL_JP_SURBL         Contains a URL listed in the JP SURBL list
[URIs: xxxx.xxx]
1.5 URIBL_WS_SURBL         Contains a URL listed in the WS SURBL list
[URIs: xxxx.xxx]
1.5 URIBL_OB_SURBL         Contains a URL listed in the OB SURBL list
[URIs: xxxx.xxx]
4.0 AWL                    AWL: From: address is in the auto white-list</pre>
<p>Also you can read my erlier article about <a href="Writing-Spamassassin-custom-rules-howto.html">writing custom rulesets on spamassassin</a></p>
<img src="http://feeds.feedburner.com/~r/WorkExperience/~4/B5jVgpGOXMY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://experience.masalas.org/admin/fighting-url-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://experience.masalas.org/admin/fighting-url-spam/</feedburner:origLink></item>
		<item>
		<title>Backup partition</title>
		<link>http://feedproxy.google.com/~r/WorkExperience/~3/t8E6VB7Xxv8/</link>
		<comments>http://experience.masalas.org/admin/backup-partition/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 17:01:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Admin]]></category>

		<guid isPermaLink="false">http://experience.masalas.org/Backup-entire-partition-in-Linux.html</guid>
		<description><![CDATA[Just a link to remember. If you want to backup your entire partition using dd:
Creating a hard drive backup directly to another hard drive
Also, very useful boot cd with live linux and utility partimage: System rescue CD
]]></description>
			<content:encoded><![CDATA[<p>Just a link to remember. If you want to backup your entire partition using dd:</p>
<p><a href="http://wiki.linuxquestions.org/wiki/Dd#Creating_a_hard_drive_backup_directly_to_another_hard_drive">Creating a hard drive backup directly to another hard drive</a></p>
<p>Also, very useful boot cd with live linux and utility partimage: <a href="http://www.sysresccd.org/Main_Page">System rescue CD</a></p>
<img src="http://feeds.feedburner.com/~r/WorkExperience/~4/t8E6VB7Xxv8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://experience.masalas.org/admin/backup-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://experience.masalas.org/admin/backup-partition/</feedburner:origLink></item>
		<item>
		<title>Regexp generator</title>
		<link>http://feedproxy.google.com/~r/WorkExperience/~3/d8i54nimCJI/</link>
		<comments>http://experience.masalas.org/web/regexp-generator/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 10:26:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://experience.masalas.org/online-regexp-generator.html</guid>
		<description><![CDATA[
In my experience to-do list one of points are &#8220;To know regular expressions better&#8221;. But until I can write regexp with my closed eyes, I use very useful resource on web:
RegExr
P.S. Sorry comments does not work. Something changed in new etomite cms. In a future I should migrate to wordpress I assume :)
Update: Wordpres is [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://experience.masalas.org/wp/wp-content/uploads/regexr.png" rel="lightbox[64]"><img class="size-medium wp-image-116  aligncenter" title="regexr" src="http://experience.masalas.org/wp-content/uploads/regexr-300x178.png" alt="Regexr - regexp generator" width="300" height="178" /></a></p>
<p>In my experience to-do list one of points are &#8220;To know regular expressions better&#8221;. But until I can write regexp with my closed eyes, I use very useful resource on web:</p>
<p><a href="http://gskinner.com/RegExr/" target="_blank">RegExr</a></p>
<p><del datetime="2010-01-21T17:40:46+00:00">P.S. Sorry comments does not work. Something changed in new etomite cms. In a future I should migrate to wordpress I assume :)</del><br />
<strong>Update:</strong> Wordpres is here ;)</p>
<img src="http://feeds.feedburner.com/~r/WorkExperience/~4/d8i54nimCJI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://experience.masalas.org/web/regexp-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://experience.masalas.org/web/regexp-generator/</feedburner:origLink></item>
	</channel>
</rss>
