December 10, 2019

Go language install and configuration in Windows and Visual Studio Code as IDE

Hi folks,

Today I am going to describe you the best way to install and configure the Go language.

Download

From the Go language from its official web page https://golang.org/dl/

After installation, you would be able to program and run the code from any terminal.

What else?

Open your .go file in Visual Studio Code, it asks you something else. What was it?

"The "go-outline" command is not available. Run "go get -v github.com/ramya-rao-a/go-outline" to install."

What you need to do?

First, in Visual Studio Code set the the following in "settings.json" file.

"go.toolsGopath": "C:\\Go"

Note: If you are getting the following error, then click on "Install All"
The "go-outline" command is not available. Run "go get -v github.com/ramya-rao-a/go-outline" to install.

  • Get the location, where it is installing
  • Copy the bin and pkg folder contents to your Go installed folders.
  • Delete the folder which VS Code used to download the content.

That's all.. you should be able to code in Visual Studio Code as well without having 2 different go installed folders.

Happy Go coding!!

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

November 27, 2019

Virtual Reality (VR), Augmented Reality (AR), 3D Application Development Tools and Platforms

Hi folks,

Most of the developers think Unity is only the development platform to develop Virtual Reality (VR), Augmented Reality (AR), 3D Applications.

Here is the list which might be useful you to explore based on your skillset.


  1. Unity - C#
  2. Unreal - C++
  3. Apple SceneKit - Swift / Objective-C
  4. Google Sceneform - Android
  5. Amazon Sumerian - JavaScript
  6. Babylon - JavaScript - Try online Playground
  7. A-Frame - HTML JavaScript
  8. Three - JavaScript - Examples
Hope this information is useful for you to create your own applications based on your knowledge.

Make your dreams to real using the VR, AR, 3D technologies.

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

October 24, 2019

Markdown file convert/export to html, png, jpeg, pdf with images

Hi folks,

Today I will share about, how we can include the images in markdown file and export to pdf, html, png and jpeg formats.

You can do this with 2 Visual Studio Code extensions

Pre-requisites

Visual Studio Code with following MarkDown Extensions
  1. To place images
  2. To convert the markdown to pdf, html, png and jpeg formats
Install the above 2 Visual Studio Code extensions.

Insert an image

Create images folder and keep all your images (Optional, but easy to maintain)
Syntax: ![](images/imagename.extension)
Usages: ![](images/abc.png)

By now, your image is part of your file.

Preview your file

Open Command Palette (View -> Command Palette OR Type F1 OR Ctrl+Shift+p)
Type "Markdown: Open Preview" OR Ctrl+Shift+v keyboard shotcut

Export Markdown

Open Command Palette (View -> Command Palette OR Type F1 OR Ctrl+Shift+p)
Type export and select below
  • markdown-pdf: Export (pdf)
  • markdown-pdf: Export (html)
  • markdown-pdf: Export (png)
  • markdown-pdf: Export (jpeg)
  • markdown-pdf: Export (all: pdf, html, png, jpeg)

Change Markdown conversion settings

  1. Select File > Preferences > UserSettings or Workspace Settings
  2. Find markdown-pdf settings in the Default Settings
  3. Copy markdown-pdf.* settings
  4. Paste to the settings.json, and change the value
Hope this blog is useful to insert images in your markdown file and export to supported formats.

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

October 01, 2019

Remote desktop connection to Azure AD joined computer device

Hi Folks,

I have an issue of remotely connecting one of the Azure AD joined computer.

Fix is explained below


  1. Open "Remote Settings" from "System".
  2. You should be able to view "Remote" tab from "System Properties".
  3. Uncheck "Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended)" from Remote Desktop section.
  4. Open regedit.exe.
  5. Navigate to "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp".
  6. Update "SecurityLayer" key to "0" (Zero) from default 2 (Two).
  7. Reboot your system.
  8. While taking remote desktop, user "AzureAD\"your work email id" as your username.
  9. You should be able to connect your AzureAD joined system remotely from now.


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

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


Add custom user/system attributes in Active Directory

Hi folks,

Today I'll explain the procedure to add and verify the custom user attributes in Active Directory.

