Top Reasons To Use Grunt - A Leading JavaScript Task Runner

Top Reasons To Use Grunt - A Leading JavaScript Task Runner

Though web development has evolved into one of the most promising fields of career, the majority of mundane work associated with the same has often refrained students from choosing the same. Fortunately, we can rely on a good task runner which can automate the tasks(for eg: compilation, liniting, minification, unit testing etc.) which need to be performed on a repetitive basis. So, if you're a JavaScript developer who's in a fuss about the effective execution of multiple tasks which need to be performed repetitively, then using the popular Javascript task runner called Grunt can work for you. Keep on reading the paragraphs that follow in this post to get a bigger picture of Grunt and reasons behind using the same as an individual and/or a team.

How To Configure WhatsApp Service For Web

How To Configure WhatsApp Service For Web

The most popular messaging service WhatsApp is now able to communicate with friends from their Computer. WhatsApp has launched this web service yesterday.

Last month, it was leaked that WhatsApp was working on a web service and finally from today they are introducing it to the public. The feature is called "WhatsApp Web," which provides it's users the ability to read and send messages directly from their web browsers.

The feature currently works on Android, Windows Phone, and BlackBerry, however sadly, there's no web solution at this time for iOS users because of limitations of the platform.

"Today, for the first time, millions of you will have the ability to use WhatsApp on your web browser," WhatsApp wrote in their blog. "Our web client is simply an extension of your phone: The web browser mirrors conversations and messages from your mobile device — this means all of your messages still live on your phone."


How To Configure 

1. Update your WhatsApp if you haven't updated, open the application > open WhatsApp menu > tap on WhatsApp Web.

WhatsApp Web


 2. Now you will be asked to scan the QR code give in WhatsApp web, tap on OK, GOT IT and scan the QR code.

Scan QR Code

TADA! Here we go!



WhatsApp Web Conversation

Keep in mind that you need an active internet connection both in your phone and your computer.

The web version supports desktop notifications so you will be notified when you receive new WhatsApp messages even when you're not checking the web page. The Facebook-owned company is also working on a voice calling feature that WhatsApp will soon launch.

Programming and Tech Tips For All To Use

Programming and Tech Tips For All To Use

Programming and technology points have been rather prevalent and important to explore over the years. There is a clear need to take a look at such programming plans can be used in any spot though. There are a few sensible tips that may be used today in order to help people understand what is required of them when getting their setups ready for whatever it is they want to create and establish. These are all sensible tips that can work wonders for anyone these days. 


Code analysis programs are always helpful.
 
Code analysis programs are being used these days to help with testing out the codes that are being used in computers and if they are actually active and functional as desired. Programs like Klocwork, Polyspace, Pretty Diff and Black Duck Suite have been big hits with many who want to find ways to get their programming efforts to be as easy to handle as possible. All programmers need to take a look at what code analysis programs are available for use in their environments. Of course, these will vary based on what is available for use.

Always check the code before troubleshooting anything.

The most important tip to use is to check the code before any troubleshooting activities can take place. This is to ensure that there are not going to be any problems coming out of a program that could only be made worse if some professional troubleshooting functions are managed at any time.

Work with the Final variable.

The Final keyword needs to be used when drafting variables the right way. This is to see that values of items cannot be set more than once after they start running. This can be used to keep the items in the website as consistent and accurate as possible so nothing wrong can happen with them being used at a given time.

Use only one side effect at a time.

It is typically best to stick with one side effect at a given time. Side effects refer to what happens in addition to getting certain values ready in the programming process. It is best to keep the programming process as simple as possible in this case.

Create more accurate and direct names.

Finally, all processes must be used with their own unique and specific names. This is to ensure that the process of generating data will not be all that hard to handle. If the right plans are created in this case then the overall process of coding items will be a little easier for all to work with.

Watch for cut and paste processes.

While cut and paste processes may be useful and can help anyone to save time in the process of getting items ready, you need to be rather cautious. Use cut and paste if the program is a little easier to work with and is not going to be far too complicated. If the program is going to be easier to read though cut and paste processes then it should be just fine as it is. The key is to ensure that the programs being used are as easy to handle as demanded and will not be all that tough to use.

