Monday, 21 April 2014

Install Java 8 Ubuntu

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

Wednesday, 2 April 2014

sstable2json for cassandra usage

I found the documentation to be incorrect, but this is how I use it on aws:

sudo touch /jsonfile
sudo chown ubuntu:ubuntu /jsonfile

sudo /cassandra/bin/sstable2json /cassandra/data/keyspacename/sstabledirectory/sstablename-data-db > /jsonfile

enjoy (thats not part of the code)

Tuesday, 25 March 2014

Convert wmv to mp4 for free

When you look around for solutions to this problem, you are usually met with either paid software, or free software bundled with spyware. When all along, there has been ffmpeg, an application that will convert most formats, and is freely available with a big community, and no spyware.

To convert an wmv to an mp4, heres what you need to do:

For Windows:

Download the ffmpeg application here:

http://ffmpeg.zeranoe.com/builds/ (pick 32 or 64 bit as required)

If you dont have 7zip, download it here 

http://www.7-zip.org/download.html

and install it.

Now extract the ffmpeg 7zip file. Now navigate in to the extracted directory and see a file called:

ff-prompt.bat

double click it to open the ffmpeg command prompt. With the command prompt open, type this command and press enter to begin the conversion:

ffmpeg -i c:\pathToInput.wmv -f mp4 -s 500x400 -strict -2  c:\pathToOutput.mp4

For Linux, do:

sudo apt-get install ffmpeg

open terminal, and run command:

ffmpeg -i /pathToInput.wmv -f mp4 -s 500x400 -strict -2  /pathToOutput.mp4



Convert flv to mp4 for free

When you look around for solutions to this problem, you are usually met with either paid software, or free software bundled with spyware. When all along, there has been ffmpeg, an application that will convert most formats, and is freely available with a big community, and no spyware.

To convert an flv to an mp4, heres what you need to do:

For Windows:

Download the ffmpeg application here:

http://ffmpeg.zeranoe.com/builds/ (pick 32 or 64 bit as required)

If you dont have 7zip, download it here 

http://www.7-zip.org/download.html

and install it.

Now extract the ffmpeg 7zip file. Now navigate in to the extracted directory and see a file called:

ff-prompt.bat

double click it to open the ffmpeg command prompt. With the command prompt open, type this command and press enter to begin the conversion:

ffmpeg -i c:\pathToInput.flv -f mp4 -s 500x400 -strict -2  c:\pathToOutput.mp4

For Linux, do:

sudo apt-get install ffmpeg

open terminal, and run command:

ffmpeg -i /pathToInput.flv -f mp4 -s 500x400 -strict -2  pathToOutput.mp4


Monday, 20 January 2014

find large files on linux hard drive

sudo find / -name '*' -size +1G 

sudo find / -name '*' -size +500M

or 

sudo find / -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Monday, 30 December 2013

delete the dashboard screen on os x mavericks

open terminal and type

defaults write com.apple.dashboard mcx-disabled -boolean true

press enter

then type

killall Dock

to relaunch and dashboard should be gone