<?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>ACCESS DENIED</title>
	<atom:link href="http://www.accesinterzis.ro/en/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.accesinterzis.ro/en</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 23 Feb 2010 09:51:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How can I generate randomly a number in Javascript?</title>
		<link>http://www.accesinterzis.ro/en/index.php/programming/how-can-i-generate-randomly-a-number-in-javascript/</link>
		<comments>http://www.accesinterzis.ro/en/index.php/programming/how-can-i-generate-randomly-a-number-in-javascript/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:51:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/en/?p=26</guid>
		<description><![CDATA[As everybody knows, PHP has two functions which generate randomly a number: rand() and mt_rand(). Using them we can generate easily a random number. Unfortunately, Javascript doesn&#8217;t have such functions. I was quite shocked when I started studying Javascript and I saw that there aren&#8217;t such functions. So, to get a random number we must [...]


Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/programming/how-do-i-generate-the-current-date-in-a-language-other-than-english/' rel='bookmark' title='Permanent Link: How do I generate the current date in a language other than English?'>How do I generate the current date in a language other than English?</a></li>
<li><a href='http://www.accesinterzis.ro/en/index.php/programming/how-do-i-grab-email-addresses-of-a-web-page/' rel='bookmark' title='Permanent Link: How do I grab email addresses of a web page?'>How do I grab email addresses of a web page?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As everybody knows, PHP has two functions which generate randomly a number: rand() and mt_rand(). Using them we can generate easily a random number. Unfortunately, Javascript doesn&#8217;t have such functions. I was quite shocked when I started studying Javascript and I saw that there aren&#8217;t such functions. So, to get a random number we must develop our own function.</p>
<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
function rand(x, y) {
    var random_number;
    if (isNaN(x) == false &amp;&amp; isNaN(y) == false &amp;&amp; x &lt; y) {
        random_number = Math.ceil(Math.random() * (y-x)) + x;
    } else {
        random_number = -1;
    }

    return(random_number);
}

//example
document.write(rand(4,8));
&lt;/script&gt;
</pre>
<p>Now, let me explain a little bit how the function works. First, I declare a variable which will store the random number. The second step is to make sure that first parameter is smaller than the second one. Finally, we can generate randomly a number using a method of the Math object called random(). But this method generates only values between 0 and 1 such 0.6357802708373617  for instance. This values are pretty ugly. So, we have to polish what we get from random(). To do that we use another method of Math object called ceil(). This method rounds a number upwards to the nearest integer.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+can+I+generate+randomly+a+number+in+Javascript%3F+http://z2p78.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/en/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+can+I+generate+randomly+a+number+in+Javascript%3F+http://z2p78.th8.us" title="Post to Twitter">Tweet This Post</a></p>

<p>Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/programming/how-do-i-generate-the-current-date-in-a-language-other-than-english/' rel='bookmark' title='Permanent Link: How do I generate the current date in a language other than English?'>How do I generate the current date in a language other than English?</a></li>
<li><a href='http://www.accesinterzis.ro/en/index.php/programming/how-do-i-grab-email-addresses-of-a-web-page/' rel='bookmark' title='Permanent Link: How do I grab email addresses of a web page?'>How do I grab email addresses of a web page?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/en/index.php/programming/how-can-i-generate-randomly-a-number-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I generate the current date in a language other than English?</title>
		<link>http://www.accesinterzis.ro/en/index.php/programming/how-do-i-generate-the-current-date-in-a-language-other-than-english/</link>
		<comments>http://www.accesinterzis.ro/en/index.php/programming/how-do-i-generate-the-current-date-in-a-language-other-than-english/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:49:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/en/?p=25</guid>
		<description><![CDATA[
&#60;?php
$day = array('Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata');
$mounth = array(NULL, 'Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulile', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie');

echo $day[date('w')].date(', j ').$mounth[date('n')].date(' Y, H:i:s');
?&#62;

The above PHP script generates the current date in a language other than English. As everybody knows, the PHP function date() returns values only in English language which [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">
&lt;?php
$day = array('Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata');
$mounth = array(NULL, 'Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulile', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie');

echo $day[date('w')].date(', j ').$mounth[date('n')].date(' Y, H:i:s');
?&gt;
</pre>
<p>The above PHP script generates the current date in a language other than English. As everybody knows, the PHP function date() returns values only in English language which sometimes might be pretty disturbing. But this PHP script fixes entirely this issue.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+do+I+generate+the+current+date+in+a+language+other+than+English%3F+http://an4cp.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/en/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+do+I+generate+the+current+date+in+a+language+other+than+English%3F+http://an4cp.th8.us" title="Post to Twitter">Tweet This Post</a></p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/en/index.php/programming/how-do-i-generate-the-current-date-in-a-language-other-than-english/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I extract the extension of a file?</title>
		<link>http://www.accesinterzis.ro/en/index.php/programming/how-do-i-extract-the-extension-of-a-file/</link>
		<comments>http://www.accesinterzis.ro/en/index.php/programming/how-do-i-extract-the-extension-of-a-file/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:47:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/en/?p=24</guid>
		<description><![CDATA[
&#60;?php
function extract_extension($file) {
	if (strrpos($file,'.')) {
		$extension = strtolower(substr($file,strrpos($file,'.'),100));
	} else {
		$extension = '';
	}
	return($extension);
}

//example
echo extract_extension(&#34;header.inc.php&#34;);
?&#62;

The above PHP function extracts the extension of a file. It is useful when we create upload forms or when we read dynamic a folder of files. For instance, a folder of images used by an image gallery or a folder of fonts used [...]


Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/web/what-do-i-need-to-develop-websites/' rel='bookmark' title='Permanent Link: What do I need to develop websites?'>What do I need to develop websites?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">
&lt;?php
function extract_extension($file) {
	if (strrpos($file,'.')) {
		$extension = strtolower(substr($file,strrpos($file,'.'),100));
	} else {
		$extension = '';
	}
	return($extension);
}

//example
echo extract_extension(&quot;header.inc.php&quot;);
?&gt;
</pre>
<p>The above PHP function extracts the extension of a file. It is useful when we create upload forms or when we read dynamic a folder of files. For instance, a folder of images used by an image gallery or a folder of fonts used by a CAPTCHA.</p>
<p>When we create an upload form for adding images we must not allow the user to upload on our hosting server whatever his mind wants. We must make sure that what the user uploads is truely an image and not something else. Let&#8217;s say a malicious executable or scam pages which obviously can harm our server, website, image. So, each time when we develop server-side code we must keep in mind that <strong>what the user enters is not trustable</strong>. Therefore, we must add all restrictions which are required.</p>
<p>Usually, an image gallery feeds dynamic with the  images of a folder of the hosting server. This PHP script helps us to be sure that it grabs only the images of the folder.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+do+I+extract+the+extension+of+a+file%3F+http://exm3g.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/en/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+do+I+extract+the+extension+of+a+file%3F+http://exm3g.th8.us" title="Post to Twitter">Tweet This Post</a></p>

<p>Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/web/what-do-i-need-to-develop-websites/' rel='bookmark' title='Permanent Link: What do I need to develop websites?'>What do I need to develop websites?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/en/index.php/programming/how-do-i-extract-the-extension-of-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What do I need to develop websites?</title>
		<link>http://www.accesinterzis.ro/en/index.php/web/what-do-i-need-to-develop-websites/</link>
		<comments>http://www.accesinterzis.ro/en/index.php/web/what-do-i-need-to-develop-websites/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:46:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/en/?p=23</guid>
		<description><![CDATA[﻿This article is addressed to beginners, those who want to get familiar with the basic concepts of web development and web design. I&#8217;ve decided to write it down because I&#8217;ve seen many times on forums people trying to understand where web development starts and where it ends. I want to mention that in the article [...]


Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/programming/how-do-i-extract-the-extension-of-a-file/' rel='bookmark' title='Permanent Link: How do I extract the extension of a file?'>How do I extract the extension of a file?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>﻿This article is addressed to beginners, those who want to get familiar with the basic concepts of web development and web design. I&#8217;ve decided to write it down because I&#8217;ve seen many times on forums people trying to understand where web development starts and where it ends. I want to mention that in the article I won&#8217;t discuss about ASP technology. So..</p>
<p><span id="more-23"></span></p>
<p><strong>1. What languages do I have to know?</strong></p>
<p>There are two types of languages:</p>
<ul>
<li> <span style="text-decoration: underline;">client-side</span> languages: HTML, CSS and Javascript. A code is client-side if it is executed by the client program which in our case is the browser (Microsoft Internet Explorer, Google Chrome, Mozilla Firefox, Opera or Apple Safari). For this reason, the client-side code must be <span style="text-decoration: underline;">cross-browser</span>. That means the website must behave identically in all browsers and on all screen resolutions.  Whether we like it or not, Microsoft Internet Explorer is the most popular browser. That is because of Windows operating system. Therefore, I must test the code in it first time.</li>
<li> <span style="text-decoration: underline;">server-side</span> languages: PHP and MySQL. A code is server-side if it is executed by the server program which in our case is Apache. No matter what a server-side code does its output is eventually client-side code (HTML, CSS, Javascript).</li>
</ul>
<p>Now that I know which are the main languages&#8230;what does each language work with?. So&#8230;</p>
<ul>
<li> HTML or HyperText Markup Language works with<span style="text-decoration: underline;"> tags</span> only. This language defines the structure of the website.</li>
<li> CSS or Cascading Style Sheets works with <span style="text-decoration: underline;">rules</span> only. Using the CSS rules I can control far easier the properties of HTML tags.</li>
<li> in Javascript I create <span style="text-decoration: underline;">client-side scripts</span>. Based on this language there were developed a couple of technologies as DHTML(Dynamic HTML), jQuery and AJAX (Asynchronus Javascript and XML). DHTML and JQuery came to replace the heavy Flash animations and AJAX was developed because of the desire to communicate in real time with the server for a frindlier web page. It is really annoying to see how the whole page has to reload for a bloody tiny thing. But AJAX technology fixed entirely this problem.</li>
<li>in PHP or PHP Hypertext Preprocessor I create <span style="text-decoration: underline;">server-side scripts</span>. The name of the language wants to say that the output of any PHP script is always client-side code. For instance, the bellow PHP script generates <span style="text-decoration: underline;">dynamic</span> the absolute URL of the current page:
<pre class="brush: php;">
&lt;?php
echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
?&gt;
</pre>
</li>
<li> MySQL or My Structered Query Language works with <span style="text-decoration: underline;">database queris</span> only. This language helps me to organize far better the content of my website. The main database queris are CREATE, INSERT, SELECT, UPDATE and DELETE.</li>
</ul>
<p>To get the right picture about web development, I have to asociate in my mind HTML with tags, CSS with rules, Javascript with client-side scripts, PHP with server-side scripts, MySQL with database queris. All these 5 languages work together to ensure the whole functionality of what is called &#8220;website&#8221; or generally speaking &#8220;web application&#8221;.</p>
<p><img title="What languages do I need to know to develop websites?" src="http://www.accesinterzis.ro/en/wp-content/uploads/langs.gif" alt="What languages do I have to know?" /></p>
<p><strong>2. What programs do I need?</strong><br />
There are two types of programs:<br />
- programs I creat the design of the website with:</p>
<ul>
<li>graphics editing program: Adobe Photoshop﻿, Gimp. Adobe Photoshop is the most popular graphics editing program. Using it we can edit pictures and create logos, banners, website layouts. It has plenty of tools and the interface is very friendly.</li>
<li>vector drawing program: Adobe Illustrator, Corel Draw</li>
<li>animation program: Adobe Flash</li>
</ul>
<p>- progams I edit and test the code with:</p>
<ul>
<li>source-code editor: Notepad++, Adobe Dreamweaver﻿. Personally, I advise the beginners to avoid Dreamweaver as much as possible.</li>
<li>browser: Microsoft Internet Explorer, Google Chrome, Mozilla Firefox, Opera, Apple Safari. It helps me to check if the client-side code (HTML, CSS, Javascript) is cross-browser or not.</li>
<li>local server: Easy PHP, XAMPP. It helps me to test the PHP scripts and the database queris.</li>
<li>FTP client: Filezilla. It helps me to upload the files of my website from the local server to the hosting server once the website is done.</li>
</ul>
<p><strong> </strong></p>
<p><strong>3. How do I organise the files of my website?</strong><br />
I create a folder and I call it, for instance, &#8220;accesinterzis&#8221;. This folder will contain all files of my website. Inside of it I will find a couple of subfolders:</p>
<ul>
<li><span style="text-decoration: underline;">images</span>: here I will store all the slices of the website design exported from Photoshop and all images of the website</li>
<li><span style="text-decoration: underline;">css</span>: here I will store all CSS files . An important CSS file is <span style="text-decoration: underline;">reset.css</span>. This file overwrites all the default settings of the browsers because the default settings are different from one browser to another.</li>
<li><span style="text-decoration: underline;">js</span>: here I will store all Javascript scripts</li>
<li><span style="text-decoration: underline;">includes</span>: here I will include all PHP include files. A healthy habitat of progamming is to call these files &#8220;genericname.inc.php&#8221; instead &#8220;genericname.php&#8221;. In this way, I will know that I work with PHP includes and not with PHP web pages as &#8220;index.php&#8221;, &#8220;about.php&#8221; and so on.</li>
<li><span style="text-decoration: underline;">swf</span>: here I will store all Flash animations</li>
<li><span style="text-decoration: underline;">xml</span>: here I will store my XML files</li>
<li><span style="text-decoration: underline;">backend</span>: here I will store all files of my backend if the website has an administration section behind it</li>
</ul>
<p>Besides these subfolders, there exist the pages of website (index.php, about.php, contact.php, portofolio.php and so on), the robots.txt file and the .htacces file. So, eventually, the root folder should look like in the bellow image:</p>
<p><img title="How do I organise the files of my website?" src="http://www.accesinterzis.ro/en/wp-content/uploads/organized_files.gif" alt="How do I organise the files of my website?" /></p>
<p>Now, anyone can open in the brower the subfolders and see what files are there. For instance, if anyone will type in the address bar &#8220;http://www.mywebsite.com/includes&#8221; will get a list with all files of subfolder &#8220;includes&#8221;. To avoid this I must put in my subfolder a file called &#8220;index.php&#8221; which contains only one line of code:</p>
<pre class="brush: php;">
&lt;?php
header(&quot;Location:http://&quot;.$_SERVER['HTTP_HOST']);
?&gt;
</pre>
<p>This line of code redirects the visitor to the main page of the website each time when he tries to open the subfolder &#8220;includes&#8221;.</p>
<p><strong>4. What about the SEO of the website?</strong></p>
<p>In Search Engine Optimization, everything is mainly about words. The goal of each website owner is to get on the first page of the most popular search engines: Google, Yahoo, Bing and so on. So&#8230;how can this be done?</p>
<p>First of all, I will start with the source-code of the website. The source-code of the website must have no erros. For that I must validate it using an add-on of Firefox browser called <a title="How do I validate the source-code of a web page?" href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">Web Developer 1.1.8</a>. After installing it, I can see if the web page has errors or not going to Tools &#8211; Validate HTML and Tools &#8211; Validate CSS. It is important the source-code to be valid because the crawlers can dig easier in it.</p>
<p>Also, it is inportant to have on the website more text than code. The more code exists in the source of the web page the harder it is for crawlers to get properly the content of the web page.</p>
<p>In HTML exist a couple of tags called <span style="text-decoration: underline;">meta tags</span> which were created to provide informations about website to the crawlers. These metatags are:</p>
<ul>
<li>keywords: here I add my keywords separated by comma. These keywords together with the commas can count up to around 256 characters</li>
<li>description: here I add a  short desciption of my web page. It can have up to around 156 characters</li>
<li>abstract: it can have up to around 100 characters</li>
</ul>
<p>Besides these metatags these is a tag called &lt;title&gt; which contains the title of the web page. This tag is very important in SEO and  must contain up to around 65 characters.</p>
<p>The golden rule of SEO is to post text on the website as much as possible. In this way the website will be indexed naturally by Google, Yahoo, Bing and all others search engines.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=What+do+I+need+to+develop+websites%3F+http://f3zmw.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/en/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=What+do+I+need+to+develop+websites%3F+http://f3zmw.th8.us" title="Post to Twitter">Tweet This Post</a></p>

<p>Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/programming/how-do-i-extract-the-extension-of-a-file/' rel='bookmark' title='Permanent Link: How do I extract the extension of a file?'>How do I extract the extension of a file?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/en/index.php/web/what-do-i-need-to-develop-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How many prime numbers are between X and Y?</title>
		<link>http://www.accesinterzis.ro/en/index.php/programming/how-many-prime-numbers-are-between-x-and-y/</link>
		<comments>http://www.accesinterzis.ro/en/index.php/programming/how-many-prime-numbers-are-between-x-and-y/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:43:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/en/?p=22</guid>
		<description><![CDATA[The bellow C++ program allows you to find how many prime numbers are between two positive integers. Before showing the program I just want to mention that a prime number is a positive integer which is devided only by 1 and itself.


#include &#60;iostream&#62;
#include &#60;vector&#62;

using namespace std;

int main()
{
	cout &#60;&#60; &#34;How many prime numbers are between X [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>The bellow C++ program allows you to find how many prime numbers are between two positive integers. Before showing the program I just want to mention that a prime number is a positive integer which is devided only by 1 and itself.</p>
<p><span id="more-22"></span></p>
<pre class="brush: cpp;">
#include &lt;iostream&gt;
#include &lt;vector&gt;

using namespace std;

int main()
{
	cout &lt;&lt; &quot;How many prime numbers are between X and Y?\n&quot;;
	int start, end, contor = 0;
	cout &lt;&lt; &quot;Enter the first positive integer:&quot;; cin &gt;&gt; start;
	cout &lt;&lt; &quot;Enter the second positive integer:&quot;; cin &gt;&gt; end;

	cout &lt;&lt; &quot;Between &quot; &lt;&lt; start &lt;&lt; &quot; and &quot; &lt;&lt; end &lt;&lt; &quot; are the following prime numbers:\n\n&quot;;
	//the loop which finds the prime numbers
	for (start; start &lt;= end; start++) {
		//the array which stores all the divisors of the number which is checking if it is prime or not
		vector&lt;int&gt; divisors;
		for (int i = 1; i &lt;= start; i++) {
			if (start%i == 0) {
				divisors.push_back(i);
			}
		}

		//checking if the number is prime or not; if the number is prime then it will be shown on screen
		if (divisors.size() == 2) {
			if (divisors[0] == 1 &amp;&amp; divisors[1] == start) {
				cout &lt;&lt; start &lt;&lt; &quot;\n&quot;;
				contor++;
			}
		}
	}

	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;The number of prime numbers found:&quot; &lt;&lt; contor &lt;&lt; &quot;\n&quot;;

    return 0;
}
</pre>
<p>For instance, between 159 and 14 789 are 1696 prime numbers. The last five of them are: 14 783, 14 779, 14 771, 14 767 and 14 759. 14.055 seconds took to the program to find them.<br />
As IDE, I used Code::Blocks 8.02 on Windows 7 operating system. And I have an Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz processor.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+many+prime+numbers+are+between+X+and+Y%3F+http://o6q25.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/en/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+many+prime+numbers+are+between+X+and+Y%3F+http://o6q25.th8.us" title="Post to Twitter">Tweet This Post</a></p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/en/index.php/programming/how-many-prime-numbers-are-between-x-and-y/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The third banner made in Adobe Photoshop CS4</title>
		<link>http://www.accesinterzis.ro/en/index.php/graphics/the-third-banner-made-in-adobe-photoshop-cs4/</link>
		<comments>http://www.accesinterzis.ro/en/index.php/graphics/the-third-banner-made-in-adobe-photoshop-cs4/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:41:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT security]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/en/?p=21</guid>
		<description><![CDATA[
I&#8217;ve started to enjoy drawing banners in Adobe Photoshop CS4. Too bad that I&#8217;ve installed some updates of  Windows 7 and Photoshop tells me now that my screen is defect. And because of that the colors aren&#8217;t so clear. WTF&#8230;before installing the updates the screen worked properly and after that Photoshop tells me that [...]


Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/graphics/my-first-banner-made-in-adobe-photoshop-cs3/' rel='bookmark' title='Permanent Link: My first banner made in Adobe Photoshop CS3'>My first banner made in Adobe Photoshop CS3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.accesinterzis.ro/en/wp-content/uploads/bannerAI.png"><img title="Banner made in Adobe Photoshop CS4" src="http://www.accesinterzis.ro/en/wp-content/uploads/bannerAI.png" alt="Banner made in Adobe Photoshop CS4" /></a></p>
<p>I&#8217;ve started to enjoy drawing banners in Adobe Photoshop CS4. Too bad that I&#8217;ve installed some updates of  Windows 7 and Photoshop tells me now that my screen is defect. And because of that the colors aren&#8217;t so clear. WTF&#8230;before installing the updates the screen worked properly and after that Photoshop tells me that I have to calibrate it? Pretty awkward.</p>
<p>But I don&#8217;t blame Windows because I&#8217;ve installed Linux Ubuntu 9.10 (called Karmic Koala) a few days ago and this operating system was released with a bug . Because of this bug you can&#8217;t set the Internet connection. Finally, after a long research on the Internet and big headeaches I found on an Ubuntu forum a solution which fixes the problem. I applied it, it worked and I went quickly to Update Manager to be sure that my PC is up to date. So, Linux downloaded and installed the updates and what a surprise&#8230; I got with no sound. The conclusion? Everywhere are bugs. Even in operating systems as Linux. I am wondering now what will happen if the black hat hackers will stop developing malware for Windows and redirect their attention  to Linux. Will they find bugs as many as they did in Windows?</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=The+third+banner+made+in+Adobe+Photoshop+CS4+http://www.accesinterzis.ro/en/?p=21" title="Post to Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/en/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=The+third+banner+made+in+Adobe+Photoshop+CS4+http://www.accesinterzis.ro/en/?p=21" title="Post to Twitter">Tweet This Post</a></p>

<p>Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/graphics/my-first-banner-made-in-adobe-photoshop-cs3/' rel='bookmark' title='Permanent Link: My first banner made in Adobe Photoshop CS3'>My first banner made in Adobe Photoshop CS3</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/en/index.php/graphics/the-third-banner-made-in-adobe-photoshop-cs4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My second banner</title>
		<link>http://www.accesinterzis.ro/en/index.php/graphics/my-second-banner/</link>
		<comments>http://www.accesinterzis.ro/en/index.php/graphics/my-second-banner/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:39:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[graphics]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/en/?p=20</guid>
		<description><![CDATA[
So, I got to my second banner. This time I&#8217;ve drawn it in Adobe Photoshop CS4. Finally, I could get an CS4 setup without any &#8220;beast&#8221; inside it. I had to make it for the same reason as I made my first banner: link-exchange.
 Tweet This Post

Related posts:My first banner made in Adobe Photoshop CS3
The [...]


Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/graphics/my-first-banner-made-in-adobe-photoshop-cs3/' rel='bookmark' title='Permanent Link: My first banner made in Adobe Photoshop CS3'>My first banner made in Adobe Photoshop CS3</a></li>
<li><a href='http://www.accesinterzis.ro/en/index.php/graphics/the-third-banner-made-in-adobe-photoshop-cs4/' rel='bookmark' title='Permanent Link: The third banner made in Adobe Photoshop CS4'>The third banner made in Adobe Photoshop CS4</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.accesinterzis.ro/en/wp-content/uploads/bannerAI300_150.jpg"><img title="ACCES INTERZIS | IT security and programming blog" src="http://www.accesinterzis.ro/en/wp-content/uploads/bannerAI300_150.jpg" alt="ACCES INTERZIS | IT security and programming blog" /></a></p>
<p>So, I got to my second banner. This time I&#8217;ve drawn it in Adobe Photoshop CS4. Finally, I could get an CS4 setup without any &#8220;beast&#8221; inside it. I had to make it for the same reason as I made <a title="My first banner in Abobe Photoshop" href="http://www.accesinterzis.ro/en/index.php/graphics/my-first-banner-made-in-adobe-photoshop-cs3/" target="_blank">my first banner</a>: link-exchange.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=My+second+banner+http://www.accesinterzis.ro/en/?p=20" title="Post to Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/en/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=My+second+banner+http://www.accesinterzis.ro/en/?p=20" title="Post to Twitter">Tweet This Post</a></p>

<p>Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/graphics/my-first-banner-made-in-adobe-photoshop-cs3/' rel='bookmark' title='Permanent Link: My first banner made in Adobe Photoshop CS3'>My first banner made in Adobe Photoshop CS3</a></li>
<li><a href='http://www.accesinterzis.ro/en/index.php/graphics/the-third-banner-made-in-adobe-photoshop-cs4/' rel='bookmark' title='Permanent Link: The third banner made in Adobe Photoshop CS4'>The third banner made in Adobe Photoshop CS4</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/en/index.php/graphics/my-second-banner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I grab email addresses of a web page?</title>
		<link>http://www.accesinterzis.ro/en/index.php/programming/how-do-i-grab-email-addresses-of-a-web-page/</link>
		<comments>http://www.accesinterzis.ro/en/index.php/programming/how-do-i-grab-email-addresses-of-a-web-page/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:35:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[source-code]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/en/index.php/programming/how-do-i-grab-email-addresses-of-a-web-page/</guid>
		<description><![CDATA[The bellow PHP script allows you to grab email addresses of a web page.
An important feature of the script is that it can run very well  on a local server as EasyPHP or XAMPP. It doesn&#8217;t have to run on a hosting server which might has restricted the use of PHP function file_get_contents(). For [...]


Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/it-security/how-do-i-flood-an-email-address/' rel='bookmark' title='Permanent Link: How do I flood an email address?'>How do I flood an email address?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The bellow PHP script allows you to grab email addresses of a web page.</p>
<p>An important feature of the script is that it can run very well  on a local server as EasyPHP or XAMPP. It doesn&#8217;t have to run on a hosting server which might has restricted the use of PHP function file_get_contents(). For our records, this resctriction is done editing the php.ini file of the Apache server. More exactly, the following line: allow_url_fopen = Off.</p>
<p><span id="more-18"></span></p>
<pre class="brush: php;">
&lt;?php
$url = &quot;http:/www.genericwebsite.com/contact.php&quot;;
//getting the source-code of the web page
$sc = file_get_contents($url);
$sc = strtolower($sc);
$forbidden_symbols = array('?', '!', ',', ';', ':', '+', '=', '/', '\\', '&quot;', '\'', '`', '’', '“', '”', '#', '$', '%', '^', '&amp;amp;', '*', '(', ')', '[', ']', '{', '}', '|', '&lt;', '&gt;');
//removing all symbols from the source-code less &quot;@&quot;, &quot;.&quot; and &quot;_&quot;
$sc = str_replace($forbidden_symbols, ' ', $sc);
//storing all words from the source-code into an array
$words_found = explode(' ', $sc);

//verifying each word from array if it is an email address
for ($i = 0; $i &lt; count($words_found); $i++) {
	//if the word contains the symbols &quot;@&quot; that means it is an email address
	if (strpos($words_found[$i], '@')) {
		//I make sure that the email address has no empty spaces in the beginning and in the and of it
		$email_address = trim($words_found[$i]);

		//I make sure that the email address has no symbols in the beginning and in the and of it
		//I apply all these cleaning filters because the source-code can be pretty messy
		$first_char = substr($email_address, 0, 1);
		while (!ctype_alpha($first_char)) {
			$email_address = substr($email_address, 1, strlen($email_address));
			$first_char = substr($email_address, 0, 1);
		}

		$last_char = substr($email_address, strlen($email_address) - 1, 1);
		while (!ctype_alpha($last_char)) {
			$email_address = substr($email_address, 0, strlen($email_address) - 1);
			$last_char = substr($email_address, strlen($email_address) - 1, 1);
		}

		//I make sure that the extracted string is really an email address
		if (eregi(&quot;^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,4}$&quot;, $email_address)) {
			echo $email_address.'&lt;br /&gt;';
		}
	}
}
?&gt;
</pre>
<p>Starting from this script, there can be developed far larger web applications with plenty of form inputs, all kind of jQuery features and a database behind it where might be stored the email addresses. So feel free to develop your own application based on your interests. I&#8217;ve just presented the core, the main idea. I&#8217;ve just shown the way we can get the source-code of a web page and from it to collect whatever we want. For instance, email addresses, URLs, keywords and so on. It depedens of what intents we have.</p>
<p>Before ending the article, I just want to mention that the script has nothing to do with spamming. <span style="text-decoration: underline;">Spamming means unsolicited mail</span>. So, as long as the script doesn&#8217;t send unsolicited emails with comercials the script can&#8217;t be called a spamming bot. It looks more like the spiders of search engines (Yahoo, Bing and obviously the migthy Google) which gather information from all over the Internet digging deep in the source-code of the web pages. The script can be adapted to gather URLs or the entire text of the web page or whatever your mind wants instead email addreses.</p>
<p>Regarding email addresses of the web pages, I&#8217;ve seen on the Internet people trying to protect their email addresses replacing &#8220;@&#8221; with &#8220;[at]&#8221; and &#8220;.&#8221; with &#8220;[dot]&#8220;. This method has two big issues: the  first one is that there can be developed scripts which easily break this system: the script looks for &#8220;[at]&#8221; instead &#8220;@&#8221; in the source-code. So it will get the email address in this format: &#8220;accesinterzis[at]gmail.com&#8221;. The next step is to replace &#8220;[at]&#8221; with &#8220;@&#8221; using PHP function str_replace() and it gets eventually the email address. The second issue is that the email address looks gross. Or at least unfriendly. So, the best way, perhaps unbreakable, to protect an email address is to generate it on the screen using Javascript as I did on my <a title="Contact" href="http://www.accesinterzis.ro/en/index.php/contact/" target="_blank">Contact</a> page . We need only a few lines of code:</p>
<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
var first_half = &quot;accesinterzis&quot;;
var at = &quot;@&quot;;
var second_half = &quot;gmail.com&quot;;
document.write(first_half + at + second_half);
&lt;/script&gt;
</pre>
<p>Using these Javascript lines we fix entirely the problem: any bot can&#8217;t grab the email address from source-code of the web page and the email address looks far friendlier in the browser. The main concern of using Javascript is that the code might not be cross-browser. But in this case, the code is pretty simple so we shouldn&#8217;t worry about it.</p>
<p>I wait suggestions to improve/optimize this algorithm of extracting email addresses of a web page. Cheers!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+do+I+grab+email+addresses+of+a+web+page%3F+http://83mt8.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/en/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+do+I+grab+email+addresses+of+a+web+page%3F+http://83mt8.th8.us" title="Post to Twitter">Tweet This Post</a></p>

<p>Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/it-security/how-do-i-flood-an-email-address/' rel='bookmark' title='Permanent Link: How do I flood an email address?'>How do I flood an email address?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/en/index.php/programming/how-do-i-grab-email-addresses-of-a-web-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My first banner made in Adobe Photoshop CS3</title>
		<link>http://www.accesinterzis.ro/en/index.php/graphics/my-first-banner-made-in-adobe-photoshop-cs3/</link>
		<comments>http://www.accesinterzis.ro/en/index.php/graphics/my-first-banner-made-in-adobe-photoshop-cs3/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:30:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[graphics]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/en/?p=16</guid>
		<description><![CDATA[
The above banner is my first banner. I had to do it because I need it when I make link exchange with someone for a better off page SEO. The banner isn&#8217;t something astonishing but I like it. Actually, I feel pretty proud of it. That`s why I felt the need to post it on [...]


Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/graphics/the-third-banner-made-in-adobe-photoshop-cs4/' rel='bookmark' title='Permanent Link: The third banner made in Adobe Photoshop CS4'>The third banner made in Adobe Photoshop CS4</a></li>
<li><a href='http://www.accesinterzis.ro/en/index.php/graphics/my-second-banner/' rel='bookmark' title='Permanent Link: My second banner'>My second banner</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.accesinterzis.ro/en/wp-content/uploads/bannerAI125_125.gif"><img title="my first banner" src="http://www.accesinterzis.ro/en/wp-content/uploads/bannerAI125_125.gif" alt="my first banner" /></a></p>
<p>The above banner is my first banner. I had to do it because I need it when I make link exchange with someone for a better off page SEO. The banner isn&#8217;t something astonishing but I like it. Actually, I feel pretty proud of it. That`s why I felt the need to post it on the blog.</p>
<p><span id="more-16"></span></p>
<p>It is made in Photoshop CS3. I know that most of the people use already CS4 version but each time when I download the setup of CS4 from torrents I take a trojan horse which disable my AntiVirus (Avira) and Windows Defender. And it didn&#8217;t happen once.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=My+first+banner+made+in+Adobe+Photoshop+CS3+http://ta253.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/en/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=My+first+banner+made+in+Adobe+Photoshop+CS3+http://ta253.th8.us" title="Post to Twitter">Tweet This Post</a></p>

<p>Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/graphics/the-third-banner-made-in-adobe-photoshop-cs4/' rel='bookmark' title='Permanent Link: The third banner made in Adobe Photoshop CS4'>The third banner made in Adobe Photoshop CS4</a></li>
<li><a href='http://www.accesinterzis.ro/en/index.php/graphics/my-second-banner/' rel='bookmark' title='Permanent Link: My second banner'>My second banner</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/en/index.php/graphics/my-first-banner-made-in-adobe-photoshop-cs3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How do I flood an email address?</title>
		<link>http://www.accesinterzis.ro/en/index.php/it-security/how-do-i-flood-an-email-address/</link>
		<comments>http://www.accesinterzis.ro/en/index.php/it-security/how-do-i-flood-an-email-address/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:20:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT security]]></category>
		<category><![CDATA[black hat]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/en/?p=13</guid>
		<description><![CDATA[This PHP script lets you to send a huge number of emails to an email address. Basically, it floods that email account.
An important feature of the script is that all emails are different from one another. Each time the script sends an email, the sender is different (for instance, keagon.goldsmith@gmail.com, kurt.taylor@yahoo.com, estelle.cook@hotmail.com and so on). [...]


Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/programming/how-do-i-grab-email-addresses-of-a-web-page/' rel='bookmark' title='Permanent Link: How do I grab email addresses of a web page?'>How do I grab email addresses of a web page?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This <a title="How do I flood an email address?" href="http://www.accesinterzis.ro/myportofolio/flood.php" target="_blank">PHP script</a> lets you to send a huge number of emails to an email address. Basically, it floods that email account.</p>
<p>An important feature of the script is that all emails are different from one another. Each time the script sends an email, the sender is different (for instance, keagon.goldsmith@gmail.com, kurt.taylor@yahoo.com, estelle.cook@hotmail.com and so on). Same for the body and the subject of the email. So, each email has its own sender, subject and body which is very important because only a few emails will get in Junkbox. Most of them will get in Inbox which is our purpose.</p>
<p><span id="more-13"></span></p>
<p>The disadvantage of the script is that it can&#8217;t hide the source of the attack. But for that it can be used a proxy server.</p>
<p>As everybody sees, the script is 100% black hat. Therefore, I won&#8217;t show the source-code of it. But if someone wants to have it the script is for sale. I ask for it 25€. Or shall I say ONLY 24.99€? So, if any one wants to get in touch with me my data contact can be found <a title="Contact" href="http://www.accesinterzis.ro/index.php/contact/" target="_blank">here</a>. Cheers!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+do+I+flood+an+email+address%3F+http://n8i33.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/en/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+do+I+flood+an+email+address%3F+http://n8i33.th8.us" title="Post to Twitter">Tweet This Post</a></p>

<p>Related posts:<ol><li><a href='http://www.accesinterzis.ro/en/index.php/programming/how-do-i-grab-email-addresses-of-a-web-page/' rel='bookmark' title='Permanent Link: How do I grab email addresses of a web page?'>How do I grab email addresses of a web page?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/en/index.php/it-security/how-do-i-flood-an-email-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
