text:
String concatenation in key

I have a small function in my Go program that prepares the key:
func redisKey(_id int) string {   return "user:" + string(_id) }
I use the same function for both SETting and GETting a value:
err = storage.client.Cmd("SET", redisKey(_id), user).Err
r := storage.client.Cmd("GET", redisKey(_id))
Strangely, I the GET command does not retrieve the value. Upon inspection with SCAN via a redis cli, the key is stored as something on the lines of "user:\x06". When I hardcode the key in SET as "user:12", I can successfully retrieve the value and it is stored as "user:12", verified via redis cli.
This may be something to do with Go string concatenation but, being relatively new to Go, I'd appreciate any thoughts.

Hey there! The problem is in string(_id), which doesn't do what you want it to do (and which I didn't know you could even do). It's converting the raw int value (which I'm guessing was 6) into a string, but 0x06 isn't a printable character so it's being escaped. What you want is strconv.Atoi(_id) which will return the ascii form of the integer.
https://play.golang.org/p/XVSCofPHyd
As a side-note, I think it's not idiomatic in go to prefix variables with underscores, but that won't actually cause any problems. Hope this helps!

Great thanks! That was indeed the issue :)

authors: krystalcode mediocregopher


text:
Installation instructions for early adopters

The top page mentions the following. Yet I can't find the early installation for early adopters section
"you should pay attention to section entitled Installation for Early Adopters and Testers."

Could you not do the pip3 install mediumroast_py?

First time both did not work. Neither pip nor pip3. Not sure why.  It complained about module not recognizable. I assumed it may not be fully released software. Hence tried git+url.
-rizwan

On Jul 15, 2022, at 3:04 PM, Michael Hay @.***> wrote:

Could you not do the pip3 install mediumroast_py?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Please try again and let me know if the installation works.  If there are dependency problems then we can work through it.

Old closing

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
Release 1.2.0

• Update dependencies
• Fix a dead store variable
• Add support for secure cookies
• Add support for initial UTM parameters
• Add support for additional initial parameters
• Add new documentation to README.md

Just update CDN script src inside README.md when available.

Thanks for the PR, @gioamato. This looks good. I'll review and merge asap.

@gioamato I've updated the readme with the new CDN endpoint. Thanks a bunch for this PR.

You are welcome.

source: gharchive/pull-request

authors: gioamato medius

license: mit

license_source: bigquery


text:
Custom html for plugin

I want to create a plugin the UI is no online service and has no serviceURL so how can I load my custom html? I tried something like
    "serviceURL": "index.html",

but this dont work for me the index.html is not loaded.

Did you try to use the full path of the file?
I think its different to create custom plugins which schould work for everyone.

@julianYaman didnt try it but cant fix the path because it different from user to user. The code which load the package.json isnt open source or to fix this problem?

I couldnt do it either, change path to absolute, relative and nothing.  DevTools: Not allowed to load local resource: file:///index.html`

authors: alexander-schranz juanbrujo julianYaman

repo: meetfranz/plugins

license: MIT


text:
Non-interactive Authentication for Meetup API

I've used an API token that was stored up in CI as an environment variable to be able to pull data down from a meetup group into a Gatsby site using gatsby-source-meetup. This worked until Mid-August when the v2 API was taken down and swapped over to the OAuth2 API.
What I am questioning is if I want to generate a long-running token that we can put up as an environment variable to use to authenticate, is there a way to do that with OAuth2 non-interactively? I don't personally want to authenticate every time to update my site as the site rebuilds daily using a cronjob.

Trying to do something similar.  Seems that no one a Meetup (WeWork) cares about this issue.

use scope=ageless in your initial auth request url, e.g.
&scope=ageless+basic+rsvp+event_mangement

you get a token that last 2 years
you can then check when the token gets close to expiry, and refresh it,
(or just do it manually)

authors: aavmurphy lannonbr zenga22

repo: meetup/api


text:
Integrate AI Stack-chan Web API

こちらのIssueについてのプルリクエストです。
#204
主な変更内容は次の通りです。
・Modとしてai-stackchan-apiを追加
・Web版VOICEVOXを firmware/stackchan/speeches に追加 (tts-voicevox-web.ts)
詳しい実行のしかたは mods/ai-stackchan-api/README_ja.md に記載しています。
備考（TTSについて）
・Web版VOICEVOXは若干途切れることはありますが安定しています。ただ、音声再生開始に30秒程度かかるため調査中です。
・Elevenlabsも使えますが、issue#214はこちらでも再現しています。

遅い原因について確認してみましたが、APIを実行する際のSSLのhandashake処理に時間がかかっているようです。
解決の糸口が見えてないですが共有まで。

確認してくださりありがとうございます。xsbugで時間計測できるのですね。SSLに関係するところを調べてみます。

教えていただいた通り、SSLのhandashake処理 の、DH_RSAの計算に時間がかかっていることを、こちらでも確認できました。一行ずつ実行すると、特にmod.exp() に時間がかかっているようです。
Elevenlabsでは ECDHE_RSA が使われるようで、それほど時間はかかりません。
暗号化方式を選べればよいのですが...（SSLは詳しくないのでもう少し勉強が必要です。）

https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/network/securesocket.md
ここにも時間がかかると書いてありました。と、動くが見れてないですがconfigでオフにもできるようです

@ronron-gh
manifestファイルに以下追記で改善されているように見えますので、ご確認のほどよろしくお願いします
"config": {
        "tls": {
            "DHE_RSA": false
        }
    }

@stc1988
ありがとうございます、ドキュメントを見ればよかったのですね。大変助かりました。こちらでも改善が確認できたため、コミットしました。（speeches/manifest_https_mp3streamer.json）
ただ、VOICEVOXでも音声が長くなると途切れ途切れになりますね。これはElevenlabsと合わせてissue#214で対策したく思います。

先日マージされた#236 で最新のModdableで動くような修正を行いましたので、本対応のブランチへ取り込み頂けると幸いですし、実装の方もお手伝いできます

@meganetaaan
ご確認誠にありがとうございました。これから一つ一つ対応していきます。
@stc1988
最新のマージについて了解しました。まずは取り込んでみます。サポートいただけるのは大変心強いです。

まずは #236 をマージしてコミットしました。自分の開発環境のModdable SDKを4.4にアップデートして、動くことを確認しました。（コミットのコメントが4.1に対応となっていますが4.4の間違いです。）

最新の取り込みありがとうございます。
サーバの方はlistenベースにasync-awaitが使えるものをserviceとして追加します

@ronron-gh さんのリポジトリにサーバ機能などのPR上げているので、ご確認ください

@stc1988
ありがとうございます！今確認しました。
メール通知がされなかったため気づいていませんでした。この会話は通知されるのですが...

https://x.com/stc1988/status/1756866287849148524?s=20
台詞と会話が動くようになりました。
他のAPIエンドポイントはhost側の実装の整理も必要そうなので、いったんここまでで止めています

ありがとうございます！！自分も、作っていただいたサービスをModに取り込もうとしていましたが、TypeScriptの基本的なところではまっていました^^;

マージいただいてレビュー対応済みになります

@meganetaaan
stc1988さんに対応いただいた部分をマージして、コードレビューにすべて回答できましたので、ご確認のほどよろしくお願いいたします。

repo: meganetaaan/stack-chan


text:
When Cargo fails to install dependencies, no error is show from atom.

The diagnostics don't work when there is llvm-sys as dependency.
Cargo failed to install a dependency and atom-ide-rust did not show me any error.
My Cargo.toml:
[package]
name = "llvmtest"
version = "0.1.0"
authors = ["Bruno Corrêa Zimmermann <brunoczim@gmail.com>"]

[dependencies]
rustc-serialize = "0.3"
llvm-sys = "*"

My Cargo.lock:
[[package]]
name = "aho-corasick"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
 "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]
name = "gcc"
version = "0.3.54"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "lazy_static"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "lazy_static"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "libc"
version = "0.2.36"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "llvm-sys"
version = "50.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
 "gcc 0.3.54 (registry+https://github.com/rust-lang/crates.io-index)",
 "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
 "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)",
 "regex 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
 "semver 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]
name = "llvmtest"
version = "0.1.0"
dependencies = [
 "llvm-sys 50.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
 "rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]
name = "memchr"
version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
 "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]
name = "regex"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
 "aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)",
 "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
 "regex-syntax 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
 "thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
 "utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]
name = "regex-syntax"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "rustc-serialize"
version = "0.3.24"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "semver"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
 "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]
name = "semver-parser"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "thread_local"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
 "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
 "unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]
name = "unreachable"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
 "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
]

[[package]]
name = "utf8-ranges"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "void"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"

[metadata]
"checksum aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4"
"checksum gcc 0.3.54 (registry+https://github.com/rust-lang/crates.io-index)" = "5e33ec290da0d127825013597dbdfc28bee4964690c7ce1166cbc2a7bd08b1bb"
"checksum lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73"
"checksum lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c8f31047daa365f19be14b47c29df4f7c3b581832407daabe6ae77397619237d"
"checksum libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)" = "1e5d97d6708edaa407429faa671b942dc0f2727222fb6b6539bf1db936e4b121"
"checksum llvm-sys 50.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6e988d82cf3f66de901b7ea6cca10234f375b2338cd7f40e86e6c97ccd639bc0"
"checksum memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "796fba70e76612589ed2ce7f45282f5af869e0fdd7cc6199fa1aa1f1d591ba9d"
"checksum regex 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "744554e01ccbd98fff8c457c3b092cd67af62a555a43bfe97ae8a0451f7799fa"
"checksum regex-syntax 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "8e931c58b93d86f080c734bfd2bce7dd0079ae2331235818133c8be7f422e20e"
"checksum rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)" = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda"
"checksum semver 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7a3186ec9e65071a2095434b1f5bb24838d4e8e130f584c790f6033c79943537"
"checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
"checksum thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "279ef31c19ededf577bfd12dfae728040a21f635b06a24cd670ff510edd38963"
"checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56"
"checksum utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122"
"checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d"

