instruction stringlengths 0 30k β |
|---|
I have been using the drag lines to view the values of the plotted points in the chart. However, the does not show the value of the plotted point plotted on the right hand side of the chart. I have been trying to fix it but I can't get that last point. I want the drag line to only be able to move within the domain of t... |
Changing the domain of the drag line in swift? |
|ios|swift|swiftui|swiftcharts| |
EmpID EmpFname EmpLname Department Salary
1 Karan mehta HR 300000
2 Rohit Sharma Admin 75000
3 Ankush Rajput Account 60000
4 Priyadarshini Sharma HR 500000
5 Sanket Gupta Developer 100000
6 Shruthi Varyar Admin 80000
7 Rohit ... |
Write a query to calculate the even and odd records from a table in postgreSql how can I solve this question |
|postgresql| |
null |
Δ± want to create step by step form but Δ± cant make it Δ± have been strugling about 2 weeks. FΔ°rst of
Δ± want to creat screen like in the left.
I will bring a different form to the screen according to the option selected at first. It can also be a page with dropdownbuttons, it can also be a menu with a texteditingcontr... |
Filtering query with BEGINSWITH of Realm database in Kotlin |
|kotlin|android-jetpack-compose|realm| |
null |
As I guessed, in the TestRunner class, we give automation a thread count. When I decreased it to 1, the tests started working correctly in order. Not randomly.
It solved my problem. However, I need to learn a more educated way.
Appreciate your comments on this solution!
[![enter image description here][1]][1]
... |
- Your Phone class has no mapper.
- Your phone number field has different names between entity and dto
- You should apply the Phone mapper mechanism to your parent interface Employee
PhoneMapper.class:
@Mapper
public interface PhoneMapper {
@Mapping(target = "num", source = "number")
Phone... |
It seems straightforward, but I am not able to access the slide background.
```
from pptx import Presentation
presentation = Presentation()
slide_layout = presentation.slide_layouts[5] # 5 corresponds to a blank slide
slide = presentation.slides.add_slide(slide_layout)
print(slide) # this prints: <pptx.sl... |
Accessing slide background in python-pptx |
|python|python-pptx| |
{"OriginalQuestionIds":[28314139],"Voters":[{"Id":4108803,"DisplayName":"blackgreen"}]} |
If you're not using the [relational query builder][1] feature of drizzle, then you don't need to specify your `schema` upfront. The [getting started docs][2] don't reference `schema`. I've just removed the second argument to `drizzle` all-together and I'm still getting type-safety in my queries. See [relational query b... |
{"OriginalQuestionIds":[2983248],"Voters":[{"Id":18157,"DisplayName":"Jim Garrison"},{"Id":11002,"DisplayName":"tgdavies"},{"Id":466862,"DisplayName":"Mark Rotteveel","BindingReason":{"GoldTagBadge":"java"}}]} |
I am using Python 3.12, pip version 24.0 and setuptools version 69.2.0. The setup.py file given with the package does not work as the .egg files are deprecated. These is a discussion about this at pypa/pip#12297. I have tried not to use the setup.py and instead use "pip install" but I get this error: File "C:\Users\use... |
Package installation problems when using Python 3.12 and pip version 24.0 |
|python-3.x|pip|setuptools|failed-installation|installation-package| |
null |
In .NET core 6 API application. I would like to cancel the incoming request if it's take more than x minutes to complete the call in service layer and return with 504 status code. I am using IIS to host this API.
There is attribute called [`requestTimeout`](https://learn.microsoft.com/en-us/aspnet/core/host-and-dep... |
How to cancel incoming request in .net core 6 API? |
|.net-core|asp.net-core-webapi|asp.net-core-6.0| |
I'm working on implementing the observer pattern in Python using asyncio and async iterators. The goal is to create a βchange streamβ where tasks can add changes, and other tasks can subscribe to these changes as asynchronous iterators. I'm trying to create an interface similar to [broadcast streams][1] in Dart.
... |
How to implement the observer pattern using async iterators in Python? |
|python|asynchronous|async-await|python-asyncio| |
null |
do this whenever you don't see emission events.
```
extension Publisher {
// https://stackoverflow.com/questions/68415286/combinelatest-operator-is-not-emitting-when-inners-publishers-use-subscribeon
public func fixCombineLatestBug() -> AnyPublisher<Output, Failure> {
map({ CurrentValueSubject<Outpu... |
The translation from `'hello\bworld'` to `hellworld` isn't done by Python itself -- instead, it's done _by your terminal_. The word `hello` is printed, then the cursor moves left a space when the backspace is printed, and the `w` is printed over where the `o` used to be.
Because the actual string contains an extra c... |
Railway Community Engineer here. Have you tried using the Strapi template? I would try that, or at least deploy it and copy their pattern. But that template is everything you want:
https://railway.app/template/strapi
After you've deployed the template, follow these steps to "eject" from the new template delpoy pr... |
So I wanted the caret exactly as in OWA, so I downloaded `office365icons.woff` from
`https://owa.example.com/owa/prem/15.1.1913.10/resources/styles/fonts/office365icons.woff` (have to be logged in to do it, so did it through browser) and then, copying the boiled-down style from the website:
<!-- language: lang-css ... |
I would like to write a Insert/Update query. I need to update tblnames2 based on tblenames3 and tblnames2 itself
then insert the new rows where target name like inc table in target table field in tblnames1 based on tblnames2 by matching filename.
**tblNames1**:
|application | job_name |desc |owner|author|... |
You can use
```javascript
/^(?:[tysjod].*|(?!0+$) *\d+ *$)/i
```
See the regex demo. Replace the regular spaces with `\s` if you plan to allow any kind of whitespace in the string.
See the [regex demo][1].
*Details*:
- `^` - start of string
- `(?:[tysjod].*|(?!0+$) *\d+ *$)` - two alternatives:
- `[... |
I store data for my app as a JSON file on my server. On starting the app, the data is downloaded as expected, however, when the data on the server is updated, it doesn't update in the app. It takes probably a couple of hours before I can return to the app again, without making any changes, and this time the data will... |
null |
I store data for my app as a JSON file on my server. On starting the app, the data is downloaded as expected, however, when the data on the server is updated, it doesn't update in the app. It takes probably a couple of hours before I can return to the app again, without making any changes, and this time the data will... |
I'm currently working on an cross-platform app. I'm using Quasar & Vue and Capacitor. My app is working well on desktop and is building 'fine'. But when I want to install it in my phone (or android emulator) it says 'App Not Installed Package Appears To Be Invalid'.
Here is the build log :
```
PS C:\Users\me\... |
If you are only annoyed by the info level minimap highlight, and would tolerate othrewise manually filter out info level problems, I suggest the following and keep the wave underscore info level tips inline
```json
"workbench.colorCustomizations": {
"minimap.infoHighlight": "#00000000", // minimap hide info le... |
Python OBS-WebSocket Set Source Visibility |
|python|python-3.x|websocket|obs| |
|vb.net|ide| |
I am reading your question and your proposed strategy and I am impressed with how you're thinking about it. Your proposed solution seems solid but there are a few things you should watch out for.
This `findMany` users by a set of filters works but it'll depend on the nature of your data and the filters coming from ... |
Notice the `s` in getElement`s`ByClassName? That means it is plural and returns a collection. You would need to index your way to the button, so it would be `document.getElementsByClassName('focus-visible')[0].click()` - because you cannot use getElementsByClassName to get at a data attribute
Instead you can use
... |
I have a shell script which I want to run at login as well as logout.
It's something like this
```sh
#!/bin/bash
# Define the log file path
LOG_FILE="/Users/kamabokogonpachiro/Desktop/logfile.log"
# Function to log login
log_login() {
echo "$(date) - User $1 logged in" >> "$LOG_FILE"
}
# Function... |
Make a login/logout script in mac |
|bash|macos|shell|plist| |
I want to create multi page form in flutter |
|flutter|firebase|bloc|flutter-bloc| |
null |
Rather than generating new points and finding a closest neighbor in `df.x`, define the probability that each point should be sampled according to your target distribution. You can use `np.random.choice`. A million points are sampled from `df.x` in a second or so for a gaussian target distribution like this:
x ... |
I want to implement langchain to this call-gpt repo so that I can get a twilio phone number to answer company specific questions. How would I go about this?
https://www.twilio.com/en-us/blog/call-gpt-twilio#Configure-your-environment (tutorial used to get twilio gpt number to work)
https://github.com/kuschanton/cal... |
How to add context to chat-gpt twilio customer service bot? |
|node.js|twilio|openai-api|langchain|twilio-programmable-chat| |
null |
{"OriginalQuestionIds":[4588119],"Voters":[{"Id":616443,"DisplayName":"j08691"},{"Id":328193,"DisplayName":"David"},{"Id":740553,"DisplayName":"Mike 'Pomax' Kamermans","BindingReason":{"GoldTagBadge":"javascript"}}]} |
|winapi| |
The `+incompatible` suffix in `go.mod` is used when Go Modules is dealing with a dependency that is not a Go module, i.e. it doesn't have a `go.mod` file.
This usually occurs when you are importing a package that has not yet adopted Go Modules or is in a version that predates the adoption of Go Modules. Go Modules c... |
You need to use [Connect-PowerBIServiceAccount][1] for authentication.
$tenantId = "xxx"
$appId = "xxx"
$clientSecret = "xxx"
$securePassword = ConvertTo-SecureString $clientSecret -Force -AsPlainText
$credential = New-Object Management.Automation.PSCredential($appId, $securePassword)
Connect-PowerBIS... |
|r|correlation| |
Info: *li *is one of main menu.
While I hover over the *li*, it works but from the moment I click on it, it breaks down.
i.e that all is reversed, when I leave my cursor from *li*, the sub-menu appears, and if I hover again, it disappears.
I use React.js, Next.js and TailWind.
I specify to sub-menu can be display... |
How can events be made compatible in React to do a sub-menu? |
|reactjs|next.js|tailwind-css| |
null |
|python|python-3.x|numpy|scipy| |
I am creating a Professional README.md Generator. I would like to include a "Gmail" badge - using Shields.io - at the top of the page along with other Badges, including License, GitHub Profile, and Deployed Application URL. The goal is to make the email badge link so that a new email draft opens that is addressed to th... |
Creating a Shields.io Badge that Links to Email Address |
|node.js|github|markdown|badge|shields.io| |
null |
I would like to define dictionary as follows:
dict = {
Player: $key.Name + " takes some action"
}
Is there a syntax that would allow me to do this?
What I want to do is avoid using `Player` twice. For example, if I want to replace `Player` with `AdvancedPlayer`, I have two references to replace. |
Railway Community Engineer here. Have you tried using the Strapi template? I would try that, or at least deploy it and copy their pattern. But that template is everything you want:
https://railway.app/template/strapi
After you've deployed the template, follow these steps to "eject" from the new template deploy pr... |
I suggest you this refactoring:
1) Store all fields in a single array where each row represents a "subform"
2) The index *$i* is no more needed, we will use the array index
3) Add a row:key to each "subform", the array index is a good option since we will remove the rows using *unset()* so the indexes will not ... |
There is no upside down caret character, but you can easily rotate the caret with CSS. This is a simple solution that looks perfect. Press 'Run code snippet' to see it in action:
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-css -->
.upsidedown {
transform:rot... |
{"Voters":[{"Id":7644018,"DisplayName":"Paul T."},{"Id":6022243,"DisplayName":"Roy"},{"Id":125981,"DisplayName":"Mark Schultheiss"}]} |
in my case an example with react hooks
I have a global state which handles all the fields and I made a local state for each form section, or each form entry, so "onChange" I update the local state and onBlur I update the global state.
also there is a useEffect that onload if the global state has defult values o... |
If you are doing this by the dashboard, you have to add the Http header
Extracted from the docs.
ββ2. Connect an application
Follow these steps to connect an application through your tunnel. If you are looking to connect a network, skip to the Connect a network section.
In the Public Hostnames tab, choose a ... |
A `to` prop is typically used for linking to other documents, such as a CSS stylesheet.
Whereas the `href` prop is used to link to an external page, such as `<Link href="https://www.youtube.com"></Link>` would take the user to YouTube. |
Getting below error when i run command as :
ionic build --prod && ionic capacitor sync android && cd android && ./gradlew assembleDebug && cd ..
Error :
> Task :app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.... |
The correct timezone is `"Etc/GMT+5"`, noting the prepended `Etc/`.
```r
lubridate::with_tz(Sys.time(), tz = "GMT+5")
# Warning in with_tz.default(Sys.time(), tz = "GMT+5") :
# Unrecognized time zone 'GMT+5'
# [1] "2024-03-21 18:03:07 GMT"
lubridate::with_tz(Sys.time(), tz = "Etc/GMT+5")
# [1] "2024-03-21 ... |
null |
Plotly chart "'Figure' object is not callable error" when trying to display it on Streamlit page |
{"OriginalQuestionIds":[76916256],"Voters":[{"Id":11107541,"DisplayName":"starball","BindingReason":{"GoldTagBadge":"visual-studio-code"}}]} |
Can you try to add:
```dart
initialLocation: '/',
```
to your GoRouter and see if that helps? |
|r|timezone|lubridate|posixct| |
null |
null |
I need to make a bot that sends a message whenever a certain role just sends a message, my question is if thats even possible to do since all i've seen discord bots do is send messages once a command is triggered so im curious if that is even possible |
How do i make a discord.py bot do an action only when a certain role sends a message? |
|python|discord| |
Below is an example of pre header that gets used in emails. The code goes right after the body tag of an email (before the contents of the email).
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-html -->
<div style="display:none;font-size:1px;color:#333333;line-height:... |
This is very likely an environment PATH issue. VSC has a separate set of pseudo environment variables that track things like the path to your python executable, and it will prompt you to select it if it does not find it by itself. Check your PATH settings and see if the python path is present, if not you should add it.... |
My AWS Lambda function is executing successful until it returns the response. It is a proxy integration. The below image shows the sample response sent. It complies with the output format of proxy integration. But still it returns 502 code and Internal Server Error. In Cloudwatch logs, no error was logged for this.
... |
I have a full-stack application with a React frontend and a Node.js backend. In my application, I need to implement an email verification and notification system. Here's the workflow:
1. When a user provides their email, the application should send a secret verification link to the user's email address
2. Upon cl... |
Implementing Email Verification and Notification System in a Full-Stack Application with React Frontend and Node Backend |
|reactjs|node.js|rest|tracking| |
{"Voters":[{"Id":1264804,"DisplayName":"isherwood"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":1007220,"DisplayName":"aynber"}]} |
I was able to retry crawling on the stuck indexes by running this for every index that had a 0 for `has_crawl_completed`:
```
ALTER FULLTEXT CATALOG <catalog-name> REBUILD;
ALTER FULLTEXT INDEX ON <table-name> START FULL POPULATION;
```
and the retries completed eventually.
|
I'm currently working on an cross-platform app. I'm using Quasar & Vue and Capacitor. My app is working well on desktop and is building 'fine'. But when I want to install it in my phone (or android emulator) it says 'App Not Installed Package Appears To Be Invalid'.
Here is the build log :
```
PS C:\Users\me\... |