Download streamed video
Online video providers tend to stream the video to a javascript player, so making it extremely difficult to capture the video. This blog explains a method using Chrome to spoof the user agent string, pretending to be an iPad. Unfortunately, this doesn’t seem to work any more in the latest version of Chrome.
So I tried installing a user agent spoofing plugin in Firefox. It seemed to work, but the video didn’t play, so I couldn’t find the url. I next tried Firefox on my Android tablet and the video played. To find the url of the video I used Firefox remote debugging. This page describes how to set it up in detail.
Read more →Concurrency, Threads, Semaphores and Mutexes
I have written several applications in both Java and C that involve running an audio thread in the background to read or write audio from or to the audio system while displaying the results and interacting with the user in the foreground. I have used lots of threads, but never a semaphore or mutex apart from the odd boolean variable.
This issue is reminiscent of back in the day when you actually had or could get a circuit diagram of your computer and could understand it. One of the first machines I had suffered from display corruption when the display was updated due to contention between the processor and the display system. It was fairly simply fixable by using a spare inverter to reverse the phase of the display system clock to remove the contention.
Read more →Upgrading WordPress
This site has the firewall set up so that the web server has no external access. This means that I can’t use the usual WordPress update mechanism to keep it up to date. I use FileZilla for maintaining the server, and I recently discovered you can use drag and drop to move stuff around remotely.
So my easy WordPress upgrade method is:
- Download the latest zip file and unzip it.
- Rename the wordpress folder to something else, like wordpress-old.
- Upload the new wordpress folder.
- Move the stuff you need from the old wordpress-old folder, like themes, plugins, uploads, any modified theme files and your config.php file.
- Check it works and upgrade the database.
- Remove the old wordpress-old folder.
Nearly as easy as letting it do it itself.
Read more →Faggots and Peas with Onion Gravy
When I was a teenager the chippy at Preston, Weymouth, Dorset used to serve faggots and peas with gravy in those aluminium foil containers that take-away Chinese used to come in. Enough for 2.
Ingredients
- 3-5 faggots
- Frozen or fresh peas
- Truly Evil Onion Gravy
Method
- Start the gravy first as it takes a while to render the onions down.
- Once the onions are well done, put the faggots in a tin and place in a medium hot oven – 180° C, until they are starting to brown.
- Cook the peas in accordance with the instructions. When they are done, use the cooking water for the gravy.
- Serve, pouring the gravy over the faggots and peas.
Truly Evil Onion Gravy
Black onion gravy to go with faggots, sausages or whatever takes your fancy.
Ingredients
- 3 medium onions, sliced
- 1 tablespoon plain flour or cornmeal (polenta)
- 1/2 vegetable stock cube, crumbled
- Boiling water or cooking water from vegetables
- Vegetable oil
Method
- Cover the bottom of a small pan with oil and place on medium heat.
- Put the onions in the pan and cook, stirring with a fork until reduced to brown/black sludge.
- Add flour/cornmeal and stock cube and continue to stir over the heat until combined.
- Turn down the heat and pour in the boiling water carefully. It will bubble violently and give off extremely hot steam.
- Keep stirring as it thickens and add more water if necessary.
If using with sausages, if the sausages are cooked in the oven in a grill pan, pour off the fat when the sausages are done, pour the vegetable water into the pan, try to get as much gunge off the bottom of the pan as you can before pouring it into the gravy.
Read more →