Android Letdowns

After another week or so with Android, I wanted to compile all my gripes in one place.  All in all, I’m happy with my Epic 4G.  It’s a powerful piece of mobile tech with a ton of incredible features.

Caveat: some of these issues may be specific to the Epic 4G and/or Android version 2.1.  I certainly hope some of these are resolved in the supposedly upcoming Froyo build.

Continue reading “Android Letdowns”

CentOS and the Davis Instruments Vantage Pro 2

We recently upgraded a 13-year-old Davis Instruments weather station to the Vantage Pro 2.  Our old homegrown code wouldn’t work with the new hardware, so we had to find something we could use to get readings off the device.

Enter Andrew McMillan’s superb perl code, which handles all the communications with the Vantage Pro.  We just needed it packaged up for CentOS 5, along with a couple minor fixes (timezone and imperial unit handling).

Here is the RPM and the source RPM.

 

10 Days with Android – First Impressions

I just switched from an iPhone to an Android phone.  Specifically, I was using an iPhone 3G running version 4.2 of the iOS.  The new phone is an Epic 4G running Android 2.1 (Eclair).  Performance is night and day.  I thought I’d share some observations and workarounds that I’ve come across.

Continue reading “10 Days with Android – First Impressions”

Quick tip for vsftpd and CentOS

I rarely manage FTP servers.  The mere thought of them gives me shivers up and down my spine.  But occasionally, I have to deploy one for one reason or another.  

Here’s a quick tip for you. 

If you’re using vsftpd like me, you might find that you want to create accounts with access to FTP, but not to the shell (no ssh access, for example).  So you might naively want to define the user’s shell as /bin/false in /etc/passwd.

Unfortunately, that will block the user’s access to vsftp as well as ssh.  Instead, under RHEL and CentOS, you should use /sbin/nologin, which will block the ssh access, but continue to allow FTP access.

Even better, as I saw in one forum, you might make a symlink to /sbin/nologin and call it /sbin/ftp_only.  You’ll have to add /sbin/ftp_only to /etc/shells so it will be recognized as a valid shell.  But the advantage here is that you’ll be able to distinguish your FTP-only accounts from accounts that have been disabled for one reason or another.

Gallery and GalleryList in qooxdoo 1.2

I’ve been working on a port of a large application from qooxdoo version 0.6.5 to version 1.2.  It’s been arduous, and a big part of the pain has been that from qooxdoo 0.7 to 0.8, a number of widgets that we relied on heavily were removed: ListView, Gallery, and GalleryList.  The ListView can be replaced fairly well with a Table (which is an extremely powerful widget, btw).  But the Gallery and GalleryList have no direct replacement.  So I rolled my own.

Continue reading “Gallery and GalleryList in qooxdoo 1.2”

Building a distributed app with PHP and Net_Gearman, part 1

I’d been hearing a lot of great things about Gearman, and I was just looking for a reason to use it in a project.  Well, the opportunity finally arose, and as I was playing with the Net_Gearman PEAR library, I struggled a bit with the documentation, so I thought I might share some lessons learned.

Continue reading “Building a distributed app with PHP and Net_Gearman, part 1”