Cloudwatch.moto support for alarm states

Feature request regarding cloudwatch moto.
Hello, I need following apis:

boto3.client('cloudwatch').describe_alarms(StateValue=)
boto3.client('cloudwatch').set_alarm_state

Currently those are not supported and raises NotImplementedError:

https://github.com/spulec/moto/blob/eb220cc6fb120a978de93be3905c50799875ba8d/moto/cloudwatch/responses.py#L166
https://github.com/spulec/moto/blob/eb220cc6fb120a978de93be3905c50799875ba8d/moto/cloudwatch/models.py#L125

Thanks!

API docs for set_alarm_state, and describe_alarms
Will have a look.

Good issue, a failing test case would of sped things up but then again its not too difficult to make one. :smile:

Yeah, I'll remember about this next time ;_). Thanks!


New detector: SendInLoop

Closes #131

[ ] I have updated CHANGELOG.md
[ ] I have added tests to demonstrate the contribution is correctly implemented
[ ] No test failures were reported when running yarn test-all
[ ] I did not do unrelated and/or undiscussed refactorings

Also, please create an issue referring to the further interprocedural improvement of this detector that we are going to include in the next release.


Support equality of stop position values

Allow consecutive stop values to be equal to represent discontinuous
gradients (ones where a color change is abrupt).

I added unit tests


Dead Code Documentation

Is your feature request related to a problem? Please describe.
I'm finding dead code in this application. I'm not entirely sure why this code exists. I have two guesses:

Not all of Consoleme code is posted in this repo.
The dead code was used at one point but is now removed.

Describe the solution you'd like
Can there be some explanation in the documentation that explains why dead code exists, assuming it's because there is code not pushed to this repo.
Describe alternatives you've considered
The dead code could be removed but that would be a lot of work. This assumes that the code is in fact dead.
Additional context
Since I'm a security researcher I'm having a hard time determining whether or not I should submit bugs for "dead" code (if a vulnerability is found). There are requirements that I have to meet when I submit security bugs, for example a proof of concept, and when I'm not sure if this dead code is used by Netflix I won't know what to do. Some additional guidance on this would be fantastic.

Thanks for the issue @mrthankyou!
Some of this code is used internally at Netflix in our internal ConsoleMe plugin, but was added to ConsoleMe OSS due to feeling generic, or being part of a feature that we'd eventually like to open source.
Historically, ConsoleMe was not pluggable, and we had to split up components from the old ConsoleMe monorepo. We also overhauled the UI from server-side-rendered to React. I'd not be surprised if there's dead code around from all of the refactoring.
If you have questions about specific functionality that you'd like to ask, feel free to ask me on Discord. The code would benefit for some cleanup, but I can't say when we'll have the cycles for it.

Thanks @castrapel! I appreciate the response and detailed information. I may PM you on Discord sometime. For now I'm happy to close this if you are.

Sounds good, I will close this. Thank you.

I'm curtis on Discord


[Automated] Update eventing-rabbitmq-eventing nightly

/assign @knative-sandbox/eventing-rabbitmq-approvers
/cc @knative-sandbox/eventing-rabbitmq-approvers
Produced via:
for x in eventing-crds.yaml eventing-core.yaml; do
  curl https://storage.googleapis.com/knative-nightly/eventing/latest/$x > ${GITHUB_WORKSPACE}/./third_party/eventing-latest/$x
done

Details:

/retest


Refactor warning capturing and testing.

Ember 3.27+ no longer compiles module imports down to globals, this means that when import { warn } from '@ember/debug' you can no longer stub Ember.warn directly and expect it to intercept the warning.
This commit introduces a new API that we can use to intercept warning invocations (leveraging registerWarnHandler from Ember itself), as well as ensuring that our own tests never "leak" unhandled warnings (which we didn't have a problem with, but seemed like a nice thing to add :smile:).
Fixes https://github.com/hjdivad/ember-m3/issues/1046

Confirmed this fixed the failures: https://github.com/hjdivad/ember-m3/actions/runs/679852171


Readme review 28619

Let me know how you feel about my reviews thus far and what you might want me to change.

Is this pull request still required @fierytortilla?

Is this pull request still required @fierytortilla?

@simon-tarr I'm not really sure if it is required anymore, since so many other things has happened since I last did this pull request. I would prefer if we could discuss my proposals altogether as a team in the next Code review/retro so that we can have a good holistic conversation about what we want/don't want.

@simon-tarr I'm not really sure if it is required anymore, since so many other things has happened since I last did this pull request. I would prefer if we could discuss my proposals altogether as a team in the next Code review/retro so that we can have a good holistic conversation about what we want/don't want.


StickyState doesn't support parent named ui-view replacement

I am using stickyState to pop a modal from a state that replace it's parent view. Then on the modal when going the modal's sub-state, the view in the background is replaced by the parent of the state on witch i called the modal, it's a little bit tricky so i reproduce the bug on the example plnkr : http://plnkr.co/edit/We0Nx1NyvFTBmPuek7as?p=preview  ( go deep into app.account.myStuff  then open the modal and it's substate)

+1

+1

+1

+1

+1

Rather than getting all your coworkers to +1, how's about submitting a pull request?

http://plnkr.co/edit/vzsCMwGmUW7qtozJ4z1X?p=preview

Thank you


Failed to notify project evaluation listener - JAXBContext

$ ./gradlew runIde

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'idear'.
> Failed to notify project evaluation listener.
   > javax/xml/bind/JAXBContext

$ ./gradlew --version
------------------------------------------------------------
Gradle 4.9-20180613100740+0000
------------------------------------------------------------

Build time:   2018-06-13 10:07:40 UTC
Revision:     505792df79c2113d1f401761e352b713d2dc8785

Kotlin DSL:   0.18.2-SNAPSHOT
Kotlin:       1.2.41
Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          10.0.1 ("Oracle Corporation" 10.0.1+10)
OS:           Mac OS X 10.13.5 x86_64

Are you using the latest master? We've updated to Kotlin 1.2.50 last week. Also, I think the IntelliJ Platform may specifically require JDK 1.8 to build.

  I've installed the latest version of IntelliJ Pro - it has Kotlin 1.2.50 and build.gradle.kts mentions kotlin 1.2.50, but .gradlew --version remains unchanged.
I'm also getting another error (on a Linux machine):
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find AceJump/lib/AceJump-3.5.0.jar (org.jetbrains.plugins:AceJump:3.5.0).
     Searched in the following locations:
         file:/home/nalbion/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/LATEST-EAP-SNAPSHOT/be099a2c25b1e63cae5d05f7f53b3e4fb9a9c551/ideaIC-LATEST-EAP-SNAPSHOT/plugins/AceJump/AceJump/lib/AceJump-3.5.0.jar
         file:/home/nalbion/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/plugins.jetbrains.com/AceJump-3.5.0/AceJump/lib/AceJump-3.5.0.jar
         file:/home/nalbion/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/LATEST-EAP-SNAPSHOT/c3a421e20746601f882c100d5f35be5e25627af0/ideaIC-LATEST-EAP-SNAPSHOT-sources.jar/AceJump/lib/AceJump-3.5.0-3.5.0.jar

Hmm, I was mistaken. The Kotlin version displayed by ./gradlew --version is the Kotlin version used by the Gradle Kotlin DSL - not our Kotlin. You shouldn’t need to upgrade anything else - ./gradlew runIde will do everything for you. However, you may need to downgrade to JDK 1.8, that’s the only dependency required by gradlew and it is shared by the IntelliJ Platform.

https://travis-ci.com/OpenASR/idear/jobs/130280990

I've pushed a Docker file which can be used to reproduce the issue with AceJump - perhaps the jar needs to be added to the Docker image.

Can you ping https://plugins.jetbrains.com/ from the build machine? This artifact is downloaded from the JetBrains Plugin Repository by the plugins attribute of the gradle-intellij-plugin.

I’m not sure why it’s trying to fetch AceJump 3.5.0, since we’re using an older version: https://github.com/OpenASR/idear/blob/ab7751343e3f7a4c3caf5f0a2e9f9a3ba4d40fdb/build.gradle.kts#L9

I tried 3.3.5 and 3.5.0 - neither work. TravisCI tried to download 3.3.5 and failed

@Brendan can you pull and run make docker?

@nalbion so it works locally and doesn't work in docker and on the travis? What the OS you use locally? If not Linux, then it sounds like case-sensitivity problem. ID of AceJump plugin is definitely AceJump, not acejump

Weird, this definitely worked before. Thanks for your help @zolotov!

Thanks @zolotov and @breandan


TypelevelAs should add cats.syntax import

Version 0.1.5
import cats.effect.Resource

val foo: Resource[A, B] = ???
val x = foo.map(_ => ())

The rule TypelevelAs.as will complain and suggest to rewrite the map line to .void.
Resource does not have a void method :)
The check should probably be limited to types that provide the necessary functions.

It does, if you do import cats.syntax.all._ :) I think there's a way to scalafix to add imports if necessary.

Oh, that is possible. I wonder if there is a good way to make that part of the message in such a situation maybe?
My actual issue turned out to be that I had multiple Functor instances (from Temporal and Sync) and the void syntax could not decide which one to pick :)

Here's how an http4s scalafix adds an import if needed.
https://github.com/typelevel/typelevel-scalafix/blob/8e246387dbed1e772933d2f757bc7609bc909861/modules/http4s/rules/src/main/scala/org/typelevel/fix/Http4sLiteralsSyntax.scala#L41-L43

Let's close this issue because there is no issue :)

Actually there is an issue, the import is not being added :)

Right but you'd have to make the rule a lot more specific then, would you not?
What would happen to a foo.map(_ => ()) where foo does not have a void in cats.syntax?

Good point. So even after adding the import, this Scalafix could still be suggesting broken code. Seems to me like another reason to keep it open.

👍 I agree with that. This almost needs something like "do we have an implicit Functor? OK, just add the syntax" and otherwise bail out.


Time Methods

Noting some ideas around supporting basic time methods. Something along the lines of:
class Time {
  static now { ... }
  static sleep (seconds) { ... }
  static usertime { ... }
  static systemtime { ... }
}

