I'm currently building an module for Drupal 7, which requires the functionality of taking an screenshot of another website and delivering this to the user. For doing this i'm using an php wrapper for chrome (headless).
Aaand: It works on my machine!
But: I realizied, that the project is hosted on a managed server, so i can't install the google-chrome package from the gentoo-repository.
Now my questions is if there is any sort of portable chrome for this use case.
Thank your for helping!
The way i took was using an Amazon Lightsail Instance with an LAMP-Stack. There i could install the required parts. So i'm calling an endpoint on this instance from my drupal module and it's answers with the base64-encoded image data (and some stuff around it).
Related
I am hoping someone can provide some guidance on how to host a local html / web app instance of https://zxing.appspot.com/generator. I have read the documentation, and have searched in the web but I have come away empty-handed.
Also related, Does anyone know how safe it is to use zxing.appspot.com/generator when entering personal info (like wifi passwords)?--> this is one motivation to run the app locally but I am not sure if this concern is well-founded.
I tried downloading the web app source code from: https://github.com/zxing/zxing/tree/master/zxing.appspot.com
and installed it using maven. It seems like the installation went without issues (in wsl2), but I dont find a way to run the app locally as a web server.
I am on a windows 10 machine and trying to use the Shopify App CLI to create apps, but I am running into some errors.
First I installed ruby so I could use the gem command to install the Shopify App CLI, as explained here.
When running shopify version as explained in the above documentation, I get the following output:
bash: shopify: command not found
After googling for a bit I found a solution to this problem, by running shopify.bat version. With this command I can use the CLI.
Moving on, I tried following this tutorial to create my first Shopify App. I used shopify.bat create node to create my app, moved into the folder and ran shopify.bat serve to serve my app locally.
Now the following problem arises:
It starts promising by installing ngrok:
But after waiting for a bit, I get the following output (Sorry for the screenshot, I could not get it to look normal with inline code):
What I also notice is that it uses C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/shopify-cli-1.4.0/ as the path to the CLI, but when looking on Google, most people have /home/[USER]/.shopify-app-cli/ as the path to the CLI. This path does not exist on my machine.
So I would like to know why first of all the serving of the app won't work, because ngrok can't be found, and second why ~/home/user/.shopify-app-cli does not exist.
Thanks in advance,
Mike
I think modern Windows come with Linux now. Since the Internet runs on Linux, you might find development and following tutorials much easier if you use Linux, since all these inconveniences of Windows disappear. Unless you are already super handy with all the quirks of Windows to work around their results, it could be your ticket!
That being said, I mastered this development pattern using *nix and it remains pretty advanced to actually have a smooth workflow for both localhost and production development. Ngrok itself is painful without paying for the service and using puma-dev and puma-ngrok... I laugh when I think about how those essentials running under Windows will be for you.
How I write PHP to generate PDF from PHP page using wkhtml2pdf ? I am looking for only an example also my server is Linux at godaddy how I can decide which kind of Linux ?
Other suggestions that wkhtml2pdf are welcome
I would recommend a VPS from digitalocean or a VPS from the provider you desire with root access. I used Debian and CentOS without problems. As for today, use the binary from the site because it contains the patched QT version and will eliminate the issues with zoom feature.
I created a gist with minimal sample code to output pdf file to browser here https://gist.github.com/alpenzoo/b3d4b2ae144d00fe2b8d442d03d7fd50
i want to start making a facebook app and using the APIs, but i dont have a website to test anything out. how do i get it working on localhost or is it better to start using heroku for it and upload all my php files onto that
Use XAMPP
It's available for Windows, Linux and for Mac.
My site is hosted on Azure. For one of my features, I need to have access to DLL's based on either IE8 or IE9 (for the IEGetProtectedModeCookie function in ieframe.dll). This method was introduced with IE8.
Unfortunately, Azure is currently based on an image that uses IE7, so when I try to call this method I get a "DLL entry point not found" exception.
I've tried everything I can think of to get the x64 version of this DLL on to my Azure instance, but haven't had any luck. So for the time being, for one of my scenarios I'm not going to support browsers based on IE8. Instead, I'll just wait patiently until Azure is based on a browser snapshot or image that uses either IE8 or IE9.
How long do you think I'll have to wait?
Step-by-step guide to automatically installing IE9 on Azure instances.
We do this in our Worker Roles for a similar reason. Works fine.
http://sajojacob.com/blog/2011/03/startup-tasks-elevated-privileges-vm-role/
To answer the question, presumably Windows Azure VM images will have IE8 (or IE9) when a Windows server OS ships with that version.
Here are a list of Azure OS's and related SDKs The dates there should give you an idea.
As an alternative you could create your own VHD and upload it to Azure. But then you will be required to maintain the OS patches yourself.