Posts

Showing posts from July, 2013

Wordpress main static page url -

wordpress 4.6. i set static page main page. , url of main page url of static page. what need make such url: www.mysite.com not www.mysite.com/mypagename? if understand correctly, want change uri of home page? when page home page, page not have permalink page_id=x .

Elasticsearch - Unique values in a field of an index -

i have index of following type: { company: { watchlist: [ {id: 1}, {id: 2}, {id, 1} ] } } in watchlist array in indexes, duplicate values stored. want indexes not store duplicate values increasing size of index. i know can unique values calling aggregation, want here store unique values in index. i using elasticsearch rails here, indexes data according json returned 'as_indexed_json' method. data above index in sql database, cannot change. can create indexes database, need 'uniqueness' constraint on field 'watchlist'. is there way it?

installer - Run shell process during QT Install Framework and wait for the result -

i run shell commands during using qt install framework in order recover information required configure installation (e.g listing network adapter). currently ifw seems allow 1 prepare canned shell operations ( addoperation , addelevatedoperation ) run after installer configuration process. i like, instead, run them during installation set-up. e.g. running operation in 1 of installer page , retrieve result. like: component.prototype.pagechanged = function (page) { if (page === qinstaller.readyforinstallation) { component.runoperation(...) } }; qt installation framework installer provides way solve issue. you can use installer.performoperation running consumeoutput operation. consumeoutput allows 1 run external process , store process output installer key.

ios - Swift 3 Date type not encoding as part of custom class -

i'm having difficulty encoding , decoding date type property of custom swift class nskeyedarchiver. call keyedarchiver with: let saveddata = nskeyedarchiver.archiveddata(withrootobject: timers) let defaults = userdefaults.standard defaults.set(saveddata, forkey: "timers") this top half of class declaration: class timermodel: nsobject, nscoding, avaudioplayerdelegate { var name: string var active: bool var paused: bool var duration: int var remainingwhenpaused: int? var timerendtime: date? var timerstarttime: date? var audioalert: alertnoise var uuid: string var colorscheme: basecolor var alarmrepetitions: int var timerrepetitions: int var currenttimerrepetition: int var audioplaying: bool var player: avaudioplayer = avaudioplayer() var countdowntimer: timer = timer() var delegate: timerprotocol? = nil init(withname name: string, duration: int, uuid: string, color: basecolor, alertnoise: alertnoise, timerrepetitions: int, alarmrepetitions: int, timerend

node.js - Like button, add and subtract on database. nodejs, mongodb, mongoose, jquery -

i building website user can like, button working, storing likes on database. question is, how can make user when click button again, subtract on database. have animation of button, 1st default state is grey, when user click it, turn blue , "liked" text appear besides it. when user clicks again, go black. here's code on post route (because adding data database) app.post("/index/:id", function(req,res){ testdata.findbyid(req.params.id, function(err, theuser){ if(err){ console.log(err); } else { theuser.likes += 1; theuser.save(); console.log(theuser.likes); } }); }); my ejs file: <a class="likeicon" href="/index/<%= newusers._id %>?_method=post"> <i class="fa fa-thumbs-o-up" aria-hidden="true" ></i> </a> and jquery: $(".likeicon").on('click', function(){ if($(this)

How to convert a Java BigInteger constant (encoded as base64) to Python? -

given following java code: import java.math.biginteger; import java.util.base64; ... string myvar64 = "aqab"; // assume longer.. byte[] myvarb = base64.getdecoder().decode(myvar64); biginteger myvar = new biginteger(1, myvarb); how convert code python? i'm assuming java code written way because java doesn't have bigint literals (i don't know java..) if i'm assuming simple assignment sufficient (perhaps code comment indicating original source string): myvar = 65537 # int("aqab".decode('base64').encode('hex'), 16)

wordpress - Fatal error: Call to undefined function apply_filters() in /public_html/wp-includes/load.php on line 317 -

