Automating tasks with Cron jobs

Hello, everyone we are back again and this time with a handy tutorial on how to schedule tasks with Cron jobs

What are Cron jobs?

Cron is utility software used for automating tasks on a server system.  “Cron” stands for chronological, jobs which are supposed to run at a particular time. So using a Cron job you could specify to run a script or a command at a specific time on a specific day, week and month.

Syntax to specify a Cron job:

To specify a Cron job, you have to specify the exact time at which you want the command to run. Here is the syntax you need to use to specify a job.

  1. The number of minutes after the hour (0 – 59)
  2. The hour in military time (0 – 23)
  3. The day of the month (1 – 31)
  4. The month (1 – 12)
  5. The day of the week (0 – 7)


The Asterisk (*) Symbol:

As can be seen in the image above each asterisk symbol is a field and has a meaning, like the first “asterisk” is for the time in minutes. If you don’t want to specify a value for a field you can leave the Asterisk symbol there (*).

Example: If you want to specify a job that needs to run every month, then leave * in the fourth position that is the month field.

Here are a few examples with description to specify a job:

  1. 00  16  *  *  5  date

        The “date” command will run at 4:00 PM in the afternoon every “Friday” of every “Month”

     2. 30  16  *  12  5  date

        The “date” command will run at 4:30 PM in the afternoon every “Friday” in December

     3. 00  16  10  12  *  date

        The “date” command will run at 4:00 PM in the afternoon on the 10th of December.

     4. 00  16  10  12  5  date

         The “date” command will run at 4:00 PM in the afternoon if the 10th day was a Friday in       December.

With that cleared out, we can move on to the next segment of the article.

Continue reading “Automating tasks with Cron jobs”

How to setup RAID 1 on LINUX Server

RAID 1 consists of an exact copy of a set of data on two or more disks; a classic RAID 1 mirrored pair contains two disks. This configuration offers no parity, striping, or spanning of disk space across multiple disks, since the data is mirrored on all disks belonging to the array, and the array can only be as big as the smallest member disk. This layout is useful when read performance or reliability is more important than write performance or the resulting data storage capacity.


How to setup RAID 1 on LINUX

This article contains steps which give you the glance about “How to setup RAID 1 on your Linux server”. Things you will need:

  • More than one hard disk installed on your system.
  • Basic knowledge of Linux filesystem in case you come across any errors.Raid 1

So here is the step by step guide to setup RAID 1 on your system/server:

  • First, check the hard disks attached to the system using the command fdisk –l.

Here is what the output should look like.


  • Create a RAID 1 partition:  Type mdadm –create /dev/md1 –level=1 –raid-devices=2 /dev/sdg /dev/sdh.

NOTE: replace “sdg” and “sdh” with the names of the hard disk on your server that you want to add in RAID.


Continue reading “How to setup RAID 1 on LINUX Server”

Linux – Change the password of any Ubuntu user account including root

Have you forgotten your administrator password or the password of any user account on your Linux installation?  Well, worry not, because we are going to show you how to change it without needing a live installation of Linux.

Things you will need:

  • Know your way around a Linux terminal.

You can change the password of any user account in these easy steps:

  1. Enter recovery mode: To enter recovery mode press and hold down the shift key as the computer starts to boot.
    This is what recovery mode looks like:Linux
  2. Select the one that says (recovery mode) from the list. 
  3. Now you will see a recovery menu on your screen, Scroll down that list and select the option that says “root”. 
  4. Now the filesystem is in read only state, you have to remount it to get write permissions, to do that type: mount –o rw, remount / 
  5. Now you can set any user’s password using this simple command: passwd USERNAME (replace USERNAME with the name of the account whose password you want to change) 
  6. After entering this command you will be asked to type and retype the password, once you have done that, your password will be changed.

That is all you need to do to change the password of any user account on your Linux installation.

Stay tuned for our next article…

WordPress Google AdSense Plugin has been deprecated

You might be wondering why your Google AdSense plugin has been deprecated. Google has officially deprecated their AdSense plugin for WordPress. It is no longer available for new publishers to sign up for.


On April 5, 2017, existing publishers will not be able to change their ad settings or ad units through the plugin. Then on May 3, 2017, Google will no longer provide support for the plugin.

Google said “We frequently review our products and features to ensure they’re providing maximum value to our users. After reviewing the AdSense Plugin for WordPress, we’ve decided that going forward we can better support WordPress publishers through new innovative features like our automatic ad formats and other upcoming initiatives.”

Continue reading “WordPress Google AdSense Plugin has been deprecated”

Getting Started with Entity Framework Core

In this article, you will learn about the new lightweight version of entity framework that is entity framework core. If you have entity framework experience, you may be aware that EF core has been written from scratch to achieve some new goals. Here you will learn about similarities and differences from EF 6.

So What is Entity Framework ?

Entity framework is the set of .net APIs for performing data access in your software  and entity framework  is official data access tooling  from Microsoft .

It originated from Microsoft research and  then it was adopted from team who was responsible for ADO.Net as the next generation of Microsoft’s data access technology .

EF has gone through number of major revolution with most of new capabilities being added on top of what was built into the .net framework.With EF6 ,Entity framework was moved to codeplex and became open source and since then it moved to github and remains quite active.

Entity framework fits into a category of data access technologies called Object Relational Mappers (ORM). ORMs are designed to reduce the friction between how data is structured in relational database and how you define your classes ,without ORM we have to transform lot of code to transform database results into instance of our classes inn our software .

An ORM allows us to express our queries using our classes and then ORM builds and executes relevant SQL for us,but Entity framework is different from any ORM you might be familiar with.

