Menu

Witchcraft and sorcery

Witchcraft is very bad for society and most of the true religion prohibit to sorcery. In India, we have millions of people who are still doing and believe in sorcery, mostly in the region of Bengal. 

India's total debt on World Bank

Some people these saying and you might also be heard that India is not taking more loans from the world. How much true this is? Is it only a rumor or is there any fact in this news?
Today we will do a fact check herewith report of the world bank and Ministry of Finance, Government of India.

India is still taking loans from World Bank or even taking more loans in comparison to previous years. Every year India is increasing its debt in world bank and other sources of external debt.
Here is the report from International Bank of reconstruction and development(IBRD).



Another data we would like to represent here is from Ministry of Finance, Government of India which is published in Trading Economics.



References:

Mana ke hum yaar nhi- lyrics

-مانا کے ہم یار نہی، لو طے ہے کے پیار نہی
-پھر بھی نظریں نہ تم ملانا، دل کا عتبار نہی

-راستے مے جو ملو تو ہاتھ ملانے روک جانا
-ساتھ مے کوئی ہو تمہارے تو دور سے ہی تم مشکورہ دینا

-لیکن مشکاں ہو ایسی کے جسمے اکرار نہی
-نظروں سے کرنا تم بیان وہ جسے انکار نہی

Execute a query in AEM

Execute SQL query with the help of QueryManger interface in Adobe Experience Manager(AEM) using Java.

QueryManager interface encapsulates methods for the management of search queries. Provides methods for the creation and retrieval of search queries.

Method used: createQuery

In this sample program we have created a sling servlet and register that servlet on paths. When browser make the request to registered path then a serch query will get executed and find the all nodes which contains resourceType "granite/ui/components/foundation/form/textfield" under path "/apps/myproject/components/config".
 
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import javax.jcr.Node;
import javax.jcr.NodeIterator;
import javax.jcr.query.Query;
import javax.jcr.query.QueryManager;
import javax.jcr.query.QueryResult;
import org.apache.felix.scr.annotations.sling.SlingServlet;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.SlingHttpServletResponse;
import org.apache.sling.api.resource.ModifiableValueMap;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.api.servlets.SlingAllMethodsServlet;
import org.slf4j.Logger;

@SlingServlet(paths ="/bin/private/addMissingProperties", methods = "GET", selectors="", extensions="html", metatype=true)
public class AddDialogProperties extends SlingAllMethodsServlet{
 /**
  *
  */
 private static final long serialVersionUID = 1L;
 Logger LOGGER=org.slf4j.LoggerFactory.getLogger(AddDialogProperties.class);

 protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) {
  String queryStatement = "SELECT * FROM [nt:unstructured] AS s WHERE ISDESCENDANTNODE([/apps/myproject/components/config]) AND [sling:resourceType] = \"granite/ui/components/foundation/form/textfield\"";
  ResourceResolver resourceResolver=request.getResourceResolver();
  javax.jcr.Session session=resourceResolver.adaptTo(javax.jcr.Session.class);
  QueryManager queryManager;
  try {
   queryManager = session.getWorkspace().getQueryManager();
   Query query = queryManager.createQuery(queryStatement, Query.JCR_SQL2);
   QueryResult result = query.execute();
   NodeIterator nodes;
   nodes = result.getNodes();
   while (nodes.hasNext()) {
    Node node = nodes.nextNode();
    ModifiableValueMap mvp=resourceResolver.getResource(node.getPath()).adaptTo(ModifiableValueMap.class);
    mvp.put("value", " ");
    resourceResolver.commit();
   }
  } catch (Exception e) {
   LOGGER.error("Exception occured in class AddDialogProperties {}" ,e);
  }
 }

}

Can uniform Civil Code ensure gender parity in India?

To understand the civil code we have to first understand the India. 
India is the country of 28 states, where billion of people are living together perhaps those billion of people have their own culture, custom, tradition and faith. Even the people who follow the same faith don’t have same custom and ritual. There is a very popular quote in Hindi about India is “Kosh kosh pe badle pani, char kosh pe wani” which means India is a country where taste of water has been change on every step and language on every four steps. 
Civil code includes the matters of marriage, divorce and family, which also known as personal law which is different for every family based on their geography, culture and religion. 
So when British India decided to codify a law for personal law in 1861, then they categories the personal law in two sects, one is Hindu law and another is Muslim law based on the faith of the Indian civilians. Hindu personal law includes all the religion of the India except Muslim. And Muslims got a separate personal law called Muslim law. 
Both the personal law are injustice for India, since British government is not making law based on the ritual, custom and culture followed by the people of India based on their religion, instead of that they are trying to enforce law which they are following in Britain. And anyhow the law which is implemented and followed in Britain could not be same for India, where people are completely different in geography, tradition, culture, and custom. 
Ideally Hindu law should include the common law which followed (ritual and tradition) by Hindus in all part of the country and Muslim law should include the Sharia law (law of God). And need some reform on those practices which are social evils and injustice for any gender to ensure the justice in the state. And ban those illegal practices which is not in law of God but still in practice to create a male governing society; like dowry, physical abuse, sati, and other form of exploitation. 
Since India has endless diversity in nature, ritual, culture, tradition and religion which civilians of India practice, hence uniform civil code never will be helpful to ensure the equality in the society. Government can form a uniform civil code and create a common law for all civilians, but that will be breach of personal law, and violent the fundamental rights; like right to freedom (article 21) and right to religion (article 25, 26, 27, 28). 
At conclusion I would say that; answer of this question is a big No, I don’t think uniform civil court will ensure and bring gender equality in the India.

