How to Enable Webgl in Google Chrome on Ubuntu 12.10

By | May 20, 2023

By default google chrome would keep webgl features disabled if your gpu driver does not support 3d acceleration. However there are options to force enable it. To enable webgl in Google Chrome launch it with the following flags –enable-webgl –ignore-gpu-blacklist Here is the command: $ google-chrome –enable-webgl –ignore-gpu-blacklist Now test webgl by opening the following… Read More »

Generate a dropdown list of timezones in php

By | February 14, 2018

Applications often allow users to select their timezones for reporting the proper time properly. Here is a quick function that can be used to generate a dropdown list of timezones that is easy to read and understand. <?php function get_timezones() { $o = array(); $t_zones = timezone_identifiers_list(); foreach($t_zones as $a) { $t = ''; try… Read More »

Php array of iso 639-1 language codes and names

By | September 2, 2023

Here is a php array containing the language codes and language names as specified by the iso 639-1 standard. Useful when . <?php /** ISO 639-1 Language Codes Useful in Locale analysis References : 1. http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes 2. http://blog.xoundboy.com/?p=235 */ $language_codes = array( 'en' => 'English' , 'aa' => 'Afar' , 'ab' => 'Abkhazian' , 'af'… Read More »

Generate code39/isbn barcodes in php with mpdf

By | May 27, 2013

Barcodes Barcodes are used in various business class applications to print information in encoded format such that it can be read later by barcode reading devices. Common places to see barcodes are product covers in shops, membership cards and documents like invoices etc. As php is now increasingly being used to develop such applications, barcodes… Read More »

Tcpdump Tutorial – How to Sniff and Analyse Packets from Commandline

By | August 10, 2020

Tcpdump Tcpdump is a commandline network analyzer tool or more technically a packet sniffer. It can be thought of as the commandline version of wireshark (only to a certain extent, since wireshark is much more powerful and capable). As a commandline tool tcpdump is quite powerful for network analysis as filter expressions can be passed… Read More »