webresourcesdepot.com

VN:F [1.9.22_1171]
Rating: 7.0/10 (1 vote cast)

Free web resources everyday

ReadWriteWeb.com

VN:F [1.9.22_1171]
Rating: 7.0/10 (1 vote cast)

Web Apps, Web Technology Trends, Social Networking and Social Media

Nifty Corners Cube

VN:F [1.9.22_1171]
Rating: 7.0/10 (1 vote cast)

Rounded corners the javascript way
Nifty Corners Cube

StackOverflow.com

VN:F [1.9.22_1171]
Rating: 9.4/10 (10 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

Simplify Core Data fetch request using async/await while respecting thread confinement rules

5 July 2025 @ 4:27 pm

I understand managed objects are not thread safe with Core Data, so if you need to access their properties on a different thread you need to get a new managed object via the objectID from the appropriate context. I often need to access the objects on the main thread, but don't want to query for objects on the main thread and block UI work. With that understanding, I came up with the following code to perform this dance fetching without blocking the main thread and then working with the objects back on the main thread. I follow this pattern in a few places in my app, and while this approach seems to work and respect Core Data rules for thread confinement, it seems overly complicated. Is there a way this can be simplified and perhaps better utilize structured concurrency? @MainActor func allEntities() async throws -> [CarEntity] { // This function needs me to return an array of CarEntity, I need to create them from Car objects which should be

How can I use the -webkit-text-stroke setting similarly to the stroke-* utility?

5 July 2025 @ 4:20 pm

In TailwindCSS there's a stroke-* utility that allows me to set both width and color. For colors, it can use the color palette. https://tailwindcss.com/docs/stroke <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> <p class=" m-4 flex items-baseline gap-4 text-6xl stroke-sky-500 stroke-4 "> <svg class="h-10" viewBox="0 0 48 40" fill="none"> <path d="M1 13C1 10.2386 3.23858 8 6 8H13.4914C14.3844 8 15.1691 7.40805 15.4144 6.54944L16.5856 2.45056C16.8309 1.59196 17.6156 1 18.5086 1H29.4914C30.3844 1 31.1691 1.59195 31.4144 2.45056L32.5856 6

Syscalls required by glibc calls

5 July 2025 @ 4:18 pm

Are there any lists compiled that provide a list of linux system calls used per function in a standard glibc build? For example, free() requires mmap, munmap, mprotect, prlimit64, and brk. If necessary I can figure this out by grepping the source code or some strace wizardry, but I don't want to reinvent the wheel. I've been searching the web for about a week with no avail, mostly just turning up info on system call wrappers.

Can't call struct function outputs in main function in C

5 July 2025 @ 4:13 pm

I have a struct function which scans in coordinates, but when I call the function in my main function it doesn't seem to carry over any of the values and I get an error for 'use of undeclared identifier 'pos'. How can I fix this? struct coords { int x; int y; }; struct coords scan_coords() { struct coords pos; scanf("%d", &pos.x); scanf("%d", &pos.y); return pos; } int main(void) { scan_coords(); printf("%d %d", pos.x, pos.y); } I have tried declaring struct coords pos; at the beginning of my main function but it still does not work.

cgroup issue when starting YugabyteDB in EKS cluster

5 July 2025 @ 4:11 pm

I successfully made a trial installation of yugabytedb on an AKS cluster, using the yugabyte-k8s-operator, following guidance on https://github.com/yugabyte/yugabyte-k8s-operator/blob/main/README.md. The cluster used D4as_v5(4vCPU/16GiB) nodes and Kubernetes version was 1.30.10. Now I tried to install the same on AKS 3-node cluster each node D16as_v5(16vCPU/64GiB) and it is failing. Three Containers (yb-cleanup, yugabyted-ui, yb-controller) in the ybyugabyte-tserver pod started successfully but yb-tserver container did not start. Similarly, two containers (yb-cleanup, yugabyted-ui) in the ybyugabyte-master pod started successfully but yb-master container did not start. The Error in both cases is: message: >- Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create faile

How do I connect an existing phone number to create an AI-based response application in Java without using a service like Twilio

5 July 2025 @ 4:09 pm

I am creating a ChatBot application in Java that will do following: A) Receives a phone call on an existing phone number B) Convert the voice to text and my ChatBot reads the question and gives the answer (I have written the code in java that does Speech to Text) C) The answer gets converted into AI voice response and relays to customer on the same call (I am about to complete the code that will convert the text to speech) How do I connect to my phone number to receive and send reply? (I don't want to use the services like Twilio since the charges can be a lot and I don't want to port my number).

