Posts

google analytics - How to track the install referrer in ios -

google analytics - How to track the install referrer in ios - i doing 1 application.in want implement 1 feature android.in android can number of downloads using install referrer.so in ios how can install referrer. one way (you should clarify customers if ok them) send info server . maintain track of session count (or set single value nsuserdefaults ) , application version , should fine: install: session count 0, send "hello" message server (server stores device id ) reinstall: same " install " (server recognizes device id exists) update: application version not same on lastly startup, send " update " message server ios google-analytics referrer

c# - Jquery $.post in while loop -

c# - Jquery $.post in while loop - this code : @ { httpcookie cookieportrait = request.cookies["photoportraitcookie"]; int pportraitkeyscount = (cookieportrait.values.keys.count); } <script> $(function () { var specarr = new array(); @ { int n = 0; while (n < pportraitkeyscount) { string str = cookieportrait.values.getkey(n).tostring(); @: var datass = {}@: datass = {@: decode: '@str', @: '__requestverificationtoken': $('[name="__requestverificationtoken"]').val()@: }@: $.post('/photo/decode', datass, function (datar) {@: specarr.push(datar);@: });@: specarr.push('@httputility.urldecode(generalcookie.values.getvalues(n).getvalue(0).tostring())') @: n++; } }) </script> its tries take cookie , fill array cookie values , because uses swedish languages , encoded values , must post...

Avoid code duplication Chocolatey Packages -

Avoid code duplication Chocolatey Packages - introduction multiple functions have been added chocolatey package. these functions applied other chocolatey packages well. this done copying functions each of them. however, if function optimized these changes needs copied packages. question how avoid code duplication in chocolatey packages? i have few suggestions how proceed this... (probably 1 take longest due dependency on other people) if these functions re-usable, yourself, , other people, suggest submitting pull request chocolatey core, add together these functions chocolatey. way, gets benefit. split functions separate file, , dot source them chocolatey packages creating. within source command repository, store file in mutual location, , add together each chocolatey bundle required. further refactor extracted .ps1 file, runs module create. create chocolatey bundle deploys powershell module (there examples of doing on chocolatey.org - shout if don...

javascript - Form Submit Listener prevent form submission on IE8 -

javascript - Form Submit Listener prevent form submission on IE8 - i have set universal analytics tracking website using google tag manager , have had success using form submission listener track different form submissions. came attending today users in ie8 unable submit login forms. login forms native forms on site, whereas other forms added via javascript eloqua. as disable form submission listener, ie8 users can log in without issue. because user could have log in on page of site, i've had disable form tracking now. form html <form class="login-prompt__form" method="post"> <div class="input input--text"> <input id="username" name="username" placeholder="username" type="text" value="" /> </div> <div class="input input--text"> <input id="password" name="password" placeholder=...

android - Closing scanner application/activity after a timeout -

android - Closing scanner application/activity after a timeout - i using intentintegrator initiate scanner (qr/barcode - zxing) application. have requirement close scanner application after 30 seconds of start. scanner application invoked through startactivityforresult. wondering if there way reference of activity started "startactivityforresult", that, can utilize timer , close activity. android experts, please help me here. i think alternative here modify zxing code. when start scanning activity, app's activity go onpause() @ point need cancel timer(s), not start new ones. another thought might start service, starts thread kills scanning activity after 30 seconds...but alas, can't kill activity service. zxing open source, can pull down, modify , rebuild it. there class called inactivitytimer.java can modified finish activity after x seconds. alternative might add together broadcast receiver scanning manifest finish scanning activity when ...

html - Displaying a table next to a fixed width span -

html - Displaying a table next to a fixed width span - i have html <table> have dynamic width (changes window size), , fixed width <span> (500px). i want display both next each other both fill whole width of parent container i want using css (not js) i have been playing around css seems ruining table's width html <div class='container'> <table class='table'>....</table> <span class='span'>....</span> </div> css .container { ...... } .table { ..... } .span { width: 500px; display: inline-block; //or block if neccessary } you may give seek table-layout propertie .container , span . browsers should create element missing produce first table-cell. demo span { display:table-cell; width:500px; border:solid; } table { border:solid; margin:0; width:100%; } .container { display:table; width:100%; table-layout:fixed; } this should work be...

php - Adding multiple check box values to a database -

php - Adding multiple check box values to a database - i trying create table user ticks boxes of nutrient have eaten , carb value sent table. contents of table on database phone call code: while($row = mysqli_fetch_array($q)) { echo "<form action='add.php' method='post' id='add'><tr>"; echo "<td>".$row['carb_id']."</td>"; echo "<td>".$row['food_item']."</td>"; echo "<td>".$row['serving_size']."</td>"; echo "<td>".$row['carbs_per_serving']."</td>"; echo "<td><input type='checkbox' value='".$row['carbs_per_serving']."' name='food[]'></td>"; echo "</tr></form>"; } echo "<input type=...