Saturday, March 14, 2009

Application Environment - RoR


So i thought I have installed everything - so it seems. when i run the testApp. It does gives me the same if I call the application using http://localhost:3000; however, when I clicked on the link "About your application environment" - It returns some errors

More investigation is needed. In the mean time, i have downloaded the 70MB InstantRuby and the MySQL Essentials.

Exercise 5. Network and Programming frameworks

1. A Simple Chat Client/Server system - I found this simple chat server at
http://wiki.tcl.tk/11005

The codes use sockets to wait for calls or message to be pass through; within that it use handlers to handle each of these participants' nick name and pass through. Once a socket is opened, almost like a session, the data is broadcast to both ends of the socket.

2. Peer to Peer Computing and Grid Architecture or Grid Computing have both similar objectives - both claiming to resolve problems prevail at large scale computing societies and both of which have gained in popularity in the successful deployment and applications (Foster., I & Iamnitchi. A, 2003)

Behsaz. B, Jaferian. P, & Reza-Meybodi. M (2008) defines "Grid computing is a distributed computing approach to create an illusion of simple yet large virtual computer from a large set of heterogonous computers sharing various resource types to benefit a (virtual) organization." where as P2P computing is defined as Global Computing ""Globalcomputing is a distributed computing approach for computing with a large collection of heterogeneous computers which are essentially scattered over the world and sharing various kinds of resources."

P2P tends to be larger in scale due to the popularity in the use of domestic home use computers and often has less accountability and reliability is therefore not very suitable for mission critical type applications or workflow process. On the other hand, Grid computing tends to focus on the sharing of resources of mid-size servers capacity with very reliable DNS/routing/IP address to support the reliability for more "mission critical" or "workflow intensive" applications.

3. Comparision of web development framework.

I have not used any web application development framework; but i will attempt to compare the JAVA framework and the RoR framework.

JAVA - requires the compilation of the code to binarys and requires the Java Virtual Machine to process the binary. Ruby on Rails on the other hand tends to be a very simple and elegant solution to first time programmers as it hides away all the details and troublesome syntax related issues in low level programming languages. Both of the languages are object-oriented programming languages. IBM (2005) published a comparison of the two web development framework and outlines the stack view and clearly shows that RoR has simpler structure.




Reference

Foster. I & Iamnitchi., A (2003)
On Death, Taxes, and the Convergence of Peer-to-Peer and
Grid Computing
, Department of Computer Science, University of Chicago.

Behsaz. B, Jaferian. P, & Reza-Meybodi. M (2008) Comparison of Global Computing with Grid
Computing . Department of Computer Engineering and Information Technology, Amirkabir
University of Technology (Tehran Polytechnic), 424 Hafez ave., Tehran, Iran
Retrieved on http://www.cs.ualberta.ca/~behsaz/Publications/GlobalvsGrid-TR.pdf

IBM (2005)
Ruby on Rails and J2EE: Is there room for both? Two Web application frameworks compared.
Retreived on http://www.ibm.com/developerworks/web/library/wa-rubyonrails/

Exercise 4. Virtual Private Networks

1. VPN which stands for Virtual Private Network is private network constructed within a public network infrastructure (Ferguson & Huston, 1998)

Coming from the telecom domain of expertise. VPN in the older days could mean "corporate networks" and "environment" that has to be end to end secured - physical layer. With the advent of packet data swtiching networks, information can be "wrapped" in a virtual envelope, with address information, and be sent via various routes with network protocols such as the IP protocol. Older protocols are like the X.25 standards in data communications or X.400 for mail messaging. These are pretty much old school but some are still used today. Datapac for example is a common data network used extensively in HK during 1980's to 2000's.

DNS on the other hand is Domain Name Servers. IP addresses is in the form or x.x.x.x and name servers are needed to reroute pneumonic names such as google.com to a traceable table of ip address and eventually reaching the physical location of the server that serves the page of google.com. DNS is a complex hirearchical system of trust and labelling system in a lay man's terms.

2. TCP protocol - Transmission Control Protocol. With the design of IP, being packetised and kept in an virtual envelope, each packet of information and data will have to be routed with the given information (as headers, trailers) as to where it should go. TCP allows the efficient parsing of the address information in order to reach its destination. TCP and IP are very closely knitted terminology and data protocols because they are complimentary. IP is related to packetising data and information and TCP is related to the transport layer of the packet data.

