WebOS
---------------
original reg: steven@companionlink.com - not working even with a reset
User name: stevenCahill
again on 10/15/09: scahill@tenspiders.com canceled because needed to use User name!!!

CL test database:
 NoHH put database in ini folder

SDK
 samples: /opt/PalmSDK/0.1/share/samplecode/
 images:  /opt/PalmSDK/0.1/share/refcode/framework/200.18/images/

may need to run: sudo /opt/nova/bin/novacomd

novaterm - device command line!!!
  tail -f /var/log/messages              view end of log
  find / -name '*.db'
  find / -name '*.jpg'					find / -name 'BB1256078916990.jpg'
  find / -name 'global-menus.css'

  ls -a 								show all files including hidden
	
hard reset: While holding the power button, flip the ringer switch back and forth 6 times

novacom - device functions like copy
  novacom -l 			  				list connected devices
  To copy files from the local directory to the emulator:
  novacom put file://temp/ipodContacts.vcf < ipodContacts.vcf

Installer:  http://developer.palm.com/index.php?option=com_content&view=article&id=1552
 palm-package -o ~/WorkspacePRE/packages ~/WorkspacePRE/DejaPre						build installer for PreUSB and put in packages folder

 install application:
  palm-install ~/Workspace/packages/com.companionlink.clusbsync_1.2.2_all.ipk

 delete application:
  palm-install -r com.companionlink.clusbsync

---

PalmHost - application to debug in Safari

simulator:

http://developer.palm.com/index.php?option=com_content&view=article&id=1744

Top level mounted USB directory: /media/internal/ipodContacts.vcf
 USB emulator mounting try: http://developer.palm.com/distribution/viewtopic.php?f=6&t=1201&p=4360&hilit=usb#p4360

Images:
  Use a 24 bit per pixel RGB png with 8-bit transparency and 1-bit alpha channel whenever possible.

  App Icon: 48x48.png
  Account Icons: 48 x 48 (largeIcon), 32 x 32 (smallIcon)

Release:
	https://prerelease.palm.com/clearspace_community/message/2915#2915
	set appinfo.json logLevel: 0

to get the test databases:
 sudo novacom get file:///media/internal/.app-storage/file_.var.usr.palm.applications.com.companionlink.clusbsync_0/000000000000000d.db > 000000000000000d.db
 sudo novacom put file:///media/internal/.app-storage/file_.var.usr.palm.applications.com.companionlink.clusbsync_0/000000000000000d.db < 000000000000000d.db

Emulator:
 sudo novacom get file:///media/internal/.app-storage/file_.var.usr.palm.applications.com.companionlink.clusbsync_0/000000000000000f.db > fDb.db
 sudo novacom put file:///media/internal/.app-storage/file_.var.usr.palm.applications.com.companionlink.clusbsync_0/000000000000000f.db < fDb.db
 
 // emulator css
 sudo novacom get file:///usr/palm/frameworks/mojo/submissions/200.18/stylesheets/global-textfields.css > global-textfields.css
 sudo novacom get file:///usr/palm/frameworks/mojo/submissions/200.18/stylesheets/global-menus.css > global-menus.css

 sudo novacom put file:///var/palm/data/file_.var.usr.palm.applications.com.companionlink.preusb_0/0000000000000005.db < ~/workspace/000000000000000b.db
  rm /var/palm/data/file_.var.usr.palm.applications.com.companionlink.preusb_0/0000000000000005.db
 sudo novacom get file:// /var/log/rdxd/pending/rdxd_log_21.tgz > rdxd_log_21.tgz
 
 sudo novacom get file:///var/palm/data/file_.var.usr.palm.applications.com.companionlink.clusbsync_0/0000000000000007.db > 7Pre.db
 sudo novacom put file:///var/palm/data/file_.var.usr.palm.applications.com.companionlink.clusbsync_0/0000000000000007.db < 7.db

 sudo novacom get file:///usr/palm/applications/com.palm.app.contacts/javascripts/Utilities.js > ~/workspace/palm/Utilities.js
 sudo novacom get file:///usr/palm/applications/com.palm.app.contacts/javascripts/perflogger.js > ~/workspace/palm/javascripts/perflogger.js
 sudo novacom get file:///usr/palm/applications/com.palm.app.contacts/app/controllers/gal-helper.js  > ~/workspace/palm/app/controllers/gal-helper.js 
 sudo novacom get file:///usr/palm/applications/com.palm.app.contacts/app/models/pimsync-luna-service.js  > ~/workspace/palm/app/models/pimsync-luna-service.js
 sudo novacom get file:///usr/palm/applications/com.palm.app.usbpassthrough/app/controllers/app-assistant.js > ~/workspace/palm/app-assistant.js
 sudo novacom get file:///usr/palm/frameworks/media/palmInitMedia.js > ~/workspace/palm/palmInitMedia.js
 sudo novacom get file:///usr/palm/frameworks/mojo/builtins/InstallPrototypeBuiltIn.js > ~/workspace/palm/InstallPrototypeBuiltIn.js
 sudo novacom get file:///usr/palm/applications/com.palm.app.screenlock/app/models/SystemService.js > ~/workspace/palm/SystemService.js
 
 sudo novacom get file:///usr/palm/applications/com.palm.app.videoplayer.launcher/app/models/medialist-datasource.js  > ~/workspace/palm/medialist-datasource.js

