Sometimes you have an image appear in your blog which is too large that causes problems with your WordPress theme. This is a common problem for WordPress blogs that have multiple authors, where some authors don't know how large the image they can post or new blogger who is not very familiar with CSS code.

Fixing this problem is absolutely easy with CSS hack. You only need to place following code in your stylesheet to set the maximum width for your image:

.postarea img {
    max-width: 500px;
    height: auto;
}

In the above code snippet, you have to replace postarea with whatever div ID or Class which is used in your theme for the content. And you can adjust the max-width properties to be suitable to your current theme.

As you see, it's absolutely simple to prevent image from being to large with just a CSS hack. Just do it now for your blog. But please note that this hack may not work on some versions of IE.

The following VB.NET code will help you to check whether a USB device is plugged in or taken out. No timer is used here.

Private WM_DEVICECHANGE As Integer = &H219
Public Enum WM_DEVICECHANGE_WPPARAMS As Integer
    DBT_CONFIGCHANGECANCELED = &H19
    DBT_CONFIGCHANGED = &H18
    DBT_CUSTOMEVENT = &H8006
    DBT_DEVICEARRIVAL = &H8000
    DBT_DEVICEQUERYREMOVE = &H8001
    DBT_DEVICEQUERYREMOVEFAILED = &H8002
    DBT_DEVICEREMOVECOMPLETE = &H8004
    DBT_DEVICEREMOVEPENDING = &H8003
    DBT_DEVICETYPESPECIFIC = &H8005
    DBT_DEVNODES_CHANGED = &H7
    DBT_QUERYCHANGECONFIG = &H17
    DBT_USERDEFINED = &HFFFF
End Enum

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
    If m.Msg = WM_DEVICECHANGE Then
        Select Case m.WParam
            Case WM_DEVICECHANGE_WPPARAMS.DBT_DEVICEARRIVAL
                MsgBox("USB device is just plugged in!")
            Case WM_DEVICECHANGE_WPPARAMS.DBT_DEVICEREMOVECOMPLETE
                MsgBox("USB device is just taken out")
        End Select
    End If
    MyBase.WndProc(m)
End Sub