3. E-Business applications is a very abstract term; it gets abused a lot. Sometimes, people think by owning a domain name, a email account, a website is automatically a e-business capable. In my belief, to be classified as a genuine e-business application, the convenience and output must be greater than the effort of inputs and that the application must solve a problem that otherwise cannot be solved by existing means. Ebay is a classic example, Paypal is another example, Youtube is also another example but not nytimes.com

Intranet - accessing corporate network and resource using IP protocol inside a building or site
Extranet - accessing corporate network and resources using IP protocol outside a building or site or remotely

Web portal - a website which plays the role of aggregator and repository of many information feed and content. eg. http://nytimes.com

B2B - Busines To Business websites ( This B2B word brings me tears. I once invested as an angel investor US$20K in a business called B2Bweb.com in 1998-2000. It literally vaporises !!); however success in operating B2B marketplace has been better for Alibaba
(BeijingReview, 2007) debuted at listing at Hong Kong Stock Exchange eg. http://Alibaba.com

B2C - Business To Consumer websites (I did make some money online running B2C online stores before selling the business when in Canada, I have no negative sentiment towards this B2C name). eg. http://www.eToys.com

There are also C2C websites. C2C is like ebay or china's taobao (BejingReview, 2007), and kijiji type of classifieds adveristing websites.

4. With respect to VPN. Most of today's business applications and online businesses are running some form of VPN - by resources sharing of secured sessions; session based i.e. not link based. In the most simplest form, it is as simple as using https://xyz.com of the payment gateway or login session to a corporate network. In theory, the global network or the Internet that we use today is in fact a global VPN being sliced and diced into "sessions" of VPN.

In the past, there are many international value-added network business. AT&T VANS, Infonet, Sprint IVAN, BT IVAN and NTT, GlobalOne, etc. These international data networks are slowly moving aways from their own infrastructure (eg. T1/T3 link based network) to IP based networks. In summary, I would say that TCP/IP is now the most important network protocol replacing X.25 in VPN.

Reference:

1. Ferguson. P & Huston. G (1998) . What is a VPN ?
Retrieved from http://campus.murraystate.edu/tsm/tsm340/vpn/vpn.pdf

2. Bejiing Review (Aug 9, 2007) B2B Pioneer a Millionaire Maker
Retrieved from http://english.beijingreview.com.cn/print/txt/2007-08/03/content_71488.htm

Exercise 3. Rapid Evolutionary Prototyping Approach


Let me see. R E P A . That's REPA !

Just like prototyping, the need for instant gratification is always necessary. End users and web developers or application developers always need "feedback" - an active rather than passive pathway to gain better understanding of what has been done, and what can be done moving forward.

Only by making available an environment to help users and developers to visualise or to imagine how the complete system work can help make the entire project MOVE FORWARD.

This Rapid Evolutionary Prototyping Approach will involve two phases
i) evolutionary application prototyping - kind of staggering the application development process
ii) implementation

In this situation, it is often useful to apply project management techniques to ensure phased review checkpoints are available.

Agile software development is on the other hand a methodology in which many and frequent check points, review and adaptations are made when comes to development of software. Both of them has a significant amount of overlap.

An update on my Install of RoR and running it


So it's time to actually execute and create the environment for RoR. I followed the instructions provided by our tutor and it worked reasonably well. He didn't mentioned it but assumed we still remember the following DOS command:-

mkdir rails
cd c:\

My windows XP had blocked this Ruby kernel to initiate its interpreter. Simply "unblocking" it should work.

And when i open my browser (firefox) and type in this URL (http://localhost:3000) , it works well and provide me this following page.

Exercise 2. Technology and the evolution of business options

Five (5) sites each offering the 4 different business options : Online shopping, electronic payments, database access and WAP sites.

1) Amazon.com - offers online shopping, electronic payments, database access and the main URL is at http://Amazon.com with the the mobile wap URL is at http://www.amazon.co.uk/gp/aw/lp.html



2) eToys.com is another website which offers also online shopping, electronic payments, database access and its WAP site has been downsized since 2002. eToys.com has filed for Ch. 11
since last year and its assets is now being acquired by possibly ToysRus.

