pydelion.com

pydelion.com

date –date="5 min ago" +%d/%b/%Y:%H:%M

Menu

Skip to content
  • about
  • devops links
  • dandelion
  • lion
  • contact

Tag Archives: ruby

Disabling error reporting from Sinatra to a browser

To disable error reporting to a browser add next line to your application:

disable :show_exceptions
Posted on March 7, 2013 by dandelion. Posted in tips | Tagged ruby, sinatra | Leave a comment

Adding Google Analytics to Sinatra application

To add Google Analytics code to Sinatra application there’s a need to install gem rack-google-analytics.

gem install rack-google-analytics

Add this to your app.rb:

require 'rack-google-analytics'
use Rack::GoogleAnalytics, :tracker => 'UA-XXXXXXXX-X'

And restart the app.

Posted on February 25, 2013 by dandelion. Posted in tips | Tagged ruby, sinatra | Leave a comment

How to fix “make: g++: Command not found”

If you encounter en error:

make: g++: Command not found
make: *** [kb.o] Error 127

while trying to update your Ruby gems on Centos, it means that you don’t have C++ compiler installed. Here’s how to fix it:

yum install gcc-c++
Posted on February 17, 2013 by dandelion. Posted in tips | Tagged ruby, tips | Leave a comment
  • FrançaisFrançais
  • EnglishEnglish
  • EspañolEspañol

Recent Posts

  • Debian: There is no public key available for the following key IDs
  • How to renew Certificate Revocation List
  • Dovecot: Error: mmap failed with file … dovecot.index.cache: Cannot allocate memory
  • Debian: reconfigure unattended upgrades
  • Curl: how to send cookies

Categories

  • linux
  • mysql
  • news
  • python
  • thoughts
  • tips
  • Uncategorized
  • weekly digests

Tags

adaptec ansible apt bash centos curl CORS debian distributed computing dovecot fedora galera html KVM linux memtest minify mysql mysqldump nagios openssl openvz percona perl php port forwarding postfix python qemu raid rpm ruby sed sinatra smtp svn tips trac traceroute ubuntu vim virsh vnstat weekly digest windows wordpress

Knowledge is knowing that a tomato is a fruit. Wisdom is knowing that a tomato doesn't belong in a fruit salad.
Miles Kington
Proudly powered by WordPress Theme: Publish by Konstantin Kovshenin.