Wednesday, June 8, 2011

Even more adventures with DotNet and ColdFusion

Adventure 6: no automatic ToString() on DotNet string properties
I have some string properties in my dotnet poco (or transfer object) and I map them to my CF business object. But if the dotnet property is null the set fails in CF saying the parameter to the CF versions set method was not passed. So wrapping the get on the dotnet poco with the CF function ToString() solves this. Its as if CF can't convert the dotnet null to an empty string with out some help.  No biggy, just interesting.

Tuesday, June 7, 2011

More adventures using DotNet with ColdFusion

Adventure 4: What to send across the boundary.
When you instantiate a DotNet object in CF its always a good idea to dump it to see how the proxy changed any method names. Well the vendors wsdl I am working with has about 60 classes, enums and interfaces. Not very abstracted. In several cases a property would be one of two different depending on the results of the web service call. And they did not inherit any base class. I had to inspect the type and then cast the property to use it. Ouch. So instead of passing back nested business objects, enums and other dotnet fun stuff I decided to make a poco with all the information I needed. Boiling down about 7 to 10 objects and enums into one object with about 25 properties including some for exception messages.

Adventure 5: Who is the web.config for? Not ColdFusion.
In Visual Studio I had setup Fiddler as a proxy with https termination so I can see my soap call that are SSL. I had done this in the web.config. Well once I started calling the assembly (dll) from CF Fiddler stopped seeing the calls. Hmm. Come to find out the web.config is for IIS. Solution:  the web service objects expose a proxy property you can set at run time by creating a WebProxy object. Warning: if the proxy is not available, fiddler running, it will not work. So this is just for debug.

Friday, June 3, 2011

Adventures using DotNet with ColdFusion via the side agent

 I have a project were the web service of a vendor would not work with the Apache Axis 1.2.1 that CF uses.
However I was able to call it via dotnet. So I decided to use the CF to .Net integration. I'd used it before but rebuild my dev machine since and forgot some of the glitches.

This is all for ColdFusion 8.01 and .Net 3.5 framework. CF 8 does not work with .Net 4 and we are not on CF 9 yet.

Adventure 1: the java.lang.ClassNotFoundException error.
For starters if you are running the multi-server install the process that creates new server instances has a huge fault. It does not copy the dotnet proxy config to the created CF server instances.  Find in the master cfusion instance this file, dotnet_coreproxy.config, and copy it to the same location in your server instance.

Adventure 2: unable to copy file [your assembly dll] another process is using it.
For development in CF I pointed at the dll in my projects bin directory. However once you invoke it from CF the CF .net side agent service locks this so when you recompile in Visual Studio it will error. Restarting the .net side agent service temporarily breaks the link.

Adventure 3: .net exception passed to CF = java.lang.ClassNotFoundException
Passing some exceptions back work just fine but if the exception has nested objects that CF does not know how to find to proxy it will error. Even if they are in my assembly. They must not be in base .net library that CF is using. I have not found a good solution other than creating my own object to pass back to CF.
Update: I implemented an exception processing function that catches several types of exceptions like  SoapHeaderException and pulls the information out and adds it to a poco I created to simplify what CF has to deal with.

Tuesday, May 10, 2011

To kill explorer.exe or not

Yeah, I wouldn't say I've been missing it Bill...I killed explorer.exe and I have no task bar, no desktop, no context menu's. I just have what ever apps were already running and alt+tab baby! Clean and mean, focused.

In the beginning there was a large AS$ file that I knew was probably a little large. Well, uh, dude your head exploded. Then my system froze like a tear on a snowman. The pacifist in my decided to wait and just let things work man. Then about 30 seconds later I said KICK IT! Then proceeded to try and stop the file load.

1. ESC, the go to button, the number one EXIT button.
2. Alt+F4, its not just a good hacker name, its the second EXIT.
3. Task Manager, no not my list of crap to do. The master of the tasks your enslaved cpu does for you. This is the EMERGENCY EXIT, or as noted in the menu sometimes its called end process or the more direct 'kill".
4. Previous to this you might have had a semblance of a shell or kernel. Now, you've got the power, at least the power button. The kill switch, the hammer, the plug, the terminator, the lack of electrons, or EJECT.

