Showing posts with label Working. Show all posts
Showing posts with label Working. Show all posts

September 23, 2019

ADFS (Active Directory Federation Services) not starting after reboot

Hi all,

I have stuck with one of the problem where ADFS was not starting after rebooting the PC.

Solution from different sources worked for me

Try your luck.


ADFS not starting issue solution
  1. Start "Microsoft Key Distribution Service"
  2. Start "Windows Internal Database"
  3. Start "Active Directory Federation Services"
Please send your feedback to psrdotcom@gmail.com


July 29, 2019

Docker postgres db to local volume/drive for persistent storage permanently

Hi all,

Today, I would be explaining the way to maintain the DB with data persistent when connecting to docker.

System Status

Postgresql DB container is in Docker
Windows 10 PC
Linux containers

Issue

Whenever I restart docker/PC the database wiped off due to container is stopped.

Solution

Create a docker volume

Syntax: docker volume create <>
Example: docker volume create pgdata

Start the container with volume option

Syntax: docker run --rm --name <> -e POSTGRES_PASSWORD=<> -d -p 5432:5432 -v <>:/var/lib/postgresql/data <>
Example: docker run --rm --name pgcontainer -e POSTGRES_PASSWORD=MyPassword -d -p 5432:5432 -v pgdata:/var/lib/postgresql/data postgres

Now, you can run all your database commands

Upon restart also, your data should be safe.

Thanks for reading the blog post.

Please send your feedback and comments to psrdotcom@gmail.com

April 07, 2018

Android and Java latest integration changes for AVDManager and SDKManager non-working issues

Hi all,

If you haven't used your Android skills in recent times with latest Java then, you might come across a situation where the SDK Manager and AVD Manager are not working.

Issue

SDK Manager and AVD Manager are not working.

Environment

Java 9 with Android SDK 23

Note

Though, I am able to perform development using Android Studio but when it come to update the SDK build tools and others, I was not able to update with SDK Manager.

Solution


  1. Now, Android SDK Manager have moved to sdk/tools/bin with filename sdkmanager.bat
  2. Edit the sdkmanager.bat file with any text editor
  3. Go to "@rem Execute sdkmanager" command
  4. Update the command with options: -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee 
  5. It should look like below after you add the arguments
    • @rem Execute sdkmanager
      "%JAVA_EXE%" %DEFAULT_JVM_OPTS% -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee %JAVA_OPTS% %SDKMANAGER_OPTS%  -classpath "%CLASSPATH%" com.android.sdklib.tool.sdkmanager.SdkManagerCli %CMD_LINE_ARGS%
  6. If you run android-sdk/tools/bin/sdkmanager.bat, it should be able to run

Note

There is nothing like platform-tools folder now in Android SDK.

So, make sure that you have specified ANDROID_HOME/SDK in your environment variables with your system/pc Android SDK folder

In PATH environment variable, you can specify %ANDROID_HOME%/tools/bin

Thanks for reading my blog. Feel free to post your comments below. Contact me on psrdotcom@gmail.com

December 11, 2015

Windows 7 Unable to drag and drop with mouse issue resolution

Hi friends,

Today, when I was working suddenly I felt like my mouse is not performing drag and drop.

I found a simple solution
  1. Press and hold any file in file explorer with your primary (left mouse) button
  2. Click "Esc" (Escape) key on your keyboard
  3. You should be able to perform drag and drop of files now

Please send your feedback and comments to psrdotcom@gmail.com


May 13, 2013

Open command window shortcut with the current/present working directory/folder

In my previous post, I had explained about opening command prompt and auto-executing a command.
I was thinking it would be better, if we have a shortcut to open a command prompt in the present/current working directory/folder.

I found two options to do that.
GUI (Windows 7 and above):
  1. Hold “Shift” keyboard key and “Right Click” your mouse button
  2. You will find an option “Open Command Window Here”, click on it
  3. It will open a command window and path would be your current directory

Custom Shortcut:
  1. Right Click your mouse
  2. Choose “New”
  3. Select “Shortcut”
  4. Enter type the location of the item as “cmd” and click on “Next” button
  5. Enter type a name for this shortcut as your own custom name e.g. CurDirCmdWindow and click on “FInish” button
  6. It will create a shortcut with your own specified name
  7. If you run/double click the shortcut, it will open a command window with the path “C:\Windows\System32” i.e. the default command window directory
  8. Now, we have to change the default opening directory to the drive where this shortcut located
  9. I hope you are familiar with %CD% environment variable in windows, which stores the current working directory path. We are going to use this now.
  10. Select the shortcut and “Right Click” with mouse
  11. Select “Properties”
  12. Now shortcut properties windows gets opened
  13. In “Shortcut” tab, navigate to “Start in:” textbox
  14. Replace the existing “C:\Windows\system32” with %CD%
  15. Note: Don’t change the target textbox content
  16. Click on “Apply” and then on “OK” buttons
  17. If you run/double click the shortcut, it will open a command window with your current directory as path.

Please send your feedback and comments to psrdotcom@gmail.com

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com