instruction
stringlengths
0
30k
|flutter|dart|datetime|
I need some brainstorming on this issue. So the problem is I have a list of urls and they are all news articles. I need to scrape the published date of the news articles. The problem is that only a few of them articles have a date written in date tag in html and most of them has date written in different tags. Now I am...
null
I have written a Single-threaded `Spring Batch Job` to fix data in a table column. i.e. it's a simple job with no parallel or multi-threaded steps. It simply uses a `JdbcCursorItemReader` to "stream" the data, and fix and update the row with the correct data through a writer. The main job step looks something like thi...
I've been mainly working on Angular and frontend so far and just got into the world of Java Spring to enhance my backend skills. I need to implement the WebClient to do REST calls. This is what I have so far: ...codeset/service/impl/CodesetService.java: @Component public class CodesetService { p...
How to use Mockito for WebClient get call?
|java|testing|mockito|webclient|
I'm trying to implement a slider with a tooltip showing current value. The idea is to make something like a HTML + JS <input class=range> with a value bubble (https://css-tricks.com/value-bubbles-for-range-inputs/). Both ideas I've come with so far are not ideal. XAML ``` <Slider ...
I have a large JavaScript (TypeScript) monorepo with many subpackages: ```lang-none root/ package.json packages/ packageA/ package.json packageB/ package.json ... packageZ/ package.json ``` Libraries that I share across all subpackages are defined in `root/package....
I am getting the following error while running this test case in teamcity. Configuration error: Could not locate module n/ui/widgets/toolkit/RichTextEditor mapped as: /data/TeamCity/psgdevops-tcagentpool-prod-dusa1-016-psgci-tc-agent01/work/f7c28bd4d45f9aa6/BUNDLE_SOURCE/node_modules/ts-uif-types/n/ui/$1. Pl...
|python|selenium-webdriver|web-scraping|
The way i would do it is: ``` WITH raw AS ( SELECT A.ID as Identification, B.Name as Family_name, B.Firstname as first_name, B.Address as adress_1 FROM A LEFT JOIN B ON B.ID = A.ID UNION SELECT C.ID as Identification, D.Name as Family_name, D.Firstname as first_name, D.Addre...
Do the following to get the pid, say 1234, of tomcat7 ps aux |grep tomcat7 and then do `cat /proc/1234/limits` to read a line like the following `Max open files 16384 16384 files` These are the maximum number of open files that are allowed by Tomcat. To increase it, follow the instructions below ...
For me, it didn't work because I initially attempted to call it from outside the project directory. When I copied the absolute path to my project and navigated to it with '`cd path`', it finally worked.
This is what i came up with, but it doesn't work perfectly (it's more likely that some of the results are correct by accident): ``` dd <- c ("2day-2023-1-5--20-0.csv", "1day-2023-2-5--20-0.csv", "3day-2021-1-5--20-0.csv") sub("day-.(.*)--.*", "\\1", dd) ``` Expected output would be ``` "2023-1-5" "2023-2-5"...
How to keep the middle part from a text string using gsub / sub?
|r|regex|
I'm exporting multiple sheets to PDF with the following code: ``` ThisWorkbook.Sheets(Array("3rd party", "Dashboard", "BS_3rd")).Select ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _ fileName:=PDF_FileName, Quality:=xlQualityStandard, _ IncludeDocProperties:=True, IgnorePrintAreas:...
`--test_summary=short` prints the name of every test target and its status at the end of the Bazel invocation. `short` is the default value of `--test_summary`, though, so maybe you're expecting something else?
|remix.run|
I have 2 different queue functions, they both update different properties of the same database entity (using unit of work pattern). Each function has his own queue and poison queue. The message of each queue contains the same `entityId`. Both functions need to be executed in parallel. I would like to execute a ho...
Jest configuration error while running test case in teamcity
|unit-testing|jestjs|ts-jest|
null
```python def generate_sequence(sequence1, sequence2, sequence3): new_sequence = [] # Генерираме втората поредица for i in range(len(sequence1)): if i == 0: new_sequence.append(sequence1[i]) else: new_sequence.append(sequence1[i] + sequence2[i - 1]) #...
null
No, with an array of pointers, each string is allocated only the number of bytes needed for its actual characters plus the trailing null. The tradeoff, though, is that the pointers themselves occupy memory; typically 8 bytes on a modern 64-bit computer. So ``` char* foo[] = { "bar", "foobar"}; ``` would nor...
I was trying to change the confirmation email template of the self-hosted supabase on my local machine but was not able to. I created an email template and made it available at `http://localhost:3000/templates/email/confirm.html` and added the below config on the .env file `MAILER_TEMPLATES_CONFIRMATION="http://loc...
not able to change the confirmation email template in Self hosted supabase
|supabase|
After hours of research, I found something in a [post][1]. It seems that in esp32 we can't use float in the interupt,because it will use the FPU , which is not allow to use inside an interrupt handler. After remove float in my interrupt handler,the code finally work. [1]: https://esp32.com/viewtopic.php?t...
I finally was able to fix errors from DigitalOcean own script. Here is **working** curl: space="nmmm-test" REGION="ams3" STORAGETYPE="STANDARD" # Storage type, can be STANDARD, REDUCED_REDUNDANCY, etc. KEY="xxxx" SECRET="xxxxxx" path="/home/nmmm/" file="despicable-me-2-mini...
Is there any catch in Reading and Updating to the same Oracle table in Single Threaded Spring batch job?
|spring-batch|
My goal is to get a better understanding of format string exploits.<br> While looking at different challenges, I always run into the same issue.<br> The information given below were obtained while solving the retired "Nightmare" pwn challenge from hackthebox, but I get the issue in other challenges as well. This exa...
Format String Exploitation - Unkown differences in leaked LIBC addresses
|glibc|exploit|
Consider windowing operations: https://pandas.pydata.org/pandas-docs/stable/user_guide/window.html import pandas as pd import numpy as np # for testing, have generated a 50 million row dataframe with random numbers in the range 500 to 1500 l1 = np.round(500 + 1000 * np.random.rand(5000000,1)...
I can't believe it, I think I solved it! Though feels more like winning a lottery of accidentally finding what works. Use these styles for `body`: <!-- language: lang-css --> body { display: grid; min-height: 100vh; } I fiddled a lot with setting body to `flex`, but it required updating...
Both `TouchBehavior.CommandParameter` and `TouchBehavior.LongPressCommandParameter` are always passed as `null` to `Command` and `LongPressCommand`
|c#|.net|xaml|maui|maui-community-toolkit|
## Explanation In .NET MAUI, you are required to manually set the `BindingContext` for every `Behavior`. In other words, Behaviors do not inherit the `BindingContext` of the `VisualElement` to which they are attached. Source: https://learn.microsoft.com/dotnet/maui/fundamentals/behaviors?view=net-maui-8.0#create...
Why do I get an scientific notation where it is not necessary?
I am developing a project "Expense Tracker" .This is my second project, Im Stuck with this error. HTTP Status 500 – Internal Server Error Type Exception Report Message Unable to compile class for JSP: Description The server encountered an unexpected condition that prevented it from fulfilling the request. ``...
I discovered an awesome Java project that visually demonstrates Dijkstra's Algorithm. Now, I'm curious if there are any tools in Windows Forms or NuGet packages that allow me to create a grid, similar to the image below. This grid would change the color of each pixel as the algorithm runs, providing a visual representa...
Are there any tools or NuGet packages available for C# (Windows Forms) that assist in visualizing Dijkstra's algorithm?
|c#|grid|window|dijkstra|graph-visualization|
null
I'm trying to use this model after fetching it from GitHub and making some modifications. I tried to define the model as shown below and attempted to deepcopy it, but encountered the mentioned error. ``` import copy model = ViViTBackbone( t=24, h=112, w=112, patch_t=4, patch_h=7, pa...
How should I solve Deepcopy
|python|
null
Use handle_parsing_errors=True during agent initialization. The output parsing error occurs when the LLM's generated response doesn't match the expected format. This can happen no matter what callback you choose. By setting handle_parsing_errors=True, you're telling the agent to keep regenerate the response until it...
I am running a website build with next.js using command npm run build. And that build folder is being served by a simple app.js file and run by command node app.js as my server only supports nodejs scripts. Below is the app.js file. Actually, preview for the website is not loading however all the links are there on th...
I am trying to load my app for packaging but the native electron reload function used in the Menu "Window" - "Reload" is loading the file: "file:///" electron: Failed to load URL: file:/// with error: ERR_FILE_NOT_FOUND (Use `Electron --trace-warnings ...` to show where the warning was created) I am loading the ...
Electron loads a wrong file when using menu Window "Reload" - electron: Failed to load URL: file:///
|electron|
null
This code iterates through an excel spreadsheet and finds a specific column where energy is zero, then calculates the duration of that zero-energy-value period by calculating difference between first & last appearance of the continuous zero values. The problem I'm experiencing is: when there are multiple back-to-bac...
I would like to write a Insert/Update query. I need to update tblnames2 based on tblenames3 and tblnames2 itself then insert the new rows where target name like inc table in target table field in tblnames1 based on tblnames2 by matching partial filename pattern. **tblNames1**: |application | job_name |des...
Probably the best way to do this is to try to convert the name of all the images you created to a UIImage, if you can all the Assets are imported correctly. I added cat 1, 2 and 3 in assets and made this code for testing if they exist: let testBundle = Bundle(for: pergunta_stackTests.self) let ca...
I'm working in an .iypnb with pyspark and pandas. I'd like to be able to take my dataset (df) and loop through various columns, outputting a freq table of the values within that column. Doing so with .show() is easy enough: ``` columz = ['col1', 'col2', etc] for c in columz: df.groupBy(c).count().or...
I try to develop a bloc WordPress using webpack. In the save.js file, I try to get the with of the user’s screen to choose the content of the return I used screen.widh or window.innerWidth. Both return a value without any link with the different devices I tried also to use hooks that give the width when resize. ...
Screen.width property return always the same value that is not the width of the screen
|reactjs|jsx|
null
> Or some kind of **direct indexing** and have a map with possibly **many empty entries** in it? After researching the topic - this seems to have been the case before the new **Virtual Stub Dispatch** mechanism was introduced ([BookOftheRuntime link][1]) One of the reasons mentioned -> [Working Set Reduction][2] ...
|.net|xamarin.forms|maui|
Disable "show live issues" as mentioned above, attached is a screen shot [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/nqKZX.png
This worked for me (Python 3.8.6, a module needed imports of `grequests` and `requests`) ([source][1]). This should precede all other imports: from gevent import monkey def stub(*args, **kwargs): # pylint: disable=unused-argument pass monkey.patch_all = stub import grequests [1]: ...
You don't check anything after first while loop, in fact you could just skip it and get the same result, it is doing absolutely nothing that the next while isn't doing anyway. The second while loop leads to discarding all values not in a 5s range, so it is impossible to check the 30s condition. Fixed code (also usin...
In swift it could be like this. Works on iOS 12 and above private func setupPlayInBackground() { NotificationCenter.default.addObserver(forName: UIApplication.didEnterBackgroundNotification, object: nil, queue: .main, using: { [weak self] _ in self?.playerLayer?.player = nil }) ...
I've been mainly working on Angular and frontend so far and just got into the world of Java Spring to enhance my backend skills. I need to implement the WebClient to do REST calls and was able to do the implementation but stuck on the test class. This is what I have so far: ...codeset/service/impl/CodesetService.jav...
<html> <title> test </title> <head> <style> .header { position: absolute; font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; ...
You need to build your project first, and then run the `.js` version of your seed file. Here is an example of how you might set it up with scripts in your `package.json`: ``` "scripts": { "dev": "nodemon --exec ts-node './src/server.ts'", "build": "rm -rf dist/ && tsc --project './tsconfig.build.json'",...
I'm trying to derive the zerocopy as_bytes() function on the struct Cycle below. ```rust= #![cfg_attr(not(test), no_std)] extern crate alloc; use alloc::vec::Vec; use risc0_zkp::core::digest::Digest; use serde::{Deserialize, Serialize}; use zerocopy::AsBytes; pub type Address = [u8; 20]; #[derive(As...
I have changed my code with local debug not showing any errors. The problem I have is that I'm struggling to work out how to show the selected spinner text in the textview (txtMarquee) which is a scrolling text. I do not know what code to use I am quiet new and still watching many tutorials and not having any luck....
I have a file "commands.txt" with some commands in it for example: pwd wc -l commands.txt And when I run the following command, its not executing the commands. export IFS=$'\n' # I did this so that I could avoid breaking up the command line from the file for i in `cat commands.txt`; do ...
Customize prompt llamaindex
After installing the Hack Nerd Font, I managed to resolve the issue by adjusting the terminal settings in Visual Studio. The key step involves specifying the font to be used by the **terminal**. Here's how you can do the same: 1. Navigate to `Tools` > `Options`. 2. Select the `Terminal` section. 3. Under `Font an...
The access pattern argument **eAccessRanged2D** is causing the image to be "scaled down" from 1920 x 1080 to roughly around 960 x 540. The code is written for Blinkscript Nuke application. All the code is doing is passing src to dst without any modification? kernel Halation_kernel : ImageComputationKernel<ePixel...
I am getting below error in build creation on expo.Please help here. "Build failed: Your build exceeded the maximum build time of 120 minutes. On expo getting same issue" { "name": "grow-girl-app", "version": "1.0.0", "main": "index.js", "scripts": { "eas:submit:all:production": "eas build --profil...
Build failed: Your build exceed the maximum build time of 120 minutes
|stack-overflow|
null
I have multiple scenes in my project which ill call A/B/C. A is the main scene where i have multiple UI functionalities some of which is point/click, others are a scrollview with a viewport all of which work as expected. In scene B i have large sets of scenery as well as unitys third person movement controller to mo...
> When I try to make request with idZamestnanca, I get a status 404. There may two major reasons for your 404 you are getting now. When controller hits but returns with 404: [![enter image description here][1]][1] Let's imagine this is your table. You would like to search by `idZamestnanca` from this table...
Unable to derive zerocopy::AsBytes on Vec<T> for struct T
|rust|vector|rust-no-std|
null
I have set up a Datastream service, in order to replicate data from Cloud SQL (MySQL) to BigQuery. Everything is set up correctly, connection works. But the weird thing is that only tables < 10mb size are replicated without issues. The larger tables (100+ MB) all fail. When checking the error status, it only say...
Google Datastream errors on larger MySQL tables
|mysql|google-cloud-platform|google-bigquery|data-stream|cloudsql|
How can I display the lowest price from 30 days on my WIX Page? Is it possible to make that using any App or something? Or have I use Velo API? I tried to search and code by VELO but with 0 progress, could someone help me?
How can I display the lowest price from 30 days on my WIX Page?
|wix|
null
I am trying to populate a listbox with data I am reading from a text file, but have had no luck. I tried several ways to do SendMessage (Please see below) but get the same "invalid cast type error. " ListBox: CreateWindow("listbox", NULL, WS_CHILD | WS_VISIBLE | WS_VSCROLL| LBS_NOTIFY, 20...
C++ populate listbox with SendMeassage
|c++|listbox|sendmessage|