Skip to main content

Posts

Save your codes hosted on Google Drive - It is deprecating soon

Hey everybody, did you know that Google is shutting down web hosting via google drive. By the way, we had got to host our static sites and some codes in google drive hosting. But recently, it has informed its users that they are deprecating it. So I just tell you to save all your codes which are only in google drive hosting in your own back up. Otherwise, it will be lost by August 18. By the way, Google is going to shutting down google drive web hosting from 31 august.

Username availability checking in database using php with jquery ajax method

Jquery ajax is the best way to check whether the username is available or not. Only using core ajax code is too long and difficult rather than ajax jquery. So use, jquery ajax method for ajax operation. Actually, ajax helps to get or retrieve and post the data from and into the database without reloading the pages.

Lets follow these core coding of jquery ajax which helps you to check the availability of username or any other data.

First of all you need different 3 codes:

Database tableSimple HTML Form with Jquery Ajax methodPHP coding "check_username.php" Database Table Create a table name users in database name test using like following codes:
CREATE TABLE users(
id int(11) not null auto_increment
username varchar(255) UNIQUE KEY,
password varchar(255),
PRIMARY KEY (id),
);
Simple HTML Form <!doctype html>
<html>
<head>
<script src="<ADD JQUERY LIBRARY URL HERE>"></script>
ADD BELOW SCRIPT HERE OR ADD THE URL
</head>
<body>
<f…

How to Highlight an Author Comment in Blogger

Commenting is the best way of increasing relationship between you and visitors. If you are a blogger and you are getting more comments and visitors, they also may ask some questions by commenting to you and may be you are solving these difficulties of them but how to know that the question's answer solver is really that you. There might be positives and negatives comments, anyone can write comment by using admin as his/her name, so if he write negative being admin then what do you do? Then in that time there might be some problems. So to avoid this kind of problems, you should highlight your comment. I mean you should highlight the original admin' comments.  We already have highlighted by using verified twitter tick mark, which also can not be more effective for highlighting because it is small which cannot be seen easily. Do you wish to highlight your blog comments? If you want then here are the tricks for it. You just follow the following process and then you will get the r…

How to Find Most Searched Keywords

Search engines always prioritize to the keywords which are mostly search in the web search engines. Most popular search engines like Google, Bing, Yahoo, MSN etc gives more priority to the mostly searched keywords because in an hour and a day thousands and millions of people searched that kind of keywords like Barack Obama, Putin, China Economy and in a minute thousands of visitors reach a website. So that to show the right and best result to the viewers. Search Engines filter and rank a best blogs and site in the first position in a particular keywords.

Ranking a keywords can be affected by the rank of your website. If your website rank is less than 1 or it is 0 or N/A, your posts or article cannot be in a first rank even your article is best than other sites. So you should consider to get higher rank of your sites and blogs.
There are four ways to find the searched ratio of keywords:Using Google TrendsGoogle AdwordsUsing Google Search Engine SuggestionSearching in the Forums Using …

Ten Amazon Shopping Tips and Tricks You Must Know

“There are two kinds of companies: Those that work to try to charge more and those that work to charge less. We will be the second”- Jeff Bezos, founder and CEO of Amazon
Is your favorite lipstick out of stock? Is a particular item not available for sale in your country?  Nothing to fear as Amazon practically has you covered. The company’s vast inventory makes it possible for it to be a goldmine for anything and everything. If you cannot find a particular item in your local retail store, chances are Amazon has it in stock making online shopping the perfect alternative for shoppers who prefer the convenience as well as the accessibility. Despite its popularity, there are many tips, tricks and a handful of shopping hacks that even the most seasoned shoppers are unaware of. Though Amazon may be a jungle, albeit in a metaphorical sense, some areas of the website are still vastly unexplored, and this article will assist you in navigating these uncharted paths by providing some tips and tr…

REVEALED : ANDROID N (Nougat) Latest Feature Review

Android Nougat discharge date 
Instead of hold up until Google I/O 2016, Google chose to amaze all of us by discharging the main Android N designer review on March 9, two entire months sooner than anticipated. The Android N sneak peak went live for the Nexus 6P, Nexus 5X, Nexus 6, Nexus 9 (Wi-Fi and LTE), Nexus Player and Pixel C on the Android Developers site. The main beta discharge hopeful showed up amid Google I/O on May 18, 2016.

The last Android 7.0 Nougat discharge date has been affirmed for Q3, 2016, giving Google until September 30 to follow through on its course of events. This implies the Nexus 6P (2016) and Nexus 5X (2016) – or whatever they will be called for the current year – will come somewhat sooner than anticipated as well, as the new form of Android is constantly displayed close by new Nexus gadgets.

The Nexus 4 was declared on October 29, the Nexus 5 on October 31, the Nexus 6 on October 15, the Nexus 5X and 6P on September 29. So we may even see the current year&…

Top 10 SEO Companies in Nepal

SEO is the best way to increase organic visitors in a site. Every business organization wants to grow their business in any manner. Nowadays, many business organizations are moving on online business leaving their traditional marketing approach. Developed countries have already been rapidly shifting their all business in online and they are successful in online business. So online business marketing has been challenging in current days. Therefore, Search Engine Optimization is being popular day and day. In order to provide SEO classes, SEO consultancy has been growing rapidly not only in developed countries but also in under-developed and developing countries as they are also shifting their businesses in online.

Although Nepal is developing country, there is also very much scope of Search Engine Optimization. In Nepal, most of the SEO projects are offered by Trekking and Tours Companies because trekking and tours field is the only best way that can grow the GDP (Gross Domestic Produc…

How to Earn From Microworkers

Microworkers is for the micro jobs. It means you can not earn more money by completing one task. But when you complete your job correctly, you will sure collect your money. Microworkers is very trustful platform, it never cheats you. There you can see no of tasks in the microworker sites, then you should complete these task. In each task has its particular money. Many task has less than $ 1 but you can do multiple task. It is very easy to complete these task but you should have patient do to them. If you are searching for long time to work and get money, microworker can be your best platform.
Microworkers provide mostly simple and click paste jobs, sign up and sign in, writing jobs, commenting, article writing, guest posting, photo liking, click and giving the impression to the sites etc.
How to get money through Microworkers.com? You should just sign up the microworkersaccount. Then just log in into the dashboard. Then their you can see the microworkers tab bar tabs: Jobs, Hg jobs,…

Difference between Pipe and Fifo

Pipe and Fifo both are IPC (Inter Process Communication) object.
Pipe (IPC Object)Pipe does not have any name unlike Fifo.Pipe is a structure of data which is contained into the memory. It is removed when existing process terminates.Basically, Pipe is used to communicate between 2 or more related processes.If Pipe is already in opened state, then it does not need to be opened.Pipe provides simplex data floweg: pipe(int fd[2]) Fifo (IPC Object)Fifo is also an IPC object, but it has its name.Unlike Pipe, it is a structure of file which is created in disc.It is also used for communication but only between unrelated processes.It should be opened every time when it needs to write and read.Fifo provides half duplex data flow.eg: mkfifo(const char * path_name, mode_t mode)

Inter Process Communication Objects - pipe()

In unix system, pipe is known as an inter process communication mechanism.A process can write data to pipe, and that data can be read by another process.In pipe IPC, the data is handled in fifo i.e first in first out order.Pipe does not have any name, it is only created for one use and both ends must be inherited from the single process which created the pipe.Since it is a IPC object, it is used to communicate between two process i.e parent and child.Pipe is created using pipe function (pipe()). Pipe also creates description pair which can be denoted as fd[0], fd[1]. Primarily fd[0] for reading and fd[1] for writing.As pipe sets up, the data can be passed using read and write functions.

Elementary System Calls - Wait() and Waitpid()

Wait function suspends the execution of the calling process until one of its children terminates.
Waitpid suspends execution of the calling process until a child specified by pid argument has changed state. Wait():Wait() continues to block the caller until a child process terminates.If there are more than one child running, wait() returns the first time one of the parent's offspring existsIt doesn't support job control.
Waitpid():It can be either blocking or non-blocking: if 0, blocking
if WNOHANG, non-blocking It is flexible
It waits for child process if pid is -1
It waits for child of greater process id if pid>0
It waits for any child whose process group ID equals that of the calling process if pid equals to 0.
It waits for any child whose process group ID equals that absolute value of pid. It supports job control.

exec() family calls - Network Programming

A child process (process created using fork()) can execute any other program using exec(). There are 6 exec() family calls in network programming.
The process is executed in memory by new program file from disk, and the process is replaced as well.

In here, the new program only executes; there is not being created new process. Therefore, no change occurs in process ID.

Six exec() family calls:

1) execl: 
execl is the first member of exec() family.It can take several arguments. It always takes full pathname as the first argument.It accepts a null pointer which marks the end of arguments in execl.

Lets see a simple example of execl. Lets suppose we have newscript.sh

#!/bin/ksh
echo "Hello Execl"
Now lets see a simple program which is written in C language to understand the actual use of execl.
void main()
{
      execl("/home/users/newscript.sh","newscript.sh",(char *)0);
      exit(0);
      getch();
}
2) execv: 
execl and execv works same, however, ther…