Using the firebase admin sdk in vscode extension - with native library dependency - visual-studio-code

I'm writing a VSCode extension that relies on Firebase Admin SDK. I'm trying to get it configured but when I run and activate the plugin, the extension host process throws a module loading error:
Could not find module: .../node_modules/firebase-admin/node_modules/grpc/src/node/extension_binary/node-v54-darwin-x64/grpc_node.node
When firebase admin was installed it built a version of the binary dependency but using a different version: node-v51. So the library is there but the version is different.
I probably need to somehow build the node-v54-darwin/x64 library when the Firebase sdk is installed via npm, but I'm not familiar with native modules, pre-gyp etc so I'm fumbling through it.
Does anyone know how to coerce npm to build the version required by the vscode host process for the grpc dependency?

Related

How to migrate gae app to python 2.7.11

I'm getting emails from google that I should migrate my gae apps from python 2.7 to python 2.7.11. But I can't find any example how to do it. Do you know how it can be done?
I believe you're receiving communications about Python SSL Version 2.7 Shutdown and the necessary migration to SSL version 2.7.11. You'll find more information in the link above but basically the migration involves:
Updating to the latest Cloud SDK version via gcloud components update.
Updating the app.yaml for all versions of your application
Deploying your updated application

Using nodeclipse with docker instead of local nodejs installation

currently I'm evaluating, how to setup my web development infrastructure using docker.
I would like to use eclipse with nodeclipse, but I don't want to install nodejs locally. Additionally I don't want to use Eclipse Che.
So my question is, if it is possible to configure eclipse that I use a docker-container including nodejs?
The biggest challange currently is, that without nodejs I get error messages in my typescript code, that my imported packages can't be found.
Thank you for your help :)

How to install multiple vendors into one project using composer

I would like to know how to install multiple vendors into one project using composer. E.g I would like to install Paypal SDK and Stripe SDK into my project.
How do I go about this, and how would the folder structure look like?
You can install as many dependencies as you wish using Composer. For instance, to install both Paypal's and Stripe's PHP libraries, you'd run these commands:
composer require "paypal/rest-api-sdk-php:*"
composer require stripe/stripe-php
Afterwards, both libraries would be installed in the vendor directory, and both would be automatically included in your code when you load dependencies with:
require_once("vendor/autoload.php");

MongoDB C# driver 1.10.0 conflicts in Azure Mobile Services

I've created a simple Azure Mobile Services project and added the nuget package for MongoDB (package id is mongocsharpdriver).
The version I added is 1.10.0
When I deploy the project I get the following error:
"Found conflicts between different versions of the same dependent assembly 'MongoDB.Bson': 1.10.0.62. Please change your project to use version '1.9.2.235' which is the one currently supported by the hosting environment."
It seems like the Dlls from the package I've added are conflicting with an older version installed by default in the cloud environment.
Is there a way to get around this problem?
(While trying to figure out whats wrong I installed the nuget package WindowsAzure.MobileServices.Backend.Mongo which can't be installed because it requires mongocsharpdriver(=1.9.2) and dose not allow me to use my newer dlls.)
It seems I'll have to wait for microsoft to update the dll in Azure:

Specify PHP version with dotcloud

I have an application that requires PHP 5.3. Is it possible to specify what version of PHP to run?
It's not currently possible to specify the version of PHP in the PHP and PHP-Worker services. The current version (as of this posting) is 5.4.6-2~lucid+1
If you need a specific version of PHP, it may be possible to use a custom recipe to download and install the specific version your looking for. The following project is an example of such a custom service.
https://github.com/kencochrane/php-on-dotcloud