Liferay Mobile Support

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

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

Wednesday, 27 August 2008

cygwin makes like better

Posted on 11:52 by Unknown
I use cygwin a lot and emacs a lot. As I was recovering my machine, I came across this great list of useful ideas which includes:


Useful Tidbits

1. You may want to disable your virus checker when running the Cygwin installer. Don't forget to re-enable it when you're finished installing.
2. If you are planning on installing CERN's Root, I recommend going to the 3.4.4.3 version. Root 5.14 (or later?) should be immediately compatible with this release. You may have to build the earlier versions from sources.
3. Cygwin doesn't like it if there is a space in your Windows username. If you have a space, do the following after installing Cygwin:
* Edit /etc/passwd (using either emacs, vi, or even Windows Wordpad)
* Find your entry (it will start with your windows username)
* Take the space out of your username (1st entry) and your home directory (2nd to last entry).
* Quit all Cygwin
* Use Windows Explorer to rename your home directory (C:\cygwin\home\cplager in my case)
4. Cygwin doesn't like spaces in directories. To have access to my program files, I created a 'mount point':
cygwin> mount -f -s -b "c:/Program Files" "/mount/programfiles"
You only need to run this command once.
5. To make access easier to my documents and the decktop, I made the following soft links in my home directory
cygwin> ln -s 'C:/Documents and Settings/cplager/Desktop' Desktop
cygwin> ln -s 'C:/Documents and Settings/cplager/My Documents' Documents


I also like to use rxvt instead of the standard console. The command line looks like this: C:\cygwin\bin\rxvt.exe -sl 1500 -fn "Lucida Console-12" -bg black -fg grey -sr -e bash --login -i
Read More
Posted in | No comments

Friday, 25 July 2008

Color Design Blog / As Seen By The Color Blind by COLOURlovers

Posted on 13:04 by Unknown
The Americans with Disabilities Act helps ensure that web sites are accessible to people with special needs. Having a friend and co-worker who is deaf has made me more aware of the issues involved. For example, a deaf user will need closed-captions or transcripts of video.
Most of the requirements are not difficult to implement, just hard to remember and to test. We are seeking tools that automate testing to help us identify problems.

I have another friend who is color blind and while it is not a disability, software developers need to be aware of some of the problems that can be caused by color blind users.

A common design is to use color to distinguish a good state versus an alert state. The obvious choice is to use green for a happy state and red to show some error. While doing this, keep in mind that some percentage of your users will not be able to distinguish between red and green. The simple solution is to change something else in the text such as a little stop sign icon.

Anyway, checkout this page for some ideas on being more aware of your color blind users.

Color Design Blog / As Seen By The Color Blind by COLOURlovers: "In the U.S. 7% of the male population – or about 10.5 million men – and 0.4% of the female population either cannot distinguish red from green, or see red and green differently. Color blindness affects a significant amount of the population"
Read More
Posted in | No comments

Tuesday, 15 July 2008

Quote Details: Rick Cook: Programming today is a... - The Quotations Page

Posted on 09:56 by Unknown
Of course this does not apply to my users all of whom are most ingenious.

Quote Details: Rick Cook: Programming today is a... - The Quotations Page: "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Rick Cook, The Wizardry Compiled"
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