Wednesday, October 5, 2011

I Broke Eclipse

As I mentioned in an earlier post, I've used the Maven capabilities in Eclipse to import a project based on a pom.xml file.  The imported project turned out not to be completely what I expected.  Specifically, it wasn't stored in my Eclipse workspace folder.  It was where I had originally created the pom.xml file.

I thought I could avoid this by creating the file within the workspace folder itself, but that didn't work, either.  Eclipse refused to import something that is already in the workspace.

What I ended up doing was deleting the project from the project explorer without deleting the files from the filesystem.  Then I asked Eclipse to import an existing project from the filesystem into the workspace.  Overall, that worked, except for one thing.

Some bug in Eclipse made the import wizard think that something was still being processed.  The wizard wouldn't close.  I didn't want to abort Eclipse for fear that my workspace wouldn't be saved properly.  I ended up clicking the "Back" button, choosing some other type of innocuous import, letting it run, then the wizard went away.  I cleaned up by deleting the unnecessary imported files.

Java Web Apps for Beginners with Spring

I've been developing web applications for years and now I'm turning my focus to implement them in Java.  Specifically, I'm trying to start working with the Spring framework.

I've been looking for tutorials on using the framework and I found the Green Beans articles in the Spring blog to be somewhat helpful. The article, "Green Beans: Getting Started with Spring MVC", has been especially helpful.

I'm going through it very slowly, attempting to understand the various bits well.  I like the mention of Maven and I've used the example pom.xml given in the appendix.  I ended up saving it to a new folder on my desktop, then telling Eclipse to import the Maven project (using the m2eclipse extension).  Eclipse loaded it and Maven (magically!) found the dependencies.  The author, Colin Sampaleanu, has included helpful comments in this file and the rest of the code.

Friday, September 9, 2011

Split or Trim Videos With mencoder

It's easy to split a video file into several smaller video files with the mencoder utility.  For example, the following two commands will split a video into two parts at the one-hour (01:00:00) mark:

mencoder -endpos 01:00:00 -ovc copy -oac copy video.avi -o part01.avi

mencoder -ss 01:00:00 -oac copy -ovc copy video.avi -o part02.avi

The "-endpos" option tells mencoder the ending position at which it should stop copying the video to the output file.  Conversely, the "-ss" option tells mencoder the start position at which it should begin copying video to the output file.

Using these commands in other ways, it's possible to split a video into more than two pieces or to trim the beginning and end from it.

Wednesday, August 3, 2011

interesting image effect for Firefox

I saw this on a web site today:



Which, when it received a mouseover event changed to:



Very nice use of "-moz" styles for Firefox and other Mozilla-based browsers:

border-width: 2px 2px 9.6px;
border-color: rgb(255, 255, 255);
border-style: solid; padding: 0px;
-moz-box-shadow: 0pt 0pt 4px rgb(170, 170, 170);
-moz-transform: rotate(-4deg) scale(1.3);

Tuesday, August 2, 2011

Web Site Language Choices

I've not blogged in quite a while, so I thought I'd dive right in with a short and sweet post just to get started again.

Today I needed to visit the TAM Airlines site, one that's useful for me to use while living and traveling in Brazil. As always, the site first appears in Portuguese and I need to change it to English in order to fully understand everything on the site. The section of the page about changing the language reads:

SITE BRASIL (CHANGE COUNTRY)

That always strikes me as a logical challenge. I don't actually want to change to a site for another country, I want the site for Brazil, but in English. Still, I know that must be the link I should click to change the language, so I click it.

Monday, May 12, 2008

Changes in PHP v6

The folks at IBM developer works wrote this nice article about The future of PHP.

Tuesday, April 29, 2008

Cool Tablet Computers

These tablet computers, Motion Computing Tablet PCs for Mobile Computing, are the one reason I would consider buying a non-Mac.