Update CentOS 6.3 openssl Offline

Download the new rpm packages from the CentOS website for openssl and openssl-devel.

Copy these onto the offline system that needs to be upgraded.

Make a new folder that will be set this up as a repository. I used /home/user/repo

make a new repository file under /etc/yum.repos.d/


name=CentOS Local

Save this as /etc/yum.repos.d/centoslocal.repo

copy the new rpm files into /home/user/repo

In the /home/user/repo directory run:

createrepo .

Updating yum now should detect the new repo and realize that there is an update for the openssl packages. Accept the changes and they should be applied automatically and successfully.

yum update
Posted in Uncategorised | Leave a comment

Notepad++: Associate code highlighting with new file type

Adding a new file type to an existing code highlighting style is very straightforward in Notepad++. I wanted the velocity template extension “.vm” to be associated with the html style markup rather than applying it manually each time (I know, still using Apache Velocity in 2016). This is very easy and straightforward.

Under “Settings > Style Configurator” from the toolbar HTML can be selected from the language selection box then “vm” just needs to be added to the “User ext:” Text box.

Now any .vm file will open with the HTML code highlighting automatically.



Posted in java, Note To Self, Programming, Uncategorised, Web Design | Leave a comment

Ubuntu 15.04 and JavaFX Video

Ubuntu 15.04 is not on the supported list for Java but JavaFX video does seem to work after installing a scattering of packages. Guide written with 64bit Xubuntu and Java 1.8.0_60-b27

For JavaFX to work:

You must install GLIB 2.28 in order to run JavaFX Media.

You must install the following in order to support AAC audio, MP3 audio, H.264 video, and HTTP Live Streaming:

  • libavcodec53 and libavformat53 on Ubuntu Linux 12.04 or equivalent.


In this order, open and install these with the Ubuntu package manager: Continue reading

Posted in java, linux, Note To Self, Programming | Tagged , , , , , | Leave a comment

Delete file securely with Ubuntu Server

Recently decided to sell one of my rack servers and replace it with a smaller and house friendly HP Microserver.

To delete the network share data I used the following command:

shred --remove --iterations=7 filename.xyz

This command will overwrite the original file with garbage data then with the remove parameter it will also delete it.

Posted in linux, Note To Self | Tagged , , , | Leave a comment

Re-Enable your locked screen music control after android upgrade

Have you recently upgraded your android phone (5.0.2) only to find that the really useful buttons that you use to skip tracks no longer appears on your locked screen?

Well here is how to get that menu back:

  • Navigate to the settings app.
  • Select sound and notification.
  • Select when device is locked
  • To get your media player buttons back set this to “Hide Sensitive Notification Content”.

This controls the information the locked screen will show. A potentially useful security feature but was implemented without warning  hiding some functionality.

Now when your phone locks and you are playing music you should have the locked screen media player controls back.

Posted in Android, Tutorial | Tagged , , , , | Leave a comment

Switching DNS Server

Could you benefit from switching DNS Server?

A DNS (Domain Name System) server is used to lookup the address you type into the address bar and link it to an IP address of a system. The speeds at which the pages are delivered to you from different servers are varied. According the the namebench tool I could gain 34% by switching to google’s DNS server.

Here is a quick guide to finding out on a Ubuntu system.
Continue reading

Posted in linux, Tutorial | Tagged , , , , | Leave a comment

Mr Green’s Greenhouse Waterer


Over the past couple of months I’ve been tinkering, now and then, with an automatic greenhouse waterer for my dad. Hopefully in time for summer. I “think” I have a working prototype. (I’ll add to this post and clean up the code when the first prototype is set-up in the greenhouse and working).


Mini Menu for Customization.
Settings saved between boots (EEPROM).
Displays Temperature/Humidity.
Turns off the display to save a little power.
Gravity fed (or hosepipe water source I think)
Short Parts List and cheapish. Continue reading

Posted in arduino, Programming, Tutorial | Tagged , , , | 2 Comments