Listening, #2

My K701 arrived today. This is my second serious headphone. Perhaps one can agree that this is a better set than the E500 IEM. I choose the K701 as my second pair for many reasons:

  • It IS the top of the line from AKG
  • It is suppose to be high on accuracy, but not great for bass and rock (I am not a heavy rock person).
  • It looks distinctive
  • It is particular and suited for tube amp (I have a tube amp coming).
  • It is either very comfortable, or very uncomfortable, from the reviews I read

Well, it is very comfortable for me. Very low pressure. Big ear pads (circumaurual), and comfortable headband. So I am glad. All the reviews says that the K701 really need to be burnt in for 200 hours before it will shine. From the first listen I have to agree. I don't think it is better than the E500 at the moment. It has more clarity I think, but I am not sure. So between short listening session today, I am letting iTunes shuffle randomly thru my 8000 tracks to burn it in.

More to follow, obviously.

Share

Django + Ajax != dojo

If you good for "django" and "ajax", you will quickly come across the "Django adopts Dojo as Ajax framework" article at Ajaxian. The important thing to note is that is it not (yet) true. Django 0.96, the current release, does not contain dojo. The dojo toolkit if definitely one of the better ones out there, but it is not part of the django distribution. Dojo itself is going thru a major change from 0.4x to 0.9. Perhaps it would make sense to wait until dojo is updated before making it the official ajax toolkit. Or, just let the developer pick her own.

Django Installation on Apache

I moved my Django environment from development to production here. One positive note for Django -- it is relatively easy to do the migration, and, I am running on different database and servers between the two environment. I am using the built-in development web server in development and sqlite as the database. In production I am using Apache and Postgres. I will write up how I migrate data between the two databases with relative ease in a separate article.

Of course, there are still some steps that are needed to setup the initial production environment. Here are some notes:

Postgres

I need to disable "ident" style authentication for the Postgres database connection between Apache's mod_python and Postgres. The normal/default postgres installation expects database connections made from normal linux users using OS authentication. Instead, from mod_python + Apache user, we need to enable plain user id + password authentication:

  • edit the postgres hba authentication file. On my SUSE system it is at: /var/lib/pgsql/data/pg_hba.conf
  • Add a line for my application database:
    local <my_database> all password
  • Leaving the existing catch all for the other databases:
    local all all ident sameuser
  • to reload this file, use pg_ctl reload (as postgres user)

Setup mod_python

Add the following block to your host file:

<IfModule mod_python.c>

<Location />
     SetHandler python-program
     PythonHandler      django.core.handlers.modpython
     SETEnv DJANGO_SETTINGS_MODULE desk.settings
     PythonDebug On
     PythonPath "['my_project_root'] + ['my_app_root'] + sys.path"
</Location>

<Location "/media">
     SetHandler None
</Location>

<LocationMatch "\.(jpg|gif|png)$">
      SetHandler None
</locationMatch>

</IfModule>

The first location block setups the python module to run Django. One thing of note is the setting of PythonPath. You should add BOTH your project root and your application root to the path. Otherwise you will have to reference the project name inside your applications, which is a no-no.

Linking Django admin files

Finally, don't forget to make a link to make the Django admin system works. You need to create a link in your apache document root to the installed Django admin file directory. e.g.:

cd my_doc_root
ln -s /usr/lib/python/site-packages/django/contrib/admin/media media

Note that Django uses the name "media" to reference those files. Since most likely you want to put your static files in the same directory structure, you have to name your static file directory something other than Django.

Listening, #1

Apologies to Stereophile to borrow one of their column titles. Confession - I used to be an audiophile. My audio palate is (was?) pretty good. But for the pass many years I have put the music and sound system hobby aside.

Now I am back to audiophile, the head-fi edition. Music listening via headphones. More on that later, but this evening I tried out several different configurations of equipment and found some enjoyable discoveries on my set of test tracks:

Summertime by Patricia Barber, on the Distortion of Love CD, has always been one of my fav audition track. The base on the track is so nice. Tonight I heard much more detail on the reverb on the string.

Share

Emacs + Python + Windows

Being an old school multi platform kinda person, I use emacs. Lately I have been doing some serious Python programming on my laptop running Windows XP. I never got python-mode to work under emacs, version 21.3 or so, the released version from 2003. With the increase amount of coding, I wanted python mode --

Version 22 of Emacs comes with its own python mode. But version 22 is not available for windows as yet. At least not and official version. But, if you go to the EmacsW32 site, you can get the current CVS version, plus all the nice little W32 extras. Go here: ourcomments.org/Emacs/EmacsW32Util.html to download all the good stuff.

Now I have syntax highlighting in color, open recent file list, and a whole long list of new emacs and W32 stuff that I can try out.

Share