<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Google Cloud Platform on Lin's Blog</title><link>http://coder.tw/tags/google-cloud-platform/</link><description>Recent content in Google Cloud Platform on Lin's Blog</description><generator>Hugo</generator><language>zh-tw</language><lastBuildDate>Sat, 29 Jul 2017 18:38:56 +0000</lastBuildDate><atom:link href="http://coder.tw/tags/google-cloud-platform/index.xml" rel="self" type="application/rss+xml"/><item><title>BigQuery SQL Get First or Last Day of Month From Specify Date</title><link>http://coder.tw/posts/bigquery-sql-get-first-or-last-day-of-month-from-specify-date/</link><pubDate>Sat, 29 Jul 2017 18:38:56 +0000</pubDate><guid>http://coder.tw/posts/bigquery-sql-get-first-or-last-day-of-month-from-specify-date/</guid><description>&lt;p&gt;In BigQuery, If you want get first day from a Date (or timestamp, datetime type) , for example, type &amp;ldquo;2017-05-24&amp;rdquo; and get &amp;ldquo;2017-05-01&amp;rdquo;, you can call UTC_USEC_TO_MONTH function in Legacy SQL, or DATE_TRUNC() in Standard SQL, In fact, BigQuery have a series function do these thing, Get First day, hour, week&amp;hellip;..etc from a Date.&lt;/p&gt;</description></item><item><title>BigQuery SQL Get Random N Row Sampling</title><link>http://coder.tw/posts/bigquery-get-random-n-row-sampling-legacy-sql-standard-sql/</link><pubDate>Fri, 28 Jul 2017 23:57:37 +0000</pubDate><guid>http://coder.tw/posts/bigquery-get-random-n-row-sampling-legacy-sql-standard-sql/</guid><description>&lt;p&gt;在做資料分析時，從資料裡面取隨機 N 列（抽樣）是很常見的需求，可能是抽樣觀察資料正確性，也可能是抽樣去作模型避免資料太多跑不動，其實在資料庫內用 SQL 進行抽樣十分簡單，以下就用 BigQuery Standard SQL 進行示範，Legacy SQL 的作法相同。&lt;/p&gt;</description></item><item><title>第一次在 GCP Storage 放置靜態網頁就上手</title><link>http://coder.tw/posts/static-site-on-gcp-storage/</link><pubDate>Mon, 10 Apr 2017 09:20:02 +0000</pubDate><guid>http://coder.tw/posts/static-site-on-gcp-storage/</guid><description>&lt;p&gt;想要在 Google Cloud Storage 放置靜態網頁卻不知從何下手嗎？每次把檔案放到 Google Cloud Storage 分享給朋友還要按「公開」很麻煩麻？  這幾天因為工作需求研究了下，最開始以為只要設定好 Domain 並將檔案共享就可以了，研究後才知道還有許多小撇步，例如每次上傳檔案都要設定公開實在麻煩，其實可以設定上傳到指定 Bucket 預設都公開，甚至還可以設定 Index、404 頁面的預設檔案名稱，甚至一直以為無解的 SSL 問題，官方也提示了不錯的解法！&lt;/p&gt;</description></item><item><title>Google Cloud Platform 自動扣款餘額不足處理</title><link>http://coder.tw/posts/google-cloud-platform-overdue-payment/</link><pubDate>Tue, 07 Feb 2017 10:19:02 +0000</pubDate><guid>http://coder.tw/posts/google-cloud-platform-overdue-payment/</guid><description>&lt;p&gt;因為我登記在 GCP 的信用卡是「VISA 金融卡」形式，所以每月自動扣款時有可能會遇到銀行餘額不足的問題，目前 GCP 針對該問題的做法，會再扣款失敗後寄信提醒你，並在一日後重試扣款，如果依舊失敗就會要求你在解決問題後自行登入 ＧCP 後台付款，過去在登入 GCP 後台付款都沒有遇到問題，但這次似乎動線有改變，按照他的連結引導會被帶到帳單頁面，但無法執行扣款動作，此外即使你找到正確的扣款按鍵，但使用 Chrome Canary 卻似乎會有前端的問題導致扣款對話框無限載入中，必須要切換到正常版 Chrome 才可以正常扣款，真好奇這個扣款對話框是用了什麼最新最潮的技術&amp;hellip;&lt;/p&gt;</description></item><item><title>Tips for Upload Large File to Google Cloud Storage</title><link>http://coder.tw/posts/tips-for-upload-large-file-to-google-cloud-storage/</link><pubDate>Sun, 04 Dec 2016 10:00:49 +0000</pubDate><guid>http://coder.tw/posts/tips-for-upload-large-file-to-google-cloud-storage/</guid><description>&lt;p&gt;因為我有定期備份資料的習慣，會把 Google、Facebook、Evernote、相簿等等資料都定期備份到 Google Cloud Storage 上面，每次用瀏覽器上傳都會很煩惱上傳速度慢的問題，而且如果網路斷線還要重新傳送那 10 GB 的大檔案，後來研究了官方文件，找到一些關於上傳大檔案到 Google Cloud Storage 時很好用的小技巧分享給大家。&lt;/p&gt;
&lt;p&gt;包含：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;如何讓 GCP Storage 幫你驗證檔案的 MD5 Checksum&lt;/li&gt;
&lt;li&gt;如何啟動續傳功能，斷線沒關係可以繼續傳送&lt;/li&gt;
&lt;li&gt;如何透過平行化傳輸把上傳速率榨到極限&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Set Cross-Origin Resource Sharing (CORS) Enable on Google Cloud Storage</title><link>http://coder.tw/posts/set-cross-origin-resource-sharing-cors-enable-on-google-cloud-storage/</link><pubDate>Fri, 02 Dec 2016 13:50:59 +0000</pubDate><guid>http://coder.tw/posts/set-cross-origin-resource-sharing-cors-enable-on-google-cloud-storage/</guid><description>&lt;p&gt;最近因為社課教大家用 Phaser 開發小遊戲，有許多素材需要讓學員在 Codepen 上使用，所以需要一個支援 CORS 的網路空間來放置素材，腦筋動著動著就想到便宜大碗又可以綁定自己 Domain 的 Google Cloud Storage 去啦！&lt;/p&gt;
&lt;p&gt;其實 Google Cloud Storage 預設是不支援 Cross-Origin Resource Sharing (CORS) 的，但只要透過 gsutil （Google Cloud Storage Cli Tool） 就可以幫指定的 Bucket 啟用 CORS 功能！&lt;/p&gt;</description></item></channel></rss>