Archived articles
Archive for June 2014
29
Jun
2014
Database Change Notifications in ASP.NET using WebSocket
.NET
126 titles
Display database change on website in real-time
0
Database table changes are usually not displayed right away in an application, escecially if it is a web application. With HTML5 and Web API that is about to change...
read more
28
Jun
2014
Async file upload with MVC4
.NET
126 titles
Uploading file asynchronously using JQuery and MVC4
0
Uploading files with form submit on web page, especially large file requires user to wait for browser until file is uploaded. This does not produce very nice user experience as user needs to wait without any notification for file to be uploaded...
read more
25
Jun
2014
Using WebSocket in MVC4
.NET
126 titles
Real time data update with MVC4 and HTML5 features
0
Ajax is really cool. You can pull your data without refreshing the whole page, but increasing user experience and downsizing bandwidth for website.
If you have some live data which is changing really often, the best way to display it on website is to use pulling mechanism...
read more
17
Jun
2014
Goodbye JQuery color-picker plugins
JavaScript
29 titles
Color picker input in HTML5
0
A lot of browser these days support HTML file but not all of them in the same percentage. There are really cool stuff in there which makes developers and designers life a lot easier...
read more
16
Jun
2014
Returning an image in Web API method with fallback result image
.NET
126 titles
How to return an image in Web API method
0
Imagine the following scenario. You are building a social network like website and you need to create your own API to enable other developers to integrate with your web location really easy.
One of the things that most popular social networks now provide in the API is providing profile image...
read more
15
Jun
2014
Getting System.Drawing.Imaging.ImageFormat from a string
.NET
126 titles
Get ImageFormat based on file extension using Reflection
0
Images are part of pretty much any application especially web. Not so rarely they need to be protected or exposed from a different sources which cannot be accessed directly with just typing URL to it's actual location.
It all comes down to writing image bytes to an output stream...
read more
13
Jun
2014
Request different data type from Web API with JQuery
JavaScript
29 titles
XML/JSON in return result of Web API REST service method with JQuery
0
In my previous article Different data type in Web API response of the same method I described how to get different response with HttpWebRequest in C#.
Here I will demonstrate how to achieve the same thing but in JQuery client side code. Since Web API reponds based on accept header value, we can set it in ajax request in JQuery.
...
read more
12
Jun
2014
Different data type in Web API response of the same method
.NET
126 titles
Both XML and JSON in return result of Web API REST service method
0
Web API restful services are very flexible and they return different data format (JSON or XML) depending on accept type header value from your browser (or other client).
However this is not always so precise so sometime you have to force return type. More on how to force return type on API method side itself you can find in this article...
read more
11
Jun
2014
Optimized usage of GoogleMaps API
JavaScript
29 titles
Referencing GoogleMap API safely on your page
0
GoogleMaps are very useful to show location on your page. It is not a big problem if you have only one map, but in some cases you might have to add few maps on the page.
As many maps you want to display you only need to reference API once...
read more
10
Jun
2014
Aggregating RSS feeds from Umbraco content
Umbraco CMS
25 titles
Serving Umbraco website content in RSS format
0
RSS stands for Really Simple Syndication. It's an easy way for you to keep up with news and information that's important to you, and helps you avoid the conventional methods of browsing or searching for information on websites.
Umbraco stores it's published content in XML format, so exposing website data is really easy...
read more
.NET
7
Apr
2018
Simple implementation of ASP.NET Web API Basic authentication security
Securing Web API with simple basic authentication and consuming it from the client code
28
Mar
2018
Getting GIF image information using C#
Extracting GIF image data in .NET using C#
25
Mar
2018
How to avoid Thread.Sleep in your production code in .NET
Avoiding Thread.Sleep in production code in .NET using C#
23
Mar
2018
Reduce traffic by serializing JSON with different alias with Json.NET and C#
Reducing speed and increasing performance by reducing traffic with JSON size
JavaScript
9
May
2017
Non blocking CSS load on the page
Load external CSS files in an async manner
16
Mar
2017
Serialize html form to JSON without using JQuery
Transform user input from HTML form fields to JSON
17
Jan
2016
Copy text value to clipboard using jQuery
Simple sample of using jQuery to copy value to clipboard
11
Jan
2016
Resize image on the client side with JQuery
Reducing the upload sie by resizing image on the client side
SQL/T-SQL
28
Apr
2016
Create XML/HTML with T-SQL
Generating XML/HTML output in SQL Server
24
Nov
2015
IP address to octets split in TSQL
Split IP addresse into octets in SQL Server
20
Jul
2015
Getting first and last second of the current year, month and day
Using minimum and maximum date time in SQL query
13
Apr
2015
Dealing with duplicate rows in SQL Server
Finding and cleaning up duplicate rows in SQL Server tables
Umbraco CMS
2
Mar
2018
Minify HTML output of your pages
Minification of HTML output using ASP.NET IHttpModule
18
Apr
2015
Generate sitemap.xml on the fly in Umbraco CMS
Simple sitemap.xml Umbraco handler
2
Mar
2015
Accessing UmbracoHelper in HttpHandler request
Working with UmbracoHelper and IPublishedContent in HttpHandler
14
Sep
2014
Same page language switching in Umbraco
Land on the same page in different language in Umbraco using Relations