Posts

My meteor tales

Image
It has been like more than 2 years now since I started working on Meteor JS. In my early learning days in Meteor JS, I was excited to learn new things. But the biggest issue I faced at that time, was Meteor was still a new framework and its community support on its own forum was not as good as stack overflow. So when I was struggling through the Logical flow, syntaxes and many more things, I bombarded meteor forum with like 30 posts (In last 1 year). I don't know whether I was fortunate or not, but I got replies on 22 posts. Now the question was, many in Meteor community complain that Meteor forum lacks in providing support. I was also one of them. But after completing like 2 years with Meteor JS now, I have a different perspective. Now I realize the problem was never with meteor JS (Forum or community support anywhere). The problem was in me or let's say in us (developers). The forum is not a mine where you go and start digging for stuff and start getting some outpu...

IMportant Links Ray's Project

Working Conf {   /**    * General configuration of Orthanc    **/   // The logical name of this instance of Orthanc. This one is   // displayed in Orthanc Explorer and at the URI "/system".   "Name" : "MyOrthanc",   // Path to the directory that holds the heavyweight files (i.e. the   // raw DICOM instances). Backslashes must be either escaped by   // doubling them, or replaced by forward slashes "/".   "StorageDirectory" : "OrthancStorage",   // Path to the directory that holds the SQLite index (if unset, the   // value of StorageDirectory is used). This index could be stored on   // a RAM-drive or a SSD device for performance reasons.   "IndexDirectory" : "OrthancStorage",   // Enable the transparent compression of the DICOM instances   "StorageCompression" : false,   // Maximum size of the storage in MB (a value of "0" indicates no   // limit on the storage s...

Taking MOngodb Backup

https://github.com/xpressabhi/mup-data-backup Backup Take backup of running app data from docker then copy to local folder out of docker. docker exec -it mongodb mongodump --archive=/root/mongodump.gz --gzip docker cp mongodb:/root/mongodump.gz mongodump_$(date +%Y-%m-%d_%H-%M-%S).gz Copy backup to server Move data to another server/local machine or a backup location scp /path/to/dumpfile root@serverip:/path/to/backup

Installing SSL on Aws Instance / Digital Ocean Droplet with letsEncrypt free SSL -- Also contains modified mup file

Installing SSL on Aws Instance / Digital Ocean Droplet with letsEncrypt free SSL & also contains modified mup file ----------------------------------------------------------------------------------------------------------- there might come under one of these two cases when instaling SSL. 1. installing new SSL# on your server 2. renewing your certificates. here we are considering that we are doing it for first time. we assume you have installed mup already. # so SSl setup starts with stoping mup first mup stop # then install letsencrypt from this link git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt # next generate the required certificates ./letsencrypt-auto certonly --standalone # navigate into the directory where your cert chain is located cd /etc/letsencrypt/live/mysite.com # combine your cert chain with your private key touch ssl.pem cat fullchain.pem privkey.pem > ssl.pem # back to your machine # open your proj...

Deploy Orthanc Viewer integrated project With mup

To deploy Orthanc Viewer integrated project With mup , follow these commands. In mup.js  env: {       PORT:80,       METEOR_PACKAGE_DIRS: "../Packages",       ROOT_URL: 'http://localhos',       MONGO_URL: 'mongodb://localhost/mongo',     }, the in app-deploy folder,     $ export METEOR_PACKAGE_DIRS=../../Packages     $ mup setup     $ mup deploy

command to excess Mongo db With docker

docker exec -it mongodb mongo PROJECT_NAME

Loader script

Loader with translucent background CSS **************************************************************************** /*loader class akhilesh start*/   .loader_class {     border: 16px solid #f3f3f3; /* Light grey */     border-top: 16px solid #3498db; /* Blue */     border-radius: 50%;     width: 120px;     height: 120px;     animation: spin 2s linear infinite;   margin-top: 10%; } @keyframes spin {     0% { transform: rotate(0deg); }     100% { transform: rotate(360deg); } } /* Absolute Center Spinner */ .loading {   position: fixed;   z-index: 999;   height: 2em;   width: 2em;   overflow: show;   margin: auto;   top: 0;   left: 0;   bottom: 0;   right: 0; } /* Transparent Overlay */ .loading:before {   content: '';   display: block;   position: fixed;   top: 0;   left: 0;   ...