Here is a screenshot of the application.
Still need to figure out a better name, create an icon, and fix up a few things before I release it. Not sure if anyone would actually use it, but it is a decent example for CamelBones stuff.
Since the motherboard on my PC died a few weeks ago, I have been using my ibook exclusively. I've had the thing nearly a year, but this is the first time I have really used it a lot. I've ripped my important cds in iTunes, played around with iPhoto, and marvelled at the wonders of Interface Builder and Project Builder.
To continue on my quest to write more perl, I have been playing around CamelBones for a while. Using the amazing IB, I have built a OS X program to write use.perl; journal entries through the SOAP interface. Nothing ground breaking, but I was quite amazed at how simple the GUI stuff was. I am quite impressed at how easy it seems to be to write these applications with Cocoa (and now perl), by just dragging the elements where you want them, and connecting the interface to the classes. Plus you still get all the extra Cocoa stuff, like spell checking, for free when using CamelBones.
Is the SOAP interface to use.perl broken at the moment? I have been trying to use it to create a journal entry, but everytime the body of the entry comes up as just the word 'date'.
While this could be the universe trying to tell me I need to get out more, I am pretty certain that there is something wrong in the back end. Even using pudge's example script gives the same result as my program.
Oh, and while I am asking questions, does any know if it is possible to create an NSString object in camelbones? All my current attempts result in a scalar being returned, which is not what I need.
I wrote my first Cocoa program last night. I needed a timer for when I am cooking, so instead of doing the simple thing and buying an egg timer, I decided to try and make a countdown timer program on my iBook.
It was suprisingly easy, the only difficult bit was trying to figure out how to set fonts in the text fields. If you actually knew what you were doing, it probably could have been done in twenty minutes. I think I will try to add some preferences and extra stuff tonight, then release it to the world, because I am sure there must be millions of people out there who need a Cocoa countdown timer
Not much progress in the land of perl for the last week or so. I added support for multiple symbols to the module, so it produces graphs showing the percentage gain/loss over a period of time. Thats about the last of the functionality I want to add, so I think it might be time to apply for a CPAN id, finish the documentation, and see about adding a few more tests.
Finally got to spent some time to work on my module tonight, while sitting watching the Grammys (we are a bit slow in Australia with these things). Started adding parameters to make everything more configurable, and adding tests to make sure I am actually doing what I mean to. Looking good so far, but I think I need to investigate Test::GD that someone mentioned a while ago. And to top it off, U2 won a couple of awards, so I was quite happy.
I have got to a point with the graphs my module is producing that I am hitting problems with GD::Graph. I want my graphs to have ticks on the x-axis at varying intervals, like for the varying amount of days between the first day of a month. However, GD::Graph only give evenly spaced ticks. I think I might release a first version of the module before tackling the problem, and then maybe look at adding the functionality to GD::Graph if possible, otherwise add it to a future version of my module.
Finshed reading Fight Club tonight. Quite an odd book really, spent half my time reading it wondering whether it was appropriate material to be laughing at. I think I liked it, so I might have to pick up some more of Chuck's stuff. Probably should have a look at the movie too. Need some lighter reading next though, so it is onto some more Lemony Snicket books.
Not much module progress over the last week or so, as I have been busy preparing/packing to move.
As I was watching bits of the golf on TV this afternoon, I read about the golf challenge in the Perl Review mag, and thought I would give it a try. My first attempt had the slight bug of it only working on one digit numbers, but undetered I solidered on.
I think my latest attempt actually works correctly, but has 74 characters:
After looking at some of the other solutions, it would seem I need to get out the camel and read up on map and y///, as I am not really sure how these work. Who would of thought converting different base numbers could actually be fun and educational
The long weekend gave me a chance to get started on my module. Currently it is called Finance::ChartHist, and basically produces graphs of a share price between two dates. The same as can be found on any financial website, such as Yahoo. I don't think there will be many other people that will find it useful, but it should be fun to build, and gives me a chance to get back into using perl.
Most of the grunt work is already provided by existing modules, namely Finance::QuoteHist which gets historical price information from various websites, and GD::Graph which produces pretty graphs. I got the basic outline of what I want done on the weekend, producing simple graphs, automatically formating the labels for the axis, etc. Most things are hardcoded at the moment, with the only options being the dates and ticker symbol currently, so I think my next step should be offering more options to format the graph.
One of my goals for this year is to write more Perl. To make this a reality, I decided that I need to write at least one CPAN module by the end of the year. Not hard you might say, but for someone with the attention span of a gold fish like me, it might be a challenge.
Anyway, so I can try to keep track of what I am doing, and so other people can laugh at my slow progress, I though I would start a journal here