Filed Under (Tutorials) by Karun on 07-12-2009
A lot of people today download videos (TV shows and movies) off the internet using torrents or Usenet. Most sources pack the videos in multi-part RAR archives to minimize loss in case of error prone transfer. Though this does not make much sense usually on protocols such as the bittorrent protocol but it does on the scene where data is transferred using FTP. In such cases, you are left with a lot of rar files that you have to keep (if you’re seeding on trackers) and extract every time you want to play them.
Some video players like VLC and XBMC came up with a solution. On the fly extraction of multi-part archives to play videos. Not all players support this though. Just recently, I came across something that can solve this problem. You can now use RARFileSource to get your favourite video player to read videos in RAR files and play them. RARFileSource is a DirectShow filter which let’s most video players read RAR files on the fly. The only restriction is that the video should not be compressed. Thankfully, this is the scene norm so you need not worry. Just install the application (117 KB) and drag drop a RAR archive on to your favourite video player. Works fine with MPC: HC for me and WMP for dt (who suggested this to me).
Now you can seed your files and play them from the RAR archives directly only extracting them when you need to give them to someone else ;) Cool, eh? :D
I have a whole load of movies that I’d like to generate a list of. I considered writing a batch script but it didn’t really do something I needed. I ended up writing my first regular use (non test) PowerScript and here’s how.
My first requirement was to list all my 1080p movies and for the list to leave out all the subtitles. So I was looking for a function to list files (dir in command prompt did that :)) and then remove files by extension. As it turned out, I could list files of a certain extension but not leave out files by extensions. Finally, I had to write the result to file (simple enough to do in command prompt. Use the > operator to direct output of the previous command to a file) So, a quick fix would be to use something like
dir *.avi *.mp4 *.mpg *.mpeg *.mkv /B /O N
For sub-folders, you can use tree and fiddle around the options but lets face it, as programmers, we want better solutions.
Since the launch of Windows 7, Microsoft has shipped PowerShell with the OS making it much more “main stream”. I had played around with PowerShell a couple of years ago when version 1 came out but I thought it was time that I actually made a regular use script.
The core of the script is using get-childitem to get all files and folders in a directory. From there, you can make it go recursive (and look inside sub directories) with a -recurse switch. Little bit of piping allows you to eliminate results you don’t need. For this, I wrote a simple function.
function fileCheck([string]$extention, [string]$attributes) {
# list of rejected extentions
$exts = “.srt”,”.sub”,”.idx”,”.txt”,”.lnk”
return $exts -notcontains $extention -and $attributes -ne “Directory”
}
As you’ve probably figured out, this function ignores those file extensions and directories as well from our final file list.
Once you have the list, you can either use $object.Name for full name (ie file name with extension) or $object.BareName for only the file name. On reading the source of my script, you’ll see I’m using both and also writing a count of the number of files in a file named list.txt. The first part of the file is a human readable list for your consumption using new lines for separation. The second is a single line output of all files using commas for separation and containing a file count at the end. The latter is simply for copy pasting into chats (like IRC) where you can’t spam with a huge multi-line list.
I went on then to add more code to handle command line inputs so that you can make shortcuts from folders and call the script. I have attached a couple of sample script calls
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command “& ‘C:\Users\Karun\My Scripts\filelist.ps1‘” “H:\Movies\HQ”
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command “& ‘C:\Users\Karun\My Scripts\filelist.ps1‘” “H:\Movies” “true“
The first one will call on the script and generate an output. The second will do so recursively. Simple enough? Go get the code and have fun with it!
View Script Source Code | Download Script Source Code
If you’re having trouble executing the script, you should consider signing your PowerShell scripts. Scott Hanselman has written a great post on how to do so. Go read it! You could simply Set-ExecutionPolicy to Unrestricted but then you’d be leaving your system open to attacks. Don’t blame anyone but yourself if you run someone else’s unsafe code and screw something up :) You have been warned :)
Filed Under (Hacks, Review) by Karun on 03-11-2009
 Firefox Aero Preview
Ever since I started using Win7 (first public beta) I have liked one thing about Internet Explorer that Firefox couldn’t do. This was the ability to use Win7’s Aero prowess completely rendering each tab in the Aero preview for Firefox. At the time, Microsoft hadn’t come out with the Win7 UX Interaction Guide but it’s been out for a few months and I was quite disappointed that Mozilla didn’t jump at the opportunity to release an upgrade.
A couple of weeks back, I saw screen shots of my friends’ browsers and noticed they were using Minefield. They confirmed that 3.7a1pre does indeed have full Aero support so I finally upgraded. I must say, it’s a great update.
As you can see from the screen shot, it doesn’t really like some pages in the Aero preview. I am pretty sure it’s an AJAX thing.
Of course, if you consider updating, quite a few of your plug-ins will not work simply because of the version compatibility checks. A simple way to by pass this is to install the Nightly Tester Tools to skip Firefox’s version compatibility checks. Most add-ons should work fine.
 Firefox with Strata Addons
There are a few add-ons I’d like to recommend with this alpha. Try checking out Strata40, StrataBuddy and StrataGlass. StrataGlass is amazing (works on any machine running on Vista/7) but it did give me problems on some pages so I disabled it. However, it is a great idea and it looked really nice. If someone irons out the wrinkles, I’d love to wear it everyday with my Firefox :)
 Ctrl+Shift+Tab after turning browser.ctrlTabs.previews on
