2013年6月25日 星期二

谷歌的免费CDN-PageSpeed Service介绍

Google PageSpeed Service是Google提供的一项免费CDN加速服务,Page Speed Service会从网站的服务器抓取内容,重写网页,再通过Google的服务器呈现给用户浏览,利用谷歌强大的服务器处理能力与反应速度,提升网页的加 载速度。
Google PageSpeed Service会自动对你的网站进行CSS、图片、JS、Html压缩优化,对内容、DNS缓存等开启并优化,而且PageSpeed Service配备了强大的自定义设置与访问统计功能,还可以控制某一IP或者用户对网站的访问权。
Google PageSpeed Service的在2011年就已经推出了,到现在一直免费着。
申请的时候需要你填写站点域名和联系邮箱,google官方承诺的审核时间是2小时,不过一般半小时内都会有答复,耐心等待。审核通过后,google会 发送一封 welcome 邮件,内含一个登录Google PageSpeed Service(以下简称PSS)的按钮,点击输入你的google帐号即可。
申请好后会分配一个谷歌节点的cname地址让你解析,就像CDN一样使用就可以了,会自用使用PageSpeed中的网页优化技术!
注:有些优化选项还是要看看的,不然你就杯具了!
申请地址:
https://developers.google.com/speed/pagespeed/service
管理地址:
https://code.google.com/apis/console/

2013年6月21日 星期五

Blogger 放檔的好選擇 - Google Code

之前發現,Google Page Creator (Google Pages) 要倒店關門的消息,我就一直在找更好的地方,用來放我 Blog 會用到的各種小圖和外連檔案(不然每次登入 Google Pages,都要恐嚇我一次,我所有的資料都要被強制移到 Google Sites 了),試用了一陣,本來覺得即將取而代之的 Google Sites 也不錯用,正打算大舉遷移,把檔案和連結都搬過去之際,突然緊急煞車,發現 Google Sites 不能這樣用啊!目前它有兩個關鍵性的障礙:
  1. 不准上傳 HTML 或 Javascript 之類的程式碼。對很多朋友來講,這可是嚴重的缺陷,因為有不少人習慣把外掛 Blogger 的模組,都寫成獨立的 js 檔,載入頁面時再用 include 的方式呼叫,改版時只要兼顧相容性,不用再動到網頁樣板的原始碼,維護也比較獨立和方便。原先的 Google Pages 並不阻擋,但到了 Google Sites 卻拒絕上傳(說是安全性考量),這一點就讓不少人打退堂鼓了。
  2. 不支援 GIF。這一點我就非常非常不能接受了,Google Sites 是用來建立「個人網站」、來做協作的平台,有聽過提供這類服務但不支援 GIF 圖檔的嗎?!一開始我還沒發現,因為 GIF 圖檔是可以上傳的,一般靜態標準的 GIF 圖檔看起來都沒事,但嵌入網頁外連所有圖片時才發現,不正常的情況來了!首先是透明底圖 (Transparent GIF),在 Firefox 沒事,但用 IE (IE6) 看卻不再透明了,就算你想換成透明底圖的 PNG 檔,舊版 IE 不支援、新版 IE 照樣不能透明!其次,動態圖片 (Animated GIF) 照樣沒作用,這次連用 Firefox 也沒效果,Google 找了半天,得到的竟然官網的回答:「Google 協作平台目前不支援動畫 GIF。如果要使用動畫 GIF,則需要將它裝載在協作平台外部,並使用它的裝載網址進行連結。」看到這句,檔案還要放在「外部」,我真的無言了~(據說還是安全性考量.. XD)