Obviously this doesn't capture the full cornucopia of date & time operations but it would be a good start.

Classes for points in time, lengths of time, time intervals.
On Saturday, January 17, 2015, Gavin Schulz<EMAIL_ADDRESS>wrote:

Noting some ideas around supporting basic time methods. Something along
the lines of:
class Time {
static now { ... }
static sleep (seconds) { ... }
static usertime { ... }
static systemtime { ... }
}
Obviously this doesn't capture the full cornucopia of date & time
operations but it would be a good start.
—
Reply to this email directly or view it on GitHub
https://github.com/zeckalpha/wren-io/issues/6.

See #11


tmpi: init at 1.0.0

Description of changes
Added tmpi - a shell script that is useful when running multi-core jobs with mpirun for debugging purposes. Uses tmux to look into each process separately.

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Force-pushed all requested changes, namely the version name adjustment and makeWrapper addition.

Looks good. I can test this in a bit. I did try testing on my x86_64-darwin machine first and noticed that reptyr does not support that platform -- might be worth inheriting reptyr's platforms (assuming that's the most restrictive dependency of this derivation). If you do make that change, you could tweak the commit message since the version is no longer 1.0.0.
At any rate, I'll be at my linux laptop soon to make sure it builds for me so I can give it a 👍.

Result of nixpkgs-review pr 323875 run on x86_64-linux 1

1 package built:

tmpi


window is still able to be resized when maximized

Lapce Version
0.2.1
System information
arch kde
Describe the bug
window is still able to be resized when maximized
making it harder to grab side panels

Should be fixed

well there isn't the right panel anymore so it isn't a problem here but the windows can still be resized while maximized, which is not the best option and done nowhere else


Race Condition on port

Describe the bug
When opening several notebooks in jupyterhub, and restarting them to execute all cells, very often this exception is raised
Port number (here 1032) is usually in the low range of the allowed range.
Unhandled exception: System.IO.IOException: Failed to bind to address http://<IP_ADDRESS>:1032: address already in use.
 ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
 ---> System.Net.Sockets.SocketException (98): Address already in use
   at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass30_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IEnumerable`1 listenOptions, AddressBindContext context, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Hosting.WebHost.Start()
   at Microsoft.DotNet.Interactive.App.CommandLine.CommandLineParser.<>c__DisplayClass5_0.<Create>b__0(StartupOptions startupOptions, InvocationContext invocationContext) in D:\a\_work\1\s\src\dotnet-interactive\CommandLine\CommandLineParser.cs:line 95
   at Microsoft.DotNet.Interactive.App.CommandLine.JupyterCommand.Do(StartupOptions startupOptions, IConsole console, StartServer startServer, InvocationContext context) in D:\a\_work\1\s\src\dotnet-interactive\CommandLine\JupyterCommand.cs:line 18
   at Microsoft.DotNet.Interactive.App.CommandLine.CommandLineParser.<>c__DisplayClass5_0.<<Create>g__JupyterHandler|11>d.MoveNext() in D:\a\_work\1\s\src\dotnet-interactive\CommandLine\CommandLineParser.cs:line 315
--- End of stack trace from previous location ---
   at System.CommandLine.NamingConventionBinder.CommandHandler.GetExitCodeAsync(Object returnValue, InvocationContext context)
   at System.CommandLine.NamingConventionBinder.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass20_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.DotNet.Interactive.App.CommandLine.CommandLineParser.<>c__DisplayClass5_0.<<Create>b__3>d.MoveNext() in D:\a\_work\1\s\src\dotnet-interactive\CommandLine\CommandLineParser.cs:line 224
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass13_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass24_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__21_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__6_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass9_0.<<UseExceptionHandler>b__0>d.MoveNext()

Please complete the following:
Using version : 1.0.317502

OS

[ ] Windows 11
[ ] Windows 10
[ ] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[ ] Chrome
[ ] Edge
[ ] Firefox
[ ] Safari

Frontend

[ ] Jupyter Notebook
[X] Jupyter Lab
[ ] nteract
[ ] Visual Studio Code
[ ] Visual Studio Code Insiders
[ ] Visual Studio
[ ] Other (please specify)

Screenshots

My understanding is that there is a delay between when a port is chosen :
https://github.com/dotnet/interactive/blob/main/src/dotnet-interactive/Program.cs#L102-L136
and when a port is used :
https://github.com/dotnet/interactive/blob/main/src/Microsoft.DotNet.Interactive.Jupyter/Shell.cs#L78
This delay allows a race condition to happen (ie : 2 kernels with the same port can be launched, but only 1 will survive).
I am unsure of what the best solution could be:

either change the for loop by introducing some randomness when a port is chosen
simply ask the system with a connection with a 0 port and get a free port in return (but it I don't know why there is a need for a port range, and this approach will definitively return a free port outside the initial port range)

Happy to discuss these solutions or any other and provide a PR if needed

Quick workaround at https://github.com/dotnet/interactive/pull/2285


CONTRIBUTING.md and nixpkgs manual contributing section are redundant

Issue description
The contribution section in the manual now seems to be authoritative already due to its size. CONTRIBUTING.md has some overlap, but this is double book keeping.
Suggestion: CONTRIBUTING.md should link directly to the manual and be otherwise empty.
related (because they want to add to CONTRIBUTING.md):

https://github.com/NixOS/nixpkgs/issues/160745
https://github.com/NixOS/nixpkgs/issues/171557

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/2022-10-22-documentation-team-meeting-notes-12-nixcon-edition/22689/1

Closed by #245243


Jupyter App for Apptainer images

This app was created by Prithvi.
Starting from this PR
https://github.com/brown-ccv/ccv-ood-apps/pull/73

Tested this app for the account field, features and bindpath. Works correctly


Ratelimit Warning is blocking

What I mean by this is that because you're calling it with raise, it stops the program. We need to use warnings.warn()
self-assigned this, currently working on it

Fixed with PR.

you can use the Exception object catched by the except statement and have it processed by your warning.warn() or warning.error() method, whichever :
try:
  raise NotImplemented("test")
except Exception as error:
  warning.error(error)

This seems more pythonic, could you fork this and make the changes (if you have time im really busy rn)? I can make a PR

@XenonPy regards this, you can take a look at my library's own logging module. Logger.error() requires an Exception object passed as parameter


Add 2.x.x abi migration branch

Checklist

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

I believe psycopg 2 needs to stick around for a while:

psycopg2 and psycopg3 are not compatible, so folks need time to migrate code bases
psycopg2 needs to keep marching forward with migrations applied so to not create dependency islands
psycopg2 and psycopg packages can co-exist within an environment without issue.

I was afraid this would happen.  I''ll close #88.

Thanks @akrherz and sorry for the mixup.


Possibly redundant _doneInit

I am not sure if _doneInit variable in the generated class is needed. The only use-case I've seen so far was a computed variable when it was protecting the counter so it's not incremented on the initial set.
    private var _doneInit = false

    public init() { _doneInit = true }
    public init(currentDirectoryPath: AbsolutePath) {
        self.currentDirectoryPath = currentDirectoryPath
        _doneInit = true
    }
    public var currentDirectoryPathSetCallCount = 0
    var underlyingCurrentDirectoryPath: AbsolutePath!
    public var currentDirectoryPath: AbsolutePath {
        get { return underlyingCurrentDirectoryPath }
        set {
            underlyingCurrentDirectoryPath = newValue
            if _doneInit { currentDirectoryPathSetCallCount += 1 }
        }
    }

but it seems, the same can be achieved by accessing the underlying variable directly.
    public init() {}
    public init(currentDirectoryPath: AbsolutePath) {
        underlyingCurrentDirectoryPath = currentDirectoryPath
    }
    public var currentDirectoryPathSetCallCount = 0
    var underlyingCurrentDirectoryPath: AbsolutePath!
    public var currentDirectoryPath: AbsolutePath {
        get { return underlyingCurrentDirectoryPath }
        set {
            underlyingCurrentDirectoryPath = newValue
            currentDirectoryPathSetCallCount += 1
        }
    }

Few other things I'd consider:

replacing underlying prefix with _ to make it more obvious it's just an internal store, and making it private.
Adding some extra empty lines between the methods/variables to enhance readability.

That's a good idea. Will remove it.

resolved

https://github.com/uber/mockolo/releases/tag/1.2.0


[Bug]: Users get locked out when super admins disconnect SSO

Is there an existing issue for this?

[X] I have searched the existing issues

Description
Consider a scenario where super user connects to an SSO provider (Google SSO, OIDC, etc.), and logins into the instance. Now, if super user disconnects the SSO there are two issues:

Existing sessions do not get invalidated
Existing users get locked out of the instance when they try to login again into the instance

Steps To Reproduce

Setup a new instance
Connect to SSO
Re-login the super user via SSO
Disconnect SSO
Logout the super user from instance
Try entering super user email to sign-in again into the instance

Public Sample App
No response
Environment
Production
Issue video log
No response
Version
Self Hosted - 1.9.37

Duplicate of #13518


refactor(p2p)!: PIDStore interface should take peer.AddrInfo and not peer.ID

The whole original point of using an on-disk peerstore is to quickly bootstrap the node with previously-seen good peers such that it can use them as quickly as possible.
If we only store the peer.ID, the host will have no addr information on that peer so it will not be able to connect to it early on until it actually discovers that peer later on and then gets its address information.
While this PR is breaking, I doubt anyone except celestia-node is using the pidstore interface at all so hopefully this isn't too intrusive.

We must use on disk libp2p peer store instead that will keep addresses.

@Wondertan then we do not need pidstore interface whatsoever -- we won't actually get any granularity around which peers we are storing/bootstrapping off of - it'll just be every peer that we maintain in our peerstore. I just POC'd a workaround that purely uses the on disk peerstore to bootstrap the peer_tracker and it seems to work for bootstrapping node from prev seen peers well enough.
I'm okay with this b/c it's less LOC entirely and we can remove ugliness from exchange + peer_tracker. I wish we would've done this from the start.


debugging info doesn't show in firebug 1.9

I've been using firesass happily with firebug 1.8.
I just installed firebug 1.9, and I'm not seeing the output that I'd expect from firesass.
I reinstalled firesass and restarted firefox, in case I'd broken something. But I'm still not seeing sass debug lines.

I just had the exact same issue.
Kind of a bummer, as FireSass has become an integrated part of my development flow.
Is there anything I can do to help get this back up and running ASAP?
Thanks!

I found out that removing firebug from firefox, restarting, and afterwards adding firebug 1.8.4 from here solves the problem temporarily:
http://getfirebug.com/releases/firebug/1.8/

Confirming titledk's experience: downgrading to a 1.8 release restores firesass debugging output in firebug.

Really looking forward to FireSass for Firebug 1.9. I assume it's in "the works"?
In the meantime is there anything we can do to debug SaSS?

thanks @titledk ...that seems to work for the moment :)

Please, anyone, fix it.

Yes, it would be freakin' awesome to see firesass working on firebug 1.9 !!!

Confirmed that @titledk's worked for me as well. Using Firebug 1.8.4 and FireSass is working again properly! I would love to see a release for firebug 1.9 as well! Thanks!

I've taken a look through the Firesass source code and think I have a fix for it...
In reps.js on line 14 if you change:
.getService(ci.nsIExternalProtocolService);
to
.getService(Components.interfaces.nsIExternalProtocolService);
It all starts working.
I have tried this in Firefox 10, Firebug 1.8.4 and 1.9.1
If you get hold of the firesass XPI file and open it using something like 7zip you will find reps.js in \chrome\content.
Sorry if this is overly technical! Hopefully it will get some of you going.
I emailed Nathan (the FireSass dev) with the fix but haven't heard anything back - he's probably a very busy guy!

@theearlofsandwich's fix worked great! I submitted a pull request to @nex3 to resolve this issue. In the meantime I packaged an xpi file with the changes that you can download from here: http://db.tt/vKOcnlMu

Thanks for the trick. I decided to downgrade to 1.8.4, firesass is back in business !

The firesass package provided by jacobneher works for me. Firefox 9.01, linux.

Closed by merging #10

Thanks @nex3!


Define use of initial state / align with sidetree.

Formerly: https://github.com/openssi/peer-did-method-spec/issues/129
We need a paragraph on how initial-state works, and how to pass the first delta.

@peacekeeper ping.

When this ticket is complete, we will have addressed the concern that @TelegramSam raised in https://github.com/openssi/peer-did-method-spec/issues/96.


Fix CGManifest parentheses and commas

It's duplicated with #557 , right?

Yes, it looks like it's a duplicate. Didn't need to merge looks like (but result should be identical)


Improvements

copy over not-safe-for-work checker
assume a random seed for -1 and 0
use seed in the filename
skip_grid only skip the grid, not the actual image

Sorry, don't wanted to merge it into the upstream 😅


Pre-check configuration

FEATURE REQUEST:
Create a role to check all variables before the deployment

Bad value type/ choice
Missing option
Check for incompatible options:
e.g:  weave + rkt

Please build support for OS-specific/cloud-specific stuff. Since a lot of these may not be made part of kargo mainline source code, it is much more important to give users a way to build these checks for themeselves and maintain it.
For example, we also use a popular cloud service in India called E2E - so while you may have AWS and GCE covered, I want to build my own templates for E2E and maintain it in my source repository. Your role should be able to run these as well.

may have some relationship with https://github.com/kubernetes-incubator/kargo/issues/842

We have asserts precheck now


When execute the quick-start-kubespray.sh, it encounters the error.

The error took place at run cert generation script. The error message is as following:
TASK [etcd : Gen_certs | copy certs generation script] *****************************************************************
Sunday 04 April 2021  04:18:00 +0000 (0:00:00.082)       0:02:13.524 **********
TASK [etcd : Gen_certs | run cert generation script] *******************************************************************
Sunday 04 April 2021  04:18:00 +0000 (0:00:00.085)       0:02:13.609 **********
fatal: [og-worker1 -> <IP_ADDRESS>]: FAILED! => {"changed": true, "cmd": ["bash", "-x", "/usr/local/bin/etcd-scripts/make-ssl-etcd.sh", "-f", "/etc/ssl/etcd/openssl.conf", "-d", "/etc/ssl/etcd/ssl"], "delta": "0:00:00.003344", "end": "2021-04-04 12:18:00.580748", "msg": "non-zero return code", "rc": 127, "start": "2021-04-04 12:18:00.577404", "stderr": "bash: /usr/local/bin/etcd-scripts/make-ssl-etcd.sh: No such file or directory", "stderr_lines": ["bash: /usr/local/bin/etcd-scripts/make-ssl-etcd.sh: No such file or directory"], "stdout": "", "stdout_lines": []}
Could anyone help me solve the problem?

The problem is solved. I change the ip addresses of nodes. Then one can just delete the files or dirs under the /tmp and rerun the shell.


Missing files after update from 2.x.x to 25.x.x

Describe the bug
BeforeEnterObserver, Context and ActionFn All of them were in @vaadin/router and are now gone. In doc I can find BeforeEnterObserver with the reference to vaadin/router...
I need a fast answer. I would like to continue work. Thx
Expected-behavior
No response
Reproduction
update
System Info
it's about the update from 2.5.6 to 24.5.2

The classes are still there in 24.4.10.
But why you removed them in 24.5.0? Why are there still in the doc? And why you make every few months such major changes? It's really annoying and the next time, I will remove vaadin from my project!

Hello, thank you for the feedback and apologies for the hassle. That was done as part of a major refactoring in the @vaadin/router in the 2.0.0 release, which we had to do in order to keep the codebase maintainable in the long run and ship security-related updates sooner.
Regarding the TypeScript interfaces you mention, we have introduced improved alternatives in the version 2.0.0. Namely:

BeforeEnterObserver and other observer interfaces were replaced with a single generic WebComponentInterface,
Context has been replaced with a RouteContext generic type,
ActionFn has no direct alternative, however, it still exists as a key of the Route generic type.

We will add old types back as deprecated for compatibility reasons in a coming maintenance release. Also, currently we're working on the new router documentation site. This is taking a while, unfortunately, as relying on the old toolset from the Polymer days is not a good option anymore.
Meanwhile, if you need a really quick solution, please try marking errors with // @ts-ignore for now. This should hopefully make TypeScript errors silent, the JS runtime should still support the same API.
I understand your frustration with breaking changes that occasionally happen in minor Vaadin releases. Here is the explanation of our versioning model.

Thx for the replay. But, it's unacceptable that you remove these classes without any hint how to fix this. Adding them later again as deprecated doesn't make it better. Next time, make them deprecated, add a hint there how to replace it, also in the doc. Then remove them in the next major release (in this case v25). And yes, the doc should be updated with the release and not weeks later.
I use hilla since it started with polymer 3 (at least I guess) and I had several such situations that costs me to much time.
You have a good framework. But such kind of behavior disqualifies your whole team and one day I will leave vaadin and will never look back! I'm glad that I develop in ddd, so this step wouldn't take to much time.


Compile error: no match for ‘operator=’ (operand types are ‘dlib::te::storage_heap’ and ‘std::vectordlib::rectangle’)

To use a system-wide dependency:
cargo build

dlib/any/storage.h:141:24: error: no match for ‘operator=’ (operand types are ‘dlib::te::storage_heap’ and ‘std::vector<dlib::rectangle>’)
  cargo:warning=  141 |                     me = T{};
  cargo:warning=      |                     ~~~^~~~~
  cargo:warning=/mnt/e/work/gitwork/dlib/dlib/any/storage.h:237:27: note: candidate: ‘dlib::te::storage_heap& dlib::te::storage_heap::operator=(const dlib::te::storage_heap&)’
  cargo:warning=  237 |             storage_heap& operator=(const storage_heap& other)
  cargo:warning=      |                           ^~~~~~~~
  cargo:warning=/mnt/e/work/gitwork/dlib/dlib/any/storage.h:237:57: note:   no known conversion for argument 1 from ‘std::vector<dlib::rectangle>’ to ‘const dlib::te::storage_heap&’
  cargo:warning=  237 |             storage_heap& operator=(const storage_heap& other)
  cargo:warning=      |                                     ~~~~~~~~~~~~~~~~~~~~^~~~~
  cargo:warning=/mnt/e/work/gitwork/dlib/dlib/any/storage.h:265:27: note: candidate: ‘dlib::te::storage_heap& dlib::te::storage_heap::operator=(dlib::te::storage_heap&&)’
  cargo:warning=  265 |             storage_heap& operator=(storage_heap&& other) noexcept
  cargo:warning=      |                           ^~~~~~~~
  cargo:warning=/mnt/e/work/gitwork/dlib/dlib/any/storage.h:265:52: note:   no known conversion for argument 1 from ‘std::vector<dlib::rectangle>’ to ‘dlib::te::storage_heap&&’
  cargo:warning=  265 |             storage_heap& operator=(storage_heap&& other) noexcept
  cargo:warning=      |                                     ~~~~~~~~~~~~~~~^~~~~
  exit status: 1

  --- stderr

  error occurred: ToolExecError: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/mnt/e/work/gitwork/dlib-face-recognition" "-Wall" "-Wextra" "-std=c++11" "-o" "/mnt/e/work/gitwork/dlib-face-recognition/target/debug/build/dlib-face-recognition-ac2c3cd8fc46fdc7/out/f6bb29e82649de1e-cpp_closures.o" "-c" "/mnt/e/work/gitwork/dlib-face-recognition/target/debug/build/dlib-face-recognition-ac2c3cd8fc46fdc7/out/rust_cpp/cpp_closures.cpp" with args "c++" did not execute successfully (status code exit status: 1).

Could you check the latest commit?

Closing by tentatively resolved.


iOS App: Offline folders not working correctly

The folder structure is not synced for Offline Mode.
Steps to reproduce:

go online with the app
mark a folder as "available offline", wait for the initial download to complete
stop the app
turn flight mode on and wlan off
restart the app

now the following behaviour occurs:

the folder is displayed in the section "Available Offline" but
if you click the folder the following screen is empty - no files displayed.

However if you select "all Files" the files are listed (sorted by name but not structured).
We really like the app but this is a little annoying.

@felix-schwarz @michaelstingl can you confirm/investigate whether this is a backend or a client-side bug (and move it to https://github.com/owncloud/ios-app if applicable)?

@pascalwengerter This appears to be a bug in the app.


chore: upgrade yarn to 4.2.1

Summary

Test plan

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (9c57fa2) to head (9d30d20).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #89   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           16        16
  Lines          194       194
  Branches        50        50
=========================================
  Hits           194       194

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Frontier [benchmarking] - 92 node scale-up benchmark

92 nodes, 736 GPUs, 448 batch size, 2 million dataset, 6 hours

Purpose: Benchmark large scale-up.

Submitted job to queue.

Encountered time-out. Attached log.

slurm-1811710.log

Issue appeared to be with all DDP workers not getting the exact same number of batches. This causes some workers to hand while other workers are working on 1 (or more) batches.
Seemed to be fixed with: https://github.com/nasa-nccs-hpda/pytorch-caney/blob/frontier-v0.2.1/pytorch_caney/data/datasets/mim_modis_22m_dataset.py#L83
If encountering the same problem with higher node jobs, add number to repeat function. It will cause the dataset to repeat N times.


x/website : add featured international books

What version of Go are you using (go version)?
(irrelevant)
Does this issue reproduce with the latest release?
(irrelevant)
What operating system and processor architecture are you using (go env)?
(irrelevant)
What did you do?

Browse the discovery site, looking for recommended books.
Find the "Featured books" on the home page. Click the link to https://go.dev/learn/#featured-books
Ask about it on go-nuts.
@ianlancetaylor suggested I open an issue here and send a pull request.

What did you expect to see?

A short list of english books (like the one I found)
A short list of one book per major language

What did you see instead?

Five books, all of them in english
No book in other languages, not even a link to https://github.com/golang/go/wiki/Books

CC @stevetraut


Mobile, dark mode white flash

Environment
Docker
Version
No response
Describe the problem
On mobile, I have dark mode enabled. When opening/refreshing the page it loads light mode and quickly changes to dark mode which causes a white flash. The flash makes it uncomfortable on the eyes.
Logs
Na
Context
https://github.com/ajnart/homarr/assets/7740954/62164ac1-6ddd-4fc8-a956-9f75e8419981
Please tick the boxes

[X] I confirm that I attached the proper logs
[X] I've read the docs
[X] I've checked for duplicate issues
[X] I've tried to debug myself

Hi, thanks for your issue.
We sadly cannot improve this behaviour, since cookies and the theme are loaded on the client.
We suggest, that you use the default theme variable:
https://homarr.dev/blog/2023/04/16/v012-more-widgets#environment-variable-for-default-theme

That worked great, thank you!

Hi, thanks for your issue.
We sadly cannot improve this behaviour, since cookies and the theme are loaded on the client.
We suggest, that you use the default theme variable:
https://homarr.dev/blog/2023/04/16/v012-more-widgets#environment-variable-for-default-theme

Cookies are sent in as header before the page loads. We're able to render the page black directly because we use SSR. not sure why it doesn't work but it shouldn't happen


[New game]: line of fire

🎮 Game Request
Can you save the area by attacking the enemies?
Point down the features
Game points will be awarded if any other player seizes control of area
Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @S-ishita !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @S-ishita ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


Can not open node template modal

rancher/rancher:master 12/10
Steps:

Go to node templates list
Try to create a node template

Results:
Can not open the add node template view

Version - 2.2 master
Verified fixed - Once again was not able to reproduce this.


Completion for payload

This is to complete inside the json payload

Contextual completion based on the current JSON path
Are there existing specs?
Based on the value types, when completing the key, we can also complete the types for values, e.g. empty {} or [].
Parediting for quotes?

Part of this issue is completed. The more challenging part is tracked by #63.


Is reachability works for checking private VPN connection?

i need to connect to VPN, in order to access my ios application. Is there a way reachability works . Also need to alert user on this..  Please help me team..
Thanks in advance..

You can check isTransientConnectionFlagSet

You can use the following code:
   private var isConnectedToVpn: Bool {
        if let settings = CFNetworkCopySystemProxySettings()?.takeRetainedValue() as? Dictionary<String, Any>,
            let scopes = settings["__SCOPED__"] as? [String:Any] {
            for (key, _) in scopes {
                    if key.contains("tap") || key.contains("tun") || key.contains("ppp") || key.contains("IPsec") || key.contains("ipsec0") {
                    return true
                }
            }
        }
        return false
    }

You can use the following code:

Thanks for a working answer. Is there a licensing issue in using this code snippet ?
Thanks


Bump Parquet and Expose Configuration Variables

See discussion at #328
Exposes row group size, page size, dictionary encoding, and validation as configurable options to pass to the parquet writer. Bumps Parquet to 1.9.0 which implements more memory efficient dictionary encoding, among other enhancements.

Looks good overall.  Can you add the 4 new parameters into secor.common.properties with some docs.

Alright, I put in some comments and made the default values in the config the default values from ParquetWriter implementation; not sure what your convention is for params that have defaults defined in the code. Also I squashed the commits for cleanliness

Thanks for the investigation and fix, this is a great contribution.


Add non ascii validations

This is will validate detection file to verify they do not include any non-ascii chars that will not display correctly

This is an important validation, as we saw stray chars added to files.
Can you apply the validation to all other types too?
Specifically: Expansion queries, Insights, Activities, Hunting, Parsers

This is an important validation, as we saw stray chars added to files.
Can you apply the validation to all other types too?
Specifically: Expansion queries, Insights, Activities, Hunting, Parsers

added more folders validation

added more folders validation


What's the best way to document a dynamic set of default values for an options-style parameter?

Search terms
default value options object
Question
The main entrypoint for my library is a function that takes one big options argument with mostly optional properties. I keep the defaults in an object like so:
export const defaultOptions = {
  // excludes required options
  a: 1,
  b: 2,
  /* ... */
}

and then I do this to fill in the options:
export const generate = (options: Options) => {
  const {
    requiredProperty,
    a = defaultOptions.a,
    b = defaultOptions.b,
    /* ... */
  } = options;

I expected these values to show up in the documentation for defaultOptions, but here's what I get:

Is there any way for me to get these values to show up nicely?
Thanks!

TypeDoc tries to display initializer values which are "simple" this is because some initializers (particularly stuff where people use React.FC) result in awful documentation if they are included.
If this doesn't apply for your project, you can fairly easily overwrite the default value with a plugin:
$ typedoc src/index.ts --plugin ./path/to/default-objects.js

// @ts-check
const td = require("typedoc");

exports.load = function ({ application }) {
    /** @type {Map<td.DeclarationReflection, string>} */
    const defaultValues = new Map();

    const printer = td.TypeScript.createPrinter({ removeComments: true, omitTrailingSemicolon: true });

    application.converter.on(
        td.Converter.EVENT_CREATE_DECLARATION,
        /**
         *
         * @param {td.Context} context
         * @param {td.DeclarationReflection} reflection
         */
        (context, reflection) => {
            const symbol = context.project.getSymbolFromReflection(reflection);
            if (!symbol) return;

            const decl = symbol.getDeclarations()?.find(td.TypeScript.isVariableDeclaration);
            if (!decl || !decl.initializer) return;

            if (decl.initializer.kind === td.TypeScript.SyntaxKind.ObjectLiteralExpression) {
                // Unfortunately can't just set defaultValue right here, this happens before TD sets it.
                defaultValues.set(
                    reflection,
                    printer.printNode(td.TypeScript.EmitHint.Expression, decl.initializer, decl.getSourceFile())
                );
            }
        }
    );

    application.converter.on(td.Converter.EVENT_RESOLVE_BEGIN, () => {
        for (const [refl, init] of defaultValues) {
            refl.defaultValue = init;
        }
        defaultValues.clear();
    });
};

Awesome, thank you @Gerrit0 for the pointer! I think this will work to get the dynamic value for those defaults as defined by the code.
Quick follow-up question: let's say I want to format Markdown instead of defaultValue. How would I do that? Like, I'm not keen to stuff a bunch of values into an unstructured object, since that won't display very nicely. Instead, I'd like to read those defaults inside a plugin and then craft the doc comment for the function to format those defaults automatically.
 Adding a single { kind: "text", text: "<generated content>" } to reflection.comment.summary is probably the way to go.


Use ruff check in Makefile

Summary
ruff /path/to/file.py works but is deprecated, and we now recommend ruff check /path/to/file.py (to match ruff format /path/to/file.py).

Thank you @charliermarsh


refactor(*): cleanup repo 🧹

gee well this is awkward i renamed the branch and it closed the PR upstream too
makes sense now but yeah

Summary

Shorten leading comments. No more detailed instructions, just a short description + link to website page + author.
Move custom command code to src/.
Change custom command filenames to snake_case, to be consistent with Go.
Don't duplicate code on the website. Instead, include the content from the file using a plugin.
Rewrite pages on the website to make use of Docusaurus features like line highlighting, admonitions, and so on. Also use a consistent style across all pages.
Probably some more things I've forgotten

Progress

[x] Move custom command to src/
[x] Change custom command filenames to snake_case
[x] Replace  placeholders in leading comments with actual links
[x] Rewrite website pages

[x] afk/
[x] birthday/
[x] code-snippets/
[x] fun/
[x] birthday/
[x] info/
[x] leveling/
[x] moderation/
[x] suggestion/
[x] utilities/
[x] tags/

[x] Shorten leading comments

[x] afk/
[x] birthday/
[x] code-snippets/
[x] fun/
[x] birthday/
[x] info/
[x] leveling/
[x] moderation/
[x] suggestion/
[x] utilities/
[x] tags/

Closes #222
Closes #194
Closes #38 (fix for this was included in this and I'm too lazy to move it out)

:D 2 sections to go and then website changes will be done

.mdx is an extension of Markdown that supports importing JavaScript components.
Certain commands use Wolf's permission checking system which supports some permissions, duplicating that every time was tiresome so I just wrote a component for it.

re: newlines
just kinda bothers me and my system doesn't like it : /
I can run it through my system and save all files, that will insert trailing newlines. also GitHub kinda complains about missing trailing newline.
re: Tags
So basically JS poopi?
re: mdx
the more i know :ye:

newlines: OK, will do.
tags: yes, JS poopi.
mdx: 👍

since y'all spamming the logs, I'd like to contribute with this message.

since y'all spamming the logs, I'd like to contribute with this message.

perhaps we should make a CoC that says "no unnecessary comments" :ye:

This is almost finished 🎉 Still have to update the following:

README.md (shorten it, point people to the website)
Contributing guide (needs updates)
Introduction & guide to adding CCs on the website

...but otherwise we're done here!

This is now done and ready to review.

Still got one thing to do before we :shipit:, gonna see if I can get the website pages to reorder automatically using some JS magic

Think this is ready to go, last commit just changed around some metadata (no content changed, despite the giant diff) : )


Create _TZE204_p3lqqy2r.yaml and  normal-thermostat-v6.yaml

Hello.  I`ve added new device , Touch thermostat 16A 2.0 and an profile for it witch includes Floor temp at the top and energy meter and power meter at group 3.  Room temp is at group 2 ( For users using floor temp)  Is this possible to implement ?
Thanks in advanced.

