http://www.imomin.webs.com

Thank You for Visit Me

Md. Mominul Islam

view:  full / summary

How to create RSS feed from any feed URL using javascript

Posted by imomins on December 23, 2012 at 12:20 AM Comments comments (0)

 

To create RSS feed of your Blog Simply Copy The following js Code.

<!-- start rss code -->

<script type="text/javascript">

<!--

rssmikle_url="http://imomin.webs.com/apps/blog/entries/feed/rss";

rssmikle_frame_width="620";

rssmikle_frame_height="600";

rssmikle_target="_blank";

rssmikle_font="Times New Roman, serif";

rssmikle_font_size="10";

rssmikle_border="on";

rssmikle_css_url="";

rssmikle_title="on";

rssmikle_title_bgcolor="#9ACD32";

rssmikle_title_color="#FFFFFF";

rssmikle_title_bgimage="http://imomin.webs.com/about_me.png";

rssmikle_item_bgcolor="#FFFFFF";

rssmikle_item_bgimage="";

rssmikle_item_title_length="100";

rssmikle_item_title_color="#0F0F0F";

rssmikle_item_border_bottom="on";

rssmikle_item_description="on";

rssmikle_item_description_length="120";

rssmikle_item_description_color="#141313";

rssmikle_item_date="gl2";

rssmikle_item_description_tag="off";

rssmikle_item_podcast="icon";

//-->

</script>

<script type="text/javascript" src="http://imomin.webs.com/liveworld24.tk.js" mce_src="http://imomin.webs.com/liveworld24.tk.js"></script>

<div style="font-size:10px; text-align:right;" mce_style="font-size:10px; text-align:right;">

<a href="http://imomin.webs.com/" mce_href="http://imomin.webs.com/" target="_blank" style="color:#CCCCCC;" mce_style="color:#CCCCCC;">Md Mominul Islam</a>

<!--Please display the above link in your web page according to Terms of Service.-->

</div>

<!-- end  code -->

in   rssmikle_url="http://imomin.webs.com/apps/blog/entries/feed/rss";  just replace your feed url.

Sample Link

 


Formula to Convert a numeric value into English words Number System in Microsoft Excel?

Posted by imomins on December 22, 2012 at 10:45 PM Comments comments (0)
  1. Start Microsoft Excel.
  2. Press ALT+F11 to start the Visual Basic Editor.
  3. On the Insert menu, click Module.Type the following code into the module sheet.
Option Explicit
'Main Function
Function SpellNumber(ByVal MyNumber)
    Dim Dollars, Cents, Temp
    Dim DecimalPlace, Count
    ReDim Place(9) As String
    Place(2) = " Thousand "
    Place(3) = " Million "
    Place(4) = " Billion "
    Place(5) = " Trillion "
    ' String representation of amount.
    MyNumber = Trim(Str(MyNumber))
    ' Position of decimal place 0 if none.
    DecimalPlace = InStr(MyNumber, ".")
    ' Convert cents and set MyNumber to dollar amount.
    If DecimalPlace > 0 Then
        Cents = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & _
                  "00", 2))
        MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))
    End If
    Count = 1
    Do While MyNumber <> ""
        Temp = GetHundreds(Right(MyNumber, 3))
        If Temp <> "" Then Dollars = Temp & Place(Count) & Dollars
        If Len(MyNumber) > 3 Then
            MyNumber = Left(MyNumber, Len(MyNumber) - 3)
        Else
            MyNumber = ""
        End If
        Count = Count + 1
    Loop
    Select Case Dollars
        Case ""
            Dollars = "No Dollars"
        Case "One"
            Dollars = "One Dollar"
         Case Else
            Dollars = Dollars & " Dollars"
    End Select
    Select Case Cents
        Case ""
            Cents = " and No Cents"
        Case "One"
            Cents = " and One Cent"
              Case Else
            Cents = " and " & Cents & " Cents"
    End Select
    SpellNumber = Dollars & Cents
End Function
      
' Converts a number from 100-999 into text 
Function GetHundreds(ByVal MyNumber)
    Dim Result As String
    If Val(MyNumber) = 0 Then Exit Function
    MyNumber = Right("000" & MyNumber, 3)
    ' Convert the hundreds place.
    If Mid(MyNumber, 1, 1) <> "0" Then
        Result = GetDigit(Mid(MyNumber, 1, 1)) & " Hundred "
    End If
    ' Convert the tens and ones place.
    If Mid(MyNumber, 2, 1) <> "0" Then
        Result = Result & GetTens(Mid(MyNumber, 2))
    Else
        Result = Result & GetDigit(Mid(MyNumber, 3))
    End If
    GetHundreds = Result
End Function
      
' Converts a number from 10 to 99 into text. 
Function GetTens(TensText)
    Dim Result As String
    Result = ""           ' Null out the temporary function value.
    If Val(Left(TensText, 1)) = 1 Then   ' If value between 10-19...
        Select Case Val(TensText)
            Case 10: Result = "Ten"
            Case 11: Result = "Eleven"
            Case 12: Result = "Twelve"
            Case 13: Result = "Thirteen"
            Case 14: Result = "Fourteen"
            Case 15: Result = "Fifteen"
            Case 16: Result = "Sixteen"
            Case 17: Result = "Seventeen"
            Case 18: Result = "Eighteen"
            Case 19: Result = "Nineteen"
            Case Else
        End Select
    Else                                 ' If value between 20-99...
        Select Case Val(Left(TensText, 1))
            Case 2: Result = "Twenty "
            Case 3: Result = "Thirty "
            Case 4: Result = "Forty "
            Case 5: Result = "Fifty "
            Case 6: Result = "Sixty "
            Case 7: Result = "Seventy "
            Case 8: Result = "Eighty "
            Case 9: Result = "Ninety "
            Case Else
        End Select
        Result = Result & GetDigit _
            (Right(TensText, 1))  ' Retrieve ones place.
    End If
    GetTens = Result
End Function
     
' Converts a number from 1 to 9 into text. 
Function GetDigit(Digit)
    Select Case Val(Digit)
        Case 1: GetDigit = "One"
        Case 2: GetDigit = "Two"
        Case 3: GetDigit = "Three"
        Case 4: GetDigit = "Four"
        Case 5: GetDigit = "Five"
        Case 6: GetDigit = "Six"
        Case 7: GetDigit = "Seven"
        Case 8: GetDigit = "Eight"
        Case 9: GetDigit = "Nine"
        Case Else: GetDigit = ""
    End Select
End Function
		


How to use the SpellNumber sample function

loadTOCNode(2, 'moreinformation');

To use the sample functions to change a number to written text, use one of the methods demonstrated in the following examples:

Method 1: Direct Entry

loadTOCNode(2, 'moreinformation');

You can change 32.50 into "Thirty Two Dollars and Fifty Cents" by entering the following formula into a cell:

=SpellNumber(32.50)

Method 2: Cell reference

loadTOCNode(2, 'moreinformation');

You can refer to other cells in the workbook. For example, enter the number 32.50 into cell A1, and type the following formula into another cell:

=SpellNumber(A1)

Method 3: Paste Function or Insert Function

loadTOCNode(2, 'moreinformation');

To enter a custom function into a worksheet, you can use Paste Function in Excel 2000, or you can use Insert Function in Excel 2002 and in Excel 2003.

Excel 2000

loadTOCNode(3, 'moreinformation');

To use Paste Function, follow these steps:

  1. Select the cell that you want.
  2. Click Paste Function on the Standard toolbar.
  3. Under Function category, click User Defined.
  4. Under Function name, click SpellNumber, and then click OK.
  5. Enter the number or cell reference that you want, and then click OK.

Excel 2002 and Excel 2003

