<?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>SayNoToFlash &#187; General</title>
	<atom:link href="http://www.saynotoflash.com/archives/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saynotoflash.com</link>
	<description>PHP, Symfony, Web Development</description>
	<lastBuildDate>Tue, 17 Jan 2012 13:27:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The power of caching GD images</title>
		<link>http://www.saynotoflash.com/archives/the-power-of-caching-gd-images/</link>
		<comments>http://www.saynotoflash.com/archives/the-power-of-caching-gd-images/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 16:46:15 +0000</pubDate>
		<dc:creator>jestep</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.saynotoflash.com/?p=497</guid>
		<description><![CDATA[I created a GD based credit card logo generator this week. It&#8217;s a simple tool and image API that allows making custom credit card and payment acceptance logos for a website. The script is a simple GD function that compiles PNG images into a single image for display on a website. In creating this, I [...]]]></description>
			<content:encoded><![CDATA[<p>I created a <a href="http://php.net/manual/en/book.image.php">GD</a> based <a href="http://www.merchantequip.com/information-center/credit-card-logos/">credit card logo generator</a> this week. It&#8217;s a simple tool and <a href="http://www.merchantequip.com/merchant-account-blog/1498/credit-card-logo-generator-and-api">image API</a> that allows making custom credit card and payment acceptance logos for a website.</p>
<p>The script is a simple GD function that compiles PNG images into a single image for display on a website. In creating this, I tested caching these images locally to see what the difference in performance would be compared to generating them on the fly every time.</p>
<p>The results were more surprising that I had imagined. I&#8217;m not going to post the code to this tool, but let&#8217;s just assume we&#8217;re creating a PNG with 8 small, 64px images on it. Total image dimensions is roughly 600px x 70px. Using a <a href="http://www.saynotoflash.com/archives/php-script-benchmark-bottleneck-debugging-snippet/">simple benchmark script</a>, I looped through creating the image 1000 times.</p>
<p>To generate this image 1000 times from scratch, it takes roughly <strong>4 seconds</strong>. This is fairly respectable considering the script is about 75 lines long and makes multiple file system calls through imagecreatefrompng.</p>
<p>Next, I created a simple local caching mechanism. It takes a newly generated image and stores it in the file system. When the API is called, the script looks for the image in the file system. If it exists, it delivers the stored image, if not, it creates it and stores using the above script. When I ran this version 1000 times, it took roughly <strong>.04 seconds</strong> to complete.</p>
<p>If you put this into perspective, .04 is 100 times faster. On a high traffic website that generates multiple images on the fly, this could make or break the usability of the website. I see more and more ecommerce sites generating product images and thumbnails on the fly. A local caching mechanism is a perfect match for this sort of usage.</p>
<p>Anyway, if you are using GD or any other image manipulating php library, I strongly urge you to look into a local caching system. It took me about 5 minutes to develop a working local cache. It&#8217;s definitely worth it both in CPU overhead and in content delivery time&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saynotoflash.com/archives/the-power-of-caching-gd-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 3 broken images breaking SSL</title>
		<link>http://www.saynotoflash.com/archives/firefox-3-broken-images-breaking-ssl/</link>
		<comments>http://www.saynotoflash.com/archives/firefox-3-broken-images-breaking-ssl/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 19:55:54 +0000</pubDate>
		<dc:creator>jestep</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.saynotoflash.com/?p=390</guid>
		<description><![CDATA[After battling a SSL error: &#8220;Warning contains unauthenticated content&#8221; in Firefox 3.5 for the past few days, I finally figured out what the problem was. Unlike Internet Explorer and older Firefox versions, Firefox 3.5 gives this error if there are any missing images on a webpage. Meaning, that if an image link or css reference [...]]]></description>
			<content:encoded><![CDATA[<p>After battling a SSL error: &#8220;Warning contains unauthenticated content&#8221; in Firefox 3.5 for the past few days, I finally figured out what the problem was. </p>
<p>Unlike Internet Explorer and older Firefox versions, Firefox 3.5 gives this error if there are any missing images on a webpage. Meaning, that if an image link or css reference is to a non-existent image, Firefox warns that the page is not secure. To my knowledge, Firefox versions previous to 3.something, did not behave like this. Internet explorer, Google Chrome, Safari, and every other non-Firefox browser that I tested don&#8217;t care about broken images. Not to say that Firefox is wrong, but this made the problem more difficult to diagnose because it couldn&#8217;t be reproduced in another program.</p>
<p>The difficulty in diagnosing this, is that background images that don&#8217;t load also don&#8217;t show up in the <em>page info</em> section on Firefox. Firebug didn&#8217;t provide any immediately useful information, and there was no documentation that I could find regarding this situation. </p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/09/ssl-debug1.png" alt="ssl-debug" title="ssl-debug" width="602" height="485" class="alignnone size-full wp-image-399" /></p>
<p>After several hours of searching, I realized that there was a small broken background image. Deleting or correcting the image path immediately corrected the certificate error.</p>
<p>Anyway, if anyone has been pulling out their hair trying to diagnose a mystery ssl error, and this is a possibility, definitely look into your image paths.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saynotoflash.com/archives/firefox-3-broken-images-breaking-ssl/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>20 Great non-PHP Tools for PHP Developers</title>
		<link>http://www.saynotoflash.com/archives/20-great-non-php-tools-for-php-developers/</link>
		<comments>http://www.saynotoflash.com/archives/20-great-non-php-tools-for-php-developers/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 22:47:18 +0000</pubDate>
		<dc:creator>jestep</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.saynotoflash.com/?p=117</guid>
		<description><![CDATA[By nature I always strive to find more efficient, and better ways to perform tasks. There are a number of development tools that I use that really help me develop better applications in a reduced amount of time. These are the tools I use every day for web development. Cheat Sheets: 1.) DZone has created [...]]]></description>
			<content:encoded><![CDATA[<p>By nature I always strive to find more efficient, and better ways to perform tasks. There are a number of development tools that I use that really help me develop better applications in a reduced amount of time. These are the tools I use every day for web development.<br />
<span id="more-117"></span><br />
<h3>Cheat Sheets:</h3>
<p><strong>1.)</strong> DZone has created professional <a href="http://refcardz.dzone.com/">Cheat Sheets</a> for a number of PHP, and web development topics. These can save a ton of time from digging into a manual or doing a search online. These aren&#8217;t by any means the only cheat sheets out there, but you will find PHP, MySQL, XML, ASP, Java, Design Patterns, Joomla, and about 50 more easy to read, well designed cheat sheets.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/php-cheat.png" alt="php-cheat" title="php-cheat" width="550" height="440" class="aligncenter size-full wp-image-335" /></p>
<h3>IDE:</h3>
<p><strong>2.)</strong> <img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/NetBeans-sync.png" alt="NetBeans-sync" title="NetBeans-sync" width="300" height="86" class="alignleft size-full wp-image-336" /><a href="http://www.netbeans.org/">NetBeans</a> is an IDE that stands out above all others. It&#8217;s completely free. It offers a built-in FTP client <em>(Far superior to Dreamweaver)</em> or supports subversion publishing. It is very small, fast, and has many built-in features that help create better code, more efficiently. Netbeans is hands down the best IDE, with the fewest bugs (Not completely bug free), and virtually no learning curve (Try that Eclipse&#8230;), that I&#8217;ve used.</p>
<p>If you are holding on to Dreamweaver because of the FTP, or some other function that Eclipse PDE or Zend Studio is lacking, I urge you to take a look at Netbeans. When I&#8217;m not using SVN, I can save the file I&#8217;m working on and it is automatically uploaded to the web or testing server. Try it, you won&#8217;t be disappointed.</p>
<h3>Database Management:</h3>
<p><strong>3.)</strong> <a href="http://www.navicat.com/">Navicat</a> is by far the best database GUI, and my experience the best tool for database management on the market. Premiumsoft offers MySQL, PostgreSQL, Oracle versions, and now a single package that includes all three. Navicat provides an intelligent and efficient way to create, backup, and manage complex MySQL databases. It allows multiple methods of connecting, including a SSH tunnel, which protects your database from being accessed publicly. Apart from a good IDE, this is the #1 tool in my development toolbox. Navicat also offers a custom <a href="http://www.navicat.com/en/products/report_builder.html">report building application</a>, which can export data into Excel, Access, Text, XML, Lotus 123, or through an ODBC connection. This software is not free but they do offer a free 30 day trial. If you do a lot of database management, this software will probably pay for itself in time the first week you use it.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/navicat.png" alt="navicat" title="navicat" width="500" height="378" class="aligncenter size-full wp-image-315" /></p>
<p><strong>4.)</strong> <a href="http://www.webyog.com/">Monyog</a> is a fantastic real-time MySQL reporting program. It offers visual graphs of a database&#8217;s performance, and stats on just about everything that can be measured in MySQL. It is an excellent way to monitor a Database and is  indispensable for benchmarking and optimizing MySQL performance.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/monyog.png" alt="monyog" title="monyog" width="522" height="429" class="aligncenter size-full wp-image-328" /></p>
<p><strong>5.)</strong> <a href="http://dev.mysql.com/workbench/">MySQL Workbench</a> is a free MySQL development program which can create visual diagrams of a database&#8217;s structure, among many other features. This can be very important when you are working with large or just new databases. A picture can be worth much more than a thousand words when you are diving into a complex database.</p>
<p>Here&#8217;s a diagram of a moderately complex database, which could take a lot of time to understand without anything but the table structure.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/mysql-workbench-diagram.png" alt="mysql-workbench-diagram" title="mysql-workbench-diagram" width="500" height="171" class="aligncenter size-full wp-image-299" /></p>
<p><strong>6.)</strong> <a href="http://www.dpriver.com/pp/sqlformat.htm">SQL Code Formatter</a> is a quick tool that formats SQL code into an easy to read format. This tool can be indispensable when you are debugging other developers code, or trying to break-down a massive jumbled SQL statement.</p>
<p><strong>Turn junk like this:</strong><br />
SELECT users.id, users.name, users.address, billing.order_num, billing.subtotal, billing.shipping, billing.tax, SUM(billing.subtotal + billing.shipping + billing.tax) AS total FROM users LEFT JOIN billing ON users.id = billing.user_id WHERE billing.order_date &gt; &#8217;2009-07-31&#8242; AND billing.complete = &#8217;1&#8242;</p>
<p><strong>Into this <em>(example query may not make any sense)</em>:</strong><br />
[sql]<br />
SELECT users.id,<br />
       users.name,<br />
       users.address,<br />
       billing.order_num,<br />
       billing.subtotal,<br />
       billing.shipping,<br />
       billing.tax,<br />
       Sum(billing.subtotal + billing.shipping + billing.tax) AS total<br />
FROM   users<br />
       LEFT JOIN billing<br />
         ON users.id = billing.user_id<br />
WHERE  billing.order_date > &#8217;2009-07-31&#8242;<br />
       AND billing.complete = &#8217;1&#8242;<br />
[/sql]</p>
<h3>Debugging:</h3>
<p><strong>7.)</strong> <a href="http://users.skynet.be/mgueury/mozilla/">HTML Validator</a> is a Firefox Plugin that provides an instant status of a page&#8217;s w3c validation as you browse. It also replaces Firefox&#8217;s built-in source view, with an intuitive and significantly improved interface. This is one of the best tools out for quickly finding problems with a site&#8217;s (x)html structure.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/google-html.png" alt="google-html" title="google-html" width="510" height="551" class="aligncenter size-full wp-image-324" /></p>
<p><strong>8.)</strong> <a href="http://getfirebug.com/">Firebug</a> is an outstanding debugging program that provides a ton of information about structure, scripts, and problems. Firebug is an amazing tool, but can be quite complex, which is why I also use the HTML Validator plugin.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/firebug.png" alt="firebug" title="firebug" width="538" height="54" class="aligncenter size-full wp-image-325" /></p>
<h3>Version Control:</h3>
<p><strong>9.)</strong> <a href="http://www.git-scm.org/">Git</a> is a very fast version control system, that supports quick branching, merging, and development capabilities. There are a number of public GIT hosting sites such as <a href="http://github.com/">github</a> that allow developers to publish and collaborate on their projects.</p>
<blockquote><p>Git gives each developer a local copy of the entire development history, and changes are copied from one such repository to another. These changes are imported as additional development branches, and can be merged in the same way as a locally developed branch.</p></blockquote>
<p><strong>10.)</strong> <a href="http://subversion.tigris.org/">Subversion</a> or SVN is another version control system, ironically despised by the creator of GIT, but is very commonly used and should be in any programmers repertoire. It is currently one of the most popular version control methods, and works with just about any platform.</p>
<p><a href="http://www.dzone.com/links/git_vs_svn_comparsion.html">Quick comparison of GIT vs. SVN</a>.</p>
<p><strong>11.)</strong> <a href="http://winmerge.org/">WinMerge</a> is a fast file comparison program for Windows. It allows the user to quickly compare 2 files, and merge or edit as needed. This is by no means a version control method, but can quickly help determine differences between 2 documents.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/win-merge.png" alt="win-merge" title="win-merge" width="550" height="433" class="aligncenter size-full wp-image-323" /></p>
<h3>Graphics:</h3>
<p><strong>12.)</strong> <a href="http://www.colorzilla.com/">ColorZilla</a> is a very fast color picker plugin for Firefox. When you need to get a color from a website, ColorZilla is probably the quickest way to do it. Not only will it show the HEX color code, but it shows the RGB values, and exactly what element is using the color. If you ever take on an existing website for further development it can be invaluable in breaking down somebody&#8217;s poorly designed css stylesheets.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/color-zilla.png" alt="color-zilla" title="color-zilla" width="500" height="31" class="aligncenter size-full wp-image-310" /></p>
<p><strong>13.)</strong> <a href="http://colorschemedesigner.com/">Color Scheme Designer</a> is a no BS way to create compatible, attractive color schemes for websites, and user interfaces. There are dozens of color scheme generators out there, but this one does what is needed efficiently, for free, and without any extra fluff. Several pre-defined color patters are a click away, and you can see quick examples of a web page using the color schema that you&#8217;ve generated.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/color-schema-designer.png" alt="color-schema-designer" title="color-schema-designer" width="500" height="309" class="aligncenter size-full wp-image-307" /></p>
<h3>Communication:</h3>
<p><strong>14.)</strong> <img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/xlite1.png" alt="xlite" title="xlite" width="200" height="288" class="alignleft size-full wp-image-348" /><a href="http://www.counterpath.com/x-lite.html">X-Lite</a> is a free VOIP Softphone application. It offers all the features that a very advanced phone would have, including video. </p>
<p>In a world where many people have forgotten what a phone is, this is the perfect compromise. You can get a Plantronics headset and USB adapter, a low cost VOIP service, and have unlimited calling anywhere in the US, and possibly the world, as long as you have an internet connection. Don&#8217;t ignore the good old fashion telephone. Businesses still use these things&#8230;</p>
<p><strong>15.)</strong> <a href="http://www.ceruleanstudios.com/">Trillian</a> is a great way to combine all of your IM clients into a single, light-weight app. This program can free up a considerable amount of system resources compared to running multiple IM clients at the same time. It also lets you access all of your IM contacts through a single interface.</p>
<h3>Miscellaneous:</h3>
<p><strong>16.)</strong> <a href="http://www.screengrab.org/">ScreenGrab</a> is a screen capturing program that&#8217;s slightly better than the <strong>&#8220;Prnt Scrn&#8221;</strong> button on your keyboard. It can either copy or save a capture to a PNG file. It allows capturing a complete page <em>(including below the fold)</em>, only the visible portion of a screen, by selection, or the entire window. The only drawback is that it only works within Firefox. Any screen captures you see on this or my other blogs are done with ScreenGrab.</p>
<p><strong>17.)</strong> <img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/roboform.png" alt="roboform" title="roboform" width="300" height="215" class="alignright size-full wp-image-302" /><a href="http://www.roboform.com/php/land.php?affid=jeste&#038;frm=frame1">Roboform</a> is a username/password management program, and is the most important browser add-on that I use. I currently have over 2,000 website profiles stored in it <em>(One of many pages shown in the image)</em>, every one with a very secure and unique password like &#8220;<strong>fz96Dr%PpaZjaBfk</strong>&#8220;. </p>
<p>It supports a variety of very advanced features and configurations to help keep your login credentials secure and easy to use.</p>
<p>You can <a href="http://www.roboform.com/dist/affs/AiRoboForm-jeste.exe">download a free trial here</a>.</p>
<p><strong>18.)</strong> <img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/sun-vbox-150x150.png" alt="sun-vbox" title="sun-vbox" width="150" height="150" class="alignleft size-thumbnail wp-image-318" /><a href="http://www.virtualbox.org/">SUN Virtualbox</a> is the best virtual computer deployment package that I&#8217;ve come across. It installs on a number of host operating systems, not just Linux, and supports just about every OS on the market for Virtual Appliances. It is extremely easy to install, is very efficient, and can be customized as required. Virtual hosts can easily be backed up, or cloned and distributed.</p>
<p>If you&#8217;ve been afraid of exploring into Virtualization, I highly recommend looking at Virtualbox. There are so many benefits to this sort of technology, it&#8217;s something that every developer should be familiar with.</p>
<p><strong>19.)</strong> <a href="http://www.realtimesoft.com/ultramon/">Ultramon </a>is a multi-monitor taskbar program. unfortunately Windows XP does not include for multiple taskbars if you multiple monitors. Ultramon fixes this in a fast, predictable manner, and includes many additional features such as desktop back ground stretching. Ultramon is not free but is far superior to the free multi-taskbar products that are available.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/ultramon.png" alt="ultramon" title="ultramon" width="418" height="138" class="aligncenter size-full wp-image-342" /></p>
<p><strong>20.)</strong> <a href="http://sourceforge.net/projects/pdfcreator/">PDF Creator</a> is a PDF printing application. It allows printing any file directly into a PDF. If you don&#8217;t need the ability to edit existing PDF documents, this is an excellent alternative to purchasing any other PDF software.</p>
<p><img src="http://www.saynotoflash.com/wp-content/uploads/2009/08/pdf-creator.png" alt="pdf-creator" title="pdf-creator" width="439" height="402" class="aligncenter size-full wp-image-339" /></p>
<p>Let me know if you&#8217;ve got your own set of essential tools that help in your development.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saynotoflash.com/archives/20-great-non-php-tools-for-php-developers/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>

