How to Easily highlight source codes in content?

So if you are a blogger who writes on computer programming and publish source codes in your blog post or if you just want to publish some source codes in your website, then what you can do to stand-out the code from other text is

  • Use <code /> tags
  • Use <pre /> tags
Cool. It will look like codes but not look like as it looks like in your favorite code editor, with different colors for constants, variables, functions, strings etc. along with line numbers.

So, what you want to do is to highlight source codes and make them appearing like in a code editor, which is just not for colors, but for more readability too.

How to Optimize syntax highlighter loading speed?

If you are using SyntaxHighlighter in your blog or website, then you might have noticed that you have to load the brushes you used in a post or page. The way you load them is generally by 

  1. Linking specific brush scripts used on a given page or post, 
  2. Or you load them statically by including all the brushes being used though-out the blog or website.
The first option for loading is disgusting as you have to write the code for each post or pages, however it is better as in this way you load only those brushes you used in an specific post or page.

The second option is better as you don't have to write code for each post or page, but will put impact on website loading speed as you will be loading brush scripts unnecessarily in every post or page despite their usage.

10 Tips to Easily Get Approved by Google Adsense - 2016

Google Adsense is one of those advertising networks which consider publishers very carefully. Even after approval a publisher has to be really very careful as google adsense can ban their account at any moment for violating publishing policies.

However, in this post we will be discussing few easy tips for preparing your website so that you get approved by google adsense with minimum number of applications (yes, I doubt if anyone got approved in first try).

Consider the following easy tips:

5 Easy Ad Management Tips to Increase Adsense Revenue

Google adsense is so far the most preferred way to monetize websites, mobile apps, games, videos etc. It is reliable, robust and full of ads. The fill rate is very close to 100% that you will never see an ad space empty ever.

However, though there will always be ads in your ad placements, it is required to regularly monitor and manage the ads to keep the revenue flow upwards. In the last post, we learnt about 5 Best Ad Positions to Increase Adsense Revenue. In this post, we will learn about 5 Easy to Follow Ad Management Tips to Increase Adsense Revenue.

How to experiment with ad units in google adsense.

Google adsense is my number 1 ad provider because of a lot of reasons like blocking inappropriate ad networks, blocking inappropriate ads, blocking low paying ad networks from serving ads,  customizing ad styles etc. and mostly this one. You can experiment with the ad units you use to publish ads.

Experimenting ad units includes publishing different types of ads (text/image, only text) etc. in an ad unit and finding out which one is performing better than the other and many other types of experiments.

Let's see them one by one.

How to Customize Ad Styles to Increase Adsense Revenue.

Google adsense serves 3 primary types of ads which are banner ads, text ads and link ads. Among these 3 types of ads, banner ads may include images, animated images, animation, video etc. different types of ads.

As per google adsense guidelines, we are not allowed to modify the appearance of an ad. Also it doesn't provide a mean to do that. But adsense provides a way to modify the appearance of it's text and link ads. This is so great. We can customize the ad styles to meet the styles of our webpage.

How to find and block low-paying ad networks in google adsense?

Google adsense is awesome in case of filling your ad spaces or responding to your ad requests. To do this google adsense has a very big inventory ready all the time. But google display ads from third-part ad networks too.

And not of all of these ad networks are high paying ad networks. Some of those ad networks pay as low as $0.05 per thousand impression or much lower. So you should check if you are displaying most of your ads from these kind of low paying ad networks or not. If it is then you should look forward to blocking them.

In our last tutorial we knew that we can find and block less profitable and inappropriate ad categories and specific ads for our blog, so now lets see how to find and block low-paying ad networks in google adsense.

How to block specific ads and ad categories in google adsense?

Google adsense serves ads from variety of categories, from fashion to sports, from movies to education etc. mostly based on the contents of the page on which the ad will be displayed. However, sometimes it shows ads from categories which are not related to content. These are the irrelevant ads and we can block those ad categories and more specifically, we can block specific ads too.

Yes, that's right. So you can see we have enough controls on the ads that appear in our websites. Great, now let's see how to block specific ads and ad categories in google adsense.

5 Best Ad Positions to Increase Adsense Revenue

Google adsense is so far the most preferred way to monetize websites, mobile apps, games, videos etc. It is reliable, robust and full of ads. The fill rate is very close to 100% that you will never see an ad space empty ever.

However, though the ads will appear all the times, it doesn't guarantee revenue generation each time as most of the ads are CPC ads and it will only generate revenue when user clicks on them. Though google adsense is not only a CPC ad network and it also provide CPM ads, but its not in your control to show only CPM ads and google adsense tends to display CPC ads mostly.

Anyway, to increase revenue generated by adsense several things has to be considered along with experimenting with different options available. Steps that we can take to increase revenue can be categorized into 2 main categories; ad positioning and ad management. In this article we will focus in ad positioning in your website.

Get Source Code for Priority scheduling

Priority Scheduling:

In operating systems, tasks that are queued to be processed go through different scheduling algorithms in different operating systems. Priority Scheduling is one of them.

Priority scheduling is like shortest job first except that the next job to process is selected not by the amount of time it will take, but by the priority of the job. So in this priority scheduling each job has a priority value associated with it. The task with shortest priority value gets preferred. 

