Tech Guide Blog

Tech Guide Programming Tutorial Tips Tricks

Archive for the ‘Tips and Tricks’ Category

Validate XHTML YouTube Embed Video

Posted by Admin On August - 20 - 2009

What can I get by validating XHTML in my blog? Well, some people say it can help Uncle Google to read and crawl your site, because Uncle is older and older and more hard to do reading. Before I use this code, my blog home page is always not valid due to a reason, after I insert a video from YouTube, some warnings and errors always occur. I search and find some tips to make YouTube Embed Video that you’ve insert is valid. Let’s take a look first with YouTube default Embed Code.

<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/sJi6amKnNNE&hl=en&fs=1&"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/sJi6amKnNNE&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
</object>

That code above is not valid by W3C XHTML validator. So you have to change that code into something different than above.

<object type="application/x-shockwave-flash" style="width:310px; height:260px;"
data="http://www.youtube.com/v/XFcLU7hOeQI&hl=en&fs=1">
<param name="movie" value="http://www.youtube.com/v/XFcLU7hOeQI&hl=en&fs=1" />
</object>

This format above now is valid by XHTML Validator, but as you can see now, every YouTube Embed Code are always have ‘&’ ampersand. This is another problem that make your Embed Video is still not valid by XHTML Validator. For this problem, you have to change every ‘&’ to ‘&amp;’

<object type="application/x-shockwave-flash" style="width:310px; height:260px;"
data="http://www.youtube.com/v/XFcLU7hOeQI&amp;hl=en&amp;fs=1">
<param name="movie" value="http://www.youtube.com/v/XFcLU7hOeQI&amp;hl=en&amp;fs=1" />
</object>

That’s it. It’s working on my blog, may this tips can help you to validate your site when you insert an Embed Video from YouTube. You can comment if you want to ask or share about this article.

Popularity: 21% [?]

Auto-Resize Column in Detail-View

Posted by Admin On August - 2 - 2009

Okay, we have some folders that have a large amount of file. We usually use a detail-view to make us easier to manage and view these large amount of files. This detail-view can give you detailed info about your files, such as file size, file type and date modified. This picture below is my mp3s folder. In detail-view, Windows give me a detailed information about my mp3 files. The first column is the file name, followed by artist name, album name, track number, genre and rating.

Detail View in Windows Explorer

Detail View in Windows Explorer

Windows solved your problem of viewing large amount of files and Windows give you another problem. Windows will give you many useful information about a file, but sometimes they give you a massive information or you can say overloaded information and your window size can limit the information they gave to you. To make them fit to your window, they cut the information and if you want to see it, you have to resize the column by yourself. If you do it many times and always do resize manually when you open a folder, this will waste your time, thus you don’t have time to visit my blog.

Auto-Resized Column

Auto-Resized Column

This way can help you to do rezise quickly and easy. After you opened a folder, just press [Ctrl] + [+]. The window will resize the column to fit the information automatically. It will fit depends of the length of the information. As you can see above, the first column will follow the longest file name and the second column will follow the longest artist name respectively.

Popularity: 19% [?]

Fast Recovery Windows without Formatting

Posted by Admin On July - 26 - 2009

Does Windows XP or Vista not running as usual? Some missing shortcut and Windows wallpapers could make people feel uneasy and annoying. Maybe you’ve installed some programs but not successfully installed on your computer. After you’ve installed it, Windows can’t get itself run normally. Can’t run Task Manager, Windows always displaying error messages, you don’t have to format Windows. Windows has the built-in System Scan to check the current system files with the original files of Windows.

sfc/scannow

sfc/scannow

For XP you have to insert your XP installation CD to do scan and for Windows Vista, you have to run cmd.exe as Administrator to do this (both XP and Vista run this scan with Command Prompt). After you open it, type sfc/scannow and click enter to start the scan. It will takes some time. I tried this a long ago and it’s quicker, easier and safer than you do format.

This trick is kinda old, but for me this trick is one of the best way to recover and fix your Windows besides formatting. I once used it when still running XP and I lost my Windows wallpapers. I’m feeling uneasy when some of files of Windows are missing although they’re not so important, even not used by me. So I tried this trick and it’s work, feel relieve don’t have do format to get back my Windows wallpapers. Most of you maybe saying to me “You can copy your friend’s wallpapers, can’t you?”

Popularity: 10% [?]