Entries by

How to reset Heroku PostgreSQL database

To drop database heroku pg:reset DATABASE –app name_of_your_app; To migrate database heroku run rake db:migrate –app name_of_your_app; To seed database heroku run rake db:seed –app name_of_your_app; but you can run both commands at the same time heroku run rake db:migrate db:seed –app name_of_your_app; after that, run heroku restart That will reset your Heroku database

How to receive Bluetooth files on Ubuntu

With all the power and features of our smartphones these days, we want to connect them with other devices like laptops, and send files via Bluetooth. But, If you connected your smartphone with Ubuntu, notice that you can send files from Ubuntu to mobile phone, but the other way around… not. Most of the time, […]

Ubuntu + Bluetooth: Kako primati datoteke

Nakon Å¡to povežete svoj smartphone i Ubuntu, možete primjetiti da slanje datoteka nije moguće u oba smjera. Ubuntu naprosto neće prihvatiti datoteke koje pokuÅ¡avate poslati sa telefona. Da bismo to rijeÅ¡ili, napravimo slijedeće: 1. Otvorimo Dash Home i tražimo Personal File Sharing 2. Nakon Å¡to se pojavi ekran postavki, uključimo Receive files in downloads folder […]

THL T6 Pro recenzija

THL T6 PRO je najavljivan kao ultra tanak budget smartphone pristupačan svima a istovremeno za mali novac. Kompanija je održala riječ i danas nam je na stolu jeftin pametan telefon.

How to delete slug from history

# slug_controller.rb class SlugsController < ApplicationController def destroy @slug = FriendlyId::Slug.find(params[:id]) @slug.destroy redirect_to :back, :notice => “The URL <strong>/#{@slug.slug}</strong> has been removed” end end <br> # routes.rb resources :slugs, :only => :destroy # in a view <%= link_to ‘Delete slug’, slug_path(slug.id), :method => :delete %>