<?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>arcster.com Blog &#187; Programming</title>
	<atom:link href="http://blog.arcster.com/blog/index.php/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arcster.com</link>
	<description>These fragments I have shored against my ruins</description>
	<lastBuildDate>Sun, 11 Sep 2011 00:05:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Developer&#8217;s Dilemma</title>
		<link>http://blog.arcster.com/2011/08/developers-dilemma/</link>
		<comments>http://blog.arcster.com/2011/08/developers-dilemma/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 14:52:52 +0000</pubDate>
		<dc:creator>arcster</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.arcster.com/?p=300</guid>
		<description><![CDATA[What&#8217;s worse &#8211; to have your code not work and understand why or to have your code work and not understand why?]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s worse &#8211; to have your code not work and understand why or to have your code work and not understand why?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arcster.com/2011/08/developers-dilemma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7/Java/Oracle SQL Developer</title>
		<link>http://blog.arcster.com/2011/02/windows-7javaoracle-sql-developer/</link>
		<comments>http://blog.arcster.com/2011/02/windows-7javaoracle-sql-developer/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 21:14:59 +0000</pubDate>
		<dc:creator>arcster</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://arcster.com/blog/?p=246</guid>
		<description><![CDATA[Just got a new Dell laptop at work running 64-bit Windows 7. Naturally, some problems are arising: Had trouble getting Oracle SQL Developer (version 1.5.5) to run. First it told me I needed to install the Java SDK. So I &#8230; <a href="http://blog.arcster.com/2011/02/windows-7javaoracle-sql-developer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just got a new Dell laptop at work running 64-bit Windows 7. Naturally, some problems are arising:</p>
<ul>
<li>Had trouble getting Oracle SQL Developer (version 1.5.5) to run. First it told me I needed to install the Java SDK. So I did. Then it told me it couldn&#8217;t find the Java Virtual Machine. I tried a few tricks suggested on various message boards involving modifying sqldeveloper.conf and changing the SetJavaHome variable, but no luck. Finally, I got some advice that sql developer doesn&#8217;t support 64-bit Java. So I installed the 32-bit version (jdk-1_5_0_22-windows-i586-p.exe) and that did the trick</li>
<li>I had a little trouble with sendto, believe it or not. My C:\Users\myid\SendTo was locked. Finally found <a href="http://www.howtogeek.com/howto/windows-vista/customize-the-windows-vista-send-to-menu/" target="_blank">a tip</a> that I needed to get to my roaming profile via %APPDATA%\Microsoft\Windows\SendTo</li>
</ul>
<p>So I&#8217;m able to work for now. But after my temporary admin privileges expire, God knows what will happen.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arcster.com/2011/02/windows-7javaoracle-sql-developer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dumping file info into an Excel spreadsheet</title>
		<link>http://blog.arcster.com/2010/06/dumping-file-info-into-an-excel-spreadsheet/</link>
		<comments>http://blog.arcster.com/2010/06/dumping-file-info-into-an-excel-spreadsheet/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 20:22:36 +0000</pubDate>
		<dc:creator>arcster</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://arcster.com/blog/?p=190</guid>
		<description><![CDATA[So you&#8217;ve got a folder full of documents and you want to know what&#8217;s in the folder, how big the files are, and when they were last modified? And of course you want to be able to filter and sort &#8230; <a href="http://blog.arcster.com/2010/06/dumping-file-info-into-an-excel-spreadsheet/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve got a folder full of documents and you want to know what&#8217;s in the folder, how big the files are, and when they were last modified? And of course you want to be able to filter and sort the list. And throw in a spiffy GUI to get your base folder!</p>
<p>How about a little recursive Excel macro that will do the job for you? Before Office 2007 came along, I had a macro that used Application.FileSearch to do the job. But that is apparently no longer supported. You need the FileSystemObject.</p>
<p>So create an Excel workbook with macros enabled (i.e., ending with .xslm)</p>
<p>Open your VB window, go to Tools &gt; References&#8230; and check the Microsoft Scripting Runtime option. If you don&#8217;t see it listed, click Browse and navigate to C:\Windows\System32\scrrun.dll</p>
<p>Create a macro and paste the following code</p>
<p><code><br />
Sub myFileSearch()<br />
Dim objFSO As Scripting.FileSystemObject<br />
'Dim myFSO As FileSearch<br />
'Dim myFSO As String<br />
Dim foundFile As String<br />
Dim myofficeobject As Object<br />
Dim myfilename As String<br />
Dim objFolder As Folder<br />
Dim objFile As File<br />
Dim GetLookIn As String</code></p>
<p><code>Set objFSO = New FileSystemObject<br />
GetLookIn = BrowseFolder("Where do you want to search?")<br />
If GetLookIn = "" Then<br />
Exit Sub<br />
End If</code></p>
<p><code>Set objFolder = objFSO.GetFolder(GetLookIn)<br />
</code><br />
<code>For Each objFile In objFolder.Files</code></p>
<p><code>myfilename = objFile.Path<br />
ActiveCell.Value = myfilename<br />
ActiveCell.Offset(0, 1).Select<br />
ActiveCell.Value = FileDateTime(myfilename)<br />
ActiveCell.Offset(0, 1).Select<br />
ActiveCell.Value = FileLen(myfilename)<br />
ActiveCell.Offset(1, -2).Select<br />
Next objFile</code></p>
<p><code>ShowSubFolders objFolder<br />
</code><br />
<code>End Sub</code></p>
<p><code>Public Function ShowSubFolders(ByVal Folder As Variant)<br />
Set objFSO = New FileSystemObject<br />
For Each Subfolder In Folder.SubFolders<br />
Set objFolder = objFSO.GetFolder(Subfolder.Path)<br />
Set colFiles = objFolder.Files<br />
For Each objFile In colFiles<br />
myfilename = objFile.Path<br />
ActiveCell.Value = myfilename<br />
ActiveCell.Offset(0, 1).Select<br />
ActiveCell.Value = FileDateTime(myfilename)<br />
ActiveCell.Offset(0, 1).Select<br />
ActiveCell.Value = FileLen(myfilename)<br />
ActiveCell.Offset(1, -2).Select<br />
Next<br />
If Len(Subfolder) Then<br />
ShowSubFolders Subfolder<br />
End If<br />
Next</code></p>
<p><code>End Function</code></p>
<p>Here&#8217;s the code for the GUI</p>
<p><code>'************** Code Start **************<br />
'This code was originally written by Terry Kreft.<br />
'It is not to be altered or distributed,<br />
'except as part of an application.<br />
'You are free to use it in any application,<br />
'provided the copyright notice is left unchanged.<br />
'<br />
'Code courtesy of<br />
'Terry Kreft</code></p>
<p><code>Private Type BROWSEINFO<br />
hOwner As Long<br />
pidlRoot As Long<br />
pszDisplayName As String<br />
lpszTitle As String<br />
ulFlags As Long<br />
lpfn As Long<br />
lParam As Long<br />
iImage As Long<br />
End Type<br />
</code><br />
<code>Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias _<br />
"SHGetPathFromIDListA" (ByVal pidl As Long, _<br />
ByVal pszPath As String) As Long<br />
</code><br />
<code>Private Declare Function SHBrowseForFolder Lib "shell32.dll" Alias _<br />
"SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) _<br />
As Long</code><br />
<code><br />
Private Const BIF_RETURNONLYFSDIRS = &amp;H1<br />
Public Function BrowseFolder(szDialogTitle As String) As String<br />
Dim X As Long, bi As BROWSEINFO, dwIList As Long<br />
Dim szPath As String, wPos As Integer<br />
</code><br />
<code>With bi<br />
.hOwner = hWndAccessApp<br />
.lpszTitle = szDialogTitle<br />
.ulFlags = BIF_RETURNONLYFSDIRS<br />
End With<br />
</code><br />
<code>dwIList = SHBrowseForFolder(bi)<br />
szPath = Space$(512)<br />
X = SHGetPathFromIDList(ByVal dwIList, ByVal szPath)</code></p>
<p><code>If X Then<br />
wPos = InStr(szPath, Chr(0))<br />
BrowseFolder = Left$(szPath, wPos - 1)<br />
Else<br />
BrowseFolder = vbNullString<br />
End If<br />
End Function<br />
'*********** Code End *****************</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arcster.com/2010/06/dumping-file-info-into-an-excel-spreadsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making progress with Linux</title>
		<link>http://blog.arcster.com/2009/06/making-progress-with-linux/</link>
		<comments>http://blog.arcster.com/2009/06/making-progress-with-linux/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 15:16:01 +0000</pubDate>
		<dc:creator>arcster</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu Linux]]></category>
		<category><![CDATA[linux newbie]]></category>

		<guid isPermaLink="false">http://arcster.com/blog/?p=120</guid>
		<description><![CDATA[Ok. I&#8217;ve calmed down a bit since my previous rant. Apparently there&#8217;s an issue running aptitude or synaptic (using Xubuntu Gutsy) on a secured wireless network. It just doesn&#8217;t seem to work. I&#8217;m sure there&#8217;s a fix for it and &#8230; <a href="http://blog.arcster.com/2009/06/making-progress-with-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok. I&#8217;ve calmed down a bit since my <a href="http://arcster.com/blog/2009/06/really-starting-to-hate-linux/">previous rant</a>.</p>
<p>Apparently there&#8217;s an issue running aptitude or synaptic (using Xubuntu Gutsy) on a secured wireless network. It just doesn&#8217;t seem to work. I&#8217;m sure there&#8217;s a fix for it and if I had hours of spare time, I&#8217;d find it.</p>
<p>Meanwhile, I took my laptop to a wireless network with a unsecure guest connection and was able to run</p>
<pre>sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts</pre>
<p>(Thanks to <a href="http://www.ubuntugeek.com/how-to-install-java-runtime-environment-jre-in-ubuntu.html">ubuntugeek </a>for that one) Then I did the same thing for sun-java6-jdk.</p>
<p>Then I used mousepad to write up a standard helloworld.java example. I went to my terminal and did</p>
<pre>sudo javac helloworld.java -d /home</pre>
<p>Without the -d I had no idea where the class file was going. Without the sudo I got permission errors.</p>
<p>then I ran</p>
<pre>java helloworld</pre>
<p>and it worked!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arcster.com/2009/06/making-progress-with-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

