Sunday, February 24, 2013

Rotate a Video 90 degrees with VLC


Rotate a Video 90 degrees with VLC 


Found this article from the site 

Very useful especially when the videos are taken in the mobile recorders.
Have you ever captured video with your cell phone or camcorder only to discover when you play it back on your computer that the video is rotated 90 degrees? Or maybe you shot it that way on purpose because you preferred portrait style to a landscape view? Before you go straining your neck or flipping your monitor on it’s side to watch your video, we’ll show you a few easier methods.
If you simply want to rotate the video while you watch it, we’ll show you how to accomplish that with VLC Media Player. If you want to convert the video so it is rotated permanently, we’ll show you how to do that with Windows Live Movie Maker and output your video as a WMV file.
Rotate and Watch a Video in VLC
Download, install, and run VLC Media Player. (See download link below)
 sshot-12
Open your video file by going to Media  > Open File… and browsing for your file. Or, by just dragging and dropping your video onto the VLC player.
 sshot-15
Choose Tools from the Menu bar and select Effects and Filters.
sshot-1
On the Video Effects tab, tick the Transform checkbox and choose your degrees of rotation. The video is rotated counter-clockwise, so to rotate clockwise 90 degrees you’ll want to choose Rotate by 270 degrees.
 sshot-2
Now you can enjoy your video the way it was intended to be viewed.
sshot-11

Saturday, February 16, 2013

Using pdf eXpress

Inorder to get your PDFs to pass the PDF check by the PDF eXpress,
you can use the command,
latex filename.tex
dvi2ps filename.dvi
ps2pdf -dPDFSETTINGS=/prepress -dSubsetFonts=true -dCompatibilityLevel=1.4 -dOptimize=true -dEmbedAllFonts=true -dMaxSubsetPct=100 filename.ps

The above commands generate a filename.pdf which will pass the IEEE PDF eXpress compatibility problem.

\m/

How to attach figures, images of pictures side by side to make one new picture in ubuntu

Hi,
I have two images image1.png and image2.png.
I wanted to combine these two side by side to make a new image combimage.png.

I tried using gimp and photo editor in ubuntu to manually keep the images side by side and save it as a new image. But I couldn't. I found this really useful command in a blog.

montage -tile 2x1 -geometry +0+0 image1.png image2.png combimage.png
This combines the images image1.png and image2.png to 2 rows and 1 column.

montage -tile 1x2 -geometry +0+0 image1.png image2.png combimage.png
This combines the images image1.png and image2.png to 1 row and two columns.

njoy!

Friday, February 8, 2013

How to install Arduino software on Ubuntu 10.04 LTS


How to install Arduino software on Ubuntu 10.04 LTS

The following steps are taken from the site, 
http://boreassolus.wordpress.com/2012/04/10/how-to-install-arduino-software-on-ubuntu-10-04-lts/

These are the steps I’ve followed to install the Arduino IDE and other required software packages on my Ubuntu 10.04 LTS laptop:

Remove the brltty and brltty-x11 packages since it is reported that they interfere with serial communication with Arduino boards. You can either use the Synaptic Package Manager or do it in a terminal window by typing:
sudo apt-get remove brltty

sudo apt-get remove brltty-x11

Install gcc-avr, avr-libc, and avrdude packages. These are needed for programing Atmel AVR microcontrollers and uploading the compiled programs to Arduino boards. You can either use the Synaptic Package Manager or do it in a terminal window by typing:
sudo apt-get  install gcc-avr avr-lib avrdude

sudo apt-get install avrdude-doc   (this is optional)

Install a Java Runtime. You can either use the Synaptic Package Manager or do it in a terminal window by typing:
sudo apt-get install openjdk-6-jre   (to install OpenJDK runtime)

sudo apt-get install sun-java6-jre    (or, to install Sun Java runtime)

Add yourself to the group “dialout” in order to have write-permissions on the serial port. In a terminal window, type:
sudo adduser username dialout

where username is your login name. Alternatively, you can use the Users and Groups GUI in System > Administration menu.

Download and extract the latest release of Arduino software for Linux.
Run the Arduino software by typing
./arduino

inside the directory where you’ve extracted the Arduino software.

Wednesday, February 6, 2013

Using bibtex with latex for IEEEtran formats

Make sure that your current directory shoud contain IEEEtran.bst and IEEEtran.cls files.
In your .tex file, just before the \end{document}, include these lines


\bibliographystyle{IEEEtran}
\bibliography{bibfile}

where \bibliographystyle{IEEEtran} uses the IEEEtran.bst and \bibliography{bibfile} is used to add the bibliography to your document.
Here, bibfile.bib is the document containing your references in bibtex format.

To compile in Kile, run
Latex
Bibtex
Latex
Latex

in the order given above.

Possible errors:
1. Something's wrong--perhaps a missing \item. \end{thebibliography}

This is infact a simple error and I spent about 3 hours debugging it just to find that I didnot include the .bst in my folder.
Another possible reason is when you use \bibliography{IEEEabrv, bibfile}. Jus delete the IEEEabrv.
Also, make sure there is atleast one \cite{} refering to any one reference in your document.
Everytime you run the above commands to correct this error, make sure to delete the previous .aux file from the working directory. The error may keep showing up just because it was pointing to the old .aux file. Jus delete .aux file before you proceed.

Happy texing..

Sunday, February 3, 2013

Converting png to eps in ubuntu

To convert png to eps, install the sam2p package from Synaptic Package Manager. Use the command,

sam2p filename.png EPS: filename.eps

The filename.png will be converted to filename.eps when the above command is executed in the terminal.


Secure copy of files between ubuntu systems

The syntax of the command for copying a folder from directory A in system user1@ipaddress1 to home directory in user2@ipaddress2 is given below:

Sign into the system as user1 and go to directory A in which the folder to be copied resides.
Then
scp -r folder user2@ipaddress2:~

The system will ask for the passwords and a copy task will be done. Here,
          -r is option to specify that a folder needs to be copied and not a single file.
          ipaddress of the logged in system can be found using the command ifconfig
          ~ specifies that the file is to be copied to the home folder of user2.

njoy!

     

Saturday, February 2, 2013

Open terminal from any folder in ubuntu

In the Synaptic Package Manager, install package
nautilus-open-terminal
Now logout and login again from your system. Go to any folder and right click it to get the option "Open in Terminal".

Converting ps to eps in ubuntu

The ps files in ubuntu can be converted to eps files by using the command:
ps2eps
Sometimes the eps files are seen clipped off. This is eliminated by -B option in the ps2eps command.
To overwrite existing files use the -f option.
So for good conversion the command is:
ps2eps -f -B <filename.ps>

enjoy!