<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8281920248410406257</id><updated>2012-02-16T09:57:19.501+01:00</updated><title type='text'>Siyam Dev Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://siyam-dev.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://siyam-dev.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Obi</name><uri>http://www.blogger.com/profile/06967648034355735912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8281920248410406257.post-1374402854838791835</id><published>2010-01-05T19:35:00.002+01:00</published><updated>2010-01-05T19:41:58.409+01:00</updated><title type='text'>Smart Language Switch</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mH-NksKseKY/S0OGsz_-L1I/AAAAAAAAABw/yOoezuXX0GU/s1600-h/_1262716283378.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 117px;" src="http://3.bp.blogspot.com/_mH-NksKseKY/S0OGsz_-L1I/AAAAAAAAABw/yOoezuXX0GU/s320/_1262716283378.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5423326480715099986" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As you can see, it is a complex php script.&lt;br /&gt;For basic it will check if there is a ?/&amp;lang set and will search for the lang file in the lang/ dir.&lt;br /&gt;If you want to change the language and click on, for example, a flag it will take the whole url (example: http://test.com/?page=news ) and will add a ?/&amp;lang setting.&lt;br /&gt;But as you can see there can happend a error like: http://test.com/?page=news?lang=de&lt;br /&gt;That is wrong because there are to times a var with "?", so in the script is a detection if something is already set wit "?".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8281920248410406257-1374402854838791835?l=siyam-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://siyam.googlecode.com/svn/trunk/widget/lang/lang.php' title='Smart Language Switch'/><link rel='replies' type='application/atom+xml' href='http://siyam-dev.blogspot.com/feeds/1374402854838791835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://siyam-dev.blogspot.com/2010/01/smart-language-switch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default/1374402854838791835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default/1374402854838791835'/><link rel='alternate' type='text/html' href='http://siyam-dev.blogspot.com/2010/01/smart-language-switch.html' title='Smart Language Switch'/><author><name>Obi</name><uri>http://www.blogger.com/profile/06967648034355735912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_mH-NksKseKY/S0OGsz_-L1I/AAAAAAAAABw/yOoezuXX0GU/s72-c/_1262716283378.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8281920248410406257.post-4838390649109448041</id><published>2009-12-26T12:58:00.007+01:00</published><updated>2010-01-05T12:00:36.085+01:00</updated><title type='text'>Algorithm and flow-charts</title><content type='html'>&lt;p&gt;Okay, I'm happy to write my first entry in this blog, and my first post in english language. First, after talk about programming i want to talk about algorithms.&lt;/p&gt;&lt;p&gt;In the normal life we are constantly subject to solve problems, algorithms are the methods that we use to solve these problems. For example a problem may be "How to cook cake" the recipe is the algorithm.&lt;/p&gt;&lt;p&gt;The algorithm is very used by developers, remember that the computer was born to solve problems. Initially these problems were only mathematical now there are software in all fields: medical, school etc... to represent a solution of a problem was born the flow-chart, this is the most used method: it is made up from blocks wich represent the steps that lead to the resolution of the problem. Each block can have a different form that represent the type of instruction: typical and most used form are four:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Oval: the start or the end of the algorithm.&lt;/li&gt;&lt;li&gt;Rectangle: an single instruction.&lt;/li&gt;&lt;li&gt;Parallelogram: an operation of input or output.&lt;/li&gt;&lt;li&gt;The rumble: a binary selection (True or False).&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;There are others symbols but these are the most used.&lt;br /&gt;&lt;/p&gt;&lt;strong&gt;Example of algorithm and relative flow-chart and source code (PHP and C++): the linear equation.&lt;/strong&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;img src="http://1.bp.blogspot.com/_sVEntW1szYA/S0MW5gSZ0jI/AAAAAAAAABY/ivL6t21GVAU/s320/linear_equation.png" /&gt;&lt;/div&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;C++&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;int main() {a=2; b=3;&lt;/p&gt;&lt;p&gt;if (a==0) {  &lt;/p&gt;&lt;p&gt;if (b==0) {   &lt;/p&gt;&lt;p&gt;cout &lt;&lt; "Every x is a solution";  &lt;/p&gt;&lt;p&gt;} else {   &lt;/p&gt;&lt;p&gt;cout &lt;&lt; "No solution";  &lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;} else {   &lt;/p&gt;&lt;p&gt;x=-b/a;&lt;/p&gt;&lt;p&gt;cout &lt;&lt; "X={" &lt;&lt;&gt;&lt;p&gt;}&lt;/p&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;strong&gt;PHP&lt;/strong&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;$a=2; $b=3;&lt;/p&gt;&lt;p&gt;if (a=="0") {&lt;/p&gt;&lt;p&gt;if (b=="0") {&lt;/p&gt;&lt;p&gt;echo "Every X is a solution";&lt;/p&gt;&lt;p&gt;} else {&lt;/p&gt;&lt;p&gt;echo "No solution";&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;} else {&lt;/p&gt;&lt;p&gt;$x=-$b/$a;&lt;/p&gt;&lt;p&gt;echo $x;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8281920248410406257-4838390649109448041?l=siyam-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://siyam-dev.blogspot.com/feeds/4838390649109448041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://siyam-dev.blogspot.com/2009/12/algorithm-and-flow-charts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default/4838390649109448041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default/4838390649109448041'/><link rel='alternate' type='text/html' href='http://siyam-dev.blogspot.com/2009/12/algorithm-and-flow-charts.html' title='Algorithm and flow-charts'/><author><name>Sospiro</name><uri>http://www.blogger.com/profile/16255451653916425844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://3.bp.blogspot.com/_sVEntW1szYA/Sj9R7kE3LVI/AAAAAAAAAAU/Wpzjb9NkMi0/S220/sospiro.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_sVEntW1szYA/S0MW5gSZ0jI/AAAAAAAAABY/ivL6t21GVAU/s72-c/linear_equation.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8281920248410406257.post-4777270504103459828</id><published>2009-12-25T18:45:00.003+01:00</published><updated>2009-12-25T21:23:53.633+01:00</updated><title type='text'>PHP: Second Steps</title><content type='html'>Ok let's start with the advanced stuff.&lt;br /&gt;&lt;br /&gt;First of all we will talk about the if().&lt;br /&gt;It is really important in PHP and you will often use it. Ok example:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?php &lt;br /&gt;$var1 = '1';&lt;br /&gt;if ($var1 == '1') {&lt;br /&gt; echo "true";&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;So you see, the if() will check if $var1 contains '1'. If this is true it will print "true" and if it's not true it will do nothing.&lt;br /&gt;You should understand the script completely now.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?php &lt;br /&gt;$var1 = '0';&lt;br /&gt;if ($var1 == '1') {&lt;br /&gt; echo "true";&lt;br /&gt;} else {&lt;br /&gt;echo "false";&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Take a look. This script is almost the same like the one above, but now it will do something when $var1 doesn't contain '1'. Ok you know now the basic if(). Let's go on...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?php &lt;br /&gt;$var1 = '2';&lt;br /&gt;if ($var1 == '1') {&lt;br /&gt; echo "it is 1";&lt;br /&gt;} elseif ($var1 == '2') {&lt;br /&gt;echo "it is 2";&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The 'elseif ()' is just a "upgraded else ;)&lt;br /&gt;elseif() will check again if the following is true. So you can do almost the same with elseif then you can do with switch:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?php &lt;br /&gt;$var1 = '2';&lt;br /&gt;switch ($var1) {&lt;br /&gt;case 1:&lt;br /&gt;echo "case 1 is true";&lt;br /&gt;break;&lt;br /&gt;case 2:&lt;br /&gt;echo "case 2 is true";&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Just read that script carefuly and you will know what it will do.&lt;br /&gt;case 1 for example is doing the same like: if ($var1 == '1') { ... }&lt;br /&gt;I hope you understand now.&lt;br /&gt;&lt;br /&gt;Ok next one the while().&lt;br /&gt;while() is doing something until the stuff in (..) is getting false. An example:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?php &lt;br /&gt;$var1 = '0';&lt;br /&gt;while ($var1 &lt;= '4') {&lt;br /&gt;echo $var1;&lt;br /&gt;$var1++;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This script will count to 4.&lt;br /&gt;To understand the script, you must know that $var1++; will do $var1 + 1, so from '0' to '1' and so on. When the $var1 contains '5' the while() will stop because it is not less or equal to '4'.&lt;br /&gt; &lt;br /&gt;The rest of this tutorial will follow soon....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8281920248410406257-4777270504103459828?l=siyam-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://siyam-dev.blogspot.com/feeds/4777270504103459828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://siyam-dev.blogspot.com/2009/12/php-second-steps.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default/4777270504103459828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default/4777270504103459828'/><link rel='alternate' type='text/html' href='http://siyam-dev.blogspot.com/2009/12/php-second-steps.html' title='PHP: Second Steps'/><author><name>Obi</name><uri>http://www.blogger.com/profile/06967648034355735912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8281920248410406257.post-2765197544840528487</id><published>2009-12-25T13:51:00.007+01:00</published><updated>2009-12-25T21:27:20.890+01:00</updated><title type='text'>PHP: First Steps</title><content type='html'>Ok,&lt;br /&gt;so now i want to show you how to start in php.&lt;br /&gt;First of all php is implemented like that:&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?php &lt;br /&gt;...code... &lt;br /&gt;?&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;So you can call a php script in a html file very easy.&lt;br /&gt;&lt;blockquote&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;&amp;lt;?php echo "Hello World"; ?&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;This is a blank page with the title "Hello World" printed by a php "script".&lt;br /&gt;Doing that is easy!&lt;br /&gt;&lt;br /&gt;Ok let us do the next step.&lt;br /&gt;PHP supports variables.&lt;br /&gt;Something like that:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?php&lt;br /&gt; $var1 = "Hello World";&lt;br /&gt;?&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;$var1 is containing now the string "Hello World".&lt;br /&gt;Let's check if i am telling you the truth.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?php&lt;br /&gt;$var1 = "Hello World";&lt;br /&gt;echo $var1;&lt;br /&gt;?&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This script should output "Hello World" now.&lt;br /&gt;Easy, isn't it?&lt;br /&gt;Ok let's go on...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?php&lt;br /&gt;$var1 = "Hello World";&lt;br /&gt;$var2 = ", what are you doing?";&lt;br /&gt;$var3 = $var1.$var2." :)";&lt;br /&gt;echo $var3;&lt;br /&gt;?&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This script should output: Hello World, what are you doing? :)&lt;br /&gt;You see $var1 is containing "Hello World" and $var2 ", what are you doing?".&lt;br /&gt;With the operator "." you can merge 2 vars and/or strings.&lt;br /&gt;So $var3 is containing the $var1 and $var2 and at the end " :)" will be added.&lt;br /&gt;&lt;br /&gt;Go on with the &lt;a href="http://siyam-dev.blogspot.com/2009/12/php-second-steps.html"&gt;next Lesson. -&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8281920248410406257-2765197544840528487?l=siyam-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://siyam-dev.blogspot.com/feeds/2765197544840528487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://siyam-dev.blogspot.com/2009/12/first-steps-with-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default/2765197544840528487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default/2765197544840528487'/><link rel='alternate' type='text/html' href='http://siyam-dev.blogspot.com/2009/12/first-steps-with-php.html' title='PHP: First Steps'/><author><name>Obi</name><uri>http://www.blogger.com/profile/06967648034355735912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8281920248410406257.post-4483741176269519844</id><published>2009-12-25T12:05:00.003+01:00</published><updated>2009-12-25T13:49:54.159+01:00</updated><title type='text'>First Entry</title><content type='html'>Yeah this is the first entry in the Siyam Dev Blog.&lt;br /&gt;First of all in short, what Siyam CMS is.&lt;br /&gt;It's, like the name may tell you, a Content Managment System. We try to make everything really easy for you, so you don't need much skill in HTML/PHP/JS etc...&lt;br /&gt;Most of the scripts in Siyam CMS are based on PHP, so here is a cool vid, that shows you the advantages of PHP:&lt;br /&gt;&lt;br /&gt;&lt;object height="364" width="445"&gt;&lt;param name="movie" value="http://www.youtube.com/v/SuPlFmlub0E&amp;amp;hl=de_DE&amp;amp;fs=1&amp;amp;color1=0x234900&amp;amp;color2=0x4e9e00&amp;amp;border=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/SuPlFmlub0E&amp;amp;hl=de_DE&amp;amp;fs=1&amp;amp;color1=0x234900&amp;amp;color2=0x4e9e00&amp;amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="445" height="364"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8281920248410406257-4483741176269519844?l=siyam-dev.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://siyam-dev.blogspot.com/feeds/4483741176269519844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://siyam-dev.blogspot.com/2009/12/merry-christmas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default/4483741176269519844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8281920248410406257/posts/default/4483741176269519844'/><link rel='alternate' type='text/html' href='http://siyam-dev.blogspot.com/2009/12/merry-christmas.html' title='First Entry'/><author><name>Obi</name><uri>http://www.blogger.com/profile/06967648034355735912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
