Monday, January 30, 2012

Tilera preps many-cored Gx chips for March launch (link)

Upstart multicore RISC chip maker Tilera is timing the launch of its third generation of Tile processors to rain a little on Intel's forthcoming parade, and to try to blunt all of the excitement that is building for ARM-based alternatives for servers. Read more...

Read "CouchDB The Definitive Guide" online

Here is draft of "CouchDB The Definitive Guide" second edition and you can read it online!

Friday, January 27, 2012

Howto: resize VirtualBox image

How would your resize VirtualBox image? The answer is simple:

VBoxManage modifyhd         |
                            [--type normal|writethrough|immutable|shareable|
                            [--autoreset on|off]
                            [--resize |--resizebyte ]

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd YourImageFile.vdi --resize 20480

PUT or POST: The REST of the Story (link)

Web service designers have tried for some time now to correlate CRUD (Create, Retrieve, Update and Delete) semantics with the Representational State Transfer (REST) verbs defined by the HTTP specification–GET, PUT, POST, DELETE, HEAD, etc. So often, developers will try to correlate these two concepts–CRUD and REST–using a one-to-one mapping of verbs from the two spaces, like this:
  • Create = PUT
  • Retrieve = GET
  • Update = POST
  • Delete = DELETE

Thursday, January 26, 2012

The free lunch is over now welcome to the hardware jungle (link)

The good news is that Moore’s “local scale-in” transistor mine isn’t empty yet; it appears the transistor bonanza will continue for about another decade, give or take a half decade or so, which should be long enough to exploit the lower-cost side of the Law to get us to parity between desktops and pocket tablets. The bad news is that we can clearly observe the diminishing returns as the transistors are decreasingly exploitable – with each new generation of processors, software developers have to work harder and the chips get more difficult to power. And with each new crank of the diminishing-returns wheel, there’s less time forimage hardware and software designers to come up with ways to overcome the next hurdle; the motherlode free lunch lasted 30 years, but the homogeneous multicore era lasted only about six years, and we are now already overlapping the next two eras of hetero-core and cloud-core. Read more...

Wednesday, January 25, 2012

Javascript Best Practices (link)

This document is a list of best practices and preferred ways of developing JavaScript code, based on opinions and experience from many developers in the JavaScript community. Since this is a list of recommendations rather than a list of absolute rules, experienced developers may have slightly differing opinions from those expressed below. Read more...

Good intro to couchdb (link)

Go read here...

Tuesday, January 24, 2012

JavaScript on the server: Growing the Node.js Community (link)

While we all know and love JavaScript as a language for browser-based scripting, few remember that, early on, it was destined to be used as a server-side language as well. Only about a year after JavaScript’s original release in Netscape Navigator 2.0 (1995), Netscape released Netscape Enterprise Server 2.0: Read more...

Monday, January 23, 2012

Monokai theme for MonoDevelop


I have ported Textmate Monokai theme to MonoDevelop, this is work in progress so try it and give me feedback.

Link to my github repo. Update I have also created MonokaiNotBold theme for MonoDevelop. Have fun :)

Saturday, January 21, 2012

Node.js case study: The Trello at Fog Creek

"That led us toward a single-page app that would generate its UI on the client and accept data updates from a push channel. This is pretty far from any of the work we’ve done before at Fog Creek, so from a technical perspective Trello has been an adventure." Read here...

Friday, January 20, 2012

Node v0.6.8 verson released (link)

  • Update V8 to
  • Numeric key hash collision fix for V8 (Erik Corry, Fedor Indutny)
  • Add missing TTY key translations for F1-F5 on Windows (Brandon Benvie)
  • path.extname bugfix with . and .. paths (Bert Belder)
  • cluster: don’t always kill the master on uncaughtException (Ben Noordhuis)
  • Update npm to 1.1.0-2 (isaacs)
  • typed arrays: set class name (Ben Noordhuis)
  • zlib binding cleanup (isaacs, Bert Belder)
  • dgram: use slab memory allocator (Michael Bernstein)
  • fix segfault #2473
Read here...

Thursday, January 19, 2012

Building a Modern Web Stack for the Real-time Web (link)

The web is evolving. After a few years of iteration the WebSockets spec is finally here (RFC 6455), and as of late 2011 both Chrome and Firefox are SPDY capable. These additions are much more than just "enhancing AJAX", as we now have true real-time communication in the browser: stream multiplexing, flow control, framing, and significant latency and performance improvements. Now, we just need to drag our "back office" - our web frontends, app servers, and everything in between into this century to enable us to take advantage of these new capabilities. Read more...

Case study: How & why to build a consumer app with Node.js (link)

