Archive for the ‘Personal’ Category
Posted by abhiitechie on August 30, 2009
Get the ffmpeg package first from the repo by
sudo apt-get install ffmpeg
Then follow the following command lines to get going
3gp to avi : ffmpeg -i source.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 destination.avi
flv to 3gp : ffmpeg -i source.flv -s 176×144 -vcodec h263 -r 25 -b 200 -ab 64 -acodec mp3 -ac 1 -ar 8000 destination.3gp
flv to mp4 : ffmpeg -i source.flv -vcodec h264 -r 25 -b 200 -ab 128 -acodec mp3 -ac 2 -ar 44100 destination.mp3
avi to mp4 : ffmpeg -i source.avi -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320×240 destination.mp4
mp4 to 3gp : ffmpeg -i source.mp4 -s 176×144 -vcodec h263 -r 25 -b 12200 -ab 12200 -ac 1 -ar 8000 destination.3gp
avi to 3gp : ffmpeg -i source.avi-s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -r 25 -ab 32 -y destination.3gp
mpg to 3gp : ffmpeg -i source.mpg -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y destination.3gp
Enjoy !
Posted in linux, Personal | Tagged: 3gp, avi, command, convert, ffmpeg, line, linux, mp4, ubuntu, video | 5 Comments »
Posted by abhiitechie on August 16, 2009
Hi people , this post is all about a project which I started roughly a month ago by the name of “QFlicks”. It was named so because the graphics library I chose to use is the popular Ot and the application is a movie collection cataloger which scans the disk for media files and gets film informations (duration, plot, cover ,rating ,poster cover , casts etc) from the popular Amazon’s http://imdb.com or the Internet Movie Database . It also allows the user to filter his possessions based on movie titles,genre,ratings , seen or unseen etc.
The later versions of the software will witness subtitle downloader extention and many more.
Here are the basic features which I plan to inmplement in version 1.0
- Scanning user-chosen directories to find media files (films in a first time)
Status : Done
How : Used a recursive OS walk algorithm to extract movies from all folders , sub-folders , sub-sub folders etc.
- Extracting film titles from file names (tough one if files are not properly named)
Status: Done
How: Using Neural Network algorithms and and basic Regular Expression.
- Create a list of these names in a database get films information (duration, plot, poster cover , rating , casts etc) from imdb
Status : Done
How: Used a library named IMDBPy as imdb.com does not provide and API (Another example of Amazon’s miserness). The database used is MySQL which experienced developers feel is a wrong choice for desktop.
- display films list and information of the selected one
Status: Done
Status: More or less done until someone comes out with bugs
- Filtering based on genre , title ,rating seen or unseen etc.
Status: Not Done
To Do: Learn multiple substring search in SQL ( SQL sucks , I hate it)
Status : The Gui is simple but not clean and hangs as I have not implemented the Multi-threading
To Do : Learn Multi-threading and make the network call fuctions run in separate threads in the background and also need to implement customized Progress Bars for UI
Plugins (towards upper versions):
- subtitle downloader
- playlist manager
- automatic new files inclusion (directory survey)
- music album and video series handling
Tools Used:
- Python as the Programming Language
- Qt as Graphics Library
- QtDesigner for the Gui
- SVN as versioning program
- MySQL as database software
- IMDBPy as the library
- GPLv3 licence
Here is the screen-shot of my Work :
The sourceforge Link for the project is :
Get the source from the Repository :
Current OS Support :
Gnu/Linux with Qt >= 4.5 and MySQL >= 5.0
Newbies who don’t know how to use SVN or are facing problems with code can mail me at
mailto: abhii.cse.nitdgp@gmail.com
The project is likely to see its first release on 24th of August 2009
Posted in mysql, Personal | Tagged: abhishek, catalogue, downloader, gupta, internet, link, manager, movie, mysql, nit, pyqt, qflicks, qt, sourceforge, subtitle, svn | 4 Comments »
Posted by abhiitechie on August 9, 2009
I was onto my usual facebook quizzes when my eyes fell on my friend Govind’s status which asked
“Kya Apke Toothpaste me namak hai ??”
This was enough to provoke something like this (see below) with the help of some more contributors namely my friends Alok Sharma and Piu Chatterjee .
Here is the list of the worst television advertisements ever…….
Govind Daga Kya aapke toothpaste mein namak hai!!??
Credits : Govind , Me , Alok and Piu
CopyLeft – All rights unreserved
Credits :
1. Govind Daga (Initiator)
2.Abhishek Gupta
3.Alok Sharma
4.Piu Chatterjee
Posted in Personal | Tagged: ads, advertisment, ever, television, worst | 2 Comments »
Posted by abhiitechie on May 20, 2009
Sun’s India Engineering Center (IEC) occupies most of the Divya Shree Chambers building off Langford Road in Bangalore. I kept on telling everybody that is near M.G Road but in reality it is nothing like that
Lunch (always a major preoccupation with me) is provided at the 5th-floor canteen, which gets very crowded around 12:45,hence sometimes we need to book the conference room to have our lunch . There’s a buffet of both Vegetarian and its non counterpart for a reasonable sum of Rs 35 /- (Very very cheap as per Bangalore standards but just a bit expensive as per Kolkata standards.)
For a change we can order fresh fruits , as I saw for some ladies who prefered them for the dieting routine.
The Sun break rooms have a great selection of teas, including elaichi (cardamom), masala (what Americans call chai spice), and ginger. Plus a selection of other hot drinks – cocoa, instant coffee, and flavored mixes that I haven’t quite understood yet.
There’s a machine dispensing hot water and hot milk to mix these with. There is also brewed coffee, chocolate powder,tomato soup mix and powdered,badam milk and many more .
Now coming to the important part that is WORK . The very first day I got my Badge ready for which there was a photo session sort of arrangement at the ground floor near the data-center . For the first time in my life I felt very important .
For those of you who don’t know what a Badge is , I will like to tell that it is card like thing with my photo and other details and chip and a magnetic strip .It comes to use at the security gates where we need to show it a sensor and only then the door opens .Besides this is used when we need to use a Sun Ray machine ( Runs on Solaris 10 and has a SPARC architecture) , it is inserted into a slot inside the machine.
Its is a really nice environment around to work with caring and loving seniours and and lots of respect for every employee . The working time is flexible ,by flexible I mean there is no fixed working schedule and timing or anything like that . When you are done with your work you can can go home and sleep and if its like you prefer to work nights then you can work in the office during the nights.
So I am kind of enjoying the experience as a Sun Intern and another news I have just heard that Sun IEC Bangalore will be celebrating its 10th birthday by throwing a huge party at a hotel called OTERRA at Electronic city and we are invited . So my next post will be on IEC 10 years of Engineering Excellence.
Posted in Personal, sun | Tagged: ambassador, bangalore, cafeteria, canteen, chambers, divyashree, experiences, IEC, internship, langford, microsystems, ray, road, sparc, sun | 11 Comments »
Posted by abhiitechie on May 18, 2009
VNC consists of two components. A server, which runs on the computer you want to remotely access, and a viewer, which runs on the computer you are sitting in front of. There are two important features of VNC:
- The server and the viewer may be on different machines and on types of computer. The protocol which connects the server and viewer is simple, open, and platform independent.
- No state is stored at the viewer. Breaking the viewer’s connection to the server and then reconnecting will not result in any loss of data. Because the connection can be remade from somewhere else, you have easy mobility.
So to get started with VNC you need to run a server, and then connect to it with a viewer. First of all, you have to download and install the software on the platforms you want to use.
VNC software requires a TCP/IP connection between the server and the viewer. This is the standard networking protocol on LANs, WANs, broadband and dialup ISP. Each computer has a unique IP address and may also have a name in the DNS. You will need to know the IP address or name of the server when you connect a viewer to it.
The VNC servers also contain a small web server. If you connect to this with a web browser, you can download the Java version of the viewer, and use this to view the server. You can then see your desktop from any Java-capable browser, unless you are using a proxy to connect to the web. The server listens for HTTP connections on port 5800+display number. So to view display 2 on machine ‘snoopy’, you would point your web browser at:
http://snoopy:5802/
The applet will prompt you for your password, and should then display the desktop.
Posted in java, Personal | Tagged: applet, browser, desktop, http, java, linux, network, remote, server, tcp, vnc, windows | 3 Comments »
Posted by abhiitechie on May 17, 2009
Here are some examples of using regular expressions for input validations in javascript.
var input = “hello222”;
var ok = false;
var dob_regex = /^([0-9]){2}(\/){1}([0-9]){2}(\/)([0-9]){4}$/; // DD/MM/YYYY
var email_regex = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/; // email address
var username_regex = /^[\w.-]+$/; // allowed characters: any word . -, ( \w ) represents any word character (letters, digits, and the underscore _ ), equivalent to [a-zA-Z0-9_]
var num_regex = /^\d+$/; // numeric digits only
var search_regex = “/hello/”;
var password_regex = /^[A-Za-z\d]{6,8}$/; // any upper/lowercase characters and digits, between 6 to 8 characters in total
var phone_regex = /^\(\d{3]\) \d{3}-\d{4}$/; // (xxx) xxx-xxxx
var question_regex = /\?$/; // ends with a question mark
1. Check that there are at least 3 numeric characters in input
if ( input.match(/d/g) == null ) {
ok = false;
} else if ( input.match(/d/g).length < 3 ) {
ok = false;
} else {
ok = true;
}
2. Check that the input has a minimum of 8 characters
if ( input.length >= 8 ) {
ok = true;
}
3. Check that the input is in a correct date format (DD/MM/YYYY)
if ( dob_regex.test(input) ) {
ok = true;
}
4. Check that the input is in a correct email format (username@example.com)
if ( email_regex.test(input) ) {
ok = true;
}
5. Check that the input matches the specified username format
if ( username_regex.test(input) ) {
ok = true;
}
6. Check that the input contains only numeric characters
if ( input.match(num_regex) ) {
ok = true;
}
7. Search for a specific word in the input
if ( input.search(search_regex) != -1 ) {
ok = true;
}
8. Check that the input matches the specified password format
if ( input.match(password_regex) ) {
ok = true;
}
9. Check that the input matches the specified phone number format
if ( input.match(phone_regex) ) {
ok = true;
}
10. Check that the input is a question (ends with a question mark)
if ( question_regex.test(input) ) {
ok = true;
}
Posted in Personal, web | Tagged: examples, expression, java, javascript, regular | 6 Comments »
Posted by abhiitechie on May 17, 2009
Java Forums
Sun forums Sun’s official Java forums
DZone Forums
PHP Forums
Posted in java, mysql, Personal | Tagged: code, developer, forum, forums, help, java, mysql, php, programming, rails, ror, ruby | Leave a Comment »
Posted by abhiitechie on May 8, 2009
After 36 hours of train journey (most of the time I was sleeping) , I am finally in Bangalore . Thanks to the office rush around 9 am , I enjoyed the pleasure of sleeping even in the prepaid auto which I took from the Yashwantpur station as I witnessed my second worst traffic jam ever , the first one being in Mumbai , that was in the evening. I am here for an Internship at Sun Microsystems Bangalore office and I am looking forward to have a nice time working for Sun. I have managed a temporary accomodation at one of my relatives’ house and would be searching for some ‘sasta’ PG type for my 2 month stay here . I had my lunch at some restaurant where I had to pay 50 bugs for a thali which I haven’t still been able to figure out what the hell it was . I soon realised that I had some real bad days awaiting me in terms of my ‘ khana pina’ though I was warned about it before hand from some of my seniours and friends staying at Bengluru.
Though its been not more than 10 hours here but one thing I have noticed about people here that they are very honest and calm in nature . Talking about the honesty I would like to share the fact that there were no TT’s to look for our tickets at the station . I am again feeling sleepy I donno what has happened to me so I feel like ending it here . More from Bangalore coming soon .
Posted in Personal, Uncategorized | Tagged: bangalore, city, city of joy, garden, garden city, internship, joy, microsystems, office, sun | 1 Comment »
Posted by abhiitechie on May 4, 2009
I feel really pity for Bharatiye Janta Dal (BJP) this time as I dont think that they stand a chance against Congress which is the party having a vibrant bunch of young leaders and workers . The Parliament desperately needs a major youth representation and Congress provides it with leaders like Rahul Gandhi (the hearth throb of the country as we see in the News), Sachin Pilot and many more . BJP , I think has really fallen short of agendas and is just monotonously sticking to issues like unemployment and lack of job security and overall country security under Congress rule which is actually very well known to the people that this issue can be in best controll under the UPA government under the leadership of the Man (Manmohan Singh Ji). From West Bengal point of view Mamta has hit the hammer on the head just at the perfect time getting together with UPA and I really feel sorry for Left as this time they dont seem to be Right with their decision of parting ways with the UPA on such extreme illogical reason like “Nuclear Deal with the US “(I have no idea what is wrong with them). I am a excited as ever with the Elections this time and really feel sad about the fact that I dont have my Voter ID card and not even my passport ready so that I can vote . Still I expect the citizens of the biggest democracy in the world to take the right decision as they do not always do but I am sure they will this time . JAI HIND !
Posted in Personal, Uncategorized | Tagged: 2009, abhishek, election, elections, loksabha, vote | Leave a Comment »
Posted by abhiitechie on April 28, 2009
- Exams are over and its time to chillax .
- Met some of the Final years and got some invaluable advice regarding career and future .
- Downloaded about 6GB of Hollywood flicks for the holidays .
- Planning to go home tomorrow in the evening by bus .
- Really sad about KKR’s performance .
- Got the Sun Internship confirmed . Need to go to Bangalore on the 5th of May.
Posted in Personal, Uncategorized | Tagged: abhishek, bangalore, BTech, engi, exam, gupta, internship, notes, over, random, sun | Leave a Comment »