Quantcast
Channel: CodeProject – Tharaka's Blog
Browsing latest articles
Browse All 36 View Live

Image may be NSFW.
Clik here to view.

Round up a number to highest 10s place

Download Source Code Recently we faced a problem that we need to round-up a number to greatest 10s place. For ex: we needed to round-up a number as follows 1023 -> 2000 37911 -> 40000 912345...

View Article



Image may be NSFW.
Clik here to view.

Comparing time part only without comparing date part in SQL

Recently one of my colleagues asked how to compare only the time part of the DateTime field. I have seen many of us struggling to find an answer for this ( including me). If you are one of them, here...

View Article

Image may be NSFW.
Clik here to view.

(413) Request Entity Too Large

Recently I worked with a WCF web service which is hosted in IIS7, and I used one of the service methods to send a byte array which contains a picture. This works well with small size images, but when...

View Article

Image may be NSFW.
Clik here to view.

Connect to Ubuntu from Windows via RDP

In my office, we have an Ubuntu box which is installed OWASP tools (I’ll get back with what is OWASP later. For now check https://www.owasp.org). My laptop installed Windows 7 and I wanted to remotely...

View Article

Image may be NSFW.
Clik here to view.

Exclude crystal report embedding when building the ASP.Net web site

If you have worked with ASP.Net web applications which include number of crystal reports as part of that, you might have experienced it takes a long time to build the web site. This happens, because by...

View Article


Image may be NSFW.
Clik here to view.

Configure Entity Tags (ETags)

If you have ever used the YSlow (http://developer.yahoo.com/yslow/) to analyze the web page to improve the performance, you may have experienced with “Configure ETags” alert. What is Entity Tags...

View Article

Image may be NSFW.
Clik here to view.

Web service and Script service

Most of you are familiar with writing a web service using c#. Visual Studio provides the project template that easily creates a web service for you. I am sure you may know how to call this web service...

View Article

Image may be NSFW.
Clik here to view.

Counting Consecutive Dates Using SQL

Download demo query Recently I have answered one of the SQL-based questions in the CodeProject. Thanks for the participant that question wake up me to write this blog post. Question: He has a table...

View Article


Image may be NSFW.
Clik here to view.

Online tools for troubleshooting web, SQL, XML and JSON

Have you ever wanted to troubleshoot someone else web page that contains the combination of JavaScript, CSS and HTML? Have you ever wanted to troubleshoot someone else SQL query without entering to the...

View Article


Image may be NSFW.
Clik here to view.

JavaScript Frameworks and Resources

Knockout.js Knockout is a JavaScript library that helps you to create rich, responsive display and editor user interfaces with a clean underlying data model. Any time you have sections of UI that...

View Article

Image may be NSFW.
Clik here to view.

How to Fix Orphaned SQL Users

Recently I had to involve in a database migration task. I backed up the database and restored successfully in the new server. However when I access the database through the web site, database login...

View Article

Image may be NSFW.
Clik here to view.

Generate insert statements from the specific table data using SQL Server

When you are deploying your application, sometimes you may want to generate SQL script with the insert statement of the specific database table. The following article shows two easiest ways to do this...

View Article

Image may be NSFW.
Clik here to view.

Emoji and web application

Download SQL query I am back after few months or so of not blogging. Have you heard something called “Emoji”? Emoji; is the Japanese term for the ideograms or smileys used mostly in Japanese electronic...

View Article


Image may be NSFW.
Clik here to view.

How to transfer ownership of your android application

Suppose you have developed an Android game and publish that on the Google play. Many users downloaded your app, and you have released few versions also. What if a company wants to acquire your app...

View Article

Image may be NSFW.
Clik here to view.

Automate PNG & JPG Image Optimization

Download Source Code Introduction If you are a web developer, you already know how important to reduce the image size by compressing the image. When you are checking the page speed using the tool like...

View Article


Image may be NSFW.
Clik here to view.

Just Learned: Self-XSS

Have you ever tried chrome inspector with Facebook? If so, I am sure you have seen this. This warning message is to help prevent Self-XSS scams. Self-XSS Self-XSS is a social engineering attack that is...

View Article

Image may be NSFW.
Clik here to view.

Reflection deserialization and custom attributes

Download Source Code So, last week one of my colleagues wanted to serialize an object along with custom property attribute to JSON. Interesting… JSON.NET by default will not allow serializing custom...

View Article


Image may be NSFW.
Clik here to view.

Some SQL Tips

1.  I am back after a very long break. So, I somehow forgot SQL Server ‘SA’ Password, and this is how I recovered that. Stop SQL SERVER Change the startup parameters by adding add -m; Start SQL Server...

View Article

Image may be NSFW.
Clik here to view.

Windows 10: GodMode

GodeMode is a hidden folder trick that allows users to access all of the operating system’s control panels from within a single folder. To enable “GodMode” feature for Windows 10, you just need to...

View Article

Image may be NSFW.
Clik here to view.

Small Exercise

In a recent project, I got a list of integers something similar to following. 1 12 123 1234 12345 …. 123456789 and, I was asked to add zeros to the left or right of the list and make it as below. List...

View Article
Browsing latest articles
Browse All 36 View Live




Latest Images