editing in apple dashboard? hold down the alt key & the cursor becomes a cross + & you can select by column rather than line. Also TextMate
Archive for September, 2009
editing in apple dashboard / dashcode?
Snow Leopard breaks NetBeans
So i am told, as i do not use it. I think it installs ok but then when performing a compile it “Barfs” as my informant poetically puts it about 1/2 way through.
Snow Leopard breaks Dashcode
Developing widget via Dashcode and upgraded from Leopard to Snow Leopard and noticed some funnies in the code. Drop down boxes not working so i upgraded to the latest version of Xcode for SN and all seems ok now.
So thats two, well three actually as Growl now doesn’t work on SN’s version of Mail, GrowlMail. At least this time is gets excluded gracefully and Mail fires up
Snow Leopard breaks MySQL
Well it broke my copy anyway. i installed mysql-5.1.23-rc-osx10.5-x86_64 ok. Tried to add the mac-ports version but ran into problems with that simply not wanting to install.
In the end downloaded the latest stable from MySQL and followed their instructions
Fonts on the iPhone
Most apps on the iPhone are rendered in Helvetica, only, no choice. However in the Safari browser there is a choice for the developer. However it is a limited choice.
Full sets are provided of:
- Arial
- Courier New
- Georgia
- Helvetica
- Marker Felt
- Times New Roman
- Trebuchet MS
- Verdana
- Zapinfo
Partial set are:
- American Typewriter (No italics on iPhone)
- Arial Rounded MT Bold (No italics on iPhone)
Special cases are
- Courier (Will be substituted by Courier New)
- Helvetica Neue (Will be substituted by Helvetica)
- Times (Will be substituted by Times New Roma)
Font Families and the iPhone
Normally in a web app i would put a font-family in the CSS something like this
" font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;"
This way i cover my bases as to whether the target browser can handle the various fonts and will fail gracefully if it is missing some.
However that are only a limited number of fonts on the iphone and presumably if you only specify one, say Helvetica, the iPhone will always have that font and use it. So i don’t really need a font-family. Do I?
A good reason given for at least adding the sans-serif font into the font-family is that Apple may change the iPhone or Safari in the future, so this would have some degree of future proofing.
Dashcode and cURL
Need to get data from another site well you can use cURL to get it.
widget.system("/usr/bin/curl http://api.asite.com/rates/rate.php?pair=EUR/CHF", null).outputString;
this will pull the rate as a json string, but as the site needs authentication it actually won’t, it will fall over. In php i would set this up with curl_opt but in dashcode i am not able to use php.
However run man curl and scrutinise the options and you see
-u/--user
substitute the correct information and the string looks like this:-
widget.system("/usr/bin/curl --user johnh:aranaio http://api.worldfirst.com/rates/rate.php?pair=EUR/CHF", null).outputString;
and that does the trick.
Time .….
.…. natures way of preventing everything happening at once. OK but when i used to commute i listen to podcasts, Mac OS Ken, Historyzine, Skeptoid etc. Now i don’t commute i don’t seem to have the time to listen to them. Strange.
Widget Development
A quick overview of scripting tools, methods and widget/gadget delivery platforms
Google Gadgets
Development Technologies:
HTML, XML, CSS, Javascript
Development Platform / Language:
Any with different toolkits
Target:
iGoogle platform
Complexity Level:
Varied, entry level medium.
Libraries / API / Tools
Comprehensive
Delivery Mechanism
On OpenSocial containers that support gadgets, such as orkut and the iGoogle sandbox.
In applications that support gadgets, such as Google Sites.
The Google Content Directory. Submitting your gadget to the content directory makes it available to a wider audience.
Support Groups
Yes
iPhone
Development Technologies:
1) HTML, XML, CSS, JavaScript
2) Objective C
Development Platform / Language:
Mac – Dashcode (1)
Any Editor (1)
Mac XCode (2)
Target:
Any Webkit based browser (1)
iPhone (2)
Complexity Level:
Medium (1)
High (2)
Libraries / API / Tools
Comprehensive
Delivery Mechanism
Any web site (1)
Mac Appstore (2)
Support Groups
Yes
Windows Gadget Platform
Development Technologies:
HTML, XML, CSS, JavaScript
Development Platform / Language / Language:
Any editor
Visual Studio
Target:
Windows Sidebar Vista, Windows 7
Complexity Level:
Medium
Libraries / API / Tools
Yes
Delivery Mechanism
Does not look like centralised or managed distribution but available to individual users to download
Support Groups
Yes
Opera Widgets
Development Technologies:
HTML, XML, CSS, JavaScript
Development Platform / Language:
Any editor
Target:
Opera Browser
Opera Mobile devices
S60 (Symbian) Devices
Complexity Level:
Medium upwards
Libraries / API / Tools
Yes + SDK for specialised areas.
Delivery Mechanism
opera widgets web site
Support Groups
yes
Firefox Addins / Addons
Development Technologies:
JavaScript, XUL (Zool)
Development Platform / Language:
Any Editor
Target:
Firefox Browser
Complexity Level:
Medium to high
Libraries / API / Tools
Yes, lots
Delivery Mechanism
Firefox addon store
Support Groups
Yes
Change of Direction
Now living and working back in Nottingham doing web development and Mac widgets and iPhone application development
Archives
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- January 2009
- December 2008
- March 2008
- February 2008
- December 2007
- November 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- September 2006
- July 2006
- November 2005
ajax / javascript
cli
css / design
database & related
frameworks & patterns
FreeBSD
general / technical
just silly
mapping
moi
open source paradigms
people i know
plugins
programming
search technologies
smalltalk
tna
underlying engines
web 2.xx stuff
weird stuff