<?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>iGiBlog</title>
	<atom:link href="https://www.igiblog.cz/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.igiblog.cz</link>
	<description>web development, web design and programming</description>
	<lastBuildDate>Thu, 03 Oct 2024 14:27:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>UPDATE no. 2: Implementation Guide: SUM values if font is bold &#8211; Google Drive Spreadsheet</title>
		<link>https://www.igiblog.cz/2018/04/implementation-guide-sum-values-if-font-is-bold-google-drive-spreadsheet/</link>
					<comments>https://www.igiblog.cz/2018/04/implementation-guide-sum-values-if-font-is-bold-google-drive-spreadsheet/#comments</comments>
		
		<dc:creator><![CDATA[Lukáš Gavenda]]></dc:creator>
		<pubDate>Fri, 06 Apr 2018 13:00:19 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://www.igiblog.cz/?p=270</guid>

					<description><![CDATA[<p>NEW: Screen recording of the solution at the end of this post. This is the second part of the guide&#46;&#46;&#46;</p>
The post <a href="https://www.igiblog.cz/2018/04/implementation-guide-sum-values-if-font-is-bold-google-drive-spreadsheet/">UPDATE no. 2: Implementation Guide: SUM values if font is bold – Google Drive Spreadsheet</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></description>
										<content:encoded><![CDATA[<p><strong>NEW:</strong> Screen recording of the solution at the end of this post.</p>
<p>This is the second part of the guide on how to implement custom functions into Google Drive Spreadsheets.</p>
<p><strong>UPDATE:</strong> If you would like to easily update calculated values from this custom function than you have to go the following way: <a href="http://stackoverflow.com/questions/17341399/refresh-data-retrieved-by-a-custom-function-in-google-spreadsheet">http://stackoverflow.com/questions/17341399/refresh-data-retrieved-by-a-custom-function-in-google-spreadsheet</a> &#8211; I just followed mentioned guide there and I have an extra button in the menu now, which allows me easily refresh all values which were calculated by my custom function.</p>
<p>I have been receiving many questions about how exactly to use the script mentioned in the <a title="Script: SUM values if font is bold – Google Drive Spreadsheet" href="https://www.igiblog.cz/2013/02/script-sum-values-if-font-is-bold-google-drive-spreadsheet/">previous part of this guide</a> so I decided, that it would be better to write it down incl. screenshots.<br />
<span id="more-270"></span><br />
1. Open some of Your already created spreadsheets or create a blank one</p>
<p>2. Using the main menu at the top choose: Tools -&gt; Script manager</p>
<p><a href="https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h12_32.png" rel="lightbox"><img decoding="async" class="alignleft size-thumbnail wp-image-273" src="https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h12_32-150x150.png" alt="Scripts manager screenshot" width="150" height="150" srcset="https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h12_32-150x150.png 150w, https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h12_32-50x50.png 50w" sizes="(max-width: 150px) 100vw, 150px" /></a></p>
<div style="clear: both;"></div>
<p>3. In this dialog click the <strong>New</strong> button and it will guide You to the Scripts editor</p>
<p>4. Paste following code into the editor, give some name to the script (top left corner input field), and Save it (Ctrl+S)</p>
<pre>
function sumWhereIsFontWeight(rangeSpecification) {

var sheet = SpreadsheetApp.getActiveSpreadsheet();
var range = sheet.getRange(rangeSpecification);

var x = 0;

for (var i = 1; i &lt;= range.getNumRows(); i++) {
for (var j = 1; j &lt;= range.getNumColumns(); j++) {

var cell = range.getCell(i, j);

if(cell.getFontWeight() == 'bold')
x += parseFloat(cell.getValue());
}
}

return x;
}
</pre>
<p><a href="https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h07_42.png" rel="lightbox"><img decoding="async" class="alignleft size-thumbnail wp-image-271" src="https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h07_42-150x150.png" alt="Screenshot of Script editor" width="150" height="150" srcset="https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h07_42-150x150.png 150w, https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h07_42-50x50.png 50w" sizes="(max-width: 150px) 100vw, 150px" /></a></p>
<div style="clear: both;"></div>
<p>4. Get back to spreadsheet window and reload Your Scrip Manager dialog (circle arrow icon in top right corner) and You should see Your newly created script</p>
<p>5. Now You should be able to use this function in Your spreadsheet. To make it more clear, I added to the A column demo of what I added into columns in the B column (of course without those slashes at the beginning &#8220;//&#8221;). Here is screenshot of demo:</p>
<p><a href="https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h12_12.png" rel="lightbox"><img decoding="async" class="alignleft size-thumbnail wp-image-272" src="https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h12_12-150x150.png" alt="Screenshot of script applied" width="150" height="150" srcset="https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h12_12-150x150.png 150w, https://www.igiblog.cz/wp-content/uploads/2013-11-15_15h12_12-50x50.png 50w" sizes="(max-width: 150px) 100vw, 150px" /></a></p>
<div style="clear: both;"> <strong>UPDATE 2 (April 6th 2018):</strong></div>
<div>I have been asked multiple times in the comments, if this solution still works etc. So I did test on my Google Drive today and here is output:</div>
<div><a href="https://www.igiblog.cz/wp-content/uploads/SUMBoldValues.gif"><img loading="lazy" decoding="async" class="alignleft size-full wp-image-353" src="https://www.igiblog.cz/wp-content/uploads/SUMBoldValues.gif" alt="" width="727" height="428" /></a></div>The post <a href="https://www.igiblog.cz/2018/04/implementation-guide-sum-values-if-font-is-bold-google-drive-spreadsheet/">UPDATE no. 2: Implementation Guide: SUM values if font is bold – Google Drive Spreadsheet</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.igiblog.cz/2018/04/implementation-guide-sum-values-if-font-is-bold-google-drive-spreadsheet/feed/</wfw:commentRss>
			<slash:comments>17</slash:comments>
		
		
			</item>
		<item>
		<title>How detect services running on 80 port at Windows 10</title>
		<link>https://www.igiblog.cz/2017/04/how-detect-services-running-on-80-port-at-windows-10/</link>
					<comments>https://www.igiblog.cz/2017/04/how-detect-services-running-on-80-port-at-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[Lukáš Gavenda]]></dc:creator>
		<pubDate>Wed, 05 Apr 2017 11:16:40 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://www.igiblog.cz/?p=337</guid>

					<description><![CDATA[<p>I was facing issue, that I needed to install web server using 80 port on my Windows 10 workstation, but&#46;&#46;&#46;</p>
The post <a href="https://www.igiblog.cz/2017/04/how-detect-services-running-on-80-port-at-windows-10/">How detect services running on 80 port at Windows 10</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></description>
										<content:encoded><![CDATA[<p>I was facing issue, that I needed to install web server using 80 port on my Windows 10 workstation, but I found out, that port is being blocked on fresh installed system. It took me some time to figure out, what exactly is using this port.</p>
<p>I got into multiple guides on stackoverflow and different discussion forums, but only one solution gave me instant answer on this.</p>
<p>There are multiple ways, how you can find such an information:</p>
<ul>
<li>using command line and netstat command</li>
<li>using Resource monitor in Windows (Win+Esc, switch to Performance tab and click Resource monitor in bottom &#8211; in new window click Network tab and open Listening ports at bottom)</li>
<li>using NET command in cmd</li>
</ul>
<p>The best and fastest way seems to me NET command, because this was only way how I was able to detect exact names of services using this port (other ways did not provide me exact name of service, mostly only info that it is being run by &#8220;System&#8221;):</p>
<pre><strong>NET stop HTTP</strong></pre>
<p>This will give you following output and also option to stop those services immidiately:</p>
<pre>C:\Users\someuser&gt;NET stop HTTP
The following services are dependent on the HTTP Service service.
Stopping the HTTP Service service will also stop these services.

SSDP Discovery
 Print Spooler
 BranchCache

Do you want to continue this operation? (Y/N) [N]: n</pre>
<p>Hope, that this will help to someone else too <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>&nbsp;</p>The post <a href="https://www.igiblog.cz/2017/04/how-detect-services-running-on-80-port-at-windows-10/">How detect services running on 80 port at Windows 10</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.igiblog.cz/2017/04/how-detect-services-running-on-80-port-at-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Get magento system paths and URLs dynamically</title>
		<link>https://www.igiblog.cz/2016/03/get-magento-system-paths-and-urls-dynamically/</link>
					<comments>https://www.igiblog.cz/2016/03/get-magento-system-paths-and-urls-dynamically/#comments</comments>
		
		<dc:creator><![CDATA[Lukáš Gavenda]]></dc:creator>
		<pubDate>Fri, 11 Mar 2016 21:43:45 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://www.igiblog.cz/?p=286</guid>

					<description><![CDATA[<p>Get URL paths of your magento folder structure – Absolute URL Path Mage::getBaseUrl() =&#62; Gets base url path e.g. http://my.website.com/&#46;&#46;&#46;</p>
The post <a href="https://www.igiblog.cz/2016/03/get-magento-system-paths-and-urls-dynamically/">Get magento system paths and URLs dynamically</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></description>
										<content:encoded><![CDATA[<p>Get URL paths of your magento folder structure – Absolute URL Path</p>
<p><strong>Mage::getBaseUrl()</strong> =&gt; Gets base url path e.g. http://my.website.com/</p>
<p><strong>Mage::getBaseUrl(‘media’</strong>) =&gt; Gets MEDIA folder path e.g. http://my.website.com/media/</p>
<p><strong>Mage::getBaseUrl(‘js’)</strong> =&gt; Gets JS folder path e.g. http://my.website.com/js/</p>
<p><strong>Mage::getBaseUrl(‘skin’)</strong> =&gt; Gets SKIN folder path e.g. http://my.website.com/skin/</p>
<p>Get DIRECTORY paths (physical location of your folders on the server) – Relative URL Path</p>
<p><strong>Mage::getBaseDir()</strong> =&gt; Gives you your Magento installation folder / root folder e.g. /home/kalpesh/workspace/magento</p>
<p><strong>Mage::getBaseDir(‘app’)</strong> =&gt; Gives you your Magento’s APP directory file location e.g. /home/kalpesh/workspace/magento/app</p>
<p><strong>Mage::getBaseDir(‘design’)</strong> =&gt; Gives you your Magento’s DESIGN directory file location e.g. /home/kalpesh/workspace/magento/design</p>
<p><strong>Mage::getBaseDir(‘media’)</strong> =&gt; Gives MEDIA directory file path</p>
<p><strong>Mage::getBaseDir(‘code’)</strong> =&gt; Gives CODE directory file path</p>
<p><strong>Mage::getBaseDir(‘lib’)</strong> =&gt; Gives LIB directory file path</p>
<p>Get Current URL – whole URL path</p>
<p><strong>Mage::helper(‘core/url’)-&gt;getCurrentUrl()</strong></p>
<p>base Mage::getBaseDir()<br />
Mage::getBaseDir(‘base’) /var/www/magento/<br />
app Mage::getBaseDir(‘app’) /var/www/magento/app/<br />
code Mage::getBaseDir(‘code’) /var/www/magento/app/code<br />
design Mage::getBaseDir(‘design’) /var/www/magento/app/design/<br />
etc Mage::getBaseDir(‘etc’) /var/www/magento/app/etc<br />
lib Mage::getBaseDir(‘lib’) /var/www/magento/lib<br />
locale Mage::getBaseDir(‘locale’) /var/www/magento/app/locale<br />
media Mage::getBaseDir(‘media’) /var/www/magento/media/<br />
skin Mage::getBaseDir(‘skin’) /var/www/magento/skin/<br />
var Mage::getBaseDir(‘var’) /var/www/magento/var/<br />
tmp Mage::getBaseDir(‘tmp’) /var/www/magento/var/tmp<br />
cache Mage::getBaseDir(‘cache’) /var/www/magento/var/cache<br />
log Mage::getBaseDir(‘log’) /var/www/magento/var/log<br />
session Mage::getBaseDir(‘session’) /var/www/magento/var/session<br />
upload Mage::getBaseDir(‘upload’) /var/www/magento/media/upload<br />
export Mage::getBaseDir(‘export’) /var/www/magento/var/export</p>The post <a href="https://www.igiblog.cz/2016/03/get-magento-system-paths-and-urls-dynamically/">Get magento system paths and URLs dynamically</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.igiblog.cz/2016/03/get-magento-system-paths-and-urls-dynamically/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>UPDATE: FATAL ERROR while cloning from Bitbucket private repository</title>
		<link>https://www.igiblog.cz/2013/04/fatal-error-while-cloning-from-bitbucket-private-repository/</link>
					<comments>https://www.igiblog.cz/2013/04/fatal-error-while-cloning-from-bitbucket-private-repository/#respond</comments>
		
		<dc:creator><![CDATA[Lukáš Gavenda]]></dc:creator>
		<pubDate>Thu, 11 Apr 2013 23:27:29 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tutorials & guides]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://www.igiblog.cz/?p=251</guid>

					<description><![CDATA[<p>FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey) If this is error, which You are getting form&#46;&#46;&#46;</p>
The post <a href="https://www.igiblog.cz/2013/04/fatal-error-while-cloning-from-bitbucket-private-repository/">UPDATE: FATAL ERROR while cloning from Bitbucket private repository</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></description>
										<content:encoded><![CDATA[<p><strong>FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)</strong><br />
If this is error, which You are getting form Bitbucket server while trying to clone Your private repository, you can try following:</p>
<ol>
<li>Start Git bash command line at the location where You want have Your repository cloned.</li>
<li>Copy clone command from Your repository web page &#8211; like: git clone git@bitbucket.org:username/repositoryName.git ./desiredTargetFolderName</li>
<li>first paste following command into bash: ssh -vT <a href="mailto:git@bitbucket.org">git@bitbucket.org</a></li>
<li>Than run clone command and it should work</li>
</ol>
<p>Hope it will help someone.</p>
<p><strong>Update:</strong></p>
<p>If You`re still having problems with pulling data  from Your repository (because of permission), check Your home ssh folder, if it contains correct public key file, usually it is:</p>
<p>~/.ssh/id_rsa.pub</p>The post <a href="https://www.igiblog.cz/2013/04/fatal-error-while-cloning-from-bitbucket-private-repository/">UPDATE: FATAL ERROR while cloning from Bitbucket private repository</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.igiblog.cz/2013/04/fatal-error-while-cloning-from-bitbucket-private-repository/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Script: SUM values if font is bold &#8211; Google Drive Spreadsheet</title>
		<link>https://www.igiblog.cz/2013/02/script-sum-values-if-font-is-bold-google-drive-spreadsheet/</link>
					<comments>https://www.igiblog.cz/2013/02/script-sum-values-if-font-is-bold-google-drive-spreadsheet/#comments</comments>
		
		<dc:creator><![CDATA[Lukáš Gavenda]]></dc:creator>
		<pubDate>Fri, 15 Feb 2013 02:58:10 +0000</pubDate>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Drive]]></category>
		<category><![CDATA[bold values]]></category>
		<category><![CDATA[Google Apps Script]]></category>
		<category><![CDATA[google drive]]></category>
		<category><![CDATA[google drive spreadsheet]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[spreadsheet]]></category>
		<category><![CDATA[sum bold values]]></category>
		<category><![CDATA[sum values]]></category>
		<guid isPermaLink="false">http://www.igiblog.cz/?p=231</guid>

					<description><![CDATA[<p>I was working on some calculations using Google Drive Spreadsheet. Than I found out, that I would need SUM values&#46;&#46;&#46;</p>
The post <a href="https://www.igiblog.cz/2013/02/script-sum-values-if-font-is-bold-google-drive-spreadsheet/">Script: SUM values if font is bold – Google Drive Spreadsheet</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></description>
										<content:encoded><![CDATA[<p>I was working on some calculations using <a title="Google Drive" href="https://drive.google.com/" target="_blank">Google Drive Spreadsheet</a>.<br />
Than I found out, that I would need SUM values only from cells, which has bold font&#8230; Than I found out, that there is no simple way, how to do that with basic functions included in Spreadsheet application. That was the moment, when I found out, that there is option create a custom fuction by my own needs using <a title="Google Apps Script" href="https://developers.google.com/apps-script/" target="_blank">Google Apps Script</a>!<br />
<span id="more-231"></span><br />
I checked existing gallery of the scripts to find out a syntax of the Google Apps Script. Than I checked their <a title="Google Apps Script documentation" href="https://developers.google.com/apps-script/" target="_blank">amazing documentation</a> and wrote my own script. Here is its code:</p>
<pre>
function sumWhereIsFontWeight(rangeSpecification) {

var sheet = SpreadsheetApp.getActiveSpreadsheet();
var range = sheet.getRange(rangeSpecification);

var x = 0;

for (var i = 1; i &lt;= range.getNumRows(); i++) {
for (var j = 1; j &lt;= range.getNumColumns(); j++) {

var cell = range.getCell(i, j);

if(cell.getFontWeight() == 'bold')
x += parseFloat(cell.getValue());
}
}

return x;
}
</pre>
<p>I also prepared function for the opposite situation, and called it sumWhereIsNotFontWeight, here is its code:</p>
<pre>
function sumWhereIsNotFontWeight(rangeSpecification) {

var sheet = SpreadsheetApp.getActiveSpreadsheet();
var range = sheet.getRange(rangeSpecification);

var x = 0;

for (var i = 1; i &lt;= range.getNumRows(); i++) {
for (var j = 1; j &lt;= range.getNumColumns(); j++) {

var cell = range.getCell(i, j);

if(cell.getFontWeight() != 'bold')
x += parseFloat(cell.getValue());
}
}

return x;
}
</pre>
<p>&nbsp;</p>
<h3>UPDATE (2013/11/15):</h3>
<p>I have created new article where I explain more in detail, how to implement this script into Google Drive Spreadsheet, <a title="Implementation Guide: SUM values if font is bold - Google Drive Spreadsheet" href="https://www.igiblog.cz/2017/03/implementation-guide-sum-values-if-font-is-bold-google-drive-spreadsheet/">check it here.</a></p>The post <a href="https://www.igiblog.cz/2013/02/script-sum-values-if-font-is-bold-google-drive-spreadsheet/">Script: SUM values if font is bold – Google Drive Spreadsheet</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.igiblog.cz/2013/02/script-sum-values-if-font-is-bold-google-drive-spreadsheet/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>
		
		
			</item>
		<item>
		<title>UPDATE: Keep order of rows while using WHERE IN () &#8211; MySQL</title>
		<link>https://www.igiblog.cz/2012/04/keep-order-of-rows-while-using-where-in-mysql/</link>
					<comments>https://www.igiblog.cz/2012/04/keep-order-of-rows-while-using-where-in-mysql/#respond</comments>
		
		<dc:creator><![CDATA[Lukáš Gavenda]]></dc:creator>
		<pubDate>Wed, 04 Apr 2012 08:44:47 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Tutorials & guides]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://www.igiblog.cz/?p=224</guid>

					<description><![CDATA[<p>I was just solving issue, where I needed to keep an order of items returned from the MySQL database listen&#46;&#46;&#46;</p>
The post <a href="https://www.igiblog.cz/2012/04/keep-order-of-rows-while-using-where-in-mysql/">UPDATE: Keep order of rows while using WHERE IN () – MySQL</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></description>
										<content:encoded><![CDATA[<p>I was just solving issue, where I needed to keep an order of items returned from the MySQL database listen in the WHERE IN clause.<br />
Original query:</p>
<pre>SELECT * FROM table WHERE id IN (1,5,8,73,5,4,88)</pre>
<p>This will return rows ordered by its primary key (in my case column <strong>id</strong>). Here is updated query, which will keep order of items listed in WHERE IN clause:</p>
<pre>SELECT * FROM table WHERE id IN (1,5,8,73,5,4,88) ORDER BY FIELD(id,1,5,8,73,5,4,88)</pre>
<p>Please note first item in brackets behind ORDER BY &#8211; there should be set same column, which was used at WHERE IN clause.</p>
<p>UPDATE: There was missing function called FIELD after ORDER BY &#8211; code is fixed now.</p>The post <a href="https://www.igiblog.cz/2012/04/keep-order-of-rows-while-using-where-in-mysql/">UPDATE: Keep order of rows while using WHERE IN () – MySQL</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.igiblog.cz/2012/04/keep-order-of-rows-while-using-where-in-mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Get rid of scrollbars in Facebook canvas application</title>
		<link>https://www.igiblog.cz/2012/03/get-rid-of-scrollbars-in-facebook-canvas-application/</link>
					<comments>https://www.igiblog.cz/2012/03/get-rid-of-scrollbars-in-facebook-canvas-application/#comments</comments>
		
		<dc:creator><![CDATA[Lukáš Gavenda]]></dc:creator>
		<pubDate>Mon, 05 Mar 2012 13:08:30 +0000</pubDate>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[General]]></category>
		<guid isPermaLink="false">http://www.igiblog.cz/?p=219</guid>

					<description><![CDATA[<p>First of all, make sure, that you have correct settings in Your Facebook app setup. To check it, go to: https://developers.facebook.com/apps&#46;&#46;&#46;</p>
The post <a href="https://www.igiblog.cz/2012/03/get-rid-of-scrollbars-in-facebook-canvas-application/">Get rid of scrollbars in Facebook canvas application</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></description>
										<content:encoded><![CDATA[<p>First of all, make sure, that you have correct settings in Your Facebook app setup. To check it, go to: <a title="Facebook developers - Applications" href="https://developers.facebook.com/apps" target="_blank">https://developers.facebook.com/apps</a></p>
<ol>
<li>on the left side choose You app</li>
<li>than on the top right click on &#8220;Edit App&#8221; button</li>
<li>On the left should be choosen: Settings -&gt; Basic</li>
<li>Go down into the section called: &#8220;Select how your app integrates with Facebook&#8221;</li>
<li>Find setup for Page Tab and check if you have set correct width of used app layout (mine was 520px)</li>
<li>Save changes, if anything changed</li>
<li>Than on the left choose Settings -&gt; Advanced</li>
<li>In the section &#8220;Canvas Settings&#8221; should be following setup for canvas height: <strong>fluid</strong></li>
</ol>
<div><span style="font-size: small;"><span style="line-height: 24px;"><strong><span id="more-219"></span></strong></span></span></div>
<p>If above described setup is ok, than we have to fix it in our application. It is simple, with two code snippets. Just add following before &lt;/body&gt; tag (If You are not using Facebook init script already):</p>
<pre>
&lt;script type=&quot;text/javascript&quot; src=&quot;http://connect.facebook.net/en_US/all.js&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;// &lt;!&amp;#91;CDATA&amp;#91;
	FB.init({
		appId : &#039;399179393429469&#039;,
		status : true, // check login status
		cookie : true, // enable cookies to allow the server to access the session
		xfbml : true // parse XFBML
	});
// &amp;#93;&amp;#93;&gt;&lt;/script&gt;
</pre>
<p>And put this code just before closing tag </head>:</p>
<pre>
  &lt;script type=&quot;text/javascript&quot;&gt;
	window.fbAsyncInit = function() {
		FB.Canvas.setSize();
	}
	function sizeChangeCallback() {
		FB.Canvas.setSize();
	}
	&lt;/script&gt;
</pre>
<p>Now, If your page is coded correctly into desired width, You should not see scrollbars anymore in it.<br />
Hope it helps.</p>The post <a href="https://www.igiblog.cz/2012/03/get-rid-of-scrollbars-in-facebook-canvas-application/">Get rid of scrollbars in Facebook canvas application</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.igiblog.cz/2012/03/get-rid-of-scrollbars-in-facebook-canvas-application/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How get Facebook profile ID (uid) when using vanity URL</title>
		<link>https://www.igiblog.cz/2012/02/how-get-facebook-profile-id-uid-when-using-vanity-url/</link>
					<comments>https://www.igiblog.cz/2012/02/how-get-facebook-profile-id-uid-when-using-vanity-url/#comments</comments>
		
		<dc:creator><![CDATA[Lukáš Gavenda]]></dc:creator>
		<pubDate>Wed, 22 Feb 2012 09:36:51 +0000</pubDate>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Social networking]]></category>
		<category><![CDATA[Tutorials & guides]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook apps]]></category>
		<category><![CDATA[facebook profile]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://www.igiblog.cz/?p=215</guid>

					<description><![CDATA[<p>When You are working with facebook apps, you do need sometimes to add administrators or moderators to Your application. If&#46;&#46;&#46;</p>
The post <a href="https://www.igiblog.cz/2012/02/how-get-facebook-profile-id-uid-when-using-vanity-url/">How get Facebook profile ID (uid) when using vanity URL</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></description>
										<content:encoded><![CDATA[<p>When You are working with facebook apps, you do need sometimes to add administrators or moderators to Your application. If selected person is not in Your friend list, You cannot add him to the list using auto-suggest box. Thats the moment, when You will need to know user`s facebook profile id (uid). Real problem is coming when user is using Facebook vanity URL for his/her profile (like www.facebook.com/some.selected.vanity.url).<span id="more-215"></span></p>
<p>The easiest way, how to get his/her UID  is to load user`s facebook profile and right click his/her main profile image and select <strong>Inspect element </strong>in submenu. It will open Your Firebug or browser/DOM inspector (new Firefox or Chrome). In the inspector, You should see and URL of image. What I found out, is, that user`s facebook profile ID is second number in the photo name. Mine was like this: 157184_<strong>1317732574</strong>_574480779_n.jpg</p>
<p>If You are using Facebook timeline, You could check Facebook profile ID also from the bigger profile picture. In my case it was third number: 425232_3326820732162_<strong>1317732574</strong>_3347250_1064723857_n.jpg</p>
<p>The easiest way, how to check, if the number is correct is to add selected number behind this URL and load it in the broswer:</p>
<blockquote><p>https://www.facebook.com/profile.php?id=<strong>AddYourNumberHere</strong></p></blockquote>
<p>If You will want to add more moderators or admins into Your facebook app using these IDs, just find out all of them and insert them into text input separated with comma without spaces. Facebook will handle this numbers and it will add selected profiles into the list of moderators automatically (than just hit Save button at the bottom of the moderation setup dialog/page).</p>
<p>Hope it will help You <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>The post <a href="https://www.igiblog.cz/2012/02/how-get-facebook-profile-id-uid-when-using-vanity-url/">How get Facebook profile ID (uid) when using vanity URL</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.igiblog.cz/2012/02/how-get-facebook-profile-id-uid-when-using-vanity-url/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Generate random birth date in MySQL table and get Age by select</title>
		<link>https://www.igiblog.cz/2011/07/generate-random-birth-date-in-mysql-table-and-get-age-by-select/</link>
					<comments>https://www.igiblog.cz/2011/07/generate-random-birth-date-in-mysql-table-and-get-age-by-select/#respond</comments>
		
		<dc:creator><![CDATA[Lukáš Gavenda]]></dc:creator>
		<pubDate>Sat, 23 Jul 2011 12:51:54 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP & MySQL]]></category>
		<guid isPermaLink="false">http://www.igiblog.cz/?p=204</guid>

					<description><![CDATA[<p>Today I was solving generating of random data for testing and manipulation with the date of the birth. Here are&#46;&#46;&#46;</p>
The post <a href="https://www.igiblog.cz/2011/07/generate-random-birth-date-in-mysql-table-and-get-age-by-select/">Generate random birth date in MySQL table and get Age by select</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</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>
<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>The post <a href="https://www.igiblog.cz/2011/07/generate-random-birth-date-in-mysql-table-and-get-age-by-select/">Generate random birth date in MySQL table and get Age by select</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://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>https://www.igiblog.cz/2011/06/cisco-vpn-on-windows-7-64bit/</link>
					<comments>https://www.igiblog.cz/2011/06/cisco-vpn-on-windows-7-64bit/#comments</comments>
		
		<dc:creator><![CDATA[Lukáš Gavenda]]></dc:creator>
		<pubDate>Thu, 16 Jun 2011 15:09:46 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://www.igiblog.cz/?p=201</guid>

					<description><![CDATA[<p>I just got to project, which is hosted on server, where the developers has to connect via Cisco VPN to&#46;&#46;&#46;</p>
The post <a href="https://www.igiblog.cz/2011/06/cisco-vpn-on-windows-7-64bit/">Cisco VPN on Windows 7 64bit</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</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>The post <a href="https://www.igiblog.cz/2011/06/cisco-vpn-on-windows-7-64bit/">Cisco VPN on Windows 7 64bit</a> first appeared on <a href="https://www.igiblog.cz">iGiBlog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.igiblog.cz/2011/06/cisco-vpn-on-windows-7-64bit/feed/</wfw:commentRss>
			<slash:comments>18</slash:comments>
		
		
			</item>
	</channel>
</rss>
