Ruby on Rails installation windows 10 or 11 basic commands

install ruby on rails on windows 10 go to https://nodejs.org/en/ and download LTS (long time support) nodejs and install ithttps://classic.yarnpkg.com/en/docs/install#windows-stable – install yarn packageshttps://www.sqlite.org/download.html – donwload “64-bit DLL (x64) for SQLite” and “A bundle of command-line tools for managing SQLite database files, including the command-line shell program, the sqldiff.exe program, and the sqlite3_analyzer.exe program.” extract and copy files to …

Purab’s IntelliJ IDEA File and Code Templates for Productive SpringBoot development

For devlopment I am using Intellij IDE. I found “File and Code Templates” and “Live Templates” very useful, It is beneficial while doing day-to-day development. It saves some time and be more productive. github link: https://github.com/purab/IntelliJ-IDEA-File-Templates Mostly we work on Rest APIs. So I created the following File Templates Spring ControllerSpring EntitySpring RepositorySpring ServiceSpring Static …

keepass start on Windows startup

I am using keepass for keeping safe my passwords. If you want start keepass on windows startup then follow these steps. Download and install the latest version of KeePass After starting the software, untick all lines which start with “lock” in the “Tools / Security”. Save by pressing “OK”. Select “File / New” to create …

How to install certbot ssl certificate on nginx server

I am using centos 7.4 server. you can use following commands for installing ssl certicate. #cd /etc/nginx/conf.d/ [root@vps147238 conf.d]# cp m.eparinay.com.conf qa.eparinay.com.conf[root@vps147238 conf.d]# vim qa.eparinay.com.conf[root@vps147238 conf.d]# sudo certbot –nginx -d qa.eparinay.com -d qa.eparinay.comSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator nginx, Installer nginxStarting new HTTPS connection (1): acme-v02.api.letsencrypt.orgAttempting to parse the version 1.23.0 renewal configuration file …

Solved: nginx Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser

I am using Nginx server and with that, I am using an angular application. The application is running fine but in the console, I got the following error Error with Permissions-Policy header: Parse of permissions policy failed because of errors reported by structured header parser To solve this error I added following code in my …

how to install micronaut on windows 10 – java

install wsl on windows run cmd as command prompt wsl –install Above command will enable the required optional components, download the latest Linux kernel, set WSL 2 as your default, and install a Linux distribution for you (Ubuntu by default) install sdkman – ref taken from https://sdkman.io/install curl -s “https://beta.sdkman.io” | bash #sdk selfupdate force …

intellij configure tomcat server

For configure tomcat in intellij IDE you need to download tomcat server from following URL https://tomcat.apache.org/download-90.cgi Install Smart Tomcat plugin to intellij IDE smart tomcat plugin Go to edit configurations section and configure your project. Steps are given in this video https://www.youtube.com/watch?v=2C8RGyC-dlY tomcat serer

Solved: intellij java: package javax.servlet.http does not exist

While running java web project I got following error. java: package javax.servlet does not exist Two solve you need to add javax.servlet-3.0.jar file in your project or ide while executing code you can download jar from this URL: http://www.java2s.com/Code/Jar/j/Downloadjavaxservlet30jar.htm Solution: File -> Project Structure->Libraries and add javax.servlet-3.0.jar library Detail can found in this video https://www.youtube.com/watch?v=kOrpI-3YHVY …

java mariadb executeQuery right syntax to use near ‘? mapping exception

I was using following code String sql = “select * from user where username=? and password=?”;PreparedStatement ps =connection.prepareStatement(sql);ps.setString(1, username);ps.setString(2, password);ResultSet rs=ps.executeQuery(sql);while (rs.next()) {user= new User();user.setId(rs.getInt(1));user.setName(rs.getString(2));user.setEmail(rs.getString(3));user.setQualification(rs.getString(5));user.setRole(rs.getString(6));} I got following eror: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near …

SSL certificate integration in Spring boot Project

SSL certificate integration SSL certificate setting applied in application.properties file To generate self signed SSL certificate use following command: cd src/main/resources keytool -genkeypair -alias local_ssl -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore local-ssl.p12 -validity 365 -ext san=dns:localhost Put following code into application.properties file spring.application.name=ssl-certificate server.port=8443 #server.port=8080 server.ssl.enabled: true server.ssl.key-alias: local_ssl server.ssl.key-store: classpath:local-ssl.p12 server.ssl.key-store-type: PKCS12 server.ssl.key-password: …