Re: Anything to help implement SSO in WO/WONDER?

2020-08-29 Thread Matthew Ness via Webobjects-dev
Hi Robert,

We've implemented SAML with our sites using Open SAML. It is relatively easy to 
generate the authn and assert functionality for both IDP and SP use cases.

https://mvnrepository.com/artifact/org.opensaml

If you're looking at SAML and need a prompt shoot me an email.

Regards,

-- 
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/


On Sun, Aug 30, 2020, at 4:16 AM, Steve Peery via Webobjects-dev wrote:
> There is a framework called ERGoogleSignIn which makes using Google 
> Sign-In very easy.
> 
> Steve
> 
> > On Aug 29, 2020, at 9:03 AM, Jesse Tayler via Webobjects-dev 
> >  wrote:
> > 
> > Single sign on? What involved? Don’t you just wire up to google or some 
> > oauth?
> > 
> >> On Aug 28, 2020, at 11:45 PM, Robert Hanviriyapunt via Webobjects-dev 
> >>  wrote:
> >> 
> >> Anything to help implement SSO in WO/WONDER?
> >> ___
> >> Do not post admin requests to the list. They will be ignored.
> >> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> >> Help/Unsubscribe/Update your Subscription:
> >> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
> >> 
> >> This email sent to jtay...@oeinc.com
> > 
> > ___
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com
> > 
> > This email sent to spe...@me.com
> 
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
> 
> This email sent to m...@logicsquad.net
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Apache rules and SSL

2020-08-27 Thread Matthew Ness via Webobjects-dev
I terminate TLS at the ALB/NLB/(ELB). You can apply your cert chain in cert 
manager and apply it to your xLBs.

Regards,

-- 
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/


On Fri, Aug 28, 2020, at 7:40 AM, Jesse Tayler via Webobjects-dev wrote:
> 
> I use AWS+Route53 for SSL and I really just want to force all requests 
> to HTTPS and I’m having trouble
> 
> I have a few common WO rewrites to shorten URLs
> 
> 
> RewriteRule ^/signup /apps/WebObjects/MyAppName.woa/wa/signup 
> [last,passthrough]
> RewriteRule ^/default /apps/WebObjects/MyAppName.woa/wa/default 
> [last,passthrough]
> 
> RewriteRule ^/myappname(.*)$ /apps/WebObjects/MyAppName.woa$1 [PT,L]
> 
> 
> And I seem to have these SSL related:
> 
>   RewriteCond %{HTTPS} on
>   RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
> 
> 
> 
> And no matter how I try to program this, I get too many redirects 
> because apparently my rules run a loop or something?
> 
> Basic redirects are not unique to WebObjects!
> 
> How are you guys programming apache to shorten URLs and also bounce to 
> SSL if it is not already?
> 
> 
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
> 
> This email sent to m...@logicsquad.net
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Creating a EOModel in code

2020-06-28 Thread Matthew Ness via Webobjects-dev
Hi Don et al,

I have written code before which dynamically creates EOEntities and 
relationships based on external data (both database interrogation or resource 
files), mainly to solve an abstraction workflow at a lower level than normal. 
Both using the default EOModelGroup and custom groups. It dynamically created 
relationships to entities that were already defined in an EOModel and whatnot, 
which were then available for access, updates, fetcehs, etc, in the running 
applications.

I'm pretty sure some parts/frameworks of Wonder may do something similar, but 
can't recall OTTOMH. Also perhaps take a look at the reverse engineer 
functionality in WOLips?

There is a lot you can do from the EOModelGroup and onwards. Whether you 
*should* is a different story :) but your requirement seems valid.

So it can be done, best of luck! What are the problems if any that you have 
experienced up to now?

Aside: I agree with Hugi re Cayenne -- we have a number of applications which 
utilise Cayenne dealing with millions of rows and 200+ entities and it's a 
wonderful framework to work with, especially with integrations like AgRest.

Regards,

--
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/


On Mon, Jun 29, 2020, at 4:03 AM, Jesse Tayler via Webobjects-dev wrote:
> 
> Nothing stops you from connecting to the database however you’d like. I can’t 
> quite imagine what scenario a user would enter the full connection dictionary 
> or how an app would then connect to a database that is somehow ‘unknown’ or 
> introduced by the user, so maybe it’s just hard for folks to get an idea of 
> why this would exist in the first place?
> 
> I'd elaborate on your goals rather than your chosen course of action because 
> I don’t think it’s easy to imagine for folks to help you.
> 
> 
> 
>> On Jun 28, 2020, at 11:51 AM, Don Lindsay via Webobjects-dev 
>>  wrote:
>> 
>> Sorry if I was not clear in my first email.
>> 
>> I don’t want to create a EOModel file. I want to take database connection 
>> properties from the user of an application and use those to build an EOModel 
>> that is used in the application while it is running on the server. The 
>> database connection parameters would be stored in a settings database and 
>> retrieved when the user wants to load data from that connection. This is a 
>> tool to allow users to specify their own data sources and compare data 
>> between different datasources in whatever manner the user wishes to compare 
>> or display it.
>> 
>> Thanks for all the answers so far I was not aware Apache Cayenne could be 
>> used as a full replacement for EOF
>> 
>> Don 
>> 
>> 
>>> On Jun 25, 2020, at 20:53, Don Lindsay via Webobjects-dev 
>>>  wrote:
>>> 
>>> Hello;
>>> 
>>> The Documentation for EOModel states that you can build one in code, but 
>>> there are no examples or further information that I can find. Does anyone 
>>> have any documentation or samples that they can direct me to so I can 
>>> create EOModels while the application is running:
>>> 
>>> What I want to do is connect to a database that my app does not know about, 
>>> someone provides connection parameters and I create an EOModel and connect 
>>> to that database or rest and access it using the EOModel created using new 
>>> EOModel().
>>> 
>>> Thanks
>>> 
>>> Don
>>> __
>>> 
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Complimentary App Server Choice

2020-02-14 Thread Matthew Ness via Webobjects-dev
I'll add we still actively develop quite a few WO apps, but to answer your 
question with Bootique/Cayenne we are using various front end frameworks. 
React, Angular, React Native and Flutter now for mobile.

Cheers,

Matt

On Fri, Feb 14, 2020, at 6:14 PM, Jérémy DE ROYER wrote:
> Hi 
> 
> And about wo components framework ?
> 
> What are you using with Bootique ?
> 
> 
> Jérémy 
> 
>> Le 13 févr. 2020 à 23:08, Matthew Ness via Webobjects-dev 
>>  a écrit :
>> 
>> 
>> I wouldn't hesitate to recommend Bootique. 
>> 
>> We've had various types of Bootique apps in production for years now to 
>> great success, some with the Cayenne module directly derived from older WO 
>> apps/dbs, some communicating with existing WO apps, others simply processing 
>> tasks.
>> 
>> 
>> Regards,
>> 
>> --
>> Matt
>> http://logicsquad.net
>> https://www.linkedin.com/company/logic-squad/
>> 
>> 
>> On Thu, Feb 13, 2020, at 11:25 PM, Andrus Adamchik via Webobjects-dev wrote:
>>> My opinionated take is the following:
>>> 
>>> * The "official" JavaEE is dead and is now a pure volunteer effort under 
>>> https://jakarta.ee/ . The "appserver" concept has almost disappeared and 
>>> morphed to something different. All the past market leaders have moved on 
>>> to more lightweight solutions, though some still cling to .war deployment. 
>>> 
>>> * SpringBoot is the market leader in the Java world. If you are looking to 
>>> build a marketable Java developer resume, learn SpringBoot.
>>> 
>>> * If you need to write apps for your org or your customers, and are not 
>>> constrained by the PHBs opinion, use Bootique. It is a better platform in 
>>> the modern appserver-free world. Bootique is "commercially-viable" in a 
>>> sense that there are hundreds of apps that run in prod for a number of 
>>> years. But it is still an open source effort supported by community and a 
>>> mid-sized company (ObjectStyle), so it is sometimes an uphill battle in 
>>> organizations that are looking to conform to the lowest common denominator.
>>> 
>>> So you decide :)
>>> 
>>> Andrus
>>> 
>>> 
>>>> On Feb 13, 2020, at 3:06 PM, Gino Pacitti via Webobjects-dev 
>>>>  wrote:
>>>> 
>>>> Thanks for that… it looks really interesting…
>>>> 
>>>> Is it a commercially viable alternative to some of the others like JBoss, 
>>>> Tomcat, Websphere etc..
>>>> 
>>>> I would like to add another feather to my bow but not really sure which 
>>>> architecture to devote time to so that I can work on bigger projects in a 
>>>> team...
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> On 13 Feb 2020, at 11:16, Andrus Adamchik  wrote:
>>>>> 
>>>>> We are using Bootique: https://bootique.io/
>>>>> 
>>>>> Just like SpringBoot, its idea is that it is not an "appserver". It gives 
>>>>> you a plain Java app with your own "main" method, and a way to assemble 
>>>>> various components together (and also modularity, dependency injection, 
>>>>> consistent configuration and a large collection of ready-to-use modules). 
>>>>> The app can serve web requests, run jobs or do whatever. 
>>>>> 
>>>>> Unlike SpringBoot, Bootique is much smaller, starts much faster, and 
>>>>> doesn't feel like magic. Also all the apps you write are automatically 
>>>>> equipped with POSIX CLI.
>>>>> 
>>>>> Andrus
>>>>> 
>>>>> 
>>>>>> On Feb 11, 2020, at 4:29 PM, Paul Yu via Webobjects-dev 
>>>>>>  wrote:
>>>>>> 
>>>>>> Spring and it’s ecosystem seems to be pretty powerful.
>>>>>> 
>>>>>> Paul
>>>>>> 
>>>>>> Sent from my iPhone
>>>>>> Please excuse iOS autocomplete 
>>>>>> 
>>>>>>> On Feb 11, 2020, at 8:06 AM, Gino Pacitti via Webobjects-dev 
>>>>>>>  wrote:
>>>>>>> 
>>>>>>>  hey if any one was to use a different app server configuration other 
>>>>>>> than WO what would you choose and why?
>>>>>>> 
>>>>>>> What are most companies requesting these days in a Java system?
>>>>> 
>>>> 
>>>> 
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net
>> 
>> This email sent to jeremy.dero...@ingencys.net

--
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Complimentary App Server Choice

2020-02-13 Thread Matthew Ness via Webobjects-dev
I wouldn't hesitate to recommend Bootique. 

We've had various types of Bootique apps in production for years now to great 
success, some with the Cayenne module directly derived from older WO apps/dbs, 
some communicating with existing WO apps, others simply processing tasks.


Regards,

--
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/


On Thu, Feb 13, 2020, at 11:25 PM, Andrus Adamchik via Webobjects-dev wrote:
> My opinionated take is the following:
> 
> * The "official" JavaEE is dead and is now a pure volunteer effort under 
> https://jakarta.ee/ . The "appserver" concept has almost disappeared and 
> morphed to something different. All the past market leaders have moved on to 
> more lightweight solutions, though some still cling to .war deployment. 
> 
> * SpringBoot is the market leader in the Java world. If you are looking to 
> build a marketable Java developer resume, learn SpringBoot.
> 
> * If you need to write apps for your org or your customers, and are not 
> constrained by the PHBs opinion, use Bootique. It is a better platform in the 
> modern appserver-free world. Bootique is "commercially-viable" in a sense 
> that there are hundreds of apps that run in prod for a number of years. But 
> it is still an open source effort supported by community and a mid-sized 
> company (ObjectStyle), so it is sometimes an uphill battle in organizations 
> that are looking to conform to the lowest common denominator.
> 
> So you decide :)
> 
> Andrus
> 
> 
>> On Feb 13, 2020, at 3:06 PM, Gino Pacitti via Webobjects-dev 
>>  wrote:
>> 
>> Thanks for that… it looks really interesting…
>> 
>> Is it a commercially viable alternative to some of the others like JBoss, 
>> Tomcat, Websphere etc..
>> 
>> I would like to add another feather to my bow but not really sure which 
>> architecture to devote time to so that I can work on bigger projects in a 
>> team...
>> 
>> 
>> 
>> 
>>> On 13 Feb 2020, at 11:16, Andrus Adamchik  wrote:
>>> 
>>> We are using Bootique: https://bootique.io/
>>> 
>>> Just like SpringBoot, its idea is that it is not an "appserver". It gives 
>>> you a plain Java app with your own "main" method, and a way to assemble 
>>> various components together (and also modularity, dependency injection, 
>>> consistent configuration and a large collection of ready-to-use modules). 
>>> The app can serve web requests, run jobs or do whatever. 
>>> 
>>> Unlike SpringBoot, Bootique is much smaller, starts much faster, and 
>>> doesn't feel like magic. Also all the apps you write are automatically 
>>> equipped with POSIX CLI.
>>> 
>>> Andrus
>>> 
>>> 
 On Feb 11, 2020, at 4:29 PM, Paul Yu via Webobjects-dev 
  wrote:
 
 Spring and it’s ecosystem seems to be pretty powerful.
 
 Paul
 
 Sent from my iPhone
 Please excuse iOS autocomplete 
 
