instruction
stringlengths
0
30k
βŒ€
|python|django|forum|phpbb|
After some research and (all credits goes to claude3 :), chatGPT4 and gpt3.5 failed to address the issue even after manuevering the prompts many times) what worked for me was the shadowJar plugin from the `com.github.johnrengelman.shadow`. this creates a fat JAR file that includes all the required dependencies. He...
Add a file .vscode\settings.json with the contents: <code> { "dotnet.defaultSolution": "your-solution-name-here.sln" } </code> If you can put each *.sln file in a different subdirectory, then you can open each subdirectory in a different VS Code window and each will have its own intellisense and its own files...
Now I am trying basic redux logic in Stackblitz platform. ``` import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import { composeWithDevTools } from 'redux-devtools-extension'; import taskReducer from './reducers/taskReducer'; const store = createStore( taskReducer, ...
Without code or link we can't do anything to help you. Also, you are in the discussions tab. For specific programming question, go to Stack Overflow Q&A : https://stackoverflow.com/questions
null
|node.js|absolute-path|node-fetch|
|lua|neovim|neovim-plugin|
I can't find an example implementation of a logging interceptor for python that measures the time it takes to process a request. I want to measure how long it takes to process a request on the server side. I tried to write my own logging interceptor without success. It seems to me that continuation doesnt wait f...
Update Cell Value in Filtered Sheet Via VBA
|excel|vba|macros|offset|
null
I have a list of unequal length as shown below ```` sam <- list(list(symbol = "COUNCODOS.NS", name = "Country Condo's Limited", price = 4.8, changesPercentage = 0, change = 0, dayLow = 4.6, dayHigh = 4.9, yearHigh = 7.05, yearLow = 3.4, marketCap = 372467040, priceAvg50 = 5.383,...
Is there a way to bind the list to dataframe
|r|
null
I have an application that sends query string of approx. 100000 of characters - (500 Array Object converted to String and attached to url). It was working fine when the struts version was 2.5.30 but after I upgrade this version to 2.5.33 I am unable to send query string of 100000 of characters. I am able to send only ...
I think I see where you're coming from seeing this dataset. But as this doesn't seem a out of the box option in PowerBI charting as-is, can I suggest you split this table based on the column generated for weekends, resulting in - weekends false > table weekdays - weekends true > table weekends (This is done b...
I am using Laravel 10.47 and PostgreSql 14.2. I an using the following piece of code in the migrations that creates the timestamps fields: $table->timestamp('email_verified_at')->nullable()->useCurrentOnUpdate(); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->nullabl...
|xbee|zigbee|mesh-network|device-discovery|
As pointed out in comments, `2000000 * sizeof(long long)` is too large of an array to fit on the stack; confidence is high that this is the root cause of the issue. That said, the code works nicely when we add the dynamic memory allocation of `num` as shown below in the line having `malloc()`. We also added code...
I'm stumped. The below code will return the index.html as well as the css asked for, but when the index.html is requested by Firefox, it won't render the page with the css applied. I have the same result in Konqueror (which in Chrome based) class MyServer(BaseHTTPRequestHandler): def do_GET(self): ...
Python BaseHTTPRequestHandler css loaded but not rendered
|python|html|css|basehttprequesthandler|
|python|java|grpc|grpc-python|buf|
I'm working on a React Native project using TypeScript and trying to implement a carousel feature. I've attempted to use react-native-snap-carousel, but I'm encountering several errors, including "Cannot read property 'array' of undefined" and "Invariant Violation: 'main' has not been registered". These errors persist ...
React Native TypeScript Project: Carousel Implementation Error
|jquery|json|github|dribbble-api|
Inside the form, the fields must have the two way data binding for `ngModel` for all elements of the form, maybe that is the cause of the issue ... <div class="input-container"> <input type="text" placeholder="Identifiant" name="identifiant" [(ngModel)]="identifiant" required> </div> <d...
in my project I need to upload images as bytes to an endpoint and then process them, within a certain time. The images have a resolution of 600x600 and weight \~700 kB per image. Images are in `png` format. I have created a minimal [flask](https://flask.palletsprojects.com/en/3.0.x/) application with one endpoint. The ...
How to set Postman Settings to mimic the effect the -k option of curl
|curl|postman|
null
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...
|machine-learning|layout|deployment|ocr|
{"Voters":[{"Id":16217248,"DisplayName":"CPlus"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":466862,"DisplayName":"Mark Rotteveel"}],"SiteSpecificCloseReasonIds":[13]}
Maybe it will help someone, it will be useful: ``` $parents = ParentModel::leftJoin('salaries', 'parents.id', '=', 'salaries.parent_id') ->selectRaw('parents.id, parents.name, GREATEST(COALESCE(MAX(salaries.`to`), 0), COALESCE(MAX(salaries.`from`), 0)) as max_value') ->groupBy('parents.id', 'parents.name'...
you can do this: Map<String,B> mapB = new HashMap<>(); for (B element : setB) { mapB.put(element.id, element); } setA.forEach ( a ->{ B b = mapB.get(a.getId()); if(b!=null){ a.setB(b); } } );
2024: i needed to do like this in Nodejs: ``` import { Translate } from "@google-cloud/translate/build/src/v2/index.js"; ```
Try to change from `href="index.html"` to `href="/index.html"`. This means that you are targeting the root of the website. When you are just using `"index.html"` the default behavior is just to append "index.html" to whatever route you are already on, meaning if you are on mywebsite.com/blog the result will be myweb...
After consulting with a helpful colleague, he suggested running Microsoft Depends (Dependency Walker). So I disabled SAFESEH (`/SAFESEH:NO`) and ran it through Depends. As expected, despite being linked correctly in the properties of the project, the dependencies that were "not found" were not linking during runtime ...
Because i had a lot of controller i want to arrange my controller file. its look like this now. [![enter image description here][1]][1] Then when i want to use this API ``` Route::post('/jadwal-dokter', [DokterController::class, 'jadwaldokterterpilih']); ``` Im Gettin this response ``` Target class [App\Htt...
|javascript|reactjs|typescript|react-native|
Assuming your `year` column is of type `str`: df["year"] = df["year"].str.replace("(9999)$", "0101") If it is of `numeric` type df["year"] = pd.to_numeric(df["year"].astype(str).str.replace("(9999)$", "0101"), errors="coerce")
with β€žsplines=falseβ€œ, I can prevent the double arrows. how do I make sure the arrows don't cross the nodes? https://i.stack.imgur.com/dEC5m.jpg
I'm new to using Selenium, and I'm experiencing difficulty getting it to function properly. My aim is to retrieve all the bets from the homepage of Betclic. **Here is my script :** from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.support.u...
Post request response time spikes
|python|flask|post|python-requests|network-programming|
null
Here is what the screenshot above *should* look like: [![vghu][1]][1] Perhaps I should have been clearer/more concise, but the point of my question was "How can I make the controls grow to fill the available space AND right-align their text, based upon an attribute". I suspect this was caused by the Hot Reload...
I am using Spring Boot 2.7.0, and I used the Log4JDBC dependency to log queries with its parameters. I cannot see any additional logs for this dependency.Β  implementation 'ru.vasiand:spring-boot-starter-log4jdbc:1.1.0' I tried to change the version of the dependency, but it did not work.
log4jdbc does not work with spring boot 2.7.0
|java|spring-boot|log4jdbc|
null
I have implemented next-auth v5 in my next.js 14 application. I have implemented role-based authentication, I have two roles, 1. provider 2. admin Now in my application, I have two dashboards, one for the provider (/provider/dashboard) and one for the admin (/provider/dashboard). I am injecting the user role int...
Next auth (auth.js) V5 redirect according to the user role (role based redirect)
|reactjs|typescript|next.js|next-auth|next.js14|
null
I'm traying to launch a Nextflow pipeline, but it throws the following error: ERROR ~ No signature of method: groovyx.gpars.dataflow.DataflowBroadcast.into() is applicable for argument types: (Script_dd34529ec87c0dd2$_runScript_closure3) values: [Script_dd34529ec87c0dd2$_runScript_closure3@39652a30] Possible solution...
Why Nextflow pipeline don't find a file?
|nextflow|
null
Installing this nuget: https://www.nuget.org/packages/Emgu.CV.runtime.windows/ solved my problem, looks like the manual dll copying was resolved by this package.
POST requests in my app fail when using gzip compression and HTTP/2, any other requests are working fine. Requests fail with a vague error, and i am not sure how to debug it. `ERR_HTTP2_PROTOCOL_ERROR 200 (OK)` Example of failing request ``` 'https://some.domain/api/route1/route2' \ -H 'accept: applicat...
The problem is occurring because `adapter` is not set to the `RecyclerView`. You have set `stockPriceAdapter` to `stockPriceList` in `onCreate()` method, but you are re-assigning a new instance to `stockPriceAdapter` in `stockPrice()` method and calling `notifyDataSetChanged()` method on that new instance (which is ...
The following is the container ``` <div key={issue.issueId} className="issue-container" style={{ paddingBottom: "0.5rem" }}> <button className="collapsible-button btn btn-info" style={{ backgroundColor: "gray" }} onClick={() => toggleIssueContent(issue.issueId)} ...
enable overflown data visible outside the container
|javascript|html|css|bootstrap-4|overflow|
I'm trying to create a simple CRUD system using `Vercel's posgresql` database with my `nuxt3` project. At first I found it easy to get started and didn't think there would be any problems. On the system I created an API with nuxt3 features in the server directory, I deployed the template from Vercel and at first I didn...
Selenium returns an empty list
|python|selenium-webdriver|
Many CHM decompression tools can extract a single hhc file. If the file has a binary TOC, the chmls utility in the Free Pascal distribution has an extracttoc command to attempt to extract a binary toc as a hhc. The Free Pascal CHM tools unfortunately can't generate merged CHM files yet. I tried several times (both f...
Say I have this dataframe: ``` >>> import polars >>> df = polars.DataFrame(dict(j=['1.2', '1.2k', '1.2M', '-1.2B'])) >>> df shape: (4, 1) β”Œβ”€β”€β”€β”€β”€β”€β”€β” β”‚ j β”‚ β”‚ --- β”‚ β”‚ str β”‚ β•žβ•β•β•β•β•β•β•β•‘ β”‚ 1.2 β”‚ β”‚ 1.2k β”‚ β”‚ 1.2M β”‚ β”‚ -1.2B β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”˜ ``` How would I go about parsing the above to get: ``` >>...
Parsing strings with numbers and SI prefixes in polars
|python|python-polars|
Git requires that you have checked out a branch before it makes a merge commit, the only exception is a fast forward. The easiest in your situation is making a new worktree from master, then inside that worktree merging the branch, before deleting the worktree ```sh git worktree add master cd master git merge ...
|ios|iphone|bluetooth-lowenergy|bluetooth-device-discovery|
In **Antd Dropdown**, `items is an API you should pass to it your list`. So In the **first** DropDown `menu={{ items }}` is the same as `menu={{ items: items }}`, but for the **second** DropDown you have a different name `menuItems` so you should pass `menu={{ items: menuItems }}` **change :** <Dropdown ...
I'm trying to make an R shiny app where I can add GridStack widgets into a grid using Javascript, and I am following this post right [here](https://stackoverflow.com/questions/40222774/gridstack-add-new-widgets-with-content). ``` library(shinydashboard) library(shiny) library(shinyjs) library(shinyjqui) librar...
Directive Testing with injected host component
|angular|jestjs|
Update: starting from version 23.1, all GraalVM additional languages can now be easily embedded in Java, including non-Graal JDKs (but with caveats!) by using Maven artifacts published on Mavencentral. Those artifacts embed and on-demand extract the necessary files. So using GraalPy in Java is as simple as adding th...
Trying to run a command from CMD that will pull the sqlcmd and then execute my command all in one line. When I run it i get an error for EXEC SQLCMD -S Server\Instance; EXEC master..sp_addsrvrolemember @loginame = N'NT AUTHORITY\SYSTEM', @rolename = N'sysadmin' C:\Windows\System32>SQLCMD -S ENVISION\SHOPSTREA...
In my spring boot application, I utilized kafka streams. It first groups messages from a certain topic by key, windows them according to certain time interval, uses reduce to keep only the latest message for every key and processes and sends the latest message in the time window for every key to another queue at the en...
Laravel Can't find my controller when i arrage the file and folder structure on app/http/controller
|laravel|laravel-api|laravel-controller|
Having his feature in VS is great, and setting these up is also comfortable on this dialog box: [![enter image description here][1]][1] But if I want to switch from a "single startup project mode", to one of the items in the list above, I have to navigate back to this dialog. Is there any means to put a dropdown al...
I'm using a script given by adobes substance painter that is supposed to import a sbsar file and turn it into a shader node and then apply it to the object selected however when I execute the script it apply's it to all objects in the scene. I'm not knowledgeable with coding so please help. import maya.cmds as cmds ...
Nuxt3 + vercel postgressQL slow in production
|postgresql|prisma|vercel|nuxt3|
null
I need to bind a Vkontakte account to a user who is already registered and authorized. However, I can't retrieve the currently authenticated user in the handler. **Controller** ``` class VkAuthController extends Controller { public function index(Request $request) { if($request->token) { ...
Having an issue with updating nested attributes for a polymorphic association, specifically, when attempting to update nested records through a join model. The nested records can be one of a dozen different models and are known simply to the join model as "component". My error messages correctly indicate the attribu...
Rescuing validation errors from a polymorphic association
|ruby-on-rails|ruby|postgresql|
|azure|deployment|asp.net-core-mvc|environment-variables|azure-web-app-service|
Using Javascript package in R
|javascript|jquery|r|shiny|v8|
null