Jack-Jack

10302 questions
1

votes
1

answer
275

views

How can I fix the following error in Xcode: Key Commands must all have a Title, Key, and Selector? [duplicate]

This question already has an answer here: Key Commands must all have a Title, Key and Selector 3 answers I have been trying to figure out why I am getting this error: Key Commands must all have a Title, Key, and Selector. Every time I open a new project, this error occurs before I change anything....
Jack Nordquist
1

votes
1

answer
32

views

Android Layouts within layouts and making a slideable/scrollable strip within my android app

Im a beginner in android development and a bit stuck, I would like to have a strip in part of my main layout which gets dinamicaly filled and where the user can scroll it sideways to get the info while staying within the main layout. Im currently using a horizontal linearLayout and adding texViews t...
Jack
1

votes
1

answer
188

views

Cannot resolve method realm.insert and realm.copyFromRealm

My goal is to display the received data from the Internet in a RecyclerAdapter. But when I tried to do this, I get an exception. I tried to make this code myService.getFromNet(name) .subscribeOn(Schedulers.io()) .map(Cook::getPizza) .flatMap(cooks -> { Realm.getDefaultInstance().executeTransaction(r...
Jack Fortok
1

votes
0

answer
259

views

About use minio in angular project

import * as Minio from 'minio'; export class MinioClient{ minioClient = new Minio.Client({ endPoint: '54.223.109.***', port: 80, secure: true, accessKey: 'KM1W4S0TGK3T43YUMW**', secretKey: 'Z/2lurXwZieIguM7MQcQCEZ8CdUBBc7V0fOkKw**' }); getListBuckets():void{ this.minioClient.listBuckets(function(err...
Jack Chen
1

votes
1

answer
146

views

Neo4j 3.3.1- Custom APOC Procedures failing

I am trying to write my own procedures in Neo4j 3.3.1 version using APOC. As an exercise I stared with returning all node id's. Since I am new to java environment facing issues to run it successfully. Below is my java code to return the node id's. package example; import java.io.File; import java.u...
Jack Daniel
1

votes
1

answer
31

views

Access caller script's __filename from within a module function

I'm using node.js. I would like to access the filename of a script from within a module function called by that script. For example, exampleModule.js: module.exports = function(){ console.log(__filename); // more code which may also use the filename }; example.js var exampleModule = require('./examp...
Jack Robinson
1

votes
0

answer
161

views

What steps are required to migrated the gocd/go-server to a new system

I'm trying to move my gocd/go-server to a more powerful box. It's currently dockerized, but in short, i use a host volume, so i just rsync'd my whole project from system A to System B. Composer Service Entry: go-server: restart: unless-stopped image: gocd/gocd-server:v17.12.0 ports: - '8153:8153' -...
Jack Murphy
1

votes
0

answer
36

views

Want to pass a filepath as a parameter to a stored procedure but is saving to the default location and naming it the first letter of the parameter

Instead of creating the backup at the specified filepath, which works when being run just as a normal query in SSMS, it creates the backup in the default location and calls the file 'N' in this case but when I have change the file path to remove the N it then calls it an apostraphe. My Stored Proced...
Jack Tyler
1

votes
0

answer
169

views

Using spreadsheets.values.update method Google API using HTTP Request

I wish to use the following API to update one cell: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update I was unable to get the API library to work with my package, so I've been using HTTP requests for other situations. Here is a similar approach for this situation:...
Jack Robson
1

votes
0

answer
191

views

continuous variable as random effect in proc mixed

I could use some help understanding the interpretation of a continuous variable random effect. I understand the interpretation of fixed effect and categorical random effect. But SAS seems to allow continuous random effect as well (code below). I understand how random effects are supposed to be categ...
jack
1

votes
1

answer
90

views

Imageview constrained to bottom of toolbar filling toolbar

Im using a constraint layout with an imageview inside it and I constain the top of the imageview to the bottom of the toolbar, I want the image to fill the rest of the screen though depending on screen size, so I set the imageviews hieght and width to math-parent and also scaleType=fitXY. The probl...
Jack
1

votes
1

answer
73

views

AppWidgetHostView touch events not working properly

As you know AppWidgetHostView doesn't handle long press well and when using registerForContextMenu(host view) it doesn't open. I created a custom host view derived from AppWidgetHostView and override touch events to show context menu. But the side effects are bad, not because my code, but because th...
Jack
1

votes
1

answer
145

views

How can I make my Single Page Application (SPA) based on React render conditionally?

I am making a personal website based on ReactJS. Since this is a Single Page Application, I want to make my website be rendered conditionally. That is the Render should render each section on my page at different time when users scroll down to view different section on my page, because I want my com...
Jack Lau
1

votes
0

answer
94

views

Custom move for VRP using Optaplanner

I've been reading some SO posts and the OptaPlanner documentation but still not sure how exactly to implement the CustomMove and CustomMoveFactory. My use case is vrp with pickup and delivery with time window. I started with the TWVRP example and made some modifications. I read the description of P...
Jack Tsai
1

votes
1

answer
52

views

redirect to login page if haven't login in a post request

app.post('/customer/goods/available/disableGoods', auth.restrict, auth.acl([__FEATUREENUM.FP_SALE_GOODS]), postDisableGoodsHandler);} exports.restrict = function (req, res, next) { logger.enter(); if (req.session.operator) { if (req.url.indexOf('customer') > -1 && req.session.operator.operatorType...
Jack.Z
1

votes
0

answer
1.2k

views

KeyboardAvoidingView not working

this.setState({ availableBalance })} ref={(input) => this._availableBalance = input} returnKeyType='next' onSubmitEditing={() => this._focusInput('_sendToAddress')} value={this.state.availableBalance}/> this.setState({ sendToAddress })} ref={(input) => this._sendToAddress = input} returnKeyType='ne...
jack
1

votes
1

answer
46

views

How to handle nested synchronous promises

Here is the example JSON: test = [ [ { 'name': 'Test1.1', 'flow': [ { 'send': 'test1.1.1', 'receive': [...] }, { 'send': 'test1.1.2', 'receive': [...] }, ] }, { 'name': 'Test1.2', 'flow': [ { 'send': 'test1.2.1', 'receive': [...] }, { 'send': 'test1.2.2', 'receive': [...] }, ] } ], [ { 'name': 'Test...
Jack
1

votes
1

answer
26

views

RegEx Query return nth match

Basically, I have a regex expression in an Access query which pulls a product code from a long string of text. There is up to 10 codes in each string and I need ten fields in my query to pull each of the ten codes. So far I can only get it to pull the first or last code by changing Global = True|Fa...
Jack Diamond
1

votes
0

answer
58

views

Swift constraint error when adding UINavigationBar

I am trying to add a custom navigation bar to my app, but whenever it loads I get the 'Unable to simultaneously satisfy constraints' error. I can't seem to programatically remove any of the constraints - and I definitely haven't added any. Console Output: '', '= UILayoutGuide:0x6000007b18e0'TitleVi...
Jack Whitaker
1

votes
1

answer
25

views

Redirect from “/foo/bar/…” to just “/…” via .htaccess file

I had all my website at example.com/foo/bar/. I now moved it to just example.com/, to improve readibility. How can I redirect via a .htaccess file all visitors that still go to example.com/foo/bar to example.com/? I need all subdirectories to be redirectd too: for example from /foo/bar/baz to /baz,...
Jack
1

votes
1

answer
213

views

How can I specify the user agent of a device in a web app utilizing WKWebView in Swift 4?

I have been trying to figure out how to specify a user agent for my web app in Swift 4 so that the website it opens is in mobile-view. It is defaulting to desktop view instead of mobile. Is there any way to fix this? I am currently learning Swift so I am not that familiar with it yet. I have attache...
Jack Nordquist
1

votes
0

answer
71

views

is there any simple way for this case in R, using sapply or another way but not using loop?

i have 3 matrix, first : > QualiVars Qlvar1 Qlvar2 1 A Q 2 B Q 3 A R 4 C Q second matrix is : > cat.centroid [[1]] Values V1 1 A 0.4164760 2 B 0.3112128 3 C 0.2723112 [[2]] Values V1 1 Q 0.7665904 2...
Jack shephard
1

votes
1

answer
31

views

mysql replace last group of digits in IP address

I would like to replace the last digits of all IP:port's with a *. For example: 192.168.1.1:2000 should become 192.168.1.*:2000
jack
1

votes
0

answer
23

views

How to find documents with recurring dates

I've been tasked with using Solr to search for appointments by date. This needs to handle appointments that have a recurring schedule (e.g., occurs every Wednesday at 9:30). The only solution I've come up with so far is to use a multi-value date (or date range) field and calculate all of the occurre...
Jack A.
1

votes
0

answer
70

views

Override pytest ids for test case name

In my conftest.py file, I have: def pytest_generate_tests(metafunc): if 'item_id' in metafunc.fixturenames: metafunc.parametrize('item_id', item_id_data, ids=item_id_data) I also have a test_item.py file, e.g.: def test_item(item_id): assert True How can I overwrite the value of 'ids' inside 'test_i...
Jack T.
0

votes
2

answer
45

views

How to parse array of multiple arrays

I am trying to change an array which contains multiple arrays into a form that I can use for an external API. Example: [ [44.5,43.2,45.1] , [42, 41.2, 48.1] ] into [ [44.5,42], [43.2,41.2] , [45.1, 48.1] ] Currently my code runs as this, but doesn't work var newArr= []; var tempArr= []; for(var key...
Jack N
1

votes
1

answer
287

views

Dump/Edit File System of Forerunner 35

I have been trying to modify/add to the internal file system or operating system of the Garmin Forerunner 35 watch. I have had no luck so far, and am stuck. So, the watch appears as a drive (E) when plugged into a pc, but when I put a software update binary into IDA, you can see a path that is not p...
Jack Sullivan
1

votes
1

answer
115

views

How do I make my own custom QNetworkReply?

I've been trying to create my own custom QNetworkReply class which return custom bytes from reply. I do return that class from my QNetworkAccessManager::createRequest() overload that I also did overload. My problem is, none of my function overloads are called and consequently the QWebView's request...
Jack
1

votes
2

answer
266

views

Unable to merge dex Error While building debug apk

while i build debug app i am getting this issue! Help Please. Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex adding 'multiD...
Jack N
1

votes
1

answer
308

views

Unity | Android - Failed to sign APK packag: Unsupported major.minor version 52.0

I am trying to build my apk in Unity (2017.3.0f3) but I get the error Unsupported major.minor version 52.0. I have read elsewhere that to fix this download Java JDK 8 and select the path. I have done this with different version of Java 8 and none of them are working. I have tried updating all my and...
Jack Foulkes
1

votes
1

answer
733

views

Setting max value in cleave

I'm using cleave.js for a date input field in my Vue.js project. The option that I passed was this: How do I set maximum value for Y ?
Jack
1

votes
1

answer
111

views

YADCF - customFunc and exFilterColumn

I'm trying to use a custom filter on one of my columns and to do the filtering programmatically. I have managed to call the custom filter but the filterVal prints as null. Code below: Calling the filter: yadcf.exFilterColumn(theTable, [[4, 'Value To Filter On']]); The filter itself - I'm just return...
Jack Boyle
1

votes
0

answer
382

views

Pip installing required packages, Tensorflow module not found

So I've spent the last few hours trying to figure out why my Jupyter program isn't finding Tensorflow. If you see the following error message: The clear indication is that, in the directory where modules are installed from the code being executed, /home/jek/.local/python2.7/site-packages, there's no...
Jack Hales
1

votes
1

answer
31

views

Re-write data into a textbox if it was deleted and nothing was written in place

I have two textboxes in which I can write numerical values which are used to get the min and max value of Y axis in a chart. For example, if I have the values set on min = 0 and max = 100, the Y-axis of the chart will be from 0 to 100. If I change max = 50, the chart is rendered for Y-axis from 0 to...
Samurai Jack
1

votes
3

answer
396

views

Close mobile menu when click outside area [duplicate]

This question already has an answer here: Mobile Menu - Click outside menu to close menu 2 answers I'm sorry if i've asked the same question, but i've tried any solution but still got nothing for me.. As like the title, i want to close mobile menu when i click at outside of the area menu. Here is m...
jack asad
1

votes
0

answer
64

views

Combine two CSS classes into one

I have this code: [class*='-something'], [class*='Others'] { //change some UI } As it can be seen, there are two conditions for whom the UI is modified. I wonder if there is a way to combine them into one. I tried this but it seems it's not the right way: [class*='-something || Others'] { //change...
Samurai Jack
1

votes
0

answer
24

views

Split n-dimension Numpy array into list of n * (n-1)-dimension arrays

I have a Numpy array of shape (x, y, z...) I want to turn this into a list of x arrays of shape (y, z...) What is the easiest or most idiomatic way to do this?
Jack Black
1

votes
1

answer
246

views

How to stratify sample a data set, conduct statistical analysis with Caret and repeat in r?

I have a data set that I would like to stratify sample, create statistical models on using the caret package and then generate predictions. The problem I am finding is that in different iterations of the stratified data set I get significantly different results (this may be in part due to the relati...
Jack Fahey-Gilmour
1

votes
0

answer
2.3k

views

Error while implementing admob

I have implemented admob in my app.when the activity loads ,logcat shows some errors which i am not able to relate to admob. LogCat: W/ResourcesManager: Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources. W/ResourcesManager: Asset path '/system...
1

votes
1

answer
133

views

Java security InvalidKeyException ODL Netconf TestTool

I have deployed the ODL Netconf TestTool (netconf-testtool-1.1.0-Boron-executable.jar) onto my Nitrogen ODL Controller so I begin Netconf Testing. When I launch the Netconf TestTool via java -Xmx1G -jar netconf-testtool-1.1.0-Boron-executable.jar I get the following output which seems correct. [email protected]
Simon Jack

View additional