device dbs:
 sudo novacom get file:///var/palm/data/file_.usr.palm.applications.com.palm.app.phone_0/0000000000000002.db > ~/workspace/palm/palmPhone.db
 sudo novacom get file:///var/palm/data/Databases.db > ~/workspace/palm/Databases.db
contacts db on device:
 sudo novacom get file:///var/luna/data/dbdata/PalmDatabase.db3 > ~/workspace/palm/PalmDatabases.db3
 sudo novacom get file:///usr/lib/luna/PalmDatabase.db3  > ~/workspace/palm/PalmDatabases2.db3
 sudo novacom get file:///usr/palm/applications/com.palm.app.contacts/app/controllers/detail-assistant.js > ~/workspace/palm/com.palm.app.contacts/app/controllers/detail-assistant.js
 sudo novacom get file:///usr/palm/applications/com.palm.app.contacts/app/controllers/speeddial-assistant.js > ~/workspace/palm/com.palm.app.contacts/app/controllers/speeddial-assistant.js
 
 sudo novacom get file:///usr/palm/applications/com.palm.app.contacts/app/controllers/speeddialchoice-assistant.js > ~/workspace/palm/com.palm.app.contacts/app/controllers/speeddialchoice-assistant.js
  \->use of phone.quickDial and this.phone.quickDialDisplay
 
 sudo novacom get file:///usr/palm/applications/com.palm.app.calendar
 calendar code:
 	sudo novacom get file:///usr/palm/applications/com.palm.app.calendar/app/controllers/edit-assistant.js > ~/workspace/palm/com.palm.app.calendar/edit-assistant.js
 calendar views: 
 	sudo novacom get file:///usr/palm/applications/com.palm.app.calendar/app/views/edit/edit-scene.html  > ~/workspace/palm/com.palm.app.calendar/edit-scene.html
 
 German contacts:
 sudo novacom get file:///usr/palm/applications/com.palm.app.contacts/resources/de_de/strings.json > ~/workspace/palmGerman/strings.json 

 JSlint - javascript undefined var errors

sqlite date string -  YYYY-MM-DD HH:MM:SS

JavaScipt Notes:
   use var in a function to make it local
   Boolean object has no initial value or if it is 0, -0, null, "", false, undefined, or NaN, the object is set to false. Otherwise it is true (even with the string "false")!
   
WATCH 
	Event.allday should be event.allDay

Deleting Records:
-----------------
 - Pre will just delete the records in the db (Clx will check for missing records)
 - Clx will set the 'clxdeleted' flag and the Pre will delete the Pre record and the db record
 
Reread Pre Records:  set prefernce 'lastTrackCheck_PreTime' to 0 (this.mPref_lastTrackCheck_PreTime) and then hit sync

UPDATE contacts SET (id=NULL) where autoid>0;

Developer Mode:   upupdowndownleftrightleftrightbastart

