Firefox 3.5 is out, please post your comments about compatibility

Follow Firefox 3.5 on Twitter

- big speed improvements
- geolocation: "... at least puts me in the correct country!"


Download:

Geolocation: the browser located me in Milwaukee, when catually I am in Kenosha (black arrow)





As an Amazon Associate I earn from qualifying purchases.

Using social networking for sports reporting

Here is a good article about reporting sports using social networking tools. Since my business is all about this subject I thought I will repost it. There are the major bullet points:


- Be human (use real name, not "sports bot")
- Be honest (engage honestly)
- Be aware (users really care about the subject you are reporting)
- Be everywhere (provide answers and feedback to the community)
- Show your work (and your references)
















As an Amazon Associate I earn from qualifying purchases.

Using social networking for sports reporting

Here is a good article about reporting sports using social networking tools. Since my business is all about this subject I thought I will repost it. There are the major bullet points:

Be human (use real name, not "sports bot")
- Be honest (engage honestly)
- Be aware (users really care about the subject you are reporting)
- Be everywhere (provide answers and feedback to community)
- Show your work (and your references)
















As an Amazon Associate I earn from qualifying purchases.

Tips on converting GWT Listeners to new Handlers

These tips all depend on using Eclipse.

Start with all the ClickListeners and do them all at once. Use Eclipse "Java Search": Search String = ClickListener, Search For = Type, Limit To = References.

For simple click situations, copy these lines:

.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event)
{

and paste them in to replace every instance of

.addClickListener(new ClickListener() {
public void onClick(Widget sender)
{

Here's an extra tip: Instead of pasting the above code from here, paste it once into one of your classes. Once you get it valid there, copy that and paste it in to replace all your listeners. When you copy and paste this way, eclipse automatically pulls in the imports for you as well.

If the sender parameter had been used, replace references to it with event.getSource(). You will probably have to cast it.

For other situations, make heavy use of auto-complete (CTRL-SPACE). For example

myObject.addCl<CTRL-SPACE><ENTER> -> myObject.addClickHandler()

myObject.addClickHandler(new <CTRL-SPACE><ENTER>) -> myObject.addClickHandler(new ClickHander)

myObject.addClickHandler(new ClickHander() {<ENTER>) ->

myObject.addClickHandler(new ClickHander() {

})

myObject.addClickHandler(new ClickHander() {
<CTRL-SPACE><ENTER>
})

->

myObject.addClickHandler(new ClickHander() {
public void onClick(ClickEvent event) {
// TODO Auto-generated method stub

}
})

Final tip: Put your cursor at the end of a listener class name (ex: new ClickListener|()) and press <CTRL-SPACE>. This will bring up the class along with other suggestions in a list. But it will also show the Java Doc for that class, which will tell you what handler(s) you should use instead. The same works for methods like addClickListener().


As an Amazon Associate I earn from qualifying purchases.

Entrepreneurial Thought Leaders






As an Amazon Associate I earn from qualifying purchases.

Zazzle: Entrepreneurial Thought Leaders






As an Amazon Associate I earn from qualifying purchases.

Time Magazine @Twitter

"... when the conference wrapped up there was a public record of hundreds of tweets documenting the conversation ..."

"... it gave the event an afterlife on the Web ..."

"... last week the anti-communist uprising in Moldova was organized on Twitter ..."






As an Amazon Associate I earn from qualifying purchases.

Friends are diamonds in our lives




As an Amazon Associate I earn from qualifying purchases.

Movie: Keith

Occasionally we come across people who show us how to embrace the meaning of life...
we may not be able to spend the rest of the life with them, but they become an unforgettable part of us.




As an Amazon Associate I earn from qualifying purchases.

Setting page width for iPhone

By default, iPhone assumes that the page width is industry standard (ie. 980px), even if you display a tiny widget.

To make the page with widget iPhone friendly insert the "viewport" meta tag.

The working area on iPhone is 320x360 as the user first sees the page. Scrolling down on iPhone is very intuitive so the page can be very tall.

<html><head><meta name="viewport" content="width=320">




As an Amazon Associate I earn from qualifying purchases.

Glass Buddha

I really have to get a replacement for my broken Nikon D50, iPhone is
ok, but I cannot compose my pictures the way I want.


As an Amazon Associate I earn from qualifying purchases.

Adding Google Friend Connect To Sample Website

Check out this video on YouTube:

http://www.youtube.com/watch?v=BIEwUxMrJ4Y





As an Amazon Associate I earn from qualifying purchases.

Ensemble Espanol - Flamenco Passion

This is the best I could do with iPhone, but it was such a great show!
I will write about it tomorrow morning.


As an Amazon Associate I earn from qualifying purchases.

Raible Designs | How to use GWT 2.0 with Maven and Generate SOYC Reports






As an Amazon Associate I earn from qualifying purchases.

Setting up Eclipse...again

So Eclipse Galileo doesn't support GWT 1.6.4 fully yet, so I had to use 3.5 (Ganymede).

Download Eclipse Ganymede...
http://www.eclipse.org/downloads/packages/release/ganymede/sr2

...install...

to add plug-ins go to Help...Software Updates...Available Software...Add Sites...

Add some optional plug-ins (we use google, maven, subclipse)

Google -> http://dl.google.com/eclipse/plugin/3.4
Maven -> http://m2eclipse.sonatype.org/update/
Subclipse -> http://subclipse.tigris.org/update_1.6.x

I did have an issue where the installer would say it couldn't find the repositories so it wouldn't install. In that case I deleted my added site and added it again...then it seemed to install.

I also ran the eclipse project update the same way.


As an Amazon Associate I earn from qualifying purchases.

My roses #2



As an Amazon Associate I earn from qualifying purchases.

My roses



As an Amazon Associate I earn from qualifying purchases.

Eclipse Galileo 3.5 plugins for GWT development

Please look at the newer post:




1) Upload a new version of Eclipse Java EE IDE for Web Developers 3.5 Galileo (Mac Cocoa)


to add plugins you open: "Help -> Install New Software..."







Restart Eclipse each time you are being asked.
In similar fashion add other plugins...

2) SVN plugin - http://subclipse.tigris.org/update_1.6.x

No problems with installation.

3) Google GWT AppEngine plugin - http://dl.google.com/eclipse/plugin/3.4

Cannot complete the install because one or more required items could not be found.
Software being installed: Google App Engine Java SDK 1.2.1 1.2.1.v200905131143 (com.google.appengine.eclipse.sdkbundle.e34.feature.feature.group 1.2.1.v200905131143)
Missing requirement: Google Plugin for Eclipse 3.4 1.0.1.v200905131143 (com.google.gdt.eclipse.suite.e34.feature.feature.group 1.0.1.v200905131143) requires 'org.eclipse.platform.feature.group [3.4.0,3.5.0)' but it could not be found
Cannot satisfy dependency:
From: Google App Engine Java SDK 1.2.1 1.2.1.v200905131143 (com.google.appengine.eclipse.sdkbundle.e34.feature.feature.group 1.2.1.v200905131143)
To: com.google.gdt.eclipse.suite.e34.feature.feature.group 1.0.1


4) Maven2 plugin - http://m2eclipse.sonatype.org/update/

Cannot complete the install because one or more required items could not be found.
Software being installed: Maven Integration for AJDT (Optional) 0.9.8.200905041414 (org.maven.ide.eclipse.ajdt.feature.feature.group 0.9.8.200905041414)
Missing requirement: Maven Integration for AJDT (Optional) 0.9.8.200905041414 (org.maven.ide.eclipse.ajdt.feature.feature.group 0.9.8.200905041414) requires 'org.eclipse.ajdt.feature.group 1.5.0' but it could not be found







As an Amazon Associate I earn from qualifying purchases.

Publish Stories to Facebook with Templates

When using Facebook Connect or any other Facebook app to post stories to users’ walls and news feeds, Facebook provides a way to customize exactly what information will appear and how. This mechanism is called Template Bundles. This article demonstrates how to create a template step by step.  In a second article, I explore one technology for actually posting stories with this template—GWT and the facebook4gwt library.

Sign in to Facebook using your standard credentials. Navigate to http://www.facebook.com/developers/ and click your application on the right.

image

From the application, click “Create Feed Template”.

image

This takes you to a utility for creating templates. Select your application in the dropdown and click “Next”.

image

Stories can be posted to Facebook in one of two forms, "One Line Story” and “Short Story”. Each template can specify both forms. First you will be prompted to specify the “One Line Story” form. Fill in the template as desired. A sample preview is shown on the right side of the page.

image

Click “Next”. Now you are prompted to fill in the “Short Story” form. With both forms we specify tokens within the text that will be replaced with values specified when the story is posted. Tokens use the {*token*} syntax. There are some predefined tokens like {*actor*}, and you can also specify your own using any token text you like. Here I am using my own token {*headline*}.

image

Click “Next”. You can specify an optional link that appears with both template forms. Again, tokens are allowed. I am using another custom token, {*url*}.

image

NOTE: In order for the sample preview to show, Facebook requires that we specify data for all custom tokens in the “Sample Template Data” box. You can see that I added “headline” and “url” here. This does not affect our template at all, just the preview we see on this screen.

image

Click “Next”. A final preview is shown. If you’re happy with your template, click “Register Template Bundle”.

A confirmation popup appears with the ID number of the template. You will use this number to reference this template when making posts. Don’t worry about copying it down if you don’t need it immediately; you can always look it up later.

image

That’s all there is to it. You can now use any of the Facebook APIs to post stories using your template. In another article I explore an example of this with a GWT application, taking advantage of the open source facebook4gwt library.



As an Amazon Associate I earn from qualifying purchases.

GWT 1.6.4 maven and google eclipse plugin

Uki and I wanted to switch our application to using GWT 1.6.4, still use maven for our dependencies, and be able to use the google eclipse plugin to run our gwt application from. By no means have we even come close to making a perfect solution, but it is a start.

1. Create a new web application project using google's eclipse plugin.

2. Create a folder called maven/resources (we use this for resource filtering).

3. Create a pom.xml that looks something like this (we run this using ant and don't use the eclipse plugin):
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi="http://www.w3.org/2001/XMLSchema-instance" schemalocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelversion>4.0.0</modelversion>
<groupid>Application</groupid>
<artifactid>Application</artifactid>
<version>1.0</version>
<build>
<resources>
<resource>
<filtering>true</filtering>
<directory>maven/resources</directory>
<excludes>
<exclude>*.properties</exclude>
</excludes>
</resource>
</resources>
<filters>
<filter>maven/resources/${target}.properties</filter>
</filters>
</build>
<dependencies>
<dependency>
<groupid>com.google.gwt</groupid>
<artifactid>gwt-servlet</artifactid>
<version>1.6.4</version>
</dependency>
<dependency>
<groupid>com.google.gwt</groupid>
<artifactid>gwt-user</artifactid>
<version>1.6.4</version>
</dependency>
</dependencies>
</project>


4. Create a build.xml file that looks like this:
<project name="Application" default="copy_jars" basedir=".">

<property name="GOOGLE_WAR_LIB" value=".\\war\\WEB-INF\\lib">
<property name="MAVEN_TARGET_JARS" value=".\\target\\Application-1.0\\WEB-INF\\lib">
<property name="GOOGLE_SRC" value=".\\src">
<property name="MAVEN_TARGET_RESOURCES" value=".\\target\\classes">
<property file=".\\maven\\resources\\${user.name}.properties">

<target name="maven_war">
<echo>Maven Executable: ${MAVEN_EXEC}</echo>
<exec taskname="mvn war" dir="${basedir}" executable="${MAVEN_EXEC}">
<arg line="clean resources:resources war:war -Dtarget=${TARGET}">
</arg>
<delete file=".\\target\\csd.war">
</delete>

<target name="copy_jars" depends="'copy_filtered_resources'">
<copy todir="${GOOGLE_WAR_LIB}">
<fileset dir="${MAVEN_TARGET_JARS}">
</fileset>
</copy>

<target name="copy_filtered_resources" depends="'maven_war'">
<copy todir="${GOOGLE_SRC}">
<fileset dir="${MAVEN_TARGET_RESOURCES}">
</fileset>
</copy>
</project>


5. Remove from the war/WEB-INF/lib folder the gwt-servlet.jar that the google eclipse plugin (gep) added for you automatically.

6. Run ant (ignore any errors about a missing web.xml file, we will update the pom and build files later to hopefully get rid of this issue).

7. Edit the projects build path, project > properties > Java Build Path > Libraries, and add all of the jars in the war/WEB-INF/lib folder.

8. Run the project as a google Web Application, Run > Run As > Web Application.

Every time you add/remove dependencies to your pom you must rerun the ant task and add/remove those jars from your build path.
Also if you change any files in the maven/resources folder you must rerun the ant task.

I definitely don't like having a seperate folder to keep my resource files that have to be filtered, and I also don't like that we have to use ant to run maven to basically just copy the jars into the right folder, then to add them to the build path. But at least it runs using google's eclipse plugin as well as being able to somewhat use maven for the dependencies.


As an Amazon Associate I earn from qualifying purchases.

GWT 1.6.4 and Maven 2 integration

There is a nice article on the subject:


However, we are working on different solution that integrates closer, stand by for updates.


As an Amazon Associate I earn from qualifying purchases.

IE 8 Cache Clearing





As an Amazon Associate I earn from qualifying purchases.

Integrate your GWT app with Facebook in 4 easy steps

Step 1: Register you app with Facebook.

Sign in to Facebook using your standard credentials. Navigate to http://www.facebook.com/developers/ and click “Set Up New Application.”


Enter a name for your application.


Make note of your API Key. You will need this later. You can come back to this page any time to get it.


Click the “Connect” section on the left. Then enter the base domain name of the website where your application is hosted into the “Connect URL” field. Click the “Save Changes” button at the bottom of the page.


That’s it. You are now the proud developer of a Facebook application, which is required for using Facebook Connect.

Unlike most of the Facebook applications we are used to seeing on the Facebook site, our application does not have an interface for users on the Facebook site. This is something you could certainly add it you need it, but it is not necessary when using Facebook Connect.

Step 2: Add the facebook4gwt JAR to your project .
Go to http://code.google.com/p/facebook4gwt/. Click “downloads” and grab the latest JAR.

Add the JAR to the build path of your GWT project. I’m using an Eclipse project and building it with the Google Eclipse plugin. So I just go to the configure build path dialog, click “Add JARs…” or “Add External JARs…” and select the JAR I just downloaded.

Now add the following line to your module XML file to tell it to include the facebook4gwt module.

<inherits name="com.reveregroup.gwt.facebook4gwt.Facebook4gwt"></inherits>

Step 3: Initialize Facebook Connect.

Facebook Connect needs to be initialized on your web page before using any of its features.

With facebook4gwt, this is accomplished with one simple call:

Facebook.init(YOUR_API_KEY);

This is the API Key that we noted in Step 1 above.

I am making the call in the onModuleLoad() method of my EntryPoint, but you can put it anywhere as long as it comes before you try to use any of its other features.

Step 4: Use the API
Now you’re ready to connect with Facebook. Here are a few examples of what you can do.

Provide a login button
The vast majority of Facebook Connect features require a user to be logged in to Facebook through your site. The API provides a login button that can be placed on your page for a visitor to sign in. It can be used as any other GWT Widget:

loginButton = new LoginButton();
RootPanel.get("facebookLogin").add(loginButton);

Listen for login events
You can register a login listener that is fired whenever a user logs in or out:


Facebook.addLoginHandler(new FacebookLoginHandler() {
public void loginStatusChanged(FacebookLoginEvent event) {

if (event.isLoggedIn()){

statusLabel.setText("Logged in");

} else {

statusLabel.setText("No user logged in");
}

}

});

Get information about a user
The API exposes methods for getting information about the current user or any user given their numeric ID.

In this example we get the current user’s name, status and profile picture. It’s an asynchronous call, so the result is returned to an instance of AsyncCallback.

You also need to specify which information you want the call to fetch for you. These methods use varargs to allow you to easily specify as many items as you need. UserField is an enum with all the possible items.


Facebook.APIClient().users_getLoggedInUser(new AsyncCallback() {
public void onSuccess(FacebookUser result) {
userName.setText(result.getName());

userImage.setUrl(result.getPic());

userInfoPanel.setVisible(true);

}
public void onFailure(Throwable caught) {
userInfoPanel.setVisible(false);
}
}, UserField.NAME, UserField.STATUS, UserField.PIC);


Share with friends
You can add Facebook “Share” buttons to your page in various styles. Again these are just GWT widgets.

new ShareButton(URL_TO_SHARE, TITLE_FOR_POST);

A more advanced option is to post to the user’s wall using templates to customize exactly what information is shown and how. For more on creating facebook feed templates see this blog entry.

The API works like this...

  1. Create an instance of FacebookStory and set the template bundle
    id. You should be able to find the this id with the template you created on
    Facebook's site.
  2. Set the content for your post:

    • Set any key-value pairs of data that your template needs using the
      putData(String, String) method.
    • Add the images, video, mp3 or flash data you want (if any).
    • Set bodyGeneral if desired.

  3. Optionally, configure the dialog with setPrompt() and setDefualtUserMessage().
  4. Finally, call showFeedDialog(). This will display a dialog
    window for your user to confirm the message and possibly add their own
    comments. If they approve, the message will be posted to their wall and to
    their friends news feeds.

Here is an example:

FacebookStory fbStory = new FacebookStory();
fbStory.setTemplateBundleId(Constants.FEED_TEMPLATE_ID);
fbStory.setPrompt("Add your thoughts if you like...");
fbStory.putData("headline", article.getHeadline());
fbStory.putData("story_url", Constants.APP_URL);
fbStory.setBodyGeneral(article.getContent());
fbStory.addImage(article.getImageURL(), Constants.APP_URL);
fbStory.showFeedDialog();

And here's the confirmation dialog displayed by this code.



That's about all there is to it. The actual Facebook API has many more features available than shown here. Over time the facebook4gwt team hopes to build more and more of these features into their implementation, so be watching for that.


As an Amazon Associate I earn from qualifying purchases.

My roses

I wanted to share my roses with the world before the finish blooming
and noone has a chance to see them.


As an Amazon Associate I earn from qualifying purchases.

Medicine #2

When you take the medication, take the full dose. Yes, that is 60 inch
screen for $1,099!!!


As an Amazon Associate I earn from qualifying purchases.

Shopping - the best medicine



As an Amazon Associate I earn from qualifying purchases.

mysql: dropping all tables

I just chatted with our server support and they gave me a simple script to drop all of the tables without removing database permissions which we can use when refreshing the UAT and STAGE databases:


mysql -u uname dbname -e "show tables" | grep -v Tables_in | grep -v "+" | \
gawk '{print "drop table " $1 ";"}' | mysql -u uname dbname


As an Amazon Associate I earn from qualifying purchases.

Great Site for CSS and Javascript Creativity

Here is a great site by Stu Nicholls in which he uses CSS to create menus and widgets:

http://www.cssplay.co.uk/

Also, here is his Javascript site:

http://www.stunicholls.com/


As an Amazon Associate I earn from qualifying purchases.

Art in everything you do!



As an Amazon Associate I earn from qualifying purchases.

Who cares anyway?

"At times one remains faithful to a cause only because its opponents
do not cease to be insipid."

I think it is true for us humans (poets, rebels and anarchist),
sometimes we keep on going with "our way" just because the rest of the
world (people around us) ceased to care.



As an Amazon Associate I earn from qualifying purchases.

iPhone vs. Android

I own both the iPhone and the unlocked HTC (Magic/G2) Android phone I got at the Google IO conference. 
Both phones have a lot of applications available, but at this point, iPhone's user experience is far better.

The dominance of the iPhone is easy to see for the near future, if there is a feature that Apple is missing, it will be an easy software update for them... like the horizontal typing and cut-and-paste I am using to write this article.
On the other hand, I see a dozen of manufacturers coming up with Android in the next two years, what's more, important there are tablets and laptops with Android out there and that excites me as a developer -- my Audi navigation system would greatly benefit from Android, too!

To me there are two things that are crucial:
1) Apple patents the coolest of the user interface features which is good for them but makes it impossible to have "pinching" on the Android.
2) it is possible to replace any application you don't like on Android with anything else anyone else wrote, so there is the possibility of some great breakthroughs
3) I love that Android application are written in Java, but that is my subjective opinion.


As an Amazon Associate I earn from qualifying purchases.

Google Technology meeting on Friday, July 10th, 2009

Register and invite your friends:




As an Amazon Associate I earn from qualifying purchases.

Sheltie

Sheltie, or Shetland Sheep Dog, is taking this "sheep" part very
seriously!


As an Amazon Associate I earn from qualifying purchases.

Planting garden



As an Amazon Associate I earn from qualifying purchases.

Lili



As an Amazon Associate I earn from qualifying purchases.

Lifetime Athletics swimming pool



As an Amazon Associate I earn from qualifying purchases.

Here is Lili on the water slide...

You cannot see her? Well, iPhone is too slow to take the pic, she
already has passed by. I tried several times trying to anticipate, but
always the same result. So here you go... Empty slide!


As an Amazon Associate I earn from qualifying purchases.

Lili at Montessori school



As an Amazon Associate I earn from qualifying purchases.

Lili with grandpa



As an Amazon Associate I earn from qualifying purchases.



As an Amazon Associate I earn from qualifying purchases.

Checking out Code.Google SVN project to Eclipse

Once you get your project set up in Google Code and you have a link like this one:


1) In Eclipse you open the "Window -> Show View -> SVN Repositories"


2) Click the "SVN +" icon (see arrow below), or right click and add "NEW -> Repository Location"


3) Copy-and-paste the "https://" address from the Google Code page (selected)
4) Use the gmail address as user name
5) Generate the password (see arrow below), select "Remember Password"



6) Switch to your Java perspective and in the "Package Explorer" right click to "Import"


7 ) select "SVN -> Checkout Projects From SVN"



There may be multiple projects in the SVN Repository, but the logic is similar




As an Amazon Associate I earn from qualifying purchases.

Wild goose Lili



As an Amazon Associate I earn from qualifying purchases.

Tweets about... just some ideas.

Mundelein on Twitter...







As an Amazon Associate I earn from qualifying purchases.

don't let someone...

When I saw this photo I thought it is so sad when we wait day and night for weeks on the end for someone to tell us that we are loved and that we are important in their lives. It happens to all of us, does not matter how good, or bad we are. If you feel the same way... you are not alone!

One thing... we have to try our best before we give up on someone, after that there is nothing to regret.



As an Amazon Associate I earn from qualifying purchases.

My favorite quotations..


“A man should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.”  by Robert A. Heinlein

"We are but habits and memories we chose to carry along." ~ Uki D. Lucas


Popular Recent Articles