Some geek humor
Look what last.fm has in their robots.txt file:
User-Agent: * ... Disallow: /harming/humans Disallow: /ignoring/human/orders Disallow: /harm/to/self Allow: /
Oh, who wouldn’t like geek humor
Thanks for pointing this out, jsocol!
Look what last.fm has in their robots.txt file:
User-Agent: * ... Disallow: /harming/humans Disallow: /ignoring/human/orders Disallow: /harm/to/self Allow: /
Oh, who wouldn’t like geek humor
Thanks for pointing this out, jsocol!
As it turns out, Blizzard Entertainment’s game service battle.net has a fail pet!
Well, “fail pet” might be the wrong word for this, but who expected battle.net to have a cutesy kitten on their error pages anyway. Instead, they have a fellow who somewhat looks like the alien cousin of Lennie from “Of Mice and Men”.

“Oops”, indeed!
Update: Deb says, it’s a Murloc. Thanks!
Thanks for the screen shot, clouserw!
The Copy ShortURL Add-on has been on AMO for a week now and was recently approved to be public, so now I have a user base to please
I am inclined to drop the code onto github, where I’d get a proper version history along with a bug tracker. Update: It’s on github now!
For now though, here are a few ideas I have for the add-on, in no particular order and with no promise that I’m about to implement any of this right away:
Let me know what you think! I’d like to know if any other things come to your minds, or which of the above you’d find especially useful.
Update: The add-on is now on AMO! Check it out! Also, feedback is greatly appreciated!
This week during the Mozilla Summit in Whistler, British Columbia, there was a “Rocket Your Firefox” Jetpack contest: The idea, make a new add-on using the Jetpack SDK, submit it, win a prize.
So I went ahead and made a jetpack called “Copy Short URL” and it does what it sounds like:
On any webpage, you get a new item in the right click menu called “copy short URL”. When you click it, the add-on looks for a canonical short URL exposed in the page header. Currently, a number of major websites expose their own short URLs for any entry on their webpages, among these: youtube (“youtu.be/…”), flickr (“flic.kr/…”), Arstechnica, Techcrunch, and many more.
If, however, the site does not name its own short URL, the add-on automatically falls back to making a short URL using tinyurl.com.
Either way, after a fraction of a second, you end up with a short URL in your clipboard, ready to be used in forum posts, tweets, or wherever else you please.
My add-on won the contest in the “most useful” category. The prize was an awesome jetpack sweatshirt:


If you want to check out the add-on, it is currently available (open source, of course) on the add-ons builder website. I also uploaded the add-on to AMO.
Hope you find it useful!
Note: Several people asked where the link is to actually add feedback to the site. This is, of course, a good point. As mentioned in the comments: The designated entry point for the feedback application is going to be an extension bundled with Firefox 4 Beta. For more information, please read Aakash’s blog post. To try out the application already, feel free to add happy or sad feedback to the test site.
This morning, we published the Firefox Input application. It is a little web application soliciting feedback from our Firefox Beta Program users. The aim is to make it as easy as possible for people to tell us what specifically they like or dislike about an upcoming version of Firefox.
The application was, as far as software goes, developed very rapidly: We made it from requirements to production in a mere three weeks. What made this possible was a number of reusable components that allowed us to avoid reinventing the wheel and stay focused on making the application awesome.
A few key components of the Input application:
As always, the source code of Firefox Input is openly and freely available. If you notice any problems with it, feel free to fork it on github, or file a bug in our bug tracker.
I just watched the pilot episode of Pioneer One, the “first ever made-for-torrent” TV series, and I liked it a lot!
The story is intriguing:
An object in the sky spreads radiation over North America. Fearing terrorism, U.S. Homeland Security agents are dispatched to investigate and contain the damage. What they discover will have implications for the entire world.
The pilot episode has been filmed on a budget of a mere 6000 dollars (all of it funded by private donations), and for that, the idea has been very well executed. I suggest you all see it, as the video is freely and legally available through VODO. Pioneer One is licensed under a Creative Commons Attribution Noncommercial Sharealike license.
What I find very impressive about the show is that unlike traditional producers, they embrace rather than demonize P2P file sharing. Therefore, the makers of Pioneer One have the chance to show that grassroots film-making (or rather, TV-series-making) that is successful beyond a tiny scale is possible by actively engaging the Internet community (for both funding and distribution) rather than using the Internet as a simple, tightly controlled broadcasting medium as if it was a glorified TV set.
When the article on Pioneer One faced (and fenced off) a deletion request due to alleged irrelevance on Wikipedia, I wrote the following in the deletion discussion:
Keep. Not for it being a low-funds TV series, as it is not exceptional in that respect, but for its attempt at being successful through Torrent distribution. [...] The main reason for its notability is that we see a huge effort on the side of traditional media distribution groups against P2P networking as a concept. They essentially argue that P2P is [not] tightly controllable and therefore it must be objectionable. Making an active effort to legally distribute media content via P2P is much more a political statement for the legitimacy of P2P as a cultural phenomenon than it is a way to keep distribution cost low. Compare this to other attempts at making a (mini-) series popular on the Internet (Dr. Horrible, for example) that while being free-as-in-beer (initially) did not use P2P technology (or any free-as-in-speech distribution channel), and you’ll see how radically different Pioneer One is in that respect. [...]
Sure, it is not the first free-to-torrent project. But it’s the first free-to-torrent series that might actually become successful. And it is a way for the filesharing community to show what it is really about: Free speech, not free beer.
Hard drives (or controllers, rather) capable of hot-swapping (that is, plugging and un-plugging a drive into a running system) used to be a feature reserved for expensive professional RAID installations.
With the advent of SATA in the mainstream, that has changed. Supposedly any SATA hard drive can be hot-plugged now. But what if you actually try and nothing happens? Chances are your controller doesn’t let the OS know about the newly found drive on its own.
Try this to rescan the SCSI hosts (each SATA port appears as a SCSI bus):
echo "0 0 0" >/sys/class/scsi_host/host<n>/scan
and to remove a drive:
echo x > /sys/bus/scsi/devices/<n>:0:0:0/delete
Replace <n> with the right numbers for your system, respectively.
Also, just to state the obvious, don’t do that to a mounted drive, ever. Especially not the one that holds your system partition
(via.)
Need to add a robots.txt file to your Django project to tell Google and friends what and what not to index on your site?
Here are three ways to add a robots.txt file to Django.
In an article on e-scribe.com, Paul Bissex suggest to add this rule to your urls.py file:
from django.http import HttpResponse
urlpatterns = patterns('',
...
(r'^robots\.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /", mimetype="text/plain"))
)
The advantage of this solution is, it is a simple one-liner disallowing all bots, with no extra files to be created, and no clutter anywhere. It’s as simple as it gets.
The disadvantage, obviously, is the missing scalability. The instant you have more than one rule to add, this approach quickly balloons out of hand. Also, one could argue that urls.py is not the right place for content of any kind.
This one is the most intuitive approach: Just drop a robots.txt file into your main templates directory and link to it via direct_to_template:
from django.views.generic.simple import direct_to_template
urlpatterns = patterns('',
...
(r'^robots\.txt$', direct_to_template,
{'template': 'robots.txt', 'mimetype': 'text/plain'}),
)
Just remember to set the MIME type appropriately to text/plain, and off you go.
Advantage is its simplicity, and if you already have a robots.txt file you want to reuse, there’s no overhead for that.
Disadvantage: If your robots file changes somewhat frequently, you need to push changes to your web server every time. That can get tedious. Also, this approach does not save you from typos or the like.
Finally, there’s a full-blown django app available that you can install and drop into your INSTALLED_APPS: It is called django-robots.
For small projects, this would be overkill, but if you have a lot of rules, or if you need a site admin to change them without pushing changes to the web server, this is your app of choice.
Depending on how complicated your rule set is, either one of the solutions may be the best fit for you. Just choose the one that you are the most comfortable with and that fits the way you are using robots.txt in your application.