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].

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 »

How to Program UDP sockets in Python – Client and Server Code Example

By | August 7, 2020

UDP sockets UDP or user datagram protocol is an alternative protocol to its more common counterpart TCP. UDP like TCP is a protocol for packet transfer from 1 host to another, but has some important differences. UDP is a connection-less and non-stream oriented protocol. It means a UDP server just catches incoming packets from any… Read More »