<?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>Stima Soft</title>
	<atom:link href="http://www.evolua.ro/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.evolua.ro</link>
	<description>Stima Soft web blog</description>
	<lastBuildDate>Tue, 20 Dec 2011 14:57:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rewrite url</title>
		<link>http://www.evolua.ro/rewrite-url/</link>
		<comments>http://www.evolua.ro/rewrite-url/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 14:29:44 +0000</pubDate>
		<dc:creator>iulia_n</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=434</guid>
		<description><![CDATA[Rewriting urls in Asp.Net is not a complicated thing if you remember some basic steps: 1. Any request will first go to Application_BeginRequest from Global.asax 2. Your online store must be designed in an easy way: - categories must be unique by name - subcategories must be unique by name in the same category (The [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #7ca2a2;">Rewriting urls in Asp.Net is not a complicated thing if you remember some basic steps:<br />
1. Any request will first go to Application_BeginRequest from Global.asax<br />
2. Your online store must be designed in an easy way:<br />
- categories must be unique by name<br />
- subcategories must be unique by name in the same category (The pair category-subcategory must be unique)<br />
In this way you can have as many levels as you want.</span></p>
<p><span style="color: #7ca2a2;">Using this advices, you will have a function that helps your users navigate through levels of categories.</span><br />
<em>protected void Application_BeginRequest(Object sender, EventArgs e)<br />
{</em></p>
<p style="padding-left: 30px;"><em>string fullOrigionalpath = Request.Url.ToString();<br />
string filePath = Request.FilePath.ToString();</em><br />
<em>if (filePath.ToLower().Contains(&#8220;sitemap.html&#8221;))<br />
{</em></p>
<p style="padding-left: 60px;"><span style="color: #808000;">//if you have a custom sitemap</span><em><br />
HttpContext.Current.RewritePath(Generics.HTTP.AppPath + &#8220;Sitemap.aspx&#8221;, false); </em></p>
<p style="padding-left: 30px;"><em>}</em><br />
<span style="color: #808000;">//<em>Generics.Constants.Page_EXT</em> in this case is &#8220;.html&#8221;</span><br />
<em>filePath = filePath.Replace(Generics.Constants.Page_EXT, string.Empty);<br />
string originalFilePath = filePath;</em></p>
<p style="padding-left: 30px;"><em>string path = Generics.HTTP.AppPath;</em></p>
<p style="padding-left: 30px;"><span style="color: #808000;">//HERE you add your code<br />
//first you can check if filePath  contains a product id. In this case:</span><br />
<em>path+=&#8221;Products.aspx?id_products=&#8221;+id_product;</em></p>
<p style="padding-left: 30px;"><span style="color: #808000;">//if filePath is not a product page, than you check your categories</span><br />
<em>Category categ=Utility.GetCAtegoryByFriendlyName(filePath);<br />
path+=&#8221;Category.aspx?id_category=&#8221;+categ.id;</em></p>
<p style="padding-left: 30px;"><span style="color: #808000;">//finally you need to rewrite path as needed</span><br />
<em>HttpContext.Current.RewritePath(path, false); </em></p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/rewrite-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun with popups</title>
		<link>http://www.evolua.ro/fun-with-popups/</link>
		<comments>http://www.evolua.ro/fun-with-popups/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 09:45:03 +0000</pubDate>
		<dc:creator>iulia_n</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=417</guid>
		<description><![CDATA[Let&#8217;s say we have something like the next scenario: 1. We have a popup window for editing a record. 2. We need to select a value from a complex list of records, so we need another popup for this select. Problem: Our second popup is bigger then the first one, so we need to open [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #7ca2a2;">Let&#8217;s say we have something like the next scenario:<br />
1. We have a popup window for editing a record.<br />
2. We need to select a value from a complex list of records, so we need another popup for this select.</span></p>
<p><span style="color: #7ca2a2;">Problem:<br />
Our second popup is bigger then the first one, so we need to open it from our main page.<br />
By now, we manage to do this really easy. The main issue is when trying to pass the selected value from the second popup to first one. Remeber that we opened it from the main page.</span></p>
<p><span style="color: #7ca2a2;">Solution:</span></p>
<p><span style="color: #7ca2a2;">In the first popup we will have a function for opening the second popup.<br />
In this function we set a var childPage from the main page as a reference to our first popup.</span></p>
<p><em>function openPopup(){</em><br />
<em></p>
<p style="padding-left: 30px;">window.parent.setHiddenPageChild(window);<br />
window.parent.OpenModalWindow(params);</p>
<p></em><br />
<em>}</em></p>
<p><span style="color: #7ca2a2;">On the main page we have the <em>setHiddenPageChild</em> function</span></p>
<p><em>var childPage;<br />
function setHiddenPageChild(child){</em><br />
<em></em></p>
<p><em></p>
<p style="padding-left: 30px;">childPage=child;</p>
<p></em></p>
<p><em></em></p>
<p><em>}</em></p>
<p><span style="color: #7ca2a2;">and <em>setRecordFromResponse</em> function that will pass the selected value from the second popup to the first one.<br />
This function will be called from the second popup like this: <em>window.parent.setRecordFromResponse(response)</em></span></p>
<p><em>function setRecordFromResponse(response){</em></p>
<p style="padding-left: 30px;"><em>childPage.UseSelectedRecord(response);</em><br />
<span style="color: #808000;">//childPage served us well, so we will let it retire</span><br />
<em>childPage=null;</em></p>
<p><em>}</em></p>
<p><span style="color: #7ca2a2;"><em>Response</em> is the value selected in the second popup. It can be an id, a value or an object.<br />
Now we use <em>childPage</em> that was initialized at a previous step. This is how we can have access to the functions of the first popup</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/fun-with-popups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery datetime picker problem</title>
		<link>http://www.evolua.ro/jquery-datetime-picker-problem/</link>
		<comments>http://www.evolua.ro/jquery-datetime-picker-problem/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 07:04:21 +0000</pubDate>
		<dc:creator>gabrielm</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=408</guid>
		<description><![CDATA[Some days ago I run into the following problem with jQuery&#8217;s datetime picker. I have a form that contain a input field that I populate with a date/time picker.  If you populate the form on the server with some default values, the jQuery&#8217;s hidden fields wont get set unless you do some action on the [...]]]></description>
			<content:encoded><![CDATA[<p>Some days ago I run into the following problem with jQuery&#8217;s datetime picker.</p>
<p>I have a form that contain a input field that I populate with a date/time picker.  If you populate the form on the server with some default values, the jQuery&#8217;s hidden fields wont get set unless you do some action on the calendar.</p>
<p>The  solution  is to add <em>inline:true</em> to its options like this:</p>
<p>$(&#8220;#myDate&#8221;).datepicker({</p>
<p style="padding-left: 30px;">
inline: true,<br />
dateFormat: &#8216;yy-mm-dd&#8217;</p>
<p>});</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/jquery-datetime-picker-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>non-breaking space in MIME encoded, quoted-printable text</title>
		<link>http://www.evolua.ro/non-breaking-space-in-mime-encoded-quoted-printable-text/</link>
		<comments>http://www.evolua.ro/non-breaking-space-in-mime-encoded-quoted-printable-text/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 15:30:36 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=404</guid>
		<description><![CDATA[in emailurile encodate cu quoted-printable apare un caracter &#8220;space&#8221; care nu poate fi parsat nici de php nici de C#, acesta reprezinta codul &#8220;=C2=A0&#8243; in bytes &#8220;C2 A0&#8243;. UTF-8 il translateaza in 00A0. ca sa scapam de acest caracter trebuie sa-l decodam folosind functia &#8220;quoted_printable_decode&#8221; si apoi sa eliminam sir de caractere &#8220;=C2=A0&#8243; sau &#8220;\xC2\xA0&#8243; [...]]]></description>
			<content:encoded><![CDATA[<p>in emailurile encodate cu quoted-printable apare un caracter &#8220;space&#8221; care nu poate fi parsat nici de php nici de C#, acesta reprezinta codul &#8220;=C2=A0&#8243; in bytes &#8220;C2 A0&#8243;. </p>
<p>UTF-8 il translateaza in 00A0.</p>
<p>ca sa scapam de acest caracter trebuie sa-l decodam folosind functia &#8220;quoted_printable_decode&#8221; si apoi sa eliminam sir de caractere &#8220;=C2=A0&#8243; sau &#8220;\xC2\xA0&#8243;</p>
<p>mai multe informatii gasiti <a href="http://php.net/manual/en/function.quoted-printable-decode.php"">aici</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/non-breaking-space-in-mime-encoded-quoted-printable-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice jQuery Popup Modal Dialog Plugin</title>
		<link>http://www.evolua.ro/jquery-popup-modal-dialog-plugin/</link>
		<comments>http://www.evolua.ro/jquery-popup-modal-dialog-plugin/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 07:12:26 +0000</pubDate>
		<dc:creator>gabrielm</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[fancybox]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=393</guid>
		<description><![CDATA[One of the best jQuery plugins to display a popup modal window is fancybox The usage is simple: $(&#8220;.popup&#8221;).fancybox(); $.fancybox.resize(); and make sure your link has popup class. It will load the page pointed by your link href and resize as needed. What if you display a form in the popup and want to reload [...]]]></description>
			<content:encoded><![CDATA[<p>One of the best jQuery plugins to display a popup modal window is <a title="jQuery popup" href="http://fancybox.net/" target="_blank">fancybox</a></p>
<p>The usage is simple:</p>
<p>$(&#8220;.popup&#8221;).fancybox();<br />
$.fancybox.resize();</p>
<p>and make sure your link has popup class. It will load the page pointed by your link href and resize as needed.</p>
<p>What if you display a form in the popup and want to reload it with an success message? Use this: $(&#8216;#fancybox-content&#8217;).html(data); where data is the content you want to show in popup.</p>
<p>For example, using ajax to submit the form:</p>
<address style="padding-left: 30px;">$.ajax({ </address>
<address style="padding-left: 60px;"> url: &#8216;exemple.com&#8217;, </address>
<address style="padding-left: 60px;"> data: $(&#8216;#form1&#8242;).serialize(),</address>
<address style="padding-left: 60px;"> type: &#8216;post&#8217;, </address>
<address style="padding-left: 60px;"> cache: false,</address>
<address style="padding-left: 60px;"> dataType: &#8216;html&#8217;, </address>
<address style="padding-left: 60px;"> success: function (data) {</address>
<address style="padding-left: 90px;"> $(&#8216;#fancybox-content&#8217;).html(data); </address>
<address style="padding-left: 90px;"> $.fancybox.resize(); </address>
<address style="padding-left: 60px;"> }, </address>
<address style="padding-left: 60px;"> error:function (e,data) {  alert(e);  }</address>
<address style="padding-left: 30px;">});</address>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/jquery-popup-modal-dialog-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; create class properties at runtime</title>
		<link>http://www.evolua.ro/php-create-class-properties-at-runtime/</link>
		<comments>http://www.evolua.ro/php-create-class-properties-at-runtime/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 06:55:14 +0000</pubDate>
		<dc:creator>gabrielm</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=380</guid>
		<description><![CDATA[How to dynamically create  in PHP a property for an object? If the object  is $foo you use this syntax: $this-&#62;{$property} = &#8216;a value&#8217;; For example: &#60;?php class foo { public function setProperty($n, $v) { &#160;&#160;&#160;$this-&#62;{$n} = $v; } } $foo = new foo(); $foo-&#62;setProperty('property1','value1'); echo $foo-&#62;property1; //will display value1 ?&#62;]]></description>
			<content:encoded><![CDATA[<p>How to dynamically create  in PHP a property for an object?</p>
<p>If the object  is $foo you use this syntax: $this-&gt;{$property} = &#8216;a value&#8217;;</p>
<p>For example:</p>
<p><code>&lt;?php</code></p>
<p><code>class foo</code><code> {</code></p>
<p style="padding-left: 30px;"><code>public function setProperty($n, $v)<br />
{<br />
&nbsp;&nbsp;&nbsp;$this-&gt;{$n} = $v;<br />
}</p>
<p>}</code><br />
<code> </code></p>
<p><code>$foo = new foo();<br />
$foo-&gt;setProperty('property1','value1');<br />
echo $foo-&gt;property1; //will display value1<br />
?&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/php-create-class-properties-at-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vi: blkopen&#8217;s read failed</title>
		<link>http://www.evolua.ro/vi-blkopens-read-failed/</link>
		<comments>http://www.evolua.ro/vi-blkopens-read-failed/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 13:08:22 +0000</pubDate>
		<dc:creator>ionutt</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=374</guid>
		<description><![CDATA[Most of the time you get this error (message)  when you ran out of space. Try &#8220;df &#8221; and if &#8220;Available&#8221; column indicate 0 then try to make some space and issue the command again (vi)]]></description>
			<content:encoded><![CDATA[<p>Most of the time you get this error (message)  when you ran out of space.</p>
<p>Try &#8220;df &#8221; and if &#8220;Available&#8221; column indicate 0 then try to make some space and issue the command again (vi)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/vi-blkopens-read-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery Calendar with time picker and translation of the content</title>
		<link>http://www.evolua.ro/jquery-calendar-with-time-picker-and-translation-of-the-content/</link>
		<comments>http://www.evolua.ro/jquery-calendar-with-time-picker-and-translation-of-the-content/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 07:56:43 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=368</guid>
		<description><![CDATA[The timepicker addon adds a timepicker to jQuery UI Datepicker, thus the datepicker and slider components (jQueryUI) are required for using any of these. To create your own regional objects per region, use the setDefaults method to tie these together. Setting datepicker and timepicker regionals separtely will help ensure proper wording when only using datepicker [...]]]></description>
			<content:encoded><![CDATA[<p>The timepicker addon adds a timepicker to jQuery UI Datepicker, thus the datepicker and slider components (jQueryUI) are required for using any of these.</p>
<p>To create your own regional objects per region, use the setDefaults method to tie these together. Setting datepicker and timepicker regionals separtely will help ensure proper wording when only using datepicker or timepicker. Here is an example:</p>
<p>$.datepicker.regional['ru'] = {<br />
	closeText: &#8216;Закрыть&#8217;,<br />
	prevText: &#8216;<Пред',<br />
	nextText: 'След>&#8216;,<br />
	currentText: &#8216;Сегодня&#8217;,<br />
	monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь',<br />
	'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],<br />
	monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн',<br />
	'Июл','Авг','Сен','Окт','Ноя','Дек'],<br />
	dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'],<br />
	dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'],<br />
	dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'],<br />
	weekHeader: &#8216;Не&#8217;,<br />
	dateFormat: &#8216;dd.mm.yy&#8217;,<br />
	firstDay: 1,<br />
	isRTL: false,<br />
	showMonthAfterYear: false,<br />
	yearSuffix: &#8221;<br />
};<br />
$.datepicker.setDefaults($.datepicker.regional['ru']);</p>
<p>$.timepicker.regional['ru'] = {<br />
	timeOnlyTitle: &#8216;Выберите время&#8217;,<br />
	timeText: &#8216;Время&#8217;,<br />
	hourText: &#8216;Часы&#8217;,<br />
	minuteText: &#8216;Минуты&#8217;,<br />
	secondText: &#8216;Секунды&#8217;,<br />
	millisecText: &#8216;миллисекунды&#8217;,<br />
	currentText: &#8216;Теперь&#8217;,<br />
	closeText: &#8216;Закрыть&#8217;,<br />
	ampm: false<br />
};<br />
$.timepicker.setDefaults($.timepicker.regional['ru']);</p>
<p>$(&#8216;#example4&#8242;).datetimepicker({<br />
	timeFormat: &#8216;h:m&#8217;,<br />
	separator: &#8216; &#8216;<br />
});</p>
<p>documentation <a href="http://trentrichardson.com/examples/timepicker/">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/jquery-calendar-with-time-picker-and-translation-of-the-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pagination on google custom search</title>
		<link>http://www.evolua.ro/pagination-on-google-custom-search/</link>
		<comments>http://www.evolua.ro/pagination-on-google-custom-search/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 10:58:55 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=358</guid>
		<description><![CDATA[in the google custom search results pagination will not keep the number of page just visited, for example if you go to the page 3 and go back via browser button you will get results from the first page. To keep visited page some custom modifications should be implemented: step 1: In the function searchCompleteCallback(), [...]]]></description>
			<content:encoded><![CDATA[<p>in the google custom search results pagination will not keep the number of page just visited,<br />
for example if you go to the page 3 and go back via browser button you will get results from the first page. </p>
<p>To keep visited page some custom modifications should be implemented:</p>
<p>step 1:<br />
In the  function searchCompleteCallback(), we need to add to all links parameter &#038;page= with calculated page counter</p>
<p>ex:</p>
<pre>
if(back_page == '')
 back_page = 0;
else
 back_page = (back_page*10)-10;
</pre>
<p>with javascript append all links with this parameter. </p>
<p>&#8230;&#8217;&#038;page=&#8217;+back_page;</p>
<p>step 2:</p>
<p>in the function google.setOnLoadCallback(function(){ set the parameter with google custeom search key,to use this application, and concatinate parameter with page number</p>
<p><strong>var customSearchControl = new google.search.CustomSearchControl(&#8216;gcs_customer_key&#8217;+'&#038;start=&#8217;.$_GET['page']);</strong></p>
<p>This will point the results from the google custom serach to the right page number.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/pagination-on-google-custom-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP POST from PHP, without cURL using stream_context_create</title>
		<link>http://www.evolua.ro/http-post-from-php-without-curl-using-stream_context_create/</link>
		<comments>http://www.evolua.ro/http-post-from-php-without-curl-using-stream_context_create/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 12:08:14 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.evolua.ro/?p=356</guid>
		<description><![CDATA[Creates and returns a stream context with any options supplied. It can be used to send and receive information to/from the server, instead of using PEAR&#8217;s webservice. example you can find here and here]]></description>
			<content:encoded><![CDATA[<p>Creates and returns a stream context with any options supplied.</p>
<p>It can be used to send and receive information to/from the server, instead of using PEAR&#8217;s webservice.</p>
<p>example you can find <a href="http://wezfurlong.org/blog/2006/nov/http-post-from-php-without-curl/">here</a> and <a href="http://www.php.net/manual/en/function.stream-context-create.php">here</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.evolua.ro/http-post-from-php-without-curl-using-stream_context_create/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>


