Ramblings of a Coder's Mind

Got Tech? Will Hack.

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! ;)

Converting FAT32 disks to NTFS

There used to be a slightly long way to do this earlier but I found a simple one line command to do it. It is probably old but it’s one I didn’t know of.

convert L: /fs:NTFS

This converts L: to NTFS without removing any data from the drive. This process, all in all, requires less than 3 seconds.

File list generator v1.3

I noticed that my old file list generator page didn’t have a valid link any more. Since I’d go through and upload it again, I guess it would be worth it to add some minor documentation and make the path variable optional as well :)

Read on →