skip to Main Content

Transactional File Manager Version 1.2 .1 Released

Version 1.2 of Transactional File Manager is now available on CodePlex.

Here’s the release notes:

Release Notes

This is a minor bug-fix/minor refactor release.
Fixes:

  • Copy now uses the overwrite parameter correctly.
  • Fixes crashing problem on some machines due to use of GetsequentialGuid.
  • CreateDirectory now supports rolling back nested directories.
  • RollbackFile Rollback() may throw exception when original directory has been deleted.
  • Security issue when writing to event logs.

Enhancements:

  • Upgrade solution/project files to Visual Studio 2010
  • Use NUnit instead of VSTS framework
  • Changes to support Visual Studio Express

Thanks to karbuke and dorong for their contributions.

Managing, Tagging, Organizing Videos with Picasa

I enjoy making taking and making short videos. My kids are usually featured in the videos in one way or another. Last year we went on a month-long vacation to Vietnam and I recorded a huge number of raw videos. With so many raw takes to work with, using Windows Explorer and browsing around without some system of tagging, keyword searching, etc. becomes extremely tedious and unmanageable.

So I started to look for a way to manage/categorize all of these raw videos and I think I’ve found a pretty good and free solution: Picasa (from Google).

The current version of Picasa for Windows (version 3.8) allows you to specify titles for images and videos, as well as assigning various tags to them. The user interface is very user-friendly. And the actual searches are typical Google-lighting-fast.

Using Picasa as a video manager

What I do is I go through each raw video take, give it a title and assign some tags. Then later I am able to very quickly search for videos. For example, if I need a take involving a dolly pan to the right, I just type “dolly pan” into Picasa and instantly the takes with those keywords come up.

WBR HTML Tag

The little known WBR tag is great for formatting HTML tables. Add it to specific places in your table cell values to give the browser the option to add a line break there. This is very useful when displaying tables with long strings that would otherwise cause horizontal scrolling.

Here’s a sample table, displaying some info. Since the values in the tables do not have spaces or tabs, the browser is forced to display the values on one line:

KeyValue
ChinhDo.TestApp.TestClass.ExampleKey1this.is.an.example.of.a.very.long.string

Here’s the same table, with <wbr/> tags inserted where periods are:

KeyValue
ChinhDo.TestApp.TestClass.ExampleKey1this.is.an.example.of.a.very.long.string

Getting the Starting Day of the Week for Any Date

From my code snippets, here’s a function that will return the starting day of the week for any date:

/// <summary>
/// Gets the start of the week that contains the specified date.
/// </summary>
/// <param name="date">The date.</param>
/// <param name="weekStartsOn">The day that each week starts on.</param>
/// <returns>The start date of the week.</returns>
public static DateTime GetStartOfWeek(DateTime date, DayOfWeek weekStartsOn)
{
    int days = date.DayOfWeek - weekStartsOn;
    DateTime startOfWeek = days>=0 ? date.AddDays(-days) : date.AddDays(-7 - days);
    return startOfWeek;
}

If anyone is looking for the original name in English/Spanish of the song “Ngày Vui Đêm Nay” (í ô à)

The original version is Cuentame (The Speak Up Mambo) by The Manhattan Transfer.

Knowing only the Vietnamese version, I had a hard time finding the original song. I hate that most “foreign” songs translated to Vietnamese simply have this in the credit line: “Nhạc Ngoại” (foreign song). If you are going to translate/record the song in Vietnamese, at least give proper credit to the original performer/composer.

Here’s the vietnamese lyrics to this song to help you googlers out there:

Í o à, í o a ê …
Í o à, í o a ề …

Chiều lắng xuống, rừng vang tiếng ca mừng
Lửa bốc cháy rực lên nhg tiếng ân tình,
Thiết tha ôi ngàn lời ca đắm say ngập trời ngất ngây

Này má thắm, này môi mắt đa tình
Làm say mê, làm ngây ngất ân tình
Trái tim theo nhịp vang vang đắm say triền miên thiết tha

Hãy vui đêm nay, nét môi thơm nồng ái ân !

( nhạc….. )

Hãy cho tim non đắm say mơ mộng vòng tay ân ái,
Hát lên muôn ngàn câu hát ngất ngây tình yêu đắm say !

Í o a, í o a ê …
Í o a, í o a ề …
Í o a, í o a ê …
Í o a, í o a ề …
u u u u u ….

Này má thắm, này môi mắt đa tình
Làm say mê, làm ngây ngất ân tình
Trái tim theo nhịp vang vang đắm say triền miên thiết tha

Hãy vui đêm nay, nét môi thơm nồng ái ân

Back To Top