hollyking: (hacker)

What is step one? Contributing to CPAN of course.

I had been thinking about writing some myself but [livejournal.com profile] fallenpegasus has created a fine set of programs. My only wish was to have them read the AWS parameters from a config file. So I added the ability to read the settings using Getopt::ArgvFile and sent a patch to [livejournal.com profile] fallenpegasus. He accepted my patch and now that he's posted his module to CPAN I have achieved the first step of my plans.

Last weekend I went away to Deer Harbor on Orcas Island. The private cottage, hot tub and view were wonderful. I took advantage of the lack of phones, television and internet access to focus on finishing Math::IntervalNumber. The code is done. The documentation has been written. I plan on polishing the test suite and releasing the module this week. That's step two.

Step three? I'm not sure. Maybe Math::SurrealNumber.

hollyking: (compass)

I have had a general feeling of… I’m not sure what word to use. I’m not unhappy and in some areas of my life things are outstanding. There’s just this feeling of “more” that I could accomplish. Having spent the last few nights without sleep I’ve had a bit of time to think about goals and how I spend my time.

I spend too much time playing games like WoW and EVE. The problem isn’t playing games, but that MMORPGs like that don’t end so they keep stealing time I could use for more productive things. I can play console games and give up a week or two as a break between projects. And the DS is always good for those times when I’m waiting around and don’t have enough time to unpack the laptop.

Television doesn’t take too much time because I split the time with other tasks. I catch up on some reading or work on the laptop while watching. With the Tivo I can push off watching if I have more important tasks. The number of shows I watch will probably drop as they are not keeping my interest.

With the time I’ve regained my plan is to:

  1. Complete my first Perl module, Math::Interval, and upload it to CPAN. The API is set and the tests pass. I just need to write more documentation.
  2. Learn about writing XS modules for Perl to expose the floating-point functions in <fenv.h>. In particular Math::Interval could benefit from fesetround() and fegetround(). I’m sure some other modules could use it too.
  3. Update Math::Interval to use the floating-point module. The tricky part of this will be creating tests that correctly deal with the inexact nature of IEEE 784 floating-point math.
  4. Write up a talk, article or paper on what I learned about writing Perl modules and dealing with that inexact nature of IEEE 784 floating-point math.

After that my longer range plans include getting some quality time with Parrot and Perl 6.

hollyking: (hacker)

In my spare time I’ve been working on a mash-up between LiveJournal interests and Flickr tags. Given a username my program pulls their list of interests from LJ and then asks Flickr for 5 images that use that interest as a tag.

The last piece fell into place this morning and I’ve been able create a few test pages on my local machine. It is very slow when I run it against a new user, which pulls the interest data from LJ. There’s obviously some bottleneck in how I add/update interests in the database.

I also need to create a scalable limit for the number of images returned. With the current default of 5 I get 715 images but someone like [livejournal.com profile] qt3_14159 only gets 5 images back. I’m thinking of something like 300 divided by the number of interests. Maybe less if Flickr starts complaining.

Anyway, here’s a sample pass on my interests. Should I keep going?

Many images in here... )
hollyking: (hacker)

Perlcast had a drawing for access to the "Rough Cuts" version of Perl Hacks. This morning I found out that I was the lucky listener! I wonder if I could get [livejournal.com profile] publius_ovidius to sign my PDF... ;)

hollyking: (Default)

Non-Fiction

Perl Best Practices by Damian Conway (5/5)
I highly recommend this book to anyone who writes Perl programs. The fact that Damian takes the time to explain the reasons behind each of the practices is what shot this book from good to great. I didn't agree with a few of the recommendations at first, but after reading the reason behind it I understood the problem and agreed with the solution. Part of the problem with reading this book is that I went back and re-wrote Math::Interval. This is going to delay the release but its easier to change the code before I have to worry about backwards compatability.
Sailing Alone Around the World by Joshua Slocum (4/5)
Joshua Slocum was the first person to single-handedly circumnavigate the globe. Sailing Alone Around the World is his account of the journey aboard the Spray. I enjoyed Joshua's humor and the glimpse of lesser known areas in the world. I wonder if he would recognize any of his ports of call today.

Fiction

A Hat Full of Sky by Terry Pratchett
This is the second Discworld book I've read and I ask myself again why I haven't read any more. I'll have to check with the library to see if they have any more on CD. A Hat Full of Sky sure made the drive a lot more enjoyable.

Upcoming

Perl Testing: A Developer's Notebook by Ian Langworth & chromatic
I picked this up at OSCON last year. Since I'm in the middle of writing my first Perl module there's no better time to learn about testing.
Harry Potter and the Sorcerer's Stone by J.K. Rowling
I've actually read this before. I decided to borrow the audio book from the library for my daily commute. The furor has died down a bit so I should be able to listen to the whole series without waiting too long for a copy of the last book.

It's Alive!

Jan. 3rd, 2006 12:41 am
hollyking: (hacker)

Having a bit of free time and wanting to get out of dodge [livejournal.com profile] hollyqueen and I went up to [livejournal.com profile] nerdvana early to help with the prep for the New Year's Eve party. I had some problems sleeping Friday night and spent the time working on resurrecting my movie collection web page. Between the night and other free time I was able to get the code in a usable state. Tonight when we got home I spent a few hours updating the database and sorting the movies on the shelf. So now you can view my movie collection.

If you go view the collection here is a short explanation of what you'll see:

  • The three frames on the left are:
    1. Keywords: I have created a list of keywords and assigned them to movie titles. You can see how many movies have a given keyword by the number after the keyword. In the future clicking on a link will display only the movies with that keyword.Decades: This breaks down the collection by the release year in decades. In the future clicking on a decade will show you what movies were released in that decade.
    2. Media: My collection consists of movies in various formats. This section lists the number of movies in each format. Clicking the format will eventually display the movies in that format.
  • The center frame is the list of movies. The fields listed for each movie are:
    1. Title: Do I really need to explain this one? If the database has the IMDb information the title is a link that will take you to the appropriate IMDb page.
    2. (Release Year): Again this should be pretty obvious. Clicking the year will, eventually, limit the display to movies that were released in the same year.
    3. { Format }: This is a list of what format I own for each movie. For some of the movies I have copies in more than one format. Clicking on a format will, eventually, display the all the movies in that foramt.
    4. [ Keywords ]: If I have associated any keywords with a movie they are listed in square brackets. Clicking on the link will, eventually, list all the titles associated with that keyword.

Right now the formatting is rough because I haven't actually created any formatting. I just whipped the page up real quick to test the features I want to include. My existing todo list for the page is:

  1. Decide if I want to track any more fields in the database. Right now I'm considering adding the MPAA rating and running time. I would be interested to see how my collection breaks down by ratings. I'm not so sure if anything else would be very interesting.
  2. Finalize the layout and format of the display page.
  3. Finish the various filter links.
  4. Add a way to sort the movie display. Right now the display is alphabetical by title, but I want to add be able to sort by year as well.
  5. Create a script to save the decade, media and keyword counts each week.
  6. Use the weekly counts to generate graphs showing how my collection changes over time.
  7. Create some the web pages and code necessary to update the database. Right now the update process is a very error prone manual one.
  8. After the movie collection pages are working it will be time to tackle the book collection. Egad, that's going to be huge. Not that the database or web pages will be any more difficult, we just have so many books. I've stopped myself from buying books the last few times we've been in a store because I can't remember if I had a copy already.

Profile

hollyking: (Default)
hollyking

March 2013

S M T W T F S
     12
3456789
1011 1213141516
17181920212223
24252627282930
31      

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 4th, 2025 08:48 pm
Powered by Dreamwidth Studios