Friday, November 26, 2010

Thursday, November 25, 2010

Hanging Out: The Spectacular Kund Malir Beach

With out any doubt, one of the most beautiful beaches of Pakistan. Thank you All Mighty Allah !

These pictures are from a tour we did on 19th March 2010.Kund Malir Beach - Click to open slideshow in a new window

Click on the image to open slideshow in a new window.

NICL Building (Karachi) on Fire !

Monday, November 15, 2010

Eid ul Azha 2010 – Sacrificial Goat

Livestock Market : Sohrab Goth
Place of Origin : Sangarh
Teeth : Two
Type : Khassi
Price : PKR 9,300

Sacrificial Goat 002 Sacrificial Goat 003 Sacrificial Goat 004

Wednesday, November 10, 2010

Eid ul Azha 2010 – Cattle Markets of Super Highway and Qasba/Manghopir

On a fine morning of 9th November 2010, me, Ikramullah Khan and Kashif Rasheed went to survey the cattle market located at Super Highway, Karachi. Some people say that its the largest livestock market in Asia but I am unable to find any reliable references so far. The market is no doubt a huge one, in fact it looks more like a tent city, very much organized, more than I thought and with shops offering all kind of necessary daily use items ranging from grocery to vegetables, fruits, cooked meals, breakfast, cold and hot drinks, etc. There’s a separate section of VIP tents with extra ordinary livestock where each distinct animal have a designated area with its name (like billo, rani, raja, mahtaab, mahrukh, etc) and a billboard containing all necessary information about it like its lineage, weight, height, place of origin, age, etc.

There are some tips for those who want to struck good deals: go early in the morning, as early as possible, like we went after fajir prayers and were able to negotiate a couple of good deals in the early hours. As Sun starts to rise above, market picks up the momentum and the prices started to plunge upwards. Don’t know why it happens but this is what we experienced, may be they offer good deals to start off their selling activity as sooner as possible. Secondly, survey market quickly because you’ll have to cover a lot of ground. We lost a deal we made early in the morning just because when we came back after surveying the market, the stock was sold to other customer. We could’ve saved it by giving the token amount of PKR 1k or 2k but we also don’t want to tie up ourselves or loose that token amount for nothing… we prefer to suffer :)

A head cap, sun glasses and a mask are a must, if you want to do the shopping peacefully. The wind was creating a lot of problem blowing dust and feed particles all around and some times making it difficult for you to view and breathe. Masks are available in the market as well. Hand gloves might also help for extra cautious ones.

We heard some rumors that fewer sellers have came to Karachi this season, because last season they suffer loss when they had to take back unsold animals with themselves. However there’s also a practice of the sellers that they didn’t bring all animals along with themselves at once, when they sold the first batch they bring another batch from interior.

The prices sellers were demanding were too high, probably they afford to wait for a jack pot at this point in time, but good sense will prevail once the time ran short. For a mediocre calf of two teeth weighing around 90 – 120 kgs they demand from PKR 40k – 55k. You’ll have to negotiate “heavily” to bring them down to PKR 30k – 40k. Animals from Punjab have higher tag price as appose to the Sindh ones.

After surveying the Super Highway market till 3:00 pm we left for the Qasba market, in fact there wasn’t any cattle/market in Qasba area, but an area close to that on Manghopir road. That was not a “market” as such but a congregation of 100 or more animals of 4 – 5 vendors in an open plot. We went their via a reference and were able to made a good deal. Details are as follows:

One male and one female calves
Teeth: Two
Weight: 90 – 100 kgs
Place of Origin: Bahawalpur, Punjab
Price: PKR 31k for each
Transport cost: 1,800 - Qasba > Up Morre (first drop) > Johar Morr (second drop)

In pictures: Femal Calf.
2010-11-09 Eid ul Azha Sacrificial Cow 056 2010-11-09 Eid ul Azha Sacrificial Cow 054 2010-11-09 Eid ul Azha Sacrificial Cow 055    

I hope my post will help you guys in planning your purchase for Eid ul Azha 2010.

Wednesday, August 4, 2010

Pakistanis affected by flood need your help

Donate Maymar Trust, a charity organization working under the guidance of Ulema e Karam, for Pakistanis affected by recent floods.

maymar trust

Monday, July 26, 2010

Dr. Farhat Hashmi and Al Huda

  1. Mufti Taqi Usmani, Darul Ifta, Darul Uloom Korangi, Karachi:
     Part 4  Part 3 Part 2 Part 1
  2. Mufti Muhammad Abdullah Hashmi, Darul Ifta, Jamia Binoria, Karachi:
    Part 2 Part 1
  3. Mufti Muhammad, Darul Ifta wal Irshad, Nazimabad, Karachi:
    Full
  4. Darul Ifta, Jamia Farooqia, Shah Faisal Colony #4, Karachi:
    Part 4 Part 3 Part 2 Part 1
    Part 8 Part 7 Part 6 Part 5
    Part 12 Part 11 Part 10 Part 9
    Part 16 Part 15 Part 14 Part 13
          Part 17

Friday, April 23, 2010

Kamiyab Naujawan Kaun?

