Posts

Showing posts from May, 2012

No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse' -

the following error came when tried build map activity in android studio version 2.2 "no resource found matches given name 'android:textappearance.material.widget.button.inverse'" please suggest me solution. using google apiclient best method when working on location based. https://developers.google.com/android/reference/com/google/android/gms/common/api/googleapiclient when want make connection 1 of google apis provided in google play services library (such google sign-in, games, or drive), need create instance of googleapiclient ("google api client"). google api client provides common entry point google play services , manages network connection between user's device , each google service. automatically manage connection google play services. perform synchronous , asynchronous api calls of google play services. manually manage connection google play services in rare cases necessary. add manifest file

Cannot symbolicate system methods in iOS crash report -

one of beta testers has sent me few crash reports app. unable reproduce crashes, , bit confused logs. new ios debugging (this first app) , symbolicating native stack traces in general. firstly, crashes don't appear in xcode organizer, able symbolicate files using symbolicate tool. has worked methods within app, not system methods seem crashing here. first question is, how can symbolicate these methods? user has iphone 6 , according logs architecture amd-64. don't have such device why system methods not symbolicated? asking architecture because device iphone 5c (arm) , when plugged in, xcode symbolicates system methods fine. when drag , drop 64-bit logs on device logs however, system methods not symbolicated. my second question on logs themselves. can see below thread-0 crashing stacktraces quite different between "last exception stacktrace" paragraph , "thread-0" paragraph (different stack lenghts). expected or mean wrong symbolication? here symbol

PHP - Call javascript from server side -

is there anyway run / trigger / call javascript (client side) server side (php) ? i can run javascript if call browser (of course, because it's client), not server side / postman (i wonder if there's any?) function validate_answer($p) { ?> <script> $.ajax({ url: '/validate_time.php', data: {'action': 'test'}, type: 'post', timeout:5000 }); </script> <?php } the reason want use way, because in php, there's no such function settimeout javascript does. thanks guys edit okay, here's thing. i'm creating game has timeout, whenever game starts, have timelimit (10 mins example). , need function that, unfortunately, it's not accessible via browser (it's web service). i've tried using sleep, it's not wanted. you cannot run javascript on server side. if want effect of timeout without holding main script, can call url parameter this: function validate_answer($

angularjs - based on selected option i want to display the Select fields using ionic and angular js -

in parent select option have option-1,option-2,option-3 , empty there. when ever selecting option want display below child select fields if select option 2 want display 2 selection fields below same, if select empty don't want show child selection tags. this code don't want show static way need display dynamically function controller ($scope) { $scope.mydropdown = ''; } <div ng-app ng-controller="controller"> <select ng-model="mydropdown"> <option value="q"></option> <option value="one">one</option> <option value="two">two</option> <option value="three">three</option> </select> <select ng-show="mydropdown=='one'" > <option value="1"></option> <option value="111">1</op

python - Delete blank rows from CSV? -

i have large csv file in rows entirely blank. how use python delete blank rows csv? after suggestions, have far import csv # open input csv reading inputcsv = open(r'c:\input.csv', 'rb') # create output csv writing outputcsv = open(r'c:\output.csv', 'wb') # prepare output csv appending appendcsv = open(r'c:\output.csv', 'ab') # create reader object cr = csv.reader(inputcsv, dialect = 'excel') # create writer object cw = csv.writer(outputcsv, dialect = 'excel') # create writer object append ca = csv.writer(appendcsv, dialect = 'excel') # add pre-defined fields cw.writerow(['field1_','field2_','field3_','field4_']) # delete existing field names in input csv # ??????????????????????????? # loop through input csv, check blanks, , write changes append csv row in cr: if row or any(row) or any(field.strip() field in row): ca.writerow(row) # close files inputcsv

node.js - Node NPM modules... compatability with older Node 4? -

there's lot of modern js around es6 , supported in node 6/7 but mean if running node 4? if npm module written in es6, npm require compile down older more compatible version of js? asking because i'm investigating aws lambda, runs node 4... restrict npm module choices?

java - Authentication pop up using robot not working in parallel execution in selneium -

i executing script has authentication popup , robot class it's working fine. if execute tests in parallel it's entering username twice in username field of authentication popup username , in other popup it's not entering data. for example: it's entering data username1username1 in first popup. please guide me. because if popup alert box open in 1 window , have handle popup , close first. allow access other windows. both pop has same field name find , send key "username1" in textbox. so, ever driver finding popup sending value. in parallel execution working correctly. need find way parallel execution.

python - Pandas, Fill Boolean Value compare two row -

my data b 1 false true 2 false true 3 false true 4 false true 5 true false 6 true false 7 false true 8 true false 9 true true 10 false true 11 false true 12 false true 13 true false 14 true false 15 false false 16 false false 17 false false my code data.loc[(data['b']== false) & (data['b'].shift(1) == true), 'a'] = true data.loc[(data['a'].shift(1)== true) & (data['b'].shift(1) == false),'a'] = true my desire result row no. 15,16,17 true, b 1 false true 2 false true 3 false true 4 false true 5 true false 6 true false 7 false true 8 true false 9 true true 10 false true 11 false true 12 false true 13 true false 14 true false 15 **true** false 16 **true** false 17 **true** false once 'a' "true" "true" before meet "b" "true" , "

JSON array in array from SQL database using PHP -

i have following code: $retarray = array(); $hoursarray = array(); $res = $this->mysqli->query("select id, title, groupby scheduler_activity gewerbe = '$this->gewerbe'"); while($row = $res->fetch_object()) { $foo = $this->mysqli->query("select dow, start, end scheduler_businesshours activity = '$row->id'"); while($hours = $foo->fetch_object()){ $hoursarray[] = $hours; } $retarray[] = $row; $retarray["businesshours"] = $hoursarray; } return $retarray; and following json output: { "0": { "id": "1", "title": "spinning", "groupby": "trainingsgruppe" }, "businesshours": [{ "dow": "[1,2,3]", "start": "17:00:00", "end": "18:00:00" }, { "dow": "[4,5]", "start": "17:30:00"

svg - Save and load back to rework a diagram which is created with JointJS over PHP -

i working on tool create new charts in webbrowser @ moement searching way save charts (which differen svgs) in file, store in mysql database (mariadb) , load in browser rework whole diagram. step step: first, searching way save elements file. thought saving xml have no idea how should go on that. have ideas me? apreshiate every helpfull comments realy stuck @ moment. thanks all! is diagram joint js diagram ? if so, serialize tojson or load json piece of cake: to json: graph.tojson() import: graph.fromjson(json.parse(jsonstring)) for more info: http://resources.jointjs.com/docs/jointjs/v1.0/joint.html#dia.graph.prototype.fromjson convert json xml shouldn't problem either.

python - Why doesn't my Anaconda venv have packages? -

Image
i'm trying create virtual environment, using conda want statistical packages included (pandas et al...) want usable within pycharm community. start creating conda virtual environment, per pycharm instructions: but once has completed, use conda env project interpreter: and can see no packages. using pip install them no good, , if try use them within python, missing module errors: i'm sorry post question, i'm @ wits end. when installed anaconda (windows 10) did not tell make default python (as didn't think wise) want create in virtual env project.

jquery - Using zoom on a specific div only -

we have seatplan when on mobiles handy have zoom function on setaplan only. @ moment when zoom in using pinch on andoid mobile zoom in, have pinch out maintain responsive of page. here example of #seats div wish zoom in on https://jsfiddle.net/ohaumyxj/ is can achieved plain css or jquery come mix here? looking type of thing google maps on contact page of site or perhaps bit better tap zoom function. .container { margin: 0 auto; } #bmessage { padding: 1px 3px; height: 20px; font-size: 14px; background: #ddf; color: #080; font-weight: bold; } #seats:before { content: ''; display: block; padding: 50%; } #seats { margin: 10px 0; padding: 10px 0; position: relative; background-image: url(https://s21.postimg.org/qd8mqgh07/seatplan11.gif); background-repeat: no-repeat; background-size: contain; } #seats div { position: absolute; width: 1.5%; height: 1.5%; } #seats .green { background: url('https:/

OpenLayers V3.19.1 doesn't show in JavaFX WebView -

i'm having trouble displaying map openlayers v3 in javafx's webview. here's code: openlayersv3.html <!doctype html> <html lang="en"> <head> <link rel="stylesheet" href="https://openlayers.org/en/v3.19.1/css/ol.css" type="text/css"> <style> .map { height: 400px; width: 400px; } </style> <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestanimationframe,element.prototype.classlist"></script> <script src="https://openlayers.org/en/v3.19.1/build/ol.js" type="text/javascript"></script> <title>openlayers 3 example</title> <script type="text/javascript"> function loadmap() { var map = new ol.map({ target: 'map', layers: [ new ol.layer.tile({ source: new ol.source.osm()

objective c - Ios Adobe Creative Sdk Customization -

i have integrated adobe creative sdk (image editor) in ios application.and wanted add own features editor such want add own stickers sticker header.i have explored found nothing.my code is @ibaction func btnbrowseaction(_ sender: uibutton) { let editorcontroller = adobeuximageeditorviewcontroller (image: uiimage (named: "3_1_greeting_screen_landscap_1.jpg")!) let editorcustomzation = adobeimageeditorcustomization.settoolorder([_kafstickers(),_kafframes() any]) self.present(editorcontroller, animated: true, completion: nil) editorcontroller.delegate = self } func photoeditor(_ editor: adobeuximageeditorviewcontroller, finishedwith image: uiimage?) { self.dismiss(animated: true, completion: nil) imagevieww.image = image } func photoeditorcanceled(_ editor: adobeuximageeditorviewcontroller) { self.dismiss(animated: true, completion: nil) } is there way this? please suggest me.

iot - Use generated java sdk for web portal? -

i creating web portal controls devices (like switching on/off), visualize data sent devices(endpoints). have generated java sdk. use sdk in web portal or device sends telemetry data? it desirable use generated sdk device sends telemetry data. there no point in attaching sdk web application, far part of system doesn't treated endpoint. bad practice include endpoint sdk places, lion's share of functionality ignored.

scala.js - Geolocation in scala js -

i have following function in scala.js program: def geo():unit={ var window = document.defaultview val nav = window.navigator val geo: geolocation = nav.geolocation def onsuccess(p:position) = { println( s"latitude=${p.coords.latitude}") // latitude println( s"longitude=${p.coords.longitude}") // longitude } def onerror(p:positionerror) = println("error") geo.watchposition( onsuccess _, onerror _ ) } i calling function main function. printing longitude , latitude continuously after period of time. wanted print 1 time. not able understand doing wrong here , should make stop printing again , again ? you can use clearwatch stop watching position observed one, this: def geo(): unit = { val window = document.defaultview val nav = window.navigator val geo: geolocation = nav.geolocation var watchid: int = 0 def onsuccess(p:position) = { println(s"latitude=${p.coords.latitude}&qu

java - @Pattern with Unicode script \\p{L}* doesn't work -

i have problem javax.validation.constraints.pattern @pattern validation. @pattern(regexp = "\\p{l}*", message = "msg") private string name; when i'm trying input text doesn't work. when used: @pattern(regexp = "[a-za-z]*", message = "msg") it works great non latin characters. you need make \p{l} pattern unicode aware pattern.unicode_character_class flag . enables unicode version of predefined character classes , posix character classes. since using string pattern, may use inline (embedded) flag variant, (?u) : regexp = "(?u)\\p{l}*"

android - View alignment attribute settings result in weird layout positioning -

Image
in main activity defined subview layout file below ( orangeview , greenview both extending viewgroup ): <?xml version="1.0" encoding="utf-8"?> <android.support.percent.percentrelativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="250dip" android:orientation="vertical" android:background="@android:color/transparent" tools:showin="@layout/activity_main"> <android.support.percent.percentrelativelayout android:id="@+id/wrapperview" app:layout_heightpercent="50%" app:layout_widthpercent="90%" android:layout_marginbottom="12dp" android:layout_alignparentbottom="true" a

jquery - Javascript and css style not working in ajax update panel -

in application, have master main.master page , multiple child pages. have added jquery , css links in master page head tag. <%@ master language="c#" autoeventwireup="true" codebehind="main.master.cs" inherits="website.main" %> <%@ register src="uc/leftnav.ascx" tagname="leftnav" tagprefix="uc4" %> <!doctype html> <html class="no-js" lang="en"> <head runat="server" id="head1"> <meta charset="utf-8"> <!-- layout styles --> <link rel="stylesheet" type="text/css" href="<%#resolveurl("~/css/style.css") %>" /> <link rel="stylesheet" type="text/css" href="<%#resolveurl("~/css/grid.css") %>" /> <link rel="stylesheet" type="text/css" href="<%#resolveurl("~/css/layout.css") %&

r - Shifting and compressing diluted timed signal to achieve optimal correlation between two timed signals -

i've got 2 signals, 1 of signals lagging behind other, stretched in time. compress diluted signal , shift in time fits other signal, point see maximum correlation between two, i.e. largest r square. i've generated example of i'm trying achieve: library("lubridate") ###### ## generate "dummy" data ###### s1.y = sin(seq(1,10,0.01)); s1.x = tseq <- seq(sys.time(), length.out = length(s1.y), = "secs") ###### ## duplicate first signal, introduce lag , time dilution (depending on parameters , b) ## ## , b varying in reality, has been set constant illustration. ## constraints on these parameters +- 0.5. ###### = 20.5; b = 22.0; fac = a/b lag = 14; s2.y = s1.y * runif(length(s1.y), 0.95, 1.05); s2.x = s1.x; (i in 1:length(s1.x)) { s2.x[i] = s1.x[i] + (minutes(lag)) + (seconds(fac*i)); } ###### ## plot original signal , delayed , diluted signal ###### par(mfrow=c(2,1)); par(cex = 0.6); par(mar = c(4, 5, 2, 1), oma = c(1, 1,

javascript - Browserify multiple files into a single bundle -

currently, browserify single js file bundle.js $ browserify x1.js --standalone xxx > bundle.js what if have multiple js files , want join them single browserified bundle.js how should command like? can this? $ browserify x1.js x2.js --standalone xxx > bundle.js i using node.js v6 you have answered own question. confirm correct. $ browserify x1.js x2.js --standalone xxx > bundle.js

php - I want to retrieve array data and post it in order while I am inside a loop -

i have checkout runs on woocommerce / wordpress, need able output contents of basket 3 input form fields on checkout review page. i have loop gets product names, creates input box , enters product name input field. foreach (wc()->cart->get_cart() $cart_item_key => $cart_item) { $_product = apply_filters('woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key); if ($_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters('woocommerce_checkout_cart_item_visible', true, $cart_item, $cart_item_key)) { ?> <?php $productname = $_product->get_title(); ?> <input type="text" id=" " name="" value="<?php echo $productname; ?>" maxlength="100"/> <?php } } i need these input fields created have specific id's, ever allowed orde

Enabling gzip compression in .htaccess file -

i trying enable gzip compression per google pagespeed suggestions how site load faster. i have tried suggested addition .htaccess file found on https://varvy.com/pagespeed/enable-compression.html not work correctly. my current .htaccess file contains following code. rewrite rule works correctly caching of various file types. not experienced in working .htaccess file, excuse me if have made obvious error. have tried reading around issue can't seem find answer need. rewriteengine on rewritecond %{http_host} ^example.co.uk [nc] rewriterule ^(.*)$ http://www.example.co.uk/$1 [l,r=301] ## expires caching ## <ifmodule mod_expires.c> expiresactive on expiresbytype image/png "access 1 month" expiresbytype text/css "access 1 month" expiresbytype text/html "access 1 month" expiresbytype text/x-javascript "access 1 month" expiresbytype image/x-icon "access 1 month" expiresbytype application/x-font-woff "access 1

meteor - Exception from Tracker afterFlush function: TypeError: $(...).calendar is not a function -

i trying use npm package ( https://www.npmjs.com/package/semantic-ui-calendar ) meteor, getting error in browser console: exception tracker afterflush function: typeerror: $(...).calendar not function i tried following installation fix error: npm semantic-ui-calendar npm semantic-ui-calendar --save meteor npm semantic-ui-calendar meteor npm semantic-ui-calendar --save my code: blaze-html-template: <template name="mytemplate"> <h3>date only</h3> <div class="ui calendar" id="example2"> <div class="ui input left icon"> <i class="calendar icon"></i> <input type="text" placeholder="date"> </div> </div> <br/> </template> js-template-file: template.mytemplate.onrendered(function() { $(document).ready(function() { $('#example2').calendar({ type: 'date'

ios - FirebaseTableViewDataSource crashes on user signout and signin -

my app has uitableviewcontroller uses firebasetableviewdatasource (from firebaseui). table shows user's bookmarked posts correctly, when log user off, , log user in, app crashes following message: * terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'invalid update: invalid number of rows in section 0. number of rows contained in existing section after update (1) must equal number of rows contained in section before update (2), plus or minus number of rows inserted or deleted section (1 inserted, 0 deleted) , plus or minus number of rows moved or out of section (0 moved in, 0 moved out).'* i suspect problem related how firebaseui updates content of tableview. i've being debugging past 4 days; searched questions; read relevant docs none mentions unique issue. appreciated. the details (sorry it's long) this database structure: | +-posts | | | +-$postid | | | +-/* properties of post: title, t

php - Wordpress Post href dynamic -

i'm newbie wordpress , problem wanted link site using link tag. example: wordpress post url = www.defaultsite.com/my-awesome-site?name=admin so in link tag be: <a href="http://www.othersite.com/admin" target="_blank">click here</a> wherein name dynamic . unfortunately in wordpress post , cannot echo out $_get['name']. how solve problem? so want achieve is: <a href="http://www.othersite.com/".<?php echo $_get['name'] target="_blank">click here</a> <a href="http://www.othersite.com/<?php echo $_get['name']; ?>" target="_blank">click here</a>

c# - multiple and single row selection listview with a gridview wpf -

i have question regarding wpf , listview s. have program code in windows.xaml <grid> <listview margin="10" name="lvusers"> <listview.view> <gridview> <gridviewcolumn header="names" width="140" displaymemberbinding="{binding name}" /> <gridviewcolumn header="telefon" width="60" displaymemberbinding="{binding age}" /> <gridviewcolumn header="adress" width="180" displaymemberbinding="{binding mail}" /> </gridview> </listview.view> </listview> and in windows.xaml.cs have code public partial class listviewgridviewsample : window { public listviewgridviewsample() { initializecomponent(); list<user> items = new list<user>(); items.add(new user() { name = "molo", telef

r - Create multiple dataframes by subsetting one dataframe based on the condition of another dataframe -

suppose have dataframe df1 home.id timeframe_start timeframe_end 2 58960 1476748800 1477353600 4 56862 1474329600 1474934400 6 40482 1454284800 1454889600 8 52105 1476748800 1477353600 10 37244 1476748800 1477353600 12 58213 1476748800 1477353600 14 17734 1458000000 1458604800 16 39786 1458000000 1458604800 18 42613 1458000000 1458604800 then have second dataframe df2 includes same home_ids, has many different instances of (here part of displayed) home_id property_name timestamp_millis value 1 58960 inside_temperature 1.475849e+12 18.510000 2 58960 inside_temperature 1.475850e+12 19.810000 3 58960 inside_temperature 1.475850e+12 19.630000 4 58960 inside_temperature 1.475850e+12 19.470000 5 58960 inside_temperature 1.475850e+12 19.300000 6 58960 insi

android - gridView Layout not showning and i got black screen -

i trying make gridlayout each block movie poster. using themoviedb.org that. think did right there still nothing showing in application can please me code. i have 3 classes , 1 xml file 1) first class mainactivity: package com.example.admin.movies; import android.support.v7.app.appcompatactivity; import android.os.bundle; public class mainactivity extends appcompatactivity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); } } 2) second class mainfragment fragment want work , inner asynctask class show take "poster_path" json query : package com.example.admin.movies; import android.net.uri; import android.os.asynctask; import android.os.bundle; import android.support.annotation.nullable; import android.support.v4.app.fragment; import android.util.log; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup;

maven - Execute only a submodule along with skipping it from parent pom's execution -

following skip submodule during maven build , answer it . tried implementing parent pom.xml <modules> <module>module1</module> <module>module2</module> </modules> ... <profiles> <profile> <id>ci</id> <modules> <module>integration-test</module> </modules> </profile> </profiles> this solves problem of executing integration-test command : mvn -p ci clean test what expected only execute integration-test execute module1 , module2 , integration-test modules. is there way adding existing stated capabilities? mvn -pl integration-test clean test wouldn't work since module not added list of modules in parent pom.xml . have tried setting activebydefault true specific profile well, doesn't work. also profiles change require specific plugin build/compile modules? note - aware of fact 1 of solution use

Visual Basic ActiveX control can't access properties and methods at run time -

i have simple activex control have 4 properties , 8 methods set , get, problem can't access them @ runtime , @ desin time works fine below error message occur when lanch programm in visual basic , dispatch map file.idl of activex control. in visual c++ have message "member not found" when access propertys or methods. can me problem. in advance. an unhandled exception of type 'system.runtime.interopservices.comexception' occurred in mscorlib.dll additional information: catastrophic failure (exception hresult: 0x8000ffff (e_unexpected)) csliderctrl1.cpp file has dispatch map begin_dispatch_map(csliderctrl1, colecontrol) disp_property_ex_id(csliderctrl1, "backgroundcolor", 1, getbackgroundcolor, setbackgroundcolor, vt_i4) disp_property_ex_id(csliderctrl1, "backcolor", 2, getbackcolor, setbackcolor, vt_i4) disp_property_ex_id(csliderctrl1, "forecolor", 3, getforecolor, setforecolor, vt_i4) disp_property_ex_id(c

Asterisk(ver 11.22.0) EPOCH variable not updated -

i tried use epoch asterisk variable in order take timestmap perform calculation during context execution. what during context exectuion epoch variable doesn't change value. in follwoing example, epoch ahve same value @ 1st line , last line. [test-context] exten => 8001,1,noop(${epoch}) exten => 8001,2,do exten => 8001,3,do exten => 8001,4,do ... exten => 8001,n,noop(${epoch}) is correct? if expected behaviour how can during call processing , in acontext timestamp clauclate example elapsed time? asterisk behaving correclty , "do something" actions buggy such completed within few ms no changes reported in epoch variable value you dialplan correct, ${epoch} print time of execution of priority. i've tested asterisk v.11.22: using dialplan: exten => 997,1,noop(${epoch}) same => n,wait(10) same => n,noop(${epoch}) same => n,hangup this result get: -- executing [997@from-internal:1] noop("sip/1001-000047

docusignapi - How to link Google Sheets and Docusign API with Google Scripts? -

i trying automatically send envelope docusign when google form submitted. have written following code in google script editor // when form gets submitted function onformsubmit(e) { //get information form , set our variables var full_name = e.values[2]; var email_address = e.values[3]; // send email var subject = "test trigger"; var body = "thank testing" + full_name + ""; mailapp.sendemail(email_address, subject, body); var url = "https://demo.docusign.net/restapi/v2/accounts/<accountname>/envelopes"; var payload = { "emailsubject": "please sign stuff", "emailblurb": "testtexttesttexttesttexttesttexttesttext", "templateid": "7078020e-49a0-42c6-b77d-368211d4a666", "templateroles": [ { "rolename": "client", "name": full_name, "ema

android - How to redirect after a login in webview? -

i developing android application . used webview create ui , ajax connect server . there login.html file have 2 text inputs , sends username , password server , if server returns success redirects index.html file . unfortunately doesn't redirect index.html . in android emulator works in android 6 mobiles doesn't work . body knows how redirect in webview in situation ? var username = $("#username").val(); var password = $("#password").val(); var params = { "username": username, "password": password }; $.getjson("http://warehouse-abforce.rhcloud.com/api/v1/login", params, function (data) { document.getelementbyid("wait").style.visibility = 'hidden'; if (data["success"] == "true") { window.localstorage.setitem("name_user", data["name"]); window.localstorage.setitem("username&quo

mysql - How can I resolve this syntax error? -

im trying write query pull customer data email. query: select opp.* ( select opp.*, row_number() on (partition opp.contact_email_address order opp.status_date desc) row_number opportunity_data opp opp.site = 'wesellinsurance' , opp.email_bounced = 'false' , opp.email_unsubscribed = 'false' , opp.first_mkt_medium not in ('partner', 'inbound_outbound') , opp.latest_mkt_medium not in ('partner','inbound_outbound') , opp.on_cover = 'false' , opp.primary_group in ('market_trader', 'food_stand', 'mobile_food_van', 'caterer') , opp.opportunity_status = ('quote_recieved','rfq_submitted', 'policy_expired_not_renewed') , datediff(day, cast(latest_rfq_submitted_date date),cast(getdate() date)) > 30 , opp.lifecycle = 'new_business' ) opp row_number = 1 most syntax analysers theres issue on line 7 cant seem see in missing on line 18

.net - c# : How to pass Authorization values as Headers using WebBrowser.Navigate() method? -

there api used fetch data server, when pass whole url authorization value it's working fine below : webbrowser.navigate("https://abc/resources/1&authorization=bearer%tokenvalue"); know security leak , not practice hence want send authorization details in headers section. below code tried couldn't make work. string header = "authorization=bearer tokenvalue" webbrowser.navigate(https://abc/resources/1, "", null, header);

java - Beanshell Scripting in Jmeter -

Image
i trying increment alphanumeric string , pass request in jmeter 2.11. attaching snippet below. please help. import java.util.*; import java.io.*; var str="baseds66"; var a=1; int position=8; string newstr=str.substring(6,position); //string newstr=str.replace("baseds",""); var n = ${newstr}; //string add = newstr + integer.parseint(1); //string newstr1=sum(newstr + a); //for (int i=0; i<newstr ) vars.put("str",n); thanks in advance if need : extract 66 increment 67 replace original value baseds66 becomes baseds67 and store value ${str} jmeter variable can follows: import java.util.regex.matcher; import java.util.regex.pattern; string str = "baseds66"; pattern p = pattern.compile("(\\d+)", pattern.case_insensitive | pattern.dotall); matcher m = p.matcher(str); if (m.find()) { string originalvaluestring = m.group(1); int originalvalue = integer.parseint(originalvaluestring); original

kivy - ImportError: No module named jedi -

i work windows 7 , python 3.4 , kivy 1.9.1 after following instructions kivy-designer installation docs , installing modules needed correctly, try run app cmd python -m designer error title: traceback (most recent call last): file "c:\python27\lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) file "c:\python27\lib\runpy.py", line 72, in _run_code exec code in run_globals file "c:\users\milos.grujic\desktop\kivy-designer\designer\__main__.py", line 3, in <module> designer.app import designerapp file "designer\app.py", line 9, in <module> designer.components.designer_content import designercontent file "designer\components\designer_content.py", line 5, in <module> designer.uix.py_code_input import pyscrollview file "designer\uix\py_code_input.py", line 1, in <module> import jedi importerror: no modul

mysql - My Sql Data output convert rows to column like pivot table -

i have table called marks. sample data table given below. in table subject field dynamic, name , number of subject may vary based on class. id name subject marks ------ --------- ---------- --------- 1001 john maths 78 1001 john english 88 1001 john computer 92 1002 mary maths 81 1002 mary english 85 1002 mary computer 90 how can out put of above table data in below format. don't know whether simple question, beginner in sql , developing field. please help. id name maths english computer ---- -------- --------- --------- ------------ 1001 john 78 88 92 1002 mary 81 85 90 a simpler solution use conditional aggregation so select id,name, sum(case when s.subject='computer' s.marks else 0 end) computer, s

javascript - My website form fields are hiding behind the keyboard in mobile browser -

i implementing website. sort of plugin. has login page. when click username or password, body of website should compress. instead hides behind keyboard. using bootstrap inside it. tried implement script in header of page not working. tips? $(document).ready(function() { $('input').blur(function() { $('body').css({'height':'100vh'}) }) .focus(function() { $('body').css({'height':'50vh'}) }); });

How to expose node binary to electron app without install node -

i build electron app plugin system based on yarn (installed node module), since don't want force users install node or npm. some plugins depends on modules postinstall script "node index.js". script failed because node doesn't exists. since electron contains version of node thought add directory electron's node path, can't find node binary in packaged app. i missed something? can think other workaround? i use electron-packager on mac. i don't think it's relevant issue here main part of install function: var modulepath = join(__dirname, '../', 'node_modules', 'yarn', 'bin', 'yarnpkg') var args = ['add', `${plugin.name}@${plugin.version}`, '--json' ] var child = fork(modulepath, args ,{ silent: true, cwd: this.pluginspath }) process info: { "path": "/usr/bin:/bin:/usr/sbin:/sbin", "versions": { "http_parser": "

r - Grouping and summarising when the columns returned are not known in advance -

i have dataframe --say x -- feeds function returns subset depending on value of column x$id. this subset y includes column y$room contains different mix of values depending on x$id value. the subset spread tidyr , values of y$room become columns. resulting extended df --say ext_y-- must grouped column y_ext$visit , summary statistics should calculated remaining columns special function. the obvious problem these columns not known in advance , therefore can not defined names within function. the alternative of using indexes of columns instead of names not seem work dplyr, when group_by involved. do have ideas how problem tackled? the dataframe has many thousands rows, give glimpse: > tail(y) id visit room value 11940 14 2 living room 19 11941 14 2 living room 16 11942 14 2 living room 15 11943 14 2 living room 22 11944 14 2 living room 25 11945 14 2 living room 20