Code
code snippets, software programs, answers to developer queries about programming languages and development platforms by Gurudev
Code
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.
Code
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.
Code
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.
Code
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.
Code
List all collections in a MongoDB Database using PyMongo
Python script to list the names of all collections in a MongoDB database using PyMongo.
Code
List all databases in MongoDB using PyMongo
Python script to list the names of all databases in MongoDB using PyMongo
Code
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.
Code
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.
Code
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.
Code
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.
Latest Articles
Motivation
How does GOD helps us?
Do prayers really help? Do miracles happen when we are in trouble? Does God really help us in times of need? Are prayers enough to save us during bad times? How should we face problems?
Literature
Sanskrit poem on Ramayana – read in reverse becomes Mahabharata!
A Sanskrit poem about Ramayana when read in reverse direction becomes a poem on Mahabharata!
History
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.
Motivation
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.
Popular Articles
History
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...
Sci-Tech
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?
Sci-Tech
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.
Sci-Tech
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.