Archive | Code RSS feed for this section

Storing MySQL Binary logs on NFS Volume

There is a lot of discussions whenever running MySQL storing data on NFS is a good idea. There is a lot of things for and against this and this post is not about them.
The fact is number of people run their databases on NetApp and other forms of NFS storage and this post is about [...]

Read more

Open Source Your Career, my story

About a month ago my good friend Lorna Mitchell put out a call for stories on how working with Open Source has influenced people’s careers. Given that a lot of my recent career has been driven by my involvement in Open Source, I shared my story with Lorna. But I also wanted to share some [...]

Read more

How to Use CakePHP’s Access Control Lists

If you’re building a CMS, you’ll probably need different user roles—superusers, admins, users—with different permission levels. Too complicated to code? Enter CakePHP’s ACL (Access Control Lists). With the right setup, you’ll be checking user permissions with just one line. Introduction: What Are Access Control Lists? The ACL lets you create a hierarchy of users with [...]

Read more

Is Tomcat 7 in your future?

Tomcat 7 is the first major Tomcat release in quite a long while (three and a half years…and counting), since Dec 1, 2006 when Tomcat 6.0 was released. Tomcat 7 Beta was released on June 29th and a large number of people have already downloaded that snapshot to evaluate (or beat on) it. Should you [...]

Read more

Node and Scaling in the Small vs Scaling in the Large

Alex Payne writes: “One of the most talked-about technologies amongst the Hacker News crowd is Node, a framework for writing and running event-driven JavaScript code on the V8 virtual machine. As part of evaluating what tech to work with, I considered Node. Yesterday, I expressed some general skepticism about Node, and the framework’s author, Ryan [...]

Read more

Missing the point (OOP in scripting languages)

Yesterday I came across a question: Do Web-Scripting Languages Really Need OOP?
Here’s my answer: only if you want to do more than an Hello World script (which is paradoxically how old school programmers measure the utility of a language.)
I’ll express some of my thoughts without compromises, which will be up to you.. [...]
Read the full [...]

Read more

5 things you didn’t know about … the Java Scripting API

The Java language is more than you need for some projects, but scripting languages are famously lacking on the performance front. Find out how the Java Scripting API (javax.script) delivers the best of both worlds, by allowing you to invoke scripts from your Java programs, and vice versa.. [...]
Read the full article at the source.

Read more

RichFaces JavaScript interactions: invoking JavaScript before and after Ajax request

Article shows how to invoke JavaScript function before and after an Ajax request when using RichFaces
Read the full article at the source.

Read more

Showing Off bit.ly Clicks of Your Posts With jQuery

bit.ly -the most common URL shortener- provides a simple RESTfull API to lookup short URL’s and their clicks count.. bit.ly has recently released version 3 which added simpler, more efficient methods to query multiple URL’s in one request that we are going to apply in this tutorial.. [...]
Read the full article at the source.

Read more

JSON in Javascript

JSON is being widely used in Web for data transfer from client to server. But here in this article we will be understanding on what is JSON and how to use JSON in Javascript. The way JSON object is created is independent of any programming language you use. Also if you follow the JSON protocol, [...]

Read more