October 22, 2024
Chicago 12, Melborne City, USA
python

Github Actions cannot find my poetry-installed dev dependencies and therefore cannot find the aws_cdk module when trying to call cdk deploy

I have a mangum python service with a cdk stack that I can deploy on my local box just fine. Here are my: pyproject.toml [tool.poetry] name = "dics-core-data-service" version = "0.1.0" description = "" authors = ["Clayton <clayton.stetz@gmail.com>"] readme = "README.md" package-mode = false [tool.poetry.dependencies] python = "^3.12" fastapi = "^0.115.0" uvicorn = "^0.31.0" python-dotenv

Read More
javascript

Vercel Auto redirect error after deployment

so i have this application made with next js 14 that i deployed on vercel but i’m facing a problem that i can’t understand from where it comes , the build went well and everything works greate without any error when i use vercel random generated websites but once i enter to the same project

Read More
pdf

Read numbers under barcode (not barcode stripes itself) in .NET 8

I need help about reading numbers under barcode (not stripes) from PDF file. My idea was to convert page to image and then read it. This is example of barcode that is located in the top right part of PDF document. (https://i.sstatic.net/jtJl89rF.png) I tried ZXing to try and read numbers under barcode, from image at

Read More
templates

AVEVA System Platform : OCMC Log Error 80040e14 – Create instance fail to save the object one or more related objects may be in use

AVEVA System Platform 2023 – Log Error 80040e14 Create instance fail to save the object one or more related objects may be in use You need to sign in to view this answers

Read More
security

How to Bypass Web Restrictions to Discover Flags in CTF Challenges?

So this is the URL of the website (https://06bbe5b3978ba303a3f4fa5e605b8fe1-infosec-blog.web.cityinthe.cloud/) and I kinda tried everything without external tools but cannot find the flag. There’s is a hint saying that "The author lays out some very interesting points about how to roll the crypto, people often reuse code, code that code snippet include important information?" enter image

Read More
SQL

Subquery of select * vs Subquery of select fields

Need help in understanding which of the following snowflake SQL is faster and why. provided tablea has 50 columns. Or do You think both are equally efficient. select col1, col2 from (select * from tablea /*AdditionalLogc*/)) --Vs select col1, col2 from (select col1, col2 from tablea /*AdditionalLogc*/)) You need to sign in to view this

Read More
CSS

How can I conditionally render AG Grid sidebar without forcing the sidebar to close?

I am trying to make some customization to an AG Grid component in React. I want to change the appearance of the filter tool panel based on whether or not any filters are active. I wrote the following code in my AG Grid component: const filtersApplied = gridRef?.current?.isAnyFilterPresent(); const sideBar = useMemo(() => { return

Read More
C++

ALSA snd_device_name_hint memory leak?

Is it ok that the following code: #include <alsa/asoundlib.h> int main(void) { void **hints; if (snd_device_name_hint(-1, "pcm", &hints) < 0) { return -1; } if (snd_device_name_free_hint(hints) < 0) { return -1; } if (snd_config_update_free_global() < 0) { return -1; } printf("Ok"); return 0; } exits with 0 and makes Valgrind return "still reachable: 65,368 bytes

Read More
jQuery

How to find the following HTML Element

I have a menu with submenu with a structure like this: <ul> <li> <a class="navigation-item">Menu Item 1</a> <a class="submenu-toggle" /> <ul class="submenu"> <li> <a class="navigation-item">Submenu Item 1</a> </li> </ul> </li> </ul> I want to add a class to submenu-toggle if Submenu Item 1 is selected. How can I find the submenu-toggle in this case? closest('li')

Read More
HTML

How do I resize a page to fit an iframe?

So I’m trying to make a website with html/css. There’s sidebars on the website I want to remain universal across pages so I don’t need to update every page whenever I change the sidebars, so I used iframe to import the sidebars on the pages. However, when the sidebars are taller than the page itself

Read More