Introdução Ontem estava estudando tokenização e me deparei com algo que me chamou bastante a atenção: o custo que a nossa língua pode representar na hora de utilizar inteligência artifici...
My goal is to obtain routes like the following: example.com/category/product... I know in theory this is really basic to do, and I know how to do it. The reason I am creating this issue is because I like understanding in how the methods I use work. The first time I had to do this was when I read the getting started guide. (and the other guides on making this store project) I will save you the trouble of looking for what I am talking about: resources :products do resource :wishlist, only: [ :create ], module: :products resources :reviews, only: [ :new, :create ], module: :products resources :su
Разработчик Арчит Ходе совместно с Claude представил открытый проект GPU demo gallery (сайт решения). Это 44 классические техно‑демки (созданные с 1997 по 2006 годы) для видеокарт 3dfx, Nvidia, ATI и Matrox с возможностью просмотра в браузере без установки дополнительного ПО. Исходный код проекта написан на HTML и Python. Читать далее
I’m having an issue with my WhatsApp bot. Sometimes, when a new customer tries to use it, the bot is supposed to send a welcome message; however, it frequently fails to do so—in fact, it sends nothing at all. It’s as if the bot isn’t there: it receives the messages, but it doesn’t respond. I use two methods to handle the webhooks coming from Meta: the first contains the *payload* and is used to process the incoming message, while the second handles the entire response workflow. @PostMapping public ResponseEntity<String> recibirMensaje(@RequestBody String payload) { try { ObjectMapper mapper =
Коли Єврокомісія 19 листопада нарешті підтвердила кібератаку, найбільше обговорювали інструмент, яким її, ймовірно, провели. За даними CERT-EU, нападники, найімовірніше, працювали з ARTEX — безкоштовним ШІ-фреймворком, який ще влітку спокійно лежав на GitHub. Я спробував подивитися на цю історію як юрист і поставив собі просте питання: хто тут, власне, відповідає? Відповідь вийшла неприємною передусім для тих, кого зламують. Десять днів без розрахункових листів 22 жовтня в системах Комісії помітили перші ознаки атаки. Далі Комісія діяла за стандартною схемою і почала вимикати сервіси: офлайн п
两周前在「分享创造」发过 DSQuick。当时就是嫌看网页时总得切到 DeepSeek,复制一段,贴过去,再切回来。楼里聊到接 API,我回的是「就得走 api key 了」。这次把这条路做通了。上次的帖子 现在点悬浮窗左上角的名字,DeepSeek、豆包和自己配的聊天都在同一个列表里。官网聊天可以照旧用;手头有 API 的话,在扩展设置里填地址和 Key,点一下获取模型就能选。工作和个人用的配置可以分开存,拖一下就能调整顺序。 我拿图里的周末开放指南举个例子。想问「周末带孩子去看书,要不要预约」,可以在自己的 API 聊天里点「添加整页」。网页会出现在输入框上方,卡片标着文件大小,点开就能核对开放时间那张表有没有收全。确认后再发送,整个过程都留在当前聊天里。 还有两个看网页时用得上的改动。点一下图钉,就能一边操作原网页一边对照聊天;取消固定,点网页就会收起。遇到要查新资料的问题,支持联网搜索的 API 默认允许模型按需搜索,服务返回的引用也能点回原文。搜索取决于所选接口和模型,可以用输入框里的地球图标关掉。 0.2.14 已提交 Chrome 商店审核,通过后会在原地址自动发布。这次也想听听用自己 API 的朋友反馈,尤其是哪个服务能正常聊天、但获取模型或联网搜索的表现和预期不同。Chrome 商店
Grafana быстро становится сложнее в управлении, когда к мониторингу подключается целая команда: появляются вопросы разграничения прав, тиражирования дашбордов и автоматизации конфигурации. В этой статье на практических примерах разберём, как использовать API, сервисные аккаунты, Terraform и Ansible, чтобы сделать управление Grafana воспроизводимым и упростить работу с мониторингом в команде. Разобрать Grafana
Сможет ли агент написать код, который пройдёт ревью в pgsql-hackers? Мы дообучили Qwen на 27B параметров под разработку PostgreSQL: за неделю на 8 GPU H200 получилась модель, которую мы назвали Slonik. Рассказываем, что сработало, а что нет. Читать далее
Всем привет! Решил написать новую статью и рассказать о последних обновлениях, исправлениях и новых возможностях моего приложения RatCast. RatCast работает по аналогии с голосовыми каналами и конференциями в Discord и сосредоточен именно на общении: голосовой связи, видеоконференциях, звонках, совместном просмотре чего угодно, а также на обходе блокировок ;). В основе приложения лежит моя сетевая библиотека librats, которая используется и в других проектах. В отличие от Discord, RatCast построен на полностью P2P-архитектуре: участники связываются друг с другом напрямую, а при необходимости чер
DOU запускає нову освітню рубрику: раз на тиждень ділимось ресурсами, які можуть прискорити розвиток у професії і дати реальну практику. Рубрика буде виходити щоп’ятниці. Ви можете стати частиною процесу: надсилайте нам рекомендації, який саме ресурс виявився для вас корисним. Тож поділіться такими ресурсами зі спільнотою — запропонуйте через гугл-форму, або ж надішліть топік з поміткою «Ресурс тижня» самостійно чи пишіть Каті :) А тепер — до рекомендації цього тижня! Testcontainers Guides До навчання Testcontainers — бібліотека з відкритим кодом, яка спрощує написання інтеграційних тестів. Во
An anonymous reader quotes a report from TorrentFreak: Several book authors have filed (PDF) an amended complaint accusing Nvidia of seeding pirated books via BitTorrent, after downloading them from shadow libraries including Anna's Archive and LibGen. [...] These tools can download files via BitTorrent, and the authors and Nvidia both agree that whether they also upload data to others depends on the settings used. According to the authors, Nvidia didn't prevent seeding altogether. "When Nvidia ran the BitTorrent client, Nvidia uploaded pieces of pirated book files to third parties during the
submitted by Jorlmn to asklemmy 1 points | 1 comments Like if I start feeling either of those emotions when reading something online, I feel like it’s not information that’s being given to me, it’s emotional manipulation. Anyone have any other heuristics they use? Or anything similar that they wanna share? Noting those two emotions is pretty simple and works well for the most part, but i could use a couple more guidelines.
При разработке программного обеспечения для встраиваемых систем важно не только реализовать необходимую функциональность, но и обеспечить возможность диагностики возникающих проблем. Поиск причин ошибок, анализ поведения программ и исследование работы операционной системы — задачи, с которыми разработчики сталкиваются как на этапе создания ПО, так и при его эксплуатации. В системах реального времени эти задачи имеют особое значение. Необходимо понимать, что происходит внутри системы, какие события предшествовали сбою и в каком состоянии находились программы в момент возникновения проблемы. Для
I have a beginner exercise where I need to make a label that shows the input text, but in uppercase. I tried to create a function with the same name, before I realized setText was a built-in function. I have no idea how to make it work properly. import sys from PySide6.QtWidgets import QApplication, QMainWindow, QLabel, QLineEdit, QVBoxLayout, QWidget class MainWindow(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("ALL CAPS") layout = QVBoxLayout() self.input = QLineEdit() self.label = QLabel("") self.input.textChanged.connect(self.label.setText) layout.addWidget(self
In an instance method, both __class__ and self.__class__ refer to a class: class Foo: def hello(self): print(__class__) print(self.__class__) Foo().hello() Output: <class '__main__.Foo'> <class '__main__.Foo'> What's the difference between them? In what situations would they return different classes? (obj.__class__ vs type(obj) is already discussed here)
I'm struggling to compile a gtk application written in C. The compilation commands only work if directly run through the command line, whereas the same commands do not work if put into a Makefile and tried to compile with 'make' command. Compile commands all: cc $( pkg-config --cflags gtk4 ) $( pkg-config --libs gtk4 ) $(pkg-config --cflags --libs glib-2.0) $(pkg-config --cflags --libs gobject-2.0) -o dictRead src/main.c Error message from 'make' clang -o dictRead src/main.c In file included from src/main.c:9: In file included from /usr/include/gtk/gtk.h:29: In file included from /usr/include/