How to build compiler_builtins in optimized mode

Hi,
When we run cargo xbuild  --release ... --target x86_64-kernel.json, the memcpy being compiled is just a simple un-optimized for-loop. Looking at the source code, I think xargo builds sysroot crates in release mode by default.
I think there's something else in our settings that prevents xargo from building an optimized compiler_builtins but I am not sure what am I missing. We borrowed some of the setups, including the target.json, from Writing an OS in Rust.

This isn't a bug in cargo-xbuild; just like xargo all of the sysroot crates (libcore, liballoc, compiler_bultins) are built with release by default. See: https://github.com/rust-osdev/cargo-xbuild/blob/df6db0706b061c474514365a62d80d5d6a1909ed/src/sysroot.rs#L120
This issue you're hitting is https://github.com/rust-lang/compiler-builtins/issues/339 which notes that the builtin memcpy implementation is just a simple un-optimized for-loop. If you want the no_std default implementation to be better, I would start there. Note that normally Rust just uses the memcpy defined by libc (which is very optimized, often written in arch-specific assembly); however, for no_std, this isn't really an option. This is esentially what GCC does as well.
The cargo-xbuild docs note that the memcpy metadata option can be used to enable/disable the default memcpy implementation, which should allow you to workaround this without changing compiler_builtins.
 Then, you can have your crate (or an external crate) provide the appropriate definitions.

Note that you can also link a custom memcpy implementation. For example, I got something working using musl via the following steps:

Install musl, which (for my OS) installs a file /usr/lib/musl/lib/libc.a
Add lines to your build.rs to tell Cargo where to find the library. In my example, this was:println!("cargo:rustc-link-search=native=/usr/lib/musl/lib");
println!("cargo:rustc-link-lib=static=c");

Now building w/ package.metadata.cargo-xbuild.memcpy = false works without linking errors.

Note that this approach is very application specific. Your libc.a must be compatible with your no_std target.  My example only works because:

The installed musl library is for x86_64-unknown-linux
The musl implementations for memcpy (and friends) doesn't use OS functionality (unlike glibc).
My no_std target only needs to work on bare-metal x86_64

Finally, note that this complexity may not be worth it. Depending on your application, optimizing memcpy might have very little effect, as usually memory speed is the bottleneck for these sorts of operations.

@josephlr Thank you very much! Your detailed guide helps us a lot!
We tried using Redox's implementation but found it not very fast and kinda buggy(there's an infinite recursion in memset). We thought that the compiler could be smart enough to optimize the un-optimized for-loop quite a bit, at least some loop-unrolling as we see in the compiler explore. We didn't know your solution exists and we were being lazy about writing and maintaining a fast memcpy by ourselves so we thought that there might be a way to ask the compiler to do more optimization for us.

@tjhu https://github.com/rust-lang/compiler-builtins/pull/365 makes it so x86_64 targets will now build with a highly optimized memcpy and friends (using REP MOVSB). If that gets merged, then you should be able to use the very fast memcpy by default.
@phil-opp I think this can be closed.


No 3.0.0 version of Microsoft.NETCore.App

Some build systems use the refs in the Microsoft.NETCore.App nuget to build instead of installing the SDK of a specific version. Is there an ETA for the release of the 3.0.0 version of this package? I'm looking at package here: https://www.nuget.org/packages/Microsoft.NETCore.App

@vivmishra @leecow

@wtgodbe @danmosemsft

We no longer produce this package, instead, .NET Core 3.0 uses targeting packs, apphost packs, and runtime packs. Check out https://github.com/dotnet/designs/pull/50 for more details.
The targeting pack has the refs, e.g. https://www.nuget.org/packages/Microsoft.NETCore.App.Ref/.


DO NOT MERGE: 4.0: [stdlib] String: drop TLS setText cache.

4.0 cherry-pick of
https://github.com/apple/swift/pull/9858
CCC TBD

@swift-ci please test

The OX test passed. @shahmishal can you verify?

@airspeedswift can you review please?


Visibility with Monk's Common Display

Would it be possible to make the image hover visible when using Monk's Common Display?
Currently Monk's Common Display hides the UI for specified player(s) which is great for in-person play but the Image Hover is also hidden.

Please disregard - was an issue on my end.


[Feature] Add maxUnit to prettyDuration

Hi,
The number of units can be fixed using "tersity" and "upperTersity", but it would be nice if it was determined by "upperTersity".
For example:
prettyDuration(
          const Duration(seconds: 5),
          abbreviated: true,
          tersity: DurationTersity.second,
          upperTersity: DurationTersity.week,
          //maxUnit: 2,
)

Current: 5s
Expectation: 5s
prettyDuration(
          const Duration(hours: 8, minutes: 3, seconds: 5),
          abbreviated: true,
          tersity: DurationTersity.second,
          upperTersity: DurationTersity.week,
          //maxUnit: 2,
)

Current: 8h, 3mins, 5s
Expectation: 8h, 3mins
prettyDuration(
          const Duration(days: 10, hours: 8, minutes: 3, seconds: 5),
          abbreviated: true,
          tersity: DurationTersity.second,
          upperTersity: DurationTersity.week,
          //maxUnit: 2,
)

Current: 1w, 3d, 8h, 3mins, 5s
Expectation: 1w, 3d

Fixed in 4.0.3! Thanks for the feature request!


Update Agent and Pipeline syntax documentation

Creates 11-agent-config with examples of agents and configuration options
Updates 20-pipeline-syntax about the different types of conditionals

Something that was unclear to me was the inherent differences between when on a step and when on a pipeline. So I fleshed out the original branches section and added an over arching Pipeline Conditionals section. As the previous branch conditional was related to top level pipelines.

Something that was unclear to me was the inherent differences between when on a step and when on a pipeline.

when on a pipeline work same as on steps (it just do not support all types step-when does) but apply for all steps in that pipeline

to: dfc7769556213b36679ad9b9ad65fc45533666f1 -> It reverts a smal change I got wrong when reading and thought i have to fix it ...

ok did sort the config a bit:

and also move when docu for steps into it's own page ... we might eventually add a sub-folder for that later ...

bit thank's for the initial work :)


Add support for loongarch64

Fix build on linux/loongarch64.

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

We will need you to sign the CLA. In addition, this should be added to the table in the loader design doc alongside the rest of the platforms.
Also, we tend to follow Debian, who uses loong64 as the architecture name: https://wiki.debian.org/Ports/loong64

I don't think Loongson can sign a Khronos Group agreement due to U.S. sanctions.

@rpavlik PTAL.

@utzcoz Done.

@rpavlik Done.


Firebase Subscription Mirror

This PR introduces FirebaseSubscriptionMirror - a SubscriptionService client resending all the received entity state updates into a Firebase Cloud Firestore database.
A distinguishing feature of Firestore is the push API, which allows multiple clients subscribe to a given slice of data. Unlike its predecessor Firebase Realtime Database, Firestore scales automatically, which is generally a good thing for a turn-key solution.
This mechanism allows clients of a Spine-based service subscribe to updates of given data without risking to overload the service.
As the FirebaseSubscriptionMirror is a client of SubscriptionService, a single instance of the mirror reflects several bounded contexts. We recommend having a single instance of FirebaseSubscriptionMirror per JVM. This approach allows the library users to reuse the SubscriptionService by introducing more clients if necessary.
Publish
To expose the data into Firestore, create a FirebaseSubscriptionMirror and start reflecting required entity types:
final BoundedContext usersContext = // ...
final BoundedContext billingContext = // ...
// Obtain an instance of Firestore
final Firestore firestore = // ...
final FirebaseSubscriptionMirror mirror =
        FirebaseSubscriptionMirror.newBuilder()
                                  .setFirestore(firestore)
                                  .addBoundedContext(usersContext)
                                  .addBoundedContext(billingContext)
                                  .build();
// Obtain the type of the entities to reflect
final TypeUrl userType  = // ...
final TypeUrl invoiceType  = // ...
mirror.reflect(userType);
mirror.reflect(invoiceType);

After executing this code snippet, the updates of User and Invoice entities will be reflected on the Firestore.
Subscribe
The data is written into the Firestore as follows:

A collection is created in the database root. The collection is called after the reflected entity type URL.
Each Entity instance may have at most one document in that collection. The data in that document is updated upon the entity state updates. The document ID is a function of the entity ID, though should never be relied on.
Each document has 2 fields:

"id" - a string representation of the entity ID. Obtained with Stringifiers.toString(...);
"bytes" - a BLOB containing the serialized entity state.

Multitenancy
In multitenant bounded contexts users may want to use a custom location for each tenant. This is possible with a custom reflection rule:
final CollectionReference root = // Dedicate a collection for all subscriptions.
final Function<Topic, DocumentReference> rule = topic -> {
    // Each tenant has own document.
    final String userId = topic.getContext().getTenantId().getValue();
    return root.document(userId);
};
final FirebaseSubscriptionMirror mirror =
        FirebaseSubscriptionMirror.newBuilder()
                                  .setReflectionRule(rule)
                                  .addBoundedContext(myBoundedContext)
                                  .build();
mirror.reflect(TypeUrl.of(MyEntity.class));

When calling mirror.reflect(type) in a multitenant context, updates of all the tenants start being reflected.

@armiol
Not sure if this work belongs to todo-list. Let's discuss.

@armiol, PTAL.

@alexander-yevsyukov, PTAL.

@dmdashenkov, why is it  .setDatabase(firestore) rather than .setFirestore(firestore)?

In multitenant bounded contexts it is required to use reflect(Topic, TenantId) method instead of reflect(Topic). The reflect(Topic, TenantId) should be called for each tenant.

The client-side code should only know about tenant once. The rest of the API should be the same.

@armiol, please look into this PR too.

Codecov Report

Merging #41 into android-app will increase coverage by 0.3%.
The diff coverage is 99.03%.

@@               Coverage Diff                @@
##             android-app      #41     +/-   ##
================================================
+ Coverage          93.37%   93.68%   +0.3%
- Complexity           452      475     +23
================================================
  Files                 66       70      +4
  Lines               1781     1884    +103
  Branches              70       74      +4
================================================
+ Hits                1663     1765    +102
  Misses               103      103
- Partials              15       16      +1

@armiol, PTAL.

@armiol, PTAL.

@armiol, PTAL.

@armiol, PTAL again.

This PR is now being merged.
The CI build is currently failing since this patch relies on a yet unavailable version of Spine. As soon as Tenant events PR is merged, all the checks should pass successfully.


saved_checkpoint.hdf5 throwing keyerror

Hi Kartik,
When i' m trying to load the saved_checkpoint.hdf5 file, i'm getting below error looks like it is corrupted.
line of code : test_on_iam(show=True, partition="validation", checkpoint=checkpoint_path, uncased=True)
Error : from load_easter_model(checkpoint_path) function
KeyError: 'Unable to open object (bad heap free list)'

Hey Utham,
Could you share full error trace?
And if possible, steps to reproduce!

Hi Kartik,
I'm running it on google colab and it is working fine now. It was my mistake that i have imported same python files with different names into the environment and because of this probably i was getting above error yesterday. Its all good now.
By any chance , is there a code repo for the first version of EASTER model.


Increase page timeout

It looks like the https://api.wevoteusa.org pages are timing out after ~45-60 seconds. We have some scripts that take 2-3 minutes. Can we extend the timeout to 4 minutes?

Decided not to increase timeout - as application still continues to sync data in background even though HTTP request times out.
Having a long timeout could cause issues in production down the road as well.


[apis/Google.Cloud.Asset.V1] feat: Release of relationships in v1, Add content type Relationship to support relationship export Committer: lvv@

This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/441aa18a-7c97-4d94-9b75-e3958ce22c54/targets

[ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 391065985
Source-Link: https://github.com/googleapis/googleapis/commit/b9e69f850f1c8b8c247078d90b92abdcb6aabffc

(Closed and reopened to retrigger the workflow.)


Mutually recursive datatypes

We know how to do it, it's just a case of implementing it.
I think @effectfully is interested, but someone else may have to do it depending on time.

"We know how to do this" meaning "it's in the paper".

It's even implemented, just not in Haskell.


Help for MultiLiteralArgument shows the arg name instead of the literal tezt

CommandAPI version
9.3.0
Minecraft version
1.20.4
Are you shading the CommandAPI?
Yes
What I did
    new CommandAPICommand("invite")
        .withShortDescription("Allow a player to join the server")
        .withArguments(new MultiLiteralArgument("type", "java", "bedrock"))
        .withArguments(new StringArgument("player"))
        .executes(
            (CommandSender sender, CommandArguments args) ->
                ...

What actually happened
> help invite
[22:28:16 INFO]: --------- Help: /invite -------------------------
[22:28:16 INFO]: Allow a player to join the server
[22:28:16 INFO]: Usage:
[22:28:16 INFO]: - /invite <type> <player>
[22:28:16 INFO]: - /invite <type> <player>

What should have happened
> help invite
[22:28:16 INFO]: --------- Help: /invite -------------------------
[22:28:16 INFO]: Allow a player to join the server
[22:28:16 INFO]: Usage:
[22:28:16 INFO]: - /invite java <player>
[22:28:16 INFO]: - /invite bedrock <player>

Ideally if the number of options is small (eg. <= 5) all options should be listed, otherwise just one line with the name:
> help invite
[22:28:16 INFO]: --------- Help: /invite -------------------------
[22:28:16 INFO]: Allow a player to join the server
[22:28:16 INFO]: Usage:
[22:28:16 INFO]: - /invite <type> <player>

Server logs and CommandAPI config
No response
Other
No response

Thanks for your report!
Unfortunately, this isn't as straight forward as I initially thought because at the point where the usage is generated, we do have no knowledge about which argument is used at which point.
I am interested in looking into this as for literal arguments the literal value should be displayed instead of the node name.

Fixed in version 9.4.0.


SSH Generators

Description of the new feature / enhancement
ssh and other key generators and secure managers, integrations for most used by devs services like GitLab GitHub etc
Scenario when this would be used?
auth purposes e.g. for GIT usage
Supporting information
something like in Kraken or fork

Hi @Adam0Wasik
Can you elaborate on this? Are you asking a new GUI utility to generate and manage SSH keys?
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
/needinfo

Hi @davidegiacometti,
yes I'd love to see a new utility, I know a lot of devs are using powertoys in and outside work environment. I think that new section to generate and manage JWT tokens, GUID's, SSH keys and others would be beneficial for many.
Thanks for reply


Fixes #2437

getting the canonical atom ranking no longer results in molecules having a
RingInfo structure that's been initialized but contains nothing.
Note that the fix changes the SMILES generated for some molecules that have not been fully sanitized (i.e. for which ring perception has not been done).  The only manifestation of this in the tests was for the Python MMPA tests, but it could also occur elsewhere.

I think I've seen this before where I would get mol frags from findSubgraphsFromNtoM and the smiles strings would end up looking like:
"Cc"
"cC"
which I thought was odd and not really canonical.  I'm assuming this is related.  I might have to check this, but I do worry about unfoseen side effects like you saw in the MMPs.

Yep, for these strange non-sanitized cases it could make a difference.
But if the molecule hasn't been sanitized, there's really no guarantee that the SMILES is canonical anyway, so I don't think this is a massive problem.

@greglandrum once you fix the conflicts you can merge


Release Steward

Make a new release of Steward.

Released https://github.com/profianinc/steward/releases/tag/v0.2.0


[FEATURE] Update feature branch guidance for how to update branches

Is your feature request related to a problem?
We've seen some confusion when it comes to how to keep feature branches updated and sync'd with main. We can provide some additional guidance in https://github.com/opensearch-project/.github/blob/main/CONTRIBUTING.md#feature-branches to reduce that.
What solution would you like?
The feature team is responsible for opening a PR when they would like the feature branch to be updated. The simple and easiest way is to just raise a PR from main to the feature branch.
What alternatives have you considered?
Do you have any additional context?
An example of a PR with confusion: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3273

Can we introduce automation for this? Maybe a bot that merges main to feature branches on demand?

We could, but that removes some control from a feature team, and requires more frequent pulls. But it may be a tradeoff worth making.


Cache sub-component instance when rendering

Should this be an RFC?

[X] This is not a substantial change

Which package is this a feature request for?
Task (@lit/task)
Description
When you render a sub-component instance in the complete function of a Task the sub-component is being re-instantiated every time the Task re-runs. This is not great because thus the sub-component will lose state every time.
It would be great if the sub-component instance would just get the updated bound data and the DOM changes would happen only where that data is used without re-rendering the whole component again.
Right now if you don't have the case where you would run the Task only once and render a sub-component the Task feature is not very useful for using dumb sub-components that need data updates in response to some user interaction.
Thank you!
Code example:
`import { LitElement, css, html } from 'lit'
import { MyComponent } from './my-component';
import { Task } from '@lit/task';
export class MyElement extends LitElement {
static get properties() {
return {
count: { type: Number }
}
}
constructor() {
super()
this.count = 0
}
_apiTask = new Task(
this,
([count]) => count,
() => [this.count]
);
render() {
  return html`
        ${this._apiTask.render({
      pending: () => html`Loading user info...`,
      complete: (count) => html`<my-component .data="${count}"></my-component>`,
    })}
  `
}

_onClick() {
  this.count++
}

}
}
window.customElements.define('my-element', MyElement)`
Alternatives and Workarounds
I guess a workaround would be to keep that state outside of the child component in the parent component and feed it via bound reactive properties every time.

This is pretty easy to do using the cache directive. Here's an example.
cache(this._apiTask.render({...})
In general, it's not clear that you'd aways want this behavior, and it'd also be a breaking change. So we probably wouldn't just change the base behavior, but probably for the majority of cases, yes, this makes sense and you can use cache to do it.

I think cache(this._apiTask.render({...})is the right solution here. We strive for features that compose well together, and adding caching on top of task's render helper does that well and is the same pattern you'd use for any other render helper.
I think we can close this as working. @mihaimd if this doesn't work for you, let us know.

Thank you for replying, I went with the other solution to render my component outside the task and just use the task to get the data, but using the cache makes total sense. I will refactor in the future.
All the best,
Mihai


Team 1 & Team 2: Fix bugs & Alter browse UI & Enhancements

Title
Fix bugs & Alter browse UI & Enhancements & Script to delete oldest inspection records
Description
Team-1

Fix recent reviews bug link
Alter the browse UI so that user can see the map even when they scroll down the restaurants link
Fix remove avatar bug link
fixes the bug with duplicate entries in recent activity feed and similar restaurant swipers link
creates a python script to delete all the oldest inspection records to free up the data base

Team-2

modify the review edit and delete request url in user-reviews page to be using HTTP POST & DELETE
modify the registration page to only require users fill in basic info (e.g., email, username & PWD), other personal info (e.g., phone number, addresses) can be left as blank
add the share function which allows users to share a restaurant via email
modify the warning to be a pop up window with alert for guest users trying to leave or report review and will redirect to login page

Types of changes

[x] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[x] Enhancement

circileci config added to this commit


serpent: precommit check parameter violation for swiftc has been detected.

Pull Request Description

Prevent overriding of custom swiftc path by default xcrun output for Darwin.

Acceptance Criteria
To be accepted into the Swift source compatibility test suite, a project must:

[x] be an Xcode or swift package manager project
[x] support building on either Linux or macOS
[x] target Linux, macOS, or iOS/tvOS/watchOS device
[x] be contained in a publicly accessible git repository
[x] maintain a project branch that builds against Swift 4.0 and passes any unit tests
[x] have maintainers who will commit to resolve issues in a timely manner
[x] be compatible with the latest GM/Beta versions of Xcode and swiftpm
[x] add value not already included in the suite
[x] be licensed with one of the following permissive licenses:

[x] MIT

[x] pass ./project_precommit_check script run

Ensure project meets all listed requirements before submitting a pull request.

@swift-ci test

@clackary Can you check it?

Thanks for the feedback @lolgear! You're right about the parameter being overwritten within the function (at least for Darwin platforms). The swiftc flag is only necessary on non-Darwin platforms where we can't query xcrun for the currently selected swiftc.
I think it should be more clear that this is desired behavior. I've opened #365, which should address this.

@clackary
Well, I have Xcode-beta in ~/Downloads folder which I would like to use to check latest Swift, of course.

@lolgear
There are a few ways to do this. project_precommit_check is basically just some extra checks around runner.py.
If you'd like to use project_precommit_check, you'd need to switch to the Xcode in your Downloads folder. Something like this should work... sudo xcode-select --switch ~/Downloads/Xcode-beta.app
Or, you could use runner.py directly. There are more flags and options here, and should provide some extra flexibility.
./runner.py --swift-branch swift-5.1-branch --swiftc ~/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --projects projects.json --include-repos 'path == "Base64CoderSwiftUI"' --include-actions 'action.startswith("Build")'

@clackary
I still don't see any reason to opt-out this parameter on Darwin platforms.
Why I can't just pass this parameter. It will be valid, I suppose, no?
Or give me an opportunity to pass path to Xcode.app as a parameter to make your black magic in ./runner.py

I think the original idea was to use project_precommit_check to establish the configuration works with current version before testing the master/release branch compilers, which is why it enforced a certain version. If using runner.py directly is too difficult, I guess it would make sense to allow project_precommit_check to do this.
I've updated the other PR to relax the version check, and provide the functionality you're requesting.

@lolgear #365 has merged, which should give you the behavior you requested. Thanks for the feedback here!


s3: Add S3_OBJECT_KEY_FORMAT env. ref #251

Patch for specifying customized s3_object_key_format.
Signed-off-by: Masahiro Nakagawa<EMAIL_ADDRESS>

off topic: DockerHub seems to restrict automated build definitions up to 25.
How do we treat old images such as debian-elasticsearch6 and debian-kafka?

How do we treat old images such as debian-elasticsearch6 and debian-kafka?

Currently, I have deleted some arm64 rules.
We need to remove older version images like es6/kafka after announcement.


Unexpected ArgumentError: invalid byte sequence in UTF-8

I know that this is a know issue and that it has been handled in the past, but it was my understanding after looking at the previous issues (#190, #187, #220) that I should expect a MetaInspector::RequestError when there's a problem decoding a site, but I have one url that is actually throwing an ArgumentError, which is kind of unexpected and a bit broad to handle.
Here's a sample session showing the issue:
root@b9d862866991:/app# cat Gemfile | grep metainspector
gem 'metainspector', '= 5.6.0'
root@b9d862866991:/app# bundle exec rails c
Loading development environment (Rails <IP_ADDRESS>)
[1] pry(main)> MetaInspector.new('http://pharmaagentur.ch/')
(pry) output error: #<ArgumentError: invalid byte sequence in UTF-8>
/bundle/gems/metainspector-5.6.0/lib/meta_inspector/parsers/texts.rb:60:in `gsub'
/bundle/gems/metainspector-5.6.0/lib/meta_inspector/parsers/texts.rb:60:in `block in find_best_title'
/bundle/gems/metainspector-5.6.0/lib/meta_inspector/parsers/texts.rb:60:in `map!'
/bundle/gems/metainspector-5.6.0/lib/meta_inspector/parsers/texts.rb:60:in `find_best_title'
/bundle/gems/metainspector-5.6.0/lib/meta_inspector/parsers/texts.rb:13:in `best_title'
/bundle/gems/metainspector-5.6.0/lib/meta_inspector/document.rb:64:in `to_hash'
/bundle/gems/awesome_print-1.8.0/lib/awesome_print/formatter.rb:118:in `convert_to_hash'
/bundle/gems/awesome_print-1.8.0/lib/awesome_print/formatter.rb:47:in `awesome_self'
/bundle/gems/awesome_print-1.8.0/lib/awesome_print/formatter.rb:28:in `format'
/bundle/gems/awesome_print-1.8.0/lib/awesome_print/inspector.rb:115:in `unnested'
/bundle/gems/awesome_print-1.8.0/lib/awesome_print/inspector.rb:74:in `awesome'
/bundle/gems/awesome_print-1.8.0/lib/awesome_print/core_ext/kernel.rb:10:in `ai'
/bundle/gems/awesome_print-1.8.0/lib/awesome_print/custom_defaults.rb:45:in `block in pry!'
/bundle/gems/pry-0.12.2/lib/pry/pry_instance.rb:399:in `show_result'
/bundle/gems/pry-0.12.2/lib/pry/pry_instance.rb:368:in `block in handle_line'
/bundle/gems/pry-0.12.2/lib/pry/pry_class.rb:401:in `critical_section'
/bundle/gems/pry-0.12.2/lib/pry/pry_instance.rb:367:in `handle_line'
/bundle/gems/pry-0.12.2/lib/pry/pry_instance.rb:274:in `block (2 levels) in eval'
/bundle/gems/pry-0.12.2/lib/pry/pry_instance.rb:273:in `catch'
/bundle/gems/pry-0.12.2/lib/pry/pry_instance.rb:273:in `block in eval'
/bundle/gems/pry-0.12.2/lib/pry/pry_instance.rb:272:in `catch'
/bundle/gems/pry-0.12.2/lib/pry/pry_instance.rb:272:in `eval'
/bundle/gems/pry-0.12.2/lib/pry/repl.rb:77:in `block in repl'
/bundle/gems/pry-0.12.2/lib/pry/repl.rb:67:in `loop'
/bundle/gems/pry-0.12.2/lib/pry/repl.rb:67:in `repl'
/bundle/gems/pry-0.12.2/lib/pry/repl.rb:38:in `block in start'
/bundle/gems/pry-0.12.2/lib/pry/input_lock.rb:59:in `__with_ownership'
/bundle/gems/pry-0.12.2/lib/pry/input_lock.rb:77:in `with_ownership'
/bundle/gems/pry-0.12.2/lib/pry/repl.rb:38:in `start'
/bundle/gems/pry-0.12.2/lib/pry/repl.rb:13:in `start'
/bundle/gems/pry-0.12.2/lib/pry/pry_class.rb:200:in `start'
/bundle/gems/pry-byebug-3.6.0/lib/pry-byebug/pry_ext.rb:11:in `start_with_pry_byebug'
/bundle/gems/railties-<IP_ADDRESS>/lib/rails/commands/console/console_command.rb:62:in `start'
/bundle/gems/railties-<IP_ADDRESS>/lib/rails/commands/console/console_command.rb:17:in `start'
/bundle/gems/railties-<IP_ADDRESS>/lib/rails/commands/console/console_command.rb:97:in `perform'
/bundle/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
/bundle/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
/bundle/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
/bundle/gems/railties-<IP_ADDRESS>/lib/rails/command/base.rb:63:in `perform'
/bundle/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:44:in `invoke'
/bundle/gems/railties-<IP_ADDRESS>/lib/rails/commands.rb:16:in `<top (required)>'
script/rails:6:in `require'
script/rails:6:in `<main>'

Not sure what the issue is as I haven't really digged into it, but I assume the site is partially correct but some part of the metadata is incorrect?
In any case, I suppose that this should be rescued somewhere and converted into a RequestError.

Thanks for the report! You're right, this should be converted into a proper error. I'm quite busy these days but I'll be happy to review a PR.

Sure, I'll try to give it some minutes this week at some point, if time allows 😉

Hi all, encountered this today. In my case, the ArgumentError: invalid byte sequence in UTF-8 only shows after I call the .best_title method.
This is how I call it page = MetaInspector.new('http://yogaclass.com/links.html'), this does not return any error but only when I do page.best_title.
Using the force encoding option, from #239, returns the correct error directly though.

Just checked with MetaInspector 5.11.1, this is no longer an issue (please reopen if it happens again).
In the case submitted by @ghost it works without forcing the encoding as well:
irb(main):010:0> page = MetaInspector.new('http://yogaclass.com/links.html')
irb(main):011:0> page.best_title
=> "YogaClass\u0099 Links"

irb(main):012:0> page = MetaInspector.new('http://yogaclass.com/links.html', encoding: 'UTF-8')
irb(main):013:0> page.best_title
=> "YogaClass� Links"


pull request for e2e test at 01/22/2017 13:15:16

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


Command failed: tar xjf android-ndk-r9c-linux-x86_64.tar.bz2

Versions

Python: 2.7
OS: Ubuntu 16.04
Kivy: v.1.9.1
Kivy installation method:
https://gist.github.com/jhoonb/9454386

Description
When I try to build android ndk using:
buildozer android debug deploy run
I got the error.
After searching, I see that this issue has not been asked yet.
Code and Logs
import kivy
from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):
    def build(self):
        return Label(text='hello')

if __name__ == '__main__':
    MyApp().run()

(venv) loctv@loctv:~/venv/code$ python main.py
[INFO   ] [Logger      ] Record log in /home/loctv/.kivy/logs/kivy_17-02-23_2.txt
[INFO   ] [Kivy        ] v1.9.1
[INFO   ] [Python      ] v2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
[INFO   ] [Factory     ] 179 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_pygame (img_pil, img_ffpyplayer
ignored)
[INFO   ] [Text        ] Provider: pygame
[INFO   ] [Window      ] Provider: pygame(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] OpenGL version <3.0 Mesa 12.0.6>
[INFO   ] [GL          ] OpenGL vendor <Intel Open Source Technology Center>
[INFO   ] [GL          ] OpenGL renderer <Mesa DRI Intel(R) Ivybridge Mobile >
[INFO   ] [GL          ] OpenGL parsed version: 3, 0
[INFO   ] [GL          ] Shading version <1.30>
[INFO   ] [GL          ] Texture max size <8192>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Base        ] Leaving application in progress...
(venv) loctv@loctv:~/venv/code$ buildozer init
File buildozer.spec created, ready to customize!
(venv) loctv@loctv:~/venv/code$ buildozer android debug deploy run
# Check requirements for android
# Install platform
# Apache ANT found at /home/loctv/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/loctv/.buildozer/android/platform/android-sdk-20
# Android NDK is missing, downloading
# Unpacking Android NDK
# Command failed: tar xjf android-ndk-r9c-linux-x86_64.tar.bz2
#
# Buildozer failed to execute the last command
# If the error is not obvious, please raise the log_level to 2
# and retry the latest command.
# In case of a bug report, please add a full log with log_level = 2

Seems like google change the path. Please update you buildozer and try again? Should be fixed by:
https://github.com/kivy/buildozer/commit/d1c0560a67c3d9d8249cd641896c629a2de65c1e

I missed out these three lines:
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
I'm new here, I've just removed and redownload buildozer from
https://github.com/kivy/buildozer/archive/master.zip
does that mean buildozer has been updated?

Yes, should be. You'll know, because it will either work or give a different error :-)

@Zen-CODE After the Buildozer update, I now get an error when downloading the SDK:
# Android SDK is missing, downloading
# Downloading http://dl.google.com/android/ndk/android-sdk_r20-linux.tgz
# Unpacking Android SDK
# Run 'tar xzf android-sdk_r20-linux.tgz'
# Cwd /root/.buildozer/android/platform

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
# Command failed: tar xzf android-sdk_r20-linux.tgz

Is there a firewall blocking you? Try pasting this into you browser bar,
http://dl.google.com/android/ndk/android-sdk_r20-linux.tgz

Are you able to download this file?

Sorry, just pushed changes to fix this. Please re-download and try again?

@Zen-CODE Seems to be working. Thanks.

Yay :-) Thanks

Put a dash sign I front of xjf like these tar -xjf
On Feb 22, 2017 6:23 PM, "loctv"<EMAIL_ADDRESS>wrote:

Versions

Python: 2.7
OS: Ubuntu 16.04
Kivy: v.1.9.1
Kivy installation method:
https://gist.github.com/jhoonb/9454386

Description
When I try to build android ndk using:
buildozer android debug deploy run
I got the error.
After searching, I see that this issue has not been asked yet.
Code and Logs
import kivyfrom kivy.app import App from kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text='hello')
if name == 'main':
MyApp().run()
(venv) loctv@loctv:~/venv/code$ python main.py
[INFO   ] [Logger      ] Record log in /home/loctv/.kivy/logs/kivy_17-02-23_2.txt
[INFO   ] [Kivy        ] v1.9.1
[INFO   ] [Python      ] v2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
[INFO   ] [Factory     ] 179 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_pygame (img_pil, img_ffpyplayer
ignored)
[INFO   ] [Text        ] Provider: pygame
[INFO   ] [Window      ] Provider: pygame(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] OpenGL version <3.0 Mesa 12.0.6>
[INFO   ] [GL          ] OpenGL vendor
[INFO   ] [GL          ] OpenGL renderer <Mesa DRI Intel(R) Ivybridge Mobile >
[INFO   ] [GL          ] OpenGL parsed version: 3, 0
[INFO   ] [GL          ] Shading version <1.30>
[INFO   ] [GL          ] Texture max size <8192>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [OSC         ] using  for socket
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Base        ] Leaving application in progress...
(venv) loctv@loctv:~/venv/code$ buildozer init
File buildozer.spec created, ready to customize!
(venv) loctv@loctv:~/venv/code$ buildozer android debug deploy run# Check requirements for android# Install platform# Apache ANT found at /home/loctv/.buildozer/android/platform/apache-ant-1.9.4# Android SDK found at /home/loctv/.buildozer/android/platform/android-sdk-20# Android NDK is missing, downloading# Unpacking Android NDK# Command failed: tar xjf android-ndk-r9c-linux-x86_64.tar.bz2## Buildozer failed to execute the last command# If the error is not obvious, please raise the log_level to 2# and retry the latest command.# In case of a bug report, please add a full log with log_level = 2
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kivy/kivy/issues/5013, or mute the thread
https://github.com/notifications/unsubscribe-auth/AWevmBAGI_XmuWALCHBrUeurUsOvS5q3ks5rfG74gaJpZM4MI8Nn
.

@Zen-CODE SDK downloading is now working, but NDK downloading is also broken.
Log:
# Android NDK is missing, downloading
# Downloading http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.zip
# Unpacking Android NDK
# Run 'unzip /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip'
# Cwd /root/.buildozer/android/platform
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip or
        /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip.zip, and cannot find /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip.ZIP, period.
Archive:  /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip
# Command failed: unzip /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip

Note: I am using NDK r10e

Does not seem like that file is there. If you paste the url into you browser, you get a 404....

Try to edit your buildozer.spec file,  if the ndk is uncommented,  comment
it and try again if commented uncomment it
On Feb 22, 2017 7:57 PM, "ZingBallyhoo"<EMAIL_ADDRESS>wrote:

@Zen-CODE https://github.com/Zen-CODE SDK downloading is now working,
but NDK downloading is also broken.
Log:
Android NDK is missing, downloading
Downloading http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.zip
Unpacking Android NDK
Run 'unzip /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip'
Cwd /root/.buildozer/android/platform
End-of-central-directory signature not found.  Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive.  In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip or
/root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip.zip, and cannot find /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip.ZIP, period.
Archive:  /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip
Command failed: unzip /root/.buildozer/android/platform/android-ndk-r10e-linux-x86_64.zip
Note: I am using NDK r10e
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/kivy/kivy/issues/5013#issuecomment-281766092, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AWevmOftxYN3jaLIE4IqN9hOMSetp356ks5rfIUVgaJpZM4MI8Nn
.

@Zen-CODE The file that is needed is https://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin (.bin not .zip)

@Zen-CODE Error is here https://github.com/kivy/buildozer/blob/d1c0560a67c3d9d8249cd641896c629a2de65c1e/buildozer/targets/android.py#L295
Line 295 should be archive = 'android-ndk-r{0}-linux-{1}.bin'

@ZingBallyhoo. Spot on. Pushed those changes. Does that do it?

@Zen-CODE All working now. Thanks

Thanks :-)

SDK and NDK downloading is fine, but I got new error :-(
Copy libs
Copy java files from various libs
Fill private directory
Reduce private directory from unwanted files
Strip libraries
Entering in ARM environment
Compiler found at /home/loctv/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-andr
oideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
Leaving ARM environment
All done !
# Remove temporary build files
# Remove directory and subdirectory /home/loctv/venv/code/.buildozer/android/platform/python-for-an
droid/build
# Distribution compiled.
# Build the application #1
# Copy application source from /home/loctv/venv/code
# Create directory /home/loctv/venv/code/.buildozer/android/app
# Copy /home/loctv/venv/code/main.py
# Package the application
Traceback (most recent call last):
  File "/home/loctv/venv/bin/buildozer", line 11, in <module>
    load_entry_point('buildozer==0.33.dev0', 'console_scripts', 'buildozer')()
  File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/scripts/client.py", line 13, i
n main
    Buildozer().run_command(sys.argv[1:])
  File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/__init__.py", line 1026, in ru
n_command
    self.target.run_commands(args)
  File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/target.py", line 91, in run_co
mmands
    func(args)
  File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/target.py", line 103, in cmd_d
ebug
    self.buildozer.build()
  File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/__init__.py", line 211, in bui
ld
    self.target.build_package()
  File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/targets/android.py", line 646,
 in build_package
    self._update_libraries_references(dist_dir)
  File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/targets/android.py", line 823,
 in _update_libraries_references
    fd.writelines(content)
TypeError: write() argument 1 must be unicode, not str

And while compiling, I noticed that there were many errors as well. Is that supposed to be normal?

Try the compile again? Had this this first compile too, but went away with
the second...
On 23 Feb 2017 3:15 AM, "loctv"<EMAIL_ADDRESS>wrote:

SDK and NDK downloading is fine, but I got new error :-(
Copy libs
Copy java files from various libs
Fill private directory
Reduce private directory from unwanted files
Strip libraries
Entering in ARM environment
Compiler found at /home/loctv/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-andr
oideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
Leaving ARM environment
All done !
Remove temporary build files
Remove directory and subdirectory /home/loctv/venv/code/.buildozer/android/platform/python-for-an
droid/build
Distribution compiled.
Build the application #1
Copy application source from /home/loctv/venv/code
Create directory /home/loctv/venv/code/.buildozer/android/app
Copy /home/loctv/venv/code/main.py
Package the application
Traceback (most recent call last):
File "/home/loctv/venv/bin/buildozer", line 11, in
load_entry_point('buildozer==0.33.dev0', 'console_scripts', 'buildozer')()
File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/scripts/client.py", line 13, i
n main
Buildozer().run_command(sys.argv[1:])
File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/init.py", line 1026, in ru
n_command
self.target.run_commands(args)
File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/target.py", line 91, in run_co
mmands
func(args)
File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/target.py", line 103, in cmd_d
ebug
self.buildozer.build()
File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/init.py", line 211, in bui
ld
self.target.build_package()
File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/targets/android.py", line 646,
in build_package
self._update_libraries_references(dist_dir)
File "/home/loctv/venv/local/lib/python2.7/site-packages/buildozer/targets/android.py", line 823,
in _update_libraries_references
fd.writelines(content)
TypeError: write() argument 1 must be unicode, not str
And while compiling, I noticed that there were many errors as well. Is
that supposed to be normal?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/kivy/kivy/issues/5013#issuecomment-281858826, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADYDK63yS0yvhO8YojZxsMC2wCgx4imuks5rfN2qgaJpZM4MI8Nn
.


Allow config to specify date format preferences for exists_series

Motivation for changes:
Series identified by date are stored using YYYY-mm-dd format but when this is processed using default datetime parameters within exists_series it reads files from disc as YYYY-dd-mm thus creating false comparisons.
This change allows the user to tell exists_series to assume dates are in a specific format on disc. Useful if you rename your series using series_id.
NOTE: this only works on the built in parser, guessit parsing is not influenced by this change
Detailed changes:

Added date_dayfirst and date_yearfirst to exists_series plugin

Addressed issues:

Fixes exists_series parsing dates as YYYY-dd-mm instead of YYYY-mm-dd

Config usage if relevant (new plugin or updated schema):
    exists_series:
      path: >
        /media/TV/{{ tvdb_series_name|default(series_name,True)|replace('/', '_')|replace(':', ' -')|replace(',', '') }}
      allow_different_qualities: better
      date_dayfirst: False
      date_yearfirst: True

Please add tests for this if possible

Not elegant to have two different options, instead we should have ONE option.
Perhaps "dateformat: yyyy-mm-dd" type of configuration?
Default value should be ISO 8610 ...


run conda jobs against python 3.9

For some reason solving the env on 3.7 has become very slow (~20 min on ubuntu)
We have other tests covering 3.7 lets upgrade this.

bors merge


Hermetic python

One thing that is quite nice about bazel is that it provides hermeticity, i.e. it does not depend on your system tools (at least to some degree). As an example rules_go and rules_nodejs do that, on first invocation they download the sdk / nodejs and only that is used to build/run your apps. I think it is pretty nice because one does not have to worry about what they have installed on their system (or in the docker container) and bazel just provides the version needed and everyone is exactly on the same version. That in combination with the isolation should provide some pretty nice guarantees and also a nicer dev experience especially if it could support different interpreter versions in a project (at the very least py2/py3).
Is that something you have considered before?

Yeah true that is one way to get this. But it does have the disadvantage on needing docker to run, which part of the appeal of bazel for us is, to not need it for dev and as I mentioned it also is nice to not have to worry about setting anything up correctly (which would still be needed for generating deps)
And for building the image in the first place, could it make a difference e.g. if python points to py3 or py2? I know in the bazelbuild rules it can make a difference (e.g. for pip deps) but here maybe not? And can a docker container also be built on mac with these rules?
Either way, I was not necessarily saying that these rules should do that, I was more curios if there where some thoughts already put into this, and if there where any big reasons thought of (apart from possibly time) to not do it?

Thanks for the clarification! Actually shipping Python and dependent C libraries in each pyz_binary sounds like a heavy lift to me (although definitely possible)... The pyz_image rules @evanj put together do force you to pick a Python version -- is that what you're wondering about? And I think they're based on the Bazel docker rules, which don't require a docker install to build images. But yeah you need docker to run them.

You should be able to get Hermetic python if you do something like this:

You should be able to get hermetic python if you do something like this:
Package python with its binaries and standard library into a directory or external repository, this is the hardest part.
Use the pyz rules as follows (assuming you have made an external repo called @python_repo//):
pyz_binary(
    ...
    data = ["@python_repo//:everything"],
    interpreter_path = "${RUNFILES}/python_repo/usr/bin/python3",
)

Summary: I think making some sort of Python toolchain, analogous to the Go rule's tool chains, would be very useful. I haven't even thought about how to make this work though. If someone would like to attempt the Bazel magic to work on this, I would love to help.
I haven't really needed a separate Python install yet. However, with Python3, it would be extremely useful (since Mac OS X does not ship it).
The "main" script used by pyz rules has a bunch of hacks in it to attempt to only load the standard library from the "system" interpreter, and not anything else. This is because we have run into all sorts of weird issues that happen when people have some slightly broken Python install, or are running targets from inside a virtualenv, etc. A hermetic Python install would side step much of this.
Google's "Operation Purple Boa" plan seems to suggest doing something like this: https://docs.google.com/document/d/1dQjbbLEJqxUIJWmH5sIZAv-_emnKksDI-VCG1v86dWA/edit


Improve resource disposal of GLWpfControl

Changes
GLWpfControl.OnUnloaded() was updated to only release resorces if the control hasn't been disposed yet.
Behavior
Before
OnUnloaded could be fired after the disposal of the control.
After
Resources are being released in OnUnloaded only when the control is active (_isStarted is true, which is basically from the moment it was started to the moment it's disposed).

Thanks for creating this PR, I've opened up #143 which fixes this issue and does some cleanup on the code.
I'm going to be merging that PR and closing this PR. I'll add you to the credits of the 4.3.3 anyways. :)


Allow publishing components

Question
Answer

Pull request type
ENHANCEMENT

License
MIT

What's in this PR?
Solves the issue #944
Allow publishing the blade components of the package so the user can then customize them. Components may be published with command:
php artisan adminlte:install --only="components"

Once published, these customizable version of the components may be used using the Laravel convention for classes nested into sub-directories. For example, the customizable version of the Input Component should be used like:
<x-adminlte.form.input />

Instead of:
<x-adminlte-input />

Checklist

[x] I tested these changes.
[x] I have linked the related issues.
[x] Add Wiki documentation.

Awesome
Thanks


SAP Lib-> @sap-cloud-sdk/core

Hi
I'm using this code for API request,
"use strict";
const httpclient = require('@sap-cloud-sdk/core');
const handleErrorResponse = require('./errorHandler');
async function callPostApi(req, destination, res) {
    await httpclient.executeHttpRequest(
        {
            destinationName: destination,
        },
        {
            method: 'POST',
            url: req.url,
            data: req.body,
            maxContentLength: Infinity,
            maxBodyLength: Infinity,
            headers: {
                "Content-Type": "application/json"
            },
        }
    ).then(response => {
        res.status(200).send(response.data);
    }).catch(error => {
        handleErrorResponse(req, res, error);
    });
}

module.exports = {
    callPostApi
};

But getting this error, Failed to Load Destination" when consuming external service
error:         ErrorWithCause: Failed to load destination.
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT     at new ErrorWithCause (/home/vcap/app/node_modules/@sap-cloud-sdk/core/node_modules/@sap-cloud-sdk/util/dist/error-with-cause.js:34:16)
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT     at /home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/http-client/http-client.js:222:15
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT Caused by:
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT Error: No binding to an XSUAA service instance found. Please make sure to bind an instance of the XSUAA service to your application.
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT     at selectXsuaaInstance (/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/connectivity/scp-cf/environment-accessor.js:250:15)
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT     ... 5 lines matching cause stack trace ...
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT   cause: Error: No binding to an XSUAA service instance found. Please make sure to bind an instance of the XSUAA service to your application.
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT       at selectXsuaaInstance (/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/connectivity/scp-cf/environment-accessor.js:250:15)
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT       at getXsuaaServiceCredentials (/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/connectivity/scp-cf/environment-accessor.js:210:11)
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT       at Function.<anonymous> (/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/connectivity/scp-cf/destination/destination-from-service.js:121:98)
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT       at step (/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/connectivity/scp-cf/destination/destination-from-service.js:44:23)
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT       at Object.next (/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/connectivity/scp-cf/destination/destination-from-service.js:25:53)
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT       at fulfilled (/home/vcap/app/node_modules/@sap-cloud-sdk/core/dist/connectivity/scp-cf/destination/destination-from-service.js:16:58)
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  2024-09-01T23:14:17.38+0530 [APP/PROC/WEB/2] OUT }

Hi @zarar1210  we do not support the core package, other than that please read the logs instead of opening an issue.


Plans for handling styles?

I'm wondering if there are plans/thoughts/etc. for handling styles in this boilerplate.  I saw in #95 something about not using JS imports.  In #4 sass was floated as a possibility but this wasn't addressed.
I'm a fan of sass, personally, but I know postCSS has had a lot of interest lately.  I believe either could use ExtractTextPlugin and output a css file which could then be referenced in index.html, but not yet sure how well that works with HMR.

There are lots of options for this, but I don't think any best practices have really emerged. Leave it for now?


Visibility of search bar

Description

Search bar should not be visible while creating a campaign .
Surveys section requires search bar with " search for surveys " , right now it is showing " search for campaigns "
I want to fix that , please assign me this under gssoc'23

Screenshots
No response
Additional information
No response

leave the first.
You may work on second issue.

leave the first. You may work on second issue.

@LakshaySK106 I didn't get it , can you please be more specific about what i have to leave and what to work on

keep the search bar while creating the campaign too. So, if the user wishes to search for campaigns at that moment will be redirected to allCampaign page to see the searched campaign results. So, I was asking to leave this and work on Surveys section requires search bar with " search for surveys " , right now it is showing " search for campaigns "

okay , got it


Fix swagger doc

The current auto-generated swagger documentation (/doc) is broken, probably as a result of our last DRF update.
The library it relied on is also deprecated since mid-2019, so instead of just fixing it we'll need to switch to something new.
A potential replacement is https://github.com/axnsan12/drf-yasg
We need to make sure that the fix swagger doc specifies correctly how file uploads are handled. That was the purpose of the SchemaGenerator class in backend/views.py.

Close as swagger has been removed : https://github.com/SubstraFoundation/substra-backend/pull/364
Feel free to re-open another issue to add api documentation if needed !

Close as swagger has been removed : https://github.com/SubstraFoundation/substra-backend/pull/364
Feel free to re-open another issue to add api documentation if needed !


Fix rxBytes and rxBodyBytes in metadata.

Data frames were incorrectly reporting their size in the metadata
fields rxBytes and rxBodyBytes. If a data frame got broken up into
multiple TCP segments, those would each be reported to the SPDYSession
as a "data frame", with the encodedLength set to the overall frame
size (for the first segment) or the remaining segment sizes.
It was, essentially, indeterminately wrong from the POV of the app.

+2


Py3 compatibility, maintains Py2 compatibility

This patch is a handful of import changes and unicode aliases necessary to run Jawa on Python 3.x . It maintains 100% compatibility with Python 2 and has no performance implications as far as I can tell.

Closing this old PR in favour of upstream changes which utilize the Six library.


Is single server support still a thing?

There's a number of bits in the Razor language server that are present to support both single server and non-single server. Can this option be removed now?

It is still a thing, yes. Some of the "non single server" bits are still used in VS Code. Comments in CustomMessageNames.cs tracks the current status.


ODS > Component > List section Header Updates

Requirements
As a Developer using the ODS Library
I want to be able to use the list component
So that I can add sections to the list
Content description
The current list description Page will be updated so that:

the customization bottom sheet will include a new toggle switch labeled "Sections Headers"
the list in the page will update to show at least 2 categories (could use the recipe category (catID) to show this)

Technical requirements

the list header will be used to set up this feature

Based on today's weekly:

the section options are: "Header" "Title" and "Footer"

The title option can only be used alone, if a user selects header the title option is deselected
Header and footer can be selected at the same time

Add "content" customization option in the "list" options

"list item" to select a list using list items
"cards" to show a list of cards

style (choice chips)
grouped
plain
Sidebar

@B3nz01d Should we do the same on ListItemSelection ?

the demo that has been shown today is using the good design examples.
The sidebar selection should use the corresponding OS code.
the sections should be using the food categories to show the demo


Feature explicit device type (rascsi)

This change allows to explicitly specify an optional device type, which overrides the type derived from the filename. It's possible to create any device this way, also a daynaport device.
>rascsi -f /home/us/images -ID0 :DAYNAPORT -ID3 test.hds:cd

The type is case-insensitive.
Result:
+----+----+------+-------------------------------------
| ID | UN | TYPE | DEVICE STATUS
+----+----+------+-------------------------------------
|  0 |  0 | SCDP | DaynaPort SCSI/Link
|  3 |  0 | SCCD | /home/us/images/test.hds (WRITEPROTECT)
+----+----+------+-------------------------------------

I removed the device file work-around I added some time ago, because an explicit device type can be used instead.

@akuker Does the doc/rascsi_man_page.txt file need to be checked in? Looks as if it is recreated automatically during the build.

@akuker Does the doc/rascsi_man_page.txt file need to be checked in? Looks as if it is recreated automatically during the build.

I have been commiting the changes when it re-generates.

@uweseimet - I can't thank you enough for all of the pull requests! These are all great changes, and I appreciate them.
Just as a heads up - my job is getting pretty busy and I've been stressing a little bit to keep up with your pull requests. I definitely don't want to discourage you from the types of changes you're making, but would there be a way that we could batch these up more? Maybe make a uweseimet-develop branch and we just merge that into develop once or twice a week?
Thank you again for all of your awesome PRs!!!

@akuker Sure, we can do that. I guess I will create separate feature branches but will merge them into a separate uweseimet-develop branch before creating a consolidated PR for that branch. Let's just see how this works.


3481 speed up access control

@sblack-usu @pkdash This is a performance upgrade for the access control system.
Unbeknownst to me, the syntax foo in queryset is no longer converted automatically to queryset.filter(id=foo.id).exists(). This made all of access control run slower. This PR converts all slow syntaxes to their fast equivalents, across all of access control. This does not change function at all.

Pull Request Checklist:

[x] Positive Test Case Written by Dev

[ ] Automated Testing

[x] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here] There are no differences in behavior. The difference is in speed. Fetches of a resource landing page now take 3 seconds. Formerly they took 10-15 seconds.

This completely addresses #3481 .
Note that SQL AND is commutative in SQL queries, so that django & is commutative in django queries, so that the initial proposal of writing a new query with the new condition first was unnecessary. Instead, I rewrote all x in queryset expressions with more efficient syntax.

@pkdash @sblack-usu A note on why this works:

when you run x=user.uaccess.view_resources the query isn't executed until you use x in an expression. It remains in queryset form.
when you append a filter to x, the result is still an unevaluated queryset. Thus x.filter(id=thing.id) is still an unevaluated queryset. This, by the way, is the most efficient way to write the query, because id is always indexed.
when you append .exists() to that, the queryset is actually evaluated. The query optimizer in postgres figures out what to do and reorders the 'AND' clauses for best performance.

when you run x=user.uaccess.view_resources the query isn't executed until you use x in an expression. It remains in queryset form.
when you append a filter to x, the result is still an unevaluated queryset. Thus x.filter(id=thing.id) is still an unevaluated queryset. This, by the way, is the most efficient way to write the query, because id is always indexed.
when you append .exists() to that, the queryset is actually evaluated. The query optimizer in postgres figures out what to do and reorders the AND clauses for best performance.

@alvacouch That's what I understood how the query evaluation works in Django.  But was not aware of the difference as documented here (hence this PR): https://docs.djangoproject.com/en/2.1/ref/models/querysets/#django.db.models.query.QuerySet.exists

So, we should be using get() instead of filter().  I also verified the documentation @pkdash posted is relevant for django 1.11.

I think we should consider pushing this out soon.  This is a huge sitewide speed up with zero functional change.  @martinseul @phuongdm - what do you think?  We could push this out with minimal downtime (only the 1-2 seconds it takes to swap, there are no migrations).

+1 agreed

@pkdash @sblack-usu Do you want me to change id=thing.id to pk=thing.pk? In our case these are synonyms.

I don't have a preference between id and pk.  I say just leave it as id.

@alvacouch - would you mind rebasing this against master?  We'd like to push this out as a hotfix.

@sblack-usu @pkdash OK, I am willing to rebase against master. Is that possible without doing a new PR?

I don't think you'll be able to do it without closing this PR for this branch.  We don't want to bring in any extra commits from the original base that master does not have.

OK, new PR forthcoming.

Rebased to #3484


Add SwiftSyntax as a dependency

I don't know if you want this, won't be offended if you close it without merging =). But as a user of SwiftSemantics there's no way around using SwiftSyntax, right?

Not at all! You're spot on with this patch — you really do need to have SwiftSyntax to use SwiftSemantics in its current form. This discrepancy arose from a last-minute decision to change the interface for declaration collection (previously, you passed Swift source as a String, and it took care of creating and walking the AST).
So my question to you, as an API consumer: Is it a better trade-off to require SwiftSyntax to keep flexibility in how to manage the AST? Or should SwiftSemantics aim to plug the leaky abstraction and provide an all-in-one encapsulation so that you could use it as a stand-alone?

Either way would work. There's no way around pulling in SwiftSyntax anyway, so why not just go with what they have? Makes everything more flexible, you'll have less code, and if they add other ways of loading files people will get it for free.

Thanks for weighing in. That sounds like the right approach. Merging this now, and making a note to myself to update it when I resolve #2.


codesign on ARM requires CLT or Xcode to sign binaries

On Apple Silicon, we use codesign to provide an ad hoc signature to the MachO files we pour from bottles, after rewriting them (binaries and shared libraries)
codesign is present at /usr/bin/codesign on base macOS (without Xcode or CLT)
But that version can only verify signatures, not sign MachO files. Signing requires codesign_allocate to be installed, which is called by codesign, and is part of Xcode or CLT.
Therefore, we cannot reliably pour bottles for Apple Silicon unless we have CLT or Xcode installed.

This leads to very bad user experience. Moreover, it also happens with brew-downloaded git bottles for ARM (now that we have them): leading to horrible user experience. https://github.com/Homebrew/brew/issues/7857#issuecomment-743580890
As a long-term solution, we could imagine having ruby-macho providing a pure-ruby signing mechanism. That would be ideal, but the first implementation had problems. poking @woodruffw on that
As a short-term solution, we need to:

bail out early when neither CLT nor Xcode is installed on ARM
in that case, tell users to install the CLT

As for the reason why this happened: the user reports that installing the 11.1.0 RC uninstalled their previously installed CLT 😢

As far as I remember, enrolling in betas that don't have a CLT version available will remove the CLT. Just like installing a normal update will usually have an update for the CLT as well. All brew installs need a CLT or XCode though, so I think aborting with a failure is the friendliest thing to do.

Funny thing: The CLT is downloadable from the Developer Website, it's just not in their software repository.

Not too surprising: it's still only RC, and not yet fully supported.

@fxcoudert, so as we know, HB installs CLT on initial install.
So, this will only affect users who are savvy enough to beta test macOS/RCs, (where the CLT might be removed).
I don't see this as a huge issue, don't you agree? In all circumstances home-brew would have installed CLT on any stable macOS release prior to use.

Just to remind you guys: "RC"s are what were "GM"s before - basically the release version, only a few days earlier. So it's not so weird for people to upgrade to an RC version if they don't want to wait hours for the download to complete on release day.

basically the release version, only a few days earlier

I think "basically" and "earlier" are keywords here: there are still some features that distinguish it from the released version, and that makes it not fully supported.

it's not so weird for people to upgrade to an RC version if they don't want to wait hours for the download to complete on release day

I agree. But the price you pay for avoiding (among other things) the download wait on release day is that you get a piece of software that doesn't have the same guarantees as to the released version. One of those is the availability of CLT via softwareupdate. The workaround isn't difficult; though perhaps brew could generate more informative error messages here (which is actually part of the suggested short-term solution in the OP).

Just to remind you guys: "RC"s are what were "GM"s before - basically the release version, only a few days earlier.

And they aren't supported by brew as brew doctor will/should tell you.
The developer previews of macOS 12 will also be like the release version, just a few months earlier and with bugs that might still be fixed later.

As the installer installs the CLT anyway:
https://github.com/Homebrew/install/blob/e141d766960553367441362490e42a2fead644c6/install.sh#L541
and it's already listed as a requirement in the installation instructions: https://docs.brew.sh/Installation
it seems reasonable to assume everyone will always have it and thus always do the MacOS::CLT.installed? check:
https://github.com/homebrew/brew/blob/77561fccc2a7536c1b554867362cd015d7c55bdd/Library/Homebrew/os/mac/xcode.rb#L233
(I have also been hit by this when upgrading to RCs, feels like an issue to raise with Apple via https://feedbackassistant.apple.com/ rather than brew though)

For @woodruffw or whoever is willing to implement this in ruby: Go has made its own implementation, see https://github.com/golang/go/blob/master/src/cmd/internal/codesign/codesign.go
The small details of the implementation are discussed at length in the two linked issues: https://github.com/golang/go/issues/42684 and https://github.com/golang/go/issues/38485

Upgrading to 11.1 gets rid of CLT. xcode-select --install now works, however.

It doesn't remove the CLT, you just need to select it again in Xcode prefs (or execute a path switch). ![Uploading 102193907...]

Xcode prefs? I’m afraid I can’t do that since I don’t have Xcode installed...

@carlocab, still don't need to reinstall.
You just need to select the path for the CLT again.
sudo xcode-select -switch /Library/Developer/CommandLineTools

@johnalanwoods it may depend on the circumstances, because on our CI machines, the update to 11.1 definitely removed the CLT entirely.

Yep, it definitely removed CLT in my case. When CLT is installed, this happens:
❯ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

Predictably, that is not the error message I saw when I ran it after upgrading to 11.1.


Road widget is not shown

When pressing init then sdf world stuff the road tab is not rendered.

Any errors being printed to the console ?

nope, are tring to find out more, are putting print traces everywhere ;)

can You try opening the  world--.ui file from your machine see if the  widgets on  that tab have issues

hehe, found my issue, hade copied instead of created symlinks to .local/share/FreeCAD/Mod so had old files there not the up to date files or the files i tried to make changes to.


batch should be trivially default constructible

batch_type x[8] = {};

It is surprising that the code above does not initialize x to zeros.
This can be fixed by making batch() = default;

Batch are default constructibles, see https://xsimd.readthedocs.io/en/latest/api/xsimd_batch.html#_CPPv4N5xsimd5batch5batchEv
The default constructor doesn't set any value, if you want something, you specify it :-)


Add support for macOS

Codecov Report

Merging #7 (7970eb6) into main (ca807ff) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff            @@
##              main        #7   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           14        14
  Lines          461       461
=========================================
  Hits           461       461

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Introduce transactionService and vpcTransactionService toggle env var

Feature
From v3.6.0 local development won't be possible as we would be using VPC internal URLs even in staging.
We need an easy way to use the external URL for the services.
Proposal
Introduce env var USE_EXTERNAL_TX_SERVICE_URI=<bool> as a mean to toggle between using transactionService and vpcTransactionService URLs in the core_uri! macro.

Maybe we can take a look into https://doc.rust-lang.org/reference/conditional-compilation.html
Specially into debug_assertions.
And then we can have the same macro declared twice (only one will be compiled):
#[cfg(debug_assertions)]
macro_rules! core_uri {
  ...
}

#[cfg(not(debug_assertions))]
macro_rules! core_uri {
  ...
}


I am trying to create a package that will make a few adjustments to windows and install Windows updates. As you know, updates can take several reboots. I created a Powershell script (see appropriate section), created a package for it, built the package, and then install the package using appropriate credentials. Upon first use, it seems to work. Windows updates are run, installed, and a reboot occurs. However, Boxstarter does not log back in and continue. I log in and a Boxstarter shell opens but it does nothing. I check Windows updates and there are more updates available. If I try to run the install again, it says it installed and completed, but it actually ran nothing (my script creates a log and there is no log)
My intention is to merge this into all the setup I already have working with Chocolately (setting roles and features, installing IIS, adding sites, app pools, installing apps, etc).
What am I doing wrong?
NOTE: I am worried that I see a message that Windows Updates are disabled by Boxstarter. Perhaps that has something to do with it? (see attached image below).
What is Expected?
I expect Boxstarter to apply Windows updates, reboot, check for more updates and repeat until there are no more updates to apply.
How Did You Get This To Happen? (Steps to Reproduce)
Below is the code/script for  'UpdateWindows.ps1' within package. There is a simple nuspec file and the nupkg file that is autogenerated. Its just one script file (shown below)
function global:Write-Notepad
(
    [string] $Message,
    [string] $ForegroundColor = 'Gray'
)
{
    Process
    {
        if($_){ Write-Host "$_`r" }
    }
    End
    {
        if($Message){ Write-Host "$Message`r" -ForegroundColor $ForegroundColor }
    }
}

try {
	#get-date -Format g
	Start-Transcript -Path "C:\temp\UpdateWindowsLog.log" -Append
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Beginning 'Update Windows' script")
	Write-Notepad $msg
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Setting Execution policy")
	Write-Notepad $msg
	Set-ExecutionPolicy Unrestricted -Force
	$msg = Write-Notepad ("[{0}] {1}" -f (get-date -Format g), "Importing Boxstarter and Chocolately modules")
	Write-Notepad $msg
	Import-Module Boxstarter.Chocolatey
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Disabling UAC")
	Write-Notepad $msg
	Disable-UAC
	#Write-Notepad ("[{0}] {1}" -f (get-date -Format g), "Disabling Microsoft Update")
	#Disable-MicrosoftUpdate
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Applying MS Explorer options")
	Write-Notepad $msg
	Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Enabling Remote Desktop")
	Write-Notepad $msg
	Enable-RemoteDesktop
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Disabling IE Enhanced Security")
	Write-Notepad $msg
	Disable-InternetExplorerESC
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Enabling Windows Update")
	Write-Notepad $msg
	Enable-MicrosoftUpdate
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Installing Windows Updates")
	Write-Notepad $msg
	Install-WindowsUpdate -AcceptEula -Criteria "IsInstalled=0 and Type='Software' and BrowseOnly=0"
	# Install-WindowsUpdate -Criteria "IsHidden=0 and IsInstalled=0 and Type='Software' and BrowseOnly=0 and Type='Driver'"
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Enabling UAC")
	Write-Notepad $msg
	Enable-UAC
	$msg = ("[{0}] {1}" -f (get-date -Format g), "'Update Windows' script completed.")
	Write-Notepad $msg
	Stop-Transcript
} catch {
	$msg = ("[{0}] {1} {2}" -f (get-date -Format g), "WARNING!!! An unexpected error ocurred!",$($_.Exception.Message))
	Write-Notepad $msg
    throw $_
}

Simplified code if there was no logging:
try {
	Set-ExecutionPolicy Unrestricted -Force
	Import-Module Boxstarter.Chocolatey
	Disable-UAC
	Enable-RemoteDesktop
	Disable-InternetExplorerESC
	Enable-MicrosoftUpdate
	Install-WindowsUpdate -AcceptEula -Criteria "IsInstalled=0 and Type='Software' and BrowseOnly=0"
	Enable-UAC
} catch {
    throw $_
}

Output Log
No logs are generated in the Boxstarter log directory. See attached image of trying to rerun the installer.

If all you have in your package is a .nuspec file and UpdatesWindows.ps1 nothing will happen.
Rename UpdatesWindows.ps1 to chocolateyInstall.ps1 in your package or call Install-BoxstarterPackage -PackageName UpdateWindows.ps1 where Boxstarter will create a package for you.

I did run Install-BoxstarterPackage. First I did this:
New-BoxstarterPackage -Name "UpdateWindows" -Description "Applies windows updates and reboots as necessary" -Path "C:\temp\UpdateWindows"
Invoke-BoxstarterBuild UpdateWindows
Then I ran this:
$User = "NWLIC\domainuser"
$PWordFile = "C:\Temp\domainuser.pwd"
$KeyFile = "C:\temp\AES.key"
$Key = Get-Content $KeyFile
$PWord = (Get-Content $PWordFile | ConvertTo-SecureString -key $Key )
$cred=New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User, $PWord
Install-BoxstarterPackage -PackageName UpdateWindows -Credential $cred

No response?

What is the contents of your UpdateWindows package and what is the contents of the chocolateyInstall.ps1 file inside of it?

Closing this as stale.


Organize the configuration evars and order them alphabetically

This PR is to organize the configuration variables' page with suitable titles and sort them alphabetically.
Please request changes for things that I missed or should be changed.

can i merge this @officialcjunior ? or are you still working on it?

can i merge this @officialcjunior ? or are you still working on it?

can i merge this @officialcjunior ? or are you still working on it?

This is what I was aiming at with this PR, therefore you can definitely merge this.
But, I'd like to see @ITAYC0HEN's review, he might find something.

can i merge this @officialcjunior ? or are you still working on it?

This is what I was aiming at with this PR, therefore you can definitely merge this.
But, I'd like to see @ITAYC0HEN's review, he might find something.


LoRa: Add support a shell with support for CW testing

The shell provides a handful of commands that are useful for testing:

lora conf ...
lora send ...
lora recv ...
lora test_cw ...

Tested with an SX1262 module transmitting packets to a b_l072z_lrwan1 board with a builtin SX1276, both running the Zephyr with the LoRa shell.
~NOTE: There is a dependency between #24649 and this pull request. The current version of this pull request assumes that #24649 hasn't been merged.~
UPDATE: Dropped support for timeouts in recv command to break the dependency between this  PR  and #24649.

@andysan The shell driver needs to be moved to samples/drivers/lora.

Also cleanup the checkpatch errors

@andysan The shell driver needs to be moved to samples/drivers/lora.

I’m not sure I understand the rationale behind this. Other subsystems, such as GPIO, have shell drivers that live with the drivers themselves. Being able to send a CW or raw packets is very useful when bringing up a new board. Any particular reason why LoRa would be different?
I’m planning to fix the other issues later today or tomorrow. I’m currently trying to find time to debug test and debug the SX126x driver.

I’m not sure I understand the rationale behind this. Other subsystems, such as GPIO, have shell drivers that live with the drivers themselves. Being able to send a CW or raw packets is very useful when bringing up a new board. Any particular reason why LoRa would be different?

Ah. I presumed that shell belongs to samples (was it initially(?)) and didn't look into other drivers. Now I just checked and all of them live under drivers/, so we are good. Sorry for the confusion.

Question about the shell. How do you prefer "lora config" to work? I'm considering rewriting it so you provide property-value pairs instead of a long list of properties.

Question about the shell. How do you prefer "lora config" to work? I'm considering rewriting it so you provide property-value pairs instead of a long list of properties.

I think the values alone would be sufficient. Since the help text specifies the property order, the user need not specify the property name again.

Also cleanup the checkpatch errors

This should be fixed now. I also improved the error handling in the shell to avoid surprises.

Question about the shell. How do you prefer "lora config" to work? I'm considering rewriting it so you provide property-value pairs instead of a long list of properties.

