Author: Mirthbees

Blogger, Innovator, Developer and Enterpreneur. Founder of GuruRecharge, Readymade online recharge script. Lead Developer in Bookrate.in

AWS Developer Certification – Exam Tips

AWS, Tutorials
AWS provides certifications in 3 major categories called Developer certification, Sysops/devops certification and  solutions architect certifications. Each category has Associate and Professional level certifications, like AWS developer certification assoicate and AWS developer certification professional etc. For any professional certifications, relevant associate certification is mandatory to complete. We are going to see the complete details which you need to know about AWS developer certification and exam tips in this post. AWS Official link for AWS Developer Certification AWS Certified Developer–Associate (DVA-C01) Examination Guide   AWS Developer Certification - Topics: IAM (Identity Access Management) Users, Groups, Roles and Policies are part of IAM.

How to change Global Access Control from Google login to jenkins login ?

Docker, Tools
How to change Global Access Control from Google login to jenkins login ? Google login is really helpful to control the jenkins access to specific domain users with secured way. But the problem is if you have not configured your google login properly in jenkins > configure global access > google login, then you will face a login problem. In this case, you will not be able to login to your jenkins dashboard using both "jenkins own database" as well as "google login". <securityRealm class="org.jenkinsci.plugins.googlelogin.GoogleOAuth2SecurityRealm" plugin="google-login@1.5"> <clientId>CLIENT_ID</clientId> <clientSecret>CLIENT_SECRET</clientSecret> <domain>ONLY_DOMAIN_NAMES</domain> </securityRealm> You can find a file named conf...
RabbitMq Tutorials

RabbitMq Tutorials

Tools
RabbitMQ is publish-subscribe tool which is effectively used in microservices for their inter communications. RabbitMQ is an open-source message-broker software that originally implemented the Advanced Message Queuing Protocol and has since been extended with a plug-in architecture to support Streaming Text Oriented Messaging Protocol, Message Queuing Telemetry Transport, and other protocols. 1. How to install RabbitMQ in Docker Container ? 1.1 RabbitMQ - Docker pull: docker pull rabbitmq 1.2 RabbiMQ - Docker Run: sudo docker run --restart=always -e RABBITMQ_DEFAULT_USER='rabbitadmin' -e RABBITMQ_DEFAULT_PASS='rabbitpass' -d --name ngrabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management rabbitadmin is username and rabbitpass is rabbitmq password, the same should be configured where...
How to update jenkins in docker container

How to update jenkins in docker container

Docker, Tools
sudo docker container exec -u 0 -it czcjenkins bash here czcjenkins is my container name. wget http://updates.jenkins-ci.org/download/war/2.176.1/jenkins.war This jenkins url can be copied from the official jenkins link or download copy save link from existing jenkins login. mv ./jenkins.war /usr/share/jenkins/ chown jenkins:jenkins /usr/share/jenkins/jenkins.war here jenkins is the user, so keep same as it is only. sudo docker restart czcjenkins

Java Program To validate the Bracket Expression

Algorithms
This program checks for the valid bracket string expression and returns true/false. Basically we need to use stack effectively to check the valid brackets.   Algorithm/Idea is: Keep the list of allowed brackets (predefined) in some collections, here we are using the map<character, character> to keep the open and closed brackets of different types. Iterate the string expression character by character and check whether the character is of only allowed brackets (either open / close) If the bracket is open type then just add it to the stack using stack.push(). If the bracket is close type then it just performs stack.pop(). If any other character is encountered in between just perform the iterations for the next available brackets/till the end accordingly return ...

[Resolved] Caused by: java.net.BindException: Address already in use: bind

Errors and solutions
In windows, run this below command, netstat -ano | findstr :9092 this command will list down all the processes which are running in this port (9092). To kill the process in windows run the below command taskkill /pid 21680 /f 21680 is the process id displayed after running the netstat above command. /f to kill the process forcefully. You will be able to see this response, SUCCESS: The process with PID 21680 has been terminated.
Nginx Server Notes

Nginx Server Notes

Nginx
I struggled a lot to understand nginx during my first assignments in nginx configurations for one of the angular deployments and little interesting things in it. I captured as much as possible in this post to help someone who is like me!! Below entries are added to nginx.conf file which usually exist in /etc/nginx/nginx.conf Basic commands: sudo service nginx start - to start nginx server sudo service nginx stop - to stop nginx server sudo service nginx status - returns the current status sudo service nginx restart - restarts the nginx server   Converting uppercase url to lowercase: This is actually highly recommended if you are going to deploy an application which is like shopping/any end user needed site and expecting better SEO. # As your first location entr...
Ionic 4 Notes

Ionic 4 Notes

Ionic
This blog covers major issues and resolutions which all the developers face while using ionic/cordova.   1. Debugging Empty white screen ionic issue: Are you facing empty white screen after your splash screen, then run the below command and see there is any issue in your html/js code snippets, ionic cordova run android --prod /   2. Ionic API Building command: [Run this command to build your ionic app to unsigned apk] ionic cordova build --release android / ionic cordova build Resolution for java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files Run this command to clear this issue and even any cordova odd issues cordova clean   3. Run the below command to update the cordova plugins: cordova-plugin-update 4. How to resol...

IP Canonicalization in Nginx Http/Https

Nginx, SEO
IP Canonicalization in Nginx Http/Https: IP canonicalization is to redirect IP Address to the domain. This actually a part of SEO, so good to have IP canonicalization, but you can't achieve this using shared web hosting. IP Canonicalization in Nginx Http/Https: Add the below block to above of your default server block in your nginx conf file, which is default available in /etc/nginx/nginx.conf This below block works for both http and https IP canonicalization in nginx server. [code] server { listen *:80; listen *:443 ssl http2; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_certificate "/etc/letsencrypt/live/ngdeveloper.com/fullchain.pem"; ssl_certificate_key "/etc/letsencrypt/live/ngdeveloper.com/privkey.pem"; server_name 18.218.X.X; return 301 https://ngdeveloper.com; } ...

Fix for AWS SSH Connection Hangs ?

Java
Fix for AWS SSH Connection Hangs ? You could have not added the SSH TCP connection to your ec2 instance, thay may be creating this issue aws SSH connection Hangs issue. Follow the simple 3 steps to get away from this, 1. Login to AWS EC2 Console and click on Security Groups (available in the left sidebar). 2. Select your EC2 instance's security group then click on the Inbound tab. 3. Now add the SSH Rule like this to resolve this issue,