tag:blogger.com,1999:blog-66296331147649857992023-04-13T08:27:47.084-07:00rizzz86Never underestimate the power of a Keyboard !!rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.comBlogger80125tag:blogger.com,1999:blog-6629633114764985799.post-84429601672534200482019-08-29T01:13:00.000-07:002019-08-29T17:45:18.098-07:00Pakistan Post - My Story<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-vm49i58EEIQ/XWeE_U0ZcyI/AAAAAAAABIk/Hp5acayhjbomrdoV9z8zl3XT3hLDjzxiwCLcBGAs/s1600/pakistan%2Bpost%2Blogo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="368" data-original-width="1446" height="81" src="https://1.bp.blogspot.com/-vm49i58EEIQ/XWeE_U0ZcyI/AAAAAAAABIk/Hp5acayhjbomrdoV9z8zl3XT3hLDjzxiwCLcBGAs/s320/pakistan%2Bpost%2Blogo.jpg" width="320" /></a></div>
<br />
Last week I visited <a href="http://www.pakpost.gov.pk/" target="_blank">"Pakistan Post"</a> after a long time. I used to go there 8-10 years back but only to submit utility bills. In my recent visit I went there to post a package from Karachi to Lahore. I was there for just 10 minutes and in that short time I become excited and concerned at the same time. My package is safely delivered to the destination location and I am happy for that but at the same time I feels a bit uneasy about the whole process.<br />
<br />
<b><span style="color: red;">- Still old:</span></b><br />
When I entered the "Pakistan Post" branch near Disco Bakery Gulshan-e-Iqbal, the whole setup refreshes the old memories and it's the same what I saw 10 years back. Old styled broken chairs and tables, not clean, some chairs are not broken but have "pan peek" on them etc. Anyway the good thing was that I didn't had to wait there as I was the only customer at that time.<br />
<br />
<b><span style="color: lime;">+ The old guy:</span></b><br />
The person who welcomes me is an old guy and through out the process he remains so polite. No artificial dialogs, straight forward and too the point.<br />
<br />
<b><span style="color: red;">-</span><span style="color: lime;">+</span> <span style="color: red;">Clothed</span> <span style="color: lime;">Bag:</span></b><br />
The old guy starts putting my package items in a clothed bag. This is where I start thinking of why he is doing this. I thought he just want to weight the package by putting all the items in a clothed bag. But he started to adjust the items properly in the bag as this is how they will send the package. So I ask him about this and he said yes your package will be delivered in this bag. Since it was a clothed bag I got a bit worried as if the items will remain safe or not. The good thing about the clothed bag is the flexibility. The items that I want to deliver are not fitting in the basic carton box used by TCS. Even in a bigger TCS box they have to force fit the items, that's why I did not go with the TCS.<br />
<br />
<b><span style="color: red;">- Sewing:</span></b><br />
The most interesting part of the whole process. The guy had to sew the clothed bag mouth with the needle and thread with his hands. There is no doubt that the old guy is so perfect in sewing but my concern is why he was doing it. Even if they have no other option than to sew the bag they can have a sewing machine to do it for them.<br />
<br />
<b><span style="color: red;">- Postal address:</span></b><br />
They ask me to write a destination address and contact details on that clothed bag using a marker. I am not sure if they entered this address in there system or not but it was so weird for me.<br />
<br />
<b><span style="color: lime;">+ Cost:</span></b><br />
For the same package what was costing around 2000 PKR through TCS the Pakistan Post charged only 300 PKR. That's a serious difference.<br />
<br />
<span style="color: lime;"><b>+ Technology:</b></span><br />
After the whole process is done they give me a payment receipt with a sticker on it having some serial number written on the sticker. The old guy told me that I can track my package from that serial number using there online portal and also using there <a href="https://play.google.com/store/apps/details?id=com.a360technologies.adeelnasir.emtts&hl=en" target="_blank">mobile app</a>. I was not expecting that but yes they have it and it was also showing the correct package details on there portal.<br />
<br />
<b><span style="color: lime;">+ Promise:</span></b><br />
They promise to deliver my parcel in 2 days and they fulfilled it. The package reached the destination safely in 2 days.<br />
<br />
I really appreciate the services provided by Pakistan Post and will be using there services in the future. My suggestion to Pakistan post is to improve there premises and the process of initial customer interaction. I bet people will only use Pakistan Post if they feel comfortable going to there premises. Best of luck to them.<br />
<br />
rizzz86<br />
<br /></div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0SB 11, Block 3 Gulshan-e-Iqbal, Karachi, Karachi City, Sindh, Pakistan24.9272394566891 67.094780930271924.9253714566891 67.0911169302719 24.929107456689103 67.0984449302719tag:blogger.com,1999:blog-6629633114764985799.post-27868883626472740332019-05-10T14:26:00.000-07:002019-07-05T14:35:51.581-07:00Me in Bahrain - Aldar Islands Resort<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<a href="https://1.bp.blogspot.com/-EhOLSjS6dqg/XNXNhIXmWEI/AAAAAAAABEk/1RKPZerFUxUew552FKyGXwG2yRce0zwxQCLcBGAs/s1600/flag-bahrain-XL%2B-%2BCopy.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="100" data-original-width="1500" height="42" src="https://1.bp.blogspot.com/-EhOLSjS6dqg/XNXNhIXmWEI/AAAAAAAABEk/1RKPZerFUxUew552FKyGXwG2yRce0zwxQCLcBGAs/s640/flag-bahrain-XL%2B-%2BCopy.jpg" width="640" /></a>My last post on Bahrain is sometime back in year 2013 nearly 6 years back. A lot of Bahrain has been explored since then and it's been a joyful experience. In coming days I will be posting some more stuff and information about Bahrain and make them part of my blog.<br />
<br />
<a href="http://rizzz86.blogspot.com/2014/09/bahrain-buildings-and-architecture.html" target="_blank">In my previous post on Bahrain</a> I have shared some renown buildings and architectures in Bahrain. Those includes Bab al Bahrain, Financial Harbor Building, World Trade Center Building, Bahrain Circuit structure, Corniches, Bahrain Museum and some prominent Mosques. I will be sharing the detail information on some of those places also in my coming posts.<br />
<br />
In this post I am starting with one of the Bahrain's natural beach resort named <b><a href="https://www.aldarislands.com/" target="_blank">Aldar Islands Resort</a></b>. Aldar island is 12 km away from the city of Sitra island (as shown in the map picture). A daily shuttle/boat is operated between city and the Aldar island for pick and drop off.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-vgfWBrVk81A/XNXY7dfASWI/AAAAAAAABF8/oV8TV9SNjwcvroO9XVmUT7Kvmyuk_DhWgCLcBGAs/s1600/aldar%2Bmap.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="618" data-original-width="890" height="277" src="https://1.bp.blogspot.com/-vgfWBrVk81A/XNXY7dfASWI/AAAAAAAABF8/oV8TV9SNjwcvroO9XVmUT7Kvmyuk_DhWgCLcBGAs/s400/aldar%2Bmap.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
If you are planning to visit the Aldar island, you have to first visit the island's office located in Sitra. The timings are from 9 AM to 5 PM. In the office they will do the initial formalities and then direct you towards the shuttle service. One thing that is very important is to <b><span style="color: red;">bring the original CPR/Passport with you</span> </b>(I have a bad experience as I did not take the CPR for one of my family members and I have to go back to home again come back). Following are some of the pics of the office area:</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-d42b38xYeT0/XNXQr3cxHyI/AAAAAAAABEw/0C5HcDpEu-4S0Anh0tPX3wOvL0wgCztGgCLcBGAs/s1600/20170514_133239_HDR.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-UCm--H8judo/XNXcXFtsXsI/AAAAAAAABGI/N27mKmGcf_8SE7hC1Hd64vrpAJ2wPckTACLcBGAs/s1600/aldar%2Boffice.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://1.bp.blogspot.com/-UCm--H8judo/XNXcXFtsXsI/AAAAAAAABGI/N27mKmGcf_8SE7hC1Hd64vrpAJ2wPckTACLcBGAs/s1600/aldar%2Boffice.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="561" data-original-width="1000" height="111" src="https://1.bp.blogspot.com/-UCm--H8judo/XNXcXFtsXsI/AAAAAAAABGI/N27mKmGcf_8SE7hC1Hd64vrpAJ2wPckTACLcBGAs/s200/aldar%2Boffice.jpg" width="200" /></a><a href="https://3.bp.blogspot.com/-d42b38xYeT0/XNXQr3cxHyI/AAAAAAAABEw/0C5HcDpEu-4S0Anh0tPX3wOvL0wgCztGgCLcBGAs/s1600/20170514_133239_HDR.jpg" imageanchor="1" style="clear: right; display: inline !important; float: right; margin-bottom: 1em; margin-left: 1em; text-align: center;"></a><a href="https://3.bp.blogspot.com/-5PN1fkHKMi0/XNXRBWC_XXI/AAAAAAAABFg/XoLlak1Hhb0joGVguo8NxZX5ZEdDR-4wgCLcBGAs/s1600/IMG-20170514-WA0159.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: right;"><img border="0" data-original-height="1280" data-original-width="960" height="200" src="https://3.bp.blogspot.com/-5PN1fkHKMi0/XNXRBWC_XXI/AAAAAAAABFg/XoLlak1Hhb0joGVguo8NxZX5ZEdDR-4wgCLcBGAs/s200/IMG-20170514-WA0159.jpg" width="150" /></a><img border="0" data-original-height="1200" data-original-width="1600" height="150" src="https://3.bp.blogspot.com/-d42b38xYeT0/XNXQr3cxHyI/AAAAAAAABEw/0C5HcDpEu-4S0Anh0tPX3wOvL0wgCztGgCLcBGAs/s200/20170514_133239_HDR.jpg" width="200" /></div>
<div style="text-align: left;">
</div>
<br /></div>
<br />
<div style="text-align: left;">
</div>
<br />
<a href="https://4.bp.blogspot.com/-HO3XKHlWepM/XNXQuxEKvEI/AAAAAAAABE0/DgsUTKEBDHoLebuW04sN8zLL9Wd6CDmxgCLcBGAs/s1600/20170514_133302_HDR.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;"></a><a href="https://4.bp.blogspot.com/-1O_wz9dOec8/XNXQwsvkQQI/AAAAAAAABE4/T_N68oScV3AaxpTiLCU__RqdRWb2Q1FiQCLcBGAs/s1600/20170514_133317_HDR.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="150" src="https://4.bp.blogspot.com/-1O_wz9dOec8/XNXQwsvkQQI/AAAAAAAABE4/T_N68oScV3AaxpTiLCU__RqdRWb2Q1FiQCLcBGAs/s200/20170514_133317_HDR.jpg" width="200" /></a><a href="https://4.bp.blogspot.com/-HO3XKHlWepM/XNXQuxEKvEI/AAAAAAAABE0/DgsUTKEBDHoLebuW04sN8zLL9Wd6CDmxgCLcBGAs/s1600/20170514_133302_HDR.jpg" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: right;"><img border="0" data-original-height="1200" data-original-width="1600" height="150" src="https://4.bp.blogspot.com/-HO3XKHlWepM/XNXQuxEKvEI/AAAAAAAABE0/DgsUTKEBDHoLebuW04sN8zLL9Wd6CDmxgCLcBGAs/s200/20170514_133302_HDR.jpg" width="200" /></a><a href="https://4.bp.blogspot.com/-HO3XKHlWepM/XNXQuxEKvEI/AAAAAAAABE0/DgsUTKEBDHoLebuW04sN8zLL9Wd6CDmxgCLcBGAs/s1600/20170514_133302_HDR.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
<br /></div>
Once you are done with the official formalities you will be boarded to the boat that will take you to the Aldar island. <span style="color: blue;"><b>The boats are fast</b> </span>and that ride on the boat itself is a fun. Check the video.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dwsy2GPYj5OeFOuUsk78_r7iH9SjZnFBgVw_VA0EeP_n68Nz-AC7hdql8Gi3BIE9ALXelDcgAQFKFbPwIXeEQ' class='b-hbp-video b-uploaded' frameborder='0'></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
On the resort first thing to do is to <b><span style="color: orange;">book a hut</span></b>. You can get a normal or VIP hut based on your requirement. Normal hut costs 10 BD for a day and private hut costs 25 BD for a day. They also have arrangement for big tents that can fit around 80 peoples. Chalets can also be booked for 4 to 22 family members.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-bR_al9A5ahI/XNXQ6wzRJJI/AAAAAAAABFE/Ua4vwNJDN2c6kif66j6qkLirR--izn1DwCLcBGAs/s1600/IMG-20170514-WA0104.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="960" data-original-width="1280" height="240" src="https://1.bp.blogspot.com/-bR_al9A5ahI/XNXQ6wzRJJI/AAAAAAAABFE/Ua4vwNJDN2c6kif66j6qkLirR--izn1DwCLcBGAs/s320/IMG-20170514-WA0104.jpg" width="320" /></a><a href="https://4.bp.blogspot.com/-0asGUj1i58g/XNXRAaznJsI/AAAAAAAABFY/Uow7ReUaiPYVv9KWD1BqFMP8zhUorzMhQCLcBGAs/s1600/20170514_152905_HDR.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="1200" height="320" src="https://4.bp.blogspot.com/-0asGUj1i58g/XNXRAaznJsI/AAAAAAAABFY/Uow7ReUaiPYVv9KWD1BqFMP8zhUorzMhQCLcBGAs/s320/20170514_152905_HDR.jpg" width="240" /></a></div>
<a href="https://4.bp.blogspot.com/-0asGUj1i58g/XNXRAaznJsI/AAAAAAAABFY/Uow7ReUaiPYVv9KWD1BqFMP8zhUorzMhQCLcBGAs/s1600/20170514_152905_HDR.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><br /></a>
<br />
<div>
<br /></div>
<div>
<br /></div>
<div>
My recommendation is to <b><span style="color: lime;">bring your food with you</span></b>. Not much options are available to try on the resort.</div>
<div>
<br /></div>
The resort is well maintained, the water is clean and clear and the overall environment is to chill and ready to enjoy the visit. <span style="color: magenta;"><b>Different activities are available on the resort</b> </span>to make your trip more adventurous which includes Jet ski, boat trips to other small islands, dolphin watch, kids zone etc.<br />
<a href="https://4.bp.blogspot.com/-0asGUj1i58g/XNXRAaznJsI/AAAAAAAABFY/Uow7ReUaiPYVv9KWD1BqFMP8zhUorzMhQCLcBGAs/s1600/20170514_152905_HDR.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: left;"><br /></a>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-bZhPkByE-6I/XNXRA0Yn4UI/AAAAAAAABFc/EXk-PKrJkqs071_RV-u17xO1yShEhLIFQCLcBGAs/s1600/20170514_152844_HDR.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://1.bp.blogspot.com/-SirzAwtWhJc/XNXQ8wvg8PI/AAAAAAAABFI/_oZzXenpBNcBAmZb71qhefV8XpwhTLKlACLcBGAs/s1600/IMG-20170514-WA0105.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="960" data-original-width="1280" height="240" src="https://1.bp.blogspot.com/-SirzAwtWhJc/XNXQ8wvg8PI/AAAAAAAABFI/_oZzXenpBNcBAmZb71qhefV8XpwhTLKlACLcBGAs/s320/IMG-20170514-WA0105.jpg" width="320" /></a><a href="https://1.bp.blogspot.com/-bZhPkByE-6I/XNXRA0Yn4UI/AAAAAAAABFc/EXk-PKrJkqs071_RV-u17xO1yShEhLIFQCLcBGAs/s1600/20170514_152844_HDR.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" data-original-height="1600" data-original-width="1200" height="320" src="https://1.bp.blogspot.com/-bZhPkByE-6I/XNXRA0Yn4UI/AAAAAAAABFc/EXk-PKrJkqs071_RV-u17xO1yShEhLIFQCLcBGAs/s320/20170514_152844_HDR.jpg" width="240" /></a><a href="https://3.bp.blogspot.com/-waA4mlgxuIU/XNXQ-iRzwAI/AAAAAAAABFM/p_Re0tg1NXMTPkTgcysm38fGu1wdERfNgCLcBGAs/s1600/IMG-20170514-WA0106.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;"><img border="0" data-original-height="960" data-original-width="1280" height="240" src="https://3.bp.blogspot.com/-waA4mlgxuIU/XNXQ-iRzwAI/AAAAAAAABFM/p_Re0tg1NXMTPkTgcysm38fGu1wdERfNgCLcBGAs/s320/IMG-20170514-WA0106.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-LPaWXElecIQ/XNXQ4sw9GfI/AAAAAAAABFA/XEAP_xmQ_tE5FoHYtBlrTHatwwIU4SjnQCLcBGAs/s1600/IMG-20170514-WA0006.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;"><img border="0" data-original-height="960" data-original-width="1280" height="150" src="https://2.bp.blogspot.com/-LPaWXElecIQ/XNXQ4sw9GfI/AAAAAAAABFA/XEAP_xmQ_tE5FoHYtBlrTHatwwIU4SjnQCLcBGAs/s200/IMG-20170514-WA0006.jpg" width="200" /></a></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
<a href="https://4.bp.blogspot.com/-GEhfHvILP8o/XNXRAdFUscI/AAAAAAAABFU/_uYUM9VrQL8Mb4yJEpA7aUwAV9V1DwQUACLcBGAs/s1600/IMG-20170514-WA0111.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" data-original-height="1280" data-original-width="960" height="200" src="https://4.bp.blogspot.com/-GEhfHvILP8o/XNXRAdFUscI/AAAAAAAABFU/_uYUM9VrQL8Mb4yJEpA7aUwAV9V1DwQUACLcBGAs/s200/IMG-20170514-WA0111.jpg" width="150" /></a></div>
<a href="https://4.bp.blogspot.com/-oTWqJzJSKpw/XNXQ16TBfpI/AAAAAAAABE8/Tfgbo0iVEBMigYbJT3DKXwp97lxBa4COACLcBGAs/s1600/IMG-20170514-WA0002.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="960" data-original-width="1280" height="150" src="https://4.bp.blogspot.com/-oTWqJzJSKpw/XNXQ16TBfpI/AAAAAAAABE8/Tfgbo0iVEBMigYbJT3DKXwp97lxBa4COACLcBGAs/s200/IMG-20170514-WA0002.jpg" width="200" /></a><br />
<br />
<br />
<br />
<br />
<br />
If you are living in Bahrain or visiting Bahrain and did not yet to this resort, I would say to go and experience it. It's not going to be a tiring visit. You can just visit there to relax, chill and enjoy your time. That's it for this blog. For more details of Aldar resort you can visit there website and you can also call them in case of any queries (there contact details are also on there website).<br />
<br />
rizzz86<br />
<br />
<br /></div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-88807326109884388142016-06-17T15:05:00.001-07:002016-06-17T15:05:16.271-07:00Basic steps while dealing with application slowness due to database<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-kM6ghGH30XA/V2RzXfZm75I/AAAAAAAABAM/-hUdQdnj6nkXJ2Jg0ZeAk_jjXM9d58FBACLcB/s1600/performance.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="194" src="https://2.bp.blogspot.com/-kM6ghGH30XA/V2RzXfZm75I/AAAAAAAABAM/-hUdQdnj6nkXJ2Jg0ZeAk_jjXM9d58FBACLcB/s200/performance.png" width="200" /></a></div>
In this blog I will share my experience of improving web application performance. Application slowness is often faced in large scale applications. Slowness can happen due to multiple factors and one of the major factor is because of bad database design.<br />
<br />
Recently I got a chance to work on an application optimization task. The whole activity includes many areas that are focused and optimized. The main performance improvements are though after database optimizations are done. I am listing down some of the major activities that are performed and found very helpful in finding performance improvement areas.<br />
<br />
<b>Is it really a database problem?</b><br />
<br />
Get web server traces and find if there is performance issue in the application itself. Before saying that DB is the only issue just double check by getting and comparing the web server traces and SQL-Profiler traces. Confirm that most of the time taken by request is through database and not something from application itself.<br />
<br />
<b>Execute and check SQL-Profilers</b><br />
<br />
Execute the SQL-Profiler and check the queries/stored-procedures that are taking most of time. Notice both duration and read counts in causing application slowness.<br />
<br />
<b>Check proper indexes</b><br />
<br />
From the profiler traces one can easily identify the queries or stored-procedures that are taking time. Once those are identified, first thing you have to look is to check your indexes on tables used in queries or stored-procedures. Add appropriate indexes on required columns.<br />
<br />
<b>Execute query execution plans</b><br />
<br />
Before I was not very friendly with this feature of Microsoft SQL Server. The <i>Actual Execution Plan</i> of a particular query or SP is very helpful in finding out the specific area that is taking time. The execution plan also suggests the indexes that can fasten up the execution. The suggested indexes can be applied on tables and the impact can be re-checked by executing query/SP again.<br />
<br />
<b>Use JOIN instead of IN statements on large data</b><br />
<br />
Other than indexes do go through the statements either those can be overwritten more efficiently. For example instead of using IN clause use JOINS if the data is too much for IN clause.<br />
<br />
<b>Check for LOCKS</b><br />
<br />
Specifically taking about MSSQL, it has different pre-defined SP calls that can hep in identifying locking information. For example <b>sp_who2 </b>and <b>sp_lock</b> SPs can be called to get locking information. Statements can be locked due to synchronous Update/Read hits are made on a same table in database. One of the statements can be blocked/locked until other statement releases the table lock.<br />
<br />
<b>Use WITH (NOLOCK) where ever required</b><br />
<br />
Do not use WITH(NOLOCK) everywhere. Use it where ever required. I am not going to mention the details of using/not-using WITH(NOLOCK) but I will suggest to read some helpful articles related to this.<br />
<br />
<b>Check database statistics</b><br />
<br />
Database statistics can be find out from <b>sys.stats</b> system table. <b>sp_updatestats</b> command can be used to update database statistics. Index rebuilding can also happen statistics update. These activities are not mandatory but if for some reason your database indexes goes bad you have to update/rebuild them. Bad database indexes cannot only return false results but can also make the query/SPs very slow to execute.<br />
<br />
<div>
rizzz86</div>
</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-55793706586012796822015-12-31T08:37:00.001-08:002015-12-31T08:37:51.218-08:00Karachi, the upgraded one !<div dir="ltr" style="text-align: left;" trbidi="on">
I last visited Karachi just a year ago and I feel dramatic positive change in Karachi in my current visit. Following are my observations:<br />
<br />
<ul style="text-align: left;">
<li>The scary mode in Karachi public is gone. They looks more energetic and motivated.</li>
</ul>
<ul style="text-align: left;">
<li>Business is back and people are keen to invest in different sectors.</li>
</ul>
<ul style="text-align: left;">
<li>Too many food places. People are investing in food centers most commons are Pizza outlets, BBQ's and Fast foods.</li>
</ul>
<ul style="text-align: left;">
<li>Technology acceptance in small business which includes general stores, food chains, clinics etc.</li>
</ul>
<ul style="text-align: left;">
<li>Chingchis are gone. Makes traffic a bit better</li>
</ul>
<div>
Hope things will become much better in coming time and the true potential of Karachi will rise.</div>
<div>
<br /></div>
<div>
rizzz86</div>
</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-84751353267446085202014-09-26T01:00:00.001-07:002014-09-26T01:00:55.688-07:00Android Library Project and its usage<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<span style="background-color: white; font-family: inherit;"><i><span style="color: #666666;"><span style="line-height: 19px;">"Android Library projects contain shareable Android source code and resources that you can reference in Android projects. This is useful when you have common code that you want to reuse. Library projects cannot be installed onto a device, however, they are pulled into the </span><code style="line-height: 14px;">.apk</code><span style="line-height: 19px;"> file at build time."</span></span></i> </span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
When creating a new Android project you can mark a project as ‘Library’ project. This will create a project that can be shared/used in multiple projects. You cannot run/install the library project stand alone instead you have to reuse it in Android project.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
How to mark a project as library:</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-V5w0uuE81Ck/VCUaC5QD6cI/AAAAAAAAA8w/ZJknIbA-iq4/s1600/libraryproject3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-V5w0uuE81Ck/VCUaC5QD6cI/AAAAAAAAA8w/ZJknIbA-iq4/s1600/libraryproject3.png" height="400" width="640" /></a></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
Create a new Android project that will use the library
project. Library
project can be added as reference as follows:</div>
<div class="MsoNormal" style="text-align: left;">
</div>
<ul style="text-align: left;">
<li><b>Android
Project > Properties > Android (left option) > Library (bottom right
pane) > Add</b></li>
</ul>
<br />
<div class="MsoNormal">
<o:p> </o:p><o:p> </o:p><a href="http://3.bp.blogspot.com/-2OdiG5l4BEk/VCUXkRSDHYI/AAAAAAAAA8c/sIfnLqg5WiU/s1600/libraryproject1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-2OdiG5l4BEk/VCUXkRSDHYI/AAAAAAAAA8c/sIfnLqg5WiU/s1600/libraryproject1.png" height="400" width="640" /></a></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<!--[endif]--></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b> Click
‘Apply’ > ‘OK’</b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
</div>
<ul style="text-align: left;">
<li>To use the
library class activities in android project, 'import' the library references
where ever you are using library files.</li>
</ul>
<ul style="text-align: left;">
<li>To launch
the library activity you should have that activity listed in your Android
project 'AndroidManifest.xml'.</li>
</ul>
<ul style="text-align: left;">
<li>Don’t make files (Layouts, Classes, XML’s) with the same
name in main and library projects. This can cause problems at run time. What I
have noticed is that if you have same name layouts in both projects the library
layout got overridden and parent layout will be used.</li>
</ul>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
rizzz86</div>
</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-25033883553531450052014-09-13T01:07:00.000-07:002014-09-13T04:01:15.315-07:00Bahrain - Buildings and Architecture<div dir="ltr" style="text-align: left;" trbidi="on">
Bahrain is one of the very fast growing countries around the Arab world and is considered as a major tourist centers in Middle East. Some major development has been made in last few years to make country more tourist attractive. Though Bahrain is a very small country but it still has a potential to generate a good revenue and maintains good standard of living. Lets look at some of the renowned places in Bahrain where I have been so far:<br />
<br />
<a href="http://1.bp.blogspot.com/-4ErfqhcMrXs/U9WBJWtzOJI/AAAAAAAAA1E/9LSlpm_wcAs/s1600/1+bab+ul+bahrain.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/-4ErfqhcMrXs/U9WBJWtzOJI/AAAAAAAAA1E/9LSlpm_wcAs/s1600/1+bab+ul+bahrain.jpg" height="240" width="320" /></a>Bab Al Bahrain (Gate of Bahrain) is a historical gate of Bahrain which now a days is used as an entrance to Manama market. Previously it was with the edge of sea and fishermen's are used it to starting point of fishing and trading.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: left;">
<a href="http://3.bp.blogspot.com/-IkoSjUxpffQ/U9WBTtDbvuI/AAAAAAAAA1Q/ylGu1oojfUY/s1600/2.2+financial+harbour.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a><a href="http://3.bp.blogspot.com/-IkoSjUxpffQ/U9WBTtDbvuI/AAAAAAAAA1Q/ylGu1oojfUY/s1600/2.2+financial+harbour.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a>This is Bahrain's Financial Harbor building, the tallest and modern building on the main Bahrain highway.<a href="http://4.bp.blogspot.com/-TpSopvXc4JY/VBQjya_miMI/AAAAAAAAA74/kanGNsdJRR4/s1600/bfh_pics.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://4.bp.blogspot.com/-TpSopvXc4JY/VBQjya_miMI/AAAAAAAAA74/kanGNsdJRR4/s1600/bfh_pics.png" height="296" width="640" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
Mosques in Bahrain are very attractive and some of them are kept as historic. Al Fateh Grand Mosque is the biggest on island.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-r1JWf9hEK-w/U9WCmPPAbJI/AAAAAAAAA3I/6aQujK2YLss/s1600/3.9+masjid.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-r1JWf9hEK-w/U9WCmPPAbJI/AAAAAAAAA3I/6aQujK2YLss/s1600/3.9+masjid.jpg" height="480" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-dfuCqBTh10Q/VBQh3oIvZbI/AAAAAAAAA7k/po2Frkc4VsI/s1600/mosques_pics.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-dfuCqBTh10Q/VBQh3oIvZbI/AAAAAAAAA7k/po2Frkc4VsI/s1600/mosques_pics.png" height="640" width="584" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-r1JWf9hEK-w/U9WCmPPAbJI/AAAAAAAAA3I/6aQujK2YLss/s1600/3.9+masjid.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><br /></a></div>
<br />
<br />
<br />
This is Bahrain World Trade Center the most renowned structure in Bahrain. It is close to main (King Faisal) highway. This unique structure is a tower complex connected with three bridges having wind tribunes on it. These tribunes helps in power generation that is consumed in building. <a href="http://www.youtube.com/watch?v=dtPNNV3m7sI" target="_blank">Making of this structure is also covered in National Geographic as one of the mega structures</a>.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-I79jolYbLfo/U9WCz87HkcI/AAAAAAAAA3Q/rJYs7KQfvvA/s1600/4+wtc.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-I79jolYbLfo/U9WCz87HkcI/AAAAAAAAA3Q/rJYs7KQfvvA/s1600/4+wtc.jpg" height="320" width="240" /></a><a href="http://4.bp.blogspot.com/-T_h6we2GKJk/U9WC5OuUwaI/AAAAAAAAA3c/Wm7gu2largc/s1600/4.1+wtc.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-T_h6we2GKJk/U9WC5OuUwaI/AAAAAAAAA3c/Wm7gu2largc/s1600/4.1+wtc.jpg" height="320" width="240" /></a></div>
<br />
<div style="text-align: left;">
Bahrain Circuit (Area for World Formula One Championship):<span style="font-family: inherit;"> <span style="background-color: white; line-height: 16.1200008392334px;">The Bahrain International Circuit is a motorsport venue opened in 2004 and used for drag racing, GP2 and the annual Bahrain Grand Prix. The 2004 Grand Prix was the first held in the Middle East.</span></span></div>
<br />
<a href="http://4.bp.blogspot.com/-24oJUvJYULQ/U9WDrbcxVjI/AAAAAAAAA4o/smTBb_jK-EA/s1600/6.16+others.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://4.bp.blogspot.com/-24oJUvJYULQ/U9WDrbcxVjI/AAAAAAAAA4o/smTBb_jK-EA/s1600/6.16+others.jpg" height="640" width="480" /></a><br />
<br />
Skyline (Manama and Al Muharraq):<br />
<br />
<a href="http://1.bp.blogspot.com/-FVEJNYaYCCo/U9WEeIaXExI/AAAAAAAAA6E/6E9krH7kRqc/s1600/7.2+overview.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="http://1.bp.blogspot.com/-ImUH666yrfE/U9WEjVhzPzI/AAAAAAAAA6Q/0wEJP9f6jIk/s1600/7.3+overview.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: center;"><img border="0" src="http://1.bp.blogspot.com/-ImUH666yrfE/U9WEjVhzPzI/AAAAAAAAA6Q/0wEJP9f6jIk/s1600/7.3+overview.jpg" height="480" width="640" /></a><img border="0" src="http://1.bp.blogspot.com/-FVEJNYaYCCo/U9WEeIaXExI/AAAAAAAAA6E/6E9krH7kRqc/s1600/7.2+overview.jpg" height="240" width="320" /><a href="http://2.bp.blogspot.com/-03XcLEusXLw/U9WEqKq4cDI/AAAAAAAAA6g/npjIyKpFOME/s1600/7.4+overview.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://2.bp.blogspot.com/-03XcLEusXLw/U9WEqKq4cDI/AAAAAAAAA6g/npjIyKpFOME/s1600/7.4+overview.jpg" height="150" width="200" /></a><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-RrtwmcAWR74/U9WEk6FEzlI/AAAAAAAAA6Y/RvY6Gt5yZwg/s1600/7.5+overview.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-RrtwmcAWR74/U9WEk6FEzlI/AAAAAAAAA6Y/RvY6Gt5yZwg/s1600/7.5+overview.jpg" height="240" width="320" /></a></div>
<br />
<br />
Bahrain Museum and other visiting points:<br />
<br />
<a href="http://1.bp.blogspot.com/-oKKVPBj23Tc/U9WDjz_YoBI/AAAAAAAAA4g/Dw2wzQbc4ks/s1600/6.15+others.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://1.bp.blogspot.com/-oKKVPBj23Tc/U9WDjz_YoBI/AAAAAAAAA4g/Dw2wzQbc4ks/s1600/6.15+others.jpg" height="300" width="400" /></a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ISwDjNzJNtc/U9WDbOODTMI/AAAAAAAAA4Y/q3kuNyvBSgM/s1600/6.14+others.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/-ISwDjNzJNtc/U9WDbOODTMI/AAAAAAAAA4Y/q3kuNyvBSgM/s1600/6.14+others.jpg" height="320" width="240" /></a><a href="http://1.bp.blogspot.com/-662_R_UPc5c/U9WDX0qNXJI/AAAAAAAAA4M/vhGHHx-9M9c/s1600/6.13+others.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-662_R_UPc5c/U9WDX0qNXJI/AAAAAAAAA4M/vhGHHx-9M9c/s1600/6.13+others.jpg" height="240" width="320" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
Amwaj Lagoon:</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-QXZkynJ0u08/U9WDX3_qTAI/AAAAAAAAA4I/MPhKt15h8ZU/s1600/6.12+others.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-QXZkynJ0u08/U9WDX3_qTAI/AAAAAAAAA4I/MPhKt15h8ZU/s1600/6.12+others.jpg" height="480" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="text-align: left;"><br /></span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="text-align: left;">Random Structures:</span></div>
<br />
<a href="http://4.bp.blogspot.com/-Fc7QJ6Hqa6w/VBQh4216jhI/AAAAAAAAA7s/LlhAKBM0IWM/s1600/buildings1_pics.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://4.bp.blogspot.com/-Fc7QJ6Hqa6w/VBQh4216jhI/AAAAAAAAA7s/LlhAKBM0IWM/s1600/buildings1_pics.png" height="640" width="544" /></a><br />
<br />
<a href="http://2.bp.blogspot.com/-zUxVTkPKY5k/VBQh1ymOb1I/AAAAAAAAA7c/OLh0i5kNoV8/s1600/buildings2_pics.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://2.bp.blogspot.com/-zUxVTkPKY5k/VBQh1ymOb1I/AAAAAAAAA7c/OLh0i5kNoV8/s1600/buildings2_pics.png" height="640" width="558" /></a><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Lots of Malls are in Bahrain such as City Center, Seef Mall, Geant, Dana Mall, Bahrain Mall etc.<br />
<br />
Some good parks, water parks are there for family outings.<br />
<br />
More will be added as soon as I will be visiting there.<br />
<br />
rizzz86</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-16422391302909718162014-05-30T07:38:00.000-07:002014-05-30T07:38:36.534-07:00Manipulating PDF document using iText library<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="http://1.bp.blogspot.com/--9yOogvin6Q/U4iUYXQ2weI/AAAAAAAAA0k/RrUeM46McVY/s1600/itext.gif" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/--9yOogvin6Q/U4iUYXQ2weI/AAAAAAAAA0k/RrUeM46McVY/s1600/itext.gif" /></a>There are several libraries that can be used to manipulate a PDF document like <a href="http://pdfbox.apache.org/" target="_blank">PDFBox</a>, <a href="http://itextpdf.com/" target="_blank">iText</a>, <a href="http://sourceforge.net/projects/clown/" target="_blank">PDFClows</a> etc. I also have to do some PDF manipulation stuff and I decided to go with iText. I choose iText because it supports low level PDF manipulation, its community is very strong, lots of helping hands are available and it is also open source and available in both Java and C#.<br />
<br />
iText allows you to create a PDF doument, add content in it, update content and save it. I have tried following basic features so far and found it really interesting:<br />
<br />
<ul style="text-align: left;">
<li>With low level support one can add a text chunk, paragraph, phrase, link, chapter, section, image, set text color and other attributes into the document. </li>
<li>You can also create a table/grid inside a PDF document and play with each cell of the table.</li>
<li>It is also easy to read an existing PDF document. You can retrieve existing information related to document and pages.</li>
<li>Using iText one can also fill up an empty PDF template.</li>
<li>It allows to set javascript in a PDF document to make a document interactive. Document can be also be navigated to a particular page. Creating bookmarks, annotations and triggering javascirpt from a button can also be done using iText.</li>
<li>Document can also be password encrypted to allow/disallow certain actions that can be done the document.</li>
<li>Whole PDF document can also be signed using a certificate to make the document secure.</li>
</ul>
<div>
There is also a book on how to play with PDFs using <a href="http://itextpdf.com/book/" target="_blank">iText in Action</a>. <a href="http://stackoverflow.com/users/1622493/bruno-lowagie" target="_blank">He is the author of iText in Action</a> and is very supportive on stackoverflow. I also have some questions regarding iText on stackoverflow <a href="http://stackoverflow.com/users/867475/rizzz86?tab=questions&sort=newest" target="_blank">on this link</a>.</div>
<div>
<br /></div>
<div>
rizzz86</div>
</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com1tag:blogger.com,1999:blog-6629633114764985799.post-81879517981226227332013-09-20T04:10:00.001-07:002015-08-22T05:12:59.240-07:00A Step Forward - Working abroad now !<div dir="ltr" style="text-align: left;" trbidi="on">
After working for more than six years in different software companies of Pakistan, now its time to move forward and accept the opportunity to work abroad. This is my first experience to work overseas and live without family. I hope I will settle in the new environment soon.<br />
<br />
I moved to Bahrain in mid August 2013 and joined a software company <a href="http://www.01systems.com/" target="_blank">01 Systems WLL (ZOS)</a>.<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-loxc9HBUNAw/Ujwb784zyFI/AAAAAAAAAzA/UO40VWCZflM/s1600/36447_1121786604.gif" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://3.bp.blogspot.com/-loxc9HBUNAw/Ujwb784zyFI/AAAAAAAAAzA/UO40VWCZflM/s1600/36447_1121786604.gif" /></a><span style="color: #666666; font-family: inherit;"><i>"Since its establishment in 1986, 01 Systems has become a pioneer in implementing complex, customized software solutions coupled with comprehensive professional services like Consultancy and Systems Integration to successfully optimize core business processes."</i></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">The company is established in the same year when I was born. With over 25 years of services in software industry the company is well established and has solid software products in market. It is a good chance for me to work on these large scale products and add my experience to them as well.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">I hope everything will go smoothly and this will become a worthy experience in my career.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">rizzz86</span></div>
</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com2tag:blogger.com,1999:blog-6629633114764985799.post-32879032114218846272013-08-31T03:33:00.000-07:002013-08-31T03:34:43.018-07:00Quran with Urdu Ta-laf-fuz and Urdu Translation<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="http://minus.com/lXYFCepaKXRea" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img border="0" height="200" src="http://4.bp.blogspot.com/-rj5wk6cJ1MM/UiHCkhwBF7I/AAAAAAAAAyA/3sjwazs7ub0/s200/DSC00997.JPG" width="150" /></a><a href="http://www.lcci.com.pk/member_web/quran_asan/" target="_blank">Quran Asan Tehreek</a> has come up with some great ideas to make the Quran-e-Hakim reading/understanding easily and correctly. I got very impressed with one of there ideas of Urdu Tal-laf-fuz of Quran-e-Hakim. This will make it quite easy for those who can read Urdu but not Arabic.<br />
<br />
<span style="font-family: inherit;"><span style="background-color: white;">Quran Asan Tehrik</span><span style="background-color: white;"> has, compiled translation of Quran-e-Hakim</span><span lang="en-us" style="background-color: white;"> in two colors, t</span><span style="background-color: white;">he Arabic word written in a colour bears it’s meaning in the same colour</span><span lang="en-us" style="background-color: white;">, t</span><span style="background-color: white;">he text and the translation go side-by-side together on a page, making it extremely easy to ascertain which Arabic word means what. This method provides the reader an easy understanding of the Arabic as a language and also builds up potential of the reader to comprehend Quran-e-Hakim directly without the aid of any exterior help.</span></span><br />
<span style="font-family: inherit;"><span style="background-color: white;"><br /></span></span>
<span style="font-family: inherit;"><span style="background-color: white;">Look at the sample page:</span></span><br />
<span style="font-family: inherit;"><span style="background-color: white;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<img border="0" height="640" src="http://2.bp.blogspot.com/-RAkbBaSxnFY/UiHDhbN8sMI/AAAAAAAAAyI/_A_Q1X-oFnw/s640/DSC01001.JPG" width="480" /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
rizzz86</div>
<span style="font-family: inherit;"><span style="background-color: white;"><br /></span></span></div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-31080030990224075432013-08-30T14:42:00.000-07:002015-12-22T12:16:31.704-08:00My experience @ RIKSOF<div dir="ltr" style="text-align: left;" trbidi="on">
In this post I am going to mention my experience at <i><b>'RIKSOF Private Limited'</b></i> where I have worked for around 2 years as a <i><b>'Senior Java Developer'</b></i>.<br />
<br />
Before starting I would like to mention one thing i.e. all the points are solely based on my own working experience at RIKSOF, :)<br />
<br />
<b>Learning Curve:</b> You can learn a lot of new technologies here. Most of the developers working here have hands-on experience on at least two different technologies. You can get a chance to work on multiple platforms (Java, .Net, iOS, Android) and use different operating systems (Ubuntu, Mac, Windows). Due to 'project based' nature of company you will also be learning different domains based on what type of project you will get.<br />
<br />
<b>Staff:</b> From CEO to Peon you can find a really nice and cooperative staff in RIKSOF. All of them are very helpful and always ready to support you whenever needed.<br />
<br />
<b>Picnic and Parties:</b> This is something very common in RIKSOF. There is a quarterly Picnic/Dinner from company (location decided by employees). Apart from that the staff members are very keen to arrange Lunch, Dinner, Refreshments etc whenever possible. A separate well maintained planner is also available for this called 'Mangaloo Planner'.<br />
<br />
<b>Physical Environment:</b> Talk about the building first that will definitely attract any one who sees it first time. The interior designs and building architecture is very impressive as compared to other office buildings in overall Karachi. The office from inside is also nicely designed. It has been designed by the interior designers that gives the creative look of office. The sitting area is also good (though not have the cubicles) with nice view outside the building.<br />
<br />
<b>Two day weekend:</b> This is something that is quite common now but I liked it because in my previous company I have to work on alternative Saturdays.<br />
<br />
<b>Timings:</b> There is no restriction on timings in RIKSOF. You just have to complete your task and leave. Some people come at 7 am and leave at 4 pm. My timing is mostly from 11 am to 8 pm.<br />
<br />
<b>Yearly Bonus:</b> At the end of each year you will get the yearly bonus equals your salary. This is the actual saving that you can make the whole year.<br />
<br />
<b>Fuel Card:</b> PSO card is provided by company which has limit up to 3000 rupees. The limit is ok for those who travel on bikes but very low for them who are on cars. But I will count it as positive because something is better than nothing :)<br />
<br />
<b>Salary on Time:</b> You will get your salary on time<br />
<b><br /></b><b>Some Good Memories:</b><br />
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://s1100.photobucket.com/user/rizzz86/library/RIKSOF?sort=3&page=0" target="_blank"><img border="0" height="121" src="http://3.bp.blogspot.com/-GC3mCve2tOw/Ujwrm24pjOI/AAAAAAAAAz0/U1R0InbGv_8/s640/riksof-goodtime.PNG" width="640" /></a></div>
<b><br /></b>
<b>Distance:</b> Its too far from my home. I have to drive 55 km daily to cover home-office-home.<br />
<br />
<b>Technology Switching:</b> In software houses mostly a person hired on technology has to work on the same technology or may be switch to a different flavor of it (for example Java EE switching to Android development). But in RIKSOF it can be possible that your designation is Java developer but you work on iOS application and the same case is with me. Most of times it doesn't feels good that you have to work on technologies that you haven't work on previously and you have to meet all deadlines as well.<br />
<br />
<b>Very tight deadlines:</b> Project deadlines are very tight and its quite tough to meet the timelines and complete project on time. In span of two years I can see only two projects that completes on time else all are delayed.<br />
<br />
<b>No Work-Life Balance:</b> To meet tight deadlines it becomes quite difficult to balance the work with your daily life. Most of the developers in RIKSOF has to do late sitting.<br />
<br />
<b>Project Base Development:</b> You will feel sometimes that your job is not safe when you see that company doesn't have a project on which you can work on. Same situation comes to me as well when there are no Java or Android projects in company and I have only one option to switch to iOS projects.<br />
<br />
<b>Timings:</b> I have also mentioned this in GOOD part of RIKSOF but there is also bad in it. To balance work with daily life I have tried several times to come early in office and leave early from office but have failed in not more than two days. If I reach office at 9 am and still have to leave at 9 pm due to work then I think there should be some strictness on timing i.e. to come earlier than 10 am or not to stay at office more than 8 pm.<br />
<br />
<br />
rizzz86</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-25035694912554431062013-07-06T07:52:00.000-07:002014-04-23T09:43:47.425-07:00Night stay @ Shangrila Farmhouse with RIKSOF<div dir="ltr" style="text-align: left;" trbidi="on">
As always, this is another very memorable hang out with <a href="http://www.riksof.com/" target="_blank">RIKSOF</a> and this time it is at <a href="http://www.shangrilafarm.com.pk/" target="_blank">Shangrila Farmhouse</a>. It is not too far from city and its only a 20 minute drive from 4K last bus stop <a href="https://maps.google.com/maps?saddr=4K+Last+Bus+Stop,+Karachi,+Pakistan&daddr=Unknown+road&hl=en&ll=25.027128,67.049046&spn=0.094726,0.154324&sll=25.051255,67.014585&sspn=0.005919,0.009645&geocode=FWCQfQEdo1T_Ayl7QTevFkGzPjHeYdTlYsTvSw%3BFS9DfgEdhJD-Aw&t=h&mra=mift&mrsp=1&sz=17&z=13" target="_blank">(see map)</a>.<br />
<br />
<a href="http://s1100.photobucket.com/user/rizzz86/library/Shangrila%20Farmhouse?sort=6&page=1" target="_blank">Click to see photos.</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://s1100.photobucket.com/user/rizzz86/library/RIKSOF/Shangrila%20Farmhouse?page=1" target="_blank"><img border="0" src="http://2.bp.blogspot.com/-bq5RcWGT57U/UdgsNJ61igI/AAAAAAAAAxY/XVaB2GHhVyY/s400/009.JPG" height="250" width="400" /></a></div>
<br />
Facilities Includes:<br />
<br />
<ul style="text-align: left;">
<li>Bedrooms : 3 superior rooms with A/C .Each of the rooms has a luxury bathroom, TV with satellite and is individually designed to include everything you could wish for.</li>
<li>Sitting area : (based on Shahi Takhat)</li>
<li>Indoor Games : (Snooker, Hand football ,Dabuu, Enough space to play cricket matches as well)</li>
<li>AAbshar : (Beautiful Natural look of AAbshar)</li>
<li>Bar B Q And full Goat Roast area</li>
<li>Children Arena : (different types of rides for children)</li>
<li>Swimming Pool : (ideal pool size 25 x 50 with filter plant)</li>
<li>Lush Green Garden : (Beautiful Garden with quantity of different flowers and decorative items)</li>
<li>Standby generator, Security Guard, Mosquito free Environment</li>
</ul>
<br />
<br />
rizzz86<br />
<br /></div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com1tag:blogger.com,1999:blog-6629633114764985799.post-85046709559397969802013-04-21T04:50:00.000-07:002014-07-03T07:09:57.876-07:00Visit to Kirthar National Park<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
Kirthar National Park was founded in 1974 and stretches over 3087 km², being the second largest National Park of Pakistan. Last week we got a chance to visit this park as an official tour. The trip was pleasant and leaves some good memories that are captured in images. <a href="http://s1100.photobucket.com/user/rizzz86/library/RIKSOF/Kirthar%20National%20Park?sort=6&page=1" target="_blank">Click on this link or image to find pics</a>.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://s1100.photobucket.com/user/rizzz86/library/RIKSOF/Kirthar%20National%20Park?sort=6&page=1" target="_blank"><img border="0" src="http://4.bp.blogspot.com/-u9rxBctIztY/UXPOzBuSQQI/AAAAAAAAAuk/kbMinXFSW0E/s400/DSC00759.JPG" height="300" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br /></div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-16649351374300763752012-12-25T07:52:00.000-08:002012-12-25T08:12:44.206-08:00Git cheat sheet<div dir="ltr" style="text-align: left;" trbidi="on">
I have used Git in almost all of my recent projects and really likes it. Just want to add a very handy cheat sheet on my blog. Here it is:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://min.us/lbTiAIQQwhx1D" target="_blank"><img border="0" height="494" src="http://2.bp.blogspot.com/-WhI-570TtZY/UNnI3Ci06NI/AAAAAAAAAts/Lc6U1EKGzik/s640/git-cheat-sheet-large.png" width="640" /></a></div>
<br /></div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-59948935130837446322012-12-03T10:57:00.000-08:002012-12-03T10:57:13.121-08:00Excellent Documentry on UFOs<div dir="ltr" style="text-align: left;" trbidi="on">
Yesterday I saw this link that contains excellent information about the UFOs.<br />
<br />
<a href="http://vimeo.com/15422590">http://vimeo.com/15422590</a><br />
<br />
rizzz86</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-13676227284447172532012-10-24T13:27:00.000-07:002013-04-19T13:37:26.484-07:00Karachi Cattle Market 2012<div dir="ltr" style="text-align: left;" trbidi="on">
Click on the above image to view the VIP part of cattle market (Cow Mandi) in Karachi.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://s1100.photobucket.com/user/rizzz86/slideshow/Cow%20Mandi%202012" target="_blank"><img border="0" height="300" src="http://3.bp.blogspot.com/-JY8tAg3wWJ8/UIhL99L6C2I/AAAAAAAAAtQ/8zB9CQyl8vU/s400/Photo1140.jpg" width="400" /></a></div>
<br />
rizzz86 </div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-25172768898867790102012-05-12T06:56:00.000-07:002012-05-12T06:56:01.298-07:00Installing DBDesigner 4 on Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
The only way I found to install DBDesigner 4 on Ubuntu is as follows:<br />
<ul style="text-align: left;">
<li><a href="http://www.fabforce.net/downloads.php" target="_blank">Download</a> the *.rpm file of DBDesigner.</li>
</ul>
<ul style="text-align: left;">
<li><a href="http://prdownloads.sourceforge.net/kylixlibs/kylixlibs3-borqt-3.0-2.tar.gz?download" target="_blank">Download</a> the library package and extract it using:</li>
</ul>
<blockquote class="tr_bq">
tar xzvf kylixlibs3-borqt-3.0-2.tar.gz</blockquote>
<ul style="text-align: left;">
<li>After extracting it do the following:</li>
</ul>
<blockquote class="tr_bq">
sudo cp kylixlibs3-borqt/libborqt-6.9.0-qt2.3.so /lib/libborqt-6.9-qt2.3.so</blockquote>
<br />
Now your DBDesigner will be working, the executable file DBDesigner4 can be found at /opt/DBDesigner.<br />
<br />
Found the solution on the following <a href="http://yacoding.blogspot.com/2006/07/howto-install-dbdesigner-4-on-ubuntu.html" target="_blank">link</a>. <br />
<br />
rizzz86</div>rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-29518197333252218552012-05-05T12:42:00.001-07:002012-05-05T12:42:51.204-07:00Installing Adobe Flash Plugin on Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
Installing Adobe Flash Plugin on latest versions of Ubuntu (11 +) is straight forward and can easily be done by directly <a href="http://www.liberiangeek.net/2011/03/install-adobe-flash-player-ubuntu-11-04-natty-narwhal/" target="_blank">search and install from Ubuntu Software Center</a>.<br />
<br />
The problem comes when you are using the old versions of Ubuntu. Yesterday I have to install Ubuntu 9.10 on my system and got the problem of installing flash player plugin. After some searching I found the solution that requires enabling of repositories. Step by step solution is as follows:<br />
<br />
<ul style="text-align: left;">
<li>Go to <b>"System > Administration > Software Sources"</b> from the menu.</li>
<li>Click <b>"Other Software"</b> tab and check the two options that represents the repositories. Selecting those repositories allows Ubuntu to download other softwares that includes adobe flash plugin as well.</li>
<li>Go to <b>"System > Administration > Synaptic Package Manager"</b> and search for 'adobe flash plugin'. It will give the package to install, you just need to select that package and click the 'Apply' button on the top.</li>
</ul>
<br />
Now you can run flash videos/games on your system.<br />
<br />
rizzz86</div>rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-53059497773866145962011-12-24T04:01:00.000-08:002013-04-19T13:42:59.885-07:00Dinner at Savor Restaurant<div dir="ltr" style="text-align: left;" trbidi="on">
The 'Food n Cruze' idea of Savor is a unique one and last week we have planned to Enjoy the Buffet in Savor with Cruise Ride. <a href="http://s1100.photobucket.com/user/rizzz86/slideshow/Savor%20Riksof" target="_blank">Click here to see the slideshow</a>.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://s1100.photobucket.com/user/rizzz86/slideshow/Savor%20Riksof" target="_blank"><img border="0" height="300" src="http://2.bp.blogspot.com/-35odIyFEDhs/TvW-Sz1JHzI/AAAAAAAAApU/lewcGhCOcps/s400/DSCN0994.JPG" width="400" /></a></div>
<br />
rizzz86</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-33664643704079096572011-10-30T06:46:00.000-07:002011-10-30T06:46:44.864-07:00Manually Install Erlang on Linux<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="color: #444444; text-align: center;">
Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance.</div>
<br />
Applications that are built on Erlang also required Erlang's runtime for execution. Last week I got a chance to work on a Message Broker 'RabbitMQ' (will discuss it in other post) which is built on Erlang. So to get RabbitMQ Server installed on my machine I have to setup Erlang first. This post contains the steps for installing RabbitMQ Server manually on Linux machine. Following are the steps:<br />
<br />
<a href="http://www.erlang.org/download.html">Get the Erlang package</a> that you need to install<br />
<ul style="text-align: left;">
<li>In my case I have <b>otp_src_R14B02.tar.gz</b></li>
</ul>
Unzip the package:<br />
<ul style="text-align: left;">
<li>tar xvzf otp_src_R14B02.tar.gz</li>
</ul>
Go to folder:<br />
<ul style="text-align: left;">
<li>cd otp_src_R14B02/</li>
</ul>
Following files may be required to install on your OS before running the configuration file:<br />
<br />
If it gives gcc compiler error then install gcc compiler with following command:<br />
<ul style="text-align: left;">
<li>sudo yum install gcc gcc-c++ autoconf automake</li>
<li>sudo yum install make</li>
<li>sudo yum install ncurses-devel</li>
</ul>
For Ubuntu following command will be used:<br />
<ul style="text-align: left;">
<li>sudo apt-get install build-essential</li>
<li>sudo apt-get install libncurses5 libncurses5-dev</li>
</ul>
Run cofigure File<br />
<ul style="text-align: left;">
<li>./configure</li>
</ul>
After running the configuration file, run the make command on same folder:<br />
<ul style="text-align: left;">
<li>make</li>
</ul>
And in the and execute following command:<br />
<ul style="text-align: left;">
<li>sudo make install</li>
</ul>
This will install Erlang on Linux and it can be tested using following command:<br />
<ul style="text-align: left;">
<li>erl</li>
</ul>
It will show following lines:<br />
<br />
<pre color="black" face="'Courier New',courier,monospace" size="8pt" style="background-color: #f4f4f4; border-style: none; direction: ltr; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 100%;">Erlang R14B02 (erts-5.8.3) [source] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.8.3 (abort with ^G)</pre>
<pre color="black" face="'Courier New',courier,monospace" size="8pt" style="background-color: #f4f4f4; border-style: none; direction: ltr; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 100%;">1></pre>
<br />
rizzz86<br />
</div>rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-24261764211064017192011-10-15T11:31:00.000-07:002011-10-15T11:49:33.381-07:00My Experience of Installing MongoDB on Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
In my last <a href="http://rizzz86.blogspot.com/2011/10/mongodb-namemongo-typedb.html">post</a> I have write some very basic and initial points related to MongoDB. That was my initial observation of what MongoDB is and what are its basic features.<br />
<br />
<a href="http://1.bp.blogspot.com/-bZNPzqyI8og/TpnVfhd7BGI/AAAAAAAAAo0/fZIErMNzkEQ/s1600/image1.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/-bZNPzqyI8og/TpnVfhd7BGI/AAAAAAAAAo0/fZIErMNzkEQ/s1600/image1.jpg" /></a>This article does not contains the detailed step by step tutorial of how to install MongoDB on Ubuntu. There are already lots of articles available on the installation of MongoDB on Ubuntu &Windows operating systems. In this post I am going to write my experience of Installing MongoDB on Ubuntu.<br />
<br />
There are two common ways of installing any kind of software on Ubuntu. One is by using the "Ubuntu Software Center" and other is to download the package and install it manually. Option one is commonly used by users as it is very simple and it automatically download and install the target software on Ubuntu. In the case of MongoDB both option can be used for installation.<br />
<br />
For testing purpose I have installed MongoDB using the Software Center (you can also use apt-get command that also download and install package from Software Center). Initially it works good by using it from terminal. I can able to start and stop MongoDB and execute different types of queries. The problem begins when I try to use MongoDB programmaticaly. I cannot able to connect with MongoDB using Java and Eclipse IDE even MongoDB is running and can be used from terminal. So, I have removed all the packages of MongoDB and install it manually. After that I am able to use it via terminal as well as programmatically.<br />
<br />
This seems to be something related to version issue as also mentioned on <a href="http://www.javahotchocolate.com/tutorials/mongodb.html">this link</a>. If someone knows what is the actual reason of this different behavior on different installation options do comment here. This is what I have experienced when installing and using MongoDB on Ubuntu.<br />
<br />
rizzz86</div>rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-43006212460325958742011-10-09T00:17:00.000-07:002011-10-09T00:17:43.986-07:00MongoDB: {name:"mongo", type:"DB"}<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font-family: Arial,Helvetica,sans-serif; text-align: left;">
<span style="font-size: small;"><m:smallfrac m:val="off">
<m:dispdef>
<m:lmargin m:val="0">
<m:rmargin m:val="0">
<m:defjc m:val="centerGroup">
<m:wrapindent m:val="1440">
<m:intlim m:val="subSup">
<m:narylim m:val="undOvr">
</m:narylim></m:intlim>
</m:wrapindent>
</m:defjc></m:rmargin></m:lmargin></m:dispdef></m:smallfrac></span></div>
<div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;">
<span style="font-size: small;"><a href="http://3.bp.blogspot.com/-Mcl2yY1Yv1A/TpCZ5xrnafI/AAAAAAAAAow/X2Mmp9ofjjY/s1600/logo-mongodb.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="82" src="http://3.bp.blogspot.com/-Mcl2yY1Yv1A/TpCZ5xrnafI/AAAAAAAAAow/X2Mmp9ofjjY/s200/logo-mongodb.png" width="200" /></a></span></div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;">“MongoDB” as the
name suggest, is a database that can be used to store data and apply other
operations on the data later on. It is not a relational database like
(MySQL, Oracle, MSSQL etc), but it provides all the basic operations that eases
developer’s life in playing with the stored content. The name is a bit funny
for me when I first heard it, but really it is built on some serious concept that
opens number of questions of something alternative of relational databases.</span><span style="color: grey; font-size: small;"><span style="color: black;"> The concept is of NoSql / non-relational database.</span></span><span style="font-size: small;"><i><span style="color: grey;"><br /></span></i></span></div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;"><b><br /></b></span></div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: center;">
<span style="font-size: small;"><b><i><span style="color: grey;">MongoDB (from "humongous")
is a scalable, high-performance, <span style="color: grey;">open source</span>, document-oriented
database. Written in C++</span></i></b></span></div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;"><br /></span></div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;">RDBMS has ruled the
database world alone for a long time and always remains the only option for
most of the software industry to go for it as their first option. Yes, lots of
questions are there to choose which RDBMS to use and how the data will be
structured within it. With some powerful concept of querying, maintain the
integrity, indexing of data etc within RDBMS how come MongoDB’s concept will
compete with it? What is the concept on which MongoDB is built? Is MongoDB
fully replaceable to RDBMS? Are there other databases built on the same
concept? Many more questions are there in this debate, so just have a look how
MongoDB is different from relational databases.</span></div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;"><br /></span></div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;">MongoDB store data in
documents. Yes, a document that have key-value pair. There is a predefined
structure of MongoDB that starts with Database -> Collections ->
Documents & -> Fields. So there is not any brainstorming sessions on how
to structure our data. Just answer <b><i><span style="color: grey;">“</span></i></b><b><i><span style="color: grey;">How many collections do we have, and what are they?</span></i><i><span style="color: grey;">
“</span></i>. </b></span></div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;"><br /></span></div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: left;">
<span style="font-size: small; line-height: 115%;">One
of the most important features of MongoDB is that it provided Indexing on data.
This feature makes it different from other No SQL databases. It also support to
query data from database. </span></div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: left;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: center;">
<span style="font-size: small;"><b><span style="line-height: 115%;"> </span><i><span style="color: grey; line-height: 115%;">If you're moving to
MongoDB from a relational database, you'll find that many SQL queries translate
easily to MongoDB's document-based query language.</span></i></b></span><span style="font-size: small; line-height: 115%;"> </span></div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: left;">
<span style="font-size: small;"><br /></span></div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: left;">
<span style="font-size: small; line-height: 115%;">Other important features include Replication, Auto-Sharding, Batch Processing
etc. Detail of each feature will be part of other posts as soon as I explore them and create some examples.</span></div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: left;">
<span style="font-size: small;"><br /></span><br />
<span style="font-size: small;">rizzz86</span><br />
<span style="font-size: small;"><br /></span></div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: left;">
<span style="font-size: small;"><br /></span></div>
<div style="font-family: Arial,Helvetica,sans-serif; text-align: left;">
<span style="font-size: small; line-height: 115%;"> </span></div>
</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-78623209486605508902011-10-05T11:54:00.000-07:002011-10-05T11:56:44.690-07:00JAVA: Date and Calendar<div dir="ltr" style="text-align: left;" trbidi="on">
This is not something new but something of very common use in most of the projects. In this post I am going to write some date, time and calendar functions that are commonly used as utility. From next time I will copy them from this post rather than code them again.<br />
<br />
To get a Date in any Format the SimpleDateFormat Class is used. Following snippet will return current date in provided format in SimpleDateFormat argument.<br />
<br />
<pre color="black" face="'Courier New',courier,monospace" size="8pt" style="background-color: #f4f4f4; border-style: none; direction: ltr; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 100%;">Date date = new Date();
DateFormat dateFormatter = new SimpleDateFormat("dd");
String formattedDate = dateFormatter.format(date);</pre>
<br />
<br />
Format "dd" is used to get the <b>date number</b> from date<br />
<br />
Format "yyyy" is used to get the <b>year number</b> from date<br />
<br />
Format "MM" is used to get the <b>month number</b> from date<br />
<br />
Format "MMMM" is used to get the <b>month name</b> from date<br />
<br />
This method will return the date of targeted format from source format.<br />
<br />
<pre color="black" face="'Courier New',courier,monospace" size="8pt" style="background-color: #f4f4f4; border-style: none; direction: ltr; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 100%;"> String dt = dateString; // Start date
SimpleDateFormat sdf = null;
try {
sdf = new SimpleDateFormat(sourceFormat);
Date date = sdf.parse(dt);
sdf = new SimpleDateFormat(targetFormat);
dt = sdf.format(date); // dt is now in the new date format
} catch (ParseException e) {
e.printStackTrace();
}
</pre>
<br />
<br />
To get Number of Days in a Month we will take help from Calendar Class here. Following method will be usd to get number of days in a month.<br />
<br />
<pre color="black" face="'Courier New',courier,monospace" size="8pt" style="background-color: #f4f4f4; border-style: none; direction: ltr; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 100%;">public static int getNumberOfDaysInMonth(int screenMonth){
Calendar calendar = Calendar.getInstance();
int year = Integer.valueOf(getYearNumber());
int month = screenMonth;
int date = 1;
calendar.set(year, month, date);
int days = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);
return days;
}</pre>
<br />
<br />
This method will return Month Name from month number. Calendar is used here as well.<br />
<br />
<pre color="black" face="'Courier New',courier,monospace" size="8pt" style="background-color: #f4f4f4; border-style: none; direction: ltr; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 100%;">public static String getMonthNameByMonthNumber(int currentMonthNumber) {
String dt;
Calendar c = Calendar.getInstance();
c.set(Calendar.MONTH, currentMonthNumber);
c.add(Calendar.MONTH, 0); // number of days to add
SimpleDateFormat sdf = new SimpleDateFormat("MMMM");
dt = sdf.format(c.getTime()); // dt is now the new date
return dt;
}</pre>
<br />
<br />
To get the First Day of month following method can be used.<br />
<br />
<pre color="black" face="'Courier New',courier,monospace" size="8pt" style="background-color: #f4f4f4; border-style: none; direction: ltr; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 100%;">public static String getFirstDayOfMonth(int month) {
Calendar c = Calendar.getInstance();
c.set(Calendar.MONTH, month);
c.set(Calendar.DATE, 1);
DateFormat f = new SimpleDateFormat("EEE");
return f.format(c.getTime());
}</pre>
<br />
<br />
Similarly to get the first date of week Calendar Class is used.<br />
<br />
<pre color="black" face="'Courier New',courier,monospace" size="8pt" style="background-color: #f4f4f4; border-style: none; direction: ltr; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 100%;">public static int getFirstDateOfWeek() {
Calendar c = Calendar.getInstance();
c.set(Calendar.WEEK_OF_YEAR, Calendar.WEEK_OF_MONTH);
c.set(Calendar.DAY_OF_WEEK, c.getFirstDayOfWeek());
DateFormat f = new SimpleDateFormat("dd");
String cc = f.format(c.getTime());
// Plus 1 is done to get the Monday Date instead of Sunday
return Integer.valueOf(cc) + 1;
}</pre>
<br />
<br />
There are many other methods that can be used commmonly. I will keep updating this post when ever I got something new. Also do comment If there is any method you want to add here or If any of them can be implemented in much better way.<br />
<br />
rizzz86</div>
rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-72437534912669424092011-10-02T05:49:00.000-07:002011-10-02T05:50:12.450-07:00Hello Post !<div dir="ltr" style="text-align: left;" trbidi="on"><m:smallfrac m:val="off"> <m:dispdef> <m:lmargin m:val="0"> <m:rmargin m:val="0"> <m:defjc m:val="centerGroup"> <m:wrapindent m:val="1440"> <m:intlim m:val="subSup"> <m:narylim m:val="undOvr"> </m:narylim></m:intlim> </m:wrapindent> </m:defjc></m:rmargin></m:lmargin></m:dispdef></m:smallfrac><br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span style="font-family: "Arial","sans-serif"; font-size: 10pt;">I am writing on this blog after a long time due to some busy schedule from last 4 months. I have switched my job and joined a new <a href="http://riksof.com/">software company</a> with in this time frame. Also worked on lots of new tools and technologies that I have to blog on. So lots of topics are in mind to blog and now thinking to give some time to blogging in this busy schedule. I have also completed my MS (Software Engineering) and now looking forward to give some certifications as well.</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span style="font-family: "Arial","sans-serif"; font-size: 10pt;">rizzz86</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span style="font-family: "Arial","sans-serif"; font-size: 10pt;"> </span></div></div>rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0tag:blogger.com,1999:blog-6629633114764985799.post-73547474982062165432011-03-07T21:32:00.000-08:002011-03-07T21:32:22.361-08:00Dinner at Ambala Corniche<div dir="ltr" style="text-align: left;" trbidi="on">"Ambala" is a newly opened restaurant near sea view - Clifton, Karachi. In comparison with other restaurants on the same street (including Sajjad, Afridi Inn, Hot Bite etc) "Ambala" is the most well managed and also have a pleasing environment.<br />
<br />
Click on the following image to see slideshow by <a href="http://smhumayun.blogspot.com/">smhumayun</a>. <br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://slideshow-25.smhumayun.imageloop.com/en/index.htm"><img border="0" height="300" src="https://lh4.googleusercontent.com/-CVr2YlMAJT8/TXW-Qtg0-AI/AAAAAAAAAns/2g616IPhEbA/s400/rw506h380.jpeg" width="400" /></a></div><br />
rizzz86<br />
<br />
</div>rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com4tag:blogger.com,1999:blog-6629633114764985799.post-71151530957538097022011-02-28T08:23:00.000-08:002011-02-28T08:26:35.522-08:00Split a String with Dot "." in JAVA<div dir="ltr" style="text-align: left;" trbidi="on"><br />
In JAVA we can split a String with Dot "." using a split() function. But it can be done in a different way as compared to other characters. Dot "." is a reserved character in regular expression, hence it will not treat the split on dot the same way.<br />
<br />
Following code can be used to split a string by dot.<br />
<br />
<pre color="black" face="'Courier New',courier,monospace" size="8pt" style="background-color: #f4f4f4; border-style: none; direction: ltr; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 100%;">String stringWithDot = "rizzz86.blogspot.com";
String[] stringArray = stringWithDot.split("\\.");
</pre><br />
Double backslash will do the work where one slash is work as a escape character.<br />
<br />
rizzz86<br />
<br />
</div>rizzz86http://www.blogger.com/profile/03747873029902875672noreply@blogger.com0