Promotion of kubernetes native resources to a stable API ?

I'm of course maintaining my own manifests and charts, but imho this is not bad upgrade for the public as well.

DaemonSet, Deployment, ReplicaSet - are stable since kubernetes v1.9 and are in apps/v1
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.9.md#apps

Which manifests are you referencing? The ones in contrib/kube-prometheus/? Those are generated using ksonnet-lib, and it currently uses the 1.8 API as a reference.

@brancz I'm referencing all of them

contrib/kube-prometheus - which absolutely didn't work on my absolutely clean kubeadm setup v1.11.1 and v1.11.2. also it didn't work on my clean setup of baremetal k8s v1.10.6.

helm worked just fine, but has same beta resources:
https://github.com/coreos/prometheus-operator/blob/master/helm/grafana/templates/grafana-deployment.yaml#L1
https://github.com/coreos/prometheus-operator/blob/master/helm/exporter-node/templates/daemonset.yaml#L2
https://github.com/coreos/prometheus-operator/blob/master/helm/prometheus-operator/templates/deployment.yaml#L1

PS: I've just started playing with prometheus-operator and surrounding projects.
I will try to repeat kubeadm and baremetal setups using jsonnet and report issues if they repeat.
But as soon as helm worked just fine - I'm good with it. Just have to maintain my own charts to not to keep old APIs resources in prod when it is possible.

https://github.com/coreos/prometheus-operator/blame/master/Documentation/user-guides/cluster-monitoring.md#L42
https://github.com/coreos/prometheus-operator/blame/master/Documentation/user-guides/cluster-monitoring.md#L148
https://github.com/coreos/prometheus-operator/blame/master/Documentation/user-guides/cluster-monitoring.md#L258

The apps/v1beta2 API is the one that is supported by the widest possible selection of Kubernetes versions. I just launched a 1.11.2 cluster and everything seems to work just fine, can you elaborate on any problems you have with these manifests?

well, if conversation about API version reached its culmination probably this issue can be closed. :))) I understood your points and have no more questions. Still much more supported versions now support v1, and only k8s1.8 holds unstable version of resources.
probably i'll just continue forking your and maintaining my charts.
regarding setup issues.
Today it worked much better. clean-kubeadm-1.11.2+calico+jsonnet.
Still have issue. Will open another ticket


Public npm registry is used instead of private when trying to update private dependency

Package manager/ecosystem
npm
Manifest contents prior to update
.dependabot.yml
version: 2
registries:
  npm-ghp-octocat:
    type: npm-registry
    url: 'https://npm-registry-proxy.somedomain.tld'
    token: ${{secrets.NPM_TOKEN}}
updates:
  - package-ecosystem: 'npm'
    directory: '/'
    registries:
      - "npm-ghp-octocat"
    schedule:
      interval: 'daily'

What you expected to see, versus what you actually saw
Dependabot is able to find the new version of the dependency but then fails while updating it. The update call is made to registry.npmjs.org instead of the specified private registry.
updater | INFO <job_96922851> Checking if @myorg/my-package 13.2.2 needs updating
  proxy | 2021/03/18 08:07:21 [014] 200 https://npm-registry-proxy.somedomain.tld:443/@myorg%2Fmy-package
  proxy | 2021/03/18 08:07:22 [016] 200<EMAIL_ADDRESS>updater | INFO <job_96922851> Latest version is 13.3.0
...
  proxy | 2021/03/18 08:07:26 [018] 404 https://registry.npmjs.org:443/@myorg%2fmy-package

The logs look similar to https://github.com/dependabot/dependabot-core/issues/3298 but in this case the registry has not extra path.
Images of the diff or a link to the PR, issue or logs
Logs of the update:
updater | INFO <job_96922851> Starting update job for myorg/dependabot-test
updater | INFO <job_96922851> Checking if @myorg/my-package 13.2.2 needs updating
  proxy | 2021/03/18 08:07:20 [014] GET https://npm-registry-proxy.somedomain.tld:443/@myorg%2Fmy-package
  proxy | 2021/03/18 08:07:20 [014] * authenticating npm registry request (host: npm-registry-proxy.somedomain.tld, token auth)
  proxy | 2021/03/18 08:07:21 [014] 200 https://npm-registry-proxy.somedomain.tld:443/@myorg%2Fmy-package
  proxy | 2021/03/18 08:07:22 [016] GET<EMAIL_ADDRESS>  proxy | 2021/03/18 08:07:22 [016] * authenticating npm registry request (host: npm-registry-proxy.somedomain.tld, token auth)
  proxy | 2021/03/18 08:07:22 [016] 200<EMAIL_ADDRESS>updater | INFO <job_96922851> Latest version is 13.3.0
  proxy | 2021/03/18 08:07:26 [018] GET https://registry.npmjs.org:443/@myorg%2fmy-package
  proxy | 2021/03/18 08:07:26 [018] 404 https://registry.npmjs.org:443/@myorg%2fmy-package
  proxy | 2021/03/18 08:07:26 [020] GET https://registry.npmjs.org:443/@myorg%2fmy-package
  proxy | 2021/03/18 08:07:26 [020] 404 https://registry.npmjs.org:443/@myorg%2fmy-package
  proxy | 2021/03/18 08:07:26 [022] GET https://registry.npmjs.org:443/dependabot-test
  proxy | 2021/03/18 08:07:26 [022] 200 https://registry.npmjs.org:443/dependabot-test
updater | INFO <job_96922851> Requirements to unlock own
  proxy | 2021/03/18 08:07:27 [024] GET https://registry.npmjs.org:443/dependabot-test
  proxy | 2021/03/18 08:07:27 [024] 200 https://registry.npmjs.org:443/dependabot-test
updater | INFO <job_96922851> Requirements update strategy widen_ranges
updater | INFO <job_96922851> Updating @myorg/my-package from 13.2.2 to 13.3.0
  proxy | 2021/03/18 08:07:29 [026] GET https://registry.npmjs.org:443/@myorg%2fmy-package
  proxy | 2021/03/18 08:07:29 [026] 404 https://registry.npmjs.org:443/@myorg%2fmy-package
  proxy | 2021/03/18 08:07:29 [028] GET https://registry.npmjs.org:443/@myorg%2fmy-package
  proxy | 2021/03/18 08:07:29 [028] 404 https://registry.npmjs.org:443/@myorg%2fmy-package
updater | INFO <job_96922851> Handled error whilst updating @myorg/my-package: private_source_authentication_failure {:source=>"npm-registry-proxy.somedomain.tld"}
updater | INFO <job_96922851> Finished job processing

@voda could you share package-lock.json?
This strikes me as a potential issue with the Dependabot::NpmAndYarn::FileUpdater::NpmrcBuilder.
I'm assuming .npmrc should define myorg:registry=https://npm-registry-proxy.somedomain.tld:443, so packages in the myorg namespace are downloaded from the registry configured registry.
That's supposed to work by parsing the .dependencies.resolved path from package-lock.json.
If any of those resolved URLs matches a configured registry (e.g. npm-registry-proxy.somedomain.tld), and has what appears to be  a scope as part of the URL (e.g. @myorg%2F).

My sneaking suspicion is that package-lock.json uses the lowercase %2f, so it's not being detected correctly here.
# potentially problematic URL
irb(main):001:0> url  =<EMAIL_ADDRESS>=><EMAIL_ADDRESS>
# current behaviour
irb(main):002:0> url.split(/\%40|@/)[1]&.split(%r{\%2F|/})&.first
=> "myorg%2fmy-package"

# likely desired behaviour
irb(main):003:0> url.split(/\%40|@/)[1]&.split(%r{\%2[fF]|/})&.first
=> "myorg"

Yes, .npmrc contains: @myorg:registry=https://npm-registry-proxy.somedomain.tld/ (without the explicit port)
and package-lock indeed contains the lowercase %2f:
{
"resolved"<EMAIL_ADDRESS>}

@thepwagner Thanks for the fix. Already tested it and dprndabot created

Have same problem with such config
`
registries:
my-companyl-npm:
type: npm-registry
url: https://my-company-012345678.d.codeartifact.us-east-1.amazonaws.com/npm/my-company-npm
token: ${{secrets.NPM_AUTH_TOKEN}}
updates:

package-ecosystem: npm
directory: "/iam-tools"
registries:

my-company-npm
schedule:
interval: daily
time: "07:00"
timezone: "Etc/UTC"
open-pull-requests-limit: 7
allow:
dependency-name: '@my-company/*'
`

and it seems like it found updates for my lib:
updater | INFO <job_471907512> Checking if @my-company/tenant-config 0.1.100 needs updating   proxy | 2022/09/29 11:34:18 [136] GET https://my-company-863233358811.d.codeartifact.us-east-1.amazonaws.com:443/npm/my-company-npm/@my-company%2Ftenant-config ...   proxy | 2022/09/29 11:34:19 [140] 200<EMAIL_ADDRESS>updater | INFO <job_471907512> Latest version is 0.1.197
but then for some reason it tries to update it with default nom registry:
  proxy | 2022/09/29 11:34:24 [142] GET https://registry.npmjs.org:443/@my-company%2ftenant-config   proxy | 2022/09/29 11:34:24 [142] 404 https://registry.npmjs.org:443/@my-company%2ftenant-config
I've read a lot of topics and issues, tried different formats for url field in config, etc. but without success


[Bug] Latest release not working correctly on 4K monitor

Release version 2.8.4 does not show the UI when I open it. It seems that it opens outside of the border (bottom right) of my 4K monitor and the problem seems to come from the Scale option in Display settings. The recommended value in my laptop is 250% which actually gives an appropriate UI and any other value makes everything too small or too large.
Commit 38005e766511819fad3e3f18a793a9936850ceec is causing this probably, since the Screen API does not take the scale value into account.
My spec:
Lenovo Y50-70
Windows 10 v20H2 build 19042.685

There is a workaround to this issue. If you lower the display scaling, it should bringthe window into view. Afterwards you can set the scaling back to your perfered setting and it should stay on the screen. However, this must be done each time the application is launched.

Yeah I noticed this, I know why it does it. It's because windows reports the monitor size but not the scaling, IE: windows still says that the monitor is 4k even tho you only have 4k/display scaling percentage.

