|Related to : Gulp sass output paths for css.map files Google Chrome can't resolve path|
|How to serve static files with django that has hardcoded relative paths on Heroku/OpenShift/etc?|
Storing static/media files on Heroku's servers is problematic and
discouraged. There are workarounds but it's easier to use an
alternative to host these. Plus, when a dyno is respun the files on
Heroku will be erased.
Instead, use a web service to store your files. These files are
collected via collectstatic (which runs each time you push to Heroku),
this is expected behavior.
For both ease of u
|How to resolve oAuth 2.0 Google Spreadsheets authentication issue?|
This is what worked for me:
$client = new Google_Client();
$key = file_get_contents(GOOGLE_KEY_FILE);
$cred = new Google_Auth_AssertionCredentials(
|Is it possible to output log/trace in chrome, and remove for production?|
Well this depends a lot on your dev environment. I usually declare a
global ENV variable in which I store the app state.
You could make a new module Log in which you will check if the ENV is
development. If this is the case then you will call console.log() or
what do you prefer for your logging needs. If the ENV var tells the
browser that the app is in production mode than in your Log module you
|solutions to resolve enum field naming restriction in Google protobuf due to C++|
The prevailing solution in existing code is option (2): give each
enumerant name a prefix corresponding to its type. This also helps
reduce collisions with macros. It's verbose, but unlike the other
options suggested, it has no runtime overhead and it creates the least
confusion for people reading the code.
(FWIW, Cap'n Proto has escaped this problem by using C++11 enum
classes. It's unlikely tha
You could try using:
It works in Chrome, Safari, IE but not sure about Firefox.
Also, there's a new way to close windows using the new method
window.close() in the dev version of Chrome: see here.
But I recommend using the first method as it currently works.