I am building a lightweight client-side image conversion utility and trying to convert .avif images into .jpg directly inside the browser using HTML5 canvas and JavaScript without sending files to a backend server. Here is the function I am testing: async function avifToJpg(file, quality = 0.9) { const bitmap = await createImageBitmap(file); const canvas = document.createElement('canvas'); canvas.width = bitmap.width; canvas.height = bitmap.height; const ctx = canvas.getContext('2d'); ctx.drawImage(bitmap, 0, 0); return new Promise((resolve) => { canvas.toBlob((blob) => resolve(blob), 'image/j
I'm working with the latest Google Maps JavaScript API and trying to display service locations nusig the newer AdvancedMarkerElement API. The base map configuration appears to work, but I'm having trouble understanding how marker rendering differs from the older google.maps.Marker implementation. Does AdvancedMarkerElement require additional configuration, such as loading the marker library through google.maps.importLibrary("marker") and setting a valid Map ID? Are there any important migration differences or common issues when switching from the legacy marker API to AdvancedMarkerElement?
I am using PyMilvus 2.6.8 against a Zilliz Cloud UAT instance that reports compatibility with Milvus 3.0. The collection has an AutoID primary key, and I enabled allow_insert_auto_id so I can supply IDs explicitly. An insert() with id=1001 preserves that ID. An upsert() of the same ID also updates the existing record correctly. The behavior changes when I upsert an ID that does not exist yet. Instead of storing the supplied ID, the server generates a different one. Repeating the upsert with the same supplied ID creates another record. Here is the reproduction, with the endpoint and token suppl
submitted by fishmaestro to asklemmy 2 points | 1 comments Hi Lemmy people, I am relatively new to asking questions here so if this would be better in another community let me know :) I use a password manager (KeePass), and it has worked very well for me for many years. I am trying to figure out a good way to arrange access in case a family member or friend needs to access it in an emergency situation. Like any other tech, it’s good to have a backup plan. I want to have the ease-of-mind that access to many important things, like my banks, insurance, and so on, can still be reached relatively e
Satellites now outnumber visible stars in the night sky above many towns and cities, according to a non-peer-reviewed analysis by engineering firm Accu Components. The researchers estimated that roughly 710 satellites pass over an average U.K. town at any given moment, with about 105 illuminated by sunlight and potentially visible to the naked eye. Space.com reports: Although the researchers specifically focused on the U.K., they say that such heavy satellite traffic flows above most of Europe, the U.S. and other mid-latitude regions, especially between 40 and 50 degrees north or south. "Most
I built a small open-source tool to solve a specific annoyance: being able to keep using the AI agent running on my machine when I’m not sitting in front of it. Previously I used Tailscale + Moshi. It worked, but the experience was laggy and I had to run my own relay to make it tolerable. Other tools that appeared later were either heavyweight or closed-source — I wasn’t comfortable handing my machine to something I couldn’t inspect. Morty is intentionally narrow. It lets you continue a Claude Code, Codex, or Pi session from any browser (phone, tablet, another laptop). No account, no app insta
submitted by sergenaskin to asklemmy 1 points | 0 comments HR keeps hiring the same type of people, and these people eventually form their own little clique. They report everything to HR through their own interpretations and narratives. Is it worth leaving a job and putting yourself through financial hardship because of this? Or does a workplace without this kind of dynamic actually exist?
i'm developing the 2 types of project of one is Inventory management like maintaining & monitoring the company assets employee data's ,payslip download , attendance and so on.. Another one is monitoring tool using electron.js. here the pain point is before we developed the projects are using node with express plain javascript. but rightnow engineers recommend developed a project using node.js with typescript is reliable, why ? what is the reason ? what are the major difference ?. my doubt is node.js has a inbuilt typescript version why need to install the separate package. also existing node.j
submitted by fubarx to technology 1 points | 0 comments https://www.sfchronicle.com/sf/article/waymo-service-paused-storm-rain-22537988.php Archive link: archive.ph/CYbpy Waymo suspended its autonomous ride-hail service Wednesday morning as storms pummeled the Bay Area.
I'm building an internal proof of concept where an AI assistant (Claude, via the Model Context Protocol) answers questions about a user's own WhatsApp chats, for example summarizing updates from a work group. Currently the user exports chats manually (Export chat → Without media) and uploads the .txt file. I'd like to automate this on a schedule (e.g. hourly), but only through officially supported means. The account is a regular WhatsApp account on the user's own phone. What I've found so far: - "Export chat" seems to exist only in the mobile apps, with no API or scheduling option. - The Whats
I am trying to Populating values outside the App() function with current location(latitude and longitude) values to use to output the temperatures at that location. Any ideas? I have tried, useState, document.getElementbyId. But it still does not render the current location or gives errors. When I move the WeatherApi code inside the App() then I need to write an async. I do not want to change the WeatherApi code much. Just want to populate the param values. Any ideas? import 'bootstrap/dist/css/bootstrap.css'; import { fetchWeatherApi } from "openmeteo"; import { useEffect, useState } from 're
submitted by WongKaKui to asklemmy 1 points | 0 comments I know the concept of “poverty is the root cause of crime”, but say you cant tackle it right away, or you already done everything you could and poverty is either resolved or already remedied to the fullest extent possible, and there are still bad people… now how do you keep a nighborhood safe? Do you envison having a militia doing patrols? Or perhaps robot sentries that never have to sleep?
I am preparing the training pipeline for the Maritime object detection model using YOLOv11s (yolo11s.pt) at an image resolution of 960×960 on my local workstation (NVIDIA GeForce RTX 5080 Laptop GPU with 16 GB VRAM, Intel Core Ultra 9 275HX, 32 GB RAM). Currently, the script is configured with the following parameters: Batch size: 8 (with Automatic Mixed Precision amp=True and 8 dataloader workers) Epochs: 150 ceiling with cosine learning rate decay (cos_lr=True) and early stopping (patience=30) Before launching the run, I wanted to get input on two points: Given that I have 16 GB of VRAM and
Because when someone asks a simple question, it gets downvoted to oblivion, commented on with nothing productive, then closed out. I'm brand new to this, how can I learn anything without turning to AI when you're all so rude and impatient? You're like a bunch of Redditors but worse. This site is not helpful, good riddance to it.
An anonymous reader quotes a report from 404 Media: A new study from Gallup looked at how young people across the world are making friends, both digitally and in person. The good news is that around 93% of the young people surveyed reported having at least one strong in-person friendship. The weird news is that 33% said they had an AI companion. Gallup's study is lengthy and nuanced. It partnered with the Boston Children's Digital Wellness Lab to conduct the study and used online surveys of more than 16,000 young people from the ages of 15 to 22 in 16 different countries. A lot of the topline
So, I have a magic system involving ley lines that power magical metal constructs (basically the constructs are imbued with power from the ley lines and need a constant source of magical power to keep functioning). In what ways would this affect trade routes in my world? I know that trade routes would crop up along ley lines, but how extreme could it get (e.g. could trade route through mountain ranges or across harsh deserts be realistic, despite the harsh conditions)? If you can think of other ways this would affect the world (e.g. war tactics) I would also be interested to hear your thoughts
Given two positive integers d<n, I want to generate an "n choose d" by n matrix as follows. For each set of d integers, say {a1,...,ad} , I want a row with 1's on the a1,...,ad columns. For example, if d=2 and n=4, my matrix would look like [[1,1,0,0], [1,0,1,0], [1,0,0,1], [0,1,1,0], [0,1,0,1], [0,0,1,1]]. I'm trying to code this in Python, but I'm not sure how to start as it's hard for me to somehow come up with all the sets of d integers to then make the rows. Any help would be appreciated. Thanks!
I am trying to clone https://github.com/monstercameron/pi-camera-gui onto my RPi 4B to use as a GUI for my camera. When I type "git clone https://github.com/yourusernamehere/pi-camera-gui.git" into terminal and hit enter it asks for username & password for "https://github.com". Does it want my Github login or my Pi login. I wasn't sure so I put N/A as both and it came up with "remote: Invalid username or token. Password authentication is not supported for Git operations. fatal: Authentication failed for 'https://github.com/yourusernamehere/pi-camera-gui.git' Is this a scam? I've never had it a