Saturday, June 04, 2005
Friday, June 03, 2005
The Tech*Ed .NET Celebrity Charity Auction
With an auction starting on Monday, 22 of the top Tech*Ed speakers, including Microsoft employees (don’t worry we cleared it with Legal <g>), will together to help raise money for an organization that is doing amazing and heroic disaster relief and recovery in Aceh Province, Sumatra, the hardest hit area of the Dec 26th Tsunamis. Just like last time we will auction the time off on eBay, the link will be here in about 24 hours.
Although news of the tsunami has largely disappeared from the international press, five months later, the situation on the ground in Aceh remains acute. Many isolated communities have not yet been helped. Aceh Recovery at IDEP (www.acehaid.org) is continuing their efforts to get assistance to the people that are most in need through a dynamic network of local NGOs and partners on the ground in Aceh.
Here is the current list of speakers donating their time:
Don Box
Jesper Johansson
Richard Campbell
Scott Hanselman
Kimberly Tripp
Michele Leroux Bustamante
Kate Gregory
Juval Lowy
Stephen Forte
Clemens Vasters
Andrew Brust
Carl Franklin
Ingo Rammer
Christian Weyer
Joel Semeniuk
Rockford Lhotka
Patrick Hynds
Tim Landgrave
Tim Huckaby
Jackie Goldstein
John Goodyear
Richard Hundhausen
WHAT IS IDEP? IDEP is a small, Indonesian NGO, based in Ubud, Bali. Completed projects over the years have included community based development, sustainable living initiatives, permaculture training, waste management, organic gardens, recycling, etc. The focus is on helping people to help themselves. IDEP's founding director, Petra Schneider is a US-born, Indonesian citizen. The demonstrated and reproducible success of IDEP's small projects in local communities has earned the team an excellent reputation.
IDEP AND DISASTER RESPONSE/RELIEF/RECOVERY At the time of the Bali bomb, about two years ago, IDEP was an important element of the network of local NGOs and other supporters that quickly responded to the tragedy, in various ways, not only immediately after the bomb, but during the recovery process for the various communities involved. Following shortly thereafter, IDEP received funding from USAid to create a comprehensive set of disaster management materials for Indonesian communities, aimed at children, families, and local leaders (official and unofficial). The materials are in the Indonesian language and suitable for use in rural and urban settings. These materials, including a booklet for children about Tsunami preparedness, were finished just weeks ago, but had not yet been disseminated to communities. Then the tsunami struck.
WHAT IS ACEH RECOVERY AT IDEP Only hours after the news of the tsunami reached Bali, the same network of NGOs and individuals in Bali who had been involved in the relief efforts for the Bali bomb, reanimated and went into action. We started something called the "Aceh Aid Bucket Brigade" (see website), creating and deploying one-family-one-bucket multi-material aid packages from the hands of donors in Bali to the field in Sumatra. We began sending highly skilled volunteers, well-matched to the task within two days of the tsunami (Sam Schultz, Lee Downey, Oded Carmi and others). Our relief, and later, recovery programs in response to the Tsunami are now focused on two fronts. One is direct aid from Medan by road to areas around Banda Aceh. The other is this remarkable joint effort (nothing short of heroic), to the islands off the west coast of Sumatra, which as of yet, have not been receiving aid from any other channels that we know of. Read more at www.acehaid.org.
Wednesday, June 01, 2005
My personal project: The Palestine Information Center
The Palestine Information Center ( http://www.pitcenter.org) is a passion of mine. A very courageous friend of mine in the West Bank, Jihad Hammad, has created the PIT and put in most of the hard work so far. I am the Development Director and also sit on the Advisory Board (along with a few others you may recognize from this blog like Richard, Clemens and Goksin). I have donated a lot of my time and money to this effort in a bid to get it off the ground and off the ground it is!
The vision is simple. Create an IT Community/Training Center in a place that desperately needs one. Hold classes to get people certified in MS technologies (as well as Java and Linux). Provide a library and lifetime learning resource. A bridge to industry. Then mid to long term, have the center partner with local government, business and university to have the newly certified people work on projects under the direction of project managers at the center. The center can be a software and networking resource for the local industry and government. We would like to produce professional “white collar” workers in an economy that needs them, but also partner with the local industry to more easily place these newly trained people on projects.
The Al-Quds Open University has offered PIT the opportunity to use their lab free of charge for this beginning phase. The PIT curriculum would differ from the typical University Computer Science department courses as it would seek industry leaders to teach the courses with the goal of the courses to be industry certification and lifelong learning. We have four workshops under way. The first one is an Excel class to get started. It is in progress this week!
The Execl class in progress is for the Bethlehem Arab Society for Rehabilitation ( http://www.basr.org/) Ultimately we plan to target the MSCD and MSCE curriculum. For now we are just getting interest in the center amongst the population and the university students.
SDC Day 3- NO VOTE and Paintball
In the Netherlands today for the final day of the SDC and the NO vote to the EU charter was not a surprise after several long conversations with locals. after the vote they took us to play some paintball. Somehow I managed to get shot a lot. :)
Tuesday, May 31, 2005
SDC Day 2-The Damn Progress Meter
So last night during the geek night session at the SDC, the Dutch, inspired by Richard Campbell called me on my SMO Backup and Restore GUI that had a progress meter. They thought I was hacking it, not that I was actually providing a true representation of the progress made by the status of the backup. Here is the progress meter in action, as the database backup makes progress we update the progress meter:

To do a backup programmatically you can to use SMO (see yesterday). Begin by setting the variables to get started.
Server svr = new Server();//assuming local server
Backup bkp = new Backup();
Cursor = Cursors.WaitCursor;
Then you have to set the device to backup to and what database to backup. Notice in the comments the code to the progress meter
try
{
string strFileName = txtFileName.Text.ToString();
string strDatabaseName = txtDatabase.Text.ToString();
bkp.Action = BackupActionType.Database;
bkp.Database = strDatabaseName;
//set the device: File, Tape, etc
bkp.Devices.AddDevice(strFileName, DeviceType.File);
//set this when you want to do Incremental
bkp.Incremental = chkIncremental.Checked;
//progress meter stuff
progressBar1.Value = 0;
progressBar1.Maximum = 100;
progressBar1.Value = 10;
//this gives us the % complete by handling the event
//provided by SMO on the percent complete, we will
//update the progress meter in the event handler
//set the progress meter to 10% by default
bkp.PercentCompleteNotification = 10;
//call to the event handler to incriment the progress meter
bkp.PercentComplete += new PercentCompleteEventHandler(ProgressEventHandler);
//this does the backup
bkp.SqlBackup(svr);
//alert the user when it is all done
MessageBox.Show("Database Backed Up To: " + strFileName, "SMO Demos");
}
catch (SmoException exSMO)
{
MessageBox.Show(exSMO.ToString());
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
finally
{
Cursor = Cursors.Default;
progressBar1.Value = 0;
}
Here is the ProgressEventHandler, notice that I made it generic enough that I can call it from both the backup and restore methods!
public void ProgressEventHandler(object sender, PercentCompleteEventArgs e)
{
//increase the progress bar up by the percent
progressBar1.Value = e.Percent;
}
Monday, May 30, 2005
SDC Day 1-Sneak peak at SQL Server Management Objects (SMO)
The Software Developers Conference in the Netherlands has begun. Today I show how to prevent SQL Injection Attacks in ASP .NET as well as other cool tricks. Lots of RDs here and lots of happy attendees. As usual at SDC I will show something very new and cool. I will show off some of the new SQL Server Management Objects (SMO) in the keynote tonight. Ill give you a preview here.
The SMO object model is a logical continuation of the work done in SQL-DMO. SMO is feature-compatible with SQL-DMO, containing many of the same objects. . To achieve maximum data definition language (DDL) and administrative coverage for SQL Server 2005, SMO adds more than 150 new classes. The primary advantages of SMO are in its performance and scalability. SMO has a cached object model, which allows you to change several properties of an object before effecting the changes to SQL Server. As a result, SMO makes fewer round trips to the server, and makes its objects more flexible. SMO also has optimized instantiation, meaning that you can partially or fully instantiate objects. You can load many objects quickly by not instantiating all the properties of the objects. To get started you have to set a reference to it and pull in the namespace:
using Microsoft.SqlServer.Management.Smo;
Now I will show you how to programitically do a database restore. You start with getting the SMO objects: Server and Restore.
Server svr = new Server();
Restore res = new Restore();
Now take a look at how easy you can do a restore, just a few lines of code:
res.Database = “AdventureWorks“;
res.Action = RestoreActionType.Database;
res.Devices.AddDevice(“c:\mybackup.bak“, DeviceType.File);
res.ReplaceDatabase = true;
res.SqlRestore(svr);
There is a lot more that you can do with SMO, but this shows you how easy it is to manage your server from code. A very cool thing to do it put some of the server monitor stuff into an ASP .NET page for viewing your server stats from a remote location.
More on SMO to come...
Saturday, May 28, 2005
Wednesday, May 25, 2005
GrokTalk is Coming
At TechED 2005 US in Orlando, you will not want to miss the GrokTalks. Trust me. They break the mold and do not follow the MS party line. Stay tuned...
Monday, May 16, 2005
Free the Grapes!
24 states have laws barring interstate shipments of wine. This is done to protect state industry. It is foolish. This means if I travel to Napa and visit a vinyard that is small they can't ship me wine unless they are “doing business in New York State”. Might as well move back to the Soviet Union.
Anyway, today the Supreme Court agreed with me and overturned a NY and Michigan law.
|