I think the values alone would be sufficient. Since the help text specifies the property order, the user need not specify the property name again.

Having played around with both implementations, I personally prefer the new one since I found myself wanting to change specific parameters without touching the other ones. This is also consistent with how the 'ip' command works on Linux. The 802.15.4 shell in Zephyr seems to have separate get/set commands for every property, but that seems tedious to implement.
As I see it, there are three big benefits: Adding new options doesn't "break" the config command, it's possible to update individual settings, it's less error prone if you want to change a parameter late in the list.
I'm happy to change back if you feel strongly about it though.

As I see it, there are three big benefits: Adding new options doesn't "break" the config command, it's possible to update individual settings, it's less error prone if you want to change a parameter late in the list.

Okay. I didn't notice that we can specify individual settings. So we can settle with this, thanks.

I should have addressed all of the issues now. However, I realised that I should have asked if how to select the right radio. I'm currently using DEFAULT_RADIO_NODE DT_NODELABEL(lora0) to find a node with the lora0 label. Another option might be to use an alias. Is that a better option?

As per previous discussion on #zephyr-lorawan, I have renamed the shell source to shell.c and switched to using an alias to discover the radio. I also updated the samples to use the same mechanism.

Now this one can be merged without any issues. FYI @carlescufi

-:55: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1
#55: FILE: drivers/lora/shell.c:1:
+/*
-:58: WARNING:SPDX_LICENSE_TAG: Misplaced SPDX-License-Identifier tag - use line 1 instead
#58: FILE: drivers/lora/shell.c:4:

SPDX-License-Identifier: Apache-2.0

Please ignore these warnings (see #24921)


mo-static merge

👍

@jcarbaugh what do you think?

@joesolly can you remove the mo-static part? this PR contains 2 discrete sets of changess, i opened https://github.com/istrategylabs/mo-django/pull/50 with regards to mo-static.

@akrawchyk this PR is finished, why don't we just pull this one instead of #50?

👍 for the code as-is, pending @joesolly and @akrawchyk deciding on the scope of this ticket vs #50

@jcarbaugh we paired on this and closed #50 in favor of merging this PR. 👍


Update Composer dependencies (2020-11-19-00-13)

Visual regression test passed!
View the visual regression test report


fix: count the number of IDs in drop decision messages

Which problem is this PR solving?
The counts for drop and kept decisions are based on the number of messages received. However, because drop decisions are actually a set of Trace IDs vs kept which is per trace, the counts do correlate with each other.
For example, the below query shows around 17 drop messages per minute, while the kept decision count is around 2200.

This PR updates the drop count to count the number of IDs in the drop messages, which will give a real representation of the number of drop decisions.
Short description of the changes

Update the drop_decisions_received counter to count the number of IDs in the message

I feel like we actually want two metrics - one for the number of drop messages, and one for the number of items dropped in response to that. Both are going to be useful to us.


Move Config Tab

Thanks for this extension!
It is already debatable if it is necessary to have a custom tab in the system configuration. However, if you add one, could you at least move it elsewhere and not make it the first one? :)

We have actually discussed the "mediarox" menu item internally several times :)
The colleague I do not want to mention here by name,) has started the module with this menu and somehow it stuck to it.
With the next change, however, I will adapt it and probably also sort thematically into an existing point :)

@sprankhub Done. Don't forget to reset "bin/magento config:set checkout/options/split_street_into_name_and_number 1".


[BUG] Name of efficientNetv2 model on update is wrong

From your update notification:

v2 models w/ v1 scaling: tf_efficientnet_v2_b0 through b3

Whereas it should be tf_efficientnetv2_b0 instead in your efficientnet.py
Thank you for your wonderful codebase

@AnhMinhTran  thx, fixed the readme

Maybe all this stuff from readme should be placed in the doc? I've looked all over the doc and found no info on the naming of eff_v2 models. There is only some info from the changelog  and doc in the changelog doesn't seem good like a good idea

I still don't understand what these models from changelog mean and what it that v1 scaling
v2 models w/ v1 scaling: tf_efficientnetv2_b0 through b3


HLS Low Latency LAG

Which version are you using?
v0.19.0
Which operating system are you using?

[ x] Linux amd64 standard
[ ] Linux amd64 Docker
[ ] Linux arm64 standard
[ ] Linux arm64 Docker
[ ] Linux arm7 standard
[ ] Linux arm7 Docker
[ ] Linux arm6 standard
[ ] Linux arm6 Docker
[ ] Windows amd64 standard
[ ] Windows amd64 Docker (WSL backend)
[ ] macOS amd64 standard
[ ] macOS amd64 Docker
[ ] Other (please describe)

Describe the issue
if opening stream from remote client HLS stream starts to fall behind  and will eventually end up almost 60 seconds behind original stream
Describe how to replicate the issue

start the server  with the following rtsp paths
paths:
proxy1:
source: rtsp://demo:demo@<IP_ADDRESS>:554/cam/realmonitor?channel=1&subtype=0
sourceOnDemand: yes

connect to server with https://x.x.x.x:8888/proxy1 from remote PC browser not local server browser.

log in to ip camera to view live stream to compare.

watch stream for a few minutes and slowly the remote stream will fall behind original stream.  If open up a second connection https://x.x.x.x:8888/proxy1 lag will almost immediately happen.

refresh browser and everything will catch up for a short period of time but will eventually fall behind.

@aler9 I'm using those previously disabled parameters you shared above with hls.js, and it works great for me.
  "liveSyncDurationCount": 1,   "liveMaxLatencyDurationCount": 2.5,   "maxLiveSyncPlaybackRate": 1,   "liveDurationInfinity": true

If I understood @gmonk correctly, he means that rtmp (or in his case, rtsp) falls behind after a while. I also noticed this problem.
I'm streaming with OBS, and I have a timer in video. In the beginning, latency is around 2 seconds, which is awesome. Then it goes up to 3 seconds, and then 4, and so on.

fixed in v0.19.2.


clean up crashed scenarios

Just looking at htop inside the rpc-0 container im seeing processes listed from scenarios that are not showing as "active". I think we need to .join() those scenario threads when they either crash or finish.

I imagine this is the logging thread that's creating the stranded processes.
I'm going to add a handle to the logging thread onto the process dict, and join it in scenarios_stop

I have not had a chance to test this, but it gives an idea of what I'm thinking in terms of cleaning up the logging thread: https://github.com/bitcoin-dev-project/warnet/compare/main...mplsgrant:warnet:2024-07-process-context

I'm actually not able to faithfully reproduce this anymore. Starting scenarios with --invalid_options or using run-file with a file with syntax errors or using scenarios stop, all threads disappear appropriately in htop. Going to close for now until I see it again


How to get HTML element of event from the getEventById function?

Hello devs,
Is there a way to get the HTML element of event from the getEventById function?
Thanks in advance.

What exactly do you need the html element for? Please explain. Maybe one of the callbacks, for example, eventDidMount or eventContent, will suit your needs.

I'd like to get the positioning details of an event's div (boundingClientRect) for a contextual menu.

There are different callbacks where this can be done. For example, if the menu is initialized when an event is clicked, then the eventClick callback contains information about the html element. If the initialization must be done in advance, you can use eventDidMount.

I hope I can close this issue.


Add docs raw templates to adapt

:tada: This issue has been resolved in version 1.0.0-dev.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


0.7.15 OB Bug

:-1: Bad news -- There's a bug related to the OB changes in 0.7.15 that I'm still trying to fix.
:+1: Good news -- the bug seems to be related to using this.setState(..) in a Morearty-managed component which isn't something we should be doing anyway. I thought that my use-case was special and using setState was OK, but after removing all setState calls and re-evaluating the code I don't think it was necessarily a good case to use setState.

Gil, do you have a failing test case for this?

@gilbox, any updates on this problem? Can I be helpful?

Been too busy to look at it :-/ .... hopefully soon. I think what we need is to construct a test that uses this#setState and/or this#forceUpdate and breaks the OB update mechanism. The bug I encountered resulted in a missed render(). However, it was too complicated to really nail down the reason for it. All I know is that it worked in 0.7.14 but not 15. However, it did work in 15 after I refactored to use bindings and no setState/forceUpdate stuff.

Closing this after I spent some time trying to create a unit test that would fail. Hopefully I was confused and there is no bug.

Cool. :)


Add a new IncludeErrorDetails option to prevent the JWT middleware from returning error/error_description

We had agreed on the fact an option allowing to remove the error details from the WWW-Authenticate header was important, but it looks like it was not added by @Tratcher in his PR.
https://github.com/aspnet/Security/issues/776#issuecomment-210263382
/cc @Eilon @HaoK @Tratcher

Hi @PinpointTownes, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

You can clear JwtBearerChallengeContext.AuthenticateFailure to prevent any errors from being displayed. Looks like you want an Option instead.

I also pushed a new commit adding new properties in JwtBearerChallengeContext: Error and ErrorDescription. They will allow one to override the default error/description without having to rewrite the entire WWW-Authenticate header, as the syntax is particularly error-prone.

Looks like you want an Option instead.

Yes, I do. Events are for advanced (flow) control. Such a simple thing deserves an easily "discoverable" option.

Updated and rebased.

Thanks. Related: https://github.com/aspnet/Security/issues/864

If you can wait 2 or 3 minutes, I'd like to try a variation of this PR (being able to specify error and/or error_description independently)

Sure, go for it.

Well, it needed a bit more than 2/3 minutes :smile:
2 variations:

One allowing to specify error and error_description independently (you can return both, one of them or none).
One adding error_uri support and allowing error/error_description/error_uri to be set independently.

I also updated the if (Options.IncludeErrorDetails) check to avoid returning error/error_description when the token was not included in the request.
if (Options.IncludeErrorDetails && (authResult != null && !authResult.Skipped))
{
    eventContext.Error = "invalid_token";
    eventContext.ErrorDescription = CreateErrorDescription(eventContext.AuthenticateFailure);
}

Great, that should do it. Rebase and squash please.

Rebased and squashed.

Thanks for merging it :+1: