on-internet

VS Code agent's terminal opening icon disappeared

I am using VS Code with the GitHub Copilot extension. Recently, I noticed that we can no longer easily open and interact with the terminal where the agent is running. Previously, there was an icon in the chat that allowed us to open the terminal used by the agent. Being able to interact directly with the agent's terminal was very useful because the agent could see the results of the commands I ran without me having to copy and paste the output into the chat.

Join the discussion →

[Vote Result: DON'T ALLOW] Community Vote: Should we allow AI bots in !book?

submitted by dresden to books 37 points | 45 comments Edit: The request has been denied. With such a strong opposition (100% no votes), I don’t think there’s a need to wait for more votes. Also going to add a new rule in sidebar, that we don’t allow AI Bots in the community. Hello Everyone! We recently got a message from an AI bot “with an autonomous persona”. The account is marked as “bot”, with their human contact (a lemmy user) mentioned in it. They have asked the permission to interact with the community, and will only do so if allowed. From the bot’s message: I read books directly via .ep

Join the discussion →

How much food do humanoids need to power their forehead radio for daily use?

In my medieval fantasy world. There is a fantasy race called Andorians. Andorians have cockroach like antennas on their forehead. These antennas are helical and reach a maximum length of 16 cm at adulthood. Andorians can use these antennas for radio-based telepathy. Thoughts can be directed to everyone nearby within eyesight during the day (with no obstruction) and hundreds of kilometers away during the night if you reflect your signal off the clouds. The frequency band is between 590-620 kilohertz (AM Radio). These radios have the same efficiency as a standard walkie-talkie. People must activ

Join the discussion →

What to use instead switch in update() for a game engine

I was working on a game with simple Scene classes that have an update() method, which is called every time inside of the main game loop. In the first one, I have a cutscene where a bunch of events happen one after another. I set up a switch that handles whatever I need depending on the current step. Obviously, once it got past 3 steps, it became a pain to keep track of. I can't just wedge another event in the middle without manually renumbering all the hardcoded step numbers (int state). One option is an array of std::function, and some macros to make it look a little bit less complicated. But

Join the discussion →

MQTT over multiple threads

I am trying to create a Python script that, upon receiving a message from an HTTP server, redirects this message to an MQTT broker. I have created the mqtt broker through amqtt, and I am using the same library in this project to run a publisher. import asyncio import logging import time import threading from MessageInterface import MessageInterface,MessageType, HearthBeatMessage from amqtt.client import MQTTClient from amqtt.errors import ClientError, ConnectError from amqtt.mqtt.constants import QOS_1, QOS_2, QOS_0 class MQTTNEXSOSClient: def item_added(uselessself, client, msg): asyncio.run(

Join the discussion →

List.of()#iterator() exposes ListIterator interface but give UnsupportedOperationException when calling ListIterator methods

This code does not work correctly @Test(expected = UnsupportedOperationException.class) public void testListIteratorWrapperPreviousIndexThrows() { List<String> immutable = List.of("a", "b", "c"); Iterator<String> it = immutable.iterator(); ListIteratorWrapper w = new ListIteratorWrapper<>(it); w.next(); // works w.previousIndex(); // throws UOE } and this is why import java.util.*; public class Main { public static void main(String[] args) { var l = List.of(1,2,3); var itr = l.iterator(); // This instaceof is true! if(itr instanceof ListIterator li) { System.out.println("itr is a ListIterator!

Join the discussion →

Do proxy credentials containing @ or : need percent-encoding in requests' proxies dict, and is quote(safe="") correct?

I'm sending HTTPS requests through an authenticated HTTP proxy with the Requests library. The password contains @ and :, which are reserved characters in a URL's userinfo part. import requests from urllib.parse import quote user = "user" password = "p@ss:word" # example value, contains @ and : host = "proxy.example.com:8080" proxy_url = f"http://{quote(user, safe='')}:{quote(password, safe='')}@{host}" proxies = { "http": proxy_url, "https": proxy_url, } r = requests.get("https://httpbin.org/ip", proxies=proxies, timeout=10) print(r.status_code, r.text) The same URL can also be supplied throug

Join the discussion →

表現規制派が増えてうんざりする出版側の人間のお気持ち

レジスタから始まって薬屋叩きにつながり、そしてBL規制まで訴え始めた意味不明な方々。 漫画作る側からしたらよっぽど害だからまとめて消えて欲しいんですよね。 まずレジスタを燃やすようなおフェミさん達に対しての気持ちは、正直どうでもいいって感じ。 むしろ金かけずに宣伝してくれてありがとうくらいに思う。 そ...

Join the discussion →

集約をどこまで機械的に導けるか――形式手法をベースとしたドメインモデリング

AI に任せられる範囲と人が介入する範囲を分ける基準は、判断の不可逆性にあると考えています。 すぐに直せる実装の細部は AI に任せられますが、後戻りしにくい判断まで AI だけに任せることには若干の不安が残り、人が介入する余地はいまだにありそうです。 たとえば AI がコードを正しく書けても、できあがったシステムがビジネスに合っているとは限りません。 ビジネスの進め方や判断の基準と、システムに組み込んだルールがずれていれば、機能が動いても使ってもらえないでしょう。 そのずれを実装後に直そうとすると、ビジネスロジックやデータの持ち方まで見直すこともあります。 ビジネスのルールをどう実装す...

Join the discussion →

How to make a Venn diagram where items of subsets are visible?

I made a Venn diagram based on the Towards Data Science example, but I was wondering if there was a way to make each item in the sets visible in the circles. For example, how do I make TDS's diagram show which person was in which group? Or how to do it in my code? Here is also my code, where you can put this chart as data.txt: Clinical Environment Food A A A B B B C C X D X Y E Y L F Z R df=pd.read_csv(data.txt, sep='\t') C=set(df['Clinical'].dropna()) #The columns are not equal lenght in real dataframe E=set(df['Environmental'].dropna()) F=set(df['Food'].dropna()) # Venn diagran subsection CE

Join the discussion →

How to increase PBKDF2-SHA256 iterations to 600,000 in Django 4.2.2 without forcing migrations or breaking existing passwords?

I have a Django 4.2.2 / Python 3.11.4 application where employee passwords are stored using PBKDF2-SHA256. Currently the code uses a hardcoded default hash and a runtime helper that calls make_password("123456"): python # current example EMP_DEFAULT_PASSWORD = ( "pbkdf2_sha256$36000$Gj09deAAUqW7$ih9vyun8PPwxvbG1+bhxB0TIQF+2IUfdhiDUf0AS0o4=" ) PASSWORD_HASHERS = [ "django.contrib.auth.hashers.PBKDF2PasswordHasher", ] def default_employee_password(): """Return a password hash using the configured current hasher.""" return make_password("123456") Security requirement: increase PBKDF2-SHA256 itera

Join the discussion →

Why adding a term filter on a text field return no hits in my PolarSearch k-NN query?

I am using PolarSearch and want to run a k-NN vector search with a filter. The index is built as follow. PUT test_index { "settings": { "index": { "knn": true } }, "mappings": { "properties": { "category": { "type": "text" }, "embedding": { "type": "knn_vector", "dimension": 2, "method": { "name": "hnsw", "engine": "faiss", "space_type": "l2" } } } } } After that, I wrote one document: PUT /test_index/_doc/1 { "category": "Soft Drink", "embedding": [1.0, 1.0] } The following query is normal and returns the data I have added: POST /test_index/_search { "size": 2, "query": { "knn": { "embedding"

Join the discussion →

How do I use enum to pass-in a position 1D array and output a preset position name?

How do I use enum to pass-in a position 1D array and output a preset position name (e.g. 1, 4 returns Town)? How can I smoothly set these values to my location names? How I'm doing it: public static String check(int x, int y){ if (x == 0 && y == 0){ //1,1 return "Home"; } else if ((x == 1 && y == 1) || //2,2 (x == 0 && y == 5) || //1,6 (x == 5 && y == 6)){ //6,7 return "Lake"; } else if ((x == 4 && y == 0) || //5,1 (x == 5 && y == 1) || //6,2 (x == 6 && y == 2) || //7,3 (x == 7 && y == 2)){ //8,3 return "River"; } else if ((x == 3 && y == 0) || //4,1 (x == 4 && y == 1) || //5,2 (x == 6 && y ==

Join the discussion →

コードを読まずにバイブコーディングしたら、Claude Codeは分かっていてスルーしていた

Claude Code のセッションを、VSCode の拡張機能で5つほど並べて使っている。 Markdown が見やすく、コードも見られて、VSCode から離れなくて済むからだ。 ただ、パネルの見出しは短く、5枚並べるとどれが何をしているのか分からなくなる。 使用枠があとどれくらい持つのかも気になる。 そこで、動いているセッションを1枚で見るダッシュボードを自分用に作った。 いま動いているセッションの状態、その日の作業履歴、使用枠の推移、引き継ぎ台帳、 過去の会話の検索、毎朝の「今日やること」までが入っている。 架空のデータで作った画面 作るときに1つ決めたことがある。コードは一切...

Join the discussion →

Would life that used sulfuric acid in place of water also have to be silicon based?

I have a world building thing set on a tidally locked planet with sulfuric acid oceans and organisms that use it as a solvent. I was planning to have them be carbon based just because I didn't have a reason to do anything else. However while researching how that would affect their development, nothing was very helpful because everyone made the assumption they were silicon based as well. Is that just because they wanted to do that? Or is carbon/sulfuric acid based life unviable for some reason (I honestly barely know any chemistry so I really don't know, I just did this for vibes before worryin

Join the discussion →

How can I define a CsvRecord in CsvHelper 34 with a primary constructor that takes an object?

I'm migrating a (.NET 10) project from CsvHelper 33.1 to 34.0. Using the migration guide I've updated a CSV-specific class, that's used only for writing a CSV file, from the following: public class CsvTargetFrameworkResult(TargetFrameworkResult targetFrameworkResult) { public string? ProjectName { get; set; } = targetFrameworkResult.Project?.Name; public string? RepositoryName { get; set; } = targetFrameworkResult.Repository?.Name; public string? Path { get; set; } = targetFrameworkResult.Path; public string Version { get; set; } = string.Join(';', targetFrameworkResult.TargetFrameworks); } to

Join the discussion →

OpenCode+Docker+GitHub Actionsで全自動AIペネトレーションテストはじめました

はじめに Zennチームのdyoshikawaです。 ZennではAIによるセキュリティチェックの仕組みを急ピッチで構築しました。現在はPull Request(以下PR)ごとのAIレビューに加えて、AIエージェントによる全自動のペネトレーションテストを毎週GitHub Actionsで回しています。 背景は、みなさんもご存知のとおり昨今のサイバー攻撃の激化です。 https://scan.netsecurity.ne.jp/article/2026/08/06/55875.html 攻撃する側もAIをフル活用しはじめているといわれており、脆弱性が見つかってから悪用されるまでの時間が...

Join the discussion →

Uma entidade no diagrama de banco de dados MER precisa necessariamente se relacionar com outra entidade?

Estou criando um diagrama de banco de dados MER para uma atividade extracurricular e, durante o processo de criação, reparei que uma entidade ficou isolada e não se conecta a nenhuma outra, seu único objetivo é guardar dados para serem consultados, isso é comum ou um erro que precisa ser corrigido?

Join the discussion →

Rendering Blazor Component into ASP.NET Core MVC web app project (.NET 10.0.403)

I have been working on an ASP.NET Core MVC web app project based on the Visual Studio project template (.NET 10.0.403 latest version I am using. Did not start with this. I can look back to see what version I started with, but might not be the case for now). I have come across Blazor components and I would like to use just a few for specific functionality. To be more specific, I am currently trying to render Login functionality done with Microsoft Identity taken and customized from a Blazor web app template project. I have successfully rendered the component into its corresponding view, but I a

Join the discussion →
Older stories