Mar 20, 2009

Data Visualization 's Power

Inventing new way of story telling on the web.

I guess Multimedia programmer will be the needs in a lot of industry.


http://go.visa.com/

Nice presentation of word in pictures.


http://www.sfmoma.org/projects/

Zoom power



http://www.flickr.com/explore/clock

View photos and video by time line. I like this feature.


http://code.google.com/creative/radiohead/viewer.html


More Data Visualization idea
http://vizlab.nytimes.com/
http://code.google.com/creative/radiohead/viewer.html

Info from http://adage.com/digitalnext/article?article_id=135313







Mar 15, 2009

C# List.Find() List.Exist() and Predicates

Example 1:

List myObjects = new List();

SomeObject desiredObject =
myObjects.Find(delegate(SomeObject o) { return o.Id == desiredId; });


Example 2:
Source from
http://msdn.microsoft.com/en-us/library/x0b5b5bc.aspx

using System;
using System.Collections.Generic;

public class Example
{
public static void Main()
{
List<string> dinosaurs = new List<string>();

dinosaurs.Add("Compsognathus");
dinosaurs.Add("Amargasaurus");
dinosaurs.Add("Oviraptor");
dinosaurs.Add("Velociraptor");
dinosaurs.Add("Deinonychus");
dinosaurs.Add("Dilophosaurus");
dinosaurs.Add("Gallimimus");
dinosaurs.Add("Triceratops");

Console.WriteLine();
foreach(string dinosaur in dinosaurs)
{
Console.WriteLine(dinosaur);
}

Console.WriteLine("\nTrueForAll(EndsWithSaurus): {0}",
dinosaurs.TrueForAll(EndsWithSaurus));

Console.WriteLine("\nFind(EndsWithSaurus): {0}",
dinosaurs.Find(EndsWithSaurus));

Console.WriteLine("\nFindLast(EndsWithSaurus): {0}",
dinosaurs.FindLast(EndsWithSaurus));

Console.WriteLine("\nFindAll(EndsWithSaurus):");
List<string> sublist = dinosaurs.FindAll(EndsWithSaurus);

foreach(string dinosaur in sublist)
{
Console.WriteLine(dinosaur);
}

Console.WriteLine(
"\n{0} elements removed by RemoveAll(EndsWithSaurus).",
dinosaurs.RemoveAll(EndsWithSaurus));

Console.WriteLine("\nList now contains:");
foreach(string dinosaur in dinosaurs)
{
Console.WriteLine(dinosaur);
}

Console.WriteLine("\nExists(EndsWithSaurus): {0}",
dinosaurs.Exists(EndsWithSaurus));
}

// Search predicate returns true if a string ends in "saurus".
private static bool EndsWithSaurus(String s)
{
if ((s.Length > 5) &&
(s.Substring(s.Length - 6).ToLower() == "saurus"))
{
return true;
}
else
{
return false;
}
}
}

/* This code example produces the following output:

Compsognathus
Amargasaurus
Oviraptor
Velociraptor
Deinonychus
Dilophosaurus
Gallimimus
Triceratops

TrueForAll(EndsWithSaurus): False

Find(EndsWithSaurus): Amargasaurus

FindLast(EndsWithSaurus): Dilophosaurus

FindAll(EndsWithSaurus):
Amargasaurus
Dilophosaurus

2 elements removed by RemoveAll(EndsWithSaurus).

List now contains:
Compsognathus
Oviraptor
Velociraptor
Deinonychus
Gallimimus
Triceratops

Exists(EndsWithSaurus): False
*/


Mar 14, 2009

Yahoo Messenger on WPF!

Thanks to great feature on WPF which enable Yahoo Messenger or other application communicate easily with Vista Sidebar.

Take a look.

Full story from on10.net
http://on10.net/Blogs/larry/yahoo-messenger-on-wpf/




Get Microsoft Silverlight





Aviary Web based Vector Editor

Aviary provided web based vector editor

http://aviary.com/flash/aviary/index.aspx



Several feature quite interesting included:
1. Web base, you can create great vector graphic any where as long as you have internet connection.
2. Great tools
3. Create highlights ( I like this feature very much )
4. Layer feature , quite similiar with photoshop layer, very useful!
5. Create shadows

Interesting and great tool!

Google Voice

Google Voice inbox

Soon, we will able to call or sms via web using Google Voice.
Still finding information about it's cost and comparison with Skype performance.

Google Talk ( web based ) is really impressive for me especially the smooth video conferencing just within a website.

Looking forward in this Google Voice service.

Google Voice's interface now fits in with other Google properties.

(Credit: Google)


Error the calling thred must be STA, because many UI components require this


Tips:


Thread thread = new Thread(new ThreadStart(CreateUIInAnotherThread));
thread.SetApartmentState(ApartmentState.STA);
thread.Start();

 
private void CreateUIInAnotherThread()
{
Window wd = new Window();
        wd.Show();
}




Mar 12, 2009

Tips for Limited Network Connection on Vista

Try out steps as below, it is a quick fix for me:

Quick Fix:
TCP/IP stack repair options for use with Windows Vista.

1. Start, Programs\Accessories and right click on Command Prompt,
select "Run as Administrator" to open a command prompt.

2. Reset WINSOCK entries to installation defaults: netsh winsock reset catalog

3. Reset IPv4 TCP/IP stack to installation defaults: netsh int ipv4 reset reset.log

4. Reset IPv6 TCP/IP stack to installation defaults: netsh int ipv6 reset reset.log

5. Reboot the machine.