3) Expedia.com - is a online travel website that offers booking services for discounted or last minute airticket, hotels and car rentals. The mobile wap site in US is already shut down. The UK WAP site is still accessible (http://www.expedia.co.uk/daily/wml/default.asp?tpid=1)



4) ebay is obviously supporting e-commerce, electronic payments, with various database, but its mobile website is one of very few that is still operational with this URL http://m.ebay.com



5)

Sidenote: WAP Sites - WAP is really old tech (Circa 1999-2001). Even for major content aggregator or search enginers like http://wap.google.com and http://mobile.nytimes.com all used to work well but why are we still studying WAP sites anyway. It's hard to get working WAP sites in 2009 (ebay is very exceptional). WML is so shortsighted that at one stage every venture capital company place one of their eggs in a company that somehow "sells" or "had" a mobile gateway that handles WML.

In addition to the 4 business options, I beg to differ. Shouldn't perhaps we should investigate instant messaging or some form or store-n-forward messaging. There are a lot of websites that now offers "outsourced" interactive chat as a pre-sales or post-sales support. What about ICQ the good old ("Oook Oooh") .. the predecessor of MSN or AOL AIM or Yahoo Messenger or Skype or Google Talk or Facebook Chat.

ASUS EeePC 901 For Sale HK$2500 only.


ASUS EeePC For Sale HK$2500 only. White. All original !! Box and everything. Purchased for HK$3900

Notebook used 20GB SSD. Purchased since late August 2008. Comes with original box and warranty.

Now to convince you to become my first customer here on THIS E-COMMERCE transaction. Here is my list of credential, you don't have to trust me. but if you do, I will leave you good feedback too. (LOL)

I have feedback of over 500 at ebay under either boytoyscanada or littlescientist or some other names as well been ebaying since 1996. I used to run a real online store so i am a trusted merchant. I sold many items by craigslist and kijiji too when i had to relocate back to Hong Kong. SO IN ALL, I am a TRUSTED MERCHANT. Trust me Trust me !!

How can one be trusted in an ONLINE COMMUNITY anyway ?

Back to the deal, I can ship international by EMS or COD when exchanging my goods for your bills. I can accept paypal. and even cash bills in USD, Euro, AUD !! Serious Inquiries only !!

CompuServe Information Services


I first learnt of the business in online community when I was working for Hutchison Mobile Data/Information Services in 1993 We became the franchisee for Hong Kong CompuServe and I was the Project Manager for launching them in Hong Kong. The BBS type threads of various interest groups are amazing.

Exercise 1. Yahoo an online community ? Ebay regionals ? The notion of I BELONG

1. a) To elaborte one's interpretation of online community, one has to immerse themselves to understand that "civilisation depends on communications" (Sharpio, 1999). Online community is basically a group of people who seems to have common interests and they will basically interact, communicate, share and be expressive about these commons . Horrigan J. B (2001) asserts that these online groups "share passions, beliefs, hobbies and lifestyles." and In my early days of modelling the business aspect of online community. We called this "sense of belonging" which is where people will tend to profile themselves as "I belong" or "I do not belong" or "I think I belong" or "I think I do not belong". A community by definition is a "passive" or voluntary group of people and online community is therefore an extension of the voluntary group and social behaviour of the group experience in the "online world" - our World Wide Web. Before World Wide Web, there are already bulletin boards, gopher, newsgroups, CompuServe, AOL, and many other forms of similar online communities.

On this note, I really don't think Yahoo should be classified as an online community although one of the basket of eggs is indeed supporting "communities" or "groups" per se.
See http://groups.yahoo.com/?ch=web&pub=fp-us&t=fp&sec=link&slk=defaultrough

Zope.org OTOH is more narrowly focused on the notion of "I belong"; the developers, programmers and circle of Zope followers and hence the website is supporting and promoting the social happenings within the "I belong to Zope" followers

1. b) Ebay.com Ebay.co.uk Ebay.com.au

i) To most people, this is basically an internet domain name. To me, it means regulations, internet policys, jurisdictin, cybersquatting, trademarks and intellectual property. From a marketing standpoint, there is really no need to regionalize or fragmentise ebay operations since the world is global and rules are easily defined and the boundaries of its core "auction" services is very few.

Did you know that it is possible to have ebay.world domain name ? Although not the intention for this exercise, but isn't the reason behind the various first level TLDs (top level domains) like .uk and .au a means to seggregate the currency and jurisdiction of operating business - corporate governance. Is there a ebay.to operation ? .to is a popular domain name too.Tonga's NIC has been selling their .to domain names to the world since 1996. Is there a need anyway ? The population of Tonga is only 119K people. ebay.to will give you error 403 but at Tonic.to, it says it is reserved. are they hoping to hold Ebay for ransom ?? Is there enough people in Tonga or outside of Tonga that may be interested in "auctioning" and "bidding" in the ebay.to website anyway. Online community in the sense of "I belong" in ebay case refers to the common interests in bidding and selling "articles". Craigslist and Kijiji are also examples of popular online communities of "buyers" and "sellers"; where people belong !!

Side note: a check on the domain names: there are many domain names available with ebay. If you dare, go ahead and get one like ebay.gg

ii) At ebay websites, Paypal is the most common form of payment system for settling a transaction. Paypal act like an escrow account. I remember it started in 1995-6 as an novel payment methods - and the key business driver is "all you need is an email address and a credit card". Payapl makes becoming a merchant or customer easier. Other forms of payments includes localised version of COD, money order, western union and other local implemenation of payment systems.

iii) The perceived benefits are numerous but in summary; these benefits can be classified as follow:
- Sellers can turn junks into cash ! Sellers can make income !!
- Buyers can shop for cheaper deals, and otherwise hard to find items
- Ebay is an "online intermediary"; also a"transaction enabler" and its"content are supplied by many users" the same user supplied "content are also viewed by many users". The aggregation of data flow, process control and rule-based continuously engage its users. Its astonishingly addictive and useful !!

2. Amazon.com is another model of a successful business - but it has also recently tried very hard to replicate the ebay "selling" model by creating a platform for users to engage in selling and buying activities. Another Web 2.0 incarnation, since amazon.com used to sell to customers books, it is now a repository of information, serving "users" with common interests as well as creating the social environment for people to belong. A purchase of the book is a simple few steps of clicking and getting an account and paying for it. Jeff Bezos pioneered this step and still hold the patent to this One-click process.

Yes, there are lots of "users engagement" and processes or input transactions which does not involve money (eg. discussion, reviews, forums).

Amazon.com sells almost all types of hard line products - more than just toys. When I was working for a toy company, they keep SKUs of our helicopters and flying robots. They also buy from my current company. They sell pretty much everything (except firearms and bombs of course).

The steps to making a purchase would entail getting an account, placing an item in the shopping basket and check out to make payment. There will be steps involved in supplying information including the purchaser's shipping details and credit card/payment information.

Food for thought: Does Amazon accept paypal payment ??


3. Price comparsion websites are now new - but the business model and key drivers for their substainability are definitely because of the fact that they have already engage the customers (in this case online customer who was seeking for the best deal being offered by the various online shops for a single product). The incremental effort of "locking" or "closing the deal" should therefore become easy - in theory. What if a customer uses these information and ask for a bargain from a local "brick and mortar" retailer to haggle the price down ? A typical retailer may budge since it is about turning over inventory; but hang on, there will be no sale for the price comparision shopping website then and no margin to be made. In that case, it is still playing a pivotal role in e-commerce - setting the price benchmark and levelling the playing field. The notion of "those who are keen to sell will sell at the lowest price" hold true.

Price.com is a typical price comparision shopping site. In Hong Kong, there is also a website called Price.com.hk (no relation to the US website) which actually is more like a forum; but do offer information on the best deals in town for many articles. I last used this website to purchase my ASUS EeePC 901 netbook.


Reference:

1. Horrigan J. B. (2001), PEW Internet & American Life Project. October 31 , pp 8-11., Taking Sides - Clashing views on Controversial Issues - Science, Technology and Society by Thomas Edison. McGraw Hill.

2. Sharpio. A (1999) The Control Revolution: How the Internet is Putting Individuals in Charge and Changing the World We know. New York PublicAffairs 1999., The Information Revolution published by GreenHaven Press.

RubyGems is by its very nature a rock. A rock is supposed to be solid or crystallized form.

So what so SOLID about this RubyGems. Find out more below.

At first, I thought our tutor is pulling our leg here. When i typed in what is being asked on a command prompt. Hands up for those who still remembers DOS command stuff (a chocolate muffin is waiting for those lucky ones).

Anyway, this screen shows up




and luckily I didn't close this command screen, cos the "message" which I "interpret" as an error message is actually really doing or installing. We just had no clue.

A while later, this screen shows up...



So my 2 cents worth is, be patient with every step. Ruby On Rails Rocks !!

Ruby On Rails is a web application development framework.

So while waiting for the download and installation. I did a wiki search (hey wiki ! that's web 2.0, isn't it) ..Yeah !! and what is exactly web 2.0. I must say in this business, there has to be always enough busts words (oops, excuse my english) i meant to write buzzwords to keep us nerds entertained. Like SaaS, URL, Web 2.0, application frameware and yada yada.

So it seems that the leader pact in Web 2.0 - wikipedia says "Ruby on Rails is an open source web application framework for the Ruby programming language. It is often referred to as "Rails" or "RoR". It is intended to be used with an Agile development methodology, which is often utilized by web developers for its suitability for short, client-driven projects."

And checking for a more official source right now.

Be Careful. It will delete all your files and infinitely install folders in your Windows !

Ok. That was just the title to get your attention. But the truth is far from my "sarcarstic" suggested title.



So I downloaded the .EXE and install it. The installing window keep scrolling a series of folders..and believe me ; it seems to take forever.. Hope it's not going to crash my hard drive. Do you guys trust these open soure web ware anyway ? It does look scary as it seems to endlessly create folders and shortcuts !!

Believe me. It should be OK !
I clicke the famous NEXT button, and it seems to work fine for now. and show me the README.txt file which contains a series of notes. It seems to suggest that RubyGems already is installed (I did click a tick in the RubyGem tickbox earlier). But the tutor did ask ask us to install RubyGems with this URL (http://rubyforge.org/frs/?group_id=126)


So should I download and install again. PUZZLED for now !

E-Commerce M-Commerce and what else ?

Well. I am not sure if it adds points to this coursework but since this is a blog to cover first hand experience. i did used to own over 200 internet domain names once and I sold an internet busines in 1996-7 for creating a secondary exchange for trading internet domain names. I have co-founded the patent in m-payment with my taiwanese partner who still own M-Commerce.com !! Ah well. Just blowing my horn here !

Downloading for RubyForge

So i checked our tutor's suggested URL. It was http://rubyforge.org/frs/?group_id=167
and I have chosen the latest one as of today.

What is Ruby on Rails ?

Ok. So ruby on rails ! What is it anyway. In my discovery this weekend. I will try my best to install this "natively" in one of my windows PC. RubyOnRails - does not have any pnemonic meaning (i must say). Even as a IT guy, unless you really follow all the various open source development; you would have no clue whether any such efforts really would take on. I mean check any of the CMS so called Content Management System. You can literally have Drupal, Mamba, Joomla, and a handful of hundreds of these. A simple search at SourceForge.net will bounce back at least >100 entries. So is RubyOnRails a CMS ? I am all guessing at this point.

Forgive me if i don't know RoR. I haven't really manage IT stuffs for many years other than investing into internet projects.

I didn't follow the link provided in the CSU ITC594 forum, but it wasn't hard to find RoR at all using our favorite search engine. One commendation though is at least the SEO effort for RoR website is top.
Rank 1 of 6,150,000 docs. That gets me thinking and wondering what CMS RoR itself uses ? So the first return link is already Ruby On Rails website's URL. http://www.rubyonrails.org
as shown below here.

Friday, March 6, 2009

ITC594 E System Infrastructure

Hi, i will be using this following blog to cover my online progress studying this unit. I am in my final semester right now, currently completing 3 units this semester. I received my B.Sc in computer science back in 1990 at Deakin Uni.

Here is my complete profile

I have also started a Facebook group for M.IT studentshttp://www.facebook.com/group.php?gid=47655094108 ; for those of you who would like to share more outside this forum. Using homogeneous network resources is sometimes easier that heterogenous resources.I like this M.IT so much that I am also wrapping my M.IT coursework around a real business venture in incubation.