Tuesday, October 7, 2014

Outlook Conversation Cleanup

Earlier there used to be a tool which will retain only the last thread of the email chain hence saving disk space for MS Outlook.
Just got to know that this feature is now available natively in Outlook. Just go through : https://support.office.com/en-US/Article/Use-Conversation-Clean-Up-to-eliminate-redundant-messages-4a0aa10b-8342-4f75-b78c-2b8ca23eca8d

Wednesday, September 24, 2014

Commandline to change firewal rules in Windows 7/8

I was looking for a commandline based approach to add new rules on Windows Firewall and it was simple to do:

  • First check if there are already some rules set:
    netsh advfirewall firewall show rule name=**App**
  • Then you add a separate rule for allowing input traffic (as required)
    netsh advfirewall firewall add rule name=**App** dir=in action=allow profile=public program=**App_Location** enable=yes
  • And a separate rule for allowing output traffic (as required)
    netsh advfirewall firewall add rule name=**App** dir=out action=allow profile=public program=**App_Location** enable=yes
  • Finally if required, the rule can be deleted
    netsh advfirewall firewall delete rule name=**App**

Tuesday, September 9, 2014

Automotic logon in to company intranet zone using Firefox

In AD based domain in company intranet, IE is the default browser and it does login automatically in to the intranet sites (in .NET it was Windows Authentication).

To do the same in firefox, do a "about:config" and the look for "network.negotiate-auth.trusted-uris". Add you company domains in there where you want automatic login like "bt.com"

Mozilla documentation : https://developer.mozilla.org/en-US/docs/Integrated_Authentication

Wednesday, May 28, 2014

Video Encoding Bitrates

480p HQ848x4802.51.60153664
576p HQ1024x5763.52.24217664
720p HQ1280x7205.03.203072128
1080p HQ1920x108012.07.687552128
1080p Superbit1920x1080N/A20.3220000320
and for older, non-widescreen content (with only 75% as many pixels)...

480p HQ640x4802.01.28121664
576p HQ768x5762.51.60153664
720p HQ960x7204.02.562432128
1080p HQ1440x10809.05.765632128
1080p Superbit1440x1080N/A20.3220000320

Source : http://www.lighterra.com/papers/videoencodingh264/

Sunday, April 6, 2014

REST Standards

Just wanted to save these 2 links which very well explains the naming standards for REST services:
  1. The short one - https://github.com/WhiteHouse/api-standards 
  2. The long one (Martin Fowler) - http://martinfowler.com/articles/richardsonMaturityModel.html

Thursday, October 3, 2013

Picasa: Renaming File Names to Picasa Captions

Some 5 years back, I wrote on this blog on how to set the caption of a image as it file name. In those days, I used to change the filename first and then set the caption for picasa. Now things have moved online and today I set the caption first is Google + (which did not exist then) and then downloaded the album to my local picasa and tried to rename the file. How to do it?

With some Windows commandline revision and use of Exiv2 I was able to achieve it. So here it goes.
  1. I assume that you have downloaded the picasa web album to a local folder using picasa.
  2. Open command window and type in :
    forfiles /C "cmd /c ..\exiv2 -g Exif.File name -g Iptc.Application2.Caption  -Pv @file" > files.txt
  3. This will create a file "files.txt which will look like :
    100.jpg             1. My caption
    where the 1st column is the File Name and the 2nd column is the given caption.
  4. Open the files.txt in Notepad++ and edit it. Replace the huge space between the filename and caption with some deliminator like ';'. The result should look like:
    100.jpg;1. My caption
  5. Now in the command window type in:
    for /f "tokens=1,2  delims=;" %i in (files.txt) do ren "%i" "%j.jpg"
    This will take the filename as the first token and caption as the 2nd token as we have used the deliminator ';' and then do a rename. Note that I have use %j.jpg" to give it the correct extension.
  6. And the job is done :)

Monday, February 25, 2013

Windows 7 : Windows event log error 4201

Today morning, I faced a new problem. When I tried to connect to my VPN, I got the following error:

"Could not start the Remote Access Connection Manager service on local computer. Error 1068. The dependency service or group failed to start."

That is simple. So I went to the Remote Access Connection Manager Service and found 2 dependencies : Telephony and SSL. Started both of them and tried to start the service again: Same Error !!

Hmm.. thats a problem. To know more details, I looked in to the Eventlog and now that too gave an error :

 The service has not started and when I tried to start the service I got the error :  Cannot start windows event log service on Windows 7. Error 4201.

Now that's a bigger problem. Something has gone real bad with my laptop. All the solutions pointed to deleting the "C:\Windows\System32\LogFiles\WMI\RtBackup" directory and to do so I need to go to Safe Mode. Now my company's laptop does not allow you to go to Safe Mode without a password. So what to do.

  1. Make a copy of the folder RtBackup - just to be safe.
  2. Take the ownership of the folder - From System to Yourself and reboot your computer
  3. Now that you are owner - you can delete the folder :)
  4. And yes post restart everything was back to normal.