G9677607 @ Blog *+﹏+*~ Blog @ G9677607

2008年6月9日 星期一

2008年6月2日 星期一

網路socket編程指南

網路socket編程指南
出處:http://member.netease.com/~chcd/socket.htm

譯者:網前沖
[Version 1.5.5]
[ http://www.ecst.csuchico.edu/~beej/guide/net/

________________________________________
目錄:
1)
什麼是套接字?
2) Internet
套接字的兩種類型
3)
網路理論
4)
結構體
5)
本機轉換
6) IP
位址和如何處理它們
7) socket()
函數
8) bind()
函數
9) connect()
函數
10) listen()
函數
11) accept()
函數
12) send()
recv()函數
13) sendto()
recvfrom()函數
14) close()
shutdown()函數
15) getpeername()
函數
16) gethostname()
函數
17)
功能變數名稱服務(DNS
18)
客戶-伺服器背景知識
19)
簡單的伺服器
20)
簡單的用戶端
21)
數據報套接字Socket
22)
阻塞
23) select()--
多路同步I/O
24)
參考資料
link:

sendto 和 recvfrom

sendto 和 recvfrom 系統呼叫可用來收發非連線導向的網路資料。

使用例:

#include
#include

int sd; /* socket descriptor */
int count; /* number of bytes transmitted */
char buf[100]; /* transmission buffer */
int len; /* max number of bytes transmitted */

int flags; /* for handling special messages */
struct sockaddr_in to, from; /* endpoint addresses */
int addrlen; /* length of address structure */
count = sendto( sd, buf, len, flags, (struct sockaddr*) &to, addrlen );
count = recvfrom( sd, buf, len, flags, (struct sockaddr*) &from, &addrlen );

2008年5月28日 星期三

All New mondeo-1

在愛車小銀的里程數已到規定保養的公里數的前提下, 上星期6早上,
星期6早上9點的高速公路真好開, 內側車道, 終於可以是超車道囉!
以時數110km的法定可容許最高速限, 駕著小銀往保養廠去,
偶而還是會有比我快的車駛近, 這時候就一定要拿出駕駛道德啦!
讓他, 並行注目式目測他漸漸離去, 真好, 沒有小龜龜霸占內線,
真希望每天的高速公路都可以這樣.

到了保養場, 接待人員一定會給你登記呀, 問你要做啥呀......
不啦不啦的..... 就跳過囉!
反正到保養廠, 我還是會親自去跟技師再說一遍, 順便跟他們打屁,
聊聊天, 套套交情啦!
套一句我最熟的技師的話, "這是一定要的啦!"
這時侯一定又有很多話, 阿....快轉跳過--->>>

重點來啦, 我問技師: ㄟ..你們家的new mondeo有試乘車了ㄇ?
他回我: 喔! 有啦! 我還以為你不會問哩! 早就幫你想好啦! 去業務那邊打個招呼, 就可以開去試試看囉!
心中的OS: e04! 這麼好! 阿怎麼不早說! 案哩!
我回他: 阿! 早說嘛! 這好康的耶!
他回我: 等等幫你用好, 就一起來去試試吧!
.... 這時候又有很多機車的對話, 跳過跳過, 講重點, kkk.....
轉----->>>>>>

拿到key啦, 拿到new mondeo的key啦! kkk.... 心中暗爽不已!
ㄟ? 沒有一般key的金屬部分??? keyless???
好一個keyless呀! 小咖的, 這難不到我的啦! 哈哈哈!
開門時, 喔! 好一個沉重的門呀, 份量就是跟我家的小銀有差, 阿! 對不起小銀, 主人沒有嫌你的意思!
只是實事求是, 工程師是不可以說謊的, 關門啦! 奶奶的, 聲音有差, 心中的為何一直出現一種愧疚感呢?
看下power, ㄢˋ! 沒反應???? @.@??? @.@??? @.@???
遜掉啦! 堂堂的高級工程師, 打不開new mondeo的enging, 那ㄟ安ㄋ?
看看HUB一下, 後!~~~~ 這個HUB會不會太花俏了, 我還以為是我以前做的7" PMP哩.
不過倒是很炫, 因為整合了所有行車資訊, 這個人機介面不錯,
不過本工程師, 是斯巴達派的, This is spartan!~~ XD
一切喜歡精簡, 不求花俏, 穩定為最高原則(不是說HUB不夠穩定唷),
就是喜歡簡單啦! 這是給死老百姓用的(心中的驕傲的OS),
話說回來, 原來是我沒踩煞車, 這才new mondeo的enging是不理我的,
來吧! Gentelman! start your enging!~~~~
ㄟ...我啟動了ㄇ? 這不是柴油車ㄇ?
怪怪? @_@a
怎麼這麼安靜, 這不是柴油車, 這不是柴油車,
i don't believe!
直到打開車門, 聽到啦啦啦...... 好吧! 他真的是柴油車.

像這種試乘車, 嘿嘿... 不用客氣, 用力踩吧!~~ This is spartan!~~ XD
這就是 spartan的精神! 徹底的, 用力的, 把它發揮出來吧! 哈哈哈....
先說唷! 我試車的時間可是中午12點喔!
車上有3名壯漢, 當然包含我, 冷氣當然是不用客氣的用啦! 爽! kkk....
先試試3/1油門 習慣一下他的脾氣, oh la shit! 這怎麼那麼像我家那隻SAAB 9000的感覺呀!

先進網際網路HomeWork6

Homework 5-3-2008
Read Papers 12, 13, and 14. Write a brief summary within 200 words for each paper.


Paper12:
Empirical analysis of online social networks in the age of Web 2.0
by: Feng Fu, Lianghuan Liu, Long Wang


• It’s often a personal journal maintained on the web, which is easily and frequently updated by the blogger.
• Blogs are the fastest growing part of WWW.
• Social networking site provides service for messaging, sharing information, and communicating.
• It’s a flexible and convenient platform for individuals to form and maintain online friendships.
• SNS sometimes takes advantage of advancement to understand of complex networks, promote the increase and consolidation of online acquaintanceships.
• It’s also in return enhances the popularity of some social networking sites.
• The Vertices represent the bloggers, and the favorite links pointing from one blog to another denote.
• The online users are connected to one another based upon bilateral agreement.
• Moreover, to our best knowledge, empirical analysis of the structure of online social networks in the age of Web 2.0 is rarely considered in previous investigations.
• it’s meaningful and interesting to scrutinize the structural character of these online social networks in web2.0 age.

Conclusion:
• We performed empirical analysis of two online social networks, and showed that both network have small world and scale free features already observed in real world and artificial network.
• We found that the blogging network shows disassortative mixing pattern in general, while Xiaonei network is an assortative one.
• Our case study might help us to understand the topological features of online social network in the age of Web 2.0.
• On top of two realistic network obtained in the study, simulations of dynamic processes can be integrated to investigate spreading process, evolution of cooperation, etc.



Paper13:
A short walk in the Blogistan
by: Edith Cohen, Balachander Krishnamurthy


Develop a methodology to identify emerging patterns on general data sets that comprise evolving communication networks by exploring how emerging interests and patterns can be extracted by tracking a seed collection of blogs that have been modified fairly recently. Present a collection of inferences and observations based on their study on identifying blogs, the growing spam problem in blogs, and how blog sites are accessed.

The blogs differs from traditional Web pages both in characteristics and potential to applications.
• The first part of their study is longitudinal—based on a five-week continuous fetch of a seed collection of nearly 10,000 blog URLs.
• The second part is based on a successive crawl of pages suspected to be blogs leading to a larger collection of several million URLs.
The second part, they extracted the links in each of the instances of the URLs to examine the individual blog page's link structure and to do an overall measurement of how the blog collection differed from nonblog Web pages. Then the collection is examined for a variety of properties.
• They characterize blogs and study different facets of the link structure in blogs and its evolution over time, attributes of servers and domains that host many of the blogs including their IP addresses, and how blogs behave with respect to various HTTP/1.1 protocol issues.
• Inferences from they in-depth exploration are relevant to applications ranging from mining to hosting of blogs and other issues of relevance to the measurement community.
• An important contribution of this research is the methodology they developed to identify emerging interests by mining byperlinks in blogs and their change overtime. The methodology constitutes a general approach to mine evolving interconnection networks that they believe can have applications well beyond the Blogistan. By canceling out “repeated patterns” they are able to identify emerging ones.
As the conclusion, this paper is the first widespread study to characterize individual blogs and the shape and shape of the blogistan.



Paper14:
Analysis of User Relations and Reading Activity in Weblogs
by: Tadanobu Furukawa, Tomofumi Matsuzawa, Yutaka Matsuo, Koki Uchiyama and Masayuki Takeda


First, a correlation indicating that users often visit blogs with strong relationship (various definitions for the relationship, such as comments and trackbacks, are considered in order to analyze which is the most effective for the purpose). Second, analyze whether blogs that are red frequently by the users can be identified from blog relationships.
Perform mining, using not only bookmarks, which have properties similar to hyperlinks, but also relationships such as comments and trackbacks, which are link relations unique to blogs. Also, by using a blog database, the reading behavior of the users can also be utilized as a form of relationship. One of the main purpose of their investigation is to analyze what information is an useful information to users.
In a blog network, there are many relations such as comment, trackback, and so on. The authors consider that if the relations are related to user’s reading activity, then we can extract useful information from the relations for using a recommendation system. So, In this paper:
They analyze which pages the users in a blog network read most frequently from the viewpoint of the relationship among blogs, and interpret the result.
They define the strength and type as the measure for relations, and analyze the correlation between those measures and users’ reading activity.
 The factors influencing reading by users are analyzed by a machine learning algorithm, and it is shown that reading through links occupies a large percentage of all reading activity in a blog network.
The acquired data also suggest that a blog that is the destination of comments of trackback actions by the manager of interest to the user.
 They attempt to determine the relations on which users regularly read the blogs.
This paper has analyzed blog networks focusing on unique relationships.
       The range of 2-hop connection from a blog is considered, and an attempt is made, by using the index, to reveal the reading behavior of users, such as strength and kind, on the basis of the number of routes.
 A tendency is found that users who repeatedly read a blog with a given interest also tend to repeatedly read other blogs that are targets of action by the owner of that blog. This tendency willprovide a basis for information recommendation
As a conclusion, it is evident that bookmarks have a strong effect, and that users circulate around the bookmarks in a blog network. Also, there's a tendency that users who repeatedly read a blog with a given interest also tend to repeatedly read other blogs that are targets of action by the owner of that blog.

2008年5月22日 星期四

Linux-2.6.17/include/linux/sockios.h

Linux-2.6.17/include/linux/sockios.h
#include

Link

2008年5月16日 星期五

The Presentation of Empirical analysis of online social network

Hello erery one:

If you have more interesting about this paper, which you can observe my presentation.
Link

References:
F. Feng, L. Lianghuan, W. Long,
Empirical analysis of online social network in the age of Web2.0
, 9 October 2007.

2008年4月19日 星期六

先進網際網路HomeWork5

1. Read the abstract of Paper 3, 6 and 7. If possible, skim the whole paper.
Summarize the papers briefly.

Ans:
Paper3:Social Network Analysis to Blog-based Online Communities
Summary :
  • Social Network Analysis (SNA) is used as a research vehicle to investigate the structural patterns of blogging communities. SNA is a sociological methodology for analyzing patterns of relationships and interactions between social actors in order to discover the underlying social structure. Not only the attributes of social actors, such as their age, gender, socioeconomic status, and education, but also the properties of relationship between social actor, such as the nature, intensity, and frequency of the relationships, are believed to have important implications to the social structure.
  • "good conversations” in the blogs as social media are beneficial to peer support and social learning.
  • Most blog platforms provide a personal writing space that is easy to publish, sharable, and automatically archived and empower users to form learning communities by way of inter-linkages.
  • Blog is an effective and efficient tool of knowledge management. And They are easily linked and cross-linked, thus creating larger on-line communities.
  • Blogs are easy to maintain, low cost, easy to deploy, and simple to get stared. Using blogs is found to simplify the tasks of reducing piracy.
