This past June (2010) I released my first iPhone application. @ioncache and I had put our heads together to build a tool we felt was lacking in the Perl community. All of the documentation for Perl's massive software archive, the CPAN, was not available as an iPhone application. If you're a Perl hacker, you may well find this to be a very useful tool. You can grab it here.
iCPAN brings you the documentation for over 60,000 Perl modules in the palm of your hand, for offline browsing whenever you may need it. You can bookmark your favourites and also view your recently searched modules. I've used it many times myself and I find it to be a great tool for reading up on modules with which I am already familiar and also for discovering new tools I can use when hacking on code (like the WunderCounter).
After getting lots of valuable feedback, we're now optimizing this application for the iPad. I'll post again when the iPad version is available in the Apple app store.
Showing posts with label perl. Show all posts
Showing posts with label perl. Show all posts
Thursday, September 2, 2010
Tuesday, September 1, 2009
How I Spent My Summer Vacation
Things have been a little quiet on the blog front lately, but that doesn't mean there hasn't been plenty of work behind the scenes. Just thought I'd fill you in on some things I think are interesting.
More Twitter Integration
I've been working on further integrating the WunderCounter with Twitter. Early, you may recall, I added daily stats summaries via Twitter DM (Direct Message). That got me thinking that the immediacy of Twitter lends itself really well to the Tripwire feature. So, I've just about finished setting this up. I'm tentatively calling it Twitwire. The concept is that you can flag IPs which you are interested in and, on a per-IP basis, you can decide which are important enough that you'd like to get a DM when this IP visits your pages. You could find out within seconds who is visiting your pages without even having logged in to check your stats. I think that's pretty cool and I'm looking forward to unleashing it you in the next few weeks. It just needs a bit more testing and then it will be on its way.
Cleaner Looking Reports
I've been integrating the Bluetrip CSS framework with the login area of the WunderCounter. It will make the reports look cleaner and more consistent. Plus, it's just a really handy tool to have in your toolkit. I recently used it on this calendaring system which I put together for the United Nations Association of the United States It makes it very fast to get started with a clean layout which is (I think) very easy on the eyes.
A Little Bit of jQuery
Any JavaScript work I'm doing now is generally based on jQuery. I was using prototype and script.aculo.us a while ago, but jQuery is my favourite JavaScript tool right now. It makes working with JS pleasant (never thought I'd hear myself say that) and it makes simple tasks easy. There's a huge community behind it and almost more plugins than you could wish for. If you haven't had a chance to look at it, I highly recommend it.
New Hardware
I've got a couple of new dedicated servers almost configured and almost ready to go. I'll get those pulling some weight as soon as I can slot the time, but they're also available to be used right away if any other hardware melts down. It's always nice to have a couple of spares.
Getting to Know GitHub
Over the summer, I've taken on some new open source projects and posted them to GitHub.com along with some other work which I've had online for a while. My public GitHub projects can be found at https://github.com/oalders The new projects are:
WWW::Mechanize::Cached This is a Perl module which caches web lookups. It allows you to make your own bots, site scrapers etc which can cache pages, which dramatically speeds things up when you have to re-run your scraper or when you're testing etc. It's a module which I took over from Andy Lester, who was kind enough to give me access to it after I approached him about cleaning up some of the open bug tickets.
Net::FreshBooks::API This is a Perl module which is really just a layer over the XML interface to the FreshBooks API. It means you can do cool stuff with their API without having to mess around with XML. Increasingly, I'm finding that this is a very good thing. I've never been a huge fan of XML. It's often very clunky and, in many cases, total overkill for basic API functionality, but that's likely a topic for a different post entirely. Edmund von der Burg was kind enough to make me a co-maintainer of this module so that I could add functionality for recurring billing. This is for some client work I've been doing. More on that when the site is officially online.
Off the top of my head, that's the important coding-related stuff. Watch for some of these improvements to come online over the month of September. I've already got plans for some new functionality after that, so hopefully there will be lots going on to keep you interested.
More Twitter Integration
I've been working on further integrating the WunderCounter with Twitter. Early, you may recall, I added daily stats summaries via Twitter DM (Direct Message). That got me thinking that the immediacy of Twitter lends itself really well to the Tripwire feature. So, I've just about finished setting this up. I'm tentatively calling it Twitwire. The concept is that you can flag IPs which you are interested in and, on a per-IP basis, you can decide which are important enough that you'd like to get a DM when this IP visits your pages. You could find out within seconds who is visiting your pages without even having logged in to check your stats. I think that's pretty cool and I'm looking forward to unleashing it you in the next few weeks. It just needs a bit more testing and then it will be on its way.
Cleaner Looking Reports
I've been integrating the Bluetrip CSS framework with the login area of the WunderCounter. It will make the reports look cleaner and more consistent. Plus, it's just a really handy tool to have in your toolkit. I recently used it on this calendaring system which I put together for the United Nations Association of the United States It makes it very fast to get started with a clean layout which is (I think) very easy on the eyes.
A Little Bit of jQuery
Any JavaScript work I'm doing now is generally based on jQuery. I was using prototype and script.aculo.us a while ago, but jQuery is my favourite JavaScript tool right now. It makes working with JS pleasant (never thought I'd hear myself say that) and it makes simple tasks easy. There's a huge community behind it and almost more plugins than you could wish for. If you haven't had a chance to look at it, I highly recommend it.
New Hardware
I've got a couple of new dedicated servers almost configured and almost ready to go. I'll get those pulling some weight as soon as I can slot the time, but they're also available to be used right away if any other hardware melts down. It's always nice to have a couple of spares.
Getting to Know GitHub
Over the summer, I've taken on some new open source projects and posted them to GitHub.com along with some other work which I've had online for a while. My public GitHub projects can be found at https://github.com/oalders The new projects are:
WWW::Mechanize::Cached This is a Perl module which caches web lookups. It allows you to make your own bots, site scrapers etc which can cache pages, which dramatically speeds things up when you have to re-run your scraper or when you're testing etc. It's a module which I took over from Andy Lester, who was kind enough to give me access to it after I approached him about cleaning up some of the open bug tickets.
Net::FreshBooks::API This is a Perl module which is really just a layer over the XML interface to the FreshBooks API. It means you can do cool stuff with their API without having to mess around with XML. Increasingly, I'm finding that this is a very good thing. I've never been a huge fan of XML. It's often very clunky and, in many cases, total overkill for basic API functionality, but that's likely a topic for a different post entirely. Edmund von der Burg was kind enough to make me a co-maintainer of this module so that I could add functionality for recurring billing. This is for some client work I've been doing. More on that when the site is officially online.
Off the top of my head, that's the important coding-related stuff. Watch for some of these improvements to come online over the month of September. I've already got plans for some new functionality after that, so hopefully there will be lots going on to keep you interested.
Monday, July 6, 2009
Get Your Daily Stats via Twitter
So, I had some free time today and I figured I'd play around with Net::Twitter, which is a handy little Perl module for use with the Twitter API. I have to say that it's so incredibly easy to use that the Twitter integration was a lot of fun. Rather than test it myself and wait around, I've added the feature to the repository today and it's now available on the live site. It's always fun when stuff works out so well that you can go from an idea to production on the very same day!
The summary tweet is a count of your hits + unique hits from the previous day. It's sent to you via direct message, so it's private and does not appear in your timeline.
Here's what you do to activate this new feature:
So, let me know what you think. If there's some interest, there are other places Twitter could be used in the application. For instance, getting a Tweet when a certain IP address hits your site might be a worthwhile addition. Another use may be to create a custom schedule of tweets throughout the day when you'd like to be updated on your stats. For example, you could get your summary info sent at 9:00 AM, 5:00 PM and 10:00 PM. Those are just some ideas I've been playing around with, but I'm always open to suggestions, so keep them coming in.
The summary tweet is a count of your hits + unique hits from the previous day. It's sent to you via direct message, so it's private and does not appear in your timeline.
Here's what you do to activate this new feature:
- Follow me on Twitter (so that I have permission to send you direct messages)
- Log in to the WunderCounter
- Choose Twitter from the Options menu
- Enter your Twitter username and set Send Daily Tweet menu to yes
- Click the send test now link.
- If there is no error and you get a test message from me in your account, you're all set. If you have problems getting going, please get in touch with me via the usual methods
So, let me know what you think. If there's some interest, there are other places Twitter could be used in the application. For instance, getting a Tweet when a certain IP address hits your site might be a worthwhile addition. Another use may be to create a custom schedule of tweets throughout the day when you'd like to be updated on your stats. For example, you could get your summary info sent at 9:00 AM, 5:00 PM and 10:00 PM. Those are just some ideas I've been playing around with, but I'm always open to suggestions, so keep them coming in.
Tuesday, June 16, 2009
Yet Another Perl Conference 2009
Since I'm going to be going to YAPC (Yet Another Perl Conference) in Pittsburgh next week, I just wanted to make a quick plug for the conference for all you programmers out there. YAPC is a great experience and, as far as conferences go, it's affordable and incredibly helpful. There are 3 tracks of talks to choose from on any given day and they're not even all about Perl. For instance, there are some talks on Git which I've already marked on my schedule). The whole 3 day conference is only $150 and it's jam packed with developer goodness.
I haven't really posted about how the WunderCounter works on the back end, but the basic technology is LAMP:
There are lots of scripting languages out there which can do a lot of the same things which Perl does, but Perl has the advantage of CPAN, which is an open source library of thousands of code libraries. Whenever I'm coding something for the WunderCounter, I check CPAN first to see if somebody else has already tried to solve the problem I'm dealing with. In a lot of cases, there's a module on CPAN which solves my problem, thus saving me from reinventing the wheel.
I've even released some of the code with drives the WunderCounter to my CPAN directory. So, for example, if you need to parse out search engines from referring URLs, you can do so quite easily with URI::ParseSearchString::More, which I published a while back. It's the very same module which the WunderCounter uses and it's free for anyone to copy, use, alter, mutilate etc.
I did mention that I'm going to some talks on Git. Having said that, I should say that the WunderCounter is currently kept in a Subversion repository. Subversion is an excellent source control management system. I plan on sticking with it for some time, but Git does a few things better, so I may switch things over to Git eventually. The new WordPress plugin (to be released shortly) is stored in a Git repository on GitHub, so at least some of the WunderCounter source code will be stored in Git.
Hopefully some of you will find that interesting. As a developer, I'm always curious to find out how people manage things on the back end, so I thought I'd share with you a little about how I like to do things.
I haven't really posted about how the WunderCounter works on the back end, but the basic technology is LAMP:
- Linux
- Apache
- MySQL
- Perl
There are lots of scripting languages out there which can do a lot of the same things which Perl does, but Perl has the advantage of CPAN, which is an open source library of thousands of code libraries. Whenever I'm coding something for the WunderCounter, I check CPAN first to see if somebody else has already tried to solve the problem I'm dealing with. In a lot of cases, there's a module on CPAN which solves my problem, thus saving me from reinventing the wheel.
I've even released some of the code with drives the WunderCounter to my CPAN directory. So, for example, if you need to parse out search engines from referring URLs, you can do so quite easily with URI::ParseSearchString::More, which I published a while back. It's the very same module which the WunderCounter uses and it's free for anyone to copy, use, alter, mutilate etc.
I did mention that I'm going to some talks on Git. Having said that, I should say that the WunderCounter is currently kept in a Subversion repository. Subversion is an excellent source control management system. I plan on sticking with it for some time, but Git does a few things better, so I may switch things over to Git eventually. The new WordPress plugin (to be released shortly) is stored in a Git repository on GitHub, so at least some of the WunderCounter source code will be stored in Git.
Hopefully some of you will find that interesting. As a developer, I'm always curious to find out how people manage things on the back end, so I thought I'd share with you a little about how I like to do things.
Labels:
apache,
Apache::Registry,
git,
linux,
mod_perl,
mysql,
perl,
subversion
Subscribe to:
Posts (Atom)