However, I explained priority scheduling in my another post earlier and as many of my readers wanted to have the source code, here I am publishing the source code of the program. I am not currently explaining the source code, please try to play with it to understand it. I am removing comments intentionally.

Get Source Code for Round Robin (RR) scheduling

Round Robin (RR):

In operating systems, tasks that are queued to be processed go through different scheduling algorithms in different operating systems. Round Robing or RR is one of them.

In round robin, like first come first served, the job or task that comes first, gets processed first, but not fully. Rather in round robin, a portion or segment of the task is completed at once, then the processor moves to the next task and then processes that same amount of task for this second task in hand and it continues. When a portion or segment of all tasks has been processed, the processor starts from the beginning of the task list again and continues to process a portion or segment of each remaining tasks. However in this way, as new task can be continuously added at the end of the task list, the processor might not come back to the head of the list sooner which might cause tasks to be waiting for much longer time ultimately resulting in halted situation.

However, I explained Round Robin (RR) in my another post earlier and as many of my readers wanted to have the source code, here I am publishing the source code of the program. I am not currently explaining the source code, please try to play with it to understand it. I am removing comments intentionally.

Get Source Code for Shortest Job First (SJF)

Shortest Job First:

In operating systems, tasks that are queued to be processed go through different scheduling algorithms in different operating systems. Shortest Job First or SJF is one of them.

In shortest job first, literary, the smallest task among all the remaining tasks will get processed first. 

However, I explained Shortest Job First (SJF) in my another post earlier and as many of my readers wanted to have the source code, here I am publishing the source code of the program. I am not currently explaining the source code, please try to play with it to understand it. I am removing comments intentionally.

Get Source Code for First Come First Served

First Come First Served (FCFS): 

In operating systems, tasks that are queued to be processed go through different scheduling algorithms in different operating systems. First Come First Served or FCFS is one of them.

In first come first served, literary, the task that comes first to be processed gets processed first, then the next one and this continues. This is a less preferable way of scheduling as any task can block the processor for infinite amount of time. Also as all tasks are given the same priority, more important tasks might be waiting too long to be processed.


However, I explained First Come First Served (FCFS) in my another post earlier and as many of my readers wanted to have the source code, here I am publishing the source code of the program. I am not currently explaining the source code, please try to play with it to understand it. I am removing comments intentionally.

How to connect Webmail with Gmail? Send/Receive emails from/to your webmail email addresses right from/in your gmail account.

Webmail is the mail platform that we get when we buy domains. Webmail generally offers three interfaces, Horde, Roundcube and SquirrelMail. No offense, but none of these interfaces offer modern facilities that we get from mail platforms like Gmail, Yahoo Mail etc. So what can we do?

Well, we can connect webmail with Gmail to Send/Receive emails from/to our webmail email addresses right from/in our gmail account. Yes, it's very possible. The recipients will still see that the email was sent from your webmail email address and not your gmail address. 

So let's get started.

Quick & easy Adsense reports and ads management with Google Publisher Toolbar.

Google adsense offers a number very helpful reports for publishers accessible from their dashboard in the reports section. But sometimes we might just need to know the amount we earned today, best performing channels or ad units, information about an ad currently displayed etc. and we might not want to load the whole adsense dashboard. Though loading the adsense dashboard is not a big hassle at all but still, what if a single click bring all these at once along with more features that helps a lot.

Improve adsense revenue with new Page-Level Ads for mobile browsers.

Google adsense is the leading online advertising network form websites, applications for windows, android etc., software, games and many more. Google adsense used to offer banner ads so far, but now it also offers Anchor/overlay and Vignette ads for mobile. These ads are really awesome to improve your adsense revenue. 

What are page-level ads:

Page-Level ads are those ads which you can't place at an exact place of your web page, such as footer or header or sidebar etc. Rather, they appear on their own optimal places. Such as the anchor ads will appear generally at the bottom of the screen and will stick at that position.

Improve adsense revenue with new Page-Level Ads for mobile browsers.


Adsense is not only a CPC network anymore, but also CPM, Active View CPM, CPE.

Google's online advertising network adsense is generally known to most of us as a CPC (Cost per Click) advertising network. That is, a publisher earns money only when users clicks on the ads s/he is publishing. Adsense is a renowned advertising network both to ad publisher and advertiser due to various reasons, mostly because its from google.

But, CPC started to generate less revenue as people started to get used to banner ads that google adsense offers. This is call banner blindness. People now can easily differentiate actual content from ads, no matter how much you customize the appearance of the ad (customizing text and link google adsense ads) using the available options from google adsense. So they ignore the ad and leave the page after they are done with the content. Ultimately resulting no revenue for the publisher, even from thousands of views!

Adsense is not only a CPC network anymore, but also CPM, Active View CPM, CPE.


But, No Worries. Google adsense now offer not only CPC, but also CPM, Active View CPM, CPE types of ads. And also not only banner ads, but also interstitial ad format for mobile, ads in google custom search, video ad etc. We will discus about different ad formats in another post. Today we will look at the different big types only.