Re: updating ApacheFlexSDK URL in Om's installer

2012-07-30 Thread Om
We are still waiting to get the preferred mirror via a call to the cgi script. Nick, any updates on this? Thanks, Om On Mon, Jul 30, 2012 at 9:17 AM, Carol Frampton wrote: > > > On 7/30/12 11 :04AM, "Erik de Bruin" wrote: > >>So, where are we on this? What can I do to help and move things alon

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-30 Thread Carol Frampton
On 7/30/12 11 :04AM, "Erik de Bruin" wrote: >So, where are we on this? What can I do to help and move things along? > >EdB > My understanding is: The mentors need to decide if this must be released. One has said yes so far. If yes, it must be source, and everything buildable with the build

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-30 Thread Erik de Bruin
So, where are we on this? What can I do to help and move things along? EdB On Fri, Jul 27, 2012 at 11:14 PM, Dave Fisher wrote: > I've been reading them, it looks like Josh is in the process of contributing > support for retrieving the dynamics mirror address for the object. > > Stay tuned...

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Dave Fisher
I've been reading them, it looks like Josh is in the process of contributing support for retrieving the dynamics mirror address for the object. Stay tuned... Regards, Dave On Jul 27, 2012, at 1:38 PM, Carol Frampton wrote: > The discussion on infra just won't stop - I keep getting emails - so

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Carol Frampton
The discussion on infra just won't stop - I keep getting emails - so I'm not going to keep forwarding them over. If you want to follow it the title of the email over there is "Re: how to get the dynamically assigned download mirror of the Apache Flex package" Carol

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Carol Frampton
On 7/27/12 2 :53PM, "Daniel Shahaf" wrote: >Josh Thompson wrote on Fri, Jul 27, 2012 at 14:01:42 -0400: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> I slightly tweaked the mirrors.cgi script to be able to have a redirect >> feature. I have our download.html file set up so that wh

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Carol Frampton
{infra} is still talking about this On 7/27/12 2 :01PM, "Josh Thompson" wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >I slightly tweaked the mirrors.cgi script to be able to have a redirect >feature. I have our download.html file set up so that when a user clicks >to >download a fi

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Nicholas Kwiatkowski
It seems to parse a list of mirror sites and does some sort of round-robin selection of a mirror. This wouldn't be something I'd want to maintain client-side. Should Apache change it's mirror rules or anything else to that effect, we don't want to anger one of the mirror hosts, or be responsible

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Dave Fisher
On Jul 26, 2012, at 8:52 AM, Nicholas Kwiatkowski wrote: > Om, et. all, > > I'm set to work on getting something like this to work this evening. I've > got a custom CGI script that will make the entire "select a mirror" thing > easier, but I needs some debugging (I'm waiting for log files). I

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Alex Harui
On 7/27/12 6:33 AM, "Nicholas Kwiatkowski" wrote: > It's on my list. I'm still testing the other CGI approach as well. > > Thanks for the help. > Just out of curiosity, how does closer.cgi actually work? Is it something we can write in AS using Sockets/URLLoader? -- Alex Harui Flex SDK T

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Nicholas Kwiatkowski
It's on my list. I'm still testing the other CGI approach as well. Thanks for the help. -Nick On Fri, Jul 27, 2012 at 9:17 AM, Erik de Bruin wrote: > Nick, > > > You can't really upload plain .HTML files. The only way to get files > from > > the staging server to production is the SVN at the

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Erik de Bruin
Nick, > You can't really upload plain .HTML files. The only way to get files from > the staging server to production is the SVN at the moment. Ok, so adding the two tiny files (CGI and HTML, a solution approved and promoted by Greg Stein from the 'infra' list) to SVN will allow us to test this?

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Carol Frampton
{from infra} On 7/27/12 3 :08AM, "Greg Stein" mailto:gst...@gmail.com>> wrote: I read your entire email. Are you suggesting that the app should interpret a Location: header in a 3xx redirect? If so, then please be less subtle. Second, *is* there such a redirect feature? (just checked; no) Ab

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Carol Frampton
{from infra} - seems to be getting snippy On 7/27/12 4 :22AM, "Daniel Shahaf" wrote: >Not responding, given your signature. > >Greg Stein wrote on Fri, Jul 27, 2012 at 03:08:12 -0400: >> I read your entire email. Are you suggesting that the app should >>interpret >> a Location: header in a 3xx r

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Carol Frampton
{from infra} On 7/27/12 2 :55AM, "Daniel Shahaf" wrote: >Greg Stein wrote on Thu, Jul 26, 2012 at 17:23:56 -0400: >> That link works for a web browser to generate a default download page. >> > >Read the second paragraph I wrote too please. > >> Carol: your solution looks proper for retrieving a

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Nicholas Kwiatkowski
You can't really upload plain .HTML files. The only way to get files from the staging server to production is the SVN at the moment. I'm still working on this one, and hopefully should have it taken care of today. In a few conversations with some of the infra people on how to get this done. -Ni

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-27 Thread Erik de Bruin
Nick, > We can't use the CMS as suggested because it will automatically add in the > header / footer/ etc. which will need to be parsed out. The people from infra have indicated to Carol that the suggested solution (CGI and HTML) should work. Maybe the CMS doesn't add headers/footers when you up

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Carol Frampton
{more input from infra} On 7/26/12 5 :23PM, "Greg Stein" mailto:gst...@gmail.com>> wrote: That link works for a web browser to generate a default download page. Carol: your solution looks proper for retrieving a simple URL for use within an application (desktop, I presume?) If you have any p

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Erik de Bruin
> Haha cool. It looks like Erik's code sample should work as well. He has > given some pretty detailed explanation and steps. Also, my suggestion strictly follows the Apache guidelines and use cases for working with mirror sites (CGI wrapper and HTML template); it's just a very minimal case wher

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Om
Haha cool. It looks like Erik's code sample should work as well. He has given some pretty detailed explanation and steps. Thanks, Om On Jul 26, 2012 12:35 PM, "Nicholas Kwiatkowski" wrote: > Sounds good. I'll see what I can do. My perl is about 200 > years-old-rusty, so I'm trying to slog th

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Nicholas Kwiatkowski
Sounds good. I'll see what I can do. My perl is about 200 years-old-rusty, so I'm trying to slog through making it, and making it right. -Nick On Thu, Jul 26, 2012 at 3:28 PM, Om wrote: > On Jul 26, 2012 8:53 AM, "Nicholas Kwiatkowski" wrote: > > > > Om, et. all, > > > > I'm set to work on g

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Om
On Jul 26, 2012 8:53 AM, "Nicholas Kwiatkowski" wrote: > > Om, et. all, > > I'm set to work on getting something like this to work this evening. I've > got a custom CGI script that will make the entire "select a mirror" thing > easier, but I needs some debugging (I'm waiting for log files). I wi

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Ravindra Bharathi
Could something like the below be included as part of the Flex installer code to parse the mirror site ? *declare the service that'll fetch the url* http://www.apache.org/dyn/closer.cgi/incubator/flex/4.8.0-incubating/apache-flex-sdk-4.8.0-incubating-bin.zip *Fetch the html* from http://

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Carol Frampton
On 7/26/12 12 :04PM, "Daniel Shahaf" wrote: >Try this link: http://www.apache.org/dyn/closer.cgi/incubator/flex/ > >I'm pretty sure there is a query string parameter you can add to make it >do a redirect, too, rather than just tell you what the preferred mirror >is. > >Thanks for asking, > >Dan

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Nicholas Kwiatkowski
Om, et. all, I'm set to work on getting something like this to work this evening. I've got a custom CGI script that will make the entire "select a mirror" thing easier, but I needs some debugging (I'm waiting for log files). I will make sure we have something in place for this. Is something as

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Erik de Bruin
> Your right. I confused the two. If you'd like me to ask infra something > I will. Well, since this one of the first subjects on this list I'm not (so much) confused about, you're still way ahead of me ;-) This is the message I have in mind for the infra list: Hi all, I'm writing on behalf

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Carol Frampton
On 7/26/12 10 :40AM, "Erik de Bruin" wrote: >Carol, > >> I understand the problem. But if it isn't at Apache how do you know >>there >> will be mirrors involved and you will even need to solve the problem? > >With respect, but you seem to be confusing two things: > >1) Hosting of the installer

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Erik de Bruin
Carol, > I understand the problem. But if it isn't at Apache how do you know there > will be mirrors involved and you will even need to solve the problem? With respect, but you seem to be confusing two things: 1) Hosting of the installer for the AIR application that OM build. We're not talking

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Erik de Bruin
> Maybe I'm not clear on the details, but can you load the cgi in AIR's > HTMLLoader and parse out the results? That's the idea, yes. The CGI returns 'text', which is basically a string representation of an URL like 'http://apache.org/mirror1/"; (random example). So the data property of the Loader

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Carol Frampton
On 7/26/12 10 :26AM, "Om" wrote: >It does not matter where we host the installer binary. Erik's proposal >will let the installer load the Flex binaries from the preferred mirror >location. > >The problem we are trying to solve here is how to get that preferred >mirror >url info injected into t

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Alex Harui
On 7/26/12 7:26 AM, "Om" wrote: > It does not matter where we host the installer binary. Erik's proposal > will let the installer load the Flex binaries from the preferred mirror > location. > > The problem we are trying to solve here is how to get that preferred mirror > url info injected i

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Om
It does not matter where we host the installer binary. Erik's proposal will let the installer load the Flex binaries from the preferred mirror location. The problem we are trying to solve here is how to get that preferred mirror url info injected into the installer app. We need to figure this ou

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Erik de Bruin
I see your point, and I'm sure we'll figure out a way to host Om's 'artifact'. What I was working on, however, was a way for the app to collect a random mirror URL once it's running on the end-user's system. The app uses this URL to download the SDK binaries to the user's machine. For this we seem

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Carol Frampton
On 7/26/12 9 :44AM, "Erik de Bruin" wrote: >Carol, > >As this is a utillity/widget, intended to make life easier for >end-users, why can't it be hosted as part of the project site >(site/trunk/flex/installApacheFlexSDK or some such)? Because from what I know that isn't how Apache does things.

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Erik de Bruin
Carol, As this is a utillity/widget, intended to make life easier for end-users, why can't it be hosted as part of the project site (site/trunk/flex/installApacheFlexSDK or some such)? The only thing we want to 'bother' infra with right now is a way to get a 'random' mirror URL, so we don't have

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Erik de Bruin
Om, > If you don't mind, can you please post this approach on > infrastructure-...@apache.org and see if there are any objections? I would love to post the message myself, but according to [1]: "Participation in these lists is only available to ASF committers." This is the message I was going to

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-26 Thread Carol Frampton
On 7/25/12 10 :53PM, "Om" wrote: >Erik, > >This is the closest we have come in terms of a solution to this problem >:-) Lets try to figure out a way to implement and test this. > >If you don't mind, can you please post this approach on >infrastructure-...@apache.org and see if there are any ob

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-25 Thread Om
Erik, This is the closest we have come in terms of a solution to this problem :-) Lets try to figure out a way to implement and test this. If you don't mind, can you please post this approach on infrastructure-...@apache.org and see if there are any objections? Nick, do you think you can implem

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-25 Thread Erik de Bruin
Hi, I think I have the solution figured out, but I have no way of testing it. I'm posting my findings ("steps to reproduce" ;-)) here and attaching my patches to FLEX-33106, for lack of a better 'location'. Here goes: 1. Create 'single-mirror-url.cgi' in the root of the site (i.e. http://incubat

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-25 Thread Om
On Wed, Jul 25, 2012 at 10:02 AM, Erik de Bruin wrote: > Hi, > > I might be able to help with this. Can you host PHP (which is the > language I'm most familiar with)? > > I can call the 'closer-cgi' (whatever that is, I'd have to read up a > bit on the intended functionality) from PHP and return

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-25 Thread Erik de Bruin
Hi, I might be able to help with this. Can you host PHP (which is the language I'm most familiar with)? I can call the 'closer-cgi' (whatever that is, I'd have to read up a bit on the intended functionality) from PHP and return the config XML. I can create a patch for the app as well, allowing i

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-25 Thread Om
On Wed, Jul 25, 2012 at 9:11 AM, Alex Harui wrote: > > > > On 7/25/12 9:05 AM, "OmPrakash Muppirala" wrote: > > > Carol, > > > > I was thinking about this. One way to do this is to resolve the > preferred > > mirror url on the server side and write it to the config xml that the app > > loads on

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-25 Thread Alex Harui
On 7/25/12 9:05 AM, "OmPrakash Muppirala" wrote: > Carol, > > I was thinking about this. One way to do this is to resolve the preferred > mirror url on the server side and write it to the config xml that the app > loads on initialize. > > I am guessing a CGI script or jsp page calls the clo

Re: updating ApacheFlexSDK URL in Om's installer

2012-07-25 Thread OmPrakash Muppirala
Carol, I was thinking about this. One way to do this is to resolve the preferred mirror url on the server side and write it to the config xml that the app loads on initialize. I am guessing a CGI script or jsp page calls the closer-cgi, gets the correct url and populates the config xml. I hand