loadTOCNode(3, 'moreinformation');

To use Insert Function, follow these steps:

  1. Select the cell that you want.
  2. Click Insert Function on the Standard toolbar.
  3. Under Or select a category, click User Defined.
  4. In the Select a function list, click SpellNumber, and then click OK.
  5. Enter the number or cell reference that you want, and then click OK.

Learning Namaj in a proper way

Posted by imomins on December 22, 2012 at 6:00 AM Comments comments (0)

আল্লাহ কে স্বরণ কর যে ভাবে তোমাদের শেখানো হয়েছে যা তোমরা ইতি পূর্বে জানতে না (বাক্বারাঃ আয়াত ২৩৯;)

আল্লাহর নির্দেশ মান্য কর নির্দেশ মান্য কর রাসুলের (ইমরানঃ আয়াত ৩২, ১৩২; নিসাঃ আয়াত ৫৯; আনফালঃ আয়াত ১, ২০, ৪৬; নূরঃ আয়াত ৫৪, ৫৬; মুজাদালাহঃ আয়াত ১৩; আত-তাগাবুনঃ আয়াত ১২;)

হে ঈমানদারগণ! তোমরা আল্লাহর আনুগত্য কর এবং রাসুলের অনুসরণ কর, আর নিজেদের আমল বিনষ্ট কর না (মুহাম্মাদঃ আয়াত ৩৩;)

রাসুল(সঃ;)বলেছেন-জীব্রাইল (আঃ;) কা’বা ঘরের কাছে এসে আমাকে নিয়ে দু-দু বার পাঁচ ওয়াক্ত নামাযের ইমামতি করে নামাযের সময় ও পদ্ধতি নির্ধারণ করে দিয়েছেন (আবু দাউদ, মেশকাত ৫৯ পৃঃ;)

নবী সাল্লাল্লাহু আলাইহি ওয়াসাল্লাম বলেছেন:
... صلوا كما رأيتموني أصلي.
তোমরা নামায ও ভাবেই পড়বে যেভাবে আমাকে পড়তে দেখেছ (বুখারি, কিতাবুল আযান: ৬৩১; মেশকাত আরবী ৬৬ পৃঃ; বাংলা আরাফাত পাঃ ২য় খন্ড কিতাবুস সলাহ ৫৮ পৃঃ হাঃ নং ৬৬২; মেশকাত ২য় খন্ড হাঃ ৬৩২;)

ইবাদত কর সে ভাবে যে ভাবে আমাকে ইবাদত করতে দেখেছ (সহীহ বুখারী ১ম খন্ড বুক অফ আযান ১৮ অধ্যায় হাঃ নং ৬০৪;)

মহিলা পুরুষের নামায একই (বুখারী মিশরী ছাপা ১ম খন্ড ১৪৯ পৃঃ; আল মুগনী ১ম খন্ড ৫৫ পৃঃ;)

পার্থক্য শুধু পোষাকে-মহিলারা কাপড় দ্বারা পায়ের গিরা ঢেকে নিবে (আবু দাউদ ১ম খন্ড ৯৪ পৃঃ;)
কেবলা/দাঁড়ান

আর যে স্থান থেকে তুমি বের হও নিজের মুখ মসজিদে হারামের দিকে ফেরাও (বাক্বারাঃ আয়াত ১৪৯;)

এখন আপনি মসজিদুল হারামের দিকে মুখ করুন এবং তোমরা যেখানেই থাক সে দিকে মুখ কর (বাক্বারাঃ আয়াত ১৪৫;)
﴿وَقُومُواْ لِلَّهِ قَٰنِتِينَ ٢٣٨﴾[البقرة:238 ]
আল্লাহর সামনে একান্ত আদবের সাথে দাঁড়াও (বাক্বারাঃ আয়াত ২৩৮;)

নবী সাল্লাল্লাহু আলাইহি ওয়াসাল্লাম বলেন:
«إذا قمت إلى الصلاة فأسبغ الوضوء ثم استقبل القبلة...».
“যখন তুমি সালাতের জন্য দণ্ডায়মান হও, পরিপূর্ণরূপে অযু কর অতঃপর কিবলা মুখী হও...(বুখারি: ৭৯৩; মুসলিম: ৩৯৭;)

সুতরা

সালাত আদায়কারী ইমাম বা মুনফারেদ যেই হোক, সামনে সুতরা রেখে দাঁড়াবে । সুবরা ইব্‌ন মা‍‘বাদ জুহানি রাদিয়াল্লাহু আনহু বলেন, রাসূলুল্লাহ সাল্লাল্লাহু আলাইহি ওয়াসাল্লাম বলেছেন:
«ليستترْ أحدُكم في الصلاة ولو بسهمٍ»
“তীর বা বর্শা দিয়ে হলেও তোমাদের প্রত্যেকে যেন সালাতে সুতরা কায়েম করে” হাকেম: (১/২৫২;), তাবরানি ফিল কাবির: (৭/১১৪;), হাদিস নং: (৬৫৩৯;), আহমদ: (৩/৪০৪;), “মাজমাউজ জাওয়াদে” লিল হায়সামি: (২/৫৮;)

আবু জর রাদিয়াল্লাহু আনহু বলেন: নবী সাল্লাল্লাহু আলাইহি ওয়াসাল্লাম বলেছেন:
«إذا قام أحدُكم يصلي فإنه يستره إذا كان بين يديه مثل مؤخرة الرَّحل،فإذا لم يكن بين يديه مثل مؤخرة الرحل فإنه يقطع صلاته: الحمار، والمرأة، والكلب الأسود».
“যখন তোমাদের কেউ সালাত আদায়ের জন্য দণ্ডায়মান হয়, তখন তার সামনে উটের উপর আরোহী ব্যক্তির হেলান দেয়ার জন্য পিছনে রাখা ঠিকার ন্যায় কোন কিছু সুতরা হিসেবে রাখাই যথেষ্ট, কারণ যদি অনুরূপ ঠিকা না থাকে, তাহলে তার সালাত গাধা, নারী ও কালো কুকুর ভঙ্গ করে দিতে পারে” মুসলিম: (৫১০;)



তোমরা কাতার সোজা কর । মধ্য খানে ফাক বন্ধ কর (আবু দাউদ ৯৭ পৃঃ; মুসতাদরাকে হাকিম ১ম খন্ড ২২৩ পৃঃ;)

আনাস (রাঃ;) এর স্বাক্ষ্য- প্রত্যেকে তার সাথীর কাঁধের সাথে কাঁধ এবং পায়ের সাথে পা মিলিয়ে দাঁড়াতেন (বুখারী ১ম খন্ড ১০০ পৃঃ; মুসলিম ১৮২ পৃঃ; তিরমিযী ৩১ পৃঃ; নাসাঈ ইবনু মাযাহ ৭১ পৃঃ; মেশকাত ৯৮ পৃঃ; বাংলা বুখারী আঃ প্রঃ ৩১৬ পৃঃ; মেশকাত আরাফাত প্রঃ ২য় খন্ড ২১১ পৃঃ;)

