Wednesday, October 08, 2008
Custom argument matching with Mockito
Saturday, October 04, 2008
Updated my Mockito example
http://sites.google.com/a/pintailconsultingllc.com/java/mockito-examples
Thursday, September 18, 2008
Using Rhino Mocks wiki entry
My first foray into unit testing with a mocking framework in .NET. Rhino Mocks has a very similar feel to EasyMock in the Java world.
Copy Source as HTML Visual Studio 2008 Addin
Using Rhino Mocks with MS Test
Thursday, September 11, 2008
Implementing object identity when using Hibernate
http://www.onjava.com/pub/a/onjava/2006/09/13/dont-let-hibernate-steal-your-identity.html
Friday, September 05, 2008
jMock example is now up
Of the three mocking frameworks that I've now briefly looked at, I'm most impressed with jMock. I just like the simplicity and feel of it. Very easy to use and I really like it's expectations implementation. I've started building out a sample Spring MVC web app which I will drive with TDD and mock object usage, utilizing jMock for object mocking. So far so good. I'll post more when I get the chance.
Wednesday, September 03, 2008
Custom JSP 2.0 tags example is now up
I had a need to create a view helper for a web view that I was building, so I did a small spike solution on JSP 2.0 tags. They seem much easier to write than they were previously (I haven't written one in many years). I thought I'd put it up on the wiki for others to use. Hopefully it proves useful. This example is done using Spring MVC as the web framework. Nothing special needed to integrate the JSP 2.0 tag into the Spring MVC web app.
Sunday, August 31, 2008
Mockito example is now up
Same set of classes as the EasyMock demo. Not much difference between EasyMock and Mockito, at least not yet. Mockito probably is a bit easy to use (no replay method to be invoked before testing).
EasyMock example
http://sites.google.com/a/pintailconsultingllc.com/java/easymock-examples
Pretty simple but gets the point across on how to get started with EasyMock. Mockito examples are forthcoming.
Tuesday, August 12, 2008
Teaching programming with Python
Saturday, June 28, 2008
JavaScript apps with SproutCore
Sunday, June 22, 2008
Valuing simplicity
I value simplicity. A lot. That's why I think I like my Mac so well, after working with Windows and Linux. I like Windows because it's familiar, but there are so many options, and the options seem to change in every Windows release. The reliability of Windows also is a concern. Linux just isn't simple...it's not designed to be simple nor do it want to be. That's good for some situations, but terrible if you want to appeal to the masses. The Mac and other Apple products appeal to the masses due to simple by stylish designs.
I'm not finding all this AJAX, JavaScript, and DOM manipulation simple in design. It's quite the opposite. It's seems very messy and chaotic using HTML, CSS, and JavaScript for building web applications. And the interfaces that are being built still pale in comparison to rich applications. Hopefully things get better over time with the RiA technologies (Flex/Flash, Silverlight, etc.).
Extra-lazy collection fetching in Hibernate
http://sites.google.com/a/pintailconsultingllc.com/java/hibernate-extra-lazy-collection-fetching
For small lists, I would recommend not using this functionality, as every item is a SQL call to the database. For a large list or child objects which are expensive to create, this might be just what you're looking for. It took me a while to get the list semantics to work properly. The @IndexedCollection is very important. I have not played with a map collection yet, but in theory that collection should work similarly.
Tuesday, June 17, 2008
Hall monitor tests
Monday, June 16, 2008
kuler - Adobe's fabulous color picker/theme organizer tool
http://kuler.adobe.com/
Friday, May 23, 2008
A rabbit killed my Internet connection
The Comcast technical support person stopped out a couple of days ago and inspected everything. He said he'd like blame it on the irrigation guys too because then they can bill the irrigation guys for the work and materials to fix it. Nope, the insulation on the coaxial cable was nibbled away very close to the house, two sections, each of about 2 inches in length. The Internet connection has been restored and the Comcast guy put some electrical conduit around the cable where it comes out of the ground and into the house to deter the rabbits from doing this again.
Monday, May 05, 2008
Understanding Flash window modes for embedding HTML rendering in Flex app
http://www.communitymx.com/content/article.cfm?cid=e5141
http://ccgi.arutherford.plus.com/blog/wordpress/?page_id=171
http://ccgi.arutherford.plus.com/blog/wordpress/?p=173
http://ccgi.arutherford.plus.com/blog/wordpress/?p=133
http://www.deitte.com/archives/2007/09/html_in_flex_wi.htm
Sunday, May 04, 2008
Getting Hibernate to format generated SQL
Saturday, April 26, 2008
flexcover: A code coverage tool for Adobe Flex
Understanding Flex transport protocols
http://www.jamesward.org/census/ (Source code here)
Very well done and quite informative.
Sunday, April 13, 2008
First Flex app up and running with BlazeDS
Saturday, April 12, 2008
Silverlight 2.0 does have unit testing
http://www.jeff.wilcox.name/2008/03/31/silverlight2-unit-testing/
Excellent tutorial on Cairngorm framework
http://www.davidtucker.net/category/cairngorm/
Tuesday, April 08, 2008
MSTest tools don't seem to work with Silverlight 2.0 projects
Friday, March 21, 2008
Sonos ZoneBridge now installed
Sonos Music System up and running
BTW, I also purchased a Zone Bridge from Sonos, but have not connected that to the network yet. I post more when I get that online.
Thursday, February 28, 2008
New Airport Extreme
Saturday, February 16, 2008
New MacBook!
Tuesday, January 22, 2008
Continuous testing using Fireworks
Powered by ScribeFire.
Saturday, January 19, 2008
Fireworks IntelliJ IDEA plugin for continuously running unit tests
Powered by ScribeFire.
Wednesday, January 09, 2008
Compiz Fusion on Kubuntu 7.10
sudo apt-get install compiz compiz-kde compizconfig-settings-manager emeraldAlt-F2 to run
compiz -replaceAlt-F2 to run
emerald -replaceConfigure Compiz and Emerald from KDE Menu, Settings.
Very, very cool. Much better than Vista and Mac OS X.
Powered by ScribeFire.
Monday, December 24, 2007
Issues when attempting to build native Ruby extensions on (K)Ubuntu Linux
$ sudo apt-get install build-essential ruby1.8-dev
Powered by ScribeFire.
Saturday, December 22, 2007
NetBeans 6.0 is an awesome Ruby on Rails dev environment
Powered by ScribeFire.
Tuesday, December 18, 2007
dpuint for real Adobe Flex unit/integration testing
http://code.google.com/p/dpuint/
Powered by ScribeFire.
Flex Builder for Linux Alpha 2 out!
http://labs.adobe.com/technologies/flex/flexbuilder_linux/
Powered by ScribeFire.
Monday, November 26, 2007
Integrating DbUnit and Grails together
Powered by ScribeFire.
Friday, November 23, 2007
IntelliJ IDEA Android Support plugin out in the wild!
http://code.google.com/p/idea-android/
Powered by ScribeFire.
Thursday, November 22, 2007
Google's Android SDK rocks!!
Powered by ScribeFire.
Sunday, November 18, 2007
Brian Goetz's Java Concurrency in Practice
Powered by ScribeFire.
Thursday, November 15, 2007
nvidia-settings, the Nvidia configuration UI
Powered by ScribeFire.
Wednesday, November 07, 2007
Pheasant hunting in northeastern South Dakota
Powered by ScribeFire.
Thursday, November 01, 2007
Finishing up the pergola in the backyard
Powered by ScribeFire.
New Quad Core Linux workstation on the cheap
| Intel Core 2 Quad Q6600 Kentsfield 2.4GHz 2 x 4MB L2 Cache LGA 775 Processor | $280 |
| GIGABYTE GA-965P-DS3 LGA 775 Intel P965 Express ATX Intel Motherboard | $100 |
| XFX PVT84JUDD3 GeForce 8600GT 256MB 128-bit GDDR3 PCI Express x16 SLI Supported Video Card | $130 |
| Thermaltake Purepower W0100RU ATX 12V 2.0 500W Power Supply | $50 |
| NZXT HUSH Black SECC Steel/ Aluminum/ Plastic ATX Mid Tower Computer Case | $90 |
| G.SKILL 4GB(2 x 2GB) 240-Pin DDR2 SDRAM DDR2 800 (PC2 6400) Dual Channel Memory | $170 |
| SAMSUNG Black 20X DVD+R 8X DVD+RW CD-ROM 2MB Cache SATA DVD Burner | $30 |
| Western Digital Caviar SE16 WD5000AAKS 500GB 7200 RPM 16MB Cache SATA 3.0Gb/s Hard Drive | $110 |
| TOTAL | $960 |
Powered by ScribeFire.
Wednesday, October 03, 2007
Flex Builder Linux installs new Flash Player
9,0,60,235 installed
Hmmmm....interesting. Wonder what's changed?
Powered by ScribeFire.
Tuesday, October 02, 2007
Flex Builder for Linux alpha posted
Looks like Adobe's getting very serious about Flex development. Very good to see. I've been using Flex Builder on the Mac and it's OK, but Linux has Java 6. This alpha works with Eclipse 3.3 (Europa).
Powered by ScribeFire.
Thursday, September 13, 2007
Using autotest and RedGreen
Nice blog entry about using autotest and RedGreen together for Rails testing. Works like a charm. Thanks Ted for this "gem".
Powered by ScribeFire.
Wednesday, September 12, 2007
Ruby on Rails screencasts from PeepCode
Very cool way to learn Ruby on Rails. I bought a 10-pack of credits. Very well done screencasts. Highly recommended.
Powered by ScribeFire.
Sunday, September 09, 2007
Aptana as a Ruby on Rails IDE
Powered by ScribeFire.
Building Mongrel on Ubuntu Linux
Powered by ScribeFire.
Friday, August 17, 2007
More on IntelliJ IDEA 7.0 M2 EAP and JetGroovy
Powered by ScribeFire.
First impressions of JetGroovy in IntelliJ IDEA 7.0 M2
Powered by ScribeFire.
Sunday, August 05, 2007
HTTP Scoop utility for HTTP sniffing
Powered by ScribeFire.
Got a MacBook from my consulting client...
Powered by ScribeFire.
Sunday, July 29, 2007
Adobe Flex 2 XML Schema for MXML markup
Powered by ScribeFire.
Saturday, June 23, 2007
Installing Dreamweaver CS3 on Windows Vista
- Open up a command prompt as Administrator by right clicking the command prompt icon and selecting Run as Administrator.
- Navigate to \Windows\system32 directory.
- Run the following command from the Command Prompt: regsvr32 jscript.dll
That seems to solve the issue.
Powered by ScribeFire.
Monday, June 04, 2007
Good article on why agile adoptions fail
Powered by ScribeFire.
Thursday, May 17, 2007
User Account Control (UAC) on Vista
Powered by ScribeFire.
Monday, April 30, 2007
Getting Ruby on Rails up and running on Ubuntu Linux
- Install RubyGems:
sudo apt-get install rubygems - Install Rails:
sudo gem install rails --include-dependencies - Download and unzip Eclipse.
- Get Ruby Development Tools via Software Update: http://updatesite.rubypeople.org/release
- Get RadRails via Softwware Update: http://radrails.sourceforge.net/update
An in-depth tutorial on the use of these tools (using Ruby on Windows) can be found at http://www.oreillynet.com/lpt/a/6998.
Powered by ScribeFire.
Thursday, April 12, 2007
Flex Builder 2.0.1 - Terrible first impression
Powered by ScribeFire.
Thursday, April 05, 2007
When pair programming rocks
Powered by ScribeFire.
Goodbye, ankhsvn!
Powered by ScribeFire.
Wednesday, April 04, 2007
SharpDevelop's SVN support
Powered by ScribeFire.
New Dell 2407WFP monitor
Powered by ScribeFire.
Tuesday, April 03, 2007
Adam Nathan's Windows Presentation Foundation Unleashed
Powered by ScribeFire.
Monday, April 02, 2007
Using SharpDevelop for WPF programming
Powered by ScribeFire.
Friday, March 30, 2007
Concepts in Windows Presentation Foundation (WPF)
Powered by ScribeFire.
Thursday, March 29, 2007
KNetworkManager, part 2
Powered by ScribeFire.
Tuesday, March 27, 2007
Test-driven development is hard!
On a related note around TDD, one beef I have with Visual Studio 2005 is that it's not geared for incremental compilation and testing cycles. It's always compile and packaging bytecode into DLLs and EXEs. That really starts to hurt when your solution has lots of projects and the projects start to get a lot of source files in them. Java is much nicer in this regard. You compile to .class files and run your tests. No packaging required. Heck, if you're using an incremental compiler like the Eclipse compiler, the compilation step is almost negligible. I am becoming a big fan of NUnit and attributed tests and test fixtures.
Powered by ScribeFire.
Sunday, March 25, 2007
Eye candy in Feisty Fawn, part 2
Powered by ScribeFire.
Saturday, March 24, 2007
Man, I've been away from Java for a while...
Powered by ScribeFire.
Eye candy in Feisty Fawn
Powered by ScribeFire.
Friday, March 23, 2007
KNetworkManager
Powered by ScribeFire.
Thursday, March 22, 2007
OpenOffice.org updated to 2.2 in Feisty Fawn
Powered by ScribeFire.
kdesvn upgraded in Ubuntu 7.04 development snapshot
Powered by ScribeFire.
Sunday, March 18, 2007
wajig
Saturday, March 17, 2007
Apple has a ton of cash these days
powered by performancing firefox
Getting Java 6 Runtime from apt-get
powered by performancing firefox
Wednesday, March 14, 2007
Getting Java 6 to be default JVM on Ubuntu Linux
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0/bin/javac 30
sudo update-alternatives --install /usr/bin/javac java /usr/lib/jvm/jdk1.6.0/bin/java 30
sudo update-alternatives --install /usr/lib/firefox/plugins/libjavaplugin.so firefox-javaplugin.so /usr/lib/jvm/jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so 30
sudo update-alternatives --config javac #then choose javac6
sudo update-alternatives --config java #choose java6
sudo update-alternatives --config firefox-javaplugin.so #choose java6 firefox-javaplugin.so
Found this ditty here.
powered by performancing firefox
Saturday, March 10, 2007
JBoss and Exadel teaming up
http://labs.jboss.com/portal/jbossrichfaces
http://labs.jboss.com/portal/jbossajax4jsf
Looks pretty interesting. RedHat/JBoss seems to be getting very aggressive on the Java EE 5.0 front. Should be interesting to see how all of this plays out, but certainly RedHat/JBoss seem to have the strongest offering in the Java EE space. I've used Exadel Studio Pro in the past (mainly for its Hibernate tooling) and it was very good back then. I'm not a big fan of Eclipse (prefer IntelliJ IDEA), but this should be viewed in a positive light within the Java community.
I've been working in the .NET space for the past 6 months and I long for tools like Eclipse and IntelliJ. Yeah, we use ReSharper 2.5.1 with VS 2005 and it's a huge improvement over stock VS 2005. However, VS 2005 is just a pig with memory and performance on our development laptops. .NET has a lot of growing up to do to catch up with the likes of the Java development crowd.
powered by performancing firefox
Friday, March 09, 2007
Initial thoughts on Vista Business, part 1
- The UI is pretty, but I'm already finding that I don't like the window titles and the goofy shading that they display on the window decorations. The animation is pretty cool.
- Windows Defender sucks! If you've seen the Apple commercial you know what I'm talking about. Good God it's annoying! If this is Microsoft's answer to better security, yikes!
- I don't care for the new Explorer windows. I can't figure out how to apply global folder options to all Explorer windows and bookmarking folders seems to be hidden somewhere. I think they fixed some performance issues with Explorer windows (they seem spry and don't lock up when opening directories or deleting a directory tree of content).
- SQL Server 2005 doesn't seem to install correctly. Seems like a service pack is coming out soon to fix this.
- No ActiveSync...Vista uses Mobile Device Center or some tool like that. Could not get MDC to connect or sync to my Verizon XV6700 Pocket PC smartphone. My wife's Windows XP system with ActiveSync 4.5 connects and syncs without issue.
- Stand By works really well. No issues there. System seems spry going into and out of Stand By mode.
- I'm using MS Live OneCare. Seems to do an admirable job of keeping my system up and running. Does anti-virus, backup, defrag of hard drive and Windows Update, among other things. Much better integration and performance than Norton's offering.
powered by performancing firefox
Putting parents on Linux
So, I'm going to give him one of my old computers with Ubuntu Linux on it. I'll probably wait until Feisty Fawn (7.04) comes out in April, but yeah, I think he'll be better off with this Linux box. My father does his email through GMail and really just surfs the Web and downloads pictures from his digital camera. So Linux should work well for him there. I'll make sure that Java and Adobe Flash 9 Player are installed. It should be interesting to watch him learn and use Linux.
powered by performancing firefox
Curse you wmiprvse.exe process
http://www.neuber.com/taskmanager/process/wmiprvse.exe.html
Yep, it's part of the Windows operating system. Makes sense why a company might want to use this tool for collecting and setting information on client desktop systems. What doesn't make sense is how the process renders my development laptop totally useless when it is activated. I'm assuming the process always runs, but stays silent until activated by some WMI remote calls. At that point, the process sucks 80-100% of the CPU for a long durations of time (minutes). Particularly irritating when attempting to build a large Visual Studio solution or testing our WPF application. If you kill the process from task manager, it just comes right back. I probably kill this process 5-10 times per day. ARGGGGHHHH...it's damn frustrating!! One more reason why not to use Windows for a development environment. I really like a lot of .NET and C#, but hooking it up to the Windows XP operating system cripples the .NET platform. I'm going to have to investigate Mono one of these days. My Ubuntu Linux boxen don't exhibit this type of behavior ;-)
powered by performancing firefox
Saturday, February 24, 2007
F3, Sun's new declarative scripting language for the JVM
I think Sun could have something here if they made Swing programming easier and then built up infrastructure around animations, transitions, graphics operations, transparencies, reflectiveness, etc. that WPF does so well. If all of that can be deployed to the web via applets and Java WebStart and works reliably, then Sun would have a real winner on its hands. As I've previously stated, I'm not a raving fan of the AJAX programming model, but no one until recently has come up with anything better for richer clients on the web. Now all of sudden, Adobe's opening up Flex and bringing on Apollo, Microsoft's pushing WPF, and now Sun is sweetening the pot with easier Swing programming with F3. I've been very impressed with Swing performance in both Java 5 and Java 6 on Windows and Linux platforms. Hopefully Java 7 will continue this trend.
http://ajaxian.com/archives/f3-suns-new-declarative-java-scripting-language
http://blogs.sun.com/chrisoliver/category/F3
http://blogs.sun.com/chrisoliver/resource/f3.html
powered by performancing firefox
Thursday, February 22, 2007
C#/.NETAnnoyances, part 2
powered by performancing firefox
Wednesday, February 21, 2007
C# Annoyances, part 1
- Namespaces don't restrict where source file resides in folder structure on filesystem: Source files can live anywhere and have any namespace. Nothing in the language restricts where source files reside based on namespace. Refactoring becomes a real headache, with lots of manual changes to maintain some semblance of organization.
- Interfaces cannot have constants: No way to static import constants into source files.
powered by performancing firefox
Saturday, February 10, 2007
Flithy rich clients, WPF XBAP and Java applets/Java WebStart
This situation has gotten me thinking that Java has most if not all of this stuff in the form of applets and Java WebStart. The Java Runtime works on nearly every platform imaginable and both Swing and SWT are more than performant in their current incarnations (Java 5 and 6). I wonder if applets and Java WebStart won't be considered more often in the coming months and years for deploying complex rich clients to the web. I've had excellent success with both applets and Java WebStart on my Ubuntu Linux and Windows XP systems. Java 6 added support for OpenGL in Swing, so some of the neat animation and effects features found in WPF may be doable in a cross-platform manner in Java.
Whether its WPF XBAP or Java applets or Java WebStart, I don't look forward to working AJAX anytime soon. I'm feeling underwhelmed by the mishmash of technologies and web framework involved in that sort of solution (CSS, JavaScript, HTML). GWT is about the only thing that gets me excited to do web development these days, mainly because it hides all the crufty JavaScript, HTML, DHTML, CSS crap from me and allows me to work in Java all the time.
powered by performancing firefox
Saturday, February 03, 2007
Initial thoughts on .NET 3.0 and WPF
powered by performancing firefox
Using Performancing Firefox add-in for blog entries
powered by performancing firefox
Friday, October 27, 2006
Upgraded to Ubuntu 6.10 (Edgy Eft)
gksu “update-manager -c”
After a few hours of slow downloads and some dialog confirmations, your Dapper Drake installation will be upgraded. Firefox 2.0 is one of the major app updates. Lots of little tweaks. Amarok looks like it's been heavily upgraded. VMWare Workstation 5.5.2 no longer works in Edgy Eft, but it looks like VMWare is working on resolving that issue. So far so good. Man I love Ubuntu!
Flash Player 9 for Linux out
Saturday, September 30, 2006
Some Ubuntu links of interest
My Ubuntu Installation
Adventures in Linux with Ubuntu :)
Kubuntu - The KDE Desktop
Welcome - Ubuntu Linux
Finished my contract at Thomson West
I think the big take away for me on this project was how well Spring Framework worked We had one, I said one, EJB...a message-driven bean. The rest of the system was built using normal Java objects configured in Spring application context files. This allowed us to concentrate on building business logic and not worry about EJB/J2EE issues. We also did all of our testing outside the J2EE container (in this case, the J2EE container was IBM WebSphere Application Server 5.1.2). A nice side effect of all this was that myself and another senior developer could use our Java IDE of choice--JetBrains' most excellent IntelliJ IDEA.
Spring was a big differentiator for that project--it allowed us to build value and deliver value to the client, thus building confidence in the client with regard to our abilities and skill levels. The group that I consulted with are super happy with how well Spring worked on this project and will be integrating Spring into more of their applications and ridding themselves of EJB cruftiness over time. I don't get the sense that they're interested in any of the EJB 3.0 stuff coming out and will stick with Spring and best of breed tools and frameworks in the future. The way it should be. Thoroughly enjoyable!
Next up is UnitedHealth Group's Ovations division. Big change here--.NET Framework, ASP.NET, AJAX. Looking forward to the challenges this new opportunity will present.
Ubuntu Linux "Dapper Drake" rocks!
After messing around with the Drake on this smallish laptop, I decided to install it on development desktop that currently held Windows XP Professional. It was my thought to dual boot this system, but for some reason, the Windows XP Professional installation would die during the boot process. OK, I thought, I wasn't really using Windows here much anyways, and I still have my Dell XPS system for a Windows installation. So I reformatted the Windows partition to a Linux partition and mounted it to the filesystem.
I've gone to installing Kubuntu on both of my Dapper Drake installations. I think I resonate with KDE more than GNOME. I really like the kdesvn integration into Konquerer. Much like TortoiseSVN in Windows. Ripping some albums to Ogg format and amaroK is very cool. I have my Java development tools installed (IntelliJ IDEA, DbVisualizer, Eclipse 3.2+Callisto). I've been using Java 6 Beta 2 on this box and it's working like a dream.
Definitely recommend Dapper Drake to those out there that want a no-nonsense Linux installation that's super simple to upgrade and install packages on.
Thursday, September 07, 2006
Google's Browser Sync is eating my bookmarks!
Wednesday, September 06, 2006
Can't get Callisto to download through Eclipse 3.2 Update Manager
Started using Ubuntu Linux
Tuesday, September 05, 2006
Early goose season in South Dakota
Well, hunting season has begun, and a bit earlier than usual this year. I bought a non-resident early goose season license for South Dakota and headed out to a field in NE South Dakota to try my luck with some others that take up residence in that fine state. The result...one goose shot, another flew away. We couldn't get anything to come into our decoys except for a lot of ducks. Unfortunately, they're out of season.More pictures are available at my Picasa Web gallery...
Friday, June 23, 2006
IntelliJ IDEA 6.0 to include GWT Studio
http://www.jetbrains.net/confluence/display/IDEADEV/GWT+Studio+plugin
JetBrains has a demonstration of this technology on this page. I could only get it to work in IE. Very impressive stuff. Seems like JetBrains has a lot of intentions and infrastructure built up around the GWT Studio to make GWT development easy and fun. Definitely going to have to check this out. The most current EAP, build 5350, has the GWT Studio plugin installed by default.
