Posts

Showing posts from April, 2012

jgit - How do I add an unchanged file to git index -

i writing tool has keep history of (generated) files in git repository. one of requests must able take whatever generated in specific commit , replay branch. on surface, looks cherry-picking, there nuances make little bit different. each commit generates set of files working tree. files may exist in working tree, , quite often, generated content unchanged version in working tree. at later time, must able take list of files generated previous commit (regardless whether content changed or not) , copy branch. my first question is: can add file git index (and commit) if content has not changed? if have muck around git internals that, still okay. need sure not break git repo other git tools. i using java , open source jgit library interacting git repository, second question is, if possible in jgit if yes, api pointers appreciated. thanks. to answer explicit question - if file existed in previous commit, , content has not changed @ (although metadata may have)...

matplotlib - Python pyplot.hist ignores range if it is larger than dataset? -

i making histograms variety of datasets , want them use same bins comparable. seems if bin distribution large dataset, however, hist ignores range , makes smaller one. example: x=[random.randrange(1,10) _ in xrange(1000)] plt.hist(x, 50, range=[0, 100]) plt.show() i 5 bins 0-10 instead of 50 0-100. assume missing obvious else parameter? thanks! in [37]: plt.hist(x, 50, range=[0,100]) out[37]: (array([ 103., 228., 233., 228., 208., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]), array([ 0., 2., 4., 6., 8., 10., 12., 14., 16., 18., 20., 22., 24., 26., 28., 30., 32., 34., 36., 38., 40., 42., 44.,...

sapui5 - Control property/aggregation updates and re-rendering -

if update property or aggregation on control how prevent rerendering? for example, if add member aggregation, want render new member, not full rerender. looking general advice... you can if custom control. in custom control, provide new method add's delta part , renders (you can use jquery). the new method should add aggregation, should not trigger re-rendering. check add aggregation method definition addaggregation(saggregationname, oobject, bsuppressinvalidate?) the bsuppressinvalidate if true, control doesn't re-render. example: customcontrol.prototype.addnewimage(img){ // code manipulate dom , add image //... //... this.addaggregation(saggregationname, img, false) } hope helps

python - OpenERP-7 KeyError: 'id' when returning dictionary values -

i have been working on openerp module development .today faced difficulties while returning dictionary values many2one field. did thing before time having keyerror when try load openerp server.i checked query working fine , bringing exact ids , names on returning getting issue. using query fetch ids , trying return them. python code : import time lxml import etree openerp.osv import fields, osv openerp import tools class deg_form(osv.osv): _name = "product.product" _inherit = "product.product" _columns = { 'categ_temps':fields.many2one('product.category','parent'), 'categ_temps':fields.function(myfunc_name, type="selection",string="parent", method=true, store=true), 'categ_temp2':fields.many2one('product.category','category'), 'categ_temp3':fields.many2one('product...

c# - Dynamically sequence GPS points along a road -

i storing gps points along index -- reference these points in question gps[0], gps[1], gps gps location , [n] index in array of gps locations. here how going storing locations (in example array contains 11 locations): gps[0] = start of road - @ first index gps[10] = end of road - @ last index gps[ 1 - 9 ] = points in between start , end of road note: not of [ 1 - 9 ] points captured @ same time example gps[1] , gps[2] may captured on monday , gps[3] may captured on wednesday , gps[ 4 - 9 ] may captured month now. if not captured... ignored. additionally, gps location may captured "out of sequence"... mean "out of sequence" is, points captured along road, not in same order encounter them when traveling down road start end. which leads me questions in algorithm : ( note 'map api' software / service has mapping api ) //--- there map api this? set currentpoint = map.api.findpoint( gpsarray[0] ) //--- there map api this? set en...

c++ - C function to exercise as many registers as possible -

i'm writing test suite assembler stub on multiple cpu architectures. stub meant pass arguments c callback. i have written tests cover multiple scenarios (eg passing struct value, mixing arguments of different native size, mixing float args ints etc) , test callback something use lots of registers/stack slots etc. the idea try , flush out implementations working fluke (eg value not correctly put on stack, happens still in register away etc). can recommend piece of c/c++ can use test here? realise register use varies wildly across architectures , there's no guarantee @ complete coverage, nice have gave reasonable amount of confidence. thanks there nothing in c/c++ standards here. reliable way way compiler writers it. study code compiler generates , think ways break it. having said that, can think of strategies might flush out common problems. make calls lots of different combinations of argument types , numbers. example, function single argument or retur...

css - Combine @media with javascript to set display none/block -

i have div panel somewhere on page should hidden when window size gets small. works fine using css: #panel {display: block; } @media (max-width: 1000px) { #panel { display: none; } } there rule displays button should make #panel visible onclick. #panel {display: block; } #button {display: none; } @media (max-width: 1000px) { #panel { display: none; } #button {display: block; } } the javascript looks this: $("#button").click(function() { $("#panel").toggle(); }); there other rules make panel appear friendlier... no need explain this. problem is: when once clicked button , changed display state of panel on , off again. means display:none property set javascript, panel not displayed again when resize window > 1000px. default style of panel not applied, if create rule @media(min-width: 1000px) .. js seems have priority.. best way combine media queries , js? you add event listener window resize event forces panel visible when win...

Wix - Uninstall another product another context, redistribute MFC -

we want have installer must : remove product b (we know product guid) redistribute mfc 2008, 2010 , 2012 write registry entries in hklm b installed per-user. since in our current implementation redistributes mfc using merge modules, installs per-machine. therefore majorupgrade same upgrade code doesn't work. tried running script "msiexec /x {product guid of b} /q" custom action during installation of a, windows has mutex (_msiexecute) allows 1 execute sequence per machine; therefore idea doesn't work too. our ideas : redistribute mfc using way merge modules, , install per-user (even if writes in hklm, yes know it's bad practice, simple implement) implement installer of bootstrapper/chainer (and therefore installer of file setup.exe) , run uninstall command after execution of msi what suggestions ? finally found solution : write program (in c# .net 3.5 example) install a. if install succeed, uninstall b. sure c# .net 3.5 installed o...

java - How to make an image zoom with respect to its frame (ImageJ) -

so thought ask new question extension of old question. able contents out imagej window jinternal frame inside desktop pane. image not zoom frames size enlarged. have found couple of ways using zoom class in imagej not scale fit frame. wondering if knows doing wrong. zoom in working , zoom out set zoom , scale zoom don't work , have no idea why. thank in advance. here part of code: public class customgui extends imagewindow implements internalframelistener, componentlistener, actionlistener{ public customgui(imageplus imp, string title, jdesktoppane desktop, final jmenuitem save, jwindow win, jmenuitem fft) { super(imp); // todo auto-generated constructor stub setcall(); img = imp; save.setenabled(true); fft.setenabled(true); //this.title = title; this.win = win; this.fft = fft; this.save = save; jpanel panel = new jpanel(); imagecanvas c = new imagecanvas(imp); c....

HTML5 geolocation watchPosition getting called just once -

i creating android application using html 5 , want access latlong user user moves. have used watchpostion isgiving me user location once. var watchid; var geoloc; function showlocation(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; var ll=new google.maps.latlng(latitude, longitude); map.setcenter(ll); console.log("latitude : " + latitude + " longitude: " + longitude); } function errorhandler(err) { if(err.code == 1) { console.log("error: access denied!"); }else if( err.code == 2) { console.log("error: position unavailable!"); } } if(navigator.geolocation){ // timeout @ 60000 milliseconds (60 seconds) var options = {timeout:60000}; geoloc = navigator.geolocation; watchid = geoloc.watchposition(showlocation, errorhandler, options); }else{ con...

c++ - How can I find the largest quadrangle -

Image
how can find largest quadrangle in case? in attached image can see have (in left) , wantto (in rigth). this code won't work because largest rectangle has crosses instead of corners. int gamecontroller::getindexofexternalcontour(vector<vector<point>> contours) { int largest_area=0; int largest_contour_index=0; for( int = 0; i< contours.size(); i++ ) // iterate through each contour. { double = contourarea(contours[i], false); // find area of contour if(a > largest_area) { largest_area = a; largest_contour_index = i; //store index of largest contour } } i wanted add convexity defects approach. find largest contour, defect points, connect extremes. // stl #include <algorithm> #include <iterator> #include <limits> using namespace std; // cv #include <opencv2/opencv.hpp> using namespace cv; int main() { mat sample = imread("path/to/sample.jpg...

r - Change size of image with a slider in Shiny -

Image
goal: make image change size in response moving slider in shiny (rstudio). think zoom-in-zoom-out effect. problem: there's error saying "error in basename(imageinfo$src) : character vector argument expected". can't find directly answers question , i'm not sure else try. problem how sliderinput used input$slider in server.r? my current progress: rational set slider in ui.r file , have width of image input in server.r file. the ui.r part: shinyui(fluidpage( titlepanel("nancy's brainstorming"), sidebarlayout( sidebarpanel( h3( strong("what this?", style = "font-si24pt")), p("this pilot project."), sliderinput("slider", label = "", min = 100, max = 300, value = 200), imageoutput("logo", width = 200) ) ) )) the server.r part: shinyserver(function(input, output) { output$logo = renderimag...

ruby - Upgrading to Rails 4.1 from 4.0, now all tests are broken -

i upgraded rails version 4.1.1 4.0.4. whenever run rake test every test having error: activerecord::statementinvalid: pg::undefinedtable: error: relation "roles_users" not exist line 1: delete "roles_users" ^ : delete "roles_users" my user controller has , belongs many roles has_and_belongs_to_many :some_names, class_name: "role", join_table: "some_names_users" so should not looking roles_users table, seems in fixtures tests. i using minitest 5.3.4. not using gem turn. this bug in rails 4.1; it's been fixed , i'd expect part of next release (4.1.2). in mean time, might able use 4-1-stable branch: gem 'rails', github: 'rails/rails', branch: '4-1-stable' github issues: habtm join_table option not recognized in fixtures fix use custom join table in habtm

css - Percentage width mega menu plus standard drop down on the one html list -

long time reader via google searches, first time poster. i trying implement percentage width mega menu plus standard pixel width drop down menu on 1 html list. (i want mega menu width percentage based work in responsive layouts , happy works.) i can't seem them work together. here fiddle: http://jsfiddle.net/eavjt/ if set position static on top level li link in example 1 in fiddle, mega menu works fine, standard drop down breaks (its not vertical). #menu li { float: left; list-style: none; margin: 0; padding: 0; position: static; } if set position relative on top level li link in example 2 in fiddle, standard drop down works fine (its vertical expected), mega menu breaks (it gets squished width of top level parent link). #menu li { float: left; list-style: none; margin: 0; padding: 0; position: relative; } i tried changing static , relative top level links using different classes not seem viable height of mega menu added bottom of page. i totally stumped. an...

set value button to a text box then move to the next one jquery -

i have 2 buttons , 2 text fields. i want click on button value button , set value of text field , move other text. i have made value fill don't know how move next textbox here code can make button value on first textbox , not on second 1 <script> $(document).ready(function(){ $('button').click(function() { var btnv = this.value; $('#test1').val(this.value); }); }); </script> </head> <body> <div data-role="page" id="page"> <div data-role="content"> <div> <input type="text" id="test1" value="" disabled > <input type="text" id="test2" value="" disabled> <button id="btn1" value="v">bn1</button> <button id="btn2" value="r" >bn2</button> </div> </div> </body> if using jquery, in click event handler button add followi...

javascript - AngularJS: Two-way data binding not finding model in Controller -

i writing directive used @ multiple places. the requirement controller using directives have own model budgetcategories . my controller looks function budgetcontroller($scope, budget, category) { $scope.budgetcategories = []; } and directive looks angular.module('categorylistingdirective', []).directive('categorylisting', function (category) { return { restrict: 'a', replace: true, require: true, scope: { budgetcategories: '=' }, templateurl: '../static/partials/categorylistingform.html', link: function (scope, element, attrs) { scope.recurring = true; scope.allparentcategories = undefined; scope.categories = category.query(function () { scope.allparentcategories = _.uniq(scope.categories, function (category) { return category.parent; }); conso...

xslt 2.0 - Comparing to two lists -

this long, long question. apologies. my xslt not bad can see reputation. i've been struggling day solve coding problem , have, in end, come solution don't it. it seems me have managed code procedural solution in functional language , welcome more elegant, cleaner solutions more in spirit of xslt. i doing data reconciliation exercise between 2 computer systems holding similar data. the data in question public transport routes, each route consisting of list of points e.g. <routes> <route id="1"> <point id="1"/> <point id="2"/> <point id="3"/> <point id="4"/> <point id="5"/> </route> </routes> none of id's simple, incrementing integers in reality of course. for 'business reasons' route may appear in other system as <ro...

mongodb - Get the followers list and wether the current user follows them or not -

i'm trying achieve following cheapest cost , best performance: (please think of millions of documents): have collection : followhip { “followee”: 12345, “follower”: 54321, “start”: isodate(“2013-08-21t12:34:00”), “last”: isodate(“2013-08-23t06:00:00”), “end”: isodate(“2013-08-23t07:50:23”) } last last scan date when follower following followee on profile page, followers (limited 10) , want check if current user follows followers. naive solution query foreach follower , criteria : 'follower' = current user , 'followee' = follower , if result empty , return false, else true. my question : there better solution ? map reduce or , i'm newbie in mongodb , maybe can me here lot you can use $in operator don't have make ten queries, one, e.g. // currentprofile.displayedfollowerids = [ 32434, 54354, 656536, ... ] db.followers.find( { followee : currentuser.id, follower: {$in : currentprofile.disp...

Regex match_all phrase or tag inside another tag using mask? -

i have html like: <html> <span class="b-serp-url__item">newdomain.com</span> <span class="b-serp-url__item">usa</span> <span class="b-serp-url__item">u.s.a.</span> <span class="b-serp-url__item">new<a href="#1">bad.com</a>usa</span> <span class="b-serp-url__item">new<b>domain</b>.com</span> ... </html> how can match content of <span> tag if contain domain name or domain name plus <b> tag? i'd regexp match new<b>domain</b>.com , new<b>domain</b>.com in example above. i tried use <span class="b-serp-url__item">(?:(?!<[^b]+).*?)\.(?:(?!<[^b]+).*?)</span> match new<a href="#1">bad.com</a>usa . can suggest how using regex only?

php - How to use _extra dynamically in smarty {html_select_time} -

i have problem here. can add value hour_extra='id="hour_id"' in {html_select_time} . want add dynamically. how this? please help my code below. {section name=foo start=2 loop=18 step=1} {assign var="itt" value=$smarty.section.foo.index} {html_select_time prefix=pre$itt use_24_hours=false display_seconds=false minute_interval=5 time="00:00" hour_extra='id="$itt"' } {section} here not working. thanks this need: {section name=foo start=2 loop=18 step=1} {assign var="itt" value=$smarty.section.foo.index} {html_select_time prefix="pre{$itt}" use_24_hours=false display_seconds=false minute_interval=5 time="00:00" hour_extra="id='{$itt}'" } {/section} (tested in smarty 3.1.18)

javascript - how to find text of anchor tag on edit button click? -

<div class="testcaselist_row"><ul><li id="tc_1" class="clicktestcaserow"><a href="#" style="color: #ffffff!important;">q</a><a class="delete deletetestcase_h"></a><button class="edit_h" href="#">edit</button></li></ul></div> can please tell me how find text of anchor tag on edit button click ? $(document).on('click','.edit_h',function(e){ alert('rdit'+$(this).closest('li').attr('id'));//getting id alert($(this).closest('a').text()); //getting undefined shouted "q" $("#edittestcaseid").popup("open"); e.stoppropagation(); e.stopimmediatepropagation(); }); the anchor tag trying find not parent. cannot use .closest() try, alert($(this).closest('li').find('a:first').text()); demo

logging - What is the meaning of null in Mage log (magento)? -

in order create magento log, 1 write like mage::log('server side validation kicked in year '.$currentyeartype); but if add log in sepearate file , mage::log('server side validation kicked in year ' ,null,'serversidevalidation.log'); please correct me if wrong. if so, use of null in middle? also, file need exist before hand or think created system when needed. right? also, include timestamp? go to app/mage.php line 785 public static function log($message, $level = null, $file = '', $forcelog = false) you can see second paramete level $level = is_null($level) ? zend_log::debug : $level; lib\zend\log.php const emerg = 0; // emergency: system unusable const alert = 1; // alert: action must taken const crit = 2; // critical: critical conditions const err = 3; // error: error conditions const warn = 4; // warning: warning conditions const notice = 5; // notice: normal significant condition const info ...

php - Exclude specific categories from category list -

below code category list displayed on page http://www.surefiresearch.com/blog/ i want remove categories 'page-seo' , 'page-seo-1'. trying 'exclude=cat_id' has worked preventing actual posts displaying on page, doesn't work list of categories. can see doing wrong? cheers. $taxonomy = 'category'; // term ids assigned post. $post_terms = wp_get_object_terms( $post->id, $taxonomy, array( 'fields' => 'ids' ) ); // separator between links $separator = ', '; if ( !empty( $post_terms ) && !is_wp_error( $post_terms ) ) { $term_ids = implode( ',' , $post_terms ); $terms = wp_list_categories( 'title_li=&style=none&echo=0&taxonomy=' . $taxonomy . '&include=' . $term_ids . '&exclude=66,67'); $terms = rtrim( trim( str_replace( ' ', $separator, $terms ) ), $separator ); // display post categories echo $terms; } this...

Reading logs of a deployed Google script -

is there way read logs of published google apps script? presently able logs using logger.log() in debug mode. but when face issues script once published, becomes impossible cause. not possible. depending on way executed, can @ last run log, gets lost on next script run log. make own logger function, example doing appendrow on spreadsheet. ive done 1 logs full stack trace per log, way better native logger. of course asssumes logging rare events consume more quotas. see here sample code on logging stacktrace , such (scroll middle): http://plusfortrello.blogspot.com/2013/08/spent-for-trello-google-apps.html

javascript - popup alert message across all tab -

we developing web messaging application. when open our website url tab, able chat our client. when switch tab , client send message want popup notification message visible opened tab. got few website giving type of notification visible tab. is there javascript or flash solution it? if use javascripts alert(""); create popup, browser automatically go tab popup created so when receive message webpage call $(document).ready(function(){ alert("you have message"); });

c# - How to extend a class from Model.tt -

i've used c# in vs2012 linq connect simple sql database mdf file. can see tables database classes in solution explorer, model1.edmx, model1.tt. i want extend class , add features doesn't have constructor recognize, cant pass variables create objects. is possible i'm trying? thanks all use partial classes. t4 templates generate classes partial classes can extend using partial classes. so leave cs files generated t4 tool alone, , create cs files in same namespace , assembly classes this: public partial class nameofclassint4 { //your own custom stuff here. } yes, can have 2 partial classes same name, that's whole idea: define class in more 1 files. useful in case 1 definition auto generated , modifications might overwritten, create separate file , customize class in file if there in same file.

Google Cloud Storage: bulk edit ACLs -

we in process of moving our servers google cloud compute engine , starting cloud storage cdn option. uploaded 1,000 files through developer console problem object permissions users set @ none. can't find way edit permissions give users reader access. missing something? you can use gsutil acl ch command follows: gsutil -m acl ch -r -g all:r gs://bucket1 gs://bucket2/object ... where: -m sets multi-threaded mode, faster large number of objects -r recursively processes bucket , of contents -g all:r grants users read-only access see acl documentation more details. you can use google cloud shell console via web browser if need run single command via gsutil , comes preinstalled in console vm.

mongodb - service mongod start on debian doesnt work -

i created instance of linux debian on google compute engine. i install git, node.js, python , other things without problems but when install mongodb, when finish installation , installation try run mongod, said: [fail] starting database: mongod failed! i try with: sudo service mongod start , same. i try many thing like: rm mongodb.lock change path of data / data / db change permisions mongodb.log but nothing work. when run /etc/init.d/mongod start the error is: start-stop-daemon: unable september gid 65534 (operation not permitted)   failed! any idea error? the mongodb.log empty so, can paste here results of verbose. thanks if seeing kind of error log in apt-get log of mongodb-org: package mongodb-org-server not configured yet. this maybe related gce debian image bug locale https://github.com/andsens/bootstrap-vz/issues/49 so way around do: export language=en_us.utf-8 export lang=en_us.utf-8 export lc_all=en_us.utf-8 sudo locale-gen en_...

How to read UTF file char by char in Python -

i have utf-8 file , want replace characters 2 bytes html tags. i wanted make python script that. read file, char char, , put if , on. problem have following, if read char char, reading 1 byte, characaters 1 byte , 2 bytes long. how solve ? i need feature read char char, know char size of 1 or 2 byte. you need open file while specifying correct encoding. in python 3, that's done using with open("myfile.txt", "r", encoding="utf-8-sig") myfile: contents = myfile.read() char in contents: # character in python 2, can use codecs module : import codecs codecs.open("myfile.txt", "r", encoding="utf-8-sig") myfile: contents = myfile.read() char in contents: # character note in case, python 2 not automatic newline conversion, need handle \r\n line endings explicitly. as alternative (python 2), can open file , decode afterwards; normalize line endings \n : with open(...

excel - 10 values in column A, 4 in column B, 40 unique outputs? -

Image
i have been working while trying 40 unique outputs. have taken screenshot of i'm trying at. screenshot: i have been using indirect , ceiling commands can not work. can please please , explain? this works: ="the brown " & index(a:a,ceiling(row()/4,1)) & " jumped on "& index(b:b,(mod(row()-1,4)+1)) it uses ceiling along division 4 repeat each item in column 4 times. uses mod cycle through 4 numbers. you can generalize work many values in column b using counta : ="the brown " & index(a:a,ceiling(row()/counta(b:b),1)) & " jumped on "& index(b:b,(mod(row()-1,counta(b:b))+1))

javascript - Post array max size issue -

i know question asked before isn't answered wish. have big form , , put lot of information in it's hidden javascript , retrieve sent data php. max size of post array size not enough. what's way increase inside code , not in server's settings? , if isn't way of communication between javascript , php , should ??? <form action="" method="post" name="themeform1"> <? foreach($this->css1->css $key=> $value){ ?> <input max="999999" type="hidden" name="<? echo $key."-"; ?>direction"/> <input max="999999" type="hidden" name="<? echo $key."-"; ?>width"/> <input max="999999" type="hidden" name="<? echo $key."-"; ?>height"/> <input max="999999" type="hidden" name=...

copy pscp a file from window server to to remote linux server -

i want copy directory (pscp) windows server linux server target place name on linux server has new each time.when run below command, > pscp -p -l root > -pw mypassword -r c:\programfiles\mybackups\root@linux_server:/root/mywindowsbackups/$(date) the command substitution $(date) doesn't work. can 1 suggest how run ? try following: :: stripping `/` , `day of week` date set target_date=%date:/=-% set target_date=%target_date:* =% :: copying directory linux server based on system's date pscp -p -l root -pw mypassword -r c:\programfiles\mybackups\root@linux_server:/root/mywindowsbackups/%target_date%

Android - Set Spinner text to Right -

Image
i developing app in arabic, , there values in spinner english , arabic. so, english text aligned left , arabic aligned right. but, want text right. tried number of ways, not getting exact solution. my code is, have used custom spinner import java.lang.reflect.invocationhandler; import java.lang.reflect.invocationtargetexception; import java.lang.reflect.method; import android.content.context; import android.graphics.color; import android.util.attributeset; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup; import android.widget.adapterview; import android.widget.spinner; import android.widget.spinneradapter; import android.widget.textview; public class spinnermodified extends spinner { public spinnermodified(context context) { super(context); } public spinnermodified(context context, attributeset attrs) { super(context, attrs); } public spinnermodified(context context, attributeset attrs, int defstyle) { super(contex...

mysql - How to insert a lot of facts in StatefulKnowledgeSession (Drools) -

i want insert lot of facts in statefulknowledgesession. but not reach fireallrules() part my facts have 10k facts. in mysql. http://i.stack.imgur.com/xbnoh.png http://i.stack.imgur.com/7tjeu.png and stale my code : public void rundrools() { knowledgebuilder kbuilder = knowledgebuilderfactory.newknowledgebuilder(); knowledgebase kbase = knowledgebasefactory.newknowledgebase(); starttime = new date(); if (personalcondition1.isselected() && convenienceday_jcheckbox.isselected()) { kbuilder.add(resourcefactory.newclasspathresource("rules1_conv_schedule.drl", getclass()), resourcetype.drl); } else if (personalcondition1.isselected() && !convenienceday_jcheckbox.isselected()) { kbuilder.add(resourcefactory.newclasspathresource("rules1_non-conv_schedule.drl", getclass()), resourcetype.drl); } else if (personalcondition2.isselected() && convenienceday_jcheckbox.isselected()) { kbuil...