Gem like tario/shikashi for jRuby - sinatra

Previously I was using MRI Ruby now I am moving to jRuby. Most of the gems I am using are compatible with jRuby. But the gem shikashi is incompatible with jRuby.
I will be thankful if any one provide the best alternative or work around.

Related

How to Install Gem?

I don't know where Gem comes from, but I'm trying to install Jekyll from GitHub, and it says for start ups you need to install Gem. How do I install it?
I've looked up already on Google and on StackOverflow. The results didn't help at all. Thanks!
You need to have Ruby installed in order to use Gem. Depending on which OS you're using depends on the installation for Ruby but here is a link for windows.

Want to install SOAP on PHP5.5

I am working on ubuntu 16.04 with PHP version 5.5 now I want to use SOAP library in it.
I have already installed php-soap package(with ref. How do I enable --enable-soap in php on linux?) and tried to enable it. but it won't works for me anyway.
By searching I found php soap package are available for PHP version 5.6, 7.0, 7.1.but am working on PHP version 5.5 and in situation that I can't change PHP version of my system.
Any way or suggestion to install soap for PHP5.5 would be great help.
The SOAP package is available for all versions of PHP since at least 4 something. There are two options on how to install/enable it depending on the way your PHP was installed initially.
If your PHP was installed via the distribution's package manager you just have to install the package php-soap. On your Ubuntu this should be:
sudo apt-get install php-soap
If your PHP was compiled on your machine you will have to compile it again passing in the switch --enable-soap .This switch could differ depending on your PHP verison. Check the documentation of make in PHP's source if this is the case.

Bundle only supports platforms x64-mingw32 but local is x86_64-linux

I developed my Rails Application in a Windows environment and I am trying to deploy into Linux Ubuntu 16.04. I am stumbling upon this error:
Your bundle only supports platforms ["x64-mingw32"] but your local
platforms are ["ruby", "x86_64-linux"] and there's no compatible match
between those two lists.
I think the problem is with gemfile.lock . in addition to seeing strings with 'x64-mingw32' for each gem; I find that there is also this:
PLATFORMS
x64-mingw32
How do I make my application run in a Linux 16.04 LTS Environment?
Your Gemfile.lock is restricting the platform your app can run on.
Deploying the app into Linux without the .lock file should resolve your issue.
If you have any Windows-specific gems in your Gemfile, its better to move them to a dedicated block:
# Gemfile
platform :mswin, :mingw, :x64_mingw do
gem "tzinfo-data"
gem "win32_api"
end
Capistrano requires the Gemfile.lock file for deployment. Bundler is the one that is causing this but according to their Github it is intented behaviour to make your app compatible with different platforms.
In order for this to work - as of 1.13, you could run bundle lock --add-platform ruby on Windows to add the ruby platform to your lockfile ahead of time.
Github Issue

What is the status of the MongoDB extension for PHP7?

PHP7 is gaining a lot of attention lately, promising great performance and a more mature language. Version 7.0.0-alpha is out. We are just starting to rework our core application, which uses MongoDB as data source.
I am wondering if there is any development underway for a PHP7 compatible MongoDB extension? How far is it? Is there any alternative?
Version 1.1.1 of the new "mongodb" extension supports PHP 7, as does the complementary userland library.
AFAIK, there's no compatible extension yet, but I think Hannes '#bjori' Magnusson - who works at MongoDB - wanted to work on it.
The old Mongo extension for PHP is not going to be supported in PHP7. Instead, there is a new MongoDB extension which is using libmongo under the hood and is a more "bare bones" approach that has the goal of being easy to maintain and easy to port to other environments such as HHVM. It also aims to work with any version down to PHP 5.4.
To make the new extension easier to work with, there is an official php library available on Packagist. This library does not aim to be a drop-in replacement for the old Mongo extension. It should be noted that at the time of writing, the library doesn't implement all the features available in the old Mongo extension, such as GridFS. Hopefully we'll see a non-beta release of the extension and library soon with all the available features.
Should be relapse today with version: 1.1.0
If somebody don't have enough time to play with new extension, you can always try php library compatible with old API.
https://github.com/mongofill/mongofill
Here it is a beta Version:
pecl install mongodb-beta
You need some software to compile and install:
yum -y install php-devel cyrus-sasl-devel openssl-devel gcc
echo extension=mongodb.so >/etc/php.d/mongodb.ini
composer require mongodb/mongodb
everything ok
I use CentOS 7 with PHP 7.0.1 und nginx 1.8 und Mongodb 3.2
for Windows:
http://windows.php.net/downloads/pecl/releases/mongodb/1.1.1/
pecl install mongodb
That should do it.
Php 7 mongo db driver installtion
pecl install mongodb
adding extension on "php.ini"
extension=mogodb.so
Install the mongodb driver using composer on public_html directory
$ composer require alcaeus/mongo-php-adapter
(or)
$ php composer.phar require alcaeus/mongo-php-adapter
add at the top of index.php
require_once 'vendor/autoload.php';

Ruby Version Display

when I typed in $ ruby -v the output appeared as below:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
In the past, I used to see the output as:
ruby 1.9.3
Why is my ruby version appearing with more data now? I am new to programming and am wondering if I messed up my computer. Help! Thank you in advance!
Are you using RVM to manage your ruby versions? If not I would reccomend doing so.
https://rvm.io/
Chances are, you upgraded your Ruby installation somewhere along the line (or your system package manager did). It's very unlikely that you messed anything up.
It sounds like you are not using RVM, and that the system package manager installed an update. I would strongly recommend using RVM, it will save you tons of head ache in the future.
https://rvm.io/rvm/install/
If you are not familiar with it, it is a great version manager created by Wayne Seguin. It allows you use specific versions of ruby and specific gems for different projects.