background preloader

Software & Programming

Facebook Twitter

The Evolution of a Programmer. High School/Jr.High First year in College program Hello(input, output) begin writeln('Hello World') end. Senior year in College (defun hello (print (cons 'Hello (list 'World)))) New professional #include <stdio.h> void main(void) { char *message[] = {"Hello ", "World"}; int i; for(i = 0; i < 2; ++i) printf("%s", message[i]); printf("\n"); } Seasoned professional Master Programmer Apprentice Hacker Experienced Hacker Seasoned Hacker % cc -o a.out ~/src/misc/hw/hw.c % a.out Guru Hacker New Manager Middle Manager mail -s "Hello, world.

" bob@b12 Bob, could you please write me a program that prints "Hello, world. "? Senior Manager % zmail jim I need a "Hello, world. " program by this afternoon. Chief Executive % letter letter: Command not found. % mail To: ^X ^F ^C % help mail help: Command not found. % damn! Anonymous If you enjoyed this, you might like: Ninite - Install or Update Multiple Apps at Once. PHP Security Consortium: PHP Security Guide. Instant Install - Quickly and easily install Wordpress, Drupal, Joomla, and more. Tutorial - Learn Python in 10 minutes.

NOTE: If you would like some Python development done, my company, Stochastic Technologies, is available for consulting. This tutorial is available as a short ebook. The e-book features extra content from follow-up posts on various Python best practices, all in a convenient, self-contained format. All future updates are free for people who purchase it. Preliminary fluff So, you want to learn the Python programming language but can't find a concise and yet full-featured tutorial. This tutorial will attempt to teach you Python in 10 minutes.

Properties Python is strongly typed (i.e. types are enforced), dynamically, implicitly typed (i.e. you don't have to declare variables), case sensitive (i.e. var and VAR are two different variables) and object-oriented (i.e. everything is an object). Getting help Help in Python is always available right in the interpreter. >>> help(5)Help on int object:(etc etc) >>> dir(5)['__abs__', '__add__', ...] >>> abs. Syntax Data types Strings Flow control statements. Codrops - useful drops of code. PHP snippets. Improve website load time by 500% with 3 lines of code | Aciddrop.com. Major New Update - PHP SPEEDY: latest version available here There are 4 relatively easy ways by which you can speed up the time it takes a browser to download a page: Make fewer HTTP requestsAdd a far-future expires headerGzip your page's componentsMinify your JavaScript, CSS and HTML Following on from my post on joining CSS and JavaScript files, I have written a PHP script which will automatically do all of the above.

All you have to do is call the following at the top of your page: The code require_once('class.compressor.php'); //Include the class. The full path may be required$compressor = new compressor('css,javascript,page'); And the following at the bottom of the page: The Demo That's it! The class can be downloaded here: site speed boost class download Requirements A server running at least PHP4.

Setting basic options Options can be set with a comma separated string as follows: $compressor = new compressor('css,javascript,page'); Setting advanced options Speed gains Download Credits Subscribe. Open Source Software Scripts CMS PHP ASP NET PERL CGI JAVA JAVASCRIPT. SourceForge.net: Find, Create, and Publish Open Source software for free. Drawing On The iPhone Canvas With jQuery And ColdFusion.