Archive for the 'Software' Category

Silvertlight Spelling Error

Yes, you read that right. After the Visual Studio 2008 SP1 upgrade, here’s what my Help|About dialog looks like:

Spelling error in the VS 2008 SP1 Help|About dialog

Spelling error in the VS 2008 SP1 Help|About dialog

Look in the “Product Details” section at the bottom.

Advertisements

How To Back Up A MySQL Database From a Command Prompt

I just upgraded my WordPress installation to 2.6.3 and have some tips for you future Googlers.

To back up your database from the command prompt, type:

mysqldump –user=username –password=password databasename > filename

Example:

mysqldump –user=foo –password=123456 foodb > foodb.bak

How To Get The Current User in MySQL

To determine who you are currently logged in as in a MySQL command prompt, type the following:

mysql> select user()

or

mysql> select current_user()

How To Get The Current Database Name In MySQL

I just upgraded my WordPress installation to 2.6.3 and have a few tips to blog about for all of you Google searchers.

To find the current database in a MySQL prompt, type the following:

mysql> select database();

New F# Book By Chris Smith Coming Out in 2009

Chris Smith, a Microsoft SDET on the F# team, has a new book coming out next year called “Learning F#”.  I can’t wait to see it – there are only a handful of F# books at all right now, and we welcome a new addition.

If you’re into F#, you should add Chris’ RSS feed to your reader.  He has some great posts.

SICP Exercises in F#, Exercise 1.4

> let a_plus_abs_b a b =
 let add a b = a + b
 let sub a b = a - b
 if b > 0 then
  add a b
 else
  sub a b;;

val a_plus_abs_b : int -> int -> int

> a_plus_abs_b 1 -4;;
val it : int = 5

SICP Exercises in F#, Exercise 1.3

> let proc3 a b c =
 let sqr x = x * x
 let sum_of_squares m n = sqr m + sqr n
 let biggest m n = if m > n then m else n
 let smallest m n = if m > n then n else m
 sum_of_squares (biggest a b) (biggest (smallest a b) c);;

val proc3 : int -> int -> int -> int

> proc3 2 3 4;;
val it : int = 25