Fixed in cf1fbbd0e9f767f7eddc881e42930cb2ca92c433.


Method subcommand with inherited mixed-in standard help options: failure

Minimum working example:
import picocli.CommandLine;
import picocli.CommandLine.ScopeType;
import picocli.CommandLine.*;

@Command(scope = ScopeType.INHERIT, mixinStandardHelpOptions = true)
public class InheritApp  {

    @Command()
    void sub(@Option(names = "-foo") int foo) {
        System.out.printf("Foo: %d", foo);
    }

    public static void main (String... args) {
        new CommandLine(new InheritApp()).execute("sub", "-foo", "42" );
    }
}

When running this code, I'm getting
java.lang.IllegalArgumentException: argument type mismatch
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at picocli.CommandLine.executeUserObject(CommandLine.java:1972)
	at picocli.CommandLine.access$1300(CommandLine.java:145)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
	at picocli.CommandLine.execute(CommandLine.java:2078)
	at InheritApp.main(InheritApp.java:14)

It's the combination of inherited scope + mixinStandardHelpOptions that's causing trouble here. If I set scope to ScopeType.LOCAL, the sample runs fine.

@deining Thank you for raising this and thank you for the example to reproduce the issue!
Looking into this...

@deining Thank you for raising this and thank you for the example to reproduce the issue!
Looking into this...

Thanks again for raising this!
In a nutshell: the cause had to do with calculating argument indexes for subcommand methods; the mixinStandardHelpOptions = true does not add method parameters, so is given special treatment. However, when scope = ScopeType.INHERIT, this special treatment should not be applied.
This is now fixed in master.

Thanks again for raising this!
In a nutshell: the cause had to do with calculating argument indexes for subcommand methods; the mixinStandardHelpOptions = true does not add method parameters, so is given special treatment. However, when scope = ScopeType.INHERIT, this special treatment should not be applied.
This is now fixed in master.


HA Frontend keeps failing over

Bug Report
Version of OpenNebula

[ ] 5.2.2
[ ] 5.4.0
[ ] 5.4.1
[ ] 5.4.2
[ ] 5.4.3
[ ] 5.4.4
[X] 5.4.5
[ ] Development build

Component

[ ] Authorization (LDAP, x509 certs...)
[ ] Command Line Interface (CLI)
[ ] Contextualization
[ ] Documentation
[X] Federation and HA
[ ] Host, Clusters and Monitorization
[ ] KVM
[ ] Networking
[ ] Orchestration (OpenNebula Flow)
[ ] Packages
[ ] Scheduler
[ ] Storage & Images
[ ] Sunstone
[ ] Upgrades
[ ] User, Groups, VDCs and ACL
[ ] vCenter

Description
Cluster of three nodes was set up using official documentation[1].
However, even when upping heartbeat threshold to 25 seconds it keeps failing over.
Log contains just a note that heartbeat wasn't received and that election will take place:

Mon Jan 22 17:37:34 2018 [Z0][ReM][D]: Req:2688 UID:0 one.zone.raftstatus result SUCCESS, "<SERVER_ID>3</..."
Mon Jan 22 17:38:04 2018 [Z0][ReM][D]: Req:9488 UID:0 one.zone.raftstatus invoked
Mon Jan 22 17:38:04 2018 [Z0][ReM][D]: Req:9488 UID:0 one.zone.raftstatus result SUCCESS, "<SERVER_ID>3</..."
Mon Jan 22 17:38:34 2018 [Z0][ReM][D]: Req:3904 UID:0 one.zone.raftstatus invoked
Mon Jan 22 17:38:34 2018 [Z0][ReM][D]: Req:3904 UID:0 one.zone.raftstatus result SUCCESS, "<SERVER_ID>3</..."
Mon Jan 22 17:39:04 2018 [Z0][ReM][D]: Req:9536 UID:0 one.zone.raftstatus invoked
Mon Jan 22 17:39:14 2018 [Z0][RRM][E]: Failed to get heartbeat from leader. Starting election proccess
Mon Jan 22 17:39:15 2018 [Z0][ReM][I]: Leader term (3617) is outdated (3618)
Mon Jan 22 17:39:16 2018 [Z0][ReM][D]: Req:9536 UID:0 one.zone.raftstatus result SUCCESS, "<SERVER_ID>3</..."
Mon Jan 22 17:39:16 2018 [Z0][RCM][I]: Vote not granted from follower 2: [one.zone.voterequest] Candidate's log is outdated
Mon Jan 22 17:39:16 2018 [Z0][RCM][I]: Vote not granted from follower 4: [one.zone.voterequest] Candidate's log is outdated
Mon Jan 22 17:39:41 2018 [Z0][ReM][D]: Req:7200 UID:0 one.zone.voterequest invoked , 3619, 4, 618248, 3617
Mon Jan 22 17:39:41 2018 [Z0][ReM][I]: New term (3619) discovered from candidate 4
Mon Jan 22 17:39:41 2018 [Z0][ReM][D]: Req:5360 UID:0 one.zone.voterequest invoked , 3619, 2, 618248, 3617
Mon Jan 22 17:39:41 2018 [Z0][RCM][I]: oned is set to follower mode
Mon Jan 22 17:39:41 2018 [Z0][ReM][I]: New term (3619) discovered from candidate 2
Mon Jan 22 17:39:41 2018 [Z0][ReM][D]: Req:7200 UID:0 one.zone.voterequest result SUCCESS, 3618
Mon Jan 22 17:39:41 2018 [Z0][RCM][I]: oned is set to follower mode
Mon Jan 22 17:39:41 2018 [Z0][ReM][E]: Req:5360 UID:0 one.zone.voterequest result FAILURE [one.zone.voterequest] Already voted for another candidate
Mon Jan 22 17:39:46 2018 [Z0][ReM][D]: Req:4528 UID:0 one.zone.raftstatus invoked
Mon Jan 22 17:39:46 2018 [Z0][ReM][D]: Req:4528 UID:0 one.zone.raftstatus result SUCCESS, "<SERVER_ID>3</..."
Mon Jan 22 17:39:58 2018 [Z0][MKP][I]: --Mark--
Mon Jan 22 17:39:58 2018 [Z0][ImM][I]: --Mark--
Mon Jan 22 17:39:58 2018 [Z0][InM][I]: --Mark--
Mon Jan 22 17:39:58 2018 [Z0][VMM][I]: --Mark--
Mon Jan 22 17:40:16 2018 [Z0][ReM][D]: Req:3936 UID:0 one.zone.raftstatus invoked
Mon Jan 22 17:40:16 2018 [Z0][ReM][D]: Req:3936 UID:0 one.zone.raftstatus result SUCCESS, "<SERVER_ID>3</..."

Network dump has been done at the same time with tcpdump and there were no silence at that moment.
As you can see it only passed 1m 10s since last SUCCESS, with threshold of 25 seconds that shouldn't happen.
Relevant config file part:

FEDERATION = [
MODE          = "STANDALONE",
ZONE_ID       = 0,
SERVER_ID     = 3,
MASTER_ONED   = ""
]
RAFT = [
LOG_RETENTION        = 500000,
LOG_PURGE_TIMEOUT    = 600,
ELECTION_TIMEOUT_MS  = 25000,
BROADCAST_TIMEOUT_MS = 500,
XMLRPC_TIMEOUT_MS    = 0
]

Please let me know if there is any other relevant information I should share.
[1] http://docs.opennebula.org/5.4/advanced_components/ha/frontend_ha_setup.html
Expected Behavior
Failover doesn't happen unless there is node failure.
Actual Behavior
Failover happens more than once a day.
How to reproduce
Configure OpenNebula frontend in HA mode.

Upgraded all OpenNebula components to 5.4.6, still seeing the same problem.
However, setting high ELECTION_TIMEOUT (45 seconds) does improve situation.
We're now faced with failover once every few days as opposed to few times a day.

This is fixed in recent versions (>5.8.4) of OpenNebula

Thanks Ruben.
Bogdan Parvu
On Fri, 6 Sep 2019 at 14:14, Ruben S. Montero<EMAIL_ADDRESS>wrote:

This is fixed in recent versions (>5.8.4) of OpenNebula
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/OpenNebula/one/issues/1673?email_source=notifications&email_token=AJ3Y3APLYN7AD4Z3NPZXDVLQII3SHA5CNFSM4ENBHAIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6CRCAY#issuecomment-528814339,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJ3Y3AK75R55GKXAIXBZ6D3QII3SHANCNFSM4ENBHAIA
.


Update Sharp Dependency to Support Bun

Hi,
You're using<EMAIL_ADDRESS>which doesn't work with the Bun runtime.
Please consider updating to >0.33 to fix the problem with Bun.
https://github.com/lovell/sharp/issues/3511
Thanks!

+1

you can add both using resolutions in your package.json, my OS is Windows, I cannot test/run bun on my local :cry:

I tried to do so but I think this might be the problem: ssnangua/sharp-ico#1
Not entirely sure though...

When using<EMAIL_ADDRESS>the resolutions work perfectly!

Also, the same needs for compatibility with Astro : https://github.com/vite-pwa/assets-generator/issues/46


Removed unneeded event in loginToServer

FF-251

Coverage remained the same at 38.072% when pulling 17f0486779142b7bad2ae62e9959cf495e1a875d on production_fix into 7bd3a7f92c23295d630b26530cb52da1da31f47c on master.


refactor: add missing typings

Typescript's any feature disables type checking for a variable, this change goes through areas that have been disabled and adds appropriate types.

Looks good, but unfortunately we don't have test coverage on some of these areas I fear. :thinking:
At least one bit of this code is yours @SammyIsConfused , so please review.
The the question is how to we test it. Seems the areas of interest would be:

Course editor
General display of errors
And places validating integers
Plus some search results - which is curious, as I thought the current New Search UI was all PS (but maybe this is something else)

Did you have a chance to test any of this @ChristianMurphy ?

I tested this by running npm run build.
The changes updates the typescript typings, which exist only during compile time and do not affect the run time.
The one change that could affect the run time is validation.ts, which I checked with a truth table.
But have not done extensive testing of course service.

ping @edalex-ian :bell:


Multiples digits when press any key

I was having a problem that when a key was pressed it sent multiple digits, my solution was to put a delay in the _getKey4x4() function, as I put below
`
uint8_t I2CKeyPad::_getKey4x4()
{
//  key = row + 4 x col
uint8_t key = 0;
//  mask = 4 rows as input pull up, 4 columns as output
uint8_t rows = _read(0xF0);
//  check if single line has gone low.
if (rows == 0xF0)      return I2C_KEYPAD_NOKEY;
else if (rows == 0xE0) key = 0;
else if (rows == 0xD0) key = 1;
else if (rows == 0xB0) key = 2;
else if (rows == 0x70) key = 3;
else return I2C_KEYPAD_FAIL;
//  4 columns as input pull up, 4 rows as output
uint8_t cols = _read(0x0F);
//  check if single line has gone low.
if (cols == 0x0F)      return I2C_KEYPAD_NOKEY;
else if (cols == 0x0E) key += 0;
else if (cols == 0x0D) key += 4;
else if (cols == 0x0B) key += 8;
else if (cols == 0x07) key += 12;
else return I2C_KEYPAD_FAIL;
_lastKey = key;
usleep(50000);
return key;   //  0..15
}
`

Sorry for the long delay, I missed the notifications.

@joaouzeda
I will look into it a.s.a.p as I have missed several issues (all within the same time slot) and this one is imho a low priority.
So it might take several days before it will be continued.
Thanks for reporting anyway, appreciated!

@joaouzeda

I was having a problem that when a key was pressed it sent multiple digits ...

It sounds like a bouncing key, did you get the same digit multiple times?

A generic solution could be a parameter
uint8_t I2CKeyPad::_getKey4x4(int debounceDelay = 0)  // default 0 for backwards compatibility
{
  //  key = row + 4 x col
  uint8_t key = 0;

  //  mask = 4 rows as input pull up, 4 columns as output
  uint8_t rows = _read(0xF0);
  //  check if single line has gone low.
  if (rows == 0xF0)      return I2C_KEYPAD_NOKEY;
  else if (rows == 0xE0) key = 0;
  else if (rows == 0xD0) key = 1;
  else if (rows == 0xB0) key = 2;
  else if (rows == 0x70) key = 3;
  else return I2C_KEYPAD_FAIL;

  //  4 columns as input pull up, 4 rows as output
  uint8_t cols = _read(0x0F);
  //  check if single line has gone low.
  if (cols == 0x0F)      return I2C_KEYPAD_NOKEY;
  else if (cols == 0x0E) key += 0;
  else if (cols == 0x0D) key += 4;
  else if (cols == 0x0B) key += 8;
  else if (cols == 0x07) key += 12;
  else return I2C_KEYPAD_FAIL;

  _lastKey = key;

  if (debounceDelay ) delay(debounceDelay ); //  call only if debounceDelay > 0

  return key;   //  0..15
}

Another option could be to have a static timestamp that checks if the last call was less than e.g. 50 millis ago.
if so it could return the last key or some status code e.g.  I2C_KEYPAD_TOO_FAST

mmm, debounce delay need to work for all four supported key layouts.
Solution should be implemented in a higher layer. something like:

uint8_t I2CKeyPad::getKey()
{
  if (millis() - lastCall) < threshold return TOOFAST

  uint8_t _key = 0;
  if (_mode == I2C_KEYPAD_5x3) _key = _getKey5x3();
  else if (_mode == I2C_KEYPAD_6x2) _key =_getKey6x2();
  else if (_mode == I2C_KEYPAD_8x1) _key = _getKey8x1();
  else _key =  _getKey4x4();  //  default.
  return _key;
}

@joaouzeda
Solution implemented in pull request https://github.com/RobTillaart/I2CKeyPad/pull/23
(snippet of new readme.md)
Debouncing threshold
Experimental since version 0.4.1, the library implements a debounce threshold.
If a key bounces, it can trigger multiple interrupts, while the purpose is to act like only one keypress. The debounce threshold prevents reading a key too fast. The default value of the threshold is zero to be backwards compatible. The value is set in microseconds, with a maximum of 65535 ~65 milliseconds, which is about 16 keys per second.
//  value in microseconds, max 65535 us

void setDebounceThreshold(uint16_t value = 0) set the threshold,
default to zero to reset its value.
uint16_t getDebounceThreshold() return the set threshold.

If a debounce threshold is set, and getKey() is called too fast,
it will return I2C_KEYPAD_THRESHOLD.

Thank for your answer!


prompt-toolkit 2.0.9 breaks az interactive

Describe the bug
Caused by: https://github.com/Azure/azure-cli/pull/9940
Command Name
az interactive
Errors:
No module named 'prompt_toolkit.interface'
Traceback (most recent call last):
lib\site-packages\knack\cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli\core\commands\__init__.py, ln 603, in execute
    raise ex
cli\core\commands\__init__.py, ln 661, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli\core\commands\__init__.py, ln 654, in _run_job
    six.reraise(*sys.exc_info())
...
cli\command_modules\interactive\custom.py, ln 41, in start_shell
    azext_interactive.start_shell(cmd, style=style)
cliextensions\interactive\azext_interactive\__init__.py, ln 10, in start_shell
    from .azclishell.app import AzInteractiveShell
interactive\azext_interactive\azclishell\app.py, ln 27, in <module>
    from prompt_toolkit.interface import Application, CommandLineInterface
ModuleNotFoundError: No module named 'prompt_toolkit.interface'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Update to prompt toolkit 2.0.9:

az interactive

Expected Behavior
Should not fail.
Environment Summary
Windows-10-10.0.18362-SP0
Python 3.7.3
Shell: python.exe

azure-cli 2.0.69

Extensions:
interactive 0.4.3

Additional Context

Interestingly, if I uninstall prompt-toolkit entirely, everything runs just fine. I'm not sure why we have this dependency at all.

I'm having the same issue, but uninstalling prompt_toolkit does not solve it.

How do I uninstall prompt_toolkit?

How would I go about uninstalling prompt_toolkit? I'm new to Azure CLI

How would I go about uninstalling prompt_toolkit? I'm new to Azure CLI

pip uninstall prompt-toolkit

This generates another error... by the way, in my case I"m using the BASH shell from within the Azure Console
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/wcwidth-0.1.7.dist-info'
Consider using the --user option or check the permissions.

pip uninstall prompt-toolkit

The above command does not work on the local Windows 10 PowerShell since pip is not installed there.
It also doesn't work on the Azure Console BASH shell because it generates a warning:
WARNING: Skipping prompt-toolkit as it is not installed.
Hence the fix doesn't work in the above two cases...

Hello folks,
The problem is still there:
I removed the prompt_toolkit by running 'pip uninstall prompt_toolkit'
Also removed the interactive extension by running 'az extension remove --name interactive

Confirmed removal by running 'az extension list' and verifying the list was empty.
And reinstalled interactive.
Tried it on : https://shell.azure.com/ and in the built-in shell on https://ms.portal.azure.com/#home
The problem is not fixed.

I also reinstalled the AZURE shell by running:
curl -L https://aka.ms/InstallAzureCli | bash
The problem IS STILL THERE. NOT FIXED.

The problem even shows on the Azure Cloud Shell CLI (Bash & PS).  How was it fixed?
VERBOSE: Authenticating to Azure ...
VERBOSE: Building your Azure drive ...
Azure:/
PS Azure:\> az interactive
This command is in preview. It may be changed/removed in a future release.
The command failed with an unexpected error. Here is the traceback:

No module named 'prompt_toolkit.interface'
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 603, in execute
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 661, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 654, in _run_job
    six.reraise(*sys.exc_info())
  File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
    raise value
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 631, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 305, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 485, in default_command_handler
    return op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/interactive/custom.py", line 41, in start_shell
    azext_interactive.start_shell(cmd, style=style)
  File "/home/julio/.azure/cliextensions/interactive/azext_interactive/__init__.py", line 10, in start_shell
    from .azclishell.app import AzInteractiveShell
  File "/home/julio/.azure/cliextensions/interactive/azext_interactive/azclishell/app.py", line 27, in <module>
    from prompt_toolkit.interface import Application, CommandLineInterface
ModuleNotFoundError: No module named 'prompt_toolkit.interface'

To open an issue, please run: 'az feedback'
Azure:/

Why this is closed if the issue is still there in latest Azure Cli version?:
PS C:\Users\under\AppData\Local\Google\Cloud SDK> az interactive
This command is in preview. It may be changed/removed in a future release.
Installing the Interactive extension...
The installed extension 'interactive' is in preview.
The command failed with an unexpected error. Here is the traceback:

No module named 'prompt_toolkit.interface'
Traceback (most recent call last):
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-rtk110ve\knack\knack\cli.py", line 206, in invoke
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-rtk110ve\azure-cli-core\azure\cli\core\commands\__init__.py", line 603, in execute
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-rtk110ve\azure-cli-core\azure\cli\core\commands\__init__.py", line 661, in _run_jobs_serially
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-rtk110ve\azure-cli-core\azure\cli\core\commands\__init__.py", line 654, in _run_job
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-rtk110ve\six\six.py", line 693, in reraise
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-rtk110ve\azure-cli-core\azure\cli\core\commands\__init__.py", line 631, in _run_job
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-rtk110ve\azure-cli-core\azure\cli\core\commands\__init__.py", line 305, in __call__
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-rtk110ve\azure-cli-core\azure\cli\core\__init__.py", line 485, in default_command_handler
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-rtk110ve\azure-cli\azure\cli\command_modules\interactive\custom.py", line 41, in start_shell
  File "C:\Users\under\.azure\cliextensions\interactive\azext_interactive\__init__.py", line 10, in start_shell
    from .azclishell.app import AzInteractiveShell
  File "C:\Users\under\.azure\cliextensions\interactive\azext_interactive\azclishell\app.py", line 27, in <module>
    from prompt_toolkit.interface import Application, CommandLineInterface
ModuleNotFoundError: No module named 'prompt_toolkit.interface'