After 1, 2, I did 3 and killed explorer.exe. Come on man! This hog of a cpu must go. Oh its so worth my time, DELETED!


Cool, I have no task bar now, or menu or context menu. What's cool is I still know how to navigate the apps and tabs within the apps. Alt+tab between apps, ctlr+tab between tabs, tab or alt your way to selection.

Thank you to Bill Gates and his team for making an OS that is not to shabby. Just don't block the EXITS.

Did I mention I have no shutdown functionality. Z power button it is! Grid off.

Thursday, February 17, 2011

Pintley Is to Beer as Pandora is to Music

Wow, have you checked out Pintley. It is what Pandora is to music lovers. Pintley lets you score the beers you have tried and changes its recommendations based on what you like or dislike. Pintley has great facebook integration also.

Thursday, February 10, 2011

Wednesday, December 15, 2010

Put the SyncToy in the DropBox - cheap backup

I recently, okay finally, installed Dropbox. I was investigating cheap backup options for the small amount of data my in-laws needed backed up. So I setup DropBox on their computer and I used Microsoft SyncToy to mirror a bunch of file locations to the MyDropBox folder. I setup the mirror to run at login and gave them a desktop shortcut to run it on demand. All for free. I even setup the wall to flip around when ever they say "Let's go to the cloud".

Thursday, September 30, 2010

Lift Bridge is Hiring – Brewmaster

Lift Bridge is Hiring – Brewmaster
Not that I qualify, except in my dreams. Just passing it along.

Wednesday, September 29, 2010

Huge ASP.Net vulnerability

If you run asp.net and have not seen this you need to read it.
http://www.microsoft.com/technet/security/bulletin/MS10-070.mspx

Mayo Clinic is looking for senior .Net developers

My team is hiring dotnet developers. Check it out. Rochester is a great place to live.
http://rmn.craigslist.org/sof/1971692842.html

Saturday, August 21, 2010

Fall harvest is coming

Looks like a good sampler pack for the Samuel Adams Fall Harvest pack.

Thursday, July 22, 2010

Brewing, cleaning and all grain?

Some say brewing beer is like cooking, if you can follow directions you can brew beer. One big difference is you usually eat what you cooked fairly soon. A 5 gallon batch of beer might be around for a while. So its very important that after the beer cools below 170F you are very sanitary. Here are a few of my brew day tips.

Tip 0 - Clean it. Something can not be sanitized unless its clean. Use a good cleaner. I also recommend switching cleaners every few batches. I feel this makes sure any bugs don't develop a resistance and if one cleaner lacks in an area then the other might make up for it. However one good cleaning product might work also.

Tip 1 - Use a good sanitizer! I use Star San from Five star chemicals. It sanitizes very quickly, about 30 seconds. The foam will sanitize also. You can re-use it until its soiled or the PH drops below 3.2. You can spray it on gas connections and if they bubble then you have a leak. I usually have a tub of sanitizer sitting next to me so I can dip things in.

Tip 2 - Cover it! After you sanitize something like a carboy, wort chiller or bottles you should cover them. I use aluminum foil or plastic wrap. Minimize pet traffic and air flow if you can also.

Tip 3 - Chill fast. Once you are below 170F you are at risk of contamination. Chill quickly with a wort chiller or an ice bath. If using an ice bath make sure you have plenty of ice. Cooling works best if there is a good temperature differential.

Tip 4 - A healthy fermentation can make up for some sanitation issues. Its a competition between your yeast and other stuff so favor the yeast.

Tuesday, June 29, 2010

National Homebrew Conference

NHC 2010 was awesome.

In General:
Registration went fast and the sessions were well staffed. The commemorative beers and meads where very good. Having a jockybox for clubs to use for serving at the hospitality suite was very nice. The vendor selection in the hospitality suite was great. All the staff were very helpful and ready to serve you.

Sponsors and Vendors: wow there were some great swag in the hospitality suite. Five star chemical and Sam adams had some of the best.

Blichman Engineering, More Beer and Sabco all had awesome displays of brewing gear.

My best session: the Mead tasting panel. Wow, getting to taste 6 honeys and 6 meads was awesome.

I was unable to attend Sat. but hear the dinner and award ceremony where awesome.

