A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Showing posts with label apps. Show all posts
Showing posts with label apps. Show all posts

Easily save music playlists from Youtube on Ubuntu

git clone https://github.com/rg3/youtube-dl.git
cd youtube-dl
./youtube-dl 'https://www.youtube.com/playlist?list=PL517964F9D64C8D0B' --ignore-errors --extract-audio --audio-quality 0 --audio-format mp3 --prefer-ffmpeg --output '%(playlist_index)s - %(title)s.%(ext)s'

(source, source)

...but then the mp3 files have the wrong length and can't be fast forwarded properly in many players (youtube-dl 2014.04.30.1)

To fix them:

sudo apt-get install vbrfix
cd /path/to/mp3s
find . -type f -iname '*.mp3' -exec vbrfix {} {} \;
rm vbrfix.log vbrfix.tmp

(source, source)

Best Android calendar notifications

Options:
  • Google calendar (built in) - notification icon only stays visible for duration of "event", so not suitable for reminding you to do something, if you don't check your phone at the right time, you won't see anything. Notifications are only visible if you pull down the notification drawer.
  • isoTimer - notification stays there, but app has a slightly weird UI and is slow.
  • Touch Calendar - ?

Developing on Android basics

Initial steps to take:

  • Turn on USB Debug mode
    • Old devices: Settings | Applications | Development | USB debugging (will disable SD card access)
    • New devices: Settings | About phone | Build number | Tap 7 times (yes, really). Dev settings will now appear on the menu.
  • Troubleshooting connection:
    • Verify USB cable works
    • Verify USB port works
    • Re-plug in the cable about 20 times (yes, really)
    • Windows: Run "Android SDK manager" (sdk\tools\android.bat) and install 'Google USB driver' under Extras
    • adb devices # error "???????????? no permissions usb:3-3
      • adb kill-server
      • sudo adb start-server # server must be started as root
      • adb devices
  • ADB Shell commands: