Technology

How to fix Oracle TNS Listener Issues

 A few times over the course of working with Oracle, I’ve come across environments which had issues making connections to databases set up across a network. These were failing with the error “ORA-12514: No TNS Listener”. I eventually found that to fix this, you need to follow the steps below: Install the Oracle Data Access Components (ODAC) on the machine attempting to make the connection Navigate to C:\app\<username>\product\<oracle_version>\client_1\Network\Admin\Sample (note that this… Read More »How to fix Oracle TNS Listener Issues

Search file contents in UNIX

I found myself having to search through the contents of a bunch of files in Unix the other day, and wanted to find a command to do it for me. Cue some Googling, and I found exactly what I was looking for here. find . -name “*” -exec grep -l “somestring” {} \;

Badly Formed Maven Project Error

I recently had an error loading a Java project in Netbeans – whenever I selected it, I’d get this: How to fix After some Googling, the fix appears to be commenting out the <parent> tag from the project’s pom.xml file. <!–<parent> <groupId>foo</groupId> <artifactId>bar</artifactId> <version>1.0.0</version> </parent>–> File this under “I have no idea how, but it fixes the problem”.

Click it Twice, Shame On You

We recently had an interesting discussion at work about our UI paradigms. Let’s assume we have an information management system which allows you to create, manipulate and link objects which represent, say, Persons and Dogs. Now assume that through a wizard, we allow a user to link a Person to a Dog as an “Owner”. Lastly, let’s imagine a scenario in which the Person is already linked to a Dog,… Read More »Click it Twice, Shame On You

But would they be neighbours like this?

The “Doors to Heaven and Hell” riddle. It’s an oldie and a goodie. I’m sure everyone’s pretty familiar with it, but in case you’re not here’s a quick recap: Bad news, you’ve just died. You find yourself in a nondescript hallway with two identical doors, each guarded by a man. You realise you’re holding a scrap of paper. It reads: 1. One of these doors leads to Heaven, one leads… Read More »But would they be neighbours like this?

Debugging .NET 2.0 apps in Visual Studio 2010

Some guys at work ran into an interesting problem yesterday: since upgrading to VS2010, they found none of their breakpoints were being hit when debugging their apps. Without giving too much away, my work consists of writing .NET apps which run on top of a custom platform application we’ve developed. These apps are compiled to .NET 2.0. Debugging typically involves setting our platform app as the startup program to debug… Read More »Debugging .NET 2.0 apps in Visual Studio 2010