Search This Blog

Loading...

Upgrade ATT Tilt to Windows Mobile 6.1 ROM

htc tilt pdaphone

I also did this on my Tilt, it has a few new things that are kinda cool.

Windows Mobile 6.1 for PPC features that i like:
  1. Voice Commands are kinda cool, still learning about them
  2. Email Setup and Setup updates are much better and easier
Check out the HTC site to download the Windows Mobile 6.1  ROM for the ATT Tilt

Upgrade ATT BlackJack I to Windows Mobile 6.0 ROM

blackjack_officialMy 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.

Firefox Bugzilla Search Plugin

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.

  1. Created a a file with the xml below called bugzilla.src
  2. Save an icon called bugzilla.gif with the image to display in to search box
  3. Put both files in firefox search plugin dir
    Mac: /Applications/Firefox.app/Contents/MacOS/searchplugins/
and that is it....

XML File for FF 2
<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> 


Today while getting ready to create this blog i noticed that is no longer the same xml for FireFox 3.

Here is the updated xml for FF3.

  1. Created a a file with the xml below called bugzilla.xml
  2. Put both files in firefox search plugin dir
Note that this time there is no image file. The xml has the image data in it.

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                          xmlns:
moz="http://www.mozilla.org/2006/browser/search/">
 <ShortName>Bugzilla</ShortName>
 <Description>Load a bugzilla bug by Id</Description>
 <InputEncoding>ISO-8859-1</InputEncoding>
 <Image height="16" width="16">data:image/gif,%01%01%10%10h%05%16(%10%20%01%08%01%01%01%80%80%80%80%80%80%80%80%80%C0%C0%C0%C0%DC%C0%F0%CA%A6%04%04%04%08%08%08%0C%0C%0C%11%11%11%16%16%16%1C%1C%1C%22%22%22)))UUUMMMBBB999%80%7C%FFPP%FF%93%D6%FF%EC%CC%C6%D6%EF%D6%E7%E7%90%A9%AD3f%99%CC3333f3%993%CC3%FFff3fff%99f%CCf%FF%99%993%99f%99%99%99%CC%99%FF%CC%CC3%CCf%CC%99%CC%CC%CC%FF%FFf%FF%99%FF%CC3333f3%993%CC3%FF3333333f33%9933%CC33%FF3f3f33ff3f%993f%CC3f%FF3%993%9933%99f3%99%993%99%CC3%99%FF3%CC3%CC33%CCf3%CC%993%CC%CC3%CC%FF3%FF33%FFf3%FF%993%FF%CC3%FF%FFff3fff%99f%CCf%FFf3f33f3ff3%99f3%CCf3%FFffff3fffff%99ff%CCf%99f%993f%99ff%99%99f%99%CCf%99%FFf%CCf%CC3f%CC%99f%CC%CCf%CC%FFf%FFf%FF3f%FF%99f%FF%CC%CC%FF%FF%CC%99%99%993%99%99%99%99%CC%99%9933%99f%993%CC%99%FF%99f%99f3%993f%99f%99%99f%CC%993%FF%99%993%99%99f%99%99%99%99%99%CC%99%99%FF%99%CC%99%CC3f%CCf%99%CC%99%99%CC%CC%99%CC%FF%99%FF%99%FF3%99%CCf%99%FF%99%99%FF%CC%99%FF%FF%CC%993%CCf%CC%99%CC%CC%993%CC33%CC3f%CC3%99%CC3%CC%CC3%FF%CCf%CCf3%99ff%CCf%99%CCf%CC%99f%FF%CC%99%CC%993%CC%99f%CC%99%99%CC%99%CC%CC%99%FF%CC%CC%CC%CC3%CC%CCf%CC%CC%99%CC%CC%CC%CC%CC%FF%CC%FF%CC%FF3%99%FFf%CC%FF%99%CC%FF%CC%CC%FF%FF%CC3%FFf%FF%99%CC3%FF33%FF3f%FF3%99%FF3%CC%FF3%FF%FFf%FFf3%CCff%FFf%99%FFf%CC%CCf%FF%FF%99%FF%993%FF%99f%FF%99%99%FF%99%CC%FF%99%FF%FF%CC%FF%CC3%FF%CCf%FF%CC%99%FF%CC%CC%FF%CC%FF%FF%FF3%CC%FFf%FF%FF%99%FF%FF%CCff%FFf%FFff%FF%FF%FFff%FFf%FF%FF%FFf!%A5___www%86%86%86%96%96%96%CB%CB%CB%B2%B2%B2%D7%D7%D7%DD%DD%DD%E3%E3%E3%EA%EA%EA%F1%F1%F1%F8%F8%F8%F0%FB%FF%A4%A0%A0%80%80%80%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%13Jnnnnnooooooooon%EA%12%93%99noooooooooooon%9A%9Anoooooooooooon%9A%9A%99n%EAnnnnnooooon%1A%9A%99%99%99%9A%9A%9A%9A%9A%99nooos%1A%9A%9A%9A%9A%9A%9A%9A%9A%9A%9A%9Anoo%1C%9A%9A%9A%9A%9A%9A%9A%9A%9A%9A%9A%C3%93on%99%9A%9A%9A%9A%9A%9A%9A%9A%9A%9A%9A%C3%93on%9A%9A%9A%9A%1A%F0%EE%99%9A%9A%9A%C3%F0non%9A%9A%9A%1A%FF%FF%FF%07%9A%9A%C3%1Cnoos%9A%9A%9A%C3%BC%07%FF%99%9A%99noooon%9A%9A%9A%C3%F8m%F0%9A%9A%1Cnooooon%99%9A%C3%07m%1C%9A%9Asooooooons%9A%9A%9A%9A%9A%9AnoooooooooJs%1Cnnnoooooooooonoooooooooo</Image>
 <Url type="text/html" method="GET" template="https://bugs.company.com/show_bug.cgi">
  <Param name="id" value="{searchTerms}"/>

 </Url>
 <SearchForm>https://bugs.company.com/</SearchForm>
