code snippets, software programs, answers to developer queries about programming languages and development platforms by Gurudev
Python Class Template example for GTK+ GUI Application built using Glade
Example Python Class Template to build GUI Applications designed using Glade Visual Builder for GTK+. Sample Python Class to write event handling code for GTK based GUI Apps.
How to left align text in a GTKLabel in Python?
Python script to left align text in GTKLabel. Python snippet to right align or top align or bottom align text in GTK Label. Horizontal or vertical aligning of GTK Label text in Python.
How to access GTK UI objects in a glade XML file in Python?
Python script to access GUI objects like GTK listbox, window, label, button, toolbar etc in a Glade XML file and link Python functions to GTK events or signals.
List all files in a directory in Python
Python script to list all files and sub-directories in a directory, or to list only files or only sub-folders in a folder, or files having a given extension.
List all collections in a MongoDB Database using PyMongo
Python script to list the names of all collections in a MongoDB database using PyMongo.
List all databases in MongoDB using PyMongo
Python script to list the names of all databases in MongoDB using PyMongo
How to read a large text file character by character in Python?
Python Script to read a large text file character by character without loading the entire text file in memory.
How to check if JSON string is valid in Python?
Python script to check if given JSON data or JSON string is in valid JSON format.
Extract adjacent JSON documents in a single line of a large text file in Python
Python Script to extract a large number of multiple neighboring JSON documents in a single line of huge text file, and write the extracted JSON documents to individual lines in an output file.
Slicing in Python to extract sub strings or sub lists in either direction
Slicing is a very powerful feature of Python to quickly extract slices of data from lists and strings in either forward or reverse direction.
12Page 1 of 2
Sanskrit poem on Ramayana – read in reverse becomes Mahabharata!
A Sanskrit poem about Ramayana when read in reverse direction becomes a poem on Mahabharata!
The difference between Itihasa and Puranas
Documentation of ancient Indian history and the historical events of Indian civilization in the form of Itihasa and Puranas - Ramayana and Mahabharata.
Online Education should be interactive and innovative – Fun to Learn
For online education to succeed for smaller classses - it should be as interesting as cartoons. Online education cant succeed unless it is more interesting, interactive and innovative than offline schooling.
The Complete List of Dhatus – Sanskrit Root Words and their English meaning
A complete list of all dhatus (root words or verb roots) in Sanskrit dictionary and their meanings with corresponding IPA transliteration.
Takshashila – World’s Oldest University
More than 2700 years back a huge university existed in that ancient India where over 10,500 students from all across the world came for...
Grahas are not Planets – Nava Graha is not the same as Nine Planets
The difference between Planets and Grahas. Why are Sun and Moon included in the list of Navagrahas? Isn't it true that Rahu and Ketu do not exist? What about Earth?
Place Value, not Zero is most important invention of ancient Indian Mathematicians
The most important contribution of ancient India to mathematics was not zero but the place value system or positional notation system.
The Sacred Secrets of Ganga
Science behind the mysterious power of Ganges river. The reason why piligrims take the holy water of Ganga to their places and add it to local ponds, wells and lakes across India.