Blogs

Stay ahead with the latest trends in custom software development. Explore how AI, automation, and cloud solutions are shaping the future of business technology.

JQUERY setLocale Errors

A number of JQUERY plugins can throw up syntax errors after setting setlocale(“LC_ALL”,XXX.utf8)   Make sure you change back the LC_NUMERIC variable;   setlocale (LC_ALL, $language); setlocale(LC_NUMERIC, ‘C’);      
Continue Reading

Opt out of BT FON – BT Openzone

Opt out of BT FON – BT Openzone BT may activate your BT home hub to automatically become a BT openzone public hub!! Little do most people know that when you sign up to BT you are automatically opted IN to this service!!! Yes annoying. You can opt out … this link worked for me: […]
Continue Reading

Extract CREATES from SQL dump

Extract CREATES from SQL dump If you are trying to extract the create routines from a SQL dump, this might help you! Basically it picks out the contents between “CREATE” and “\;” You can modify these two variables as need be..   [bash] cat dump.sql |awk ‘/CREATE/,/\;/ { print $0 ; }’ > create.sql   […]
Continue Reading

Perl – Fork and Kill a System Process on Timeout

Perl – Fork and Kill a System Process on Timeout [perl] $pid = open(PIPE, “$command |”) or die $!; eval { local $SIG{ALRM} = sub { die “TIMEOUT” }; alarm($timeout); while (<PIPE>) { $data = $_; }; close(PIPE); alarm(0); }; if ($@) { die $@ unless $@ =~ /TIMEOUT/; kill 15, $pid; close(PIPE); $? ||= […]
Continue Reading