Same issue on OSX:
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az interactive
Errors:
No module named 'prompt_toolkit.interface'
Traceback (most recent call last):
python3.7/site-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 603, in execute
    raise ex
cli/core/commands/__init__.py, ln 661, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 654, in _run_job
    six.reraise(*sys.exc_info())
...
cli/command_modules/interactive/custom.py, ln 41, in start_shell
    azext_interactive.start_shell(cmd, style=style)
cliextensions/interactive/azext_interactive/__init__.py, ln 10, in start_shell
    from .azclishell.app import AzInteractiveShell
interactive/azext_interactive/azclishell/app.py, ln 27, in <module>
    from prompt_toolkit.interface import Application, CommandLineInterface
ModuleNotFoundError: No module named 'prompt_toolkit.interface'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az interactive

Expected Behavior
interactive mode would start
Environment Summary
Darwin-18.6.0-x86_64-i386-64bit
Python 3.7.4
Shell: bash

azure-cli 2.0.70

Extensions:
interactive 0.4.3

Additional Context

Folks,  first apologize for breaking this. I have merged this fix to be released on Aug 13. We have also started to investigate for why CI didn't catch this regression.  Meanwhile if you can't revert back to the older build, the manual workaround will be :
1. If you installed through `pip`, run `pip uninstall prompt-toolkit`
2. If you installed through Windows installer, delete `C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\prompt_toolkit`
3. If you installed through Linux bundle, find the installation location and delete the package folder. Say for Ubuntu, the folder would be `/opt/az/lib/python3.6/site-packages/prompt_toolkit`


change: [M3-7446] - VLAN availability text on Linode Create

Description 📝
This PR refactors the list of VLAN available regions in the VLAN Linode Create flow since it was too long and hard to read.
Changes  🔄

Implement new notice with tooltip containing VLAN available regions (both in legacy Panel and VPC accordion)
Implement VPC accordion test (only since panel is about to be deprecated)

Preview 📷

Before
After

How to test 🧪
Verification steps

Pull & run code locally
Navigate to linode/create, scroll down to the VLAN panel and confirm updated panel with copy & regions tooltip
Turn on the VPC flag, navigate to linode/create, scroll down to the VLAN accordion and expand it, and confirm updated copy & regions tooltip

As an Author I have considered 🤔
Check all that apply

[ ] 👀 Doing a self review
[ ] ❔ Our contribution guidelines
[ ] 🤏 Splitting feature into small PRs
[x] ➕ Adding a changeset
[x] 🧪 Providing/Improving test coverage
[ ] 🔐 Removing all sensitive information from the code and PR description
[ ] 🚩 Using a feature flag to protect the release
[ ] 👣 Providing comprehensive reproduction steps
[ ] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[ ] 📱 Providing mobile support
[ ] ♿  Providing accessibility support

Confirmed e2e failues are unrelated - those smoke tests are passing locally consistently


Update GitHub Actions

@skjerns I will use pyEDFlib for a current project, I am a happy to help maintain the project.


Screenshots are broken

https://s3-us-west-2.amazonaws.com/mauerbac-hosting/intergration.png
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
AllAccessDisabled
<Message>All access to this object has been disabled</Message>
<RequestId>F2E112F3CEC1F15B</RequestId>
<HostId>
aKm58emeBVbSvoj+BV5ffEqsLjc55GaQCI67ppJ26T91O6miDvgujA9Zd4Co9DayYAPC92qgjVQ=
</HostId>
</Error>

updated with new screenshots.


Suggest change "EFB App unsupported" message from -Error- to -Caution-

Stratux version: v0.9b1 (8910781)

Stratux config:
SDR
[ ] single
[X] dual
GPS
[X] yes
[ ] no
type: RY835AI
AHRS
[X] yes
[ ] no
power source: panel
usb cable: PortaPow

EFB app and version: (e.g., WingX Pro7 8.6.2) ForeFlight 7.6.1
EFB platform: (e.g., iOS 9.2) iOS 9.3.2
EFB hardware: (e.g., iPad Mini 2) iPad Air 2

Description of your issue:

The new message about an EFB App not supporting the Stratux is listed as an Error.  While I appreciate the notification, could the message be dismissed after reading?  If not, could the language be changed to indicate "Caution" instead of Error, perhaps with a yellow icon and black text?
To me, an error indicates the application noticed something that isn't working.  This is more of a cautionary note that something -might- not work.
Thanks for your consideration.
If possible, enable "Replay Logs", reproduce the problem, and provide a copy of the logs in http://<IP_ADDRESS>/logs/stratux/ and http://<IP_ADDRESS>/logs/stratux.log.

We'll keep it as-is for now.


[improvement] SBOM extension command sbom:cyclonedx - add new --context=host command line argument

I would like propose some code to add a new command line option to the SBOM extension command sbom:cyclonedx to allow to filter the graph node based on dependency context (host and/or build).
While Ken Thompson's thesis about injecting a virus into a compiler is interesting, we'd like to generate an SBOM that doesn't include the build_requires.
The change to do that is simple but I'd like first to have guidance about how the command line option should be presented. i.e. how to name it, what syntax should it have etc.
Also, in the source code of the extension, there's a FIXME note about some --build-require option, can someone explain what this is about ?

Thanks for the suggestion @johan-boule
I think this makes sense and it is a valid use case. Also agree that the implementation should be pretty straightforward, so it would be mostly about the UX/UI.
I don't think that generating the build-context only SBOM makes any sense, so probably we need more a boolean argument something like --ignore-build-requires, --no-build-requires, --no-build-context or --only-host?
As this extension is experimental, and in any case these extensions are not aimed for stability yet, but users should fork them and use them from their forks, I'd probably wouldn't discuss much about the name, --no-build-requires sounds good enough.

Also, in the source code of the extension, there's a FIXME note about some --build-require option, can someone explain what this is about ?

The --build-require argument in commands like conan create changes how the package is created, because it puts the current consumer in the "build" context, intended to be used as tool_requires when consumed. At the moment this sbom command is not honoring that argument at all apparently.


Is it working?

Hi,
I have a really simple configuration to start with.
{
topic: 'homie/homey/hal-sensor-magnet2/alarm-contact',
label: 'hal-toiletdeur',
type: 'door',
display: { left: 300, top: 350 },
},
{
topic: 'homie/homey/hal-sensor-magnet2/alarm-contact',
label: 'hal-toiletdeur',
type: 'gate',
display: { left: 400, top: 350 },
},
{
topic: 'homie/homey/hal-sensor-magnet2/alarm-contact',
label: 'hal-toiletdeur',
type: 'label',
display: { left: 350, top: 350, prefix: "alarm: " },
},
Three the same topics. Only the type: label is working. Switching nicely between FALSE and TRUE. But the images are not changing. I expect that the image must be closed-door-tiny.png per default. And after an alarm should change to open-door-tiny.png, this is not happening.
The type gate did not show up. The div id is not generated or shown? There's is an mqtt_1 (door) and a mqtt_3 (label) but no mqtt_2 (gate).  I use the inspect function within Chrome to check and also check the values with a MQTT client.
Any help is appreciated.
Regards,
Bert

Hi Bert
The reason the gate item did not show up is because the type of object is 'gates' and you have called it 'gate' in your config by mistake.
One enhancement could be to check that at least one type has been recognised, and to report a log message when an unknown type is used - but there's no such safety net in place just yet I'm afraid.
But when I fix and use your config, and post an 'open' message to homie/homey/hal-sensor-magnet2/alarm-contact then I get a door and gate image appearing and changing state as expected between open and closed.

Hi David,
I need some assistance.
Yes I made a typo, but you are using door, light (singular) and gates (plural). anyway. ;)
The module is not working like I thought it should be. Only the label part is working for me. That one is switching between true and false or is showing the temperature for instance.
Every other type (motion, gates) is not working. a light is not showing up. Is showed but with display: none. Just to figure what is happening I made two subscriptions with the same topic. A door and a label. When the door (I use a Xaomi Window Sensor) is closed the (mqtt) topic value is false. When I open the door the status is true. Sounds resonable it is an alarm. So the alarm is true, the door is open. I did some debugging at the updateDivForItem function.
I use the console.log functionality. With the door closed I received these values:
closed = false
state = FALSE
image = open-door-tiny.png
This is the other way around as I was expected. closed should be true (door = closed) and image should be closed-door-tiny.png. I played around with the ternary operator, I switched Open and Closed. But the image is still the same.
The label part is working. Nicely switch between false and true.
Can you help me with this one?
Regards,
Bert

Hi,
Beside of my typo, it is not working like I think it should work. I did a little rewrite and made it work (for me). I used the Material Design Icons (http://materialdesignicons.com/) and did not use images anymore. Also replaced the separate door, gates and light configuration and used only two: device and label.
Thanks for your code!

Fixed.

Fixed.


Step100 fixes

Hallo!
Thanks for the nice code and excellent documentation.
I needed these changes to run the code on my Macbook Pro M1.
(Actually, they are not sufficient, imgui also requires a small change, a uniform is not aligned enough for what the driver wants. But I suppose most of this will be useful).
Of course some of the changes will also apply to other steps, step100 is just what i chose to try first.
I hope you'll find (some of) the changes useful :-)

Thanks for the lighting-fast response!

Also I'd be interested in the imgui fix you mention, so that I can port it to my imgui PR!

I added it as an extra commit, it is quite the hack though (hard-coded alignment to 256, and a bit fragile. Maybe having some extra type in there using alignas might be better).
Btw, once everything has been resolved, I'd do some rebasing/squashing to eliminate "fixup" commits, but I held off on that, as I'm afraid it might make discussing the iterations harder.

Superceded by https://github.com/eliemichel/LearnWebGPU-Code/pull/6


Socket handler refactor

This is a small refactor of socket handler. I wanted @benawad to give you a hint how elixir code can be utilized to be more readable. Remember this couple of things:

pattern matching is super fast and you can literally do magic with it
{:ok, data}, {:error, reason} tuples are your best friends
use aliases whenever possible if you happen to use some functions more than once
if you see that your function gets too big (> 50 lines) try to break it into several smaller functions
|> operator makes your code more readable and functional, try to compose functions with it as much as possible
elixir style does not really like camel case variables, you can keep them in jsons but it's a standard to use snake case as much as possible
it's better to write some function for your genservers modules that take as a first argument the genserver process rather than calling raw GenServer.call and GenServer.cast

And the most crucial thing: typespecs. I saw you complaining on your recent video with elixir that you couldn't get autocomplete to work (or that it does not exist). If you  do the right @spec for functions and @type for your structs or types necessary for function specs you can greatly benefit from it. Dialyzer will tell you when you wrongly call your functions and what are the expected types. You can have mouse-hover information about what function expects and what it returns. And when your cursor is inside of a struct you get the full auto-complete of existing fields.
One more advice, look up how configs in elixir work. You should not have runtime-loaded variables inside prod/test/dev configs but rather move that to runtime.exs or releases.exs where the prior is preferable.
If you require env variables in your dev config then nobody is even able to run mix format on it.
You mentioned your relation with elixir as love-hate, I hope that it will go more towards love when you get to know it better :)
Wish you all the best and keep the great youtube work.

This is amazing!!!
I'm excited to start using this everywhere, thank you :)


HttpRestClient is incompatible with Android

Following the discussion from here: https://www.reddit.com/r/androiddev/comments/2ygmgm/having_trouble_with_apache_httpclient_in_android/
The version of httpclient supplied with Android is older than the one used with jReddit (4.3.3). This causes issues when trying to use jReddit's HttpRestClient on Android due to missing classes that are only present in the newer version of httpclient (such as RequestConfig) and incompatibilities (such as UrlEncodedFormEntity on Android not being able to take a java.nio.charset.Charset).
The issue regarding missing classes can be solved by using this Android port of httpclient 4.3 and excluding the httpclient dependency from jReddit. An example:
compile('com.github.jreddit:jreddit:1.0.2') {
    exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}

compile 'org.apache.httpcomponents:httpclient-android:<IP_ADDRESS>'

However, this brings to light the second issue. This line from HttpRestClient throws an exception at run time because, in Android, UrlEncodedFormEntity does not have a constructor that matches List<NameValuePair>, CharSet. (It has two constructors: one that takes List<NameValuePair> and one that takes List<NameValuePair>, String.)
java.lang.NoSuchMethodError: org.apache.http.client.entity.UrlEncodedFormEntity.<init>
    at com.github.jreddit.utils.restclient.HttpRestClient.post(HttpRestClient.java:156)

Two possible solutions:

Downgrade httpclient in jReddit to be compatible with Android

Provide a separate artifact specifically for targeting Android that uses httpclient-android and UrlEncodedFormEntityHC4 (and its ilk) for compatibility.

Disclaimer: I have not tested the extent of incompatibilities on Android. It's likely that there are more than just the one described here and other classes will need changed as well.

hey @ntsikerdanos, there were recently a couple of people that had a similar problem.  please check https://github.com/karan/jReddit/issues/112
Let me know if you need more clarification. One thing that I don't understand is why are you trying to use the old version of httpclient and not use the one specified in the android port url?

#112 does look to be the same issue, though this issue was not solved by simply including the httpclient-android port.
Since Android ships with an older version of httpclient, it seems that the older version will be preferred over httpclient-android unless the newer classes are used explicitly (UrlEncodedFormEntityHC4).
So unless we use UrlEncodedFormEntityHC4 directly, the outdated Android version will be used. As specified in the description, Android's version of UrlEncodedFormEntity does not have a constructor that matches what's currently used in jReddit and will throw a NoSuchMethodError at run time.

httpclient-android version was a typo (should have been <IP_ADDRESS>). It's been fixed in the description.

@ntsikerdanos what if we would change the
UrlEncodedFormEntity entity = new UrlEncodedFormEntity(params, Consts.UTF_8);

to
UrlEncodedFormEntity entity = new UrlEncodedFormEntity(params, "UTF-8");

Would that help for the error that you get?
or if you add the httpclient-android you will not have the UrlEncodedFormEntity anymore? Or is this different? https://developer.android.com/reference/org/apache/http/client/entity/UrlEncodedFormEntity.html

That change would likely work in this instance (FYI there's a constant HTTP.UTF_8). There are two caveats to that change:

There might be further incompatibilities that haven't been found yet. I haven't tested much of the library myself (in fact, I don't actually use it myself, I just logged this issue on behalf of the OP from the reddit thread in the description).

There's nothing to enforce compatibility between jReddit and Android, so the devs would have to be careful not to introduce further issues in the future.

httpclient-android adds the classes that Android's httpclient lacks, but it also adds the updated versions of existing classes, albeit with different names. Android itself includes UrlEncodedFormEntity, so for compatibility's sake, httpclient-android adds the updated version of the class as UrlEncodedFormEntityHC4. See the Compatibility notes section of this page for more info.

I'm finishing up a Android that does a simple login of the user and retrieves the list of submissions from a particular subreddit (I've copy pasted from the README.md).
Gonna push it in a separate branch or directory so people will see how to set up.
In order to make the android example work, I need to release 1.0.3.

added an example in #123 . Closing this guy. Will do a realease shortly


Mobile nav does not close when expanding width

To Reproduce
(Write your steps here:)

Reduce size of screen to mobile size (<~1000px)
Open mobile nav (bottom right button)
Expand screen to desktop size.
The nav is not closing, this is what it looks like on the docusaurus official site

It's a bug indeed, but low priority. We likely won't ever fix this. Why would you do such a thing as a user?

True

We can leave it open for interested contributors to try it out :)

Looks to be an issue within theme-classic, its styling needs to be corrected however I'm not sure where that is located.

I would love to take this issue and fix it, a good start of MLH Fellowship.
@yangshun  If you can please tell me where is the CSS file located. I couldn't find it.

@eKhattak I don't think this is CSS only. Look at DocSidebar.
  const [showResponsiveSidebar, setShowResponsiveSidebar] = useState(false);

      <div
        className={clsx('menu', 'menu--responsive', styles.menu, {
          'menu--show': showResponsiveSidebar,
          [styles.menuWithAnnouncementBar]:
            !isAnnouncementBarClosed && scrollY === 0,
        })}>

What you could do, is have a hook useWindowSize that listen for window resize events and return "mobile" | "desktop" | undefined (undefined is for server/SSR in node, on which we can't know ahead of time the size of the screen)
Then an effect that would setShowResponsiveSidebar(false) if the window size changes.
Note: we have the problem on the docs sidebar, but it also affects the main sidebar: an overlay is added and stays visible.
Going from mobile<->desktop should rather reset the sidebars state.

Released in https://github.com/facebook/docusaurus/releases/tag/v2.0.0-alpha.58


error when updating bot

error:
mr_cheeezz@vmi1065408:/opt/pajbot$ sudo -H -u pajbot ./scripts/venvinstall.sh
Creating python venv with pyenv
./scripts/venvinstall.sh: 18: pyenv: not found

https://github.com/pajbot/pajbot/blob/master/README.md#python-versioning

#2418 will additionally add some documentation to the install docs.
If you have Python 3.9 or higher, you can just use the SKIP_PYENV=1 environment variable to keep using your system Python.
If your Python is 3.8 or lower, you must follow the install docs to install pyenv on your system.

thanks


Add link to mbed CLI for Windows Installer (supercedes PR 540)

Added a reference to the mbed CLI for Windows Installer in the Installation section.
This information was not immediately obvious and I think it would be valuable to have this information more prominent in this doc.
This pull request supercedes PR 540: I did a merge rather than a rebase in 540. This PR includes the original commit plus it has been rebased from latest version of master: b6b070c
@screamerbg @AnotherButler

@AnotherButler Could you take a look please?


Defined state type, but returns error saying prop is required but undefined error.

I feel this isn't really flow issue, but couldn't find a solution.
Getting this prop type issue:

with following code:

// @flow

...

type State = {
  currentPage: number
};

class Table extends React.Component<Props, State> {

  state = {
    currentPage: 1
  }

  ...
}

I don't have a prop called currentPage, and i am not doing this.props.currentPage any where.
Any guidance is appreciated!

What is the type Props?
Also, where are you seeing that message? It looks like a console message in the browser, which would be coming from React PropTypes, not from Flow's static type checking. Is it possible that you've defined a Table.propTypes that expects currentPage to exist?

As I mentioned in the question, Props does not have currentPage, and no where in code I try to access props.currentPage. This happens with all my react components that I have state. I should try removing some babel presets, and see if that fixes.

Turns out, removing  "plugins": ["flow-react-proptypes"] from my babelrc fixed the issue. Probalby an issue with that plugin. Thanks.

Glad that fixed it. Since this isn't a flow issue, I think we can close it.

@WonSong  - did you add "flow-react-prototypes" back for the newest npm for babel-plugin-flow-react-proptypes

@WonSong  - I am having the same issue like you.

@WonSong - I did the same by removing 'flow-react-proptypes' then it worked. What Flow version are you using? I am on v57.3

Thank @asolove Your first comment helped me in solving a similar problem.

Hi, recently I start having this error. I'm using 24.0.0 version of  "babel-plugin-flow-react-proptypes". by removing it I've solved the problem, but I would like to use this plugin. Anybody found another approach to solve this problem ?


Use relative paths for file header references

Resolves #383

Thanks for the fix!
Not sure why the test didn't catch this:
https://github.com/wp-cli/i18n-command/blob/ca7a44a1f8b09d533621b4006e739974212860ee/features/makepot.feature#L69-L101

Awesome.  Thanks for the speedy response.


Feature/observe dot osrm

Issue
What issue is this PR targeting? If there is no issue that addresses the problem, please open a corresponding issue and link it here.
https://github.com/Telenav/osrm-backend/issues/116
Please read our documentation on release and version management.
If your PR is still work in progress please attach the relevant label.
Tasklist

[ ] CHANGELOG.md entry (How to write a changelog entry)
[ ] update relevant Wiki pages
[ ] add tests (see testing documentation
[ ] review
[ ] adjust for comments
[ ] cherry pick to release branch

Requirements / Relations
Link any requirements here. Other pull requests this PR is based on?
More background see https://github.com/Telenav/osrm-backend/issues/115 and https://github.com/Telenav/osrm-backend/issues/111
See more docs in: https://github.com/Telenav/open-source-spec/blob/master/osrm/doc/osrm-toolchain-files/map.osrm.md

This is awesome work.


accessing super properties before mixpanel is loaded

Hey Mixpanel,
Just curious why it's not possible to access super-properties before mixpanel is loaded. As far as I understand those are stored in a cookie or localStorage, so can be fetched immediately by the browser. Is there a technical limitation that makes those properties inaccessible before it's loaded? (e.g. using get_property() or mixpanel.persistence.properties())

The only technical limitation is that the code to interact with the persistence layer hasn't been loaded yet; the embed code needs to be as small as possible and basically doesn't know how to do anything except queue up async calls for execution once the lib has loaded. So yes, the browser can access superproperties by sniffing in cookies/localStorage before the full lib loads, but you'd need your own code to do that. Also we don't guarantee that cookie names/formats will never change, as that's not officially part of the public API.
If you're looking to access superproperties synchronously in your own non-Mixpanel code, your best bets are either:

load the lib using a JS module bundler such as Webpack or Browserify, so that it becomes part of your app's JS bundle and you don't need the Mixpanel 'snippet' at all (at the expense of slightly more JS to load initially)
use the snippet and run your code in the lib's loaded callback. That has the danger though that if the lib for some reason doesn't load (aggressive adblocker, user can't hit our CDN), the code in that loaded callback will never run.

Thanks for the detailed reply, @tdumitrescu. Did you guys consider separating the super-properties part into its own module, so it can be used either indepently, or with the core library?
Bundling mixpanel with our code seems to be a good workaround though. I'm trying to do this and bumped into a couple of questions however.
We're using rails, so I'm loading it using rails-assets-mixpanel (some kind of "proxy" between rails gems and bower). I can load mixpanel.min.js, but then it throws this error:
mixpanel.min.self.js?body=1:35 Mixpanel error: 'mixpanel' object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.
I saw on the readme that I can set window.MIXPANEL_CUSTOM_LIB_URL, but not sure what to set this to, because the minification process is done by rails sprockets (we're not using webpack or browserify). Normally any js code gets inlined and minified together with the rest...
Any suggestions on how to resolve this? I see that we can compile our own version, but this will make upgrading more difficult longer term, so if we can fit within the bower/rails-assets flow it would be much better in my opinion...
Thanks again!


Correct(?) python script for example

I didn't test this to confirm but the example doesn't match so I think it's a mistake

Resolved in https://github.com/benchling/integration-examples/pull/2


Lock other rotation axes for first-person cameras.

It would be great if there was a feature to lock the other rotation axes of a first person camera. There already is an option to force the camera to not rotate side-to-side, but it would be good to be able to lock the other rotation axes too.
This would be useful because I have a bad habit of looking down sometimes while I'm playing, and while this is fine from my perspective, from the perspective of people watching it, like half the screen is just the platform and the notes are cut off on the top of the screen.

Theres a Pitch option in the Settings which you can use to pitch up the camera more. I dont think I would want to add options to lock other axis


Update Adobe

Deleting your account is (now) possible by following the provided link, logging in and confirming the deletion.
I also removed the note and it's translations since they won't be needed anymore.

Thanks for your contribution!


SmartComponent modelSelector should spread out the results

SmartComponent should have a selector for props/publishEvent handlers. If specifyied, SmartComponent will flatten out mapped model onto the component (As opposed to passing one object), plus it will always pass modelId and model.
In this scenario, the component can become a PureComponent that will compare all the props. Model and modelId never change, the flatten properties will be used automatically to determine if render needs to happen

This issue was moved to esp/esp-js#182


Some minor changes to CSS to improve responsiveness

I'm not sure how much it's appropriate to change the core code - I'd have added in more Flex and -em units to improve responsiveness - but this improves things a bit.

 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.:x: s-Hale sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


For point cloud registration

How to use this code for point cloud registration ?

hellow, how to use this code to align a 3D mesh I create with the 3DMM mean shape. The coordinate of 3DMM mean shape is too big about +- 50000.my mesh is about +-0.1


PDF.js v1.4.237 (build: e9dbb23) Unexpected server response (204)

PDF.js v1.4.237 (build: e9dbb23)
Message: Unexpected server response (204) while retrieving PDF
pdf can not be loaded, while I am retrieving pdf from my own server.
It can't work on mozilla firefox 47.0.1 but it work well on chrome  51.0.2704.103
it become autodownload by idm when I am using mozilla.
Any suggestion?
help please :'D

Make sure you read https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md to know what you must provide before opening an issue. At the very least a link to a working example (if it is a custom solution) is required for us to debug the issue. Closing until this is provided.

Was about to post the same issue with the v2.0.943 (build: dc98bf76) and read the comment of @ravibpatel  and finally it solved.
To solve this issue one should disable File manager or refrain them from capturing download links from web players .

When you are using this package in local hold ALT key on keyboard, then IDM will not download that link.

I had the same issue but to fix it, I make sure that the path to the pdf is correct, and I disabled the IDM file as suggested above.

I had the same issue but to fix it, I make sure that the path to the pdf is correct, and I disabled the IDM as suggested above.

Thank you, this fixed my issue too


Jump info error notification

The "Jump info" button no longer works
screen shot

:heavy_check_mark: Issue resolved
This issue was resolved by the commit(s) and/or the comments above.
It will be auto-closed with the upcoming release ( merge into master branch). Please check the attached Milestone information.
Many thanks to all participants/contributors for the helpful comments! :+1:
:information_source: Please reopen/comment this, if you have problems/questions about it.

Auto-generated response


fix typo in highwater field

@lanzafame remember to !pin /ipns/cluster.ipfs.io once jenkins has published it.


cart

When a user logs in to another account, the cart will be taken from the previous user because it is stored on a cookie

oke


Invalid JWT format

Using NextAuth with Google login, I get this error:
jose.exceptions.JWEParseError: Not enough segments
With this script, NEXTAUTH_SECRET removed:
import os
os.environ['NEXTAUTH_URL'] = os.environ.get('NEXTAUTH_URL', "http://localhost:3000")
os.environ['NEXTAUTH_SECRET'] = os.environ.get('NEXTAUTH_SECRET', "")
from typing import Annotated
from fastapi import Depends, FastAPI
from fastapi_nextauth_jwt import NextAuthJWT
JWT = NextAuthJWT()
app = FastAPI()
@app.get("/")
async def return_jwt(jwt: Annotated[dict, Depends(JWT)]):
return {"message": f"Hi {jwt['name']}. Greetings from fastapi!"}

Maybe setting an adapter changes the strategy to database automatically. From reading the docs, the session cookie then contains a session token, not sure if that's stored in a way that's a valid JWE. I'm very short on time currently but I'll look into it!

@CyrusVorwald I finally had time to check, sorry for the wait. It seems that by default, nextauth indeed only stores a session identifier in the session token when using a database adapter, which is not a valid JWT and so can't be decoded as one.

Thanks for double checking


Bug: Inheriting winrt::implements can't get weak_ref

Version
No response
Summary
Inheriting winrt::implements can't get weak_ref
'static_cast' : cannot convert from 'winrt::impl::producer<T,IMyComInterface1,void> *' to 'T *'
how to resolve this error
Reproducible example
#include <crtdbg.h>
#include <unknwn.h>
#include "catch.hpp"
#include "winrt/base.h"

struct __declspec(uuid("ddc36e02-18ac-47c4-ae17-d420eece2281")) IMyComInterface1
	: ::IUnknown {
	virtual HRESULT Call1() = 0;
};

struct MyCoclass : winrt::implements<MyCoclass, IMyComInterface1> {
	HRESULT Call1() override {
		return S_OK;
	}
	virtual ~MyCoclass()
	{
	}

	virtual HRESULT Invoke()
	{
		return NOERROR;
	}
};

struct MyCoclass2 : winrt::implements<MyCoclass2, MyCoclass>
{
	virtual ~MyCoclass2()
	{
	}

	HRESULT Invoke() override
	{
		return NOERROR;
	}
};

int main(int const argc, char** argv)
{
   init_apartment();
   {
	auto mycoclass_instance{ winrt::make_self<MyCoclass2>() };
	winrt::weak_ref<MyCoclass2> weak(mycoclass_instance);
	auto weakval = weak.get();
   }
}

Expected behavior
No response
Actual behavior
No response
Additional comments
No response

This looks like #1312. Is your cppwinrt up to date?

I don't have a good understanding of this area but it seems like the inheritance is confusing things.  If I change your example to this then it compiles for me:
int main(int const, char**)
{
	winrt::init_apartment();
	{
		auto mycoclass_instance{ winrt::make_self<MyCoclass2>() };
		winrt::weak_ref<MyCoclass> weak(mycoclass_instance);
		auto weakval = weak.get();
	}
}

I was able to repro the break on the latest stable release of cppwinrt (April 2024).  I did have to tweak a few things in your code sample to get it to compile (e.g. arguments to main were unused and warning treated as error made that a break).

Ah the issue here is the presence of two winrt::implements in the inheritance hierarchy. There should only be one.
I'd remove it from MyCoClass2, in favor of directly inheriting from MyCoClass.
Alternatively, you can remove it from MyCoClass and directly inherit from IMyComInterface (this would turn the class into an abstract one).

一个问题是继承层次结构中存在两个 winrt::implements。应该只有一个。
我会将其从 MyCoClass2 中删除，以便直接从 MyCoClass 继承。
但即使删除它，它也无法编译。
还可以更改再现以避免问题weak_ref并使其更清楚地表明问题出在get_self：）
int main(int const argc, char** argv)
{
winrt::init_apartment();
{
auto mycoclass_instance{ winrt::make() };
winrt::get_self(mycoclass_instance);
}
}


[new feature] custom rainglow modes

reasoning: fun, letting you add your pride flag if it's not in yet

[x] allows you to individually pick which colours you want to have in your game
[x] can be saved to your config file (will require some work)
[x] add custom to options enum
[x] add button next that allows you to individually turn colours on or off
[x] by default all colours are off
[x] needs protections so you can't run the game with an empty custom profile

released in 0.2.0


Wrong "automatic bracket closing" behaviour?

According to the specification (https://codemirror.net/docs/ref/#autocomplete.closeBrackets), the default "automatic bracket closing" should be like this:

type (, then ) is automatically inserted;
type ), the cursor moves over that bracket.

The example has the same behaviour as explained: https://codemirror.net/try/
It does not seem to work in the same way at https://logue.dev/vue-codemirror6/ with basic lang=javascript.
Specifically, the second step, when you type ), the character is inserted.

It's still under testing, but it seems to work in the Linter and cross binding demo with the update I just committed.

Currently, when you input "()", you get "())", which does not follow the specification.
https://github.com/logue/vue-codemirror6/blob/master/src/components/CodeMirror.ts#L442
I found that this watcher updates the CodeMirror content even if the update is caused by CodeMirror, this might making CodeMirror think there is additional manipulations between the two input( (  and )), so it will not trigger the second step.
It is necessary to check the update source, If the update comes from CodeMirror, then don't dispatch the update back to CodeMirror.
I have fixed it in #22

Hi @logue, do mind merging @dyon21 's PR #22 ? I have tested it and that works very well. I have a product that uses this component. It is much appreciated if the fix is released as soon as possible.

Marked.
There are also cases where you use it to customize the line separator, so we also fixed that.


Support translations for the GUI

A few things:

For the translations there seems to be two websites: weblate and transifex which are both free for FOSS projects.
I've cleaned and consolidated the names between the UI files and class names. Also some other cleaning.
A reload of the program is the easiest way to switch languages. Otherwise (afaik) you need to manually re-translate every label.
I've included a lang_utils for testing but weblate or transifex will pull the strings for translation in and it appears a GitHub action can be done to generate the .gm files.
Some of the lists, such as format/rating/etc. need to be switched to using userData in English so the strings can be translated. (I think this makes sense to do?)
I've put in a test en_GB file (read style is changed to read type) and a custom message when switching to it. I've also included Japanese (but with no files for CT) to show the builtin translations for the widgets works.
I've probably missed a string or two somewhere.
Because this is using the Qt library, no CLI translations. For that gettext appears to be the answer (and switch the GUI over to it too).
How to support plugins? Because settngs is used for the strings for CLI and GUI, it presents a problem. For a string to be pulled by pylupdate for translation it needs to be wrapped in tr() which requires Qt. Hoping for a bright idea. Best I have is using QT_TRANSLATE_NOOP which would look something like:

    def __init__(self, version: str, cache_folder: pathlib.Path):
        super().__init__(version, cache_folder)

        self.remove_html_tables: bool = False
        self.remove_html_tables_txt = QT_TRANSLATE_NOOP("ComicVine", "Remove HTML tables")
        self.remove_html_tables_hlp = QT_TRANSLATE_NOOP("ComicVine", "Removes html tables instead of converting them to text")

    def register_settings(self, parser: settngs.Manager) -> None:
        parser.add_setting(
            "--cv-remove-html-tables",
            default=False,
            action=argparse.BooleanOptionalAction,
            display_name=self.remove_html_tables_txt,
            help=self.remove_html_tables_hlp,
        )

I've yet to test it.

Obviously QT_TRANSLATE_NOOP isn't going to work without Qt...

For "external" plugins the easiest option would be to load another translator <plugin>_talker_translator.load().
It would be nice to be able to pull external plugins in to weblate/transifex if possible to consolidate translation.

I've cleaned and consolidated the names between the UI files and class names. Also some other cleaning.

At the very least this should be it's own commit if not it's own PR but most of these are irrelevant as long as the loadUI function is used

A reload of the program is the easiest way to switch languages. Otherwise (afaik) you need to manually re-translate every label.

Qt has a retranslateUi function that gets generated when python files are generated from ui files

I've included a lang_utils for testing but weblate or transifex will pull the strings for translation in and it appears a GitHub action can be done to generate the .gm files.

qm files are entirely generated and should not be in git. And creating a .pro file and then using pylupdate5 on the pro file would remove the need for the lang_utils module at all

Some of the lists, such as format/rating/etc. need to be switched to using userData in English so the strings can be translated. (I think this makes sense to do?)

how most translation systems work is that there is a function eg tr that marks a string as translatable so that a tool can extract the string to a translation file, note that no translation has happened yet, right now this is purely a marker. When the application runs that string eventually gets sent to an actual translation function which does a simple replacement to the string defined for another language when it is shown to the user. The marking function tr doesn't ever need to do anything other than return the string unchanged, most of the time wherever the string is declared is where the translation happens but it does not have to happen there. Typically any comparison means that a string is not translatable. A common practice is also to not have a useable string at all in the source and only have an ID used the real string being listed in the translation file.

I've put in a test en_GB file (read style is changed to read type) and a custom message when switching to it. I've also included Japanese (but with no files for CT) to show the builtin translations for the widgets works.

en_GB is fine for a test but under no circumstances am I supporting CT being translated into a separate dialect of english, Qt may have some differences and it's builtin widgets may change but for CT everything will fallback to en_US

Because this is using the Qt library, no CLI translations. For that gettext appears to be the answer (and switch the GUI over to it too).

It's not uncommon for CLI tools to not have any translations but the GUI tools do

How to support plugins? Because settngs is used for the strings for CLI and GUI, it presents a problem. For a string to be pulled by pylupdate for translation it needs to be wrapped in tr() which requires Qt. Hoping for a bright idea. Best I have is using QT_TRANSLATE_NOOP which would look something like:

Well cli options --comicvine-key would not change they are not translatable. The help and display name are translatable an as explained in 5. QT_TRANSLATE_NOOP is just a marker to say this string is translatable no Qt required, the plugin would provide it's own translations that we would load eg comicvine/i18n/en_GB.qm
and we can't use fstrings for things that need translations!
This is not a trivial project and requires a huge amount of planning and maintenance, even when utilizing weblate or transifex to assist. For some more information/context see Mozilla's best practices and orange3 a python project trying to figure out if they are going to do translations and how. The core developers of orange3 are Slovenian, they created it, they've had it for at least 10 years and it's still only in english! 56% of Slovenians know english and their audience is primarily scientific/academic so it's not necessarily a huge jump for them to do so, but english still isn't even an official language of Slovenia.
So unless there are people asking for it (there aren't, this is the first I've seen regarding translation of ComicTagger) I don't want to re-architect the project to be translatable, and I don't know any other languages so if someone opens an issue about a translation all I can say is "sorry, I only know english and I don't have the time or interest to learn an arbitrary language or google translate a better translation". If there are people who want it translated please start a discussion or open an issue even more so if they would be open to helping translate.


How to resolve recursive library/test dependencies in Haskell?

Suppose I have two packages: lib and test-util. The test-util library depends on the lib library and the tests of lib depend on the test-util library. I have created an example of such a project and it works just fine with stack test.
stack2nix (or cabal2nix) produces an expression that separates the dependencies into libraryHaskellDepends and testHaskellDepends but then the builder concatenates everything together and it results in a cycle.
Would it be possible to produce separate derivations for the library and for its tests and then probably combine them into a single derivation to preserve the old behaviour?

Bump! Any idea on how this can be solved?
(@peti)

You can pass the lib build a version of test-util that has its test suite disabled, i.e.
lib = callPackage ./lib.nix { test-util = dontCheck self.test-util; };
test-util = callPackage ./test-util.nix { };

This will use an untested version of test-util to build a tested lib, and then that version will be used to build a tested test-util.

Hm, I’m not sure how this can help, as test-util doesn’t have any tests anyway. It consist only of a library and it is its library that depends on lib.

@peti's trick is indeed the proper short-term solution. But I maintain that in the long term, separate per-component derivations is the way to go.


Transform Connector to Service Task

Describe the bug
A connector task within your bpmn model is not able to be transformed to a plain service task.

Steps to reproduce

Inject element template of the Whatsapp-Connector
create a bpmn model
include a connector as part of your model
change the type of that connector to be a service task
observe this transformation to be not happening

Expected behavior
I'd expect the connector to be transformed into a service task without any errors occuring.
Environment

OS: MAC OS
Camunda Modeler Version: 5.19.0
Execution Platform: Camunda 8

Additional context
No response

@astrothmann This is likely a regression introduced with v5.19.0, to be fixed with v5.20.0, cf. upstream bug report.
Could you verify this works fine in v5.18.0? We'll also ensure that we update the nightly with the latest versions so you could double check there.


Scoreboard filled with spam which prevents player login

This was previously ignored because it seemed like a one-off issue, but more players have reported their scoreboard getting filled with random locations coords (likely snitches?). This prevents some players from being able to log in to the server because of the load on their client. HenryDraton reportedly was only able to resolve by joining on 1.16 and typing /config, which resolved the issue.
I'm unsure of whether this is primarily a ViaVersion issue, but Henry was unable to load into the server on 1.16 even until he typed /config (does that reload or something?)

ViaVersion issue/ Older client in general. It's not snitches, but the thing showing your current location in the sidebar. If people have issues with it they can turn it off or use 1.16.1, we don't provide support to older versions.


Update dHealth $UDHP due to expired legacy data

Ref: https://github.com/cosmos/chain-registry/pull/4335

The asset can be viewed at this preview. https://app.osmosis.zone/assets?show_preview_assets=true
I notice the color contracts poorly against Osmosis' backgrouund color. Perhaps a second image with a round background can be registered and used here.

Is there plan to create a pool of this?
A preview can be seen here: https://app.osmosis.zone/assets?show_preview_assets=true


[Feature Request] Ability to show diff information in the single editor

Context

[X] This issue is not a bug report. (please use a different template for reporting a bug)
[X] This issue is not a duplicate of an existing issue. (please use the search to find existing issues)

Description
Capability to show the diff in the single editor instead of 2 split editors would be great. Does this feature already exist?

See https://microsoft.github.io/monaco-editor/playground.html#creating-the-diffeditor-inline-diff-example

Hey @spahnke .. thanks for the link.. is there a way to only show the diff on clicking of some button in but left gutter area?

Not out of the box, but you can probably build that yourself using editor APIs. It's a bit of work, but AFAIK it's the same process e.g. the peek definition/peek references view does under the hood.

Add a viewzone to the editor at the desired position (https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IStandaloneCodeEditor.html#changeViewZones). A viewzone reserves space between editor lines.
Add a content widget in the exact same position and dimensions as the viewzone (https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IStandaloneCodeEditor.html#addContentWidget).  The editor then renders it at the correct place inside the editor.
Create a diff editor inside the DOM node of your content widget.

Examples to viewzones and content widgets: https://microsoft.github.io/monaco-editor/playground.html#interacting-with-the-editor-listening-to-mouse-events

Awesome. thanks for the detailed explanation @spahnke  :)


no

Description
What steps will reproduce the problem?

What is the expected output? What do you see instead?
Please provide any additional information below
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 948, in execute_code
sw.sig_prompt_ready.disconnect()
TypeError: disconnect() failed between 'sig_prompt_ready' and all its connections
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 906, in
clear_variables))
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 948, in execute_code
sw.sig_prompt_ready.disconnect()
TypeError: disconnect() failed between 'sig_prompt_ready' and all its connections
Traceback (most recent call last):
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 906, in
clear_variables))
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 948, in execute_code
sw.sig_prompt_ready.disconnect()
TypeError: disconnect() failed between 'sig_prompt_ready' and all its connections
Traceback (most recent call last):
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 906, in
clear_variables))
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 948, in execute_code
sw.sig_prompt_ready.disconnect()
TypeError: disconnect() failed between 'sig_prompt_ready' and all its connections
Traceback (most recent call last):
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 906, in
clear_variables))
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 948, in execute_code
sw.sig_prompt_ready.disconnect()
TypeError: disconnect() failed between 'sig_prompt_ready' and all its connections
Traceback (most recent call last):
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 906, in
clear_variables))
File "C:\Users\Sasha\Anaconda2\lib\site-packages\spyder\plugins\ipythonconsole.py", line 948, in execute_code
sw.sig_prompt_ready.disconnect()
TypeError: disconnect() failed between 'sig_prompt_ready' and all its connections
Version and main components

Spyder Version: 3.2.4
Python Version: 2.7.14
Qt Versions: 5.6.2, PyQt5 5.6 on Windows

Dependencies
pyflakes >=0.5.0  :  1.6.0 (OK)
pycodestyle >=2.3 :  2.3.1 (OK)
pygments >=2.0    :  2.2.0 (OK)
pandas >=0.13.1   :  0.20.3 (OK)
numpy >=1.7       :  1.13.3 (OK)
sphinx >=0.6.6    :  1.6.3 (OK)
rope >=0.9.4      :  0.10.5 (OK)
jedi >=0.9.0      :  0.10.2 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
sympy >=0.7.3     :  1.1.1 (OK)
cython >=0.21     :  0.26.1 (OK)
qtconsole >=4.2.0 :  4.3.1 (OK)
IPython >=4.0;<6.0:  5.4.1 (OK)
pylint >=0.25     :  1.7.4 (OK)

Thanks for reporting. This is a duplicate of #5748 , which was fixed in Spyder 3.2.5 released a number of months ago. Please update with conda update spyder to resolve it.


require('node:assert/strict')导致低版本不能用

v15.0.0 Exposed as require('node:assert/strict').

up

Explain your issue in English.

https://github.com/bytenode/bytenode/pull/227 broke compatibility with node 14