Programming and tech processes are all fascinating things for people to take a careful look at when it comes to finding ways to get a program to really stand out and to work as well as it needs to. The right plans must be established as a means of getting anything to work properly and with more than enough control as needed. After all, a good code setup needs to be designed to keep anything running with ease and clarity in mind.


Author Bio

David Miller is an educational researcher who has several years of experience in the field of teaching, online testing and training. He is associated with prestigious universities and many leading educational research organizations. Currently, he is pursuing research in eLearning software and is also a contributing author with ProProfs.

Convert Strings to Upper Case in JavaScript

Convert Strings to Upper Case in JavaScript

This will teach you the way to convert strings to upper case in javascript. we will use these if we've a text field needs to capitalized all inputted text or simply the 1st letter of the word.

Source :



Hope you learn from this

How To Make a Age Calculator in Java

This is a age calculator made in java, it's a console application by the way :)

source :

 import java.util.GregorianCalendar;
import java.util.Scanner;
import java.util.InputMismatchException;

public class age_calculator {

    public static void main(String[] args) {
        int day = 0;
        int month = 0;
        int year = 0;
        Scanner scan = new Scanner(System.in);
  try{
         System.out.print("Day: ");
         day = scan.nextInt();
         System.out.print("Month: ");
         month = scan.nextInt();
         System.out.print("Year: ");
         year = scan.nextInt();
  }
  catch(InputMismatchException e){
   System.out.println("Error: You entered an invalid number");
   System.exit(1);
  }
        System.out.println("\nYou are " + getAge(day,month,year) + " years old");
    }

    public static int getAge(int day, int month, int year){
  final int ERROR = -1;

        //initialize GregorianCalendar with current date
        GregorianCalendar cal = new GregorianCalendar();
        //constant holds current day
        final int CDAY = cal.get(GregorianCalendar.DAY_OF_MONTH);
        //constant hold current month
        final int CMONTH = cal.get(GregorianCalendar.MONTH) + 1;
        //constant to hold current year
        final int CYEAR = cal.get(GregorianCalendar.YEAR);
        //check if current day of the month is greater then birth day
        if (month == CMONTH){
            if(CDAY >= day)
                return CYEAR - year;
   if(CDAY < day)
    return CYEAR - year - 1;
        }
        //check if birth month is less then current month
        else if(month < CMONTH)
            return CYEAR - year;
        //subtract 1 from the age because  the current day in the month is less then birth date
  else
         return CYEAR - year - 1;
  return ERROR;
    }

} 

screenshot :
 How To Make a Age Calculator in Java
 Hope it helped you :)

Java Port Scanner Full Source Code

Java Port Scanner Full Source Code


Here is the full source code :





/*+---------------------------------Adeel Mahmood---------------------------------+*\

/*+---------------------------------Port Scanner----------------------------------+*\

/*=-------------------------adeelmahmood1982@ukonline.co.uk------------------------+*\

/************************************************************************************/





import java.io.*;
import java.net.*;
import java.awt.*;
import java.awt.event.*;

