Posts

Showing posts from December, 2021

R sir ne mujhe joapp di woh install nai ho rahi hai einstall karne ke baad bhi aisa kyun ho raha hai

 ya toh build expire ho gayi hogi .. every week build create hoti hai .....honi daily chechiyeh i think build create isko create karta kaun hai .. iska i think link humare paas tak pahunchta hoga..

Good Blog to Search through the Postman

 https://www.postman.com/salesforce-developers/workspace/salesforce-developers/request/12721794-09bcea07-9106-4b15-bda7-4228b5c4c120

Kt :: Knowledge Transfer : Hr project ki ek kt hoti hai ki us par kya aur kaise kaam karna hai

 Kt mango Trainer se...ki iski mujhe kt do de do.....daily 5 min samjhao lekin mujhe kt de do,,,ki usmein kya karise karna hai yeh sab kuch mein dekh hi loon... kt means kisi bhi project ki functionalities kaise chal rahi hai...

generate wicked_pdf with a seperate layout in the Ruby on Rails

 https://blog.corsego.com/gem-wicked-pdf

Gem Package Documentation for Ruby Gems

 https://rubygems.org/gems/chartist-rails

Gem Install Documentation for Ruby Gems

 https://guides.rubygems.org/command-reference/#gem-install

Check Any Gem inside Ruby Gems

 https://rubygems.org/gems/chartist-rails/versions/0.0.1

Export Different Types of Charts of Same Pdf using jQuery

 https://www.thecodehubs.com/export-different-type-of-chart-to-same-pdf-using-jquery/

Javascript Programms :: 150 Programms

 https://www.w3resource.com/javascript-exercises/javascript-basic-exercises.php

heroku commands

heroku run rake db:migrate heroku run rake db:create heroku restart heroku open heroku stop heroku start heroku create heroku login heroku logout git push heroku master  heroku logs -t :: to check the error in heroku

Set project to pg postgres and send to heroku

 1.1 remove sqlite gem  if exist already  1.2 remove sqlite from the gitignore or search in full application and remove anywhere otherwise it will give the error  2. add pg gem 3. bundle 4. Change the code inside database.yml :: like this :: ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ # PostgreSQL. Versions 9.3 and up are supported. # # Configure Using Gemfile # gem 'activerecord-jdbcpostgresql-adapter' # default: &default   adapter: postgresql   encoding: unicode   pool: <%= E...

Main Link for convert the existing database of Rails in Postgres to send it to Heroku :: Tell by Dharmendra

 https://devcenter.heroku.com/articles/getting-started-with-rails6

Install Yarn in U :: Ubuntu eference Link :: https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/

Reference Link ::  https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/ 1.    Enable the Yarn repository. Start by importing the repository’s GPG key using the following  curl  command  : curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list 2.   Once the repository is added to the system, update the package list, and install Yarn, with: $ sudo apt update $ sudo apt install yarn 3. If you already don’t have  Node.js installed on your system  , the command above will install it. Those who are using nvm can skip the Node.js installation with: sudo apt install --no-install-recommends yarn 4. To verify that Yarn installed successfully, run the following commands which will print the Yarn version number: $ yarn --version

Dynamic Chart.js Uploaded with Chart.js

 https://www.semicolonworld.com/question/19669/dynamic-chartjs-chart-updated-in-rails-with-ajax

Good Chart.js Example with Dynamic Dataset

 https://dev.to/keydunov/chart-js-example-with-dynamic-dataset-3j4o

Ten Most Important Javascript Libraries

 https://technostacks.com/blog/javascript-chart-libraries

Build a Chart with chart.js in Ruby on Rails

 https://medium.com/@sergio_13482/chart-js-and-rails-fda978000530

chart with fusion charts in rails :: Very Good Blogs

https://www.fusioncharts.com/dev/getting-started/ruby-on-rails/your-first-chart-using-ruby-on-rails

How to change the remote in terminal:: if i have github remote and i want to change the remote then

 first i will run the command  git remote -v this will give the status of the remote is add at my computer  second i will run the command  git remote add origin1 or origin2 before the repositiorty add  because git remote add origin will add the old git origin through which we have taken the pull 

5 Examples with React JS

 https://tutorialzine.com/2014/07/5-practical-examples-for-learning-facebooks-react-framework

make good charts with chartkick inside rub on rails

 https://www.sitepoint.com/make-easy-graphs-and-charts-on-rails-with-chartkick/

implementing highchart with rails :: good website :: implement with ajax

 https://gorails.com/forum/implementing-highcharts-in-ror

implementing a highchart with ajax

 https://gorails.com/forum/implementing-highcharts-in-ror

