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...
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...
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...
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+)"...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.