Monday, November 16, 2009

New Site = New Blog

For all of those looking for any new blog postings I will have please check out and subscribe to....

Jackie R. Gleason.com

Thanks for stopping by!

Jackie

Wednesday, April 15, 2009

Subversion Branching and Tagging

Made this presentation for a Developers Meeting...

Thursday, April 9, 2009

My new Hackintosh


For sometime I have had an iPhone and its been great, however after a year of watching my ideas cashed in on by others, I decided I needed a mac to develop iPhone apps. I didn't want to buy a desktop and I didn't want to spend $1000 so I thought I was confined to scrounging craigslist for a used one.

Then I found this.

There are a couple things that are not very well explained here and some things require access to a forum site. So here is my opinion on doing this.

Pros:

  • Everything cost me $450 saving me $549

  • Absolutely Silent

  • long battery life

  • 3 USB ports and vga out allow for larger monitor/keyboard



Cons

  • Small Screen

  • Awkward Keyboard

  • Small harddrive
  • '


There are some things you should know starting off...

1.) Get a 32gb SSD although the tutorial says 16gb this is hardly enough and there is a good deal here.
2.)The external optical drive is WAY easier, spend the extra $50 on a ok one.
3.) Command is alt and alt is windows button on keyboard

I will add more information on my experience as I go

Monday, March 23, 2009

A little bit of money made in a rather sh*&^y market

Just checked my investments and saw the first glimmer of hope today. Seeing as I am 26, I like most people should be taking large risks so that lead me to invest like almost everyone else in stocks. Just like everyone else these stocks have been KILLED over the last year, however, one trusty one has stayed by my side, DBA has treated me very well, all things considered.

So a couple of days ago I had some cash that was left over from the old'en days (Had to brush it off) that I hadn't dare to invest. Finally, the other day I saw that whereas my stocks had tanked, DBA had only fallen about 8%. So I decided to put that money to work, and I am happy to report I made my first short term win, enough so that I even got my pre-june last year investment back...
Anyway just felt like bragging here is to 2009 being better than 2008!




LONG INVESTMENTS

SHARES

COST/
SHARE

ORIG. COST

WS ADJ

CLOSING
PRICE

CLOSING
MKT. VALUE

SHORT TERM
GAIN/LOSS

LONG TERM
GAIN/LOSS
%

CHANGE

POWERSHARES DB AGRICULTURE (DBA)

14

24.98

349.72
 
25.01

350.14

0.42
 
0.12

Thursday, February 19, 2009

A neat little DAO for hibernate I came up with

No need to create new DAOs for each project if you use this little gem. Its not in groovy because GMaven has some problems with generics but this has seemed to remove the need to have multiple DAOs for annotated classes that just do basic crud functionality. Check it out and feel free to comment(Not that anyone reads these anyway :-)).

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import java.util.List;

public class GenericDao extends HibernateDaoSupport{
@SuppressWarnings("unchecked")
public List getObject(T object){
return getHibernateTemplate().findByExample(object);
}
@SuppressWarnings("unchecked")
public List getAllObjects(Class thisClass){
return getHibernateTemplate().loadAll(thisClass);
}
@SuppressWarnings("unchecked")
public Object addObject(T object){
return getHibernateTemplate().save(object);
}
@SuppressWarnings("unchecked")
public void updateObject(T object){
getHibernateTemplate().update(object);
}
}

Tuesday, February 17, 2009

WTF is up with native in BPEL

To anyone that has tried to play around with BPEL they quickly realize that if a partnerlink has a schema of type "Native" than the payload must be in a Base64Binary string. This means that without a schema you can't just assign a string to a native payload. This is so that non-text content (such as pictures or audio) can be sent to a partnerlink, however, it creates extra work and aggravation 99% of the time.

So the easiest way to remedy this problem is to create a embedded java in your BPEL to convert your variable to a string. This post is designed to walk you through that.

First we need to import the Binary encoder so right before all of the partnerlinks in our BPEL document we will want to add this import (This is for Oracle BPEL and the class maybe different for other flavors)

or

Depending on the direction you want to go.


Ok now we have our import now we need to create a variable to house our encoded string, I used...


Finally we will create our embedded Java, here is what mine looks like I encoded my string decoding would be similar.
String input = (String)getVariableData();
Base64Encoder Encoder = new Base64Encoder();

try
{
String encoded = Base64Encoder.encode(input);
setVariableData("EncodedMessage",encoded);
}
catch(Exception ex)
{
ex.printStackTrace();
}

my is "ReceiveAddToDb_Dequeue_InputVariable","genericMessage","/ns6:genericMessage/ns6:payload"

Then I use an assign to assign the variable to the native payload.

Wednesday, January 28, 2009

One last step for the trojan

One last thing there are two exes in the system 32 directory. They look a lot like svchost but they are small variations and have an exe ending. Start in safe mode and delete these then use CCleaner to clean up the problems with the registry.

Finally looks like I beat this virus!

BEWARE of Spyware Protect 2009

The name of the malicious program I got today was Something like spyware protector 2009

This site helped alot
http://www.spywarevoid.com/spyware-protect-2009.html

Steps I took to resolve

1.) open regedit and find currentuser>software you should find two new entries one should begin with like a A(Sorry already deleted it) and another one is like protection suite

also look in currentuser>software>microsoft>windows>run and there should be an entry for a exe that begins with s. Note the location of the file and delete

2.) Open Task manager and make sure all processes related to the program are stopped.

3.) Edit your Host file to include
127.0.0.1 www.swp2009.com
127.0.0.1 www.spyprotect2009.com
127.0.0.1 www.sp-protect2009.com

4.) go to file location and delete files

I found...

sysguard.exe
ugobamom.dll
Vsizujuzesec.dll

names apear random so don't expect them to be the same on your system I just used date-time stamps to find all process added around the same time as the program

sorry if this is a little unorganized I am writing it as I go...

So now I am using process explorer to find out what the deal is with those dlls and how to kill everything using them.

I also did a search in the registry and under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

I find 3 entries to delete, the first two appear to start the DLLs and the last seems to make defender hide. So I am deleting those names for referance are
Xriwiwoniqi
Wfarawumifora
Windows Defender


Once again all appear to be random names and actually I just removed the hide flag to defender instead of deleting it

This appears to do it lets restart and see

Monday, January 5, 2009

Happy New Year Everyone!

Well today is a big day here in the capital city, our Buckeyes take on the Texas Longhorns. Hopefully this is a good game and OSU wins but we will see.

Also I saw a troubling article about how Microsoft plans to lay off 17% of their workforce. I am not sure if this is a sign of the economic times, or Microsoft's failed Vista Operating System, but we will see.

Personally the more I work with Linux and Mac I see the only way to save Windows is to reimagine it using a Unix/GNU instead of Win32 kernel.

Hope you All have a great 2009!

Article