</OpenSearchDescription>



For more info read: Creating OpenSearch plugins for Firefox

Article: Add an Address Bar icon for your website

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.

How to display your web site logo on the address bar and in the favorites list

 

Eclipse 3.4: Search Menu is grayed Out

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

Talk: Performance Improvements that are coming in new browsers

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.



Article: Top six performance tuning tips for a Java enterprise application

Check out this Article about Java Performance:

Top six performance tuning tips for a Java enterprise application

Download Tomcat 5.0.27

 
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/

Mac OSX make .sh file executable

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

m2eclipse Maven POM editor, love it...

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 .

Vancouver Cancuks Wallpaper


canucks_wall1
Originally uploaded by waving.drowning
Check out these wallpapers for the Vancouver Canucks fans

Java and Web podcasts that i subscribe to

Check out these development podcasts which i subscribe to.


Please let me know of any other java/web development podcast that i should check out

My 1st Phone



So when i visited my parents a few months back, i found this toy at Church's kids room. This was my 1st phone...

Now my kid is playing with toys that have computer chips that can out compute the computers of the late 70's...

just a fun blog i thought I'd share with everyone.

Using Maven maven-assembly-plugin to build Env packages

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>

after all that ... you need the xml files that desc how the files should be packaged

here is an example of one of them...

<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>

note that env-data.properties is used to keep the maven version

here is how i setup that up
<resources>
 <resource>
  <directory>src/main/resources/env</directory>
  </resource>
  <resource>
  <directory>src/main/resources/build</directory>
  <filtering>true</filtering>
  </resource>
</resources>

not that we have filtering = true

and this is the env-data.properties file... which at the end of the day the tar file will have the pom verison

env-data.version=${project.version}

MyEclipse 6.5 support is not backward compatible with Eclipse and m2eclipse

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...

Trafic Statistic for Blogger or any site

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

Maven 2 AXIS WSDL Code Gen

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:
Add the autogen dir to the resources

<sourceDirectory>src/main/java</sourceDirectory>
  <resources>
      <resource>
          <directory>src/main/autogen</directory>
      </resource>
      <resource>
         <directory>src/main/resources</directory>
      </resource>
  </resources>

Step 4:
I tent do run mvn test to gen the source and run the unit test with the genrated sources

NOTES:
  • Don't check in autogen into source control
    After trial and error i learned not to check the auto gen code since you contal the changes to it by checked in the wsdl.
  • Exclude autogen code from code covrage using org.codehaus.mojo to do code covrage i tend to add the following plugin and exclude the auto gencode... so that the reports are clean
<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>

Podcast: Aspects and Spring

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

Pocdast: Spring Web Flow

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

Podcast: The status of accessibility on the Web - Google Developer

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

Podcast: Open Source Agile Tools - NFJS

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

Podcast: Java Internals - 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

Podcast: Metric Driven Agile Development - 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

Podcast: Practices of an Agile Developer - NFJS

Another great Podcast by Venkat Subramaniam.

http://odeo.com/episodes/22031898-Venkat-Subramaniam-Practices-of-an-Agile-Developer-NFJS-Tour-2006

Using Jaxb2Marshaller to Write Object to file on disk

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");
}

Note the last part was taken from The Java Developers Almanac 1.4

    // 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) {
        }

    }

I hope this helps...

Podcast: Interview with Bill Pugh and Brian Goetz

Check it out... Findbugs, Annotations and more

http://www.javaposse.com/index.php?post_id=234091

Podcast: Check out Effective Teams - NFJS

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

Displaying Maven POM Version in a JSP

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///pom.properties"

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 %>