View Single Post
Old 10-02-2010, 04:22 AM   #216
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Quote:
Originally Posted by AtomicDryad View Post
You make a good point, though something can be said for the meta tag; one only need load the first 1024 bytes of a file. That would only matter for updates on -big- collections though.
That's a good point.
Quote:
Originally Posted by AtomicDryad View Post
I've already changed it to a <div> since I last updated. That seems more flexible.
That works for HTML-only output, but converters for other formats may be confused by a paragraph that doesn't have a <p> tag.
Quote:
Originally Posted by AtomicDryad View Post
The added complexity adds a single boolean check at runtime. The regexp itself is rather simple thing that might serve use as a fallback instead. I'd really like to make sure site parsing is either really robust or easy to adjust, for the inevitable breakage caused by bored fanfiction.net webmasters.
Point. It'll make sense later to write a wrapper function around the two cases, or we'll have to rewrite the USEDOM test at each XPath use.
Quote:
Originally Posted by AtomicDryad View Post
perhaps:
log($level,$str): level would be an int with 0=normal output 1=warn 2=error 3=debugging. This could be configured via
$CONFIG['loglevel']=array(0=>'php://stderr',1=>array('php://stderr','/var/log/whatever'),2=>'/var/log/whatever',3=>NULL); (syntax error in that, likely).
--loglevel 3 on commandline would add php://stderr to everything. One could also add functionality to adjust the level per namespace but that's probably going overboard.
I think we should rather wait for erayd's implementation first, but I expect it'll look about the same.

N.
aleyx is offline   Reply With Quote