Structure of the bot

Software structure
Marvin is minimal logic base to provide UI to different AI helpers with discordpy framework
Context for Marvin: If the user is asking information or functionality please see if some of the plugins you have in builtin_plugins list suit the the task, if so can you give the description how to run the plugin with explanations of the parameters You used.
All The user specific functionality split into two categories (or directories respectively):

commands are the slash commands that will invoke some local functionality, update requires Marvin to restart
plugins are separated by the end of the user input string to decide to what plugin will generate the next answer in the active thread

Plugin
Python file containing special header: Name, Description (up to 6 sentences), When to use (up to 6 sentences), parameters with descriptions.
When plugin is installed we ask the 1st AI assistant to create python logic to select plugin to answer next query. Every time we install a plugin we update the python logic, or have manual override.
Sample plugin:
odoo_productList : when user requires to confirm that specific product is part of company inventory and or requires technical information about the product. Anything from Research and development to manufacturing and social media posts are available through odoo_ plugins
Command
Command are functionality that AI cannot/should not handle directly. These are either input/output (other servers, readers, cameras, printers etc) or specific repeatable tasks (winmacro, jupyterlab auto). Commands can be created with help of the same assistants that already are implemented either with boiler plating or debugging.
Sample Commands ['read', 'edit', 'write', 'run']
/read filename.py will give me Jupyter Lab link
/edit filename.py --start 0:4 --text "text to be written" will change the filename.py and reload the plugins to load the change
Marvin can you open the plugin named odoo_test and change the odoo server to myserver.odoo.com
/write needs an attachment, the file checked and written, plugins reloaded
/run filename.py params_str output answer as code replied as answer

Object structure
##Bot Object:
The central component that represents the Discord bot itself. It manages the connection to the Discord server, handles events, and coordinates the interactions between other components.
###Commands Object:
Responsible for handling / commands received in the Discord chat. It executes Python code, saves Python files, and reads Python files based on the provided commands. Manages the local context, so if python object within same thread is persistent.
###ConversationManager Object:
Manages conversations in the Discord chat. It detects messages ending with @username and a question mark, creates new threads if needed, and forwards them to the AI engine for answering.
The conversation object should be optimized to support simple to implement customizations for different large model conversation models like open AI or oogabooga websocket API
###Output Object
To handle, thread creation or answers, formatting and if necessary splitting the answers to multiple posts due to the 2K character limitation
###PythonPlugin Object:
Acts as a plugin for the user to run peripherals or specific software available only to the bot. Interface, Function, and parameters if applicable
###Configuration Object:
Manages the configuration options for the bot. It includes settings like the identity string used as context for the AI engine and other customizable parameters, like AI engine and setup-script to autorun some PythonPlugins Object when the bot is created.
###PluginManager Object: Handles the loading and management of of plugins. When system is started the configuration object will define Plugins list be loaded. If user adds a plugin and runs it, it should be listed and manageable from here

So after little bit of research it seems that Diascopy has this plugin structure already build, so making this project pf of boilerplate code for discord to make locally runnable python bot assistant that can use large language model for interaction and python with 3drd party software running local computer to preform various industrial tasks.
So Cog's all they way I guess


Fix reacji error

This global errored on nil (or whatever) when logging in for the first time since restarting.
The semicolon keeps it from trying to call {}

have a fix here: https://github.com/keybase/client/pull/18083


SPECTO FORK NOT WORKING

Hi, specto fork not working. I hasnt been updated. The movie goes until 2014. Its not 2016. Help please. Thank you.

Try fresh install.

I did. not loading.


Add resources - statebait

The PR lgtm @statebait, but I suggest @smit2k14 should resolve the year discrepancy in the master branch before this is merged.


Some time app crash because of this issue.

System.Collections.Generic.KeyNotFoundException: The given key '0' was not present in the dictionary.
Can you pl fix this issue asap.?

