instruction
stringlengths
0
30k
|excel|vba|outlook|hyperlink|
Note I have my repository `brambor-fork` which is a fork of the official repo `origin` 1. I got this whenever `git fetch`: ```cmd C:\GitHub\Cataclysm-DDA>git fetch brambor-fork Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. Enumeratin...
|architecture|local-storage|
|javascript|node.js|
|python|html|bootstrap-4|
**short answer:** yes, if it's there and active it will be rendered **long answer:** if there is a material that can be transparent unity don't know if it's 0% transparent or 80% or 100% it will be rendered, if it's completely transparent unity HAVE to render it to know that, it means when unity understand it that i...
|github|netbeans|repository|git-repo|
New to coding and getting this error message "Cannot convert value of type 'Tab.Type' to expected argument type 'Binding<Tab>'" What can I change to fix this? here's my code: `` enum Tab: String, CaseIterable{ case house case person case message case gearshape } struct Conten...
How to correct cannot covert value error?
|swiftui|
null
Im creating my own version of a `MarkDown` render. My goal is to read a string or file line by line then return the `MD` rendered as `HTML`. The problem im facing is my return and line by line functionaility is not-returning what I want and I dont know why. Ive tried debugging but everything seemed fine. Ive also trie...
CGAL K-D trees - How do I associate information to a point when range searching?
|c++|boost|cgal|
null
How to route traffic between overlapping subnets on GCP from different projects/VPCs
You can define those links as `inline-block`s, then they won't be split/broken like regular text. For this, add the following rule: a.work, a.podcast, a.speak { display: inline-block; } <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-css --> ...
im working on a custom "Library" of sorts in vba, because otherwise i would program it over and over again. For example an Errorhandler or standard stuff like swap, sort or pathfinding algorithms. For better highlighting i do the writing in VSCode and just copy paste it into VBA. After some time this became tedious so ...
Organize files in folders corresponding to subs in a module in vba
on my wordpress site using an external cookie service, they provide me with a script to insert into the head tag ``` <script src='https://acconsento.click/script.js' id='acconsento-script' data-key='dBLtIvrsCoonhdR1zC1boEzG4YVBO1ebja0gFyOW'></script> ``` The problem is that a popup should appear to accept cooki...
Failed to load resource: the server responded with a status of 403 () - SCRIPT - WordPress
|javascript|ajax|wordpress|api|
null
The problem of not having "Search State Persistence" arises because adminUserList.php is apparently initially posted to thus you use $_POST to get the params, but then your generated pagination are just anchor tags, where you'd need to use $_GET to get at the params, which you dont have. There are at least two ways...
Here's a fully reproducible PoC of the problem, posted on Compiler Explorer: https://godbolt.org/z/x78Ksro88. I'm encountering the following problem: the compiler is reporting an error because it cannot convert argument 2 (in the `search_in` function) from type `T` to the actual type in a situation where `T` represe...
Before the `dir` change is made, get all the `.drawer-side` elements and hide them from view: ```js const drawers = document.querySelectorAll('.drawer-side'); drawers.forEach(drawer => { drawer.style.display = 'none'; }); ``` Make the `dir` change, then wait one render frame before resetting the style. Thi...
I have this markup: ``` <div className="wrapper w-full h-full flex flex-col justify-between my-7"> {/*first*/} <div className="w-full h-full min-h-0 outline-dotted outline-green-300 outline-2 p-7 bg-black overflow-y-auto whitespace-break-spaces text-nowrap"> {data.text} </div> {/*se...
|sql|mysql|
Pls try. ```vb Option Explicit Sub AlphaCites() Application.ScreenUpdating = False Dim ArrTxt() As String, i As Long, j As Long Dim aTxt As Variant With ActiveDocument.Content With .Find .ClearFormatting .Text = "\([!\(]@\)" .Format = False ...
If you're writing something that does "the same thing, with just one thing changing at each step", that's a loop. You don't use separate `if` statements. Not even when, as you say, "you're being lazy": being lazy is an _excellent_ trait to have when you're a programmer, because it means you want to do as little work as...
Add them to `config.json`, then append the `.ts` extension after every import. ```json { "noEmit": true, "allowImportingTsExtensions": true } ```
how i can move element of dynamic vector in argument of function push_back for dynamic vector. Probably, i’ve said something and it isn’t right. Sorry, but i don't know English so good… ``` vector<int> *ans = new vector<int>(); vector<int> *x = new vector<int>(); ans->push_back(x[i]); ```
On the app router, you should use version 5 of `next auth` which is currently in beta. I will show you step-by-step to how migrate your code to V5. ##### Step 1: Update next-auth dependency ```bash npm install next-auth@5.0.0-beta.16 ``` ##### Step 2: Change the code in the `route.js` file ###### util/aut...
|excel|vba|
null
{"OriginalQuestionIds":[4260280],"Voters":[{"Id":523612,"DisplayName":"Karl Knechtel","BindingReason":{"GoldTagBadge":"python"}}]}
If java code doesn't mark a parameter as Nullable or NotNull, then it has a so called platform type in kotlin, meaning we can use it as both Nullable and Not Nullable, putting or omitting a question mark at the end of the parameter type respectively. For example, i have a java class: ``` public class Main{ ...
{"Voters":[{"Id":893254,"DisplayName":"FreelanceConsultant"},{"Id":2511795,"DisplayName":"0andriy"},{"Id":9214357,"DisplayName":"Zephyr"}],"SiteSpecificCloseReasonIds":[18]}
I was able to fix this by deleting cookies between page loads: ```r url <- "https://investors.alvotech.com/news-events/news-releases?page=1" remDr$navigate(url) remDr$deleteAllCookies() url <- "https://investors.alvotech.com/news-events/news-releases?page=2" remDr$navigate(url) ``` I have no idea why I ...
This is similar to @Arnav solution, but cleaned a bit. The idea is to iterate over array preparing resulting array `res` and test each element. If item is not found by `id` in resulting array - we add it. If item with the same `id` already in resulting array we then check if it has greater `quantity`, if so - we repla...
First of all [`EF.Functions.Like`][1] accepts only strings for the `matchExpression` parameter so you can't work with anything but that, so your method signature should reflect that: ``` public static IQueryable<TSource> WhereLike<TSource>( this IQueryable<TSource> source, Expression<Func<TSource, string...
I need to write a function that sorts this array based on dialog_node key and previous_sibling keys. The previous_sibling of the next object matches the dialog_node value of the previous object in the array. ``` export function orderDialogNodes(nodes) { // Create a mapping of dialog_node to its corresponding i...
I have HTML table with following structure: ``` <table> <thead>..</thead> <tbody> <tr> <td>some</td> <td>content</td> <td>etc</td> </tr> <tr class="certain"> <td><div class="that-one"></div>some</td> <td>content</td> <td>etc</td> </tr> several other rows.. <tbody> </table> ``` And I am tryi...
I have an element in my HTML like this (inspiration from [this blog](https://www.digitalocean.com/community/tutorials/angular-viewchild-access-component)). While the user types, I'm showing successive filtrations in a list to pick from. Once the user clicks on that component, I want to update the value typed in the...
``` <!DOCTYPE html> <html> <head> <title>Page Title</title> <!--<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">--> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgH...
I have a program that gets requests (an array of strings of size `n`) from different domains (each input value is called as a domain) for each second `i`. Within 5 seconds for a given domain the program should accept at most 2 successful requests. Also at most 5 successful requests in 30 seconds. For each req...
Cannot convert template argument to the actual type being passed
|c++|templates|
Thank you for your answer. I investigated and it came from the linear network (lpp2). I cleaned - the raw data (topology and short segments), - rebuilt ways (using Morpheo plug-in in QGIS) - mafa_geom_to_segment: https://jgravier.github.io/mafa/reference/mafa_geom_to_segment.html - st_cast function Then it work...
I want to use Clean Architecture for a simple game in Flutter. The game consists of a timer and a few fields that can be clicked. I am trying to keep the game logic inside the domain layer. So far I have the two UseCases `StartGameUseCase` and `SelectFieldUseCase`. The `StartGameUseCase` has a timer property ...
Flutter Clean Architecture communication between Use Cases and Blocs
|flutter|dart|bloc|clean-architecture|
null
OK, turns out to have a simple solution: I created an additional function that is wrapped with the cache decorator, and changed the handle function to call it: ``` create or replace function get_key(which varchar) returns varchar language python runtime_version = '3.11' packages = ('snowflake-snowpark-python') h...
I was trying to code a bot with Discord.JS V14 since i always coded with the v12 and i watched the documentation and a few tutorials and i watched two. One for the clear command and the other for the ban and unban command, the clear command is showing and its totally functional when i type "/" and clear but when i wann...
My unban and ban commands arent showing when i put the slash
|node.js|discord|discord.js|command|
null
Have you ever tried [json-server][1]? Usually I mock compatible data and I work with this for mvps Put the following into the db.json file `db.json` ```json { "users":[ { "id":1, "name":"John Doe", "email":"john.doe@example.com", "age":25 }, { ...
I am using Polars (`{ version = "0.38.3", features = ["lazy", "streaming", "parquet", "fmt", "polars-io", "json"] }`) with Rust (`v1.77.0`) to process a large dataset (larger than available memory) inside a Docker container. The Docker container's memory is intentionally limited to 6GB using `--memory=6gb` and `--shm-...
Polars with Rust: Out of Memory Error when Processing Large Dataset in Docker Using with_streaming(true)
|docker|rust|memory-management|parquet|rust-polars|
I've been searching for days now but cannot find what's wrong. I'm trying to update a user after creating a username and password. Backend updating user ``` app.put('/users/:userId', async (req, res) => { const client = new MongoClient(uri) const formData = req.body; try { await client.co...
I have a situation where there are 5 csv files open between 2 different Python programs running on a single computer. Lines of data are written to the csv files using using `writer.writerow(self.ROW_HEADER)`. Each csv file had approximately 1 column of data saved every second. The programs were set to run for weeks on ...
Writing data to csv files using csvwriter crashed computer over weekend
|python|csv|memory|
You can change: class ImageForm(forms.ModelForm): class Meta: model = Image fields = ['photo', ] widgets = { 'photo': forms.ClearableFileInput(attrs={'multiple': True}) } to: class ImageForm(forms.ModelForm): class...
Add this conditional JavaScript to your main page: ```javascript const params = new URLSearchParams(window.location.search) if (params.get('stripe_portal') === "success") { // track conversion } ```
I don't know if you found a solution to you problem, but what you need to do is to configure `CosmosClient` to use `Gateway` mode instead of the default `Direct` mode, Testcontainers Cosmos DB module needs this : var cosmosClientOptions = new CosmosClientOptions { ConnectionMode = ConnectionMode.Gatew...
I use a workspace into my app "workspaces": [ "firstapp/web", "secondapp" ] Into second app, into package.json I get into dependencies: "anotherapp": "https://github.com/me/anotherapp.git", From root I run `yarn workspaces foreach -Apt install` everething is ok I run `...
**2024 Updated version on 0.73 - TurboModules - New Architecture enabled** const SourceCode = TurboModuleRegistry.getEnforcing("SourceCode"); const scriptURL = SourceCode.getConstants().scriptURL; const address = scriptURL.split('://')[1].split('/')[0]; const hostname = address.split(':')[0]; ...
Deleted because OP changed the question significantly hours after posting. It's unclear what OP is doing. **Remove Transforms from Parent Element** As @Paulie_D commented: > A position: fixed element is always positioned in relation to the body > but you have to specify where it is positioned. However, OP ...
|excel|vba|outlook|
|javascript|ajax|wordpress|
As mentioned in the comments, it's not advisable to keep dates in a text format. Instead, always use a date or timestamp type. The problem with your query is that you're attempting to concatenate strings using the operator `+`, when you should be using the `CONCAT()` function instead : WHERE month.ty LIKE CO...
`<script> function startTimer(duration, display) { var timer = duration, minutes, seconds; var end =setInterval(function () { minutes = parseInt(timer / 60, 10) seconds = parseInt(timer % 60, 10); minutes = minutes < 10 ? "0" + minutes : minutes; ...
On the server side, it returns undefined but on the client side, logs the values no problem
|javascript|reactjs|mongodb|jsx|crud|
null
New to coding and getting this error message: > "Cannot convert value of type 'Tab.Type' to expected argument type 'Binding<Tab>'" What can I change to fix this? Here's my code: ``` enum Tab: String, CaseIterable{ case house case person case message case gearshape } struct Content...
`helpText` is only a wrapper for `span(class = "help-block", ...` and `.help-block` has a grey color which is responsible for the low "brightness". Hence, you just can add a `style` argument and apply arbitrary `CSS` in order to display the text as you wish, e.g., with black color: ``` helpText( "$$\\log_{...
The AI of ChatGPT has not learned from code written by the best batch file code writers. The produced code examples are not working for that reason for your task and are all not good for any user input string validation done with the *Windows Command Processor* `cmd.exe` during processing of a batch file. Here is a ...
|c#|asp.net|api|asp.net-core|
To verify if a cookie was set, pass a callback to the setCookie(3rd argument). Create a subclass of CefSetCookieCallback class MyCookieCallback: public CefSetCookieCallback { void OnComplete(bool success) { //success will tell if you cookie was set or not. } } Also try a...
Regex can be used here, but it is way too heavy and expensive for such a simple check. We can use discrete statements to check for your requirements. It will also make the code more readable and the messages would be specific to the actual issue of that particular input. ```kotlin init { //check that the i...
Just for record, because I had similiar problem, and maybe this answer will help someone: in my case I was using library which was using `.js` files and I didn't had such extension in webpack resolve extensions. Adding proper extension fixed problem: ```js module.exports = { // ... resolve: { extensions:...
null
Instead of "undoing" all of your previous style changes, you can duplicate a cell style (that you didn't change) to your desired reset cell/range. > @param string $range Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") ```php function resetStyle(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $workshee...
I cannot get this to redirect. The timer works but it doesn't go anywhere. I need this to redirect to another webpage
|timer|http-redirect|
null
This would best be accomplished in the following manner: - Set the background color of the body to what you want the bottom half to be. - Set the background color of the element and give it the clip-path. This will ensure you always have the nice separation. <!-- begin snippet: js hide: false conso...
I want to implement an actor which uses "legacy" components which are classes using a dispatch queue for calling callbacks. These "legacy" components are actually classes from Apples NWNetwork framework. These classes require a dispatch queue and callback functions to be specified. The callback functions will be ca...
> Will this impact the integrity of data? **No**. This exception was triggered in a `ReadStage` thread - This type of thread is responsible for local reads, which don't modify the dataset in any way. > And is there something I can do to avoid the error e.g. resize some param on Cassandra.yaml? **Yes**. I woul...
Your posted programs are defining the following 4 distinct `int` variables: 1. The variable with the name `first`. 2. The variable with the name `second`. 3. The variable with the name `third` in the outer [scope](https://en.cppreference.com/w/c/language/scope). 4. The variable with the name `third` in the inner ...
The simplest ans->push_back(x->at(i)); But I don't understand why you call that "move element." BTW `vector<int>*` is nonsense. `x` manages a dynamically allocated memory and `vector<int>*` never looks good.
{"Voters":[{"Id":14098260,"DisplayName":"Alexander Nenashev"},{"Id":5459839,"DisplayName":"trincot"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[11]}
Why doesn't the PHP info webpage appear when testing PHP 8.1, installed during the LAMP setup on Ubuntu 22.04? Could someone provide a command-line add-on with an explanation? Additionally, could you give details on PHP configuration, such as php.ini, and some common errors encountered during the LAMP stack setup wi...
Setting up LAMP on Ubuntu 22.04: PHP info not displaying in browser
Trying to upload large files using multipart upload where I generate pre-signed URL for each chunk and the push files to S3. When I upload large files for some of the chunks I'm getting '**net::ERR_CONNECTION_RESET**' intermittently and the upload is getting failed. Is there any way to over come this ? or Do I need to ...