<?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>Loops and HoopsLoops and Hoops &#187; Categories Archives for  Uncategorized</title>
	<atom:link href="http://dev-loop.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev-loop.net</link>
	<description>tech notes</description>
	<lastBuildDate>Sat, 28 May 2011 11:46:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Testing SMTP and POP3 Connections</title>
		<link>http://dev-loop.net/2011/05/testing-smtp-and-pop3-connections/</link>
		<comments>http://dev-loop.net/2011/05/testing-smtp-and-pop3-connections/#comments</comments>
		<pubDate>Sat, 28 May 2011 11:46:08 +0000</pubDate>
		<dc:creator>nik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev-loop.net/?p=183</guid>
		<description><![CDATA[It often happens that I need to check a certain SMTP and POP3 connections. Whether it is the user credentials or the authentication methods. Using telnet is one method, but you have to make sure you don&#8217;t make typos while you are in the session. A much easier approach is to use a GUI tool [...]]]></description>
			<content:encoded><![CDATA[<p>It often happens that I need to check a certain SMTP and POP3 connections. Whether it is the user credentials or the authentication methods. Using telnet is one method, but you have to make sure you don&#8217;t make typos while you are in the session. A much easier approach is to use a GUI tool named <a href="http://www.outlook-net.de/files/SMTPEXP.zip">SMTP Explorer</a> from <a href="http://www.outlook-net.de/7-16.htm">http://outlook-net.de</a> to test the SMTP connections. POP3 accounts can be checked using <a href="http://www.outlook-net.de/files/magic-2.9.zip">Magic Mail Monitor</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-loop.net/2011/05/testing-smtp-and-pop3-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clearing datastores in ESXi (Call &#8220;HostDatastoreSystem.RemoveDatastore&#8221; for object &#8220;ha-datastoresystem&#8221; on ESXi x.x.x.x failed)</title>
		<link>http://dev-loop.net/2011/05/clearing-datastores-in-esxi-call-hostdatastoresystem-removedatastore-for-object-ha-datastoresystem-on-esxi-x-x-x-x-failed/</link>
		<comments>http://dev-loop.net/2011/05/clearing-datastores-in-esxi-call-hostdatastoresystem-removedatastore-for-object-ha-datastoresystem-on-esxi-x-x-x-x-failed/#comments</comments>
		<pubDate>Sat, 28 May 2011 11:02:11 +0000</pubDate>
		<dc:creator>nik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev-loop.net/?p=176</guid>
		<description><![CDATA[When trying to delete a datastore you get following error message Call "HostDatastoreSystem.RemoveDatastore" for object "ha-datastoresystem" on ESXi Checked that all VMs are deleted, no ISO images are being referenced from any VM, but the problem still persisted. After checking the logs, I found this error message: ValidateLayout: Invalid block boundaries: curStart: 522 prevEnd: 522 [...]]]></description>
			<content:encoded><![CDATA[<p>When trying to delete a datastore you get following error message</p>
<p><code>Call "HostDatastoreSystem.RemoveDatastore" for object "ha-datastoresystem" on ESXi</code></p>
<p>Checked that all VMs are deleted, no ISO images are being referenced from any VM, but the problem still persisted. After checking the logs, I found this error message:</p>
<p><code>ValidateLayout: Invalid block boundaries: curStart: 522 prevEnd: 522  curEnd: 536</code></p>
<p>Next step: Trying out a manual deletion of the partitions on the ESXi console/shell.</p>
<p><code>/var/log # partedUtil "get" "/vmfs/devices/disks/naa.6782bcb0208864001569518a19be9f9d"<br />
243133 255 63 3905945600<br />
1 63 8386622 6 0<br />
2 8386623 8611902 252 0<br />
3 8613888 3905945599 251 0<br />
/var/log # partedUtil "delete" "/vmfs/devices/disks/naa.6782bcb0208864001569518a19be9f9d" 3<br />
/var/log # partedUtil "delete" "/vmfs/devices/disks/naa.6782bcb0208864001569518a19be9f9d" 2<br />
Error: Invalid argument during write on /dev/disks/naa.6782bcb0208864001569518a19be9f9d<br />
Unable to delete partition 2 from device /vmfs/devices/disks/naa.6782bcb0208864001569518a19be9f9d</p>
<p>/var/log # partedUtil "get" "/vmfs/devices/disks/naa.6782bcb0208864001569518a19be9f9d"<br />
243133 255 63 3905945600<br />
1 63 8386622 6 0<br />
2 8386623 8611902 252 0<br />
/var/log # dd if=/dev/zero of=/vmfs/devices/disks/naa.6782bcb0208864001569518a19be9f9d bs=512 conv=notrunc<br />
dd: writing '/vmfs/devices/disks/naa.6782bcb0208864001569518a19be9f9d': Read-only file system<br />
4922+0 records in<br />
4921+0 records out<br />
</code></p>
<p>That made the datastore inaccessible and after a reboot I could reinitialize the datastore again.</p>
<p>More infos about deleting datastores from the cli, <a href="http://www.bigjeff.net/?tag=vmware-esxi-4-0-dd-fdisk-volume-partition">here</a>. The proper outlines are documented <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1017104">here</a> on the vmware KB.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-loop.net/2011/05/clearing-datastores-in-esxi-call-hostdatastoresystem-removedatastore-for-object-ha-datastoresystem-on-esxi-x-x-x-x-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Measuring Network throughput in Windows</title>
		<link>http://dev-loop.net/2011/05/measuring-network-throughput-in-windows/</link>
		<comments>http://dev-loop.net/2011/05/measuring-network-throughput-in-windows/#comments</comments>
		<pubDate>Mon, 23 May 2011 10:03:59 +0000</pubDate>
		<dc:creator>nik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev-loop.net/?p=170</guid>
		<description><![CDATA[There is a nice tool called netperf to measure the network throughput. There is a port for Windows available here and it is very easy to use: On the server side start: cd c:\downloads\netperf\ netserver.exe On the client side start: cd c:\downloads\netperf\ netclient.exe -H &#60;IP.OF.SERVER&#62; You can find more info over here.]]></description>
			<content:encoded><![CDATA[<p>There is a nice tool called <a href="http://www.netperf.org/">netperf</a> to measure the network throughput. There is a port for Windows available <a href="http://www.chriswolf.com/download/netperf.zip">here</a> and it is very easy to use:</p>
<ol>
<li>On the server side start:<br />
<code>cd c:\downloads\netperf\<br />
netserver.exe</code></li>
<li>On the client side start:<br />
<code>cd c:\downloads\netperf\<br />
netclient.exe -H &lt;IP.OF.SERVER&gt;</code></li>
</ol>
<p>You can find more info over <a href="http://mcpmag.com/articles/2005/09/13/bottleneck-battle.aspx">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-loop.net/2011/05/measuring-network-throughput-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(BuyVM/FranTech) VPS PPTP VPN Setup</title>
		<link>http://dev-loop.net/2011/01/buyvmfrantech-vps-pptp-vpn-setup/</link>
		<comments>http://dev-loop.net/2011/01/buyvmfrantech-vps-pptp-vpn-setup/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 16:50:40 +0000</pubDate>
		<dc:creator>nik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev-loop.net/?p=166</guid>
		<description><![CDATA[Install pptp package apt-get install pptpd Edit pptp.conf nano /etc/pptpd.conf Add the ip address which the server should hand out to the dialing in client: localip 192.168.10.1 remoteip 192.168.10.101-200 Enable ip forwarding nano /etc/sysctl.conf net.ipv4.ip_forward=1 Add credentials for dial-in: nano /etc/ppp/chap-secrets dialin_user pptpd dialin_password * Add to firewall iptables -A INPUT -p tcp --dport 1723 [...]]]></description>
			<content:encoded><![CDATA[<p>Install pptp package</p>
<p><code>apt-get install pptpd</code></p>
<p>Edit pptp.conf</p>
<p><code>nano /etc/pptpd.conf</code></p>
<p>Add the ip address which the server should hand out to the dialing in client:</p>
<p><code>localip 192.168.10.1<br />
remoteip 192.168.10.101-200</code></p>
<p>Enable ip forwarding</p>
<p><code>nano /etc/sysctl.conf</code></p>
<p><code>net.ipv4.ip_forward=1</code></p>
<p>Add credentials for dial-in:</p>
<p><code>nano /etc/ppp/chap-secrets</code></p>
<p><code>dialin_user pptpd dialin_password *</code></p>
<p>Add to firewall</p>
<p><code>iptables -A INPUT -p tcp --dport 1723 -j ACCEPT<br />
iptables -A INPUT -p 47 -j ACCEPT<br />
iptables -A FORWARD -i ppp+ -o vent0 -j ACCEPT<br />
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -j SNAT --to-source &lt;OUTBOUND_IP_ADDRESS&gt;<br />
</code></p>
<p>Add this permanently as a bootup script and reboot the system.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-loop.net/2011/01/buyvmfrantech-vps-pptp-vpn-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up your Motorola Milestone/Droid using nandroid</title>
		<link>http://dev-loop.net/2010/08/backing-up-your-motorola-milestonedroid-using-nandroid/</link>
		<comments>http://dev-loop.net/2010/08/backing-up-your-motorola-milestonedroid-using-nandroid/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 16:50:22 +0000</pubDate>
		<dc:creator>nik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev-loop.net/?p=148</guid>
		<description><![CDATA[Preperation Prerequisites: your phone has to be rooted USB drivers installed on your Windows machine the Android SDK charge your phone to 100% otherwise you can get into serious troubles ADBRecovery.zip Then&#8230; Extract ADBRecovery.zip everything in the folder &#8220;in_sd_root&#8221; has to be moved to the root of your SD card. Make sure you do *not* [...]]]></description>
			<content:encoded><![CDATA[<h2 style="text-align: left;">Preperation</h2>
<p>Prerequisites:</p>
<ul>
<li>your phone has to be rooted</li>
<li>USB drivers installed on your Windows machine</li>
<li>the Android SDK</li>
<li>charge your phone to 100% otherwise you can get into serious troubles</li>
<li>ADBRecovery.zip</li>
</ul>
<p>Then&#8230;</p>
<ul>
<li>Extract ADBRecovery.zip</li>
<li>everything in the folder &#8220;in_sd_root&#8221; has to be moved to the root of your SD card. Make sure you do *not* move the folder &#8220;in_sd_root&#8221; itself, just the content inside the folder</li>
<li>Boot your phone into recovery mode:
<ul>
<li>shut down your phone</li>
<li>turn it on, while holding down the camera-button</li>
<li>wait until you see the triangle on the screen</li>
<li>release the camera button</li>
<li>press down the volume-up button, hold it pressed and press the camera button</li>
<li>your phone should now show you that it is in recovery mode</li>
</ul>
</li>
<li>Use the DPAD to  scroll down to <code>apply sdcard:update.zip</code>, press the golden button</li>
<li>Connect your phone with the help of a USB cable to your computer</li>
<li>Open the command box on your Windows computer</li>
<li>Change into the folder where the SDK has been installed, e.g.<br />
<code>cd "c:\program files\android-sdk_r05\tools\"</code></li>
<li>enter:<br />
<code>adb shell</code></li>
</ul>
<p>Now we&#8217;re ready to create a backup/recover a backup.</p>
<h2 style="text-align: left;">Backup</h2>
<p>Enter:</p>
<p><code>nandroid-mobile.sh --backup</code></p>
<p>Now enter a name for your backup and press enter. If you want to list your content using ls, don&#8217;t forget to use alias ls=&#8217;ls &#8211;color=never&#8217; .  The backups will be stored in /sdcard/nandroid/console=ttyS2,115200n8 in a subfolder, prefixed with the name you have just supplied. The backup consists of multiple files!</p>
<p>Don&#8217;t forget to move these files off your SD card to a save place <img src='http://dev-loop.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2 style="text-align: left;">Recovery</h2>
<p>Enter:</p>
<p><code>nandroid-mobile.sh --restore</code></p>
<p>If only one backup is available it will automatically proceed to recover your backup, otherwise you have to enter the complete and full name of your backup.</p>
<p>Further information including other commandline options for nandroid incl. backup/recovery of partial data/drives please read <a href="http://forum.xda-developers.com/showthread.php?t=459830">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-loop.net/2010/08/backing-up-your-motorola-milestonedroid-using-nandroid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows XP logs off immediately</title>
		<link>http://dev-loop.net/2010/07/windows-xp-logs-off-immediately/</link>
		<comments>http://dev-loop.net/2010/07/windows-xp-logs-off-immediately/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 12:09:54 +0000</pubDate>
		<dc:creator>nik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev-loop.net/?p=140</guid>
		<description><![CDATA[After entering your password Windows XP logs you off. You can see briefly how it tries to log on, then loads your settings, logs you off and saves your settings. This is usually caused by malware, which change the userinit.exe file in Windows. There are multiple workarounds where you have to restore the userinit.exe file [...]]]></description>
			<content:encoded><![CDATA[<p>After entering your password Windows XP logs you off. You can see briefly how it tries to log on, then loads your settings, logs you off and saves your settings. This is usually caused by malware, which change the <code>userinit.exe</code> file in Windows. There are multiple <a href="http://www.pctipsbox.com/windows-logs-off-automatically-while-login/">workarounds </a>where you have to<a href="http://www.ehow.com/how_4527843_onlog-off-loop-windows-xp.html"> restore the <code>userinit.exe</code> </a>file and/or fix the registry value which points to a wrong <code>userinit.exe</code>. In this case none of the given workarounds were successful. I was able to boot the computer into safe mode however, but even then re-checking the registry values for the <code>userinit.exe</code> did not reveal anything abnormal.</p>
<p>So I tried using <a href="http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx">autoruns </a>to find out whether some service or process is being started automatically upon booting the system. Things were a bit more complicated as I only had remote access to the computer. I was able to <a href="http://oreilly.com/windows/archive/server-hacks-remote-desktop.html">enable RDP remotely</a> to test whether login works. Before being able to use RDP I had to disable the Windows firewall by starting compmgmt.msc and connecting remotely to the machine. Then I used psexec to run autorunsc (the console version of autoruns). You have to make sure that you add the &#8220;-accepteula&#8221; option</p>
<blockquote><p>C:\Dokumente und Einstellungen\Administrator&gt;&#8221;C:\Dokumente und Einstellungen\Administrator\Desktop\PsTools\PsExec.exe&#8221; -c \\name-of-pc &#8220;C:\temp\autorunsc.exe&#8221; -accepteula -a &gt; a.txt</p></blockquote>
<p>This runs autorunsc.exe remotely on &#8220;name-of-pc&#8221; and dumps everything into the file a.txt. After inspecting the output dump I found something suspicious</p>
<blockquote><p>userinit.exe<br />
utqgkzuldd.exe<br />
c:\windows\system32\utqgkzuldd.exe</p></blockquote>
<p>Checking the filesystem revealed that there was indeed such a file in <code>system32</code>. Deleting/renaming the file was not possible since it was locked by some filehandle. Starting <a href="http://technet.microsoft.com/de-de/sysinternals/bb896653.aspx">processexplorer</a> showed that <code>crss.exe</code> had a file handle open on that file. I deleted the file handle and then I was able to rename the <code>utqgkzuldd.exe</code> file. After that I was able to log in successfully.</p>
<p>Inspection of the <code>utqgkzuldd.exe</code> file revealed that it was a <a href="http://www.virustotal.com/analisis/a58c9aa629041cac0552f4563023dc9a5a9423ab7274ba7404176e498d73ec6b-1278318682">trojan horse called W32.Qakbot!gen3</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-loop.net/2010/07/windows-xp-logs-off-immediately/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logging File Access in OSX</title>
		<link>http://dev-loop.net/2010/02/logging-file-access-in-osx/</link>
		<comments>http://dev-loop.net/2010/02/logging-file-access-in-osx/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 17:14:04 +0000</pubDate>
		<dc:creator>nik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev-loop.net/?p=118</guid>
		<description><![CDATA[If you want to log all file accesses start the terminal, switch to root-user and type fs_usage -w -f filesys &#62; cap.txt Every file access will be logged to cap.txt. You can grep, view edit for post analysis.]]></description>
			<content:encoded><![CDATA[<p>If you want to log all file accesses start the terminal, switch to root-user and type</p>
<pre>fs_usage -w -f filesys &gt; cap.txt</pre>
<p>Every file access will be logged to cap.txt. You can grep, view edit for post analysis.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-loop.net/2010/02/logging-file-access-in-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: Windows XP hal.dll Not Found</title>
		<link>http://dev-loop.net/2010/01/windows-xp-hal-dll-not-found/</link>
		<comments>http://dev-loop.net/2010/01/windows-xp-hal-dll-not-found/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 23:00:56 +0000</pubDate>
		<dc:creator>nik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev-loop.net/?p=113</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://dev-loop.net/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-113">Password:<br />
<input name="post_password" id="pwbox-113" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://dev-loop.net/2010/01/windows-xp-hal-dll-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disk Thrashing After Suspending a VM</title>
		<link>http://dev-loop.net/2009/09/disk-thrashing-after-suspending-a-vm/</link>
		<comments>http://dev-loop.net/2009/09/disk-thrashing-after-suspending-a-vm/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 20:34:50 +0000</pubDate>
		<dc:creator>nik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev-loop.net/?p=99</guid>
		<description><![CDATA[I have had the issue that after suspending a certain VM the disk activity would go up after a few minutes. Quite annoying because the system was almost unusable. Kind of like it was doing some defragmentation. After a few minutes of researching (a.k.a googling ) I came across this thread on the VMWare user [...]]]></description>
			<content:encoded><![CDATA[<p>I have had the issue that after suspending a certain VM the disk activity would go up after a few minutes. Quite annoying because the system was almost unusable. Kind of like it was doing some defragmentation. After a few minutes of researching (a.k.a googling <img src='http://dev-loop.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) I came across <a href="http://communities.vmware.com/message/1169804">this thread on the VMWare user forums</a> which explained that you had to edit the .vmx file and add following three lines:</p>
<pre>mainMem.useNamedFile = "FALSE"
mainMem.partialLazySave = "FALSE"
mainMem.partialLazyRestore = "FALSE"</pre>
<p>This did the trick for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-loop.net/2009/09/disk-thrashing-after-suspending-a-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting to a VM&#8217;s console via a SSH tunnel</title>
		<link>http://dev-loop.net/2009/08/connecting-to-a-vms-console-via-a-ssh-tunnel/</link>
		<comments>http://dev-loop.net/2009/08/connecting-to-a-vms-console-via-a-ssh-tunnel/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 14:17:15 +0000</pubDate>
		<dc:creator>nik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev-loop.net/?p=90</guid>
		<description><![CDATA[From the client you have to build an SSH tunnel forwarding ports 443, 902, 903. Make sure you are *not* forwarding from 127.0.0.1 (since according to this posting on the VMware forums) this seems to have a special meaning when using the VMWare client, instead use 127.0.0.2. In this example the server&#8217;s IP address is [...]]]></description>
			<content:encoded><![CDATA[<p>From the client you have to build an SSH tunnel forwarding ports 443, 902, 903. Make sure you are *not* forwarding from 127.0.0.1 (since according <a href="http://communities.vmware.com/thread/216659">to this posting on the VMware forums</a>) this seems to have a special meaning when using the VMWare client, instead use <code>127.0.0.2</code>. In this example the server&#8217;s IP address is <code>192.168.2.57</code>, and the ssh machine is at <code>172.20.0.1</code>, listening to port <code>3333</code>:</p>
<pre>ssh -L 127.0.0.2:443:192.168.2.57:443 -L 127.0.0.2:902:192.168.2.57:902 -L 127.0.0.2:903:192.168.2.57:903 root@172.20.0.1 -p 3333</pre>
]]></content:encoded>
			<wfw:commentRss>http://dev-loop.net/2009/08/connecting-to-a-vms-console-via-a-ssh-tunnel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

