You have viewed words.

2

Firefox 4: How to capture Flash video from cache


Fire­fox 4 changed how the cache is stored. Until now it was easy to find cached Flash videos and copy them else­where to save them. On Linux, the new caching method plainly removes their entry from the filesys­tem and you can’t access them directly. But, of course, Fire­fox still can access the cached data ―through sym­links―, so we only need to fol­low the same path.

I will save you the read­ing ―just copy the fol­low­ing code to a new file called, for exam­ple, cpflash.sh, inside ~/bin, replac­ing /home/user/temporaldirectory with a folder where the script can process the files (keep it empty!) and /home/user/saveto with the folder where you want to store the cap­tured videos:

#!/bin/bash
tempDir="/home/user/temporaldirectory"
saveTo="/home/user/saveto"

if [ ! -d "$tempDir" ]; then
        echo "Error 1: $tempDir doesn't exist"
        exit 1
fi
if [ ! -d "$saveTo" ]
then
        echo "Error 2: $saveTo doesn't exist"
        exit 1
fi
now=$(date '+%s')
pid=$(ps -C plugin-container -o pid= | awk '{print $1}')
if [ "$pid" ]
then
        if [ -d "/proc/$pid/fd" ]
        then
                cd /proc/$pid/fd
                files=$(ls -al | grep Flash | awk '//{printf "%s ", $8}')
                if [ "$files" ]
                then
                        cp -v $files $tempDir
                        cd $tempDir
                        for i in *
                        do
                                mv -v $tempDir/$i $saveTo/$now$i.flv
                        done
                else
                        echo "Error 5: No cached flash videos were found."
                fi
        else
                echo "Error 4: Couldn't find /proc/$pid/fd"
        fi
else
        echo "Error 3: Couldn't get a PID for plugin-container"
fi

Now load the flash videos and, once they are fully buffered, run the script (if you put it inside ~/bin, you can just type “cpflash.sh”). The files will be copied from the hid­den cache to your des­ti­na­tion folder and renamed to avoid over­writ­ing the older ones. If you want to cap­ture more videos, close the tabs with the videos you already got, buffer the new ones and repeat.

And here are the great news: unlike the Fire­fox 3 cache (the one you could access through your pro­file folder, and where file size was capped at 64MB), this cache stores the whole video!

PS. If you found this use­ful, why not buy me a beer? Good karma keeps the world rolling!



0

Bestseller Theme 0.8.3 for WordPress released


This is a small fix release. I’ve added a meta link to favicon.png (or favicon.ico) at the root level. Also fixed a bug in the fea­tured post author link (you won’t notice it if your blog only has one author), and changed the lay­out of the blog title and blog descrip­tion for author archives so they look more like a Multi­User envi­ro­ment. The new lay­out (blog title is replaced with author name and author url, blog descrip­tion includes blog title with a link to the home page) isn’t defin­i­tive, but will do for now.



0

Bestseller Theme 0.8.2 for WordPress released


Some nice new things in this release. Check the Changelog for the full list.

Regard­ing the top bar (which can now be dis­abled), I want to remove it even­tu­ally, as it isn’t touch friendly and I feel it con­straints the style and steals too much focus from the con­tent. I’m still work­ing on an alter­na­tive menu.

The new spam IP black­list is meant only to help stop­ping dumb bots that ham­mer the blog in a short times­pan from the same IP. It’s prob­a­bly advis­able to flush the spam folder from time to time. The longer you keep spam com­ments the more likely it is that a legit­i­mate user may visit you from a black­listed IP.

The options page has been sorted, but it still needs work. I’m going to split the page in tabs and sim­plify the code, so I can fit eas­ily more options. Where pos­si­ble, I’d like to make the theme more flex­i­ble, so it can be used as a framework.



0

Word Stats 1.5.4 released


I’ve upgraded the Word Stats plu­gin to enable the monthly word counts page avail­able for more user roles. Now Admins and Edi­tors can view the counts for all users, and Authors and Con­trib­u­tors can view their own counts.

The word counts will include now drafts and posts pend­ing review. I will add later an option to tog­gle that.



0

Bestseller Theme 0.8.1 for WordPress released


Big update! Finally I added fea­tured posts to the design. I decided to make a bold choice and select posts with fea­tured images auto­mat­i­cally, rather than ask­ing the user to main­tain a “Fea­tured” cat­e­gory. I know from pre­vi­ous expe­ri­ence that can be a has­sle for aver­age users, and it’s also wrong to mix pre­sen­ta­tion and con­tent. Hope­fully “fea­ture” will be added some­day to the offi­cial Post For­mats, which were added in WP 3.1, although I would still favor auto­matic selection.

Another sim­ple but notice­able fea­ture I added is a rib­bon that pops on the upper left cor­ner of the entries which have attached ebooks. I may add later rib­bons for audio and video.

I brought back the cus­tom header sup­port. Best­seller doesn’t have the usual ban­ner header with a graphic back­ground; instead the cus­tom header image is used to upload the logo. Note that, due to the odd way WP imple­mented the image func­tions, it will con­vert PNG images to JPEG (and remove trans­parency) if they don’t have the exact dimensions.

I’ve sub­sti­tuted the typog­ra­phy for the blog name and the wid­get head­ings (and used it for the fea­tured post titles) for a ver­sion of Chunk­Five with accents. It’s more read­able and I think it looks more engag­ing. I also made my own graphic for the wid­get headings.

A cou­ple of fixes: I did a typo in the con­di­tion that hides the previous/next post links when the cus­tom field hide_navigation is true and it was work­ing the oppo­site way than intended. Also the links for the share on Twitter/Facebook but­tons weren’t being gen­er­ated prop­erly. You can read the rest of the changes in the Changelog.

I will refine these new fea­tures in 0.8.x. For 0.9 I plan to add a new main menu, a slideshow and make a feed aggre­ga­tor plu­gin (since I don’t like/trust the avail­able ones).



0

Welcome


Hello! My name is Fran Ontanaya and I’m an author and web­mas­ter. My friends and I were grow­ing frus­trated try­ing to find a design suit­able for pub­lish­ing fic­tion online, and since none could offer what we needed, I decided to cre­ate Bestseller.

Best­seller is a free theme for Word­Press 3.x designed spe­cially for writ­ers. The cur­rent ver­sion is 0.8.3what’s new? and was released on May 3rd, 2011. It is avail­able under the GPL-3.0 license.

Best­seller Theme and the related plu­g­ins include lots of fan­tas­tic fea­tures: print-like text body design, fea­tured posts, post blurbs, rib­bons for fea­tured posts with attached ebooks, 20 choices of typog­ra­phy, and so on and so on. Check the expanded list of fea­tures.

If you really like the con­cept, and you would like to see more fea­tures, bet­ter sup­port and faster bug fix­ing, please con­sider help­ing by mak­ing a con­tri­bu­tion, either with beta test­ing, com­ments, pub­lic­ity, code or funds.