background preloader

Programming

Facebook Twitter

Five reasons why you should find what you love and double-down on it. Finding what you love is like compound interest…it works for you over time. You know when you meet someone and at first you don’t really hit it off so well…you don’t seem to have much in common? And then, all of a sudden, you hit on a topic you’re both passionate about and your relationship changes? You immediately lose a sense of time and simply talk and talk and talk because you have a shared interest? We all have interests like that; we all have something we’re passionate about. For some people it’s sports, others politics, others cooking, etc. Everyone has their own thing they love. So here’s a challenge: If you’re not doing that thing you love for your job, you should quit right now and go figure out a way to make it happen. I know that this is easy to say and hard to do, and it is pretty commonplace advice.

When you do what you love, you do much better work. Now you might say “Well, there is no money in baking cakes” or “I can’t paint pictures for a living”. WebAppSec/Secure Coding Guidelines. The purpose of this page is to establish a concise and consistent approach to secure application development of Mozilla web applications and web services. The information provided here will be focused towards web based applications; however, the concepts can be universally applied to applications to implement sound security controls and design. This page will largely focus on secure guidelines and may provide example code at a later time. The secure coding guidelines page is a living document and constantly updated to reflect new recommendations and techniques. Information that is listed is accurate and can be immediately used to bolster security in your application. If you have comments, suggestions or concerns please email mcoates <at> mozilla.com The guidelines are discussed within logical security areas.

Here are a few items that are often missed and are relevant for most every website. Authentication Attacks of Concern Password Complexity Critical Sites Password Rotation Password Storage. PyGTK. PyGTK tutorial. Home This is PyGTK tutorial. In this tutorial, we will learn the basics of GUI programming in PyGTK. The PyGTK tutorial is suitable for beginners and more advanced programmers.

Table of contents PyGTK PyGTK is a set of Python wrappers for the GTK+ GUI library. Similar tutorials You might want to refresh your knowledge of the Python language with the Python tutorial. Lua Unofficial FAQ (uFAQ) Mitsuhiko/flask - GitHub. Winpdb - A Platform Independent Python Debugger. Web micro-framework BATTLE! Programmer Competency Matrix.

Hacker News | Ask HN: Freelancer? Seeking freelancers? (April 2011) Crash Course. Templating basics: Assign content to Smarty, then display a template file. The template file then contains the presentational output interspersed with {tags} that Smarty replaces with dynamic content. As you can see, Smarty cleanly separates your presentation (HTML/CSS) from your application (PHP) code. However, it still contains some logic of its own. With respect to Smarty's design principles, the logic in the templates should be for presentation only.

For instance, looping over table row colors or including one template from another would be considered presentation logic. Sometimes alteration of the assigned content is required for presentation. Using modifiers, we have just handed formatting control of the assigned content over to the template. You can chain any number of modifiers together on one variable, making this feature quite flexible. You can also use or create template functions. One feature of the {include} function is locally scoped variables. Parent.tpl child.tpl output. Crucial Concepts Behind Advanced Regular Expressions - Smashing Coding. Regular expressions (or regex) are a powerful way to traverse large strings in order to find information. They rely on underlying patterns in a string’s structure to work their magic. Unfortunately, simple regular expressions are unable to cope with complex patterns and symbols.

