Posts

javascript - Why is the facebook pixel counting event conversions wrong? -

we have installed fb pixel track conversion events. fb tools verify set right. results dramatically inaccurate point isn't working. track events such user entering phone number, etc. used fb js code provided. compared our own results, measured directly incrementing counter using javascript every time event fires, tracked on fb, , results dramatically different (e.g. off >50%). in addition, results event inconsistent within fb depending on in fb ui look. if @ analytics event tester see 1 number, on pixel page different one, on ads manager different one. differences large (e.g. factor of >2x). in order test made simplest possible html page using fb pixel code directly fb. have pasted below. using code (with our actual pixel id of course), , fb 'event debugging' feature, see no pixel fires. using fb pixel helper in chrome, finds pixel , events fine. tried loading page in several different browsers on different machines. what going on? thanks help. ...

c++ - Sending multiple values through serial port -

i using arduino uno project, don't know how go achieving want. i'm beginner therefore don't know how use functions want. i want send 3 values through serial monitor @ once. the first value string points operator (a, s, m, d, p), , want take 2 more values. example, if input 'a012556 should add 12 , 556 give me 568. currently doing this, it's asking each input separately. example, ask operator (i can input ints because cannot take string/chars) first, input 1 (should addition), , asks first number, , second number, , adds them both , outputs result. works fine, it's not i'm trying achieve. serial.println ("enter chosen operator"); serial.println ("a addition, s subtraction, m multiplication,"); serial.println ("d division, , p potentiometer: "); // takes input user int theoperator = datainput(); if (theoperator == 1) { // if input equal 1, carry out function 'addition()' addition(); } el...

scala - Spark Interactive/Adhoc Job which can take Dynamic Arguments for Spark Context -

i looking solution interactive/adhoc spark job. have arguments need pass spark job. fine, want pass these arguments selected user form dropdown menu user. so e.g. spark-submit job looks below, following arguments "prod /opt/var/var-spark/application.conf vc fx yes yes yes". $spark_home/bin/spark-submit \ --class main.gmr.sparkgmr \ --deploy-mode client \ --verbose \ --driver-java-options "-dlog4j.configuration=file:///opt/var/spark-2.1.0-bin-hadoop2.7/conf/log4j.properties" \ --conf "spark.executor.extrajavaoptions=-dlog4j.configuration=file:///opt/var/spark-2.1.0-bin-hadoop2.7/conf/log4j.properties" \ file:///opt/var/var-spark/var-spark-assembly-1.0.jar \ prod /opt/var/var-spark/application.conf vc fx yes yes yes now want make job running because caches many dataframes in memory can used later analysis. problem job dies , in-memory dataframes/views not there more. also, want submit different arguments job next time, e.g. "p...

Repeat a JavaScript action every certain amount of clicks? -

i've made script calls function every 5 clicks on element. i'd repeat action every 5 clicks, , not call once. there way reset variable count when action called? $(document).ready(function(){ var count=0; $(".logo").click(function(){ count+=1; if (count==5) { $( "body" ).toggleclass('easteregg'); } }); }); you don't have reset do if(count % 5 === 0){ //your code here } this called every time count multiple of 5

asp.net - handle webform usercontrol load event from within the control code behind -

the subject line says all. not talking event handler of instance of usercontrol put in aspx page. referring load event handler within code behind of usercontrol class itself. have page_load(object sender, eventargs e){} event handler of page. method signature of user control event handler? thanks.

node.js - How do I preload or install static files into Highchart's export server? -

this if export chart using html, can reference styling classes , chart generate on web application. currently tried storing css in resources.json file however, styling not seem applying of charts. i know in line styling tags apply chart when use in html however, since have lot of styling preferable load on once using resources.json update the command d_paul provided works, , thank that! i trying load resources enableserver command wouldn't read it. is there anyway send in resources argument through exporting api http://api.highcharts.com/highcharts/exporting i know can send json server resources argument , have render way, wondering if there way send through exporting api linked above. or if not through api, if can load resources when start server using enableserver argument? i have created simple resources.json file in node-export-server folder looks this: { "css": ".highcharts-background {fill: #bada55;}" } generated i...

c# - How to get oauth2 token with the WWW API? -

i working on project requires oauth2 token communicate. backend gives me curl command, have no idea how put www form in unity because have no former experience http or json file. me access token? thanks. here how curl code looks like: $ curl -v -u {client_id}:{client_secret} " https://api.domo.com/oauth/token?grant_type=client_credentials&scope= {scope}" and here example: $ curl -v -u 441e307a-b2a1-4a99-8561-174e5b153fsa:f103fc453d08bdh049edc9a1913e3f5266447a06d1d2751258c89771fbcc8087 " https://api.domo.com/oauth/token?grant_type=client_credentials&scope=data%20user " thank much! to oauth2 token www api, use wwwform create form contains grant_type , client_id , client_secret . when make request, token should returned in json format. use unity's jsonutility convert string can obtain. retrieving token : [serializable] public class tokenclassname { public string access_token; } ienumerator getaccesstoken() { var url = ...