CategoriesBlog Administration |
Monday, September 29. 2008PHP: Get date for nth occurrence of weekdayI looked quickly and did not see any code out there to determine the nth occurrence of a specific day of the week in a month. For example Thanksgiving is the 4th Thursday in November. So I designed the following <?php It looks a little messy, but it works perfectly Continue reading "PHP: Get date for nth occurrence of weekday" Monday, September 15. 2008Integrating Google Talk with Roundcube
Sorry I don't have much time at the moment to write up a whole entry about this, but I am very excited about this.
I am a big fan of roundcube but I have always wanted the ability to integrate some instant messaging into it. Well google finally released a gtalk gadget that allows you to integrate gtalk/gchat into any page you want. Although, google has done a very poor job of announcing this and I don't think most people know about it. Anyways, it is a very simple single line <iframe> code. I just quickly added it to the roundcube template and made a few changes to the CSS code and it works perfectly. Click the image above to see a larger screen shot. I will write up the code for this later when I have some free time. Saturday, June 28. 2008How to Resurrect Procmail and Spamassassin on Dreamhost
Sidenote As a side note, we seem to have been given a slight glimpse into the balance of personalities at the core of Dreamhost. Josh has always been the more vocal of the two. But, Josh has also been very unprofessional at times. In this most recent post, it seems likely that while Josh may be more vocal, Dallas is the professional face of Dreamhost and the person truley in charge. How to get procmail Back Back to the point of this article, after reading the most recent entry I realized that it is possible to still use both procmail and spamassassin. However, this solution is not elegant. Continue reading "How to Resurrect Procmail and Spamassassin on Dreamhost" Thursday, April 24. 2008Bug in BlackBerry Repeat Rule, MONTH_OF_YEAR Deincrements 1 Month
I worked around the problem by setting the value one month forward. However obviously, this does not work for december. I tried increasing the value of the MONTH_OF_YEAR setting, however java balks at any unknown value. Currently I am unable to set an event to occur on the second sunday in december. If anyone figures out a work around I would be greatful. RIM has recognized that this is a bug, but who knows when the bug will be fixed. I attached a copy of the email I received from RIM: Continue reading "Bug in BlackBerry Repeat Rule, MONTH_OF_YEAR Deincrements 1 Month" Thursday, April 17. 2008Improved Funambol Blackberry PluginAs promised I made significant improvements to the Funambol Blackberry Client, while the improvements are geared towards better functionality with ScheduleWorld.com, they should benefit individuals who use other SyncML servers as well. The Improvements in 3.0.8.4 include:
Continue reading "Improved Funambol Blackberry Plugin" Monday, April 7. 2008Fix for Sending Email with Funambol and Schedule WorldThose of us without a Blackberry Enterprise Server cannot automatically synchronize our calendar and contacts with our PC without directly pluging the Blackberry directly into the PC with a USB cable. This is where Funambol and ScheduleWorld come in. ScheduleWorld is a SyncML server, basically a Calendar and Contacts server. Funambol is an open source SyncML client for the blackberry. By using both of these programs you can sync your calendar and contacts to your PC over the air, without directly connecting your Blackberry to your PC. There are numerous tutorials for how to set this sytem up so I won't waste your time discussing it here. However, the Funambol ScheduleWorld setup has had one main issue for over a year. The problem stems from the fact that Funambol also allows for the synchronization of email while ScheduleWorld does not. Funambol allows users to unselect mail from synchronization. But even with mail unchecked Funambol still does some check of the mail which causes an error. Currently users will get the following error when sending an email:
Users then had to select "resend" to force their email to send. Needless to say the whole process was very annoying. Funambol is an open source project so I decided to take a look. Continue reading "Fix for Sending Email with Funambol and Schedule World " Tuesday, December 18. 2007Blackberry IMAP Proxy - Working Sent and Trash FoldersRIM has never fully supported IMAP servers in their Blackberry Internet Service(BIS) formerly Blackberry Web Client(BWC). Notably BIS does not recognize the NAMESPACE command from IMAP servers. The vast majority of IMAP servers place all user folders in a single parent folder(usually INBOX) therefore the Sent and Trash folders are actually INBOX.Sent and INBOX.Trash. Unfortunately BIS only recognizes Sent and Trash in the base directory. This script sits between the BIS and your IMAP server. The proxy then makes INBOX.Sent and INBOX.Trash appear to be Sent and Trash. This enables BIS to save a copy of your sent emails into INBOX.Sent properly and a copy of deleted emails into INBOX.Trash properly. Additionally this script allows you to use a non standard folder as your inbox as well. Continue reading "Blackberry IMAP Proxy - Working Sent and Trash Folders" Monday, October 29. 2007TiVo Central for Mobile DevicesContinue reading "TiVo Central for Mobile Devices" Sunday, October 7. 2007Gallery2 Picasa XML Import Hack. I have also sporadically used Picasa2 from Google. While I thought Picasa2 was a nice free product, I never really had much use for it. However recently a few new features in Picasa2 have gotten my attention. Notably Picasa2 allows for an XML export of an album, this export can even be directly uploaded by FTP to a web server. (Tools->Expiremental->Publish via FTP . . . then select XML as the page type). Then I found out that one of the modules available for gallery2 allows for a direct import of Picasa2 XML pages. Picasa Module. I tried it out and it worked as promised. However, I found one error. If you do not enter a caption Picassa will automatically copy the itemName into the itemCaption field. Personally if I don't enter a caption on a photo, I would prefer it remain un-captioned. So I hacked the module to fix this issue. Continue reading "Gallery2 Picasa XML Import Hack" Sunday, February 25. 2007pyTivo - Aspect Ratio
I have received a number of questions about how pyTivo handles aspect ratios. Aspect ratios are a very convoluted subject as you will see. I make no attempt to explain everything, at the end of this page you will see a link to a much longer page that does a better explanation than me. This is meant to be a quick and dirty explanation of how pyTivo handles Aspect Ratios. Quick Tutorial on Aspect Ratios By no means is any of this guaranteed to be accurate. This only represents what I believe to be true, if I am making a mistake that causes an error in pyTivo please point it out to me. There are two types of aspect ratios: Pixel Aspect Ratio Most computer files are saved in 1:1 Pixel Aspect Ratio(PAR) however that is where it ends. TV, DVD, Film is all distorted to some other PAR. Infortunately there is no way for us to know when pyTivo opens a file what the PAR is. For the most part since pyTivo is using computer files it assumes that most files are 1:1. And then if the file fits an exact dimension of a known non 1:1 PAR pyTivo will use that dimension. Oh but we are not done. . . Continue reading "pyTivo - Aspect Ratio" Thursday, February 8. 2007pyTivo - End Transfer
When TiVo asks for a XviD file from pyTivo TiVo asks for the file size of the file before it starts transfering. This of course raises an issue, since pyTivo is transcoding the file realtime pyTivo has no idea how large he file will be when the transcoding is done. I have tried numerous settings and I can't figure out a command to force FFMpeg to an exact bit rate. So we usually estimate the file size. There is also an additional problem with file size estimation. Estimating the file size too small will cause files to be clipped at the end. Estimating the file to large may cause TiVo to unnecessarily delete other videos to make room for a file that is not that large. Also, when a user reached the end of the video TiVo would display an error stating that the transfer had unexpectedly ended even though we have reached the end of the video. However if pyTivo estimates the file even 1 bit too large(pyTivo never gets it exact, we always have a 2% buffer to prevent the under size issue) TiVo will continue asking for bytes that dont exist. This really messes with TiVo. So our temporary hack was to return a 404 error when TiVo asked for the overage of the file. However this doesn't appear to be perfect, most of us suffer the early deletion problem discussed above. So I spent a weekend on this and solved the issue!! Continue reading "pyTivo - End Transfer" Monday, January 8. 2007pyTivo - Play any type of video on TiVo
While I was browsing around the TiVo Community forum?i discovered TiVo.net.? This program ingeniously takes just about any video and transcodes it to MPEG2 on the fly and serves it up to TiVo.? Now I run a linux box as my server and TiVo.net is written in C#, however they recommended a program called mono, that will enable a linux machine to run C#.? It worked, but I kinda found TiVo.net to be a little bulky and prone to crashing.? Not the type of program that I can just put on a headless linux box and forget about. So I kept looking for a better solution.? What I found was amazing. Continue reading "pyTivo - Play any type of video on TiVo" Thursday, July 7. 2005CSS with Google Cache shows up Black
Since I did not need the background color changed I removed the attribute from the CSS file and it cleared the color problem in Google's cache immediatly. There are still some issues with div positions but I can live with that. I have also added Google Adsense ads to the page. It required a slight page modification but nothing that I think looks to bad. In turn it will help me pay for the overhead while I have no income. Wednesday, July 6. 2005Tk804 and TableMatrix 1.2 Works!
I listened to John?Cerney and I went to the Univ of Winnipeg repository and downloaded Tk804.026 and TableMatrix 1.2 and it works perfectly. I am still running perl 5.8.3 because I saw no need to tempt fate with another update that could cause a different error. I think the solution is that the Univ of Winnipeg site compiled TableMatrix 1.2 with Tk804, so you should only need to download TableMatrix but I got Tk804 from them as weel just to be sure. Hopefully this will solve other people problems out there. TableMatrix and Tk804 still Unresolved
However he did say that TableMatrix has to be recompiled with Tk804 in order for it to work with Tk804 so my thought is that maybe ActiveState is not compiling TableMatrix correctly with Tk804 and is reusing a compile version from Tk800. I am going to see if other repositories have versions that work. The rub is that now I have to have two parrallel versions of perl running on my machine. Version 1 with Tk800 that works for continued development. And Version 2 with Tk804 to test different versions of TableMatrix 1.2.
(Page 1 of 2, totaling 27 entries)
» next page
|
My Projects: My Projects - Some of my programming work. Humor: "And now Edgar's gone. . . . Something's going on around here." Quicksearch |
