Pages

Saturday 19 May 2012

Srt file reordering


You will find lots of srt files(i.e subtitles) not matching with your video sometimes if you download two files from different sources( If you download from same source you may not have this problem ). So in this case we can just reorder the time using simple programming. Just measure the time in milliseconds to reorder and you are done below i included one java code for the same . So please download it and your done just execute it .
It requires java run time to be installed in your machine. From command line go to the path where you have the jar file and execute
java -jar SrtReordering.jar
follow the instructions remember you have to enter the time in milli seconds. For any queries/suggetions please comment below.
link for the jar file is:
http://www.mediafire.com/download.php?s7sx8u3y8ozom1u

Thursday 17 May 2012

Google Plus User Count Program

I read an article about how to count the number of users on google plus. It says you can count the number of users in google plus by using its sitemap. The below is the URL for google plus sitemap .
So first you write a program which reads the url so it reads the xml file. In that xml you will find lots of sub url's those are text files so fetch all the url's into a list using any xml parser and recursively traverse all the url's and count the number of users.
The sub url file(i.e text file) will looks like the above picture. So while counting leave the entries with profile.google.com so at the end you will have the count of the number of users registered for google plus. In the xml file you will find an entry with the name modified date. So you can say you have the number of registered users on google plus up to that modified date.