ROM
-------------------------------------------------------------------------------------
After installing 1.1 could not revert back to older debug ROM
Called Sprint support: 877 639-8351
For 503 957-3054 the reset code is 990002 (get there via ## 786#)
Get keypad via red key with shift##

Was having trouble getting Palm Profile to activate, the 'EV' icon needs to be in the upper right to connect to the Sprint server.

Notes
-------------------------------------------------------------------------------------
 background app - http://developer.palm.com/index.php?option=com_content&view=article&id=1598
 Mojo.Depot - should have used for Prefs

 calling openDatabase and calling rereadPreferences to many times quickly causes the database to be DESTROYED!!!
	
Emulator with Pixi size
------------------------------------------------------------------------------------
http://developer.palm.com/index.php?option=com_content&view=article&id=1744

to Pixi size:
 cd /Applications/VirtualBox.app
 VBoxManage list vms
 VBoxManage setextradata "Palm Emulator (1.2.0.33)" "CustomVideoMode1" "320x400x32"

to Pre:
 cd /Applications/VirtualBox.app
 VBoxManage list vms
 VBoxManage setextradata "Palm Emulator (1.2.0.33)" "CustomVideoMode1" "320x480x32"

hard Reset:
 /Applications/Palm\ Emulator.app/Contents/MacOS/palm-emulator --reset
 
Pictures
------------------------------------------------------------------------------------
 /var/luna/files/AA1256061105504.jpg
 /media/internal/.app-storage/file_.var.usr.palm.applications.com.companionlink.preusb_0/

Localization
------------------------------------------------------------------------------------
  http://wiki.laptop.org/go/Locales
  in the HTML when the labels have N/A they are substitude via the code in Setup
  
  Geschäftlich = Gesch√§ftlich 

HTML
-------------------------------------------------------------------------------------

2 items in one divider for options (but with bad triangle icon placement):

	<div id="memoCntText" class="palm-info-text"></div>
	<div id="taskCntText" class="palm-info-text"></div>

not getting styles to work with row style...
style="font-size=12px; margin-left:30px; padding-top:12px;"
style="font-size=12px; bgcolor=#00FF66;"

no-separator = no lines
background-color: #ffffff;			- use to fit on tilting screen

#{dueDate}
  
#{priority} - #{subject}

css?:
.selected {
	position: relative;
	height:16pt;
}

orig:

#{dueDate}
  	
#{priority} - #{subject}

--
margin:25px 50px 75px 100px;
	◦	top margin is 25px
	◦	right margin is 50px
	◦	bottom margin is 75px
	◦	left margin is 100px

overflow:hidden;  - keep text in its box
  
ToDo
-------------------------------------------------------------------------------------
 Pictures only come from CL - need to move image files on device or read raw image data 
   http://developer.palm.com/distribution/viewtopic.php?f=11&t=236

 quick dial being lost from device - (undocument phone fields: phone.quickDial, phone.quickDialDisplay) see extraDetails
   need to add new fields for each phone number to save and restore 
   Warning: assigning a quick dial does not cause an update
   
 make spinner a scrim (overlay list): createScrim
  
Releases
-------------------------------------------------------------------------------------

CLEAR: "logLevel" <---<<<

Debug: upupdowndownleftrightleftrightbastart or webOS20090606

1/28/10 1.2.4 - requires CL >= 3089
  Only show errors when logging on, Wayland does not want any calls
  CL 3089 sends WebOS exceptions
  Not setting Recurring parent ids, so exceptions from CL act independantly

1/21/10 1.2.3 
	updated French strings

1/7/10 1.2.2 for OS 1.3.5 SDK 1.3.5.368 (build on new CL Mac)
	Fix contact picture path from 1.3.5 OS update. 

11/6/09 1.2.1
	show newly created categories (Personal|Business)
	capital 'All c

11/5/09 1.2.0 SDK 1.2 - requires CLW > 3080
	Card based Sync | Memos | Tasks  (appinfo.json: "noWindow" : "true")
	
	Task Priority 	- for any non 'Palm' PIM: 1,2,3 replaced with !, blank, ↓ in list view (High, Normal, Low)
 					- for Palm Desktop: 1,2,3,4,5
 					
	Memos/Tasks - option to display a tighter text layout in the lists

	Contact images are imported from CL (not sent back from Pre)

	Search - Memos
			 Tasks - option for  'Subject' or 'Subject and Notes'	
			 
	Memos - Ascending/descending sorts:
		Memo <- Default
		Order (new - order created)
		Category, Subject
		Category, Order
		
	Tasks - Ascending/descending sorts: 
		Priority, Due Date, (Subject)  <- Default
		Due Date, Priority, (Subject)
		Category, Priority (Due Date, Subject)
		Category, Due Date (Priority, Subject)
	
 	Memo/Task - sorting case insensitive
 	can rotate device
 	localization: German, Spanish, French
 	


	From Sync card:
 	 'e' - show last sync times
	 'q' - refresh Memo/Task counts (and will reopen the database)
	
10/5/09 1.0.1 SDK 1.1
	Pull polling for database changes (never released to Palm)
	Update css for icons in Help
	Enable Help in Tasks and Memos
	Switch over to defaut menu on main screen (to include Edit menu)

9/9/09 1.0.1
	Show No items for Tasks/Memos

9/4/09 1.0.0  (internal was 0.3.0)
	Internal Tasks and Memos
	url in contacts always set to '74656e73706964657273' (tenspiders in hex)
	'5761796c' is 'Wayl' in hex in the id field within the tasks and memos table (1466005868 as decimal)
	added 'copyright' value to preferences table
	Tasks - leaving exteralId blank will cause CLX to delete any records from the the tasks table

8/25/09 0.2.0 Mac
	initial realease to Palm - ignored!
	no background
	no USB events

{"source": "app/assistants/stage-assistant.js"},
	