Mount the Directory Schema


  1. Open Command Prompt in Administrator mode
    • Start -> cmd -> Right click and select "Run as Administrator"
  2. Mount the directory schema command
    • cmd> regsvr32 schmmgmt.dll
  3. You will be notified with command success pop-up
    • Click on Ok

Creating Custom Attribute


  • Open mmc (Management Console)
  • Click on "File" menu and select "Add/Remove Snap in.."
  • From "Available snap-ins" section, click "Active Directory Schema"
  • Click on "Add"



  • "Active Directory Schema" should be added to "Selected snap-ins" section and click "Ok"
  • You will be viewing the "Active Directory Schema" in the console
  • Expand and select "Attributes"
  • Right click and choose "New" and select "Attribute" as shown below


  • A warning pop-up shows, click Continue


  • Create New Attribute pop-up opens up
  • Enter the custom attribute details
  • Enter the Object ID as per Reference 1


  • Select the Syntax from the list

  • Check Multi-Valued option based on your requirement
  • Click Ok


Adding to User Class


  • Newly created custom attribute has to be mapped to any one of the class (Computer, user etc)
  • To add it to user
  • (Classes -> User -> Properties -> "Add")
  • Select the custom attribute

Restarting ADDS (Active Directory Domain Service)

  • Open Services
  • Start -> Run -> services.msc
  • Navigate to Active Directory Domain Service
  • Restart the service

Verification

  • Open "Active Directory Users and Computers"
  • Go to "Users"
  • Click on any user and view properties
  • Click on "Attribute Editor" tab
  • Navigate to your custom tab

Please send your feedback to psrdotcom@gmail.com

August 08, 2019

Truecrypt Mount and Unmount in Windows

Hi friends,

I would like to share the information of mounting and unmounting truecrypt in windows

Please find the batch file here

https://gist.github.com/psrdotcom/8350f1469a7a396a886e86b3f29ef38a#file-truecryptmountunmount-bat

With the above batch file, you should be able to do following functionalities

1. Mount a folder as drive
2. Unmount the drive

Hope, this information is useful to you.

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




Ubuntu and Windows system level utilities

Hi friends,

Please find the below links to customize or maintain your OS.

Recover data in Ubuntu
http://www.howtogeek.com/howto/15761/recover-data-like-a-forensics-expert-using-an-ubuntu-live-cd/

Ubuntu LiveCD Customization from scratch
https://help.ubuntu.com/community/LiveCDCustomizationFromScratch

Boot windows7 from USB
http://www.intowindows.com/how-to-install-windows-7vista-from-usb-drive-detailed-100-working-guide/
http://kmwoley.com/blog/?p=345

Windows OS Updates(SP?)
http://www.bootdisk.com/

Partition and Back utilities

Backup
http://www.todo-backup.com/products/home/free-backup-software.htm

partition
http://www.partition-tool.com/personal.htm

disk to disk copy
http://www.easeus.com/disk-copy/

Data Recovery
http://www.easeus.com/datarecoverywizard/free-data-recovery-software.htm

Hope the above tools will be useful for you.

Please send your comments and 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

February 21, 2019

node server address in use error resolution for Windows and Linux machines

Hi friends,

Today, I have come across a situation, where my node server existed unproperly and address has been blocked. Because of which, I am unable to run the node server on the same port.

System configuration

Running my node server on port 3000.

Resolution

Windows Machine

We will first try to find whether the port has been still in listening mode.
netstat -ano | find "LISTENING" | find "3000"
When the above command returns result then take the last number (Process ID)
We will kill the process with the following command.
> taskkill /f /pid

Linux Machine

> netstat -nlp | grep :3000
> kill -9

Now, you will be able to run the node server on the same port which has been blocked.

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

January 24, 2019

bash: C:/Program: No such file or directory error solution in git bash with windows directory path having spaces

Hi friends,

Today, I have come across a situation where I have to execute the gitbash on windows with linux commands.

The escape character doesn't alone solve the problem

Problem


Setting up an alias for bash where the path includes space

$ alias DOCKER_HOME=C:/Program Files/Docker/Docker

Error

bash: C:/Program: No such file or directory

Solution

$ alias DOCKER_HOME=C:/"Program\ Files"/Docker/Docker

Hope my solution helps you in resolving the issue.

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

Featured Post

Java Introdcution

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