Cloud-oriented Life

Cloud Native Technology Improves Lives

Outline: Access to the free and open Internet

Outline makes it easy to create a VPN server, giving anyone access to the free and open internet.

Outline enables anyone to access the free and open internet more safely by running their own VPN. Running your own VPN server through Outline makes accessing the internet safer and establishes a connection that is harder to block.

Read more »

pdftoimage

PDFToImage is a ruby gem which allows for conversion of a PDF document into images. It uses poppler_utils to first convert the document to PNG and then allows usage of ImageMagick to convert the image into other formats.

The reasoning behind using poppler_utils is due to the fact that ghostscript occasionally has trouble with certain PDF documents which poppler_utils seems to be able to parse without error.

Read more »

Base64

Base64 is the most popular binary-to-text algorithm used to convert data as plain text in order to prevent data corruption during transmission between different storage mediums. In addition, it is often used to embed binary data into text documents such as HTML, CSS, JavaScript, or XML. Given the high popularity of the algorithm, Base64 is well documented, is supported by various programming languages, has spawned several modifications, and, of course, has its own specification.

Read more »

rainbow

Rainbow is a ruby gem for colorizing printed text on ANSI terminals.

It provides a string presenter object, which adds several methods to your strings for wrapping them in ANSI escape code - Wikipedia - https://en.wikipedia.org/wiki/ANSI_escape_code. These codes when printed in a terminal change text attributes like text color, background color, intensity etc.

Read more »

valid_email2

Validate emails with the help of the mail gem instead of some clunky regexp. Aditionally validate that the domain has a MX record. Optionally validate against a static list of disposable email services - https://github.com/micke/valid_email2/blob/master/config/disposable_email_domains.txt. Optionally validate that the email is not subaddressed ([RFC5233 - https://tools.ietf.org/html/rfc5233]{https://tools.ietf.org/html/rfc5233}).

Read more »

xmlrpc

XMLRPC is a lightweight protocol that enables remote procedure calls over HTTP. It is defined at What is XML-RPC? - http://www.xmlrpc.com.

XMLRPC allows you to create simple distributed computing solutions that span computer languages. Its distinctive feature is its simplicity compared to other approaches like SOAP and CORBA.

The Ruby standard library package xmlrpc enables you to create a server that implements remote procedures and a client that calls them. Very little code is required to achieve either of these.

Starting in Ruby 2.4.0, the xmlrpc library that was before bundled with ruby has been extracted to a gem. So you must just add this to your Gemfile file and bundle again.

Read more »

stack level too deep (SystemStackError)

In Ruby 2.4, there was a unification of integer types (i.e. Fixnum and Bignum are now the very same thing: Integer). This results on quite a few incompatibilities with existing gems which relied on the distinction of the classes.

1
2
$ bundle exec rails s
/Users/cloudolife/.rvm/gems/ruby-2.5.9@camp/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)
Read more »
0%