Ruby / 27.01.2015

In the past days I attended the http://gophergala.com/ event which it was a really good start in the Golang world, I learned some stuff about Golang, after to read this previous sentences you are going to say WTF is this post about ruby or Golang well I wanted to start writting about the Gophergala because the code that we are going create is created with the aim and purpose of cloning all the repositories from an account in this case the gophergala organization using ruby in a rake task, Why Am I doing this? just to put in only one place all these great resources (I will put in my account all of this repositories in one repository).
heroku, Rails, shell / 19.12.2014

Well I'm using heroku.com for staging purposes for one of our Customer projects and I found really useful to clone from time to time the staging db especially when the bugs arise, if you want to do that I'm going to show how to do it using the command line tool or using a rake task you can use whichever you prefer: Before to start with running commands make sure you have the heroku toolbelt installed: https://github.com/heroku/toolbelt
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: