Input type File validation – Client side

Thinking of allowing only specific file types to be browsed through File Input HTML field?? Here’ a simple regex based javascript that can help you out with the solution. It’s based on the file extension of file being browsed and clears the input field if validation fails. The allowed list of file extensions is exhaustive …

Google Analytics: Track PDF links on webpage

Tracking on various links on your webpage is very important from Marketing perspective. It provides up critical information on how success you online campaign is and whether it attracts the intended audience. There are many tools/services available today that enables you to track pages, for instance, Google Analytics. We can leverage such services to a …

Windows – Directory structure treeview

Representing a directory structure recursively in treeview form is very useful as it helps in understanding the environmental setup in a better way. There are tools that can do it for you but here is a simple but very impressive MS-DOS command “TREE” that can do this for you. Its available in all version of …

Creative QA – Key Focus Areas

Web applications has been changed drastically over decade in the sense they are more interactive. From static HTMLs to dynamic ASP.NET or JSP based application followed by AJAX-enabled web applications and now client-side libraries like jQuery has added spice to them making them even more interactive and responsive. The change is not only confined to …

Logging Exceptions In-Depth

Exceptions are safeguards to deal with any unexpected or exceptional situations and logging them helps finding the root cause of issues during runtime. Significance of logging becomes even more critical on production where resources to debug are very scarce. So, to have in-depth information on what gone wrong and where play a very important role …

Resize Image – Programmatically

Thinking of resizing an image programmatically? Pretty simple straight forward. Once done, the process can be use to resize images in bulk without any human intervention & third party software. Below is the C# implementation to do the same:

This implementation can be further improvise to generate various device specific renditions for an image. …

StreamHandler Read Bytes

Getting bytes from a stream or file is quite a normal scenario & once you are able to retrieve the bytes, it can be saved in database as BLOB content as well. This is very handy way of storing any file type (text, audio, video, pdf, etc.) and then play around. Below is C# implementation …

Content Delivery Network

Content Delivery Network (CDN) is network of geographically distributed multiple data centers with aim to serve end-user with higher availability and performance. Contents are served to end-user user from the nearest¬†available data center. Apart from this, CDNs also offloads the traffic served directly from the content provider’s origin infrastructure, thereby providing other secondary but important …