Programming tutorials Archive

  • Arduino – Redefining the TV Remote

    Arduino – Redefining the TV Remote

    We use them every day, but has no one got bored of pressing buttons on a stick, it’s far too much effort pressing buttons! Surely there are better ways to control a device? After doing some work with my Nikon camera using IR to control...

    Project info

  • Oracle: Delete all rows from all tables etc…

    Oracle: Delete all rows from all tables etc…

    Quick method to do multiple actions across multiple tables. Simply spool a script with your commands in for each table – this way you can avoid dropping your tables or user and still keep all your schema structure. So for instance to delete all data...

    Project info

  • Oracle: Update From equivalent

    Oracle: Update From equivalent

    Quick note on how to update data in a series of joined tables using a subquery in the UPDATE statement in Oracle, kind of like the UPDATE FROM in SqlServer. First of all check out the above diagram, I’ve stolen it from this link: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/update_statement.htm...

    Project info

  • Arduino – Controlling the Robot Arm

    Arduino – Controlling the Robot Arm

    So the arm is wired into Arduino as per the previous post, Arduino – Modifying a Robot Arm and hopefully this has worked. In this next part I alter the Arduino sketch slightly and write the first Processing sketch to test control of the arm...

    Project info

  • Using Processing to Send Values using the Serial Port to Arduino

    Using Processing to Send Values using the Serial Port to Arduino

    In this write-up, I’ll show how to create a value in Processing and then send this value over the serial port to the Arduino. In the example I’m setting values of LEDs making them brighter or dimmed but this example can be extended to control...

    Project info

  • Arduino + Processing – 3D Sensor Data Visualisation

    Arduino + Processing – 3D Sensor Data Visualisation

    So following on from my previous posts about visualising sensor data in Processing, I’m now looking at drawing 3D representations of the data recorded from the Sharp IR sensor – although can be any kind of range finder. I started by rigging 2 servos, one...

    Project info

  • Changing the HTTP port Oracle uses

    Changing the HTTP port Oracle uses

    In a production environment your database server will be completely separate from your application server or at least it should be. So in theory you should never really need to change this setting unless its for your development environment. In my case I needed to...

    Project info

  • How to Setup Debugging in Eclipse for JBoss

    How to Setup Debugging in Eclipse for JBoss

    This is really useful – only recently found out how to do this and the benefit is enormous. Basically by a small configuration on JBoss’s startup configuration and a setting in Eclipse we can toggle breakpoints in our java code so that we can see...

    Project info

  • Hot Deploy Java code/ ATG components on JBoss

    Hot Deploy Java code/ ATG components on JBoss

    Pretty simple, on a production environment you start JBoss with its run file and a series of commands, which then picks up your EAR file from the deployment directory. Which is a fine process to go through, but what if you’re developing code and you...

    Project info

  • Setting Database Connections in JBoss/ ATG

    Setting Database Connections in JBoss/ ATG

    ATG communicates to a database via JBoss via a dynamo server setup or in your home/localconfig directory if you’re not using specific dynamo servers. In this setup you specify the JNDI connection name which will then refer to an XML file which makes up part...

    Project info