<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Skepo &#187; Programming</title>
	<atom:link href="http://www.skepo.info/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skepo.info</link>
	<description>programming, web development, linux</description>
	<lastBuildDate>Sat, 08 May 2010 11:40:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Starting with jQuery &#8211; Learning basics</title>
		<link>http://www.skepo.info/programming/javascript/starting-with-jquery-learning-basics/</link>
		<comments>http://www.skepo.info/programming/javascript/starting-with-jquery-learning-basics/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 21:32:28 +0000</pubDate>
		<dc:creator>skepo</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[basics]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.skepo.info/?p=381</guid>
		<description><![CDATA[JQuery is a nice JavaScript library which enables us to make nice fancy effects. JavaScript can do this alone but it&#8217;s much easier to do it using jQuery. If you want to learn about jQuery here is a good starting point, it&#8217;s a presentation by Dmitri Gaskin. He is 12 year old, but he is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jquery.com">JQuery</a> is a nice JavaScript library which enables us to make nice fancy effects. JavaScript can do this alone but it&#8217;s much easier to do it using jQuery. If you want to learn about jQuery here is a good starting point, it&#8217;s a presentation by Dmitri Gaskin. He is 12 year old, but he is very smart and talented he is involved in Drupal project and this presentation is from Google tech talk.</p>
<p>This video covers a lot of basic things about jQuery like:</p>
<ul>
<li>Manipulation</li>
<li>Selectors</li>
<li>Attributes</li>
<li>Events and other</li>
</ul>
<p>Enjoy!</p>
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/8mwKq7_JlS8" width="480" height="385"><param name="movie" value="http://www.youtube.com/v/8mwKq7_JlS8" /><param name="FlashVars" value="playerMode=embedded" /><param name="wmode" value="transparent" /></object>
]]></content:encoded>
			<wfw:commentRss>http://www.skepo.info/programming/javascript/starting-with-jquery-learning-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Contact form 7 PHP Invocation Code</title>
		<link>http://www.skepo.info/web-development/wordpress/contact-form-7-php-invocation-code/</link>
		<comments>http://www.skepo.info/web-development/wordpress/contact-form-7-php-invocation-code/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 18:41:30 +0000</pubDate>
		<dc:creator>skepo</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[contact form]]></category>

		<guid isPermaLink="false">http://www.skepo.info/?p=367</guid>
		<description><![CDATA[Contact form 7 is one of the most popular plugins for WordPress. Currently it&#8217;s 6th most downloaded plugin for WordPress. It&#8217;s very customizable at it can be easily integrated in posts and pages. That&#8217;s great but people sometimes want to integrate it in sidebar, header or footer so that it can be accessed on multiply [...]]]></description>
			<content:encoded><![CDATA[<p>Contact form 7 is one of the most popular plugins for WordPress. Currently it&#8217;s 6th most downloaded plugin for WordPress. It&#8217;s very customizable at it can be easily integrated in posts and pages. That&#8217;s great but people sometimes want to integrate it in sidebar, header or footer so that it can be accessed on multiply pages. Looking at the code of plugin I found out that you need to use just a couple of lines of code to do that, just copy/paste this code:<span id="more-367"></span></p>
<pre class="brush: php;">
&lt;?php
global $wpcf7_contact_form;
if ( ! ( $wpcf7_contact_form = wpcf7_contact_form( 1 ) ) )
return 'Contact form not found!';
$form = $wpcf7_contact_form-&gt;form_html();
echo $form;
?&gt;
</pre>
<p>Just change the number 1 in wpcf7_contact_form( 1 )  to number of your contact form you need.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skepo.info/web-development/wordpress/contact-form-7-php-invocation-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
	</item>
		<item>
		<title>wxWidgets vs MFC</title>
		<link>http://www.skepo.info/programming/cpp/wxwidgets-vs-mfc/</link>
		<comments>http://www.skepo.info/programming/cpp/wxwidgets-vs-mfc/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 13:55:36 +0000</pubDate>
		<dc:creator>skepo</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[mfc]]></category>
		<category><![CDATA[wxWidgets]]></category>

		<guid isPermaLink="false">http://www.skepo.info/?p=193</guid>
		<description><![CDATA[WxWidgets and MFC are programming frameworks for building GUI applications(Graphical User Interface). Of course you can also write console apps with wxWidgets and MFC but they are made particularly for building GUI apps. Both of them are wrappers, saying it simple that means both of them are libraries build to simplify some other code. On [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_201" class="wp-caption alignleft" style="width: 160px"><img class="size-full wp-image-201 " title="wx-vs-mfc1" src="http://img291.imageshack.us/img291/8808/wxvsmfc1.png" alt="Wxwidgets vs MFC" width="150" height="150" /><p class="wp-caption-text">Wxwidgets vs MFC</p></div>
<p><strong>WxWidgets </strong>and <strong>MFC </strong>are programming frameworks for building <a title="Graphical user interface on Wikipedia" href="http://en.wikipedia.org/wiki/Graphical_user_interface" target="_blank">GUI</a> applications(Graphical User Interface). Of course you can also write console apps with wxWidgets and MFC but they are made particularly for building GUI apps. Both of them are wrappers, saying it simple that means both of them are libraries build to simplify some other code. On Windows, Windows API functions are used to build GUI apps, but it&#8217;s very hard to make applications using it and that&#8217;s the reason why we have wrappers.</p>
<p><span id="more-193"></span></p>
<p><a title="WxWidgets homepage" href="http://www.wxwidgets.org/" target="_blank"><strong>WxWidgets</strong></a> was formerly called wxWindows, it&#8217;s a multi platform, so called cross platform framework. It exists for Windows, Linux and Mac. It&#8217;s written and maintained by Julian Smart, Robert Roebling, Vadim Zeitlin, Vaclav Slavik and many others. The beautiful thing about wxWidgets is that once you create and compile code on one OS let&#8217;s say on Windows, you can use that same code and compile it without change on Linux and get Linux app, you can also do that in Mac. The other thing very important about wxWidgets is that it&#8217;s licensed with GPL. You can use it without being a pirate <img src='http://www.skepo.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , there is a wide set of tools which are also free and in many cases with GPL license. For starting with wxWidgets you need to install the libraries, you need some good <strong><a title="Wiki information about IDE" href="http://en.wikipedia.org/wiki/Integrated_development_environment" target="_blank">IDE</a></strong> (Integrated Development Environment) and one form designer. Most important part is IDE you will spend most time using it, you can choose between Code::Blocks, wxDevCpp, Code Lite, Eclipse, NetBeans,&#8230;.. There is rerly large spectrum of IDEs you can use to develop wxWidgets apps. I recommend you to use <a title="WxDevC++" href="http://wxdsgn.sourceforge.net/" target="_blank">wxDevCpp </a>or <a title="Code::Blocks" href="http://www.codeblocks.org/" target="_blank">Code::Blocks</a>. WxDevCpp comes with it&#8217;s own form designer and wx libraries already installed and it&#8217;s better for beginners, but there is only a Windows version. Code::Blocks comes with its own form designer but it does not have libraries installed, so you will have to do it manually. But good side of the Code::Blocks is that it has versions for Linux and Mac too, you will not have any trouble building apps for different platforms.</p>
<p>Even by the fact that it&#8217;s free software wxWidgets it&#8217;s very good framework, it&#8217;s developed for many years and can compete with any commercial framework. WxWidgets comes with many examples and if you download wxDevCpp you can get some free books with it. There is a good community behind it and many nice people that can help you with anything. The problem here is not in the quality of the framework, documentation or community it&#8217;s in something else. To be able to use it you need to have good IDE and there is none that can be good as Visual Studio, so at the end if we look at just IDEs of these frameworks it&#8217;s an old free vs paid competition.</p>
<p><strong><a title="MFC information from Wikipedia" href="http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library" target="_blank">MFC</a> </strong>is acronym for <strong>Microsoft Foundation Class</strong> it comed to light on 1992. with their compiler version 7. It exists only for Windows operating systems andÂ  like wxWidgets it&#8217;s a object oriented wrapper of win API, but it&#8217;s only made for use with C++ language, wxWidgetsÂ  can be used with <strong>C++, Python, Perl, and C#/.NET</strong>. The most important think about MFC is that it has great IDE, it&#8217;s called Visual C++ and comes as a part of Visual Studio. Microsoft released Visual Studio 2005 Express as a free version and later Visual Studio 2008 Express also free but unfortunately it didn&#8217;t came with MFC. The cheapest Visual Studio with MFC is the standard edition and without MSDN and it costs 249.99$ at Amazon, Profestional Edition is <span>684.99</span>$ and Professional Edition with MSDN is <span>1,034.49</span>$.</p>
<p>Programs made using MFC libraries are a little bit smaller than programs that use wxWidgets, maybe it is not important because every average user now has fast internet connection. Programs with size of 10 MB</p>
<p>The only IDE you can use to develop MFC programs is Visual C++. That&#8217;s not bad because Visual C++ is maybe the best IDE at the planet.Â  You can also choose Visual C++ Express and use it to build wxWidgets programs, but you can not use it&#8217;s form builder you need to find your own form builder and you can&#8217;t use some other cool features.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skepo.info/programming/cpp/wxwidgets-vs-mfc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://img291.imageshack.us/img291/8808/wxvsmfc1.png" />
		<media:content url="http://img291.imageshack.us/img291/8808/wxvsmfc1.png" medium="image">
			<media:title type="html">wx-vs-mfc1</media:title>
		</media:content>
	</item>
		<item>
		<title>How to make a javascript redirection script</title>
		<link>http://www.skepo.info/programming/javascript/how-to-make-a-javascript-redirection-script/</link>
		<comments>http://www.skepo.info/programming/javascript/how-to-make-a-javascript-redirection-script/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 14:32:15 +0000</pubDate>
		<dc:creator>skepo</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[redirection]]></category>

		<guid isPermaLink="false">http://www.skepo.info/?p=99</guid>
		<description><![CDATA[If you need to redirect visitors from one page to another or if you changed the domain you need a redirection script. Redirection can be done in many different ways but i will show you the simplest way, that is using a java script. Java script only needs to be supported by browsers and every [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to redirect visitors from one page to another or if you changed the domain you need a redirection script. Redirection can be done in many different  ways but i will show you the simplest way, that is using a java script.  Java script only needs to be supported by browsers and every modern browser supports it. So java script is the best way for doing redirection.</p>
<p>The main part of redirection is to use window.location=&#8221;http://something.com&#8221;. Put this in one function  and it will look like this:</p>
<pre class="brush: jscript;">function redirect(){
window.location = &quot;http://www.skepo.info&quot;
}</pre>
<p>But we don&#8217;t want to redirect visitor just like that. We will set delay of let say 5 seconds and show visitor message that he will be redirected to other location. For that there is a function setTimeout(), it needs 2 parameters: first is what to do when the time elapses and second how much time does it need to wait in milliseconds. Let&#8217;s  say we want to load redirect function after 5000 milliseconds (5 seconds):</p>
<pre class="brush: jscript;">setTimeout(redirect(),5000)</pre>
<p>Now we will put this in the body tag, add it as parameter to onLoad.<br />
And the whole thing looks like this:</p>
<pre class="brush: jscript;">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Redirecting&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function redirect(){
window.location = &quot;http://www.skepo.info&quot;
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body onLoad=&quot;setTimeout('redirect()', 5000)&quot;&gt;
&lt;h2&gt;Skepo is moved to a new domain!&lt;/h2&gt;
You will be redirected to a new domain in 5 seconds. If you
don't want to wait click &lt;a href=&quot;http://www.skepo.info&quot;&gt;
here&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>And that&#8217;s it!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skepo.info/programming/javascript/how-to-make-a-javascript-redirection-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
	</item>
		<item>
		<title>Object oriented programming VS Procedural programming</title>
		<link>http://www.skepo.info/programming/object-oriented-programming-vs-procedural-programming/</link>
		<comments>http://www.skepo.info/programming/object-oriented-programming-vs-procedural-programming/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 15:28:44 +0000</pubDate>
		<dc:creator>skepo</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[object oriented programming]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[procedural programming]]></category>

		<guid isPermaLink="false">http://www.skepo.info/?p=87</guid>
		<description><![CDATA[Programming had many revolutions in it&#8217;s history. In the beginning it was something only for computer engineers. In order to program we need to turn on or off a lot of switches. And even after that hard work we cold only do some simple math equation. The first compilers and text editors made programming look [...]]]></description>
			<content:encoded><![CDATA[<p>Programming had many revolutions in it&#8217;s history. In the beginning it was something only for computer engineers. In order to program we need to turn on or off a lot of switches. And even after that hard work we cold only do some simple math equation. The first compilers and text editors made programming look like we know it.</p>
<p>Revolutions in computer programming are the product of crisis in computer industry. Â Hardware is always better and better and when people buy new computers they expect from it to do lot more then previous generations. That makes pressure on programmers to make better programs and that leads to crisis. Like the crisis which led to birth of object oriented programming.</p>
<h3>Procedural programming</h3>
<p>Procedural programming was born before 30-40 years but it is still popular. Many very popular programming languages like C, Visual Basic and Pascal are procedural programming languages. Many of them are popular because they are easy to learn and are easy way to come in programming world. Pascal and Visual Basic are representing this part of programming world.</p>
<p>First of all don&#8217;t think that you can program something only in object oriented languages or that there is something that is only possible to do in procedural programming languages. There is none problem that can not be solved in both object oriented and procedural languages. Example: Linux kernel is very complex collection of programmes and services and it&#8217;s done in c (procedural) and microsoft office is done in Visual C++. So even complex programs can be done in procedural languages.</p>
<p>Procedural languages are in many cases easier to learn and easier to use. For all of you who are now starting to dive in programming world i would recommend to use C or Pascal. C is a little bit harder to learn but i recommend it because it&#8217;s a good start point before you start to learn C++ which i heighley prefer. Pascal is also good and later you can start with Delphi, object oriented version of Pascal, but Pascal and Delphi tools are commercial and don&#8217;t have Linux versions.</p>
<p>As i already writtenÂ above procedural languages are good as starting point and are maybe better for some smaller project but it is not a rule some small programs can be easily done also in object oriented.</p>
<h3>Object oriented programming</h3>
<p>The object oriented programming is a newest methodology in programming. In short words it has classes in which you can incorporate a lot of functions and variables that are common for some Â part. They can have parents and children and by that share some of it&#8217;s properties.</p>
<p>Object oriented programming is much more complicated than procedural programming. But it has many good attributes: Â code is much more synoptic, that means that its easy to have many people working on the code without getting confused, it&#8217;s easier to change some part of the code without screwing anything. There is also one very important point in object oriented programming and that is software reuse. Classes are included in modules and modules can be added to new programs you write. So if you really want to be a serious programmer you need to learn some object oriented and that is C++.</p>
<p>You can start to learn C++ even if you are a beginner but you need some good literature plenty of time and good examples.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skepo.info/programming/object-oriented-programming-vs-procedural-programming/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
	</item>
	</channel>
</rss>
