Posts

Showing posts from August, 2014

Copy range with conditional formatting -

i have range conditional formatting in existing excel file. used epplus copy range new sheet, found conditional formatting missing. is there way copy range conditional formatting using epplus? i found solution this. did not test on formattingruletypes. (only needed 2 of them moment) in application have 1 template row each sheet. var formatlist = fromsheet.conditionalformatting.tolist(); foreach (var cf in formatlist) { // sourcerow row containing formatting if (cf.address.start.row == sourcerow ) { iexcelconditionalformattingrule rule = null; switch (cf.type) { case officeopenxml.conditionalformatting.eexcelconditionalformattingruletype.greaterthan: rule = dest.conditionalformatting.addgreaterthan(); break; case officeopenxml.c

Ionic iOS: Navigating our of native view causes white space -

hello all! the application using uses native plugin viewing , manipulating pdfs , launched within cordova webview. everything usual until series rotations performed. opening pdf in portrait (launching native view on webview), rotating screen landscape , navigating out the native view causes white section (see images below). notes the interesting part of bug not happen on of ios simulators or android, present in both ios 8 & 9 devices. i cannot find them white space in dom using safari web inspector (because unlike chrome, cannot click inspect sections of document). there scroll bar, , height of white space same size width of side bar. any suggestions or recommendations on solving issue fantastic , appreciated! steps https://www.dropbox.com/s/j7aix4bvkqsl2m2/img_0183.jpg?dl=0 exit pdf https://www.dropbox.com/s/2ugnvdl5a0z0ywg/img_0185.jpg?dl=0 this peter pspdfkit - pdf framework you're using here. i doubt it's causes issue seems pare

php - Use json string in a URL (authentication) -

im trying setup script puls json string 1 adress, , use string in adress, have not found way using php , curl. so first go mysite.com/data.json?req=login&username=user&password=pass , receives string like: "sessionid":"12345678" , then use sessionid in next url this: mysite.com//data.json?req=sendmessage=hello&sessionid=12345678 thank solutions regarding issue! i never send username , password this security issue. use post method instead. mysite.com/data.json?req=login&username=user&password=pass when json data parse , save sessionid somewhere session or cookie or using define function if ok. whenever need make url use saved 1 below. have used session. <a href="mysite.com/data.json?req=sendmessage=hello&sessionid=<?php echo $_session['sessionid'] ?>">link</a> but after doing above not secure. making room act using url parameter sessionid. if trying use web go using plane

java - Android Loading Error: Performing Stop of Activity that is Not Resumed -

i creating loading screen application, checking firebase see if user logged in. depending on authentication state of user, load specific activity within application. i receiving appears redundant error freezing application , not accessing next activity: 04-18 21:13:52.400 32330-32512/com.sourcey.materialloginexample e/surface: queuebuffer: error queuing buffer surfacetexture, -2147483646 04-18 21:13:52.475 32330-32512/com.sourcey.materialloginexample e/parcel: dup() failed in parcel::read, 0, fds[i] -1, fd_count 2, error: bad file descriptor 04-18 21:13:52.475 32330-32512/com.sourcey.materialloginexample e/surface: dequeuebuffer: igraphicbufferproducer::requestbuffer failed: -22 04-18 21:13:52.840 32330-32512/com.sourcey.materialloginexample e/surface: queuebuffer: error queuing buffer surfacetexture, -22 04-18 21:13:53.147 32330-32512/com.sourcey.materialloginexample e/surface: queuebuffer: error queuing buffer surfacetexture, -22 04-18 21:13:53.240 32330

php - How to access object properties with names like integers? -

how access php associative array element output is: [highlighting] => stdclass object ( [448364] => stdclass object ( [data] => array ( [0] => tax amount liability ....... i want access string value in key [0]. want like: print myvar->highlighting->448364->data->0 but 2 numerals/integers there seems problem. edit: i give bit of history here myvar. using json_decode() like: $myvar = json_decode(url) php has share of dark alleys really don't want find inside. object properties names numbers 1 of them... what never told you fact #1: cannot access properties names not legal variable names easily $a = array('123' => '123', '123foo' => '123foo'); $o = (object)$a; echo $o->123foo; // error fact #2: can access such properties curly brace syntax $a = array('123' => &#

SSIS XML encoding error -

i below error on ssis xml source. can me resolve issue please. [customer master [2]] error: customer master unable process xml data. invalid character in given encoding. line 55979, position 10. after doing more research have discovered there "hidden" character. character non breaking space. non breaking space valid xml character per xml specification https://www.w3.org/tr/xml/#charsets . non breaking space has hex ascii value of xa0. char ::= #x9 | #xa | #xd | [#x20-#xd7ff] | [#xe000-#xfffd] | [#x10000-#x10ffff] /* unicode character, excluding surrogate blocks, fffe, , ffff. */

html lists - Get value of li on click using JQuery -

this first question here, forgive me asked incorrectly. have html view: <div class="input-group-btn search-panel"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <span id="search_concept">filter by</span> <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu" id="mysearch"> <li><a href="/home/searchplayersregform" id="searchstr" >registration number</a></li> <li><a href="/home/searchplayersview" id="lastname">last name only</a></li> <li><a href="/home/searchplayersview" id="fullname">child's first , last name&

c++ - Seems cin.putback(char) does nothing in theory -

i found function basic_istream::putback() inherited form basic_ios calls basic_streambuf::sputbackc() in turn calls pbackfail() . , funny when found pbackfail() nothing returning eof (and it's not overrided ). so how function putback() work in practice?

java - access of protected field from other class -

for below code, can access protected fields of seatplan class , change value classroom class, looks not secure data. is normal? isn't protected fields can accessed subclass only? otherwise need change them private field? let's have abstract class protected fields: public abstract class seatplan { protected int rownum; protected int columnnum; public abstract void method(); } then has child classes: public class aseatplan extends seatplan { public aseatplan(){ // constructor this.rownum= 10; this.columnnum = 7; } // omitted code } public class bseatplan extends seatplan { public bseatplan(){ // constructor this.rownum= 7; this.columnnum = 15; } // omitted code } a class room contains private field of seatplan object: public class room { private seatplan seatplan; public room(seatplan seatplan){ // constructor this.seatplan = seatplan;

How to run WIX bootstrap built exe to run in silent mode? -

is possible run exe built using wix burn bootstrap run in silent mode? need in order skip uac prompt. there better ways skip uac prompt using wix project itself? without making changes registry keys manually. burn supports silent installations. use /quiet switch run installation without user interface. not show uac prompt. appinstaller.exe /install /quiet if installation requires elevated rights install properly, run elevated process - either command line, or management software.

javascript - How to Convert string array into simple array? -

i know that, question asked many times, different case. i have tried many ways, doesn't found workaround. $array = ["9","8","7","6","5"]; //javascript json.stringify() output json_decode($array); //expects parameter 1 string, array given explode(',', $array); // array ( [0] => ["7" [1] => "6"] ) i had tried array_shift() , array_walk() , map() still no luck. output array( [0] => 9 [1] => 8 [2] => 7 [3] => 6 [4] => 5 ) not 100% clear, if firstly json string, maybe you'll want? <?php $array = <<<end ["9","8","7","6","5"] end; $php_array = json_decode($array); $string = join(',', $php_array); $output = explode(',', $string);

C# Sluggish UI on Surface pro 3 -

i'm coding application on surface pro 3. in editor looks fine.. when run it, application bit sluggish , folder browse dialog not show inside it. can't figure out why , how sort out. never had happening before. picture: problem

c++ - why vector pointer's memory automatically cleared -

bs: i've tested, question below vs2010 specific, in test on mingw, vector memory leak, printf("%d\n", testv->size()); gives me '10', shows it's leak. in codes below: class test{ public: std::vector<int> *num; int *n; }; test *t = new test(); t->num = new std::vector<int>; t->num->assign(10,10); t->n = new int[20]; t->n[0] = 12345; int *testn = t->n; std::vector<int> *testv; testv = t->num; delete t; //i can print n's memory printf("%d\n", testn[0]); //get 12345, memory leaked here. //i can't print num's memory; size 0. in release version, it's negative number. printf("%d\n", testv->size()); after deleting t, see memory num points cleared, in vs10 environment, see memory cleaned 'ee fe ee fe....'. memory of n stays same. in opinion, memory comes keyword new, should freed delete, well, here num (vector) not 'delete'd, rather cleared auto

C# Apple Bonjour - how to monitor service records within Windows -

i'm using apples bonjour pronounce client information. class bonjourexample { private bonjour.dnssdeventmanager m_eventmanager;; private bonjour.dnssdservice m_service; private bonjour.dnssdservice m_browser; private bonjour.dnssdservice m_resolver; private init() { m_service = new dnssdservice(); m_eventmanager = new dnssdeventmanager(); m_eventmanager.servicefound += new _idnssdevents_servicefoundeventhandler(this.servicefound); m_eventmanager.servicelost += new _idnssdevents_servicelosteventhandler(this.servicelost); m_eventmanager.serviceresolved += new _idnssdevents_serviceresolvedeventhandler(this.serviceresolved); m_eventmanager.queryrecordanswered += new _idnssdevents_queryrecordansweredeventhandler(this.queryanswered); m_eventmanager.operationfailed += new _idnssdevents_operationfailedeventhandler(this.operationfailed); m_bonjourbrowser = m_bonjourservice.b

swift - Back Button Left Alignment IOS 9 -

Image
i trying left align button i.e remove space on left of arrow . using custom button . let backbutton = uibarbuttonitem(image: uiimage(named: "arrow03"), style: .plain, target: self, action: "back") self.navigationcontroller?.navigationbar.tintcolor = uicolor.clearcolor() self.navigationitem.backbarbuttonitem = backbutton tried use negative width button suggested in below link didnt work. how edit empty spaces of left, right uibarbuttonitem in uinavigationbar [ios 7] image http://imgur.com/pa9hlbm please help. refer below code implement button on left alignment. let button: uibutton = uibutton (type: uibuttontype.custom) button.setimage(uiimage(named: "imagename"), forstate: uicontrolstate.normal) button.addtarget(self, action: "backbuttonpressed:", forcontrolevents: uicontrolevents.touchupinside) button.frame = cgrectmake(0, 0, 30, 30) let barbutton = uibarbuttonitem(customview: button) self.navigationitem.leftbarbu

c++ - error LNK2019: unresolved external symbol "CFunctionName" referenced in function "public: long __cdecl cObjectClass::MemberFunc(argumentss) -

details: trying call function defined in .c file member function in .cpp file. getting linking error unresolved external symbol. below details: i using microsoft visual studio 2010. in solution have created 3 projects. lets project1,project2 & project3. out of project 2 & 3 of configuration type (static library (.lib) ) , project1 of configuration type dynamic library (.dll). in project2 have foo.c file in have defined function return_type foo(args) , have declared in foo.h file. in project1 have foo.cpp file in have class name cfooclass has 1 of member function cfoomemberfunction . calling foo (c function) member function. have added project2.lib , project3.lib libraries in dependencies of project1 , have included foo.h file(with extern "c") in foo.cpp . still getting error unresolved external symbol. can me this?

java - Name [dsjndi] is not bound in this Context. Unable to find [dsjndi] -

i'm trying use jdbc connection pool, create intialcontext obj , datasource obj, , give "dsjndi" parameter of lookup method of initialcontext, when run project project shows ""name [dsjndi] not bound in context. unable find [dsjndi]."" problem can guide me? connection con = null; statement st = null; resultset rs = null; resultsetmetadata rsmd = null; public void process(httpservletrequest req, httpservletresponse res) throws servletexception, ioexception { //general settings //get print writer obj printwriter pw = res.getwriter(); //set content type res.setcontenttype("text/html"); //read form data string tablename = req.getparameter("table"); try { //get con obj jdbc con pool con = makeconnection(); //create statement obj st = con.createstatement(); //execute query rs = st.executequery("select * form" +tablename); //use m

android - java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare(); -

i have android app running thread. want toast message show message. when this, below exception: logcat trace: fatal exception: timer-0 java.lang.runtimeexception: can't create handler inside thread has not called looper.prepare() @ android.os.handler.<init>(handler.java:121) @ android.widget.toast$tn.<init>(toast.java:322) @ android.widget.toast.<init>(toast.java:91) @ android.widget.toast.maketext(toast.java:238) is there work around pushing toast messages threads user interface? i got exception because trying make toast popup background thread. toast needs activity push user interface , threads don't have that. 1 workaround give thread link parent activity , toast that. put code in thread want send toast message: parent.runonuithread(new runnable() { public void run() { toast.maketext(parent.getbasecontext(), "hello", toast.length_long).show(); } }); keep link parent activity in background

java - Proguard warnings despite kept classes -

i'm using proguard shrink code. strategy enable , follow warnings keep complains about. if there outside libraries, try follow proguard instructions authors make available. many instructions include -dontwarn flag. if disable -dontwarn flag, warnings. if keeping classes via -keep flag, why warnings still come up? example: -keep class javax.** { *; } # butterknife -keep class butterknife.** { *; } -dontwarn butterknife.internal.** -keep class **$$viewbinder { *; } -keepclasseswithmembernames class * { @butterknife.* <fields>; } -keepclasseswithmembernames class * { @butterknife.* <methods>; } warning:butterknife.internal.butterknifeprocessor: can't find referenced class javax.annotation.processing.abstractprocessor warning:butterknife.internal.butterknifeprocessor: can't find referenced class javax.annotation.processing.processingenvironment warning:butterknife.internal.butterknifeprocessor: can't find referenced class javax.lang.model.el

scala - Spark Jobserver Unit Testing of jobs -

i want write unit tests spark jobs executed in spark-jobserver. works fine unless need access config e.g. check specific input values like: try(config.getstring("mykey")) .map(x => sparkjobvalid) .getorelse(sparkjobinvalid("no value mykey config param")) the config created follows: import com.typesafe.config.config val myconfig = configfactory.parsestring("key=value") then job run like: myjob.run(sqlctx, myconfig)) this exception: error utils: uncaught exception in thread driver-heartbeater java.io.ioexception: java.lang.classcastexception: cannot assign instance of scala.collection.immutable.hashmap$serializationproxy field org.apache.spark.executor.taskmetrics._accumulatorupdates of type scala.collection.immutable.map in instance of org.apache.spark.executor.taskmetrics @ org.apache.spark.util.utils$.tryorioexception(utils.scala:1163) @ org.apache.spark.executor.taskmetrics.readobject(taskmetrics.scala:2

php - Getting midnight timestamp value from specific timestamp -

i want calculate midnight value timestamp. example 1461043742 today's timestamp, want timestamp of midnight 12'o clock timestamp value. , 1461130928 tomorrow's timestamp want show tomorrow midnight 12'o clock timestamp value. how can this, there possibility achieve in php? you can use strtotime : // input: $now = 1461043742; // calculate: $midnight = strtotime("midnight", $now); $midnight_tomorrow = strtotime("midnight tomorrow", $now); // test print(date('c', $midnight)); print(date('c', $midnight_tomorrow));

Toggling between remote KGDB and local DDB within a debugging session -

i think title says all!! :) i know if there indeed way toggle between gdb , ddb while debugging remote kernel. i @ gdb (or rather kgdb) prompt. here how switch local ddb on debugged machine?? my kernel configuration file contains options break_to_debugger , have both gdb , ddb configured aka: options gdb options ddb as per developer's handbook , "every time type gdb, mode toggled between remote gdb , local ddb. in order force next trap immediately, type s (step). hosting gdb gain control on target kernel:" so, did try typing 'gdb' @ gdb prompt (funny me:d) , expected, unrecognized command. obviously, command supposed typed @ ddb prompt. question is, how drop ddb within running machine serial ports (albeit virtual ones) remotely attached machine's kgdb? when remote gdb listening , force panic using sysctl debug.kdb.enter=1 , drop remote kgdb. however, when not listening, system freezes. what want, enter ddb on local machine. debugging using it;

html - What is the use of this syntax: <!---->? -

i've been working design ui of our website , looking templates available in web. then encountered syntax <!----> , i'm not familiar it. can please tell me , used for? thank you. as other posts have mentioned <!----> code in html used adding comments - note left in code developer info other developers, or remember themselves. code viewable in source not displayed when viewing html in browser. ex: <!-- need update each year --> <div>&copy; 2009 - 2016</div> will produce: © 2009 - 2016 in cases comment can removed no side-effect on code. it's note developers. other uses commenting out code in addition comments you'll see html code wrapped <!----> . ex: <!-- add later <img src="article.jpg" alt="article"> --> the above code remove entire image tag browser view. useful if want temporarily remove html page, testing/debugging or later use. you'll see entire html

c# - select change event fires during binding -

i'm building multi-step form using knockoutjs in asp.net mvc 5 application. the problem is, during binding, change event dropdown firing. similar issue reported here . i have tried suggested in post above, event still firing twice. <div class="row"> <div class="col-md-4"> <div class="form-group"> @html.labelfor(model => model.step1.country, new { @class = "control-label" }) @html.dropdownlistfor(model => model.step1.country, model.step1.countries, new { @class = "select-country", @style = "width: 100%;", data_bind = "value: model.step1.country" }) </div> </div> <div class="col-md-4"> <div class="form-group"> @html.labelfor(model => model.step1.state, new { @class = "control-label"

php - How do I batch-rename filenames in windows 7, so that they have numerical order at the end of them? -

i have archive of php files on computer, , want mass rename them. here's problem. here's sample of files (i have 420,000 of these). viewtopic.php_id=4 viewtopic.php_id=5 viewtopic.php_id=6 i want these files in .php. now, know rename file extensions go cmd , cd file, go "ren *.* *.php" . however, can't this, because files named viewtopic . love have renames files viewtopic1, viewtopic2, viewtopic3 , or hell 1,2,3,4,5,6,7, etc , .php. after that, can batch rename files thru cmd. if understand correctly, want rename viewtopic.php_id= x viewtopic x .php. :: simple batch script @echo off setlocal enabledelayedexpansion :: assuming files exist in same directory tree. :: note - take while. 30 minutes or more ( guess ) :: - not going add check see if php_id files. :: if have other file types in subdirectory, :: effect them too, , results unpredictable. :: add check it, easier move *.php_id* own subdirectory /r %%i in ( * ) ( :: set ext

javascript - Scrolling effect as per in Bootswatch template -

i'm trying element fixed top when user scrolls beyond element in height per "#subnav" div in page http://bootswatch.com/simplex/ looking around google, managed form following function , code. function isscrolledintoview(elem) { var docviewtop = $(window).scrolltop(); var docviewbottom = docviewtop + $(window).height(); var elemtop = $(elem).offset().top; var elembottom = elemtop + $(elem).height(); if(docviewtop >= elembottom){ return true; }else{ return false; } } $(window).scroll(function(){ if(!$("#search_menu").hasclass("subnav-fixed")){ if(!isscrolledintoview($("#search_menu"))){ $("#search_menu").addclass("subnav-fixed"); } }else{ var docviewtop = $(window).scrolltop(); var docviewbottom = docviewtop + $(window).height(); $("#window_top").html(docviewtop); $("#window_bottom&quo

javascript - Angular 2: Populate checkbox list comparing two lists and initially check some items -

in angular 2 application in service file have following. service.ts getuserselections() { return this.http.get('http://localhost:8080/selection/selections').map((res: response) => res.json()); } getsavedselections() { let params: urlsearchparams = new urlsearchparams(); params.set('access_token', localstorage.getitem('access_token')); return this.http.get('http://localhost:8080/interest/user/selections', { search: params }).map((res: response) => res.json()); } getuserselections returns following json array. [{ "key": "test1", "val": 1.0 }, { "key": "test2", "val": 1.0 }, { "key": "test3", "val": 1.0 }] getsavedselections returns following. [{ "key": "test2", "val": 1.0 }, { "key": "test3", "val": 1.0 }] i don't

GIT Codebase Checkout -

suppose, there commit project version (say version 1.1) on 10.03.2016 , commit version (say version 1.2). when i'm performing codebase checkout projects latest version 1.2, whole project getting downloaded on current date (say 18.04.2016). if 'lib' files getting changed or not, can't uniquely identified; rather whole content found different till manually differentiation lies. want know way identify uniquely files changed 1 version other? i think looking git diff --name-only 1.1 1.2 , gives list of files modified version 1.1 version 1.2 (assuming there tags named 1.1 , 1.2, use commit identifier if not case). if isn't you're looking for, please clarify question.

javascript - Waiting for fullscreen to complete rendering -

i have svg element goes fullscreen clicking on it. know going fullscreen fires fullscreenchange events used fix svg's aspect ratio. use $(svgelement).height() fetch current height problem using $(svgelement).height() in fullscreenchange event handler can give wrong value in mobile browsers. this might happening because of fetching size of element while fullscreen rendering not complete yet. how can fix issue(without using delay)?

php - Why show Undefined variable error in Laravel 5.2? -

first take working file. actioncontroller.php: namespace app\http\controllers; use illuminate\http\request; use app\action; use app\role; use app\http\requests; class actioncontroller extends controller { /** * display listing of resource. * * @return \illuminate\http\response */ public function index() { // $actions = action::where('id','>=',1)->paginate(10); $roles = role::all(); $data = ['roles' => $roles]; return view('actions.index',['actions'=>$actions]); } index.blade.php: <table id="example2" class="table table-bordered table-hover" width="100%"> <thead> <tr> <th>uri</th> <th>action</th> @foreach($roles $role) <th>{{$role->role}}</th> @endforeach </tr> </t

C++ convenetions - source and header files for a class -

i'm new cpp, want use object dog, ok use header file class dog? methods implemented in inline manner. or should partition class header , cpp file implementing methods defined in header file? class dog used in other cpp file (as concrete object , not pointer - dog dog = new dog()...). is ok use header file class dog? yes, ok. but when programs getting larger, it's more practical separate declaration implementation , organize program semi-independent code fragments, can used minimize compilation times , chance of errors.

c# - WPF ObservableCollection<T> get ui reference from the added element -

i have encountered problem, have ui reference returned (after item has been added observablecollection). when item has been added collection, "border" reference. been trying google solution cant find one. the xaml, want return border in datatemplate (is possible)? <itemscontrol itemssource="{binding elements}"> <itemscontrol.itemspanel> <itemspaneltemplate> <stackpanel margin="37,0,0,0" orientation="horizontal" horizontalalignment="left" width="590" height="29" /> </itemspaneltemplate> </itemscontrol.itemspanel> <itemscontrol.itemcontainerstyle> <style targettype="{x:type contentpresenter}" /> </itemscontrol.itemcontainerstyle> <itemscontrol.itemtemplate> <datatemplate> <border width="{binding style.backgr

sublimetext - How to add literal CDATA tags to a sublime text snippet file? -

is there way add tags content of sublime text snippet? cdata tags used sublime text distinguish between snippet xml , actual snippet content. i have not been able work except <snippet> <content><![cdata[ <![cdata[ ]${1:\\}]> ]]></content> <!-- optional: set tabtrigger define how trigger snippet --> <!-- <tabtrigger>hello</tabtrigger> --> <!-- optional: set scope limit snippet trigger --> <scope>text.html.basic</scope> </snippet> which requires manually delete slash. know how go this? if don't want snippet output slashes, why put them there in first place? this works fine understanding, when there's extra-space before closing > . <snippet> <content><![cdata[ <![cdata[ $1 ]] > ]]></content> <scope>text.html.basic</scope> </snippet> it seems more related xml standard rather being specific issue subli

reactjs - Nesting react components dynamically , adding custom JSX on the fly inside the component? -

<div classname="header"> <card> <div classname="logo"> <logo /> </div> <div classname="timer"> <timer /> </div> </card> </div> i want achieve . have created component card , want component should contain random jsx other components . i have got way of nesting react children using react.children method , not able find , how handle additional jsx inside component . you can use this.props.children . to handle specific data-structure, can use react.children utilities . for example, if in case want add wrapping div every child component in card, can write: const card = react.createclass({ render: function() { const wrappedchildren = react.children.map( this.props.children, function(onechild) { return ( <div classname="wrappingdiv">

CMake install: installing config files -

i want cmake make install rules me automatically install configuration , other things. looked @ this question , adding: add_executable(solshare_stats.conf solshare_stats.conf) to cmakelists.txt file gave me warnings , errors: cmake error: cmake can not determine linker language target:solshare_stats.conf cmake error: cannot determine link language target "solshare_stats.conf". ... make[2]: *** no rule make target `cmakefiles/solshare_stats.conf.dir/build'. stop. make[1]: *** [cmakefiles/solshare_stats.conf.dir/all] error 2 make: *** [all] error 2 how add config, init and/or logfiles cmake install rules? here complete cmakelists.txt file: project(solshare_stats) cmake_minimum_required(version 2.8) aux_source_directory(. src_list) add_executable(${project_name} ${src_list} ) add_executable(solshare_stats.conf solshare_stats.conf) target_link_libraries(solshare_stats mysqlcppconn) target_link_libraries(solshare_stats wiringpi) if(unix) if(cmake_compiler_