<?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>Jontas &#187; Development</title>
	<atom:link href="http://www.f15ijp.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.f15ijp.com</link>
	<description>My digital notepad (notes etc)</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:24:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Opera 8.54 don’t show the session restore window</title>
		<link>http://www.f15ijp.com/2011/10/08/opera-8-54-don%e2%80%99t-show-the-session-restore-window/</link>
		<comments>http://www.f15ijp.com/2011/10/08/opera-8-54-don%e2%80%99t-show-the-session-restore-window/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 12:36:02 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Opera]]></category>
		<category><![CDATA[cross browser testing]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=906</guid>
		<description><![CDATA[One way to disable the Session restore question (after the browser has crashed/been turned off hard) on Opera 8.54 is to delete the files that hold the session data. DEL /Q &#34;C:\Program Files\Opera\profile\sessions\autosave.win&#34; DEL /Q &#34;C:\Program Files\Opera\profile\sessions\autosave.win.bak&#34; This can be scripted together with the launch of the browser so that batch(.bat) file could look like: [...]]]></description>
			<content:encoded><![CDATA[<p>One way to disable the Session restore question (after the browser has crashed/been turned off hard) on Opera 8.54 is to delete the files that hold the session data.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">DEL <span style="color: #000000; font-weight: bold;">/</span>Q <span style="color: #ff0000;">&quot;C:\Program Files\Opera\profile\sessions\autosave.win&quot;</span>
DEL <span style="color: #000000; font-weight: bold;">/</span>Q <span style="color: #ff0000;">&quot;C:\Program Files\Opera\profile\sessions\autosave.win.bak&quot;</span></pre></div></div>

<p>This can be scripted together with the launch of the browser so that batch(.bat) file could look like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">DEL <span style="color: #000000; font-weight: bold;">/</span>Q <span style="color: #ff0000;">&quot;C:\Program Files\Opera\profile\sessions\autosave.win&quot;</span>
DEL <span style="color: #000000; font-weight: bold;">/</span>Q <span style="color: #ff0000;">&quot;C:\Program Files\Opera\profile\sessions\autosave.win.bak&quot;</span>
<span style="color: #ff0000;">&quot;c:\Program Files\opera\opera.exe&quot;</span> <span style="color: #000000; font-weight: bold;">%</span>1</pre></div></div>

<p><em>note:</em> the %1 means to insert the first argument given to the batch file here. So if this is called &#8220;<strong>opera.bat</strong>&#8221; and you would call it with &#8220;<strong>opera.bat www.f15ijp.com</strong>&#8221; it would open this url.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2011/10/08/opera-8-54-don%e2%80%99t-show-the-session-restore-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netscape Navigator 9.0: Don&#8217;t show the session restore popup</title>
		<link>http://www.f15ijp.com/2011/10/08/netscape-navigator-9-0-dont-show-the-session-restore-popup/</link>
		<comments>http://www.f15ijp.com/2011/10/08/netscape-navigator-9-0-dont-show-the-session-restore-popup/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 11:15:27 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Netscape]]></category>
		<category><![CDATA[SeaMonkey]]></category>
		<category><![CDATA[cross browser testing]]></category>
		<category><![CDATA[Netscape Navigator]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=896</guid>
		<description><![CDATA[Netscape Navigator 9.0 will promt the user to restore the previous session (pages that were open) if the browser crashed (or was shut down hard/incorrectly). This can be turned off by going into “about:config” finding the key “browser.sessionstore.resume_from_crash” and setting this to false. Update: This also applies for the SeaMonkey Browser]]></description>
			<content:encoded><![CDATA[<p>Netscape Navigator 9.0 will promt the user to restore the previous session (pages that were open) if the browser crashed (or was shut down hard/incorrectly).</p>
<p>This can be turned off by going into <strong>“about:config”</strong> finding the key <strong>“browser.sessionstore.resume_from_crash”</strong> and setting this to false.</p>
<p><a href="http://www.f15ijp.com/wp-content/uploads/2011/10/netscape-no_resume.jpg"><img src="http://www.f15ijp.com/wp-content/uploads/2011/10/netscape-no_resume-300x142.jpg" alt="" title="netscape-no_resume" width="300" height="142" class="alignnone size-medium wp-image-909" /></a></p>
<p><strong>Update:</strong> This also applies for the SeaMonkey Browser</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2011/10/08/netscape-navigator-9-0-dont-show-the-session-restore-popup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows: Don&#8217;t update Google Chrome (i.e. disable auto update)</title>
		<link>http://www.f15ijp.com/2011/10/07/windows-dont-update-google-chrome-i-e-disable-auto-update/</link>
		<comments>http://www.f15ijp.com/2011/10/07/windows-dont-update-google-chrome-i-e-disable-auto-update/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 19:16:43 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[cross browser testing]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=886</guid>
		<description><![CDATA[By default Google Chrome will update to the latest version automatically. It is however possible to disable this and instead update manually (when needed/wanted). Note: This means you will not get security updates as threats are found and these get fixed &#8211; so this might be a bad idea to do if you don&#8217;t plan [...]]]></description>
			<content:encoded><![CDATA[<p>By default Google Chrome will update to the latest version automatically. It is however possible to disable this and instead update manually (when needed/wanted).</p>
<p>Note: This means you will not get security updates as threats are found and these get fixed &#8211; so this might be a bad idea to do if you don&#8217;t plan to update manually.</p>
<p>Open up a registry editor and check if the key &#8220;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Update&#8221; exists, otherwise create it (the key is the tree structure in regedit).<br />
Now enter a Key name &#8220;DisableAutoUpdateChecksCheckboxValue &#8221; as a DWORD and give it the value &#8220;1&#8243;.<br />
This will keep Google Chrome from auto updating.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2011/10/07/windows-dont-update-google-chrome-i-e-disable-auto-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up JAVA_HOME on Window</title>
		<link>http://www.f15ijp.com/2011/09/20/setting-up-java_home-on-window/</link>
		<comments>http://www.f15ijp.com/2011/09/20/setting-up-java_home-on-window/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 21:59:45 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JAVA_HOME]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=884</guid>
		<description><![CDATA[The JAVA_HOME variable should point to the JDK&#8217;s bin folder in order for Java applications (jar, war, etc) to know where Java lives. To setup a JAVA_HOME environment variable on Windows. Right click on the My Computer icon in the start menu or on the desktop and select properties Click the Advanced Tab Click the [...]]]></description>
			<content:encoded><![CDATA[<p>The JAVA_HOME variable should point to the JDK&#8217;s bin folder in order for Java applications (jar, war, etc) to know where Java lives.</p>
<p>To setup a JAVA_HOME environment variable on Windows.</p>
<ul>
<li>Right click on the My Computer icon in the start menu or on the desktop and select properties</li>
<li>Click the Advanced Tab</li>
<li>Click the Environment Variables button</li>
<li>Under System Variable, click New</li>
<li>Enter the variable name as JAVA_HOME</li>
<li>Enter the variable value as the install path for the Development Kit</li>
<li>Click OK</li>
<li>Click Apply Changes</li>
</ul>
<p><strong><em>Word of caution</em></strong>, Java is not fond of spaces, so I use pathnames without spaces.</p>
<p><em>Note</em>: You will need to click OK, apply changes AND reload cmd to see the changes there.</p>
<p><a href="http://www.f15ijp.com/wp-content/uploads/2011/09/JAVA_HOME.png"><img src="http://www.f15ijp.com/wp-content/uploads/2011/09/JAVA_HOME-150x150.png" alt="" title="JAVA_HOME" width="150" height="150" class="aligncenter size-thumbnail wp-image-888" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2011/09/20/setting-up-java_home-on-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lynx make a request to a port</title>
		<link>http://www.f15ijp.com/2011/09/19/lynx-make-a-request-to-a-port/</link>
		<comments>http://www.f15ijp.com/2011/09/19/lynx-make-a-request-to-a-port/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 18:54:57 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Lynx]]></category>
		<category><![CDATA[cross browser testing]]></category>
		<category><![CDATA[lynx]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=873</guid>
		<description><![CDATA[With lynx it is not hard to reqest a port other than 80. Simply add :port after the port and before the &#8220;/&#8221;. lynx domain:port lynx http://domain:port/dir]]></description>
			<content:encoded><![CDATA[<p>With lynx it is not hard to reqest a port other than 80.<br />
Simply add :port after the port and before the &#8220;/&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">lynx</span> domain:port
<span style="color: #c20cb9; font-weight: bold;">lynx</span> http:<span style="color: #000000; font-weight: bold;">//</span>domain:port<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dir</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2011/09/19/lynx-make-a-request-to-a-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opera 9+ don’t show the session restore window</title>
		<link>http://www.f15ijp.com/2011/07/28/opera-9-don%e2%80%99t-show-the-session-restore-window/</link>
		<comments>http://www.f15ijp.com/2011/07/28/opera-9-don%e2%80%99t-show-the-session-restore-window/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 18:41:02 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Opera]]></category>
		<category><![CDATA[cross browser testing]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=849</guid>
		<description><![CDATA[To set up Opera so that crash-recovery and splash screens are disabled you can do the following: On Opera, type opera:config in the url bar to edit configuration. Modify the configuration: Recovery Strategy = 0 and Uncheck Show Problem Dialog]]></description>
			<content:encoded><![CDATA[<p>To set up Opera so that crash-recovery and splash screens are disabled you can do the following:</p>
<p>On Opera, type <strong>opera:config</strong> in the <em>url bar</em> to edit configuration.<br />
Modify the configuration:<br />
<strong>Recovery Strategy</strong> = <em>0</em><br />
and<br />
<em>Uncheck</em> <strong>Show Problem Dialog</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2011/07/28/opera-9-don%e2%80%99t-show-the-session-restore-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FireFox 2.x don&#8217;t show the session restore window</title>
		<link>http://www.f15ijp.com/2011/07/25/firefox-2-x-dont-show-the-session-restore-window/</link>
		<comments>http://www.f15ijp.com/2011/07/25/firefox-2-x-dont-show-the-session-restore-window/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 21:17:37 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Flock]]></category>
		<category><![CDATA[cross browser testing]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=843</guid>
		<description><![CDATA[When FireFox 2.x came out it was the first version that introduced session restore if the browser crashed (or was shut down hard/incorrectly). This can be turned off by going into &#8220;about:config&#8221; finding the key &#8220;browser.sessionstore.resume_session&#8221; and setting this to false Also you probably want to check out the startup options under &#8220;Tools->Options->When Firefox starts&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>When FireFox 2.x came out it was the first version that introduced session restore if the browser crashed (or was shut down hard/incorrectly).</p>
<p>This can be turned off by going into &#8220;<strong>about:config</strong>&#8221; finding the key &#8220;<strong>browser.sessionstore.resume_session</strong>&#8221; and setting this to <strong>false</strong></p>
<p>Also you probably want to check out the startup options under &#8220;<strong>Tools->Options->When Firefox starts</strong>&#8221; </p>
<p><a href="http://www.f15ijp.com/wp-content/uploads/2011/07/firefox2x_-_dont_show_session_restore.jpg"><img src="http://www.f15ijp.com/wp-content/uploads/2011/07/firefox2x_-_dont_show_session_restore-300x225.jpg" alt="" title="firefox2x_-_don&#039;t_show_session_restore" width="300" height="225" class="aligncenter size-medium wp-image-853" /></a></p>
<p>(This can also be used to show the session restore window by setting the &#8220;<strong>browser.sessionstore.resume_session</strong>&#8221; to <strong>true</strong>)</p>
<p>Note: This can also be used with Flock versions 2.6.x as that is based on FireFox</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2011/07/25/firefox-2-x-dont-show-the-session-restore-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP raw POST data</title>
		<link>http://www.f15ijp.com/2011/07/22/php-raw-post-data/</link>
		<comments>http://www.f15ijp.com/2011/07/22/php-raw-post-data/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 14:31:07 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP4]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[$_POST]]></category>
		<category><![CDATA[file_get_contents]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[POST]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=837</guid>
		<description><![CDATA[To read the raw data being posted to a php page (for instance when $_POST is empty due to problems with encoding types or $HTTP_RAW_POST_DATA not being readable due to php.ini settings) reading file_get_contents is a nice solution. $postData = file_get_contents&#40;'php://input'&#41;;]]></description>
			<content:encoded><![CDATA[<p>To read the raw data being posted to a php page (for instance when $_POST is empty due to problems with encoding types or $HTTP_RAW_POST_DATA not being readable due to php.ini settings) reading file_get_contents is a nice solution.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$postData</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'php://input'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2011/07/22/php-raw-post-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPMailer send mail in UTF-8 encoding</title>
		<link>http://www.f15ijp.com/2011/07/04/phpmailer-send-mail-in-utf-8-encoding/</link>
		<comments>http://www.f15ijp.com/2011/07/04/phpmailer-send-mail-in-utf-8-encoding/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 15:00:28 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[PHPMailer]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=834</guid>
		<description><![CDATA[PHPMailer does not seem to auto-detect encodings, so if you wish to send mail in (for instance UTF-8) you need to tell PHPMailer this. Thankully that is very easy $phpMailerObject-&#62;CharSet = 'UTF-8';]]></description>
			<content:encoded><![CDATA[<p>PHPMailer does not seem to auto-detect encodings, so if you wish to send mail in (for instance UTF-8) you need to tell PHPMailer this. Thankully that is very easy</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$phpMailerObject</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CharSet</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'UTF-8'</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2011/07/04/phpmailer-send-mail-in-utf-8-encoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding htmlattributes to a ActionLink</title>
		<link>http://www.f15ijp.com/2011/05/07/adding-htmlattributes-to-a-actionlink/</link>
		<comments>http://www.f15ijp.com/2011/05/07/adding-htmlattributes-to-a-actionlink/#comments</comments>
		<pubDate>Sat, 07 May 2011 11:09:45 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[ASP.NET C#]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[MVC3]]></category>
		<category><![CDATA[ActionLink]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Html helper]]></category>
		<category><![CDATA[Html.ActionLink]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=797</guid>
		<description><![CDATA[To add htmlattributes to a ActionLink might be needed for instance for the layout of the page. @Html.ActionLink&#40;&#34;Link text&#34;, &#34;action&#34;, &#34;Controller&#34;, null, new &#123;style=&#34;float:left&#34;&#125;&#41; //Adding a css class (need the @sign as class is a keyword for the compiler). It is also possible to use a Capitol C in Class but then it fails some [...]]]></description>
			<content:encoded><![CDATA[<p>To add htmlattributes to a ActionLink might be needed for instance for the layout of the page.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">@Html<span style="color: #008000;">.</span><span style="color: #0000FF;">ActionLink</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Link text&quot;</span>, <span style="color: #666666;">&quot;action&quot;</span>, <span style="color: #666666;">&quot;Controller&quot;</span>, <span style="color: #0600FF; font-weight: bold;">null</span>, <span style="color: #008000;">new</span> <span style="color: #008000;">&#123;</span>style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;float:left&quot;</span><span style="color: #008000;">&#125;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008080; font-style: italic;">//Adding a css class (need the @sign as class is a keyword for the compiler). It is also possible to use a Capitol C in Class but then it fails some validations.</span>
@Html<span style="color: #008000;">.</span><span style="color: #0000FF;">ActionLink</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Link text&quot;</span>, <span style="color: #666666;">&quot;action&quot;</span>, <span style="color: #666666;">&quot;Controller&quot;</span>, <span style="color: #0600FF; font-weight: bold;">null</span>, <span style="color: #008000;">new</span> <span style="color: #008000;">&#123;</span>@<span style="color: #6666cc; font-weight: bold;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;myCssClassName&quot;</span><span style="color: #008000;">&#125;</span><span style="color: #008000;">&#41;</span>
&nbsp;
<span style="color: #008080; font-style: italic;">//the syntax for the Html.ActionLink (used in this example is)</span>
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> MvcHtmlString ActionLink<span style="color: #008000;">&#40;</span>
	<span style="color: #6666cc; font-weight: bold;">string</span> linkText,
	<span style="color: #6666cc; font-weight: bold;">string</span> actionName,
	<span style="color: #6666cc; font-weight: bold;">string</span> controllerName,
	RouteValueDictionary routeValues,
	IDictionary<span style="color: #008000;">&lt;</span><span style="color: #6666cc; font-weight: bold;">string</span>, <span style="color: #6666cc; font-weight: bold;">Object</span><span style="color: #008000;">&gt;</span> htmlAttributes
<span style="color: #008000;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2011/05/07/adding-htmlattributes-to-a-actionlink/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

