Sunday, January 22, 2012

Bandcamp Downloader

Summary

I made a downloader for bandcamp. Check it out: http://bcdlr.yaheard.us / http://bandcampdownloader.yaheard.us

2012.02.16 Update:

After a rocky start consisting of (1) a code error leaving the site non-functional for a couple of days after this initial post, (2) a week or so of uptime, and (3) a successive week or so of non-functional site, we are back on track and working as intended.

The first was my fault (lack of proper testing), and next problem seems to have been some type of server setting which happened outside of my doing.

Detail

I like bandcamp.  It is a clean site that straight-links offsite to a band's page of choice, enables streaming and purchase, makes use of HTML5, and has an impressive variety of music.

While I have a smartphone, I only have 100MB/month for my data.  I pay $30/month...give me a break.  So, I use a 16GB SD card to keep (some) music with me.  I'm also very much "try before you buy".  If I've bought the last 2 CDs by a band, I can do a blind buy...but otherwise, I want to know I'll listen regularly before I shell out my money.  I'm still hesitant of digital only purchases (i know, right?); even though the first thing I do when I get a CD is rip it (to .ogg).

So, I made a bandcamp downloader.  Because Bandcamp makes use of HTML5 (maybe flash fallback, for older browser support?) to play their audio, their source links are pretty much out and the open.  At first, I parsed through some source code to download the songs I wanted to listen to on my commute.  I rarely get the chance to listen at my house...sitting in front of my computer.  However, I was dissapointed that there was not an easier way.

I found a few pages that had bookmarlets, extensions, and js scripts to do the task...but they seemed a little more difficult then I prefer my user experiences to be, and some were browser-dependent.

After making my experiment, I ran across the following two solutions:

  1. Bandcamp Download (http://bandcampdownload.com/) is kinda similar to what I wanted to do...but excels more at entire album downloads because it compresses (to .tar.gz -- a linux format to scare off users after the server's done the downloading work, i guess) for a single download. It seems to be down alot, though.
  2. Offliberty (http://offliberty.com/) seems to grab A file from the referenced page.  Due to this, it works best on individual song pages.  It works on artist or album pages, but only grabs the first track, and the forced download doesn't name the download with artist/album/track information.  
I wanted something a little more obvious...and am glad my work wasn't totally pointless.

Here's the result...the Bandcamp Downloader (http://bandcampdownloader.yaheard.us / http://bcdlr.yaheard.us)

Thursday, January 19, 2012

Fix: The dependency service or group failed to start // found new hardware

Short post.

I had a problem with a client's machine that suddenly failed to connect to his wireless network. Tried phone support/advice: I knew his machine...probably, his network adapter went down. Recommended he get USB adapter.

No help.

I went to visit. Installed USB wireless adapter. Still can't connect. On login, new hardware found (not related to new wireless device). Disabled old, presumed non-working, adapter. Still finding new hardware and failing to get drivers. Strange.

On mouseover of system tray network icon, "The dependency service or group failed to start" is displayed.

Google it.

A few forums had some fixes...none seemed to work. Even tried (from elevated command prompt) "netsh winsock reset" a couple of times. No help.

Finally found a forum comment that helped (http://forums.techarena.in/networking-security/1038559.htm#post5050766):

[from elevated command prompt -- type 'cmd' in start menu search, right-click and 'run as administrator']

1) netsh winsock reset
2) netsh int ip reset
3) net localgroup administrators localservice /add
4) net localgroup administrators networkservice /add
5) exit
Then reboot.

I'm sure you could have found this otherwise...but I hope more links to it/posts about it with the fix that worked for me can only help, right?

nc

Saturday, November 12, 2011

Watching Multiple Folders with Songbird

The Problem

I finally made the switch from WinAMP to Songbird. I had tried it on a laptop, so wasn't too surprised...and liked most of what I saw. That is, until I realized I couldn't watch multiple folders. Oh no!!!

This would have been fine if I could watch the 'My Music' folder...but Songbird seems to disapprove of watching libraries. Something about file duplication issues...whatev.

The Fix

Shortcut (failed)

I first tried to make standard shortcuts (right-click > new shortcut) to the other folders I wanted to watch within the watched folder. No go.

Symlink (worked)

I had recently run into a problem on my Linux box that I had to utilize Symlinks to address. Why not try something like that for Windows?

I came across this link:

It showed how to, using an (elevated) command prompt, make a Symlink in Windows. This is only available for Vista or later. I successfully used it for Windows 7.

Using the following code for the 4 additional folders I wanted to include in my library, new Symlinks were created in my watched folder which allows Songbird to successfully see songs added to those places.

mklink /d c:\media\music\extra_folder d:\music
          [watched fol] [Symlink name][folder to watch]

This has to be run in an elevated command prompt:

A Visual


...they look like shortcuts, but they are Symlinks!

Conclusion

Symlinks seem to be the solution to only one available watch folder in Songbird. This was verified on Windows 7 and Songbird 1.10.1 (Build 2160). Presumably, the same idea would probably work in Linux.

Saturday, October 22, 2011

Project Elite v6.5 - Choppy Video Recording and Playback

The Problem

I got an OG Droid (Motorola Droid 1) and have been using it as music player / nerd toy until I activate it when my Verizon contract is up in a few months. At some point after flashing it with the Project Elite v6.5 rom, my video started recording choppy (choppily?). Hence, playing back choppy (due to recording state)...not horribly, but enough to degrade the viewing experience, certainly.

The Fix

A few forums I found said to 'clock cpu to 600MHz'...from what I can tell, they meant to change the following:

Settings > Elite Settings > Performance > CPU settings > Max CPU frequency -- change this to 600MHz

Using the default Kernel, I wasn't able to do this. I first had to modify the kernel by doing the following:

Settings > Elite Settings > Performance > Change Kernels -- from P.E LV 1.05ghz(default) to Elite Series v3 LV 900mhz

Once that is done, I had to restart. Once the kernel was updated, I had to go back and set the Max CPU frequency to 800MHz or 600MHz...either seemed to do the trick for me.

I also made sure I checked the box at the bottom of the 'CPU settings' screen...it seems to 'remember' the clock you set on restart. Which is important.

In Conclusion

This information was available in forums, but wasn't very specific..so I hope to save someone a little time by reading it here.

Friday, September 30, 2011

Cloud Computing -- A Quick Look

I created this presentation for Granville Academy as a stand-in for my presence at the Grand Opening, 2011 event which will be held on October 1st. My wife helped me stay some of the excessive content and translate the native geek speak.

Although it is very concise, I'm very happy with the result!

Photos and Graphics by Nick Chapman
Editing by Melissa Chapman

Further Reading

Google explains far more eloquently than I can...and they do it with HTML5. *insert ooohhh...and ahhhh*
The 'web apps' section is also relevant. The whole booklet is actually a pretty informative read.

Sunday, September 18, 2011

Importing csv contacts into Gmail (with mapping)

Overview

This post attempts to provide help importing csv contacts into Gmail. The intention is that people who import data which is improperly mapped -- ends up in the 'Notes' section instead of in the appropriate field -- will be helped by this post.

Skip to Synopsis if you want the quick fix.

Background

I finally got my wife a smartphone and was trying to get it set up in time to give it to her for her birthday. Everything went smoothly. I was able to flash the LG Ally with the Velocity 1.1 custom rom (recommended if you have an LG Ally -- it is super fast. Google it). Next I used BitPim to backup her pictures, videos, and ringtones (see previous post here). I hadn't exported her contacts before..even though BitPim makes it relatively easy to export. Additionally, LG (or Verizon) seems to offer a backup tool...but I kinda like to do stuff like this manually to ensure it works properly, even if it is a little more work. I got the contacts exported in a relatively straightforward csv file. Easy. Importing into Gmail proved not so easy...

The Problem

When I first imported the csv (from Gmail's contacts section -- click more > import), it went smoothly enough. It seemed. I had expected to see some type of 'mapping' option, enabling me to specify that name becomes name, phone becomes phone...etc. There was no such option, so I thought Google's code may have just been smart enough to figure it out on its own (this turned out to be grossly incorrect). Upon review of the imported contacts, nothing went to the correct field...except maybe email. I searched a few forums and websites which gave me little hope that it was possible. After trying again with logically named headers (instead of the somewhat strange ones from the original export), and having no success, I thought I could export from Gmail contacts...then mimic the resulting headers for a (surely) successful import. Despite having to reorganize my csv substantially, this only produced another failure. The 'name' finally went to the correct place, but that is all. There were no errors, most of the imported information just ended up in a generic 'notes' textbox where any non resolved information went. This is certainly better than discarding the unsuccessfully mapped information, but not ideal, either.

The Solution

Finally, I came across this page, which had some column header suggestions and indicated experiencing a successful import. I decided to reorganize my csv information again and give it a shot. I used the third set of headers as my guide...and hypothesized that I needed to use typical Gmail contact keywords plus the 'phone' monikers to get my numbers to map correctly. This turned out to be correct -- at least for Name, Mobile Phone, Home Phone, and email. I'm not sure about successfully mapping Work Phone and Mobile 2 Phone (maybe another 'Mobile Phone' column would work?), as those column headers didn't work for me. The successful headers I used follow:

Successful Column Headers:

NameMobile PhoneHome PhoneEmail

Let me know if anyone else finds other successful headers, or a google resource which explains the situation / resolution more eloquently.

Synopsis

If you have trouble importing csv contacts into Gmail contacts (your information is being imported into the Notes box, but not being mapped correctly), try using column headers from the Successful Column Headers above. I can't be of help beyond those mappings, though.

Saturday, April 23, 2011

how do i...remove malware

This was my attempt at a simplistic malware removal guide for someone who isn't technical, but is willing to roll up their sleves and give removal a shot before having to take more drastic measures (pay someone) -- it worked. My guess is that it will work for 50% of malware infections and can take 20 minutes to an hour.


Removing Malware



*You may want to print this before beginning. You may not. Who am I to say.

Run this first:



(1) http://download.bleepingcomputer.com/grinler/rkill.com
(save to desktop, then run)


…then, download, install (allow updates) and run a ‘quick scan’ with this:

(2) http://www.malwarebytes.org/mbam.php
(download and install free version)


…if it finds infections, show results >> remove selected (make sure they are selected – right-click > select all if they aren’t). Reboot if prompted.

…if it doesn’t work, you might be able to boot into safe mode…(reboot computer, tap ‘f8’ every two seconds…when prompted, select ‘safe mode with networking)…run (1), then download and run the following:

(3) http://www.bleepingcomputer.com/download/anti-virus/combofix
(save to desktop, then run, accept all defaults. Ignore if prompted to disable av software, unless you want to right-click on your av software and attempt to disable temporarily. Allow recovery console to be installed)


If that doesn’t work, you’ll have to get professional help, probably. See my site to run the remote help request, where I can remotely verify the infection...and, if necessary, attempt removal.
(http://chapmanit.com/computerwork/remotehelp/)

If you are rid of popups, but no longer have internet access, you can go to control panel >> internet options >> connections (tab) >> lan settings >> remove check from “use a proxy server…” (assuming you have Windows XP. the location will be similar, but maybe slightly different for Vista or Windows 7 -- search for 'internet options' from the start menu search bar)

Almost done...but


When you think you are done, you should probably re-download (the original download may be corrupted or comprimised since you were infected) (1), reinstall and update, then run a 'quick scan' again. Hopefully, you are clear or it is just cleaning up traces.

Additional Preparation Steps


To speed up the scan process, and as general recommended practice, run disk cleanup, ccleaner, or glary utilities prior to scanning for noticeably faster scan times.

Am I infected?


If you are reading this, probably so. The symptoms are too varied to be sure, but if you are getting popups from (what looks like) an antivirus program that wasn't on your computer a month ago...that wants you to pay for help, you are probably infected. Additional symptoms can be browser redirects (you click on a google search result and end up on a non-related page that wants money), or program malfunctions (fake system messages saying your program can't run...your disk is corrupt...your momma eats twizlers, etc.). Good luck at playing MD and making the diagnosis. General cleaning programs can be found above (additional prep steps)...and are recommended to clean a slow, but non infected, computer.