[flexcoders] Zend_AMF plus Cairngorm problem

2009-01-16 Thread JD Hoover
Hi,
I'm trying to get Zend_AMF to work Cairngorm (new to both) and I'm
getting the error:
code = NetConnection.Call.BadVersion. The php works when I'm loading
into a swf without Cairngorm.

php is complaining:

PHP Warning:  Zend_Loader::include_once() [a
href='function.include'function.include/a]: Failed opening
'WRBackEnd/ContactDAO.php' for inclusion
(include_path='.:/Applications/MAMP/bin/php5/lib/php') in
/Applications/MAMP/htdocs/WRBackEnd/Zend/Loader.php on line 83
Pertinent Code:
ServiceLocator:
 mx:RemoteObject id=svcContacts
 destination=zend
 source=WRBackEnd/ContactDAO
 mx:method name=getContacts /
 /mx:RemoteObject
/cairngorm:ServiceLocator
Command:
public function execute( event : CairngormEvent ) : void{
 var contactEvent : GetContactsEvent =
GetContactsEvent( event );
 delegate = new GetContactsDelegate(this);
 delegate.getContacts();
 }
 public function result( event : Object) : void{
 model.contactVOList = event as ArrayCollection;
 }
Delegate:
 public class GetContactsDelegate implements IResponder{
 private var responder : IResponder;
 private var service : RemoteObject;
 public function GetContactsDelegate(responder :
IResponder) {
 this.responder = responder;
 this.service =
ServiceLocator.getInstance().getRemoteObject(svcContacts);
 }
 public function getContacts() : void {
 var token : AsyncToken = service.get();
 token.addResponder(this);
 }
 public function result(info:Object) : void {
 var result:ArrayCollection = new ArrayCollection
();
 responder.result(result);
 }

services-config:
?xml version=1.0 encoding=utf-8 ?
services-config
 services
 service id=zend-service
class=flex.messaging.services.RemotingService
messageTypes=flex.messaging.messages.RemotingMessage
 destination id=zend
 channels
 channel ref=zend-endpoint/
 /channels
 properties
 source*/source
 /properties
 /destination
 /service
 /services
 channels
 channel-definition id=zend-endpoint
class=mx.messaging.channels.AMFChannel
 endpoint uri=http://localhost:/WRBackEnd/;
class=flex.messaging.endpoints.AMFEndpoint/
 /channel-definition
 /channels
/services-config

Can someone please point me in the right direction?

Thanks,
JD



RE: [flexcoders] Re: AIR and SQLLite

2009-01-14 Thread JD Hoover
I've never used the feature but I understand LCDS using data management 
services will auto sync in both directions from the sqlite ( in air ) and an 
online db.

J.D.Hoover
MageWindMedia
http://www.magewindmedia.com
Ph (415) 261-3000

[Moderator note: Could people at least try and trim their replies ?]
--- On Tue, 1/13/09, Tim Rowe tim.r...@carsales.com.au wrote:

 From: Tim Rowe tim.r...@carsales.com.au
 Subject: RE: [flexcoders] Re: AIR and SQLLite
 To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
 Date: Tuesday, January 13, 2009, 7:34 PM
 You also need to consider how you patch your DB when you
 don't want it to be destructive.
 
 I would suggest for this that you have your base version-1
 database, and every change from then on is applied as a
 patch, incrementally.  If you have 60 different database
 structure changes, then that's just an unfortunate
 situation you'll have to deal with.  This solution is
 kinda easier than exporting the data from an old DB (of
 which could be any version) and importing it into a new one.
 
 Yeah, there's other ways around it, but version
 compatibility is always a pain.
 
 The idea of tagging every row with a version is also a good
 one - you could probably achieve this better using a log
 table and triggers though, rather than on the same table. 
 If you really want absolute tracking of every data
 modification, you could do it like say instead of users(id,
 appversion, time, username, password) have users(id,
 username, password), users_log(id, action, username,
 password, appversion, time), and frequently archive/compress
 users_log - 'action' is something like pre-update,
 post-update, pre-delete, post-insert etc.  Just remember
 that by doing this you increase the data stored by about a
 factor of 4.
 
 Just some ideas to think about.
 
 --Tim
 
 
 From: flexcoders@yahoogroups.com
 [mailto:flexcod...@yahoogroups.com] On Behalf Of Kevin Benz
 Sent: Wednesday, 14 January 2009 2:24 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: AIR and SQLLite
 
 If you don't have to preserve any existing client data,
 then you could simply rip and replace the existing db file.
 Your Air application could drop the file, back it up or
 whatever and then replace it with another copy downloaded
 from a server.
 If you need to preserve some of the data then your problem
 becomes much more daunting. First you need to determine the
 rules by which an update is to occur. Is it at application
 start or part of some predefined schedule? What happens if
 one user leaves their client up for days/weeks/months and
 another restarts hourly? If you base on application start,
 how will you insure that you cover both use cases? How will
 you insure that client A and client B don't have
 different data?
 I would suggest adding timestamps to every server
 synchronized row allowing you to implement some concept of
 knowing what data might be stale.
 K
 From: flexcoders@yahoogroups.com
 [mailto:flexcod...@yahoogroups.com] On Behalf Of bonny_us
 Sent: Tuesday, January 13, 2009 7:02 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: AIR and SQLLite
 
 Hi Kevin,
 
 i want to do synchronize all client sqlite db's from a
 common
 back-end db?
 
 Thanks,
 Bonny
 
 --- In
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com,
 Kevin Benz kb...@... wrote:
 
  What are you asking?
 
 
 
  Are you wanting to synchronize all client sqlite
 db's from a common
  back-end db?
 
  Are you wanting to replicate the client data on the
 server?
 
 
 
  Air doesn't provide any facilities to help with
 either although both
  could be accomplished with a non-trivial development
 effort. I know
  there is some discussion on the web of tools to help
 although you need
  to be aware of the fact that Adobe extended SQLite
 with support for AS
  datatypes (like Date for example) so beware of tools
 that may not be
  aware of your whole schema.
 
 
 
  K
 
 
 
  From:
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
 On
  Behalf Of bonny_us
  Sent: Monday, January 12, 2009 7:57 PM
  To:
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] AIR and SQLLite
 
 
 
  Hi All,
 
  Any one have idea of SQLLite and AIR Synchronization.
 I want to create
  one POC using SQLLite. If any one have any example
 regarding this then
  please let me know. it will be very helpful to me.
 
  Thanks,
  Bonny
 