My src/lib.rs:
pub should throw some error

My rustup show command:
Default host: x86_64-unknown-linux-gnu

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-2017-11-01-x86_64-unknown-linux-gnu
nightly-2018-01-21-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.25.0-nightly (ae920dcc9 2018-01-22)

My rustup component list shows:
cargo-x86_64-unknown-linux-gnu (default)
rust-analysis-x86_64-unknown-linux-gnu (installed)
rust-docs-x86_64-unknown-linux-gnu (default)
rust-src (installed)
rust-std-aarch64-apple-ios
rust-std-aarch64-linux-android
rust-std-aarch64-unknown-cloudabi
....

atom-ide-rust version: 0.11.0
Rls Toolchain version in package configuration: nightly-2018-01-21

Rls now sends a window/showMessage for build errors

authors: alexheretic brunoczim

repo: mehcode/atom-ide-rust


text:
fix geoSearch link

Pull Request
Related issue
Fixes #131
What does this PR do?
— this if for fixing geoSearch link in the documentation because the link was not appearing well

There are other places with that link

This message is sent automatically
Thanks again for contributing to Meilisearch :heart:
If you are participating in Hacktoberfest, and you would like to receive some gift from Meilisearch too, please complete this form.

authors: ahmed-sudani bidoubiwa

repo: meilisearch/firestore-meilisearch


text:
Simplify the SDK by removing all the _impl files.

To be honest I may lack some technical resources to understand it better, but in my POV there is no need to have two files to define a class like: index.dart and index_impl.dart it seems redundant for me and I can't get the value on having them, but the opposite, I think they make the maintenance harder since those classes were not meant to be extensible I don't see the point on keeping those _impl files/classes.

I propose to unify the files by removing the abstract classes.
A similar change was done here #185 and I felt it was easier to work with Task after that.
CC: @ahmednfwela let me know what do you think about it!

I totally agree, I think this was made to mimic c#'s dependency injection strategy, but in dart it isn't as efficient.
in HttpRequest, all the methods are tightly coupled with dio since they return Response<T>, so it doesn't make sense to have HttpRequestImpl when it's the only possible implementation for the base class
and in MeiliSearchIndex, a user wouldn't benefit anything from implementing the abstract class, they would rather just extend the existing MeiliSearchIndexImpl and override specific methods rather than reinvent the wheel.
similar to what we did in https://github.com/meilisearch/meilisearch-dart/blob/e64dd6368936e06c8e47e1d9c7c6d50aff1e2cd9/test/models/test_client.dart

authors: ahmednfwela brunoocasali

repo: meilisearch/meilisearch-dart


text:
Hightlight with special characters

Description
When a search contains a special character, the highlight feature is not highlighting the full word
To Reproduce
Steps to reproduce the behavior:

Add an index with a field {"title": "françois"}
Search for "françois"
Only "françoi" will be highlighted

Expected behavior
"françois" (the full word) should be highlighted
Screenshot

Meilisearch version:
v0.24.0
Additional context

Running on Meilisearch Cloud

Looks like it's related to this PR which I believe is not yet included. You could try to upgrade milli dependency (v0.22.0) or wait until Meilisearch (v0.26).

Thanks ! I will wait Meilisearch v0.26 since i can't upgrade milli dependency on MeiliSearch Cloud.

Hello @lemonlab
Indeed, @interlark is right, it's planned for v0.26.0.
This issue is a duplication of https://github.com/meilisearch/meilisearch/issues/1480 :)

authors: curquiza interlark lemonlab

repo: meilisearch/meilisearch


text:
Meilisearch in docker swarm expose incorrect port despite saying that it should be 80

Any ideas ?

To test run:
docker run -it -p 80:80 --rm -e MEILI_HTTP_ADDR="127.0.0.1:80" getmeili/meilisearch
then the site also can't be accesible

incorrect address
docker run -it -p 80:80 --rm -e MEILI_HTTP_ADDR="0.0.0.0:80" getmeili/meilisearch


text:
Relevancy issue (ranking rules ?)

Describe the bug
Adding "Exactness" first into the ranking rules, doesn't work as expected.
To Reproduce
Steps to reproduce the behavior:

Adding some documents into an index
Try different queries
Check the results and their order displayed
See error

Expected behavior
I've updated the ranking rules of my index like this :
    "rankingRules": [
        "exactness",
        "words",
        "typo",
        "proximity",
        "attribute",
        "sort"
    ],

Regarding the examples I've understand things like this : with exactness first in the ranking rules, typing eric zemmour will give me first results with eric zemmour then results with one letter of difference (in the example : Knight and Knights).
So it's expected that if there is no result with eric zemmour, resultts with deric zemmour will be displayed first.
It's not the case (cf screenshots) and only results with eric are displayed first (because of the matching strategy)
Screenshots
All informations contained in these screenshots are publicy available into afnic website.
Results with "Eric Zemmour"

Results with Eric Zemmour

Results with Zemmour Eric

Results with Les Amis Zemmour Eric

Meilisearch version:
v0.29.1
Additional context

Hello @pokemaster974
I think the problem is that you're trying to query in the middle of the word (Deric). Meilisearch doesn't support this. It is a prefix-based search engine meaning documents are sorted by first comparing the search term against the beginning of each word in your dataset before the ranking rules are applied. This means if you search for “book”, Meilisearch will find documents containing “bookshop”, or "bookshelf" but not “yearbook”. I believe this explains why Meilisearch returned search results for Eric and Zemmour in that manner. Furthermore, enclosing your search term in double quotes typically returns only documents containing those terms in the order they were given. This type of search doesn't consider typos.
A workaround could be to split the words into a new document field such that the engine can use to prefix-search to retrieve the document. You can find more information here.
I hope this helps. Thanks

Hello @pokemaster974
I think the problem is that you're trying to query in the middle of the word (Deric). Meilisearch doesn't support this. It is a prefix-based search engine meaning documents are sorted by first comparing the search term against the beginning of each word in your dataset before the ranking rules are applied. This means if you search for “book”, Meilisearch will find documents containing “bookshop”, or "bookshelf" but not “yearbook”. I believe this explains why Meilisearch returned search results for Eric and Zemmour in that manner. Furthermore, enclosing your search term in double quotes typically returns only documents containing those terms in the order they were given. This type of search doesn't consider typos.
A workaround could be to split the words into a new document field such that the engine can use to prefix-search to retrieve the document. You can find more information here.
I hope this helps. Thanks

Hi @oluademola thanks for the reply.
I try some tests, and following your explaination typing Deri Zemmour will give me same results as Deric Zemmour.
But sadly it's not the case.
Ranking rules ares :
[
    "words",
    "exactness",
    "typo",
    "proximity",
    "attribute",
    "sort"
]

Deric Zemmour.

Deri Zemmour

Hello @pokemaster974
In my example, I provided one word as an example. The policy for word matching in Meilisearch is more than that and behaves differently when querying multiple words. When searching multiple words, Meilisearch sorts documents by decreasing the number of matching terms, which means that if no document contains all of the given terms, the last query term is removed, and so on. For example, Meilisearch will first return documents containing Deri and Zemmour, and then documents containing Deri, or documents containing Deric and Zemmour, and then documents containing Deric. You can find more information in the dedicated documentation. Additionally, you can customize how the words match with the matchingStrategy parameter
I hope this answers your question.

I close this issue due to a lack of answers. Nothing is definitive of course, feel free to ask to re-open if needed 😊

authors: curquiza oluademola pokemaster974


text:
AniList uses trending limit for season limit

Version Number
1.19.1-nightly82
What branch are you on?
master
Describe the Bug
As the title described using limit_season will not control the limit for the season chart
Relevant Collection/Overlay/Playlist Definition
No response
Logs
No response

should be fixed inn 1.20


text:
Update README.md

Description
Add description...
Checklist

[ ] Description added to PR
[ ] PR is linked to issue
[ ] Solution can start locally

Codecov Report

Merging #33 (c342a70) into main (2e5a82b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #33   +/-   ##
=======================================
  Coverage   98.98%   98.98%
=======================================
  Files          21       21
  Lines         197      197
=======================================
  Hits          195      195
  Misses          2        2

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

authors: codecov-commenter mekkl

repo: mekkl/dotnet-starter-template


text:
Add wrapper for SDL_SetRelativeMouseMode and SDL_CaptureMouse.

Add wrapper for SDL_SetRelativeMouseMode and SDL_CaptureMouse.
Also add comments for existing Sdl2.Mouse methods.

Sdl2Window actually already has a MouseDelta property which returns effectively the same information, and is updated whenever PumpEvents is called. See https://github.com/mellinoe/veldrid/pull/73 when it was added. Unfortunately, InputSnapshot is effectively frozen, because it is a public interface, and adding members to it is a breaking change. I believe that the "accumulation" pattern used by the current mouse delta tracker is also important -- multiple mouse events can be received in a single call to PumpEvents, so the deltas need to be accumulated (after being cleared right at the beginning of PumpEvents).
The SDL2 mouse changes look good to me.

Yeah right before the pull request I saw the MouseDelta inside Sdl2Window. The commit "Add wrapper for SDL_SetRelativeMouseMode and SDL_CaptureMouse" shouldn't have been a part of this pull request. It just slipped in by mistake, sorry!

The commit "Add wrapper for SDL_SetRelativeMouseMode and SDL_CaptureMouse" shouldn't have been a part of this pull request.

