Posts

exchange server - How to get Appointment recurrence in XML format using EWS? -

i working on mail application. want appointment details exchange server account using ews. use scheduler control details of recurrence in xml format. want details of appointment in either xml or in string format. for example, gmail occurance detail test: weekdays, never end meeting recurrence object details: "rrule:freq=weekly;byday=mo,tu,we,th,fr" i use following method appointment. foreach (appointment appointment in service.finditems(wellknownfoldername.calendar, new itemview(int.maxvalue))) { appointment.load(); } can please suggest me appropriate way?

Mysql 5.5 aggregate time intervals -

i have seen plenty of posts how specify time interval. tried use them strange results. table: select value,time mysensor9 order time desc; +-------+---------------------+ | value | time | +-------+---------------------+ | 79 | 2016-01-27 22:19:46 | | 45 | 2016-01-27 22:19:45 | | 5 | 2016-01-27 22:19:44 | | 72 | 2016-01-27 22:19:43 | | 20 | 2016-01-27 22:19:42 | | 92 | 2016-01-27 22:19:41 | ..... i have filled table values every second of month. then try aggregate data of table every 5min/ hour/day/month. when try aggregate average value per day make query: select avg(value),time mysensor9 time > "2015-12-09" group unix_timestamp(time) div (3600*24) order time asc; the results ok: +------------+---------------------+ | avg(value) | time | +------------+---------------------+ | 48.7179 | 2015-12-09 02:13:46 | | 49.4044 | 2015-12-10 02:13:46 | | 49.5001 | 2015-12-11 02:13:46 | | 49.4805 | 2015-12-1...

python - recover the questions related to responses retrieve to ManyToMany -

Image
first model contains questions , answers pages manage issues. my models.py class question(models.model): label = models.charfield(max_length=30) def __str__(self): return self.label class page(models.model): title = models.charfield(max_length=30) def __str__(self): return self.title class reply(models.model): page = models.manytomanyfield(page) question = models.foreignkey(question) user = models.foreignkey(personne) answer = models.charfield(max_length=30) creationdate = models.datetimefield(default=datetime.now()) def __str__(self): return str(self.answer) so managed retrieve answers each page 1 page equal to: 1 visit another: visit 2 etc ... (i go share screenshot) i managed retrieve answers each pages fail see questions corresponding each response page! this views.py def reply(request): replies = reply.objects.all() questions = question.objects.all() logged_user = get_logg...

quartz.net - SchedulerException with Simple Job -

i'm trying started quartz.net 2.0. simple appearing test application failing schedulerexception trigger's related job's name cannot null the code adapted version 2.0 migration guide ischedulerfactory schedfact = new stdschedulerfactory(); ischeduler classsched = schedfact.getscheduler(); classsched.start(); ijobdetail job = jobbuilder.create<classificationjob>() .withidentity("myjob", "my group") .withdescription("my description") .build(); timezoneinfo tzutc = timezoneinfo.utc; datetime starttime; starttime = datetime.utcnow; itrigger trigger = triggerbuilder.create() .withidentity("mytrigger", "my group") .withdescription("my description") .startat(starttime) .withsimpleschedule(x => x.withintervalinseconds(10).repeatforever()) .build(); classsched.schedulejob(trigger); // exception on line why failing? ...

How to handle Intents in Android app when you have Login Activity -

i looking advice when comes handling flows between activities. let's have 2 activities - loginactivity , mainactivity: <activity android:name=".loginactivity" android:configchanges="keyboardhidden|orientation" android:label="@string/app_name" android:launchmode="singletop" android:screenorientation="portrait"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".mainactivity" android:configchanges="keyboardhidden|orientation" android:label="@string/app_name" android:launchmode="singletop" android:screenorientation="portrait" /> now, when application starts, start loginactivity, , if login successful show mainactivity. now, problems start when want handle types of intents. let...

Pareto Frontier generation for multi-objective prob. using openMDAO 1.x? -

i new openmdao framework , using 1.5.0 version. i'm interested in generating pareto front zitzler–deb–thiele's functions using same. i found solution legacy version here uses 'pareto_filter' unable locate same in new version. so, how set multi-objective problem generate pareto front in 1.x version? thanks all. you should able nsga2 pyopt-sparse directly in openmdao. install pyopt-sparse package , openmdao has driver built in let use it. pick nsga2 optimizer. the issue that, if @ source , driver labeled single-objective. should change line true, can specify multiple objectives. we haven't tested nsga2 via pyopt-sparse. might take little bit of hacking around work. if you'd prefer regular pyopt package, should able start our current pyopt-sparse wrapper , make small changes work.

php - how to integrate payumoney payment gateway with codeigniter -

i have developed project booking appointments doctors in html,javascript,php web services(codeigniter framework) both website , mobile app.now iam in need of integration payumoney payment gateway.so please me of step step instructions in code.iam new payment integration. don't take otherwise there no sufficient document payumoney integration in codeigniter in internet in stackoverflow... have solve it... please process step step if have 'user' controller(say user.php) add function payum() or that. adding code bellow function payum() { $userid = $this->ion_auth->get_user_id(); if(is_numeric($userid)) { $this->data['title'] = 'payu money cash deposit'; $this->data['records']= $this->base_model->run_query("select * users id=".$userid ); $this->data['content'] = 'user/payum'; $this->_render_page('user/payum', $this->data); } else { $this-...