Programming

programming description

Djangocon EU talks

So, Django Con Europe just ended a couple of days ago and all the party people have been blowing up the Planet Django feed that I subscribe to and I wanted to make a list of the talks I want to watch when they hit the 3 dubs.

 

playing around with erlang

I've been messing around with Erlang after picking up Erlang and OTP in Action(affiliate code) and hopefully I will be writing massively scalable applications soon because Erlang makes it so easy. Even though I'm not quite there, here is what I got so far:


-module(all_work).
-export([convert_temp/1]).
convert_temp({T,c}) ->
{T * 9/5 + 32,f};
convert_temp({T,f}) ->
{(T - 32)* 5/9,c}.

A simple program to convert C to F.

24> c(all_work).
{ok,all_work}
25> all_work:convert_temp({73,f}).
{22.77777777777778,c}
26> all_work:convert_temp(all_work:convert_temp({73,f})).

What is Next? Who knows.

 

taking notes

I have had to update my resume lately and a while ago I wrote it using LaTeX
which is a typesetting program. Typesetting programs are different then word
processors as they allow you to focus more on the content rather then laying
everything out on the page. A few cases where LaTeX trounces Microsoft word is
when you are writing anything that uses a predefined layout that must be
adhered to such as a paper written in MLA format or a book. While it excels in
some areas it fails miserably in others, for most use cases anyway. So you are going
to have your work cut out for you if you are trying to make posters, fliers,
banners, and any other type of thing where you really want to focus on layout
while writing.

While I don't write many MLA papers anymore, LaTeX is still the de facto
standard for writing papers in academia and it is great for writing anything
that contains a lot of math equations. If you have ever used Microsoft Word's
equation editor, you can see that it is time consuming and using LaTeX markup
is still not going to be faster then ...

 

django cisco phonebook

Yesterday I was fooling around with python and trying to serve
some XML to a Cisco 7960 I have.  I spent a lot of time getting
my web server set up to serve a dynamic XML page which I could pop
my phone book information into and when I finally got it done it
wouldn't work.  Searching online I found out that the latest
firmwares from Cisco, 9.*, has a couple of bugs in it dealing with
XML.  Unfortunately I don't remember where I found this information
but I can give out the sparks notes on what I saw.

When I was served the page from a web server, if it responded
HTTP/1.0 OK, no good, the phone would only accept if it was
HTTP/1.1 .  I was getting some cryptic 404/BTXML errors but I could see
that the files were fine by loading it on to the production
server as a static file. Sure enough the phone was able to parse
it, so I actually moved the dynamic parts to the production
server to see if it would work as well.

After moving it, the phone can read it fine but I am ...