Thursday, February 25, 2010

"New Music" script

I just thought of a script (can't test it at work so I'll actually write it later, but it'd be only a few lines long). Would work thusly:
Desktop>newmusic britney_spears_leak_trance_remix.ogg ~/music/various/
It would act like mv, just move the song over to the "various" directory, but it would also add a symlink to
~/music/new/
That way, I'll remember to give it a listen. And when it's no longer novel I can just delete the symlink. Otherwise this crap gets accumulated on my Desktop. Maybe happens to you too.

Maybe it could be made into a Nautilus script or something, but that seems a bit more tricky if you're dealing with drag n drops.

Sunday, February 14, 2010

Making new twitter followers marginally more convenient

Well, one tiny annoyance that I just randomly decided I felt like itching - I get a handful of emails from twitter saying so-and-so is following me. Usually it's somebody I'm not interested in, but on occasion it's a friend. What annoys me is that I have to open their profile to see. I'd prefer to see the bio and their last few tweets in the email itself. Would help me decide much faster. Well, I've started on a real hack of a solution. It should make it a little less annoying:

http://gist.github.com/304335

Look it over. If you trust it, run it on a command prompt (works on Linux, all I can say). It asks for your gmail password. It opens browser tabs for all the twitter accounts that have followed you that are still in your gmail inbox.

Now, I'm making some wild assumptions about the emails that Twitter is sending us (namely that the first Twitter url is the profile in question), so this may not open up everything correctly. Especially if Twitter changes the email. So, I also open up a tab with a gmail search for all those emails. You can look it over and confirm that it opened up the right tabs, plus this helps you archive them right away.

If it doesn't work, do this first:

https://www.google.com/accounts/DisplayUnlockCaptcha

I guess it tells Google that your computer isn't engaging in any anti-human activities. I had to do it.

I may eventually have it generate an html page with all the useful info right there, so you can look it over quicker. I'll also look for a way to have a GUI password entry thing, so you won't need a cmd prompt. Or, you know, if any of you Open Sourcerers want to do it yourself and send back the update, that would be great too.