Archive for July, 2009

Some new changes to memcachedb_q

I added some new functionality to the memcachedb_q plugin to allow for repeatable calls.

q = MemcachedbQ.new(:email)
q.add_runner(:mail, :get_emails, :repeats=>30, :repeat_name=>”email”)

This repeats the Mail.get_emails call every 30 seconds. Using the repeat name makes sure that there is only 1 repeating call with the same name. The repeats work by adding a new item to the queue with a future run date just before the existing one fires off and is removed. The future date is based on the :run_time value plus the repeat value in seconds. If a run_time value is not provided the first repeat sets it’s on run_time value based off Time.now.

Also if you add a runner with a run time date in the past, it will only add a runner in the future for the next time it would have matched :run_time + repeat*x. That way if the scheduler ever dies or is shut down, it won’t have a huge list of runners to go through before it catches up to real time.

De-forking a github project.

Yesterday I decided to de-fork my memcachedb-client library from the memcache-client project. The directions that they needed to go were getting too far apart to continue to incorporate changes. It turns out github doesn’t have a way to defork a project. But it still is an easy process.

First thing to do is make sure you have the latest pull from your fork. Then log into github and rename your project. I just add -old to the end. Next create a new project with the original name and then copy the permissions from the old repository if there are any. Do a standard push from your source ( there was no need for me to change anything before hand ) and your repository is now fork free.

It seems like it would be very easy for github to accomplish this on their end, so I’m not sure why they don’t do this. I bet using the github api a gem could be made that would do this for you, that is if someone wanted to spend the time to do this *hint*.

T-Mobile MyTouch 3G

I haven’t used the G1 for more than a few minutes, but it seems to do just as much as the iphone, maybe even more. So when they announced the MyTouch on t-mobile I knew that it would be the next phone I should get. For a while I was considering getting the iphone, but I never had anything good come from using At&t. So far this seems like the first phone that may actually put a dent in the iphones armor.

Here’s the different color options available, and there is also a lot of accessories already made to further customize the MyTouch look.

t-mobile-mytouch-3g

The pre-order started at 12am Eastern on the 8th. We only had one issue that delayed our order, but customer service was helping us within 2 minutes of giving them a call. 5 years of service with t-mobile and we’ve had nothing but the best support.

New Picture Frame

We had the print made at Sams for $12. The frame itself was quite a bit more. We plan on updating the photo every few years with a new one of Ashley.

New Picture Frame

kmahan_com posted a photo:

New Picture Frame

We had the print made at Sams for $12. The frame itself was quite a bit more. We plan on updating the photo every few years with a new one of Ashley.

Return top