কাঁধের সাথে কাঁধ পায়ের সাথে পা মিলানোর আরও দলিল দেখুন (মেশকাত ৩য় খন্ড হাঃ ১০১৭, ১০১৮, ১০২০, ১০২৫, ১০৩৩, ১০৩৪ বাংলা অনুবাদঃ মাওলানা নুর মোহাম্মাদ আযমী এমদাদিয়া লাইব্রেরি-চক বাজার ঢাকা; মেশকাত মাদ্রাসার পাঠ্য ২য় খিন্ড হাঃ ১০১৭ হতে ১০৩৪ পর্যন্ত; বাংলা অনুবাদ বুখারী মাওলানা আজিজুল হক ১ম খন্ড হাঃ ৪২৭; সহীহ আল বোখারী আঃ প্রঃ ১ম খন্ড হাঃ ৬৮১; সহীহুল বুখারী তাওঃ পাঃ ১ম খন্ড হাঃ ৭২৬;

বুখারী শরীফ ইঃ ফাঃ ২য় খন্ড হাঃ ৬৮২, ৬৮৭; মুসলিম শরীফ ইঃ ফাঃ ২য় খন্ড হাঃ ৮৫১; আবু দাউদ শরীফ ইঃ ফাঃ ১ম খন্ড হাঃ ৬৬২, ৬৬৬, ৬৬৭; তিরমিযী শরীফ ইঃ ফাঃ ১ম খন্ড হাঃ ২২৭; জামে তিরমিযী মাওলানা আব্দুন নুর সালাফী ১ম খন্ড হাঃ ২১১;)

নবী সাল্লাল্লাহু আলাইহি ওয়াসাল্লাম বলেছেন: «إذا قمت إلى الصلاة فكبر“যখন তুমি সালাতের জন্য দাঁড়াও, তাকবির বল” বুখারি: (৭৯৩;), মুসলিম: (৩৯৭;)

ইব্‌ন ওমর রাদিয়াল্লাহু আনহু থেকে বর্ণিত:
«كان رسول الله ﷺ إذا قام للصلاة رفع يديه حتى تكونا حذو منكبيه، ثم كبر»
“রাসূলুল্লাহ সাল্লাল্লাহু আলাইহি ওয়াসাল্লাম যখন সালাতের জন্য দাঁড়াতেন, উভয় হাত কান পর্যন্ত উঠাতেন অতঃপর তাকবির বলতেন” মুসলিম: (৩৯০;)

আবু হুমাইদ সায়েদি রাদিয়াল্লাহু আনহু থেকে বর্ণিত:
«كان رسول الله ﷺ إذا قام إلى الصلاة يرفع يديه حتى يُحاذيَ بهما منكبيه ثم يُكبِّر»
“রাসূলুল্লাহ সাল্লাল্লাহু আলাইহি ওয়াসাল্লাম যখন সালাতে দাঁড়াতেন, তখন তিনি উভয় হাত কাঁধ বরাবর উঠাতেন, অতঃপর তাকবির বলতেন” বুখারি: (৭৩৭;), মুসলিম: (৩৯১;)

কেবলার দিকে মুখ করতেন এবং দুই হাত ওঠাতেন এবং বলতেন আল্লাহু আকবার (বুখারী, মুসলিম, মেশকাত ৬৭ পৃঃ;)

আল্লাহু আকবার ছাড়া অন্য কিছু দ্বারা নামায শুরু করলে তার নামায হবে না (তিরমিযী ১ম খন্ড ৩৩ পৃঃ;)

জানাতে পারেনঃ-

;) কাধের সাথে কাধ, পায়ের সাথে পা না মিলিয়ে ফাঁক ফাঁক হয়ে দাড়ানো এর কুরআন ও সহিহ হাদিসের পূর্ণাঙ্গ দলিল জানাবেন ।
১০;)দাড়ানোর পর নামাযের শুরুতে ইন্নি ওয়াজ্‌জাহাতু………… এবং নাওয়াইতুআন (নিয়ত;) পড়তে হবে এর কুরআন ও সহিহ হাদিসের পূর্ণাঙ্গ দলিল জানাবেন ।

BPL 2013

Posted by imomins on December 22, 2012 at 5:50 AM Comments comments (0)

সিলেট রয়্যালস

মুশফিকুর রহীম ২,০৫,০০০ গোল্ডেন

টিনো বেস্ট (ওয়েস্ট ইন্ডিজ;) ৭৫,০০০ গোল্ডেন

সোহাগ গাজী ১,৫৬,০০০ এ

ডোয়াইন স্মিথ (ওয়েস্ট ইন্ডিজ;) ৭০,০০০ এ

মমিনুল হক ১,২৭,০০০ বি

আজিম ঘুম্মান পাকিস্তান ৩০,০০০ বি

নাজমুল হোসেন ৭১,০০০ বি

জুলফিকার বাবর (পাকিস্তান;) ৩০,০০০ বি

ইমতিয়াজ হোসেন ১০,০০০ সি

হ্যামিল্টন মাসাকাদজা (জিম্বাবুইয়ে;) ৩০,০০০ বি

নাজমুল মিলন ২৬,০০০ সি

বাবর আজম (পাকিস্তান;) ১৫,০০০ সি

সোহরাওয়ার্দী শুভ ২৭,০৫০ সি

পল স্টার্লিং (আয়ারল্যান্ড;) ৩০,০০০ সি

জুপিটার ঘোষ ১০,০০০ সি

আন্দ্রে রাসেল (ওয়েস্ট ইন্ডিজ;) ১,১৫,০০০ গোল্ডেন

সোহেল আহমেদ (পাকিস্তান;) ১৫,০০০ সি

 

দুরন্ত রাজশাহী

তামিম ইকবাল ১,৬৫,০০০ গোল্ডেন

মারলন স্যামুয়েলস (ওয়েস্ট ইন্ডিজ;) ১,১৫,০০০ গোল্ডেন

জিয়াউর রহমান ১,৩৭,০০০ এ

আব্দুর রাজ্জাক (পাকিস্তান;) ৯১,০০০ এ

জহুরুল ইসলাম ১,১১,০০০ বি

শাহজাইব হাসান (পাকিস্তান;) ৭৬,০০০ বি

আবুল হাসান রাজু ১,২১,০০০ বি

এ্যালেক্স হেলস (ইংল্যান্ড;) ৬২,০০০ বি

ফরহাদ হোসেন ৪২,২০০ সি

খালিদ লতিফ (পাকিস্তান;) ১৫,০০০ সি

শাকের আহমেদ ১০,০০০ সি

শন আরভিন (জিম্বাবুইয়ে;) ১৫,০০০ সি

মনির হোসেন ১০,০০০ সি

মোহাম্মদ সামি (পাকিস্তান;) ৮৩,০০০ এ

তাইজুল ইসলাম ২৭,১০০ সি

মুক্তার আলী ১০,০০০ সি

 

চিটাগাং কিংস

মাহমুদুল্লাহ রিয়াদ ১,২৫,০০০ গোল্ডেন

ইমরান নাজির (পাকিস্তান;) ২,৮০,০০০ গোল্ডেন

নাঈম ইসলাম ৮৫,০০০ বি

ডোয়াইন ব্রাভো (ওয়েস্ট ইন্ডিজ;) ১,১৫,০০০ গোল্ডেন

রুবেল হোসেন ৬০,০০০ বি

ওয়াহাব রিয়াজ(পাকিস্তান;) ৬০,০০০ এ

আরাফাত সানি ১,০০,০০০ বি

রবি বোপারা (ইংল্যান্ড;) ১,২৫,০০০ এ

এনামুল হক জুনিয়র ১,২০,০০০ বি

জ্যাকব ওরাম(নিউজিল্যান্ড;) ১,১১,০০০ এ

আফতাব আহমেদ ১০,০০০ সি

জেসন রয় (ইংল্যান্ড;) ৩০,০০০ বি

মার্শাল আইয়ুব ১৬,০০০ সি

কেভন কুপার (ওয়েস্ট ইন্ডিজ;) ৫০,০০০ বি

নুরুল হাসান ৩২,০০০ সি

ব্রেন্ডন টেলর (জিম্বাবুইয়ে;) ৩০,০০০ বি

সাঈদ আনোয়ার জুনি. (পাকিস্তান;) ১৫,০০০ সি

রায়ান টেন ডয়েশ্চেট (হল্যান্ড;) ১,০০,০০০ এ

 

খুলনা রয়েল বেঙ্গল

নাজিমুদ্দিন ২৫,০০০ বি

শোয়েব মালিক (পাকিস্তান;) ৮৫,০০০ গোল্ডেন

শাহরিয়ার নাফীস ৪০,০০০ বি

উমর আকমল (পাকিস্তান;) ৬০,০০০ এ

ফরহাদ রেজা ৫১,৫০০ বি

ওয়েইস জিয়া (পাকিস্তান;) ৩০,০০০ বি

শাহাদাত হোসেন ২০,০০০ বি

উমর আমিন (পাকিস্তান;) ৪০,০০০ বি

মিজানুর রহমান ১৪,০০০ সি

আহমেদ শেহজাদ (পাকিস্তান;) ১,১১,০০০ বি

মিঠুন আলী ৩২০০০ সি

রিকি ওয়েসেলস (ইংল্যান্ড;) ২৫,০০০ সি

নাবিল সামাদ ১৬,০০০ সি

হারিস সোহেল (পাকিস্তান;) ৪০,০০০ সি

ডলার মাহমুদ ১০,০০০ সি

বিলাওয়াল ভাট্টি (পাকিস্তান;) ১৫,০০০ সি

সাঞ্জামুল ইসলাম ৪৫,০২৫ সি

শেন হারউড (অস্ট্রেলিয়া;) ১৫,০০০ সি

 

ঢাকা গ্ল্যাডিয়েটর্স

শাকিব আল হাসান ৩,৬৫,০০০ গোল্ডেন

শহীদ আফ্রিদি (পাকিস্তান;) ২,৭৫,০০০ গোল্ডেন

মোহাম্মদ আশরাফুল ৬০,০০০ এ

লুক রাইট (ইংল্যান্ড;) ৭৫,০০০ গোল্ডেন

এনামুল হক বিজয় ১,২১,০০০ এ

ওয়াইজ শাহ (ইংল্যান্ড;) ৭৫,০০০ গোল্ডেন

মাশরাফি বিন মর্তুজা ১,৪১,০০০ এ

তিলকারত্নে দিলশান (শ্রীলঙ্কা;) ৭৫,০০০ গোল্ডেন

মোশাররফ হোসেন ৯১,০০০ বি

লাসিথ মালিঙ্গা (শ্রীলঙ্কা;) ১,১৫,০০০ গোল্ডেন

রকিবুল হাসান ১০,০০০ সি

ড্যারেন স্টিভেন্স (ইংল্যান্ড;) ৩০,০০০ বি

সৌম্য সরকার ৩২,৫০০ সি

জশুয়া কব (ইংল্যান্ড;) ৩০,০০০ বি

লিটন দাস ১০,০০০ সি

ক্রিস লিডল (ইংল্যান্ড;) ৪০,০০০ বি

সাকলাইন সজীব ৫১,৫৭৫ সি

কৌশল লোকুয়ারাচ্চি (শ্রীলঙ্কা;) ১৫,০০০ সি

মাহবুবুল আলম রবিন ১০,০০০ সি

 

বরিশাল বার্নার্স

অলক কাপালী ৮৩,০০০ বি

সাঈদ আজমল (পাকিস্তান;) ১,১৫,০০০ গোল্ডেন

শফিউল ইসলাম ৬৭,০০০ বি

সুনীল নারিনে (ওয়েস্ট ইন্ডিজ;) ৭৫,০০০ গোল্ডেন

ইলিয়াস সানি ১,০৬,০০০ বি

আজহার মাহমুদ (ইংল্যান্ড;) ২,০৬,০০০ গোল্ডেন

শুভাগত হোম ১৮,০০০ সি

উমর গুল (পাকিস্তান;) ৬০,০০০ এ

সাব্বির রহমান ৫৫,৭০০ সি

কামরান আকমল (পাকিস্তান;) ৭৫,০০০ এ

ইফতেখার নাঈম ১০,০০০ সি

ফিল মাস্টার্ড (ইংল্যান্ড;) ৫০,০০০ এ

জুবায়ের আহমেদ ১০,০০০ সি

কবির আলী (ইংল্যান্ড;) ১৫,০০০ সি

আলাউদ্দিন বাবু ৩১,০০৭ সি

হাম্মাদ আজম (পাকিস্তান;) ৫১,০০০ সি

আল আমিন ১০,০০০ সি

ব্র্যাড হজ (অস্ট্রেলিয়া;) ১,২৫,০০০ গোল্ডেন

নাজমুল অপু ৪৪,০০০ সি

 

রংপুর রাইডার্স

নাসির হোসেন ২,০৮,০০০ এ

ফিদেল এডওয়ার্ডস (ওয়েস্ট ইন্ডিজ;) ৭৫,০০০ গোল্ডেন

আব্দুর রাজ্জাক ৯২,৭৭৭ এ

কেভিন ও’ব্রায়েন (আয়ারল্যান্ড;) ৪৫,০০০ বি

জুনায়েদ সিদ্দিকী ৬৭,৭৫৭ বি

শারজিল খান (পাকিস্তান;) ৫৯,৯০০ সি

ইমরুল কায়েস ৪৪,১০০ বি

আনোয়র আলী (পাকিস্তান;) ১৫,০০০ সি

মেহেদী মারুফ ১০,০০০ সি

জোয়াইব খান (পাকিস্তান;) ১৫,০০০ সি

তাপস ঘোষ ১০,০০০ সি

রাজা আলী দার (পাকিস্তান;) ১৫,০০০ সি

ধীমান ঘোষ ১৪,০০০ সি

মোঃ শরীফ ১০,০০০ সি

শামসুর রহমান ১০,০০০ সি

 

সব মূল্য মার্কিন ডলারে দেয়া হয়েছে গোল্ডেন ক্যাটাগরি ॥ দেশী ৪৫,০০০-৭০,০০০; বিদেশী ৭৫,০০০-১,৫০,০০০ ‘এ’ ক্যাটাগরি ॥ দেশী ৩০,০০০-৪৫,০০০; বিদেশী ৫০,০০০-৭৫,০০০০ ‘বি’ ক্যাটাগরি ॥ দেশী ২০,০০০-৩০,০০০; বিদেশী ৩০,০০০-৫০,০০০ ‘সি’ ক্যাটাগরি ॥ দেশী ১০,০০০-২০,০০০; বিদেশী ১৫,০০০-৩০,০০০ডলারে মূল্যসহ;)

Keep Your Refgerator Save.....

Posted by imomins on October 14, 2012 at 7:25 AM Comments comments (0)

২৫০ টাকায় আপনার ফ্রিজ কে নিরাপদ রাখুন এবং ফ্রিজ সম্পর্কে কিছু টিপ্স


আপনি টিভিতে খবর দেখে বন্ধ করেছেন একটু পরে চালাতে গিয়ে দেখছেন আর চলছেনা তাহলে নষ্ট হল কখন বা কিভাবে। Elec. Equipment গুলো যে কারণে নষ্ট হয় তার অন্যতম কারণ হল ১. অভার ভোল্টেজ ২. অভার কারেন্ট

 

অভার কারেন্ট যে কারনে সুষ্টি হয় তা হল- অভার লোডে চালনা করা, দীর্ঘক্ষন চালনা করা যা আপনি নিজেই নিয়ন্ত্রনে রাখতে পারেন।

অভার ভোল্টেজ যে কারনে সৃষ্টি হয় তা হল- বর্জ্জপাত, ফ্লাশিং, নিউট্রাল/ফেজ ফল্ট ইত্যাদী।

বর্জ্জপাত নিয়ে নতুন করে বলার কিছু নেই তবে বর্জ্জপাত হওয়া শুরু হলে আপনার বাড়ীর মেইন কাটআউট বা মেইন সুইচ বন্ধ করে রাখুন টিভির এন্টেনা জ্যাক খুলে রাখুন খোলার সময় অবশ্যই সাবধানে খুলবেন যেই মাত্র বিদ্যুৎ চমকেছে ঐ মুহুর্তে হাত দিবেননা। বর্জ্জপাতে যে ভোল্টেজ তৈরী হয় তাতে তার না ধরলেও ১-২ ইঞ্চির ব্যবধানে তার থাকলে শক খাবেন। জীবন আগে

নিউট্রাল ফল্ট: যদি আপনার এলাকার ট্রান্সফরমারের একটি ফিউজ কেটে যায় বা ট্রান্সফরমার হতে নিউট্রাল তার কেটে যায় তাহলে এক লাইনে ভোল্টেজ বেশী হয় অন্যটিতে কম হয়।

ফ্লাশিং: অধিকাংশ যন্ত্রপাতি নষ্ট হয় এ কারনেই। আপনি খেয়াল করে দেখবেন অধিকাংশ সময় সুইচ অন করার মুহুর্তে বাল্ব কেটে যায়। এর কারন হল যখন আমরা সুইচ অন বা অফ করি তখন কন্টাক পাওয়ার কারনে সেখানে অগ্নিস্ফুলিঙ্গ (ফ্লাশিং;) হয় এই সময় কয়েকটি ওয়েভ অ-সাভাবিক ভাবে বেড়ে যায় এমন কি ফ্রিকোয়েন্সির ও তারতম্য দেখাদেয় (সুইচিং ইফেক্ট;) ফলে অভার ভোল্টেজ জনিত কারনে Elec. Equipment  গুলো পুড়ে যায়। এই জন্য অবশ্যই ভাল মানের সুইচ ব্যবহার করবেন। সকেট ও প্লাগের সংযোগ যেন টাইট ফিটিং হয় সে দিকে খেয়াল রাখবেন সুইচ অন করার সময় আদর করে নয় বরং ধাপাস করে অন করবেন যদি কখন কোন সুইচ গরম হতে দেখেন সাথে সাথে বদলিয়ে ফেলুন। ফিলামেন্ট বাল্ব গুলো থেকে অনেক তাপ উৎপন্ন হয় তাই হোল্ডারের স্পীং দ্রুত নষ্ট হয় ফলে ঘনঘন বাল্ব কাটে । এক কথায় ইলেকট্রিক্যাল সিষ্টেমে লুজ বলে কোন শব্দ রাখা যাবে না........না।

শিরোনামের কথায় আসি।

তার আগে সিরিজ ল্যাম্প সম্পর্কে একটু ধারনা দেই, একটা প্লাগ ও একটা সকেট তারের দুই দিকে লাগান একটা তার কেটে সেখানে ফিলামেন্ট বাল্ব হোল্ডার লাগিয়ে ১০০/২০০ ওয়াটের্ বাল্ব লাগালেই সিরিজ ল্যাম্প তৈরী হয়েগেল।

সুইচিং ইফেক্টে এর কথা আগেই বলেছি যা অধিকাংশ নষ্টের গোরা। আপনার বাসার সুইচ নয় সাবষ্টেশনের সুইচ/ব্রেকার যখন অন করে তখন বা ঝড়ের সময় অভার হেড লাইনে তারে তারে সংঘর্ষে সুইচিং ইফেক্ট ঘটে।

ফ্রিজের মধ্যে ইন্ডাকশন মোটর থাকে (কমপ্রেশার;) যা ষ্টাটিং অবস্থায় ৫-৭ গুন বেশী কারেন্ট গ্রহন করে। এছাড়া রেফ্রিজারেন্ট হিসাবে যে গ্যাস ব্যবহার করি সে গ্যাসের নিয়ম হল একবার চালালে কিছুক্ষন বিরতির পর চালাতে হয়। কিন্তু বাংলাদেশের বিদ্যুৎ ব্যবস্থায় কারেন্ট আসা যাওয়া নিয়ম মানে না। তাই যদি কারেন্ট আসার একটু পর আপনার ফ্রিজ চালু হয় বা কারন্টে আপ ডাউন করছে এই অবস্থায় চালু না হয় তবে আপনার ফ্রিজ অনেকটা নিরাপদ। আমি যাষ্ট এই সার্কিটাই দেখাব যা আপনিও তৈরী করতে পারবেন।

যা যা লাগবে ১. টাইমার সুইচ বেজ সহ- ১টি । ২. প্লাগ-১টি।  ৩. সকেট-১টি। ৪. তার- প্রয়োজন মত। ৫. একটা বোর্ড।

ডায়াগ্রাম অনুযায়ী সংযোগ করেনিন। সামান্য লোড দিয়ে সিরিজ ল্যাম্পের সাহায্যে টেষ্ট করে নিন সংযোগ ঠিক আছে কি না। যদি বাল্ব ফুল জ্বলে ওঠে এবং লোড না চলে তাহলে বুঝবেন কোথাও ভুল আছে ঠিক করে সংযোগ দিন। টাইমার সুইচ ০-৬০ সেকেন্ড বা ০-৬০ মিনিট বা ০-৯৯৯ মিনিট ইত্যাদী সাইজের পাওয়া যায় আপনি যতক্ষন পর চালু করতে চান ততক্ষণ সময়েরটা কিনুন। (সাধারণত ফ্রিজ বন্ধ করলে কমপক্ষে ৫ মিনিট পর চালু করতে হয় )

(যাদের ভোল্টেজ ষ্ট্যাবিলাইজার আছে তাদের এই সার্কিট দরকার নেই।;)

 ফ্রিজ কে ভাল রাখার কয়েকটি টিপ্স।

সামনে কোরবানীর ঈদ অনেকেই এমন ভাবে মাংশ রাখে শেষে দড়ি দিয়ে দড়জা বন্ধ করতে হয়। এটা থেকে বিরত থাকুন।

১। আপনার ফ্রিজ যদি নন ফ্রষ্ট ( যে ফ্রিজ গুলোর ডিপ চেশ্বারের ভিতরের পিছন সাইড হতে বাতাস প্রবাহিত হয়;) হয় তবে কোন কিছু রাখার সময় পিছন সাইড হতে ১-২ ইঞ্চি উপরে ১ ইঞ্চি গ্যপ রাখবেন যাতে সহজে বাতাস প্রবাহিত হতে পারে। কখনোই ফ্রিজে চাপাচাপি করে কিছু রাখবেননা কারন ঠান্ডা হলে বস্থুর আয়তন বেড়ে যায়।

২। মাছ/মাংসের প্যাকেট করার সময় কম করে তুলে বড় সাইজের প্যাকেট করুন পারলে আগুনে পুড়ে প্যাকেট করুন (ময়দার প্যাকেট যে ভাবে করা থাকে;) তাতে ফ্রিজে অনেক বেশী প্যাকেট ধরবে। ধারাল কিছু দিয়ে কখনোই প্যাকেট তুলবেননা।

৩। খেয়াল করবেন ফ্রিজের দুই সাইডে গরম হয় এই গরম যদি সহজেই ঠান্ডা হয় তবে বিদ্যুৎ খরচ কম হবে তাই ফ্রিজকে খোলামেলা স্থানে রাখুন বিশেষ করে দুই সাইড যেন খোলা স্থানে থাকে।

৪। ঘন ঘন ফ্রিজ খুলবেননা এবং বেশীক্ষন খুলে রাখবেননা তাহলে বিদ্যুৎ খরচ অনেক কম হবে এবং আয়ু বেড়ে যাবে।

৫। নিয়মিত পরিষ্কার করুন (মাসে অন্তত একবার ) লেবু দিয়ে পরিষ্কার করলে ভাল পরিষ্কার হয়। পরিষ্কার করার সময় অবশ্যই প্লাগ খুলে নিন।

৬। সম্ভব হলে ফ্রিজকে আর্থিং করুন।

৭। পরিবহনের প্রয়োজনে কাতকরানোর দরকার হলে যে সাইডে কমপ্রেসার সেই দিকে কাত করুন।

৮। ফ্রিজের নীচে এবং কমপ্রেসারের পাশে ইদুরের বাসবাসের সুরক্ষিত স্থান তাই মাঝে মাঝে খেয়াল করুন।

* নতুন ফ্রিজ কিনতে চাইলে ইনটারনাল পাইপ গুলো কপারের কি-না নিশ্চিত হয়ে কিনুন এবং কমপ্রেসারটা ভাল কম্পানির হয় সেদিকে খেয়াল রেখে কিনুন। আপনার এলাকায় ঘণ ঘণ কারেন্ট গেলে বা কারেন্ট গিয়ে অনেক্ষন না আসলে ফ্রষ্ট ফ্রিজ কিনুন নইলে নন-ফ্রষ্ট কিনুন।

* ফ্রিজ সব সময় চলেনা ভিতরে প্রয়োজনীয় ঠান্ডা হলে বন্ধ হয়ে যায়, চলার সময় একটু শব্দ করে এবং দুই সাইড কভার গরম হয় তাই অনেকেই মনে করে ফ্রিজে বোধ হয় প্রবলেম হয়েছে না এটাই নিয়ম। যদি বেশী শব্দ করে তবে ফ্রিজ কে একটু নাড়িয়ে দেখুন প্রয়োজনে পায়ের নীচে কাগজের টুকরা দিয়ে টাকটিক ঠিক করুন শব্দ কমে যাবে।

** বিদ্যুৎ কে ভয় পাবেননা সাবধানে নিরাপদে কাজ করুন (বিশেষ করে খালি পায়ে কাজ করবেননা........না......না;) নিজের উপর আত্মবিশ্বাস রাখুন মনে রাখবেন জীবন আগে **

অনেক উপদেশ দিলাম গাল দিলে মনেমনে দিবেন কমেন্টে দিয়েন না আমার বানানে প্রচুর ভুল হয় মিলিয়ে নিবেন প্লিজ।

Add twitter login authentication to website in asp.net

Posted by imomins on October 8, 2012 at 1:40 AM Comments comments (0)
Introduction

In this article I will explain how to create app in twitter and implement twitter login authentication for website in asp.net.
Description:
  
In previous post I explained article how to integrate facebook login authentication for website in asp.net. Now I will explain how to allow users to login with twitter accounts in website using asp.net.

Before implement twitter login authentication we need to get consumerKey and consumerSecret key from twitter for that we need to create application in twitter by using this link https://dev.twitter.com/apps/new  once open that will display window like this


Once app page opened enter Application Name, Description, website (Ex: http://aspdotnet-suresh.com) and callback url details and click create new application button and here one more thing we need to remember is twitter won’t support for localhost sites (ex: http://localhost/Default.aspx) because of that we need to give hosted domain site url. 

If you want to test this with your local application no worries check this post how host website in IIS with custom URL .Once our app created in twitter that would be like as shown below image here we can change logo of our application


 
Now create new application using visual studio and write following code aspx page

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1">
<title>Twitter Login Authentication for Website in asp.net</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ImageButton ID="imgTwitter" runat="server" ImageUrl="~/TwitterSigning.png"
onclick="imgTwitter_Click" />
<table id="tbleTwitInfo" runat="server" border="1" cellpadding="4" cellspacing="0" visible="false">
<tr>
<td colspan="2"><b>Twitter User Profile</b></td>
</tr>
<tr>
<td><b>UserName:</b></td>
<td><%=username%></td>
</tr>
<tr>
<td><b>Full Name:</b></td>
<td><%=name%></td>
</tr>
<tr>
<td><b>Profile Image:</b></td>
<td><img src="<%=profileImage%>" /></td>
</tr>
<tr>
<td><b>Twitter Followers:</b></td>
<td><%=followersCount%></td>
</tr>
<tr>
<td><b>Number Of Tweets:</b></td>
<td><%=noOfTweets%></td>
</tr>
<tr>
<td><b>Recent Tweet:</b></td>
<td><%=recentTweet%></td>
</tr>
</table>
</form>
</body>
</html>
Now in code behind add following namespaces

C# Code


using System;
using System.Web.UI;
using System.Xml;
using oAuthExample;
After completion of adding namespaces write following code in code behind

string url = "";
string xml = "";
public string name = "";
public string username = "";
public string profileImage = "";
public string followersCount = "";
public string noOfTweets = "";
public string recentTweet = "";

protected void Page_Load(object sender, EventArgs e)
{
GetUserDetailsFromTwitter();
}
private void GetUserDetailsFromTwitter()
{
if(Request["oauth_token"]!=null & Request["oauth_verifier"]!=null)
{
imgTwitter.Visible = false;
tbleTwitInfo.Visible = true;
var oAuth = new oAuthTwitter();
//Get the access token and secret.
oAuth.AccessTokenGet(Request["oauth_token"], Request["oauth_verifier"]);
if (oAuth.TokenSecret.Length > 0)
{
//We now have the credentials, so make a call to the Twitter API.
url = "http://twitter.com/account/verify_credentials.xml";
xml = oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, url, String.Empty);
XmlDocument xmldoc=new XmlDocument();
xmldoc.LoadXml(xml);
XmlNodeList xmlList = xmldoc.SelectNodes("/user");
foreach (XmlNode node in xmlList)
{
name = node["name"].InnerText;
username = node["screen_name"].InnerText;
profileImage = node["profile_image_url"].InnerText;
followersCount = node["followers_count"].InnerText;
noOfTweets = node["statuses_count"].InnerText;
recentTweet = node["status"]["text"].InnerText;
}
}
}
}
protected void imgTwitter_Click(object sender, ImageClickEventArgs e)
{
var oAuth = new oAuthTwitter();
if (Request["oauth_token"] == null)
{
//Redirect the user to Twitter for authorization.
//Using oauth_callback for local testing.
oAuth.CallBackUrl = "http://aspdotnet-suresh.com/TwitterAuthentication.aspx";
Response.Redirect(oAuth.AuthorizationLinkGet());
}
else
{
GetUserDetailsFromTwitter();
}
}
If you observe above code I used oAuthTwitter class file you can get this class file from downloadable code. Now get consumerKey and consumerSecret key from twitter and add it in web.config file like this

<appSettings>
<add key="consumerKey" value="Gyew474of7tpEBqnpDw" />
<add key="consumerSecret" value="ytgklq3b8lkxgPShCWeawqzrYpUa1bgsaeGRwW" />
</appSettings>
Demo

 
 Download sample code attached



how to import Contacts from GMAIL using ASP.NET and C#

Posted by imomins on October 8, 2012 at 1:35 AM Comments comments (0)
Introduction:

In this article I will explain how to import gmail contacts of a user by using GContacts Data API provided by Google.

Description:

We have developed one social network site at that time we think that how to popularize the our social network site I have checked some of social network sites at that time we got idea to implement import contacts concept is best to intimate all of our friends at a time I have searched so many websites to implement this concepts but no result finally I have implemented import contacts from gmail 


I used ASP.NET and C# for developing this application.
We need to follow below steps to get gmail contacts 

Step-1:  Download Google data API setup from the specified URL 

Or you can directly download with the following

That Set Up will installs set of Google Data dll’s (Google.GData.Apps.dll, Google.GData.Client.dll, Google.GData.Contacts.dll, Google.GData.Extensions.dll) into client installed Machine, you should collect that dll’s for your program.

Step-2:  Design our aspx page (Default.aspx) by using with the following UI as simple scenario.


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>IMport Gmail Contacts</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>
UserName</td>
<td>
<asp:TextBox ID="txtgmailusername" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Password</td>
<td>
<asp:TextBox ID="txtpassword" runat="server" TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
</td>
</tr>
</table>
</div>
<div>
<asp:GridView ID="gvmails" runat="server"></asp:GridView>
</div>
</form>
</body>
</html>
Step-3:  Add those downloaded google dll’s as reference to your website in visual studio->Solution Explorer ->Right Click-> Click on Add Reference….->Browse ->Get dll’s from Installed Location->Press OK.

Step-4:
A) Add namespace these namespace to your code behind

using Google.GData.Contacts;
using Google.GData.Client;
using Google.GData.Extensions;
using Google.Contacts;
B) After that write following code in code behind


public static DataSet GetGmailContacts(string App_Name, string Uname, string UPassword)
{
DataSet ds = new DataSet();
DataTable dt = new DataTable();
DataColumn C2 = new DataColumn();
C2.DataType = Type.GetType("System.String");
C2.ColumnName = "EmailID";
dt.Columns.Add(C2);
RequestSettings rs = new RequestSettings(App_Name, Uname, UPassword);
rs.AutoPaging = true;
ContactsRequest cr = new ContactsRequest(rs);
Feed<Contact> f = cr.GetContacts();
foreach (Contact t in f.Entries)
{
foreach (EMail email in t.Emails)
{
DataRow dr1 = dt.NewRow();
dr1["EmailID"] = email.Address.ToString();
dt.Rows.Add(dr1);
}
}
ds.Tables.Add(dt);
return ds;
}
protected void Button1_Click(object sender, EventArgs e)
{
DataSet ds = GetGmailContacts("MyNetwork Web Application!", txtgmailusername.Text, txtpassword.Text);
gvmails.DataSource = ds;
gvmails.DataBind();
}
Demo

Note:Keep Remember You Need Internet Connection @ the Time of Executing This Application.
I hope it helps you 

Download sample code attached
Protected by Copyscape Unique Content Checker

C# Coding Standards and Best Programming Practices

Posted by imomins on October 8, 2012 at 1:25 AM Comments comments (0)


Anybody can write code. With a few months of programming experience, you can write 'working applications'. Making it work is easy, but doing it the right way requires more work, than just making it work.

Believe it, majority of the programmers write 'working code', but not ‘good code'. Writing 'good code' is an art and you must learn and practice it.

Everyone may have different definitions for the term ‘good code’. In my definition, the following are the characteristics of good code.

·         Reliable
·         Maintainable
·         Efficient


Most of the developers are inclined towards writing code for higher performance, compromising reliability and maintainability. But considering the long term ROI (Return on Investment), efficiency and performance comes below reliability and maintainability. If your code is not reliable and maintainable, you (and your company) will be spending lot of time to identify issues, trying to understand code etc throughout the life of your application.


To develop reliable and maintainable applications, you must follow coding standards and best practices.

The naming conventions, coding standards and best practices described in this document are compiled from our own experience and by referring to various Microsoft and non Microsoft guidelines.

There are several standards exists in the programming industry. None of them are wrong or bad and you may follow any of them. What is more important is, selecting one standard approach and ensuring that everyone is following it.


If you have a team of different skills and tastes, you are going to have a tough time convincing everyone to follow the same standards. The best approach is to have a team meeting and developing your own standards document. You may use this document as a template to prepare your own document.

Distribute a copy of this document (or your own coding standard document) well ahead of the coding standards meeting. All members should come to the meeting prepared to discuss pros and cons of the various points in the document. Make sure you have a manager present in the meeting to resolve conflicts.

Discuss all points in the document. Everyone may have a different opinion about each point, but at the end of the discussion, all members must agree upon the standard you are going to follow. Prepare a new standards document with appropriate changes based on the suggestions from all of the team members. Print copies of it and post it in all workstations.

After you start the development, you must schedule code review meetings to ensure that everyone is following the rules. 3 types of code reviews are recommended:

  1. Peer review – another team member review the code to ensure that the code follows the coding standards and meets requirements. This level of review can include some unit testing also. Every file in the project must go through this process.
  2. Architect review – the architect of the team must review the core modules of the project to ensure that they adhere to the design and there is no “big” mistakes that can affect the project in the long run.
  3. Group review – randomly select one or more files and conduct a group review once in a week. Distribute a printed copy of the files to all team members 30 minutes before the meeting. Let them read and come up with points for discussion. In the group review meeting, use a projector to display the file content in the screen. Go through every sections of the code and let every member give their suggestions on how could that piece of code can be written in a better way. (Don’t forget to appreciate the developer for the good work and also make sure he does not get offended by the “group attack”!)


Note :
The terms Pascal Casing and Camel Casing are used throughout this document.
Pascal Casing - First character of all words are Upper Case and other characters are lower case.
Example: BackColor
Camel Casing - First character of all words, except the first word are Upper Case and other characters are lower case.
Example: backColor

1.      Use Pascal casing for Class names

public class HelloWorld
{
            ...
}

2.      Use Pascal casing for Method names

void SayHello(string name)
{
            ...
}


3.      Use Camel casing for variables and method parameters

int totalCount = 0;
void SayHello(string name)
{
            string fullMessage = "Hello " + name;
            ...
}

4.      Use the prefix “I” with Camel Casing for interfaces ( Example: IEntity )

5.      Do not use Hungarian notation to name variables.

In earlier days most of the programmers liked it - having the data type as a prefix for the variable name and using m_ as prefix for member variables. Eg:

string m_sName;
int nAge;

However, in .NET coding standards, this is not recommended. Usage of data type and m_ to represent member variables should not be used. All variables should use camel casing.

Some programmers still prefer to use the prefix m_ to represent member variables, since there is no other easy way to identify a member variable.


6.      Use Meaningful, descriptive words to name variables. Do not use abbreviations.

Good:

string address
int salary

Not Good:

string nam
string addr
int sal

7.      Do not use single character variable names like i, n, s etc. Use names like index, temp

One exception in this case would be variables used for iterations in loops:

for ( int i = 0; i < count; i++ )
{
            ...
}

If the variable is used only as a counter for iteration and is not used anywhere else in the loop, many people still like to use a single char variable (i) instead of inventing a different suitable name.

8.      Do not use underscores (_) for local variable names.

9.      All member variables must be prefixed with underscore (_) so that they can be identified from other local variables.

10.  Do not use variable names that resemble keywords.

11.  Prefix boolean variables, properties and methods with “is” or similar prefixes.

Ex: private bool _isFinished

12.  Namespace names should follow the standard pattern

...

13.  Use appropriate prefix for the UI elements so that you can identify them from the rest of the variables.

There are 2 different approaches recommended here.

a.      Use a common prefix ( ui_ ) for all UI elements. This will help you group all of the UI elements together and easy to access all of them from the intelligence.

b.      Use appropriate prefix for each of the ui element. A brief list is given below. Since .NET has given several controls, you may have to arrive at a complete list of standard prefixes for each of the controls (including third party controls) you are using.


Control
Prefix
Label
lbl
TextBox
txt
DataGrid
dtg
Button
btn
ImageButton
imb
Hyperlink
hlk
DropDownList

how to create online poll system with percentage graphs using asp.net

Posted by imomins on October 8, 2012 at 1:05 AM Comments comments (0)
Introduction

