Archive for the ‘Software’ Category

Quote from “Authentication is Secondary” by Bob Cringely

Thursday, February 4th, 2010

From “Authentication is Secondary” by Bob Cringely:

“Remember that all the authentication in the world will not protect against a privileged user doing the wrong thing. It’s just that logging may help to determine what happened after the fact.”

First post using WordPress for Android

Wednesday, February 3rd, 2010

This post was created on Droid phone using WordPress for Android. You can find more details about the app at http://android.wordpress.org/.

Using a Maven profile to run a test program

Tuesday, August 25th, 2009

This is a new (to me) trick for my programming toolbox. I discovered (copied) it from the Apache CXF project. (I don’t know if they originated it or not.) Basically, you can use a Maven profile configuration in your pom.xml to easily run a test program in your project that has a public static void main(String[] args) method. I discovered this technique reading the README.txt of the Apache CXF sample “java_first_jaxws“. Here is what the Maven command looks like:

mvn -Pserver

Here is what the profile configuration in the pom.xml looks like:

...
<profiles>
  <profile>
    <id>server</id>
    <build>
      <defaultGoal>test</defaultGoal>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <executions>
            <execution>
              <phase>test</phase>
              <goals>
                <goal>java</goal>
              </goals>
              <configuration>
                <mainClass>demo.hw.server.Server</mainClass>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </build>
  </profile>
...
</profiles>
...

When the “mvn -Pserver” command is executed, the exec-maven-plugin will run the demo.hw.server.Server class. The id identifies the profile id used in the mvn command after the “-p“. The mainClass element defines the class with the main method to execute. The exec-maven-plugin does all of the hard work. One of the benefits of this technique is the standard Maven classpath for the project defined in the pom to build and unit test your software is used to run the mainClass. This comes in quite handy if your program uses many jar files. I used to use a Windows batch file (copied from the Tomcat startup script catalina.bat) to run little test programs. This Maven profile technique is much easier to use for me, since I use Maven for most all of my Java development.

Successfully accessed Facebook with OpenID

Saturday, May 23rd, 2009

I have successfully accessed Facebook with my OpenID. I learned that Facebook was acting as an OpenID relying party, meaning Facebook will accept some other credentials than ones provided by Facebook to access your Facebook account. I discovered this capability when reading the post OpenID’s Tipping Point. It was very easy to set up. Here are the steps I went through in Facebook to link an account via OpenID:

Settings -> Linked Accounts -> Add a new linked account: -> OpenID…

I then entered my OpenID URL and clicked “Link New Account”.

Using OpenID to access Facebook is a little bit different than other apps that I have used to authenticate with OpenID. To use OpenID to authenticate to Facebook, you actually authenticate with your OpenID provider first before accessing Facebook. Then when you access Facebook, it recognizes the existing OpenID authenticated session and proceeds to take you to your Facebook “Home”.

This is a great enhancement to Facebook. It makes it much more convenient for me to access the application.

Authenticate via OpenID

Wednesday, March 18th, 2009

You can now use OpenID to authenticate at this blog! w00t!

I have just installed the Wordpress plugin OpenID (version 3.2.1). Installation was very simple: just upload the “openid” directory to the “plugin” directory and then active the plugin. The plugin allows you to assign multiple OpenIDs to your account to log in to your blog account.

Remote desktop connection tip

Wednesday, March 18th, 2009

Today I am working from home because Sydney is sick. I therefore connect via the VPN to my work computer. I use Microsoft Remote Desktop Connection to connect to my work computer. But periodically I have problems typing into the remote computer: whenever I type a ‘u’ character, the Microsoft Utility Manager pops up.

After doing a bit of searching on Google, I came upon this post “Windows key “stuck” in Remote Desktop…“. This seemed to accurately describe my problem. But, the first comment in the post was able to work around my particular problem:

The best workaround that always works for me is:

1. Close the RD window
2. Open new RD but make sure the “Apply Windows key Combinations” is set to “On the remote computer”
3. Now press the Ctrl+Alt+End and lock the computer
4. Log in again and it should work.

amirhp
/’L'\mir

I put this here so that I can remember it for the next time. (Yeah, I pretty much expect that this condition will happen again.)

littles3 version 2.3.0 released

Saturday, February 14th, 2009

Version 2.3.0 of “littles3” has been released. This release includes enhanced serialization of business objects to support non-serializable commons logging logger implementations

Issues included in this release:

Code reviews in Google Code

Wednesday, December 3rd, 2008

So I just released a new version of “littles3“, a project hosted at Google Code. I tried out the “Issue” feature; pretty neat. But what I really found cool was the “code review” features in the source code management. For instance, the source file that was changed in my latest release was to FileS3ObjectDao. I was able to have a diff from r21 (the old version) and r37 (the new version). It even let me comment right within the diff, in either the old or new version.

littles3 version 2.2.0 released

Tuesday, December 2nd, 2008

Version 2.2.0 of “littles3” has been released. This release improves performance of listing keys within a bucket. For instance, 1000 keys with version 2.10 took 3.36 minutes. With version 2.2.0, this same list of 1000 keys took 1.75 seconds.

Issues included in this release:

littleS3 basic usage

Friday, November 28th, 2008

I have updated the littleS3Getting Started” wiki page, adding a “Basic Usage” section. This section includes: