Saturday, October 11, 2008
Samples of a guy recording his own voice for over 10 years. Complete sample here. Page can be found here.
Friday, October 10, 2008 11:27:47 PM (GMT Standard Time, UTC+00:00)
 Thursday, September 18, 2008

Viral marketing at its best.

Fun
Thursday, September 18, 2008 5:30:23 PM (GMT Standard Time, UTC+00:00)
 Thursday, August 14, 2008

When doing a text search in Visual Studio it sometimes happens that no appropriate matches are returned at all. This although you are sure that the correct search options are set and the queried text really does exist. By pure coincidence the following workaround was found: Just press Ctrl-Scroll and studio is back on the path!
This behaviour occurs in Visual Studio 2005 and 2008 as well.

Thursday, August 14, 2008 9:54:15 PM (GMT Standard Time, UTC+00:00)
 Wednesday, May 21, 2008

If you declare a read-only property as defined by the two ways below, you cannot bind a property to it by using IDE (database icon is not available in this case):

1.

private static DependencyProperty TextToDisplayProperty =

    DependencyProperty.Register("TextToDisplay", typeof(System.String), typeof(Activity1));

 

[Description("The text to output to the console")]

public string TextToDisplay

{

    get { return (string)base.GetValue(Activity1.TextToDisplayProperty); }

}

 

2.

 

private static DependencyProperty TextToDisplayProperty =

    DependencyProperty.Register("TextToDisplay", typeof(System.String), typeof(Activity1), new PropertyMetadata(DependencyPropertyOptions.ReadOnly));

 

[Description("The text to output to the console")]

public string TextToDisplay

{

    get { return (string)base.GetValue(Activity1.TextToDisplayProperty); }

    set { base.SetValue(Activity1.TextToDisplayProperty, value); }

}

 

Although there exists a crippled way to make it happen anyway here's the statement of the Microsoft Product Group :


"General guidance is that read only properties should not be bound. The UI allows it due to the bug. In dev10 we will fix this and it should no longer be possible through the designer, but probably still possible in code. Please avoid using this pattern. We know it works, but it’s not supported or tested. Anyway, we will not disable it in code, since we now know someone has a dependency on it."

.NET | WF
Wednesday, May 21, 2008 8:15:48 PM (GMT Standard Time, UTC+00:00)
 Thursday, February 28, 2008

A quite new portal worth mentioning is Downloadpedia. It is a free content software encyclopedia project and can be seen as a 'wikipedia' for software running under the open source label.

Thursday, February 28, 2008 10:31:51 PM (GMT Standard Time, UTC+00:00)
 Sunday, January 20, 2008

It took me quite a time finding useful hints on how to play MP3 with Windows Mobile. So here is what was found:

public class Sound

{

    static IntPtr hSound = IntPtr.Zero;

    const int SND_SCOPE_PROCESS = 0x1;

 

    [DllImport("aygshell.dll")]

    static extern uint SndOpen(string pszSoundFile, ref IntPtr phSound);

 

    [DllImport("aygshell.dll")]

    static extern uint SndPlayAsync(IntPtr hSound, uint dwFlags);

 

    [DllImport("aygshell.dll")]

    static extern uint SndClose(IntPtr hSound);

 

    [DllImport("aygshell.dll")]

    static extern uint SndStop(int SoundScope, IntPtr hSound);

 

    public static void Play(string fileName)

    {

        // filename must be absolute

        // e.g. \\Program Files\\Test\\phone.mp3

        SndOpen(fileName, ref hSound);

        SndPlayAsync(hSound, 0);

    }

 

    public static void Stop()

    {

        SndClose(hSound);

        SndStop(SND_SCOPE_PROCESS, IntPtr.Zero);

    }

}

 

Tested with Windows Mobile 6.

Sunday, January 20, 2008 7:06:56 PM (GMT Standard Time, UTC+00:00)
 Sunday, December 23, 2007

Playing around with stereo images I wanted to judge the 3D effect immediately. To do so I created a small tool displaying the image by alternating between the left eye / right eye picture. Maybe it is also useful for you.  

See the binaries or the sources.

Sunday, December 23, 2007 9:11:39 PM (GMT Standard Time, UTC+00:00)

Catching oneself using a mobile phone as replacement for a torch? This simple windows mobile app does nothing more than displaying the brightest white in fullscreen mode. Sometimes quite useful :)

Developed for PPC 2003, Windows Mobile 5 and 6. The .NET Compact Framework 2.0 (Service Pack 1 Redistributable) is also required. Torchy was tested successful on WM6, but not on the other platforms. Maybe someone out there wants to try it out and drop a comment.

Download the installer or the sourcecode.

Sunday, December 23, 2007 9:05:51 PM (GMT Standard Time, UTC+00:00)
 Wednesday, December 12, 2007

Public request for instant-on mechanisms on hardware coming along with decreasing prices on flash memory, tend manufactures to enhance their devices by flash based techniques. Some months ago Erdgeist and Frank Rieger held a nice talk about this trend and security related issues coming along. I like to sensitize by listing some of the main points:

  • Flash buffered hard drives could mean writing back whole main-memory content to flash.
  • Keep in mind that crypto-keys could be contained in memory dumps and so they also could be copied to the flash memory without your intend.
  • Flash memory is accessed via FAT mechanisms. Deleting a file will not delete its information physically; it just deletes an entry in the FAT. So watch out selling your old cards on eBay or be amused buying them :)
  • When a cell dies the current state (0/1) can still be read. So dead memory cards are nice toys for computer forensic investigators.
  • Flash memory cells write-cycles are limited to 10K or 1M times.
  • To avoid that some cells are massively accessed while others do not, manufactures built in algorithms to distribute access to the cells. So sensitive data could be automatically copied and is now spread multiple times on the card without your intention.
  • So before selling used memory, fill the cards with large files of useless data before deletion.
  • Use encryption for sensitive data.

Along with every security related issue: It is not meant to spread paranoia but it doesn't hurt knowing what's possible with our beloved daily gadgets.

 

The complete content can be found here or here.

Wednesday, December 12, 2007 9:36:05 PM (GMT Standard Time, UTC+00:00)
Latest Postings
Tags
History
<October 2008>
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
License
Except where otherwise noted, content on this site is licensed under Creative Commons Attribution 3.0 Unported License:
Creative Commons Attribution 3.0 Unported License