<?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>Cristian Radulescu &#187; Programming</title> <atom:link href="http://cristian-radulescu.ro/category/programming/feed" rel="self" type="application/rss+xml" /><link>http://cristian-radulescu.ro</link> <description>PHP // MySql // Linux // Android</description> <lastBuildDate>Sun, 22 Jan 2012 21:44:00 +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>Display random posts in WordPress</title><link>http://cristian-radulescu.ro/article/display-random-posts-in-wordpress.html</link> <comments>http://cristian-radulescu.ro/article/display-random-posts-in-wordpress.html#comments</comments> <pubDate>Thu, 25 Aug 2011 12:30:50 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress plugins]]></category> <category><![CDATA[WordPress tips]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=303</guid> <description><![CDATA[WordPress posts may be randomly displayed using the "Get random results from a MySql table" tip placed in a simple plugin. What this plugin does is to simply ad the "RAND()" value to "ORDER BY" clause in the sql query which retrieves the WordPress posts.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/display-random-posts-in-wordpress.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/display-random-posts-in-wordpress.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Get random results from a MySql table</title><link>http://cristian-radulescu.ro/article/get-random-results-from-a-mysql-table.html</link> <comments>http://cristian-radulescu.ro/article/get-random-results-from-a-mysql-table.html#comments</comments> <pubDate>Sat, 20 Aug 2011 11:52:50 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[MySQL]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[mysql random results]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=292</guid> <description><![CDATA[It is possible to retrieve random results from a MySql table using the RAND() mathematical function. In order to get the random results the RAND() function needs to be used in the ORDER BY clause.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/get-random-results-from-a-mysql-table.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/get-random-results-from-a-mysql-table.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Pretty print JavaScript with Google Chrome</title><link>http://cristian-radulescu.ro/article/pretty-print-javascript-with-google-chrome.html</link> <comments>http://cristian-radulescu.ro/article/pretty-print-javascript-with-google-chrome.html#comments</comments> <pubDate>Sat, 06 Aug 2011 11:30:25 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[Google Chrome]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[deobfuscate]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=280</guid> <description><![CDATA[The built-in Developer Tools from Google Chrome allows formatting of an inline (minified) JavaScript code to a human readable format.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/pretty-print-javascript-with-google-chrome.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/pretty-print-javascript-with-google-chrome.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Use your browser to decode base64 encoded data</title><link>http://cristian-radulescu.ro/article/use-your-browser-to-decode-base64-encoded-data.html</link> <comments>http://cristian-radulescu.ro/article/use-your-browser-to-decode-base64-encoded-data.html#comments</comments> <pubDate>Sat, 02 Oct 2010 00:51:36 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[base64]]></category> <category><![CDATA[encoding decoding]]></category> <category><![CDATA[tips and tricks]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=161</guid> <description><![CDATA[If you are dealing with base64 encoded data you may find useful to know that any modern browser can easily decode it using the Data URI scheme. All you need is pass the encoded data to the browser in the same way as you would enter a regular URL, but of course using the correct structure of the data URI scheme.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/use-your-browser-to-decode-base64-encoded-data.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/use-your-browser-to-decode-base64-encoded-data.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>PHP CLI increase memory limit</title><link>http://cristian-radulescu.ro/article/php-cli-increase-memory-limit.html</link> <comments>http://cristian-radulescu.ro/article/php-cli-increase-memory-limit.html#comments</comments> <pubDate>Sat, 03 Oct 2009 15:55:01 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[cli]]></category> <category><![CDATA[web development]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=137</guid> <description><![CDATA[When running a PHP script from command line interface (CLI), a higher memory limit may be required in order for the script to be successfully executed. This can be achieved using the "-d" or "--define" option in the command<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/php-cli-increase-memory-limit.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/php-cli-increase-memory-limit.html/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Insert value &#8220;0&#8243; for primary keys with auto increment in MySQL</title><link>http://cristian-radulescu.ro/article/insert-value-0-for-primary-keys-with-auto-increment-in-mysql.html</link> <comments>http://cristian-radulescu.ro/article/insert-value-0-for-primary-keys-with-auto-increment-in-mysql.html#comments</comments> <pubDate>Sun, 12 Jul 2009 20:11:37 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[MySQL]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[development]]></category> <category><![CDATA[primary key]]></category> <category><![CDATA[snippets]]></category> <category><![CDATA[tips and tricks]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=134</guid> <description><![CDATA[In order to insert value 0 in a field that is set as primary key for a MySQL table you need to execute the following query prior to any insert query: SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/insert-value-0-for-primary-keys-with-auto-increment-in-mysql.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/insert-value-0-for-primary-keys-with-auto-increment-in-mysql.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Remove blank lines from a textarea using Prototype</title><link>http://cristian-radulescu.ro/article/remove-blank-lines-from-a-textarea-using-prototype.html</link> <comments>http://cristian-radulescu.ro/article/remove-blank-lines-from-a-textarea-using-prototype.html#comments</comments> <pubDate>Tue, 17 Feb 2009 22:03:22 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[HTML]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[snippets]]></category> <category><![CDATA[tips and tricks]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=129</guid> <description><![CDATA[Here is a Javascript function used to remove blank lines from a textarea...<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/remove-blank-lines-from-a-textarea-using-prototype.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/remove-blank-lines-from-a-textarea-using-prototype.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Remove spaces from an input field with JavaScript</title><link>http://cristian-radulescu.ro/article/remove-spaces-from-an-input-field-with-javascript.html</link> <comments>http://cristian-radulescu.ro/article/remove-spaces-from-an-input-field-with-javascript.html#comments</comments> <pubDate>Wed, 10 Dec 2008 21:31:27 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[snippets]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=127</guid> <description><![CDATA[This is a small snippet to remove the spaces from an input field using JavaScript. It can be useful when you want a value without spaces, or when you want to replace the spaces from the input field with other characters.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/remove-spaces-from-an-input-field-with-javascript.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/remove-spaces-from-an-input-field-with-javascript.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Disable foreign key checks in MySQL</title><link>http://cristian-radulescu.ro/article/disable-foreign-key-checks-in-mysql.html</link> <comments>http://cristian-radulescu.ro/article/disable-foreign-key-checks-in-mysql.html#comments</comments> <pubDate>Mon, 24 Nov 2008 20:47:44 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[MySQL]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[development]]></category> <category><![CDATA[foreign key checks]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=104</guid> <description><![CDATA[Disabling foreign key checks in MySQL is usefull when you are dealing with tables that use foreign keys (InnoDB engine).<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/disable-foreign-key-checks-in-mysql.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/disable-foreign-key-checks-in-mysql.html/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Shell script to extract the exchange rates from BNR (Romania)</title><link>http://cristian-radulescu.ro/article/shell-script-to-extract-the-exchange-rates-from-bnr.html</link> <comments>http://cristian-radulescu.ro/article/shell-script-to-extract-the-exchange-rates-from-bnr.html#comments</comments> <pubDate>Wed, 13 Aug 2008 19:59:42 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[shell script]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/articles/script-shell-preluare-curs-valutar-bnr-87700.html</guid> <description><![CDATA[Here is a simple script to get the exchange rates.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/shell-script-to-extract-the-exchange-rates-from-bnr.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/shell-script-to-extract-the-exchange-rates-from-bnr.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Internet Explorer bug &#8211; duplicate characters</title><link>http://cristian-radulescu.ro/article/internet-explorer-bug-duplicate-characters.html</link> <comments>http://cristian-radulescu.ro/article/internet-explorer-bug-duplicate-characters.html#comments</comments> <pubDate>Sun, 02 Mar 2008 04:12:44 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[duplicate characters bug]]></category> <category><![CDATA[internet explorer]]></category> <category><![CDATA[repeating charaters bug]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/articles/bug-internet-explorer-repetare-caractere-89912.html</guid> <description><![CDATA[One of Internet Explorer versions 6 and 7 bugs, consists in repeating (duplicating) some characters from the end of some elements with the CSS atribute float.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/internet-explorer-bug-duplicate-characters.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/internet-explorer-bug-duplicate-characters.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to create a simple shell script</title><link>http://cristian-radulescu.ro/article/how-to-create-a-simple-shell-script.html</link> <comments>http://cristian-radulescu.ro/article/how-to-create-a-simple-shell-script.html#comments</comments> <pubDate>Thu, 15 Nov 2007 17:56:00 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[linux script]]></category> <category><![CDATA[shell script]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/articles/crearea-unui-script-de-bash-48214.html</guid> <description><![CDATA[Here is a simple example of creating and running (executing) a shell script. This script will display the numbers from 1 to 10.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/how-to-create-a-simple-shell-script.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/how-to-create-a-simple-shell-script.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Diacritics in web pages</title><link>http://cristian-radulescu.ro/article/diacritics-in-web-pages.html</link> <comments>http://cristian-radulescu.ro/article/diacritics-in-web-pages.html#comments</comments> <pubDate>Sat, 20 Oct 2007 13:29:00 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[HTML]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[diacritics]]></category> <category><![CDATA[html codes]]></category> <category><![CDATA[unicode encoding]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/articles/diacritice-in-paginile-web-13213.html</guid> <description><![CDATA[The usage of diacritics in web pages requires Unicode encoding.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/diacritics-in-web-pages.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/diacritics-in-web-pages.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Served from: cristian-radulescu.ro @ 2012-02-06 11:32:44 by W3 Total Cache -->
