Posts

Showing posts from February, 2019

install postgresql 9.5 postgis 2.1 on ubuntu 16.04 || postgis install in ubantu

First you have to install postgres if you have already install then run this command psql --version it return in my system psql (PostgreSQL) 9.6.2  Now we have to install postgis sudo apt install postgis postgresql- your-pg-version -postgis-2.3 in my case sudo apt install postgis postgresql-9.6-postgis-2.3 create extension for your database sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" your_db_name  In my case sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" gisdata Note: Remember before running this command please make sure you have not created extensions in your migration if you created extension in migration file then you must have to skip this command if you run this command by mistake then comment your extension create migration and run your migration file else you will get an error " Extension already created "

An error occurred while installing pg (0.21.0), and Bundler cannot continue

You have to install some additional library to your system to rails setup Open your terminal and run this command- For Linus system sudo apt-get install libpq-dev

How to customise active admin page on keypress

Image
How to customise active admin page on keypress First make new route for getting filtered data: get '/admin/gyms/search_user', :to => 'admin/gyms#search_user', as: :search_gym_user In your controller create new method def search_user      @user =  User.where("name = ? AND role = ?", params[:name], "none") if params[:name].present?      respond_to do |format|        format.json  { render :json => @user }      end    end Render partial and add a id to to table panel "Gym Users:", :id => "foo-panel" do      # renders app/views/admin/posts/_search_users.html.erb       render 'search_users', { users: gym.users }      table_for gym.users, id: "search_gym_user" do        # binding.pry        # filter :"name" , :as => :select, :collection => gym.users.pluck(:name)        column "Joined" do |user|          distance_of_time_in_words(user.created_at, Time.now)    

How to override method in rails 5 plugin

Override controller method in our plugin rails 5 Here i override user controller method in this plugin you can review this plugin cilck here to download plugin

Fashion Psychology Books name

Fashion Psychology Books name The Design of Everyday Things by Don Norman Thinking, Fast and Slow by Daniel Kahneman Designing for Emotion by Aarron Walter Influence: The Psychology of Persuasion (Revised Edition) by Robert B. Cialdini Hooked: How to Build Habit-Forming Products by Nir Eyal The Power of Habit: Why We Do What We Do in Life and Business by Charles Duhigg The Art of Choosing by Sheena Iyengar

The Psychology Of Persuasion free download

The Psychology Of Persuasion online reader

The Design of Everyday Things free download

The Design of Everyday Things free download You can download it from my drive click here to download