Ensure vulnerability.identifier is unique.

Add an EXCLUSIVE lock while ingesting vuln identifiers to prevent us from getting into an error state neeedlessly.
Fixes #471

Hm, that feels a bit drastic. Maybe necessary. Maybe there's a way to transform this indeed into an upsert, which should achieve the same? Anyway, I defer to @JimFuller-RedHat when it comes to DB stuff like that.

As long as the ORM produces something like the following sql:
ALTER TABLE your_table ADD CONSTRAINT constraint_name UNIQUE (your_column);

that adds a unique constraint on the column ... we should be good.
Agree with @ctron eg. would reccommend to avoid exclusive locking of the table ... this can cause all sorts of surprising performance issues in read/write scenarios - pg, by default, handles locking at various levels and should just 'do the right thing' with the defined unique constraint.

Wrong solution.


Remove used without a value should remove the field entirely

:tada: This issue has been resolved in version 1.3.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


docs: Fix a few typos

There are small typos in:

security/middleware.py
security/models.py

Fixes:

Should read response rather than reponse.
Should read database rather than databse.
Should read confidential rather than confifendialt.

Semi-automated pull request generated by
https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

Thanks for the suggestions.


[SwitchBase] bug fixed

This should examined by !== , not != .

sorry, i misunderstand my case. the value i think the value is false, but actual value is undefined.


[ADD ME TO THE ORGANIZATION]

Name:PassionFriend
Location:
Interest:
Discord username(optional):-
Why do you want to join?
Hi,
I met this community in Github.
I hope to join this community to learn more.
Thank you.

@PassionFriend Thanks for your interest. Invitations have been sent to you. Kindly accept it and make your membership public.


Consider a non-root-based template

The current templates supports a single current root instance that you can inject in your template for rendering. This means all its member properties are available during rendering, but you cannot have more than one root. You can change the root with the with tag, and refer to a different root using namespaces. But namespaces are hardcoded to the tag type they refer to, so you can't refer to any arbitrary scope by namespace if both scopes have the same namespace.
This is something that is common across template systems, but it is very alien to Java developers and their notions of scoping.
We should consider an alternate inspiration for semantics in the form of Java methods and syntax, where a template would take any number of named parameters, all visible in the scope of the entire template.
Every tag would then introduce new scopes, possibly with new bindings, just like Java instructions like if, while, for.
Example such semantics:
// in foo.html

  <title>{title} - {subtitle}</title>

   {#if !users.empty}

     {#each users}

{user.name}

     {#/}

   {#/}

This would be rendered with String render(Map<String,Object> parameters).
With such semantics, we rely on best-choice optional parameters to make life simple, but we can override the defaults if we want, so the following two forms are equivalent ways to build a comma-separated index like 0: Bob, 1: Stef:
     {#each users}
       {#if !user_isFirst}, {#/}{user_index}: {user.name}
     {#/}
     {#each users, var: 'user', isFirstVar: 'isFirst', indexVar: 'index'}
       {#if !isFirst}, {#/}{index}: {user.name}
     {#/}

We can still support a with tag that changes resolving so that any variable is first looked up to be the member of an instance:
     {#each users}
       {user.name} {user.lastName}
     {#/}

     {#each users}
      {#with user}
       {name} {lastName}
      {#/}
     {#/}

But given the very relative usage of this instructions in modern languages, I'm not sure it will be the most used tag.
We could define scoped new variables with the let tag:
     {#each users}
      {#let expensiveComputation: 2*user.age, friendsCount: user.friends.size()}
       {user.name} is {expensiveComputation} old and has {friendsCount} friends.
      {#/}
     {#/}

But I also think we could just do like in Java and allow declaring new local variables in the current scope:
     {#each users}

      {#set expensiveComputation: 2*user.age/}
      {#set friendsCount: user.friends.size()/}
       {user.name} is {expensiveComputation} old and has {friendsCount} friends.
     {#/}

My opinion is that this is much more Java-dev-friendly and flexible than the current option. Note that this is not at all an issue about syntax but about semantics. I will open another issue to discuss syntax.

In fact, you can pass a Map as the root data object and your foo.html would work as expected (provided the default resolver for Map is registered). Well, almost as expected - title/subtitle/users would need data: namespace inside the each tag.
The problem with nested contexts/scopes is performance -> the engine needs to walk up the hierarchy of contexts and that could be expensive.
I like the idea of let/set tags. I'm not so sure about the "implicit definition of 'user' variable".
Thanks for feedback. Good discussion! ;-)

The problem with nested contexts/scopes is performance -> the engine needs to walk up the hierarchy of contexts and that could be expensive.

We're talking about a max of 10 nested layers, I think, it's not like that can affect perf in any meaningful way, no?

You may be surprised ;-). Let's suppose we have 5 nested levels and 15 registered resolvers (components which attempt to resolve a property). Now for the worst case scenario where the property is found in the root level by the last resolver or not found at all - you'll get 5 iterations over 15 resolvers, that's 75 invocations of ValueResolver#appliesTo() just to find the matching resolver. Now if you have a loop over 20 items and for each item you render 3 such properties. It's 20 * 3 * 75 = 4500 invocations. For some resolvers this would be negligible but for complex resolvers, e.g. for a resolver generated for a complex class with many methods, this would be measurable in benchmarks...
Now seriously, I like the concept of the current context and namespaces more although it's probably a bit unusual. The reason is that from my experience it's not always easy to identify the scopes in a template. No matter what syntax you use it's usually a mess. On the other, it should be quite easy to identify the current context and for everything else a namespace is needed.

Let's suppose we have 5 nested levels and 15 registered resolvers (components which attempt to resolve a property)

Well, in the model I'm describing each scope can only add a few bindings, and properties are not directly looked up on those bindings, so a lookup is just asking each layer if it has a binding for a given name, which is much cheaper.

Note that if the template becomes fully resolved at build time ("type-safe"), then this invocation cost is moot as the context would be fully resolved by the time the template is generated.

Something on that subject, should a template declare the type of its incoming parameters (or root contexts).
{#param items}com.github.mkouba.qute.quarkus.example.Item {/}
{#param limit}java.math.BigDecimal{/}
// if it had a single root param it would be {#param}com.github.mkouba.qute.quarkus.example.Item{/}
<!DOCTYPE html>

<meta charset="UTF-8">

<title>List of Items</title>

List of Items

We have found {items.size} items.

    {#each items}

{name.toUpperCase ?: "NO NAME"}:
        {#if price > data:limit}
          {discountedPrice.scaled(0)} (<s>{price}</s>)
        {:else}
          {price}
        {/if}

    {/each}

Note that if the template becomes fully resolved at build time ("type-safe"), then this invocation cost is moot as the context would be fully resolved by the time the template is generated.

Qute doesn't work like this. We don't generate/compile the template during the build. And I see no reason why it should be...

Something on that subject, should a template declare the type of its incoming parameters...

Again, I don't think this would bring any value. Also as I tried to explain in several places - the fact that you're working with java.math.BigDecimal does not mean you're limited to its members. Anyone can add virtual/extension methods in both a declarative and a programmatic way.

Again, I don't think this would bring any value. Also as I tried to explain in several places - the fact that you're working with java.math.BigDecimal does not mean you're limited to its members. Anyone can add virtual/extension methods in both a declarative and a programmatic way.

I still don't understand why you bring this up: extension methods are type-safe: we know what types they augment, and what methods they bring. This resolution is entirely possible at compile-time, which is how every language with extension method does type-checking.
If you have a BigDecimal, the sum of the methods you can invoke on it are those declared on its types, plus those declared as extension methods for that type. All of which can be checked at compile-time.

I still don't understand why you bring this up: extension methods...

Ok, again - extension methods are only one way of adding a "virtual member". Also an extension method could be used to handle multiple "keys". See for example: https://github.com/mkouba/qute/blob/master/quarkus/example/src/main/java/com/github/mkouba/qute/quarkus/example/GithubClient.java#L47-L50.

Well, this is a design choice: we could force extension methods to be type-safe by closing those doors if we want to.

I don't think it's a good idea to close those doors - I find the reasons to keep them open reasonable ;-).

Fair enough, and we're straying farther from the current issue, but can you list those use-cases please? I understand your example allows map.key to access map.get(key). Personally I'd have preferred the map[key] notation myself, to allow for key values that conflict with properties or methods from the left-hand-side.
It's totally possible that the benefits are worth it, but it helps if we learn about them :)

Ok, so in my example the object is io.vertx.core.json.JsonObject which is not a Map but represents a JSON object where it's natural to use the dot notation, i.e. foo.bar. Of course,  the bracket notation is also useful and Qute supports it (we have at least one test ;-) - foo.bar is equivalent to foo[bar].
Another use case might be that you would like to expose "properties"  of a particular object, i.e. Collection: https://github.com/mkouba/qute/blob/master/core/src/main/java/com/github/mkouba/qute/ValueResolvers.java#L41-L58. Of course, you could either declare an extension method for each property (4 methods in this particular case) or allow the @TemplateExtension to list all properties names and use the names inside the method. But is it elegant and concise?
Another use case might be that you would like to register a resolver dynamically based on some configuration flag.
Listen, I do undestand that "build-time generated type-safe thingy" could bring some benefits. However, Qute is not designed in this way because I don't believe it's very practial. For example, in the dev mode you would have to rebuild/generate the template whenever you change the original source and throw away the previous class (i.e. drop the app classloader). And even if we don't transform a template into bytecode but merely validate it is "type-safe" we would have to re-run all the build steps.
Anyway, it would require some substantial redesign/refactoring. That's all.


Update kamon-core, kamon-logback, ... to 2.1.20

Updates

io.kamon:kamon-core
io.kamon:kamon-logback
io.kamon:kamon-testkit

from 2.1.8 to 2.1.20.
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!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.kamon" } ]

labels: library-update, semver-patch

Superseded by #177.


If I use dual-boot should I install it on windows or just extract it in esp?

I want to show it on all my system

What is the result? have you tried? I have the same question: win + arch

See README which has instructions for multi-boot.


why sorted(edge['src_id'],edge('tgt_id'))?

in operate.py 382 lins,
for m_nodes, m_edges in results:
for k, v in m_nodes.items():
maybe_nodes[k].extend(v)
for k, v in m_edges.items():
maybe_edges[tuple(sorted(k))].extend(v)

i mean it will shuffle the src_id&tgt_id,and make a disordered instruction for next process。just like operate.py 832 lines,
for e in this edges:
sorted_edge=tuple(sorted(e))
when sorted the src_id&tgt_id,the followed process is ......get_edge(e[0],e[1]) for e in all_edges] the kg_db will not distinguish src_id and tgt_id?  get_edge will not concern the direction of edge?


Hermes support for CCV chains

Summary
There are some new features required in Hermes to properly support Cross-Chain Validation (CCV) chains. More details related to misbehaviour and evidence can be found here.
Documentation

[ ] Document the evidence handling in CCV (work in progress here)
[x] #3349

Implementation

[x] #3125
[x] #3219
[x] #2772
[ ] #3222

Dependencies

[x] Update tendermint-rs detector and evidence submission code (https://github.com/informalsystems/tendermint-rs/issues/1291)
[x] https://github.com/cosmos/ibc-proto-rs/issues/76
[x] Provider chain handling of the new MsgSubmitIcsConsumerMisbehaviour message (https://github.com/cosmos/interchain-security/issues/825)

Nice to have

[x] #3223
[ ] https://github.com/cometbft/cometbft/issues/537

Problem Definition

Proposal

Acceptance Criteria

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate milestone (priority) applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

Let's close this, follow-up work is captured in https://github.com/informalsystems/hermes/issues/3222


Exported parameters are not properly read when the instance of a resource has its own script

Let say an object (scene) contains a script. And then I create a different script extending the script of the object to apply it to an instance of the object. If I export a parameter in the second script, it will always have the default value at runtime, no matter what I set in the instance's property. There's a diagram explaining it:

In class N2, param2 has a default value, that instance cannot modify. However param1 can be modified.
I created an example for this case. You can download it here:
https://drive.google.com/file/d/0B1UVb9K9E3_8UHhwVllQWV9DLWc/edit?usp=sharing

I think this has been fixed in c79be97.


Getting Warning: 'keyboardShouldPersistTaps={true} is deprecated.'

I am playing round with GiftedForm and so far like this library a lot.
However, I get a warning message on the simulator stating that:
'keyboardShouldPersistTaps={true}' is deprecated. Use 'keyboardShouldPersistTAps="always" instead.
I am using:
"react-native": "0.40.0",
"react-native-gifted-form": "0.0.13",

Is there somewhere that I can override this property?

I have the same problem

'keyboardShouldPersistTaps={true}' is deprecated. Use 'keyboardShouldPersistTaps="always"' instead
How to fix it?

I'm getting this too

it fixed in RN 0.39.2

I have the same issue. but the infamous @jagi is here. Meteor's famous schema package writer :D

I'm using "react-native": "0.41.2" getting this message also? how can i fix this?

change your RN version to 0.39.2 in package.json file, then remove your node_modules folder in that RN project, open Nodejs command promt cd projectname -> npm install
It will be fixed

Should be fixed by https://github.com/FaridSafi/react-native-gifted-form/pull/95.

I'm getting this warning using Expo's latest version (16.0)


feat: refresh types

Some new types have been added, so refreshing to include them :).

Closes: https://github.com/googleapis/common-protos-php/pull/49


Reorg Project: PROPOSAL

I have been thinking about how this project is used (or how it could be used in the future).  I think we have good coverage on the INP [READ/EXTRACT/EDIT/SAVE] functionalities.  Furthermore, this project also does a good job with RPT [READ].  There are also GIS features that are super powerful and finally, mapping and profile plotting are useful feature sets.   I like the default runner process onboard (especially since it is now x-platform compatible having onboarded pyswmm).
If I were a potential user stumbling onto swmmio, I might feel a little bit lost.  The documentation does not provide clear guidance on all the use-cases covered by this project.  Furthermore, if I were a developer off the street, I might not know how best my code/ideas could fit into the project.
Dreaming up a possible future, I think the code and tools should be organized much like how a user might put it into their workflow.  The following figure demonstrates some workflow options.  "Square" boxes are normal starting points.
graph LR;
    A[Open MODEL]-->B;
    B(Edit/Save MODEL)-->H;
    B-->G
    A-->G(Network Analysis *Tools*);
    H(Export to GIS *Tools*);

    D(Run Model - optional)-->E;
    E[Open Model/RPT/OUT]-->F(Graphic/Table *Tools*);

    G-->F;

What you see is that the typical user might want to open->edit->save a model. Then, open->interpret->graph results.  The workflows would then expose the following features groups to the users.

[MODEL] Manipulate Model (OPEN/EDIT/SAVE)
[RESULTS] Interpret Results (RPT/OUT)
[TOOLS] ...

Run (optional, but available)
Graph (Network Map, Profile, Timeseries?)
Network Analysis (connectivity, select)
GIS features (to Geopackage)
Something I haven't thought of

@aerispaha I'm hoping to make a YouTube video soon on the profiler aspect that was added a few weeks ago.   Before I do that, I am hoping we can make some modifications to the documentation so that we need not re-record the video. Do you have a few minutes to review this and then we can spend time to build out the docs?  Just trying to keep the docs in a row :duck::duck::duck:

@bemcdonnell I think this reorg proposal is solid!
Overall I think it makes sense to organize the documentation (and the code) into these three general areas: model i/o and manipulation, results interpretation/exploration, and tools, which I think is totally in line with your proposal. I also agree that the "tools" scope can include a collection of higher level algorithms that help facilitate common modeling tasks.
I'm on board!
Maybe as a next step we can outline a few common modeling workflows within which swmmio could be a super useful. Ten we can start to taylor the docs to focus on these workflows. What do you think?


Tool takes a very long time

Hello,
i'm trying to use your tool to source index a very basic project.
So, i update the environment variable set localGitRepo=C:\Git\test
and then I run the actual command
C:\Users\user101\Desktop\sourceIndex_forGit-master\gitIndex.cmd "C:\Git\test" "C:\Git\test\x64\Release"
But then, the first line is rem call gitIndex.cmd "" ""
followed by several errors:

find: '/i': No such file or directory
find: '/c/$Recycle.Bin/S-1-5-18': Permission denied
f>ind: '/c/$Recycle.Bin/S-1-5-21-1035048477-112209276-915462001-1000': Permission denied                                 find: >'/c/$Recycle.Bin/S-1-5-21-1035048477-112209276-915462001-1001': Permission denied
find: '/c/$Recycle.Bin/S-1-5-21-1035048477-112209276-915462001-500': Permission denied
find: '/c/$Recycle.Bin/S-1-5-21-1457439002-884234708-2329215277-500': Permission denied
find: '/c/$Recycle.Bin/S-1-5-21-2500424245-2055191009-4082716798-4653': Permission denied
find: '/c/PerfLogs/Admin': Permission denied

I have also tried to set LocalProjectSrcPath and pdbFilePathOrPdbFolderPath, but I still have the same errors

Hi ,
all those variables are used by your debugger.
the source indexing procedure needn't those variables.
for the source index procedure, you only need to confirm userLocalPathConfig.bat configuration is correct with your current environment.
the line : rem call gitIndex.cmd "%LocalProjectSrcPath%" "%pdbFilePathOrPdbFolderPath%"
it is only a usage example comments.
you can refer to the usage example in test folder.
or in your visual studio project : solution explorer -> right click -> Properties -> Build Events -> Post-Build Event :
Command Line : call C:\myScript\gitIndex.cmd "$(projectDir)" "$(targetdir)$(targetname).pdb"
as a basic test project, you can package them and send it to me<EMAIL_ADDRESS>, I will check it.

Hi ,
all those variables are used by your debugger.
the source indexing procedure needn't those variables.
for the source index procedure, you only need to confirm userLocalPathConfig.bat configuration is correct with your current environment.
the line : rem call gitIndex.cmd "%LocalProjectSrcPath%" "%pdbFilePathOrPdbFolderPath%"
it is only a usage example comments.
you can refer to the usage example in test folder.
or in your visual studio project : solution explorer -> right click -> Properties -> Build Events -> Post-Build Event :
Command Line : call C:\myScript\gitIndex.cmd "$(projectDir)" "$(targetdir)$(targetname).pdb"
as a basic test project, you can package them and send it to me<EMAIL_ADDRESS>, I will check it.

if it works, but it takes a very long time, it is caused by the git version mechanism.
but this implement is a huge source index procedure -- it is slow when source indexing, but much faster when the debugger is using them.
if you like a fast light source index procedure, you can try  :
https://github.com/ShenXiaolong1976/sourceIndexLight_forGit
it is faster when source indexing, but much slower when the debugger is using them because you have to sync all repo files with a special git version which embed into the PDB file.

if it works, but it takes a very long time, it is caused by the git version mechanism.
but this implement is a huge source index procedure -- it is slow when source indexing, but much faster when the debugger is using them.
if you like a fast light source index procedure, you can try  :
https://github.com/ShenXiaolong1976/sourceIndexLight_forGit
it is faster when source indexing, but much slower when the debugger is using them because you have to sync all repo files with a special git version which embed into the PDB file.

index slower , debug faster   -- use :  https://github.com/ShenXiaolong1976/sourceIndex_forGit
index faster  , debug slower  -- use :  https://github.com/ShenXiaolong1976/sourceIndexLight_forGit


Organization: project submission / edit form broken after antd v3 -> v4 dependency upgrade

Assuming you're gonna work on organizational functionality I'm assigning you this issue. In case you want to keep some of the old logic for project submission / editing.

Assuming you're gonna work on organizational functionality I'm assigning you this issue. In case you want to keep some of the old logic for project submission / editing.


serve:dist and serve showing different results

I usually make posts daily, and I love generator-jekyllrb! However I hit a problem. In my source repo, I have daily posts going up to 2015-08-13-sketch.md
https://github.com/dailysketches/dailysketches.github.io/tree/source/app/_posts
However in my master repo the most recently generated post is sketch-08-08-2015
https://github.com/dailysketches/dailysketches.github.io/tree/master/
If I run grunt serve and grunt serve:dist it bears this out - in serve all the posts are showing, in serve:dist the last post is sketch-08-08-2015
Not sure how to troubleshoot it - thanks

I found the answer in the config.
_config.yml:
future: true
show_drafts: true

_config.build.yml:
future: false
show_drafts: false

The posts that weren't appearing for me were all future-dated!


Filter compiler

The where builder uses StaticFilterCompiler infrastructure.
Only part of the last commit is relevant, the rest comes from #83. I'll rebase and clean up the PR when the other is merged.

cc: @dmajda

Rebased so this is now a single commit, for documentation purposes.


build: add a script to flag missing unit tests in MDC packages

Adds a script that will find and log out the names of Material unit tests that don't exist in the equivalent MDC component. Note that right now it's something we'd run manually, but the idea is to eventually have it on the CI, once all the tests have been added and we have the ability to exclude some tests that aren't relevant for MDC.

The feedback has been addressed.


Wrong Values for BL Baden Württemberg

🐛 Describe the bug
A clear and concise description of what the bug is.

The values are absolutely wrong, For a few weeks now.

💥 When did the bug occurred.*

[ ] Installation / First-run
[ ] Configuration
[x] Other

👣 To Reproduce
💻 Versions (please complete the following information):

OS: [e.g. core-2021.6.6]

Correct Values: Inzidenz: 6,53 / Gesamtfälle: 500.569

Today, the values seems to be OK ...

sorry, but the values are not OK !
Fälle Gesamt: 500.702 and not 1.001.404
I reloaded the Integration, now i see the following values:

It seems like the number is always adding up.
500702 1001404, 1502106 ...

This is a duplicate of #43


unions missing attributes when type checking

EdgeDB Version: 5.0-beta.3+a23feab
EdgeDB CLI Version: EdgeDB CLI 4.3.0-dev.1129+2f36b59

Steps to Reproduce:

Start off with this schema https://github.com/iforge-uos/ignis/blob/main/apps/anvil/dbschema/training.esdl
Attempt to uncomment Interactable.parent
edgedb error: SchemaDefinitionError: cannot drop property 'index' of object type 'training::Question | training::TrainingPage' because this affects expression of link 'parent' of object type 'training::Interactable'
Detail: object type 'training::Question | training::TrainingPage' has no link or property 'index'

cc @msullivan

Attempting to do this through DDL directly also doesn't work. I tried
alter type training::Interactable {
    CREATE REQUIRED PROPERTY parent := (
        select assert_exists(training::Training filter __source__ in [is training::Interactable].sections)
    )
};


Add links to all the tools mentioned in top scanning tools

I just need someone to place links to all of the tools mentioned in this resource. It should be a very easy job and a good first issue if someone wants to do it.
File needed to be edited Top Scanning Tools.md

Please just comment below so I can assign this to you.

Added as many links to the tools as I could find.


Improve developer workflow

Is it still necessary to manually run webpack (ReactGrid)? Can this be a post-build step or something of the sort?

In development mode (i.e., with the environment variable ASPNETCORE_Environment set to Development), you don't have to run webpack manually.
The ReactGrid sample, along with the other React templates and samples, all use UseWebpackDevMiddleware in their Startup.cs, which means that Webpack artifacts are built and refreshed automatically on demand.
For production deployments, you do still need to run webpack because typically in production you don't want to have development-time middleware running in the background - you just want to serve prebuilt static assets as fast as possible.

Can this be a post-build step or something of the sort?

That would be great. If you have a suggestion on how best to enable that, please let me know. Last time I checked, the dotnet CLI's scripts feature wasn't doing anything, but I'm sure that will be sorted out soon.

Hi Steve, thanks for your prompt reply and helpful info. Tony


Create init.py

First if you try pip install pinject like me, wont work.After little search i found right repo and its really tiny.So i inject it into project now its working as expected.
Cheers ~~

https://github.com/panagiks/RSPET/pull/2 sry :)

Thanks for noting I had the library manually installed and totally forgot about it :) Merging

Just saw it's under server :S Np I'll move it to Client


sudo command for Windows

I've tried pip install keras and I thought it successfully installed, but then the module is not found
I used then sudo but it is not for window and someone recommended this platform
Use this: https://sourceforge.net/projects/sudowin/

Using Anaconda-Navigator helps, too


failed to bulk sync (err="fork not found")

Description
I set up the polygon edge in our servers. I was able to deploy the bootstrap node and ran the polygon-edge server with the genesis file.
I connected with the wallet and ability to see the 1000 ETH in my account.
when I tried to stack the contract or whatever it was.
the blockchain doesn't pass the 251 blocks.
this is the output of eth_getBlockByNumber
{"jsonrpc":"2.0","id":1,"result":{"parentHash":"0x2e082ff746c1f5e5c3661221a20e74e76b7171befeddff70fe06921d54e672cb","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","miner":"0x0000000000000000000000000000000000000000","stateRoot":"0xaa5393ef03e148797012b2241c036441623dae9bb6c5f17c9c13f9b1f9a5f5c5","transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","difficulty":"0xfa","totalDifficulty":"0xfa","size":"0x2bf","number":"0xfa","gasLimit":"0x500000","gasUsed":"0x0","timestamp":"0x62c30ac3","extraData":"0x0000000000000000000000000000000000000000000000000000000000000000f89ed594c28436378a0ca15e64d72ffe4a0a012fd321f50cb841739d46c6bf433be9b1ab0ea857e2f2ca05a79ee6e50728d02cf98995a05c1b4c7ea4a522554b70d01cd9724827dcbc6d209e5ed67eaf99ca271d38959612f08b00f843b841da34ef50d4f314a981decc5936799a6072c390b044b70368ff379cbd41d2ce947c01480c973519177059db6ac2102cb93ce854e6d4631590a68ef9cadd376b6701","mixHash":"0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365","nonce":"0x0000000000000000","hash":"0x6839f5515a371b94d1335aeeb14e035af01f4a55e9b94caf8cce20df6d572eae","transactions":[],"uncles":[]}}
Can you please let me know what I did wrong.

Your environment

Ubuntu 21
Polygon edge develop branch
branch

Hi, sorry for the late reply. I am using Develop branch.
commit 0e42bda440eee530ece852bc98ee794fe28fbc13 (HEAD -> develop, origin/develop, origin/HEAD)
I hope this helps.
Thansk

@saravana87 This could be related to the old syncer. I suggest to try the latest develop for edge, as we merged lightning sync.

@saravana87
Closing this issue as this was resolved with PR #591.
Please open up a new issue if the problem persists 🙏

@saravana87
Closing this issue as this was resolved with PR #591.
Please open up a new issue if the problem persists 🙏

I updated the develop branch and the issue seems resolved. Thank you


DO NOT MERGE! Fast Forward stable to 7d93b5d3dce3c2775ccc16e69ada6cbfa24614f6.

This PR will be merged automatically once checks are successful.

Jenkins job manager/postsubmit passed


[RESOLVED] High ICMP ping response time

Problem started at 13:00:16 on 2023.08.04
Problem name: High ICMP ping response time
Host: ST-FG
Severity: Warning
Operational data: Value: 199ms
Original problem ID: 34610
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23135&eventid=34610

Problem has been resolved in 1m 0s at 13:01:16 on 2023.08.04
Problem name: High ICMP ping response time
Host: ST-FG
Severity: Warning
Original problem ID: 34610


Add `add-to-init-file'

Just like Quicklisp, add a function add-to-init-file that writes the startup/initialize code snippet in the init file of the given CL implementation.
see: https://riptutorial.com/common-lisp/example/20147/initialization-files

yea that is better idea than just adding sbcl specific instructions. Since it's already on top of quicklisp and quicklisp already has function add-to-init-file that's tested and works on all CL implementations it makes sense to just use it, but I'm not sure what would be the right way, some ideas:

write the ql-https startup code to quicklisp/setup.lisp, now (ql:add-to-init-file) works as it just adds code to load quicklisp/setup.lisp
overwrite ql-impl-util::write-init-forms or ql-impl-util::quicklisp-init-file-form which are called by (ql:add-to-init-file) with the ql-https setup code
make are own simple add-to-init-file function by just writing the ql-https startup code to (ql-impl-util::init-file-name)
rather than overwriting or using private methods from quicklisp make our own copy of whatever private function (ql-impl-util::init-file-name) we want to use
implement from scratch

I think 1 is the simplest, it has the problem that we clobber quicklisp's setup file so now the user can only load ql-https and not plain quicklisp. But I don't think it's really a problem as presumably if a user installed ql-https they want to always use it instead of quicklisp. Which option would you recommend, or something else?

I have the fifth option in mind. In don't want to mess with QL code or overwrite and redefine stuff. I imagine a function
add-to-init-file that checks which CL implementation is currently used, checks if the rc fexists (if not
add-to-init-file creates it) and writes the initialization snippet to rc file.

Hey, I finally get back to this :) I'm thinking first option might be needed, as I ran into an issue with CIEL where it does (load "~/quicklisp/setup") which fails as with ql-https there is no ~/quicklisp/setup file. I had to put the ql-https setup code in there to make it work. Searching github it seems there is a decent number of lisp projects that expect to be able to load quicklisp by loading that ~/quicklisp/setup.lisp. So for those to work with ql-https we have to put the ql-https setup code anyway in quicklisp/setup.lisp, and if that's the case then we can just use (ql:add-to-init-file) without any changes as it just adds code to the rc file of each lisp implementation to load ~/quicklisp/setup.lisp on startup

Interesting. Feel free to come up with a solution then. The important step is to have ql-https loaded before (quicklisp:setup) is evaluated.
On the other hand, having an implicit dependency to Quicklisp by referencing ~/quicklisp/setup.lisp is a design flaw in my opinion. There are people out there (myself included) that don't use Quicklisp and therefore have no need for ql-https at all. How are they supposed to work with this decent number of lisp projects?

having an implicit dependency to Quicklisp by referencing ~/quicklisp/setup.lisp is a design flaw in my opinion.
I agree, I haven't looked into the others but in the case of CIEL it is assuming in many places that dependencies are downloaded with quicklisp.

 I've been wanting to look into nix, I think it has a quicklisp importer so it can use everything packaged in quicklisp

I made a simple bash installer script that does all the installation instructions https://github.com/rudolfochrist/ql-https/pull/7
ql-https is loaded before (quicklisp:setup) as (ql:add-to-init-file) simply adds to your lisp implementations init rc file code to load ~/quicklisp/setup.lisp and the installer writes in ~/quicklisp/setup.lisp the ql-https setup code, not quicklisp setup.

Interesting, what do you use?

I'm using ocicl/ocicl now. Dependencies are downloaded over HTTPS and does project-local dependencies.

Interesting I'll read about it

Fixed in #7


PydanticUserError

After installation of streamsync through pip install "streamsync[ds]" and running streamsync hello PydanticUserError is raised:
File "C:\term\venv\Lib\site-packages\pydantic_internal_generate_schema.py", line 800, in _typed_dict_schema
raise PydanticUserError(
pydantic.errors.PydanticUserError: Please use typing_extensions.TypedDict instead of typing.TypedDict on Python < 3.12.
(I'm using Python 3.11)

I ran into the same issue when installing streamsync 0.1.9 and running streamsync hello on Python 3.11. Here is the relevant documentation from Pydantic: https://docs.pydantic.dev/dev-v2/usage/errors/#typed-dict-version. This is breaking the streamsync command in general on my end. I modified the imports in ss_types.py to check for the python version and import TypedDict based on that. It got the streamsync command to work, but now I'm getting validation errors when running streamsync hello.
I'd like to help with troubleshooting this further, but am admittedly a little lost with respect to collaboration on this project and how to build to test my changes. @ramedina86 I'm happy to help, please let me know if that's something you would like.

I've released version 0.1.10 which pins Pydantic to version 1.10.11 and thus solves the issue.
@SergeyPriem Thanks for reporting this
@martinmarroyo I really appreciate your help on this. As I wrote above, I decided to pin the Pydantic version for now.
The code you wrote seems to address the demands of Pydantic 2, but, as you noted, problems remain (an exception coming from the ASGI application).
I believe that this is a FastAPI issue. Pydantic v2 support was added in the latest version of FastAPI (0.100) and there appears to be some growing pains judging by discussions / issues on their repository. Thankfully, FastAPI decided to keep backwards compatibility with Pydantic v1 which allows to use the latest FastAPI while staying on Pydantic v1.


Feature Request: Provide config hook to run extra formatters (for surface)

Background
Tried tinkering with a vs-code formatter-extension to invoke surface-formatter, but then realized that won't work b/c you can only have one formatter per file-type. We need to be able to invoke surface-formatter from elixir-formatter. Unfortunately, this is probably beyond my ability to help with right now.

IMO it's out of the scope of this project. We do not have resources to support every non standard project. Please open an issue on surface tools repo.

@lukaszsamson of course; I did bring this up w/ #surface in elixir-slack. The suggestion was to provide some config hook to invoke extra formatters from the elixir-format command. I understand many flavors may evolve, so this could apply to other templating engines like surface, slime, or more.


Discussion: Naming

Given that we're already operating under the macchiato top level namespace, maybe it would be nice to drop the .core ?

I'm currently implementing promises according to the clojure api on top of fibers, which has resulted in me starting to wrap fibers themselves, so we now implement not just futures, but fibers, promises and futures.
Is it perhaps time for a rename? I'm not sure that any of these pieces are big enough to warrant being put in their own libraries.

I do think it would make sense to keep it all in one place.

Since we may add other approaches as well, how about renaming it to macchiato-sync?

Renamed. Closing.


caniuse.com is down.

It's currently Mon, 01 Jul 2019 11:18:04 GMT (Germany), and caniuse.com is down.

Oh its online again.


Fixed bug: ".values()" to ".values"

Issue #, if available:
Description of changes:
Fixed a tiny but significant bug, whereby pandas series had ".values()" but should have had ".values".
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

Removed "pending v0.7.x backport" label due to dependency to https://github.com/awslabs/gluon-ts/pull/1544


Fixed building + testing on Mono

This is a collection of fixes that allow building and running the unit tests on Mono.
There are a small number of unit tests that fail on Mono, I moved them into the "NotOnMono" NUnit category and excluded them from Travis CI until they can be investigated. Should be better than not testing at all :)

Great !! Genious !!
I will merge that, anyway in the travis build maybe is better to only build the library and tests and not the Demos, WIzard and so on
The failing Test are mostly because the library defaults to Encondig.Default that works well on windows but in Mono it fail
Welcome :+1:

Looks like I missed one other commit that makes the Travis tests pass, will open a follow-up commit :)

I just added a solution with the library and tests to avoid compile the rest of the projects:
https://github.com/MarcosMeli/FileHelpers/blob/master/FileHelpers.OnlyMainLibAndTests.sln

I actually prefer building and testing the full .sln on CI, in my experience nobody pays attention until the build breaks :)

I agree, but, the rest of projects: Excel Interop, NPOI, Examples succeed in your builds ?
I left only main lib to speed up travis build time

Yep, they built fine. I don't think you'll save more than a few seconds by excluding them, compilation is very fast.

You are right, just changed to FileHelpers.sln, all green:
https://travis-ci.org/MarcosMeli/FileHelpers/builds/72397991
Thanks


drivers: video: allow allocation with a header preceding the buffer

Some protocols expect a header followed the buffer payload. Inserting a header at allocation time permits to have a single buffer including both the header and the payload in a continuous memory region as expected by some drivers, without requiring to memcpy() the header and payload every time.
Before:
vbuf
[                     ]
^.buffer              ^.buffer + .size

After:
vbuf
[          |                     ]
^.header   ^.buffer              ^.buffer + .size

I am not entirely happy with reinventing buffer management inside video.h, as this is something already solved at other places:

https://docs.zephyrproject.org/latest/services/net_buf/index.html
https://docs.zephyrproject.org/latest/services/rtio/index.html#memory-pools
https://docs.zephyrproject.org/latest/kernel/data_structures/ring_buffers.html
https://docs.zephyrproject.org/latest/kernel/memory_management/slabs.html
https://docs.zephyrproject.org/latest/kernel/memory_management/sys_mem_blocks.html

This PR goal is mostly to expose the requirements of #76798.

How are we supposed to know header size when doing allocation? Wouldn't make it sense to allocate the necessary size from the capture driver itself. We could have an internal head pointer and adjust both head and buffer (data/payload) pointer when via some sort of vbuf_reserve function in the driver? (similarly to Linux skb: https://docs.kernel.org/networking/skbuff.html).

Looking at how the SKB API is used, the headroom is taken into account during the allocation (RSTN_ALIGN):
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/ethernet/renesas/rtsn.c#n363
		skb = netdev_alloc_skb(ndev, PKT_BUF_SZ + RTSN_ALIGN - 1);
		if (!skb)
			goto error;
		skb_reserve(skb, NET_IP_ALIGN);

If it is a global headroom_reserve API, this wastes a bit of memory in every buffer that did not use any headroom.
If it is a per-device headroom_reserve API, this mean the allocation becomes more complicated as each device must check the headroom required by the sink.
In https://github.com/zephyrproject-rtos/zephyr/pull/76798/files I will memcpy() the first USB packet (64 ~ 512 bytes max per frame) and migrate to a better API once introduced.

Changes were made to make this unnecessary: the first packet is memcpy(), and all subsequent packets are referred.
This is a small amount of memcpy() per frame, so performance should not be impacted.


After navigating to the lists with new params in URL data is not updated

Let's say I have a dashboard where i have widget with total number of all users in the system who has admin rights. By clicking on the badge user is navigated to users/?filter=%7B%22isAdmin%22%3Atrue%7D&page=1&perPage=10&_k=fvzeew
If it's the first time i navigate to user list, admin-on-rest will request users with the filter taken from URL.
But when after this I try to navigate to all Users list (the same component) with  no params in URL
(users?_k=56s0rx) I will see the data from previous request.
In console:
handleFetch has been cancelled
redux-saga/lib/internal/utils.js?

If you could help me.. Thank you!

This seems to be happening for me as well, but not on every machine.  On my MBP, it functions fine after a save, but on a different machine (running Windows), the list will not refresh after saving a created item.  The URL is updated but nothing happens except the handleFetch has been cancelled bit in the console.

This also happens when after saving edits or confirming a delete.  The difference being that after those events, the filter URL will update, but the data itself does not.
Step-by-step:
Case 1:

Nav to page with no filters
Sort by some attribute
Delete filter params from the URL & press Enter
No data updates

Case 2:

Nav to page
Edit, Create, or Delete an item
Attempt to sort by any attribute
URL updates, but nothing happens until page refresh

Again, this only happens on the computer running Windows, but I am not positive that is the reason.  This functions fine on my MBP.  I still see handleFetch has been cancelled in the console, but the next events still fire and the fetch is completed.

just in case I face the problem on Ubuntu 16.04

@mstmustisnt Did I describe your issue adequately as well?

@MattWilliamsDev yes, exactly

@mstmustisnt @MattWilliamsDev Having the same issue:

Receiving a list of records (GET_LIST)
Creating a new record (CREATE)
Going Back to the list of records (GET_LIST)
In the response I see the new record but the list is not getting updated. Also when pressing the refresh button I receive the new record but the list is not displaying it. (I checked that all fields like id etc. are provided)

When reloading the page entirely I see the new record.

@rweindl I can confirm that the record does come back, but data is not refreshed/updated on the front-end.

While exploring the issue a bit further earlier today, I also found that it works just fine when the app is served from my machine (Mac) and is viewed from a Windows machine on the network via my local IP (ex: http://<IP_ADDRESS>:3002).
It does not work if the app is hosted on the Windows machine and visited on the Windows machine, though I have not attempted visiting the Windows machine from my Mac to test the alternative.  I will post the results here once I have done so.

I think #137 solves this. I don't understand the windows/Mac difference though.

Hi @fzaninotto thanks for your effort. The refresh of the list after deleting an object is still not working on my end? How is it running on your end @MattWilliamsDev?

@rweindl #163 fixes the list after deletion.

Is this still a thing, or can I close the issue?


Remove legacy ts support

part of #163

Coverage decreased (-0.01%) to 96.474% when pulling ca033987a82b5da06b4c77b745d8f72fbb3906c7 on remove_legacy_ts_support into aab2558cfbed9a0e598c18550bf7ce57cd5d5bfc on 2.0.0.

Coverage decreased (-0.01%) to 96.474% when pulling ca033987a82b5da06b4c77b745d8f72fbb3906c7 on remove_legacy_ts_support into aab2558cfbed9a0e598c18550bf7ce57cd5d5bfc on 2.0.0.

Coverage decreased (-0.01%) to 96.474% when pulling ca033987a82b5da06b4c77b745d8f72fbb3906c7 on remove_legacy_ts_support into aab2558cfbed9a0e598c18550bf7ce57cd5d5bfc on 2.0.0.

Coverage decreased (-0.01%) to 96.474% when pulling ca033987a82b5da06b4c77b745d8f72fbb3906c7 on remove_legacy_ts_support into aab2558cfbed9a0e598c18550bf7ce57cd5d5bfc on 2.0.0.


Support lfs option for checkout?

I'd like to migrate one of our projects to wyvox/action but we currently have
      - uses: actions/checkout@v3
        with:
          lfs: true

lfs defaults to false on checkout and I don't see a way of passing it in, would you accept a PR to fix?

Yeah, sounds useful


Update to normalize.css v4.0.0

https://github.com/necolas/normalize.css/releases/tag/4.0.0

Done in #19862.

@mdo did you directly updated to 4.1.1?
https://github.com/necolas/normalize.css/releases/tag/4.1.1


Fixing refs

Fixing issues related to ref in Citation model.
closes #47

Thanks @HassanAkbar . In the future, we will want to change Citation to use the Relaton gem, but that's a different issue.


04/26/2018 21:12 : Create Pull Request for branch master -> prTesting1_2018042621

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestRef1.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Change default branch from master to main

This should go in after the distributed PR https://github.com/dask/distributed/pull/4495

Are we just waiting on CI here? If so given that macOS builds are still queued and others have already passed, should we go ahead here?
cc @jrbourbeau (in case you also have thoughts on these questions)

Thanks Julia and James! 😄

YAY!! Thanks to you as well @jrbourbeau :)


cmd/go: mod vendor fails with unlinkat error

What version of Go are you using (go version)?

$ go version
go version go1.13.10 linux/amd64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build266767394=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I'm trying to build blackbox_exporter within Docker container. I have successfully built it on my CentOS 7 system, now I'm trying to build it in Docker container.
My Dockerfile is:
FROM golang:1.13-alpine AS go
RUN mkdir -p /app/blackbox-exporter
WORKDIR /app/blackbox-exporter
RUN apk add --update --no-cache git curl make gcc libc-dev
ENV PATH $PATH:/go/bin
RUN git clone https://github.com/prometheus/blackbox_exporter.git /app/blackbox-exporter
RUN make
What did you expect to see?
I expect to see no errors when building blackbox_exporter in Docker container.
What did you see instead?
Instead I get the following error:
>> running check for unused packages in vendor/
GO111MODULE=on go mod vendor
go mod vendor: unlinkat /app/blackbox-exporter/vendor/github.com/alecthomas/template/parse: directory not empty
make: *** [/app/blackbox-exporter/Makefile.common:204: common-unused] Error 1
The command '/bin/sh -c make -f /app/blackbox-exporter/blackbox-exporter-makefile' returned a non-zero code: 2

Thanks for filing. What is the docker command you're using to build? My guess is that you're mounting a local module cache into the container, which is readonly. (see #27161)

Couldn't reproduce this with Docker on macOS.
Could you give a more minimal example that reproduces the problem? There's a moderately sized Makefile here, and I don't know whether it's doing something that might cause issues.
Is there any chance that more than one instance of go mod vendor is run concurrently?

@toothrot This is the command I'm using to build:
docker build --tag test_img_2 /home/mirov/workspace/sa20sre/blackbox-exporter

@jayconrod I've looked into Makefile.common and from what I see I don't think there is more than one instance of go mod vendor running when I start the build. I have to admit I don't quite understand you when you say 'Could you give a more minimal example that reproduces the problem?'. The make file I use is the one that's already there as it came with go sources. I don't want to mess with it.

@toothroot @jayconrod Temporarily I'm avoiding this problem by removing 'unused' flag in Makefile.common. I have replaced the original line in Makefile.common:
common-all: precheck style check_license lint unused build test
with
common-all: precheck style check_license lint build test
so that go mod vendor is not executed.
I did it by putting this line in my Docker file (before calling make):
RUN sed -i 's/precheck style check_license lint unused build test/precheck style check_license lint build test/g' Makefile.common

@jayconrod I've looked into Makefile.common and from what I see I don't think there is more than one instance of go mod vendor running when I start the build. I have to admit I don't quite understand you when you say 'Could you give a more minimal example that reproduces the problem?'. The make file I use is the one that's already there as it came with go sources. I don't want to mess with it.

I'm wondering if there's a way to reproduce this using a few go commands without the Makefile. There's a lot going on in the Makefile, and it's not really an easy language to debug.
From the error message, it sounds like something is writing files in the vendor directory at the same time that go mod vendor runs. go mod vendor starts by calling os.RemoveAll on the vendor directory, and that would fail if it were racing with another process that's adding files. The other process could be another instance of go mod vendor. If this indeed the case, I'm not sure there's much we can do.
I tried this on a couple systems, but I still couldn't reproduce the failure you're seeing. It does however fail with:
>> running all tests
GO111MODULE=on go test -race  -mod=vendor ./...
# runtime/race
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: race_linux_amd64.syso: in function `__sanitizer::GetArgv()':
gotsan.cc:(.text+0x4183): undefined reference to `__libc_stack_end'
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: race_linux_amd64.syso: in function `__sanitizer::ReExec()':
gotsan.cc:(.text+0x9797): undefined reference to `__libc_stack_end'
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: race_linux_amd64.syso: in function `__sanitizer::InternalAlloc(unsigned long, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<__sanitizer::AP32> >*, unsigned long)':
gotsan.cc:(.text+0xaac1): undefined reference to `__libc_malloc'
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: race_linux_amd64.syso: in function `__sanitizer::InternalRealloc(void*, unsigned long, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<__sanitizer::AP32> >*)':
gotsan.cc:(.text+0xca20): undefined reference to `__libc_realloc'
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: race_linux_amd64.syso: in function `__sanitizer::InternalFree(void*, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<__sanitizer::AP32> >*)':
gotsan.cc:(.text+0x66e8): undefined reference to `__libc_free'
collect2: error: ld returned 1 exit status

@jayconrod Thanks for answering. Regarding the race error you mentioned, I've also bumped into it. I have worked around it by removing - race flag frm the Makefile.common file. I know it's not the solution but it enabled me to go on with the build. The 'go mod vendor' problem I avoided by removing the flag unused from the Makefile.common file. Again, not the solution but after that I was able to build blackbox_exporter.

The link error looks like #14481, fixed in 1.14.

Closing since we haven't been able to reproduce this, and there doesn't seem to be a way to move forward.

delete vendor folder then docker-compose exec [container] go mod vendor


CMake build on macos should use Python 3.9...

Modify the github actions in such a way that they actually use the Python 3.9 installation.

@FlorianReimold  I cancelled the branch builds because I only modified the actions. It seems that it is now finding the right Python version. Maybe there was a CMake update which changed the behavior and caused breaking.


Switch all our crates to Rust 2021

There are no changes to the code: cargo fix --edition and cargo fix --edition-idioms did nothing. I guess this is expected because I don't see anything that'd be particularly relevant to us in the edition guide[1].

ttps://doc.rust-lang.org/edition-guide/rust-2021/index.html

coverage: 60.014% (-0.003%) from 60.017%
when pulling d0d271576624313a0844ba75a61f670a0a25c693 on feature/migrate-to-rust-2021
into 3b1fa4362ef4310588ed005295e8c53a6aaa7859 on master.

No idea how I missed it... Thanks for spotting! Fixed via a force-push because I also botched the URL in the commit message.


nvc: 1.6.2 -> 1.7.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/nickg/nvc/releases.
meta.description for nvc is: "VHDL compiler and simulator"
meta.homepage for nvc is: "https://www.nickg.me.uk/nvc/"
meta.changelog for nvc is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.7.0 with grep in /nix/store/m2s4752xfldi2qx1ql45smjnp3p9vr0v-nvc-1.7.0
found 1.7.0 in filename of file in /nix/store/m2s4752xfldi2qx1ql45smjnp3p9vr0v-nvc-1.7.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
nvc

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/m2s4752xfldi2qx1ql45smjnp3p9vr0v-nvc-1.7.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A nvc https://github.com/r-ryantm/nixpkgs/archive/3803658ab75bce78e2b52fdf941bce04124023a8.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/m2s4752xfldi2qx1ql45smjnp3p9vr0v-nvc-1.7.0
ls -la /nix/store/m2s4752xfldi2qx1ql45smjnp3p9vr0v-nvc-1.7.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

nvc

Maintainer pings
cc @wegank for testing.

Let me take a look if the postPatch can me removed.

Closing in favour of #185995.


azcopy copy using any filtering parameters (include-pattern | include-before | include-after) on large number of items extremely slow scanning

Which version of the AzCopy was used?
Note: The version is visible when running AzCopy without any argument
10.16.2
Which platform are you using? (ex: Windows, Mac, Linux)
Linux
What command did you run?
Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
./azcopy copy "https://s3.us-west-2.amazonaws.com/bucketname" "https://storage.blob.core.windows.net/?SAS" --recursive --log-level=DEBUG --check-length=false --overwrite=false --include-before='2022-01-01'
This behavior is also seen when I used --overwrite=ifSourceNewer
What problem was encountered?
Scanning is occurring extremely slow when there are a lot of items in the overall bucket and using a filtering type of parameter to try and do this in parts. The debug log will fill extremely slowly ~1kb of entries on DEBUG per second roughly such as:
2022/12/16 21:59:58 AzcopyVersion  10.16.2
2022/12/16 21:59:58 OS-Environment  linux
2022/12/16 21:59:58 OS-Architecture  amd64
2022/12/16 21:59:58 Log times are in UTC. Local time is 16 Dec 2022 15:59:58
2022/12/16 21:59:58 ---------START-HTTP---------
2022/12/16 21:59:58 GET /?delimiter=&fetch-owner=true&list-type=2&max-keys=1000&prefix= HTTP/1.1
Host: bucket.s3.dualstack.us-west-2.amazonaws.com
User-Agent: Minio (linux; amd64) minio-go/v6.0.14
Authorization: AWS4-HMAC-SHA256 Credential=REDACTED/20221216/us-west-2/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=-REDACTED-
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20221216T215958Z
Accept-Encoding: gzip
2022/12/16 21:59:58 HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Fri, 16 Dec 2022 21:59:59 GMT
Server: AmazonS3
X-Amz-Bucket-Region: us-west-2
X-Amz-Id-2: someid
X-Amz-Request-Id: someid
2022/12/16 21:59:58 ---------END-HTTP---------
and it will not create a log file like usual while it does this very slowly
How can we reproduce the problem in the simplest way?
Have an S3 bucket with 40 million+ files and try to segment a copy using filtering parameters
Have you found a mitigation/solution?
No I will have to run azcopy for a week to do it without filtering on all items at once,. I've tried all the optimization options I can find on the internet and nothing will speed this particular situation up

@ZaoDigital : Providing any sort of filtering criteria does not help AzCopy in terms of listing the files. It will always list all files (40million+) in your case and then apply all the filters on received items as and when they arrive. As total number of files to be listed is huge, backend will take its own time and multiple iterations to go through entire list. Backend does not provide any filtering option which can help us reduce the number of calls and time spent on listing.

when I look at the debug scanning logs, though, it is scanning extremely slow as if it wasn't doing pages sizes of 1000 but rather one at a time

Kindly share logs that report this scanning of one item at a time.

Closing this as there is no update, feel free to reopen once required info is available.


Add support for TTY detection and line-delimited JSON output.

Two small-ish patches which add functionality useful when using Hivemind as a docker container init.
The first adds TTY detection to disable color codes when not writing to a TTY output - making Hivemind compatible with line-based log collection systems or when run as a daemon.
The second extends the first by adding line-delimited JSON output functionality for easy integration with ELK or other systems which can parse JSON or nested JSON.
Due to the lack of a clearly good Golang ascii-escape library, the color coding is implemented in a rather brute-force way.

Sorry for delay and thanks for your contribution.
Unfortunately, I can't merge this PR in its current state. One of the main points of Hivemind is that processes don't think that they're logging their output into a file. If you use hivemind into Docker container, you do log output into a file, but processes still think otherwise. They'll colorize output and will do other beautiful stuff which we don't want to see in our log files.
I totally approve the idea of different log formats but let's do this right. I'd offer to remove the force-tty flag and left only log-format. That's how I see the available formats:

Default. Stdout/Stderr is captured with PTY; processes' names are colorized. This is default format when Hivemind is launched in TTY.
Raw. Stdout/Stderr is captured with os.File; processes' names are not colorized. This is default format when Hivemind is launched not in TTY.
JSON. Stdout/Stderr is piped with os.File; each line is formatted with JSON.

I'd appreciate if you would implement this feature the described way.

Sorry for delay and thanks for your contribution.
Unfortunately, I can't merge this PR in its current state. One of the main points of Hivemind is that processes don't think that they're logging their output into a file. If you use hivemind into Docker container, you do log output into a file, but processes still think otherwise. They'll colorize output and will do other beautiful stuff which we don't want to see in our log files.
I totally approve the idea of different log formats but let's do this right. I'd offer to remove the force-tty flag and left only log-format. That's how I see the available formats:

Default. Stdout/Stderr is captured with PTY; processes' names are colorized. This is default format when Hivemind is launched in TTY.
Raw. Stdout/Stderr is captured with os.File; processes' names are not colorized. This is default format when Hivemind is launched not in TTY.
JSON. Stdout/Stderr is piped with os.File; each line is formatted with JSON.

I'd appreciate if you would implement this feature the described way.

I am actually hitting this issue as well trying to use hivemind in AWS Elastic Beanstalk with logs streamed to Cloudwatch Logs. I need a way to turn off the coloring of the process names, so that the lines are written properly in the files streamed y awslogs.
Was this implemented after all in another PR?
Thanks


Bump airdroid version number to 3.1.4

Thank you for the contribution. It was merged directly as 23ea003e3860be92db48565cbcf20e5c272eac24 to keep commit history cleaner. Your contribution is still credited to you.


update graph processing

update graph processing to natively produce PyG HeteroData objects

this was done a while ago, closing this out


Create "install-completed" file for each game server

To prevent re-running install step

Completed in a1943941ce0e00eb6c07bc84d4b374330bc4827b
Also stops updates being run unless a game is already installed


Added ETA for updating IE Compatibility list

Fixes https://github.com/MicrosoftDocs/edge-developer/issues/1106

Docs Build status updates of commit df233f4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/web-platform/ie-to-microsoft-edge-redirection.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 23c198f:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 8312b27:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/web-platform/ie-to-microsoft-edge-redirection.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 8885367:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/web-platform/ie-to-microsoft-edge-redirection.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Replace the discontinued Riksbank SOAP API with the new REST one

The SOAP API doesn't work since 2024-05-27 (see press release). The replacement REST API is much simpler, but is also rate-limited, so we must query rates for the maximum interval of relevant dates and query the individual days locally instead.
Includes some drive-by fixes.

The press release places discontinuation date in the future, but the API endpoint has been giving me error 503 all day today, so I went and upgraded the script.

Thank you for your continued contributions! 🎉


Python: manylinux

I'm exploring an idea to provide manylinux packages for Python by default
and allowing to extend that set with any other libraries.
This way we avoid LD_LIBRARY_PATH pollution of the developer environment.
An example using mkdocs-material:
{ pkgs, ... }:

{
  languages.python = {
    enable = true;
    version = "3.11.3";
    venv.enable = true;
    venv.requirements = ./requirements.txt;
    manylinux.packages = [ pkgs.cairo ];
  };

  processes.docs.exec = "mkdocs serve";
}

Refs #773 #715 #555

By the way, we can force linking python3 with libstdc++ and other manylinux required libraries to support manylinux ABI out-of-the-box without LD_LIBRARY_PATH
languages.python.package =
  pkgs.python3.override (old: {
    self = old.self.overrideAttrs
      (self: super: {
        env = super.env // {
          # Link libstdc++ to python interpreter so that packages in manylinux ABI can find it out-of-the-box without LD_LIBRARY_PATH
          # TODO: Add more libraries here when encountering an ImportError
          NIX_LDFLAGS = "--no-as-needed -lstdc++ --as-needed ${super.env.NIX_LDFLAGS}";

        };
      });
  });

By the way, a Python package requiring cairo cannot be called manylinux* platform.

To be eligible for the manylinux1 platform tag, a Python wheel must therefore both (a) contain binary executables and compiled code that links only to libraries with SONAMEs included in the following list:

https://peps.python.org/pep-0513/#:~:text=compatible kernel ABI.-,To be eligible for the manylinux1 platform tag%2C a Python wheel must therefore both (a) contain binary executables and compiled code that links only to libraries with SONAMEs included in the following list%3A,-libpanelw.so

By the way, we can force linking python3 with libstdc++ and other manylinux required libraries to support manylinux ABI out-of-the-box without LD_LIBRARY_PATH
languages.python.package =
  pkgs.python3.override (old: {
    self = old.self.overrideAttrs
      (self: super: {
        env = super.env // {
          # Link libstdc++ to python interpreter so that packages in manylinux ABI can find it out-of-the-box without LD_LIBRARY_PATH
          # TODO: Add more libraries here when encountering an ImportError
          NIX_LDFLAGS = "--no-as-needed -lstdc++ --as-needed ${super.env.NIX_LDFLAGS}";

        };
      });
  });

We could, however that means anyone using Python would be forced to recompile (or set up our cache).
I'd like to avoid that, but so far it doesn't seem to be possible without a lot of pain.

How about this?
languages.python.package =
  pkgs.python3.override (old: {

    self = callPackage "${nixpkgs}/pkgs/development/interpreters/python/wrapper.nix" {
      python = old.self;
      makeWrapperArgs = [
        "--set"
        "LD_LIBRARY_PATH"
        "${pkgs.stdenv.cc.cc.lib}/lib"
      ];
    };
  });

Ideally, we will need a way to set a environment variable to specify the fallback library path instead of LD_LIBRARY_PATH. Unfortunately the ELF interpreter in glibc does not support such a environment variable.
https://github.com/NixOS/nix/issues/902

How about this?
languages.python.package =
  pkgs.python3.override (old: {
    self = callPackage "${nixpkgs}/pkgs/development/interpreters/python/wrapper.nix" {
      python = old.self;
      makeWrapperArgs = [
        "--set"
        "LD_LIBRARY_PATH"
        "${pkgs.stdenv.cc.cc.lib}/lib"
      ];
    };
  });

Thanks for this! I've implemented it on the #745 branch. I'm still not able to get libstd++ to load, but it's good progress!

I didn't test makeWrapperArgs, so it might not work. I did test the --no-as-needed flag, which works.

It works if I just use pkgs.stdenv.cc.cc.lib, but not if I point it to the .devenv/profile/lib :thinking:

I recently tried using autopatchelf. It is very slow atm, but it does seem to work:
enterShell = ''
    python_package_libs=($VIRTUAL_ENV/${config.languages.python.package.sitePackages}/*.libs)
    libs=${lib.makeLibraryPath [ pkgs.glibc pkgs.glib pkgs.alsa-lib pkgs.gcc-unwrapped.lib pkgs.libuuid pkgs.openssl_1_1 pkgs.libz pkgs.gcc pkgs.gst_all_1.gstreamer ]}:$(IFS=:; echo "''${python_package_libs[*]}") autopatchelf $VIRTUAL_ENV
'';

This will patch all .so files in the virtualenv. It'll lookup the libraries needed for the .so in the libs envvar and patch the relative paths in the elf to use the absolute ones (/nix/store/*).
autopatchelf will error when it cannot resolve a library from its libs variable, so with this method it would make you aware of the missing libraries and forces you to add them.
python_package_libs is currently also needed, because there are python packages that ship with libraries that should be linked to as well. I ran into cases like libgomp-a34b3233.so.1.0.0, which is apparently a very specific version of libgomp that one of the python packages was shipping. I think these shouldn't really be needed, but autopatchelf currently also errors on these libraries, where-as the python application can already find these libraries without patching.
Currently I haven't looked into caching the results, so it will try to patch all binaries in the virtualenv each time I enter the shell. This takes minutes. I think caching would help, but then still each change of the poetry.lock or the libs would require those minutes. autopatchelf is currently a bash script, which is partly why it is slow I think (it checks every file whether it is an ELF using file $path).
That said, this might be a good concession between using LD_LIBRARY_PATH and rebuilding native dependencies.

@Atry I like the idea of using NIX_LDFLAGS. Perhaps it doesn't fit with devenv but I feel like it's a good solution if you're a Nix user and willing to manage your own devshell.
Unfortunately it doesn't work with jedi though and I think that would be the same for any custom build of the python interpreter. It raises the following error:
jedi.api.environment.InvalidPythonEnvironment: The python binary is potentially unsafe.

Do you have any suggestions for a workaround? i.e. how to mark the binary in Nix as safe?

This shipped in https://devenv.sh/blog/2023/03/20/devenv-10-rewrite-in-rust/


[FEATURE-REQUEST] Whitelist/Blacklist BLU-Devices

Hi,
I would like to whitelist or blacklist BLU devices in the plugin configuration. Maybe I am doing it wrong but it seems to be not supported.
I know I can add/remove them from the gateway devices but maybe someone has still reasons to keep the configuration there as it is.

The idea is that you can exclude all BLU devices with the config.
Then if you add them is cause you want to see them.
But I understand that in real it would be better to validate also BLUs against white and black list (it was already on the TODO list).
Will do it.

I need your feedback on this:
The whitelist doesn't really work for BLUs cause if you put for example only a BLU in the whitelist, it will never be added since the BLUs require their gateway to be added too.
The blacklist is working correctly.
What do you think ?
Add a check against both whitelist and blacklist or only against the blacklist?

Imagine you have a lot of BLU devices and you have a reason to add them all to the gateway devices independently from matterbridge. But you only want a few of them to be exposed as matter devices. Than it is easier for the user to whitelist just the few instead of blacklist almost all.
It also can be confusing, if one can only blacklist but not whitelist the devices. If you start on fresh ground people might first want to whitelist to try single devices.
Currently I anyway see only rare use cases. Personally I do not need that feature (even not the blacklist of BLU devices). So I would not give it a very high priority for now unless someone else asks for this feature. But it might blocks "power users" to use matterbridge and those are the ones that can add more feedback and progress to the project.

Ok then I will add the normal white black list and put a note in the readme that whitelisting a BLU works only when also his gateway is white listed.

Is this in 1.0.11? Do not find any info in Changelog/Readme and still seems not to work?

[1.1.0] - 2024-12-09
Added

[shelly]: Add shellyIdentifyCommandHandler
[shelly]: Refactor shellySwitchCommandHandler
[shelly]: Refactor shellyLightCommandHandler
[BLU]: Add validate against white and black list for BLU devices. If you put a shelly BLU in the white list, you need to put also his BLU gateway on the white list.
[BLU]: Add global and single device component black list. You can now exclude a shelly component globally or on a device base.

Changed

[colorControl]: Refactor configuration of the cluster.
[package]: Updated dependencies.

You need the dev cause we are testing it

Works for me, but it was somewhat confusing that you have to black/whitelist the name you give it in the gateway. Expected something with MAC address here. Maybe that should be described better in the README or config. Wonder what happens if you name this devices different in two gateways?! Would you need to blacklist/whitelist then both names? If we work with names here, it is maybe also good to work with "names" for the NON-BLU-devices?! Maybe its best to allow always both (name and mac). The MAC combined with some type of the shelly was also confusing in the beginning for me. Most users won't manage to use this feature, since they have additionally to find out, whats the device name to use here.
@Luligu seems to me as this is worth another discussion first. Drop me a note, if I better should start a discussion.

Hi,
that is once again a great idea. Thanks!
I refactored the validation code to support an array instead of a string:
We can validate how the user prefers: Device name or shelly id or blu mac. I will pass both to the validate function.
I will suggest in the readme to always use shelly id and mac for blu cause is unique for each device.


workloadMemoryMaximum should not override ComputeClass max memory setting.

acorn version v0.6.0-rc1-6-gb57d7f88+b57d7f88
Steps to reproduce the problem:

Set  workloadMemoryDefault: 5Mi and  workloadMemoryMaximum: 10Mi
Have a default projectcomputeclass  created as follows:

~/computeclass# acorn offerings computeclass
NAME      DEFAULT   MEMORY RANGE     MEMORY DEFAULT   DESCRIPTION
pc3       *         20Mi,30Mi,40Mi   30Mi             Large compute for linux on arm64

Deploying app in this project with this computeclass fails

acorn run -n mytestmem1
  ✗  ERROR:  App.api.acorn.io "mytestmem1" is invalid: config.workloadMemoryDefault: Invalid value: "30Mi": invalid memory default: workload-memory-default set to 30Mi but exceeds the workload-memory-maximum of 10Mi

or
acorn run  --memory 40Mi -n mytestmem
ERROR:  App.api.acorn.io "mytestmem" is invalid: [spec.memory.web1: Invalid value: "40Mi": invalid memory set by user: workload "web1" with memory of 40Mi exceeds the workload-memory-maximum of 10Mi, spec.memory.web2: Invalid value: "40Mi": invalid memory set by user: workload "web2" with memory of 40Mi exceeds the workload-memory-maximum of 10Mi, spec.memory.web3: Invalid value: "40Mi": invalid memory set by user: workload "web3" with memory of 40Mi exceeds the workload-memory-maximum of 10Mi]

Expected Behavior:
workload-memory-maximum and workload-memory-default  should get used only when there is no computeclass set and when there is no default computeclass to fallback to .

Here is the behavior I expect:

workload-memory-default should be overridden by the more specific default set in the compute class.
workload-memory-maximum should still apply. It is like a global cap that nothing is allowed to go over. So, the current behavior is ok, but an improvement would be that at the time of creating the ComputeClass, its max is validated against workload-memory-maximum and rejected if it exceeds.


LIBUSB_ERROR_ACCESS[-3] while connecting usb device

Hi,
I'm doing this first time (posting an issue on github), so please don't throw tantrums at me..
I am trying to connect webcam through xfreerdp.
xfreerdp /usb:auto
But i get this Error (from title) everytime.
Output from xfreerdp:
[21:42:00:421] [40481:40520] [DEBUG][com.freerdp.channels.urbdrc.client] - Hotplug add device VID=0x0C45,PID=0x6366 class UNKNOWN_DEVICE_CLASS [21:42:00:421] [40481:40520] [DEBUG][com.freerdp.channels.urbdrc.client] - bus:1 dev:18 [21:42:00:421] [40481:40520] [DEBUG][com.freerdp.channels.urbdrc.client] -   Port: 4 [21:42:00:421] [40481:40520] [DEBUG][com.freerdp.channels.urbdrc.client] -   DevPath: 1-4 [21:42:00:421] [40481:40520] [DEBUG][com.freerdp.channels.urbdrc.client] -   Open hub: 1 [21:42:00:421] [40481:40520] [ERROR][com.freerdp.channels.urbdrc.client] - libusb_open: error LIBUSB_ERROR_ACCESS[-3] [21:42:00:422] [40481:40520] [DEBUG][com.freerdp.channels.urbdrc.client] - Registered Device: Vid: 0x0C45 Pid: 0x6366 InterfaceClass = LIBUSB_CLASS_VIDEO
I tried to modify the permissions with udev:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0c45", ATTRS{idProduct}=="6366", SYMLINK+="webcam", GROUP="wheel", MODE="0666"
and the rule is executed successfully.
But this doesn't change anything :/
What else can I try to solve this issue?

@ultraSsak, please try to follow the below steps:

Run the following command:
$ sudo chmod -R 777 /dev/bus/usb/
Create the ’xx-local.rules’ file in /etc/udev/rules.d folder:
$ sudo gvim /etc/udev/rules.d/100-local.rules
Add the following content:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0c45",   ATTRS{idProduct}=="6366", OWNER="ubuntu",   GROUP="plugdev", TAG+="uaccess"
where "ubuntu" is your username.
Add your user to the plugdev group (replace with your username):
$ sudo adduser your_username plugdev
Restart the udev rules:
$ sudo udevadm control --reload-rules
Unplug and plug the usb device.

Please see the following URL for detailed information:
https://askubuntu.com/questions/978552/how-do-i-make-libusb-work-as-non-root

@ultraSsak what @myjimmy posted is mostly the way to go, just skip the chmod stuff, the udev rule is sufficient. OWNER in the rule can stay root (you only need read/write access for the group)

I have the rule already
After inspecting the issue it came to my attention that this thing cannot open the hub
Open hub: 1 [21:42:00:421] [40481:40520] [ERROR], not actual camera device.
tried @myjimmy 's solution to chmod 777, it worked! No more permission issue.
now i only have to know why :+1:
Big thanks guys

I had this issue trying to use Code Composer Studio on Ubuntu. LIBUSB_ERROR_ACCESS - turns out i just need to run sudo chmod -R 777 /dev/bus/usb/ to grant permissions for non root users to access usb ports. thanks @myjimmy !


Out of date docs

I believe this documentation is out of date.
In the example for ASP.NET Core, C# code example. The method signature for Configuration.GetConnectionString() has changed it no longer has a single (string) argument but now takes in an IConfiguration parameter and a string name parameter

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: de9db02d-7310-1141-6aeb-539c02326a36
Version Independent ID: 90062036-aa01-3f73-dac9-b4a092245721
Content: Connection Strings - EF Core
Content Source: entity-framework/core/miscellaneous/connection-strings.md
Product: entity-framework
Technology: entity-framework-core
GitHub Login: @rowanmiller
Microsoft Alias: avickers

@Ju66ernaut GetConnectionString is an extension method.


Correct TLS support for Opera

Opera does not yet support TLS1.3 by default.
41.0.2323.0 possible with command line switch https://forums.opera.com/topic/16519/new-opera-developer-41/13
54.0.2920.0 has added a flag: https://blogs.opera.com/desktop/changelog-for-54/

Thanks!


Chat widget - add support for images and emoticons

The existing chat package only supports text messages. This is an enhancement to make the widget support images and emoticons.

This is done. Needs publishing.

@sarika01 is this the one we need to tag Gafei on?

Latest version (3.0.1) published on pub.dev reflect the changes.


Avian Speed Buff Negated

Because of the slow falling effect, sprint jumping is slower then actually running. A feature that I would like to see is crouching in mid air will trigger the effect instead of always being enabled. That fixes the issue and allows for the class to have more control over it's effects as lack of meat in early game is devastating. Avian right now is a lesser Elytrian. Every other class has some base control over it's effects.

This has been improved in Origins 1.1.0, where Avians received a "Like Air" power, making their speed modifiers also apply while in air.


types conflict when using generic modules with same parameter name

https://carc.in/#/r/1skn
module Foo(T)
  @x = T.new
end

module Bar(T)
  @y = T.new
end

class A
  include Foo(Int32)
  include Bar(String)
end

causes error message:
Error in line 2: instance variable '@x' of A must be Int32, not String
this don't reproduce when using methods def foo : T or even @x : T, only with = T.new

That's expected behaviour. What would you expect the compiler to do? Or put another way, what use case does this prevent?

@asterite I can't spot the error in this. There's 2 different instance variables coming from 2 different modules with generic types, and somehow there's a type error?

@asterite I want to include one module that declare property x and another module that declare property y, so the class will have @x : Int32 and @y : String.

@konovod Oh! I though they had the same name @x. I see the error now, hmm...

@konovod - good catch! This is not something I would have ever thought of using (so far) and still it's so straight forward!
And I guess there's a reason for foo, bar, ... X-D

@ozra right now i'm using macros instead of modules for this, so it's not critical, but modules will make code slightly cleaner and typesafer.


clippy: Add type annotations to transmute calls

As requested. The lint is currently only in nightly clippy.

Thanks! Do you plan to, ahem, fix the same issue in esp-idf-hal? :)

Thanks! Do you plan to, ahem, fix the same issue in esp-idf-hal? :)

https://github.com/esp-rs/esp-idf-hal/pull/406


Allows client to specify time ranges in activity report. Defaults to …

…previous behavior.
This pull request adds the ability to supply different relative cutoff times (in sec) for the daily activity report. The use case for this feature comes from a client which would consider incomplete nodes 3 or more hours old to be inconsistent, and the hardcoded 12 hours was not providing an accurate view of the system. When no options are supplied the report uses the times previously hardcoded.

@nchainani

I say shipit


[KOGITO-3759] Implement plugable transaction management for MongoDB persistence

Implement plugable transaction management for MongoDB to support outbox pattern.
Jira: https://issues.redhat.com/browse/KOGITO-3759
Many thanks for submitting your Pull Request :heart:!
Please make sure that your PR meets the following requirements:

[x] You have read the contributors guide
[x] Pull Request title is properly formatted: KOGITO-XYZ Subject
[x] Pull Request title contains the target branch if not targeting master: [0.9.x] KOGITO-XYZ Subject
[x] Pull Request contains link to the JIRA issue
[x] Pull Request contains link to any dependent or related Pull Request
[x] Pull Request contains description of the issue
[x] Pull Request does not include fixes for issues other than the main ticket

@xieshenzh great work, I have some questions and suggestions, it seems the changes introduced by the PR is much more complex than it could be, from my understanding the UnitOfWork represents a Transaction and UnitOfWorkExecutor represents the TransactionManager, so in theory, everything that should be executed in a transaction is already set in the code, it is just necessary to add the abstraction you created like the TransactionHandler (with start, commit, abort) into the UnitOfWorkExecutor, an call the proper methods from there... something like this... I don't see the need to change the whole codebase where we have the ProcessInstances because transaction should not coupled with them, we could reuse the UnitOfWork stuff that we already have, WDYT?
@danielezonca @cristianonicolai @evacchi ^

I still have to review but I agree we should be able to wrap the whole transaction logic inside the unitOfWork 👍

@xieshenzh great work, I have some questions and suggestions, it seems the changes introduced by the PR is much more complex than it could be, from my understanding the UnitOfWork represents a Transaction and UnitOfWorkExecutor represents the TransactionManager, so in theory, everything that should be executed in a transaction is already set in the code, it is just necessary to add the abstraction you created like the TransactionHandler (with start, commit, abort) into the UnitOfWorkExecutor, an call the proper methods from there... something like this... I don't see the need to change the whole codebase where we have the ProcessInstances because transaction should not coupled with them, we could reuse the UnitOfWork stuff that we already have, WDYT?
@danielezonca @cristianonicolai @evacchi ^

I still have to review but I agree we should be able to wrap the whole transaction logic inside the unitOfWork 👍

@tiagodolphine @danielezonca , I have changed the implementation. Please take a look. Thanks.

@tiagodolphine @danielezonca , I have changed the implementation. Please take a look. Thanks.

Jenkins retest please

Jenkins retest please

Jenkins retest this

Jenkins retest this

@xieshenzh @tiagodolphine another idea, maybe instead of changing the unit of work directly, what if it simply throws events, lets say ( uow started, completed, aborted ) ? That way the addon would be self contained to handled it and start/commit/rollback as needed, wdyt?

@cristianonicolai a ClientSession must be created before executing the unit of work, because it must be passed to all the MongoDB operations in order for the transaction to work. And only from UnitOfWork, we can know when to create or close the ClientSession.
Do you mean we should modify the UnitOfWork in a different way, and let it send events to transaction manager to start/commit/abort transaction, instead of injecting a transaction manager to the UnitOfWork directly?
Please advise. Thanks.

Jenkins retest this

@xieshenzh @tiagodolphine another idea, maybe instead of changing the unit of work directly, what if it simply throws events, lets say ( uow started, completed, aborted ) ? That way the addon would be self contained to handled it and start/commit/rollback as needed, wdyt?

@cristianonicolai a ClientSession must be created before executing the unit of work, because it must be passed to all the MongoDB operations in order for the transaction to work. And only from UnitOfWork, we can know when to create or close the ClientSession.
Do you mean we should modify the UnitOfWork in a different way, and let it send events to transaction manager to start/commit/abort transaction, instead of injecting a transaction manager to the UnitOfWork directly?
Please advise. Thanks.

@xieshenzh yep, so if the unitofwork sends out events such as before start. after start, then I think you can handle the creation of client session in the addon itself.
@tiagodolphine wdyt about this approach, so sending out events from unit of work instead of directly modifying it, I think this can allow us to plug different mechanisms moving forward, a little more flexible.

@xieshenzh yep, so if the unitofwork sends out events such as before start. after start, then I think you can handle the creation of client session in the addon itself.

@cristianonicolai The event mechanism for springboot is very different from quarkus. So we need to create two sets of event publishers and consumers and inject them to UnitOfWork. It would be very complicated to create them with code-generation and it is hard to maintain. So I need to create different modules for quarkus event and springboot event. Or should I use some third party event solution instead, and inject that to UnitOfWork?

@xieshenzh yep, so if the unitofwork sends out events such as before start. after start, then I think you can handle the creation of client session in the addon itself.

@cristianonicolai The event mechanism for springboot is very different from quarkus. So we need to create two sets of event publishers and consumers and inject them to UnitOfWork. It would be very complicated to create them with code-generation and it is hard to maintain. So I need to create different modules for quarkus event and springboot event. Or should I use some third party event solution instead, and inject that to UnitOfWork?

@xieshenzh agree eventing is probably not the best solution, is not uniform with the way we handle this elsewhere in the platform. But I still think it's worth disconnecting these concepts. Maybe what could be done is a UnitOfWork listener interface that we could inject based on runtime instead? Similar to process instance event listeners. @tiagodolphine wdyt?

The Linux check has failed. Please check the logs.

The Linux check has failed. Please check the logs.

@xieshenzh agree eventing is probably not the best solution, is not uniform with the way we handle this elsewhere in the platform. But I still think it's worth disconnecting these concepts. Maybe what could be done is a UnitOfWork listener interface that we could inject based on runtime instead? Similar to process instance event listeners. @tiagodolphine wdyt?

@cristianonicolai I have updated this PR to make UnitOfWork send events. Hope it will be helpful with your investigation on eventing.

The Linux check has failed. Please check the logs.

The Linux check has failed. Please check the logs.

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check is successful.

@cristianonicolai I have rebased the PR to use UnitOfWork event listeners.

The Linux check is successful.

@danielezonca @tiagodolphine @MarianMacik if you guys could take a quick look again, thanks.

@xieshenzh needs rebase.
@MarianMacik can you take a look?

The Linux check has failed. Please check the logs.

The Linux check has failed. Please check the logs.

The Linux check has failed. Please check the logs.

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check has failed. Please check the logs.

The Linux check has failed. Please check the logs.

jenkins please retest this

The Linux check has failed. Please check the logs.

jenkins please retest this

The Linux check has failed. Please check the logs.

jenkins please retest this

The Linux check has failed. Please check the logs.

@xieshenzh needs rebase

The Linux check is successful.

The Linux check is successful.

@xieshenzh sorry another conflict now :/

The Linux check has failed. Please check the logs.

jenkins please retest this

The Linux check is successful.

The Linux check is successful.

The Linux check has failed. Please check the logs.

Jenkins retest this

The (build) Optaplanner check is successful.

The (build) Apps check has failed. Please check the logs.

The (build) Examples check is successful.

Jenkins rerun apps tests

The (build) Apps check is successful.

The Linux check has failed. Please check the logs.