[flexcoders] lcds data-management-config error

2008-09-15 Thread JD Hoover
Hi,
I'm trying my first lcds app using jrun and sqlAssembler. I'm getting 
the following error:

Configuration error encountered on line 61, column 14: 'XML document 
structures must start and end within the same entity.'  
contacts_ol Unknown 1186162106978   87

I've checked the validation for the data-management-config file:

?xml version=1.0 encoding=UTF-8?

service id=data-service 

class=flex.data.DataService



adapters

adapter-definition id=actionscript 
class=flex.data.adapters.ASObjectAdapter default=true/

adapter-definition id=java-dao 
class=flex.data.adapters.JavaAdapter/

/adapters

default-channels

channel ref=my-rtmp/

/default-channels

destination id=sql-contact

adapter ref=java-dao/

properties

sourceflex.data.assemblers.SQLAssembler/source

scopeapplication/scope

metadata

identity property=id/

/metadata

network

subscription-timeout-minutes20/
subscription-timeout-minutes

pageing enabled=false pagesize=30/

throttle-inbound policy=ERROR max-
frequency=500/

throttle-outbound policy=REPLACE max-
frequency=500/

/network

server

database

driver-classcom.mysql.jdbc.Driver/driver-
class

urlC:/wamp/bin/mysql/mysql5.0.51b/data/
Contacts/url

usernamejd/username

passwordmagewind/password

login-timeout20/login-timeout

/database

actionscript-
classvalueObjects.ContactVOactionscript-class

fill

nameall/all

sqlSELECT * FROM contacts ORDER BY lName/
sql



/fill

create-item

sql INSERT INTO contacts(fName, lName, mI, 
title, address, city, state, country, zip, phoneMobile, phoneOffice, 
phoneHome, phoneFax=, email, site, company, contactFreq, lastContact, 
birthday, sharedIterest, sharedContacts, category)

VALUES(#fName#, #lName#, #mI#, #title#, #address#, #city#, #state#, 
#country#, #zip#, #phoneMobile#, #phoneOffice#, #phoneHome, 
#phoneFax#, #email#, #site#, #company#, #contactFreq#, #lastContact#, 
#birthday#, #sharedIterest#, #sharedContacts#, #category#)

/sql

/create-item

update-item

sqlUPDATE contacts SET 

fName=#fName#, lName=#lName#, mI=#mI#, title=#title#, 
address=#address#, city=#city#, state=#state#, country=#country#, 

zip=#zip#, phoneMobile=#phoneMobile#, 
phoneOffice=#phoneOffice#, phoneHome=#phoneHome#, 
phoneFax=#phoneFax#, email=#email#, 

site=#site#, company=#company#, contactFreq=#contactFreq#, 
lastContact=#lastContact#, birthday=#birthday#, 
sharedIterest=#sharedIterest#, 

sharedContacts=#sharedContacts#, category=#category# WHERE id 
= PREV.#ID#

/sql

/update-item

delete-item

sqlDELETE FROM contacts WHERE id=#id#/sql

/delete-item

count

nameall/name

sqlSELECT count(*) FROM contacts/sql

/count

/server

/properties

/destination

/service

I know I'm doing something stupid here but I can't many complete 
destination examples that would show me the problem

Thanks, JD



[flexcoders] Re: Flex courses

2008-09-04 Thread JD Hoover
http://www.adobe.com/devnet/flex/videotraining/

--- In flexcoders@yahoogroups.com, Nate Beck [EMAIL PROTECTED] wrote:

 I've always been a fan of Lynda.com's Video Training Library.
 
 On Wed, Sep 3, 2008 at 11:35 PM, bryancostanich
 [EMAIL PROTECTED]wrote:
 
It's not really a course, but there are some great free training
  videos on Adobe.com and other places that give some really good 
guidance.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, 
Giles
  Roadnight giles@ wrote:
  
   Hi All
  
   My partner who has been a tester for 5 years wants to re-train 
in Flex.
  
   She has done a post grad IT course in which she learnt OOD and C
++ /
   Visual Basic.
  
   Can anyone recommend some good courses in the London area which 
she
   can take to get her started?
  
   Thanks
  
   Giles Roadnight
   http://giles.roadnight.name