i tried update wordpress installation using auto update feature. after update entire site down. checking log file have error: fatal error: call undefined function apply_filters() in /public_html/wp-includes/load.php on line 317 found github issue. refer solving issue installation uses wp-cli . appreciated. https://github.com/wp-cli/wp-cli/issues/2953 this problem caused wp-settings.php . due permissions trouble file not updated while using auto-update. replacing file latest wp-settings.php solved trouble.

css3 - CSS property support -

is there way check if css property i'm going use supported common browsers? can avoid using -moz , -webkit prefixed properties, if unprefixed property supported commonly browsers. there many answer out there can check for checking browser compatibility 1) w3schools or directly can use 1) normalize

angular - ag-grid external filter using angular2 -

i want implement external filtering on ag-grid angular2. the ag-grid example on github doesn't seem implement external filters , a similar question has not been answered . there way of implementing external filters in ag-grid angular2? i have following: template: <input (keyup)="updatefilters($event)" name="filteragreementnumber" #filteragreementnumber/> <ag-grid-ng2 #aggrid style="width: 100%;" [style.height.px]="height" class="ag-fresh" [gridoptions]="gridoptions" [rowdata]="promises" (window:resize)="onresize($event)"> component: export class promiseslistcomponent { private gridoptions: gridoptions; private promises: promise[]; filteragreementnumber = ''; constructor(private promisesservice: promisesservice) { this.gridoptions = { rowdata: this.promises, colum

Where am I screwing up in the evaluation of this mathematical expression in Java? -

my code is: int x=5,y=3; x+=y*++x-x/y-y++; system.out.println("value = "+x); my evaluation below: x+=y*++x-x/y-y++ (x=5 | y=3) x=x+(y*++x-x/y-y++) (x=5 | y=3) | ++ , -- have highest priority x=x+(y*6-x/y-3) (x=6 | y=4) | * , / have next highest priority x=x+(4*6-(6/4)-3) (x=6 | y=4) x=x+(24 -1 -3) (x=6 | y=4) x= 6+20 (x=6 | y=4) x = 26. however, when evaluate above in java, output turns out 18. did wrong? additionally, there program online can solve such problems above step step analysis? if so, name some? the expression evaluated left right : x += (y*++x)-(x/y) -(y++); 3*6 - 6/3 - 3 == 18 - 2 - 3 == 13 so x += 13 == 18 // since original value of x used here regarding last part, original value of x used since that's definition of compound assignment operators : first, left-hand operand evaluated produce variable. if evaluation completes abruptly, assignment expr

java - Creating an instance of a class and at the same time create an instance of another class that depends on the first class -

this question has answer here: hibernate: duplicate key value violates unique constraint 1 answer edit:how question different 1 linked? i think question different because seems if caused jpa trying add user same id, because of foregin key value in class (student) being added. issue linked seems caused not generateing ids automatically. i have method creates user , returns user. pass user method create student. user student. can't because : org.postgresql.util.psqlexception: error: duplicate key value violates unique constraint "pk_user_id" detail: key (user_id)=(7001) exists. my methods in backing bean looks this: public users2 adduser(string username, string password, string emailadress, string firstname, string lastname) { users2 u = new users2(); u.setusername(username); u.setpassword(password); u.setemailaddress(

android - Stop other apps to gain access to audio while my music player application is running -

i have made music player application in android . can , while player running, if user tries open other music app app should not granted audio service. i tried audio focus handle blocking of incoming calls not sure . can suggest thing?

c# - Recognition issue for window in different thread (tafx) -

we trying use testing automation fx automating basic workflow , testing in our application. record function otherwise works flawlessly except in 1 specific case windows form in question started different thread. i noticed map generates indistinguishable parent form in our application. form of type uiwindow , following designer code same. this.uiwindow2.comment = null; this.uiwindow2.matchedindex = 0; this.uiwindow2.msaaname = null; this.uiwindow2.msaarole = system.windows.forms.accessiblerole.client; this.uiwindow2.name = "uiwindow2"; this.uiwindow2.objectimage = ((system.drawing.bitmap)(resources.getobject("uiwindow2.objectimage"))); this.uiwindow2.ownedwindow = true; this.uiwindow2.parent = this.application; this.uiwindow2.uiobjecttype = testautomationfx.ui.uiobjecttypes.window; this.uiwindow2.usecoordinatesonclick = true; thi