Thanks for your help.
I am not accepting profiles anymore, only models.
The ST platform limits each driver to 100 profiles.

Thanks for reviewing this .  That is sad.  Then I see no use for these files.
Cheers

Im new with this.  Is it possible for me to use the driver locally for my own purposes ?  Need to set up ST CLI ?

Im new with this. Is it possible for me to use the driver locally for my own purposes ? Need to set up ST CLI ?

Yes, create your own channel, publish the driver to your channel and install it.
You won't need to create an invitation link to use locally.
https://developer.smartthings.com/docs/devices/hub-connected/driver-channels
You may use the github workflow to publish the driver for you but it will require you to define 2 variables:

SMARTTHINGS_CHANNEL (public)
SMARTTHINGS_TOKEN (secret)

Hello Wesley .  I have done the setup for my private channel, enrolled drivers and modified it with floor temp and energy as the change from Thermostat v3 profile .  Only issue i have is that the energy meter is showing as first desimal , 75W instead of 750 . Rate in the DP is 0 , so no rate for this DP . Is it possible to set rate as an negative value ?   Thanks for providing me with guidance and learning LUA and the CLI commands . Fun enviroment.  Best regards Anders

Got it .  At no rate it reported 75W .  Had to set it to rate 100 .  Seems right .. ish