Node.js has been getting great press for being used to build real-time web applications and fast networking tools that help big web sites run and scale. But is Node just as good a fit for web agencies and developers that build dozens, scores, or even hundreds of sites a year? Read here...

Wednesday, January 18, 2012

What is the defining characteristic of a local variable? (link)

If you ask a dozen C# developers what a "local variable" is, you might get a dozen different answers. Read more...

node.js GitHub API search repositories by keyword example

Not long time ago I started learning JavaScript and node.js. Today I found this node.js module called node-github. I had fun while played with it. And here it goes one little sniped for searching GitHub source repositories by keywords.

var GitHubApi = require('github').GitHubApi;

var github = new GitHubApi(true);
var repoApi = github.getRepoApi();'node github', function(err, repos){
    if (repos){
        var i;
        for(i = 0; i < repos.length; i++){
    } else {
        console.log('Not found any repos!\n');
How to run
  • download and install node.js from here
  • run 'npm install github' in your source directory
  • create new file 'example.js' and paste code sniped into it and save changes
  • run 'node example.js'
Output you should see the following output to console:
C:\code\node\npm-index>node scripts\example_github.js
The "sys" module is now called "util". It should have a similar interface.
get:  post
send GET request: /api/v2/json/repos/search/node%20github

Tuesday, January 17, 2012

JSON will be a core type in PostgreSQL 9.2 (link)

On Wednesday, four days before the start of the final commitfest for release 9.2 of PostgreSQL, Robert Haas published YA patch to include JSON as a core type. Read more here...

Monday, January 16, 2012

Quote of The Day 2012-01-16

"If you want to do something big in your life, you must remember that shyness is only the mind," she said. "If you think shy, you act shy. If you think confident you act confident. Therefore never let shyness conquer your mind."

- Arfa Karim Randhawa the computer programming prodigy who became the world’s youngest Microsoft Certified Professional at 9 years old, has passed away at the age of 16, according to reports out of her native Pakistan this weekend.Read more...

Thursday, January 5, 2012

Prozac Extinguishes Anxiety by Rejuvenating the Brain (link)

" study in the December 23 issue of Science shows that the antidepressant Prozac (fluoxetine) gives mice the youthful brain plasticity they need to learn that a once-threatening stimulus is now benign." Read more...

A Man. A Van. A Surprising Business Plan. (link)

We've all been there. Trapped in line at the DMV. Or stuck on hold while trying to call a city agency. It's easy to complain about government bureaucracy. But it's the rare person who sees such inefficiency as a business opportunity. Go to article...

Wednesday, January 4, 2012

DoS using Hash Collisions in ASP .net (link)

This weekend in the 28C3 Alexander “alech” Klink and Julian “zeri” Wälde presented Effective Denial of Service attacks against web application platforms which can make a server with 99% CPU usage using very low resources. Read more...

Tuesday, January 3, 2012

Richard Stallman Was Right All Along (link)

Late last year, president Obama signed a law that makes it possible to indefinitely detain terrorist suspects without any form of trial or due process. Peaceful protesters in Occupy movements all over the world have been labelled as terrorists by the authorities. Initiatives like SOPA promote diligent monitoring of communication channels. Thirty years ago, when Richard Stallman launched the GNU project, and during the three decades that followed, his sometimes extreme views and peculiar antics were ridiculed and disregarded as paranoia - but here we are, 2012, and his once paranoid what-ifs have become reality. Read more...

The Coming War on General Purpose Computation By Cory Doctorow (link)

"As a member of the Walkman generation, I have made peace with the fact that I will require a hearing aid long before I die, and of course, it won't be a hearing aid, it will be a computer I put in my body, so when I get into a car - a computer I put my body into - with my hearing aid - a computer I put inside my body - I want to know that these technologies are not designed to keep secrets from me, and to prevent me from terminating processes on them that work against my interests." The Coming War on General Purpose Computation By Cory Doctorow

Supercolliding a PHP array (link)

Did you know that inserting 2^16 = 65536 specially crafted values into a normal PHP array can take 30 seconds? Normally this would take only 0.01 seconds. Read here more...

Monday, January 2, 2012

Reducing Code Nesting (link)

"This guy’s code sucks!" It’s something we’ve all said or thought when we run into code we don’t like. Sometimes it’s because it’s buggy, sometimes it’s because it conforms to a style we don’t like, and sometimes it’s because it just feels wrong. Recently I found myself thinking this, and automatically jumping to the conclusion that the developer who wrote it was a novice. The code had a distinct property that I dislike: lots of nesting. But the more I think about it, the more I realized that it’s not really something I’ve heard discussed much. Read more on Reducing Code Nesting here...