> On Feb 11, 2020, at 8:06 AM, Gino Pacitti via Webobjects-dev 
>  wrote:
> 
>  hey if any one was to use a different app server configuration other 
> than WO what would you choose and why?
> 
> What are most companies requesting these days in a Java system?
>>> 
>> 
>> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: DirectConnect and Security

2019-08-12 Thread Matthew Ness via Webobjects-dev


On Sat, Aug 10, 2019, at 5:54 AM, Mark Gowdy via Webobjects-dev wrote:
> Hi.
> 
> Is anyone aware of any security issues (or other considerations) with 
> Direct Connect mode for a live deployment?
> 
> This will be using the Amazon’s Application Load Balancer.
> And it _might_ mean that I can ditch Apache once and for all :-)
> 
> Thanks, 
> 
> Mark


Hi Mark,

If you are applying a cert to your ALB, then SSL effectively terminates at that 
point and the request is forwarded on to your direct connect EC2 instances.
I'm not sure what kind of security issues you are envisioning. Your should hold 
your EC2 instances security considerations to the same standard whether using 
Apache over 443 or your app on, say, 5.
To that end, there should be no accessibility outside the above mentioned ALB 
connectivity and some administration bastion host for your terminal access.

Having said all that, if your application is completely session-less, then 
you're good to go.

If you have sessions in your app you still have some problems to overcome.
You can use session affinity (sticky sessions) in ALB/ELB (but not Network LB), 
but be aware they require cookies on the client.
So, you have the sticky sessions working, great! As your load balancer 
horizontally scales out, it's creating EC2 instances running your java app. But 
when your ALB decides to scale _in_, it'll wipe one or more of your EC2 
instances, which could still have active sessions.
So, unless you de-/serialise your Sessions at the start and end of the R-R loop 
and store that somewhere else (db/redis/etc) which your EC2 instances would 
have access to, it may annoy some users. 
Because of proprietary classes in WO, Session serialisation is unsolved and 
inflexible.


Regards,


-- 
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Great archive of old WO WWDC recordings.

2019-06-27 Thread Matthew Ness via Webobjects-dev
Hello list,

Various tech sites reported on a fellow who has collated a large amount of 
Apple videos and images over the years and opened up his Google drive. 

His name is Sam Henri Gold, and there's a bunch of old WO recordings in there 
over the years if you're interested.

http://www.loopinsight.com/2019/06/25/amazing-archive-of-mac-video-and-images-all-laid-out-by-decade/

https://drive.google.com/drive/folders/1p5RICuEWlLhbzM8Lczsg7x-Zu88W46Uv

Regards,

-- 
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WOCommynity Maven Repository via HTTPS

2018-11-01 Thread Matthew Ness
Thanks Henrique!

On Fri, Nov 2, 2018, at 11:19 AM, Henrique Prange wrote:
> Hey guys,
> 
> Just a quick update here. You can now access the WOCommunity Maven 
> Repository via HTTPS. We've configured HTTP requests to redirect 
> permanently to HTTPS. For this reason, it's a good idea to update your 
> settings to reflect that change.
> 
> Please, let me know if you have any problems.
> 
> Cheers,
> 
> HP
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
> 
> This email sent to m...@logicsquad.net


-- 
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: PatientCare - EPR

2018-02-13 Thread Matthew Ness
Thanks for telling the story, Mark, and congratulations. 

Really interesting.

Regards,

Matt


On Wed, Feb 14, 2018, at 7:01 AM, Mark Wardle wrote:
> I wrote a working EPR in my spare time and WebObjects (and Project
> Wonder), as I have said before, has been a critical component in
> making that possible.> 
> It took me a only a day of work to re-skin my entire application to a
> more modern and responsive look, and I posted some information about
> it on Twitter - https://twitter.com/mwardle/status/962714288120098816> 
> The feedback has been extraordinarily positive and of course, the
> underlying technology used isn't as important as what it enables.> 
> WebObjects continues to be a powerful enabler for me to develop rapid
> pieces of functionality and is a super technology to write server-side
> code for ResearchKit clients on iOS. Combining clinician-data with
> data sourced from patients using questionnaires using ERRest has
> been... trivial. I don't think any of us know how to best make use of
> mobile device data, but I'm glad I'm still using WO as it means I can
> iterate at speed and do it as a hobby!> 
> The design patterns and overall architecture are still fit-for-purpose
> in this day and age of microservices and single-page applications. I
> still haven't found a set of tools that work so well and permit such
> rapid development and orchestration of complex business logic and
> data, usually sourced from multiple other services.> 
> I write this for two reasons...
> 
> 1. Apple, if anyone from there is still subscribed to this mailing
>list, you have made a mistake in ignoring and not developing this
>technology.  You really should think about about how WO could be
>developed as a technology to make iOS and server-side services
>interact seamlessly.> 
> 2. As a thank you to a great community who have provided fantastic
>tools and frameworks on top of the Apple provided services and made
>working with it a pleasure. While the community is very small
>nowadays, there is still tremendous value in the toolchain.> 
> Thank you!
> 
> Mark
> 
> _
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net> 
>  
> This email sent to m...@logicsquad.net

--
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: AWS Instance Type Suggestions

2017-11-15 Thread Matthew Ness
Hi Steve and list,

I guess it depends on your usage. AWS group their instance types into
"families", and if memory is more important to you than any other
resource, perhaps the "Memory-Optimized" family is what you are
looking for.
If you have different intents in the application (for example, you need
a lot of ram for task-driven threads, but not much for session-driven
threads) you could deploy your application to two or more clusters/vms
to fit their different resource needs.
With respect to cost: There are a number of ways to possibly keep costs
down. You only pay for the hours your vm is running, so if it suits your
business you can always schedule the entire EC2 to be shutdown for part
of the day/week. (You could use a simple AWS Lambda for this!) If you
can utilise Spot Instances in your workflow they are very accommodating.
Keep track of your compute and other services and it shouldn't get out
of control. Monitoring your apps and the usage of EC2 is your friend :)
Regards,

--
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/


On Thu, Nov 16, 2017, at 03:44 AM, Josef Vanek wrote:
> Hi Steve,
> 
> Actually we're using m4.xlarge instances with AWS loadbalancer and it
> works quite well, with something like 12 WO instances on each ec2
> instance.> Can handle around 1500 requests/sec (we have heavy load on RDS
> Postgresql DB, would need optimization ;-) ).> 
> Hope this helps.
> 
> Josef
> Le 15 novembre 2017 à 16:35:46, Steve Peery (spe...@me.com) a écrit:>> 
>> 
>> Hi List,
>>
>> I am moving to AWS and wonder if any of you have suggestions
>> concerning what EC2 instance types to use. I have many clients which
>> multiple instances and my WOApps use significant memory. I am
>> currently running aging servers which are packed full of memory so
>> memory use has not been limitation. AWS seems great, but it starts
>> looking expensive when I set up instances with the amounts of memory
>> I am used to.
>>
>> Any suggestions?
>>
>> Thank you,
>>
>> Steve
>>
>>
>>  ___
>> Do not post admin requests to the list. They will be ignored. Webobjects-
>> dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/josef.vanek%40intellicore.net
>>
>> This email sent to josef.va...@intellicore.net>> 
> _
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net> 
>  
> This email sent to m...@logicsquad.net



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: New potential project to convert ASP web app

2017-06-23 Thread Matthew Ness
Hi Robert,

You can add Logic Squad to your list. We build and maintain WebObjects
applications among other things, and we offer WebObjects consulting.

Regards,

-- 
Matt
http://logicsquad.net
https://www.linkedin.com/company/logic-squad/


On Fri, Jun 23, 2017, at 10:15 AM, Michael Kondratov wrote:
> I don't know what is more painful: bus of php. On a serious note, we use
> WO for all of our new projects. It is the most efficient platform.
> 
> Michael
> 
> Sent from my iPhone
> 
> > On Jun 22, 2017, at 6:53 PM, Tim Worman  wrote:
> > 
> > Hello!
> > 
> > Just answering the initial question re: a place where we can register. I 
> > believe there is a WO LinkedIn group? I’m pretty sure it is part of my 
> > network. Maybe that would be a way to demonstrate an able community.
> > 
> > David’s points are valid as well.
> > 
> > Tim
> > UCLA GSE
> > 
> >> On Jun 22, 2017, at 3:45 PM, David Black  wrote:
> >> 
> >> I was a WO Sr. Consulting Engineer with Apple until 2005 and miss working 
> >> in WO a lot! I just set up a dev environment to work on a new personal 
> >> project to get my head back into it. As someone whose had to manage the 
> >> development of new products, it's probably a mistake business-wise to 
> >> choose such a deprecated platform with such a small knowledge-base. Even 
> >> getting the environment spun up with WOLips and WOnder has required 
> >> deciphering outdated resources. As WO was already a hard platform to learn 
> >> (conceptually), it's difficulty is now compounded by tools that aren't as 
> >> slick as a ProjectBuilder/EOModeler/WOBuilder. So while there's a still a 
> >> small community of people who could support a WO app, the availability of 
> >> an engineer(s) might be challenging, and trying to train new support 
> >> engineers would be painful. This is why the businesses with whom I've been 
> >> working have chosen popular (or more simple script-based) backends like 
> >> RoR, PHP, Python, or more mainstream Java frameworks. Trust me...I'd LOVE 
> >> to have a few companies use WO, and if this was a merit-based competition, 
> >> WO would be a great choice. Your point about getting hit by a bus is 
> >> valid. A bus could mow down the entire PHP staff at a company and they'd 
> >> be back in business the next day.
> >> 
> >> 
> >> 
> >> 
> >>> On Jun 22, 2017, at 10:25 AM, Robert Hanviriyapunt  
> >>> wrote:
> >>> 
> >>> Hi everyone,
> >>> 
> >>> I am a total WebObjects fan (a serious fanatic)!  And I have the chance 
> >>> to suggest to a new potential client to have me rework the entire 
> >>> A$P/M$$QL system in WebObjects.  My worries are that should I get run 
> >>> over by a bus, whom may I get him in contact with to take over and/or 
> >>> support the system.  Anybody still out there?  I'm building  list to give 
> >>> him confidence there will be available support.  Is there a nice place 
> >>> all us WebO developers can register?
> >>> 
> >>> = Robert =
> >>> ___
> >>> Do not post admin requests to the list. They will be ignored.
> >>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> >>> Help/Unsubscribe/Update your Subscription:
> >>> https://lists.apple.com/mailman/options/webobjects-dev/dblack%40db3.net
> >>> 
> >>> This email sent to dbl...@db3.net
> >> 
> >> ___
> >> Do not post admin requests to the list. They will be ignored.
> >> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> >> Help/Unsubscribe/Update your Subscription:
> >> https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com
> >> 
> >> This email sent to li...@thetimmy.com
> > 
> > ___
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/michael%40aspireauctions.com
> > 
> > This email sent to mich...@aspireauctions.com
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
> 
> This email sent to m...@logicsquad.net
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: AWS ELB "Application Load Balancer"?

2017-06-06 Thread Matthew Ness
Hi Mark,

We don't use ELBs as an alternative to Apache, but we certainly put ELBs
in front of our applications.

If you are interested in using AWS for scaling your WO apps, you can use
ELB "sticky sessions" to route session traffic to the correct EC2
containers, but this does not accommodate ELBs (or some other mechanism)
unceremoniously terminating an EC2.

We currently scale our sessionless apps using Auto Scaling Groups with
scaling policies, and we're in testing phase for session-based apps
using the same concept as Ramsey's PSS framework, but with
Redis/Elasticache instead of db storage.

If you are interested in using ELBs to remove the apache/adaptor layer,
I'd be really interested in your approach and progress.

Regards,


-- 
Matt
http://logicsquad.net


On Wed, Jun 7, 2017, at 05:58 AM, Mark Gowdy wrote:
> Hi, has anyone looked at AWS - ELB (Elastic Load Balancer) "Application
> Load Balancer" as an alternative to Apache and the adaptor (in a similar
> way that mod_proxy config works)?
> 
> Mark
> 
> 
> 
> 
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
> 
> This email sent to m...@logicsquad.net

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: DirectActions only (local and private network)

2017-06-01 Thread Matthew Ness
You can:

1. Write your Direct Actions with authentication mechanisms.

2. Find another way of interacting with your application(s) outside of
the Direct Action request handler.

Regards,

Matt




On Thu, Jun 1, 2017, at 07:03 PM, ece wrote:
> We have a publicly reachable app with some direct actions that are needed
> for maintenance tasks. These direct actions are triggered by cron jobs
> using curl. We want to make sure that such direct actions cannot be used
> from outside of our local network. At the moment anybody who knows the
> URL could trigger such an action from anywhere in the world.
> 
> > On 1 Jun 2017, at 10:12, Paul Hoadley  wrote:
> > 
> > On 1 Jun 2017, at 5:28 pm, ece  wrote:
> > 
> >> I want some DirectActions (not all) run from the local machine or at least 
> >> the private network only.
> >> Someone knows a way to realize this?
> > 
> > Can you give us some more information? How are you currently set up? And 
> > tell us more about what you want to achieve.
> > 
> > 
> > -- 
> > Paul Hoadley
> > http://logicsquad.net/
> > https://www.linkedin.com/company/logic-squad/
> > 
> > 
> > 
> 
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
> 
> This email sent to m...@logicsquad.net


-- 
Matt
http://logicsquad.net
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: data backup question

2017-05-16 Thread Matthew Ness
Hi Ted,

Just on backups and PostgreSQL, it's maybe worth noting that as well as
backups in the RDS space, it's trivial to also use traditional 'backup'
and 'restore' functionality, if you need to move, replicate, backup
on-premise, etc.

I wont be drawn into any flavour-distro wars (!), suffice to say Amazon
linux meets out requirements.

Regards,

Matt

On Wed, May 17, 2017, at 10:46 AM, Theodore Petrosky wrote:
> No, there are no wars here because we know that postgresql is better in
> all ways over MySQL. I mean really, just look at their names one begins
> with a ‘p’ and the other an ‘m’. That tells you everything!
> 
> Thanks for the info. I am collecting a list of OSs and VMs that I have
> successfully installed WO for deployment.
> 
> So far, I have Centos on ESXi running on a mac mini. Now using AWS, I
> have succeeded with Amazon Linux AMI 2017.03.0 and Red Hat Enterprise
> Linux 7.3.
> 
> I also found that Centos is available in the AWS VM, so I may give that a
> go just to say I did it.
> 
> Lots of fun!!!
> 
> Thanks again for the info.
> 
> Ted
> 
> 
> > On May 16, 2017, at 7:13 PM, Paul Hoadley  wrote:
> > 
> > On 17 May 2017, at 6:22 am, Theodore Petrosky  > > wrote:
> > 
> >> How do you feel about responsiveness, especially postgresql responsiveness?
> > 
> > We haven’t done any serious testing, but PostgreSQL on RDS is quite 
> > sufficient for our needs.
> > 
> >> I have never had any real experience with MySQL so i don’t want to even 
> >> ask.
> > 
> > Yeah, at the risk of starting a war, my advice would be if you’re in a 
> > position to choose, choose PostgreSQL over MySQL.
> > 
> > 
> > -- 
> > Paul Hoadley
> > http://logicsquad.net/ 
> > https://www.linkedin.com/company/logic-squad/
> > 
> > 
> > 
> 
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
> 
> This email sent to m...@logicsquad.net


-- 
Matt
http://logicsquad.net
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Opinion on ERXKey type parameterization

2017-03-27 Thread Matthew Ness
Hi Paul and list,

I know when I make custom keys which are to-many, I specify the
collection in the key:

public static final ERXKey BARS = ...

The template could express this also, but I've never made that change.

-- 
Matt
http://logicsquad.net


On Mon, Mar 27, 2017, at 03:10 PM, Paul Hoadley wrote:
> Hello,
> 
> Say I have a ‘Foo' entity, with a to-many relationship ‘bars’ to a ‘Bar’
> entity. Every Velocity generation template I’ve ever seen will output
> something like:
> 
>   public static final ERXKey BARS = new ERXKey(“bars”);
> 
> or, even better:
> 
>   public static final ERXKey BARS = new ERXKey(“bars”,
>   ERXKey.Type.ToManyRelationship);
> 
> But shouldn’t ERXKey there be parameterized as ERXKey?
> Admittedly, I’m struggling to see where it would make a huge
> difference—but just for completeness?
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: OT screen capture (movie) ???

2017-03-03 Thread Matthew Ness
Hi Ted,

I use Silverback.

Regards

-- 
Matt
http://logicsquad.net


On Sat, Mar 4, 2017, at 04:24 AM, Klaus Berkling wrote:
> If you’re on a budget QuickTime Player will also do this.
> 
> > On Mar 3, 2017, at 5:58 AM, Musall, Maik  wrote:
> > 
> > Well, at WOWODC we have used Screenflow for years, and it's good.
> > 
> > Maik
> > 
> >> Am 03.03.2017 um 14:56 schrieb Theodore Petrosky :
> >> 
> >> If you were going to create a tutorial today, what screen capture software 
> >> would you use?
> >> 
> >> In the past I would have used Snapz Pro X. 
> >> 
> >> Sorry if it is off topic, but youse guys are my source!!!
> >> 
> >> Ted
> 
> 
> 
> Klaus Berkling
> www.berkling.us  | Photography
> 
> 
> 
> 
> 
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
> 
> This email sent to m...@logicsquad.net


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Options for all routes on ERRest

2017-01-24 Thread Matthew Ness
Hi Luiz,



Can you identify what is going on when it is working and what is going
on when it is not?


Take a look at ERXRouteController and its optionsAction() method.



I typically have a default route controller class (extends
ERXDefaultRouteController) for all of my controllers in my applications
or frameworks where you can fine tune the headers to be read and
written, as well as control other authentication routines, etc.


Depending on how you want to deal with CORS, preflight, and limiting
HTTP methods at your end points, that method might point you in the
right direction.


Regards,



--

Matt

http://logicsquad.net





On Tue, Jan 24, 2017, at 11:45 PM, Luiz Alfredo Carrara Bertusso wrote:
> I`ve been setting the option method for all possible routes on the API
> I`m working on, but sometimes it works and sometimes it doesn't.
> Nowadays I have to do this for every route:

> 

> 

> restRequestHandler.addRoute(new ERXRoute(MyEntity.ENTITY_NAME,
> "/MyRoute",  ERXRoute.Method.Options,
> MyController.class, "options"));
> 

> 

> My concern is if it`s possible to apply this route for every declared
> route just once and the framework automatically handles this.
> 

> Thank you.

> _

> Do not post admin requests to the list. They will be ignored.

> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

> Help/Unsubscribe/Update your Subscription:

> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>  

> This email sent to m...@logicsquad.net


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WOWODC17?? a little OT

2017-01-12 Thread Matthew Ness
Aye, but I'm only going if Hugi organises Hakarl.





On Fri, Jan 13, 2017, at 01:28 PM, Michael Kondratov wrote:

> Love the idea. And beer is so "cheap" in Iceland.

> 

> Michael

> 

> Sent from my iPhone

> 

> On Jan 12, 2017, at 7:10 PM, Ken Anderson
>  wrote:
>> Aye!

>> 

>>> On Jan 12, 2017, at 7:09 PM, Chuck Hill  wrote:
>>> 

>>> All in favor of Hugi organizing it in Iceland?

>>>  

>>> *From: *
>>> on behalf of Hugi Thordarson  *Date: *Thursday,
>>> January 12, 2017 at 4:01 PM *To: *Steve Peery  *Cc:
>>> *WebObjects-Dev  *Subject: *Re:
>>> WOWODC17?? a little OT
>>>  

>>> Same here.

>>>  

>>> - hugi

>>>  

>>>  

>>>  

 On 12. jan. 2017, at 23:52, Steve Peery  wrote:

 If it happens, I will come.

 Steve

> On Jan 12, 2017, at 1:53 PM, Theodore Petrosky 
> wrote:
> So I take it that there is very little chance of WOWODC17. From
> the amount of traffic on the mailing list I feel like things are
> what they are!
> What are your feelings!

> ___

> Do not post admin requests to the list. They will be ignored.

> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:

> https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com
> This email sent to spe...@me.com

 ___

 Do not post admin requests to the list. They will be ignored.

 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

 Help/Unsubscribe/Update your Subscription:

 https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is
 This email sent to h...@karlmenn.is

>>>  

>>>  

>>> ___

>>> Do not post admin requests to the list. They will be ignored.

>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

>>> Help/Unsubscribe/Update your Subscription:

>>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
>>>  

>>> This email sent to ch...@gevityinc.com

>>>  

>>> ___

>>> Do not post admin requests to the list. They will be ignored.

>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

>>> Help/Unsubscribe/Update your Subscription:

>>> https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
>>> 

>>> This email sent to kenli...@anderhome.com

>> ___

>> Do not post admin requests to the list. They will be ignored.

>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

>> Help/Unsubscribe/Update your Subscription:

>> https://lists.apple.com/mailman/options/webobjects-dev/michael%40aspireauctions.com
>> 

>> This email sent to mich...@aspireauctions.com

> _

> Do not post admin requests to the list. They will be ignored.

> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

> Help/Unsubscribe/Update your Subscription:

> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>  

> This email sent to m...@logicsquad.net



--

Matt

http://logicsquad.net




 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Custom Fields for ERRest

2017-01-11 Thread Matthew Ness






On Thu, Jan 12, 2017, at 06:17 AM, Matthew Ness wrote:

> You can also define a new ERKXKey 



ERXKey!



> 

> 

> in your EO class, create the method it refers to, and use that key in
> your filter. For example:
> 

> 

> Phone.java

> 

> public static final ERXKey TYPE_VALUE = new
> ERXKey("typeValue");
> 

> public String typeValue(){

> return type().value();

> }

> 

> 

> PhoneController.java

> 

> ..

> filter.include(Phone.TYPE_VALUE);

> filter.exclude(Phone.TYPE);

> ..

> 

> 

> 

> 

> Which may be a little inelegant, but will get you out of that
> situation. Just be aware that your clients are now looking for the
> 'typeValue' key, not 'type' and then 'value'. And check for NPE in
> typeValue().
> 

> Regards,

> 

> Matt.

> 

> 

> --

> Matt

> http://logicsquad.net

> 

> 

> 

> On Thu, Jan 12, 2017, at 02:36 AM, Samuel Pelletier wrote:

>> Hi,

>> 

>> The default ERRest behaviour is to uses the model as entity format. I
>> do not know a way to uses the built in classes to specify a custom
>> attribute like this.
>> 

>> But you can always use NSArray and NSDictionnary to construct your
>> response like this:
>> 

>> NSMutableArray<NSDictionary<String, Object>> results = new
>> NSMutableArray<NSDictionary<String, Object>>();
>> for (_Phone _ phone : phones) {

>> NSMutableDictionary<String, Object> entry = new
>> NSMutableDictionary<String, Object>();
>> entry.setObjectForKey(phone.countryCode(), "countryCode");

>> entry.setObjectForKey(phone.number(), "number");

>> entry.setObjectForKey(phone.typeTag(), "type");

>> results.add(entry);

>> }

>> return response(results, ERXKeyFilter.filterWithAllRecursive());

>> 

>> Samuel

>> 

>> 

>>> Le 11 janv. 2017 à 08:55, Luiz Alfredo Carrara Bertusso
>>> <luizalfred...@gmail.com> a écrit :
>>> 

>>> Hello, everyone.

>>> I've been using ERRrest for developing, I`d like knowing if it's
>>> possible to use custom fields instead of the default ones.
>>> For example, on my model, there's a relationship named type,
>>> actually, I have the following response:
>>> phones": [

>>> {

>>>   "countryCode": "1",

>>>   "areaCode": "123",

>>>   "number": "1234567",

>>>   "type": {

>>> "id": [

>>>   1,

>>>   2

>>> ],

>>> "typeClass": "Tag",

>>> "value": "Home"

>>>   }

>>> }

>>> ]

>>> 

>>> But I'd like to show something like:

>>> phones": [

>>> {

>>>   "countryCode": "1",

>>>   "areaCode": "123",

>>>   "number": "1234567",

>>>   "type": "Home"

>>>   }

>>> }

>>> ]

>>> 

>>> Is it possible to create a custom way to show this relationship as
>>> above?
>>> 

>>> Thank you!

>>> 

>>> 

>>> 

>>> ___

>>> Do not post admin requests to the list. They will be ignored.

>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

>>> Help/Unsubscribe/Update your Subscription:

>>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
>>> 

>>> This email sent to sam...@samkar.com

>> _

>> Do not post admin requests to the list. They will be ignored.

>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

>> Help/Unsubscribe/Update your Subscription:

>> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>>  

>> This email sent to m...@logicsquad.net

> 



--

Matt

http://logicsquad.net


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Custom Fields for ERRest

2017-01-11 Thread Matthew Ness
You can also define a new ERKXKey in your EO class, create the method it
refers to, and use that key in your filter. For example:




Phone.java



public static final ERXKey TYPE_VALUE = new
ERXKey("typeValue");


public String typeValue(){

return type().value();

}





PhoneController.java



..

filter.include(Phone.TYPE_VALUE);

filter.exclude(Phone.TYPE);

..









Which may be a little inelegant, but will get you out of that situation.
Just be aware that your clients are now looking for the 'typeValue' key,
not 'type' and then 'value'. And check for NPE in typeValue().


Regards,



Matt.





--

Matt

http://logicsquad.net







On Thu, Jan 12, 2017, at 02:36 AM, Samuel Pelletier wrote:

> Hi,

> 

> The default ERRest behaviour is to uses the model as entity format. I
> do not know a way to uses the built in classes to specify a custom
> attribute like this.
> 

> But you can always use NSArray and NSDictionnary to construct your
> response like this:
> 

> NSMutableArray> results = new
> NSMutableArray>();
> for (_Phone _ phone : phones) {

> NSMutableDictionary entry = new
> NSMutableDictionary();
> entry.setObjectForKey(phone.countryCode(), "countryCode");

> entry.setObjectForKey(phone.number(), "number");

> entry.setObjectForKey(phone.typeTag(), "type");

> results.add(entry);

> }

> return response(results, ERXKeyFilter.filterWithAllRecursive());

> 

> Samuel

> 

> 

>> Le 11 janv. 2017 à 08:55, Luiz Alfredo Carrara Bertusso
>>  a écrit :
>> 

>> Hello, everyone.

>> I've been using ERRrest for developing, I`d like knowing if it's
>> possible to use custom fields instead of the default ones.
>> For example, on my model, there's a relationship named type,
>> actually, I have the following response:
>> phones": [

>> {

>>   "countryCode": "1",

>>   "areaCode": "123",

>>   "number": "1234567",

>>   "type": {

>> "id": [

>>   1,

>>   2

>> ],

>> "typeClass": "Tag",

>> "value": "Home"

>>   }

>> }

>> ]

>> 

>> But I'd like to show something like:

>> phones": [

>> {

>>   "countryCode": "1",

>>   "areaCode": "123",

>>   "number": "1234567",

>>   "type": "Home"

>>   }

>> }

>> ]

>> 

>> Is it possible to create a custom way to show this relationship
>> as above?
>> 

>> Thank you!

>> 

>> 

>> 

>> ___

>> Do not post admin requests to the list. They will be ignored.

>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

>> Help/Unsubscribe/Update your Subscription:

>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
>> 

>> This email sent to sam...@samkar.com

> _

> Do not post admin requests to the list. They will be ignored.

> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)

> Help/Unsubscribe/Update your Subscription:

> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>  

> This email sent to m...@logicsquad.net


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: tar from inside WO

2016-11-06 Thread Matthew Ness
Apache compress?

http://mvnrepository.com/artifact/org.apache.commons/commons-compress

On Mon, Nov 7, 2016, at 06:43 AM, Theodore Petrosky wrote:
> Are there any examples of taring in a WO app? I see the example in the
> wiki  for running a command line program, but it is very light on
> details.
> 
> If someone could help me with figuring this out, I would be happy to
> document it for the wiki.
> 
> Ted
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
> 
> This email sent to m...@logicsquad.net


-- 
Matt
http://logicsquad.net
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Using qualifier to filter related objects

2016-08-19 Thread Matthew Ness
Hi again Luiz,

You mentioned you know you can do this manually, that's the only way I
know of apart from overriding the parser to look for patterns in the
key string.

I generally create custom ERXKey -> methods for this.

You could also (as you also mentioned) just use the qualifier in your
request URIs to filter out Address objects.

--
Matt
http://logicsquad.net


On Wed, Aug 17, 2016, at 03:28 AM, Luiz Alfredo Carrara Bertusso wrote:
> Hi.
> Can I filter to-many relationships using a qualifier in REST
> controller actions?
>
> I have an object named Party that has a list of Addresses, this
> Address has a field that can either be null or it can have be filled,
> when I try to list the addresses related to a party I'd like getting
> only the addresses that have a certain field filled.
>
> Can I use qualifier to restrict my result? I know i can handle this
> manually, but is there an existing way of getting the filtered list?
>
> Thanks.
> _
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>
> This email sent to m...@logicsquad.net

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Using ERRest to update object with compound key

2016-08-19 Thread Matthew Ness
Hello Luiz,

Unsure, but you may need to build a custom piece in your rest
delegate for this.

Take a look at IERXRestDelegate.objectOfEntityWithID

Regards,

--
Matt
http://logicsquad.net


On Wed, Aug 17, 2016, at 01:12 AM, Luiz Alfredo Carrara Bertusso wrote:
> Hello, I've been trying to use ERRest to update an object that has
> compound key but I've not found a way to do it, is it possible?
> For example a have a contact that has an address ant his address has a
> a type named Work with the keys 55 and 2.  I`d like to update it, but
> due to the compound key it has'n been possible. Here's an example:
>
>
> {
> "id": 1,
> "typeClass": "Contact",
> "fullName": "John Doe"
> "addresses":
> [
> {
> "id": 2,
> "typeClass": "Address",
> "city": "Rio",
> "country": "Brazil",
> "state": "RJ",
> "streetName": "Av. Atlantica"
> "addressType":
> {
> "id": [55, 2],
> "typeClass": "Tag",
> "type": 5,
> "value": "Work"
> }
> }
> ]
> }
>
> _
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>
> This email sent to m...@logicsquad.net


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WebObjects Time Fields

2016-07-06 Thread Matthew Ness
I'll add we looked at 'stepper' input elements, but selects worked
better for our needs.
 
Also, there are many many datepicker helpers out there, bootstrap's has
some time elements build in I think.
 
Regards,
 
--
Matt
http://logicsquad.net
 
 
 
On Thu, Jul 7, 2016, at 08:21 AM, Matthew Ness wrote:
> Hi Calven,
>
> We use a  heavily WO-ified version of jQuery UI datepicker, taking
> either Joda objects or NSTimestamps, with optional  fields
> for hour, minute, second, etc.
>
> https://jqueryui.com/datepicker/
>
>
> Regards
>
> --
> Matt
> http://logicsquad.net
>
>
>
> On Thu, Jul 7, 2016, at 06:30 AM, Calven Eggert wrote:
>> Hi, All
>>
>> What are people using these days to display a time field for users to
>> select hour/minute?
>>
>> Calven
>> _
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>>
>> This email sent to m...@logicsquad.net
>
> _
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>
> This email sent to m...@logicsquad.net
 
 
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WebObjects Time Fields

2016-07-06 Thread Matthew Ness
Hi Calven,
 
We use a  heavily WO-ified version of jQuery UI datepicker, taking
either Joda objects or NSTimestamps, with optional  fields
for hour, minute, second, etc.
 
https://jqueryui.com/datepicker/
 
 
Regards
 
--
Matt
http://logicsquad.net
 
 
 
On Thu, Jul 7, 2016, at 06:30 AM, Calven Eggert wrote:
> Hi, All
>
> What are people using these days to display a time field for users to
> select hour/minute?
>
> Calven
> _
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>
> This email sent to m...@logicsquad.net
 
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: FedEx / USPS integration components

2016-06-28 Thread Matthew Ness
Hi Michael.

Yes, definitely.

Regards,

Matt

> On 29 Jun 2016, at 2:03 am, Miguel Angel Torres Avila  
> wrote:
> 
> Of course
> 
> 
>> El 28/06/2016, a las 8:58 a.m., Michael Kondratov 
>> > escribió:
>> 
>> Hello ,
>> Would any one be interested in FedEx and USPS open source shipping 
>> solution for wo?
>> 
>> Michael Kondratov 
>> 
>> Sent from my iPhone
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> )
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/miguel%40toracom.net 
>> 
>> 
>> This email sent to mig...@toracom.net
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matthew.ness%40wellcom.com.au
> 
> This email sent to matthew.n...@wellcom.com.au

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: a unique object representative of an EO?

2016-06-21 Thread Matthew Ness
OC,

Like Ramsay, I'm not completely across what you want to achieve here.
But even with a "java-level" locking solution, what is your strategy for
multiple WO instances of your application? 


Regards,

-- 
Matt
http://logicsquad.net



On Wed, Jun 22, 2016, at 02:40 AM, Samuel Pelletier wrote:
> OC,
> 
> Creating some sort of lock repository based on GID is probably the most
> generic way to do this.
> 
> If the execution of this code can be async, you may also use a blocking
> queue to serialize the processing and does not requiring lock.
> 
> Samuel
> 
> 
> > Le 21 juin 2016 à 08:51, ocs.cz  a écrit :
> > 
> > Hello there,
> > 
> > I would need an unique object representative of an EO. The object needs to 
> > be identical for all EO clones of all editing contexts.
> > 
> > Such a _value_ representation would be the primary key or GID; but these, 
> > far as I know, ensure only isEqual for same EO, not ==. I need the identity 
> > -- namely, for Java-level locking; the intended usage is something like
> > 
> > ===
> > synchronized (representative(eo)) {
> >  ... this code never runs concurrently for given EO, regardless of its 
> > editing context ...
> > }
> > ===
> > 
> > Is there such an object in EOF, or do I have to create a dictionary keyed 
> > by GID or PK? The latter is simple to create, but it is sort of difficult 
> > to know when to remove the pair from there.
> > 
> > Thanks,
> > OC
> > 
> > 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Cayenne ported to Swift?

2016-05-04 Thread Matthew Ness
Hello Baiss,

Could you expand on your comment about java here? What are the hurdles or 
difficulties you are facing with the language? What aspects of other languages 
do you see as being potentially useful, in the context of Cayenne / WOF / EOF / 
Other?

Regards,

Matt


> On 5 May 2016, at 5:45 am, Baiss Eric Magnusson  wrote:
> 
> So port Cayenne to Swift?  
> 
> Java is a non-starter IMHO.
> 
> Baiss Eric Magnusson
> Cascade Web Design 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matthew.ness%40wellcom.com.au
> 
> This email sent to matthew.n...@wellcom.com.au

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

2 positions available, Melbourne, Australia

2016-05-03 Thread Matthew Ness
Hello again list. Two new WO positions available in Australia, separate from 
the job posting I posted on April 13.



We have two full time developer positions available immediately, primarily 
focused on WebObjects development. The positions are full time permanent, on 
premise in Melbourne, Australia. We are not currently entertaining remote work, 
and you must be eligible to work in Australia.

We currently maintain ten WebObjects applications, nine using Wonder and custom 
frameworks, and various other java, PERL, AppleScript, and iOS applications and 
workflows. Our team is growing as new clients come on board and new projects 
are scheduled.

Work would mostly be WO application development, including integrating a number 
of Amazon AWS services, and other third party integrations. However pure java, 
Swift, Postgres, AppleScript, Angular, Cayenne, Solr/Lucene are all pluses.

If you are interested in the position or know someone who might be, and want to 
know more, drop me a line.

Regards,

Matt

Matthew Ness
Development Manager





Wellcom Group Limited - Headquarters
870 Lorimer Street, Port Melbourne, VIC. Australia, 3207
p +61 3 9946 8000  f +61 3 9681 9936
e matthew.n...@wellcom.com.au <mailto:mark.swet...@wellcom.com.au>  
www.wellcom.com.au <http://www.wellcom.com.au/>



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ERRest

2016-04-14 Thread Matthew Ness
Luiz, have a look at the IERXRestWriter implementations. You may want to
register the format with your own version of a writer.
 
Regards,
 
Matt
 
 
On Fri, Apr 15, 2016, at 12:32 PM, Flavio Donadio wrote:
> Troy,
>
>
> Luiz needs to exclude a property from the returned JSON if — and only
> if — it’s value is null.
>
>
> Cheers,
> Flavio
>
>> On 14/04/2016, at 22:41, Troy Lumasag  wrote:
>>
>> Hey there,
>>
>>  You could use:
>>  ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes();
>>  filter.exclude(Class.Nick, other keys);
>>
>>  return response(objectNSArray, filter);
>>
>>  Cheers!
>>
>>
>> On 4/15/16 4:10 AM, Luiz Alfredo Carrara Bertusso wrote:
>>> Hi, I`ve been developing using WebObjects for 2 months and now i˜m
>>> working at a Rest API using ERRest framework. I have a doubt about
>>> the possibility of not returning null values when a certain atribute
>>> of a class is null. For example, if an atribute is not filled, i`d
>>> like hiding it instead of returning null.
>>> I`ve taken a look at the properties "nilKey" and "writeNilKey" of
>>> ERXRestFormatDelegate, but I`m not sure whether how to use them or
>>> how they can help me in my task.
>>> This is how the API is leading with null values:
>>> [ { "id": 123, "typeClass": "Party", "fullName": "John Doe", "nick":
>>> null } ] And here is how the return should be: [ { "id": 123,
>>> "typeClass": "Party", "fullName": "John Doe", } ]
>>> Thank you, I`ll be waiting for your help.
>>>
>>>
>>>  ___ Do not post admin
>>>  requests to the list. They will be ignored. Webobjects-dev mailing
>>>  list  (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update
>>>  your Subscription:
>>>  https://lists.apple.com/mailman/options/webobjects-dev/tlumasag%40gmail.com
>>>  This email sent to tluma...@gmail.com
>>
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/flavio%40donadio.com.br
>>
>> This email sent to fla...@donadio.com.br
> _
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>
> This email sent to m...@logicsquad.net
 
--
Matt
http://logicsquad.net
 
 
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Position available, Melbourne, Australia

2016-04-13 Thread Matthew Ness
Hello,

I hope "position available" emails are okay in this mailing list. If not, my 
apologies.


We have a full time developer position available, primarily focused on 
WebObjects development. The position is full time permanent, on premise in 
Melbourne, Australia.

We currently maintain ten WebObjects applications, nine of them using Wonder 
and custom frameworks, and various other java, PERL, and AppleScript 
applications and workflows.

Work would mostly be WO application development, including integrating a number 
of Amazon AWS services, and other third party integrations.

If you are interested in the position or know someone who might be, drop me a 
line.

Regards,

Matt






Matthew Ness
Development Manager
Wellcom Group Limited - Headquarters

870 Lorimer Street, Port Melbourne, VIC. Australia, 3207


Wellcom Group.   P +61 3 9946 8000
E matthew.n...@wellcomworldwide.com   I   W http://www.wellcomworldwide.com

PLEASE CONSIDER OUR ENVIRONMENT BEFORE YOU PRINT THIS E-MAIL

IMPORTANT INFORMATION
__

This correspondence is for the named person's use only. It may contain 
confidential or legally privileged information or both. No confidentiality or 
privilege is waived or lost by any mistransmission. If you receive this 
correspondence in error, please immediately delete it from your system and 
notify the sender. You must not disclose, copy or rely on any part of this 
correspondence if you are not the intended recipient.

Any opinions expressed in this message are those of the individual sender, 
except where the sender expressly, and with authority, states them to be the 
opinions of Wellcom Group Limited. 

Neither the sender nor Wellcom warrants that any communication via the Internet 
is free of errors, viruses, interception or  interference. Information is 
distributed without warranties of any kind.
__

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Attachments ??

2016-02-10 Thread Matthew Ness
Hi Ted,

We've had a very similar brief to yours in the past. What it came down
to for us was: How are you going to present the structure to the
client/customer? In-app, call outs, something else?  

We've done all of the below in the past, for different and same clients:

1) multi-upload files in a flattened structure.

2) upload a directory-aware zip/tarball, with a task in the app that
unzips, walks the structure, stores each file and represents it in
persistence.

3) Client side application allows for drag and drop in
unix/Folder/AFP/SMB which pushes files to persistence and updates the
application. This holds the directory structure. 

Each of them have their benefits and drawbacks.

With (2), as we are using AWS S3, we are able to push the file structure
into a bucket 'structure' and modify their ACLs such that the HTML is
callable (so long as it references files relatively). Other file storage
services can offer the same.

I guess it depends on how you are storing your files.

Lastly, we do direct-to-s3 uploads from user-agent, which is a load off
the app tier, but doesn't maintain structure (you cannot d'n'd folder
structures as mentioned earlier), and still requires manipulation after
successful upload if you are looking to apply a directory structure.
This was excellent for very large files, which hopefully you're not
dealing with for HTML5 banners :) So we had to build a component which
does a pre-flight for signatures and task creation, and post-flight for
task action. If you are going through the app, Konrad's suggestion of
zip upload then task would seem to be the quickest route.

Cheers,

Matt



On Thu, Feb 11, 2016, at 04:42 AM, Ramsey Gurley wrote:
> You could try ERDragAndDropUpload. It will handle multiple files. I don’t
> think it handles folders. It might? In certain browsers? 
> 
> It’s possibly a good starting point anyway :)  If you can flatten your
> directory structure into a single directory of files, then it could work
> as is.
> 
> On Feb 10, 2016, at 5:15 AM, Theodore Petrosky  wrote:
> 
> > I have a little D2W app for proofing Flash advertising banners. Works 
> > great, but we know that Flash is dead or should be. I need to allow 
> > uploading and viewing of HTML5 banners.
> > 
> > Flash was great because it was a single file. just upload it ad view it. No 
> > problem. HTML5 banners are a little different.
> > 
> > I want to be able to select a folder and upload it. As is is important. In 
> > the top level folder is the index.html and then an images folder 
> > (containing images), a css folder, and a kaka folder because that was how 
> > the ad was set up.
> > 
> > Is there a component that will do this? 
> > 
> > if you were to create this, do you think it would be better to select the 
> > folder, zip it up, upload the zip and then unzip it?
> > 
> > I am flailing around here.
> > 
> > Ted

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WOSession serialisation redux

2015-05-19 Thread Matthew Ness
On Wed, May 20, 2015, at 09:51 AM, Paul Hoadley wrote:
 Hi Ramsey,
 
 On 20 May 2015, at 1:53 am, Ramsey Gurley rgur...@smarthealth.com
 wrote:
 
  On May 19, 2015, at 4:03 AM, Paul Hoadley pa...@logicsquad.net wrote:
  
  I’ve had a look at Ramsey’s ERPersistentSessionStorage.framework, and my 
  intention was to create something similar backed by memcached.  I got it 
  working to the proof-of-concept level on a trivial app, but using native 
  Java serialisation seems brittle.  (By which I mean it falls over pretty 
  fast when you throw a serialisation-based approach into a substantial 
  application.)
  
  I’m curious about the falls over pretty fast part. What sort of problems 
  do you have?
 
 Serialization failures.  (To be clear, I’m talking about testing with my
 own memcached-based approach, but it’s really only some very minor
 changes to your work to use memcached instead of the database as the
 back-end.)  Initially it was my own classes, which I could fix, but then
 I started hitting weirdness like this:
 
  Caused by: java.io.NotSerializableException: java.lang.reflect.Field
 
 
 It’s not obvious to me where that’s coming from, or how to fix it.  I had
 also formed the impression (perhaps erroneously!) that you had found
 serialization issues deeper inside the WebObjects frameworks that were
 going to be difficult or impossible to fix.
 
  I had a few unresolved bugs that could have probably been fixed by 
  rewriting EOEditingContext’s serialization routine, but I never bothered.
 
 That sounds a lot more promising.  I was under the impression you had
 abandoned the idea because the problem was unsolvable.
 
  It became obvious to me that a) nobody was interested in fixing 
  serialization in their legacy classes,
 
 I’m interested!
 
  and b) everyone was too proud of their one-off direct action workarounds to 
  this particular problem to look at a new solution that works for everything.
 
 I am really interested in being able to decouple session persistence from
 the application server to allow for automated horizontal scaling of
 component action-based apps.
 
  Basically I wrote that framework to prove to myself that a component 
  action/D2W app could be used as a “front end” app at scale and do a better 
  job of it to boot. I succeeded in convincing myself that it was possible 
  and left it there :-)
 
 
 What would it take to get you back into this?  Let’s start with a show of
 hands: is anyone else interested in developing a robust solution to this
 problem?
 
 
 -- 
 Paul Hoadley
 http://logicsquad.net/


I'm most certainly interested :)

As you know, I dabbled with the framework for a project but came across
some serialization problems deep in the frameworks. I am really
interested in the approach you mention above, Ramsey, with the EC
serialization routine.

My intention was to use ElastiCache.

-- 
Matt
http://logicsquad.net


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Creating the perfect error page

2015-04-26 Thread Matthew Ness
That looks really nice.

You'd never put that in a _production_ release though, would you?

Looks perfect for development, but in production I'd prefer my exception
views to be pretty generic with a non-technical message, unless the app
is for internal staff. So, er, that's what we do.

Aside: am I mis-remembering, or did the Yellow Box exception view
include a link to the IDE code base class and line in development, you
know, a zillion years ago?

--
Matt http://logicsquad.net



On Mon, Apr 27, 2015, at 12:40 PM, David Holt wrote:
 I agree, looks great!

 Sent from my iPad

 On Apr 26, 2015, at 7:34 PM, Paul Hoadley
 pa...@logicsquad.net wrote:

 On 27 Apr 2015, at 7:09 am, Hugi Thordarson h...@karlmenn.is wrote:

 The standard WO exception page is starting to show its age and I
 think it’s high time we improve it. I started a new error page today
 and added the capability to show the code that’s throwing the error
 (a feature of some of the younger web frameworks that I like) but
 I’d love to hear ideas about how it can be made better. What does
 the perfect error page look like?

 Current work:

 http://hugi.karlmenn.is/d/error.png

 I think that looks fantastic. Out of curiosity, how do you get the
 source code snippet in there?




 --
 Paul Hoadley http://logicsquad.net/

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: prevent the user to click again the same wo:hyperlink whilst page reloads?

2015-02-05 Thread Matthew Ness
I sometimes use these occasions to find out why the RR loop is taking so
long :)

In other words, is it possible to move your process logic outside of the
RR loop? Sometimes it's just not possible (or desirable), and you may
want to disable the caller client-side as discussed. Other times you
could spawn a task (directly or not directly related to your view).

--
Matt
http://logicsquad.net 


On Fri, Feb 6, 2015, at 04:07 PM, Chuck Hill wrote:
 Users are more certainly a general problem!  :-)
 
 I am not aware of anything in WO or Wonder to prevent this.  Usually 
 processing is quick and re-clicking is of little consequence or easy to code 
 around..  Just wait until you hit this with the AjaxModalDialog when they 
 click on something in the dialog
 after clicking a close link and before the dialog closes.  Lots and
 lots of fun to be had with this one.
 
 Another fun aspect is that unless this is Ajax, only the result of the last 
 click will be used by the browser.  So you can’t just short circuit clicks 
 2..N.   javascripts to catch the clicked link and disable it immediately is 
 probably your best bet.
 
 Enjoy!
 
 Chuck
 
 
 
 On 2015-02-05, 8:47 PM, OC wrote:
 
 Hello there again,
 
 I might be wrong, but from analysis of my last log it seems at least one of 
 the users got the stupid idea that clicking again on a link whose response 
 was not immediate might speed things up.
 
 I frankly admit I never ever tried that -- after all, who would even think 
 of clicking links whilst the page is being reloaded?!? To me, it does not 
 make any sense. Anyway I've just tested, and found instead of doing nothing 
 (which would seem the reasonable
 thing to do) it simply creates and runs a new R/R loop each time the
 link gets clicked, regardless the page is already being reloaded for
 tens of seconds. Wow.
 
 Thus the aforementioned user started another R/R loop. And another. And 
 another. And so forth. The more concurrent threads did the same thing, the 
 slower they got. Oops.
 
 I guess I could rig some javascripts to catch the clicked link and disable 
 it immeditely or something like that; but it would be some legwork to do 
 properly. I wonder, this being self-evidently a general problem, whether 
 there might already be a solution
 in WOnder?
 
 Thanks,
 OC
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
 
 This email sent to ch...@gevityinc.com
 
 _
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
 
 This email sent to m...@logicsquad.net

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Best way to run static class method from a string?

2014-12-09 Thread Matthew Ness

On Wed, Dec 10, 2014, at 03:22 AM, James Cicenia wrote:
 I want to run a method called availableKeys which just returns an
 NSArray of keypaths for that Entity.

 I will be creating a picker of keys that are pre determined. I was
 going to use the UserInfo but it made EOModeler act a bit funny. So I
 am doing something like:

 public NSMutableDictionary availableKeys(){ if(availableKeys == null){
 availableKeys.takeValueForKeyPath(Name, name”);
 availableKeys.takeValueForKeyPath(--- Dates ---, -DATES-);
 availableKeys.takeValueForKeyPath(Active Date, activeDt); } return
 availableKeys; }

 So in my “Generic” pick list component I want to pass in the
 displayGroup, let them pick the columns of the report, and then
 process.

Hi James,

Can you go into EOModeler acting a bit funny in more detail? I use
userInfo in models all the time for programmatic reasons/logic and
haven't ever had a problem. I'd be interested in what makes it
break for you.

regards,

--
Matt http://logicsquad.net

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: @Override of EO?

2013-08-04 Thread Matthew Ness
Jesse,