Hello again, Wesley .  Sorry if I bother you with this .  One question.  When I try to add an command in command.lua,  Swing temperature(copied form set temperaure , just edited the name) , I get error code 400,  wrong device profile.  The name of the command is in the device Yaml, device lua file and the profile.  I modify the files and add them with CLI .  Is there something I`m missing ?  Thanks in advanced.

I didn't understand.
When exactly the error is reported ?
Could you share the code ?

@w35l3y  Hello.  As I wrote in the forum,  I've seen a code to reset the energy meter. It's at basic 0x00 with command 0 and Payload {} . Could you provide me some guidance to modify the current code? Currently it's tuya.types Int32 (0).

How do you expect to send this command ?
I haven't tested it with a direct command without an attribute, but take momentaryStd or switchStd as examples.
You must know the cluster name (which I think it is "Basic" and you should inform it in "cluster") and the command name (which you should inform it in "custom_command")

Thanks! Yes. 😬 I'll try that.  Not so sure about the payload tough.  At Ha forum, the guy specified it to be {} nothing.  One guy placed "0" and the unit did not respond afterwards

Failed .  Here`s the log:
2024-12-29T23:48:18.472473825+01:00 INFO Personal Tuya Devices - main  <ZigbeeDevice: 8183b36b-c89e-47c8-8c0a-e46008515f2c [0x8A72] (Thermostat - namron)> received command: {"args":{},"capability":"energyMeter","command":"resetEnergyMeter","component":"main","positional_args":{}}
2024-12-29T23:48:18.475879221+01:00 TRACE Personal Tuya Devices - main  Found CapabilityCommandDispatcher handler in personal-tuya-devices -> GenericEF00 -> Model
2024-12-29T23:48:18.477415179+01:00 ERROR Personal Tuya Devices - main  Thermostat - namron thread encountered error: [string "st/dispatcher.lua"]:267: Error encountered while processing event for <ZigbeeDevice: 8183b36b-c89e-47c8-8c0a-e46008515f2c [0x8A72] (Thermostat - namron)>:
arg1: {args={}, capability="energyMeter", command="resetEnergyMeter", component="main", positional_args={}}

Probably code line 403 in cluster_base is the recipe?

Probably code line 403 in cluster_base is the recipe?

I can't say for sure. I don't have access to your code.

My code is similar to yours. I think a specific handler like mcu.synctime needs to be written because it seems like the command delivered is default handled in ef00 always. It's not possible to add momentarystd or switchstd without DP in the profile or model files

If the datapoint doesn't matter to you, then try informing a non-existent value, like -999

Thanks .  I tried but then it required an new device :
2024-12-30T22:41:15.751104313+01:00 INFO Personal Tuya Devices - main  Added device     TS0001  _TZ3210_dse8ogfy_wip    9
2024-12-30T22:41:15.751825876+01:00 WARN Personal Tuya Devices - main  Encountered error calling can_handle for dispatcher defaulting to false: [string "tuyaEF00_model_defaults.lua"]:167: [string "models/init.lua"]:2: [string "utils.lua"]:270: attempt to call a nil value (field '?')
2024-12-30T22:41:15.752395167+01:00 DEBUG Personal Tuya Devices - main  Thermostat - namron device thread event handled
2024-12-30T22:41:21.838884203+01:00 TRACE Personal Tuya Devices - main  Received event with handler capability
2024-12-30T22:41:21.851459682+01:00 INFO Personal Tuya Devices - main  <ZigbeeDevice:] (Thermostat - namron)> received command: {"args":{},"capability":"momentary","command":"push","component":"main02","positional_args":{}}
2024-12-30T22:41:21.852466620+01:00 INFO Personal Tuya Devices - main  Added device     TS0001  _TZ3210_dse8ogfy_wip    9
2024-12-30T22:41:21.853279599+01:00 WARN Personal Tuya Devices - main  Encountered error calling can_handle for dispatcher defaulting to false: [string "tuyaEF00_model_defaults.lua"]:167: [string "models/init.lua"]:2: [string "utils.lua"]:270: attempt to call a nil value (field '?')
2024-12-30T22:41:21.853824099+01:00 INFO Personal Tuya Devices - main  Added device     TS0001  _TZ3210_dse8ogfy_wip    9 "
im to Noob at this  :P  Seems like whatever I do , it tries to find the command at "generiEF00"  as the Model capability is there.  Ive added Genereric_body.GenericBody in the command , but the capability has to be "energyMeter" and its listed in EF00 .  Thanks anyways for looking at this ,
2024-12-30T22:41:21.854273161+01:00 WARN Personal Tuya Devices - main  Encountered error calling can_handle for dispatcher defaulting to false: [string "tuyaEF00_model_defaults.lua"]:167: [string "models/init.lua"]:2: [string "utils.lua"]:270: attempt to call a nil value (field '?')
2024-12-30T22:41:21.856149703+01:00 TRACE Personal Tuya Devices - main  Found CapabilityCommandDispatcher handler in personal-tuya-devices -> GenericEF00
2024-12-30T22:41:21.857398161+01:00 DEBUG Personal Tuya Devices - main  Thermostat - namron device thread event handled


WIP(do not merge): Api service

Will need to merge #1359 first.
TODO:

[ ] replace journalctl with go-system journal library
[x] event stream interfaces.
[ ] add hooks to send events during the lifecycle of the pod/app.
[x] non-root execution of the api service subcommand Should be resolved by #1452
[ ] functional tests

@jonboulle So now the only unclear area about this is how to inject those event hooks into the pod's lifecycle.
AFAICS we need to inject some binaries to the pod, e.g. send_event. Which is executable:
./send_event [event_type] [id] [name] [data]

And this binary will connect the unix socket /run/rkt/api-service.sock so it can talk to the api-service using grpc.
Or we can just bring something like curl to the pod and send REST-ful requests.

@iaguis @alban New thoughts welcome :)

Closing in favour of #1508


TypeError: Cannot read property 'createContext' of undefined. All files in index.ts compiling when only one is referenced.

