jQuery AJAX form submission

Once you’ve got your form validation handled, the question becomes what to do once your form data is valid. Performing an AJAX form submission is reasonably easy, thanks to the jQuery.ajax call: function signup(form) { jQuery("#alert").remove(); jQuery.ajax({ beforeSend: function() { jQuery.blockUI({ message: '<h1><img src="/static/ajax-loader.gif" /> Working…</h1>' }); }, complete: function() { jQuery.unblockUI(); }, type: "POST",… View Article

jQuery validation & integration with Bootstrap

Manual HTML form validation can be a time-consuming exercise in frustration, however the jQuery.validate makes it fast and painless, while still allowing powerful custom validation rules, and can easily be adapted to your CSS framework, in this case Bootstrap. A basic jQuery.validate setup is as simple as importing the js, adding validation tags to your… View Article

Rebuilding VirtualBox with missing VDI snapshots

VirtualBox is great, until you realise your missing the a key snapshot, or your original image and you only have the lastest snapshot on your backups. A while back I had the task of rebuilding a windows server for someone with only a recent snapshot. So I hope this offers you some technical support if… View Article

Asterisk VoIP Voice Quality

A lot of different things can cause voice quality issues. When using SIP a variety of things could be to blame, and not at all easy to track down. Causes of poor sip voice quality can be one of the following : 1. VoIP to Analogue convertor A loss of signal always occurs when you… View Article

USB backups under linux, changing dev names

When dealing with USB backups, I would traditionally just mount and rsync to the device, with a simple script like this : mount /dev/sdc1 /mnt rsync /home /mnt umount /dev This approach fails though when the device is unplugged while backups are working (the device name will change from /dev/sdc1 to /dev/sdd1), or if a… View Article

PostgreSQL and soap / xpath

Recently I have been working on integrating soap into our postgresql database. Its not something easily built into postgresql, so I wrote some plpgsql functions to achieve the same purpose. — Create a XML request for uploading CREATE OR REPLACE FUNCTION soap_test() RETURNS xml AS $$ DECLARE x xml; d text; BEGIN d = $A$… View Article

How to set Postgresql money type to use 3 decimal places in Windows

Linux Under Linux, type command in postgres database: set lc_monetary to ‘ar_BH.utf8’; ar_BH represents Arabic (Bahrain) locale, the above command change the locale monetary setting on-the-fly in postgresql database, then let do a test: select 34.888::text::money; You will get 34.888 with 3 decimal places money type. Tested in Postgresql 8.4.6. Windows However the above set… View Article

How to configure public folder in Exchange server 2007

1. Create a pulic folderopen Exchange Management Console=> Public Folder Management Console=> Default Public Folder=> New Public Folder(from right-click menu)then follow the wizard to create a public folder. Fox example give it a name Test, so the public folder path will be “Test”;2. Use the Exchange Management Shell to add public folder permissions for a… View Article

Enable or Disable UAC From Windows Command Line

This should apply to Windows 7 / VistaDisable UACC:WindowsSystem32cmd.exe /k %windir%System32reg.exe ADD HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem /v EnableLUA /t REG_DWORD /d 0 /fEnable UACC:WindowsSystem32cmd.exe /k %windir%System32reg.exe ADD HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem /v EnableLUA /t REG_DWORD /d 1 /fAfter you enable or disable UAC, you will have to reboot your computer for the changes to take effect.Note: After disabling and turning off… View Article

Outlook: Folder sharing is not available

We have a user that wishes to share his contact list with other employees in his office.Everyone receives email via the same Exchange 2007 server.He did the Permissions for the contacts (Right click, permissions added the user) and when she selects “SHARE CONTACT” she gets the error“Folder sharing is not available with the following entries… View Article