instruction
stringlengths
0
30k
null
there. I visited the dataset you linked, clicked clone, and I was able to clone them to my project. Here's a Loom of me doing that: https://www.loom.com/share/85d700f4bc8d42c58dbdadf5f06049e6 If you're unable to clone the images, you could also download the full dataset and then uploading it to your project. Given t...
so i have been learning html and CSS from a guy called mosh Hamedani. In his course he was building a website and in that website he is using card component to display the prices of plans. now here is the problem as you can see in the code below there is an element with plan class and i applied `max-width: 500px;` an...
I have a data frame in R. I'd like to reorder the columns based on values in the first row. All entries in the data frame contain numeric data. I thought this would be straight forward and analogous to ordering rows based on a column value. I.e., I tried `df <- df[,order(df[1,])]` However I receive an error. Error...
It seems to me that there is a misunderstanding here about when and where (in the sequence of processing steps) the formatting of values is done. From the context of the question I assume that the OP used functions like `print(df[column_name])` to inspect the format of values. In this scenario the formatting occu...
I want to run git freeswitch library in my local machine (windows 11) in visual studios 2017 or 2022. So, is that anyone know how to do. Please Help me out. I want to run git freeswitch library in my local machine (windows 11) in visual studios 2017 or 2022. So, is that anyone know how to do. Please Help me out
Freeswitch In Windows 11 with visual Code 2017 or 2022
|c++|visual-studio|freeswitch|unimrcp|
null
I have a form with text inputs, and I have created a button as well which when pressed, should post the input field data into a Django Api. But when I press the button, I get a "POST /api/ HTTP/1.1" 400 411 Error. This is sample from my code: ``` class MyForm extends StatefulWidget { @override _MyFormState...
Perl Regex for converting query strings
|regex|
[enter image description here](https://i.stack.imgur.com/4A5H6.png) I am trying to combine the "n" column to matching word (there are multiple words from a big dataset). That way the percentages reflect all of the combined "n" by circumstances of rescue, but they are subsetted by the different circumstances of rescue...
Adding up values based on similar column word
|subset|percentage|
null
For search fields you will need a different filter: def get_all_fields(model): fields = [field.name for field in model._meta.get_fields() if field.many_to_many != True and field.one_to_many != True] return fields def get_search_fields(model): fields = [field.name for field in model._met...
You need to run `npx tailwindcss init` to generate the configuration file. If the file is generated but your application, especially a React application, is unable to read the classes, you might want to follow the instructions provided here. Although they may seem a bit unusual, they work. Refer to the [Tailwind CSS do...
This would look similar to the usual design. The key is `white-space: nowrap;` for `.dataTables_paginate`. [![enter image description here][1]][1] ``` .container-fluid { padding-left: 0px !important; } .dataTables_paginate { white-space: nowrap; } .dataTables_wrapper .dataTables_paginate { float: no...
# Update My original solution had serious bugs in it. The `N` adds the next line to the pattern space without testing it first, which includes *empty* lines, and consumes the line so that the test for empty lines gets bypassed. It also *exits* if it fails to successfully read, so it only successfully printed on...
All I had to do is run `sudo ufw default allow routed`. This allowed outgoing docker connections. My `ufw` defaults now are: ``` dev@localhost ~/p/irc-bots (master)> sudo ufw status verbose | grep ^Default Default: deny (incoming), allow (outgoing), allow (routed) ```
Matching the following regular expression produces the desired result for all your examples. (Note there is no capture group.) As you have not stated requirements, however, I do not know if it is correct for other strings. (?:\\\"|[^<>\"])+(?=(?:<[^>]*>)?\"}) [Demo](https://regex101.com/r/xNq1vC/1) The ex...
Let's say a have a main thread, that has created and joined Thread 1. Thread 1 has created Thread 2. Is it possible to join Thread 2 to the main thread? I am using a default threading library and trying to avoid creating a tree of threads by joining them all to the main one.
Python - joining a thread to the main thread
|python|python-3.x|multithreading|
null
In 2024, it looks like CDP is working for Remote Drivers. My code example with the solution of how I am using it for getting a specific 3rd party API call response: ```python import json import logging import sys from selenium import webdriver from selenium.webdriver.chrome.options import Options from sel...
I have a firebase project. I am calling an external api via cloud function in the hope the api key (stored in env variable) will be less discoverable. While I have managed to get the following code working in the emulator, it doesn't work after deployment. ``` const {onRequest} = require("firebase-functio...
{"Voters":[{"Id":6530134,"DisplayName":"Timothy G."},{"Id":11810933,"DisplayName":"NotTheDr01ds"},{"Id":307138,"DisplayName":"Ocaso Protal"}]}
From a very basic dataset, I need to create this graph, but I'm struggling. Is there a simple way to achieve this in Excel or Google Sheets? Thank you. [![My Data][1]][1] [![My Graph][2]][2] [1]: https://i.stack.imgur.com/nzHAM.png [2]: https://i.stack.imgur.com/R8JX7.png
How to create a simple "four area graph" in excel or google sheets?
|excel|google-sheets|charts|
please help , i cannot access to kibana even that it is running as well as elasticsearch, i got this msg to this url : https://localhost:5601/ the message is : statusCode 401 error "Unauthorized" message "[missing authentication credentials for REST request [/.kibana_7.17.6/_search?from=0&rest_total_hits_as...
Reorder data frame columns by values in first row
|r|dataframe|sorting|
null
Creating a Universal Component in React for Next.js Compatibility
After each writing data progress in Apache IoTDB, I will delete the data of the device saved in the previous progress, and then start to insert the data of the current progress. Occasionally there will be a problem of data deleted in previous progress being restored. I checked the database operation record, and verifie...
How to prevent the previous deleted data to be restored by the database set in Apache IoTDB?
|database|apache-iotdb|iotdb|
I have below questions: When to use binary semaphore and when to use mutex? What is internal difference? Majorly in interview this question is asked.
> I can see from the documentation that this mechanism is supported 1 2, but documentation states it should only do this for variables starting with 'LIQUIBASE_'. I'm not sure why did you came to this conclusion. These two links you've mentioned are referring to two completely different things: 1) [Substituting P...
I'm encountering a challenge with implementing a text-shadow effect. I'm trying to achieve to get like below image: [![enter image description here][1]][1] Problem: - When I set the text color to white, the text-shadow effect is not visually appealing. The shadow effect doesn't stand out against the white, re...
POST /api/ HTTP/1.1 400 411 error when posting data from flutter to Django rest API
|lua|lua-patterns|
I have a requirement to open 2 oracle apex applications at the same time in the same browser. Currently if I open the 2nd application, the existing (1st) application is overriden. How can I see both the applications open at the same time, in 2 windows or tabs ? Regards, Abha
How can we open 2 oracle applications at the same time on the same browser?
|oracle-apex|
Replace `ITree.trigger` (not overloaded) with `trigger` (overloaded).
By trying and failing, I found this is how to double cast a value in JSDoc typescript (first to unknown and then to Y): ```js /** @type {Y} */ (/** @type {unknown} */ (variableOfTypeX)) ```
Using variable-mapper in my workflow, I'm trying to map secrets and host depending on a workflow input named environment. Partial yaml file is as follows : ```on: workflow_dispatch: inputs: environment: required: true default: 'test' type: choice description: W...
Github Actions/variable-mapper : Error: Unexpected token *** in JSON
|json|yaml|github-actions|
|sql|sql-server|pivot|sql-server-2008-r2|
I am using chartjs v4. I am modifying the legend text. I see code gets executed but the legend text does not change. Here is the code: var myChart = new Chart(ctx, { type: 'bar', plugins: [{ afterLayout: chart => { chart.legend.legendItems.forEach( ...
Input: ```json [ { "policy": "Name", "PAFrstNm": "John" }, { "PALastNm": "Jammy", "policy": "Name" }, { "PAMiNm": "T", "policy": "Name" }, { "policy": "Name", "PPFrstNm": "sam" }, { "policy": "Name", "PPLastNm": "jim" }, { "policy...
|json|jolt|
The entire channel element is supposed to be removed even if only one sample failed? If that's what you want, you'll find the solution below: Preparing a fake channel similar to yours: ``` Channel .of([ [id:'S1', single_end:false], [file('/home/ubuntu/S1.R1.fastq.gz'), file('/home/ubuntu/S1.R2...
Here is a recent solution of mine, I am using angular v16. ::ng-deep .mdc-notched-outline { height: 84% !important; } ::ng-deep .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label { top: 50% !important; font-size: 14px !important; ...
I create my custom search picker using the `TextFormField` widget and the `showMenu` function. This dialog will show between user typing. The problem is when this dialog is displayed, the keyboard cursor will not focus on the text field. I fix this by using the `focusNode` with the `.requestFocus()` function but this...
How do I protect the keyboard cursor that will cover the whole value in the text field after using the requestFocus()?
|flutter|
I guess you know how to clamp: clamp(n, min, max) = max(min, min(max, n)) Then to remove the end and replace it with what it should end, you need the next higher power of 10: nextPowerOf10(n) { if (n == 0) return 10 // mathematically not correct but works here x = 1 ...
This is my code: import re string = "hello\bworld" reg = r"\bhello\b" print(re.findall(reg, string)) output is: ['hello'] But this doesn't make sense to me. In the official python [documentaion][1] ***\b*** is described as the worst collision between python's and regex's escap...
Why does \b not interpreted as backslash in this regular expression
|python|regex|string|python-re|
For search fields you will need a different filter: def get_all_fields(model): fields = [field.name for field in model._meta.get_fields() if field.many_to_many != True and field.one_to_many != True] return fields def get_search_fields(model): fields = [field.name for field in model._met...
I am looking for a java server example that can be used to ingest Metrics based on OpenTelemetry OLTP (Something prometheus endpoint to receive metrics). I am trying to apply some server side transformation for collected telemetry metrics before pushing them to sink. Gone through telegraph sidecar [processor pl...
I got some issues with my solidjs (Vanilla JS) code. I try to build a small three page Website, just to print out some Information. I use vitejs, solidjs and tailwindcss. I was able to build the relevant sections, some reactivity and my desired three sites. All on its own works well. The thing I can't manage is Routin...
I'm working on migrating away from a legacy Django 1.6 application that runs on Python 2.7. I still need to be able to run this project, which runs inside a docker container. The issue I'm facing is the project's requirements.txt file will only install if I setup a virtual environment, even inside the docker contain...
Python 2.7 requirements won't install without virtualenv
|docker|python-2.7|pip|virtualenv|
To turn a pipeline into a run, the first step is to expand templates and evaluate template expressions. During that step, runtime variables don't exist. Therefore, you can't pass output variable to a template parameter. See [Process the pipeline](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/runs?vie...
We know how to make a slider of range with two pointers only by using normal HTML tag like <input type="range" id="points" name="points" min="0" max="10"> But how to make a single slider with three pointer and four values, don’t worry here you can see the solution using normal HTML, CSS, and Javascript Bef...
It seems there is a typo here. You're using NEXT_CLOUDINARY_API_KEY instead of CLOUDINARY_API_KEY, which is the variable name specified in your .env.local file. Replace NEXT_CLOUDINARY_API_KEY with CLOUDINARY_API_KEY. Authorization: `Basic ${Buffer.from(process.env.CLOUDINARY_API_KEY + ':' + process.env.CLO...
At places in my app where I call MessageBoxEx to display a question or information, only a window's border is shown and its title. No message and no buttons are visible. And the box is transparent so it shows whatever is behind it. I can hit that place in the app ten times and nine times it displays just fine but on...
Okay, if you want to do this manually. You can add the logs in the global [hooks][1] of feathers. If you will use third party service like [datadog][2] then just follow the docs on how to integrate the service in express. [1]: https://feathersjs.com/api/hooks#hooks [2]: https://docs.datadoghq.com/integrati...
Is it possible to make a reference to a html element by a string (preferably a query selector), i made a mouse tracker which should add the target element, but if you reload the page it should still be able to find the same element. i tried going with `event.composedPath()` and `event.target`, But both dont seem to w...
Select HTML element with a string
|javascript|html|json|
I use a custom protocol handler. It appears that eclipse insists on having a well-known protocol handler. I run on port 8085, so I modified server.xml to have my custom protocol handler on port 8085 and a "dummy" Http11NioProtocol handler on 8086: <Connector port="8085" protocol="com.company.product.MyProtoco...
I'm trying to use a Table-value function (TVF) to execute one of 2 queries based on the value passed in. If the value passed in is NULL, I want to return all rows. If the value is specified, I want only those rows where the parameter equals the value specified. CREATE FUNCTION [dbo].[search_test] ( ...
null
I am trying to extract params from the url and react accordingly. All the extraction works fine but after modifying my code to import my router and trying to push a route, I've run into an error I simply don't understand. ``` Uncaught TypeError: _projects_js__WEBPACK_IMPORTED_MODULE_2__.default is undefined <...
Uncaught TypeError: _projects_js__WEBPACK_IMPORTED_MODULE_2__.default is undefined
|vue.js|webpack|vue-router|
## Short Answer: You need to convert the "brightness" you menioned you have to Y. # Longer Answer The `xy` coordinates on the chromaticity diagram do not define the color, and the Y value is needed and not optional. While the 1931 chromaticity diagram may appear as if a 2D surface, it is not, and without the thi...
Have you considered assigning them to an object rather than directly to an array, and then selecting them randomly using Math.Random? let images = [ { url: "1.jpeg", position: "center" }, { url: "2.jpeg", position: "top left" }, { url: "3.jpeg", position: "bottom right" }, ]; ...
In my case I had artifact spring-cloud-starter-gateway-mvc in my pom file which was generated from start sprint io site. I changed it to spring-cloud-starter-gateway and it worked.
Response from Amazon Q: > For sending emails using the Amazon SES API, you have the choice between using the @aws-sdk/client-ses package or the @aws-sdk/client-sesv2 package. Here are some key differences: > - The @aws-sdk/client-ses package interacts with the original Amazon SES API (version 2010-12-01), while @aw...
See the following example where case B is undesirable and either we want case A or case C. I could envisage this being detected by (i) (ii) or (iii) below. (iii) is possible with rule "no-var" but I don't want to go through and change all of my code base [https://eslint.org/docs/latest/rules/no-var -- which it acknowle...
{"OriginalQuestionIds":[61176552],"Voters":[{"Id":2745495,"DisplayName":"Gino Mempin","BindingReason":{"GoldTagBadge":"python"}}]}
I believe you all are doing well! I am trying to execute a nested query in MySQL to retrieve information from two different tables and while executing this getting 1241 error which says "OPERAND SHOULD CONTAIN 1 COLUMN(S)" which I'm unable to understand and perform any correction in my code and due to that seek your...
{"Voters":[{"Id":4117728,"DisplayName":"463035818_is_not_an_ai"}],"DeleteType":1}
I'm a total beginner to webscraping using Selenium. I am trying to open a specific google profile (since all the sites would be already signed in). I'm happy that the code is able to open the specific profile window (profile being *default*). However, it fails to open the site in the window and start scraping. Here's t...
GitHub copilot is generally offering long sentences, I wish to accept word by word, for example using `ctrl + right` arrow, instead of the full suggestion. Is there a way to do this in Rstudio? Question based on these: for [VS-code](https://stackoverflow.com/q/75114315/14361772) and for [PyCharm](https://stackoverfl...
How to accept only the next word with github copilot suggestion in Rstudio?
|artificial-intelligence|rstudio|keyboard-shortcuts|github-copilot|
null
You can use [conditional compilation] for that, i.e. the [`cfg_attr`] attribute. [conditional compilation]: https://doc.rust-lang.org/reference/conditional-compilation.html [`cfg_attr`]: https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute ```rust #[cfg_attr(feature = "seriali...