amy's lab

August 10, 2008

Domain Registration

Filed under: Website — Tags: , — amy @ 51

Nowadays, it is easy to register a domain and find a hosting company to host it.  The hard part is coming up with the name.  I tried several times before finding a domain that hasn’t been registered yet.  I didn’t want anyone to register it and I didn’t want to pay the full price of monthly web hosting service because my website was not ready.  I found the perfect solution.  1 & 1 Internet.  Domain registration only costs $6.99 a year.  In addition, I get many things like emails, private domain registration, a 5-page website, etc.  1 & 1 Internet also offers Linux and Microsoft web hosting.  The price looks pretty good, although I haven’t tried it.

August 7, 2008

NBC Olympics 2008 Website – No Support For Linux

Filed under: Using Linux Exclusively — Tags: , — amy @ 03

I was very disappointed to see this when I went to the NBC Olympics website.  Companies still focus only on Windows and Mac.  I was wondering if I could use Wine.  When using Windows, the website requires Silverlight 2.0 (beta?).  The executable is Silverlight.2.0.exe, but I thought Silverlight is still in beta.  A search on Wine AppDB reveals that Wine doesn’t support Silverlight.

NBC Olympics 2008 - No Support for Linux

NBC Olympics 2008 - No Support for Linux

August 5, 2008

C# Partial Class – Code Generation

Filed under: C# — Tags: , — amy @ 19

I found C# Partial Class to be very useful in code generation.  I could create a new class with the same class name and add my custom methods to that class, without having to worry about the code generator erasing what I wrote.  Before, code generators usually put some special tags in the code to identify an area where only the code generator can modify.  This is fine, but sometimes, either the code generator or the developer would make mistakes and make the code uncompilable.  With C# Partial Class, I could have something like this:

// MyClassGen.cs - this is generated.
// The file ends with "Gen" to denote a generated class.
public partial class MyClass
{
    // put generated code here
}

// MyClass.cs - this is where I add my custom methods
public partial class MyClass
{

}

This probably would be the only time that I would use C# partial class.

Blog at WordPress.com.