<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.11.81 (http://www.squarespace.com/) on Thu, 23 Feb 2012 16:55:18 GMT--><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rss="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:cc="http://web.resource.org/cc/"><rss:channel rdf:about="http://www.onlytalkingsense.com/blog/"><rss:title>Blog</rss:title><rss:link>http://www.onlytalkingsense.com/blog/</rss:link><rss:description></rss:description><dc:language>en-US</dc:language><dc:date>2012-02-23T16:55:19Z</dc:date><admin:generatorAgent rdf:resource="http://www.squarespace.com/">Squarespace Site Server v5.11.81 (http://www.squarespace.com/)</admin:generatorAgent><rss:items><rdf:Seq><rdf:li rdf:resource="http://www.onlytalkingsense.com/blog/2011/8/8/java-and-lion.html"/><rdf:li rdf:resource="http://www.onlytalkingsense.com/blog/2008/4/18/ms-still-doesnt-get-source-control.html"/><rdf:li rdf:resource="http://www.onlytalkingsense.com/blog/2007/12/27/vmware-fusion-expanding-a-disk.html"/><rdf:li rdf:resource="http://www.onlytalkingsense.com/blog/2007/12/27/vmware-fusion-better-than-the-real-thing.html"/><rdf:li rdf:resource="http://www.onlytalkingsense.com/blog/2007/10/15/vista-network-share-rename.html"/><rdf:li rdf:resource="http://www.onlytalkingsense.com/blog/2007/5/24/still-alive-bearily.html"/><rdf:li rdf:resource="http://www.onlytalkingsense.com/blog/2007/4/17/i-dont-like-mondays.html"/><rdf:li rdf:resource="http://www.onlytalkingsense.com/blog/2007/3/12/vs-2005-pre-buildpost-build-macros.html"/><rdf:li rdf:resource="http://www.onlytalkingsense.com/blog/2006/12/29/whats-taking-up-all-that-place-on-my-disk.html"/><rdf:li rdf:resource="http://www.onlytalkingsense.com/blog/2006/10/25/check-for-identity-column.html"/></rdf:Seq></rss:items></rss:channel><rss:item rdf:about="http://www.onlytalkingsense.com/blog/2011/8/8/java-and-lion.html"><rss:title>Java and Lion</rss:title><rss:link>http://www.onlytalkingsense.com/blog/2011/8/8/java-and-lion.html</rss:link><dc:creator>stevend</dc:creator><dc:date>2011-08-08T12:14:12Z</dc:date><dc:subject>Java Mac java mac lion</dc:subject><content:encoded><![CDATA[<p>After upgrading my MacBook Pro to Lion, I got an error when running SoapUI (v4.0.0). The app launched, but as soon as I clicked anywhere in its windows, I saw the following stacktrace </p>

<pre><code>2011-08-08 13:08:13.623 java[78909:13403] [Java CocoaComponent compatibility mode]: Enabled
2011-08-08 13:08:13.635 java[78909:1f07] java.lang.Exception: Object owner or JVM pointer are   not correct
2011-08-08 13:08:13.636 java[78909:1f07] (
0   CoreFoundation                      0x00007fff8ff78986 __exceptionPreprocess + 198
1   libobjc.A.dylib                     0x00007fff8f939d5e objc_exception_throw + 43
2   CoreFoundation                      0x00007fff900025a9 -[NSException raise] + 9
3   JavaNativeFoundation                0x000000010a15ad5d JNFCallStaticVoidMethod + 213
4   libawt.jnilib                       0x00000001142d4411 setBusy + 53
5   CoreFoundation                      0x00007fff8ff38647 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
6   CoreFoundation                      0x00007fff8ff385a6 __CFRunLoopDoObservers + 374
7   CoreFoundation                      0x00007fff8ff0d976 __CFRunLoopRun + 1062
8   CoreFoundation                      0x00007fff8ff0d216 CFRunLoopRunSpecific + 230
9   HIToolbox                           0x00007fff8f2a94ff RunCurrentEventLoopInMode + 277
10  HIToolbox                           0x00007fff8f2b0c21 ReceiveNextEventCommon + 355
11  HIToolbox                           0x00007fff8f2b0aae BlockUntilNextEventMatchingListInMode + 62
12  AppKit                              0x00007fff87952191 _DPSNextEvent + 659
13  AppKit                              0x00007fff87951a95 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
14  libawt.jnilib                       0x0000000114328f6d -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
15  AppKit                              0x00007fff8794e3d6 -[NSApplication run] + 463
16  libawt.jnilib                       0x00000001142d41f0 +[AWTStarter startAWT:] + 1495
17  libawt.jnilib                       0x00000001142d3b6a -[CPerformer perform] + 93
18  CoreFoundation                      0x00007fff8ff6811d -[NSObject performSelector:withObject:] + 61
19  Foundation                          0x00007fff870f9830 __NSThreadPerformPerform + 214
20  CoreFoundation                      0x00007fff8fee7241 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
21  CoreFoundation                      0x00007fff8fee6aad __CFRunLoopDoSources0 + 253
22  CoreFoundation                      0x00007fff8ff0d8d9 __CFRunLoopRun + 905
23  CoreFoundation                      0x00007fff8ff0d216 CFRunLoopRunSpecific + 230
24  java                                0x0000000109879842 java + 18498
25  java                                0x0000000109879299 java + 17049
26  java                                0x0000000109876a90 java + 6800
27  ???                                 0x000000000000000e 0x0 + 14
</code></pre>

<p>Turns out this is caused by running the 64-bit version of Java (this is the default setting). By changing the order of the 32 and 64 bit versions in the Java Preferences application (/Applications/Utilities), Java now runs in 32-bit by default and SoapUI works again. </p>

<p><span class="full-image-block ssNonEditable"><span><img src="http://www.onlytalkingsense.com/storage/Java%20Preferences.png?__SQUARESPACE_CACHEVERSION=1312806093369" alt=""/></span></span></p>

<p>I probably could also changed the soapui.sh file and pass in the -d32 parameter manually.</p>
]]></content:encoded></rss:item><rss:item rdf:about="http://www.onlytalkingsense.com/blog/2008/4/18/ms-still-doesnt-get-source-control.html"><rss:title>MS (still) doesn't get source control</rss:title><rss:link>http://www.onlytalkingsense.com/blog/2008/4/18/ms-still-doesnt-get-source-control.html</rss:link><dc:creator>stevend</dc:creator><dc:date>2008-04-18T10:23:53Z</dc:date><dc:subject>.NET SQL</dc:subject><content:encoded><![CDATA[<p>I've just read <a href="http://ayende.com/Blog/archive/2008/04/17/Source-control-is-not-a-feature-you-can-postphone-to.aspx">this </a>on Ayende's blog and I'm baffled! I've spent quite some time with SSIS, and <em>the</em> most frustrating part is the complete lack of 'support' for storing the .dtsx files in a source control system (like subversion). At first glance, everything seems to be ok, as the dtsx files are actually just xml (and thus text) which should be diff'able. However, in practice, it's a nightmare: every time the file is changed (however small the change you made), a <em>large </em>part of the contents changes and even worse: the changes are clearly not local as they occur all over the place! To make it even better, someone at MS decided it was probably a good idea to store both the 'code' (control/data flow logic, ...) and the visual representation in the same file! Now even just moving a box 1 pixel messes up the complete file.  And no, the traditional (MS) answer that you should do a reserved checkout simply doesn't work for 2 reasons</p>
<p>1/ having used the 'edit-merge-commit' pattern most of my professional life, I just *refuse* to go back to a checkout-edit-checkin way of working (for one project, I was forced to use VSS, and, to say it nicely, I didn't enjoy it). This is 2008 you know?!</p>
<p>2/ What about branches and merging? Nope, thought so!</p>
<p>I just cannot imagine that they do not have 'decent support for teamwork' as one of their top (non-functional) requirements!! Even the best product (and SSIS clearly is not, IMHO) would be close to useless if it didn't support this!</p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.onlytalkingsense.com/blog/2007/12/27/vmware-fusion-expanding-a-disk.html"><rss:title>VMware Fusion - Expanding a disk</rss:title><rss:link>http://www.onlytalkingsense.com/blog/2007/12/27/vmware-fusion-expanding-a-disk.html</rss:link><dc:creator>stevend</dc:creator><dc:date>2007-12-27T17:45:29Z</dc:date><dc:subject>Cool Software Mac</dc:subject><content:encoded><![CDATA[[Update] <em>Someone going under the name 'longhorn' just posted a comment that the method described here is dangerous and has led to problems with his image. And although I have used this myself with no problems so far, I do believe that it's better to be safe than sorry. Apparently, there is a better tool to manage vmware images, called diskTool (typically found under <span style="font-style:normal;">/Applications/VMware Fusion.app/Contents/MacOS). A</span> quick test to grow an image failed with a malloc error, but I will look into this and update this post. And the golden rule to always make a backup before you try stuff like this, still applies of course (I *do* mention this in the post)...</em>

 

I'm probably not the only VMware user who has underestimated the amount of disk space he needs, only to find out a couple of months later, that the disk is filling up faster than expected. Fortunately, this is (relatively) easy to fix. That is, if you have enough 'real' HD space of course!

Warning: always backup your data before doing things like changing partitions etc...!  

First, download a copy of vdiskmanager-GUI (oh, I forgot to mention: I will explain how to do this on a Mac). I could only find it <a href="http://communities.vmware.com/thread/88468">here</a> (technically speaking you don't need this, as it is just a wrapper around the VMware provided vmware-vdiskmanager command-line tool). Open this tool, and select the 'Expand' tab. Choose the vmdk (virtual disk image) you want to expand, and enter its desired size (6Gb in my case):
<p style="text-align:center;"><a href="http://onlytalkingsense.files.wordpress.com/2008/05/vdiskmanager-expand.jpg"><img class="alignnone size-medium wp-image-50" src="http://onlytalkingsense.files.wordpress.com/2008/05/vdiskmanager-expand.jpg?w=300" alt="" width="300" height="141" /></a></p>
If you click 'Go', the vmdk file will expand to the desired size.

 For those of you that don't have a mac: you really should :-) No, you can easily accomplish the same thing: on the bottom of the screen you can see the command that will be executed if you click 'Go'. So just locate vmware-vdiskmanager (it is probably somewhere in your c:\program files\vmware directory, and run it with -x &lt;desired size&gt; &lt;path_to_vmdk&gt;. This should do the trick.  Or even better,  just download the VMware-diskmanager GUI for PC <a href="http://petruska.stardock.net/software/VMware.html#DiskMan">here</a>.

  When you reboot the VM, you might be surprised to see that you hard disk in your guest OS (say, Windows XP in this case), is still at its original size! Although it might sound confusing, it is actually perfectly logical, as we haven't changed the partition, we only changed the 'hard disk' the partition is residing on. One way of 'fixing' this is doing a complete reinstall of the system, thereby repartitioning the disk. Although it works, it's certainly not something most of us will look forward to (as it erases all of your current apps and data).

Luckily for us, there is a much simpler way. Just download a copy of a <a href="http://gparted.sourceforge.net/download.php">gparted</a> live-cd (ie a cd that is bootable). gparted is the Gnome Partition Editor, which is a linux tool to, you probably guessed it, edit partitions. Although it is linux tool, it does support ntfs, which should be the Windows filesystem you're using (a <a href="http://gparted.sourceforge.net/features.php">list</a> of the supported filesystems). And even better: since it is a live-cd, you don't even have to install anything. Just download the iso file, and connect the CD player of your VM to this ISO:
<p style="text-align:center;"> <img src="http://onlytalkingsense.files.wordpress.com/2007/12/vmware-connect-iso-image.jpg" alt="vmware-connect-iso-image.jpg" width="75%" /></p>
Now the tricky part: in order to run gparted, you have to start your VM, but force it to boot from this CD instead of your HD. The traditional way of doing this, is to press F2 to enter the BIOS setup. However, under VMware, this is a trail-and-error process, as you have to be really fast to press F2 or it will just boot from the HD.

 

Fortunately, there is a work-around. In your .vmx file, just add  
<p style="text-align:left;"><span style="color:#434343;font-family:Arial;font-size:12px;line-height:normal;">bios.forceSetupOnce = "TRUE"</span></p>
<p style="text-align:left;">This forces VMware to enter the BIOS setup on the next boot (this setting is automatically set to FALSE). In the BIOS, make sure that your CD drive is above your hard drive, exit the BIOS and restart the VM.  </p>
Now you should see linux booting, and gparted will automatically start-up (I selected the default setting on the first list, then just pick your keyboard and language settings from the list). 

If the disk you want to expand, is not already selected, use the drop-down to select it. Then, click 'Resize/Move' and either visually resize the partition, or just enter its new size:
<p style="text-align:center;"><img src="http://onlytalkingsense.files.wordpress.com/2007/12/gparted-in-action.jpg" alt="gparted-in-action.jpg" width="85%" />   </p>
<p style="text-align:left;">Close the dialog  ('Resize/Move') and click 'Apply' to actually perform the partition change. After this is done, exit gparted and disconnect the iso from the CD. If necessary, change the boot order in the BIOS setup, and restart into your guest OS. In Windows, this will typically bring up the chkdsk utility. This will check your partition (which is probably a good thing). After that is done: you can start to use that newly added disk space! </p>]]></content:encoded></rss:item><rss:item rdf:about="http://www.onlytalkingsense.com/blog/2007/12/27/vmware-fusion-better-than-the-real-thing.html"><rss:title>VMware Fusion - Better than the real thing?</rss:title><rss:link>http://www.onlytalkingsense.com/blog/2007/12/27/vmware-fusion-better-than-the-real-thing.html</rss:link><dc:creator>stevend</dc:creator><dc:date>2007-12-27T15:53:57Z</dc:date><dc:subject>Cool Software Mac</dc:subject><content:encoded><![CDATA[For the last couple of months, I've been using VMware <a href="http://www.vmware.com/products/fusion/">Fusion</a> on my (new) iMac, and I have to admit: I love it!First, I used VMware converter to create a 'virtual' copy of my work laptop, which runs Vista by the way (that took a few hours, but it works brilliantly). Then, I setup a few profiles in <a href="http://www.2brightsparks.com/syncback/sbse.html">SyncBack</a> to synchronize my 'working' directories (home dir, current project, ...) to my external HD. After each working day, I run these profiles, so I have an up-to-date backup of my work. Now, whenever I work from home, I just use this backup to bring my virtual machine (ie copy of my laptop) up to date, and I work from within VMware Fusion. What surprised me the most, is that working this way from within Fusion, is actually more comfortable than working on my laptop! This is of course partially due to the big screen (24" on my iMac compared to 15" on my laptop), but I've also noticed that the speed is better as well (even though I gave my virtual machine only 1.5Gb of memory, while my laptop has 2Gb). And this is under Vista, so I can only assume that it's even better under XP (performance-wise, that is).]]></content:encoded></rss:item><rss:item rdf:about="http://www.onlytalkingsense.com/blog/2007/10/15/vista-network-share-rename.html"><rss:title>Vista network share rename</rss:title><rss:link>http://www.onlytalkingsense.com/blog/2007/10/15/vista-network-share-rename.html</rss:link><dc:creator>stevend</dc:creator><dc:date>2007-10-15T07:38:10Z</dc:date><dc:subject>Uncategorized</dc:subject><content:encoded><![CDATA[This weekend, I found out that my Vista PC would not sync to the share on my iMac. At first, I thought something was wrong with my samba settings (as the iMac was just set up), but after I turned to google, I found that this problem is caused by an error in the OEM version of Vista. A quick registry hack, solves this:

Create the parameters key in the following location  :
HKLM/system/currentcontrolset/services/csc/parameters

Then within the parameters key, create a DWORD Value named  FormatDatabase with a value of 1 (hex)  then reboot the machine.

(found <a href="http://forums.techarena.in/showthread.php?t=671308" title="here">here</a>)]]></content:encoded></rss:item><rss:item rdf:about="http://www.onlytalkingsense.com/blog/2007/5/24/still-alive-bearily.html"><rss:title>Still alive ... bearily</rss:title><rss:link>http://www.onlytalkingsense.com/blog/2007/5/24/still-alive-bearily.html</rss:link><dc:creator>stevend</dc:creator><dc:date>2007-05-24T20:53:36Z</dc:date><dc:subject>Life</dc:subject><content:encoded><![CDATA[In case you were wondering, I am still alive, although bearily :-) My life changed a little bit on april 22nd:
<a href="http://onlytalkingsense.files.wordpress.com/2007/05/littlewonder.jpg" title="Little Wonder"><img src="http://onlytalkingsense.files.wordpress.com/2007/05/littlewonder.jpg" alt="Little Wonder" align="middle" /></a>

She's soooo cute! Words cannot describe the feelings that went through me the moment she was born. It's the most intense moment of my life! And the cliches are true: my wife and I are very proud, but also very tired parents :-)]]></content:encoded></rss:item><rss:item rdf:about="http://www.onlytalkingsense.com/blog/2007/4/17/i-dont-like-mondays.html"><rss:title>i don't like mondays</rss:title><rss:link>http://www.onlytalkingsense.com/blog/2007/4/17/i-dont-like-mondays.html</rss:link><dc:creator>stevend</dc:creator><dc:date>2007-04-17T13:19:58Z</dc:date><dc:subject>Life</dc:subject><content:encoded><![CDATA[I just found out (via <a href="http://nslog.com/2007/04/16/i_dont_like_mondays">NSLog</a>) that the song 'I don't like mondays' (originally from The Boomtown Rats, but with a great cover from Tori Amos) is about the real-life <a href="http://en.wikipedia.org/wiki/Brenda_Ann_Spencer">event </a>of a 16-year-old girl who shot a couple of children while they were playing at the schoolyard across her house. When she was asked afterwards why she did it, here only response was "I don't like mondays"... Small detail: this event happened in January 1979! Unfortunately, some <a href="http://www.cnn.com/2007/US/04/17/vtech.shooting/">things </a>never change...]]></content:encoded></rss:item><rss:item rdf:about="http://www.onlytalkingsense.com/blog/2007/3/12/vs-2005-pre-buildpost-build-macros.html"><rss:title>VS-2005 Pre-build/Post-build Macros</rss:title><rss:link>http://www.onlytalkingsense.com/blog/2007/3/12/vs-2005-pre-buildpost-build-macros.html</rss:link><dc:creator>stevend</dc:creator><dc:date>2007-03-12T08:44:09Z</dc:date><dc:subject>.NET</dc:subject><content:encoded><![CDATA[This table lists the macros that can be used in a VS-2005 pre/post build event. I never remember these, so I decided to put them here as a quick reference for myself.
<table width="100%">
<tr>
<th>Macro</th>
<th>Description</th>
</tr>
<tr>
<td><strong>$(ConfigurationName)</strong></td>
<td>The name of the current project configuration, for example, "Debug|Any CPU".</td>
</tr>
<tr>
<td><strong>$(OutDir)</strong></td>
<td>Path to the output file directory, relative to the project directory. This resolves to the value for the Output Directory property. It includes the trailing backslash '\'.</td>
</tr>
<tr>
<td><strong>$(DevEnvDir)</strong></td>
<td>The installation directory of Visual Studio 2005 (defined with drive and path); includes the trailing backslash '\'.</td>
</tr>
<tr>
<td><strong>$(PlatformName)</strong></td>
<td>The name of the currently targeted platform. For example, "AnyCPU".</td>
</tr>
<tr>
<td><strong>$(ProjectDir)</strong></td>
<td>The directory of the project (defined with drive and path); includes the trailing backslash '\'.</td>
</tr>
<tr>
<td><strong>$(ProjectPath)</strong></td>
<td>The absolute path name of the project (defined with drive, path, base name, and file extension).</td>
</tr>
<tr>
<td><strong>$(ProjectName)</strong></td>
<td>The base name of the project.</td>
</tr>
<tr>
<td><strong>$(ProjectFileName)</strong></td>
<td>The file name of the project (defined with base name and file extension).</td>
</tr>
<tr>
<td><strong>$(ProjectExt)</strong></td>
<td>The file extension of the project. It includes the '.' before the file extension.</td>
</tr>
<tr>
<td><strong>$(SolutionDir)</strong></td>
<td>The directory of the solution (defined with drive and path); includes the trailing backslash '\'.</td>
</tr>
<tr>
<td><strong>$(SolutionPath)</strong></td>
<td>The absolute path name of the solution (defined with drive, path, base name, and file extension).</td>
</tr>
<tr>
<td><strong>$(SolutionName)</strong></td>
<td>The base name of the solution.</td>
</tr>
<tr>
<td><strong>$(SolutionFileName)</strong></td>
<td>The file name of the solution (defined with base name and file extension).</td>
</tr>
<tr>
<td><strong>$(SolutionExt)</strong></td>
<td>The file extension of the solution. It includes the '.' before the file extension.</td>
</tr>
<tr>
<td><strong>$(TargetDir)</strong></td>
<td>The directory of the primary output file for the build (defined with drive and path). It includes the trailing backslash '\'.</td>
</tr>
<tr>
<td><strong>$(TargetPath)</strong></td>
<td>The absolute path name of the primary output file for the build (defined with drive, path, base name, and file extension).</td>
</tr>
<tr>
<td><strong>$(TargetName)</strong></td>
<td>The base name of the primary output file for the build.</td>
</tr>
<tr>
<td><strong>$(TargetFileName)</strong></td>
<td>The file name of the primary output file for the build (defined as base name and file extension).</td>
</tr>
<tr>
<td><strong>$(TargetExt)</strong></td>
<td>The file extension of the primary output file for the build. It includes the '.' before the file extension.</td>
</tr>
</table>
<table>
<tr valign="top"></tr>
</table>
Note: this list was taken from <a href="http://msdn2.microsoft.com/en-us/library/42x5kfw4(VS.80).aspx">here</a>]]></content:encoded></rss:item><rss:item rdf:about="http://www.onlytalkingsense.com/blog/2006/12/29/whats-taking-up-all-that-place-on-my-disk.html"><rss:title>What's taking up all that place on my disk?</rss:title><rss:link>http://www.onlytalkingsense.com/blog/2006/12/29/whats-taking-up-all-that-place-on-my-disk.html</rss:link><dc:creator>stevend</dc:creator><dc:date>2006-12-29T21:47:10Z</dc:date><dc:subject>Cool Software Mac</dc:subject><content:encoded><![CDATA[While I was downloading the latest version of XCode on my home machine (an old Mac Cube), I ran out of disk space. As I didn't feel like upgrading the disk (even if I would, no stores are open at this time), I decided I'd better hunt for those files that were taking up all that diskspace. On my PC, I normally use <a href="http://www.jgoodies.com/freeware/jdiskreport/index.html">JDiskReport</a> from JGoodies for that, but for some reason, it didn't want to scan my disk. However, Google found a mac specific app that seems to do the trick: <a href="http://www.derlien.com/">Disk Inventory X</a>. A few minutes after installing it, I've already managed to remove 2.5Gb of old data...]]></content:encoded></rss:item><rss:item rdf:about="http://www.onlytalkingsense.com/blog/2006/10/25/check-for-identity-column.html"><rss:title>Check for identity column</rss:title><rss:link>http://www.onlytalkingsense.com/blog/2006/10/25/check-for-identity-column.html</rss:link><dc:creator>stevend</dc:creator><dc:date>2006-10-25T14:52:57Z</dc:date><dc:subject>SQL</dc:subject><content:encoded><![CDATA[To check whether a table already contains an identity column (mostly useful in change scripts), use the following sql code:
<blockquote> <code>
SELECT *
FROM information_schema.tables
WHERE table_name = 'your_table_name' AND
OBJECTPROPERTY(OBJECT_ID(TABLE_NAME), 'TableHasIdentity') = 0
</code></blockquote>]]></content:encoded></rss:item></rdf:RDF>
