Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. hydrocomputer

    drawing irregular grid, and trying to debug code in general?

    I am trying to write substantial algorithms in postscript and finding it hard going. There are two questions inherent in this post. First, how can I solve the problem. Second, rather than just giving me the answers, is there any decent way of stepping through postscript code so I can debug it...
  2. hydrocomputer

    Perl - Display Image from Database

    I don't have an answer to your particular problem, but I think it's not the best design approach in the first place. Access is not a very good database, so putting lots of images in it doesn't seem like a very good idea. Instead, I'd suggest storing the name of the image in access, and having...
  3. hydrocomputer

    Display number of matching regex components

    clarification and correction: The above example shows a subroutine call where I pass in a URL, read it, get the resulting text, skip until the first pattern is found, take everything until the last pattern is found, and in between, for each line extract according to a rule and pull the pieces...
  4. hydrocomputer

    Display number of matching regex components

    No, that's not really using the dynamic capture of the pattern. You're not really even using the parens. Here's an example of what I want: splitAfterPattern("http://waterdata.usgs.gov/" . "nwis/uv?dd_cd=07&format=rdb&period=2&site_no=01407081", "^5s\s+", "(\d*.\d+)\s+(\d+)\s+(\w+)"...
  5. hydrocomputer

    Display number of matching regex components

    I want to write a generic web extraction subroutine in perl. To do so, I want to: 1. find the first pattern (easy) 2. toss everything before it (easy) 3. iteratively find successive occurrences of a patten of interest (easy) Then comes the hard part. Given an arbitrary pattern containing...
  6. hydrocomputer

    problem passing parameters?

    Hello, I thought I understood stack programming until I tried postscript. I cannot seem to pass parameters to a named function and get back a result, as in the following example (tested on ghostscript) any help? 0 0 1 setrgbcolor /average {add 2 div} def newpath { 50 150 average % this...

Part and Inventory Search

Back
Top