public class PortScanner extends Frame{



Socket s;
int startPort,endPort;
Label l1;
TextField hostName,fromPort,toPort;
TextArea log;
Label host,from,to,label;
Button scan,reset;
int fp,tp;
String h;
static boolean close=false;
Dialog d;


public PortScanner(){

Frame f=new Frame("Port Scanner");

f.setVisible(true);
f.setLayout(new GridLayout(5,1));

l1=new Label("Port Scanner version 1.0",Label.CENTER);
l1.setForeground(Color.blue);
l1.setFont(new Font("TimesRoman",Font.BOLD,20));
f.add(l1);

Panel p1=new Panel(new GridLayout(3,3));
host=new Label("Host Name:");
host.setForeground(Color.blue);
p1.add(host);
hostName=new TextField(15);
p1.add(hostName);
from=new Label("From Port:");
from.setForeground(Color.blue);
p1.add(from);
fromPort=new TextField(15);
p1.add(fromPort);
to=new Label("To Port:");
to.setForeground(Color.blue);
p1.add(to);
toPort=new TextField(15);
p1.add(toPort);

f.add(p1);

Panel p2=new Panel();
scan=new Button("Scan Now");
scan.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent r){
if(hostName.getText().equals("")){log.setText("Please complete all the required fields");
return;
}
 else if (fromPort.getText().equals("")){log.setText("Please complete all the required fields");
return;}
  else if(toPort.getText().equals("")){log.setText("Please complete all the required fields");
return;}
   
close=false;
Thread run1=new Thread(){
public void run(){

scan.setEnabled(false);
reset.setLabel("Stop");
log.setText("");
log.repaint();

h=hostName.getText();
fp=Integer.parseInt(fromPort.getText());
tp=Integer.parseInt(toPort.getText());

for(int i=fp;i<=tp;i++){
label.setText("Port "+i+" is being tested");
 if(close)
 break;
 try{
 s=new Socket(h,i);
 log.append("Port "+i+" is open."+"\n");
 log.repaint();
 s.close();
 }
 catch(Exception er){continue;}
 
}
scan.setEnabled(true);
reset.setLabel("Reset");
label.setText("Press Scan to start.");
}
};
run1.start();
}
});



reset=new Button("Reset");
reset.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent t){
Thread run2=new Thread(){
public void run(){
close=true;
hostName.setText("");
fromPort.setText("");
toPort.setText("");
}
};
run2.start();
}
});





Label empty=new Label();
p2.add(scan);
p2.add(empty);
p2.add(reset);
f.add(p2);

log=new TextArea();
f.add(log);

label=new Label("Press Scan to start.");
label.setForeground(Color.blue);
f.add(label);

f.setSize(320,460);
//f.show(true);
f.repaint();
f.setResizable(false);

f.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(1);
}
});


}

public static void main(String args[]){

new PortScanner();
}



}// end of class

Enjoy, please comment if you have any problems.

Why Use Knowledge Base Software?

Why Use Knowledge Base Software?

Give your customers the ability to answer frequently asked questions, access how-to videos, or download forms, while at the same time increasing your business efficiency and decreasing employee costs. How? Easy, use knowledge base software. A well-designed knowledge base management system can act as a self-serve information resource for both customers and employees.

What is a knowledge base system?
Basically, a knowledge base management system is a place for storing information that can be organized, searched, shared, and used for multiple purposes.

For example, let's say your new online business is inundated with customer queries and support requests. In addition, your support teams often need to scramble to find the most up-to-date information and resources to solve the customer's problem.

Using knowledge base software, you can build an effective online resource allowing customers to access the information they need whenever they need it, therefore reducing the number of support calls. A constantly updated system would also allow all employees instant access to the same knowledge, eliminating the frustration of searching multiple places for information that may or may not be current.

How can knowledge base software decrease costs?
Allowing the customer 24/7 access to information and instructional videos is less costly for your business than finding, training, and paying employees to staff the phones 24 hours a day. It can also help reduce the learning curve for new employees by storing the information they need in a searchable database.

Add instructional videos and both the customer and new employee can quickly learn the benefits of your product or service, how to assemble a product, ways to return merchandise, or what other products or services might complement the selected item. This reduces employee time answering queries and reduces training costs as customer service representatives can educate themselves on a number of procedures.

What information should a knowledge base system contain?
A knowledge base system should contain as much relevant information as possible to be useful for the people accessing the system.  Remember, the knowledge base system is intended to act as a resource for the reader, so defining who the reader might be is crucial. The language you use and the information you provide may differ depending on whether you are addressing a customer or a sales representative.

Consider organizing the information into different levels of complexity for certain topics. For example, your customers will likely be interested in the "how to" of a topic, while a support technician will also need to know the "why." Business or technology jargon may be appropriate for a technical representative, but not for the layman trying to find the answer to a basic question.

