Henry

1

votes
1

answer
87

views

What is the difference between Point.OrientationMode ESTIMATED_SURFACE_NORMAL and Point.OrientationMode INITIALIZED_TO_IDENTITY?

After I read the following document, the information I get is an orientation mode of the feature point is ESTIMATED_SURFACE_NORMAL if it is on textured surfaces, otherwise it is INITIALIZED_TO_IDENTITY. But I expect the feature point to be detected because it is on textured surfaces, so I'm a bit co...
henry
1

votes
2

answer
48

views

Flutter Log Out & Replace Stack Beautifully

At an arbitrary depth in my Flutter app, a user can log out of the app by tapping on a button. How can I replace the current stack of screens with the auth/login screen and have a 'beautiful' animation for the transition? I'm currently doing the following but the animation is not at all beautiful. O...
Ted Henry
1

votes
1

answer
36

views

Difference Between <%#..%> and <%#:..%>? (Colon Symbol)

I stumbled upon Microsoft ASP.NET's WingTipToy project where the line of code uses
henry
1

votes
1

answer
34

views

How do I add a variable to the legend without including it in the graph?

I would like to add a value to the legend without adding it to the plot. library(tidyverse) gear_color % filter(gear != 4) %>% ggplot(aes(vs, fill = gear)) + geom_bar() + facet_wrap(~gear) + scale_fill_manual(values = gear_color) How would I add Gear 4 to the legend without adding it to the plot?
John-Henry
1

votes
2

answer
599

views

Jmeter - Json Path extractor - conditional selection

I'm trying to conditionally extract the value of an element from the following sample json response: { 'books': [ { 'title': 'book 1 title', 'author': { 'firstName': 'author01', 'lastName': 'abc' } } { 'title': 'book 2 title', 'author': { 'firstName': 'author02', 'lastName': 'xyz' } } ] } I want to...
Henry Dang
1

votes
2

answer
26

views

How do I update pandas dataframes with calculations done group-wise?

Take the following table: df = pd.DataFrame({'a':[1,1,2,2], 'b':[1,2,3,4], 'c':[10,20,30,40]}) print(df.to_string()) a b c 0 1 1 10 1 1 2 20 2 2 3 30 3 2 4 40 I would like the following result: result = pd.DataFrame({'a':[1,1,2,2], 'b':[1,2,3,4], 'c':[10,20,30,40], 'group_avg':[13.5,1...
Henry Henrinson
1

votes
0

answer
38

views

Firefox intermittently sets all colors on a page (text, background, links, highlighted text, etc.) to a single color, on both Android and Windows

This has been happening on Firefox for Android (57.0.1, Android 8.1.0, Security patch level: December 5,2017 -- but I cannot be totally sure that it has happened since the most update, since I have automatic updates on), and just happened on Firefox ESR (52.5.2, 32-bit, updates disabled by sysadmin,...
Chris Henry
1

votes
0

answer
323

views

Element UI tags validation doesn't work in form

I'm using element ui for vuejs. The element ui tags works fine, but when comes to validate the tag with the form item with prop property. Everything doesn't seem to work well. If the tag was empty, I click submit button, it will show tag must be required. When tag was inserted, the required text sti...
Henry Chozo
1

votes
0

answer
310

views

Is there a tool to efficiently export a BigQuery table to BigTable?

Is there a tool to efficiently export a BigQuery table or query result to a BigTable table? Ideally this would be a single Dataflow program that did a BigQuery query on a table and wrote the results to a BigTable table, with a designated key column, and corresponding column names for all the fields...
Henry Minsky
1

votes
1

answer
52

views

Sphere Online Judge Issues (Prime Number Generator)

Ok, so I enjoy using SPOJ to practice programming and developing algorithms. I always have issues with the questions though. A lot of times, I will get a 'wrong answer' message when clearly my code answers the questions properly. If someone could tell me if there is anything wrong or why SPOJ woul...
Evan Henry
1

votes
1

answer
36

views

How to reference two foreign key attributes within one column?

I'm working on building a database in Oracle SQL developer. In context to the scenario I have a primary table which holds two rovers. Here is the code for that table: CREATE TABLE 'ROVER' ( Rover_Model_ID varchar(7) NOT NULL, Rover_Name varchar(50), Manufacturer varchar(50), CONSTRAINT Rover_PK PR...
Henry Green
1

votes
0

answer
49

views

Is it possible to inherit from a linux driver with minimal modifications?

I'm using the spidev driver to expose a few SPI devices connected to an ARM SoC to userspace through a character device. Placing suitable nodes in the device tree will generate the devices as expected. However, the compatibility in the device tree in this case is set using the name 'spidev'. This ca...
Henry Gomersall
1

votes
1

answer
31

views

Reading a CSV file into another CSV not saving

So my CSV_Output file is empty, although I don't get any errors. I'm trying to simply add one more column from my CSV_to_Read file. The print of article.cleaned_text works. So I feel like I'm just doing something stupid here. Thanks! from csv import reader, writer import unicodecsv as csv from goose...
Henry Defner
1

votes
0

answer
362

views

How to update multiple rows of a table in Laravel?

Helper, I wanna update multiple addresses for a particular user_id, with out changing its existing order. Also I'm using relation here. public function update(Request $request, $id){ $data['id'] = $id; $user = User::with('addresses')->find($id); $j = $user['addresses'][0]['id']; foreach($request->ad...
Samuel Henry
1

votes
2

answer
36

views

Cant pass variable for some reason? PHP

Some reason when i call $_POST['xalue'] it will only return the first index of $xaxis. $xaxis = '['-100','-100','240','1056','3560','-650','5980.5','1020']' im just trying to pass the information so when the button is pressed to add the dashboard i can pass the data along. Thank you $query = mysqli...
Henry
1

votes
0

answer
22

views

Reset but not truncate

Is there any possible way to reset a record in a table, without truncating it? Here is my table: So, i want to reset the stack_number back to A-1 without deleting the previous record
Henry Wilson
1

votes
2

answer
492

views

How can I pass the Id from Login method in Account Controller in ASP.Net MVC Entity Framework?

I've been working on an ASP.Net MVC application based within a .NET Entity Framework. Within it I set the authentication to individual User Accounts to allow a Login/Register process to occur on the application. As you know when a user registers on the application they are added into the ASPNetUsers...
Henry Green
1

votes
0

answer
83

views

SonarQube Out of Memory Exception during importing of results C# scan

SonarQube issue I'm trying to analyze a fairly large project (1.5m LOC) and getting Out Of Memory exceptions during the importing results from proto files stage (Visible in attached screenshot). I am following these steps for scanning C# code: https://docs.sonarqube.org/display/SCAN/Analyzing+with+...
Henry Harrison
1

votes
1

answer
181

views

How can I fix a Core Image's CILanczosScaleTransform filter border artifact?

I want to implement an image downscaling algorithm for iOS. After reading that Core Images's CILanczosScaleTransform was a great fit for it, I implemented it the following way: public func resizeImage(_ image: UIImage, targetWidth: CGFloat) -> UIImage? { assert(targetWidth > 0.0) let scale = Double(...
Dirty Henry
1

votes
1

answer
36

views

Django Encrypted Fields Keys and Gitignore

I'm working on a Django project where one of my models has a field that needs to be encrypted. I'm using django-encrypted-fields for the EncryptedCharField for my model. As part of the setup, I have to create some keys for encryption. Since I'm working on my local machine, but will be deploying on A...
Henry Woody
1

votes
0

answer
208

views

The tempLocation of Google Cloud Storage in self-executing DataFlow jar

I exported DataFlow application to Runnable JAR file from Eclipse. I get below exception when I run the command Desktop$java -jar mariadevconn.jar Why is the current working directory of command line added to the Google Storage path? Thank you for your help. org.apache.beam.runners.dataflow.options...
Henry Chen
1

votes
0

answer
149

views

Android: Remove white startup screen

I have tried implementing a splash screen in order to remove that white startup screen however, I still find its there. How can I go about changing that white start up screen with a different colour or have my splash screen to go over that white start up screen? AndroidManifest.xml Values/styles.xml...
Chris Henry
1

votes
0

answer
47

views

Sorting groups in solr by top result in each group

Is there a way to sort groups in solr based on just the top result in the group and not all the members? For example, I'm grouping product variants by model, and sorting each group by the number of resellers. This gives me the product variant with the most resellers at the top of each group. Next I'...
Alexander Henry
1

votes
1

answer
77

views

how to put string as input and run on ml engine

I want to build a Chinese sentiment analytics on Google ML Engine. my input is string as sentence and I also need do some string process such as replace newline, split string to chars and pad char sequence to fixed length. this is my sample code, I want to try my idea: import tensorflow as tf input_...
Henry Chen
1

votes
0

answer
43

views

C# All value of before elements be assign by last element in my class array even though I not access that before elements twice

This is my class I created: public class FD { private char[] L; private char[] R; public char[] myL { get { return L; } set { L = value; } } public char[] myR { get { return R; } set { R = value; } } } and my function: public FD[] DetachedRight(FD element) { int count = element.myR.Length; FD[] FDte...
Mr. Henry
1

votes
1

answer
101

views

CALayer's property isGeometryFlipped does't work on macOS

I want to change the NSView's geometry to the top-left corner. But the result isn't correct.( PS: the result is correct on the iOS platform.) my code like this & the effect is as follows: import Cocoa class ViewController: NSViewController { override func viewDidLoad() { super.viewDidLoad() self.vie...
Henry
1

votes
0

answer
68

views

Counting exceptions via PerformanceCounter

I'm trying to count the total amount of Exceptions thrown within a Program. My setup with the PerformanceCounter looks right, however the output it gives doesn't make any sense. Here's what I've written: PerformanceCounter pc = new PerformanceCounter(); pc.CategoryName = '.NET CLR Exceptions'; pc.Co...
henry.dv
1

votes
2

answer
164

views

How to add node to Cassandra cluster which was previously removed?

We've been having troubles adding nodes to a Cassandra cluster, and my team is wondering if anyone can spot anything we may be doing wrong, or share their best practices. These nodes were previously members of the cluster, but were removed, and now we are trying to add them back again. The nodes s...
Henry DeAngelis
1

votes
2

answer
49

views

python open mail vs read mail

I try to open mails on gmail. I have the following code but it actually reads the mail on the console. I would like gmail detects the mail has been opened, because when I run the script on the console, the mail is not really opened. It is still in bold in my gmail. import imaplib, email user = '[email protected]
henry dupuis
1

votes
1

answer
23

views

Get request with supertest parsing issue

I am using supertest to test get requests to mLab app. If I do a regular GET request with postman I receive this: {'_id':'5b169a9951573c50d9682d52','text':'First test note','title':'Test1'} But the response received in the test adds slashes before each quote: {\\'_id\\':\\'5b169a9951573c50d9682d52\...
Henry Golden
1

votes
2

answer
95

views

mahalanobis distance for pair of columns in data frame in R

I have a dataframe table and I would like to calculate the mahalanobis for each possible pair of column of my dataframe. A1 A2 A3 121.4984 219.5448 250.7575 121.5195 219.5451 250.7500 121.5089 219.4667 250.5645 121.5510 219.6235 250.5645 121.8034 219.4235 250.0005...
Henry dubois
1

votes
1

answer
173

views

using BCP to fill a column of a table with a single value

Let's say I have a table with 5 columns, some data with 4 columns, and a format file that specifies where bcp should write that 4-column data (obviously one column will be unused). Is there any way to use bcp to supply a single value for that 5th column at the time bcp is executed? That is, when I...
King Henry V
1

votes
0

answer
56

views

Execution Timeout on dropping a constraint

I'm using powershell and bcp to load thousands of files into a table. For each data file, I use create a default value for a column I want filled. I then remove that default value, and add a new one for the next file, and so on for all of them. The code is here: $query = 'alter table $tableName add...
King Henry V
1

votes
0

answer
166

views

Uncaught ReferenceError: Imported Class is not defined

While extending from a parent class I get: Uncaught ReferenceError: Plottable is not defined Place.js: import {Plottable} from '../Plottable.js'; console.log(Plottable.word); export class Place extends Plottable {} Plottable.js: import {Place} from './Place/Place.js'; export class Plottable extends...
Henry Zhang
1

votes
1

answer
95

views

How to change a notary config?

There are any example about starting the distributed notary based on node.conf or in deployNodes? It may be seen that? node { name 'O=Notary Pool,L=Sao Paolo,C=BR' notary = [validating : false, raft:[nodeAddress:'localhost:10020', clusterAddresses:['localhost:10023','localhost:10026','localhost:1002...
Henry
1

votes
0

answer
25

views

How the node in Corda restore data in Enterprise Corda Version

I set up a network with 2 normal Node (NodeA and NodeB) and 1 Notary. If NodeA has shut down and lose apart of its database (about current states), how can We ensure that the network may run as well. And how does NodeA restore this data that loss? (Can Enterprise Corda Version help me in this case?)
Henry
1

votes
0

answer
28

views

Scanning serial numbers into Excel's find and replace

We use handheld scanners to scan serial numbers of desktops/monitors for work. Part of the job requires us to scan serials into Excel's find and replace and look at certain information for a specific serial. Generally I would Ctrl+F, scan the serial, look at the line item and then have to manually d...
Jeremy Henry
1

votes
1

answer
23

views

How do I determine which levels are available for a given dependency?

I'm relatively new to Android Studio and find myself very confused about the levels for dependencies in Gradle. Let me explain why, then I'll ask a general question that will hopefully help me with my specific issue and the broader issue of choosing dependency levels. Before I forget, I should menti...
Henry
1

votes
1

answer
265

views

DynamoDB and Boto3 error on BatchGetItem operation: “The provided key element does not match the schema”

I am having difficulty with the Boto3/DynamoDB BatchGetItem operation. I would greatly appreciate any help or guidance! I'm pretty new to python/aws so sorry in advanced if this is a novice question. When I perform the operation, I get this error: botocore.exceptions.ClientError: An error occurred...
1

votes
0

answer
45

views

How to carry out anything other than clients.openWindow upon onnotificationclick?

I have successfully used onnotificationclick to handle actions and so far the only thing I can do is clients.openWindow(). I tried using importScripts() to include firestore JS SDK and write something to firestore, doesn't work. I tried tried using importScripts() to include functions JS SDK and inv...
Henry

View additional