Wednesday, November 27, 2013

Expo 2020 Winner : Dubai

Finally the much awaited result of Expo 2020 came out. And the winner is Dubai.


Winner:Dubai. - Connecting minds Creating the future

Finalists
As Dubai, Izmir, Sao Paulo and Ekateringburg competed to host World Expo 2020.

Voting result:
Dubai 


First round result:

Brazil Sao polo: 7.98%
Russia  Ekateringburg  23.93%
Turkey Izmir 20.25%
Dubai 47.24%

Second result:

Russia  Ekateringburg  24.85%
Turkey Izmir 21.82%
Dubai 52.71%

Third Round:

Russia - 
Dubai  -  
Voting process:
  • The final voting process for World Expo 2020 held at the BIE General Assembly in Paris.
  • Each candidate city given the final presentation for 20 minutes.
  • Dubai presented at 10.30 am Paris time (1.30 pm UAE time).
  • Voting for the host country began at 2.00 pm Paris time (5.00 pm UAE time) in a closed room. 
  • There was three rounds of voting before BIE members decide upon a winner.
  • After each round of voting, the candidate city with the least amount of votes will be eliminated. In first round Saopolo eliminated.
  • In second round Izmir eliminated
  • In third round Ekateringburg eliminated
  • Finally BIE announced the name of the Expo 2020 winner Dubai at 5.30 pm Paris time (8.30 pm UAE time).
few Images:

First round results

Second round results
Reference sites:
http://www.expo2020dubai.ae/
http://www.emirates247.com/expo-2020
Share your thoughts

Thursday, November 21, 2013

E-dirham card advantageous

E-Dirham Card

The E-Dirham Card can be used to make payments for a range of things including Emirates ID cards, visa renewals, court cases and even movie tickets.

The first-generation "e-dirhams" were prepaid cards that could only be used to pay for government services at specific ministries.

 "e-Dirham G2"

The G2 prepaid cards are Visa co-branded, which means they can be used to pay for government services as well as many other things.
The cards also come in blue, red and gold options that offer different benefits, and customers do not need to have bank accounts to buy the cards. 

Customers do not need to fill in registration forms for e-dirhams if they only want to deposit up to Dh250 on the cards.They then receive Blue Al Haslah or Red Al Haslah cards. However, customers who want to deposit up to Dh20,000 on their e-dirham cards need to register on the e-Dirham G2 website,

  • Now, owners of the e-Dirham G2 cards can top up the cards using any NBAD deposit machines. 
  • They can also draw cash using any Visa-compatible ATMs around the world.

Problems cardholders had with the first-generation e-dirhams.


  • Customer couldn't top up the card; the card didn't have an expiry date.
  • If we had a transaction that was Dh90 (US$24.50) and you had Dh100 on the card, you'd have Dh10 on the card that you couldn't really withdraw, because there was no way to withdraw the cash," he said.
Share your thoughts

Wednesday, November 20, 2013

Convert date to mysql date format

Following example will help you to convert date in the 01/11/2013 format to mysql accepted date format.

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TesC {
public static void main(String args[]){

String start_dt = "20-11-2013";
DateFormat formatter = new SimpleDateFormat("dd-MM-yyyy");
Date date=null;
try {
date = (Date)formatter.parse(start_dt);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
SimpleDateFormat newFormat = new SimpleDateFormat("yyyy-MM-dd");
String finalString = newFormat.format(date);
System.out.println(finalString);
}
}
Output is 2013-11-20
Share your thoughts

Declare BigDecimal value

The following example demonstrates adding of two BigDecimal number.

We are declaring the BigDecimal value first and then adding two BigDecimal values.

package xtrack.web;

import java.math.BigDecimal;

public class TesC {
public static void main(String args[]){
BigDecimal test = new BigDecimal(5);
test=test.add(new BigDecimal(45));
System.out.println(test);
}
}

Prints :50
Share your thoughts

Hibernate native SQL query with GROUP BY Clause

See the example of Hibernate native SQL query with GROUP BY Clause, Also this query contains the logic to retrieve the data in a date range in mysql

Query query = this.sessionFactory.getCurrentSession().createSQLQuery(
"SELECT expenseHead, sum(expense) FROM mb.expense where date<=':date2' and date>= ':date1' group by expenseHead;")
.setParameter("date2", date2)
.setParameter("date1", date1);
List result = query.list();
return result;


Share your thoughts

How to get current date and current month in Java

We can get the current date from the Calendar class as given below.
DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
Calendar cal = Calendar.getInstance();
System.out.println(dateFormat.format(cal.getTime()));
This will print 20/11/2013

And if you want month name from the date follow the below given code
ystem.out.println(new SimpleDateFormat("MMMM").format(cal.getTime()));
Prints November

Full code given below;
public class TesC {
public static void main(String args[]){
String today = (new Date()).toString();
System.out.println(today);
DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
Calendar cal = Calendar.getInstance();
System.out.println(dateFormat.format(cal.getTime()));
System.out.println(new SimpleDateFormat("MMMM").format(cal.getTime()));

}
}
output
Wed Nov 20 13:42:33 GST 2013
20/11/2013
November
Share your thoughts

Wednesday, November 13, 2013

Expo 2020 Theme announced.


Expo 2020 : Dubai.
Dubai is the candidate city.

Theme announced.

Share your thoughts

Get a decent accommodation in Dubai


Written on 13/Nov/2013: 

Rental property guide:


Recently I was looking to find a one bedroom house to shift from my studio house in International city. So finding suitable and your dream house is not as easy as we think. I realized that. 

The current situation in Dubai is getting a rocket hike in the rental properties will not be affordable to normal employees like me. Also rumors are spreading that if Dubai will the elected city for Expo 2020 rent will increase further to 20%!.

Currently if you categorized based on cost, the following category will help you to plan
High Costly : JBR, Discovery Gardens, Al khail road, Al Barsha, Tecom, Greens...
Medium Costly: Al Qusais, Al Nahda, Air port Free zone, Deira etc.
Cheap : International city, Motor city, Sports city, Sharjah area which is adjacent to Dubai...

Search house online

The immediate option available is online search for the suitable houses in online websites like dubizzle. These websites contain the advertisement listed by landlords and agents. When you find the suitable house you can have a look by calling the agent or landlord who listed the ad. You have to see the house then only take it. Dont take by seeing only photos.

By calling prominent builders.

We can find the dream house from the builders like al wasl, nakheel, Dubai properties etc. by visiting their website directly. Because these houses are not being listed in the online property search you need to make the call to these proprieties offices and find out the one. If the houses available you can book the house by visiting their premises. Following are the few builders and websites you can contact for the houses.


Get the cheapest house through UAE government.

You can get amazingly cheap houses if you are lucky, There are awqaf building in Al Khail Road and other few places in Dubai. You will get one bed room near about 25,000AED/Yr and 2 Brd room house for 40,000AED/year. Contact details of the awqaf given below. Normally houses won't available and if any vacant who is calling first they will get it. You can try your luck !

AWQAF - http://www.amaf.gov.ae/
fone 04280 8888

Villa Sharing

Expatriates also opting for cheap accommodation like Villa sharing where a group of people take the villa and share among them selves. This will be very economical but as Dubai mandated the rule for Ejari attestation for the propertise for the new visa villa residents is a worrying now to get the new visa.

Share your thoughts