Issue:
I am getting an error that references a component unrelated to my test. This appears to be happening because components are exported from an index.ts file - when the component I am testing references a different component in this index.ts file, all components exported from the index.ts the file are compiled, even ones not used in the component being tested.
In this case, the error is happening because I am using React Context in a component exported from the index.ts file. In the repo below, when Component3 is not exported from the index.ts file, component1.test.js works as expected. When Component3 is included in the index.ts file, the test fails with the following error. (Component3 isn't used anywhere in Component1).
This is a bit of a mouthful but the repo should make it clear - comment out line 3 in src/index.ts and jest works as expected. Uncomment and it fails.
Test suite failed to run
TypeError: Cannot read property 'createContext' of undefined

Expected behavior:
The unreferenced component in index.ts is not compiled and does not throw an error in my test.
I wasn't able to get a log file printed out, I'm happy to add it with a little direction on how to do so.
Minimal repo:
https://github.com/bscaspar/ts-jest-repro

did changing import path solve your original issue ? if yes, I'd close this as not ts-jest issue.

I think your issue is due to https://github.com/kulshekhar/ts-jest/issues/632
I managed to resolve this issue by updatingtsconfig.json compilerOptions to use esModuleInterop: true.

@ahnpnl changing the path to import the entire 'react' module solved the original issue. And @dannymidnight if I leave the path the same, (import React from 'react'), updating the tsconfig.json` as you recommended solves the issue as well. Thanks for the help!

Shall I close this issue ?

For anyone else landing here because they searched for a react-query issue related to Cannot read property 'createContext' of undefined the solution for me was updating moduleDirectories entry from  moduleDirectories: ["node_modules", "."] to moduleDirectories: ["node_modules", "<rootDir>"], in jest.config.js file. I found this solution from this PR.


Infinite scrollbar toggle

Environment
Docker
Version
0.11.1
Describe the problem
Refreshing the page or clicking "Exit and Save" after being in edit mode, the scrollbar infinitely toggles between being and not being there. It's as though it can't make its mind up. The only working solution that I've found is to either click the "Docker" button, the "Settings" button, or the "About" button. However, this only works temporarily.
Additional info
https://user-images.githubusercontent.com/41450647/213281669-04dfc8aa-ddd3-4ad9-8c43-0f029fbf9d26.mp4
Please tick the boxes

[X] You've read the docs
[X] You've checked for duplicate issues
[X] You've tried to debug yourself

Holy bananas!
What is even going on here??
Do you maybe have a widget that is changing size somehow, because some data is changing (eg. torrent, usenet, ...)?

I have a similar issue. My guess is that it is related to window size. I have two monitors, one 1080p, and other 4K.
If I go maximized on the 1080p it is fine. But maximized in the 4K monitor causes  the scrollbar to go nuts.
I can see that the HTML element have it's style updated between these two values at a rate similar to the video above

Unfortunately, both of my monitors are 1080p so size isn't the issue. However, looking at inspect element when its docked to a new window, the gridstack-widget-width is constantly changing between 134.75 and 136.167. Below is a much longer video than shown above to show the following:
[The video starts after opening settings]

The page is refreshed [The issue starts to occur]
Inspect element is opened
Clicks the "Settings" button [The issue stops occurring]
Enter edit mode, then "Exit and Save" [The issue starts to occur]
Clicks the "About" button [The issue stops occurring]

https://user-images.githubusercontent.com/41450647/213593217-8a24e9db-cbab-407d-ad6e-80066c0c3cdd.mp4
Notes:
Opening inspect element docked inside the same window causes the issue to stop, just like settings and about and having inspect element open before going to homarr causes the issue to not happen.
Doing anything that causes the issue to happen when making the browser size smaller (to replicate smaller screen sizes), the issue does not occur.
Therefore, this issue is only occurring on the large screen size.
Medium screen size:
https://user-images.githubusercontent.com/41450647/213594031-5993c68a-4e46-416d-ac6f-25d686f92fc0.mp4
Small screen size:
https://user-images.githubusercontent.com/41450647/213594177-655e4aa9-f0fb-49c7-a133-68f9b8ec22f9.mp4
The medium and small screen size tests show the page being refreshed and exit and saving out of edit mode.

This issue has been fixed (for myself) in Homarr 0.11.3+


🪲[BUG] USB Device not being recognised by host

Describe the bug you encountered:
The examples/usb_device example does not present as a USB device to my MacOS host.
What did you expect to happen instead?
I expected it to be enumerated, show up as cafe:0000 in lsusb, and cause a mouse wiggle every 0.5s.
What actually happened in your case?
No device is enumerated. With my logic analyser I can see a regular SOF frames every 1 millisecond, and a reset every second - suggesting the circuit is physically valid, and the firmware is running on device.

https://github.com/sekigon-gonnoc/Pico-PIO-USB/blob/main/src/pio_usb_device.c#L368
The reset suggests to me the Pico does not have an accurate reading of the GPIO pins as it is reading the pair as low, but oddly is able to drive them to reset the connection.
Additional information
I have the Pico wired up as:
GPIO 0 -> 1.5 kΩ pull up to 3.3v -> D+
GPIO 1 -> D-
Pico GND -> USB GND
I have tried this with another Pico just to sanity check, as well as confirmed the version of Pico-SDK is contemporary with the examples commit date.
Any guidance you can provide to debug further would be appreciated.

Unfortunately, I'm observing the same problem: The Pico-PIO-USB USB device is not recognised by macOS hosts. Communication already fails while querying the device descriptor.
Did you find any solution to this issue?


Minimal code completion for Razor files in WSL

Issue Description
I'm currently trying to make the C# extension give accurate auto completion for a .cshtml file, but for some reasons, I have minimal auto completion for the default MVC template of .NET Core
Steps to Reproduce

Install WSL 2.0
Install .NET Core from this link
Setup the basic MVC example from this link
Try to get some auto completion

Expected Behavior
Having auto completions like this

Actual Behavior
The only completions I have and absolutely no HTML completion whatsoever.

Environment information
VSCode version: 1.39.0-insider
C# Extension: 1.21.2
Mono Information
        OmniSharp using built-in mono
Dotnet Information
.NET Core SDK (reflecting any global.json):
 Version:   2.2.109
 Commit:    586f23c400
Runtime Environment:
OS Name:     ubuntu
OS Version:  18.04
OS Platform: Linux
RID:         ubuntu.18.04-x64
Base Path:   /usr/share/dotnet/sdk/2.2.109/
Host (useful for support):
Version: 2.2.7
Commit:  b1e29ae826
.NET Core SDKs installed:
2.2.109 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.7 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.7 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.7 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

cpptools
ms-vscode
0.25.1

csharp
ms-vscode
1.21.2

dart-code
Dart-Code
3.4.1

easy-cpp-projects
ACharLuk
1.7.7

flutter
Dart-Code
3.4.1

gitlens
eamodio
9.9.3

laravel-blade
onecentlin
1.20.0

path-intellisense
christian-kohler
1.4.2

prisma
Prisma
0.0.15

project-manager
alefragnani
10.7.0

python
ms-python
2019.9.34911

rust
rust-lang
0.6.3

vscode-graphql
Prisma
0.2.1

vscode-intelephense-client
bmewburn
1.2.3

vscode-jest
Orta
3.0.2

vscode-typescript-tslint-plugin
ms-vscode
1.2.2

vscode-yaml
redhat
0.5.2

vscodeintellicode
VisualStudioExptTeam
1.1.9

Additional information
Razor Server Logs
pastebin

@Drakota thanks for the detailed report. Are you using remote development to dev in WSL or are you remoting? Also, would you mind sharing the Omnisharp Logs as well?

Hi! Thanks for taking the time to review this issue.
I'm not quite sure about what you're asking, as I understand it is am I using the remote development extension to open my project inside WSL.

Here's the Omnisharp logs

I'm not quite sure about what you're asking, as I understand it is am I using the remote development extension to open my project inside WSL. I also have the C# extension installed in WSL.

Ahhh I see. We've yet to implement remote development for Razor in VSCode sadly. For now i'm going to close this issue as a duplicate of this (implement remote development).


Update database.json

The beginnings of a utils library for features that do not currently exist in the std library.

Thanks for the patch, but it must be green to be considered. Due to the high volume, I'm not reviewing red PRs, just closing to clear out the queue. I apologize if I haven't addressed something. Please open a new PR.

I guess run npm run format to fix database.json format then try again to fix the CI


Map 3: assembled atlas page

What episode of the lesson is 'publication quality images'? That's where this map page gets produced. This page has on it maps 4, 5, 6, and 7.

Is the bikemaps vector map one of them? I cant remember the context of what we were doing with it but Jose's output looks nice


temporarily disable incremental build for publishing

Title
Update publishing configuration to temporarily disable incremental build.
Summary
This is a workaround for publishing failure due to PathTooLongException error.
Suggested Reviewers
@ansyral @fenxu @chenkennt

@herohua which path is causing that exception, do you know?

@mairaw I am not sure, but this should be a bug with OPS. This PR is to work around the build failure by temporarily disabling incremental build.


load-balance-algorithm-class-name is not working

I used 4.0.0-RC1,
The document recommend load-balance-algorithm-class-name attribute ， I want to use this attribute but it dos not work .
this attribute is very important to me,
thank you
the doc is ：https://shardingsphere.apache.org/document/current/cn/manual/sharding-jdbc/configuration/config-spring-boot/

Hi @yangfqCode, can you provide your full configuration file?

spring:
shardingsphere:
datasource:
names: master,slave
slave:
password: cxm_db_test_123456
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://<IP_ADDRESS>:3306/cxm_business_stat?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=Asia/Shanghai
username: root
master:
password: cxm_db_test_123456
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://<IP_ADDRESS>:3306/cxm_service_data_base?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=Asia/Shanghai
username: root
masterslave:
load-balance-algorithm-class-name: com.cxm.LoadBalanceAlgorithm
load-balance-algorithm-type: RANDOM1
slave-data-source-names: slave
name: ms
master-data-source-name: master
props:
sql:
show: true

Has com.cxm.LoadBalanceAlgorithm been added to SPI?
If you use self-developed load balance algorithm, the algorithm should be added to SPI.

how can I add com.cxm.LoadBalanceAlgorithm to SPI？
thank you !!

I suggest you search it in google or Baidu.
It's a java feature, official document: https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html


Use a Mixin Under Object Oriented Programming FCC Beta

Challenge use-a-mixin-to-add-common-behavior-between-unrelated-objects has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
The condition to solve the challenge requires the mixin to be named "Mixing", but it was said that the name should be "Mixin". Just a typo in the assert probably.
let bird = {
name: "Donald",
numLegs: 2
};
let boat = {
name: "Warrior",
type: "race-boat"
};
// Add your code below this line
let glideMixing = function(obj){
obj.glide = function(){
return"I'm soaring!";
};
};
glideMixing(bird);
glideMixing(boat);

It works with glideMixin as well. The issue here is that the first test is not working correctly. It needs to be updated to check that a glideMixin function is defined. As it is, it passes without defining the function.

I see that now, thanks for the correction 👍

I'll take a look at this.

This comment was left in the Contributor chat room, but not in this issue: the problem is not with the test (the first test does check that a function named glideMixin exists) but that if you declared a glideMixin in a previous test run and then change the name or something different that should not pass the tests will still pass. It appears variables from old test runs are being leftover and influencing current test runs.

@QuincyLarson this issue appears to be fixed.


Jest in monorepos

https://github.com/nvim-neotest/neotest-jest/commit/0c0dad7799e1a90fc17363241696cee0bda60c45 broken jest detection in monorepos. We have a monorepo but not every package has jest in its package json. It is however installed in the root and so neotest-jest was working just fine before this commit.
Can this commit be reverted?

I am experiencing a similar issue because we use create-react-app. Our package.json doesn't contain the jest dependency directly but we use it indirectly through the dependency on react-scripts. Running npm install --save-dev jest does fix it, but doesn't seem ideal.

@HugoArts , I have the same issue. I have created this PR to fix that https://github.com/nvim-neotest/neotest-jest/pull/63

I've proposed a wider fix for this issue with https://github.com/nvim-neotest/neotest-jest/pull/64

@entropitor #64 has been merge and the issue is now fixed. Can you confirm it's OK on your project and close the issue if it's all fine?

I guess it is better to find nearest package.json via lspconfig
          require "neotest-jest" {
            jestCommand = "npm test --",
            jestConfigFile = "custom.jest.config.ts",
            env = { CI = true },
            cwd = function(path)
              local root_path = require("lspconfig").util.root_pattern "package.json"(path)
              return root_path or vim.fn.getcwd()
            end,
          },


Internet Connection Required?

Hi, I have encountered the following error at tick 50, while Calculating stats for the first time. I used the following command to start traninig "python train.py --outdir=./training-runs/ --cfg='fastgan' --data=./data/pokemon256.zip --gpus=4 --batch=64 --mirror=1 --snap=50 --batch-gpu=8 --kimg=1000".
I have used the script on Colab and run it on my environment, there is no problem.  There is also no process of "calculating stats". I wonder if internet connection is required while calculating stats.
Calculating the stats for this dataset the first time

Saving them to ./dnnlib/gan-metrics/pokemon256-inception-2015-12-05-7d1ceb56ecb53f9e4c400facb8342441.pkl
Traceback (most recent call last):
  File "/Home/pg/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/Home/pg/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection
    raise err
  File "/Home/pg/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Home/pg/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/Home/pg/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/Home/pg/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
    conn.connect()
  File "/Home/pg/lib/python3.9/site-packages/urllib3/connection.py", line 358, in connect
    conn = self._new_conn()
  File "/Home/pg/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x2aab864b3c10>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Home/pg/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/Home/pg/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/Home/pg/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.ngc.nvidia.com', port=443): Max retries exceeded with url: /v2/models/nvidia/research/stylegan3/versions/1/files/metrics/inception-2015-12-05.pkl (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x2aab864b3c10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Home/projected_gan/train.py", line 272, in <module>
    main() # pylint: disable=no-value-for-parameter
  File "/Home/pg/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Home/pg/lib/python3.9/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Home/pg/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Home/pg/lib/python3.9/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Home/projected_gan/train.py", line 258, in main
    launch_training(c=c, desc=desc, outdir=opts.outdir, dry_run=opts.dry_run)
  File "/Home/projected_gan/train.py", line 101, in launch_training
    subprocess_fn(rank=0, c=c, temp_dir=temp_dir)
  File "/Home/projected_gan/train.py", line 47, in subprocess_fn
    training_loop.training_loop(rank=rank, **c)
  File "/Home/projected_gan/training/training_loop.py", line 418, in training_loop
    result_dict = metric_main.calc_metric(metric=metric, G=snapshot_data['G_ema'], run_dir=run_dir, cur_nimg=cur_nimg,
  File "/Home/projected_gan/metrics/metric_main.py", line 43, in calc_metric
    results = _metric_dict[metric](opts)
  File "/Home/projected_gan/metrics/metric_main.py", line 83, in fid50k_full
    fid = frechet_inception_distance.compute_fid(opts, max_real=None, num_gen=50000)
  File "/Home/projected_gan/metrics/frechet_inception_distance.py", line 25, in compute_fid
    mu_real, sigma_real = metric_utils.compute_feature_stats_for_dataset(
  File "/Home/projected_gan/metrics/metric_utils.py", line 239, in compute_feature_stats_for_dataset
    detector = get_feature_detector(url=detector_url, device=opts.device, num_gpus=opts.num_gpus, rank=opts.rank, verbose=progress.verbose)
  File "/Home/projected_gan/metrics/metric_utils.py", line 53, in get_feature_detector
    with dnnlib.util.open_url(url, verbose=(verbose and is_leader)) as f:
  File "/Home/projected_gan/dnnlib/util.py", line 446, in open_url
    with session.get(url) as res:
  File "/Home/pg/lib/python3.9/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/Home/pg/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/Home/pg/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/Home/pg/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.ngc.nvidia.com', port=443): Max retries exceeded with url: /v2/models/nvidia/research/stylegan3/versions/1/files/metrics/inception-2015-12-05.pkl (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x2aab864b3c10>: Failed to establish a new connection: [Errno 110] Connection timed out'))

The error happens here:
https://github.com/autonomousvision/projected_gan/blob/fb3143bdf586c5243ceddd3dbaad74f9b9ccf446/metrics/metric_utils.py#L239

Thank you for reply. I will try to disable it first by setting network_snapshot_ticks to None.
For editing the code, I also debugged today. The actual place is here https://github.com/autonomousvision/projected_gan/blob/fb3143bdf586c5243ceddd3dbaad74f9b9ccf446/metrics/metric_utils.py#L53, which is not as easy to fix as I expected.

If you don't want to download models before running the code, then you could just disable computation of metrics.
https://github.com/autonomousvision/projected_gan/blob/8480bdd9150a44c31874ffa69835e10a4f6009c4/train.py#L150

Thank you.


need help mib2

hello
i was updating my mib2 vw to MST2_EU_VW_P0879D_MU0879 ,
after install finsh after first boot its freez on r logo , never turn off or conituo ,
i was using MST2_Activator_Made_By_Congo_and_Duke_v3.0_with_Autobackup_by_lprot.zip    and i have backup ,,,
anyone can help ???
i was doing like in the link below
https://www.drive2.ru/l/644038112409830118/

by theway my firemware was 0635d

This delphi unit has nothing to do with the toolbox.

thanks
its coming back to life .
what's better and newer and more futuer and skins fiermware for delphi MST2_EU_VW_P0635D ??
what people prefer ?


sort:score doesn't work on some sites

Sorting works on the websites but does nothing in Grabber. Particularly rule34.us and rule34.paheal.net
Latest version 7.11.2

Just pushed a fix, thanks for the heads-up!
Note that rule34.us is based on Gelbooru and as such, uses sort:score, while rule34.paheal.net is based on Shimmie which uses order:score instead.


Support Globalnet deployment in ACM/OCM

Epic Description
Currently, ACM/OCM only supports deploying Vanilla Submariner, and it's not possible to deploy Globalnet.
This EPIC is to track the individual tasks associated to implement Globalnet in ACM.
Along with this, we also want to address the remaining bits from the Globalnet 2.0 feature, primarily the metrics support and removing the dependency with the kube-proxy driver.
Acceptance Criteria
One should be able to deploy Globalnet with ACM with all the e2e tests passing.
Definition of Done (Checklist)

[ ] Code complete
[ ] Relevant metrics added
[ ] The acceptance criteria met
[ ] Unit/e2e test added & pass
[ ] CI jobs pass
[ ] Deployed using cloud-prepare+subctl
[ ] Deployed using ACM/OCM addon
[ ] Deploy using Helm
[ ] Deployed on supported platforms (for e.g kind, OCP on AWS, OCP on GCP)
[ ] Run subctl verify, diagnose and gather
[ ] Uninstall
[ ] Troubleshooting (gather/diagnose) added
[ ] Documentation added
[ ] Release notes added

Work Items
The following are the individual work items for this feature.

[x] Identify the metrics that needs to be supported in the new Globalnet 2.0 implementation.
[x] Implement the required metrics Open issue - submariner-io/submariner-operator#1936
[x] Analyse the possible solutions to remove the dependency with kubeproxy and finalize on one of them.
[x] Avoid dependency on the IPtable chains programmed by IPtables kube-proxy driver
[x] Addon changes to support globalnet configuration while deploying Broker.
[x] GUI changes in ACM console while creating a clusterset/broker cluster.
[x] Addon changes to support globalnet configuration while deploying managed clusters.
[x] Enhance subctl gather to collect logs for the new changes.
[x] Enhance subctl diagnose to validate issues with Globalnet deployment
[x] Unit/e2e tests
[x] Document requirement of broker object in ACM docs
[ ] Identify and document steps for manual installation (non GUI) of globalnet using ACM/OCM.
[x] Document globalnet support in ACM docs.

@sridhargaddam can we close this?
If not, please move to the Backlog board

Pretty much all the activities planned as part of this EPIC are completed. We have PRs/issues to track the documentation work, so we can close this.


Newbe Question - Restore data from localStore to Vuex on page reload in Nuxt.js

My Setup details:

nuxt 2.15.7:
vuex-persistedstate 4.1.0:
node 16.13.1:
yarn 1.22.15:

the plugin code copied from the discussions here.
plugins/persistedstate.js
import createPersistedState from 'vuex-persistedstate'

export default ({ store, isHMR }) => {
  if (isHMR) return
  if (process.browser) {
    createPersistedState({
      key: applocal,
      paths: ['index', 'validation'],
    })(store)
  }
}

I can see the data stored in the localStore with the key name 'applocal'
I am new to programming and nuxt, so do not know how to write back the data from localstore to vuex on page reload. Currently, the page is going blank with vuex being empty.

I have tried the following but has not worked for me.
added following function in store/index.js and tried calling the function from inside a page (pages/index.vue)
But I get "localStore is not defined" error.
store/index.js
export const mutations = {
    initialiseStore(state) {
      // Check if the ID exists
      if (localStorage.getItem('ropapp')) {
        // Replace the state object with the stored item
        this.replaceState(
          Object.assign(state, JSON.parse(localStorage.getItem('ropapp')))
        )
      }
    },
}

pages/index.vue
beforeCreate() {
  console.log('Technician Home: beforeCreate')
  console.log('Store: ', this.$store)
  this.$store.commit('initialiseStore')
}

changed my code to:
plugins/persistedstate.js
import createPersistedState from 'vuex-persistedstate'

export default ({ store }) => {
  createPersistedState({
    key: 'applocal',
    storage: window.localStorage,
    overwrite: true,
  })(store)
}

removed store.index.js initialiseStore() mutation
Now, I am able to see data restored in Vuex when page is reloaded. But I am unable to access it from my pages.


Fix android build

Improve build.gradle to follow templates that allow AndroidStudio to work.
Correctly name package folder name.  Please test in case I've missed something.
Closes https://github.com/RonRadtke/react-native-blob-util/issues/26 and https://github.com/RonRadtke/react-native-blob-util/issues/25

Thanks, I will take a look and test it as soon as I have some time for it. (I hope within this or next week)

Merged to master
New version coming today. Thank you!
(I just had to merge manually)


Modifying the listener port

Is there a way to change the listener port?
Where could I set, or over-ride the default listener ports for the CCDA Validator?
Is there a single file?
Or would it need to be modified in multiple files?

You would update the Tomcat config:
For example: https://mkyong.com/tomcat/how-to-change-tomcat-default-port/
Let me know if this is not what you meant.


SAK-40762 Error trace while rebooting server

In our servers, while they're rebooting, we got several errors on users trying to achieve them. This whould prevent this errors to scale to an Exception.

Yeah, make sense. Im going to update it, thanks :)

Updated

Thanks!

It is odd to catch an NPE rather than just checking for the null where it would trigger the exception.
Also would that ehcache exception now not be avoided by https://github.com/sakaiproject/sakai/commit/3757bc3d3d93456d4deec92c650890dcc1f15e99 ? Maybe test this behaviour on current develop,

I think maybe @smarquard and I have been looking at same issue or at least very very similar. I'm going to test this with his code and then I will comment here.
Please, could anyone put "work in progress" label here? Thanks

Finally (Better late than never) I've tested if this was a duplicate from https://github.com/sakaiproject/sakai/commit/3757bc3d3d93456d4deec92c650890dcc1f15e99 and it is actually so I close this PR.
Thanks @smarquard for your awesome work.


Create Add Leave button on the code Trek page

Describe the task
Consistency is very important for a CodeTrek candidate for his/her growth. This parameter is also an important factor for any candidate evaluation.
So we need functionality to capture the data related to how consistent an intern is. For this, we want to add a leave functionality that can capture the number of days the candidate was on leave. The purpose of this functionality is to manage leave of a candidate but just to capture the actual number of days the candidate was active in CodeTrek
Expected behavior
With this feature, we can track leave records and punctuality to evaluate an intern's commitment and reliability.
In this task, we only need to create an Add Leave button on the code Trek page.
The button should look like this on the Code Trek page.

Hey @Sachinbisht27 @GauravGusain98 guys, Can I take this up?

Hello @alok-panwar @GauravGusain98 @Sachinbisht27 guys, If still no one is assigned to this issue, Can I take this up or any updates from your side

Hi @Sudharshan06-dev,
This tasks is a sub-part of a complete functionality. Right now we have not picked that functionality yet. Therefore, you cannot start this task now.

@GauravGusain98 Okay thanks for the update


James/hardhat plugin

CI has errors on tests and linting.

CI has errors on tests and linting.

Trying to fix them.


No "outdated" indication for review comments in overview page

Would be nice to have some indication that a comment is on an "outdated" hunk, likely indicating that the author has already addressed it

Was about to report this one, it really clutters the PR as an outdated comment typically means it's no longer relevant.

Duplicate of https://github.com/Microsoft/vscode-pull-request-github/issues/89?


Enable creation of types of HTTPS Load Balancers other than classic

This change set introduces load_balancing_scheme with a default value of EXTERNAL to maintain identical module behavior.  This allows the introduction of examples and tests for Envoy-based EXTERNAL_MANAGED and INTERNAL_SELF_MANAGED global load balancers.

Thanks for the PR! 🚀✅ Lint checks have passed.

Just realized I re-implemented https://github.com/terraform-google-modules/terraform-google-lb-http/pull/269 - will watch that and close this out if that is accepted.

fixed by #269


Stable removal of obsolete conditions

I never liked the fix to #328 since there was basically only one chance
to notice that conditions were now obsolete - when the parent was being
changed. This felt weird, and when I started looking at (fittingly)
issue #666, which requires us to allow cycles in the in-memory forest,
it became difficult to see how to make the existing logic work.
This new approach, by contrast, annotates each condition code with the
knowledge of whether it can be caused by an ancestor or descendant
namespace, making it easy to look at the current state of the forest
(and not of any one change) and determine whether the condition should
be removed. This will make future logic changes easier and just seems
cleaner overall.
This also makes a minor improvement to kubectl-hns-describe. It also
removes the AffectedObject from the HNSMissing condition, because it's
not really necessary (it always points to the immediate parent) and
because it made the logic significantly easier.
Finally, I noticed that markExisting() wouldn't always do the right
thing for subnamespaces because it's called before syncParent(), so I
fixed this. I doubt this was causing any problem (I think we always
re-sync a namespace at least once) but we may as well be accurate.
Tested: re-ran hack/test-issue-328.sh (it worked). Played around a bit
by hand and noticed that everything seemed to be working well.

/assign @yiqigao217
/assign @rjbez17

@yiqigao217 FYI I've fixed the test failures if you want to have another look

Nice doc!
/lgtm
/approve
/hold
/assign @rjbez17

I've discovered I want to make a change to this, please do not submit.

/hold cancel
/cc @yiqigao217
/cc @rjbez17
Can you please re-review? The server checks used to be part of this change but I factored them out; otherwise, not too much has changed.

/lgtm
/approve
/hold cancel


Missing from lean 4: non-interactive tactics in begin...end

example : true :=
by tactic.exact (expr.const ``trivial [])

It is possible to directly write an expression of type tactic unit using the tactic framework in the middle of a begin-end block. When doing this you lose the niceties of the interactive tactic parser, but you can open a do block and write arbitrary code, which will then be called on the spot to prove the current goal by by. This is especially helpful for debugging, since in a weird tactic state it helps to have the more low level tools available to inspect what's going on.
Using parentheses or do was a way to force dropping out of interactive tactic mode in lean 3, but parentheses are valid in lean 4 (for grouping a tactic sequence, similar to lean 3's id { tacs } tactic). I think do should work as an introducer, and @dselsam also suggests runTac as the name of this operation.

Leo mentioned this one might still be open? :)
import Lean
open Lean
open Lean.Elab
open Lean.Elab.Tactic

syntax "runTac" term : tactic

unsafe def evalRunTacUnsafe (term : Syntax) : TacticM Unit := do
  let n := `_runTac
  let type := mkApp (mkConst ``TacticM) (mkConst ``Unit)
  let e ← Term.elabTermEnsuringType term type
  let e ← Meta.instantiateMVars e
  Term.synthesizeSyntheticMVarsNoPostponing
  let decl := Declaration.defnDecl {
    name        := n
    levelParams := []
    type        := type
    value       := e
    hints       := ReducibilityHints.opaque
    safety      := DefinitionSafety.safe
  }
  Term.ensureNoUnassignedMVars decl
  let env ← getEnv
  let tac ← try
    addAndCompile decl
    evalConst (TacticM Unit) n
  finally
    setEnv env
  tac

@[implementedBy evalRunTacUnsafe]
constant evalRunTac : Syntax → TacticM Unit

elab_rules : tactic
  | `(tactic| runTac $e) => evalRunTac e

example : True := by
  runTac do
    evalApplyLikeTactic Meta.apply (← `(True.intro))

