instruction stringlengths 0 30k ⌀ |
|---|
Get array as output in specific function |
|google-sheets|google-apps-script|google-sheets-formula| |
null |
Recently I also faced same problm in MacOS File Listing Error
> navigaten opertaion not permitted R studio
so waht u have to do
- open R studio
- you may find RStudio next to apple icon Click over there
- Then click on Service setting
- Then Click on Accessibility
and then
- Click... |
This is the simplest example I can think of.
import vlc
import time
instance = vlc.Instance('--no-xlib --quiet --sub-source=marq')
player = instance.media_player_new()
media = instance.media_new("/home/rolf/BBB.ogv")
player.set_media(media)
player.video_set_marquee_int(0, 1)... |
I am writing a game with python on a MAC PC and I am getting the following error:
`libc++abi: terminating due to uncaught exception of type NSException`
The [SnakeGame](https://github.com/GaiAshk/SnakeGame/tree/main) is written so the player can be able to run using [pygame](https://www.pygame.org/docs/) or [turt... |
I have tried so many solutions and all of them has some problems
**Here is the best way to install GMP and eclipse**
Follow this link
http://www.multigesture.net/articles/how-to-install-mingw-msys-and-eclipse-on-windows/
You need to make sure of the following that hasn't been mentioned there:
When install... |
I'm trying to utilize PortAudio in a Unreal Engine 5 project. Just started learning to use this API.
I encountered a weird problem when looking at the available devices. All device names are in chineese(?). I can't figure out why that is. How do I fix this?
[![get device info results][1]][1]
Don't know if this... |
PortAudio Device Names Language |
|c++|unreal-engine5|portaudio| |
Your question is probably opinion-based, as no one will be able to give you a definitive answer or a guarantee that the code you are using is going to be stable, even when requiring `@ExperimentalApi`. <br> I can only share my thoughts and experience.
-----------------
At the current point, basically everything i... |
Module not Found error in streamlit about tensorflow |
|tensorflow|streamlit|modulenotfounderror| |
null |
{"Voters":[{"Id":209103,"DisplayName":"Frank van Puffelen"},{"Id":807126,"DisplayName":"Doug Stevenson"},{"Id":5246885,"DisplayName":"Alex Mamo"}]} |
I got a new Laravel project but it showing the following error and it is not letting me run it using php artisan serve I tried using composer self-update too but it is not working....
[1st image](https://i.stack.imgur.com/Tb9fK.png)
[2nd image](https://i.stack.imgur.com/aKx3z.png)
Please tell me how can I reso... |
I'm having issues in setting up my laravel project |
|php|laravel|frameworks| |
null |
{"Voters":[{"Id":2836621,"DisplayName":"Mark Setchell"},{"Id":1968182,"DisplayName":"Ulrich Eckhardt"},{"Id":2530121,"DisplayName":"L Tyrone"}]} |
I am a Android application developer, I have implemented a chat feature in my app. I want to integrate the stickers/gifs available in the soft keyboard into my app's chat interface, similar to how WhatsApp and IMO handle it.
Even if a user uses any soft keyboard like Gboard or Google AI Keyboard, apps like WhatsApp ... |
How to laod softkeyboard sticker/gifs into imageview using android studio. like whatsapp,imo,etc |
|java|android|android-softkeyboard| |
null |
```Authentication error: BrowserAuthError: user_cancelled: User cancelled the flow.
at Br.s [as constructor] (msal-browser.min.js:2:4145)
at new Br (msal-browser.min.js:2:67586)
at Br.createUserCancelledError (msal-browser.min.js:2:66371)
at msal-browser.min.js:2:86314
(anonymous) @ HomePage.jsx:... |
I have WPF window application, i am trying to pop up window and with that window doing some configuration. So the pop up window is showing properly in english language PC. but when i open the pop up in japanese language pc it is not showing properly. so i want to know the reason behind this. is WPF pop up has different... |
libc++abi: terminating due to uncaught exception of type NSException - python on MAC |
|python|macos|pygame|python-turtle| |
null |
I think you missed adding the scaffold
@override
Widget build(BuildContext context) {
return Scaffold(
body: build_v3(context),
);
} |
I am new to Docker and trying to set up two containers for my spring boot app and mysql database.
I can run the mysql container but the app container fails because it cannot connect to mysql due to Unknown host.
This is my docker compose file
```
version: '3.9'
services:
app:
image: my-custom-image
... |
How can I connect to my mysql container from spring boot (java.net.UnknownHostException) |
|mysql|spring-boot|docker| |
null |
From an arm64 mac machine - Im trying to package an Electron-forge app that will work both on an arm64 and x64 architectures.
I tried to use the @electron/universal npm package but couldt nake it run.
Their docs arent great.
From some reference i found
i added this to my package.json
"forge": {
... |
I am trying to make a measurement using the CAEN DT5742 16-channel digitizer using the library [CAENPy](https://github.com/SengerM/CAENpy/blob/main/CAENpy/CAENDigitizer.py) which is basically just a wrapper around the actual [CAENDigitizer](https://www.caen.it/products/caendigitizer-library/).
My program scans an ar... |
Python script becomes unresponsive at 100% CPU usage (single core) |
WPF pop up is behaving differently in English language PC and Japanese language PC |
|wpf|popup| |
null |
|angular|typescript|mixins| |
can anyone help me how to differentiate between background color and text color of pdf document if background color and text color are same.
Actually I need to set some static color to invisible text
using pdfbox so that text which are invisible we can see.
TextObjectInfo contains all text object information us... |
* `glPushMatrix()` just pushes the current matrix value onto the stack existing somewhere.
* This is used to saving the current matrix value.
* **This function does not cause any changes to the current matrix**.
* `glPopMatrix()` pops the matrix value from top of the stack, and current matrix value is overwritte... |
|ios|flutter| |
null |
I have a circle that follows my cursor. I was wondering if I can add an effect so when the circle hovers over the text it inverts only the text so you are able to see the text even when the white circle is on top of it.
I have tried to make the text black when I hover over it using CSS but it wont work because the w... |
|python|performance|serial-port|physics|cpu-usage| |
null |
Suggestions to consider for your my.cnf [mysqld] section.
Zaki,
General Log is NORMALLY not ON.
Until actually needed and will be used,
general_log=OFF
When needed from MySQL Command Prompt,
SET GLOBAL general_log=ON
then when you have sufficient logging completed, usually less than one minute -... |
**Is there a way to know if the camera is on?**
There be no straight way for an Android app to detect if another app is using the camera. Android's security model prohibit one app from accessing the resources or monitoring the behavior of another app without explicit permission and appropriate APIs.
While Androi... |
Electron forge macOS app for x64 and arm64 |
|electron|electron-packager|electron-forge| |
We are using firebase_messaging for notifications in our flutter app and to customise notification we are using awesome_notifications. The notification ontap flow is working fine in background or foreground state. The problem is in killed state, the callbacks are not working.
used `@pragma('vm:entry-point')` also to... |
Awesome notification on tap not working on killed state |
|flutter|awesome-notifications| |
null |
I am using `differential_evolution` from `scipy` with `workers` to parallel the calculations. And I switch to `pytorch` from `numpy` to speed up the code.
```
from torch.multiprocessing import set_start_method,Pool
if __name__ == '__main__':
#device = get_device()
device = torch.device('cpu') # testing w... |
|php|wordpress| |
null |
|python|macos|python-turtle| |
It's often needed to patch and compile a HTML (in my case a SVG) returned from a backend.
I used only the simplest version as
```
import {compile} from 'vue';
const component = compile(text);
```
But now I patch the source with DOM and inject other components inside it.
For that I need to use `app.componen... |
```python
class Items(Base):
tag_id = Column(Integer, ForeignKey(Tag.id, ondelete='CASCADE'), index=True)
...
tag = relationship('Tag', back_populates='items')
query = Select(Items)
cursor = await db_session.execute(query)
items = cursor.scalars().all()
print(items[0].tag.id) # 123
```
Why does... |
SQLAlchemy[async] query without joinedload |
|python|sqlalchemy|fastapi| |
When using openpyxl one can call [coordinate_from_string][1] method to check if it properly returns column and row.
def validate_cell(value=None, default=None):
if not value:
return default
# validate provided string
try:
from openpyxl.utils.cell import coordinate_from_strin... |
I had to use one of these, not 2 or more of them, make sure there is no duplication in your program.cs regarding these :
- AddIdentity
- AddIdentityCore
- AddDefaultIdentity
|
What capabilities does a WordPress User need to create and use patterns? |
I'm using Anaconda3-2024.02-1-Windows-x86_64 (yes, Windows 64) on windows 11, with python 3.11.7. I was trying to build an offline translator and i forgot what led to what... Eventually i was trying to install EasyNMT and it faild because of fasttext package. Then, I decided to install fasttext separately but failed an... |
How to compile a Vue template with other components? |
|vue.js|vuejs3| |
I'm deleting your post because this seems like a programming-specific question, rather than a conversation starter. With more detail added, this may be better as a Question rather than a Discussions post.
Please see [this page](https://stackoverflow.com/help/how-to-ask) for help on asking a question on Stack Overflow... |
null |
I have integrated Google sing in using **angularx-social-login** in angular 16 app,
able to get the userInfo using
this.authService.authState.subscribe((user) => { this.user = user; this.loggedIn = (user != null); });
but I need accessToken to pass to resource server and login pop up is prompting again if ... |
angularx-social-login - GetAccessToken prompting sign in pop up again |
|angular|angular-social-login| |
null |
null |
null |
null |
What I am trying to achieve?
----------------------------
Use System.Text.Json in my VSTO Addin, which has worked recently but stopped to work when I upgraded RestSharp
What is the problem?
--------------------
2 Exceptions while running the VSTO Plugin in Debug Mode in Outlook:
First:
FileNotFoundExcept... |
File Not Found Exception for System.Text.Json (VSTO Addin). Upgrade of RestSharp? |
`scanf` **returns** EOF
```
int main(){
char c;
int result;
while(1){
result = scanf("%c", &c);
if(result == EOF) break;
else{
c = toupper(c);
printf("%c", c);
}
}
return 0;
}
```
You will not EOF until you type special keyb... |
New to go. This is currently my code:
```
client := http.Client{
Timeout: 10 * time.Millisecond,
}
resp, err := client.Get("http://google.com/")
if err != nil {
if os.IsTimeout(err) {
fmt.Println("There was a timeout")
}
panic(err)
}
```
This works, but os.IsTimeout writes:
```
// This functi... |
fasttext Installation in anaconda |
|python|pybind11|fasttext| |
null |
aspectRatioMode=Qt.KeepAspectRatio does not work as expected, or I am getting something wrong
I am tring to open an image and resize it to fit my window, but I need to keep aspect ratio, what I've specified in aspectRatioMode=Qt.KeepAspectRatio, but in fact I get my image resized as it fills whole image_label.size()... |
QPixmap scaled aspect ratio is not keep |
|python|python-3.x|qt|pyqt| |
null |
Note the difference:
- `[1]` selects the second element of a series, equivalent to `.iloc[1]`. Since the series is a series of lists of substrings created with `.str.split()`, it results in a single **list** of substrings.
- `.str[1]` selects the second string of a list of substrings, row-wise. It results in a **... |
You cannot mock `String` with Mockito. It has nothing to do with it being `final`, as Mockito has been able to mock final classes since 2.0, and natively since 5.0.
If you attempt it with the latest version, you get this `MockitoException`:
> Cannot mock/spy class java.lang.String
> Mockito cannot mock/spy bec... |
I have a very simple Asp .Net API project where I am trying to add some trace logging.
I need some help with Application Insights configuration for that logging.
Right now its capturing ALL traces while in *appsettings.json* I have set the **Default** level to **Information**.
I have this code in my *Program.cs* ... |
How to check for http timout error in Go? |
|go|http|error-handling| |
null |
|mysql|database|intersection| |
**While k8s itself does not provide a specific API for file IO operations. Applications can communicate with PV in a standardized and scalable way due to its strong infrastructure for managing storage resources through PVs and PVCs.**
So Persistent Volumes are the suggested method in this case, thus you are on the ... |
The problem is that you have `print` statements *during* the reversal process. That reversal will temporarily create cycles, and if in that state you call `print`, which calls `__repr__`, you'll get into an infinite loop.
The solution is to not call `print` with a *node* as argument while you reverse your list (as y... |