My personal highlights:
Meeting the king of IPA (tasty) at Burger king
Meeting the brewcasters from the Brewing Network including Chad's dad and Terrance the black. Most brewcasters are taller than they appear on video.
The Whites from White Labs where very nice and smiled a lot.
Getting beer from John Mauer from Rogue.
JP spraying beer radio all over Justin's face. Guess you should have worn those goggles I sent you for burning man.
Pro-brewer night was awesome, wow, some great beers. I do wish more breweries sent actual employees rather than distributor reps.
Ginger snaps are really great for breakfast
Finding out Jamil once designed paintball equipment.
Meeting who ate all the pies, great guy.
Club night was off the hook! Wow some nice club booths and beers.
Having Sean Paxton liking my brewers crackers that were his recipe!

Everyone was very friendly and the hotel and staff were awesome.

Wednesday, May 12, 2010

The CF awesomeness of Ben Nadel

I'd just like to say that Ben Nadel has done a heck of lot for the CF community. Many of the people on my team including me have used or referenced his code samples over and over. His recent reMultiMatch() regEx post is another "spot on Ben". (reference to a youTube video)

Thursday, April 1, 2010

New Employee Starter Kit


At work we developed a way to help new employees get all the office supplies they need in one step.

Tuesday, February 9, 2010

ColdFusion Contractors Wanted

We are hiring some ColdFusion contractors. Skills in OO, web services, xml, MSSQL, Model-Glue, ColdSpring are all desirable. These are senior positions. The positions will most likely be at least a year if not longer. Post a comment if you would like to apply or need more info.

Tuesday, February 2, 2010

Change vs Progress

When does change become progress? Is progress planned ahead of time? Does change just morph into progress at some point? Or is it only in reflection that you can say progress was made? Our shop is converting technologies and I'm trying to figure out if we are making progress or just change. Its early yet so perhaps progress only comes with reflection.

Thursday, January 28, 2010

Voice for Radio

A while back I suggested to James Spencer from Basic brewing a show topic about creating a club web site. What options are out there, things to watch out for etc. I was interviewed Monday for the show. I felt like I was in speech class in high school, nervous. I thought I was rambling, didn't make sense etc... But today I listened to the episode and hey it was not bad at all. That guy kinda knows what he is talking about. Well I hope it helps some club make a decision on a web site.

Tuesday, December 29, 2009

Avatar Awesome

I saw Avatar in 3D over the weekend and wow. It was a visual feast from the landscape to the native creatures. The story line was very interesting with some parallels from Earths past. You do have to pay attention in the few scenes with both humans and the natives understand the size difference. This movie had mechs, wild creatures, a love scene, nice looking aliens, an uprising, man vs nature, space travel, and a spiritual side. Overall not a bad movie at all.

Cons: I did have issues with the floating mountains. Sure maybe for some reason the rocks floated but could a floating rock have a waterfall from it? Also the mineral they were searching for was Unobtainium. Humorous but kind of a snap out of it moment for me in the movie.

Monday, December 7, 2009

Spreading the merrymint. Mint Lip Balm

Merrymint mint lip balm recipe (kind of like burt's bees)

makes about 12 -15 of the .15 oz tubes

Equipment:
  • A sauce pan you don't care about to melt things in.
  • Digital scale is really nice to have
  • Having a tube filling tray really helps.
  • Spatula
  • A place to fill the tubes that you can get lip balm all over. I used a cake pan.

Ingredients:
1 oz beeswax (our wax was from a bee keeper)
0.5 oz virgin coconut oil (more like butter)
0.5 oz regular coconut oil (more like butter)
0.3 oz lanolin oil (helps to warm it)
0.8 oz sunflower oil
5 drops rosemary oil (high quality)
30 - 40 drops peppermint oil (medium quality)

optional: vitamin E oil.

Process:
Heat all on very low/melt heat.
When melted add the rosemary and peppermint drops.
Pour into tubes.

About the recipe: we started with a recipe off the internet and I used all virgin coconut oil first and found it was to strong of a coconut flavor. The regular coconut oil did not have as much aromatics and was also softer. We also went 50/50 on wax to coconut oils to get a softer stick. You can use 1.5 oz wax to get a harder stick if you like. We also found that our rosemary oil was very high quality and cut it in half.

Enjoy