以 前還一度以為是外連檔案後面那個謎字串 ?attredirects=0 搞的鬼,因為之前測試加了該字串好像會正常,但其實是因為當下我有登入 Google Sites 的關係。至此,我想我是完全放棄用 Google Sites 來取代 Google Pages 了(這狀況已經一段時間,我也上 Google Groups 去反應,看來還是沒進度)!在尋找其他解的過程中,看到了有人推薦使用 Google Code、 一項 Google 提供給使用者用來公佈及開放程式碼的平台,為了讓用戶能自由下載、修改和分享程式和專案的原始碼,該服務平台也有提供 File Hosting 的機制,讓專案主人能放置檔案公開分享和連結使用。當然,這些公開的原始碼檔案也提供像是版本控制、描述分類等專案控管的機制,還有 Wiki 和 Issues 讓管理者和使用者能控制和掌握專案的進度和變動(還支援 Google Analytics 來監看存取流量),算是一個相當簡單、又配備大部分該有功能的程式碼控管平台。
對我來說,現階段最重要的當然是小圖檔的 Image Hosting,還有少部份幾個外連用的小檔案。既然是該服務是分享「Code」,未來我也考慮把自己的樣板原始碼公佈出來,甚至將有在用的 Blogger Hack 抽離成一隻隻的 js 檔,這樣用 Google Code 來放置檔案,也才更理所當然,是吧?仔細看看 Google Code 的限制:一個專案空間限制單檔最大 100MB、總容量 2GB、不限網路流量、使用 *.googlecode.com 格式二級域名(但不支援自訂網域)、一個帳號最多可以開十個專案,哇!拿來做我 Blog 的 File Hosting 絕對是綽綽有餘啊!實際試了一下圖片外連,不管什麼格式,顯示下載都很快很正常,測試幾天後,沒想太多我就把檔案統統都搬過去啦!透過之前介 紹過的技巧,我大概只改了三行原始碼,就讓所有的 Blog 小圖檔統統轉向到 Google Code 去,果真是 Blogger 放檔的好選擇啊!如果不介意,還可以公佈自己的 Blog 樣板(透過版本控制當備份)和用到的所有 js 檔(不要再盜連了),這樣也符合 Blog 原始碼開放的需要,速度和反應都很不錯,除了擔心對岸會「牆」掉 Google 服務的疑慮(沒差,反正我的 Blog 也是在 Google 的 Blogger 上),不用擔心它會倒掉或關閉(現下用的人很多),看來可以好好頂一陣子了!
我想 Google Code 應該不用教學怎麼使用,只要有 Google 帳號、連到 Google Code 首頁 、選擇「專案託管」、在畫面中央直接選 Create a new project,填好 Project 名稱(這名稱會決定你的二級網域名)和相關資料,專案就開好啦!接著玩一玩專案設定,切到到 Downloads 的分頁,就可以上傳下載自己的檔案了。申請前有興趣可以參考我 Blog 都已經換用的專案:abinlink。推薦因應 Google Pages 倒閉、Google Sites 又不濟事,和我一樣需要空間來放置小檔案的人來參考~(希望不要被拿來愛亂分享大檔的人搞爛就行了~)

2013年6月16日 星期日

如何在 Google Drive 建立 HTML 網頁?

Google Drive費提供一個網頁空間(自行跟教學做) 最重要佢係無限流量 有時要放D PTP CODE 既網頁
雖然無數據庫,但我覺得好實用,放 D HTML網頁+CPM廣告,都唔錯

網址:
https://drive.google.com/

如何在 Google Drive 建立 HTML 網頁?

先在要放入 HTML 網頁檔案的資料夾開啟共用。

共用時變更一下檢視權限。

選擇「公開在網路上」。

然後記下上方的共用連結後,按下完成。

上傳你要放置的網頁檔案上去,主頁記得要用 index.html。

然後看一下剛剛取得的共用連結,比如我剛剛的是

https://docs.google.com/folder/d/0B75wDHn7xvXieU4zUDZpNzJUU0E/edit
請去頭去尾,留下那串「0B75wDHn7xvXieU4zUDZpNzJUU0E」,然後改成這樣
https://googledrive.com/host/0B75wDHn7xvXieU4zUDZpNzJUU0E/
應該看的懂,只要在那串前面加上「https://googledrive.com/host/」即可,再貼到瀏覽器就可以瀏覽囉,上面那串也是 Demo 網址,大家可以看看,如果嫌網址太長可以配合短網址使用。

2013年6月1日 星期六

How To Merge Google+ Business Page With Google+ Local

 
Google+ Local Page MergeLate on Friday, Jade from Google announced in the Google Places Help forums that you can now merge your Google+ Business page with your Google+ Local page to have the Google+ Local information with all the social features of Google+ on the same page.
You can combine the best of Google+ Local with Google+ Business Pages on the same page. Jade shares one local shop that did this already named the The Meatball Shop where you can see the Google+ posts and local data all on the same profile.
How do you do this? Google explains:
Click on Verify now on the right side of the page. You'll need to verify that you're representing your business by having a postcard sent, even if you're a verified business owner on Google Places for Business. Also note that verification will only work for pages created in the "Local Business or Place" category in Google+.
Google posted instructions on how to do this:
After you've created your page, you can verify it:
  • Hover over Unverified at the top of your Google+ page. Click the Verify now button when it appears. Or, click Verify now in the Is this your business? section below the map.
  • Confirm your address and click Request postcard again. Your postcard should arrive within a week or so.
  • Once it’s arrived, go to the website listed on the postcard, www.google.com/local/verify.
  • If you've requested a postcard for multiple Google+ pages, make sure to click on the name of the business that the postcard is for.
  • Enter the PIN listed on the postcard and click Submit.