While a typical ORM infers that the classes and database tables are of  a similar structure,Entity framework has a mapping layer in between and gives us a lot more flexibility in to how to get from objects to table and from object properties to table columns and for these mapping entity framework does start with some assumptions and we refer to those as  conventions but then you can apply additional mappings rules on top of conventions to be sure that in your specific scenario that the data is able to find its way back and forth between your objects and your database.


Why Entity Framework ??

EF Core Advantages

Continue reading “Getting Started with Entity Framework Core”

Firebase Complete Guide for Xamarin


Firebase is part of a growing trend known as “Back end as a service”. Traditionally configuration of a server would require you to fetch data via some API you have written in order to retrieve data from your server.  When using SQL, you would have to write code that stores objects and properties that can be accessed in your code.

A cloud-hosted NoSQL database. Data is stored as JSON, synced across connected devices in milliseconds, and available when your app goes offline. Intuitive and easy-to-use API. Remains responsive regardless of network latency or Internet connectivity so apps works offline.

What is amazing about Firebase, is that essentially with one line of code, you are ready to begin writing to your database instantly. This gets stored as JSON (JavaScript Object Notation) and can be read and used in your application nearly as easily.

Firebase expedites the storing and retrieving of data via a third party service and comes with its own API so you don’t have to write one.


Continue reading “Firebase Complete Guide for Xamarin”

Enabling SSL with IIS Express in Visual Studio Express

Enabling SSL with IIS Express in Visual Studio 2015

  • Select the startup project and press F4 (the function key) this will open the property window.
  • To enable the SSL with in IIS Express, you have to just set “SSL Enabled = true” in the project properties.
  • Once you change the value, Visual Studio set in automatic the SSL URL, e.g., https://localhost:44301/.
  • Copy SSL URL. Go to the Advance properties by pressing Alt+Enter, select the Web tab and set the Project URL with the same value of SSL URL, e.g., https://localhost:44301/.
  • Now you have configured the default URL of the web application, we can run the site (F5 or CTRL + F5).PS: The first time you set the secure protocol on IIS Express, you will be prompted to install the certificate for SSL.

    Enabling SSL

    If you are getting “IIS Error: cannot add duplicate collection entry of type ‘mimeMap’ with unique key attribute ‘fileExtension

    Please refer this .

Hope this will help !!

Store data in WCF Operation Context.Is ThreadStatic safe?


WCF infrastructure allows you to store context sensitive data in InstanceContext of the service instance similarly like we do in HttpContext of MVC. For that you should implement from IExtension and plug that class into WCF’s infrastructure.

public class WcfOperationContext : IExtension<OperationContext>
    private readonly IDictionary<string, object> items;

    private WcfOperationContext()
        items = new Dictionary<string, object>();

    public IDictionary<string, object> Items
        get { return items; }

    public static WcfOperationContext Current
            WcfOperationContext context = OperationContext.Current.Extensions.Find<WcfOperationContext>();
            if (context == null)
                context = new WcfOperationContext();
            return context;

    public void Attach(OperationContext owner) { }
    public void Detach(OperationContext owner) { }

Which you could use like that:
WcfOperationContext.Current.Items["data"] = "My Data";
string user = WcfOperationContext.Current.Items["data"] as string;

 Continue reading "Store data in WCF Operation Context.Is ThreadStatic safe?" 

Basic Fundamentals of AngularJS

In this article we will understand the basic fundamentals of AngularJS.

What is AngularJS?

  • Angular is JavaScript library.
  • It is a MV* framework, where MV * means:

M- Model : where you store data and state of application.

V- View   :  which actually renders to user the information they want to see.

* : Controller /Presenter/View-model

Features of AngularJS 

  • It is an open source library.
  • It is comprehensive which means it handles AJAX communication with your server so that you can send and receive data from back-end.This data is stored as plain JavaScript object.
  • It supports two way binding, which  means that the user input from fields is instantly updated in angular models.
  • AngularJS also employees technique called Dirty Checking which means that you don’t have to put data in special structures and call getter and setter methods to read and write to your data . You can simply put data in plain old JavaScript object and Angular will respond  whenever your data changes and update your view.
  • AngularJS is built on Dependency Injection.This lets you encapsulate pieces of your application better and also improves test ability.
  • AngularJS also handles routing for moving from one view to another .This is the key piece in building Single Page Application or SPA.
  • AngularJS not only supports unit test but also integrates end to end testing.

Directives :

AngularJS extends HTML by providing its own elements and properties called Directives.These are used to interact with your HTML DOM. It teaches your HTML new tricks.It is an extended HTML vocabulary.

Angular Components:

Everything starts with controller, it is a central player.screenshot-from-2016-09-17-011954

Continue reading “Basic Fundamentals of AngularJS”

Basic Git Hub Usage Manual

Git Hub Usage Manual

GitHub Account Creation And Setup Configuration:

  1. Need to create an account on with official email id. And also activate two factor authentication and set profile picture over there. Once done with these inform Jaco about it, so he can add you in the CeX organization account.
  2. Now create the Personal Access Token from the Settings, it will be useful when we want to push the changes to the remote through Git Bash.
  3. Download GitHub Desktop from and Git from and install these two applications.
  4. When you start GitHub desktop, you have to login over there. To login on GitHub Desktop goto Tools And Options and then in Options you will find the add account option.
  5. For Git open Git Bash and run $ git config –global “<EmailID>” command, this will configure your account in Git.

Git vs GitHub

Continue reading “Basic Git Hub Usage Manual”