Sorry for the late response. Yes, I would typically set the delegate in 
didFinishLaunching()



On 03/08/2013, at 10:34 AM, Jesse Tayler wrote:

 
 ah, just what I was looking for.
 
 maybe put something like that in my app Application() initialization?
 
 
 
 
 On Aug 2, 2013, at 8:27 PM, Matt Ness m...@logicsquad.net wrote:
 
 
 If you are using the static processor(s), you can get the static processor 
 by calling ERAttachmentProcessor.processorForType(your type).
 
 Then setDelegate() on the processor.
 
 
 
 
 On 03/08/2013, at 10:16 AM, Jesse Tayler jtay...@oeinc.com wrote:
 
 
 ah, thanks - I see.
 
 I was using a method via REST that called the attachment processor, but I 
 guess in my web/d2w app it is relying on my properties setting?
 
 er.attachment.storageType=s3
 
 should I set the delegate in a specific way since I don’t seem to have 
 access to the created processor? a default delegate or shared processor 
 somewhere?
 
 
 
 On Aug 2, 2013, at 7:47 PM, Matt Ness m...@logicsquad.net wrote:
 
 Hi Jesse,
 
 Your processor delegate has the attachmentAvailable() interface method. 
 
 
 
 On 03/08/2013, at 9:27 AM, Jesse Tayler jtay...@oeinc.com wrote:
 
 
 Agreed
 
 This really should be done on completion of the otherwise successful S3 
 attachment push, it would seem.
 
 Is there a call, or notification I should be attending in ERAttachemnt 
 for such?
 
 
 
 On Aug 2, 2013, at 6:53 PM, Ramsey Gurley rgur...@smarthealth.com wrote:
 
 Never make side effects in your getter/setters. Definitely do not 
 override takeStoredValueForKey. John's recommendation of didInsert 
 sounds like the proper place in the EO lifecycle to call it, assuming 
 this is actually model logic. Using the intermediate entity as David 
 suggested is what I always do for ERAttachments. Do generate an entity 
 class. As for awakeFromInsertion, unlearn what you have learned. Use 
 wonder's init() instead. awakeFromInsertion can be called more than once 
 due to bugs in EOF. That's the reason init() exists.
 
 My 2¢ :-)
 
 On Aug 2, 2013, at 3:25 PM, Jesse Tayler wrote:
 
 Thanks Tim,
 
 I can readily see that I’d have been well advised to use an interim 
 entity like “Document” or something.
 
 sigh.
 
 I’m guessing it’s not a good idea to try and make the ERAttachment a 
 subclass or EO of my own.
 
 maybe I should use the takeStoredValueForKey, check if the key is a 
 change in the poster relationship and then fire the script?
 
 that might preserve the model, while firing the script only when the 
 save is a change on the relationship?
 
 
 
 On Aug 2, 2013, at 2:41 PM, Timothy Worman li...@thetimmy.com wrote:
 
 Your override would not be called if the updating process is using 
 takeStoredValueForKey.
 
 Tim
 UCLA GSEIS
 
 On Aug 2, 2013, at 10:21 AM, Jesse Tayler jtay...@oeinc.com wrote:
 
 
 I have an override of a normal EO setter, but for some reason, it 
 isn’t called but the value does get updated
 
 I really just want to fire off a unix process once a new posterId has 
 been set, so maybe there’s a smarter way but I thought this would be 
 reliably called once and only after there’s a known primary key id 
 for that poster (ERAttachment)
 
 Any thoughts on that?
 
 
 @Override
 public void setPosterId(Integer value) {
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com
 
 This email sent to li...@thetimmy.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
 
 This email sent to m...@logicsquad.net
 


-- 
Matt.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Determining database plugin at runtime

2013-03-30 Thread Matthew Ness


EOModelGroup group = EOModelGroup.defaultGroup();
EOModel model = group.modelNamed(YourModel);
EOAdaptor ad = EOAdaptor.adaptorWithModel(model);
log.debug(adaptor cd:+ad.connectionDictionary());
log.debug(adaptor pi:+ad.plugInName());



On 31/03/2013, at 6:15 AM, Klaus Berkling wrote:

 
 On Mar 29, 2013, at 11:36 PM, Paul Hoadley pa...@logicsquad.net wrote:
 
 I (think I) want to determine what plugin is in use for a particular model 
 at runtime.  What's the easiest way?  (I see EOAdaptor.pluginName(), but, 
 somewhat embarrassingly, I can't quite work out how to get the EOAdaptor 
 object for a model.)
 
 How about looking at the jdbc URL:
 
 dbConnectURLGLOBAL= jdbc:h2:file:...
 dbConnectURLGLOBAL=jdbc:mysql:...
 dbConnectURLGLOBAL==jdbc:oracle:
 
 (This relates to my recent thread Disable constraint checking under H2.  I 
 want to do exactly that: at runtime, if the H2 plugin is in use, I'll run 
 SET REFERENTIAL_INTEGRITY FALSE;.  If anyone can suggest a better way to 
 do that conditional on running H2, I'm all ears.)
 
 
 
 kib
 
 The essence of training is to allow error without consequence.
 Orson Scott Card
 
 Klaus Berkling
 Web Application Dev.  Systems Admin
 DynEd International, Inc.
 www.dyned.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
 
 This email sent to m...@logicsquad.net


-- 
Matt.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: AjaxObserveField problems

2013-03-29 Thread Matthew Ness
Hi Pascal,

What happens when you sit the /wo:if and wo:else flush against each other 
(something I always do), and have the entire html block sit inside the AUC?


On 30/03/2013, at 5:33 AM, Pascal Robert wrote:

 I'm having a problem with a AjaxObserveField. I'm using it with a 
 WOPopUpButton so that if the selected value of the pop up is not empty, the 
 pop up won't show, and it will display some attributes of the selection.
 
 Structure:
 
  wo:AjaxUpdateContainer id=supplier_info
wo:if condition=$purchaseOrder.supplier
 wo:str value=$purchaseOrder.supplier.company /
/wo:if
  /wo:AjaxUpdateContainer
 
  div
wo:else
  wo:AjaxObserveField updateContainerID=supplier_info 
 action=$justRefresh
wo:popUpButton style=width: 150px; list=$suppliers 
 item=$supplierItem displayString=$supplierItem.company 
 selection=$purchaseOrder.supplier noSelectionString=Please select a 
 supplier... /
  /wo:AjaxObserveField
/wo:else
   /div
 
 When I select a value in the list, I see a POST request being made, but I 
 have a breakpoint in the justRefresh method and I never reach it. What is 
 happening here?
 
 Request 
 URL:http://127.0.0.1:56277/cgi-bin/WebObjects/MyApp.woa/ajax/zcYVC5w6HwxHyW7sPqLFkM/8.0.13.5.1_u=supplier_info1364581831478
 
 Request Method:POST
 
 Query parameters:
 
 _u=supplier_info1364581831478
 
 Form Data:
 
   • 0.13.5.1.25.17.1.1:5
   • _partialSenderID:0.13.5.1.25.17.1.1
   • AJAX_SUBMIT_BUTTON_NAME:0.13.5.1.25.17.1
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
 
 This email sent to m...@logicsquad.net


-- 
Matt.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERRest and returning an Array of dictionaries

2013-03-08 Thread Matthew Ness

On 09/03/2013, at 8:11 AM, Paul Yu wrote:

 Greetings
 
 I am trying to return a list of the primary keys of a toMany relationship on 
 an EO.
 
 I've written a method on the EO to put the keys into NSMutableDictionaries 
 and added them an NSMutableArray.  I then return the array to my rest 
 controller.
 
 This is NOT working as I would have expected.  What am I missing and is there 
 a video that I should watched?
 
 Thanks
 
 Paul
 


Hi Paul,

Maybe I'm not fully understanding your requirement, but can you not just create 
a custom filter in your 'owner' controller, say CompanyController:


public static ERXKeyFilter someRelationshipFilter(){

ERXKeyFilter filter = ERXKeyFilter.filterWithNone();
filter.include(Company.EMPLOYEES).include(Employee.PK_CUSTOM_KEY);
return filter;

}


where a Company has many Employee objects, and in Employee.java:

public static final ERKKeyString PK_CUSTOM_KEY = new 
ERKKeyString(primaryKey);


Or is that barking up the wrong tree? Do you need the ids to be flattened in 
the response graph, or (in this case) the Employee element _not_ to be emitted?


I think you'd get the id attribute for free in the graph here anyway.


Cheers,

-- 
Matt.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERAttachment and ERRest

2013-03-06 Thread Matthew Ness

On 07/03/2013, at 3:11 AM, Jesse Tayler wrote:

 
 On Mar 6, 2013, at 7:03 AM, Paul Yu p...@me.com wrote:
 
 Jesse
 
 Can/would you share your solution on how you got your iOS image to post to 
 the ERRest server and then how do you pass that back down?
 
 Thanks.
 
 
 I could try! I don't know if you want to be following after me ;-)
 
 there. I made a smiley.
 
 Some of what I'm doing seems disgusting, but maybe I was cool to have figured 
 it out. 
 
 You do have to setup some headers and things - or I did I guess.
 
 On my server, I have a relationship from Person to an ERAttachment called 
 poster
 
 so in iOS I call that URL (blahblah/Person/999/poster.bplist or something) 
 then you send it wrapped binary image data and some headers.
 
 I had to pad the data to form a proper boundary format for multi-part 
 handling like so:
 
 
 
[urlRequest addValue:@image/png forHTTPHeaderField:@mimetype];
[urlRequest addValue:@image/png forHTTPHeaderField:@Mime-Type];
 
[urlRequest addValue:@photo.png forHTTPHeaderField:@filename];
 
NSString *boundary = 
 @---14737809831466499882746641449;
NSString *contentType = [NSString stringWithFormat:@multipart/form-data; 
 boundary=%@,boundary];
[urlRequest addValue:contentType forHTTPHeaderField: @Content-Type];
 
NSMutableData *body = [NSMutableData data];
[body appendData:[[NSString stringWithFormat:@\r\n--%@\r\n,boundary] 
 dataUsingEncoding:NSUTF8StringEncoding]];
 
//Image
[body appendData:[[NSString stringWithFormat:@Content-Disposition: 
 form-data; name=\filMyFile\; filename=\%@\\r\n, @poster.png] 
 dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[@Content-Type: image/png\r\n\r\n 
 dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:scaledImageData];
[body appendData:[[NSString stringWithFormat:@\r\n--%@--\r\n,boundary] 
 dataUsingEncoding:NSUTF8StringEncoding]];
 
[urlRequest setHTTPBody:body];
 
 
 
 And then I push all that to the server.
 
 does that help?
 
 oh, passing back down is as easy as anything else - I get my images from 
 Amazon S3 like any web image.
 
 let me know if you need help on that.
 


That's pretty similar to what we do, although in a different language, and we 
push multiple files into the one request using content-disposition and 
boundaries.

Aside: if you are not doing any processing of the files at the application 
tier, and are using AWS S3, you could directly upload the files to your S3 
bucket(s) using CORS:

http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html

Cheers,

-- 
Matt.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WOWODC 2013?

2012-10-19 Thread Matthew Ness

On 20/10/2012, at 6:32 AM, Pascal Robert wrote:

 
 Le 2012-10-19 à 13:58, Chuck Hill ch...@global-village.net a écrit :
 
 
 On 2012-10-19, at 10:13 AM, David Avendasora wrote:
 
 
 On Oct 20, 2012, at 12:42 AM, Chuck Hill ch...@global-village.net wrote:
 
 I hope some day we could have one WOWODC here in Costa Rica we have 
 beaches, girls, beers. It will be nice.
 
 Hey! We have all that in Brunei too!
 
 Except for the beer.
 
 And all (okay, both) the girls are covered head to toe in loose-fitting 
 polyester.
 
 I wonder if there is a fetish for that...
 
 
 And all the beaches have sand flies.
 
 Bonus!
 
 
 Otherwise this place is paradise!
 
 But seriously, I don't care how much Pascal makes organizing WOWODC every 
 year
 
 I think it makes him insane and a nervous wreck.  I don't think it makes him 
 money.
 
 Honestly, I do it only to see everyone at least once a year and because I do 
 like giving presentations.




Once again, thank you Pascal for your efforts this year. I really enjoyed the 
talks, the location, and appreciate the efforts you (and your family) made.

My only (constructive!) criticism is this: we should honour the time allotments 
for each session. 

I know that sessions can go overtime, mainly because they are interesting 
talks/demos, but we owe it to ourselves as professionals to finish in the 
appropriate time. If we cannot, perhaps we allot time for run-off sessions at 
the end of the day, where anyone interested in asking further questions of the 
presenter of any talk do so at that time. 

This way the next presenter knows they will start at the correct time, and we 
can all trust the schedule. So this means presenters must turn up on time too :)

I'm not talking minute perfect here, but even if we allow 15 minutes over for 
each session, we're out by a couple of hours a day.

On this, some presentations (Q  A aside) do not take an hour, some take two. 
_All_ of them are interesting. We need to assemble the schedule appropriately.

The recording and wifi situation really must be sorted out if we want to be 
taken seriously, and we want the group to grow.

Lastly, the schedule should be publicly available over HTTP as a simple web 
page. You never know who might be reading it!

Cheers,

-- 
Matt.

http://logicsquad.net/





 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Charting framework for WO/Wonder.

2012-07-22 Thread Matthew Ness
Hi James,

Yeah that's a hangover from when that class extended another, sorry. You
have strict warning settings :)

I'll edit them out today.

--
Matt

http://logicsquad.net/



 Matt -

 This comes at a very opportune time for me. I was originally woking with
 Sencha, but seeing
 that you have created a framework for Highcharts, I would rather go with
 Highcharts.

 However, I am having some compile errors with KVCAExtensionGraph

 Eclipse wants me to remove the @override.

 I don't know if this is my problem in Eclipse or ?

 Thank you
 James

 On Tue, Jul 17, 2012 at 12:46 AM, Matthew Ness m...@logicsquad.net
 wrote:

 Hi,

 I've written a small framework for reporting/charting, which I showed to
 some of you at this year's WOWODC.

 It's a wrapper framework for the JavaScript library, Highcharts. It
 contains a number of convenience WOComponents for building charts with
 raw
 data or key value bindings, as well as a custom request handler for
 transcoding the SVG report/chart into PNG/JPG/PDF files.

 It's functional and working, and there are a few other features I'd like
 to add in the next few ... well, soon.


 If you'd like to check it out (sorry, clone!), it and its demonstration
 Wonder application can be found here:

 https://github.com/matthewness

 git clone https://github.com/matthewness/ERHighcharts.git
 git clone https://github.com/matthewness/ERHighchartsDemo.git


 If you do check it out, please read the README which:

 o  explains the Highcharts licence (free for non-profits, very
 reasonable
 for others).
 o  shows how to use the framework.
 o  explains the extension graph and options.


 The Demo app explains how to use each chart type and may be a good place
 to start.

 If you have any questions or suggestions please let me know of them.

 Cheers,


 --
 Matt.

 http://logicsquad.net/


  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/james%40jimijon.com

 This email sent to ja...@jimijon.com




 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Charting framework for WO/Wonder.

2012-07-16 Thread Matthew Ness
Hi,

I've written a small framework for reporting/charting, which I showed to
some of you at this year's WOWODC.

It's a wrapper framework for the JavaScript library, Highcharts. It
contains a number of convenience WOComponents for building charts with raw
data or key value bindings, as well as a custom request handler for
transcoding the SVG report/chart into PNG/JPG/PDF files.

It's functional and working, and there are a few other features I'd like
to add in the next few ... well, soon.


If you'd like to check it out (sorry, clone!), it and its demonstration
Wonder application can be found here:

https://github.com/matthewness

git clone https://github.com/matthewness/ERHighcharts.git
git clone https://github.com/matthewness/ERHighchartsDemo.git


If you do check it out, please read the README which:

o  explains the Highcharts licence (free for non-profits, very reasonable
for others).
o  shows how to use the framework.
o  explains the extension graph and options.


The Demo app explains how to use each chart type and may be a good place
to start.

If you have any questions or suggestions please let me know of them.

Cheers,


-- 
Matt.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Wonder apps under AWS ELB with sticky sessions, autoscaling EC2 instances.

2012-06-12 Thread Matthew Ness
Hello list!

I've been working on a number of wonder applications the last year at my
9-5, all of which we have deployed to AWS in various development and
staging/QA states. For the production environment of the main application,
we are looking at a deployment setup quite similar to this reference
diagram:

http://d36cz9buwru1tt.cloudfront.net/architecturecenter/AWS_ac_ra_web_01.pdf

(from http://aws.amazon.com/architecture/)

It's important to the company to ensure we can run smoothly across
multiple Availability Zones of a Region, so the diagram represents the 3
(+1) tier application setup we are looking for.

We're really happy with the approach we've taken so far, and the
ELB-session-stickiness and autoscaling of the application tiers in each AZ
is something we are currently evaluating.

Ignoring CloudFront and Route 53 for a moment, we're interested in setting
up the ELB with sticky sessions/session affinity, apache on each AZ, and a
number of application VMs on each AZ, each one of course running a number
of WO instances. The persistence tier is absolutely fine and accounted for
in both AZs.



So two quick questions:

1. Has anyone had any experience with ELB and sticky sessions with regards
to WO, WOMonitor, and wotaskd? If so, are there any gotchas or hurdles you
foresee me coming across? Any tips for smooth sailing?

Tied (or apposed really) to this is the concept of distributed session
storage, which we are also considering, so I'm looking forward to your
WOWODC session, Ramsey!

2. Currently we're looking at manual horizontal scaling of the application
tiers in each AZ, but it would be great to design/have a solution for
triggered horizontal EC2 VM scaling with respect to WO. This would
presumably require updating the WOMonitor and wotaskd. Again, any one with
previous experience wanting to warn me off/enthusiastically give me hope?




Any knowledge in this area would be greatly appreciated!

Cheers,

and see you all at WOWODC.

-- 
Matt
http://logicsquad.net/

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Wonder apps under AWS ELB with sticky sessions, autoscaling EC2 instances.

2012-06-12 Thread Matthew Ness
Thanks Simon,

We'll be running https full-time, so we'll have an evaluation period and
I'll let you know how we go.

Will you be at WOWODC?


-- 
Matt
http://logicsquad.net/



 we had problems with elb, wo and sticky sessions. we now run zeus load
 balancers on ec2.

 we never got to the bottom of it, just randomly the session would seem
 to loose it's stickyness, head off to another ec2 instance, new
 session and login page.

 i suspected it was due to switching between http and https and we
 intend to re-trial elb in a few months time because we are moving all
 of our apps to full-time https and secure cookies.

 sorry, not much help i know, but just a heads up that we did have
 problems. i'd be interested in knowing how you get on...

 simon


 On 12 June 2012 23:24, Matthew Ness m...@logicsquad.net wrote:
 Hello list!

 I've been working on a number of wonder applications the last year at my
 9-5, all of which we have deployed to AWS in various development and
 staging/QA states. For the production environment of the main
 application,
 we are looking at a deployment setup quite similar to this reference
 diagram:

 http://d36cz9buwru1tt.cloudfront.net/architecturecenter/AWS_ac_ra_web_01.pdf

 (from http://aws.amazon.com/architecture/)

 It's important to the company to ensure we can run smoothly across
 multiple Availability Zones of a Region, so the diagram represents the 3
 (+1) tier application setup we are looking for.

 We're really happy with the approach we've taken so far, and the
 ELB-session-stickiness and autoscaling of the application tiers in each
 AZ
 is something we are currently evaluating.

 Ignoring CloudFront and Route 53 for a moment, we're interested in
 setting
 up the ELB with sticky sessions/session affinity, apache on each AZ, and
 a
 number of application VMs on each AZ, each one of course running a
 number
 of WO instances. The persistence tier is absolutely fine and accounted
 for
 in both AZs.



 So two quick questions:

 1. Has anyone had any experience with ELB and sticky sessions with
 regards
 to WO, WOMonitor, and wotaskd? If so, are there any gotchas or hurdles
 you
 foresee me coming across? Any tips for smooth sailing?

 Tied (or apposed really) to this is the concept of distributed session
 storage, which we are also considering, so I'm looking forward to your
 WOWODC session, Ramsey!

 2. Currently we're looking at manual horizontal scaling of the
 application
 tiers in each AZ, but it would be great to design/have a solution for
 triggered horizontal EC2 VM scaling with respect to WO. This would
 presumably require updating the WOMonitor and wotaskd. Again, any one
 with
 previous experience wanting to warn me off/enthusiastically give me
 hope?




 Any knowledge in this area would be greatly appreciated!

 Cheers,

 and see you all at WOWODC.

 --
 Matt
 http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Most requested stuff on Google Moderator

2012-03-27 Thread Matthew Ness

 Le 2012-03-27 à 19:30, Mike Schrag a écrit :

 I think we should use the funds to pay people to fix issues that the
 majority of users are having. The issues will be voted by the
 community and the most voted issues will become the highest
 priorities.


 That is not how Wonder was created and now how I expect that it will
 continue.  If you have a problem, learn how to fix it.  Then put it in
 Wonder.

 In the past, we had Apple sponsorship and most of the big additions to
 Wonder between 2007 and 2010 came from Apple… We don't have that
 sponsorship anymore, and personally I don't think we will survive if we
 don't pay people for major stuff. I don't think we will survive anyway,
 but that's another story…
 Apple funded a VERY small percentage of the contributions to Wonder.
 Almost all of the contributions I made came from mDimension donating
 their time, bandwidth, and hardware for the good of the community.
 Frankly, if Apple hadn't funded the things they did, I would have done
 them anyway, because I just enjoyed making things.

 This approach of paying for fixes seems like you're just going to end up
 with a collection of bounty hunters instead of a community. On top of
 that, there's no way you're going to be able to afford to pay the market
 cost for this work. mDimension easily donated a couple hundred thousand
 dollars of time if you applied their real hourly rate to the work. So on
 top of encouraging people to only give if they get paid, they're going
 to be paid crap, so why would anyone even bother?

 I really don't think things are stagnant because of the lack of money.
 They're stagnant because the remaining people in the community don't
 care enough to contribute. I don't buy any of the I don't know how to
 do X or I don't have time to do X. You have to want it. I didn't know
 how to write nearly any of what was in WOLips before I started working
 on WOLips, and likewise with Wonder. I learned WebObjects working on
 Wonder. I'm would wager that everyone who worked on Wonder was in the
 same category. Contribution is also positive reinforcement. The coolest
 times in Wonder for me were always when one person contributing got
 someone else energized to contribute and amazing things were made.

 The real question is: Who is currently NOT contributing because they're
 just waiting for a payday to do so? If you're perfectly happy enjoying
 the fruits of the community while not giving back to the community, look
 in the mirror for the reason it's dying. Either give a shit, or don't be
 sad that it dies.

 I think reasons don't contribute are:

 1) Some just don't care and are leachers. Yes, people you can blame me to
 saying that. But anyway, any community are like that, no community have
 everyone contributing, it's just plain impossible.

 2) People are afraid of contributing. That's one of the reasons of why I
 added the integration branch in Wonder, and doing a Contributing to the
 community talk at WOWODC.

 3) People don't have time. That's the answer I got from many WO experts.
 And I can't do anything about that.

 So I really don't know how we can improve the situation…


