heroku, hosting, postgress, spree / 19.11.2014

As you know there is a free plan in heroku.com and you can use only 10,000 rows in the database but sometimes your database exceeds those limits and you don't want to pay because the app installation in only for testing purposes. That is why you can use the following commands if you want to to search and find the tables that have the maximum number of records and be able to delete the ones that are not necessary for you
Jquery, Rails, Ruby, spree / 05.09.2014

Just for future reference in Spree you can use the following code in spite of authenticate an existent user created in a Spree Store [javascript] var server = 'http://localhost:3000'; var userAuthUrl = server + '/login.js'; var data = {spree_user: {email: "spree@example.com", password: "spree123"}} $.ajax({ type: "POST", data: data, url: userAuthUrl, success: function(data, textStatus, jqXHR) { console.log(data); console.log(textStatus); console.log(jqXHR); } }); [/javascript]
GO / 21.08.2014

In this tutorial I'm going to show you one way to setup Golang and build your scripts into executable programs(binary files): First of all you have to go into golang.org, download and install Golang depending on your development platform, in my case I'm using Mac OSX and if you already have installed brew is just as easy as run from console: [shell] brew install go brew install mercurial brew install git //installing godoc for creating package documentation go get code.google.com/p/go.tools/cmd/godoc [/shell] After to install GO you have to declared and export "GOPATH" variable it is recommended to add it inside your user profile maybe if you are using bash you have to put the code into the file ~/.bashrc or in my case ~/.bash_profile or if you are using Zsh into the file ~/.zshrc so the code you have to put into your file looks something like: [shell] #go path export GOPATH=$HOME/Golang export PATH=$GOPATH/bin:$PATH //use the following if you want to generate documentation for your package using godoc export GOROOT=`go env GOROOT` export PATH=$PATH:$GOROOT/bin [/shell]
heroku, paperclip, Rails, Ruby, spree / 03.07.2014

Hello guys I want to share with you about this problems with wrong color or quality for the uploaded images using Paperclip gem, Imagemagick and Heroku.com. The fix that we did it is related with the Imagemagick configuration and updates in order to fix this problem you have to do the following actions: First you have to set a new environment variables on heroku running the following command:
paperclip, Rails, spree / 01.07.2014

I decided to add a new image for a product in spree and in that scenario there is a generator provided by paperclip with the purpose of generate that new attachment I tried to run the following command: [shell] rails generate paperclip spree_products specs [/shell] Buuuuuuuut I received the following error: `migration_file_name': protected method `migration_file_name' called for # (NoMethodError)