wkhtmltopdf in Debian - firebase

I'm trying to get wkhtmltoimage to work in a 64-bit Debian based environment.
I'm using node-wkhtmltoimage in a node project. I dev on a mac, and using the mac binary from wkhtmltopdf, I get it to work fine. Then when I use the linux binary (tried both the linux binary and the linux(Debian) binary from the wkhtmltopdf downloads page), it does not convert my html to image at all.
I am deploying this into a firebase environment, which is the Debian 64-bit environment. Anyone had any luck with this?

Related

Bad EXE format when running an .exe with wine64 [duplicate]

I'm trying to generate an executable from Linux for Windows using pyinstaller.
pyinstaller --onefile --windowed montecarlo.py
I run this command and get a single executable that works on Linux just fine, but if I try on Windows, it's just a simple file. Why?
I was trying to do this same thing today and ran across this answer. It pointed to the FAQ, which says cross-compiling is not supported. It recommends using Wine.

Execute this command line in Windows

I'm trying to connect my firebase auth to an expo project.
I'm following the main docs of each library. I'm stucking on this step.
I'm not able in windows to exeute this command line openssl rand -base64 32 | openssl sha1 -c.
I've tried with the specific https://code.google.com/archive/p/openssl-for-windows/downloads but I don't know how to reproduce the same line.
Any help would be great, thanks in advance.
You need to install openssl. It is usually available on Linux (which I think that article might have been written for). There are some Windows binaries available at here. Alternatively, you could setup a WSL session, and run the command from there.
that is a linux command. Therefore a linux terminal is needed.
there are at least 2 ways to get this done
using virtual machine with ubuntu or some other operating system that uses a linux terminal aka shell (which I doubt you know about)
OR
installing a linux emulator (windows 8+ since it's from the windows store)
assuming you would prefer option 2, go to the windows store, search "Kali" and you will find an app called Kali. install it and if an error shows up, here's a nice video here that talks about solving that error and you would have a kali terminal on your windows computer (your command would work there)

Launch rstudio-server from terminal linux

I'm an Ubuntu user and I used to work with the standard version of Rstudio on my computer. After reading about the server version I installed it on my PC and I'm working with it now. Although I'm very happy with rstudio-server version, I have been facing some difficulties to keep with some old practices. Particularly, I use to launch, open and create new files from the terminal using rstudio keyword - I'm specially fond to the possibility of open files in current rstudio session through the terminal window within rstudio. However, I cannot figure out which command is equivalent in rstudio-server.
I tried, without success, the following commands:
rstudio-server
and
r-server
Interestingly, when I type which rstudio (to find the path of the program's binary files), the terminal did not return any results. The program is installed and working normally, but I just can't find it on my PC
Any help will be appreciated

R package moved from windows 64- bit to 32-bit no longer works

I am working on creating a portable shiny app by referring to this.
I have a 64bit system and the target systems can be both 64bit and 32bit. I installed all packages in the portable apps library. Since the target machines don't have any internet connection.
On the target machine all packages load perfectly, except for prophet which gives error
So I see that it runs the r.exe in bin folder for whatever reason
So I run it directly which gives me this error
I know the system is 32bit. As a test case I ran the shiny app by calling on the 32bit R.exe without prophet package - and it worked perfectly.
So my question is
How do I load Prophet?
My speculation is that it tries to run the 64bit R.exe and fails, if so why are all the other packages load perfectly?
If this is the issue then how do I point it to the 32 bit R.exe?

Emacs org files encryption in MS Windows

I would like to encrypt my org files(org-mode) or a region of the file in emacs. The option given in the tool does not work (gives me the error apply: Searching for program: no such file or directory, gpg). I guess because I am using emacs on windows and all the search on this topic point towards encrypting the files on UNIX platform. Can you please help me on how encryption can be achieved on windows. Thanks in advance.
I am using ergoemacs for windows downloaded from http://ergoemacs.org/index.html. The version is as follows:
GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN ErgoEmacs distribution 2.0.0
Install GnuPG onto your Windows machine. Binary versions (i.e. ones that you don't have to compile yourself) are available from http://gpg4win.org/.
Once GnuPG is installed, and assuming you add its binary directory to your Windows %PATH%, Emacs should be able to use it.
solved the problem by installing cygwin (which has GPG installed) and using the same in emacs.
This can be done by giving the cgywin installed directory in the option cygwin-root-directory of the emacs editor

Resources