jon jon

1

votes
0

answer
53

views

Control tick spacing in d3 line graph

I am currently implementing a line graph in d3 that needs to have equal spaces betwee custom tick ranges. When using a linear scale, I can successfully build the scale with the necessary ticks but since the distance between each range of ticks is different I end up with something similar to this: |-...
Jon Langel
1

votes
1

answer
50

views

Datetime SQL statement (Working in SQL Developer)

I'm new to the SQL scene but I've started to gather some data that makes sense to me after learning a little about SQL Developer. Although, I do need help with a query. My goal: To use the current criteria I have and select records only when the date-time value is within 5 minutes of the latest date...
Jon Young
1

votes
1

answer
36

views

Eclipse Java Console Application Isn't Showing

So, I am new to Java, e.g I started a few hours ago. So I'm working with Eclipse, and I exported a Hello World program as an executable jar file, and so when I double click on my application, it loads for a quick second, and then nothing happens. Here's the code that I have: import java.util.Scanner...
Jon
1

votes
1

answer
47

views

how can i get get the delete button to remove a single item from local storage

When I add a new item to the list it creates a delete button for that specific item. I would like to know how I can get the delete button to remove that item from the list without deleting all the other items and also removing it from local storage. I have tried before to get it to work but no luck....
Jon
1

votes
1

answer
89

views

Using IMPORTHTML against Parkrun data and returning N/A

I am using the following call in google sheets =IMPORTHTML('http://www.parkrun.org.uk/harrogate/results/eventhistory','table',1) this used to pull in the table beautifully but has recently stopped working. Anyone know why? Cheers Jon
Jon Yates
1

votes
0

answer
374

views

How do I load web-components with webpack

I'm using webpack 4 with elm and trying to bring in leaflet-map as a web-component. (This is desirable because elm has a virtual dom so mixing with standard JS tends to cause a fight over the controlled elements, it also reduces the usage of ports to talk to leaflet). However I'm struggling to confi...
Jon Rowe
1

votes
0

answer
15

views

Android chart not working

I have been trying a lot to figure out why my chart is not generating. I have a class HomeExchange, with objects entered by user and then stored successfully in a List. I want to draw a pie chart to show the total number of objects that have the same value of the attribute 'nrCamere' with the gette...
Hatz Jon
1

votes
0

answer
183

views

OpenTracing Python requests: Propagate span

I have a Python Flask application that uses the requests library. I am trying to implement OpenTracing in the application. A simplified version is: from flask_opentracing import FlaskTracer from flask import Flask from jaeger_client import Config from opentracing_instrumentation.client_hooks import...
Jon G
0

votes
2

answer
41

views

Replace 0 with 01 and 1 with 10 in a List[int]

I am taking efforts to solve problem K-th Symbol in Grammar - LeetCode On the first row, we write a 0. Now in every subsequent row, we look at the previous row and replace each occurrence of 0 with 01, and each occurrence of 1 with 10. Explanation: row 1: 0 row 2: 01 row 3: 0110 row 4: 01101001 I wr...
Jon
1

votes
1

answer
47

views

Iterating over an array and building a new array with incremented values [duplicate]

This question already has an answer here: Array#each vs. Array#map 6 answers What is the difference between this code: p arr = [1, 2, 3, 4, 5] p arr.map! { |a| a + 2 } and this code? arr = [1, 2, 3, 4, 5] new_arr = [] arr.each do |n| new_arr
Jon Mabale
1

votes
0

answer
88

views

Opening an html page that is written inside a .bat in Chrome?

Probably a simple answer and I'm over thinking it. Trying to write all html, css, JS code inside a batch file. When you get through the batch code and it opens the html page, it opens it in what I can imagine is a system default program. I want it to open in Chrome. This isn't my project, but an exa...
Jon LeForge
1

votes
0

answer
25

views

Erlang - Mnesia sync disc_copy with ram data

I am observing a strange phenomenon. I have iterated over all my records in a table, and emptied a field. This has been completed successfully, as I get the record with the empty field. However, my DCD and DCL files of the table are still huge(100mb+) and have kept the field value. Inside Erlang, I...
Jon Riel
1

votes
2

answer
257

views

Keep vertical scrollbar in a fixed position independent of horizontal scroll

I currently have a grid set up that looks something like this: ... ... ... Essentially what I'd like to do is place an overflow-x on the entire grid-container (so that scrolling horizontally will scroll both the headers and the rows together), but just place an overflow-y: overlay on the row-contain...
Jon Warren
1

votes
0

answer
33

views

Not able to load packages after OSX update

Edit: I partially fixed this by setting a new library and installing all packages again to the new location. I have OSX v10.13.6 and R 3.5. After the most recent OSX update, R does not seem to locate any of my installed packages, and they do not appear in RStudio either. E.g. trying to load ggplot2...
Jon
1

votes
1

answer
52

views

How to validate all elements of an array in stubMatchers

Contract.make { request { method 'POST' urlPath '/for/post' body(''' [ { 'duck': '1' }, { 'duck': '2' }, { 'duck': '3' } ] ''') stubMatchers { jsonPath('$[*].duck', byRegex(nonEmpty())) // jsonPath('$[0].duck', byRegex(nonEmpty())) // jsonPath('$[1].duck', byRegex(nonEmpty()))...
Jon Arc
1

votes
0

answer
427

views

Error circle attribute <cx>: Expected length NaN

I am practicing some d3js charts and i am getting - Error circle attribute cx: Expected length NaN and Error circle attribute cy: Expected length NaN and . I am assuming it has something to do with data and i have a feeling that my data is wrong. For your reference the link for the code that i am...
Jon
1

votes
0

answer
74

views

Laravel Zip Download Mistake

I am trying to simply download a zip file inside my storage directory My blade view: My JS with axios download () { $('.download-app').click((e) => { let _this = $(e.currentTarget); axios.post('download/download', { name: _this.data('download-name') }) .then((response) => { console.log('SUCCESS'); }...
Jon not doe xx
1

votes
0

answer
13

views

Regarding page feeds versus post feeds and RSS Updates in Jekyll

For each category in my Jekyll site, I have a static page with a record of all changes that have happened regarding that category. For instance, a network change log, a lighting change log, a building and facilities change log, etc. I could simply create a new post in the appropriate category and wr...
Jon Griffith
1

votes
0

answer
129

views

Maintaining Stock level using ASP.NET MVC and Entity Framework

I am trying to build an application that keeps track of the stock levels in a store. The issue I have is that you can have multiple 'clerks' deducting from the quantity on hand at the same time. I understand concurrency is required, but I am unsure on how to approach it. For simplicity I have the...
Jon
1

votes
1

answer
406

views

React Native white flash after splash screen on iOS: Official solution not working, throwing error (why??)

I'm having the problem is describe in this post but the solutions provided and even the solution provided in the Facebook docs are throwing and uncaught error (NSException). The error throws at this line of the official Facebook solution: launchScreenView.frame = self.window.bounds; The full solutio...
Jon Aird
1

votes
1

answer
534

views

Pipenv failing to install any packages

I'm trying to make a virtual environment for a script of mine using pipenv, but whenever I try to install any package I get the following error message: 'Command 'python setup.py egg_info' failed with error code 1' For example, when I try to install pandas: mycomputer-admin$ pipenv install pandas In...
Jon M
1

votes
0

answer
39

views

I can't make a correct insert request using Doctrine Rest Driver to a Symfony API Plataform

I have two aplication made in Symfony. In one I have an API made using API Plataform: https://api-platform.com In the other I'm using Doctrine Rest Driver to make request like if I where using a database. https://packagist.org/packages/circle/doctrine-rest-driver I can make select operations, but wh...
Jon Gonzalez
1

votes
1

answer
81

views

itext7 - How to filter render events during write

I'd like to filter RENDER_TEXT events as they are written to an output file. I have a PDF that has some text in it that I want filtered out. I've found that I can walk the document once and determine the characteristics of the render events that I want to filter. Now I'd like to copy the pages of th...
Jon
1

votes
1

answer
586

views

PWA Saving a photo taken without download prompt

I am trying to build a progressive web app that utilizes the device camera to take pictures but want it to save to their Photos gallery without being prompted to download like the native camera app does..Is this even possible..I haven't discovered a way yet and not much info on google about it would...
Jon
1

votes
0

answer
20

views

Reuse earlier allocated space in tail recursion

I am reading tail recursion from tail recursion - LeetCode It state that python do not support tail recursion optimization A tail recursion function can be executed as non-tail-recursion functions, i.e. with piles of call stacks, without impact on the result. Often, the compiler recognizes tail rec...
Jon
1

votes
0

answer
36

views

JavaScript FabricJs put image to canvas view

I want to create a circle and an arrow form using Fabric.js, so that for instance if one clicks on the arrow button, one should be able to draw an arrow (with the current selected width and height), same for the circle. The regarding html Looks like this: Basically a selection if one uses the arrow...
Jon not doe xx
1

votes
1

answer
393

views

Retrofit does not contain parameter

I am using Retrofit in my Android App for Api stuff. Currently I am trying to call a route in my api but I get this error message: java.lang.IllegalArgumentException: URL 'online}' does not contain '{email}'. (parameter #1) If I call the api via Postman: > myapp.test/api/online > > Body: > > usern...
Jon not doe xx
1

votes
1

answer
29

views

SQL Server 2014 - Errog log from Select Statement

I have been tasked to try and automate a process using SQL of taking a .bak file and importing in to SQL, manipulating the data to push the data back out to Access (this is a temporary measure while we come away from Access). Part of this process involves excluding fields from the data and also a bi...
Jon R
1

votes
2

answer
60

views

Dynamic column position with specified anchor point

I want to make a function where I can specify which column should be the anchor point, or the basis of the calculations. set.seed(123) library(data.table) dt = data.table(Acc_ID = c(1:50), P1 = sample((0:10000), 50, replace = T), P2 = sample((0:10000), 50, replace = T), P3 = sample((0:10000), 50, re...
Jon
1

votes
1

answer
36

views

Determine VCS for incoming HTTP Request

I have a custom import domain, that is routed to the correct place when the go get command is executed as defined by this meta tag: . I am trying to test out the new module stuff in go1.11rc1. It specifies here that this meta tag needs to change from the vcs of git to mod. Is there anyway to determ...
Jon Stevens
1

votes
0

answer
34

views

nested ngFor performance on large dataset

I've created a scheduling app that allows users to add other users and view there availability. The app show available times as light grey, non-available as gray, and striped out as a global blackout. I have a 3D array of objects called timeblockViewModels[][] that I'm using to store all this data....
Jon Dosmann
1

votes
0

answer
30

views

Regex - match last CSS selector in a list

Here is my regex: https://regex101.com/r/UWx4mt/3/ I need to select the last expression in a list and apply the replace rule. I think it is evident what I am trying to do in the example above, nonetheless: I am trying to duplicate CSS selectors replace #test-id dynamically with #content, so they app...
Jon Riel
1

votes
0

answer
39

views

legend.box.background multiple aes ggplot2

Using the legend.box feature of ggplot, I want to integrate multiple aes legends into one box. However, I cannot seem to figure out how to organize the legend box. In this example: library(ggplot2) dat
Jon
1

votes
0

answer
40

views

Firebase token login logic

I have a simple app which has a Login functionality, I added firebase to this Project to sent notifications. This works so far. So each device with the app has a unique token, user1 get notificationa and user2 gets notificationb, but if user1 logs out of the application and logs into user2 account u...
Jon not doe xx
1

votes
0

answer
169

views

Selenium RemoteWebDriver with Chromium Embedded

I might be misunderstanding something here so apologies if that is the case. I'd like to connect Selenium to a pre-existing instance of Chromium Embedded both running inside the same application. I thought this would be possible using a RemoteWebDriver and setting the remote-debugging-port argument...
Jon Hatchett
1

votes
2

answer
53

views

Cannot push a commit twice to my remote

I am trying to push an amended commit from one repo to another (on a different machine) and am having trouble understanding why it is not working a second time. My session (edited, but still relevant): [/c/git/repo] (mybranch) [user] $ git commit -a --amend [mybranch ad1804290] Add filtering Date: T...
Jon
1

votes
1

answer
207

views

How to run Gazebo on Google Compute Engine with GPU?

I am attempting to run Gazebo in an Ubuntu 16.04 Google Compute Engine instance with 1 NVIDIA Tesla K80 GPU. The GPU is configured using the following drivers, which are necessary because I am also using Tensorflow in my application. A solution to a similar problem is given here, however I have not...
Jon S
1

votes
1

answer
235

views

Graphing data live from CSV file

I'm trying to graph data live (or look dynamic) using animate from a CSV file that I write to from receiving data over TCP from an instrument. Here is my code: def animate(i): xs = [] ys = [] with open('C:/Users/aeros/Desktop/flashDump.csv') as graph_data: for line in graph_data: if not line.strip()...
Jon Montgomery
1

votes
1

answer
159

views

Encoding URL vars in HREF versus onclick using JS window.location

I don't know why this link does not work, but I have a Javascript redirect (window.opener.location) that I am passing a number of variables through the URL and am having issues when those variables contain apostrophes. I am using URLENCODE() in PHP to build the link, which looks like it is doing wh...
Jon Koerber
1

votes
0

answer
15

views

I would like search results to only return if it matches the whole word not just part of it (jquery search)

I have a search function on my website where the user can search different keywords and then objects with those tags attached will populate underneath the search bar. My problem is I would it to only return results that match the entire word. Right now if I search 'male' for example it will return r...
Jon Stephen

View additional