Green Programming

March 1st, 2010 — 11:04 pm

Focusing on sustainability is quickly becoming important in all aspects of our lives and careers, even application development.  Efficient code and the use of shared resources are a couple of ways to write sustainable code.  Limiting database calls will lower processor and network usage, thus saving energy.  Sticking to the project life cycle and limiting project builds/uploads/testing/etc until it is needed will also save energy.   IBM is reportedly looking at “green aware programming” or basically a ‘heat map’ for your code, pretty cool.

Comment » | Uncategorized

JackyKitchen.net is live

September 18th, 2009 — 10:06 am

http://jackykitchen.net went live this week, at least half of it.  Currently, the site is mostly in Korean, and will be translated into English later.  The site, being in Korean, is new ground for me and was a good experience.  Using JoomFish inside of Joomla helped with the content as I was able to give control of the content to the client.  Currently, the site has a few pictures of dishes but over the next couple of weeks, more pictures will be added.

Comment » | Design, Development

First multi-lingual site project

September 2nd, 2009 — 08:14 pm

I’ve started working on my first multi-lingual web site for a local Korean cook.  The site is built on top of Joomla 1.5 and I have installed JoomFish to manage the translations.  I am just now starting to post content to the site and although I foresee twice the amount of work dealing with both languages, am pleased with JoomFish and am enjoying the experience.

Comment » | Design, Development

Light sensors to be installed in most offices

April 30th, 2009 — 10:49 pm

The Price Edwards green committee spoke with our building management company and they agreed to install light sensors in the offices and common areas on our floor.  The best part about the deal is there is no cost to PEC.  We will start the roll out of the light sensors in the areas that will produce the biggest ROI, kitchen, copy rooms, closets.  During our audit of the office we found at least 2 closets with lights that remain on 24/7.  Even though the light sensors will not benefit our company directly I believe it is a start in the right direction that will bring awareness and exposure to the green committee and the global green initiative.

Comment » | Green

PEC Green Committee

April 2nd, 2009 — 08:52 am

The Green Committee at Price Edwards & Company has begun rolling out and planning initiatives for the company to follow.  The initiatives include recycling aluminum, plastic, expanding paper recycling to include individual offices, educate employees through an internal web site, encouraging the use of reusable cups and plates, and others.  So far the reception has been mixed.

Comment » | Green

Norman Music Festival #2

April 2nd, 2009 — 08:49 am

The second annual Norman Music Festival comes to downtown Norman OK on Saturday April 25th.  This year includes headliner Of Montreal, the Decemberists, the Starlight Mints, El Paso Hot Button, and many more with a total of 9 stages. 

I would be attending the NMF but on the same day, Samantha Crain and Taho and the Get Down Stay Down are playing at Santa Fe University and I will be there.  Everyone, please take pictures and video of the NMF so I can see everything.

Comment » | Music

Flaming Lips New Years Eve Freakout #2 – Dec 31 2008, OKC

November 14th, 2008 — 11:37 am

This is definitely a show you do not want to miss. I was lucky enough to attend the show last year and was blown away. Tickets go on sale tomorrow, Nov 15, at noon central time. You can visit Ticketmaster for info.

Comment » | Music

Exchange Transport Agent – Modifying subject line – Part 1

November 10th, 2008 — 02:14 pm

Recently I had the task of building a transport agent for MS Exchange 2007 that reads each incoming e-mail, looks for a specific string, and modifies the original subject if the string is found.  I used c# in .net 2.0 to accomplish this task with only a few lines of code.  I will do my best to walk you through the steps to accomplish looking at each e-mail that is received in Exchange.

In VS 2005 or 2008 create a Class Library solution type.

You will need to reference the following assemblies from the Exchange Server:

Microsoft.Exchange.Data.Common and Microsoft.Exchange.Data.Transport (They are both found at C:\Program Files\Microsoft\Exchange Server\Public)

Create a class file in your solution, for this example I will call my class file Agent.cs.  Inside Agent.cs you will need to write 2 classes, one class, a sealed factory, will inherit from the RoutingAgentFactory class and will need to implement the following method:

CreateAgent(Microsoft.Exchange.Data.Transport.SmtpServer server)

The other class will inherit from the RoutingAgent class and will contain a constructor and an event handler to catch the OnRoutedMessageEvent.  Here is what your constructor will look like assuming my class name is Agent:
Agent{
this.OnRoutedMessage += new RoutedMessageEventHandler(Agent_OnRoutedMessage);
}
and the event handler will contain the code to check the subject line

Agent_OnRoutedMessage(RoutedMessageEventSource source, QueuedMessageEventArgs e){
//add code here, you can access the e-mail message by using e.MailItem
//This line would add the current date to the end of the subject line
e.MailItem.Message.Subject += DateTime.Now.ToString();
}

One final line of code to add goes in the CreateAgent function in the factory class…

override RoutingAgent CreateAgent(Microsoft.Exchange.Data.Transport.SmtpServer server){
return new Agent();
}

Installing the transport only takes a couple of commands using the Exchange Management Shell, I will post instructions soon.

 

 

Comment » | Development

Working title production

November 10th, 2008 — 01:10 pm

Check out my Portfolio of sites for new projects I am currently working on.  I will be posting updated links soon.

Comment » | Uncategorized