Wes

1

votes
1

answer
128

views

Selenium - Obtain app version from .apk files

I am running Android tests using Selenium and Appium. Would like to know how to programmatically obtain the Android app version given then .apk file. OR, if this info could be obtained through Appium that would work as well?
Wes
1

votes
3

answer
10.8k

views

.NET DateTime.ToString() - Default Format Setting

Is the default format of ToString dependent on anything server related? Here's the issue: I'm testing and have tested an application on my local machine and ToString(), by default, is returning in a format of 'MM/dd/yyyy hh:mm:ss tt', however on our server it appears to be returning as 'dd/MM/yyyy...
Wes P
1

votes
0

answer
225

views

Using Docker with Jenkins to spin off slave containers

So I've been trying to follow the riot games tutorial on setting up jenkins with docker to spin off ephemeral containers. https://engineering.riotgames.com/news/jenkins-ephemeral-docker-tutorial The thing is this uses the deprecated docker toolbox and I'm setting this up natively on a CentOS box. Th...
Wes Elliott
1

votes
0

answer
55

views

How To Apply Star Rating to Images in Photoswipe

I use Photoswipe Ver 4.1.1 to view images. In the HTML markup I have an attribute called 'star-rating' that contins a number. In Photoswipe initialization I am adding this value to the Item[] array like so... code is approx line #835 // create slide object item = { src: el.getAttribute('href'), w: p...
Wes
1

votes
0

answer
35

views

Google AdWords API special values (< 10% or > 90%)

Some of the fields of the performance reports return special values such as '< 10%' or '> 90%' instead of returning the actual percentage. I was wondering if anyone knew a way to get an actual percentage value for these fields. I am trying to chart the data over time and it doesn't help me much wh...
Wes Thompson
1

votes
1

answer
28

views

Trouble working with and updating dictionary using a class and function in Python 3 [Newbie]

I am somewhat new to coding. I have been self teaching myself for the past year or so. I am trying to build a more solid foundation and am trying to create very simple programs. I created a class and am trying to add 'pets' to a dictionary that can hold multiple 'pets'. I have tried changing up t...
1

votes
1

answer
135

views

NullPointerException with “getSupportActionBar().setDisplayHomeAsUpEnabled( true )”?

I get the following error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.weslange.Term_Scheduling/com.weslange.Term_Scheduling.Term_ChangingDetails_Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.weslange.Term_Scheduling.TermData.getTermI...
Wes Lange
1

votes
0

answer
74

views

Facebook Marketing API Sometimes not Returning the Data

I've been looking for hours and don't see any answers for my problem so here goes. I am working with the Facebook Marketing API and while it's working fine for most metrics/breakdowns, some of them don't return anything but dates in the response. Impressions, clicks, spend, etc. work just fine. Ho...
Wes Thompson
1

votes
0

answer
42

views

Nested switch statement not running correct case code block

I'm building a react app (rails backend) and have set up a nested switch case which first checks if the user has made at least a single entry, and if so, goes into a nested switch case and checks if a variable is less than 0 (basically a countdown, limiting the user to one entry a day). The problem...
Wes JC Corman
1

votes
1

answer
165

views

Testing a `PrincipalContext` using `ValidateCredentials(null, null)` behaves unexpectedly

I need to validate the credentials that are used to connect to an AD server. If if pass invalid credentials to PrincipalContext(ContextType, String, String, String), PrincipalContext.ConnectedServer throws a System.DirectoryServices.DirectoryServicesCOMException which is discovered on the first use...
Wes Toleman
1

votes
0

answer
107

views

Firebase dynamic link not returning deeplink iOS

I have an app integrated with firebase dynamic links. I'm having a weird issue, I'm only able to retrieve deeplink from dynamic link when I'm in debugging mode. The rest of the time it just return me deep link = nil and error = nil. Does anyone run into this issue? - (BOOL)application:(UIApplicatio...
wes. i
1

votes
0

answer
312

views

Creating bidirectional PageView scrolling in Flutter?

How would you implement bi-directional page scrolling functionality in Flutter? Multiple PageViews in a given Scaffold don't seem to work, nor do nested PageViews. My feeling is that NestedScrollView might offer a solution, but I'm struggling to figure out the implementation.
Wes Johnson
1

votes
0

answer
155

views

Are Facebook App publish_pages permissions required for my personal API access?

I am trying to automate posting to my Facebook Business page. FB is forcing me to get an app review to approve the manage_pages and publish_pages permissions. I am not making an app for any other users, it is just for me. Is there a way to avoid app review since I am not creating a public app? When...
Wes
1

votes
0

answer
54

views

NODE_PATH or any module alias with node-server on zeit/now.sh

Using @​now/node-server, I'm trying to achieve this: const myLocalLibrary = require('@src/lib/myLocalLibrary'); Instead of const myLocalLibrary = require('../../../lib/myLocalLibrary'); The problem is that I have tried multiple things that won't work, including: Setting NODE_PATH=src and using re...
Wes Souza
1

votes
0

answer
29

views

Can't get form handling page to pass data into php my admin [duplicate]

This question already has an answer here: How to display errors for my MySQLi query? [duplicate] 3 answers Reference - What does this error mean in PHP? 32 answers I have a simple html form set up with one field 'name' and then submit. I'm trying to be able to input name and hit submit, have it g...
Wes Creations
1

votes
0

answer
161

views

Absolute depth from iPhone X back camera using disparity from AVDepthData?

I'm trying to estimate the absolute depth (in meters) from an AVDepthData object based on this equation: depth = baseline x focal_length / (disparity + d_offset). I have all the parameters from cameraCalibrationData, but does this still apply to an image taken in Portrait mode with iPhone X since t...
Wes W.
1

votes
3

answer
63

views

Using “rule of zero” when I have pointers for polymorphism

For the 'rule of zero', I understand that I want to separate data management out into simple classes implementing rule of 3, rule of 5, whatever, so that the the more complicated classes can use constructors, assignment operators, etc, as automatically provided. How does this work when a class membe...
Wes
1

votes
0

answer
31

views

Error on GetSelectNamesDialog in Excel VBA

So i have been struggling with this issue for about a week now. The below code is the opening portion of a project I'm working on. The goal here is to open up the address-book pop-up for the Global Address List in outlook. I gathered most of this code from another question or two here on stacked ov...
Wes Moore
1

votes
1

answer
21

views

Newly appended item causes previously appended item to lose toggle functionality

I have a basic jQuery script that appends new divs into a UL element. Upon hitting custom 'ADD TASK' button, a new div is appended to the bottom of the UL area. With each newly appended item, I would like the item to have have toggle function that displays hidden div underneath. Basically this is a...
Wes Creations
1

votes
1

answer
36

views

PDO expeced array not returning only a boolean of 1 on webpage

I am working to create a content class which will pull all content from the database via a PDO, then run the results through a method which will convert the results into objects, and the loop through the objects, and echo the object to a specific module of the webpage. What is expected When the cl...
Wes Henderson
1

votes
0

answer
46

views

Selenium 3/TestNG giving N/A test result

I've recently upgraded to Selenium 3.141.59 from 2.47.0. Since the upgrade, our test suites have been receiving random N/A test results. It happens to about 1% of the tests and I have not been able to track down any meaningful logs to determine the cause. We're using Selenium Grid Extras as our dis...
Wes Young
1

votes
1

answer
38

views

Woocommerce Products Offset Shortcode

I'm trying to create a custom Woocommerce products shortcode that allows me to offset a certain number of products when adding the shortcode to a page. I've been able to get the offset part working by looking at WooCommerce - Recent Products Offset and https://ericwijaya.com/load-woocommerce-loop-cu...
Wes Asbell
1

votes
2

answer
590

views

Lynx removes newline characters from post_data input

I am trying to post a file to a URL via the MS-DOS command prompt. I am using the Lynx browser to do this. I am able to post my file just fine, but all of the newline characters are removed by Lynx before creating the POST request. Is it possible to post a file via command line without having the...
Wes
1

votes
1

answer
155

views

Trying to use .htaccess rules to redirect to load FR content w/ a FR domain and EN content w/ an EN Domain

I'm using MediaWiki with mulitlingual subpages. When I go to 'english.com/Page_title' I want to load just that (which is the default) When I go to 'french.com/Page_title' I want to load the /fr subpage, which is 'french.com/Page_title/fr' and here's my current rules: RewriteBase / RewriteRule ^[^:]*...
Wes
1

votes
1

answer
288

views

How to not Join on an Inline Table or Return a NULL value if it its result set is empty

I have a query that returns several values, all grouped around their 'transaction type' (this can be card / cash / cheque). Some values are built from inline tables. All of the inline tables return a common column that I can use to join them to one of my original tables. However, there is a possibli...
Wes Price
1

votes
2

answer
3.6k

views

How can I get a list of products related to an invoice in magento?

I am trying to alphabetize the items listed on an invoice in the backend of a magento site. I have access to the Mage_Adminhtml_Block_Sales_Order_Invoice_View_Items object used to display these items in the backend. Is there any way I can use this object to get a list of product skus and reorder the...
wes
1

votes
1

answer
273

views

Simple wxPython Frame Contents Resizing - Ratio?

I have a wxPython app with one frame and one panel. On that panel are a number of static boxes, each of which has buttons and textboxes. I have just begun reading about sizers, but they seem like they might be more than what I need, or it could that they are exactly what I need but I don't know how...
Wes
1

votes
2

answer
3.6k

views

Prevent tooltip/div from going offscreen/out of browser chrome on mouseover/hover

I'm using jquery to add and remove a class to have an informative tooltip pop up when I hover over a thumbnail but when the thumbnail is too close to the edge of the browser chrome the tooltip goes outside the chrome and isn't readable. Any ideas on where to start to have the tooltip remain on scree...
Wes
1

votes
1

answer
210

views

Trying to understand recursion in objects and arrays in php

I am trying to build a mysql query that adds items to a database. The items are held inside an object that is formatted like: object(PhealResult)#7 (5) { ['request_time']=> string(19) '2011-08-04 14:14:37' ['request_time_unixtime']=> int(1312467277) ['cached_until']=> string(19) '2011-08-04 20:14:3...
Wes
1

votes
2

answer
2.5k

views

mongo: multiple queries or not?

I'm wondering the best way to query mongo db for many objects, where each one has an array of _id's that are attached to it. I want to grab the referenced objects as well. The objects' schemas looks like this: var headlineSchema = new Schema({ title : String, source : String, edits : Array //...
wes
1

votes
2

answer
413

views

Jquery OnChange fires but no data returned

I have posted this a few times looking for some help, I cant seem to work out why i dont get any data from my dynamic drop down but i do from the 2 static fields. I did get some answers but mainly saying that i need to sort out the security, which i hope to learn next before anything is live online,...
Wes_Dunn77
1

votes
1

answer
240

views

Input baudrate vs output baudrate

OS is Ubuntu 10.04 32-bit. All these years I've unknowingly assumed that input and output baudrates were symmetrical, in == out. I just noticed, however, that the Linux termios structure contains fields for the input and output baudrate. And there are 'in' and 'out' versions of the buadrate setter...
Wes Miller
1

votes
1

answer
417

views

Rails Creating multiple records with one field different

In my Contract form, I allow the user to select a Unit from a dropdown box, OR select multiple Units from a group of check boxes. The dropdown field is named unit_id and the multiple checkboxes are named multi_unit_ids[]. (since both of these options are on the page, I cannot use the same name). The...
Wes Foster
1

votes
1

answer
68

views

Reducing the number of table columns

I'm trying to turn a huge spreadsheet of data into a database to make data analysis easier, but I'm running into problems with too many columns. I've tried my best to learn about normalization, but I'm having a hard time applying it to this use case. Scenario We are performing N independent measure...
Wes
1

votes
2

answer
787

views

Linux C++ Compile Boost into my program

I've look around google and StackOverflow but can't seem to ask the right question to get a useful answer. I have an application program that compiles on Ubuntu 10.04 and links in the Boost::serialization library. When I tried to run my code on another machine, it won't run saying it can't find the...
Wes Miller
1

votes
1

answer
54

views

Google Analytics recorded 100 new visits from multiple locations

Google Analytics suddenly showed a surge of new visits to my website from tons of different countries at the same time, I have a small community website so I am sure it was some kind of attack, I'm just not sure how it was done, I was hoping someone may be able to shed some light on this so I can ma...
Wes_Dunn77
1

votes
2

answer
2.7k

views

How to process saml:Assertion in WCF?

New to WCF, but very familiar with past WSE* paradigms. I'm finding the configurability (read: complexities) of WCF to be quite a challenge. I'm attempting to use a .NET 4.0 WCF Client to consume a web service provided by our government which runs on WebSphere Application Server/6.1. Their scheme us...
wes
1

votes
1

answer
3.5k

views

gstreamer gstrtpbin sender/receiver in the same pipeline

I wish to build a single gstreamer pipeline that does both rtp audio send and receive. Based on the examples (few as they are) that I've found, here is my almost working code. (the program is written in Rexx, but it's pretty obvious what is happening, I think. Here, it looks a lot like bash!). Lin...
Wes Miller
1

votes
1

answer
189

views

C++ find file on LD_LIBRARY_PATH

In C/C++ Is there an existing way to check to see if a particular file is on a particular path? I imagine syntax that might look like stat() but with additional parms for filename and path. pathstat( struct stat stResult, const char* filename, const char* path );
Wes Miller
1

votes
1

answer
1.3k

views

GStreamer: Noise reduction perhaps by using the pulssink monitor sources

Before I go off on a programming quest I thought I'd ask for guidance that google isn't giving me. I currently have a gstreamer pipeline that receives sound from a filesrc, a pulsesrc or udpsrc and plays it to a pulsesink. When I use the microphone I get a lot of what I believe is system noise and...
Wes Miller

View additional