text:
Fix a mix up with AccountSet flags

High Level Overview of Change

rename AccountSetFlags -> AccountSetAsfFlags (this could be considered a breaking change)
add AccountSetTfFlags
update AccountSetFlagInterface to use AccountSetTfFlags
update tests accordingly

Context of Change
AccountSet has two types of flags.

"AccountSet Flags" (prefixed asf), used in SetFlag/ClearFlag field, limited to one per transaction
"AccountSet Transaction Flags" (prefixed tf), used in common Flags field, multiple possible (bit-flags)

(AccountSetAsfFlags are not bit-field flags and therefore do not require a FlagInterface)
Reference:

https://xrpl.org/accountset.html#accountset-flags
https://xrpl.org/transaction-common-fields.html
https://github.com/XRPLF/rippled/blob/develop/src/ripple/protocol/TxFlags.h

Similar to the implementation found in the xrpl.js framework, this PR creates an enum for each type of flag.
Type of Change

[ ] Bug fix (possibly breaking change which fixes an issue)

Test Plan

only ran poetry run poe test_unit
needs better/more testing (and extensive review)

Why is this PR necessary?

Nice catch!
I am in favor of  the tf flags and TX_FLAGS which currently has completely incorrect flags listed. That said I don't think AccountSetFlags needs to be renamed.

Why is this PR necessary?

I think the current implementation is confusing and faulty.
Let me showcase this by example (code take from unit tests)
https://github.com/XRPLF/xrpl-py/blob/v1.7.0/tests/unit/models/transactions/test_better_transaction_flags.py#L20
        actual = models.AccountSet(
            account=ACCOUNT,
            flags=models.AccountSetFlagInterface(
                asf_account_tx_id=True,
                asf_authorized_nftoken_minter=True,
                asf_default_ripple=True,
                asf_deposit_auth=True,
                asf_disable_master=True,
                asf_disallow_xrp=True,
                asf_global_freeze=True,
                asf_no_freeze=True,
                asf_require_auth=True,
                asf_require_dest=True,
            ),
        )

As outlined before there are two kinds of AccountSet flags, the asf and tf flags. The somewhat special asf flags can take integer values from 1 to 10 (these are just numbers and do represent bits). At most one asf flags can be set per transaction.
The above code has several issues:

a FlagInterface essential represent bits;  doing bit operations on asf flags makes no sense
the flags parameter accepts tf transaction flags, assigning the asf gibberish produced with the AccountSetFlagInterface makes even less sense

Nice catch!
I am in favor of the tf flags and TX_FLAGS which currently has completely incorrect flags listed. That said I don't think AccountSetFlags needs to be renamed.

I think the FlagInterface changes are also very much necessary.
In regards to naming. Currently the pattern used throughout the library for naming flags seems to be tx name + 'Flag'. For example:

TrustSetFlag for TrustSet
OfferCreateFlag for OfferCreate

Following that would result in:

AccountSetFlag for the tf transaction flags
AccountSetAsfFlag for the  asf flags (that's the outlier, should probably also get the outlier name)

The only drawback/consideration would have be that we are "switching" the flags that were defined in AccountSetFlag (until now asf).

Assuming this PR moves forward eventually, I will have to make some changes:

someone (@mvadari ?) has to make a decision regarding the enum names (see above)
will need a rebase to resolve some minor conflicts introduced in #522
will need  minor linting fixes

@rikublock would you be able to make those changes now?
@mvadari do you have an opinion on the enum names?

AccountSetFlag for the tf transaction flags
AccountSetAsfFlag for the  asf flags (that's the outlier/special case, should probably also get the outlier name)

I like these names and agree with the logic.

@rikublock would you be able to make those changes now?
I'll take a look at it this week.

As a rough plan of action, I think these changes should be included in xrpl-py 2.0, so I'll take it as an action item today/tomorrow to get the xrpl-py 2.0 branch up to date so we can point it at that branch without a lot of unrelated changes appearing in the changelog :)

I added the outstanding changes and fixes. I also split the commits to make each individual change easier to understand/review.

As a rough plan of action, I think these changes should be included in xrpl-py 2.0, so I'll take it as an action item today/tomorrow to get the xrpl-py 2.0 branch up to date so we can point it at that branch without a lot of unrelated changes appearing in the changelog :)

Sounds good. I agree, it might be best to include this in a major release as the PR contains somewhat breaking changes.

@rikublock Ah, didn't realize you were changing things at the moment - I just was rebasing to try to fix the merge conflicts. It seems I have included all the above commits in the final version. Are there any other changes you were hoping to make before we merge it?

I think I may have misinterpreted the Git history - if there are changes we need to make we can do a follow up PR :)

@JST5000 As far as I am concerned this PR included all the necessary changes.

repo: XRPLF/xrpl-py


text:
请教转发 xray log 至 native 的功能问题提问？

接续问题 #14
请问我后来在 xray_wrapper.go 新增增加转发 xray log 至 native 的功能，但是在 系统监控程式.app 看到的 log 是 "private" 并无转发到 native 中，所以提出以下 xray_wrapper.go 新增的内容，能请问各位前辈，我的程式码是否有没注意到的问题吗？
目前遇到两个问题

log 内容是 "< private >"。
OnAccessLog 没有转发到 native；设计上是希望向 delegate 传到 native。

private log image
/// XrayLogger
type XrayLogger interface {
	OnAccessLog(message string)
}

type myLogger struct{}

func (m *myLogger) OnAccessLog(message string) {
	fmt.Println("Access Log:", message)
}

var globalLogger XrayLogger

// XraySetupLogger 接收一个 XrayLogger 接口实现
func XraySetupLogger(logger XrayLogger) {
	globalLogger = logger
	if logger != nil {
		logger.OnAccessLog("Access log message")
	}
}

/// Give me Log

type consoleLogWriter struct {
	logger *log.Logger
}

func (w *consoleLogWriter) Close() error {
	return nil
}

func (w *consoleLogWriter) Write(s string) error {
	w.logger.Println(s)
	globalLogger.OnAccessLog(s)
	var stringA = fmt.Sprintf("(String(reflecting: %v), privacy: .public)", s)
	globalLogger.OnAccessLog(stringA)
	return nil
}

type defaultLogWriter struct{}

func (defaultLogWriter) Write(b []byte) (int, error) {
	log.Println("(String(reflecting: %v), privacy: .public)", string(b))
	var stringA = fmt.Sprintf("(String(reflecting: %v), privacy: .public)", string(b))
	globalLogger.OnAccessLog(stringA)
	return len(b), nil
}

func CreateDefaultLogWriter() v2commlog.WriterCreator {
	return func() v2commlog.Writer {
		return &consoleLogWriter{
			logger: log.New(defaultLogWriter{}, "", 0),
		}
	}
}

func init() {
	v2applog.RegisterHandlerCreator(v2applog.LogType_Console, func(lt v2applog.LogType, options v2applog.HandlerCreatorOptions) (v2commlog.Handler, error) {
		return v2commlog.NewLogger(CreateDefaultLogWriter()), nil
	})
}

两个问题：

转发至 native 是让你用对应的 swift / kotlin 去实现日志的 输出 。
Logger.xxxx("(String(reflecting: msg), privacy: .public)") 是 swift 的具体实现。

看来你是一点没 google 啊。
这个问题不会再有后续解答，请自行 google 。

感谢回答，我大部分是用GPT-4在提问，看来我没有get到问题的重点
我确实在转发的部分遇到比较多问题，因为想要效仿 Mango 专案输出log那样
定义一个 OnAccessLog(message string) 方法，在 swift 继承 LibXrayXrayLoggerProtocol
透过 delegate 到 native 过来收到 log。

@yiguous 不好意思，打擾你，已經嘗試閱讀別人分享範例和GPT-4的詢問，只有進步一點點，但還是沒有成果，請問如果付費的話，能夠請你給我指導範例嗎？

https://github.com/XTLS/libXray/issues/14#issuecomment-1844082795
这里已经提供了两种方案，如果第一种缺乏实现的能力，为什么不试试第二种呢？

兩種都有嘗試過，但是都沒有成功，可能自己理解力不足；會偏向第一種是因為之前使用 Arror大大寫的 mango，使用上再檢查log很好用，所以想要向他一樣，雖然後續他也消失了...
呈現log功能已經嘗試好幾個星期沒有突破，所以才在有關Xray的地方尋求幫助指點
感謝你的閱讀

@yiguous
跟你說好消息，目前寫入log已經成功了，最後的解決方案是app指定寫入的路徑給go，go會在那個路徑產生檔案，最後從 app 那端其取出來看log，終於大功告成，感謝囉

Good job!

@yiguous 跟你說好消息，目前寫入log已經成功了，最後的解決方案是app指定寫入的路徑給go，go會在那個路徑產生檔案，最後從 app 那端其取出來看log，終於大功告成，感謝囉 後續更新，已經有辦法實現第一項 转发至 native 让 swift 实现日志的输出囉请问
怎么实现的

思維邏輯就是
go log -> Deleget -> Swift
朝這邏輯上推論，我後續是用 ChatGPT 幫我寫程式碼完成的，中間會嘗試錯誤，持續修正回調，應該就能達到你要的效果

@yiguous 跟你說好消息，目前寫入log已經成功了，最後的解決方案是app指定寫入的路徑給go，go會在那個路徑產生檔案，最後從 app 那端其取出來看log，終於大功告成，感謝囉 後續更新，已經有辦法實現第一項 转发至 native 让 swift 实现日志的输出囉请问
怎么实现的

思維邏輯就是
go log -> Deleget -> Swift
朝這邏輯上推論，我後續是用 ChatGPT 幫我寫程式碼完成的，中間會嘗試錯誤，持續修正回調，應該就能達到你要的效果

source: gharchive/issue

repo: XTLS/libXray

license: MIT

license_type: permissive

license_source: github-api


text:
Docs cleanup for contribution

Context:
Cleanup documentation for ease of contribution based on this slack conversation.
Description of the Change:

[x] Fix outdated contributing link
[x] Development guide test section includes pytest-randomly and pytest-mock
[x] Contribution challenges, PR template, and issue template links are not dead

Benefits:
Makes it easier for new contributors.
Possible Drawbacks:
N/A
Related GitHub Issues:
N/A

Alright @co9olguy @josh146, this one is ready for a bit of feedback, and I have a couple questions/thoughts.
First, for pytest-randomly and pytest-mock I included links to each of their githubs, since pypi lists it as the homepage for both. Preference for github or pypi links?
Next up, could the changelog be more visible?
I struggled to find it outside repo, and thought this line in the readme

See our contributions page for more details, and then check out some of the Strawberry Fields challenges for some inspiration.

could include a link to it as

See our contributions page and changelog for more details, and then check out some of the Strawberry Fields challenges for some inspiration.

Another couple options would be to add it to the website documentation under the contribution and/or development guide PR page(s).

Thanks for the review @josh146! I added the changelog to the readme, and thought of one last question. Any desire to run black locally or just fix on GitHub check?
Could make a small readme section to install black (or even a dev_requirements.txt and include pytest) and a make format in the scripts.

Perfect, thanks @Aaron-Robertson!

Could make a small development guide section to install black (or even a dev_requirements.txt and include pytest) and a make format in the scripts.

If you were interesting in tackling this one as well, that would be great :) I'll merge this in now, and best to make a new PR (especially if it is for adding new content).

source: gharchive/pull-request

repo: XanaduAI/strawberryfields


text:
[Bug]:   Failed to install or update Checkov using python pip etc

Python Version
Python 3.10
Checkov Installation Method
pip
CheckovPrismaless Version
1.0.107
VSCode Version
1.89.1
Operating System
Windows 10
Description of the Bug
Hi XargsUK,
I don't now if it's related to the recent updates after issue I open weeks ago #2
but I started to have this error output whilefailing the update through pip python python 3 etc .
[info]: Starting Checkov Extension. {"extensionVersion":"unknown","vscodeVersion":"1.89.1"}
[info]: Trying to install Checkov using Docker.
[debug]: Testing docker installation with command: docker pull bridgecrew/checkov:latest
[error]: Failed to install or update Checkov using Docker. Error:  {"error":{"code":1,"killed":false,"signal":null,"cmd":"docker pull bridgecrew/checkov:latest","message":"Command failed: docker pull bridgecrew/checkov:latest\n'docker' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n","stack":"Error: Command failed: docker pull bridgecrew/checkov:latest\n'docker' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n\n\tat ChildProcess.exithandler (node:child_process:423:12)\n\tat ChildProcess.emit (node:events:517:28)\n\tat maybeClose (node:internal/child_process:1098:16)\n\tat Socket.<anonymous> (node:internal/child_process:450:11)\n\tat Socket.emit (node:events:517:28)\n\tat Pipe.<anonymous> (node:net:350:12)"}}
[info]: Trying to install Checkov using pip3.
[debug]: Getting python version with command: python3 --version
[debug]: python3 executable not found on Windows, falling back to python
[debug]: Getting python version with command: python --version
[error]: Failed to install or update Checkov using pip3. Error: {"error":{"code":9009,"killed":false,"signal":null,"cmd":"python --version","message":"Command failed: python --version\nPython was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.\r\n","stack":"Error: Command failed: python --version\nPython was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.\r\n\n\tat ChildProcess.exithandler (node:child_process:423:12)\n\tat ChildProcess.emit (node:events:517:28)\n\tat maybeClose (node:internal/child_process:1098:16)\n\tat Socket.<anonymous> (node:internal/child_process:450:11)\n\tat Socket.emit (node:events:517:28)\n\tat Pipe.<anonymous> (node:net:350:12)"}}
[info]: Retrying using `python` and `pip`
[debug]: Getting python version with command: python --version
[error]: Failed to install or update Checkov using pip. Error: {"error":{"code":9009,"killed":false,"signal":null,"cmd":"python --version","message":"Command failed: python --version\nPython was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.\r\n","stack":"Error: Command failed: python --version\nPython was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.\r\n\n\tat ChildProcess.exithandler (node:child_process:423:12)\n\tat ChildProcess.emit (node:events:517:28)\n\tat maybeClose (node:internal/child_process:1098:16)\n\tat Socket.<anonymous> (node:internal/child_process:450:11)\n\tat Socket.emit (node:events:517:28)\n\tat Pipe.<anonymous> (node:net:350:12)"}}
[info]: Trying to install Checkov using pipenv.
[debug]: Installation dir: c:\Users\kosse\AppData\Roaming\Code\User\globalStorage\xargsuk.checkov-prismaless\checkov-installation
[debug]: Getting python version with command: pipenv run python --version
[error]: Failed to install or update Checkov using pipenv. Error: {"error":{"code":1,"killed":false,"signal":null,"cmd":"pipenv run python --version","message":"Command failed: pipenv run python --version\n'pipenv' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n","stack":"Error: Command failed: pipenv run python --version\n'pipenv' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n\n\tat ChildProcess.exithandler (node:child_process:423:12)\n\tat ChildProcess.emit (node:events:517:28)\n\tat maybeClose (node:internal/child_process:1098:16)\n\tat Socket.<anonymous> (node:internal/child_process:450:11)\n\tat Socket.emit (node:events:517:28)\n\tat Pipe.<anonymous> (node:net:350:12)"}}
[warn]: All installation / update methods failed; attempting to fall back to a global checkov installation
[error]: Could not find a global `checkov` executable either
[error]: Error occurred while preparing Checkov. Verify your settings, or try to reload vscode. {"error":{"message":"Could not install Checkov.","stack":"Error: Could not install Checkov.\n\tat c:\\Users\\kosse\\.vscode\\extensions\\xargsuk.checkov-prismaless-1.0.107\\out\\checkov\\checkovInstaller.js:169:11\n\tat Generator.next (<anonymous>)\n\tat fulfilled (c:\\Users\\kosse\\.vscode\\extensions\\xargsuk.checkov-prismaless-1.0.107\\out\\checkov\\checkovInstaller.js:28:58)"}}

maybe It's on my side or because I updated VSCode today . but I wanted to share that anyway.
Thank you
Steps to Reproduce
Update VSCODE

Might try this
Go to -> "start" and type "Manage App Execution Aliases". Go to it and turn off "Python"
from this StackOverflow post
and see how it goes

reinstalled python and still having the same issue
>python --version
Python 3.10.0
> where python
C:\Program Files\python\Python310\python.exe
C:\Users\User\AppData\Local\Microsoft\WindowsApps\python.exe

ok now it's working .  I went back to "Manage App Execution Aliases" and enabled the alias for everything python ,

[debug]: Getting python version with command: python3 --version
[debug]: Raw output:
[debug]: Python 3.10.11

[debug]: Python version: 3.10.11

[debug]: Testing pip[3] installation with command: pip3 install --user -U -i https://pypi.org/simple/ checkov
[debug]: Location: c:\users\kosse\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages
[info]: Checkov installed successfully using pip3. {"checkovPath":"c:\\users\\user\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\\localcache\\local-packages\\python310\\Scripts\\checkov"}
[info]: Checkov installation:  {"checkovInstallationMethod":"pip3","checkovPath":"c:\\users\\user\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\\localcache\\local-packages\\python310\\Scripts\\checkov"}
[debug]: Version command: c:\users\user\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\Scripts\checkov -v
[debug]: Response from version command: 3.2.90

[info]: Previously installed checkov version does not match the newly installed one. Clearing results cache.
[debug]: Clearing results cache

you can close it I guess , but I still don't know why it happened.

repo: XargsUK/checkov-prismaless-vscode


text:
No support for PHP 8.0+

After running a light speed web server with php 8 and ShareXen, API info calls could not be made (example here: https://bsh4.com/gt25ic8.png) The solution was downgrading to php 7.4

Thank you for opening an issue as requested, it appears PHP array_map wants a string containing the function name instead of the function itself. I believe PHP 7 is more lenient so it never caused any issue… until now.
Could you replace this line:
$data['users'] = array_map(strval, array_keys(USERS));

By this one please, I just added quotation marks around strval:
$data['users'] = array_map('strval', array_keys(USERS));

Once done, I invite you to switch back to PHP 8.0+ and let me know if it works, I can't test it right now.
Thank you in advance for your cooperation!

authors: DarkMaTTTTTTer Xenthys

repo: Xenthys/ShareXen


text:
Can you keep the bookmark bar when it is hidden on common tabs?

In chrome, I used to hide the bookmark bar (Ctrl+Shift+B). When I do that, chrome will hide the bar on common tabs, but keep showing it on the default new tab, so I can view the bookmarks easily without losing visiable area. However, this extension will hide the bar. Is it possible to keep it?
————————————————
Chinese version:
我一般习惯设置隐藏书签栏，这个时候chrome会把其它页面的书签栏都隐藏了，但是默认新标签页的书签栏会保留。这样我就可以在保留最大可视面积的同时方便地访问书签栏。这个插件目前会把新标签页的书签栏也隐藏掉，请问有办法避免吗？

It's not possible to use default chrome new tab if you are using a new tab extension. Because chrome doesn't provide a way to modify its own default new tab, what the new tab extension can do is overriding the default new tab. If you want to view your bookmarks, you can visit this page chrome://bookmarks/.

报错了，启用后显示一片空白。m1处理器下的chorme
Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
上下文
chrome://newtab/
堆叠追踪
index.html:0 (匿名函数)

authors: Vancycc Xeuva w-xy

repo: Xeuva/Newtab-Random-Pixiv-Images


text:
Release 1.12.3

rDSN

PR (39 TOTAL)
TITLE

XiaoMi/rdsn#431
refactor: move log-block-writing-related codes from mutation_log to log_block

XiaoMi/rdsn#429
feat(dup): support multiple fail modes for duplication

XiaoMi/rdsn#427
refactor: move log_block class from mutation_log.h to separated file

XiaoMi/rdsn#428
fix(backup): use https to access fds, instead of http

XiaoMi/rdsn#425
fix(dup): multiple fixes on replica duplication

XiaoMi/rdsn#424
feat(dup): add dsn_replica_dup_test to CI testing and fix http outputs

XiaoMi/rdsn#421
feat: add a new app_env to limit scan time

XiaoMi/rdsn#423
feat(dup): rename change_dup_status to modify_dup

XiaoMi/rdsn#422
fix: fix memory leak in tls_transient_memory_t

XiaoMi/rdsn#416
feat: add query_disk_info api for shell command

XiaoMi/rdsn#411
feat(dup): handle non-idempotent writes during duplication

XiaoMi/rdsn#409
feat: add query_disk_info support for replica_server

XiaoMi/rdsn#420
refactor: delete unused log in replica::on_config_sync

XiaoMi/rdsn#399
feat(split): re-implement function split_replica_exec

XiaoMi/rdsn#415
feat(dup): support replica http api for duplication state query

XiaoMi/rdsn#414
feat: forbid large-size-value writes to Pegasus

XiaoMi/rdsn#390
feat(split): child notify parent catch up

XiaoMi/rdsn#401
feat(dup): support HTTP API to inspect duplication state

XiaoMi/rdsn#403
refactor(utils): make logger decoupled from dsn runtime

XiaoMi/rdsn#406
fix: weak constraint of ipv4 and incorrect code logic in hostname_from_ip

XiaoMi/rdsn#407
feat(dup): respond with hint when add_dup failed

XiaoMi/rdsn#394
feat(split): add partition_version

XiaoMi/rdsn#393
feat(dup): add metrics for duplication

XiaoMi/rdsn#398
refactor: make clock decoupled from rdsn runtime

XiaoMi/rdsn#319
feat(split): child replica apply private logs, in-memory mutations and catch up parent

XiaoMi/rdsn#395
fix(utils): fix bug in time_utils

XiaoMi/rdsn#388
refactor(util): make time_utils decoupled from utils.cpp

XiaoMi/rdsn#387
fix(thrift): add start_time_ns for structure mutation_update in thrift file

XiaoMi/rdsn#384
fix(lsan): memory leak in perf_counter_atomic.h

XiaoMi/rdsn#353
feat: add check for app envs

XiaoMi/rdsn#380
refactor(network): refine codes and comments

XiaoMi/rdsn#381
fix(asan): fix heap-use-after-free in replica_split_test

XiaoMi/rdsn#379
refactor: remove useless files (version.h, coredump.win.cpp, ReleaseNote)

XiaoMi/rdsn#377
fix(asan): heap-buffer-overflow in meta_test_base.h

XiaoMi/rdsn#375
fix(asan): heap-use-after-free in simple_lb_cure_test.cpp

XiaoMi/rdsn#374
feat(dup): add is_duplicating API on replication_app_base

XiaoMi/rdsn#371
refactor: remove aspects for dsn runtime

XiaoMi/rdsn#370
feat(dup): implement load_mutation

XiaoMi/rdsn#355
feat(dup): preserve data consistency during replica learn

Pegasus

PR (25 TOTAL)
TITLE

XiaoMi/pegasus#503
refactor: simplify logging in pegasus_server_impl

XiaoMi/pegasus#498
feat: add shell command for query_disk_info

XiaoMi/pegasus#479
feat(hotspot): new algorithm of hotspot detection

XiaoMi/pegasus#489
fix: fix bug in del function of redis_proxy

XiaoMi/pegasus#491
fix: fix the invalid IP address in src/server/test/config.ini

XiaoMi/pegasus#485
feat(shell): mlog_dump support parsing check_and_set

XiaoMi/pegasus#474
feat(split): add partition_version

XiaoMi/pegasus#478
fix(asan): heap-use-after-free in pegasus_write_service.cpp

XiaoMi/pegasus#481
fix: use db when it has been opened

XiaoMi/pegasus#480
fix: add libraries missing for pegasus_client_lib.so

XiaoMi/pegasus#444
feat(collector): add statistics for partition hotspot

XiaoMi/pegasus#472
docs(community): add issue template for feature-request

XiaoMi/pegasus#466
feat(dup): implement duplication related shell commands

XiaoMi/pegasus#470
feat(shell): add dependency argh to parse options and arguments

XiaoMi/pegasus#469
fix(rdsn): update rdsn and adapt to time_utils refactoring

XiaoMi/pegasus#467
refactor: refactor rocksdb options usage

XiaoMi/pegasus#463
refactor: refactor the code about prometheus in pegasus_counter_reporter

XiaoMi/pegasus#462
refactor(config): remove duplicated config items for cluster name

XiaoMi/pegasus#460
refactor: update rdsn and remove DSN_CORE_VERSION

XiaoMi/pegasus#456
feat(dup): implement server handling of duplicate rpc (part 1)

XiaoMi/pegasus#450
feat(rocksdb): Select the option of Direct-IO in Rocksdb

XiaoMi/pegasus#455
fix: fix the bug that threads don't stop when pegasus_io_service is released

XiaoMi/pegasus#399
feat(dup): implement pegasus_mutation_duplicator

XiaoMi/pegasus#453
fix: retry starting zookeeper if it failed on onebox environment

XiaoMi/pegasus#446
build: add sanitizer support

New Perf-Counters

replica*eon.replica_stub*dup.log_read_bytes_rate (XiaoMi/rdsn#393)
replica*eon.replica_stub*dup.log_read_mutations_rate (XiaoMi/rdsn#393)
replica*eon.replica_stub*dup.shipped_bytes_rate (XiaoMi/rdsn#393)
replica*eon.replica_stub*dup.confirmed_rate (XiaoMi/rdsn#393)
replica*eon.replica_stub*dup.pending_mutations_count (XiaoMi/rdsn#393)
replica*eon.replica_stub*dup.time_lag(ms) (XiaoMi/rdsn#393)
replica*eon.replica_stub*dup.load_file_failed_count (https://github.com/XiaoMi/rdsn/pull/425)
replica*eon.replica*dup.disabled_non_idempotent_write_count@<app_name> (https://github.com/XiaoMi/rdsn/pull/411)
replica*eon.replica_stub*recent_write_size_exceed_threshold_count (https://github.com/XiaoMi/rdsn/pull/414)
replica*app.pegasus*dup_shipped_ops@<gpid> (https://github.com/XiaoMi/pegasus/pull/399)
replica*app.pegasus*dup_failed_shipping_ops@<gpid> (https://github.com/XiaoMi/pegasus/pull/399)
app.pegasus*app.stat.hotspots@<app_name>.<partition_index> (https://github.com/XiaoMi/pegasus/pull/444)

New HTTP APIs

http://0.0.0.0:34602/meta/app/duplication?name=temp (https://github.com/XiaoMi/rdsn/pull/401, https://github.com/XiaoMi/rdsn/pull/424)
http://0.0.0.0:34801/replica/duplication?appid=2 (XiaoMi/rdsn#415)

New App Env

replica.rocksdb_iteration_threshold_time_ms (https://github.com/XiaoMi/rdsn/pull/421)

Configuration Changes
[replication]
- allow_non_idempotent_write = false
+ max_allowed_write_size = 1048576 # default = 1MB

[pegasus.server]
+ rocksdb_use_direct_reads = true
+ rocksdb_use_direct_io_for_flush_and_compaction = true
+ rocksdb_compaction_readahead_size = 2097152
+ rocksdb_writable_file_max_buffer_size = 1048576
- perf_counter_cluster_name = %{cluster.name}
- perf_counter_enable_falcon = false
- perf_counter_enable_prometheus = false
+ perf_counter_sink = <falcon | prometheus>

[pegasus.collector]
- cluster = %{cluster.name}
+ hotspot_detect_algorithm = <hotspot_algo_qps_variance | hotspot_algo_qps_skew>

[replication]
+ cluster_name = %{cluster.name}

Blame list:

[replication] allow_non_idempotent_write (XiaoMi/rdsn#411)
[replication] max_allowed_write_size (https://github.com/XiaoMi/rdsn/pull/414)
[pegasus.server] rocksdb_use_direct_reads, rocksdb_use_direct_io_for_flush_and_compaction, rocksdb_compaction_readahead_size, rocksdb_writable_file_max_buffer_size (https://github.com/XiaoMi/pegasus/pull/450)
[pegasus.collector] cluster (https://github.com/XiaoMi/pegasus/pull/462)
[pegasus.server] perf_counter_cluster_name (https://github.com/XiaoMi/pegasus/pull/462)
[replication] cluster_name (https://github.com/XiaoMi/pegasus/pull/462)
[pegasus.server] perf_counter_enable_falcon, perf_counter_enable_prometheus, perf_counter_sink (https://github.com/XiaoMi/pegasus/pull/463)
[pegasus.collector] hotspot_detect_algorithm (https://github.com/XiaoMi/pegasus/pull/479)

New limitation of requests
Like aws dynamodb limits, we imposed read/write limitation to protect the service of Pegasus in XiaoMi. All of the limits can be reconfigured:
  max_allowed_write_size = 1048576 # default = 1MB

Please remember to check if any requests to your service exceed the limits.

1.12.3-RC2
rDSN

PR (1 RELEASED)
TITLE

XiaoMi/rdsn#430
refactor(backup): delay the removal of checkpoint files produced by cold backup

Pegasus

PR (5 RELEASED)
TITLE

XiaoMi/pegasus#511
fix: node qps sum inconsistent with app qps sum

XiaoMi/pegasus#512
fix(collector): throughput statistics isn’t right

XiaoMi/pegasus#500
feat: limit long time rocksdb iteration operation

XiaoMi/pegasus#505
feat(collector): add throughput statistic for table

XiaoMi/pegasus#509
fix(asan): global-buffer-overflow in function escape_sds_argv of data_operations.cpp

1.12.3-RC3
rDSN

PR (1 TOTAL)
TITLE

XiaoMi/rdsn#435
feat: tcmalloc memory release improvements

Pegasus

PR (1 TOTAL)
TITLE

XiaoMi/pegasus#515
fix: fix the bug in restore_test

repo: XiaoMi/pegasus


text:
🛑 ChatLogr is down

In ee4e966, ChatLogr (https://http-resp-6-chatLogr-1.tikihed.repl.co) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatLogr is back up in cf862f2.

repo: Xiija/UpMonitor


text:
Build xlnk Driver Lib for cross_compile

Hi, I am wondering could I install the <libxlnk_cma.h> library in "/sdbuild/packages/libsds/xlnkutils" on my x86 server and cross compile host code from it. I try to use the Makefile directly but it keep giving me the following error. Could you give me some guide? Thanks a lot.
gcc -shared -rdynamic -o libsds_internal.so -Wl,--whole-archive libsds_lib_64.a -Wl,--no-whole-archive
/usr/bin/ld: libsds_lib_64.a(sds_lib.o): Relocations in generic ELF (EM: 183)
libsds_lib_64.a(sds_lib.o): error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Makefile:11: recipe for target 'libsds_internal.so' failed
make: *** [libsds_internal.so] Error 1

that code is compiled for arm/aarch64, so wouldn't work on x86.

repo: Xilinx/PYNQ

license_source: bigquery


text:
docker_run.sh doesn't work in a path with spaces

If you clone Vitis AI in a folder where the full path contains spaces, the docker_run.sh script fails.
For example:
/home/user/Folder with spaces/Vitis/Vitis-AI

Hi @barbiomalefico，
please avoid of using home directory as the workspace of launching Vitis AI docker, as it might have some permission problem with mounting directory from the host into container.
also folders with space is not support as you mentioned

It's not a problem related to the home directory or permissions. It's a problem related to a path that includes spaces.

I can't comment on the concern about volume mounting the repository cloned to the home directory into the container.
The issue with spaces in the path to the repository could probably be fixed with some simple quoting around the volume mount in the docker run command  -v "$DOCKER_RUN_DIR" :/vitis_ai_home \

authors: barbiomalefico janifer112x mcbullisisu

repo: Xilinx/Vitis-AI


text:
bash errors when starting xilinx/vitis-ai:tools-1.0.0-cpu

When I start the xilinx/vitis-ai:tools-1.0.0-cpu container, bash reports three errors:
sysadmin@ml0:~/devel/xilinx/Vitis-AI$ ./docker_run.sh xilinx/vitis-ai:tools-1.0.0-cpu
Unable to find image 'xilinx/vitis-ai:tools-1.0.0-cpu' locally
tools-1.0.0-cpu: Pulling from xilinx/vitis-ai
...
bash: export: `1': not a valid identifier
bash: export: `14:51:32': not a valid identifier
bash: export: `2019': not a valid identifier

==========================================
__      ___ _   _                   _____
\ \    / (_) | (_)            /\   |_   _|
 \ \  / / _| |_ _ ___ ______ /  \    | |
  \ \/ / | | __| / __|______/ /\ \   | |
   \  /  | | |_| \__ \     / ____ \ _| |_
    \/   |_|\__|_|___/    /_/    \_\_____|

==========================================

Docker Image Version: 1.0.0
Build Date: Sun
VAI_ROOT=/opt/vitis_ai
For TensorFlow Workflows do:
  conda activate vitis-ai-tensorflow
For Caffe Workflows do:
  conda activate vitis-ai-caffe
sysadmin@ml0:/workspace$

Can this issue prevent the container from working properly?

This is a cosmetic error, and should not impact functionality. Someone
tried to auto-generate a build date in the ~/.bashrc
On Fri, Feb 14, 2020 at 6:58 AM dave-am notifications@github.com wrote:

When I start the xilinx/vitis-ai:tools-1.0.0-cpu container, bash reports
three errors:
sysadmin@ml0:~/devel/xilinx/Vitis-AI$ ./docker_run.sh xilinx/vitis-ai:tools-1.0.0-cpu
Unable to find image 'xilinx/vitis-ai:tools-1.0.0-cpu' locally
tools-1.0.0-cpu: Pulling from xilinx/vitis-ai
...
bash: export: 1': not a valid identifier bash: export: 14:51:32': not a valid identifier
bash: export: `2019': not a valid identifier
==========================================

\ \    / () | ()            /\   |_   |
\ \  / / | | _ ___ ______ /  \    | |
\ / / | | | / |/ /\ \   | |
\  /  | | || __ \     / ____ \ | |
/   ||_||/    //    _____|
==========================================
Docker Image Version: 1.0.0
Build Date: Sun
VAI_ROOT=/opt/vitis_ai
For TensorFlow Workflows do:
conda activate vitis-ai-tensorflow
For Caffe Workflows do:
conda activate vitis-ai-caffe
sysadmin@ml0:/workspace$
Can this issue prevent the container from working properly?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Xilinx/Vitis-AI/issues/43?email_source=notifications&email_token=ADX4NJ6MJ3ZONIOP4HJBHUTRC2WSTA5CNFSM4KVJWBW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4INS7YNQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADX4NJ7KABURY5JASTSZI53RC2WSTANCNFSM4KVJWBWQ
.

authors: dave-am wilderfield


text:
still can't find packagegroup-petalinux-vitisai in vai 1.4

Hi,
I have referred the below step and do petalinux-upgrade, but I still can't find packagegroup-petalinux-vitisai

Can you share more detail?

Hi @hill19850213
So far as I know, the Petalinux tool updates containing VAI1.4 content is not released. It will be released 1 month later. Before that, you can install VART by the released packages under https://gitenterprise.xilinx.com/Vitis/vitis-ai-staging/tree/master/setup/mpsoc/VART/2021.1

Hi @qianglin-xlnx ,
This link https://gitenterprise.xilinx.com/Vitis/vitis-ai-staging/tree/master/setup/mpsoc/VART/2021.1 is not available for me. Can you provide other link?

@hill19850213
Sorry about the mistake. It's https://github.com/Xilinx/Vitis-AI/tree/master/setup/mpsoc/VART/2021.1

@qianglin-xlnx
I try to use dnf to install packagegroup-petalinux-vitisai , but there is an error as below:

What is the problem?
Thanks
Sitting

@hill19850213 : I think you have to copy the rpm package to the target system and then install them locally with dnf (not tried yet).
@qianglin-xlnx : It seems that an update_1 is out (http://petalinux.xilinx.com/sswreleases/rel-v2021/sdkupdate/2021.1_update1/aarch64), but it appear to be broken: I have updated my Petalinux installation with it but then when I try to configure a newly-created project, I get
Extracting SDK......xz: (stdin): Compressed data is corrupt
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR: Failed to Extract Yocto SDK.

which seems to indicate that the binary blob in aarch64 is corrupt.
Do you have a clue? Or should I create a new issue?
Thanks in advance.

@hill19850213 : I think you have to copy the rpm package to the target system and then install them locally with dnf (not tried yet).
@qianglin-xlnx : It seems that an update_1 is out (http://petalinux.xilinx.com/sswreleases/rel-v2021/sdkupdate/2021.1_update1/aarch64), but it appear to be broken: I have updated my Petalinux installation with it but then when I try to configure a newly-created project, I get
Extracting SDK......xz: (stdin): Compressed data is corrupt
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR: Failed to Extract Yocto SDK.

which seems to indicate that the binary blob in aarch64 is corrupt. Do you have a clue? Or should I create a new issue? Thanks in advance.

I'm having the same problem. Have you managed to fix it? @qberthet

Hi @nhphuong91  and @hill19850213
Could you try the following?

Hi @nhphuong91 and @hill19850213 Could you try the following?

@qianglin-xlnx it works! Thanks!

@qianglin-xlnx it works. Thanks!


text:
Schematics for T-18

The boards T-8 and T-18 look similar and both have the ESP32-WROVER-B on it. Can we get the schematics of the T18 3.0 20190410 released here on Github, too?

In addition to the newer @Xinyuan-LilyGO account (since August 2018) there is a second and older GitHub account, @LilyGO (Since August 19th, 2017). There the schematics of the T-18 are published in the https://github.com/LilyGO/LILYGO-T-Energy  repository. The direct link is https://github.com/LilyGO/LILYGO-T-Energy/blob/master/t18_v3.0.pdf


text:
Can't use Pico on Arduino IDE

I have errors like this:
Arduino:1.8.19 (Linux), Płytka:"ESP32C3 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 160MHz (WiFi), QIO, 80MHz, 4MB (32Mb), 921600, None, Enabled"
Traceback (most recent call last):
File "/home/marcin/.arduino15/packages/esp32/tools/esptool_py/4.2.1/esptool.py", line 31, in
import esptool
File "/home/marcin/.arduino15/packages/esp32/tools/esptool_py/4.2.1/esptool/init.py", line 42, in
from esptool.cmds import (
File "/home/marcin/.arduino15/packages/esp32/tools/esptool_py/4.2.1/esptool/cmds.py", line 14, in
from .bin_image import ELFFile, ImageSegment, LoadFirmwareImage
File "/home/marcin/.arduino15/packages/esp32/tools/esptool_py/4.2.1/esptool/bin_image.py", line 14, in
from .loader import ESPLoader
File "/home/marcin/.arduino15/packages/esp32/tools/esptool_py/4.2.1/esptool/loader.py", line 21, in
import serial
ModuleNotFoundError: No module named 'serial'
exit status 1
Błąd kompilacji dla płytki ESP32C3 Dev Module.
What can i do?

Hello,
I Have the same problème to some attachement. Can't any one help us ?
My #include "pico/stdlib.h" dosen't finf ??
No Tft_espi is work to :(
Could'I find some help of the community  please !


text:
Does not handle comments (No biggie but stumbled upon this)

john.smith(comment)@example.com
or
(comment)john.smith@example.com
Both are same as  john.smith@example.com
Source : https://en.wikipedia.org/wiki/Email_address

thanks for your observations.
will review it when I have some time.
Regards.

@mWaltari,  SMTP doesn't handle comments either in the MAIL FROM or RCPT TO commands.
There are 2 different email address specifications: SMTP and Internet Message Format.
Most people (including wikipedia) confuse the two and think they are the same, but they are not.
Comments may only appear in the From/To/Cc/etc headers of an Internet Message, but may not appear in the addresses used with SMTP.
Email Address Validation is for what? It's not for parsing emails used in a raw Internet Message document. They are for validating user-input in a text field because they will be used with SMTP.
Correct?
Then it stands to reason that an EmailValidator needs to conform to the SMTP specification and not the Internet Message Format specification.
So there's no need to handle comments (because, let's be honest, what user is going to write comments in their email address on a web form? or anywhere else for that matter?)

Maybe there could be preprocessor method to clean all this. And spit out usable address. Justa thought. As said not a big deal. To me.
Also that method could make trivial fixes. Like trim white spaces.
Oh, also would be nice to have error code, so could give some hint to user what is wrong in the address. (And position of error if possible)
But anyways validator is very good as is...

The preprocessor part sounds cool but I don't think it will fit in the original purpose of the library,  validating email addresses as it is without modifying it.
Regarding the specific error message request, that will require a lot of change to the current way the api is structured.
How do we pass the error message from the validate method to the user?
An exception?
That would add an implicit try except block and overhead to the generated code without any crucial benefit.
An out or var parameter to the validate method?
That would require changing the way an already existing api is used which is not always a good thing for backwards compatibility.

Simple CleanEmailAddress function would do.

Return error code (optionally), and then method to convert it to string. If needed. Anyone would need to localize anyways. So some English reference function would do just fine.

authors: Xor-el mWaltari

repo: Xor-el/EmailValidationPascal


text:
Mn verdd add doubles

This is not yet working correctly and i have an exception in line 51 in VeRDD.
Any ideas or suggestions?

outdated, will be manually integrated into branch mn_filtered_verdd

repo: XpressAI/SparkCyclone


text:
2023/1/1无法使用呜呜呜求破，看开发者工具显示无法加载来源映射

开发者工具显示如下：
iflow-api.xuexi.cn/logflow/api/v1/pclog:1          Failed to load resource: net::ERR_EMPTY_RESPONSE
index.html:1 Uncaught (in promise) 0
DevTools 无法加载来源映射：无法加载 chrome-extension://mnjkfcgamfdbjnegbggclolippgppgcc/md5.min.js.map 的内容：系统错误: net::ERR_BLOCKED_BY_CLIENT
POST https://iflow-api.xuexi.cn/logflow/api/v1/pclog net::ERR_TIMED_OUT

@LittleFatFishLoveEatingLittleDragonBabe
官方好像把每周答题去掉了，不知道你们是不是这个情况，如果是，我得修改下代码

@LittleFatFishLoveEatingLittleDragonBabe 官方好像把每周答题去掉了，不知道你们是不是这个情况，如果是，我得修改下代码

是的，已经没有每周答题了

@LittleFatFishLoveEatingLittleDragonBabe 官方好像把每周答题去掉了，不知道你们是不是这个情况，如果是，我得修改下代码

大佬有tg交流群么

@sunyi369
暂时还没有

@sunyi369 @zoomshine @LittleFatFishLoveEatingLittleDragonBabe
新版脚本 tech-study-js v1.4.0 已经发布，问题基本得到解决
如仍存在问题，可以继续反馈。


text:
how to let RIVAGAN run on gpu

as title. The watermarking process of rivagan was quite slow when it was running on my computer. I didn't see it's performed on gpu, which might result in this issue. Can anyone share some ideas to let it run on gpu?
Thanks in advance!

Probably this can help you: https://github.com/ShieldMnt/invisible-watermark/issues/34

repo: XuandongZhao/WatermarkAttacker


text:
🛑 MOMO is down

In 37edd62, MOMO (https://www.momoshop.com.tw/main/Main.jsp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MOMO is back up in 41dfc48.


text:
🛑 MOMO is down

In 6cc295b, MOMO (https://www.momoshop.com.tw/main/Main.jsp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MOMO is back up in b43502e after 11 minutes.


text:
🛑 MOMO is down

In e98b833, MOMO (https://www.momoshop.com.tw/main/Main.jsp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MOMO is back up in 0b58bbe.


text:
🛑 MOMO is down

In 592883f, MOMO (https://www.momoshop.com.tw/main/Main.jsp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MOMO is back up in b397964.


text:
🛑 Haty Server is down

In ff04df3, Haty Server (https://hashi.sbs/_matrix/consent) was down:

HTTP code: 502
Response time: 350 ms

Resolved: Haty Server is back up in 4307c1b after 5 minutes.

repo: YAT-Publish/status


text:
【功能需求】图标和颜色

图标和颜色是否可以自定义呢，不然随着项目越来越多无法直观地一眼找到项目，谢谢。

YApi-X 支持：https://github.com/fjc0k/YApi-X

repo: YMFE/yapi


text:
使用反向代理无法登陆

版本号
~ 1.3.23
什么问题
~ 使用nginx反向代理后无法登录（带路径），如 location ^~  /yapi
如何复现此问题
~ 使用nginx反向代理yapi端口
什么浏览器
~ 谷歌浏览器
什么系统（Linux, Windows, macOS）
linux

同遇到了,请问有解决么

authors: freeseawind lhalcyon


text:
🛑 Moe is down

In b5b5dc0, Moe (http://ymstnt.com:25571) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Moe is back up in 9d8c34a after 4 minutes.

repo: YMSTNT/status


text:
"Please Log In" After entering correct password

Hello,
My issue is similar to: http://code.google.com/p/yourls/issues/detail?id=1262
I'm using PHP v 5.4.9 ... All tables were installed correctly. I inserted a cookie from http://yourls.org/cookie .. I also deleted the username, password, cookie and replaced to see if that fixed the problem. It did not. I only have 1 username and PW in the config.php file.
Basically, when you enter the correct information into the admin login it says "Please Log In" ... anything incorrect entered gets an "Invalid Username / Password" ...
I see the request for var_dump() in functions-auth.php or auth.php but I am not necessarily an expert - I was wondering if anyone might point me in the direction of the lines to place the var_dump on and on what variable so I can see where exactly it is breaking.
I am using the latest 1.7 master because I had to use the master as it fixed a table install issue I believe w/ the version of MySQL I saw on another issue. So tables were removed and now appear as installed correctly.
I also tried this: define( 'YOURLS_NO_HASH_PASSWORD', true ); .. but no help .. to see if it was something to do with the password not being hashed in config.php
Finally, I am running nginx w/ the following config, although this may be unrelated (running varnish, hence 8080 - excluded yourls domain/directory in varnish config w/ pass):
server {
listen 127.0.0.1:8080;
server_name site.us;
port_in_redirect off;
access_log off;
error_log /var/log/nginx/site.us.error.log;
root /usr/share/nginx/www/site;
location / {
rewrite ^/([0-9a-z-]+)/?$ /s/yourls-go.php?id=$1 last;
location ~ .php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
Thank you in advance for any guidance on how to identify this problem exactly. I am new to using var_dump.

I am facing the same issue. I configured correctly the config file. but I am not redirecting to main page it keeps asking me the "Please log in". As mentioned in the olde post Line number 90  include/functions_auth.php i just disabled it, then it is redirected to the main page. but all time I need to login if i click any link. please help me.

I just wanted to thank @ablanken for his comment on Mar 26 2014 which fixed the issue for me.
I'm running IIS8.5 with PHP5.6 and was having the issue as described above... but only when using IE. With Chrome it worked fine, but no joy with any version of IE that I managed to try logging in with.
The removal of the code snippet suggested fixed it for me, and now IE (and Chrome) both log in and work as expected.
Thanks!

I'm having this same issue. Can't log in with correct password. I know the issue has to be something related to the login process because I can go in and change to this: define( 'YOURLS_PRIVATE', false ); and it'll bypass the login completely and go right to my list of shortened URLs. Once I'm in there, everything works exactly as it should. So I guess until this issue is resolved, I'll just make it public for a few minutes while I do what I need to do and put the broken login back on when I'm done.
What a pain.

Check for any caching issues.

@GTMAN how can I check for caching issues? Where do I look?

I installed on Kinsta Nginx , then I changed the main domain and had same issue , Please login... in Config.php file changing the Cookie Random value fixed the issue for me. i.e. define( 'YOURLS_COOKIEKEY', 'asdfsafs868768afsafsaf9sksjdlfk87rjsadlkfjasl8' );

Hi,
I had this problem today on a server with 2 installs of Yourls.
The funny thing was that only one of the install had the problem. The other one was working fine.
Because of this I was able to debug it this way:

I replaced the files downloading the latest one from github. No luck.
I replaced the files using the other install that was working. Again, no luck, same issue.
I replaced the cookiekey and clear caches on my computer. Same thing.
Because I know that is the same server, I discarded issues with the cache on my server or nginx config issues.
So the only thing to test was the database.
I was going to dump it and upload it again but I decided to go to this url first:
myyourls.com/admin/upgrade.php
first time it did nothing, I reloaded it, and nothing, just the login page.
I put my credentials there and done! I was in on a page that said: You do not need to upgrade.

After this I can use the admin but the funny thing is that I cannot logout anymore.
When I logout and go to /admin/ the session is still open.
So this is clearly a problem with the cookies. It does not store the login cookie when accessing from admin/ but it does work with the url /admin/upgrade.php and it does not remove that one  when going to logout/ either.
I am considering to go back to 1.6 or 1.7 but I will try this next time.
Hope you can use this to find the issue.
I have also tested with PHP 5.6, 7.0 and 7.1 and the issue is still there.
This is a server setup with serverpilot.io, in case you want to test.

More info.
I compared both databases to try to find the issue.
On the table short_options on the field version, it is a 1.7 for the install that works and a 1.5 for the one that does not work.
So it seems that the upgrade is needed on the database but the system is not able to do it.
Any idea on how to upgrade the database? or how to export my redirects to a new database updated?

@planetahuevo It might be that YOURLS's database user does not have the required permissions to upgrade the database. That's the low-hanging fruit answer, at least.

What does need to be upgraded on the database? The urls and redirections works all the time and I can add new one. I really do not know where to look.

Hello. I just installed Yourls in a subfolder /s/ on my Web site and I faced the same problem... but I solved it.
In fact, I have 2 domain names: mywebsite.com and my-website.com (FAKE examples ;) ).
And for some historical reason, mywebsite.com automatically redirects to my-website.com.
But I wanted to use the "short" version with Yourls, so I configured like this:
define( 'YOURLS_SITE', 'http://mywebsite.com/s' );
As there's a redirection, it doesn't work. So I had to use the "long" version, and now it's OK:
define( 'YOURLS_SITE', 'http://my-website.com/s' );
Hope this can help one of you.

I am going with the fresh new install. I gave up to fix this one.
Any ideas on how to export and import the data?
Thanks

After some more tests, I am not sure anymore that the database is the problem, but the management of the cookies.

@planetahuevo Thanks a lot for your feedback. Could you elaborate the cookie issue?

You can read my reply 27 days ago: https://github.com/YOURLS/YOURLS/issues/1652#issuecomment-282912109
"So this is clearly a problem with the cookies. It does not store the login cookie when accessing from admin/ but it does work with the url /admin/upgrade.php and it does not remove that one when going to logout/ either."

Hi,
I had this problem and i've solve it.
in confiq.php file i 've only changed define( 'YOURLS_SITE', 'http://www.my website.com' ) to define( 'YOURLS_SITE', 'http://mywebsite.com' ). so I've only deleted www. from my website name .

medikiaei saves the day thanx!!!

Same problem here trying to run this inside a docker container. Always returns true when checking the password but then says please loging afterwards. Suck in a loop. Yes I should upgrade to a newer version, but I wont even try taht until I can get a working test environment with the current version that is running in production. This code is really ahrd to follow cant find where its spazzing out.

authors: DaneOLeary GTMAN LeoColomb Trigone b-hayes blueone1 dgw medikiaei mohsinr peepntom planetahuevo rashadkkar stevep4

repo: YOURLS/YOURLS


text:
Shortned URLs give 404

Hey there,
i'm trying to make a clean installation on a Debian but i got error 404 on all the created link. The install directory absolute path is /var/www/html/yourls
the .htaccess file content
# BEGIN YOURLS
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /yourls/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ yourls/yourls-loader.php [L]
</IfModule>
# END YOURLS

Config file
<?php
/* This is a sample config file.
 * Edit this file with your own settings and save it as "config.php"
 *
 * IMPORTANT: edit and save this file as plain ASCII text, using a text editor, for instance TextEdit on Mac OS or
 * Notepad on Windows. Make sure there is no character before the opening <?php at the beginning of this file.
 */

/*
 ** MySQL settings - You can get this info from your web host
 */

/** MySQL database username */
define( 'YOURLS_DB_USER', 'user' );

/** MySQL database password */
define( 'YOURLS_DB_PASS', 'password' );

/** The name of the database for YOURLS */
define( 'YOURLS_DB_NAME', 'yourls' );

/** MySQL hostname.
 ** If using a non standard port, specify it like 'hostname:port', eg. 'localhost:9999' or '127.0.0.1:666' */
define( 'YOURLS_DB_HOST', 'localhost' );

/** MySQL tables prefix */
define( 'YOURLS_DB_PREFIX', 'yourls_' );

/*
 ** Site options
 */

/** YOURLS installation URL -- all lowercase and with no trailing slash.
 ** If you define it to "http://sho.rt", don't use "http://www.sho.rt" in your browser (and vice-versa) */
define( 'YOURLS_SITE', 'mysite.com' );

/** Server timezone GMT offset */
define( 'YOURLS_HOURS_OFFSET', 0 );

/** YOURLS language
 ** Change this setting to use a translation file for your language, instead of the default English.
 ** That translation file (a .mo file) must be installed in the user/language directory.
 ** See http://yourls.org/translations for more information */
define( 'YOURLS_LANG', '' );

/** Allow multiple short URLs for a same long URL
 ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
 ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
define( 'YOURLS_UNIQUE_URLS', false );

/** Private means the Admin area will be protected with login/pass as defined below.
 ** Set to false for public usage (eg on a restricted intranet or for test setups)
 ** Read http://yourls.org/privatepublic for more details if you're unsure */
define( 'YOURLS_PRIVATE', true );

/** A random secret hash used to encrypt cookies. You don't have to remember it, make it long and complicated. Hint: copy from http://yourls.org/cookie **/
define( 'YOURLS_COOKIEKEY', 'modify this text with something random' );

/** Username(s) and password(s) allowed to access the site. Passwords either in plain text or as encrypted hashes
 ** YOURLS will auto encrypt plain text passwords in this file
 ** Read http://yourls.org/userpassword for more information */
$yourls_user_passwords = array(
	'myuser' => 'mypassword' /* Password encrypted by YOURLS */ ,
	// 'username2' => 'password2',
	// You can have one or more 'login'=>'password' lines
	);

/** Debug mode to output some internal information
 ** Default is false for live site. Enable when coding or before submitting a new issue */
define( 'YOURLS_DEBUG', false );

/*
 ** URL Shortening settings
 */

/** URL shortening method: 36 or 62 */
define( 'YOURLS_URL_CONVERT', 62 );
/*
 * 36: generates all lowercase keywords (ie: 13jkm)
 * 62: generates mixed case keywords (ie: 13jKm or 13JKm)
 * Stick to one setting. It's best not to change after you've started creating links.
 */

/**
* Reserved keywords (so that generated URLs won't match them)
* Define here negative, unwanted or potentially misleading keywords.
*/
$yourls_reserved_URL = array(
);

/*
 ** Personal settings would go after here.
 */

Mod rewrite is enabled, i'v already read the FAQ but without result

YOURLS_SITE should be http://something, not something. Also, don't comment out the RewriteBase directive in your .htaccess, fix it instead. Also read https://github.com/YOURLS/YOURLS/wiki/Troubleshooting-first-steps

Already did, still same problem, the only error i got activating debug is
DB driver: pdo
SELECT `option_name`, `option_value` FROM `yourls_options` WHERE 1=1
SELECT `option_value` FROM `yourls_options` WHERE `option_name` = 'active_plugins' LIMIT 1
cURL error 28: Resolving timed out after 3514 milliseconds (POST on https://api.yourls.org/core/version/1.0/)
UPDATE `yourls_options` SET `option_value` = 'O:8:\"stdClass\":4:{s:15:\"failed_attempts\";i:45;s:12:\"last_attempt\";i:1453496502;s:11:\"last_result\";s:0:\"\";s:15:\"version_checked\";s:5:\"1.7.1\";}' WHERE `option_name` = 'core_version_checks'
SELECT COUNT(keyword) as count, SUM(clicks) as sum FROM `yourls_url` WHERE 1=1
SELECT * FROM `yourls_url` WHERE 1=1  ORDER BY `timestamp` desc LIMIT 0, 15;

authors: Nhoya ozh


text:
你的简介深得我心

其他的语言都是一抓一大把，而C#却寥寥无几，很难找，感谢，万分感谢

你是谁？
| |
@.***
|
|
@.***
|
---- 回复的原邮件 ----
| 发件人 | @.> |
| 日期 | 2022年03月04日 12:15 |
| 收件人 | @.> |
| 抄送至 | @.***> |
| 主题 | [YSGStudyHards/DotNetGuide] 你的简介深得我心 (Issue #17) |
其他的语言都是一抓一大把，而C#却寥寥无几，很难找，感谢，万分感谢
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

repo: YSGStudyHards/DotNetGuide


text:
Implement DOT loader

Design and implement GraphViz DOT loader.

ANTLR DOT grammar

Test of loading dot string is commented out.
https://github.com/YaccConstructor/QuickGraph/blob/50e0e16df0e6923d7a91e0fbabc89adee451145c/tests/QuickGraph.Tests/BidirectionalGraphTest.cs#L100
Is this functionality working?

authors: gsvgit pavel-agarkov

repo: YaccConstructor/QuickGraph

license: MS-PL


text:
No Update available

Hello,
I have a problem with the update server. The JSON data are retrieved regularly according to the log file. Look here:
[2017-01-09 18:30:10 +0000] 178.254.38.202 GET get_metadata drkwp_v2 2.0.0 4.7 http://drkwp2016.klebsattel.de action = get_metadata & slug = drkwp_v2 & installed_version = 2.0.0
When I call the following address: https://www.klebsattel.de/wp-update-server/?action=get_metadata&slug=drkwp_v2 appears there, that version 2.0.1 is available. When I log in to Wordpress the update is not displayed. What could be the reason?
Best wishes
Jörg Klebsattel

There are too many possibilities to list. Instead, install Debug Bar and look at the "PUC (your-plugin-slug)" panel. Does everything look correct there? Click "Request Info". Does it display your data or is there an error message of some kind?

You mean for themes >> Design, Theme and then Themes?
Then there is shown:
Cache Hits: 545
Cache Misses: 73

Group: options - ( 40.01k )
Group: default - ( 0.03k )
Group: users - ( 0.43k )
Group: userlogins - ( 0.03k )
Group: useremail - ( 0.04k )
Group: userslugs - ( 0.03k )
Group: user_meta - ( 1.62k )
Group: themes - ( 0.54k )
Group: counts - ( 0.17k )

Von: Yahnis Elsts [mailto:notifications@github.com]
Gesendet: Montag, 9. Januar 2017 20:21
An: YahnisElsts/wp-update-server wp-update-server@noreply.github.com
Cc: babsitz joerg@klebsattel.de; Author author@noreply.github.com
Betreff: Re: [YahnisElsts/wp-update-server] No Update available (#45)
There are too many possibilities to list. Instead, install Debug Bar https://srd.wordpress.org/plugins/debug-bar/  and look at the "PUC (your-plugin-slug)" panel. Does everything look correct there? Click "Request Info". Does it display your data or is there an error message of some kind?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/YahnisElsts/wp-update-server/issues/45#issuecomment-271380566 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABQ_W_7GV-k0LqNAM-IXv7CeCOjfZAiIks5rQoisgaJpZM4Len2m .

Ah, I incorrectly assumed you were talking about a plugin, not a theme.
Looking at the source code, I think I see what the problem is: for theme updates to work, the style.css file must include either a Theme URI header or a Details URI header. Your theme has a Theme URL header, but that's non-standard and is not supported by this update checker (here's a list of standard headers).
Rename Theme URL to Theme URI, upload the new update ZIP, and verify that the JSON data now includes a details_url key. Then updates should work.

Thank you! Now it works fine. That was the issue

All right, that's good to hear. Closing this now.

authors: YahnisElsts babsitz

repo: YahnisElsts/wp-update-server

license: mit


text:
Objective-C Version

Have you plan to code an Objective-C version of this great control?
Thanks,
Matteo

Hi @taglia3
Currently we don't have any plans to provide a separate version in Objective-C.
We are preparing a new version of GuillotineMenu with significant changes and will check whether menu can be used from objective-c code.

Hi @maximletushov
I've created an objc version of this great control!
Check out my version on Github: https://github.com/taglia3/GuillotineMenu-Yalantis-objc-version

repo: Yalantis/GuillotineMenu


text:
Callback now indicates if action was initiated by user or not

Following ticket Yalantis/PullToRefresh/issues/58
I'm not sure about the best practice to compare the enum (as I added a boolean inside), so I followed what was done for the progress case.
I think this feature would be very helpful. But it breaks some code for any current implementation, so if shouldn't be included in a minor version.
Thanks,
Vincent

Hi! Thank you for contribution! But you can track it was called from code or not.

authors: Vinzius Vodolazkyi

repo: Yalantis/PullToRefresh


text:
goss_file vs tests is confusing

so, as far as I understand, tests only copies the given files to the machine, but the tests that are actually execute is whatever is defined on goss_file, right?
so, even if tests is an array, I can only run 1 suite.
maybe we can remove goss_file and run all the suites given on tests?
if you agree, I can work on a patch for it...
thanks for the project BTW :)

I actually have a version of this working on my fork...

@fishnix This is actually quite useful to have this. Would you accept a PR for this?

closing old issues, reopen if still interested 👍

repo: YaleUniversity/packer-provisioner-goss


text:
Лишняя ветка master

У нас сейчас две одинаковые по сути ветки: main и master. Это путает, нужо удалить одну из них.

Решил через разблокировку прав на ветку и удалили

authors: timur-harin vladcto


text:
Popup内的slider无法以步进为1滑动

要么最小值，要么最大值，无法滑动到中间的任意值

+1

我目前采取的临时解决方法是，用uniapp原生的slider组件覆盖在u-slider上，透明度设置为0，监听changing事件，这样就可以模拟出u-slider滑动的效果了

authors: atishoo yohanceli

repo: YanxinNet/uView


text:
用的新的v2.0.0版本出现 cudnn报错

升级到 v2.0.0后运行: backend/main.py , 出现下面的报错， 以前v1.0.0时候没有。
我的环境是: ubuntu 22.04.3 LTS,  cuda 11.7,  cudnn-linux-x86_64-8.9.0.131_cuda11
请输入视频完整路径：/media/2T/media/short_clips/1.mp4 请指定字幕区域 (ymin ymax xmin xmax)：0 1280 0 720 识别字幕语言：ch 识别模式：fast 使用GPU进行加速 帧数：2232.0，帧率：25.0 【处理中】开启提取视频关键帧... 18:44:12: Logging wxScroll1 18:44:12: Starting program... 18:44:12: CVideoSubFinderApp::OnInitCmdLine... m_VC.isOpened(): 1 path: /media/2T/media/short_clips/1.mp4 No such file or directory /home/neo/anaconda3/envs/videoEnv/lib/python3.8/site-packages/setuptools/sandbox.py:13: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html   import pkg_resources /home/neo/anaconda3/envs/videoEnv/lib/python3.8/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('mpl_toolkits'). Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages   declare_namespace(pkg) /home/neo/anaconda3/envs/videoEnv/lib/python3.8/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google'). Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
Pos: 0_00_04_000__-1
Pos: 0_00_05_600__-1
【处理中】开始提取字幕信息，此步骤可能花费较长时间，请耐心等待...
Pos: 0_00_13_800__-1                                                                                | 0/2232 [00:00<?, ?it/s]
Pos: 0_00_15_600__-1                                                                                | 160/2232 [00:00<00:08, 232.01it/s]
Pos: 0_00_16_440__-1
Pos: 0_00_17_080__-1
In user code:█████▏                                                                                | 224/2232 [00:02<00:22, 90.74it/s]
File "tools/export_model.py", line 288, in <module>
  main()
File "tools/export_model.py", line 284, in main
  model, arch_config, save_path, logger, input_shape=input_shape)
File "tools/export_model.py", line 197, in export_single_model
  paddle.jit.save(model, save_path)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/jit.py", line 629, in wrapper
  func(layer, path, input_spec, **configs)
File "/usr/local/lib/python3.7/dist-packages/decorator.py", line 232, in fun
  return caller(func, *(extras + args), **kw)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/wrapped_decorator.py", line 25, in __impl__
  return wrapped_func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/base.py", line 51, in __impl__
  return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/jit.py", line 857, in save
  inner_input_spec, with_hook=with_hook)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 528, in concrete_program_specify_input_spec
  *desired_input_spec, with_hook=with_hook)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 436, in get_concrete_program
  concrete_program, partial_program_layer = self._program_cache[cache_key]
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 801, in __getitem__
  self._caches[item_id] = self._build_once(item)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 790, in _build_once
  **cache_key.kwargs)
File "/usr/local/lib/python3.7/dist-packages/decorator.py", line 232, in fun
  return caller(func, *(extras + args), **kw)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/wrapped_decorator.py", line 25, in __impl__
  return wrapped_func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/base.py", line 51, in __impl__
  return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 733, in from_func_spec
  outputs = static_func(*inputs)
File "/tmp/tmp18grrv7q.py", line 28, in forward
  false_fn_1, (x,), (x,), (x,))
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 211, in convert_ifelse
  out = _run_py_ifelse(pred, true_fn, false_fn, true_args, false_args)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 257, in _run_py_ifelse
  return true_fn(*true_args) if pred else false_fn(*false_args)
File "/workspace/gry/docker/code/luolixin/baidu/paddle/paddle-uapi/uapi/PaddleOCR/ppocr/modeling/architectures/base_model.py", line 86, in forward
  x = self.backbone(x)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 930, in __call__
  return self._dygraph_call_func(*inputs, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 915, in _dygraph_call_func
  outputs = self.forward(*inputs, **kwargs)
File "/tmp/tmparp3ri44.py", line 45, in forward
  for_loop_condition_0, for_loop_body_0, [i, __for_loop_var_index_0, x])
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 45, in convert_while_loop
  loop_vars = _run_py_while(cond, body, loop_vars)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 59, in _run_py_while
  loop_vars = body(*loop_vars)
File "/workspace/gry/docker/code/luolixin/baidu/paddle/paddle-uapi/uapi/PaddleOCR/ppocr/modeling/backbones/rec_hgnet.py", line 252, in forward
  x = stage(x)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 930, in __call__
  return self._dygraph_call_func(*inputs, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 915, in _dygraph_call_func
  outputs = self.forward(*inputs, **kwargs)
File "/workspace/gry/docker/code/luolixin/baidu/paddle/paddle-uapi/uapi/PaddleOCR/ppocr/modeling/backbones/rec_hgnet.py", line 172, in forward
  x = self.blocks(x)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 930, in __call__
  return self._dygraph_call_func(*inputs, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 915, in _dygraph_call_func
  outputs = self.forward(*inputs, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/container.py", line 98, in forward
  input = layer(input)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 930, in __call__
  return self._dygraph_call_func(*inputs, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 915, in _dygraph_call_func
  outputs = self.forward(*inputs, **kwargs)
File "/workspace/gry/docker/code/luolixin/baidu/paddle/paddle-uapi/uapi/PaddleOCR/ppocr/modeling/backbones/rec_hgnet.py", line 125, in forward
  x = self.att(x)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 930, in __call__
  return self._dygraph_call_func(*inputs, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 915, in _dygraph_call_func
  outputs = self.forward(*inputs, **kwargs)
File "/workspace/gry/docker/code/luolixin/baidu/paddle/paddle-uapi/uapi/PaddleOCR/ppocr/modeling/backbones/rec_hgnet.py", line 76, in forward
  x = self.conv(x)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 930, in __call__
  return self._dygraph_call_func(*inputs, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/layers.py", line 915, in _dygraph_call_func
  outputs = self.forward(*inputs, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/nn/layer/conv.py", line 678, in forward
  use_cudnn=self._use_cudnn)
File "/usr/local/lib/python3.7/dist-packages/paddle/nn/functional/conv.py", line 169, in _conv_nd
  type=op_type, inputs=inputs, outputs=outputs, attrs=attrs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/layer_helper.py", line 44, in append_op
  return self.main_program.current_block().append_op(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/framework.py", line 3621, in append_op
  attrs=kwargs.get("attrs", None))
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/framework.py", line 2635, in __init__
  for frame in traceback.extract_stack():

ExternalError: CUDNN error(9), CUDNN_STATUS_NOT_SUPPORTED.
  [Hint: Please search for the error code(9) on website (https://docs.nvidia.com/deeplearning/cudnn/api/index.html#cudnnStatus_t) to get Nvidia's official solution and advice about CUDNN Error.] (at /paddle/paddle/fluid/operators/fused/conv_fusion_op.cu:519)
  [operator < conv2d_fusion > error]`

发现把 backend/config.py里的MODEL_VERSION 从V4退回V3，就没有这个问题.
还有一个奇怪的地方，我电脑上根本没有:/usr/local/lib/python3.7/dist-packages/paddle/这个目录。

啥型号的显卡

看样子像是cudnn没装对吧 你是按照教程里面的装的吗

cudnn我没有用教程的方式安装，怕污染了 cuda里的东西。我把cudnn的lib路径单独加在:LD_LIBRARY_PATH下:
echo $LD_LIBRARY_PATH /usr/local/cudnn-linux-x86_64-8.9.0.131_cuda11-archive/lib/:/usr/local/cuda/targets/x86_64-linux/lib:

看样子像是cudnn没装对吧 你是按照教程里面的装的吗

我的cudnn版本稍微高点，我切换8.4.1试试.

换8.4.1.50_cuda11.6可以，但这版本组合有点怪, cuda 是11.7,  cudnn要求11.6

我试了试cudnn 8.5.0 配cuda11.7的版本也可以，建议在教程里换上这版本。
https://developer.download.nvidia.com/compute/redist/cudnn/v8.5.0/local_installers/11.7/

这个问题，我这里也存在，2080TI，win10，
cuda12+cudnn8.9报错ExternalError: CUDNN error(9), CUDNN_STATUS_NOT_SUPPORTED.
cuda11+cudnn8.9报错ExternalError: CUDNN error(9), CUDNN_STATUS_NOT_SUPPORTED.
现在我在试cudnn 8.5.0 配cuda11.7的版本~

我试了试cudnn 8.5.0 配cuda11.7的版本也可以，建议在教程里换上这版本。 https://developer.download.nvidia.com/compute/redist/cudnn/v8.5.0/local_installers/11.7/

### cuda11.7+cudnn 8.5.0稳定极速运行，无任何报错~

authors: YaoFANGUK neoyxm oktetopython

repo: YaoFANGUK/video-subtitle-extractor


text:
Traffic in negative range

Updated to the latest version? I fixed it in the last release.

Alright thanks :) will forward it

Negative balance still appears on embed right after withdrawals.

Testing pending

Negative balance issue has been resolved.
But EarnApp Dashboard has some issue with showing correct balance.

repo: Yariya/EarnApp-Earning-Monitor


text:
YarnSpinner doesn't make the cursor visible again on it's own (Game asumption.)

At the moment, YarnSpinner doesn't do as said in the title. In Godot, (Most 3d games.) We need/Have to capture the cursor. Meaning that when we show a dialoguebox with choices, We can't allow the player to use their mouse again to select anything. Atleast unless that's coded in.
But the problem there is.
This will be seen as a universal issue for many, And since YarnSpinner uses the opposite programming language of godot (CSharp) Most people have no clue how to setup the functionally of making the cursor visible again.

Hello, I would need more explanation of what the issue is.

Hello, I would need more explanation of what the issue is.

Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE), In CSharp. Is never called to or set back to focused after the player selects a choice. Which isn't a good design unless you want choices to only be selected by key inputs.

This plugin does not change the mouse mode in general. If you try the samples in this repo, you'll see it is possible to select options with either the mouse or controller/keyboard inputs.  The mouse can also be used after selecting an option with the keyboard or controller. So, I don't understand what is preventing you from using the mouse.

If you have other code in your game that is controlling the mouse mode before your dialogue starts, you could either make a custom dialogue view in C# that sets the mouse mode to your desired state, or add a GDScript or C# script that sets the mouse mode under the conditions  you want. I don't think it would necessarily be desirable for all games that this plugin would change the mouse mode automatically after an option is selected.

This plugin does not change the mouse mode in general. If you try the samples in this repo, you'll see it is possible to select options with either the mouse or controller/keyboard inputs. The mouse can also be used after selecting an option with the keyboard or controller. So, I don't understand what is preventing you from using the mouse.

That is true. YarnSpinner cannot make the mouse captured or visible, That is why i am suggesting the change. Unless specified to yarn-spinner this new code to help deal with how the cursor should be handled, If not, The issue that is currently present. Yarn spinner being unable to have any choices selected. Remains in effect for all 3d game's using the cursor. If i go on it would be repeating, But it's still the same core concept of,
"This plugin has. To assume the mouse is not captured, Or it does not allow the user to continue in a choice based scene, Because the player has the option to control their keyboard, Entirelyyyy off and disabled."
I would also go as far as to say this is an accessibility thing, If choosing an option was available with keyboard inputs, YarnSpinner. Since it doesn't have anything in it's code, Itself. Cannot make sure the cursor can. Select a choice! Or atleast listen if the developer asks to have the cursor visible/enabled through an @export variable.
(This should respond to the question as detailed as possible, And just for the fun of it, I will summarize it as small as i can.)
3D games, Take away mouse input. This plugin needs to give it back to them, And allow the choice to the developer, To take it back away to let them play the game again.

If you have other code in your game that is controlling the mouse mode before your dialogue starts, you could either make a custom dialogue view in C# that sets the mouse mode to your desired state, or add a GDScript or C# script that sets the mouse mode under the conditions you want. I don't think it would necessarily be desirable for all games that this plugin would change the mouse mode automatically after an option is selected.

Even as so. That doesn't take away the plugin Should. Be providing the option. (Option, This kind of change does not have to be persistent. As long as it's a choice by the dev to do this assuming.)

It sounds like you're taking some action in your game that is changing the mouse mode before the dialogue starts. I don't think that this plugin should be responsible for undoing that. It doesn't seem like a good candidate for adding an option to the line view to me personally (to keep the complexity of the options down), since you have the alternatives listed in my previous message

It sounds like you're taking some action in your game that is changing the mouse mode before the dialogue starts. I don't think that this plugin should be responsible for undoing that. It doesn't seem like a good candidate for adding an option to the line view to me personally (to keep the complexity of the options down), since you have the alternatives listed in my previous message

The player script changes this. If your game is first person, Third person, Or isometric. You will need to capture the mouse. This is universal for most games. Even if the plugin isn't supposed to be responsible, I, And my solutions cannot find a way to fix the mouse capture value, After i finish with all the dialogue in my game. Because the plugin gives the ability for multiple choices/dialogue, So trying to hide it again will break the solution i am attempting to design.

These redditors mention how to do it with godot mono, While it may not be the most professional example of how to show implementation of the needed feature, It may be helpful during the downtime of me trying to submit the pull request to add it.
https://www.reddit.com/r/godot/comments/16igmcs/godot_41_c_setting_the_mouse_mode_code/

I don't feel it's appropriate for this plugin to set the mouse mode for all users. It's something that you can do in your own custom view or another script in your game.

I very much feel like the plugin should have an option to undo mouse mode settings automatically. For games that require capturing the mouse, Etc, All games I've played. So I'll definitely be trying to make this an @export and pull request it.

You're certainly free to modify your own copy of the scripts, or (what would be a simpler solution), add another script that sets the mouse mode at the right moment, but based on my understanding of this issue, you are changing the configuration of your game, and then expecting this plugin to undo that change. Sorry, but I don't support adding this and will not accept a PR that makes this change.

authors: TheRealFame dogboydog

repo: YarnSpinnerTool/YarnSpinner-Godot


text:
Inline expressions not working

What is the current behavior?

According to https://yarnspinner.dev/docs/syntax/, this line:
Think: yarn var = {$popularity}.
Should result in:
Think: yarn var = 30.
But instead, I get the following:
Think: yarn var = {0}.
Please provide the steps to reproduce, and if possible a minimal demo of the problem:

Have yarn file:

title: Start
tags:
---
Think: yarn var = {$popularity}.
===

Be using develop branch.
Output to dialogue ui.
Add debug logs to the variable storage.
See the following logs (seems as if GetValue from variable storage is being called but the delivered line doesn't use the gotten value):

Note: I notice there's a similar issue for localization, but I'm not localizing anything.
What is the expected behavior?

I expect the inline expressions to work as documented.
Please tell us about your environment:

Yarn Spinner Version: Most recent develop branch
Unity Version: 2020.1.4

Other information

I was finding this as well, realized the problem was i was feeding InMemoryVariableStorage.SetValue() a string for the variableName that did not have a $ in front of it. Instead of setting the variable (called $score), it was creating a new variable (called score) with the new value.

Ah interesting... for me, the variable does have the $ prepended (see debug log screenshot - '$popularity')

This is fixed in 284fd60accad852aaf6b34cdcbbd5cc9f7033954. Closing; thanks for filing this issue!

authors: desplesda jonathaniscarroll zephyo

repo: YarnSpinnerTool/YarnSpinner-Unity


text:
Bug: Navbar should be hidden on scrolling down

In the navbar section, on scroll down the navbar is still available it overlaps the text present on the other section
here is a image for the problem

I want to solve this problem can you assign it to me under hactoberfest and gssoc-ext

In the navbar section, on scroll down the navbar is still available it overlaps the text present on the other section
here is a image for the problem
I want to solve this problem can you assign it to me under hactoberfest and gssoc-ext

The navbar should be visible while scrolling

authors: Athaxv Yash-Ainapure


text:
What's the future of detect-secrets?

@domanchi and @KevinHock left Yelp in April. Is anyone at Yelp taking over leadership of this project?
@killuazhu Is IBM's fork at https://github.com/IBM/detect-secrets suitable for people to use, or is it too customized for use at IBM?

Looks like IBM's fork hasn't pulled in the big changes from the v1.1.0 release.

@gpflaum Hey! We should definitely pair on this. We are definitely still maintaining the project within IBM. Our process for pulling in upstream changes has gotten pretty hefty, thus why we haven't done it lately, but we're planning to revisit/revise that process soon.

Is IBM's fork at https://github.com/IBM/detect-secrets suitable for people to use, or is it too customized for use at IBM?

Our fork should be suitable for anyone to use.

We definitely have work in plan for the 2nd half of the year to pull in the big changes, but as Justin said, they're big changes :)
The rebase is gonna hurt for a minute or three but we still plan to attack it.

@justineyster @rossgrady Thanks for the response. I'm not currently using detect-secrets, but did some work with it several months ago and was going to resume using it soon, but noticed domanchi had left. I can't contribute much to development of detect-secrets but can probably help with testing. We'll see if there's any reply from Yelp, but IBM might be the most actively maintained fork.

@gpflaum : unfortunately, having left the company, I no longer have merge access and therefore, it would be redundant for me to review incoming PRs. During the last couple of months at Yelp, the team was struggling with bandwidth (with me being a sole maintainer of this), so I'm not surprised that this library fell through the cracks with my departure.
@rossgrady : I definitely agree the rebase will probably be painful, but FWIW, I'm happy to review those PRs if you think it will be useful. I think this tool is pretty beneficial to the community, and it would be a shame if it was left unattended.

Hi @domanchi , I still have merge access, super happy to merge any PRs you approve. 👍🏼
I'll go through the open PRs and see what I can review as well, I don't have much bandwidth to fix issues however, unfortunately.

@KevinHock : while I appreciate the offer, I still think it's a pretty flimsy band-aid fix. I think we've attempted to do this during the great refactor for launching v1, and that didn't turn out so well.
Let me try to poke Yelp for a response on this through out-of-band channels.

I agree, thanks @domanchi!
(An aside for this thread, Pinterest uses detect-secrets, but I don't do AppSec anymore so I have less work related reasons to maintain/contribute unfortunately.)

Update from the IBM side. I'm going to explore rebasing our fork to pick up the v1.1.0 changes tomorrow. 🙂

After exploring this today, I've come to realize that the two forks have diverged too much over the past year for our old rebase process to be even remotely feasible. We're going to switch gears towards individually cherry-picking new features from this fork into our own.

Like @KevinHock I'd like to apologize for the lack of comms from the IBM side -- we spent the year heavily focused on things like the Kyndryl spinoff (and then catching up on all the work that had been deferred by focusing on the Kyndryl spinoff).
We are now leaning back towards the opinion that rebasing on the 1.x re-architecture would be worth our time (it was a good re-architecture! Just gonna be challenging . . .)
We are also prepared to do whatever Kevin thinks is most beneficial to the community, whether it's simply pointing ppl to our fork from here, giving us committer access on this project, or any other option in between.

@rossgrady , if it helps, I would be open to having a conversation to better understand IBM's modifications, in order to brainstorm approaches for performing the migration. I've attempted to contact Yelp multiple times but have not heard back. Given this lack of official response, I can only conclude that this tool is probably (inadvertently) EOL.
Given that maintainers are a requirement for a healthy package (and that I have been locked out of this one), if IBM intends to continue maintaining it, the community might need to pivot over. However, the new 1.X architecture did solve many problems that we discovered during internal development -- it would be optimal to port it over to a new official fork/port, if it came to that.
There will also probably be complications with ownership of the package namespace, but for the sake of the community (and continued development of this tool), this might be the best option.

1.x

If IBM wants to keep sustaining the project with 1.x changes, we would need to

revisit the rebase attempt @justineyster did earlier on
resolve #452 since Python 3.8 is not dying any time sooner.

@domanchi @KevinHock Would y'all be open to meeting with our team in the week of January 10th to talk about all of the things Aaron mentions here? https://github.com/Yelp/detect-secrets/issues/473#issuecomment-987508529
We intend to continue contributing, we do think that rebasing on 1.x is the path forward, and we're open to whatever makes the most sense for the health of the project & the community. So hopefully it'll be a fun & easy meeting :)

@rossgrady : SGTM. I'll shoot you an email with my contact information, and we can set something up.
@killuazhu : I recently saw a promising PR that actually fixes that known issue.

Hi @calvinli and @jpdakran,
Would it be alright if we moved detect-secrets to a separate GitHub organization? (e.g. https://github.com/detect-secrets-oss -- I just made that and I am agnostic to the name).
This way we could add folks from e.g. IBM and give them write access. As well as have a place to store the menagerie of separate but related detect-secrets repositories from IBM [1], Microsoft [2, 3] and others.
p.s. I've invited you both as admins, along with @domanchi.
I realize you'll have to run this by Yelp folks internally, and that will take time. Feel free let me know how this goes privately via e-mail if you'd prefer. (There is a lot of precedence for this, such as pre-commit, made at Yelp. And industry-wide, such as https://github.com/envoyproxy/envoy), made at Lyft.
The biggest benefit I see from this is that the repository will be more resilient at staying active/maintained for long periods of time.

@KevinHock

I realize you'll have to run this by Yelp folks internally, and that will take time.

Thanks, I'm working on this (it'll take a few days)

Thank you Yelp and @jpdakran for resuming maintenance of this valuable project. I'll close this issue.

Hello @gpflaum and everyone who took part in this discussion. We're happy that our efforts towards detect-secrets has been noticed and that there's no more doubt around our commitment to this project valued by so many.
I wanted to take the opportunity to to reply to @domanchi's question, i.e.

What are your thoughts of establishing a company-agnostic channel of communication, where the community is able to discuss thoughts in a more real-time capacity? Maybe something like discord?

We currently don't see the need to establish a more real-time communication channel to discuss about detect-secrets. While this may surely change in the future as the project evolves, we would like to keep all conversations related to the project on Github for the time being. One thing I'd like to highlight is that we encourage anyone to open an issue if they have any suggestion and/or discussion related to detect-secrets. @jpdakran and I routinely check and discuss all issues and PRs opened, so I can promise you they won't go unnoticed.
That being said, we thank you all for your continued interest in detect-secrets and for bringing up your concerns around it. This issue/discussion has been formally closed, but feel free to reply to it if you have any further question/comment (or to open a new issue, if you prefer).
We're looking forward to see your future contributions!

authors: KevinHock calvinli domanchi gpflaum justineyster killuazhu lorenzodb1 rossgrady

repo: Yelp/detect-secrets


text:
Add dimension blacklist to three more collectors

This is basically the same as #340 . CC @kokje for a signoff

:shipit:
We now have blacklisting enabled for all collectors that use fullerite/dropwizard

authors: kokje zachm

repo: Yelp/fullerite


text:
Leaderf 升级后有几个问题

vim or neovim?

[ ] vim
[x] neovim

Output of vim --version or nvim --version:
NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3

Output of :echo has("python"):  0

Output of :echo has("python3"): 1

Output of :echo &pythondll(only vim, not neovim):

Output of :echo &pythonthreedll(only vim, not neovim):

Output of :py print(sys.version):
3.9.17 (main, Jun  6 2023, 14:42:56)
[Clang 14.0.3 (clang-1403.0.22.14.1)]

Output of :py3 print(sys.version):
3.9.17 (main, Jun  6 2023, 14:42:56)
[Clang 14.0.3 (clang-1403.0.22.14.1)]

Output of :echo g:Lf_Debug_Cmd:
E121: Undefined variable: g:Lf_Debug_Cmd

Output of :echo g:Lf_FilesFromCache:
E121: Undefined variable: g:Lf_FilesFromCache

Operating system:

[ ] Linux
[x] Mac OS X
[ ] Windows
[ ] Etc.

Configurations related to LeaderF in vimrc:

let g:Lf_HideHelp = 1
let g:Lf_WindowHeight = 15
let g:Lf_StlColorscheme = "gruvbox_material"
let g:Lf_PreviewResult = {'rg': 0}
let g:Lf_StlSeparator = {'left': '', 'right': ''}
let g:Lf_ShowDevIcons = 1
let g:Lf_WindowPosition = 'popup'
let g:Lf_PreviewInPopup = 1
let g:Lf_PopupWidth = 0.85
let g:Lf_PopupHeight = 0.382
let g:Lf_PopupPreviewPosition = 'bottom'
let g:Lf_PopupPosition = [-1000, 0]
let g:Lf_GtagsAutoGenerate = 1
let g:Lf_Gtagsconf='/usr/local/share/gtags/gtags.conf'
let g:Lf_Gtagslabel = 'native-pygments'

nmap go :Leaderf rg --recall<CR>
nmap <leader>r :Leaderf --recall<CR>
nmap <leader>g :Leaderf rg
nmap <leader>c :LeaderfHistoryCmd<CR>
nmap <leader>s :LeaderfHistorySearch<CR>

Describe your question, feature request, or bug.
更新到最新版后，有两个问题：
1.使用Leaderf file、rg 等命令时，会修改vim配色方案，而且 Leaderf file 后文件列表高度很小，只能看到2行
2.Leaderf file 的预览默认打开了，还是原来 ctrl + p 才预览比较舒服，这个要怎么关闭
Steps to reproduce
:Leaderf file
:Leaderf rg
Actual behaviour
正常状态下：

使用 :Leaderf rg 后：

使用 :Leaderf file 后

Expected behaviour
不要修改配色方案
可以设置手动预览
Lederf file 显示的文件行数跟 rg一致

I also would like to turn off previews by default. Is there a setting to do this? Furthermore, the newest commit breaks with dashboard-nvim...

@cage1618

1.使用Leaderf file、rg 等命令时，会修改vim配色方案，而且 Leaderf file 后文件列表高度很小，只能看到2行

新的commit应该不会改配色方案，如果会改，以前应该也会改。你的图片上好像是预览窗口的颜色。以后我会想办法自适应当前配色。
这个好像是个bug，我看一下。

2.Leaderf file 的预览默认打开了，还是原来 ctrl + p 才预览比较舒服，这个要怎么关闭

https://github.com/Yggdroot/LeaderF/blob/1698cbbec5baabff0488f31b5c7fa89e25707d32/doc/leaderf.txt#L415-L433

I also would like to turn off previews by default. Is there a setting to do this? Furthermore, the newest commit breaks with dashboard-nvim...

https://github.com/Yggdroot/LeaderF/blob/1698cbbec5baabff0488f31b5c7fa89e25707d32/doc/leaderf.txt#L415-L433

@cage1618

1.使用Leaderf file、rg 等命令时，会修改vim配色方案，而且 Leaderf file 后文件列表高度很小，只能看到2行

新的commit应该不会改配色方案，如果会改，以前应该也会改。你的图片上好像是预览窗口的颜色。以后我会想办法自适应当前配色。

只能看到2行

更新一下code，设置 let g:Lf_PopupAutoAdjustHeight = 0

2.Leaderf file 的预览默认打开了，还是原来 ctrl + p 才预览比较舒服，这个要怎么关闭

https://github.com/Yggdroot/LeaderF/blob/1698cbbec5baabff0488f31b5c7fa89e25707d32/doc/leaderf.txt#L415-L433

我回退到上次的commit就好了，是后面主窗口的配色改了，由原来的黑色变成了青色的

变色的原因找到了，因为我用了neovim/neovim#3688 (comment) 里提到的方法来隐藏光标。 set termguicolors 时颜色就会变。 感觉使用nvim一般set termguicolors比较好，也就是终端使用真彩色。

😂好的，那暂时老版本先用着，没时间折腾配色，感谢大佬

变色的原因找到了，因为我用了neovim/neovim#3688 (comment) 里提到的方法来隐藏光标。 set termguicolors 时颜色就会变。 感觉使用nvim一般set termguicolors比较好，也就是终端使用真彩色。

😂好的，那暂时老版本先用着，没时间折腾配色，感谢大佬

问题已修复，最新版本也不会有变色问题了。

repo: Yggdroot/LeaderF


text:
feat: collapsible sidebar

https://user-images.githubusercontent.com/1525214/232265911-24ea1af6-86cb-4f89-bab8-557d36e4e4c9.mp4

看起来没什么问题，有一些小建议：

在移动端隐藏收起按钮
移动端侧栏展开和收起的动画消失了，显得比较生硬
可以考虑使用 transition 来构建转场效果

看起来没什么问题，有一些小建议：

在移动端隐藏收起按钮
移动端侧栏展开和收起的动画消失了，显得比较生硬
可以考虑使用 transition 来构建转场效果

Done

#643

authors: Dakai Yidadaa

repo: Yidadaa/ChatGPT-Next-Web


text:
Tokenization strategy

Hi and thanks for the awesome repo. Did you try any other tokenization strategies (sentencepiece, wordpiece or bpe). I see you use a character level tokenization which is nice but probably dosen't make full use of the language model capabilities. I would love to get some insights.

Hello.
Thank you for having an interest in this repository.
Unfortunately, I had used only simple tokenization methods because I used this model to recognize Korean letters.
I'm pretty sure that you would get better performance when you use more sophisticated methods like BPE or sentencepiece.

@YongWookHa  could you please let me know how can I make a tokenizer for the Japanese dataset?

authors: IlyasMoutawwakil WongVi YongWookHa

repo: YongWookHa/swin-transformer-ocr


text:
Co-simulation fails for $fa cell

Version
Yosys 0.45+153 (git sha1 b3b88e56d, g++ 13.2.0 -Og -fPIC)
On which OS did this happen?
Linux
Reproduction Steps

Move to functional tests dir
cd tests/functional
Generate $fa cell design and execute the C++ functional backend
../../yosys -p "test_cell -n 1 -w test_cell \$fa; read_rtlil test_cell_fa_00000.il;  write_functional_cxx my_module_functional_cxx.cc"

Note:
The generated .il file in my case is the following:

# Generated by Yosys 0.45+153 (git sha1 b3b88e56d, g++ 13.2.0 -Og -fPIC)
autoidx 1
module \gold
  wire input 1 \A
  wire input 2 \B
  wire input 3 \C
  wire output 4 \X
  wire output 5 \Y
  cell $fa \UUT
    parameter \WIDTH 1
    connect \A \A
    connect \B \B
    connect \C \C
    connect \X \X
    connect \Y \Y
  end
end

Compile the VCD harness (note the vcd_harness.cc includes my_module_functional_cxx.cc)
g++ -g vcd_harness.cc -I ../../backends/functional/cxx_runtime/ -std=c++17 -o vcd_harness
Execute VCD harness:
./vcd_harness test_cell_fa_00000.il_functional_cxx.vcd 100 1
Co-simulate
../../yosys -p "read_rtlil test_cell_fa_00000.il; sim -r test_cell_fa_00000.il_functional_cxx.vcd -vcd test_cell_fa_00000.il_yosys_sim.vcd -scope gold -timescale 1us -n 100"

Note:
The issue may not be with the functional backend, but with simlib.v or elsewhere.
For example https://github.com/YosysHQ/yosys/blob/main/techlibs/common/simlib.v#L583 seems a bit suspect, since Y ^ Y is always 0.
I think it should be:
assign Y = t1 ^ C, X = (t2 | t3);
but the problem persists even with that change.
Expected Behavior
Co-simulation successful:

Co-simulating sample 99 [99us].
End of script.

Actual Behavior

ERROR: Assert `arg3.bits.size() == 0' failed in ./kernel/celltypes.h:516.

For example https://github.com/YosysHQ/yosys/blob/main/techlibs/common/simlib.v#L583 seems a bit suspect, since Y ^ Y is always 0.

My guess is this is for faithful x-propagation, i.e. it's to arrange for X to be in x-state whenever Y is in x-state.

This issue might be because $fa lacks an eval implementation, similar to #3913 for the case of $alu

I can confirm this is not about the functional backend at all, it's the lack of an eval implementation. I ran into this while writing the tests for the functional backend, the actual functional backend tests work around this issue by using one of the yosys passes to map $fa and $alu to other cells before co-simulation.

This issue might be because $fa lacks an eval implementation, similar to #3913 for the case of $alu

yes, also the $lcu eval implementation seems to be missing too.

$fa and $lcu are usually very temporary intermediate steps of techmapping, so we've generally not bothered to add support to various passes for them. Have you come across a context where it would actually be necessary or useful to simulate them?

$fa and $lcu are usually very temporary intermediate steps of techmapping, so we've generally not bothered to add support to various passes for them. Have you come across a context where it would actually be necessary or useful to simulate them?

Not really. Maybe then we could mark $fa, $alu and $lcu as not evaluable?

Maybe then we could mark $fa, $alu and $lcu as not evaluable?

Note evaluability is currently conflated with the cell being combinational, see #4034

authors: RCoeurjoly aiju nakengelhardt povik

repo: YosysHQ/yosys

license: isc


text:
Which files need to be hosted?

I'm Submitting a ...

[ ] Bug report
[ ] Feature request
[x] Support request

Other Information (e.g. stacktraces, related issues, suggestions how to fix)

Hi @YouCanBookMe   ,
I'm a member of cdnjs. We are going to host this library.
What the files should need to be added in cdnjs?
(I guess the files under dist/ and css/ need to be added in cdnjs.)
If you have any suggestions, please let me know.
Thank you.
cdnjs/cdnjs#10731

Hi @sufuf3. Thanks for offering to host this component on your CDN. We'll get back to you soon.

@simeg Thanks.
And There are some files is missing from npm in v0.1.0 and v0.4.1, and  I can't get them from GitHub.
Is there any way can get the v0.1.0 and v0.4.1?
If you have any suggestions, please let me know.
Thank you.

It doesn't look like v0.1.0 nor v0.4.1 were official releases, therefore closing this issue.  Thanks for hosting on cdnjs.

Got it.
Thank you for your response.

authors: layneanderson simeg sufuf3

repo: YouCanBookMe/react-datetime


text:
'=': cannot convert from '_Other' to '_Ty'

doesent seem the library works on 32 bit systems
1>        with
1>        [
1>            _Other=int
1>        ]
1>        and
1>        [
1>            _Ty=std::_Iterator_base12 *
1>        ] (compiling source file cdll_client_int.cpp)
1>F:\vs22\VC\Tools\MSVC\14.35.32215\include\utility(655,42): message : Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or parenthesized function-style cast (compiling source file cdll_client_int.cpp)
1>F:\vs22\VC\Tools\MSVC\14.35.32215\include\xmemory(1231,5): message : see reference to function template instantiation '_Ty *std::exchange<std::_Iterator_base12*,int>(_Ty &,_Other &&) noexcept(false)' being compiled
1>        with
1>        [
1>            _Ty=std::_Iterator_base12 *,
1>            _Other=int
1>        ] (compiling source file cdll_client_int.cpp)```

Just wanted to specify im trying to add this to the source engine idk if some of the stuff in there is outdated but everything else works fine besides some function trying to cast to an int so idk what to do rn cause im kinda clueless here

Where is this file cdll_client_int.cpp from? This is definitely not in my repository.


text:
🛑 UPC is down

In 4dc5ac1, UPC (https://www.upc.edu.cn/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: UPC is back up in 34cc098 after 7 minutes.

repo: Yourrrrlove/upptime


text:
Error Upon Loading

Whenever I load this alongside Jamozed's Tweaks in 0.17, I get this error: https://imgur.com/kdrVCKs

Thanks for reporting this.
0.17 replaced separate properties for each direction of belt ends with a general property belt_animation_set.
I've updated Loader Redux to use this instead.