Thanks!


Update to Carbon v10.11.x

Summary
We will update to the highest patch version of Carbon v10.11.x when v10.12.0 is released.
We always try to lag behind Carbon by one minor version at the highest patch level.
Internal issue #363

To be met by the update to Carbon v10.12.0 in #1238

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fixed html.

You could have just made this change directly on master @shinyichen. I will go ahead and merge it, no need to wait for the build to run.


Copy the list of tables/columns/etc as csv/tsv

All columns displayed, please.
Name, Schema, Nb Rows (Runstats) Status, Type, Tablespace, Table Id
Ctrl+C seem to just copy the cell where the invisible cursor is located. The invisible cursor seems to move to the last mouse click position.

For the same reason i ask to add the "desc" command in oracle. if there is a way of do this, it could help me too.

At the moment it is not supported (you can copy only individual cells values).
Will mark as feature  request.

In 4.0.3 you can copy selected rows in tab separated format (CTRL+SHIFT+C or context menu). This format is compatible with Excel and Open/Libre Office Calc.


More class information on links resulting from term keyrefs

Based on this:
https://groups.yahoo.com/neo/groups/dita-users/conversations/messages/36882
I have in a DITA topic a term keyref to a glossentry:
  <term keyref="abc"/>

which results in the output HTML document as a link:
  <dfn class="term">Anti-lock Braking System (ABS)</dfn>

That link  has no @class attribute on it so it cannot be easily customized via CSS.
See XSLT:
    DITA-OT/plugins/org.dita.xhtml/xsl/xslhtml/dita2htmlImpl.xsl

template:
       <xsl:template match="*[contains(@class, ' topic/term ')]" name="topic.term">

Problem still there. Attaching a sample zip file.
link_to_keyref.zip


Using SASS syntax doesn't work but SCSS works

I have this sample SASS code
// my_file.sass

.container
    color: white

When I save it, the extension returns this error message:

Invalid CSS after ".": expected 1 selector or at-rule was ".container"

However, when I use SCSS syntax in a SASS file, it compiles:
// my_file.sass

.container {
    color: white;
}

Here's my setting:
    "compile-hero.pug-output-directory": "./html",
    "compile-hero.sass-output-directory": "./css",
    "compile-hero.less-output-toggle": false,
    "compile-hero.jade-output-toggle": false,
    "compile-hero.typescript-output-toggle": false,
    "compile-hero.scss-output-toggle": false,
    "compile-hero.javascript-output-toggle": false,

Can you please check? Thank you...

@huytrvan hello, I have fixed this place. Fix indented syntax which it can treat code as sass (as opposed to scss), Hope it helps you😁

Hi, I fixed this by restarting Vscode maybe the extension didn't update the file extension properly. Thanks you!

Can't find stylesheet to import![Capture d’écran du 2020-09-03 09-02-20](https://user-images.githubusercontent.com/46252310/92088112-5a257a80-edc4-11ea-9b1f-9778207506ab.png)

Can't find stylesheet to import

Can't find stylesheet to import

Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass. https://github.com/sass/node-sass/issues/2362