Latest Questions

I can't change permissions

So my "code ." command doesn't work. I get the error /usr/local/bin/code2: line 6: python: command not found /usr/local/bin/code2: line 10: ./MacOS/Electron: No

How can I write query for getting a json key and value from json api datasource in Grafana

I have a problem in my Grafana localhost that is the API's JSON value alone getting but not the key, I'm getting so is there a query to write like a key with va

Create view to save data in django m2m parent and intermediate (through) table using a form and formset

I want to replicate the admin functionality shown in the screenshot below on the client side. This is app is meant to cost a recipe based on the ingredients and

decrease number server making with express put method

I am trying to decrease the quantity, which I have to change on mongodb database, also I need to show it in body. I set a button called delivered which will de

How to use react-big-calendar only for month view

I'm trying to use react-big-calendar, only for viewing the month and allowing the user to press a certain date, which should trigger my own function. That is I'

Attach Database Backup file in E-Mail send not working

I am using following code to take backup of my mysql database. With this code, a file is created and get saved in same folder where this script is kept. It is w

Dart/Flutter remove boilerplate parameters in named constructor to reduce code size

I have a class with multiple named constructors. All of them have a set of defined parameters and for now I have to rewrite them all over again when I add a new

How to Move an HTML Element after another element with Javascript [closed]

I need to use Javascript or Jquery to move a div to a different place in the DOM tree. for example, I need to move shopByType after ShopBycolo

Force ViewController light mode but keep WKWebView mode adaptable

I'm using the newest version of Xcode for my iOS app. I'm stuck with one small task since hours: I want to force my View Controller to always stay in light mode

javascript canceled request after 50 seconds

Describing of context: java app (running under wildfly) works under high workload and heap is almost filled. Because of that full GC runs often and this leads t

Difference between JDBC Sink Connector vs Redshift Sink Connector

I'm new to Kafka and I would like to know why there are specific Database connectors like Redshift Sink Connector and why we should not go for generic JDBC sink

How to extract only domain country from URL (Data Studio / regex)

I'm struggling with extracting from URL only country for example .pl from https://www.google.pl. At this moment I'm able to extract google.pl from provided url

String_Split example not working for me, says insufficient parameters

Using SQL Server 2016 and latest SSMS, I'm trying to take a csv string and split it and then insert into table-value parameter variable and I'm getting error sq

FusionCharts/FusionTime stepline chart leaves off data points and binning aggregation distorts the data

I'm trying to reproduce a Pillow app timeline chart using FusionTime. Pillow tracks sleep quality and the different sleep stages using Apple Watch. The followin

AthenaQueryError: Athena query failed: "NOT_SUPPORTED: Unsupported Hive type

I recently ran into the following error "AthenaQueryError: Athena query failed: "NOT_SUPPORTED: Unsupported Hive type", and for this I followed this stack overf

Redux createStore() is deprecated - Cannot get state from getState() in Redux action

So, the createStore() Redux is now deprecated and configureStore() is recommended from @reduxjs/toolkit. I'm pretty sure it's related to not being able to get u

Passing in empty string breaks Input Transformer if I want to enforce double quotes on all values

This is my very simple scenario. I'm passing in a JSON to an Input Transformer within EventBridge, and I'd like for the output template to be a transformed JSO

RandomForestClassifer with large feature datatypes

Is it possible to mix small datatypes (such as bits) and long datatypes (such as 256-bit hashes) when using a machine learning model in scikit-learn such as the

How to get response in Map in httpClient?

I'm making a request to my server, but the response is given in String, and I need to get data from there, for example, the if response: {"response":{"balance":

(python plotly 5.7.0) It doesn't display graph when ther's NO INTERNET, it still required internet to show graphs

I'm using python 3.6.8 and plotly 5.7.0 [user1@testsrv1 ~]$ python3 --version Python 3.6.8 [user1@testsrv1 ~]$ pip3 freeze | grep -i plotly plotly==5.7.0 [user1

MVC Core 6 and EF 6 Database First Scaffolding

I am migrating a project from a .NET MVC5 EF6 to a MVC core 6 EF6 project. I been hunting for some guidance on how to scaffold the model from the SQlServer data

C# groupBox BackColor = transparent not working

Hey I have created a form in c#. I made some groupboxes and set their BackColor to transparent, but there is still a backcolor. Anyone here who can help me solv

Blazor Webassembly Prerendering: How to avoid HeadContent render two times

I have a Blazor WASM prerendered .NET6 application. In Index.razor on the Hosted server project, I have a component that loads css files dynamically. The probl

Set Colorbar Range in matplotlib

I have the following code: import matplotlib.pyplot as plt cdict = { 'red' : ( (0.0, 0.25, .25), (0.02, .59, .59), (1., 1., 1.)), 'green': ( (0.0, 0.0,

How to save JSON to CSV?

I am trying to use a raw data output from mixpanel API and save all events to a .csv. Mixpanel gives me the following data as <class 'str'>: {"event":"Te

How to develop salesforce chatbot with xamarin forms

I want to develop Salesforce chatbot with xamarin forms application. I am not able to find what sdk or nuget package, I should use. There is no information seem

Gradle : How to automatically install CMake

I am working on an Android native project which builds using CMake. In my build.gradle I specify : if(project.hasProperty("native")) { externalNativeBui

Django aggregation Many To Many into list of dict

It's been hours since I tried to perform this operation but I couldn't figure it out. Let's say I have a Django project with two classes like these: from django

How to cache response in iOS and show only when internet is not available?

I want to cache the response of API. When the internet is available it should fetch data from the server and should update locally cached data every time and wh

NodeJS MySQL DB connection fail

thank you in advance for the help. I am using nodejs v16.13.1 and mysql 5.7.37-cll-lve. my nodejs app is currently on my local machine and my mysql db is on a r