<?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>GCP on Lin's Blog</title><link>https://coder.tw/en/tags/gcp/</link><description>Recent content in GCP on Lin's Blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 10 Apr 2017 09:20:02 +0000</lastBuildDate><atom:link href="https://coder.tw/en/tags/gcp/index.xml" rel="self" type="application/rss+xml"/><item><title>Hosting a Static Website on GCP Storage - Getting Started on My First Try</title><link>https://coder.tw/en/posts/static-site-on-gcp-storage/</link><pubDate>Mon, 10 Apr 2017 09:20:02 +0000</pubDate><guid>https://coder.tw/en/posts/static-site-on-gcp-storage/</guid><description>&lt;p&gt;Want to host a static website on Google Cloud Storage but don&amp;rsquo;t know where to start? Every time I upload files to Google Cloud Storage to share with friends, I have to click &amp;ldquo;Public,&amp;rdquo; which is a hassle, right? I looked into this for a few days because of a work requirement. At first I thought I just needed to set up the domain and share the files, but after researching, I found there are many little tricks. For example, having to make every uploaded file public is really annoying, but you can set a bucket so that new uploads are public by default. You can even set the default file names for the index and 404 pages. And even the SSL problem that I thought had no solution: the official docs offer a good workaround!&lt;/p&gt;</description></item><item><title>Handling Insufficient Balance for GCP Automatic Payments</title><link>https://coder.tw/en/posts/google-cloud-platform-overdue-payment/</link><pubDate>Tue, 07 Feb 2017 10:19:02 +0000</pubDate><guid>https://coder.tw/en/posts/google-cloud-platform-overdue-payment/</guid><description>&lt;p&gt;Because the credit card I registered with GCP is a &amp;ldquo;VISA debit card,&amp;rdquo; the automatic monthly payment can sometimes fail when my bank balance is too low. GCP&amp;rsquo;s current approach is to send an email reminder after a failed charge and retry the charge one day later. If it still fails, GCP asks you to log in to the GCP console and pay manually once you&amp;rsquo;ve fixed the problem. I had never had trouble paying through the GCP console before, but this time the flow seems to have changed. Following their link takes you to the billing page, but you can&amp;rsquo;t actually make a payment there. Even when you find the right payment button, using Chrome Canary causes a frontend problem where the payment dialog keeps loading forever. You have to switch to the regular version of Chrome to pay successfully. I&amp;rsquo;m really curious what the latest and greatest technology behind this payment dialog is&amp;hellip;&lt;/p&gt;</description></item><item><title>Tips for Uploading Large Files to Google Cloud Storage</title><link>https://coder.tw/en/posts/tips-for-upload-large-file-to-google-cloud-storage/</link><pubDate>Sun, 04 Dec 2016 10:00:49 +0000</pubDate><guid>https://coder.tw/en/posts/tips-for-upload-large-file-to-google-cloud-storage/</guid><description>&lt;p&gt;I back up my data regularly. I copy my Google, Facebook, and Evernote data, photo albums, and more to Google Cloud Storage. Uploading through the browser always meant dealing with slow speeds, and if the connection dropped, I had to resend a 10 GB file from the beginning. So I read through the official documentation and found some handy tips for uploading large files to Google Cloud Storage, which I&amp;rsquo;m sharing here.&lt;/p&gt;
&lt;p&gt;This post covers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How to have GCP Storage verify a file's MD5 checksum&lt;/li&gt;
&lt;li&gt;How to enable resumable uploads, so a dropped connection doesn't mean starting over&lt;/li&gt;
&lt;li&gt;How to push your upload speed to the limit with parallel transfers&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Enabling Cross-Origin Resource Sharing (CORS) on Google Cloud Storage</title><link>https://coder.tw/en/posts/set-cross-origin-resource-sharing-cors-enable-on-google-cloud-storage/</link><pubDate>Fri, 02 Dec 2016 13:50:59 +0000</pubDate><guid>https://coder.tw/en/posts/set-cross-origin-resource-sharing-cors-enable-on-google-cloud-storage/</guid><description>&lt;p&gt;Recently I&amp;rsquo;ve been teaching a club class how to build small games with Phaser. Many of the assets need to be used by students on CodePen, so I needed web storage that supports CORS to host them. As I was brainstorming, I thought of Google Cloud Storage: it&amp;rsquo;s cheap, and you can bind it to your own domain!&lt;/p&gt;
&lt;p&gt;By default, Google Cloud Storage doesn&amp;rsquo;t support Cross-Origin Resource Sharing (CORS). But you can enable CORS on a specific bucket with gsutil (the Google Cloud Storage CLI tool)!&lt;/p&gt;</description></item></channel></rss>