Sunday, August 21, 2011

How to use Laptop / Notebook Battery

I found a news that might help most of laptop owners to get an idea about their Laptop/Notebook battery life related things.

news item describes things like, Battery Basics, How to check your battery, Best Practices and more.

"Best practices to maintain battery life

You'd think that the best way to keep your laptop's battery from wearing out is to not use it. Right?

As it turns out, batteries are like muscles; they need to be worked out regularly to stay healthy. Ideally, you'd use your laptop unplugged at least once a day, like on a train or bus commute or on the couch in front of the TV. If you're not going to use it, constantly charging your battery is a bad idea; HP recommends on their website that if you're going to leave your laptop plugged in or put up in storage for more than two weeks, you should take the battery out of your laptop."

source : yahoo.com


Friday, April 22, 2011

Bloomenergy - Bloom Box

new class of distributed power generator, producing clean, reliable, affordable electricity
technology link

Tuesday, December 21, 2010

Close Parent window from nested iframe child pages : javascript;

for : IE and FireFox

1:  <script language="javascript" type="text/javascript"> 
2: function CloseAll() {
3: if (top === self) {
4: alert('not iframed');
5: if (navigator.appName == "Microsoft Internet Explorer") {
6: self.close();
7: }
8: else {
9: var respnseVal = confirm("Do you wan't to close this window");
10: if (respnseVal) {
11: netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
12: window.open('', '_self');
13: window.close();
14: }
15: }
16: }
17: else {
18: alert('iframed');
19: if (navigator.appName == "Microsoft Internet Explorer") {
20: top.close();
21: }
22: else {
23: var respnseVal = confirm("Do you wan't to close this window");
24: if (respnseVal) {
25: netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
26: top.open('', '_self');
27: top.window.close();
28: }
29: }
30: }
31: }
32: </script>

FckEditor panels hide behind the Model Popup

Using FckEditor with asp.net model popup, there a possibility of Property windows hide behind the model popup panel

change the configuration value to higher value than existing
fckconfig.js and find this line:
FCKConfig.FloatingPanelsZIndex = 100005 ;// 100005 value can be changed according to the browser

: These z-index values can be checked using Element inspection facility of Firebug or IE developer Tool Bar, by applying appropriate values for respective panels (using styles) is another workaround

Wednesday, September 15, 2010

C# Windows, Iterate through Menu Items (MenuStrip)

for (int i = 0; i < this.menuStrip1.Items.Count; i++)
{
//main menus items
string mnuItemName = this.menuStrip1.Items[i].Name;
ToolStripMenuItem tmpMenuItem = this.menuStrip1.Items[i] as ToolStripMenuItem;

//check for sub menu
for (int j = 0; j < tmpMenuItem.DropDownItems.Count; j++)
{
string menuSubItem = tmpMenuItem.DropDownItems[j].Name;
}
}

Wednesday, September 09, 2009

One of my old favorite Games - Z (Strategy)



Z - strategy game

i used to love this game , it was quite fascinating strategy game around 1996

download : http://www.486games.net/game.php?id=173

Tuesday, August 25, 2009

Crystal Report XI - ASP.NET 2005, Not enough memory for operation.

Recently I have faced certain error when i was trying access Report Viewer in deployed asp.net 2005 application with Crystal Report XI/11 on IIS
error was :

Not enough memory for operation.

Exception Details: System.Runtime.InteropServices.COMException: Not enough memory for operation.

there was hundreds of solutions neither worked for me..
finally i have installed Crystal Report XI server .NET release 2 that worked :)

download crystal report run-times for Crystal Report XI at:
http://resources.businessobjects.com/support/additional_downloads/runtime.asp#06

Thursday, July 23, 2009

Enum To ListItem Collection

private System.ComponentModel.BindingList<ListItem> EnumToList(Type enumType)
{
System.ComponentModel.BindingList<ListItem> listItemBindingList = new System.ComponentModel.BindingList<ListItem>();
foreach (Enum item in Enum.GetValues(enumType))
{
ListItem lItem = new ListItem(item.ToString("D"), item.ToString("G"));
listItemBindingList.Add(lItem);
}
}



you can call the method
BindingList<ListItem> listItemBindingList = EnumToList(typeof(YourEnum));