Posts

compilation - docker unable to compile program (possibly undefied macro AC_MSG_ERROR) -

i'm trying compile following program inside of docker container. https://github.com/adaptivecomputing/torque when attempting run autoconf given error "possibly undefined macro: ac_msg_error" google has dozens of results exact error. of them solved installing pkg-config or libtool-ltdl as can see docker file, both of packages installed. from centos run yum install -y autoconf make autogen gcc gcc-c++ openssl-devel git libxml2-devel libtool libtool-ltdl run git clone git://github.com/adaptivecomputing/torque.git -b 4.2.6.1 /tmp/pbs_server run cd /tmp/pbs_server run autoconf run ./configure --with-debug run make -j4 run make install here error when running docker build . step 4 : run autoconf configure.ac:50: error: possibly undefined macro: ac_msg_error if token , others legitimate, please use m4_pattern_allow. see autoconf documentation. configure.ac:54: error: possibly undefined macro: am_init_automake configure.ac:57: error: poss...

Django: capturing values in url to generic class view -

so have url: url(r'^mousesmall/(?p<name>.*)/$', idview.as_view()), and view is: class idview(detailview): model = rna template_name = "home/details.html" since i'm using generic view detailview, how pass name value that's captured in url detail view? the base view class detailview inherits sets args , kwargs self.args , self.kwargs respectively in processing. since it's named pattern, should in self.kwargs['name'] .

javascript - After Dropping Collection, Collection is re-made when saving first records, but why aren't its indexes? -

below method dropping mongodb collection. works, after saving first records collection re-created without appropriate indexes. since model has 3 properties unique: true , need indexes created, no duplicates saved. why aren't instances being created, , how auto-create them? model: var objectschema = new schema({ propertyone: { type: string, required: true, unique: true, trim: true }, propertytwo: { type: string, required: true, unique: true, trim: true }, propertythree: { type: string, required: true, unique: true, trim: true } }); method - dropping collection exports.dropcollection = function(collectionname, callback) { console.log("dropping collection: " + collectionname); // drop in collection name string var collection = mongoose.connection.collections[collectionname] collection.drop(function(err) { if (err) { ...

segmentation fault - segfault in c/gtk+3 program -

structs defined inside header: struct info{ gint mode, issignalactivate; gchar *filename; gtkwidget *pwdentry, *pwdreentry, *mainwin, *dialog, *file_dialog; }; extern struct info s_info; struct hashes{ gchar *filename; gtkwidget *entrymd5, *entrys1, *entrys256, *entrys512, *entrywhir, *entryrmd; gtkwidget *checkmd5, *checks1, *checks256, *checks512, *checkwhir, *checkrmd; }; extern struct hashes s_hashtype; and main part of program: int main(int argc, char **argv){ if(!gcry_check_version(gcrypt_min_ver)){ fputs("libgcrypt min version required: 1.5.0\n", stderr); return -1; } gcry_control(gcryctl_init_secmem, 16384, 0); gcry_control(gcryctl_initialization_finished, 0); gtkapplication *app; int status; app = gtk_application_new ("org.gtk.polcrypt",g_application_flags_none); g_signal_connect (app, "startup", g_callback (startup), null); g_signal_connect (app, "activa...

.net - WCF service and interoperability -

i have following wcf service believe can improved. need able support windows , non-windows clients using soap1.1 , soap1.2. my concerns input parameter initdata on api initdatarequest , return parameter of getdata. currently, have development policy parameters constrained xml-formatted strings , client , server responsible serializing/deserializing in respective environments. [servicecontract] public interface iatomdatainterfacewcf { [operationcontract] guid opensession(atomsessiontype sessiontype); [operationcontract] void closesession(guid sessionid); [operationcontract] int initdatarequest(guid sessionid, string initdata); [operationcontract] string getdata(guid sessionid, int count); } using soapui soap request initdatarequest shows following element parameter 'initdata'. <tem:initdata>?</tem:initdata> this bothered our ibm websphere developers expected else. suggested, without guidance, use xsd describe api hence...

uiviewcontroller - how to pop view from stack in tab bar controller in iOS -

i have tabbar controller. in 1 of viewcontroller children check , determine if show login view code: if(loggedin){ }else{ signupviewcontroller *svc = [self.storyboard instantiateviewcontrollerwithidentifier:@"signupview"]; svc.hidesbottombarwhenpushed = yes; [self.navigationcontroller pushviewcontroller:svc animated:yes]; } from here user goes through several subsequent views in wizard format. signupviewcontroller1->signupviewcontroller2->signupviewcontroller3->etc. @rocky pointed out, cannot pop signupviewcontroller1 off stack while in signupviewcontroller2 or 3 or subsequent viewcontroller. i know ios docs state following: if yes, bottom bar remains hidden until view controller popped stack. my question how acccess original signupviewcontroller pop off stack see tabbar again once have moved subsequent views in navigation controller? (the next answer swift, but, can traduce objective-c) i not know, maybe can try that: ...

minix - How can I get the output of ls -

how can output of ls? want add indirection operator =>, , it's function same >, means in command line $ls => files, list of files in directory stored in file files output redirection (and other redirection matter) facility provided shell, not ls program. ls writes output standard output and, if shell has redirected file, that's goes. so, if want add => token, it's shell you're going have modify, recompile , install. that's not easy task, i've made changes bash in past and, while it's relatively easy tinker around edges (i added internal command outputting ps1 result string), suspect redirection may little more difficult. still, may matter of creating new token => , copying code that's executed > . may ash , minix3 shell, lot cleaner bash . advice investigate ash , version found in minix3, , have play.