<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>bloody error &#187; Jeevan</title>
	<atom:link href="http://www.bloodyerror.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bloodyerror.com</link>
	<description>hope something here may help you...</description>
	<lastBuildDate>Thu, 14 Jan 2010 17:29:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MySql Replace word by SQL Query</title>
		<link>http://www.bloodyerror.com/2010/01/mysql-replace-word-by-sql-query/</link>
		<comments>http://www.bloodyerror.com/2010/01/mysql-replace-word-by-sql-query/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 17:27:11 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[replace string]]></category>
		<category><![CDATA[Sql]]></category>
		<category><![CDATA[Update Sql]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=51</guid>
		<description><![CDATA[Do you know that You CAN replace MySql field values by SQL query? it&#8217;s pretty simple. Use update Command with &#8220;replace&#8221; to set value to field:

UPDATE table_name SET table_field = REPLACE(table_field,'replace_string','with_this_string');

Not only this, you can do whole lot of other things without having to write any programes (php, asp etc) to do some trick with [...]]]></description>
			<content:encoded><![CDATA[<p>Do you know that You CAN replace MySql field values by SQL query? it&#8217;s pretty simple. Use update Command with &#8220;replace&#8221; to set value to field:</p>
<pre class="brush: sql;">
UPDATE table_name SET table_field = REPLACE(table_field,'replace_string','with_this_string');
</pre>
<p>Not only this, you can do whole lot of other things without having to write any programes (php, asp etc) to do some trick with MySql DB contents</p>
<blockquote><p>Have a look: <a href="http://dev.mysql.com/doc/refman/5.0/en/string-functions.html" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/string-functions.html</a> (MySql 5+)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2010/01/mysql-replace-word-by-sql-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch Renaming Files on Mac OS X</title>
		<link>http://www.bloodyerror.com/2009/11/batch-renaming-files-on-mac-os-x/</link>
		<comments>http://www.bloodyerror.com/2009/11/batch-renaming-files-on-mac-os-x/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 22:37:59 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Apple Mac]]></category>
		<category><![CDATA[batch rename]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[rename]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[utils]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=38</guid>
		<description><![CDATA[I’ve spent hours looking for an easier way to batch renames files with a sequential number at the end. In Microsoft Windows Operating systems, simply select all files and rename one; that will rename rest of the selected files with Name given and add numbers at the end of file name.
There are few Applications available [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve spent hours looking for an easier way to batch renames files with a sequential number at the end. In Microsoft Windows Operating systems, simply select all files and rename one; that will rename rest of the selected files with Name given and add numbers at the end of file name.</p>
<p>There are few Applications available to do this job, but none comes free (or I looked at the wrong places!). After a little more research, I’ve found that by creating Workflow in Automator could do this job much easily and quickly. Following instructions will help you with creating your own Workflow.</p>
<blockquote><p>Aim: I wanted to create a workflow to get all Files Dropped into it, filter Images only and Rename them with given name.</p></blockquote>
<p><strong>Automator is located in your Application Folder</strong></p>
<ul>
<li>Choose Workflow from Options</li>
<li><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/1.-Create-Workflow.png"><img class="size-medium wp-image-39 alignnone" title="1. Create Workflow" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/1.-Create-Workflow-300x283.png" alt="1. Create Workflow" width="300" height="283" /></a></li>
<li>You will have a Working space on the right and options on the left</li>
<li><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/2.-Your-Workspace.png"><img class="size-medium wp-image-40 alignnone" title="2. Your Workspace" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/2.-Your-Workspace-300x215.png" alt="2. Your Workspace" width="300" height="215" /></a></li>
<li>Choose Files &amp; Folders</li>
<li>From this List, Drag and Drop “Filter Finder items” into your Workspace on the Right
<ul>
<li>You don’t have to do this step and Skip directly to renaming option, unless you want to filter the kind of file types you are renaming. For me, I wanted to rename Only Image files. Following step will explain how to apply filter and choose only images for renaming.</li>
</ul>
</li>
<li><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/3.-Drag-Drop-Filter.png"><img class="alignnone size-medium wp-image-41" title="3. Drag &amp; Drop Filter" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/3.-Drag-Drop-Filter-300x69.png" alt="3. Drag &amp; Drop Filter" width="300" height="69" /></a></li>
</ul>
<ul>
<li>Select kind is image to Filter-out images only</li>
<li><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/4.-Filter-Images-only-to-Rename.png"><img style="border: 0px initial initial;" title="4. Filter Images only to Rename" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/4.-Filter-Images-only-to-Rename-300x106.png" alt="4. Filter Images only to Rename" width="300" height="106" /></a></li>
<li>Drag and Drop “Rename Finder Items” into your Workspace right after the Filter Finder items. Automator will prompt to add a Copy Option to make a Backup before performing renaming action. If you would like to make a Copy of files before renaming them, you could Select Add from the prompt otherwise Select Don’t Add (I wanted to rename, So I selected Don’t Add).</li>
<li><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/5.-Copy-options.png"><img class="alignnone size-medium wp-image-43" title="5. Copy options" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/5.-Copy-options-300x160.png" alt="5. Copy options" width="300" height="160" /></a></li>
<li>Now your Workflow will look alike this</li>
<li><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/6.-After-Adding-Rename-your-workspace.png"><img class="alignnone size-medium wp-image-44" title="6. After Adding Rename, your workspace" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/6.-After-Adding-Rename-your-workspace-300x206.png" alt="6. After Adding Rename, your workspace" width="300" height="206" /></a></li>
<li>From the First Left top dropdown, select “Make Sequential” to batch renames files.</li>
<li><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/7.-Select-Sequential-to-Rename-multiple-Files.png"><img class="alignnone size-medium wp-image-45" title="7. Select Sequential to Rename multiple Files" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/7.-Select-Sequential-to-Rename-multiple-Files-300x138.png" alt="7. Select Sequential to Rename multiple Files" width="300" height="138" /></a></li>
<li>You will be shown totally different options to choose from. From this options choose “Add Numbers to” “new name” and leave the rest default.</li>
<li><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/8.-Sequential-options.png"><img class="alignnone size-medium wp-image-46" title="8. Sequential options" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/8.-Sequential-options-300x101.png" alt="8. Sequential options" width="300" height="101" /></a></li>
<li>Click on the “Options” at the bottom of this flow and tick “Show this action when the workflow runs”</li>
<li><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/9.-Use-Option-to-Show-this-as-a-Dialog-when-Running-this-Workflow.png"><img class="alignnone size-medium wp-image-47" title="9. Use Option to Show this as a Dialog when Running this Workflow" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/9.-Use-Option-to-Show-this-as-a-Dialog-when-Running-this-Workflow-300x124.png" alt="9. Use Option to Show this as a Dialog when Running this Workflow" width="300" height="124" /></a></li>
</ul>
<p>Now, save this workflow somewhere on your Hard drive with your desirable name. Once you saved your Workflow, Save As again as an Application. Simply Files &gt; Save as… and select Application in the Save dialog.</p>
<p><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/10.-Save-As...-Application-to-Make-Executable.png"><img class="alignnone size-medium wp-image-48" title="10. Save As... Application to Make Executable" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/10.-Save-As...-Application-to-Make-Executable-300x227.png" alt="10. Save As... Application to Make Executable" width="300" height="227" /></a></p>
<p>If you want, you can make a shortcut for this Application on your Dock. This way, you can simply drag and Drop the Files into your Dock Icon Directly. Or you can always drop the files on Application (Wherever it is).</p>
<p>When you drop Files, Workflow will begin and filter out all files and select images to rename. Once it’s finished filtering, it will show you the Rename option to enter new name and make other changes before rename.</p>
<p><a href="http://www.bloodyerror.com/wp-content/uploads/2009/11/11.-When-Running-Dialog-will-ask-for-New-name-along-with-other-options.png"><img class="alignnone size-medium wp-image-49" title="11. When Running, Dialog will ask for New name along with other options" src="http://www.bloodyerror.com/wp-content/uploads/2009/11/11.-When-Running-Dialog-will-ask-for-New-name-along-with-other-options-300x149.png" alt="11. When Running, Dialog will ask for New name along with other options" width="300" height="149" /></a></p>
<p>Hope this helps you with what you’ve looking for! There are lot of things you could do with Workflow, do explore and play-around and see what can you do?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2009/11/batch-renaming-files-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP : get Request protocol Http or HTTPS</title>
		<link>http://www.bloodyerror.com/2009/09/php-get-request-protocol-http-or-https/</link>
		<comments>http://www.bloodyerror.com/2009/09/php-get-request-protocol-http-or-https/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 05:51:51 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[protocol]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=37</guid>
		<description><![CDATA[How to get Requested protocol Http or HTTPS in PHP?
This function will return True if HTTPS when called&#8230;
is_https()
{
return strtolower(substr($_SERVER["SERVER_PROTOCOL"],0,5))==&#8217;https&#8217;? true : false;
}
 is_https()
{
return strtolower(substr($_SERVER[&#34;SERVER_PROTOCOL&#34;],0,5))=='https'? true : false;
} 
]]></description>
			<content:encoded><![CDATA[<p><strong>How to get Requested protocol Http or HTTPS in PHP?</strong></p>
<p>This function will return True if HTTPS when called&#8230;</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">is_https()</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">{</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">return strtolower(substr($_SERVER["SERVER_PROTOCOL"],0,5))==&#8217;https&#8217;? true : false;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<pre class="brush: php;"> is_https()
{
return strtolower(substr($_SERVER[&quot;SERVER_PROTOCOL&quot;],0,5))=='https'? true : false;
} </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2009/09/php-get-request-protocol-http-or-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Split &amp; Concat Snow Leopard Error : (-2753) The variable thePanel is not defined</title>
		<link>http://www.bloodyerror.com/2009/09/split-concat-snow-leopard-error-2753-the-variable-thepanel-is-not-defined/</link>
		<comments>http://www.bloodyerror.com/2009/09/split-concat-snow-leopard-error-2753-the-variable-thepanel-is-not-defined/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 02:54:39 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[2753]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[HJSplit]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Split & Concat]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=33</guid>
		<description><![CDATA[* New Version of Split &#38; Contact is Now Available for Mac OS X 10.6 (Snow Leopard) http://www.freebyte.com/hjsplit/#mac
Issue: After updating My Leopard (OS X 10.5) to Snow Leopard (OS X 10.6), Split &#38; Contact started to show this error message:

It seems there won&#8217;t be an update soon to Fix this problem from Developers&#8230; It&#8217;s much [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>* New Version of Split &amp; Contact is Now Available for Mac OS X 10.6 (Snow Leopard) <a href="http://www.freebyte.com/hjsplit/#mac" target="_blank">http://www.freebyte.com/hjsplit/#mac</a></strong></p></blockquote>
<p><strong>Issue: </strong>After updating My Leopard (OS X 10.5) to Snow Leopard (OS X 10.6), Split &amp; Contact started to show this error message:</p>
<p><img class="size-full wp-image-34 alignnone" title="The variable thePanel is not defined (-2753) " src="http://www.bloodyerror.com/wp-content/uploads/2009/09/Split-Concat-Snow-Leopard-Error-2753-The-variable-thePanel-is-not-defined.jpg" alt="The variable thePanel is not defined (-2753) " width="420" height="153" /></p>
<p><span style="text-decoration: line-through;">It seems there won&#8217;t be an update soon to Fix this problem from Developers</span>&#8230; It&#8217;s much easier to use the alternative Split &amp; Contact from freenyte.com.</p>
<p><strong>Solution: </strong>Just Download the Java <em>HJSplir GUI for Java</em>, this will and does work well&#8230; Since it&#8217;s java, there won&#8217;t be a problem with what version of OS X you are suing&#8230;</p>
<h3>Download it at: <a href="http://www.freebyte.com/hjsplit/#java" target="_blank">http://www.freebyte.com/hjsplit/#java</a></h3>
<p><img class="alignleft size-full wp-image-35" title="HJSplit GUI for Java" src="http://www.bloodyerror.com/wp-content/uploads/2009/09/HJSplit-GUI-for-Java.jpg" alt="HJSplit GUI for Java" width="486" height="629" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2009/09/split-concat-snow-leopard-error-2753-the-variable-thepanel-is-not-defined/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ScreenGrabber for Mac</title>
		<link>http://www.bloodyerror.com/2009/08/screengrabber-for-mac/</link>
		<comments>http://www.bloodyerror.com/2009/08/screengrabber-for-mac/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 10:20:01 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[image capture]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[movie preview]]></category>
		<category><![CDATA[screen capture]]></category>
		<category><![CDATA[screen grabber]]></category>
		<category><![CDATA[thumbnail preview]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=28</guid>
		<description><![CDATA[Like many others available in Windows, this is the first one working perfectly (Almost) to capture videos screen shots and create one large image for Preview&#8230; and its FREE.
ScreenGrabber 2.0 is a Mac OS X application for grabbing screen shots at even timeintervals from a movie. Very useful for creating previews, and thumbnails.
Download it From: [...]]]></description>
			<content:encoded><![CDATA[<p>Like many others available in Windows, this is the first one working perfectly (Almost) to capture videos screen shots and create one large image for Preview&#8230; and its <strong>FREE</strong>.</p>
<blockquote><p>ScreenGrabber 2.0 is a Mac OS X application for grabbing screen shots at even timeintervals from a movie. Very useful for creating previews, and thumbnails.</p></blockquote>
<h4>Download it From: <a href="http://www.peylow.se/screengrabber.html" target="_blank">ScreenGrabber 2.0</a></h4>
<div><img class="size-thumbnail wp-image-31 alignnone" title="Main Window" src="http://www.bloodyerror.com/wp-content/uploads/2009/08/main_window-150x150.jpg" alt="Main Window" width="150" height="150" /><img class="size-thumbnail wp-image-30 alignnone" title="Final Output" src="http://www.bloodyerror.com/wp-content/uploads/2009/08/Final_Fantasy_XII_Intro-150x150.jpg" alt="Final Output" width="150" height="150" /><img class="size-thumbnail wp-image-29 alignnone" title="Batch Processing Panel" src="http://www.bloodyerror.com/wp-content/uploads/2009/08/batch_panel-150x150.gif" alt="Batch Processing Panel" width="150" height="150" /></div>
<p><span id="more-28"></span></p>
<p>I&#8217;ve been looking for this long time before I found this by accident! I know there are many different Screen Grabbers to create thumbnail movie previews in Windows environment. After so many hours of search, I gave up and went to classic way to producing sequence of thumbnail images put together in one large image as preview of videos I had..<br />
It&#8217;s a painful and time consuming process. once I was going though some forums, I read some one mention this ScreenGrabber 2 for mac which does what I wanted&#8230; Hope this helps you save some time in searching!&#8230;</p>
<p><img class="alignleft size-full wp-image-32" title="universal" src="http://www.bloodyerror.com/wp-content/uploads/2009/08/universal.gif" alt="universal" width="79" height="50" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2009/08/screengrabber-for-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X: What is my default sudo password (root password)?</title>
		<link>http://www.bloodyerror.com/2009/07/mac-os-x-what-is-my-default-sudo-password-root-password/</link>
		<comments>http://www.bloodyerror.com/2009/07/mac-os-x-what-is-my-default-sudo-password-root-password/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 10:33:25 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Apple Mac]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[root login]]></category>
		<category><![CDATA[root password]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=26</guid>
		<description><![CDATA[By default, OS X doesn’t setup a password for your root login. There are few occasions you may want to access terminal as Super User (su), this will ask for your root password.
It’s very simple to setup root password as long as you have Admin Access (First user created on installation OS X will be [...]]]></description>
			<content:encoded><![CDATA[<p>By default, OS X doesn’t setup a password for your root login. There are few occasions you may want to access terminal as Super User (<span style="color: #800000;">su</span>), this will ask for your root password.</p>
<p>It’s very simple to setup root password as long as you have Admin Access (First user created on installation OS X will be Admin level user).</p>
<ul>
<li>First you will have to logged in as Admin level user</li>
<li>Open your Terminal (Located <span style="text-decoration: underline;"><span style="color: #808080;">Applications/Utilities/Terminal</span></span>)</li>
<li>Type in command: <span style="color: #ff0000;">sudo passwd root</span></li>
</ul>
<p>This command will ask for your su password, at this time it’s only asking you’re admin level user passwords.</p>
<p>Once you entered, terminal will ask for new password for root user twice to verify and update. Remember, if you loose your root password, it’s May not be possible to recover it…</p>
<p>There are other methods for becoming root user or changing root user password. For a full list visit: <a href="http://www.spy-hill.com/~myers/help/apple/EnableRoot.html" target="_blank">http://www.spy-hill.com/~myers/help/apple/EnableRoot.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2009/07/mac-os-x-what-is-my-default-sudo-password-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>! Absolutely FREE Mail Server For your Domain from Google Apps</title>
		<link>http://www.bloodyerror.com/2009/07/absolutely-free-mail-server-for-your-domain-from-google-apps/</link>
		<comments>http://www.bloodyerror.com/2009/07/absolutely-free-mail-server-for-your-domain-from-google-apps/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 17:34:44 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Google mail]]></category>
		<category><![CDATA[mail server]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=24</guid>
		<description><![CDATA[Google launched its Google Apps a while back; it doesn’t seem to hit the spot yet. Many don’t know of the service Google gives out with their Apps service. When I tried for the first time I was surprise to see all those services are offered for free of charge.
(Scroll down to end of page [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-25" title="Google Apps" src="http://www.bloodyerror.com/wp-content/uploads/2009/07/Google-Apps-Bloodyerror-com-150x150.jpg" alt="Google Apps" width="150" height="150" />Google launched its Google Apps a while back; it doesn’t seem to hit the spot yet. Many don’t know of the service Google gives out with their Apps service. When I tried for the first time I was surprise to see all those services are offered for free of charge.</p>
<p><em>(Scroll down to end of page to see how to Signup for Free).</em></p>
<p>Google offers Google Mail (GMail) Front End  (With IMAP, POP3 and SMTP support too) for your domain name. All you have to do is simply signup for and setup your domain’s MX records as suggested in Google Apps. For my domains, Google Apps had given me 100 Mailbox pre allocated (More on Request) and each mailbox around <strong>7GB </strong>size. All mailboxes come with Standard GMail features. There are many providers charging for this simple and free service even today and many continues to purchase more not knowing this free service.</p>
<p>Keeping your mail server separate could help you in the long run, and the company credible as Google is good for a long terms existence. Of course they do have their way of collecting information’s of Google product users but that didn’t stop us from using Google Search engine! Have you stopped using?</p>
<h3>Main reason for me to have Google Mail;</h3>
<p>I usually like to have a web interface to access my emails from anywhere, Google Apps provide IMAP access so I don’t have to download through POP and erase all my emails on server (after all I have 7 GB space to spare) and I can use GMail to login to check my emails while I’m away. Spam Filtering, Labels, security and more…</p>
<p>These services can be also found on any standard web hosting where you could set up mailbox and download data through IMAP. Again there are many web mail scripts available/installed as standard with almost all hosting providers; which you could use to access email via browser too. Say for an example you want to move your hosting to a new provider, if you have chosen Google Apps and using their Email service, you have one less worry. No need to worry about email, just your web contents and DNS of your domain need to be updated!</p>
<p>Plus, you don’t even need a web hosting to start receiving emails, just buy a domain and signup for a Google Apps account and you got your self a email server.</p>
<h3>Other services to top your 7GB space</h3>
<ul>
<li>Google Documents</li>
<li>Google Chat for your domain + public</li>
<li>Google Calendar</li>
<li>And more…</li>
</ul>
<p><em>When Chrome OS comes out next year, Google Apps expected to be it’s primary product to be installed by default (Because it’s believed to be Cloud Computing).</em></p>
<h3>How to Signup for Free?</h3>
<p>There are many different version of Google Apps service available. Many are paid service, but for No-profits, it&#8217;s free.</p>
<p>Go to: <a href="http://www.google.com/a/" target="_blank">http://www.google.com/a/</a></p>
<p><em><span style="color: #ff0000;">** Look for a link (small normal text link) says </span></em><a href="http://www.google.com/a/help/intl/en/npo/index.html" target="_blank"><em><span style="color: #ff0000;">non-profits</span></em></a><em><span style="color: #ff0000;"> and get Started to signup&#8230;</span></em></p>
<blockquote><p><strong>* Sorry, Non-profits only suitable for Education or sort, Please go to above google.com/a page and find a link to &#8220;<span style="color: #ff0000;">STANDARD EDITION</span>&#8221; (</strong><a href="http://www.google.com/apps/intl/en/group/index.html" target="_blank"><strong>http://www.google.com/apps/intl/en/group/index.html</strong></a><strong>) should be on the Right side bellow Begin Free Trial. This is the Free for normal users&#8230;..</strong></p></blockquote>
<p><em>* I&#8217;m not in any way associated with Google and I don&#8217;t benefit from this article at all. Above picture is a screen shot of Google Apps page and Logo and contents of image is google&#8217;s trade mark (I guess!).</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2009/07/absolutely-free-mail-server-for-your-domain-from-google-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix shell command to Detect DDoS attack</title>
		<link>http://www.bloodyerror.com/2009/07/unix-shell-command-to-detect-ddos-attack/</link>
		<comments>http://www.bloodyerror.com/2009/07/unix-shell-command-to-detect-ddos-attack/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 16:38:24 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[DDoS]]></category>
		<category><![CDATA[Detect DDoS]]></category>
		<category><![CDATA[Linux Command]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shell command]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=23</guid>
		<description><![CDATA[Have a server? Doubt it’s under DDoS attack? There is a simple code for you to check it’s under DDoS attack or not!
Run this command:
netstat -alpn &#124; grep :80 &#124; awk '{print $5}' &#124;awk -F: '{print $(NF-1)}' &#124;sort &#124; uniq -c &#124; sort -n
This is not exactly going to say YES your under attack, this [...]]]></description>
			<content:encoded><![CDATA[<p>Have a server? Doubt it’s under DDoS attack? There is a simple code for you to check it’s under DDoS attack or not!</p>
<p>Run this command:</p>
<pre class="brush: bash;">netstat -alpn | grep :80 | awk '{print $5}' |awk -F: '{print $(NF-1)}' |sort | uniq -c | sort -n</pre>
<p>This is not exactly going to say YES your under attack, this code will return IP address that connected to your server and how many connection they made to your server.</p>
<p>By looking at the number connections you should know what are the chances of a client from that particular IP connecting to your server and require that many connections!</p>
<p>Above code will return results like this:</p>
<blockquote><p><span style="color: #ff0000;">1</span><br />
<span style="color: #ff0000;">1</span> xxx.xxx.xxx.xxx<br />
<span style="color: #ff0000;">2</span> xxx.xxx.xxx.xxx<br />
<span style="color: #ff0000;">50 </span>xxx.xxx.xxx.xxx<br />
<em>xxx.xxx.xxx.xxx = IP address</em></p></blockquote>
<p>Number in the First column is the Number of connections established from that particular IP address. (<span style="color: #ff0000;">NumberofConnections</span> [SPACE] IP Address)</p>
<p>You will see that there is huge jump in number of connections from one or many IP’s (50 is for demonstration only how many is up to you). Many servers do not require having that many connections from a single IP. What to do next, is your choice, you could install security mods and setup firewalls to block these IP’s and so on. Do a little google search and you will find lots and lots of answers on “how to block DDoS attack?”</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2009/07/unix-shell-command-to-detect-ddos-attack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Edit hosts File in Mac OS X</title>
		<link>http://www.bloodyerror.com/2009/07/edit-hosts-file-in-mac-os-x/</link>
		<comments>http://www.bloodyerror.com/2009/07/edit-hosts-file-in-mac-os-x/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 23:39:22 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Apple Mac]]></category>
		<category><![CDATA[flush dns]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=18</guid>
		<description><![CDATA[Mac Hosts file located in /etc (OS X 10.5 Leopard). You can directly browse the host file by Going through Finder menu : Go &#62; Go to Folder&#8230; option and enter /etc to browse all files in /etc folder.

By doublecli-cking on the host file will open in TextExit where you can make the changes. But [...]]]></description>
			<content:encoded><![CDATA[<p>Mac Hosts file located in <span style="color: #808000;">/etc</span> <em>(OS X 10.5 Leopard)</em>. You can directly browse the host file by Going through <span style="text-decoration: underline;">Finder menu</span> : <span style="text-decoration: underline;">Go</span> &gt;<span style="text-decoration: underline;"> Go to Folder&#8230;</span> option and enter <span style="color: #808000;">/etc</span> to browse all files in <span style="color: #808000;">/etc</span> folder.</p>
<p><img class="alignnone size-full wp-image-20" title="Mac OSX Leopard - Finder Go Menu" src="http://www.bloodyerror.com/wp-content/uploads/2009/07/mac-menu.gif" alt="Mac OSX Leopard - Finder Go Menu" width="212" height="305" /></p>
<p>By doublecli-cking on the host file will open in TextExit where you can make the changes. But by default Mac won&#8217;t allow you to edit this host file. To do this, you need to have Super User rights. You much Enable root login and login as root to edit this file directly in TextExit.</p>
<p><strong> Other way of doing this would be through Terminal.</strong></p>
<ul>
<li>Open your Terminal</li>
<li>Type <span style="color: #808000;">sudo pico /etc/hosts</span></li>
</ul>
<p>This will open the  host file in pico editor in your terminal. Make the changes and hit the <span style="color: #808000;"><strong>ctrl + x</strong></span> keys to save. It will ask if you want to save changes. Type &#8220;<span style="color: #808000;"><strong>y</strong></span>&#8221; to indicate yes. If you see closely it will ask file name in your terminal, just enter and it will overwrite existing hosts with updated list.</p>
<p><strong>Flush your DNS to make changes to effect or restart.</strong></p>
<p>OS X Leopard  : <span style="color: #808000;">dscacheutil -flushcache</span></p>
<p>Before Mac OS X 10.5.1:  <span style="color: #808000;">lookupd -flushcache</span></p>
<p><span style="color: #888888;"><span style="color: #333333;">Guide on Pico:</span></span></p>
<p><span style="color: #888888;"><img class="alignnone size-full wp-image-21" title="Mac OS X Leopard Terminal Pico Commands" src="http://www.bloodyerror.com/wp-content/uploads/2009/07/mac-pico-hosts-edit.gif" alt="Mac OS X Leopard Terminal Pico Commands" width="505" height="301" /></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2009/07/edit-hosts-file-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk 9.2.1 FastCGI Apache Error</title>
		<link>http://www.bloodyerror.com/2009/07/plesk-9-2-1-fastcgi-apache-error/</link>
		<comments>http://www.bloodyerror.com/2009/07/plesk-9-2-1-fastcgi-apache-error/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 09:18:45 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP FastCgi]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=17</guid>
		<description><![CDATA[First of All This solution is for Linux based OS. I did it on centOS 4 x64 Running Plesk 9.2.1.
Well, If you every come across the FastCGI issue with Plesk Apache and looking for a solution, I&#8217;m sure following could help you a lot.
Problem occurs when you set-up a Domain to Run PHP in FastCGI [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">First of All This solution is for Linux based OS. I did it on centOS 4 x64 Running Plesk 9.2.1.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Well, If you every come across the FastCGI issue with Plesk Apache and looking for a solution, I&#8217;m sure following could help you a lot.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Problem occurs when you set-up a Domain to Run PHP in FastCGI Application mode in Plesk and Apache won&#8217;t restart / start.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Reason for that is the Apache configuration file referring to Dynamic CGI Library that it&#8217;s actual.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Solution is to change Apache Config and point to correct Library Location. But If you directly edit Apache config file, On next restart Plesk will overwrite it. So Edit Plesk Config file to reflect on Apache Config file.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">First you need to Locate FastCGI. Location may vary based on Linux distributions your using.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">A Simple explanation is given on how to locate in : http://forum.parallels.com/showpost.php?p=372722&amp;postcount=18</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">They also telling you to Run &#8220;psa-php5-configurator-1.5.1-cos5.build92090422.13.noarch.rpm&#8221; to resolve this issue. Well, I couldn&#8217;t fin this RPM in my server. so resolved to directly editing method.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Once you find your FastCGI location (in my case it was /usr/bin/php-cgi) edit Plesk Config File located at &#8220;/etc/psa/psa.conf&#8221; (this may vary as well).</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">I used VI edit through SSH.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">vi /etc/psa/psa.conf</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Find the Following Line (I found it at very bottom!):</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">CGI_PHP_BIN dynamic</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">and Replace it with:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">CGI_PHP_BIN /usr/bin/php-cgi</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Save the File and Exit VI edit</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">VI Editor Basic Commands: http://www.cs.colostate.edu/helpdocs/vi.html</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Now, Run this command to patch changes and restart Apache Server <img src='http://www.bloodyerror.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">/usr/local/psa/admin/sbin/websrvmng -av</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">It worked for me well! Let me know what happen to you&#8230; You can always use the source: http://forum.parallels.com/showthread.php?t=89939&amp;page=2 for more info and full reading.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">My server at 1&amp;1, Value for Price and Affordable Servers. have a look at : http://www.1and1.co.uk/?k_id=21520608</div>
<blockquote><p>* First of All This solution is for Linux based OS. I did it on <span style="color: #800000;">centOS 4 x64</span> Running <span style="color: #800000;">Plesk 9.2.1</span>.</p></blockquote>
<p>Well, If you every come across the FastCGI issue with Plesk Apache and looking for a solution, I&#8217;m sure following could help you a lot.</p>
<p><strong>Problem </strong>/<strong> Solution:</strong></p>
<ul>
<li>Problem occurs when you set-up a Domain to Run PHP in FastCGI Application mode in Plesk and Apache won&#8217;t restart / start.</li>
<li>Reason for that is the Apache configuration file referring to Dynamic CGI Library that it&#8217;s actual.</li>
<li>Solution is to change Apache Config and point to correct Library Location. But If you directly edit Apache config file, On next restart Plesk will overwrite it. So Edit Plesk Config file to reflect on Apache Config file.</li>
</ul>
<h3>1. Find FastCGI Path</h3>
<p>First you need to Locate FastCGI. Location may vary based on Linux distributions your using. A Simple explanation is given on how to locate in : <a href="http://forum.parallels.com/showpost.php?p=372722&amp;postcount=18" target="_blank">Simple Instruction on Where to look for FastCGI</a></p>
<p><em><span style="color: #888888;">They also telling you to Run &#8220;psa-php5-configurator-1.5.1-cos5.build92090422.13.noarch.rpm&#8221; to resolve this issue. Well, I couldn&#8217;t fin this RPM in my server. so resolved to directly editing method.</span></em></p>
<h3>2. Edit Plesk config</h3>
<p>Once you find your FastCGI location (in my case it was /usr/bin/php-cgi) edit Plesk Config File located at &#8220;<span style="color: #ff0000;">/etc/psa/psa.conf</span>&#8221; <em>(this may vary as well).</em></p>
<p>I used <span style="color: #0000ff;">VI</span> edit through <span style="color: #0000ff;">SSH</span>.</p>
<blockquote><p><span style="color: #0000ff;">vi</span> <span style="color: #ff0000;">/etc/psa/psa.conf</span></p></blockquote>
<p>Find the Following Line (I found it at very bottom!):</p>
<blockquote><p>CGI_PHP_BIN <span style="color: #ff0000;">dynamic</span></p></blockquote>
<p>and Replace it with:</p>
<blockquote><p>CGI_PHP_BIN <span style="color: #ff0000;">/usr/bin/php-cgi</span></p></blockquote>
<p>Save the File and Exit VI edit</p>
<p><em>VI Editor Basic Commands: <a href="http://www.cs.colostate.edu/helpdocs/vi.html" target="_blank">http://www.cs.colostate.edu/helpdocs/vi.html</a></em></p>
<h3>3. patch Changes to Apache Config</h3>
<p>Now, Run this command to patch changes and restart Apache Server <img src='http://www.bloodyerror.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote><p>/usr/local/psa/admin/sbin/websrvmng -av</p></blockquote>
<p><em>It worked for me well! Let me know what happen to you&#8230; You can always use the source: </em><a href="http://forum.parallels.com/showthread.php?t=89939&amp;page=2 " target="_blank"><em>http://forum.parallels.com/showthread.php?t=89939&amp;page=2 </em></a><em>for more info and full reading.</em></p>
<p>My server at 1&amp;1, Value for Price and Affordable Servers. have a look at : <a href="http://www.1and1.co.uk/?k_id=21520608" target="_blank">http://www.1and1.co.uk</a></p>
<p><span id="more-17"></span></p>
<h3>How its happens:</h3>
<p>After Hosting my site(s) with so many Web-hosting companies (Most of those cheap once) and Living in fear when and what will happen, I decided to Buy a VPS (Virtual Private Server) or a Dedicated Server. Good VPS cost you $$$ p/a. Cheap once cost you around $100-150 or $200. But they will give you same headache as Cheap Shared Hosting. 1 and 1 UK offering cheap dedicated server deals. It&#8217;s not much of a Server Spec but it sure can handle several websites and they give you TRUE root access and your OWN server to manage. Price also looking good compare to a Good VPS and credible hosting company.</p>
<p>1 and 1 offered Free Plesk 9.0.1 Control Panel with this Dedicated Server as a Standard control panel. I just finished checking firewall settings and even set-up 1 and 1 Free External Cisco Firewall and transfered all my sites to My New Server&#8230;</p>
<p>All working wonderfully. Then I logged into my Blog and started to write an Article and Upload a Image (I use Wordpress!). Image upload returned error that it does not have writing permission for the uploads directory. It usually happens when you move around and you forgot to set the correct permission (CHMOD). Through FTP I Changed permission to uploads folder and tried again. Nope, same error. Again logged into FTP and verified writing permission to uploads folder. It does have necessary permission and it also created a folder where image should be uploaded (Wordpress uses uploads<span style="color: #339966;">/YYYY/MM</span> structure to upload media contents). when I checked the permission for the root folder (YYYY), It does shows that it has writing permission but it&#8217;s owner shows as apache.</p>
<p>This is where I realized that default Apache mod_php is running that it uses apache user to writing / edit files. This will cause trouble when having multiple domains and users on a server. I also know that running PHP using FastCGI would resolve this issue and I remember seeing FastCGI option to run PHP in Plesk.</p>
<p>Logged into my Plesk Control Panel and Changed my Domain Settings to Run PHP as FastCGI Application and restarted Apache through Plesk Service Management. Apache started to give error and did not start. Now I went crazy and started to google what the hell is wrong with FastCGI and Plesk!</p>
<p>It seems they have this issue in earlier version as well due to wrong configuration and bug too. Many forums offered many different solutions, most common one is to Run Plesk php configurator rpm and and this would resolve the issue. Well, I don&#8217;t really want to make a mess with my server and If anything goes wrong, only thing I know is to re-image. Re-imaging server will result in loosing all my data and configurations so far!&#8230;</p>
<p>Finally, on Paralles forums I found a simpler solution. Forum Topic link and Solution In this article to make your life easier.</p>
<p><a href="http://1and1.co.uk/xml/init/?k_id=21520608" target="_blank"><img src="http://banner.1and1.co.uk/xml/banner?size=2&amp;number=3" border="0" alt="" width="468" height="60" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2009/07/plesk-9-2-1-fastcgi-apache-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
