Search

I'll be at


My Twitter

    Subscribe

    Recent entries

    No recent entries.

    Archives by subject

    Archives by date

    Sun Mon Tue Wed Thu Fri Sat
        1 2 3 4 5
    6 7 8 9 10 11 12
    13 14 15 16 17 18 19
    20 21 22 23 24 25 26
    27 28 29 30 31    
    7
    Apr

    Online tool for creating Apache .htaccess files

    Creating/modifiy the Apache webserver .htaccess files by hand can be a bit of a pain at times.

    Today I came across a website that lets one generate an .htaccess file using a nice, Ajax-y web interface.

    For example, to setup authentication, one has to create a user. You can do that by simply filling out a simple form like:

    Create .htaccess file

    » Continue reading "Online tool for creating Apache .htaccess files"

    10
    Mar

    Setting JVM options on JBoss for ColdFusion 8 debugging

    Today I wanted to give ColdFusion 8 debugging a try.

    So, I started followed the instructions on how to setup the enviornment for debugging. After installing ColdFusion 8 extensions for Eclipse, I went to enable debugger in ColdFusion Administrator. The CF administrator instructs that:

    You must specify this debugger port in the JVM settings of your application server, for example: -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005, and restart the server.

    If I was using JRun, I know that these options can be added in the jvm.config file.

    But as I use JBoss, it took me little bit to figure out where I need to make these changes.

    » Continue reading "Setting JVM options on JBoss for ColdFusion 8 debugging"

    26
    Feb

    A great utility to test Lucene indexes

    If you work with Lucene, then you know that you need to write your own GUI for testing the Lucene index. This can be a little annoying as the purpose of using Lucene is to quickly index content and retrieve it. Writing a GUI to test if Lucene is indexing the content correctly detracts from the purpose of using Lucene.

    I was really kicked to find this nifty little utility called "Luke" that provides a GUI for testing Lucene indexes that have been created. I've been using it for a about an hour now, and simply love it.

    Luke can be downloaded from this site.

    26
    Feb

    Flex Builder alternative -- IntellJ IDEA 7.0.3

    The next version of IntelliJ IDEA-- 7.0.3 -- will have built-in support for Flex development.

    Among other things, it will support:

    • Smart code completion for MXML and AS files, with cross-resolution of code symbols between them, even inside of mx:Script blocks and attribute values
    • Automatic code formatting, highlighting and styling
    • On-the-fly code validation with instant quick-fixes
    • Search for perfomance bottlenecks, bad code practices
    • Refactoring

    Here is a tutorial using IntelliJ IDEAfor Flex development. You'll need to sign up for the early release program of JetBrains to get the beta of IDEA7.0.3.

    » Continue reading "Flex Builder alternative -- IntellJ IDEA 7.0.3"

    17
    Sep

    Setting Current JDK programmatically on Mac

    A few days back I was looking for a way to change the CurrentJDK symbolic link on my Mac. I had found this nice script somewhere (don't quite remember where). But is is very useful.

    #!/bin/sh

    cd /System/Library/Frameworks/JavaVM.framework/Versions

    CURJDK="`readlink CurrentJDK`"
    echo Current JDK version: $CURJDK

    if [ "$1" == "" ]; then
    echo Installed versions:
    ls
    exit
    fi

    VERFOUND=`ls | grep $1 | head -n 1`

    if [ "$VERFOUND" != "$1" ]; then
    BASE="`basename $0`"
    echo Error: Could not change JDK-- version $1 not installed!
    echo Run $BASE without arguments to see a list of installed versions.
    exit 127
    fi

    echo You must now enter your Mac OS X password to change the JDK.
    sudo ln -fhsv $1 CurrentJDK

    Save it as a file name of your choice. I saved it as "SetJDK.sh". Give it execute permissions, and run the script.

    4
    Sep

    Finding and configuring JAVA_HOME on Mac OSX

    Just so that I don't forget...

    While installing JBoss, I found that I need to setup my JAVA_HOME variable correctly.

    After checking a couple of sites, I found the following to be a good way to figure out and setup JAVA_HOME variable on Mac OSX.

    In a Terminal window, type

    which java

    This pointed to "/usr/bin/java", which was a symbolic link to "/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Commands/java". This in turn was a symbolic link to "/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2".

    So my JAVA_HOME was pointing to "/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home".

    In order to change the JAVA_HOME variable I found a very nice utility called "RCEnvironment" that let me setup all kind of environment variables, including JAVA_HOME, very nicely and easily.

    Once I added a JAVA_HOME variable (and pointed it to Java 5 home using RCEnviornment, I logged out and back in again. My JAVA_HOME was setup as I wanted.

    24
    Aug

    Creating RSS feed for a page with no RSS feed

    It is not often that I get excited about technology. Let me rephrase that. I get excited about technologies all the time. It is not often that I get excited enough by them to keep using them again and again.

    While researching for my presentation on "Working with Web APIs", I started working with dapper.net to create an RSS feed for a page on a website that did not provide an RSS feed. And there a gazillion such pages on the internet.

    And what can I say. Dapper rocks!

    » Continue reading "Creating RSS feed for a page with no RSS feed"

    15
    Feb

    TinyMCE issue with Skype plugin in Firefox

    I use TinyMCE as the HTML editor for one of the projects I work on.

    While using the TinyMCE editor today I found that the stylesheet drop-down did not list any styles in Firefox. The styles were showing up correctly in IE.

    Whenever I face such a situation (where tested Javascript code works in IE and not in Firefox), my first reaction is to disable all Firefox plugins and test again.

    I disabled all the plugins. And TinyMCE styles worked as expected!

    After a bit of googling, I found that it is the Skype plugin for Firefox that causes issues with the stylesheet drop-down in TinyMCE.

    I now officially have a love-hate relationship with Firefox.

    2
    Feb

    Hello Ubuntu! I'm going easy on Vista

    Today I had an interesting conversation with colleagues and friends about Vista and who all amongst us wanted to upgrade our home computers to Vista.

    All of them said they were going to hold off upgrading their home machines. There seemed to be a few valid reasons:

    » Continue reading "Hello Ubuntu! I'm going easy on Vista"

    20
    Sep

    ColdFusionMX Syntax Files for PSPad (Again!)

    Apologies for the repeat posting, but the earlier link to the syntax file was not working. The webserver was not liking sending back .ini files (which is the extension of the syntax file).

    I've uploaded the syntax file again with the original entry. This time it is a zipped file. You'd need to unzip this into the {PSPad install path}/syntax directory.

    Thanks to Ken Auenson for pointing this out.

    Indy

    More Entries