//tests:stamp_test inputs become stale too quickly

I often test all of rules_pkg using something like bazelisk test //....
When I leave my desk for the day and come back the following day, I sometimes see //tests:stamp_test mysteriously fail after making some changes.  This is due to the timestamps no longer being valid:
Traceback (most recent call last):
  File "/private/var/tmp/_bazel_apsaltis/67ca5e5a723760c2131afe9d288ecae5/sandbox/darwin-sandbox/9/execroot/rules_pkg/bazel-out/darwin-fastbuild/bin/tests/stamp_test.runfiles/rules_pkg/tests/stamp_test.py", line 104, in test_not_epoch_times_tar
    self.assertTarFilesAreAlmostNew('stamped_tar.tar')
  File "/private/var/tmp/_bazel_apsaltis/67ca5e5a723760c2131afe9d288ecae5/sandbox/darwin-sandbox/9/execroot/rules_pkg/bazel-out/darwin-fastbuild/bin/tests/stamp_test.runfiles/rules_pkg/tests/stamp_test.py", line 82, in assertTarFilesAreAlmostNew
    self.check_mtime(info.mtime, file_path, info.name)
  File "/private/var/tmp/_bazel_apsaltis/67ca5e5a723760c2131afe9d288ecae5/sandbox/darwin-sandbox/9/execroot/rules_pkg/bazel-out/darwin-fastbuild/bin/tests/stamp_test.runfiles/rules_pkg/tests/stamp_test.py", line 63, in check_mtime
    self.fail(
AssertionError: Archive /private/var/tmp/_bazel_apsaltis/67ca5e5a723760c2131afe9d288ecae5/sandbox/darwin-sandbox/9/execroot/rules_pkg/bazel-out/darwin-fastbuild/bin/tests/stamp_test.runfiles/rules_pkg/tests/stamped_tar.tar contains file . with mtime:1639538959, expected:1639586337 +/- 10000

It would be nice if the relevant artifacts could be rebuilt when they have expired in the cache.  I don't know how implement this, though.
This problem is never seen in CI, since it builds everything from scratch all the time.

Yes. I see the same. We could up the window to make it happen every 2 or 3 days.
I made my peace with doing a bazel --clean every so often. Even over multiple years, I think that will cost me far less time than trying to solve the problem.

Hm.  That's fine, all things considered.  Some options:

Fix this with documentation.  The test failure output could be modified to say something about rerunning this test after removing the output.
Change the input to whatever timestamp the --stamp flag chooses to be something consistent and knowable in advance.
Dump the timestamp to a file somewhere and have the test read it to confirm the time.

Regardless, this is more of an annoyance than anything else.

I don't want to use a constant, because then I loose the check that I am actually getting the build time. This kind of integration tests against the real world, rather than a fixed one, does not play well into bazel's view of reproducibility.  I addressed the rest in #497

A possible way to address this would be to create a sh_test rule that has your distributed .bzl files as deps then sets up a WORKSPACE that loads them and invokes bazel build on the output. That would make the generation and validation steps invalidate in the same way at the same time. This is effectively what rules_go does with our integration tests which work... reasonably well.
There is also https://github.com/bazelbuild/bazel-integration-testing, which has a python launcher for achieving this. That repo is, unfortunately, long dormant and I handed over my OWNERS on it, but I know there has been some renewed interest from the SIG that's being spun up around rules since this is a recurring problem.

That would work too.  I've been trying to keep as much in unit tests as
possible, but this is really an integration test that I have tried to
squeeze into the unit test mindset.
We already have a few tests that create their own WORKSPACE and run bazel
from within. It might be worthwhile to factor out the commonality so they
are easier to set up.
On Fri, Dec 24, 2021 at 2:02 PM Andrew Z Allen @.***>
wrote:

A possible way to address this would be to create a sh_test rule that has
your distributed .bzl files as deps then sets up a WORKSPACE that loads
them and invokes bazel build on the output. That would make the
generation and validation steps invalidate in the same way at the same
time. This is effectively what rules_go does with our integration tests
https://github.com/bazelbuild/rules_go/tree/master/tests/integration
which work... reasonably well.
There is also https://github.com/bazelbuild/bazel-integration-testing,
which has a python launcher for achieving this. That repo is,
unfortunately, long dormant and I handed over my OWNERS on it, but I know
there has been some renewed interest from the SIG that's being spun up
around rules since this is a recurring problem.
—
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/rules_pkg/issues/489#issuecomment-1000917383,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXHHHC3OW52PJA5AT7P6TLUSS7UVANCNFSM5KED7NKA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID:
@.***>


add before field to mongoDb connector + put patch field in MongoCore …

Hi @gunnarmorling ,
For a need in our project, it will be usefull to have the payload of the deleted object in the move action of MongoDb.
The object contain references to do other action and the ID of the object is not enough.
I send the pull request to add a before payload when there is a remove action.
So for MongoDb connector we will have:
Create action -> after field with the content
Update action -> patch field with the content
Delete action -> before field with the action
Thanks

@benjaminqc, could you elaborate a bit why the "before" field should be there? It'd always be null, so I'm failing to see what the value in this would be. Thanks!

Hey @benjaminqc, getting back to this (sorry for the delay, I was travelling for the last two weeks). I understand your desire for getting the entire document when a DELETE happens. I'm wondering though whether this isn't prone to race conditions: if another document with the same id is inserted right after the old one has been deleted, couldn't the find call return the new document in case of unfortunate timing?
In any case, it's something which a consumer could do, too, based on the id that's already contained in the events. So I think I'd rather not add this behavior to the connector itself.

@gunnarmorling thanks for your response; I hope your travel was nice !
I think that the race problem can not happen, first because the mongo _id key is a complexe key with "a lot" of combinaison, it's almost impossible to have 2 same key generated (if it was full random), and according to mongo documentation, the first part of the key is
"a 4-byte value representing the seconds since the Unix epoch" so the beginning of the key will never be the same than a previous key and so the Mongo key is uniq
But you are right, the request can be done by the consumer. We can let the consumer do this part (if needed) and not change the connector behaviour.
I just wonder if nobody else had the same problem. With the actual behaviour, for the deleted event in MongoDb, you can just ignore the event (because there is no informations)
It can be a very usefull change for people who want to get the data of the element (it can also be an option)
But no problem if you think that it's better to not alter the actual comportment of the connector
Ben

Hi @gunnarmorling
here is my use case
I have 2 microservices A and B, connected with 2 différents databases DB-A and DB-B.
In each one you have data linked to the same Customer-Id field.
When I received a delete event from a collection in the database A (the collection contain the customerId) I want to listen the change in the microservice B and deleteelements in the DB-B corresponding of the customerId received in the delete event.. but here I just have the mongo key, which is a reference of an element delete in the DB-A, so I don't really know what is the deleted element because I don't have the content.

Ok, thanks, makes sense. Thinking a bit more about it, this reminded me of an earlier idea to take advantage of MongoDB change streams as available as of 3.6 and later.
There's an option in that API (FullDocument) which I think is similar to what you want, coming with the same implications (potential data race in case of concurrent/multiple subsequent updates). Perhaps we should take a step back and eventually look into using these change streams. WDYT?

So I'm going to close this PR as per the discussion above. Let's continue it on DBZ-435. It seems that the replication stream feature would give us the reselect "for free", so I'd suggest to pursue this path (not totally sure yet on deletes, though). Thanks for your efforts in any case!

I understand that this is closed but I also have the same concerns.  Basically with delete, I don't know what reference it's deleting so it would be great to have a "before" field.


[FLINK-6228][table] Integrating the OVER windows in the Table API (st…

In this PR I had integrating the OVER windows in the Table API, Implementation of the syntax and use examples are as follows：

Syntax:

table
   .overWindows(
    (Rows|Range [ partitionBy value_expression , ... [ n ]] [ orderBy order_by_expression]
      (preceding  UNBOUNDED|value_specification.(rows|milli|second|minute|hour|day|month|year)|CURRENTROW)
     [following UNBOUNDED|value_specification.(rows|milli|second|minute|hour|day|month|year)|CURRENTROW]
    as alias,...[n])
   )
  .select( [col1,...[n]], (agg(col1) OVER overWindowAlias, … [n])

examples:

// Rows clause
table
   .window(Over partitionBy 'c orderBy 'rowTime  preceding 2.rows as 'w1)
   .select(
     'c,
     'b.count over 'w1 as 'countB,
     'e.sum over 'w1 as 'sumE)

// Range clause
table
   .window(Over partitionBy 'c orderBy 'rowTime preceding 2.milli as 'w1)
   .select(
     'c,
     'b.count over 'w1 as 'countB,
     'e.sum over 'w1 as 'sumE)

More detail Info : https://docs.google.com/document/d/13Z-Ovx3jwtmzkSweJyGkMy751BouhuJ29Y1CTNZt2DI/edit#

NOTE: The documentation of the OVER tableAPI not included in this PR.

[x] General

The pull request references the related JIRA issue ("[FLINK-6228][table] Integrating the OVER windows in the Table API")
The pull request addresses only one issue
Each commit in the PR has a meaningful commit message (including the JIRA id)

[ ] Documentation

Documentation has been added for new functionality
Old documentation affected by the pull request has been updated
JavaDoc for public methods has been added

[x] Tests & Build

Functionality added by the pull request is covered by tests
mvn clean verify has been executed successfully locally or a Travis build has passed

@fhueske Thanks a lot for your comments and suggestions. And I like the idea of move all validations into validateInput method. I have updated the PR with following changes:
1.Check that orderBy field is correctly validated (only rowtime, proctime)
2.Check that partitionBy fields are correctly validated (existing fields in the input, no complex expressions)
3.Check that preceding and following are of same type
4.Check that preceding and following are literals
5.Check that preceding value is > 0
6.Check that following value is >= -1
7.Move all validations into validateInput method.
BTW. In this PR we only add batch check in the table.scala#window(overWindows: OverWindow*) method.
Thanks,
SunJincheng

Hi @sunjincheng121,
thanks for the update! I was working on some refactoring of this PR as well to get the validation logic clean, but I think your approach is much nicer.
I'll will rebase my changes on top of yours and will open a PR against your PR branch soon.
Cheers, Fabian

Hi @fhueske, Thanks for everything you did. I have merged the changes, and I have moved validations of partitionBy into validateInput method and added two tests about partitionBy:

TestPartitionByWithUnresolved
TestPartitionByWithNotKeyType

Thanks,
SunJincheng

Thanks for the update @sunjincheng121!
Will merge this PR.


Keyboard shortcuts

The prototype utilizes a set of keyboard shortcuts to improve the efficiency of editing. We should implement shortcuts for the district drawing operations.
Shortcuts:

Any action that does not result in a visible change on the screen should be signaled with a toast message.

Hold space to pan map functionality is covered in #429, so doesn't need to be implemented here.

@jfrankl @tgilcrest As I'm working through this, one additional idea that came into my head as a nice-to-have functionality:

Key
Action

P
Toggle evaluate mode

Oh, that's an interesting idea. Would we need to add shortcuts to controls in evaluate mode though?
One separate thing I realized looking back at this list: Windows users are likely not going to know what ⌘ means. Can we make it specific to the OS, so it says CTRL when users are on Windows?

@kevinearldenny great idea to handle toggle evaluate mode. Here are two options, depending on whether you to only have a toggle for evaluate mode or if you want to allow people quick access to each of the topics.

Use T to toggle evaluate mode. The reason I would prefer to use T over P is that I'm trying to keep the shortcuts largely on the left hand (QWERTY).
If we want to have shortcuts for the specific pages on Evaluate, we could do 1 Evaluate Mode: Main Page, 2 Equal population, 3 Contiguity, ... 7 County splits, 0 Edit Mode. If we do this, we should remap "Toggle population labels" to T

One separate thing I realized looking back at this list: Windows users are likely not going to know what ⌘ means. Can we make it specific to the OS, so it says CTRL when users are on Windows?

Yes, this would be great to do. Another option would be to not require ⌘ or CTRL ... just Z or Shift+Z. That would simplify the shortcut. Ideally, holding ⌘ or CTRL wouldn't prevent the shortcut from triggering—it just wouldn't be required.


Mitigating Risk from Internet-Exposed Management Interfaces -<PHONE_NUMBER>1

Threat actor trends over recent months have renewed the importance of securing internet-exposed management interfaces to better protect organisations networks.

Closing this as on unrelated history, @JT-WA  please delete/recreate working branch


How to call HTTP get request from dapr

Hi, I want to call HTTP get request from .net core console application and if request will get fail then it should retry it.I did not find any example regarding this.Please help me.

@pankajarav For service invocation, the example is shown here https://github.com/dapr/dotnet-sdk/blob/master/samples/Client/DaprClient/Program.cs#L111
Retries would be custom to your app logic, handle the exception and retry from it.

Please fell free to reopen if you have further questions.


Remove deprecated transitive Node dependencies

Description of the bug
Hilla has transitive Node dependencies that are deprecated. These should be removed
Minimal reproducible example
Running "npm ci" yields
npm WARN deprecated<EMAIL_ADDRESS>This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated<EMAIL_ADDRESS>Please use @jridgewell/sourcemap-codec instead
Both of these come from automatically added dependecies
workbox-*: 6.5.4 (7.0.0. has the same transitive dep)
transform-ast: 2.4.4 (is latest)
Expected behavior
No deprecated dependencies are used
Actual behavior
See above
Versions:
- Vaadin / Hilla version: 1.3.15
- Node version: 18.15.0

Are there any plans to resolve this? Is this resolved in any more up to date version of Hilla?
Update:
Hilla 1.3.32
Node 20.11.1
npm WARN deprecated<EMAIL_ADDRESS>Rimraf versions prior to v4 are no longer supported
npm WARN deprecated<EMAIL_ADDRESS>Rimraf versions prior to v4 are no longer supported
npm WARN deprecated<EMAIL_ADDRESS>This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated<EMAIL_ADDRESS>Please use @jridgewell/sourcemap-codec instead


python312Packages.types-awscrt: 0.23.1 -> 0.23.3

Changelog: https://github.com/youtype/types-awscrt/releases/tag/0.23.3

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 361773

x86_64-linux

:white_check_mark: 18 packages built:

aws-sam-cli
aws-sam-cli.dist
python311Packages.boto3-stubs
python311Packages.boto3-stubs.dist
python311Packages.botocore-stubs
python311Packages.botocore-stubs.dist
python311Packages.types-aiobotocore
python311Packages.types-aiobotocore.dist
python311Packages.types-awscrt
python311Packages.types-awscrt.dist
python312Packages.boto3-stubs
python312Packages.boto3-stubs.dist
python312Packages.botocore-stubs
python312Packages.botocore-stubs.dist
python312Packages.types-aiobotocore
python312Packages.types-aiobotocore.dist
python312Packages.types-awscrt
python312Packages.types-awscrt.dist


Expands heartbeat tuning logic and adds tests

Whenever either or both specify 0 value for heartbeat, pick 0 since it's the one
that consumes the fewest resources and goes along with AMQP 0.9.1 negotiation rules
regarding picking the value that reduces resource consumption.
Update heartbeat negotiation tests for the new heartbeat negotiation logic that favors max heartbeat value.

Attempted a PR, but it got conflated with unexpected changes, so closing until I can figure out what went wrong


Since we can pool.Tune(), how can we return the current capacity to check if it's worth tuning up or down?

Since we can pool.Tune(), how can we return the current capacity to check if it's worth tuning up or down?
possible to do a Capacity()? Does it hv this function already?

just found out there's Cap() function. Great.


fix: send address of trap origin

:tada: This PR is included in version 0.11.0-beta.13 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add more factory methods for TFE_TensorHandle

Specifically for TFE_TensorHandleCopyToDevice() and TFE_TensorHandleCopySharingTensor()
Fixes #447
/cc @lanking520

Can you run spotless on it so it passes the formatting check?

Can you run spotless on it so it passes the formatting check?

I didn't make any changes to the parts it's complaining about. If we want to "fix" this, it should be run against all the source code. Having only some files "correctly" formatted isn't helpful.

It's set up to be incremental, every time we touch a file that hasn't been formatted spotless requires the file to be formatted. It means we don't need one massive commit that formats everything and trashes all the history. So please apply the formatting to that file.


Add reports generated by ghc-events-analyze

I added the reports in compressed (gzipped) format.
Use gunzip to retrieve the originals, or zless to view text files without uncompressing.
Related issue: https://github.com/begriffs/postgrest/issues/565

maybe this can be closed ... since we found out how to fix this

Sure, no need to merge.


fix first character digits for 00-09 (0-9)

Without these changes, depth is not handle. The script have translates 0x00 hex to 0 string. Means depth 00 is handle as 0 and cannot parse by stlk parser. now a 0 is added if only a single digit is availible and all should work.

Thanks for quick handling! Just a heads up for another change which is done https://github.com/SignalK/signalk-server-node/pull/1096


Receive error on Every Format SQL attempt

I'm using Postgres and have a tool that auto-generates my SQL (jOOQ).  I'm unable to format any SQL's, and I always receive this error:
Error: Parse error on line 2: Unexpected 'DOT'↵  a… at process.EventEmitter.emit (events.js:110:17)

Here's an example SQL I'm trying to parse:
select "aragorn_public_notify"."notify_event"."notify_event_id" from "aragorn_public_notify"."notify_event"

Yep, seems like legal postgresql SQL. See also https://github.com/AbeEstrada/atom-format-sql/issues/10


wheneverise command is unavailable but whenever is

I just installed the whenever gem, but I noticed the whenever command is present but the wheneverise command isn't. I'm running Windows 10 BTW.

Then I guess something went wrong with your installation, as I can't reproduce this. Can you, on another machine?


Native JS BLS helpers

The signing tools library does not support parsing BLS addresses.
This prevents:

users from sending FIL to a BLS address from an secp256 address, even though the library can handle this signature just fine
users from building on top of the serialization functionality to add their own BLS signatures

I also exported getCID and getDigest for the second reason.
For context, I am adding javascript BLS signatures for our own use using https://github.com/paulmillr/noble-bls12-381. I'm happy to contribute that functionality back to this library if there is interest. It would change the API slightly as the current bls operations are synchronous and the noble library functions asynchronously

Should we integrate those changes ? Those are valid changes for the js lib.

closing this in favor of this PR https://github.com/Zondax/filecoin-signing-tools/pull/389
I don't export getCid in the other PR because it needs a bit more work I believe (like properly check the input to avoid mistake).


Mark C# (.NET) implementation validated against spec

Thanks for adding to the list!
I reimplemented the mentioned tests here ( https://github.com/TenCoKaciStromy/typeid-dotnet/blob/main/src/dotnet-typeid-tests/ValidationAgainstSpec_Tests.cs ).

Sorry for the delay. Go ahead and send me a PR marking your implementation as validated and I'll approve. Send it to our opensource monorepo, file: https://github.com/jetpack-io/opensource/blob/main/typeid/typeid/README.md

Addressed by https://github.com/jetpack-io/opensource/pull/77, closing


Fix Cross-Validation of Timed Out View And High QC View

Current dependencies on/for this PR:

feature/proof-of-stake

PR #843   👈

This stack of pull requests is managed by Graphite.


Prose Styles are not marked as important when the whole config is

UnoCSS version
0.64.0
Describe the bug
When styles are marked as important using important: true in presetUno, styles from presetTypography are not marked as important. That might be logical, because the two are different presets, but it's at least confusing. The problem here is that styles which are defined with a higher specificity (which is the reason I'm using important in the first place) will override the prose styles.
I can think of a few solutions:

When important: true is set in presetUno, make all generated prose styles important as well (most intuitive)
Provide an additional option in presetTypography to make generated prose styles important
Make the selectorName more flexible so that I could set it to something like #container .prose so that prose styles have a higher specificy than what is defined elsewhere (see my reproduction).

Reproduction
https://unocss.dev/play/#html=DwEwlgbgBGILwCIDGB7AdgFwIZjQUwCcEA%2BAKCimAGcAHLNKJAGyyqsQzwA8MBaAvCBIYAFmCowJAkMAD0temQqhIjFm0Q0CKKnhLkKlGsQAqIvLqhYBUAGYEArmAwSA7mKQioVESgdMQKBEsCDwoOhBwNABzKHweKAwURPMAWwAuOWMDZX8lQ2UmMGIAQRoaJgs5IvyC4BqAIXpmqmrinMN64oB5AnpoqtkajsLigGUMPtcAI0ICMEHhgtHiAFl%2BlEX2utk8gzlwCDIDyDIgA&config=JYWwDg9gTgLgBAbwCYFMBmwB2KDCFMYDmANHGFCgM4owAqAnpIVAIZgAW9p5VNAqpggBfOGigQQcAOQBXQQGNKlKQCgVKAB6RYcVGhYyANvD1Zc%2BIgAoEKgJA9qMSgC44AbTv2KjgRGufbUG0YFkwYVxgoGRRiTyEASljbL146RghmNk5LRLsAXViEoA&css=PQKgBA6gTglgLgUzAYwK4Gc4HsC2YDCAyoWABYJQIA0YAhgHYAmYcUD6AZllDhWOqgAOg7nAB0YAGLcwCAB60cggDYIAXGBDAAUKDBi0mXGADe2sGC704AWgDuCGAHNScDQFYADJ4Dc5sAACtMLKAJ5gggCMLPK2ABR2pPBIcsoAlH4WAEa0yADWTlBYqEw2yFjK3Bpw5LxxAOTllVDoYpSMYgAs3vUZ2gC%2BmjoAxOXWtDD0fGYWqMqm-haCtIyMk042qhxuYL7%2B-QPaQA&options=N4IgLgTghgdgzgMwPYQLYAkyoDYgFwJTZwCmAvkA&version=0.64.0
System Info
No response
Validations

[X] Read the Contributing Guidelines.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

The problem here is that styles which are defined with a higher specificity (which is the reason I'm using important in the first place) will override the prose styles.

.prose {
  color: var(--un-prose-body) !important;
  max-width: 65ch !important;
}

Your question is, does your use of the important option affect the style of prose, also made it important?

@zyyv Please take a look at the playground. It seems like prose styles are not important when the main CSS is important, but I'd expect the prose styles to be important in that case.


⚠ Bofrost.de has degraded performance

In edd3d45, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1226 ms

Resolved: Bofrost.de performance has improved in 38ad9d3 after 39 minutes.


Added two codes on JumpSearch and Recursive prog for linear search in CPP

Added tow codes for your repository on the topics: JumpSearch and Recursive prog for linear search  in CPP.

Please add the entire HackerRank question as a comment on top.


How would i configure logout functionality in client??

https://github.com/UniconLabs/bootiful-cas-client/blob/master/src/main/resources/application.yml#L24


Add my proposal

Command should be enum. and separate command and object. I referred to @emilmelnikov
Domain should have ledgerId, Asset should not it.
Add QueryFilter and Query has it.
Add CommandOption for some command like Transfer

Unfortunately, when I've suggested replacing commands with enums, I didn't think of command parameters (e.g. the transfer command should have the receiver parameter).
The solution with the CommandOption table doesn't look nice and complicates the ledger storage.
Maybe revert back to command tables/structs, but define them separately for each object type?
Example API sketch:
table Transaction {
  object: Object;
}

union Object { Currency, Peer }

table Currency {
  value: ulong;
  command: CurrencyCommand;
}

union CurrencyCommand { CurrencyAdd, CurrencyRemove, CurrencyTransfer }

struct CurrencyTransfer {
  receiver: string;
}

The downside of this approach is a lot of object-command tables.

The better option is to remove command/object nesting altogether:
table Transaction {
  command: Command;
}

union Command { CurrencyAdd, CurrencyRemove, CurrencyTransfer, PeerAdd, PeerRemove };

table CurrencyAdd {
  currency: Currency;
}

table CurrencyRemove {
  currency: Currency;
  // The alternative way is to list the "primary key" of the object:
  // name: string;
  // domain: Domain;
  // ledgerID: string;
}

table CurrencyTransfer {
  currency: Currency;
  // The "alternative way" also applies here.
  receiver: string;
}

In code, it will be handled with a one giant switch command, but one can hide it in some kind of factory:
class Command {
  virtual ~Command() {};
  // Common command interface...
}

class CurrencyAddCommand : Command {
  virtual ~CurrencyAddCommand() override {};
  // Implementation of the command interface...
}

class CurrencyRemoveCommand : Command {
  virtual ~CurrencyRemoveCommand() override {};
  // Implementation of the command interface...
}

class TransactionFactory {
  Command getCommand(const uint8_t* buffer);
}

Command TransactionFactory::getCommand(const uint8_t* buffer) {
  uint8_t* buf;
  auto transaction = GetTransaction(buffer);
  switch (transaction->command_type()) {
    case (Command_CurrencyAdd):
      // Handle CurrencyAdd
      return CurrencyAddCommand(params);
    case (Command_CurrencyRemove):
      // Handle CurrencyRemove
      return CurrencyRemoveCommand(params);
  }
}

Ok thanks, I understanded it
I think code increase on large scale...

My proposal:
https://gist.github.com/Warchant/b7049e2f0653bd30c78f06b283c30bf0
Sorry, there are lots of files, probably some can be combined.
Also, don't worry about lots of includes:

include automatically ensures each file is parsed just once, even when referred to more than once., -- Google

Meeting tonight at 19:00 JST to discuss the data format some more.

Unnessecarry


UI: vSphere - anti-affinity rules (iFrame into Vue)

Still need to gather some details here before work can start on the UI, including the backend work (once I find the ticket) but...
We need the ability to toggle the affinity/anti-affinity options for vSphere. This can be done in the older UI and we can create an iFrame in the newer one to refer to this.

Here's the backend ticket: https://github.com/rancher/rancher/issues/29894

When using the vSphere node driver, users should be able to specify vSphere anti-affinity scheduling rules per node group. This needs to work for all supported versions of vSphere in Rancher. Users should be able to set the rules via the UI and when provisioning through the Terraform provider.

Closing this ticket combination of dashboard and backend ticket. https://github.com/rancher/rancher/issues/29894 https://github.com/rancher/dashboard/issues/7181


Fix action-tmate on Windows

Due to dependency issues, it is currently a bit tricky to install the latest version of the tmate package on in MSYS2 on GitHub's hosted build agents.
The symptom of the current (incorrect) method is that we're running into "Error 127" which means that either an executable or a DLL was not found.
To install the latest version of the tmate package correctly, we would have to do a full upgrade of all installed MSYS2 packages, which would require us to parse the output of the pacman -Syu run to figure out whether system packages were upgraded, in which case a second pacman -Su invocation would be required.
Instead, let's go the simpler route and avoid updating the package index. And then only install the tmate package and its not-yet-installed dependencies. That way, we might not get the latest and greatest tmate version, but we always get one that actually works.
This fixes https://github.com/mxschmitt/action-tmate/issues/147

--noconfirm PR is nice 😮, but why did you remove -y param., to be sure it doesn't mean yes:
-y, --refresh
           Download a fresh copy of the master package database from the server(s) defined in pacman.conf(5).

Thanks for fixing this!

why did you remove -y param

@silverqx As explained in the PR description, the -y parameter does update the package index, which may result in packages needing to be updated that are considered "system" packages by MSYS2 and that would require a second pass.
To see how complex that can get, have a quick look at https://github.com/git-for-windows/git-sdk-64/blob/HEAD/update-via-pacman.bat. And then weep.
So, as explained in the PR description:

let's go the simpler route and avoid updating the package index.

That means: remove the -y parameter.
What dropping the -y parameter does is: it leaves the package as-is (i.e. as it was when the runner image was created). And then uses that current package index (which might be behind by a couple of days, but really, who cares) to figure out which tmate to install.
As tmate does not really change a lot (https://github.com/tmate-io/tmate/releases shows that the latest release was published before the pandemic, i.e. about a lifetime ago), I would consider this a defensible position.

You are right, thx for the clarification.


Fixes anchor link in docs

This fixes two anchor links in the docs for "Defaults for Radial Linear" which led to nowhere.

Coverage remained the same at 71.968% when pulling d0b5bb941dc818defbae5457c8298c730ae25cb2 on vincchan:fix-anchor into 7916b84826ead7ad77f90a8f77eb12298a659925 on chartjs:master.


params sent multipart Form data not received in backend

Hi there,
First of all thanks for this great library. I really love this.
I'm facing a strange issue. When i send all params in multipart form data then those values are not received at the backend. They receive all the keys that is sent in the request but they don't receive the required values for them.
The backend is in laravel. Also strange thing about this is that it was working till now. Now, I don't understand what is breaking this up.
There are issues with latest xcode i.e., 11.2 , iOS 13.2 whether that is causing the issue or is the alamofire version (5.0.0-rc.3) causing the issue. I'm not able to identify the issue.
I'll put my request data below:
`--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="user_id"
36
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="truck_id"
9
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="fault_type"
28
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="fail_reason"
11
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="person_notified"
adffdsaf
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="fault_desc"
Asdfasd
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="datetime_raised"
04-11-2019 10:43 PM
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="priority_id"
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="tfr_no"
TFR-40592140
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="gps_latitude"
51.50998
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="gps_longitude"
-0.1337
--alamofire.boundary.3f3f92d4d90facf9
Content-Disposition: form-data; name="timezone"
Asia/Kolkata
--alamofire.boundary.3f3f92d4d90facf9--`
Help me.
TIA

Hi everyone,
I also traced the request in Burp Suite. It looks something like this:
`
POST  HTTP/1.1
Host: hanson.clouddownunder.com.au
Content-Type: multipart/form-data; boundary=alamofire.boundary.cac36a01771a6839
Connection: close
devicetype: iOS
lancode: en
Accept: application/json
User-Agent: Hanson/1.0 (com.hanson.v1; build:7; iOS 13.2.0) Alamofire/5.0.0-rc.2
Content-Length: 1175
Accept-Language: en;q=1.0
Accept-Encoding: gzip, deflate
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="user_id"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="truck_id"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="fault_type"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="fail_reason"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="person_notified"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="fault_desc"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="datetime_raised"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="priority_id"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="tfr_no"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="gps_latitude"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="gps_longitude"
--alamofire.boundary.cac36a01771a6839
Content-Disposition: form-data; name="timezone"
--alamofire.boundary.cac36a01771a6839--
`
So here we can see that the values are getting dropped off. But from where I am not able to trace that.

It seems unlikely this is supposed to be using multipart form encoding. Are you sure that's what the backend requires? It seems more likely it expects URL encoded form or JSON encoding.
You can use a tool like Charles to see exactly what's going over the network. But if the values are in the encoded data, that should be what's sent over the wire too.

@jshier Thanks for the reply. I guess no.
So at first I downgraded alamofire to 5.0.0-beta.5 and it started working.
I've developing this app since last 4 months and over all those period the alamofire's library version was same i.e., 5.0.0-beta.5. And as soon as I've upgraded its version to latest it stopped working.
Now, today again it stopped working even in version 5.0.0-beta.5. Now, I'm seriously confused what is creating this issue. Whether it is Xcode 11.2, 11.1 / Alamofire / iOS 13.1, 13.2.  I tried API execution from postman and it works perfectly.

Guys finally I found the issue.
Sorry its not totally alamofire's fault. Before passing formdata in API I'm printing out the data that is sent so due to that the bodystream is getting blank. Don't know why. :)
`if let p = params {
do {
print(String(data: try p.encode(), encoding: .utf8) ?? "")
} catch {
        }
    }`


Activity class required to represent script execution events

TL;DR - The schema needs a new activity class to represent script execution events.
Most Windows EDR products provide visibility into the execution of PowerShell, Python, VBScript, JavaScript, Office macros, etc. Win10 and later provides an API that security products can use to obtain synchronous notification when content is executed by a supported scripting engine. In the case of PowerShell, asynchronous notification via ETW is also supported. I'm not a macOS guy but my understanding is that EDRs on that platform also provide telemetry on execution of shell scripts, Python, Node, etc.
In the interests of clarity, I'd like to head off possible confusion that may arise from a narrower understanding of the term "script execution". That narrower understanding is based on the plain vanilla case where an interpreter (powershell, python, bash, wscript, cmd, etc.) starts, executes a script in a file, and then exits. Here script execution aligns with the lifetime of the interpreter process, and one might therefore think that script excecution could be represented by adding attributes to the Process Activity class. However, script execution in general doesn't align with process lifetime.
In much the same way that a process might create thousands of files, modify thousands of registry keys, or make thousands of network connections during its lifetime, so might a process execute thousands of scripts. So just as we have unique activity classes to represent all of these other things that a process can do, so should we have an activity class for when it executes a script.
Let me give a few examples to clarify what I mean:

When an instance of bash or powershell is running interactively, each command typed by the user is a separate script execution.
An instance of bash or powershell may have stdin redirected from a pipe or socket. Each command it receives is again a separate script execution.
Many scripting languages support dynamic execution (e.g. eval in javascript and bash, iex in powershell). Each dynamically executed sub-script is a separate script execution. This pattern is often seen in file-less attacks where one tiny command can download and execute the real payload.
MS Office apps often work with documents that make heavy use of macros. Each execution of a macro is separate script execution.

All of these script execution cases are potentially observed by an EDR, and should therefore be representable by an activity event.
I propose to address this issue in a forthcoming PR which will add a Script Activity class.

Would you also be adding a script object with this?
I definitely support this idea, the Microsoft DeviceEvents hunting table and Sentinel/Defender XDR table in Log Analytics captures this sort of data with ActionType = ScriptContent. Similar data can be gleaned from Crowdstrike Falcon Data Replicator and LogScale, as well as DeepVisibility (or whatever SentinelOne calls it now) in S1 Singularity.
And for some color for other's, here's an example of that from a Windows honeypot running on AWS
  {
    "TenantId": "273b5c16-9882-46c0-9559-2997e05fc9fb",
    "AccountDomain": "",
    "AccountName": "",
    "AccountSid": "",
    "ActionType": "ScriptContent",
    "AdditionalFields": {
      "ScriptContent": "# sudo python3 open_files.py --ScriptName open_files.py --id log4j_handlersV2 --filter-env LOG4J_FORMAT_MSG_NO_LOOKUPS=true --filter-name \"log4j,LOG4J,spring-core\" --filter-command \"java,javaw\" --manifest-path \"META-INF/maven/org.apache.logging.log4j/log4j-core/pom.properties\" --marker-path /var/opt/microsoft/mdatp/wdavedr/log4jMitigationApplied --collect-dirlist /log4j/core/lookup/JndiLookup.class,log4j-,spring-core-\n# sudo python2 open_files.py --ScriptName open_files.py --id log4j_handlersV2 --filter-env LOG4J_FORMAT_MSG_NO_LOOKUPS=true --filter-name \"log4j,LOG4J,spring-core\" --filter-command \"java,javaw\" --manifest-path \"META-INF/maven/org.apache.logging.log4j/log4j-core/pom.properties\" --marker-path /var/opt/microsoft/mdatp/wdavedr/log4jMitigationApplied --collect-dirlist /log4j/core/lookup/JndiLookup.class,log4j-,spring-core-\n# sudo rm /opt/microsoft/mdatp/resources/cache/log4j_handlersV2.json \n\nfrom genericpath import isdir\nimport os\nimport re\nimport sys\nimport json\nfrom datetime import datetime as dt\nimport zipfile\nimport string\nimport argparse\nimport traceback\nimport functools\nimport itertools\nimport subprocess as sb\n\nMAX_FILE_SIZE = 1024 * 1024  # 1MB\nMANIFEST_OLD_PATH = \"META-INF/MANIFEST.MF\"\n\ndef take(n, l):\n    for i, item in enumerate(l):\n        if i > n:\n            break\n        yield item\n\nclass Jar:\n    def __init__(self, path):\n        self.path = path\n        self._manifest = {}\n        self._dirlist = []\n\n    def _parse_manifest(self, lines):\n        version_indication = \"version=\"\n        version_lines = [line for line in lines if line.startswith(version_indication)]\n\n        if len(version_lines) > 0:\n            version = version_lines[0][len(version_indication):]\n            yield 'Version', version.strip()\n\n        field_names = ['Specification-Version', 'Specification-Title', 'Specification-Vendor', 'Implementation-Version', 'Implementation-Title', 'Implementation-Vendor']\n        for line in lines:\n            if any(line.startswith(field_name) for field_name in field_names):\n                    key, value = line.split(':')\n                    yield key.strip(), value.strip()\n\n    def _open(self):\n        if not zipfile.is_zipfile(self.path):\n            raise ValueError(\"path is not a zip file: {}\".format(self.path))\n        return zipfile.ZipFile(self.path)\n\n    def _read_dirlist(self):\n        with self._open() as zf:\n            filenames = dict(p for p in zf.namelist())\n            return [f for f in filenames if any(r.search(f.lower()) for r in args.dirlist)]\n\n\n\n    def _get_manifest_path(self, zf):\n        for path in [args.manifest_path, MANIFEST_OLD_PATH]:\n            if path in zf.namelist():\n                return path\n\n    def _read_manifest(self, throw_on_error=False):\n        try:\n            with self._open() as zf:\n                manifest_path = self._get_manifest_path(zf)\n                if not manifest_path:\n                    # Not found manifest file\n                    return {}\n\n                manifest_info = zf.getinfo(manifest_path)\n                if manifest_info.file_size > MAX_FILE_SIZE:\n                    raise IOError(\"manifest file is too big\")\n\n                with zf.open(manifest_path) as f:\n                    readline_f = functools.partial(f.readline, MAX_FILE_SIZE)\n                    manifest_lines = list(x.decode().strip() for x in iter(readline_f, b''))\n                    manifest = self._parse_manifest(manifest_lines)\n                    return dict((k, v) for k, v in manifest\n                            if not args.manifest_keys or any(m.search(k.lower()) for m in args.manifest_keys))\n        except:\n            sys.stderr.write(\"error while reading manifest of '{}': {}\\n\".format(self.path, traceback.format_exc()))\n\n            if throw_on_error:\n                raise\n\n            return {}\n\n    def manifest(self, throw_on_error=False):\n        if not self._manifest:\n            self._manifest = self._read_manifest(throw_on_error)\n        return self._"
    },
    "AppGuardContainerId": "",
    "DeviceId": "a142507c21097c32a923558ac37d71546e821402",
    "DeviceName": "ip-172-31-5-30.us-east-2.compute.internal",
    "FileName": "",
    "FileOriginIP": "",
    "FileOriginUrl": "",
    "FolderPath": "",
    "InitiatingProcessAccountDomain": "",
    "InitiatingProcessAccountName": "",
    "InitiatingProcessAccountObjectId": "",
    "InitiatingProcessAccountSid": "",
    "InitiatingProcessAccountUpn": "",
    "InitiatingProcessCommandLine": "",
    "InitiatingProcessFileName": "",
    "InitiatingProcessFolderPath": "",
    "InitiatingProcessId": 629100,
    "InitiatingProcessLogonId": 0,
    "InitiatingProcessMD5": "",
    "InitiatingProcessParentFileName": "",
    "InitiatingProcessParentId": 0,
    "InitiatingProcessSHA1": "",
    "InitiatingProcessSHA256": "",
    "LocalIP": "",
    "LocalPort": "",
    "LogonId": "",
    "MD5": "",
    "MachineGroup": "",
    "ProcessCommandLine": "",
    "ProcessId": "",
    "ProcessTokenElevation": "",
    "RegistryKey": "",
    "RegistryValueData": "",
    "RegistryValueName": "",
    "RemoteDeviceName": "",
    "RemoteIP": "",
    "RemotePort": "",
    "RemoteUrl": "",
    "ReportId": 828379,
    "SHA1": "",
    "SHA256": "df4742a00d9f68ad9e665357ef9bb5a8c37cc21975368270cceb7fbd6dc27ec5",
    "Timestamp [UTC]": "8/13/2024, 9:08:12.257 PM",
    "TimeGenerated [UTC]": "8/13/2024, 9:08:12.257 PM",
    "FileSize": "",
    "InitiatingProcessCreationTime [UTC]": "8/13/2024, 9:08:12.204 PM",
    "InitiatingProcessFileSize": "",
    "InitiatingProcessParentCreationTime [UTC]": "",
    "InitiatingProcessVersionInfoCompanyName": "",
    "InitiatingProcessVersionInfoFileDescription": "",
    "InitiatingProcessVersionInfoInternalFileName": "",
    "InitiatingProcessVersionInfoOriginalFileName": "",
    "InitiatingProcessVersionInfoProductName": "",
    "InitiatingProcessVersionInfoProductVersion": "",
    "ProcessCreationTime [UTC]": "",
    "SourceSystem": "",
    "Type": "DeviceEvents"
  },
  {
    "TenantId": "273b5c16-9882-46c0-9559-2997e05fc9fb",
    "AccountDomain": "",
    "AccountName": "",
    "AccountSid": "",
    "ActionType": "ScriptContent",
    "AdditionalFields": {
      "ScriptContent": "#!/usr/bin/bash\n#\n# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You may\n# not use this file except in compliance with the License. A copy of the\n# License is located at\n#\n#      http://aws.amazon.com/apache2.0/\n#\n# or in the \"license\" file accompanying this file. This file is distributed\n# on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either\n# express or implied.  This will enable scripts to be referenced in other parts of the schema too, e.g. in the evidences array of a Detection Finding event. The Script Activity that I propose above will essentially just extend System Activity by adding a script attribute.


Update Catch latest v1.x

Description
I updated my Ubuntu installation, so I now have GCC 11.3 which reports compilation errors in catch.hpp.
In file included from /usr/include/signal.h:328,
                 from <path>/SFML/extlibs/headers/catch.hpp:6520,
                 from <path>/SFML/test/src/CatchMain.cpp:2:
<path>/SFML/extlibs/headers/catch.hpp:6543:33: error: size of array ‘altStackMem’ is not an integral constant-expression
 6543 |         static char altStackMem[SIGSTKSZ];
      |                                 ^~~~~~~~
<path>/SFML/extlibs/headers/catch.hpp:6594:45: error: size of array ‘altStackMem’ is not an integral constant-expression
 6594 |     char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
      |                                             ^~~~~~~~

Updating catch solves it.
Tasks

[x] Tested on Linux
[ ] Tested on Windows
[ ] Tested on macOS
[ ] Tested on iOS
[ ] Tested on Android

How to test this PR?
CI

This is an unfortunate situation because Catch2 v2 requires C++11 and technically that's not allowed on 2.6.x. I think this is a pragmatic solution because (1) who is still using a C++03-only compiler these days, (2) who cares if the tests need a newer language standard, and (3) this will fix building the SFML 2 tests on ARM Macs which is currently a sore spot for me whenever I switch over to that branch.
If the team is cool with SFML 2 having a soft requirement on C++11 then I'm also cool with this.

Catch2 v2 requires C++11

Good to know! We currently have v1.12.2. I thought that was a small update because I read v2.12.2 :facepalm:
CI seems to agree as Xcode doesn't like noexcept.

I will try with latest version from Catch1.x branch, which includes a bugfix for what I was encountering.

SFMLBuildMaster: Build this please.


Fix ID assignment for sql db projects dashboard

This PR fixes #15021
The dashboard now shows the builds/deployment details with static IDs, in decreasing order and unique within a project (not unique across several projects).

Pull Request Test Coverage Report for Build 742560420

0 of 6 (0.0%)  changed or added relevant lines in 1 file are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.005%) to 43.547%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/sql-database-projects/src/controllers/projectController.ts
0
6
0.0%

Files with Coverage Reduction
New Missed Lines
%

extensions/notebook/src/common/ports.ts
4
74.14%

Totals

Change from base Build 742463039:
-0.005%

Covered Lines:
26177

Relevant Lines:
54933

💛  - Coveralls


publish the language spec proposals for C# 7.3

Fixes #10724

dotnet/csharplang#2319 should fix the other build warnings.


Fix function local variable list declaration with initialization Compiler bug.

I was just going to mention that if somebody is going to dig into this code, a related nice to have feature would be the ability to not have to include the number inside the array brackets and instead allow it to be automatically inferred by the number of parameters.


Fix typo in php-mariadb's README.md

Fix a typo, and remove a paragraph present twice

Thanks for the PR. Why remove the paragraph?

Nevermind... it's there twice.  The GitHub diff hid it.  Thanks!


fix(select/telescope): check for nil selection

Hello, thanks for this great plugin! I've been running into some nil access errors when not selecting anything from the telescope menu (for example, when searching for an entry that doesn't exist so that it clears the results, and then press enter). Figured that doing a simple check would make sense here

Awesome, thanks!


Cursor placing not always works

I'm experiencing a small problem: cursor placing doesn't always work.
For example, i type the text:
"It's a rainy day"
now i want to delete "rainy" and write "sunny". So i put the cursor in front of "rainy" and try to delete it.
the result is that sometimes it works as it's supposed too, but sometimes the cursor jumps to the end and starts deleting "day" instead...

sometimes the cursor jumps to the end and starts deleting "day" instead...

I think I know what you mean, but let's make it clear.

 Do you use a touchscreen or the arrow keys?
When you have moved the cursor, but before you have pressed Backspace, is the suggestion list still visible?

1.  Do you use a touchscreen or the arrow keys?

I use the touch screen and tap in front of rainy

2. When you have moved the cursor, but before you have pressed Backspace, is the suggestion list still visible?

Yes! The suggestion is still visible for the last word typed: "day".
now that you mentioned it, if i select the "day" word from the suggestion list or if i double space after it then i can already delete rainy with no problem.
(I would suggest that either we close this bug or you put it on your very low priority list as it's just a question of knowing how to work-around the issue)

This bug is bugging me as well sometimes, so let's fix it. In the meantime, you could indeed use "space" or "OK" to accept the current suggestion and then move the cursor.


Steps for control-plane drain/uncordon upgrade

Steps for control-plane drain/uncordon upgrade.
Refs: https://github.com/kubernetes/kubeadm/issues/2324

/sig cluster-lifecycle

/assign @neolit123

@RA489
since i need to update the upgrade docs for 1.20 i will add the changes in this PR:
https://github.com/kubernetes/website/pull/24908
thanks.

/close


run error

hi, guys, I try to run the demo, and met some error here.
Traceback (most recent call last):
  File "/data/anaconda3/envs/pytorch3d/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 69, in _wrap
    fn(i, *args)
  File "/data/generative-recommenders/train.py", line 466, in mp_train_fn
    train_fn(rank, world_size, master_port)
  File "/data/anaconda3/envs/pytorch3d/lib/python3.8/site-packages/gin/config.py", line 1605, in gin_wrapper
    utils.augment_exception_message_and_reraise(e, err_str)
  File "/data/anaconda3/envs/pytorch3d/lib/python3.8/site-packages/gin/utils.py", line 41, in augment_exception_message_and_reraise
    raise proxy.with_traceback(exception.__traceback__) from None
  File "/data/anaconda3/envs/pytorch3d/lib/python3.8/site-packages/gin/config.py", line 1582, in gin_wrapper
    return fn(*new_args, **new_kwargs)
  File "/data/generative-recommenders/train.py", line 300, in train_fn
    eval_dict = eval_metrics_v2_from_tensors(
TypeError: __call__() got an unexpected keyword argument 'target_ids'

my python version is 3.8.17 , pytorch version is torch==2.0.1+cu117,

@a6802739 met the same problem in torch 2.0.0, comment the @torch.inference_mode in data/eval.py worked.

@makefile  thanks, it works in indeed.

Please check https://github.com/facebookresearch/generative-recommenders/issues/1. You may need to upgrade your pytorch version.

Please check https://github.com/facebookresearch/generative-recommenders/issues/1; you may need to upgrade your pytorch version.


using Elmo embedding layer in image captioning model ( Tutorial #22)

Hello,
Thanks for the tutorial. I want to use Elmo embedding method replaced the embedding layer that you used in your image captioning proposed model, but it doesn't work. Elmo needs a string input so I changed the input type from float32 to string and then add an Elmo layer replaced embedding layer.
I would be grateful if you can help me with how to use Elmo in your model.
thank you in advance
Shima
input:
decoder_input =Input(shape=(None,), dtype="string", name='decoder_input')
layer in the model:
net=ElmoEmbeddingLayer()(decoder_input)
Elmo Function:
class ElmoEmbeddingLayer(Layer):
def __init__(self, **kwargs):
    self.dimensions = 1024
    self.trainable=True
    super(ElmoEmbeddingLayer, self).__init__(**kwargs)

def build(self, input_shape):
    self.elmo = hub.Module('/TensorFlow-Tutorials-master/coco/2', trainable=self.trainable,
                           name="{}_module".format(self.name))

    self.trainable_weights +=K.tf.trainable_variables(scope="^{}_module/.*".format(self.name))
    super(ElmoEmbeddingLayer, self).build(input_shape)

def call(self, x, mask=None):
    result = self.elmo(K.squeeze(K.cast(x, tf.string), axis=1),
                  as_dict=True,
                  signature='default',
                  )['default']
    return result

def compute_mask(self, inputs, mask=None):
    return K.not_equal(inputs, '--PAD--')

def compute_output_shape(self, input_shape):
    return (input_shape[0],input_shape[1], self.dimensions)

Error
ValueError: Input 0 is incompatible with layer decoder_gru1: expected ndim=3, found ndim=2

I don't give support for user-modifications to these tutorials, because it would completely overload me with work. You could try asking on StackOverflow.


Improve default patterns resolution

Separate the default patterns that match directories from the ones matching files and ensure directories are checked first (reverts the change from https://github.com/huggingface/datasets/pull/6244, which merged these patterns). Also, ensure that the glob patterns do not overlap to avoid duplicates in the result.
fix https://github.com/huggingface/datasets/issues/6259
fix https://github.com/huggingface/datasets/issues/6272
TODO:

[ ] optimize repeated LocalFileSystem.ls calls when resolving the default patterns

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Awesome !
Note that it can still create duplicates if a path matches several dir patterns, e.g.
data/train-train/data/txt

matches two dir patterns:
**/{keyword}[{sep}]*/**
**/*[{sep}]{keyword}/**

Yes, I didn't mention that case on purpose 🙂. One solution would be deprecating the **/*[{sep}]{keyword}/** pattern (and eventually removing). This way, the directory patterns would align more with the filename ones. Or do you think this is too big of a breaking change?

I think it's too big of a breaking change yes :/ Though I think your approach is already a nice step in the right direction

These changes to the resolve_pattern function lead to 20-30x faster local file resolution in my benchmarks.

Nice ! Though since fsspec caches the filesystem, is there a risk when adding new files and reloading a dataset ?
with open("my/local/dir/0000.txt", "w") as f:
    f.write("Hello there")
d1 = load_dataset("my/local/dir")
with open("my/local/dir/0001.txt", "w") as f:
    f.write("General Kenobi")
d2 = load_dataset("my/local/dir")
assert list(d1) != list(d2)

Yes. But I think I have a solution for this.

I'm not satisfied with the context manager approach...
A clean solution would require a bigger rewrite of the resolution logic (e.g., merging get_data_patterns and DataFilesDict.from_patterns into a get_data_files function that would match the paths using fs.find and fsspec.utils.glob_translate (available in fsspec>=2023.12.0))
The current changes make the local resolution 2-3x faster, which is good enough for now, I think.

I opened https://github.com/huggingface/datasets/pull/6828 to add proper Path support to save_to_disk / load_from_disk


Dropdown not displaying name of chart

Whenever browser gets refreshed, dropdown value defaults to 'Select a Chart' instead of to the name of the graph being displayed.

It also happens whenever you click the Back button in the browser


add aio-lib-audience-manager-cd

Description
Together with this PR I've added an env var to travis-ci: AUDIENCE_MANAGER_ID

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

note tests are passing but actually failing: with Error: Missing env var(s): JWT_PRIVATE_KEY
tests should be re-run after #4 is merged

@moritzraho there are some file conflicts which need to be resolved.


Printed default config is invalid

When running graphite-clickhouse -config-print-default to generate a default config, the produced output is not valid to use:
2023/06/08 16:00:18 (57, 2): Can't convert false(bool) to time.Duration

It is about this section where extended-stats is not part of [metrics.find-ranges] but should be part of [metrics].
[metrics]
 # graphite relay address
 metric-endpoint = ""
 # statsd server address
 statsd-endpoint = ""
 # graphite metrics send interval
 metric-interval = "0s"
 # graphite metrics send timeout
 metric-timeout = "0s"
 # graphite metrics prefix
 metric-prefix = ""
 # Request historgram buckets widths
 request-buckets = []
 # Request historgram buckets labels
 request-labels = []

 # Additional separate stats for until-from ranges
 [metrics.ranges]

 # Additional separate stats for until-from find ranges
 [metrics.find-ranges]
 # Extended metrics
 extended-stat = false

Fixed in master


Fix activity message issue for the application deployed

https://bugzilla.redhat.com/show_bug.cgi?id=2234382

@GowthamShanmugam Please review

/hold

/retest

Please fix the build tests

/retest

/hold

@GowthamShanmugam are we blocking this PR for some reason ??

is this ever discussed with UX @TimothyAsirJeyasing ??

Yes this is discussed with UX, @Hadas David please confirm here if possible

/approve cancel

/approve cancel

Yes, The changes confirmed with UX https://ibm-systems-storage.slack.com/archives/C06SS96EECT/p1715336088561499?thread_ts=1714389611.825559&cid=C06SS96EECT

Please close this PR, i think BZ is already closed for this

@GowthamShanmugam , BZ2234382 is closed as NOTABUG. So I guess we can close this PR as well?

We can close this BZ


/reset-password 500 network server error

Link to reproduction
https://github.com/palak-convivity/payloadcms
Describe the Bug
payloadcms.com is showing this error.

while I am doing same request on my project but its giving me 500 network server error "something went wrong"

To Reproduce
hit POST req on /api/users/reset-password
with invalid token in it's body
body:{
    password:password,
    token:token
  }

Payload Version
2.12.1
Adapters and Plugins
No response

Are you saying that you're running a POST request to /api/users/reset-password from your frontend to your API?
I believe your frontend should be catching the error and handling it if that's the case. If you believe this is an issue with payload could you provide a reproduction repo please?

https://github.com/palak-convivity/payloadcms
Create a new Payloadcms project
Create a user
Reset the password of user using forget password
Set the email server
You will get the mail of reset password
Reset the password using that token
If you again try to use that token
the error should be something like
Error: Token is either invalid or has expired.

but it is showing
500 Internal Server Error
message: "Something went wrong."

https://jam.dev/c/395e3fd0-fbe8-424b-addd-081668f98997

https://github.com/palak-convivity/payloadcms
Create a new Payloadcms project Create a user Reset the password of user using forget password Set the email server You will get the mail of reset password Reset the password using that token If you again try to use that token the error should be something like
Error: Token is either invalid or has expired.

but it is showing
500 Internal Server Error
message: "Something went wrong."

https://jam.dev/c/395e3fd0-fbe8-424b-addd-081668f98997


Re-Arrange "A look inside" widget to side instead of at the bottom of about page

A newbee question.
My instance about page shows the "A look inside" widget at the bottom of the page instead of on the side as shown in  https://mastodon.social
I looked around a lot in the Admin settings for appropriate setting. I could not locate or search on this.
Appreciate what configuration I am missing for this. See pic attached.

I figured out if the Instance description is long, it pushes the widget to the bottom. Shortening the instance description put the widget on the side.


Select audio output format based on audio input format properties

I'm looking to configure this script such that it selects a different audio output format depending on the whether the audio input format is lossy or lossless. Specifically I'd like it to convert all problematic audio formats to AC3, unless they are lossless (TrueHD, DTS-HD MA) in which case I'd like them repackaged as FLAC (avoiding an unnecessary transcoding). Though in this particular case the lack of such a feature is not too punishing (a transparent lossless to lossy transcode that saves disk space is not the worst outcome) I could see it being useful in other cases (for example selecting different audio output formats depending on the number of channels in the source audio track, e.g. going with a simple audio format like AC3 unless the source audio has too many channels in which case select a more complicated codec). Thanks.

Currently this is not supported. The major design function of the script is to convert everything to the same format so there's no logic or configuration option that would do specifically what you're looking to do. To add this would be quite a large undertaking and require overhauling many core components of the script. Happy to look at a pull request but not something that's planned from a development standpoint.
In the past when people have had situations where they wanted essentially two configurations depending on the input file I've recommended using a wrapper script that switches the configuration file depending on the input. You can modify the environment variable SMA_CONFIG before launching the script to redirect to an alternative config.
For your case you would have two copies of autoProcess.ini, one for simple audio that converts to AC3 and one for lossless and redirect accordingly.


Add FaunaDB integration

Consider using FaunaDB for unaithorised interactions and maintaining a separate DB for public use case

Looked into the integration basics. This approach is fairly new to comprehend and would require more time to properly analyse. Also, if correctly implemented Fauna could open up new possibilities for our data store and how we would run mutations on it.

Parking this aside for now to re-evaluate our use cases in the future with Fauna. For the time being, would continue with Appwrite integration in #4

Since Appwrite would require users to be authenticated to access its services, would change the UX to allow for Google OAuth signin

Not really of use now since proceeded with Supabase for (un)authenticated use cases. Closing this.


Add option to provide signature for a token to verify key ownership

Currently we will only allow a key to be matched to a user if it matches
an activated email address. This PR provides a different mechanism - if
the user provides a signature for automatically generated token (based
on the timestamp, user creation time, user ID, username and primary
email.
Signed-off-by: Andrew Thornton<EMAIL_ADDRESS>

So one question here is whether the round to nearest 5 minutes is reasonable or whether we should make them resubmit the token back.
Round to nearest 5 minutes gives a potential issue whereby a token could be out of date by the time it's shown to the user.

Codecov Report

Merging #14054 (33ee748) into master (4ef7512) will decrease coverage by 0.00%.
The diff coverage is 36.17%.

@@            Coverage Diff             @@
##           master   #14054      +/-   ##
==========================================
- Coverage   42.32%   42.32%   -0.01%
==========================================
  Files         726      726
  Lines       77684    77718      +34
==========================================
+ Hits        32883    32895      +12
- Misses      39403    39428      +25
+ Partials     5398     5395       -3

Impacted Files
Coverage Δ

models/error.go
38.34% <0.00%> (-0.15%)
:arrow_down:

modules/auth/user_form.go
39.65% <ø> (ø)

routers/user/setting/keys.go
11.33% <16.66%> (+0.54%)
:arrow_up:

models/gpg_key.go
52.22% <43.47%> (-1.12%)
:arrow_down:

routers/api/v1/user/gpg_key.go
62.50% <71.42%> (-1.66%)
:arrow_down:

modules/git/repo_base_nogogit.go
63.63% <0.00%> (-9.10%)
:arrow_down:

modules/log/event.go
58.96% <0.00%> (-2.84%)
:arrow_down:

modules/git/utils.go
77.77% <0.00%> (-2.78%)
:arrow_down:

modules/process/manager.go
72.50% <0.00%> (-2.50%)
:arrow_down:

modules/git/blame.go
65.71% <0.00%> (-1.43%)
:arrow_down:

... and 8 more

Continue to review full report at Codecov.

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

Should fix #14036

Should fix #14036

@zeripath can you resolve conflicts?

I'm gonna move this to 1.15 as it doesn't appear to have been tested by anyone, and in particular any of the people who were interested in the feature.

I'm still not sure if it is good, to add a key without checking if user also controls related email :/
with this I can create a key for email another user controle & let the commit show valide

I'm still not sure if it is good, to add a key without checking if user also controls related email :/

The emails still have to be activated.

with this I can create a key for email another user controle & let the commit show valide

You can do that already if you allow auto vaidated email addresses by just adding another email address to your gpg key.

I suspect 18df555 might break tests btw @6543

@zeripath #12155 did create confilcts - would be nice if you have time to resolve

fixed #15263


Move away from nul-terminated strings?

You must calculated their length.
The zero byte is not possible to encode, which is important for some protocols.

Alternatives:

Two i32s: memory_offset and length. Downside is that passing it to a function now requires two arguments, which is much harder for our macros to handle.
Single i64, with first 32-bits for memory_offset and the second for length. This is much easier to pass to functions. This could be represented by a type like Memory.Range.

This will also mean removing the Orb.I32.String module with its functions.

Orb.I32.String has been removed.

Orb.Str has been added, which is a Custom Type for (i32 i32). The first i32 is the string’s memory address, and the second is its length in bytes.


Split #4488 - 1

This was split off #4488.

This looks good to me - can be merged ahead of #4488, the changes make sense even without it. @whit537 I'll let you take one last look before we merge

@rohitpaulk Cool, lgtm. :)


[1.9.4] - [Crash]: java.lang.NullPointerException: Unexpected error

If Requested I can make a quick video showcasing the issue at hand, though it's pretty much straight forward.
What happens:
When breaking a EnderIO Conduit it crashes.
This Crashlog points towards Wawla and EnderIO however the crash occurs when breaking the EnderIO Conduit not when looking at it. Thus I'm reporting it to both Devs.
What you expected to happen:
I'm expecting it to break without a crash :P
Steps to reproduce:

Break EnderIO
Crash
.... Profit?

Affected Versions (Do not use "latest"):

EnderIO: 1.9.4-<IP_ADDRESS>
EnderCore: 1.9.4-<IP_ADDRESS>
WAILA: 1.7.0-B3_1.9.4
WAWLA: 1.9.4-<IP_ADDRESS>
Minecraft: 1.9.4
Forge: <IP_ADDRESS>0

Your most recent log file where the issue was present:
http://pastebin.com/QSPuUhB2

this has been fixed 19 hours ago. thx anyways


chore(*): make compression-webpack-plugin a dependency

I discovered that our build depends on compression-webpack-plugin in a funny manner. And on the @latest version which is even funnier. So compression-webpack-plugin@latest hit version 1.0.0 and now it depends on webpack 2 or 3 Ooops 😊

LGTM! 🚢


Add an option

Add username and password property for proxy.
Fix issus #2169

It is already supported to add username and password to a proxy.
You may also pass arbitrary options with the curl key.


reference channel positions and brainvision

When I import BV data with the reference keyword set, the reference channel is at position 0,0,0 even though it is specified in the montage file.
(I don't understand that part of the BV code, sorry.)
@teonlamont

@jona-sassenhagen can you share a code snippet and data that you're using to get this behavior? I'm currently dealing with related issues (#2700, #2714) and could probably fix this simultaneously.

@jona-sassenhagen the reference argument was deprecated in place of the mne.io.add_reference_channels.

sorry for the severely delayed response :(

Had forgotten about this :)


Add support for Debian Wheezy

Add support for Debian Wheezy.

This requires building compiler tools to have GCC 4.9.


Add standalone typings file

Description
Add typings for v2.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

CC @VincentBel should be merged after #32

@VincentBel updated


Align question answering tasks with sub-domains

As pointed out by @thomwolf in #2255 we should consider breaking with the pipeline taxonomy of transformers to account for the various types of question-answering domains:

question-answering exists in two forms: abstractive and extractive question answering.
we can keep a generic question-answering but then it will probably mean diferrent schema of input/output for both (abstractive will have text for both while extractive can use spans indication as well as text).
Or we can also propose to use abstractive-question-answering and extractive-question-answering for instance.
Maybe we could have question-answering-abstractive and question-answering-extractive if somehow we can use a for a completion or search in the future (detail).
Actually I see that people are more organizing in terms of general and sub-tasks, for instance on paperwithcode: https://paperswithcode.com/area/natural-language-processing and on nlpprogress: https://github.com/sebastianruder/NLP-progress/blob/master/english/question_answering.md#squad
Probably the best is to align with one of these in terms of denomination, PaperWithCode is probably the most active and maintained and we work with them as well.
Maybe you want to check with a few QA datasets that this schema make sense. Typically NaturalQuestions, TriviaQA and can be good second datasets to compare to and be sure of the generality of the schema.
A good recent list of QA datasets to compare the schemas among, is for instance in the UnitedQA paper: https://arxiv.org/abs/2101.00178

Investigate which grouping of QA is best suited for datasets and adapt / extend the QA task template accordingly.

Closing this issue as the task_templates API has been deprecated.


CORE-2059 escapeObjectName has no respect for quotingStrategy on Postgres

Thanks. I merged the change into master rather than 3.4 since quoting changes is something I try to avoid in patch releases.


[Availability Zone] VM Placement in a Zone

/azp run

Changes will be tracked via https://github.com/microsoft/moc/pull/275

Changes will be tracked via https://github.com/microsoft/moc/pull/275


Create MockTextRenderer

In this PR we are creating MockTextRenderer. Similar to MockBatcher, it will
be used by CaptureViewElements to test UpdatePrimitives and DrawMethods().

I also changed all the rectangle methods to use (top_left and size).

Bug: http://b/228609901.

I made several changes including taking care of alignment in MockTextRenderer::AddText, si I'm asking for re-review.


ncdu command causes runtime error: slice out of range

I've found a crash issue with the ncdu command.
If I run it on my google drive, it loads the screen and starts doing a background list. If I move to an empty directory and then press the up arrow, rclone crashes with the below error.
I have a debug log as well, but it doesn't show anything more than the usual Google drive rate limiting etc.

What is your rclone version (eg output from rclone -V)
1.38 and tested with latest beta

Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu x86_64

Which cloud storage system are you using? (eg Google Drive)
Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone ncdu GD:/

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

panic: runtime error: slice bounds out of range

goroutine 1 [running]:
github.com/ncw/rclone/cmd/ncdu.(*UI).Draw(0xc4200f0000, 0xffffffffffffffff, 0xc420541a08)
	/home/travis/gopath/src/github.com/ncw/rclone/cmd/ncdu/ncdu.go:204 +0xbdd
github.com/ncw/rclone/cmd/ncdu.(*UI).Show(0xc4200f0000, 0x0, 0x0)
	/home/travis/gopath/src/github.com/ncw/rclone/cmd/ncdu/ncdu.go:488 +0x185
github.com/ncw/rclone/cmd/ncdu.glob..func1.1(0x0, 0x4)
	/home/travis/gopath/src/github.com/ncw/rclone/cmd/ncdu/ncdu.go:51 +0x41
github.com/ncw/rclone/cmd.Run(0xc420130000, 0x15e4800, 0xc420541d08)
	/home/travis/gopath/src/github.com/ncw/rclone/cmd/cmd.go:265 +0xa7
github.com/ncw/rclone/cmd/ncdu.glob..func1(0x15e4800, 0xc420131dc0, 0x1, 0x1)
	/home/travis/gopath/src/github.com/ncw/rclone/cmd/ncdu/ncdu.go:50 +0xc9
github.com/ncw/rclone/vendor/github.com/spf13/cobra.(*Command).execute(0x15e4800, 0xc420131d70, 0x1, 0x1, 0x15e4800, 0xc420131d70)
	/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/spf13/cobra/command.go:654 +0x2a2
github.com/ncw/rclone/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x15df040, 0xc4201e5f70, 0x4046a4, 0xc4200140b8)
	/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/spf13/cobra/command.go:729 +0x2fe
github.com/ncw/rclone/vendor/github.com/spf13/cobra.(*Command).Execute(0x15df040, 0xc4201c5de0, 0x20)
	/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/spf13/cobra/command.go:688 +0x2b
main.main()
	/home/travis/gopath/src/github.com/ncw/rclone/rclone.go:15 +0x31

I managed to replicate this thanks!
Will fix in a moment...

I've fixed this now - please find the fix here
https://beta.rclone.org/v1.38-227-g2cf808c8/ (uploaded in 15-30 mins)
Thanks for reporting

Thanks for the fix. (and the awesome program!)


Attempt to fix macOS-based release build of Windows Installer, fixes #1773

The Problem/Issue/Bug:
#1773
How this PR Solves The Problem:
This PR removes the SectionIn statements of the optional sections. The feature of installer types is not in this installer and could lead to problems. It's currently a guess that this resolves the issue but it's a starting point.
Manual Testing Instructions:
Rebuild ddev at CircleCI to verify the issue has solved or not.
Automated Testing Overview:
Nothing automated so far.
Related Issue Link(s):
Release/Deployment notes:

I kicked off a release build on this PR, https://circleci.com/gh/drud/ddev/16979 - The artifacts will be in https://circleci.com/gh/drud/ddev/16979#artifacts/containers/0 in a few minutes (at completion of build)

I'm going to close this because we found the culprit elsewhere, but thanks so much for this effort and I hope for a refactor of the improvements you made in another PR. Thanks!


tesseract: split outputs

cc maintainer @viric
tested manually on nixpkgs

@GrahamcOfBorg eval

Success on x86_64-linux (full log)
Attempted: tesseract
Partial log (click to expand)
strip is /nix/store/fzsyclvxz1p2ia83caniy93v8cwarg0j-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/a0zqd1jzgbr7fcnpjd2kdsmyhkq164jl-tesseract-3.05.00-dev/lib
patching script interpreter paths in /nix/store/a0zqd1jzgbr7fcnpjd2kdsmyhkq164jl-tesseract-3.05.00-dev
checking for references to /build in /nix/store/a0zqd1jzgbr7fcnpjd2kdsmyhkq164jl-tesseract-3.05.00-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/zgj5gmzlhl53mcplyr336vy9bjn0xm9q-tesseract-3.05.00-man
gzipping man pages under /nix/store/zgj5gmzlhl53mcplyr336vy9bjn0xm9q-tesseract-3.05.00-man/share/man/
strip is /nix/store/fzsyclvxz1p2ia83caniy93v8cwarg0j-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/zgj5gmzlhl53mcplyr336vy9bjn0xm9q-tesseract-3.05.00-man
checking for references to /build in /nix/store/zgj5gmzlhl53mcplyr336vy9bjn0xm9q-tesseract-3.05.00-man...
/nix/store/79l2nwky00gg2bg58r9hqqz8vk5zrqhh-tesseract-3.05.00-bin

Success on aarch64-linux (full log)
Attempted: tesseract
Partial log (click to expand)
strip is /nix/store/h0nc84ybvb8g724fwysvcghh1675wjli-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/xrp0f7lqkb9d49hp7rf1zjkjipj1w5sr-tesseract-3.05.00-dev/lib
patching script interpreter paths in /nix/store/xrp0f7lqkb9d49hp7rf1zjkjipj1w5sr-tesseract-3.05.00-dev
checking for references to /build in /nix/store/xrp0f7lqkb9d49hp7rf1zjkjipj1w5sr-tesseract-3.05.00-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/s6rqm76lh0ccmarcjxc1d86k3kij0jg5-tesseract-3.05.00-man
gzipping man pages under /nix/store/s6rqm76lh0ccmarcjxc1d86k3kij0jg5-tesseract-3.05.00-man/share/man/
strip is /nix/store/h0nc84ybvb8g724fwysvcghh1675wjli-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/s6rqm76lh0ccmarcjxc1d86k3kij0jg5-tesseract-3.05.00-man
checking for references to /build in /nix/store/s6rqm76lh0ccmarcjxc1d86k3kij0jg5-tesseract-3.05.00-man...
/nix/store/jiqzzrddbaksqrlllfnahfnqabkx0y8b-tesseract-3.05.00-bin

Success on x86_64-darwin (full log)
Attempted: tesseract
Partial log (click to expand)
strip is /nix/store/qvj6bdvy7vdaxi3my0nq8ghf14njh8wk-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/8l2myl8cnc4kc6885cj1asr2l0kdsc3b-tesseract-3.05.00/lib
patching script interpreter paths in /nix/store/8l2myl8cnc4kc6885cj1asr2l0kdsc3b-tesseract-3.05.00
strip is /nix/store/qvj6bdvy7vdaxi3my0nq8ghf14njh8wk-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/l1d30n7pyia5gizid6l349ybyy2vx060-tesseract-3.05.00-dev/lib
patching script interpreter paths in /nix/store/l1d30n7pyia5gizid6l349ybyy2vx060-tesseract-3.05.00-dev
gzipping man pages under /nix/store/a0k9rz7sbi8ia6qfqid5xy1abkw0yvrw-tesseract-3.05.00-man/share/man/
strip is /nix/store/qvj6bdvy7vdaxi3my0nq8ghf14njh8wk-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/a0k9rz7sbi8ia6qfqid5xy1abkw0yvrw-tesseract-3.05.00-man
/nix/store/344kqc0rqghbxwwvhdqkavjzbhwrgrrz-tesseract-3.05.00-bin

@GrahamcOfBorg build python36Packages.pyocr

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: python36Packages.pyocr
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Failure on x86_64-linux (full log)
Attempted: python36Packages.pyocr
Partial log (click to expand)
writing pyocr.egg-info/PKG-INFO
writing dependency_links to pyocr.egg-info/dependency_links.txt
writing requirements to pyocr.egg-info/requires.txt
writing top-level names to pyocr.egg-info/top_level.txt
reading manifest file 'pyocr.egg-info/SOURCES.txt'
writing manifest file 'pyocr.egg-info/SOURCES.txt'
running build_ext
error: /nix/store/jghn81pr8xnisrvn8sizalnz7sddigcq-tesseract-3.05.00-bin/lib/libtesseract.so: cannot open shared object file: No such file or directory
builder for '/nix/store/40zgwkj1bm75n71rjy1jqpf8rldp46zx-python3.6-pyocr-0.4.7.drv' failed with exit code 1
error: build of '/nix/store/40zgwkj1bm75n71rjy1jqpf8rldp46zx-python3.6-pyocr-0.4.7.drv' failed

Failure on aarch64-linux (full log)
Attempted: python36Packages.pyocr
Partial log (click to expand)
writing pyocr.egg-info/PKG-INFO
writing dependency_links to pyocr.egg-info/dependency_links.txt
writing requirements to pyocr.egg-info/requires.txt
writing top-level names to pyocr.egg-info/top_level.txt
reading manifest file 'pyocr.egg-info/SOURCES.txt'
writing manifest file 'pyocr.egg-info/SOURCES.txt'
running build_ext
error: /nix/store/cnsdnv92jxvjmc8cm7icn155jj81djca-tesseract-3.05.00-bin/lib/libtesseract.so: cannot open shared object file: No such file or directory
builder for '/nix/store/drhj2g7im50frf2w11wz1i63qa2xji1p-python3.6-pyocr-0.4.7.drv' failed with exit code 1
error: build of '/nix/store/drhj2g7im50frf2w11wz1i63qa2xji1p-python3.6-pyocr-0.4.7.drv' failed

This seems to break pyocr.

@xeji: Good catch! I’ve adjusted the input of pyocr, but it seems to have problems running the tests now. Can you take a look at it?
cc @aszlig
@GrahamcOfBorg build python36Packages.pyocr

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: python36Packages.pyocr
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Failure on aarch64-linux (full log)
Attempted: python36Packages.pyocr
Partial log (click to expand)
AssertionError: False is not true : English training does not appear to be installed. (required for the tests)

----------------------------------------------------------------------
Ran 65 tests in 40.159s

FAILED (failures=1, errors=32)
Test failed: <unittest.runner.TextTestResult run=65 errors=32 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=65 errors=32 failures=1>
builder for '/nix/store/8ig3kv77idrw8aqqpjghjhcwl6p61xpg-python3.6-pyocr-0.4.7.drv' failed with exit code 1
error: build of '/nix/store/8ig3kv77idrw8aqqpjghjhcwl6p61xpg-python3.6-pyocr-0.4.7.drv' failed

Success on aarch64-linux (full log)
Attempted: tesseract
Partial log (click to expand)
/nix/store/6xhmym3wi0brcjjlhigj81g2b717fqkh-tesseract-3.05.00-bin

Success on x86_64-linux (full log)
Attempted: tesseract
Partial log (click to expand)
checking for references to /build in /nix/store/a1rb48ay518x6cmkx9m756fxkw109xnz-tesseract-3.05.00-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/kk0g46avz95n3kjv68yasrvb70i1z7ar-tesseract-3.05.00-man
gzipping man pages under /nix/store/kk0g46avz95n3kjv68yasrvb70i1z7ar-tesseract-3.05.00-man/share/man/
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/kk0g46avz95n3kjv68yasrvb70i1z7ar-tesseract-3.05.00-man
checking for references to /build in /nix/store/kk0g46avz95n3kjv68yasrvb70i1z7ar-tesseract-3.05.00-man...
shrinking RPATHs of ELF executables and libraries in /nix/store/q5ilgp0szfc67awq8zrzw8cg6kybaih4-tesseract-3.05.00
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/q5ilgp0szfc67awq8zrzw8cg6kybaih4-tesseract-3.05.00
checking for references to /build in /nix/store/q5ilgp0szfc67awq8zrzw8cg6kybaih4-tesseract-3.05.00...

Success on x86_64-darwin (full log)
Attempted: tesseract
Partial log (click to expand)
patching script interpreter paths in /nix/store/nfhilb8q12rgrc2f71rx0lrrmhiqyb0m-tesseract-3.05.00-data
strip is /nix/store/qfxcr8c4fg7lkybrny9n2sb77bmippdx-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/as0bssl8kr9dfhz3pkn2wh3q3ns3l1gr-tesseract-3.05.00-dev/lib
patching script interpreter paths in /nix/store/as0bssl8kr9dfhz3pkn2wh3q3ns3l1gr-tesseract-3.05.00-dev
gzipping man pages under /nix/store/gl9srm2n93x0l2fyaqkr6xsfq4x3f1gh-tesseract-3.05.00-man/share/man/
strip is /nix/store/qfxcr8c4fg7lkybrny9n2sb77bmippdx-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/gl9srm2n93x0l2fyaqkr6xsfq4x3f1gh-tesseract-3.05.00-man
strip is /nix/store/qfxcr8c4fg7lkybrny9n2sb77bmippdx-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/a3gz8j0wj57ag7n1d3njhvfaivx75xci-tesseract-3.05.00
/nix/store/nm6m2azzq2kjh7yi8jz83iqf2my3rg6w-tesseract-3.05.00-bin

Failure on x86_64-linux (full log)
Attempted: python36Packages.pyocr
Partial log (click to expand)
pyocr.error.TesseractError: (-1, 'Unable to find output file last name tried: /build/tess_74qngg9m/output.hocr')

----------------------------------------------------------------------
Ran 65 tests in 94.406s

FAILED (errors=24)
Test failed: <unittest.runner.TextTestResult run=65 errors=24 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=65 errors=24 failures=0>
builder for '/nix/store/g68sj0qh6x6m5bk97z6g0l6aq78gixa3-python3.6-pyocr-0.4.7.drv' failed with exit code 1
error: build of '/nix/store/g68sj0qh6x6m5bk97z6g0l6aq78gixa3-python3.6-pyocr-0.4.7.drv' failed

I believe  pyocr needs some additional patching in  https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/pyocr/paths.patch to use the correct value of NIX_TESSDATA_PREFIX everywhere. I don't know the package well enough to know exactly what to look for.


Cannot rename file v0.6.0 beta

Describe the bug
After choosing to rename the file on the interface, there is no message of success or failure, when I check the network, I see HTTP Code 500
To Reproduce
Steps to reproduce the behavior:

Go to http://localhost:8080/#/spiders/<spider_id>/files
Click on 'rename'
F12 (if you use Google Chrome) or inspect network
See error

Expected behavior
Can rename a file via UI
Screenshots

Can you check the master node's container log?

Can you check the master node's container log?

This is container logs after I choose rename file


System.NullReferenceException at GalacticScale.PatchOnWhatever.UpdateCursorView

Hi,
when I try to make a new GS2 game using vanilla GS2 generation I get the following error as soon as I open the starmap.
Mods from r2modman:
Bepinex
LDBtool
RailgunsRetargeting
NebulaMultiplayerModApi
GS2
BetterStats
CommonAPI
DSPModSave
CloseError

Is this a GS2 bug or caused by something else? Thanks for help.

Sounds like a bug with GS2, will look into it. You might be the first person to try Vanilla generation in a while :)

Fixed the bug but I need to test before releasing. Should be up ~5 hrs from now after I get home from work

The error is now gone. Thank you!

No problem! :D
For future reference, if you can join our discord I have notifications enabled, and github emails go to my work email address which I don't check over the weekend, so discord is a much quicker way to get in touch :)


Water Sensors: HFV Indigo Brooke (164671)

R1B (489) is not transmitting any middle sensor data

that sensor is one of the old ones. will have to send a replacement for it. it is reading 865.1%

Emailed 6/1


Wrong Resistancecalculation

Pastebin: https://pastebin.com/4eK1aBuW
Screen from my defense tab: http://prntscr.com/izu7o1
The Pastebin is without endurance charges, as I am sitting in my hideout. I have no res auras etc. Yet I am ingame with 87% cold res but on PoB it's only 72%.

Did you take Alira for the bandit? If so, your pastebin doesn't reflect that.

 I totally forgot about her. Thanks! I wondered for at least 8 hours today.


Big update

3.0.0
added: app as default label
feat: matching short name by Release.Name
drop: deprecation notes
feat: new _image.tpl helper with supported digest
fix: shortcut with with go template operator
feat: new _containers.tpl helper
bump: hpa version
feat: service shortcut
fix: keda api typo
feat: _job.tpl helper
drop: hooks annotations
fix: annotations
fix: add priorityClassName to workloads generals
fix: add image tpl
refactor: defaultImage* -> image.*
feature: add network policies resources
feature: add keda resources
docs: update
refactor: default ns for prom rules moved to metrics
and more...

I'm so sorry for the sloppy PR

Hello! Thanks for your PR, I will review it as soon as possible!

@zhilyaev many thanks!
@artemdanielyan i think we needs to combine our efforts. what PR will be first?

I tested this chart. And I found a few bugs. I will push new commits later.

Hello, small update. I'm still testing this PR in my infrastructure. I will try to post update on this and other PRs as soon as possible. Meanwile I need to fix some ongoing issues on 2.x.x, so there will be some patches before we accept PRs.

@artemdanielyan @GRomR1 try this one
helm pull oci://ghcr.io/zhilyaev/uni this updated chart.

This is my rethinking of your work , check it out https://github.com/zhilyaev/uni-chart/


⚠ Mobitopup has degraded performance

In 9abb29b, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 27346 ms

Resolved: Mobitopup performance has improved in c97b38f.


events & trace not woring

request /v2/events and /v2/trace always error

findRoot method can't woring well


Unity Nuget Package doesn't use more specific packages as dependencies

Nuget lets you consolidate dependencies, but the consolidated unity packge just contains DLLs. This leave us in the situation where a package may reference Unity and another package may reference Unity.Container and Unity.Abstractions which are different than the version that are in the DLLs of the consolidated unity package.
I think that building the consolidated unity package with references to all of the more specific packages will allow us to consolidate those.
Thanks.

My problem is that I have some dependencies that reference the Consolidate Unity and some that reference the individual packages. b/c Unity Consolidated doesn't know that it is linked to the individual packages, I can't manage those at the same time. The 2 NuGet packages will overwrite the reference depending on which package was installed last.
Having a consolidated package makes sense, but the same thing could be achieved by having the consolidated package be a collection of dependency packages.  that would allow Nuget to let the consuming project pick which version of each specific package to use if there are version conflicts.   I could try to put together a NuGet nuspec if you would like to see an example of what I'm suggesting.

I know how it is done and chose to not include dependencies. There is whole discussion about it on one of the Prism threads.
The reason behind this decision is complications companies face when on boarding these packages. It has to go through security evaluations and is much simpler when done as a single package. Referencing outside sources does not work in these cases.


API version

Hi,
We are interacting wih Oneview 4.10 for Synergy via ansible. In the readme.md, https://github.com/HewlettPackard/oneview-ansible#4-setting-your-oneview-version seems to be out-of-dated because version 4.10 is not refered, so API version 800 must be included, according to the following documentation:
http://h17007.www1.hpe.com/docs/enterprise/servers/oneview4.1/cicf-api/en/index.html#about
Thank you!

Hi @anberra - We have not yet supported API800 for OneView Ansible but will be supporting it soon. Please refer to https://github.com/HewlettPackard/oneview-ansible/blob/master/endpoints-support.md for the API's and endpoints supported till now.
Please note some of the resources which has no change in API800 will work without any issues.

Closing this since we are not yet supporting API800


How to change chunkSize bassed on file size?

Is there a way to change chunkSize based on file size? For example, if I drop 100 MB file, then chunkSize would be 1 mb, and if I drop 10 GB file, chunkSize would be 10 MB.

The chunk size depends on the mean number of bytes transferred between network errors, which is independent of the size of the file. What you may find more useful is a way to change the chunk  size depending on the network path between client and server.


chore(table): clean column definitions and naming in story

Summary
Cleaned up Table story (updated names, removed some test columns from the stateful example)

:tada: This PR is included in version 1.31.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.31.1 :tada:
The release is available on npm package (@release-1.x dist-tag)
Your semantic-release bot :package::rocket: