Share008資訊科技公司

我是資深的電腦資訊從業員,曾於 Motorola 及 Philips 等跨國大型公司管理層工作十多年,具各類ERP資源管理系統及其它應用系統經驗,如QAD之MFG/PRO、SAP、Ufida(用友)、Kingdee(金蝶)、Microsoft's Dynamic、Wonderware's In-Track (SFC)、Webplan (SCM)、Hyperion (business intelligence)、Informatics (Data Warehouse)...等等。另外,我精於廠房車間之電腦資訊運作,擁有 CISSP 及 ITIL 認證,能提供日常資訊運作之檢測及審查,以提高操作效率。 本人誠意為各類大中小型廠房提供資訊審計、支援及意見,歡迎聯絡,電郵為 au8788@gmail.com

「ERP資源管理系統」已是現今廠房管理必不可少的工具,提高它的效能,絕對能改善公司之盈利,請多多留意。

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

提供香港股票價位歷史數據

我想很多人會對"香港股票價位的歷史數據"有興趣,我已下載成Microsoft Access database version 2000 的文檔,資料由2008/1/1至2009/12/2,zip壓縮後也有11M,若索取請留你的PM我 。

祝願各瀏覽者股壇威威!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2014年11月24日

Solo Ads – Very Targeted Traffic

Information Source: http://www.ringoli.net/solo-ads-very-targeted-traffic/

先感謝各位參與小弟跟Dr Bruce的合作計劃,由於同一時間我們不能提供太多支援,所以有些朋友未能直接參與,如果閣下仍有興趣,不妨Email給我,我們只接受肯做肯學的人,不想浪費大學時間 !
承接上一編小弟介紹Dr Bruce時,我說他是Solo Ads的專家,有人問這是什麼?

什麼是SOLO ADS?

那小弟就用小小時間講一講!  (有追開的讀者,如果有印象,應該對之前一篇關於俾錢睇人寫日記的文章,其實佢都係做Solo Ads的)
 Solo Ads最簡單直接的就似香港的eDM,即係Direct Email,小弟不材,我真的不知絕大部份香港的eDM個List係點黎,有d人話係俾錢買番黎,收到客人Order就會幫手Send出街,計錢可以是係逐封計,也可以10000封為單位。
外國,其實都係講緊美國,為何不用Google Adwords 或在facebook 落Ads呢?
好多人都會用Solo Ads其中一個主要原因係便宜,相較來說,Solo Ads效用可能比廣告更佳!
Solo Ads 可以做以下事情:
  • 由於好多Solo Ads的provider都有將個List分類,例如係想上網賺錢的,家長的,單身等等…你可以揾啱Solo Ads 的provider,針對性揾你的主要客群,把你的產品或廣告推銷去個List的人那裏。
  • 建立自己的Email List﹕: 有些公司或個人想建立自己的Database,好多時都會用Solo Ads,其運作不外提供一些免費的Report,E-book去換取客人的Email。
  • 有些進取的,會直接用Solo Ads 傳自己的產品或別人的產品獲利,但這並不常用,因為絕大部份solo Ads的service provider都會否決你的Email。
由於Solo Ads的價錢不高,由USD 20 去到 USD 800 都有,質素可以好參差,有時,平,未必一定好!
跟eDM不同,他們通常以Click計算,例如

以上廣告就係200 個click 為單位,收80美元,貴嗎?
好難講,如果佢個list係好高質素的,可以話係好平的了!
有一點要注意的,當你買一個service時,通常Solo Ads 個 list的擁有者,絕大部份都會講明有乜野可以send,有乜野唔可以send,通常層壓式,MLM,色情都唔會接受。
有一些provider為了確保他們List的人得到最大價值,更表明你要提供有價值或免費的東西 (ebook, report, evaluation),先會幫你send out!
以下是小弟一起合作的Dr Bruce,少於一天的時間,他免費加左超過50個subscriber去我個list度,如果你想加大個list,就讓專家幫你吧!



建立你自己的Email List才是皇道,它是一個資產,好多人覺得要用好多時間才能建立一個好的List,這點我是絕對同意的,但它的價值極高。

2014年11月17日

IT人在工廠日記 – 防火墙问题

大约於十月中开始,我公司的防火墙设备运作不稳定,连接外网经常断线,影响员工的上网,可是重启防火墙後便回复正常。以前每个月需要重启防火墙一至二次,现时每天也有机会需要重启,这可能是因为防火墙设备老化所至,而搜索过大部份网上论坛的评语,发现我使用的 Zyxel 防火墙设备的质素和评价差劲,一般只能正常运作三年,而我的 Zyxel 防火墙亦已使用了三年多,所以是时间更换了。
劝各位,不要贪平选用 Zyxel 防火墙呀!
source: http://infotechmanagefactory.com/it%E4%BA%BA%E5%9C%A8%E5%B7%A5%E5%BB%A0%E6%97%A5%E8%A8%98-%E9%98%B2%E7%81%AB%E5%A2%99%E9%97%AE%E9%A2%98/

2014年11月14日

Install odoo (OpenERP) on Fedora 20

I tried the following Odoo version 8 installation script under Fedora 20, it works well.

source: https://www.rosehosting.com/blog/install-odoo-8-on-a-centos-7-vps/

Odoo is a suite of business applications, organized in 6 groups: front-end applications, sales management applications, business operations applications, marketing applications, human resources and productivity applications.
The installation of Odoo 8 on a Fedora20 should take about ten minutes if you follow the very easy steps described below.

2014年11月9日

Steps of the most profitable Internet Business

1. Choose a series of affiliate products in the same niche to promote.
2. Create a free eBook about the niche to give away.
3. Create a squeeze page offering the free ebook.
4. Send traffic to the squeeze page.
5. Capture the lead coming to the squeeze page.
6. Deploy an email auto responder to build the relationship with your new subscribbers.
7. Recommend affiliate products and services to solve your subscribers' problem.

The important is that all internet marketers should eventually create their own information products in order to elevate their brand.

2014年11月8日

Lenovo 开机时出现“stuck key” 错误解决办法

我的上网本型号是Thinkpad,偶尔开机时出现
“ERROR
0210: Stuck Key 2A
Press <F1> to Setup”
还伴随着“嘟嘟”两声。

原因:字面上意思是键盘上的某个键(应该是编码2A对应的那个键)粘住了,没弹上来,或者是因为按键下面有灰尘等杂物使按键处于按下的状态。
解决办法:1、强制关机,拔掉电源插头,拿掉笔记本后面电池重新装上,开机,90%能开机。
          2、强制关机,找到编码2A(我这里是2A,可能会是别的编码)对应的那个键,多按几次或者拿下来清理下再装上,以下附各种编码对应按键表:【举例:如果出现Stuck Key 2A,则是left shift(左面的shift键)按下去了,拿下来清理下装上后开机】
F1<—>3A; F2<—>3C; F3<—>3D; F4<—>3E; F5<—>3F;   F6<—>40; F7<—>41;   F8<—>42; F9<—>43; F10<—>44;    F11<—>45;   F12<—>46; Q<—>10; W<—>11;   E<—>12; R<—>13; T<—>14;    Y<—>15; U<—>16; I<—>17;   O<—>18; P<—>19; A<—>1E; S<—>1F; D<—>20; F<—>21; G<—>22; H<—>23;   J<—>24; K<—>25; L:26; ;

2014年11月4日

Odoo e-commerce software

I agree that Odoo software (former: Open ERP software / Tiny ERP software)  is the best open source ecommerce software.

Full-featured e-Commerce

Optimize sales with an awesome online store

Odoo's e-Commerce software is unlike anything you have ever seen before. Get an awesome catalog of products and great product description pages.
It's full-featured, integrated with your management software, fully customizable and super easy.

Create Awesome Product Pages

Get rid of old WYSIWYG editors

Odoo's unique 'edit inline' and building blocks approach makes creating product pages surprisingly easy. "Do you want to change the price of a product? Or to put it in bold? Do you want to add a banner for a specific product?" Just click and change. What you see is what you get. Really.
Drag & Drop well-designed 'Building Blocks' to create beautiful product pages. Your customers will love it.

Increase Your Revenue Per Order

Simple solutions to boost your business

The built-in cross-selling feature helps you offer extra products related to what the shopper puts in their cart.
Odoo's upselling tool shows visitors similar but more expensive products from your database, with incentives.
The inline editing feature allows you to easily change a price, launch a promotion or fine tune the description of a product.

Built-in Invoicing & Accounting

No more painful synchronization between different software

Produce customer invoices in just a few clicks. Control sales and cash in real time and use Odoo's powerful reporting to make smarter decisions and improve your online store's efficiency.
No more hassle with integrating a variety of software: get all your sales and inventory operations automatically posted in your G/L.

Integrated Inventory Management

All your stock data in one unique place

Consolidate all your sales channels in real time: stores, ecommerce, sales teams. Get real time control of the inventory and accurate forecasts to manage procurement.

Clean Google Analytics Integration

Control your sales funnel with Google Analytics

Get clear visibility of your sales funnel.Odoo's Google Analytics trackers are by default configured to track whatever is happening on your sites - shopping carts, call-to-actions, etc.
All Odoo marketing tools (mass mailing, campaigns, etc) are linked to Google Analytics, so you'll get a complete 360° view of your business.

Target New Markets

Website in multiple languages

Get your website translated into multiple languages with no effort. Odoo  suggests translations across all pages, following what you edit on the master page.

Automatically translate pages thanks to Odoo's "on demand" translation service using a professional translating service. Just change any part of your website  and the translated versions will be updated on the platforms automatically in around 32 hours. A professional standard of translation is guaranteed.

Fine Tune Your Catalog

Boost sales by emphasizing best products

Get full control of how you display your products in the catalog page: promotional ribbons, related size of products, discounts, variants, grid/list view, etc.
Edit any product inline so that your website evolves with your customers' needs.

Acquire New Customers

SEO tools at your finger tips

SEO tools are ready to use, with no configuration or development required. Odoo suggests keywords according to the most searched terms on Google; Google Analytics tracks your shopping cart events; sitemaps are created automatically for Google indexing, etc.
The content is automatically well-structured so as to promote your products effectively in Google.

Leverage Social Media

Optimize: from ads to conversions

Easily create new landing pages with the Odoo inline editing feature. Send visitors of your different marketing campaigns to specific landing pages to optimize conversions.

Manage a Reseller Network

Referencing, lead forward, pricelists

Manage a reseller network to target new markets, increase local presence or broaden your distribution. Give the network access to your reseller portal for an efficient collaboration.
Promote your resellers online, forward leads to resellers (with built-in geolocalisation feature), define specific pricelists, launch a loyalty programs offering specific discounts to your best customers or resellers, etc.

Integrated vs Interfaced

Benefit from the power of Odoo, in your online store: a powerful tax engine, flexible pricing structures, a real inventory management solution, a reseller interface, support for products with different behaviours; physical goods, events, services, variants and options, etc.
You don't need to interface with your warehouse, sales or accounting software. Everything is integrated with Odoo. No pain, real time.

A Clean Checkout Process

Convert visitor interest into real orders through a clean checkout process with a minimal number of steps and great usability on every page.
Customize your checkout process to fit your business needs: payment modes, delivery methods, cross-selling, special conditions, etc.

2014年11月3日

客戶管理系統 SugarCRM System

Information source: http://www.easytech.hk/web/sugarcrm_intro
甚麼是 CRM?
一般來說,公司對客戶的流程是:
  1. 客戶資料 (名片,電話或網上查詢)
  2. 提供客戶所需要資料
  3. 提供報價和協商
  4. 簽訂合同
  5. 提供服務或貨品
  6. 跟進客人的反應
  7. 提供貨品或服務的最新資訊

SugarCRM 如何幫助公司
SugarCRM 是一知名的 opensource 軟件,已經有超過十年的發展,非常成熟和穩定,超過一百萬次的下載和 400 個以上的 addon。
開放源碼版本的功能包括:
  • 客戶資料儲存和分享
  • 活動資料記錄  (例如電話,會議)
  • 銷售自動化
  • 專案跟蹤
  • 共享日曆和文件
  • 電郵
  • 電郵營銷
  • 最重要的是將所有客戶訊息和資料整合一起,方便查閱和管理。

示範戶口 (Demo Account)

用戶名 (username): chris
密碼 (password) : chris

2014年11月2日

python与其他语言进行比较

information source: http://blog.csdn.net/zdp072/article/details/40020501
and http://tieba.baidu.com/p/355857557


Pythond VS C#
1. Python跨平台,可以运行在linux、weindows等平台
2. Pythond开源,C#则相反
3. Python是解释型语言,C#需要编译,所以Python运行要慢点

Pythond VS Java
Python更简洁,Java过于庞大复杂,语法很多

Python VS C C++ 
Python更容易学习,语法简单易懂,但他们通常扮演不同的角色,Python是一种脚本语言,C和C++通常要和底层硬件打交道

Python VS Ruby Perl
与ruby不同,OOP对于Python是可选的,所以Python不会强制用户选择OOP开发

Python通常是上述语言不错的替代品,使用Python将会减少很多编写,调试和维护的麻烦。

如果你的学历和能力,只能进入一般的软件公司或集成公司,那么选择微软的技术体系不错。因为微软体系,网上很多学习资料,而且大量的企业应用是用微软技术开发的,而且很多公司也用微软技术。所以公司多,你好找工作。微软的技术一般固定:C#+Asp.net+SQLSERVER+Visual Studio。 

如果你的学历和能力,能进入做大型企业应用的公司,那么你就选择JAVA的技术体系。因为现在大型企业,基本都用JAVA开发。你可以从eclipse、 structs、hibernate、WebService、Tomcat、Apache、JBoss、POJO、Oracle开始学习,然后再学习 WebLogic、WebSphere、Portal技术、工作流技术。 

如果你想进入互联网公司或web2.0创业公司。那么一般Php、Mysql、Apache、Ruby on Rails、Python是你的学习目标。 

如果你想进入手机开发,那么Symbian和C++(Nokia,市场份额最大)、J2ME(android产品,google发布,还未正式生产,但应该很有前途)、Windows Mobile(微软,好开发,从开发思路到工具到语言,都是你所熟悉的)。这三类短期内会三者鼎立,谁也不会把谁干掉。至于5年之后,就不好说,至少5年内,是手机时代,是手机无线时代,每个厂商都在争抢这一块未来最有钱途的肉。 

2014年10月31日

IT人在工廠日記 – 逃婚故事喻香港真普選

國忠是一名狐獨老人,可是績極地支持學生的反普選運動,原因是補償二十年前的錯事。回想二十年前,國忠強迫兒子遵從爺爺安排的一場政治婚姻來幫助家業,提供幾位女子給兒子去迎娶,但是不讓兒子自由戀愛;雖然兒子曾經努力抗爭,但是國忠只顧慮爺爺的身家,按爺爺的意思去強迫兒子,最後兒子離家出走;之後,國忠艱苦經營爺爺留下的家業,因為後繼無人,祖業日漸息微,國忠現時很後悔當日對待兒子的做法。早知今日,悔不當初,唉……
*** 希望現時中國和香港的當權派為下一代的未來,三思三思 !!! ***
10329043_1001086806584917_2429572626423854103_n 10405642_10153179873884156_6718458170399488055_n  10734280_10152901710637448_6886067310481241138_n

2014年10月22日

NodeJS基礎教學&簡介


