Liferay Mobile Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Thursday, 2 April 2009

Maven documentation

Posted on 10:26 by Unknown
Whilst reading dzone, I came across an article, Five tips for successfully deploying Maven, that highlights some good ideas for working with maven. While all 5 ideas are worth the time to read, the 4th idea intrigued me most because I have always found the maven documentation difficult to find and navigate. Quoting the 4th idea:
4 Use the documentation

Well, duh. But a weak point of Maven in the eyes of many people is the lack of documentation and the sometimes poorly organized information. There are a few good points of reference though, that you can spread around you team by setting up links on the Wiki for example:

  • The Definitive Guide to Maven: a free book from Sonatype, available both as HTML and PDF. Good for the beginner, and sometimes as a reference. If you don't know where to start, start here.

  • The plugin list: a comprehensive list to the official plugins, with links to each project page and JIRA subsection. Most of the core functionality is actually performed by one of these plugins, and you can learn a lot by studying things like the resources plugin documentation.

  • The POM reference: for the slightly more advanced user. Every element in the POM is explained. Don't forget to specify the XSD information in your POM file to get the most help from your XML editor.

These are 3 great links for maven documentation. I must admit I didn't even know about the first 2 and the 3 is great to have a link to as well. By getting a better understanding of how maven wants things to work, it is easier to work with it instead of against it.
Read More
Posted in | No comments

Wednesday, 1 April 2009

jQuery - Simplified interaction with JavaScript

Posted on 10:44 by Unknown
I hate JavaScript. Let there be no confusion about that. Every line of JavaScript adds another point of failure to my project. Even if it works in all browsers today, one can never be sure about tomorrow. I use it very sparingly.

Today, one of my coworkers did a presentation on jQuery. He did a great job of presenting it. What really impressed me was the simplicity and of course the cross-browser support. The supported browsers as of today are: IE 6.0+, FF 2+, Safari 3.0+, Opera 9.0+, Chrome. While we still have some IE 5.0 customers out there, this is a confidence inspiring list.

The basic usage is simple enough:
  1. Select one or more elements
  2. Perform some action on said elements.
Selecting elements is done with CSS selectors wrapped in a $() like $('input[type=text]') which will find all text fields. Of course, there can be $('#id') and $('.class') as well as more complex $('div div') which gives nested divs.

Actions can be things like toggle, load and hover. Toggle changes from hidden to shown and back again. Load does an AJAX call and hover is an event handler for a mouse hover. There are lots of actions that can be performed and they are documented as well.

His demo mostly focused on creating a JavaScript drop down list using jQuery. He did a good job of showing the benefits without going overboard. One of the great points was that by moving the javascript out of the tags, the web page would work quite well with JavaScript disabled. Of course there are other issues but this is a great one to overcome as it is important for customers to have a positive experience even in a non-JavaScript browser. Looking at the site it looks like there are also some interesting form validation options as well.

Also of note, it is supported natively by Liferay.

Definitely worth a look.
Read More
Posted in browser, javascript, jquery | No comments

Tuesday, 31 March 2009

Creating a watermark in Abiword

Posted on 18:34 by Unknown
I have recently installed Xubuntu and am giving it a try at home. One of the children was using Abiword to do a paper and wanted a "watermark" like Microsoft Word has. Using new or different software is always frustrating. For example, moving to Word 2007 was most frustrating.

Unfortunately, there is no watermark in Abiword. Instead, it is called a "Page Background" which is found under the "Format" menu. Arguably, calling it a watermark is not correct but it is what we are used to calling the background image. Doing a Google search for "abiword watermark" didn't find anything useful. Hopefully this simple posting will make it easier for the next guy.
Read More
Posted in abiword, page background, watermrk | No comments

Thursday, 8 January 2009

Code Reviews

Posted on 09:59 by Unknown
There is an interesting article on code reviews: Running an Effective Code Review
clipped from www.cio.com

Running an Effective Code Review


Code reviews can be a frustrating waste of time, but they can be a worthwhile experience that contributes to team-building, improves the software, and oh yeah... is also fun.

 blog it
Read More
Posted in | No comments

Wednesday, 3 December 2008

Adding support for decompiling class files in a jar file in emacs

Posted on 12:33 by Unknown
This simple EMACS hook checks for CAFEBABE at the beginning of a file extracted from the an archive (jar, war, etc) and decompiles it. Requries decompile.el and JDEE.
Thanks for decompile.el. It is great.

