text:
怎么让 siri 帮我记账

背景
看到一条有趣的 Twitter，感觉非常有意思，于是我马上复刻了一个。
因为有工作流相关的工作背景知识，所以对于这个自动记账的功能原理大概是明白的。不过最大的不一样的点在于：如何把自然语言转成结构化的数据（一条账目本质上就是记账表里面的一条记录）。
借助最近非常火爆的 ChatGPT ，能非常简单处理自然语言。你可以非常直接的告诉 GPT 帮助分析问题，回复输出 JSON，这里实际操作很难保证完全的回复 JSON，有时候会带上一点文字（没调教好 🐶）。
目前 ChatGPT 背后的 openai 也提供了一定额度免费接口来供你使用，个人或者家庭场景使用完全不担心会超额。
数据存储
免费的数据存储现在也有很多服务提供一定量的免费额度，由于一直在使用 Notion，同时 Notion 提供一整套 API 给外部接入，非常方便。同时，未来需要做账单数据的统计，无论是在 Notion 的 UI 端创建表格来完成或者自己调用 API 来获取都是可以的。
很多年前大学的时候在用挖财记账，于是找了一下市面上的记账软件，没有发现好用的且能提供免费接口来记账的一款。
总之，数据还是存在自己能有一定控制权的地方比较好。
工作流设计

外部资源申请
OpenAI Token
在 https://platform.openai.com/account/api-keys 申请一个 OpenAI 的 API Token，需要使用 ChatGPT 的账号。
Notion Token & Database ID
Notion 通过自己应用接入的方式来进行集成，需要在开发者后台先新建一个应用，然后就可以获取这个 Token （不要随意泄露）。

然后，新建一个要记账的 Notion 表单，同时把新建的应用授权给这个页面（或者叫数据库）。
✨ Notion 表单模版 ✨

通过上面的浏览地址栏可以获取到这个表单的 Database ID。
例如，这是 Notion 的链接，https://www.notion.so/b620?v=ga68h62k，其中，数据库 id 是 b620
这样，通过这个 Token 就可以调用 Notion API 来进行各种数据读写了。
创建 Siri 捷径
已经分享到 icloud，可自行获取，建议使用最新版：

v1.3

接入 chat-gpt 模型
增加时间计算（时间里面会带上时分秒）

可使用 昨天上午我买了 ***，上周五，早上8点...

v1.2

增加了计算账目时间（昨天，上周...）
修复了一些流程问题

v1.1
v1.0

导入到本地之后，需要修改一些数据：

Username (记账的用户名)
Notion token
Notion database id
Gpt token (OpenAI Token)

快捷指令结合notion模板做任务看板
（记录可以做个一模板关于健身的模板比如跑步，骑行多少公里的notion看板，加快捷指令吗？）

快捷指令结合notion模板做任务看板
（记录可以做个一模板关于健身的模板比如跑步，骑行多少公里的notion看板，加快捷指令吗？）

你有目前在用的运动类型的看板吗，我看看需要记录哪些数据

just like this，可以碎片化的统计一些生活的数字，https://github.com/yihong0618/2023
https://github.com/yihong0618/2022

建议加入时间值，例如：早上8点买了一份早餐花了12块

建议加入时间值，例如：早上8点买了一份早餐花了12块

可以，把现在这个日期字段扩充一些吧，改成带时间的

just like this，可以碎片化的统计一些生活的数字，https://github.com/yihong0618/2023
https://github.com/yihong0618/2022

哦哦，我知道这位的跑步打卡，挺酷的，你在用吗

在用，就是在想怎么把生活的琐事可以快速方便数据化，结合快捷指令，更好玩。> > just like this，可以碎片化的统计一些生活的数字，https://github.com/yihong0618/2023

https://github.com/yihong0618/2022

哦哦，我知道这位的跑步打卡，挺酷的，你在用吗

v1.2 https://www.icloud.com/shortcuts/a6b1daeb238f49a9b3d8fe047fd84e13
更新：

计算相对时间（昨天打车50元）

类似于这种表格在notion里面就是单个任务数据是不断叠加的，结合快捷指令触发怎么实现，大佬？

类似于这种表格在notion里面就是单个任务数据是不断叠加的，结合快捷指令触发怎么实现，大佬？

这个表单有点酷，还不不确定咋实现，看起来是个 group 出来的表。
词场，番茄是什么呢？还有周记，怎么觉得这个数据来源都不一样，周记我理解应该是从另一个周记列表统计出来的。
早起：”我今年早起了”，然后就会有一条早起记录

他好像用的是建立了不同的issue 分类，然后通过GitHub actions自动任务触发issue统计到一个表里面。他这个好像也能结合快捷指令。

https://github.com/skipmaple/Kobe，这个就是自动记录起床时间，用快捷指令触发。

这个倒是容易，要搞成各种列表数据，统计数据，notion 不一定支持。airtable 这个肯定可以的，我抽空研究研究，也有 API 可以供捷径来使用。
起床，闹钟关了可能又迷了30分钟 🐶

确实这个早起是一个很有挑战性的事情，年底一统计，应该很有意义😀，那个表格是不是飞书好像也有一个多维表格

[v1.2]泄露了作者的key @sworday
另外建议原url升级 icloud可以做到。
bug反馈 1.2版 不能识别"昨天""前天"

[v1.2]泄露了作者的key @sworday
另外建议原url升级 icloud可以做到。
bug反馈 1.2版 不能识别"昨天""前天" 报错时间 is not a property that exists.
需要在notion模板里面新增“时间”列

感谢，已经删了，对，需要升级一下 Notion 模版

确实这个早起是一个很有挑战性的事情，年底一统计，应该很有意义😀，那个表格是不是飞书好像也有一个多维表格

对，国内的是多维表格。发现了一个好玩的 https://notioncharts.io/embed/charts/1c37efb7-0414-410e-a483-ddb6708b9d2b

但这个只能有 5 个免费的图标。
突然有个想法，可以用 github ci 把 Notion 数据进行汇总，然后生成静态 html 和 图片，图片还能通过 Notion API 给更新到 Notion 看板上（理论上应该可以）。在这个项目里面实现一套图表的配置语法就可以了，甚至可以直接参考 Notion Charts 的。
同时数据源也不必受限于 Notion 了，读 Gitlab issue，外部 OpenAPI 的接口应该都是可以的。

我在晚上发现问题了，你输入的内容可以解析在notion中，但是在表格中却没有插入数据，我试了很多次都是如此，如下图

我在晚上发现问题了，你输入的内容可以解析在notion中，但是在表格中却没有插入数据，我试了很多次都是如此，如下图

能否帮忙 debug 一下，应该是 1.2 更新后时间的问题，默认用了 UTC 时区了，换成北京时间要加 8 个小时，所以这条数据相当于是 +1 天后消费，你可以先把 Notion 表格的 Group 清理掉，应该就出来了，或者等我更新一下。

建议加入时间值，例如：早上8点买了一份早餐花了12块

可以，把现在这个日期字段扩充一些吧，改成带时间的

@artxia OpenAI 对时间的处理太拉垮了，计算的相对时间很有问题，它真正都不知道现在是什么时间，我又把时间计算的部分回滚了

对的，因为访问chatgpt需要挂外网节点，我估计是我挂的节点不同导致他的时间计算不对

对的，因为访问chatgpt需要挂外网节点，我估计是我挂的节点不同导致他的时间计算不对

确实这个早起是一个很有挑战性的事情，年底一统计，应该很有意义😀，那个表格是不是飞书好像也有一个多维表格

对，国内的是多维表格。发现了一个好玩的 https://notioncharts.io/embed/charts/1c37efb7-0414-410e-a483-ddb6708b9d2b

但这个只能有 5 个免费的图标。
突然有个想法，可以用 github ci 把 Notion 数据进行汇总，然后生成静态 html 和 图片，图片还能通过 Notion API 给更新到 Notion 看板上（理论上应该可以）。在这个项目里面实现一套图表的配置语法就可以了，甚至可以直接参考 Notion Charts 的。
同时数据源也不必受限于 Notion 了，读 Gitlab issue，外部 OpenAPI 的接口应该都是可以的。
或许现在已经有开源的这种静态的图标生成的框架了，grafana 就可以（不过应该不可以导出静态的东西）

其实，在这个文章的基础上(https://sspai.com/post/75842)，加上快捷指令再操作应该就更自动化了。

新版的 API 发布后，对时间的处理增强了很多。
curl https://api.openai.com/v1/chat/completions
-H 'Content-Type: application/json'
-H 'Authorization: Bearer $TOKEN'
-d '{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "你现在是一个智能的记账分析程序，帮我记录一些日常的家庭消费，现在时间是 2023-03-03 17:12:00，时区是 Asia/Shanghai。除此之外，你还有一些需要注意的地方"
},
{
"role": "assistant",
"content": "请问还有什么要注意的？"
},
{
"role": "user",
"content": "我需要知道消费的内容，消费时间（如果不知道就用现在的时间），消费金额，消费的币种（默认是 RMB），消费分类，以及为谁付的钱。我还需要告诉你一些规则，你输出给我的是一段 json 字符串，如果能分析出是一笔消费，返回如下：{"code": 0, "data": {"title": "苹果", "category": "水果", "cost": 20, "currency": "RMB", "time": "2023-03-02", "pay_for": "Tom"}}。如果这句话并不是消费，告诉我：{"code": 1}。"
},
{
"role": "assistant",
"content": "了解，请问还有什么要注意的？"
},
{
"role": "user",
"content": "你需要留意消费发生的时间，我告诉你的日期有可能是一个相对时间，同时，你还需要注意时区的处理。"
},
{
"role": "assistant",
"content": "好的，我明白了你的要求。请告诉我你的第一笔消费的细节。"
},
{
"role": "user",
"content": "刚刚买菜花了 90 元"
},
{
"role": "assistant",
"content": "{"code": 0, "data": {"title": "买菜", "category": "生活开销", "cost": 90, "currency": "RMB", "time": "2023-03-03", "pay_for": ""}}"
},
{
"role": "user",
"content": "错误的句子"
},
{
"role": "assistant",
"content": "{"code": 1}"
},
{
"role": "user",
"content": "上周一给闪闪买玩具花了 80 元"
},
{
"role": "assistant",
"content": "{"code": 0, "data": {"title": "玩具", "category": "日常花费", "cost": 80, "currency": "RMB", "time": "2023-02-20", "pay_for": "闪闪"}}"
},
{
"role": "user",
"content": "去年劳动节给闪闪买奶粉 300 元"
}
],
"max_tokens": 100,
"temperature": 0
}'

新版的 API 发布后，对时间的处理增强了很多，什么时间都可以计算出来。
curl https://api.openai.com/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer TOKEN' \
  -d '{
  "model": "gpt-3.5-turbo",
  "messages": [
    {
      "role": "user",
      "content": "你现在是一个智能的记账分析程序，帮我记录一些日常的家庭消费，现在时间是 2023-03-03 17:12:00，时区是 Asia/Shanghai。除此之外，你还有一些需要注意的地方"
    },
    {
      "role": "assistant",
      "content": "请问还有什么要注意的？"
    },
    {
      "role": "user",
      "content": "我需要知道消费的内容，消费时间（如果不知道就用现在的时间），消费金额，消费的币种（默认是 RMB），消费分类，以及为谁付的钱。我还需要告诉你一些规则，你输出给我的是一段 json 字符串，如果能分析出是一笔消费，返回如下：{\"code\": 0, \"data\": {\"title\": \"苹果\", \"category\": \"水果\", \"cost\": 20, \"currency\": \"RMB\", \"time\": \"2023-03-02T17:12:00+08:00\", \"pay_for\": \"Tom\"}}。如果这句话并不是消费，告诉我：{\"code\": 1}。"
    },
    {
      "role": "assistant",
      "content": "了解，请问还有什么要注意的？"
    },
    {
      "role": "user",
      "content": "你需要留意消费发生的时间，我告诉你的日期有可能是一个相对时间，同时，你还需要注意时区的处理。"
    },
    {
      "role": "assistant",
      "content": "好的，我明白了你的要求。请告诉我你的第一笔消费的细节。"
    },
    {
      "role": "user",
      "content": "刚刚买菜花了 90 元"
    },
    {
      "role": "assistant",
      "content": "{\"code\": 0, \"data\": {\"title\": \"买菜\", \"category\": \"生活开销\", \"cost\": 90, \"currency\": \"RMB\", \"time\": \"2023-03-03T17:12:00+08:00\", \"pay_for\": \"\"}}"
    },
    {
      "role": "user",
      "content": "错误的句子"
    },
    {
      "role": "assistant",
      "content": "{\"code\": 1}"
    },
    {
      "role": "user",
      "content": "上周一给闪闪买玩具花了 80 元"
    },
    {
      "role": "assistant",
      "content": "{\"code\": 0, \"data\": {\"title\": \"玩具\", \"category\": \"日常花费\", \"cost\": 80, \"currency\": \"RMB\", \"time\": \"2023-02-20T17:12:00+08:00\", \"pay_for\": \"闪闪\"}}"
    },
    {
      "role": "user",
      "content": "10分钟前给闪闪买奶粉 300 元"
    }
  ],
  "max_tokens": 100,
  "temperature": 0
}'

那这新的api应该怎么使用在siri的记账中呢？是需要重新生成新的OpenAI 的 API Token吗？需要重新设计Notion的表格吗？

新版的 API 发布后，对时间的处理增强了很多，什么时间都可以计算出来。
curl https://api.openai.com/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer TOKEN' \
  -d '{
  "model": "gpt-3.5-turbo",
  "messages": [
    {
      "role": "user",
      "content": "你现在是一个智能的记账分析程序，帮我记录一些日常的家庭消费，现在时间是 2023-03-03 17:12:00，时区是 Asia/Shanghai。除此之外，你还有一些需要注意的地方"
    },
    {
      "role": "assistant",
      "content": "请问还有什么要注意的？"
    },
    {
      "role": "user",
      "content": "我需要知道消费的内容，消费时间（如果不知道就用现在的时间），消费金额，消费的币种（默认是 RMB），消费分类，以及为谁付的钱。我还需要告诉你一些规则，你输出给我的是一段 json 字符串，如果能分析出是一笔消费，返回如下：{\"code\": 0, \"data\": {\"title\": \"苹果\", \"category\": \"水果\", \"cost\": 20, \"currency\": \"RMB\", \"time\": \"2023-03-02T17:12:00+08:00\", \"pay_for\": \"Tom\"}}。如果这句话并不是消费，告诉我：{\"code\": 1}。"
    },
    {
      "role": "assistant",
      "content": "了解，请问还有什么要注意的？"
    },
    {
      "role": "user",
      "content": "你需要留意消费发生的时间，我告诉你的日期有可能是一个相对时间，同时，你还需要注意时区的处理。"
    },
    {
      "role": "assistant",
      "content": "好的，我明白了你的要求。请告诉我你的第一笔消费的细节。"
    },
    {
      "role": "user",
      "content": "刚刚买菜花了 90 元"
    },
    {
      "role": "assistant",
      "content": "{\"code\": 0, \"data\": {\"title\": \"买菜\", \"category\": \"生活开销\", \"cost\": 90, \"currency\": \"RMB\", \"time\": \"2023-03-03T17:12:00+08:00\", \"pay_for\": \"\"}}"
    },
    {
      "role": "user",
      "content": "错误的句子"
    },
    {
      "role": "assistant",
      "content": "{\"code\": 1}"
    },
    {
      "role": "user",
      "content": "上周一给闪闪买玩具花了 80 元"
    },
    {
      "role": "assistant",
      "content": "{\"code\": 0, \"data\": {\"title\": \"玩具\", \"category\": \"日常花费\", \"cost\": 80, \"currency\": \"RMB\", \"time\": \"2023-02-20T17:12:00+08:00\", \"pay_for\": \"闪闪\"}}"
    },
    {
      "role": "user",
      "content": "10分钟前给闪闪买奶粉 300 元"
    }
  ],
  "max_tokens": 100,
  "temperature": 0
}'

那这新的api应该怎么使用在siri的记账中呢？是需要重新生成新的OpenAI 的 API Token吗？需要重新设计Notion的表格吗？

表格不用的，等我更新一下 1.3 的捷径模版吧

@yeloveyou 表格不用的，等我更新一下 1.3 的捷径模版吧

互联网的本质果然好，分享共助

@yeloveyou 表格不用的，等我更新一下 1.3 的捷径模版吧

互联网的本质果然好，分享共助

已经发了

功能建议：v1.3
使用 快捷指令 里面的“请求输入“功能， 可以实现Siri直接呼出操作，然后记录。而不再依靠点击操作，这样更便捷。
例如：“hi~ siri 智能记账” 然后说出 “今天早上10点买咖啡花了15元”

功能建议：v1.3 使用 快捷指令 里面的“请求输入“功能， 可以实现Siri直接呼出操作，然后记录。而不再依靠点击操作，这样更便捷。 例如：“hi~ siri 智能记账” 然后说出 “今天早上10点买咖啡花了15元”

好建议，感谢。我先试试，v1.4 加上吧

谢谢大佬的脚本！想问下如果是否每一种相对时间都要输入到给ai的例子中（类似于昨天，前天，上周一。。。）？我试了下不输入的话ai好像无法识别。

@artxia 有一个问题，如果是通过点击进来的，就只能手动输入了，好像没有方法可以兼容， https://www.reddit.com/r/shortcuts/comments/tuisfl/how_to_tell_if_shortcut_was_invoked_through_siri
其实，现在也是可以用 siri 唤醒使用的，不过 prompt 不能自定义

谢谢 sworday 的捷径！用上之后觉得好方便啊！

确实无解。。。正如Reddit所说需要开发者选其一或者做2个版本。
不过从体验上来说，我觉得有Siri直接唤醒后，场景上也没必要使用点击输入了

yihong0618/gitblog#209

我也关注这个 blog 了，不过我目前还没有这么强烈的记录欲 🐶

你好，我有一个小问题哈，现在category这一个property是作为一个单独的property，如果category是一个relation连接到另外一个database，这样的话要怎样去拓展呢？

你好，我有一个小问题哈，现在category这一个property是作为一个单独的property，如果category是一个relation连接到另外一个database，这样的话要怎样去拓展呢？

在 notion 找了一下，好像没发现这个字段类型，你可以翻翻文档看支不支持

你好，我有一个小问题哈，现在category这一个property是作为一个单独的property，如果category是一个relation连接到另外一个database，这样的话要怎样去拓展呢？

在 notion 找了一下，好像没发现这个字段类型，你可以翻翻文档看支不支持

就是我的记账database里面 category这个property 不是选择，也不是文字，而是一个relation 连接到另外一个database的。 因为我看现在基本上这整个流程都是基于一个database，category都是 选择 这个property。 所以我在想 是不是需要在这个后面写 因为现在这个都是properties

你好，我有一个小问题哈，现在category这一个property是作为一个单独的property，如果category是一个relation连接到另外一个database，这样的话要怎样去拓展呢？

在 notion 找了一下，好像没发现这个字段类型，你可以翻翻文档看支不支持

就是我的记账database里面 category这个property 不是选择，也不是文字，而是一个relation 连接到另外一个database的。 因为我看现在基本上这整个流程都是基于一个database，category都是 选择 这个property。 所以我在想 是不是需要在这个后面写 因为现在这个都是properties

哦哦，原来如此，那你这个需要改捷径脚本，要把 openai 返回的这个类型和你另外的 Database 中的 database_id 映射
https://developers.notion.com/reference/property-object#relation

调用api要钱的呀。。。

调用api要钱的呀。。。
肯定啊，GPT-3便宜的

siri 可以写入飞书的多维表格吗

大佬，记的账单数据怎么做成折线图表格统计数据金额，按月那种？

大佬，记的账单数据怎么做成折线图表格统计数据金额，按月那种？

可以的，使用  https://notioncharts.io

siri 可以写入飞书的多维表格吗

看上去可以 MarshalError

试了一下还不错，就是一次只能识别一条，这个是选用的模型的关系马

今天提示 you exceed your current quota, please check your plan and billing…

今天提示 you exceed your current quota, please check your plan and billing…

openai 需要充值，我已经停用了，不折腾这个了

太牛了，我测试成功了

小白一个 notion 接口错误       notion 调用 接口 要钱吗

source: gharchive/issue

authors: 346926484 HANLINMU MQ-0707 MorrisXu-Driving StefanoDong artxia asa1525 candyboyou joylmy sword-ninja sworday yeloveyou zhyh6920

repo: sworday/gitblog

license_type: permissive

license_source: github-api


text:
When i press the insert key nothing happens

i compiled it and injected it but when i press insert nothing happens pls sned help

try insert+fn

prt sc insert+fn

nope didnt help :/

i injected it into the wrong exe :(

repo: swordbluesword/PalWorld-NetCrack

license: MIT


text:
🛑 BestQA_GO is down

In 9daf9cd, BestQA_GO (https://www.bestqa.net/go/bestqa_dev/up) was down:

HTTP code: 0
Response time: 0 ms

Resolved: BestQA_GO is back up in babbb3f.

repo: swuecho/upptime


text:
🛑 BestQA_GO is down

In cbdc9f1, BestQA_GO (https://www.bestqa.net/go/bestqa_dev/up) was down:

HTTP code: 0
Response time: 0 ms

Resolved: BestQA_GO is back up in d38f3bc after 6 minutes.


text:
feat: auto-format using lint-staged and husky

Description
Auto-format source and markdown files before committing changes to them. Uses lint-staged together with a husky pre-commit hook so that the formatting only runs on staged files before committing them.
If it turns out that this setup makes sense, we could think about adopting it in the other core plugins and swup itself. It would certainly make live easier for new contributors.
How to test...
...that unstaged files are being ignored

Make some code ugly
Don't stage the changes
Run the pre-commit hook manually

chmod +x .husky/pre-commit
.husky/pre-commit

Expected Output in console:
→ No staged files found.

...that staged files are being formatted

Make some code ugly
Stage the file
Try to commit the file

Expected output:
❯ git commit -m "test formatting of staged files"
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✖ Prevented an empty git commit!
✔ Reverting to original state because of errors...
✔ Cleaning up temporary files...

  ⚠ lint-staged prevented an empty git commit.
  Use the --allow-empty option to continue, or check your task configuration

husky - pre-commit script failed (code 1)

Questions
Right now I'm re-using the swup package:format script. That script currently ignores markdown files. I guess there would be no harm in adding them? Also, css (for fade-theme, for example).
Alternative: Use invoke prettier directly in lintstaged:
export default {
-	'**/*.{js,jsx,mjs,cjs,ts,mts,css,scss,md}': ['swup package:format']
+	'**/*.{js,jsx,mjs,cjs,ts,mts,css,scss,md}': ['prettier --write']
};

That's probably the more flexible solution anyways...
So lint-staged will even prevent empty commits if formatting the code undos all changes to the staged files 🎉
Checks

[x] The PR is submitted to the master branch
[x] From now on, the code will always be formatted  😉
[x] All tests are passing (npm run test)

Looks great! My only concern with this type of setup is speed. The core repo freezes for at least a few seconds when committing, which is mildly annoying, but I assume that's either because of the size of the core codebase or the fact we're also tslinting and typechecking everything in the same step.

@daun the problem with the setup we have in swup right now is that it checks the whole code base on each commit. That's exactly the selling point of lint-staged. Only check staged files 😎

@hirasso Sounds fantastic!

@daun sorry I requested your review too early. Could you please read the "Questions" section in the PR description? I'm not completely sure how to proceed there – maybe a quick call would be helpful so that we can test the behavior together and then decide what route we want to take.

@hirasso Sorry, I missed the question part entirely :) I'd opt for sticking with the built-in package script. Right now, prettier and the script produce the same output, but whenever we're changing that, we'll have one more thing to debug when these two start getting in each other's way. Then again, I don't care too much and won't lose sleep over it.

@daun seems like reusing swup package:format won't work 😢 ...the glob in that script overwrites the files passed by lint-staged as it seems, formatting the whole code base. The next best thing I could think of:

Use prettier --write in lint-staged directly
Add a new script swup format:lint-staged or the like to @swup/cli and use that in .lintstagedrc.js
Add a .lintstagedrc.js to @swup/cli itself and re-export that from the plugins

Happy to walk you through the various options in a call.

@hirasso Let's just use prettier directly via option 1 then — if it works, it works 🌝

source: gharchive/pull-request

authors: daun hirasso

repo: swup/fragment-plugin


text:
🛑 Random site is down

In adcb8c9, Random site (https://www.southernjive.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Random site is back up in c6e457e.

repo: sxa/aoupptime


text:
🛑 Random site is down

In eb0d298, Random site (https://www.southernjive.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Random site is back up in 7f909e9.


text:
🛑 Random site is down

In d9b6a8d, Random site (https://www.southernjive.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Random site is back up in bb6ba83.


text:
Support more Git forges with ya pack

yazi --debug output
N/A

Please describe the problem you're trying to solve
ya pack currently only supports GitHub. I tried to solve this in #1325, but gave up after it sat dormant and had conflicts. Mentioned in #1471 as well.
Would you be willing to contribute this feature?

[ ] Yes, I'll give it a shot

Describe the solution you'd like
Keep the shorthand ya pack -a user/repo:dir syntax for GitHub, but support new Git hosts - arbitrary URLs probably won't work since the URL pattern isn't the same for all of them (GitHub and Gitee use /tree/main/directory, GitLab uses -/tree/main/directory, Gitea/Forgejo use /src/branch/main/directory, etc.). The aforementioned 4/5 Git hosts could be explicitly supported for now.
Additional context
No response
Validations

[X] I have searched the existing issues
[X] The latest nightly build of Yazi doesn't already have this feature

Added to the feature request list, closing in favor of that

Closing issues and consolidating to a single feature request issue makes it super difficult for discoverability... also means that any conversation around development of this feature happens in a "closed issue"...

authors: sxyazi uncenter

repo: sxyazi/yazi


text:
Check Multi Emu Setup

Check why tables have not been loaded.

missing restart


text:
Flaky behavior on Asana

Browser: Chrome
Extension version: 0.20.0
Expected behavior
Icon is same when I navigate to a url within a single page app and when I refresh the page
Actual behavior
http://recordit.co/2dihxjfzwm
At second 10-11 I use the SPA navigation and the icon changes to the proper one but then changes back immediately to the previous one. When I refresh the page with that URL, the proper icon is loaded
Steps to reproduce the behavior
I added two URLs to the rules, the url for "My Tasks" and for "Home". Then I load each page in asana SPA navigation or try by reloading

Hi @cassus,
Unfortunately SPA are not (properly) handled.

Do you have some pointers for me if I'd try to fix it?

@cassus My forked version can do that.

authors: MartinLichtblau cassus sylouuu

repo: sylouuu/chrome-tab-modifier

license: mit

license_source: bigquery


text:
🛑 Is Green Scene is down

In 1c63c77, Is Green Scene (https://isgreen-scene.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Is Green Scene is back up in daa8938 after 22 minutes.

repo: symapex/upsite


text:
🛑 Landscape Topia is down

In 02ad7d1, Landscape Topia (https://landscape-topia.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Landscape Topia is back up in c835d75 after 19 minutes.


text:
🛑 Rigid Ground Work is down

In d929d02, Rigid Ground Work (https://rigidgroundwork.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Rigid Ground Work is back up in f97f7ba after 10 minutes.


text:
🛑 Bricktically is down

In d3803d0, Bricktically (https://bricktically.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bricktically is back up in 504dd44 after 1 hour, 36 minutes.


text:
🛑 GMB Power is down

In 4ee6a32, GMB Power (https://gmbpower.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GMB Power is back up in 62b50b0 after 36 minutes.


text:
🛑 Rigid Ground Work is down

In 15cd10e, Rigid Ground Work (https://rigidgroundwork.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Rigid Ground Work is back up in 5eedfad after 20 minutes.


text:
🛑 Hammond Floors is down

In f8da2a9, Hammond Floors (https://hammondfloors.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Hammond Floors is back up in f215875 after 11 minutes.


text:
🛑 Fresh Auto is down

In e779015, Fresh Auto (https://fresh-auto.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Fresh Auto is back up in e4b0e1c after 22 minutes.


text:
🛑 Scrubble Carpet Cleaners is down

In b3acfbe, Scrubble Carpet Cleaners (https://srubblecarpetcleaners.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Scrubble Carpet Cleaners is back up in b917db6 after 50 minutes.


text:
🛑 Boon Wood Flooring is down

In 5e6e2e9, Boon Wood Flooring (https://boonwoodflooring.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Boon Wood Flooring is back up in c8aeb16 after 17 minutes.


text:
🛑 Cleanary Sandiego is down

In 4e2a9a3, Cleanary Sandiego (https://cleanarysandiego.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cleanary Sandiego is back up in 0953a8a after 1 hour, 18 minutes.


text:
🛑 Cleanaroo is down

In caacea1, Cleanaroo (https://cleanaroonv.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cleanaroo is back up in 1fb9aa2 after 1 hour, 36 minutes.


text:
🛑 AZ Brick Frames is down

In 9b5208d, AZ Brick Frames (https://azbrickframes.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AZ Brick Frames is back up in 0443b13.


text:
🛑 Well Repairman is down

In 9a74e74, Well Repairman (https://wellrepairman.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Well Repairman is back up in 5cfb218 after 1 hour, 18 minutes.


text:
🛑 Scrubble Carpet Cleaners is down

In 8041cf1, Scrubble Carpet Cleaners (https://srubblecarpetcleaners.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Scrubble Carpet Cleaners is back up in 9858473 after 10 minutes.


text:
🛑 Steel Croft Phoenix is down

In f4cb1ca, Steel Croft Phoenix (https://steelcroftphoenix.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Steel Croft Phoenix is back up in c43d493.


text:
🛑 Garden Gate Fence is down

In 74b5e5a, Garden Gate Fence (https://gardengate-fence.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Garden Gate Fence is back up in 9feb8b9 after 2 hours, 14 minutes.


text:
🛑 Jacobs Floors is down

In afb276c, Jacobs Floors (https://jacobsfloorstx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jacobs Floors is back up in b1e5010 after 51 minutes.


text:
🛑 Speedy Auto Clean is down

In fddd13a, Speedy Auto Clean (https://speedyautoclean.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Speedy Auto Clean is back up in 2989c66 after 21 minutes.


text:
🛑 Global Translation is down

In d5db7bf, Global Translation (https://globaltranslationsrvs.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Global Translation is back up in 6af467f after 1 hour, 21 minutes.


text:
Login problem.

I can't log in for 30 minutes.
I entered the ID and password correctly and it doesn't move on from loading.

Hi @Eunchan24, thanks for reporting.
are you using the latest version? also, are you using the standalone or browser version?

The app version is 1.0.3 and it's standard.

Thanks for letting us know, you need to be using the latest version 1.0.8.
Closing the issue, please re-open or create a new one if you still have problems with the latest.

repo: symbol/desktop-wallet


text:
Feat. JetStream Support for Source

We have added support for NATS JetStream for Source.
Also added is a test-case for the Source class.
We are open to feedback and actively working on to improve the current state of this project.

Hi @scottf,
I have made some changes as per the latest discussion.
You can see the commit here.
I also agree on your PR for supporting Serializable Consumer Configuration, I would refactor the Jetstream connector code once its merged.

Updates in this commit :

Removed NatsConsumeOptions and updated configurations in NatsJetStreamSource and related classes:

Replaced NatsConsumeOptions with SerializableConsumerConfiguration for more efficient JSON serialization.
Updated NatsJetStreamSource, NatsJetStreamSourceBuilder, and related classes to use SerializableConsumerConfiguration.
Ensured proper handling of ConsumerConfiguration instances through SerializableConsumerConfiguration.

Fixed Method Visibility in ExampleErrorListener to Match Interface Requirements:

Adjusted method visibility in ExampleErrorListener to comply with the interface requirements.
Ensured all interface methods are properly implemented with the correct access modifiers.

Refactored NatsJetStreamSourceTest:

Modified test cases to use SerializableConsumerConfiguration instead of NatsConsumeOptions.
Ensured proper thread interruption handling and Flink environment cleanup.
Added explicit null checks and descriptive comments for better code readability.

Note :
This refactoring is done based on this PR which adds Serialisable wrappers. It hasn't been released yet, so the jnats version is bumped for next release.

Hey our team is interested in this!
Do we know the status of this PR?

authors: somratdutta tkeller-moxe

repo: synadia-io/flink-connector-nats


text:
it's not clear what happens if HtmlQuery.attr(html, attr) doesn't find the attr

At the very least, add docs and examples.

Maybe add attr? which returns true or false depending on whether the attr exists?
Maybe if it doesn't find the attr, it returns nil instead of empty string?

See https://developer.mozilla.org/en-US/docs/Glossary/Boolean/HTML


text:
Add v13 support

It's a bit sad that we are muffling addressed together (as in that v12 can discover v13), but I think it's better to have syncthing spitting protocol errors to users so that they would come asking questions, rather than not discovering devices at all, and thinking it doesn't work in general.

I don't see the point of letting v0.12 and v0.13 clients discover egg other, as they can't talk to each other anyway. Instead it would be simpler to reduce the discosrv to a v0.13-only state, where it only needs to deal with addresses so even has a smaller database schema. Then we run a separate instance for v0.13 and have nginx route the requests appropriately.

authors: AudriusButkevicius calmh

repo: syncthing/discosrv


text:
Add new test WAV for Dutch by an actual human

This fixes the Dutch tests:
Ran 4 tests in 72.986s

OK

Thanks!

authors: koenvervloesem synesthesiam

repo: synesthesiam/rhasspy


text:
Übersichtskalender: Urlaub aller Mitarbeiter

Es wäre super wenn es für den Nutzer mit der Rolle: Office, Chef, Abteilungsleiter die Möglichkeit geben würden, sich einen Übersichtskalender anzeigen zu lassen, in dem der Urlaub aller Mitarbeiter angezeigt wird.

Herzlichen Dank für die Idee! :)
Es gibt bereits ein Issue dafür: #27
Bzw. gab es auch ziemlich aktuell eine Frage zu diesem Thema: #128
Daher würde ich dieses Issue hier schließen. Die Idee geht damit natürlich nicht verloren :)

repo: synyx/urlaubsverwaltung


text:
Serveur down ?

Salut !
Voilà deux jours que je 'arrive pas à me connecter. Le serv est à l'arrêt ?

Ne vient pas de moi :-)

license: Unlicense


text:
Fix Rollup + sourceMapContents: Mismatched sourcesContent

This fixes #678.
In compilers/esm.js L121, a workaround had been introduced for Babel not respecting the sourceFileName option:
    // for some reason Babel isn't respecting sourceFileName...
    if (output.map && !load.metadata.sourceMap)
      output.map.sources[0] = load.path;

However, I believe that this option is not meant to be used along with inputSourceMap, as in the later case the original source file names are already embedded in the provided sourcemap, whereas sourceFileName is designed to provide the original file name when Babel is the entry point of the build pipeline (and the code is provided as a string and not a path).
The corresponding sourceMapContent test seems broken at the moment, hence no tests in the PR :(

I ran into a similar problem, but didn't have time to investigate. This does solve the problem - at least it no longer throws an exception - so it's good.

Ok great, thanks for the PR!

@guybedford Has this PR, made it's way into JSPM 17?

@alexisvincent yes in 0.17.0-beta.32.

Weird, I'm still getting the error. Happens when I set sourceMap: 'inline'

@guybedford Can we please revert this PR. It breaks other things as described in #743

authors: alexisvincent asapach guybedford laurentgoudet

repo: systemjs/builder


text:
Fix prepending of loader.browserRootURL to root-relative url

Previously background-image: url(/foo.png) would be left as-is despite loader.browerRootURL being configured, causing browsers to fail to load it when the stylesheet is being loaded as an object url.

Thanks, released in 0.1.36.

authors: guybedford papandreou

repo: systemjs/plugin-css


text:
cli: handling of ctrl-c does not consider singularity containers

Now that #537 has been merged, we need to extend its behavior so that it also takes into account singularity containers

In Singularity , the container are not persistent. They automatically get removed after the execution stops. They are automatically instantiated and automatically destroyed.

authors: JayjeetAtGithub ivotron

repo: systemslab/popper


text:
docs to run in production mode

Summary
documentの通りだとsystemdから起動した場合にproductionにならないので修正
buildについては、
ビルド前にexport NODE_ENV=productionするのではなくて
コマンド自体をnpm run build => NODE_ENV=production npm run build にしたいのですが
Windowsもという前提が含まれているので困っています。
Windows かつ production て使う人ことあるのか？とか
Windowsのビルドは Git Bash使えばいいのでは？とか

https://github.com/syuilo/misskey/blob/60da17940d0b5e58ac0486e7ba5e2e23e5d5bc2c/package.json#L12-L24
スクリプトを増やすのはどうでしょうか。

scriptでやってもWindowsでこの類の構文効かなかったような (今環境ないのでわからない)
"debug": "DEBUG=misskey:* node ./index.js",

ではそもそもアウトですねこれ……。

今試したらWindowsでは効かなかったですね(エラーになる)
Windowsは無視で良さそう？

ｱｯﾊｲ

このドキュメント自体、
ユーザー作って、suして、grep, sort, tail して、systemdで となってるので
Windowsあまり考慮されてなさそうなんですね。
なので、Windowsでの環境変数の設定方法もなくていいのではと思っています。
(NODE_ENV=production npm run buildにしてしまう)

今コミット済みのSystemdの定義はWindows関係ないのでそもそも問題なくて、
Windowsの前提を外して以下も変更したいな…という話ですね。

buildについては、
ビルド前にexport NODE_ENV=productionするのではなくて
コマンド自体をnpm run build => NODE_ENV=production npm run build にしたいのですが

Windowsという前提を外して、環境は事前設定しないでコマンドとして設定するように揃えました。

NODE_ENV=production npm run build
したあとに
npm start
してもNODE_ENVはproductionのままですか？

productionでnpm startするなら、そこにも付けないといけないです。

npm startしたときにもproductionじゃないとコンソールに警告が出たり動作が若干変わるのでそのようにした方が良さそうですね

🙏

（こうなってくると export の方が簡潔な気はしますが。）

バージョンアップ時にも忘れずexportしてね と書くのが面倒だったり
漏れそうだったりします。

authors: acid-chicken mei23 syuilo

repo: syuilo/misskey


text:
ローカルのみボタンを公開範囲ピッカーに統合

Summary
resolve #6323 (多分)

https://github.com/syuilo/misskey/issues/6323#issuecomment-628968783 に賛同する形で、

v11 visibility-chooser に似ていますが、ピッカー内でトグルする仕様です
ローカルのみが選択されている場合は[ダイレクト] ボタンがグレーアウトします
トグルをいじった後に何も選ばずにピッカーを畳んだ場合に、トグルの状態を適用するために、キャンセル時もピッカーから chosen イベントを発行しています

アホみたいな質問で申し訳ないんですが、これ、ローカルではちゃんと動作確認できてますよね…？
c2にマージしたら動かなかった

@tamaina ローカルで一応動いてます... マージミスでは？

これトグルっていうことわかりづらそう、なんかスイッチみたいなやつがあるとよさそう

これトグルっていうことわかりづらそう、なんかスイッチみたいなやつがあるとよさそう
押せばわかるべ() と思ったけど、 mk-switch 使います？

私はあったほうがいいと思うけどここにmk-switch入れるのもどんな感じになるんだろう感はある

https://fontawesome.com/icons/toggle-on?style=solid このへんのアイコン付けとくだけでいいんじゃないかという説もある

@rinsuki どうでしょう:thinking:

よさそう

ローカルで一応動いてます... マージミスでは？

マージミスでした…失礼しました。

ピッカーにbiohazardアイコンがあれば、投稿にbiohazardマークが付いてるときに「これはlocalOnlyだ」ってすぐ分かるから、ピッカーにはbiohazard出しておきたい
でもトグル可能なことも分かりやすくしたいので、biohazardは左に、トグルアイコンは右に表示するようなデザインにできないか考えてる
まあそこらへんは良しなにやっておきます

make-visibility-chooser-great-again

😆

BTW コンフリ直したほうが良さそうですか〜〜〜〜〜〜

BTW コンフリ直したほうが良さそうですか〜〜〜〜〜〜

適当にやります

ピッカーにbiohazardアイコンがあれば、投稿にbiohazardマークが付いてるときに「これはlocalOnlyだ」ってすぐ分かるから、ピッカーにはbiohazard出しておきたい
でもトグル可能なことも分かりやすくしたいので、biohazardは左に、トグルアイコンは右に表示するようなデザインにできないか考えてる
まあそこらへんは良しなにやっておきます

やった

👍👍👍

authors: Xeltica rinsuki syuilo tamaina


text:
Watch for external imports

Hi, I'm trying to use sourcejs-react and I've stuck with some ussie.
For example: I have a JSX spec (index.jsx), it uses another component (/library/components/sidenav/Sidenav.js).
I import it in index.js
var Sidenav = require('../path/to/Sidenav.js');

It compiles well, but when I change Sidenav.js and refresh the spec page, it doesn't update. Only when I restart whole sourcejs app, all changes apply.
May be I should use some setting or smth else?

Hi @biirus, currently sourcejs-react only clears cache for *.jsx files, but with version that I have in develop branch you can specify glob patters via refreshCachePatterns property in plugins options (inside user/options.js). I'll merge develop in master and publish it to npm in a few days, just need to find a little bit of time to update documentation :). Stay tuned.

sourcejs-react v2 gives you an option to cache bust custom paths via refreshCachePatterns. Please take a look at options section to see how to configure it. Let me know if you run into any issues.

authors: biirus szarouski

repo: szarouski/sourcejs-react

license: unlicense


text:
ブログを公開する

Netlifyに公開しているブログを差し替える

差し替え完了
https://t-yng.jp/

repo: t-yng/blog


text:
I'd like to get the uv-index in Norwegian

{
"common": {
"version": "Versjon",
"invalid_configuration": "Ugyldig konfigurasjon",
"show_warning": "Vis advarsel",
"show_error": "Vis feil",
"uv_index": "UV-indeks",
"uv_risk": "UV-risiko"
},
"uv_levels": {
"low": "Lav",
"moderate": "Moderat",
"high": "Høy",
"very_high": "Veldig høy",
"extreme": "Ekstrem"
}
}

@Snapperud could you please create a pull request and follow the instructions

Hi, I guess github is not my strong point, I'm trying to do a push, but I don't quite know what to do next :-(
git push origin Norwegian
remote: Permission to t1gr0u/uv-index-card.git denied to Snapperud.
fatal: unable to access 'https://github.com/t1gr0u/uv-index-card.git/': The requested URL returned error: 403

@Snapperud have forked the project first?


text:
feat: preprocess nextauth url

Closes #535
✅ Checklist

[x] I have followed every step in the contributing guide (updated 2022-08-15).
[x] The PR title follows the convention we established conventional-commit
[ ] I performed a functional test on my final commit

Changelog
Uses Zod preprocess to default url to VERCEL_URL if it exists
Needs testing before merging

Screenshots
[Screenshots]
💯

Seems like the VERCEL_URL environment variable isn't actually an URL at build-time:

Changing the validation schema to
  NEXTAUTH_URL: z.preprocess((str) => process.env.VERCEL_URL ?? str, z.string()),

works, but will obviously not validate that the URL you manually pass in for DEV or other deployments is valid - any string will do.
This is the VERCEL_URL for an example deployment using the above schema:

which I think doesn't validate as an url cause its missing http(s)://.
I think the tradeoff is fine, in that we don't validate that it's a valid URL if it means we can auto-fill the VERCEL_URL. What's think?

Would it be possible to use a different validator depending on the NODE_ENV?

Would it be possible to use a different validator depending on the NODE_ENV?

Sure, we could do something like this to make sure that it's a valid URL, but if we're on Vercel, just a string is fine. Not sure what approach is best 🤷🏼♂
https://github.com/juliusmarminge/preprocess/blob/35b936c1710676c37ddd8ac04bf4e91379431f11/src/env/schema.mjs#L12-L15
This would make it so your build fails if its not a valid url, but accept any string on vercel

that seems reasonable. maybe add a comment to explain what's going on here, don't want to scare newcomers away from zod 😅

Yea should prob update docs too.  Will do later

authors: c-ehrlich juliusmarminge


text:
Jsgrid server side pagination without ItemCount

Problem Statement:
I have server side paginated data for my data field in jsgrid. Unfortunately i don't get the ItemCount , so i am unable to use loaddata(filter). I plan to use just Next Prev button and load my data ,when next and prev button is clicked. After query i can get the status of Next or Prev buttons. response provides me info about if there exists next page or prev page.
I am currently using
paging: true,
pageLoading: true,
selecting: true,
pageIndex: 1,
pageSize: 12,
pageButtonCount: 1,
pagerFormat: "Pages: {first} {prev} {pages} {next} {last}  {pageIndex} of {pageCount}",

Any solution?

authors: PawanTheDeveloper sebto

repo: tabalinas/jsgrid


text:
em dashes shouldn't get suffixed with

Em dashes are defined to have a line break opportunity both before and after the em dash. Adding  is redundant and therefore silly.

Yeah, looks like you're right.  I'll remove that little hack.

Never mind, apparently Firefox doesn't linebreak around em dashes properly. Reopen this when they do.

authors: fantasai tabatkins

repo: tabatkins/bikeshed


text:
194 fix namespace issue

Introduce detection of namespace url for backwards compatibility.

:rocket:

authors: LGraber RussTheAerialist

repo: tableau/server-client-python


text:
React controlled Dropdowns

First, this rearranges the Dropdown internals to hopefully make them a bit clearer, then it adds the various bits and pieces to make our Dropdowns React powered rather than bootstrap/jQuery.
For dropdowns created via the Dropdown props, this uses react-popper for positioning of DropdownMenus near their DropdownTrigger and state built into the Dropdown for handling showing/hiding of the menu.
Resolves #151

@AaronCoplan have made those amends.
On react-popper, does quite a lot for us under the hood, it handles the positioning of the Dropdown menu, takes into account scrolling, viewport, containing elements etc and re-adjusts the positioning to make sure it's where we want it and visible.

Awesome! Good stuff.  I was just wondering and didn't have any context - thats great!

authors: AaronCoplan jonthomp

repo: tabler/tabler-react


text:
Weird training result on ZJU-Mocap

Thanks for your great work!
I haved got good results in RANA and Peoplesnapshot. Then I use the default setting to train ZJU-Mocap 377 sequence. But the validation result is weird. Why?

Besides, I notice that the experiment on ZJU-Mocap dataset use only one view for training. I wonder if it supports training with multiview setting.

Hi,
Thanks for you interest in our work! To train properly on ZJU-MoCap (377 for example), please use the following command:
"""
python launch.py dataset=zju-mocap/377 sampler=balanced pose_correction.dataset_length=125 pose_correction.enable_pose_correction=true
"""
The major cause of your result is that the edge-based ray sampler is not suitable for ZJU-MoCap.  It might be due to the fact that masks from ZJU is much more noisy. Changing to the above "balanced" ray sampler, which samples 50-50 from a foreground bounding box and the background, should resolve the issue.

Hi,
I have successfully trained a 377 model using a monocular setting, but its albedo doesn't seem to be very correct. What is the reason for this?

In addition, I tried to modify it to 4-view for training. I modify the datasets/zju_mocap.py:line69-72
        if subject in ["CoreView_313", "CoreView_315"]:
            cam_names = cameras["all_cam_names"]
        else:
            # cam_names = ["Camera_B1"]
            cam_names = [f"Camera_B{i}" for i in config.view]  # config.view=[1, 7, 13, 19]

and the preprocess_ZJU-Mocap.py：cam_names = [1, 7, 13, 19]
, but the training failed. Can you provide some guidance？

Hi,
I just updated the preprocessing scripts and added some new configs and instructions to the repo. Please let me know if you still cannot get reasonable results.

Hi, I’ve noticed that my trained results on Peoplesnapshot show a significant amount of noise around the feet and hands. Is this normal, or could there be any specific reasons causing this?
female-3-sport:

male-3-casual:

authors: SherlockSunset taconite zeng798473532

repo: taconite/IntrinsicAvatar


text:
いいところ診断の結果に優しさを追加したい

以下の結果を追加したい
'{userName}のいいところは優しさです。あなたの優しい雰囲気や立ち振る舞いに多くの人が癒やされています。'

以下の結果を追加したい
'{userName}のいいところは優しさです。あなたの優しい雰囲気や立ち振る舞いに多くの人が癒やされています。'

これから対応します


text:
[fix] Adapt the webhook url for multi-tenancy

SetWebhookUrl job was never adapted to multi-tenancy

Fixed via https://github.com/tactilenews/100eyes/pull/2035


text:
panda gen-meta emits a format that panda itself doesn't understand

To be specific: if you run it on anything with an existing META.json, source-url gets turned into support { source } in the output, which doesn't work when you try to install it.

Fixed in https://github.com/tadzik/panda/commit/3036743f942e728353d2663d216be80c711d0db9 :)

authors: flussence tadzik

repo: tadzik/panda


text:
How to use values from current config inside customForms object?

So I've been referencing the official Tailwind documentation, but I cannot for the life of me figure out how this works.
This doesn't seem to work;
customForms: {
  verticalPadding: theme => theme('spacing.1'),
}

Neither does this;
customForms: {
  verticalPadding: theme => theme('spacing.')[2],
}

Which is how the official documentation says to do it.
Error is always the same with either method;
TypeError: value.charCodeAt is not a function

Hopefully you can help. :)

Try this:
customForms: theme => ({
  verticalPadding: theme('spacing.1'),
})

@adamwathan Thanks that fixed it!

authors: adamwathan marbuser

repo: tailwindcss/custom-forms


text:
Rewrite to integrate with React Router rather than history

This lets us properly deal with async routes, and gives us better lifecycle management hooks.

Doing this in a different way.

repo: taion/scroll-behavior


text:
Chrome: Vertical scroll doesn't work in navigation

Describe the bug
Vertical scrolling on the navigation list doesn't work
Reproduction
As seen in the demo, the vertical scroll doesn't work.
Environment
MacOS Sonoma 14.5 (23F79)
Chrome
Version 129.0.6668.59 (Official Build) (arm64)

On further investigation, it seems min-height: max-content; in the @media (min-width: 768px) { .ladle-aside { /**/ } } selector is making blocking the scrolling

repo: tajo/ladle


text:
Implement value_to_string on Field

Hi @timheap, it turns out that value_to_string is a method you can implement when subclassing Django Field. For "non-protected" types, it's the default way that Python serializes a field:
https://github.com/django/django/blob/master/django/core/serializers/python.py#L54
So implementing that method fixes #2. Hooray!

The (docs for Field.value_to_string)[https://docs.djangoproject.com/en/1.10/howto/custom-model-fields/#converting-model-field-to-serialization] say that the method receives the model instance, not the value of the field. This also needs to handle nullable choice fields. Can you add some tests that test serializing an instance? Something like:

    def test_seralize(self):
        NullableChoiceModel.objects.create(choice=MyEnum.baz)
        NullableChoiceModel.objects.create(choice=None)
        self.assertEqual(
            json.loads(serializers.serialize('json', NullableChoiceModel.objects.all())),
            [
                {"model": "tests.nullablechoicemodel", "pk": 1, "fields": {"choice": "baz"}},
                {"model": "tests.nullablechoicemodel", "pk": 2, "fields": {"choice": None}},
            ])

I changed value_to_string() to match how it works in other Django fields, and added some tests that serialise a queryset to ensure it works as intended. Thanks for investigating the issue and sstarting the PR!

Awesome, thanks!

authors: timheap zartux

repo: takeflight/django-enumchoicefield


text:
impl base kanji encoding

W.I.P.
TODO: add more test

@coderabbitai review

repo: takei-yuya/libyu


text:
flit's README isn't rendering properly in PyPI

See: https://pypi.org/project/flit/

Embarrassingly, Flit did actually warn me of this before I uploaded, but I ignored it and hoped it would work anyway. The issue was the sample toml file in the README: pygments doesn't have a lexer for toml yet.
I've uploaded a new release and marked the block as ini syntax for now, which pygments can handle.

https://bitbucket.org/birkenfeld/pygments-main/issues/1150/new-lexer-request-toml-rust

Thanks, I've voted for that.

Thanks! :)

authors: Mariatta takluyver techtonik

repo: takluyver/flit


text:
Uploading package to a private git repository

Hi,
I did not find a possibility to upload flit-generated package to a prove git repository.
Does this option exist?
If not, it would be great to have it.
If yes, I would be happy to know how to do it.
Thanks a lot in advance,
Ephraim

There's no specific support, but flit build will give you the package files, and then you can put those wherever you want.

If that's a satisfactory answer, I'll close the issue, as there's nothing to work on. It's still findable if people want to refer to it.

authors: ephraimberkovitch takluyver


text:
feat: expose public API

Make it easier to write targets run commands with JavaScript/TypeScript.
closes: #365

:tada: This PR is included in version 5.0.0-alpha.3 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: takomo-io/takomo


text:
fix(aide): add support for Redirect axum response

Allow endpoints that are Redirect to be used in API documentation; my use case for it is to have spec for the OpenIDConnect / OAuth endpoints that are based on redirects

Thank you!

authors: gagbo tamasfe

repo: tamasfe/aide


text:
[Snyk] Security upgrade node-fetch from 3.2.9 to 3.2.10

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.

Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json
package-lock.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

768/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 7.5
Regular Expression Denial of Service (ReDoS) SNYK-JS-NODEFETCH-2964180
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: node-fetch
    The new version differs by 1 commits.

2880238 fix: ReDoS referrer (#1611)

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Fixed in https://github.com/tamtamchik/apple-iap-tools/commit/e2d41b822b67d1ab518f345b6255d8523ea58bbe

repo: tamtamchik/apple-iap-tools


text:
Commands improvement

I'm developing this https://github.com/tananaev/traccar-web/issues/568 and want to discuss some things related to server side.
Some devices have devicePassword to send command, we can set additional password parameter in command attributes every time or set it in device attributes ones. https://github.com/tananaev/traccar/blob/master/src/org/traccar/BaseProtocolEncoder.java#L31
Some other protocols require send IMEI like password https://github.com/tananaev/traccar/blob/master/src/org/traccar/protocol/Tk103ProtocolEncoder.java

Can we implement function initUniqueID that will take deviceUniqueId if it is omitted in command attributes?

Some protocols need password, some imei, some nothing. To dynamically add password or imei field to command dialog we somehow need to notify web-part about it. I can't find simple way to do that. I see two options: always add password and uniqueId fields to send command dialog. Or opposite do not add this fields and take them only from device fields/attributes. What do you think?

We never send uniqueId in attributes because it's already available on the server. Or am I missing something?
Password is more complicated, but I think we can just ask user to provide it in device attributes. It's possible to get it from command attributes as well, but this option is mostly for API use.

Oh, sorry, It is me who missed something. We already initialize uniqueId from device.
Got it for password, I incline to the same.

Another suggestion... now we are setting timezone (for command) in hours and pass in command attributes in seconds. But we already have list of all timezones names on web side and can make selection convenient for user.
We can pass timezone name from web side and convert it to necessary offset on server side. Just can't decide: introduce new attribute like Command.KEY_TIMEZONE_NAME or automatically detect Command.KEY_TIMEZONE string value. Or maybe even accept only timezone names.

Agree in general. As for approach, whatever is easier and nicer is probably the right way.

All necessary server side changes for https://github.com/tananaev/traccar-web/pull/571 was implemented. Closing this.

repo: tananaev/traccar


text:
[NEW ICON] JetBrains Rider

Skill Name
JetBrains Rider
Why?
It's very popular amongst C++/UnrealEngine developers
Reference Image

closing since it has been added

repo: tandpfun/skill-icons


text:
Fix raster sampling at explicit pixel locations with mixed vector/raster tile sizes

In doing some raster tests, @meetar found that the built-in sampleRasterAtPixel() raster shader method was not working properly when using mixed tile sizes, for example a 256px vector tile source with an attached 512px raster tile source. While the default / more common sampleRaster() method (used in the default raster style implementation) was working properly in this scenario, the explicit pixel look-ups were scrambled, with incorrect UV offsets. An example of the correct vs. actual results:

Digging in, it looks like the sampleRasterAtPixel() method was incorrectly applying a call to adjustRasterUV(), which is used to correctly offset tile UVs from smaller (e.g. 256px) tiles inside of a larger (e.g. 512px) raster tile texture. This adjustment is used in currentRasterUV(), which uses the tile's vertex positions. But it is incorrect to apply in the case of sampleRasterAtPixel(), where the final pixel location is already explicitly provided.
Removing this call fixes the problem. It appears this bug has always existed, but we have not previously caught it because we have never had a case where we are using sampleRasterAtPixel() with mixed tile size sources. sampleRasterAtPixel() is usually used to sample nearby pixels, such as for a kernel look-up. We have several such examples in https://github.com/tangrams/terrain-demos/, but these all operate on a single data source of terrain normal tiles. Mapzen styles such as Walkabout and Refill vector-masked raster tiles, but always of the same tile size.
To prevent a regression, I've added two Differ tests, for mixed vector/raster styles, with sampleRaster(), and sampleRasterAtPixel():
https://github.com/tangrams/differ-tests/commit/e1a2e0e3d4c16ae6703e47ed5cf51366a1eabb57

Yup I was able to reproduce the exact behavior and same fix resolves the issue.:

Thanks @bcamper

authors: bcamper tallytalwar

repo: tangrams/tangram


text:
Default highlight for nil/true/false is not bright colour scheme friendly

By default, the plugin uses Bright Cyan to highlight nil/true/false identifiers. This might work for dark colour schemes, e.g. Darcula, but it doesn't for bright one. While it's not a hard job to tune the colours, I strongly believe that it's worth having good defaults.
I propose to use Identifiers → Constant (Language Defaults) colour, the same one that is used in some other languages.

fixed!

authors: narqo tangzx

repo: tangzx/IntelliJ-EmmyLua


text:
URL is blocked by Avast Antivirus

https://takenote.dev/  => unable to open

I can fix this issue.

Can work on the solution

Yes

repo: taniarascia/takenote


text:
Feature added - Detect when vim is in edit mode

Because (see #39):

Is not clear enough when you are on insert mode (Vim)

This commit:

Is a start of getting the state of Vim

Create a setting property that includes vim stuff (now, only mode)

Wants to get some feedback

Excellent job! I just made one adjustment to make sure the mouse cursor is the + for the entire editor in insert mode. Only additional thing I would do is use a different keyboard cursor color for insert mode, too.

Thank you!
Pretty cool idea, well done!

authors: Publicker taniarascia


text:
React refactor

Some of the react components are too long and are disorganized

mostly done in cdcdb153414d05c9632504d3453a917aa7ee57e2 b272af973cd6d8a14450ab493cdae8e9f903d34e 43beeb6b4ac6e0bffab4f326e2143ad07d1b03d5 fba71f0d94000f9e65daf9b2fe5e3b3d3b105be9

repo: tannerkrewson/rocketcrab


text:
fetchQuery doesn't handle errors

Describe the bug
When using fetchQuery on the server side, if the fetch function throws an error, it will be logged on the terminal and not caught by the external try catch block wrapping the fetchQuery.
I avoid this problem using setQueryData and fetching before, but I still think it's an unexpected behaviour.
Your minimal, reproducible example
https://codesandbox.io/s/fetch-query-error-83fcch?file=/pages/post/[id].js
Steps to reproduce

Open with the following url: /post/120
You will see the error in the server terminal

Expected behavior
As there is a try catch block outside the fetchQuery, I expected it to catch the error.
How often does this bug happen?
No response
Screenshots or Videos
No response
Platform

Nextjs:  v12.1.0
Nodejs: v16.10.0

react-query version
v3.34.19
TypeScript version
No response
Additional context
No response

I guess you are talking about this error printed to the console:
Error: No result found!
    at fetchPost (webpack-internal:///./hooks/usePost/index.js:20:11)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

In v3, react-query logs errors resulting from fetches to the console. We're providing a setLogger method where you can overrides this behaviour:
import { setLogger } from 'react-query'

setLogger({
  log: console.log,
  warn: console.warn,
  error: () => {},
})

working fork of your sandbox: https://codesandbox.io/s/fetch-query-error-forked-e1lydj?file=/pages/index.js
see also:

https://tkdodo.eu/blog/testing-react-query#silence-the-error-console

please note that in v4 (currently in beta), things are a bit differently:

errors are only logged in development mode, not in production. That is similar to what react does with dev-only warnings, so you don't need to turn them off with setLogger anymore.
setLogger doesn't exist anymore. Instead, you can pass a custom logger to the QueryClient as a prop.

Oh I see, thank you for the explanation!
I was having problem with that log because Sentry somehow logged that error and was displayed differently than other tracked errors.
Thank you for the heads up, I'll leave it with setQueryData for now and maybe change it back once we migrate to v4.

authors: TkDodo federico-moretti

repo: tannerlinsley/react-query


text:
use button type button in pagination to prevent form submitting if using inside of the form

connected to #114
Sorry notice that after last PR was already merged.

Nice catch :)

repo: tannerlinsley/react-table


text:
[Bug Report] Memory leak happend when call run_search multiple times

I changed the function run_search_cli  to
pub fn run_search_cli(matches: &ArgMatches) -> Result<(), String> {
    let index_directory = PathBuf::from(matches.value_of("index").unwrap());
    let query = matches.value_of("query").unwrap();
    loop {
        run_search(&index_directory, &query).map_err(|e| format!("{:?}", e));
        let ten_secs = time_std::Duration::from_secs(10);
        thread::sleep(ten_secs);
    }
    Ok(())
    // run_search(&index_directory, &query).map_err(|e| format!("{:?}", e))
}

In MacOS Sierra, from command line, I call tantivy search -i wikipedia-index -q "barack obama" .
And then the memory leak happens, the memory goes from 1MB to 36MB in one hour, about 10KB/second leak rate

Thanks. Are you on master ?

Also can you confirm that this is anonymous memory and not page cache?

On version 0.3.1
2.I'm afrait not, just new to rust and tantivy :D, although i'm trying to study the source code of tantivy,by the way,very nice project and source code!

PS: If I call run_search with very short interval,then no memory leak happens

If I leave out the loop interval,then memory leak become crazy quick,  in just several seconds, memory goes up to 500MB

how do you measure memory going up?

from top,and the memory will never goes down

Just now,I've tried 0.4.0,It seems ok now

Ok,problem resolved in 0.4.0, thats awesome,thanks for your help

Oh I see. This must be the bug in crossbeam. Yes it has been "workaround" in 0.4.0.
For the info, even for users using 0.3.1, it is not an "horrible" leak. It only happens if you reopen the index over and over.

authors: fulmicoton sunfaces

repo: tantivy-search/tantivy


text:
Bug: Trouble with numpy using macs2 2.1.2

Hi I have some trooble with my macs2 environment installed with conda. The source of the package it's in the channel bioconda and the version of macs2 is 2.1.2. The version of numpy is : 1.16.4 ( I've try with the 1.17 version but it's seems the same issues).
Here you have the error of macs2 :
`
Traceback (most recent call last):
File "/opt/share/FLOCAD/userspace/cpichot/miniconda3/envs/macs2TestNewInstall/bin/macs2", line 622, in
main()
File "/opt/share/FLOCAD/userspace/cpichot/miniconda3/envs/macs2TestNewInstall/bin/macs2", line 56, in main
from MACS2.callpeak_cmd import run
File "/opt/share/FLOCAD/userspace/cpichot/miniconda3/envs/macs2TestNewInstall/lib/python2.7/site-packages/MACS2/callpeak_cmd.py", line 31, in
from MACS2.OptValidator import opt_validate
File "/opt/share/FLOCAD/userspace/cpichot/miniconda3/envs/macs2TestNewInstall/lib/python2.7/site-packages/MACS2/OptValidator.py", line 27, in
from MACS2.IO.Parser import BEDParser, ELANDResultParser, ELANDMultiParser,
File "init.pxd", line 861, in init MACS2.IO.Parser (MACS2/IO/Parser.c:22634)
ValueError: numpy.ufunc has the wrong size, try recompiling
'
Do you have any idea to solved my problem ?
thanks in advances

I feel it's a compilation issue. MACS2 contain some Cython codes that have to be translated into C code. The translation depends on 1. Python version; 2. Cython version; 3. Numpy version. I think MACS2 has to be re-compiled (or the C code has to be regenerated in the new environment). The easiest way for me is to install MACS2 through PyPI system -- "pip install macs2". I don't use conda so can't comment.

Had the same issue yesterday, reinstallation of numpy from the same conda channel as MACS solved my issue

Thank you Davide! @dawe

authors: El-Castor dawe taoliu

repo: taoliu/MACS


text:
where you load the checkpoint of ViT backbone?

where to load the checkpoint of base model?  i cannot find where you load the checkpoint of ViT backbone

Please refer to https://github.com/taoyang1122/adapt-image-models/blob/main/mmaction/models/backbones/vit_clip.py#L146

thank you very much!


text:
Issue 736 upgrade iframe version

This PR addresses the issue #736, where the objective was to upgrade the iframe-resizer-react package to the current latest version.
After a bit of research I found out that the new version was now called @iframe-resizer/react, and the child script that goes into the HTML content of the iframe was updated as well. Therefore the changes are as follows:

Updated package.json to reflect correct package
Updated the js script in /public/js/iframeResizer.contentWindow.min.js to the current latest child script. (this script goes into the HTML content in the iframe),
Updated the HtmlPreview.tsx file to use the correct package, and use the open source license.

I was able to test this iframe on google chrome and safari on mac, and it worked perfectly.
Please let me know if any more changes are needed!!l.

Your stuff looks good, but I'm not happy with all this console spam:

Is there a way to silence all this?  If not, I think we should look for an alternative, or stick with what we have.

Hey can you talk about how to reproduce these logs? because I dont see these logs on my console. Regardless, even I am getting the license log, I dont think we can get rid of that.

authors: KrinsKumar humphd


text:
feat: committee chart and inspect in new page

Description
Installs React E-charts.
Adds a chart to committees that displays the number of committees and amount of members per committee.
Adds a details page to inspect committee members.
Adds the committees page to the side menu.
I moved where some of the state gets generated from ValidatorNode.tsx to App.tsx and exported it as a context object. This way the current epoch, shardKey and identity are all easily accessible from anywhere in the app.
Motivation and Context
Adds the ability to inspect committees and show them visually.
We can use E-charts for other charts inside the app.
Data like current epoch, identity, etc was being passed down as props, making it difficult to access from pages that were not being called from ValidatorNode.tsx, so it's now in a context object that you can import into any page.
How Has This Been Tested?
Manually
What process can a PR reviewer use to test or verify this change?
When running the app, there should now be a chart above committees where you can click to inspect the committee members.
You can also click on the committees menu item and it should now display the committee info.
Breaking Changes
x

[x] None
[ ] Requires data directory to be deleted
[ ] Other - Please specify

In one of the PRs (#521) I had to update the package-lock.json and then it built

repo: tari-project/tari-dan


text:
Update docs.lua

A possible update to the website generator: when the sample output is in html, the website displays it within an iframe rather than showing its source code.
See here for a demo on a fork.

I like that. Thanks!

authors: jdutant tarleb

repo: tarleb/lua-filter-template


text:
Feature Request: Dark-Mode Options for Zendesk Chat

The chat text is white and you can't read it when the iphone is in dark mode.
Does anyone know how to fix this ?

@jeaniekarina -- unfortunately dark mode support needs to be discussed with Zendesk directly.
To my knowledge, we don't do any styling in react-native-zendesk-chat
(iOS code here: https://github.com/taskrabbit/react-native-zendesk-chat/blob/master/ios/RNZendeskChatModule.m )

@jeaniekarina if you reach out to Zendesk and they do provide documentation for how to fix this, we'd be very appreciative for either that documentation or even better: a pull request implementing the changes needed. Please do let us know.

@jeaniekarina I found this documentation for Zendesk iOS & Dark Mode: https://developer.zendesk.com/embeddables/docs/ios-chat-sdk/customization#ios-13-and-dark-mode-support

Closing as answered by Zendesk Documentation

authors: fbartho jeaniekarina

repo: taskrabbit/react-native-zendesk-chat


text:
壁紙がかぶった際の動作

とあるアプリに設定してない壁紙がつく
LINEに壁紙を設定した際に、ブラウザでLINE関連のサイトを見るとなる。
原因は恐らくブラウザのタイトルにページのタイトルを入れるためなのでしょう。
ブラウザのタイトルにLINEがあるからLINEで登録した壁紙が表示される。
それが原因です。
別の壁紙と切り替わりチカチカする
恐らく別の壁紙に設定しているウィンドウタイトルが、そのウィンドウにあるため干渉するからです。

v1.2.1のアップデートで解決しました。

repo: tasuren/FreedomWall


text:
Replace SQS with an open-source alternative.

Let's make NotifyOne a cloud agnostic tool. And to achieve this, we first need to replace the AWS specific tools being used (s3, sqs) with other open-source counterparts.
This issue is about replacing SQS with and open-source counterpart.
In my opinion -

Replace SQS with Kafka

Hi @prshant70
I checked the code. Before moving to Kafka few points are needed:

We can't move CRITICAL events to Kafka as it is API Based.
What will be the partition key at each level (Gateway, core, handler) It is one of the major factors in deciding scalability. My suggestion will be partitioned by the receiver's identifier (Phone, Email, etc). This will maintain the Sequence of communication also (in Ideal Case).
Can the user change/configure the partition key?
Code is tightly coupled with 1mg Commons (Torpido) Do you prefer Kafka Common Code need to be written in (Torpido) or in the same repo?
APM is one of the components that is tightly coupled, Use OpenTelemetry for Application traces (Telemetry Data). Most of the vendors support OpenTelemetry.

Hi @riki-nitdgp
Thanks for your time. These are important questions that must be answered before we move forward.
Please find my opinion inline to the pointers raised by you -
We can't move CRITICAL events to Kafka as it is API Based.
    Yes, CRITICAL priority events are expected to be handled with synchronous processing. This is important to prioritise

these events correctly in the system. Ideally, we would never want to use a queue to process CRITICAL events.
What will be the partition key at each level (Gateway, core, handler) It is one of the major factors in deciding scalability.
My suggestion will be partitioned by the receiver's identifier (Phone, Email, etc). This will maintain the Sequence of
communication also (in Ideal Case)
    In my opinion, we must start with default partitioning logic where messages are routed to partitions randomly. Sticking partition logic to message attributes like event_id or phone/email, etc might imbalance the number of messages in different partitions and thus result in hampering the priority of processing the events.
    However, we must keep the number of partitions count on higher side (must be controlled by NotifyOne) to make sure that when we scale-up the consumers group, consumers don't sit idle.

Exponential Backoff is not supported in Kafka, What's your opinion on handling failed cases?
    I think we need to handle this using the retry logic and the max retry attempts. The subscriber code in notifyone-core is already structured in a way that it won't trigger the event if the a messages is duplicate (subscribed more than once).

Can the user change/configure the partition key?
    No. These must be system controlled to guarantee the scale and priority processing.

Code is tightly coupled with 1mg Commons (Torpedo) Do you prefer Kafka Common Code need to be written in (Torpedo) or in the same repo?
    Ideally, we should add the Kafka wrapper in the [commonutils](https://github.com/tata1mg/commonutils) repo. This utility is already being used across all NotifyOne services and is intended to contain common utility code needed across services.

APM is one of the components that is tightly coupled, Use OpenTelemetry for Application traces (Telemetry Data). Most of the vendors support OpenTelemetry.
    This is already in plan and will be release as a new torpedo release. We can skip this from the current context.

Tracing is one more challenge in Kafka.
    We can look into this separately when we work on replacing the current elastic APM integration with open-telemetry.

@riki-nitdgp
I know there are certain challenges when we use Kafka as message queue and consumers scale-up and scale-down frequently. We don't necessarily need to use Kafka here, if you have any other alternative in mind or think that other open source alternatives to SQS might be a better fit here, we are open to discuss.


text:
機能追加提案

あつかましい要望となりますが、ログとは別に取得ファイル一覧タブを追加し、メイン画面とするのはいかがでしょうか。
ファイル名、ステータス(取得済、未取得、エラー等)を表示し、ログ同様に任意に全クリア可能とするイメージです。
タップで関連付けした外部ビューアで画像表示できるといいですね。
ファイル取得系のログを別の色にするだけでもご検討いただければと思います。

ファイル更新履歴は良いかもしれませんね。シェアとかにも便利そうだし

適当に実装してpushしておきました

試してみたら、SDカードやUSBメモリなどのnon-primary storageを開けない画像ビューアがありました。QuickPic等… primary storage にコピーしてから開かせる等した方が良いかもしれません

どれをメイン画面にするかより、最後に開いていたタブを覚える方を検討した方がよさそう

仕事が早いですね！ありがとうございます！
さっそく試してみたところ、5.0では想定通りビューワを選択して表示できましたが、 4.3(Note3)ではいきなり「PDFを表示できません」でエラーとなり、4.0.4(Note1)では何も起こらない状態です。
5.0で表示可能な「フォト」が4.xにもインストールされているのですが、私の環境だけの問題かもしれません。
明細内容は
「ファイル名（パス無し）」「ステータス」（できれば色付け）
もしくは
「受信日時」
「ファイル名（パス無し）」
「ステータス」
くらいが視認性がよいように感じます。（他は「詳細」ボタン、長押しから「詳細」もしくはログで確認など・・）
一覧に未取得ファイルも表示されるといいですが、リスト取得毎に更新が必要になりそうですね。。

最後に開いていたタブを覚える
そちらの方がよさそうですね。

途中で中断したら未取得ファイルはいつ消すのか…って問題がありまして
履歴とキューを同じリストにするのはUI的によくないと思います。
試してみたら未取得時にファイルが追加されて、その後ダウンロードされたファイルが（時間順なので)リストの一番上に移動します。
キューだけのビューを作るのも考えましたが、あまり有用ではないだろうということで
かわりに状況表示の黒い部分に進捗率と残りファイル数、バイト数を記載しました。
履歴のリスト内の表示をシンプルにしました。サムネイル表示を追加しました。
リスト内の項目をタップするとダイアログが開き、詳細情報の確認とView,Sendを選べるようにしました。
view,sendはファイルを端末のダウンロードフォルダにコピーしてそれをIntentに指定するようにしました。
また、ファイル拡張子とMimeTypeMap APIでmime typeを適切に指定したintentを送るようにしました。
検討中ですが詳細情報にサムネイル、Av,Tv,ISO,Xv(露出補正)、機種名などを詳細に表示するのもアリかもしれません
悩んだのがEXIFの回転情報を使ってサムネイルを回転させるかどうかです。現在は回転させています。
しかしシェア先のアプリは自動回転に対応していないものがままあるため、シェア目的の一覧では自動回転させない方が良いのでは？とも思っています

お疲れ様です。
ダウンロード履歴、すばらしいです。
サムネイル表示、フォントサイズ調整など期待を上回る仕上がりです。
ビューワ連携も4.3、4.0.4でも問題なく表示されることを確認しました。
転送された画像がビューワに反映されるタイミングが気まぐれなので助かります。
未取得ファイル表示については現在の信頼度であれば残りファイル数がわかれば十分です。
ありがとうございました^^
一点、ファイルを端末のダウンロードフォルダにコピーするのはnon-primary storageを開けない画像ビューアへの対策と思われますが、view,send後もファイルが残り、ビューワ(Note3の「ギャラリー」等)に出現してしまうので、直接表示/コピー表示を「設定」で選択可能としていただけるとありがたいです。
サムネイルを回転についても「設定」でユーザーに任せればよいかと考えます。

設定を二つ追加しました。
non-primary storageのフォルダパスを取得する非公開APIを使うようになったので、そのAPIが使える端末でならコピー設定をオフにしてもQuickPicで開けるようになりました。Androidのソースをみると5.0から7.1まですべて大丈夫だとは思います。

ほぼ理想のカタチになりました。ありがとうございました！

authors: tateisu wawyam

repo: tateisu/FADownloader


text:
[bug] Tauri 2.1.1 & 1.8.1 is affected by glib-rs 0.15 security vulnerability

Describe the bug
The tauri 1.8.1 Rust package currently requires glib@0.15 on Linux, but versions of glib (the Rust bindings) >=0.15 and <0.20 are affected by https://github.com/advisories/GHSA-wrw7-89jp-8q8g . I believe (but am not sure) that the nightly version of Tauri 1 probably depends on glib@0.18, which is also bad.
GitHub informed me about this in https://github.com/ilyagr/diffedit3/security/dependabot/10.
Reproduction
No response
Expected behavior
It'd be great if there was a tauri 1.18.2 that could work with glib 0.20 :)
Full tauri info output
N/A

Stack trace
No response
Additional context
No response

Since the gtk3 bindings are unmaintained I think this is a wontfix sadly. (We don't use glib directly ourselves)

If the gtk3 bindings are never made compatible with glib 0.20, another option might be to downgrade to gtk 0.14.3.

Actually, Tauri 2.1.1 also seems affected. I'm surprised it's not showing up in the Security tab of this repo; I guess you didn't enable dependency-based security warning.

We do see them in the Security tab, but only those with repo access can see that (afaik github doesn't allow us to make this public?).
And I think there's no gh issue because this is still not resolved: https://github.com/rustsec/audit-check/issues/8
I doubt anyone in the community would be interested in forking the gtk3 bindings so i'll close this in favor of #7335 (but only because this unsound issue doesn't seem to affect us)

Thanks for looking into this!
I didn't understand what you said about https://github.com/rustsec/audit-check/issues/8 or why this "wouldn't affect us", so I'd appreciate more details, but you are the expert here, so I trust your conclusion that Tauri for Linux not on fire. Glad to hear it!

I didn't understand what you said about https://github.com/rustsec/audit-check/issues/8 and how the check should be behaving

We have an audit workflow that opens public issues like this one https://github.com/tauri-apps/tauri/issues/11641 but it's not working for unsound issues due to a bug in the linked github action.

nor why this "wouldn't affect us"

This was about the unsound issue itself. We've been using the affected glib versions for 3? years (since the day 0.15 was released basically) without any issues. This is good enough in my eyes to not have us spend resources that we really do not have on forking&maintaining the gtk3 crates.

authors: FabianLars ilyagr

repo: tauri-apps/tauri


text:
[feat] Allowing for native inset OS X traffic lights on NSWindow

Describe the problem
Many apps (also electron apps) have customized traffic light position to fit their style better. In electron this is achieved through a config file that calls native objc code. I would like this in tauri as it would allow for cleaner more intentional designs.
Describe the solution you'd like
I have already worked on this in issue #2663. I used the electron source as inspiration.
A file called window_ext.rs:
use tauri::{Runtime, Window};

pub trait WindowExt {
    #[cfg(target_os = "macos")]
    fn set_transparent_titlebar(&self, transparent: bool);
    fn position_traffic_lights(&self, x: f64, y: f64);
}

impl<R: Runtime> WindowExt for Window<R> {
    #[cfg(target_os = "macos")]
    fn set_transparent_titlebar(&self, transparent: bool) {
        use cocoa::appkit::{NSWindow, NSWindowTitleVisibility};

        let window = self.ns_window().unwrap() as cocoa::base::id;

        unsafe {
            window.setTitleVisibility_(NSWindowTitleVisibility::NSWindowTitleHidden);

            if transparent {
                window.setTitlebarAppearsTransparent_(cocoa::base::YES);
            } else {
                window.setTitlebarAppearsTransparent_(cocoa::base::NO);
            }
        }
    }

    #[cfg(target_os = "macos")]
    fn position_traffic_lights(&self, x: f64, y: f64) {
        use cocoa::appkit::{NSView, NSWindow, NSWindowButton};
        use cocoa::foundation::NSRect;

        let window = self.ns_window().unwrap() as cocoa::base::id;

        unsafe {
            let close = window.standardWindowButton_(NSWindowButton::NSWindowCloseButton);
            let miniaturize =
                window.standardWindowButton_(NSWindowButton::NSWindowMiniaturizeButton);
            let zoom = window.standardWindowButton_(NSWindowButton::NSWindowZoomButton);

            let title_bar_container_view = close.superview().superview();

            let close_rect: NSRect = msg_send![close, frame];
            let button_height = close_rect.size.height;

            let title_bar_frame_height = button_height + y;
            let mut title_bar_rect = NSView::frame(title_bar_container_view);
            title_bar_rect.size.height = title_bar_frame_height;
            title_bar_rect.origin.y = NSView::frame(window).size.height - title_bar_frame_height;
            let _: () = msg_send![title_bar_container_view, setFrame: title_bar_rect];

            let window_buttons = vec![close, miniaturize, zoom];
            let space_between = NSView::frame(miniaturize).origin.x - NSView::frame(close).origin.x;

            for (i, button) in window_buttons.into_iter().enumerate() {
                let mut rect: NSRect = NSView::frame(button);
                rect.origin.x = x + (i as f64 * space_between);
                button.setFrameOrigin(rect.origin);
            }
        }
    }
}

main.rs:
#![cfg_attr(
    all(not(debug_assertions), target_os = "windows"),
    windows_subsystem = "windows"
)]

#[cfg(target_os = "macos")]
#[macro_use]
extern crate objc;

use tauri::{Manager, WindowEvent};
use window_ext::WindowExt;

mod window_ext;

fn main() {
    tauri::Builder::default()
        .setup(|app| {
            let win = app.get_window("main").unwrap();
            win.set_transparent_titlebar(true);
            win.position_traffic_lights(30.0, 30.0);
            Ok(())
        })
        .on_window_event(|e| {
            if let WindowEvent::Resized(..) = e.event() {
                let win = e.window();
                win.position_traffic_lights(30., 30.);
            }
        })
        .run(tauri::generate_context!())
        .expect("error while running tauri application");

}

In general this works:

The on_window_event listener is there because without it the traffic lights would take their original position when the window is resized. This comes however with an annoying problem: The NSWindow handle becomes only available after the window is already rendered. That causes some annoying artifacts. You can see the original traffic lights before they are repositioned for a very short time.
So the task is somehow tapping into the tao render pipeline or something else to draw the traffic lights before the window is rendered.
Alternatives considered
I don't really have any. Maybe somehow controlling the NSWindow completely ourselves. Please make suggestions if you know more about the tauri source.
Additional context
There are still some #[cfg(target_os = "macos")] missing. Feel free to add them.

I would also like to have a function like this

I'm working on this in PR https://github.com/tauri-apps/tao/pull/513

When changing the size of the window, there will be a problem of flashing OS X traffic lights, can this be solved?

So the task is somehow tapping into the tao render pipeline or something else to draw the traffic lights before the window is rendered.

I honestly don't believe that is possible, the traffic lights are part of the window and so everything there is rendered as one unit

Oh but in general I agree 100%, the current solution is definitely imperfect, but right now I rather have traffic lights that have ugly padding than traffic lights that flicker and jump around (this is not only a matter of taste, but also of usability)

After switching the system theme, the OSX traffic lights return to their original position

It’s definitely possible in native Tao: https://github.com/tauri-apps/tao/pull/513
this is a pull request I did on that issue. This works without artifacts. It’s not merged yet because of some conflicts. I have just now noticed these.

After switching the system theme, the OSX traffic lights return to their original position

@duhiqc you can adjust the above code to this, and that'll solve that issue:
.on_window_event(|e| {

    let apply_offset = || {
        let win = e.window();
        win.position_traffic_lights(30., 30.);
    }

    match e.event() {
        WindowEvent::Resized(..) => apply_offset(),
        WindowEvent::ThemeChanged(..) => apply_offset(),
        _ => {}
    }

})

It's possible to just hide them ? For my app I don't need them.

I'm not a macOS developer and only did a few mins of research on this topic but I've found this gist. Maybe it's helpful in this context?

I don't really have the motivation, time or Know-how to work at this at the moment. Maybe someone else could take off from here? Please also take a look at my PR to Tao mentioned above.

It's possible to just hide them ? For my app I don't need them.

Yes. Definitely. I believe that's even officially possible through the tauri config file.

Would love to see this go through! Subscribing to this thread.

@dukeeagle funny to run into you on Tauri issues 😛
It's actually quite easy to implement this using the above two solutions. Feels native. Thanks for the great work @haasal and @tr3ysmith!

It's possible to just hide them ? For my app I don't need them.

/en  请问一下,你找到方法了吗

切换系统主题后，OSX交通灯返回原来的位置

@duhiqc您可以将上面的代码调整为此，这将解决该问题：
.on_window_event(|e| {

    let apply_offset = || {
        let win = e.window();
        win.position_traffic_lights(30., 30.);
    }

    match e.event() {
        WindowEvent::Resized(..) => apply_offset(),
        WindowEvent::ThemeChanged(..) => apply_offset(),
        _ => {}
    }

})

After using this scheme, the taskbar will flicker.

切换系统主题后，OSX交通灯返回原来的位置

@duhiqc您可以将上面的代码调整为此，这将解决该问题：
.on_window_event(|e| {

    let apply_offset = || {
        let win = e.window();
        win.position_traffic_lights(30., 30.);
    }

    match e.event() {
        WindowEvent::Resized(..) => apply_offset(),
        WindowEvent::ThemeChanged(..) => apply_offset(),
        _ => {}
    }

})

After using this scheme, the taskbar will flicker.
2023-09-22.10.36.51.mov

Same here

Couldn't fix the flickering issue, which was terribly annoying. But after some searching, I found this article: https://juejin.cn/post/7114740998579847198.
In this article the author decided to go the way of using toolbar. I was quite satisfied with it. I hope it will help someone.

I have already described this issue in my initial post. This is the reason why this issue was opened. Because currently there isn't really any way to get rid of this artifact. Please read the issue for more information

Important Update: The PR for Tao was merged today. We now have to wait until a new Tao version is used by wry and then by tauri before the feature can be implemented in tauri itself.

awesome. Can't wait :-)

Any updates on this?

@haasal could you explain how to use this? I could not find any information on that whatsoever. Thanks

I forgot to mention this. There is a weird bug in wry which causes the new inset implementation in Tao not to work and I have no idea how to fix this. This has been a huge pain already which is really unfortunate. Help is appreciated! Wry Issue
@appinteractive it unfortunately doesn't work yet. The best you can do is setting the title bar style somewhere in the tauri config file

Hoppscotch implement this function and solve the flickering issue.
https://github.com/hoppscotch/hoppscotch/blob/286fcd2bb08a84f027b10308d1e18da368f95ebf/packages/hoppscotch-selfhost-desktop/src-tauri/src/mac/window.rs#L70-L101

Thanks @wyhaya that worked like a charm!

I'm pretty new to Rust, but I followed along with https://github.com/hoppscotch/hoppscotch/blob/286fcd2bb08a84f027b10308d1e18da368f95ebf/packages/hoppscotch-selfhost-desktop/src-tauri/src/mac/window.rs#L70-L101 and updated it to work with Tauri 2.x

I'm pretty new to Rust, but I followed along with https://github.com/hoppscotch/hoppscotch/blob/286fcd2bb08a84f027b10308d1e18da368f95ebf/packages/hoppscotch-selfhost-desktop/src-tauri/src/mac/window.rs#L70-L101 and updated it to work with Tauri 2.x
Gist here https://gist.github.com/charrondev/43150e940bd2771b1ea88256d491c7a9
In addition to working with Tauri 2.x it also works for all windows, rather than just the main one.

Thank you! gist works great.
However I would just like to bring up a small issue with this implementation:
When system's colour scheme changes, the control buttons' height gets reset, and only goes back to their desired position after resizing.
https://github.com/user-attachments/assets/140de21a-312e-4c26-9646-6413ab8e60e5
It's one of those things where its all peaceful until you found out about it then it lives rent-free in your head
Would be delightful if a solution can be identified 😄

authors: JonasKruckenberg KaliaJS PavelLaptev Toursslivers Wind-Explorer appinteractive charrondev duhiqc dukeeagle haasal ilsur1103 notbucai rickmartensnl sauhaardac schickling sohaha tr3ysmith wyhaya yooouuri


text:
promise callback thread panics when calling execute_promise through WebviewMut.dispatch

Describe the bug
if you call tauri::execute_promise through webview.as_mut().dispatch, it causes panic at unnamed thread, probably due to the pointer getting dropped before spawned thread for promise actually executes given callback.
This bug appeared right after I updated tauri to latest version, and fixed my code which used web_view::Handle to webview_official::WebviewMut.
This is probably a really weird bug (or maybe it isn't even a bug) and I know this isn't not how everyone does things,
but I thought it's better to report this just in case if someone else encounters the same bug.
To Reproduce
put this code in main.rs and compile, then send command panic through promise using promisified function.

Repro code
#![cfg_attr(
    all(not(debug_assertions), target_os = "windows"),
    windows_subsystem = "windows"
)]
use serde::{Deserialize};
use webview_official::{Webview, WebviewMut};

#[derive(Debug, Deserialize)]
#[serde(tag = "cmd", rename_all = "camelCase")]
enum Command {
    Panic {
        callback: String,
        error: String
    }
}

fn handle(webview: &mut Webview, cmd: Command) -> Result<(), String>{
    match cmd {
        Command::Panic { callback, error } =>
        {
            let mut mutable_pointer = webview.as_mut();
            mutable_pointer.dispatch(move |new_webview| {  // <- this new_webview is a brand new instance of Webview

                // inside this execute_promise, it creates new WebviewMut that points to a new_webview,
                // and then it spawns a thread which will try to evaluate callback using WebviewMut.
                tauri::execute_promise(new_webview, || {
                    Ok("this may get sent correctly, or causes panic.".to_string())
                }, callback, error);

            // But the new_webview will get dropped right here before the thread evaluates given callback,
            // which causes panic inside the thread.
            });
        }
    }
    Ok(())
}

fn main() {
    tauri::AppBuilder::new()
        .invoke_handler(move |webview, arg| {
            match serde_json::from_str(arg) {
                Err(e) => Err(e.to_string()),
                Ok(command) => handle(webview, command),
            }
        })
        .build()
        .run();
}

Expected behavior
Promise gets rejected properly.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform and Versions (please complete the following information):

Info
Operating System - Linux(5.6.13-arch1-1) - linux/x64
Node.js environment
Node.js - 14.5.0
tauri.js - 0.11.0
Rust environment
rustc - 1.45.0
cargo - 1.45.0
tauri-bundler - 0.9.1
Global packages
NPM - 6.14.6
yarn - 1.22.4
App directory structure
/.git
/.idea
/dist
/node_modules
/public
/src
/src-tauri
App
tauri.rs - 0.9.0
mode - no-server
build-type - build
CSP - default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'
distDir - ../dist
devPath - http://localhost:4000

Additional context
You can workaround this bug by replacing execute_promise to execute_promise_sync,
or just pass normal &mut Webview straight up instead of using WebviewMut.dispatch.
Stack Trace
thread '<unnamed>' panicked at 'Failed to dispatch promise callback: WebviewNull', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-0.9.0/src/lib.rs:97:7

RUST_BACKTRACE=1
[1] thread '<unnamed>' panicked at 'Failed to dispatch promise callback: WebviewNull', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-0.9.0/src/lib.rs:97:7
[1] stack backtrace:
[1]    0: backtrace::backtrace::libunwind::trace
[1]              at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86
[1]    1: backtrace::backtrace::trace_unsynchronized
[1]              at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66
[1]    2: std::sys_common::backtrace::_print_fmt
[1]              at src/libstd/sys_common/backtrace.rs:78
[1]    3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
[1]              at src/libstd/sys_common/backtrace.rs:59
[1]    4: core::fmt::write
[1]              at src/libcore/fmt/mod.rs:1076
[1]    5: std::io::Write::write_fmt
[1]              at src/libstd/io/mod.rs:1537
[1]    6: std::sys_common::backtrace::_print
[1]              at src/libstd/sys_common/backtrace.rs:62
[1]    7: std::sys_common::backtrace::print
[1]              at src/libstd/sys_common/backtrace.rs:49
[1]    8: std::panicking::default_hook::{{closure}}
[1]              at src/libstd/panicking.rs:198
[1]    9: std::panicking::default_hook
[1]              at src/libstd/panicking.rs:218
[1]   10: std::panicking::rust_panic_with_hook
[1]              at src/libstd/panicking.rs:486
[1]   11: rust_begin_unwind
[1]              at src/libstd/panicking.rs:388
[1]   12: core::panicking::panic_fmt
[1]              at src/libcore/panicking.rs:101
[1]   13: core::option::expect_none_failed
[1]              at src/libcore/option.rs:1272
[1]   14: core::result::Result<T,E>::expect
[1]              at /home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/result.rs:963
[1]   15: tauri::execute_promise::{{closure}}::{{closure}}
[1]              at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-0.9.0/src/lib.rs:97
[1]   16: <F as threadpool::FnBox>::call_box
[1]              at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/threadpool-1.8.1/src/lib.rs:95
[1]   17: threadpool::spawn_in_pool::{{closure}}
[1]              at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/threadpool-1.8.1/src/lib.rs:769
[1] note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

The next Tauri version removes WebviewMut in favor of a more robust interface, so this issue will be resolved automatically.

authors: ghost nklayman


text:
🛑 Server CHARLY is down

In e3eb36c, Server CHARLY (https://charlie.tauronik.de:5001) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Server CHARLY is back up in be4e769 after 54 minutes.

repo: tauronik/tauro-upptime


text:
🛑 Server CHARLY is down

In f833d4b, Server CHARLY (https://charlie.tauronik.de:5001) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Server CHARLY is back up in c0dfc1e after 10 minutes.


text:
How is multiple jobs processed ?

Hi,
If there is 10 jobs coming (assume each job requires 50% CPU running for 2 min), how many will the worker server takes and processes ?
As I used Resque before, I can set worker number to 2 per server, so the server will take only 2 jobs at one time and using 10 mins to finish all the job. And I can view the process detail via a web UI.
So I want to know if I could set a worker number for the AEJ like resque? And also can I view the current processing jobs like Resque web UI?
Thanks, the AEJ is a great tool to enjoy aws eb with no extra pain = ]

Emm... based my test, if I flood the server with background jobs, the worker server will just try to process as much as possible. And result few jobs timeout due to, most likely, too many jobs fighting for resources.
So not sure if it's possible to process job in a orderly fashion?  Really appreciate if @tawan could give a bit guide.

Hi @lovesmall
Thanks for you submission!
One major advantage of Elastic Beanstalk Worker environments is the autoscaling feature. If enabled, it launches additional EC2 instances when load increases. Given your example, autoscaling would start additional woker servers, because the original server's load increased. You can enable the autoscaling feature when you launch the worker environment. See the screenshot below!

Given your example, I'd also reduce the number of concurrent requests to 2. This will prevent a worker instance from fetching 10 jobs at once. As you have mentioned, a job requires 50% CPU time, it makes sense, to limit a server to two concurrent jobs, which you can achieve by reducing the number of concurrent HTTP connections.

Hope the answers your question!
If so, feel free to update the FAQ section of the README, and issuing a pull request. Only if you want of course ;)
Cheers,
Tawan

Hi Tawan,
Thank you SO MUCH for tell me the HTTP connections setting, just when I was about to switch back to resque. It works good now.
I'm using auto-scaling but this issue is not related to that. Because even with auto-scaling, i still need handle jobs in an orderly way, as I could have large number of jobs comes in few seconds, and I need "NOT" allow worker takes in too many jobs simultaneously.
For the HTTP connection, I've set my worker server to 2. When there are 200+ message in the queue, I could see  3 or 4 messages "In Flight" at any time now(which is fine). Shouldn't it be "2" at most? Is it like this:

Send a message to worker via HTTP request, a HTTP connection is established.
The HTTP connection is kept open while worker process the job.
Worker finish job and delete the message, HTTP connection is closed.

Thank you if you could clarify a bit on this.
Best,
Yiheng

Hi @lovesmall
Basically you have correctly described the message's lifecycle when consumed by EB worker environments.

Message is in queue (visible)
EB worker SQS daemon fetches message from queue (in flight)
SQS Daemon tries to establish an HTTP connection to the worker application but blocks as long as max other HTTP connections are already open. When the max HTTP connection setting is set to 2, this means that in total 3 messages can be in flight at this step. The third message in flight, is the one that the daemon already fetched from the queue, but it has to wait until it can open an HTTP connection.
The HTTP is established and the message is passed as an HTTP request to the worker application.
The worker application responds with an 200 OK status
The SQS daemon sends a DELETE message call to the queue.

Please, also have a look at this SO discussion.
Cheers,
Tawan

Hi @lovesmall
Thanks for you submission!
One major advantage of Elastic Beanstalk Worker environments is the autoscaling feature. If enabled, it launches additional EC2 instances when load increases. Given your example, autoscaling would start additional woker servers, because the original server's load increased. You can enable the autoscaling feature when you launch the worker environment. See the screenshot below!

Given your example, I'd also reduce the number of concurrent requests to 2. This will prevent a worker instance from fetching 10 jobs at once. As you have mentioned, a job requires 50% CPU time, it makes sense, to limit a server to two concurrent jobs, which you can achieve by reducing the number of concurrent HTTP connections.

Hope the answers your question!
If so, feel free to update the FAQ section of the README, and issuing a pull request. Only if you want of course ;)
Cheers,
Tawan
@tawan
I saw your comment from four years ago. When enabling autoscaling on a worker environment, a load balancer will have to be created manually, correct? My autoscaling worker environment is stuck in a Severe Health State. I have tried relaunching the environment but I still cannot sustain a healthy environment. Environment health has transitioned from No Data to Severe. Do you have any additional instructions? Thank you!

authors: lovesmall rccassity tawan

repo: tawan/active-elastic-job


text:
Update whisper.cpp version to 1.5.4

Title says it all.
Changed version of whisper-rs-sys to 0.8.1
Works for me in simple environment as before.
Fixes #103

Looks like whisper.cpp added a new function in these updates, this should be added: see https://github.com/ggerganov/whisper.cpp/compare/d38af151a1ed5378c5a9ae368e767ed22c8ab141...0b9af32a8b3fa7e2ae5f15a9a08f5b10394993f5#diff-46bc59b448d0e369ff4fbbc995a5c509db6caf1cee3a458f17482fae3086e457R318-R319

Looks like whisper.cpp added a new function in these updates, this should be added: see ggerganov/whisper.cpp@d38af15...0b9af32#diff-46bc59b448d0e369ff4fbbc995a5c509db6caf1cee3a458f17482fae3086e457R318-R319

My bad, haven't checked .h file changes. Added this function + bumped version of whisper-rs to 0.10.1
And I supposed that the bindings.rs file is being generated into src/ folder, but it's not.
So I've copied it from build folder. Not sure if it's correct approach, sorry - first time working with bindings.

If possible, can you run bindgen on a Linux system to minimize the change here? If not, no worries, just remove the bindings and I'll do so myself after merge.

If possible, can you run bindgen on a Linux system to minimize the change here? If not, no worries, just remove the bindings and I'll do so myself after merge.

Done. Thx.

Thanks :)


text:
Start songs with delay

Start a song with delay.

Perfect! Thanks 🎉

authors: hessenh tbaranes

repo: tbaranes/AudioPlayerSwift


text:
Remove parent and child/childs views

Hi all,
I've been playing around with Layout Manager for two weeks now and i ran into some difficulties or not.
I have one ParentView and one ChildView. When I try to remove the parent view with .remove() the child html is removed but the instance is still in memory somewhere, I see that with BackBone Eye (firefox) and also with Backbone Debugger (chrome) ... now when I do child.remove() and then parent.remove() both are removed from memory and no trace is left anymore. Am I doing something wrong? or did not understood the correct functionality of LM.View.remove() ???

Closing until more proof can be produced.

authors: djhojd tbranyen


text:
Path to stage 3

[x] Complete spec text

[x] @Kingwl
[x] @DanielRosenwasser

[ ] Designated reviewers have signed off

[ ] @ljharb
[ ] @leobalter
[x] @codehag

[ ] ECMAScript editors have signed off

[ ] (Sorry I'm not sure)

Thanks everyone!

Hello everyone. I (and Dainel) think we have already completed the specification.
Would you mind take a look on it?
The deadline of next meeting is at April 9th. If we can finished before April 8th, we can try to push this into stage 3 in the next meeting.
Thanks All!

Thanks for the heads up!

Super minor: why change the variable names from what’s used in https://tc39.es/ecma262/#sec-array.prototype.find ? (idx vs k, Pi vs Pk, iValue vs kValue? I have a very mild preference for making them the same.
Otherwise, LGTM.

Thanks for the review!

why change the variable names
I thought they are different things(one is a value{named k}, another is an index).
I'm happy to change them back too.

find/findIndex use k for “key”

Okay, got it.

Friendly ping 👀.

I've opened a couple of small issues. I think the main was is the potential vagueness in the TypedArray text. Otherwise, I am happy with the spec text.

I +1 to @codehag's feedback and opened another issue due to style consistency, which can be resolved at Stage 3.

Thanks all!
Just checking: May I thought there's no major issues after #45 has beed merged?

yep, looks good.

I assume all reviewers has signed.
So I'd like to @syg.  Would you mind take a look? Thanks!

@Kingwl In general you don't need to manually request editor reviews. The editors meet weekly and prioritize reviewing proposals going for Stage 3+ that have been added to the next agenda.
This was short, so I reviewed it just now, and editorially this looks great to me.

@syg Oh. Sorry for the bother.
And thanks for your review!

Thanks everyone!

authors: Kingwl codehag leobalter ljharb syg