Let's write a java hello, world! program and execute it from command line.Programclass Hello { public static void main(String args[]){ System.out.println("Hello, World!"); } }Now, Let's try to compile it using javac and execute it using javacommand as shown … [Read more...] about Hello, World Java
How to call main method from another main method in Java
In this blog post, I will show you how to call a main from inside a main method in java using reflectionLet's start from creating a simple class Hello.java as shown below,public class Hello { public static void main(String[]args){ System.out.println("Hello"); } }Now, … [Read more...] about How to call main method from another main method in Java
How to generate ssh keys and grant access to a remote server
In this blog post, I will show you how to generate ssh keys on local and grant access to your server.Step-1: Create SSH keys on your localFirst, you need to create ssh keys on your system by using ssh-keygenssh-keygenThis will ask you to enter passphrase for extra security, for now … [Read more...] about How to generate ssh keys and grant access to a remote server
How to secure your website using HTTPS
© qualityzoneinfotechIn this blog post, I will show you how to install SSL (Secure Socket Layer) certs on your website. Note that this tutorial is focused on wordpress based websites.Step-1 Buy CertificateI will suggest ssls.com which offers certs at a cheaper price compared to other … [Read more...] about How to secure your website using HTTPS
Go Modules
© cloudinaryAccording to golang official github,Modules are an experimental opt-in feature in Go 1.11, with the plan of incorporating feedback and finalizing the feature for Go 1.13.The initial prototype (vgo) was announced in February 2018. In July 2018, support for versioned modules … [Read more...] about Go Modules
Docker cheatsheet
© nickjanetakis.comBasic commandsdocker images # view images docker ps -a # view containers status docker pull ubuntu # downloads ubuntu imagedocker run -d ubuntu # de-attached mode docker run -it ubuntu # interactive mode docker run -d --name myubuntu ubuntu # naming docker run -it … [Read more...] about Docker cheatsheet
Installing Karel the Robot
Karel is a simulation tool used for learning java, developed at Stanford university. It is available as plugin for eclipse we can install it directly using the link below,https://web.stanford.edu/dept/cs_edu/eclipse/pluginFrom the eclipse, first navigate to help -> install new … [Read more...] about Installing Karel the Robot
How to create an executable Jar file using maven
In this blog post, we will learn how to create a simple quick start project which can be build into a jar file, upon it's' execution will call a java class with main method.Create maven quick start projectmvn archetype:generate -DgroupId=com.test -DartifactId=test … [Read more...] about How to create an executable Jar file using maven