(add-hook
'archive-extract-hooks
(lambda ()
(cond ((string-match "\312\376\272\276" ;;CAFEBABE
(buffer-substring-no-properties 1 5))
(jdc-buffer)))))
Read More
Posted in | No comments

Tuesday, 11 November 2008

Paul's Time Sink | Force emacs to open files in unix mode

Posted on 12:54 by Unknown
I found this over at Paul's Time Sink. Thanks Paul.

Paul's Time Sink | Force emacs to open files in unix mode: "believe that emacs by default will use the line endings for current system when opening and saving text files. This may cause a problem when you want to force the file to be saved with different line endings. I found this series of commands to force the file to be opened in unix mode:

C-x RET c unix RET C-x C-f

You can replace unix with dos, if you want to use those types of line endings."
Read More
Posted in | No comments

Wednesday, 15 October 2008

The 7 CSS Hacks that we should use

Posted on 08:05 by Unknown
Over at DZone I cam across this atricle:
The 7 CSS Hacks that we should use: "If you are trying to do pixel-perfect cross-browser CSS layout, then you have probably ran into problems with IE . I am going to highlight the top 7 CSS hacks that we often use to have pixel perfect design."


As a web developer, our site supports Mozilla/Firefox and Internet Explorer. I do not know how many times I have suggested we drop IE support, for just these sorts of issues. Oh well, I guess I can look on it as job security. Every time there is a new IE release, we have to redo the website to support the new "standard"
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Hexlify in Clojure
    Looking at this gist , I have created functionality similar to EMACS hexlify-buffer. In EMACS, it reads a binary file and presents two views...
  • Clojure: lazy seq + database = bad
    In my work on topoged-hibernate I naively thought that it would be great to return a lazy-seq of the results of a query like: However, th...
  • Flex, Spring and BlazeDS: the full stack! (Part 1)
    I've decided that it is time for me to learn a new language and I have decided on Flex. This article looks like a good place to start. ...
  • Linux.com | GNU Emacs 22 finally released
    I have just recently switched from Emacs to Eclipse for my Java development work. I still use Emacs almost everyday I even have an Emacs r...
  • What have they done with com/sun/corba/se/connection/ORBSocketFactory?
    We are using Weblogic 8.1.4 and I am writing a monitoring program that will let me know if all the required EJBs, data sources and other res...
  • Chapter�16.�Portlet MVC Framework
    Spring Portlet MVC applies the same principles to portlet development as the the Spring Web MVC framework applies to servlet development. F...
  • LISP Cycles
    I admit it, I like LISP. There are a certain set of programming problems that it handles elegantly. I feel the same about AWK, BASH, SQL a...
  • Archiva startup error
    We started seeing this problem in Archiva: SQL Exception: An SQL data change is not permitted for a read-only connection, user or database. ...
  • Open Source Technical Support by OpenLogic
    This gets filed under the category of "Why didn't I think of this?". What an excellent business model. Take a free product a...
  • ASP.NET caching based on a cookie
    You have to use VaryByCustom parameter. Your OutputCache directive will look like this and you have declare the following method in which w...

Categories

  • 1.3.0
  • abiword
  • apache
  • archiva
  • browser
  • clojure
  • ClojureScript
  • derby
  • exception
  • java
  • javaone
  • javascript
  • jdk
  • jquery
  • lein
  • Liferay
  • page background
  • patterns
  • swank
  • watermrk

Blog Archive

  • ▼  2013 (3)
    • ▼  November (1)
      • Stupid Java Error: java.lang.NoClassDefFoundError:...
    • ►  July (1)
    • ►  May (1)
  • ►  2012 (5)
    • ►  December (3)
    • ►  February (1)
    • ►  January (1)
  • ►  2011 (5)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2010 (6)
    • ►  September (6)
  • ►  2009 (10)
    • ►  July (2)
    • ►  June (1)
    • ►  April (5)
    • ►  March (1)
    • ►  January (1)
  • ►  2008 (23)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  August (1)
    • ►  July (2)
    • ►  June (3)
    • ►  May (6)
    • ►  April (4)
    • ►  March (2)
    • ►  February (1)
    • ►  January (1)
  • ►  2007 (45)
    • ►  December (7)
    • ►  October (5)
    • ►  September (1)
    • ►  August (4)
    • ►  June (3)
    • ►  May (15)
    • ►  April (7)
    • ►  March (3)
Powered by Blogger.

About Me

Unknown
View my complete profile