Re: A different way to @Import resources

2011-11-02 Thread Taha Hafeez Siddiqi
Hi Thiago

I have seen the implementation but I don't think we use symbols extensively 
because of which it is difficult for people to replace default resources. I 
think it should be the preferred way in any core tapestry component library.

I do agree that with a little tweaking we can get these symbols to serve our 
purpose.

regards
Taha 

On Nov 3, 2011, at 12:04 AM, Thiago H. de Paula Figueiredo wrote:

> On Wed, 02 Nov 2011 16:19:28 -0200, Lenny Primak  
> wrote:
> 
>> Except you can't specify ordering on symbols.
> 
> Nothing that cannot be solved using a perthread service and a new binding 
> implementation . . . :)
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: dev-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: Typo in Documentation

2011-11-02 Thread Bob Harner
I've removed that. It should be reflected on the site within an hour
or two. For some reason Confluence doesn't want to honor the
HTMLcomment tag anymore.

(In any case, adding a space character serves the same purpose of
republishing the static content without material changes.)

On Wed, Nov 2, 2011 at 5:32 PM, Christian Riedel
 wrote:
> did you notice this on http://tapestry.apache.org/?
>
> {HTMLcomment}Trigger page export: 18{HTMLcomment}
>
>
> Am 01.01.2011 um 19:40 schrieb Bob Harner:
>
>> Okay, fixed in the source, should show up in the exported site within a
>> couple hours. Thanks for reporting it!
>> On Jan 1, 2011 1:34 PM, "Taha Hafeez"  wrote:
>>>
>>> Hi
>>>
>>> There is a typo on page
>>>
>>> http://tapestry.apache.org/defining-tapestry-ioc-services.html
>>>
>>> under
>>>
>>> Mutually Dependent Services
>>>
>>> For example, it can be used* it* to break apart untestable monolithic code
>>>
>>> regards
>>> Taha
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: dev-h...@tapestry.apache.org
>
>

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: Typo in Documentation

2011-11-02 Thread Christian Riedel
did you notice this on http://tapestry.apache.org/? 

{HTMLcomment}Trigger page export: 18{HTMLcomment}


Am 01.01.2011 um 19:40 schrieb Bob Harner:

> Okay, fixed in the source, should show up in the exported site within a
> couple hours. Thanks for reporting it!
> On Jan 1, 2011 1:34 PM, "Taha Hafeez"  wrote:
>> 
>> Hi
>> 
>> There is a typo on page
>> 
>> http://tapestry.apache.org/defining-tapestry-ioc-services.html
>> 
>> under
>> 
>> Mutually Dependent Services
>> 
>> For example, it can be used* it* to break apart untestable monolithic code
>> 
>> regards
>> Taha


-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: svn commit: r1195662 - /tapestry/tapestry5/branches/5.3/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/ClassNameLocatorImpl.java

2011-11-02 Thread Howard Lewis Ship
I'm using svn 1.6.15 and git 1.7.6, perhaps that's a factor?

On Wed, Nov 2, 2011 at 12:18 PM, Massimo Lusetti  wrote:
> On Wed, Nov 2, 2011 at 8:13 PM, Howard Lewis Ship  wrote:
>
>> I tend to do this in one window:
>>
>> gitt diff head^ | pbcopy
>>
>> and in the other:
>>
>> pbpaste | patch -p 1
>>
>> pbcopy / pbpaste are Mac commands for interacting with the system paste 
>> buffer
>
> Here I'm having problems with the patch generate by git diff which
> isn't correctly applied with the patch command.
> I've tried some (a lot?) combinations of git diff --no-prefix with
> patch -p0 but no luck.
>
> The code snipped I've pasted produce output like svn diff so it's (at
> least should) finely applied with the patch command.
>
> Cheers
> --
> Massimo
> http://meridio.blogspot.com
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: dev-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: svn commit: r1195662 - /tapestry/tapestry5/branches/5.3/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/ClassNameLocatorImpl.java

