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

  • 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
  • Linux. how to find the most recent file in a folder

Categories

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

Tags

amazon boinc celery centos debian distributed computing django dkim fail2ban fedora git grid gunicorn inotify ioncube jabber java linux munin mysql news nodejs openvz pear perl php postfix python rpm rsync ruby sdk security sed seti sinatra sudo svn tag cloud thoughts tips trac webdav weekly digest 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.