Categories
Uncategorized

PHP error_reporting

PHP (Once again a note for myself, but if you find it useful, well, you’re welcome!)

After a PHP upgrade, I noticed at least one bit of PHP code one the server wasn’t working (the TextLinkAds plugin for WordPress) so after a bit of digging around in php.ini, I found that this line was uncommented:

error_reporting  =  E_ALL

Which was causing warnings to spit out when some PHP scripts were run. I commented that line, and uncommented this line instead…

error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR

…for a little bit less error reporting/warnings about things, and that fixed it.

I’m sure this is not a cure-all, as another site with the same plugin always worked fine, and was never affected, but still, I didn’t really like seeing those warnings (which I believe are harmless, but they may need investigating anyway.)

Categories
Uncategorized

Visitor Stats

I’m typically not one to obsess over statistics related to the visitors of this web site, but I figured I’d take a look and see what the numbers might tell me.

Stats by Browser

Firefox is the winner here, which wasn’t too surprising to me. I was surprised to see Chrome ahead of Safari though, even if by a small percentage. Of course I’m saddened that Internet Explorer even shows up at all. At least Chrome beat IE. Also, welcome SeaMonkey user!

Stats by Operating System

Too many Windows users! I’m kidding… sort of. I mean, I tend to write about things related to Macs, Linux, and open source… none of which are Windows. My assumption is that the people with corporate jobs who are forced to use Windows machines at work (but use Macs and Linux machines at home) tend to browse this site while on the job. Yeah, that makes sense. Also, welcome to both Android users, and that lone Playstation Portable user!

Stats by Browser / Operating System

Firefox / Windows users take the lead! So at least some Windows users are smart enough to install Firefox. Not surprising, as I think it’s been at least a few years since even die-hard Microsoft fans realized that Firefox is a better/safer browsing experience than Internet Explorer. As for IE being second? Those are obviously the corporate drones who do not have privs to install Firefox. At least Safari made it into the list once… Also, welcome Mozilla Compatible Agent / iPhone (what is that exactly!?) and your friend using Mozilla / Linux!

Stats by Screen Resolution

Hooray for more pixels! Is no one visiting this site on their shiny new Netbook? I spent so much time optimizing for 800×600 when I got my Eee PC.. all for naught! Those 1920×1080 screens must be all the designers I know. And that 320×396? That’d be the iPhone.

So join me in welcoming all visitors to the site… be they Chrome / Windows users, or iPad users, 1024×600 screen resolution users. Welcome!

Categories
Uncategorized

Data goes in, Data comes out.

Data Portability

When you’re building a web application (you know, like Twitter, or Flickr, or Facebook, or Last.FM, or Posterous) you obviously want people to put data into it, and you’re going to make it easy to do.

But are you making it easy for people to get their data out of it?

Here’s my simple rules for building a web application:

  1. Make it easy for users to get their data into your system.
  2. Make it easy for users to get their data out of your system.

That’s it. Do number 1, then do number 2, Do not stop in between number 1 and number 2.

If you’re convinced your application is amazing, you shouldn’t have to rely on lock-in to keep people using it. They’ll praise it openly, they’ll become your fans, they’ll shout it to their friends. Anything else is bullshit.

Categories
Uncategorized

Pressure Sensitive Web Apps?

I’m quite pleased with our latest input device, the Wacom Bamboo Pen and Touch Tablet, and while doing some browser maintenance, I noticed a plugin:

Wacom plugin

So, I set about looking for how I could use this, and found this Wacom page which was… pretty much useless. None of the examples worked. In fact, I get an alert saying the WacomPlugin could not be found. Which is odd, because, well, it certainly appears to be there. After a little testing it seems it doesn’t work in Firefox or Chrome, but does work in Safari. Some “OS Magic” may be sprinkled onto this plugin. Try using this page in Safari if you’ve got a tablet and you should see it outputting some nice numbers.

After a quick search the only example I could find was this amazingly fun drawing app called Harmony that Ricardo Cabello had created and added the Wacom Javascript API to. I managed to create this amazing masterpiece you see below:

harmony

But honestly, it’s really hard to tell if the pressure sensitive part works. It seems to sort of work. I do get different line widths from using the tablet versus using the mouse. I’d like to dig into the Wacom Javascript API stuff a bit more and see if I can get some simple example code to work. Of course it would be great to see it working in browsers besides Safari.

Categories
Uncategorized

The end of what?

According to Russell Beattie, it’s the end of Mowser.

I’d never even heard of Mowser. Granted, I’ve not been that deeply involved in the mobile web as I used to be, or as much as Russell has been, but years ago I followed Russell fairly closely. I think around 2003 or so he started reading my blog, and I then started reading his, and I took an interest in what he was doing. In my eyes he was the expert on the mobile web.

But as he says, today, the mobile web is (to many people) an iPhone, and I think that’s ok, and I think iPhone users who have tried to use the mobile web previously would agree with that. I know people who would have never used or even attempted to use something call “the mobile web” but the fact that they now have an iPhone and it has “the internet on it” is all it takes…

I tend to not think of myself as an Apple fan-boy, I do believe they got the mobile internet experience right on the iPhone. Who knows? Maybe someday I’ll get one and see if that changes my opinion.