2011-11-02 Thread Massimo Lusetti
On Wed, Nov 2, 2011 at 8:13 PM, Howard Lewis Ship  wrote:

> I tend to do this in one window:
>
> gitt diff head^ | pbcopy
>
> and in the other:
>
> pbpaste | patch -p 1
>
> pbcopy / pbpaste are Mac commands for interacting with the system paste buffer

Here I'm having problems with the patch generate by git diff which
isn't correctly applied with the patch command.
I've tried some (a lot?) combinations of git diff --no-prefix with
patch -p0 but no luck.

The code snipped I've pasted produce output like svn diff so it's (at
least should) finely applied with the patch command.

Cheers
-- 
Massimo
http://meridio.blogspot.com

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: svn commit: r1195662 - /tapestry/tapestry5/branches/5.3/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/ClassNameLocatorImpl.java

2011-11-02 Thread Howard Lewis Ship
I tend to do this in one window:

gitt diff head^ | pbcopy

and in the other:

pbpaste | patch -p 1

pbcopy / pbpaste are Mac commands for interacting with the system paste buffer


On Wed, Nov 2, 2011 at 8:44 AM, Massimo Lusetti  wrote:
> On Mon, Oct 31, 2011 at 9:56 PM, Howard Lewis Ship  wrote:
>
>> It's awkward, but gets the job done. Hopefully the only additional
>> change will be to switch over to the final version number.
>
> I'm having hard time managing to get patch out of git that will apply
> cleanly to svn.
>
> Even with your workflow patch is not so happy. I've tried something like:
>
> git diff  --no-prefix EAD~1 HEAD | sed -e "s/^diff --git
> [^[:space:]]*/Index:/" -e
> "s/^index.*/===/"
>> /tmp/patch
>
> which will convert the output to something similar to svn diff but
> without any luck...
>
> It's a pain in the ass ...
>
> Cheers
> --
> Massimo
> http://meridio.blogspot.com
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: dev-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: git/svn interactions

2011-11-02 Thread Thiago H. de Paula Figueiredo
On Wed, 02 Nov 2011 14:26:46 -0200, Igor Drobiazko  
 wrote:



This is the reason why I'm still using svn for svn repos and git for git
repos.


I still don't understand the reasoning behind the refusal of Apache in  
using Git or some other decentralized VCS.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: A different way to @Import resources

2011-11-02 Thread Thiago H. de Paula Figueiredo
On Wed, 02 Nov 2011 16:19:28 -0200, Lenny Primak   
wrote:



Except you can't specify ordering on symbols.


Nothing that cannot be solved using a perthread service and a new binding  
implementation . . . :)


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: A different way to @Import resources

2011-11-02 Thread Lenny Primak
Except you can't specify ordering on symbols. 



On Nov 2, 2011, at 2:15 PM, "Thiago H. de Paula Figueiredo" 
 wrote:

> On Wed, 02 Nov 2011 14:47:57 -0200, Taha Hafeez Siddiqi 
>  wrote:
> 
>> Dear all
> 
> Hi!
> 
>> configuration.add("name", "path");
>> then import it
>> @Import("name")
> 
> Isn't this the same as using symbols for assets, as the @Import annotation 
> expands them?
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: dev-h...@tapestry.apache.org
> 

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: A different way to @Import resources

2011-11-02 Thread Thiago H. de Paula Figueiredo
On Wed, 02 Nov 2011 14:47:57 -0200, Taha Hafeez Siddiqi  
 wrote:



Dear all


Hi!


configuration.add("name", "path");
then import it
@Import("name")


Isn't this the same as using symbols for assets, as the @Import annotation  
expands them?


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: A different way to @Import resources

2011-11-02 Thread Lenny Primak
I like it!



On Nov 2, 2011, at 12:47 PM, Taha Hafeez Siddiqi  
wrote:

