Introducing Adwords …

October 27th, 2005 by avatar21

Adwords

	Google has a new system that makes it possible, forthe first time in the history of the world, to depositfive bucks, write a couple of ads, and instantlyget access to over 100 million people - in less than10 minutes. ... [read more]

Regards,Avatar Ng

FAQ for Adsense Newbies

October 26th, 2005 by avatar21

FAQ for Adsense Newbies

Some users had post me comments on the `Getting Rich with Adsense` post, I have come to mind to give some FAQ for some common questions.

(Q1) Why do I need a PC and an Internet account?
(Q2) Can I do this by doing this in a CC?
(A1,A2) Well, I don’t emphasis too much on having an own Internet account; but it’s ideal to have an broadband/dailup account at home. Why? For your information, to earn serious money on adsense you need some close watching on your performance (traffics, ads. relateness, adhoc fix and frequent update). My personal experience, if you are doing everything well in the 1st place … well planed … you don’t even have to look at your account very frequent. They are users out there who off from their accounts for a year, and earning while they dun even noticing! That’s why again and again I said this is a legal-program that really keep you working at home! Opps, I missed out, why a computer? Well you need something to try and error don’t you, but also not a must ! You can post a blog per week and look at those traffics coming. (P.S.: traffic is the key to success)

(Q3) How do I start off?
(A3) Haha, this is the simplest answer, register at Google Adsense now! What are you waiting … !
Try to get some idea here. I wrote this just for YOU!

(Q4) What I need to equip with?
(A4) Some good writing skill might help a lot, Adsense is all about content! And … lots of luck, your earnings will go up and down like stock market … So good luck on trying, you got nothing to lose!

Regards,
Avatar Ng

Getting Rich Now … I’ll teach you for FREE!

October 24th, 2005 by avatar21

Getting Rich Now ... I’ll teach you for FREE!

Congratulation … You have no regrets reading this blog, I personal guarantee you for that! Thanks me later …

The idea is `Setting Up Adsense in Blogger`! As you reading this, I’m earning healthy money from Adsense.
How do I do it? read more …

Regards,
Avatar Ng
[Get your free blog here...]

Adsense Boot Camp

October 23rd, 2005 by avatar21

Adsense Boot Camp

Ads placing does affect your Adsense Click-Throught-Rate(CTR), from as little as 50% to as much as 300% increase in revenue! I applied the strategy and when I check a couple of days back, I boost from $5 to $20+ per day …

Try placing the ads below images, it works for me and it may works for you too!

Regarding on how to setup an Adsense account, refer to my previous post: "How to turn your home PC into a revenue generator (Part 1 & 2).

Read more …

Regards,
Avatar Ng

How to turn your “home PC” into a “revenue generator”? (Part 2)

October 4th, 2005 by avatar21

How to turn your "home PC" into a "revenue generator"? (Part 2)

Affiliate Marketing = Home Business
In our last post, we’ve been spending the whole page talking about this "Affiliate Marketing", Well actually what is it anyway?

Before we go into that, can you recall the ".NET Bubble" that once went so popular? Yes it is actually some form of it too, but what is happening now is it’s changing form into another popular topic people talking about now - the "Pay-per-Click(PPC)" model.
It had changed marketing so much easier than ever, never before in history you can sell product to thousands of new customer in seconds. Never to mention that you don’t even have to look for them; now they come to look for you when they need your goods.

You might think :"What hack does that got doing with me, I don’t even have my product?" In the matter of fact, you don’t need any product of your own to make money!
How does it works? I’ve come here to tell you that’s people out there willing to pay you steady monthly
income, as long as you able to make people click on the advertisements on your site(s).
Check this out:
Googlecheck_1

Kick Start
(1) Google Adsense
The best program that I can promote for "pay-per-Click" service is "Google Adsense", get a free  account here. You will only be approve or reject after 2-3 days!

Before you go on and apply for it, prepare your self a simple web site first, if you not yet have a hosting you can find a free hosting plan here. After Google approved your application, they will send you a mail.

