Vacation, Staycation and Coding

by Codewiz51 2. July 2014 08:13

I'm taking vacation this week, and honestly intended to do more coding.  However, I find myself doing a lot more around the house than I envisioned.  The weather has been unseasonably cool in Oklahoma and I find myself on my mountain bike a lot more than I anticipated.  I like to ride for distance at Lake Hefner, and I ride for excitement on the Bluff Creek trail.  I am in sore need of decompression time.  Sometimes, you get wound up in your job so tightly, you forget to balance your work and personal time.  Perhaps, this afternoon when it's supposed to get hot, I will retreat indoors and do more than vegetate on the couch.  (Or maybe, I will just read some science fiction.) Cool

Update: I made 2.5 laps today on the bike trail at Bluff Creek.  Not a stellar time, but at least I made it.  Not hot, but very humid.

Tags: , , ,

Life | Programming

I've drunk the Enterprise Library 6 Kool Aid.

by Codewiz51 29. June 2014 18:42

I've never really been a fan of Enterprise Library, until I had to assist with a coworker's project.  He had used Entity Framework and Enterprise Library in his MSMQ project.  I was really impressed with the logging in the project and the flexibility.  So I decided to bite the bullet and start anew with Enterprise Library 6.

So, here I am with a shiny new library downloaded from here: Enterprise Library 6 April 2013

I downloaded the eBook documentation here.

And the example applications are at this link.

So far, this is good stuff.  Not great, but solid and useful.  It applies some order to what can be a disorderly process.  I am deeply into studying Unity at this point, as I just completed some work in Java, using CDI and Weld on Jboss, complete with dependency injection.  The comparisons are favorable, although I like the annotation approach used by Java a little bit better at this point.  But this is just an opinion on semantics.

Update: Be sure to execute the logging example with Administrative privileges.  The program needs to add an event source, and you need to be an administrator to perform this task.

This blog entry for the Ent Lib 6 team is a bit dated, but still very useful. Just released - Microsoft Enterprise Library 6

I was not able to get the EntLibConfig.exe program working correctly. I came across this web article and found I needed to execute install-packages.ps1 by right clicking and choosing Run with Powershell.

Tags:

Programming

Switching to Git from TFS

by Codewiz51 25. December 2013 09:44

I've been involved with Git at work since late May of 2013.  Transitioning to Eclipse, Java and Git was a bit intimidating in the beginning.  However, after some bumps in the road learning how to utilize Git, I became a convert to this version control system.  It's light weight, fast and runs well on Windows Server 2012.  I'm slowly migrating my projects off of TFS 2010 to a local Git repository.  What really sold me on Git is the ease of branching and merging operations.  Then, I discovered the add-in component for VS 2013 works as well or better than Eclipse's integration of Git.  About the only thing I am losing when I leave TFS is work item tracking.  However, that function will be filled by a $10 copy of Jira for my personal use.

I don't own powerful server hardware.  So Git is a Godsend compared to how TFS 2010 and Sharepoint 2010 drag on my outdated servers.

This series of blog posts will cover my experiences installing and configuring GitStack.com's version of Git for Windows:

  1. Stuff to download: (Prerequisites)
    • First, check out this post on MSDN to make sure your VS 2013 git client is operational. I strongly suggest you make sure you can connect VS 2013 to a github or bitbucket project and clone successfully before you even begin downloading anything else.  (I started out using github, but switched to bitbucket.  Bitbucket allows me access to Jira functionality (issue tracking) and code reviews (limited.)  It's free and allows private projects.
    • I like to install a command line git tool.  I use Chocolatey to install git command line tools.  I've run into some issues getting this to work over SSL, but I've solved all the problems and documented them in this series of articles.
    • If you are going to use Git over SSL, you'll may need OpenSSL for Windows.  GitStack needs an RSA key file, and OpenSSL is the only way I know to generate this file and create a certificate request tied to the key file.
    • You'll need the gitstack.com git installer.
    • I generally like to have a copy of Cygwin available.  This is completely optional, not required and not really used for this install (unless something goes incredibly wrong.)
    • There's probably some other stuff I've forgotten.  I'll add downloads here as time and memory permits. Cool
  2. Install
  3. Configure ports
  4. Firewall Changes
  5. Users and Groups
  6. LDAP/Active Directory
  7. OpenSSH/CertSrv/SSL
  8. Testing
  9. VS 2013 and Git
  10. Git-tfs

Since it's Christmas morning and the family is waking up, I'll fill in the details later today and tomorrow.  I need to go prepare Christmas breakfast for the World of Ware Crack crowd.

Tags:

Design | Infrastructure | Programming

Aha Moments

by Codewiz51 23. April 2013 19:00

I was working on a side project to remove http post operations to a web service and replace it with a proxy component.  Easy right?  I thought it would be.  But the service I was looking at didn't utilize a WSDL or SOAP.  And Visual Studio 2008 doesn't like that when you set up a service reference. So, I had to look at writing my own proxy.  Not so easy, but doable.  The real issue is that the group that writes the web services uses VS 2012 and .Net 4.0.  The group I work in uses VS 2008 and .Net 2.0 (when we actually use .Net.)  These two don't play well together when you need to create references.

It took me a little while to realize the dll's the dev had sent me were targeted at .Net 4.0, and the best I could do was target .Net 3.5.  Goodbye project references.  (Except, a little magic with managed C++ might do the trick. Surprised I'll discuss that in another post.)

"Best laid plans of mice and men" and all that other rot that doesn't really help solve the problem.

Tags: , ,

Programming

Piddling around with JavaScript/Browser Performance

by Codewiz51 20. April 2013 08:07

Here's some results I got while piddling around with webkit's SunSpider benchmark program this morning.

It's not scientific, or even well controlled.  I'm using the latest updates for IE 10, Chrome and Firefox as of April 20.  Links will take you back to the test results.  My laptop is an old dual core machine running Windows 8 64bit, 8GB RAM and a slow 500 GB hard drive.

IE10 - 203.5 ms

Chrome - 280.9 ms

FireFox - 310.9 ms

 Just some food for controversy. Yell

Tags: , , , ,

Life | Programming

Disclaimer

This blog represents my personal hobby, observations and views. It does not represent the views of my employer, clients, especially my wife, children, in-laws, clergy, the dog, the cat or my daughter's horse. In fact, I am not even sure it represents my views when I take the time to reread postings.  So, take most of what I say with a grain of salt.

© Copyright 2008-2014