Just My Log
all about programming, daily activities, information and technology
all about programming, daily activities, information and technology
Aug 9th
Dear Visitor
This is a white paper from mysql about scaling web services with MySQL Cluster :
Check it out geek :
Aug 1st
Dear Visitor
One of Python’s built-in datatypes is the dictionary, which defines one-to-one relationships between keys and values.
| A dictionary in Python is like a hash in Perl. In Perl, variables which store hashes always start with a % character; in Python, variables can be named anything, and Python keeps track of the datatype internally. | |
| A dictionary in Python is like an instance of the Hashtable class in Java. | |
| A dictionary in Python is like an instance of the Scripting.Dictionary object in Visual Basic. | |
more explanation about dictionaries could found here ..
This is a snip of code which i have wrote that using dictionaries to save a simple database in dictionaries ..
#! /usr/bin/python
# To change this template, choose Tools | Templates
# and open the template in the editor.
#Simple Database With Dictionaries
__author__="Gepenk"
__date__ ="$Aug 1, 2010 2:44:53 AM$"
if __name__ == "__main__":
people = {
'Alice' : {
'phone' : '2314',
'addr' : 'bedugul 21'
},
'Bowo' : {
'phone' : '5215',
'addr' : 'balirejo 56'
},
'Echa' : {
'phone' : '5653',
'addr' : 'tuntungan 132'
}
}
name = raw_input('Please Enter Your Name :')
if name in people:
print "%s , Phone : %s, Address: %s" % (name, people[name]['phone'], people[name]['addr'])
else:
print 'Cannot Found People'
If you type ‘Bowo’ the program would show output : Bowo , Phone : 5215, Address: balirejo 56
Oke geek , you can try the code an smiling ..
Happy Coding
Jul 20th
Dear Visitor
I want to share my little project, how to creating simple blog with codeigniter. In this application show you how to make CRUD (Create, Retrieve, Update, and Delete) Operation with MySQL database, Using session and active record in codeigniter.
Okay, if you want to download the source code, download it here
Happy Coding