instruction
stringlengths
0
30k
βŒ€
null
I am writing a request handler in a telegram bot. I am having difficulty processing the waiting for pressing the inline button, can you tell me if this can be implemented? I have a ticket monitoring start handler, get them in json, then process each ticket in the list. ``` class MonitoringStatus(StatesGroup): ...
{"Voters":[{"Id":11638718,"DisplayName":"εΊ·ζ‘“η‘‹"}],"DeleteType":1}
I have a current project of put sentences embeddings into clusters. I already have my embeddings and some clusters associated to a part of my sentences dataset. My goal is to use sentence similarity to my embeddings in order to apply a cluster to each of my sentence. I have in mind to use K nearest neighbours alg...
Project idea about clustering and sentences similarity
My application is not running on a virtual device after I press the Run button, I get the message [Execution finished](https://i.stack.imgur.com/EIdAo.jpg). The Project is correctly [building](https://i.stack.imgur.com/k9fqx.jpg) and I don't get any error message in logcat. I've deleted all the virtual devices a...
Terraform replaces `aws_api_gateway_deployment` in each deployment, despite triggers seem constant. Here, `local.rendered_openapi` is the result of `templatefile(var.template_path, local.openapi_vars)`, which is constant (`local.openapi_vars` never change). So, the issue seems to be caused by `jsonencode({ for k,...
Terraform replaces aws_api_gateway_deployment in each deployment, despite triggers seem constant?
|amazon-web-services|terraform|
I asked this question on [GitHub](https://github.com/GoogleCloudPlatform/spring-cloud-gcp/issues/2512) as well, and we figured out that to solve this you need to follow these steps: 1. Move the `spring.cloud.gcp.secretmanager.enabled: false` from your test `bootstrap.yaml` to your test `application.yaml` 1. Don't a...
null
null
When I try to install postgis33_15 on Rocky Linux 8, I end up with the following error package postgis33_15-3.3.1-1.rhel8.x86_64 from pgdg15 requires gdal35-libs >= 3.5.2, but none of the providers can be installed package postgis33_15-3.3.1-1.rhel8.x86_64 from pgdg15 requires libgdal.so.31()(64bit), but ...
installation of postgis33_15 on Rocky Linux 8 fails
|postgresql|postgis|postgis-installation|
null
null
null
null
### Preamble Reading the title of your question, I think you have to read quietly the *`address chapter*`* in `info sed`! Understanding the difference between *addressing* and *commands*! `s`, like `p` are commands! So your request is about *addressing* for *executing a command*. ### Address range and addre...
When using the `semantic-release` plugin `@semantic-release/gitlab` on protected branch (master is protected with maintainers allowed to merge and no one allowed to push and merge) I have remote: GitLab: You are not allowed to push code to protected branches on this project I also tried with allowed to fo...
@semantic-release/gitlab and protected branches
|gitlab-ci|semantic-release|
We have UI editor from which user can select any number of days.<br> If the user selects continuous days, those are represented by dashes or hyphens, but if non-continuous days are selected then those are represented by commas..<br> `eg - String - M,W,F` - Non Continuous days.<br> `eg - String - M-F` - User selected...
Find all the valid week days from a given string separated by commas and dashes
|javascript|arrays|
How to allow a single script in Laravel app, blade page when CSP (Content Security Policy) is enabled?
I need a script to copy a set of filetypes (but just the most recent (Backup) file!) from a backup structure and delete older existing files in the destination. This is what I got, but I am stuck in the last 2 commands (del and the copy command) : # Define Source $Source = "D:\Fullbackups" $Destinat...
You need to catch the click event of the generated CommandButtons. For this create a class module named `Class1` with this code, where Sheets(1) is the same sheet as in yours. ```` Public WithEvents contbutts As MSForms.CommandButton Private Sub contbutts_click() clicked_no = Mid(contbutts.Caption, 8) Sheets(1...
Save a JSON array into one text record per array element
|javascript|json|stringify|
I am trying to make some coins I spawn trough Instantiate, to float up and down. This is the code I currently have: ``` using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Coin : MonoBehaviour{ public bool isopen; [SerializeField]...
Application not running in virtual device Execution finished Android Studio
|android|
null
Actually the task is still not clear but why don't you do like that? ```dart bool _wasCallbackThatNeedToBeFiredOnceCalled = false; @override void didChangeDependencies() { if(!_wasCallbackThatNeedToBeFiredOnceCalled) { _callbackThatNeedToBeFiredOnce(); _wasCallbackThatNeedToBeFiredOnceCalled = true...
I'm trying to fetch the data and display on browser but getting an error '**notes.map is not a function**'. ``` import { useEffect, useState } from 'react'; import { Note as NoteModel } from './models/note'; import NoteComponent from './component/NoteComponent'; function App() { const [notes, setNotes] = us...
Problem in fetching data from different port in react-
|reactjs|typescript|
null
Accompanist allows to ask for one permission at once is it possible to ask for these two location permission at once? ``` <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> ``` thats my code ``` ...
How to properly ask for COARSE and FINE location permission using accompanist?
|android|kotlin|jetpack-compose-accompanist|
I'm trying to use the [NVIDIA SDK][1] to encode HDR video with H265. Windows Media Foundation doesn't (yet) support 10-bit input with H265. I can't seem to feed the colors correctly to the encoder. I'm trying to render a video which has 3 images, one green with a value of 1.0, one with value of 2.0 and one with valu...
[![enter image description here][1]][1] So i have this table shown above. K3 represents the date (manually entered) and L1 represents the lead time. **The conditions the result has to follow is shown below** 1) Days that should be included are Monday, Tuesday, Wednesday, Thursday, Saturday and Sunday. (Leaving...
WORKDAY.INTL formula not working as intended
|excel|formula|wps|
Try adding these dependencies in your pom.xml file: <!-- https://mvnrepository.com/artifact/javax.mail/javax.mail-api --> <dependency> <groupId>javax.mail</groupId> <artifactId>javax.mail-api</artifactId> <version>1.6.2</version> </dependency> <dependency> <groupId>co...
so I used gridfs to store an image on mongodb and when I want to get the images value in b64 it returns its function too. Here is how it looks: `Binary.createFromBase64(base64ValueHere)` instead of just returning the value itself. I read the docs and when I try: `myCollection.binaryObjectsFromBase64.findOne( { ...
## Authenticate is not a use-case First of all, `authenticate` is not really a use-case: - From the use-case analysis point of view, it's not a goal for the user. No user would buy a system just to authenticate. It's just a constraint necessary for certain behaviours to complete. - From the strict UML point o...
I have a class `String` and I've made a field `char* name`, default, parameterized, copy constructor, destructor and overwritten `operator =`. My question is how my default constructor should look like for a `char*`. Below is part of my code. I use `char*` because the array should be dynamic: ``` class Stri...
i want to write a code for a telegram bot, where i can connect and see a "dashboard" and "kpi" sheet on a google sheet, however i keep getting this error; ``` "PS C:\Users\ASUS> & C:/Users/ASUS/AppData/Local/Microsoft/WindowsApps/python3.12.exe c:/Users/ASUS/Downloads/philbot.py Traceback (most recent call la...
I am builing my accordion with ReactJS but cannot find a way to make it auto-collapse when another one is opened. It is working perfectly fine but I just want the item to callapse as soon as another is opened. ``` import React, {useState} from 'react' import { FaMinus, FaPlus } from "react-icons/fa6"; import '....
@gog mentioned, For the same reason you wrote show() with parentheses and not just show. Thanks @gog
You can define the path of your file manually. ```ts beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ imports: [ ConfigModule.forRoot({ envFilePath: ['.env.test'], load: [yourConfig], }), ], }).compile() ``` Whi...
I have a django project, when I create a user from empty migration files, I can logged in perfectly. But when I create a user from POST method, I can't logged in and it throwing invalid credentials. This is my user model ``` class User(AbstractUser): id = models.UUIDField(primary_key=True, default=uuid.uuid4,...
Django Auth Login
|django|django-models|django-rest-framework|django-views|backend|
null
Turns out `bpy.ops.import_scene.obj` was removed at `bpy==4` which is the latest blender-api for python, hence the error. In `bpy>4` you have to use `bpy.ops.wm.obj_import(filepath='')` I just downgraded to `bpy==3.60` to import object directly in the current scene. ``` pip install bpy=3.6.0 ``` I also modifie...
How can I make my accordion auto-collapsible
|reactjs|accordion|react-native-collapsible|
null
It's necessary that when searching, complete matches of words/phrases are found and replaced with new ones: - If the value is blank, then delete. - If the value is not blank, then replace it with a word/phrase while maintaining the separator. Original Text: ---- 1: Coconut 2: Coconut,Ora...
Regular expression to find and replace full matches (consecutive repeats, preserve delimiter)
|regex|
You could create a listener and initialize that in the CardsPage class. ``` # ui_theme.py class ThemeVariantListener: def __init__(self): self.on_change_variant_callback = None def set_variant_change_callback(self, callback): self.on_change_variant_callback = callback def on_ch...
Is there a way to execute command from array with "for do"?
|arrays|for-loop|lua|
null
$foo = new Foo(); $bar = new Bar(); $array_diff = array_keys( array_diff_key( get_object_vars($foo), get_object_vars($bar) )); `$array_diff` will be an array containing every property of `$foo` that is not found in `$bar`. I'm from my smartphone so I...
Can someone assist how to solve this issue (if possible to be solved)? I am using **DevTools** for getting necessary token (in all automation tests). Tests are written in **Java (Selenium 4.16.1)** In order to have them run on pipeline, must be in headless mode and in incognito mode, too. But throws error: **jav...
|php|symfony|object|entity|difference|
null
With command: npx amplify generate config --app-id <id> --branch <branch> --format json --out-dir config It correctly generate amplifyconfiguration.json file in config folders with correct IDs in it that correspond to <branch> already deployed stack. But then with command: npx amplify sandbox --config-out-d...
# Root cause You got errors during the anaconda installation because the machine does not have internet access, so, it means that you did not pack ALL the dependencies in the file. The dependencies are not limited to the packages you declared in the file environment. # Solution You need to package your proj...
For me, it works by removing these folders and restarting the simulator. Run this command on your terminal: > rm -R ~/Library/Developer/CoreSimulator/Caches > rm -R ~/Library/Developer/Xcode/iOS\ DeviceSupport/ > rm -R ~/Library/Developer/Xcode/DerivedData/
I want to tune a model using a custom class probability metric "pg", which stands for partial gini coefficient. I use it on data that exists of numerical predictors and a binary factor as class label (after preprocessing with the recipe). This is the tuning code: ``` xgb_folds <- train %>% vfold_cv(v=5) xgb_m...
[enter image description here](https://i.stack.imgur.com/s408v.png) "When I click on this item to enter the webpage, I can't execute the step into operation?" "I hope to be able to execute the step into operation in PyCharm when opening the webpage."
Breakpoint cannot be stepped into
|breakpoints|
null
Could you, please, explain me if I still need to do train_test split if I use cross validation technique? If I do, should I use cross-validation only on the train set? What is the best practice regarding cross validation and train_test_split? ```python from sklearn.linear_model import ElasticNet from sklearn.p...
Cross validation and/or train_test_split in scikit-learn?
|scikit-learn|cross-validation|evaluation|train-test-split|
null
If changing port number doesn't solve your problem, follow steps and this solves problem: (** By these steps don't need to reinstall Xampp or loss your database**) 1) Stop all Xampp services and exit application. 2) Move to c:\xampp\mysql 3) Rename data folder to data_old 4) create new data folder and copy whole c...
the problem is that you initialize the value inside the build method, which is called every time the widget is rendered, as with setState. Just change to this double currentSliderValue = 100.0; @override Widget build(BuildContext context) {
ERROR: Permission to gitTest.git denied to deploy key fatal: Could not read from remote repository
[Reference 1][1] **Problem :-** Look below. ```python application = ProtocolTypeRouter({ "websocket": URLRouter([ path("ws/notifications/", consumers.NotificationConsumer.as_asgi()), ]), }) ``` It's `notifications`. And ```javascript const ws = new WebSocket('ws://localho...
Not able to generate a user_Access_Token by using api server . Able to generate a app_token but not able to access user details with this token I need a request api to create a user_Access _Token for fb developers app. Help.....
FB Developer app , need to create a user_access_token by using server api
|javascript|node.js|nestjs|backend|react-fullstack|
null
{"Voters":[{"Id":11638718,"DisplayName":"εΊ·ζ‘“η‘‹"}]}
I am implementing application in flutter. Recently, i upgraded my flutter to 3.19.4 and i am facing lots of bug. like i am unable to open the keypad in my app. On other Android versions, it was working fine, but on Android 12, its not working. It is working only when I select the keypad icon on the bottom and change...
I have hundreds of different *.rego files, each with different rules. Every single rule needs to check for user-role and method from the input. So I decided to create a `functions.rego` with the following content package abc.functions method_and_role_valid(in, meth, role) { in.method == meth i...
Error when using a custom probability metric in tidymodels
|r|tidymodels|yardstick|
null