Scripting Languages: PHP, Perl, Python, Ruby (Sheet One) - Hyperpolyglot a side-by-side reference sheet sheet one: version | grammar and execution | variables and expressions | arithmetic and logic | strings | regexes | dates and time | arrays | dictionaries | functions | execution control | exceptions | threads sheet two: streams | asynchronous events | files | file formats | directories | processes and environment | option parsing | libraries and namespaces | objects | inheritance and polymorphism | reflection | net and web | gui | databases | unit tests | logging | debugging sheet two: streams | asynchronous events | files | directories | processes and environment | option parsing | libraries and namespaces | objects | inheritance and polymorphism | reflection | net and web | gui | databases | unit tests | logging | debugging version used The versions used for testing code in the reference sheet. show version How to get the version. php: The function phpversion() will return the version number as a string. python: import platform platform.python_version() ruby: <? pad
Hunch Project Euler What is Project Euler? Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems. The motivation for starting Project Euler, and its continuation, is to provide a platform for the inquiring mind to delve into unfamiliar areas and learn new concepts in a fun and recreational context. Who are the problems aimed at? The intended audience include students for whom the basic curriculum is not feeding their hunger to learn, adults whose background was not primarily mathematics but had an interest in things mathematical, and professionals who want to keep their problem solving and mathematics on the edge. Can anyone solve the problems? The problems range in difficulty and for many the experience is inductive chain learning. What next?
14 Cool And Unusual Aquariums EmailEmail Do you live a stressful life, have high blood pressure and insomnia? Keeping an aquarium may be a good therapy for you! Studies going back as far as the late 80’s have shown that watching those beautiful fish going about their daily business can make you feel calm, reducing stress levels and your blood pressure. Although researchers have shown that the greater reduction in blood pressure occurred when there were fish in the tank, vs pleasingly decorated, but fishless, tanks – having a cool aquarium can at least make your friends jealous! [1 2 3] 1. Duplex is an acquarium/cage favouring an improbable encounter between a bird and a fish. 2. (Link) 3. (Link) 4. Ever wondered what to do with that ancient 26″ wooden TV set laying around in yours or your grandparent’s garage? 5. iPond The iPond is an iPod accessory the combines a speaker with a tiny aquarium. 6. If you do not have enough room in your new office to put an aquarium, just integrate an Aquarium in the table. 7. 8. 9. 10.
30 free programming eBooks - citizen428.blog() Since this post got quite popular I decided to incorporate some of the excellent suggestions posted in the comments, so this list now has more than 50 books in it. BTW: I’m not very strict on the definition of “ebook”, some of them are really just HTML versions of books. [UPDATED: 2012-01-18] Learning a new programming language always is fun and there are many great books legally available for free online. Lisp/Scheme:Common Lisp: A Gentle Introduction to Symbolic ComputationHow to Design ProgramsInterpreting Lisp (PDF, suggested by Gary Knott)Let Over LambdaOn LispPractical Common LispProgramming in Emacs LispProgramming Languages. Ruby:The Bastards Book of Ruby (suggested by Dan Nguyen)Clever Algorithms (suggested by Tales Arvelos)Data Structures and Algorithms with Object-Oriented Design Patterns in RubyLearn Ruby the Hard WayLearn to ProgramMacRuby: The Definitive GuideMr. Erlang:Concurrent Programming in ErlangLearn You Some Erlang for Great Good
30 Pixel perfect websites | Awwwards We know how easy it is to buy a template change some colors, put an icon here and there, add a logo, some pictures and voilà, you've got yourself a website. But we also know good design takes time. Making a design that's not only good but great can be a tedious work, but you can tell when something has been made for an specific purpose. That's what happens when you strive for pixel perfection, it shows. Best Programming Quotations A good programmer is someone who looks both ways before crossing a one-way street. -- Doug Linder, systems administrator A most important, but also most elusive, aspect of any tool is its influence on the habits of those who train themselves in its use. If the tool is a programming language this influence is, whether we like it or not, an influence on our thinking habits. -- Edsger Dijkstra, computer scientist Being abstract is something profoundly different from being vague... Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer. -- Edsger Dijkstra C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg. -- Bjarne Stroustrup, developer of the C++ programming language Commentary: most debugging problems are fixed easily; identifying the location of the problem is hard. -- unknown Good code is its own best documentation. Hey!
12 Days of Christmas - Make Your Own Adornament | Bower Power What the heck is an Adornament? Well, simply put, it’s an ornament you adore. Or an ornament that you have adorned. Or a dorn you have mented. Whatever floats your boat. What floated my figurative Christmas boat was thinking about making my own ornaments. I started by snagging a box of plain opaque white ornaments at my local Hobby Lobby for half off: And then I gathered some inspirational ornament photos: I loved the Ballard Designs alphabet lettered ornaments – don’t they kinda look like Lotto balls? So now that you have seen my inspiration – let me show you how I DIYed a few ornaments for around the Bower house. First I located my Sharpie paint pens – I love the metallic colors. And then I used a bit of painters tape to give me a guideline for my monogrammed ball: Then using the paint pen against the painters, I just drew two straight lines to give me my stem for the letter “B”. My second ornament was inspired by those ZGallerie votives. Don’t make fun of me. So whattya think?
A Quick, Painless Tutorial on the Python Language Norman Matloff University of California, Davis June 17, 2008 ©2003-2008, N. Contents What Are Scripting Languages? Languages like C and C++ allow a programmer to write code at a very detailed level which has good execution speed (especially in the case of C). The term scripting language has never been formally defined, but here are the typical characteristics: Used often for system administration, Web programming, text processing, etc. Why Python? The first really popular scripting language was Perl. Advocates of Python, often called pythonistas, say that Python is so clear and so enjoyable to write in that one should use Python for all of one's programming work, not just for scripting work. Background Needed Anyone with even a bit of programming experience should find the material through Section 8 to be quite accessible. The material beginning with Section 10 will feel quite comfortable to anyone with background in an object-oriented programming (OOP) language such as C++ or Java. Approach
street cred builder for bad-ass developers