Techy Things

undefined method `request_uri’ for #<ActionDispatch::Request:0x00000008bc79a8> 0

undefined method `request_uri’ for #

undefined method `request_uri’ for # Replace : def store_location session[:return_to] = request.request_uri end by : def store_location session[:return_to] = request.url end et voilà !

Setup a Ruby on Rails dev on Windows and prod on Linux 0

Setup a Ruby on Rails dev on Windows and prod on Linux

1. Install some packages : URU to manage multiple Ruby versions https://bitbucket.org/jonforums/uru/wiki/Downloads Extract the 7zip archive (7-zip.org) to a place on your PATH. I use C:\Tools. $> cd C:\Tools $> uru_rt admin install —>...

Json native gem requires installed build tools 0

Json native gem requires installed build tools

Let’s fix this : $> gem install activesupport Fetching: i18n-0.7.0.gem (100%) Fetching: json-1.8.3.gem (100%) ERROR: Error installing activesupport: The ‘json’ native gem requires installed build tools. Please update your PATH to include build tools...

Debug with GUI C++ Apps on Linux with QtCreator 0

Debug with GUI C++ Apps on Linux with QtCreator

Qt 4.8 Get the latest Qt 4.8 source code from Qt-Project website, e.g. v. 4.8.7 : http://download.qt-project.org/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz Some additional packages need to be installed before building Qt : sudo yum install libX11-devel libXext-devel mesa-libGL-devel...

error: drm/drm.h: No such file or directory 0

error: drm/drm.h: No such file or directory

include/drm/drmP.h:70:21: error: drm/drm.h: No such file or directory Solution #!/bin/bash KERNEL_RELEASE=`dir -1rt /usr/src/kernels/ | tail -1` echo Patching $KERNEL_RELEASE cd /usr/src/kernels/$KERNEL_RELEASE/include/drm ln -s /usr/include/drm/drm.h drm.h ln -s /usr/include/drm/drm_sarea.h drm_sarea.h ln -s /usr/include/drm/drm_mode.h drm_mode.h ln...

[SOLVED] Adding epel repo to Centos 6.6 0

[SOLVED] Adding epel repo to Centos 6.6

$> su – $> yum update # optional but recommanded $> rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org $> rpm -Uvh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm