| shorten | randal_schwartz's url is at http://xrl.us/vanm |
| randal_schwartz | overlap = box '((0,0),(1,1))' && box '((0,0),(2,2))' |
| ajit | Is there any standard web UI guidelines like button size should be such etc...If any plz specify url. |
| Daveman | revdiablo, haw! ;D |
| randal_schwartz | plz? is that like "please" but you're paying by the character for IRC? if so, sucks to be you |
| revdiablo | Daveman: That woulda been fun next time I tried to use it I have the backup 1G card, but even so |
| kcbanner | $collision = Math::NumberCruncher::InPolygon( $x, $y, @xy ); ops Given a set of xy pairs (@xy) that define the perimeter of a polygon, returns a 1 if point ($x,$y) is inside the polygon and returns 0 if the point ($x,$y) is outside the polygon. I'm not sure what should be in @xy exactly its not explained well and the source isn't commented at all |
| cfedde | Is typekey a high enough hoop for wiki editors? |
| kcbanner | $self->{bounding} = ($x,$y,$x+$xdim,$y,$x, $y-$ydim,$x+$xdim,$y-$ydim); whats wrong with that...bounding is an array ref |
| randal_schwartz | still be faster to put those all in postgresql |
| kcbanner | I have a feeling my syntax is wrong |
| randal_schwartz | then you could just SELECT id WHERE ? && place; and get the id's of everything that intersects your value |
| kcbanner | randal_schwartz... |
| randal_schwartz | Very Very Fast |
| kcbanner | Very Very Drunk |
| randal_schwartz | Not at all haven't had anything to drink since 3pm |
| Jmax- | eval: $dongs = {}; @dongs->{foo} = ('bar', 'baz'); $dongs |
| buubot | Jmax-: Error: Can't coerce array into hash at eval line 1. |
| Jmax- | yeah didn't think so would it be @{ $dongs->{foo} } # ? |
| snappy | is there a one-liner to read all lines into an array and apply chomp() to the values? |
| randal_schwartz | you want this thing to run fast, right? use the right tool don't do all of that in Perl chomp (my @lines = <>); |
| kcbanner | Jmax-, ah yes :D |
| Jmax- | :) |