Max Chang

1

votes
0

answer
83

views

Running go server on localhost: Cross origin requests are only supported for protocol schemes

I know that this question has been asked many times, but none of the solutions are working out for me. I'm serving a webpage with a go server. mux.Handle('/', http.FileServer(http.Dir('../highlight_webpage'))) This server is running on port 8080. I have another endpoint I am trying to access, namel...
Max Chang
1

votes
0

answer
177

views

Stackdriver Logs Don't Show Up on Console

I've been using the Stackdriver Client API to write logs for Google Compute Engine. When I run gcloud logging logs list, I see my logs directory, but they don't show up on the logs interface: https://console.cloud.google.com/logs/viewer. How do I get this to show up on the interface?
Max Chang
1

votes
0

answer
35

views

Compute Engine Resources CPU Usage

I'm running a data processing job on Google Compute Engine and I noticed that while my process is at 100% CPU Usage, the total is more at like 12% CPU Usage. Can someone explain the difference between the number for the PID and the number for total usage? Also, am I wasting compute resources since t...
Max Chang
2

votes
1

answer
191

views

Datalab occasionally very slow on simple tasks

I've noticed that datalab is occasionally extremely slow (to the point where I believe it's just hanging). import json import pprint import subprocess import pyspark For instance, on this really trivial code block, the code takes forever to train. If I keep trying to refresh the page and run it, som...
Max Chang
2

votes
2

answer
1.7k

views

Python Pickle Dump 'Wb' parameter

In examples of using pickle to save data, I often encounter a second parameter where many people use 'wb', for instance: pickle.dump(obj, open('save.p', 'wb')). What does the 'wb' parameter do?
Max Chang