Mobile WebApp Frameworks

So I went digging for mobile webapp frameworks, and I found a nice list to investigate at a later time. While I have used iUI in the past, and it worked well for my purposes… I have read a few reasons why you may consider others (CiUI). Also, I seem to think that there would be some obvious advantages (and disadvantages) to using a cross-platform mobile webapp framework like PhoneGap and others.

Here the list I came up with:

I also wonder about any IDE’s out there, like Dashcode from Apple.

Update (2010-08-13). I just found this article: Announcing the jQuery Mobile Project

Once they get up and running, I imagine it will be a serious contender with the others.

Update (2010-08-18). Here’s an article from Mashable about some of the frameworks and libraries talked about above (and others): HOW TO: Make Your Mobile Websites Act More Like Native Apps

Posted by Karl Herrick on July 29th, 2010 in Javascript, Apple, Web Development | No Comments »

Gnome background changer

Gnome 2.3 on Ubuntu 10.04 LTS (Lucid Lynx) doesn’t appear to have an automatic wallpaper changer built in. While it appears there are many ways to accomplish this, I decided to write my own little script to get some time in with bash… alternative ways I have found include using “Wallpaper-tray” (which doesn’t appear to be in 10.04), Desktop Drapes, or a variation of the script below using things like “gconftool-2“.

To use this script, do the following:

Your background should change every three hours.

Posted by Karl Herrick on June 16th, 2010 in Linux, Cron, Bash | Comments Off

McAfee deleted svchost.exe

Wednesday afternoon I had at least two reports of workstations that were suddenly rebooting on their own. No networking and no taskbar were also symptoms. I thought it may be a virus, so I did a few scans with some of the well known Windows malware scanning tools, all the while thinking… why didn’t McAfee catch this? After two hours of scanning and no positives on the scans, I decided to rebuild the machine, but declared that I would begin on it the next day.

Well… turns out, McAfee was the issue. I got an email from them that read in part like this: “Our initial investigation indicates that the error can result in moderate to significant performance issues on systems running Windows XP Service Pack 3.” Moderate to significant? One person affected couldn’t get on the network, had no taskbar, and their computer was auto rebooting… That sounds more like extreme systemic failure! :-)

For verification of the issue, see the following screenshot:

zero_byte_svchost.jpg

Here are some steps I took to fix it (taken mostly from the following website: http://brianseekford.com/index.php/2010/04/21/how-to-fix-the-mcafee-svchost-crash-from-the-virus-definition-update/)

And more reading regarding the issue:

http://www.cnet.com.au/how-to-fix-your-mcafee-crippled-computer-339302608.htm

http://www.switched.com/2010/04/21/mcafee-update-sends-windows-xp-machines-into-endless-reboot/

http://tech.slashdot.org/story/10/04/21/1735211/McAfee-Kills-SVCHostexe-Sets-Off-Reboot-Loops-For-Win-XP-Win-2000

Posted by Karl Herrick on April 22nd, 2010 in Microsoft, Windows | Comments Off

Screensavers in Ubuntu 9.10

I used to do some incredible tweaking for my screensaver in Ubuntu, especially because gnome-screensaver wouldn’t allow for editing the particular screensaver options like xscreensaver would (see: https://wiki.ubuntu.com/ScreenSaver). These days, I don’t want to tweak… I just want the thing to shut off when I am watching fullscreen flash video, so that I don’t have to wiggle the mouse every ten minutes. :-)

So I made a simple toggle script and created a launcher for the script on the desktop. Gonna watch video? Double-click the icon. Done watching video, double-click the icon.

#!/bin/bash
PID=`pidof gnome-screensaver`

if [ "$PID" != "" ]; then
        #gnome-screensaver is running shut it down
        killall -9 gnome-screensaver
else
        #gnome-screensaver is not running, start it up
        gnome-screensaver
fi

Posted by Karl Herrick on March 12th, 2010 in Linux, Bash | Comments Off

Post via script

I just whipped up some PHP and threw it in the root of a brand new Wordpress 2.9.2 install:

<?php
include_once('wp-config.php');
include_once('wp-load.php');
include_once('wp-includes/wp-db.php');

$my_post = array();
$my_post['post_title'] = 'My post';
$my_post['post_content'] = 'This is my post.';
$my_post['post_status'] = 'publish';
$my_post['post_author'] = 1;

wp_insert_post( $my_post );
?>

Voila. The post appeared when navigating to the .php file.

See: http://codex.wordpress.org/Function_Reference/wp_insert_post.

For more creativity, get into the database: http://codex.wordpress.org/Function_Reference/wpdb_Class

Posted by Karl Herrick on March 11th, 2010 in Wordpress, PHP, Web Development | No Comments »