Did you mean that the other commit (with MouseDelta in it) shouldn't have been included? Right now there's only the SDL additions. Those look good to me, just wanted to make sure the PR is in the state you intended.

Shouldn't the line:
Vector2 delta = new Vector2(mouseMotionEvent.x - _currentMouseX, mouseMotionEvent.y - _currentMouseY);
Instead be:
Vector2 delta = new Vector2(mouseMotionEvent.xrel, mouseMotionEvent.yrel);

Possibly. I've actually experimented with the mouse capture functions in the past and had a really difficult time getting movement to work smoothly.
As part of this PR (or as a follow-up), I'd actually like to fix up NeoDemo so that when you click-drag the mouse around, the cursor stays in place (and potentially becomes invisible while dragging), similar to how most 3D editor views behave. Have you had any luck getting that kind of thing to work smoothly?

Yes I have actually exactly added that functionality to my own project, that's why I added SDL_SetRelativeMouseMode.
SDL_SetRelativeMouseMode locks the mouse inside of the window and makes it invisible. So the position will not be updated and only xrel and yrel will be updated. You could then just enabled SDL_SetRelativeMouseMode on click and then disable it again on release.

Updated HandleMouseMotionEvent to use the relative mouse movement.
Also update NeoDemo so it now uses the SDL_SetRelativeMouseMode and uses the relative delta mouse movement.
Had to change InputTracker so I could access the Sdl2Window MouseDelta. Totally understand if you don't like those changes, just wanted to display how the camera could be fixed.

@phelioz That is pretty nice as-is. The one additional thing I've tried to implement in the past is having the cursor "lock" to where you start the drag motion. Right now it is invisible while dragging, but it still moves and is in a different place when you stop dragging. Setting the cursor with SDL_WarpMouseInWindow (or Sdl2Window.SetMousePosition which uses the former) does work, but that also generates mouse motion events itself which need to be filtered somehow. Actually, I believe this was part of the reason that the xrel and yrel fields weren't being used. Have you had any luck getting something like that to work?

Yeah for just that use case SDL_SetRelativeMouseMode is not the best.
Added SDL_SetWindowGrab which that can used with SDL_WarpMouseInWindow to solve this problem.
Because with SDL_SetWindowGrab we can contain the mouse but control the mouse movement ourselves.
Then we calculated the the delta ourselves again and use that.
I think the mouse movement is smooth now, lowered the sensitivity a little bit also for smoother movement.

@phelioz This is a great addition, thanks! Note that I added a commit on top to invert the Y-axis input in Camera.cs, because it was inverted compared to before.
The way you have implemented the mouse locking/hiding feels seamless and very smooth. It seems to be avoiding all of the problems that I was hitting with the approaches I've tried in the past. Thanks!

No problem, happy to help making Veldrid better :)

authors: mellinoe phelioz

repo: mellinoe/veldrid


text:
WEBEUFLEX - Sprint Challenge - User Interface - Amin Hasan 🇬🇧

What does this PR do?

Sprint Challenge - User Interface I Project solution

Description of tasks completed

MVP
Contact Page (Stretch)

Awesome job with this week's sprint Amin 💪🏽.  Please check your dashboard for my overall comment
MVP ✔
Stretch ✔

authors: NabeelahY mellownightpirate


text:
Can't log in or log out after timeout

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1618
Originally created by @ghost1 on 2020-01-28 01:11:21

What is the current bug behavior?
When we leave Meltano unattended for too long (putting laptop to sleep for example), it seems that the session times out and that you should be logged out.
What happens instead is that the page stays the same, without redirecting to the login page, and you just see errors popping up, whatever the links you try to click (/data,/reports,/dashboards)
Plus, there is no Sign out button, so you have to manually destroy the session cookie and reload.
What is the expected correct behavior?
Be automatically redirected to the login page.
Steps to reproduce

Don't use Meltano for a while. Come back and see the page is not usable.

Relevant logs and/or screenshots
Error messages popping up

Errors 500 from all XHR requests

Possible fixes
Maybe making sure that the Sign out button is accessible all the time in case the redirect doesn't work?
Further regression test
Ensure we automatically catch similar issues in the future

[ ] Write additional adequate test cases and submit test results
[ ] Test results should be reviewed by a person from the team

View 4 previous comments from the original issue on GitLab

repo: meltano/meltano


text:
Pixel data -> Image

Hi, I'm writing a tool with this parser , and I trying to draw each layer of the psd file into webgl. The big issue come with rasterized images because you need to get the base64 code for each image.
So, bigger images = bigger bigger base64!!.
I saw that the parser also give us the pixelData from layer... how we can use that info to render an image in more efficient way? I've tried a lot with canvas, webgl, png converters, etc. without result.
i.e : a 1200x3000px psd file I can render it without rasterized images in 2/3 segs. ..with images it takes almost 13 segs with the memory and processor upon the sky!
maybe someone already dealt with this and can help me.
Thanks a lot!
Regards,

Hey @lordminor. Thank you for your question.
As far as i can tell from reading the source code is that the pixelData is used for the toPng() function. for this we use the pngjs package. This package allows us to parse it as an RGBA pixel buffer.
I unfortunately don't remember how we handle rasterized images as my knowledge on that part is a bit rusty. Could you please provide a sample PSD file that you are trying to parse ? With that i could run some tests and make a better answer for you.
Regards, Duck.

Montreal Creative Portfolio Theme.zip
Hi @fabulousduck , thanks for the quick reply! :)
I'm attaching the psd, but is the same with any psd file with a rasterized image inside it. for example 2000x2000 psd with a full white background....the time to render increment when you have more layers inside it due to the base64 large code and the logic to build the image with pixelData.
Thanks again!

Hey again @lordminor.
After some testing different methods of using segments i found that the fastest method of generating the images is to simply use the pngjs node module with compression setting to 4.
This is due to the fact that we cannot stitch the buffers together. we need the images for that.
i would however recommend you use a dedicated node module for compressing images as that would make it slightly faster due to the smaller size of the buffer.
I hope this helps you out.
If i get some more time i will look into some compression libs so i can reccommend the best one.
Regards, duck

thanks @fabulousduck !
Do you have any mre information to do that? ...I need to use the data from: "psd.image.file.data" ...? that's an Uint8Array....I'm trying to use an image compressor passing that data to a buffer, but it doesnt work.
I need the faster way to parse the psd image. The psd that I've attached in the previous post took at least 10 segs to show the image....Is a quite slow. If you can give me an example how to parse the image with pngjs or any node compressor it would be great :)
Thanks again!

Hi @fabulousduck ,
After using toPng() function, I got a Image tag HTML in browser. But, I want to convert to svg element in HTML. Is there any way to convert this ?
Regards,

authors: HaiNV266 fabulousduck lordminor


text:
added :default_formatter option parameter and Membrane.Time.pretty_du…

…ration/1

Backticks are not just for terms but for anything you want to present using
monospace font. In docs I usually put values like this in backticks. In
this case I would also use them to keep the style for different options
cosistent. Anyway, It's a matter of opinion so we probably need a 3rd vote
😉
pon., 17 gru 2018, 10:55: Mateusz Front notifications@github.com
napisał(a):

@mat-hek commented on this pull request.
In lib/membrane/element/base/mixin/common_behaviour.ex
https://github.com/membraneframework/membrane-core/pull/134#discussion_r242083469
:

@@ -203,8 +205,11 @@ defmodule Membrane.Element.Base.Mixin.CommonBehaviour do

     default_val_desc =
       if Keyword.has_key?(v, :default) do

       default_formatter =

         v |> Keyword.get(:default_formatter, quote(do: &"`#{inspect(&1)}`"))

Backticks suggest that there's a term between them, while formatter may
return kind of description of what the default value is, which may not be a
term. For example '2 ms' returned by Membrane.Time.pretty_duration/1
shouldn't be considered a term to me.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/membraneframework/membrane-core/pull/134#discussion_r242083469,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACBXhMZHes1dwxFzAeR8VsORdi0_g-uWks5u52otgaJpZM4ZUE7f
.

Backticks are not just for terms but for anything you want to present using monospace font. In docs I usually put values like this in backticks. In this case I would also use them to keep the style for different options cosistent. Anyway, It's a matter of opinion so we probably need a 3rd vote 😉
I think that it's not really important whether the font is monospaced or not in this case, but it's important to mark terms specially so they could be easily distinguished from usual words

repo: membraneframework/membrane-core


text:
Implementing First steps of algorithm

Description
Please briefly explain the changes you made here.
Pull request type

[ ] Bugfix
[ ] Algorithm/Module
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Related issues
Delete if this PR doesn't resolve any issues. Link the issue if it does.
######################################
Reviewer checklist (the reviewer checks this part)
Module/Algorithm

[ ] Core algorithm/module implementation
[ ] Query module implementation
[ ] Unit tests
[ ] End-to-end tests
[ ] Code documentation
[ ] README short description
[ ] Documentation on memgraph/docs

######################################

Hi @sjpthenmozhi , do you plan to work on this further?

Closing this as there is no response.

authors: antoniofilipovic sjpthenmozhi

repo: memgraph/mage


text:
Replace remaining C atomic intrinsics with native Rust atomics

Each commit in this PR replaces the atomic field(s) in an individual struct.
Closes #638.

We can't remove the warning allowance, the warning is still valid. I'd have to remove the assignment, and I couldn't figure out why the original code even bothers with the assignment so I didn't.

We can't remove the warning allowance, the warning is still valid. I'd have to remove the assignment, and I couldn't figure out why the original code even bothers with the assignment so I didn't.

Oh, okay, I didn't realize.  Then leaving it as is is all good.

authors: kkysen rinon


text:
4 improving documentation

Signed-off-by: Raphael Audet raphael.audet@mendix.com

ILGTM

authors: RaphaelAudet carlos-salinas

repo: mendix/docker-mendix-buildpack


text:
Updated the documentation link for PAT

For Build and Deploy APIs under private cloud.

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

authors: CLAassistant ilholbea

repo: mendix/docs


text:
Option to show devicons before buffer ordinal number

Basically title.
Edit: I got this working locally by moving lines 59-66 in autoload/lightline/bufferline.vim right before line 87.

I am not yet sure what the best approach is to make the buffer naming more flexible. Maybe a configurable template string which gets expanded with different components. However, I am not working on a solution currently so it is good that you got it working locally.

@noib3 I added the feature in #70. The following setting should work once the PR is merged:
let g:lightline#bufferline#icon_position = 'first'

repo: mengelbrecht/lightline-bufferline


text:
Primeiro Role do RKE

Primeiro Role do RKE

[ x] Garanta que seu topic/feature/bugfix branch tenha uma branch nomeada e não a sua branch main esteja no PR
[x ] Dê um titulo que expresse o objetivo do PR
[x ] Associe seu PR a uma Issue criada no repositósito. Caso seja uma correção de linguagem ou pequenas correções, não é necessário
[ x] Descreva o objetivo do PR
[x ] Inclua links relevantes para a sua modificação/sugestão/correção
[x ] Descreva um passo-a-passo para testar o seu PR

Issue

https://github.com/mentoriaiac/iac-role-node-rke/issues/1
Objetivo
Criado um role do ansible para criação de um node utilizando o RKE
Referências
https://rancher.com/docs/rke/latest/en/os/
Como testar
Preparando o ambiente
Primeiro Passo:
Clone este repositório, ele é a base da role do nomad.

git clone https://github.com/mentoriaiac/iac-role-node-rke

Ao final um diretório com a sua role será criado e você precisa agora entrar neste novo diretório. Para fazer isto use o comando a seguir:

cd iac-role-node-rke

Segundo Passo
Crie um ambiente virtual para o python3. Como o ansible e o molecule são escritos em python, vamos precisar muito de uma estrutura de isolamento, como é o caso do modulo venv do python. Para criar um ambiente python isolado use o comando a seguir:

python3 -m venv o-nome-da-sua-env

Você pode colocar o nome que você desejar para seu ambiente virtual, contudo existe uma convenção que estimula você usar este padrão: venv, .venv, env, .env
Uma vez criado seu ambiente virtual, precisamos inicializá-lo, para tal, execute o comando a seguir:

source o-nome-da-sua-env/bin/activate

Se tudo der certo, seu pronpt será modificado e iniciará aparentemente assim:

(o-nome-da-sua-env)$

Uma vez criado e inicializado o seu ambiente precisamos instalar todas as dependências necessárias para tudo acontecer certinho. As dependências desta role está gravada no arquivo requirements.txt. Para instalar as dependências use o comando a seguir:

(o-nome-da-sua-env)$ python3 -m pip install --upgrade pip

(o-nome-da-sua-env)$ python3 -m pip install -r requirements.txt

Terceiro Passo
Para verificar se tudo aconteceu bem, você pode executar o comando a seguir:

(o-nome-da-sua-env)$ molecule check

Ele ira executar um ciclo interiro de testes (dependency, cleanup, destroy, create, prepare, converge, check, cleanup, destroy)
Quarto Passo
Para realizar teste rápido após alguma modificação execute a seguinte sequência de comandos:

(o-nome-da-sua-env)$ molecule create

(o-nome-da-sua-env)$ molecule converge

(o-nome-da-sua-env)$ molecule verify

Ao termino do teste, destrua o ambiente

(o-nome-da-sua-env)$ molecule destroy

(o-nome-da-sua-env)$ molecule check

Para realizar teste rápido após alguma modificação

(o-nome-da-sua-env)$ molecule create

(o-nome-da-sua-env)$ molecule converge

(o-nome-da-sua-env)$ molecule verify

Ao termino do teste, destrua o ambiente

(o-nome-da-sua-env)$ molecule destroy

Participantes do PR
"@lipenodias - @monalizavitor - @marcelomansur - @victorfbraga - @ravcardoso - @guilhermegazzinelli  - @nerdtux"

Um ponto de melhoria seria a descrição dos commits, que podem ser melhoradas, dando sentido ao que está sendo mudado.
Vendo abaixo, fica dificil de saber o que ocorre a cada mudança, veja:

Esse site contém mais detalhes e acho que seria interessante usar ele como modelo:
https://www.conventionalcommits.org/en/v1.0.0/
Posso te ajudar a editar os commits atuais pra ajustar as mensagens, só chamar.

Um ponto de melhoria seria a descrição dos commits, que podem ser melhoradas, dando sentido ao que está sendo mudado.
Vendo abaixo, fica dificil de saber o que ocorre a cada mudança, veja:

Esse site contém mais detalhes e acho que seria interessante usar ele como modelo:
https://www.conventionalcommits.org/en/v1.0.0/
Posso te ajudar a editar os commits atuais pra ajustar as mensagens, só chamar.

Obrigado pela dica sebbas, realmente é bem importante para visalização de quem não participou :). Vou me atentar nos commits

Um ponto de melhoria seria a descrição dos commits, que podem ser melhoradas, dando sentido ao que está sendo mudado.
Vendo abaixo, fica dificil de saber o que ocorre a cada mudança, veja:

Esse site contém mais detalhes e acho que seria interessante usar ele como modelo:
https://www.conventionalcommits.org/en/v1.0.0/
Posso te ajudar a editar os commits atuais pra ajustar as mensagens, só chamar.

Vou chamar no discord, ficou alguns pontos de duvida também que podemos conversar

Pelo que testei local, os testes não funcionaram:
❯ molecule check
INFO     default scenario test matrix: dependency, cleanup, destroy, create, prepare, converge, check, cleanup, destroy
INFO     Running default > dependency
WARNING  Skipping, missing the requirements file.
WARNING  Skipping, missing the requirements file.
INFO     Running default > cleanup
WARNING  Skipping, cleanup playbook not configured.
INFO     Running default > destroy
INFO     Sanity checks: 'docker'

PLAY [Destroy] *****************************************************************

TASK [Destroy molecule instance(s)] ********************************************
changed: [localhost] => (item=ubuntu-18.04-iac-role-services)

TASK [Wait for instance(s) deletion to complete] *******************************
FAILED - RETRYING: Wait for instance(s) deletion to complete (300 retries left).
ok: [localhost] => (item={'started': 1, 'finished': 0, 'ansible_job_id': '392696685221.27182', 'results_file': '/home/seba/.ansible_async/392696685221.27182', 'changed': True, 'failed': False, 'item': {'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']}, 'ansible_loop_var': 'item'})

TASK [Delete docker network(s)] ************************************************

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=1    rescued=0    ignored=0

INFO     Running default > create

PLAY [Create] ******************************************************************

TASK [Log into a Docker registry] **********************************************
skipping: [localhost] => (item={'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']})

TASK [Check presence of custom Dockerfiles] ************************************
ok: [localhost] => (item={'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']})

TASK [Create Dockerfiles from image names] *************************************
skipping: [localhost] => (item={'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']})

TASK [Discover local Docker images] ********************************************
ok: [localhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': {'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']}, 'ansible_loop_var': 'item', 'i': 0, 'ansible_index_var': 'i'})

TASK [Build an Ansible compatible image (new)] *********************************
skipping: [localhost] => (item=molecule_local/geerlingguy/docker-ubuntu1804-ansible:latest)

TASK [Create docker network(s)] ************************************************

TASK [Determine the CMD directives] ********************************************
ok: [localhost] => (item={'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']})

TASK [Create molecule instance(s)] *********************************************
changed: [localhost] => (item=ubuntu-18.04-iac-role-services)

