.NET Compact Framework Development mini-FAQ

Development

An attempt to call XmlSerializer.Deserialize() throws an InvalidCastException

Mostly happens when de-serializing containers of classes. As a result, a container with System.Object instances is produced. This is caused by absence of default constructor in the class that is stored in the container. Surprisingly, when developing a full .NET application, the compiler does detect this problem and issues a warning (not the case when developing .NET CF apps).

R cheat sheet

source('file.R') Load R file
dates = as.Date(as.character(L), "%m/%d/%Y") Convert vector of ASCII dates into real ones
str(obj) Show structure of an object
is.na(x) find N/As in data
apply(my_matrix, 1, function(i) { commands; }) Anonymous functions
a <<- b; Force a as a global variable inside the function

Testing Drupal blogging capabilities...

Testing. Testing. 1-2-3. This is a test...


#include

int
main(void)
{
return 5;
}

Taking off the wraps.

Yes, this is my new homepage. If you think it's ugly, take a look at my first homepage and your life will never be the same.

Syndicate content