In the last 2 months I have been co-authoring a new project with Sasha Khamkov called Gisto a  cross platform snippet management tool based on GitHub infrastructure written in AngularJS and wrapped around node-webkit. It is an open source project we would love if you will check out our GitHub repository and participate in the project.

 

AngularJS provided us with allot of great tools to build this application, one them includes the $http built in service.

 

$http provides you a nice clean way to create ajax requests to get your data, of course we wanted to show loading notifications while data is loading, so the user does not think something is wrong if a request happens to be lengthy due to server load or slow internet speeds.

 

Angular provides you a nice way of intercepting all $http requests using response interceptors, however this presents two issues for our use case:

 

1. Internal usage of the $http service
Angular internally uses the $http service to load things such as partial views into your application which can cause the loading notification appear in unexpected times.

 

2. The user is aware of every request
Every request you send using the $http service is being notified to the user which means if you wish to do polling requests or just check for updates in the background the user will be aware of. This isn’t always the wanted behavior.

 

 

In order to display notifications only when needed and in an automatic and unobstructive way I have created a wrapper around $http service. This service simply passes your request to the $http service fires the loading indicators and returns it to you using promises, the service mimics $http so no code changes are needed at all except for the function being called.

 

 

Here is an example use of this service:
The service code is available here:  
In summary, we have created a wrapper around the $http object so we may call it exclusively and yet easily as angular allows us, this way we can control which requests the user is aware of and build a better experience for our users.

 

Gisto is now entering alpha phase which you can download at our project page or build from source, we would very much appreciate contributions such as feedback, feature requests and pull requests.

There is still allot of work and polish to be done and we would love your feedback.

As I was setting up my VPS to host this site, I came across the need to set up an automated backup of my databases. After a little research I found out that SQL Server Express editions did not have such a feature, at which point i was very disappointed.

 

After some more research I found a few tutorials across the web suggesting to do such a thing with batch scripting, by issuing a BACKUP DATABASE query, sadly this could not work for me.

If I was to set up more databases i would have to add them manually to the batch file each time, which is quite inconvenient and if I were to want a different backup type such as full other than differential or I would like to change the location of the backup, I would have to edit this batch file, once again.

 

So I have stepped up to the job and created a small console application using .NET 3.5 that would do this for me.
The application has a few features and allows me to change the configuration by using parameters which are run along with the application.

SQL Backup Utility

 

I have shared this application on Google code, you can see the project page here: SQLBackup Utility.

You can also view the source here: SQLBackup Utility Source.

 

Update: Now added Dropbox upload functionality have both local and remote copies.

 

Feel free to use it by the terms of the GNU General Public License v3.

Windows Live Writer is a great editor, i cannot possibly express the value of a good editor used for adding and editing content on the fly.

It is already implemented in many great existing blog systems out there, and it isn’t hard implementing on your own website. It is a great editor and i think you would be crazy not to use it.

 

Other than that, Windows Live Writer has a large amount of plug-ins that you could download from the Live Gallery over at Live Gallery. An example of that would be the PreCode Snippet, If you ever used Syntax Highlighter you know how important it is for a technical blog, and the benefits of such a tool.

 

the PreCode Snippet allows you to link to code straight in your editor in a convenient way, no more messing around with tags or escaping ‘<’ characters by yourself.

Here is an example of what PreCode could do, and what it looks like on a real site.

 

namespace glikm.com
{
public class Main()
{
Foo foo = new Foo { foo = "Foo" };
public void MoreFoo(Foo foo)
{
foo != null
? Console.WriteLine("Yay more Foo!")
: Console.WriteLine("Boo! We want more Foo!");
}
}
}
view raw example.cs hosted with ❤ by GitHub

I Highly recommend implementing this great editor for use with your website or check if your current blog system supports it.

When i was working on my site, i was looking for a good authentication system solution, apparently that solution was right under my nose.
ASP.NET MVC 2 Built in authentication system.

 

This is a complete authentication system including User registration, logging in, Managing users and editing roles. I thought this will be a great solution as i did not need much from the authentication system.
Also this system can be easily transferable from project to project, and will run on any ASP.NET Server which is great!

 

I thought I’d share this experience, I have also edited the authentication system to comply better with IoC and MVC Concepts

 

There is a solution file at the end of this post for those wishing to just poke around.

(more…)

I always thought those kind of comments are pretty silly, yet they are so common.
What could possibly benefit you from being the first commenter on some article of some sorts?
Thats beyond me, anyway back on topic.

 

This is the first post that i am posting using the indoor admin system, later on i will look on adding Windows Live Writer which i think is a great editor, but one thing at a time.

 

I will also test out the comment system provided by Disqus, I have seen a great increase in this commenting system being used, including high traffic websites so i thought i’d give it a try, and i must say it feels great so far.