Menu

Cannot find module commander in Node

 

Error: Cannot find module 'commander'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (E:\assignment\DynamoDBtoCSV\dynamoDBtoCSV.js:1:17)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)


How to fix cannot find module commander error?

To install the commander module you need to run the below npm install command.

npm install commander

OR 

npm install commander --save


After executing the above command, the Node commander module will get downloaded and save locally in the machine. Below is the snapshot of successful execution.

E:\assignment\DynamoDBtoCSV>npm install commander --save
npm notice created a lockfile as package-lock.json. You should commit this file.
+ commander@6.1.0
added 1 package from 1 contributor and audited 1 package in 1.489s
found 0 vulnerabilities

List of 2020 Nobel prize winners - Chemistry | Economic Science | Literature | Medicine | Peace | Physics

Nobel prize is given to people who worked extraordinary in the field of Chemistry, Economic Science, Literature, Medicine, Peace and Physics in memory of Adolf Nobel. In year 2020 following people received the Nobel prize in their respective fields.

Nobel Prize for Chemistry

Emmanuelle Charpentier, and Jennifer A. Doudna won the Nobel prize in Chemistry for year 2020.

Emmanuelle Charpentier


Jennifer A. Doudna


Nobel Prize for Economic Science

Paul R. Milgrom and Robert B. Wilson awarded with the Nobel prize in economic science.

Paul R. Milgrom


Robert B. Wilson


Nobel Prize for Literature

In year 2020 Louise Gluck won the Nobel prize of Literature. She is an American poet and essayist.

Nobel Prize for Medicine

In year 2020 three medical researcher shares the Nobel prize of Medicine. Harvey Alter, Michael Houghton and Charles Rice are the three medical scientist who won the Noble prize of 2020 in medicine.


Harvey Alter

Harvey James Alter is an American medical researcher, virologist, physician and Nobel Prize laureate, who is best known for his work that led to the discovery of the hepatitis C virus. He was born in year 1935 in NewYork and citizen of United States of America.

Michael Houghton

Michael Houghton is a British scientist who co-discovered Hepatitis C in year 1989. He was born in year 1949.

Charles Rice

Charles Moen Rice is an American virologist who research is the Hepatitis C virus. He was born in year 1952.


Nobel Prize for Peace

United Nation World Food Program won the Nobel prize for peace in year 2020. This prize they won for their work in conflict or war zone area to feed the people. 



Nobel Prize for Physics

Roger Penrose, Reinhard Genzel and Andrea Ghez won the Nobel prize in Physics for year 2020.

Roger Penrose


Reinhard Genzel


eSanjeevaniopd - a free teleconsultation medical services

National teleconsultation services also know as eSanjeevaniopd is a free online medical consultation service started by the government of India during COVID-19 pandemic, so that people who are suffering from any general disease can get the treatment and prescription online without visiting dispensary or hospital.
eSanjeevaniopd is a free service for every citizen. And operated and managed by Ministry of Health and Family Welfare. The purpose of this initiative to provide free medical consultation to civilians at their homes without going outside during this tuff time.

Registration process

1. Open this URL in browser https://esanjeevaniopd.in/
2. Go to the patient registration section.
3. A form will appear where you need to fill your mobile number. This mobile number will be use to authenticate the use and further login.
4. You will receive an OTP(one-time password) on your mobile.
5. Authenticate yourself by putting the correct OTP in the given form.
6. Now complete the patient profile, like Name, age, disease, and upload the supporting report or x-ray.
7. After completion of patient registration form click on generate patient ID dialog box and token button to generate the ID and token respectively.
8. You will receive patient token and ID on your registered mobile number via SMS(short messaging service).
9. Now login again on the portal. You will see you got added in a patient queue.
10. Wait for your turn. Once your turn will come a call now button will appear on your screen, click on "call now" button to start your call with the doctor.
11. Doctor will write an online prescription that you may download for your reference or purchase the medicines from your nearby store.

If you have any questions and facing issues related to this service please write to us or contact the helpline number.

Here is the detail documentation of the eSanjeevaniopd registration steps:



References:

30 000 milliseconds timeout on connection http-outgoing-0 [active] | Elasticsearch

Elasticsearch connection timeout issue description:

While using the Bulk API in Elasticsearch we encounter the Timeout error java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-0 [ACTIVE] due to a huge file with thousands of records. 

We face this issue while creating or updating the Elasticsearch indices in bulk, and trying to upload the huge file with thousands of records.

Default timeout of the Elascticsearch Bulk API request is 30 seconds.

Elasticsearch connection timeout resolution:

If you are using the BulkRequest [org.elasticsearch.action.bulk.BulkRequest] then use the below line to add the request timeout in minutes.

request.timeout(TimeValue.timeValueMinutes(10));

If you are using RestClient [org.elasticsearch.client.RestClient] to submit the request then use the below line of code to set the timeout.

RestClient.setMaxRetryTimeoutMillis(100000);

The above statement will set the request timeout to 100 seconds.


Hope this helps you!


References:

Elastic Search Bulk API

RestClient Implementation doc

Sarfaroshi ki tamanna ab hamare dil mein hai | Bismil Azimabadi

sarfaroshi ki tamanna ab hamare dil mein hai 
dekhna hai zor kitna bazu-e-qatil mein hai 

ai shahid-e-mulk-o-millat main tere upar nisar 
le teri himmat ka charcha ghair ki mahfil mein hai 

wae qismat panw ki ai zoaf kuchh chalti nahin 
karwan apna abhi tak pahli hi manzil mein hai 

rahraw-e-rah-e-mohabbat rah na jaana rah mein 
lazzat-e-sahra-nawardi duri-e-manzil mein hai 

shauq se rah-e-mohabbat ki musibat jhel le 
ek khushi ka raaz pinhan jada-e-manzil mein hai 

aaj phir maqtal mein qatil kah raha hai bar bar 
aaen wo shauq-e-shahadat jin ke jin ke dil mein hai 

marne walo aao ab gardan katao shauq se 
ye ghanimat waqt hai khanjar kaf-e-qatil mein hai 

mane-e-izhaar tum ko hai haya, hum ko adab 
kuchh tumhaare dil ke andar kuchh hamare dil mein hai 

mai-kada sunsan khum ulte pade hain jam chur 
sar-nigun baitha hai saqi jo teri mahfil mein hai 

waqt aane de dikha denge tujhe ai aasman 
hum abhi se kyun bataen kya hamare dil mein hai 

ab na agle walwale hain aur na wo arman ki bhid 
sirf mit jaane ki ek hasrat dil-e-'bismil' mein hai
-------------------------------------------------------------

सरफ़रोशी की तमन्ना अब हमारे दिल में है 
देखना है ज़ोर कितना बाज़ू-ए-क़ातिल में है 

ऐ शहीद-ए-मुल्क-ओ-मिल्लत मैं तिरे ऊपर निसार 
ले तिरी हिम्मत का चर्चा ग़ैर की महफ़िल में है 

वाए क़िस्मत पाँव की ऐ ज़ोफ़ कुछ चलती नहीं 
कारवाँ अपना अभी तक पहली ही मंज़िल में है 

रहरव-ए-राह-ए-मोहब्बत रह न जाना राह में 
लज़्ज़त-ए-सहरा-नवर्दी दूरी-ए-मंज़िल में है 

शौक़ से राह-ए-मोहब्बत की मुसीबत झेल ले 
इक ख़ुशी का राज़ पिन्हाँ जादा-ए-मंज़िल में है 

आज फिर मक़्तल में क़ातिल कह रहा है बार बार 
आएँ वो शौक़-ए-शहादत जिन के जिन के दिल में है 

मरने वालो आओ अब गर्दन कटाओ शौक़ से 
ये ग़नीमत वक़्त है ख़ंजर कफ़-ए-क़ातिल में है 

माने-ए-इज़हार तुम को है हया, हम को अदब 
कुछ तुम्हारे दिल के अंदर कुछ हमारे दिल में है 

मय-कदा सुनसान ख़ुम उल्टे पड़े हैं जाम चूर 
सर-निगूँ बैठा है साक़ी जो तिरी महफ़िल में है 

वक़्त आने दे दिखा देंगे तुझे ऐ आसमाँ 
हम अभी से क्यूँ बताएँ क्या हमारे दिल में है 

अब न अगले वलवले हैं और न वो अरमाँ की भीड़ 
सिर्फ़ मिट जाने की इक हसरत दिल-ए-'बिस्मिल' में है
-------------------------------------------------------------

سرفروشی کی تمنا اب ہمارے دل میں ہے 
دیکھنا ہے زور کتنا بازوئے قاتل میں ہے 

اے شہید ملک و ملت میں ترے اوپر نثار 
لے تری ہمت کا چرچا غیر کی محفل میں ہے 

وائے قسمت پاؤں کی اے ضعف کچھ چلتی نہیں 
کارواں اپنا ابھی تک پہلی ہی منزل میں ہے 

رہرو راہ محبت رہ نہ جانا راہ میں 
لذت صحرا نوردی دورئ منزل میں ہے 

شوق سے راہ محبت کی مصیبت جھیل لے 
اک خوشی کا راز پنہاں جادۂ منزل میں ہے 

آج پھر مقتل میں قاتل کہہ رہا ہے بار بار 
آئیں وہ شوق شہادت جن کے جن کے دل میں ہے 

مرنے والو آؤ اب گردن کٹاؤ شوق سے 
یہ غنیمت وقت ہے خنجر کف قاتل میں ہے 

مانع اظہار تم کو ہے حیا، ہم کو ادب 
کچھ تمہارے دل کے اندر کچھ ہمارے دل میں ہے 

مے کدہ سنسان خم الٹے پڑے ہیں جام چور 
سرنگوں بیٹھا ہے ساقی جو تری محفل میں ہے 

وقت آنے دے دکھا دیں گے تجھے اے آسماں 
ہم ابھی سے کیوں بتائیں کیا ہمارے دل میں ہے 

اب نہ اگلے ولولے ہیں اور نہ وہ ارماں کی بھیڑ 
صرف مٹ جانے کی اک حسرت دل بسملؔ میں ہے

How to force git pull to overwrite local file changes?

 


git reset --hard HEAD

or 

git reset --hard origin/<branch name>


After that take a pull using git pull command to pull all new commits.