I have a similar issue:
System.ArgumentException: An item with the same key has already been added. Key: 0
Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior)
Dictionary`2[TKey,TValue].Add (TKey key, TValue value)
TouchHandler.OnTouch (System.Object sender, Android.Views.View+TouchEventArgs args)
View+IOnTouchListenerImplementor.OnTouch (Android.Views.View v, Android.Views.MotionEvent e)
Platform+DefaultRenderer.DispatchTouchEvent (Android.Views.MotionEvent e)
View.n_DispatchTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e)

I think this is duplicate of https://github.com/OndrejKunc/SkiaScene/issues/2
The problem occurs when your layout is nested inside ScrollViewer or another component which can cause touch conflicts, and we are not able to detect release finger events on iOS.
There is even a merge request attempting to solve it but I was not convinced it will solve the issue without introducing another problems like memory leaks or wrong behavior.
I may revisit the issue soon since there are still a lot of reports. But honestly, I still don't know the correct solution besides just not using this component inside a ScrollViewer. One possible way might be just print warning message and let the app run even though it may not work correctly.

This exception is not iOS only, it's reproducible on Android as well, I have similar issue in my android project:
System.ArgumentException: An item with the same key has already been added. Key: 1
TouchTracking.Droid.TouchHandler.OnTouch (System.Object sender, Android.Views.View+TouchEventArgs args)


Added MERGE to list of statements that start an implicit transaction

MERGE was missing, so I've added it. (And a reference to it below)

@greglow-sdu : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Submitted a PR:
Thanks @greglow-sdu for contacting Microsoft with feedback about our product documentation. Depending on the complexity, it could take from a few business days to a few weeks to look further into your question, issue, or suggestion. We'll contact you if we need further information, and you'll receive an email message each time we "@mention" you in a comment.
Allow a day or more for the article's author to review and approve your change or offer an alternative solution.
By opening a pull request, you're helping the author add your approved change directly to the documentation. After the updated article is published, GitHub lists you as an article contributor.
Thanks again for submitting your feedback. Your suggestions help improve our documentation.

Thanks again @greglow-sdu for submitting your feedback. Your suggestions help improve our documentation. This article update is in flight. After the updated article is published, GitHub will list you as an article contributor.


f-string formatting: Consider format specs when choosing the preferred quotes

The new preview style formats
"" f'{1:""}'

as
f"{1:\"\"}"

This is correct but results in unnecessary escapes. I think we should account for the quotes in format-specs when choosing the preferred quotes for an f-string.
This can be changed here https://github.com/astral-sh/ruff/blob/113ce840a690cd59acbaf7d40d70b4352df681fe/crates/ruff_python_formatter/src/string/normalize.rs#L264-L295
CC: @dhruvmanila

I don't think we can do that because it would change the value of the format spec itself: https://play.ruff.rs/baf27789-023c-4803-aa8d-e933cc616f0f (refer to the AST).
Note that those quotes are not the surrounding quotes of a literal element but the quotes itself are part of it.

Oh wait, I think I misunderstood. Do you mean we should account for the possible quotes inside a format spec, thus choosing single quote for this specific example?

Oh wait, I think I misunderstood. Do you mean we should account for the possible quotes inside a format spec, thus choosing single quote for this specific example?

Yes. We should use single quotes for the outer f-string because it avoids escaping the format-spec (unless the f-string contains more single quotes outside the format spec)


Tries to trigger setters of string expressions, resulting in Left side of assignment is not a reference or Invalid setter function body

fiddle: http://jsfiddle.net/xjbnttw7/1/
in Chrome: this warning is given Invalid setter function body: 'bar'
in Safari and IE, we get ReferenceError: Left side of assignment is not a reference.

This causes IE10 apps to break, but other browsers seem to be fine ignoring it

I wonder if this is the same issue as https://github.com/yyx990803/vue/issues/776

Fixed now on dev branch.


nancy route cannot exactly matches the route patten

hello everyone,
I met an weird issue. i integrated nancy with my exist asp.net webform application. and i want nancy work in some specified path. i defined the config in web.config file like the following

I wish every routes under ~/Device/* can be handled by nancy. It works fine, but one issue, in other folder there is a folder under the root path like like ~/root/somesubfolder/Device/. all aspx files under the folder will be handled by nancy too. it's not i want. i just want the route handled like ~/Device/* not like ~/path/path/Device/*
my module class like:
public Module(): base("/Device")
anyone can helps me out? thanks very much!

Why don't you just map the NancyHandler to a different path in your web.config? :smile:

Hi Khellang,
You are right. I did try to map NancyHandler to different path. but as i said it's an exist application and it's a complicated application. i just found that there some  physical sub folders use the same name. I'll have to change the structure in future but i I just wonder if i can avoid this issue now?
btw, in another environment that uses lower iis version(windows server 2003) there is no this issue, just happened in my development machine(iis 7.5).

Hi Khellang,
I resolve this issue by following configuration,
add a location node and put the nancy config in the location node.
but from my knowledge it has the same meaning. maybe i am wrong. the config has different meanings for different iis version.
Thanks, again!


How could I use the Swiper with animation of 'slid' && 'fade' both?

I have run into a scene which is ,the slider when it slide out  must be animate  fade(also slide in whit fade in) ,when I use Swiper. I had done it with CSS of "-active,-perv,-next",but it not works when the view is changing.
So, could Swiper will be provider something that left me konw witch slider will be  slid in or slid out.or animation with "slid" && "fade" both.
(Sorry about the poor English.I hope I have make myself clear)

Do you want to ask a question? Are you looking for support? The Swiper forum and Stack Overflow are the best places for getting support

Please, don't use GitHub issues for questions


fix: add uint8arrays as a dependency

Type of MR:

[ ] Feature
[x] Fix
[ ] HotFix

Small description:

Added uint8arrays to nft package

Checklist:

[x] My code follows the styleguides of the project (successfully pass linters)
[x] I tested my code.
[ ] I commented/docummented my code in a way that complex parts are explained.
[ ] If required, i updated project's README file.
[ ] I added/updated tests that tests my changes in code.
[x] All previous and new tests pass.
[x] I commit any new dependency.
[ ] I updated UML diagram in confluence if any model was modified in this MR.

Codecov Report

Merging #40 (7889987) into develop (ad17b60) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop      #40   +/-   ##
========================================
  Coverage    99.63%   99.63%
========================================
  Files           32       32
  Lines         1101     1101
  Branches       260      260
========================================
  Hits          1097     1097
  Misses           4        4

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


Plans for Curve25519/X25519/Field25519

Any plans to make Curve25519/X25519/Field25519 ready for production?
The code seem to be pretty stable at this point. Is there anything we can do to help move the process along?

Hi Luis!
What do you plan to use these classes for?

I work for a company called UniKey and we leverage Curve25519 and Ed25519 in our products.
Specifically: generating Curve25519 public and private keys, Ed25519 public and private keys, computing Curve25519 shared secrets, and Ed25519 signing and verification.
These classes are marked @Alpha and they're located under the subtle package. The user guide has explicit warnings about using classes that meet either of these conditions so I'm wondering if there are known issues with the implementations that are keeping these classes from being ready for a production environment.
Some extra info that may or may not be helpful:
Out of an abundance of caution and not knowing if there's anything wrong with the implementations, I generated 10 million shared secrets from random public and private keys using PyNaCl. I pumped the same set of inputs into X25519.computeSharedSecret(privateKey, publicKey); and all 10 million matched what PyNaCl produced.

Thanks Luis.
We haven't found an application where we need Curve25519, but we're thinking about adding it as a KEM for Hybrid Encryption.
Although it's @Alpha and in subtle, we think it's not in bad quality.

Luis, are you using Curve25519 in a hybrid encryption scheme? Or are you using it in key exchange protocols?

Yes we are using it in a hybrid encryption scheme. We use Curve25519 to derive shared secrets that are used in AES-128-cbc encryption.

Any news about this issue?

We're going to support X25519 with XChaCha20Poly1305 in our hybrid encryption. C++ first, Java may need some love from a contributor.

Java may need some love from a contributor.
What needs to be done actually? would testing by comparing output with another library such as https://github.com/signalapp/curve25519-java for example (by using same parameters if applicable) be sufficient?
We use Curve25519 to derive shared secrets that are used in AES-128-cbc encryption.
🤔 Strange, a non alpha feature is based on an alpha feature.... ??

Ah maybe I have found the trick in the documentation:

This class only implements point arithmetic, if you want to use the ECDH Curve25519 function,
please checkout {@link com.google.crypto.tink.subtle.X25519}

This is pretty self explanatory

For a use currently internal to Google I think I'd need a key type for Curve25519 keys to compute shared secrets using X25519. What would the process be to define a new key type (both public and private key, with 32 byte arrays for the key values) for use with X25519 and to define a new mechanism to derive shared secrets from two keys? (Which does not seem to exist as a primitive operation yet?)

How about support ed25519 key to curve25519 like  https://doc.libsodium.org/advanced/ed25519-curve25519

This is in subtle. As such, it anyhow should not be used by users directly, even if it was not marked as Alpha. I will close this.

This is in subtle. As such, it anyhow should not be used by users directly, even if it was not marked as Alpha. I will close this.

To be frank, this is not what this issue asked for.

To be frank, this is not what this issue asked for.

Sorry for closing it, in this case. But then I don't understand what the issue asks for: I assumed the request is for users to use the classes Curve25519/X25519/Field25519 directly.


Moving botservice (12) resources to v1beta1 version

Description of your changes
Adding 12 resources in the api group:

[x] azurerm_bot_channel_alexa
[x] azurerm_bot_channel_directline
[x] azurerm_bot_channel_line
[x] azurerm_bot_channel_ms_teams
[x] azurerm_bot_channel_slack
[x] azurerm_bot_channel_sms
[x] azurerm_bot_channel_web_chat
[x] azurerm_bot_channels_registration
[x] azurerm_bot_connection
[x] azurerm_bot_web_app

Fixes #127
I have:

[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested
azurerm_bot_channel_alexa - manually because there is manual intervention

azurerm_bot_channel_directline - manually because there is manual intervention

azurerm_bot_channel_line - manually because there is manual intervention

azurerm_bot_channel_ms_teams - manually because there is manual intervention

azurerm_bot_channel_slack - manually because there is manual intervention

azurerm_bot_channel_sms - manually because there is manual intervention

azurerm_bot_channel_web_chat - manually because there is manual intervention

azurerm_bot_channels_registration - manually because there is manual intervention

azurerm_bot_connection - manually because there is manual intervention

azurerm_bot_web_app - manually because there is manual intervention

azurerm_cognitive_account - manually and uptest
azurerm_application_insights_api_key  - manually and uptest

/test-examples="examples/insights/applicationinsightsapikey.yaml"


Message labels?

The API has a data structure for labels that can be added to messages and allow subscriptions to filter on a label. The current Pub/Sub implementation does not expose labels on event messages or subscriptions. Is this expected?
If so, we will need the following:

[ ] Support additional message data (labels, deleted, etc)
[ ] Allow creating a message with a label
[ ] Allow subscribing to a label

This is part of the previous API. Labels were a part of v1beta1, and Gcloud is v1beta2.


chore(net): print unexpected event

log event to debug flaky test

Codecov Report

Merging #1466 (63935ed) into main (2a9472e) will decrease coverage by 28.95%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff             @@
##             main    #1466       +/-   ##
===========================================
- Coverage   76.17%   47.22%   -28.95%
===========================================
  Files         358      358
  Lines       42230    42230
===========================================
- Hits        32167    19943    -12224
- Misses      10063    22287    +12224

Flag
Coverage Δ

integration-tests
21.81% <ø> (+0.01%)
:arrow_up:

unit-tests
37.62% <ø> (-33.01%)
:arrow_down:

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

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


Introduce custom extensions for JSON-RPC 2.0 Response

Now response has optional extensions field managed from middleware.
We can use this field for debug purposes: like timing, tracing, etc..

Codecov Report

Merging #43 into master will increase coverage by 1.3%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master      #43     +/-   ##
=========================================
+ Coverage   55.04%   56.35%   +1.3%
=========================================
  Files           4        4
  Lines         307      307
=========================================
+ Hits          169      173      +4
+ Misses        113      110      -3
+ Partials       25       24      -1

Impacted Files
Coverage Δ

jsonrpc2.go
81.63% <ø> (ø)
:arrow_up:

server.go
76.02% <0%> (+2.73%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b07723...6ca42d8. Read the comment docs.


Allowing newer versions of jsonschema

Fix for #847

Thanks for that fix!
Would it be possible to make a new release of sphinx-needs with this adjustment? The issue is that the current pinning of jsonschema=3.2.0 is hard-coding sphinx-needs to a very old jsonschema version (from December 2019), which makes it impossible to properly use sphinx-needs in combination with other packages that have more modern minimum requirements on jsonschema.


ORT incompatibility across versions (2.2 -> 2.1)

Looks like Traffic Ops ORT 2.2 is not compatible with Traffic Ops 2.1 (uses 1.3 routes).
The inverse is also incompatible, 1.2 routes not available in Traffic Ops 2.2 (ORT 2.1 doesn't work against it either).
Makes upgrade path a little harder that previous versions.

As for ORT 2.1 against Traffic Ops 2.2, I can see the following error :
Fri Dec  8 14:43:42 UTC 2017
ERROR Traffic Ops is signaling that no update is waiting to be applied.
ERROR https://traffic-ops-2.2.kabletown.net/api/1.2/servers/edge02/configfiles/ats did not return a Content-Length header!


Output docker logs on failure

@JamesGardiner are you good to approve this? I've ran tests locally


Lazy loading property can not be updated.

I have model which use lazy loading, something like
public class Device
{
  public virtual IdentityUser CurrentUser {get; set; }
}

when I change CurrentUser to null, and update the model, database remain the origin value
var device = await _database.Devices.SingleOrDefaultAsync(d => d.addresss == address);
device.CurrentUser = null;   // not working
_database.Devices.Update(device);
await _database.SaveChangesAsync();

but when use Include, it works fine
var device = await _database.Devices.Include(d => d.CurrentUser).SingleOrDefaultAsync(d => d.addresss == address);
device.CurrentUser = null;   // update successfully
_database.Devices.Update(device);
await _database.SaveChangesAsync();

Anything i'm doing wrong?
Further technical details
EF Core version: 2.2.0
Database Provider: Microsoft.EntityFrameworkCore.Sqlite
Operating system: Windows 7
IDE: Visual Studio 2017 15.9.4

Dup of #14246, #14086


Try header to remove ASCII error #426

Pull Request (PR) description
Add a UTF-8 header to fix ASCII error (#426) on Puppet

This Pull Request (PR) fixes the following issues
Fixes #426

Looks like the file was already changed not to include UTF-8 characters so I'm going to close this. Please open a new PR if the issue is still present in the latest version.


Remove SSL CA directive from Ruby and Rails examples

We should be able to remove ssl_mode/sslca from the Ruby and Rails examples. mysql2 version 0.5.4 was released in May and handles finding the correct CA path now.
Local testing was successful.

@fooforge In general, should recommend certain minimum versions for things, like in this case 0.5.4?
We could add a comment in the example code or the README for that? It's can be totally separate from this change though and is broader potentially than just mysql2 for Ruby.

👍 For Ruby, I have just updated the Gemfile so that bundler installs v0.5.4 or higher. It would certainly make sense to give the other language example another pass, though. I can dig around a bit.

👍 For Ruby, I have just updated the Gemfile so that bundler installs v0.5.4 or higher.

Ah, that sounds like a good solution for Ruby here!


If there's a CLI parsing problem, then return a Clap:Error, instead of panicking

It's better to have a clean exit. It also makes testing easier.
This means:

updating the tests to detect an error from TrinConfig::new_from()
replacing all panic! calls with returning a Clap::Error

That probably looks something like:
         match config.web3_transport {
             Web3TransportType::HTTP => match &config.web3_ipc_path[..] {
                 DEFAULT_WEB3_IPC_PATH => {}
-                _ => panic!("Must not supply an ipc path when using http protocol for json-rpc"),
+                _ => {
+                    return clap::Error::with_description(
+                        "Must not supply an ipc path when using http protocol for json-rpc",
+                        clap::ErrorKind::ArgumentConflict,
+                    );
+                }
             },

If we want to get fancier with the error types (and displays), then you might take a look at the example of how .insert() works, which may require a special crate feature. See examples here: https://docs.rs/clap/latest/clap/error/struct.Error.html#method.new

I want to do this issue


/dev/i2c-7 messes up non rockpi units

if you add:
      - /dev/i2c-7:/dev/i2c-7

to a device (such as raspberry pi) that doesn't have this devices on the host-os then it fails to start those containers (diag and miner in this case).
Need to see if we can find a workaround for that

Possibly privileged: true is a good solution

This has fixed things so it works on both RockPi and RasPi.
The only question is whether there's any detrimental effects of using privileged: true in general

privileged containers can be exploited to have full access to the host's devices (Ref: https://blog.trailofbits.com/2019/07/19/understanding-docker-container-escapes/) but in our case should not be an issue as we're using these boards for the single purpose of running the helium miner software. And that too is only possible with some constraints. So if a user that has our boxes wants to exploit this he is just messing with his own hardware. For a remote attacker he would first need someway to get a footprint into the container (via balena or some fault in our code). As we have balena public device urls disabled mostly that shouldn't be an issue.
My 2c - Not that risky considering where we're using it.

@kashifpk that was my thoughts also.
I guess the alternative is to maintain another repo for the RockPi version of the software but that seems unnecessary given this being the only required difference.
I wonder if it's possible to achieve this with any cap-add directive? Or whether we can make privileged: true more secure using cap-drop?
Also relates to #259

I think it is inevitable that we will have to add multiple docker-compose files. Perhaps a better solution is to simply modify the build script to automatically configure /dev/i2c accordingly. That will unfortunately require us to run on different fleets, but perhaps it is the path of least resistance.

@vpetersson I think we will have to run on different fleets anyway because of the VARIANT being different on different hardware. We haven't solved that yet and not convinced we can...

Yeah we were just discussing this in the stand-up. Then we can just auto-generate the docker-compose.yml file on run time (similar to Balena's Dockerfile.template) and just render it according to the target.

Perhaps for Testnet we use privileged: true and for other units we use different i2c bus.
Having said that...I don't see any particular reason not to use privileged: true on production devices.
Either way, the tooling isn't terribly difficult whichever path we choose

I want to keep the delta between testnet and mainnet minimal.  privileged: true is a big one that can cause a lot of different behaviors and bugs to go undiscovered.

@vpetersson then we have to maintain multiple different testnets as well

I wonder if there's a way to remap i2c-7 on RockPi to i2c-1 (and vice versa) but probably more hassle than it's worth and not a good idea / something balena will support as will mean differences between operation on native and balenaOS

@vpetersson then we have to maintain multiple different testnets as well i.e. RockPi testnet and RasPi testnet

Yeah good point. I think we should do that.

I wonder if there's a way to remap i2c-7 on RockPi to i2c-1 (and vice versa) but probably more hassle than it's worth and not a good idea / something balena will support as will mean differences between operation on native and balenaOS

Possible, but i think it's more likely they will allow the container to start w/out the device existing tho.

I suppose one benefit to having different testnets is that we can more easily isolate hardware specific issues

Yeah exactly.

@vpetersson created a PR in #264 to sort this

Blocked by completion of: https://github.com/NebraLtd/helium-miner-software/pull/272


Need -fPIC build flag in linux platform

The static library is not relocatable if not compiled with -fPIC.

set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -fPIC")

Thanks for your question.  Normally static libraries don't require relocation, and -fPIC produces larger and less efficient code.
Are you trying to create a shared library that includes json_spirit?  If so you can do this:
set_target_properties( json PROPERTIES POSITION_INDEPENDENT_CODE TRUE )


Updates for comparison of v3.1 new samples to the v2 exomes using pc relate

We realized that there are some samples new to v3.1 (not in v3) where the sample ID didn't match a v2 exome sample ID, but was a duplicate sample based on formal relatedness checks with pc_relate (as was done for the v3 genomes with the v2 exomes).
This code updates the previous v2 exome/v3 gnome pc_relate code to only compare v3.1 new samples to v2 exomes.

Julia says this code is outdated but not worth spending the time to polish, but it may be useful to use as a model for writing code for v4 exomes to v3 genome comparison. Only Sanna has used this code.

Closing this as it has been linked in another ticket


Add verbose logging to Connect-Rubrik failures

Signed-off-by: Chris Wahl<EMAIL_ADDRESS>

Fixes #96
Potentially Resolves #92 #94

:shipit:


Enabling roles also for local development & docker setup

This PR moves the role definitions in the codebase, and enables local development to use the same setup as the deployed setup. Access permissions will now be handled via migration scripts.
Docker Compose is adjusted accordingly, so no further manual actions are needed.
For devs using their dedicated local postgres, you will need to run the SQL files for create-roles.sql & create-users.sql in the local-setup folder.
@MKusber

Please do not merge yet.


logging for catalog update

This is useful for users to check to make sure their catalogs have updated. As well as for QA to check for changes.
Addresses: https://github.com/rancher/rancher/issues/9228

LGTM


Can Xbyak dump assembly codes instead of machine codes?

Hello,
I know that Xbyak can dump machine codes using Xbyak::CodeGenerator::dump, but I want to see the assembly codes instead. I need this for debugging. When some error occurs in codes I generated using Xbyak, I want to see the assembly codes instead of machine codes. Now I check the assembly code on gdb, but it would be better if the Xbyak can dump the assembly codes.
Are there any official functions to dump assembly codes in Xbyak?

Thank you for your proposal, but the implementation is too costly only for a debug.
Could you use a disassembler instead of the feature?
For example,
#include <stdio.h>
#include <xbyak/xbyak_util.h>

struct Code : Xbyak::CodeGenerator {
    Code()
    {
        lea(rax, ptr[rsi+rdi]);
        ret();
    }
};

int main()
{
    Code c;
    write(1, c.getCode(), c.getSize());
}

g++ -I <xbyak dir> t.cpp && ./a.out > dump-code
objdump -M x86-64 -D -b binary -m i386 dump-code

   0:   48 8d 04 37             lea    (%rdi,%rsi,1),%rax
   4:   c3                      retq

Thank you for the information. This is exactly what I need.
I will now use this method for debugging.


Experiments with skill matching #51

Test Matcher Skill

example labels (VERB + customer satisfaction)
cloud occupation (search skill into ESCO and create a matcher)

@ioggstream i try to add the code for yaml file test, but not work well... you can give me one suggestion. Thanks

Superseeded by #60


Uploading Readable via createReadStream has different, erroneous behaviour

As observed in swarm-cli:
To upload a single file using the uploadFile function, we tried two things:

Reading the data to memory with readFileSync and then passing that to upload
Creating a Readable with createReadStream and then passing that to upload

After uploading, we query the tag to get the total amount of chunks, as well as the processed and synced status.
When using readFileSync, the total amount of chunks is correct. With createReadStream, it is always 2 or 3, even when we expect thousands.

To understand this HTTP / axios behaviour, I created a sandbox project with one server and two clients.
The server simply prints the incoming chunk sizes:
import { createServer } from 'http'

createServer((req, res) => {
    req.on('data', chunk => {
        console.log(chunk.toString().length)
    })
    req.on('end', () => {
        res.end('ok')
    })
}).listen(3333)

Then I create a ~15MB binary file to POST:
dd if=/dev/urandom count=1500 bs=10000 > data.bin

And POST it using readFileSync:
import axios from 'axios'
import { readFileSync } from 'fs'

axios.post('http://localhost:3333', readFileSync('data.bin'), { maxContentLength: Infinity, maxBodyLength: Infinity })

The chunk sizes look very similar:
62027
62034
62045
61993
62191
62218
62184
61996
62177

Now with createReadStream:
import axios from 'axios'
import { createReadStream } from 'fs'

axios.post('http://localhost:3333', createReadStream('data.bin'), { maxContentLength: Infinity, maxBodyLength: Infinity })

The chunk sizes vary:
62018
203
61822
212
61825
218
61769
225
61955
237
61972
251

The assumption is that with streaming, a different Transfer-Encoding is used, probably chunked, which Bee does not handle correctly.
My other theory is that the Content-Length header is missing or is wrong, and Bee uses that to determine total amount of chunks.

Related: https://github.com/ethersphere/bee/issues/1224

Headers for readFileSync:
{
  accept: 'application/json, text/plain, */*',
  'content-type': 'application/x-www-form-urlencoded',
  'user-agent': 'axios/0.21.1',
  'content-length': '15000000',
  host: 'localhost:3333',
  connection: 'close'
}

Headers for createReadStream:
{
  accept: 'application/json, text/plain, */*',
  'content-type': 'application/x-www-form-urlencoded',
  'user-agent': 'axios/0.21.1',
  host: 'localhost:3333',
  connection: 'close',
  'transfer-encoding': 'chunked'
}

The problem was in not specifying size of the file. We should have check for this in place.


Implement Pink Elephant

Description
Implements the Pink Elephant and more broadly any theme in the future.
Issues Resolved
Fixes #556
Check List

[ ] New functionality includes testing.
[ ] New functionality has been documented.
[x] All tests pass

[x] yarn lint
[x] yarn test-unit

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This is exciting. Can I see some screenshots when they're ready?


Prolonged execution times when using ConversationChain and ChatOpenAI

System Info
Description:
Context:
I'm using LangChain to develop an application that interacts with the gpt-3.5-turbo-16k model to handle long chains of up to 16384 tokens.
Problem:
While the first message processes quickly (specially if i have not previues context in the inputs), from the second message onward, I experience excessively long execution times, exceeding 5 minutes. On occasions, I receive timeout errors exceeding 10 minutes like the following:
Retrying langchain.chat_models.openai.ChatOpenAI.completion_with_retry.<locals>._completion_with_retry in 1.0 seconds as it raised Timeout: Request timed out: HTTPSConnectionPool(host='api.openai.com', port=443): Read timed out. (read timeout=600).
It's worth noting that when using the OpenAI API directly with the same context and length, the response is almost immediate.
Relevant Code:
from langchain.chains.conversation.prompt import ENTITY_MEMORY_CONVERSATION_TEMPLATE
from langchain.chat_models import ChatOpenAI
from langchain.memory.entity import ConversationEntityMemory

def create_conversation_chain(inputs, num_msgs=3):
    """
    Creates the base instance for the conversation with the llm and the memory
    :param num_msgs: Number of messages to include in the memory buffer
    :return: The conversation chain instance
    """
    load_dotenv()

    llm = ChatOpenAI(
        temperature=0,
        model_name=MODEL,
        verbose=False,
    )
    memory = ConversationEntityMemory(
        llm=llm,
        k=num_msgs,
    )

    if inputs:
        for inp in inputs:
            memory.save_context(inp[0], inp[1])

    conversation = ConversationChain(
        llm=llm,
        memory=memory,
        prompt=ENTITY_MEMORY_CONVERSATION_TEMPLATE,
        verbose=True,
    )
    return conversation

conversation = create_conversation_chain(inputs=self.input_msgs_entries, num_msgs=num_msgs_to_include)
ans = self.conversation.predict(input=msg)

Feel free to send me questions about my code if you need to know something else, but essentialy that is what I have
Additional Details:

Operating System: Windows 10
Python Version: 3.10
LangChain Version: 0.0.271
I've tried with the streaming=True parameter cause I saw that in other issue, but the results remain the same.

Request:
Could you help me identify and address the cause of these prolonged execution times when using LangChain, especially compared to direct use of the OpenAI API?
Thank you very much for your help!! ^^
Who can help?
@hwchase17 @agola11
Information

[ ] The official example notebooks/scripts
[X] My own modified scripts

Related Components

[X] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[X] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[X] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
Steps to Reproduce the Behavior:

Setup Environment:

Install LangChain version 0.0.271 on a Windows 10 (but i tryed it in ubuntu and same problems) machine with Python 3.10.
gpt-3.5-turbo-16k model.

Implement the Conversation Chain:

Utilize the create_conversation_chain function provided in the initial description.

Provide Context:

Use a context (inputs) that is long enough to approach the 6000 to 9000 (context + msg) tokens but i am also getting this time consuming responses with  lower bounds, I let you bellow one file with text (it is spanish text) that I use as an input to call gpt-3.5-turbo-16k.

Initialize and Predict:

Call the function:
conversation = create_conversation_chain(inputs=input_msgs_entries, num_msgs=num_msgs_to_include_in_buffer)
Then, predict using:
ans = conversation.predict(input=msg)

Observe Delay:

Note that while the first message processes quickly (specially if i have not previues context in the inputs), subsequent messages experience prolonged execution times, sometimes exceeding 10 minutes.
Occasionally, timeout errors might occur, indicating a failure in the request due to excessive waiting time.

Compare with Direct OpenAI API:

Directly send the same context and message to the OpenAI API, without using LangChain.
Observe that the response is almost immediate, highlighting the difference in performance.

Test with Streaming:

Set the streaming=True parameter and observe that the prolonged execution times persist.

test_random_conv_text.txt
Expected behavior
Expected Behavior:
When utilizing the create_conversation_chain function with the gpt-3.5-turbo-16k model to handle chains close to 16384 tokens:

Consistent Performance: The execution times for each message, regardless of it being the first or subsequent ones, should be relatively consistent and not show drastic differences.

Reasonable Response Times: Even for longer contexts approaching the model's token limit, the response time should be within a reasonable range, certainly not exceeding 10 minutes for a single prediction.

No Timeout Errors: The system should handle the requests efficiently, avoiding timeout errors, especially if the direct OpenAI API call with the same context responds almost immediately.

Memory Efficiency: The memory management system, especially when handling the context and inputs, should efficiently store and retrieve data without causing significant delays.

I'm facing similar issue. The message can be immediately available in the verbose output. However, it takes much longer to return it.

@fernando080 @lynnna-xu I believe it's because retries don't take seconds as they should (2/4/8/10s retries) but actually take several minutes between retries. Can you please confirm - log with timestamps and let me know please?


Consider Github hosting

Today an email came from Heroku stating that my chuckeles app has been running for more than 18 hours and they prompt me to upgrade to their paid plan.
While this is precisely what I wanted, it seems that at Heroku they don't. Consider moving back here to Github hosting, which is free and always online.

The newest remake will be hosted here on GIthub.


correctly blow up

this will correctly throw error message
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Missing "operationId" from "post" request with pattern /api/meters/{orgId}/AddNote".] {
code: 'ERR_UNHANDLED_REJECTION'
}

with this comment
"is seems like it would silently fail, I would rather it throws a very specific error if anything"
when the string is returned empty - another method of yours correctly trips up rendering the error correctly.
when the operationId is undefined - it fails like this
https://github.com/rametta/rapini/issues/33


Widget tests failing due to FormatException when using DefaultAssetBundle

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Create a new Flutter project
Add a resource that can be displayed in an Image widget (a random jpg/png inside /assets)
Add the asset to pubspec
In the main.dart, add an Image widget with the resource from step 2 to the Widget tree
Create a widget test and pump a widget with a DefaultAssetBundle included, like:

MaterialApp(
        home: Material(
          child: DefaultAssetBundle(
            bundle: TestAssetBundleByteData(),
            child: const MyHomePage(
              title: 'test',
            ),
          ),
        ),
      )

Create a TestAssetBundleByteData to apply a bundle that should be used as a default, like:

class TestAssetBundleByteData extends CachingAssetBundle {
  @override
  Future<ByteData> load(String key) async {
    ByteData bytes = ByteData(12);
    return bytes;
  }
}

Run the test

Expected results
The test should succeed without crashing.
Actual results
The test will fail with the following error message:
══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
The following FormatException was thrown while resolving an image:
Message corrupted

When the exception was thrown, this was the stack:
#0      StandardMessageCodec.readValueOfType (package:flutter/src/services/message_codecs.dart:533:16)
#1      StandardMessageCodec.readValue (package:flutter/src/services/message_codecs.dart:478:12)
#2      StandardMessageCodec.decodeMessage (package:flutter/src/services/message_codecs.dart:342:28)
#3      new _AssetManifestBin.fromStandardMessageCodecMessage (package:flutter/src/services/asset_manifest.dart:57:55)
<asynchronous suspension>
<asynchronous suspension>
(elided 6 frames from dart:async and package:stack_trace)

Image provider: ScrollAwareImageProvider<Object>()
Image configuration: ImageConfiguration(bundle: TestAssetBundleLoadRes#99c4b(), devicePixelRatio:
  3.0, locale: en_US, textDirection: TextDirection.ltr, platform: android)
════════════════════════════════════════════════════════════════════════════════════════════════════
Test failed. See exception logs above.
The test description was: Load test asset bundle with a fallback image as resource

Code sample
https://github.com/eerive/flutter-test-asset
Screenshots or Video

Screenshots / Video demonstration~
-

Logs
Logs
Connecting to VM Service at http://<IP_ADDRESS>:52356/BNrTT7JnnUg=/ws
══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
The following FormatException was thrown while resolving an image:
Message corrupted

When the exception was thrown, this was the stack:
#0      StandardMessageCodec.readValueOfType (package:flutter/src/services/message_codecs.dart:533:16)
#1      StandardMessageCodec.readValue (package:flutter/src/services/message_codecs.dart:478:12)
#2      StandardMessageCodec.decodeMessage (package:flutter/src/services/message_codecs.dart:342:28)
#3      new _AssetManifestBin.fromStandardMessageCodecMessage (package:flutter/src/services/asset_manifest.dart:57:55)
<asynchronous suspension>
<asynchronous suspension>
(elided 6 frames from dart:async and package:stack_trace)

Image provider: ScrollAwareImageProvider<Object>()
Image configuration: ImageConfiguration(bundle: TestAssetBundleLoadRes#99c4b(), devicePixelRatio:
  3.0, locale: en_US, textDirection: TextDirection.ltr, platform: android)
════════════════════════════════════════════════════════════════════════════════════════════════════
Test failed. See exception logs above.
The test description was: Load test asset bundle with a fallback image as resource

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.10.0, on macOS 13.3.1 22E261 darwin-arm64, locale en-DE)
    • Flutter version 3.10.0 on channel stable at /Users/mdlam/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (2 days ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/mdlam/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • ANDROID_HOME = /Users/mdlam/Library/Android/sdk
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment Temurin-20.0.1+9 (build 20.0.1+9)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.12.1

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

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[!] Android Studio
    • Android Studio at /Users/mdlam/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/223.8836.35.2231.10023527/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[!] Android Studio
    • Android Studio at /Users/mdlam/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/223.8836.35.2231.9923731/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

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

[✓] VS Code (version 1.79.0-insider)
    • VS Code at /Applications/Visual Studio Code - Insiders.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 113.0.5672.92

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

! Doctor found issues in 3 categories.

Thanks for the great issue description.
The framework uses rootBundle.load for loading all assets, including ones generated by Flutter itself. Specifcally, there is a special asset called the asset manifest. The FormatException you see is thrown because the load override in TestAssetBundleByteData doesn't return data in the format that the framework expects for the asset manifest file. The easiest way to work around this is to 1) extend PlatformAssetBundle instead of CachingAssetBundle and 2) fallback to normal loading behavior by returning super.load(key) when the key is not something you expect to see in your test. See these code examples below:
class TestAssetBundle extends PlatformAssetBundle {
  @override
  Future<ByteData> load(String key) async {
    if (key == 'expected_test_key') {
      return ByteData(12);
    }

    // Unrecognized key, default to normal loading behavior.
    return super.load(key);
  }
}

// Or, if you want to explicitly handle the asset manifest:
class TestAssetBundle extends PlatformAssetBundle {
  @override
  Future<ByteData> load(String key) async {
    // Matches "AssetManifest.json", "AssetManifest.bin", and "AssetManifest.smcbin"
    if (key.startsWith('AssetManifest')) {
      return super.load(key);
    }

    if (key == 'expected_test_key') {
      return ByteData(12);
    }

    throw Exception('Unexpected key: $key');
  }
}

Let me know if this works.
I recognize that this issue highlights how tricky it is to creating test implementations of AssetBundle, and there is certainly potential for improvement. I'll make sure to file another issue before this one is closed.

@andrewkolos Thanks for your response. Your suggested solution does indeed fix all our widget tests.
For improvements, it might be a good idea to update the documentation of the DefaultAssetBundle to instead use the PlatformAssetBundle should a rootBundle be accessed.

Created #126860 to track progress on making issues like these more preventable and/or more easily-solved in the future.


redbpf-iotop in redbpf-tools panics with a ParseError(Map)

Not entirely sure how to fix this, the error doesn't give more information.
$ uname -a
Linux arch 5.5.13-arch2-1 #1 SMP PREEMPT Mon, 30 Mar 2020 20:42:41 +0000 x86_64 GNU/Linux

$ rustc --version
rustc 1.42.0 (b8cedc004 2020-03-09)

This is probably occurring because the redbpf-iotop was not run with root access, but the error message is not providing much help in discovering this.
In this scenario maps.insert returns ParseError::Map because the bpf(BPF_MAP_CREATE, ...) syscall fails with EPERM.
strace makes this easier to see:
01:45:01.811647 bpf(BPF_MAP_CREATE, {map_type=BPF_MAP_TYPE_HASH, key_size=8, value_size=8, max_entries=10240, map_flags=0, inner_map_fd=0</dev/pts/2<char 136:2>>, map_name="start", map_ifindex=0, btf_fd=0</dev/pts/2<char 136:2>>, btf_key_type_id=0, btf_value_type_id=0, btf_vmlinux_value_type_id=0}, 112) = -1 EPERM (Operation not permitted) <0.000352>
01:45:01.813446 write(2</dev/pts/2<char 136:2>>, "thread '", 8thread ') = 8 <0.000095>
01:45:01.813708 write(2</dev/pts/2<char 136:2>>, "main", 4main) = 4 <0.000093>
01:45:01.813965 write(2</dev/pts/2<char 136:2>>, "' panicked at '", 15' panicked at ') = 15 <0.000182>
01:45:01.814354 write(2</dev/pts/2<char 136:2>>, "error loading probe: ParseError(Map)", 36error loading probe: ParseError(Map)) = 36 <0.000123>

However, even when running with sudo this still panics on my machine with cannot attach kprobe, probe entry may not exist.  I've opened #85 for that issue.

@wfchandler is correct, you must run these tools as root. I added a better error message if you're trying to run redbpf-tools stuff as a user.


st: extraLibs argument

Motivation for this change
Being able to add extra libraries would greatly benefit paches.
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Please do not use git merge or plain git pull in a pull request. If you want to update your branch, use git pull --rebase or git rebase. This makes it easier to review code, when check out the source code.


java.lang.management Missing on Android

Netty version: netty-all 4.1.0-final
Context:
Using netty-all 4.1.0-final  on Android (SDK Level 23) causes an Issue when compiling the project. io.netty.build.junit.TimedOutTestsListener requires  java.lang.management which is not present on Android. (RC5 worked fine). This requires a workaround in lint, which makes it more complext to use.
Steps to reproduce:

add to dependencies of an Android Project in the gradle file
dependencies {
....
compile 'io.netty:netty-all:4.1.0.Final'
...
}
gradle clean
gradle build

$ java -version
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
Operating system: OSX
$ uname -a
Darwin 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64

@geri-m Thanks for reporting it. I submitted #5318 to fix it. You can just exclude all classes in io.netty.build right now.

Fixed in #5318.


Update state visualizer sample to latest webpack.

This PR updates the state visualizer sample to use the latest version of webpack.

It looks like this PR is blocked on the build agent running out of disk space; @bettinaheim and @anpaz for awareness.

@cgranade Is there any update on this PR? Can it be merged in now that it has approval, or is there more work to be done for this?


lineSpacing not work properly

hello, i am very glad to use your open source library, but when i wrote the code like following.
_titleLabel = [[UILabel alloc] init];
_titleLabel.lineBreakMode = NSLineBreakByCharWrapping;
_titleLabel.numberOfLines = 9;

BONChain *chain = BONChain.new.string(@"A").font([UIFont systemFontOfSize:20]).color([UIColor greenColor]);
[chain appendLink:BONChain.new.string(@"BCDEFGH").font([UIFont systemFontOfSize:14]).color([UIColor redColor])];

_titleLabel.attributedText = chain.lineSpacing(4).attributedString;

it only shows the A at the center of the label.

@xiangyaguo thanks for writing in. The behavior your are encountering is expected, given your code, but I'm aware that the API is confusing. We are avoiding this problem in the upcoming BonMot 4.0 release in #180, but it's a full rewrite and it may not fully support Objective-C, so you may not be able to adopt it just yet.
The problem in your code is that chain.lineSpacing(4) does not copy chain.text.nextText, because that would break the way that inheritance works, but it means that it drops "BCDEFHG" from the string. The way to work around this problem in your example would be like this:
BONChain *chain = BONChain.new.string(@"A").font([UIFont systemFontOfSize:20]).color([UIColor greenColor]).lineSpacing(4);
[chain appendLink:BONChain.new.string(@"BCDEFGH").font([UIFont systemFontOfSize:14]).color([UIColor redColor])];

_titleLabel.attributedText = chain.attributedString;

Or, alternatively:
BONChain *baseChain = BONChain.new.lineSpacing(4);
BONChain *chain = baseChain.string(@"A").font([UIFont systemFontOfSize:20]).color([UIColor greenColor]);
[chain appendLink:baseChain.string(@"BCDEFGH").font([UIFont systemFontOfSize:14]).color([UIColor redColor])];

_titleLabel.attributedText = chain.attributedString;

The one you choose will depend on how you're actually using it in your app, since I assume the code you posted was simplified for the bug report.
I hope this helps! Please let me know if it does, or if you have any more questions.

I've just tried the code, it exactly take effect, thank you so much.


How to handle multiple alternative visualizations

Say that a single product or collection has multiple visualizations, e.g., quality masks, different false color maps, maybe some index computed on the fly (e.g., NDVI). What's the suggested approach to offer such multitude of visualizations?
Is it possible, and recommended, to create multiple links, each one having a "wms" rel, each one offering a different visualization of the same collection/product?
Or is the specification meant to be used so that only one link with "wms" rel is produced/expected?

have you checked out https://github.com/stac-extensions/render ?

Interesting indeed... but that's not what I'm looking for. For server-side rendered visualizations, is it possible and recommended to use multiple "wms" links, in the context of the web-map-links extension?

You can have as many e.g. wms links as you like. To further specify their scope, you can use the roles array as recently added to core: https://github.com/radiantearth/stac-spec/pull/1269


Cant fit visual in container

I'm unable to fit a visual embed in 100% width of the parent container
these are the basic settings:
export const VISUAL_SETTINGS: models.ISettings = {
  localeSettings: {
    language: "en-us",
    formatLocale: "en-us",
  },
  layoutType: models.LayoutType.Custom,
  customLayout: {
    pageSize: {
      type: models.PageSizeType.Widescreen,
    },
    displayOption: models.DisplayOption.FitToWidth,
  },

  filterPaneEnabled: false,
  persistentFiltersEnabled: false,
  personalBookmarksEnabled: false,
  navContentPaneEnabled: false,
  bars: {
    actionBar: {
      visible: false,
    },
  },
  panes: {
    bookmarks: {
      visible: false,
    },
    filters: {
      visible: false,
    },
    pageNavigation: {
      visible: false,
    },
    syncSlicers: {
      visible: false,
    },
  },
};

When the IFrame loads it takes the full width of the container plus paddings which is correct, as shown in the image below. but once the visual is rendered it automatically gets centered inside Iframe and gives the impression of having dead space, as noted in the second image, the black area is the visual and is noticable that the grey background color is way more bigger than in the first one

This function allows me to resize the visual when the parent container dimensions change, however this only works after user interaction, it does not work If I try to run on the the first load
const updateEmbedLayoutSettings = async () => {
    const newSettings = { ...VISUAL_SETTINGS };
    newSettings.customLayout = {
      pageSize: {
        type: powerBi.models.PageSizeType.Custom,
        width: parseInt(newReportDimensions.width, 10) * 0.7,
        height: parseInt(newReportDimensions.height, 10),
      } as powerBi.models.ICustomPageSize,
      displayOption: powerBi.models.DisplayOption.FitToWidth,
      pagesLayout: {
        ReportSection: {
          defaultLayout: {
            displayState: {
              mode: powerBi.models.VisualContainerDisplayMode.Hidden,
            },
          },
          visualsLayout: {
            [visualId]: {
              x: 1,
              y: 1,
              z: 1,
              width: parseInt(newReportDimensions.width, 10) - 30,
              height: parseInt(newReportDimensions.height, 10) - 25,
              displayState: {
                mode: powerBi.models.VisualContainerDisplayMode.Visible,
              },
            },
          },
        },
      },
    };
    await report?.updateSettings(newSettings);
  };

Is there a way to properly set the dimensions on initial load or a correct way to handle resizing for visual embeds?

Thank you for reporting this issue. We will reproduce it in our environment and will update you on our findings within the next few weeks.

We identified the root cause of the issue and will add it to our backlog.


Writing custom Schema.NET classes

Question
To date, I've been using the standard Schema.NET classes, and I came across pending support for PodcastEpisode on schema.org.  In my project, I'm supporting podcast shows and episodes, and currently using RadioSeries/Episode to store the data.
But I was wondering if it's common for folks using Schema.NET to build your own classes, derived from existing Schema.NET classes, to support pending schema.org data models, or even just custom JSON-LD for your own use?
I have another case of handling YouTube channels and playlists, and currently using MusicPlaylist, but would rather have a custom VideoPlaylist class.
Not a huge deal, but when serializing to JSON-LD, it would be a lot cleaner to have it say 'VideoPlaylist' not 'MusicPlaylist', for example.
Schema Objects
Which schema.org object is this about if any?
https://schema.org/PodcastEpisode

Not sure if it's common but some developers have reported that they are writing custom types inherited from the standard schema.org types.
This scenario is supported and in fact we've added features in more recent versions to make it simpler to do. If you find any issues, we'd be glad to fix them.
I hope that answers your question!


Minor tweaks to PULL_REQUEST_TEMPLATE.md

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI for on your fork and ensure the whole test matrix passes).
[ ] Replace "<Jira issue #>" in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

Fix a typo
Add a horizontal rule between the PR description contents and the
checkboxes/process content.

R: @davorbonaci

LGTM


DHCP leases: do not link to WOL page if WOL plugin is missing

When clicking on the MAC address in DHCP Leases page, you'll get a "404 - Not Found". This is caused by a missing WOL plugin.
My proposal is to check if the WOL plugin is installed. If not, do not link to the WOL page. To make this check possible I've added a new function is_plugin_installed(). It may be used for similar glue in the future. Still, there may be better ways to solve this. :)
Reported on IRC by stormy1.

I think for a short-term fix it's better to probe for the plugin file /usr/local/etc/inc/plugins.inc.d/wol.inc

Or actually, probe for the file that is linked to... :)

I think it wouldn't be ideal to check for the presence of a file, because this might break very easily. (I think of it this way: The WOL plugin is rather small and that's why a good candidate to migrate it to the MVC framework rather sooner than later. This would break such a check immediately.)

@fraenki In this case it would also break the link as long as they are not generated by the mvc routing like it is done in Ruby on Rails (you get a constant like wol_path, which is used in link tags)


[Clang importer] Fix mirroring of protocol decls for 'async' imports.

The de-duplication checks to preventing redundant mirroring of protocol
declarations failed to consider that a given method could be
implemented as both 'async' and non-'async' declarations, and
therefore would fail to mirror the 'async' form. Account for this
distinction.
Fixes rdar://76799297.

@swift-ci please smoke test

@swift-ci please test source compatibility

@swift-ci please smoke test macOS


fix: Add input validation to ImpactedAssets and ImpactedGoal editors. Close #17.

Issue #, if available:
#17
Description of changes:
This PR is to add  input validation to ImpactedAssets and ImpactedGoal editors to show warning messages when potential html tags are entered by the users so that the output in the threat statement list and threat model are consistent.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


max_width in gripper state

Hello! It used to be the case that max_width was available in the gripper state. This was nice to have, but it was taken out. Would it be possible to add it back?
Thank you!

You can now access it in GripperInterface.metadata.max_width

Ah got it, thanks!!


Create-vulcan-app

Is there an analogue of the create-react-app for the vulcan?

It's all in two command lines:
git clone https://github.com/vulcanjs/vulcan.git
git clone https://github.com/vulcanjs/vulcan-starter.git

There's actually a CLI scaffolding tool but I sadly don't have the time to maintain it myself: https://github.com/VulcanJS/vulcanjs-cli


Use two soundcards with one volume indicator in the bar

Hi, guys!
I use two soundcard there's my polybar config:
[module/volume]
type = internal/volume
master-soundcard = default
speaker-soundcard = hw:0
master-mixer = Master
speaker-mixer = PCM
If I use this configuration I have one volume indicator in the bar, but it does not match to the alsamixer (like 1% in the bar and ~15% in alsamixer and etc.). If I use two volume it's ok:
[module/volume]
type = internal/volume
master-soundcard = default
master-mixer = Master
[module/volume-2]
type = internal/volume
master-soundcard = default
master-mixer = PCM
How can I use two soundcards with one volume indicator in the bar?

Try to set mapped = true, this should match the alsamixer values.
Also in the version where you use two modules you use the default soundcard for both. But in the one module version you use default and hw:0, maybe this could also be an issue

If I use mapped = true in the bar always 0%. I also tried
master-soundcard = hw:2
speaker-soundcard = hw:0
the same (in the bar 12% and 100% in alsamixer).

Having a closer look at this, I don't think what you want is possible. Polybar will always show the value for the speaker soundcard if possible and if the headphones are not plugged in. The module can also not switch dynamically between cards since it initializes the cards when the bar starts. You either have to use two separate modules or use the pavolume user-contributed module, if you use pulseaudio


Simple array of strings/numbers

Several times I've wished I could specify an array of strings/numbers in a schema, and the user could just enter a comma separated list in a single text field. This time around, I actually got around to taking a stab at it. I tested the string functionality, but not the number functionality.

Thanks @fabiocbinbutter, looks useful.


Can't quit gracefully

Sometimes after doing Ctrl + c I get stuck at this :
Dumping pickles...e, 3756 DB items pending   s pending
3757 DB items pending
And if that happens, when I start the app again doesn't show mons, should I delete all and start again the DB or I can repair the spawn DB?
Thanks

I get this a lot too.
Normally I have to run scan.py --bootstrap in order to get it up and running again

Thanks :) I'll try it if happens again.

Do you have multiple instances of Monocle running when this occurs?

Nope. But it's been running all night fine.
I don't know if it will give the error when I exit.


Update s3-transfer-manager to 2.17.244-PREVIEW

Updates software.amazon.awssdk:s3-transfer-manager from 2.17.238-PREVIEW to 2.17.244-PREVIEW.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk", artifactId = "s3-transfer-manager" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "software.amazon.awssdk", artifactId = "s3-transfer-manager" }
}]

labels: test-library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #751.


End-to-End HTTPS enablement

Let me know if my understanding is correct:

We have added truststore in owner to perform TO0 in HTTPS mode
At a time a service can be run either in HTTP or HTTPS mode but not in both

Please update README of each service for this feature

Let me know if my understanding is correct:

We have added truststore in owner to perform TO0 in HTTPS mode
-- Yes.. For RV certificate verification during TO0.
At a time a service can be run either in HTTP or HTTPS mode but not in both
-- Yes. Either HTTP or HTTPS.


address selection as real ListActivity

Currently the address selection (when multiple addresses match a search term) is a view constructed from multiple buttons. This should be a standard Android list activity.

While I've done the coding part of this issue, I would highly appreciate if someone could look once more at the XML declaration and make it look nice. I've basically taken the GPX list XML and slightly modified it, so there is much room for improvement. For instance I don't know how to get the green selection feedback when selecting an address from the list (like we have in all other lists).

I looked at why the selection feedback isn't showing and found 2 possible reasons.

A list view that has a background color no longer get system support for state drawings and you must specify all the colors to be used. I tried removing all background color settings with no change.
I saw one post that said if the onClick is setup in the adapter instead of the activity you don't get highlight on selection. This seems more likely as selecting a cache from a list provides no highlight color either.

I tried the second one. It doesn't help either. I guess the problem is that our style definitions miss something (or the other way around: the styles from a standard Android list activity are not applied). Well, closing this one then.

Here I'm rewriting all of our styles, themes and layouts: https://github.com/SammysHP/c-geo-opensource/tree/theme2
It's really difficulty because
a) If you change everything in one part it's too much.
b) If you change only some style/theme definitions you must change everything else, too.
So currently there's no progress from my side, but you can look at it and maybe somebody has a good idea how to make this.


Data Attribution

@oterral
Default as in map.geo.admin.ch for data attribution.
When a "Strukturverbesserungen" layer is selected --> attribution also BLW
Thanks

Fixed on prod


How can I deploy wordpress on new coolify version?

How can I deploy wordpress on new coolify version?

If you mean v4, you cannot yet. Services are not supported yet, but will be soon.

Any update on this?


Nested yields

I'm trying to write a Komponent with a method that renders another Komponent but something seems to be up with how the blocks are passed around.
I have built a repro case at https://github.com/aldhsu/komponent-nested-yields.
Expected
Expect this:
<%# index.html.erb %>
<%= c "foo" do |foo| %>
  <%= foo.bar do %>
     Hello
  <% end %>
<% end %>

<%# _foo.html.erb %>

  <%= yield self %>

#foo_component.rb
module FooComponent
  extend ComponentHelper
  def bar(&block)
    component("bar", &block)
  end
end

<%# _bar.html.erb %>

  <%= yield %>

To output:

     Hello

Actual

  Hello

    Hello

I'm not sure I entirely understand how the capture is supposed to work in this case so I don't know where to start looking. Basically I'm wrapping this behaviour:
<%= c "foo" do %>
  <%= c "bar" do %>
    Hello
  <% end %>
<% end %>

I think this issue is similar to #83, that has been handled with a workaround.
Since it's the second time this issue is raise, I think we should investigate further.


Make Pylance work with untrusted workspaces

For https://github.com/microsoft/vscode-python-internalbacklog/issues/394
Based on https://github.com/microsoft/vscode-python/pull/17519

@karrtikr what would be best way for me to test it? can I download vsix?

@heejaechang Yep you can the VSIX from the latest run, which is https://github.com/microsoft/vscode-python/suites/4321020335/artifacts/113044846.

I installed the vsix and tried on untrusted path and python extension is disabled?

Weird, it activates just fine for me. Does your extension version and the package.json message match?

@karrtikr let me try again with vsix in this PR

@karrtikr alright, it works as expected once I re-installed vsix from latest build. I tested a bit and Pylance works as expected.

@karrtikr I tested virtual workspace as well (with GitHub Repositories extension), mostly it works as expected. but internally, there seems some stuff Pylance need to sort out (mostly around uri and file system access) but end user experience seems mostly what we would expect.
except one thing. even in virtual workspace scenario, trusted workspace concept seems to apply as you can see below

that I can make trusted

and status bar change to this

I am not sure what it meant to be trusted in virtual workspace environment. usually trusted means not file access but permission to execute exe (ex, python). are we going to let user to choose python (including venv) that are installed on local machine with virtual workspace?
code seems doesn't care about virtual workspace when passing python path though but only care about whether it is trusted or not. (and vscode code seems let user to trust virtual workspace).

Thanks for testing this!

are we going to let user to choose python (including venv) that are installed on local machine with virtual workspace?

Yep we discussed it here https://github.com/microsoft/vscode-python/pull/17519#issuecomment-966540032, that way users can hover over the libraries they have installed for a particular interpreter. There's no reason to block it AFAICS, do you see any potential issues?


game doesn't open

the game does not open, with the error "Geometry Dash stopped working", but in console it says that everything is loaded without any errors, how fix it?

try reinstalling gd and reinstalling gdh

What's your operating system? Make sure you have installed Geometry Dash version 2.204.

fixed it, when you go into steam go into settings, then properties, then installed files, and click verify game file integrity!


Missing dependency conflict resolution between build script and buildSrc

I have a project where in buildSrc org.apache.xmlgraphics:fop:2.3 is used as dependency.
This depends transitively on commons-io 1.3.1.
Then I applied the org.owasp.dependencycheck plugin version 5.2.4 to the root project and tried to execute the OWASP tasks.
But this failed due to a missing constructor in a commons-io class that was added in 1.4.
So it seem the dependency coming from buildSrc simply beats the build script dependency instead of conflict resolution being done.

Workaround: Manually update the dependency in buildSrc, e. g. by dependency substitution

The same problem happens with other dependencies, so it is probably better to have the full dependency as runtime dependency in buildSrc as work-around.

Still the same in Gradle 6.8

Still the same in Gradle 6.8

This is caused by the mix of dependency resolution and classloader hierarch that ends up composing the classpath of a Gradle project.
The only workaround is the one described in the original report: make sure buildSrc injects the appropriate version as it will win over anything a project brings.


Update marlowe playground to marlowe 3.0

There's also a few improvements in here as it was quite a big job

@palas WRT "Case list placeholder should probably have a dent in the bottom side (not just the top)" I don't think that's true, first it is generated by blockly and second I think the point is that you can link the top of one Case block to the bottom of a previous (or the When) but you cannot link to the bottom of a When. It doesn't really make sense.

@palas WRT "Case list placeholder should probably have a dent in the bottom side (not just the top)" I don't think that's true, first it is generated by blockly and second I think the point is that you can link the top of one Case block to the bottom of a previous (or the When) but you cannot link to the bottom of a When. It doesn't really make sense.

Ah, I think you are right, there doesn't seem to be an option. Nevermind, I must have seen it in Snap or something like that.


draft list

[ ] write down joint distribution of (A,X,Z) in simulation.
[ ] characterize SBM
[ ] explicitly demonstrate when local scale of drove works superior than the others, especially compared to FH.

ok
On Sat, Oct 8, 2016 at 10:39 AM, Youjin Lee<EMAIL_ADDRESS>wrote:

write down joint distribution of (A,X,Z) in simulation.
characterize SBM
explicitly demonstrate when local scale of drove works superior than
the others, especially compared to FH.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/neurodata/Multiscale-Network-Test/issues/6, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AACjcgVxbtsQ0FXAWmrkmTdpMxw_O_PCks5qx6sKgaJpZM4KRvIO
.

--
the glass is all full:  half water, half air.
neurodata.io, jovo calendar
https://calendar.google.com/calendar/embed?src=joshuav%40gmail.com&ctz=America/New_York


Multiple PrivateKeyEntry in keystore ?

Describe the bug:
Running cert-manager in openshift with venafi.  I have created 2 certificates which target the same keystore in a secret.
Certificates are well generated in venafi and no error in openshift.
Only one certificate is created in the keystore.
Would like to know if there is a constraints to have multiple PrivateKeyEntry in the same keystore.
Anything else we need to know?:
Environment details::

Kubernetes version: 1.17
Cloud-provider/provisioner: aws
cert-manager version: 1.0.4
Install method: static manifests

/kind bug

Currently we do not support having multiple certificates in the same keystore.
/kind feature
/remove-kind bug

/priority backlog

/priority backlog

/area api

/area api


Cannot find type 'AWSS3GetPreSignedURLRequest' in scope

Describe the bug
In my iOS project, I imported some AWS libraries:

Amplify, in order to call webservices (API Gateway), using SPM
AWSS3 and AWSMobileClient, in order to get a presigned URL, so I can manually download a file from a S3 bucket (and no, I don't want to use Amplify.Storage.downloadData since I have specific needs), using Cocoapods

When I want to get a presigned URL for my custom S3 client, here is what I do:
let awsS3GetPreSignedURLRequest: AWSS3GetPreSignedURLRequest = AWSS3GetPreSignedURLRequest()
awsS3GetPreSignedURLRequest.httpMethod = AWSHTTPMethod.GET
awsS3GetPreSignedURLRequest.key = key
awsS3GetPreSignedURLRequest.bucket = bucketName
awsS3GetPreSignedURLRequest.expires = Date(timeIntervalSinceNow: TimeInterval(900))
AWSS3PreSignedURLBuilder.default().getPreSignedURL(awsS3GetPreSignedURLRequest).continueWith { [self] task in
   // ...
}

It has always worked fine, until I added the Amplify library using SPM.
Now, for some reason, I get the following errors at compile time:
Swift Compiler Error (Xcode): Cannot find type 'AWSS3GetPreSignedURLRequest' in scope
Swift Compiler Error (Xcode): Cannot find 'AWSS3PreSignedURLBuilder' in scope

Of course, I checked that I have: import AWSS3
I cleaned every possible cache, rerun a pod install, but it doesn't want to compile.
Here is a test project for you to try. The problem appears as soon as I add the Amplify library using SPM.
Steps To Reproduce
1. clone https://github.com/mregnauld/AWSAmplifyDemo/tree/master
2. run the project in Xcode

Expected behavior
It should compile and run.
Amplify Framework Version
2.0.2
Amplify Categories
Storage
Dependency manager
Swift PM
Swift version
5.6.1
CLI version
4.41.2
Xcode version
13.4.1
Relevant log output
Swift Compiler Error (Xcode): Cannot find type 'AWSS3GetPreSignedURLRequest' in scope
Swift Compiler Error (Xcode): Cannot find 'AWSS3PreSignedURLBuilder' in scope

Is this a regression?
I don't know
Regression additional context
No response
Device
iPhone 11
iOS Version
15.5
Specific to simulators
No response
Additional context
No response

OK so I don't know if it a bug or not, but for information, the problem came from the fact that, when I added the Amplify framework using SPM, I checked AWSS3StoragePlugin.
Not checking that plugin solved the problem.

Please not that AWSMobileClient is not supported on Amplify 2.0 and greater. Also note that CocoaPod support has been also deprecated in Amplify 2.0.


[Candidate 1v1 AKAs Magic ZH v1] USA Dozer can drive behind one of the Oil Derricks and cannot be attacked

Observed behaviour
USA Dozer can drive behind one of the Oil Derricks and cannot be attacked. This only works on this Oil Derrick.
Expected behavior
Dozer cannot drive behind Oil Derrick and become unattackable by ground units.
Videos
https://github.com/TheSuperHackers/GeneralsRankedMaps/assets/4720891/2b74b831-2353-4765-b86e-7b0bb2f243b8

Fixed in new version by moving oil slightly left and adding some new impassable terrain


Pedantic flag added to CMake

Adds -pedantic to C and C++ flags on CMake builds.
Note: Build failures are related to #1034.

Coverage remained the same at 99.875% when pulling 19b29bfc28a9f50234edeaf605ca6645e7e899a2 on offa:cmake_pedantic into b801207a6506ffd6880d74bc410e09c220cc752d on cpputest:master.


need to redeploy regularly every few months, it seems the key ids change in jwks.json

Getting this error every few months needing to redeploy:
stderr | 598a88bc | thread 'main' panicked at 'called Option::unwrap() on a None value', src/jwt.rs:25:10
stderr | 598a88bc | note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
stderr | 598a88bc | {"diagnostic":"instance_error","error":"entered_unreachable","trap":{"trap_code":"wasm unreachable instruction executed","i32_exit_status":null,"display_reason":"wasm trap: wasm unreachable instruction executed"}}
It appears that this is caused by a change of the kid fields in jwks.json leading to a None value after filtering for the (renamed) key_id
Is there a possibility to refresh the jwks.json on a regular basis from the jwks_uri instead of deploying it statically into the well-known folder?

This seems to happen because the jwks.json file contains public keys for the OIDC provider and are built into the package by the build process.  See: https://github.com/fastly/compute-rust-auth/blob/main/src/config.rs#L71
However, these keys are regularly rotated by many providers such as Okta: https://developer.okta.com/docs/concepts/key-rotation/ and tokens can no longer be validated.  Okta warns against doing this
Caution: Keys used to sign tokens automatically rotate and should always be resolved dynamically against the published JWKS.  Be sure to include key rollover in your implementation.

It'd be ideal if the keys could be looked up just before validation to avoid needing to rebuild and deploy the function periodically.

Apologies for taking so long to address this properly. v0.4.0 (https://github.com/fastly/compute-rust-auth/pull/39) uses secret store and config store–both now in general availability for Fastly Compute–to decouple configuration from code. This means you can now rotate keys separately from deployments of the service.
Sorry again, we try to do better :)


New Section added

hey @SurajPratap10
i have done the required changes , please check

@SurajPratap10 its working fine , in both phone and browser

@SurajPratap10 its working fine , in both phone and browser

It's not working on Chrome for me and it's fully broken.

@SurajPratap10 it is looking fine for me in chrome only

@SurajPratap10 kindly look into it

Resolve the views/home.ejs conflict first @PR1YAM9

@SurajPratap10 i have resolved the conflicts

@SurajPratap10 Kindly look into this PR as it is working fine

@SurajPratap10 Kindly look into this PR as it is working fine


节点无法加载，update和安装节点都解决不了，求助

已经把comfyui更新到最新版，但是加载base的工作流节点出错，无论是卸载了节点重新安装还是fix，都不行，请问可以怎么解决？

Execute install/(de)activation script for 'G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_InstantID'
Collecting insightface
Using cached insightface-0.7.3.tar.gz (439 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
[!]   error: subprocess-exited-with-error
[!]
[!]   Getting requirements to build wheel did not run successfully.
[!]   exit code: 1
[!]
[!]   [18 lines of output]
[!]   Traceback (most recent call last):
[!]     File "G:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
[!]       main()
[!]     File "G:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
[!]       json_out['return_val'] = hook(**hook_input['kwargs'])
[!]                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[!]     File "G:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
[!]       return hook(config_settings)
[!]              ^^^^^^^^^^^^^^^^^^^^^
[!]     File "G:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
[!]       return self._get_build_requires(config_settings, requirements=['wheel'])
[!]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[!]     File "G:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
[!]       self.run_setup()
[!]     File "G:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
[!]       exec(code, locals())
[!]     File "", line 11, in
[!]   ModuleNotFoundError: No module named 'Cython'
[!]   [end of output]
[!]
[!]   note: This error originates from a subprocess, and is likely not a problem with pip.
[!] error: subprocess-exited-with-error
[!]
[!] Getting requirements to build wheel did not run successfully.
[!] exit code: 1
[!]
[!] See above for output.
[!]
[!] note: This error originates from a subprocess, and is likely not a problem with pip.
install/(de)activation script failed: G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_InstantID
[ComfyUI-Manager] Startup script completed.

根据这个视频的操作，问题解决了。https://www.youtube.com/watch?v=vCCVxGtCyho


Segmentation fault in a fresh React project if using plugins

When I try to create a new Vite project using yarn create vite and selecting React with Typescript + SWC, I can perform yarn build just fine, however when I yarn add -D @swc/plugin-emotion and update my Vite config, the build fails with a segmentation fault.
I also get the same result with @swc/plugin-noop and @swc/plugin-styled-components.
vite.config.ts:
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react({
    plugins: [['@swc/plugin-emotion', {}]]
  })],
})

package.json
{
  "name": "testing1234",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "tsc && vite build",
    "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
    "preview": "vite preview"
  },
  "dependencies": {
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  },
  "devDependencies": {
    "@swc/plugin-emotion": "^2.5.115",
    "@types/react": "^18.2.43",
    "@types/react-dom": "^18.2.17",
    "@typescript-eslint/eslint-plugin": "^6.14.0",
    "@typescript-eslint/parser": "^6.14.0",
    "@vitejs/plugin-react-swc": "^3.5.0",
    "eslint": "^8.55.0",
    "eslint-plugin-react-hooks": "^4.6.0",
    "eslint-plugin-react-refresh": "^0.4.5",
    "typescript": "^5.2.2",
    "vite": "^5.0.8"
  }
}

Running yarn build gets stuck at this step:
-> % yarn build
yarn run v1.22.21
$ tsc && vite build
vite v5.0.12 building for production...
transforming (1) index.html

After some time, it crashes with SIGSEGV
-> % yarn build
yarn run v1.22.21
$ tsc && vite build
vite v5.0.12 building for production...
error Command failed with signal "SIGSEGV".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I'm running Arch Linux, node v20.9.0.

This is probably a regression on SWC. Can you check by using a fixed version of SWC 1.3.104?

I've tried upgrading to 1.3.104, 1.3.105, and the latest nightly, and still seeing the same behavior.
yarn add -D<EMAIL_ADDRESS>

I have experienced the same with the @swc/plugin-styled-components. Going down to the<EMAIL_ADDRESS>fixed the issue.

Looks like downgrading to<EMAIL_ADDRESS>fixed it for me as well.

@swc/plugin-emotion latest is build with the newest swc_core crate. As a result it requires<EMAIL_ADDRESS>See https://swc.rs/docs/plugin/selecting-swc-core#swc_core

Looks like the package for the vite swc plugin has been bumped: https://github.com/vitejs/vite-plugin-react-swc/blob/main/package.json#L17 (needs another bump already)
I wonder if it would make sense to have @swc/core as a peer dep instead so it's easier to keep up with the upstream breaking changes

Package manager allows to specify an indirect dependency (resolve or something like that).
What I should do is add this plugin to th SWC ecosystem so we have less regressions

That's reasonable
Consumers of this plugin could also choose to override the @swc/core version too I suppose if they need bleeding edge

I encountered a similar problem related to upgrading @swc/core to version 1.3.106. I am developing an external library and cannot force all consumers to specify resolutions in package.json :( It would be nice if @vitejs/plugin-react-swc allowed passing the required version of the swc instance in parameters. As it is done, for example, here.

@DiFuks I don't understand your use case, how does your library require to run @swc for consumers?

@ArnaudBarre
I'm developing a library-bundler based on Vite, which is used for building frontends within our company. It has the following dependencies:
		"@swc/plugin-styled-components": "1.5.116",
		"@vitejs/plugin-react-swc": "3.5.0",

We use fixed versions specifically because we want to strictly control the package versions to avoid breaking changes. However, since @vitejs/plugin-react-swc uses @swc/core as a dependency with an unfixed version, there can be a situation where @swc/core upgrades its version while the @swc/plugin-styled-components plugin remains outdated. We've solved this issue by specifying the version like this:
-		"@swc/plugin-styled-components": "1.5.116",
+		"@swc/plugin-styled-components": "^1.5.116",
		"@vitejs/plugin-react-swc": "3.5.0",

But, we still want the ability to control the version of @swc/core by passing its instance into the @vitejs/plugin-react-swc plugin.

Yeah but in that case you will download two version of SWC. I suppose your template enforce a package manager, and in that case I think using https://docs.npmjs.com/cli/v10/configuring-npm/package-json#overrides or equivalent is a better fix

I don't see anything wrong with loading 2 versions of @swc/core - one just won't be used. Library users install it with a simple command yarn add @my-org/frontend-scripts. In this case, they will have to manually add overrides/resolutions to each project (and there are hundreds of them). Even if they do this once, when running yarn up @my-org/frontend-scripts (where, for example, the swc plugin has been updated), they will have to change the version in overrides/resolutions to the one that is currently supported by @my-org/frontend-scripts. That is, I can't control the version at the library level

Ok I see. I personally don't advice to use Vite as a library builder. It's in freeze mode. If you still want to build in that direction you can open a feature request with a summary of the need and I can bring this up to a team meeting

Perhaps you misunderstood me. We don't use Vite for library builds. It's used as part of our internal library for building Vite-based applications. But alright. I got you - I'll bring up a feature request.


Fix trx image extraction

In trx image, some payload doesn't have size field like lzma. Its size can be calculated by offsets which is defined in the trx header. Otherwise the data from extraction will be corrupt.

I think it fixed this issue:
https://github.com/ReFirmLabs/binwalk/issues/18

Can you provide a sample image where the extracted LZMA data is corrupt? If LZMA extraction fails because the size of the compressed data is unknown (which is true for all LZMA data), then all firmware images which contain LZMA compression would have corrupt extracted data which is a serious concern.

You can try this tenda router image for this issue:
http://down.tendacn.com/uploadfile/2017/Firmware/US_AC18V1.0BR_V<IP_ADDRESS>_multi_TD01.rar

Thanks, I took a look at this firmware image and both the LZMA and SquashFS sections of the firmware image were extracted successfully. I guess I'm just trying to figure out how data is getting corrupted, and how this patch fixes that?

The exract result as:
-rw-r--r-- 1 tangc8 1049089  9041956 Dec 12 13:11 1C9E90.squashfs
-rw-r--r-- 1 tangc8 1049089  4585280 Dec 12 13:11 5C
-rw-r--r-- 1 tangc8 1049089 10919908 Dec 12 13:11 5C.7z
drwxr-xr-x 1 tangc8 1049089        0 Dec 12 13:11 squashfs-root
You can see the size of '5C.7z' is more larger than 5C which is decompressed by the '5C.7z'. That is caused by the size to split '5C.7z' out from the image is incorrect.
The patch is for calculating the size for '5C.7z' by its offset defined in trx header.

Ah, yes, that is true. To be honest though, I'm hesitant to accept this pull request, for a few reasons.
First, this modifies core code in binwalk for what is a relatively uncommon use case. Yes, TRX headers are reasonably common, especially among home routers, but LZMA is used everywhere, so this really only fixes these over-sized .7z files for a small minority of situations. If tackling this issue specifically for firmware images with TRX headers is your goal, then I think it would be better to implement this as a binwalk plugin.
Second, while the modified code could be useful in other cases, I think that this approach is generally problematic. For example, what happens if you have a false-positive TRX header (and yes, I've seen exactly this in real world firmware) followed by some valid LZMA data? If I'm reading your code correctly,  the offsets for the LZMA data would be calculated incorrectly, and extraction of the valid LZMA data may fail. Binwalk currently favors reliability of extraction over disk-space efficiency.
Third, if disk-space is a concern, you can always specify the -r option, which will delete the .7z file after it is extracted.

I don't concern the disk-space.  I don't modify the uncompressed file of .7z  and only repack it with the modified squash fs file.
I agree with you that the patch is some specific and not suitable to place it in the core code. That is because I don't know the binwalk has plugin to support this kind customization.
Thanks.


[requires.io] dependency update on master branch

Current coverage is 60.11% (diff: 100%)

Merging #37 into master will increase coverage by 0.10%

@@             master        #37   diff @@
==========================================
  Files            61         61
  Lines          1973       1973
  Methods           0          0
  Messages          0          0
  Branches        158        158
==========================================
+ Hits           1184       1186     +2
+ Misses          750        749     -1
+ Partials         39         38     -1

Powered by Codecov. Last update dda5af0...48e7233


[keycloak - OID4VCI] (DiscoveryEndpoint) Find available signature algorithms by provided realm-keys

Closes https://github.com/keycloak/keycloak/pull/35205