instruction
stringlengths
0
30k
Other way to check trigger action on Firebird RDBMS
I'm seeking a solution for the inline commented out steps... I am able to run this, enter text in console and see it append to the 0 index value but the console input is not then also following the expected for loop - all help is much appreciated! ``` using System; using System.Collections.Generic; class Progra...
I am trying to do the same prompt (query) I did on a [simple pdf][1] (legal pt-br document) using pure llama cpp python but now using llama index: from llama_cpp import Llama import os, re, sys from pypdf import PdfReader reader = PdfReader('inicial_pg10_teste.pdf') # https://files.pdfupload...
With the appropriate configuration of Microsoft cloud settings, B2B collaboration, and cross-tenant access policies, an application in the Azure Government Cloud can access resources in the public cloud using Azure Active Directory for authentication and collaboration purposes. [More Details on B2B collaboration][1]...
{"Voters":[{"Id":12738750,"DisplayName":"lorem ipsum"},{"Id":1940850,"DisplayName":"karel"},{"Id":1071630,"DisplayName":"nikoshr"}],"SiteSpecificCloseReasonIds":[13]}
|python|google-cloud-platform|google-cloud-functions|application-integration|
null
null
This answer should work with a single page push-state app, or a multi-page app, or a combination of the two. *(Corrected to fix the `History.length` bug addressed in Mesqualito’s comment.)* ### How it works ### We can easily listen for new entries to the history stack. We know that for each new entry, the [speci...
How to pass a Blazor Component Instance to other Component and render it?
|asp.net-core|blazor|components|server-side-rendering|dynamically-generated|
null
I am looking for a web analytics tool where I can see in real time the number of users as well as other metrics for my website. I am currently using GA4 but the reporting is very static for real time stats so I am looking for a tool which has more flexability and I can customise the reports and what matrics I can repor...
Can you report real-time visitors to your website using Mixpanel
|real-time|reporting|mixpanel|web-analytics|
null
I'm trying to retrieve attribute values from my xml using c# and linq. The attribute data is blank when I print it. Any help would be greatly appreciated. Other than retrieving the attribute values, it gets the rest of the xml perfectly. After I get the xml once it's fixed, I will be checking it against log values for ...
Getting attribute from xml and printing it error
|c#|xml|linq|
I did absolutely everything according to the instructions and it came out as usual, I read the documentation, this error is not specified, in the console in quotes should be the directory of the audio file, but it is empty, how do you understand it? I searched a lot on the Internet, there is nothing on this topic. Vis...
|javascript|reactjs|next.js|hydration|nextui|
I am trying to install dotnet8 on amazon linux 2023 image public.ecr.aws/amazonlinux/amazonlinux:2023. After installing, one of the command that it tries to run is 'dotnet', but it errors out saying: > /bin/sh: line 1: dotnet: command not found Below is the block of code that i am running to install dotnet: ...
|snowflake-cloud-data-platform|
Inspecting the [code][1] of `vegan::rrarefy` reveals that it is taking an independent (by row) sample from a multivariate hypergeometric distribution. The `rmvhyper` implementation from `extraDistr` is much faster (possibly multiple orders of magnitude, depending on the value of `min_sample`). Performing the samples...
|java|interface|language-design|subtyping|
{"Voters":[{"Id":6212350,"DisplayName":"TheHungryCub"}]}
I was of the thinking that once a variable is encapsulated, the values cannot be changed by a function or assignment outside its class. However, in the below code, even after putting the underscore, the value of the String 'name' in the instance 'human' of the class 'Human' can be changed by adding an underscore. ...
Trying to get the following file from GitHub and the file does not download'''!wget -P {HOME}/weights -q https://github.com/WongKinYiu/yolov9/releases/tag/v0.1.1/yolov9-c.pt''' I know they are there. '''https://github.com/WongKinYiu/yolov9/releases/tag/v0.1/yolo9-c.pt''' what am I doing wrong? Thanks! Chris...
Can't download from Github
|github|jupyter-notebook|wget|
There is an alternative way to achieve this by using lifecycle settings in the bucket configuration: [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/pZkpL.png Setting "Delete uploaded objects after" to 0 will empty the whole bucket the next day
I have layout that has button sticked to bottom of the screen. Currently it's done with flexbox (content is flex 1 and button has fixed height). The problem is with mobile browsers, I have used dvh for outer container, that way it sticks to bottom even with browser bar. On Android chrome the bar hides on scrolli...
How to animate calculated position/container height when viewport changes?
|css|animation|mobile|frontend|
{"Voters":[{"Id":446594,"DisplayName":"DarkBee"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":2324154,"DisplayName":"Dan Mullin"}]}
I am pulling indicator data from an API which gives me back data frames containing nested data frames of varying sizes to hold additional metadata. I am trying to [rectangle](https://tidyr.tidyverse.org/articles/rectangle.html) it, but without much luck. Each indicator is 'tagged' with a number of groups (up to 15, ...
You don't need the background script and messaging in this case - just use captureVisibleTab in the popup! But, assuming you want to use the background script, the problem is that you've incorrectly used Chrome's atavistic `return true` in a Firefox's async onMessage. In Firefox you **simply return the value** just ...
How can I get the same result from LlamaCPP using it in Llama-index?
|pypdf|llama-index|llama-cpp-python|mistral-7b|
When I run `yarn build`, everything completed but at the end I see the message: error: API request failed sentry reported an error: One or more projects are invalid (http status: 400) Does anyone know how to solve that error?
null
When I run `yarn build`, everything completed but at the end I see the message: >error: API request failed >sentry reported an error: One or more projects are invalid (http status: 400) Does anyone know how to solve that error?
I have this Pre-request Script: ``` pm.request.headers.remove("Authorization"); pm.request.removeHeader("Authorization"); ``` But my request still comes with an Authorization header. I'm pretty sure I'm missing something stupid here. Any ideas?
Postman HeaderList remote function not working
|postman|http-headers|postman-pre-request-script|authorization-header|
I am writing a function for sending login requests from client to server which supports different roles/permissions upon each type of user and render the corresponding html elements. ```javascript decodeToken(token) .then(({userID, userRole}) => { if(userRole == 'admin'){ console.log('a...
null
{"Voters":[{"Id":5320906,"DisplayName":"snakecharmerb"},{"Id":874188,"DisplayName":"tripleee"},{"Id":2756409,"DisplayName":"TylerH"}],"SiteSpecificCloseReasonIds":[11]}
The second image looks like it has fairly severe [jpeg artefacting][1]. This is typically evident from a significant amount of noise near high contrast edges. Photoshop likely also uses a more advanced downscaling filter, but the effect of this should only affect edges or other high frequency features, and the diffe...
I have an answer from the Haystack framework, which is: <Answer: answer='major mild ncd', score=0.09601292014122009, context='d neurocognitive disorder due hiv infection functi...'> The type of it is <class 'haystack.schema.Answer'>. How to extract the context and the score from it? I cannot access the elements as f...
Extracting from <class 'haystack.schema.Answer'>
|python|haystack|
null
{"Voters":[{"Id":2872922,"DisplayName":"Ron Rosenfeld"},{"Id":1940850,"DisplayName":"karel"},{"Id":1071630,"DisplayName":"nikoshr"}],"SiteSpecificCloseReasonIds":[13]}
I host a website via my Nas and would like to read an input field and then save it as a txt on my server after a button has been pressed. I don't have much php knowledge yet and wanted to ask if this is also possible via javascript.
How can I read an input field on my own website and store the data entered on my server in a txt document?
The accepted answer does not work, as if shows the hamburger icon also when there should be a back icon. Ronak Shetiyas answer above does work. Code adapted for AndroidX AppCompat public class NavigationPageRenderer : Xamarin.Forms.Platform.Android.AppCompat.MasterDetailPageRenderer { protected...
Good morning, I have to manage a Django project where each client has small customizations, both in terms of apps and API endpoints. I would like to avoid having to manage too many branches for each individual customer. Some potential solutions I've come up with are: **First solution** In the .env file, add a fie...
Open a file inside a network inside a script run by QProcess(Pyside6)
When the URL of the products page is /?product_cat=tricka&paged=1 the subcategories are shown. When i change the page to /?product_cat=tricka&paged=2 the subcategories disappier. I'm getting the subcategories like that: ``` <?php $subcategories = woocommerce_maybe_show_product_subcategories(); if ( $subcatego...
Woocommerce subcategories dissappear when changing page
|wordpress|woocommerce|categories|
null
Set app to require elevation in Visual Studio 2008?
I have built a chatbot with Next.js 14 App router. Whenever you run the app a chat bubble appears at the bottom right of screen; when you click on it the chatbot appears. Now I want to use this project in a script tag which users can paste into their html files and run my code. So any users who pastes this code into th...
Use Next.js project as a script tag in html file
|javascript|html|next.js|next.js13|cdn|
null
Yes it is possible but how depends on how you have your data set up. Looker studio does not work in the way you want it to, its not very good a linking tables together and is better at displaying data. You need a field in the data showing the location to place into a control to filter on, i am guessing from your qu...
{"Voters":[{"Id":1116230,"DisplayName":"Nico Haase"},{"Id":5947043,"DisplayName":"ADyson"},{"Id":11854986,"DisplayName":"Ken Lee"}],"SiteSpecificCloseReasonIds":[13]}
There is no "simple" way of doing that. There is no statement like `sort (tab) by (fields) where (cond)`. One way I can come up with is to use the sort statement to get the cust_id and prod_id in order and then manually implement a bubble sort for the rest. Here is my testdata declaration: types: begin of t_d...
The other answers have hinted at this, but I'd like to list the Pros and Cons explicitly: **Stored Procedures** PROS: 1. Each query is processed more rapidly than a straight query, because the server pre-compiles them. 2. Each query need only be written once. It can be executed as many times as needed, ev...
I created a file named `types.d.ts` in my `src` folder, which is included in the `"include"` key in `tsconfig.json`. If I create a type alias in the `types.d.ts` file as follows: type money = number; And in a `.ts` file in the project I use it as follows: let total: money = 100.00; When I hover m...
Type aliases in type definition file are "translated" into original type in vscode hints
{"Voters":[{"Id":6324775,"DisplayName":"Jonathan Stellwag"},{"Id":5089567,"DisplayName":"Konrad"},{"Id":3001761,"DisplayName":"jonrsharpe"}]}
[Dictionary comprehensions][1] may help. >>> players = ["Mark", "Jack", "John"] >>> player_dict = {k: k + " takes some action" for k in players} >>> player_dict {'John': 'John takes some action', 'Jack': 'Jack takes some action', 'Mark': 'Mark takes some action'} They take the form `{`_key_`:` ...
I am struggling with an android button to start/stop a recurrent function, but I couldn't find a suitable solution/explanation after trying to use the handler.postDelayed(), handler.removeCallbacksAndMessages() and executorService() functions. There's a "start/stop" button which should: 1. call a function that auto...
Your second CTE: ``` ,SEL_TKL as ( select S1.case_id, S1.CASE_NO_2, TKL.CASE_ID, TKL.SEQ, TKL.TKL_CD, TKL.ENTRY_DT, TKL.COMPLETION_DT, fnctklTxt500(TKL.CASE_ID, TKL.SEQ) TKL_CMNT, S1.DKT_TEXT_CMMNT from SEL_DKTS S1, TKL where S1.case_id = TKL.case_id and TKL.tkl_cd = 'CRMSEAL' ...
{"Voters":[{"Id":3074564,"DisplayName":"Mofi"},{"Id":2152082,"DisplayName":"Stephan"},{"Id":2324154,"DisplayName":"Dan Mullin"}],"SiteSpecificCloseReasonIds":[11]}
In Blender You may rig the other mesh with skeleton and animate it the same as the original. ThreeJS has an object name AnimationObjectGroup to sync every action like the example here. [https://threejs.org/examples/?q=animation#misc_animation_groups][1] const animationGroup = new THREE.AnimationObjectGroup();...
Installing dotnet8 on amazonlinux 2023 image through dockerfile
|.net|dockerfile|containers|amazon-linux-2023|
Check the condition int a=NewCmd.ExecuteNonQuery(); if(a==0) //Not updated. else //Updated. `ExecuteNonQuery()` returns an integer value.
The versioning denotes different releases or updates to the API, with newer versions often introducing improvements, bug fixes, or new features. This information is generally available in [release notes](https://cloud.google.com/speech-to-text/docs/release-notes). Streaming recognition with the 5 minute limit and tr...
I moved things around and decided to make an entire new composable for each dropdown menu I needed. I added an `if` loop to my Activity instead: ```kotlin if (options.contains(songVar)) { ExposedDropdownMenuSongs2( songVar, options = options, selectedOptions = selectedOptions, songVar2 = song...
The application uses middleware to verify user authorization. The JWT token for authorization is stored in cookies. When the application is loaded, the user's data is stored in the pinia storage, and the protected paths are displayed correctly during authorization, including after the page is reloaded. However, if the ...
The error model I created does not handle or parse the data, it constantly returns null. However, the api response comes successfully in the `response.data.description` statement. What is the solution? I reviewed the YouTube video created by Veli Bacik and when I watch it up to the current time in the link I shared,...
I have data: ``` const mockedData = [ { title: "Junior", columns: [{ title: "Column 1" }], }, { title: "Mid", columns: [{ title: "Column 1" }, { title: "Column 2" }, { title: "Column 3" }], }, { title: "Senior", columns: [{ title: "Column ...
it looks like you are not importing view from drei ; import it using this line of code import { View } from "@react-three/drei";
It works with **encapsulation: ViewEncapsulation.None** if you need to apply styles to the host component. Make sure your have these changes: Inject ViewEncapsulation.none option : @Component({ selector: 'app-selector', templateUrl: './app.component.html', encapsulation: ViewEncaps...
|servlets|jakarta-ee|
I want to use Spark DRA (Dynamic Resource Allocation) feature, so that the executors can be requested/released dynamically based on my application workload to improve resource utilization But I wonder whether I must enable the spark external shuffle service to use the DRA (that is, whether DRA depends on spark externa...
|apache-spark|spark-shuffle|
By default, Pillow will place the ***top-left*** corner of your text at the coordinates you specify with `ImageDraw.text()`. But you seem to want the text placed so that its horizontal middle and vertical middle are placed at the location you specify. So, you need to set the horizontal and vertical anchor to *"middle"*...
recently I applied the same functionality of uploading media on **`s3`** I used [base64-arraybuffer][1] for encodes and decodes base64 to and from ArrayBuffers and also using [react-native-fs][2] for filesystem access for **react-native** and also used [aws-sdk][3]. Here is the code that I used to upload media on...
''' !pip install -r requirements ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. google-colab 1.0.0 requires ipython==7.34.0, but you have ipython 8.22.2 which is incompatible. google-colab...
{"Voters":[{"Id":19639413,"DisplayName":"pmacfarlane"},{"Id":1940850,"DisplayName":"karel"},{"Id":1071630,"DisplayName":"nikoshr"}],"SiteSpecificCloseReasonIds":[16]}
Your `handleLogin` function in the login component calls the `signin` method but does not wait for the `signin` to complete before navigating. Since `signin` is an async function, you should await its completion before navigating. ```js const handleLogin = async (e) => { e.preventDefault(); // Prevent default fo...
How about $compgen -a `-a` tell the command `compgen` to list all alias or $alias
I am using google cloud tasks to sync some files from my storage. They have proven to be very unreliable they sometimes queue and don't start executing for few minutes or more. When they do they are not shown in cloud tasks console. I am using this code to queue tasks ```js const taskRequest: ICreateTaskReques...