text:
[desktop_drop] after updating to Flutter Channel stable, 3.22.0 flutter build works but the build using the Xcode project doesn't work anymore.

Steps to reproduce
after updating to Flutter Channel stable, 3.22.0 flutter build works but the build using the Xcode project doesn't work anymore.
the error is:
/Users/fractale/CommercialProjects/fcp_library_cleaner/macos/Flutter/GeneratedPluginRegistrant.swift:8:8 No such module 'desktop_drop'

The strange thing for me is that the command line build work without any issue so I'm not sure what is going on.
I deleted macos/Podfile.lock macos/Pods/ then run pod install and pop update and have the following text:
Analyzing dependencies
Downloading dependencies
Installing FlutterMacOS (1.0.0)
Installing desktop_drop (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig` in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig` in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

I have a few warning bug I'm not sure if they are relevant and desktop_drop 0.0.1 is installed but   desktop_drop: ^0.4.4  is normally used (but I imagine there a difference between pod version and flutter package?
I'm not sure how to solve this...
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.5 23F79 darwin-x64, locale en-GB)
    • Flutter version 3.22.0 on channel stable at /Users/fractale/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (7 days ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/fractale/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.89.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.88.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.5 23F79 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 124.0.6367.208

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Solution: Make sure that you open xcworkspace instead of xcodeproj. xcworkspace - contains information about pods.

repo: MixinNetwork/flutter-plugins


text:
🛑 Mailserver is down

In 1e3e8cf, Mailserver (https://outlook.office.com) was down:

HTTP code: 417
Response time: 186 ms

Resolved: Mailserver is back up in 402ad9e after 10 minutes.

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 Mailserver is down

In 04c5ca9, Mailserver (https://outlook.office.com) was down:

HTTP code: 417
Response time: 80 ms

Resolved: Mailserver is back up in 7bfe695 after 16 minutes.


text:
Exit process with code 1 if lint errors

I'm a newbie to webpack and loaders, so forgive me if my terminology is off or this is a question that has already been answered somewhere else.
I would like to use this loader in conjunction with Travis CI to produce passing/failing builds. So, if there are no lint errors, the build passes. Otherwise it should fail. I can get it to fail by adding the following plugin to my webpack config:
plugins: [
    function () {
      this.plugin('done', function (stats) {
        if (stats.compilation.errors && stats.compilation.errors.length) {
          console.log(stats.compilation.errors[0].error);
          process.exit(1);
        }
      });
    }
  ]

This works great, and the Travis build fails. The problem is that it fails after the first file it finds lint errors in. I'd like it to fail after it lints ALL of the files. So that leads me to 2 questions:

Is there a way to have this loader exit with a code of 1 after it lints all the files and displays the error messages?
Is there a way within a webpack plugin to capture all the errors from the linter, print them to the terminal, then exit with a code of 1?

webpack should exit 1 if eslint-loader returns some errors (so your eslint config should use 2 in rules conf, not 1 (warning) OR you should use emitErrors option of this loader). Also it should by default show all errors/warnings.
So 1. and 2. are kind of the default behavior...

That's what I originally thought. But, you can see with the screenshots below, that 1) I am displaying all the errors using 2 in the rules conf 2) Travis is saying the build was successful, even though there were errors in webpack. Note: I've tried using a custom npm test task which just runs webpack and I have also tried using just webpack directly in Travis.

The only way I can get it to exit with a code 1, is to set failOnError to true in the eslint config or to use the custom plugin mentioned above. But as you can see, it only displays the first file it comes across with errors:

Use --bail option of webpack. Also consider adding webpack.NoErrorsPlugin

The --bail option does the same thing as the last screen shot. Shows the error first file with errors, then exits. I'm looking to have it show ALL of the errors, then exit.
I'll have to look into the NoErrorsPlugin

Oh sorry. I see your issue is different. Not sure why this happens. I
usually get all errors at a time.
What I recommend, not to use loader as part of CI. Use just a normal lint
command. And do build after. Without any extras. This way CI error tracking
and reporting is usually way better.
We use loader for dev only. For prod/pre-commit there is just a normal
eslint CLI.

Yeah, I think I'm going to abandon Webpack with Travis CI and just use Grunt or something similar.

You definitely do not need grunt or something. NPM scripts are more then
enough. And keep doing build with webpack, why not? Just have different
configs for prod and dev (one config with options)

@bsbeeks do you rely only on "npm test" on Travis or did you added multiple scripts? Because I previously got this issue and I fixed it by using a shell script that does my npm test after another command "set -o errexit" (abort if any command fails).
I would mike to found what is the problem and fix this.

also @bsbeeks do you use eslint as preloader or as a loader ?

@MoOx what I'm currently using is the webpack command in a Travis script block. I tried eslint as a preloader and loader and didn't see much difference. It's currently set as a preloader.
I'll try set -o errexit and see if that helps.

I would recommand you only rely on one command (npm test) and put a bash script under that alias. It would avoid weird travis behavior on error codes.

@MoOx can you post the Travis, Webpack, and package.json settings you're using to get everything to work?

I cannot share my latest project (a bit complicated + private). I will try to make a demo somewhere asap.

So I can get webpack to bail on eslint errors. Unfortunately, I can only get this to show up and not the actual errors:
ModuleBuildError: Module build failed: Error: Module failed because of a eslint error.

--display-error-details didn't show the rest.

It looks like a fault with the bail option: https://github.com/webpack/webpack/issues/711

Thanks @pstoica. We've settled with using the small plugin I mentioned about for now. The plugin at least displays the first error.

For our project, I've modified the plugin to display all errors instead of just the first one:
plugins: [
    function () {
        this.plugin('done', function (stats) {
            if (stats.compilation.errors && stats.compilation.errors.length) {
                console.log('Found following error(s):');
                stats.compilation.errors.forEach(function(theError) {
                    console.log(theError.error);
                });
                process.exit(1);
            }
        });
    }
]

1.1.1 with failOnError and failOnWarning now print messages. That might help.

authors: DiscoNova MoOx bsbeeks nkbt pstoica

repo: MoOx/eslint-loader

license: mit

license_source: bigquery


text:
Create Frontend

User needs to access the landing page, that shows some of the motis svelte components
Acceptance Criteria

a svelte component from the motis project is visible on the landing page

Story Points

2 Points

Proposed completion in Iteration

2

Marked as completed in Iteration

Actual Time in hours

frontend template created

waiting for #5

@D3vZro, Dominik und ich checken nicht wie wir die components aus motis/ui app in unsere motis/visual-debugger app importieren können, ohne dass ein Fehler wegen $lib geworfen wird. Vielleicht kannst du mal probieren ob das bei dir auch ist.

switched to sveltekit

repo: MoViDe-Project/motis


text:
Definition Improvement of Trip Durations

Better definition of the "mean" and "safe" concepts
Replace "travel" durations (rider-oriented) by "trip" durations (vehicle/service-oriented)
Define when the trip durations start and end
Consistency and complementarity with wait time definitions in GOFS phase 1: Service Discoverability (Draft) (URL: https://docs.google.com/document/d/1UJ21xWRzbG7Z3Xl-cpoYGoTmhRQv73XbttDoZ8bhGD8/edit#heading=h.vu38uxohmfh3)

I think I agree these are necessary changes if we are explicitly defining wait times apart from vehicle travel time ("trip time") with GOFS. I'd be interested to hear others' thoughts. @tsherlockcraig?
A small typo in the changes: “Mean” represents the average time the rider travels in the vehicle...

Yep. lgtm (other than the small typo @westontrillium noted)

source: gharchive/pull-request

authors: timMillet tsherlockcraig westontrillium

repo: MobilityData/gtfs-flex


text:
请问如何在分类任务中使用efl loss

想在分类任务中使用efl loss，不清楚如何使用

Hi @baoxin1100, thanks for your question.
EFL is generated from the Focal Loss. It is a sigmoid-like loss, which could theoretically be directly applied to classification tasks in a sigmoid-like way. Hence feel free to adopt the EFL to your task.
But we do not conduct any experiments on the classification tasks. For better performance, here are some tips for you when applying the EFL to the classification tasks:

EFL is designed for the one-stage long-tailed object detection tasks with the extreme foreground-background imbalance problem and the foreground long-tailed problem, we can not guarantee its performance in other scenarios.
Be careful with the gradient-guided mechanism in EFL. Since the distribution of samples of classification tasks and one-stage object detection tasks may be different, the design of the gradient-guided mechanism in EFL could be not suitable for the classification tasks, which you may need to adjust.

Hi @baoxin1100, thanks for your question.
EFL is generated from the Focal Loss. It is a sigmoid-like loss, which could theoretically be directly applied to classification tasks in a sigmoid-like way. Hence feel free to adopt the EFL to your task. But we do not conduct any experiments on the classification tasks. For better performance, here are some tips for you when applying the EFL to the classification tasks:

EFL is designed for the one-stage long-tailed object detection tasks with the extreme foreground-background imbalance problem and the foreground long-tailed problem, we can not guarantee its performance in other scenarios.
Be careful with the gradient-guided mechanism in EFL. Since the distribution of samples of classification tasks and one-stage object detection tasks may be different, the design of the gradient-guided mechanism in EFL could be not suitable for the classification tasks, which you may need to adjust.

thanks for your answer！

想在分类任务中使用efl loss，不清楚如何使用

你好，我也想这么做，可以加个联系方式交流一下吗？qq:2730006372

想在分类任务中使用efl loss，不清楚如何使用

你实现了在分类任务中应用EFL吗？可以请教一下吗

想在分类任务中使用efl loss，不清楚如何使用

你实现了在分类任务中应用EFL吗？可以请教一下吗

@Dream-High 请问你把EFL用在分类中了吗？我也想请教一下【拒绝套娃，真心求问

authors: Dream-High Prot-debug baoxin1100 waveboo xc-chengdu

repo: ModelTC/EOD


text:
Question about experiment results

Hello, thank you for your excellent work. I'm sorry to bother you again.
The caption of Table 3 in your paper is about "LDM-8 on ImageNet 256x256", but I notice that the  result of PTQD method in Table 3 is almost the same with PTQD's result on model LDM-4. So I want to figure out which model you quantized, LDM-4 or LDM-8.
Thanks a lot!

Yes，it is LDM-4.

repo: ModelTC/TFMQ-DM


text:
Add Ionic navigation via gestures

Fixes #81
This adds support for gestures driven by @ionic/core. If there's a route to go to either back or forward, a respective gesture will trigger the navigation

Very cool!

authors: grgur michaeltintiuc

repo: ModusCreateOrg/beep


text:
Compilation on iOS fails

iOS is complaining about a the plugin because it doesn't find the implementation.

Thank you for filing this issue! :heart:
We no longer maintain this repository, but we continue to work on the most cutting-edge open source projects. You can find amazing solutions and ideas on the Modus Labs website.


text:
How to define page's header and footer?

How to define page's header and footer?

Someone already asked more or less the same question: https://github.com/Mogztter/asciidoctor-web-pdf/issues/312#issuecomment-691069186
And, as mentioned in my comment, if it's working fine, we should definitely document this feature.

Got it, thanks.

repo: Mogztter/asciidoctor-web-pdf


text:
Skill - StoneBody

If the user's CON is greater than the enemy's, add the difference to the user's attack.
(I had to add a defender's instance of the unit struct in PreBattleCalcSkills() since I needed the CONs. Hope you don't mind.)

there has been ConGetter hook func in status-getter

there has been ConGetter hook func in status-getter

From what I can see, it still requires the unit struct as a parameter, but only the attacker's unit struct is currently defined inside PreBattleSkillsCalc. Necessitating the inclusion of the below.

The ConGetter for reference

You need use ConGetter rather than UNIT_CON

authors: JesterWizard MokhaLeee


text:
TeraChem: Added environment variables. QCEngine can now drive terachem

Added test cases for the executor. Tests are skipped if TeraChem environment variable not found.

perhaps modify TeraChemExecutor's found and version fns to model psi4's, which were recently updated. that tests on $PATH rather than environment. Then add terachem to https://github.com/MolSSI/QCEngine/blob/master/qcengine/testing.py#L47-L72 so you can use @using_terachem above the pytest tests, rather than the skipif.

Remove the environment variable related stuff and TeraChem Executor can still work. Added the found and get_version functions as recommended by @loriab

authors: ffangliu loriab

repo: MolSSI/QCEngine


text:
MOMO-21 add loading screen

로딩 gif 이미지 임의로 사용하였습니다. 전달 후 교체 예정.
로딩 시간 또한 임의로 3초로 설정했습니다. 전달 받은 로딩 gif duration에 따라 수정 예정.
prettier 때문에 LoadingScreen.js 내 불필요한 수정 사항 있을 수 있습니다.

질문! @JDhyeok @corea2244
다들 js 파일 작성할 때 prettier 오류 안 뜨시는지요?
프로젝트 내 설정 때문인지, 제 로컬 vscode 설정 때문인지 확실하지 않아서 여쭤봅니다.
후자라면... 빠른 시일 내에 설정 바꿔 보도록 하겠습니다. 💦

Prettier 오류는 어떤 오류인가요? 공유해주시면 같이 찾아보겠습니다. :)

@onmay16 Prettier 오류는 어떤 오류인가요? 공유해주시면 같이 찾아보겠습니다. :)

포맷팅 관련 오류들인데 이런 식으로 아주 자잘한 부분까지 뜨더라구요.

물론 고치지 않아도 정상 작동하긴 하지만 실직적으로 작동에 지장을 주는 오류들을 확인해야 할 때 꽤 거슬리네요 🙃...

LGTM


text:
🛑 SAMAI AZURE-2 is down

In 648ea3d, SAMAI AZURE-2 (samai.consejodeestado.gov.co) was down:

HTTP code: 403
Response time: 265 ms

Resolved: SAMAI AZURE-2 is back up in 273f5fb.


text:
AppStore 언어 표시 영어로 나오는 현상

이슈 내용
AppStore 언어 표시 영어로 나오는 현상
재현 방법
아이폰으로 앱스토어 열어서 링크풀 검색하면 영어로 나옴
Expected behavior
노출되는 언어가 EN -> KO로 바뀌도록 해야한다.
Screenshots

테스트 환경

OS: iOS
Version 1.0.32

참고링크: https://jinsangjin.tistory.com/157


text:
MonitorControl stopped working

Hi :)
I was happily using the current version of MonitorControl on my hackintosh running 10.15.7 via OC.
Now it seems like it doesn't work anymore but I'm not sure since how long. When I press the brightness or volume keys nothing happens. The macOS toast notifications appear but nothing changes.
MonitorControl seems to still detect my monitor and the settings look like what they should be in the app.
I tried reinstalling. restarting the computer... I don't know how to troubleshoot this further
Can you help me out here please?
Thank a lot in advance for your help.
Best,
-a-

same issue here

authors: asheenlevrai kadiraydintp

repo: MonitorControl/MonitorControl


text:
Same commands

Proposal:
Proposal written by DerKex#3984
What is the title of your proposal?: Same commands
Is it a suggestion for the website or for the bot?: both
Explain your proposal more accurately (It's best to give as much information as possible, so that we can implement the proposal better): if you will disable a module you can make this with ?deactivatemodule. The Help of this command says that you can disable a module but the command is "deactivate" and at the website is also disable and enable and the command for activation is "activatemodule" My suggestion why it just with a word (either enable or activate and either disable or deactivate) auich if it has in principle the same meaning
Why we should add this feature?: More Professional and easier and less confusing
ReportID: 33
┆Attachments: https://prnt.sc/k8jrsz

➤ LenoxBot commented:
Approve:
Little change but helpful for everyone
KeinEmxl#3887

➤ LenoxBot commented:
Approve:
I agree with KeinEmxl.
JUV#4292

➤ LenoxBot commented:
Approve:
Not important, but I agree with KeinEmxl
Nickkel#6515


text:
Bug: Harvester

Hi, i have a bug, when setup a harverster.
WARNING: coremods are present:
llibrary (llibrary-core-1.0.11-1.12.2.jar)
MicdoodlePlugin (MicdoodleCore-1.12.2-4.0.2.239.jar)
iceandfire (iceandfire_1.12.2_1.8.2.jar)
TransformLoader (DynamicSurroundings-1.12.2-3.6.0.2.jar)
EnderCorePlugin (EnderCore-1.12.2-0.5.72-core.jar)
Contact their authors BEFORE contacting forge
// Don't be sad, have a hug! <3
Time: 5/5/20 2:30 AM
Description: Ticking block entity
java.lang.NullPointerException: Ticking block entity
at io.moonman.emergingtechnology.machines.harvester.HarvesterTileEntity.isIdle(HarvesterTileEntity.java:447)
at io.moonman.emergingtechnology.machines.harvester.HarvesterTileEntity.cycle(HarvesterTileEntity.java:201)
at io.moonman.emergingtechnology.machines.MachineTileBase.func_73660_a(MachineTileBase.java:38)
at net.minecraft.world.World.func_72939_s(World.java:1838)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Unknown Source)

Hi,
Thanks for the bug report!
Which version of Emerging Technology are you using? I believe this bug is from an older release, so updating to latest should resolve the issue.
Cheers

Hi,
Yap, i used to old version 1.3.9-beta.

Hi,
Unfortunately the bug is in that version. Please make a backup of your world and also as a precaution break and replace any harvester machines before updating 😁
Thanks!

repo: MoonManModding/EmergingTechnology


text:
🛑 Waddle Penguins Island - API is down

In e8dbc5f, Waddle Penguins Island - API (https://api.waddlepenguins.me/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Waddle Penguins Island - API is back up in 2842404 after 19 minutes.

repo: MoonlightStudiosInt/status


text:
🛑 Waddle Penguins Island - API is down

In 99df018, Waddle Penguins Island - API (https://api.waddlepenguins.me/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Waddle Penguins Island - API is back up in 171b141 after 37 minutes.


text:
jsonpointer needs to support versions .7 and up

Modern versions of jsonpointer do not have set_pointer() method.  When running through the tests, I'm getting the following error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "/home/tome/treadmill/tests/api/schema_test.py", line 318, in test_allocation
_ok(api.create, 'aaa/prod', _patch(good, '/environment', 'qa'))
File "/home/tome/treadmill/tests/api/schema_test.py", line 46, in _patch
return jsonpointer.set_pointer(obj, jsonptr, value, inplace=False)
AttributeError: 'module' object has no attribute 'set_pointer'
I cannot downgrade jsonpointer.  It looks like we need to support newer versions.  I found this bit of code that has a fix to update set_pointer() in some other project that is using this:
https://github.com/peritus/robotframework-httplibrary/commit/aa838096072be97ce5fd3744a989b7b59b4fb9ca

My mistake - v 1.10 of jsonpointer fixes the issue.  You must do a pip install jsonpointer --upgrade in order to fix this.
Updated #5 to reflect this - closing this issue

repo: Morgan-Stanley/treadmill


text:
improve vocabulary

improve vocabulary by choosing shorter words

抱歉，因为翻译字段有更新，所以需要麻烦拉取最新的版本。

authors: Moriafly zamprjkt

repo: Moriafly/SaltPlayerSource


text:
Redux in React components.

Hi Code Reviewer 👋
In this PR:

Make sure that there are no linter errors.
Make sure that I used the correct Gitflow.
Make sure that I documented my work in a professional way.
Follow Microverse's list of best practices for JavaScript.
⭐Wrap my <App> with the <Provider> component from react-redux .
⭐Pass configured store  into the <Provider>
⭐Create an initialState variable for  booksSlice .
⭐Display  books, received from the slice.
⭐Dispatch actions using useDispatch.
⭐ Add an event handler that adds a book to the books.
⭐Add an event handler that remove a book from the books.

Hi @skyv26 👋, Thanks a lot 💯  for your efforts in reviewing my code, I really appreciate it 😄 .

@MostafaShahat2021 Your most welcome.
Happy Coding 🚀


text:
[BUG] 普权弹幕渲染顺序问题

为了弹幕排版效果，加载弹幕时我们会对弹幕进行排序，以弹幕id为依据，先发送的排前面并且先渲染。这样可以保证一些以黑底/白底的弹幕可以正确渲染而不遮盖文字。但是重构播放器中似乎并没有严格按照先后顺序渲染弹幕？导致弹幕遮盖关系出错。如下图：

重构播放器

关闭重构播放器并启用新版弹幕（xml弹幕丢失严重）

原始播放器

展示用例：【初音ミク】夢と葉桜【PV】第48秒，但其他时间也有问题。
我目前调试不出问题出在哪里，想拜托 @wly5556 有时间的时候帮忙看一下🙏

终于发现原因了：弹幕引擎为了缓解渲染压力，会将已经显示结束的弹幕节点进行回收并在新渲染弹幕时重用，重用时默认不会重排节点在父节点中的顺序，所以后渲染的弹幕有可能子节点序号反而小于先渲染的弹幕，从而导致排版错误。
解决办法：对于包含换行符的弹幕，重用时也强制移动的父节点底部，这样就能正确排版了。

repo: MotooriKashin/bilibiliplayer


text:
✨  适配 Discord 适配器

在 #69 的基础上进一步适配并修改测试代码

@AzideCupric /rebase

@AzideCupric /rebase

Done.


text:
TypeError: eval() got an unexpected keyword argument 'net_avg'

Hi, I installed cellpose-napari plugin in naparim, when I tried to run segment, this happened. I don't think there's a way for me to change net_ave since I only have the true/false options in the GUI interface.
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
File /opt/homebrew/anaconda3/envs/napari/lib/python3.9/site-packages/superqt/utils/_qthreading.py:617, in create_worker.<locals>.reraise(e=TypeError("eval() got an unexpected keyword argument 'net_avg'"))
    616 def reraise(e):
--> 617     raise e
        e = TypeError("eval() got an unexpected keyword argument 'net_avg'")

File /opt/homebrew/anaconda3/envs/napari/lib/python3.9/site-packages/superqt/utils/_qthreading.py:178, in WorkerBase.run(self=<napari._qt.qthreading.FunctionWorker object>)
    176     warnings.filterwarnings("always")
    177     warnings.showwarning = lambda *w: self.warned.emit(w)
--> 178     result = self.work()
        self = <napari._qt.qthreading.FunctionWorker object at 0x16ba32af0>
    179 if isinstance(result, Exception):
    180     if isinstance(result, RuntimeError):
    181         # The Worker object has likely been deleted.
    182         # A deleted wrapped C/C++ object may result in a runtime
    183         # error that will cause segfault if we try to do much other
    184         # than simply notify the user.

File /opt/homebrew/anaconda3/envs/napari/lib/python3.9/site-packages/superqt/utils/_qthreading.py:357, in FunctionWorker.work(self=<napari._qt.qthreading.FunctionWorker object>)
    356 def work(self) -> _R:
--> 357     return self._func(*self._args, **self._kwargs)
        self._func = <function widget_wrapper.<locals>.run_cellpose at 0x291a02d30>
        self = <napari._qt.qthreading.FunctionWorker object at 0x16ba32af0>
        self._args = ()
        self._kwargs = {'image': <class 'numpy.ndarray'> (934, 934) uint16, 'model_type': 'cyto', 'custom_model': '/Users/jeffrey.liang', 'channels': [1, 0], 'channel_axis': None, 'diameter': 5.64, 'net_avg': False, 'resample': False, 'cellprob_threshold': 1.747126, 'model_match_threshold': 25.0, 'do_3D': False, 'stitch_threshold': 0.0}

File /opt/homebrew/anaconda3/envs/napari/lib/python3.9/site-packages/torch/utils/_contextlib.py:115, in context_decorator.<locals>.decorate_context(*args=(), **kwargs={'cellprob_threshold': 1.747126, 'channel_axis': None, 'channels': [1, 0], 'custom_model': '/Users/jeffrey.liang', 'diameter': 5.64, 'do_3D': False, 'image': <class 'numpy.ndarray'> (934, 934) uint16, 'model_match_threshold': 25.0, 'model_type': 'cyto', 'net_avg': False, ...})
    112 @functools.wraps(func)
    113 def decorate_context(*args, **kwargs):
    114     with ctx_factory():
--> 115         return func(*args, **kwargs)
        func = <function widget_wrapper.<locals>.run_cellpose at 0x1687939d0>
        args = ()
        kwargs = {'image': <class 'numpy.ndarray'> (934, 934) uint16, 'model_type': 'cyto', 'custom_model': '/Users/jeffrey.liang', 'channels': [1, 0], 'channel_axis': None, 'diameter': 5.64, 'net_avg': False, 'resample': False, 'cellprob_threshold': 1.747126, 'model_match_threshold': 25.0, 'do_3D': False, 'stitch_threshold': 0.0}

File /opt/homebrew/anaconda3/envs/napari/lib/python3.9/site-packages/cellpose_napari/_dock_widget.py:73, in widget_wrapper.<locals>.run_cellpose(image=<class 'numpy.ndarray'> (934, 934) uint16, model_type='cyto', custom_model='/Users/jeffrey.liang', channels=[1, 0], channel_axis=None, diameter=5.64, net_avg=False, resample=False, cellprob_threshold=1.747126, model_match_threshold=25.0, do_3D=False, stitch_threshold=0.0)
     71 else:
     72     CP = models.CellposeModel(model_type=model_type, gpu=True)
---> 73 masks, flows_orig, _ = CP.eval(image,
        CP = <cellpose.models.CellposeModel object at 0x2bcf3c250>
        image = <class 'numpy.ndarray'> (934, 934) uint16
        channels = [1, 0]
        channel_axis = None
        diameter = 5.64
        net_avg = False
        resample = False
        cellprob_threshold = 1.747126
        flow_threshold = 0.6
        do_3D = False
        stitch_threshold = 0.0
     74                             channels=channels,
     75                             channel_axis=channel_axis,
     76                             diameter=diameter,
     77                             net_avg=net_avg,
     78                             resample=resample,
     79                             cellprob_threshold=cellprob_threshold,
     80                             flow_threshold=flow_threshold,
     81                             do_3D=do_3D,
     82                             stitch_threshold=stitch_threshold)
     83 del CP
     84 if not do_3D and stitch_threshold==0 and masks.ndim > 2:

TypeError: eval() got an unexpected keyword argument 'net_avg'

I had the same issue, which I was able to solve by making a new environment using cellpose v2.3.2 instead of v3.0.7, which I had been using. Hope this helps!

I can confirm both the error and the workaround -- looks like the plugin needs to be updated for the latest cellpose release

Hi @psobolewskiPhD ,
do you know who is maintaining the plugin? I sent a PR (#51 ) to fix the problem but it looks like nobody is taking a look :/
Best, Johannes

Sorry I don't -- for a bit Talley was merging some PR...
Maybe we try ping to @carsen-stringer and see what the plan is for this repo.

@psobolewskiPhD I already tried that above and didn't get a reply. Maybe @tlambert03 knows who else has maintainer access to this repository and may be inclined to merge fixes?

Yes, I had to downgrade CellPose via
pip install cellpose==2.2.3.
I don't recall what the old default was?
model.eval(gray, diameter=average_diameter_pixs, channels=channels, net_avg=False, augment=True)

sorry for the delay this is fixed now

authors: LeungKamdayjat carsen-stringer jo-mueller keesh0 kelk16 psobolewskiPhD

repo: MouseLand/cellpose-napari


text:
Number of Epochs to run training is not propagated

Hi,
When trying to retrain a cellpose model I realised that even if the number of epochs to train is increased, the default (500 epochs) is used. The n_epochs argument in __main__.py is apparently not used. Adding n_epochs=args.n_epochs  to model.train(line 231/232) solved the issue for me.

thanks, arg fixed now!

authors: adrtsc carsen-stringer

repo: MouseLand/cellpose


text:
Added wildcard support to groovyw  get

Description
This PR adds wildcard support to the groovyw <item> get <object> e.g. groovyw <item> get *.
Testing
Testing this PR could take some considerable time and effort to check all of the use-cases are correct, so these changes should only apply if wildcards (* or ?) are detected in the input argument (see Line 61 of util.groovy). As such, I will list the series of tests that I have tried so far:
Single argument tests:

[X] Command: groovyw module get *

Expected result: All the available modules under the @DestinationSol organisation should be obtained.

[X] Command: groovyw module get d??p*

Expected result: This should obtain the deepspace module.

[X] Command: groovyw module get s??????

Expected result: This should obtain the salvage module.

[X] Command: groovyw module get f?rm?c

Expected result: This should obtain the formic module.

[X] Command: groovyw module get t*

Expected result: This should obtain the tribe module.

[X] Command: groovyw module get *de*

Expected result: This should obtain both the deepspace and the federal modules.

Multiple argument tests:

[X] Command: groovyw module get *de* fo*

Expected result: This should obtain both the deepspace, federal modules, as well as the deepspace and the formic module.

[X] Command: groovyw module get f* d???*

Expected result: This should obtain the deepspace, draconic, federal and formic modules.

Testing regex characters:

[X] Command groovyw module get .

Expected result: This should attempt to obtain the "." module, which does not exist.

[X] Command groovyw module get (

Expected result: This should attempt to obtain the "(" module, which does not exist.

[X] Command groovyw module get )

Expected result: This should attempt to obtain the ")" module, which does not exist.

[X] Command groovyw module get []

Expected result: This should attempt to obtain the "[]" module, which does not exist.

[X] Command groovyw module get *

Expected result: This character is specially handled, so all the available modules under the @DestinationSol organisation should be obtained.

Testing multiple wildcards in succession:

[X] Command groovyw module get ??????

Expected result: This should attempt to obtain the formic, slimey and vulcan modules.

[X] Command groovyw module get ******

Expected result: All the available modules under the @DestinationSol organisation should be obtained.

Outstanding Work

[X] Such a large change needs significant testing. This change needs to be tested extensively to be proven useable, although I think that it should work most of the time. I still need to finish doing this, as I have not fully tested it yet.

Further tests to perform:

[X] Test that the regex characters ([, ], (, ), *, ., \) are not injected into the code as regexes
[X] Test if multiple wildcard selectors can be used to obtain completely different modules, e.g. using the command groovyw module get *de* fo*, which should obtain both the deepspace, federal modules, as well as the deepspace and the formic module.

Notes
This should not break any existing functionality, as the new wildcard handling code is only used when the * or ? symbols are found.
The wildcard strings will have to be escaped using single quotes (e.g. ./groovyw module get '*' rather than ./groovyw module get *) on POSIX platforms (Linux and MacOS), as otherwise the terminal appears to automatically expand them (replacing the arguments with the names all the files in the current directory matching that descriptor) before passing them to the program. I have modified the Windows script to automatically escape the arguments, although I am not sure if it is possible with POSIX platforms to do so.

Can one of the admins please verify this patch?

Hey, looks nice frome here--haven't tested, just glanced at the code. Can your rebase onto develop for me? There were some groovy-related module fetching PRs merged between when you started this branch and now. I tried locally, there shouldn't be any rebase conflicts.

The commits should now be rebased onto develop.

So I've tested this extensively and all the features work as intended but there is one small problem:
The ? wildcard only functions when it is enclosed between two non-wildcard characters
For example:
groovyw module get ? does the same thing as groovyw module get *
groovyw module get s?????? downloads the salvage module but so does groovyw module get s?
*n and ?n both correspond to modules ending with n
ca???on is working as intended and retrieves caution and c?n does not retrieve anything which is good.
Please fix this issue. Everything else is working as intended. Nice Work!

The issue should be fixed now. Thank you for testing this. I believe, after further testing myself, that this change, the wildcards should work now in most user-supplied cases.

Hey!
So the issue with the ? wildcard is now fixed but there is another weird thing.
I don't know if this is really important though but still:
groovyw module get ?????? tries to get the modules with the file names in the local directory having 6 characters (eg config, engine, gradle) instead of getting modules having names with 6 characters
Please try if you can fix this issue
Thanks for the great work!

Hey, @arpitkamboj , I'm afraid the issue you are describing arises from sh itself, as it replaces the ?s on terminal with the matching local files itself, and does not even pass the ?s to the script. For fixing this, you must simply surround the ?s with "

This issue should be fixed on Windows, for the arguments are preserved as-is and I just needed to escape them before passing them as arguments to the java executable. I was doing the same for the "*" character anyway. I can't do anything about the sh script though, as the parameter expansion seems to happen before the arguments are passed to the script.
Thanks for the advice @Adrijaned. I have added a note about this to my original message and added test-cases there so that I am not caught out by that issue again.

@GooeyHub : add to whitelist

Hooray Jenkins reported success with all tests good!

Bump - I've reviewed this on the Terasology side and wanted to refer to the comments from here since they likely relate on both sides. Somewhat concerned about the OS complexities introduced by the wildcarding on command line. https://github.com/MovingBlocks/Terasology/pull/3531
Otherwise agreed this is very good work, especially the thorough testing, so thank you so much for that :-)

Hooray Jenkins reported success with all tests good!

Hooray Jenkins reported success with all tests good!

Update: I have added to this for Terasology and tested it out fairly thoroughly. We should be able to merge this here then override with the related files from there, double check / lightly test, then merge.
Was aiming to do that now but I hit #414 on my main test system while out of town. Should be easy to do later or for somebody else. See https://github.com/MovingBlocks/Terasology/pull/3531 for details along with #3679 which I also merged and https://github.com/MovingBlocks/Terasology/commit/dbc32f0da97e46c447ae2293a00e5babaf92c85b which I added on top.

authors: Adrijaned BenjaminAmos Cervator GooeyHub Steampunkery arpitkamboj vampcat

repo: MovingBlocks/DestinationSol


text:
Cleanup for tree assets

renaming: "birk" -> "birch"
introduced "trunk" block tiles for pine and birch tree (for top and bottom of logs)
updated the block definitions with displayname and used tiles

Due to the renaming every module explicitly referencing the birch trunk needs to be updated - that are probably only TtA (@MarcinSc) and @Josharias Survival... any other world generators or crafting systems I'm forgetting?

Core module has a few references to Birk still.
Josharias survival has a non-breaking reference to Birk that can be changed afterwards.
TtA  has its own Birch block and doesnt need modifications.

This is where gestalt-assets-core#7 would come in useful (asset redirects), but that lies in the future.

Birk birk birk - merged and remaining hits renamed, including ManualLabor

authors: Cervator Josharias immortius skaldarnar

repo: MovingBlocks/Terasology


text:
Minimize jar file size

Not sure how much of an issue that really is, but I wanted to hear your opinions.
Currently, the new JavaFX-based zip has 6,6 megs in total.

Launcher: 700 kB
Logging-API - slf4j: 25 kB
Logging-Impl - logback: 700 kB
CrashReporter: 36 kB
JNA: 2400 kB
JavaFX Runtime: 4100 kB (not shipped in Webstart)

Biggest/easiest savings are probably

JNA - 2400 kB - we use it just to find the GameDataDirectory. There must be an easier way to locate TS.
Logback - 700 kB - there are probably smaller implementations. sl4j-simple has only 14 kB but doesn't support output to file. Maybe tinyLog?

We're going pretty much in the opposite direction with bundling the JRE, so I think this no longer an issue. Closing.

authors: msteiger skaldarnar

repo: MovingBlocks/TerasologyLauncher


text:
Cancel call functionality?

Hi, when I click start call using this function
await RNTwilioPhone.startCall('+00123456789');
it takes some time to fetch the token, initialize the call a start riniging. Is there a possibility to cancel the call before it even started ringing?
Thanks

Hi,
Once TwilioPhone.startCall is fired, call is started and you cannot cancel it before CallRinging event is dispatched.
You can only cancel right after the fetchToken. You will have to make your own copy of RNTwilioPhone.ts and override the startCall method.

For everyone with this issue I recommend to do next:
setState in constructor: callStartedRinging: TRUE
if user clicks hangUp function and call is not established, put callStartedRinging state to TRUE
and then check inside twilioPhoneEmitter event CallRinging or CallConnected if callStartedRinging state is TRUE and just disconnect call with TwilioPhone.disconnectCall(callSid)
`
constructor(props) {
super(props);
this.state = {
callStartedRinging: false,
callSid: null,
established: false
}
}
let self = this;
twilioPhoneEmitter.addListener('CallConnected', (data) => {
if(self.state.callRingingClose) {
TwilioPhone.disconnectCall(data.callSid);
TwilioPhone.endCall(data.callSid);
} else {
self.setState({established: true, callSid: data.callSid});
}
});
twilioPhoneEmitter.addListener('CallRinging', (data) => {
if(self.state.callRingingClose) {
TwilioPhone.disconnectCall(data.callSid);
TwilioPhone.endCall(data.callSid);
}
});
`

authors: MrHertal josaric

repo: MrHertal/react-native-twilio-phone


text:
Update README.md

Some changes about the doc

Update to README file


text:
無事件時顯示風和日麗

如題


text:
Add Layer closes interface instead.

https://user-images.githubusercontent.com/36895037/232558205-e8b12a00-3dd5-4ef9-af1d-cab5231f0230.mp4
I am trying to add a layer... but the interface just closes instead.
Almost all other modules deactivated (Module Compatibility Checker and Module Management +)

Ah! So that button shouldn't be a button, please use the options next to it, and I'll get that fixed for the next release

Fixed in v4.02

Glad to help!  Thanks for your work.  I shudder to think about game-prep
without Tokenizer on my list of tools!  =)
 - Alan

On Mon, Apr 17, 2023 at 1:27 PM Jack Holloway @.***>
wrote:

Fixed in v4.02
—
Reply to this email directly, view it on GitHub
https://github.com/MrPrimate/tokenizer/issues/126#issuecomment-1511784351,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIZPSPNMZVNUEIZUQYN6WADXBV4QVANCNFSM6AAAAAAXBO6AIA
.
You are receiving this because you authored the thread.Message ID:
@.***>

authors: AlanDNelson MrPrimate

repo: MrPrimate/tokenizer


text:
Flux Inverter incompatability

The recent issue #8 brought this up and the guy went to me with the crash report after some inspection of the area I noticed that the error is not my fault here is the method in question.
@Override
public boolean hasCapability(Capability<?> capability, EnumFacing facing) {
if(capability.equals(CapabilityEnergy.ENERGY)){
if(facing.equals(EnumFacing.UP)){
return true;
}
}
}
The line that errors is  if(facing.equals(EnumFacing.UP)){
which means you are giving a null into the method instead of an EnumFacing which is not correct.
I can stop it crashing on my end by flipping the values around but you shouldn't be giving that method a null direction.

You are wrong.
enumfacing can be null.
boolean hasCapability(@Nonnull Capability<?> capability, @Nullable EnumFacing facing);
read the javadocs for ICapabilityProvider

Fair enough, sorry about that I probably should have checked but it did seem like an odd thing to end up with.

repo: MrRiegel/LimeLib


text:
Need help! How can I calculate the height?

In the last version I use:
const strArr = this.doc.splitTextToSize(data.dunningCustomers[i].text, 170);  const dim = this.doc.getTextDimensions(strArr);  const heigth = Math.ceil(dim.h);
How can I calculate in the current version how high this array is printed?
Thanks Ingo

In theory, calling getTextDimensions should be enough.
this.doc.getTextDimensions(data.dunningCustomers[i].text, { maxWidth: 170 });
const height = Math.ceil(dim.h);

Hi,
If I enter it like that, I get the following error message when I call ng serve.
ERROR in src/app/invoice/services/invoice-print.service.ts:117:46 - error TS2339: Property 'h' does not exist on type '{ x: number; y: number; }'.
117                 const heigth = Math.ceil(dim.h) - 8;

Ah, looks like getTextDimensions has the wrong type in the typings file. As a workaround, you can @ts-ignore the line.

authors: HackbrettXXX IngoManthey

repo: MrRio/jsPDF


text:
Detect "real" memory usage on mac

Detect "Real" memory usage on a mac, acts more like activity monitor.
Honestly the code needs cleaning but I have not seen anyone else attempt this, This is what I have been using for a bit.

Issue:
After computer goes to sleep it saves memory contents to SSD, This cache is read when querying memory so after waking your computer memory might display as double what it actually is. This can be fixed with a reboot, but currently I am looking for a way to fix this.

Is this being considered?
I really like vtop and its current way of showing memory usage on macOS is a bit misleading.

I'd love for it to be, I dont know why it hasn't been considered honestly

authors: FelipeRosa Puffycheeses

repo: MrRio/vtop


text:
rpgitem-reloaded已重新进入维护状态

rpgitem目前由我维护更新，考虑到兼容性问题和你的改动大小，如果两边仍然保持各维护各版本的状态，可能导致之后用户在差异版本之间选择/迁移困难
如果您有兴趣，可以加入rpgitem的维护并将功能修改合并至原项目（这些机制实际上也很有趣，有很大的开发潜力），以维持插件的兼容性
顺便一提，我最近在物品组件方面遇到了一些困难，如果可以的话想请你伸出援手，为rpgitem添加物品组件自定义功能

抱歉因为我其它私有和公开的项目的原因，特别是我的服务器已经换用其它RPG插件了，以及我的学业的原因。总而言之，我无法再活跃参与这个项目的开发。
关于物品组件，我只在 1.21 上测试了能跑起来，没测试具体功能可不可以用。
现在整个插件曾经的 nms 部分已经大部分交给第三方依赖库了，基本都由 item-nbt-api 替代，这也使得这个改版能够同时兼容游戏多个版本成为了可能。我用过它很多次了，只是插件自定义 nbt 的话，NBT.get 和 NBT.modify 可以同时兼容以物品组件分界的新旧版本，它应该是不会在 nbt 编辑这块掉链子的。
毕竟 rpgitems 的 nbt 修改只涉及了自定义的 nbt，基本没有涉及到原版属性。（nms 相关的我用不到的功能基本砍得差不多了，这些功能我不好说）
这个库也可以用于现在 nms 模块上唯一还在的 EntityTools.setEntityTag，（在主模块里面的 LegacyEntityTools）只不过没测试过，无法得知具体效果。
除了技能石功能需要修改技能接口，其它的修改基本没有怎么对插件大改。这在 README 中有说明最后一个还与 RPGItems-reloaded 的接口兼容的 commit。

抱歉因为我其它私有和公开的项目的原因，特别是我的服务器已经换用其它RPG插件了，以及我的学业的原因。总而言之，我无法再活跃参与这个项目的开发。
关于物品组件，我只在 1.21 上测试了能跑起来，没测试具体功能可不可以用。
现在整个插件曾经的 nms 部分已经大部分交给第三方依赖库了，基本都由 item-nbt-api 替代，这也使得这个改版能够同时兼容游戏多个版本成为了可能。我用过它很多次了，只是插件自定义 nbt 的话，NBT.get 和 NBT.modify 可以同时兼容以物品组件分界的新旧版本，它应该是不会在 nbt 编辑这块掉链子的。
毕竟 rpgitems 的 nbt 修改只涉及了自定义的 nbt，基本没有涉及到原版属性。（nms 相关的我用不到的功能基本砍得差不多了，这些功能我不好说） 这个库也可以用于现在 nms 模块上唯一还在的 EntityTools.setEntityTag，（在主模块里面的 LegacyEntityTools）只不过没测试过，无法得知具体效果。
除了技能石功能需要修改技能接口，其它的修改基本没有怎么对插件大改。这在 README 中有说明最后一个还与 RPGItems-reloaded 的接口兼容的 commit。

如果确实不再更新的话，可以在readme中添加重定向至原仓库的提示吗，以免用户错过后续更新

authors: Clexus MrXiaoM

repo: MrXiaoM/RPGItems-reborn


text:
SelectOnRowClick does not exist for DataGrid but it's listed on the documentation API page

Bug type
Component
Component name
MudDataGrid
What happened?
Trying to set SelectOnRowClick for the DataGrid doesn't do anything. I then looked into the code and saw that it's not listed as a possible attribute. Setting multi-selection to false turns off the SelectOnRowClick, but then I don't have the multi-selection feature. The issue I have is that I am adding form inputs and links to the columns and it keeps toggling the checkbox states when I don't want that to happen unless the user specifically selects the checkbox.
Expected behavior
Be able to disable the SelectOnRowClick option without having to turn off Multi-Selection.
Reproduction link
https://try.mudblazor.com/snippet/cawRujQATMFVNcKB
Reproduction steps

Create a DataGrid
Add a SelectColumn
Set MultiSelection to true
Try to set SelectOnRowClick to false as specified in the documentation
Click on a column without a checkbox and notice that the row is still selected.
...

Relevant log output
No response
Version (bug)
6.8.0
Version (working)
No response
What browsers are you seeing the problem on?
Chrome
On what operating system are you experiencing the issue?
Mac OSX
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Available in version 6.9.0

Ah, okay, thanks. Maybe the version numbers should be listed on the MudBlazor website's header bar since I didn't know there were two new versions since I've been working with MudBlazor.

authors: WilbertSuvoda Yomodo

repo: MudBlazor/MudBlazor


text:
Looking for M2 asset with uncompressed texture data.

Most M2 asset rely on S3TC texture compression which the loader already supports. However, certain assets use uncompressed textures. It would be good to know the filename of such an asset for testing (https://wow.tools/) so the below code path can be implemented and verified:
https://github.com/Mugen87/three-m2loader/blob/e71c7760f5b19c828a2befc0eaf8781db888d91d/M2Loader.js#L1735-L1739

f3f1000b40a08aafbec8176679c7420a0a8040cd added supported for color palette textures but only for BLP_PIXEL_FORMAT_PIXEL_UNSPECIFIED. More textures for testing are required.


text:
Sort

Traceback (most recent call last):
File "main.py", line 5, in
from sort.sort import *
ModuleNotFoundError: No module named 'sort'
Error with sort any help?

same

https://github.com/abewley/sort.git this is the sort repository use, I would suggest to use git clone to download

authors: Mewmul Quadwo huseyingunes


text:
Adding Gitlab Account anymore visible

In the left pane ith shows the wrong icon it should be gitlab
Probably it come with #313

Ah, putting the Gitea item to the end of Account::Kind should do the tick I think.

But then there is still something wrong? Maybe somewhere numbers are used instead of the enum and therefore it comes to this issue?

I'm already fixing that - the account type is being saved and loaded using the enum's numerical value, I'll switch to strings

I'm already fixing that - the account type is being saved and loaded using the enum's numerical value, I'll switch to strings

But then we need also a compability check to prior 1.1.2

authors: Murmele exactly-one-kas

repo: Murmele/Gittyup


text:
Channel closed, on-chain empty

Hi, same as others have experienced, I received 50k sats to open a channel, paid 10k fee, 15 minutes later the channel closed. Now the remaining 40k sats seem to be in limbo.
mutiny-logs.txt

Hey sorry about this, your funds should show up in a couple of days at most. Let us know if they don't.
2023-09-10 07:27:18.017 ERROR [lightning::ln::channelmanager:8344] A ChannelManager is stale compared to the current ChannelMonitor!
2023-09-10 07:27:18.017 ERROR [lightning::ln::channelmanager:8345]  The channel will be force-closed and the latest commitment transaction from the ChannelMonitor broadcast.

Looks like this is the stale channel manager bug. We're still tracking down the exact reason this happens but we suspect this happens when you close the app/page too quickly after an invoice has been paid. Waiting a couple seconds after a payment to close the app should help prevent this in the future.

For reference:
closing txid: d4392807df939e794535ad43ea4d5a4680aa588d28bb0321b5bd17fe009cd394
node id: 02158c97406ca9b97f43fee03cda088ae7873d3247ec5b920a050136803e4af7a6

Yep it worked. Thank you!

authors: benthecarman lundog

repo: MutinyWallet/mutiny-web


text:
sqlite3.OperationalError: no such table: case_template

搭建遇到报错，貌似缺少数据库的文件
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 1910, in _execute_context
self.dialect.do_execute(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\default.py", line 736, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: no such table: case_template
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 404, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\applications.py", line 276, in call
await super().call(scope, receive, send)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\routing.py", line 163, in run_endpoint_function
return await dependant.call(**values)
File "E:\下载\FastApi_auto_test-master\apps\template\router.py", line 385, in get_templates
for temp in templates:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\orm\query.py", line 2901, in iter
result = self._iter()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\orm\query.py", line 2916, in _iter
result = self.session.execute(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\orm\session.py", line 1717, in execute
result = conn._execute_20(statement, params or {}, execution_options)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 1710, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\sql\elements.py", line 334, in _execute_on_connection
return connection._execute_clauseelement(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 1577, in _execute_clauseelement
ret = self._execute_context(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 1953, in _execute_context
self.handle_dbapi_exception(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 2134, in handle_dbapi_exception
util.raise(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\util\compat.py", line 211, in raise
raise exception
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 1910, in _execute_context
self.dialect.do_execute(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\default.py", line 736, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: case_template
[SQL: SELECT case_template.id AS case_template_id, case_template.project_name AS case_template_project_name, case_template.temp_name AS case_template_temp_name, case_template.api_count AS case_template_api_count, case_template.created_at AS case_template_created_at, case_template.updated_at AS case_template_updated_at
FROM case_template ORDER BY case_template.id DESC
LIMIT ? OFFSET ?]
[parameters: (10, 0)]
(Background on this error at: https://sqlalche.me/e/14/e3q8)

是没有创建出这个表，将main.py文件中，这两行代码放开，再次启动。创建好表格后，可以再次注释掉
（是一个需要优化的地方）

搭建遇到报错，貌似缺少数据库的文件 ERROR: Exception in ASGI application Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 1910, in _execute_context self.dialect.do_execute( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\default.py", line 736, in do_execute cursor.execute(statement, parameters) sqlite3.OperationalError: no such table: case_template
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 404, in run_asgi result = await app( # type: ignore[func-returns-value] File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call return await self.app(scope, receive, send) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\applications.py", line 276, in call await super().call(scope, receive, send) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\applications.py", line 122, in call await self.middleware_stack(scope, receive, send) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 184, in call raise exc File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 162, in call await self.app(scope, receive, _send) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call raise exc File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call await self.app(scope, receive, sender) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call raise e File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call await self.app(scope, receive, send) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 718, in call await route.handle(scope, receive, send) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 276, in handle await self.app(scope, receive, send) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 66, in app response = await func(request) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\routing.py", line 237, in app raw_response = await run_endpoint_function( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\routing.py", line 163, in run_endpoint_function return await dependant.call(**values) File "E:\下载\FastApi_auto_test-master\apps\template\router.py", line 385, in get_templates for temp in templates: File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\orm\query.py", line 2901, in iter result = self._iter() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\orm\query.py", line 2916, in _iter result = self.session.execute( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\orm\session.py", line 1717, in execute result = conn._execute_20(statement, params or {}, execution_options) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 1710, in _execute_20 return meth(self, args_10style, kwargs_10style, execution_options) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\sql\elements.py", line 334, in _execute_on_connection return connection._execute_clauseelement( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 1577, in _execute_clauseelement ret = self._execute_context( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 1953, in _execute_context self.handle_dbapi_exception( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 2134, in handle_dbapi_exception util.raise( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\util\compat.py", line 211, in raise raise exception File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\base.py", line 1910, in _execute_context self.dialect.do_execute( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\engine\default.py", line 736, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: case_template [SQL: SELECT case_template.id AS case_template_id, case_template.project_name AS case_template_project_name, case_template.temp_name AS case_template_temp_name, case_template.api_count AS case_template_api_count, case_template.created_at AS case_template_created_at, case_template.updated_at AS case_template_updated_at FROM case_template ORDER BY case_template.id DESC LIMIT ? OFFSET ?] [parameters: (10, 0)] (Background on this error at: https://sqlalche.me/e/14/e3q8)

可以将main.py文件下的这两行代码取消注释，再启动服务。启动完成后创建好表了
（是一个可以优化的点）

authors: My-Jie yundouguai


text:
Bulletproofs

On October 18th, Monero will hard-fork to support bulletproofs. Similar to the previous ringCT hardfork, transaction libraries like xmr-core will need to be updated to support the new transaction format introduced.
Countdown to hardfork for reference: http://xmr.noctism.com/

I could implement Bulletproofs, ut it would be great to have sc_inv() implemented meanwhile, i.e. scalar modular inversion (mod curve order).

Why don't you use mymonero-core-js? We already transpile the bulletproofs code.

@paulshapiro I was looking for BP support in the repo but I only found https://github.com/mymonero/mymonero-core-js/blob/37c86c23e09f11742108e7f246fe8992082f18e0/cryptonote_utils/cryptonote_utils.js#L1894
I was wondering how emscriptem generated files were generated. Is there any info about it? Where is the source and command line to do it? I would either add sc_mul, sc_inv primitives to the emscriptem generated files and implement BP in the JS (as are Borromean range proofs right now) or transpile it as a whole. Thanks

@ph4r05 that's verRct written in JS from the old mymonero-core-js, not the create tx function in the Monero C++ which then gets transpiled to wasm in the new mymonero-core-js. Check https://github.com/mymonero/monero-core-custom/blob/e089dec813e7c9b51b8ded08bf8017e0395c4155/cryptonote_core/cryptonote_tx_utils.cpp#L604
We then merely need to re-enable the boolean flag to turn it on or off from the client-side, or, probably better, we just update the fork rules to turn it on.
The source and command to do it? I haven't merged develop into master yet so it's on mymonero-core-js:develop. Here was the PR for who missed it. Emscripten works through cmake so check the CMakeLists.txt and bin/archive-emcpp.sh. You also need to build boost yourself, for which instructions exist in the mymonero-core-js develop branch readme. You don't need OpenSSL because we (i.e. Monero project) replaced the sc_inv with a manual implementation.
However the mainline bulletproofs code has received some minor changes so I will merge those soon.
All of this work is just to get building in your dev env, but the work that xmr-core would need in order to have bulletproofs support ledger is as I've described briefly in this reddit post: https://www.reddit.com/r/Monero/comments/9hqmm4/i_love_xmr_but_storing_it_is_a_btch/e6e0v3j/
i.e. even though Monero mainline has Ledger (hwdevice) support, as thus does this transpiled code, the transport etc code still exists in JS, so we need to hook into it from a new hwdevice.
I don't want to say it might be best for me to spearhead this but that may be most efficient. In any case we can freely collaborate on github or if you would like to drop into #mymonero on freenode IRC I think it would be beneficial for the other people who have been following developments as well.

By the way here's the bridge for calling create transaction from JS/emscripten (or whichever other binding you would like) https://github.com/mymonero/mymonero-core-cpp/blob/master/src/serial_bridge_index.cpp#L501
You can ignore the comment about taking the tx sec key as an arg - that was prior to ensuring proper rand gen via an emscripten PR.

All this stuff gets tested as well, e.g. https://github.com/mymonero/mymonero-core-cpp/blob/master/test/test_all.cpp#L323 , which you can run like this if you'd like https://github.com/mymonero/mymonero-core-cpp/blob/master/bin/buildAndRun_tests
That way we can ensure the C++ works first and simplify JS testing

@paulshapiro wow, thanks for the valuable information! I will go through it and get back later.
So I leave Bulletproofs and focus on my primary interest now - Trezor integration.

@ph4r05 Cool - Trezor integration would be sweet too, especially since they seem to be close to release.
Are you planning on integrating Trezor into mymonero-core then? If so, it would be worthwhile to hit Ledger as well, since their device is already working with Monero today.
I still think there are some advantages to porting bulletproofs to xmr-core, since you get the benefits of type safety via typescript, as well as a working ledger implementation already.
Really cool to see more contributors on this!

@dternyak regarding the Bulletproofs after giving it a second thought I think it is better to have it implemented in web assembly as it will be significantly faster rather than having it implemented in JS. JS implementation could be nice for educational purposes but for practical use wasm implementation is better.

I believe this repo should be kept going since it contains a better-organized codebase and has the main features implemented in JavaScript. Having implementations in JS will open up Monero to more JS developers rather than asking them to work with a C++ transpiled codebase. The wasm approach of MyMonero is great for short term productivity but not good for community growth IMHO

I like this repo and the JS Monero codebase too. But it needs someone taking care of this for a long time. Because of this I personally think the wasm approach is more sustainable as Monero C++ codebase is in a long-term active development and maintenance costs for wasm port are lower.
Anyway, I have already ported Bulletproofs to Python in https://github.com/ph4r05/monero-agent/blob/master/monero_glue/xmr/bulletproof.py
If somebody manages to make sc_mul, sc_muladd available I could at some point port Bulletproofs to JS as well. It is useful at least for educational purposes.

@ph4r05 I think it's also useful for the immediate availability of Ledger web wallet support, but I do see your point about piggybacking on the development of the C++ codebase.

@ph4r05 Current crypto ops at the moment are not implemented in pure JavaScript and are being called from this emscripten file. I was thinking maybe with having a well tested int64_t and uint64_t data types implemented here we can re-implement most of the crypto ops functions including sc_mul and sc_mul_add in pure JS. I can help with the heavy lifting of doing same operations in JS but I need help with testing since my foundations are weak and don't really understand all these numbers in the original monero implementation 😩

@p0o the crypto operations could be also implemented using just 32bit numbers but I think this pure JS crypto backend would make implementation unusable due to performance penalty.
I like the emscriptem / wasm approach with the low-level crypto stuff. I don't know how was the file generated and how to re-generate it so it includes Bulletproof needed operations.

@ph4r05 do you have any benchmark or estimation that how bad the JS implementation could be? AFAIK the emscripten approach with compressed/uglified code can have CSP implications for more restrict environments like chrome extensions.

@p0o A few things to clarify..

I dont know running wasm in chrome extensions myself but the CSP requirements for loading wasm (unsafe eval) are something that Chrome, Mozilla, et al have been working on (there are a number of articles and github threads about it) and which the entire ecosystem is subject to. There are plans for how to address it, e.g. unsafe-wasm rather than full eval.

The emscripten approach is not to "compress/uglify". The emscripten JS module code just some basic JS for wrapping devices etc. I would recommend reading up a bit on how emscripten and binaryen work as they're not compressing/uglifying but compiling C/C++/Rust etc using an llvm front end which the browser directly executes. No one reads compiled wasm.

Benchmarking the JS implementation sort of misses the point. Wasm is bound to be faster with really optimized code anyway. You would have to handwrite bulletproofs in JS in such a way not only to support all the multiexp etc other modifications that are being done to it, but you would have to fine-tune it to meet similar optimizations done in the Monero src, llvm, and browsers.

@paulshapiro just one thought on point 3 - you don't actually need Straus / Pippenger multiexp optimizations on the user wallet side. On Trezor we dropped it as it does not bring that significant speedup considering the RAM overhead. User wallet does not need to perform blockchain bulletproof verification so the implementation similar to what I did in Python would work.

Just for the record I myself don't actually think bulletproofs construction is really that performance sensitive here anyway. It could take 300ms and the user would barely notice.

@ph4r05 gotcha

@paulshapiro my bad for using the word uglified but based on a recent blog post from Google as far as I understood a file like this would face auditing problems for chrome web store. Also, the trust factor plays a role here since no one really knows what's happening in that kind of code. WASM tho should be fine.
I get the point about challenges for JS implementations but as a person with more app development experience than Crypto experience, I think we can't see Monero adaption through apps if we don't have a fully working implementation with JS. Developers need to read the code to know what they can do with it.

the trust factor plays a role here since no one really knows what's happening in that kind of code. WASM tho should be fine

There's the potential for reproducible builds and signing, and the browser runtime literally steps through the instructions... that's basically like saying that we don't know what's happening in compiled code... hm, did you read how emscripten works?

as a person with more app development experience than Crypto experience

Same boat!

I think we can't see Monero adaption through apps if we don't have a fully working implementation with JS. Developers need to read the code to know what they can do with it.

I don't see how that follows or how the premise that devs can't see the code is accurate. All the code is laid out in JS and C++. The bridge code is extremely simple and quite sufficiently performant. And we also have source mapping analogues on wasm. I myself have obviously made considerable inroads into it (and might I add, development didn't take place through the emscripten build process? there are boost tests for these things), so the conclusion that devs can't know what they can do with it frankly doesn't seem to follow, to me.
Besides, it's not obvious that it's actually sustainable for app developers to have to reimplement their own cryptographic schemes in isolation rather than attempting to use standards and existing battle tested implementations (a big no-no in security software). A quick survey of Monero app devs will quickly turn that up. This not simply a matter of whether to implement a singular new scheme (bulletproofs). It's a matter of whether to build all of the crypto yourself and who is going to actually keep up with the updates and audit it.
Anyway, I don't see a reason why I should have to discourage anyone from implementing bulletproofs in their language of choice, so please feel free, it's not like I could ask you to spend your time on hooking up existing hw device support in mymonero-core-js instead! Let me know if you find out someone ends up writing it, hey? I'd be interested in looking at it.
By the way @p0o what plugin are you working on?

repo: MyCryptoHQ/xmr-core


text:
Create Exam Relation

@Prajeeth-W @HironKanishka97  @rawcode69 I want to add module_id as a foreign key for exam table? how do I do it?

@HironKanishka97 Please review this

repo: MyPlaygroundDEP/sql-joins-example-team


text:
Bug In Creative

What version of ViaVersion are you using? Type /ver viaversion
6.4
What version of Spigot are you using? Type /ver
Spigot 1.8.8
How does this error happen? login? Using an item?
After having the dragon skull
Is there an error in the console? Use pastebin.com. Is there a kick message?
Nothing
http://zupimages.net/up/16/11/8s6r.jpg

What exactly is your bug? This plugin is to allow 1.9 players to connect to 1.8 servers, not to add 1.9 features to a 1.8 server.

Yes but look at the screen : http://www.zupimages.net/up/16/11/8s6r.jpg
In the second hand, there is a strange picture.

How would you reproduce this error? I am unable to get the same glitch. Could you provide a step by step guide?

When I put a dragon skull in the second hand.

This should not be possible to reproduce anymore, thanks to #232 (you can no longer put items into the off hand in creative).

This is reproducable, it was done by @Matsv , but is most likely not related to ViaVersion (although not with a dragon head)
https://fileserver.matsv.nl/media?id=04ca29f5969da34587dc9417d7baeba3

1.9 glitch. Happens in singleplayer too.
https://fileserver.matsv.nl/media?id=68d47b7434888dcdf622d32e7d4298ac

authors: HugoDaBosss JBYoshi Matsv TheIntelloBox

repo: MylesIsCool/ViaVersion


text:
Corrected build and install commands

The way to install Talon written in the README didn't work, so I created this solution that always works (if you have python, git, sudo, and use bash).

Thanks, but this is not how it works. I push a release to PyPi with the latest stable changes, and people download that each time from PyPi.  If it doesn't work for you, try python -m pip or sudo pip depending on your system. You might also need to use python3 or pip3 if you have an older version of python already installed.

repo: MystPi/talon


text:
Update Sui wallet and Sui wallet adapter links

Thank you for making this list awesome! Please make sure that your addition follows the format [project_name](link) - Description. and other contribution requirements such as the Add project_name commit format.

Thanks for spotting this @hyd628! I will merge this :+1:

repo: MystenLabs/awesome-move


text:
[TEST] Ignore this...

Test issue.  Ignore, please.

Please add your planning poker estimate with ZenHub @todd-mystenlabs

Thinking about an estimate, coming from ZenHub.

authors: huitseeker todd-mystenlabs

repo: MystenLabs/sui


text:
Implement randomness generation in Sui

Description
Implements a Sui-based random beacon protocol, replacing the Narwhal version. Enabled only in devnet.
Test Plan
simtests, unit tests, more unit tests to be written. Manual deployment testing.

If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section.
Type of Change (Check all that apply)

[x] protocol change
[ ] user-visible impact
[ ] breaking change for a client SDKs
[ ] breaking change for FNs (FN binary must upgrade)
[ ] breaking change for validators or node operators (must upgrade binaries)
[ ] breaking change for on-chain data layout
[ ] necessitate either a data wipe or data migration

Release notes

I grepped for randomness_state_enabled() and do not see anywhere where we check this during signing. is the check being done some other way? do we have a test that verifies that random reading txns are rejected when randomness is not enabled?

No, I think the only thing preventing this where randomness is disabled is that the randomness state object is not created. So object at address 0x8 would not exist if you try to use randomness where it is not yet enabled. Do you think that's insufficient? Where would an additional check be added?

I think the decision to not send completed rounds through consensus means that a validator needs all of consensus, state sync, and randomness to be working in order to proceed. Previously state sync was not needed for liveness. i think we should send completed rounds through consensus. this way a validator can proceed if both state sync and randomness are broken locally. We can do this in a later PR

You don't need state sync for liveness if the randomness protocol is working. You only need state sync to catch up on stuff that happened while your validator was down, which I think is already the case? I guess the one change is that state sync is needed to finish a round so that you can (eventually) free up a concurrency slot to start a future round.
What do you mean by "if both state sync and randomness are broken locally"? What does it mean for them to be broken locally? I'm not sure I understand the failure model that duplicating this data through consensus helps with.

I grepped for randomness_state_enabled() and do not see anywhere where we check this during signing. is the check being done some other way? do we have a test that verifies that random reading txns are rejected when randomness is not enabled?

No, I think the only thing preventing this where randomness is disabled is that the randomness state object is not created. So object at address 0x8 would not exist if you try to use randomness where it is not yet enabled. Do you think that's insufficient? Where would an additional check be added?

I added an additional check for this at signing, to authority_server.rs.


text:
server::up() swallows exceptions

Hi,
First, thanks for the work you've dedicated to this package. It helped me to implement a new system much more quickly than if I had had to code the client side of the API on my own.
I ran into an issue that I think would be pretty easy to address.
In my situation, I was calling Server.up()  with a mangled url.  In order to figure this out I had to  trace into the code and look at the url. The problem is easy enough to solve. But it strikes me that a bad url should have given me an exception.
The root of the problem is the implementation of  Server.up():
    def up(self) -> bool:
        """
        Check if the server is up.

        Returns
        -------
        bool : `True` if the server is up.
        """
        try:
            self._get(resource="_up")
            return True
        except (CouchDBError, requests.exceptions.RequestException):
            return False

According to the documentation, the response from the server if it is up is:
{"status":"ok"}

If the server is in maintenance mode, the request results in a 404.
Since there are an arbitrary number of conditions besides these that could indicate a problem, it is not accurate to base  this method's return value on there being any exception.
To satisfy my curiosity, I did a quick rewrite as follows:
        try:
            self._get(resource="_up")
            return True
        except CouchDBError as ex:
            import ipdb; ipdb.set_trace()
            return False
        except requests.exceptions.RequestException as ex:
            import ipdb; ipdb.set_trace()
            return False

My request landed on the request exception with NameResolutionError: the mangled url had no dns lookup.
It seems to me that the normal path to determine the return value of this function is:

response body is or is not   "status" in res_json.keys() and res_json["status"] == "ok"
response code is or is not not 404

Otherwise, any exceptions should be allowed to bubble up to the caller: there are many things that could go wrong besides the _up endpoint's result.
If this approach sounds useful, I would be happy to take a crack at a re-write and a unit test and to submit a pull request. Just let me know.
Many thanks!

Hi @TheTaoOfPhil,
right on, good catch!
I reckon it makes sense indeed to handle 404 - maintenance.
Absolutely, feel free to create a PR!
Best

authors: N-Vlahovic TheTaoOfPhil


text:
Disallow implicit conversions between cost, duration, and distance types

From #169, we currently use simple type aliases for cost_type, duration_type, and distance_type. Those are either integral, or doubles. As a consequence, writing
duration_type x = 10.0;
distance_type y = 16.0;
distance_type z = x + y;

is perfectly legal, even when mixing distances and durations like this rarely makes sense. We should ideally have the compiler catch such mistakes, and force explicit casts to do this. One way would be to have simple struct wrappers around the underlying values, like Boost's strong typedef: https://www.boost.org/doc/libs/1_42_0/boost/strong_typedef.hpp.

I've given this some additional thought and it might not even be that hard. Some additional work and a lot of boilerplate, sure, but nothing too complex. I'll give this a try soon.

repo: N-Wouda/PyVRP


text:
Swap to attrs

Replace dataclasses and dataclasses-json with the attrs library.
dataclasses are not available in python 3.6, so this is necessary for backwards compatibility.

Looking through the supported Ubuntu versions for each Python version, I think we should use ubuntu-20.04 (latest LTS that supports Python 3.6) instead of ubuntu-latest to get 3.6 working. Also, since we're getting specific, let's pin the version to "3.6.8" instead of just 3.6.

Looking through the supported Ubuntu versions for each Python version, I think we should use ubuntu-20.04 (latest LTS that supports Python 3.6) instead of ubuntu-latest to get 3.6 working. Also, since we're getting specific, let's pin the version to "3.6.8" instead of just 3.6.

Sure thing. I've made those changes in daea09c

Unfortunately, this version of pandas/numpy is failing to build (without some clang/C++ configuring) on my M1 Mac.

Need to pull summary from this query. Are integration tests downloading constraints from Aerie>1.7?)
https://github.com/NASA-AMMOS/aerie-cli/blob/5b0d373877b1fc76d42b73f7dbff0ea33eb38833/src/aerie_cli/aerie_client.py#L1631

authors: Navarro-Jonathan cartermak

repo: NASA-AMMOS/aerie-cli