Wednesday, March 18, 2015

Gudio Van Rossum Main()

I've written a few main() functions in my time. They usually have a structure roughly like this:

"""Module docstring.

This serves as a long usage message.
import sys
import getopt

def main(): # parse command line options try: opts, args = getopt.getopt(sys.argv[1:], "h", ["help"]) except getopt.error, msg: print msg print "for help use --help" sys.exit(2) # process options for o, a in opts: if o in ("-h", "--help"): print __doc__ sys.exit(0) # process arguments for arg in args: process(arg) # process() is defined elsewhere if __name__ == "__main__": main()


Guido Van Rossum 

Monday, March 16, 2015


SQL Injection

 A SQL Injection is a type of virus that you type into a user input field that allows access to the database that the field is connected to. If done right a SQL Injection can leave devastation on a computer and site. SQL Injection's can be done in a variety of ways and forms, and they are becoming increasingly dangerous via the web.

Different SQL codes can be used to override SQL database code and gain information.

SELECT user from users where password = 'pass123' OR email = ''

Thursday, March 12, 2015

CSS help

You can make gradient color's and have them show up in different shapes and sizes throughout your website using this CSS style trick.

background-image: radiant-gradient(circle at top right, #ffa949 0%, firebrick, dodgerblue); placing this within your class, ID, or simply a h1 can change your entire website radically.

Thursday, March 5, 2015


Alters the default CSS box model used to calculate widths and heights of elements.

Sets the maximum width of an element. It prevents the used value of the width property from becoming larger than the value set for max-width.

- Treehouse