Darsequran.com_25April_KNK
Date: 25 April 2010

Time: 3:30pm
Topic: Kamyab Naujawan Kon ???
Scholar: Maulana Adnan Kakakhel

Website: http://www.darsequran.com/
Email: events@darsequran.com
Cellular: 0322-2709191

Wednesday, March 3, 2010

Hanging Out: Trip to Makran Coastal Highway, Chandragup, Kund Malir, Hingol, Ormara, Gwadar and Jewani


Participants:

Aamir Ansari Faisal Ahmed Siddiqui Humair Ahmed
Ikramullah Khan Kamran Khan Kashif Rasheed
Rizwan Ahmed Syed Rafey Hussain S M Humayun

Schedule:

  • Saturday, 27 February, 2010
  • 05:45 – Departure from Karachi
  • 06:30 – 06:45 – Fajir prayers near Hub Chowki [Slideshow - Video]
  • 07:45 – 08:30 - Breakfast at Winder [Slideshow - Map]
  • 09:55 – 11:05 – Chandragup and Jabl-ul-Ghurab [SlideshowVideo - Info - Map]
  • 11:40 – 12:00 – Tea at Hingol River Bridge [SlideshowVideo - Info - Map]
  • 12:20 – 13:45 – Swimming at Kund Malir [SlideshowVideo1Video2 - Info - Map]
  • Lunch on Makran Coastal Highway, Buzi Pass, Princes of Hope, Sphinx [SlideshowVideo - Info - Map]
  • 15:45 – 16:00 – Zohar prayers at Ormara [SlideshowVideo - Info - Map]
  • Asir prayers & Tea break near Pasni [Slideshow]
  • Maghrib prayers on the go.
  • 21:30 – Gwadar Tourist Motel Check In [SlideshowInfo - Map]
  • Sunday, 28 February, 2010
  • 00:15 – 00:45 – Dinner at Gwadar Tourist Motel
  • 06:00 – Fajir prayers at Gwadar Tourist Motel [Slideshow]
  • 07:15 – 07:45 - Breakfast at Gwadar Tourist Motel [Slideshow - Video]
  • 08:15 – Gwadar Tourist Motel Check Out [Slideshow - Video]
  • 09:50 – 11:00 – Stop at Jewani Museum and Sea Front [SlideshowVideo - Info - Map]
  • 12:00 – 13:00 – Stop back at Koh e Batil and Zaver PC Gwadar [SlideshowVideo1Video2 - Info - Map]
  • 13:15 – 14:30 – Lunch and Zohar prayers in Gwadar West Bay [Slideshow - Map]
  • 17:15 – 17:45 – Asir prayers at Ormara [Slideshow - Video]
  • 19:45 – 20:30 – Maghrib prayers and Tea at Hingol River Bridge [Slideshow]
  • 23:30 – Karachi

Transportation:

  • Available transportation deals:
    • Mr. Muhammad Khan (Nagan Chowrangi)
      Cell#: 0300-3651148
      25 Seater Coaster – Rs. 18,000 + Diesel + Oil
      14 Seater Hiace – Rs. 13,000 + Diesel + Oil
    • Mr Nadeem (Liaquat Abad)
      Cell#: 0300-2206604
      25 Seater Coaster (AC) – Rs. 22,000 + Diesel
      14 Seater Hiace (AC) – Rs. 12,000 + Diesel
    • Khaled (Jauher Morre)
      Cell#: 0301-2219272
      28 Seater Coaster – Rs. 15,000 + Diesel + Oil
      14 Seater Hiace – Rs. 10,000 + Diesel + Oil
  • We prefer last deal with Khaled bhai for two reasons:
    • We travelled with him a couple of times before on other destinations
    • His was the cheapest deal among rest of the others
  • Details:
    • Toyota Hiace Low Roof
    • Diesel Used – 170 liters
    • Diesel prices per liter:
      • Karachi – Rs. 71.86
      • Between Ormara and Gwadar – Rs. 65.00
      • Gwadar – Rs. 60.00
      • Ormara – Rs. 61.50
    • Total Fuel Cost + Oil – Rs. 13,420
    • Driver Labour & Toyota Hiace rent – Rs. 10,000
    • Total Transportation Cost – Rs. 23,420

Accommodation:

  • Available and Up to date accommodation deals:
    • Zaver PC Hotel, Koh e Batil, Gwadar.
      Phone: (0864) 4212223, (0864) 4212257
      Booking Phone Karachi: (021) 5680111
      Single Bed (24 hrs): Rs. 7,500
      Double Bed (24 hrs): Rs. 8,500
      Extra Mattress (24 hrs): Rs. 1,000
    • Gwadar Tourist Motel, Governor Rest House Road, Gwadar.
      Phone: (0864) 210899, (0864) 211400, 0300-3939059, 0333-2023158, 0300-2857883, 0346-8334664, 0321-8624550, 0334-3325783
      Apart from the deals mentioned in the link, we were able to struck the following deal:
      Double Bed (24 hrs): Rs. 667
      Extra Mattress (24 hrs): Rs. 50 (However, do note that extra mattresses were not “mattresses” but thin comforters made from cotton).
      We prefer this motel because it is located along the sea shore (west bay) unlike others (Sadaf Hotel, Royal Resort Hotel, Islamabad Hotel). There might be other hotels on the east bay along sea shore, but because we were running out of time, so we picked the very first hotel which met our minimum criteria, instead of visiting all hotels and then deciding which one to choose.
      So, our accommodation cost was:
      3 Double Bed Rooms: Rs. 2,000
      5 Extra Mattresses: Rs. 250
      Tea, Salad, Mineral Water (provided by hotel): Rs. 385
      Total accommodation cost: Rs. 2,635
  • Out of date information of other hotels are available in Hotel & Restaurant Directory of Pakistan 2006 – 2007 (prices & deals might have changed now, call to get up to date information)

