instruction
stringlengths
0
30k
You can use a CTE to get all the values of `column1` you're looking for, then filter the table: **Schema (PostgreSQL v15)** CREATE TABLE t ( column1 INTEGER, column2 INTEGER ); INSERT INTO t (column1, column2) VALUES (1, 1), (1, 2), (2, 1), ...
Since the `options.GroupNameFormat` is set to `"VVV"` (major, optional minor version, and status), your version "1.0" is formatted as `"1"`. As you mentioned in your comment, you can change the `V1_0` string to `"1"` to make the Swagger data display, or you can change the [version format](https://github.com/dotnet/aspn...
|google-apps-script|
{"Voters":[{"Id":286934,"DisplayName":"Progman"},{"Id":1402846,"DisplayName":"Pang"},{"Id":2756409,"DisplayName":"TylerH"}]}
when i call a get request on redux my call inside of createAsyncThunk stucks i dont get any error or return undefined and my state stays in pending. Also in this code "run1" logs into console but "run2" does not reducer ``` import { createAsyncThunk, createSlice } from "@reduxjs/toolkit"; import axios from "axios...
my response stucks i dont get error or undefined
|javascript|reactjs|api|redux|
I have 2 flutter web apps, one is working perfectly fine when i request the url and the other works only when i do include the port xxxxx:4000/nexus-vote but when removing the port the status code 200 comes and i can see that the index.html is coming in the payload(checked with postman) but not really showing anythin...
Once I set my variable URL for beautifulsoup to scrape, can I update that variable URL in a loop so it can run without me manually inputting the new URL in beautifulsoup package in python? I tried making a loop so it would pull the new URL out of the original URL and my update original URL with the new URL that i pu...
I have a project in ASP.NET Core with a database, I published it through GitHub Actions and created a Web Service App. I configured my environment variable with the Environment.GetEnvironmentVariable method. I created my environment variable on my machine and added it to Azure under "Environment variables". When I run ...
My environment variables are not recognized in Azure - ASPNET MVC
|asp.net-mvc|azure|deployment|environment-variables|azure-web-app-service|
null
Python : Dropdown menu does not stay selected as intended
|python|
{"Voters":[{"Id":1116230,"DisplayName":"Nico Haase"},{"Id":10952503,"DisplayName":"Elikill58"},{"Id":1974224,"DisplayName":"Cristik"}]}
[enter image description here](https://i.stack.imgur.com/zkHra.png) I'm encountering a stack overflow error in my code related to compression. I'm using \[insert compression library/module\] to compress data, but I'm receiving the following error message: >"Error: Bad compressed size: 0 != 350". Any insights...
I made this layout but I don't know how to make responsive views for all device. I Put my both output Images as below. back logout arrow(RightTop) and Image(Middle). I give fix margin to the logout arrow. and adjust view for Image in Center alignment. This is Vertical [![enter image description here...
I tried deploying a Flask application with Flask-SocketIO without any issues > from flask_socketio import SocketIO, emit > 2024-03-26T19:36:49.794996719Z: [ERROR] ModuleNotFoundError: No > module named 'flask_socketio To avoid the above error make sure to install flask_socketio. You can install it by using...
|python|python-imaging-library|png|tkinter-canvas|
It's typical problem for floating numbers. Because there could be some diffrence, you need setup some treshold and make condition with this threshold. There is pseudocode threshold = 0.0000001 abs(a-b) <= threshold You just need check if the diffrence between two values is smaller than treshold. You say ...
`Collections.singletonList` returns an immutable list like `Arrays.asList`. If you are using singletonList, this may also be the cause of the `UnsupportedOperationException`.
The error occurs because you don't stub static `DriverManager.getConnection` in your test code. Preferable way is to replace `DriverManager` with `DataSource` See [DriverManager javadoc](https://docs.oracle.com/en/java/javase/21/docs/api/java.sql/java/sql/DriverManager.html) > The DataSource interface, provide...
I develop for an embedded device and I would like to emulate this device in a docker container with the purpose to automate upgrade testing. The device contains the bootloader (u-boot), two root partitions and a data partition. During the upgrade process any partition may be touched. I have old SD card images we use in...
How do I make a docker from an SD card image?
|docker|yocto|
null
can you please help me solve this error that i am getting on my x code 15 and how to get rid of it and it is happening in my swift code this is the error: Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ed17ff0) thank you for your help i tried to clean the error but did not work this is my code import Swift...
I have multiple scenes in my project which ill call A/B/C. A is the main scene where i have multiple UI functionalities some of which is point/click, others are a scrollview with a viewport all of which work as expected. In scene B i have large sets of scenery as well as unitys third person movement controller to mo...
Unity - scrollview/dragging breaks after specific scene inactivity
|c#|visual-studio|unity-game-engine|
You can use the following Sub. It checks if a sheet name has already been used in the given workbook by calling the below function. If the name is already in use, it appends " (2)" to the end of the name. If you try to add the same name again, it will append " (3)" and so on. ``` Sub copy_ActiveSheet_and_rename(name ...
|python|pandas|dataframe|group-by|shuffle|
The constructor is not where you register your custom element: you register it "immediately" after declaring the class, and then if you want your code to start running only after the browser has finished loading that in, wait for it: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language:...
So here is the situation in my android app, I have ORIGIN and DESTINATION LATLNG and ArrayList of LATLNG which fall on a particular route, now I want filter all those BUS STOPS which fall between ORIGIN & DESTINATION LATLNG. I have used Google Map & Directions api to find route also tried various methods POLYUTIL ...
How to Filter bus stops between Start and Stop BUS STOP?
|android|kotlin|google-maps|google-maps-api-3|google-directions-api|
null
I am trying to deploy ECS task. I have managed to do it once, however after deleting cluster and trying to create cluster with all valid names and parameters, i can't manage to do it. Problem is that my CloudFormation stack is stuck in `ECSService CREATE_IN_PROGRESS` Googling, I found out I can track exact what i...
{"Voters":[{"Id":3474,"DisplayName":"erickson"},{"Id":466862,"DisplayName":"Mark Rotteveel"},{"Id":2756409,"DisplayName":"TylerH"}]}
Say I have the input: ```typescript type UnionType = 'cat' | 'dog' | 'bird'; type MappedType = { [Cat in UnionType]: Cat; }; ``` But this only gives: ``` type MappedType = { 'cat': 'cat'; 'dog': 'dog'; 'bird': 'bird'; } ``` What I want to achieve is: ```typescript type MappedType = { ...
How do I transform an union type of string literal types into a inlined version in mapped types?
|typescript|
{"Voters":[{"Id":23528,"DisplayName":"Daniel A. White"},{"Id":4342498,"DisplayName":"NathanOliver"},{"Id":2756409,"DisplayName":"TylerH"}]}
I've found this useful help to Merge All Windows in Visual Studio Code: [https://stackoverflow.com/questions/45916181/vs-code-how-to-keep-two-projects-open-in-tabs-instead-of-two-windows](https://stackoverflow.com/questions/45916181/vs-code-how-to-keep-two-projects-open-in-tabs-instead-of-two-windows) Now I'd ne...
|visual-studio-code|
The stockstats.StockDataFrame is a subclass of pd.DataFrame. This implies there is no need to do a merge in the end. After making sure the "datetime" column in the original df contains no duplicates, you could define the `st` dataframe as ``` st = stockstats.wrap(df, index_column="datetime") ``` So, passing...
Once I set my variable URL for beautifulsoup to scrape, can I update that variable URL in a loop so it can run without me manually inputting the new URL in beautifulsoup package in python? I tried making a loop so it would pull the new URL out of the original URL and my update original URL with the new URL that i pu...
This is an old post, but I came across it when I got a similar assignment for my class. The answer in this post used too many operators for the requirement (max 16 operators). However, was still helpful conceptually. Here is the solution I ended up finding: a ? b : c x = a >> 31; //this gets 00...00 if posit...
|python|type-hinting|python-typing|
I have a python exe on windows 10 which has been created by pyinstaller. How can i debug this python exe ? i am not finding any help to debug python executable created by pyinstaller. I know how to debug python code using source code. I am looking for help either in terms of any link which i can go through to...
How can i debug a python exe which is created by using pyinstaller?
|python|windows|debugging|pyinstaller|executable|
null
I've been experiencing issues with the `wxMediaCtrl` control causing an "Access Read Violation" and some other exceptions when calling `wxMediaCtrl->Load();` I'm fairly new to wxWidgets having only built one project before this one. This is what I am attempting: ``` Main::Main() : wxFrame(nullptr, wxID_ANY, "MainFra...
I have a very simple input-file: <?xml version="1.0" encoding="UTF-8"?> <STEP-ProductInformation> <Products> <Product> <Values> <ValueGroup AttributeID="tec_att_ignore_basic_data_text"> <Value ID="Y" QualifierID="en-US">Yes</Value> ...
Chaining templates in XSLT 2.0
|xml|xslt|
In standard C (and you don't specify an embedded dialect), reading an "enqueue index" or any other shared variable does not force thread scheduling. Hence, thread T1 probably continues to run. It reads the *last* value written by T2. If there is *no* value written yet, that's the regular C reading of uninitialized memo...
When using the line charts from Apache ECharts I have connected 3 charts of data in a connection group that I need to line up properly based on their X axis, however the Echarts is increasing the scaling on one of the charts and as such the data is misaligned [despite the pointer being at 20.6 on all graphs they do not...
AWS Cloudformatino stuck at CreateTags
|amazon-web-services|amazon-ecs|
I am trying to add a column to an existing table with a max() funtion to populate the column in postgresql. EX: Alter table stable Add column max_veggie INTEGER; --populate the column max_veggie--- Insert into stable (max_veggie) Values(Max(veggie_id)); FROM stable; --the code for the table would ...
Is there a way to add a function (references another column for calculation)to a column in postgresql?
|postgresql|
null
try adding this to this functions.php of your child theme <?php function add_custom_js() { ?> <script> // JavaScript code here var canvas = document.getElementById('canvas'); canvas.addEventListener = override; functi...
Be careful A- we have two domains: `"SQL" (as column of a table) and "PL/SQL"` In Oracle 10g, the size of VARCHAR2 datatype IN SQL is 4000 byte and the size of VARCHAR2 data type in PL/SQL in 32767 byte and you cannot change the sizes. In higher versions there is some little different stories. B- If you w...
If the common parent element is always a `label`, you can use `label:has(input[name="condition"]) select` as a selector: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-css --> label:has(input[name="condition"]) select { background-color: red; } <!-- l...
┌──(em㉿em)-[~] └─$ sudo create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase Config dir: /tmp/create_ap.wlan0.conf.Jr1F43yn PID: 120173 cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead cp: warning: behavior of -n is non-portable and may change in future; use --update=none...
sudo create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase
|kali-linux|
null
{"Voters":[{"Id":2422778,"DisplayName":"Mike Szyndel"},{"Id":4541695,"DisplayName":"DVT"},{"Id":2756409,"DisplayName":"TylerH"}],"SiteSpecificCloseReasonIds":[16]}
|tcpdump|service-discovery|
Since you didn't share any input/mode I am assuming the following to help you achieve what you want : 1.Customers with at least 1 Order : ``` Customers with at least 1 Order = COUNTROWS( FILTER( DISTINCT(OrdersTable[E-Mail]), CALCULATE(MAX(OrdersTable[Number of Orders]), ALLEXCEPT(Order...
`I have used the same hook sendTransction in both nextjs for web and expo for mobile app from wagmi, when i send transaction from web it perfectly opens up my metamask and approval popup appears but when i use send the same transaction from expo mobile app it opens up metamask but approval popup doesnt't come up w...
Alignment of line charts in a connection group when using Apache ECharts
|javascript|visualization|echarts|
null
Recently I started to have an unexpected OS shutdown (Kernel Power Error 41) so I started to diagnose the cause. I noticed I also have Error Code 33 Shown By the Motherboard LED. In the motherboard manual, 32~36 is specified as CPU PEI initialization. This is my system information: ``` Operating System: Windows 10...
Unexpected OS Shutdown
As the list of names and list of indexes are the same lengths, these can be evenly iterated over using `mapply` and each sub-list can then be iterated over with `lapply` mapply(function(indexes,names) { lapply(indexes,function(indexes,names) { names[indexes] },names=names) },indexes=ListOfIndices,L...
Issue with wagmi sendTransaction hook in react native expo
|react-native|next.js13|metamask|decentralized-applications|wagmi|
null
{"Voters":[{"Id":328193,"DisplayName":"David"},{"Id":3001761,"DisplayName":"jonrsharpe"},{"Id":2756409,"DisplayName":"TylerH"}],"SiteSpecificCloseReasonIds":[18]}
I'm using jupyter hub inside kubernetes, my hub nd workspace are separate docker images. Currently when I launch the workspace from the hub page, it receives the ping activity from the workspace pod, but it never finds the pod. This is the only thing I can find in the logs: timestamp="2024-03-28T16:00:50,184-0700...
If I have understood the problem, you can just set `c=E` in your call to `scatter` and Matplotlib will automatically normalise it to fit the colour scale. `scatter` returns a `PathCollection` which is a type of mappable so can be passed to `colorbar`. ``` import numpy as np import matplotlib.pyplot as plt from m...
{"Voters":[{"Id":1902010,"DisplayName":"ceejayoz"},{"Id":159145,"DisplayName":"Dai"},{"Id":2756409,"DisplayName":"TylerH"}]}
add this to the head part of your html <meta name="viewport" content="width=device-width, initial-scale=1" />
After investigation, we confirmed that it was caused by [RTNL](https://lists.kernelnewbies.org/pipermail/kernelnewbies/2011-November/003979.html) lock contention and `NetworkInterface.getNetworkInterfaces()` was affected by `ethtool -S eth0`. Reference: * [linux/net/socket.c at v4.18 · torvalds/linux](https://githu...
I see what the problem is... there are a TON of nested shadow-roots on the page. If you are familiar with IFRAMEs, they behave similarly. Basically you need to switch Selenium's context into the IFRAME/shadow-root for Selenium to be able to see the DOM inside and proceed. You will have to switch into each shadow-root, ...
In `peaks` `V1` gives the height and `V2` the row number index. So you could `left_join` those to `test` and plot the `geom_vline` (and/or hline and points). ``` r library(tidyverse) library(pracma) test <- as.data.frame(cbind(x, y)) peaks <- as.data.frame(findpeaks(y, npeaks = 3)) test_with_peaks <- test...
{"Voters":[{"Id":328193,"DisplayName":"David"},{"Id":1599751,"DisplayName":"PeterJ"},{"Id":839601,"DisplayName":"gnat"}]}
I made this layout but I don't know how to make responsive views for all device. I Put my both output Images as below. back logout arrow(RightTop) and Image(Middle). I give fix margin to the logout arrow. and adjust view for Image in Center alignment. This is Vertical [![enter image description here...
wxMediaCtrl causes access read violation when loading
|c++|visual-c++|wxwidgets|
Parent-Child vs `Range.IndentLevel` - [![enter image description here][1]][1] **The Calling Procedure (Example)** <!-- language: lang-vb --> Sub RunParentChild() Dim ws As Worksheet: Set ws = ThisWorkbook.Sheets("Target") Dim rg As Range: Set rg = ws.Range("A1", ws.Cell...
In Python, `is` operator is called the identity operator. Python interpreter assigns each object in the computer's memory a unique identification number (`id`). The identity operator returns true if the `id()` of two objects is the same else false. So, `is` operator tests if two variables point to the same object and n...