<?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>Mauserrifle.nl</title>
	<atom:link href="http://www.mauserrifle.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mauserrifle.nl</link>
	<description>Technical articles</description>
	<lastBuildDate>Wed, 21 Sep 2011 20:05:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>Explorer: No cookies using underscores</title>
		<link>http://www.mauserrifle.nl/windows/explorer-no-cookies-using-underscores/</link>
		<comments>http://www.mauserrifle.nl/windows/explorer-no-cookies-using-underscores/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 20:03:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mauserrifle.nl/?p=369</guid>
		<description><![CDATA[Recently at work we came across, yet another new frustrating microsoft thing: Cookies don&#8217;t work on explorer 7 when you use an underscore within your domain. For us this was the case for some local develop address “domain_php5.local”. It only took my colleague a day to figure it out&#8230; As underscores arn&#8217;t valid for hostnames,]]></description>
			<content:encoded><![CDATA[<p>Recently at work we came across, yet another new frustrating microsoft thing:</p>
<p>Cookies don&#8217;t work on explorer 7 when you use an underscore within your domain. For us this was the case for some local develop address “domain_php5.local”. It only took my colleague a day to figure it out&#8230;</p>
<p>As underscores arn&#8217;t valid for hostnames, this problem mostly occurs within local networks. Solution: change the hostname.</p>
<p><br class="spacer_" /></p>
<p>Meuk <img src='http://www.mauserrifle.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mauserrifle.nl/windows/explorer-no-cookies-using-underscores/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Debian Linux on Toshiba Satellite R850</title>
		<link>http://www.mauserrifle.nl/linux/running-debian-linux-on-toshiba-satellite-r850/</link>
		<comments>http://www.mauserrifle.nl/linux/running-debian-linux-on-toshiba-satellite-r850/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 12:04:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.mauserrifle.nl/?p=329</guid>
		<description><![CDATA[Recently I bought a Toshiba Satellite R850-153. I decided to install my favorite Linux distro Debian (wheezy/testing amd64). Things went well (wifi works out of the box), but also things went very wrong immediately after installation.Below I&#8217;ll describe the problems I came across after installing Debian. I think this will be useful for Ubuntu users]]></description>
			<content:encoded><![CDATA[<p>Recently I bought a Toshiba Satellite R850-153.  I decided to install my favorite Linux distro Debian (wheezy/testing amd64). Things went well (wifi works out of the box), but also things went very wrong immediately after installation.Below I&#8217;ll describe the problems I came across <strong>after</strong> installing Debian. I think this will be useful for Ubuntu users too!</p>
<p><span id="more-329"></span></p>
<h2>Bluetooth errors</h2>
<p>Bluetooth is not working. This gives a lot of errors on boot after you fixed the problem described second (No screen after installation) and might make the terminal not usable.</p>
<p>Error message: hci_cmd_timer: hci0 command tx timeout</p>
<p><a href="http://www.mauserrifle.nl/wp-content/uploads/2011/08/bluetooth_errors_small.jpg"><img class="alignnone size-full wp-image-352" title="Bluetooth errors" src="http://www.mauserrifle.nl/wp-content/uploads/2011/08/bluetooth_errors_small.jpg" alt="" width="600" height="324" /></a></p>
<p>For this, disable bluetooth in the bios(F2 on boot). I have not found a fix for this <strong>yet</strong>.</p>
<h2>No screen after installation</h2>
<p>When the installation completed I rebooted and Debian started into white snow screen, even on tty1. Starting Debian single-user mode didn&#8217;t fix anything, so clearly this wasn&#8217;t related to gdm3 that get&#8217;s started. After adding the option radeon.modeset=0 to the single-user option within grub (edit can be enabled by pressing key e), debian booted succesfully to the terminal.</p>
<p>After that I installed the open-source radeon drivers as described on the following url:<br />
 <a href="http://wiki.debian.org/AtiHowTo" target="_blank"> http://wiki.debian.org/AtiHowTo </a><br />
 <em>Note that you need to add non-free to your repository. Read carefully. </em></p>
<p>After adding the proper xorg.conf lines I rebooted and voila I had screen!</p>
<h2>No wifi in gnome network-manager</h2>
<p>I couldn&#8217;t find wlan0 within gnome&#8217;s network-manager. I fixed this by removing wlan0 from /etc/network/interfaces, which the installation added for downloading packages. After removing this and rebooting, network-manager will recognize wlan0.</p>
<p>If you installed without wifi, this problem won&#8217;t occur.</p>
<p><em>Note: For wifi without working with a graphical interface, you need to re-add the lines to /etc/network/interfaces. </em></p>
<h2>Errors within daemon log</h2>
<p>I noticed some errors on tty2 which were also logged within  /var/log/daemon.log</p>
<p>Error message: init: Id &#8220;co&#8221; respawning too fast: disabled for 5 minutes</p>
<p><a href="http://www.mauserrifle.nl/wp-content/uploads/2011/08/init_error_small.jpg"><img class="alignnone size-full wp-image-353" title="Init errors" src="http://www.mauserrifle.nl/wp-content/uploads/2011/08/init_error_small.jpg" alt="" width="600" height="176" /></a></p>
<p>I&#8217;m not sure what this is but commented out line following line within file /etc/inittab: co:2345:respawn:/sbin/getty hvc0 9600 linux</p>
<p>That stopped reporting the message. I&#8217;m not sure what effect this will have though. If anyone know, please comment!</p>
<h2>Touchpad scrolling not working</h2>
<p>The touchpad is recognized as a generic mouse. /proc/bus/input/devices reports: “PS/2 Generic Mouse”. I haven&#8217;t found a fix for this <strong>yet</strong>. Have to live whitout scrolling for now.</p>
<p><br class="spacer_" /></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><br class="spacer_" /></p>
<p>The laptop runs very well. For now I&#8217;ll have to deal with bluetooth and scrolling not working but I can live with that.</p>
<p>Hope this helped you as a reader! If you have tips or more information on remaining issues. Please post a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mauserrifle.nl/linux/running-debian-linux-on-toshiba-satellite-r850/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Work faster and be more productive on Linux with Compiz and Gnome-do</title>
		<link>http://www.mauserrifle.nl/linux/work-faster-and-be-more-productive-on-linux-with-compiz-and-gnome-do/</link>
		<comments>http://www.mauserrifle.nl/linux/work-faster-and-be-more-productive-on-linux-with-compiz-and-gnome-do/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 20:12:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.mauserrifle.nl/?p=147</guid>
		<description><![CDATA[I&#8217;ve been using gnome for a long time. Lately the interface started to work on my nerves, this is mainly because of the gnome-panels functionality with running programs. Let me explain&#8230;. I&#8217;m using dual screen for both work and personal use. I&#8217;ve used the gnome-panel (which has similar functionality to Windows) on both screens to]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using gnome for a long time. Lately the interface started to work on my nerves, this is mainly because of the <em>gnome-panels</em> functionality with running programs.</p>
<p>Let me explain&#8230;.</p>
<p><span id="more-147"></span></p>
<p>I&#8217;m using dual screen for both work and personal use. I&#8217;ve used the <em>gnome-panel</em> (which has similar functionality to Windows) on both screens to track the programs that run. I really loved the fact the the running programs of the second screen, actually are on the second <em>gnome-panel </em>taskbar. This gives a less bloated main taskbar. After using this setup for a while, I started noticing i&#8217;m very restless while working with this setup. This is due to the fact I got very distracted by all the  panels and information within. I stopped getting a fast overview of all the applications i&#8217;m running, even when using a fixed workspace layout I can remember. Thus I started to get chaotic. I&#8217;ll try to give you an example:</p>
<p>I have <em>gedit</em> (text editing) running on workspace 1. On workspace 2 I have my terminal running and need to store some text temporarily. I go back to workspace 1 and can&#8217;t find <em>gedit</em> open and am too lazy to search the taskbar panel at the bottom or hit ALT TAB. So I switch back to workspace 2 and hit RUN → <em>gedit</em>. There you have it, I got <em>gedit</em> running twice. There were times that almost all my workspaces had <em>gedit</em> running while it wasn&#8217;t really needed. I could of just switched workspaces whitout searching. But how?</p>
<p><br class="spacer_" /></p>
<h2>Time for change.</h2>
<p><br class="spacer_" /></p>
<p>Let me introduce you to the following applications which I got running at the moment to give me the perfect desktop, that solves all my frustration:</p>
<p><br class="spacer_" /></p>
<p><span style="font-size: x-small;">This is based on Gnome, but should work on all environments!</span></p>
<p><span style="line-height: 23px; font-size: 21px;"><strong>Gnome-do</strong> (<a href="http://do.davebsd.com">http://do.davebsd.com</a>)</span></p>
<p>Know quicksilver of OSX? You know what to expect. Gnome-do is a graphical shell for your desktop by providing a very fast way of launching applications. Need Firefox? Press SUPER + SPACE, type &#8216;fire&#8217; and hit ENTER. Done! Firefox is running <img src='http://www.mauserrifle.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  So goodbye to all your shortcuts. A very important app to work faster!</p>
<p><a href="http://www.mauserrifle.nl/wp-content/uploads/2010/08/gnome-do.png"><img class="alignnone size-medium wp-image-199" title="gnome-do" src="http://www.mauserrifle.nl/wp-content/uploads/2010/08/gnome-do-300x169.png" alt="" width="300" height="169" /></a></p>
<h3><strong>Compiz fusion</strong> (<a href="http://www.compiz.org">http://www.compiz.org</a>)</h3>
<p>Compiz is an OpenGL compositing manager. It has some nice fancy effects that seem to be just eye candy, but with the right use of it, you can work much faster and enjoy your desktop. For installing compiz, please refer to your local distro information:</p>
<p>Debian:    <a href="http://wiki.debian.org/Compiz">http://wiki.debian.org/Compiz</a><br />
 Ubuntu:    <a href="https://help.ubuntu.com/community/CompositeManager/CompizFusion">https://help.ubuntu.com/community/CompositeManager/CompizFusion</a> <br />
 Arch:        <a href="http://wiki.archlinux.org/index.php/Compiz">http://wiki.archlinux.org/index.php/Compiz</a></p>
<p>Make sure to be installing the <em>extra-plugins</em> also, because one of the plugins i mention down here is part of this package! Within most distro&#8217;s it will be a package called <em>compiz-fusion-plugins-extra</em>.</p>
<p>Let&#8217;s take a look at the plugins I&#8217;ve got enabled:</p>
<p><span style="text-decoration: underline;">Desktop Wall</span></p>
<p>OSX like workspace switching. (CTRL ALT). Trust me, you don&#8217;t want the fancy Cube like you see on most compiz setups. This works so much faster!</p>
<p>There&#8217;s one more neat thing to set up. Within <em>Compiz</em> settings go to: <em>General Options</em> &#8211;&gt; <em>Desktop size</em>. Set both <em>Horizontal </em><strong>and</strong> <em>Virtual</em> size to 2. This gives you the ability to easily switch from workspace 1 to 4 and vice versa.</p>
<p><a href="http://www.mauserrifle.nl/wp-content/uploads/2010/08/Desktop.wall_1.png"><img class="alignnone size-full wp-image-193" title="Desktop.wall" src="http://www.mauserrifle.nl/wp-content/uploads/2010/08/Desktop.wall_1.png" alt="" width="308" height="120" /></a></p>
<p><span style="text-decoration: underline;">Widget layer</span></p>
<p>Hold&#8217;s widgets. Within this layer you can hold <a href="http://screenlets.org/">screenlets</a> like a calculator and calender.</p>
<p><a href="http://www.mauserrifle.nl/wp-content/uploads/2010/08/screenlets.png"><img class="alignnone size-medium wp-image-233" title="screenlets" src="http://www.mauserrifle.nl/wp-content/uploads/2010/08/screenlets-300x130.png" alt="" width="300" height="130" /></a></p>
<p>Screenlets have to be installed separately. It&#8217;s in most package managers but it&#8217;s really a matter of taste if you would to use all these &#8216;gadgets&#8217;. The <em>Widget Layer</em> itself must be installed because it will be very usefull later on this article!</p>
<p>When adding a widget, right click it and choose <em>Window</em> &#8211;&gt; <em>Dock</em>. This will make it switch to your Widget Layer.</p>
<p><span style="text-decoration: underline;">Window Decoration</span></p>
<p>Windows just look a bit better.</p>
<p><span style="text-decoration: underline;">Animations</span></p>
<p>Window animations. I changed the Minimize Animation to <em>Glide 2</em>.</p>
<p><span style="text-decoration: underline;">Screenshot</span></p>
<p>Take selection screenshots very easy with SUPER + LEFT MOUSE.</p>
<p><span style="text-decoration: underline;">Application Switcher</span></p>
<p>Good old ALT TAB functionality.</p>
<p><span style="text-decoration: underline;">Ring Switcher</span></p>
<p>Good overview of the running applications (Graphical ALT TAB alternative). Can be activated with SUPER + TAB.</p>
<p><span style="text-decoration: underline;">Expo</span></p>
<p>Creates an expo of all your workspaces. By default this can be toggled by going to the upper left corner with your mouse or hit SUPER + E.</p>
<p><span style="text-decoration: underline;">Wallpaper</span></p>
<p>Allows you to set a different wallpaper on each Workspace to visually remind you where you are. With this feature enabled, icons on your desktop can&#8217;t be rendered anymore. For people like me, who have to clean up their desktop a lot, it&#8217;s actually no downside and a good way of getting rid of this chaotic habbit of storing temp files on the desktop. Thanks to <em>Emery</em>&#8216;s comment for this.</p>
<p><span style="text-decoration: underline;">Move Window</span></p>
<p>Move windows with ALT + F7 or ALT + MOUSE1.</p>
<p><br class="spacer_" /></p>
<p>After succesfully setting up C<em>ompiz,</em> we can enable the other software which make us work faster and thus be more productive. <strong><em>Docky</em></strong>!</p>
<p><br class="spacer_" /></p>
<h3><strong>Docky</strong></h3>
<p><br class="spacer_" /></p>
<p><strong>Update 2010-11-02<br />
 </strong>It seems docky got separated from gnome-do on my debian squeeze installation, so possibly on other distributions too. If the information below does not work for you, please install docky separated through your favorite package manager or download at <a href="https://launchpad.net/docky">https://launchpad.net/docky</a>.</p>
<p><br class="spacer_" /></p>
<p>OSX got this great functionality called a dock. Luckily for us, this can be done on Linux too! A dock can replace your task panels completely and works much faster because you only have to recognize application icons instead of reading your bloated <em>gnome-panel</em>. For this feature you need to have <em>Compiz</em> and <em>gnome-do</em> both working. To enable this, go to the <em>gnome-do </em>settings and change the theme under <em>Appearance</em> to <em>Docky</em>.</p>
<p><a href="http://www.mauserrifle.nl/wp-content/uploads/2010/08/dock2.png"><img class="alignnone size-full wp-image-166" title="dock2" src="http://www.mauserrifle.nl/wp-content/uploads/2010/08/dock2.png" alt="" width="616" height="155" /></a></p>
<p>When enabled docky, you&#8217;ll notice that <em>do</em> (SUPER + SPACE) has intergrated into the dock!</p>
<p><a href="http://www.mauserrifle.nl/wp-content/uploads/2010/08/dock_do.png"><img class="alignnone size-full wp-image-177" title="dock_do" src="http://www.mauserrifle.nl/wp-content/uploads/2010/08/dock_do.png" alt="" width="616" height="154" /></a></p>
<p><br class="spacer_" /></p>
<h3><strong>Let&#8217;s clean up!</strong></h3>
<p>Next thing you should do is hiding all your <em>gnome-panels</em>. (If you havn&#8217;t already did so). This can be done by right clicking them and choose <em>Delete This Panel</em>. Though there is one panel you can&#8217;t get rid of that easily, which is the main <em>gnome-panel</em> with the application menu etc. Auto hiding isn&#8217;t a perfect solution. What I&#8217;ve done is hide the panel by using the <em>Widget</em> <em>Layer</em> within <em>Compiz</em>. Under the Behaviour tab of the <em>Widget Layer</em> settings add the following to <em>Widget Windows</em>:</p>
<p><em>(class=Gnome-panel &amp; type=Dock)</em></p>
<p>This makes the panel hide within the <em>Widget layer</em>, which can be enabled with F9. When your main panel isn&#8217;t hiding, try a re-login within gnome.</p>
<p><br class="spacer_" /></p>
<h3>Little problems can be fixed easily!</h3>
<p>The only problem I encountered after setting up this environment was the fact that I didn&#8217;t have a tray anymore for my <em>Pidgin</em> IM client, which I used to see if anyone messaged me. I solved this by installing the <em>libnotify</em> plugin for <em>Pidgin</em>. This will give nice notification balloons when there&#8217;s a incoming message. Most distributions should have this in their repositories by default!</p>
<p>Try to find a fix similar to this for your applications. Ofcourse you can always fall back to the old tray by activating the <em>Widget Layer </em>(F9).</p>
<p><br class="spacer_" /></p>
<h3>New Desktop and Conclusion</h3>
<p>Wondering how my desktop looks like when idle?</p>
<p><a href="http://www.mauserrifle.nl/wp-content/uploads/2010/08/desktop3.jpg"><img class="alignnone size-medium wp-image-310" title="desktop" src="http://www.mauserrifle.nl/wp-content/uploads/2010/08/desktop3-300x240.jpg" alt="idle desktop" width="300" height="240" /></a><a href="http://www.mauserrifle.nl/wp-content/uploads/2010/08/desktop.jpg"><br />
 </a><a href="http://www.wallpapers-room.com/3390/filter/popular/wood/1680x1050/8" target="_blank">Wallpaper link</a></p>
<p>When not idle it isn&#8217;t that much different, just some extra icons at the bottom and open windows. No taskbars!</p>
<p>Back to <em>gedit</em>&#8230; Forgot where you put it? Don&#8217;t feel bad for not using your workspace switch shortcut, use your mouse to click <em>gedit</em> from the dock and it will switch to the proper Workspace with the window open. <img src='http://www.mauserrifle.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Is&#8217;nt all of this just awsome?</p>
<p>The fact..</p>
<ul>
<li>that panels arn&#8217;t distracting me from work </li>
<li>i can start applications whitout going through the application menu</li>
<li>i can access the applications i somehow lost very quickly</li>
<li>i have a 2&#215;2 desktop wall</li>
<li>the desktop is very responsive and (usefull) animated</li>
<li>i have much more space for my windows</li>
</ul>
<p>is a salvation.</p>
<p><br class="spacer_" /></p>
<h4>Installing is believing&#8230;.</h4>
<p><br class="spacer_" /></p>
<p>Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mauserrifle.nl/linux/work-faster-and-be-more-productive-on-linux-with-compiz-and-gnome-do/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Debian: No ipv4 connection within Java applications</title>
		<link>http://www.mauserrifle.nl/linux/no-ipv4-connection-within-java-applications/</link>
		<comments>http://www.mauserrifle.nl/linux/no-ipv4-connection-within-java-applications/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 15:42:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.mauserrifle.nl/?p=95</guid>
		<description><![CDATA[Recently there is a very annoying setting within debian squeeze. It causes many java applications to not function anymore on ipv4. Basically this means a lot of programs like Eclipse and Netbeans won&#8217;t function at all when requiring a connection. This can be fixed by editing the following file: /etc/sysctl.d/bindv6only.con You should see the follow]]></description>
			<content:encoded><![CDATA[<p>Recently there is a very annoying setting within debian squeeze. It causes many java applications to not function anymore on ipv4. Basically this means a lot of programs like Eclipse and Netbeans won&#8217;t function at all when requiring a connection.</p>
<p><span id="more-95"></span>
<p>This can be fixed by editing the following file:<br />
<em> /etc/sysctl.d/bindv6only.con</em></p>
<p>You should see the follow setting:<br />
<em> net.ipv6.bindv6only = 1</em><br />
change this to:<br />
<em> net.ipv6.bindv6only = 0</em></p>
<p>Restart your system and your apps should be functioning properly again.</p>
<p>It took me several hours to find this solution, so I hope posting another article helps other people in search of a solution.</p>
<p>Thanks for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mauserrifle.nl/linux/no-ipv4-connection-within-java-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: Change default browser and Java version</title>
		<link>http://www.mauserrifle.nl/linux/debian-change-default-browser-and-java-version/</link>
		<comments>http://www.mauserrifle.nl/linux/debian-change-default-browser-and-java-version/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 15:39:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.mauserrifle.nl/?p=109</guid>
		<description><![CDATA[If you&#8217;re a firefox, chrome or opera user, the first thing you&#8217;ll probably want to do when installed debian is installing your favorite browser and change the systems default. Installing a new browser can be done through your favorite package manager (apt-get or aptitude). Changing your default browser within debian is quite easy. Just use]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a firefox, chrome or opera user, the first thing you&#8217;ll probably want to do when installed debian is installing your favorite browser and change the systems default.</p>
<p><span id="more-109"></span></p>
<p>Installing a new browser can be done through your favorite package manager (apt-get or aptitude).</p>
<p>Changing your default browser within debian is quite easy. Just use the the following command and follow the instructions:<br />
<span class="terminalCode"> update-alternatives &#8211;config x-www-browser</span></p>
<p>&#8212;</p>
<p>Debian uses gij/OpenJDK as default java implementation. If you want to switch to sun&#8217;s java, you need to install it. Make sure you have the non-free repository added to your sources.list. You can add this by editing your <em>/etc/apt/sources.list</em> and put <em>non-free</em> behind your repositories.</p>
<p>Next we will install java. These examples use aptitude, but apt-get should be similar.<br />
JRE:<br />
<span class="terminalCode"> aptitude install sun-java6-jre</span><br />
JDK (development):<br />
<span class="terminalCode"> aptitude install sun-java6-jdk</span></p>
<p>To change the default java. Use the following code:<br />
<span class="terminalCode"> update-alternatives &#8211;config java</span></p>
<p>Thanks for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mauserrifle.nl/linux/debian-change-default-browser-and-java-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP and replacing Euro signs</title>
		<link>http://www.mauserrifle.nl/php/php-and-replacing-euro-signs/</link>
		<comments>http://www.mauserrifle.nl/php/php-and-replacing-euro-signs/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 19:41:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.mauserrifle.nl/?p=51</guid>
		<description><![CDATA[Within PHP it can be bit of a pain when you want to replace euro signs that come from a database query. This problem mostly has to do with different encodes of text. It&#8217;s very hard to covert an euro sign with a hard &#8220;€&#8221; within your replace code. I came across this problem a]]></description>
			<content:encoded><![CDATA[<p>Within PHP it can be bit of a pain when you want to replace euro signs that come from a database query.</p>
<p>This problem mostly has to do with different encodes of text. <span id="more-51"></span> It&#8217;s very hard to covert an euro sign with a hard &#8220;€&#8221; within your replace code. I came across this problem a lot of times. This <a title="The euro sign in HTML (and in some other contexts)" href="http://www.cs.tut.fi/~jkorpela/html/euro.html" target="_blank">website</a> covers the euro sign regarding different codes on different platforms.</p>
<p>I found using the <em>chr</em> function can be very successful. The following code has proven itself to be work on different websites to replace a euro signs within a String:<br />
<em><span style="color: #000000;">$string = str_replace(chr(</span><span style="color: #ff0000;">128</span>)<span style="color: #000000;">,</span></em><em> <span style="color: #008000;">&#8216;EUR&#8217;</span></em><em><span style="color: #000000;">,$string);</span></em></p>
<p><em>Thanks for reading.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mauserrifle.nl/php/php-and-replacing-euro-signs/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>OSX and Linux NFS shares</title>
		<link>http://www.mauserrifle.nl/linux/osx-and-linux-nfs-shares/</link>
		<comments>http://www.mauserrifle.nl/linux/osx-and-linux-nfs-shares/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 18:46:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.mauserrifle.nl/?p=4</guid>
		<description><![CDATA[At work we had this odd problem of OSX (Leopard) clients disconnecting from our NFS file shares. The problem occurred when the clients opened the index of their mounted location. At this point the whole finder (OSX file browser) disconnected and reported “Connection interrupted”. However, the users were able to open child folders directly (e.g.]]></description>
			<content:encoded><![CDATA[<p>At work we had this odd problem of OSX (Leopard) clients disconnecting from our NFS file shares. The problem occurred when the clients opened the index of their mounted location. At this point the whole finder (OSX file browser) disconnected and reported “Connection interrupted”. However, the users were able to open child folders directly (e.g. /mount/folder/) which eventually made their work little bit possible, but usually within minutes they got disconnected again while doing copy jobs and such.</p>
<p><span id="more-4"></span></p>
<p>There are a lot of topics about OSX and NFS to find on the internet, but most of them did not help us a lot on this subject while they do claim to improve OSX mounting on different subjects, which they actually did for previous problems we had. On this article we just focus on our <strong>problem</strong> described above and the <strong>fix</strong> we used. I can&#8217;t guaranty it will work with other configurations.</p>
<p><strong>Server side NFS configuration:</strong><br />
Debian Lenny<br />
Kernel 2.6.26-2-686</p>
<p>NFS /etc/exports:<br />
<span class="terminalCode">/mnt/raiddata 192.168.1.0/24(rw,insecure,insecure_locks,no_subtree_check,root_squash, all_squash,anonuid=1000,anongid=1000)</span></p>
<p>As you can see there are a lot of options in place. This is a result of previous problems with Locked files, Write permissions etc. These server side options fixed that. This might be the cause of the problem we&#8217;re covering right now.</p>
<p><strong>The OSX client fixing</strong><br />
We came across a specific error by looking at the system log file. This log file can be found within OSX at:<br />
<span class="terminalCode">/var/log/system.log</span></p>
<p>The error reported:<br />
<span class="terminalCode">kernel[0]: nfs server SERVER:/path: lockd not responding</span></p>
<p>To find if your clients having this same issue,try:<br />
<span class="terminalCode">cat /var/log/system.log | grep nfs</span></p>
<p>The fix is quite simple. Add the nolocks option to the mount arguments. This can be done through the Directory Utility.</p>
<p><a href="http://www.mauserrifle.nl/wp-content/uploads/2010/06/osx_mount2.png"><img class="alignnone size-medium wp-image-11" title="osx_mount2" src="http://www.mauserrifle.nl/wp-content/uploads/2010/06/osx_mount2-300x172.png" alt="" width="300" height="172" /></a></p>
<p>For manual mounts through the terminal it should be something like:<br />
<span class="terminalCode">mount_nfs -P -o nolocks,nosuid server:/path /localpath</span></p>
<p>I&#8217;m not sure what the consequences are by setting this option, but it did fix our problem perfectly and our OSX clients run like a charm.</p>
<p>Thanks for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mauserrifle.nl/linux/osx-and-linux-nfs-shares/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

