All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

Is it possible have logging module fix line ends when writing to a log

I am using the logging modules to write strings to a log file. Is it possible to have all line endings converted to '\n'. My output from various places might have \r or \r\n and I want everything ...
0
votes
0answers
1 view

What is the usage of client secret in azure b2?

As the subject,What is the usage of client secret in azure b2c? The micrsosoft doc only said"If your application exchanges a code for a token, you need to create an application secret.". Does the ...
0
votes
0answers
2 views

Java not using recompiled imported package

I have a simple case and am a Java beginner. Package "b" import package "a" and works normally. If I make changes to package "a" and recompile package "a" the changes do not show when I call a's ...
0
votes
0answers
2 views

Powerpoint data extraction with Excel Macro

This past week I have been working in VBA on an excel macro that pulls specific data from several power point slides. I was able to write up a macro that was able to pull all the details in the Title ...
0
votes
0answers
2 views

Firebase auth by email link how to make this work when app is embedded?

My vuejs app is often embedded in an iframe on many different sites, which I don't control. I'm trying to use Firebase email link authentication (using firebaseui). Problem: ATM if I try to use email ...
0
votes
0answers
2 views

JSDOM : Uncaught TypeError: window.document.getElementByTagName is not a function

I am using the JSDOM library for testing my application. Below is my code which I use to test my index.html file import { expect } from 'chai'; import jsdom from 'jsdom'; import fs from 'fs'; ...
0
votes
0answers
2 views

how to link to a react HOC Component to a html Stripe script successUrl

This is a terrible hack question, think of it more as an architectural question. I have firebase auth (google sign-in), firebase hosting and stripe payments set up and working in an index html page, ...
0
votes
0answers
3 views

How to create text field in android system keyboard?

Similiar like this this function can be run on other application
0
votes
0answers
4 views

Unity C# : Trying to change 2D sprite colors with a list and nothing renders

I'm a idiot in programming and I'm trying to change the sprite color of a gameObject using a list that contain colors in Unity. When I spawn a new object each time, the inspector show a different ...
0
votes
0answers
7 views

How to add animation to HTML/CSS box, when website loads box will load with animation

I'm making a website using online Wix templates but the specific template didn't have all the things I needed so then I had to learn a little HTML/CSS. (I'm pretty new to it) I've written the code ...
0
votes
0answers
3 views

How do you reuse Flutter views created with MaterialPageRoute builder?

How do you reuse Flutter views created with MaterialPageRoute builder? Currently new views are created in the widget tree whenever Navigator.pushReplacementNamed is called. e.g. The following code ...
0
votes
1answer
4 views

Wordpress Image Upload time error : Post-processing of the image failed

Facing an error while uploading images in Wordpress 5.3 Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500 pixels and upload it again.
0
votes
0answers
3 views

What does the CMP stands for in CMake policy?

Seems like a simple question, but I failed to find what does 'C', M, and P is in CMake after many searching. For example, why not POLICY0077 instead of CMP0077.
0
votes
0answers
4 views

C# Code to guess secret word letter by letter in an array

I have to write code to guess a word letter by letter according to the following parameters: It is a 6 letter word picked from a pre defined array of 6 letter words. User has to first enter a letter. ...
0
votes
0answers
3 views

Can you help me fix my Inheritance/Driver error? It's my first time using abstract and I'm clueless

I'm really new to java and I don't know where or how on earth I messed up with this, for some reason it's not syncing correctly. Please try to explain to me where I went wrong, I suspect it might be ...
0
votes
0answers
3 views

Modified selection sort that selects the biggest number then swap to the end

I have code here. I need to select the largest value in array and swap it to the end. please help me. 1.The inner loop is to find the index of the largest item inside the unsorted region. 2.The ...
0
votes
0answers
7 views

How to achieve an absolute percentage scale in ggplot?

I am trying to plot positive and negative numbers in a stacked graph using gpplot. This is working fine based on an example I found on this page. The limits of my graph are -1 and 1, but I want the ...
0
votes
0answers
3 views

How best to re-size a ConstraintLayout by touch?

Consider a trivial ConstraintLayout with a 20% vertical GuideLine and a thick ugly vertical bar left of the invisible line (see XML). I can manipulate the percentile programmatically by using ...
0
votes
0answers
5 views

Edit User Text Post In Firebase C Script

Im trying to figure out the easiest way to allow a user to edit their post and send the changes back to firebase. Using C#
0
votes
0answers
6 views

How to alter table while adding a default value of the current date?

this is the code I've been trying to use to alter the table in mysql but It says there's a syntax error every time ALTER TABLE komplaint ADD tgl_komplaint date NOT NULL DEFAULT GETDATE(); I've tried ...
0
votes
0answers
3 views

Spark Streaming job fails with ReceiverDisconnectedException Class

I've Spark Streaming job which captures the near real time data from Azure Eventhub and runs 24/7. More interestingly, my job fails at least 2 times a day with the below error. if I google the error, ...
0
votes
0answers
6 views

echo $PATH shows path that I have not set - Mac

Hi Guys I'm not a Mac Guru but I am very clueless here. The problem is that I'm trying to get a new php installed in Mac, which I did by adding from Homebrew. But when I try to use php command in ...
0
votes
0answers
4 views

When to create local and global indexes in RANGE INTERVAL partition

We are making use of Oracle 12c RANGE INTERVAL partitioning where Oracle creates the partitions automatically based on the data. Parent tables are partitioned based on RANGE INTERVAL, child tables ...
0
votes
0answers
7 views

Form - checklist value to not transferred to PHP

I'm trying to populate the multiple selected choice from checklist into PHP. However, only the "Reading" choice is populating in the new window and not the other choices that I have selected. For ...
0
votes
0answers
6 views

PostgreSQL, optimizing a really long code with a lot of JOINS (runs on Redshift)

I need help with a really long existing PostgreSQL code that runs on Amazon Redshift. It is returning a WLM timeout therefore I need to optimize or improve it somehow so it won't get the WLM anymore. ...
-1
votes
0answers
5 views

Use python-docx to batch process many datum and generate reports. But doc file contains previous data file's analysis results

There is a for loop in my code to go through each data file, and codes to analyze the data(plotting graphs), and then add graphs to the doc file. The doc file always contains previous data's analysis ...
0
votes
0answers
6 views

Unable to show calculate Time difference between my Textview1 and Textview2?

this is the screenshot of my application the Time in whic is 00:57:18 and the timeout 14:14:21 should be automatically calculated time difference and the result will show in Total travel hours (...
0
votes
0answers
9 views

c++ caring about only 2 digit decimal w/o setprecision

int i = 2.5373737373737.... Is there anyway to get rid of decimals after 2 digits decimals so it can be 2.57? (without displaying it by using setprecision)
0
votes
0answers
6 views

Can logging module in Python log out data without the format string

When using the logging module I would sometimes like to print a simple line without the format string (Prints Date) being applied to the output. I might want to log a separator line without the time ...
0
votes
0answers
4 views

Can i view data on my Virtual machine from Azure portal?

I have a VM in Azure. Is there a way I can navigate the c: drive of the machine from within Azure portal and not rdp ? Thanks
0
votes
0answers
9 views

How to extract rows between 2 times with Pandas?

I want to make sub dataframes out of one dataframe, using its datetime index. For example, if I want to extract rows between 07:00~06:00 and make new dataframes: import pandas as pd int_rows = 24 ...
0
votes
0answers
4 views

DB2 HADR Sync mode different on primary and standby server

When using HADR do both the primary and standby need to be in same sync mode? What could be the possible outcomes if both are not same.
0
votes
0answers
3 views

Can g++ 5.4 link the library that is compiled by g++ 4.8?

I compile a c++ program by g++5.4, which links a library compiled by g++4.8. I have set -D_GLIBCXX_USE_CXX11_ABI=0 and the program compiled successfully. However i got Segmentation fault when running ...
0
votes
1answer
12 views

Left over array when trying to custom flatmap es2017 Javascript

I am getting a left over array when trying to use reduce and concat to implement a custom flatmap. I have to use use the reduce concat combo as flatmap does not work in es2017 as i am required to use ...
0
votes
0answers
4 views

kafka ssl for python and java config

I want to build ssl config for python java build jks for java bild pem for python I merge them in one shell #!/bin/bash PASSWORD="asdfasdf" KEY_PASSWORD=${PASSWORD} STORE_PASSWORD=${PASSWORD} ...
0
votes
0answers
6 views

APK crashing when downloading from playstore - debug works fine

I'm currently having a strange issue with my android project. When I debug my app or if I created a signed apk and install it on my phone, my app works fine. However after releasing it to playstore ...
0
votes
0answers
9 views

How do I roll back master to a prior commit, make a change, and then reapply everything that was rolled back?

I have a master branch and a development branch both are in sync with each other currently. I need to roll back my master branch to a prior commit (at least 30 commits back) so I can make a change ...
0
votes
0answers
5 views

How to derive the probability of being classified to class 0 and 1 when I adjust the threshold and run logit classification in python?

I'm a beginner in ML and am running a logit classification to predict whether unseen new data set is going to be classified as 0 or 1. As I search more, I found that I could also get the probability ...
0
votes
0answers
4 views

Spark - Number of buckets for a partitioned table

Given that Hive and Spark's bucketing are quite different (both use different algorithm for bucketing, the resultant files generated are different (in Hive, number of buckets = number of files but in ...
0
votes
0answers
4 views

Django Framework - Filter Null TimeDate

I'm having some difficulty filtering a list of events on the django framework. I've created an event filter and meta class following the documentation. The problem is that when I set the isnull to ...
0
votes
0answers
9 views

transfer between assembly and python

I am a beginner for assembly and I am writing a code in assembly to compare with python then see if it's same. mov eax, x ; x mov ebx, y ; y mov ecx, z ; z loop: ; ...
-2
votes
0answers
9 views

ASP.NET Visual Studio(2019)

I've being trying to connect linq with asp.net core in visual studio 2019 but for some reason it's not letting me use Linq
0
votes
0answers
6 views

Unable to update the parent list after saving user inputs on a dialog fragment

I'm building a sample application using MVVM and navigation components. Below is the navigation graph, <navigation xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://...
0
votes
1answer
16 views

list index out of range when I run my python script

IndexError: list index out of range I keep getting this error when I run my .py : Traceback (most recent call last): File "dfm.py", line 32, in <module> sort_files_in_a_folder(mypath) ...
0
votes
0answers
8 views

C++: When I change max number of elements in array, the merge sort stops working?

EDIT: It seems to only work if MAX / 4 = whole number...hmm I guess the rounding screws it up? I'm playing around with this multithreaded merge sort code, but when I change MAX (size of array) to ...
0
votes
0answers
3 views

I want to let selenium write the text and press the enter button as a open file dialog is shown

I've been using selenium with python.And I wrote below code. Firstly below code shows the website and nextly shows the open file dialog. I want to let selenium code write the text which represents ...
0
votes
0answers
4 views

AutoML NL - Training model based on ICD10-CM - Amount of text required

We are currently working on integrating ICD10-CM for our medical company, to be used for patient diagnosis. ICD10-CM is a coding system for diagnoses. I tried to import ICD10-CM data in description-...
0
votes
0answers
4 views

Transaction rollback in SSM framework problem

software version :jdk 8 spring 4.0 mybatis-3.2.7.jar mybatis-spring-1.2.2.jar ojdbc6.jar oracle 11g applicationContext.xml: <context:property-placeholder location="classpath:jdbc.properties" /> ...
0
votes
0answers
8 views

How to loop over every value in Pytorch tensor in C++?

I am trying to do something like [0 if i < 1 else 1] for PyTorch tensor in C++. I tried to use tensor.accessor(), but it seem like it require you to know the dimension beforehand. While I want to ...
0
votes
2answers
12 views

Question about C++ call virtual function implemented in base from derived class

What is wrong with the following code? struct A { virtual int hash() const = 0; virtual int hash(int x) const = 0; }; struct B : public A { int hash() const final { return 10; }; int ...

15 30 50 per page