Simply copy the advertisement code segment from your Google Adsense into your web page, and here it goes! Sit tight and earn extra $$$ even without your notice!
Sample of adsense:
Adsense_small_1

(2) Clicksor

Google Adsense could be a little straight some times, and any mistake you made which against the policy they will ban you immediately! There is a alternate choice for this, which is the "Clicksor" program! Clicksor have a very relevant advertisement program and great higher commission too.
Get a membership at Clicksor here!

Below is some of the clicksor examples:
- Clicksor will automatically search for relevant ads for each of your web page.
Clicksor_000

-Bleach Portal has been earning fairly USD $1311  (monthly) by the time I was writing this!

Now I think I’ll stop for this discussion for now, good luck on trying!

[Note: next post - detail adsense tricks, other profitable program ... ]

  • Some advertiser do not allow you to have multiple associate advertisement for a single site, this is very important because this may lead you to be banned!

Regards,
Avatar Ng

How to turn your “home PC” into a “revenue generator”? (Part 1)

September 28th, 2005 by avatar21

How to turn your "home PC" into a "revenue generator"? (Part 1)

I’ve been asking myself all the while: "Is there anyway of making smart-money rather than hard-money?" … Yes, there’s a way to do it, and certainly affiliate marketing is the best way!

(Question) Why should you read on?
- Well this is a free tips from me to share out rather you take it or leave it!
- I’m making small money daily (in USD, yes it is stronger than MYR), and I’m gonna tell you exactly how to do it.
- After all you got something to gain but nothing to lose (all my tactics were free)!

The concept is simple, you help merchant to acheive sells and they will reward you accordingly.

(Question) What you need to get start?
- A computer with access to internet.
- A bank account to deposit your commissions
               OR
  A permenant address for receiving commission cheques.
- A few hours of time.

Firstly, get a famous Affiliate Program Providers (APPs) account from LinkShare, ClickBank, Commission Junction, Befree and others.

Then find a advertiser like eBay, Amazon … and register as their affiliate (reseller).

Go on and find a free hosting and put those ads on the side  to start working, there’s all it needs … so simple! TIPs: Don’t build a site for advertise only, like eBay (provide a brief description or review on products 1st, then only ask ppl to click on links). Normally it works better for simple static page, don’t waste your time designing cool sites which don’t serve the purpose. User will go away in 5 seconds if they don’t see what they are looking for.

I had provided the links for each example, go on and try to register first, for more details let me explain on the following blog.

Note:
- More real life example on the next episode, including how to setup all accounts.
- Don’t rush on starting it now, do more work on researching which advertiser is more profitable andwhich the product you are familiar in.

Regards,
Avatar Ng

Writing a XMPP compatible chat client(Google Talk)

September 20th, 2005 by avatar21

I think I just start off to the topic, firstly u need a 3rd-party library "smack.jar"+"smackx.jar" which extracted from "smack-2.0.0.zip". Get the file from here !

I’m using "javax.swing" classes to build the UI, below is a brief design layout:
+———————————————–+
|  Login : __________                            | <—- login name (e.g.: yourmail.google.com)
| Password: ________ | Login|               | <—- password (e.g.: google mail password)
+———————————————–+
|  +——————————+  | Send | |
|  |                                      |               |
|  |                                      |               |
|  +——————————+  | quit  | |
|  _____________________________ V   |   <— friend’s list
|  _______________________________  |   <—- chat message here
+———————————————–+

Now u get what u needed, put the libraries in a the classpath so that your Java compiler can find it.
Here’s the code and I’ll explains line by line in comments (codes are meant to be small to save up space, simply cut and paste to a textpad for the aid of reading):
____________________________________________________________________________

ChatClient.java
____________________________________________________________________________

package com.avatar.chat;

// import swing classes
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;

// import smack classes
import org.jivesoftware.smack.*;
import org.jivesoftware.smack.packet.*;
import org.jivesoftware.smack.filter.*;

// packet listener will required you to implement a method
// called
 "processPacket(Packet packet)" which lets you
// go lower level to handle the in/out packets better