Food:

  • We hire the services of a professional BBQ chef arranged by:
    Khapa Restaurant, Shop# 13, Shalimar Shopping Center, Gulistan e Jauher, Block 17, Karachi.
    Contact Person: Iftikhar
    Phone#: (021) 34246322, 0300-2145242
    Chef Name: Babar Ali
    Cell#: 0332-3273597
    Service Charges: Rs. 2,000 for 2 days
    All of the dishes prepared by Babar were exceptionally delicious.
  • Food expenditure:
    • Coal, Natural Gas and other cooking equipment rent and transportation cost
    • Plastic plates, glasses, spoons, tissues
    • Chicken, spices, vegetables, oil, ghee, flour
    • Snacks (Bread, Chicken Spread, Chips, Biscuits, Nimko, Kino)
    • Mineral water, cold drinks, lassi, tea
    • Breakfast
  • Total food cost: Rs. 11,003

Total Trip Cost:

  • Transportation Cost: Rs. 23,420
  • Accommodation Cost: Rs. 2,635
  • Food Cost: Rs. 11,003
  • Total Cost: Rs. 37,058
  • Per Head Cost: Rs. 4,000 approx.

Tips:

  • Always set a single gathering point for departure instead of picking people from different locations, because that’ll save a lot of time. If you are planning to leave early in the morning than it is recommended to gather a night before at a central place, it is far better than waiting for 5 – 10 minutes for every other participant and loosing an hour or more just because of that.
  • Make sure every participant have necessary toiletries with himself.
  • If you are planning to visit Mud Volcanoes than make sure you do not travel on trails created due to vehicular movement. Travel a little on the left or right side, because those sides would be more stiff. While the trails are some what soft and could make your vehicle stop. If it happens, do not accelerate too much, the right way out is to dig out that soft soil around your vehicle’s tires and then accelerate smoothly.
  • It is recommended to have additional fuel in bottle or can with you for emergency purposes. Keep an eye on your fuel indicator and refuel often.
  • A water cooler is recommended to keep ample amount of cold water. Or, if you can arrange an ice box than its better because it will keep both water and drinks cold.
  • First aid kit is a must
  • GPS is a must for such tours, if you do not have any local guide with you. It is advisable to switch off all those unnecessary applications on your mobile which run in the background because they consume your mobile battery.
  • Make sure you have cell phone, camera and cam chargers with you. Mobile car charger is a must.
  • Telenor (voice/data) works exceptionally well. Though there were long patches where no signals of any operator were available.
  • Good to have a laptop with you, if you have several mobile camera, digital camera and cams with you. You can sync all images and videos to your laptop at one central location and later on can upload, share or burn CDs for distribution among tour participants.
  • Keep a trash bag with you while traveling and dump all your trash in it to be disposed off safely as soon as you reach one of the destinations.
  • Keep an eye on your driver and make sure he drive according to the rules. Because if he don’t, than God forbid, that could endanger your and others life.
  • It would be good if you have at least 3 days for such a trip, we were running out of time and could’ve enjoyed more if we had an extra day to spend.

Participant’s Comments:

Saturday, February 20, 2010

Sunday, February 14, 2010

Can you extract the fractional part of a decimal number using primitives only in Java?

Can you extract the fractional part of a decimal number using Java's primitives only (No String, Math or any other library functions)?

Well the algorithm is a straight forward one:

double decimalNumber = 1234.56;
long wholePart = (long) decimalNumber;
double remainingDecimalNumber = decimalNumber - wholePart;
long fractionPart = 0;
long fractionDigit;
while(remainingDecimalNumber != 0)
{
    remainingDecimalNumber *= 10;
    fractionDigit = (long) remainingDecimalNumber;
    remainingDecimalNumber -= fractionDigit;
    fractionPart = fractionPart * 10 + fractionDigit;
}

But, the output will not be what you would expect it to be. The reason is (1.1 – 1) is not equals to (0.1), its (0.10000000000000009) instead. While I understand the importance of precision, is there a simple and easy way to get (0.1) out of (1-1 – 1)? again not using String, Math or other library functions.

UPDATE: It turns out that you can not work on arbitrary-precise floating points using primitives alone. For that you’ll have to either (in recommended order)

1. Use BigDecimal provided by Java, or
2. Use existing methods in other popular third party libraries, or
3. Create your own round/precision method