instruction stringlengths 0 30k ⌀ |
|---|
konichiwa
I am doing some homework and prepare for final exam, but I got stuck in here many hours, pls help me
A square matrix (nxn)
Write down the Even elements into matran.txt, then read from file and display it on screen
```
//this is function write down file matrix.txt, and it's work normally
v... |
Why LambdaMetaFactory is taking more time to execute a method in Java? |
I am learning Spark, so as a task, we had to create a wheel locally, and later install it in Databricks (I am using Azure Databricks), and test it running it from a Databrick Notebook. This program involves reading a csv file (timezones.csv) included inside the wheel file. The file is inside the wheel (I checked it) an... |
Databricks can't find a csv file inside a wheel I installed when running from a Databricks Notebook |
|python|csv|apache-spark|pyspark|databricks| |
null |
Need event when iOS app terminated by the user |
I have tenant A and tenant B. I have user in tenant A who is also a guest user in tenant B. In tenant B I have ASP.NET Core Blazor Server application with authentication registered for single organization.
In Program.cs file authentication and authorization is set up according to MS docs:
```
builder.Services.Ad... |
How Azure AD guest account works with app authentication? |
|asp.net|azure-active-directory|blazor-server-side| |
null |
Problem:
There are 2 main methods of adding a C++ Library including CURL to your C++ project
Dynamic Library linking - By Including .dll file alongside your .exe)
Static Library linking - Doesn't require a .dll (it's automatically added to your .exe/bin file which will make it slightly larger but less files to... |
|python|pandas| |
null |
There is a table with visiting dates with different customer IDs. The table is below. Some customers come a few days in a row, stop a few days, and then come back a few days in a row again. I want to calculate the consecutive days for each customer. In my case, each customer may have a few consecutive days. for example... |
Has anyone tried using Langchain's AI21 integration AI21SemanticTextSplitter?
There is a mention of it on [Langchain's Text Splitters Page](https://stackoverflow.com).
This is [its documentation](https://stackoverflow.com).
I tried the examples given there and it says `ImportError: cannot import name 'AI21Sema... |
Is AI21SemanticTextSplitter (from langchain_ai21) Deprecated? |
The following code works fine for me:
Shared Function CheckForInternetConnection() As Boolean
Try
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
Using client = New WebClient() With {
.Proxy = Nothing
}
U... |
Try this - https://developer.android.com/studio/platform
There is an Android Studio version for platform developers (AOSP) , works only on Linux.
Here are some of the features :
- Project Setup Wizard
- Configure your lunch target and platform modules.
- Multi-language Support
- Edit C++, Kotlin, and Java... |
I am getting below error during playing live streaming video. It is working some time but it is working fine in web player and VLC player.
URL : https://30a-tv.com/feeds/zeasn/30atv.m3u8
anybody help me regarding this issue?
> Playback error
> ... |
i have a project where i use multiple comboboxes with dynamic lists inside them.
so i made a method for search inside the comboboxes by clicking in the combobox to drop it down and then typing the word i am looking for in text area of the combobox and list is changing with each character i type.
the problem i am faci... |
> Why is argument 0 being reset somewhere in the shell script case?
This is [Bash's documentation][1] for `$0`:
> Expands to the name of the shell or shell script. This is set at shell initialization. If `bash` is invoked with a file of commands, `$0` is set to the name of that file. If `bash` is started with the... |
I have a video that I'm currently playing on ReactPlayer.
I am also able to show different captions and select different captions.
I am trying to see if I can select the audio for the video just like I can select the required caption from video controls
```
const [audioTracks, setAudioTracks] = useState([]);... |
Is there a way to add audio select button in controls of react-player along with captions select button? |
|reactjs|react-hooks|video-streaming|audio-streaming|react-player| |
null |
//pd.get_dummies(pd.Categorical(Predictors_1['cylinders'],categories=list(reversed(list(Predictors_1.cylinders.value_counts().index)))), drop_first=True) // |
I have a Node app in Docker I'm trying to deploy to Heroku with this deploy github action: https://github.com/AkhileshNS/heroku-deploy/tree/master
My app is already created in Heroku, and its using the default node buildpack. By all accounts, the deployment appears to succeed on the GHA side.
Here is my Dockerfi... |
I want to make a matrix of QQ plots like the one posted here[![enter image description here][1]][1] [Sample set QQ plot comparing different elements to each other] . Below is a condensed version of my data frame. For each scan (a-c), I want a QQ plot to compare the grain size (numerical values below the element names)... |
can you please help me solve this error that i am getting on my x code 15 and how to get rid of it and it is happening in my swift code
this is the error:
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ed17ff0)
thank you for your help
i tried to clean the error but did not work |
null |
The signature verification of the Provider can be skipped by tricking the JRE into believing it was already verified.
The following code works with Java 8 to 21, and is expected to break when the Unsafe methods used are removed.
Class<?> jceSecurityClass = Class.forName("javax.crypto.JceSecurity");
Field... |
in order to calculate the value of a third column, the other two must contain numbers (integers or floats).
This value in your third data row is not a number, so you cannot multiply anything with it:
> if >=100 000 - 1.6%, if < 100 000 - 100$
Your other "bid" values ("2.3%" etc.) are also not numbers. They s... |
let say I want to create an enemy that deal damage to player when touch and can receive damage from player (like Hollow Knight).
Here my current solution
1. Create `hitbox` at the player's weapon.
2. Create `hurtbox` at enemy's body
3. Create `hitbox` at enemy's body
4. Create `hurtbox` at player's body
I... |
Is there any better way to implement hitbox/hurtbox system in godot platformer? |
|godot| |
I'm currently working on a c# project where I manipulate videos/images and turn them into Dicom files.
For the moment I'm able to create a Dicom file from a single image. But now I would like to store multiple images into a single Dicom file.
Can someone help me please ?
I tried to convert multiple Dicom files con... |
How can I turn multiple jpegs into a Dicom file? |
|c#|dicom|fo-dicom|dicomweb| |
null |
Whenever I execute pytest with this code, I consistently encounter the error: **FAILED tests/test_main.py::test_create_todo - beanie.exceptions.CollectionWasNotInitialized**. Do you have any insights on how to initialize the database before running the test?
```
# tests/test_main.py
import pytest
from fastapi.tes... |
Sometime I am getting error from exoplayer "Invalidate date format" |
|android|exoplayer|android-tv|amazon-fire-tv| |
when i am trying to open the downloaded pdf , it says We can't open this file ....Something went wrong.
Here is my code.....
String path = envString+"MetalSpecActionServlet?source=search_eu.jsp&action=open_na2066&specno="+na2066BO.getSpecNo()+"&specType=NA2066" ;
try {
... |
How to change column names returned from below function?
Executing:
```
select * from get_parameterbased_return_Table('condition2');
```
Column names should change to `(col3 text, col4 text)`
**Sample table and function:**
```
CREATE TABLE public.parameterbased_return_table (
col1 text NULL,
col2 te... |
How to change column names returned from a function? |
|sql|postgresql|plpgsql| |
|python|pandas|dataframe| |
I have a `union`:
```
union Obj64 {
uint64_t u64;
uint32_t u32[2];
uint16_t u16[4];
uint8_t u8[8];
};
static_assert(sizeof(union Obj64) == sizeof(uint64_t), "Unexpected trailing padding in union!");
```
Now I have a pointer to the `union`:
```
union Obj64 *union_ptr = SOME_VALUE;
```
I wan... |
Casting a pointer to a union to a pointer to the element type of an array member of the union |
I'm not able to import a function called `jsonFetch` and use `define:vars=` simultaneously inside a `<script>` in Astro
---
// Code related to the Astro backend
const question = { /* data */ };
---
// HTML code
<script define:vars={{ question }}>
import {jsonFetch} from... |
|jquery|excel|vba|internet-explorer|oracle-apex| |
I was trying to install bagisto, then I gave up and removed the folder from my var/www/html directory. After I had given a command when setting up Bagisto, my phpmyadmin won't let me access my dashboard. I think I have php 8.3 and it is on an Apache web server. I enter my login info and it says my web server isnt respo... |
Problem with patching kernel. Used devtool extract to get at kernel source code
then modified one file and git commit within devtool context
then git format-patch against commit HEAD -1, copied resulting patch to recipes-kernel/files in bbappend recipe “files” folder
then added the patch file to bbappend rec... |
I'm using wxWidgets on Windows with MinGW64 toolchain and CMake. I am confused about how to make my program DPI-awared. When using Visual Studio, "wx_dpi_aware.manifest" can simply solve the problem; However, I do not know how to use it for MinGW64 and CMake.
I have asked ChatGPT and got these useless codes:
... |
How to use "wx_dpi_aware.manifest" of wxWidgets wxMSW with MinGW and CMake? |
|cmake|wxwidgets|manifest|dpi-aware| |
null |
TLDR
----
it's the [expected][4] behavior somehow! I'll cite the source:
> That is expected. When there is only one session we do not show it in the call stack view (to simplify). Thus in that case it is not collapsable.
----------
The long part:
--------------
I'm experiencing the same behavior n... |
I'm having troubles with reading a file which contains a base64 encrypted items.
Everything's ok until I try to add new items to the file and read it then.
This is the error code:
>Error: System.FormatException: La entrada no es una cadena
Base 64 valida porque contiene un caracter que no es Base 64,
mas de d... |
You dont want a powerquery for some reason, but its much simpler then the method you were using. Load the first table. Load the second table, and in that query, add column, custom column, with formula **=OtherTableName**. Expand the new column into rows using arrows at top the column. Here. we start with Table2 and ... |
I couldn't indexing for my website. Test live url is success. I am using Wordpress. What is the wrong in this page? Also, i activated Yoast SEO plugin.
[Google search console screenshot](https://i.stack.imgur.com/61WbV.png)
[Read settings in wp][1]
I expect to indexing for Google. Can you help me?
[1]: ... |
I have no idea what you mean by `globals()` there and why are you double looping. Instead, add task to the group.
with TaskGroup("group1") as group1:
for key in ['task_1', 'task_2']:
group1.append(tasks[key])
with TaskGroup("group2") as group2:
for key in ['task_3', 'task_4']:... |
Try this CSS code:
<!-- language: lang-html -->
div.label ~ select
It returns any selects that are preceded by a DIV with class label. |
How to send select input data for form submission? |
I have a dataset with 535 samples, 63 dimensions and 7 clusters (labels). I am going to run some processes on my dataset and then track the impact of the process on the dataset.
What approach would you suggest? for some reasons, dimensionality reduction techniques didn't go well, so I prefer approaches like having som... |
Cluster Evaluation |
|cluster-analysis|dimensionality-reduction|runumap| |
null |
I know what hapend. It's not a data struct like `swc.Program`. I should create it like this:
{
type: 'Module',
span: { start: 0, end: 100, ctxt:0 },
body: [...]
} |
Recently I started to have an unexpected OS shutdown (Kernel Power Error 41) so I started to diagnose the cause. I noticed I also have Error Code 33 Shown By the Motherboard LED.
This is my system information:
```
Operating System: Windows 10 Pro 64-bit (10.0, Build 19045)
System Manufacturer: Gigabyte Technology... |
`@bind-{PropertyName}` is short-hand for setting a one-way binding and a (generated) callback.
Instead of using an second callback, you can just drop the `@bind-` notation:
```
<Test BitValue="MyValue" BitValueChanged="HandleMyValueChanged"/>
```
This works for all parameters with two-way binding, ie InputT... |
{"Voters":[{"Id":633440,"DisplayName":"Karl Hill"},{"Id":4541695,"DisplayName":"DVT"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]} |
I am migrating a project from one tenant to another, which in essence is ETL job from Dynamics 365 F&O to Power BI Reporting.
I am using Azure Synapse Link for Dataverse to fetch data from Dynamics, which will be plugged into migrated pipelines in Azure Synapse, which will take care of the rest.
This is one of t... |
Yocto kernel patch fails with git am |
|kernel|yocto|patch| |
null |
{"Voters":[{"Id":-1,"DisplayName":"Community"}]} |
I am trying to test cryptography performance virtual crypto AES-NI MB PMD using below command,
```sh
sudo ./dpdk-test-crypto-perf -c 0xf -n 4 --vdev crypto_aesni_mb -- --ptest throughput --devtype crypto_aesni_mb --optype cipher-then-auth --cipher-algo aes-cbc --cipher-op encrypt --cipher-key-sz 16 --auth-algo sha... |
In VLC I use this line in the procedure for loading from a .csv file, but in FMX there is no property Rows[] so that I can insert delimited text with a line.
`StringGrid1.Rows[i].Assign(SRow);`
I can use StringGrid1.Cells[i,j], but then I'll have to handle the delimiters myself. How to write a string in Stringrid... |
How to write a string in Stringrid with DelimitedText in FMX Delphi 11 |
|csv| |
null |
I have a given df with values > 0 and nan.
I want to reset all values > 0 to 1 except the first two columns with:
df_sort[df_sort.iloc[:,2] >= 0] = 1
Actually this changes my whole df.
I only want reset the values > 0 and keep the nans. |
What you want to do here is add an element id and append the index to the element id
<ng-template #item let-item let-i="index">
<textarea id="TextComment_{{index}}" [disabled]="IsDisabled(i)" [(ngModel)]="item.commentText" nz-input rows="4"></textarea>
<nz-form-item>
... |
Thanks to @Olivier's suggestions above. They did help me move in a different direction. Ultimately, I was able to solve it by using the following code.
```
Try
Dim field = renderMaterial?.Fields?.GetField(slotName)
If field IsNot Nothing Then
If TypeOf field Is DoubleField Then
Dim value = field.Ge... |
|c#|base64| |
Alternatively, you could try to alter your class in such a way where it can complete itself in some form of late-valued fields. I wouldn't recommend that because if you try to access `bar` before it has completed it could throw an error.
```dart
class Foo2 {
final Completer<void> _completer = Completer();
Lis... |
Im trying to make a TTS on a open source LLM with local API that is streaming me the response to my questions but it's very hard to do it and i find nothing on that subject
PS: sorry for my english if it's bad im french
Here my code:
```import pyttsx3
import threading
from queue import Queue
from openai imp... |
How to Text To Speech a IA text generation that is streaming response |
|python|api|artificial-intelligence|text-to-speech| |
I am using following code for linkedin authentication and getting following error
Signed API request to https://api.linkedin.com/v2/me has returned an error. HTTP error 403. Raw Provider API response: {"serviceErrorCode":100,"message":"Not enough permissions to access: GET /me","status":403}. Try again
Please hel... |
Not enough permissions to access API request https://api.linkedin.com/v2/me |
|oauth-2.0|linkedin-api|hybridauth| |
null |
{"Voters":[{"Id":1145388,"DisplayName":"Stephen Ostermiller"}]} |
I am trying to make a react app I want to make some login that will then give access to the main site. the problem is that it just doesn't really do its job at all. on initial login with correct password the private page doesn't load. but if i then go back and just click login without inputing password or login it load... |
why is this react login page not working? |
|reactjs|typescript|next.js|deployment|react-router| |
null |