Best Blogger Tips

Wednesday, 9 January 2013

Latest Blogging Tips for Online Bloggers

0 comments




In this modern world the no of bloggers are increasing at a higher rate. All bloggers want to get popularity to their blogs. But only some people succeeded in getting popularity and they became professional bloggers. While for the remaining their targets are at a great distance. Achieving the targets is not an easy job; it requires lot of work and knowledge. Are you an online blogger? Do you want to become a professional blogger? Here are the latest blogging tips for online bloggers.

Update:

The best online blogger should regularly update his blog. By using this he can build traffic to the website and can drag the attraction of web users. To update your website make best use of tools and features. In this way you can interact with the web users effectively.

Comment on blogs:

Comment on other’s blogs so that you can build traffic to your website. Never comment on other’s blogs unnecessarily. Leave a comment whenever you feel it is important to add or whenever you are impressed with their posts.

Provide useful data:

Blogs reflect your opinions and thoughts effectively. Whenever you post something think from the reader’s point of view to know whether they like it or not. Because the viewer’s read blogs just to know your ideas and views.

Grab attention:

The web users create an impact on your blog within 4 seconds of reviewing it. Hence you have to grab the attention of users within this short span of time. You can create effective titles, easy articles to attract readers.

Interaction:

A good online blogger should have good communication skills so that he can communicate with the readers effectively. This is the best way to get feedback from customers.

Make use of pictures:

No one shows interest to read the plain text. People decide whether they have to read further or not depending on the pictures. If they find interesting pictures they can step ahead. In order to grab the attention of as much users as possible include as many images in your blog.

Guest blogging:

This is the way to make your website user and crawler-friendly. You can get a brand name to your website by writing articles on other blogs.

Marketing:

Without making use of marketing strategies your blog will not attract the targeted audience. To increase traffic to your website you can take help of search engines, web tools and guest posts. In any case if you fall short of money in advertising then you can make use of short term loans such as cash payday loans.

Target heart of blog:

The heart of the blog will be obviously content. Make sure that the content must be related to your content. Represent the content in an attractive way so that it attracts as many people as possible. Do not represent the unrelated and disgusting stuff in your content.
These are the latest blogging tips for online bloggers to build traffic. Initially when you are creating a blog, you might be required to invest some amount of money. In such emergency situations you can opt a short term loan such as cash payday loan to afford it.

About the Author:

The guest post was contributed by Sophie, financial guest blogger from Manchester, UK. Find out more about her finance related blogs @financeport .


Wednesday, 3 October 2012

Running the first servlet program!

0 comments

This brief tutorial will help you in running your first Java Servlet. As java Servlets are server side programs that are compiled by a java compiler and the their class files are executed by a web browser.
So it would be your first question how can we execute that class file(Servlet's Bytecode) on a web browser by submitting a URL of that servlet name?Definitely it's very easy and straight forward.

To run a Servlet you must have a web container installed and configured in your computer. In case of java Servlets you must have a Tomcat installed in your computer.It is a java based web server founded by the Apache Organization.

Apart from this, you should also have the standard JDK installed on your local machine.
So first of all i will teach you how to install standard JDK and it's configuration on local machine.

Sunday, 23 September 2012

TIC TAC TOE Game code in java!

0 comments
//code start
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;

public class TicTacToe implements ActionListener {
 final String VERSION = "1.0";
//Setting up ALL the variables
 JFrame window = new JFrame("Tic-Tac-Toe " + VERSION);
 
 JMenuBar mnuMain = new JMenuBar();
 JMenuItem  mnuNewGame = new JMenuItem("New Game"), 
     mnuInstruction = new JMenuItem("Instructions"),
     mnuExit = new JMenuItem("Exit"), 
     mnuAbout = new JMenuItem("About");
 
 JButton  btn1v1 = new JButton("Player vs Player"),
    btn1vCPU = new JButton("Player vs CPU"),
    btnBack = new JButton("<--back");
 JButton btnEmpty[] = new JButton[10];
 

DIGITAL CLOCK CODE IN JAVA!

0 comments

Synchronized digital clock.

//code Start
import java.awt.Color;
import java.awt.Dialog;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Label;
import java.awt.Shape;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Calendar;
import java.util.Random;

import javax.swing.BorderFactory;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;


public class DigitalClock extends JPanel implements Runnable {

 static JMenuBar mainBar;
 static JMenu open,about;
 static JMenuItem exit,aboutme;
 
 Thread t;
 Random rand = new Random();
 
 
 public void paintComponent(Graphics g){
  
  super.paintComponent(g);
  g.setFont(new Font("Serif",Font.BOLD,50));
  //g.setColor(new Color(rand.nextInt(255), rand.nextInt(255),rand.nextInt(255)));
  g.setColor(new Color((0), (0),(255)));
  g.drawString(time(), 27, 62);
 }
 
 //Constructor to INITIALIZE THE CLOCK
 public DigitalClock() {
  Start();//Start The CLock 
  }
 
 public String time() {
  Calendar cal = Calendar.getInstance();
  int hour = cal.get(Calendar.HOUR_OF_DAY);
  int min = cal.get(Calendar.MINUTE);
  int second = cal.get(Calendar.SECOND);
  
  String time = includeZero(hour)+":"+includeZero(min)+":"+includeZero(second);
  
  return time;
 }
 
 public String includeZero(int number){
  
  String num=(number < 10) ? ("0"+number) : (""+number);
  return num;
 }
 
 
 
 public static void main(String[] args) {
  JFrame.setDefaultLookAndFeelDecorated(true);
  try {
   UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
  } catch (Exception e) {
   // TODO: handle exception
  }
  
  
  SwingUtilities.invokeLater(new Runnable() {
   
   
   
   
   @Override
   public void run() {
    JFrame frame=new JFrame("Clock");
    
   
    
    
    frame.add(new DigitalClock());
    frame.setSize(250, 150);
    frame.setVisible(true);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setLocationRelativeTo(null);
    frame.setResizable(false);
    
    mainBar = new JMenuBar();
    frame.setJMenuBar(mainBar);
    
    open = new JMenu("Open");
    mainBar.add(open);
    about = new JMenu("About");
    mainBar.add(about);
    exit = new JMenuItem("Exit");
    open.add(exit);
    aboutme = new JMenuItem("About me");
    about.add(aboutme);
    
    exit.addActionListener(new ActionListener() {
     
     @Override
     public void actionPerformed(ActionEvent arg0) {
      System.exit(0);
      
     }
    });
    
    
    aboutme.addActionListener(new ActionListener() {
     
     @Override
     public void actionPerformed(ActionEvent arg0) {
     JDialog dialog = new JDialog();
     dialog.setTitle("About Me");
     dialog.setVisible(true);
     dialog.setSize(400, 400);
     dialog.setLocation(790, 300);
     dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
     dialog.setLayout(null);
     Label label =new Label( "Created by : Zeeshan Jamal");
     label.setBounds(0, 0, 200, 20);
     
     dialog.add(label);
       
      
     }
    });
   }
  });
  
 
  
 }

 
 public void Start() {
 if (t==null){
 t= new Thread(this);
 t.start();
 
 
 }
 }
 public void run(){
  while (t == Thread.currentThread()){
   repaint();
   try {
    Thread.sleep(1000);
    
   } catch (Exception e) {
    System.out.println(e.getLocalizedMessage());
   }
  }
  
 }

}
//code end


 

| Bloggers Broadcast © 2010. All Rights Reserved | Back To Top |

Your Text Link Here