Posts

Acceleo: ecore to Python generator not working -

i started work acceleo weeks ago. have problem, when try start example ecore-to-python-generator described here: ( http://www.acceleo.org/pages/ecore-to-python-generator/en ). because generator isn't available in new version of acceleo, downloaded complete eclipse package acceleo 2.7 here ( http://www.acceleo.org/pages/download-acceleo ). i did on website. after choosing "ecore python" module, asks ecore model. select "org.acceleo.module.pim.ecore.gen.python". if start generation process (by right-clicking on default.chain file , launch), there problem: [resource '/org.acceleo.module.pim.ecore.gen.python/default' not exist.] can tell me, how make simple python code generation?

ruby on rails - Issue with delayed_job gem 2.0.4 -

hi getting following error while executing controller. uninitialized constant delayed i have following code in controller. delayed::job.enqueue(delayedworker.new({:model=>object.class.to_s, :object_id=>object.id,:meth=>:create_suggestion})) delayed_worker.rb contains following code. class delayedworker < struct.new(:options) def perform if obj=object.const_get(options[:model]).find(options[:object_id]) if (options[:para] ? obj.send(options[:meth],options[:para].first) : obj.send(options[:meth])) puts "successfull" else puts "failed" end end end end i using rails 2.3.5 version rails. have run: $ script/generate delayed_job $ rake db:migrate i ran rake jobs:work task. runs successfully, while executing controller getting uninitialized constant related error. any 1 please me on this. thanks in advanced.

c# - How to remove directory from .zip -

i want delete folder inside .zip file. i tried zip.removeentry(meta-inf); but not work how delete? i´m using ioniczip you have use quotation marks, because removeentry expects filename , didn't define meta-inf . you have change code this: zip.removeentry("meta-inf");

vb.net - How to remove letters? -

i wanna ask: have label40.text content of {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z} , have have label39.text change output everytime changes happens. my question how can embed simulation through code? if label39.text = "a" content of label40.text "a" remove , list of alphabets remain alphabetically. i want happen anytime label39.text change value "randomly" example if label39.text = "a,b,c,d,x,z" label40.text = "e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y" this code far dim patterns string patterns = label39.text dim tobefollow string tobefollow = label40.text dim matches matchcollection = regex.matches(patterns, tobefollow) if regex.ismatch(patterns, tobefollow) 'this put code make example end if first of all, note populating patterns , tobefollow variables wrongly (you doing right in other question); should be: patterns = label4...

c++ - reference to a const char*, error C2664: -

i'm looking @ using boost::serialization , trying use string helper given on http://www.ocoudert.com has interface serializecstringhelper(char*& s) : s_(s) {} serializecstringhelper(const char*& s) : s_(const_cast<char*&>(s)) {} i try use helper in following code (getname() returns std::string) bool myutilities::saveseriallibrarytofile(const string& filename, const mylibrary& lib) { bool saved = false; ofstream out(filename, ios::app); if(out.is_open()) { boost::archive::text_oarchive ar(out); const char* str = lib.getname().c_str(); serializecstringhelper helper(str); // serializecstringhelper helper(lib.getname().c_str()); ar & helper; saved=true; } return saved; } which compiles fine, if replace const char* str , helper lines commented out code, compilation error c2664: cannot convert parameter 1 'const char *' 'char *&' my question is, why single...

xml - Xpath count number of element with different id and return parent id -

i have following xml <pizzeria> <menu> <pizza codice="p1" nome="marinara" prezzo="3"/> <pizza codice="p2" nome="margherita" prezzo="4"/> <pizza codice="p3" nome="prosciutto" prezzo="5"/> <pizza codice="p4" nome="prosciutto e funghi" prezzo="5.5"/> <pizza codice="p5" nome="crudaiola" prezzo="7"/> <pizza codice="p6" nome="tartufo" prezzo="8"/> </menu> <tavoli> <tavolo id="t01"> <pizza codice="p5" qta="2"/> <pizza codice="p1" qta="1"/> <pizza codice="p2" qta="3"/> </tavolo> <tavolo id="t02"> <pizza co...

gitweb - setup git server/web with lighttpd: gives ...git-upload-pack not found -

i've setup lighttpd , gitweb. created empty repository follows: $server> git --version git version 1.7.11.7 $server> git --bare init p1 $server> cd p1 $server> git update-server-info $server> cd .. $server> chown -r lighttpd:lighttpd p1 in browser can browse repository, when try clone command line get: $> git clone https://example.com/git/project.git p1 cloning 'p1'... fatal: https://example.com/git/project.git/info/refs?service=git-upload-pack not found: did run git update-server-info on server? and, maybe helps, here lighttpd configuration alias.url += ( "/static/gitweb.css" => "/var/www/git/static/gitweb.css", "/static/git-logo.png" => "/var/www/git/static/git-logo.png", "/static/git-favicon.png" => "/var/www/git/static/git-favicon.png", "/static/gitweb.js" => "/var/www/git/static/gitweb.js", "/git" ...