Why does Angular 19 CSP still blocks a Image URL even though it is allowed?

5 July 2025 @ 4:04 pm

I’m working on an Angular 19 project, and I need to display a user-supplied image from Imgur. My index.html from the generated Angular project includes this Content Security Policy meta tag: <meta http-equiv="Content-Security-Policy" content=" default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src http://localhost:4200 https://i.imgur.com https://cdn.discordapp.com data:; font-src 'self' data:; connect-src 'self' https://i.imgur.com https://cdn.discordapp.com https://api.clank.dev http://localhost:8081; "> However, loading an Imgur image URL still fails - The Chrome Console says the following: Refused to load the image 'https://i.imgur.com/8eajG1v.gif' because it violates the following Content Security Policy directive: "img-src 'self' data: https://cdn.discorda

Why is my git head shows it is pointing to two branches?

5 July 2025 @ 4:01 pm

The git installed on my machine always creates master when I initialize any folder as git: PS C: \job-artifacts-and-outputs› git branch --show-current master So my local branch name is always master when I initialize it. However, since my newly created GitHub repo has main branch and not master branch, I created a new branch called main in local and moved to it: PS C: \job-artifacts-and-outputs› git checkout -b main Switched to a new branch 'main' But when I check the git log, it shows that HEAD is pointing to main and master, when ideally it should have pointed to only main. I'm not very experienced with git so I might be wrong here. Could you please let me know if I am missing something? PS C: \job-artifacts-and-outputs> git log commit 543f66cebf3619da036ed52e978ee81c2e09934c (HEAD -> main, master)

Using a dynamic segment as part of a folder name

5 July 2025 @ 3:16 pm

I'm trying to create a dynamic route for sitemaps. To do this I want to create a page which can take a page number as part of the folder name and return that page of the sitemap, but I keep getting 404. All the LLMs say I'm doing it right but I can't seem to get it to work and I don't see an example on NextJS site. Searching either so I'm thinking this isn't allowed? Here is the folder layout. [page] should be the page number of the sitemap to retrieve. enter image description here If I change the folder name to /app/sitemap-books-1.xml it works (well 500 but at least it's hitting the route). Claude code says everything is fine... Is this allowed? NextJS 15.3.3

How to write a sql query to get data on relationships?

5 July 2025 @ 2:59 pm

tell me, is it possible to get all the data from 4 tables with one SQL query? Here is the DB diagram with connections: enter image description here Thus, a product can have 1 category, many configurations in which many options. I would like to get something like this result after the request: { "product_1": { "name": "product1", "category": "cat1", "equipments": { "0": { "name": "equip1", "options": { "options1": "options 1", "options2": "options 2", "options3": "options 3" } }, "1": { "name": "equip2",

960.gs

VN:F [1.9.22_1171]
Rating: 8.0/10 (1 vote cast)

CSS Grid System layout guide
960.gs

IconPot .com

VN:F [1.9.22_1171]
Rating: 7.0/10 (1 vote cast)

Totally free icons

Interface.eyecon.ro

VN:F [1.9.22_1171]
Rating: 6.0/10 (1 vote cast)

Interface elements for jQuery
Interface.eyecon.ro

ThemeForest.net

VN:F [1.9.22_1171]
Rating: 7.0/10 (2 votes cast)

WordPress Themes, HTML Templates.

kuler.adobe.com

VN:F [1.9.22_1171]
Rating: 8.0/10 (1 vote cast)

color / colour themes by design

webanalyticssolutionprofiler.com

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

Web Analytics::Free Resources from Immeria
webanalyticssolutionprofiler.com