Wednesday, July 18, 2012

Add SD card contents to Windows Library

1. Click start, type CMD and then CTRL+ALT+Enter. This will run the command prompt with adminstrator permissions, and you should receive a UAC popup. The resulting command prompt will be at c:\windows\system32 2. Type cd \ and hit Enter to get back to the root of the c: drive 3. Type mklink /D /J SDHC D:\ and hit Enter. 4. Now go into Windows Explorer and browse to the root of the C: drive. You should see what appears to be a folder shortcut icon next to SDHC, however if you open it you will see from the address bar that Windows still thinks you're inside the directory C:\SDHC\whatever while you're really browsing your own SD card. 5. Go to each of your libraries, click 2 locations at the top of the window, and add the appropriate folders on your memory card by browsing through C:\SDHC

Wednesday, April 25, 2012

Pass data between pages in Windows Phone

Here's some very useful code to pass data to the second page. I'll add something more about how to get data or selection back.

protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
    if (this.NavigationContext.QueryString.ContainsKey("text"))
        this.textBlox2.Text = this.NavigationContext.QueryString["text"];


Friday, April 20, 2012

Create Default root password for Amazon EC2

When I want to change some files that are read-only to my account ec2-user, I will need to login to the root user so I can make change of them.

They way I create root password for Amazon EC2 is to use:

[ec2-user@AWS]#: sudo passwd root