How can you not love this one?
http://www.phdcomics.com/comics/archive.php?comicid=1156
Friday, October 12, 2012
Monday, October 1, 2012
$$$ Get Access to Your Flash Cache! $$$
Have you ever needed (wanted) to access the flash content downloaded to your computer when it buffers (Youtube, other less reputable sites, etc.)? Well, if you are using Chrome under Linux, here are some handy tips (this should work with whatever browser you're using, but let's be honest, I'm too lazy to test it out - yet)
sudo lsof -n | grep Flash
Then, cd to the process id directory listed under all entries displayed that have (deleted) at the end. Then
cd /proc/[process_id]/fd/
and
sudo ls -l
to find the file that is (deleted). Next do
sudo cp [file] ~/Videos
or, for example if the file is '30'
sudo cp 30 ~/Videos/video.flv
Now, at this point you'll probably have to change owners to be able to watch it, or
sudo chown [your_username] video.flv
or
sudo chown benji video.flv
And there you have it! If you're looking for more flexibility, more options, or (a lot) more discussion about the topic, try the Sources listed below. Good luck!
Source 1
Source 2
sudo lsof -n | grep Flash
Then, cd to the process id directory listed under all entries displayed that have (deleted) at the end. Then
cd /proc/[process_id]/fd/
and
sudo ls -l
to find the file that is (deleted). Next do
sudo cp [file] ~/Videos
or, for example if the file is '30'
sudo cp 30 ~/Videos/video.flv
Now, at this point you'll probably have to change owners to be able to watch it, or
sudo chown [your_username] video.flv
or
sudo chown benji video.flv
And there you have it! If you're looking for more flexibility, more options, or (a lot) more discussion about the topic, try the Sources listed below. Good luck!
Source 1
Source 2
Rotate a PDF in Linux (and Other Fun Activities) - pdftk
For those of you who have ever needed to manipulate a PDF in Linux, I highly recommend pdftk, I've had great luck with it. Here's the best way to rotate a PDF:
sudo apt-get install pdftk
To rotate page 1 by 90 degrees clockwise:
pdftk in.pdf cat 1E output out.pdf
To rotate all pages clockwise:
pdftk in.pdf cat 1-endE output out.pdf
The page rotation setting can cause pdftk to rotate pages and documents. Each option sets the page rotation as follows (in degrees): N: 0, E: 90, S: 180, W: 270, L: -90, R: +90, D: +180. L, R, and D make relative adjustments to a page's rotation.
Unabashedly stolen from here.
sudo apt-get install pdftk
To rotate page 1 by 90 degrees clockwise:
pdftk in.pdf cat 1E output out.pdf
To rotate all pages clockwise:
pdftk in.pdf cat 1-endE output out.pdf
The page rotation setting can cause pdftk to rotate pages and documents. Each option sets the page rotation as follows (in degrees): N: 0, E: 90, S: 180, W: 270, L: -90, R: +90, D: +180. L, R, and D make relative adjustments to a page's rotation.
Unabashedly stolen from here.
Subscribe to:
Posts (Atom)