So I've made a new release of sift, the IMAP client/toy.
I think I named this one after looking up synonyms of "sieve", or "filter". Can't recall now.
The next time I release a toy application, tool, or hack, I will take the time to sit down and write namecheck. (Update: Too easy. Done.)
Here's what it looks like / how it should work:
skx@gold:~$ namecheck namecheck Testing freshmeat.net - Available Testing sourceforge.net - Available Testing alioth.debian.org - Available Testing code.google.com - Available Testing savannah.gnu.org - Available Name is currently not claimed
I guess it just comes down to having a list of URLs and patterns to test for:
http://freshmeat.net/projects/%s | We encounted an error http://sourceforge.net/projects/%s | Invalid Project http://alioth.debian.org/projects/%s | Invalid Project
A tool like that would be useful if you're bad at picking names for projects and want a reasonable chance of uniqueness. Looking up sites by hand is just fiddly and repetitive.
Of course "namecheck" is a provisional title; until it may be used to test that its own name is not in use ;)
Today I shall be mostly smoking, drinking, and trying to fix a dying steam engine. Good times.
ObQuote: Brief Encounter
Update: Quick hack: namecheck | future home in ~/bin/.
Thanks.
Added and updated.
I'll probably move this into my ~/bin/ in the near future.
Thanks Florent - I've added those two too.
Thanks Francois - I've added ohloh.net now.
Naill - thats a nice rewrite. I dont "do" python, but your code looks clean and it has to be said is shorter than mine, and just as readable.
Ben, I don't think I need to include launchpad at all because that is just a location for centralizing the code of existing projects. (i.e. it doesn't itself host new code.)
Original Ubuntu projects like Upstart, etc, are all hosted on their own sites .. right?
I'm happy to add it if I'm mistaken, but it is one that I think doesn't need to be there.
It would be nice if someone could host this script with an web interface too...
Btw, this comment interface is quite unfriendly when you don't read the text under the post button (you know it works the same on most blogs...) and you didn't fill in all fields. You should change it to display the error message before removing the entered text. (yes, i don't like to enter my email address in each blog i comment, that's unfriendly too, i know ;))
Thanks Martin, I've added launchpad to the list!
As for the comment page I agree that it could be improved, but I don't think asking people to read a little instruction is unreasonable.
(50%, or more, of people commenting enter bogus addresses. I'm completely OK with that. But I am suprised to see the text lost on a failed submission. I know when I click reload firefox keeps it in place for me..)
I do believe though that your script won't make using Google obsolete for this task.
Cristoph: Agreed. I don't often google for things, but I take your point.
Thanks for another entry for my list though!