Posts

Showing posts from May, 2014

How to make custom URLs for wordpress + woocommerce product tabs -

i try find way make woocommerce product tabs have own link follows: exmaple wordpress plugins link page: wordpress.org/plugins/twb-woocommerce-reviews/reviews wordpress.org/plugins/twb-woocommerce-reviews/tabsnamehere mysite page example: https://hobbyant.com/p/sale-26702/ the product page have 3 tabs,description,reviews,shiping & payment want of tabs have custom urls links follows: hobbyant.com/p/sale-26702/reviews hobbyant.com/p/sale-26702/video hobbyant.com/p/sale-26702/specs but not have : hobbyant.com/p/sale-26702/description hobbyant.com/p/sale-26702/shipping-payment sorry ,i can not post more link in post.

python - Looping over all objects and removing object where ids match? -

i have number of lists each list contains number of users, , remove user lists. i trying in views.py not workin , i'm not sure why. started looping through lists, each list check if user belongs list, remove user list. otherwise set message. here code this: def deluserfromlist(user_id): user = user.objects.get(pk=user_id) list_id in list.objects.all() : if user.user_lists.filter(pk=list_id).exists(): list_id.user.remove(user) message = "success!" else: message = "user not exist on list!" what doing wrong here? not ok each list check whether user has list , remove? thanks help! edit: missing from list.models import list in views.py file. based on this comment : def del_user_from_lists(user): user.user_lists.through.objects.filter(user_id=user.pk).delete()

Get Cases in Business Catalyst REST API -

business catalyst has push notification new customer inquiries sends post request object id, e.g. objectid=1234567&objecttype=2001 the answer this question use soap api(legacy) request details of case. is there way using new rest api? https://docs.worldsecuresystems.com/reference/rest-apis/index.html there no documented method cases or case endpoint. if not, solution wil mix api calls being used . some of api's haven't been updated v3 yet (rest) unfortunately still need use soap endpoint cases api.

xampp - 2003 can't connect to mysql server on 'localhost' 10013 using navicat -

i trying create connection mysql using navicat getting error. using following settings host/ip address: localhost port: 3306 username: root password: you can whether right checking user&password try changing localhost 127.0.0.1 actually,i think can sign in mysql client same in navicat work.

html - Swiping on webpage makes browser go to previous page -

i'm trying add swipe functionality lightbox2. works, whenever swipe back, browser goes previous page (i think it's feature on touchscreen computers). here script i'm using capture swipe jquery(document).ready(function () { $(".lb-container").on("swipeleft",function(){ $('#lightbox a.lb-next').trigger('click'); }); $(".lb-container").on("swiperight",function(){ $('#lightbox a.lb-prev').trigger('click'); }); }); thanks edit: i getting following error: unable preventdefault inside passive event listener due target being treated passive. see https://www.chromestatus.com/features/5093566007214080 swiperight , swipeleft not events in jquery found in jquery mobile (unfortunately last updated in 2014). add jquery mobile page or use plugin touchswipe add swipe direction events.

Accessing Google Maps Navigation from Android Application -

i know question has been asked multiple times, i'm stuck. trying use intent pass edittext value google maps use outside of app. have basic syntax need, not sure pass in address. i'm wanting use regular address , not latitude/longitude. the code have launch google maps is public void sendmessage(view view) { intent intent = new intent(android.content.intent.action_view, uri.parse("http://maps.google.com/maps?daddr=address")); startactivity(intent); } and xml value want passed in... <edittext android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/addressedittext" android:layout_weight=".5" android:layout_marginright="50dp" android:layout_marginbottom="-10dp" android:textcolor="@android:color/primary_text_light" android:singleline="true" android:padding=

php use of decimal exponent -

i working in php , using mathcad formulate equation. equation requires number raised irrational exponent in exponent iterates decimal. exponent includes variable array , other decimals end decimal through each array iteration. can't equation output. i using $delta_graph = .1;$var1 = .497;# $s = if lower: shift right , higher. $var2 = 109.94;# $e = if lower: right , left higher @ diff. rates. $var3 = 3.615;# $m = if higher: shift left , lower , flatten left. $data = array(); ($x = 0; $x <= 120; $x+= $delta_graph)# $x + n = if higher: curve shifts left , higher. $data[] = array('', $x, $sbs_now2 + ((19050.6/$x*$var1*sqrt(2*m_pi))*(pow($var2,-.5*pow(log($x+3.6)-$var3,2))/2*pow($s,2))-0.041)); # first constant: if higher: peak higher final constant: if higher: curve lower , $x variable array iterates decimals. exponent of first pow decimal. second pow has 2 exponent. decimal allowed exponent, there missing, , if not, there hack? my research, here , on inter

javascript - Change color of specific word got from script -

i'm trying adapt code change color of single word, don't know how. the original code is crypt_single_getpar = eval('(' + httpget("https://api.cryptonator.com/api/ticker/" + crypt_single_base_currency.match(/.*?\(([0-9a-z]+)\)/i)[1] + "-" + crypt_single_target_currency.match(/.*?\(([0-9a-z]+)\)/i)[1]) + ')'); and if (crypt_single_getpar.success != false) { if (crypt_single_getpar.ticker.price > 1) crypt_single_price = math.round(crypt_single_getpar.ticker.price * 100) / 100; else crypt_single_price = crypt_single_getpar.ticker.price var crypt_single_text_style = '<font style="color:#cc0000;"><b>&darr;</b></font>'; if (crypt_single_getpar.ticker.change >= 0) { crypt_single_text_style = '<font style="color:#009900;"><b>&uarr;</b></font>'; } document.write('\ <div class="cryptonatorwidget" style="borde

powerbi - TOTALMTD Measure is not working in Power BI Dax -

Image
i creating power bi report have 1 date table , table, in have 2 columns date column , daily target. need create mtd measure sum current month date daily targets. using formula not returning correct result. here formula using: mtd-measure = calculate(sum(groupbytableformtd[max daily target]),datesmtd(tbldate[date])) here data table. please me write mtd measure. thankful you. msdn: totalmtd function (dax) mtd-measure = totalmtd(sum(groupbytableformtd[target]),groupbytableformtd[date],all(table5))

regex - How to use REGEXP in mysql for matching words from a text -

i have mysql query : select name table_name name '%custom%' limit 10 it retruns me 2 rows custom table. i want records contains either of word text c cu cus cust usto stom tom om m also. i tried below query : select name table_name name '%custom%' or name regexp 'c|cu|cus|cust|usto|stom|tom|om|m' limit 10 above query returning me 7 records these 7 records not have such 2 records 1st query result have. how that? or other way these result in mysql? edit : here want order maximum substrings matches in second query. try this: select name table_name name regexp 'custom' limit 10; there no need of like regexp , regexp slower like. if table have many records regexp quesries slower.

python - Converting optparse to argparse -

using optparse, have: opts, args = parser.parse_args(sys.argv[1:]) which feeding function accepts opts: func(opts,sys.argv) i'm trying use argparse, formatting argparse different: args = parser.parse_args(sys.argv[1:]) which doesn't allow me feed opts function. i wondering if there's way use argparse while maintaining opts feed function. i'm using python 2.7. you can use argparse in similar way optparse . the documentation can see need prefix arguments either - or -- , becomes optional parameter. here's example documentation: parser = argparse.argumentparser() parser.add_argument('-f', '--foo') parser.add_argument('bar') args = parser.parse_args additionally, can change prefix chars if program needs have options prefixed different charaters: parser = argparse.argumentparser(prefix_chars='+') parser.add_argument('+f', '++foo') parser.add_argument('bar') args = parser.par

video streaming - JWPlayer 7 HLS Stream not working in Chrome -

i'm using enterprise self hosted version of jwplayer 7.10.4. use m3u8 hls streams on site. all browsers work except chrome. displays error: "error loading player: no playable source found" the version jwplayer 6 , same stream works fine in chrome. test page: http://myndos.com/deniz/test.php any ideas? your videos work fine in jw stream tester: https://developer.jwplayer.com/tools/stream-tester/ however, looks have free account, , hls works jw premium account or higher.

Is it possible to Migrate MVC ".Net framework 4.5" application to "ASP.NET MVC CORE". If yes then how? -

i have existing mvc web application build using .net framework 4.5 in visual studio 2015. want migrate application new framework i.e asp.net mvc core using visual studio 2015 without installing other framework tool or something. yes possible. 1) create new empty asp.net core web app same name previous project. namespace match. 2) install microsoft.aspnetcore.mvc , microsoft.aspnetcore.staticfiles nuget packages. asp.net runtime modular, , must explicitly opt in serve static files 3) open .csproj file , add prepareforpublish target: example <exec command="bower install" /> </target> 4) open startup.cs file , change code match following: namespace webapp1 { public class startup { public void configureservices(iservicecollection services) { services.addmvc(); } public void configure(iapplicationbuilder app, ihostingenvironment env, iloggerfactory loggerfactory) { lo

php - LDAP authentification in Laravel -

i in charge of creating new laravel project authentication made our ldap. pretty new laravel excuse me lack of comprehension i trying use library : adldap2-laravel i followed this documentation build authentification scratch. so config/app.php have lines added //in providers array adldap\laravel\adldapserviceprovider::class, adldap\laravel\adldapauthserviceprovider::class, //in aliases 'adldap' => adldap\laravel\facades\adldap::class, and config/auth.php (i tried use adldap driver, without success) 'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => app\user::class, ], 'users' => [ 'driver' => 'adldap', 'model' => app\user::class, ], ], everything looks right. can not auth, have error : these credentials not match our records. when use code use adldap\laravel\facades\adldap; $username = "myu

chromecast - Google Cast sender iOS app test -

i have no receiver device other why testing cast sender app. i have download sample code form google cast demo app. thanks in advance.

jquery - How to prevent original site url from being shown on links I create -

i managed data stored in different variables , manually create link data coming variables. my site link can see here first select option first dropdwon, choose dates, click on black button, , afterwards, click on "nothing here", site should generate url different website. example: www.lekkeslaap.co.za/akkommodasie-in/saab?q=saab&start=11+4+2017&end=17+4+2017&pax=2 but happening before url, giving me main site url link looking wrong: http://wordpressdev.burnnotice.co.za/www.lekkeslaap.co.za/akkommodasie-in/saab?q=saab&start=25+4+2017&end=30+4+2017&pax=3 how can prevent main site url(my site) coming before link want redirect? i did in pen here here js: $(document).ready(function() { var txtfromdate, txttodate; $("#txtfrom").datepicker({ numberofmonths: 1, onselect: function(selected) { txtfromdate = selected; var dt = new date(selected); dt.setdate(dt.getdate() + 1); $("#txtto").

json - cJSON c++ - add item object -

i'm using cjson library ( https://github.com/davegamble/cjson ). body example request json this: { "user": { "name":"user name", "city":"user city" } } i add objects , work: cjson *root; cjson *user; root = cjson_createobject(); cjson_additemtoobject(root,"user", user = cjson_createobject()); cjson_addstringtoobject(user, "name", name.c_str()); cjson_addstringtoobject(user, "city", city.c_str()); but have body json little different: { "user": { "informations:"{ "name1":"user name1", "name2":"user name 2" } } } and try add object this: cjson *root; cjson *user; cjson *info; root = cjson_createobject(); cjson_additemtoobject(root,"user", user = cjson_createobject()); cjson_additemtoobject(user,"informations", info = cjson_createobject()); cjson_addstringtoobject

java - Jackson - infinite loops deserializing -

i using jackson deserialize following json content: { "contacts": [ { "localid": 45, "serverid": 0, "numbers": [ "1111", "2222" ] }, { "localid": 11, "serverid": 0, "numbers": [ "5555" ] } ] } my java classes public class contacts implements serializable { private list<contact> contacts; ... public getter , setter here } and @jsonserialize(using = contactserializer.class) public class contact implements serializable { public long server_id; public long local_id; public list<string> numbers; ... public getter , setter here } there no reference contact contacts. there additional attributes in contact not serialized on way server (request) , not send server (response). excluded them using @jsonignore. receive json mentioned above answer serv

differences between new and malloc in c++ -

this question has answer here: in cases use malloc vs new? 18 answers #include <iostream> #include <cstdlib> using namespace std; class box { public: box() { cout << "constructor called!" <<endl; } void printer(int x) { cout<<x<<" printer"<<endl; } ~box() { cout << "destructor called!" <<endl; } }; int main( ) { box* myboxarray = new box[4]; box* myboxarray2 = (box*)malloc(sizeof(box[4])); myboxarray2->printer(23); *myboxarray2; *(myboxarray2).printer(23); return 0; } the problem when use 'new' constructor printed out when simple derefrence pointer myboxarray2 constructor not printed , neither funtion printer printed. why when use -> funnction printer runs not when use e

c++ - static variable in inline function -

this question has answer here: static variables in inlined function 9 answers i'm interested in happens "under hood" when following inline function called in several translation units. namespace some_name { inline const float& get_float() { static const float = 5.0f; return a; } } my intention create externally linked variable 'a', can used across code (if header namespace included), wanted prevent change variable. testing seems succeeded, i'm interested in happens when call function first time , next several times. additional question: polluting global namespace static variable declaration/definition? but i'm interested in happens when call function first time , next several times. the initialization static (doesn't depend on @ run-time), performed @ start of program. calls return

search term with hyphens are not searchable in sharepoint 2013 -

i have search application provides search services. technically uses sharepoint 2013 search functionality , display results using ui technologies. here have textbox user can enter search term, perform search , results sharepoint api. issue here unable search links contains hyphens. example : scenario 1: when user texts link in textbox " https://cis.somedomain.com/about/pages/quality-and-risk-management.aspx " , perform search, cannot search results sharepoint 2013. scenario 2 : when user texts link in textbox " https://cis.somedomain.com/rr/pages/assurance_sas.aspx " , perform search, able results. problem : if link contains hyphens search results not appearing , search results appearing if link contains uderscore. is limitation of sharepoint ? have configurable solution, please me out on one. in advance. to knowledge sharepoint not have such limitation. if understand correctly, when user performs search page has hyphen in url, results not show

vba - Unable to work with word applications from excel -

Image
i trying open word document excel stuck @ first line when using below code. have added reference still compile error user- defined type not defined. dim oapp word.application dim osec word.section dim odoc word.document set appword = createobject("word.application") set oapp = new word.application set odoc = oapp.documents.add you need add reference in vba context opening vba (developer tab, click: visual basic), select workbook , click menu: tools, references. in references list find word object library , make sure checked before clicking ok now try again, , don't forget make oapp visible! : sub test() dim oapp word.application dim osec word.section dim odoc word.document set appword = createobject("word.application") set oapp = new word.application set odoc = oapp.documents.add oapp.visible = true end sub

r - Error while computing Confusion matrix - Neuralnet package -

data used (sample) empn target dailyrate dfrmhom empnumber target dailyrate dfrmhome education employeecount age hourlyrate jobinvolvment joblevel 1 0 1 1 1 -1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 3 0 1 -1 1 1 -1 1 1 1 4 1 1 1 1 1 1 1 1 1 5 0 1 -1 1 1 -1 1 1 1 6 1 1 -1 1 1 -1 1 -1 1 7 0 1 1 1 -1 1 1 1 1 8 1 1 1 1 1 1 1 1 1 9 1 1 -1 1 1 -1 1 1 1 10 1 1 1 1 1 1 1 1 1 11 0 1 -1 1 -1 -1 1 1 1 12 0 1 1 1 -1 1 1 1 1 13 0 1 1 1 1 1 1 1 1 14 1 1 1 1 1 -1 1 1 1 15 1 1 1 1 1 1 1 1 1 16 1 1 -1 1 1 -1 1 -1 1 17 0 1 1 1 1 -1 1 1 1 18 0 1 -1 1 1 -1 1 1 1 19 0 1 1 1 -1 1 1 1 1 20 0 1 -1 1 1 -1 1 1 1 21 0 1 1 1 -1 1 1 1 1 22 0 1 1 1 -1 1 1 1 1 rcode : library(neuralnettools) #read data train , test data ctdf = read.csv("project-attrition.csv",header=t,na.strings=c("")) # let set differnt seeds , extract 70 % of poulation arriving @ development, test , holdout samples ctdf.dev = sample.split(ctdf$target,splitrati

How to read keyboard input while form is in the background c# -

i need able read keyboard input while form in background (not hidden). there simmilar questions here need albe determine witch key pressed , need value "key" not int (stuff 0x00357 , have no idea is). need check if key determined user pressed. how can that?

asp.net mvc - Custom Authorization with Parameters Web API -

can show me how use parameter in customize authorizeattribute? like this: [authorize(role="admin,supervisor")] [authorize(user="me,you")] [authorize(action="abc,def")] this code , dont have idea yet how add parameter here. public class customauthorizeattribute : authorizeattribute { applicationdbcontext _context = new applicationdbcontext(); public override void onauthorization(httpactioncontext actioncontext) { if (authorizerequest(actioncontext)) { return; } handleunauthorizedrequest(actioncontext); } protected override void handleunauthorizedrequest(httpactioncontext actioncontext) { if (((system.web.httpcontext.current.user).identity).isauthenticated) { actioncontext.response = new httpresponsemessage() { statuscode = httpstatuscode.unauthorize

javascript - window.setInterval calls the referenced function only once and stops (from within a type = specific implementation) -

i'm experimenting timer (javascript type). use interval instead of timeout . therefore made timer type 3 parameters: duration in milliseconds, interval in milliseconds , jquery object attached timer. within inittimerplugin() function create jquery object, not added dom-structure yet (just try if events try raise, work), initialize global timer of timer type, define duration of 30 seconds, interval of 1 decisecond , attach jquery timer timer . call start function (which function of timer type). sets interval , calls tick function , expect tick long total duration not equal 0. problem is, ticks once. i know there lots of questions , answers intervals in stackoverflow, none of them use type implement timer, , cannot find solution problem. explain what's reason timer doesn't keep tick -ing. var timer; var timer = function (ms, interval, $timer) { this.ms = ms; this.interval = interval; this.$timer = $timer; this.counter = null; this.start

c# - Cascade Update on Entity Framework -

i update account object has child accountprofile i'm getting exception saying attaching entity failed because entity of same type has same primary key value... i know how update these entities accountprofile since can add/remove beneficiary objects list. possible cascade update? or create method handles these kinds of entity updates. account class: public class account(){ public int accountid { get; set; } public string username { get; set; } public int roleid { get; set; } public int profileid { get; set; } public virtual accountprofile profile { get; set; } public virtual role role { get; set; } } accountprofile class: public class accountprofile { public int profileid { get; set; } public string fullname { get; set; } public virtual icollection<beneficiary> beneficiaries { get; set; } } beneficiary class: public class beneficiary() { public int beneficiaryid { get; set; } public string name { get; set; } }

mysql - Fetch two table data in single query and data should include only that row which has max rank -

i have 2 table users(id,name,email) and comments(id,user_id,rank,content) . in comments table have user_id foreign key user table. want join users table comments table , want user table data along comment data(id,rank,content) highest rank only. tried mysql max function data return not correct. can guide how can achieve this. input : table 1: users attributes id, name, email table 2: comments attributes id, user_id, rank, content output : user table data comment table alongside having highest rank. user_id | name | email | comment_id | rank | comment | you can using join derived table has highest ranks. select u.id, u.name, u.email, c.id, c.rank, c.content users u inner join comments c on u.id = c.user_id inner join (select user_id, max(rank) highest_rank comments group user_id) x on x.user_id = c.user_id , x.highest_rank = c.rank here i'm using derived table x record highest comment rank each user, , using limit comment returned. this p

Spring data page object json response not having reference object info -

i have org entity has fk relation ownergroup entity. @entity @access(accesstype.field) @table(uniqueconstraints = @uniqueconstraint(columnnames={"appname","appid"})) public class org { @id @column(name = "id") @generatedvalue(strategy = generationtype.identity) private int id; /*@genericgenerator(name = "sequence_org_id", strategy = "com.ciphercloud.ae.generators.orgidgenerator") @generatedvalue(generator = "sequence_org_id") @column(name="org_id") private string orgid;*/ @notempty (message = "org username mandatory") private string username; @notempty (message = "org password mandatory") private string password; private string securitytoken; @genericgenerator(name = "sequence_app_id", strategy = "com.ciphercloud.ae.generators.appidgenerator") private string appname; private string appid; @notb

loopbackjs - Change Express static path dynamically -

in express setup static folder serve files through middleware. have understood set throughout applications lifecycle. is possible set somewhere in server.js each request instead? instance requests uses "clientnew" folder while other requests uses "client". want able see difference through session-id, not through url. so while not recommended approach "open" application lots of users due optimization caching , response time solved doing pointer static handler. exports.createdynamicpath = function(app, path) { var static = app.loopback.static(path, { etag: false}); var dynamicpath = function (req, res, next) { return static(req, res, next); } dynamicpath.setpath = function (newpath) { static = app.loopback.static(newpath, { etag: false}) } return dynamicpath; } exports.determineclient = function(app, dynamicpath){ return function(req, res, next) { if(req.cookies && req.cookies.version != "client2"

Error:Execution failed for task ':app:transformClassesWithDexForRelease' - Android studio -

i have created android application using android studio, , works fine when run android emulator or device connected development machine, when try install apk build/outputs/apk application crashes on opening.also tried generate signed apk android studio build -> generate signed apk (both release , debug) fails generate apk following error: error:execution failed task ':app:transformclasseswithdexforrelease'. > com.android.build.api.transform.transformexception: com.android.ide.common.process.processexception: java.util.concurrent.executionexception: com.android.dex.dexexception: multiple dex files define lorg/intellij/lang/annotations/identifier; my build.gradle file: apply plugin: 'com.android.application' android { compilesdkversion 25 buildtoolsversion "25.0.0" defaultconfig { applicationid "com.aitrich.android.modern.photo" minsdkversion 14 targetsdkversion 25 multidexenabled true

How to plot linear regression with two categorical predictors in R? -

i have data-set looks in short version: > means_rt snum realratio instratio rt 3 0 0 358.9782 4 50 30 314.2908 5 30 30 330.7382 6 0 0 335.9542 7 30 50 327.9859 8 50 50 302.7551 9 30 30 326.9188 10 30 30 343.7648 11 0 0 384.5667 12 50 30 319.3677 13 30 50 358.409 14 30 30 300.7474 where snum participant number, realratio , instrratio categorical variables , rt (reaction time) numericle variable. ran regression model: fit1 <- lm(formula = rt ~ realratio + instratio + realratio*instratio, data = means_rt) summary(fit1) call: lm(formula = rt ~ realratio + instratio + realratio * instratio, data = means_rt) residuals: min 1q median 3q max -85.206 -22.920 -0.38

javafx - How to append more than two folders to user.home java -

guys! i'm trying append folder user.home property. working nice, while i'm using 1 additional folder. when try make 2 additions (so looks user.home+folder1+folder2+folder3) trows --- java.lang.illegalargumentexception: folder parameter must valid folder--- . though there restriction, can't find out where. string fullroute = null; file homedir = new file("mlog"); if (!siteco.geteditor().gettext().isempty() && !incidate.geteditor().gettext().isempty()) { homedir.mkdirs(); fullroute = system.getproperty("user.home") + file.separator + //savevarto.getlastvisiteddirectory() + savevarto.addpath(siteco.getvalue().tostring()) + file.separator + savevarto.addpath(incidate.getvalue().tostring()); } else {homedir.mkdirs(); // file.separator+homedir.tostring() - without fullroute = system.getproperty("user.home")+file.separator+

c# - xml file to mysql database -

i converting 3d objects 1 xml file, write hard drive, read hard drive , upload mysql database blob. delete created xml.file hard drive. somehow possible (create xml file/upload database) don't have write drive @ first, read it, delete it? if somehow create xml file , pass directly without need save on drive. ideas? here write xml file drive (edited): public stream writexml(list<object> gridentities, string filename) { xdocument doc = new xdocument(); xelement root = new xelement("viewportlayout"); xelement xentities = new xelement("entities"); xentities.add(...); root.add(xentities); doc.add(root); //var path = string.format("c:\\users\\np\\desktop\\saves\\{0}", filename); //doc.save(path); stream stream = new memorystream(); // create stream doc.save(stream); // save xdocument stream stream.

java - Classpath issue with modular project -

i have multi module project (play-sbt-java) structured follows myapplication | |---- module_a -- com/package-a/... |---- module_b -- com/package-b/... |---- module_c -- com/package-c/... | | |---- lib/mysubapplication.jar mysubapplication | |---- com/package/myclass.java and contents of class in mysubapplication follows import com.package-a..... import com.package-b..... import com.package-c..... public class myclass{ // ..... } and want create jar of mysubapplication , add library in myapplication , class loaded via reflection @ runtime. every time run it, land noclassdeffounderror . , classes being complained imports myclass i.e com/package-a/... , com/package-a/... , com/package-/... though still part of multi-module project caused by: java.lang.noclassdeffounderror: com/package-a/... @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(class.java:2

documentation - sonar-maven-plugin 3.3.0.603 changelog -

is these change find changelog/release note 3.3.0.60 34? https://github.com/sonarsource/sonar-scanner-maven has broken link http://sonarsource.github.io/sonar-maven here release notes: https://jira.sonarsource.com/jira/secure/releasenote.jspa?projectid=10977&version=13419 the ".0.603" part doesn't appear in version number because "603" build number.

linux - DNF fails to synchronize cache when using --installroot option -

i trying install bunch of software in dummy root, can copy new systems quickly. whenever use dnf install or dnf builddep --installroot option fails synchronize cache repositories. i thought it's missing configuration, copied yum , dnf configuration files installroot dir: cp /etc/dnf/dnf.conf /path/to/root_fs/etc/dnf cp /etc/yum.conf /path/to/root_fs/etc/ cp -r /etc/yum.repos.d/ /path/to/root_fs/etc/ but still is sudo dnf -c $root_fs_dir/etc/dnf/dnf.conf install gcc --installroot=$root_fs_dir -releasever=23 error: failed synchronize cache repo 'updates' dnf works fine updating host system. how configure dnf install packages different root dir. dnf not clever , needs releasever if installs in chroots ( bug ). miss single - in front of option: sudo dnf -c $root_fs_dir/etc/dnf/dnf.conf install gcc \ --installroot=$root_fs_dir --releasever=23 but release 23 eol mirrors not have exist anymore. should use supported release version.

Send HTTP request with GWT-RPC call via Python -

i need initiate action on server via sending http request gwt-rpc call in body section. i'm new in gwt subject please forgive lack of knowledge. in java able perform action via sending http post request proper headers , gwt-rpc in body tried same in python requests library. unfortunately, when sending gwt-rpc call got response: //ex[2,1,["com.google.gwt.user.client.rpc.incompatibleremoteserviceexception/3936916533","this application out of date, please click refresh button on browser. ( malformed or old rpc message received - expecting version between 5 , 7 )"],0,7] i read few topics: manually generating x-gwt-rpc python , com.google.gwt.user.client.rpc.incompatibleremoteserviceexception and understood there's no way send gwt-rpc call other platform java without additionall effort. please correct me , advise if i'm wrong.

i want to train luis ai with sufficient utterances uploaded through luis api -

i new luis ai. train luis bot users wants buy books online. possible enter i want xyz , xyz book or i want abc , abc author. can write find , find out , search , searching , looking , would see , would find or want write. my requirement begin excel-sheet utterances , entities , when upload it, click on train, application should trained enough handle such user input, @ least 90%. the problem here how should write utterances handle huge probability of user input. have approx 65 utterances includes relevant , diverse utterance still not getting trained handle user input. please suggest me how proceed utterances meet requirement. scientist take 30 minutes of conversation or 200 utterances enough sample conduct research [1] order of magnitude estimate know , compare ourselves to. now, variability of incoming utterances, 1 must find origin of similar requests. case, sites yahoo answers great finding usual structure of requests on topic work into. suggest find place p

clarion - Why does it say I'm missing some dll's when they are actually there? -

so i'm working in clarion 6 , problem when make application , try make , run says it's missing dll's. couse clarion 6 doesn't support 64 bit system's im working in virtual machine(windows xp) run oracle vm virtual box. noticed when build application , go folder of application can put missing dll's clarion 6 installation folder , run normaly. still isn't way application meant started. clarion6 relies on path point location of dependant dlls during development. usually, minimum, expect see in path environment variable: c:\clarion6\bin;c:\clarion6\3rdparty\bin; of course when distribute application need determine dlls needed , ship application.

sql - Arel (Rails) Is it possible to make complex query? -

i need create query db using any/all . after research arel possibilities found out arel doesn't have short commands (like eq , lt , gt etc) has arel::sqlliteral 1 example. me not obviousl how can use classic query this: select column_name(s) table_name column_name operator (select column_name table_name condition); instead of query in example. show me how should like? you may activerecord methods, without usage of arel: sub_query = model.select(:column_name).where(condition).to_sql model. select("column_name(s)"). where("column_name operator (#{sub_query})")

excel vba - VBA - Storing a range into a Range Property on a user class -

i have class has following definition: private pvtrngtest1 range public property rngtest1() range set rngtest1 = pvtrngtest end property public property set rngtest1(byval rng range) set pvtrngtest1 = rng end property when i'm using class, i'm trying: sub findalltablesonsheet(osh worksheet) dim olo listobject each olo in osh.listobjects msgbox "table found: " & olo.name & ", " & olo.range.address dim sr sheetranges set sr = new sheetranges set sr.rngtest1 = olo.range msgbox sr.rngtest1.address next end sub i error: object required (on last line within next statement) can please explain? believe i'm setting range property correctly, no error when set it, cannot access address of property. as https://stackoverflow.com/users/3598756/user3598756 said above, typo. been 10 years since looked @ vba , overlooked benefits of option explic

javascript - Preventing double submission of data in forms -

suppose have textarea in form named urlslist user input list of urls , 1 on each line.i handle submit via ajax query follows. $(function () { $("#urlslist").submit(function(e) { //prevent default functionality e.preventdefault(); //get action-url of form var actionurl = e.currenttarget.action; //do own request handle results $.ajax({ url: actionurl, type: 'post', datatype: 'json', data: $("#urlslist").serialize(), success: function(data) { //put result in textarea here } }); }); }); then display result of processing (i.e url each input) in textarea. works want improve old urls don't submitted server via ajax while not clearing either of textareas. edit 1 i think need demonstrate example. suppose urlslist textarea contain 1 url.i click on submit , result.now add url in urlslist

php - Billdesk payment gateway integration -

i developing website in php , want integrate bill desk payment gateway in it. can make transactions indian bank's debit card & credit cards. need how integrate bill desk payment gateway in website. just signup billdesk. documents integration technologies. can sample snippet well.

graph - For loops in ocaml -

i want let switchgraph cases = let g = graph.makegraph() in let g = (graph.addnode g 1) in = 2 cases let g = (graph.addnode g i) in done g but apparently, not possible. how else can achieve this. there 2 things need fix: you need use references (see ref , := , ! ) this, since let bindings immutable to sequence 2 expressions, need use ; something should work: let switchgraph cases = let g = ref (graph.makegraph()) in g := graph.addnode (!g) 1; = 2 cases g := graph.addnode (!g) done; !g note g reference, , !g value.

android - Difference between proguard-rules.pro and proguard.cfg -

i learning , implementing proguard first time. have seen examples , add following code in proguard-rules.pro file, there 1 more file named proguard.cfg . i have tried google unable understand difference between proguard.cfg , proguard-rules.pro file. i have added following in proguard-rules.pro file should add in proguard.cfg file #---------------test -dontwarn javax.annotation.** -keep class com.google.** -dontwarn com.google.** -keep class com.conviva.** -dontwarn com.conviva.** -keep class com.loopj.android.http.** -keep class org.apache.http.** -keep class rx.internal.util.** -keep class com.algolia.search.** -dontwarn com.loopj.android.http.** -dontwarn org.apache.http.** -dontwarn rx.internal.util.** -dontwarn com.algolia.search.** -keep public class android.net.http.sslerror -keep public class android.webkit.webviewclient -dontwarn android.webkit.webview -dontwarn android.net.http.sslerror -dontwarn android.webkit.webviewclient -assumenosideeffects class

ios - Multiline label in collection view cell breaks after reuse -

Image
i have custom uicollectionviewcell several ui elements, laid out using autolayout setup in code. on larger devices (iphone 6 , up) works expected. on smaller devices however, multiline uilabel breaks, (it seems) after reuse. on initial display, first cell looks this: after cell has been scrolled off screen , brought on again, looks this: these constraints set on label: descriptionlabel.centerxanchor.constraint(equalto: firstbutton.centerxanchor), descriptionlabel.leadinganchor.constraint(equalto: otherlabel.leadinganchor), descriptionlabel.topanchor.constraint(equalto: firstbutton.bottomanchor, constant: 15), secondbutton.topanchor.constraint(greaterthanorequalto: descriptionlabel.bottomanchor, constant: 20), i feel it's greaterthanorequalto constraint, if replace plain old equalto constraint, layout goes wild , label shrinks down fit 1 line. i've faced similar problem in uicollectionview , found solution in preferredmaxlayoutwi

tensorflow - logits and labels must have the same first dimension -

i trying create recipe generator @ kaggle using tensorflow , lstm. totally stuck in related dimesions. can point me out in right direction? https://www.kaggle.com/pablocastilla/d/kaggle/recipe-ingredients-dataset/ingredients-recomender-using-lstm-with-tensorflow/run/1066831 thanks much! i think issue that training_batches[0][1] is list , not numpy.array, should modify create_datasets accordingly...

css3 - Chrome does not support "writing-mode" for BUTTON tag? -

i discovered possible bug in chrome unable find resource. it seems writing-mode not run on button tag. see living example details. <a href="#;" class="pippo">pippo</a> <br><br> <button class="pippo">pippo</button> .pippo { writing-mode:vertical-lr } is there workaround fix in chrome (in firefox runs correctly)? you can try this. <button><p style="writing-mode:vertical-lr;">pippo</p></button>

spring - How to email in Java? -

please solution on how send email in java. contains message body, subject, etc. single simple solution beneficial. thanks better have 1 method email purpose , call ever u need passing arguments in each method u need. public string sendmail(string message, string subject, string recipientaddress, httpsession session) { system.out.println("to:" + recipientaddress); system.out.println("subject:" + subject); system.out.println("message:" + message); try { simplemailmessage email = new simplemailmessage(); email.setto(recipientaddress); email.setsubject(subject); email.settext(message); mailsender.send(email); } catch (mailexception e) { system.out.println("mail not sent...!" + e); return "noemail"; } return "success"; }

angularjs - Adal Infinite redirection + Edge + Trusted sites -

background: have single page app (built using angular) uses adal , adal-angular authenticate against azure active directory. have been using version 1.0.7 of adal , adal-angular (tried using 1.0.14 still no luck) , ui-router routing. issue: few of our users getting continuous authentication loop while trying access web application on edge browser specifically. note works fine ie, chrome , firefox. surprisingly works fine when edge opened in inprivate window. issue device specific, user specific , occurs in edge. workaround: when site added trusted sites (via control panel -> internet options), authentication loop issue resolved , works seamlessly. any idea why happening? i’m assuming of it’s cookie issue when adal writes auth cookie site , edge can’t seem read it? also suggestions better fix/workaround this? can’t tell users go , add website trusted sites collection. code snippet of app.js: function authenticationinit(adalauthenticationserviceprovider, $httpprovid

c# - XAML resouce dictionary - unable to apply default style -

i'm facing odd situation. i have wpf application following lines inside app.xaml : <application.resources> <resourcedictionary> <resourcedictionary.mergeddictionaries> <resourcedictionary> <local:appbootstrapper x:key="bootstrapper" /> </resourcedictionary> <resourcedictionary source="./styles/mytheme.xaml"/> </resourcedictionary.mergeddictionaries> </resourcedictionary> </application.resources> then have dictionaries in mytheme.xaml : <resourcedictionary.mergeddictionaries> <resourcedictionary source="./usercontrolstyles.xaml"/> <resourcedictionary source="./wizardstyle.xaml"/> <resourcedictionary source="pack://application:,,,/materialdesignthemes.wpf;component/themes/materialdesigntheme.dark.xaml" /> <resourcedictionary source="pack://ap