Can azure jupyterlab vscode open Rmd files? - vscode-extensions

Microsoft's Azure claims to offer integration with jupyterlab, which I would be quite keen to use (editing code in a browser really starts to irritate one after a while). However, I am using Rmd files in jupyterlab so as to maintain the notebooks in git.
When I tried to connect to jupyterlab from azure by clicking the "open in vscode" button I just got an editor for the Rmd file itself which didn't seem very helpful.
Is there a way of using Rmd files in jupyterlab with vscode? (preferrably without a whole bunch of exporting and importing using e.g. jupytext)

Related

Installing a CRX file to Chrome

I have been trying to install a CRX of a program that I have developed and I want to be able to install it by dragging and dropping it into chrome://extentions to make it easier for the people I am sharing it with. I do not want to load it or unpack it because I will most likely have to explain it to everyone.
I have searched multiple threads and forums researching how to do this, but have found none.
One app I used called moonlight allows you to drag and drop it to install it
(find it here https://github.com/moonlight-stream/moonlight-chrome/releases)
and I am wondering if there is any files I can replicate to make it possible for my program too.
On rockstar55's website (rockstar55.tk) on the school chromebook page, all the crx files he provides are able to be dragged and dropped into chrome://extentions

AEM+Filevault+Intellij integration

I am working on AEM 6.2 with crx mapped to local file system using filevault. I also have my code in svn for ui.apps which is in intellij.
Problem: If i change any component dialog, first i need to sync my crx with local file system and then copy changes from file system to svn folder.
I tried to integrate intellij using vlt commands but getting message
File is under version control
Is there a way i can club all three together so from IDE i can update code repository?
You can use the IntelliVault plugin to push content to or pull it from CRX.
In such a setup it doesn't matter where your CRX actually sits. You keep a set of files under version control and the IDE plugin allows you to push/pull to/from CRX whenever you want to. It uses the Vault command line tool under the hood.
It's probably not exactly what you're asking about but it works for me.
Another option is to use AEM Sync from the command line. It's a Node package that you can use to listen to file changes. Have it running in the background and changes you make in your IDE will be automatically reflected in AEM. Be careful about large changes such as switching Git branches. These can kill AEM Sync and potentially interfere with AEM itself if you happen to change a very large number of files while AEM Sync is running.
Aem sync works like a charm - https://github.com/gavoja/aemsync
Go to Terminal> CD to the directory where you have installed aemsync via npm > hit the command provided at the github page.

How to view flamegraph .cpuprofile files

I'm comparing the cpu profile on a couple of branches of my app, and I have downloaded the .cpuprofile files from the console. I'd like to compare them side-by-side but I'm not clear on how to open the saved files.
UPDATE:
Flamegraph
Web version - http://thlorenz.com/flamegraph/web/
Source Code - https://github.com/thlorenz/flamegraph
You can provide a .cpuprofile file using --inputtype cpuprofile
Chrome Dev Tools
.cpuprofile files are Google CPU Profiler Binary Data Files, N|Solid Console offer download the profiling information in this format. This format can we readed by some perfomance tools, also can be viewed on Chrome Developer Tools.
Under "Profiles" tab you can click on the "Load" button and provide the .cpuprofile file.
There is a similar question here with a good answer.
VS Code has an integrated visualizer that supports viewing JavaScript .cpuprofile and .heapprofile files.
It provides the following views:
Table view
Flame view
Left-heavy view

Create a script using Blender and LuxRender Python API?

I am working on Ubuntu 12.04.
Is it possible to create a script using Blender and LuxRender Python API? Can I use both APIs in the same script?
What should I install to start programming a script using their API if it is possible?
Thanks.
Blender has python integrated into it very well and makes extensive use of it, it includes a python console and text editor to write and execute python scripts within Blender. Python access to Blender from outside of Blender is limited/experimental at best.
The Luxrender project provides a Blender addon called luxblend25, which is what you will want.
So you want to install Blender, Luxrender and luxblend25 and do your scripting within Blender. You also have the option to use an external text editor of your choice and open the script in Blender to run it. The luxblend25 scripts are in python and are your best examples of accessing the Luxrender engine from within Blender.
Blender now has it's own stackexchange site - you may find it useful for blender specific help.

Installing print driver on Windows Azure VM

We have a native, stand alone Win32 application that we use to generate .PDF files. It is command line driven to take one of our data files in and generate a PDF file. It works in conjunction with a print driver that is installed on the computer.
I know there are libraries for generating PDF files in .NET that we can use in Azure, however, there is specific type layout being carried out in our App that we must support, and that logic is not yet on the server side. This is a short term cheat, before we port (or rewrite) our 20 year old type layout engine out of C/C++. There is alot of code here with alot of complexity.
I see that we can now run native apps in Azure (yay). However, my issue seems to be that this native application requires a print driver installed. I have not been able to find any information about installing print driver in Azure worker role.
I found this discussion: https://stackoverflow.com/questions/9125385/printing-to-pdf-from-azure-worker-role. The end result of this is to use a PDF library on Azure, which is not something that will work for us.
Also, I am aware that it is not the best use of a server to fire up a process to generate a PDF file everytime somebody wants to preview their data file in our web site. We are planning on cheating by showing the user the PDF, when they want to preview our proprietary data format in a browser. This is Phase I of a project, and rewriting our 20 year old type layout engine in C# is going to take alot longer to accomplish, and we are talking about this (admitted hack) as a short term (in the bigger sense of things) measure.
How do I install a Print Driver in Windows Azure worker role? Is it possible? Are there any other options?
Many Thanks.
If you can do a command line, silent install of the Amyuni software that yms mentioned then you could run that as part of a startup task on your worker role, probably with elevated permissions. People use startup tasks to do all sorts of things and many of them have written blog posts about it or answer questions about them here on SO, but a good place to start would be the official documentation.
This may help: Amyuni PDF Converter is a PDF printer driver with an API exposed as a COM interface and as a net. assembly that allows you to silently install and uninstall the driver programmatically. This can be done by using the methods PDFDriverInit and DriverEnd from your application.
Once your application installs the driver, you can print to PDF using a memory stream as destination and upload it to a Microsoft Azure Blob Storage.
There are 2 ways of installing Amyuni PDF Converter:
1- Using the installation program provided with the package.
2- Copying the dll files to their corresponding folders and then calling the method DriverInit.
The complete process is explained here:
Using the Developer Version of the Amyuni Document Converter
About your specific scenario, if you have an application that uses Amyuni PDF Converter, then there is indeed a printer driver that should be installed with it. Your application could be installing the driver every time it is launched and removing it when it is closed, or it could be installing it only during the installation of your program.
If you do not have the source code of this application but you still have the license information of the library provided by Amyuni, you could try building a small application or batch script that just takes care of the installation process. You can contact Amyuni support for a link to the latest build of the version you are using.
You mentioned that you are using Windows Azure VM, so I am assuming that you have administrative rights on the virtual system and that you can connect to it using remote desktop and run any kind of applications.
Usual disclaimer applies