Jonny

1

votes
1

answer
40

views

Starting Sub SpringBootApplication in Spring project for micro service

I'm trying to run another spring boot service from existing application, in order and use the same database layer. The two app should be deferent services with deferent ports. My project structure is this: - com.name (Project A) | - Application | - com.name.controller - com.name.controller2 (New) (P...
Jonny
1

votes
0

answer
236

views

Which Prestashop file do i modify to change the form method and form action of the search function?

I have just installed the latest version of Prestashop with the default theme named classic. I want to change the way the search function works. Eg. change it from get to post, and change the form action to a different location, change the type of button etc. I have attempted to modify the following...
jonny b
1

votes
1

answer
528

views

Spring PropertyPlaceholderConfigurer loading properties from both file and database

I'm wondering if its possible to load properties from both file and database, and use the properties in file when loading properties in database. So what I want to achieve is to save app properties in the database, and save the database info in the properties file. Below is my configuration, but it...
Jonny
1

votes
1

answer
320

views

GIT Hook - Compile SASS

At the moment, i'm using an external SASS compiler, and committing my compiled CSS. So far, no real issues.. until another developer starts work on the site. We've had numerous issues with CSS being merged incorrectly, which is just awful. I've been looking at using a git hook, to compile SASS on a...
Jonny
1

votes
1

answer
111

views

Java string replace special characters (Bulgarian, Polish, German) [duplicate]

This question already has an answer here: Remove diacritical marks (ń ǹ ň ñ ṅ ņ ṇ ṋ ṉ ̈ ɲ ƞ ᶇ ɳ ȵ) from Unicode chars 12 answers Java Regex String#replaceAll Alternative 2 answers I have a string surname. I want to replace special Bulgarian. Polish Characters with an English st...
Jonny Townsend
1

votes
3

answer
32

views

Creating branch in git in master being in a another branch

I want to do something like this. I have a branch called branchA and i want to create a new branch. This new base if the new branch should be the master. How can i do this if i am working in the branchA
Jonny
1

votes
2

answer
82

views

Arduino 'for' error

I have made a program for my Arduino which will sort an array of fifty random numbers in ascending or descending order, I think I have got it all right, but when I run it I get an error message 'expected unqualified-id before 'for' '. int array [50]; int i = 0; void setup() { Serial.begin(9600); //...
Jonny
1

votes
1

answer
195

views

woocommerce addtional information tab change Dimensions title

In product page, under additional information, I want to change the 'Dimensions' to 'Box Dimensions'. Also my measurements are in grams, but I want to display them to the end user in KG's is this possible? Thanks!
Jonny B'Good
1

votes
1

answer
530

views

best way to check is element visible protractor

Somebody knows the best way to check is element visible or no with the protractor? I do something like this: element.isPresent().then(result=>{ expect(result).toBeFalsy(); }); It works fine. But I wolud like to check is element visible. If I use: element.isDisplayed().then(result=>{ expect(result).t...
Jonny
1

votes
1

answer
28

views

Alarm app prevent Change of system time

My app works like this, the user write down a time in minutes, for example 40. Then the app will call an alarm in 40 minutes from now. It doesn't matter whether the app is active or running in background it still works. My issue is this, since I use the method System.currentTimeMillis(); then it mak...
jonny
1

votes
0

answer
119

views

Cannot set up the virtual device in android studio

I am new to android studio. And i am trying to set up a virtual device for my project. One the virtual device is created and when i run it virtual device is not displaying and it gives me following errors.How can i resolve this in order to run the virtual device. Errors as follows 10:06 AM Emulat...
Jonny
1

votes
0

answer
13

views

Custom transitions between view controllers supporting different/mismatching orientations

Specifically, I have a problem with dismissing view controller B so that view controller A is visible again. Following the steps below, the appearance of view controller A will be heavily distorted. View controller A supports all orientations but upside down. View controller B supports portrait only...
Jonny
1

votes
1

answer
493

views

Write custom strings to logs during UI testing / unit testing

Is there any way to add text to the logs of a test? Neither NSLog nor Swift.print seem to log any remaining text to any logs that I can see, when running UI and/or unit testing in Xcode 9. I am running on device. Whatever I do, I do not see any NSLog/print stuff in Report navigator, clicking on the...
Jonny
1

votes
3

answer
51

views

Setting Boolean in datasnapshot returns null after setting it to true

here is my code: public class ChatActivity extends AppCompatActivity { private String titleString, userID, uploadID, imageURL, userOnlineString; private Boolean userOnlineBoolean; private int imageRotation; private TextView titleCustomBar, lastSeenCustomBar; private ImageView imageCustomBar; private...
jonny
1

votes
1

answer
153

views

i'm trying to post to a localhost API and i get --> java.net.ConnectException: Connection timed out

I'm building an application with NativeScript, so my android phone is connected to the computer with USB cable for debugging. but when I try to post from my phone after I run the app it keeps to give me this error: System.err: java.net.ConnectException: Connection timed out I tried all and so far I...
jonny
1

votes
0

answer
187

views

SignalR: Web Socket Connection - Get disconnected intermittent

We are facing the following issue: https://github.com/aspnet/SignalR/issues/2411 We started observing the issue after upgrading SignalR from: 1.0.0-alpha2 -> 1.0.0 (Client/Server)
Jonny
1

votes
0

answer
2.4k

views

How to share a image using react native share api

I want to share a image in my app. I am currently working with the react native share api. But i can onlu share a message or url only. How can share a image using react native share api. My code _onpress = () => { Share.share({ message: 'this is a image' }).then(this.showresult()); }; insted of a...
Jonny
1

votes
1

answer
158

views

Cannot share a base 64 image through fb messenger using react-native-share

I want to share a image using react-native-share. I can share the image through every social media except Facebook messenger. Why it is not possible to share a image through messenger using react-native share.Is there a way to do this. my code as follows so far if (as === 'image') { Shares.open({ ti...
Jonny
1

votes
0

answer
32

views

Android troubles with Image compression to reduce size

I chose an image to be shown on the screen, then I can choose to upload it to firebase. However the images are 2-4mb, and I want to make them smaller without much loss in quality. Is there anyway I can achieve that?. I want to make the images into like 100kb or less before I upload them to firebase....
jonny
1

votes
1

answer
443

views

Cannot resolve symbol PlayerView

Getting error: Cannot resolve symbol PlayerView Trying to use Exoplayer2, and I'm supposed to attach it to a PlayerView. Problem is Android Studio is not able to find PlayerView anywhere. My imports in the gradle file look like this. implementation 'com.google.android.exoplayer:exoplayer-core:r2.4....
Jonny
1

votes
0

answer
27

views

How should semi middle-man situations be handled?

As background, I'm working on an incremental game and I ran into an odd predicament regarding a generally middle-man class, here is the situation. I have 3 classes: Engine, EngineList, and Resources. Engines 'produce' a certain type of resource, EngineList (obviously) holds and handles the list of d...
Jonny
1

votes
0

answer
29

views

nodemailer xoauth2 connect timed out error

I am currently trying to get nodemailer to work locally but I keep running into a connection timed out error. I have tried multiple other ways, or even trying other snippets of code but it hasn't been working for me. app.post('/contact/send', (req,res)=>{ let transporter = nodemailer.createTransport...
Jonny
1

votes
0

answer
41

views

xgb.DMatrix hangs in mclapply

I've encountered this already raised issue: https://github.com/dmlc/xgboost/issues/2094 We've moved our parallel solution to mclapply, but have had issues when running xgb.DMatrix this way. the process hangs when it hits this function, but works ok sequentially. The data sets within our loops are i...
Jonny Phelps
1

votes
1

answer
978

views

How to override the style sheet of the react-native-calendar

Anyone know how to override the style sheet of react-native-calendar and implement a red X for marked days instead of defaults red circle background https://github.com/wix/react-native-calendars i want those red color circle to be a red cross
Jonny
1

votes
1

answer
105

views

How to pass a already implemented Component inside the Copilot Step in react-native-copilot

I am trying to built a guided tour for my app using react native copilot https://github.com/okgrow/react-native-copilot and i cannot figure out how to use a already built component inside the its CopilotSteps as mentioned in the tutorial. This is the my code so far and it gives me the following err...
Jonny
1

votes
0

answer
24

views

Need something akin to DISTINCT ON (a) AND DISTINCT ON (b) where normal DISTINCT clause isn't working

Just as a preface, I've tried using SELECT DISTINCT ON(a, b) and SELECT DISTICNT ON (a) ... UNION SELECT DISTINCT ON (b) but neither worked, so I'm reaching out for a possible solution. I have two tables, player and card (a card represents something like a hitman's contract, with a reference to the...
jonny
1

votes
1

answer
37

views

Issue with adding a custom dynamic colour to WYSIWIG

I'm attempting to add a variable to a colour palette, with the code below. The top 2 colours work, but my third colour is not being added, as you can see on my code; the echo's will display the correct colour from the CMS, but the moment it gets into the function, this variable does not work. // Get...
Jonny
1

votes
0

answer
29

views

R6: add function to main class

I like the set function in R6 as it allows me to build the object more dynamically. I want to be able to start with a blank settings object in the R6Class()$private$settings, and then dynamically add to it when I have new objects and tests. set overrides the object, I would like to append it, or ad...
Jonny Phelps
1

votes
1

answer
37

views

How can I increase the recurrence of a question in a quiz?

I am developing a quiz based app on Swift and the questions repeat several times within a set time limit. If the user gets a specific question wrong I would like the app to increase the recurrence of this question. Any help would be appreciated greatly! Many thanks, Jonny
Jonny Taylor
1

votes
1

answer
37

views

Python and Beautiful soup || Regex with Varible before writting to file

I would love some assistance or help around an issue i'm currently having. I'm working on a little python scanner as a project. The libraries im current importing are: requests BeautifulSoup re tld The exact issue is regarding 'scope' of the scanner. I'd like to pass a URL to the code and have the s...
Jonny Rice
1

votes
1

answer
65

views

How to define lifetimes on a Fn trait bound returning references?

I'm trying to create a struct with a field, generic over F where F implements something like: Fn(&mut Compiler, &[Token]) -> &Token. The only issue is, I'm not sure how I define lifetimes on the Fn trait which satisfy the constraint that the returned &Token references data in the &[Token] slice supp...
jonny
1

votes
0

answer
70

views

NativeScript JobScheduler JobService.class is undefined

I have weird error while i'm trying to create component in the JobScheduler At the first line when setting a component value i get this error: ERROR TypeError: Cannot read property 'MyJobService' of undefined Both of the files are in the same folder, and its all worked yesterday. I cleaned up the pl...
jonny
1

votes
1

answer
17

views

mock store throws an error when test is running

This is the my test file import React from 'react' import { shallow } from 'enzyme' import renderer from 'react-test-renderer' import configureStore from 'redux-mock-store' import Stock from '../Stock' const initialState = {} const mockStore = configureStore() const store = mockStore(initialState) t...
Jonny
1

votes
0

answer
48

views

Cannot simulate the onclick function of the component which is styled using styled components

I have a component like bellow and i want to run a test for the onClick function of it. But the test failed as it cannot find the component and simulate the click function . What have I done wrong and how can I resolve this? component { onCancelDelete() }} > The Whole code of the ui component can be...
Jonny
1

votes
1

answer
350

views

Getting ''Invariant Violation: Native module cannot be null.'' when i run the test

I have a Login component as bellow and i am writing some test cases for the component . When I try to run the test i got the following error . Test import renderer from 'react-test-renderer' import Login from '../Login' let props, wrapper beforeEach(() => { props = { loginAttempt: jest.fn(), recover...
Jonny
1

votes
0

answer
43

views

How to display an SVG image that is sourced from an IndexedDB?

I have difficulties to display an SVG image that I've previously stored in a local IndexDB. The displayed SVG image is displayed with a question mark icon in Safari and a broken link icon in Firefox. In my HTML app the user can upload any type of media file that I store in a local index DB. Import...
Jonny
1

votes
0

answer
134

views

Specifying number of test devices when doing parallel testing using fastlane scan

I haven't been able to get more than 2 concurrent simulator test devices when testing iOS apps using 'fastlane scan'. Doing this 'manually' using only xcodebuild works, something like this. This would fire up at most 4 devices: xcodebuild -workspace myapp.xcworkspace -scheme somescheme_debug -destin...
Jonny
1

votes
0

answer
31

views

The RabbitMQ broker doesn't start

When I try to start my RabbitMQ I get this error message: rabbitmq-server.service - RabbitMQ broker Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2019-01-06 15:44:20 MSK; 10ms ago...
Jonny Shopkins
1

votes
1

answer
24

views

How can I display PHP shell_exec results into a html table?

I have a PHP shell_exec command that outputs 5 lines of data for each result, if the shell_exec has 1 result it will output 5 lines like so: john richmond 27 london dogs The command may have more then 1 result, here is an example of 3 results: john richmond 27 london dogs dave archibold 34 new york...
Jonny P
1

votes
1

answer
20

views

Updating an Array with .innerHTML, issue when removing/adding

Trying to get my array to update onto the front end dynamically, when a user either adds/removes an item. HTML/PHP for frontend below: Edit Products So far, I set my array var pills = ['test','test2']; Then setup a function which loops through this array and echos out a div, with the array item and...
Jonny

View additional