matt matt

19537 questions
1

votes
1

answer
794

views

Python > Matplotlib > Animated live plot > framerate

this is my first question post. Im seeing a refresh rate of about 1 frame every 5 seconds in my live plot using the below code. I want to see something close to real-time updates. The serial rate of the data being plotted is sufficient to support at least 2 frames per second. I've built this sim...
Matt Bauer
1

votes
0

answer
239

views

tabbed activity not showing any tabs

If I try and create a new project with a tabbed activity, no tabs show. Call me crazy, but I'd actually like tabs on my 'tabbed activity'. I searched on Youtube and it seems tabs just come up for others. Did something change with the newest version of Android studio? How do I add actual tabs and...
Matt
1

votes
1

answer
61

views

Can I use javascript to retrieve the content header when setting the src on audio

I'm using the HTML5 audio control to play an mp3 file that is streaming from the server: And I am setting the src of that audio control dynamically, when a user clicks a button: $('#myBtn').on('click', function (e) { var audio = document.getElementById('audio'); audio.src = '/api/audio/f56i4gi8lh';...
Matt Spinks
0

votes
1

answer
6

views

How to get Task to call pendingIntent

I've been trying to pass a pendingIntent to the Activity Recognition Client as part of a Task, however the pendingIntent doesn't seem to be being called. I'm using Google's Activity Recognition Client (https://developers.google.com/android/reference/com/google/android/gms/location/ActivityRecognitio...
Matt
1

votes
1

answer
31

views

How do I correctly implement Android Viewport Spoofing?

I've recently built an app that uses a full screen web view to load a website I don't own. (Therefore, no control of site code) I need the webview to display a desktop version of the site, and desktop http header spoofing didn't do the trick. I found that it's the viewport size that determines wheth...
Matt Zabojnik
1

votes
1

answer
48

views

Counting words in html documents

I want to count words in html articles using R. Scraping data like titles works nice and i was able to download the articles (code below). Now i want to count words in all of those articles, for example the word 'Merkel'. It seems to be a bitcomplicated. I was able to make it work with the headlines...
matt
1

votes
0

answer
538

views

Chrome not trusting Fiddler certificates

Similar to this question: Chrome Doesn't Trust Fiddler Root Certificate But the upvoted answer (https://stackoverflow.com/a/33818661/1250301) doesn't seem to be working for me in fiddler v 5.0. If I load a site with https in chrome I get NET::ERR_CERT_AUTHORITY_INVALID message. If I 'reset all certi...
Matt Burland
1

votes
0

answer
34

views

Style SharePoint web part content to appear on same line

How do I style a list/announcement web part (currently set to Newsletter style) so that the Created By and Created Date fields appear on the same line? I don't have access to our company's Sharepoint files or Sharepoint designer so was hoping to achieve this through something like the content editor...
Matt Hall
1

votes
0

answer
611

views

pip list ImportError: libz.so.1: cannot open shared object file: No such file or directory

I have a virtual environment that has a python installation in it. I an running RHEL 6.8 and when I source the virtual environment on my RHEL machine and run most pip related commands I am seeing this. I was able to source this virtual environment on other machines that are running RHEL 6.7 and 6.6...
Matt
1

votes
1

answer
51

views

Displaying Row In Resultset Where No Values Exist

I've read a couple of questions on here that seem to answer this e.g. Return a value if no rows are found SQL However, I'm struggling to get it to work for me. This is the output of my query as it stands: As an example there are actually six classes, but only three display because they actually hav...
Matt
1

votes
0

answer
341

views

Vue.js + Google OAuth2 + Client-side rendering

I am implementing a log-in functionality in my web application. In order to do so, I am using a popular module called 'passport' to do OAuth handling. Here is the problem! My Signin.vue file: Sign in with Google export default { name: 'SignIn', methods: { googleSigninRequest: function() { axios.get(...
Matt Choi
1

votes
1

answer
83

views

IT Hit WebDav protocol installer fails with Firefox

I am using the latest version of Firefox (57.0.4) to test my IT Hit WebDav server implementation. When I attempt to open a file other than MS Office I expect to be prompted to install the protocol installer. Rather than being prompted I get a dialog that says I need to install something from the Win...
Matt Conrad
1

votes
0

answer
69

views

TensorFlow – Slice at different position for each batch element

I need to slice a window of constant size for each batch element, but starting at different locations. For example, for windows of length two, I want to be able to do something like: batch = tf.constant([[1, 2, 3], [4, 5, 6]]) window_size = 2 window_starts = tf.constant([1, 0]) # The index from whi...
Matt Cooper
1

votes
2

answer
187

views

Css and js files stalling on xampp using the Laravel framework

Xampp was working fine until this morning when internal css and js scripts stopped loading with them 'stalling' in the browser. here is an example of my code: A strange thing though, its loading fine if i use http://localhost/, but if I use the vhost I created (http://cars.web), it doesnt work. As I...
Matt Jameson
1

votes
1

answer
362

views

Force youTubePlayerFragment orientation

I have a app which only allows portrait orientation. I would like to force the youtube video to be set to landscape/horizontal orientation without going full-screen. I have tried rotating the fragment that contains the video, which works to an extent (the container takes up the shape of landscape,...
Matt_O
1

votes
1

answer
393

views

How to create a lettered list using docx?

I use python for teaching some of my science courses, where I use it to generate unique assignments and tests for students. I've run into an issue that I can't sort out on my own. I'm trying to make a series of nested lists. For example, I would like to have a numbered question, and then sub parts t...
Matt
1

votes
1

answer
44

views

Xamarin Mac KVO model bindings - change fires twice

I am trying to implement KVO bindings in a Xamarin Mac desktop app. I have followed the docs, and it is working, but the bindings appear to trigger 2 change events each time! If I create a KVO model with a binding like this... private int _MyVal; [Export('MyVal')] public int MyVal { get { return _...
Matt Bryson
1

votes
1

answer
43

views

Netbeans IDE 8.02 Java jFrame GUI bulder initComponents error

I am Currently building a GUI for a tic tak toe game and i have finished it all, however when I tried to run it failed so I checked the code to find the problem and the only one i can currently find is that initComponents is red lined and I am Having a hard time finding out why. I am currently new t...
Matt
1

votes
1

answer
244

views

DynamoDBVersion Attribute with Conditional Update

I am using the .NET object persistence model with DynamoDB, and am making use of the built in optimistic locking using the DynamoDBVersion attribute. [DynamoDBTable('items')] public class MyItem { [DynamoDBHashKey] public string Id { get; set; } [DynamoDBVersion] public int? Version { get; set; } }...
Matt Cole
1

votes
0

answer
198

views

“Value” causing issues in schema generation

I have an object like this: 'Meta': { 'Type': 10, 'Key': 'Meta', 'Value': {
Matt
1

votes
2

answer
796

views

Dot file viewer for live updates from python (Through GraphViz)

I'm trying to find a way to visualize a directed graph of nodes in a way such that I can run a script in Python that modifies the graph, and in turn, outputs a new graph. The goal is really to be able to programmatically add and remove edges from the graph in real time. My current implementation...
Matt Kremer
1

votes
0

answer
273

views

What is the Math for this Pinescript output

(Tradingview's Pinescript) This might be math related, but I can't figure out what I'm doing wrong here. I have a script that calculates the MACD histogram for a 10,20,5 MACD and also evaluates the current price High/Low average. IF today's High/Low average > Yesterday's AND today's High/Low Average...
Matt Zabojnik
1

votes
0

answer
221

views

Collection with GUID id not binding

I have a pretty simple pair of classes: public class Question { [Key] public int QuestionId { get; set; } [Required] [Display(Name ='Question Text')] public string QuestionText { get; set; } public virtual IList Answers { get; set; } } public class Answer : IValidatableObject { [Key] [DatabaseGenera...
Matt Burland
1

votes
1

answer
253

views

Which IUser to Use in AcquireTokenSilentAsync in MSAL

I'm asking this question in the context of a mobile (Xamarin) app using Azure AD B2C. The tl;dr; of this is: Should I always use the IUser obtained from the “sign-in / sign-up” policy when invoking PublicClientApplication.AcquireTokenSilentAsync? Now let me explain a scenario a bit. A user trie...
Matt Soucoup
1

votes
1

answer
205

views

JS object destructuring without defining variable names [duplicate]

This question already has an answer here: How do I access previous promise results in a .then() chain? 15 answers How do I destructure all properties into the current scope/closure in ES2015? 2 answers When destructuring objects in ES6 JS, you can use the { a, b } syntax in order to create new var...
Matt Fletcher
1

votes
1

answer
50

views

Makefile output into subfolder

I'm working on setting up a project for a GameBoy game, I want to have the files output into a subfolder of the project rather than the root. Adding the foldername in front of the filenames doesn't seem to work nor do any of the suggestions I've found online. This is what I currently have for the ma...
Matt Horgan
1

votes
0

answer
62

views

Why SVN Diff is taking 10 hours in Crucible

Good Day All, My team has two servers, one for crucible and one for SVN. Recently we have had developers complain that their SVN revision are taking a long time to show up in Crucible, sometimes will take up to 24 hours. We really would like this time to be on the scale of minutes. Here is a screens...
Matt Kimball
1

votes
2

answer
389

views

MVC route is not using default action

In my web api, I have created this controller: public class DistributionGroupController : ApiController { [HttpGet] public ServiceResult Index(string id) { if (id == null) return null; else return new ServiceResult(); } } In addition, this is my route config. I am specifying my default action for my...
Matt Spinks
1

votes
0

answer
75

views

TF Slim eval_image_classifier 0 accuracy on pre-trained ckpts

Running tf slim's eval_image_classifier.py with the inception_v3, inception_v4 and resnet_v2_152 checkpoints pre-trained by google, all give 0% accuracy consistently. Changing the code a little to add TruePositives, TrueNegatives, FalsePositives and FalseNegatives as metrics shows this. eval/TruePo...
Matt Fly
1

votes
1

answer
107

views

pytest django TestCase give strange failures with `--pdb`

I have a very simple class which fails on any version of pytest>3.0.0. When I invoke the tests with --pdb. from django.test import TestCase class TestTestCase(TestCase): '''Tests for the TestCase class.''' def test_that_client_exists(self): '''Assert that the class has a client.''' assert self.clien...
Matt
1

votes
0

answer
58

views

Can't understand Oracle logic for Procedure

PROCEDURE DELETE_X1 IS v_emp_unum VARCHAR2 (25); BEGIN /*FOR rec IN (SELECT l2.*, row_number () OVER (PARTITION BY case_uid,nvl(min_eff_date, eff_begin_date) ORDER BY case_uid,nvl(min_eff_date, eff_begin_date)) rw, ROWID rid FROM (SELECT l1.*, MIN ( CASE WHEN eff_end_date = next_begin - 1 THEN eff...
matt
1

votes
0

answer
216

views

Add to odata collection property in .NET

Using the odata-v4 service connection in visual studio C# .NET, I get an entity of type testDefinition. testDefinition has property called features which is a collection of entities of type feature. In the DB, testDefinition to feature is many to many with a junction table. In my code, I add a servi...
Matt
1

votes
1

answer
47

views

How to write to two different places with the same buffer? (C-System call)

I'm supposed to be implementing the Unix 'tee' command with the option of the '-a' flag which will append the input to the EOF instead of overwriting it. The catch is I can only use C System calls for I/O. I've so far been able to implement everything except multiple outputs. In my while loop I hav...
Matt Dey
1

votes
1

answer
56

views

Fabric js sending image from canvas

I have buquet creator in canvas and I want to make save button where canvas is converted to png file. And after I fill the form It should send a email to admin with png attached. Is it posible to do this conversion with fabric js ?
M.Matt
1

votes
0

answer
34

views

Appending to an array in Firebase - Asynchronous and reloadData()

I am having trouble with the asychronous nature of Firebase, particulary appending to an array from within an observe function. Any suggestions or help would be much appreciated :) The comp that is appended to the users array in the selectUsersComp function disappears when the firebase observe funct...
Matt Phelps
1

votes
1

answer
289

views

Changing y axis text on mcmc_areas() plot from bayesplot R package

I am having some trouble altering the y-axis values in graphs produced by the mcmc_areas function. My goal is to change the text and update the y-axis values to include greek, subscripted letters. I can do this pretty easily in other graphs that can be created using the bayesplot package in R. For...
Matt Barstead
1

votes
1

answer
544

views

Android ArrayList<Object> filtering by current date

Hello masters of Android & Java :) I've spent about 5 hours today trying to find out how to filter my ArrayList (I'm using Alamkanak's WeekView external library) so my layout with custom arrayadapter can display events that match today's date (only monday events on Monday 5th Feb, tuesday events on...
Matt
1

votes
0

answer
78

views

Java: AWS CloudSearch - domain client/config best practice

I have a multi-threaded app that makes search calls to AWS CloudSearch (the search endpoint) and document upload calls (to the doc endpoint). I need to use a different ClientConfiguration for each, and I see that that class is not thread safe, but I think AmazonCloudSearchDomainClient is thread safe...
Matt
1

votes
0

answer
45

views

Stop coreapi displaying the admin api docs

I am currently documenting the API I have created for an app. I'm using the built in documentation system that comes with Django Rest Framework and coreapi (as described here). class MyAPI(APIView): schema = ManualSchema(fields=[coreapi.Field(...), ...], description='Describe this view') I set up th...
Matt Ellen
1

votes
1

answer
279

views

Is it possible to set the sender address dynamically in nodemailer?

I am using nodemailer to send myself emails from a contact form as part of my application. I have it set up with SendPulse as an SMTP server. I would like to create the message like so: const transporter = nodemailer.createTransport( { service: 'SendPulse', auth: { user: '[email protected]', pass:...
Matt Gween

View additional