Installation vs Gem - Paperclip and ImageMagick - ruby-on-rails-4

I am trying to install Paperclip on my Rails Project but it seems I need ImageMagick installed too too.
I thought first ImageMagick was a gem to install but it is actually a piece of software.
My question is :
Why not a gem ?
And as it is a piece of software, will I get into trouble finding an hosting service that has ImageMagick installed too on their servers?

ImageMagick is a command line utility for modifying images. Paperclip uses it for resizing/thumbnailing image uploads. If your hosting service gives you SSH access, you should be able to install it on your server(s).

Propably NO.
I use Digitalocean for my projects and you can install imagemagick simple via their ssh. I suppose this happens to any vps service.

Related

Blender on IBM Cloud (Cloud Foundry)

I'm currently developing a web application (Django 2.0) application.
My app will be deployed on IBM Cloud (Cloud Foundry) using python build-pack.
One of my requirements is to install blender.
Everything else is very well, but for blender installation.
What I've tried so far was:
I tried access my app using SSH connection, but surely I don't have root access to apt-get install blender!!
And tried to include blender in packages.json file and push that file using cf push my-app.
But nothing worked for me.
In another shorter question: what is the main approach in Cloud Foundry Apps to install packages like when we use apt-get install in Ubuntu / Debian.
Please correct me if I did anything wrong, or guide me with headlines to solve this problem!!
I see a couple options for you to install packages if they cannot be installed using the regular requirements file (which is the preferred way):
Download the relevant libraries and put them in subfolders of the app before pushing it. The libraries will be uploaded. That is how I would do it.
Once you have an SSH connection, use secure copy (scp) to upload the files and place them in the subfolders where they are expected.
Regarding Blender, the question is what you need in addition to having the code copied over. Does it need a running daemon? Are there more dependencies? You would need to share more information about your specific app to answer that. Maybe, packaging everything as one or more containers and run it on Kubernetes or a combination of Cloud Foundry and Kubernetes is a better way.

Can not install "wfastcgi 2.1 gateway for iis and python 2.7.9" in IIS

I have a error installing "wfastcgi 2.1 gateway for iis and python 2.7.9" in IIS, to deploy an app django in windows 10.
I can not download the installer (see the image).
enter image description here
Please, have someone the installer?
Thanks in advance!
That looks like Web Platform Installer. That feed is not maintained anymore, and it points to files on CodePlex which no longer exist now that CodePlex is closed/archived.
We recommend you install from https://pypi.org/project/wfastcgi/ instead, using pip.

wicked pdf not displaying amazon s3 images

A very strange thing has happended to my app recently and not sure what has changed? wicked pdf is not longer displaying my https:// images from my amazon s3 server. I am using the images with the src= "https://pathtoimage.png" and they were displaying just find before.
The displaying of images is not working locally or on heroku. On my production server, the pdf rendering is not working as well and creating a bunch of blank white pages.
I am using the gem
gem 'wkhtmltopdf-binary'
gem 'wicked_pdf'
This is the fork of the wkmtltopdf-binary that worked for me: https://github.com/pallymore/wkhtmltopdf-binary.
Insert the following lines in your Gemfile:
gem 'wkhtmltopdf-binary-edge', '~> 0.12.2.1'
Last 2 days i am facing the same problem. I have the version of wkhtmltopdf is 0.9.6. I have upgraded the version to 0.9.9. Now it's works fine.
I feel amazon might change something.
It seems that the version of wkhtmltopdf that comes bundled with the wkhtmltopdf-binary, 0.9.9 has this problem. Uninstalling the gem and then installing a newer binary such as 0.12.2.1 solved this issue for me.
I'm on OS X so I installed it with homebrew but there are binaries for other systems on wkhtmltopdf.org
Here's how to install a newer version of wkhtmltopdf with homebrew:
brew install cask
brew cask install wkhtmltopdf

Get 'best-in-place' gem for rails4 from github w/o internet

I got a very limited internet connection on my office laptop and I want to install the 'best-in-place' gem. Since I use rails 4 I need to get the gem from github as far as I understood various threads. But I cant run bundle install with access outside of my local system.
Is it still possible to install that gem somehow? I already downloaded the folder form github and put it into my ruby but its not working that easy.
Best regards!
Edit: If thats not possible, does anyone of you uses an alternative gem with similar functions?
You can always clone it (or download it, as you have) and then access it later.
Let's say that you downloaded it to: /home/user3665315/workspace/best_in_place
Then, in your Gemfile you can access it locally with the :path option
# Gemfile
gem "best_in_place", path: "/home/user3665315/workspace/best_in_place"
then run
bundle install
and that's it, you have it working locally

Is there a way to setup ImageMagick in IBM Bluemix?

I've setup a Rails application (with the gem rmagick) on Bluemix and I need ImageMagick for the BlueImp image gallery to work.
Is this possible in one way or another?
To use rmagic you have to install imagemagic in your server.
Check this link to install imagemagic:
http://www.ibm.com/developerworks/library/os-imagemagick/