Windows Mobile 6.1 for PPC features that i like:
- Voice Commands are kinda cool, still learning about them
- Email Setup and Setup updates are much better and easier
This blog is a collection of things that i thought i should share with the world. They are a mix of personal and professional posts.
My Wife Had a BlackJack for over a year and it been acting up since she has an EDGE SIM card and the BlackJack is a 3G Phone.
A while back i installed the Windows Mobile 6.0 ROM from SAMSUNG. I'm posting this since i think it is still hidden on the web.
Here is the steps using Vista (last time i did it, it was only supported on XP)
Doing this had made a sometime good phone be a great phone.
All of us use some kind of bug tracking software, here is an example of using the firefox Search Plugin to gain quick access to your bugs.
The 1st version of the Bugzilla was made while i was using FireFox 2. It worked great... here is what I had to do.
<search action="https://bugs.company.com/show_bug.cgi"
bugzilla=""
description="Open a bug by id"
method="GET"
searchform="https://bugs.company.com/"
version="7.1
name=">
<input name="id" user="" />
</search>
So i been seeing these address bar icons on more and more sites... if you want to add an icon to your website check out the following Article.
OK i think this is bug, In Eclipse 3.4.1 on Mac OS X i been seeing the search menu active then hidden or grayed out and I'm unable to find anything about it on the web.
That said, I'm able to get the search dialog to show up using the keyboard ^H (Control H) displays the search dialog and i can preform a search all is happy... very strange
John Resig on Thursday gave a talk at the Web Experience Forum here in Boston talking about Performance Improvements that are coming in new browsers.
Check out this Article about Java Performance:
Top six performance tuning tips for a Java enterprise application
I'm been looking at godaddy for tomcat hosting for awhile now... and last night i signed up for a 1 month account to try it out...
Godaddy is using tomcat 5.0.27 but i could not find where to download it. The tomcat site does not have any links to it... but i found it in the archives... will not .27 but .28
http://archive.apache.org/dist/tomcat/tomcat-5/v5.0.28/
at Friday, October 17, 2008 2 comments Links to this post
Labels: Development, godaddy, Java, Software, Tomcat
Every time, i redownload tomcat, i have to make the startup.sh and other .sh files executable... and every time i forget how... so this time i'm posting so that i don't forget it.
1. goto [tomcat\bin] dir
2. type: sudo chmod a+x *.sh
that is it... now you can do ./startup.sh
at Friday, October 17, 2008 0 comments Links to this post
Labels: Development, Java, Mac, OSX, Tomcat
So my Eclipse on my Mac OSX crashed today and i had to reinstall it. :( By default the 1st thing i do is install the m2eclipse plugin since i can't live without it...
To my suprize in the latest version of the plugin, i noticed that my pom.xml files have a few new tabs, guess what it is called "Maven POM editor" great feature, keep the good work comming...
If you want to read more about what the "Maven POM editor" check out this page on the wiki .
Check out these development podcasts which i subscribe to.
Most web application require configurations based on the environment, Dev, Int, Stage and Prod do not always match each other...
I tend to keep these env configurations outside the war file. I use the maven-assembly-plugin to create tar files that gets deployed to the maven repository.
the following is how i use it..
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/assemble/dev.xml</descriptor>
<descriptor>src/assemble/test.xml</descriptor>
<descriptor>src/assemble/int.xml</descriptor>
<descriptor>src/assemble/load.xml</descriptor>
<descriptor>src/assemble/stage.xml</descriptor>
<descriptor>src/assemble/prod.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
</plugin>
<assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.0.0.xsd"
>
<id>env-load</id>
<formats>
<format>tar</format>
</formats>
<fileSets>
<fileSet>
<directory>src/main/resources/env/load</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
<files>
<file>
<source>target/classes/env-data.properties</source>
<outputDirectory>/</outputDirectory>
</file>
</files>
<includeBaseDirectory>false</includeBaseDirectory>
</assembly>
<resources> <resource> <directory>src/main/resources/env</directory> </resource> <resource> <directory>src/main/resources/build</directory> <filtering>true</filtering> </resource> </resources>
env-data.version=${project.version}
My team has been using MyEclipse as an IDE but running MyEclipse 6.5 does not have a good support for Maven.
The Maven4MyEclipse that comes with MyEclipse 6.5 does not support the projects created with the m2eclipse plugin. I think Eclipse 3.4 with m2eclipse is much better editor for Maven Users...
So i been doing web work for about 10 years now and i used many tools over the years to analyze traffic to my site, and i used things like Web Trends in the late 90s and went for a while without.
Now that i have my blog up and running again i was interested to see how it is doing... I used a few free apps sites but they looked limited.
But i think i found a winner... It is none other than Google... check out Google Analytics
I was able to use it to add a few scripts to my blogger blog (using insert html section) and i did the same to my other sites... and wala i was able to start to see new reports every day... i don't think they are real time but i don't need that...
so check it out... another great product for free from google
Step 1:
Download the wsdls and put them in a dir i use "src/main/wsdl", this must match schemaDirectory
Step 2:
Add the following to the build pom.xml
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<executions>
<execution>
<id>ax-ws-autogen</id>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2java</goal>
</goals>
<configuration>
<sourceDirectory>src/main/resources/wsdl</sourceDirectory>
<wsdlFiles>
<wsdlFile>Service1.wsdl</wsdlFile>
<wsdlFile>Service2.wsdl</wsdlFile>
</wsdlFiles>
<packageSpace>com.mycompany.servicename</packageSpace>
<testCases>false</testCases>
<serverSide>false</serverSide>
<subPackageByFileName>false</subPackageByFileName>
<outputDirectory>src/main/autogen</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Step 3:
<sourceDirectory>src/main/java</sourceDirectory>
<resources>
<resource>
<directory>src/main/autogen</directory>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
<configuration>
<instrumentation>
<excludes>
<exclude>com/company/autogen/**/*.class</exclude>
</excludes>
</instrumentation>
</configuration>
</plugin>
at Wednesday, October 08, 2008 1 comments Links to this post
Labels: Development, Java, Maven, Plugin, POM, Web Services, WSDL
Ramnivas Laddad has been talking about Aspects for a while on the No Fluff Just Stuff tour. In this podcast he talks about how using Aspects works well with using the Spring Framework's dependency injection. He compares what each is best for and talks about the adoption of Aspects.
Aspects and Spring
at Wednesday, October 08, 2008 0 comments Links to this post
Labels: Development, Java, Podcast, Software, Spring, Technology, Web
Keith Donald is a core Spring Framework project member and a principal with Interface21 and lead of the Spring Web Flow project. Spring Web Flow allows developers to build reusable, self-contained controller modules called flows. In this podcast, Keith describes the Web Flow project objectives, features, and problems solved.
Web Flow project objectives
If you listen to the interview you will learn:
* How not to develop in a user-agent specific manner
* Fun issues with screen readers
* How audio CAPTCHA brings equality to the pain of CAPTCHA, and how people who can see use the audio ones
* How painful is the Web to view for a blind person * Using the Google Web Transcoder (the other GWT!) to clean up pages
* How CSS hasn't been as leveraged as much as we would like
* How the increase in mobile and widget platforms has a side effect of accessible views
* How RIA applications deal with accessibility
* How T.V. has written custom clients for Google APIs
* What standards groups are doing in the accessibility space
* Dealing with Python, a language that cares about whitespace, as a blind man.
The status of accessibility on the Web - Google Developer
NFJS speaker Venkat Subramaniam is aware that agile developers are supposed to value people over tools but he also wants to make sure you know about the high quality open source tools available to you. He talks about JUnit 4, mock objects, coverage tools, and tools for measuring the quality of design.
Open Source Agile Tools - NFJS
You may know the Java programming language and may be fairly familiar with many of the libraries, but how well do you know the JVM? NFJS speaker Brian Goetz spends much of his time looking inside the virtual machine at how actual code runs. Goetz explains
Java Internals - NFJS
How done are you? No Fluff Just Stuff speaker Neal Ford says that Agile developers need to be able to create accurate metrics which allow you track your progress. He insists on brutal honesty. Stories are short measurable components of a project that are....
Metric Driven Agile Development - NFJS
Another great Podcast by Venkat Subramaniam.
http://odeo.com/episodes/22031898-Venkat-Subramaniam-Practices-of-an-Agile-Developer-NFJS-Tour-2006
So i been using jaxb XML annotation and spring OXM unmarshaller to read XML files into objects but i needed to do write (serialize) an object to xml and write it to a file... I spend about 1/2 hour on google but no luck. With a help of a co-worker i was able to get it to work... here is the code
public static void main(String[] args) throws Exception {
Jaxb2Marshaller marshaller = (Jaxb2Marshaller) factory.getBean("xmlMarshaller");
DOMResult result = new DOMResult();
marshaller.marshal(myObject, result);
Document doc = (Document) result.getNode();
writeXmlFile(doc, "src/main/resources/autogen/file.xml");
}
// This method writes a DOM document to a file
public static void writeXmlFile(Document doc, String filename) {
try {
// Prepare the DOM document for writing
Source source = new DOMSource(doc);
// Prepare the output file
File file = new File(filename);
Result result = new StreamResult(file);
// Write the DOM document to the file
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.transform(source, result);
} catch (TransformerConfigurationException e) {
} catch (TransformerException e) {
}
}
at Tuesday, October 07, 2008 2 comments Links to this post
Labels: Development, Java, Software, Spring, XML
Check it out... Findbugs, Annotations and more
http://www.javaposse.com/index.php?post_id=234091
This is a great podcast about team and making your team effective
Podcast desc "Think about places you've worked. Aren't there people there that you're pretty sure could be let go and not be missed? Maybe they could be let go and productivity would go up. In this podcast, NFJS speaker Bruce Tate talks about hiring and building effective small teams. He talks about how to manage teams that are geographically separated and what it takes to get the most out of these teams. "
http://www.pluggd.tv/audio/channels/no_fluff_just_stuff_podcast/episodes/2k4j8
So in most web apps you want to know what version is deployed to the server and with maven that is easy. When maven builds a war file it creates a pom.properties in the war's META-INF/ directory in the following format "META-INF/maven/
Here is how to read that file and display the version of the pom on a jsp page...
<%@ page import="java.util.*"%>
<%
java.io.InputStream in = getServletContext().getResourceAsStream("META-INF/maven/groupid/artifactid/pom.properties");
Properties mProps = new Properties();
mProps.load(in);
String mainVer = (String) mProps.get("version");
%>
App Version: <%= mainVer %>