Re: On-topic: HTML/JS help please

2010-02-05 Thread David Cantrell
On Fri, Feb 05, 2010 at 05:13:25PM +, Jacqui Caren-home wrote:
> David Cantrell wrote:
> >I want to add a Thingy to CPANdeps to let users collapse/expand portions
> >of the dependency tree.  How would one go about this?
> >Naively wrapping s in s and toggling their style.display
> >doesn't work, presumably because  isn't kosher in a .
> Jquery tree thingy is data driven and works well.

Unfortunately every pre-existing Javascript thingy I've looked at
assumes that I have a simple tree.  I don't, I have a *table*, which has
a hierarchy.

Also, none of them make it obvious that they degrade gracefully for
browsers which support neither CSS nor Javascript.

Anyway, I have something that partially works now:
  http://cpandeps-dev.cantrell.org.uk/?module=Test::Class::Most

with just the *teensy* little bug that if you first collapse a sub-tree
(like, say, that for Test::Exception on that page) and then collapse a
tree that contains it, it Does The Wrong Thing.  Meh, nothing that a
small amount of programming can't fix.

-- 
David Cantrell | Reality Engineer, Ministry of Information

You are so cynical.  And by "cynical", of course, I mean "correct".
 -- Kurt Starsinic


Re: On-topic: HTML/JS help please

2010-02-05 Thread Andy Wardley

On 05/02/2010 14:53, David Cantrell wrote:

   
 +
 this::module
 blahblahblah
   


Add all the dependencies to the .  e.g.

  

Then use jQuery to toggle a .hidden CSS class on all the  elements that
have a particular dependency, like so:

  

Then add a CSS class:

  tr.hidden {
display: none;
  }

That should degrade gracefully on a browser without JS or CSS.

Here's the full thing:


function toggle(module) {
$('tr.depends-' + module.replace(/:+/,'-',1)).toggleClass('hidden');
return false;
}



  
+
this::module
blahblahblah
  
  
+
other::module
 blahblahblah
  
  
+
yet::another::module
blahblahblah
  
  
  
+
Test::More
blahblahblah
  



HTH
A


Re: On-topic: HTML/JS help please

2010-02-05 Thread Jacqui Caren-home

David Cantrell wrote:

I want to add a Thingy to CPANdeps to let users collapse/expand portions
of the dependency tree.  How would one go about this?

Naively wrapping s in s and toggling their style.display
doesn't work, presumably because  isn't kosher in a .



Jquery tree thingy is data driven and works well.

Jacqui


Re: On-topic: HTML/JS help please

2010-02-05 Thread Mark Fowler
2010/2/5 David Cantrell :


> Absolutely!  Although I've come up with an Evil But Workable solution
> now - create really long ids that contain all the possible ids I might
> want to collapse.  Now I just need to fiddle with the toggle function to
> instead of just hiding/showing a single element, do it for all the
> elements whose ids contain a particular substring.

Can't you do this with classes?  Remember you can assign multiple
classes to a element, and then you can just collapse all nodes of a
given class (this is trivial in jQuery)

Mark.



Re: On-topic: HTML/JS help please

2010-02-05 Thread David Cantrell
On Fri, Feb 05, 2010 at 10:36:39AM -0500, Casey West wrote:
> I went to the site for the source code[0] and tried to clone the repo[1] and
> hack on this but I got the following error:
> 
> Initialized empty Git repository in /Users/cwest/src/cpandeps/repo/.git/
> fatal: The remote end hung up unexpectedly

Fixed;

git clone anony...@bytemark.barnyard.co.uk:/git/cpandeps/repo.git

password is anonygit.  I can't persuade Linux to have no password for
that user and for ssh to not ask for it.  

> Is a contribution something you're up for?

Absolutely!  Although I've come up with an Evil But Workable solution
now - create really long ids that contain all the possible ids I might
want to collapse.  Now I just need to fiddle with the toggle function to
instead of just hiding/showing a single element, do it for all the
elements whose ids contain a particular substring.

-- 
David Cantrell | Godless Liberal Elitist

Anyone willing to give up a little fun for tolerance deserves neither


Re: On-topic: HTML/JS help please

2010-02-05 Thread Dominic Thoreau
On 5 February 2010 16:05, Dermot  wrote:
>
> I like Gianni method personally.  It's far more shiny. But here's my
> effort anyway.

>  
>   function toggle(num) {
>       var Tbl = document.getElementById('mytable');
>        var i;
>        for (i = 1; i < Tbl.rows[num].cells.length; ++i) {
>            alert(Tbl.rows[num].cells[i]);
>            Tbl.rows[num].cells[i].style.display = 'none';
>        }
>  }
>  

You're posting on a perl list (a language with an reputation (to
outsiders) for line-noise style cryptic code, and you haven't written
it in JQuery? For shame!

Plus you can probably cut that code down quite a lot, just in
complexity and size.

Seriously, writing JavaScript without an external library is like
using Perl without CPAN. Sure you can, but why? Life's too short for
NIH

-- 
Better to remain silent and be thought a fool than to speak out and
remove all doubt.
-- Abraham Lincoln



Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread Roger Horne
On Friday 05 February 2010, Elizabeth Mattijsen wrote:

> If it would be a co.uk domain, she could probably go to a UK court.  

Nominet has a dispute service. See, eg, http://www.bailii.org/uk/cases/DRS/ . 

> Since 
> this is a .com domain, I think any UK judge will quickly dismiss on the
> grounds that it is an American domain, 
> so that she should go to court in 
> the U.S. of A.  And *that* will prove to become very costly very quickly
> indeed.

Agreed.


Roger


Re: On-topic: HTML/JS help please

2010-02-05 Thread Dermot
On 5 February 2010 15:41, David Cantrell  wrote:
> On Fri, Feb 05, 2010 at 03:14:51PM +, Bob MacCallum wrote:
>
>> 
>> has worked for me in the past.  why do you need to wrap it in a div?
>> is it not standards compliant?
>
> Because on this page, for example:
>  http://deps.cpantesters.org/?module=Data::Compare;perl=latest
>
> the row for Test::More needs to disappear if I collapse the tree for
> either File::Find::Rule or Data::Compare.  So I tried wrapping each row
> in several s, one for each of the needed ids.



I like Gianni method personally.  It's far more shiny. But here's my
effort anyway. This just collapses. You'll need to determine the
current style and act accordingly.
Dp.



http://www.w3.org/1999/xhtml";>
 
 Collapse test

 
   function toggle(num) {
   var Tbl = document.getElementById('mytable');
var i;
for (i = 1; i < Tbl.rows[num].cells.length; ++i) {
alert(Tbl.rows[num].cells[i]);
Tbl.rows[num].cells[i].style.display = 'none';
}
  }
 
 
 

 
   +
   this::module
   blahblahblah
 
 
 +
 other::module
 blahblahblah
 
 
   +
   yet::another::module
   blahblahblah
 
 
 +
 Test::More
 blahblahblah
   

 




Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread Simon Wilcox

On 5/2/10 15:05, mirod wrote:

I'll probably tell her to offer 500 pounds for it, and if they don't 
sell at that price to just use a different domain.



Be careful with that approach. If you believe that they have no claim on 
the domain, offering money for it gives them a defence and weakens your 
claim for infringement.


Having been through this process myself, I think your best route since 
the registrant is based in the UK is:


1. Send a solicitors letter to the registrant claiming infringement and 
requesting transfer within 30 days.


2. If that doesn't work, you can either lodge a complaint with WIPO and 
wait, or give up and not worry about it.


If they make an offer, you can decide whether to accept it or not and 
that comes back to what it's worth to your friend.


S.


Re: On-topic: HTML/JS help please

2010-02-05 Thread Magnus Erixzon
On 5 February 2010 15:41, David Cantrell  wrote:
> On Fri, Feb 05, 2010 at 03:14:51PM +, Bob MacCallum wrote:
>
>> 
>> has worked for me in the past.  why do you need to wrap it in a div?
>> is it not standards compliant?
>
> Because on this page, for example:
>  http://deps.cpantesters.org/?module=Data::Compare;perl=latest
>
> the row for Test::More needs to disappear if I collapse the tree for
> either File::Find::Rule or Data::Compare.  So I tried wrapping each row
> in several s, one for each of the needed ids.

I've found the jsTree jquery plugin quite nice for tree views.
Feed it your data via html, json or xml and you're done.

http://www.jstree.com/demo/basic_html

 /m



Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread the hatter

On Fri, 5 Feb 2010, mirod wrote:


It appears that her brand is unique, which is lucky for a 4 letter word!


In which case, ignore all previous comments on trademark, lawyers and 
apparent cost.  It has a high inherent value just as it is, and a lot of 
people will pay a few thousand pounds just to add it to their portfolio, 
and more if they have a handy use for it.  If your friend wants any 
4-letter domain, she's going to have to spend a lot of cash.



the hatter


Re: On-topic: HTML/JS help please

2010-02-05 Thread Casey West
On Fri, Feb 5, 2010 at 9:25 AM, David Cantrell wrote:

> I want to add a Thingy to CPANdeps to let users collapse/expand portions
> of the dependency tree.  How would one go about this?
>
> Naively wrapping s in s and toggling their style.display
> doesn't work, presumably because  isn't kosher in a .
>

I went to the site for the source code[0] and tried to clone the repo[1] and
hack on this but I got the following error:

Initialized empty Git repository in /Users/cwest/src/cpandeps/repo/.git/
fatal: The remote end hung up unexpectedly

Is a contribution something you're up for? I would be converting your table
to a nested  listing, taking advantage of the value attribute on the
 element to ensure the incriminator doesn't break, such as the
DBIx::Class[2] page.

Cheers,

-- 
Casey West

[0] http://www.cantrell.org.uk/cgit/cgit.cgi/cpandeps/
[1] git://bytemark.barnyard.co.uk/cpandeps/repo.git
[2]
http://deps.cpantesters.org/?module=DBIx%3A%3AClass&perl=any+version&os=any+OS


Re: On-topic: HTML/JS help please

2010-02-05 Thread David Cantrell
On Fri, Feb 05, 2010 at 03:14:51PM +, Bob MacCallum wrote:

> 
> has worked for me in the past.  why do you need to wrap it in a div?
> is it not standards compliant?

Because on this page, for example:
  http://deps.cpantesters.org/?module=Data::Compare;perl=latest

the row for Test::More needs to disappear if I collapse the tree for
either File::Find::Rule or Data::Compare.  So I tried wrapping each row
in several s, one for each of the needed ids.

-- 
David Cantrell | Reality Engineer, Ministry of Information

   When a man is tired of London, he is tired of life
  -- Samuel Johnson


Re: On-topic: HTML/JS help please

2010-02-05 Thread Dominic Thoreau
Actually, that looks like a very good way to do it.

You could build on to this some JQuery to alter the style depending on
what it is now very simply.

On 5 February 2010 15:14, Bob MacCallum  wrote:
> 
> has worked for me in the past.  why do you need to wrap it in a div?
> is it not standards compliant?
>



-- 
Better to remain silent and be thought a fool than to speak out and
remove all doubt.
-- Abraham Lincoln



Re: On-topic: HTML/JS help please

2010-02-05 Thread mirod

David Cantrell wrote:

On Fri, Feb 05, 2010 at 03:01:32PM +, James Laver wrote:

On Fri, Feb 5, 2010 at 2:56 PM, David Cantrell  wrote:

On Fri, Feb 05, 2010 at 02:39:01PM +, James Laver wrote:

On Fri, Feb 5, 2010 at 2:25 PM, David Cantrell  wrote:

Naively wrapping s in s and toggling their style.display
doesn't work, presumably because  isn't kosher in a .

Use  instead?

Can you have multiple s in a table, and can they nest?

Yes, no. To have tbodys inside a tbody would require another table.


Then it won't work, because in the case of very large trees, I want the
user to be able to collapse arbitrary sub-trees, which are nested.  And
putting another table in would reset all the column widths and screw up
the display.



Something like this? http://grouper.ieee.org/groups/detailed_index_s.html

The code maybe a bit more complicated that what you want because the state is 
saved in a cookie (the tree is small enough that the cookie remains within the 
4K maximum size).


It uses nested tables and in order not to screw up the table uses colspans (as 
far as I remember, I wrote this a while back).


Feel free to reuse if you want.

--
mirod


Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread Elizabeth Mattijsen
On Feb 5, 2010, at 4:05 PM, mirod wrote:
> Elizabeth Mattijsen wrote:
>> Considering the price of lawyers, the personal anguish, aggravation and
>> duration of having to go to court, I would go for purchasing the domain if
>> she really needs it that badly.  This goes against anybody's feeling of
>> justice, but you really have to ask yourself if it is worth the it.
> 
> I'll probably tell her to offer 500 pounds for it, and if they don't sell at 
> that price to just use a different domain.
> 
> It's funny how people in different businesses react though, she designs 
> jewelry, and she really, really, hates trademark infringements. Mostly 
> because there is usually not much she can do, what with being small and all.

If it would be a co.uk domain, she could probably go to a UK court.  Since this 
is a .com domain, I think any UK judge will quickly dismiss on the grounds that 
it is an American domain, so that she should go to court in the U.S. of A.  And 
*that* will prove to become very costly very quickly indeed.



Liz


Re: On-topic: HTML/JS help please

2010-02-05 Thread Bob MacCallum

has worked for me in the past.  why do you need to wrap it in a div?
is it not standards compliant?

On Fri, Feb 5, 2010 at 3:01 PM, James Laver  wrote:

> On Fri, Feb 5, 2010 at 2:56 PM, David Cantrell 
> wrote:
> > On Fri, Feb 05, 2010 at 02:39:01PM +, James Laver wrote:
> >> On Fri, Feb 5, 2010 at 2:25 PM, David Cantrell 
> wrote:
> >> > Naively wrapping s in s and toggling their style.display
> >> > doesn't work, presumably because  isn't kosher in a .
> >> Use  instead?
> >
> > Can you have multiple s in a table, and can they nest?
>
> Yes, no. To have tbodys inside a tbody would require another table.
>
> --James
>



-- 
http://darwintunes.org - a test-tube for cultural evolution
http://evolectronica.com - survival of the funkiest
http://compare-stuff.com - confused? you will be!
http://twitter.com/darwintunes
http://twitter.com/bobmaccallum


Re: On-topic: HTML/JS help please

2010-02-05 Thread James Laver
On Fri, Feb 5, 2010 at 3:08 PM, David Cantrell  wrote:
>
> Then it won't work, because in the case of very large trees, I want the
> user to be able to collapse arbitrary sub-trees, which are nested.  And
> putting another table in would reset all the column widths and screw up
> the display.

An easy (albeit hacky) way to do it would be when you're dumping the
table to the page from your perl, for each nested level, generate a
classname such as tree-depth-. Your javascript can parse that out
and use that to determine nesting.

To do it correctly, you're going to have to consider restructuring
your markup somewhat.

--James



Re: On-topic: HTML/JS help please

2010-02-05 Thread Greg Sheard

David Cantrell wrote:

On Fri, Feb 05, 2010 at 02:39:01PM +, James Laver wrote:

On Fri, Feb 5, 2010 at 2:25 PM, David Cantrell  wrote:

Naively wrapping s in s and toggling their style.display
doesn't work, presumably because  isn't kosher in a .

Use  instead?


Can you have multiple s in a table, and can they nest?



Yes and no, in that order. Doesn't seem any easier than toggling the 
.display on the  anyway.


--
Greg


Re: On-topic: HTML/JS help please

2010-02-05 Thread David Cantrell
On Fri, Feb 05, 2010 at 03:01:32PM +, James Laver wrote:
> On Fri, Feb 5, 2010 at 2:56 PM, David Cantrell  wrote:
> > On Fri, Feb 05, 2010 at 02:39:01PM +, James Laver wrote:
> >> On Fri, Feb 5, 2010 at 2:25 PM, David Cantrell  
> >> wrote:
> >> > Naively wrapping s in s and toggling their style.display
> >> > doesn't work, presumably because  isn't kosher in a .
> >> Use  instead?
> > Can you have multiple s in a table, and can they nest?
> Yes, no. To have tbodys inside a tbody would require another table.

Then it won't work, because in the case of very large trees, I want the
user to be able to collapse arbitrary sub-trees, which are nested.  And
putting another table in would reset all the column widths and screw up
the display.

-- 
David Cantrell | Bourgeois reactionary pig

Fashion label: n: a liferaft for personalities
which lack intrinsic buoyancy


Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread mirod

Elizabeth Mattijsen wrote:


Considering the price of lawyers, the personal anguish, aggravation and
duration of having to go to court, I would go for purchasing the domain if
she really needs it that badly.  This goes against anybody's feeling of
justice, but you really have to ask yourself if it is worth the it.


I'll probably tell her to offer 500 pounds for it, and if they don't sell at 
that price to just use a different domain.


It's funny how people in different businesses react though, she designs jewelry, 
and she really, really, hates trademark infringements. Mostly because there is 
usually not much she can do, what with being small and all.


Thanks

--
mirod


Re: On-topic: HTML/JS help please

2010-02-05 Thread James Laver
On Fri, Feb 5, 2010 at 2:56 PM, David Cantrell  wrote:
> On Fri, Feb 05, 2010 at 02:39:01PM +, James Laver wrote:
>> On Fri, Feb 5, 2010 at 2:25 PM, David Cantrell  wrote:
>> > Naively wrapping s in s and toggling their style.display
>> > doesn't work, presumably because  isn't kosher in a .
>> Use  instead?
>
> Can you have multiple s in a table, and can they nest?

Yes, no. To have tbodys inside a tbody would require another table.

--James


Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread mirod

Jason Clifford wrote:

On Fri, 2010-02-05 at 14:29 +0100, mirod wrote:

My friend owns the trademark for the name in Europe, the US and Asia. It is a
very distinct name and a Google search on the name returns only hits related to
her product.

So it looks like a clear case of cyber-squatting to me.


It might be. It depends upon whether the domain name was registered in
bad faith (see http://www.icann.org/en/udrp/udrp-policy-24oct99.htm for
details) or not.





Do bear in mind that Trademark protects a name in relation to a specific
market segment and is not universal so if the current registrant was
using the name in connection with some other market segment or not
commercially and specifically in a manner not likely to cause confusion
as to who was using it your friend might not have a right to try and
take the domain via a DRP.


It appears that her brand is unique, which is lucky for a 4 letter word!
The weird thing though is that whois tells me that the record was created 6 
years ago. That seems a long time for someone to sit on a useless domain name.



I am not sure what she can do about it though. It seems like the only solution
is to go to court, and there have been very few cases that went to trial.


Perhaps the registry operator the domain was registered through (as
shown in the whois record) operates a dispute resolution service
although many of them effectively don't.

WIPO is an option for a dispute on a .com domain but it will be
expensive and slow. It's really designed to accommodate the needs and
desires of larger companies.

If the person who has registered the domain is based in the UK taking
them to court over the matter should not be too hard. If they are
elsewhere you might well have to bring action in a US court which will
be expensive.


The registrar is moniker.com. From a quick look at their website, they seem to 
be very much in the business of providing a market place for domain names. And 
their dispute policy, although quite long, seems to boil down to require the 
involvement of WIPO :--(


The registrant is based in the UK, but my friend is in Italy.

--
mirod


Re: On-topic: HTML/JS help please

2010-02-05 Thread David Cantrell
On Fri, Feb 05, 2010 at 02:39:01PM +, James Laver wrote:
> On Fri, Feb 5, 2010 at 2:25 PM, David Cantrell  wrote:
> > Naively wrapping s in s and toggling their style.display
> > doesn't work, presumably because  isn't kosher in a .
> Use  instead?

Can you have multiple s in a table, and can they nest?

-- 
David Cantrell | Nth greatest programmer in the world

Are you feeling bored? depressed? slowed down?  Evil Scientists may
be manipulating the speed of light in your vicinity.  Buy our patented
instructional video to find out how, and maybe YOU can stop THEM


Re: On-topic: HTML/JS help please

2010-02-05 Thread David Cantrell
On Fri, Feb 05, 2010 at 02:33:17PM +, Dermot wrote:
> On 5 February 2010 14:25, David Cantrell  wrote:
> > I want to add a Thingy to CPANdeps to let users collapse/expand portions
> > of the dependency tree.  How would one go about this?
> >
> > Naively wrapping s in s and toggling their style.display
> > doesn't work, presumably because  isn't kosher in a .
> One way would be to  and change the style.display on all it's children.

I'm struggling to imagine what you mean here.  Perhaps it would help if
I show you what I've done so far (which doesn't work).  This represents
a simple dependency tree:

  this::module
other::module
  yet::another::module
Test::More


  
+
this::module
blahblahblah
  
  

  +
  other::module
  blahblahblah

  
  

  
+
yet::another::module
blahblahblah
  

  
  

  +
  Test::More
  blahblahblah

  


The data in blahblahblah are several columns of a table.  The data
*must* be displayed as a table, and *must* work in any reasonable
browser, including those that don't do CSS - although obviously I don't
expect any fancy stuff like the expanding/collapsing thingy to work in
such primitive browsers.  This is called Degrading Gracefully ;-)

-- 
David Cantrell | even more awesome than a panda-fur coat


Re: On-topic: HTML/JS help please

2010-02-05 Thread Gianni Ceccarelli
On 2010-02-05 David Cantrell  wrote:
> I want to add a Thingy to CPANdeps to let users collapse/expand
> portions of the dependency tree.  How would one go about this?


http://www.w3.org/1999/xhtml";>
 
  Collapse test
  http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js";>
  
   $(document).ready(function() {
$('td.collapse').bind('click',function() {
 $(this).nextAll().toggle();
 $(this).text( $(this).text()=='+' ? '-' : '+' )
});
   });
  
 
 
  
   

 Collapse stuff

   
   
-lorem
-ipsum
-stuf
-more
-etc
   
  
 


-- 
Dakkar - 
GPG public key fingerprint = A071 E618 DD2C 5901 9574
 6FE2 40EA 9883 7519 3F88
key id = 0x75193F88

   Some people are pragmatists, taking things as they come and making
   the best of the choices available. Some people are idealists,
   standing for principle and refusing to compromise. And some people
   just act on any whim that enters their heads. I pragmatically turn
   my whims into principles!  -- Calvin


signature.asc
Description: PGP signature


Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread Dermot
On 5 February 2010 14:28, Elizabeth Mattijsen  wrote:
> On Feb 5, 2010, at 2:29 PM, mirod wrote:
>> I figured some of you might have some information about this: I have a friend
>> who owns a small company. She has a web site, with the .eu suffix, but would
>> like the .com one. That domain is owned by someone in the UK, who is not 
>> using
>> it (its parked on a US server that seems to advertise it as for sale). They 
>> are
>> offering to sell the domain... for several thousand pounds. Actually they 
>> first
>> wanted to sell it for that amount, then said that someone else was 
>> interested in
>> buying it and that even at that price they could not sell it.
>>
>> My friend owns the trademark for the name in Europe, the US and Asia. It is a
>> very distinct name and a Google search on the name returns only hits related 
>> to
>> her product.
>>
>> So it looks like a clear case of cyber-squatting to me.
>>
>> I am not sure what she can do about it though. It seems like the only 
>> solution
>> is to go to court, and there have been very few cases that went to trial.
>>
>> Does anyone have a suggestion on the course of action that might best get
>> results? I fully understand that not everyone here is a lawyer (and the ones 
>> who
>> are probably wouldn't admit it ;--), but maybe someone has been in that
>> situation before.
>

I tend to agree, court proceeding are hellish and costly. However
legal costs are "usually" picked up by the loser in the case. The
alleged squatter will probably be aware of this. It might be worth
your friend spending an hour with a lawyer that specialises in domain
disputes. If the lawyer is persuaded that the case is clear cut, an
initial letter to the opposite side might make them more flexible.
Dp.


Re: On-topic: HTML/JS help please

2010-02-05 Thread James Laver
On Fri, Feb 5, 2010 at 2:25 PM, David Cantrell  wrote:
> I want to add a Thingy to CPANdeps to let users collapse/expand portions
> of the dependency tree.  How would one go about this?
>
> Naively wrapping s in s and toggling their style.display
> doesn't work, presumably because  isn't kosher in a .

Use  instead?

--James



Re: On-topic: HTML/JS help please

2010-02-05 Thread Dermot
On 5 February 2010 14:25, David Cantrell  wrote:
> I want to add a Thingy to CPANdeps to let users collapse/expand portions
> of the dependency tree.  How would one go about this?
>
> Naively wrapping s in s and toggling their style.display
> doesn't work, presumably because  isn't kosher in a .
>

One way would be to  and change the style.display on all it's children.
Dp.



Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread Elizabeth Mattijsen
On Feb 5, 2010, at 2:29 PM, mirod wrote:
> I figured some of you might have some information about this: I have a friend
> who owns a small company. She has a web site, with the .eu suffix, but would
> like the .com one. That domain is owned by someone in the UK, who is not using
> it (its parked on a US server that seems to advertise it as for sale). They 
> are
> offering to sell the domain... for several thousand pounds. Actually they 
> first
> wanted to sell it for that amount, then said that someone else was interested 
> in
> buying it and that even at that price they could not sell it.
> 
> My friend owns the trademark for the name in Europe, the US and Asia. It is a
> very distinct name and a Google search on the name returns only hits related 
> to
> her product.
> 
> So it looks like a clear case of cyber-squatting to me.
> 
> I am not sure what she can do about it though. It seems like the only solution
> is to go to court, and there have been very few cases that went to trial.
> 
> Does anyone have a suggestion on the course of action that might best get
> results? I fully understand that not everyone here is a lawyer (and the ones 
> who
> are probably wouldn't admit it ;--), but maybe someone has been in that
> situation before.

Considering the price of lawyers, the personal anguish, aggravation and 
duration of having to go to court, I would go for purchasing the domain if she 
really needs it that badly.  This goes against anybody's feeling of justice, 
but you really have to ask yourself if it is worth the it.

Yes, there is no justice in this world unless you are willing to put up the 
money (whether that is cash, or the time you need to spent on it that you could 
have used in any other, more fruitful manner).


Liz


On-topic: HTML/JS help please

2010-02-05 Thread David Cantrell
I want to add a Thingy to CPANdeps to let users collapse/expand portions
of the dependency tree.  How would one go about this?

Naively wrapping s in s and toggling their style.display
doesn't work, presumably because  isn't kosher in a .

-- 
David Cantrell | top google result for "topless karaoke murders"

There is no one true indentation style,
But if there were K&R would be Its Prophets.
Peace be upon Their Holy Beards.


Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread mirod

Dominic Thoreau wrote:

On 5 February 2010 13:29, mirod  wrote:

I am not sure what she can do about it though. It seems like the only 
solution is to go to court, and there have been very few cases that went to

trial.

Does anyone have a suggestion on the course of action that might best get 
results? I fully understand that not everyone here is a lawyer (and the

ones who are probably wouldn't admit it ;--), but maybe someone has been in
that situation before.


I work for a domain registry.

Our default policy on this sort of thing is to encourage the two parties
involved to resolve the dispute themselves. If they can't do this, they're
free to and fight at WIPO - who are very very slow to do anything.


The problem in this case is that there is really no incentive for the other
party do do much, beyond lowering their price to try to get some money instead
of getting nothing. It's not like that domain would be of use to any one except
my friend.

Oddly enough though, the price they are asking seems to be more than the cost of
filing a complaint at WIPO.

--
mirod


Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread Jason Clifford
On Fri, 2010-02-05 at 14:29 +0100, mirod wrote:
> My friend owns the trademark for the name in Europe, the US and Asia. It is a
> very distinct name and a Google search on the name returns only hits related 
> to
> her product.
>
> So it looks like a clear case of cyber-squatting to me.

It might be. It depends upon whether the domain name was registered in
bad faith (see http://www.icann.org/en/udrp/udrp-policy-24oct99.htm for
details) or not.

Do bear in mind that Trademark protects a name in relation to a specific
market segment and is not universal so if the current registrant was
using the name in connection with some other market segment or not
commercially and specifically in a manner not likely to cause confusion
as to who was using it your friend might not have a right to try and
take the domain via a DRP.

> I am not sure what she can do about it though. It seems like the only solution
> is to go to court, and there have been very few cases that went to trial.

Perhaps the registry operator the domain was registered through (as
shown in the whois record) operates a dispute resolution service
although many of them effectively don't.

WIPO is an option for a dispute on a .com domain but it will be
expensive and slow. It's really designed to accommodate the needs and
desires of larger companies.

If the person who has registered the domain is based in the UK taking
them to court over the matter should not be too hard. If they are
elsewhere you might well have to bring action in a US court which will
be expensive.





Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread Mark Overmeer
* Dominic Thoreau (domi...@thoreau-online.net) [100205 13:46]:
> On 5 February 2010 13:29, mirod  wrote:
>> I am not sure what she can do about it though. It seems like the only
>> solution is to go to court, and there have been very few cases that
>> went to trial.

> Our default policy on this sort of thing is to encourage the two
> parties involved to resolve the dispute themselves.
> If they can't do this, they're free to and fight at WIPO - who are
> very very slow to do anything.

Same for the Dutch TLD (.nl) : they refuse to play a role in these
disputes and leave it to lawsuits... where it ends-up quite often,
afaik. Difficult when the hijacker of the domain and the owner of the
trademark live in different countries.
-- 
Regards,
   MarkOv


   Mark Overmeer MScMARKOV Solutions
   m...@overmeer.net  soluti...@overmeer.net
http://Mark.Overmeer.net   http://solutions.overmeer.net



Re: Looking for a Perl development position in London

2010-02-05 Thread Egor Shipovalov
If the employer is already a Tier 2 sponsor (many IT firms are), then
it's a quick and straightforward procedure. If not, they need to
become one, which is a few simple steps in theory, but in practice
requires a lawyer.

On Fri, Feb 5, 2010 at 2:01 PM, Smylers  wrote:
> Egor Shipovalov writes:
>
>> CV below.
>>
>> Citizen and resident of Russian Federation currently visiting London.
>> The employer will have to sponsor a work permit under the terms for
>> Tier 2.
>
> What does that involve?
>
> Smylers
> --
> Watch fiendish TV quiz 'Only Connect' (some questions by me)
> Mondays at 20:30 on BBC4, or iPlayer: http://www.bbc.co.uk/programmes/b00lskhg
>


Re: Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread Dominic Thoreau
On 5 February 2010 13:29, mirod  wrote:

> I am not sure what she can do about it though. It seems like the only
> solution
> is to go to court, and there have been very few cases that went to trial.
>
> Does anyone have a suggestion on the course of action that might best get
> results? I fully understand that not everyone here is a lawyer (and the ones
> who
> are probably wouldn't admit it ;--), but maybe someone has been in that
> situation before.

I work for a domain registry.

Our default policy on this sort of thing is to encourage the two
parties involved to resolve the dispute themselves.
If they can't do this, they're free to and fight at WIPO - who are
very very slow to do anything.
-- 
Better to remain silent and be thought a fool than to speak out and
remove all doubt.
-- Abraham Lincoln


Fun Friday afternoon topic: domain name disputes

2010-02-05 Thread mirod

Hi,

I figured some of you might have some information about this: I have a friend
who owns a small company. She has a web site, with the .eu suffix, but would
like the .com one. That domain is owned by someone in the UK, who is not using
it (its parked on a US server that seems to advertise it as for sale). They are
offering to sell the domain... for several thousand pounds. Actually they first
wanted to sell it for that amount, then said that someone else was interested in
buying it and that even at that price they could not sell it.

My friend owns the trademark for the name in Europe, the US and Asia. It is a
very distinct name and a Google search on the name returns only hits related to
her product.

So it looks like a clear case of cyber-squatting to me.

I am not sure what she can do about it though. It seems like the only solution
is to go to court, and there have been very few cases that went to trial.

Does anyone have a suggestion on the course of action that might best get
results? I fully understand that not everyone here is a lawyer (and the ones who
are probably wouldn't admit it ;--), but maybe someone has been in that
situation before.

Thanks

--
mirod




Re: Looking for a Perl development position in London

2010-02-05 Thread Smylers
Egor Shipovalov writes:

> CV below.
> 
> Citizen and resident of Russian Federation currently visiting London.
> The employer will have to sponsor a work permit under the terms for
> Tier 2.

What does that involve?

Smylers
-- 
Watch fiendish TV quiz 'Only Connect' (some questions by me)
Mondays at 20:30 on BBC4, or iPlayer: http://www.bbc.co.uk/programmes/b00lskhg


Catalyst::Engine::Stomp and ErrorCatcher

2010-02-05 Thread Jason Tang
Hi all

Here at work we've got a Catalyst::Engine::Stomp based consumer talking to
ActiveMQ and there's has been some issues of instability. So have been
looking into how we can at least catch some of the obvious ones and
hopefully provide some way of logging what's going on.

Anyway I've been looking at C::E::Stomp and tried to add a try/catch
block to capture that something has gone wrong and email it off to
someone with the error using ErrorCatcher.

Here's what I'm trying in C::E::Stomp in the run method..

# enter loop...
while (1) {
try {
my $frame = $self->connection->receive_frame();
$self->handle_stomp_frame($app, $frame);
} catch ($e) {
$app->error("we are in trouble: $e");
}

last if $ENV{ENGINE_ONESHOT};
}

..I'm abit puzzled as to why this isn't being passed over to ErrorCatcher.
It is dumping something in the logs..

010/02/05 06:42:42 we are in trouble: Error reading command:  at 
/opt/xt/xt-perl/lib/site_perl/5.8.8/Catalyst.pm line 497
Catalyst::error('XT::ActiveMQ::DC', 'FSSB: Error reading command:  at 
/opt/xt/xt-perl/lib/site_per...') called at 
/opt/xt/xt-perl/lib/site_perl/5.8.8/Catalyst/Engine/Stomp.pm line 111

Catalyst::Engine::Stomp::run('Catalyst::Engine::Stomp=HASH(0x1dc34d80)', 
'XT::ActiveMQ::DC', 'i dont matter', 'neither do i', 'HASH(0x1d8de350)') called 
at /opt/xt/xt-perl/lib/site_perl/5.8.8/Catalyst.pm line 2163
Catalyst::run('XT::ActiveMQ::DC', 'i dont matter', 'neither do i', 
'HASH(0x1d8de350)') called at 
/opt/xt/deploy/xtracker/script/xt_activemq_dc_daemon.pl line 101

I don't really know how the internals of Catalyst works so would appreciate
any helpful suggestions.

TIA
Jason
-- 
Jason Tang  - email: ja...@dragor.net - msn: jason-...@dragor.net


Re: [Gllug-Social] [ANNOUNCE] London Perl M[ou]ngers Social - Thursday 2010-02-04 - The Gunmakers, Clerkenwell EC1R 5ET

2010-02-05 Thread Andy Millar
On Thu, 2010-02-04 at 16:21 +, David Cantrell wrote:
> > Thursday 1st April
> 
> which is immediately followed by a four day weekend, so you can't go
> using the excuse "but it's a school night".

"But it's a school night".

Andy



Re: Looking for a Perl development position in London

2010-02-05 Thread mirod

Raphael Mankin wrote:

It's 9 months of full salary more expensive to hire a woman who gets 
pregnant, takes her full maternity leave and then decides not to return to

work. Adding on to this  advertising, time to review CVs, time to interview
and so on, the cost of recruitment can itself run into thousands.



Actually the data I have seems to indicate that the salary does not come 
entirely out of the employer's pocket, but that 92% of it is refunded by the 
government (source: 2004 data from

http://unstats.un.org/unsd/demographic/products/indwm/ww2005/tab5c.htm )

BTW it is quite striking that there are currently 3 countries that do not offer 
any maternity leave: Swaziland, the USA and Australia (

http://en.wikipedia.org/wiki/Parental_leave )

--
mirod