android - BLE - i am not able to read 2 characteristic one of temperature service and another of Battery service at same time -

this code discovering services , characteristic , setting descriptor both temperature , battery characteristic. in starting discovering services temperature , battery. then,i discover characterstic each temperature , battery service , write descriptor both. when run code,the call going oncharactersticchanged , got temperature result. but,call not going on oncharactersticread battery (bluetoothgattservice service : services) { log.e("asd service discoverd", service.getuuid().tostring()); // check service should temperature service or battery service if (service.getuuid().equals(bt_thermo_service) || service.getuuid().equals(bt_battery_service)) { log.e("asd service discoverd", service.getuuid().tostring()); list<bluetoothgattcharacteristic> characteristics = service.getcharacteristics(); // // create compartor

junit4 - Unable to run the jbehave story file through junit -

Image
i creating frame work automation testing using jbehave story files , junit running it. pfb: this class file running code: i have defined path of story file junit not able collect story execution. getting response: org.jbehave.core.io.storyresourcenotfound: story path 'connecteddevicesmanagementpage.story' not found class loader sun.misc.launcher$appclassloader@2f0e140b @ org.jbehave.core.io.loadfromclasspath.resourceasstream(loadfromclasspath.java:44) @ org.jbehave.core.io.loadfromclasspath.loadresourceastext(loadfromclasspath.java:29) @ org.jbehave.core.io.loadfromclasspath.loadstoryastext(loadfromclasspath.java:38) @ org.jbehave.core.embedder.performabletree.storyofpath(performabletree.java:193) @ org.jbehave.core.embedder.performabletree.addstories(performabletree.java:68) @ org.jbehave.core.embedder.storymanager.runstories(storymanager.java:78) @ org.jbehave.core.embedder.embedder.runstoriesaspaths(embedder.java:203) @ com.cdm

Java Google Sheets API example with autoResizeDimensionsRequest -

i'm wondering how use autoresizedimensions in order set columns auto resize. following list<request> requests = new arraylist<>(); autoresizedimensionsrequest autoresizedimensions = new autoresizedimensionsrequest(); requests.add(new request() .setautoresizedimensions(autoresizedimensions)); batchupdatespreadsheetrequest batchupdaterequest = new batchupdatespreadsheetrequest() .setrequests(requests); sheets.spreadsheets().batchupdate(spreadsheetid, batchupdaterequest) .execute(); returns following error message com.google.api.client.googleapis.json.googlejsonresponseexception: 400 bad request { "code" : 400, "errors" : [ { "domain" : "global", "message" : "invalid requests[1].autoresizedimensions: columns dimension supported", "reason" : "badrequest" } ], "message" : "

sql server - SQL Query using inner join -

categorytable code name 1 food 2 non-food existing table consists list of category, example, have 2 food , non-food as challenge, assigning tenants category or categories (multiple assignment, there tenants categorized food , non-food). i used insert tenant , code new table creating output tenantassigntable tenant code tenant1 1,2 tenant2 1 what need do, load tenantassingtable gridview consisting name of categorycode this desired output tenant ccode name tenant1 1,2 food,non-food tenant2 1 food i used inner join in code, limited have string of combined code in code column. select a.tenant, a.ccode, b.name tenantassigntable inner join categorytable b on a.ccode = b.code is there anyway achieve kind of output? know unusual in sql coding challenge desired output concerned , needs have multiple assignment of category single tenant. thanks in advance! think simple; you can like , xml

What is the behavior of the ampersand operator in R's sum(...) function -

below, line script i'm translating r python. i'm more experienced @ python @ r, , i'm running little trouble here: val = sum(l & f==v) let l vector of true/false values. let f vector of trivial values, , v possible value of f test against. expect l , f of same length. f==v part yield boolean array. left question & /ampersand (logical and, according r documentation ) in context. sum() function return sum of boolean array indicates both l , f==v boolean arrays true? or wil sum true values both arrays , add them up? thank in advance! let define several vectors : l <- c(true, false, true, false, true) v <- 1:5 f <- rep(c(1, 4), c(3, 2)) now let see have when decompose line sum(l & f==v) : in line, == has precedence on & : fev <- f==v fev [1] true false false true false then l & fev : lafev <- l & fev [1] true false false false false lastly, sum: sum(lafev) [1] 1 the sum tells how many simul

vba - Make a global variable in Visual Basic for Applications -

in vba access, how make global variable can access , change anywhere? you can declare variable @ global scope declaring in standard module or predeclared class module such worksheet, userform or predeclared class, using public keyword: public myvar string you can declare global variable using deprecated, still valid global syntax, functionally same public global myvar string but note declaring variable public or global make variable accessible across entire project and project refers project, , if project protected, user still query variable immediate window. if must have variable available across project, project, should declare variable in standard module, , include option private module statement make module private project, variables public project only. option private module public myvar string

c# - Command Line Arguments to Azure Webjobs -

i'm in process of migrating couple of jobs scheduled , run through quartz.net azure webjobs. using quartz.net allowed me have (very compact) job classes in same project console program entry point initializing scheduler. now retain structure without having create discrete console application project each , every web job. is there way configure command line argument continuous web-job allow branch internally correct job depending on command line argument? in azure webjobs 1 way create script file each webjob command line arguments: myapplication.exe arg1 arg2 . another select method run current webjob name can environment variable webjobs_name . for triggered webjobs there support command line arguments (per run) in api still unsupported azure portal: https://github.com/projectkudu/kudu/wiki/webjobs-api#invoke-a-triggered-job .

html - Google Fonts loading explained -

i'd know, how google fonts finds out, fonts load. example when use inside css @import '//fonts.googleapis.com/css?family=roboto:300'; it returns css interpreted (the loading of resource blocks browser rendering afaik): /* cyrillic-ext */ @font-face { font-family: 'roboto'; font-style: normal; font-weight: 300; src: local('roboto light'), local('roboto-light'), url(http://fonts.gstatic.com/s/roboto/v15/0ec6fl06luxeywpbsjvxcix0hvgzzqufrduzrpvh3d8.woff2) format('woff2'); unicode-range: u+0460-052f, u+20b4, u+2de0-2dff, u+a640-a69f; } /* cyrillic */ @font-face { font-family: 'roboto'; font-style: normal; font-weight: 300; src: local('roboto light'), local('roboto-light'), url(http://fonts.gstatic.com/s/roboto/v15/fl4y0qdoxyythegmxx8kcyx0hvgzzqufrduzrpvh3d8.woff2) format('woff2'); unicode-range: u+0400-045f, u+0490-0491, u+04b0-04b1, u+2116; } // ...and more i thought, when provide ur

angularjs - Nested directive, where child directive is based on parent attribute -

is possible "tell" directive use specific directive, based on attributes provided first directive? an example: let's have following html <parent-directive child-type="foo" /> and following directive .directive('parentdirective', function () { return { restrict: 'e', scope: { childtype: '@' }, templateurl: 'parent.html' }; }); where parent.html is <!-- html --> <{{childtype}} /> <!-- more html --> and foo directive .directive('foo', function () { return { restrict: 'e', scope: { }, templateurl: 'foo.html' }; }); the above not possible, since directives handled in 2 phases, , childtype isn't linked until second phase, link phase. there way, can this? the goal here use directives display custom bootstrap modals, header , footer of modals same, body should inserted using set of different directives. thanks

linux - undefined reference to symbol '_ULx86_64_step' libunwind.so.8: error adding symbols: DSO missing from command line -

i'm trying compile caffe. make -j4 worked fine. making tests giving following error. debian gnu/linux 8 (jessie) 64-bit g++ --version g++ (debian 4.9.2-10) 4.9.2 gives error on make test -j4 caffe$ make test -j4 cxx/ld -o .build_debug/test/test_all.testbin src/caffe/test/test_caffe_main.cpp ld .build_debug/src/caffe/test/test_solver.o ld .build_debug/src/caffe/test/test_platform.o ld .build_debug/src/caffe/test/test_tile_layer.o /usr/bin/ld: /usr/local/lib/libglog.a(utilities.cc.o): undefined reference symbol '_ulx86_64_step' /usr/lib/x86_64-linux-gnu//libunwind.so.8: error adding symbols: dso missing command line collect2: error: ld returned 1 exit status makefile:609: recipe target '.build_debug/test/test_platform.testbin' failed make: *** [.build_debug/test/test_platform.testbin] error 1 make: *** waiting unfinished jobs.... /usr/bin/ld: /usr/local/lib/libglog.a(utilities.cc.o): undefined reference symbol '_ulx86_64_step' /usr/lib/x86_64-

android - How to establish adb connection over USB between two PCs -

Image
summary (what we've done, we've tried): basically, aim establish adb protocol via usb between 2 linux computers using adb source codes. envinronment ubuntu 16.0.4. there's android-tools-adbd (adb daemon) package ready use in pool source available. there source on link (adbd) compilable gcc option -stc=c++14 supported in 16.0.4 default (or gcc 5.2 ). we able build package source or use already-built 1 using adb connect (tcp/ip dependent). there's no problem on adb connection via tcp/ip if 2 computers connected same network. unfortunately, not able set usb connection between 2 computers a (both male) cable. adb gadget isn't working , none of devices recognize other. can't decide whether there's need explicit driver besides adb gadget. question (real question answered): how set usb protocol between 2 linux computers adb communication can done via usb? is there solution it? [---edit---] notes: going further day day, small issues l

Is SFTP possible in SSIS package without using WinSCP -

i having ssis package ftp. need change sftp, there possibility can use ftp task , sftp, or sftp without using winscp. not out of box. there other tasks available can use sftp library in script, or use sftp powershell command. paid components better of sftp tasks you'll find seem bit ... dated , ui bit clunky. for starters, check ssis sftp task component . depends on sharpssh, library hasn't been updated since 2013 on other hand, posh-ssh , underlying library, ssh.net had release few weeks ago. in case, ended using posh-ssh powershell script because allowed me compare directory listings of remote , local files, detect new files standard powershell operations , download newer/changed files using sftp. for example, following powershell function retrieve both listings , compare them using compare-object command: function get-diffs( $session,$remotepath,$localpath) { $remotefiles=get-sftpchilditem -sftpsession $session -path $remotepath $localfile

Send Email From Java and See That Email in a Web Hosted Email App -

my objective i want emails sent java web app visible in sent folder of web hosted email client. 'log' of emails sent java web app. background i can send email thunderbird email client on mac abc@xyz.co.uk email address , can see in abc@xyz.co.uk account on easily justmail in sent folder. the problem when send email abc@xyz.co.uk using java mail same settings thunderbird, email not appear in abc@xyz.co.uk account on easily justmail in sent folder. please note . email arrive @ to address , not problem actual send process. i have sent emails manually using telnet don't show in justmail either... settings email account / address = abc@xyz.co.uk host = smtp.easily.co.uk port = 1025 authentication required: true user name = username password = ****** so, appear desk-top email clients doing different java mail or telnet... any ideas?

drupal - ckeditor removes <br /> from code, cannot remove second space -

thanks taking interest. here situation: i'm receiving code client contains <br /> (two spaces) in content has passed ckreditor, when displayed ckreditor changes <br /> element supplied code &nbsp . as code supplied third party , cannot changed (without creating unexpected other steps other developers won't expecting, i'd rather avoid str_replace based solutions) cannot remove space <br /> turning <br /> detailed in this answer . here abbreviated example of receive: <h2 dlpe-id="74">el plan perfecto0000 para una promoción única</h2> <br /> <br /> <br /> <div class="swiper-container" dlpe-id="78">... and output ckeditor: <h2 dlpe-id="74">el plan perfecto0000 para una promoci&oacute;n &uacute;nica</h2> <br /> <br /> &nbsp; <div class="swiper-co

javascript - Typescript: Setting members of object via callback fails strangely -

i have strange issue did not find cause yet. try show textbox component in angular 2, can give message, label button , callback invoked, when button clicked. here component: @component({ selector: 'text-box', templateurl: './textbox.component.html', styleurls: ['./textbox.component.styl'] }) export default class textboxcomponent implements afterviewinit { content: string; btncaption: string; callback: () => void; constructor(@inject(textboxservice) private service: textboxservice) { } ngafterviewinit(): void { this.service.init(this.show); } public show(message: string, btncaption: string, callback: () => void) { this.content = message; this.btncaption = btncaption; this.callback = callback; // (1) // set opacity 1 } public btnonclick() { // (2) this.callback(); this.dismiss(); } public dismiss() { // set opacity 0 } } components singletons , cannot injected, cannot invo

html - Why does the iframe tag have a closing tag? -

why iframe tag have closing tag? since there no content expected between 2 tags (the content empty), why iframe tag not unique, embed tag, link tags, meta tags (img, br, hr, etc.)? computer language should not essential? have not found answer in w3c site: the iframe element sorry stupid question. answers. juri since not expected content between 2 tags (the content empty) there is. expected put alternative content displayed in browsers can't, or won't, load framed content. (at least, case before html 5, seems have forgotten feature, still needs support existing implementations in browsers).

jquery - load one page into another page -

i have used below code load 1 page another <body> <ul> <li><a id="work" href="">work</a></li> <li><a id="profile" href="">profile</a></li> </ul> <div id="container"></div> <script> $("#work").click(function(){ event.preventdefault(); $("#container").load("work.html"); } $("#profile").click(function(){ event.preventdefault(); $("#container").load("profile.html"); } </script> </body> in loaded page want load 3rd page same script not working 3rd page work.html <body> <div id="container"> <button id="btn">click me</button> </div> <script> $("#btn").click(function(){ event.preventdefault();

math.h - Using pow() function throws undefined reference error in C -

why following bit of code work in c: int res = pow(2, 3); printf("%d\n", res); while other doesn't? int = 2; int b = 3; int res = pow(a, b); printf("%d\n", res); even if try double = 2; double b = 3; double res = pow(a, b); printf("%f\n", res); i an undefined reference `pow' what doing wrong? when works, it's because calculation done compiler (and included in binary if wrote out) printf("8\n"); when doesn't work, because pow function included in math library , math library isn't linked binary default. math library linked, if compiler gcc, use gcc ... -lm ... with other compilers, should same :) read documentation

scala - How to access local files in Spark on Windows? -

i using spark on windows . know in *nix , accessing local file code likes this: val textfile = sc.textfile("file:///usr/local/spark/readme.md") but how can access local file on windows ? have tried following methods: val logfile = "c:\spark-1.3.1-bin-hadoop2.4\readme.md" val logfile = "file\\c:\spark-1.3.1-bin-hadoop2.4\readme.md" but can't work. unfortunately in windows have escape "\" . try: "c:\\spark-1.3.1-bin-hadoop2.4\\readme.md"

php - GLPI plugins not working on virtual host (Apache) -

i've installed glpi on ubuntu 14.04 server running latest version of apache2. works fine until create virtual host run glpi. i'm able log in, once try hit of plugins, [thu sep 22 10:57:42.016046 2016] [authz_core:error] [pid 11162] [client 10.145.0.77:44057] ah01630: client denied server configuration: /var/www/html/glpi/plugins/consumables/consumables.js, referer: http://glpi.domain.com/front/backup.php i've verified through multiple channels permissions on folders correct, , directives set in .conf file: <virtualhost _default_:80> documentroot /var/www/html/glpi/ serveradmin webmaster@localhost errorlog /var/log/apache2/error.log customlog /var/log/apache2/access.log combined <directory "/var/www/html/glpi/"> options followsymlinks allowoverride require granted </directory> servername glpi.domain.com </virtual

javascript - how to navigate one page to another page when click on button/link in html5 -

i have link/button in html page . when click button have populate page data model popup in current page. used bootstrap model popup . possible without call server navigate page , wihtout jquery/any server side technologies. need used simple java script this. if want populate modal information, , want information persist (not append html on it). yes, you'll need in manner communicate server can update content. actually there's no way populate persistent content, given user action, without talking server . (i.e. refresh page , still there see) since asked html5 solution, have fetch api. fetch designed easier , broader xmlhttprequest. quote mdn: the fetch api provides interface fetching resources (e.g., across network.) seem familiar has used xmlhttprequest, new api provides more powerful , flexible feature set. my guess want post information on modal. supposing want send form data modal: you'll want use this: fetch('http://your-website-g

asp.net - CRM 2016 web apis with C# -

we have crm 2016 on premise , want consume api using c# : var credentials = new networkcredential(username, password); httpclient client = new httpclient(new httpclienthandler() {credentials = credentials}); client.baseaddress = new uri("https://xxx.elluciancrmrecruit.com/api/data/v8.0/datatel_events"); client.defaultrequestheaders.accept.add(new mediatypewithqualityheadervalue("application/json")); httpresponsemessage response = client.getasync("datatel_events?$orderby=datatel_eventname").result; if (response.issuccessstatuscode) { var yourcustomobjects = response.content.readasstringasync(); } else { //something has gone wrong, handle here } but return html page says try later instead of json response. you should query odata endpoint information looking assuming date1_events custom entity (although naming convention seems off). as example query contacts : var credentials = new networkcredential(username, password); var client

java - AbstractRememberMeServices throwing Nullpointer Exception -

i using spring-security-web-3.2.5 jar , java 8 , spring-web-mvc 4.1.7 in hybris 6 platform. i getting nullpointer exception in applicationfilterproxy , in class abstractremembermeservices . when debug class observed logger object null , when code trying perform following operation , throws nullpointer exception this.logger.debug("interactive login attempt unsuccessful."); exception stacktrace : severe: servlet.service() servlet [dispatcherservlet] in context path [] threw exception [error while processing internal filterchain. exception occurred @ chain position: 9 of 16. current filter: 'filterchainproxy[filter chains: [[ ant [pattern='/_ui/**'], []], [ ant [pattern='/checkout/**'], [org.springframework.security.web.access.channel.channelprocessingfilter@f6a714c, org.springframework.security.web.context.securitycontextpersistencefilter@3aa9c43e, org.springframework.security.web.context.request.async.webasyncmanagerintegrationfilter@1

datatables - How to display the column headers dynamically in jquery data table -

i have below code displaying array of objects having property , value in data table. here column headers hardcoded seen in below html code. how can make dynamic based on input dataset? var dataset = [{ "latitude": 18.00, "longitude": 23.00, "name": "pune" }, { "latitude": 14.00, "longitude": 24.00, "name": "mumbai" }, { "latitude": 34.004654, "longitude": -4.005465, "name": "delhi" },{ "latitude": 23.004564, "longitude": 23.007897, "name": "jaipur" }]; $(document).ready(function() { $('#example').datatable( { data: dataset, "columns": [ { "data": "name" ,"title":"custom name"}, { "data": "latitude" }, { "data": "longitude" }, ] } ); }

Mule Can not start XA transaction -

hi have 3 flows set accept message http inbound endpoint, send vm endpoint , again various other vm endpoints while being sent jms outbound endpoint. i need configure transactionality between these connectors , using xa-transaction actions jms endpoint having <jms:transaction action="always_join" /> configured. doesn't seem working when message comes in on http inbound endpoint , goes first vm endpoint get message : can not start xa transaction code : mule_error-95 exception stack is: 1. object of type "javax.transaction.transactionmanager" name "transaction manager" not available in registry (java.lang.illegalstateexcep tion) org.mule.transaction.xatransaction:56 (null) 2. can not start xa transaction (org.mule.api.transaction.transactionexception) org.mule.transaction.xatransactionfactory:37 ( http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transaction/transactionexception.html )