Another small change I’d definitely recommend to users is going to about:config, past the warning, searching for the browser.ctrlTab.previews setting and setting the value to true (simply double click on it to toggle). After this, try Ctrl+Tab to get tab previews. If you think this is cool, try Ctrl+Shift+Tab to get previews with the ability to search between them. Doesn’t that make life easier when you have loads of tabs? ;)
I’d like to thank my friend Nitro for showing me the Strata add-ons and telling me about the Ctrl+Tab setting ;) Ctrl+Shift+Tab was purely luck ;)
PS: Manan asked me over twitter about the memory usage of Minefield 3.7a1pre and I must say, it’s quite low. In fact, with 8 tabs (none of which are heavy on AJAX other than the Wordpress panel), I’m using 125MB RAM. Though I’ve not confirmed it, I’d say that’s slightly lesser or the same as regular Firefox and Minefield even seems a tad bit faster and more responsive even with all my regular add-ons ;) Impressive :)
Filed Under (News) by Karun on 28-10-2009
You might have heard about Messenger Plus! Live, a Windows Live Messenger add-on that has over 62 million users already. I’ve been on their support forum for nearly 5 years now and been a beta tester for nearly 2 years.
Early on the morning of the 27th of October I stumbled upon a thread simply titled “New Elite Members” and I found this interesting since it was the first time in my 5 years on the forum that new additions to the staff were being made. I opened it to see who the lucky people were. I expected a couple of lads to be added but the list had more like 12 people.
The first 3 people were all ones I knew so I skipped straight to the bottom of the page to leave a congratulatory message for them. After typing that out, I continued reading the page and to my surprise I found my name on it :-|
I was absolutely shocked. I have spent a lot of time on the forum but over the past couple of years, my post count really hasn’t moved much more than a couple of hundred. I do however spend a couple of hours every day helping out on the Messenger Plus! IRC support channel but I didn’t really think any one noticed.
I must say, I am absolutely honored. The decision was made by the staff and for the fool who voted for me, I have to say “HAHA.. you totally wasted your vote :p”. But seriously, thanks a lot guys. Feels good to be part of the “staff” of a forum with over 85,000 users for a software which has over 62 million users.
The forum and IRC have given me a lot. They have taught me most of the things I know, give me loads of friends and great experiences. And then to be made an Elite Member.. it’s an honor.
My user bio now accurately represents my status in the community
Messenger Plus! User (since v2.x)
Messenger Plus! Live Official Tester (since v3.5)
Messenger Plus! Live IRC Help Chan Op (since 2008)
Messenger Plus! Live Elite Member (since 27/10/2009)
Now to become IRC oper (I’d probably need to kill segosa for that ;p), MVP and then take over the world!
Filed Under (News) by Karun on 02-10-2009
Windows 7 Launch Party is a party organized by individuals in their homes, offices or other commercial venues celebrating the launch of Windows 7 and showing off its prowess. Its being done through the House Party website and the only reason its not called that is because Microsoft didn’t want to restrict the venue to homes. Great PR is what I say.
Why am I giving you stale news? Well, this isn’t really news but I applied around the first week of September got selected first as a candidate host then got a confirmed host status. Last night I got an e-mail stating my party package is on its way.
All hosts will receive:
- One limited Signature Edition Windows® 7 Ultimate
- One Puzzle with Windows® 7 Desktop Design
- One Poster with Windows® 7 Desktop Design
- Ten Tote Bags with Windows® 7 Desktop Design for hosts and guests
- One table top centerpiece for decoration
- One package of Windows® 7 napkins
The package should arrive by this Tuesday or Wednesday. The party is planned for the 23rd of October at 7.00 PM and is an invite only party. So drop in a line and I’ll try to get people in :) After all, my room can only fit that many people in.. :P
Filed Under (News) by Karun on 14-09-2009
Ever wanted to ask what really goes on at Microsoft to a softie? Want to know about some random bytes of code inside Windows? Want to know who really killed Microsoft Bob? Well, here’s your chance!
Ask him about anything from life at Microsoft to questions on their product and business strategies. As he puts it, he will try to answer them without getting fired :P
I worked on Vista and Windows 7, and will also be working on Windows 8. Ask me anything you want about the company, culture, lifestyle, seattle, products, etc. and I’ll answer the best I can without getting fired.
He has put up some info for students looking at becoming Interns at Redmond. Most of it is the same stuff you’d read around the internet but here’s something I read for the first time and I must say, I agree with especially since this was how I got my trip to Redmond ;)
Also, there is one other way you can consider to try to get an internship. The Imagine Cup is a competition that Microsoft hosts for students. In the past, top ranked students from each region have been flown out for interviews at Redmond, skipping the whole screening process. I can’t promise that they will continue to do this, but if I ever saw a student who placed well in the imagine cup, I would definitely see it as being very positive.
I must say, the guy is brave. I think its a good move. There are a lot of misconceptions about Microsoft as a company. It isn’t (all) evil :P I wish I knew he was. I’d certainly like to meet him and have a chat :) If DrinkingKoolAid ever reads this (chances are surely slim), get in touch with me. The first round’s on me!
Filed Under (Thoughts) by Karun on 13-09-2009
I noticed that Dell had finally released updates for some of their drivers on their support site for a Dell Studio XPS 1640 on Windows 7 x64. I immediately started downloading them and after a reboot noticed that the update for IDT sound driver causes a freeze in any application trying to do anything related to sound. No updates on their track pad drivers it is so we continue to use Windows Vista drivers.
Speaking of IDT drivers causing serious woes, I would suggest to every Dell Studio XPS 1640 user planning to upgrade from Windows Vista to Windows 7 manually (ie. not using a ghost image provided by Dell) that you kindly DO NOT DO SO. Drivers such as the ones for IDT consume 40-50 CPU constantly for doing nothing of essence in the background. A simple “remove driver” wouldn’t work either. If Dell plans on shipping drivers like the current one, I would not even go to Dell for an upgrade to Windows 7.
Dell better come up with a fix quickly. I think I’ll call up Dell’s premium tech support just to tell them about this issue and hope its fixed quickly. On a side note, for some reason, side scroll on the track pad doesn’t work on Windows 7 in the current version of Firefox :( It works fine for every other software. Weird.
Update: Just talked to tech support. Seems I’m the only one who has issues. Weirdly enough, a reinstall of the driver seems to have fixed the issue. ¬¬ Some odd quirk I guess.
http://hax.gifpaste.org/?C=M;O=D
Filed Under (Hacks, Tutorials) by Karun on 10-09-2009
The first question in your head would be “Why the world do I need a Home Server?”
Good question. I’d like to ask you a couple of things. Do you have multiple machines in your house? Do you ever feel like you should have centralized storage in your house? Do you have old hardware simply lying around the house waiting to be tinkered with? Do you like playing with your machines?
If you said yes to (most) of the above questions, having a Home Server could help you :) It can handle not only centralized storage of media and documents but also backups. Have you ever needed a file from computer x in your house and found it was shut down after being used by a family member? Well, you wouldn’t have this issue if you had a central server. People could go around switching off their machines all they want as long as you have the file you want on your Storage Server.
Lets get into it then. From now, I’ll walk you through how to make your old machine into a Network Attached Server (NAS).
Read the rest of this entry »
Filed Under (Thoughts) by Karun on 01-07-2009
Sensible Vision came out with this pretty amazing software called FastAccess that does a decent job at facial recognition. But using it on Windows 7 has given me a few issues so I thought I should just talk about it.
I’ve been using Windows 7 ever since the first beta was made public. I have been using Sensible Vision’s FastAccess on every build I’ve used so far. Currently, my laptop is on Windows 7 build 7137.
I have 3 major issues with FastAccess.
- On every boot, it refuses to log me in. But if I logout/lock workstation and return a few times, it starts recognizing me. It seems as though it is not able to store its data and every reboot needs it to be recalibrated (even though there are different texts for the first software boot as opposed to every other time it starts up, it just seems that way).
- This is not really a Windows 7 specific bug but why can’t Sensible Vision start its software after the camera boots up? Not doing so seems pointless to me.
- Fine, you can’t bring the camera drivers up the boot order. I think I’ll just type in my password if you don’t mind. But FastAccess does mind. It actually logs me out 5 seconds after I logged in. I find this extremely irritating.
I have tried googling up for Windows 7 support and there seems to be none. In fact, when searching for “Sensible Vision FastAccess Windows 7″ on Google the second result you see is of this blog :|
First, I’d like to hear feedback from any FastAccess users out there who are on Windows 7.
Second, I’d like Sensible Vision to let its users know about its Windows 7 plans and whether it is planning to use something like the Windows Biometric Foundation (WBF) (Assuming they are applicable).
Note: As far as I’ve read so far, WBF seems to be for Fingerprint sensors though I’m hoping they might provide support for other kinds of biometric data such as facial recognition. Still looking into things though.
Filed Under (Events) by Karun on 29-06-2009
Firstly, I’d like to apologize to all that have been waiting for this. My health and unusually booked schedules are to blame. Lets get into the trip on a day to day basis then!
Before I begin, I’d like to thank Microsoft for having us in Seattle despite the prior two scheduling issues. More importantly, I’d like to thank Jas who did a great job of not only showing us around campus but around Redmond, Seattle, Bellevue, Kirkland and other neighboring places always making sure we get the best experience during our trip, getting a chance to try out different things and to keep each one of us happy. He really did make the trip perfect in every respect and for that I’d like to thank him on behalf of my entire team. Of course, thanks to the Interop team as well for having us there and giving us the opportunity to interview. The experience we bring back from meeting all those great people will indeed carry us a long way.
There are quite a few things that I saw a lot of which, I wasn’t allowed to take pictures of. If I was, I have uploaded them to my Picasa Web albums here.
Beware, the post is (4500 words) HUGE. Sorry about that. :P Without further adieu, let’s begin! Read the rest of this entry »
|
|