To deal with this dilemma, you can use advanced regular expressions. Below, we present an introduction to advanced regular expressions, with eight commonly used concepts and examples. Each example outlines a simple way to match patterns in complex strings. If you do not yet have experience with basic regular expressions, have a look at this article1 to get started. The syntax used here matches PHP’s Perl-compatible regular expressions. 1. All regex repetition operators are greedy. Greedy Operators Link The * operator matches the previous expression 0 or more times. Preg_match( '/<h1>. Recall that a . means any character except a new line. <h1>This is a heading. It returns the whole string. Lazy Operators Link 2. 3. NoSQL standouts: New databases for new applications | Data Explosion. Was it just two or three years ago when choosing a database was easy?

Those with a Cadillac budget bought Oracle, those in a Microsoft shop installed SQL Server, those with no budget chose MySQL. Everyone in between tried to figure out where they belonged. Those days are gone forever. Everyone and his brother are coming out with their own open source project for storing information. . [ Also on InfoWorld: Bossie Awards 2011: The best open source software of the year | Get the key insights on open source news and trends from InfoWorld's Technology: Open Source newsletter. ] Everywhere you look, there are new NoSQL databases -- or "data stores," if you're one of those who feel that the word "database" can only be used by proper relational software offering belts-and-suspenders compliance with the ACID rules. In most cases, the NoSQL rebels succeeded in building something that's blazingly fast and fairly scalable -- but only by abandoning traditional crutches.

Free Online Course Materials | MIT OpenCourseWare. Tips for successful freelancing. I’ve been freelancing for over ten years, sometimes moonlighting when I have a full-time job, sometimes doing just freelance work. I’ve learned a few things about successful freelance progrramming. Do what you know how to do Clients pay you to solve their problems. They aren’t interested in how cool Haskell is, and they don’t want to pay you to learn new tools and languages.

I can’t count how many projects that I’ve taken on after the original programmer quit or was let go because he got in over his head. Stay with the herd If you have an exotic in-demand skill by all means use it. Don’t try to do everything Be careful you don’t get buried doing technical support, hardware installation, design, art production, etc. Don’t take jobs that are too big If the project is too hard to describe on a sheet of paper, or it has a schedule spanning months or years, be careful. Use source control and issue tracking Learn how to use source control and web-based issue (bug) tracking.

Ohloh, the open source network. Cloud9 - Your code anywhere, anytime. Kodingen - The Cloud Development Environment, Online Code Editor, Cloud Hosting, Web based access to file-system, ftp & svn integration. Bootstrapped extensions. Note: All extensions created using the Add-on SDK are bootstrapped! All the bootstrapping code is generated for you, so you don't really need to think about it. Not using the Add-on SDK? Read on... Traditional extensions include overlays, wherein the application can load up XUL from the extension's package and automatically apply it atop its own UI.

While this makes creating extensions that add to the application's user interface relatively easy, it means that updating, installing, or disabling an extension requires an application restart. Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) introduces bootstrapped extensions. These are special extensions that, instead of using overlays to apply their user interface to the application, programmatically insert themselves into the application. All the application does is call into this script file; the extension is responsible for adding and removing its user interface and handling any other setup and shutdown tasks it requires. startup.

Self improvement - What is the single most effective thing you did to improve your programming skills. Welcome to freshmeat.net | freshmeat.net. Can Your Programming Language Do This? By Joel Spolsky Tuesday, August 01, 2006 One day, you're browsing through your code, and you notice two big blocks that look almost exactly the same. In fact, they're exactly the same, except that one block refers to "Spaghetti" and one block refers to "Chocolate Moose. " // A trivial example: alert("I'd like some Spaghetti! "); alert("I'd like some Chocolate Moose! ") These examples happen to be in JavaScript, but even if you don't know JavaScript, you should be able to follow along. The repeated code looks wrong, of course, so you create a function: function SwedishChef( food ) { alert("I'd like some " + food + "!

") OK, it's a trivial example, but you can imagine a more substantial example. Now you notice two other blocks of code which look almost the same, except that one of them keeps calling this function called BoomBoom and the other one keeps calling this function called PutInPot. Now you need a way to pass an argument to the function which itself is a function. Look! Lemme repeat that. Yahoo! Developer Network. Wiki: HomePage. Hardware.com.br - Página Inicial. List of Stack Exchange 1.0 sites. vWorker.com: How work gets done. Guaranteed!

Freelancer.com is the world's largest freelancing, outsourcing, and crowdsourcing marketplace for small business. With over 10 million users, you can hire a freelancer to do your contract work at a fraction of the cost. Whether you need PHP developers, web designers, or content writers, you can outsource jobs within minutes.

Browse through hundreds of skills including copywriting, data entry, and graphic design or more technical areas like coding HTML, programming MySQL, and designing CSS. Are you an entrepreneur just starting a company? Find a quality graphic designer to create a logo to your specifications. Are you looking to grow your business online? Hire an internet marketer to improve traffic from SEO and Facebook. Visual basic, vb, active server pages (ASP),java, c, c++, c__ , vbscript,active server pages, ASP, vbscript,SQL, database, informix, oracle, SQL Server,Perl, CGI,Delphi, PHP, LISP, Javascript,Free source code for the taking. Over five million lines of pro.

Launchpad. How To Ask Questions The Smart Way. In the world of hackers, the kind of answers you get to your technical questions depends as much on the way you ask the questions as on the difficulty of developing the answer. This guide will teach you how to ask questions in a way more likely to get you a satisfactory answer. Now that use of open source has become widespread, you can often get as good answers from other, more experienced users as from hackers.

This is a Good Thing; users tend to be just a little bit more tolerant of the kind of failures newbies often have. Still, treating experienced users like hackers in the ways we recommend here will generally be the most effective way to get useful answers out of them, too. The first thing to understand is that hackers actually like hard problems and good, thought-provoking questions about them.

Despite this, hackers have a reputation for meeting simple questions with what looks like hostility or arrogance. We're (largely) volunteers. (Improvements to this guide are welcome. HELP! Welcome | Flask (A Python Microframework) Welcome to Flask’s documentation. Get started with Installation and then get an overview with the Quickstart. There is also a more detailed Tutorial that shows how to create a small but complete application with Flask.

Common patterns are described in the Patterns for Flask section. The rest of the docs describe each component of Flask in detail, with a full reference in the API section. Flask depends on the Werkzeug WSGI toolkit, the Jinja template engine, and the Click CLI toolkit. Be sure to check their documentation as well as Flask’s when looking for information. User’s Guide¶ Flask provides configuration and conventions, with sensible defaults, to get started. API Reference¶ If you are looking for information on a specific function, class or method, this part of the documentation is for you. Additional Notes¶