Cloudgen

Eyes in the internet

Subscribe to RSS feed

A share of how to learn jQuery Plugins

, , , ...

Recently, a lot of people are talking about developing iphone applications. Iphone is hot and it gives golden opportunities for programmers. Seeing the great wave in technology, I have started my career in writing iphone applications, too.

Unfortunately, I am new to Mac platform and I am not used to write code in Objective-C. Therefore, I have to spend a lot of time learning everything from scratch. The learning process is hard and this recall me on how I learned jQuery two years ago.

If you want to learn a new language and get used to the language, you have to study the basic concepts, analysis examples and try to write you own. It especially took you a lot of time in searching relevant examples and looking up the syntax of commands before you can complete one piece of your own code.

Two years ago, the resources available for people to learn jQuery are limited. Almost all my knowledge was come from the jQuery's website: www.jquery.com. And you can still find examples, syntax and basic concept there. The website had provided sufficient information for me at the beginning. However, as I reached certain level of understanding of jQuery, I found out that, if I want to have further understanding and improvement in effectiveness of writing jQuery code, I have to write my own jQuery plugins. So, I changed my focus to jQuery plugins and started to write jQuery plugins in a latter time.

As you visit www.jquery.com, you will find a brief introduction about how to write a jQuery plugin. However, the information provided is not sufficient for advanced learners who needed to write plugins for specific purpose. At that time, I was requested to write an online magazine using jQuery In order to apply jQuery plugins in my project, I’d spent a lot of time, searching relevant plugins from the internet and downloading them to my computer. I’d studied the code of the plugins line by line. I’d tried to use them and then rewrite them in my code before I could have a full understanding about every plugins I download. And, finally, I was able to convert my knowledge to a workable solution in my project.

If there was a book which had provided an in-depth explanation of the concepts of jQuery plugin, together with useful examples categorized by the nature of application, I could save a lot of time and I could have a shorter learning cycle in jQuery and jQuery plugins.

In the mid-December, I’ve received a book from Packt. “jQuery 1.4 Plugin Development – Build powerful, interactive plugins to implement jQuery to its best – Beginner’s Guide” which is a eBook written by Giulio Bai. I’ve started reading the eBook during my Christmas holiday. As you know, a book for concepts and examples is essential in learning jQuery, this book is what I looked for a long time.

During my holiday, in most of the time, I liked to sit in front of my computer with a cup of hot coffee. One day, I opened the eBook, I started reading from the front page, then I skipped the first Chapter, which is about the introduction on jQuery. On the other hand, as a designers of some jQuery plugins, I am quite interested how other people teaches jQuery plugin. So, I chapter 2 carefully. After finished chapter 2, I found myself quite satisfied. In this chapter, the language is plain, the steps are clear and everything is quite easy to understand. And this is the first book that introduces the concepts and differences between function plugins and method plugins.

The topics as well as the examples in books are comprehensive: Image plugins, audio plugins, video plugins, form plugins, menu plugins, navigation plugins, animation plugins, utility plugins, etc. This book save us a lot of time from collecting different type of jQuery plugins. Thus, we can focus on those plugins that we feel interested.

The most valuable materials are always in the later part of a book. So, if you turn the pages to later part, for instance, Chapter 13, you’ll find a top 10 list of jQuery Plugins recommend by the author, Guilio. In this chapter, he had shared the findings and thoughts which he had spent a lot of time and effort before in studying those top jQuery Plugins. And he will tell you what’s the secrets for top 10 jQuery plugins.

I recommend people reading this book. And I think this book is especially useful for those who have the basic knowledge of jQuery and wants to have a in-depth understanding of jQuery and jQuery plugins. If you have spare time, you can try the “pop quiz” section provided in the latter part of every chapter. And you’ll find a lot of fun in do the pop quiz, too. Here is the link and cover of the book:

jquery 1.4 plugin develop - Beginner's Guide

Some some thoughts on the 6502 Technology

, , , ...

6502, why it is so important?