Good Website To work with dummy application with highchart with graph after that will add the pdf

 http://railscasts.com/episodes/223-charts?view=asciicast

Working with Live Data in High Charts

 https://www.highcharts.com/docs/working-with-data/live-data

highchart github link

 https://github.com/dwijendraparashartech/highchartwithpdfatDec20_23.56.git

Testing of Jquery :: How to check that jquery is added in the rails application or not

Reference Link :: https://www.geeksforgeeks.org/how-to-set-alert-message-on-button-click-in-jquery/ Note :: We set the alert message for checking the jquery is working or not  Note :: Add the below code inside ruby on rails application inside  index.html.erb if the button is work then the jquery is work otherwise not  <!DOCTYPE html> <html lang="en"> <head> <script src= "https://code.jquery.com/jquery-3.6.0.min.js" integrity= "sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"> </script> </head> <body> <button id="btn">Click me!</button> <script> $(document).ready(function () { $("#btn").click(function () { alert("This is an alert message!"); }); }); </script> </body> </html>

reference link to add jquery by self

 https://www.botreetechnologies.com/blog/rails-6-jquery-upgrade-with-webpacker/

highchart code add by self

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://code.highcharts.com/highcharts.js"></script> <script src="http://code.highcharts.com/modules/exporting.js"></script> <%= wicked_pdf_javascript_include_tag 'jquery-1.6.2.min', 'dr_statistics/highcharts' %> <script>   $(function () {      $('#container').highcharts({       chart: {         type: 'column'       },       first_name: {         text: 'Monthly Average Rainfall'       },       last_name: {         text: 'Source: WorldClimate.com'       },       xAxis: {         students: [           'first_name',           'last_name'              ...

Add jquery in rails by self ::: Add the Jquery in Rails 6 and check / test it is working or not by step 3 ::: Full proof code :: do not see anything else

Step 01 :: $  yarn add jquery Step 02 :: const { environment } = require('@rails/webpacker') inside   environment.js const webpack = require('webpack') environment.plugins.prepend('Provide',   new webpack.ProvidePlugin({     $: 'jquery/src/jquery',     jQuery: 'jquery/src/jquery'   }) ) module.exports = environment Note :: Inside the bold content just add the Italic Content  Step 03 :: Testing  of the Jquery :: If Jquery is added or not   Add the below code inside file you want to check  <!DOCTYPE html> <html lang="en"> <head> <script src= "https://code.jquery.com/jquery-3.6.0.min.js" integrity= "sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"> </script> </head> <body> <button id="btn">Click me!</button> <script> $(document).ready(function () { $("#btn").click(function () { ...

blog for image to pdf in ruby on rails

 https://cloudolife.com/2019/03/23/Programming-Language/Ruby/Awesome-Ruby-Gem/Use-imgkit-gem-to-generate-images-on-the-backend-which-renders-HTML-using-Webkit/ https://cloudolife.com/2019/03/23/Programming-Language/Ruby/Awesome-Ruby-Gem/Use-imgkit-gem-to-generate-images-on-the-backend-which-renders-HTML-using-Webkit/

how to setup a ruby on rails application with react js frontend

 https://www.digitalocean.com/community/tutorials/how-to-set-up-a-ruby-on-rails-project-with-a-react-frontend

some rails important libarries api commands urls

 https://api.rubyonrails.org/v6.1.4/classes/ActionView/Helpers/AssetTagHelper.html

good website for the code examples

 https://www.codegrepper.com/code-examples/ruby/rails+image

How to See the Previous to Latest Gems for Pdf Generation :: To check all the Gems List

 https://www.ruby-toolbox.com/categories/pdf_generation

How to check each and every ruby gem

 https://rubygems.org/gems/prawn/versions/2.1.0

How this task solved by the trainer :: pdf monkey task

 this task is solved by the trainer  :: conroller mein download ko redirect ho raha tha page usko hata diya toh yeh kam hua hai... trained to me :: now make a new pdf page  now make a new route 

Error easy in rails

 Rails mein byebug lagao :: byebug lagane se kaam baut hi aasan ho jata hai...

Types of charts and pdf in rails in the link

 https://aarvy.me/blog/2019/09/11/rails-6-charts-pdf-generation-gems-availability-and-comparison/

How to use react with ruby with rails 6

 https://learnetto.com/blog/react-rails

How to Import database to MY computer and send to other person

 task rinku sir :: import the database inside your computer from your project and send (export) to me through skype step 01 :: Reference link used ::  https://www.a2hosting.in/kb/developer-corner/postgresql/import-and-export-a-postgresql-database step 02 :: command used --  pg_dump -U username dbname > dbexport.pgsql pg_dump -U username dbname > dbexport.sql Note:: rinku sir ke acording sql hoga sirg pgsql nai hoga  pg_dump -U postgres thera_main_dev > 15_thera_main .pgsql Note :: Rinku sir say that dbexport.psql command hota hai :: pgsql nai hota hai  username : postgres  how to know :: you will know it  by your project or any other project or internet search  dbname ::  thera_main_dev  how to know  :: it will be write in the 4th line inside config/application.yml Note :: after the given command database file will be imported by that name you have created the database inside the command .  step 3 :: send it to th...

Blog for most important 500 react js questions

 https://github.com/sudheerj/reactjs-interview-questions#what-is-lifting-state-up-in-react

Add Jquery in Rails

Reference Link ::  https://www.botreetechnologies.com/blog/rails-6-jquery-upgrade-with-webpacker/ Step 01 ::    $ bundle exec rails webpacker:install Step 02 :: $ yarn upgrade Step 03 :: $ yarn add jquery Step 04 ::  Add require jquery config/webpack/environment.js Add this code between const and moudle export enviornment const { environment } = require ( '@rails/webpacker' ) const webpack = require ( 'webpack' ) environment . plugins . prepend ( 'Provide' , new webpack . ProvidePlugin ( { $ : 'jquery/src/jquery' , jQuery : 'jquery/src/jquery' } ) ) module . exports = environment Step 05 ::Add this code in downside file <codeapp/javascript/packs/application.js require ( "jquery" )

how to check or solve any problem in rails

 see the official doc for the error also .  https://github.com/ankane/chartkick/issues/373  and see the comments if any they have worked at it or not  Note :: Isse yeh bhi pata chal jayega ki woh problem officially solve ho rahi hai ya nai hai ... Note :: He has already said that :: This is not officially support the chartkick charts inside wicked pdf 

Add jquery in rails 6 with webpacker :: finally i use this path to add the jquery in rails 6

 https://www.botreetechnologies.com/blog/rails-6-jquery-upgrade-with-webpacker/

official gem open for the chartkick +wickedpdf gem error also

https://github.com/ankane/chartkick/issues/373

jquery ko rails mein kaise lagana hai woh deikhiye...yeh github ka link hai ............

https://github.com/rails/jquery-rails

This doc is folowed by r sir when work with the project dummy project of wicked pdf and ikicked chart given by arvind sir :: jquery nai lag rahi thi theek se ..

 https://stackoverflow.com/questions/55895494/is-not-defined-when-installing-jquery-in-rails-via-webpack

configration in rails

 configration in rails  connect with the server :: isko padho bahut hi ache se... https://guides.rubyonrails.org/configuring.html

Different gems and ways to generate the pdf in rails

 https://aarvy.me/blog/2019/09/11/rails-6-charts-pdf-generation-gems-availability-and-comparison/

Good Blog :: For the collections of maximum ruby libraries

https://githubhelp.com/hezbymuhammad/awesome-ruby 

Good blog to generate the kickchart gem with wicked pdf

 https://aarvy.me/blog/2019/09/11/rails-6-generate-pdf-charts-with-chartsjs/

One Way to reduce the erros in the rails

Error Loading Chart: No adapter found Note :: Remove the import "Chart.bundle" from each and every bundle file from all javascript pacls and all javascript files in app/javascripts app/assets/javascript app/javascript app/style/javascript and then check the control i and inspect element means if any error is comming then also see at the console and try to remove and add the javascript libraries and check them if any error is coming or not , so this is also the way to reduce the errors. Search the dummy application in which jaascript library is working Search the error :: Error Loading Chart: No adapter found

To change the layout of the pdf this doc has to be followed by me and easily and successfuly run in the project that arvind sir give me :: of the Create a new dumm applciation with wicked pdf that is included with kkchart

 https://dev.to/yarotheslav/generate-pdf-with-gem-wickedpdf-3ho4 i think highchart of kickchart are good to provide the charts in ruby on rails wicked pdf with the kickchart

Ruby on Rails :: Nice Blog of Blogger.com :: blogspot.com

 https://rubyonrailsissue.blogspot.com/

devise.rb inside the config/initializers/devise.rb Inside any Rails Application

 Devise.setup do |config|   config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'   require 'devise/orm/active_record'   config.case_insensitive_keys = [:email]   config.strip_whitespace_keys = [:email]   config.skip_session_storage = [:http_auth]   config.stretches = Rails.env.test? ? 1 : 12   config.reconfirmable = true   config.expire_all_remember_me_on_sign_out = true   config.password_length = 6..128   config.email_regexp = /\A[^@\s]+@[^@\s]+\z/   config.reset_password_within = 6.hours   config.sign_out_via = [:delete,:get]   config.authentication_keys = [:login] end