Blogging to make money

Do you have a blog and want to monetise it or you want to start blogging for money? Technically anyone can start a blog and monetise it but it takes time and patience to get decent amount of traffic and earn reasonable amount of money. But, don’t worry you are not alone; there are hundreds [...]

READ MORE >>

Different types of blogs

So, you have decided to start your own blog? Hang on a sec; you need to know a bit more about blogging so do your research. By definition, a blog is a website where you can share your thoughts or activities/hobbies. The term “blog” is from two words “web” and “log” and to write content [...]

READ MORE >>

Why should I start a blog

Blogging is a great way to connect to the world. You can express your ideas, write anything you want/love and get opinions of other people. You can blog anything about e.g. you can start writing about your daily routine or you can write about your gardening hobby. A lot of bloggers make handsome amount of [...]

READ MORE >>

How to break jQuery each loop

You can break jQuery each loop by returning false. In following example jQuery each loop will break when it finds Manchester.

READ MORE >>

SQL Server – Enable/Disable all triggers in database

Have you ever come across a requirement to disable all triggers in current SQL Server database. Here is how you can achieve that. Disable:

Enable:

Enjoy!

READ MORE >>

SQL Server – Get column values as comma separated string

While working on a recent project I came across a requirement to get all values from a column as a single comma separated string. I thought it worth sharing how I achieved that. Here is a sample (I hope this will help you)

READ MORE >>

Lazy Loading OR On-Demand Loading

Firstly, few words about Lazy loading, it’s a design pattern in which you don’t load/initialise objects until they are needed. Have a look at following example

As you can see we are not initialising ingredient repository and not loading ingredients until there is a call to access the property. But my point is, it’s [...]

READ MORE >>

Using jQuery :has() selector

I’ve seen many developers not taking full advantage of jQuery’s rich library, so I decided to write about little but useful functions jQuery provides. Today, I’m going to introduce you to :has() selector, according to jQuery description “this selects elements which contain at least one element that matches the specified selector.” Here is how you [...]

READ MORE >>