Hi Pascal and list,

FWIW,

4) The inability to contribute additions to wonder because some people are
bound by their employer's concerns over ownership/licensing of
intellectual property.

Example, my 9-5 uses WO extensively, Wonder a little. I have some
frameworks which I think may be worthwhile additions to wonder, and have
verbal signoff to contribute one of them (if the community thinks it's
worthwhile of course!).

It can sometimes be a slow process. I was hoping to discuss this (process
and frameworks) with everyone at WOWODC.

I understand 4 does not necessarily obviate 1, 2, and 3.

Matt

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: login multiple WOApps by passing same login credentials

2012-03-01 Thread Matthew Ness
 Hi,

 if security matters and you have time to learn something new, you need
 Single Sign On such as CAS : http://www.jasig.org/cas (easy to setup when
 deploying in Tomcat)
 If not you could implement something like this :

 - app1 generate a link to app2 with a token in it
 - app2 verify if the token is there and call a DA on app1 to ask if it's a
 valid token

 Cheers,

 Alex

 2012/3/1 Raghavender Bokka raghavender.bo...@prithvisolutions.com

 Hi folks,

 I have two WO apps, both are running using the same user database, and
 for
 each app, the user authenticates against that user database before
 they're
 let into the app.  The userID and the Password are stored in the
 database
 table (without encrypted).

 Now I have added a link in the app1 that should allow the user to
 navigate
 to the app2 using the same login credentials (without the user entering
 the
 userID and Password for the app2).

 Please advise how this can be achieved or advise how the login
 credentials
 are added to the URL so that the user is navigated to the app2 without
 entering the login credentials.

 Thanks in advance for any help.

 Rahu


Hello,

I agree with (the second point from) Alex.

The common trusted area of your apps is the shared database, so you can
create a database table for token provision (expiry, origin_app,
destination_app, token, user_id FK, status, ..).

App A creates the token, send the token (uuid or what-have-you) as a
parameter to a DA request to App B, App B checks for the token, and if
happy, hydrates the user in its session and marks the token complete.

