Codedrop™ Weblog

Drop’n some code and other tech tidbits…
  • Home
  • Google Shared
  • About Me
  • Reference Links
Rss feed Subscribe

Entries for the ‘Programming’ Category

Tips for dealing with javac OutOfMemoryError

Jun.12, 2009 in Java, Programming Comments Off

When javac is compiling a large number of java source files, it may fail with java.lang.OutOfMemoryError:
The system is out of resources.Consult the following stack trace for details.java.lang.OutOfMemoryError: Java heap space
It’s no different than OutOfMemoryError in other java applications. When you run javac in Sun JDK, it’s invoking com.sun.tools.javac.main.Main located in %JAVA_HOME%\lib\tools.jar.
If you are compiling with [...]

Tags: Java, Memory

IE Developer Toolbar, Firebug like tools for IE

Apr.03, 2009 in Programming, Windows Comments Off

You don’t have to be much of a Techy to know about the power Firebug brings to the Firefox browser.  I’ve often been frustrated but the lack thereof of such support in IE… until now.  The Internet Explorer (IE) Developer Toolbar has been around for quite some time now, but in my ignorance I had [...]

Tags: firebug, ie, toolbar

jQuery Tooltips

Mar.11, 2009 in Programming, Ruby, jQuery Comments Off

If your looking for a solid plugin library for doing tooltips jQuery style, check out cluetip.  This library is based on the original jTip library created by Codey Lindley.  Cluetip offers a solid set of customizable options and the dynamic positioning logic that is available through some of the reference libraries solves many of the [...]

Tags: jQuery

Dynamic fields in YAML file.

Jan.26, 2009 in Rails Comments Off

Recently I had the need to setup environment specific .yml files for email configuration.  Normally this goes off without a hitch, however in my case I had the additional requirement of being able to dynamically substitute values in the yml file at runtime.   I thought it would be nice to allow configuration of email to, [...]

Tags: Rails, Ruby

Rails rake tests randomly generate ORA-12520 errors.

Jan.05, 2009 in Rails Comments Off

If you find your application randomly throwing “ORA-12520: TNS:listener could not find available handler for requested type of server” errors, then try to increase the number of available processes that you have allocated to your Oracle instance.
Logon to
Oracle using sys as sysdba and execute the following:
ALTER SYSTEM SET PROCESSES=150 SCOPE=SPFILE;
After changing the PROCESSES parameter restart [...]

Tags: Rails

How to install a specific software version using Mac Ports

Dec.08, 2008 in Mac OSX, Ruby Comments Off

MacPorts is the preferred way of installing, managing, and upgrading ports of some the software I have on my Mac.  Unfortunately mac ports does not let you specify a version.  To mediate this you can create a local repository that is checked out to a specific version and install from there.
This example is how to [...]

Tags: Mac OSX

Changing Header Class (CSS) in JSF Datatables

May.05, 2008 in JSF, Java Comments Off

Something I have always found annoying about JSF datatables is the limitation to only apply one header class style to the entire table. This is un-functional for datatables that would display monetary amount or other data that is typically right aligned whereas descriptive columns are left aligned. The table doesn’t look very nice [...]

Tags: CSS, JSF

Updating Bitmasks Using Simple SQL Statement

Jun.13, 2007 in General, Programming Comments Off

An often useful technique for storing options is to use bit masking to identify if a particular option is enabled or disabled. A contrived example (and this is a poor example!) might be a ATM that allows control of what options are available to the user.
Eg.
1 – Chequing
2 – Savings
4 – Credit Card
8 [...]

Intercepting JUnit Assertion Error

May.03, 2007 in Java Comments Off

There have been times where I’ve had the need to perform some custom code when a JUnit test failure occurs. A simple way to handle this would be to catch Throwable do you logic and then re-throw the exception.
Not the most elegant of solutions.. but works nonetheless. Heres an example using the selenium rc [...]

Intellij Ruby Plugin Released

Feb.04, 2007 in Programming Comments Off

The first beta of the ruby plugin is now available for IntelliJ 6.0+.  IntelliJ has proven to be a fabulous Java IDE and continues to be one of the top rated IDE’s on the market.  Adding support for Ruby (and future talk of Python) will go a long way in extending the IDE’s reach.  As [...]

« Previous Page — « previous entries  
next entries » — Next Page »
  • Tag Cloud

    Blackberry Capistrano certificate Configuration CSS DNS-323 DOS Dreamhost EMS Fedora firebug GMail Google Grails Groovy ie Java jQuery JSF Linux Mac Mac OSX MacPorts Memory Migrations Oracle PERL Rails Ruby Safari SOAP WebService Spring SSL Tibco Time Machine toolbar Trac UI video sony m2ts vlc VMWare Windows XMLDB

    WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • Blogroll

    • A List Apart
    • Anassina
    • Just Be Kuz
    • Mashable
    • Poker Dreams Online
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Calendar

    September 2010
    M T W T F S S
    « May    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  
  • Categories

    • Databases (5)
      • Oracle (4)
    • Dreamhost (1)
    • General (25)
    • Google (1)
    • Mobile (1)
    • OS (17)
      • Linux (11)
      • Mac OSX (5)
      • Windows (2)
    • Programming (26)
      • Build Automation (3)
      • Grails (1)
      • Java (8)
      • JBoss (1)
      • jQuery (1)
      • JSF (1)
      • MySQL (1)
      • PERL (1)
      • Rails (4)
      • Ruby (3)
    • Security (1)
    • Spring (1)
    • Tibco (4)
  • Recent Posts

    • How to address TIBCO (Send HTTP Request) SSL Certificate Problems
    • Grails and Oracle XMLDB (XMLType)
    • Getting ‘YYYYMMDDhhmmss’ date format in a MS Windows script… yuck!
    • Mysql, Rmagick on Snow Leopard, Homebrew to the rescue!
    • Use your DNS-323 for Time Machine backups.


Green Web Hosting! This site hosted by DreamHost.

© 2007 Codedrop™ Weblog - SafiTech Theme

Full RSS - Comments RSS

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.