ADAM'S WEB PRESENCE

20 November 2007

Thunderbird ate my mail

Filed under: General — adam @ 2:54 pm

If anyone has tried to email me yesterday or today (19/20-Nov-2007), it might be an idea to re-send your email ‘coz I’ve fallen victim to Thunderbird bug #323875

In summary, don’t ever use T-bird’s “Undo Delete Message” function! Under certain circumstances it can destroy a lot of your messages.


A good VHDL tutorial

Filed under: Nerd Notes — adam @ 9:38 am

I had to brush up on my VHDL recently for a project and I discovered the Low-carb VHDL Tutorial by Bryan Mealy.

I really wish I’d read this one back when I was getting started in VHDL. I wouldn’t have found it so hard. This document describes the basics of VHDL in a very clear and readable way. It’s well worth a look if you are wanting to learn VHDL.


15 November 2007

Moving a DirectShow window while paused

Filed under: Nerd Notes — adam @ 2:26 pm

directshowmoveproblem.jpegI’ve been writing a lot of DirectX / DirectShow stuff lately and I’ve come across a problem if I pause a video replay and then move the containing window. The playback window becomes separated from the containing window even though I am handling the WM_MOVE event.

You’d think that the following code would work:

void CMyWindow::OnMove()
{
    CRect r;
    GetClientRect(r);

// _piWindow is a pointer to my filtergraph's IVideoWindow interface.
    _piWindow->SetWindowPosition(r.left, r.top, r.Width(), r.Height());
}

It works fine if the video is playing but if the replay is paused, the active movie window will ignore the window move commands.

The solution was to trick DirectShow into thinking that you want to resize the window like so:

void CMyWindow::OnMove()
{
    CRect r;
    GetClientRect(r);

    _piWindow->SetWindowPosition(r.left, r.top, r.Width() + 4, r.Height());
    _piWindow->SetWindowPosition(r.left, r.top, r.Width(), r.Height());
}

12 November 2007

Moving day

Filed under: General — adam @ 10:00 pm

After moving house, I have also had to move my site to a new hosting service. I was previously hosting it from home but now I am on Web City.

Apologies to everyone who has been trying to view this site, it has been down for almost 6 days. I’ve been rather busy packing and moving. Also I thought it more important to get my friend’s and family web sites up first.

Hey, how about that. I finally found an opportunity to do some Slashdot-style hyperlinks!


Powered by WordPress