There are other approaches of course - a SSO service, or encrypt the data
(symmetric or asymmetric) and send it to a DA of app B, but given your
info I think the db table is the easiest for your problem.

Cheers,

Matt



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERCaptcha

2012-02-17 Thread Matthew Ness
 Yes it was... but I solved this...
 It does not seem to work if the form was bound to a Direct Action and
 the submit button was static HTML input element.


Yes, my apologies. I received your second post (solved) two hours after I
posted my question.

 Once I used a component action it then worked fine...

 Don't much like the Gotcha image though HAHA

I changed the height and width of the image to fit with the style of my
app which increased its appeal.


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERAttachments, S3, and dynamic configurations

2011-10-29 Thread Matthew Ness
Hi Jesse,

 seems like that's worth a patch of code to wonder, no?


Perhaps, but not in its current form, as it's quite specific.


 I think a lot of people have diverging implementations that could use
 consolidation and I'd like to move to something more common between
 everyone myself, so I'd like to see that happen if it can be done in such
 a way that makes sense.


Sure thing. My requirements are specific - region and bucket info coming
from the db, determined by ownership/client/what-have-you. Link-lifes
determined at runtime. This is probably not everyone's aim, so yes, we'd
need to determine common intentions. Mine are, well, in this thread.

I think other people may want to persist object acls at some point. There
are other considerations.

Is this list the correct space to be discussing this, or is there another
setting more appropriate?

Cheers,

Matt


 On Oct 24, 2011, at 6:59 PM, Matthew Ness wrote:

 Hi all,

 I'm using ERAttachments in a couple of my applications. Some are using
 the
 configuration type {S3}.

 For one of the applications using S3 I have a need to dynamically
 generate
 and use a sub-set of the ERAttachment configuration set. I cannot use
 the
 standard Properties approach, as the ERAttachments are not
 grouped/configured by the standard EO-ERAttachment relationship but
 other
 factors.

 That is, for any specific EO-ERAttachment relationship, there may be
 multiple configurations (defined by, say, ownership), and new
 configurations may be added over the course of the running app. The
 major
 (but not only) difference being the S3 bucket the ERAttachment will
 use.

 I realise I can send a configuration name to ERS3AttachmentProcessor,
 but
 that reads the bucket name from ERXProperties, rather than another type
 of
 persistence (in my case, db).

 I have in mind subclassing ERS3AttachmentProcessor, reading my
 configuration data based on my criteria, and processing the
 ERAttachment
 in that subclass based on that criteria. This seems to me a reasonable
 way
 to go, but maybe I'm missing something.

 Does this seem like a sound approach? Would you recommend an alternate
 approach, or am I missing something? Has anyone done something similar?
 Would it make more sense to not subclass, and assign my new class in
 ERAttachmentProcessor.addAttachmentProcessorForType?

 Likewise, I'd like to dynamically assign the linkLife of a generated
 URI
 of an S3 ERAttachment.  On the face of it, it looks like I may need to
 build a new [My]S3Attachment/[My]AttachmentProcessor stack. Or is there
 another way to dynamically assign the linkLife each time an S3 URI is
 generated in ERAttachment?

 Lastly, this approach could allow the persistence of the acl value at
 creation time, but this may be a discussion for another time :)

 Thanks for any help,

 Matt



 Hi again,

 For what it's worth, I created a new attachment processor class and
 subsidiary classes which deal with AWS regions, buckets, and linkLifes
 to
 satisfy my requirements listed above. In my Application's
 finishInitialization I assigned this new processor to the
 ERS3Attachment.STORAGE_TYPE value. If anyone ever does something similar
 I'd be happy to help them out.

 Cheers,

 Matt


 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com

 This email sent to jtay...@oeinc.com




 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERAttachments, S3, and dynamic configurations

2011-10-24 Thread Matthew Ness
 Hi all,

 I'm using ERAttachments in a couple of my applications. Some are using the
 configuration type {S3}.

 For one of the applications using S3 I have a need to dynamically generate
 and use a sub-set of the ERAttachment configuration set. I cannot use the
 standard Properties approach, as the ERAttachments are not
 grouped/configured by the standard EO-ERAttachment relationship but other
 factors.

 That is, for any specific EO-ERAttachment relationship, there may be
 multiple configurations (defined by, say, ownership), and new
 configurations may be added over the course of the running app. The major
 (but not only) difference being the S3 bucket the ERAttachment will use.

 I realise I can send a configuration name to ERS3AttachmentProcessor, but
 that reads the bucket name from ERXProperties, rather than another type of
 persistence (in my case, db).

 I have in mind subclassing ERS3AttachmentProcessor, reading my
 configuration data based on my criteria, and processing the ERAttachment
 in that subclass based on that criteria. This seems to me a reasonable way
 to go, but maybe I'm missing something.

 Does this seem like a sound approach? Would you recommend an alternate
 approach, or am I missing something? Has anyone done something similar?
 Would it make more sense to not subclass, and assign my new class in
 ERAttachmentProcessor.addAttachmentProcessorForType?

 Likewise, I'd like to dynamically assign the linkLife of a generated URI
 of an S3 ERAttachment.  On the face of it, it looks like I may need to
 build a new [My]S3Attachment/[My]AttachmentProcessor stack. Or is there
 another way to dynamically assign the linkLife each time an S3 URI is
 generated in ERAttachment?

 Lastly, this approach could allow the persistence of the acl value at
 creation time, but this may be a discussion for another time :)

 Thanks for any help,

 Matt



Hi again,

For what it's worth, I created a new attachment processor class and
subsidiary classes which deal with AWS regions, buckets, and linkLifes to
satisfy my requirements listed above. In my Application's
finishInitialization I assigned this new processor to the
ERS3Attachment.STORAGE_TYPE value. If anyone ever does something similar
I'd be happy to help them out.

Cheers,

Matt


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


ERRest, JSON, and Joda DateTime objects

2011-10-18 Thread Matthew Ness
Hello,

One of my client applications has switched from XML to JSON for GET reads
of a number of EOs through ERRest.

I was getting an exception when the JSON response is being written on a
number of those EOs:

'''
ERROR er.extensions.appserver.ERXApplication  - Handling
exception:java.lang.NoSuchMethodException: Property 'cachable' has no
getter method
NoSuchMethodException: Property 'cachable' has no getter method
'''

I started eliminating the ERXKeys in the ERXKeyFilter used in that
particular call to see if a particular key/attribute/relationship was
responsible.

Some of those EOs have joda DateTime attributes using the jodatDateTime
Prototype, and they were the culprits. Well, the problem went away when I
excluded those keys :)

Does/did anyone else have this problem?

I ended up creating a couple of custom ERXKeys for passing those attribute
values as a different java type.

Cheers, and apologies if this is a solved problem.

Matt


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


ERAttachments, S3, and dynamic configurations

2011-10-17 Thread Matthew Ness
Hi all,

I'm using ERAttachments in a couple of my applications. Some are using the
configuration type {S3}.

For one of the applications using S3 I have a need to dynamically generate
and use a sub-set of the ERAttachment configuration set. I cannot use the
standard Properties approach, as the ERAttachments are not
grouped/configured by the standard EO-ERAttachment relationship but other
factors.

That is, for any specific EO-ERAttachment relationship, there may be
multiple configurations (defined by, say, ownership), and new
configurations may be added over the course of the running app. The major
(but not only) difference being the S3 bucket the ERAttachment will use.

I realise I can send a configuration name to ERS3AttachmentProcessor, but
that reads the bucket name from ERXProperties, rather than another type of
persistence (in my case, db).

I have in mind subclassing ERS3AttachmentProcessor, reading my
configuration data based on my criteria, and processing the ERAttachment
in that subclass based on that criteria. This seems to me a reasonable way
to go, but maybe I'm missing something.

Does this seem like a sound approach? Would you recommend an alternate
approach, or am I missing something? Has anyone done something similar?
Would it make more sense to not subclass, and assign my new class in
ERAttachmentProcessor.addAttachmentProcessorForType?

Likewise, I'd like to dynamically assign the linkLife of a generated URI
of an S3 ERAttachment.  On the face of it, it looks like I may need to
build a new [My]S3Attachment/[My]AttachmentProcessor stack. Or is there
another way to dynamically assign the linkLife each time an S3 URI is
generated in ERAttachment?

Lastly, this approach could allow the persistence of the acl value at
creation time, but this may be a discussion for another time :)

Thanks for any help,

Matt


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Finding WO people for startups

2011-09-24 Thread Matthew Ness
 Not much people want to organize a WOWODC anywhere in the world :-) I
 understand them, not much people want to spend  35 hours to organize an
 event for next to nothing money wise.

 I am OK to do that for WOWODC 2013 in Europe, and maybe 2015 in Japan.

 Let me think about that...

 I did a WebObjects Bootcamp this Summer 2011 in Hiroshima (1 day) Japan
 and Fukuoka(4 days) Japan.

Hi Ken,

There's been talk of one in either Australia or Brunei (or anywhere in
Southeast Asia actually), which Paul and I were happy to help out with.

Perhaps we should consider rolling Aus/SEA/Japan into one conference.

-- 
Matt.



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Consuming REST services

2011-05-19 Thread Matthew Ness
 Good morning,

 I see from the 2011 surveys that a good part of the community is consuming
 REST services. I was wondering what are you using to consume those? Right
 now, I'm playing with ERXRestClient and JBoss' RestEasy to consume REST
 services, but I'm curious to see what other people use. Just plain Jakarta
 HTTPClient with a JSON or XML parser?



Hi Pascal,

Java (SAX), consuming XML
Flex and AIR, consuming XML and JSON

-- 
Matt.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Scheduled Actions

2011-03-28 Thread Matthew Ness
 How would I handle scheduled actions with WebObjects. Cron or some other
 approach? I'd like to have my application run a daily process to check a
 remote client's membership status and update my application's membership
 status.

 Thanks,

 Ken


You could write a simple script which invokes curl, calling a DA in your
application, and schedule the script as a cron job. You may want to
include a level of security/authentication in the call.

-- 
Matt.

http://logicsquad.net/


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: OT: JPEG EXIF Image Orientation

2010-07-06 Thread Matthew Ness
We use MediaRich to do most of our heavy lifting.

exiftool should do what you want too.

Cheers,

Matt


 On 6 Jul 2010 19:50, Joe Moreno joemor...@mac.com wrote:

 *S**ummary*
 Can anyone recommend either a Java library or command line app that can
 look
 into a JPEG's EXIF data in order to determine its orientation (i.e. which
 way is up)? This seems like it should be an easy problem to solve, but I
 haven't had any luck finding the answer.

 **
 *B**ackground*
 Some of you may have noticed that photos taken with iOS 4 no longer
 automatically rotate right side up. Instead, the orientation is placed
 in
 the EXIF data. Software rendering the photo must look at the EXIF data in
 order to correctly display the photo. This issue is easily demonstrated by
 snapping a photo in landscape mode, with an iOS 4 iPhone, and then
 e-mailing
 it to yourself and viewing it in a version of Mail prior to Snow Leopard
 where you'll see that the image is sideways. (See attached screen shot.)

 *WebObjects  SIPS*
 I have a WebObjects project which worked beautifully with the iPhone until
 the release of iOS 4. The project uses Mac OS X's sips command line app to
 resize photos (sips can also rotate images and it's highly optimized for
 Mac
 OS X – I have yet to find anything else that's faster

 Sips only allows you to examine certain EXIF data tags; and JPEG
 orientation
 isn't one of them.

 Any help is greatly appreciated.

 Cheers,
 Joe



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Inline bindings and WOConditional

2010-02-19 Thread Matthew Ness
 I'm trying to hide some text if an array is empty, so I tried this :

   wo:WOConditional condition = $member.organizationProfiles.isEmpty

 But I'm getting :

 org.wocommunity.logic.eof.OrganizationProfile 0x40964823 valueForKey():
 lookup of unknown key: 'isEmpty'. This class does not have an instance
 variable of the name isEmpty or _isEmpty, nor a method of the name
 isEmpty, _isEmpty, getIsEmpty, or _getIsEmpty

 Why it's trying to find isEmpty on a OrganizationProfile instead of the
 array (which is populated with OrganizationProfile objects)? So far, the
 only way I found to check if it's empty with non-Java code was with :

 OrgsProCondition : WOConditional {
   condition = member.organizationsprofil...@count  0;
   negate = true;
 }

 I also tried with :

   wo:WOConditional condition = $member.organizationprofil...@count  0

 But I get a has a quote left open, and using gt; didn't help.




Try

wo:WOConditional condition = $member.organizationProfiles.count

As a positive number will resolve true.

Cheers,

Matt

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com