Custom node.js cartridge to support custom npm and node engine on Openshift - openshift

Is there a cartridge for Node.js to run custom version of node and npm
I would prefer npm engine 1.4.3
I tried the following catridge repos:
1) https://github.com/Filirom1/openshift-cartridge-nodejs
2) https://github.com/openshift/origin-server/tree/master/cartridges/openshift-origin-cartridge-nodejs
I get the following error
The cartridge manifest at 'xxxx' must be smaller than 20480 bytes

I usually point people to this blog article when they want a custom node.js version (https://www.openshift.com/blogs/any-version-of-nodejs-you-want-in-the-cloud-openshift-does-it-paas-style), but I'm not sure about the custom npm version.

This comes a bit late, but if you're looking to get the latest Node.js & NPM versions, you can also try this one: https://github.com/icflorescu/openshift-cartridge-nodejs
There are brief how-to & FAQ sections in the project README that will explain you exactly what to do, but basically this is how it works:
Go to Choose a type of application in your OpenShift Online account, paste the URL below into "Code Anything" textbox at the bottom of the page and click "Next".
http://cartreflect-claytondev.rhcloud.com/github/icflorescu/openshift-cartridge-nodejs

Related

Power BI Custom Visual - force directed graph API error

I'm trying to create a custom Force Directed Graph using the source code on Github (PowerBI-visuals-ForceGraph) and following the tutorial available at creating-a-custom-visual. Unfortunately, when I try to start the custom visual using the "pbiviz start" command in PowershellI I get an error stating "Invalid API version v2.3.0".
The "circlecard" example project used in the tutorial, which also uses API version v2.3.0 in it's pbiviz.json file, works just fine. So I'm clueless as to what's causing this error. I'm very new to trying out custom visuals on Power BI so any help with this is greatly appreciated.
Thanks in advance!
Try npm install and then npm run start, that should work :)
PowerBI-visuals-ForceGraph visual was converted to use the new version of powerbi-visuals-tools#beta
If you installed the tools as global by command:
npm i powerbi-visuals-tools --global
and run pbiviz start from global instance it will not work, because old tools doesn't support a new format of visual project.
npm run start - start powerbi-visuals-tools from local instance
specified in package.json of the visual:
https://github.com/Microsoft/PowerBI-visuals-ForceGraph/blob/master/package.json#L71
You need to install beta version of tool as global or run npm run start to use the new tools

How do I use electron-compile?

I'm having trouble with electron-compile.
The docs state
How does it work? (Easiest Way)
Change your reference to electron-prebuilt to electron-prebuilt-compile. Tada! You did it.
What reference, where? You can't be talking about package.json?
I've always run electron using supervisor -x "electron" -i "./" .
What am I completely missing / what should be the contents of my pull request to make this clearer?
I've installed electron-compile with npm i electron-compile --save-dev
I'd like to have es2015/jsx precompiled to es5, so that I can run a react application in electron. electron-compile appears to solve this problem.
You should install Electron as a dev reference in package.json, yes:
npm install --save-dev electron-prebuilt-compile
Don't install Electron as a global because then other people have to set stuff up to run your app (i.e. they now have to micromanage which version of Electron they have installed globally)
With the recent versions (electron 1.3.5), I was unable to get electron-prebuilt-compile working, well it works for development but packaging for production has no real working examples.
It seems the compiling and packaging needs to be done manually, so in case anyone needs a working example, it's here. Hope to save someone some time and pain.

Polymer installation doesn't work

After downloading all all the components of Polymer, I can not install it via the command line. Can someone write all of the step by step procedures?. I have already visited the site to see how but this does not work.
I am using Windows 10 and the command line for installation.
You might want to start off with Polymer Starter Kit, which includes instructions for setup and build.
https://github.com/PolymerElements/polymer-starter-kit

FreePascal & OpenShift

any one has experience with Open Shift and install FreePascal as a cartridge?
I found this but I don't know how make it work :
https://github.com/jhadvig/openshift-pascal-cartridge
I want to know what is the instruction of making FreePascal cartridge.
The following command should install that cartridge for you
rhc app create freepascal https://cartreflect-claytondev.rhcloud.com/reflect?github=jhadvig/openshift-pascal-cartridge
Basically since the manifest.yml file does not contain a Source-Url definition, you need to run it through the cartridge reflector as i did above.
Unfortunately that cartridge also does not seem to install correctly. You should leave an "issue" using the issues tab on that cartridge asking if it is ready for production use or not.
If you want to develop your own cartridge, you can read through the cartridge developers guide here: http://openshift.github.io/documentation/oo_cartridge_developers_guide.html

Sublime Linter not working in Windows

As the title says.
The linter doesnt seem to work at all for me in Windows. I have tried it with javascript and php files with the correct syntax set.
Im following Jeffery Ways tutorial here -> https://tutsplus.com/lesson/sublime-linter/
I have installed package control,
SublimeLinter and nothing, removed it
installed sublimelinter beta and nothing too.
Any help please
From SublimeLinter's github page:
"If you plan to edit files that use a Javascript-based linter (Javascript, CSS), your system must have a Javascript engine installed... On Windows, you must install the Javascript engine Node.js, which can be downloaded from the Node.js site."
Node.js
Install it like a normal Windows application. Close Sublime and restart. Linting should be working.
You need to point the SublimeLinter to your PHP executable file in the SublimeLinter.sublime-settings.
Change this option:
"sublimelinter_executable_map":
{
"php": "C:\\wamp\\bin\\php\\php5.3.13\\php.exe"
},
Edit:
See this link for more help
http://fuzzytolerance.info/blog/2012/05/14/2012-05-15-getting-sublimelinter-running-on-windows/
In order to get SublimeLint linting js files, I had to follow the instructions here and install this additional plugin:
(I didn't need to follow the 'Linter configuration' step)
https://github.com/SublimeLinter/SublimeLinter-jshint#linter-installation