Paper6:Mobile Computing for Indoor Wayfinding Based on BluetoothSensors for Individuals with Cognitive Impairments
Summary :
  • Bluetooth is an industrial specification for wireless personal area networks (PANs). Bluetooth provides a way to connect and exchange information between devices such as mobile phones, laptops, PCs, printers, digital cameras, and video game consoles over a secure, globally unlicensed short-range radio frequency.
  • Bluetooth is used for personal way finding purposes where Bluetooth beacons and ID scanning are used, but no device inquiry, time-consuming pairing, or information exchange does happen. Bluetooth operated in this discovery mode saves power, eliminate manual passkey challenges, and reduce privacy and security concern as the use does not expose her ID. Based on the Bluetooth beacon received, the position where the user is can be identified at the remote server and enable the way finding sequences.
  • This paper present a wayfinding prototype system based Bluetooth sensors for individuals with cognitive impairments.
  • The design draws upon the cognitive models of spatial navigation and consists of wayfinding devices and a navigation system.
  • The success ratio can depend on:
-- the extent to which participants suffer from mental disabilities,
-- the complexity of routes,
-- the degree of received training and self-practices, and
-- the distractions the participants may encounter.

Paper7:Action Science Approach to Experimenting Nonprofit Web 2.0 Services for Employment of Individuals with Mental Impairments
Summary :
  • The authors study the processes of how to unleash the power of Web2.0 to assist people with mental disabilities and their caregivers.
  • This research is interested in applying Web2.0 to employment services for people with mental disabilities. Because Web2.0 empowers users become content contributors instead of just content consumers. And it also can save time and money. The users no longer need to worry about the software and hardware maintenance, which can be complicated work.
  • This paper applied the technology of Web2.0 in an employment services system for individuals with mental impairments to make their organizational operation more efficient, called Nonprofit 2.0. and the prototype has been built and tested by the job coaches with significant success.
2. According to Chap. 6 of Textbook. what is a functional architecture of e-commerce systems?
Ans:
A functional architecture of e-commerce systems consists of several components with its own unique functions that linked together. There are four primary components of e-commerce systems:
  1. Client: computer system, typically a PC, which is connected to the internet. Usually used by buyer to browsing and/or purchasing. (e.g.: home PC, PC of buyer's company).
  2. Merchant: computer system or systems that contain the seller's electronic catalog and, in the case of online goods, products for over-the-Net fulfillment. (e.g.: content servers).
  3. Transaction system: computer system or systems that process a particular order and that are responsible for payment, record keeping, and other business aspects of the transaction. (e.g.: application servers).
  4. Payment gateway: computer system that routes payment instructions into existing financial networks such as for credit card authorization and settlement. (e.g.: resource managers).

3. Lab: PageRank
PageRank is a tool for measuring the importance of websites. Given every URL, there is a PageRank value for it.

Ans:
Sir, already done! Please the attached figures.
New York Time
CNN.Com

2008年4月4日 星期五

先進網際網路HomeWork4

1. Read Paper 1 & Paper 2. Provide a summary for each of the paper.
ANS:
• Reading ….

2. Read Chap. 4 of the textbook. What is the Business-to-business model?
ANS:
• Business to business(B2B) is the Businesses modal using web internal or any kinds of electronic commerce transactions. With online catalogs to provide option on the merchandise of any kind selling products to others. Using this modal, building many kinds of commerce transactions to sell any kind of we want to sell. These commerce are characterized by high-volume, low-value purchases, repeat business from the same customers, and high order processing costs for both buyers and sellers.

• B2B catalog online are immediate cost savings and an ability to provide better service. --Reduced cost of selling
--Reduced order processing costs
--Improved service levels for low-volume customers
--Higher-quality information for customers
-- Accurate information
• B2B is also used as an adjective to describe any activity, sales, or e-commerce, that occurs between businesses and consumers.

3. Digital goods can be distributed over the Internet but physical goods have to be delivered logistically. What are digital goods? What are the differences between the two?
ANS:
What are the digital goods ?, for example like adobe photoshop(software),kkbox(online music),the warcraft(online game)....etc.
• Digital goods include:
--documents;
--data;
--reference information;
--sound;
--video;
--images;
--software…….
• Different between digital goods and physical goods. Digital goods can be transfer by internet or not real but physical goods must be transfer by human or contact. And The digital goods can be play or performs on physical goods.

4. Using RSS to track many blogs at one time.
ANS:
•Ok!
Comment:I also can publish what I'm interesting about.

2008年3月14日 星期五

先進網際網路HomeWork3

Homework 3-8-2009

1.Track your comments at a focal point :
Ans : I had linked the new RSS on my blog, that was call “young 的「Teacher's Blog」”. So press the already done!  linking on my BLOG to see the young 的「Teacher's Blog」.

2. Using Personal Portal :
Ans: already done! press this to see.

3. Make your blog organized by adding labels :
Ans: I had added the labels on my BLOG, press already done! linking on my BLOG to see the "LABELS".

label test

label test

2008年3月2日 星期日

先進網際網路HomeWork2

1. According to the book by Treese and Stewart, what is the commerce value chain? Why not see them on an individual basis?


figure 1 The commerce value chain
• Attract customers: Marketing - get and keep customer interest.
• Interact with customers: Sales - turn interest into orders( generally content ).
• Act on customer instructions: Order management - order capture, payment, fullfillment.
• React to customer requests: Customer service, technical support.
I have a idea, which I can do some thing on web commerce chain by myself, so it’s new world on the web size to implement our new commerce chain.

2. Is the Internet different from other media? Why?
Yes! It’s the different form other media. There are much topic in the internet, like radio, music, video, knowledge such as those application. ETC:
1.Time: Internet is 24 hours a day to service all. Ex: yahoo, google….
2.free: all information and media are free to use.
3.locate: connection form every where, even leave you thousand mile with you, that is message throughout in very short time.
For Example:
we open the browser then we can search all the "media" on net.Such like google search, which can search any thing thought that. we can also search all the video and music in youtube , photo by picasa , even books. So the internet is including all of the media , and we just use our computer or PDA or mobilphon link net to visit all mulit-media world.

3. On this Internet-based tool, you are able to edit a paragraph while someone is working on another. In order to do so, you got to have an account to login Google. Please use your email to apply for one so that you can use it now. A link to the document will be included in the message, please just click on the link to collaborate.

Please be noted that not only can you browse the document but also you can edit and update it freely. You may see other colleagues online at the same time and refrain from making updates. Please feel free to go ahead. The software will resolve change conflicts for you.
The revision history will keep a log of all changes. So your changes will be noticed by other colleagues and re-reviewed.

Convert one of your Word document using Google docs.


Comment: Post documents

4. Customize your blogs.
• Check into your blog homepage.
• Enter "setting"
• Select "Add links"
• Write down "http://enminstral.blogspot.com/" and the title as "Web Services and Advanced Internet Systems"
• Add your own favorite links.

Comment: already done it!

2008年2月28日 星期四

先進網際網路HomeWork1

Homework 2-23-2008
1. List the companies Google acquired year by year.Briefly describe the strategic implications of each acquisition.

Comment:

List the companies Google acquired year by year
Reference by:
en.wikipedia.org, “List of Google acquisitions”.

Today most people are using Blogger (February, 2003) ,Picasa(July 13, 2004),
Google Earth(October 27, 2004), Google Maps(October 2004), and Gmail,
that are necessary in our world.

I usually using Gmail to my e-mail, Picasa to photo, Google Maps to travels.



2. Summarize the What Is Web 2.0 by Tim O'Reilly
in one page.

My comment:


3. Reading Assignment: Read TS Ch. 1~2.

Hello~ New blog

Hello~ New blog