Here I will explain how to create online poll system with percentage graphs using asp.net.

Description:

In many websites we will see online polls like which browser is best browser? We can submit our votes to these polls and they will display result with graphs after seen all these polls I tried to implement simple application for online polls with percentage graphs using as.net.
Here I am using XML to store all the poll options and retrieving all the options and displaying result based on polls options. Here I need to say one thing before implement this application I don’t know the exact purpose of XML whenever I implement this application I got idea regarding XML. XML is used to store the data and we can use it in any application and it will support for all the languages. Here I explained clearly how to insert and retrieve data from XML and how to bind that data to repeater

Here in my application I used only simple table concepts to display graphs I didn’t used any graph tools let see how I implemented

Design your aspx page like this 


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<style type="text/css">

.ButtonStyle {
background-color: #9EBEDE;
color: Black;
font-family: verdana;
font-size: 8pt;

}
.BarStyle
{

background-color: #996633;
}
.TablePollResultFoot
{
background-color: #B0C4DE;
font-weight: bold;
height:30px;
font-size: 13px;
}
.gridview
{
border: solid 1px #CCCCCC;
width: 100%;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="border:1px solid #9EBEDE" align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td  align="left">
<b><span style="color:#FF6600"> Online Poll Example with XML </span>  </b>
</td>
</tr>
<tr>
<td height="10px"></td>
</tr>
<tr>
<td  >
<b>which one is best browser?</b>
</td>
</tr>
<tr>
<td height="5px"></td>
</tr>
<tr>
<td align="left">
<asp:RadioButtonList ID="radVote" runat="server">
<asp:ListItem>Mozilla</asp:ListItem>
<asp:ListItem>Internet Explorer</asp:ListItem>
<asp:ListItem>Google Chrome</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>
<asp:Button ID="btnVote" runat="server" Text="Vote"
onclick="btnVote_Click" CssClass="ButtonStyle" />
<asp:Button ID="btnResult" runat="server" Text="Reult" CssClass="ButtonStyle"
onclick="btnResult_Click" />
<br />
<asp:Label ID="lblStatus" runat="server" />
</td>
</tr>
<tr>
<td align="left">
<asp:GridView runat="server" ID="gvResult" BackColor="White" CellPadding="4"
EnableModelValidation="True" AutoGenerateColumns="false"
onrowdatabound="gvResult_RowDataBound" EmptyDataText="No one submit votes">
<FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
<HeaderStyle BackColor="#4682B4" Font-Bold="True" ForeColor="#FFFFCC" />
<PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />

<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
<Columns>
<asp:TemplateField HeaderText="Options" HeaderStyle-HorizontalAlign="Left"  ItemStyle-Width="20%">
<ItemTemplate>
<asp:Label ID="lblOptions" runat="server" Text='<%#Bind("OPTION_NAME") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Votes" HeaderStyle-HorizontalAlign="Left"  ItemStyle-Width="10%">
<ItemTemplate>
<asp:Label ID="lblVotes" runat="server" Text='<%#Bind("VOTES") %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="15%">
<ItemTemplate>
<asp:Label ID="lblpercentage" runat="server" Text='<%#Bind("PERCENTAGE","{0:f2}") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Bar" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="55%" >
<ItemTemplate>
<table runat="server" id="tblBar">
<tr class="BarStyle"><td height="8px"></td></tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
After that add XML file to your application and give name as "Votes.xml" intially xml file like this root element is compulsory for XML files that’s why I added CommentInformation in XML file that root element in XML file.

<?xml version="1.0" encoding="utf-8"?>
<VotesInformation>
 </VotesInformation>
After that add this namespace in codebehind


using

Asp.net Read/insert data into XML file and bind data to DataList

Posted by imomins on October 8, 2012 at 1:00 AM Comments comments (0)
Introduction

Here I will explain how to insert data into XML and how to retrieve data from XML and how to bind data to DataList using asp.net.

Description:

XML means Extensible markup language why we need to use this one because by using XML we can store the data and we can easily retrieve and display the data without using database in our applications.if we need to display dynamic data in our application it will take time to conenct database and retrive data from database but if use XML to store data we can do operations with xml file directly without using database. If we store data in database that is incompatible to some of the computer applications but if we store data in XML format it will support for all applications. It is independent for all software applications and it is accessible with all applications.

Now I will explain inserting data into xml and retrive data from XML and bind data to datalist with simple example.

Design your aspx page like this 


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td style="width: 100px">
Name:</td>
<td style="width: 100px">
<asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px">
Location:</td>
<td style="width: 100px">
<asp:TextBox ID="txtLocation" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px">
Email:</td>
<td style="width: 100px">
<asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px" valign="top">
Comments:</td>
<td style="width: 100px">
<asp:TextBox ID="txtComments" runat="server" TextMode="MultiLine" Height="104px"></asp:TextBox></td>
</tr>
<tr>
<td></td>
<td>
<asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Submit" /></td>
</tr>
</table>
<br />
<asp:DataList ID="dlComments" Runat="server" Width="100%">
<ItemTemplate>
<hr size=0/>
Name: <%# DataBinder.Eval(Container.DataItem, "name") %><br />
E-mail: <a href="mailto:<%# DataBinder.Eval(Container.DataItem, "email") %>"><%# DataBinder.Eval(Container.DataItem, "email") %></a><br />
Location: <%# DataBinder.Eval(Container.DataItem, "location") %><br />
Date: <%# DataBinder.Eval(Container.DataItem, "Date") %><br />
Description: <%# DataBinder.Eval(Container.DataItem, "Description") %>
</ItemTemplate>
</asp:DataList>
</div>
</form>
</body>
</html>
After that add XML file to your application and give name as "Sample.xml" intially xml file like this root element is compulsary for XML files that’s why I added CommentInformation in XML file that root element in XML file.

<?xml version="1.0" encoding="utf-8"?>
<CommentsInformation>
 </CommentsInformation>
After that add this namespace in codebehind

using System.Xml;
using System.Data;

After that write the following code in code behind

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//Bind xml data to datalist
BindDatalist();
}
}
/// <summary>
/// btnSubmit event is used to insert data into XML file
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSubmit_Click(object sender, EventArgs e)
{
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(Server.MapPath("Sample.xml"));
XmlElement parentelement = xmldoc.CreateElement("Comments");
XmlElement name = xmldoc.CreateElement("Name");
name.InnerText = txtName.Text;
XmlElement location = xmldoc.CreateElement("location");
location.InnerText = txtLocation.Text;
XmlElement email = xmldoc.CreateElement("Email");
email.InnerText = txtEmail.Text;
XmlElement Description = xmldoc.CreateElement("Description");
Description.InnerText = txtComments.Text;
XmlElement date = xmldoc.CreateElement("Date");
date.InnerText = DateTime.Now.ToString();
parentelement.AppendChild(name);
parentelement.AppendChild(location);
parentelement.AppendChild(email);
parentelement.AppendChild(Description);
parentelement.AppendChild(date);
xmldoc.DocumentElement.AppendChild(parentelement);
xmldoc.Save(Server.MapPath("Sample.xml"));
BindDatalist();
}
/// <summary>
/// Bind xml data to datalist
/// </summary>
private void BindDatalist()
{
XmlTextReader xmlreader = new XmlTextReader(Server.MapPath("Sample.xml"));
DataSet ds = new DataSet();
ds.ReadXml(xmlreader);
xmlreader.Close();
if (ds.Tables.Count != 0)
{
dlComments.DataSource = ds;
dlComments.DataBind();
}
else
{
dlComments.DataSource = null;
dlComments.DataBind();
}
}
Demo



Download sample code attached
 
Check this post also here I explained


Rss_feed