Ramblings of a Coder's Mind

Got Tech? Will Hack.

WildFly: Server Side Variables/JNDI Custom Resources

As you probably know, Oracle stopped development of Glassfish’s commercial version and in doing so, prompted others to move. News of Glassfish being dead is greatly exaggerated according to some but myself being one who was already not happy with Glassfish’s Open Source version, steps were taken to move to WildFly. So far, the move has been well received in the team except for web based GUI administration panel which isn’t complete. Reliability of the admin panel is higher than Glassfish’s counterpart though and what WildFly’s web admin panel lacks, it’s CLI and Swing based GUI admin panel make up for allowing script writers (such as myself) to come up with automated ways to get things done.

A while back we discussed how you could use JNDI custom resources on Glassfish to set environment variables. Migration for our team meant information setup as environment variables need to be setup again.

Read on →

Atlassian Bamboo: Downloading Code from Atlassian Stash

The Atlassian suite of tools are a good way to have your organization’s workflow administered. If you’re using Atlassian Stash to manage your source code and are attempting to get Atlassian Bamboo to download code off Stash’s copy of git, the answer isn’t quite straight forward.

Having experience with Atlassian’s tools for over a year, one gets used to excellent integration wrapped up with beautiful UI but when it comes to setting up flawless CI with Bamboo, you’re let down (either that or my integration is non-standard; don’t see how).

Read on →

Eclipse Plugin Development: Project Icon Overlay

If you’re trying to create a Custom Project in Eclipse, you’ll eventually come to read a beautiful blog post over at Hidden Clause that documents quite well how to overlay your icon over Eclipse’s default folder icon to get the icon of your choice.

If you’re default project is an extension of an already existing project (I, for example, wanted a custom Java Project type so I extended Eclipse’s New Java project wizard to get desired effect), the default nature added is that of Java meaning Eclipse adds it’s icon and not the icon you’ve set up. The issue

Read on →

Eclipse Plugin Development: Attaching Sources

As a developer, I like to look at the source code for the libraries I use in order to understand if what I am doing is the best way to implement it or not. Though Eclipse, by default, comes with features to develop plugins, it doesn’t come with the source code for this. Getting the source is a simple, 3 step process!

  • Help > Install new Software

  • Work with ‘The Eclipse Project Updates’ (not the main site!)

  • Install the following items

    • Eclipse RCP Plug-in Developer Resources

    • Eclipse PDE Plug-in Developer

      Read on →

Windows 7: Unable to delete files - "Access is denied" error messages

Windows, at times, denies you the right to delete a file or a folder. I’ve noticed this happening especially when you copy the contents of the folder to empty it and later try to delete it. At this moment, you’ve got to ask yourself if you’ve got the necessary permissions to do so.

If you’re like many, you have admin privileges to your machine but you still can’t delete it. This is because Windows’ permissions table for this directory is broken and as a result, is denying you access. You can right click the folder, go to properties and look

Read on →

WebDevelopment Gotcha: Browsers with Adblock Plus!

Earlier this week, I was maintaining a web-application when I noticed something weird. Some images were not shown on my browser at times. The application dynamically displayed images based on certain conditions using java script and every once in a while, an image would disappear. This only happened to me and would occur on Safari and Chrome.

Looking at the dev console told me that the browser couldn’t set new images to the img tag on the page since it “disappeared”. Investigation showed that the image that the tag disappeared after the image tag tried to show “ad.gif”.

I kept

Read on →

Glassfish JNDI Custom Resource: Reading Primitives

Custom resources allow you to store server side values that are available to different J2EE applications on your server. This is an extremely useful feature that one should use.

Head on over to the Glassfish admin panel (should be at localhost:4848 for most of you), go to Resources > JNDI > Custom Resources and create a new entry which looks like the following:

Glassfish Custom Resource

It is important to note here that if the name isn’t “value” (exactly), you will not be able to read this value via a InitialContext lookup in your Java code. You

Read on →

Google I/O 2013 Easter Eggs

Most people don’t know about this but if you head on over to the Google I/O, their 2013 event website shows big I/O images that you can click and it reads out the letters ‘I’ and ‘O’. Enter the right code and you get nice effects. Here’s a list of codes you can try out.

  • Cat Mode: IIIOOIII

  • Space Mode: OOIOIOIO (doesn’t work on Android)

  • Pong Mode: IOOOOOOI

  • Bacon Mode: IOOIOOOO

  • Simone Mode: IIOIOOII

  • Eightbit Mode: OIOIOOII

  • Synth Mode: IOOOIOOO

  • Song Mode: IIOIIOII

  • ASCII Mode: OIIIIIII

  • Bowling Mode:

    Read on →

TerraCopy: Copying files the way it's meant to be copied

TeraCopy is an amazing tool for Windows which allows users to queue up copy requests, pause them, re-order them and change copy file lists at run time. It’s got a lot of power and great integration with Windows. It’s a tool which I highly recommend.

Go check it out! I bet that you’ll love it so much that you wouldn’t mind paying $20 for it! ;)