Difference between == and === in JavaScript

In this post we will see what is the difference between double equals(==) and triple equals(===) compare operator in JavaScript program. 

Double equals (==) 

Double equals compare two values and return true when those values have exactly same text and should be in same case. Please note values are case sensitive in javascript. 
e.g. var a = "Rashid";

       var b = "rashid";
       a==b // It will return false since both the values are not in the same case.

Triple equals (===) 

Triple equals compare two values as well as it also compare the datatype of those value, and return true when both the things (text and datatype) of those values get matched with other value.
e.g. var c = 7;

       var d = "7";
       c===d // it will return false; since c stored a numeric value and d stored a string value hence datatype didn't match for those values.

Compare values ignoring case 

You can also compare the values in javascript by ignoring the case sensitive. To do that first we have to convert given values in either lowerCase or upperCase by using the toUpperCase() or toLowerCase function.
e.g. var a = "Rashid";

       var b = "rashid";
       a.toUpperCase()==b.toUpperCase() // It will return true 

Code snippet

Below is the complete code snippet which you could refer to practice double equals(==) and triple equals(===) in javaScript.

If you face any issue please fill free to ask your question in comment section.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
    <title>Cpmpare values using == and ===</title>
    <script type="text/javascript">
     var a = "Rashid";
     var b = "rashid";
     var c = 7;
     var d = "7";
     document.writeln("Result of a==b, where a="+a +" b="+b +"::  ");
     document.write(a==b);
     document.write("<br />")
     document.writeln("Result of a===b, where a="+a +" b="+b +"::  ");
     document.writeln(a===b);
     document.write("<br />")
     document.writeln("Result of a===b with toUpperCase, where a="+a +" b="+b +"::  ");
     document.writeln(a.toUpperCase() === b.toUpperCase());
     document.write("<br />")
     document.writeln("Result of c==d, where a="+c +" b="+c +"::  ");
     document.writeln(c==d);
     document.write("<br />")
     document.writeln("Result of c===d, where a="+c +" b="+c +"::  ");
     document.writeln(c===d);
     document.write("<br />")
    </script>
</head>
<body>
<span>This code snippet is copyright with rashidjorvee.blogspot.com.</span>    
</body>
</html>

Output

Result of a==b, where a=Rashid b=rashid:: false
Result of a===b, where a=Rashid b=rashid:: false
Result of a===b with toUpperCase, where a=Rashid b=rashid:: true
Result of c==d, where a=7 b=7:: true
Result of c===d, where a=7 b=7:: false 

Days that we celebrate in the world

January:

1
New Year’s Day
4
Myanmar Independence Day
12
National Youth Day
15
Army Day
26
India's Republic Day and International Customs day
30
Martyrs' Day
31
Street Children’s Day

February:

4
World Cancer Day
4
Sri Lanka Independence Day
6
International Day of Zero Tolerance to Female Genital Mutilation
12
Darwin Day
13
Hug Day
14
Valentine's Day 
15
Breakup Day
21
International Mother Language Day
22
Thinking Day
24
Central Excise Day
28
National Science Day

March:

1
Saint David's Day 
2
Texas Independence Day 
8
International Women's Day
14
Pi Day 
15
World Consumer Rights Day
15
World Disabled Day
17
Saint Patrick's Day
20
World Sparrow Day
21
World Down Syndrome Day
21
World Poetry Day
21
World Forestry Day.
21
International Day for the Elimination of Racial Discrimination
22
World Water Day 
23
Youm-e-Pakistan (Pakistan Day)
23
World Meteorological Day.
24
World Tuberculosis Day
25
Greece Independence Day
26
Purple Day
26
Bangladesh Independence Day

April:

1
April Fools' Day
2
World Autism Awareness Day
5
National Maritime Day.
7
National Beer Day
7
World Health Day.
8
International Romani Day
15
Day of Silence
15
Day of Dialogue
16
Foursquare Day 
17
World Hemophilia Day
18
World Heritage Day.
22
Earth Day.
23
St George's Day
23
World Book Day 
25
ANZAC Day
25
Italy's Liberation Day
25
World Malaria Day
26
World Intellectual Property Day
30
International Jazz Day

May:

1
May Day 
1
Workers Day (International Labor Day).
3
World Press Freedom Day 
4
Remembrance of the Dead 
4
Star Wars Day
4
Greenery Day
5
International Midwives' Day 
6
International No Diet Day
7-8
Victory in Europe Day
8
World Red Cross Day.
11
Military Spouse Appreciation Day 
11
National Technology Day.
12
International Nurses Day 
14
Israel Independence Day
15
International Day of the Family.
17
International Day Against Homophobia and Transphobia 
17
World Telecommunication Day, World Information Society Day
22
International Day for Biological Diversity 
24
Commonwealth Day.
25
International Missing Children's Day 
25
Africa Day
25
Towel Day 
31
Anti-Tobacco Day

June:

1
National Cancer Survivors Day 
4
International Day of Innocent Children Victims of Aggression.
5
World Environment Day.
6
D-Day 
8
World Oceans Day
14
World Blood Donor Day 
18
Autistic Pride Day 
20
World Refugee Day
21
World Hydrography Day 
21
World Music Day 
26
International day against Drug abuse & Illicit Trafficking
27
World Diabetes Day.

July:

1
Doctor's Day
4
America Independence Day (United States) 
6
World Zoonoses Day
11
World Population Day
26
Maldives Independence Day
29
International Tiger Day

August:

3
International Friendship day
4
Friendship Day
6
Hiroshima Day
8
World senior citizen's day
9
Quit India Day and Nagasaki Day
12
International Youth Day
13
International Lefthanders Day 
14
Youm-e-Azadi (Pakistan Independence Day)
14-15
Victory over Japan Day 
15
India Independence Day
15
Korea Independence Day
16
Bennington Battle Day 
17
Indonesia Independence Day.
19
Afghanistan Independence Day
19
Photography day
20
World Mosquito Day
20
Indian Akshay Urja Day
23
European Day of Remembrance for Victims of Stalinism and Nazism 
29
National Sports Day
31
Malaysia Independence Day

September:

5
Teachers' Day(Radha Krishnan Birthday)
8
World Literacy Day
9
North Korea Independence Day
15
Engineer's Day 
16
World Ozone Day.
19
International Talk Like a Pirate Day 
21
Alzheimer's Day. 
21
Day for Peace and Non-violence (UN)
26
European Day of Languages 
26
World Contraception Day 
26
Day of the Deaf.
27
World Tourism Day

October:

1
World Vegetarian Day
1
International day of the Elderly
3
German Unity Day
3
World Habitat Day
4
World Animal Welfare Day
6
German-American Day 
8
National Hug Day
8
Indian Air Force Day
9
World Post Office day
10
World Mental Health Day 
10
National Post Day
13
UN International Day for National disaster reduction.
14
World Standards Day.
15
Pregnancy and Infant Loss Remembrance Day 
15
World White Cane Day( guiding the Blind).
16
World Food Day.
23
Mole Day 
24
UN Day, World development information Day.
30
World Thrift Day.

November:

1
World Vegan Day 
1
All Saints' Day 
2
All Souls' Day 
5
Bonfire Night (also Guy Fawkes Night)
11
Armistice Day (also Remembrance Day)
11
Veterans Day 
14
Children's Day ( in India )
16
National Press Day
19
International Men's Day 
19
World Toilet Day
20
Transgender Day of Remembrance 
20
Africa Industrialization Day.
29
International Day of Solidarity with Palestinian People.
30
Cities for Life Day 

December:

1
World Aids Day.
4
Indian Navy Day.
4
Finland Independence Day.
5
International Volunteer Day
7
Armed Forces Flag Day.
10
Human Right Day.
23
Kisan Divas Farmer's Day).
25
Christmas Day
25
Quaid-e-Azam(Mohammad Ali Jinnah) Day

A part from these days we have few more days are are keep moving and there is no any date fix for those days. Below are those days.


depends on the date of Easter (as early as February 4 or as late as March 10)
Ash Wednesday 
1st day of the 1st month of the Chinese calendar
Chinese New Year
Sunday March 22 to April 25 inclusive
Easter – Western Christianity
April 4 and May 8 (1900 to 2100)
Easter – Eastern Christianity
Start from the month of Moharram(First month in Islamic Calender) 
Islamic  New Year
 After completion of Ramadan.
Eid Ul Fitr
 10th day of Dhu al Hijjah
Eid Al Adha 
15th day of the 1st month in the lunar year in the Chinese calendar
Lantern Festival
14th of the Hebrew month of Adar
Purim 
the day before Ash Wednesday
Shrove Tuesday 
3rd Monday of January
Martin Luther King, Jr. Day 
 third Monday of February
Washington's Birthday 
 Second Sunday of May in many nations
Mother's Day 
Third Sunday of June in the U.S., United Kingdom and others
Father's Day 
first, second or third Saturday in June
Queen's Official Birthday 
 First Monday of the month of September
Labor Day (US)
Third Thursday of November
Thanksgiving (United States) 
1st Tuesday in November
Melbourne Cup Day 
third Thursday in November, November 15
World Philosophy Day