<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>iGiBlog</title>
	
	<link>http://www.igiblog.cz</link>
	<description>web development, web design and programming</description>
	<lastBuildDate>Fri, 26 Aug 2011 21:06:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/igiblog" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="igiblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">igiblog</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Generate random birth date in MySQL table and get Age by select</title>
		<link>http://www.igiblog.cz/2011/07/generate-random-birth-date-in-mysql-table-and-get-age-by-select/</link>
		<comments>http://www.igiblog.cz/2011/07/generate-random-birth-date-in-mysql-table-and-get-age-by-select/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 12:51:54 +0000</pubDate>
		<dc:creator>Lukáš Gavenda</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP & MySQL]]></category>

		<guid isPermaLink="false">http://www.igiblog.cz/?p=204</guid>
		<description><![CDATA[Today I was solving generating of random data for testing and manipulation with the date of the birth. Here are two simple SQL queries solving both: Query for generate random date of birth in whole table UPDATE people SET date_of_birth=CONCAT_WS('-',(FLOOR( &#8230; <a href="http://www.igiblog.cz/2011/07/generate-random-birth-date-in-mysql-table-and-get-age-by-select/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I was solving generating of random data for testing and manipulation with the date of the birth.</p>
<p>Here are two simple SQL queries solving both:</p>
<p><strong>Query for generate random date of birth in whole table</strong></p>
<pre>UPDATE

people

SET

date_of_birth=CONCAT_WS('-',(FLOOR( 1900 + RAND( ) *100)),(FLOOR( 1 + RAND( ) *12 )),(FLOOR( 1 + RAND( ) *28 )))</pre>
<p><strong>Query for selecting date of birth and calculation of age in MySQL:</strong></p>
<p><strong></strong>
<pre>SELECT
date_of_birth,
DATE_FORMAT(NOW(), '%Y') - DATE_FORMAT(date_of_birth, '%Y') - (DATE_FORMAT(NOW(), '00-%m-%d') &lt; DATE_FORMAT(date_of_birth, '00-%m-%d')) AS age
FROM people</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.igiblog.cz/2011/07/generate-random-birth-date-in-mysql-table-and-get-age-by-select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco VPN on Windows 7 64bit</title>
		<link>http://www.igiblog.cz/2011/06/cisco-vpn-on-windows-7-64bit/</link>
		<comments>http://www.igiblog.cz/2011/06/cisco-vpn-on-windows-7-64bit/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 15:09:46 +0000</pubDate>
		<dc:creator>Lukáš Gavenda</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.igiblog.cz/?p=201</guid>
		<description><![CDATA[I just got to project, which is hosted on server, where the developers has to connect via Cisco VPN to upload stuff or access SSH. Problem is, that Cisco is unable to create client, which would run with no troubles &#8230; <a href="http://www.igiblog.cz/2011/06/cisco-vpn-on-windows-7-64bit/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just got to project, which is hosted on server, where the developers has to connect via Cisco VPN to upload stuff or access SSH. Problem is, that <strong>Cisco is unable</strong> to create client, which would run with no troubles on <strong>Windows 7 64bit</strong>!!! Solution is quiet simple:<span id="more-201"></span></p>
<p>When You download and start installation of the client (mine was: vpnclient-winx64-msi-5.0.07.0290-k9.exe), You can start installation, but in one of the first steps will error occur:</p>
<blockquote><p><strong>installation ended prematurely because of an error</strong></p></blockquote>
<p>Fix which worked for me was following:</p>
<ol>
<li>Delete whole registry key (better do backup first, by right-click this key and select Export): <strong>HKEY_CURRENT_USER\SOFTWARE\Classes\Wow6432Node\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}</strong></li>
<li>Start commnad line as an administrator and type: <strong>regsvr32 c:\windows\syswow64\vbscript.dll</strong></li>
<li>Start installation again and it should work</li>
<li>Restart your machine after install when promted</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.igiblog.cz/2011/06/cisco-vpn-on-windows-7-64bit/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Joomla: get category ID in template</title>
		<link>http://www.igiblog.cz/2011/05/joomla-get-category-id-in-template/</link>
		<comments>http://www.igiblog.cz/2011/05/joomla-get-category-id-in-template/#comments</comments>
		<pubDate>Mon, 16 May 2011 10:36:11 +0000</pubDate>
		<dc:creator>Lukáš Gavenda</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[id]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.igiblog.cz/?p=191</guid>
		<description><![CDATA[I just needed to specify special layout for the articles of selected categories. I was looking for some solution online, but none of them worked. Mostly you can find this: JRequest::getInt('catid'); or JRequest::getInt('catid', '', 'get'); Maybe they worked in some &#8230; <a href="http://www.igiblog.cz/2011/05/joomla-get-category-id-in-template/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just needed to specify special layout for the articles of selected categories. I was looking for some solution online, but none of them worked. Mostly you can find this:</p>
<pre>JRequest::getInt('catid');</pre>
<p>or</p>
<pre>JRequest::getInt('catid', '', 'get');</pre>
<p><span id="more-191"></span></p>
<p>Maybe they worked in some other version of Joomla, but only working code I found is this (little modified by me to return integer values):</p>
<pre>

function getCategory() {
$iId = JRequest::getVar('id',0);
$database = &amp;JFactory::getDBO();
if(JRequest::getVar('view', 0) == "section"){
return (int) JRequest::getVar( 'id', 0);
}else if(Jrequest::getVar( 'view', 0) == "category"){
$sql = "SELECT id FROM #__categories WHERE id = '$iId'";
$database-&gt;setQuery( $sql );
$row=$database-&gt;loadResult();
return (int) $row;
}else if(Jrequest::getVar('view', 0) == "article"){
$temp = explode(":",JRequest::getVar('id',0));
$sql = "SELECT catid FROM #__content WHERE id = ".$temp[0];
$database-&gt;setQuery( $sql );
$row=$database-&gt;loadResult();
return (int) $row;
}
}
$categoryId = getCategory();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.igiblog.cz/2011/05/joomla-get-category-id-in-template/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Magento: Changing Tax class on all products</title>
		<link>http://www.igiblog.cz/2011/05/magento-changing-tax-class-on-all-products/</link>
		<comments>http://www.igiblog.cz/2011/05/magento-changing-tax-class-on-all-products/#comments</comments>
		<pubDate>Tue, 03 May 2011 23:14:27 +0000</pubDate>
		<dc:creator>Lukáš Gavenda</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[tax]]></category>
		<category><![CDATA[tax-class]]></category>
		<category><![CDATA[tax_class_id]]></category>

		<guid isPermaLink="false">http://www.igiblog.cz/?p=183</guid>
		<description><![CDATA[I was just asked to update tax classes on products in the catalogue. I found a easy and fast solution. Connect to your database and find the table called: yourStorePrefix_eav_attribute and find row containing name of attribute: tax_class_id (this may differ &#8230; <a href="http://www.igiblog.cz/2011/05/magento-changing-tax-class-on-all-products/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was just asked to update tax classes on products in the catalogue. I found a easy and fast solution.<span id="more-183"></span></p>
<p>Connect to your database and find the table called: yourStorePrefix_eav_attribute and find row containing name of attribute: tax_class_id <strong>(this may differ in some versions/installations of magento!) </strong>- mine had ID: <strong>81</strong></p>
<p>Now we have to find out what value is assigned to the prefered tax class, which we want assign to all products. You can find it out in the table called: yourStorePrefix_tax_class. Mine was: <strong>2</strong></p>
<p>Than go to you sql query editor and run the following command:</p>
<pre>UPDATE yourStorePrefix_catalog_product_entity_int SET value=2 WHERE attribute_id=81</pre>
<p><strong>P.S.: Do not forget to renew all cache and rebuild all catalogue indexes &#8211; otherwise this change will not work on frontend!</strong></p>
<p>That`s all folks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.igiblog.cz/2011/05/magento-changing-tax-class-on-all-products/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SOLVED: Magento keeps logging out from administration</title>
		<link>http://www.igiblog.cz/2011/01/solved-magento-keeps-logging-out-from-administration/</link>
		<comments>http://www.igiblog.cz/2011/01/solved-magento-keeps-logging-out-from-administration/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 21:33:26 +0000</pubDate>
		<dc:creator>Lukáš Gavenda</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[logging out]]></category>
		<category><![CDATA[logout]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.igiblog.cz/?p=173</guid>
		<description><![CDATA[I just spent couple of hours by finding out, why is my Magento administration logging me out after moving my Magento store to new server. I found many hacks, modification and setup tips on the Google, but anything helped to &#8230; <a href="http://www.igiblog.cz/2011/01/solved-magento-keeps-logging-out-from-administration/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just spent couple of hours by finding out, why is my Magento administration logging me out after moving my Magento store to new server. I found many hacks, modification and setup tips on the Google, but anything helped to me.<span id="more-173"></span>This caused also dysfunction of the part of the administration, like image upload or switching among different parts of the Magento administration. Solution in my case was quiet easy, but hard to find:</p>
<p>I am using Suhosin php extension and I had to change one of the config values from:</p>
<pre>suhosin.session.encrypt = On</pre>
<p>to:</p>
<pre>suhosin.session.encrypt = Off</pre>
<p>This solved my whole problem with sessions. Hope it helps to you too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.igiblog.cz/2011/01/solved-magento-keeps-logging-out-from-administration/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>SOLVED: Firefox – list of opened tabs with thumbnails?</title>
		<link>http://www.igiblog.cz/2010/08/solved-firefox-list-of-opened-tabs-with-thumbnails/</link>
		<comments>http://www.igiblog.cz/2010/08/solved-firefox-list-of-opened-tabs-with-thumbnails/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 08:27:20 +0000</pubDate>
		<dc:creator>Lukáš Gavenda</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[tabs]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.igiblog.cz/?p=159</guid>
		<description><![CDATA[Previously I wrote about a hidden feature of Firefox, which I accidentally found while browsing some specific  web-pages (more here). Today I found a solution how to enable this feature for any case. It is so simple Just open new &#8230; <a href="http://www.igiblog.cz/2010/08/solved-firefox-list-of-opened-tabs-with-thumbnails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Previously I wrote about a hidden feature of Firefox, which I accidentally found while browsing some specific  web-pages (<a href="http://www.igiblog.cz/2010/05/hidden-firefox-feature-list-of-opened-tabs-with-thumbnails/">more here</a>).</p>
<p>Today I found a solution how to enable this feature for any case. It is so simple <img src='http://www.igiblog.cz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <span id="more-159"></span><br />
Just open new tab in your Firefox browser and type:</p>
<pre>
about:config
</pre>
<p>Than just confirm the dialog, that you will be careful on this page and you will get to the Firefox config page, where you can edit almost any Firefox feature.<br />
Find this value:</p>
<pre>
browser.ctrlTab.previews
</pre>
<p>and set it to <strong>true</strong><br />
That`s it! <img src='http://www.igiblog.cz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now you can close config window and your keyboard shortcuts: Ctrl+Tab &amp; Ctrl+Shift+Tab will get new dimension <img src='http://www.igiblog.cz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  It works as follow:</p>
<ul>
<li>If You hit Ctrl+Tab quickly it will browse your tabs as default &#8211; immediately switch into last viewed tab</li>
<li>If You hold Ctrl and continuously click Tab button it shows you just small previews of tabs (I can see only 6 of them) &#8211; from this preview windows is also one of the options how to get to large tabs preview, where you can see all opened tabs at once &#8211; it can be done by activation button: &#8220;Show all XY tabs&#8221; (by navigating via Tab or by clicking button with mouse cursor)</li>
<li>Last option is to use shortcut Crtl+Shift+Tab &#8211; this will navigate you directly into iLayer with all opened tabs listed. At the moment when this large list will appear, you can also start typing name of the tab you are looking for and Fireox will filter them out for you.</li>
</ul>
<p style="text-align: center;"><a rel="lightbox" href="http://www.igiblog.cz/wp-content/uploads/tabs-thumbnails-firefox.jpg"><img class="aligncenter size-medium wp-image-135" title="tabs-thumbnails-firefox" src="http://www.igiblog.cz/wp-content/uploads/tabs-thumbnails-firefox-300x215.jpg" alt="Thumbnails of opened tabs in Firefox with search box" width="300" height="215" /></a></p>
<p>By this I also closed and issue in bugzilla (mentioned in previous article), because it is solved now. Enjoy! <img src='http://www.igiblog.cz/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.igiblog.cz/2010/08/solved-firefox-list-of-opened-tabs-with-thumbnails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Maps API &amp; PHP+MySQL – working with radius and distance</title>
		<link>http://www.igiblog.cz/2010/06/google-maps-api-phpmysql-working-with-radius-and-distance/</link>
		<comments>http://www.igiblog.cz/2010/06/google-maps-api-phpmysql-working-with-radius-and-distance/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 15:13:26 +0000</pubDate>
		<dc:creator>Lukáš Gavenda</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Tutorials & guides]]></category>
		<category><![CDATA[gmaps]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.igiblog.cz/2010/06/google-maps-api-phpmysql-working-with-radius-and-distance-2/</guid>
		<description><![CDATA[I needed to find out how to work with Google Geo API in my last project and especially with calculating a radius and distance between two geo points. Another goal was to get a latitude and longtitude from the address &#8230; <a href="http://www.igiblog.cz/2010/06/google-maps-api-phpmysql-working-with-radius-and-distance/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I needed to find out how to work with Google Geo API in my last project and especially with calculating a radius and distance between two geo points. Another goal was to get a latitude and longtitude from the address typed in the register form (in the background). Finally it was quiet easy. Here is the solution:<span id="more-152"></span>First of all I had to collect geo data from the registering users, so that I could store their latitude and longitude from their address typed into the register form. As long as I had more fields presenting an address I had to merge data to one single string and send them to Google GEO API, which sends me a response with complete address including latitude and longitude and much more data than I expected. But I will get to this response later. Now I will show You how I collect data from the register form and send them to Google GEO API.</p>
<p>Lets say, that I have following form:</p>
<pre>
&lt;form action=&quot;#&quot; method=&quot;post&quot;&gt;
		&lt;input id=&quot;googleCity&quot; name=&quot;googleCity&quot; type=&quot;hidden&quot; /&gt;
		&lt;input id=&quot;googleDistinct&quot; name=&quot;googleDistinct&quot; type=&quot;hidden&quot; /&gt;
		&lt;input id=&quot;googleCountry&quot; name=&quot;googleCountry&quot; type=&quot;hidden&quot; /&gt;
		&lt;input id=&quot;googleCompleteAddress&quot; name=&quot;googleCompleteAddress&quot; type=&quot;hidden&quot; /&gt;
		&lt;input id=&quot;googleLatitude&quot; name=&quot;googleLatitude&quot; type=&quot;hidden&quot; /&gt;
		&lt;input id=&quot;googleLongtitude&quot; name=&quot;googleLongtitude&quot; type=&quot;hidden&quot; /&gt;
		&lt;input id=&quot;googleStatus&quot; name=&quot;googleStatus&quot; type=&quot;hidden&quot; /&gt;
&lt;!-- Some other fields like name etc. --&gt;
	&lt;label for=&quot;street&quot;&gt;
		&lt;input id=&quot;street&quot; name=&quot;street&quot; type=&quot;text&quot; /&gt;
	&lt;/label&gt;
	&lt;label for=&quot;city&quot;&gt;
		&lt;input id=&quot;city&quot; name=&quot;city&quot; type=&quot;text&quot; /&gt;
	&lt;/label&gt;
	&lt;label for=&quot;zip&quot;&gt;
		&lt;input id=&quot;zip&quot; name=&quot;zip&quot; type=&quot;text&quot; /&gt;
	&lt;/label&gt;
&lt;!-- Some other fields like email etc.--&gt;
		&lt;input type=&quot;submit&quot; value=&quot;Register&quot; /&gt;
&lt;/form&gt;
</pre>
<p>Now I have to parse typed values by user into the javascript code, which will immidiately send this string into Google Maps API. This part of code is fit for a jQuery library and You have to also include Google Maps API with Your API key which can be genarated on <a href="http://code.google.com/intl/cs/apis/maps/signup.html" title="Page where You can generate Your Google Maps API key for Your web application">Google Maps API Sign Up page</a>.<br />
Here is the basic code for loading all neccessary libraries:</p>
<pre>
&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.google.com/jsapi?key=HereGoesYourGoogleMapsApiKeyGeneratedOnLinkAbove&quot;&gt;&lt;/script&gt;
            &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
                    google.load(&quot;maps&quot;, &quot;2.x&quot;);
                    google.load(&quot;jquery&quot;, &quot;1.4.2&quot;);
              &lt;/script&gt;
</pre>
<p>Now I will type some code, which will handle typed strings into the form and send them to Google Maps API. Here is the code:</p>
<pre>
    $(document).ready(function(){
      var geo = new GClientGeocoder();
//live function checks all the time fields street, city and zip for their blur action, at this moment it tries to get Geo data from Google - in regular way it should take max. 3 calls to Google
            $("input#street,input#city,input#zip").live("blur", function(){
//here is being built a variable including data from all address fields
                var address = $('input#frmregisterUserForm-ulice').val() + ', '+ $('input#frmregisterUserForm-cisloPopisne').val() + ', ' + $('input#frmregisterUserForm-mesto').val();
//let`s send complete address to Google and try to request data from API
                geo.getLocations(address, function (result){
                    statusCode = result.Status.code;
                    if (statusCode &#038;&#038; statusCode == '200') {
//status code 200 means, that response is OK and Google found the place I was looking for and it returns me all data I want - so I will store them into hidden fields inside form defined above
                        $("input#googleDistinct").val( result.Placemark[0].AddressDetails.Country.AdministrativeArea.AdministrativeAreaName );
                        $("input#googleCity").val( result.Placemark[0].AddressDetails.Country.AdministrativeArea.Locality.LocalityName );
                        $("input#googleCountry").val( result.Placemark[0].AddressDetails.Country.CountryName );
                        $("input#googleCompleteAddress").val( result.Placemark[0].address );
                        $("input#googleLongitude").val( geocode[0] );
                        $("input#googleLatitude").val( geocode[1] );
                        $("input#googleStatus").val( result.Status.code );
                    } else {
                        $("input#frmregisterUserForm-googleStatus").val( result.Status.code );
                    }
                });
            });
    });
</pre>
<p>As You can see, if You will provide to google just the partial address, Google Maps API will return to You complete address incl. distinct, country and much more information about this location incl. coordinates of that place &#8211; what we wanted the most.</p>
<pre>
_xdc_._0g7bwexyl &#038;&#038; _xdc_._0g7bwexyl( {
  "name": "Václavské náměstí, 1, Praha",
  "Status": {
    "code": 200,
    "request": "geocode"
  },
  "Placemark": [ {
    "id": "p1",
    "address": "Václavské náměstí 846/1, 110 00 Praha 1-Nové Město, Česká republika",
    "AddressDetails": {
   "Accuracy" : 8,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "Hlavní město Praha",
         "SubAdministrativeArea" : {
            "Locality" : {
               "DependentLocality" : {
                  "DependentLocalityName" : "Nové Město",
                  "PostalCode" : {
                     "PostalCodeNumber" : "110 00"
                  },
                  "Thoroughfare" : {
                     "ThoroughfareName" : "Václavské náměstí 846/1"
                  }
               },
               "LocalityName" : "Praha 1"
            },
            "SubAdministrativeAreaName" : "Praha"
         }
      },
      "CountryName" : "Česká republika",
      "CountryNameCode" : "CZ"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 50.0873298,
        "south": 50.0810346,
        "east": 14.4271808,
        "west": 14.4208856
      }
    },
    "Point": {
      "coordinates": [ 14.4240332, 50.0841822, 0 ]
    }
  } ]
}
 )
</pre>
<p>Now I must store all these data into the database. I will not describe here some main procedure of how to insert some data into the <a href="http://www.mysql.org" title="MySQL database official website">MySQL database</a>. But I will describe how get closest places stored in the database from the defined coordinates.</p>
<p>I will describe this procedure in the next article <img src='http://www.igiblog.cz/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.igiblog.cz/2010/06/google-maps-api-phpmysql-working-with-radius-and-distance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hidden Firefox feature – list of opened tabs with thumbnails?</title>
		<link>http://www.igiblog.cz/2010/05/hidden-firefox-feature-list-of-opened-tabs-with-thumbnails/</link>
		<comments>http://www.igiblog.cz/2010/05/hidden-firefox-feature-list-of-opened-tabs-with-thumbnails/#comments</comments>
		<pubDate>Tue, 18 May 2010 15:29:23 +0000</pubDate>
		<dc:creator>Lukáš Gavenda</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[tabs]]></category>
		<category><![CDATA[thumbnails]]></category>

		<guid isPermaLink="false">http://www.igiblog.cz/?p=133</guid>
		<description><![CDATA[Today I accidentaly found, that firefox has probably hidden feature. I was always wondering for some feature in the Firefox, which would work similar like Switcher for Windows Aero enabled systems. I mean feature which will offer You list of &#8230; <a href="http://www.igiblog.cz/2010/05/hidden-firefox-feature-list-of-opened-tabs-with-thumbnails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I accidentaly found, that firefox has probably hidden feature. I was always wondering for some feature in the Firefox, which would work similar like <a href="http://insentient.net/">Switcher</a> for Windows Aero enabled systems. I mean feature which will offer You list of opened tabs, and You can easily choose one of Your interest via thumbanil or via some letters typed in searchbox.<span id="more-133"></span><br />
Today I accidentaly opened <a href="http://www.firmy.cz/detail/163565-multimedia-atelier-praha-podoli.html"><strong>this URL</strong></a> and than I left it opened. While I was looking for some exact Tab via shortcut <strong>Ctrl+Shift+Tab</strong>, something weird happened. On this tab poped up some kind of overlay in firefox, which was offering me list of opened tabs including thumbnails and there is also a searchbox, which is filtering these thumbnails while You are typing some letters inside it. Here is a screenshot of this list:<br />
<a rel="lightbox" href="http://www.igiblog.cz/wp-content/uploads/tabs-thumbnails-firefox.jpg"><img class="aligncenter size-medium wp-image-135" title="tabs-thumbnails-firefox" src="http://www.igiblog.cz/wp-content/uploads/tabs-thumbnails-firefox-300x215.jpg" alt="Thumbnails of opened tabs in Firefox with search box" width="300" height="215" /></a><br />
Than I checked my installed plugins list in my Firefox, but I have no special plugin installed for this feature. Has anyone of You an idea, how did I opened this list of opened tabs? And why is it working only <a href="http://www.firmy.cz/detail/163565-multimedia-atelier-praha-podoli.html">on this page</a>, not for example on <a href="http://www.google.com">Google homepage</a>? And does it work for You too?</p>
<p>UPDATE: I reported this to Firefox bugzilla under <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=566741">id: 566741</a>. So we will see, what they will do or tell us about this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.igiblog.cz/2010/05/hidden-firefox-feature-list-of-opened-tabs-with-thumbnails/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I am running on my own server!</title>
		<link>http://www.igiblog.cz/2010/02/i-am-running-on-my-own-server/</link>
		<comments>http://www.igiblog.cz/2010/02/i-am-running-on-my-own-server/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 02:02:37 +0000</pubDate>
		<dc:creator>Lukáš Gavenda</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.igiblog.cz/?p=111</guid>
		<description><![CDATA[Yes, it is true now, all my websites are running on my own server now. I was planning this step for a while already, but there were some troubles all the time.  Finally 2 weeks ago happened something what really &#8230; <a href="http://www.igiblog.cz/2010/02/i-am-running-on-my-own-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yes, it is true now, all my websites are running on my own server now. I was planning this step for a while already, but there were some troubles all the time.  Finally 2 weeks ago happened something what really forced me to make this step finally!<span id="more-111"></span>Maybe You are asking what happened &#8230; well it is well known in my country what happened in past 2 weeks. One of the biggest webhosting company <a title="Banan.cz - webhosting" href="http://banan.cz" target="_blank">banan.cz</a> has been hacked. But not once &#8230; it was three times in a row! Well, honestly, I could get over it, if they would inform me as their client about this attack at least via email with the details what exactly happened. I found out about this issue via news portal and there was also official statement about this attack. In this statement was something like:</p>
<blockquote><p>Everything is fine now, our servers are secured and attacker stealed only public available information searchable via WHOIS.</p></blockquote>
<p>At this moment I said ok &#8230; everyone can have some security issue, which can be used by an attacker. They sent me a new password for the administration and I changed it to new one. But 2 days after that, was this company hacked again and at this moment I also received an email with my public WHOIS info, but also md5 has of my new password I did steup after first attack &#8230; Now I was sure, that banan.cz is not being too honest to their clients and they were lying in every official statement they made. They also lied at their second official statement, which was actually almost same as first one, but they added an info about last attack, that no new data were stolen and in fact attacker just sent new emails to the all clients of banan.cz using email database from the first attack &#8230; pfff liars <img src='http://www.igiblog.cz/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  how could attacker get my latest password hash with database from first attack? Maybe attacker is an magician or something like that &#8230; <img src='http://www.igiblog.cz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here is an email I got from an attacker:</p>
<p><a href="http://www.igiblog.cz/wp-content/uploads/banan-hacked1.jpg"><img class="alignnone size-medium wp-image-116" title="banan-hacked" src="http://www.igiblog.cz/wp-content/uploads/banan-hacked1-300x223.jpg" alt="" width="300" height="223" /></a></p>
<p>Immidiately after I read this email I started proccess of the server setup and domain transfer. I asked my friend to setup a server for me and place it in the serverhousing datacenter in Prague. Whole thing took about a week and now I am free. Free from being depend on company who is lying to me.</p>
<p>I have my own server and banan is hosting 42 domain less <img src='http://www.igiblog.cz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.igiblog.cz/2010/02/i-am-running-on-my-own-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL visual database design</title>
		<link>http://www.igiblog.cz/2009/12/mysql-visual-database-design/</link>
		<comments>http://www.igiblog.cz/2009/12/mysql-visual-database-design/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 11:00:47 +0000</pubDate>
		<dc:creator>Lukáš Gavenda</dc:creator>
				<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://igiblog.cz/?p=82</guid>
		<description><![CDATA[I was looking for some nice freeware visual mysql database designer couple of weeks ago. I found two of them: DBDesigner 4 and MySQL Workbench. I must say, that both programs are really very similar, I mean from the view &#8230; <a href="http://www.igiblog.cz/2009/12/mysql-visual-database-design/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was looking for some nice freeware visual mysql database designer couple of weeks ago. I found two of them: <strong>DBDesigner 4</strong> and <strong>MySQL Workbench</strong>. I must say, that both programs are really very similar, I mean from the view of the UI and menus structure. I gave a little user testing to both of them and designing database using these tools is very easy and fast&#8230;<span id="more-82"></span><br />
I figured out that it is more comfortable design databases this way. You can see on the one screen all the tables structure inside database and all of its connections among them. This way is a database designer able to figure out best foreign keys connections among the tables and optimise database much better way. Main difference between these two applications is that MySQL Workbench supports only MySQL databases, otherwise DBDesigner 4 suppports following: <strong>MySQL, SQLite, Oracle, MSSQL and ODBC</strong>.</p>
<div id="attachment_91" class="wp-caption alignnone" style="width: 160px"><a rel="lightbox" href="http://igiblog.cz/wp-content/uploads/db_designer.jpg"><img class="size-thumbnail wp-image-91" title="DBDesigner 4" src="http://igiblog.cz/wp-content/uploads/db_designer-150x150.jpg" alt="DBDesigner 4" width="150" height="150" /></a><p class="wp-caption-text">DBDesigner 4</p></div>
<div id="attachment_90" class="wp-caption alignnone" style="width: 160px"><a rel="lightbox" href="http://igiblog.cz/wp-content/uploads/mysql_workbench.jpg"><img class="size-thumbnail wp-image-90" title="MySQL Workbench" src="http://igiblog.cz/wp-content/uploads/mysql_workbench-150x150.jpg" alt="MySQL Workbench" width="150" height="150" /></a><p class="wp-caption-text">MySQL Workbench</p></div>
<p>DBDesigner seems to work more smoother and faster (I mean from the view of the perfomance of the computer) but this is probably only one difference I found between these programs. I decided to stay with DBDesigner 4 mainly because of its wider support for the different databases. Give it a try and choose Yours:<br />
<a href="http://dev.mysql.com/downloads/select.php?id=8">MySQL Workbench</a><br />
<a href="http://www.fabforce.net/dbdesigner4/">DBDesigner 4</a></p>
<p><strong>UPDATE:</strong></p>
<h3>DB DESIGNER 4 &#8211; localhost connection problem</h3>
<p>I found a little problem with the DBDesigner 4 and it is its connection to the localhost server and probably any other. You will get and error, that You have wrong username aor password in the connection settings. Here is the guide how to fix the problem:</p>
<ol>
<li>Create a new MySQL user for Your mysql database</li>
<li>Add global privilleges to this user</li>
<li>Run following query:
<pre lang="mysql">SELECT * FROM mysql.`user`</pre>
</li>
<li>One of the result lines should be something like this:
<pre lang="mysql">'localhost', 'dbd4', '*DBC24926E0821352A2CE9593D8909FBFFE85CA74', 'Y',
'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y',
'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', '', '', '', '',
0, 0, 0, 0</pre>
<p>&#8230;in case, that You will add a username db4 and password db4 too.</li>
<li>Now run another query:
<pre lang="mysql">UPDATE mysql.user SET Password = OLD_PASSWORD('dbd4')
WHERE Host = 'localhost' AND User = 'dbd4';</pre>
</li>
<li>Now should connection to the localhost work from the DBDesigner 4</li>
<li>If not, please make sure, that Your MySQL server is running on port 3306, otherwise DBDesigner 4 will not be able to connect to Your database!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.igiblog.cz/2009/12/mysql-visual-database-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

