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

MaxPermSize and how it relates to the overall heap

Jul.16, 2009 in Java, Programming Comments Off

Grails application throwing OutOfMemory error and PermGen space was exceeeded errors… Looks like grails applications require a fairly large permgen space… Here’s a useful  article on how to address this. Tweet This Post

Tags: Java, Memory

Returning raw XML string from Oracle XDB within Groovy / Grails

Jul.13, 2009 in Databases, Java, Oracle Comments Off

Here’s a quick solution for trying to extract the raw xml string from an Oracle XDB database when working with Grails. After an initial attempt to hardcode a hibernate query to return the raw sql using .getStringVal() as follows: SELECT x.id, x.xmlData xmldata.getStringVal(), lines.* FROM xml_requests x XMLTable(‘declare default element namespace “http://www.foo.com/fooservice”; for $i in [...]

Tags: Grails, Groovy, Oracle, XMLDB

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 [...]

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 [...]

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 [...]

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 if the [...]

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 – [...]

« 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

    February 2012
    M T W T F S S
    « Jan    
     12345
    6789101112
    13141516171819
    20212223242526
    272829  
  • Tags

    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
  • Categories

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

    • from your old 8mm video to TinyUDF to mp4
    • Use Java to disable certificate validation in an HTTPS Connection
    • Enable ssh on your D-LINK DNS-323
    • Crontab Reference
    • How to address TIBCO (Send HTTP Request) SSL Certificate Problems


Green Web Hosting! This site hosted by DreamHost.

© 2007 Codedrop™ Weblog - SafiTech Theme

Full RSS - Comments RSS

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