Don't forget to ask for feedback!
A knowledge base system can allow customers to rate your knowledge articles and leave comments. This means that the business can stay on top of what information consumers need. Encouraging feedback also makes the customer feel vested in your business, an important way to promote loyalty and increase customer satisfaction.

Finally
Just keep two things in mind when designing your knowledge base system: know your reader and make every key word searchable. Customers that can find answers to their questions quickly are going to be left with a favorable impression of your business. And that translates to an increase in customer loyalty and retention.

Author Bio
David Miller is an educational researcher who has vast experience in the field of teaching, Online testing and training. He is associated with prestigious universities and many leading educational research organizations. He’s also an ed-tech veteran, currently pursuing research in new Knowledge base software, and is a contributing author with ProProfs.

How To Protect C# Applications From Buffer Overflow Attacks

buffer overflow attack is once the user purposely enters an excessive amount of data in such the way that the program can spill the information across completely different memory locations which can cause bad  behavior like opening another vulnerability for the attack to use.

This works through the utilization of user input. If the information size isn't checked properly before process the information in sure ways in which, it will become prone to a buffer overflow attack.

Protecting from buffer overflow :
we will be using the c-sharp console application(CLI) as an example.

First create a byte array which we will use to store the user input in next, notice that we are giving it a fixed size of 255 bytes.

byte[] byt = new byte[255];

Now we will get some user input.

Console.Readline()

Now let's convert it to a byte array.

Encoding.Default.GetBytes(Console.ReadLine())


Now set it to our previously declared 'bytes' byte array with a fixed size of 255 bytes...

byt = Encoding.Default.GetBytes(Console.ReadLine());


The vulnerability here is that the user can be inputting a string of 256+ bytes or characters so once converted to bytes, it'll be rather more than the 'bytes'; byte array will handle - a most of 255.

To fix this, we are able to merely check the byte count 1st before setting it to the 'bytes' byte array...
string readLine = Console.ReadLine();
if (Encoding.Default.GetBytes(readLine).Length <= 255) {
byt = Encoding.Default.GetBytes(readLine); 

}


Now, if the user enters a string that once regenerate to byte is larger than the 'bytes' byte array will handle, it merely will not arrange to set the 'bytes' byte array to the new input.

Top 4 Steps to Improve Performance Appraisal in Company


Top 4 Steps to Improve Performance Appraisal in Company
Employees are the soul of company and keeping them happy is the most important thing to consider. Offering a better working environment, handsome and timely package are certain things that need to be followed in the right way. Effective and well manage data base in a huge firm is important for keeping a close watch over services of employees efficiency and performance. This ultimately helps in performance appraisal of the employees and keeping them happy for long term.

There are software that allows the company to keep track of the performance of each employee and following it for long term. However, this appraisal solution is later divided into 4 different steps which are mentioned below:

· Assessing Job Performance:  The ratings of the employee’s performance entirely depend on the company’s performance.  However, the evaluation process is quite hectic. The process involves observing and keeping the record of each employee by using performance appraisal software which brings down the issues. The solution helps in tracing productivity, problem solving abilities and quality of work primarily; also factors like attitude, co-operation, communication etc.

· Ratings and Rankings: Once the rating is done, the assessment is processed by superior authorities, which consist of team or individual. Through the help of software, they post their comments and suggestions for the same. The comments section contains improvements, suggestions, goals to be achieved, potential of employees, etc.

· Remarks: The software also helps to improve the efficiency of the employee. Employers can generate a separate column to put down remarks through which employee need to work on in order to improve their performance. This certainly helps in working hard on required points and stay focused on the work. While evaluation, it is advisable to give examples of strengths and weaknesses of the employees this will help on working on the same in a better way.

· Seeking Feedback: The software also comes with feedback section that will help the employee to give feedback and approach the authorities regarding the assessment. They can also raise question regarding the same.

The main aim of having performance appraisal software is to get connected with employee through evaluating them and helping to keep their performance well for long term. Using of such software will certainly boost the working environment of the staff and take the company to the forward level.