Posts

Showing posts from October, 2022

Chartist.js :: Arvind Sir

Official Link ::   https://gionkunz.github.io/chartist-js/ How to add chartist.js ::  blog error  https://stackoverflow.com/questions/34849012/how-to-set-up-basic-chartist-js-chart Draw chart here :: <script> document . addEventListener ( 'DOMContentLoaded' , function ( ) { // Draw charts here }); </script> Good link :: https://blog.arkency.com/2017/07/how-to-quickly-add-graphs-and-charts-to-rails-app/ Blog link for github chartist :: https://github.com/gionkunz/chartist-js Good link to get any chart in rails https://www.cryptextechnologies.com/blogs/how-to-include-any-chart-in-your-rails-app link for charkick and groupdate :: https://kirirotha.medium.com/quick-and-easy-data-visualization-for-ruby-on-rails-ba9d2786c0f2 link for github akane - for chartkick -- https://github.com/ankane/chartkick Dynamic chart with example :: https://stackoverflow.com/questions/16706279/displaying-dynamic-data-using-charts-and-graphs-in-ruby-on-rails Chartist-rails...

chart.js

 https://www.youtube.com/watch?v=d9j--YtWblM&t=1s https://www.chartjs.org/docs/latest/
 Error cpming in every rails new  project  -- enter this command --- rails g model Product title:string get this eror- warning Integrity check: System parameters don't match                                                                                         error Integrity check failed                                                                                                                   error Found 1 errors.            ...

very good link of chartkicjk

https://www.sitepoint.com/make-easy-graphs-and-charts-on-rails-with-chartkick/ very good link of chartkicjk

Faker Data

 https://www.rubydoc.info/gems/faker/Faker%2FInternet.password For password --- Faker :: Internet . password #=> "Vg5mSvY1UeRg7" Faker :: Internet . password ( min_length: 8 ) #=> "YfGjIk0hGzDqS0" Faker :: Internet . password ( min_length: 10 , max_length: 20 ) #=> "EoC9ShWd1hWq4vBgFw" Faker :: Internet . password ( min_length: 10 , max_length: 20 , mix_case: true ) #=> "3k5qS15aNmG" Faker :: Internet . password ( min_length: 10 , max_length: 20 , mix_case: true , special_characters: true ) #=> "*%NkOnJsH4" Faker::Code https://github.com/faker-ruby/faker/blob/main/doc/default/code.md Faker :: Code . npi #=> "0000126252" Faker :: Code . isbn #=> "759021701-8" Faker :: Code . ean #=> "4600051000057" Faker :: Code . rut #=> "91389184-8" Faker :: Code . nric #=> "S5589083H" # Keyword arguments: min_age, max_age Faker :: Code ...

rspec important

 postman se body dekh lo wohi jayegi params mein yeh dhyan rakho chae koi bhi method ho rspec mein 

In every rails project what do you do

 nvm install v14.10.1   ======= install node js version 14 and nvm  bundle exec rails webpacker:install   ======= install webpacker  yarn install --check-files   == update yarn files bundle exec rails webpacker:install  OR .................. bundle add webpacker rails webpacker: install

How to install node js or update node js after above 12 version - 10 version of mysql is giving error with many dependencies

1. nvm install v14.10.1  ======= install node js version 14 and nvm  2. bundle exec rails webpacker:install  ======= install webpacker  3. rails s   ======= start seever  4. also check the yarn files - after the above two error solved system will give the rror of the yarn - it will solve by the below command --  .................................................................................................. Run these four commands one by one ----  nvm install v14.10.1  yarn install --check-files bundle exec rails webpacker:install  ..................................................................................................

Rails Project Asssignment ------ mysql problem - connect the mysql database server with the rails application -- giving error - and at rake db:migrate giving error

Image
summary - this project is giving top new trainee bhanu and this is ythe nice project -- very nice project - have to complete it - it is very essentials for all software developers -= experienced .///there are many new things in this project   1. good link for removing mysql  - https://medium.com/@alef.duarte/cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysqld-sock-155d580f3a06 2.   good link for installing mysql -  https://vexxhost.com/resources/tutorials/installing-latest-mysql-ubuntu-16-04/ 3. to fix all broken dependencies ::  sudo apt-get install -f   If that fails, purge MySQL server: sudo apt-get purge mysql-server mysql-community-server Then clean and update: sudo apt-get autoclean && sudo apt-get clean && sudo apt-get update Do a general upgrade: sudo apt-get upgrade Now try re-installing: sudo apt-get install mysql-server and mysql-community-server .....................................................