Quantcast
Channel: Peter of the Norse Thinks He’s Smarter than You
Browsing all 54 articles
Browse latest View live

Tagging in Django

The last time I talked about tags in Django, there was only one game in town: Django-tagging. Now there is Django-taggit. It does (almost) everything right: A relation manager is used, which shows up...

View Article


Mixing Django and Other Content with Apache

My major Django project involves mixing Django urls with static. That is, I want /blog/ and /djpro/ to be handled by the same Python dæmon, but / to be the static file /html/index.html.Turns out that’s...

View Article


Embarrassing moment of the day

I was passed by someone on a fixie.

View Article

I’m about to lose it

I was really looking forward to Tour de Fat this year. I even bought a glittering green cape for it. Ran into Aaron during the parade.When I came back in the afternoon, I saw Aaron, but avoided him. I...

View Article

The music nerd’s delemma

I just heard one of my favorite bands in a commercial. Should I be happy that they’re getting money, or annoyed that the song was so butchered? It could be worse. Fans of Phillip Phillips must be...

View Article


A few thoughts on my Birthday

Yesterday was my birthday (I lied to Facebook), and that’s caused me to think about what the last year has entailed. I’d like you to humor me as I look back at what the past year of my life.A typical...

View Article

Google keeps getting worse

I was forced to delete my Google+ account recently. The problem is it was interfering with work. My office has Gmail for Work because it’s cheaper and more reliable than Outlook. And it comes with...

View Article

Article 0

The stuff that happened in the last post bothers me more than it should. The reason is poor timing. I figured all this out just before a brief bout of depression. (By brief, I mean less than a day.)...

View Article


Moving from Django 1.4 to 1.8

I’m currently in the process of moving from Django 1.4 to 1.8 and Python 2.7 to 3.4. The main reason I’m writing this is so that someone else making the same changes doesn’t need to work too hard.This...

View Article


My trip to Spain

I’m still going though the photographs, but I thought I’d share the summary. YMMV: Yo no hablo español.Picasso’s Guernica is worth the trip. The rest of the Museums in Madrid are excellent as well. I...

View Article

Banned by Facebook

I’ve been banned from Facebook because I have a funny name.Update: I’m back!

View Article

Cinematic mysteries revealed.

I think I finally figured out the ending to 2001. You know how some small apartments have murphy beds to save space? Well, the aliens didn’t have a lot of time to work with, so they kept doubling the...

View Article

Sending an error when it’s not quite unique enough

Back in 2005 I mentioned I use to_ascii to make sure that there aren’t accented and un-accented versions of artists. Like Hüsker Dü. That one always gets people.The problem is, there’s no way to easily...

View Article


How to not delete.

The next series of posts will deal with steps I’ve taken to prevent deleting past playlists. I’ve even gone to the lengths of disabled deleting PlayHistory at the database level. So what do we do when...

View Article

The merge function

The merge function is hard to figure out. Fortunately, there’s the the delete_view method already in ModelAdmin. Open it in another window and follow along.Let’s start with a pseudo-code outline:def...

View Article


Updates

Some updated to last week’s code. First, new_obj is obj always returns False, so I changed it to ==. Secondly, I wrote a MagicAlbumWidget that you probably saw coming. We’ll bring it up later. Third, I...

View Article

Rotation editing

Setting the rotation level of a song is a manager’s job, so it can only be done in the admin interface. When I wrote about the schedule I talked about changing the admin interface to do what I want,...

View Article


Deleting from the FormSet

Most of the songs in rotation are DJPick. That is, they aren’t real songs, but instead are markers for a pop-up menu on the playlist. They should be deleted when they are no longer in rotation. So...

View Article

New job

I just got a part-time job working as a psychopomp. Good pay, but the irregular hours are killing me.

View Article

The best room in the Denver Public Library

I just got back from the Denver Plein Air exhibit at the Denver Public Library. The paintings were great, but the best part was finding the conference room the bosses use. On the seventh floor, all the...

View Article
Browsing all 54 articles
Browse latest View live