MySQL Prepared Statements

Prepared statements are the ability to set up a statement once, and then execute it many times with different parameters. They are designed to replace building ad hoc query strings, and do so in a more secure and efficient manner.

Why Prepared Statements?

  • For security and better performance.
  • Prevent a very common type of vulnerability called an SQL injection attack.
  • When dealing with prepared statements, you don’t need to worry about functions that escape all of the necessary trouble characters, such as the single quote, double quote, and backslash characters.
  • The prepared statements executes only at initial time, so it will increase the performance. . Then if you execute the query many times, it will no longer have that overhead. This pre-parsing can lead to a speed increase if you need to run the same query many times, such as when doing many INSERT statements.
  • Performance may increase is through the use of the new binary protocol that prepared statements can use. The traditional protocol in MySQL always converts everything into strings before sending them across the network.
Posted in DataBase | Tagged , , | 1 Comment

JavaScript: The Good Parts – Speaker: Douglas Crockford

JavaScript is a language with more than its share of bad parts. It went from non-existence to global adoption in an alarmingly short period of time. It never had an interval in the lab when it could be tried out and polished. JavaScript has some extraordinarily good parts. In JavaScript there is a beautiful, highly expressive language that is buried under a steaming pile of good intentions and blunders. The best nature of JavaScript was so effectively hidden that for many years the prevailing opinion of JavaScript was that it was an unsightly, incompetent abomination. This session will expose the goodness in JavaScript, an outstanding dynamic programming language. Within the language is an elegant subset that is vastly superior to the language as a whole, being more reliable, readable and maintainable. Continue reading

Posted in General, Javascript, Programming | Tagged , | 1 Comment

MooTools as a General Purpose Application Framework

Posted in Javascript | Tagged , | 1 Comment

Finding Time to Start a Side Business When You Have a Day Job – Six Ways

Would you love to have your own small business? Perhaps it could be the start of seeing your entrepreneurial dream become a reality. The problem is, you’re currently working full-time, and you can’t see how you’re going to fit in hours of extra work.

Here are six ways to find time for your side business:

1. Go for an Online Business

My first tip is to go for an online business. Why? Because it costs almost nothing to start, it’s easy to maintain, and it gives you a huge amount of flexibility. With many online businesses, it won’t matter to your clients that you’re unavailable 8-5 … but with other businesses (such as a dog-walking business or local shopping service), clients will need you to be around when it’s convenient for them. Continue reading

Posted in General | Tagged | 2 Comments

How Much Can I Earn From Freelance Blogging?

Many people worry that freelance bloggers are poorly paid, churning out badly-written content for a pittance. Although there are some dodgy internet marketers out there who don’t care about quality content and just want a fast buck (at your expense), freelance blogging isn’t about that at all.

Freelance bloggers, especially those working on a regular basis as staff bloggers for a particular site, get paid at a professional rate. There are plenty of blogs out there which pay $50+ per post (for 700 words or so), and I always advise even brand new bloggers never to write for under $20/post. Continue reading

Posted in General | Tagged | 2 Comments