text:
Support for maps, sets, and custom iterables in built-in "each" helper?

When using Handlebars in an ES6 environment, the built-in each helper's limitation of supporting only arrays and generic objects becomes inconvenient. To work around this, I started registering my own version of the each helper that supports arrays, maps, sets, custom iterables, and generic objects. That helper is below.
Is there a plan or willingness to introduce support for these types of lists in the built-in each helper? I ask because I understand that Handlebars aims to avoid polyfills and I imagine that the only way of making the new helper work without compromising on browser support would be to progressively enable support for the different list types dependent on the environment's native or pre-polyfilled support for Set, Map, and Symbol.
Handlebars.registerHelper("each", function (contexts, options) {

    // Throw a runtime exception if options were not supplied.
    if (!options) {
        throw new Handlebars.Exception("Must pass iterator to #each");
    }

    // If the "list of contexts" is a function, execute it to get the actual list of contexts.
    if (typeof contexts === "function") {
        contexts = contexts.call(this);
    }

    // If data was supplied, frame it.
    const data = options.data ? Object.assign({}, options.data, { _parent: options.data }) : undefined;

    // Create the string into which the contexts will be handled and returned.
    let string = "";

    // Create a flag indicating whether or not string building has begun.
    let stringExtensionStarted = false;

    // Create a variable to hold the context to use during the next string extension. This is done to
    // allow iteration through the supplied list of contexts one step out of sync as they are looped
    // through later in this helper, ensuring a predictable sequence of value retrieval, string
    // extension, value retrieval, string extension...
    let nextContext;

    // Create a function responsible for expanding the string.
    const extendString = (final = false) => {

        // If other contexts have been encountered...
        if (nextContext) {

            // Expand the string using the block function.
            string += options.fn(nextContext.value, {
                data: data ? Object.assign(data, {
                    index: nextContext.index,
                    key: nextContext.key,
                    first: !stringExtensionStarted,
                    last: final
                }) : undefined,
                blockParams: [nextContext.key, nextContext.value]
            });

            // Note that string extension has begun.
            stringExtensionStarted = true;

        // If no contexts have been encountered and this is the final extension...
        } else if (final) {

            // Expand the string using the "else" block function.
            string += options.inverse(this);

        }

    };

    // If a list of contexts was supplied...
    if (contexts !== null && typeof contexts !== "undefined") {

        // Start a counter.
        let index = 0;

        // If an array list was supplied...
        if (Array.isArray(contexts)) {

            // For each of the possible indexes in the supplied array...
            for (const len = contexts.length; index < len; index++) {

                // If the index is in the supplied array...
                if (index in contexts) {

                    // Call the string extension function.
                    extendString();

                    // Define the context to use during the next string extension.
                    nextContext = {
                        index: index,
                        key: index,
                        value: contexts[index]
                    };

                }

            }

        // If a map list was supplied...
        } else if (contexts instanceof Map) {

            // For each entry in the supplied map...
            for (const [key, value] of contexts) {

                // Call the string extension function.
                extendString();

                // Define the context to use during the next string extension.
                nextContext = {
                    index: index,
                    key: key,
                    value: value
                };

                // Increment the counter.
                index++;

            }

        // If an iterable list was supplied (including set lists)...
        } else if (typeof contexts[Symbol.iterator] === "function") {

            // Get an iterator from the iterable.
            const iterator = contexts[Symbol.iterator]();

            // Create a variable to hold the iterator's next return.
            let next;

            // Do the following...
            do {

                // Iterate and update the variable.
                next = iterator.next();

                // If there is anything left to iterate...
                if (!next.done) {

                    // Call the string extension function.
                    extendString();

                    // Define the context to use during the next string extension.
                    nextContext = {
                        index: index,
                        key: index,
                        value: next.value
                    };

                    // Increment the counter.
                    index++;

                }

            // ... until there is nothing left to iterate.
            } while (!next.done);

        // If a list other than an array, map, or iterable was supplied...
        } else {

            // For each key in the supplied object...
            for (const key of Object.keys(contexts)) {

                // Call the string extension function.
                extendString();

                // Define the context to use during the next string extension.
                nextContext = {
                    index: index,
                    key: key,
                    value: contexts[key]
                };

                // Increment the counter.
                index++;

            }

        }

    }

    // Call the string extension a final time now that the last supplied context has been encountered.
    extendString(true);

    // Return the fully-extended string.
    return string;

});

Should be possible now, with #1557

@nknapp it appears that the implementation in #1557 doesn't support Map properly. It currently produces an iterated item being the entry in the Map, which is a tuple of [key, value], whereas the example code above makes the iterated item the value and sets @key, which I think is preferable. It's preferable to me!
Also, it seems that expressions don't currently support Map, so you can't say {{person.myMap.myMapKey}}. I'm delving more into this issue now.

With an addition in lookupProperty in runtime.js we can lookup properties in Maps:
    lookupProperty: function(parent, propertyName) {
      if (parent instanceof Map) {
        return parent.get(propertyName)
      }

Is there any appetite to add support like this?

@karlvr I think your proposal is worth looking into. But I would like to discuss it.

@karlvr could you start a new issue for Map support. Parts of this issue is already resolved and I would like to have a clean start.

@nknapp thank you very much for your speedy response; I've just made a PR with the suggested changes. Could we discuss there? #1679

authors: jasonh-brimar karlvr nknapp


text:
add ssl ca certificate settings

Added SSL CA certificate settings to ensure secure connections during HTTPS requests.

Thanks for PR

source: gharchive/pull-request

license: MIT

license_type: permissive

license_source: github-api


text:
[🐰건의🐰] 사용성 관련 제안

넘 귀엽고 멋진 토탐정 v1.2 잘 봤습니다~👍
사용자로서 몇가지 건의사항이 있어서 이슈 남겨보아요!
1. 토탐정 위젯
위젯 메뉴 호버 시 어떤 기능인지 알려주는 툴팁이 뜨면 좋을 것 같아요! (자주 사용하지 않는 유저는 볼때마다 "이게 머더라" 할 것 같음..!)

2. 알고있는 알고리즘 관리하기

알고리즘 검색창에 더 구체적인 placeholder값이 들어가면 사용자가 이해하기 쉬울 것 같아요
연관성이 높은 알고리즘은 가까이 배치되면 좋을 것 같아요(가능하다면)
알고리즘목록을 한 줄에 일정 개수만큼 배치하면 좋을 것 같아요(e.g. flex: 1, 근데 알고리즘 길이가 제각각이라 불가능하려나여?!)

3. 티어 가리개 설정
맞추지 않은 문제 난이도 숨기기가 설정된 경우에만 어려운 문제 경고 설정이 가능하니까
난이도 숨기지 않기를 선택한 경우에는 어려운 문제 경고 설정 인풋을 숨겨놓고 토글하는 식으로 바꾸면 덜 헷갈릴 것 같아요!
(숨기지 않기를 클릭한 경우, 어려운 문제 경고 인풋이 비활성화돼서 버그인가?하구 헷갈렸습니다!)

4. 랜덤디펜스 쿼리 설정
이 기능 정말 맘에 들어요~ 👍
쿼리 수정 시 https://solved.ac/search 이 링크를 보고 설정할 수 있도록 알려주거나
자주 사용될 것 같은 쿼리는 화면 하단에 안내하면 더 편하게 사용할 수 있을 것 같아요

5. 알고리즘 분류 잠금 기능

알고리즘 분류 잠금방법 설정이 잠금시간 설정 바로 밑으로 들어가는게 더 자연스러울 것 같아여! 잠금시간 설정을 보고 처음에 뭘 잠그는 거지?했거덩요

알고리즘 분류를 잠근다음에 보니까 텍스트 스타일이 하이퍼링크처럼 되어있더라구요 그런데 클릭하면 아무일도 일어나지 않는데 요게 맞나여?! 링크가 아니라면 텍스트 디자인을 수정하면 좋을 것 같아요!

안녕하세요, @HyeryongChoi 님! 👋🏻 토탐정을 개발 및 관리하고 있는 요술토끼입니다. 먼저, 여러 방면으로 토탐정에 대한 유용한 건의들을 남겨주셔서 정말 감사합니다.
작성해주신 건의를 바탕으로, 앞으로 개선해 볼 기능들을 공유해 드리고자 합니다.
1⃣ 위젯의 각 버튼의 의미를 이해하기 쉽게 만들기

토탐정을 처음 이용하는 유저 / 익숙하지 않은 유저분들께는 가이드 문서에도 불구하고 메뉴들의 의미를 파악하기 어려울 것이라 생각합니다. 건의해 주신대로 각 메뉴에 사용자가 마우스를 올릴 경우, 아이콘의 좌측에 작은 툴팁이 등장하도록 개선해 보겠습니다.
반면 토탐정을 충분히 이용한 유저들은 각 메뉴들의 의미를 충분히 파악하고 있을 것이라 생각합니다. 따라서, 설정에서 위젯 툴팁을 숨길 수 있는 기능 또한 같이 추가하려고 합니다.

2⃣ "알고 있는 알고리즘 관리하기"의 검색 인풋이 하는 역할을 이해하기 쉽게 만들기

placeholder를 아래와 같이 수정할 예정입니다.

검색어를 입력해 주세요... $\rightarrow$ 알고리즘 분류를 입력해 주세요...

3⃣ 사용자가 랜덤 디펜스 쿼리 설정을 더 쉽게 할 수 있도록 만들기

[직접 입력] 뿐만 아니라 [쿼리 수정] 을 눌러 나오는 모달창에도 솔브드 고급 검색 페이지를 안내하도록 개선해 보겠습니다.

[간편 입력] 에 문제 언어 를 고를 수 있는 옵션을 추가할 예정입니다.

말씀해주신 [자주 사용될 것 같은 쿼리] 목록을 추가할 경우 어떤 쿼리들을 추가할까를 고민했었는데, 사실 대부분 [간편 입력] 에서 다뤄지는 쿼리인지라, 필수적이지는 않을 수 있다고 판단했습니다.
다만 문제 언어 에 대해서는 설정하는 방법에 대해 문의해 주신 분들이 많았고, 문제 언어 는 랜덤 디펜스를 하는 입장에서 [간편 입력] 에 넣어도 될 정도로 중요도가 높은 설정이라 생각해, 문제 언어에 대해 쿼리를 어떻게 작성하면 되는지를 안내하는 대신 [간편 입력]에 직접 설정할 수 있는 기능을 넣는 방법을 생각해보게 되었습니다.

4⃣ 백준 페이지 내 잠금 UI 개선
예리한 리뷰 감사합니다 😈

말씀하신 대로 알고리즘 분류가 잠겨 있는 상태에서는 하이퍼링크로 유저가 오인하지 않도록 개선해 보겠습니다.

⏳ 이번에는 보류하게 된 건의들

연관성이 높은 알고리즘은 가까이 배치되면 좋을 것 같아요(가능하다면)

현재는 알고리즘 분류들에 별도의 ID를 붙인 채로 순서대로 렌더링하는 방법을 쓰고 있어, 어려울 것 같으며
이후 데이터 구조를 뜯어고치고, 솔브드의 API를 이용해 알고리즘 분류를 업데이트하는 방법을 자동화했을 때는 솔브드에서 제공하는 순서를 따를 예정

이기 때문에, 아쉽게도 현재로써는 어려울 것 같습니다.

알고리즘목록을 한 줄에 일정 개수만큼 배치하면 좋을 것 같아요(e.g. flex: 1, 근데 알고리즘 길이가 제각각이라 불가능하려나여?!)

네, 아쉽게도 말씀해 주신대로 알고리즘 길이가 너무 제각각이라서 지금은 이대로 유지하는 것이 좋을 것 같다는 생각입니다. 두 극단적인 길이의 알고리즘 분류를 말씀드릴게요.

z (놀랍게도 문자열 알고리즘의 일종입니다. 오타 아닙니다)
커넥션 프로파일을 이용한 다이나믹 프로그래밍 (무려 메뉴 너비의 1/2나 차지합니다)

맞추지 않은 문제 난이도 숨기기가 설정된 경우에만 어려운 문제 경고 설정이 가능하니까
난이도 숨기지 않기를 선택한 경우에는 어려운 문제 경고 설정 인풋을 숨겨놓고 토글하는 식으로 바꾸면 덜 헷갈릴 것 같아요!

이 건의의 경우에는 저는 다른 생각을 가지고 있습니다.

우선, 어려운 문제 경고 옵션 특성상 솔브드에서 그대로 가져온 기능이기에 이 기능을 알고 있는 유저분들은 티어가 공개되어 있을 경우에는 어려운 문제 경고 기능을 이용할 수 없다는 사실을 예측하기 어렵지 않을 것으로 보입니다. 티어가 공개되어 있으면 어려운 문제를 따로 경고하는 것도 별도의 의미가 없기도 합니다. 어려운 문제 경고는 난이도가 이미 감춰져 있어 어려운 문제인지를 구분할 수 없는 유저를 위한 기능입니다.
UI를 완전히 가리게 될 경우, 어려운 문제 경고 기능을 사용하러 온 유저가 해당 기능을 찾지 못할 수도 있을 것으로 보이며, UI가 가려진 상태에서의 티어 가리개 메뉴는 빈 공간을 차지하게 되는지라 어색할 수 있다고 생각했습니다.
"난이도를 공개하는 옵션" 과 "어려운 문제 경고" 의 UI는 같은 계열의 메뉴에 있고, 거리가 굉장히 가까워요. 그리고 특정 옵션에 따라 다른 옵션들이 비활성화되는 UI는 나름 흔한지라 현재로써는 그대로 둬도 괜찮을 것 같다는 생각이 들었습니다.

알고리즘 분류 잠금방법 설정이 잠금시간 설정 바로 밑으로 들어가는게 더 자연스러울 것 같아여! 잠금시간 설정을 보고 처음에 뭘 잠그는 거지?했거덩요

말씀하신 바가 맞아요. 사실 그 외에도 [알고리즘 가리개] 카테고리의 우측 메뉴들이 전반적으로 띄엄띄엄 메뉴가 구성되어 있기도 해요. 아쉽게도 어떻게 메뉴를 구성해야 할지, 바꾼 후에도 어색하지 않게 유지할 수 있을지 등등 제가 고민하고 있는 상태가 커요 😢 그래서 이 건의는 조금 나중에 작업할 수 있을 것 같아요.
저는 여기까지 제 의견을 공유해 볼게요. 혹시 제가 이야기한 의견을 바탕으로 다른 의견이 생기셨거나, 절충안이 떠오르신다면 언제든지 말씀해 주세요 😊
건의 해주셔서 정말 감사합니다

source: gharchive/issue

authors: HyeryongChoi wzrabbit

repo: wzrabbit/boj-totamjung


text:
表格导出功能 表头有分组时不能完全导出 可能是BUG

（必填）请填写问题描述 Describe
表格导出功能 表头有分组时表头缺失 表格导出插件也有同样问题
（必填）请填写能重现问题的链接，例如（jsfiddle、codesandbox、jsrun） Reproduction link
https://codesandbox.io/s/vxe-tablebiaogedaochugongnengwenti-w864d?file=/src/components/HelloWorld.vue
请填写报错信息或截图 Error message or screenshots
https://codesandbox.io/s/vxe-tablebiaogedaochugongnengwenti-w864d?file=/src/components/HelloWorld.vue
（必填）请填写版本号 Version

os: ?
browser: ?
vue: 2.6.11
vxe-table: 2.9.0

目前是不支持分组表头导出的

好的 谢谢

分组表头会在 3.0+ 中支持

谢谢

authors: joker-jrz xuliangzhan

repo: x-extends/vxe-table


text:
Enable pie chart duration configuration

The pie chart directive includes a transitionduration scope model but it is not used in the directive.

Closing this since it's a minor configuration that we don't use anyway.


text:
missing required architecture x86_64 in file

I have a sample application ios and i tried to integrated min static Lib libSonicProxyLibrary.a.
but i have 4 errors, and i can't bluid  my app.
 ld: warning: ignoring file /Users/montassarzarroug/Documents/projects/CopSonic SDK/20160728-01 SonicProxy Android-iOS/20160728-01 SonicProxy Android-iOS/iOS/SonicProxyUseSample_Swift_V2/External/lib/libSonicProxyLibrary.a, missing required architecture x86_64 in file /Users/montassarzarroug/Documents/projects/CopSonic SDK/20160728-01 SonicProxy Android-iOS/20160728-01 SonicProxy Android-iOS/iOS/SonicProxyUseSample_Swift_V2/External/lib/libSonicProxyLibrary.a (2 slices) Undefined symbols for architecture x86_64:   "_OBJC_CLASS_$_SPClientManager", referenced from:       type metadata accessor for __ObjC.SPClientManager in SonicProxyURLProtocol.o       type metadata accessor for __ObjC.SPClientManager in SonicProxyClientManagerExtension.o       l__CATEGORY_SPClientManager_$_SonicProxyUseSample in SonicProxyClientManagerExtension.o   "_OBJC_CLASS_$_SPHostManager", referenced from:       type metadata accessor for __ObjC.SPHostManager in SonicHostVC.o   "_OBJC_CLASS_$_SPRequest", referenced from:       type metadata accessor for __ObjC.SPRequest in SonicProxyClientManagerExtension.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
And in Setting architectures, i have $(ARCHS_STANDARD),armv7, armv7s, arm64
Please, someone can help me ??

Hi,
sorry but you are missing x86_64 in the library libSonicProxyLibrary.a not in the OpenSSL-for-iPhone project. So get a x86_64 compatible library.

license_source: bigquery


text:
Bumping version from 0.2.0 to 0.3.0 due to breaking API change.

The API was changed in: #143, #141.

I don't think any of this is breaking (i.e., user code from before this version will not work in this version)?  Best to keep it a patch release (v0.2.1) then

I don't think any of this is breaking (i.e., user code from before this version will not work in this version)?  Best to keep it a patch release (v0.2.1) then

Yes, I agree, this isn't breaking (I initially thought some signature was also changed). Will change the version to 0.2.1.

Codecov Report

Merging #158 (78a1668) into main (1f52cd2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #158   +/-   ##
=======================================
  Coverage   91.88%   91.88%
=======================================
  Files          20       20
  Lines         456      456
=======================================
  Hits          419      419
  Misses         37       37

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


text:
Update io-package.json

Now the RAW of this file can be entered as repository in ioBroker. The adapter can thus be installed as an adapter via the ioBroker WebGUI --> Adapter without any problems.

Your changes are not correct, the io-package must start with common and not with wallpanel the adapter is already in the repository of ioBroker and can also be installed via the ioBroker WebGUI, but for now only in the beta repository is not yet in stable.
I just tried it and the adapter was also installed without any problems.
The tests do not run with your change either, because the config is not found.

authors: shiot xXBJXx


text:
Disable Whole Table Option

Hi @xaksis
I'm just wondering, is there any option that we can disable the whole table?
For instance, I have a request from my API. I want to disable the whole table while my request is communicating with my REST Service/Server.
So far, I've tried the :disabled="true" inside the table option but I'm not sure if it is possible.
Thank you!

hey @deanilvincent this should be easily doable via simple css. Just put:
pointer-events: none;
on the table wrapper and none of the elements within the table will be reactive.

Thank you @xaksis :)

authors: deanilvincent xaksis

repo: xaksis/vue-good-table

license: mit


text:
Xamarin.Firebase.iOS.Crashlytics 8.10.0.1 contains bitcode which is not supported anymore since Xcode 14

I created a new .NET MAUI app, and added the Xamarin.Firebase.iOS.Crashlytics 8.10.0.1
It looks like the bitcode isn't stripped from the included frameworks.
When building the app, and trying to submit it to the Apple App Store, I got the following error e-mail:
App Store Connect

Dear Developer,

We identified one or more issues with a recent delivery for your app, "myApp" 0.7.0 (11). Please correct the following issues, then upload again.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/FBLPromises.framework/FBLPromises' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/FirebaseCore.framework/FirebaseCore' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/FirebaseCrashlytics.framework/FirebaseCrashlytics' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/FirebaseInstallations.framework/FirebaseInstallations' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/GoogleAPIClientForREST.framework/GoogleAPIClientForREST' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/GoogleDataTransport.framework/GoogleDataTransport' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/GoogleUtilities.framework/GoogleUtilities' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/Protobuf.framework/Protobuf' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/leveldb.framework/leveldb' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/nanopb.framework/nanopb' contains bitcode.

I have tried to build with several options to strip the bitcode, however they don't work.
Like:
<Target Name="BeforeCodesign">
		<Exec Command="$(_SdkDevPath)\Toolchains\XcodeDefault.xctoolchain\usr\bin\bitcode_strip %(_Frameworks.FullPath) -r -o %(_Frameworks.FullPath)" />
	</Target>

and
<MtouchEnableBitcode>false</MtouchEnableBitcode>

Both don't seem to work.

Same problem, any workaround?

I guess the first step is to wait for Google to release Firebase 10.1.0
https://github.com/firebase/firebase-ios-sdk/milestone/107?closed=1.
Here you have a mention about bitcode removal

I also struggled for a week and solved it a few days ago, but now the only way is to downgrade.
VS 2022 17.3.5
Xcode 13.4.1
I'm currently testing it on Testflight and I'm about to review it.

Temporary workaround is to rebuild the nuget packages according to readme (I bumped the version in components.cake and bumped net6 -> net7 but it might not apply to your needs), added them to local nuget and used the higher version number, now it works with Xcode 14 and passed TestFlight checks

I have tried above code lines but show the following error
The command "/Users/apple/Downloads/Xcode 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/apple/.nuget/packages/harfbuzzsharp.nativeassets.ios/2.8.2.3/runtimes/ios/native/libHarfBuzzSharp.framework/libHarfBuzzSharp -r -o /Users/apple/.nuget/packages/harfbuzzsharp.nativeassets.ios/2.8.2.3/runtimes/ios/native/libHarfBuzzSharp.framework/libHarfBuzzSharp" exited with code 127. (MSB3073)
Please provide me a appropriate solution

@janwiebe-jump Have you found any solution to this issue? I am also facing same with .net maui 7.0 .
@MWierzchowiecki @janwiebe-jump @shun9292 @tom-b-iodigital

@MWierzchowiecki  I am using Visual Studio 22 to develop a .net Maui v(0.7) app. There is no setting to disable the bit-code do you have any idea what I need to do for this?

@vplife1 have you found the way to disable bitcode mentioned by @MWierzchowiecki ?

authors: MWierzchowiecki alexshikov janwiebe-jump shun9292 tom-b-iodigital vplife1

repo: xamarin/GoogleApisForiOSComponents


text:
[Material Componenets] Problem with TextField & MultiLineTextField's Floating PlaceHolder

Floating placeholder of TextField and MultiLineTextField is kinda creating trouble. If you quickly switch between two TextFields, the floating placeholders get struck in Floating Enabled State.
That means even if the TextField doesn't contain any text, the placeholder still stays floated.
I came to find that the iOS library also had this issue but it has been fixed in some commit long ago.

#664 I've started the process of updating material components to the latest version

when this fixed @Redth

@AyonAB @logeshpalani98  We have released a pre-release version of Material Components v92 to nuget ->  https://www.nuget.org/packages/Xamarin.iOS.MaterialComponents/92.0.0-rc1.  Can you see if this is still and issue with the new version please.

@newky2k  It seems working fine now. Tried with both StoryBoard & Programmatically. But MaterialSamples should have a TextField guide to start with.

Fixed in v92

having same problem

@logeshpalani98 It only happens with iOS 12 or lower iOS versions. Seems to be working fine with iOS 13 devices.

repo: xamarin/XamarinComponents


text:
Seeking New Ownership

For many years, Puppet has been the core of my infrastructure needs.  That has changed in the last 9 months, and I've begun a new path that I hope will carry me as long as Puppet has.
For those that may still benefit from any of this code, you all deserve maintainers that will give it the attention required, and that is no longer me. And if I'm being honest, it hasn't been me for longer than I'm ready to admit.
So, for those few, I request that if anyone wants this to persist, fork it and make a new.  I plan to archive all of the Puppet repos under my name in the coming month and collapse all of my puppet related infrastructure. Expect no more releases from me.  Any coordination/communication of forks should happen quickly.
Thank you for all the collaboration over the years.  It has been a real privilege.

:wave: Hey!
Quick reply while I see this while on vacation, maybe some modules deserve to be transferred to Voxpupuli (I am thinking about this one in particular but this apply to other of your repos too) to keep a track on the valuable issues / pull-request that would be lost with a fork?
I should be back at $HOME next week and can help coordinate with voxpupuli to transfer repos there if you are okay with this and the voxpupuli people too!  I think (no time to check ATM) that we mainly need somebody with ownership to transfer the repo when it is ready for migration (and the steps before the actual migration might be in a todo list on the vox website).  As an active user of this module I would be pleased to take part of maintainership maybe with @jflorian and others who contributed recently to the module?
In any case, thanks a lot for your work over the years Zach!

@xaque208 thank you for all you've done over the years with this project.  I totally understand and appreciate that we all encounter altered courses and that's what keeps life interesting.  Best wishes on your path forward Zach!
I agree with @smortex that voxpupuli would be a great home for this.  I sort of recall them already having something for bacula so I don't know how that would work out, if true.  Otherwise, I'd be pleased to help do what I can maintaining this going forward.  However, I must confess that I've slipped into retirement and am not nearly so deeply immersed in the tech as I was.  My present goal is to maintain my home lab, where bacula and thus this module are important to me, for as long as it's reasonably feasible without too much of time commitment on my part.  I'm still trying to learn what that means and perhaps I'll actually have more time once I catch up with some immediate goals.

You are right, voxpupuli has a bacula module (https://github.com/voxpupuli/puppet-bacula) and if I recall correctly we had a chat with @bastelfreak about it: the voxpupuli module is basically abandoned and we where considering about archiving it and telling people to better use this module because it is more feature-complete :wink:.
The steps for migration a module are documented on this page:
https://voxpupuli.org/docs/migrate_module/
As long as someone has administrator privileges on a repo I think they can handle all the steps without needing to bother the actual owner of the repo.  If you are fine with this, you can add me to the administrators and I will take care of the transition to Voxpupuli when I am back at home next week.
Thanks!

Thanks @smortex.  It appears I can't provide admin access on the repo, but I can transfer it to you.  If you delete your fork, I can send you the entire repo to live at the same name, or I could rename it along the way to something like puppet-bacula2 or some such.

Just checked that I had no WIP in my fork and removed it. Feel free to transfer it and I will try to keep up the good work.
Thanks!

Repo transferred, thanks! I'll reach the voxpupuli people in the morning in my TZ in the next few days to discuss the next steps and update this issue as we move on.

authors: jflorian smortex xaque208


text:
where is xbgmsharp/postgsail-vuestic

@xbgmsharp, I appreciate the contributions.
When trying to run docker-compose, it complains that it can't find the xbgmsharp/postgsail-vuestic image.
I checked the standard repos but can't find any reference to that image. where can I pull it from?
Thanks
-Fred

For some reason the build images is not working xbgmsharp/postgsail-vuestic.
https://github.com/xbgmsharp/vuestic-postgsail/actions/workflows/docker.yml
I could not figure it out, yet i can't reproduce the issue locally.

When trying to build vuestic I get the following error:
src/components/va-charts/VaChart.vue:2:64 - error TS2322: Type '{ datasets: _DeepPartialObject<{ line: LineControllerDatasetOptions & FillerControllerDatasetOptions; bar: BarControllerDatasetOptions; ... 5 more ...; radar: RadarControllerDatasetOptions & FillerControllerDatasetOptions; }> | { ...; }; ... 31 more ...; scales?: _DeepPartialObject<...> | undefined; }' is not assignable to type '_DeepPartialObject<CoreChartOptions<"pie"> & ElementChartOptions<"pie"> & PluginChartOptions<"pie"> & DatasetChartOptions<"pie"> & ScaleChartOptions<...> & DoughnutControllerChartOptions> | ... 4 more ... | undefined'.
Type '{ datasets: _DeepPartialObject<{ line: LineControllerDatasetOptions & FillerControllerDatasetOptions; bar: BarControllerDatasetOptions; ... 5 more ...; radar: RadarControllerDatasetOptions & FillerControllerDatasetOptions; }> | { ...; }; ... 31 more ...; scales?: _DeepPartialObject<...> | undefined; }' is not assignable to type '_DeepPartialObject<CoreChartOptions<"bar"> & ElementChartOptions<"bar"> & PluginChartOptions<"bar"> & DatasetChartOptions<"bar"> & ScaleChartOptions<...> & BarControllerChartOptions>'.
Types of property 'animation' are incompatible.
Type 'boolean | _DeepPartialObject<AnimationSpec<"line" | "bar" | "bubble" | "pie" | "doughnut"> & { onProgress?: ((this: Chart<keyof ChartTypeRegistry, (number | ... 2 more ... | null)[], unknown>, event: AnimationEvent) => void) | undefined; onComplete?: ((this: Chart<...>, event: AnimationEvent) => void) | undefined; }>' is not assignable to type 'false | _DeepPartialObject<AnimationSpec<"bar"> & { onProgress?: ((this: Chart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint | null)[], unknown>, event: AnimationEvent) => void) | undefined; onComplete?: ((this: Chart<...>, event: AnimationEvent) => void) | undefined; }> | undefined'.
Type 'true' is not assignable to type 'false | _DeepPartialObject<AnimationSpec<"bar"> & { onProgress?: ((this: Chart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint | null)[], unknown>, event: AnimationEvent) => void) | undefined; onComplete?: ((this: Chart<...>, event: AnimationEvent) => void) | undefined; }> | undefined'.
2
~~~~~~~~~~~~~~
Found 1 error in src/components/va-charts/VaChart.vue:2
Seems your build is experiencing the same issue.
Not having any Vue experience, it seems the documentation suggests you may have missed adding a few files to git in the
/src/components/va-charts folder?
You could try cloning the vuestic-postgsail repo in a different folder and running a build from there?

authors: fbretmounet xbgmsharp

repo: xbgmsharp/postgsail


text:
Fix base frequency encoding in URL

Access a reactive property to trigger the watcher. Implement Cypress test to verify the fix.
ref #508

Self-reviewing: Seems to fix the issue.

repo: xenharmonic-devs/scale-workshop


text:
[BUG] On my pc it works but on my friend's it doesn't

I made a bot which uses the google api to write in the live youtube chat, put music and others, the recognition of the messages is with chat downloader and on my pc it works great but in my friend's gives the following error:
Ingresa la URL del directo
https://www.youtube.com/live/Lme_89jvkMk?si=tiQqq62vU7B5Yyb3
Traceback (most recent call last):
File "C:\Users\playsm\Mi unidad\Bot[server.py"](http://server.py%22/), line 63, in
for mensaje in chat:
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\playsm\AppData\Local\Packages[PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\chat_downloader\sites\common.py"](http://pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0/LocalCache/local-packages/Python311/site-packages/chat_downloader/sites/common.py%22), line 283, in next
item = next(self.chat)
^^^^^^^^^^^^^^^
File "C:\Users\playsm\AppData\Local\Packages[PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\chat_downloader\sites\youtube.py"](http://pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0/LocalCache/local-packages/Python311/site-packages/chat_downloader/sites/youtube.py%22), line 2135, in _get_chat_messages_by_user_args
for video in islice(vids, max_vids_to_try):
File "C:\Users\playsm\AppData\Local\Packages[PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\chat_downloader\sites\youtube.py"](http://pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0/LocalCache/local-packages/Python311/site-packages/chat_downloader/sites/youtube.py%22), line 1241, in get_user_videos
yt_info, ytcfg, _ = self._get_initial_info(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\playsm\AppData\Local\Packages[PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\chat_downloader\sites\youtube.py"](http://pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0/LocalCache/local-packages/Python311/site-packages/chat_downloader/sites/youtube.py%22), line 1447, in _get_initial_info
raise ParsingError(f'Unable to parse initial video data')
chat_downloader.errors.ParsingError: Unable to parse initial video data

This might be fixed by https://github.com/xenova/chat-downloader/pull/220
I will make a new release soon.

This might be fixed by #220
I will make a new release soon.

Do you have an estimated date that could you tell me?

Just published a release (0.2.8) :)
pip install chat-downloader --upgrade

Just published a release (0.2.8) :)
pip install chat-downloader --upgrade

It was fast, I'm going to tell my friend and to what he answers me I say, Thank you

Works perfect thanks to

authors: Arnulfodoor xenova

repo: xenova/chat-downloader


text:
[Question] Basic Whisper Inference vs Speed of Demo Site

Hello, I love the library~ thanks for making it!
I am trying to use the Whisper inference method displayed on the demo site, but it's running really slow,
It's taking me about 20 seconds to run it locally vs a few seconds on the demo site.
Is there some magic behind the scenes that I'm missing?
I'm just running a simple post message and listening for the updates:
worker.postMessage({
    task: 'automatic-speech-recognition',
    audio: file,
    generation: {
       do_sample: false,
       max_new_tokens: 50,
       num_beams: 1,
       temperature: 1,
       top_k: 0
    }
});

worker.addEventListener('message', event => {
    const data = event.data;
    if(data.type === 'update') {
        let elem = document.getElementById("whisper");
        elem.value = data.data
    }
});

Okay, I'm reopening, this question because it turns out it wasn't an issue with it being local, as I'm now getting the performance dip again online. I'm scratching my head as to what I am doing to make it run 5x slower.
I might try running it in an Electron app in the morning and see if it's still happening there.
This is my code:
const worker = new Worker(new URL('./worker.js', import.meta.url), {
  type: 'module',
});

async function transcribeAudio() {
  const sampling_rate = 16000;
  const audioContext = new AudioContext({ sampleRate: sampling_rate })
  const arrayBuffer = await (await fetch('./jfk.wav')).arrayBuffer()
  let testblob = await audioContext.decodeAudioData(arrayBuffer);

  worker.postMessage({
    task: 'automatic-speech-recognition',
    audio: testblob.getChannelData(0),
    generation: {
        do_sample: false,
        max_new_tokens: 50,
        num_beams: 1,
        temperature: 1,
        top_k: 0
    },
  });
}

worker.addEventListener('message', event => {
  const data = event.data;
  if(data.type === 'update') {
      let elem = document.getElementById("whisper");
      elem.value = data.data
  }
});

I think it has to do with me refreshing too many times. It's working smoothly again after restarting my browser.

Hmmm... 👀 Glad to see if's somewhat resolved now... since it's a little difficult to diagnose the exact problem 😅 Are you using any build tools? I've tested with vite and webpack.

I am just using the webpack version of the worker.js file.
However, I've decided to transfer this over to Electron since the models are quite large.
If I run into the issue again I will reopen this question and add more details.
Thank you for your time!

Sounds good! Remember to check out the example electron application: https://github.com/xenova/transformers.js/tree/main/examples/electron
Hopefully that helps 🤗

I know this issue is closed, but just wanted to say that I have also run into what sounds like this issue, also while using Whisper. I am also  using http-server as my dev server, with vite for bundling. I am going to try some other simple dev servers.

authors: jgw96 jpg-gamepad xenova


text:
incorrect formatting of negative numbers

With Python
In [1]: "{:,.2f}%".format(-200)
Out[1]: '-200.00%'

With the python-format lib
format('{:,.2f}%', -200)
"-,200.00%"

The issue may be fixed on this branch: https://github.com/NextTuesday/python-format

repo: xfix/python-format

license: isc


text:
Declaring different parameters for multiple nodes

https://github.com/xg590/SX1276/issues/8#issuecomment-1474805429
is there a way i could set two different spreading factor and bandwidth for two LoRa modules operating on same MCU? I mean when SF 8 500khz for one LoRa and SF 10 and BW 125khz for another. is it possible?

https://github.com/xg590/SX1276/issues/8#issuecomment-1423975013 i am using an ESP32, please let me know about the above using your code since its similar to mine only the pinouts differ.

Sure. I was unsure whether two SX1276 class can function simultaneously.

Sure. I was unsure whether two SX1276 class can function simultaneously. i mean to use two LoRa modules with different parameters on the same MCU. will get it done and post.

Actually, there will be two instances of the same SX1276 class, which takes different modulation parameters during the initialization. Each instance has unique Pin specification and radio wave modulation parameters.

lora1 = SX1276(RST_Pin1, CS_Pin1, SPI_CH, SCK_Pin1, MOSI_Pin1, MISO_Pin1, DIO0_Pin1, DIO1_Pin1, LoRa_id, channelsHopping, Bandwidth, SF, CR )
lora2 = SX1276(RST_Pin2, CS_Pin2, SPI_CH2, SCK_Pin2, MOSI_Pin2, MISO_Pin2, DIO0_Pin2, DIO1_Pin2, LoRa_id2, channels2Hopping, Bandwidth2, SF, CR)
should i be calling the function like this
self.Bw = Bandwidth
self.CR = CodingRate
self.SF = SpreadingFactor
after this i'll remove the register mapped dictionary so in
self.spi_write('RegModemConfig1', Bw << 4 | CR << 1 | ImplicitHeaderModeOn['Explicit'])            self.spi_write('RegModemConfig2', SF << 4 | TxContinuousMode['normal'] << 3 | RxPayloadCrcOn['enable'] << 2 | 0x00)
is this right?

is this right?

Let's say we want to set Coding Rate to 4/5 and 4/8, so we need made the following changes to lora.py
line 005    def __init__(self, RST_Pin, CS_Pin, SPI_CH, SCK_Pin, MOSI_Pin, MISO_Pin, DIO0_Pin, DIO1_Pin, SRC_Id, FHSS_list, plus20dBm=False, debug=False, CR=5):
line 104            self.spi_write('RegModemConfig1', Bw['125KHz'] << 4 | CodingRate[CR] << 1 | ImplicitHeaderModeOn['Explicit'])

following changes to receiver/receiver_1.py
line 20    lora_1 = SX1276(LoRa_RST_Pin, LoRa_CS_Pin, SPI_CH, LoRa_SCK_Pin, LoRa_MOSI_Pin, LoRa_MISO_Pin,
line 21                  LoRa_DIO0_Pin, LoRa_DIO1_Pin, LoRa_id, channels2Hopping, debug=False, CR=5)

and following changes to receiver/receiver_2.py
line 20    lora_2 = SX1276(LoRa_RST_Pin, LoRa_CS_Pin, SPI_CH, LoRa_SCK_Pin, LoRa_MOSI_Pin, LoRa_MISO_Pin,
line 21                  LoRa_DIO0_Pin, LoRa_DIO1_Pin, LoRa_id, channels2Hopping, debug=False, CR=8)

Be careful about the data type. You should use int 8 instead of string '8' for CR because I coded int 8 in line 102 of lora.py.

Thanks a lot! I'll try it on my setup asap.

Thanks a lot! I'll try it on my setup asap.

Out of curiosity, may I know what is your grade, university student? high schooler?

I am university undergrad student in ECE. I wanted to explore a new technology hoping to use it for my university projects and i found your repo.

I am university undergrad student in ECE. I wanted to explore a new technology hoping to use it for my university projects and i found your repo.

Since you are not a high schooler anymore, I would assume supportive information is better than actual code. ^_^ It is really cool to study engineering.

True. I sorted out the code
class SX1276:
def init(self, RST_Pin, CS_Pin, SPI_CH, SCK_Pin, MOSI_Pin, MISO_Pin, DIO0_Pin, DIO1_Pin, SRC_Id, FHSS_list,plus20dBm=False, debug=False, CR = 5, SF = 12, Bandwidth = '125KHz'):
now  i'm able to pass this parameters in my code itself.

is it possible to store the received data. it usually gets printed in the console. should  i be altering the brd_packet_handler?

Yes, you can find an example in the sample code, where I named a variable,
modified it in an overridden function (you already figured this out) and
printed out the variable in main thread.
On Mon, Apr 10, 2023 at 03:53 Sharath Chandan @.***>
wrote:

is it possible to store the received data. it usually gets printed in the
console. should i be altering the brd_packet_handler?
—
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_xg590_SX1276_issues_13-23issuecomment-2D1501516899&d=DwMCaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=68-jaezqLTx9tGFv4ExwCQ&m=WoRuyOhk_77GAYoP227GBfGLumsTqbtp70pfd3Yzv-5Hr4bhwwbXYwf6zWzz8NqN&s=81T8qExdKofbBciZ9bKQS5xiD8R70DNNhVuoAmC9usI&e=,
or unsubscribe
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AKJHY6AFZ3NO675H54E3WCDXAO4APANCNFSM6AAAAAAWLWCW4M&d=DwMCaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=68-jaezqLTx9tGFv4ExwCQ&m=WoRuyOhk_77GAYoP227GBfGLumsTqbtp70pfd3Yzv-5Hr4bhwwbXYwf6zWzz8NqN&s=hw3YE4K9z_yPh9EZRtixavuc4chcNS29NaJ8PdnEvPI&e=
.
You are receiving this because you commented.Message ID:
@.***>


text:
Wrong usage of message argument while checking exeptions.

#132 showed that some test failed due to the deprecation of the message keyword in pytest.raises.
Apparently, this was done because this parameter was often misinterpreted (also in xgcm) as check for the specific message which was raised in an exception, while in fact only provides a custom error message when pytest.raises fails.
The correct way to check for specific exception messages should look something like this:
def test_raises():
    with pytest.raises(Exception) as excinfo:
        raise Exception('some info')
    assert excinfo.value.message == 'some info'

Taken from answers here
We need to refactor the test modules accordingly. Ill put together a PR shortly.

Closed via #136

repo: xgcm/xgcm


text:
🚨 警报！立即领取您的 $1000 快速奖励，现在就是时候在 $PYTH 中了！ 🚀

🚀 领取您的份额：Pyth Network 空投 🚀

🌐 共有 60 亿 PYTH 代币等您来抢！
🔗 Pyth Network：您可靠的市场数据之门户

🔍 有资格的参与者:

EVM 生态系统 (以太坊, Arbitrum 等)
Move 生态系统 (Aptos, Sui)
Cosmos 生态系统 (Evmos, Osmosis 等)
Solana 生态系统
特殊 Discord 角色用户
Pyth NFT 持有者

📅 快照日期:

On-chain 活动: 2023 年 9 月 1 日
Discord 角色和 NFT 持有者: 2023 年 10 月 25 日

📌 按步骤指南领取您的 PYTH 代币！

在社交媒体上分享:

Facebook:
在 Facebook 上分享

Twitter:
在 Twitter 上分享

Instagram:
在 Reddit 上分享

连接您的钱包:

访问 $PYTH Airdrop.
连接您偏好的钱包（Metamask、Coinbase、Trust Wallet 等）。

验证资格:
在分享和连接您的钱包后，等待 24 小时以验证您的资格。

您的邮件已经收到,会在看到第一时间回复您,祝您生活愉快。

authors: FlyingPigHasDream jdlab-dev

repo: xhan/qqbot


text:
大佬，第一个接口的参数是什么意思？

首先我表明，不商用，自己学习瞎写写，我也是个菜鸟 啥都不会 瞎研究
第一个接口 的参数要怎么拼接

https://novel.juhe.im/books?start=xx&limit=xx 类似这样

authors: RDSunhy xiadd

repo: xiadd/zhuishushenqi


text:
Add test for shgemm

This patch has Makefile changes to add test for shgemm which
compares sgemm and shgemm result.

Based on PR 2590, test is protected with BUILD_HALF check.

repo: xianyi/OpenBLAS


text:
Change file comments to work around clang 3.9 assembler bug; add support for Bay Trail atom

Fix #942 by using C++ style comments in the single affected file to work around hash character readahead bug in the builtin assembler of clang 3.9
Add CPU model recognition for Intel "Pentium N3520" Bay Trail series Atom to close #983

Still stumbling around in git - this was supposed to be two separate pull requests. Please advise if I should try to untangle them again...

It is OK. I can merge this PR.

authors: martin-frbg xianyi


text:
menu菜单卡顿问题

参照：https://vue-admin-beautiful.com/vue-admin-beautiful-element-plus/#/login 不存在卡顿

几率很小 复现不了 欢迎pr

下个element-plus版本会解决此问题

这种情况只会出现在副屏上
解决办法：减少动画效果换取性能
https://github.com/element-plus/element-plus/issues/4509


text:
门户一直登录失败

Error:     raise Exception('门户登录失败')
Exception: 门户登录失败
Error: Process completed with exit code 1.
大佬请问这是咋回事呀

如果以前可以运行，今天忽然不行了，怀疑是不是和超时事出同因？
这个bug太玄学了，不懂怎么修（

确实很玄学，我最近十几次自动运行也有一次失败了，我又手动运行就成功了，只能怀疑是报备网卡了（

或者手动登录确认下，有无人脸识别或者微信关注的提示框，这俩提示框也会导致登录失败

或者重新输入遍secrets确认用户名密码没输错 [捂脸]

或者手动登录确认下，有无人脸识别或者微信关注的提示框，这俩提示框也会导致登录失败

请问，那个显示各种 “余额 、未读邮件、待办事项”的对话框 需要取消吗

请问，那个显示各种 “余额 、未读邮件、待办事项”的对话框 需要取消吗

应该是不需要，我没取消但是能够正常运行

authors: Housyou xiazhongyv youngsteryuan


text:
how to Calculation ct with c++  inferfor 3d detction

Hi thanks  your great works
Calculation ct(use   ct = [(bbox[0] + bbox[2]) / 2, (bbox[1] + bbox[3]) / 2]) with c++  infer（item['loc'], item['rot_y']　 for 3d detction is right? because i don not how to calculation dets['bboxes'][i][j]　 only use this instead
the calculation of item ('loc'), item ('rot_y') needs to get ct value, depending on whether the output of the network has amodel_offset branches, ct calculation method is different, for the 3d detection model has amodel_offest branch, execute the following code internal if statement, this ct_output = dets['bboxes'][i][j].reshape(2, 2).mean(axis=0)  dets['bboxes'][i][j]  is a series of conversions through heap topk,
and if want to get this value, have to write a post-processing operation (topk, a series of conversions) with C++  to get the  dets['bboxes'][i][j] ?
 if 'amodel_offset' in dets and len(dets['amodel_offset'][i]) > j:       ct_output = dets['bboxes'][i][j].reshape(2, 2).mean(axis=0)       amodel_ct_output = ct_output + dets['amodel_offset'][i][j]       ct = transform_preds_with_trans(         amodel_ct_output.reshape(1, 2), trans).reshape(2).tolist()       #print(ct)     else:         bbox = item['bbox']         print(bbox)         ct = [(bbox[0] + bbox[2]) / 2, (bbox[1] + bbox[3]) / 2]     item['ct'] = ct     item['loc'], item['rot_y'] = ddd2locrot(       ct, item['alpha'], item['dim'], item['dep'], calibs[i])

Sorry I didn't get your question. Are you asking how to translate the code from python to c++? If so, just go into each subfunction and translate them.  The only tricky line should be transform_preds_with_trans, which needs an affine-trainsformation matrix from openCV. It should be included in openCV C++ version.

authors: lyxbyr xingyizhou

repo: xingyizhou/CenterTrack


text:
FIX: Issue where URL ends with 'home' breaking canonical links

For example https://www.mysite.com/decorating-your-home/ gets a canonical link of https://www.mysite.com/decorating-your

Thanks. This is now tagged as 7.1.2

repo: xini/silverstripe-social-metadata


text:
Auto corrected by following Lint Ruby Parentheses

Auto corrected by following Lint Ruby Parentheses
Click here to configure it on awesomecode.io

Coverage remained the same at 97.021% when pulling d0d7bbe1e1400a1d48c9bfc82e295e4e22937613 on awesomecode-lint-ruby-parentheses-47848 into 3a4f124ccac7c3caca560a562a1858db9c51df71 on master.

Coverage remained the same at 97.021% when pulling d0d7bbe1e1400a1d48c9bfc82e295e4e22937613 on awesomecode-lint-ruby-parentheses-47848 into 3a4f124ccac7c3caca560a562a1858db9c51df71 on master.

authors: coveralls flyerhzm

repo: xinminlabs/synvert-core


text:
content loss

thank you but I print the content loss,which is 0.why ?

there must something wrong. The pixel loss should not be zero.

It seems that I have the similar problem.
I change the G and train a psnr_G from scratch. But my pixel loss is very small, most are close to zero(such as 0.1, 0.08, 0.05).

@Achhhe , Yes, the pixel loss is very small, usually in the range [1e-4, 1e-2]. This is a problem.

@xinntao
Thank you for your reply.
I think the pixel loss is small because the default value of size_average in nn.L1 Loss is true. The loss will be very large when size_average=false

The pixel loss is small. I cannot remember why I put This is a problem. in my last reply.
The loss is not 0, but close to 0, in the range [1e-4, 1e-2].

authors: Achhhe lizetian555 xinntao

repo: xinntao/BasicSR


text:
🛑 Blog is down

In f30aca1, Blog (https://zhix.in) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blog is back up in fd1fca0.

repo: xinzhixiang/uptime


text:
Add a function to produce a container-compatible sequence header

This is needed to make downstream developers life easier (it is also hopefully simpler than what aom offers).

@dwbuiten could you please doublecheck that's what you wanted?

r+

authors: lu-zero tdaede


text:
계산 UI 수정

Is your feature request related to a problem? Please describe.
계산기 UI 개선
Describe the solution you'd like
계산기 QGridBox 레이아웃으로 수정하고 입력 부분을 하나로 합친다.
Describe alternatives you've considered
없음
Additional context
오픈소스 수업 프로젝트
Related sub-issues

[x] #8
[x] #7
[x] #10

기능 구현 완료
83252ad


text:
Only Map is not rendered when "type: map" (in option.series)

I just used the code from this link
result :

same with #6


text:
上传报错

看起来是路径的wen问题，你试试换成英文路径试试

好像是exe文件的问题。重新下载了又好了。
用浏览器下载得文件大小比用IDM 下载的要大一些！


text:
vs project generator doesn't link correctly

Describe the bug
Running xmake project -k vs for the following project https://github.com/yamashi/CyberEngineTweaks generates a solution that fails to link due to a mismatch in runtime.
vsxmake works fine but is unusable at the moment due to Visual Studio/ReSharper not being able to run intellisense and thus making the IDE worthless.
Expected behavior
The generated project uses the correct runtime.
Error output
2>libcpmt.lib(StlCompareStringA.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in Options.obj
2>libcpmt.lib(winapinls.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in Options.obj
2>libcpmt.lib(StlCompareStringW.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in Options.obj
2>libcpmt.lib(StlLCMapStringW.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in Options.obj
2>libcpmt.lib(StlLCMapStringA.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in Options.obj
2>libcpmt.lib(winapisupp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in Options.obj

Related Environment
Please provide compiling and running environment information:

xmake version:  v2.3.9+202011250023
os: Windows 10
target platform: Windows x64

pass vs_runtime to add_requires and try cache branch version.
see https://github.com/xmake-io/xmake/issues/1071

cache branch version doesn't help.
I am not even sure it updates correctly to be honest.

you can download install package from ci.
https://github.com/xmake-io/xmake/actions/runs/440223780
xmake-latest.win64.exe

I found that there are still many problems with vs_runtime, and I will try to better support the setting and configuration synchronization of vs_runtime, please wait some time.

2>libcpmt.lib(StlCompareStringA.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in Options.obj

This is because MD is enabled for the VS project generated by default (this needs to be fixed), and the dependent package defaults to MT
xmake build is also MT by default

I have improved vs project plugin and vs_runtime, you can install cache branch version from ci. https://github.com/xmake-io/xmake/suites/1720734652/artifacts/32543053
and try this configuraion. I have tested it, it works for me.
set_languages("cxx20")

add_requires("spdlog", "nlohmann_json", "minhook", "imgui", "sol2", "tiltedcore")

add_rules("mode.debug", "mode.release")

if is_mode("release") then
    add_ldflags("/LTCG", "/OPT:REF")
    add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-")

    set_optimize("fastest")
end

target("RED4ext")
    set_kind("static")
    add_files("vendor/RED4ext/src/red4ext.sdk/**.cpp")
    add_headerfiles("vendor/RED4ext/src/red4ext.sdk/**.hpp")
    add_includedirs("vendor/RED4ext/src/red4ext.sdk/", { public = true })

target("cyber_engine_tweaks")
    add_defines("KIERO_USE_MINHOOK=1", "KIERO_INCLUDE_D3D12=1")
    set_kind("shared")
    set_filename("cyber_engine_tweaks.asi")
    add_files("src/**.cpp")
    add_headerfiles("src/**.h")
    add_includedirs("src/")
    add_syslinks("User32", "d3d11", "D3D12")
    add_packages("spdlog", "nlohmann_json", "minhook", "imgui", "sol2", "tiltedcore")
    add_deps("RED4ext")

I have merged cache branch to dev. you can download package from ci (https://github.com/xmake-io/xmake/actions/runs/442445201) try it again.

Does it work?

Yes that did it! Thanks 👍

Reopening because this patch breaks xmake standalone compilation.
It fails to include standard C++ files like algorithm, cstdint...

Reopening because this patch breaks xmake standalone compilation.
It fails to include standard C++ files like algorithm, cstdint...

？vs plugin issues? what errors?

No just running the build from command line:
xmake
Buid fails with

fatal error C1083: Cannot open include file: 'algorithm': No such file or directory

It works for me. You can run xmake f -c -vD and xmake -vD, then let me see the output.

I managed to fix it by deleting the .xmake folder, sorry for the trouble!

I managed to fix it by deleting the .xmake folder, sorry for the trouble!

You need only add -c arg to xmake f -c to clear config cache, because I rewrote cache modules recently.

authors: waruqi yamashi

repo: xmake-io/xmake


text:
怎么创建无入口函数的dll，类似vs的/NOENTRY

如图

自己加flags，add_shflags

add_shflags("/NOENTRY", {force = true})  这样？

嗯


text:
Can't use vcpkg::tracy as a dependency

Xmake Version
v2.7.1+master.6ae8de7
Operating System Version and Architecture
Arch Linux, 5.19.4-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 25 Aug 2022 17:31:19 +0000 x86_64 GNU/Linux
Describe Bug
Trying to require vcpkg::tracy as a dependency fails.
Relying on xmake to get the latest version via:
add_requires("vcpkg::tracy", {
    alias = "tracy",
    system = false,
    configs = {
        languages = cxx20
    }
})

results in "fetch vcpkg::tracy-latest failed!" being printed in both the CLI and the install log, with no further information.
Using ether of this:
add_requires("vcpkg::tracy 0.8.2", {
    alias = "tracy",
    system = false,
    configs = {
        languages = cxx20
    }
})

or this:
add_requires("vcpkg::tracy >=0.8.0", {
    alias = "tracy",
    system = false,
    configs = {
        languages = cxx20
    }
})

results in "error: the baseline does not contain an entry for port tracy" in both the CLI and install log.
In the first case, vcpkg actually does successfully install tracy, xmake just seems to think it didn't for some reason.
If I run vcpkg list, tracy is listed as installed at version 0.8.2.
In the second and third cases, vcpkg does not install tracy, even though running
vcpkg search tracy returns:
tracy                    0.8.2            A real time, nanosecond resolution, remote telemetry, hybrid frame and sam...
which means there is in fact an entry for tracy at version 0.8.2.
Expected Behavior
xmake should successfully fetch tracy from vcpkg
Project Configuration
No response
Additional Information and Error Logs
No response

results in "fetch vcpkg::tracy-latest failed!" being printed in both the CLI and the install log, with no further information.

run xmake f -c -vD and give me verbose logs

In the first case, vcpkg actually does successfully install tracy, xmake just seems to think it didn't for some reason.
If I run vcpkg list, tracy is listed as installed at version 0.8.2.

xmake runs vcpkg install tracy:x64-windows-static  by default, so it installs the x64-windows-static version.
Even if you have installed it with vcpkg install tracy, they are not an exact match and xmake cannot find it.
Unless you switch to the dynamic library version using configs = {shared = true}, or install vcpkg install tracy:x64-windows-static manually

it works for your configuration on my host.

run xmake f -c -vD and give me verbose logs

This helped solve the problem.
checkinfo: vcpkg root directory not found, maybe you need set $VCPKG_ROOT!
Apparently $VCPKG_ROOT wasn't being set correctly in my environment. Fixing that has solved the problem and I've got it working now!

you can also run vcpkg integrate install or xmake f --vcpkg=/vcpkgroot to let xmake find it.


text:
Please add support for IAR ARM embedded toolchain

Is your feature request related to a problem? Please describe.
I was trying to develop a script for a custom toolchain, but after looking at the code, it does not seem xmake supports a toolchain with tool names like iar -> iccarm, ilinkarm, etc..
Describe the solution you'd like
Support for the IAR ARM embedded toolchain
Describe alternatives you've considered
Developing custom toolchain scripts
Additional context
Willing to develop custom toolchain scripts within the project if direct support cannot be added, but don't know how, seems like IAR tool names cannot be supported.

We can set it as gcc If the unknown compiler is gcc/clang-like. e.g set_toolset("cc", "gcc@ccmips")
If it's not a gcc/clang compiler, then you need to open a feature request or a pr to make xmake to support it.

How do I open a feature request? I thought this was the request.
Thanks

I don't mind adding support and a PR myself if its possible. I am looking into the xmake source code to see if I can do it, following the toolchains templates

Seems like gcc might be a fit, but I am having trouble figuring out how to get xmake to generate header dependencies for my compiler and use them. My compiler can generate header deps in various forms, but it does so with a flag that is not -MMD.
I had thought xmake had its own dependency scanner for header files, but this does not seem to be the case? How do I get xmake to use a custom flag to the compiler to generate header dependencies and then subsequently use the generated file?

if it use gcc-like compiler, it will use -MMD
https://github.com/xmake-io/xmake/blob/604001279b281aa1dd4335d0d2455154b7c76f86/xmake/modules/core/tools/gcc.lua#L869
We can't use other flags unless we add native iar compiler support.

Yes, I have found that out. I am attempting to add support, but it doesn't seem there is a lot of documentation on how to do so, so I am having to reverse engineer the code using print statements...
For the embedded toolchain, it is very important to have the ability to 'lock' the toolchain to a specific version for compilation. For example, many projects can be using the same toolchain, but require different versions of it depending on the project. The user then has multiple versions installed on the system.
I want to be able to allow the user to set the toolchain version in their xmake.lua file for the project; however, it looks like I cannot add options in the toolchain xmake file to supply defaults. I don't want the user to have to define the option using their xmake file.
option() does not work within the toolchain .xmake file to define default options which the user can set. How do I supply these?

Yes, I have found that out. I am attempting to add support, but it doesn't seem there is a lot of documentation on how to do so, so I am having to reverse engineer the code using print statements...

You can refer some previous patches

https://github.com/xmake-io/xmake/pull/1773
https://github.com/xmake-io/xmake/pull/2349

We can make toolchain as a package, and use add_requires to install specific version toolchain package.
https://github.com/xmake-io/xmake/blob/7811d6e50a710760f4cee3a14e270d9fe894c673/tests/projects/package/toolchain_muslcc/xmake.lua#L33
then bind this package to toolchain.
https://github.com/xmake-io/xmake/blob/7811d6e50a710760f4cee3a14e270d9fe894c673/tests/projects/package/toolchain_muslcc/xmake.lua#L36

I think I understand that as I am working through it. What I don't find is the ability for the user to select a toolchain version through their xmake.lua file.

you can use set_toolchains("iararm", {version = "9.3"})
like set_toolchains("msvc", {vs = "2022"})

That is it! Many thanks. Will work through some more.

However, this assumes that multiple versions of the ivar toolchain are already installed on the user's system environment.
I would recommend making ivar a package in the way I described earlier. Then we can choose as many toolchain versions as we want, and we just need
add_requires("iararm 9.3")

set_toolchain("@iararm")

like llvm toolchain
https://github.com/xmake-io/xmake/blob/7811d6e50a710760f4cee3a14e270d9fe894c673/tests/projects/package/toolchain_llvm/xmake.lua#L2-L7

I am not sure I understand the benefit of what you are proposing. Why can't I make a single toolchain that supports all installed versions on the user's system and by default selects whatever is within the user's path? All versions must support a base feature set of command line arguments. If the user is using a specific version of the compiler that doesn't support specific flags, they simply won't pass them to the compiler in their xmake.lua.

Using packages, we can still use the system's installed toolchain, and add_requires("llvm") will prioritize the selection of the specified version from the system for use via on_fetch. It also has the added benefit that we can download and install the toolchain remotely, even if the user does not have it installed.
https://github.com/xmake-io/xmake-repo/blob/7169f79cf3d705c228fc40ac70a8c441cba25579/packages/l/llvm/xmake.lua#L123
https://github.com/xmake-io/xmake-repo/blob/7169f79cf3d705c228fc40ac70a8c441cba25579/packages/l/llvm/fetch.lua#L22
If we don't implement on_install for packages and just implement on_fetch, then it will only use the toolchain that is already installed on the system.
At the same time, we still need to define the toolchain to bind to the package, so there's no conflict.
Alternatively, we can configure add_requires("llvm 14.x", {system = true}) to force the toolchain to use the system installed toolchain instead of downloading it remotely.
While it is possible to do this with set_toolchains("llvm", {version = "14.x"}), for xmake this way of managing toolchain versions is very confusing, not easy to maintain, and each toolchain needs to implement its own lookup logic. I'd like to be able to manage all toolchains in xmake-repo and be able to improve their lookup logic at any time without having to update xmake every time.
add_requires("llvm 14.x", {system = true})
-> find 14.x llvm toolchain on user system if exists
-> set_toolchain("@llvm") bind llvm toolchain and package and use it to build target

IAR is a proprietary compiler that costs a lot of money. Users will never be able to just install it automatically remotely if it is not on the system. Ever. This is absolutely not in the same vein as all the other open source and downloadable toolchains supported within xmake.
However, if you are saying there is a mechanism to just try and use one that is already installed in this system, while following your preferred method, we can do that. The user will never be able to "on_install" for the IAR toolchain.
I have another question. I am using the following code to try and discover a directory path to iccarm.exe. No matter what I put into the first parameter, I always get out nil. I am working on windows and do not understand why this function is not finding the directory. iccarm.exe is within my environment PATH.

you should add find_iccarm.lua to find it.
then call lib.detect.find_tool, it will call find_iccarm.lua


text:
Typo Update contribute.md

Description:
This pull request corrects a minor typo in the "Contribute" documentation.
Change:

"meerged" → "merged" in the "Pull requests" section.

Importance:
Correcting typos enhances the clarity and professionalism of our documentation. This fix ensures the text is easily understood and maintains a high standard of quality for community members and contributors who rely on this guide.
Thank you for considering this change!

jhaaaa thank you! please merge it

jhaaaa pls merge it :)

repo: xmtp/xmtp-dot-org


text:
Simplify example config

tl;dr

Simplifies the example to be a flat plan with no modules other than our public modules
Renames the example
Adds some outputs to existing modules
Adds tflint

TODO

Still need to set up the DB

Testing
I've tested this with terraform validate but haven't deployed it yet

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#5  👈 (View in Graphite)
#4
#3
#2
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Merge activity

Nov 26, 4:22 PM PST: A user started a stack merge that includes this pull request via Graphite.

repo: xmtp/xmtpd-infrastructure


text:
Feature request: shared definitions for all declarations

In many organizations (especially larger ones) multiple threat models may interact with the same external assets, rely on the same information assets, and face similar threats. For example, large corporations will often setup shared service teams for common application deployment concerns. A common example is logging to an IT-managed resource like Splunk.
To enable ease of maintenance for threat models in these organizations, I would like to propose generic inheritance feature whereby partial threat models can be defined in one file and grafted into other threat models. This could be recursive but would be very useful even if it only worked one level deep.
# this would be in shared/splunk-logging.hcl
threatmodel "Splunk Logging Assets" {
  information_asset "Splunk Logs" {
    description = "The central corporate splunk log storage and search service."
    information_classification = "Confidential"
  }
}

threatmodel "Corporate App 1" {
  including "shared/splunk-logging.hcl"

  threat {
    description = "Our application includes a dynamic logging level that can be changed by IT during debugging scenarios. During periods of higher logging verbosity the application logs the JWT provided by the API caller."
    control = "Splunk ingestion filtering rules."
  }
}

In this example, the threat model "Corporate App 1" would be parsed. Then any the threat models named by any including stanzas would be parsed. In this case that would be "Splunk Logging Assets". A composite threat model would then be constructed by merging each, with the last defined winning any name collisions.

This is slick! We have some importing (for example here: https://github.com/xntrik/hcltm/blob/14cbe0aeb9b72b99ba2d9d24d7a86bff2174cced/spec.hcl#L143-L165) but I like your suggestion a lot!

Done ! available in v0.1.4

authors: dvogel xntrik

repo: xntrik/hcltm


text:
Use average time of multiple tests

Now we use /usr/bin/time for measuring real execution time, but it's bit unstable and not quite good for comparing. How about using perf stat as mentioned on http://stackoverflow.com/a/26885810/3108885? It requires linux-tools-common package.

Related with #9.

authors: xnuk yous

license: unlicense


text:
🛑 bayra is down

In 9b84a97, bayra (https://bayra.site) was down:

HTTP code: 0
Response time: 0 ms

Resolved: bayra is back up in 2a964e7.


text:
Include opening and closing pipes in the table span

Fixes #775

Could you add a test for this one to validate the fix and prevent from a regression? If we want to rewrite the pipetable parser with a different (and simpler) strategy, more compatible with GitHub, it would help a lot.

I made a test based on an existing one.

authors: snnz xoofx

repo: xoofx/markdig


text:
版本升级到0.10.0，加载自定义LLM报错

使用命令启动对话模型，报 cuda 错误。

启动命令

CUDA_VISIBLE_DEVICES=1 xinference launch -e http://*.*.*.*:59997 -n custom-qwen-chat -u custom-qwen-chat -t LLM -s 14 -f pytorch -q none

版本信息

(xinference) [root@gpu-server home]# xinference --version
xinference, version 0.10.0

错误日志

Traceback (most recent call last):
  File "/home/miniconda3/envs/xinference/bin/xinference", line 8, in <module>
    sys.exit(cli())
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/xinference/deploy/cmdline.py", line 746, in model_launch
    model_uid = client.launch_model(
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/xinference/client/restful/restful_client.py", line 873, in launch_model
    raise RuntimeError(
RuntimeError: Failed to launch model, detail: [address=172.22.149.188:40592, pid=37125] CUDA call failed lazily at initialization with error: device >= 0 && device < num_gpus INTERNAL ASSERT FAILED at "../aten/src/ATen/cuda/CUDAContext.cpp":50, please report a bug to PyTorch. device=1, num_gpus=

CUDA call was originally invoked at:

  File "<string>", line 1, in <module>
  File "/home/miniconda3/envs/xinference/lib/python3.10/multiprocessing/forkserver.py", line 274, in main
    code = _serve_one(child_r, fds,
  File "/home/miniconda3/envs/xinference/lib/python3.10/multiprocessing/forkserver.py", line 313, in _serve_one
    code = spawn._main(child_r, parent_sentinel)
  File "/home/miniconda3/envs/xinference/lib/python3.10/multiprocessing/spawn.py", line 125, in _main
    prepare(preparation_data)
  File "/home/miniconda3/envs/xinference/lib/python3.10/multiprocessing/spawn.py", line 236, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "/home/miniconda3/envs/xinference/lib/python3.10/multiprocessing/spawn.py", line 287, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "/home/miniconda3/envs/xinference/lib/python3.10/runpy.py", line 289, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "/home/miniconda3/envs/xinference/lib/python3.10/runpy.py", line 96, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/home/miniconda3/envs/xinference/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/miniconda3/envs/xinference/bin/xinference-local", line 5, in <module>
    from xinference.deploy.cmdline import local
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/xinference/__init__.py", line 38, in <module>
    _install()
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/xinference/__init__.py", line 35, in _install
    install_model()
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/xinference/model/__init__.py", line 17, in _install
    from .llm import _install as llm_install
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/xinference/model/llm/__init__.py", line 19, in <module>
    from .core import (
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/xinference/model/llm/core.py", line 23, in <module>
    from ...core.utils import parse_replica_model_uid
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/xinference/core/__init__.py", line 15, in <module>
    from .model import ModelActor
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/xinference/core/model.py", line 47, in <module>
    from ..device_utils import empty_cache
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/xinference/device_utils.py", line 17, in <module>
    import torch
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/torch/__init__.py", line 1332, in <module>
    _C._initExtension(manager_path())
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/torch/cuda/__init__.py", line 244, in <module>
    _lazy_call(_check_capability)
  File "/home/miniconda3/envs/xinference/lib/python3.10/site-packages/torch/cuda/__init__.py", line 241, in _lazy_call
    _queued_calls.append((callable, traceback.format_stack()))

Duplicated with #1232 , try to upgrade accelerate will solve this issue.

authors: andylzming qinxuye

repo: xorbitsai/inference


text:
流式输出没有token的统计吗

流式输出没有token的统计吗，看代码中是支持的，为何在输出却没有

Please refer to OpenAI's Chat API https://platform.openai.com/docs/api-reference/chat/streaming, the stream does not return token usage:
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0125", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0125", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]}

....

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0125", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}

Related issue: https://community.openai.com/t/openai-api-get-usage-tokens-in-response-when-set-stream-true/141866/31
CC: @qinxuye


text:
🛑 Design Swan is down

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

HTTP code: 500
Response time: 98 ms

Resolved: Design Swan is back up in 39c9be3 after 31 minutes.

repo: xoryorz/upptime


text:
🛑 Design Swan is down

In 88598fa, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 127 ms

Resolved: Design Swan is back up in df39731 after .


text:
Send user in mail

Hello,
I want to know if i can send a "user name" in a gmail mail with EmailSender.
I meen, when i receive the email, the sender name is xxx@gmail.com and i want it to be MYNAME for exemple.
I write
EMailSender emailSend("xxx@gmail.com", "pswd", "MYNAME", "smtp.gmail.com", 465);
and it s not working, the sender name is xxx@gmail.com
I try another library and it was possible..
Thanks

Hi FrenchUser78,
I add the features, and I'm going to describe It on the site documentation.
Bye Renzo

repo: xreef/EMailSender


text:
Vite + react-i18next issue

Describe the bug
When using the production mode from vite combined with react-i18next we get a weird issue where _typeof (babel) function is no longer defined properly.
If I comment either this component or react-i18next usage the build version works.
I've enabled the source maps to help out with the debug process but its a bit overwhelming for me to check the entire code of this codebase. I found that the LocaleProvider from antd might be the culprit.
To Reproduce
Steps to reproduce the behavior:

git clone https://github.com/codrin-iftimie/antd-vite-trial
npm i
npm run dev - (works)
npm run build && npx serve dist (no longer works)

Expected behavior
Definitely, it should not break the build when adding this library to an existing stack.
Versions (please complete the following information):
Latest versions of everything. Check the package.json
Let me know if there is more info I can provide and thanks for this wonderful component!
Later edit: Lowering the version of antd to 4.10.3 no longer breaks the build >.<

Hello,
Thanks for using this library, and thanks for the issue! 🙂
I'm able to reproduce your bug with your test repository, but I didn't understand why. So I decided to check if it was working with the same dependencies on a code sandbox to see if it could possibly be a build problem. When I said build I talk about packages, typescript and build management.
Here is the link of this Cron component with react-i18next perfectly working: https://codesandbox.io/s/test-react-js-cron-i18next-sn3z7?file=/src/App.tsx
So I guess the library is working with react-i18next, and it's something else in your work that create the issue. Maybe you can try to reproduce with another way to build. Maybe you can try with a basic create-react-app with only the required dependencies.
For the moment I don't have any clue about why the bug happen since it's working in the codesandbox example.

Thank you for the quick reply. Maybe I haven't described the bug correctly. The library works well in dev mode (which I'm guessing the code sandbox uses). There is no compatibility issue there.
The problem arises when the actual code is bundled and minimized. I have no idea why this happens.
Weirdly enough when lowering the antd version (4.10.x) I was no longer able to reproduce the bug (bundled version works). In my case, I'm trying to update all libraries to the latest version to remove any security issues libraries might have.

Hum I'm not sure either if code sandbox use dev mode or prod mode.
What I was talking about is I think the problem come from the way you're building your project. I checked with a create-react-app build, and it's working in production mode.
Here is the test repository: https://github.com/xrutayisire/react-js-cron-i18next
So you should try to see why you have a problem with vite. I will also try to find the problem (and a solution :D), but I don't have a lot of time

I was not able to reproduce with create-react-app, so I still assume it's a build problem. Did you have time to take a look to find out why your build create this problem?

I test with cra as well. Seems to be working both dev and production build.
Closing. Might be something upstream. Thanks!

Just in case some1 else encounters this:
Check this code
https://github.com/codrin-iftimie/antd-vite-trial/commit/8c767582ad19201ed3a5564fe76f8bb1ac977c0b#diff-6a3b01ba97829c9566ef2d8dc466ffcffb4bdac08706d3d6319e42e0aa6890ddR4
You have to force vite to use the "lib" directory.
Also to have this working I had to actually use at least one antd component in my application.
I have no idea why I encountered this issue and why in CRA works without any issue.
To help out ppl using this keywords:
Vite, react-i18next, react-js-cron and and play well on this latest master of antd-vite-trial

authors: codrin-iftimie xrutayisire

repo: xrutayisire/react-js-cron


text:
Add Ant build support for Schematron

Summary
This pull request integrates #138 submitted by @markdunnoup and allows to run XSpec tests for Schematron using the ant build script. For further detail, please see conversation in #138.
This pull request also adds two bats tests checking that the ant build script works correctly for XSLT and Schematron.
As this was approved by @markdunnoup and me in https://github.com/xspec/xspec/pull/138#issuecomment-360114612, I'm merging into master.
Further work
I will update the documentation in the wiki.
@AirQuick: would you be able to add similar tests for the batch script? Note that ant is installed by default in Travis but I had to install additional ant libraries in .travis.yaml. Ant may not be installed by default on AppVeyor.

@AirQuick: Thanks a lot for your work, it's amazing how you improved this original pull request! Thanks for adding additional tests (always appreciated!), for removing unncessary dependencies, and simplifying the build script. Thanks also for making the Travis and AppVeyor configurations closer and for standardizing on tools like curl.
I checked your commits and they look good to me. I just have few questions:

I saw you installed Ant 1.9.8 as it is the Ant version installed in oXygen. I read your comment about the trouble you had with Ant installed by default on Travis. For documentation purposes, I'd like to know if we should state that XSpec has been tested with v1.9.8 or if XSpec actually requires Ant v1.9.8. I think the former but it would be good if you can confirm.
I'll update the documentation on Ant and will ask you to review it.
I noticed you introduced some JavaScript in make-path.js which is called in the build file. Was it problematic to do this with <makeurl>? I'm just a bit concerned about introducing another programming language in the code base for maintainability reasons and wonder if the same result could be achieved differently. This shouldn't stop this pull request being merged (which is my priority) but I just wanted to mention it.

Let me know what you think. I'm aiming to merge this pull request during the weekend and then working on #139 for releasing XSpec v1.0.0.

Based on the Ant manual, the new build.xml requires Ant 1.9.1. I tested with Ant 1.9.1 and it worked. You can confirm it here. So only 1.9.1 or later should be required.
I still do not know why the preinstalled Ant (1.9.3) on Travis fails. The error message is weird. If I install the same version of Ant separately on Travis, it works.
<makeurl> converts file path to URL. What we need is a reverse function (converts URL to file path). I couldn't find a smarter way of achieving it without external language.

Thanks for your replies. I'll mention in the documentation that Ant 1.9.1 is the minimum requirement (I didn't know about if and unless in Ant, I'm glad they have been introduced so we don't have to use the ant-contrib library).
I can see the rationale for using a scripting programming language and I can see it is also one of the suggested solutions for a similar question on StackOverflow. It makes sense.
I'll merge this pull request during the weekend and review the documentation on the wiki.

@AirQuick: I merged this pull request into master and deleted branch review/138 (if you think of other changes, please use a new branch and open a new pull request). I updated the documentation on the wiki, in particular the section Running XSpec's Ant build file from the command line. Could you please have a look at some point? Feel free to add changes in the documentation as we can't open pull request there.

Updated the wiki:

Removed the section Using the xspec macro, because the macro has been removed.
Moved lib from the section Useful Properties to its own section, because lib is not a property.
Removed the phrase and are passed to the Ant build script as option using the syntax -Dproperty-value unless otherwise specified, because it is included in the list of You can override the defaults by predefining the property:.
Other minor fixes.

Thanks very much to both @AirQuick and @cirulls for your efforts in improving and locking down this request!

@AirQuick: thanks for updating the wiki, it's much clearer now.
@markdunnoup: I'll close #138.

authors: AirQuick cirulls markdunnoup

repo: xspec/xspec


text:
为什么我下载的是kcptun-windows-amd64-20160922.tar.gz。但是启动器上显示的版本是20160906的版本？

为什么我下载的是kcptun-windows-amd64-20160922.tar.gz。但是启动器上显示的版本是20160906的版本？

确认你在启动器选择了下载的版本。

是的，确定，但是后来发现，能用。。。不知道是怎么回事，显示错误？

有可能你解压的时候没覆盖掉

authors: hmmabc kkbbzjh lizongzeshunshun

repo: xtaci/kcptun


text:
Фантом, ревенант и вообще всякая паранормальщина

TODO LIST:
Фантом
База:

[x] Одержимость
Фантом прикрепляется к одержимому игроку.
[x] Сосуды
Игрок может стать одержимым независимо от того, где находится фантом. Так же он станет точкой возрождения фантома.
[x] Переключения между сосудами
[x] Разговор лишь с одержимым
[x] Антагонист (моб, роль, режим)
[x] Цели

Способности:
КОНТРОЛЬ:

[x] Жажда - вызывает голод и жажду.

[x] Паралич - цель впадает в ступор, он может быть бесконечным, пока над ним висит ФАНТОМ.

[x] Клятва (ранее Кукловод, можно принять или отказаться) + выбить душу из тела, его может занять другой призрак, вероятно он будет посговорчивей. Он может помнить о своей предыдущей жизни, в том числе и о том, как он умер. Тот кто дал ФАНТОМУ клятву, умирает вместе с ним. Принесший клятву получает случайные способности ФАНТОМА 1 уровня и 2 уровня.

[x] Эпидемия психоза - вызывает галлюцинации у случайного члена экипажа. Они длятся бессрочно и передаются тому, кто услышит сказанное зараженными вслух (не через РАЦИЮ). ФАНТОМ может продемонстрировать свою силу отключив данную способность или она сама отключится, если не смогла передаться кому-либо. Не действует на персонажей с имплантом и обручем Защиты Разума, а также на верующих (и священника). Ломает ИНДИКАТОР РАБОТЫ импланта Защиты Разума (проф. перестает "мигать" и это может закинуть сомнения в других членов экипажа).

[x] ТИРАНИЯ

АГРЕССИЯ:

[x] Поломка - ломает предмет на карте (например свет) или ЭМИ для робота, низкий шанс сломать Защиту Разума (Имплант, который носят СБ и главы станции).

[x] Кровавая пелена - целевой персонаж получает кровотечение и урон по глазам (имитация слепоты).

[x] Захват тела - ФАНТОМ перехватывает контроль над телом ОДЕРЖИМОГО.

[x] Волна боли - все персонажи находящиеся в области видимости (кроме СОСУДОВ) получают паралич на 5 секунд и по 40 случайного урона. Долгий откат.

[x] КОШМАР / ОЧИЩЕНИЕ

ПОМОЩЬ:

[x] Починка - ремонт всех предметов цели и восстановление батареи (или восстановление всех боеприпасов в магазине). Или ремонт целевого устройства / робота (дроида, кпб, борга).

[x] Исцеление и сытость цели

[x] Портал - видим только для СОСУДОВ. Нажав на него, можно перепрыгнуть во вторую точку, которая располагается в радиусе 10 клеток (даже если ты тащишь кого-то). Пройти по порталу можно. Священник видит Портал и может использовать его. Портал может быть только один и он должен вести в зону с кислородом (если кислорода нет - портал закрывается).

[x] Возьми меня за руку - ОДЕРЖИМЫЙ должен быть согласен. При согласии, он теряет контроль над телом, становится неосязаемым и невидимым. ФАНТОМ может перетащить его в любое место на карте, но у него всего 10 секунд. Большой откат.

[x] СВОБОДА

Общие способности:

[x] Дышать в затылок (переместиться к ближайшему персонажу)

[x] Создание СОСУДА - согласие не нужно, но персонаж может до самого конца не догадываться, что он является СОСУДОМ.

[x] Смена СОСУДА (Переход к сосуду)

Примечания:

[x] Фантом может просто что-нибудь сказать и его будет читать ОДЕРЖИМЫЙ и ближайшие СОСУДЫ.

[x] Фантом может просто написать в ОБЩИЙ КАНАЛ, и его будут слышать все СОСУДЫ, даже если у них нет коммуникатора в ухе.

[x] Генерация эктоплазмы зависит от уровня угрозы на станции. Минимальный уровень угрозы = 1 эктоплазма на 3 использования способностей,  Синий уровень угрозы = 1 экто на 2 исп.способн, Красный уровень угрозы и выше = 1 эктоплазма на 1 исп.способн.

Оружие и защита:

[x] Эктоплазменный пистолет
[x] Эктоплазменная винтовка
[x] Святой меч
[x] Эктоплазменный щит
[x] Эктоплазменный визор
[x] Ограждающий пси-обруч
[x] Блокировка фантома церковью

Ревенант

[x] maybe респрайты

Способности:

[x] Дымовая завеса, наподобие дыма теневой аномалии
[x] Блокирование шлюзов
[x] Галлюцинации по области

Священник

[x] Святая энергия, она же мана
[x] Использование маны для священнических дел заместо обычной библии

ОСТАЛОСЬ НЕМНОГО:

[x] Локализация
[x] Мобы галлюцинаций
[x] "Потенциальный полтергейст" как черта

Нет документации

Описывать сами способности фантома в коде?

Конфликты нужно решить

в Resources/Prototypes/ADT/Entities/Objects/Fun/Tabletop/ouija_board.yml
ошибка
по идее просто прописать локализацию
Run dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj --no-build
Error: /Prototypes/ADT/Entities/Objects/Fun/Tabletop/ouija_board.yml(12,1[6](https://github.com/xtray85/space_station/actions/runs/9673692711/job/26688055795?pr=644#step:9:7))  No localization message found with id tabletop-ouija-board-name
Prototype id field failed validation. Fields should not be null. Field: HallucinationsPreset in Content.Shared.Hallucinations.HallucinationsComponent
Prototype id field failed validation. Fields should not be null. Field: HallucinationsPreset in Content.Shared.Hallucinations.HallucinationsDiseaseComponent
3 errors found in 4[7](https://github.com/xtray85/space_station/actions/runs/9673692711/job/26688055795?pr=644#step:9:8)307 ms.
Error: Process completed with exit code 255.


text:
About Training

Hello, did you use the LAION400M training to find it useless and then use the 2M data of the webvid dataset to retrain for 2 months, and then the effect is good?

Training only with videos long enough time seems better. If you have more resources, I suggest to use all 10M webvid videos and set more network parameters trainable. Another problem is sd's vae is not for 256x256, it could perform better if doing some finetune.


text:
Does not work with gatsby-plugin-mdx

I'm using gatsby-plugin-mdx with gatsby-remark-images as plugin. I would like to use gatsby-remark-unwrap-images but it does nothing.
   {
      resolve: 'gatsby-plugin-mdx',
      options: {
        gatsbyRemarkPlugins: [
          {
            resolve: 'gatsby-remark-unwrap-images'
          },
          {
            resolve: `gatsby-remark-images`,
            options: {
              maxWidth: 1400,
              linkImagesToOriginal: false,
              withWebp: true
            },
          },
        ],
      },
    },

Hey, you should duplicate plugin declarations like this:
    {
      resolve: 'gatsby-plugin-mdx',
      options: {
        plugins: ['gatsby-remark-unwrap-images', 'gatsby-remark-images'],
        gatsbyRemarkPlugins: [
          'gatsby-remark-unwrap-images',
          {
            resolve: 'gatsby-remark-images',
            options: {
              maxWidth: 1400,
              linkImagesToOriginal: false,
              withWebp: true
            },
          },
        ],
      },
    },

There's an issue somewhere - maybe the gatsby repo - that explains why :)

authors: pgegenfurtner trumbitta

repo: xuopled/gatsby-remark-unwrap-images


text:
请求增加谷歌云

你想要新增什么图标？
谷歌云
该图标有可参考的项目或 LOGO 地址吗？
https://cloud.google.com/?hl=zh-cn

你想要新增什么图标？
谷歌云
该图标有可参考的项目或 LOGO 地址吗？
https://cloud.google.com/?hl=zh-cn

已添加 https://github.com/xushier/HD-Icons/commit/789e2d5dc3952ac9691609f09285db504ff718c3

repo: xushier/HD-Icons


text:
File "../Caffe/layer_param.py", line 161, in upsample_param     upsample_param.upsample_h = size[0] * scale_factor TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'

    if size:
        if isinstance(size,int):
            upsample_param.upsample_h = size
        else:
            upsample_param.upsample_h = size[0] * scale_factor
            upsample_param.\
                upsample_w = size[1] * scale_factor

when size is not None,scale_factor is None.There is an error.
Can I change the code to:
else:
if not scale_factor:
scale_factor = 1
upsample_param.upsample_h = size[0] * scale_factor

Hi,@yangchengtest.
I met the same problem, and it seems like only one of  size and scale_factor in torch.nn.functional.interpolate should be defined, so I believe that the author forgot this.Absolutely, when size is given, the scale_factor is forbidden to use,thus your implemetation is right, and the best way to process scale_factor is to delete it, I assume,like this:
if size:
if isinstance(size,int):
upsample_param.upsample_h = size
else:
# scale_factor = 1
upsample_param.upsample_h = size[0]
upsample_param.upsample_w = size[1]
I'm not familiar with Pytorch,so point out my error please.

Hi,@yangchengtest.
I met the same problem, and it seems like only one of size and scale_factor in torch.nn.functional.interpolate should be defined, so I believe that the author forgot this.Absolutely, when size is given, the scale_factor is forbidden to use,thus your implemetation is right, and the best way to process scale_factor is to delete it, I assume,like this:
if size: if isinstance(size,int): upsample_param.upsample_h = size else: # scale_factor = 1 upsample_param.upsample_h = size[0] upsample_param.upsample_w = size[1]
I'm not familiar with Pytorch,so point out my error please.

In fact, it can get same result

authors: YFCYFC myOpenCV yangchengtest

repo: xxradon/PytorchToCaffe


text:
Setting WP salts with /dev/random

NEW_RELIC_APP_NAME: Heroku WP
Setting WP salts with /dev/random
last output : Setting WP salts with /dev/random
script does not return.

This is actually a /dev/random issue try googling it. There is not enough "entropy" in the system. Try downloading a large file in the background.

And how exactly can we do that?

bro, like i say, try googling.
when it hangs at /dev/random, u try to open a browser tab and download any random file

@punggolzenith is correct, in order to make your WordPress install more secure I've set this to use /dev/random to generate the salts. The downside is this is "blocking" meaning it does not return until it is able to get enough randomness. Moving around a mouse cursor, downloading a large file, using the wifi or even walking around with the laptop (if that's what you're using) is normally enough to get more random data from the environment around you.

authors: PhamBaTrungThanh camic punggolzenith xyu

repo: xyu/heroku-wp


text:
Strange early-time evolution in metric perturbations

In trying to match the CLASS perturbations in #44, we saw before that there was a several percent disagreement pretty much all the time (i.e. even on superhorizon scales / early times). I have looked at this more carefully, and \Phi is clearly doing something strange at very early times (plot attached for k=0.03 h/Mpc) that we were not looking at in that draft PR thread.
The orange dashed line is Bolt and shows that at early times \Phi is evolving in the first 100 steps or so before leveling off until horizon entry. This definitely should not be happening - \Phi (and \Psi) should be constant (and \Phi' negligible) until horizon entry (e.g. MB Fig.2).

You can actually see that initially (very first step) we are in agreement with the initial \Phi value of CLASS, but after this evolution, our \Phi is too high and this affects subsequent evolution, resulting in the percent level differences we see (I am surprised it is not worse, to be honest).
I tried setting Neff to some very small value (1e-4) and this seems to make the problem go away (though late-time evolution won't match CLASS because Neff is wrong):

This is also true if I take out both massive neutrinos and massless neutrinos (by commenting out the lines in the background and einstein equations). The issue is not related to the massive neutrinos, as it persists when only massless neutrinos are included.
I likely made some mistake in the past when setting up the massless neutrinos. I will dig into this in the first few steps to see what about massless neutrinos is making \Phi' non-negligible. I have checked that we get the correct \Psi in the initial conditions, so I guess it is somehow an error in the 00 Einstein eqn (or something less obvious with the neutrinos).

After too many hours, I found that this was due to a problem in the initial conditions. The ICs as they stand are I believe(?) copied out of Callin06, and even though he includes the massless neutrino hierarchy, the ICs do not consistently account for massless neutrinos.
The reason for this is that when neutrinos are present it is not correct to use both \Theta_{0} = \scrN_{0} = \Phi/2 and \Phi=1 in the initial conditions (as the code was doing). If \Phi=1, this fixes \Psi through \Phi = -\Psi(1+2/5 f_{\nu}). But the initial value of the photon density perturbation and all the other (adiabatic) perturbations are determined through \Psi, not \Phi.
Ignoring this fact is fine when massless neutrinos are not included, and then the only relativistic species is photons. Since photons have negligible quadrupole at early times, turning Neff down appears to fix the problem by sending \Psi to 1 (= \Phi).
It looks like this mistake may have been made in Callin because the discussion around this in Dodelson (the reference he cites for ICs) is not very careful with respect to the neutrinos. The statement that \Theta_{0} = \scrN_{0} = \Phi/2 is implicitly assuming \Phi=\Psi - i.e. it assumes the non-existence of neutrinos.
If I instead use the MB ICs (eqn 98), which use \Psi to set the density ICs, as expected from the above discussion, we resolve this issue (no more evolution and \Phi' \approx 0):

I will add something describing this in the notes.

Also you can see that at late times \Phi is still not perfect, but this is almost certainly due to the RSA issues mentioned in #48. So since the large-scale issue is resolved I will close this.

Addressed in 38405c65eb70571392466c2d1df6068748375acf

FWIW I was wrong here - the late-time discrepancy is too early to be due to RSA - the switch for which happens around x~-3.5. The issue turned out to be a small discrepancy in the kvalue I used in my script to generate the plot - Phi looks like this (<0.4% diff from class) if you don't mess up the k mode values =]


text:
y3.timer.loop_frame等几个新加的在pause和remove时报py call error

多开时出现此bug

先改用 y3.ltimer.loop_frame

authors: MouJiaoZi sumneko