jump to navigation

DataGridViewDataErrorContexts May 17, 2009

Posted by aminz in Uncategorized.
1 comment so far

Im trying to write an eventhandler to calls a function ShowCalculationInFields() when a checkbox in a datagridviewrow is checked.
I have tried this one:

private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex == 0)
{
ShowCalculationInFields();
}
}

But the CellContentClick event doesnt work since it only is called before a checkboxvalue is changed. It worked with this eventhandler for CurrenCellDirtyStateChanged:

private void dataGridView1_CurrentCellDirtyStateChanged(object sender, EventArgs e)
{
if (
dataGridView1.IsCurrentCellDirty)
{
dataGridView1.CommitEdit(DataGridViewDataErrorContexts.Commit);
}
}

I think ‘dirty’ just means that made a change to the current cell’s value but haven’t committed it by changing the focus to some other cell.
So an attempt is made to commit the change, using the CommitEdit() method, which requires a parameter of type DataGridViewDataErrorContexts to tell it in what context an error could occur. hat means We commit the change on Cell by force before its commit internally!!

Google’s 10 birthday. September 27, 2008

Posted by aminz in Uncategorized.
add a comment

Now-a-days we cant think a day without google.and also it makes us very informative.sometimes i search in google instead of searching a word in my dictionary.everything is very easy to find.As a software engineer i am in deep fear,if google stop its service definitely i have to search for new job. ha ha.whenever i need a simple solution at first i googling instead of thinking.

Google.com domain name was registered, September 15 1997, so the company will turn 11 next week.But i dont know why its 10th birthday.
From http://www.google.com/corporate/history.html

1995-1997

1995

* Larry Page and Sergey Brin meet at Stanford. (Larry, 24, a U Michigan grad, is considering the school; Sergey, 23, is assigned to show him around.) According to some accounts, they disagree about most everything during this first meeting.

1996

* Larry and Sergey, now Stanford computer science grad students, begin collaborating on a search engine called BackRub.
* BackRub operates on Stanford servers for more than a year — eventually taking up too much bandwidth to suit the university.

1997

* Larry and Sergey decide that the BackRub search engine needs a new name. After some brainstorming, they go with Google — a play on the word “googol,” a mathematical term for the number represented by the numeral 1 followed by 100 zeros. The use of the term reflects their mission to organize a seemingly infinite amount of information on the web.

1998

August

* Sun co-founder Andy Bechtolsheim writes a check for $100,000 to an entity that doesn’t exist yet: a company called Google Inc.

September

* Google sets up workspace in Susan Wojcicki’s garage at 232 Santa Margarita, Menlo Park.
* Google files for incorporation in California on September 4. Shortly thereafter, Larry and Sergey open a bank account in the newly-established company’s name and deposit Andy Bechtolsheim’s check.
* Larry and Sergey hire Craig Silverstein as their first employee; he’s a fellow computer science grad student at Stanford.

December

* “PC Magazine” reports that Google “has an uncanny knack for returning extremely relevant results” and recognizes us as the search engine of choice in the Top 100 Web Sites for 1998.

Whatever it…i know google is my friend.Wish a good success of google. JOY GOOGLE.

আজ শেখ মুজিবুর রহমান এর মৃত্যুবার্ষিকী August 14, 2008

Posted by aminz in Uncategorized.
add a comment

আজ ১৫ ই অগাস্ট , শেখ মুজিবুর রহমান এর মৃত্যুবার্ষিকী,১৯৭৫ এর এই দিনে তাঁকে নির্মম ভাবে হত্যা করা হয়,বর্তমানে বাংলাদেশে শেখ মুজিবুর রহমান কে নিয়ে কথা বলাটা একটা সমস্যা।আওয়ামি লীগ মনে করে শেখ মুজিবুর রহমান তাদের নিজেদের সম্পত্তি,আর বি এন পি ‘র মাঝে চিন্তা থাকে তাকে জিয়ার চেয়ে উঁচু স্থানে বসানো যাবেনা।কিন্তু সত্যটা হল-বি এন পি বা আওয়ামিলীগ আজ আছে কাল না ও থাকতে পারে কিন্তু শেখ মুজিবুর রহমান বেঁচে থাকবে -যতদিন বাংলাদেশ থাকবে।তিনি ছিলেন জনগনের নেতা,তৃণমূল পর্যায়ের মানুষ,সেই কারনে ই বাংলার মানুষ কে দেখাতে পেরেছেন সোনালি দিনের হাতছানি,হয়েছেন বঙ্গবন্ধু।কিন্তু ৭১ পরবর্তি সময় ই বিতর্কিত তাঁর কীর্তি র পাশে,নামের পাশে।আমরা জানিনা,আমাদের মত নতুন প্রজন্ম জানতে চায়।আমি ব্যক্তিগত ভাবে ‘সামরিক’ বাহিনী কে পছন্দ করিনা,পৃথিবীর প্রত্যেক দেশে ই সকল মানবতা নাশে সর্বাগ্রে থাকে সামরিক বাহিনী।শেখ মুজিবুর রহমান এর মৃত্যু তে ও অগ্রণী ভূমিকা তাদের।কিছুদিন আগে একটি বই পড়েছিলাম “তিনটি সেনা অভ্যুত্থান ও কিছু না বলা কথা”।অনেক কিছু জানার আছে বইটিতে শেখ মুজিবুর রহমান এর সম্পর্কে,১৫ ই অগাস্ট সম্পর্কে।অত্যান্ত অপ্রাসঙ্গিক ভাবে একটা কথা মনে হল-আচ্ছা সেনা সদর দপ্তর টি কে ঢাকা থেকে অনেক দূরে পাঠিয়ে দিলে কেমন হয় ?আমার কেন যেন মনে হয় ঢাকার  প্রাণ কেন্দ্রে এই শ্রেণীটিকে না রাখা ই ভাল ,তারা দেশের কেন্দ্রের যত দূরে থাকবে দেশের জন্য ততই মঙ্গল।আজ সেনা বাহিনীর কর্মকর্তা রা সারা দেশের মানুষ কে সৎ হবার উপদেশ দিতে দিতে কাহিল আর নিজেরা ভোগ করে দেশের সেরা সুবিধা সমূহ।অন্য যে কোন শ্রেণী থেকে যা হাজার গুনে বেশি,আমি প্রমাণ করে দিতে পারব একজন কর্ণেল বা ব্রিগেডিয়ার দেশ কে যা দেয় অন্য যে কোন সরকারি পেশাজিবী (বা বেসরকারি কর্মকর্তা)তা থেকে বেশি দেয়।কিন্তু তাদের জন্য দেয়া হয় ঢাকার প্রাণ কেন্দ্রে ‘ডি ও এইচ এস’ এর মত স্থায়ি জায়গা,বিরাট অংকের পেনশন,কিংবা মর্যাদা ।আজ তারা শুধু রাজনিতিবিদ দের দোষ দিচ্ছে,(আমি তা মোটে ও অস্বীকার করছিনা),কিন্তু স্বাধীনতার পর ৩৭ বছরের মাঝে দেশ কে শাসন করেছে সামরিক বাহিনী প্রায় অর্ধেক সময় প্রত্যক্ষ ভাবে আর অনেক সময় পরক্ষ ভাবে।
শেখ মুজিবুর রহমান কে বাংলাদেশের মানুষ কখনো ভুলতে পারেনা,কিন্তু আওয়ামিলীগ শাসন আমলে তারা নিজেরা ই শেখ মুজিবুর রহমান এর সবচেয়ে বড় ক্ষতিটা করেছে,অনবরত তাঁর কথা (অপ্রযোজনীয় ভাবে) বলতে বলতে,অপ্রাসঙ্গিকভাবে তাঁর নাম ব্যবহার করে তাঁর নামটার সবচেয়ে বড় অপমান টা করেছে।

যাঁরা মুক্তিযুদ্ধ সম্পর্কে একটু হলে ও জানে তাঁরা কি কখনো ভাষায় প্রকাশ করতে পারবেন ঐতিহাসিক ৭ ই মার্চের ভাষন শুনার সময় কেমন লাগে।আমার তো মনে হয় মার্টিন লুথার কিং এর ভাষন থেকে ও ৭ ই মার্চের ভাষনগুরুত্তপূর্ণ,পুরো পৃথিবীর ইতিহাসে এ ভাষনের তুলনা নেই।

জানিনা শেখ মুজিবুর রহমান এর খুনের বিচার হবে কিনা,তবে যদি তা না করা হয় এটা নিশ্চিত যে আমরা জাতি হিসেবে কখন গর্ব করতে পারবনা।যে জাতি তাদের স্বপ্নদ্রষ্টা র খুনের বিছার করতে পারেনা আমার মতে সে জাতির অস্তিত্ব ই প্রশ্নের সম্মুখিন হবে।

কিছু লিং দিলাম শেখ মুজিবুর রহমান এর স্মৃতির উদ্দেশ্যেঃ

৭ ই মার্চের ভাষন

উইকিপিডিয়ায় শেখ মুজিবুর রহমান

ডকুমেন্টারি

ছবি সূত্রঃ http://www.munshigonj.com/BangladeshSection/bbsh.jpg

Happy Friendship Day August 3, 2008

Posted by aminz in Uncategorized.
1 comment so far

Language is not matter in friendship

International Friendship Day is celebrated annually, on the first Sunday of August.we celebrate frienship day basically with them who we consider as our friends.we eat ,drink and enjoy with them.we give them cards,friendship bands and other gifts.we may also present yellow roses to to our friends.

Friendship is one of those rare relationships that we form on our own. Rest most of the relationships we inherit by birth. A true friend is a very rare commodity. And if we are fortunate enough to have one we should cherish it. Friendship Day is the celebration of true friendship. Gifts are an ideal way to convey your feelings. What to gift depends on the taste and temperament of you or your friend(s). It may be anything that in your opinion will reflect the spirit of the occasion in the best manner possible. Here are some of the gift ideas that you can opt for.

  • Surprise your friend or loved one and send a beautiful bouquet of fresh flowers or roses to them at work or at home.
  • Take your friend out on a lunch or a dinner and have a great time.
  • You can gift your friend a T-shirt, Cap or a bag with some friendship message written on it.
  • A wristband, or a wristlet with the name of friend. You can also gift your friend with a friendship tribute album featuring poems, quotations, greetings, old photos of you and your friend(s) and other pictures of your common interest.
  • If your friend is a female you can show your love with fine jewelry- a pair of diamond earrings, birthstone ring, or gold necklace.
  • Dedicate a song or some message for your friend through FM radio/TV channel.
  • Gift a box of chocolates/candies as a gesture of sweetness of your relationship.
  • Go out on a vacation with your friend.(Mirpur beribadh,Ashulia,Fantasy Kingdom etc..) There you can indulge in number of outdoor activities and spend some quality time together. It will strengthen your relationship.
  • Apart from this conventional gift items are always e.g. writing materials like pens, letter or writing pad, diary, planner; or utility items like watch, key rings, pen stand, telephone index, electronic notebook and so forth.
  • I always prefer to write a short notes to your friend.really its great.

Thanks to http://giftideas.indobase.com/

Show particular panel(s) July 30, 2008

Posted by aminz in Uncategorized.
Tags:
add a comment

I need a normal function which show a particular panel or panels and hide al other. I have ceated a simple way of showing the panel, I am using C#

private void HidePanels(String[] currentPanels)
{
ArrayList arr = new ArrayList();

ControlCollection cons = UPUsers.Controls[0].Controls;

// UPUsers is <asp:UpdatePanel> control
foreach (Control c in cons)
{
if (c.GetType().FullName.Equals(“System.Web.UI.WebControls.Panel”))
arr.Add(c.ClientID);
}

for (int i = 0; i < arr.Count; i++)
{
System.Web.UI.WebControls.Panel pnl = (System.Web.UI.WebControls.Panel)UPUsers.FindControl(arr[i].ToString());
pnl.Visible = false;
}

for (int j = 0; j < currentPanels.Length; j++)
{
System.Web.UI.WebControls.Panel pnl = (System.Web.UI.WebControls.Panel)UPUsers.FindControl(currentPanels[j].ToString());
pnl.Visible = true;

}

}

and a overloaded function is

private void HidePanels(String currentPanel)
{
ArrayList arr = new ArrayList();
ControlCollection cons = UPUsers.Controls[0].Controls;
foreach (Control  c in cons){
if (c.GetType().FullName.Equals(“System.Web.UI.WebControls.Panel”))
arr.Add(c.ClientID);
}

for(int i = 0;i<arr.Count;i++)
{
System.Web.UI.WebControls.Panel pnl = (System.Web.UI.WebControls.Panel)UPUsers.FindControl(arr[i].ToString());
if (pnl.ID.Equals(currentPanel)){
pnl.Visible = true;}
else{
pnl.Visible = false;}
}

}

তোমার জন্য July 24, 2008

Posted by aminz in Uncategorized.
add a comment

কোন এক কারিগর হয়তো বসে জামদানী শাড়ি বুনছে ;
তোমার অঙ্গে জড়াবে বলে যা উদগ্রীব হয়ে প্রস্তুতের
অপেক্ষায় । বাগানের ঐ শিউলি গাছটি প্রহর গুনছে
অধীর আগ্রহে রাতের জন্যঃ(নয়তো ভোরের)।

তোমার খোঁপায় সাজবে বলে যার এত করে
ঝরার ব্যকুলতা;অথবা সুঘ্রাণে ভরিয়ে দিতে ইচ্ছুক তোমার
ঐ মরাল গ্রীবা যেথায় ঝমঝমিয়ে ঝরে
জলপ্রপাতের শীতল ধারা-সাথী হয়ে সব সুধার।

মেঘেরা ও জট বাঁধতে শুরু করেছে-তোমার পথ
সিক্ত করবে বলে-তোমার ঐ দু পুদতলে
চুমু দিতে তারাও ব্যকুল-সাথে যুদ্ধে নেমেছে রোদ,
তোমার নাকে বিন্দু বিন্দু ঘাম দেখবে বলে।

দখিন হাওয়ারা সব হাতে হাত রেখে আসছে
ধেয়ে-তোমার আঁচলের সাথে খেলার মানসে-
হয়তো এ রকম হাজারো ঈশ্বর নেমেছে
ধরায় – তোমাকে তুষ্টির প্রয়াসে।

সবাই ব্যস্ত যখন বাজাতে তোমার আগমনী-
রচিতেছি বসে আমি শুধু তোমার বন্দনা হে সঙ্গিনী।

ফিরে দেখা একাত্তর(1971 in flashback) July 16, 2008

Posted by aminz in Uncategorized.
add a comment

প্রথমে ধন্যবাদ জানাতে চাই যারা অনেক কষ্ট করে এত সুন্দর একটি সংকলন প্রকাশ করেছেন।আমাদের গৌরবময় মুক্তিযুদ্ধ কে আমাদের সামনে নিয়ে আসার জন্য।সবাইকে অনুরোধ করব সংকলনটি পড়বার জন্য।

ডাউনলোড করতে পারেন এখান থেকে

আযোগ্য আমি July 15, 2008

Posted by aminz in Uncategorized.
Tags:
add a comment

যখন আমার খুব মন খারাপ থাকে
তখন খুব ইচ্ছা করে যেন মরে যাই।
না ,এটা আত্মহত্যার মতো নয়-আবার
কেমন যেন স্বেচ্ছামৃত্যু ও নয়।এ যেন সমস্ত পৃথিবীর তৈরী
অদ্ভুত নিয়ম গুলোর বিরুদ্ধে প্রতিবাদি মৃত্যু।
জানি সে মৃত্যু পৃথিবীর কোন নিয়ম ই পাল্টাতে পারবেনা।
বরঞ্চ আরো প্রতিষ্ঠিত করবে এই প্রচলিত মিথ্যা -যে
অযোগ্য লোকেরা ই মরে যায় কিংবা
মরে যাওয়াটা ই অযোগ্যতা।
ঐ দিন এই কথাগুলাই যখন তাকে বলছিলাম-
সে সবেগে মাথা নেড়ে বলে-”কেনো?আমাকে
যখন গভীরভাবে আদর কর তখন ও তো আমার কানে
ফিসফিসিয়ে বল-সোনা ,আমার একদম মরে যেতে ইচ্ছা করে”
তারপর ভ্রু-যুগল কাঁপিয়ে বলে-”তোমার মরে যাবার ইচ্ছাটা ই যদি এত্ত
তবে জন্মালে কেন ?”
আমি হাসতে থাকি
আমার সকল শক্তি তখন নিবুনিবু প্রদীপ হয়ে
ছাদে ঝুলতে থাকে-আমার অস্তিত্ব হয়ে।
সেই সাথে ভাবনাগুলো ও স্হির হয় এই ভেবে যে-
আমরা প্রতিনিয়ত আসলে মরতে ই চাই,
জন্ম থেকে আমরা এই একটা মুহুর্তের প্রতিক্ষাতেই আছি।

অনু কবিতা June 24, 2008

Posted by aminz in Uncategorized.
add a comment

ভালবাসার নীবিবাঁধন আমার গলায় দেয় ফাঁস,কানে দেয় তালা

তবু হৃদয় আমার ভালবাসিতে চায় ,বুঝিতে চায় ভালবাসার জ্বালা

Interesting June 22, 2008

Posted by aminz in Uncategorized.
1 comment so far

From site aharef.info

Websites as graphs

Everyday, we look at dozens of websites. The structure of these websites is defined in HTML, the lingua franca for publishing information on the web. Your browser’s job is to render the HTML according to the specs (most of the time, at least). You can look at the code behind any website by selecting the “View source” tab somewhere in your browser’s menu.

HTML consists of so-called tags, like the A tag for links, IMG tag for images and so on. Since tags are nested in other tags, they are arranged in a hierarchical manner, and that hierarchy can be represented as a graph. I’ve written a little app that visualizes such a graph, and here are some screenshots of websites that I often look at.

I’ve used some color to indicate the most used tags in the following way:

blue: for links (the A tag)
red: for tables (TABLE, TR and TD tags)
green: for the DIV tag
violet: for images (the IMG tag)
yellow: for forms (FORM, INPUT, TEXTAREA, SELECT and OPTION tags)
orange: for linebreaks and blockquotes (BR, P, and BLOCKQUOTE tags)
black: the HTML tag, the root node
gray: all other tags

here is the image for this site produce by aharef::

Follow

Get every new post delivered to your Inbox.