Showing posts with label work. Show all posts
Showing posts with label work. Show all posts

Thursday, May 01, 2008

MS Hire me! I hate Vista too

http://valleywag.com/386189/microsoft-hire-mark-hamburg-hates-windows

Wednesday, April 16, 2008

Migrating from acegi to spring security

So I migrated my current project from acegi 1.0.5 to spring security 2.0.0-RC1. Here are my notes incase anyone might find this useful. Pom.xml changes: org.springframework.security spring-security-core ${spring.security.version} spring-aop org.springframework spring-dao org.springframework spring-jdbc org.springframework spring-remoting org.springframework spring-support org.springframework org.springframework spring org.springframework.security spring-security-taglibs ${spring.security.version} org.springframework.security spring-security-acl ${spring.security.version} And I defined a variable in our root pom 2.0.0-RC1 The new jars also change all the package name from 'org.acegisecurity' to 'org.springframework.security' I just did a find and replace in idea and that seemed to work fine. Static variable have also changed their prefix from 'AGEGI_' to 'SPRING_SECURITY_'. I did another replace in path with IDEA to do this as well. Taglibs. Tag libs have changed a little too. You should replace <%@ taglib uri="http://acegisecurity.org/authz" prefix="authz" %> with <%@ taglib uri="http://www.springframework.org/security/tags" prefix="authz" %> The authentication tag also works differently. I had to replace things like with ${user.fullName} After all this everything seems to be working perfectly. Next step is to refactor our security configuration to the newer model.

Thursday, September 06, 2007

Eclipse how I hate thee

So like most developers my employer uses Eclipse as our official IDE. Honestly after a year of using Eclipse I whole heartily hate it.

I ran across this today:

Man Dies Waiting for Eclipse to Launch

A software engineer in San Jose, CA was found dead at his desk yesterday, apparently having died while waiting for his Java editing program, Eclipse, to finish its boot process. Coworkers say the engineer came in that morning vowing to "get Eclipse working on his box or die trying." The last thing anyone heard him say aloud was the cryptic comment: "I see the splash screen is appropriately blue." Nobody knows what he meant. The man was then thought to have fallen asleep, but hours later it was discovered that the engineer had died suddenly of apparent natural causes. The forensics team's investigation that evening was reportedly interrupted unexpectedly when the dead man's Eclipse program suddenly finished launching. The team tried to interact with it to see if they could find clues about the man's death, but the program was unresponsive and the machine ultimately had to be rebooted. At this time, the police commissioner says there is no evidence of foul play, and they currently believe the man simply died of either boredom or frustration.

I just had to laugh. Stevie is so funny at times. You can check out the full post here.

My main complaints with eclipse are:
  1. It takes 10 to 15 minutes to launch
  2. My database pluggin crashes 1-2 times a day giving 'PermGen Space' as the reason.
  3. Sometimes the IDE just crashes and sends me back to my desktop
  4. A few times a day it runs out of memory (as in the 2Gigs I gave it) and tells me I should close it. Telling Eclipse to close also tells me it is out of memory. Now i'm stuck with Eclipse open and not enough memory to close it.

*ugh*

Tuesday, August 15, 2006

JSF Controls

Well we chose JSF because it provides and easy method for developing custom controls. I’m not sure what convoluted definition of ‘easy’ the JSF spec uses but I think there on crack. Having used C# custom and user controls JSF’s definition is way off.

First of all you can’t just create a control and edit it with a WYSIWYG editor. C# only provides this for user controls. Which are in essence a set of controls nested together with C$ backing code.

Now with C# custom controls you basically can just write HTML to a HTTP response. Any script kiddy will feel right at home doing this. Now for a JSF control? Well first you have to define a tag class Tag.java. Here you create the setters for the properties of the tag. Then you create .java which extends UI Component now you have to implement all the abstract methods and define the family, component name, and several other things. Now finally you can define the last class which implements another interface Render.java. This class tells JSF how the control gets rendered on the screen.

So were done right? Sadly no. Now you have to define a TLD for faces to read and make sure it’s in a jar on the class-path or in WEB-INF.

Oh wait! We forgot to add the render to the faces-config.xml. Ok so now it the moon, sun and stars are aligned your control should load.

See? Isn’t JSF so wonderful and simple! *barf*

Never build your house on sand

Well for those of you who do not know me I will give you a little background. I just started a position at a new company a few months back. This was a huge change of pace for me. I went from working on simple boring design-less java based modules to working on an agile team. Needless to say it has taken more than a little getting use to.

Now why is this post entitled “Never build your house on sand”? Well that is simple. My primary role on our team is developing our UI (User-interface). Now the first problem is that our UI is being treated as a 3rd party add-on to our API. The problem with this is that the API is still being developed. Its not that we are closing up the loose ends and polishing the API we are still working out the requirements and object model.

Now I know the first think your thinking; well agile development embraces change so we should as well. While I do agree with this idea as it stands now this is not how it is turning out.

Most people in our group are experts on the API portion of the product (this is version 5 w00t). While sadly I’m the only one up to speed on how the UI works, and sadly we don’t have the time to bring the other guys up to speed because they are moving the API forward and are needed there.

So what does this all mean? Well every time something in the underlying API changes; method signatures, object relations, etc, the UI breaks. Yes I have unit tests and functional tests that are run via out continuous integration process. Instead of having the developers that make the changes to the API fix the test that broke I get “Hey broonix I broke some of your tests, can you look into it?”.

Well there you have it. There is my beach and the house I’m trying to build on it. Every day seems to be a constant battle of adding new walls to the house and making sure the old ones have not fallen down. No there is no moral to this story but hopefully I’ll have the answer soon.