text:
请求添加 mac catalyst 的支持

你在什么场景下需要该功能？
我有个动态库 framework 需要适配 mac catalyst。
mac catalyst的介绍：https://developer.apple.com/cn/mac-catalyst
我现在使用 option 实现了 mac catalyst 库的编译
set_languages("c++14")
add_rules("mode.debug", "mode.release")

option("mac_catalyst")
    set_default(false)
    set_showmenu(true)
    set_description("是否编译 mac catalyst")
    add_cxxflags("-target x86_64-apple-ios13.1-macabi")
    add_shflags("-target x86_64-apple-ios13.1-macabi")
option_end()

target("MyLibrary")
    add_options("mac_catalyst")
    add_rules("xcode.framework")
    set_kind("shared")
    add_files("src/*.cpp")
    add_files("src/Info.plist")

然后
xmake f -p macosx -a arm64 -m release --mac_catalyst=y
xmake

但是这样有问题：

用编译出的framework不能使用，使用时会报错Library not loaded: @rpath/MyLibrary
想要修改option中的x86_64-apple-ios13.1-macabi中的ios13.1版本就比较麻烦。
ios13.1其实是iphoneos的版本号，而在macosx平台下只能设置mac的sdk版本号。

描述可能的解决方案
一、在 macosx 平台下修改
在 xmake config 中增加 mac catalyst 配置项，
然后根据配置把load_macosx.lua文件中的
format("-target %s-apple-macosx%s", arch, target_minver)
改为
format("-target %s-apple-ios%s", arch, target_minver)。
但这里有一个麻烦点，现在target_minver是macos的版本，需要改为对应的ios版本，
并且 mac catalyst 最低支持ios13.1。
还有就是Library not loaded: @rpath/MyLibrary报错不知道该怎么处理。
二、在 iphoneos 平台下修改
在 xmake config 中增加 mac catalyst 配置项，
然后在find_xcode.lua中判断如果plat == "iphoneos"并且是 mac catalyst时，
将platsdkdir改为macos的sdk路径：
platsdkdir = "Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.*.sdk"
但是有一个注意点，在load_iphoneos.lua中设置format("-target %s-apple-ios%s", arch, target_minver)时，target_minver最低支持13.1
描述你认为的候选方案
No response
其他信息
No response

试下这个 patch https://github.com/xmake-io/xmake/pull/2695
xmake update -s github:xmake-io/xmake#catalyst

还是有点问题，编译器要用 xcrun -sdk iphoneos clang 还是 xcrun -sdk macosx clang?

sdk 使用 macosx

好了，再试试
xmake update -s github:xmake-io/xmake#catalyst
xmake f --appledev=catalyst -c
xmake

现在可以编译，但是使用编译出的Framework时会报错
dyld[15247]: Library not loaded: @rpath/RbtBezier
Referenced from: /Users/xxxxx/Library/Developer/Xcode/DerivedData/Demo-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/Demo.app/Contents/MacOS/Demo
Reason: tried: '/Users/xxxxx/Library/Developer/Xcode/DerivedData/Demo-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/RbtBezier' (no such file), '/usr/lib/system/introspection/RbtBezier' (no such file), '/Users/xxxxx/Library/Developer/Xcode/DerivedData/Demo-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/Demo.app/Contents/MacOS/../Frameworks/RbtBezier' (no such file), '/Users/xxxxx/Library/Developer/Xcode/DerivedData/Demo-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/Demo.app/Contents/MacOS/Frameworks/RbtBezier' (no such file), '/Users/xxxxx/Library/Developer/Xcode/DerivedData/Demo-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/Demo.app/Contents/MacOS/../Frameworks/RbtBezier' (no such file), '/Users/xxxxx/Library/Developer/Xcode/DerivedData/Demo-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/Demo.app/Contents/MacOS/Frameworks/RbtBezier' (no such file), '/usr/lib/RbtBezier' (no such file)
在使用xmake -v 编译时，看到输出 -install_name @rpath/RbtBezie，我用xcode工程编译的时候能看到输出-install_name @rpath/RbtBezierLib.framework/Versions/A/RbtBezier，是不是这个区别导致了Library not loaded: @rpath/RbtBezier 报错。

不清楚，不过我刚修了点其他的问题，storyboard 编译，和 UIKit 的支持等等。。
https://github.com/xmake-io/xmake/tree/master/tests/projects/objc/iosapp_with_framework
我用这个带 framework 的例子测试，是可以正常编译和加载 framework的。。
$ xmake update -s dev
$ cd iosapp_with_framework
$ xmake f --appledev=catalyst -c
$ xmake
$ xmake run
2022-08-22 10:29:37.074 demo[78404:5225667] add(1, 2): 3
2022-08-22 10:29:37.074 demo[78404:5225667] hello xmake!

我把iosapp_with_framework编译出来的test.framework放到一个新建的xcode工程里，就会报错：
dyld[34419]: Library not loaded: @rpath/test
Referenced from: /Users/xxxx/Library/Developer/Xcode/DerivedData/tttttt-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/tttttt.app/Contents/MacOS/tttttt
Reason: tried: '/Users/xxxx/Library/Developer/Xcode/DerivedData/tttttt-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/test' (no such file), '/usr/lib/system/introspection/test' (no such file), '/Users/xxxx/Library/Developer/Xcode/DerivedData/tttttt-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/tttttt.app/Contents/MacOS/../Frameworks/test' (no such file), '/Users/xxxx/Library/Developer/Xcode/DerivedData/tttttt-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/tttttt.app/Contents/MacOS/Frameworks/test' (no such file), '/Users/xxxx/Library/Developer/Xcode/DerivedData/tttttt-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/tttttt.app/Contents/MacOS/../Frameworks/test' (no such file), '/Users/xxxx/Library/Developer/Xcode/DerivedData/tttttt-cjvicqnencowhaafwrwedaypfvgm/Build/Products/Debug-maccatalyst/tttttt.app/Contents/MacOS/Frameworks/test' (no such file), '/usr/lib/test' (no such file)
iosapp_with_framework 使用 xmake f --appledev=catalyst -c 编译出来的demo.app的目录结构和xcode不太一样
xcode编译出来的app目录结构：

Demo.app

Contents

MacOS

demo

Frameworks

test.framework

xmake编译出来的app目录

Demo.app

Contents

MacOS

demo
test

所以xmake run可以运行起来，因为test和demo在一个目录下，@rpath/test 能找到test

依赖的 frameworks copy 到 .app 一直还没搞，TODO 状态，之前只是临时性 copy 了 dylib 过去
https://github.com/xmake-io/xmake/blob/b359ad6ccb676c0bd3f8cec8004111e339716e87/xmake/rules/xcode/application/build.lua#L49-L54

依赖的 frameworks copy 到 .app 一直还没搞，TODO 状态，之前只是临时性 copy 了 dylib 过去
https://github.com/xmake-io/xmake/blob/b359ad6ccb676c0bd3f8cec8004111e339716e87/xmake/rules/xcode/application/build.lua#L49-L54

好的，辛苦了大佬

可以了，你再更新到 dev 试试

可以了，你再更新到 dev 试试

👍确实可以了，大佬辛苦了

authors: CaffreySun waruqi

repo: xmake-io/xmake


text:
Refactor typescript

I spent some more time with atom transpilers. There's an rfc, but doesn't look like there's much movement there https://github.com/atom/atom/pull/17681
This PR introduces https://github.com/atom/atom-babel7-transpiler, which means we can use modern babel presets, including

https://babeljs.io/docs/en/babel-preset-env
https://babeljs.io/docs/en/babel-preset-typescript

This allows us to keep es modules, contrary to my thinking in https://github.com/xojs/atom-linter-xo/pull/101#discussion_r513954646

I'm unsure why the tests are failing.. I don't think I've changed any runtime logic? The only thing I can think of is the new transpiling setup has changed something? I

I'm not convinced the gain of adding TS is worth the complexity.
If we're going to add TS, it should use the TS compiler and not Babel.

I'm not convinced the gain of adding TS is worth the complexity.

I've found TS helpful to understand the interaction between atom, xo, and eslint. It also uncovered a few subtle issues. I can create PRs for those

If we're going to add TS, it should use the TS compiler and not Babel.

From my research, using TS to write atom packages requires either

babel + @babel/preset-typescript, which is compiled by the package transpiler at startup, or
complile and/or bundle TS, so apm can install the compiled JS with out additional compilation

https://github.com/TypeStrong/atom-typescript is a good example of bundling a TS package. This does require commuting the compiled/bundled output to git
Initially I thought there wasn't much added in terms of code complexity. But I can see now how this adds a lot of complexity to a relatively simple project.

I'm going to pass on this. I don't think it's worth it. I really like the idea of TS, but in practice, from a lot of experience, it causes more problems than it solves.

Ok, no problem 👍🏻

source: gharchive/pull-request

authors: BarryThePenguin sindresorhus

repo: xojs/atom-linter-xo

license: MIT

license_type: permissive

license_source: github-api


text:
Failed to load config "xo/esnext" to extend from.

> gulp xo
[08:28:52] Using gulpfile ~/git/whmcs-ispapi-domainchecker/gulpfile.js
[08:28:52] Starting 'xo'...
[08:28:52] 'xo' errored after 46 ms
[08:28:52] Error in plugin "gulp-xo"
Message:
    Failed to load config "xo/esnext" to extend from.
Referenced from: BaseConfig
Details:
    messageTemplate: extend-config-missing
    messageData: [object Object]
    fileName: /home/ad.ks.de/kschwarz/git/whmcs-ispapi-domainchecker/gulpfile.js
    domainEmitter: [object Object]
    domainThrown: false

where > npx xo works just perfectly fine.
reproduce by
git clone https://github.com/hexonet/whmcs-ispapi-domainchecker.git
npm i
gulp xo

Gulp's xo task: https://github.com/hexonet/whmcs-ispapi-domainchecker/blob/master/gulpfile.js#L43-L48
NOTE: I also tried providing a configuration to xo in the task, which did not improve the situation.
xo's configuration: https://github.com/hexonet/whmcs-ispapi-domainchecker/blob/master/package.json#L42-L54
NOTE: I had this also separated as configuration file, which did not improve the situation.
xo works fine with prettier together, just no idea why gulp-xo runs into trouble. thanks for your help, very appreciated.

Make sure you install with the latest version of npm. There are some dependency resolution problems in npm 6. Other than that, I would strongly recommend just using the XO binary instead.

> npm --version
7.21.1

Then I don't really know... The ESLint rule resolution thing is really broken and I don't know how to fix it. ESLint is planning to replace the config stuff with something simpler (flat config), so I'm hoping that will eventually fix all the weird problems.
For now, I would recommend just using the binary. If you really want it in your Gulp file, you could use https://github.com/robrich/gulp-exec

This package is deprecated.

source: gharchive/issue

authors: KaiSchwarz-cnic papakai sindresorhus

repo: xojs/gulp-xo


text:
会考虑支持CockroachDB吗？

如果让xorm支持CockroachDb需要做哪些工作

CockroachDb 用PostgreSQL协议应该是能兼容到，我来测试验证一下

完美兼容，正常使用为遇到问题

repo: xormplus/xorm

license_source: bigquery


text:
🛑 Design Swan is down

In 1e93001, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 99 ms

Resolved: Design Swan is back up in bee07e9.

repo: xoryorz/upptime


text:
🛑 Design Swan is down

In 77d3207, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 142 ms

Resolved: Design Swan is back up in 084d3d0 after 56 minutes.


text:
🛑 pishem-otzivi is down

In 0ba0ee8, pishem-otzivi (https://пишем-отзывы.рф/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: pishem-otzivi is back up in ba85d11.


text:
aiとのchatにembedを使用し、顔画像をつける機能の追加

機能
negapojiによってaiとのチャットのメッセージを解析し、
embedの機能を使い感情によって表示される顔が変わるようにしたい。
レビューポイント
url指定する所などが長くなってしまっているかもしれないです
改良点
・雑談対話botのプログラムを丸ごと使わさせていただきましたが、
全く同じ機能の関数を違う名前で再定義していたのであとで修正しておきます。
・表示する画像をテスト画像のurlそのままであげてしまっていたのでxp-chan関係でいい画像を探してくる
or書いておきます

１.xp_fiat.rb:239:24: W: [Corrected] Lint/UnusedMethodArgument: Unused method argument - event.
２.コメントアウトの中のTODO
１は勝手に変えて良いものなのか分からなかったため、2はどうやって直したら良いか分からなかった。
この2つで躓いています。解決法知っている方おりましたら、教えていただきたいです！
上の改良点で同じ意味の関数を別名で定義していたと書いきましたが、呼び出し先を変えないといけないので残しました。
レビューよろしくお願いしますm(._.)m

ABCsizeでCIがMAX17だと通らないのですが(19だと通りました)、
関数を見直した方が良いでしょうか。
レビューよろしくお願いしますm(._.)m

ざっと見ただけなのですが、メソッド抽出が足りないように見えます。
ベースとして雑談BotのAPIを使っているようですが、コピペして複製するのではなく、既存のメソッドを使いまわせるように作れないでしょうか？
すでにあるメソッドは15で通るように作ってあるので、既存のメソッドを活用してみて下さい。

明日、書き直します！
レビューありがとうございます(｡｀･д･)ﾉﾉ

細かい話なんですが、コミットメッセージはコミットの内容を書いてほしいです〜
CIのための修正なのはわかるのですが、コミットの内容はそこから外れているので、コミット単体で理解できるメッセージをお願いいたします 🙇

そうゆう基礎的な事が全然わかっていないので、どんどん言ってくださると助かります！
ありがとうございます🙏

@hir0king あれ、なんでクローズしちゃうんですかね？続けてもらってよさそうです〜

@Asuforce
こっちにコメント入れるの忘れてた！
色々直したり足してたら自分のプログラムがグチャグチャになってしまっていて、
コンフリクトとかもあり一から書き直してみたんです....
プルリクを出し直すのは聞いたことがないけど一応良いんじゃないと言われたので
出し直して見ました
色々不慣れで申し訳ないですorz
https://github.com/xpjp/xpfiat-bot/pull/84

わかりました。なんか表示されている URL とリンク先が変ですね
#84 とかすると楽にリンク張れるのので、活用してみてください

ほんとだ...
#84 すごい！！！
ありがとうございます @Asuforce

repo: xpjp/xpfiat-bot


text:
"Connection lost" between nginx and HyperFastCGI

We encountered this issue already twice:

Request sent to nginx
Nginx should forward this request to HFC.
The request is not reaching Mono (no log output on the mono side), and nginx writes it's infamous HTTP ERROR 499 entry into it's log file: "POST /api/0.0.1/list.json? HTTP/1.1" 499 0 "-" "BestHTTP". This 499 entry is nginx-specific and only kept in the logs, not sent out to the client. The clients request times out.
The HFC log file doesn't have any output on that. We're calling it this way: usr/bin/mono /usr/lib/hyperfastcgi/4.0/HyperFastCgi.exe /config=/hyperfastcgi.conf /applications=/:/usr/aspnet/ /verbose /loglevels=All /logfile=/var/log/nginx/fastcgi.log.

We're using the most current revision of HFC and Mono 4.2.1.
This is our HFC config:
<configuration>
        <server type="HyperFastCgi.ApplicationServers.SimpleApplicationServer">
                <host-factory>HyperFastCgi.HostFactories.SystemWebHostFactory</host-factory>
                <threads min-worker="40" max-worker="0" min-io="4" max-io="0" />
        </server>

        <listener type="HyperFastCgi.Listeners.NativeListener">
                <apphost-transport type="HyperFastCgi.Transports.NativeTransport">
                        <multithreading>ThreadPool</multithreading>
                </apphost-transport>
            <protocol>InterNetwork</protocol>
            <address>127.0.0.1</address>
            <port>9000</port>
        </listener>

    <apphost type="HyperFastCgi.AppHosts.AspNet.AspNetApplicationHost">
                <log level="Debug" write-to-console="true" />
                <add-trailing-slash>false</add-trailing-slash>
    </apphost>

</configuration>

That's all we got from the HFC log:
[2016-01-20 16:29:34Z] Debug   HyperFastCgi
[2016-01-20 16:29:35Z] Debug   Threadpool minw=40,minio=4,maxw=100,maxio=100
[2016-01-20 16:29:35Z] Debug   Root directory: /
[2016-01-20 16:29:36Z] Debug   Listening on port: 9000
[2016-01-20 16:29:36Z] Debug   Listening on address: 127.0.0.1
[2016-01-21 10:24:51Z] Debug   HyperFastCgi
[2016-01-21 10:24:51Z] Debug   Threadpool minw=40,minio=4,maxw=100,maxio=100
[2016-01-21 10:24:51Z] Debug   Root directory: /
[2016-01-21 10:24:52Z] Debug   Listening on port: 9000
[2016-01-21 10:24:52Z] Debug   Listening on address: 127.0.0.1

After restarting HFC every request got served correctly and fast again.
On a sidenote - I had to kill -9 HFC, because a "normal kill" wouldn't work.
The question is - What can we do to investigate this issue further, other than debugging the code in an UI? (because we don't know what the root cause of this behaviour is to reproduce it). Are there any system information or logs which can help telling why HFC obviously stops responding?

It looks like the client closes connection before start to receive data. I'll look on this scenario at weekend, can this produce unexpected behaviour of HFC.

Should be fixed via https://github.com/xplicit/HyperFastCgi/commit/aeadc0e130c43a979c2e986817c90c1a9bfb73b8

authors: derFunk xplicit

repo: xplicit/HyperFastCgi

license: mit


text:
adding unicode-ranges

Currently the google-webfont-helper does not support unicode-ranges.
It is possible to address the Google service directly and get the fonts directly from Google!
Maybe in v2.0 :-)

Done in 1.2.0-BETA*. Currently experimental but seems to be fine :-)

repo: xprojects-de/contao-google-fonts


text:
2021.11.13 网页版微哨打卡无法登陆了

Invalid URL '/login?source=%2Foauth%2Fauthorize%3Fclient_id%3DpqZ3wGM07i8R9mR3%26redirect_uri%3Dhttps%253A%252F%252Fyq.weishao.com.cn%252Fcheck%252Fquestionnaire%26response_type%3Dcode%26scope%3Dbase_api%26state%3Druijie': No schema supplied. Perhaps you meant http:///login?source=%2Foauth%2Fauthorize%3Fclient_id%3DpqZ3wGM07i8R9mR3%26redirect_uri%3Dhttps%253A%252F%252Fyq.weishao.com.cn%252Fcheck%252Fquestionnaire%26response_type%3Dcode%26scope%3Dbase_api%26state%3Druijie?

你确定密码没错吗

应该是接口换了

我这还可以使用的

emmm，没问题，可以使用的

可以，昨天不知道咋回事不行，今天可以了😁😁


text:
🛑 Xstatic is down

In 44d31fe, Xstatic (https://www.xstatic.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Xstatic is back up in 8bc144c after 15 minutes.

repo: xstaticwebdev/upptime


text:
snmp log file name issue

Version 20170930 and 20171113:
When using some number in snmp log filename, actual log file name changes.
example:
server_linux_amd64 ... --snmplog <path>/snmp_22  ...

The log files will be
...
snmp1717
snmp1818
snmp1919
snmp2020
snmp2121
snmp2222
It seems the program is using day-of-month replaced '2' in filename .

Further test
server_linux_amd64 ... --snmplog /home/sssshh/kcptun/snmp_0.1.2.3.4.5.6.7.8.9 ...

writes log file(s)
snmp_0.11.22.5.13.27.6.7.8.3
snmp_0.11.22.5.14.27.6.7.8.3
snmp_0.11.22.5.15.27.6.7.8.3

so
1 -> month
2 -> day-of-month
3 -> clock hour
4 -> clock minute
5 -> clock second
9 -> day-of-week

Ok, just found out it's golang date format, but what if I have numbers in my log path?

hi,
I have the same problem with version : 20180316

Requirement
I have started four pairs of kcp clients and servers, and I would like to analyze the snmp logs of those clients and servers.
I would like to identify each pair of snmp log. For example, the configuration of kcp client and server is written as follow,

# client
{
	"localaddr": "127.0.0.1:2001",
	"remoteaddr": "123.45.67.89:4001",
	"mode": "fast2",
	"snmplog": "/home/kcplog/2001/123.45.67.89-4001/snmp-20180507.log"
}

# server
{
	"listen": "0.0.0.0:4001",
	"target": "127.0.0.1:8001",
	"mode": "fast2",
	"snmplog": "/home/kcplog/4001/123.45.67.89-8001/snmp-20180507.log"
}

In this case, I can identify the logs by their paths when I have multiple clients and servers in use.

I have glanced at the source code of 20180316.
I find the function snmpLogger in file main.go,on line 479 as follow.
  func snmpLogger(path string, interval int) {
...
			f, err := os.OpenFile(time.Now().Format(path), os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
...
}

In which it converts the path string to golang date format.

@xtaci
It would be very nice to just convert the filename in date format, leaving the path flexible.

@TerranceH
In our case, we've made a detour, encode the ip-port from 0-9  to a-j by plus 48, then decode that when we need to analyze the log in pair(client-server).

@Pancongwen good suggestion, we can trade differently for filename & path prefix

@Pancongwen https://golang.org/pkg/path/filepath/#Split
will you PR this to me ?

@xtaci
Thanks for the trust! I'll try this week.

@xtaci
I have made a PR about this issue. Thanks in advance for your time to do the code review.

authors: Pancongwen TerranceH mateomartin1998 xtaci

repo: xtaci/kcptun


text:
Mention in README/Config README that eventid must be unique

For the solution to work event_ids must be unique and so must job ids. This should be mentioned in the README documentation to try and avoid situations of duplicated data or mixing of instances.
Outcomes:

README updated
Reviewed and approved

Fixed in https://github.com/xtuml/otel2puml/pull/227


text:
Hot Module Reloading not working

When I update the content of the modal, the update is not being reflected on the open modal.
I have to close and re-open the modal for the change to show.
Unfortunately I think you may need to rethink the entire API in order to solve this.

Using
"react-dynamic-modal": "^1.1.1",
"react-hot-loader": "^3.0.0-beta.7",
with     "webpack-hot-middleware": "^2.18.0", in the app.js
and specifing the:   entry: [
'react-hot-loader/patch',
'webpack-hot-middleware/client?path=/__webpack_hmr&timeout=2000&reload=true',
'./src/app.js'
],
I'm able to have stable react-hot-loader work on all files inside src/ folder, updates immediately. But the reloading will dismiss the open modal in the browser each time a changes are saved. so it must again be triggered to open by a onClick event or other call to set ModalManager.open.

authors: AlexLeung nightsdark


text:
Contributions not allowed

12:24:03.645: [xuedi] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/fix-everything:fix-everything --set-upstream remote: Permission to xuedi/xuedi.git denied to davehamber. fatal: unable to access 'https://github.com/xuedi/xuedi.git/': The requested URL returned error: 403
How disappointing.

fixed by adding you two :-)

authors: davehamber xuedi

repo: xuedi/xuedi


text:
Vertical PageView combine with EasyRefresh,  The indicator didn't show.

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    print('>>> build(context)');
    final screenHight = MediaQuery.of(context).size.height;

    return Material(
      color: Colors.grey,
      child: Container(
        color: Colors.green,
        child: Stack(
          children: <Widget>[
            EasyRefresh.custom(
              header: ClassicalHeader(),
              footer: MaterialFooter(),
              onRefresh: () async {
                print('object1');
                return await Future.delayed(Duration(seconds: 2), () {
                  print('Done');
                });
              },
              onLoad: () async {
                print('object2');
                return await Future.delayed(Duration(seconds: 2), () {
                  print('Done');
                });
              },
              slivers: <Widget>[
                SliverFixedExtentList(
                  itemExtent: screenHight,
                  delegate: SliverChildBuilderDelegate(
                    (BuildContext context, int index) {
                      return PageView.builder(
                        scrollDirection: Axis.vertical,
                        itemBuilder: (BuildContext context, int index) {
                          return Container(
                            color: index % 2 == 0
                                ? Colors.blue
                                : Colors
                                    .blueGrey, //Colors.lightBlue[100 * (index % 9)],
                            child: Column(
                              children: <Widget>[
                                Container(
                                  height: 30,
                                  color: Colors.red,
                                ),
                                Text('list item $index'),
                                Container(
                                  height: 30,
                                  color: Colors.yellow,
                                )
                              ],
                            ),
                          );
                        },
                      );
                    },
                    childCount: 5,
                  ),
                ),
              ],
            ),
          ],
        ),
      ),
    );
  }
}

I don't think this is a problem with EasyRefresh

It's related to Physics conflict.

authors: jerryzhoujw xuelongqy


text:
Do you any plans to support Qwen2 72B?

Do you any plans to support Qwen2 72B?

Hi, friends! For 72B model, we are very sorry now for lacking sufficient computational resources now. Once we have more GPU, these larger model will be considered. :-) Thanks for your attention!

If there is no comments, I will close this issue.


text:
Having some trouble merging yaml, it just says not changed.

I created a docker container with the following Dockerfile:
FROM openjdk:18-jdk-alpine3.13
# ADD some needed tools
RUN apk add --no-cache git openssh-client jq bash curl ca-certificates

# Install yaml-config-updater
ARG VERSION=1.3.2\
RUN cd /usr/local/bin \
  && curl -LO https://repo1.maven.org/maven2/ru/vyarus/yaml-config-updater-cli/${VERSION}/yaml-config-updater-cli-${VERSION}-all.jar \
  && ln -s yaml-config-updater-cli-${VERSION}-all.jar yaml-config-updater.jar

CMD ["java", "-jar", "/usr/local/bin/yaml-config-updater.jar", "--help"]

Original yaml: (mostly, I (CENSORED) the secrets that shouldn't be there anyhow.
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
  name: sdlc-pa-test
  namespace: pa-test
spec:
  releaseName: sdlc-pa-test
  chart:
    repository: https://artifactory.company.com/artifactory/company-helm
    name: patching-automation
    version: 0.9.0
  values:
    initContainerImage: docker-remote.artifactory.company.com/alpine:3.12
    replicaCount: 2
    image:
      tag: feat_puppet-jobs # override v0.9.0 with unreleased tag
      pullPolicy: Always

    ingress:
      enabled: true
      annotations:
        kubernetes.io/ingress.class: nginx
        nginx.ingress.kubernetes.io/affinity: cookie
        nginx.ingress.kubernetes.io/affinity-mode: persistent
        nginx.ingress.kubernetes.io/proxy-buffer-size: 8k
        nginx.ingress.kubernetes.io/configuration-snippet: | # Due to Citrix LB handling https
          more_set_input_headers "X-Forwarded-Proto: https";
          more_set_input_headers "X-Forwarded-Port: 443";
      hosts:
        - host: sdlc-pa-test.company.com
          paths: [ "/" ]

    # Database
    postgresql:
      postgresqlPassword: (CENSORED)
      image:
        registry: docker-remote.artifactory.company.com
      persistence:
        size: 5Gi

    extraEnvironmentVariables:
      - name: TRELLO_TOKEN
        value: (CENSORED) # me
      - name: OIDC_CLIENT_ID
        value: (CENSORED)
      - name: OIDC_CLIENT_SECRET
        value: (CENSORED)
      - name: OIDC_REDIRECT_URL
        value: https://sdlc-pa-test.company.com/auth/google/callback
      - name: OIDC_ISSUER_URL
        value: https://accounts.google.com

update.yaml

spec:
  values:
    image:
      tag: a95c9959

Debug output:
Updating configuration: /flux-sbx-apps/den3sbx/releases/pa-test/helmrelease-patching-automation.yaml
[main] DEBUG ru.vyarus.yaml.updater.YamlUpdater - Parsing new configuration...
[main] DEBUG ru.vyarus.yaml.updater.update.EnvSupport - Replacing variables in format '#{name}' from:
    PATH=/opt/openjdk-18/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    JAVA_HOME=/opt/openjdk-18
    OLDPWD=/flux-sbx-apps/den3sbx
    TERM=xterm
    SSH_AUTH_SOCK=/tmp/ssh-Ws5N4Ez2mZIR/agent.7
    SSH_AGENT_PID=8
    HOSTNAME=a232cb7b2894
    LD_LIBRARY_PATH=/opt/openjdk-18/lib/server:/opt/openjdk-18/lib:/opt/openjdk-18/../lib
    JAVA_VERSION=18-ea+11
    PWD=/flux-sbx-apps
    SHLVL=1
    HOME=/root
    _=/opt/openjdk-18/bin/java
[main] INFO ru.vyarus.yaml.updater.YamlUpdater - Environment variables applied to new config
[main] INFO ru.vyarus.yaml.updater.YamlUpdater - New configuration parsed (47 bytes, 4 lines)
[main] DEBUG ru.vyarus.yaml.updater.YamlUpdater - Parsing current configuration file (/flux-sbx-apps/den3sbx/releases/pa-test/helmrelease-patching-automation.yaml)...
[main] INFO ru.vyarus.yaml.updater.YamlUpdater - Current configuration parsed (1743 bytes, 51 lines)
[main] DEBUG ru.vyarus.yaml.updater.YamlUpdater - Merging configurations...
[main] INFO ru.vyarus.yaml.updater.YamlUpdater - Configuration merged
[main] DEBUG ru.vyarus.yaml.updater.YamlUpdater - Validating merged result
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/ingress/hosts[0] in current file
[main] DEBUG ru.vyarus.yaml.updater.update.ListMatcher - List item spec/values/ingress/hosts[0] match found: spec/values/ingress/hosts[0] (by 2 matches)
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/ingress/hosts[0] in update file
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/extraEnvironmentVariables[0] in current file
[main] DEBUG ru.vyarus.yaml.updater.update.ListMatcher - List item spec/values/extraEnvironmentVariables[0] match found: spec/values/extraEnvironmentVariables[0] (by 2 matches)
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/extraEnvironmentVariables[0] in update file
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/extraEnvironmentVariables[1] in current file
[main] DEBUG ru.vyarus.yaml.updater.update.ListMatcher - List item spec/values/extraEnvironmentVariables[1] match found: spec/values/extraEnvironmentVariables[1] (by 2 matches)
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/extraEnvironmentVariables[1] in update file
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/extraEnvironmentVariables[2] in current file
[main] DEBUG ru.vyarus.yaml.updater.update.ListMatcher - List item spec/values/extraEnvironmentVariables[2] match found: spec/values/extraEnvironmentVariables[2] (by 2 matches)
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/extraEnvironmentVariables[2] in update file
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/extraEnvironmentVariables[3] in current file
[main] DEBUG ru.vyarus.yaml.updater.update.ListMatcher - List item spec/values/extraEnvironmentVariables[3] match found: spec/values/extraEnvironmentVariables[3] (by 2 matches)
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/extraEnvironmentVariables[3] in update file
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/extraEnvironmentVariables[4] in current file
[main] DEBUG ru.vyarus.yaml.updater.update.ListMatcher - List item spec/values/extraEnvironmentVariables[4] match found: spec/values/extraEnvironmentVariables[4] (by 2 matches)
[main] DEBUG ru.vyarus.yaml.updater.update.UpdateResultValidator - Searching list item spec/values/extraEnvironmentVariables[4] in update file
[main] INFO ru.vyarus.yaml.updater.YamlUpdater - Merged file correctness validated
[main] INFO ru.vyarus.yaml.updater.YamlUpdater - Configuration not changed: /flux-sbx-apps/den3sbx/releases/pa-test/helmrelease-patching-automation.yaml

Configuration: /flux-sbx-apps/den3sbx/releases/pa-test/helmrelease-patching-automation.yaml (1743 bytes, 51 lines)

	Not changed

I am not sure why it is not updating the spec.values.image.tag ? Can you point me in the right direction?
Thanks in advance,
Tommy

The main idea of the tool was to make sure nothing would be changed for existing nodes, only add new nodes.
In your case, spec.values.image.tag node already exists in the yaml file and so there is nothing to do for updater.
Such cases, when nodes must be replaced, assumed be done with manual deletions: you specify path(s) to delete in the current file and updater would add them back with values from new file (looks like replace eventually, but from tool's point of view it's an addition).
java -jar yaml-config-updater-cli.jar config.yml update.yml -d spec.values.image.tag

Technically, it's not hard to introduce a new option like --override to override existing values, but not sure how often such case would be required (maybe, deletion workaround is enough).

Thanks! that was the missing piece. I thought the -d(elete) would happen after

There are experimental native binaries now attached to release. Maybe it would be easier to use.

authors: TJM xvik

repo: xvik/yaml-updater


text:
提示没有triton模块，并且ckpts缺少文件

操作系统：windows11 64位
步骤：按照官方文档步骤操作
问题描述：
在anaconda环境下执行 bash run_test.sh 脚本时报错：
(wonder3d) PS D:\工作文件夹\3D建模\program\Wonder3D> bash .\run_test.sh
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
{'pretrained_model_name_or_path': './ckpts', 'pretrained_unet_path': './ckpts/', 'revision': None, 'validation_dataset': {'root_dir': './example_images', 'num_views': 6, 'bg_color': 'white', 'img_wh': [256, 256], 'num_validation_samples': 1000, 'crop_size': 192, 'filepaths': ['owl.png']}, 'save_dir': 'outputs/', 'pred_type': 'joint', 'seed': 42, 'validation_batch_size': 1, 'dataloader_num_workers': 64, 'local_rank': -1, 'pipe_kwargs': {'camera_embedding_type': 'e_de_da_sincos', 'num_views': 6}, 'validation_guidance_scales': [3.0], 'pipe_validation_kwargs': {'eta': 1.0}, 'validation_grid_nrow': 6, 'unet_from_pretrained_kwargs': {'camera_embedding_type': 'e_de_da_sincos', 'projection_class_embeddings_input_dim': 10, 'num_views': 6, 'sample_size': 32, 'zero_init_conv_in': False, 'zero_init_camera_projection': False}, 'num_views': 6, 'camera_embedding_type': 'e_de_da_sincos', 'enable_xformers_memory_efficient_attention': True}
Traceback (most recent call last):
File "D:\工作文件夹\3D建模\program\Wonder3D\test_mvdiffusion_seq.py", line 335, in
main(cfg)
File "D:\工作文件夹\3D建模\program\Wonder3D\test_mvdiffusion_seq.py", line 251, in main
image_encoder = CLIPVisionModelWithProjection.from_pretrained(cfg.pretrained_model_name_or_path, subfolder="image_encoder", revision=cfg.revision)
File "D:\installed\anaconda3\envs\wonder3d\lib\site-packages\transformers\modeling_utils.py", line 3354, in from_pretrained
config, model_kwargs = cls.config_class.from_pretrained(
File "D:\installed\anaconda3\envs\wonder3d\lib\site-packages\transformers\models\clip\configuration_clip.py", line 246, in from_pretrained
config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "D:\installed\anaconda3\envs\wonder3d\lib\site-packages\transformers\configuration_utils.py", line 632, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "D:\installed\anaconda3\envs\wonder3d\lib\site-packages\transformers\configuration_utils.py", line 689, in _get_config_dict
resolved_config_file = cached_file(
File "D:\installed\anaconda3\envs\wonder3d\lib\site-packages\transformers\utils\hub.py", line 373, in cached_file
raise EnvironmentError(
OSError: ./ckpts does not appear to have a file named image_encoder\config.json. Checkout 'https://huggingface.co/./ckpts/tree/None' for available files.
Traceback (most recent call last):
File "D:\installed\anaconda3\envs\wonder3d\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\installed\anaconda3\envs\wonder3d\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "D:\installed\anaconda3\envs\wonder3d\Scripts\accelerate.exe_main.py", line 7, in
File "D:\installed\anaconda3\envs\wonder3d\lib\site-packages\accelerate\commands\accelerate_cli.py", line 48, in main
args.func(args)
File "D:\installed\anaconda3\envs\wonder3d\lib\site-packages\accelerate\commands\launch.py", line 1174, in launch_command
simple_launcher(args)
File "D:\installed\anaconda3\envs\wonder3d\lib\site-packages\accelerate\commands\launch.py", line 769, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['D:\installed\anaconda3\envs\wonder3d\python.exe', 'test_mvdiffusion_seq.py', '--config', 'configs/mvdiffusion-joint-ortho-6views.yaml']' returned non-zero exit status 1.
提示没有triton模块，以及后续提到ckpts中缺少文件，导致后续脚本无法正确执行。
请问是否要安装triton模块？ckpts在OneDrive中的文件是否缺少？

直接下载main(Linux)那个分支的checkpoint链接，但是要注意文件下载不全的问题


text:
datasource dev mode

hi ,  i just cloned your work to see what it can be done.
and trying to run springBoot ,  i had a problem with datasource that could not autowire.
can you give us the way i can fix this ?
thanks

Hi,
this project is still a work in progress and I'm surprised that anyone
would want to use it without even knowing what it does.
Anyways, IntelliJ (if you're using that, which you should) is convinced
that the DataSource is not an available bean, but it actually is. Run the
project using gradle bootRun. Also make sure you have copied
application.properties.example in the root folder to
application.properties and filled in your correct (My)SQL credentials.
-- Above message was sent from my mobile phone. There may and will be all
kinds of errors included.
On 15 Mar 2016 16:10, "islam drissi" notifications@github.com wrote:

hi , i just cloned your work to see what it can be done.
and trying to run springBoot , i had a problem with datasource that could
not autowire.
can you give us the way i can fix this ?
thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xxyy/tingo/issues/1

Is this still an issue? If not, please close this.

authors: xxyy zirconias

repo: xxyy/tingo


text:
zoomOnPinch not working when preventScrolling is false

Describe the Bug
once preventScrolling is set to false, zoomOnPinch doesnt work even when its set to true
Your Example Website or App
https://codesandbox.io/p/sandbox/reactflow-scroll-pinch-xy7kyn?file=%2FApp.js
Steps to Reproduce the Bug or Issue

Add preventScrolling={false} and zoomOnPinch={true} props together

Expected behavior
i expect page scroll is maintained with zoomOnPinch working
Screenshots or Videos
No response
Platform

OS: macOS
Browser: Chrome
Version: 123

Additional context
No response

Hey @PhoenixEmbers
I haven't thought about this, but I see your point.
preventScrolling removes all wheel listeners. A pinch is a wheel event, so those are not coming through anymore. I will check if we can solve it.

this is fixed in 11.11.1

authors: PhoenixEmbers moklick

repo: xyflow/xyflow


text:
Corruption on server crash

As the title says, chunks will not save properly if the server were to crash, and unlike with mca, where if the server crashes the furthest it can rollback is the last autosave (less than 5 mins), when using the .linear format event after waiting a long time, abruptly stopping the server leads to chunk save errors and rollbacks from much further back than 5 minutes. Also playerdata is unaffected, leading to some interesting scenarios where items are duped/lost.

What fork are you using?

What fork are you using?

I tried using leaves and then leaf, both supporting linear, but the problem persists with both

What filesystem are you using?

Oh, your problem is that rollbacks are further in the past! Filesystem doesn't matter.
I am working on Linear v2 that won't have as much of a problem with rollbacks. 👍
ETA about a week.


text:
Migrate to hatch

Following the current trend of migrating python projects to hatch.
Done with: hatch new --init

Not sure if the flake8's max-line-length = 100 was taken into account?

Not sure, seems to be passing now with https://github.com/y-crdt/ypy-websocket/pull/36/commits/8cdb7a7268253662ea15195ccda43e55b465abc0.

Yes, or maybe we don't have such lines anyway.

Thanks!

Nice! fyi flake8 doesn't support that yet https://github.com/PyCQA/flake8/issues/234

authors: davidbrochart jtpio ofek

repo: y-crdt/ypy-websocket


text:
🛑 Egyla AGJA Site is down

In 392a572, Egyla AGJA Site ($EGYLA_AGJA_SITE) was down:

HTTP code: 404
Response time: 191 ms

Resolved: Egyla AGJA Site is back up in dce68d3 after 1 hour, 56 minutes.


text:
CLTextTool Crash when delete all text..

Hey,
There is a bug on CLTextTool.

Added Text and write some text when I delete them all it crash.

There is the error log;
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString characterAtIndex:]: Range or index out of bounds' *** First throw call stack: ( 	0   CoreFoundation                      0x00007fff23c4f02e __exceptionPreprocess + 350 	1   libobjc.A.dylib                     0x00007fff50b97b20 objc_exception_throw + 48 	2   CoreFoundation                      0x00007fff23ce1a71 _CFThrowFormattedException + 194 	3   CoreFoundation                      0x00007fff23ce1aa9 -[__NSCFString characterAtIndex:].cold.1 + 41 	4   CoreFoundation                      0x00007fff23b827bf -[__NSCFString characterAtIndex:] + 95 	5   CLImageEditor                       0x000000010d670b77 -[CLTextSettingView textViewDidChange:] + 311 	6   UIKitCore                           0x00007fff47b8b8c1 -[UITextView textInputDidChange:] + 121 	7   UIKitCore                           0x00007fff47b63b31 -[UITextInputController _sendDelegateChangeNotificationsForText:selection:] + 104 	8   UIKitCore                           0x00007fff47b66414 -[UITextInputController _insertText:fromKeyboard:] + 765 	9   UIKitCore                           0x00007fff47b67b88 -[UITextInputController deleteBackward] + 194 	10  UIKitCore                           0x00007fff47b87947 -[UITextView deleteBackward] + 37 	11  UIKitCore                           0x00007fff47666985 -[UIKeyboardImpl deleteBackwardAndNotify:] + 330 	12  UIKitCore                           0x00007fff47660a90 -[UIKeyboardImpl _performKeyboardOutput:shouldCheckDelegate:] + 666 	13  UIKitCore                           0x00007fff4765f84d __55-[UIKeyboardImpl handleKeyboardInput:executionContext:]_block_invoke_2 + 372 	14  UIKitCore                           0x00007fff4768ee0d -[UIKeyboardTaskEntry execute:] + 147 	15  UIKitCore                           0x00007fff4768d923 -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 310 	16  Foundation                          0x00007fff25761c40 __NSThreadPerformPerform + 259 	17  CoreFoundation                      0x00007fff23bb2221 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 	18  CoreFoundation                      0x00007fff23bb214c __CFRunLoopDoSource0 + 76 	19  CoreFoundation                      0x00007fff23bb1924 __CFRunLoopDoSources0 + 180 	20  CoreFoundation                      0x00007fff23bac62f __CFRunLoopRun + 1263 	21  CoreFoundation                      0x00007fff23babe16 CFRunLoopRunSpecific + 438 	22  GraphicsServices                    0x00007fff38438bb0 GSEventRunModal + 65 	23  UIKitCore                           0x00007fff4784fb48 UIApplicationMain + 1621 	24  Photic                              0x000000010cc673eb main + 75 	25  libdyld.dylib                       0x00007fff51a1dc25 start + 1 	26  ???                                 0x0000000000000002 0x0 + 2 ) libc++abi.dylib: terminating with uncaught exception of type NSException

In CLTextSettingsView.m change the following method to something like:

(void)textViewDidChange:(UITextView*)textView
{
NSRange selection = textView.selectedRange;
if (selection.length == 0 && selection.location == 0) { // Fix for adding text and then deleting all text
[textView scrollRangeToVisible:textView.selectedRange];
  if([self.delegate respondsToSelector:@selector(textSettingView:didChangeText:)]){
      [self.delegate textSettingView:self didChangeText:NSLocalizedString(@"Text", nil)];
  }

}
else if(selection.location+selection.length == textView.text.length && [textView.text characterAtIndex:textView.text.length-1] == '\n') {
[textView layoutSubviews];
[textView scrollRectToVisible:CGRectMake(0, textView.contentSize.height - 1, 1, 1) animated:YES];
}
else {
[textView scrollRangeToVisible:textView.selectedRange];
}
if([self.delegate respondsToSelector:@selector(textSettingView:didChangeText:)]){
[self.delegate textSettingView:self didChangeText:textView.text];
}
}

In CLTextSettingsView.m change the following method to something like:
- (void)textViewDidChange:(UITextView*)textView
{
    NSRange selection = textView.selectedRange;

    if (selection.length == 0 && selection.location == 0) { // KKR 20191130 fix for adding text and then deleting all text
        [textView scrollRangeToVisible:textView.selectedRange];

        if([self.delegate respondsToSelector:@selector(textSettingView:didChangeText:)]){
            [self.delegate textSettingView:self didChangeText:NSLocalizedString(@"Text", nil)];
        }

        return;
    }
    else if(selection.location+selection.length == textView.text.length && [textView.text characterAtIndex:textView.text.length-1] == '\n') {
        [textView layoutSubviews];
        [textView scrollRectToVisible:CGRectMake(0, textView.contentSize.height - 1, 1, 1) animated:YES];
    }
    else {
        [textView scrollRangeToVisible:textView.selectedRange];
    }

    if([self.delegate respondsToSelector:@selector(textSettingView:didChangeText:)]){
        [self.delegate textSettingView:self didChangeText:textView.text];
    }
}

Thank you bro,
It’s working great now.

repo: yackle/CLImageEditor


text:
CORRECTNESS: Validate keys' order only if from/to keys are available (not null)

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

The change looks good to me.

authors: liran-funaro sanastas

repo: yahoo/Oak


text:
PR to give option to select build system

Following issue #18, this is the PR to give option to select build system.
Have a look at it.
Thanks.

CLA is valid!

Nice! We'll try this out and see if we can get it merged today.

Tried it locally. Works great, thanks!

authors: jagandecapri mridgway redonkulus yahoocla

repo: yahoo/generator-fluxible


text:
Update: Add table title

Instead of just a title, do we want a breadcrumb
My Data > Favorites
Publisher Reports > Collection 1 > Favorites

Instead of just a title, do we want a breadcrumb

Nah that would be way to busy, especially with navigation a few px to the right.

Updated screenshot

authors: balajimanoharan cythrawll

repo: yahoo/navi


text:
Make squidb use a prepopulated database

This is not really an issue. I want to provide a prepopulated database with my app and want squidb to use it. What would be the best way to achieve that? Anyway I can override the db creation part of squidb and provide a copying method instead?

There's no built-in hook in squidb for this, but it's still achievable. In your SquidDatabase subclass, let's say you've implemented getName() to return the value "mydatabase.db". What you would do is simply on first app startup copy the prepopulated database file to the path returned by context.getDatabasePath("mydatabase.db"). As long as you do this step before calling any SquidDatabase methods, squidb will see that the database file already exists and skip the database creation flow, simply opening the existing file.
There are a couple caveats to beware of with this approach. Under the hood, android adds a few hidden tables and columns to the database containing things like version info. If those tables and columns aren't present in the prepopulated database file, I don't know exactly how android would handle that -- it might not notice they're missing until much later, so things like the versioning and upgrade flows could break down. I would highly recommend creating your prepopulated database programatically, using a dummy android app implemented with squidb, so that you can be sure that this prepopulated master db was created with all the hidden tables and metadata that android would use when setting up a database.
The second caveat is that you would still have to write your squidb model specs to correspond exactly to the schema of your prepopulated database. If you use the above suggestion to make a prepopulated database using a dummy app you would presumably have already done this step as a part of that process, which is another reason I'd recommend that approach. Unfortunately squidb can't do this step for you; it would be kind of a cool feature if it could but it would involve writing what would probably need to be a pretty robust SQL parser, so it's not something that's on our radar right now.
Hope that helps!

Actually one other alternative -- if it's only a small amount of data that needs to be prepopulated (say, a few rows in a few tables), you could simply override the onTablesCreated() hook and write code there to insert the data you want to be prepopulated. This is a much simpler approach, it just doesn't scale as well if the db to be prepopulated is huge.

Thanks. I've already created the db programmatically and using squidb to access it right now, so I have those internally created tables. The fact is that I've filled up this db with a lot of data and I'll need to ship it with the db now. So what you said is achievable. I've copied the db out of the device and put it in the assets directory. I'll simply just copy it inside getName().
I understand why it's out of squidb's plan right now. But maybe you could provide a verbosely named variable, like PREPOPULATED_DB_PATH and just simply copy it internally just after calling getName() maybe. Well, I don't know if squidb should deal with this problem, as your actual task is to communicate with the db. But this would be a welcome addition. But yes, there are unknown variables at play, like you mentioned about the tables Android create in the db. So, this is just a suggestion.

Great, sounds like you're on the right track. Don't do the actual copying of the file in getName() though -- getName() may be called at times other than first db creation. I'd recommend doing the copying in Application.onCreate(), and then setting a boolean flag in the shared prefs or something so that it can only ever occur once.
Someday I'll dig into the android framework a bit more to figure out exactly what additional metadata created to see whether or not there are any feasible things we could do to make this easier, but for now, glad that this will work for you!

Oh, thanks for mentioning that.
Just wanted to mention this for reference, in my db, there is just one extra table called android_metadata that has just one column locale. Right now there is just one record - en_US.

Cool, thanks for that. This stackoverflow post jogged my memory that the database version is stored using the user_version pragma, so it would be elsewhere in the database file, rather than a table. That will also be helpful if we ever decide to implement hooks for this someday.

@sbosley another question, how would I go about creating a clean new db from inside the SquidDatabase subclass? I read somewhere that calling getReadableDatabase() creates a new db if it doesn't exist. But it doesn't seem to be available inside this class.

I found the getDatabase() function. Can I just do this?
            acquireNonExclusiveLock();
            try {
                getDatabase();
            } finally {
                releaseNonExclusiveLock();
            }

@iambibhas Calling getDatabase() should be all you have to do. Android's SQLiteOpenHelper handles creating a new database if the file with the proper name/path cannot be found. Just make sure that file does not exist if your copying fails.

@iambibhas Sorry, let me amend my previous comment: the first call to getDatabase() should handle creating a database if one does not exist yet, and getDatabase() is called in every method that reads from or writes to the database, so you shouldn't have to do anything special besides using your instance of SquidDatabase normally.

authors: iambibhas jdkoren sbosley

repo: yahoo/squidb


text:
feat(action): added Action support

Changes

added Action support

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (c749421) to head (ca0e894).

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #4   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         3    +1
  Lines           65       113   +48
=========================================
+ Hits            65       113   +48

Flag
Coverage Δ

Unit-Tests
100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: cnlangzi codecov-commenter

repo: yaitoo/async


text:
Error Message Attribute

Datatables Editor error messages are showing the field name itself.

In laravel we have option to override attribute display name as following in class UserRequest extends Request {
public function attributes()
{
	return [
		'name'                  => 'Name',
		'password'              => 'Password',
		'password_confirmation' => 'Retype Password',
		'email'                 => 'Email ID',
	];
}

How can I do this for datatables editor?

Operating System Ubuntu 16.06
PHP Version 7.1
Laravel Version 5.6
Laravel-DataTables Version Latest ("yajra/laravel-datatables": "^1.0",  "yajra/laravel-datatables-editor": "^1.1")

Do you want to change the error message or just the field attribute name? I recently added a custom message handler but not sure yet about the attributes name. I think this is not yet supported.

Thanks for your response, let me see if I can do a PR for this.

I created a PR #14 for this.

authors: karmendra yajra

repo: yajra/laravel-datatables-editor


text:
英文の間違いや表記ゆれを修正する

README.md の英文の間違いです。

It's good のあとのピリオドが抜けています。
if you using ではなく If you are using ではないでしょうか？
download installer ではなく download the installer ではないでしょうか？
write IP ではなく write the IP ではないでしょうか？

README.md の提案です。
make -j ではなく git clone https://github.com/yak9909/AnimalBytes && cd AnimalBytes && make の方が良いのではないでしょうか？
ファイル名に関する提案です。
auto_drop.cpp と PocketItem.cpp のように命名規則の混在を無くすべきではないでしょうか。
以下は、ファイル名がスネークケースで記載されているものです。
Sources/Cheats/ItemDrops/auto_drop.cpp
Sources/Cheats/ItemDrops/item_changer.cpp
Sources/Cheats/TextToCheats/command_funcs.cpp
Sources/Cheats/TextToCheats/find_items.cpp
Sources/Cheats/TextToCheats/text_to_item.cpp
Sources/Cheats/make_folder.cpp
Sources/hook_func.s
Sources/init_hooks.cpp

変数などの命名規則、並びに誤字に関する提案です。
こちらも同様に、表記ゆれが見受けられます。 どちらか一方に統一するべきだと思います。
Includes/ACNL/Address/Chat.h 5行目 BufferPointer
Includes/ACNL/Address/Chat.h 6行目 TextLengthPointer
Includes/ACNL/Address/Chat.h 7行目 IsSent
Includes/ACNL/Address/Data.h 5行目 ItemNameBase
Includes/ACNL/Player.h 10行目 static int WriteItem
Includes/ACNL/Player.h 27行目 static u32 ReadItem
Includes/Cheats/CodeContext.h 7行目 bool f_coordmod
Includes/Cheats/CodeContext.h 8行目 bool f_autodrop
Includes/Cheats/SpeedHack.h 8行目 void speedhackmenu
Includes/Cheats/SpeedHack.h 10行目 void gamespeed_boost
Includes/DevUtils/ViewerEx.h 11行目 static void gamefunc
Includes/DevUtils/ViewerEx.h 12行目 static void menufunc
Includes/Helpers/AutoRegion.h 21行目 const u32 Usa;
Includes/Helpers/AutoRegion.h 22行目 const u32 Eur;
Includes/Helpers/Converter.h 7行目 std::vector<int> hexnumbers_to_dec
Includes/Helpers/InstantMenu.h 70行目 static constexpr int tickmax
Includes/Helpers/Logger.h 21行目 Logger(std::string const& path)
Includes/Helpers/StringType.h 16行目 StringType get_strtype
Includes/Cheats.h 14行目 AutoDrop
Includes/Cheats.h 15行目 ItemChanger
Sources/ACNL/Game.cpp 11行目 ItemInfo const AllItems
Sources/ACNL/Chat.cpp 51行目 u32 lengthptr;
Sources/ACNL/Game.cpp 241行目 std::string isDead
Sources/Cheats/ItemDrops/auto_drop.cpp 19行目 auto& ctxdrop = ctx->c_autodrop;
Sources/Cheats/ItemDrops/auto_drop.cpp 37行目 ctx->c_dropcheats.drop
Sources/Cheats/ItemDrops/item_changer.cpp 13行目 constexpr int canChangeItemID
Sources/Cheats/ItemDrops/item_changer.cpp 25行目 // drawed
Sources/Cheats/ItemDrops/item_changer.cpp 31行目 ctx->c_dropcheats.item;
Sources/Cheats/Items/PocketItem.cpp 9行目 u32 itemid;
Sources/Cheats/SpeedHacks/SpeedHackMenu.cpp 10行目 std::vector<u32> Adresses;
Sources/Cheats/TextToCheats/find_items.cpp 14行目 static auto adjustStr
Sources/Cheats/TextToCheats/text_to_item.cpp 12行目 #define ctox
Sources/init_hooks.cpp 14行目 static constexpr u32 asmjump
Sources/init_hooks.cpp 18行目 static Mutex MemoryMutex;
Sources/init_hooks.cpp 19行目 static std::vector<MemInfo> MemRegions;
Sources/init_hooks.cpp 28行目 static std::vector<OSDMessage*> Notifications;
Sources/init_hooks.cpp 37行目 static bool c_Process_CheckAddress
Sources/init_hooks.cpp 43行目 const& memInfo
Sources/init_hooks.cpp 55行目 InitHooks
Sources/main.cpp 15行目 HIDE810 (Debuggings)

They'll be improved as needed in the future.
Please send a pull request if you care about them.


text:
Datensatz editieren: Abbrechen

Hatte gerade den Fall, dass ein Redakteur den Datensatz "speichern musste", um zurück in die Übersicht zu gelangen - wobei dann Daten überschrieben wurden. Der Link "Zurück zur Übersicht" war dem Redakteur einfach nicht aufgefallen, hat jedoch nach einem "Abbrechen"-Button gesucht.
So, wie Blöcke auch mit abbrechen verworfen werden können, sollte das für YForm-Datensätze auch gelten.

Heute nochmal nen Kunden gehabt. Workaround: Validierung, die niemals eintritt, zum Verhindern des Speicherns. Abbrechen wäre definitiv besser!

Hier noch ergänzend der Workaround mit einer Validierung

Weiterer Gedanke: Es wäre super, wenn es zusätzlich oben auch noch eine Möglichkeit gäbe, zurück zur Übersicht zu kommen.

readonly wird das Problem lösen.

authors: alexplusde alxndr-w


text:
Right click menu

I dont know if this is possible, but it would be nice to be able to right click a message and have an option to copy, forward etc.

oops did not see #6

repo: yakyak/yakyak


text:
702 Posting

Добрый вечер.
Планируется ли реализации 702.xsd схемы? Ее добавили не меняя версии пакета 1.35

Добрый день. Обновил XSD: https://www.nuget.org/packages/MdlpApiClient/1.4.1

authors: Phoedoth yallie

repo: yallie/MdlpClient


text:
Fix broken synths view

Dynamic width scaling for this page and all synths is broken. The right panel does not move with the screen size but is cropped.

@blokku-chan we need to handle the mint/settle... sidebar on different views to be viewed more dynamically

a note on page resizing, the content will get broken and this is normal as it is functionality related, once @ElmoArmy finalize on the sdk integration stuff on these pages it will be automatically fixed

@blokku-chan we want to check how to handle the mint/settle... sidebar on different views for it to potentially look more dynamic

a note on page resizing, the content will get broken and this is normal as it is functionality related, once @ElmoArmy finalize on the sdk integration stuff on these pages it will be automatically fixed

repo: yam-finance/synths-www


text:
Add user_config.json as an additional config file to check for

When updating the plugin, the config.json file is overwritten.  I then manually add my custom console key line and update a few more settings back into the file.  Not a huge amount of work to do of course, but it would be nice to have an alternative solution.
Maybe the plugin could look for another config file for user settings that would add additional settings or overwrite ones from the standard file.
Could we update Options.cpp to look for this file or is there a better way to do it that I missed?

We will most probably stop packaging config.json with newer releases.
If not with following release, next one for sure.
There are plans to change this as a whole. First-time startup ever will have GUI pop-up where user will have to set toggle key (cause this seems to popup as one of the most common issues it seems, on our Discord at least)
Also, users could change settings there and just reload game to apply them.
So, following next/nextnext release, as said, no config.json will be packaged, user settings will be kept.
I think we may close this @yamashi

We will most probably stop packaging config.json with newer releases.
If not with following release, next one for sure.
There are plans to change this as a whole. First-time startup ever will have GUI pop-up where user will have to set toggle key (cause this seems to popup as one of the most common issues it seems, on our Discord at least)
Also, users could change settings there and just reload game to apply them.
So, following next/nextnext release, as said, no config.json will be packaged, user settings will be kept.
I think we may close this @yamashi

That all sounds good. But maybe a new gui for the settings is quite far down the line. I'd rather see more deeper integration and "tweaks" developed first. So an extra JSON file to check on load is a quick fix for now and as you say would help solve feedback regarding the console key and other settings being overwritten.

That all sounds good. But maybe a new gui for the settings is quite far down the line. I'd rather see more deeper integration and "tweaks" developed first. So an extra JSON file to check on load is a quick fix for now and as you say would help solve feedback regarding the console key and other settings being overwritten.

It is not about overwritting key binds now what i meant. More like users dont know how to properly rebind or dont even know there may be an issue with key bind.
This will be in soon actually, should be today.

It is not about overwritting key binds now what i meant. More like users dont know how to properly rebind or dont even know there may be an issue with key bind.
This will be in soon actually, should be today.

I dont see any reason for extra file really, mainly when new UI is almost done.

I dont see any reason for extra file really, mainly when new UI is almost done.

Oh ok cool, if it's almost done then great. Thanks for your hard work. :)

Oh ok cool, if it's almost done then great. Thanks for your hard work. :)

@yamashi It would be good to hear your feedback on this idea.  Please could you respond with your analysis?

@yamashi It would be good to hear your feedback on this idea.  Please could you respond with your analysis?

#400 closes this... Dont know why you had to reopen it.
Already told you this is worked on.
Was not ready in time, we wanted to make minor release.
Will be in next major one.

#400 closes this... Dont know why you had to reopen it.
Already told you this is worked on.
Was not ready in time, we wanted to make minor release.
Will be in next major one.

repo: yamashi/CyberEngineTweaks


text:
Version requirement

What is the minimum version of the yamcs server required to use this plug in?
Thank you

The plugin has been tested on the versions > 5.2.0.

Thank you. We are running 4.10.9. I'm not sure if this will work for our instance, but will report back if I can get it working.

The stable version works on 4.10.9 for our instance. It might be nice to somehow put this in the documentation, but I don't know how we'd know the compatibility without testing all the older versions of Yamcs.

Closing as we have no plans to test against legacy versions of Yamcs. As a general rule, community support assumes that you use recent versions (Yamcs 5 has been out for a while already).

authors: Flilzkov fqqb keck-in-space

repo: yamcs/grafana-yamcs


text:
batch problem in training process

In the course of training, we encountered this problem
`/home/buaa/anaconda3/envs/vit/bin/python3.6 /snap/pycharm-community/302/plugins/python-ce/helpers/pydev/pydevd.py --multiprocess --qt-support=auto --client 127.0.0.1 --port 45947 --file /home/buaa/songyue/lawin-master/tools/train.py
Connected to pydev debugger (build 222.4345.23)
fatal: not a git repository (or any of the parent directories): .git
2022-10-21 17:23:32,633 - mmseg - INFO - Environment info:
sys.platform: linux
Python: 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:51:32) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
CUDA available: True
GPU 0,1: NVIDIA GeForce RTX 3090
CUDA_HOME: /usr/local/cuda
NVCC: Build cuda_11.3.r11.3/compiler.29920130_0
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.8.1+cu111
PyTorch compiling details: PyTorch built with:

GCC 7.3
C++ Version: 201402
Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v1.7.0 (Git Hash 7aed236906b1f7a05c0917e5257a1af05e9ff683)
OpenMP 201511 (a.k.a. OpenMP 4.5)
NNPACK is enabled
CPU capability usage: AVX2
CUDA Runtime 11.1
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86
CuDNN 8.0.5
Magma 2.5.2
Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.1, CUDNN_VERSION=8.0.5, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.8.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,
TorchVision: 0.9.1+cu111
OpenCV: 4.6.0
MMCV: 1.2.7
MMCV Compiler: GCC 7.5
MMCV CUDA Compiler: 11.3
MMSegmentation: 0.11.0+

INFO:mmseg:Environment info:
sys.platform: linux
Python: 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:51:32) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
CUDA available: True
GPU 0,1: NVIDIA GeForce RTX 3090
CUDA_HOME: /usr/local/cuda
NVCC: Build cuda_11.3.r11.3/compiler.29920130_0
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.8.1+cu111
PyTorch compiling details: PyTorch built with:

GCC 7.3
C++ Version: 201402
Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v1.7.0 (Git Hash 7aed236906b1f7a05c0917e5257a1af05e9ff683)
OpenMP 201511 (a.k.a. OpenMP 4.5)
NNPACK is enabled
CPU capability usage: AVX2
CUDA Runtime 11.1
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86
CuDNN 8.0.5
Magma 2.5.2
Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.1, CUDNN_VERSION=8.0.5, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.8.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,
TorchVision: 0.9.1+cu111
OpenCV: 4.6.0
MMCV: 1.2.7
MMCV Compiler: GCC 7.5
MMCV CUDA Compiler: 11.3
MMSegmentation: 0.11.0+

2022-10-21 17:23:32,633 - mmseg - INFO - Distributed training: True
INFO:mmseg:Distributed training: True
2022-10-21 17:23:33,165 - mmseg - INFO - Config:
norm_cfg = dict(type='SyncBN', requires_grad=True)
find_unused_parameters = True
................................................................................................................................................................................................................................................
2022-10-21 17:23:34,101 - mmseg - INFO - Loaded 4750 images
INFO:mmseg:Loaded 4750 images
fatal: not a git repository (or any of the parent directories): .git
2022-10-21 17:23:36,849 - mmseg - INFO - Loaded 1188 images
INFO:mmseg:Loaded 1188 images
2022-10-21 17:23:36,850 - mmseg - INFO - Start running, host: buaa@buaa-System-Product-Name, work_dir: /home/buaa/songyue/lawin-master/workdir
INFO:mmseg:Start running, host: buaa@buaa-System-Product-Name, work_dir: /home/buaa/songyue/lawin-master/workdir
2022-10-21 17:23:36,850 - mmseg - INFO - workflow: [('train', 1)], max: 160000 iters
INFO:mmseg:workflow: [('train', 1)], max: 160000 iters
Traceback (most recent call last):
File "/snap/pycharm-community/302/plugins/python-ce/helpers/pydev/pydevd.py", line 1496, in _exec
pydev_imports.execfile(file, globals, locals)  # execute the script
File "/snap/pycharm-community/302/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/buaa/songyue/lawin-master/tools/train.py", line 174, in
main()
File "/home/buaa/songyue/lawin-master/tools/train.py", line 170, in main
meta=meta)
File "/home/buaa/songyue/lawin-master/mmseg/apis/train.py", line 115, in train_segmentor
runner.run(data_loaders, cfg.workflow)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/mmcv/runner/iter_based_runner.py", line 131, in run
iter_runner(iter_loaders[i], **kwargs)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/mmcv/runner/iter_based_runner.py", line 60, in train
outputs = self.model.train_step(data_batch, self.optimizer, **kwargs)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/mmcv/parallel/distributed.py", line 46, in train_step
output = self.module.train_step(*inputs[0], **kwargs[0])
File "/home/buaa/songyue/lawin-master/mmseg/models/segmentors/base.py", line 152, in train_step
losses = self(**data_batch)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/mmcv/runner/fp16_utils.py", line 84, in new_func
return old_func(*args, **kwargs)
File "/home/buaa/songyue/lawin-master/mmseg/models/segmentors/base.py", line 122, in forward
return self.forward_train(img, img_metas, **kwargs)
File "/home/buaa/songyue/lawin-master/mmseg/models/segmentors/encoder_decoder.py", line 158, in forward_train
gt_semantic_seg)
File "/home/buaa/songyue/lawin-master/mmseg/models/segmentors/encoder_decoder.py", line 102, in _decode_head_forward_train
self.train_cfg)
File "/home/buaa/songyue/lawin-master/mmseg/models/decode_heads/decode_head.py", line 188, in forward_train
seg_logits = self.forward(inputs)
File "/home/buaa/songyue/lawin-master/mmseg/models/decode_heads/lawin_head.py", line 328, in forward
abc = self.image_pool(_c)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/torch/nn/modules/container.py", line 119, in forward
input = module(input)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/mmcv/cnn/bricks/conv_module.py", line 195, in forward
x = self.norm(x)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/torch/nn/modules/batchnorm.py", line 539, in forward
bn_training, exponential_average_factor, self.eps)
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/torch/nn/functional.py", line 2147, in batch_norm
_verify_batch_size(input.size())
File "/home/buaa/anaconda3/envs/vit/lib/python3.6/site-packages/torch/nn/functional.py", line 2114, in _verify_batch_size
raise ValueError("Expected more than 1 value per channel when training, got input size {}".format(size))
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 512, 1, 1])
python-BaseException
Backend TkAgg is interactive backend. Turning interactive mode on.`
We found that this should be the problem of batchsize being 1. But we don't know where to make the changes. We thought there was something wrong with the configuration that we weren't aware of. Can you give us some suggestions?
Looking forward to your reply！

Hi, I got the same problem, how did you solve it? 😁

authors: JavaZeroo onionysy

repo: yan-hao-tian/lawin


text:
groupBitmap vs length(bitmapToArray())

select      groupBitmap(toUInt32(uid)) dau from qmkg_abtest.fd_qmkg_abtest_kboss_user_locate where ftime = '2019-08-29'
41608324
select      length(bitmapToArray(nuid_bitmap)) as dau from  (     select          groupBitmapMergeState(uid_bitmap) as nuid_bitmap       from qmkg_abtest.fd_qmkg_abtest_kboss_user_locate_bitmap      where ftime = '2019-08-29' )
22393354
I don't  why. would someone tell me the reason?

CC @yuzhichang

@joebling, I have the following quesiton?

What's the relationship between fd_qmkg_abtest_kboss_user_locate and  fd_qmkg_abtest_kboss_user_locate_bitmap?
Is uid an UInt32 column?
Can you try following query?
select bitmapCardinality(groupBitmapMergeState(uid_bitmap)) as nuid_bitmap from qmkg_abtest.fd_qmkg_abtest_kboss_user_locate_bitmap where ftime = '2019-08-29'

@yuzhichang
That is how i create table and bitmap table:
CREATE TABLE qmkg_abtest.fd_qmkg_abtest_kboss_user_locate
(ftime Date COMMENT '',
env_type String COMMENT '',
key String,
platform Int64 COMMENT '',
account_source Int64 COMMENT '',
app_ver String COMMENT '',
app_ver_id String,
uid Int64,
str6 String,
statistics_type Int64,
data_source Int32,
module_id String COMMENT '',
group_id String COMMENT ''
) ENGINE = Distributed(athena,
qmkg_abtest,
fd_qmkg_abtest_kboss_user_locate_local,
rand())
;
CREATE MATERIALIZED VIEW qmkg_abtest.fd_qmkg_abtest_kboss_user_locate_bitmap
(ftime Date COMMENT 'yyyymmdd',
env_type String COMMENT '',
key String,
platform Int64 COMMENT '',
account_source Int64 COMMENT '',
app_ver String COMMENT '',
str6 String,
statistics_type Int64,
data_source Int32,
module_id String COMMENT '',
group_id String COMMENT '',
uid_bitmap AggregateFunction(groupBitmap,UInt64)
) ENGINE = AggregatingMergeTree()
PARTITION BY ftime
ORDER BY (ftime,env_type,key,platform,account_source,
app_ver, str6, statistics_type, data_source, module_id, group_id)
SETTINGS index_granularity = 8192 AS SELECT ftime,
env_type,
key,
platform,
account_source,
app_ver,
str6,
statistics_type,
data_source,
module_id,
group_id,
groupBitmapState(toUInt64(uid)) AS uid_bitmap
FROM qmkg_abtest.fd_qmkg_abtest_kboss_user_locate
GROUP BY
ftime,
env_type,
key,
platform,
account_source,
app_ver,
str6,
statistics_type,
data_source,
module_id,
group_id
;

Another question:
#1.
select
ftime,
bitmapCardinality(uid_bitmap) dau
from
(
select
ftime,
groupBitmapState(toUInt64(uid)) as uid_bitmap
from qmkg_abtest.fd_qmkg_abtest_kboss_user_locate
group by ftime
) t
2019-08-26	41767618
2019-08-27	42019433
2019-08-28	41781866
#2.
select
ftime,
groupBitmap(toUInt64(uid)) dau
from qmkg_abtest.fd_qmkg_abtest_kboss_user_locate
group by ftime
2019-08-26	41767618
2019-08-27	42019433
2019-08-28	41781866
#3.
select
ftime,
bitmapCardinality(uid_bitmap) as dau
from
(
select
ftime,
groupBitmapMergeState(uid_bitmap) as uid_bitmap
from qmkg_abtest.fd_qmkg_abtest_kboss_user_locate_bitmap
group by ftime
) t
2019-09-01	29888430
2019-09-04	6480312
#1 = #2 != #3
That is very strange.
From aboving, we know how table fd_qmkg_abtest_kboss_user_locate_bitmap formed.

Your usage of view of distributed table looks  bad. The idiomatic way is to setup a view for the local table on every node， then setup a distributed view for those local views. See this for reference.

Your usage of view of distributed table looks bad. The idiomatic way is to setup a view for the local table on every node， then setup a distributed view for those local views. See this for reference.

thank you, it works

authors: alexey-milovidov joebling yuzhichang

repo: yandex/ClickHouse


text:
Data discrepancy between MV and source table

I'v created folloving Material View
CREATE TABLE IF NOT EXISTS debug_impressions_date_pub (
    Date Date,
    Hour UInt8,
    PublisherID              UInt64,
    Impressions UInt64
)
ENGINE = SummingMergeTree
PARTITION BY Date
ORDER BY (Date, Hour, PublisherID);
CREATE MATERIALIZED VIEW IF NOT EXISTS debug_impressions_date_pub_view TO debug_impressions_date_pub
AS SELECT
    Date,
    Hour,
    PublisherID,
    Impressions as Impressions
FROM stats_rep;

Two queries: one from the original table, the second from MV should return the same result, but in MV the metrics are less for each hour, as if data loss is occurring
select
       Date,
       Hour,
       sum(Impressions)
from stats_rep where
                     PublisherID=845 and
Date=today() group by Hour, Date order by Hour desc;

select
       Date,
       Hour,
       sum(Impressions)
from debug_impressions_date_pub_view where
 PublisherID=845 and
 Date=today() group by Hour, Date order by Hour desc;

I noticed that if you leave only the Date and Time in the primary key, then the query results is the same, but adding any third key leads to discrepancies
If I insert historical data - there are also no discrepancies

version 19.4.0.49

it's unsolvable without reproducible example.
How do you insert the data?  Go / native ?


text:
🛑 Google is down

In dcdf687, Google (https://google.icloudnative.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Google is back up in 8e0db6f after 12 minutes.

repo: yangchuansheng/upptime


text:
Use different backbones

Hello,
I want to replace ResNet in TransPose-R with different backbones. How should I do it correctly? Should I import the backbone and replace the following code with the forward pass of the new backbone?
https://github.com/yangsenius/TransPose/blob/dab9007b6f61c9c8dce04d61669a04922bbcd148/lib/models/transpose_r.py#L403-L410
Thanks in advance!

Yes, you are right. You also need to ensure that the downsampling ratio of position embedding and upsampling layers coordinate with the backbone. position embedding, upsampling layers

Thanks for your reply!
Currently I am trying to apply a new backbone for TransPose-R. The new backbone adopts 32x downsampling ratio and outputs feature maps of size HxW=8x4 for 256x192 input. However, the position embedding of TransPose-R has an 8x downsampling ratio. Should I directly modify the positional embedding as
self.pe_h = h // 32
self.pe_w = w // 32

, or should I apply a 4x upsampling for the feature maps?
Btw position embedding, upsampling layers you mentioned above seem to refer to the same line of code.

The position embedding part is right. You should modify the config of deconvolution layers upsampling layers by changing the YAML: NUM_DECONV_LAYERS;NUM_DECONV_FILTERS;NUM_DECONV_KERNELS. 8x unsampling via 3 deconvolutioal layers are needed to recover the 1/32 input size to 1/4 size.

The position embedding part is right. You should modify the config of deconvolution layers upsampling layers by changing the YAML: NUM_DECONV_LAYERS;NUM_DECONV_FILTERS;NUM_DECONV_KERNELS. 8x unsampling via 3 deconvolutioal layers are needed to recover the 1/32 input size to 1/4 size.

Thanks for your suggestion.
Just to confirm, to apply my new backbone (which adopts 32x downsampling ratio) for TransPose-R, I need to

Adjust the dimension of positional embedding:

self.pe_h = h // 32
self.pe_w = w // 32

Modify the config of DECONV layers as

NUM_DECONV_LAYERS: 3
NUM_DECONV_FILTERS:
- 256
- 256
- 256
NUM_DECONV_KERNELS:
- 4
- 4
- 4

Replace the forward pass of ResNet backbone with my new backbone

If there's mistake, please correct me.

repo: yangsenius/TransPose


text:
Add profile page

Add profile page,
Must contain the following:

[x] Picture of person

[x] Name of person

[x] Function of person

[x] Bio

Added in #19


text:
function-component-definition breaks code

When I auto-fix function-component-definition, it decides that the below is a function component (it's not really) and that it should use arrow notation:
const RULES = [
	{
		serialize(el) {
			if (el.type !== 'tag') return
			const data = el.data.toJS ? el.data.toJS() : el.data
			const text = el.nodes[0].text

			return <Tag linked value={{...data, props: {label: text}}} />
		},
	},
]

It proceeds to auto-fix like this:
const RULES = [
	{
		serialize(el) => {
[...]

which is invalid. It should have changed it to serialize: el => { instead
Another option is that the rule ignores object function notation.

This seems like two issues - one is that the autofix is incorrect, and produces invalid syntax. The other is that since this is a lowercase method of an object literal, we shouldn't detect it as a component.

cc @stefan-wullems

I'll take a look

(to clarify; the invalid autofix is a much more urgent issue)

Great, thanks! Question: does it generally ignore lowercase identifiers now or is that a separate bug?

Yes, custom components must be PascalCased as far as I know.
If there's a case you think is a bug, please do file an issue :-)

authors: ljharb stefan-wullems wmertens

repo: yannickcr/eslint-plugin-react


text:
Проблема с Bot Features

Добрый день, падает сервер в связке ReHLDS, ReGameDLL, ReAPI, YaPB и Bot Features (by Vaqtincha). Возможно вы знаете решение проблемы падений Seg. fault, или есть ли в разработке ваш собственный плагин с тем же функционалом

Скиньте версии всех дополнений и плагина. У меня сервер не падает с этим плагином

repo: yapb/yapb


text:
OOP school library: set up associations

🐝 Create a class Classroom with the following:

@label instance variable, should be initialized in the constructor.
Setter and getter for @label

🐝Create the has-many/belongs-to relationship between Classroom and Student.

Create the has-many side (a classroom has many students).
Create the belongs-to side (a student belongs to a classroom).
When adding a student to a classroom it also sets the classroom for the student.
When setting the classroom for a student it also adds it to the classrooms' students.
@label instance variable initialized in the constructor.
Setter and getter for @label

🐝 Create a class Book with the following:

@title and @author instance variables initialized in the constructor.
Setters and getters for instance variables

🐝 Create a class Rental with the following:

@date instance variable, should be initialized in the constructor.
Setter and getter for @date .

🐝Create the many-to-many (also has-many-through) relationship between Person and Book using the intermediate class Rental.

Create the has-many side of Book and Rental (a book has many rentals).
Create the belongs-to side of Rental and Book (a rental belongs to a book).
Create the has-many side of Person and Rental (a person has many rentals).
Create the belongs-to side of Rental and Person (a rental belongs to a person).
Modify the constructor of Rental so Book and Person are set in it.

Thank you so much you made my day
@uwadonat

repo: yashodhicy/SchoolLibrary


text:
help!

Sorry, because i am not familiar with the chainer framework, i dont understand your code very well, this trick does EMA operation on network parameters, i find that you somelikes create three generators, and just only updata one generator (like gen), and other generators like (gen_ema and gen_ma) just (soft)copy and EMA the parameters. In the test phase, you just use  gen_ema or gen_ma to generate the fake image. Is that right? could you help me? thanks!

Hi @osakaka . Yes, you got it right. There are three generators. "gen" is the usual generator in GANs which takes feedback from the discriminator. While, "gen_ema" and "gen_ma" does not directly take feedback from the generator. They are updated by keeping a type of averaging of "gen". In the test phase, I use "gen_ema" and "gen_ma" to visualize and evaluate the model.

thanks, i will try it!

Hi @yasinyazici , does it mean that you do not actually train the other 2 generators with name "g_ema" and "g_ma", what you actually do is that you train the basic generator and update the parameters of the other 2 networks according to the trained parameters from the basic generator by using Adma optimizer? Could you please verify the statement shown above. Thank you.

Hi @Crane-YU . Yes, you update the generator as usual (with gradient optimizers), while g_ma  and g_emaare updated w.r.t. Eq.1 and Eq.2 (check the paper), respectively. So, we do not "train" g_ma  and g_ema with gradient optimizers (SGD, ADAM etc.), but with averaging techniques.

Thank you so much.

authors: Crane-YU SeeU1119 osakaka yasinyazici


text:
finish IO library

See here for full list of functions that should be implemented
https://github.com/yasl-lang/yasl-enhancements/blob/master/std-io.md

added in v0.8.4

repo: yasl-lang/yasl


text:
v5.2 carbon adds 削除

過去バージョンでは不要なセクションのため、削除しました🙏

ありがとうございます！マージします🙆♀


text:
Pseudo Label

I'm wondering how to assign labels for frames with CTC loss. It seems CTC Loss can be viewed as sequential SoftMax losses. But the key point is how to obtain the pseudo labels for frames via back propagation. Thanks in advance!

You can refer to this repo, which calculate the gradients of CTC via PyTorch autograd instead of the forward-backward algorithm.

Thanks again for your kind reply.


text:
The code has been got rid of the TS3ReadActorFactoryConfig

Changelog entry
...
Changelog category

Not for changelog (changelog entry is not required)

Additional information
...

Проверил dqrun на локальных файлах, выглядит рабочим. мержу

repo: ydb-platform/ydb


text:
全局引入ydui报错

[Vue warn]: Invalid key "require" in validation rules object for prop "items".
[Vue warn]: Invalid key "require" in validation rules object for prop "trailWidth".
[Vue warn]: Invalid key "defaut" in validation rules object for prop "fullpage".

你好 请问你解决了吗  我也出现了你的问题 全局引入报错

没有解决。尝试引入1.1.4版本的yd 还是报了这个错

@tanwenchao @221022 问题已修复。

怎么解决的?重新npm 安装么 @ydcss

@zhangbird 更新vue-ydui至1.1.6即可。

authors: 221022 tanwenchao ydcss zhangbird

repo: ydcss/vue-ydui


text:
yd-infinitescroll 的 $refs.xxx.$emit 中 '$emit' of undefined

问题描述
Uncaught (in promise) TypeError: Cannot read property '$emit' of undefined
使用yd-infinitescroll时出现上述问题
根据条件做一个搜索功能，下拉加载更多
book-list： 是一个自定义组件
页面初始状态下 books 是一个空数组
searchBooksHandler：是搜索事件
<yd-infinitescroll v-bind:callback="searchBooksHandler" ref="scrollBooks">          <book-list :books="books" @selectBookemit="selectBook"></book-list>                  喵，已经全部加载完毕  </yd-infinitescroll>
if (res.start === ERR_OK) {             _that.books = [..._that.books, ..._that._normalizeBook(res.books)]             console.log(_that.books)             if (res.total <= _that.count) {               /* 所有数据加载完毕 */               _that.$refs.scrollBooks.$emit('ydui.infinitescroll.loadedDone')               return             }             /* 单次请求数据完毕 */             _that.$refs.scrollBooks.$emit('ydui.infinitescroll.finishLoad')             _that.count += 20           }
console.log(_that.books) 出来是有值的
是不是在页面初始状态下 books 数组里面就必须有值才能使用yd-infinitescroll
还是其他原因？？？
请指教
产生环境

使用版本：
设备：（手机、平板移动设备）
演示地址：

提示错误信息

...

复现步骤

...

你好，我想问下，你是怎么使用yd-infinitescroll组件自定义布局的？？

你只要把组件包裹在yd-infinitescroll里面不就可以了吗？里面组件怎么布局都可以呀。
发送自 Windows 10 版邮件https://go.microsoft.com/fwlink/?LinkId=550986应用

发件人: xiaochegnzi0 notifications@github.com
发送时间: Friday, August 17, 2018 1:52:50 PM
收件人: ydcss/vue-ydui
抄送: 傅晶; Author
主题: Re: [ydcss/vue-ydui] yd-infinitescroll 的 $refs.xxx.$emit 中 '$emit' of undefined (#446)
你好，我想问下，你是怎么使用yd-infinitescroll组件自定义布局的？？
―
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/ydcss/vue-ydui/issues/446#issuecomment-413764919, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASYrSxVn3UYA5XJ0o8yuSjiIC2BwNcARks5uRloygaJpZM4RUGna.


text:
Add throttle type definition

Base on Issue 624

Please see https://github.com/yelouafi/redux-saga/issues/619, let's make it a little more strict

I've seen that issue and create a new commit.
Hope it will be better.

Looks good now 👍

Thanks for your help and patience!

authors: aikoven yenshih

repo: yelouafi/redux-saga


text:
Edge SCRIPT1028: Expected identifier, string or number

Describe the bug
The react project uses the 'authenticator' to generate code errors in the Edge browser;SCRIPT1028: Expected identifier, string or number
To Reproduce
Steps to reproduce the behavior:
1.Open the project introducing this otplib at Edge
2.Page white screen
3.error SCRIPT1028: Expected identifier, string or number
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Details (please provide any relevant information):

otplib version:
os:
browser:
node / yarn:
frameworks (if any):

Additional context
Add any other context about the problem here.

Acknowledged.
Are you able to tell if any script fail to load?

The reason why this is happening is because the transpiler (e.g. babel) isn't checking node_modules folder, and the code is  failing because of the spread operator.
node_modules/@otplib/core/index.js
 class OTP {
  constructor(defaultOptions = {}) {
    this._defaultOptions = Object.freeze({ ...defaultOptions // <--- here
    });
    this._options = Object.freeze({});
 }
So if you transpile the @otplib/core everything works fine.

authors: crazyLjuba liyihan940121 yeojz

repo: yeojz/otplib


text:
求助！Inference ERROR: object of type 'int' has no len()

求助！前几天用着好好的，今晚下载了最新的代码和各项文件，新装了下4090的机器，结果不能使用了，只要在blink mode里选了period，就会出现下面这个Extracted wav file (16khz) from /tmp/gradio/0d629616b6c2da040d8a0c066cd03885de3da994/2.wav to /tmp/gradio/0d629616b6c2da040d8a0c066cd03885de3da994/2_16k.wav.
Inference ERROR: object of type 'int' has no len()
Failed to generate

选none生成正常

同样的问题

是需要重新训练吗？

提了一个 MR 修复这个问题，附带加上了 Dockerfile.  你也可以手工修改一下代码来修复。
https://github.com/yerfor/GeneFacePlusPlus/pull/63

authors: Guanyuansheng davideuler hnsywangxin wangjingyuancuc

repo: yerfor/GeneFacePlusPlus


text:
docs: update to v0.12.2

Update docs to v0.12.2
Description
This PR updates the docs to the new version v0.12.2. Also it updates the operator and aligned version to v0.12.2

stalled


text:
How to use the pre-trained model?

I've downloaded the state dict and pytorch model. I'm wondering the effect on VOC.
What should i do next?
Put the downloaded dict and model into the project file？
Thanks.

I recommend you to use PyTorch model.
You should have something like
weights = "path/to/weights/retinanet.weights" retinanet = torch.load(weights)
where retinanet should be usable model

authors: handsomefengfeng zabulskyy

repo: yhenon/pytorch-retinanet


text:
ticketman initial boostrap problem post install

Using node 6.5, npm 3.10.3. windows 7 64 bit:
a) Downloaded the .25 code from Git Hub
b) cd in directory, npm install
c) attempting npm start, and received this error set
Failed to load c++ bson extension, using pure JS version
[express::main] pathToView:C:\pdykes\data\nodejs\node-ticket-manager-0.2.5\views
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
events.js:160
throw er; // Unhandled 'error' event
^
Error: failed to connect to [localhost:27017]
at . (C:\pdykes\data\nodejs\node-ticket-manager-0.2.5\node_modules\mongodb\lib\mongodb\connection\server.js:553:25)
at emitThree (events.js:116:13)
at emit (events.js:194:7)
at . (C:\pdykes\data\nodejs\node-ticket-manager-0.2.5\node_modules\mongodb\lib\mongodb\connection\connection_pool.js:14
at emitTwo (events.js:106:13)
at emit (events.js:191:7)
at Socket. (C:\pdykes\data\nodejs\node-ticket-manager-0.2.5\node_modules\mongodb\lib\mongodb\connection\connection.js:5
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1272:8)
Solution welcome...

Ok, tried alternative:

used node lib/server.js  (similar error)
checked mongodb, and it had seemed to failed, so restarted.
Appears to be boostrapped post restarting Mongodb, testing now.  (win x86 64bit)

repo: yi/node-ticket-manager


text:
[BUG] This event loop is already running

Describe the bug
get error 'This event loop is already running' when using async session and runing it with asyncio.run, but it works normally with version 0.5.10
To Reproduce
# Minimal reproducible code, if possible.
# target websites, and request parameters.

Expected behavior
A clear and concise description of what you expected to happen.
Versions

OS: Win11 & Ubantu
curl_cffi version: 0.6.0
pip freeze dump

Additional context

Which session are you using? async

Fixed in 0.6.1

authors: solo-xwz yifeikong


text:
MiddlewareFactoryInterface should be configured in web.php

Yiisoft\Middleware\Dispatcher\MiddlewareFactoryInterface belongs to the config web.php, but placed to common.php for overwrite configuration web.php from yiisoft/middleware-dispatcher in application.
Maybe has solution for place configuration to web.php ?

Yes, it should not be in common. Does it break if just moved to web?

Yes, it should not be in common. Does it break if just moved to web?

Yes, it should not be in common. Does it break if just moved to web?

Seems this is will be work, but we can't guarantee what config plugin merge web-configuration in right order.
For the config plugin configurations web.php from yiisoft/middleware-dispatcher and yiisoft/request-model are on the same level.

Yes, it should not be in common. Does it break if just moved to web?

Seems this is will be work, but we can't guarantee what config plugin merge web-configuration in right order.
For the config plugin configurations web.php from yiisoft/middleware-dispatcher and yiisoft/request-model are on the same level.

authors: samdark vjik

repo: yiisoft/request-model


text:
Fix code coverage upload command

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
no

Merged. Thanks!

repo: yiisoft/template


text:
Add full class name substitution in closures

Q
A

Is bugfix?
✔

New feature?
✔

Breaks BC?
❌

Depends on
#9

Now dumper will dump closures with usage asPhpString() method like the following:

Thank you!

authors: samdark xepozz

repo: yiisoft/var-dumper


text:
Caption for DetailView Widget

Missed caption for table rendered by DetaiView widget

Could you described your problem in detail?

The caption and captionOptions widget options isn`t presented in DetailView

caption for table

This does not make any sense: table does not have caption

Caption tag presented in HTML specification: http://www.w3schools.com/tags/tag_caption.asp
Also yii/grid/GridView has the caption and captionOptions in widget properties

Okay, then I should use 'foreach' instead of widget...

<?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            [
                'label' => 'My Caption Label',
                'value' => 'My Caption Value',
            ],
            'id',
            'name',
        ],
    ]) ?>

Yes, of course. But this is bad solution, because you must also specify colspan attribute at row to merge columns. CSS styles for columns and rows will affect on this caption made by tr and td tags. Caption is easer for styling.
Why caption is used in the GridView widget, but not used in DetailView?

authors: SilverFire gbespyatykh klimov-paul


text:
yii migration create mysql table length not working

What steps will reproduce the problem?
use yii migration create mysql table
···
'id' => $this->integer(length),
···
length not working
What is the expected result?
What do you get instead?
Additional info

Q
A

Yii version
2.0.37

PHP version
7.2.33

Operating system
macos10.15

DB version
mysql 8.0.21

What is length in this case?

@bizley
When does the issue occur?
class m200904_015218_init_operation_log_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
$tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ENGINE=InnoDB';
}
    $this->createTable('{{%test}}', [
        'id' => $this->integer(10),
    ], $tableOptions);
}

What do you see?
mysql fields length display as 0
What was the expected result?
mysql fields length display as 10

@bizley The problem is caused by mysql8.0.21

I see you are still waiting for reply here (don't close the issue then next time).
MySQL's integer column length was merely there to affect the way the column is being displayed, nothing else - column size was the same no matter what you have put there. In MySQL 8.0.19 this feature has been deprecated. See this SO answer.

authors: LukyHugh bizley


text:
static vs. $this in /** @return */ docblock tag

I got very confused about the meaning of /** @return static */ in the class reference. A long and confusing discussion ensued on the #yii channel. In the end we agreed that the docs are inconsistent and it is probably for the best to adopt the convention specified by phpDocumentor, specifically:

The PHPDoc Standard also describes several keywords that are not native to PHP but are found to be often used or are representations of situations that are convenient to describe.

static An object of the class where this value was consumed, if inherited it will represent the child class. (see late static binding in the PHP manual).
$this This exact object instance, usually used to denote a fluent interface.

[For those unfamiliar with these terms, late static binding is using the static keyword other than for declaring a static member. Fluent interfaces means chaining methods, e.g. $query->from()->limit()->where().]
It turns out that PhpStorm understands things this way too. You can try this for yourself. If you let PhpStorm automatically write the docblocks for the following two methods, this is the result
<?php

class Foo
{
    /**
     * @return $this
     */
    public function bar()
    {
        return $this;
    }

    /**
     * @return static
     */
    public function baz()
    {
        return new static();
    }
}

And, tbh, I just find it hard to get my head around the idea of $this being static.
I propose:

Yii 2.0 adopt the convention as specified on www.phpdoc.org and quoted above
Reiterate it in the style guide wiki
Consider adding to the front page of the (highly formal) Class Reference a section called "Document conventions" where various things like this can be explained to readers.
Update docblocks in the framework code to conform to this convention

At the time we've added it $this support among IDEs was inconsistent and incomplete. Need to check how it is now.

Better wording for the definition of static and $this keywords is in the draft PSR-5 "standard" right at the very end.

If I remember correctly, NetBeans wasn't supporting $this at all.

NetBeans give me gas.

I use vim. I am making a patch using grep mostly. I have a question. Should I change
 * @return static the model itself

to
* @return $this the model itself
or
* @return $this
The first one seem redundant this $this is the object itself

@samdark isn't this fixed already?

Yes. Thanks.

authors: Faryshta samdark tom--