instruction
stringlengths
0
30k
null
ill try to get my first laravel Project running and im using an SQL Server . Ill have just installed sqlsrv and my normal connections do work. But in Laravel ill get a error message "could not find driver" when i i run the enviroment server with "artisan serve" error message: Illuminate  \  Datab...
There are 8 Linux namespaces which isolates PIDs, Network, Users, etc. https://man7.org/linux/man-pages/man7/namespaces.7.html It allows a namespaced process to have independent PIDs, network devices, users, etc. They are kernel resources but only visible within one specific namespace. They are guaranteed to no...
Is there a need for BPF Linux namespace?
|linux|security|linux-kernel|linux-namespaces|
when click matlab Registration(use the NFRI function),occur matlab has encountered an internal problem needs to close. [click matlab Registration(use the NFRI function)][1] this is the error detail. ``` ------------------------------------------------------------------------ Access violation detect...
Problem with a simple code to open windows file explorer on Pycharm
|python|pycharm|
null
It's likely that Firefox is not looking for your `userChrome.css` on startup. 1. Open up a tab and navigate to `about:config` and click `Accept the Risk and Continue`. 2. In the `Search for Preference` box type `userprof`. 3. It should find the `toolkit.legacyUserProfileCustomizations.stylesheets` option. Just cli...
|amazon-web-services|terraform|aws-route53|
I would like to leverage [Vue3 Suspense](https://vuejs.org/guide/built-ins/suspense.html#combining-with-other-components) to initiate a loading state at the parent level that triggers animations in the children. When the request resolves at the parent level, I would like to remove the animation from the children. Ap...
Vue3 Suspense Parent > Child Animation
|javascript|vue.js|async-await|vuejs3|vue-suspense|
I'm working with a new JavaFX project. I have legacy Swing control panels. When I try to do `new SwingNode`, I get an exception: Caused by: java.lang.IllegalAccessError: superclass access check failed: class com.sun.javafx.embed.swing.SwingNodeHelper (in unnamed module @0x35dc99d5) cannot access class com.sun....
I am using an ASP.NET Core Web API with Entity Framework Core (pomelo). I have a MariaDB database. I use Swagger UI to explore my API, as per the template. When I try to use it to delete a row, I get the following error: > Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity cha...
Guided by https://github.com/microsoft/vscode-python/issues/14639 --- I suggest to do the following steps: 1. **CTRL + P** 2. Search for **>Preferences: Open User Settings (JSON)** <br> - *(settings.json)* <br> 3. Add `"python.experiments.optInto": ["pythonDiscoveryModule"]` 4. Save the file 5. **View > Coma...
accessibilitytools, wang's avi library and kprogresshud are very old libraries, originally hosted in jcenter but now not available anymore. Working with old libraries is always difficult. My suggestion is to download the source code from github and try to integrate them into your project (if the license allows it). ...
I have a relatively large PostgreSQL (v12) table storing JSONB data that has unintentional duplicate data (based on a composite unique index on two columns, `aCol` and `bCol`). In order to create that index, I have to first delete all of the accidental duplicates from the DB. This works fine in 2/3 of our DB servers (s...
C++: undefined reference to `xxx`
|c++|g++|
My favorite list of [tips (explained in detail here)][1] is as follows > 1. Try to restrict the queries result set by using the WHERE clause. > 2. Try to restrict the queries result set by returning only the particular columns from the table, not all the table's columns. > 3. Use views and stored procedures inst...
I've been having the same issue and found that if you execute `which python` on your terminal window, you can validate which interpreter is being used (global or venv). It's not as visual or friendly, but hope it helps.
I found this interesting bot from James Bachini https://github.com/jamesbachini/Market-Maker-Bot. I tried on ETH Mainet and works fine then I tried on Sepolia Testenet and I got stuck in a CALL_EXCEPTION' Here James Bachini's code with Sepolia change. const ethers = require('ethers');`enter code here`...
I am simulating CPU scheduling algorithms for a class. I have a struct called job that contains the basic info for each job, and I'm trying to order a priority queue of these jobs in order from smallest number of cycles needed to largest number of cycles needed. This is currently my custom comparator to do that: ```...
Error: id returned 5 exit status when building C++ code in Code::Blocks
It would have been ideal to use hasManyThrough but this would mean some modifications to your schema. However, you can achieve this result by chaining Eloquent relationships and a custom query. For your example, you can do this by getting all the role IDs of the user then getting all tasks associated with thes...
I have a microphone and speaker connect to a RPI inside an art sculpture, my objective is to record new audio clips of people talking into the mic while playing back 3 random recorded audio clips. It does work but the mic keeps picking up the feedback and echo from the speaker itself, how can I fix this? I cannot order...
How to reduce noise in recordings with a known audio file
Your code has compile errors when I try to run with the version of `iverilog` that I have installed (10.3). However, the code produces the expected output when I run with the Cadence and Synopsys simulators: result_matrix[0] = 0.000000 result_matrix[1] = 0.000000 result_matrix[2] = 0.000000 r...
Upgrade gradle to the latest version by modifying the url in gradle-wrapper.properties
I'm asking how are labels managed by C. EX: if (false) label: printf("HELLO "); printf("WORLD "); goto label; Prints WORLD HELLO on GCC is it undefined behavior? (the label definition isn't handled as an instruction by the compiler)
`foo()` is taking in a primitive `int` *by value*, so it is a *copy* of whatever value you pass in. There is no reference. It doesn't matter what `foo()` does to `y`, that value is not reflected back to the caller. Also, there is no such thing as "point at a value", either. You can point at a variable, but not a...
You have not set the `provider` and `registration` properties correctly for Keycloak: - only `user-name-attribute` is present for `provider` conf, which is not enough - `issuer-uri` is a `provider` property, not a `registration` one (your IDE should lint that) - `issuer-uri` is probably `http://localhost:8080/realms...
I am using an ESP232 devkit and i am trying to start an Access Point where i can enter WiFi data, which then is Used to setup a WiFi Webserver to control Data. But whenever i enter wrong wifi data, it sets of the WatchDog timer. When i enter the right WiFi Data it connects and works. ``` 19:18:44:830 -> Trying to c...
Watchdog Timer Reset on ESP32 using Webservers
|c++|webserver|esp32|arduino-esp32|watchdog|
null
@Modifying @Transactional @Query("DELETE FROM BusinessTransaction bt WHERE bt.userId.id=:id") void deleteByUserId(Long id); -->for this query i am getting "Transaction silently rolled back because it has been marked as rollback-only" this error. In this query userID is a object of User c...
I am trying to run ``` from ydata_profiling import ProfileReport profile = ProfileReport(merged_data) profile.to_notebook_iframe() ``` in jupyter notebook. But I am getting an error: AttributeError: module 'numba' has no attribute 'generated_jit' I am running jupyter notebook in Docker container with...
AttributeError: module 'numba' has no attribute 'generated_jit'
|python|pandas|docker|containers|
null
How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
it seems to me you could achieve your goal by means of formulas if you insert one column and one row you could use this formula =IF(SUM(G$5:G5)<G$2;IF(SUM(F6:$F6)<8;1;"");"") [![enter image description here][1]][1] or you can keep your original rows and columns layout and adopt this other formula: ...
I'm a beginner developer so don't be mad
Change your DATABASE_HOST as follows. ``` ... DATABASE_HOST=host.docker.internal ... ``` If you're using Linux operating system, add this to your docker container. (in your `docker-compose.yml`) ``` extra_hosts: - "host.docker.internal:host-gateway" ```
someone please help me to get rid of this error Error : [PrivateRoute] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment> PrivateRoute.js : import React from "react" import { Route, Navigate } from "react-router-dom" import { useAuth } from "./...
PrivateRoute is not a Route component error
|javascript|reactjs|firebase|
null
|machine-learning|extract|openai-api|large-language-model|fine-tuning|
Looking to match a table of X,Y,Z points between two sets of data. The difference between the two sets is that the sign of the Y value is flipped. For example in this screenshot I set "target" as the values I'm looking for, where the Y value is the negative of the value in column D. ![sample data table + des...
After establishing PACE PIN authentication, I am trying to implement secure messaging to be able to send secure APDU commands. I based my implementation on the ICAO 9303 part 11 manual, chapter 9.8, page 63 : https://www.icao.int/publications/Documents/9303_p11_cons_en.pdf, and on this Java code that I used : https:...
Secure Messaging Implementation in C#
|c#|encryption|cryptography|apdu|ecdh|
I'm using `iverilog` to compile the following matrix multiplication code and testbench: ``` `timescale 1ns / 1ps module testbench(); // Testbench parameters parameter m1 = 2; parameter n1 = 2; parameter m2 = 2; parameter n2 = 2; // Testbench variables logic clk; real matrix_a[m1*n1-1:0]; real matrix...
Matrix Multiplication Testbench Yields Inconsistent Results
Your backtracking doesn't work, as you break when the count of a letter drops to 0, but the loop that restores the counts unconditionally adds all the letters back. If you remove the `break`, then your code will work correctly without cloning. ```java for (char ch : word.toCharArray()) { int letterIndex = c...
|python|echo|feedback|noise-reduction|
null
The existing code renders. However, when I remove `Router` from line 2 as an import, even though it's not being used, it breaks. **Correction: The page still renders when I remove Router. However, it just displays a blank page. When I inspect it, I no longer get anything in the <div id="root"> tags.** When I com...
For me the only way this worked out was to set UISegmentedControl's background image an empty image using UIImage(). Like so: `segmentedControl.setBackgroundImage(UIImage(), for: .normal, barMetrics: .default)` Also, `segmentedControl.setDividerImage(UIImage(), forLeftSegmentState: .normal, rightSegmentState...
I am using TeamsFx SDK. I want to send a proactive message to a user. From reading documentation, it seems that recommended way is to listen to OnMembersAdded or OnMessageActivity and save the conversation reference to a persistent storage, so it can be later used for sending proactive messages. But what if for what...
In TeamsFx, how to construct ConversationReference without having a saved reference?
|botframework|teams-toolkit|
After drop_na it shows 0 obs. of 68 variables: [![enter image description here][1]][1] [![enter image description here][2]][2] [![enter image description here][3]][3] After drop_na I don't see any results in the Table except dates. This was not the case when I tried it before, I could see the values ​​in ...
VSCode lists these errors: 2024-03-30 14:51:04.141 [error] Following setting is deprecated: "python.linting.mypyEnabled" 2024-03-30 14:51:04.141 [error] All settings starting with "python.linting." are deprecated and can be removed from settings. 2024-03-30 14:51:04.141 [error] Linting features have be...
Settings file does not have settings listed in error log
|visual-studio-code|
I believe that `Image` doesn't like null `src`. You should change your code to something like: ``` "use client" import { useKindeBrowserClient } from '@kinde-oss/kinde-auth-nextjs' import Image from 'next/image'; import React from 'react' function DashboardHeader() { const {user} = useKindeBrowserClient();...
I am trying to make a primitive minesweeper game, my program has two classes, one of which is Point, that is supposed to be made into an array of objects. ``` public Point(int x, int y, int status, int contents) ``` Those are the values that it takes, an object of a sort is created. Then, i have to get an array ...
null
The only difference is that they have different expiration times. - `sessionStorage` will only be accessible while and by the window that created it is open. - `localStorage` lasts until you delete it or the user deletes it. Let's say that you wanted to save a login username and password you would want to use...
Extend androidx.preference.EditTextPreference: public class EditTextPreferenceExt extends EditTextPreference { public EditTextPreferenceExt(@NonNull Context context, @Nullable AttributeSet attrs) { super(context, attrs); final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.EditTex...
Uniswap V3 Bot on Sepolia Testenet
|node.js|dotenv|ethers.js|revert|uniswap|
|web|glsl|webgl|
In WooCommerce, I would like the add to cart button to be disabled if a certain attribute value is selected. The attribute taxonomy is "pa_badge-print" and the term slug value is "yes" I have used this code: ``` add_filter( 'woocommerce_variation_is_purchasable', 'conditional_variation_is_purchasable', 20, 2 );...
Hide Add to Cart in WooCommerce for variations with specific attribute value
|javascript|canvas|webgl|polygon|voronoi|
The issue is with the authorization header: ``` "Authorization" = "SharedKey "+$storageAccountName+":"+$storageAccountKey ``` You cannot pass the account key in the authorization header. You have to compute its value based on the instructions provided here: https://learn.microsoft.com/en-us/rest/api/storageserv...
null
I had a Django service which had an app called "User". This app has 2 tables in, which are being migrated to the database using Django migration system. In order to change the architecture from monolith to micro-service, I broke down User app and add the models and APIs in another Fastapi project. But I didn't separate...
migrate from django migrations to fastapi alembic
|django|microservices|fastapi|
Closest match of X,Y,Z coordinates
|excel|excel-formula|
null
I'm trying to display my frame in my window but for some reason its giving me a blank window. It's my first time using classes with tkinter do i need to call it in the object? <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> from customtkinter import * c...
Frame not displaying | python tkinter
|python|tkinter|
I use JavaScript and node. I need to read the raw bytes from the file. I create a `Uint8array` and fill it with data from a file using `fs.Read`. Then I output the data to the console of the array as a whole, and individual elements. Instead of the values of the elements, I get zeros. But it is clear that the arr...
how to correctly get the value of an element by its index from TypeArray?
Using attributes from instances of array of objects in other classes
|c#|arrays|class|random|
null
You need to have nested structures that mirror your nested JSON: struct City: Decodable { let id: Int let city: String } struct ResponseObject: Decodable { let items: [City] let offset: Int let limit: Int } And then: do { let re...
Trying to generate LIN Slave wakeup frame from CAPL script in which I need to simulate below condition 1. System is in sleep. 2. My Node Connected to ECU will wakeup with three 250us pulse (LIN slave wakeup frame on Bus not 999us neither wakeup frame through 0x3C). 3. Send Diagnostic frame to my ECU with Checksum...
```typescript type KeyValueWrapperTypeObject = { [key: string]: Wrapper<unknown>, } type KeyValueUnknownTypeObject = { [key: string]: unknown, } type MyDeterminedTypedObject = { key1: Wrapper<string>, key2: Wrapper<number>, key3: Wrapper<{ nestedKey: boolean, }> } type ConvertValueTy...