Posts

python - It is possible to run a transmogrifier section after all other have completely run? -

i'm importing content plone using transmogrifier pipeline and, in order fix various aspects images, links , related content, need run section after content has been created , indexed. i need because want use catalog tool in order search content path , use uuid referrer it. is possible using transmogrifier or it's better using other of technologies available, simple upgrade step? i thinking on using pattern similar source section: from collective.transmogrifier.interfaces import isection collective.transmogrifier.interfaces import isectionblueprint class dosomethingattheveryendsection(object): classprovides(isectionblueprint) implements(isection) def __init__(self, transmogrifier, name, options, previous): self.previous = previous def __iter__(self): item in self.previous: yield item item in self.previous: do_something() is idea? yes, idea make postprocess section, problem self.previous ...

linux - "configure: error: mcs Not found" during configure mono-addins on CentOS -

i'm trying install monodevelop 4 on centos 7 described in post: install mono , monodevelop on centos 5.x/6.x , when i'm trying execute ./autogen.sh --prefix=/usr in mono-addins src directory, error: running autoconf ... running ./configure --prefix=/usr ... checking bsd-compatible install... /usr/bin/install -c checking whether build environment sane... yes checking thread-safe mkdir -p... /usr/bin/mkdir -p checking gawk... gawk checking whether make sets $(make)... yes checking whether make supports nested variables... yes checking whether uid '0' supported ustar format... yes checking whether gid '0' supported ustar format... yes checking how create ustar tar archive... gnutar checking whether enable maintainer-specific portions of makefiles... yes checking pkg-config... /usr/bin/pkg-config checking pkg-config @ least version 0.16... yes checking gmcs... no configure: error: mcs not found mcs compiler installed successfully, , if execute mcs --vers...

ruby - Can not install gem 'pg' to deploy rails app to heroku -

i trying deploy rails app heroku , have replaced gem 'sqlite3' gem 'pg'. have done because getting error trying push git heroku saying sqlite3 not supported. whenever try run bundle install error. gem::ext::builderror: error: failed build gem native extension. /users/ipbyrne/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150722-14766-1b3cg9.rb extconf.rb checking pg_config... no no pg_config... trying anyway. if building fails, please try again --with-pg-config=/path/to/pg_config checking libpq-fe.h... no can't find 'libpq-fe.h header *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcd...

symfony remove entity mapping doctrine -

when used " php app/console doctrine:schema:update --dump-sql "; have error: ->[doctrine\dbal\schema\schemaexception] table name 'bissap_forum.category' exists. when used "php app/console doctrine:mapping:info"; have : found 7 mapped entities: [ok] bissap\platformbundle\entity\category [ok] bissap\platformbundle\entity\skill [ok] bissap\platformbundle\entity\advert [ok] bissap\platformbundle\entity\image [ok] bissap\platformbundle\entity\application [ok] bissap\platformbundle\entity\advertskill [ok] bissap\bodyconceptbundle\entity\category so have 2 entities same name ( category ), maybe why, have error, when use " php app/console doctrine:schema:update --dump-sql "?! how can purged entities mapping? have tried set different table name 1 of category entities ? /** * my\category * * @orm\table(name="my_category_table") * @orm\entity */ class category { ... } this way, won...

foreach - What is the proper way in PHP multiple post values as input for MySQL query? -

i make code data post, post contains checkbox selections (multiple selections), , feed these data mysql select. my basic code is: echo "<form action='handler.php' method='post'>"; echo '<input type="checkbox" name="cbtest" value="10">href="details.php?id=10">data 1</a>'; echo '<input type="checkbox" name="cbtest" value="11">href="details.php?id=11">data 2</a>'; echo '<input type="checkbox" name="cbtest" value="12">href="details.php?id=12">data 3</a>'; echo "<input type='submit' name='button' value='some action'>"; echo '</form>'; handler.php contains: $temp = $_post['cbtest']; if(isset($_post['cbtest'])) { foreach ($temp $cbtest){ echo $cbtest."<br>"; } it clear $cb...

c# - GridObjectDataSource DataTable Sorting with parameters -

my trouble not know howto pass events sort datatable. have listed .aspx page, , flow of behind .cs file bindthrottles function. looking simple solution uses datatable. saw other code looked simple used events posted @ end, not sure howto form use. my .aspx page configured as.. <asp:objectdatasource id="gridobjectdatasource" runat="server" selectmethod="bindthrottles" typename="websitenamespace.throttleinterval" sortparametername="sortby"> <selectparameters> <asp:controlparameter controlid="gvthrottles" name="sortdirection" propertyname="sortdirection" /> </selectparameters> </asp:objectdatasource> <asp:gridview id="gvthrottles" allowsorting="true" runat="server" datakeynames="userid" datasourceid="gridobjectdatasource...

schema.org - JSON-LD Create Single Review for Person -

how go creating review person? instance if user, submitted review provided both rating , associated bit of information person's/service provider's quality of service... how should coded using json-ld? think code below how correctly accomplish i'm not certain. if have suggestions, please include code input provide maximum clarity. please keep in mind code below not page lists of ratings rather single page displays rating. person/service single review: <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "review", "itemreviewed": { "@type": "person", "name": "john smith", // person being reviewd }, "reviewrating": { "@type": "rating", "bestrating": "5", "ratingvalue": "3", "worstrating": "1" } "name...