Sunday, October 18, 2026

How to install Python Libraries Using 'requirements.txt'?

Open Command Prompt or your terminal, navigate to your project directory containing the requirements.txt file, and execute the following command:

pip install -r requirements.txt

This command automatically installs the Python packages listed in your requirements.txt file.

Your requirements.txt file must contain the packages with version:

legacy-cgi
matplotlib       # not specifying
numpy>=1.21.0    # Minimum version
pandas==1.3.3 pycgi pythoncgi wfastcgi


After installation, Verify the Python Package Installation by run the following command: pip list To check the installed version of a specific package, use: pip show wfastcgi

Saturday, October 3, 2026

Turn mess of files into order with just a few lines of Batch magic! 🚀

 @echo off

setlocal enabledelayedexpansion

for %%a in (*.*) do (

    if "%%~xa" NEQ "" if /I "%%~fa" NEQ "%~f0" (

        set "ext=%%~xa"

        set "ext=!ext:~1!"

        if not exist "!ext!" mkdir "!ext!"

        move "%%a" "!ext!\"

    )

)

endlocal


This script auto-sorts files into folders by extension—because the desktop deserves better than clutter. 💻✨

Friday, October 2, 2026

Thursday, September 24, 2026

How to activate windows or office permanently for free?

 Run the following command over Powershell. Follow the instructions and get your windows or office activated lifetime at no cost.

irm https://get.activated.win | iex

It can activate most flavors of windows or office.

How to view all installed applications on your computer?

Run the "shell:AppsFolder" command.

It is a command-line that opens a folder containing all the applications installed on your system, including traditional desktop applications and Universal Windows Platform (UWP) apps downloaded from the Microsoft Store. 

Monday, September 7, 2026

Get details (kundli) of your RAM

Run the following command over Windows Terminal:

wmic MemoryChip get BankLabel, Capacity, DeviceLocator, Manufacturer, MemoryType, PartNumber, SerialNumber, Speed

How to Check Your PC Performance Score in Windows?

Run the command over Powershell :

Get-CimInstance Win32_WinSAT

or

wmiobject win32_winsat


A higher "Windows Experience Index (WEI)" score (usually, 7–9.9) indicates a healthy device/component(s).

A "Good WEI Score" depends on your intended use. For basic office work and web browsing, scores above 5.0 are sufficient. For professional applications like video editing, graphic design, or data analysis, you’ll want scores of 8.0 or higher.

Thursday, May 6, 2021

Name Interface Engines in HL7

Orion Health - Rhapsody Integration Engine

NextGen Connect - Mirth Connect

iNTERFACEWARE - Iguana

Lawson Worldwide - Lawson Cloverleaf

Corepoint Health - Corepoint Integration Engine

Intersystems - Ensemble 

Thursday, March 25, 2021

What is modality in HIS-RIS?

Modality is the term used in radiology to refer the therapeutic method in which images are generated/recorded. More generally, in clinical medicine, the term modality is used for different types of procedures and therapies. Modality for radiology orders in ORM^O01 message. we are currently using the OBR-24 field as Modality for radiology orders message.

Thursday, October 11, 2018

What are the minimum segments necessary to generate an ADT message?

MSH - Message header (Required)
EVN - Event type (Required)
PID - Patient identification (Required)
PV1 - Patient visit (Required)

What are the minimum segments necessary to generate an ORU message?

MSH - Message header (Required)
PID - Patient identification (Required)
PV1 - Patient visit (Required)
OBR - Observation request (Required)
OBX - Observation segment (Required, Repeatable)

What are the minimum segments necessary to generate an MDM message?

MSH - Message header (Required)
EVN - Event type (Required)
PID - Patient identification (Required)
PV1 - Patient visit (Required)
TXA - Document notification segment (Required)
OBX - Observation segment (Required, Repeatable)

Thursday, August 9, 2018

Get inactive RDP connections logged off

@echo off
color 0a
title Logging off Disconnected RDP(s) . . . . .
cls

::Disconnected user logoff
for /f "tokens=2 delims= " %%a in ('query user ^| findstr Disc') do for %%b in (%%a) do (echo %~n0 script is logging off session id - %%a logoff %%a)

::Active user logoff
for /f "tokens=3 delims= " %%a in ('query user ^| findstr Active') do for %%b in (%%a) do (echo %~f0  is logging off session id - %%a logoff %%a)

title Logging off RDP(s) Complete . . . . .
exit

*Note - You must have administrator privileges.

Tuesday, June 6, 2017

C program that prints itself. (Quine Program)

