Questions tagged [virtual]
An extensible or simulated artifact
3,140
questions
0
votes
0
answers
28
views
pulse audio duplicate audio stream to sink and headphones [closed]
I deliver training to groups online via zoom.
I currently have my source > OBS > sink > zoom.
These are the commands I am running via a shell script that work
pactl load-module module-null-...
-2
votes
0
answers
22
views
Implementing react virtuoso with react-table v8 [closed]
I'd like to ask for you all to help me build a simple implementation of react virtuoso + tanstack/react-table (v8)
based on this link
https://virtuoso.dev/react-table-integration/
this codesandbox ...
3
votes
2
answers
88
views
How does a virtual inheritance triangle work where both vertices inherit the third virtually but regularly between themselves?
I have the following code and I am a bit confused with the output:
class A{
protected:
int x;
public:
A() { x = 1; }
void print() { cout << "X: " <&...
0
votes
0
answers
61
views
How to mark a class's method as virtual from outside?
I'm trying to subclass Pango::Renderer, but only need to reimplement its draw_glyph and draw_rectangle methods, which get called by draw_layout in the base class. The problem is, that none of the ...
0
votes
0
answers
13
views
Display custom text on WooCommerce Order Received page if virtual product purchased
We have started using a third party plugin to distribute DRM protected virtual ebooks. What I cant work out is how to display a custom message on the order-received page when we sell one of these ...
0
votes
1
answer
36
views
Method overloading & Method Hiding in C++
Why does the compiler not throw error in main() for p->f4(); line.
As per my understanding class B hides f4() and should throw error
class A
{
public:
void f1(){}
virtual void ...
0
votes
0
answers
12
views
Virtual Host with Apache2 (initially, for LOCAL use only)-Mint 21.1 / Ubuntu
This is, perhaps, a classic "fools rush in where angels fear to tread" situation: I've never set up a server before, and I am still on the rather steep part of the Linux learning-curve. So, ...
0
votes
0
answers
9
views
Fatal Error Occurred Cannot create Window [Pokerstars app UTM or VirtualBuddy]
I installed the Pokerstars app on a virtual machine UTM, using macOS 13.2.1 Ventura. However, every time I start the app I get the following error: 'Fatal Error Occurred Cannot create Window'. Both ...
1
vote
1
answer
60
views
trying to understand why the following sequence of prints is possible when using virtual keyword and vtables
I was given the following code and asked what it prints:
#include <iostream>
using namespace std;
class C;
class B;
class A {
private:
B* pointerB;
C* pointerC;
public:
A(){ cout &...
0
votes
1
answer
46
views
from snowflake.snowpark import Session - ModuleNotFoundError: No module named 'snowflake' Airflow bash operator
I am executing a python script in different virtual environment, from airflow using bashoperator. This python code is running fine when executed individually in the virtual environment, but if I am ...
-2
votes
0
answers
28
views
virtual mouse using hand gestures [closed]
# Imports
import cv2
import mediapipe as mp
import pyautogui
import math
from enum import IntEnum
from ctypes import cast, POINTER
from comtypes import CLSCTX_ALL
from pycaw.pycaw import ...
0
votes
1
answer
31
views
Can the Python virtual environment built in Windows be directly copied to Ubuntu for use? [duplicate]
I have written a Python project in Windows 11 that runs in the virtual environment I built in Win, and everything is running normally in Win.
Now I have copied the entire Python project and the ...
0
votes
0
answers
22
views
+50
Example for scancode vs virtual scancode vs keycode vs virtual keycode vs virtual key
I have problems figuring out the the difference between scancode, virtual scancode, keycode, virtual keycode, virtual key:
I know that virtual Key (or virtual keycode ??) is a pressed modifier
(Ctrl, ...
5
votes
0
answers
82
views
Virtual inheritance and class function pointer size
I have the following code, I am using MSVC:
template <typename T>
void CanMock() {
class SimpleType {};
static_assert(sizeof(void(SimpleType::*)()) == sizeof(void(T::*)()),
&...
0
votes
0
answers
16
views
My winlogbeat logs only see 6kb, not sure what my settings should be?
I am trying to get my Sysmon data to winlogbeat and then to security onion.
I am having two issues.
1 – the winlogbeat logs where being fed continually, but now it is on getting the initial service ...
0
votes
0
answers
11
views
Win11 system, I encountered a problem installing jupyterlab
My system is win11, first installed miniconda3, and then through the command: conda create -n py311 python=3.11, created a new virtual environment py311, run the command conda activate py311 to ...
0
votes
0
answers
35
views
Keepalived split brain issue
I have issue with keepalived on Oracle Linux 8. The VIP is assigned to both nodes and both nodes are in MASTER mode.
**My keepalived configuration is:
**
Node 1
cat /etc/keepalived/keepalived.conf
...
0
votes
0
answers
20
views
How to change or get permission of va_helper to inject so file (android, virtualapp)
I recently came across an interesting project called Virtual Apps.
https://github.com/ServenScorpion/VirtualApp
I tried injecting the so file to control the app here.
It worked, but I noticed that the ...
1
vote
1
answer
27
views
virtual method overridden issue with unique_ptr move semantics [duplicate]
It looks like in below code snippet virtual method overridden is not happening with Adapter object and both Target and Adapter object is showing same output.
#include <iostream>
#include ...
0
votes
1
answer
59
views
Laravel virtual column in model
I have one question, how can I create a virtual column ( computed ) in the model?
I searched and just found how to set Attributes, but I need a virtual column, for example, if I will call Post::all() ...
0
votes
1
answer
40
views
How to find the list of python virtual envs in C drive?
In cdrive(C:\Windows\system32\cmd.exe), how to find the list of python virtual environments created/installed in the system. This is not in conda environment. I have tried googling but not getting ...
1
vote
2
answers
70
views
Why Derrived pointer binds statically to Derived object meanwhile a Base pointer binds dynamically to Base object?
In the attached code why:
p1->print(); binds dynamically?
and why:
p2->print();
binds statically ?
#include<iostream>
class Base{ public:
virtual void print()
{ std::cout<<&...
0
votes
0
answers
10
views
Writing .tcx workout files that specify it is a virtual exercise path
I am writing .tcx files from software of a new exercise device that works in virtual environments. However, in examination of tcx schema, etc., I don't see how to specify a virtual bike instead of a ...
0
votes
0
answers
20
views
How can I override a virtual method of a .NET class in Python using PythonNet
I'm trying, without success, to override the virtual methods of a .NET class in a Python derived class.
Environment
Visual Studio 2022
Pythonnet version: 3.0.1
Python version: 3.10 64-bit.
Operating ...
0
votes
0
answers
7
views
Android Studio cannot launch emulators/phone
anyone can help me with my android studio, so apparently I want to launch my emulators but it always counter same error. this are the things that I have done.
Firstly, I created a basic activity with ...
0
votes
0
answers
17
views
Can't do sudo root command on cmd with linux iso file
Hello do you have any idea from where i can download an ubuntu iso ltsc file that is not corrupt,i tried to download it from the ubuntu site,but the 22.04 version iso file doesn't seem to work on ...
0
votes
3
answers
116
views
Virtual function in Inheritance in C++
**Read the below mention code **
#include<iostream>
using namespace std;
class FR
{
public :
virtual int fun()
{
cout<<"In FR Class "<<endl;
}
int ...
0
votes
0
answers
59
views
Oracle virutal machine ERROR_FAIL(0X80004005) hot to fix?
when i start a virtual machine it says aborted then the proceeding message
Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).
VT-x is disabled in the BIOS for all CPU modes (...
-1
votes
1
answer
58
views
Django - Postgres connection
I am super beginner, but want to learn super fast building web application.
I am right now developing an Income-Expense web app on Django Framework (Python, js and Ajax).
I am now stuck with the ...
0
votes
0
answers
11
views
Virtual Environment Organization & Selection
I am using VS Code on MacOS Ventura. I have created a few venvs and placed them in a folder (~/Documents/python_venvs). I have all pf my projects in a separate folder (~/Documents/python_projects). I ...
1
vote
1
answer
82
views
c++ why must use using keyword in base class to call non virtual same name functions? [duplicate]
I am having below code,
#include <iostream>
#include <string>
class Base {
public:
void operator()(std::string str) {
std::cout << "base str: " << str <...
0
votes
1
answer
36
views
Set order status to "Processing" after payment for a single virtual product in WooCommerce
In WooCommerce, any virtual product order status is automatically marked as "Completed" after payment.
I need the status to be set to "Processing" after payment. This behavior ...
0
votes
0
answers
92
views
Performing realtime Google Cloud speech recognition with PyAudio + VB-Audio virtual cable
I am trying to perform streaming speech recognition with the realtime Google Cloud Speech API. I have used the second code snippet from here (https://cloud.google.com/speech-to-text/docs/transcribe-...
0
votes
0
answers
13
views
Mongoose virtual populate, how not send the localField in the response
I implemented some virtuals with mongoose, but when I make a request in the response I don't want to see the localField but only the virtual.
unique_unit: [{
type: String
}],
...
0
votes
1
answer
52
views
Error in importing modules from a virtual environment
I created a virtual environment through Pipenv, and I had to install the NumPy library. But when I try to import it in the shell, it tells me "No module named 'NumPy'".
[[source]]
url = &...
1
vote
1
answer
95
views
Conflicting return type from constexpr virtual method?
I have the following code that won't compile. The compiler thinks that the return values differ which I fail to see.
Demo
#include <string_view>
#include <cstdio>
struct base
{
...
1
vote
2
answers
70
views
c++ Call function of union struct
I have nested structs, where the base has a pure virtual function.
(The following examples are a bit pseudo-ish, but describe the purpose)
struct Base {
int id=0;
virtual std::wstring toString(...
0
votes
1
answer
55
views
Virtual inheritance to generalise code among two different abstract child classes
I have an interface which is behavioral in the sense that provides some functionality that can be applied to a certain data shape. For example, a hierarchical data structure.
Firstly, let us define ...
0
votes
2
answers
46
views
Generating unique value and a virtual column
In an attempt to generate random unique values, which can be exposed (ie customer_id) and used as a PRIMARY KEY I am doing the following:
Generate random number, grabbing the seconds and fractions of ...
0
votes
0
answers
56
views
Virtual threads slower than single threads
I have a a number of tasks where work can be done in parallel. I have tried this single-threaded and multi-threaded. Code is as follows:
private MyTaskResult doTasks( ... ) {
try ( var scope = ...
0
votes
0
answers
81
views
How to override two methods of 2 parents that inherits same classes with virtual methods in C++
Consider the next Example:
#include <iostream>
class Base{
public:
virtual void f() {
std::cout << "Base::f()" << std::endl;
}
};
class Derived1 : ...
0
votes
0
answers
22
views
Storing PDF in RamDisk vs MemoryMappedFile
I am using a library to create a PDF file from HTML, then I print that file and delete it from disk. The issue is, we don't want anything stored on disk, not even temporarily. I thought about using ...
-1
votes
1
answer
126
views
Unity OnDisable - can I virtual override the built in unity methods?
Is it possible to use virtual void OnDisable() ? Its a built in Unity method, just like Start() or OnEnable(). I couldnt find any resources online where its explained if we can use virtual on these ...
1
vote
1
answer
152
views
How to correctly use abstract and virtual methods?
I am trying to use virtual and abstract methods to make my game architecture better.
I'm using C# and Unity for this example.
I use a ShipComponent as a base Class because I want all the child ...
0
votes
0
answers
202
views
How to split a screen into virtual screen with nvidia graphic card on linux
I have a 4 k monitor that i have splitted into 4 virtual monitor with the intel gpu using xrandr commands at x startup. Now, I recently bought and nvidia 1050 ti and i can’t get my 4 virtuals display ...
0
votes
1
answer
48
views
Formatting issues with the virtual list in Vaadin 23
I have created a VirtualList to display books information. My renderer presents each book information as an accordion, where first panel is generic book information (author, title, etc.) and it might ...
2
votes
2
answers
139
views
Visitor Pattern with Templated Visitor
This is a follow up on No user defined conversion when using standard variants and visitor pattern
I need to implement a templated version of the visitor pattern as shown below, however it looks like ...
0
votes
0
answers
24
views
Docker and Process Virtual Machine
Is Docker (container technology) a "Process Virtual Machine"?
If different, in what ways are they different?
0
votes
0
answers
45
views
Proper way to suppress -Wdelete-non-abstract-non-virtual-dtor in correct cases?
When I compile this code
#include <memory>
struct Buffer
{
virtual void *data() const;
protected:
~Buffer() = default;
};
void *Buffer::data() const
{ return nullptr; }
struct ...
0
votes
0
answers
11
views
After running https url with virtual host how can add more that one domain in xampp server
I have added one https url https://360relief.co.uk in xampp server as a virtual host and now I want to add more than one domain(https://carevisioncms.co.uk and https://namastecareinternational.co.uk) ...