<?xml version="1.0" encoding="utf-8" standalone="no"?>
<rss version="2.0"><channel><title>AnyExamples - latest examples feed</title><description>Free, tested &amp; ready to use examples - for any topic we competent in</description><link>http://www.anyexample.com/</link><language>en-us</language><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/java/">Java</category><link>http://www.anyexample.com/programming/java/java_hashmap_example.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/java/java_hashmap_example.xml</guid><title>Java HashMap example</title><description>Java class HashMap(java.util.HashMap) is a fast and easy to use class representing hash table, a data structure that associates keys with values.</description><pubDate>Sun, 20 Jan 2008 14:39:41 -0500</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/php/">PHP</category><link>http://www.anyexample.com/programming/php/downloading_files_from_amazon_s3.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/php/downloading_files_from_amazon_s3.xml</guid><title>Downloading files from Amazon S3</title><description>This is an example of non-interactive PHP script which downloads file from Amazon S3 (Simple Storage Service). Additional libraries like HMAC-SHA1 are not required.</description><pubDate>Thu, 18 Oct 2007 16:39:19 -0400</pubDate></item><item><category domain="http://www.anyexample.com/webdev/">WebDev</category><category domain="http://www.anyexample.com/webdev/rails/">Rails</category><link>http://www.anyexample.com/webdev/rails/rails_photo_gallery.xml</link><guid isPermaLink="true">http://www.anyexample.com/webdev/rails/rails_photo_gallery.xml</guid><title>Rails Photo Gallery</title><description>This article contains step-by-step tutorial for creating photo gallery in Ruby On Rails -- basically a list of jpeg images with uploading/editing support. Command-line ImageMagick tools are used to generate thumbnails and determine image width and height. No Rails plugins or Ruby libraries (like RMagick) required.</description><pubDate>Fri, 21 Sep 2007 10:06:52 -0400</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/php/">PHP</category><link>http://www.anyexample.com/programming/php/php_whois_client_function.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/php/php_whois_client_function.xml</guid><title>PHP whois client function</title><description>This article contains PHP implementation of whois client (as a function ae_whois), which may be used to request domain information from specified whois servers</description><pubDate>Wed, 19 Sep 2007 08:09:37 -0400</pubDate></item><item><category domain="http://www.anyexample.com/webdev/">WebDev</category><category domain="http://www.anyexample.com/webdev/rails/">Rails</category><link>http://www.anyexample.com/webdev/rails/how_to_allow_some_safe_html_in_rails_projects.xml</link><guid isPermaLink="true">http://www.anyexample.com/webdev/rails/how_to_allow_some_safe_html_in_rails_projects.xml</guid><title>How to allow some safe HTML in Rails projects</title><description>Although Ruby On Rails has support for various markup languages like textile and markdown via RedCloth and BlueCloth gems, often simple HTML is more preferable solution(like "Some HTML is OK" on Flickr). This article contains simple Ruby function ae_some_html which allows usage of basic HTML tags and converts everything else to entity-escaped HTML code.  </description><pubDate>Sun, 15 Jul 2007 08:07:44 -0400</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/php/">PHP</category><link>http://www.anyexample.com/programming/php/gd___freetype_text_label_generator.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/php/gd___freetype_text_label_generator.xml</guid><title>Gd / FreeType text label generator</title><description>This is an example of using Gd / FreeType to generate image text labels with TTF font. Provided script could be used as "text rasterization service" to generate arbitrarily text-images for a web site. MD5-based authorization is used to avoid image generation by unauthorized users. </description><pubDate>Tue, 19 Jun 2007 04:58:41 -0400</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/c/">C</category><link>http://www.anyexample.com/programming/c/qsort__sorting_array_of_strings__integers_and_structs.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/c/qsort__sorting_array_of_strings__integers_and_structs.xml</guid><title>qsort: sorting array of strings, integers and structs</title><description>qsort() is standard C function for sorting arrays. It is defined by ISO C standard, and implemented in most C/C++ standard libraries(stdlib.h). This article contains an example of using qsort() for sorting integers, strings and structs. </description><pubDate>Fri, 15 Jun 2007 10:06:04 -0400</pubDate></item><item><category domain="http://www.anyexample.com/webdev/">WebDev</category><category domain="http://www.anyexample.com/webdev/css/">CSS</category><link>http://www.anyexample.com/webdev/css/css_reset_styles.xml</link><guid isPermaLink="true">http://www.anyexample.com/webdev/css/css_reset_styles.xml</guid><title>CSS Reset Styles</title><description>This is an example of CSS style sheet which resets presentation of every HTML tag (this technique is also called 'css zeroing'). This is useful for developing CSS-based sites with crossbrowser conformity. </description><pubDate>Mon, 04 Jun 2007 11:40:15 -0400</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/php/">PHP</category><link>http://www.anyexample.com/programming/php/uploading_files_to_amazon_s3_with_rest_api.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/php/uploading_files_to_amazon_s3_with_rest_api.xml</guid><title>Uploading files to Amazon S3 with REST API</title><description>Here is an example of command line non-interactive php script which uploads file to Amazon S3 (Simple Storage Service). Additional libraries like HMAC-SHA1 are not required.</description><pubDate>Thu, 31 May 2007 12:27:30 -0400</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/php/">PHP</category><link>http://www.anyexample.com/programming/php/completely_disable_any_browser_caching.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/php/completely_disable_any_browser_caching.xml</guid><title>Completely disable any browser caching</title><description>Here is a simple function which sends combination of headers that completely disable any browser caching.</description><pubDate>Thu, 31 May 2007 07:43:23 -0400</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/php/">PHP</category><link>http://www.anyexample.com/programming/php/redirect_function_with_permanent_301_redirect_support.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/php/redirect_function_with_permanent_301_redirect_support.xml</guid><title>Redirect function with permanent 301 redirect support</title><description>Here is an example of simple function ae_redir() for HTTP redirect. It supports relative site paths and permanent(seo-compatible) redirects. There is also function ae_redir_die() which stops execution of script after sending redirect. </description><pubDate>Thu, 31 May 2007 07:29:25 -0400</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/php/">PHP</category><link>http://www.anyexample.com/programming/php/bar_chart_html_generator.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/php/bar_chart_html_generator.xml</guid><title>Bar chart HTML generator</title><description>This article contains PHP function ae_bar_html for generating HTML/CSS based one-column bar charts. It is suitable for simple diagrams and does not require libgd.</description><pubDate>Mon, 07 May 2007 08:43:33 -0400</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/php/">PHP</category><link>http://www.anyexample.com/programming/php/making_xml_xslt_driven_site_using_php.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/php/making_xml_xslt_driven_site_using_php.xml</guid><title>Making XML/XSLT driven site using PHP</title><description>XML and XSLT technologies provides standard ways of separation of presentation and data. 
		This article contains an example of simple php "xslt engine" for XML driven web-sites which implements 
		caching techniques and Apache-based XML file processing. 
		</description><pubDate>Tue, 17 Apr 2007 14:51:05 -0400</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/cplusplus/">C++</category><link>http://www.anyexample.com/programming/cplusplus/cplusplus_dynamic_array_template_class.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/cplusplus/cplusplus_dynamic_array_template_class.xml</guid><title>C++ dynamic array template class</title><description>This article provides example of dynamic array implementation using C++ templates. It uses standard malloc/realloc memory allocation functions and simple "doubling size" resizing strategy. Our AeDynArray class interface resembles MFC standard CArray class, but uses only standard C libraries.</description><pubDate>Fri, 13 Apr 2007 14:29:16 -0400</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/php/">PHP</category><link>http://www.anyexample.com/programming/php/php_multiple_photo_thumbnail_generator.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/php/php_multiple_photo_thumbnail_generator.xml</guid><title>PHP multiple photo thumbnail generator</title><description>Built-in PHP library gd does not have ready-to-use function for photo(jpeg) thumbnail generation. Although there are many such examples on the net, they are usually not suitable for effective generating series of thumbnails (240x240, 140x140, 80x80). This article provides php function thumbnail_generator and trivial image uploading script, which generates series of thumbnails.</description><pubDate>Thu, 29 Mar 2007 11:16:00 -0500</pubDate></item><item><category domain="http://www.anyexample.com/programming/">Programming</category><category domain="http://www.anyexample.com/programming/php/">PHP</category><link>http://www.anyexample.com/programming/php/5_useful_php_functions_for_mysql_data_fetching.xml</link><guid isPermaLink="true">http://www.anyexample.com/programming/php/5_useful_php_functions_for_mysql_data_fetching.xml</guid><title>5 useful PHP functions for MySQL data fetching</title><description>PHP usually comes with mysql extension mysql (mysql_... functions) 
		which is rather low-level and requires writing too much code for a trivial tasks: 
		error-checked execution of SQL queries, getting single row from SQL table, getting value from SQL table cell, etc. 
		OOP mysqli extension isn't any better. 
		In this article we present 5 useful functions which greatly simplify majority of real-life MySQL operations. 
		</description><pubDate>Wed, 21 Mar 2007 08:20:41 -0500</pubDate></item></channel></rss>
