on-internet

How long does it usually take for Google to review an app in closed testing?

I'm fairly new to app development and I uploaded a couple of instances of an app to closed testing in Google Play Console. The first reviews from Google went quite fast and was approved, but now it is over 4 hours since I uploaded the most recent APK for closed testing and it still says that it is under review. I think I published around 5 APKs today for closed testing. I was just wondering if this is common? How long does it usually take? Does it take longer for them to review if you upload more APKs in a short amount of time? If so, is there a way to avoid this kind of behaviour? Best regard

Join the discussion →

Negatable options in perl

I have a negatable option defined as top!. When a command uses this option, say : command_name -top, prints a warning to the user Code snippet for it is as follows : if ($args{top}) { print "Warning"; } But, when a command uses a negated option, say : command_name -notop, it does not print the same warning to the user. Is there a way to get same warning for both the cases?

Join the discussion →

How to create shortcut icons for Windows, MacOS and Linux applications bundled with PyInstaller

I am building a Python application bundled with PyInstaller which is available for Windows, Linux (as AppImage) and MacOS. I need shortcut icons for those. I have a logo, but I am struggling to bring it to the right format. It seems to me that all three platforms use different icon sizes and formats. Is there any online/offline generator that allows me to create icons for all three platforms from a jpg file?

Join the discussion →

Change dash Checklist values by callback

I would like to change the selected options of an plotly dash checklist by an callback. My minimal working example is as following (Values should change by hitting the 'load' button -> at loading the page nothing ist selected, after click the button 'SF' should be selected): import dash app = dash.Dash(__name__) app.layout = html.Div([ dcc.Checklist( options=[ {'label': 'New York City', 'value': 'NYC'}, {'label': 'Montréal', 'value': 'MTL'}, {'label': 'San Francisco', 'value': 'SF'} ], labelStyle={'display': 'block'}, value=[] ), html.Button('load', id='load-button', n_clicks=0) ]) @app.callba

Join the discussion →

How much flash memory is there in the microcontroller? [closed]

I have an STM32F303CBT6 microcontroller. On the ST site, the volume of the flash memory is 128 kB. In the reference manual the flash is up to 256 kB. In this case, register "Flash memory size data register" contains the value 128 (kB). There is also 128 kB in the ST-LINK utility. But in the cleaning window, the page costs 128 pages of 2 kB. This amounts to 256 KB. I didn't get it. What is the size of the flash memory?

Join the discussion →

PHP API error: "Cannot use object of type stdClass as array" when accessing json_decode result

I am writing a PHP REST API to allow users to upload content, and I am encountering a Cannot use object of type stdClass as array error. The sign-up part of the API handles input like this without any issue: $f = file_get_contents('php://input'); $jsonobj = stripslashes($f); $obj = json_decode($jsonobj); $email = $obj[0]; $password = $obj[1]; $country = $obj[2]; $city = $obj[3]; $broad = $obj[4]; $type = $obj[5]; $name = $obj[6]; However, the following snippet throws the error: $f = file_get_contents('php://input'); $jsonobj = stripslashes($f); $obj = json_decode($jsonobj); $serviceName = $obj

Join the discussion →

why am I getting training accuracy 1.0 and test accuracy of .99 in LR model

I am doing a project on landslide classification, I have dropped null values and the unwanted columns but I am getting both training and testing accuracy of 1. df = pd.read_csv("full_dataset_v1.csv") df.head() # filter by severity. na is for non-landslide data df = df[df['severity'].isin(["medium", "small", "large", "very_large", "na"])] df = shuffle(df) df.reset_index(inplace=True, drop=True) print(len(df)) X = df.copy() df_col_length = len(df.columns) X.drop(X.columns[[0]], axis = 1, inplace = True) def generate_labels(binary = False): y = [] idx_to_severity = [ "large","medium","na", "small

Join the discussion →

What is the best way to import local modules?

"What are the PEP-compatible ways to import a local package even from a parent folder with the least preassumptions" could be the long title. I am looking for a solution to make it possible to use a local package. My requirements: it must be PEP-compatible, i.e. at least the most commonly accepted PEP must support it OS, terminal, user and environment independent, i.e. the solution must not rely on any specific circumstances Among these solutions, I am looking for the one that is the simplest to implement the scope of the modification is flexible (doesn't need to be executed every time, but is

Join the discussion →

How to get result of an Activity without waiting for ? In a event driven fashion

I have a doubt in calling activities in parallel. I know that activities can be called parallelly using the Async.function. For my use case, I wanted to call n no of activities in parallel after receiving results from all activities I wanted to go to the next state either it could another activity or a decision task. But here it gives me a Promise object which similar to Future in java. If we write promise.get() to get a result but it is blocking the thread. I need something similar to event-driven fashion without blocking the thread.

Join the discussion →

Google pay “the transaction may be risky.For your safety ,it cant be completed at this time” what i do to remove this here is code

I am showing this error on only google pay3 i am using this to get payment through google pay UPI it give error "the transaction may be risky.For your safety ,it cant be completed at this time" what i do to remove this here is code. Only google pay showing this error other UPI apps transaction is successfull.I have use google pay business UPI id. I have use this two ways but showing same error, 1) String GOOGLE_PAY_PACKAGE_NAME = "com.google.android.apps.nbu.paisa.user"; int GOOGLE_PAY_REQUEST_CODE = 123; Uri uri = new Uri.Builder() .scheme("upi") .authority("pay") .appendQueryParameter("pa",

Join the discussion →

Testing zustand state changes caused by a component in Jest

I am pretty new to using jest and Im trying to test a component that makes a state change which acts upon my global state (using Zustand). Basically im clicking a button and its adding an item to my state.traits. Here is my component code: import { Flex, useToast } from '@chakra-ui/react' import { FC } from 'react' import { useProfileStore } from 'stores/profileStore' interface DataTrait { name: string, id: string } type Props = { trait: DataTrait } export const ChipItem: FC<Props> = ({ trait }) => { const { traits, setTraits } = useProfileStore() const toast = useToast() const traitNames = tr

Join the discussion →

Select all text in TextField upon click SwiftUI

How do I select all text when clicking inside a textfield? Just like how a web browser like Chrome would when you click inside the address bar. import SwiftUI import AppKit struct ContentView: View { var body: some View { TextField("Enter a URL", text: $site) } }

Join the discussion →

SwiftUI selectable lists where selection variable is ordered

I'll keep it simple, I have a List with UUID identified items. This list is selectable, when EditMode() is entered user can tap items, and these get added to the selection variable: And the selection variable is: @State var selection = Set<UUID?>() However, the issue is that I care about the order in which the items are selected. And in the selection array, the items are not updated in a FIFO or LIFO way, they seem to be random or perhaps it depends on the value of the UUID but the point is it doesn't conserve the order in which they are added. I considered using a stack to keep track of what

Join the discussion →

MIPS and RISC-V Differences

I've been trying to learn RISC-V coming from MIPS and initially they don't look to dissimilar, especially the instruction set. Are there any significant differences between the two? Are most of the differences in the backend?

Join the discussion →

Getting 403 forbidden error in flask application

I am running a flask application in AWS fargate. In the app, I call a POST api which internally needs to call a public endpoint to collect some data using requests.get() method. @app.route("/findByPin", methods=["POST"] def find_by_pin(): pincode = request.form['pincode'] headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'} url = [SOME_URL]?pincode=pincode requests.get(url, headers=headers) The error that I am facing is that the API call to the public endpoint is returning 403 status code in respon

Join the discussion →

Docker - "no-new-privileges"

I am having a little challenge around using the --security-opt=no-new-privileges flag for Docker. I am trying to follow this guide to build a Docker home server, and I managed to do everything. But in order to get things running, I had to turn off said flag. As for where I enable it, the container does not create and the log shows "standard_init_linux.go:211: exec user process caused "operation not permitted"" error. As I am getting this when directly running a container:  fabrice@docker-01  ~  1  sudo docker run -ti --security-opt=no-new-privileges --name test fedora:25 bash standard_init

Join the discussion →

Implement a brute force algorithm to find three missing word from BIP39 seed

I lost 3 middle words of my 24 words seed phrase for a nano ledger hardware wallet. As an example (not my real seed phrase) pledge horror unfair category a.... xxxxxx a...... core abuse tenant crew captain insect angry again deposit detail similar arrest kind copy pony door brass So I know the missing words in position 5 and 7 start with a and I don't have any clue for word number 6. I know for sure an ethereum public address that I used back in 2017, but I am not sure about my BTC address. I believe that cracking the seed phrase is doable, but as I am not a programmer (I have a beginner level

Join the discussion →

Discord Bot to start Minecraft Server

How do I program a Discord bot to start a Minecraft server? The only up-to-date tutorial to program a Discord bot is for python, but it seems like you need JavaScript code to write something similar (for example this Github code - but how do i implement it in a bot? https://gist.github.com/simonmeusel/1de7166288b12c04518c59158a85f5ef). Can anyone recommend an up-to-date tutorial and tell me how to implement the code from Github so that I can start the Minecraft Server via writing a command in a Discord channel? The Minecraft server I would like to start is hosted by a third party website. I ho

Join the discussion →

How to create JWT token in Symfony5?

I'm trying to create REST API with JWT authentification in Symfony5. At first I've tried to do as written here https://h-benkachoud.medium.com/symfony-rest-api-without-fosrestbundle-using-jwt-authentication-part-2-be394d0924dd . Difficulties appeared when I've tried to make method getTokenUser: /** * @param JWTTokenManagerInterface $JWTManager * @return JsonResponse * @Route("/api/login_check", name="api_login_check", methods={"POST"}) */ public function getTokenUser(UserInterface $user,JWTTokenManagerInterface $JWTManager) { return new JsonResponse(['token' => $JWTManager->create($user)]); }

Join the discussion →

Running sail artisan migrate gives error: "The term 'sail' is not recognized"

I am new to Laravel and recently upgraded a project from Laravel 7 to Laravel 8. Whenever I try to run a migration using Sail: sail artisan migrate I get the following PowerShell error: sail : The term 'sail' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + sail artisan migrate + ~~~~ + CategoryInfo : ObjectNotFound: (sail:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException When I instead try runni

Join the discussion →

How to resolve ERROR: You're not authorized to run analysis. Please contact the project administrator in GitLab Integration

I am configuring a GitLab ci pipeline for a .NET project. I am trying to run the code analysis using the sonar cloud. When I run the analysis I’m stuck at the error saying ERROR: You’re not authorized to run analysis. Please contact the project administrator. , Seems like the analysis report is generated and when it’s trying to upload the analysis report to sonar cloud the execution is getting failed with the error. Please suggest how to overcome this error and run the analysis successfully. Commands used in the PowerShell script to run the analysis : echo "sonarqube installation" dotnet tool

Join the discussion →

TypeORM save nested objects

I'm working on a express (with TypeORM) + ReactJS app. The problem is that I have 3 entities linked by OneToMany relationship like this: customer product(linked to customer) model(linked to product) import { Product } from './product.entity' @Entity('customer') export class Customer extends BaseEntity{ @PrimaryGeneratedColumn() readonly id: number; @Column ({name: 'name'}) name : string; @Column ({name: 'test', nullable: true}) test : string; @OneToMany(() => Product, product => product.customer) // @JoinColumn({ name: 'product_id' }) products: Product[] } import {Customer} from './customer.en

Join the discussion →

search for parameters with square brackets in an access query

I try to identify in C# ,a DB Access with thousands of queries, only the queries with fictitious parameters, (eg. Select id, Nation, Name from someTable where Nation = [Give a Nation]). I tried with GetOleDbSchemaTable but with no luck. I also tried to use MSysQueries and MSysObjects from Access and then retrieve the info in C # but with no luck. How can you help me?

Join the discussion →

registerForActivityResult not working when second activity orientation changes

I am calling activity B from activity A using the ActivityResultLauncher and setting the result from activity B when the task is done. This works perfectly if orientation is not changed. The problem is when I change orientation from activity B and then setting the result, then registerForActivityResult of activity A is not called. Could someone let me know, what could be the issue? Note: I do not face this issue if I am using startActivityForResult and onActivityResult. I changed this to ActivityResultLauncher as startActivityForResult became deprecated. activity A sample code: private lateini

Join the discussion →

Could missiles replace guns at the personal level?

Could small guided missiles become a practical replacement for conventional guns at the personal level? I was thinking about the evolution of aerial warfare, and the nature of how missiles have almost entirely replaced guns for fighters. It occurred to me that the same basic concept could almost work at the personal level if the technology could be made small enough on a practical level. The traditional problem with aerial warfare was that traditional gunnery is hard and thus missiles became more effective over time to the point at which they utterly dominated as they allowed longer ranged eng

Join the discussion →

Cannot use a scalar value as an array after using pluck()

I'm trying to send an array of my Model Role to Blade like this: public function create() { $roles = Role::pluck('name','id'); return view('admin.users.create', compact(['roles'])); } And on the Blade, I added this: <div class="form-group"> {!! Form::label('roles', 'Role:') !!} {!! Form::text('roles[]', $roles, null, ['multiple' => 'multiple', 'class' => 'form-control']) !!} </div> Now I get this error: ErrorException Cannot use a scalar value as an array on create.blade.php However, when I add {{ dd($roles) }}, I get this as result: Illuminate\Support\Collection {#1155 ▼ #items: array:1 [▼ 1

Join the discussion →

How to wait in p5.js

I'm trying to create a program that does something, waits for a set amount of time does another thing, then waits again. However, what actually happens is the program waits at the beginning then does both things without any delay between them. var start, current function setup() { createCanvas(500, 550); } function draw() { background(220); print('a'); wait(500); print('b'); wait(500); } function wait(time) { start = millis() do { current = millis(); } while(current < start + time) }

Join the discussion →

Talend Open Studio - an error (sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain))

For first launch Talend Open Studio have an error java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain) at java.base/java.lang.Class.getDeclaredMethod(Class.java:2613) at org.apache.webbeans.proxy.Unsafe.lambda$unsafeDefineClass$2(Unsafe.java:163) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at org.apache.webbeans.proxy.Unsafe.unsafeDefineClass(Unsafe.java:160) at org.apache.webbeans.proxy.Unsafe.defineAndLoadClass(Unsafe.java:126) at org.apache.webbeans.proxy.Abstrac

Join the discussion →

Django Deployment - scriptProcessor could not be found in fastCGI application configuration

I am learning the process to deploy Django Project through IIS and fastCGI. However, I am facing an error <handler> scriptProcessor could not be found in <fastCGI> application configuration. After a little bit of research I've found that this error could be due to rights issue. Hence I've added permission (read, write, execute) for user DefaultAppPool in folder Python37 (contains python virtual environment) and similarly I've done this for folder wwwroot which is on C:\inetpub. Python Virtual Environment: C:\python37 Web.config file path: C:\inetpub\wwwroot\web.config Web.config <?xml version=

Join the discussion →
Older stories