public class ChatClient extends JFrame implements ActionListener, PacketListener{
    private JButton btnLogin, btnSend, btnQuit;
    private JTextArea taChatArea;
    private JTextField tfChatMessage, tfLoginName;
    private JComboBox cbOpponent;
    private JPasswordField pfLoginPassword;

// GoogleTalkConnection is one of the class by Smack
    private GoogleTalkConnection con = null;

// GroupChat will allowed you to listen to more than 1 opponent
    private GroupChat chat = null;
    private String login_name = "";
    private String login_password = "";
    private String opponent = "";
    private boolean isLogin = false;

// require class — PacketFilter and PacketCollector, explain below
    private PacketFilter filter = null;
    private PacketCollector myCollector = null;

// Message is a class to hold all data which  extracted from the packet,
// e.g. sender, receiver, timestamp, message … etc

    private Message msg = null;
   
    public ChatClient(){
        super("Chat Client");
       
        setSize(400,300);
        setResizable(true);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLayout(new BorderLayout(0,0));
        initComponents();

        setVisible(true);
    }
   
    public void initComponents(){
        btnLogin = new JButton("Login");
        btnLogin.addActionListener(this);   
        btnSend = new JButton("Send");
        btnSend.setMnemonic(KeyEvent.VK_ENTER);
        btnSend.addActionListener(this);
        btnQuit = new JButton("Quit");
        btnQuit.addActionListener(this);
        taChatArea = new JTextArea(10,40);
        taChatArea.setEditable(false);
        JScrollPane chatScroller = new JScrollPane(taChatArea);
        chatScroller.setPreferredSize(new Dimension(300, 200));
        chatScroller.setMinimumSize(new Dimension(300, 200));
        chatScroller.setAlignmentX(Component.LEFT_ALIGNMENT);
        tfChatMessage = new JTextField(40);
        tfLoginName = new JTextField(10);
        cbOpponent = new JComboBox();
        cbOpponent.setEditable(true);
        pfLoginPassword = new JPasswordField(10);
       
        JPanel pnlButton = new JPanel(new GridLayout(2,1,0,0));
        JPanel pnlLogin = new JPanel(new GridLayout(3,2,0,0));
        JPanel pnlMessage = new JPanel(new GridLayout(2,1,0,0));
       
        pnlLogin.add(new JLabel("User Name:"));
        pnlLogin.add(tfLoginName);
        pnlLogin.add(new JLabel("Password:"));
        pnlLogin.add(pfLoginPassword);
        pnlLogin.add(new JLabel("press here to login ->"));
        pnlLogin.add(btnLogin);
        pnlButton.add(btnSend);
        pnlButton.add(btnQuit);
        pnlMessage.add(cbOpponent);
        pnlMessage.add(tfChatMessage);
       
        setChat(false);
       
        add(pnlLogin, BorderLayout.NORTH);
        add(pnlButton, BorderLayout.EAST);
        add(chatScroller, BorderLayout.CENTER);
        add(pnlMessage, BorderLayout.SOUTH);
    }
   
// disable  sending meassage when  variable ‘mark’ is false (offline), and vice-versa
    public void setChat(boolean mark){
        tfChatMessage.setEnabled(mark);
        cbOpponent.setEnabled(mark);
        btnSend.setEnabled(mark);
    }
   

// clean up jobs appoint exit
    public void logout(){
        if(con!=null){
            con.close();
        }
        cbOpponent.removeAllItems();
    }
   

// when user logged in, set the flag to true (online)
    public boolean login(String login_name,String login_password){

        // get textfield’s username
        this.login_name = login_name;

        // get passwordfield’s password
        this.login_password = login_password;
        boolean flag = false;
       
        try{
            con = new GoogleTalkConnection();
            con.login(login_name, login_password);
            

        // filter the XML packet into a PacketCollector (much like a queue),
       // so that you can get them back later

            filter = new AndFilter(
                       new PacketTypeFilter(Message.class),
                       new FromContainsFilter(opponent));
            myCollector = con.createPacketCollector(filter);
            

        // initialise your chatgroup
            chat = con.createGroupChat(login_name+"’s Chat");

        // initialise your message
            msg = new Message();
            

        // get all user from your friends list
            Roster roster = con.getRoster();
            for (Iterator i=roster.getEntries(); i.hasNext(); ) {
                RosterEntry re = (RosterEntry)i.next();
                cbOpponent.addItem(re.getUser());

                // Register the listener.   
            }
            
            con.addPacketListener(this, filter);
            
            setChat(true);
            flag = true;
        }catch(Exception ex){
            ex.printStackTrace();

        // any thing during  login, disable user to send message
            setChat(false);
            flag = false;
        }finally{
            return flag;
        }
    }
   
