Sunday, October 14, 2018

Setting up a cluster of JHipster registry and cluster microservice

 
Today I'm going to demonstrate on setting up a cluster of JHipster registry and cluster microservice.
At the beginning, we need to install JHipster. So, follow the below instructions.
1. Install java 8 from Oracle
2. Install Git 
3. Install Node.js
4. Install Yarn using the Yarn installation instructions
5. Install install Yeoman by running below 

yarn global add yo

Friday, June 29, 2018

Server to Server communication with Okta authorization server, Spring Boot & OAuth 2.0

When you need to integrate two servers with authentication, you can use Client Credentials Flow in Okta along with Spring Boot and OAuth 2.0. This Client Credential Flow has been recommended for machine to machine authentication. The application that being build is need to securely store its ClientID and Secret with Okta pass in exhange for an access token. Actually, the authentication flow has only two steps, the application needs to pass client credentials to the Okta Authorization server and then if the credentials are true, Okta will responds with an access token.

Saturday, February 21, 2015

How to add a CheckBox into DataGridView

In this post, I'm going to explain to add a CheckBox into a DataGridViews' Column.  Here, I create a DataGridViewCheckBoxColumn object and add it to the table column.

Fill ComboBox from SQL Server in C#

In this article, I will discuss on filling ComboBox values retrieving from SQL Server Database. I'm using my test Database for retrieving data.

Friday, February 20, 2015

How to run cmd command in c#

Today I'm going to discuss on how to Execute cmd commands in C#. This way, you can easily run cmd commands.Here I used COPY H:\\nbb.txt F:  this command to copy a file (nbb.txt) from H: drive to F: drive.

How to add a ComboBox into DataGridView

In this post, I'm going to explain to add a ComboBox into a DataGridViews' Column.  Here, I create a DataGridViewComboBoxColumn object and add it to the table column. Also I'm using my test Database to fill the ComboBox. You can see the below screenshot of the ComboBox which is inside the DataGridView.

Thursday, February 19, 2015

Filtering DataGridView by Textbox change in C#



In this article, I will show you how to filter a DataGridView when typing in Textbox. One column value should be used to check the word pattern when filtering. Here, I used first_name column values to apply the filtering process. When you type word pattern in Textbox, it will only show the rows which has same pattern with the entered word.

Import data from MS Excel to SQL Server in C#



In many occasions, we need to get data from Microsoft Excel to SQL Server Database for displaying, calculating and manipulating data when developing .NET Applications. So in this case, you can follow this post to import data from MS Excel file.

Wednesday, February 18, 2015

Remove Raw Header in DataGridView

By default, It displays a column with star mark in the DataGridView called Row Header. In many situations this Row Header needed to removed. So,you can remove this column by changing RowHeadersVisible property into False in Properties Window.

How to Display Windows Forms in center of the Screen in C#

When you are developing a Windows form applications in Visual Studio, by default at the run time the form is not position to center of the screen or center of its parent form. This starting position property can be easily set by using following code segment.

Sunday, January 6, 2013

Add Java Swing GUI Toolkit Window Builder to Eclipse

Java Swing is very import when you develop Desktop Applications using Java language for making Graphical User Interfaces. Probably developers use Eclipse for developing Java Applications. However, by default Eclipse doesn't contains Graphical User Interface design tool on it. As a result of that we need to manually add Window Builder to Eclipse.

Saturday, January 5, 2013

Increase Java heap size in Eclipse to avoid not responding problems

Most of programmers had encountered not responding problems in eclipse while developing mostly Java Swing Applications. Most probably these kind of errors occurs due to less java heap size.
So, If you can change this java heap size, then you will be able to improve the performance.

How to get Windows 7 look and feel to your Java Application

When you developing Java Desktop Applications using Java Swing, it is very important to consider the look and feel of the Application. In this post I will give you the code segment for this task.