<?xml version="1.0" encoding="iso-8859-1"?>
<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>CrankBerry Blog &#187; Tools</title>
	<atom:link href="http://www.crankberryblog.com/category/internet-tools/feed" rel="self" type="application/rss+xml" />
	<link>http://www.crankberryblog.com</link>
	<description>Sharing ideas on web design, development and the internet economy</description>
	<lastBuildDate>Thu, 22 Apr 2010 21:46:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automated MySQL database backup with PHP and cronjob</title>
		<link>http://www.crankberryblog.com/2010/automated-mysql-database-backup-with-php-and-cronjob</link>
		<comments>http://www.crankberryblog.com/2010/automated-mysql-database-backup-with-php-and-cronjob#comments</comments>
		<pubDate>Fri, 16 Apr 2010 17:04:36 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Owners]]></category>
		<category><![CDATA[Cronjob]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP Script]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=373</guid>
		<description><![CDATA[At some point of working on your website you'll want to back up you MySQL database. This is they key for all of you building dynamic sites. If one day your server goes down or something you may have the files backed up but without the database you'll have to start from scratch again. If you operate a very slow-paced site then manual back up is fine but if you want to backup your database daily then it becomes tedious. I, myself is lazy so I came up with a PHP and Cronjob solution to automatically backup MySQL database.]]></description>
			<content:encoded><![CDATA[<p>At some point of working on your website you&#039;ll want to back up you MySQL database. This is they key for all of you building dynamic sites. If one day your server goes down or something you may have the files backed up but without the database you&#039;ll have to start from scratch again. If you operate a very slow-paced site then manual back up is fine but if you want to backup your database daily then it becomes tedious. I, myself is lazy so I came up with a PHP and Cronjob solution to automatically backup MySQL database.</p>
<h3>Automating It</h3>
<p><strong>What you need?</strong> The first thing you need to know how to do it set cronjobs. If you don&#039;t know how to do that you can <a href="http://www.crankberryblog.com/2009/setting-php-cron-job-with-crontab" title="Learn to set cronjobs">learn how to set cronjobs here</a>. The cronjob is what will automate your server to run the script and how often to run it.</p>
<h3>The Files</h3>
<p>All you&#039;ll need is two files to make this work. The first file, <strong>mysqldump.php</strong> can be grabbed from <a href="http://www.creativefactory.it/lab/">CreativeFactory.it</a>. The next thing you need is my backup.php file. Just create a file called <strong>backup.php</strong> and dump the following script inside.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span></p>
<p><span class="co1">//The File Name You Want To Use</span><br />
<span class="re0">$fileName</span> = <span class="st0">&#039;Filename&#039;</span>;</p>
<p><span class="co1">//Global</span><br />
<span class="re0">$sqlhost</span> = <span class="st0">&#039;localhost&#039;</span>;<br />
<span class="re0">$sqluser</span> = <span class="st0">&#039;db_user&#039;</span>;<br />
<span class="re0">$sqlpass</span> = <span class="st0">&#039;db_password&#039;</span>;<br />
<span class="re0">$sqldb</span> = <span class="st0">&#039;db_name&#039;</span>;</p>
<p><span class="co1">//**********************************</span><br />
<span class="co1">//You Don&#039;t Need to Edit This</span><br />
<span class="co1">//**********************************</span></p>
<p><span class="co1">//Today&#039;s Timestamp</span><br />
<span class="re0">$today_ts</span> = <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="st0">&quot;now&quot;</span><span class="br0">&#41;</span>;</p>
<p>
<span class="re0">$backupDate</span> = <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&#039;y.m.d.h.i&#039;</span>, <span class="re0">$today_ts</span><span class="br0">&#41;</span>;<br />
<span class="re0">$backupFile</span> = &nbsp;<span class="re0">$backupDate</span>.<span class="st0">&#039;- &#039;</span>.<span class="re0">$fileName</span>.<span class="st0">&#039;.txt&#039;</span>;</p>
<p><span class="co1">//Connect to mysql server</span><br />
<span class="re0">$connessione</span> = @<a href="http://www.php.net/mysql_connect"><span class="kw3">mysql_connect</span></a><span class="br0">&#40;</span><span class="re0">$sqlhost</span>,<span class="re0">$sqluser</span>,<span class="re0">$sqlpass</span><span class="br0">&#41;</span>;</p>
<p><span class="co1">//Include class</span><br />
<span class="kw1">require_once</span><span class="br0">&#40;</span><span class="st0">&#039;mysqldump.php&#039;</span><span class="br0">&#41;</span>;</p>
<p><span class="co1">//Create new instance of MySQLDump</span><br />
<span class="re0">$dumper</span> = <span class="kw2">new</span> MySQLDump<span class="br0">&#40;</span><span class="re0">$sqldb</span><span class="br0">&#41;</span>;</p>
<p><span class="co1">//If you want to write the MySQL dump to file</span><br />
<span class="re0">$dumper</span>-&gt;<span class="me1">writeDump</span><span class="br0">&#40;</span><span class="re0">$backupFile</span><span class="br0">&#41;</span>;</p>
<p><span class="kw2">?&gt;</span></div>
<h3>The Setup</h3>
<p>Configure the first file variables of the script and then just leave the rest. Put the backup.php and mysqldump.php in the same folder where you want the back up files to be dumped. Set the cronjob to run backup.php you don&#039;t need to worry about mysqldump.php. That&#039;s it, it&#039;ll automatically backup.</p>
<h3>Possible Problems</h3>
<p>The problems that you may experience is the MySQL privileges. If your account doesn&#039;t have enough privilege then you may not be able to properly query the database. Another problem maybe the CHMOD of the folder you&#039;re backing up to. You need to have write access into that folder.</p>
<h3>Recovering from Backup</h3>
<p>To recover you database just log into your phpMyAdmin, open the database you want to recover. Select the import tab and just browse for the file. If I recall the file itself should overwrite tables that are already in place if not then you may have to drop all the tables first.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2010/automated-mysql-database-backup-with-php-and-cronjob/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Wave Invitations &#8211; Does it work for you?</title>
		<link>http://www.crankberryblog.com/2009/google-wave-invitations-does-it-work-for-you</link>
		<comments>http://www.crankberryblog.com/2009/google-wave-invitations-does-it-work-for-you#comments</comments>
		<pubDate>Tue, 01 Dec 2009 17:25:37 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=312</guid>
		<description><![CDATA[<div class="excerpt_screen_right"><img src="http://www.crankberryblog.com/images/google-wave.jpg" /></div>Well, the Google Wave has been out for a couple months now and I'm still not sure what's so crazy about this thing. Either way, I've got <strong>some invites</strong> sitting here, if you're interested in joining the crazy crowd and seeing what this new Google product is all about just leave me a line. Try it out and then let me know how it has worked or not worked for you!]]></description>
			<content:encoded><![CDATA[<div class="excerpt_screen_right"><img src="http://www.crankberryblog.com/images/google-wave.jpg" /></div>
<p>Well, the Google Wave has been out for a couple months now and I&#039;m still not sure what&#039;s so crazy about this thing. Either way, I&#039;ve got <strong>some invites</strong> sitting here, if you&#039;re interested in joining the crazy crowd and seeing what this new Google product is all about just leave me a line. Try it out and then let me know how it has worked or not worked for you!</p>
<p><strong>My Take on Google Wave</strong></p>
<p>Google Wave isn&#039;t all that I had anticipated, or maybe I was expecting a lot. When it was first introduced it showed people communicating and working on projects together. It was like a shared community online to&#8230; work on things. So far I have not used it for such. I&#039;m not going to go in details and put out a review as everybody probably sees a different use for this application. Let me know, how has Google Wave changed your life?</p>
<p>I believe Google Wave is one of those web application made to compliment with the Chrome OS that Google will be releasing. The Wave will play a key role in the work and communication aspect for the OS, just like how all their online applications are.</p>
<p><strong>Get a Google Wave Invite</strong></p>
<p>Once again, get an invite &#8211; leave a line or message.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/google-wave-invitations-does-it-work-for-you/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Websites you should have bookmarked if you&#039;re a webmaster</title>
		<link>http://www.crankberryblog.com/2009/websites-you-should-have-bookmarked-if-youre-a-webmaster</link>
		<comments>http://www.crankberryblog.com/2009/websites-you-should-have-bookmarked-if-youre-a-webmaster#comments</comments>
		<pubDate>Mon, 02 Nov 2009 22:58:37 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=258</guid>
		<description><![CDATA[If you not only own your website but also develop and maintain it yourself then you should understand how hard it is if there weren't some already developed tools and web resources to help you with your work. Here I've listed some of my favourite development resource sites and should be yours too for your developing moments. If you don't have them all bookmarked yet, DO IT NOW!

<img src="http://www.crankberryblog.com/images/bookmark-these-screenshot.jpg" />]]></description>
			<content:encoded><![CDATA[<p>If you not only own your website but also develop and maintain it yourself then you should understand how hard it is if there weren&#039;t some already developed tools and web resources to help you with your work. Here I&#039;ve listed some of my favourite development resource sites and should be yours too for your developing moments. If you don&#039;t have them all bookmarked yet, DO IT NOW!</p>
<p><a href="http://www.typetester.org/"><br />
<h3>Typetester</h3>
<p></a></p>
<p>Typetester is a website which allows you to test out fonts to see how they compare to to each other. This will allow you to test the font live and choose the one you want to use on your site.</p>
<p><a href="http://www.typetester.org/"><img src="http://www.crankberryblog.com/images/bookmark-these-typetester.jpg" /></a></p>
<p><a href="http://browsershots.org/"><br />
<h3>BrowserShots</h3>
<p></a></p>
<p>This is the resource for ultimate cross-browser compatibility building. BrowserShots allows you to take screenshots of your website so you can see what it looks like through various browsers and operating systems.</p>
<p><a href="http://browsershots.org/"><img src="http://www.crankberryblog.com/images/bookmark-these-browsershots.jpg" /></a></p>
<p><a href="http://validator.w3.org/"><br />
<h3>W3C Validator</h3>
<p></a></p>
<p>Run your site through W3C validator and it&#039;ll tell you if your HTML and Javascript codes are well structured. Good for building clean and proper codes.</p>
<p><a href="http://validator.w3.org/"><img src="http://www.crankberryblog.com/images/bookmark-these-w3c.jpg" /></a></p>
<p><a href="http://viewlike.us/"><br />
<h3>View Like Us</h3>
<p></a></p>
<p>View Like Us complements BrowserShots very well. This web tool allows you to quickly test your website viewport in various resolution sizes including Wii and iPhone screen resolutions.</p>
<p><a href="http://viewlike.us/"><img src="http://www.crankberryblog.com/images/bookmark-these-viewlikeus.jpg" /></a></p>
<p><a href="http://www.lipsum.com"><br />
<h3>Lorem Ipsum</h3>
<p></a></p>
<p>If you&#039;re just starting to build new sites, the best thing to have to fluff up your site is dummy text. Use the Lorem Ipsum generator to create various length of text to fill in those pages.</p>
<p><a href="http://www.lipsum.com"><img src="http://www.crankberryblog.com/images/bookmark-these-lorem.jpg" /></a></p>
<p><a href="http://www.shaboopie.com/"><br />
<h3>Shaboopie</h3>
<p></a></p>
<p>If you&#039;re not designing your own site and have no resources to hire somebody to do so then you should check out Shaboopie as they have a large selection for free vector logos to use.</p>
<p><a href="http://www.shaboopie.com/"><img src="http://www.crankberryblog.com/images/bookmark-these-logo.jpg" /></a></p>
<p><a href="http://www.iconarchive.com"><br />
<h3>Icon Archive</h3>
<p></a></p>
<p>Just like the excuse you have above, if you have no time to draw and you need great icons, just go to Icon Archive. They have a huge selection of free icons and the site is so easy to navigate.</p>
<p><a href="http://www.iconarchive.com"><img src="http://www.crankberryblog.com/images/bookmark-these-iconarchive.jpg" /></a></p>
<p><a href="http://www.bestwebframeworks.com/"><br />
<h3>Best Web Frameworks</h3>
<p></a></p>
<p>Best Web Frameworks is one of my favourites. Just select the web language you&#039;re using and check popular frameworks and compatibility.</p>
<p><a href="http://www.bestwebframeworks.com/"><img src="http://www.crankberryblog.com/images/bookmark-these-framework.jpg" /></a></p>
<p><a href="http://www.pixlr.com"><br />
<h3>Pixlr</h3>
<p></a></p>
<p>If you ever need to edit any images but don&#039;t have Photoshop handy, or Photoshop at all then you should use Pixlr. It is practically a tamed version of Photoshop online.</p>
<p><a href="http://www.pixlr.com"><img src="http://www.crankberryblog.com/images/bookmark-these-pixlr.jpg" /></a></p>
<p>What great things do you have in your pocket (nothing disgusting ok!)? Comment and share with the rest of the group.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/websites-you-should-have-bookmarked-if-youre-a-webmaster/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update To Free Online Favicon Generator/Converter Tool</title>
		<link>http://www.crankberryblog.com/2009/update-to-free-online-favicon-generatorconverter-tool</link>
		<comments>http://www.crankberryblog.com/2009/update-to-free-online-favicon-generatorconverter-tool#comments</comments>
		<pubDate>Mon, 26 Oct 2009 23:01:31 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=254</guid>
		<description><![CDATA[Seems like there were a couple bugs in the <a href="http://favicon.crankberryblog.com">Online Favicon Generator Tool</a> but I worked things out and things should be running smoothly now. Saving is and loading is still very simple.

<img src="http://www.crankberryblog.com/images/free-online-favicon-generator-converter-tool.jpg" />]]></description>
			<content:encoded><![CDATA[<p>Seems like there were a couple bugs in the <a href="http://favicon.crankberryblog.com">Online Favicon Generator Tool</a> but I worked things out and things should be running smoothly now. Saving is and loading is still very simple.</p>
<p>Once again a screenshot of the tool:</p>
<p><img src="http://www.crankberryblog.com/images/free-online-favicon-generator-converter-tool.jpg" /></p>
<p>If you have forgotten and didn&#039;t see the link above here it is again.<br />
<a href="http://favicon.crankberryblog.com">Free Online Favicon Generator/Converter Tool</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/update-to-free-online-favicon-generatorconverter-tool/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Online Favicon Generator/Converter</title>
		<link>http://www.crankberryblog.com/2009/online-favicon-generatorconverter</link>
		<comments>http://www.crankberryblog.com/2009/online-favicon-generatorconverter#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:35:12 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=206</guid>
		<description><![CDATA[<div class="excerpt_screen_right"><img src="http://www.crankberryblog.com/images/favicon-generator-big.jpg" /></div>Its not like it hasn't been done before, but here it is again, my take on the <a href="http://favicon.crankberryblog.com/">Online Favicon Generator/Converter</a>. It was just a fun project I was working on myself. Here's a free tool for you to create, edit and save your favicon. Supporting image formats such as PNG, GIF, BMP, JPG, and ICO files. There's also some simple tools for you to make some quick edits without firing up the Ol'Photoshop. Go ahead and try it out, create your own favicon.]]></description>
			<content:encoded><![CDATA[<p>Its not like it hasn&#039;t been done before, but here it is again, my take on the <a href="http://favicon.crankberryblog.com/">Online Favicon Generator/Converter</a>. It was just a fun project I was working on myself. Here&#039;s a free tool for you to create, edit and save your favicon. Supporting image formats such as PNG, GIF, BMP, JPG, and ICO files. There&#039;s also some simple tools for you to make some quick edits without firing up the Ol&#039;Photoshop. Go ahead and try it out, create your own favicon.</p>
<h3>Save and Load Online</h3>
<p>I&#039;ve added the function to save and load favicons directly from Crankberry Blog. You don&#039;t need to sign up. Just do your work, press save and two 4 character key code will be loaded for you. Next time you come back just load the key codes and you&#039;ll be ready to go. Keep the key codes in the save slot and you can update your old version without memorizing ten thousand different codes. This is a new thing I&#039;m trying out which I&#039;ll be using for later projects. Let me know how it works out for you.</p>
<h3>Tools Available</h3>
<p>There are some simple tools available for your convenience. You can import different image formats or start from scratch. There&#039;s a paint brush tool, eraser and color dropper for simple editing and touch ups.</p>
<p><img src="http://www.crankberryblog.com/images/favicon-generator-screenshot.jpg" /></p>
<h3>Attaching Favicon to Website</h3>
<p>Once you have created and saved a copy of your favicon in your web directory you&#039;ll have to place the following code in your website. I always use the two following codes in my header between <head></head> code.</p>
<div class="dean_ch" style="white-space: wrap;">&lt;link href=&quot;favicon.ico&quot; rel=&quot;icon&quot; type=&quot;image/x-icon&quot;/&gt;<br />
&lt;link href=&quot;favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/x-icon&quot; /&gt;</div>
<p>Try out the tool and don&#039;t be afraid to send me any comments and feedback.</p>
<p><strong>The Tool</strong></p>
<p>If you didn&#039;t catch the link in the text here it is again:<br />
<strong><a href="http://favicon.crankberryblog.com/">Online Favicon Generator/Converter</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/online-favicon-generatorconverter/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS rounded corners with borders</title>
		<link>http://www.crankberryblog.com/2009/css-rounded-corners-with-borders</link>
		<comments>http://www.crankberryblog.com/2009/css-rounded-corners-with-borders#comments</comments>
		<pubDate>Thu, 08 Oct 2009 19:15:02 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=186</guid>
		<description><![CDATA[An upgrade has been made to my <a href="http://csscorners.crankberryblog.com">CSS rounded corners generator</a>, now not only does it use no images, cross browser compliant but now with additional borders option. Add that all up and you have a cross browser, no image, bordered CSS rounded corners generator. Of course that name is too long so we'll just stick with the old one.

<img src="http://www.crankberryblog.com/images/css-rounded-corners-with-borders.jpg" alt="CSS rounded corners with border" />]]></description>
			<content:encoded><![CDATA[<p>An upgrade has been made to my <a href="http://csscorners.crankberryblog.com">CSS rounded corners generator</a>, now not only does it use no images, cross browser compliant but now with additional borders option. Add that all up and you have a cross browser, no image, bordered CSS rounded corners generator. Of course that name is too long so we&#039;ll just stick with the old one.</p>
<p><img src="http://www.crankberryblog.com/images/css-rounded-corners-with-borders.jpg" alt="CSS rounded corners with border" /></p>
<p><strong>Forgotten the link to the tool?</strong> </p>
<p>No worries: <a href="http://csscorners.crankberryblog.com">CSS Rounded Corners Generator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/css-rounded-corners-with-borders/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
