text:
Provide multisig examples for serializing / deserializing multisig messages

As discussed in Slack, it would be great to have support for all the multisig methods here. This does not include proposing arbitrary contract calls, only known contract calls.
And according to @jleni - in order to provide examples, we need to fix all the missing pieces!

(this should include deserializing constructor params too, from the msig initialization). For example:
https://filfox.info/en/message/bafy2bzaceacyyowgzjc3q3ylrd7zl7wlmhlywt7sjesqfx737vapxcbbdmfhm
(we had this working a few months ago, but it seems to have broken for some reason!)

Hi @Schwartz10
It has been a while. Could you update me on this?
We have a way to deserialize all the parameters for all the multisig methods (see https://github.com/Zondax/filecoin-signing-tools/blob/master/signer/src/lib.rs#L1091-L1135). Let me know if I missed one.
Regarding the constructor, you might need to call deserializeConstructorParams after calling deserializeParams. It should be possible to give directly the deserialized paremeters used when initiating the multisig contract tho.

@rllola I'll close this for now, going to revisit in September to build support for all multisig methods into the Glif Wallet and will let you know if there are any questions

Hi @rllola
I'm trying the examples for deserializeParams funtion, but it didn't work. I got an error saying "Error: `Actor type not supported". It seems any Actor type such as "multisig", "paymentchannel" etc. won't work. Do you have any idea what the problem is?
example link:
https://github.com/Zondax/filecoin-signing-tools/blob/945ed77a36ca1f45f075b0e15b1e3c1ae97b5af8/docs/wasm_api.md#L441
My code:
`
const filecoin_signer = require('@zondax/filecoin-signing-tools');
function main() {
let base64_params =
'glUB/R0PTfzX6Zr8uZqDJrfcRZ0yxihVAR6vHIpLv+6whwsXRbH1dQNHC3EW';
let result = filecoin_signer.deserializeParams(base64_params, 'multisig', 7);
console.log(result: ${JSON.stringify(result)});
}
main();
`
Error screenshot:

@herryho That's weird it is definitely a supported actor. Could you tell me which version you are using ?

@rllola The version of @zondax/filecoin-signing-tools is 1.1.2.

@herryho Try to update and use the latest one https://github.com/Zondax/filecoin-signing-tools/releases/tag/v2.3.0
It is 2.3.0

authors: Schwartz10 herryho rllola

repo: Zondax/filecoin-signing-tools


text:
Reports with dashboard

You can close the previous PR as we will also get the modifications of "/dashboard" in this one.

@MoazMirza-13  Great Work. Straight going to PROD 🚀 for now but that for loop on the dashboard gonna charge our ass in the future so keep it in mind.

Fixed the for loop in PR

source: gharchive/pull-request

license: MIT

license_type: permissive

license_source: github-api


text:
Bug doesn't play well with samples names starting with a number.

N E X T F L O W  ~  version 19.01.0
Launching `zuberlab/crispr-mageck-nf` [jovial_engelbart] - revision: 3b2575bbe5 [master]
WARN: Process configuration syntax $processName has been deprecated -- Replace `process.$mageck = <value>` with a process selector
[warm up] executor > slurm
WARN: Process configuration syntax $processName has been deprecated -- Replace `process.$postprocess = <value>` with a process selector
[74/c8674e] Submitted process > mageck (48hIFNG_d04_HLA_high_vs_NoIFNG_d0)
ERROR ~ Error executing process > 'mageck (48hIFNG_d04_HLA_high_vs_NoIFNG_d0)'

Caused by:
  Process `mageck (48hIFNG_d04_HLA_high_vs_NoIFNG_d0)` terminated with an error exit status (1)

Command executed:

  prefilter_counts.R            counts_mageck_ctrls-grouped.txt                 "pmax(48hIFNG_d04_HLA_high,NoIFNG_d0)"          50 > counts_filtered.txt

  VERSION=$(mageck -v 2>&1 >/dev/null)

  if [ $VERSION = "0.5.5" ]; then

   mageck test                  --output-prefix 48hIFNG_d04_HLA_high_vs_NoIFNG_d0                       --count-table counts_filtered.txt                       --control-id NoIFNG_d0                         --treatment-id 48hIFNG_d04_HLA_high                     --norm-method median                    --adjust-method fdr                     --gene-lfc-method mean                         --normcounts-to-file
  else
   mageck test                  --output-prefix 48hIFNG_d04_HLA_high_vs_NoIFNG_d0                       --count-table counts_filtered.txt                       --control-id NoIFNG_d0                         --treatment-id 48hIFNG_d04_HLA_high                     --norm-method median                    --adjust-method fdr                     --gene-lfc-method mean                         --normcounts-to-file
  fi

Command exit status:
  1

Command output:
  (empty)

Command error:
  .command.stub: line 45: ps: command not found
  .command.stub: line 45: ps: command not found
  .command.stub: line 45: ps: command not found

  Attaching package: ‘dplyr’

  The following objects are masked from ‘package:stats’:

      filter, lag

  The following objects are masked from ‘package:base’:

      intersect, setdiff, setequal, union

  Parsed with column specification:
  cols(
    .default = col_integer(),
    id = col_character(),
    group = col_character()
  )
  See spec(...) for full column specifications.
  Error in parse(text = x) : <text>:1:8: unexpected symbol
  1: pmax(48hIFNG_d04_HLA_high
             ^
  Calls: %>% ... eval_bare -> .Call -> parse_expr -> parse_exprs -> parse
  Execution halted

Work dir:
  /groups/zuber/zubarchive/USERS/Kimon/markus/HLA1_staggered/work/74/c8674eaf6ff6d7d550c57c867ad3d3

Tip: you can replicate the issue by changing to the process work dir and entering the command `bash .command.run`

 -- Check '.nextflow.log' file for details
FAILED

If I edit the counts table and contrasts table to rename the offending sample as h48IFNG_d04_HLA_high instead, the pipeline works fine.

This is because MAGeCK can't deal with column names starting with numbers.

I happened to hit a very similar problem today using plain DESeq2.
It seems to originate in R's parsing of formulas from strings.
So definitely not pipeline-related or even mageck-related.

source: gharchive/issue

authors: fruce-ki jeslipp

repo: ZuberLab/crispr-mageck-nf


text:
読み上げサーバーが立ち上がらない

いつもお世話になっております。
本日EasyNovelAssistantをインストールし、読み上げサーバーのインストールをしましたが
読み上げサーバーを立ち上げると
python server_fastapi.py
05-17 13:56:28 | DEBUG  | init.py:92 | try starting pyopenjtalk worker server
と表示され起動していないようです。
どのようなことが原因と考えられますでしょうか?

返信ありがとうございます。
Style-Bert-VITS2\venv\Lib\site-packages\ に pyopenjtalk と pyopenjtalk_dict-0.3.4.dev2.dist-info のふたつのフォルダがあることを確認できましたのでGitやPythonに馴染みが無い方 向けの方法の方法でインストールしてみましたが
Executing: python server_editor.py --inbrowser
05-18 14:57:53 | DEBUG  | init.py:92 | try starting pyopenjtalk worker server
の表示がされ起動できませんでした。
Style-Bert-VITS2側の問題と確認できましたのであちらでIssueを立てたいと思います。
ご対応いただき、ありがとうございました。


text:
Separate some Kowalski queries from main feature generation script

For fields/ccd/quads near the galactic plane with many sources, the drop_close_bright_stars portion of our feature generation script (querying Gaia EDR3 for sources within 300 arcsec of each ZTF source) can take several hours. This is a significant amount of time where GPUs are not needed, but are currently being used anyway. If we ran this part of feature generation separately on CPUs and saved the results, we could reduce compute cost and dedicate more of the 48-hour maximum GPU walltime to period finding.

@bfhealy This cross-match is also done in Kowalski? What is slow exactly?

@mcoughlin The below cone search query (run for 10,000 sources at a time by default) is what's holding up that part of the code. The cone radius is 300 arcsec, and in dense regions of the sky the query returns a lot of EDR3 sources brighter than 13th G magnitude. Earlier in the script, it may help to filter ZTF sources using e.g. nobs > 20 to avoid running the Gaia query for sources without the requisite number of photometry points.
# Get Gaia EDR3 ID, G mag, BP-RP, and coordinates
        query = {
            "query_type": "cone_search",
            "query": {
                "object_coordinates": {
                    "radec": dict(zip(id_slice, radec_geojson.transpose().tolist())),
                    "cone_search_radius": query_radius_arcsec,
                    "cone_search_unit": 'arcsec',
                },
                "catalogs": {
                    catalog: {
                        # Select sources brighter than G magnitude 13:
                        # -Conversion to Tycho mags only good for G < 13
                        # -Need for exclusion radius only for stars with B <~ 13
                        # -For most stars, if G > 13, B > 13
                        "filter": {"phot_g_mean_mag": {"$lt": 13.0}},
                        "projection": {
                            "phot_g_mean_mag": 1,
                            "bp_rp": 1,
                            "coordinates.radec_geojson.coordinates": 1,
                        },
                    }
                },
                "filter": {},
            },
        }

Hi @bfhealy . Why not specify thag min number of detections in the query itself, maybe it might help constrain it a bit? I believe you can do: "candidate.ndethist": {"$gte": 2} to filter based on that?

Unless that is not available in Gaia, but if my understanding is correct its a variation of Kowalski so it might have that field as well.

Thanks @Theodlz, if that doesn't work I can modify a previous query to the ZTF_sources catalog and filter by the number of detections there. I'll give this a try and see how it speeds things up.

I agree that filtering upstream is best. Also, you can consider running the queries in parallel to divide the runtime by how many cores you have available. There is the code for that in penquins.

Thanks, I hadn't looked into the parallel query code yet but it seems to be helping.

authors: Theodlz bfhealy mcoughlin

repo: ZwickyTransientFacility/scope


text:
Payment Processor Migration

Overview
Payment Providers are considered deprecated in Medusa. This PR updates this plugin to support new Payment Processor API.
This will be a minor version bump.
Changes

Update to use Payment Processor API
The plugin exports a service which is an instance of an AbstractPaymentProcessor. The internal class methods have changed but no user facing functionality is changed.
Taking this opportunity to rewrite the plugin in Typescript, long overdue.
The plugin now exports a PluginOptions interface for type annotations when configuring the plugin.
Replaced previous Babel build process with TSC. Jest tests also rewritten in Typescript.
Removed amount verification logic in authorizePayment.
We previously tried to ensure the amount paid on Paystack matched the cart total before marking an order as paid. This was problematic because for a number of reasons: handling currencies is a lot more complex than just rounding up and asserting equality - currencies need to be considered, floating point arithmetic pitfalls handled and amounts evaluated without rounding up.
I consider getting that part right out of the scope of this project, users are responsible for ensuring the txRef they get from the plugin is sent to Paystack on the frontend along with the right amount.
Updated cuid dependency

I'm going to check it out and update soon but a quick one @a11rew did you test it locally ?

Yes @femakin. On v1.13 as well as v1.8.


text:
用户分析-无USERID查询

您好问下：用户分析-无USERID查询-列表为什么会原本有数据 过一分钟刷新之后就变成没数据？

好像是默认查询最近几分钟的数据，因为我这边数据量比较大，查询比较耗资源，所以默认时间很短

这个列表ip查询

输入192.168.218.228 IP查不出东西 这个查询ip的格式规范是啥

因为你的是本地地址，都有前缀，所以查不出来
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: mesuzhiben <notifications@github.com>
发送时间: 2019年10月22日 09:55
收件人: a597873885/webfunny_monitor <webfunny_monitor@noreply.github.com>
抄送: a597873885 <597873885@qq.com>, Comment <comment@noreply.github.com>
主题: 回复：[a597873885/webfunny_monitor] 用户分析-无USERID查询 (#15)
这个列表ip查询
输入192.168.218.228 IP查不出东西 这个查询ip的格式规范是啥
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

一定需要域名吗？

你是指？
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: mesuzhiben <notifications@github.com>
发送时间: 2019年10月22日 10:01
收件人: a597873885/webfunny_monitor <webfunny_monitor@noreply.github.com>
抄送: a597873885 <597873885@qq.com>, Comment <comment@noreply.github.com>
主题: 回复：[a597873885/webfunny_monitor] 用户分析-无USERID查询 (#15)
一定需要域名吗？
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

点击查看详情会报错 匹配的url会出错

抱歉，这可能又是一个bug，我稍后修复
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: mesuzhiben <notifications@github.com>
发送时间: 2019年10月22日 10:03
收件人: a597873885/webfunny_monitor <webfunny_monitor@noreply.github.com>
抄送: a597873885 <597873885@qq.com>, Comment <comment@noreply.github.com>
主题: 回复：[a597873885/webfunny_monitor] 用户分析-无USERID查询 (#15)
点击查看详情会报错 匹配的url会出错
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

这个功能是来辅助userid查询方式的，我没有写得太细致，用起来可能不太顺手，哈哈
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: mesuzhiben <notifications@github.com>
发送时间: 2019年10月22日 09:55
收件人: a597873885/webfunny_monitor <webfunny_monitor@noreply.github.com>
抄送: a597873885 <597873885@qq.com>, Comment <comment@noreply.github.com>
主题: 回复：[a597873885/webfunny_monitor] 用户分析-无USERID查询 (#15)
这个列表ip查询
输入192.168.218.228 IP查不出东西 这个查询ip的格式规范是啥
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

理解！您好 查询这快 能少个限制吗 比如 IP和时间不是共同必选的 我只要查时间范围就好了！IP不必填！因为列表几分钟就会消失 历史的我就查看不到了

嗯，好，等下更新告诉你
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: mesuzhiben <notifications@github.com>
发送时间: 2019年10月22日 10:08
收件人: a597873885/webfunny_monitor <webfunny_monitor@noreply.github.com>
抄送: a597873885 <597873885@qq.com>, Comment <comment@noreply.github.com>
主题: 回复：[a597873885/webfunny_monitor] 用户分析-无USERID查询 (#15)
理解！您好 查询这快 能少个限制吗 比如 IP和时间不是共同必选的 我只要查时间范围就好了！IP不必填！因为列表几分钟就会消失 历史的我就查看不到了
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

好的谢谢

你好，查询的优化已经做了，至于这个uri的报错，我还没定位到原因，可能是你的地址比较特殊，因为我这边是OK的，是可以使用localhost试试。 更新后还是要使用node config进行配置

http://localhost:8011/server/upLog 404 (Not Found)

看下配置文件是否被覆盖了
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: mesuzhiben <notifications@github.com>
发送时间: 2019年10月22日 11:58
收件人: a597873885/webfunny_monitor <webfunny_monitor@noreply.github.com>
抄送: a597873885 <597873885@qq.com>, Comment <comment@noreply.github.com>
主题: 回复：[a597873885/webfunny_monitor] 用户分析-无USERID查询 (#15)
http://localhost:8011/server/upLog 404 (Not Found)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

是哪个配置文件？您最新的这个版本好像就出问题了 uplog这个接口是404了

您好这是上报接口404的报错log

这是另一个接口的报错log

@mesuzhiben 你好，七天留存率的bug修复了，日志上传404的问题我还不能够准确定位，因为我这边测试，都没有任何问题。  你这个问题是偶尔出现，还是一直出现

我clone了你的项目 重新部署了 就一直这样了 我是本地的 用的是本地IP地址 不是localhost 目前是一直都这样 您说的配置文件是根目录的config.js吗？配置如下

@mesuzhiben  这样吧，你在我的网站上新建一个应用ID，部署到你本地的项目上，我看看上报日志会不会有报错。

您看下，生成了
项目名称：daxing

哈哈，可能是我没有描述清楚， 上报域名填写 www.webfunny.cn  才能上报到我的服务器上，我才能够观察到你的日志

你库里看下 我填的是这个域名生成的探针！ 然后我页面请求就是localhost 是不是探针有点出入？

你的url是使用localhost吗？ 为了防止上报太多本地信息，localhost的域名只上报到localhost的服务上

我换成ip访问了，您看下 404

@mesuzhiben 我看你的日志都过来了，不知道为啥还是404，没有看到特别明显的错误日志，不确定是不是你的

时好时坏 ，我看了下，现在又200了

z这个查看详情能看下吗？

就卡着这里了

这个问题是你的url命中了我的加密规则了，导致url解析不出来了，😂

有什么要求吗 我是正常的测试环境的地址 也就是本地IP

拉去一下最新代码吧，还是要执行以下node config 。 如果解析不出来的url，我就不解析了。

404的问题应该不大，你暂时先这么用着吧，等我具体处理以后，页面上也会有通知的。


text:
Ensure we can drag to end of list

I ran across what appeared to be a bug preventing me from being able to drag to the end of the list.  Solution that appears to work is ensuring that when the target element is at the end, always insert the placeholder after.  Seems to work and I have switched to using my fork in the meantime.  This problem is best illustrated when attempting to drag the second item in the list to the last item.

OK, so... not surprisingly, this appears to be causing an issue at the other end.  Need to think about this a bit more...

OK, found something that works.  While I am not certain this is the best solution, I figure putting this out there might be useful for anyone else who runs into the same issue.
Also, it seems like I was having more of an issue with it when I am not using a strict vertical list, but when elements are lined up as floats.

Addressing
https://github.com/a5hik/ng-sortable/issues/404

license: mit

license_source: bigquery


text:
Add Math.abs to return absolute values

This closes issue #231.  I've included a rebuild and incremented the version number.

Thanks @pdvorchik


text:
🛑 KIOSKOS - HOME is down

In de7448d, KIOSKOS - HOME (https://recaudacion.yucatan.gob.mx) was down:

HTTP code: 0
Response time: 0 ms

Resolved: KIOSKOS - HOME is back up in 8a5c2c0 after 10 minutes.

repo: aafyyuc/upptime


text:
🛑 KIOSKOS - HOME is down

In 76f1647, KIOSKOS - HOME (https://recaudacion.yucatan.gob.mx) was down:

HTTP code: 502
Response time: 3404 ms

Resolved: KIOSKOS - HOME is back up in e477811 after 10 minutes.


text:
🛑 KIOSKOS - HOME is down

In 0b16898, KIOSKOS - HOME (https://recaudacion.yucatan.gob.mx) was down:

HTTP code: 0
Response time: 0 ms

Resolved: KIOSKOS - HOME is back up in a8b4c1b after 10 minutes.


text:
🛑 KIOSKOS - HOME is down

In fe26442, KIOSKOS - HOME (https://recaudacion.yucatan.gob.mx) was down:

HTTP code: 0
Response time: 0 ms

Resolved: KIOSKOS - HOME is back up in e1f4fc0 after 9 minutes.


text:
Typo in Balance formula

https://github.com/aalto-ui/aim/blob/9d064c4f746028defacff165b9c3e5167197afd3/aim_metrics/aim_metrics/perceptual_fluency/pf6_quadtree_decomposition.py#L130
The denominator should be max(abs(w_left), abs(w_right)).

Fixed the typo. Thank you for your contribution!

repo: aalto-ui/aim


text:
Move --dns-google-domains-zone to Credentials

This is a enhancement request.
Most other Authenticators usually have this added to the credentials file.
There is no means of adding --dns-google-domains-zone to nginx proxy manager for example.
https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/global/certbot-dns-plugins.js

Or alternatively could this not be determined automatically without the use of an additional flag by parsing -d input?
If -d www.example.com pass the zone as example.com

On the alternative, parsing the -d input may be error prone because there are domains with TLDs such as .co.uk that can break this logic depending on how the parsing is implemented. If there's already another Python library that does this, that might be worthwhile so we can reduce maintenance burden for new TLDs.

Certbot has tldextract in tools/requirements.txt. But I don't see it actually used anywhere.
It should handle those specific cases.  I'm just reading through how zones are implemented automatically other places with certbot.

Interesting, I can certainly add both options here. I thought credentials might be a bit annoying in case someone is maintaining multiple domains there.

I agree.  When I opened the issue I posted about using credentials because it just happened to be the first example of a zone I had found.  Turns out that was the only example of using credentials.    Looks like the common way is a function to get the zone from the API. But the documentation for the API doesn't have anything documented for that.
Personally I think we're left with figuring the TLD from the -d domain

I can use the public suffix list to figure it out as well, but I think I'm going to err on the side of not doing magic and asking the user for direct input.
I'll do some more investigation and see if I can incorporate both. Cheers!

authors: DeveloperTommy aaomidi ttocsr

repo: aaomidi/certbot-dns-google-domains


text:
service "contracts-env" is not running container #1

When I follow https://github.com/aave/lens-protocol/issues/73, and run  "export USERID=$UID && docker-compose build && docker-compose exec -u 0 contracts-env bash", I got "service "contracts-env" is not running container #1".
Any idea how to fix this? Thanks .

solved by running
export USERID=$UID && docker-compose build && docker-compose run --name lens contracts-env bash
and in another terminal "docker-compose exec -u 0 contracts-env bash"
Then npm run test would work without the permission issue.

In case others are still having issues, I got the following to work:
export USERID=$UID && docker-compose build && docker-compose run -u 0 --name lens contracts-env bash

authors: iamcryptoboi lipingx

repo: aave/lens-protocol


text:
change(logger): protocolize the logger

개요
Logger가 protocol로 변경되었습니다. 생김새는 다음과 같습니다.
public protocol Logger: AnyObject {
    associatedtype T: LogService

    /// Implement the way you'd like to show logs according to the protocol `LogService`
    ///
    /// For example, you can use `print` or `osLog`
    var logService: T { get }
    var loggerSetting: LoggerSetting { get set }

    func setLogLevel(to level: LogLevel)

    /// You can use each method to show logs
    func info(_ message: String)
    func debug(_ message: String)
    func error(_ message: String)
    func fault(_ message: String)
}

let logger = OSLogger("Subsystem", category: "Test")
logger.fault("It's falut")

변경된 것
Logger

현재 OSLogger, PrinterLogger 2가지가 구현되어있습니다.
func info(_ message: String) ~  func fault(_ message: String) 4개 메소드는 기본 동작이 구현되어있습니다.
커스텀 Logger를 만들고 싶을 떄는 다음과 같이 사용할 수 있습니다.

class MockLogService: LogService {
    func log(level: SabyAppleLogger.LogLevel, _ message: String) {

    }
}

class MockLogger: Logger {
    var loggerSetting: LoggerSetting
    var logService: MockLogService

    init(loggerSetting: LoggerSetting = LoggerSetting(subsystem: "", category: ""),
         logService: MockLogService = MockLogService()) {
        self.loggerSetting = loggerSetting
        self.logService = logService
    }
}

func log(level: LogLevel, _ message: String)

프로토콜 내 선구현된 함수 private func log(level: LogLevel, _ message: String)는  LogLevel와 LogService에 따라 로그를 출력하는 동작을 담당합니다.
외부 공개와 override를 방지하기 위해 extension 안에 선구현되어있으며 현재의 로그 레벨에 따라 service에 정의된 동작을 수행합니다.

extension Logger {
    private func log(level: LogLevel, _ message: String) {
        guard let loggerLevel = setting.logLevel else {
            return
        }

        if level.isLoggable(with: loggerLevel) {
            logService.log(level: level, message)
        }
    }
}

LogService

protocol LogService를  통해 로그 출력 방식을 개발자가 직접 구현할 수 있습니다. 현재 OSLogService, PrintLogService가 구현되어있습니다.
Logger의  logService 프로퍼티를 통해 주입 가능합니다.
logService를 통해 XCExpectation을 이용한 테스트가 가능합니다.

// Example
fileprivate class MockLogService: LogService {
    let expectation: XCTestExpectation?

    func log(level: SabyAppleLogger.LogLevel, _ message: String) {
        print(level.name, message)
        expectation?.fulfill()
    }

    init(expectation: XCTestExpectation?) {
        self.expectation = expectation
    }
}

LoggerSetting

기존 Logger가 class에서 protocol로 변경됨에 따라 Setting 역시 별개의 struct LoggerSetting으로 변경되었습니다. 구성요소는 변경사항 없습니다.

Logger 는 왜 AnyObject 를 만족해야 하나요?
저는 Logger 가 아래와 같이 되고, (외부에서 LogService 를 몰라도 되도록) 각 OSLogger, PrinterLogger 에서 LogService 를 처리하든, 중간에 Logger 를 받아서 영빈님처럼 LogService, LoggerSetting 을 처리하는 Protocol 을 두든 하는것이 더 좋을 듯 합니다. (근데 영빈님 방식이 더 Swift 한거 같기도 하고... 의견주세요.)

public protocol Logger {
    func setLogLevel(to level: LogLevel)

    /// You can use each method to show logs
    func info(_ message: String)
    func debug(_ message: String)
    func error(_ message: String)
    func fault(_ message: String)
}

PrinterLogger 는 print 함수를 사용해서 PrintLogger 가 더 알맞지 않을까요? 의견주세요!

Logger가 struct로 선언되면 setLogLevel 함수가 mutable 함수로 선언해야 했습니다. 이 경우 결국 class와 struct 둘 중 한 가지를 선택해야 하는데 관리의 용이성을 생각해서 class로만 선언할 수 있게 고정려하는 의도였습니다!

Logger 를 Logger와 LoggerType로 분리했습니다. 말씀해주신 공개된 기능은 Logger에, 나머지 비공개 기능(세팅, 서비스, log)은 LoggerType에 구현되어있는데 이 경우 Logger을 일일히 구현해야 된다는 문제가 있긴 합니다. warning 로그 추가하면서 다시 한 번 들여다 볼게요.

저는 setLogLevel 함수가 없어지는 것도 좋고, mutating 이 추가되는것도 좋습니다. 저는 최대한 제한된 API 를 선호합니다.

@enebin
음... 이건 그냥 하나로 정하는게 좋을 것 같네요... 일단 제 생각에는 setLogLevel 을 제거해도 된다고 봅니다.

setLogLevel 이 없어도 직접 Wrapping 해서 만들 수 있음
앱 시작시에 level 을 정하고 중간에 수정할 이유가 많다고 보지 않음
class 를 강제하는것이 좋아 보이지 않음

변경 완료했습니다~


text:
ENHO: Split code into separate files

Similar to class enhancements where enhanced methods are stored as individual files, this change separates the code for implicit enhancements (type HOOK_IMPL) into abap-files.
This makes the code more readable (instead of being embedded and escaped into XML) and allows for linting.
Note: The solution can still deserialize the old format but will serialize enhancements in the new format.
Old format:

New format:

https://github.com/abapGit-tests/ENHO
main branch = old format
hook_impl branch = new format (merge to main after this PR is merged)

A: Suggest keeping the source ABAP code as is, let the developer decide what goes into it. Currently, if the developer removes the top comment, deserialization will break without an error?
B: Instead of re-using the SOURCE field, suggest adding a new field for the file name
<SOURCE>
  <item>FILE:2b2cade4</item>
</SOURCE>

eg
<SOURCE_FILE>FILE:2b2cade4</SOURCE>

I think it will be easier to parse, and determine if its using the old or new format

I can't use a new field since it's a standard structure. I put the file names into a separate block.
The comment for the full name is helpful if you just browse the code online, for example. I changed the deserialize so it takes only the code between the enhancement statements and ignores the rest.

authors: larshp mbtools

repo: abapGit/abapGit


text:
Add MusicAlbum and Genre classes

The following features have been implemented

Created MusicAlbum class in a separate .rb file.
Created Genre class with an association to the Item class (in a separate .rb file).
All MusicAlbum class properties visible in the diagram were defined and set up in the constructor method.
All Genre class properties visible in the diagram were defined and set up in the constructor method.
Implemented the add_item method in the Genre class
Implemented can_be_archived?() in the MusicAlbum class

@abdallahmalima Thank you so much!

repo: abdallahmalima/Catalog-My-Things


text:
bugfix/send props to google

Bugfix: Save props (headers) when setting and add to the Google request

@abdolence This makes a) sure that all props are send as header and b) the props throw an exception when called after connected == true

I've created this PR instead.
https://github.com/abdolence/sbt-gcs-resolver/pull/9
Please have a look if this is something you are after.
The reasons:

Support all of the ops, not just put
Having a Map[] of ready to use HTTP headers instead
Using foreach instead of fold to show it has side effects
Not to reimplement setRequestProperty

Sorry, I somehow missed the comments. Else I would have responded. I think there might be a problem with your suggestions, but I'll check the other pr

repo: abdolence/sbt-gcs-resolver


text:
Not working in lua files

Tabout works perfectly fine in .js files, but doesn't work for .lua. My config is copied word for word from the example, with one change,
after = {'completion-nvim'} -- if a completion plugin is using tabs load it before
instead of completion-nvim I use nvim-cmp.

Hi @ziombo
Can you paste me the part of the lua code, so I can double check?

Looks good to me

authors: abecodes ziombo

license: Unlicense


text:
Support for Mixtral (MOE)

Mixtral is getting added to llama.cpp now -
https://github.com/ggerganov/llama.cpp/pull/4406
Using weights here downloaded to models/mixtral-8x7b.
These steps work (Mac M2 32GB) in llama.cpp -
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
git checkout mixtral
make -j && ./main -m models/mixtral-8x7b/mixtral-8x7b-v0.1.Q4_K_M.gguf -p "Building a website can be done in 10 simple steps:\nStep 1:" -n 400 -e

Trying the same w/ llama-cpp-python-0.2.22:
from langchain.callbacks.manager import CallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain.llms import LlamaCpp

llm = LlamaCpp(
    model_path="/Users/rlm/Desktop/Code/llama.cpp/models/mixtral-8x7b/mixtral-8x7b-instruct-v0.1.Q2_K.gguf",
    n_gpu_layers=1,
    n_batch=512,
    n_ctx=2048,
    f16_kv=True,
    callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]),
    verbose=True,
)

Error:
error loading model: create_tensor: tensor 'blk.0.ffn_gate.weight' not found

we are anxiously waiting for this update :)

I believe it works already; just need to point to the custom build before import.
Here's how I did it:
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
git checkout mixtral
make -j
make libllama.so

import os

os.environ["LLAMA_CPP_LIB"] = "/Users/ahuang/repos/llama.cpp/libllama.so"

import panel as pn
from llama_cpp import Llama

pn.extension()

async def callback(contents: str, user: str, instance: pn.chat.ChatInterface):
    response = llm.create_completion(contents, stream=True)

    message = ""
    for chunk in response:
        message += chunk['choices'][0]['text']
        yield message

llm = Llama(
    model_path="./mixtral-8x7b-v0.1.Q4_K_M.gguf",
    n_gpu_layers=0,
)
chat_interface = pn.chat.ChatInterface(callback=callback, callback_user="Mixtral")
chat_interface.send(
    "Send a message to get a reply from Mixtral!", user="System", respond=False
)
chat_interface.servable()

I believe it works already; just need to point to the custom build with os.env before import.

Yeah it def works rn with the mixtral branch. The way I got it to work was by going into vendor/llama.cpp and then checking out the mixtral branch. Then build as usual. Full sequence:
git clone --recurse-submodules https://github.com/abetlen/llama-cpp-python.git
cd llama-cpp-python/
cd vendor/llama.cpp/
git checkout mixtral
cd ../../
python3 -m pip install -e .
``

I believe it works already; just need to point to the custom build with os.env before import.

Yeah it def works rn with the mixtral branch. The way I got it to work was by going into vendor/llama.cpp and then checking out the mixtral branch. Then build as usual. Full sequence:
git clone --recurse-submodules https://github.com/abetlen/llama-cpp-python.git
cd llama-cpp-python/
cd vendor/llama.cpp/
git checkout mixtral
cd ../../
python3 -m pip install -e .

When the Mixtral PR merges to llama.cpp, will we need to cut a new release of llama-cpp-python? Or will it then "just work"?

When the Mixtral PR merges to llama.cpp, will we need to cut a new release of llama-cpp-python? Or will it then "just work"?

For pip install to just start working it looks like a new release will be required. From the build and publish action it it looks like whatever the current submodule commit of llama.cpp (vendor/llama.cpp) is set to is what the release will contain, which makes sense. You wouldn't want every person who pip installs this lib to get whatever the latest version of llama.cpp is.

I believe it works already; just need to point to the custom build with os.env before import.

Yeah it def works rn with the mixtral branch. The way I got it to work was by going into vendor/llama.cpp and then checking out the mixtral branch. Then build as usual. Full sequence:
git clone --recurse-submodules https://github.com/abetlen/llama-cpp-python.git
cd llama-cpp-python/
cd vendor/llama.cpp/
git checkout mixtral
cd ../../
python3 -m pip install -e .

Well I have tried this, but it only works for previous models. When I try to host Mixtral model using the following command, it looks like the model is loaded correctly but it returns empty response. When I follow the same procedure with Llama 2, I get a response. So I guess the mixtral models are not loaded correctly since I have tried both Q4 and Q5 versions?
python server --model ../../mixtral-8x7b-v0.1.Q4_K_M.gguf --n_gpu_layers 100 --n_ctx 32768 --n_batch 512 --port 1214 --host localhost

The PR got merged. Hopefully we see llama-cpp-python updated soon.

When I try to host Mixtral model using the following command, it looks like the model is loaded correctly but it returns empty response.

Do you maybe use a stop token like stop=["\n"] and it starts the response with a newline? The model works in my case, but I realized that it takes waaay longer to start generating if the prompt is not just a short question. That sucks, I hope this is just some kind of performance bug.

The llama.cpp version has been officially merged into their master branch

This should be published now with v0.2.23, let me know if there are any issues.
Cheers!

@abetlen You dropped this, king --> 👑

I have installed the latest version of llama-cpp-python but still getting the AssertionError error when I try to load the model TheBloke/Mixtral-8x7B-v0.1-GGUF mixtral-8x7b-v0.1.Q4_K_M.gguf.
Here is the code that I have run:
!CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
!pip install huggingface-hub

Requirement already satisfied: llama-cpp-python in /usr/local/lib/python3.10/dist-packages (0.2.33)
Requirement already satisfied: typing-extensions>=4.5.0 in /usr/local/lib/python3.10/dist-packages (from llama-cpp-python) (4.5.0)
Requirement already satisfied: numpy>=1.20.0 in /usr/local/lib/python3.10/dist-packages (from llama-cpp-python) (1.23.5)
Requirement already satisfied: diskcache>=5.6.1 in /usr/local/lib/python3.10/dist-packages (from llama-cpp-python) (5.6.3)
Requirement already satisfied: jinja2>=2.11.3 in /usr/local/lib/python3.10/dist-packages (from llama-cpp-python) (3.1.3)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2>=2.11.3->llama-cpp-python) (2.1.4)
Requirement already satisfied: huggingface-hub in /usr/local/lib/python3.10/dist-packages (0.20.3)
Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from huggingface-hub) (3.13.1)
Requirement already satisfied: fsspec>=2023.5.0 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub) (2023.6.0)
Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from huggingface-hub) (2.31.0)
Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub) (4.66.1)
Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub) (6.0.1)
Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub) (4.5.0)
Requirement already satisfied: packaging>=20.9 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub) (23.2)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub) (2.0.7)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub) (2023.11.17)

!huggingface-cli download TheBloke/Mixtral-8x7B-v0.1-GGUF mixtral-8x7b-v0.1.Q4_K_M.gguf --local-dir /content/Models --local-dir-use-symlinks False

Consider using hf_transfer for faster downloads. This solution comes with some limitations. See https://huggingface.co/docs/huggingface_hub/hf_transfer for more details.
downloading https://huggingface.co/TheBloke/Mixtral-8x7B-v0.1-GGUF/resolve/main/mixtral-8x7b-v0.1.Q4_K_M.gguf to /root/.cache/huggingface/hub/tmpvlx9a6yq
mixtral-8x7b-v0.1.Q4_K_M.gguf: 100% 26.4G/26.4G [01:57<00:00, 225MB/s]
/content/Models/mixtral-8x7b-v0.1.Q4_K_M.gguf

from llama_cpp import Llama
llm = Llama(
  model_path="/content/Models/mixtral-8x7b-v0.1.Q4_K_M.gguf",  # Download the model file first
  n_ctx=2048,  # The max sequence length to use - note that longer sequence lengths require much more resources
  n_threads=8,            # The number of CPU threads to use, tailor to your system and the resulting performance
  n_gpu_layers=35         # The number of layers to offload to GPU, if you have GPU acceleration available
)

AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 1 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 |
AssertionError                            Traceback (most recent call last)
 in <cell line: 1>()
----> 1 llm = Llama(
2   model_path="/content/Models/mixtral-8x7b-v0.1.Q4_K_M.gguf",  # Download the model file first
3   n_ctx=2048,  # The max sequence length to use - note that longer sequence lengths require much more resources
4   n_threads=8,            # The number of CPU threads to use, tailor to your system and the resulting performance
5   n_gpu_layers=35         # The number of layers to offload to GPU, if you have GPU acceleration available
2 frames
/usr/local/lib/python3.10/dist-packages/llama_cpp/_internals.py in n_vocab(self)
65
66     def n_vocab(self) -> int:
---> 67         assert self.model is not None
68         return llama_cpp.llama_n_vocab(self.model)
69
AssertionError:

Can anyone help me with this issue please? I have followed all the steps mentioned but I think do I need to do anything like os.environ["LLAMA_CPP_LIB"] = "/Users/ahuang/repos/llama.cpp/libllama.so" to load the model? Appreciate the help since I am first time trying to use llama-cpp-python.

You need to reinstall the package.
run: pip install llama-cpp-python  --upgrade --force-reinstall --no-cache-dir and wait a while.
Then it should work :D

repo: abetlen/llama-cpp-python


text:
Classifier-free guidance

Classifier-free guidance was implemented in llama.cpp in https://github.com/ggerganov/llama.cpp/pull/2135, but it doesn't look like there's a way to use it with these bindings. It seems like a useful feature, so it'd be nice to have this

@abb128 totally, the low-level api is implemented for this but not the high-level api, I'll add it to the v0.2 roadmap


text:
Added Darkmode

I tried a lot of different ways to do this but unfortunately had to adopt this method.Please Review it.
Thanks a lot for assigning me this issue. :

@chinmaym07 Looks good to me. A small change request. The social icons shown in the footer. Can you invert the color of those as well?

Just saw the deployed app. Love your work ❤ . Thank you.
Some small suggestions

If possible, let's make the switch size smaller.
The color of the title text Nice Blogs -> rgb(217, 194, 194) and switch should be the same when dark mode is enabled.
If possible, we can either try to use gatsby-plugin-dark-mode. It would be easier to maintain the state of the theme across all pages for dark mode and code would look more cleaner.
The blog page needs some tweak for dark mode. Refer follow screenshot:

Ohh Sorry.!! I will implement this and will update you.
Thanks a lot for your valuable feedback.!

@chinmaym07 No worries. Here is my little attempt to resolve this issue: https://github.com/abhaynikam/gatsby-nice-blog/commit/4a8600c27f51b72dc2ef65e8247f195d04c328b1
Feel free to cherry-pick the code. Also, I would love to add you as a contributor in the readme page. You can open another PR for same with link to your Profile. Happy Coding 😊
Also, instead of a switch, we can try adding sun/moon icon. Similar to: https://novela.narative.co/.

Closed in favor of #6

repo: abhaynikam/gatsby-nice-blog


text:
Multiple blocks render incorrectly after the first block

When multiple mermaid code blocks exist in the first file, after the first one they are rendered with
, so are not rendered.
    testutil.go:176: ============= case 1 ================
        Markdown:
        -----------
        Transforms mermaid blocks.

        ```mermaid
        graph TD;
            A-->B;
            A-->C;
            B-->D;
            C-->D;
        ```

        ```mermaid
        graph TD;
            A-->B;
            A-->C;
            B-->D;
            C-->D;
        ```

        Expected:
        ----------

Transforms mermaid blocks.

graph TD;
            A-->B;
            A-->C;
            B-->D;
            C-->D;

graph TD;
            A-->B;
            A-->C;
            B-->D;
            C-->D;

        Actual
        ---------

Transforms mermaid blocks.

graph TD;
            A-->B;
            A-->C;
            B-->D;
            C-->D;

graph TD;
            A-->B;
            A-->C;
            B-->D;
            C-->D;

Thanks for the report! I'll have a fix up shortly.

Fix released in v0.1.1

Works perfectly, thanks @abhinav 🙇🏻

authors: abhinav rcrowe

repo: abhinav/goldmark-mermaid


text:
DOWNLOAD FL Studio Crack 2024 Full Version for Windows & Mac

FL Studio Producer Edition Full Version Crack is developed for professionals, and novices may find it a bit difficult. It comes with a button load corresponding to multiple available options, which seems difficult for novices. The FL Studio 24 Download Crack always runs in full-screen mode, and contains loads of different functions on the left side of the screen, and on the right side of the screen is dedicated to mixing uploaded music. It also comes with a virtual piano that lets you compose songs you miss.

Download Now

https://crackzero.com/ccleaner-professional-crack/
https://crackzero.com/ccleaner-professional-crack/
,https://crackzero.com/ccleaner-professional-crack/
https://crackzero.com/ccleaner-professional-crack/,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
.,m


text:
[README Enhancement]: Concrete Compressive Strength Prediction Using Deep Learning

Pull Request for DL-Simplified 💡
Issue Title :  [README Enhancement]: Concrete Compressive Strength Prediction Using Deep Learning #528]

Info about the related issue (Aim of the project) : To update the readme file of  concrete compressive strength to make user to read easily
Name: shravya pamu
GitHub ID: https://github.com/Shravya016
Email ID: ss9599@srmist.edu.in
**Idenitfy yourself: ** Contributing for gssoc'24

Closes: #528
Describe the add-ons or changes you've made 📃
I have added the emojis and made is more readable for the user to read and also I had used the template which was  been provided and I have added key points so that it was easy to read and more eye pleasing
Type of change ☑
What sort of change have you made:

[ ] This change requires a documentation update was been updated

How Has This Been Tested? ⚙
I have checked the preview after writing the readme file to see if it was okay
Checklist: ☑

[ ] added emojis to the template.
[ ] made it more easier and eye pleasing for the user
[ ] added bullet points so the user could get direct information

Sure I will add it

Okay can I work on other issues or should I wait until this was been reviewed

Hi @Shravya016 I am in office right now that's why can't merge your PR. Will merge this by EOD. You can comment out on another issue of your choice.

Okay thank you so much


text:
EnhancedLocationUpdate equals returns true for different locations

The following test fails on the last assertion, which leads to unexpected behaviors when pushing EnhancedLocationUpdate as a part of the state through flows
@Test
fun `EnhancedLocationUpdate equals returns true for different locations`() {
    val location1 = Location(
        latitude = 51.10681207262569,
        longitude = 17.03130008007454,
        altitude = 170.29998779296875,
        accuracy = 8.162f,
        bearing = 287.00354f,
        speed = 0.0f,
        time = 1655893534483
    )

    val location2 = Location(
        latitude = 51.10680583884444,
        longitude = 17.031332547685224,
        altitude = 170.29998779296875,
        accuracy = 8.162f,
        bearing = 287.00354f,
        speed = 0.0f,
        time = 1655893533482
    )

    val locationUpdate1 =
        EnhancedLocationUpdate(location1, listOf(), listOf(), LocationUpdateType.ACTUAL)
    val locationUpdate2 = EnhancedLocationUpdate(
        location2, listOf(), listOf(), LocationUpdateType.ACTUAL
    )

    assertTrue(location1 != location2)
    assertTrue(locationUpdate1 != locationUpdate2)
}

┆Issue is synchronized with this Jira Task by Unito

From this calculator:

So, I'm guessing this could relate to the level of precision at which we're comparing floating point numbers:

latitude difference: 0.00000623378125
longitude difference: 0.000032467610684

Assuming we're ignoring the time field (I had a vague memory we were for compare), as that also has a difference.

authors: QuintinWillison davyskiba

repo: ably/ably-asset-tracking-android


text:
Document RestClient.request’s version param

Based on specs at commit https://github.com/ably/specification/commit/505238c.

Thanks for the feedback @owenpearson, I’ve changed it based on your feedback. The comment about "Any Ably documentation which recommends the use of this method will specify what value to pass for this parameter" was based on this comment in ADR61:

In all documentation and casual interactions where we recommend to customers that they use rest#request, and tell them what they should expect, we should give them a protocol version to supply.

But from what you're saying, that's more of a that'd-be-great than a we're-planning-on-doing-this, so I’ve removed it.

repo: ably/sdk-api-reference


text:
Set up folder structure: Use https://github.com/hashicorp/terraform-provider-scaffolding as example for repo structure

https://github.com/hashicorp/terraform-provider-scaffolding provides a great example of how a provider should be structured. We should configure our repo with the same structure.
┆Issue is synchronized with this Jira Task by Unito

Done in https://github.com/ably/terraform-provider-ably/pull/22

repo: ably/terraform-provider-ably


text:
[报告问题] 你遇到的问题

请问花括号是去掉还是保留?格式能说清楚一下吗。没看懂。
麻烦指出我的仓库配置的问题

可以贴出来一起看一下

请问花括号是去掉还是保留?格式能说清楚一下吗。没看懂。 麻烦指出我的仓库配置的问题

可以贴出来一起看一下

channels后保持空白，其实下面的配置是正确的
channels:
    baidu:
        token: ""
        count: 0
   xxxx

像上面这样，去掉就好

repo: abnerwei/hexo-url-submission


text:
support for actually binding to gq?

Once i bind reformat to gq, all of my other vim commands that start with g stop working.  Is there a work around for this?

Hmm. I just tested this in Intellij Ultimate 2017.3 with IdeaVim 0.49 and couldn't reproduce. Here's what I did:
map gq :action com.andrewbrookins.idea.wrap.WrapParagraphAction<CR>
map gr :action VimWindowRight<CR>

That is, I tested two commands that start with g. Both seem to work. Can you include steps to reproduce? Thanks!

This seems to be working. Reopen if not!

authors: abrookins fantapop

repo: abrookins/WrapToColumn


text:
To Support abseil-cpp in QNX

To Support abseil-cpp in QNX
Bring some fresh air to automotive industry.
Background
I was porting gPRC-cpp to QNX arm based platform,
When I cross compile the gRPC, I found the abseil-cpp is not compatible with QNX too, so I made changes and have been successfully port them to QNX 704 aarch.
Proposed API Change (s)
I just forked and made some changes on your branch lts_2020_02_25, which is a submodule for gRPC, I have made changes ,and please help to review ,if it's suitable for a pull request, thx.
Changes

Similar changes would be fine if applied to the main brain. Feel free to submit a pull request, or let me know and I can make the changes for you.

Similar changes would be fine if applied to the main branch. Feel free to submit a pull request, or let me know and I can make the changes for you.

Thanks for you quick response, pull request have been created.
Please help to review , if it's compatilbe to main branch, you could help to  merge  to it either, thx.

repo: abseil/abseil-cpp


text:
StrReadUntil(string_view&, string_view sep)

Request for a function like string_view StrReadUntil(string_view&, string_view sep)
Returns the part until (not including) the separator and removes that part (including separator) from the input (in-place).
Returns the entire input and clears it if separator isn't found.
Examples:
StrReadUntil(is, "\n"); // reads next line
StrReadUntil(is, ";"); reads next value from 1;2;3
It's a bit like getline() for string_views.

string_view is a const view of the underlying string, which means it doesn't allow you to modify the underlying string. So I am not sure your requested function would work.
I am not sure about your use case, but if you just want a string_view until the delimiter, you can write:
string_view StrReadUntil(string_view input, string_view sep) {
  std::vector<absl::string_view> pieces = absl::StrSplit(input, sep);
  return pieces[0];
}

For more information, please check out our contribution guidelines: https://github.com/abseil/abseil-cpp/blob/master/CONTRIBUTING.md

So I am not sure your requested function would work.

Hint: remove_prefix().

I think I misunderstood what you mean by "removes that part (including separator) from the input (in-place)", so you actually mean "move the start of view to past the separator".
So just let me confirm you want something like:
string_view StrReadUntil(string_view* input, string_view sep) {
  auto pos = input->find_first_of(sep);
  if (pos == string_view::npos) {
    // reaches end of input without encountering `sep`, what should we do?
  }
  else {
    string_view ret = input->substr(0, pos);
    input->remove_prefix(pos+1);
    return ret;
  }
}

Is this what you want?

I think I misunderstood what you mean by "removes that part (including separator) from the input (in-place)", so you actually mean "move the start of view to past the separator".

Yes, as the view is the input.

auto pos = input->find_first_of(sep);

Just find(sep) should do, though this is an interesting variant.

// reaches end of input without encountering `sep`, what should we do?

Returns the entire input and clears it if separator isn't found.

Is this what you want?

Yes

OK. Thanks for clarification. We will evaluate this feature request and get back to you.
As per our contribution guideline, it'd be better if you could prove that this function would meet one or more criteria.

If I understand correctly, I'd implement this using StrSplit and MaxSplits.  Does this do what's desired?
absl::string_view StrReadUntil(string_view& input, string_view sep) {
  std::vector<absl::string_view> pieces = absl::StrSplit(input, absl::MaxSplits(sep, 1));
  input = pieces[1];
  return pieces[0];
}

Does that work if sep isn't found?
I'd use the idea from https://github.com/abseil/abseil-cpp/issues/184#issuecomment-431394539 as it doesn't require the vector.

You're right, if sep isn't found the vector would have a size of 1.  You could either check the size and handle that case explicitly or split into a std::pair, which would work as expected (https://github.com/abseil/abseil-cpp/blob/master/absl/strings/str_split.h#L452).

It wouldn't, as The remaining split substrings are discarded.
I think StrReadUntil is a faster StrSplit for a subset of scenarios, as it doesn't have to allocate the vector and it doesn't do all input at once.

It wouldn't, as The remaining split substrings are discarded.

There wouldn't be any remaining substrings if you specify absl::MaxSplits(sep, 1), though.  Using std::pair with absl::MaxSplits(sep, 1) doesn't allocate a vector and doesn't process the full input.

Then it sounds good.

I'm going to close this issue since absl::StrSplit covers this speciic use case, but please let us know if you feel there are other cases that it doesn't.

StrSplit can be used to implement this but it provides an entirely different interface..

https://github.com/llvm-mirror/clang-tools-extra/blob/master/clang-tidy/abseil/AbseilMatcher.h is probably a very bad example, but let's have a look:
  static constexpr llvm::StringLiteral AbslPrefix("absl/");
  size_t PrefixPosition = Path.find(AbslPrefix);
  if (PrefixPosition == StringRef::npos)
    return false;
  Path = Path.drop_front(PrefixPosition + AbslPrefix.size());

can be replaced by:
  StrReadUntil(Path, "absl/");

It's not the canonical example and is probably too clever but it does show how it could simplify existing code.

But the original code (and StrReadUntil) don't require Path to start with "absl/"..
I think the original code would allow "notabsl/" too, would that be a bug? ;)

but that code snippet also returns if the prefix isn't found.

It does, but that's not necessary with StrReadUntil as Path will be empty when "absl/" isn't found and the following std::any_of() will return false.

authors: OlafvdSpek mbxx zhangxy988


text:
Extend the support for logo in Template Library

Is your feature request related to a problem? Please describe.
We can add the support for the logo in the TemplateLibrary Component since https://github.com/accordproject/cicero/pull/533 is merged.
Describe the solution you'd like
I am actually not sure how we can extend the support here :sweat: @irmerk @DianaLease I would need your suggestions. :sweat_smile:

Yes this is a good issue. It will wait for https://github.com/accordproject/cicero-ui/issues/357, but should be relatively straightforward to swap out the current logo being an image with the src populated by props.

@algomaster99 #357 is done and is no longer a blocker.

repo: accordproject/cicero-ui


text:
Remove unnecessary instances of 'simply' and'just'

Issue #184
Searched for all instances of simply/just and took most of them out
Changes

Every single 'simply' was removed, they were all unnecessary.
Most 'just''s were removed, some were kept.

Flags

Related Issues

I believe the versioned docs files can all be left alone, given that they are a slice of history in the past. We are wanting to change this moving forward, so any file with version-X.XX... should be left alone.

Gotcha, did this quickly with a search and replace, so I'll fix it.

repo: accordproject/techdocs


text:
chore(github): remove issue templates, PR template

Remove issue templates which populate the
template chooser when trying to open a new
issue via button in the GitHub UI + remove
unused (?!) PR template.
Closes: #734

@b1rger Does chore(github) make sense for the type/scope here?

repo: acdh-oeaw/apis-core-rdf


text:
Content component: Bibliographic entry

Create the content component for bibliographic entries.
Details should go to imitate the old site.
E. g. https://vicav.acdh-ch-dev.oeaw.ac.at/vicav/#map=[biblMarkers,.*,geo]&1=[biblQueryLauncher,open]&3=[biblQuery,nakao,open]

According to discussion with @simar0at on 2023-12-07 the Bibliography component should consist of

the bibliographic entries' list (already implemented), and
a query form on the top that is bound to the state of the biblio entry list


text:
🛑 AceBlock Swagger UI is down

In 1c5b8da, AceBlock Swagger UI ($ACEBLOCK_SWAGGER_UI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AceBlock Swagger UI is back up in 77c6685.

repo: aceblockID/monitoring


text:
🛑 AceBlock Swagger UI is down

In f1dc10d, AceBlock Swagger UI ($ACEBLOCK_SWAGGER_UI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AceBlock Swagger UI is back up in fcfec66.


text:
🛑 AceBlock Swagger UI is down

In 5fc7c89, AceBlock Swagger UI ($ACEBLOCK_SWAGGER_UI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AceBlock Swagger UI is back up in 33889df.


text:
🛑 MNID Homepage is down

In 93f737f, MNID Homepage ($MNID_HOME) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MNID Homepage is back up in 54c43ca after 12 minutes.


text:
🛑 AceBlock Swagger UI is down

In a3643da, AceBlock Swagger UI ($ACEBLOCK_SWAGGER_UI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AceBlock Swagger UI is back up in d5da4b8.


text:
loading secrets

@acederberg
Has anyone encountered any issues with docker secrets getting injected?
I did a small concept project in docker swarm and successfully recognized secrets and injected into object graph.
However, for local dev/debug/tinkering I use docker-compose, not swarm. I mapped local files in (not external), accessible in the container, secrets_dir is set appropriately (/run/secrets), but none of these are resolving. secret names match env_prefix and env_nested_delimiter and also tried with annotating an alias on the properties.
I.e.
class CeleryConfig(BaseCfgModel):
    broker_url: AmqpDsn = ...
    backend_url: RedisDsn = Field(..., alias="MYORG_COMPONENT__CELERY__BACKEND_URL")
    ...

class AppSettings(BaseCfgModel):
    cam: CamConfig = ...
    db: DbConfig = ...
    celery: CeleryConfig = ...

class YamlAppSettings(BaseYamlSettings, AppSettings):
    model_config = YamlSettingsConfigDict(
        extra=Extra.allow,
        env_prefix='MYORG_COMPONENT__',
        env_nested_delimiter='__',
        validate_default=True,
        case_sensitive=False,
        env_file='.env',
        env_file_encoding='utf-8',
        secrets_dir='/run/secrets',
        yaml_file_encoding='utf-8',
        yaml_files=[
            "./conf/settings.yaml",
            "./conf/settings.dev.yaml"
        ]
    )

...
secrets:
  MYORG_COMPONENT__CELERY__BACKEND_URL:
    file: ${COMPOSE_SECRETS_PATH}/MYORG_COMPONENT__CELERY__BACKEND_URL
  MYORG_COMPONENT__CELERY__BROKER_URL:
    file: ${COMPOSE_SECRETS_PATH}/MYORG_COMPONENT__CELERY__BROKER_URL
...
services:
  someapi:
    ...
    environment:
      LOG_LEVEL: DEBUG
      SECRETS_DIR: /run/secrets
      YAML_SETTINGS_PYDANTIC_LOGGER: true
    secrets:
      - MYORG_COMPONENT__CELERY__BACKEND_URL
      - MYORG_COMPONENT__CELERY__BROKER_URL
      ...

log output does NOT complain about SECRETS_DIR existence, verified exists from inside container and contents are as expected
However, validation on YamlAppSettings() fails and reports errors for all properties where I'm expecting it to load from a secret
Have you encountered this or do you have any thoughts or suggestions?

Hi @mikeshaw57!
I actually haven't tried using this with docker secrets as I prefer other container orchestration tools (kubernetes) for deployment so I haven't had to do this myself. However, I did notice that this is available as a configuration source and made sure to add it to source customization method that enables it to load yaml.
After messing around for I bit I managed to get it to work. Here is a minimal reproducable example:
# ./docker-compose.yaml
secrets:
  # Fake secret in build context.
  YSP_SECRET:
    file: ./YSP_SECRET
services:
  server:
    image: python:3.11
    container_name: ysp_24
    tty: true
    secrets:
      - YSP_SECRET
    working_dir: /app
    volumes:
      - ./src:/app/src

# ./src/__init__.py
from typing import Optional

from pydantic import ConfigDict, SecretStr
from pydantic_settings import BaseSettings
from yaml_settings_pydantic import (
    BaseYamlSettings,
    YamlFileConfigDict,
    YamlSettingsConfigDict,
)

class Settings(BaseYamlSettings):
    model_config = YamlSettingsConfigDict(
        env_prefix="YSP_",
        secrets_dir="/run/secrets",
        yaml_files={"/app/app.yaml": YamlFileConfigDict(required=False)},
    )
    secret: SecretStr
    other_secret: Optional[str] = None

class SettingsNoYaml(BaseSettings):
    model_config = ConfigDict(
        env_prefix="YSP_",
        secrets_dir="/run/secrets",
    )
    secret: SecretStr
    other_secret: Optional[str] = None

# ./src/__main__.py
from . import Settings, SettingsNoYaml

print("Yaml Settings: ")
print(Settings())

print("Settings no yaml: ")
print(SettingsNoYaml())

To create the secret, do something like
python -c "import secrets; print(secrets.token_urlsafe())" > YSP_SECRET

and then in the docker container run
echo "other_secret: abcd1234" >> app.yaml

then to verify run
python -m src

and on success get
Yaml Settings:
secret=SecretStr('**********') other_secret='abcd1234'
Settings no yaml:
secret=SecretStr('**********') other_secret=None

Let me know if this helps!

@mikeshaw57
I may have found your bug! If I make my example configuration from above like yours and add some nesting like
from typing import Optional

from pydantic import BaseModel, ConfigDict, SecretStr
from pydantic_settings import BaseSettings
from yaml_settings_pydantic import (
    BaseYamlSettings,
    YamlFileConfigDict,
    YamlSettingsConfigDict,
)

class Nested(BaseModel):
    secret: SecretStr
    other_secret: Optional[str] = None

class Settings(BaseYamlSettings):
    model_config = YamlSettingsConfigDict(
        env_prefix="PYS__",
        env_nested_delimiter="__",
        secrets_dir="/run/secrets",
        yaml_files={"/app/app.yaml": YamlFileConfigDict(required=False, subpath=None)},
    )

    nested: Nested

I must specify YSP__NESTED__SECRET. That is, it looks like you should specify MYORG_COMPONENT__CELERY__BACKEND__URL and not MYORG_COMPONENT__CELERY__BACKEND_URL.

@acederberg
interesting, much thanks
got sidetracked the last few days. back on to this over the weekend. I'll post any additional observations here

@acederberg backend_url is the actual field/property name in the leaf object, similar to your other_secret in your example. Are you saying your example would use YSP__NESTED__OTHER__SECRET and not YSP__NESTED__OTHER_SECRET ?

@mikeshaw57 In my example, the field other_secret will be available as YSP__NESTED__OTHER_SECRET. This follows the pattern bellow:
PREFIX = "YSP__"
NESTED_DELIMITER = "__"

NESTED_FIELD_JSON_PATH = ("this_thing", "is", "an", "example_for_you")
NESTED_FIELD_ENV_VAR = PREFIX + NESTED_DELIMITER.join(NESTED_FIELD_JSON_PATH).upper()

assert NESTED_FIELD_ENV_VAR == "YSP__THIS_THING__IS__AN__EXAMPLE_FOR_YOU"

What I am getting at is that adding the __ to the prefix can make things quite confusing. The only double underscores you'll want in your case are for delimiting nested fields - not as a replacement of _ delimitations in fields with names containing _.

thanks @acederberg
I did get it working yesterday. here's what I found -- hopefully it helps others
to get docker secrets to load into nested model properties I had to:

create a base model and set up the model_config, including the yaml_files attribute.
inherit from this base model in any nested model where I wanted to reference a docker secret
add an explicit alias to the model field

i.e.
__secret_prefix__ = "MY_PREFIX__"

class YBaseCfgModel(BaseYamlSettings):
    model_config = YamlSettingsConfigDict(
    extra=Extra.ignore,
        env_prefix=__secret_prefix__ ,
        env_nested_delimiter='__',
        validate_default=False,
        case_sensitive=False,
        env_file_encoding='utf-8',
        secrets_dir=find_secrets_dir(),
        yaml_file_encoding='utf-8',
        yaml_files=[
            f"{find_config_dir()}/settings.yaml",
            f"{find_config_dir()}/settings.{os.getenv('TARGET_ENV', 'MISSING-CFG_TARGET_ENV')}.yaml"
        ],
        str_strip_whitespace=True,
        frozen=True,
        use_enum_values=True,
        populate_by_name=True
)

class CeleryConfig(YBaseCfgModel):
    main: str = ...
    broker_url: SecretStr = Field(..., alias=f"{__secret_prefix__}CELERY__BROKER_URL")
    backend_url: SecretStr = Field(..., alias=f"{__secret_prefix__}CELERY__BACKEND_URL")
    default_queue: str = ...
    default_exchange: str = ...
    default_exchange_type: str = 'direct'
    queue_max_priority: int = 10
    default_priority: int = 5
    queues: list[CeleryQueueConfig] = ...

class DbConfig(YBaseCfgModel):
    host: str = ...
    port: int = ...
    database: str = ...
    charset: str = ...
    user: str = ...
    password: SecretStr = Field(..., alias=f"{__secret_prefix__}DB__PASSWORD")

class AppSettings(YBaseCfgModel):
    api_keys: list[SecretStr] = Field(..., alias=f"{__secret_prefix__}API_KEYS")
    db: DbConfig = ...
    celery: CeleryConfig = ...

If I a nested model did not inherit from BaseYamlSettings and specify the yaml_files, I was unable to inject the secrets
The yaml file being referenced is the single composite, not model specific for each nested model
I had presumed that all nested models could simply inherit BaseModel
After finding this inheritance/property I didn't 100% confirm the naming convention of docker secrets. I'll double check this in some tests later today as I'm still converting 2 more microservices to pydantic settings w/ your very helpful yaml loader.
Additionally, I found that if a nested model only had a single field defined and that field needed to be backed by a docker secret, then it would produce validation errors

@acederberg
Update:
given above application of base model setup and inheritance, I was still unable to resolve docker secrets by naming convention
previously, I had been injecting secrets locally using ENV variables and the naming conventions worked as I expected and did not have to add any field aliases.
Aside: I've since moved to all settings being either in YAML file(s) or docker secrets, so not sure if this odd base model setup/inheritance breaks loading values from ENV vars by convention
maybe some new test cases?

repo: acederberg/pydantic-settings-yaml


text:
Optimizer doesn't work with a single parameter

Here is the code snippet that reproduces the issue:
    def foo(x):
        return x[0]**2

    x0 = np.array([1])
    lower_bounds = np.array([-10])
    upper_bounds = np.array([10])
    plausible_lower_bounds = np.array([-5])
    plausible_upper_bounds = np.array([5])
    bads = BADS(foo, x0, lower_bounds, upper_bounds, plausible_lower_bounds, plausible_upper_bounds)

Traceback (most recent call last):
  File "D:\Miniconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3505, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-41-0b496bbed19e>", line 9, in <module>
    bads = BADS(foo, x0, lower_bounds, upper_bounds, plausible_lower_bounds, plausible_upper_bounds)
  File "D:\Miniconda3\lib\site-packages\pybads\bads\bads.py", line 245, in __init__
    self.optim_state = self._init_optim_state_()
  File "D:\Miniconda3\lib\site-packages\pybads\bads\bads.py", line 602, in _init_optim_state_
    self.var_transf = VariableTransformer(
  File "D:\Miniconda3\lib\site-packages\pybads\variable_transformer\variables_transformer.py", line 117, in __init__
    ) = self.__create_hypercube_trans__()
  File "D:\Miniconda3\lib\site-packages\pybads\variable_transformer\variables_transformer.py", line 164, in __create_hypercube_trans__
    and (self.pub[:, i] / self.plb[:, i] >= 10).item()
ValueError: can only convert an array of size 1 to a Python scalar

Thanks for posting this, we will look into it.

Hello,
Thank you a lot for posting this issue.
I would like to share with you that we released a new patch version of PyBADS, v1.0.2.
It includes the fix to the single parameter optimization.
You can update your environment or reinstall the library by following pypi or conda instructions, e.g.  pip install --upgrade pybads.

authors: GurjeetSinghSangra lacerbi sakimarquis

repo: acerbilab/pybads


text:
Facing captcha challenges lot of times after update

I have been using without login before the update but after the update just all the requests got captcha error

Anyways version 0.8.2 working perfectly👌

Hey, I'm facing the same issue even on 0.8.2 ver. How do I set login here?

https://github.com/tom-snow/PyroEdgeGPTBot/issues/20#issuecomment-1586542261

Hey, I'm facing the same issue even on 0.8.2 ver. How do I set login here?

use version 0.4.2 no bugs at all and if you need without login there's version 0.7.2

authors: MohitS26 Yorddyyorddy tom-snow


text:
FlexDriver IP

I am stuck on the "need to acquire FlexDriver IP (src/flc.dcp) from NVIDIA Networking".
Any chance you could post an FPGA bitstream?
Or, could you provide any details with regard to how the ConnectX-5 is configured to send packets to the FPGA instead of the Host.

Seconded! I raised the issue @mwrnd references above, because I want to react to packet reception and control transmission of packets from within the FPGA fabric of an Innova-2 board.

Seconded! I raised the issue @mwrnd references above, because I want to react to packet reception and control transmission of packets from within the FPGA fabric of an Innova-2 board.

Hi, thank you for your interest in FlexDriver. As I explained in the other issue you posted, unfortunately, NVIDIA cannot share the FlexDriver IP publically at this time, but please get in touch with me privately for more information.

Hi, thank you for your interest in FlexDriver. As I explained in the other issue you posted, unfortunately, NVIDIA cannot share the FlexDriver IP publically at this time, but please get in touch with me privately for more information.

There are some news? Why the FlexDriver IP (src/flc.dcp) cannot be acquired?

authors: ciclonite haggaie mwrnd ttsiodras

repo: acsl-technion/flexdriver-iot-auth


text:
Allow to store cache even if the job DOES NOT complete successfully

In the documentation it states:

If the job completes successfully, the action creates a new cache with the contents of the path directory.
https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows

Please consider to loosen this restriction so it is possible to save cache results even of a failing job.
In my case, I am using CI to test a website. Hyperlinks are checked using HTMLProofer and cached to avoid checking a known-existing page too frequently.
Broken links cause the job to fail (happy about this). But then that also causes the checked links not to be saved into cache (want to change this).
And so I would like this to not be skipped.

More information:
https://github.com/gjtorikian/html-proofer#caching-with-travis
On Travis we used to use to achieve these:
cache:
  directories:
  - $TRAVIS_BUILD_DIR/tmp/.htmlproofer

Workaround:
On your testing step use like rake test || true

I also want this feature, but instead for caching of expensive, infrequently changing build artifacts in C++ builds. This means that if something early in the build breaks something late in the build, the entire thing doesn't get cached even though the fix might only affect later items.

Closing as a duplicate https://github.com/actions/cache/issues/272

authors: fulldecent jkflying konradpabjan

repo: actions/cache


text:
Add Windows SDK 26100 to toolset-2022.json

Description
Includes latest Windows 11 SDK 26100 (which was released in May 2024)
For new tools, please provide total size and installation time.
Related issue: https://github.com/actions/runner-images/issues/10349
Not sure if

this should also be added to Windows Server 2019
we should update the Windows Driver Kit as part of this

unlike the Windows 11 SDK, it doesn't look like multiple versions of the WDK can be installed at the same time

Check list

[ ] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

Hi @ankushg, isn't an update of VisualStudio.Tests.ps1 necessary for this edit?

FYI, duplicate PR was merged: https://github.com/actions/runner-images/pull/10862
So this one can be closed.

authors: MathijsHofkens ankushg dlech

repo: actions/runner-images


text:
Support GHC 8.8.3

GHC 8.8.3 was announced. Using this action I'm getting the error
Run actions/setup-haskell@v1
  with:
    ghc-version: 8.8.3
    cabal-version: 3.0
##[error]Version 8.8.3 of ghc not found

Blocking https://github.com/agda/agda/issues/4476.

I created PR https://github.com/actions/virtual-environments/pull/483 (based on PR https://github.com/actions/virtual-environments/pull/303) for fixing this issue.

Any updates here?

The PR https://github.com/actions/virtual-environments/pull/483 was merged. It seems we need to wait for a release of Ubuntu 16.04 and/or Ubuntu 18.04 from virtual environments.

It seems that I'm able to set ghc-version: 8.8.2 with this repo's v1, but it can't seem to find 8.8.3 yet.

Same here.

Oh, it looks like both 8.8.3 and stack are included in the 18.04 prerelease that was released 4 days ago. Not sure if that's what corresponds to ubuntu-latest in our CI config, though. Probably not yet.

From virtual environments currently ubuntu-latest is Ubuntu 18.04.
I just could use GHC 8.8.3 on Ubuntu 16.04 (which is green in the Latest Release & Rollout Progress column).

GHC 8.8.3 was included in both Ubuntu 16.04 and 18.04.

authors: asr fosskers

repo: actions/setup-haskell


text:
Accessing LocalDb shows System.InvalidOperationException: Timeout expired.

Description
I have the following yml,
name: Build

on: [push, pull_request]

jobs:
  build:

    runs-on: windows-latest
    strategy:
      matrix:
        dotnet-version: ['5.0.x' ]

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Setup .NET Core
        uses: actions/setup-dotnet@v1
        with:
          dotnet-version: ${{ matrix.dotnet-version }}
      - name: Install dependencies
        run: dotnet restore
      - name: Build
        run: dotnet build --configuration Release --no-restore
      - name: Test
        run: dotnet test --no-restore --verbosity normal

My project depends upon LocalDB. When the Github Action runs, its failes with the below error,
The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.

Area for Triage:
.NET Core
Question, Bug, or Feature?:
Question
Virtual environments affected

[x ] Ubuntu 16.04

[x ] Windows Server 2019

Image version
Latest
Expected behavior
The build should be passed.
Actual behavior
The build failed with error,
Application startup exception: System.InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.

On ubuntu, it says PlatformNotSupportedException
Repro steps
Copy paste the above yml and run any dotnet project with LocalDB.

Moved to InMemoryDatabase.

repo: actions/virtual-environments


text:
Allow software version to lag

Description
Recently Github updated all images to Postgres 14. This has caused a lot of breakage, from issues like https://github.com/actions/virtual-environments/issues/4243 to https://www.postgresql.org/message-id/flat/16040-eaacad11fecfb198%40postgresql.org
This policy of immediately updating all existing images across major software versions is doomed to cause problems for end-users when we have no way to pin images.
It should be possible for users to pin to a major version of important software on an image. If I ask for image X one day that has postgres 13, then when I ask for image X the next day I should not get postgres 14.
To reduce maintenance cost on Github, I think it would be reasonable to impose limits (eg. when postgres 15 is released, then 13 can stop being supported).
Virtual environments affected

[ ] Ubuntu 16.04
[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[ ] Windows Server 2016
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
N/A
Is it regression?
No response
Expected behavior
No response
Actual behavior
No response
Repro steps
N/A

I have opened separate tasks for each package and we will handle them separately. This issue now can be closed.
@Diggsey Thanks a lot!

authors: Diggsey mikhailkoliada


text:
[AL-1418] Fix error when extending with empty list

🚀 🚀 Pull Request
Checklist:

[ ]  My code follows the style guidelines of this project and the Contributing document
[ ]  I have commented my code, particularly in hard-to-understand areas
[ ]  I have kept the coverage-rate up
[ ]  I have performed a self-review of my own code and resolved any problems
[ ]  I have checked to ensure there aren't any other open Pull Requests for the same change
[ ]  I have described and made corresponding changes to the relevant documentation
[ ]  New and existing unit tests pass locally with my changes

Changes
Fix error when extending with empty list.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

repo: activeloopai/Hub


text:
Arithmetic operations produce wrong result or loop indefinitely with hexadecimal literals

Acton Version
0.12.0.20221031.13.5.42
Steps to Reproduce
Compile and run:
actor main(env):
    print("Try hex...")
    print("Test0:", 10 + 0x3)
    print("Test1:", 10 - 0x3)
    print("Test2:", 10 * 0x3)
    print("Test3:", 10 // 0x3)
    print("Test4:", 10 % 0x3)
    await async env.exit(0)

Expected Behavior
Output:
Try hex...
Test0: 13
Test1: 7
Test2: 30
Test3: 3
Test4: 1

Actual Behavior
Output:
Try hex...
Test0: 10
Test1: 10
Test2: 0

I can reproduce on my machine and the generated C code doesn't look awfully weird so I give it a 51% / 49% of being in the builtins ;)
@sydow your the "builtins guy", wanna have a look? :)

I increase the probability of it being in the builtin to 100%. When we changed ints to be of arbitrary size, we of course had to change integer literals to be strings of arbitrary length. To convert long strings to big integers, I just relied on a function in BSDNT to do that. And I didn't think of the fact that this function expects decimal notation... I will see what to do.

@sydow nice! Also add a test case maybe?

@ddjoh you now have access to open branches on this repo, so when you encounter an issue, you can add a test case right away for it. In test/ directory there are a number of _auto directories, preferably place a test file in one of thos, like builtin_auto/test_arithmetics.act. It'll be picked up automatically by the test harness. Leave it failing on a branch and the fix can then be placed on that branch to prove it works...
if there's no directory that is particularly suitable, we have test/regression_auto which is the kitchen sink...

@ddjoh I added so you can push branches here. When you encounter a bug, feel free to add a test for it! See tests/ directory. In particular ones that end with _auto. You can just drop new files in there and they will be run. Or drop it into an existing file if that looks more suitable!

authors: ddjoh plajjan sydow

repo: actonlang/acton


text:
Remove docs branch

It's unnecessary. Change picture in the documentation and the description.

Done in f8ac5469c95f2023748b0225c3b151967d4fc5ce

repo: acturtle/cashflower


text:
🛑 Processors is down

In 0278808, Processors ($STATUS_URL) was down:

HTTP code: 200
Response time: 107 ms

Resolved: Processors is back up in 8823d68.

repo: acumenlabs/status-page


text:
⚠ Fetchers has degraded performance

In 82d8466, Fetchers ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 333 ms

Resolved: Fetchers performance has improved in 601e05f.


text:
⚠ Fetchers has degraded performance

In cb68f6a, Fetchers ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 336 ms

Resolved: Fetchers performance has improved in dc3412c.


text:
[ADD] Added some badges in README.md

Description
Hello! Nothing to fix, just added some informative badges in README.md, feel free to accept or decline the PR.
Type of change

[x ] New feature (non-breaking change which adds functionality)

Thank you so much

repo: acwazz/fastapi-responseschema


text:
[Examples]: Change _exit to _Exit

Pushed this to fix the following issue when building examples under linux:
../../../examples/nmea2000/main.cpp:41:2: error: ‘_exit’ was not declared in this scope; did you mean ‘_Exit’?
   41 |  _exit(EXIT_FAILURE);
      |  ^~~~~
      |  _Exit

What are your thoughts on something like this?
diff --git a/examples/vt_aux_n/main.cpp b/examples/vt_aux_n/main.cpp
index db1dafb..312dc7b 100644
--- a/examples/vt_aux_n/main.cpp
+++ b/examples/vt_aux_n/main.cpp
@@ -15,18 +15,13 @@
 #include <memory>

 //! It is discouraged to use global variables, but it is done here for simplicity.
-static std::shared_ptr<isobus::VirtualTerminalClient> TestVirtualTerminalClient = nullptr;
+static std::atomic_bool running = true;

 using namespace std;

 void signal_handler(int)
 {
-	CANHardwareInterface::stop();
-	if (nullptr != TestVirtualTerminalClient)
-	{
-		TestVirtualTerminalClient->terminate();
-	}
-	_exit(EXIT_FAILURE);
+	running = false;
 }

 void update_CAN_network()
@@ -114,17 +109,18 @@ int main()
 	std::shared_ptr<isobus::InternalControlFunction> TestInternalECU = std::make_shared<isobus::InternalControlFunction>(TestDeviceNAME, 0x1C, 0);
 	std::shared_ptr<isobus::PartneredControlFunction> TestPartnerVT = std::make_shared<isobus::PartneredControlFunction>(0, vtNameFilters);

-	TestVirtualTerminalClient = std::make_shared<isobus::VirtualTerminalClient>(TestPartnerVT, TestInternalECU);
+	auto TestVirtualTerminalClient = std::make_shared<isobus::VirtualTerminalClient>(TestPartnerVT, TestInternalECU);
 	TestVirtualTerminalClient->set_object_pool(0, isobus::VirtualTerminalClient::VTVersion::Version3, testPool.data(), testPool.size(), objectPoolHash);
 	TestVirtualTerminalClient->register_auxiliary_input_event_callback(handle_aux_input);
 	TestVirtualTerminalClient->initialize(true);

-	while (true)
+	while (running)
 	{
 		// CAN stack runs in other threads. Do nothing forever.
 		std::this_thread::sleep_for(std::chrono::milliseconds(1000));
 	}

 	CANHardwareInterface::stop();
+	TestVirtualTerminalClient->terminate();
 	return 0;
 }

That would work I think. I'll test it out to make sure and update this PR

Hmmmm... maybe we should disable sonar on the examples....

Hmmmm... maybe we should disable sonar on the examples.... they will be high in duplication and not very unit-testable

Yeah, I think its fine to exclude the examples from the coverage tracking, and possibly the duplication part if there's a dedicated option for it. I feel like it's still usefull for the code smells


text:
Transaction Report - 167e232bc0fa82e96b992d13df9336a543c2b3e8c5cc234aa55f3a32af195037

Transaction Report
Title:
Transaction Report - 167e232bc0fa82e96b992d13df9336a543c2b3e8c5cc234aa55f3a32af195037
Description:
I received a scam token
Evidence:
Hunt Airdrop ticket is not a legitimate NFT

@edridudi Thanks for bringing this issue to our attention.
The best way to resolve this is to contact our support team.
For the fastest resolution, please click on the link below to our dedicated support line:
Support: Cardano Help Center
Note: Click on the live chat icon at the bottom corner of the page to start a conversation

repo: adabox-aio/cardano-shield


text:
Add a display_offset parameter to SH1107.

The current init_sequence assumes it is connected to the Adafruit FeatherWing 128x64 OLED
screen. This parameter provides a way to set value provided to the Display Offset (D3)
command. The value of this cannot be calculated from the size of the screen (except in
the maximum case) as a manufacturer can choose where in the 128x128 grid they wire up
their screen to.
The default value has been kept to the FeatherWing value of 0x60 so this should not be a
breaking change.
Constants have been included for:

Adafruit FeatherWing 128x64 OLED
Pimoroni Mono 128x128 OLED

@lesamouraipourpre Thanks I noticed that you mentioned that this is not a breaking change. I could test that
So this will add support for the Pimoroni display as I can see in the code.
@kattni comments rearding this. Let me know and I could proceed to test and give my final review. Thanks

@jposada202020 As long as it doesn't break support for the Adafruit SH1107 display, it's fine to add support for the Pimoroni display. The important thing is that it defaults to the current settings so that all of the associated code does not need to be changed.

Thanks I will test then tonight, and make my review if any, or merged... Thanks...

authors: jposada202020 kattni lesamouraipourpre


text:
getitem does not take advantage of slices

With the new slice get functionality getitem can be changed to not build the slice itself. The current python implementation is 50% slower then using the core code only.

Fixed by #3


text:
error when using Blinka caused by gc.mem_free()

Using Blinka to run NASA image of the day example on a pitft results in the following error:
 response = self.network.fetch(self.url, timeout=timeout)   File "/home/pi/.local/lib/python3.7/site-packages/adafruit_portalbase/network.py", line 429, in fetch     print("Free mem: ", gc.mem_free())  # pylint: disable=no-member AttributeError: module 'gc' has no attribute 'mem_free'
I think because gc.mem_free() is a circuitpython specific attribute and not present in Cpython gc module

Thanks!

Thanks!

authors: Jayguitar makermelissa


text:
Missing Type Annotations

There are missing type annotations for some functions in this library.
The typing module does not exist on CircuitPython devices so the import needs to be wrapped in try/except to catch the error for missing import. There is an example of how that is done here:
try:
    from typing import List, Tuple
except ImportError:
    pass

Once imported the typing annotations for the argument type(s), and return type(s) can be added to the function signature. Here is an example of a function that has had this done already:
def wrap_text_to_pixels(
    string: str, max_width: int, font=None, indent0: str = "", indent1: str = ""
) -> List[str]:

If you are new to Git or Github we have a guide about contributing to our projects here: https://learn.adafruit.com/contribute-to-circuitpython-with-git-and-github
There is also a guide that covers our CI utilities and how to run them locally to ensure they will pass in Github Actions here: https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/check-your-code In particular the pages: Sharing docs on ReadTheDocs and Check your code with pre-commit contain the tools to install and commands to run locally to run the checks.
If you are attempting to resolve this issue and need help, you can post a comment on this issue and tag both @foamyguy and @kattni or reach out to us on Discord: https://adafru.it/discord in the #circuitpython-dev channel.
The following locations are reported by mypy to be missing type annotations:

[ ] adafruit_requests.py:44
[ ] adafruit_requests.py:52
[ ] adafruit_requests.py:55
[ ] adafruit_requests.py:64
[ ] adafruit_requests.py:85
[ ] adafruit_requests.py:116
[ ] adafruit_requests.py:119
[ ] adafruit_requests.py:129
[ ] adafruit_requests.py:145
[ ] adafruit_requests.py:190
[ ] adafruit_requests.py:207
[ ] adafruit_requests.py:240
[ ] adafruit_requests.py:347
[ ] adafruit_requests.py:369
[ ] adafruit_requests.py:377
[ ] adafruit_requests.py:382
[ ] adafruit_requests.py:401
[ ] adafruit_requests.py:458
[ ] adafruit_requests.py:472
[ ] adafruit_requests.py:517
[ ] adafruit_requests.py:609
[ ] adafruit_requests.py:613
[ ] adafruit_requests.py:617
[ ] adafruit_requests.py:621
[ ] adafruit_requests.py:625
[ ] adafruit_requests.py:629
[ ] adafruit_requests.py:640
[ ] adafruit_requests.py:648
[ ] adafruit_requests.py:657
[ ] adafruit_requests.py:660
[ ] adafruit_requests.py:666
[ ] adafruit_requests.py:677
[ ] adafruit_requests.py:691
[ ] adafruit_requests.py:696
[ ] adafruit_requests.py:701
[ ] adafruit_requests.py:706
[ ] adafruit_requests.py:711
[ ] adafruit_requests.py:716

Submitted PR #87 to address

closed by #87

@FoamyGuy while working on #94 I saw there are still 42 mypy errors in adafruit_requests.py, so you might consider reopening this issue.
To reproduce, you can apply this diff to the pre-commit config on main (e.g. the run below was on 26b2411780f69edece156c25476359242446bac0):
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1b9fadc..f6745f9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,3 +40,10 @@ repos:
         files: "^tests/"
         args:
         - --disable=missing-docstring,consider-using-f-string,duplicate-code
+- repo: https://github.com/pre-commit/mirrors-mypy
+  rev: v0.930
+  hooks:
+  - id: mypy
+    files: ^(adafruit_requests.py)
+    additional_dependencies:
+    - types-ujson

and then run:
(.env) gitpod /workspace/Adafruit_CircuitPython_Requests $ pre-commit run mypy --all-files
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

adafruit_requests.py:115: error: Need type annotation for "socket"
adafruit_requests.py:118: error: Need type annotation for "_headers" (hint: "_headers: Dict[<type>, <type>] = ...")
adafruit_requests.py:216: error: Argument 1 to "_recv_into" of "Response" has incompatible type "memoryview"; expected "bytearray"
adafruit_requests.py:230: error: Unsupported operand types for > ("int" and "None")
adafruit_requests.py:230: note: Left operand is of type "Optional[int]"
adafruit_requests.py:231: error: Incompatible types in assignment (expression has type "Optional[int]", variable has type "int")
adafruit_requests.py:261: error: Incompatible types in assignment (expression has type "int", variable has type "None")
adafruit_requests.py:266: error: Unsupported operand types for > ("int" and "None")
adafruit_requests.py:267: error: Incompatible types in assignment (expression has type "None", variable has type "int")
adafruit_requests.py:272: error: Unsupported operand types for - ("None" and "int")
adafruit_requests.py:272: error: Incompatible types in assignment (expression has type "int", variable has type "None")
adafruit_requests.py:321: error: Incompatible types in assignment (expression has type "str", variable has type "bytes")
adafruit_requests.py:322: error: Incompatible types in assignment (expression has type "str", variable has type "bytes")
adafruit_requests.py:324: error: Incompatible types in assignment (expression has type "int", variable has type "None")
adafruit_requests.py:345: error: Incompatible types in assignment (expression has type "bytes", variable has type "None")
adafruit_requests.py:345: error: Argument 1 to "join" of "bytes" has incompatible type "bytes"; expected "Iterable[Union[ByteString, memoryview]]"
adafruit_requests.py:345: note: Following member(s) of "bytes" have conflicts:
adafruit_requests.py:345: note:     Expected:
adafruit_requests.py:345: note:         def __iter__(self) -> Iterator[Union[ByteString, memoryview]]
adafruit_requests.py:345: note:     Got:
adafruit_requests.py:345: note:         def __iter__(self) -> Iterator[int]
adafruit_requests.py:346: error: Incompatible return value type (got "None", expected "bytes")
adafruit_requests.py:356: error: Incompatible types in assignment (expression has type "str", variable has type "None")
adafruit_requests.py:356: error: Argument 2 to "str" has incompatible type "Optional[str]"; expected "str"
adafruit_requests.py:357: error: Incompatible return value type (got "None", expected "str")
adafruit_requests.py:370: error: Incompatible types in assignment (expression has type "_RawResponse", variable has type "None")
adafruit_requests.py:373: error: Argument 1 to "load" has incompatible type "None"; expected "SupportsRead[Union[str, bytes]]"
adafruit_requests.py:377: error: "None" has no attribute "read"
adafruit_requests.py:383: error: The return type of a generator function should be "Generator" or one of its supertypes
adafruit_requests.py:413: error: Need type annotation for "_open_sockets" (hint: "_open_sockets: Dict[<type>, <type>] = ...")
adafruit_requests.py:414: error: Need type annotation for "_socket_free" (hint: "_socket_free: Dict[<type>, <type>] = ...")
adafruit_requests.py:477: error: Item "None" of "Optional[SSLContext]" has no attribute "wrap_socket"
adafruit_requests.py:535: error: "Dict[str, str]" has no attribute "encode"
adafruit_requests.py:537: error: No overload variant of "__getitem__" of "list" matches argument type "Dict[str, str]"
adafruit_requests.py:537: note: Possible overload variants:
adafruit_requests.py:537: note:     def __getitem__(self, SupportsIndex) -> Dict[str, str]
adafruit_requests.py:537: note:     def __getitem__(self, slice) -> List[Dict[str, str]]
adafruit_requests.py:537: note:     def __getitem__(self, SupportsIndex) -> Dict[str, str]
adafruit_requests.py:537: note:     def __getitem__(self, slice) -> List[Dict[str, str]]
adafruit_requests.py:537: note:     def __getitem__(self, SupportsIndex) -> Dict[str, str]
adafruit_requests.py:537: note:     def __getitem__(self, slice) -> List[Dict[str, str]]
adafruit_requests.py:537: note:     def __getitem__(self, SupportsIndex) -> Dict[str, str]
adafruit_requests.py:537: note:     def __getitem__(self, slice) -> List[Dict[str, str]]
adafruit_requests.py:545: error: Name "json_module" already defined (by an import)
adafruit_requests.py:583: error: Incompatible types in assignment (expression has type "Dict[<nothing>, <nothing>]", variable has type "Optional[List[Dict[str, str]]]")
adafruit_requests.py:600: error: Incompatible types in assignment (expression has type "str", variable has type "int")
adafruit_requests.py:615: error: Argument 5 to "_send_request" of "Session" has incompatible type "Optional[List[Dict[str, str]]]"; expected "List[Dict[str, str]]"
adafruit_requests.py:633: error: Incompatible types in assignment (expression has type "None", variable has type "socket")
adafruit_requests.py:659: error: Incompatible types in assignment (expression has type "Response", variable has type "None")
adafruit_requests.py:662: error: Incompatible types in assignment (expression has type "Response", variable has type "None")
adafruit_requests.py:697: error: Need type annotation for "_socket"
adafruit_requests.py:699: error: Need type annotation for "settimeout"
adafruit_requests.py:700: error: Need type annotation for "send"
adafruit_requests.py:701: error: Need type annotation for "recv"
adafruit_requests.py:702: error: Need type annotation for "close"
adafruit_requests.py:731: error: Argument 2 to "Session" has incompatible type "_FakeSSLContext"; expected "Optional[SSLContext]"
adafruit_requests.py:733: error: Argument 2 to "Session" has incompatible type "_FakeSSLContext"; expected "Optional[SSLContext]"
adafruit_requests.py:748: error: Item "None" of "Optional[Session]" has no attribute "request"
adafruit_requests.py:761: error: Item "None" of "Optional[Session]" has no attribute "request"
adafruit_requests.py:766: error: Item "None" of "Optional[Session]" has no attribute "request"
adafruit_requests.py:771: error: Item "None" of "Optional[Session]" has no attribute "request"
adafruit_requests.py:776: error: Item "None" of "Optional[Session]" has no attribute "request"
adafruit_requests.py:781: error: Item "None" of "Optional[Session]" has no attribute "request"
adafruit_requests.py:786: error: Item "None" of "Optional[Session]" has no attribute "request"
Found 49 errors in 1 file (checked 1 source file)

I saw that the number of errors decreases to 42 after #94.

@kevincon thanks for the heads up. It is okay for the library not to completely pass mypy testing at this point.
We have not added mypy to the CI checks yet. When the time comes to do that (once we have most of the typing "low hanging fruit" done accross all libraries) then we'll have a discussion amongst the team to determine what settings and configuration we'll use for mypy when we add it to CI which may change which specific mypy warnings and how many of them we'll see on any given library.

authors: FoamyGuy kevincon tekktrik


text:
v74 / staging - Infinite "Polling for message containing hardware configuration..."

Appears to happen after successful hardware configuration.
serial_output_v74_esp32v2.txt
Same after a reboot.

I'll now delete the device from staging and reset it

Confirming that I can replicate this on alpha 74

@tyeth  Loren fixed a check for alpha vs beta on staging, this works perfectly for me on FeatherS3 NO PSRAM on alpha74/staging with a magic config.

authors: brentru tyeth