Friday, February 24, 2012

Make NoScript permission toggle permanent

This also works if you've set 'Left clicking on NoScript toolbar button toggles permissions...'
CTRL + SHIFT + \ (backslash) toggles allowance status for the current top-level site temporarily by default, to make it permanent set the about:config noscript.toggle.temp preference to false.

Labels: , , , , ,

Thursday, February 16, 2012

Convert videos and extract audio with ffmpeg

Extract mp3 from avi:
ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 sound.mp3

Convert flv to avi:
ffmpeg -i source_video.flv -sameq final_video.avi

More information: http://www.webupd8.org/2009/08/ffmpeg-cheat-sheet-19-best-practices.html

Labels: , , , ,

Download flash video from any website

Tutorial is for Firebug extension (works with Opera Dragonfly and Chrome Inspector too).
  1. Open Firebug
  2. Select Net tab and enable if it's disabled (other mentioned browsers have Network tab)
  3. If you see any text, click Clear
  4. Reload the page and play the flash video if it doesn't load automatically
  5. You can find wanted file by: it's extension, it's size, it's loading time.
  6. Right click on it, select Open in New Tab.
  7. You can see the wanted flash video and Ctrl+S to save it.
    If you want to see only the video request, you can try clearing Firebug request log as in step 3 and move video cursor to some other position and then move it to the very beginning of video (or otherwise you'll end up downloading a video starting from the last position you chose). You can convert flash videos to other formats with ffmpeg tool.

    Thanks to: geeklad.com/download-flash-video-from-any-website

    Labels: , , , , ,

    Sunday, February 5, 2012

    Curved shadow in Photoshop

    1. Create a new layer, select Ellipse Tool (U) and draw a shape:

    2. Cut it in half (or the shadow won't look good later):
     

    3. Right click on the layer and choose Convert to Smart Object.

    4. Apply Gaussian blur filter: Filter - Blur - Gaussian Blur... (I chose 4 px for that):

    5. Right click on the layer and choose Rasterize.

    6. Cut off or hide the half you don't need:

    Labels: ,