Friday, September 28, 2012

Basic Authentication for Windows Azure Websites (link)

Suppose that you are building a fancy new website and want to show your progress to your client. You create a new website in the Windows Azure management portal and eploy your code. You also want to make sure that only trusted users can access the website. Basic authentication seems like the most logical solution, but you suddenly realize that you cannot use basic authentication in Windows Azure websites in the same way you used it on your on-premises web server. In this article I will show you how to build your own HTTP managed module to achieve the same goal in Windows Azure websites.

read more..


In SQL statement below the time difference between two given dates is 3 sec, but when checked in terms of Min it says 1 Min (whereas the actual min is 0.05Min)

SELECT DATEDIFF(MI,'2011-10-14 02:18:58' , '2011-10-14 02:19:01') AS MIN_DIFF
Is this is a BUG in SQL Server ?

read more..

Thursday, September 27, 2012

Three Hidden Extensibility Gems in ASP.NET 4 (link)

ASP.NET 4 introduces a few new extensibility APIs that live the hermit lifestyle away from the public eye. They’re not exactly hidden - they are well documented on MSDN - but they aren’t well publicized. It’s about time we shine a spotlight on them.


Tuesday, September 25, 2012

The Architecture of the High-Speed Web Server (link)

The IIJ-II Research Laboratory began development of a Web server called Mighttpdblank (pronounced "mighty") in Fall of 2009, and has released it as open source. Through its implementation we arrived at an architecture that has enhanced multi-core performance while maintaining code simplicity. Here we take a look at each architecture one at a time.


Friday, September 14, 2012

PostgreSQL 9.2 released

Improved Performance and Scalability

...With the addition of linear scalability to 64 cores, index-only scans and reductions in CPU power consumption, PostgreSQL 9.2 has significantly improved scalability and developer flexibility for the most demanding workloads...

Flexible Developer Support

...Range Types allow developers to create better calendaring, scientific, and financial applications. No other major SQL database supports this feature, which enables intelligent handling of blocks of time and numbers...

...With PostgreSQL 9.2, query results can be returned as JSON data types. Combined with the new PL/V8 Javascript and PL/Coffee database programming extensions, and the optional HStore key-value store, users can now utilize PostgreSQL like a "NoSQL" document database, while retaining PostgreSQL's reliability, flexibility and performance...


Thursday, September 13, 2012

Keeping JS Sane (link)

I gave a talk at #DDD10 this Saturday about keeping JS sane, I had some questions after about the list of things I ran through so documented in all its glory are my current thoughts on development with a dynamic language like JS.

Read here more...

Wednesday, September 5, 2012

Named and Optional Arguments (C# Programming Guide) (link)

Named arguments enable you to specify an argument for a particular parameter by associating the argument with the parameter's name rather than with the parameter's position in the parameter list. Optional arguments enable you to omit arguments for some parameters. Both techniques can be used with methods, indexers, constructors, and delegates.

Read more ...

Monday, September 3, 2012

Why do web sites and software take so long to build? And why is it so hard? (link)

... in the history of the world, he said, is there one thing you can think of that has been hand-made, and on such a large scale as software, that was as complex?

Read more here...

Sunday, September 2, 2012

The Most Important Writing Lesson I Ever Learned (link)

Here it is. Here’s the #1 lesson you learn working in advertising (and this has stuck with me, to my advantage, my whole working life): Nobody wants to read your shit.

Let me repeat that. Nobody–not even your dog or your mother–has the slightest interest in your commercial for Rice Krispies or Delco batteries or Preparation H. Nor does anybody care about your one-act play, your Facebook page or your new sesame chicken joint at Canal and Tchopotoulis. It isn’t that people are mean or cruel. They’re just busy. Nobody wants to read your shit.

Read here more..

Saturday, September 1, 2012

An Introduction to Lock-Free Programming (link)

Lock-free programming is a challenge, not just because of the complexity of the task itself, but because of how difficult it can be to penetrate the subject in the first place.

I was fortunate in that my first introduction to lock-free (also known as lockless) programming was Bruce Dawson’s excellent and comprehensive white paper, Lockless Programming Considerations. And like many, I’ve had the occasion to put Bruce’s advice into practice developing and debugging lock-free code on platforms such as the Xbox 360.

Read more here...