new doc: add module declaration example for bzlmod / MODULE.bazel

This document contains a simple example code snippet of aspects_rules_webpack module declaration that should help with the migration from the old WORKSPACE.bazel to MODULE.bazel.

Changes are visible to end-users: yes/no

Searched for relevant documentation and updated as needed: yes/no
Breaking change (forces users to change their own code or config): yes/no
Suggested release notes appear below: yes/no

Test plan

Covered by existing test cases
New test cases added
Manual testing; please provide instructions so we can reproduce:

 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.


Feature - Improved File Identification

I'm a daily user of the plugin and it has greatly improved my workflow!
I frequently work on files that are deeply nested in a project. Files being displayed with long similar file paths make quick identification and organization of files difficult.
Files displayed in other contexts within the IDE solve this issue by prepending the file path with the name of the file.

This could be implemented in a simpler way than in other areas of the IDE by including the file name in parenthesis before the path.
(index.php) /home/php/something/index.php
I would be happy to do the work for this if you would like to see it added to the plugin.

I am going to close this for now, If someone wants to create an alternative modal popup that accomplishes this I would be open to discussing that / a PR but for the time being i think the modal currently works for most use cases.


jax.numpy.arange should fall back to onp.arange

fixes #145

You're right, especially since our library code (like the PRNG code) can and does just call lax.iota directly for lazy constant business.


Use configuration file

A configuration file (e.g. .yaml) should be used instead of hard coded constants, maybe with hotloading.

argparse introduced in b32b74e6f9825b2e1b7eb93a28da1f08b2095113
configuration via command line arguments and/or environment variables


Update pulsar-client to 2.4.0

Updates org.apache.pulsar:pulsar-client from 2.3.2 to 2.4.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [{ groupId = "org.apache.pulsar", artifactId = "pulsar-client" }]

labels: semver-minor

FYI master is currently broken because there were other changes required for the upgrade. See https://github.com/sksamuel/pulsar4s/pull/44


Remove hard coded divisors

There are a few Sylius users who store their prices at a different prescicion to the Sylius default, and need to use a different divisor when converting to and from the int price value, to allow for easier overiding of this divisor the IntToStringConverter and DivisorProvider services should be used instead of hardcoding the value of 100, allowing stores that use a different divisor to only override 1 small class instead of quite a few different classes across the plugin.

Hello @markbeazley,
Please note that our team reviewed the changes and they were added to the plugin.
Note that a new plugin version is live and it contains the mentioned changes.
If you have any questions, feel free to let us know.
Thank you,
Kind regards.


EKF: fix initialization of local position validity 2

Alternative solution to https://github.com/PX4/ecl/pull/819.

The _deadreckon_time_exceeded flag is used in local_position_is_valid(). This means that
_params.valid_timeout_max after startup, in my observed case 5 seconds, the local position switches from valid to invalid and then after a while back to valid again. @julianoes

Since the local position flag is also responsible for entering into position control mode, the initial value should be false in my opinion. Otherwise take off in position control could be possible even tough there is no observation constraining the state.
Only after a first aiding event we should allow it to get valid until the aiding gets timedout eventually.
SITL log:
Before

After

This will still work for position mode with only optical flow, right?

This will still work for position mode with only optical flow, right?

Yes


No icon on doc

Hello I just noticed that the icon is not displayed on the macOS doc.
However mojang has fixed this bug, in snapshot 22w##.
Have a good day!

This remains unfixed because deleting the icon file is required for versions prior to 1.18 to run. I have not yet modified the system to conditionally delete only the older icon files but I will in the future.

This is fixed for 1.19


It won't work without the CSS file generated by the css-loader

The problem

In Next.js, if you don't import any .css file, the styles generated by stylex will not be added to the stylesheet.
How to reproduce

Steps to reproduce:

delete this line https://github.com/facebook/stylex/blob/c9b205750d835cba82b13ef5cdeaf30bbc683f70/apps/nextjs-example/app/layout.tsx#L10
rebuild
not working because not exists.next/static/css

Expected behavior

Is any .css file necessary? Can it be omitted?
Environment (include versions). Did this work in previous versions?
https://github.com/facebook/stylex/blob/c9b205750d835cba82b13ef5cdeaf30bbc683f70/apps/nextjs-example/package.json

Yes. This is a known issue with the Nextjs Plugin. For now, that one CSS file is required. Use it for global styles and resets.

I can work on this.

All yours @timwehrle. There are many problems with the NextJS plugin. Try to fix them in separate small PRs.
Here's an (incomplete) list:

Need for a CSS file
Need for a .babelrc file
Needs to delete .next folder between builds to work consistently.
Need to set a rootDir
Not being able to import @/... paths. (Probably needs a Babel change as well)

@nmn
Thank you for the overview. I will get back to you if I need any further help or clarification.

@timwehrle I think generating a CSS file when it doesn't exist is probably what we want. This should be possible by importing a virtual module or something like that.
But use your judgement here. I'm not sure what is even possible with the nextjs plugin. I do know that 2. and 3. are probably the most important to fix.

Thanks for working on this!

@nmn
Do you have insights on the developing of the issue #40? Because that's basically the same problem with point 4 and 5. Is there any progress?

@timwehrle Yes. Both of those are currently blocked on changes to the Babel plugin that I will be making. I wrote an RFC about it in Github Discussions
https://github.com/facebook/stylex/discussions/111

@nmn
While figuring out how the Next.js plugin works and how it updates the assets in an existing CSS file, I was thinking about the purpose of adding a CSS file when there is none? Since the CSS file is only generated on build time, the user would have to look where the CSS file is generated. It would be more convenient if we could automatically apply these styles within the Next.js app at build time and on dev.
StyleX isn't like the other CSS-in-JS libraries that all apply styles inline (for now or for ever isn't important tbh). We wouldn't have this problem if we just added the styles to a custom CSS file without updating another CSS file. But how that works is another story.
Regarding virtual modules, their functionality is not entirely clear to me. According to the documentation, we create a module if no CSS file is found. But how can we access the virtual module after building or during development?

It would be more convenient if we could automatically apply these styles within the Next.js app at build time and on dev.

This should be possible by automatically injecting an import for the css file while transforming JS files. I did something similar while making StyleX work with Svelte.
https://github.com/nmn/sveltekit-stylex
Outside of this, I'm not really sure @timwehrle. Sorry, I don't really have more guidance for you.

@nmn

Outside of this, I'm not really sure @timwehrle. Sorry, I don't really have more guidance for you.

No problem!

This should be possible by automatically injecting an import for the css file while transforming JS files. I did something similar while making StyleX work with Svelte.
https://github.com/nmn/sveltekit-stylex

Yeah, I'll see what I can do. Thank you!

@nmn Other question. Is your Svelte stylex plugin open to use for a personal project?

@timwehrle You don't have to ask me to fork or copy from that repo! It's open source and I've publicly shared it.


Update tests for newer versions of should.js

Looks like the jobs failed with several errors. You can run the full test suite yourself using make test-all or npm test

Looks like the jobs failed with several errors. You can run the full test suite yourself using make test-all or npm test

Think I've figured it out - there is an extra line in the stack traces now. Instead of:
      AssertionError: expected 'foo rar baz' to be 'foo bar baz'
      + expected - actual

      -foo rar baz
      +foo bar baz

      at Assertion.prop.(anonymous function) (node_modules/should/lib/should.js:61:14)
      at Context.<anonymous> (test/integration/fixtures/diffs/diffs.js:12:19)
      at callFn (lib/runnable.js:312:21)

we get:
      AssertionError: expected 'foo rar baz' to be 'foo bar baz'
      + expected - actual

      -foo rar baz
      +foo bar baz

      at Assertion.fail (node_modules/should/lib/assertion.js:91:17)
      at Assertion.Object.defineProperty.value (node_modules/should/lib/assertion.js:163:19)
      at Context.<anonymous> (test/integration/fixtures/diffs/diffs.js:12:19)
      at callFn (lib/runnable.js:312:21)

so we need to discard one more line when extracting the diff.
I've pushed an updated version that now passes.

Think I've figured it out - there is an extra line in the stack traces now. Instead of:
      AssertionError: expected 'foo rar baz' to be 'foo bar baz'
      + expected - actual

      -foo rar baz
      +foo bar baz

      at Assertion.prop.(anonymous function) (node_modules/should/lib/should.js:61:14)
      at Context.<anonymous> (test/integration/fixtures/diffs/diffs.js:12:19)
      at callFn (lib/runnable.js:312:21)

we get:
      AssertionError: expected 'foo rar baz' to be 'foo bar baz'
      + expected - actual

      -foo rar baz
      +foo bar baz

      at Assertion.fail (node_modules/should/lib/assertion.js:91:17)
      at Assertion.Object.defineProperty.value (node_modules/should/lib/assertion.js:163:19)
      at Context.<anonymous> (test/integration/fixtures/diffs/diffs.js:12:19)
      at callFn (lib/runnable.js:312:21)

so we need to discard one more line when extracting the diff.
I've pushed an updated version that now passes.

Thanks! It's unfortunate that the trace is a bit noisier, but at least we'll be using a recent release :)


Asio AudioAvailable event doesn't trigger after a while

Hi Mark,
After a while the AudioAvailable event handle isn't triggered anymore. Could be a driver issue or a hardware issue? I've tested with a MAYA44 USB board and a MOTU 16A board,
private void AudioManager_AsioAudioAvailable(object sender, AsioAudioAvailableEventArgs e)
{
}
Cannot be constantly reproduced. On Windows 10 is working on 98% situations. On Windows 7 is failing more often.
What boards have you tested so far for asio development?
Thank you,
Adrian,

Have you subscribed to the PlaybackStopped event - should get fired if there is some kind of problem with the Exception set.
I've only been able to test on the limited set of ASIO devices I've actually owned which is only a handful.

Didn't tried. I will be back with an answer. Thanks.

HI Mark,
Seems to be a driver issue. Thanks for your answer.
You may close the issue.

great, glad you got to the bottom of this


Url module

Type

[ ] Refactor
[x] Feature
[ ] Bug Fix
[ ] Optimization
[ ] Documentation Update

Description
Url module has been introduced:

immutable setters with dual-function api
integration with UrlParams

Related

Related Issue #
Closes #

@tim-smart done


Releasing workflow on tags

In light of a faster iterative workflow, I'd propose to release wheels for each tag, essentially replacing github.event_name == 'release' && github.event.action == 'published' in:
https://github.com/qiboteam/qibosoq/blob/af13fbbdfff786cd967ce5ddc862cad4ff4cd93b/.github/workflows/deploy.yml#L23
with github.event_name == 'push' && startsWith(github.ref, 'refs/tags/').
and changing the event:
https://github.com/qiboteam/qibosoq/blob/af13fbbdfff786cd967ce5ddc862cad4ff4cd93b/.github/workflows/deploy.yml#L3-L8
to just:
 on:
   push:

It makes sense for me! In this way we could still do "releases" every once in a while but it should ease the qibosoq-qibolab development


[FR] Implement PodDisruptionBudget in the charts of the policy-reporter package

The Kyverno package already has the PDBs implemented in the chart but not for the policy-reporter packages.

Thanks for your request, I will have a look on it

@fjogeleit thank you!

At the first look I am not sure if it is currently useful to add PDBs for the Core App and KyvernoPlugin.
Kyverno implements PDBs for the HA mode, which makes sense but PolicyReporter does not support HA mode (replicaCount > 1) for the Core App and KyvernoPlugin yet.
Maybe I would have to tackle this first before I can add this feature.

The new Helm Chart Release v2.11.0 supports HA mode for each component. I will update the documentation soon. The new Helm Chart also adds PDBs for each component that runs with a replicaCount > 1

@fjogeleit thanks so much!

you're welcome. Please let me know if you encounter any issue


Husky Issues

Husky is not invoking pre-commit hooks

On pre-installation, it will initiate the Husky folders and install them. You can also do this manually using npx husky install.
There was another issue concerning disk access to the file. This was resolved using chmod ug+x .husky/*. (Fixed on feature/pb-2-chat-and-node-configs-layout branch)


xActiveDirectory: Opt-In to DSC Resource Common Meta Tests

Pull Request (PR) description
This PR opts the module in to the following DSC Resource Common Meta Tests:

Common Tests - Validate Module Files
Common Tests - Validate Script Files
Common Tests - Relative Path Length
Common Tests - Validate Markdown Links

The following files required their Byte Order Mark (BOM) to be removed:

MSFT_xADDomainDefaultPasswordPolicy.psm1
MSFT_xWaitForADDomain.psm1

The links in Examples\README.md were converted from root relative to normal relative links. See Links that are relative to root are treated as broken
This Pull Request (PR) fixes the following issues

Fixes #280
Fixes #282
Fixes #283
Fixes #284

Task list

[ ] Added an entry under the Unreleased section in the CHANGELOG.md.
Entry should say what was changed, and how that affects users (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[ ] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[ ] Unit tests added/updated. See DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[ ] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

Codecov Report

Merging #306 into dev will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##            dev   #306   +/-   ##
===================================
  Coverage    90%    90%
===================================
  Files        20     20
  Lines      2238   2238
  Branches     10     10
===================================
  Hits       2026   2026
  Misses      202    202
  Partials     10     10

Asking since it is in Draft. 🙂

Ah, I bet you are waiting for the other PR to be merged. 🙂

Yes, lets get #303 merged first.


Multiple subscriptions on same event will not be notified

I've been using rust-nostr for a couple of days. Learned a lot, good work! @yukibtc
However, when I try to apply multiple subscriptions, some of them will not be notified.
Tracing the code I found those pieces in relay/internal.rs:
 let seen: bool = self
       .database
        .has_event_already_been_seen(&partial_event.id)
        .await?;

if !seen {
     // Send notification
     self.send_notification(RelayNotification::Event {
     subscription_id: SubscriptionId::new(&subscription_id),
         event: event.clone(),
      })
      .await;
    }

When using sub_A to get TextNotes of a accountA and use sub_B to get #nostr tag TextNotes, a event of accountA with #nostr tag will not be send to both sub handlers because it has been seen in database ( after first time ).
Is it a designed feature?

Hey, yes, this is not a bug. To handle multiple times the same event in notifications, you can use RelayPoolNotification::Message variant instead of  RelayPoolNotification::Event.
If you are using a persistent database, no notification is sent for an already stored/seen event, so you can use the database query method:
let database = client.database();
let events = database.query(...).await?;

Ok, I understand, thanks.


cargo metadata doesn't identify which crate in the current workspace is the "current" one

cc @matklad

Hm, and what is "the current crate"?  The one specified with --manifest-path or the closest to the current working directory?
We can surface that to cargo-metadata for sure, but logically it does not belong there (i.e, I expect cargo metadata to return the same output regardless of the location in the workspace it is invoked from).
I also feel that "current crate" is a bit elusive concept (there's no current crate with -all flag).
Perhaps it would not be that difficult to reconstruct "current" on the client's side? You don't have to do directory traversal, you can look at the manifest_path fields of Package nodes of metadata.

The "current" crate is the one that builds if I run cargo build with the same flags.

The "current" crate is the one that builds if I run cargo build with the same flags.

Cargo may build any set of packages from a workspace depending on the flags. For example
$ cargo build -p foo -p bar

will build foo and bar and their dependencies, but not, for example, baz. And there's also cargo build --all. So there's no the "current" crate really. Why do you need to know current crate?


[unit test] Refactored test cases with component func

I notice that some test case is updated in #334 . I will update this PR when #334  is approved.

I have rebased with the current develop branch and fixed a bug in cpu adam test case.


Allow serializing identical messages

This PR fixes the issues explained in issue/283 by checking the if the incoming value is a Message and its typeName equals to the field descriptor's typeName.

 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.

@fubhy Thanks for checking my PR. Great suggestions! I changed accordingly. I came with "conforms" as a method name. However I need some help because I had to change the generator code as well, but I don't know how to regenerate the well known protobuf files and now everything is broken due to the missing methods there.

@fubhy Thanks for checking my PR. Great suggestions! I changed accordingly. I came with "conforms" as a method name. However I need some help because I had to change the generator code as well, but I don't know how to regenerate the well known protobuf files and now everything is broken due to the missing methods there.

Yeah that's a bit of a chicken-and-egg problem... The make routine depends on the build output of tsc to run the protoc generator. In turn, protoc-gen-es depends on @bufbuild/protobuf which hosts some of the code that's generated by protoc-gen-es. So once that package contains code that doesn't pass the typecheck, you get stuck ... Sadly, tsc doesn't have a --transpileOnly option (ignore type checking during build).
Not sure how the buf.build team handles that locally but I simply reverted all local changes to ./packages/protobuf and then run make again.
@timostamm @smaye81 I think it would be good to configure tsconfig.json for development to have path aliases set up to the src of each package in the monorepo and then use a ts-node shebang for something like ./bin/protoc-gen-es.ts with ts-node configured to transpileOnly. Just for local development...
I've configured my plugin repo similarly FYI.

Ok, it seems I fixed all the issues. All tests pass and no there are no lint errors or warnings. The main changes are in the following files:
In protoc-gen-es:

packages/protoc-gen-es/src/declaration.ts
packages/protoc-gen-es/src/javascript.ts
packages/protoc-gen-es/src/typescript.ts

In  @bufbuild/protobuf:

packages/protobuf/src/message-type.ts
packages/protobuf/src/private/field-wrapper.ts
packages/protobuf/src/private/message-type.ts
packages/protobuf/src/private/util-common.ts
packages/protobuf/src/private/util.ts

In protobuf-test:

packages/protobuf-test/src/tobinary.test.ts

In the docs:

docs/runtime_api.md

I think during the next release the minor version might need to be bumped due to the API change, but I guess that is not part of this PR.

I force re pushed all commits because I had the wrong git user.name and user.email set.

Sandor, thank you for looking into this!
In the issue you put up, we take the wrong code path if instanceof fails, which causes a crash. This is very specific to our "unboxing" of the well-known wrapper types (docs). We should be more tolerant there for sure, this was an oversight.
In other cases where instanceof might fail, we fall back on a code path that simply creates a new instance. This is a pretty robust way to handle duplicate generated code.
The best way forward here is to fix the code paths that need to be more robust, and not add a type guard on MessageType.

@timostamm Are you against adding such a type guard on the generated code altogether or just for the sake of solving the original issue? I'd definitely see use for this type guard (see example below):
const conforming = new Example();
const nonConforming = new OtherType();
Example.conforms(conforming); // true
Example.conforms(nonConforming); // false

@rideg Apologies for leading you down the wrong path here!

I'm against a type guard in the generated code because it will only help in a very narrow band of use cases, where you have a class, but it might not have the identity you expect. For cases like this, it is also possible to override instanceof, for example:
Object.defineProperty(SomeMessage, Symbol.hasInstance, {
  value(instance: unknown) {
    return instance instanceof Message && instance.getType().typeName == SomeMessage.typeName;
  },
});

To be truly useful, fields must also be compared, otherwise it would give a false positive for a message with a removed field, for example. So far, I don't believe we need this complexity though. We can simply make our code paths a bit smarter to solve the original issue.
Apologies to both of you for not chiming in earlier.

There is another kind of type guard that would work well in combination with the recursive Plain<T> or message interfaces as described in https://github.com/bufbuild/protobuf-es/issues/230#issuecomment-1257544673:
function isMessage<T extends Message<T>>(arg: unknown, type: MessageType<T>): arg is Plain<T>;

This could be a welcome addition for folks who want to deconstruct and construct messages without caring about classes. But this is also something best added as a standalone function instead of a method on MessageType, if only to keep it tree-shakeable.
By the way, protobuf-ts has them - see the manual. They were added because it only generates interfaces, not classes, and there is no equivalent to instanceof. They are also quite expensive to run, and can't distinguish between a google.protobuf.Duration and a google.protobuf.Timestamp.

Ok I see where you are coming from. Thanks for clarifying!

Sure, thanks for the responses, reviews. I am going to close this PR as it is not necessary anymore.


ISSCC “Code-a-Chip” Travel Grant Awards submission: Deterministic Finite Automata(DFA) using OpenLane [Category-1]

I have submitted my design titled Deterministic Finite Automata(DFA) using OpenLane, which can be found under Notebooks/DFA_using_OpenLane/DFA_using_OpenLane.ipynb.
I am submitting this for ISSCC “Code-a-Chip” Travel Grant Awards under Category-1 as listed in the main README file.
cc @msaligane

Thanks, @msaligane for merging the PR. 🎉


RHINENG-11505: Added npm db:wait run target to wait for db to initialize

Fixing random build failures.

/retest


Add Option to Exclude Squared Preview Sizes

I think this is necessary because some people may want to see a Full-Screen preview at the Maximum Preview Size but some devices (like the Galaxy S4) have the maximum preview size square (1340x1340) and that preview is absolutely stretched!

Thanks

You're welcome! Please update the Maven repository so I can use it on Android easily


'ClientCapabilityToken' object has no attribute 'generator'

I did install the requiremnt and python version is 2.7.12
But I found this error and I can't connect to twilio

@alidabour Where did you include this? And did you get it working eventually? Thanks!

@alidabour Where did you include this? And did you get it working eventually? Thanks!

I can't remember as it has been a long time since I tried Twilio.

I see. Thanks! In case you get to know anything do let me know.

Hello everyone,
I apologize for the time it took to answer this issue, that tutorial was indeed very outdated compared to the changes in the libraries.
I've upgraded the tutorial to make it work with the latest versions of all dependencies. I've also extended the README to add basics use cases for this tutorial.
The reason why your call dropped immediately is because  the "support agent" needs to have a tab open on http://localhost:8000/support/dashboard.


src: display warning when no node_modules found

Also removing unnecessary console.log

Coverage decreased (-0.1%) to 93.333% when pulling 9468fc175cfb95cf77c47ddf492437b226971d3b on helio-frota:licenser-63 into 31536fc65180d5c56c7a78449cf5f037e3766fe0 on bucharest-gold:master.


GH-35321: [Python][CI] Skip extension type test failing with pandas 2.0.1

This test fails presumably because of a regression or change in behaviour in pandas 2.0.1, therefore skipping the test for now.

Closes: #35321

@github-actions crossbow submit test-pandas verify-rc-source-python-*

The pandas-nightly and pandas-upstream_devel failures are unrelated, right?

Indeed, those are related to https://github.com/apache/arrow/issues/35329


terminate called after throwing an instance of 'std::runtime_error' when not root

Steps to reproduce
Run the command  musikcube with the privilege of a normal user (not root)
Expected behaviour
Musikcube should open.
Actual behaviour
Musikcube raise following fault message
oliver@raspberrypi:~ $ musikcube
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
/usr/bin/musikcube: line 5:  1571 Aborted                 ./musikcube "$@"

When run the program under root, everything start normal without any problems.
Operating system:
oliver@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

oliver@raspberrypi:~ $ uname -a
Linux raspberrypi 4.14.62-v7+ #1134 SMP Tue Aug 14 17:10:10 BST 2018 armv7l GNU/Linux

musikcube can definitely be run without root. It looks like you have some sort of locale issue with this user -- probably related to the locale. For now, musikcube requires a UTF8 locale in the current shell to operate properly.
Can you provide the output of the command locale, and also what your current user's LC_ALL, LANGUAGE and LANG environment variables are set to?
Here's what I have on my pi:

pi@musikpi1:~ $ locale
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

And:

pi@musikpi1:~ $ env | grep LANGUAGE
pi@musikpi1:~ $ env | grep LC_ALL
pi@musikpi1:~ $ env | grep LANG
LANG=en_GB.UTF-8

Problem is solved and musikcube run under the normal user.
It seems to be that something went wrong when setting the localisation option in raspi-config.
After running the setup process again in rasp-config, musikcube can be started under the normal user.
Thanks for the support.


[fix](catalog recycle bin) table partition meta is error if recover partition in some case

Proposed changes
If recover partition use a new partition name:
recover partition p3 as p6 from db2.tbl1;

if the table contains a partition p3, the table partition meta of idToPartition and nameToPartition is inconsistent.
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Error when trying to setup a Schedule

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

do this in unix console:
cd ~/ThermOS
/usr/local/bin/gunicorn thermostat_web:app -b <IP_ADDRESS>:8080
navigate to

your.ThermOS.ip.address:8080

click on schedule. If you still get the error, copy and paste the output from the unix console.

/usr/local/bin/gunicorn thermostat_web:app -b <IP_ADDRESS>:8080
[2018-06-30 14:01:31 +0000] [18651] [INFO] Starting gunicorn 19.8.1
[2018-06-30 14:01:31 +0000] [18651] [INFO] Listening at: http://<IP_ADDRESS>:8080 (18651)
[2018-06-30 14:01:31 +0000] [18651] [INFO] Using worker: sync
[2018-06-30 14:01:31 +0000] [18656] [INFO] Booting worker with pid: 18656
^C[2018-06-30 15:29:55 +0000] [18651] [INFO] Handling signal: int
[2018-06-30 15:29:55 +0000] [18656] [INFO] Worker exiting (pid: 18656)
[2018-06-30 15:29:55 +0000] [18651] [INFO] Shutting down: Master

sorry, my mistake. I forgot that gunicorn doesn't output the debug information without some edits. do this instead:
cd ~/ThermOS
sudo service nginx stop
sudo python thermostat_web.py

navigate to the thermostat like normal (without the :8080) and it should output any errors encountered.

This was the output i got. THank you for your help!
pi@raspberrypi:~/ThermOS $ sudo python thermostat_web.py

Running on http://<IP_ADDRESS>:80/
Restarting with reloader
<IP_ADDRESS> - - [01/Jul/2018 01:06:10] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:14] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:14] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:15] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:19] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:20] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:22] "GET /schedule HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:22] "GET /static/css/bootstrap.css HTTP/1.1" 304 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:22] "GET /static/css/main.css HTTP/1.1" 304 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:22] "GET /static/css/bootstrap-datetimepicker.min.css HTTP/1.1" 304 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:23] "GET /static/bootstrap-datetimepicker.min.js HTTP/1.1" 304 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:23] "GET /static/jquery.min.js HTTP/1.1" 304 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:23] "GET /static/bootstrap.min.js HTTP/1.1" 304 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:23] "GET /static/fonts/AGENCYR.woff HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:23] "GET /static/fonts/AGENCYB.woff HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:23] "GET /static/images/bg.png HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:24] "GET /schedule/edit?id=new HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/share/pyshared/flask/app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "/usr/share/pyshared/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/share/pyshared/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/share/pyshared/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/share/pyshared/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/share/pyshared/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/share/pyshared/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/share/pyshared/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/pi/ThermOS/thermostat_web.py", line 350, in schedule_edit
return render_template("schedule_edit_form.html", entry=entry)
File "/usr/share/pyshared/flask/templating.py", line 127, in render_template
return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 830, in get_or_select_template
return self.get_template(template_name_or_list, parent, globals)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 791, in get_template
return self._load_template(name, self.make_globals(globals))
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 765, in _load_template
template = self.loader.load(self, name, globals)
File "/usr/lib/python2.7/dist-packages/jinja2/loaders.py", line 125, in load
code = environment.compile(source, name, filename)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 554, in compile
self.handle_exception(exc_info, source_hint=source)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/pi/ThermOS/templates/schedule_edit_form.html", line 92, in template {{ option }}

TemplateAssertionError: no test named 'equalto'
<IP_ADDRESS> - - [01/Jul/2018 01:06:24] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:24] "GET /schedule/edit?debugger=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:24] "GET /schedule/edit?debugger=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:24] "GET /schedule/edit?debugger=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:24] "GET /schedule/edit?debugger=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:25] "GET /schedule/edit?debugger=yes&cmd=resource&f=source.png HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:29] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:34] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 01:06:36] "GET /_liveUpdate HTTP/1.1" 200 -

ok, let's see what version of Jinja2 that you have.
pip show Jinja2

ah, that's the problem. it's an old version of jinja.
this should fix the problem.
pip install --upgrade Jinja2

When trying to perform the update this is the error I revived
pi@raspberrypi:~ $ pip install --upgrade Jinja2
Downloading/unpacking Jinja2 from https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl#sha256=74c935a1b8bb9a3947c50a54766a969d4846290e1e788ea44c1392163723c3bd
Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB): 126kB downloaded
Downloading/unpacking MarkupSafe>=0.23 from https://files.pythonhosted.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz#sha256=a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665 (from Jinja2)
Downloading MarkupSafe-1.0.tar.gz
Running setup.py (path:/tmp/pip-build-yReKKv/MarkupSafe/setup.py) egg_info for package MarkupSafe
Installing collected packages: Jinja2, MarkupSafe
Found existing installation: Jinja2 2.7.3
Not uninstalling Jinja2 at /usr/lib/python2.7/dist-packages, owned by OS
Compiling /tmp/pip-build-yReKKv/Jinja2/jinja2/asyncfilters.py ...
File "/tmp/pip-build-yReKKv/Jinja2/jinja2/asyncfilters.py", line 7
async def auto_to_seq(value):
^
SyntaxError: invalid syntax
Compiling /tmp/pip-build-yReKKv/Jinja2/jinja2/asyncsupport.py ...
File "/tmp/pip-build-yReKKv/Jinja2/jinja2/asyncsupport.py", line 22
async def concat_async(async_gen):
^
SyntaxError: invalid syntax
Can't roll back Jinja2; was not uninstalled
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 295, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
pycompile=self.pycompile,
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 214, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 204, in clobber
os.makedirs(destdir)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Jinja2-2.10.dist-info'
Storing debug log for failure in /home/pi/.pip/pip.log

Ok, so nevermind i just had to run that previous command with sudo and it upgraded. Sadly its still giving the same error when trying to add an entry into the schedule.

that's really weird. After running it like this:
cd ~/ThermOS
sudo service nginx stop
sudo python thermostat_web.py

is it still spitting out the
TemplateAssertionError: no test named 'equalto' error?
if so, do this
python
import jinja2
jinja2.__version__
*note: there are two underscores on each side of 'version'
(ctrl + z to stop the python console)

this is the python log
pi@raspberrypi:~/ThermOS $ sudo python thermostat_web.py

Running on http://<IP_ADDRESS>:80/
Restarting with reloader
<IP_ADDRESS> - - [01/Jul/2018 21:48:27] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 21:48:32] "GET /schedule HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 21:48:32] "GET /_liveUpdate HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 21:48:32] "GET /static/css/bootstrap-datetimepicker.min.css HTTP/1.1" 304 -
<IP_ADDRESS> - - [01/Jul/2018 21:48:32] "GET /static/bootstrap-datetimepicker.min.js HTTP/1.1" 304 -
<IP_ADDRESS> - - [01/Jul/2018 21:48:35] "GET /schedule/edit?id=new HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/share/pyshared/flask/app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "/usr/share/pyshared/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/share/pyshared/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/share/pyshared/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/share/pyshared/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/share/pyshared/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/share/pyshared/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/share/pyshared/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/pi/ThermOS/thermostat_web.py", line 350, in schedule_edit
return render_template("schedule_edit_form.html", entry=entry)
File "/usr/share/pyshared/flask/templating.py", line 127, in render_template
return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 830, in get_or_select_template
return self.get_template(template_name_or_list, parent, globals)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 791, in get_template
return self._load_template(name, self.make_globals(globals))
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 765, in _load_template
template = self.loader.load(self, name, globals)
File "/usr/lib/python2.7/dist-packages/jinja2/loaders.py", line 125, in load
code = environment.compile(source, name, filename)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 554, in compile
self.handle_exception(exc_info, source_hint=source)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/pi/ThermOS/templates/schedule_edit_form.html", line 92, in template {{ option }}

TemplateAssertionError: no test named 'equalto'
<IP_ADDRESS> - - [01/Jul/2018 21:48:35] "GET /schedule/edit?debugger=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 21:48:35] "GET /schedule/edit?debugger=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 21:48:35] "GET /schedule/edit?debugger=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 21:48:35] "GET /schedule/edit?debugger=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 21:48:35] "GET /schedule/edit?debugger=yes&cmd=resource&f=source.png HTTP/1.1" 200 -
<IP_ADDRESS> - - [01/Jul/2018 21:48:37] "GET /_liveUpdate HTTP/1.1" 200 -
^Z
[1]+  Stopped                 sudo python thermostat_web.py

And the Jinja2 version is 2.7.3

ok, so jinja didn't actually update. lets just fully uninstall it, then re-install it.
sudo pip uninstall Jinja2 -y
sudo pip install Jinja2==2.10
You will probably get a couple of syntax errors, but it should install successfully.

So I was able to uninstall Jinja to the latest version but now its doing the famous
502 Bad Gateway
nginx/1.6.2

FIXED IT, after rebooting and installing thermos again. It is successfully taking the schedule now. Thank you!
This is an amazing setup and i appreciate the quick responses. You make doing fun hobbies like this enjoyable!

cool. Glad you got it working. Let me know if you run into any other problems!


Update white-glove.md

From a discussion with a customer who is Implementing this technology, they have confirmed it did not work in a Hybrid Configuration until Writeback for Devices was enabled in Azure AD Connect

I'm checking with the product team before OK'ing this change.

Hi, according to the product team this setting is not required by Autopilot. It isn't clear why this helped in the current scenario. Further analysis is necessary - but we can't add this as a requirement.


Setting "color" property breaks outer circle selection

Both the ColorPicker and TriangleColorPicker work perfectly with RN 0.63.2 when the "color" property is NOT used.
When this property is set, the outer circle no longer registers a tap on either component. The TriangleColorPicker does update the color when tapping within the triangle, but the marker does not move to the new position.
Any help would be greatly appreciated, cheers.

Can only assume that this component is no longer being supported, a real shame as it looks great & very nearly works perfectly.

what are you setting the color prop to be? share the code of it please might be able to help :)

Just a simple picker with the color prop set to an RGB Hex value will break the component, have also tried toHsv('red') but makes no difference:
<TriangleColorPicker style={{width: 200, height: 200}} color="#ffffff" />


DSA : Array rearrangement #446

Description 📜
I have completed the documentation on Array Rearrangement topic.
Fixes # 446

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] DSA

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

please assign me a task


Pinch zoom in Gallery grid example isn't under my fingers

I would expect it to zoom under my fingers, instead it seems to just scale from 0,0.
See video.

https://youtu.be/Tkehd48owLM

/cc @HansMuller

I have a fix for this. Will try and land it tomorrow.


Use built-in google analytics code

Using the built-in google analytics code that was introduced in v0.16, the minimum version supported by this theme.

@deberon Thanks! marged.


Update README.md

Cutting down on issue duplication

Coverage remained the same at 40.0% when pulling a3d1d25914d0e4998a45157d5db62bbd6d7151f9 on redstone2019-patch-2 into 1fe191d4d97309b0216d8d1b3446a682d6d711ee on master.


ORC-1082: Fix code in FileDump and JsonFileDump commands that determines if column statistics exist

What changes were proposed in this pull request?

This pr is aims to fixing code in the FileDump and JsonFileDump commands that determines whether a column statistic exists or not.
Why are the changes needed?

Before we can get the ColumnStatistics from RowIndex we need to determine whether it exists or not.
entry.getStatistics() does not return null at any time, and will return a default object when it is not set.
The current impl is wrong
      OrcProto.ColumnStatistics colStats = entry.getStatistics();
      if (colStats == null) {
        buf.append("no stats at ");
      }

How was this patch tested?

This can be tested with the following code
  @Test
  public void test() {
    OrcProto.RowIndexEntry entry = OrcProto.RowIndexEntry.newBuilder().addPositions(0).build();
    assertFalse(entry.hasStatistics());
    assertNotNull(entry.getStatistics());
  }

But since this is just testing Protobuf generated code, I'm not sure if I should add it to the unit tests.
On the other hand, our proto is defined as follows, statistics is optional
https://github.com/apache/orc/blob/7d2838b4b38111bc1bfa00592d84a8b36286b9f2/proto/orc_proto.proto#L102-L105
Our orc writer implementation, however, will definitely write statistics, and there is no optional configuration, so it cannot be verified by the files written by orc
https://github.com/apache/orc/blob/7d2838b4b38111bc1bfa00592d84a8b36286b9f2/java/core/src/java/org/apache/orc/impl/writer/TreeWriterBase.java#L322-L330

Thanks. Could you elaborate how to verify your PR in the PR description, @guiyanakuang ?

@dongjoon-hyun This can be tested with the following code
  @Test
  public void test() {
    OrcProto.RowIndexEntry entry = OrcProto.RowIndexEntry.newBuilder().addPositions(0).build();
    assertFalse(entry.hasStatistics());
    assertNotNull(entry.getStatistics());
  }

But since this is just testing Protobuf generated code, I'm not sure if I should add it to the unit tests.
On the other hand, our proto is defined as follows, statistics is optional
https://github.com/apache/orc/blob/7d2838b4b38111bc1bfa00592d84a8b36286b9f2/proto/orc_proto.proto#L102-L105
Our orc writer implementation, however, will definitely write statistics, and there is no optional configuration, so it cannot be verified by the files written by orc
https://github.com/apache/orc/blob/7d2838b4b38111bc1bfa00592d84a8b36286b9f2/java/core/src/java/org/apache/orc/impl/writer/TreeWriterBase.java#L322-L330

You are right. Accept criticism :grimacing:


fix WSL "connection refused" to the fake API

By default the CLI starts a fake API server which intercepts calls to a real API which allows the CLI to print output to stdout or a file.
Unfortunately on Linux, Docker won't allow a container to communicate with a server running on the host on <IP_ADDRESS>, so we had to set it to <IP_ADDRESS>.
Even more unfortunate, is on WSL which is a Linux variant, <IP_ADDRESS> doesn't work at all so we have to set it back to <IP_ADDRESS>.
Using the info in https://github.com/microsoft/WSL/issues/423#issuecomment-221627364 to detect WSL.

@RobJellinghaus if you have a free moment, could you verify that this works in WSL without having to use the FAKE_API_HOST environment variable?


cudnn <IP_ADDRESS>

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

The recipe license should not include the word "License".

For recipe:

License is not an SPDX identifier (or a custom LicenseRef) nor an SPDX license expression.

Documentation on acceptable licenses can be found here.

@conda-forge-admin, please rerender

Should we grab the changes from PR ( https://github.com/conda-forge/cudnn-feedstock/pull/13 )?

Should we grab the changes from PR ( #13 )?

No, please wait until https://github.com/conda-forge/conda-smithy/pull/1453 is in

Those changes were just fixing the license message. Are we thinking of different changes?

Oops. sorry, I meant adding conda_build_config.yaml.

Oops. sorry, I meant adding conda_build_config.yaml.

Sorry, I'm not clear. Do you mean that I should remove the conda_build_config.yaml and wait until conda-forge/conda-smithy#1453 is in?

All good. Yeah that makes sense
Keith do you know how soon we need this?

Keith do you know how soon we need this?

I'm trying to preemptively put out anticipated fires so I don't think it's critical 😆.
I saw this as a good opportunity for me to get some much needed experience in playing with using a conda_build_config.yaml file which is why I put in the PR, but happy to wait until other things land if that would be better.

Big fan of doing things preemptively. So thanks for getting this going 🙏
Yeah I think we are waiting on some upstream changes in conda-smithy that will make it easier to select OS. Though haven't caught up on that discussion personally. Hopefully Isuru can fill us in 🙂

Alright, will hold tight until I hear otherwise then. Anyone feel free to push to my branch as desired here 😄

I just pushed the last bit to that smithy PR, so this should be on its way sometime tomorrow I think.

@beckermr, would you be able to advise on what we should do instead here? 🙂
Seems like conda-smithy got released. Though still a little unclear on how we should take that into account with our changes here. Do we change or remove conda_build_config.yaml? Is there anything else we need to add?

@isuruf has a specific idea of what he wants to do here. I will defer to him.

@conda-forge-admin, rerender

@conda-forge/core Could someone review / merge this? It seems I'm the only maintainer on this now.

Thanks all! 😄

Sorry, I was going to merge after tests pass and was offline when it did.

All good 🙂
If we missed anything in this PR, please let us know and we will be happy to add that in a new PR


improve the typing of IEditorOverrideServices

currently IEditorOverrideServices is only typed as
    export interface IEditorOverrideServices {
        [index: string]: any;
    }

when we need to override a service, for example, storageService, we need to implement this interface https://github.com/microsoft/vscode/blob/ff1e16eebb93af79fd6d7af1356c4003a120c563/src/vs/platform/storage/common/storage.ts#L37 , but there is no help from typescript. if this changes in the next version of monaco, we will only find out about it when things start to crash. considering that there is a correct type for storageService, it would be nice to add it to IEditorOverrideServices.

Defining each and every service would explode the typings necessary for monaco.d.ts and would introduce tens of breaking changes that we would need to document each month. For this reason, it is unlikely that we will ever type each and every service.

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!


refactor: remove unnecessary imports

This library requires Node.js >= 18, so you can use global fetch. URL and URLSearchParams are also globally available.
By using them as global members, the library possibly works in other runtimes like Deno and Cloudflare Workers

hey @m-shaka thanks for this!
i didn't realize the URL stuff could be omitted now, but there is a reason we're still using node-fetch over the native fetch implementation. it has to do with the way the network requests are implemented, node-fetch being implemented in a way that we can mock the requests in our test suite. if you ran the tests you would have seen a bunch of errors
cheers!


about dn_labelbook_size

Hello,
When I  read the code I found：
self.label_enc = nn.Embedding(dn_labelbook_size + 1, hidden_dim)
In your model， the loss function is sigmoid_focal_loss， and  dn_labelbook_size and num_classes are 91 when using the coco dataset.
So：

Why not use 90 but 91 for dn_labelbook_size and num_classes?
Why is the first dimension of label_enc 92 instead of 90?

thank you

Hey, the dimension of label_enc is not important, as COCO only has around 80 classes, but we use dn_labelbook_size + 1 here. You can simply ignore the empty classes that are not used.

think you for your answer


Xcode project who use SPM report Invalid manifest when using the official custom xctoolchain swift-5.9-RELEASE

Description

Steps to reproduce

Does not help.

Download toolchain:

https://download.swift.org/swift-5.9-branch/xcode/swift-5.9-DEVELOPMENT-SNAPSHOT-2023-11-09-a/swift-5.9-DEVELOPMENT-SNAPSHOT-2023-11-09-a-osx.pkg

Clone test project
You can use the open-source App: https://github.com/Dimillian/IceCubesApp

Run xcodebuild with custom toolchain

xcodebuild clean build -scheme IceCubesApp -configuration Release -destination generic/platform=iOS -toolchain org.swift.59202311091a

See the error report in compiler

Some logs:
  Invalid manifest (compiled with: ["/Users/lizhuoli/Library/Developer/Toolchains/swift-5.9-DEVELOPMENT-SNAPSHOT-2023-11-09-a.xctoolchain/usr/bin/swiftc", "-vfsoverlay", "/var/folders/3j/f1xz341d5ys0srwhn7_bphhw0000gn/T/TemporaryDirectory.VU07kb/vfs.yaml", "-L", "/Applications/Xcode-15.0.0.app/Contents/SharedFrameworks/SwiftPM.framework/SharedSupport/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/Applications/Xcode-15.0.0.app/Contents/SharedFrameworks/SwiftPM.framework/SharedSupport/ManifestAPI", "-target", "arm64-apple-macos13.0", "-sdk", "/Applications/Xcode-15.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk", "-swift-version", "5", "-I", "/Applications/Xcode-15.0.0.app/Contents/SharedFrameworks/SwiftPM.framework/SharedSupport/ManifestAPI", "-sdk", "/Applications/Xcode-15.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk", "-package-description-version", "5.7.0", "-Xfrontend", "-serialize-diagnostics-path", "-Xfrontend", "/Users/lizhuoli/Library/Caches/org.swift.swiftpm/manifests/ManifestLoading/network.dia", "/Users/lizhuoli/Documents/GitHub/IceCubesApp/Packages/Network/Package.swift", "-disallow-use-new-driver", "-o", "/var/folders/3j/f1xz341d5ys0srwhn7_bphhw0000gn/T/TemporaryDirectory.9G4Ac1/network-manifest"])
<unknown>:0: warning: legacy driver is now deprecated; consider avoiding specifying '-disallow-use-new-driver'
<unknown>:0: error: unable to execute command: <unknown>

Expected behavior

The compile step of SPM Package.swift manifest should be succesfully parsed.

Environment

Swift compiler version info:

Apple Swift version 5.9.2-dev (LLVM 4b0e1e14cd3e844, Swift ddd35229c3ba1b2)
Target: arm64-apple-macosx13.0

Xcode version info
Version 15.0 (15A240d)

Deployment target:
arm64-apple-macos13.0

When using the Xcode Build Settings (via xcodbuild -xcconfig build.xcconfig):
SWIFT_EXEC = /Library/Developer/Toolchains/swift-5.9-DEVELOPMENT-SNAPSHOT-2023-11-09-a.xctoolchain/usr/bin/swiftc
CC = /Library/Library/Developer/Toolchains/swift-5.9-DEVELOPMENT-SNAPSHOT-2023-11-09-a.xctoolchain/usr/bin/clang

This compile success.
I don't understand is there anything related to SPM, because this global compiler changes should has the same effect as changing the xcodebuild -toolchain, but seems they are not equal.

If I run the compiler from the output log (removing the temp file vfsoverlay:
"/Users/lizhuoli/Library/Developer/Toolchains/swift-5.9-DEVELOPMENT-SNAPSHOT-2023-11-09-a.xctoolchain/usr/bin/swiftc" "-L" "/Applications/Xcode-15.0.0.app/Contents/SharedFrameworks/SwiftPM.framework/SharedSupport/ManifestAPI" "-lPackageDescription" "-Xlinker" "-rpath" "-Xlinker" "/Applications/Xcode-15.0.0.app/Contents/SharedFrameworks/SwiftPM.framework/SharedSupport/ManifestAPI" "-target" "arm64-apple-macos13.0" "-sdk" "/Applications/Xcode-15.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk" "-swift-version" "5" "-I" "/Applications/Xcode-15.0.0.app/Contents/SharedFrameworks/SwiftPM.framework/SharedSupport/ManifestAPI" "-sdk" "/Applications/Xcode-15.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk" "-package-description-version" "5.7.0" "-Xfrontend" "-serialize-diagnostics-path" "-Xfrontend" "/Users/lizhuoli/Library/Caches/org.swift.swiftpm/manifests/ManifestLoading/network.dia" "/Users/lizhuoli/Documents/GitHub/IceCubesApp/Packages/Network/Package.swift" "-disallow-use-new-driver" "-o" "manifest"

I got a binary here:
manifest.zip
But I didn't get why SPM still report Invalid manifest ? Is the format not correct ? Should be a JSON file ?

Is this error message from swiftpm/Sources/PackageLoading/ManifestLoader.swift ?

Should I report issue to https://github.com/apple/swift-package-manager ?


Feature/update if w hawc

Complete this sentence
THIS PULL REQUEST IS READY TO MERGE
Feature or improvement description
Add an additional option to the WindProfile parameter: -1 is allowable so that the mean profile is not added on. Use case would be when a user wants to directly supply inflow planes that include both the mean wind and turbulence, e.g., when using sampled output from SOWFA and using it as inflow data.

Also added the ability to shift the HAWC wind.  This is added into the InflowWind input files as the last line in the Mean wind profile parameters (added to HAWC-format files)
         0    InitPosition(x) - Initial offset in +x direction (shift of wind box)


Project file path's get stripped?

I have just been looking into paket and on one project I used the convertion from NuGet to Paket. That worked perfect.
When I run the paket install command, this also works as I expect it to do until it is going through the project files. The error message I get is "Unable to parse" and "Could not find file". From what I see, it looks like it do not like that I have one folder with the name XXX and a folder inside there with the same name (XXX).
So my project file is located in C:\Projects\ProjectName\Entities\Entities\ProjectFile.csproj. When paket install go through, it will find C:\Projects\ProjectName\Entities\ProjectFile.csproj.
For me it looks like Paket is stripping away some of the path's.

Is there a chance that you mail me the program or is there any chance to
reproduce?
On Dec 15, 2015 08:16, "Teis Lindemark"<EMAIL_ADDRESS>wrote:

I have just been looking into paket and on one project I used the
convertion from NuGet to Paket That worked perfect
When I run the paket install command, this also works as I expect it to do
until it is going through the project files The error message I get is
"Unable to parse" and "Could not find file" From what I see, it looks like
it do not like that I have one folder with the name XXX and a folder inside
there with the same name (XXX)
So my project file is located in
C:\Projects\ProjectName\Entities\Entities\ProjectFilecsproj When paket
install go through, it will find
C:\Projects\ProjectName\Entities\ProjectFilecsproj
For me it looks like Paket is stripping away some of the path's
—
Reply to this email directly or view it on GitHub
https://github.com/fsprojects/Paket/issues/1310.

Unfortunately, it is not possible to send the program. I can try to create a small dummy project later today to see if I can reproduce it there. If I am able to do that, I can add that dummy project.

That would help me a lot. Thanks
On Dec 15, 2015 08:37, "Teis Lindemark"<EMAIL_ADDRESS>wrote:

Unfortunately, it is not possible to send the program. I can try to create
a small dummy project later today to see if I can reproduce it there. If I
am able to do that, I can add that dummy project.
—
Reply to this email directly or view it on GitHub
https://github.com/fsprojects/Paket/issues/1310#issuecomment-164674109.

Okey, then I will do my best to reproduce this in a dummy project when I get home from work today.

Now I have tried to create a dummy project, but I am not able to get the same messages that I got in the project I started to use Paket. I guess that this issue can be closed and if i later are able to reproduce or something report again.

Are you still getting this in the original repo? Can you run "paket install
-v"?
On Dec 15, 2015 17:49, "Teis Lindemark"<EMAIL_ADDRESS>wrote:

Now I have tried to create a dummy project, but I am not able to get the
same messages that I got in the project I started to use Paket. I guess
that this issue can be closed and if i later are able to reproduce or
something report again.
—
Reply to this email directly or view it on GitHub
https://github.com/fsprojects/Paket/issues/1310#issuecomment-164824140.

Okey, now I have been running paket install -v and I still get the same messages in the project. I can give you a a screenshot. This is maybe not exactly the case I sayed above, but that case is happeing as well in the beginning of the install process. But this is also a bit strange and I do not see why it happen.

mhm. that's strange
not sure how to go forward without a repro case.

We have a similar error message, even though it does not seem to have an actual impact. Projects not found are correctly migrated to Paket.
As for @teilin, we cannot provide the projects for reproing :(

If anyone is interested in debugging fixing this on your network:

Clone paket repo and open in VS
set paket.exe as startup project and set working dir to your comapny repo
set startup argument to "install"
hit F5 and try to see what happens.

If you find some time then this would be really really helpful.

@teilin my guess from the screenshot, it's the problem with the inter project dependencies.
Can you look at the ProjectReference node for the Entities project in the SecurityIntegrationTests.csproj file.
What is the value of the Include attribute?

Thaks @mexx. I see that the ProjectReference to the Entities project was wrong.

is there something we could imrprove in Paket`?

I have not had time to look into it more than just seeing that the path was wrong in the project file. I can not think of any improvements in Paket that could fixed it. I guess the issue can be closed.


License

Could you please let me know/push what the license for the data in this repo is?

Text is CC-BY. I created a license: https://github.com/langsci/98/blob/master/LICENSE.md .
Github does not offer CC licenses in the dropdown menu.
If you are asking for the python code, there is https://github.com/langsci/scripts. I still have to reconcile that repo and this one. For the scripts, the license is MIT.

Thanks. I am building a database with plural classes, so mining these tex files in this case is pretty easy.


CockroachDB - Cannot load some table information

System information:

Operating system (distribution) and version: Windows 7 Professional x64, MacOS 10.14.2.
DBeaver version: 5.3.3
Java version: 1.8.0_201 x86_64
Additional extensions: None

Connection specification:

Database name and version: CockroachDB v2.1.4
Driver name: CockroachDB
Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you're observing:
I am unable to view some of the table data in DBeaver when opening the "Properties" pane for the table.
Specifically, the table I am using to test is as follows:
root@:26257/defaultdb> show columns from test_data;
  column_name | data_type | is_nullable |  column_default   | generation_expression |   indices   | is_hidden
+-------------+-----------+-------------+-------------------+-----------------------+-------------+-----------+
  id          | UUID      |    false    | gen_random_uuid() |                       | {"primary"} |   false
  first_name  | STRING    |    false    | NULL              |                       | {}          |   false
  last_name   | STRING    |    false    | NULL              |                       | {}          |   false

The Indexes pane shows the error unknown function: pg_catalog.pg_relation_size(). There is an index on the table:

root@:26257/defaultdb> show indexes from test_data;
  table_name | index_name | non_unique | seq_in_index | column_name | direction | storing | implicit
+------------+------------+------------+--------------+-------------+-----------+---------+----------+
  test_data  | primary    |   false    |            1 | id          | ASC       |  false  |  false

The Permissions pane does not display current permissions, even though grants have been assigned:

root@:26257/defaultdb> show grants on table test_data;
  database_name | schema_name | table_name | grantee   | privilege_type
+---------------+-------------+------------+-----------+----------------+
  defaultdb     | public      | test_data  | admin     | ALL
  defaultdb     | public      | test_data  | root      | ALL
  defaultdb     | public      | test_data  | testadmin | ALL

The DDL panel does not display current permissions either.

Steps to reproduce, if exist:

Set up a CRDB server and create a table.
View the table properties in DBeaver.
Note that the same error messages appear.

Include any warning/errors/backtraces from the logs
Logs aren't included because the error reasons are obvious (the functions don't exist in CRDB).

I am evaluating DBeaver for use for my development group and hoping to get them to use it for CRDB, but editing and viewing all table information that CRDB supports is a requirement.
My understanding was that there is now a custom module for CRDB in DBeaver, so using CRDB specific calls instead of their Postgres equivalent functions should not be an issue. Are there plans to support the remaining properties I reference in this issue, or do we need to try to patch support in somehow?
Thanks for your time.

Also rule list reading isn't working (as it is not supported by CRDB).
Thanks for the bug report. See fixes in the next version.

Wow, so fast. Thanks very much!


POST handlers pose a security risk

I believe that the two POST handlers, for writing source files and uploading documents, pose a cross-site scripting security risk: if the user visits a malicious website while running fava, the malicious website could send a POST request and overwrite source files or upload documents.  The only information required is the path to the source file; while this might not be trivial to guess in some cases, it is hardly a sufficient security measure.
Any of a number of security measures designed for this purpose could probably be employed: e.g. a random token generated upon startup sent to the browser, or perhaps referer/origin checking would also be sufficient.

Thanks @jbms for mentioning this.
The easiest way would be to include a CSRF-token (http://flask.pocoo.org/snippets/3/).
@yagebu discussed (https://github.com/aumayr/fava/pull/346#issuecomment-2373338229 moving all the JS-endpoints to it's own sub-path (/api or something) - in this step we should also introduce a mechanism to fix this bug.

A CSRF-token is not really good for the JSON API as it would become invalid on a reload on changes to the source file.

For me the protection we have now (#367) is enough. It's seems like it's only exploitable with Flash and possible older browsers (as I expect newer versions to have addressed this problem).
See http://stackoverflow.com/a/22533680 for details.
If anyone can think of a painless way to add and Origin check, that would be even better...

@jbms Is #367 enough for you?

I'm a bit concerned about it still being exploitable with Flash.  Perhaps the CSRF token is obtained via a regular GET XMLHttpRequest.  If any request that requires the CSRF token fails (presumably because the token was stale due to a server restart), a new token can be requested, and then the request retried.

I'm a bit concerned about it still being exploitable with Flash.

Thanks for insisting, I guess you're right. It sucks that we have to work around a browser bug/vulnerability...
Turns out that adding an origin check is not so bad, so I'll do that.

Can X-Forwarded-Host not be set from vulnerable Flash in the same way that X-Requested-With can be set?


Support Admission WebHooks that use Services

The need
A quite big proportion of controllers that create Kubernetes standard workload objects (Deployments, ...) from higher-level or domain-specific CRDs define webhooks. And in most cases these are service-based webhooks.
These should be supported in a typical TMC environment if we want such operators to be usable, or at least testable under TMC.
First POC
A branch already already provides a hacky and non-mergeable implementation of service-based webhooks: https://github.com/kcp-dev/kcp/pull/2910, which directs the webhooks to services/proxy sub-resources (themselves tunneled to the SyncTarget physical cluster.
While this works feature-wise and allows playing with controllers that require webhooks, this is a no-go and cannot be merged, since insecure: services/proxy uses insecure TLS connections, so that the CAs of the webhook configurations are ignored.
Required changes for a real implementation
A real implementation would require tunneling such requests at the TCP level, and not at the http level.
According to the first exploration, this probably involves the following changes:

in the KCP mutation and admission plugins:

inject the tunneler (once made available and public, as well as the tunneler.GetDialer function)
using a dedicated Endpointsresolver to
using a dedicated AuthenticationResolverWrapper that overrides the restConfig.Dialer to set it to the tunneler Dialer for the right SyncTarget. This would send the tcp traffic involved in the request directly to the other side (including the first TLS handshake)
This includes finding a way to pass to these resolvers the clusterName of the webhook configuration (which is also the clusterName of the webhook service), in addition to the namespace, name and port.

on the Syncer tunneler side:

remove the direct connection of the http server (associated with a NewSingleHostReverseProxy) to the tunneler lister
directly use the listener with a simple net server (at the TCP layer) that can:

peek the http request from the connection to find out the expected host
according to the case (either the physical cluster apiServer itself, as until now, or another host in the case of traffic sent from KCP to a service for webhooks)

forward the http request to the http server (apiServer case)
or send the raw traffic to the expected host (service case)

Changes required for a real implementation started in the following branch:
https://github.com/kcp-dev/kcp/compare/main...davidfestal:service-based-webhooks-at-tcp-level

We probably want careful guidrails on this sort of thing to help users not DoS themselves in a sharded/multi-region kcp.

We probably want careful guidrails on this sort of thing to help users not DoS themselves in a sharded/multi-region kcp.

Please provide more details here. help wanted.

/transfer-issue contrib-tmc

/transfer-issue contrib-tmc


Composer already loaded

Could we detect that composer is already loaded?
see https://roots.io/using-composer-with-wordpress/

Please use the new issue template to file a complete issue


Tariff: add forecast provider

Fix https://github.com/evcc-io/evcc/issues/13435
This PR adds a forecast option to the custom tariff. forecast, if specified, must be a StringProvider delivering JSON conforming to api.Rates, i.e. a slice of maps containing start, end and price.
Users can specify either price or forecast.

I have two questions about this enhancement:

will it work with source http also?
what is the default refresh time of the call? Im a bit afraid of triggering too often
Thanks in advance!

Called every hour and oblivious to the plugins it uses.


Error during loading a model

There is a model which was created using Jupyter notebook with filename 20200528-model-3.h5. Now a new different notebook is created to load and test the model. But, model loading gets failed.
Here is the code:
import tensorflow as tf
model_filename = '20200528-model-3.h5'
model = tf.keras.models.load_model(model_filename)

And error:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-20-11211a1508b6> in <module>
      1 model_filename = '20200528-model-3.h5'
----> 2 model = tf.keras.models.load_model(model_filename)

~/unetnew/env/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/save.py in load_model(filepath, custom_objects, compile)
    144   if (h5py is not None and (
    145       isinstance(filepath, h5py.File) or h5py.is_hdf5(filepath))):
--> 146     return hdf5_format.load_model_from_hdf5(filepath, custom_objects, compile)
    147
    148   if isinstance(filepath, six.string_types):

~/unetnew/env/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/hdf5_format.py in load_model_from_hdf5(filepath, custom_objects, compile)
    182       # Compile model.
    183       model.compile(**saving_utils.compile_args_from_training_config(
--> 184           training_config, custom_objects))
    185
    186       # Set optimizer weights.

~/unetnew/env/lib/python3.7/site-packages/tensorflow_core/python/training/tracking/base.py in _method_wrapper(self, *args, **kwargs)
    455     self._self_setattr_tracking = False  # pylint: disable=protected-access
    456     try:
--> 457       result = method(self, *args, **kwargs)
    458     finally:
    459       self._self_setattr_tracking = previous_value  # pylint: disable=protected-access

~/unetnew/env/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training.py in compile(self, optimizer, loss, metrics, loss_weights, sample_weight_mode, weighted_metrics, target_tensors, distribute, **kwargs)
    427     with K.get_graph().as_default():
    428       # Save all metric attributes per output of the model.
--> 429       self._cache_output_metric_attributes(metrics, weighted_metrics)
    430
    431       # Set metric attributes on model.

~/unetnew/env/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training.py in _cache_output_metric_attributes(self, metrics, weighted_metrics)
   1840         output_shapes.append(output.shape.as_list())
   1841     self._per_output_metrics = training_utils.collect_per_output_metric_info(
-> 1842         metrics, self.output_names, output_shapes, self.loss_functions)
   1843     self._per_output_weighted_metrics = (
   1844         training_utils.collect_per_output_metric_info(

~/unetnew/env/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_utils.py in collect_per_output_metric_info(metrics, output_names, output_shapes, loss_fns, is_weighted)
    880       metric_name = get_metric_name(metric, is_weighted)
    881       metric_fn = get_metric_function(
--> 882           metric, output_shape=output_shapes[i], loss_fn=loss_fns[i])
    883
    884       # If the metric function is not stateful, we create a stateful version.

~/unetnew/env/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_utils.py in get_metric_function(metric, output_shape, loss_fn)
   1105   """
   1106   if metric not in ['accuracy', 'acc', 'crossentropy', 'ce']:
-> 1107     return metrics_module.get(metric)
   1108
   1109   is_sparse_categorical_crossentropy = (

~/unetnew/env/lib/python3.7/site-packages/tensorflow_core/python/keras/metrics.py in get(identifier)
   3062     return deserialize(identifier)
   3063   elif isinstance(identifier, six.string_types):
-> 3064     return deserialize(str(identifier))
   3065   elif callable(identifier):
   3066     return identifier

~/unetnew/env/lib/python3.7/site-packages/tensorflow_core/python/keras/metrics.py in deserialize(config, custom_objects)
   3054       module_objects=globals(),
   3055       custom_objects=custom_objects,
-> 3056       printable_module_name='metric function')
   3057
   3058

~/unetnew/env/lib/python3.7/site-packages/tensorflow_core/python/keras/utils/generic_utils.py in deserialize_keras_object(identifier, module_objects, custom_objects, printable_module_name)
    320       obj = module_objects.get(object_name)
    321       if obj is None:
--> 322         raise ValueError('Unknown ' + printable_module_name + ':' + object_name)
    323     # Classes passed by name are instantiated with no args, functions are
    324     # returned as-is.

ValueError: Unknown metric function:iou

This version loads the model but prediction output consists zero values:
from keras_unet.models import custom_unet
model_filename = '20200528-model-3.h5'
model = custom_unet(
    input_shape,
    filters=64,
    use_batch_norm=True,
    dropout=0.01,
    dropout_change_per_layer=0.0,
    num_layers=4
)
model.load_weights(model_filename)

@muminoff it's TF/Keras related issue.
Since you used a custom metric in your saved model (iou) and TF/Keras is not serializing custom objects when saving a model - you need to add something like this:
import tensorflow as tf
from keras_unet.metrics import iou

model_filename = '20200528-model-3.h5'
model = tf.keras.models.load_model(
	model_filename,
	custom_objects={
		"iou": iou,
		}
)

@karolzak Thank you. But how about tflite_convert utility? How can I use a custom metric function?

I'm not 100% sure but I would assume that you just need to convert the binary and then

Can you be more specific, please? I need to convert H5 model to TFLite. tflite_convert command fails.
    return [_deserialize_nested_config(deserialize_fn, obj) for obj in config]
  File "/home/user/unetnew/env/lib/python3.7/site-packages/tensorflow/python/keras/saving/saving_utils.py", line 262, in <listcomp>
    return [_deserialize_nested_config(deserialize_fn, obj) for obj in config]
  File "/home/user/unetnew/env/lib/python3.7/site-packages/tensorflow/python/keras/saving/saving_utils.py", line 255, in _deserialize_nested_config
    return deserialize_fn(config)
  File "/home/user/unetnew/env/lib/python3.7/site-packages/tensorflow/python/keras/saving/saving_utils.py", line 285, in _deserialize_metric
    return metrics_module.deserialize(metric_config)
  File "/home/user/unetnew/env/lib/python3.7/site-packages/tensorflow/python/keras/metrics.py", line 3349, in deserialize
    printable_module_name='metric function')
  File "/home/user/unetnew/env/lib/python3.7/site-packages/tensorflow/python/keras/utils/generic_utils.py", line 392, in deserialize_keras_object
    raise ValueError('Unknown ' + printable_module_name + ':' + object_name)
ValueError: Unknown metric function:iou
(env) (base) user@thinkmachine:~/unetnew/tflite-model-improvement$ tflite_convert --keras_model_file 20200530-model-3.h5 --output_file foobar.tflite

tflite_convert help menu has no custom metric option to use.

All I need is to convert the model to the TFLite format. The method you mentioned earlier works fine. But that one is the H5 model. Now I need to convert it to TFLite format.

This code:
converter = tf.lite.TFLiteConverter.from_keras_model(model)

converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.allow_custom_ops = True
converter.experimental_new_converter = True
converter.experimental_new_quantizer =  True

tfmodel = converter.convert()
open(f"{model_filename}.tflite" , "wb") .write(tfmodel)

print(model_filename)

also fails
---------------------------------------------------------------------------
ConverterError                            Traceback (most recent call last)
<ipython-input-27-94e19846aeab> in <module>
      6 # converter.experimental_new_quantizer =  True
      7
----> 8 tfmodel = converter.convert()
      9 open(f"{model_filename}.tflite" , "wb") .write(tfmodel)
     10

~/unetnew/env/lib/python3.7/site-packages/tensorflow/lite/python/lite.py in convert(self)
    516         input_tensors=input_tensors,
    517         output_tensors=output_tensors,
--> 518         **converter_kwargs)
    519
    520     if self._is_calibration_quantize():

~/unetnew/env/lib/python3.7/site-packages/tensorflow/lite/python/convert.py in toco_convert_impl(input_data, input_tensors, output_tensors, enable_mlir_converter, *args, **kwargs)
    494       input_data.SerializeToString(),
    495       debug_info_str=debug_info_str,
--> 496       enable_mlir_converter=enable_mlir_converter)
    497   return data
    498

~/unetnew/env/lib/python3.7/site-packages/tensorflow/lite/python/convert.py in toco_convert_protos(model_flags_str, toco_flags_str, input_data_str, debug_info_str, enable_mlir_converter)
    225       stdout = _try_convert_to_unicode(stdout)
    226       stderr = _try_convert_to_unicode(stderr)
--> 227       raise ConverterError("See console for info.\n%s\n%s\n" % (stdout, stderr))
    228   finally:
    229     # Must manually cleanup files.

ConverterError: See console for info.
2020-06-01 15:33:24.224409: W tensorflow/compiler/mlir/lite/python/graphdef_to_tfl_flatbuffer.cc:144] Ignored output_format.
2020-06-01 15:33:24.224465: W tensorflow/compiler/mlir/lite/python/graphdef_to_tfl_flatbuffer.cc:147] Ignored drop_control_dependency.
2020-06-01 15:33:24.586299: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2020-06-01 15:33:24.628801: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency:<PHONE_NUMBER> Hz
2020-06-01 15:33:24.636289: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f7cc0000b20 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-06-01 15:33:24.636348: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2020-06-01 15:33:24.642673: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2020-06-01 15:33:25.471832: W tensorflow/compiler/xla/service/platform_util.cc:210] unable to create StreamExecutor for CUDA:0: failed initializing StreamExecutor for CUDA device ordinal 0: Internal: failed call to cuDevicePrimaryCtxRetain: CUDA_ERROR_OUT_OF_MEMORY: out of memory; total memory reported:<PHONE_NUMBER>6
2020-06-01 15:33:25.475584: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f7bac000b20 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-06-01 15:33:25.475651: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): GeForce RTX 2080 Ti, Compute Capability 7.5
2020-06-01 15:33:25.475672: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (1): GeForce RTX 2080 Ti, Compute Capability 7.5
2020-06-01 15:33:25.475688: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (2): GeForce RTX 2080 Ti, Compute Capability 7.5
2020-06-01 15:33:25.475753: I tensorflow/compiler/jit/xla_gpu_device.cc:161] Ignoring visible XLA_GPU_JIT device. Device number is 0, reason: Invalid argument: device CUDA:0 not supported by XLA service
2020-06-01 15:33:25.655648: F tensorflow/stream_executor/lib/statusor.cc:34] Attempting to fetch value instead of handling error Internal: failed initializing StreamExecutor for CUDA device ordinal 0: Internal: failed call to cuDevicePrimaryCtxRetain: CUDA_ERROR_OUT_OF_MEMORY: out of memory; total memory reported:<PHONE_NUMBER>6
Fatal Python error: Aborted

Current thread 0x00007f7e96305740 (most recent call first):
  File "/home/user/unetnew/env/lib/python3.7/site-packages/tensorflow/lite/toco/python/toco_from_protos.py", line 56 in execute
  File "/home/user/unetnew/env/lib/python3.7/site-packages/absl/app.py", line 250 in _run_main
  File "/home/user/unetnew/env/lib/python3.7/site-packages/absl/app.py", line 299 in run
  File "/home/user/unetnew/env/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 40 in run
  File "/home/user/unetnew/env/lib/python3.7/site-packages/tensorflow/lite/toco/python/toco_from_protos.py", line 93 in main
  File "/home/user/unetnew/env/bin/toco_from_protos", line 8 in <module>
Aborted (core dumped)

Did a bit of research and found this reference in TF docs: https://www.tensorflow.org/api_docs/python/tf/compat/v1/lite/TFLiteConverter
And I haven't tried it but if I'm correct your code should look somewhat like below:

import tensorflow as tf
from keras_unet.metrics import iou, iou_thresholded

model_filename = '20200530-model-3.h5'
# model = tf.keras.models.load_model(
# 	model_filename,
# 	custom_objects={
# 		"iou": iou,
#                 "iou_thresholded": iou_thresholded,
# 		}
# )
converter = tf.compat.v1.lite.TFLiteConverter.from_keras_model_file(
	model_filename,
	custom_objects={
		"iou": iou,
		"iou_thresholded": iou_thresholded,
	}
)

# converter.optimizations = [tf.lite.Optimize.DEFAULT]
# converter.allow_custom_ops = True  # tried to comment this line but no success
# converter.experimental_new_converter = True  # tried to comment this line but no success
# converter.experimental_new_quantizer =  True  # tried to comment this line but no success

tfmodel = converter.convert()
open(f"{model_filename}.tflite", "wb").write(tfmodel)

print(model_filename)

@karolzak tried your suggestion. TFLite model gets created but prediction output includes only zero values.

@muminoff I assume that it works fine when loaded with TF and only returns zero values on TFLite? (for the same inputs). Sorry, I don't know what causes that, but I don't think it's related to keras-unet. Best bet is to search for similar issues with TFLite conversions from Keras - maybe there's some known issue related to this.


merged MONAI Sagemaker

*Issue #, if available: added a subfolder with MONAI-SageMaker
*Description of changes:added a subfolder with MONAI-SageMaker with managed training and custom inference
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

add in Yuan's MONAI workshop


[Question] [seatunnel-spark-connector-v2-example] S3A connection is not working well

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
S3A connection is not working well.
I confirmed the normal operation with the test code.
It is our company’s server, and it is accessed through VPN.
So, access the IP.
It seems that it was only considered when using AWS resources.
We use our own server based on S3A.
SeaTunnel Version
2.3.0-release
SeaTunnel Config
source {
    S3File {
        path = "/sample"
        bucket = "s3a://ne-anonymous-sampledata"
        access_key = "XXXXXXX"
        secret_key = "XXXXXXX"
        type = "text"
        hadoop_s3_properties {
            "fs.s3a.aws.credentials.provider" = "org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider"
            "fs.s3a.endpoint" = "http://<IP_ADDRESS>"
        }
        schema {
            fields {
                name = string
                phonenumber = string
                housing = string
                code = string
                city = string
                borough = string
                town = string
                landnumber = string
                buildingname = string
                lumpsumdeposit = string
                deposit = string
                lease = string
                exp_priarea = string
                sup_area = string
            }
        }
        result_table_name = "tmp_table"
    }
}

Running Command
package org.apache.seatunnel.example.spark.v2;

public class SeaTunnelApiExample {

    public static void main(String[] args) throws FileNotFoundException, URISyntaxException, CommandException {
        String configurePath = args.length > 0 ?  args[0] : "/examples/spark.batch.conf";
        ExampleUtils.builder(configurePath);
    }
}

Error Exception
xception in thread "main" org.apache.seatunnel.core.starter.exception.CommandExecuteException: Status Code: 403, AWS Service: Amazon S3, AWS Request ID: RZZS6WCYP4YZ4M9Z, AWS Error Code: null, AWS Error Message: Forbidden
	at org.apache.seatunnel.core.starter.spark.command.SparkApiTaskExecuteCommand.execute(SparkApiTaskExecuteCommand.java:58)
	at org.apache.seatunnel.core.starter.Seatunnel.run(Seatunnel.java:39)
	at org.apache.seatunnel.example.spark.v2.ExampleUtils.builder(ExampleUtils.java:43)
	at org.apache.seatunnel.example.spark.v2.SeaTunnelApiExample.main(SeaTunnelApiExample.java:29)

Flink or Spark Version
Spark-2.4.8 (with hadoop 2.7)
Java or Scala Version
Java 1.8
Screenshots
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

If AK is adopted, we may not need the endpoint parameter, and usually the endpoint to be a unified parameter, https://docs.aws.amazon.com/general/latest/gr/rande.html

If AK is adopted, we may not need the endpoint parameter, and usually the endpoint to be a unified parameter, https://docs.aws.amazon.com/general/latest/gr/rande.html

We do not use Amazon EC2.
It uses its own server.
Only the protocol uses S3A.


fix: PSR 2.1.0-beta3 hasn't come out yet.

this is an individual change so it can be reverted immediately when psr 2.1.0 is out

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

File
Status
Preview URL
Details

TerminalDocs/troubleshooting.md
:white_check_mark:Succeeded
View

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

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

File
Status
Preview URL
Details

TerminalDocs/troubleshooting.md
:white_check_mark:Succeeded
View

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


Win(msvc) Unicode Bug

file: src\gflags.cc
line:1345
Fixes:
#elif defined(HAVE_SHLWAPI_H)
|| PathMatchSpecA(glob.c_str(), ProgramInvocationName())
|| PathMatchSpecA(glob.c_str(), ProgramInvocationShortName())
#endif

Could you provide more details? What is the error? Do you have a working fix?

Putting this on hold as no further details have been provided.

I guess that there can be a compilation error when const char* from c_str() is passed to the PathMatchSpec WinAPI.
PathMatchSpec is a macro which can be PathMatchSpecA or PathMatchSpecW depending on _UNICODE macro.
Using PathMatchSpecA seems reasonable to me if the gflags itself do not use or define _UNICODE macro.

Thanks @dreamer-dead for clarifying. I didn't notice the original post contained the suggested fix of using PathMatchSpecA instead of PathMatchSpec.


Getting ClientResponseError even though response is 200

I'm executing this simple query in a function with React
const contactNumber = await PocketBaseClient.records.getOne(           'contact_points',           organization.telecom         );
Looking at the network call as well as the Request logs in the admin, the response is 200 and I do get correct results, but it throws ClientResponseError
Following are screenshots of the error and network call respectively
https://drive.google.com/file/d/11ax2L7hJuD3yXvy5hA5u6IuvKRfBpSTC/view?usp=sharing
https://drive.google.com/file/d/1-5XR-np4brJkj2pFkmt_SlAxdUZFeQzA/view?usp=sharing

"ClientResponseError 0" indicates that this is most likely a result of autocancellation of pending requests, aka. this means that your react function is triggered multiple times before waiting the previous request to complete (or the same request is executed by some other component).
Autocancellation is a mechanism to prevent async bugs in userland code, but if you don't want this behavior you can disable it by passing '$autoCancel': false as query paramer, eg:
const contactNumber = await PocketBaseClient.records.getOne( 'contact_points', organization.telecom, { '$autoCancel': false });

In the next SDK version there will be also a helper to disable it globally. More info on autocancellation could be found in https://github.com/pocketbase/js-sdk#auto-cancellation.


Use Github/Atom highlighter for <15 minutes builds and better highlighting

To use, run make init-highlights
then run make html-highlights
~15 minute build with my old x220 laptop!!!

If somebody can check this out and let me know what you think ++


Rancher UI failed to authenticate the vSphere cloud credentials

Setup

Rancher version: v2.6.4-rc11 & v2.6-head
Browser type & version: Chrome

Describe the bug

Rancher UI failed to authenticate vSphere cloud credentials
To Reproduce

Create a rancher server v2.6.4-rc11 or v2.6-head
Once the rancher server is up and running, go on to create RKE2 vSphere cluster.
Create a new credentials.
Input correct credentials for vSphere environment

Result
Note the error that you will see.
Authentication test failed, please check your credentials
Expected Result

New credentials gets created successfully and user can go ahead with RKE2 cluster provisioning.

Closing the issue, since the issue is not active. Probably the VPN caused this issue.


Change ScrollIntoView to scroll more naturally

Video: https://streamable.com/1o1ms (Implementation in the playlist list follows later)

i like this one, nice


Request to move "r_site_dir" variable to syncdb_config

I am following Mark Jaquith's full WP-Skeleton based workflow as described in his 2011 Wordcamp SF address:
http://2011.sf.wordcamp.org/session/scaling-servers-and-deploys-oh-my/
This involves deploying my WP-Skeleton based website using Capistrano as recommended by him.
The problem is that Capistrano creates the following directory structure on my shared host server ( symbolic links are indicated by "->" ) and it isn't completely compatible with syncDB:
  ├──  public_html   ->   ~/deploy/current
  └──  deploy
           ├── current   ->   ~/deploy/releases/<latest>
           ├── releases
           ├── repo
           └── shared/content/uploads

So to use syncdb-config I set the parameters as follows, which works for the rsync of my uploads directory:
r_web_dir = deploy
l_upload_dir = shared/content/uploads/
r_upload_dir = shared/content/uploads/

However for MySQL pull/push, syncdb cannot find wp-config.php based on the above parameters, as wp-config.php lives in ~/deploy/current and syncdb expects it to be in ~/deploy.
So, I need to update the parameter r_site_dir in syncdb to get it to work. I change the line:
r_site_dir=$HOME/$r_web_dir

to be:
r_site_dir=$HOME/$r_web_dir/current

This means I can't get automatic updates to syncdb as I need to hack it to get it to work, or I modifiy it each time I use it.
QUESTION
Would it be possible to move r_site_dir to be a parameter in syncdb_config?
The logic would be that r_site_dir only needs to be set initially by the user if wp-config.php is in a different directory to r_web_dir on the server.
Otherwise r_site_dir would default to $HOME/$r_web_dir as it does at the moment.
Thanks,
Henry

I'm having a similar problem but will open a new issue.


Mismatched type and format

credits property under reward object is marked as number type and int format:
https://github.com/WFCD/api-spec/blob/8e12d953189290abf9111f4eaddd8e9d61d69ea0/openapi.yaml#L3339-L3342
https://github.com/WFCD/api-spec/blob/8e12d953189290abf9111f4eaddd8e9d61d69ea0/openapi.json#L5244-L5248
While I was trying to convert openapi.yaml to golang client with oapi-codegen, an error occurred:
error generating code: error generating type definitions: error generating Go types for component schemas: error converting Schema reward to Go type: error generating Go schema for property 'credits': error resolving primitive type: invalid number format: int

According to OpenAPI Specification v3.0.3, correct combo should be integer type and int32/int64 format.

Feel free to submit a pr subs you know the fix

Feel free to submit a pr since you know the fix.
Also, thanks for catching that.

PR #16 will fix this issue. int32 should be enough for credits.