Uncaught Error: Cannot find module 'assert/strict'

but const { ok } = require('node:assert').strict; or const { ok } = require('node:assert') still works


Marking nested program scripts as unstable until issue with orgs is resolved

Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata
Testing Notes

@jstvz This is the new PR to just mark the scripts as unstable.


add entry for the standard library preview repository

Pull Request Description
Add an entry for the standard library preview repository.
On Linux, the project requires the --enable-test-discovery flag to be passed in order for tests to build and run on Swift 5.1 through 5.3. I don't know where to add this.
This project supports Swift 5.1 and up; there is no Swift 4.0 branch.
Acceptance Criteria
To be accepted into the Swift source compatibility test suite, a project must:

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

BSD
MIT
Apache License, version 2.0
Eclipse Public License
Mozilla Public License (MPL) 1.1
MPL 2.0
CDDL

[x] pass ./project_precommit_check script run

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

@swift-ci test

Is there a way to add a flag for the swift test invocation? On Linux for 5.1, 5.2 and 5.3, we would need to pass --enable-test-discovery.

Is there a way to add a flag for the swift test invocation? On Linux for 5.1, 5.2 and 5.3, we would need to pass --enable-test-discovery.
We currently don't support testing on source compat suite.

The flag is required for swift build as well. It looks quite weird there.

@swift-ci test

It won't build on main because SwiftPM made a source-incompatible change.
See https://bugs.swift.org/browse/SR-15558

@shahmishal This should now build on main, as the source-incompatible change in SwiftPM was fixed in https://github.com/apple/swift-package-manager/pull/3922.

@swift-ci test


Add support of AWS opensearch serverless

Update README
Add s3SessionToken support
Add support of AWS opensearch serverless for setting data to collection
Add comments
Fix lint(standard) issue
Remove _search from es url in the _base.js

Hello,
Could you merge opensearch-serverless-support branch ?
I need this feature :)

I can't merge this in. I haven't tested it or know if it works. You can checkout the branch if you like. This is on pause until tested


pull request for e2e test at 12/30/2016 23:15:10

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


Modify gce snapshot code

modify gce snapshot code to support

@jingxu97 do you need anything in find snapshot and describe snapshot too?

@rootfs yes, working on findsnapshot

I can see some overlap with the newer PR #400. Should those be merged?

@tsmetana I think I will put all the changes in PR #400. So don't need to merge this one. Thanks!

Closing as per @jingxu97's last comment: the #400 has been merged.


Docs: backend integration with Guillotina

Document how to integrate Volto with the Guillotina backend.
https://6.docs.plone.org/volto/backend/index.html

Hello should this documentation be added in docs/backend/index.md or a new readme file is to be created under docs/backend for Guillotina?

Neither. See https://6.docs.plone.org/contributing/documentation/index.html#large-edits and https://6.docs.plone.org/contributing/documentation/index.html#editing-external-package-documentation.


More advance roundabout quick-setup.

In issue #539 I implemented the first phase of roundabout quick-setup This issue is the next phase to handle stations like this:

Tasks:

[ ] option to setup enter blocked junction for roads joining the roundabout.
[ ] More clever path detection: Instead of following a preferred direction (forward) follow all possible paths in all directions. if the path is not a roundabout then discard it. among the paths that are roundabout I choose the one that has the list amount of left/right turns within the roundabout. if the number of turns are equal then choose the shortest paths
[ ] Undo feature: until (#568 ) is resolved we will have to clear rules rather than undo them.
[ ] ban parking on roundabout
[ ] Speed Limit #793

related : #541 #542

I want to add option to setup entering blocked junctions for roads joining the roundabout. but our options are already a mess (#853) (sorry that's on me!) and I am worried I might make them worse.
So here is what I think:

in a highway roundabout we want to allow cars to enter blocked junctions
in an urban roundabout we want cars to yield.

This is what the game does by default. so in theory I don't need to add an option for this. But in practice, when Biffa is fixing cities he has to turn off enter blocked junctions manually because

sometimes highway roads join urban roundabouts.
sometimes user has modified enter blocked junction manually before hand.

So I think I need to add option like this:
O modify enter blocked junctions for in-coming cars
   O allow(on)/ ban(off)

There's also case where users build their urban roundabouts out of highway roads so they can watch cars driving round them at warp speed.
I suspect road size in terms of lane counts will be a factor, but haven't thought that through yet.

Default settings for entering blocked junctions:

joining highway : yes
joining and leaving highway at the same node: No
urban: No

My focus was drawn to the pedestrian crossing icons - on highway roads... Is that a bug?

I suspect road size in terms of lane counts will be a factor, but haven't thought that through yet.

entering blocked junction is good if you are joining the outer lane but not good when you are joining the inner lane (because you can block cars trying to exit the roundabout. so for one lane roundabout is good but for 2+ lane roundabout is bad.
hmmm ... maybe we can have an option in policies to enter blocked junction only for the first lane when pedestrian crossing does not exists.

Regardading lane-wise enter-blocked junction, see also: #565
Actually, for enter blocked junction in general, I keep thinking it maybe needs a complete rethink: #424

My focus was drawn to the pedestrian crossing icons - on highway roads... Is that a bug?

I did brought this up int he pull request https://github.com/CitiesSkylinesMods/TMPE/pull/845#issuecomment-615114683.
Fixing it would be as easy as setting IsPedestrianCrossingAllowedConfigurable() to false
if the road does has 2+ pedestrian lanes:
    IsPedestrianCrossingAllowedConfigurable = true
    GetDefaultPedestrianCrossingAllowed = true
else if the road to the right has pedestrian lanes AND the road to the left has pedestrian lanes
    // maybe this logic should be more sophisticated to check that the pedestrian lanes is on innder/outter side of the road
    IsPedestrianCrossingAllowedConfigurable = true
    GetDefaultPedestrianCrossingAllowed = true
else
    IsPedestrianCrossingAllowedConfigurable =  false
    GetDefaultPedestrianCrossingAllowed =  false

The GUI automatically does not show pedestrian crossing overlays if they are disabled. Actually in my mod I have patched TMPE to hide pedestrian crossing overlays when appropriate.

I split the ped crossing stuff to new ticket ^^

The ticket started with focus on better roundabout detection but now I have abandoned that because road selection panel does the deed.
better roundabout detection should move to another ticket:

detection and setup of roads that split when joining roundabout.

the code for split road setup already exists.
my Pedestrian bridge builder already is capable of detecting split roads.

detection of magic roundabout

at every intersection try to see if we can find a mini roundabout. then try to continue on the main roundabout without going through the mini roundabouts.

graph

prefer straight roundabouts.
prefer short roundabouts
prefer roundabouts without sharp turns

Ok, create new ticket.
Should this #578 be closed (treat it as completed by the road selection panel)?

Its working!
TrafficManager.zip