<?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>The _khAttAm_ blog &#187; Windows</title>
	<atom:link href="http://www.khattam.info/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.khattam.info</link>
	<description>Sharing views and experiences</description>
	<lastBuildDate>Sat, 22 Oct 2011 06:18:04 +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>[SOLVED] Windows Installer: The installation package cannot be installed by the Windows Installer service.</title>
		<link>http://www.khattam.info/solved-windows-installer-the-installation-package-cannot-be-installed-by-the-windows-installer-service-2011-04-09.html</link>
		<comments>http://www.khattam.info/solved-windows-installer-the-installation-package-cannot-be-installed-by-the-windows-installer-service-2011-04-09.html#comments</comments>
		<pubDate>Sat, 09 Apr 2011 13:41:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[msinet]]></category>
		<category><![CDATA[windows installer]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1693</guid>
		<description><![CDATA[I ran into a computer with Windows XP and I got the following error while trying to install a new Windows application: Windows Installer This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service. I did not [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I ran into a computer with Windows XP and I got the following error while trying to install a new Windows application:</p>
<p><span id="more-1693"></span></p>
<blockquote><p><strong>Windows Installer</strong><br />
This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.</p></blockquote>
<p>I did not have time to install all automatic updates or install the whole service pack, so I downloaded a Windows hotfix from <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4&#038;displaylang=en" onclick="pageTracker._trackPageview('/outgoing/www.microsoft.com/downloads/en/details.aspx?FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4_038_displaylang=en&amp;referer=');">here</a>. The file is named WindowsXP-KB942288-v3-x86.exe. I installed it and the program could be installed without problems.</p>
<div class="shr-publisher-1693"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-windows-installer-the-installation-package-cannot-be-installed-by-the-windows-installer-service-2011-04-09.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[SOLVED] java.security.AccessControlException: access denied (java.net.SocketPermission host connect,resolve)</title>
		<link>http://www.khattam.info/solved-java-security-accesscontrolexception-access-denied-java-net-socketpermission-host-connectresolve-2010-03-24.html</link>
		<comments>http://www.khattam.info/solved-java-security-accesscontrolexception-access-denied-java-net-socketpermission-host-connectresolve-2010-03-24.html#comments</comments>
		<pubDate>Wed, 24 Mar 2010 08:35:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Lucid Lynx 10.04]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java.net.SocketPermission]]></category>
		<category><![CDATA[java.security.AccessControlException]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[openjdk]]></category>
		<category><![CDATA[sun java]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=731</guid>
		<description><![CDATA[I am building a Java Applet which needs to connect to foreign host to operate. I created it and it runs good on OpenJDK Runtime Environment (IcedTea6 1.8pre) installed on my Ubuntu 10.04 Lucid Lynx Beta. But it does not run with Sun Java Runtime Environment 1.6.0_18 on Windows. I don&#8217;t know if it also [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I am building a Java Applet which needs to connect to foreign host to operate. I created it and it runs good on OpenJDK Runtime Environment (IcedTea6 1.8pre) installed on my Ubuntu 10.04 Lucid Lynx Beta. But it does not run with Sun Java Runtime Environment 1.6.0_18 on Windows. I don&#8217;t know if it also does not work with Sun JRE in Linux. Also, as far as I know, OpenJDK/OpenJRE for Windows does not exist.</p>
<p><span id="more-731"></span></p>
<p>The applet shows somewhat this kind of when run in Windows under Sun JRE:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">java.security.AccessControlException: access denied (java.net.SocketPermission host connect,resolve)</pre></td></tr></table></div>

<p> and the page just stalls.</p>
<p>When I searched for help on the internet, I discovered that unsigned files do not run in Windows. So, I needed to sign it. The Certificate can cost at least a couple of hundred dollars for a month. If you are using it for commercial purposes, I advice you to buy a certificate. However, I just wanted my code to run in Windows and to do that I bundled the code inside a Jar file (I was just using the class file i.e.  code=&#8221;Classname.class&#8221;. Now I need to use code=&#8221;<PackageIfNotTheDefaultPackage.>Classname&#8221; archive=&#8221;JarName.jar&#8221; for applet in the HTML file.). So I am sharing what I did to make it run.</p>
<p>After building the Jar File (Netbeans IDE that I am using builds the Jar file automatically inside the dist sub-directory of the Project directory), I used the command</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">keytool <span style="color: #660033;">-genkey</span></pre></td></tr></table></div>

<p> and entered the details. You can choose your own password for keystore. You can either use the same password for key password or choose a different one. Now a keyfile named .keystote is created in the home directory. I need to certify the key. Since I have not purchased a security certificate, I needed to certify it myself using the following command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">keytool <span style="color: #660033;">-selfcert</span></pre></td></tr></table></div>

<p>. Now a key named mykey is created for me to use. This should only be done once.</p>
<p>Now, I changed my directory to the dist directory and executed the following command to sign a MyJarApplet.jar:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">jarsigner <span style="color: #660033;">-storepass</span> KeySorePassword <span style="color: #660033;">-keypass</span> KeyPassPassword MyJarApplet.jar mykey</pre></td></tr></table></div>

<p> Here KeyStorePassword is the password used while creating the keystore and KeyPassPassword is the password used in the key mykey.</p>
<p>Now, the applet asks for authentication instead of showing nothing at all in Windows too.</p>
<p>Hope this helps.</p>
<p>References:<br />
<a href="http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html" onclick="pageTracker._trackPageview('/outgoing/www-personal.umich.edu/_lsiden/tutorials/signed-applet/signed-applet.html?referer=');">http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html</a><br />
<a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jarsigner.html" onclick="pageTracker._trackPageview('/outgoing/java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jarsigner.html?referer=');">http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jarsigner.html</a><br />
<a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html" onclick="pageTracker._trackPageview('/outgoing/java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html?referer=');">http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html</a></p>
<div class="shr-publisher-731"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-java-security-accesscontrolexception-access-denied-java-net-socketpermission-host-connectresolve-2010-03-24.html/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>I moved to Linux because Windows does not support my Hardware</title>
		<link>http://www.khattam.info/i-moved-to-linux-because-windows-does-not-support-my-hardware-2009-05-14.html</link>
		<comments>http://www.khattam.info/i-moved-to-linux-because-windows-does-not-support-my-hardware-2009-05-14.html#comments</comments>
		<pubDate>Wed, 13 May 2009 21:36:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[64bit]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=185</guid>
		<description><![CDATA[Back in the days of 2005, I did not use Linux because it did not support my cheap PCTEL HSP56 Dial-up modem. Now, I do not use Windows Vista because it does not support my cheap Telson Electronics CDMA 1x USB Wireless Modem. Sorry for my poor choice of internet (both in 2005 and now) [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p> Back in the days of 2005, I did not use Linux because it did not support my cheap PCTEL HSP56 Dial-up modem. Now, I do not use Windows Vista because it does not support my cheap Telson Electronics CDMA 1x USB Wireless Modem. Sorry for my poor choice of internet (both in 2005 and now) because I live in rural area of Nepal and we don&#8217;t have a choice.<span id="more-185"></span></p>
<p>I tried to install driver for my PCTEL HSP56 modem by compiling the driver and even recompiling the kernel but in vain. My modem had drivers included in the CD for Windows XP and below.</p>
<p>My CDMA USB had driver for Windows XP and Vista, but only for 32 bit versions. I had a Windows Vista 64bit installation and my modem failed to work because 64bit drivers were not provided. I tried to search online but in vain.</p>
<p>I booted up Ubuntu Intrepid Ibex 64bit, my alternate OS and half-heartedly tried wvdialconf. I had very less hope based on my previous experience with winmodems but to my surprise, the modem was detected. I configured it and dialed in, and voila, I was online.</p>
<p>In Windows world, if a hardware has a driver for one version of Windows does not mean it works with other versions too. But in the Linux world, if your hardware runs with one distro or version almost essentially means that will run on all other distros. This proved to be true as I could run my modem with OpenSuse, Fedora, Puppy and other versions of Ubuntu as well, both 32bit and 64bit and it should work with all other distros (well, if they have a kernel with cdc acm module for my hardware).</p>
<p>So, however, Linux hardware support was poor and it still is for so many devices, it should change in the future and hardware incompatibility will become a Windows-Only terminology.</p>
<p></p>
<div class="shr-publisher-185"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/i-moved-to-linux-because-windows-does-not-support-my-hardware-2009-05-14.html/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Turbo C++ IDE &#8211; A look at the Alternatives</title>
		<link>http://www.khattam.info/turbo-c-ide-a-look-at-the-alternatives-2009-05-04.html</link>
		<comments>http://www.khattam.info/turbo-c-ide-a-look-at-the-alternatives-2009-05-04.html#comments</comments>
		<pubDate>Mon, 04 May 2009 09:33:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[geany]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[turbo c++]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=155</guid>
		<description><![CDATA[Many engineering and computer science labs tend to have Turbo C++ IDE as the basic IDE. That is not appropriate for new standards of C\C++ and an alternative must be sought for it. An IDE such as Dev-C++ would work great for school labs, because it needs no configuration and is easy to use. It [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><br />
Many engineering and computer science labs tend to have Turbo C++ IDE as the basic IDE. That is not appropriate for new standards of C\C++ and an alternative must be sought for it.<span id="more-155"></span></p>
<p>An IDE such as Dev-C++ would work great for school labs, because it needs no configuration and is easy to use. It can compile single .c\.cpp files (most other IDEs need you to create project files for every program you want to run) However, Dev-C++ is not an active project which means you do not get updates and you may end up like Turbo C++ in a few years.</p>
<p>Another option for Windows Based computers is to consider Relo + Borland Free Compiler. Find details <a title="Ditch Turbo C++" href="http://www.thinkdigit.com/forum/showthread.php?t=65520&amp;page=2" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.thinkdigit.com/forum/showthread.php?t=65520_amp_page=2&amp;referer=');">here</a>. This is probably the best for old Turbo C++ users because it supports traditional code too.</p>
<p>Also, you might consider Code::Blocks as an IDE which is full fledged IDE for C\C++ but it might be difficult at the beginning. If you create many small programs rather than a large project, then you will feel this one difficult to use. Also, it is slow and may not perform well on old computers. Code::Blocks is available for both Windows and Linux.</p>
<p><br />
Geany is the best IDE of choice if you want a small lightweight IDE for Windows, Linux and Mac.<br />
In Linux, it should be available at your software repository. Use the software management tool for your distro to install it. If it is not, you may download the source package from the official geany website www.geany.org and build from source.<br />
If you want it for Windows, you can get it at <a title="Geany - Download Page" href="http://www.geany.org/Download/Releases" target="_self" onclick="pageTracker._trackPageview('/outgoing/www.geany.org/Download/Releases?referer=');">the download page</a>. Also look at <a title="Geany - Running on Windows" href="http://www.geany.org/Support/RunningOnWindows" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.geany.org/Support/RunningOnWindows?referer=');">Running On Windows</a>.</p>
<p>Happy Coding.</p>
<div class="shr-publisher-155"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/turbo-c-ide-a-look-at-the-alternatives-2009-05-04.html/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

