Jeff dePascale Blogging on and developing web and mobile technologies

25Jun/115

HTML5 manifest mime type in grails

I ran into an issue serving the proper mime type for a cache manifest from grails today, adding a 'manifest' key to grails.mime.types failed to register for some reason (if you know why, do tell!). Running on a server this can be addressed by setting the mime type directly in tomcat, but i needed to test locally using the built in Tomcat server. Hopefully this inability to serve a manifest mime type will be addressed soon, but in the meantime the workaround was to make the manifest a generated gsp and add the content-type declaration directly to the manifest:


<%@ page contentType="text/cache-manifest" %>CACHE MANIFEST
# rev 0
file.html

It's important to keep CACHE MANIFEST on the same line as the contentType property - manifests are discarded if they don't start from the first character with that declaration.

One last thing - this works better cross browser (where some browsers dont respect a manifest not ending in .manifest) by setting grails.mime.file.extensions to false, which will allow your mapping to be directly to cache.manifest, returning the rendered gsp.

Filed under: General 5 Comments
12Apr/110

Internet Explorer 10 preview – no sign of Web Workers, among others

Microsoft today released a preview of Internet Explorer 10, and as of this first release there are no signs of Web Workers or other wish list JS items in IE9. I'll give the benefit of the doubt as this preview is exceedingly early and it seems to be focusing on CSS3 improvements, but so far, no dice. Having said that, it's good to see the new IE team focusing on a more fluid and transparent release schedule, with previews promised frequently and a full major release cycle potentially being within an 18 month window if the timing of this first preview is any indication.

Filed under: General, Web No Comments
8Apr/101

Multitask apps can be killed in OS 4.0

[dtse][/dtse]Scott Forstall, SVP of iPhone Software for Apple, appeared to dodge the question of how to kill an app running in the new multitasking interface for iPhone OS 4.0. When asked during the Q & A session post announcement, he stated that it wasn't necessary to kill the apps in the first place. Note he never actually said you can't kill an app, and the iPhone Simulator for OS 4.0 confirms directly that yes, rest assured, you can kill a running app quickly and easily, and it's just as you would expect - tap and hold, and a red dash icon appears over the app. Touch again and the process is killed. Simple, expected, works. See the image to the right for a screen shot.

Really, killing apps is the only reason to have the multitask bar anyway - since multiple instances of running apps isnt possible in iPhone OS, you could simply return to the running app by re-tapping the app icon on the home screen. The multitask bar exists solely for a shortcut to running apps and to kill them from running.

No more stressing in the blogs about apps being killed only by the OS! You do have control if you want it. Likely what Scott was implying is that you just don't have to monitor it if you don't choose to.

29Jan/1010

Why the iPad’s user agent string presents a problem

[dtse]safari_20100127[/dtse]

Note: This post has been getting a fair amount of traffic. I originally posted this directly after launch, and subsequently it contained outdated information from what is now known from the final release of OS 3.2. I originally had left the original post info for the sake of blogging/ journalistic integrity, however after three revisions because of newer info, I decided to strip the clutter of invalid content. Having said my disclaimer, below is the revised new post, and here is the release version of the iPad UA string as of 4/6/10, pulled directly from my 32GB wifi model:

Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) version/4.0.4 Mobile/7B367 Safari/531.21.10

more after the break.

25Mar/090

Pardon the dust…

After battling Nucleus CMS for a few months, i decided it was time to switch to wordpress.  Please pardon the inconsistencies during the transition.

Filed under: General No Comments