+44 7881601035 Skype: dangibas

HYGEN Blog

Web Design • Web Development • Project Management • Travel

HYGEN Blog HomeHome » Open Source

HYGEN Blog Posts In The ‘Open Source’ Category

Drupal webform_viewreference Module Tweek

Sunday, August 28th, 2011

The Drupal module webform view reference according to the modules page adds a webform component where you could use a View as a datasource for your normal webform select component. Instead of hardcoding all the selectable values in the component values field you just select a reference to a View similar to the CCK nodereference. The selectlist/radiobuttons/checkbox then automatically gets filled with all the nodes from the View.

Read the rest of this entry »

Android Emulator: invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe

Friday, August 5th, 2011

Android emulator error

Android emulator error

If you have just installed the Android SDK and want to run the Android emulator on Windows you may get this error. Spoiler: Yes it is due to being on Windows!

Read the rest of this entry »

PHP: Alternative Function To gzdecode($string)

Saturday, April 16th, 2011

PHP - decode / decompress GZIP data

PHP - decode / decompress GZIP data


If you are deploying code to a Linux box that doesn’t have ZLib installed / configured then here is an alternative way of decoding GZipped data.

Read the rest of this entry »

Drupal Latest Members Module Updated

Tuesday, February 8th, 2011

Drupal Latest Members Module In Action

Drupal Latest Members Module In Action

I’ve just closed a few open issues and added bug fixes for Drupal’s latest members module. Now version 6 is stable I’m going to start planning a build for Drupal 7! Latest Members provides a block that shows all of the new members photos (aka user pictures). The block settings can be changed so the admin can choose how many user pictures get displayed.

Read the rest of this entry »

Free Bet Returns Calculator

Friday, January 28th, 2011

Free bet returns calculator

Free bet returns calculator

This free bet returns calculator helps you calculate exactly what returns you can expect based on fractional odds and the bet stake placed… It’s written in simple JavaScript :)

Feel free to use the code freely and share it however you must add a link to this blog on the page!

Read the rest of this entry »

Microsoft TFS VS Subversion (SVN)

Monday, January 17th, 2011

TFS VS SVN

TFS VS SVN

The purpose of this document is aid choosing a source control management system (SCM). Two source control / version control systems will be compared and evaluated – Microsoft TFS and Subversion (SVN). A decision matrix is a widely used method for making unbiased decisions especially when choosing software products or systems.

Read the rest of this entry »

Ubuntu: Change default Shell to Bash

Thursday, January 13th, 2011

Bash is a POSIX shell with a number of extensions and was initially released on 7th June 1989!

I just had a strange experience with a 3rd party server running Ubuntu Linux 10.04.1 LTS using some weird featureless Shell. Normally you would expect to see Bash running by default in Ubuntu. I put up with it for a few sessions then realized it’s just too plain annoying…

Read the rest of this entry »

mysqldump: command to backup a database on another remote server

Thursday, August 12th, 2010

MySQL: mysqldump command tip!

MySQL: mysqldump command tip!

The mysqldump program is often used to getting a data dump of a local database for backup reasons or just for moving a database from one server to another. To make this even easier, mysqldump can accept a remote host as an arguement. This means that if you are logged into server A you can get a backup of server B immediatly without having to login to server B and then transfer the file manually vis FTP or SCP etc. Just use this command:

Read the rest of this entry »

Setcookie() Path Problems / Gotchas In PHP

Thursday, April 22nd, 2010

Cookie Problems With PHP?

Cookie Problems With PHP?

From php.net:

“The path on the server in which the cookie will be available on. If set to ‘/’, the cookie will be available within the entire domain. If set to ‘/foo/’, the cookie will only be available within the /foo/ directory and all sub-directories such as /foo/bar/ of domain. The default value is the current directory that the cookie is being set in.”
Read the rest of this entry »

Use JQuery To Automatically Set IFrame Height

Wednesday, April 21st, 2010

Auto Adjust IFrame's Height With JQuery

Auto Adjust IFrame's Height With JQuery

It’s a fairly common problem when developing web applications and using IFrames (inline frames) – the height of an IFrame can’t easily be determined and it’s essentially dynamic as it depends on content and CSS inside the framed page.

Read the rest of this entry »

Games