All Questions
24,196,039
questions
0
votes
0
answers
4
views
How to use downloaded tokenizers in Snowflake UDF
How would you create a snowflake UDF using autotokenizer for example:
I downloaded a tokenizer as follows and then uploaded to Snowflake stage:
from transformers import AutoTokenizer
tokenizer = ...
-1
votes
0
answers
9
views
El8 Packages on Centos7 Server [closed]
I have a CentOS7 server which has some el8 packages installed on it.
When I tried to remove the el8 packages it's also removing 300+ dependency packages.
I am also trying to migrate this server to ...
-1
votes
0
answers
14
views
Why got Blade::rendor error with Illuminate\Support\Facades\Blade class?
On laravel / livewire site I try to implement an example from
https://www.youtube.com/watch?v=lDUrOaJe6ok
making in resource on select component :
->schema([
Select::make('country')->label('...
0
votes
0
answers
6
views
How is offset able to go to prior year data without using having to explicitly to remove the filters from Date table?
DEFINE
MEASURE DimProduct[CurrentYearSales] = SUM(FactInternetSales[SalesAmount])
MEASURE DimProduct[PreviousYearSales] = CALCULATE(SUM(FactInternetSales[SalesAmount]), OFFSET(-1, , ORDERBY(DimDate[...
0
votes
1
answer
15
views
how to make the side bar close after clicking
so I am not sure exactly how this works but here goes .so I would like to have the menu side bar close once the user clicks on a menu link item or anywhere on the body, then reopen again when the menu ...
-1
votes
1
answer
23
views
Visual Studio Code is down [closed]
My operating system is macOS Big Sur Version 11.7.10
I don't know what happened but since 3-4 days ago "Visual Studio Code" stopped working on my system!
This is so weird, I haven't ...
0
votes
0
answers
10
views
How can I change camera view of MuJoCo simulation?
I am working on a robot simulation using a MuJoCo (ver.3.1.1) with C++ language.
And I am trying to change the default camera view of simulation, but I have a trouble in this work.
My project composed ...
0
votes
0
answers
4
views
Error: contract runner does not support calling (operation="call", code=UNSUPPORTED_OPERATION, version=6.13.1)
I am trying to interact with an ERC20 standard token contract which is implemented with Openzeppelin smart contract.
Now I am trying to call allowance method with 0x address in the deployed contract ...
0
votes
0
answers
4
views
Nuxt3 calling external api got cors error
hi i am using axios to call external api and i keep getting cors error right now
my nuxt.config.ts
export default defineNuxtConfig({
ssr: true,
srcDir: 'frontend/',
buildDir: 'frontend/.nuxt',
...
-2
votes
0
answers
8
views
How to connect my VPS by SSH after install TOR [closed]
I install TOR in my Debian 11 VPS and after restart I cannot connect.
I try with putty and MobaXterm clients setup a TOR tunneling but the issue persist.
Is necessary that I setup somenthig after ...
0
votes
0
answers
7
views
Are PDDL and classical planners (e.g. FF) used in industry or consumer products?
I am learning classical planning techniques, and I know many examples of robots are in books.
However, I am more curious about the real-world usage of these techniques.
Are PDDL and classical planners ...
0
votes
0
answers
6
views
mockito test data from val to literals springboot
i made a unit test, it works fine. Now i got a task to change the data from variables in the test body to literals, to make it more readable. So i did and got problem:
this test passes successfully:
...
0
votes
0
answers
5
views
How to transpose an excel file using Power Automate?
So, this is the format my file is in right now -
And this is how I want this to be -
I am using the website version and am new to Power Automate. I tried to make a flow but I don't know how to ...
-2
votes
0
answers
11
views
i want add authentication layer to react native application with identity server ( KeyCloak ) [closed]
I want to create local server listen to specific port in react native app and open url in a default browser and local server serve the request with html file get it by path
0
votes
1
answer
26
views
How can I use transition in CSS handling state with React?
<div className={`my-cart ${myCartVisible ? 'cart-active' : ''}`} id='my-cart'> </div>
I have a div of this style, that when x button is pressed, myCartVisible is set to true and it ...
0
votes
0
answers
9
views
how to send request from integration flow to an external rest api application and get response
The incoming triggered message is a list of object.
@Bean
public IntegrationFlow requestReplyFlow() {
return IntegrationFlow
.from(requestChannel())
.handle(Http
...
0
votes
0
answers
7
views
Salesforce API - Query of Change Data Capture's Selected Entities jsforce
Issue
I am trying to make a query to the Salesforce API to retrieve the "Selected Entities" that are listed under "Change Data Capture" using jsforce v1.11.1. The goal would be to ...
0
votes
0
answers
6
views
Anyway to migrate down in Drizzle
After generate and pushing migrations I see we have the option to drop migrations in the documentation. However this does nothing to the underlying db state. Running drizzle generate again also does ...
0
votes
0
answers
20
views
When im typing '' on keyboard the vs code editor is giving me ""cursor"
So when even I'm typing " on keyboard the editor should give me something like "cursor " but instead I'm getting ""cursor" it is happening with ' and ` too. I think the ...
-1
votes
0
answers
18
views
White Square Forming After PyOpenGL Texture Conversion from Pygame Surface - Problems with Vertices? [duplicate]
Image of White Square
Specifically, I was attempting to utilize the glDrawArrays(GL_TRIANGLE_FAN, 0, 4) to form the screen surface after converting it from a pygame surface to a pyopengl texture. But ...
0
votes
0
answers
14
views
Extract Main Domain from URLs in PostgreSQL Without Subdomains, Ports, or Query Parameters
I’m working with a PostgreSQL query where I need to extract the main domain (including the second-level domain and top-level domain) from URLs. However, the current approach using REGEXP_MATCH or ...
0
votes
0
answers
17
views
Setup subdirs project with app and lib subprojects for qmake in QtCreator
I'm setting up a sample subdirs projectmain with two subprojects: projectgui (app template) and and projectsub1 (lib template). I'm using QtCreator 13.0.2 with Desktop Qt 6.7.2 MSVC201964bit kit on ...
0
votes
0
answers
8
views
Djoser permissions
How can I configure Djoser so that it does not attempt to provide profile data for anonymous users?
My settings:
DJOSER = {
"LOGIN_FIELD": "email",
"HIDE_USERS": ...
1
vote
1
answer
19
views
Vue 3, dynamic component with binding event and function
I have an array of form field like below and I wanna render dynamic form with event and function
[...{
label: "Logo",
field: "image",
component: ...
-1
votes
0
answers
8
views
can osgi code chnaged for use in plain java way
we have some osgi code like :
bc = FrameworkUtil.getBundle(IdentityAssertionLoginModule.class).getBundleContext(); return (JAASService)bc.getService(bc.getServiceReference(JAASService.class));
...
0
votes
0
answers
26
views
error: no match for 'operator!=' (operand types are 'QVector<Object>' {aka 'QList<Object>'} and 'QList<Object>')
I have Qt code that looks like following:
class test_gadget {
Q_GADGET
Q_PROPERTY(QString test MEMBER test)
public:
QString test;
};
class test_gadget2 {
Q_GADGET
Q_PROPERTY(...
0
votes
0
answers
9
views
Is DAX EARLIER equivalent to using variable to hold the outer context value?
EARLIER(<column>, <number>)
Is EARLIER technically equivalent to using a variable to hold the value?
For example: if I have a table called Products, then using EARLIER returns the value ...
0
votes
0
answers
18
views
Fetching Data on Nextjs showing Object Object after first render
I am fetching data through rtk query in Next js . In network tab it showing actual data .
But when i log the data in first render it shows actual data but in second render it shows object object in ...
0
votes
0
answers
10
views
tried to set transparent app icon in android studio
i want to set transparent background in app icon.
i tried to set transparent background image as a app icon but it's not working. By default system set a back background color. i also tried to set ...
0
votes
0
answers
7
views
How do I create a complicated aggregated measure in Power Bi for use on a dashboard?
I have a table that is Imported from MS SQL. The table data gets refreshed when the PBIX file is opened. The minimalist data looks like this:
For context, the data represents quality assurance tests ...
0
votes
0
answers
14
views
undefined reference to `WinMain@16' : Mingw error while compiling
This is the problem code. Please help!!
#include<stdio.h>
int mainn()
{
printf("Hello World");
return 0;
}
Tried fixing from yt videos but they suggest to save the file ...
0
votes
0
answers
8
views
Report Viewer Task not giving option to choose Reports in Visual basic 2022 VB.NET
Error While installing newer version of Reporting Service Winform(https://i.sstatic.net/FyJwP7KV.png)
warn : NU1701: Package 'Microsoft.ReportingServices.ReportViewerControl.Winforms 150.1652.0' was ...
0
votes
0
answers
22
views
Unable to open video with OpenCV python
I am unable to open a .avi video file with OpenCV python. In my head it is a very simple task, but for some reason, I am unable to open the file.
When I run os.path.exists(<video_file_path>), it ...
0
votes
0
answers
13
views
How to create a page aligned variable in a kernel module?
So I want to have a buffer in my kernel module that I created like that:
static char buf[BUF_LEN];
My problem is that the start address of this buffer is not necessarily page aligned. To give a bit ...
2
votes
1
answer
27
views
How to forward constructor parameters to a contained tuple when one of the tuple elements has a default constructor and another one doesn't [duplicate]
I am trying to write a class that uses a std::tuple to store a bunch of objects with potentially different types. If the elements all have ctors that take some parameter, I can initialize the tuple ...
0
votes
0
answers
15
views
How to Accelerate PyTorch Code Using Triton/CUDA?
I've been working on optimizing the following PyTorch functions by rewriting them in Triton to speed up execution:
PyTorch Code
def split_sys_img_que(x):
return (
x[..., :num_sys, :],
...
0
votes
0
answers
8
views
Different outputs of marginaleffects::avg_prediction and ggeffects::ggeffect in R
I am running multinomial regression using nnet::multinom for a dataset where response and predictors are all factors. A sample of my data:
df2 = structure(list(SOURC = c("dsint", "dsint&...
0
votes
1
answer
15
views
npx tsc --init is compulsory in typescript
I'm a newbie about typescript. I prefer installing Typescript locally in a project folder by running:
npm i typescript --save-dev
After installing Typescript compiler, my tutorial told me run npx tsc -...
0
votes
2
answers
32
views
Exclude rows where column matches another column without subquery
I have a result set of parent categories and subcategories. I want to exclude all parent categories if a subcategory exists in the results.
What I would do is using a NOT IN in the query, but that ...
0
votes
0
answers
13
views
Use SMD or raw difference in proportions when comparing balance of binary covariates used in propensity matching?
I am a junior in the medical field, and have been tasked with performing a propensity matched analysis of some data, using R.
I am looking at comparing the balance of my covariates (both before and ...
0
votes
1
answer
19
views
how to use an android studio module inside another module
I am really new into this topic, I have a simple project that is an android studio template with some modifications, the project is a simple application with sidebar menu, the android studio uses ...
0
votes
0
answers
19
views
How to use cudaMalloc and cudaMemcpy to allocate dynamic memory in a struct?
I try to use cudaMalloc and cudaMemcpy to allocate dynamic memory but meets Segmentation Fault error during running. I think I never allocate memory for double *data for device, but I don't know how ...
0
votes
0
answers
34
views
Why do flushing using std::endl when the buffer is not full [duplicate]
In C++, a newline could be printed using std::endl or adding a "\n" to the end of the printed text. Though in the latter case, the output buffer is not flushed until it is full, but this ...
0
votes
0
answers
9
views
Triggering action upon entering conversdation state with Telegram Python Bot Library
I want my bot to send out a message when entering a new state in the conversation handler.
enter stage 1 -> "You entered Stage 1" enter stage 2 -> "You entered Stage 2" end ...
1
vote
0
answers
23
views
How to sample a population such that the sample has a given distribution of a variable?
Dataset #1 (ds1) has a particular distribution of a variable "mass". I would like to draw a sample from dataset #2 (ds2) such that the sample has a distribution of the "mass" ...
-2
votes
0
answers
13
views
Laptop randomly latches off until power removed and battery drained [closed]
I am experiencing random laptop latch off: it occasionally completely blacks out and will not respond to any keystroke nor to long press of power button. USB ports are still charging though. To ...
0
votes
0
answers
11
views
How to get value of selected RadioButton which is inside a CollectionView data template
I have a CollectionView and RadioButton's inside the CollectionView data template. I want to get the value of checked RadioButton's value.
<CollectionView
Grid.Row="1"
...
0
votes
1
answer
23
views
How to design events and event handlers system using generic in C#?
I want to create an event system in my ASP.NET Core backend using generics for ease of creation and registration of handlers.
The main problem I encountered while trying several solutions was generic ...
0
votes
0
answers
11
views
Swift, calling AVAssetTrack's load in an actor isolated context
I am trying to create an actor to retrieve the dimension of a video which is used in a SwiftUI view. To do so it requires to load an (first) AVAssetTrack from AVURLAsset.
In the older versions of iOS ...
-6
votes
0
answers
21
views
Opearting system CPU scheduling algorithm implementation [closed]
Can anyone please help me to implement this OS algorithm?
I have done it practically but I am unable to code it so plaease help me.
Objective: Implement a ‘Priority Based’ Round Robin Scheduling ...