Posts

Showing posts from February, 2010

Django: Reverse for '*' with arguments '()' and keyword arguments '{a,b}' not found. 1 pattern(s) tried: ['order/pay/(?P<pk>\\d+)/$'] -

i have views. 1 triggers overview of guest's orders. , 1 sets order paid , should go overview: @login_required def guest_detail(request, pk): guest = get_object_or_404(guest, pk=pk) open_orders = order.objects.filter(guest = guest, is_paid=false) paid_orders = order.objects.filter(guest = guest, is_paid=true) if request.method == "post": form = registerguestform(request.post, instance=guest) if form.is_valid(): guest = form.save(commit=false) guest.save() #post.published_date = timezone.now() return redirect('guest_detail', pk=guest.pk) else: form = registerguestform(instance=guest) context = {'form': form} context['open_orders'] = open_orders context['paid_orders'] = paid_orders return render(request, 'hotel/guest_detail.html', context) this view rendered template: <div class="col-md-8 col-xs-12">

sap - ABAP: How to get back to the calling screen? -

Image
my current screen-build looks this: but when try screen 250(called screen) 100(the calling screen) leaves program. case ok_code. *navigation calling screen when 'back'. set screen 0. i hope guys me out. thanks! assign ok code field in screen 250 ok_code. in screen painter set ok code in screen (it's bottom attribute type ok) ok_code , original code should work.

c# - Unable to read/write files in shared hosting (hostgator) -

i have developed mvc 5 project works fine on local file server , on other hostings (dhosting, go daddy) when upload shared hosting(hostgator) throws security exception i.e. exception details: system.security.securityexception: request permission of type 'system.security.permissions.fileiopermission, mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089' failed. when add <trust level="full" /> error changes configuration error i.e. description: error occurred during processing of configuration file required service request. please review specific error details below , modify configuration file appropriately. parser error message : configuration section cannot used @ path. happens when site administrator has locked access section using inherited configuration file. source error: application error occurred on server. current custom error settings application prevent details of application error being viewed remotely (for s

postgresql - Postgres how to maintain order of rows using CTEs -

i have 2 tables students: id | name | age 1 abc 20 2 xyz 21 scores: id | studentid | marks 1 1 20 2 2 22 3 2 20 4 1 22 5 1 20 where studentid foreign key students table when select studentid scores marks=20; i following result 1, 2, 1 but if want name of student name , when join using select t1.name students t1 inner join scores t2 on t1.id = t2.studentid t2.marks=20; i xyz,abc,abc though ouput correct there way can maintain order in scores listed in scores table? should abc,xyz,abc output. tried using subquery select name students id in ( select studentid scores marks=20) ; but did not give me correct order. how can achieved using ctes (common table expressions)? tried follownig cte did not work with cte as( select t2.id, t1.name students t1 inner join scores t2 on t1.id = t2.studentid t2.mark

javascript - Dynamically generating filter for datatable -

Image
i asking question again since dint find proper idea. trying implement feature filter item based on vendor name. item column according vendor name. stuck here since week . tried many ways not working. requirement steps below. i name of vendor db. use retrieved vendor name filter name list :<option>vendorname</option> i can item_code each vendor using vendor code foreign key there multiple item_code each vendor may more 500. now want create drop down in such way upon selecting vendor, corresponding item code table should filtered. any suggestion or steps appreciated. my final effort: $('#vendor').on('change',function(){ var selectedvalue = $(this).val(); $("#testtable").datatable().fnfilter("^"+selectedvalue+"$", 0, true); //exact value, column, reg }); <div class="optionsdiv2" style="display:inline;" > vendor name:<select name="item" id=&qu

android - Packages from library module not found in main module -

i got project imported eclipse android studio. in eclipse worked well. it contains main module (a project in eclipse) uses packages library module (library project in eclipse). since migration did not went well, have created library module manually , copied source code newly created module. the problem main module doesn't seem find packages library module , when rebuild project errors "package bla bla not exist". here main module gradle.build: apply plugin: 'com.android.application' android { compilesdkversion 25 buildtoolsversion "25.0.0" defaultconfig { applicationid "com.pointer.mamagoose" minsdkversion 9 targetsdkversion 21 } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile project(':linphoneclean') com

Volley Service calling issue in OnResume() android -

hi doing application in have call service inside onresume() method of activity. goes fine,but when application went background time , come volley not responding.below code private void searchopportunitiesgooglemethod() { string userregid; final progressdialog ringprogressdialog = progressdialog.show(quizactivity.this, "please wait ...", "fetching data nearby ...", true); norecordfound.setvisibility(view.invisible); ringprogressdialog.setcancelable(false); final jsonobject child = new jsonobject(); if (session.getuserregisterid() == null) { userregid = "0"; } else { userregid = session.getuserregisterid(); } try { try { child.put("location", signinactivity.nwlocation.getlatitude() + "," + signinactivity.nwlocation.getlongitude()); child.put("categories", "");

Does jxbrowser support swipe and scrolling of a webpage via touchscreen? -

does jxbrowser support swipe , scrolling of webpage via touchscreen on windows xp system? found topic: https://groups.google.com/a/teamdev.com/forum/#!topic/jxbrowser-forum/t4fh_7z8h7c see it's implemented windows 8.x, right? on our system works touch behavior simulate of handling mouse. mean if touch on arrow in scrollbar scroll can not scroll swiping in middle of page. use version 6.5. possible configure somehow work on windows xp or functionality not implemented? regards, pavlo as far know swipe gestures introduced in windows 8. touch gestures in chromium engine implemented using windows 8 sdk, not work on windows xp @ all. touch events simulated mouse events on windows xp, if talking gestures, don't think windows xp "knows" how extract gesture set of mouse events (especially if talking multi touch). recommend first check how google chrome works on windows xp touch screen. if google chrome doesn't work in such environment, jxbrowser not work in

javascript - Passing ajax data item to the function -

i have ajax function below , want send item find function $.ajax({ url: url, method: "get", headers: { "accept": "application/json; odata=verbose" }, async: false, success: function (data) { $.each(data.d.results, function (i, item) { html += '<div class="tileblock"><img src="/publishingimages/' + item.title + '" alt="' + item.to[city] + '" /><br>'; html += '<div class="blockcol1 greylabel">' + item.to[city] + '</div><div class="blockcol2 faretxt">' + item.cost + '&nbsp;' + item.from.currency + '</div><div style="clear: both;"></div>'; html += '<div class=" blockcol3 smalltxt">' + item.class + '&nbsp;|&nbsp;' + item.trip + '</div><br><div style="clear: both;"></div>';

java - Image not displaying (but loading) in PDF generation using resource stream -

Image
i created pdf using pdfbox. entire pdf generates , images loaded while using pdimagexobject ptabelle = pdimagexobject.createfromfile("src/main/resources/pdf/ptabelle.png", pddocument); but project need go live sometime have replace static path class loader. after doing pdf generates, text displayed, not image. the interesting thing inside pdf "box" image should there, not image. here code stream generation. classloader classloader = getclass().getclassloader(); pdstream pdstream = new pdstream(pddocument, classloader.getresourceasstream("pdf/ptabelle.png")); pdresources pdresources = new pdresources(); pdimagexobject ptabelle = new pdimagexobject(pdstream, pdresources); pdpagecontentstream pdpagecontentstream = new pdpagecontentstream(pddocument, page4); and here call in code, length + width variables defined in code. pdpagecontentstream.drawimage(ptabelle, text_begin, currentycoord, 172, 107); instead of new pdimagexobject(p

ios - Unable to remove optional Word from string? -

unable remove optional word code : let questionidstr : string! = fetchresults.valueforkey("questionid").objectatindex(counter) as? string output : optional(16) required output : 16 you casting optional string as? string , hence getting optional out. try following: if let questionidstr = fetchresults.valueforkey("questionid").objectatindex(counter) as? string { // here, questionidstr have non optional value, if nil runtime never here. } you can force unwrap string without conditional binding follows, please aware unsafe , discourage on above approach: let questionidstr = fetchresults.valueforkey("questionid").objectatindex(counter) as! string

python - Django models create data duplicate -

1.models's name userrecord. 2.below code of view. @login_required def data(request, page, keyword,strencode): current_username = request.user.username data_s = dosomething() #it takes long time!!! userrecord.objects.get_or_create(user=user.objects.get(username=current_username),myrecords=keyword) # in order create unique value # or use below method # if not userrecord.objects.filter(user=user.objects.get(username=current_username),myrecords=keyword): # userrecord.objects.create(user=user.objects.get(username=current_username),myrecords=keyword) return jsonresponse(data_s, safe=false) requested below url several times no interval,something concurrent threading . http://127.0.0.1:8000/data/1/test/english/ after operation done,myrecords column populated duplicate values. found in django document use 'with transaction.atomic' deal problem did not work. you don't need user user.objects.get(user=user.objects.get(username=cu

Batch to read filenames from a file, move them to another dir and list in a text file any that failed -

i have directory of 15,000 images, use 1500. used excel creaet list of commands move each of 1500 images used new folder. the problem 1200 images copied, leaving 300 images need create or find. i trying following: file1 has list of filenames file2 list filenames not avilable for each filename in file1, read , move file folder. if there error (no image move), write image name in file, have list of 300 images need find. thanks help. have little batch experience, bit on head. for /f "delims=" %%a in (excel_file.txt) if exist "%%a" (move "%%a" "destinationdirectoryname") else (echo %%a>>cantfindthisfile.txt) not hard...

java - How to store more than one value for same key in HashMap? -

i have string named inputrow , looks this: 1,kit,23 2,ret,211 i apply regex (.+),(.+),(.+) on , store results in multiple variables. for first line 1,kit,23 get: inputrow.1-->1 inputrow.2-->kit inputrow.3-->23 for second line 2,ret,211 get: inputrow.1-->2 inputrow.2-->ret inputrow.3-->211 i want store input rows in hashmap same key inputrow . how can in java? my java code is.., line="1,kit,23"; final map<string, string> regexresults = new hashmap<>(); pattern pattern = pattern.compile("(.+),(.+),(.+)"); final matcher matcher = pattern.matcher(line); if (matcher.find()) { final string basekey = "inputrow"; (int = 0; <= matcher.groupcount(); i++) { final string key = new stringbuilder(basekey).append(".").append(i).tostring(); string value = matcher.group(i); if (value != null) { regexresults.put(key, value); } } now wants store second row in "regexresults" process.how poss

java - Error about combining MATLAB mex file and ModeFrontier -

hi linked matlab mex file modefrontier. during running error modefrontier: from job_err file: com.jacob.com.comfailexception: can't map name dispid: execute @ com.jacob.com.dispatch.invokev(native method) @ com.jacob.com.dispatch.invokev(dispatch.java:625) @ it.esteco.jacob.jacobdispatch.callmethod(jacobdispatch.java:48) @ it.esteco.activex.activexadapter.callmethod(activexadapter.java:51) @ it.esteco.integration.matlab.job.win.matlabapplication.execute(matlabapplication.java:76) @ it.esteco.integration.matlab.job.win.matlabwin.execute(matlabwin.java:177) @ it.esteco.integration.matlab.job.win.matlabwin.execute(matlabwin.java:197) @ it.esteco.integration.matlab.job.matlabintegration.cleanup(matlabintegration.java:326) @ it.esteco.integration.matlab.job.matlabintegration.start(matlabintegration.java:114) @ it.esteco.jobagent.integration.staintegrationjob$3.call(staintegrationjob.java:51) @ it.esteco.jobagent.integration.staintegrationjob$3.call(staintegrationjob.java:48) @ j

angularjs - angular-cli ng server errors on start up -

i have installed angular-cli , attempting 'ng serve' angular project created via "ng new [blah]frontend", getting errors: pastebin : http://pastebin.com/qb1d5psf what going on. when navigate http://localhost:4200/ see : uncaught error: cannot find module "webpack-dev-server/client?http://localhost:4200/"(…) try npm start instead ng serve run server http://localhost:4200/

c# - Xamarin how to assign a string to edit text ? -

i new mobile development. working on android in xamarin using visual studio 2015 . getting null reference exception when assigning string edit text . bellow code void list_itemclick(object sender, adapterview.itemclickeventargs e) { click_employee = e.position + 1; icursor c = dbhelper.getsingleentry(click_employee); c.movetofirst(); name = c.getstring(c.getcolumnindex(dbhelper.employee_name)); email = c.getstring(c.getcolumnindex(dbhelper.employee_email)); phone = c.getstring(c.getcolumnindex(dbhelper.employee_phone)); designation = c.getstring(c.getcolumnindex(dbhelper.employee_designation)); dname.text = name; demail.text = email; dphone.text = phone; ddesignation.text = designation; } the exception getting @ point dname.text = name . better understanding please see bellow code listview list; edittext dname, demail, dphone, ddesignation; string name, email, phone,

.net - Unable to set ServicePointManager.SecurityProtocol to any value -

i have existing .net console application targeting 4.6.1. have added following method update network security tls1.2. when running getting argumentnullexception - "value cannot null. parameter name: value" any ideas? private static void initialise() { servicepointmanager.securityprotocol = securityprotocoltype.tls12; }

c# 4.0 - Visual Studio 2013 not allowing to register developer license -

Image
i trying develop windows store app using vs 2013 community edition. vs asking developer license. couldn't sign microsoft account. giving script error , stops. i have tried following no luck. downgrading ie security settings. clearing ie cookies , other browsing histories. disabling firewall. upgrading ie. reparing vs. i running vs 2013 community edition on windows 8.1 enterprise. similar question: visual studio 2013 developers license javascript error answer above question didn't solve problem.

html - What is the functionality of !DOCTYPE? -

we see <!doctype ...> follows: <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> what's functionality of !doctype ? the significant use of doctype switch browser between quirks mode , standards mode rendering . this functionality came because of "broken" rendering in old versions of ie. realised if microsoft "fixed" ie rendering engine lots of existing sites not render properly. way works if put any valid doctype declaration @ in page assumption know you're doing , browser render in standards compliant way, , if don't put 1 in render in old "wrong" way. this done in ie mac, behaviour same in versions of ie since ie5, , firefox, chrome, safari , opera. what doctype supposed document type definition . html subset of sgml (as xml). dtd tells parser syntax

python - Making a plot in a second window using data from main window -

i'm trying make program in have main window , second window. second window should opened checking check-box in main window , closed unchecking it. the following minimal example works fine (thanks importanceofbeingernest !), want spin arrow (the one, bent when run example) changing spinbox in main window. solution: see 5th comment in first answer! import sys pyqt4 import qtgui, qtcore matplotlib import pyplot plt mpl_toolkits.mplot3d import axes3d matplotlib.backends.backend_qt4agg import figurecanvasqtagg figurecanvas matplotlib import animation import numpy np class newsphere(qtgui.qmainwindow): def __init__(self): super(newsphere, self).__init__() self.mainbox = qtgui.qwidget() self.mainbox.setlayout(qtgui.qhboxlayout()) self.setcentralwidget(self.mainbox) self.spin = qtgui.qspinbox() self.spin.setvalue(20) self

phpexcelreader - Alternate for enabling iconv to read special characters from excel using any library -

i'm using excel reader 2 library read values .xls file in php. but there issue on reading special characters , saving values oracle service cloud. different characters behaving differently.below few examples: alt 0146 ’ -- taking first character of sentence alt 22 ▬ -- taking first character of sentence alt 0225 á -- unable read character.api error coming alt 253 ² -- unable read character.api error coming after search, came know need enable " iconv " read characters correctly.but unfortunately in server setting disabled , not ready enable it. is there other library available doesn't require iconv enable or other way read .xls file values. any counts lot , in advance. swathi cherukuri

javascript - filter markers in accordance with user city location in google maps -

i have map markers in different location , match markers user location (city) i'm getting user city (hopefully it's best practice way ) `<script> $.getjson('https://geoip-db.com/json/geoip.php?jsonp=?') .done(function (location) { $('#country').html(location.country_name); $('#state').html(location.state); $('#city').html(location.city); $('#latitude').html(location.latitude); $('#longitude').html(location.longitude); }); </script>` and i'm setting markers ` <script> "use strict"; var markers = @html.raw(json.encode(model.upcominglecturegigs)); window.onload = function (a) { var mapoptions = { center: new window.google.maps.latlng(markers[0].latitude, markers[0].longitude), zoom: 8, maptypeid: wi

root - CentOS systemctl access denied -

i disable ctrl-alt-delete in centos server tried: systemctl mask ctrl-alt-delete.target but got: failed execute operation: access denied what can ? ps: i'm root on server thx, eduloc run below command , try again. found new way if not worked su -

mongodb - Meteor element in array of a array -

basically wanted push data within array of array i.e publicholidays outer array , holidaylist inner array. mongodb schema looking right now. "publicholidays" : [ { "location" :"pune" "year" : 2016 "holidaylist"[ { "holidaydate" :"2016-11-09", "holidayname":"diwali" } ] } ] expecting below schema,wanted push data in holidaylist. "publicholidays" : [ { "location" :"pune" "year" : 2016 "holidaylist"[ { "holidaydate" :"2016-11-09", "holidayname":"diwali"

angular - Disable future date in Kendo UI Calendar Widget -

how possible disable (basically mean greying out) future dates in kendo ui calendar widget? have tried hide future dates not seem , have tried various way grey out not finding proper method? ideas appreciated. the disabledates options(that have find out yourself) function expects told whenever should display day. have return true if valid date, e.g.: disabledates: function (date) { return (date && date.gettime() > (new date()).gettime()); } demo

Difference between Variables and Arguments in Windows Workflow Foundation -

i pretty new windows workflow foundation question may seem little simple. what's major difference between argument , variables in workflow? , 1 should used in situation. for e.g. if need store object can used activities in workflow, , activites should able modify object. 1 should use - variable or argument? arguments input , output activities (a whole workflow counts activity in wwf) so data put workflow comes in via argument named in workflow inargument. (everytime write inargumentt use inoutargument) any data put activity comes in via argument named in activity inaargument. output same except argument must marked out (or in/out) the values in arguments available inside workflow or activity set argument in inargument variables exist inside container named. variables in workflow created in workflow , not passed in. you can assign workflow level variable inargument of activity assigning variable inargument in properties panel activity. variables have

angularjs - Reuse a function inside another controller which is not attached with view -

i trying reuse function inside controller belongs page. has not been attached view of current page. followed these steps: include controller using script tag use $on , $emit in order call function unfortunately, nothing happened. controller still initialized not receive calling $emit. i appreciate if can me figure out. why want that? angularjs has concept services meant purpose - code reusability. need create service, , inject in controllers use it. see below. app.service('hexafy', function() { this.myfunc = function (x) { return x.tostring(16); } }); and in controller, app.controller('myctrl1', function($scope, hexafy) { $scope.hex = hexafy.myfunc(255); }); app.controller('myctrl2', function($scope, hexafy) { $scope.hex = hexafy.myfunc(1023); }); remember services in angular singleton.

physics - Rocket simulation with Python: syntax error -

i have implement python rocket simulation physics class, , "invalid syntax" error. stupid mistake i'm stuck… here's line gets error. it's in loop goes 0 timesteps (which 10 000): acceleration[i] = (f_ext + velocity_rel[i]**2 * area_nozzle * density_water)/mass_total[i] i "invalid syntax" pointing @ acceleration, array defined earlier: acceleration = numpy.zeros(timesteps+1,dtype='d') thank help!

jquery - How to space columns in HighCharts -

i have parent container fixed width , height. graph rendered using highcharts gets contained inside parent container. can tell me should done make chart container scrollable , space labels , bars labels visible , bars spaced well. please find jsfiddle better understanding https://jsfiddle.net/z5wqgkm9/ have tried enabling scroll using scrollbar: { enabled: true } but not of help setting overflow: scroll on parent div should work. <div style="width:500px;height:600px; overflow: scroll;"> <div id="recoranks" style="width: 400%; height: 100%; margin: 0 auto"></div> </div> example: jsfiddle.net/z5wqgkm9/2

elasticsearch - logstash 5.0 ubuntu 14.04 -

i trying install elk stack read apache access logs. i have installed kibana , elasticsearch documentation, , running successfully. when got logstash installation, have installed it, when run upstart command run service doesn't seem working. this logstash documentation i getting when doing update && install logstash command: w: size of file /var/lib/apt/lists/artifacts.elastic.co_packages_5.x_apt_dists_stable_main_binary-i386_packages.gz not server reported 1438 1659 when run command sudo initctl start logstash , in /var/log/logstash/logstash-plain.log : [2016-11-08t10:39:19,671][error][logstash.agent ] failed fetch pipeline configuration {:message=>"no config files found: /etc/logstash/conf.d/*\ncan make sure path logstash config file?"} [2016-11-08t11:05:08,863][info ][logstash.outputs.elasticsearch] elasticsearch pool urls updated {:changes=>{:removed=>[], :added=>["http://localhost:9200"]}} [2016-11-08t11:05:09,0

dataframe - Data.frame in R: concatenation of two column, numbers instead of occurrences -

i have simple question, cannot find answer: have data.frame: b=c("a","a","a","a","a","b","b","b","b","c") c=c("b","b","b","b","b","c","c","c","c","d") a<-data.frame(b,c) why if i'd put in 1 column a$b , a$c vector this: f<-c(a$b,a$c) the result not like > f<-c(b,c) > f [1] "a" "a" "a" "a" "a" "b" "b" "b" "b" "c" "b" "b" "b" "b" "b" "c" "c" "c" "c" "d" but > f<-c(a$b,a$c) > f [1] 1 1 1 1 1 2 2 2 2 3 1 1 1 1 1 2 2 2 2 3 ? in advance! edit: tried this, looking @ possible duplicate suggest above: > a<-data.frame(z=as.character(b),k=as.

DOM update spikes with angular 2 *ngFor and golden-layout -

dear fellow angular 2 developpers, me , team facing strange performance issue our angular 2 application (2.1.1). using docking layout, based on golden-layout.js ( https://golden-layout.com/ ). works wonderfully , drag-&-drop actions rendered smoothly. however, when have lot of angular components (let’s say, *ngfor around 2500 elements, each of them simple component 2 property bindings), golden-layout acts strangely: when click onto angular component , start dragging, drag actions rendered huge spikes. however, when click on empty space in browser (not on html of angular component) , start dragging, animation running smoothly. all our components use changedetectionstrategy.onpush , possible, changedetectors detached , updating triggered manually. suspect angular keep last ‚focussed‘ component in memory , perform tons of update animations when focussed element angular component. any ideas problem might come or should search for? since see rendering work fine when click o

amazon web services - Not able to get aws resources through python -

[root@localhost desktop]# python python 2.7.5 (default, sep 15 2016, 22:37:39) [gcc 4.8.5 20150623 (red hat 4.8.5-4)] on linux2 type "help", "copyright", "credits" or "license" more information. >>> import boto3 >>> s3=boto3.resources('s3') traceback (most recent call last): file "<stdin>", line 1, in <module> typeerror: 'module' object not callable reources module, resource function 1 looking for. >>> boto3.resources <module 'boto3.resources' '/usr/local/lib/python2.7/site-packages/boto3/resources/__init__.pyc'> >>> boto3.resource <function resource @ 0x7fbf18615410> >>> boto3 import resources so, should call resource s3=boto3.resource('s3')

elasticsearch - I can't get nested stored_fields -

all. i'm using elasticsearch 5.0 , have next mapping: { "mappings": { "object":{ "properties":{ "attributes":{ "type":"nested", "properties":{ "name": { "type": "keyword", "store":true}, "value": { "type": "text", "store":true }, "converted": {"type": "double", "store":true}, "datetimestamp": { "type": "date", "store":true} } } } } } } then add 1 document: { "attributes":[ {"name":"attribute_string", "value":"string_value","converted":null,&q

exception - Elasticsearch 5.0.0. cluster node not joining -

ok shouldn't hard, i'm trying run 2 nodes in elasticsearch cluster , getting exception when trying start node-1(node-2 master started). using elasticsearch v 5.0.0 both instances exception: failed send join request master, reason remotetransportexception can't add node found existing node same id different node instance] node-1 config: node.name: sannnnn-1 network.host: 10.3.185.250 discovery.zen.ping.unicast.hosts: ["10.3.185.251:9300"] node-2 config: node.name: san-2 network.host: 10.3.185.251 discovery.zen.ping.unicast.hosts: ["10.3.185.251:9300"] full exception on node 2: [info ][o.e.d.z.zendiscovery ] [sannnnn-1] failed send join request master [{san-2}{dxexoyhhtu2-rfvuvqsueg}{ofybe97hqcmcha63cfiylq}{10.3.185.251}{10.3.185.251:9300}], reason [remotetransportexception[[san-2][10.3.185.251:9300][internal:discovery/zen/join]]; nested: illegalargumentexception[can't add node {sannnnn-1}{dxexoyhhtu2-rfvuvqsueg}{hp4gl

c# - Binding with ElementName not working on a DataTemplate on Windows XP -

why binding elementname on datatemplate of datagridtemplatecolumn not work (will fallback default value or fallbackvalue ) under windows xp .net 4.0? <datagridtemplatecolumn header="aaa" width="62"> <datagridtemplatecolumn.celltemplate> <datatemplate> <textbox isenabled="{binding elementname=combobox, path=isenabled}"> </datatemplate> </datagridtemplatecolumn.celltemplate> </datagridtemplatecolumn> but windows 7 , later binding works expected. the way make work under windows xp, using x:reference . wpf not support windows xp. you can tell boss following source: windows presentation foundation . it's microsoft , official.

How to change the image button back to the previous image when user click the button again in asp.net using C# -

i creating seat reservation system, have seating chart in asp.net webpages. when user click on 1 of seat, change image. i have did that. however, cannot figured out how if user click same seat again, image change previous image meaning user did not want reserve seat anymore. any method can this? change image upon first click code below: protected void imagebutton1_click(object sender, imageclickeventargs e) { imagebutton1.imageurl = "seatreserved.png"; } thank if can me this. you can use same code above, wrap in if statement: protected void imagebutton1_click(object sender, imageclickeventargs e) { if(imagebutton1.imageurl != "seatreserved.png") { imagebutton1.imageurl = "seatreserved.png"; } else { imagebutton1.imageurl = "seatnotreserved.png"; } }

ip - AWS setting CIRD -

i know topic has lot information on can't find answer simple question. i willing have subnet each availability zone in region (3 zones). vpc cidr 10.0.0.0/19 , want each subnet have same amount of ips. question cidr block should assign each subnet? 10.0.0.0/19 has 8,192 ip addresses, 10.0.0.0 through 10.0.31.255 when dividing supernet subnets of equal size, can divide powers of 2 -- 2, 4, 8, 16, etc., block can't divided 3 blocks of equal size, can divided 4. 10.0.0.0/21 has 2,048 addresses 10.0.8.0/21 has 2,048 addresses 10.0.16.0/21 has 2,048 addresses 10.0.24.0/21 has 2,048 addresses since 3 of these, reserve 1 of them use in 4th availability zone if given access 1 (some accounts have access more 3 availability zones in @ least 1 region) or other purposes. however, though may not realize yet, you need @ least 2 subnets in each availability zone in each vpc . typically, instances go on private subnets, nat gateways or instances , elastic load balancers

Getting nullpointer exception while executing query in JPA using Hibernate 5.1.2 as JPA vendor -

i'm trying upgrade application openjpa implementation 1.0.1 using jpa 1.0 hibernate 5.1.2 i'm getting nullpointer exception when trying to call geresultlist on entity class. my sample classes below: (i've changed class names can not share original source code. mapping same.) 1) class charger (representing sort of mobile charger has 2 pin) @entity @table(name = "charger") class chargerentityext5 extends chargerentity1abstract implements serializable { @transient private static final long serialversionuid = -1l; @onetomany(mappedby="chargerentityext5",targetentity=portentityext5.class, fetch=fetchtype.eager) @fetch(value = fetchmode.subselect) public list<pinentityext5> pinentityextlist; public list<pinentityext5> getpinentityextlist() { return pinentityextlist; } public void setpinentityextlist(list<pinentityext5> pinentityextlist) { this.pinentityextlist = pinentityextlist; } } 2) @mappedsuperclass