20150828

what about my experience with kindle

I got a kindle about a year ago. Before that, I read some books, I enjoyed some of them (and really slept with others). Reading a normal book (tree format) is more about the light and the angle that you are reading in the bed, and from page to page, you must change to read the opposite page.

Reading in a kindle, as in a PDA, is more about getting the only angle or position to read. Once you are confortable, you can read for a long time without perturbations. Getting a kindle paperwhite, menas that I can read at night without any other light, and even in the train, an being able to view the page without problems.

I've already read the saga of Percy Jackson (in a couple of months, really nice story); and now I'm at the third book of "Is wrong to pick up girl in a Dungeon?" (light novel from Japan).

I'm stuck because I have a lot of work, but I really enjoy the saga that I'm reading now. Reading with a kindle is quite interesting and easy, I really recommend it. I had the chance to use a tablet to read, but I really think that the e-ink is quite better to an e-book hardware-book. And also with "calibre" you an change the format of anything to .mobi to be able to read it from the kindle without problems.

one more time with RoR

Today I'm interesting again for testing some of the RoR gems that I was reading and researching a long time ago, but combined all together.

  • rails_admin
  • devise
  • cancan
  • papertrail
Just to become a nice and easy start up app within a few seconds.

First I added the necessary gems to the Gemfile:

As I was using openshift, I had to get rid of the pg (not used, I'm using mysql || sqlite3).

Then:

rails g rails_admin:install


(mounting admin as /admin, the default option)
Then for devise:
rails generate devise:install
rails g devise:views
rails g devise User

For CanCan:
rails g cancan:ability


And for PaperTrail:
rails generate paper_trail:install --with-changes --with-associations

After that, only last to add the ":username" to the User model

rails g migration AddUsernameToUser username:string

Then the usual
bundle exec rake db:migrate

And for the groups, if needed:
rails g model Role name:string
rails g migration addRoleIdToUser role:references
rake db:migrate

And the base is quite OK