Browsed by
Author: Mirthbees

Blogger, Innovator, Developer and Enterpreneur. Founder of GuruRecharge, Readymade online recharge script. Lead Developer in Bookrate.in
How to renew letsencrypt ssl certificate in cent os aws ec2 ?

How to renew letsencrypt ssl certificate in cent os aws ec2 ?

How to renew letsencrypt ssl certificate in cent os aws ec2 ? Please go to the folder where you already installed letsencrypt (first time), path may be, /etc/letsencrypt in my case. Inside that You can find a file called letsencrypt-auto then run the below command, ./letsencrypt-auto renew Note: Make sure to stop your nginx/apache servers, if you are running any background processes like pm2/forever, then please stop those things as well to renew the ssl letsencrypt certificates without any issue….

Read More Read More

90 total views, no views today

Flowable Notes for Beginners

Flowable Notes for Beginners

Flowable Notes for Beginners 1. Flowable is a set of process and tasks inside it. Example snippet (as per bpmn20.xml): Below snippet is only for understanding on how the process and tasks will be created in flowable for any bpmn process. Explanation: couponupload is process id/key created to upload the coupons for a particular shop. This process will have set of tasks in order to complete the whole process, here totally 2 process, one is store already partnered or not…

Read More Read More

52 total views, no views today

Angular 4/5/6/7 Notes

Angular 4/5/6/7 Notes

Angular 4/5/6/7 Notes 1. To run different configuration with ng serve then run the below command, ng serve –configuration=local which will basically looks for the configuration files with local and picks that file configuration for this ng serve. 84 total views, no views today

84 total views, no views today

Comments to update forked repository git

Comments to update forked repository git

Below are the comments to update your forked repository: git remote add upstream URL_OF_WHERE_YOU_FORKED (only one time to configure the upstream git url). git fetch upstream git merge upstream/BRANCH_NAME_WHICH_YOU_WANT git push origin ( to push the changes to my fork repository). 92 total views, no views today

92 total views, no views today

Flowable IDM default username and password

Flowable IDM default username and password

Flowable IDM default username and password Flowable is a fantastic tool for BPMN process implementations in java with spring boot frameworks.   You have to download flowable-6.4.0(latest while writing this article) and download the apache tomcat, then move all the below five war files to webapps then do tomcat restart for the deployments. flowable-admin.war flowable-idm.war flowable-modeler.war flowable-rest.war flowable-task.war Then you will be able to see the list of flowable wars deployed in the manager of apache tomcat in this url…

Read More Read More

90 total views, 2 views today

Developers Repeated Mistakes

Developers Repeated Mistakes

In this post we are going to discuss about the repeated mistakes of developers during design/implementation/planning etc. This is just a sudden thought process, so this post will grow on my day to day experience and research wise only. Feel free to comment your repeated mistakes to add it to this master list. In Hibernate/Databases: While creating/planning a column for description, we forget to define the length of values it can hold or even forget to think such scenarios. So…

Read More Read More

102 total views, no views today

pm2 and forever command for beginnners

pm2 and forever command for beginnners

pm2 and forever is a tool to run the process at the background, many of the angular developers are using these tools nowadays in any linux/amazon ec2 machines for angular universal server side rendering(ssr) for seo and many other features.   Herewith I have listed the few mostly used commands: pm2 commands: pm2 start your_js_file (pm2 start local.js) in my case for angular universal run, this build is created using the below commands, npm run build:prod (or) yarn run build:prod …

Read More Read More

112 total views, no views today

[Solved] Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

[Solved] Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

Full Error: Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by   Root cause: This exception comes when we try to run the query with few fields in the select, but only one group by column field   Resolution: This issue comes in mysql 5.7, run the below command to disable the only_full_group_by in mysql:…

Read More Read More

140 total views, 2 views today

Publish your ionic 4 android app to playstore in just 4 steps

Publish your ionic 4 android app to playstore in just 4 steps

Ionic: awesome framework to create hybrid applications. I assume that you already created your app and tested. Let’s directly proceed with the steps to publish ionic 4 android app to google playstore. Step 1: Building ionic 4 app. ionic cordova build –release android This just creates unsigned apk file and the same available in “YOUR_PROJECT_NAME\platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk”     Step 2: Generating keystore file keytool -genkey -v -keystore yourappname-key.keystore -alias yourappnamealiasname -keyalg RSA -keysize 2048 -validity 10000 Generating the keystore which is…

Read More Read More

258 total views, no views today

okhttpclient get/post/form requests example:

okhttpclient get/post/form requests example:

okhttpclient get/post/form requests example: Maven dependency: <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>3.11.0</version> </dependency> okhttpclient with formbody example: public class App { public static void main( String[] args ) throws IOException { OkHttpClient client = new OkHttpClient(); RequestBody formBody = new FormBody.Builder() .add(“client_id”, “some_value”) .add(“client_secret”, “some_value”) .build(); Request request = new Request.Builder() .url(“some_url”) .post(formBody) .addHeader(“authorization”, “headers_here”) .addHeader(“cache-control”, “no-cache”) .build(); Response response = client.newCall(request).execute(); System.out.println(“response => “+response); } }   okhttpclient with multipart form data request example: public class App { public static void…

Read More Read More

206 total views, no views today