source:   http://www.slideshare.net/xdxie/nodejs-15251110

  • 1. NodeJS 新一代高效能網站開發框架From:http://blog.xdxie.net 1
  • 2. Outline ! NodeJS簡介 – What & Why ! NodeJS V.S JavaScript V.S JAVA !   NON-BLOCKING & BLOCKING ! NodeJS 總結&具體優點 ! NodeJS 開發環境建置 & 執行 !   Require & Module !   NPM(Node Package Manager) !   DEMO HTTP伺服器建立(基本、延伸、再延伸) !   DEMO Socket.IO聊天室 !   What is your need !   ReferenceFrom:http://blog.xdxie.net 2
  • 3. What is NodeJS ! Node.JS 是一個高效能、易擴充的網站應用程式開發框架 (Web Application Framework) 。它誕生的原因,是為了讓開發 者能夠更容易開發高延展性的網路服務,不需要經過太多 複雜的調校、效能調整及程式修改,就能滿足網路服務在 不同發展階段對效能的要求。 !   Ryan Dahl 是 NodeJS 的催生者,他開發 NodeJS 的目的,就是 希望能解決 Apache 在連線數量過高時,緩衝區 (buffer) 和系 統資源會很快被耗盡的問題,希望能建立一個新的開發框 架以解決這個問題。因此嘗試使用效能十分優秀的 V8 JavaScript Engine ,讓網站開發人員熟悉的 JavaScript 程式 語言,也能應用於後端服務程式的開發,並且具有出色的 執行效能。From:http://blog.xdxie.net 3
  • 4. Why use NodeJS !   以前要寫一個能夠同時容納上百人的上線的網路服務,需要花費 多大的苦工,可能10人多就需要經過一次程式調整,而NodeJS就 是為了解決這個困境, NodeJS 因此誕生,它是一種利用 V8 Javascript 編譯器,所開發的產品,利用V8 編譯器的高效能,與 Javascript 的程式開發特性所產生的網路程式。 !   以前的網路程式原理是將使用者每次的連線(connection)都開啟一個 執行緒(thread),當連線爆增的時候將會快速耗盡系統效能,並且 容易產生阻塞(block)的發生。 ! NodeJS對於資源的調校有所不同,當程式接收到一筆連線 (connection),會通知作業系統將連線保留,並且放入heap中配置, 先讓連線進入休眠(Sleep)狀態,當系統通知時才會觸發連線的 callback。這種處理連線方式只會佔用掉記憶體,並不會使用到CPU 資源。另外因為採用Javascript 語言的特性,每個request都會有一個 callback,如此可以避免發生Block的狀況發生。From:http://blog.xdxie.net 4
  • 5. NodeJS V.S JavaScript V.S JAVA !   JavaScript是網頁的前端語言。早期稱為LiveScript,由Netscape 與Sun合作,受當時的JAVA啟發改名為Javascript,目的之一為 看上去像JAVA,故結構上有部分相似處,但JavaScript與JAVA 並沒有任何關係。 ! NodeJS可以說是JavaScript的後端語言。From:http://blog.xdxie.net 5
  • 6. BLOCKING & NON-BLOCKING 是什麼?From:http://blog.xdxie.net 6
  • 7. BLOCKING // 開始泡泡麵 make_cup_noodles(); // 在等泡麵泡好的時候電話響了, 但是我還是必須等麵泡完了才能 接, 於是我便錯過了這通電話 answer_a_phone_call(); // 這時我突然想尿尿, 但我還是必須等面泡完,於是我便尿褲子了… go_to_toilet(); // 麵好了我穿著滿是尿的褲子吃麵 eat_the_noodles(); // 吃完了我穿著滿是尿的褲子丟掉空碗 throw_the_cup_to_trash_can();From:http://blog.xdxie.net 7
  • 8. NON-BLOCKING make_cup_noodles(function(完成的麵){ //開始泡麵,麵好後做function eat_the_noodles(function(空碗){ //吃泡麵,吃完以後做function throw_the_cup_to_trash_can(); //吃完了可以丟掉空碗 }); 確認事情發生後必須寫在callback內然而 }); 動作一多,程式將不方便閱讀也不好維護 answer_a_phone_call(function(響了的電話){ solution : events模組 //電話響了我才接電話,而不是一直在電話旁邊等電話 }); go_to_toilet(function(想上廁所的我){ //想上廁所的時候才去上廁所,而不是一直在廁所等尿意 }); EVENT-DRIVEN使整支程式可以在事件發生時才做事, 而不是BLOCK在一件事上後面的事情都要等 From:http://blog.xdxie.net 8
  • 9. 所以簡單說 NodeJS到底是什麼?From:http://blog.xdxie.net 9
  • 10. •  JavaScript的後端語言 •  使用V8 JavaScript編譯器所開發的產品 •  NON-BLOCKING (非阻塞特性) •  EVENT-DRIVEN (事件驅動) •  HIGH CONCURRENCY (高連線數量)From:http://blog.xdxie.net 10
  • 11. 那NodeJS的具體優點呢?From:http://blog.xdxie.net 11
  • 12. •  入手容易 •  無論你曾學過PHP、Ruby或是Python多少 對於JavaScript都有一些基本觀念,要入手 NodeJS可以迅速很多,甚至可以說會一種 語言前後端都通吃。 •  高性能低耗能的優秀性能表現 •  非同步I/O •  Event-Driven •  強大的社群支援 •  NPM ! •  Realtime應用的選擇 效 能 •  Socket.IO 高From:http://blog.xdxie.net 12
  • 13. 簡單介紹了NodeJSFrom:http://blog.xdxie.net 13
  • 14. NodeJS開發環境建置 !   官方網站下載安裝 !   http://nodejs.org/ !   於命令視窗執行指令: node –v !   出現版本號表示安裝成功From:http://blog.xdxie.net 14
  • 15. NodeJS執行程式方法 !   目前工作目錄為您.js檔案的位置 !   執行指令:node filename.jsFrom:http://blog.xdxie.net 15
  • 16. Require & Module !   require = load module NodeJS所看到的 var http = require(‘http’); //可以開始使用http的各種方法, 如 http.createServer() 前端Javascript所看到的 <script src=“jquery.js”> //可以開始使用jQueryFrom:http://blog.xdxie.net 16
  • 17. Require好簡單 但是Module從哪來?From:http://blog.xdxie.net 17
  • 18. Node Package Manager ! NodeJS 的套件(package)管理工具 !   開發者可以直接利用線上套件庫,加速軟體專案開發 ! NodeJS 在 0.6.3 版本開始內建 NPM 不用再另外安裝了! !  https://npmjs.org/From:http://blog.xdxie.net 18
  • 19. Node Package Manager ! npm -v //NPM版本訊息 ! npm list //列出目前工作目錄安裝的套件 ! npm install module_name //安裝於目前工作目錄 ! npm install -g module_name //安裝於系統目錄 ! npm update module_name //更新套件From:http://blog.xdxie.net 19
  • 20. Node Package Manager !   使用package.json管理套件版本 EXAMPLE: { "name": "application-name" , "version": "0.0.1" , "private": true , "dependencies": { "express": "2.5.5" , "coffee-script": "latest" , "mongoose": ">= 2.5.3" } }From:http://blog.xdxie.net 20
  • 21. 還想知道什麼? npm helpFrom:http://blog.xdxie.net 21
  • 22. 來點實作的東西吧!From:http://blog.xdxie.net 22
  • 23. DEMO - HTTP伺服器建立 var server, port=2012, http=require(http); server=http.createServer(function(req,res){ res.writeHead(200,{Content-type:text/plain}); res.end(Hello World); console.log(guest visted); }); server.listen(port); 出現兩次訊息, Why? console.log(Server is running); favorite.icoFrom:http://blog.xdxie.net 23
  • 24. DEMO – HTTP伺服器建立 延伸 var server, ….. url=require(url); server=http.createServer(function(req,res){ path=url.parse(req.url); res.writeHead(200,{Content-type:text/plain}); switch(path.pathname){ case /’: res.end(hello world);break; case /index’: res.end(index page);break; default: res.end(path.pathname=+path.pathname);break; } }).listen(port); console.log(Server is running.);From:http://blog.xdxie.net 24
  • 25. 這樣的HTTP伺服器似乎還是不怎麼樣From:http://blog.xdxie.net 25
  • 26. DEMO – HTTP伺服器建立 再延伸 var server, … fs=require(fs); server=http.createServer(function(req,res){ path=url.parse(req.url); fs.readFile(static+path.pathname,utf8,function(err,file){ if(err){ res.writeHead(404,{Content-type:text/plain}); res.end(); return; } res.writeHead(200,{Content-type:text/html}); 純文字輸出 res.end(file); }); }).listen(port); console.log(Server is running.); 以html方式輸出 From:http://blog.xdxie.net 26
  • 27. Socket.IO簡介 !   整合了websocket,long-polling,iframe polling等技術,讓不支援 websocket 的瀏覽器也能夠體驗websocket 的感受 !   實現Server-push,Real-Time服務,典型範例:聊天室 ! NodeJS最常使用的套件之一 !   跨各瀏覽器(包括IE..XD) 的噩夢! 開發 者 I E是From:http://blog.xdxie.net 27
  • 28. DEMO – Socket.IO聊天室 Real-time Server-side核心部分 var sio=io.listen(3333); sio.sockets.on(connection,function(socket){ socket.emit(reqname); socket.on(username,function(data){ console.log(data.username+ enter the room); var username=data.username; chat room}); sio.sockets.emit(msg,{msg:User +username+ enter the }) socket.on(msg,function(data){ sio.sockets.emit(msg,{msg:data.msg}); }); }); 對所有Socket廣播,包括自己 比較: socket.broadcast.emit 不包括自己From:http://blog.xdxie.net 28
  • 29. DEMO – Socket.IO聊天室 Real-time Client核心部分 <script src="http://localhost:3333/socket.io/socket.io.js"></script> var name; var socket=io.connect(http://localhost:3333); socket.on(reqname,function(data){ name=window.prompt("whats your name?"); socket.emit(username,{username:name}); }) socket.on(msg,function(data){ console.log(data); document.getElementById(chatbox).innerHTML+=<br />+data.msg; }); function sendmsg(){ var msg=document.getElementById(msg).value; document.getElementById(msg).value=; socket.emit(msg,{msg:name+ says +msg}); }From:http://blog.xdxie.net 29
  • 30. 講到這裡 你覺得NodeJS怎麼樣?From:http://blog.xdxie.net 30
  • 31. From:http://blog.xdxie.net 31
  • 32. 如果你對NodeJS有興趣 你還需要什麼?From:http://blog.xdxie.net 32
  • 33. What is your need ! Javascript !   如果未曾寫過javascript建議先從javascript學起 ! NodeJS 電子書 !   完整的教學 ! NodeJS API !   從官方API手冊了解可以使用的API,知道的越多對開發越有幫助 !   express ! NodeJS的Web開發框架,使開發http service變得更容易From:http://blog.xdxie.net 33
  • 34. 其實你最需要的是創意From:http://blog.xdxie.net 34
  • 35. 還有Google 身為一個開發者如果不會Google那跟鹹魚有什麼分別From:http://blog.xdxie.net 35
  • 36. Reference ! NodeJS官方網站 !   http://nodejs.org/ ! NodeJS API !   http://nodejs.org/docs/latest/api/ !   NODEJS台灣社群電子書 !   http://book.nodejs.tw/ ! Dreamerslab !   http://dreamerslab.com/ ! Socket.IO !   http://socket.io/! ! XDXie’s Blog !   http://blog.xdxie.net/ 我的Blog,或許可以來這邊挖筆記XD From:http://blog.xdxie.net 36
  • 37. Thanks for your attention.From:http://blog.xdxie.net 37