Menu

Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase.

We got this error while running a maven project using the maven goal "mvn clean install". Remove the mvn keyword from the command and run the project only with "clean install". 

[ERROR] Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

Is your reason for discrimination valid?

Your car is German.

Your fuel is Arab.

Your movies are American.

Your letters are Latin.

Your numbers are Arabic.

Your kebab is Turkish.

Your coffee is Ethiopian.

Your tea is Tamil.

Your rice is Indian.

Your pizza is Italian.

Your clothes are Bangladeshi.

Your democracy is Greek.

Your electronics are Chinese.


Still you are complaining that your neighbour is immigrant? 


Cannot find module 'aws-sdk'

 

Error: Cannot find module 'aws-sdk'
    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:2:13)
    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 aws-sdk error?

To install the aws-sdk module you need to run the below npm install command.

npm install aws-sdk

OR 

npm install aws-sdk --save


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

E:\assignment\DynamoDBtoCSV>npm install aws-sdk --save
+ aws-sdk@2.771.0
added 14 packages from 66 contributors and audited 15 packages in 62.496s
found 0 vulnerabilities

Can we create an interface without any method?

Yes, we can create an interface without any method. The interface which doesn't have any method or field declaration is called Marker Interface.

Java has few maker interfaces to handling the special scenarios and let the compiler know to treat those classes in a special way. Below are the example of some marker interfaces.


Java Server Pages(JSP) tags

Elements in Java server pages(JSP) are the syntax that is used to write the code in a JSP file. These elements are called tags in JSP and can be used based on requirment. JSP elements have a different component that is allowed by JSP to write or insert the Java code into the JSP file and further call the Java methods and servlets from JSP. Let's understand the purpose of a few JSP tags in this post.

JSP Declaration 

Declaration tag in JSP function as identification containers for the functions, methods and variables in JSP pages. This tag identifies Java declaration rather than generate output.

<%! jsp declaration %>

JSP Expression

Expression tag used for scripting language expression that is evaluated, converted to a String, and inserted where the expression appears in the JSP file. 

 

<%= Java statement %>

JSP Directive

Directives tag also called message tag is instructional tags that are used to provide specific instruction to web containers when the page is loaded and translated. There are three types of directive elements.

<%@ dir-type dir-attr %>

Types of directive elements
1. Page <%@ page %>
2. Include <%@ include %>
3. Taglib <%@ taglib %>

JSP Scriptlet

Scriptlet tag allows you to embed any valid Java source code in JSP server pages.
<% Java code %>

Comment Tag

The comment tag is for information only to write a message for developers and does not appear on JSP pages.
<%/ comments go here />

Flow Control Tag

Flow control tag allows us to control the order in which statements run. The conditional tags if and choose and the iterator tags forEach and forTokens are all examples of JSP flow control tags. The syntax framework for each includes <c:tag_type tag_attribute> Java code . For example, when you use an "if" statement, the correct syntax is <c: if test= "$test parameters"> Java code </c: if > where test= is the type and "$test parameters" identifies tag attributes.
<c:tag_type tag_attribute>


References

1. https://docs.oracle.com/javaee/5/tutorial/doc/bnajq.html#bnajs


Why we should not use the credit card?

Credit cards and loans are a heavy burden on human society. This is modern exploitation where the banking system is openly exploiting their customers. Interest is already an exploration and high interest is highly exploited. Bank and people are taking a high interest and misusing the interest system to put more burden on the person who is already the burden and doesn't have money to do the things. Hence we should avoid using CC and Loans until you need this high priority. Following are some reasons to avoid using interest-based money and banking.
  1. Does Not Teach Self-Control: A person who uses a credit card to fulfill his needs doesn't have self-control on himself/herself. To live a better and peaceful life it is always recommended to spend less. Our expenses should always lower than our income. 
  2. Means You Don't Have a Budget: A person doesn't have the budget to fulfill his/her dream and need. So if you are fulfilling your need with the credit money then your future could be at risk.
  3. Expensive rate of Interest: We have to pay a huge rate of interest on the money which we borrow from the lander, that way we are putting ourselves in more trouble instead of fixing problems. Although it will fix your current issues and makes you happy for a while, but after some time it might start hurting you.
  4. Rates Rise with Unpaid Balances
  5. Bad Habits Risk Relationships
  6. Can Lead to Bankruptcy
  7. Financing Leads to More Spending
  8. Lose of Peace of Mind
  9. You Think You May Overspend
  10. You do not Have Enough Income to Pay the Balance
  11. You are Not Financially Disciplined
  12. Need not to Pay Interest on Your Purchases

Major cities in India was founded by Muslims

Agra 

Agra which is worldwide as the city of Taj Mahal was founded by Sultan Sikandar Lodi in the year 1504.

Ahmedabad 

Ahmedabad was founded by Sultan Ahmed Shah on the bank of river Sabarmati in the year 1411.

Allahabad 

Allahabad was founded my Mughal Emperor Akbar (Jalaluddin Muhammad Akbar) in year 1575.

Amravati


Amritsar


Banaras


Banglore


Bhopal 

Bhopal was founder by Nawab Dost Mohammed Khan in the year 1707. He was the founder of the State of Bhopal a small state after the death of Mughal emperor Aurangzeb.

Bijapur


Calcutta


Chandigarh


Darjeeling


Dehradun


Delhi


Daulatabad


Faizabad


Fatehpur Sikri


Gandhi Nagar


Gaya


Guwahati


Hazaribagh


Hyderabad 

Hyderabad was founded by Sultan Muhammad Quli Qutb Shah of Qutb Sahi dynasty in the year 1591.

Indore


Jaipur


Jaisalmer


Jammu


Jodhpur


Lucknow 

Lucknow was founded by Nawab Asaf ud Daula when he decided to shift his capital from Faizabad to Lucknow in the year 1775.

Madras


Meerut


Moradabad 

Moradabad was founded by Rustam Khan in the year 1600. The name Moradabad was was kept on the name of prince Murad son of Shahjahan.

Mumbai


Murshidabad 

Murshidabad was actually founded by Mughal emperor Akbar as Makhsudabad. But later when Murshid Quli Khan makes this city as capital city at the time he changed the name from Makhsudabad to Murshidabad in the year 1704.

Mysore


Patna


Pune


Raipur


Rajkot


Rampur 

Rampur was founded by Nawab Faizullah Khan in year 1775.

Ranchi


Sasaram


Shahjahanabad


Shimla


Srinagar


Surat


Tiruvendrapuram


Tughlaqabad


What is prototype?

Let's say that you have a great idea for a new product. You can imagine in your mind how it'll work and how cool it'll be when it's done. You can see in your mind how each of the pieces work together and how much easier it makes your life. But putting that into words is a little challenging. You then go to work to make something physical that resembles the picture in your mind and you create a rough mock-up of what the final product will look like.

You've just created a prototype. A prototype is an initial creation of a product that shows the basics of what a product will look like, what the product will do, and how the product operates. A prototype isn't meant to be the final version; it's the rough draft form of the product. It'll often have elements that demonstrate how the product will work, even though the prototype may not have the functionality that the final product will have after it's professionally manufactured. The prototype helps you to get a solid idea of what the product will be and make alterations while the item is still in concept mode.

Advantage of Prototype

A prototype is a valuable tool in the product development process. It gives the inventor or the creator a chance to see their idea come to life. By creating an initial example of your idea, you've got a chance to make changes to the design, work out problems in design, and make alterations to make the product look nice. The prototype is essentially a rough draft of the product. Once the prototype is created, steps can be taken to refine the product, both in design and function.
Prototypes may be used to demonstrate a potential product and can also be used as a tool to gain financing or investments. When a potential investor can see what the item is you want to create, they can get a better vision of what you want to produce and may be more interested in putting their money towards the project.


References

How to find or count all pages in AEM project?

We may find all the AEM pages using the SQL query. Run the below SQL query to get the count and list of all the cq:Page from your project.

SELECT * FROM [cq:Page] AS page WHERE ISDESCENDANTNODE(page ,"/content/project")
Below is the screenshot of the result and query execution steps. You may replace the path with your own project path e.g. /content/project 
Count of pages in AEM project 

.content.xml files are not visible in Eclipse project explorer

While working in Eclipse with Adobe Experience Manager (AEM) code, .content.xml file which is the content file of node structure is not visible in Eclipse project explorer.

This is happening because of the filtration of the file in the project explorer.

To view the .content.xml or any other hidden file which starts with .[dot], remove the following filter from project explorer.


Open Eclipse >> open project explorer >> click on view option >> Filters and Customization

How to open Filters and Customization option in Eclispe.


A new popup window will appear as below. From here, we need to de-filter the .resources option.

Goto tab Pre-set filters >> uncheck the .*resources >> OK

Eclipse filters and customization option

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.

Hain aur bhi duniya mein sukhan-war bahut achchhe

hai bas-ki har ek un ke ishaare mein nishan aur 
karte hain mohabbat to guzarta hai guman aur 

ya-Rab wo na samjhe hain na samjhenge meri baat 
de aur dil un ko jo na de mujh ko zaban aur 

abru se hai kya us nigah-e-naaz ko paiwand 
hai tir muqarrar magar is ki hai kaman aur 

tum shahr mein ho to hamein kya gham jab uthenge 
le aaenge bazar se ja kar dil o jaan aur 

har chand subuk-dast hue but-shikani mein 
hum hain to abhi rah mein hai sang-e-giran aur 

hai khun-e-jigar josh mein dil khol ke rota 
hote jo kai dida-e-khun-naba-fishan aur 

marta hun is aawaz pe har chand sar ud jae 
jallad ko lekin wo kahe jaen ki han aur 

logon ko hai khurshid-e-jahan-tab ka dhoka 
har roz dikhata hun main ek dagh-e-nihan aur 

leta na agar dil tumhein deta koi dam chain 
karta jo na marta koi din aah-o-fughan aur 

pate nahin jab rah to chadh jate hain nale 
rukti hai meri taba to hoti hai rawan aur 

hain aur bhi duniya mein sukhan-war bahut achchhe 
kahte hain ki 'Ghaalib' ka hai andaz-e-bayan aur

-- Asadullah Khan Ghalib (Mirza Ghalib)

List of colonies with category in Delhi

Colonies in Delhi are categories to identify the circle rate and other things. Here we have published the list of colonies and there category and zone in New Delhi area as published by government of Delhi. If you want to calculate the circle rate of any property in these area, you may use the official site of Delhi govt to calulate and know the exact and current circle rate. Circle rate is helps property buyer and seller to identify and analyze the cost of the property.