> Dear all
> 
> Tapestry has a short coming when it comes to overriding resources. I recently 
> worked on a wordpress plugin and found their method of resource import to be 
> quite useful. 
> 
> You register a resource with a name
> 
> wp_register_script("name", "path");
> 
> Then you include it using
> 
> wp_enqueue_script("name");
> 
> using the same way we can have a service for registering a resource 
> 
> configuration.add("name", "path");
> 
> then import it
> 
> @Import("name")
> 
> The advantages are :- 
> 
> 1) You can override the configuration and so can override any resource.
> 
> 2) You can order the scripts
> 
> 
> I have not perceived the idea but thought of getting some feedback 
> 
> regards
> Taha
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: dev-h...@tapestry.apache.org
> 

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



A different way to @Import resources

2011-11-02 Thread Taha Hafeez Siddiqi
Dear all

Tapestry has a short coming when it comes to overriding resources. I recently 
worked on a wordpress plugin and found their method of resource import to be 
quite useful. 

You register a resource with a name

wp_register_script("name", "path");

Then you include it using

wp_enqueue_script("name");

using the same way we can have a service for registering a resource 

configuration.add("name", "path");

then import it

@Import("name")

The advantages are :- 

1) You can override the configuration and so can override any resource.

2) You can order the scripts


I have not perceived the idea but thought of getting some feedback 

regards
Taha


-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: git/svn interactions

2011-11-02 Thread Igor Drobiazko
This is the reason why I'm still using svn for svn repos and git for git
repos.

On Wed, Nov 2, 2011 at 5:10 PM, Massimo Lusetti  wrote:

> Hi all,
>  Your mileage may vary but the current integration between git and
> svn is a pain in the ass to me.
>
> I've found this snippet which is helping me:
> https://gist.github.com/710219/
>
> Maybe we could commit it in the repo support area... What do you
> think? Certainly we've to take grant for the license... isn't we?
>
> Cheers
> --
> Massimo
> http://meridio.blogspot.com
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: dev-h...@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de


git/svn interactions

2011-11-02 Thread Massimo Lusetti
Hi all,
  Your mileage may vary but the current integration between git and
svn is a pain in the ass to me.

I've found this snippet which is helping me: https://gist.github.com/710219/

Maybe we could commit it in the repo support area... What do you
think? Certainly we've to take grant for the license... isn't we?

Cheers
-- 
Massimo
http://meridio.blogspot.com

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Re: svn commit: r1195662 - /tapestry/tapestry5/branches/5.3/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/ClassNameLocatorImpl.java

2011-11-02 Thread Massimo Lusetti
On Mon, Oct 31, 2011 at 9:56 PM, Howard Lewis Ship  wrote:

> It's awkward, but gets the job done. Hopefully the only additional
> change will be to switch over to the final version number.

I'm having hard time managing to get patch out of git that will apply
cleanly to svn.

Even with your workflow patch is not so happy. I've tried something like:

git diff  --no-prefix HEAD~1 HEAD | sed -e "s/^diff --git
[^[:space:]]*/Index:/" -e
"s/^index.*/===/"
> /tmp/patch

which will convert the output to something similar to svn diff but
without any luck...

It's a pain in the ass ...

Cheers
-- 
Massimo
http://meridio.blogspot.com

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Service alert: tapestry.zones.apache.org/HTTP - Tapestry Demo is CRITICAL

2011-11-02 Thread nagios
*** ASF Nagios ***

Notification Type: PROBLEM
Host: tapestry.zones.apache.org
Address: 140.211.11.200
Service: HTTP - Tapestry Demo
State: CRITICAL
Info: CRITICAL - Socket timeout after 16 seconds

Date/Time: Wed Nov 2 10:30:51 UTC 2011

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org



Service alert: tapestry.zones.apache.org/HTTP - Tapestry Demo is OK

2011-11-02 Thread nagios
*** ASF Nagios ***

Notification Type: RECOVERY
Host: tapestry.zones.apache.org
Address: 140.211.11.200
Service: HTTP - Tapestry Demo
State: OK
Info: HTTP OK HTTP/1.1 200 OK - 4177 bytes in 0.320 seconds

Date/Time: Wed Nov 2 10:40:41 UTC 2011

-
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org