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