ok - getting on with this (at another sprint).<br><br>reckon we should have something up and running soon - will post back here with progress...<br><br><div class="gmail_quote">On 27 October 2011 19:28, adam hyde <span dir="ltr"><<a href="mailto:adam@flossmanuals.net">adam@flossmanuals.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">no i think you can write it without bookipublisher...the script i sent you was part of the worker.php script that is run by gearman...you can forget gm and just run the script by cron<br>
<br>
adam<br>
<br>
adam<div><div class="h5"><br>
<br>
On 27/10/11 19:21, Michael McAndrew wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hey,<br>
<br>
Thanks for the guidance. That sounds fun and I am willing to do that.<br>
<br>
Correct me if I am wrong, but I'm thinking that I would need a local<br>
bookipublisher install to develop this script effectively.<br>
<br>
If so, sounds like I should install that on ubuntu. So wrt<br>
dependencies, they have a few gearman packages. any advice on which one<br>
I need?<br>
<br>
PS. I will start publisher INSTALL readme as part of this.<br>
<br>
Michael<br>
<br>
<br>
p gearman - A distributed job queue<br>
p gearman-job-server - Job server for the Gearman distributed job queue<br>
p gearman-server - Gearman distributed job server and Perl interface<br>
p gearman-tools - Tools for the Gearman distributed job queue<br>
v gearman-worker -<br>
p libgearman-client-async-perl - Asynchronous client for gearman<br>
distributed job system<br>
p libgearman-client-perl - Client for gearman distributed job system<br>
p libgearman-dbg - Debug symbols for the Gearman Client Library<br>
p libgearman-dev - Development files for the Gearman Library<br>
p libgearman-doc - API Documentation for the Gearman Library<br>
p libgearman-server-dev - Development files for the Gearman Server<br>
Library<br>
p libgearman-server0 - Library providing Gearman server functions<br>
p libgearman2 - Library providing Gearman client and worker functions<br>
<br>
<br>
<br>
<br>
On 27 October 2011 12:51, adam hyde <<a href="mailto:adam@flossmanuals.net" target="_blank">adam@flossmanuals.net</a><br></div></div><div class="im">
<mailto:<a href="mailto:adam@flossmanuals.net" target="_blank">adam@flossmanuals.net</a>><u></u>> wrote:<br>
<br>
actually wget is good for epub and pdf but now i think of it, not<br>
good for templated html...i need to write up how to use it as you<br>
are the first but good timing as maybe sahana etc want to use it<br>
too. , so :<br>
<br>
wgets for pdf and epub are:<br>
<br></div>
<a href="http://objavi.booki.cc?book=__civicrm&server=booki.__flossmanuals.net&mode=web" target="_blank">http://objavi.booki.cc?book=__<u></u>civicrm&server=booki.__<u></u>flossmanuals.net&mode=web</a><br>
<<a href="http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=web" target="_blank">http://objavi.booki.cc?book=<u></u>civicrm&server=booki.<u></u>flossmanuals.net&mode=web</a>>";<br>
<br>
<a href="http://objavi.booki.cc?book=__civicrm&server=booki.__flossmanuals.net&mode=epub" target="_blank">http://objavi.booki.cc?book=__<u></u>civicrm&server=booki.__<u></u>flossmanuals.net&mode=epub</a><div class="im">
<br>
<<a href="http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=epub" target="_blank">http://objavi.booki.cc?book=<u></u>civicrm&server=booki.<u></u>flossmanuals.net&mode=epub</a>>";<br>
<br>
for getting templated html you can look at this file in bookipublisher:<br></div>
<a href="https://github.com/esetera/__BookiPublisher/blob/master/__plugins/getbookgears/worker.__php" target="_blank">https://github.com/esetera/__<u></u>BookiPublisher/blob/master/__<u></u>plugins/getbookgears/worker.__<u></u>php</a><div class="im">
<br>
<<a href="https://github.com/esetera/BookiPublisher/blob/master/plugins/getbookgears/worker.php" target="_blank">https://github.com/esetera/<u></u>BookiPublisher/blob/master/<u></u>plugins/getbookgears/worker.<u></u>php</a>><br>
<br>
specifcally my_getbook_function - look at this and if you have the<br>
motivation, make this a standalone php script (just this function)<br>
and use this then commit it to bookipublisher in the scripts dir so<br>
others could use it<br>
<br>
§url in the code for civi it would be:<br>
<br></div>
"<a href="http://objavi.booki.cc?book=__civicrm&server=booki.__flossmanuals.net&mode=__templated_html" target="_blank">http://objavi.booki.cc?book=_<u></u>_civicrm&server=booki.__<u></u>flossmanuals.net&mode=__<u></u>templated_html</a><div class="im">
<br>
<<a href="http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=templated_html" target="_blank">http://objavi.booki.cc?book=<u></u>civicrm&server=booki.<u></u>flossmanuals.net&mode=<u></u>templated_html</a>>",<br>
<br>
to use your own template you must append :<br>
&html_template=$template<br>
<br>
where $template is the url of a template file<br>
<br>
template file must be file with following in it:<br>
<content-goes-here /><br>
<menu-goes-here/><br>
<br>
you can omit the template parameter when testing and you get the default<br>
<br>
adam<br>
<br>
<br>
<br>
<br>
On 27/10/11 18:30, Michael McAndrew wrote:<br>
<br>
hey there,<br>
<br>
cheers - is 'wget on a cron' documented somewhere?<br>
<br>
i'm on irc at the mo if that is easier<br>
<br>
On 27 October 2011 12:29, adam hyde <<a href="mailto:adam@flossmanuals.net" target="_blank">adam@flossmanuals.net</a><br>
<mailto:<a href="mailto:adam@flossmanuals.net" target="_blank">adam@flossmanuals.net</a>><br></div>
<mailto:<a href="mailto:adam@flossmanuals.net" target="_blank">adam@flossmanuals.net</a> <mailto:<a href="mailto:adam@flossmanuals.net" target="_blank">adam@flossmanuals.net</a>><u></u>>__><div><div class="h5">
<br>
wrote:<br>
<br>
actually...i would just use wget on a cron for one book...<br>
<br>
for bookipublisher you need php 5.3 and gearman the php que<br>
mananger...<br>
<br>
adam<br>
<br>
<br>
On 27/10/11 17:11, Michael McAndrew wrote:<br>
<br>
Hi there,<br>
<br>
Trying to get the civicrm book on <a href="http://book.civicrm.org" target="_blank">book.civicrm.org</a><br>
<<a href="http://book.civicrm.org" target="_blank">http://book.civicrm.org</a>><br>
<<a href="http://book.civicrm.org" target="_blank">http://book.civicrm.org</a>><br>
<<a href="http://book.civicrm.org" target="_blank">http://book.civicrm.org</a>> nicely formatted with our css etc.<br>
<br>
<br>
I'm presuming bookipublisher is the tool to do this and I'm<br>
trying to<br>
install it. Happy to write INSTALL in the git repo.<br>
Not sure<br>
where to<br>
start :)<br>
<br>
I looked in config.inc.php. looks pretty reasonable.<br>
<br>
I ran db_init.sh and db_import.sh and both said done,<br>
though i<br>
noticed<br>
that booki.sqlite is zero bytes.<br>
<br>
Not sure what to do now?<br>
<br>
Michael<br>
<br>
--<br>
Michael McAndrew<br>
<br>
tel: 020 7183 5828<br>
mob: 07817 802299<br>
<br>
Third Sector Design Ltd.<br>
<a href="http://thirdsectordesign.org" target="_blank">http://thirdsectordesign.org</a><br>
<br>
<br>
<br></div></div>
______________________________<u></u>_____________________<div class="im"><br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<mailto:<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.<u></u>flossmanuals.net</a>><br></div>
<mailto:<a href="mailto:Discuss@lists." target="_blank">Discuss@lists.</a>__<a href="http://flossmanuals.net" target="_blank">flossm<u></u>anuals.net</a><br>
<mailto:<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.<u></u>flossmanuals.net</a>>><br>
<a href="http://lists.flossmanuals.net/____listinfo.cgi/discuss-____flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>____listinfo.cgi/discuss-____<u></u>flossmanuals.net</a><br>
<<a href="http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net" target="_blank">http://lists.flossmanuals.<u></u>net/__listinfo.cgi/discuss-__<u></u>flossmanuals.net</a>><br>
<<a href="http://lists.flossmanuals." target="_blank">http://lists.flossmanuals.</a>__<u></u>net/listinfo.cgi/<a href="http://discuss-__flossmanuals.net" target="_blank">discuss-__<u></u>flossmanuals.net</a><br>
<<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.<u></u>net/listinfo.cgi/discuss-<u></u>flossmanuals.net</a>>><br>
<br>
______________________________<u></u>_____________________<div class="im"><br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<mailto:<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.<u></u>flossmanuals.net</a>><br></div>
<mailto:<a href="mailto:Discuss@lists." target="_blank">Discuss@lists.</a>__<a href="http://flossmanuals.net" target="_blank">flossm<u></u>anuals.net</a><br>
<mailto:<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.<u></u>flossmanuals.net</a>>><br>
<a href="http://lists.flossmanuals.net/____listinfo.cgi/discuss-____flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>____listinfo.cgi/discuss-____<u></u>flossmanuals.net</a><br>
<<a href="http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net" target="_blank">http://lists.flossmanuals.<u></u>net/__listinfo.cgi/discuss-__<u></u>flossmanuals.net</a>><br>
<br>
<<a href="http://lists.flossmanuals." target="_blank">http://lists.flossmanuals.</a>__<u></u>net/listinfo.cgi/<a href="http://discuss-__flossmanuals.net" target="_blank">discuss-__<u></u>flossmanuals.net</a><div>
<div class="h5"><br>
<<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.<u></u>net/listinfo.cgi/discuss-<u></u>flossmanuals.net</a>>><br>
<br>
<br>
<br>
<br>
--<br>
Michael McAndrew<br>
<br>
tel: 020 7183 5828<br>
mob: 07817 802299<br>
<br>
Third Sector Design Ltd.<br>
<a href="http://thirdsectordesign.org" target="_blank">http://thirdsectordesign.org</a><br>
<br>
<br>
<br>
______________________________<u></u>___________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<mailto:<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.<u></u>flossmanuals.net</a>><br>
<a href="http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>__listinfo.cgi/discuss-__<u></u>flossmanuals.net</a><br>
<<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.<u></u>net/listinfo.cgi/discuss-<u></u>flossmanuals.net</a>><br>
<br>
______________________________<u></u>___________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a> <mailto:<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.<u></u>flossmanuals.net</a>><br>
<a href="http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>__listinfo.cgi/discuss-__<u></u>flossmanuals.net</a><br>
<<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.<u></u>net/listinfo.cgi/discuss-<u></u>flossmanuals.net</a>><br>
<br>
<br>
<br>
<br>
--<br>
Michael McAndrew<br>
<br>
tel: 020 7183 5828<br>
mob: 07817 802299<br>
<br>
Third Sector Design Ltd.<br>
<a href="http://thirdsectordesign.org" target="_blank">http://thirdsectordesign.org</a><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>listinfo.cgi/discuss-<u></u>flossmanuals.net</a><br>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>listinfo.cgi/discuss-<u></u>flossmanuals.net</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Michael McAndrew<br><br>tel: 020 7183 5828<br>mob: 07817 802299<br><br>Third Sector Design Ltd.<br><a href="http://thirdsectordesign.org" target="_blank">http://thirdsectordesign.org</a><br>
<br>