    public void windowClosing(WindowEvent we){
       logout();
    }

    // implementing processPacket for PacketListener interface
    public void processPacket(Packet packet) {
       
// Put the incoming message on the chat history or chat board.
        Message msg = (Message)packet;
        taChatArea.append(msg.getFrom()+
                          ": "+msg.getBody()+"\n");
    }
   
    public void actionPerformed(ActionEvent e){
        if(e.getSource()==btnLogin){
            String test = btnLogin.getLabel();
            if(test.equals("Login")){
                isLogin = login(tfLoginName.getText().toString().trim(),
                                pfLoginPassword.getText().toString().trim());
                btnLogin.setLabel("Logout");
            }else if(test.equals("Logout")){
                logout();
                setChat(false);
                isLogin = false;
                btnLogin.setLabel("Login");
            }   
        }else if(e.getSource()==btnSend){
            opponent = cbOpponent.getSelectedItem().toString();
            String content = tfChatMessage.getText().toString();
            if(isLogin){
                try{
                    msg.setTo(opponent);
                    msg.setBody(content);            
                    chat.sendMessage(msg);

                        // append your sent message to chat board
                    taChatArea.append(login_name+": "+tfChatMessage.getText()+"\n");
                }catch(Exception ex){
                    ex.printStackTrace();
                }
            }
        }
        else if(e.getSource()==btnQuit){
            logout();
            System.exit(0);
        }
    }
   
    public static void main(String[] args){
        ChatClient c = new ChatClient();
    }
}

___________________________________________________________
End of
"ChatClient.java"
___________________________________________________________
Thanks to Smack by JiveSoftware, online messager never got easier to write!

The final output should looks like this, still depends on platform and versioning of JDK.

Other resoures:

[NOTE: Smack is a trademark of Jive Software, Google Talk is a trademark of Google.]

The new IM standard

August 30th, 2005 by avatar21

The Extensible Messaging and Presence Protocol (XMPP)
XMPP (RFC 3923) is created by the Jabber open-source community in 1999, not so new after all :)
It keep on evolving until now … it’s quite matured, if isn’t about Google Talk … I’ve never heard of it.

I’ll briefly describe it, XMPP uses XML as a standard format to send message between nodes, other generic functions such as providing personal address book, sender/receiver identification … etc.

We all knew that when XML came to place, cross-IM communication will become possible, and that’s what makes it so powerful.

Reference:

  1. XMPP official site
  2. RFC 3920: Extensible Messaging and Presence Protocol (XMPP): Core
  3. RFC 3921: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
  4. RFC 3922: Mapping the Extensible Messaging and Presence Protocol (XMPP) to Common Presence and Instant Messaging (CPIM)
  5. RFC 3923: End-to-End Signing and Object Encryption for the Extensible Messaging and Presence Protocol (XMPP)

Data Mining

August 30th, 2005 by avatar21

Recent I found this new project in Java Forum — "Java Data Mining"! Cool huh if you can use it …

April 15th, 2005 by avatar21

Welcome to Brittania!

This is a special interest section of mine, all regarding Java Technologies.

Java
- J2SE
    - Java 2D/ 3D
    - AWT/SWING
    - Applet

- J2EE
    - Java Bean
    - Servlet
    - JSP
    - JSTL
    - JMS
    - RPC/RMI   
    - JWSDL

   - Other related technology:
        - XML
        - SOAP

- J2ME
    - Micro 3D (M3G)
    - MIDP
    - CLDC