The first 6502 microprocessor was designed by Chuck Peddle and Bill Mensch in 1975 for MOS Technology, also known as CSG (Commodore Semiconductor Group), was a semiconductor design and fabrication company based in United States. 6502 is a low cost full-featured microprocessor. 6502 was originally second-sourced by Rockwell and Synertek and later licensed to a number of companies. It's one-sixth the price ($25) of the similar products from other well established competitors ($179, Intel 6800). Since the cost in building a computer has been lowed at that time, it eventually result in home computer revolution of the 1980s. Nowadays, 6502 is still made for embedded systems and video game console.


6502 bought the Home Computer Revolution


Due to their cost are low, the 6502 and Z80 bought us to the age of "Home Computer Revolution" in 1980s. 6502 home computers such as: Commodore RadioShack TRS-80, Commodore PET, Apple II, BBC Micro, Atari 800XL, etc were appeared in consumer market in 1980s. People started to have their own computers. (My father bought an Apple ][ computer in 1983 with HK$4500 (which is around US $600).)

At that time, most of the 6502 home computers come with a BASIC interrupter. And the software are mainly written in BASIC or assembly languages.


History of 6502 Technology


A 6502 processor is firstly packaged in a DIP-40 plastic package and was designed by the same development team that had designed the Motorola 6800. Thus, 6502 and 6800 process a lot of similarities, such as: single accumulator and small number of registers. In addition, the 6502 processor introduces the idea of "zero page" which improves the speed of communication. A 6502 can also be used to handle BCD calculation.

The first development board of 6502 processor launched to the market was MDT-650. Then KIM-1, Rockwell AIM65 and Synertek SYM-1 were also launched to the market. Those 6502 development boards were welcomed to both engineers and hobbyists, thus it leaded to widespread acceptance to the market.

One of the first publicly marketed computers using the 6502 technology was the Apple I computer in 1976. Later, there are Apple II and Commodore PET, Atari home computers, BBC Micro family, etc came to the market and bought the trend of 6502 computers.

6502 processor not only bought great influences to computers market, it developed the video game console, too. Most of the video game consoles uses refined version of 6502 processors. The first video game console which uses 6502 technology was the Atari 2600. Atari 2600 uses a simplified version of 6502, 6507 which can only address 8KB memory. (see more ...)

(Extracted from "Some discussion about the 6502 Technology", 6502 Assembly Blog)

Update August 6, 2010, 6502 Assembly

, , , ...

The instruction sets manual for the Arithmetic Operations have been updated. The updated pages involved:

1. Arithmetic Operations
2. ADC - ADC, Add with Carry
3. DEC - DEC, Decrement Memory
4. DEX - DEX, Decrement X
5. DEY - DEY, Decrement Y
6. INC - INC, Increment Memory
7. INX, INX - Increment register X
8. INY - INY, Increment Y
9. SBC - SBC, Subtract with Carry
10. 6502 Instruction Set
11. Op-codes Table
12. Opcode of LDA Instructions

Happy Programming

CloudgenUpdate August 6, 2010, 6502 Assembly
(Extracted from "Update August 6, 2010, 6502 Assembly" of "6502 Assembly Blog"

Update July 26, 6502 Assembly

, , , ...

The Logical Operations session of the 6502 Instruction set has been updated, the following pages have been involved:

AND, AND - Logical AND
EOR, EOR - Exclusive OR
ORA, ORA - ORA with Accumulator
Happy Programming ,

Cloudgen
(Extracted from "Update July 26, 6502 Assembly",6502 Assembly Blog)

How many domains google used for search engine?

, ,

Why I know that? You guess...
The answer is 183 p

http://www.google.com
http://www.google.ad
http://www.google.ae
http://www.google.com.af
http://www.google.com.ag
http://www.google.com.ai
http://www.google.am
http://www.google.it.ao
http://www.google.com.ar
http://www.google.as
http://www.google.at
http://www.google.com.au
http://www.google.az
http://www.google.ba
http://www.google.com.bd
http://www.google.be
http://www.google.bf
http://www.google.bg
http://www.google.com.bh
http://www.google.bi
http://www.google.bj
http://www.google.com.bn
http://www.google.com.bo
http://www.google.com.br
http://www.google.bs
http://www.google.co.bw
http://www.google.com.by
http://www.google.com.bz
http://www.google.ca
http://www.google.cd
http://www.google.cf
http://www.google.cg
http://www.google.ch
http://www.google.ci
http://www.google.co.ck
http://www.google.cl
http://www.google.cm
http://www.google.cn
http://www.google.com.co
http://www.google.co.cr
http://www.google.com.cu
http://www.google.cz
http://www.google.de
http://www.google.dj
http://www.google.dk
http://www.google.dm
http://www.google.com.do
http://www.google.dz
http://www.google.com.ec
http://www.google.ee
http://www.google.com.eg
http://www.google.es
http://www.google.com.et
http://www.google.fi
http://www.google.com.fj
http://www.google.fm
http://www.google.fr
http://www.google.ga
http://www.google.ge
http://www.google.gg
http://www.google.com.gh
http://www.google.com.gi
http://www.google.gl
http://www.google.gm
http://www.google.gp
http://www.google.gr
http://www.google.com.gt
http://www.google.gy
http://www.google.com.hk
http://www.google.hn
http://www.google.hr
http://www.google.ht
http://www.google.hu
http://www.google.co.id
http://www.google.ie
http://www.google.co.il
http://www.google.im
http://www.google.co.in
http://www.google.is
http://www.google.it
http://www.google.je
http://www.google.com.jm
http://www.google.jo
http://www.google.co.jp
http://www.google.co.ke
http://www.google.com.kh
http://www.google.ki
http://www.google.kg
http://www.google.co.kr
http://www.google.com.kw
http://www.google.kz
http://www.google.la
http://www.google.com.lb
http://www.google.li
http://www.google.lk
http://www.google.co.ls
http://www.google.lt
http://www.google.lu
http://www.google.lv
http://www.google.com.ly
http://www.google.co.ma
http://www.google.md
http://www.google.me
http://www.google.mg
http://www.google.mk
http://www.google.ml
http://www.google.mn
http://www.google.ms
http://www.google.com.mt
http://www.google.mu
http://www.google.mv
http://www.google.mw
http://www.google.com.mx
http://www.google.com.my
http://www.google.co.mz
http://www.google.com.na
http://www.google.com.nf
http://www.google.com.ng
http://www.google.com.ni
http://www.google.ne
http://www.google.nl
http://www.google.no
http://www.google.com.np
http://www.google.nr
http://www.google.nu
http://www.google.co.nz
http://www.google.com.om
http://www.google.com.pa
http://www.google.com.pe
http://www.google.com.ph
http://www.google.com.pk
http://www.google.pl
http://www.google.pn
http://www.google.com.pr
http://www.google.ps
http://www.google.pt
http://www.google.com.py
http://www.google.com.qa
http://www.google.ro
http://www.google.ru
http://www.google.rw
http://www.google.com.sa
http://www.google.com.sb
http://www.google.sc
http://www.google.se
http://www.google.com.sg
http://www.google.sh
http://www.google.si
http://www.google.sk
http://www.google.com.sl
http://www.google.sn
http://www.google.sm
http://www.google.st
http://www.google.com.sv
http://www.google.td
http://www.google.tg
http://www.google.co.th
http://www.google.com.tj
http://www.google.tk
http://www.google.tl
http://www.google.tm
http://www.google.to
http://www.google.com.tr
http://www.google.tt
http://www.google.com.tw
http://www.google.co.tz
http://www.google.com.ua
http://www.google.co.ug
http://www.google.co.uk
http://www.google.com.uy
http://www.google.co.uz
http://www.google.com.vc
http://www.google.co.ve
http://www.google.vg
http://www.google.co.vi
http://www.google.com.vn
http://www.google.vu
http://www.google.ws
http://www.google.rs
http://www.google.co.za
http://www.google.co.zm
http://www.google.co.zw
http://www.google.cat

(Extracted from "How many domains google used for search engine?", Cloudgen's Blog)

Update July 24, 6502 Assembly

, , , ...

Four instructions under the categories of Stacks Related Operations have been updated:

1. PHA --- PHA stands for PusH Accumulator
2. PHP --- PHP stands for PusH Processor status (SR)
3. PLA --- PLA stands for PulL Accumulator
4. PLP --- PLP stands for PulL Processor status (SR)

Happy Programming,

Cloudgen
(Extracted from "Update July 24, 6502 Assembly", 6502 Assembly Blog)

What will happen when your ip has been blocked by Google?

, , , ...

So actually what will happen when your ip has been blocked by Google. If you've just "searched too fast" or "infected with computer virus" or running "robots", the following will come up:

  • You will be redirected to a page, a saying that "We're sorry... ... but your computer or network may be sending automated quries. To protect our users, we can't process your request right now. The page is located in the sorry.google.com server, e.g., http://sorry.google.com/sorry/Captcha?continue=http%3A%2F%2Fwww.google.com&id=2517167959383899603&captcha=destorm. Inside the page, there is a captcha, (usually pure characters, however, in some google server, the captcha may be pure numeric). If you want to see random captcha, here is the link: http://sorry.google.com/sorry/image?id=3997555809511330333
  • Of course, you have to type the Captcha correctly and press the "I'm human!" button, before you can resume normal operation.
  • Then you there will be a redirect together with a posted "password" send to your original server.
  • However, if you try other google's servers, for example, http://www.google.ad ..., etc. You will be redirected to the sorry.google.com server again. If you clear your cookies and restart IE, you will be redirected to the sorry.google.com again.


What will happen if you ignore these and keep on searching by typing the query in the address bar?

  • Your IP will blocked for a longer time. If you clear cookies, you have to enter the captcha again. Once, I've seen the Google's Japan server keep asking me captcha regardless I've entered the captcha correctly.
  • So far, I haven't come across a case that google block the ip permanently. So, after certain time, your ip will be released again.

Happy Programming,
Cloudgen
(Extracted from "What will happen when your ip has been blocked by Google?", Cloudgen's Blog)

Update Content 23/7, 6502 Assembly

, , , ...

This morning, before I left my home, I had updated the Register Transfer Operations session of the 6502 instruction set manual.

There are totally six commands have been updated:



I have found out and removed some strange links generated from google site. These were caused by links consisting different fonts setting. That's why some strange page have been found from google search on my website. Another problem is that, when I use IE 8 to edition the 6502 website, I found I cannot scroll down when I have click the view HTML button in the google site interface. So, I had to edit the page using Firefox this morning.

Happy Programming,

Cloudgen
(Extracted from "Update Content 23/7, 6502 Assembly", 6502 Assembly Blog)

Creating an encyclopedia website for diodes

, , ,

I am always dreaming of owning an encyclopedia website for a specific topic in electronics. Yesterday, I've made up my mind. I've chosen one of the simplest electronic component as a start. That is "diodes".


Now, I created the diodes website. I start choosing part numbers from various manufacturers. I started from using the parts numbers from Fairchild. I've setup the website structure and created 270 empty pages for part numbers starting from 1N.

Although, "diodes" is the most easiest topics. Actually, creating such a website is not easy. Bye for now,

Happy Programming

Cloudgen
(Extracted from "Creating an encyclopedia website for diodes", Cloudgen's Blog)

First Two Excerises Added, Java Index

, ,

In a hurry in this rainy day, I've added an exercise session in the Java Index. Currently, I added two questions:

* BlueOcean Class
* AssortedFruit

I've class of PHP on coming Saturday and Java class on coming Sunday. So, I still have little time editing exercise of this website.

Happy Programming,

Cloudgen

(Extracted from "First Two Excerises Added, Java Index", Java Index Blog)