Category: linux

Replace file_columns on Ruby On Rails to Carrierwave 0

Replace file_columns on Ruby On Rails to Carrierwave

Let's use CarrierWave Add to Gemfile gem 'carrierwave' gem 'mini_magick' Run this $> bundle install In your model add class SellerProduct < ActiveRecord::Base   mount_uploader :image, ImageUploader Then launch your server $> rails server...

endsWith() for node 0.10.X 0

endsWith() for node 0.10.X

You should not use endsWith() in node 0.10.X even though it exists because it is not supported and does not pass tests. The alternative is : file.originalFilename.endsWith(".p12") => file.originalFilename.match(/\.p12$/) If you look at node.green...

Google sign-in authentication in your webapp 0

Google sign-in authentication in your webapp

The Documentation https://developers.google.com/identity/sign-in/web/sign-in   The Catch Since it is javascript, anyone can inject code in your website via the debugger and send any email as received and simulate a positive signin from google authentication,...

Restoring wordpress site from backup 0

Restoring wordpress site from backup

In theory should be straightforward: mySQL database + files restore. In practice not so easy. Here are some trouble you may jump into Website domain changes It happens that before restoring the backup you...

Call to undefined function curl_init() 0

Call to undefined function curl_init()

You need to uncomment extension=php_curl.dll But it might not work! If it doesn't it just means you are editing the wrong php.ini or that no php.ini is used. Verify what is the status by...

Add to PATH on OSX 10.11 0

Add to PATH on OSX 10.11

[MTL-MAC-095:~/] flemieux% set path = ($path /Users/flemieux/Qt5.4.2/5.4/clang_64/bin) [MTL-MAC-095:~/] flemieux% echo $path /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Users/flemieux/Qt5.4.2/5.4/clang_64/bin