TASK [Wait for instance(s) creation to complete] *******************************
FAILED - RETRYING: Wait for instance(s) creation to complete (300 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (299 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (298 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (297 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (296 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (295 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (294 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (293 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (292 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (291 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (290 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (289 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (288 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (287 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (286 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (285 retries left).
changed: [localhost] => (item={'started': 1, 'finished': 0, 'ansible_job_id': '991774868689.27454', 'results_file': '/home/seba/.ansible_async/991774868689.27454', 'changed': True, 'failed': False, 'item': {'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']}, 'ansible_loop_var': 'item'})

PLAY RECAP *********************************************************************
localhost                  : ok=5    changed=2    unreachable=0    failed=0    skipped=4    rescued=0    ignored=0

INFO     Running default > prepare
ERROR! the role 'geerlingguy.docker' was not found in /home/seba/projetos/github.com/mentoriaiac/iac-role-node-rke/molecule/default/roles:/home/seba/.cache/molecule/iac-role-node-rke/default/roles:/home/seba/projetos/github.com/mentoriaiac:/home/seba/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/seba/projetos/github.com/mentoriaiac/iac-role-node-rke/molecule/default

The error appears to be in '/home/seba/projetos/github.com/mentoriaiac/iac-role-node-rke/molecule/default/prepare.yml': line 10, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - geerlingguy.docker
      ^ here
CRITICAL Ansible return code was 1, command was: ansible-playbook --inventory /home/seba/.cache/molecule/iac-role-node-rke/default/inventory --skip-tags molecule-notest,notest /home/seba/projetos/github.com/mentoriaiac/iac-role-node-rke/molecule/default/prepare.yml

Tem algum procedimento extra pra fazer antes de rodar?

Pelo que testei local, os testes não funcionaram:
❯ molecule check
INFO     default scenario test matrix: dependency, cleanup, destroy, create, prepare, converge, check, cleanup, destroy
INFO     Running default > dependency
WARNING  Skipping, missing the requirements file.
WARNING  Skipping, missing the requirements file.
INFO     Running default > cleanup
WARNING  Skipping, cleanup playbook not configured.
INFO     Running default > destroy
INFO     Sanity checks: 'docker'

PLAY [Destroy] *****************************************************************

TASK [Destroy molecule instance(s)] ********************************************
changed: [localhost] => (item=ubuntu-18.04-iac-role-services)

TASK [Wait for instance(s) deletion to complete] *******************************
FAILED - RETRYING: Wait for instance(s) deletion to complete (300 retries left).
ok: [localhost] => (item={'started': 1, 'finished': 0, 'ansible_job_id': '392696685221.27182', 'results_file': '/home/seba/.ansible_async/392696685221.27182', 'changed': True, 'failed': False, 'item': {'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']}, 'ansible_loop_var': 'item'})

TASK [Delete docker network(s)] ************************************************

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=1    rescued=0    ignored=0

INFO     Running default > create

PLAY [Create] ******************************************************************

TASK [Log into a Docker registry] **********************************************
skipping: [localhost] => (item={'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']})

TASK [Check presence of custom Dockerfiles] ************************************
ok: [localhost] => (item={'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']})

TASK [Create Dockerfiles from image names] *************************************
skipping: [localhost] => (item={'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']})

TASK [Discover local Docker images] ********************************************
ok: [localhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': {'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']}, 'ansible_loop_var': 'item', 'i': 0, 'ansible_index_var': 'i'})

TASK [Build an Ansible compatible image (new)] *********************************
skipping: [localhost] => (item=molecule_local/geerlingguy/docker-ubuntu1804-ansible:latest)

TASK [Create docker network(s)] ************************************************

TASK [Determine the CMD directives] ********************************************
ok: [localhost] => (item={'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']})

TASK [Create molecule instance(s)] *********************************************
changed: [localhost] => (item=ubuntu-18.04-iac-role-services)

TASK [Wait for instance(s) creation to complete] *******************************
FAILED - RETRYING: Wait for instance(s) creation to complete (300 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (299 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (298 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (297 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (296 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (295 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (294 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (293 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (292 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (291 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (290 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (289 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (288 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (287 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (286 retries left).
FAILED - RETRYING: Wait for instance(s) creation to complete (285 retries left).
changed: [localhost] => (item={'started': 1, 'finished': 0, 'ansible_job_id': '991774868689.27454', 'results_file': '/home/seba/.ansible_async/991774868689.27454', 'changed': True, 'failed': False, 'item': {'command': '', 'image': 'geerlingguy/docker-ubuntu1804-ansible:latest', 'name': 'ubuntu-18.04-iac-role-services', 'pre_build_image': True, 'privileged': True, 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro']}, 'ansible_loop_var': 'item'})

PLAY RECAP *********************************************************************
localhost                  : ok=5    changed=2    unreachable=0    failed=0    skipped=4    rescued=0    ignored=0

INFO     Running default > prepare
ERROR! the role 'geerlingguy.docker' was not found in /home/seba/projetos/github.com/mentoriaiac/iac-role-node-rke/molecule/default/roles:/home/seba/.cache/molecule/iac-role-node-rke/default/roles:/home/seba/projetos/github.com/mentoriaiac:/home/seba/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/seba/projetos/github.com/mentoriaiac/iac-role-node-rke/molecule/default

The error appears to be in '/home/seba/projetos/github.com/mentoriaiac/iac-role-node-rke/molecule/default/prepare.yml': line 10, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - geerlingguy.docker
      ^ here
CRITICAL Ansible return code was 1, command was: ansible-playbook --inventory /home/seba/.cache/molecule/iac-role-node-rke/default/inventory --skip-tags molecule-notest,notest /home/seba/projetos/github.com/mentoriaiac/iac-role-node-rke/molecule/default/prepare.yml

Tem algum procedimento extra pra fazer antes de rodar?

Sebbas, devido ao erro no URL do PR para clonar o projeto acredito que veio o codigo original da mentoria.
tente clonar do repositorio https://github.com/lipenodias/iac-role-node-rke/
Fiz o teste de clonar e seguir com as orientações e consegui validar.

Commits atualizados.

Fiz os testes com molecule check e molecule test e ambos funcionaram corretamente.

Pontos pendentes:

[ ] Ajustar readme com dados do pipenv
[ ] Ajustar CI com o uso do pip
[ ] Remover binário do RKE

@lipenodias TODO foi atualizado, favor dar uma conferida.

Revisado por essa galera aqui:

authors: gomex lipenodias sebastianwebber

repo: mentoriaiac/iac-role-node-rke


text:
Some dashboard not shown after upgrade Grafana ver 8

Hi, I have an issue with the dashboard when upgrading grafana version 8. the issue for Heatmap and Custom Statistic dashboard

Is there any update for the script or this method can not work for grafana version 8.
Thanks

Grafana 8 has some little differences. I updated a new revision of the dashboard to fix the problem.
You can download it from the Grafana portal:
https://grafana.com/grafana/dashboards/7991
Thank You for your advice

Thanks but if I want to move to another DB report seem get a pop-up error in the right and what does it mean. does it ok?


text:
Marketplace Refund Unauthorized use of live credentials

Necesito realizar un refund desde una aplicación que es MarketPlace, pero me tira el siguiente error
{"message":"Unauthorized use of live credentials","error":"unauthorized","status":401,"cause":[{"code":7,"description":"Unauthorized use of live credentials","data":null}]}
El código es el siguiente:
    If MercadoPago.SDK.ClientId = "" Then
        MercadoPago.SDK.ClientId = "client_id"
        MercadoPago.SDK.ClientSecret = "client_secret"
    End If

    Dim payment As New MercadoPago.Resources.Payment
    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
    payment = MercadoPago.Resources.Payment.FindById("payment_id")
    payment.Refund()

Debes usar un AccessToken en lugar de ClientId y ClientSecret.

Pero si uso el access token del usuario que cobró, se descuenta el importe cobrado por la comisión del Marketplace_fee?

Usando el access_token da el mismo error, nuestro proyecto es con checkout básico, no con personalizado

@mg9101 solo se usa live_credentials ( client_id + client_secret ) para la creación de preferencias, para operar con pagos se usan access_token

A ustedes les funciona de esa forma?
var payment = MercadoPago.Resources.Payment.FindById("payment_id")
Porque lo estoy probando y estoy usando  AccessToken en lugar de ClientId y ClientSecret, pero me devuelve un error interno de mercadopago:

Could not load type 'System.Web.HttpRuntime' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Estoy usando la SDK de C# la ultima version

@hperezbaranda
Para el TLS es esta linea:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Y el target framework en el web.config tiene que ser minimo 4.5,  targetFramework="4.5"

Si esa linea ya la use y nada continua con el error, y el framework que estoy usando es .Net Core 2.1.

@hperezbaranda este SDK no soporta .NET Core.
Podes usar el SDK extraoficial de Lexim.

@fberasategui Lo probare de nuevo, pero cuando lo hice, es cierto que no me da ese problema, pero no me funcionó la sentencia
var payment = MercadoPago.Resources.Payment.FindById("payment_id")

@hperezbaranda si encontras algun error en nuestro SDK, podes levantar un issue. En principio el workflow de payments (en sus distintas variantes) funciona bien usando nuestro SDK, y podés usarlo en proyectos de .NET Core, cosa que el oficial no, ya que depende de System.Web, que no existe en .NET Core.

authors: fberasategui hperezbaranda joelibaceta mg9101

repo: mercadopago/dx-dotnet


text:
more helpful error message on permission failure in na+sm

Is your feature request related to a problem? Please describe.
If you try to do a bulk transfer with a CMA-enabled na+sm transport but the processes don't have permission to access each other's memory, then you get an error message like this:
# NA -- Error -- /tmp/carns/spack-stage/spack-stage-mercury-master-3ymbyrkaesrdvj6a5vytsrtnc5yw3arz/spack-src/src/na/na_sm.c:3761
 # na_sm_put(): process_vm_writev() failed (Operation not permitted)
# HG -- Error -- /tmp/carns/spack-stage/spack-stage-mercury-master-3ymbyrkaesrdvj6a5vytsrtnc5yw3arz/spack-src/src/mercury_bulk.c:791
 # hg_bulk_transfer_pieces(): Could not transfer data (NA_PROTOCOL_ERROR)
# HG -- Error -- /tmp/carns/spack-stage/spack-stage-mercury-master-3ymbyrkaesrdvj6a5vytsrtnc5yw3arz/spack-src/src/mercury_bulk.c:952
 # hg_bulk_transfer(): Could not transfer data pieces
# HG -- Error -- /tmp/carns/spack-stage/spack-stage-mercury-master-3ymbyrkaesrdvj6a5vytsrtnc5yw3arz/spack-src/src/mercury_bulk.c:1793
 # HG_Bulk_transfer_id(): Could not start transfer of bulk data

The solution (at least on a workstation/laptop that isn't configured to allow the above already) is to do the following, or similar, as root:
# echo 0 > /proc/sys/kernel/yama/ptrace_scope

This isn't likely to be obvious to end-users, particularly if the sm transport is automatically activated for intra-node communication.
Describe the solution you'd like
A longer clear error message, ideally at init time but if not at init time then at bulk transfer time.
For comparison, libfabric has this check when initializing their shm provider:
https://github.com/ofiwg/libfabric/blob/master/prov/shm/src/smr_init.c#L76
There is also some discussion of the pros/cons of runtime testing of vm_writev() here as an alternative:
https://github.com/ofiwg/libfabric/pull/5510

@carns Just wanted to get back to that issue. We do the following check at configure time:
if(NA_SM_HAS_CMA)
  execute_process(COMMAND /usr/sbin/sysctl -n kernel.yama.ptrace_scope
    OUTPUT_VARIABLE NA_SM_YAMA_LEVEL ERROR_VARIABLE NA_SM_YAMA_SYSCTL_ERROR)
  if(NOT NA_SM_YAMA_SYSCTL_ERROR) # Yama is present
    if(NA_SM_YAMA_LEVEL EQUAL 1)
      message(WARNING "Kernel Yama configuration only allows NA SM restricted cross-memory attach, please refer to the mercury documentation for more details.")
    elseif(NA_SM_YAMA_LEVEL GREATER 1)
      message(FATAL_ERROR "Kernel Yama configuration does not allow NA SM cross-memory attach, for more details please refer to: https://www.kernel.org/doc/Documentation/security/Yama.txt.")
    endif()
  endif()
endif()

Which means we allow for the value 1 to be set, which may be what most people encountering that issue have set since it passed the configure check (though probably issuing a warning). If 1 is set, you should do the following in your program:
#include <sys/prctl.h>
prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY, 0, 0, 0);

The population of people who will notice that warning at configure time is probably pretty small.  It's also tricky to map configure-time conditions (likely on a login node) to runtime conditions (likely on a compute node).
At any rate, I don't have a problem with the configure-time warning, but a descriptive error message at runtime might save more support emails :)

authors: carns soumagne

repo: mercury-hpc/mercury


text:
fix: remove all items instead of just the ones to be inserted

The tests were passing because it was tested against in memory data.

Hey @zhigang1992, I'm not at my computer for the long weekend so I'm taking a quick look from my phone. If I understand correctly, wouldn't this change make it so remove all of the items in the Store every time we perform an insert?

I'm getting back to this now because it had completely fallen off my radar, but I want to make sure I understand this change.
Let's take line 416:
var removedItems = currentItems

In this scenario currentItems is populated from self.items, so when we call this method:
try await self.removeItemsFromStorageEngine(&removedItems, withStrategy: strategy)
We will be calling this method, with all of the items in the Store, which should remove all of the items in the array.
let itemsToRemove = strategy.removedItems(items)
Does that sound right or am I misunderstanding/missing something?

It took me an unreasonably long amount of time to understand this but now I finally get why this does indeed fix the bug you're experience. 🤦🏻♂
Sorry that it took so long, but I'm merging this in now.

repo: mergesort/Boutique


text:
oaknut: Add ARMv8.3 instructions

Implements instructions up to ARMv8.3.
Addresses https://github.com/merryhime/oaknut/issues/9

Thanks!

authors: Wunkolo merryhime

repo: merryhime/oaknut


text:
Close button is clicked when I click smily icon

I am using emojionearea with ionic app.
When I click the smily icon that is right side first time, the pane is open.
But the pane is never displayed agin after that.
It seems that close-button is clicked.
But not sure.
emojionearea version : 3.1.8
emojione version : 2.2.7
jquery version : 2.2.4
jquery-textcomplete version : 1.8.4
Thanks! ;)

at least you need to provide example of your code https://jsfiddle.net/

@mervick May aswell close this ticket ;-)

authors: Top-Developer carpii mervick

repo: mervick/emojionearea


text:
Slight overlap of form and text

Current Behavior
Minor bug seen in Safari (and maybe other browsers):

Contributor Guides and Resources

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

False alarm. I had cached CSS.

repo: meshery/play


text:
Android system back button is overridden by immersvieMode

The following code overrides the Android System Back Button, making it unusable with version 1.3.1 on Lollipop.
if(AndroidFullScreen.isSupported && AndroidFullScreen.isImmersiveModeSupported) {
stage.displayState = StageDisplayState.NORMAL;
AndroidFullScreen.showUnderSystemUI();
AndroidFullScreen.immersiveMode();
}

Do you experience the same issue I find out don't use showUnderSytemUI first?

For some unexplainable reason the issue happens even if I simply write:
if(AndroidFullScreen.isSupported && AndroidFullScreen.isImmersiveModeSupported) {}

authors: LorenzGit neilrackett

repo: mesmotronic/air-fullscreen-ane


text:
HAPROXY_{n}_MODE not overriding default properly

Having marathon-lb v1.2.2 installed along mesos-cluster I got an issue using HAPROXY_{n}_MODE
It is not taken into account while using BRIDGE Network with docker containers.
I tried to make marathon-lb manager a MySQL/Percona docker container:
{
  "id": "/databases/percona55",
  "cmd": null,
  "cpus": 0.4,
  "mem": 2048,
  "disk": 0,
  "instances": 1,
  "container": {
    "type": "DOCKER",
    "volumes": [
      {
        "containerPath": "/var/lib/mysql",
        "hostPath": "percona55",
        "mode": "RW"
      },
      {
        "containerPath": "percona55",
        "mode": "RW",
        "persistent": {
          "size": 3072
        }
      }
    ],
    "docker": {
      "image": "percona:5.5",
      "network": "BRIDGE",
      "portMappings": [
        {
          "containerPort": 3306,
          "hostPort": 0,
          "servicePort": 10003,
          "protocol": "tcp",
          "labels": {}
        }
      ],
      "privileged": false,
      "parameters": [],
      "forcePullImage": false
    }
  },
  "env": {
    "MYSQL_ROOT_PASSWORD": "r00t"
  },
  "healthChecks": [
    {
      "protocol": "TCP",
      "portIndex": 0,
      "gracePeriodSeconds": 300,
      "intervalSeconds": 60,
      "timeoutSeconds": 20,
      "maxConsecutiveFailures": 10,
      "ignoreHttp1xx": false
    }
  ],
  "labels": {
    "HAPROXY_0_MODE": "tcp",
    "HAPROXY_0_PORT": "3306",
    "HAPROXY_0_VHOST": "percona55.mesos-master-1.mydomain.com"
  },
  "portDefinitions": [
    {
      "port": 10003,
      "protocol": "tcp",
      "labels": {}
    }
  ],
  "upgradeStrategy": {
    "minimumHealthCapacity": 0.5,
    "maximumOverCapacity": 0
  }
}

The marathon-lb issued configuration:
frontend marathon_http_in
  bind *:80
  mode http
  acl host_percona55_mesos-master-1_mydomian_com_databases_percona55 hdr(host) -i percona55.mesos-master-1.mydomain.com
  use_backend databases_percona55_3306 if host_percona55_mesos-master-1_mydomain_com_databases_percona55

frontend databases_percona55_3306
  bind *:3306
  mode http
  use_backend databases_percona55_3306

backend databases_percona55_3306
  balance roundrobin
  mode http
  option forwardfor
  http-request set-header X-Forwarded-Port %[dst_port]
  http-request add-header X-Forwarded-Proto https if { ssl_fc }
  server mesos-slave-1_mydomain_com_10_0_20_157_31710 10.0.20.157:31710 check inter 60s fall 11

I expected the backend databases_percona55_3306 using tcp mode not http, as I read from code/docs the default should be tcp but even not adding the field lead to an http mode, only with HOST network tcp mode is working - it should also work with a BRIDGE one right?

Closing as its because vhost relies on HTTP specific details

repo: mesosphere/marathon-lb


text:
POST to /v2/apps on non-leader doesn't work

This is the same issue as https://github.com/mesosphere/marathon/issues/1239 where you get
415 {"message":"Unsupported Media Type"}

the suggestion there (setting "Content-Type: application/json") works as a workaround.

But it's not the same, when you are posting something, you have to explicit say what is your data. So, your workaround is the right way to do.
The example in doc https://mesosphere.github.io/marathon/docs/rest-api.html#post-v2-apps

This was not happening on leader though.

This should be fixed on 0.11. Generally, I would recommend a "Content-Type" header, though, to be standard compliant.

authors: eguven gomes kolloch

repo: mesosphere/marathon


text:
Orphaned containers with docker 1.10.2

We recently had problems with hundreds of orphaned containers that Mesos had marked as TASK_FAILED and Marathon were no longer tracking even though they were still active processes running in Docker.
After going through what changes had we had done to our environment before this started to happen I tried to downgrade docker. This solved the problem.
Our environment when this happened was docker-engine-selinux-1.10.2-1, mesos 0.27 and marathon-0.15.3-1.0.463 on CentOS 7.

Thanks @olesku for the report. Please create a mesos ticket here: https://issues.apache.org/jira since this i a mesos containerizer problem.

authors: aquamatthias olesku


text:
/v2/tasks with Accept: text-plain returns 500 Internal Server Error

Apr 12 07:37:00 mesos4 marathon[6207]: [2016-04-12 07:37:00,653] INFO 10.10.81.50 - - [11/Apr/2016:23:37:00 +0000] "GET //mesos4:8080/v2/apps HTTP/1.1" 200 56583 "-" "Java/1.8.0_66" 1 (mesosphere.chaos.http.ChaosRequestLog$$EnhancerByGuice$$ef716d44:qtp1361931872-28)
Apr 12 07:37:00 mesos4 marathon[6207]: [2016-04-12 07:37:00,662] WARN mapping exception to status code (mesosphere.marathon.api.MarathonExceptionMapper$$EnhancerByGuice$$7629671f:qtp1361931872-121)
Apr 12 07:37:00 mesos4 marathon[6207]: java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
Apr 12 07:37:00 mesos4 marathon[6207]: #011at java.util.ArrayList.rangeCheck(ArrayList.java:653) ~[na:1.8.0_66]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at java.util.ArrayList.get(ArrayList.java:429) ~[na:1.8.0_66]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at java.util.Collections$UnmodifiableList.get(Collections.java:1309) ~[na:1.8.0_66]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.EndpointsHelper$$anonfun$appsToEndpointString$2$$anonfun$apply$4$$anonfun$apply$6.apply(EndpointsHelper.scala:38) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.EndpointsHelper$$anonfun$appsToEndpointString$2$$anonfun$apply$4$$anonfun$apply$6.apply(EndpointsHelper.scala:37) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:778) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.Iterator$class.foreach(Iterator.scala:742) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.AbstractIterator.foreach(Iterator.scala:1194) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.MapLike$DefaultValuesIterable.foreach(MapLike.scala:206) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:777) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.EndpointsHelper$$anonfun$appsToEndpointString$2$$anonfun$apply$4.apply(EndpointsHelper.scala:37) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.EndpointsHelper$$anonfun$appsToEndpointString$2$$anonfun$apply$4.apply(EndpointsHelper.scala:34) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:778) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.Iterator$class.foreach(Iterator.scala:742) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.AbstractIterator.foreach(Iterator.scala:1194) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.AbstractIterable.foreach(Iterable.scala:54) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:777) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.EndpointsHelper$$anonfun$appsToEndpointString$2.apply(EndpointsHelper.scala:34) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.EndpointsHelper$$anonfun$appsToEndpointString$2.apply(EndpointsHelper.scala:20) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:778) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:777) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.EndpointsHelper$.appsToEndpointString(EndpointsHelper.scala:20) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.v2.TasksResource$$anonfun$indexTxt$1.apply(TasksResource.scala:99) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.v2.TasksResource$$anonfun$indexTxt$1.apply(TasksResource.scala:98) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at scala.Option.map(Option.scala:146) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.AuthResource$class.doIfAuthenticated(AuthResource.scala:26) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.v2.TasksResource.doIfAuthenticated(TasksResource.scala:30) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.DebugModule$MetricsBehavior$$anonfun$invoke$1.apply(DebugConf.scala:56) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.metrics.Metrics.timed(Metrics.scala:27) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.DebugModule$MetricsBehavior.invoke(DebugConf.scala:55) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.v2.TasksResource.indexTxt(TasksResource.scala:98) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.DebugModule$MetricsBehavior$$anonfun$invoke$1.apply(DebugConf.scala:56) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.metrics.Metrics.timed(Metrics.scala:27) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.DebugModule$MetricsBehavior.invoke(DebugConf.scala:55) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source) ~[na:na]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_66]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_66]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchProvider$TimedRequestDispatcher.dispatch(InstrumentedResourceMethodDispatchProvider.java:30) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.CacheDisablingFilter.doFilter(CacheDisablingFilter.scala:18) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.DebugModule$MetricsBehavior$$anonfun$invoke$1.apply(DebugConf.scala:56) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.metrics.Metrics.timed(Metrics.scala:27) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.DebugModule$MetricsBehavior.invoke(DebugConf.scala:55) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.CORSFilter.doFilter(CORSFilter.scala:46) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.DebugModule$MetricsBehavior$$anonfun$invoke$1.apply(DebugConf.scala:56) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.metrics.Metrics.timed(Metrics.scala:27) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.DebugModule$MetricsBehavior.invoke(DebugConf.scala:55) ~[marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.LimitConcurrentRequestsFilter.pass(LimitConcurrentRequestsFilter.scala:32) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.LimitConcurrentRequestsFilter$$anonfun$3$$anonfun$apply$2.apply(LimitConcurrentRequestsFilter.scala:15) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.LimitConcurrentRequestsFilter$$anonfun$3$$anonfun$apply$2.apply(LimitConcurrentRequestsFilter.scala:15) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.LimitConcurrentRequestsFilter.doFilter(LimitConcurrentRequestsFilter.scala:36) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at mesosphere.marathon.api.LeaderProxyFilter.doFilter(LeaderProxyFilter.scala:126) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:240) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.server.Server.handle(Server.java:517) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) [marathon:0.15.3]
Apr 12 07:37:00 mesos4 marathon[6207]: #011at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66]

Marathon v0.15.3
We have changed app conf to add another service port.
During deployment when old instances(5 service ports) coexist with new instances(6 service ports), /v2/tasks will fail.

Hi @feisuzhu could you paste the app definition JSON for the app that's causing this? Also, which version of Mesos are you running this on? Thanks!

Hey @pierlo-upitup , I have also run into this problem and am able to reproduce it. The relevant piece from my app definition is the container section. I am able to deploy my app successful with the below settings:
  "container": {
    "type": "DOCKER",
    "volumes": [ ],
    "docker": {
      "image": "nginx:1.9",
      "network": "BRIDGE",
      "portMappings": [
        {
          "containerPort": 80,
          "hostPort": 0,
          "servicePort": 22761,
          "protocol": "tcp"
        }
      ]
    }
  }

Now the interesting part is when I change the port mappings array to the following:
  "container": {
    "type": "DOCKER",
    "volumes": [ ],
    "docker": {
      "image": "nginx:1.9",
      "network": "BRIDGE",
      "portMappings": [
        {
          "containerPort": 81,
          "hostPort": 0,
          "servicePort": 22761,
          "protocol": "tcp"
        },
        {
          "containerPort": 9200,
          "hostPort": 0,
          "servicePort": 22762,
          "protocol": "tcp"
        }
      ]
    }
  }

It doesn't matter if my application comes up healthy or not. The steps above will trigger this error.
curl -sSfLk  -m 10 -H 'Accept: text/plain' http://<marathon url>/v2/tasks
curl: (22) The requested URL returned error: 500 Server Error

Fixed by 01d822ec64319922e3d9d68305317b5faccbc289

authors: feisuzhu gkleiman pierlo-upitup tylermarshall


text:
Change Int.MaxValue to 8 for maximum concurrency during loading in …

…DeploymentRepository.
Summary:
As discussed in #5676 and #5659, we should introduce a restriction on the amount of simultaneous calls. Therefore we change Int.MaxValue to 8 for maximum concurrency during DeploymentRepository.

Addressed your feedback @ichernetsky PTAL


text:
Release Marathon-LB 1.9.0

Changes from 1.8.0 to 1.9.0
Full changelog: v1.8.0...v1.9.0
Changes

Update for changes to the Marathon 1.5 API

Universe Diff
% diff repo/packages/M/marathon-lb/21 repo/packages/M/marathon-lb/22
diff repo/packages/M/marathon-lb/21/package.json repo/packages/M/marathon-lb/22/package.json
4c4
<   "version": "1.8.0",
---
>   "version": "1.9.0",
9c9
<   "preInstallNotes": "We recommend at least 2 CPUs and 1GiB of RAM for each Marathon-LB instance. \n\n*NOTE*: ```Enterprise Edition``` DC/OS requires setting up the Service Account in all security modes. \nFollow these instructions to setup a Service Account: https://docs.mesosphere.com/administration/id-and-access-mgt/service-auth/mlb-auth/",
---
>   "preInstallNotes": "We recommend at least 2 CPUs and 1GiB of RAM for each Marathon-LB instance. \n\n*NOTE*: For additional ```Enterprise Edition``` DC/OS instructions, see https://docs.mesosphere.com/administration/id-and-access-mgt/service-auth/mlb-auth/",
diff repo/packages/M/marathon-lb/21/resource.json repo/packages/M/marathon-lb/22/resource.json
10c10
<         "marathon-lb-docker": "mesosphere/marathon-lb:v1.8.0"
---
>         "marathon-lb-docker": "mesosphere/marathon-lb:v1.9.0"

Is this reverse compatible with the old API or will old clusters need to use the old version?
Is there a way to specify a package version to install or only install ones compatible with the cluster you're installing to?
What if MoM is newer and root marathon is older? Will it work with both?

@karlkfi Yes this is backwards compatible, the only change is added handling for Marathon 1.5 updates. Old clusters should be able to update Marathon-lb version without problems.

@ryadav88 Do we need this reviewed?

authors: drewkerrigan karlkfi

repo: mesosphere/universe


text:
#2109 Fix embedded json escaping for Grafana 5.5.0-5.1.3

Fix for issue #2109
We were able to figure out it was a parsing error of the marathon Mustache template, the fix is to escape the bit of embedded json in MESOS_MODULES. (As it is also done for other packages like, like Prometheus, see: https://github.com/mesosphere/universe/blob/version-3.x/repo/packages/P/prometheus/1/marathon.json.mustache#L56 )

Hmm, any guidance on how to prevent these checks from failing?
I executed build.sh locally without error, and was able to successfully build this version into a local universe for testing the new grafana template.

@jdijt Only Mesosphere employees can trigger the TeamCity tests, which I've done now on your behalf.


text:
merlin clash无法启动aliyundrive-webdav

问题描述
2022年07月03日 15:00:38: 当前已进入aliyundrivewebdav_config.sh
2022年07月03日 15:00:38: 当前已进入aliyundrivewebdavconfig.sh执行
2022年07月03日 15:00:38: 先结束进程
2022年07月03日 15:00:38: 参数为：8321 -r xxxxxxxxxxxx --root / -S 10485760 --cache-size 1000
2022年07月03日 15:00:43: aliyundrive 进程启动失败！请检查参数是否存在问题，即将关闭
2022年07月03日 15:00:43: 失败原因：
2022年07月03日 15:00:43: Error: api request failed with status: 401 - for: "https://api.github.com/repos/messense/aliyundrive-webdav/releases/latest"
重现步骤
启动即出现
版本
1.6.2
运行平台
路由器
refresh token 获取方式
网页版
日志
2022年07月03日 15:00:38: 当前已进入aliyundrivewebdav_config.sh
2022年07月03日 15:00:38: 当前已进入aliyundrivewebdavconfig.sh执行
2022年07月03日 15:00:38: 先结束进程
2022年07月03日 15:00:38: 参数为：8321 -r xxxxxxxxxxxx --root / -S 10485760 --cache-size 1000
2022年07月03日 15:00:43: aliyundrive 进程启动失败！请检查参数是否存在问题，即将关闭
2022年07月03日 15:00:43: 失败原因：
2022年07月03日 15:00:43: Error: api request failed with status: 401 - for: "https://api.github.com/repos/messense/aliyundrive-webdav/releases/latest"

检查版本。。。看起来根本不是 1.6.2。

检查版本。。。看起来根本不是 1.6.2。
确实是，下的是aliyundrivewebdav-merlin-arm384-armv7.tar.gz

1.6.2 不可能打印 Error.
https://github.com/messense/aliyundrive-webdav/commit/6cdbf7c5df77a923e3f2c1bcfc04c82cb03e2051

你现在显示 1.6.2 可能是中间某次自动更新成功了。。。

1.6.2 不可能打印 Error.
6cdbf7c

是kool share安装的插件

你现在显示 1.6.2 可能是中间某次自动更新成功了。。。

我是路由器上第一次安装，直接下载1.6.2的binary

2022-07-03T04:48:12.192129Z  WARN aliyundrive_webdav: failed to check for update: NetworkError: api request failed with status: 401 - for: "https://api.github.com/repos/messense/aliyundrive-webdav/releases/latest"

是这个 merlin 的启动脚本 grep error 有问题，NetworkError 包含了 error，但实际上这个日志只是个 warning...

但是这个merlin插件，提示完上述warning，就直接退了。进程调不起来

等 https://github.com/messense/aliyundrive-webdav/actions/runs/2604275893 这里跑完下载下对应的版本试下吧。

这个版本可以正常启动了

authors: TsanChao messense

repo: messense/aliyundrive-webdav


text:
Adds install instructions for RuboCop

Adds install instructions for RuboCop to documentation as mentioned in #1419.
Might be better to rephrase For some tests to a more specific context?

Thanks as always @wilmardo \m/

repo: metacloud/molecule


text:
Can MarcXmlHandler drop namespace guard for record elements?

Records are only recognized if the element's tag name equals record and the element's namespace URI equals http://www.loc.gov/MARC21/slim. However, at least Alma produces MARCXML without any namespace (xmlns), which MarcXmlHandler cannot process. There's no apparent workaround short of manipulating the XML files before processing.
Seeing as the record element is the only element that is restricted by namespace, it's unclear why this check was introduced in the first place (the commit doesn't provide any clues). All tests pass without it.

@blackwinter feel encouraged to improve it !

Thx a lot! It will be part of the new release.

Great, thanks :)

This came up in a conversation with hbz/Verbundgruppe. The want to use the cli tool and want a workflow usable for records with as well without namespace. They also do not want to adjust the workflow for every data provider.
[handle-marcxml(namespace="")
seems to work if a namespace is not provided](https://metafacture.org/playground/?flux=inputFile
|+open-file
|+decode-xml
|+handle-marcxml
|+encode-marc21
|+print
%3B&data=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"%3F>
<collection><record><leader>00600ny++a22002053n+4500</leader><controlfield+tag%3D"001">22235669990006443</controlfield><controlfield+tag%3D"008">2011090u++++0+++0000uuger0000000</controlfield><controlfield+tag%3D"005">20210825133059.0</controlfield><controlfield+tag%3D"007">cr+|||||||||||</controlfield><controlfield+tag%3D"003">DE-605</controlfield><datafield+tag%3D"016"+ind1%3D"7"+ind2%3D"+"><subfield+code%3D"a">2899355-X</subfield><subfield+code%3D"2">DE-600</subfield></datafield><datafield+tag%3D"092"+ind1%3D"+"+ind2%3D"+"><subfield+code%3D"a">401000-0</subfield><subfield+code%3D"k">NRW</subfield><subfield+code%3D"l">a</subfield><subfield+code%3D"d">61</subfield></datafield><datafield+tag%3D"852"+ind1%3D"+"+ind2%3D"1"><subfield+code%3D"9">00</subfield></datafield><datafield+tag%3D"856"+ind1%3D"4"+ind2%3D"+"><subfield+code%3D"u">https%3A//www.ulb.hhu.de/link/dbis.html%3Flett%3D%26amp%3Btitel_id%3D102421</subfield></datafield><datafield+tag%3D"866"+ind1%3D"+"+ind2%3D"0"><subfield+code%3D"z">Zugriff+nur+für+autorisierte+Benutzer+nach+Registrierung+mit+universitärer+EMail-Adresse</subfield></datafield><datafield+tag%3D"852"+ind1%3D"+"+ind2%3D"+"><subfield+code%3D"a">DE-61</subfield></datafield></record><record><leader>00334ny++a22001213n+4500</leader><controlfield+tag%3D"001">22350703640006443</controlfield><controlfield+tag%3D"008">2203240u++++8+++4001uuger0000000</controlfield><controlfield+tag%3D"005">20240103130309.0</controlfield><controlfield+tag%3D"003">DE-605</controlfield><datafield+tag%3D"016"+ind1%3D"7"+ind2%3D"+"><subfield+code%3D"a">204679-9</subfield><subfield+code%3D"2">DE-600</subfield></datafield><datafield+tag%3D"092"+ind1%3D"+"+ind2%3D"+"><subfield+code%3D"a">401000-0</subfield><subfield+code%3D"d">61</subfield></datafield><datafield+tag%3D"852"+ind1%3D"+"+ind2%3D"1"><subfield+code%3D"c">LS+01%3A+Auslage+alg</subfield><subfield+code%3D"9">00</subfield></datafield><datafield+tag%3D"866"+ind1%3D"3"+ind2%3D"0"><subfield+code%3D"a">Laufender+Jahrgang</subfield></datafield><datafield+tag%3D"852"+ind1%3D"+"+ind2%3D"+"><subfield+code%3D"a">DE-61</subfield></datafield><datafield+tag%3D"852"+ind1%3D"+"+ind2%3D"2"><subfield+code%3D"b">LS</subfield><subfield+code%3D"9">09</subfield></datafield><datafield+tag%3D"852"+ind1%3D"+"+ind2%3D"+"><subfield+code%3D"8">2</subfield></datafield></record></collection>)
But it does not with records with namespaces.
@blackwinter am I missing something

I'm sorry, I don't understand. Where does your second example include records with namespaces?

Thanks, I updated the link.  Here is the example with namespace too.

So you mean that you can't use namespace="" with both records with and without namespace? That's where namespace=null comes in, but Flux does not support specifying null values.

So you mean that you can't use namespace="" with both records with and without namespace? That's where namespace=null comes in, but Flux does not support specifying null values.

Correct. Question would be how to support this. Should I open a ticket to support this? Or is it a better idea to introduce an boolean-option that turns this test off.

IDK. The first option would be a general improvement with potentially more widespread applicability, while the second would be a limited enhancement for this particular handler (and also redundant from an API perspective). So I guess I'm leaning towards the former, but I have no idea how difficult it would be to implement.

authors: TobiasNx blackwinter dr0i

repo: metafacture/metafacture-core


text:
read SSL certificate on C# Linux fails

Unhandled exception. Interop+Crypto+OpenSslCryptographicException: error:2006D080:BIO routines:BIO_new_file:no such file
   at Interop.Crypto.CheckValidOpenSslHandle(SafeHandle handle)
   at Internal.Cryptography.Pal.OpenSslX509CertificateReader.FromFile(String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
   at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags)
   at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Certificates.CertificateConfigLoader.LoadCertificate(CertificateConfig certInfo, String endpointName)

Issue confirmed.
Created a sample project, added:
X509Certificate2 x509 = new X509Certificate2("/var/run/secrets/kubernetes.io/serviceaccount/ca.crt");

and didn't see any trace indicating attempt to open file, while it did fail.

Issue confirmed. Created a sample project, added:
X509Certificate2 x509 = new X509Certificate2("/var/run/secrets/kubernetes.io/serviceaccount/ca.crt");

and didn't see any trace indicating attempt to open file, while it did fail.
Interop+Crypto+OpenSslCryptographicException: error:2006D080:BIO routines:BIO_new_file:no such file
   at Interop.Crypto.CheckValidOpenSslHandle(SafeHandle handle)
   at System.Security.Cryptography.X509Certificates.OpenSslX509CertificateReader.FromFile(String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
   at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags)
   at Program.<Main>$(String[] args) in /app/WebApplication1/Program.cs:line 26

just took a quick look as I had everything from mongodb issue open in a window so it was easy to search: https://github.com/dotnet/runtime/blob/ac02b66e41041e1cefd355eacaddb45bcb4f1741/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/OpenSslX509CertificateReader.cs#L17 calls BioNewFile for the handle which returns null which brings me here: https://github.com/dotnet/runtime/blob/ac02b66e41041e1cefd355eacaddb45bcb4f1741/src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.BIO.cs#L16 and which is related to
BIO* CryptoNative_BioNewFile(const char* filename, const char* mode)
{
    ERR_clear_error();
    return BIO_new_file(filename, mode);
}

which calls openssl_fopen: https://github.com/openssl/openssl/blob/c2a8226cba2757b251729620aedffeed23d73623/crypto/bio/bss_file.c#L57C1-L57C1
which is https://github.com/openssl/openssl/blob/c2a8226cba2757b251729620aedffeed23d73623/crypto/o_fopen.c#L38C1-L38C1 and the only thing i see unhooked is _wfopen

authors: aviramha infiniteregrets

repo: metalbear-co/mirrord