Archive for October, 2010

Firefox: Permanently removing the Adobe Contribute Addon from FF

Sunday, October 31st, 2010

Trying to uninstall the Adobe Contribute toolbar from contribute will reinstall it.

On Mac:

So, remove the {xxx-xxx-xxx-xxx} folder inside the /Library/Application Support/Mozilla/Extensions/{xxx….}

On Windows:

Remove c:Program FilesMozilla Firefoxextensions{xxx….}

Source (Adobe Forum)

Microsoft Office 2007, 2010 docx, xlsx, pptx mime type (to avoid the zip issue)

Thursday, October 21st, 2010
".manifest", "application/manifest"
".xaml", "application/xaml+xml",
".application",  "application/x-ms-application",
".deploy", "application/octet-stream"
".xbap", "application/x-ms-xbap"

".docm","application/vnd.ms-word.document.macroEnabled.12"
".docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"
".dotm","application/vnd.ms-word.template.macroEnabled.12"
".dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"
".potm","application/vnd.ms-powerpoint.template.macroEnabled.12"
".potx","application/vnd.openxmlformats-officedocument.presentationml.template"
".ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"
".ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"
".ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"
".pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"
".pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"
".xlam","application/vnd.ms-excel.addin.macroEnabled.12"
".xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"
".xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"
".xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
".xltm","application/vnd.ms-excel.template.macroEnabled.12"
".xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"

Forum: Source

Microsoft: Register the 2007 Office system file format MIME types on servers

Javascript: JSON Stringify, Parse, and HTML5 local storage

Monday, October 4th, 2010

Stringify

jsonString = JSON.stringify(value [, replacer [, space]])
source

var jsonString = JSON.stringify({name:"Mike",age:22});
//jsonString = '{"name":"Mike","age":22}'

Parse

var jsObject = JSON.parse('{"name":"Mike","age":22}');

Storage

  • length: Retrieves the number of key/value pairs in the list
  • key(index): Returns the key at the specified index
  • getItem(key): Returns the value associated with the given key
  • setItem(key, value): Sets a key/value pair
  • removeItem(key): Removes the item with the specified key
  • clear(): Removes all key/value pairs

LocalStorage Example:

var mikeInfo = JSON.stringify({name:"Mike",age:12});
localStorage.setItem("mikeInfo",mikeInfo);
Source: Web Storage

Other Links

  • json2 (json stringify/parser util)

Javascript: underscore.js nice javascript utilities

Saturday, October 2nd, 2010

http://documentcloud.github.com/underscore/