Michael Blumenthal has a detailed step by step walk through with screen shots on how this works on a specific example.
Here is a FAQ on this from Jade from Google:
Can a local Google+ page that I make in Google+ have multiple administrators? (ie, Can multiple Google+ profiles manage my page?)
Yes! There are two types of administrators -- owners, and managers. Read more about each role’s capabilities here.Can I have one social local Google+ page that links to my many locations?
No, at this time, we only support one social local Google+ page linking with one location.
What if I made my social Google+ page in a category other than “local business/place?”
Currently we only support verification of pages made in the local business/place category. You may make a new page in that category to access verification, but we cannot automatically move content or followers. There is currently not a way to change the category of a +page.
What about if I’m a service area business with hidden address?
The new verification process does not currently support service area businesses with hidden addresses.
What if I’ve just got a local Google+ page with reviews (in Google+ Local) but don’t have a social +page?
You may create a +page in the “local business/place” category to have access to verification, if you would like. We hope to offer the upgraded experience to all local businesses, soon, but currently, verification of the social +page is the only way to get the combined/upgraded pages.
Forum discussion at Google Places Help.

How to Insert a PowerPoint to Google Page

Insert a PowerPoint to Google Page
Google Page Creator is a simple yet nice tool for you to create your favorite content and publish it to web. But for your PowerPoint presentations, the usually practice may be putting a link to a Google page for download. If you can convert a PowerPoint presentation to flash, visitors can view it directly in the page without the need of downloading and installing PowerPoint or PowerPoint Viewer. 

Steps

  1. Convert PowerPoint to flash, you have three options 
    • Option 1: Convert PowerPoint to flash manually
      If you have some programming experience, you can do the conversion manually.
    • Option 2: Convert PowerPoint to flash with a converter
      If you have a simple PPT file and do not care about the animations, transitions, audio and other, you can use a free converter Powerbullet Presenter.
      It is a small, simple and free program for creating presentations in the Flash format.
    • Option 3: Convert PowerPoint to flash with a with a commercial converter
      For a complicated PPT file, you always should use a commercial converter like PPT2Flash Standard
  2. Upload the converted flash to web
    When conversion is done, you have to upload the converted flash presentation to web
    . To upload it to web, you have two options.
    • Use free upload services to upload the flash file.
    • Upload the flash file to Google page
      Insert a PowerPoint to Google Page
      Insert a PowerPoint to Google Page
      Google page enagbles you to upload a flash movie from your local drive. With Google page, click Upload on the right pane to upload the flash file. When finish uploading, click its file name in the Uploaded Stuff and it will take you to a new window to play the flash. Copy the URL in that window.
  3. Click Edit html to edit a Google page
    • Insert  a PowerPoint to Google Page
      Insert a PowerPoint to Google Page
      Google page does not have a feature to enable you to insert the flash file directly. You have to use some html coding to insert a flash to a page. If you want to insert the flash into a google page, click "edit html" on the bottom- right to insert the flash by using html coding.
  4. Insert the flash to Google page with the following html coding
    <object type="application/x-shockwave-flash"data=" URL of the uploaded flash file " height="300" width="400" align="middle">
    <param name="movie" value="URL of the uploaded flash file "/>
    <param name="allownetworking" value="internal" />
    <param name="allowScriptAccess" value="never" />
    <param name="enableJSURL" value="false" />
    <param name="enableHREF" value="false" />
    <param name="saveEmbedTags"value="true" />
    </object>
    Note
    :" URL of the uploaded flash file" included in the coding should be the URL of the uploaded flash to web with the uploading services.
  5. 5
    Publish Google page

Google Page Creator

Google Page Creator
Google Page Creator was a Web-based tool for creating personal Web pages. It was fairly easy to use, and the users seemed to like it. However, after Google purchased the wiki tool JotSpot, they were faced with two similar applications and a growing need to focus on profitability and Internet security.
JotSpot became the more business-minded Google Sites and was included in Google Apps. That made Google Page Creator the more obvious choice for the axe. Google closed Page Creator for new accounts in August of 2008 and announced their plans to migrate existing accounts to Google Sites.