#include <stdio.h>
#include <conio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    FILE *fp;
    if ((fp = fopen(__FILE__, "r")) == NULL)
    {
        printf("Error! opening file %s\n", __FILE__);
        exit(1);
    }
    while(!feof(fp))
    {
        printf("%c", fgetc(fp));
    }
    fclose(fp);

    getch();   
    return 0;
}

Sunday, June 4, 2017

Mitrh & Intersystems CacheDB Connecivity Setup

1. Copy CacheDB.jar into C:\Program Files\Mirth Connect\server-lib\database in your Mirth v3.5 installation directory.
2. Update the dbdrivers.xml file ($MIRTH_HOME/conf/dbdrivers.xml) by appending a line defining the driver class (Driver Class = com.intersys.jdbc.CacheDriver) and JDBC URL( jdbc:Cache://<host>:<port>/<namespace>)

<drivers>
    <driver class="sun.jdbc.odbc.JdbcOdbcDriver" name="Sun JDBC-ODBC Bridge" template="jdbc:odbc:DSN" selectLimit="" />
    <driver class="com.mysql.jdbc.Driver" name="MySQL" template="jdbc:mysql://host:port/dbname" selectLimit="SELECT * FROM ? LIMIT 1" />
    <driver class="oracle.jdbc.driver.OracleDriver" name="Oracle" template="jdbc:oracle:thin:@host:port:dbname" selectLimit="SELECT * FROM ? WHERE ROWNUM &lt; 2" />
    <driver class="org.postgresql.Driver" name="PostgreSQL" template="jdbc:postgresql://host:port/dbname" selectLimit="SELECT * FROM ? LIMIT 1" />
    <driver class="net.sourceforge.jtds.jdbc.Driver" name="SQL Server/Sybase" template="jdbc:jtds:sqlserver://host:port/dbname" selectLimit="SELECT TOP 1 * FROM ?" />
    <driver class="org.sqlite.JDBC" name="SQLite" template="jdbc:sqlite:dbfile.db" selectLimit="SELECT * FROM ? LIMIT 1" />
    <driver class="com.intersys.jdbc.CacheDriver" name="CacheDB" template="jdbc:Cache://host:port/namespace" selectLimit="SELECT * FROM ? LIMIT 1" />
</drivers>

3. Restart mirth connecct.

Note: CacheDB.jar can be downloaded at following sites
    http://www.dbschema.com/cache-jdbc-driver.html
    https://www.oxygenxml.com/database_drivers.html

Wednesday, May 31, 2017

What are the differences between a v2.x and v3 message in HL7?

The key differences between a v2.x and v3 message are as follows:

v2.x was primarily meant for clinical communications - medical orders, patient registration etc. whereas v3.x has additional features for use by informaticists and for government reporting requirements.
v2.x was a custom format (barebones text - all coded and separated by a pipe with headers and multiple segments etc.) whereas an HL7 v3.0 message is an XML format - very verbose and detailed.

What is the difference between 'global' and 'static global' in C?

All static variables, no matter where they are allocated, as well as all global variables, are subjected to "static initialization". They must be initialized by the program before it starts. If you haven't initialized them explicitly, they are implicitly initialized to zero (or NULL for pointers).

Tuesday, May 30, 2017

How do you delete temporary files and folders?

@ECHO OFF
COLOR 0A
ECHO Deleting temporary files...
DEL /A /F /Q /S "%temp%\*.*"
FOR /D %%p IN ("%temp%\*.*") DO RD "%%p" /S /Q
DEL /A /F /Q /S "C:\Windows\Temp\*.*"
FOR /D %%p IN ("C:\Windows\Temp\*.*") DO RD "%%p" /S /Q
ECHO.
::PAUSE
TIMEOUT /T 02

CLS
COLOR 0B
ECHO Deleting prefetch files...
DEL /A /F /Q /S "C:\Windows\Prefetch\*.*"
FOR /D %%p IN ("C:\Windows\Prefetch\*.*") DO RD "%%p" /S /Q
ECHO.
TIMEOUT /T 02

CLS
COLOR 0D
ECHO Deleting Software Distribution Residuals...
FOR /D %%p IN ("C:\Windows\SoftwareDistribution\Download\*.*") DO RD "%%p" /S /Q
ECHO.
TIMEOUT /T 02

Tuesday, November 15, 2016

How do you get milliseconds for timestamp in Perl?

use Time::Moment;

print "\n[ @{[Time::Moment->now->strftime('%Y-%m-%d %H:%M:%S.%6N')]} ]";
print "@{[Time::Moment->now->strftime('%Y%m%d%H%M%S%6N')]}\n";

#or

my $time = Time::Moment->new;
print $time->now->strftime('%Y%m%d%H%M%S%6N');