<?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>Yet another blog about PHP, HTML and CSS &#187; Tools</title>
	<atom:link href="http://blog.pepa.info/php-html-css/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pepa.info</link>
	<description>Petr 'PePa' Pavel</description>
	<lastBuildDate>Thu, 19 Aug 2010 18:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Strong random password with a bookmarklet</title>
		<link>http://blog.pepa.info/php-html-css/tools/strong-random-password-with-a-bookmarklet/</link>
		<comments>http://blog.pepa.info/php-html-css/tools/strong-random-password-with-a-bookmarklet/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 18:17:58 +0000</pubDate>
		<dc:creator>Petr 'PePa' Pavel</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blog.pepa.info/?p=169</guid>
		<description><![CDATA[I create all sorts of passwords rather often, be it for me or for my clients. Until today, I always sort of let my hands use the free-fall feature and generated some random characters just by dropping them onto the keyboard. Then I added upper/lower case character and a symbol here and there. I tried [...]]]></description>
			<content:encoded><![CDATA[<p>I create all sorts of passwords rather often, be it for me or for my clients. Until today, I always sort of let my hands use the free-fall feature and generated some random characters just by dropping them onto the keyboard. Then I added upper/lower case character and a symbol here and there. I tried to use random password generators before but the above procedure was always faster than locating and executing a special-purpose application. Well, today it occurred to me that a bookmarklet would be a much better solution. The browser is always running and having the bookmarklet in the bookmark toolbar makes using it a single-click job.</p>
<p><span id="more-169"></span>So, you know the drill. Drag this onto your bookmark toolbar:</p>
<p><a href="javascript:(function(){var passLength = 15; var str = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`~!@#$%^&amp;*()_-+=.,[]{}:;'; var getRandomInt = function (max) { return Math.floor(Math.random() * (max + 1)); }; var newStr = '', rand = 0; while (str.length) { rand = getRandomInt(str.length-1); newStr += str.charAt(rand); str = str.substring(0, rand)+str.substr(rand+1); } prompt('Password', newStr.substr(0, passLength));})();">Random Password</a></p>
<p>It uses code from <a href="http://phpjs.org/functions/str_shuffle:529">str_shuffle()</a> (project php.js) &#8211; thanks guys!</p>
<p>You can edit the javascript code and change the set of characters that are used in the password (str). You can also change the password length there (passLength).</p>
<p>I did search the web for an existing solution before writing my own. I found quite a few bookmarklets that generate a unique password based on your master password and the place that you want to use the password for. It wasn&#8217;t my case. I needed passwords for new ftp or mysql users, this kind of stuff.</p>
<p>To be honest, I haven&#8217;t tested it in anything else than Firefox, the only true browser ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pepa.info/php-html-css/tools/strong-random-password-with-a-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Alternative icon for Eclipse IDE</title>
		<link>http://blog.pepa.info/php-html-css/tools/alternative-icon-for-eclipse-ide/</link>
		<comments>http://blog.pepa.info/php-html-css/tools/alternative-icon-for-eclipse-ide/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 09:52:01 +0000</pubDate>
		<dc:creator>Petr 'PePa' Pavel</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blog.pepa.info/?p=136</guid>
		<description><![CDATA[Each year we have the pleasure of switching to a new version of Eclipse. And by pleasure I mean both shades of the word. Cool new features and boring migration. I usually fight my laziness for quite some time and migrate my projects gradually. Thanks folks for keeping Eclipse isolated so that I can run [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.pepa.info/wp-content/feature.gif" alt="" title="Alternative Eclipse icon" width="32" height="32" class="alignleft size-full wp-image-140" />Each year we have the pleasure of switching to a new version of Eclipse. And by pleasure I mean both shades of the word. Cool new features and boring migration. I usually fight my laziness for quite some time and migrate my projects gradually. Thanks folks for keeping Eclipse isolated so that I can run both versions simultaneously. I&#8217;m getting to my point now: I needed a new icon that would distinct the new version from the old one.<br />
<span id="more-136"></span><br />
After a proper googling I came to a conclusion that there simply isn&#8217;t one I could just download and use (ico for Windows). So I searched through the Galileo directory and found a nice gif icon:<br />
<code><br />
C:\Program Files\Eclipse 3.5 PDT\configuration\org.eclipse.osgi\bundles\162\1\.cp\feature.gif<br />
</code></p>
<p>Then I googled for an online ico creator and found <a href="http://iconverticons.com/">iConvert</a> that can not only create Windows icons but also Mac and Linux icons.<br />
Click, click and I was finally able to link my shortcut to a new icon. Perfect!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pepa.info/php-html-css/tools/alternative-icon-for-eclipse-ide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ganymede / PHPEclipse &#8211; not a good choice for debugging CakePHP</title>
		<link>http://blog.pepa.info/php-html-css/tools/ganymede-phpeclipse-cakephp-debug/</link>
		<comments>http://blog.pepa.info/php-html-css/tools/ganymede-phpeclipse-cakephp-debug/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 19:57:40 +0000</pubDate>
		<dc:creator>Petr 'PePa' Pavel</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blog.pepa.info/?p=62</guid>
		<description><![CDATA[After hours of trying I finally conclude that CakePHP cannot be debugged in Eclipse 3.4.1 (Ganymede) and PHPEclipse 1.2.1.200810130444PRD (XDebug). My webroot is set to app/webroot and Eclipse stops on a breakpoint only if it&#8217;s in app/webroot/index.php Even after it stops there it won&#8217;t stop on a next breakpoint that is set in my controller. [...]]]></description>
			<content:encoded><![CDATA[<p>After hours of trying I finally conclude that CakePHP cannot be debugged in Eclipse 3.4.1 (Ganymede) and PHPEclipse 1.2.1.200810130444PRD (XDebug).</p>
<p>My webroot is set to app/webroot and Eclipse stops on a breakpoint only if it&#8217;s in app/webroot/index.php<br />
Even after it stops there it won&#8217;t stop on a next breakpoint that is set in my controller.</p>
<p>The only working solution I found is downgrading to Eclipse 3.3.2 (Europa) and PDT 1.0.3.v20080603. Fortunately both can run side by side so in theory, I can write new code in Ganymede and debug in Europa but that sucks. Programming is a constant debugging.</p>
<p>I could try to switch from XDebug to DBG. Maybe I will next time I have a day that I can waste.</p>
<h2>Update:</h2>
<p>New PDT 2.0.0.v20081030-1802 works with Ganymede/XDebug just fine. It also has features I have been missing like Mark Occurrences &#8211; one more reason for switching. It doesn&#8217;t have support for chm help files though (PHPEclipse does) and is generally slower than PHPEclipse.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pepa.info/php-html-css/tools/ganymede-phpeclipse-cakephp-debug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great tool for sharing pieces of code</title>
		<link>http://blog.pepa.info/php-html-css/tools/pastebin/</link>
		<comments>http://blog.pepa.info/php-html-css/tools/pastebin/#comments</comments>
		<pubDate>Wed, 26 Sep 2007 09:21:19 +0000</pubDate>
		<dc:creator>Petr 'PePa' Pavel</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blog.pepa.info/2007/09/tools/pastebin/</guid>
		<description><![CDATA[Ever needed to send someone a piece of code in an e-mail to illustrate your thinking? Pastebin does just that. You paste your code, choose what language you use to get the right syntax highlighting and post it. Then your colleague makes his changes and posts them back. With one click you can see his [...]]]></description>
			<content:encoded><![CDATA[<p>Ever needed to send someone a piece of code in an e-mail to illustrate your thinking?</p>
<p>Pastebin does just that. You paste your code, choose what language you use to get the right syntax highlighting and post it.</p>
<p>Then your colleague makes his changes and posts them back. With one click you can see his version, your version and the difference, just like in this example:</p>
<p><a target="_blank" href="http://pastebin.com/pastebin.php?diff=f3bd4dcb6">http://pastebin.com/pastebin.php?diff=f3bd4dcb6</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pepa.info/php-html-css/tools/pastebin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
