Author Archives: Silver Moon

About Silver Moon

A Tech Enthusiast, Blogger, Linux Fan and a Software Developer. Writes about Computer hardware, Linux and Open Source software and coding in Python, Php and Javascript. He can be reached at [email protected].

Convert mp3 audio files to ogg on ubuntu

By | June 27, 2013

I recently needed to convert some mp3 audio files to ogg format so that the html5 audio tag could play them in mozilla firefox. Had to search a bit to find out how to do this easily and here are the results. There is an excellent application called soundconverter ( soundkonverter for kde users )…. 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 »

Increase bsnl broadband speed using fastest dns

By | November 7, 2012

A simple trick to increase the speed of your bsnl broadband is to use the fastest dns server available. Now most articles and tutorials talk about using opendns. However opendns may not be the fastest dns server. The dns server’s speed has to be found out by doing a simple ping test. Lets say we… 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 »

How to Udp Telnet with Netcat

By | July 27, 2020

The standard telnet utilities that are present in linux or windows can connect to services running on TCP ports. They do not support udp ports. However the utility netcat can be used to connect and work with udp ports in the same way as the telnet command. The telnet command can connect to a host… Read More »