Resetting a multi-step form causes an error

Describe the bug
Trying to reset a multi-step form causes the error  - Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function. asField/forwardRef<@webpack-internal:///./node_modules/informed/dist/esm/index.js:2097:29
To Reproduce
https://codesandbox.io/embed/informed-multistep-reset-weeyx

Leaving the code here in case the sandbox gets reset as I'm not familiar with it
import "./styles.css";
import { Form, Multistep, Input, useMultistepApi, useFormApi } from "informed";
import { useCallback } from "react";

const StepOne = () => {
  const { next } = useMultistepApi();

  return (
    <Multistep.Step step="1" next="2">
      <Input field="one" initialValue="1" />
      <button onClick={next}>Next</button>
    </Multistep.Step>
  );
};

const StepTwo = () => {
  const { back, next } = useMultistepApi();

  return (
    <Multistep.Step step="2" next="3" previous="1">
      <button onClick={back}>Back</button>
      <Input field="two" initialValue="2" />
      <button onClick={next}>Next</button>
    </Multistep.Step>
  );
};

const StepThree = () => {
  const { back, next } = useMultistepApi();
  const { reset } = useFormApi();

  const goToStart = useCallback(() => {
    reset();
    next();
  }, [reset, next]);

  return (
    <Multistep.Step step="3" next="1" previous="2">
      <button onClick={back}>Back</button>
      <Input field="three" initialValue="3" />
      <button onClick={goToStart}>Next</button>
    </Multistep.Step>
  );
};

export default function App() {
  return (

Hello CodeSandbox

Start editing to see some magic happen!

      <Form>
        <Multistep initialStep="1">
          <StepOne />
          <StepTwo />
          <StepThree />
        </Multistep>
      </Form>

  );
}

Please note that I'm using one version earlier than the latest. Basically I have a multistep form which can loop in step flow until the user decided not to. So I'd like reset the form every time the user finishes the last step.

Hi @joepuzzo - just bumping this up in case you've missed it. Please take a look at this if you can, thank you!

Hey sorry I totally did miss this. Will look into it!

Ok soo I need time to think about this because technically you are trying to perform reset on fields that are not on screen so that is an issue

@joepuzzo thanks for looking into this! Yeah I realized that too. I realize that it's technically not possible, so would probably need refactoring of how multi-step works and renders I assume?

@joepuzzo if the problem is that the fields aren't currently in the DOM, can we rather show/hide the fields using CSS? that way all the fields are in the DOM and we can reset them as required. Do you see any pitfalls in changing the way multistep works to this way?

informed is not a dom library it is a react library. This would not work in native.

It may require significant code changes. I would reccomend maybe creating your own multistep for now and I will think on this.

Thanks for your response, appreciate it.


Update scheduling_parameters.md

Updating the valid time of batch_id.

Thanks Kyle! We're in the process of catching up with the pull requests now and we hope to be able to address this soon.

Duplicate of a PR that was already merged!


Feature/apple tv

fix #232 and #231
fix also a warning on the test linking

Looks good! Would you mind modifying the tvOS scheme so that it also runs the unit tests?

ok, I will need to duplicate the target but why not, not sure it can make any difference, the tvOS is a subset of iOS

never tried that but it looks like it work just setting the test target on the tvos target, weird the tests are not supposed to compile the tvOS target

to run them on travis I think it's better to do an other PR with more changes on the travis file, I create an issue


Meeting Notes: Meeting Notes - Week #4 Meeting #6

To Do: Add the meeting notes for week-4 meeting-6 to the sidebar menu and homepage menu. Add the questions and answers gathered during the customer meeting.
Deadline: 27.03.2022 @20:00

Created the meeting notes page and connected necessary link. Meeting notes can be found here. Review required in case anything missing from our customer meeting.

Summarizes everything we spoke quite clearly. Thanks for the effort.


fix: fuzz test

This should fix the error introduced here.

LGTM. CC @odeke-em

Thank you very much @crodriguezvega! Thank you for the tag @elias-orijtech


Feature: nono

Checklist

[X] I've searched for similar issues and couldn't find anything matching
[X] I've discussed this feature request in the kubecub Slack and got positive feedback

Is this feature request related to a problem?
None
Problem Description

no no
Solution Description
no
Benefits
no
Potential Drawbacks
No response
Additional Information
No response

/accept

/accept

/accept

"/accept"

/accept

accept


[Docs] Description contradicts code sample

I read the Flask documentation at https://flask.palletsprojects.com/en/1.1.x/errorhandling/#unhandled-exceptions and noticed the property name used in the description is different from the property name used in the example code.

Expected Behavior

I expected them to be the same as one another.
Actual Behavior

They were different from one another.
Environment

Python version: N/A
Flask version: 1.1.x
Werkzeug version: N/A

Nice find, could you make a pr against the 1.1.x branch?

I am willing to do that, but I don't know which property name is the correct one. Do you know which one is the correct one?
I'm also OK with someone else submitting the PR based upon this report.

The docs say it's original_exception: https://werkzeug.palletsprojects.com/en/1.0.x/exceptions/#werkzeug.exceptions.InternalServerError


metrics-jdbi flagged by antivirus

Hey,
today my maven build suddenly stopped working with some weird error messages. After some research i found that the antivirus blocks the bluid because of metrics-jdbi:3.2.2 jar file. Allegedly it contains the trojan Jamalky A!cl . This is most probably a fals positive, but I wanted to write it down here in case anyone else has the same error.

Can you check if the sha1 of that file matches what is on maven central

77de34824fc106d0903ee7c85ce85bedd99ca68b

Oh yeah sorry. Of course I did that before assuming a false positive. The hash matches

@manuel-hegner Thanks for reporting this!
It looks like this is a false positive of your virus scanner. If you can spare some minutes, please contact the vendor of that software and let them know about it.


STREAMCOMP-2724: TMaster migrated to mostly use smart pointers instead of manual memory management

TMaster migrated to mostly use smart pointers instead of manual memory management

Seems like build failing. all "make_unique" related.
In file included from heron/common/src/cpp/network/network.h:41:0,
from heron/common/tests/cpp/network/http_server_unittest.h:24,
from heron/common/tests/cpp/network/http_server_unittest.cpp:20:
heron/common/src/cpp/network/client.h: In member function 'void Client::InstallResponseHandler(std::unique_ptr, void (T::)(void, M*, NetworkErrorCode))':
heron/common/src/cpp/network/client.h:134:14: error: 'make_unique' is not a member of 'std'
auto m = std::make_unique();
^
heron/common/src/cpp/network/client.h:134:32: error: expected primary-expression before '>' token
auto m = std::make_unique();
^
heron/common/src/cpp/network/client.h:134:34: error: expected primary-expression before ')' token
auto m = std::make_unique();
^
heron/common/tests/cpp/network/http_server_unittest.cpp: In member function 'void TestHttpServer::HandleMetaRequest(IncomingHTTPRequest*)':
heron/common/tests/cpp/network/http_server_unittest.cpp:68:19: error: 'make_unique' is not a member of 'std'
auto response = std::make_unique(_request);
^
heron/common/tests/cpp/network/http_server_unittest.cpp:68:56: error: expected primary-expression before '>' token
auto response = std::make_unique(_request);
^
(01:21:01) INFO: Elapsed time: 713.276s, Critical Path: 263.10s
(01:21:01) INFO: 534 processes: 492 local, 42 worker.
(01:21:01) FAILED: Build did NOT complete successfully
(01:21:01) FAILED: Build did NOT complete successfully

Seems like build failing. all "make_unique" related.

In file included from heron/common/src/cpp/network/network.h:41:0,
                 from heron/common/tests/cpp/network/http_server_unittest.h:24,
                 from heron/common/tests/cpp/network/http_server_unittest.cpp:20:
heron/common/src/cpp/network/client.h: In member function 'void Client::InstallResponseHandler(std::unique_ptr<S>, void (T::*)(void*, M*, NetworkErrorCode))':
heron/common/src/cpp/network/client.h:134:14: error: 'make_unique' is not a member of 'std'
     auto m = std::make_unique<M>();
              ^
heron/common/src/cpp/network/client.h:134:32: error: expected primary-expression before '>' token
     auto m = std::make_unique<M>();
                                ^
heron/common/src/cpp/network/client.h:134:34: error: expected primary-expression before ')' token
     auto m = std::make_unique<M>();
                                  ^
heron/common/tests/cpp/network/http_server_unittest.cpp: In member function 'void TestHttpServer::HandleMetaRequest(IncomingHTTPRequest*)':
heron/common/tests/cpp/network/http_server_unittest.cpp:68:19: error: 'make_unique' is not a member of 'std'
   auto response = std::make_unique<OutgoingHTTPResponse>(_request);
                   ^
heron/common/tests/cpp/network/http_server_unittest.cpp:68:56: error: expected primary-expression before '>' token
   auto response = std::make_unique<OutgoingHTTPResponse>(_request);
                                                        ^
(01:21:01) INFO: Elapsed time: 713.276s, Critical Path: 263.10s
(01:21:01) INFO: 534 processes: 492 local, 42 worker.
(01:21:01) FAILED: Build did NOT complete successfully
(01:21:01) FAILED: Build did NOT complete successfully

@nwangtw  The problem is the current compiler on CI server is very ancient. I will try to update it on Monday.

@nwangtw i tested both tmaster and stmgr under valgrind and don't see any obvious leaks.

Great. Thanks!

tmaster certainly does not seem to leak.

@nwangtw ^

@thinker0, thanks a lot for your help!

Nice. Thanks a lot!


Changed Logger::warning to print full stack trace.

After looking over some of the examples of using warning(message, error) I think this change is good, definitely helps to have a stack trace over just the exception type. If you think it becomes too lengthy in situations where many warnings with errors are logged we can truncate the trace but I don't particularly want to do that.
Thanks!
Adam Bocco

For future reference, please can you include Closes # issue-number in the PR comment box -- this should automatically close the associated issue


FreshWaterModule

Hello,
it seems that a conversion is missing in the freshwater module. For the temperatures (see image), it's likely that there needs to be a division by '10'.

Hi @mleck28 - this is already fixed in the latest beta. Thanks for the reminder to release it 👍

Fix is released in <IP_ADDRESS>


cf set-env APP VAR VALUE not shown in Startos 3.1 -> App -> Variables

Frontend Deployment type

[x] Cloud Foundry Application (cf push)
[ ] Kubernetes, using a helm chart
[ ] Docker, single container deploying all components
[ ] npm run start
[ ] Other (please specify below)

Backend (Jet Stream) Deployment type

[x] Cloud Foundry Application (cf push)
[ ] Kubernetes, using a helm chart
[ ] Docker, single container deploying all components
[ ] Other (please specify below)

Expected behaviour
Environment value set with cf set-env should been listed in Stratos -> App -> Variables
Actual behaviour
Not shown in upper part of the frame for variables set in Stratos, nor in the box below containing all vars.
Steps to reproduce the behavior
cf push APP
cf set-env APP VAR value
restaget with CLI or Stratos
Log output covering before error and any error statements
Insert log hereCopy

Detailed Description

Context

Possible Implementation

cf version 6.51.0+2acd15650.2020-04-07

Hi @phakkarainen, having some problems reproducing this, could I confirm which version of the code you're pushing and that the new env shows up in the cli via cf env? The env var list also does not update automatically, you'll need to either hit the refresh button top right in the list or refresh the page.

I re-tested and the value can be seen also in Stratos.
I guess I had clicked refresh, but it must be I had not.
Thanks Richard!


#594 - add terraform scripts for AWS private VPC with coreOS

Created follow-up https://github.com/Capgemini/Apollo/issues/604


Guzzle Client should be injected into Pixers\SalesManagoAPI\Client

Currently it's no way to inject globally used Guzzle Client instance as SM Client initiates it in the constructor.
We should allow to set it (setter injection or constructor injection?)
$client = new Client($clientId, $endpoint, $apiSecret, $apiKey);
$client->setGuzzleClient($guzzleClient);

and than, instead of using:
$this->guzzleClient->request

we should:
$this->getGuzzleClient()->request

getGuzzleClient can lazy-create GuzzleClient if it's not set.
cc @ikselll what do you think?

Good idea @orfin, will code it :)


Ability to use CAPSLOCK key to launch Powertoys Run

Description of the new feature / enhancement
The CAPSLOCK key is located on the 'home row' of the keyboard. It is the perfect key for a launcher
Scenario when this would be used?
The current default ALT+SPACE is already used by Windows itself so another shortcut is needed. Second, it would only be a single key to hit with your left pinky.
Supporting information
A workaround exists by:
PowerToys Run
Activation key: CTRL + SHIFT + ALT + R
Keyboard Manager
Remap Caps Lock key to CTRL + SHIFT + ALT + R

While that issue is similar, it is closed. Powertoys shouldn't be that restrictive in what keys can be used as activation keys.

This appears to be a subset duplicate of #3269, which contemplates the use of any single keypress (e.g., CapsLock, Win) to open PowerToys Run. There is currently a good workaround for CapsLock activation outlined in this comment. You can find details and history in the comment thread of #13536. Long story short, the PR for #2325 made it possible to start Run with CapsLock by prepending a modifier key and remapping CapsLock to that key pair. Incidentally, that very workaround is likely what the creator of #32996, the issue identified by the bot, was alluding to in their follow-up comment. It did break in 0.47.0, but it was quickly made possible again in 0.47.1 by checking the box labeled "use central keyboard hook." Unfortunately, the workarounds for those preferring to use Win to achieve this same effect are currently much more complex and imperfect. If you would like to see workaround-free support for single-key activation, consider giving #3269 a 👍 instead as it is much older and already has quite a few eyes on it.


JSON linting in the code editor

This PR intends to add the ability for the Ace Code Editor to provide linting for JSON files in Postwoman.
You can try out the linter through any editor instance that specifies JSON as the language (so basically the GraphQL variable editor and the POST request content editor (when content type is set to application/json)).

Hey @AndrewBastin,
Something went wrong with the build.
TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.
View build log
TravisBuddy Request Identifier: e809c5a0-57f5-11ea-acab-ef795e2c3319

Hey @AndrewBastin,
Your changes look good to me!
View build log
TravisBuddy Request Identifier: de1cab40-5820-11ea-acab-ef795e2c3319

@AndrewBastin i've added a new prop to the Ace Editor component (<Editor />). You can specify a lint prop like <Editor :lint="false" /> and it will bypass the linting process. The reason for this was because the response box on the GraphQL page is supplied with :lang="'json'". However when  the runQuery function is run .. it updates the response box to regular text Loading... (which isn't json), thus showing a linting error.
While the response box is in fact json for responses, we shouldn't run any linting on it anyways as the data is coming from an external data source.
This lint prop may come in handy for other editor boxes in the future, so I think it's a decent addition. 💯


Search request/response headers should be DEBUG level, not INFO

Is your feature request related to a problem? Please describe.
We are seeing overly verbose output when using INFO level logging in our Python applications:
2024-01-19 20:24:10 (INFO) azure.core.pipeline.policies.http_logging_policy: Request URL: 'https://gptkb-ifvo2edlwe6vw.search.windows.net/indexes('gptkbindex')/docs/search.post.search?api-version=REDACTED'
Request method: 'POST'
Request headers:
    'Content-Type': 'application/json'
    'Content-Length': '27'
    'Accept': 'application/json'
    'x-ms-client-request-id': 'b399733a-b708-11ee-ae3d-002248c0058c'
    'User-Agent': 'azsdk-python-search-documents/11.4.0 Python/3.11.7 (Linux-6.2.0-1018-azure-x86_64-with-glibc2.36)'
    'Authorization': 'REDACTED'
A body is sent with the request
2024-01-19 20:24:14 (INFO) azure.core.pipeline.policies.http_logging_policy: Response status: 200
Response headers:
    'Transfer-Encoding': 'chunked'
    'Content-Type': 'application/json; odata.metadata=minimal; odata.streaming=true; charset=utf-8'
    'Content-Encoding': 'REDACTED'
    'Vary': 'REDACTED'
    'Server': 'Microsoft-IIS/10.0'
    'Strict-Transport-Security': 'REDACTED'
    'Preference-Applied': 'REDACTED'
    'OData-Version': 'REDACTED'
    'request-id': 'b399733a-b708-11ee-ae3d-002248c0058c'
    'elapsed-time': 'REDACTED'
    'Date': 'Fri, 19 Jan 2024 20:24:11 GMT'

I believe this is coming from azure-documents-search, from this line of code:
    search_client = SearchClient(
        endpoint=f"https://{os.environ['AZURE_SEARCH_SERVICE']}.search.windows.net",
        index_name=os.environ["AZURE_SEARCH_INDEX"],
        credential=azure_credential,
    )
    r = search_client.search("", top=1000)

We're also surprised by the number of REDACTED headers, but we wouldn't be worried if we just didn't see them at all.
Describe the solution you'd like
We think those headers should be at DEBUG level. Similar headers are shown at DEBUG level for other SDKs.
Describe alternatives you've considered
We've considered using print() instead of logging.info() so that we don't have to see these logs, but it's better practice to use info().

@pamelafox thanks for your feedback. What's logged here is controlled by the underlying azure-core library. I'll add a few core owners for their perspective: @xiangyan99 @kashifkhan @iscai-msft , but also wondering what would you want to see at the INFO level?
I'll leave this tagged as Search as well since it's possible we might want to unredact some of these headers/params, e.g. api-version.

@kristapratico Good question! I don't mind this output so much:
INFO:azure.identity.aio._credentials.environment:Incomplete environment configuration for EnvironmentCredential. These variables are set: AZURE_TENANT_ID
INFO:azure.identity.aio._credentials.managed_identity:ManagedIdentityCredential will use IMDS

Although I also think those would be fine at DEBUG level. It's good design question as to what should be an INFO level. Hm. I do know that both me and other developers were surprised to see the headers output, so I think that should be DEBUG level, but I don't have a solid heuristic yet for INFO vs DEBUG.

Got it, thanks for your perspective @pamelafox.
I know we've received other feedback regarding INFO logging being too verbose. Quick search brought up two more related issues: https://github.com/Azure/azure-sdk-for-python/issues/29215 https://github.com/Azure/azure-sdk-for-python/issues/33623
@johanste @annatisch what are your thoughts on this? At this point I'm not sure that we can drastically change what's included in INFO without impacting customers. Should we consider a custom logging level?


Create a Homebrew formula

$ brew install whalebrew

https://twitter.com/teabass/status/824682166361751552

You don't even need to actually get a formula in the Homebrew repository. You can just put your formula.rb in this repository and tell people to use brew install --HEAD https://raw.githubusercontent.com/bfirsh/whalebrew/master/path/to/whalebrew.rb. That will then install it with Homebrew, and users can use brew upgrade whalebrew and it'll pull the latest version of the formula automatically.

Hacked one for myself https://github.com/themalkolm/homebrew-brew/blob/master/Formula/whalebrew.rb
brew tap themalkolm/brew
brew install whalebrew

I can automate formula generation & contribute if people want this.

@themalkolm yes please :D

I wonder if this package would be 'nicer' if it just installed the binaries from the release page instead of requiring to build it locally?
It also seems to be a bit dated.

I updated to use binaries instead https://github.com/themalkolm/homebrew-brew/blob/master/Formula/whalebrew.rb

@tjamet @bfirsh I also wanted to install whalebrew with homebrew, so I created homebrew formula (https://github.com/superbrothers/homebrew-whalebrew) for whalebrew.
If possible, I'd like to move the repository under the whalebrew organization. WDYT? (If you want, I will continue to maintain the formula ;)

@superbrothers It looks like a bit of inception but I can understand the need for it
I would indeed consider the idea of transferring your repo to the org
Not sure about a contribution to https://github.com/Homebrew/homebrew-core/tree/master/Formula could be an idea to get brew install whalebrew by default?

@tjamet All right. I'll try to add formula to homebrew-core.

@tjamet When will you make the next release of whalebrew? I'm going to make a PR of homebrew-core after the next release. (I want to include the change of using Go Modules to the PR.)

We can plan a release for next month I think we have few things we can release

Hey @superbrothers Sorry it took me longer than expected to release, but 0.2.2 is now released

Now, we can install whalebrew via Homebrew :tada:
$ brew install whalebrew
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/whalebrew-0.2.2.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/47/4788986bffaaad6defb524a5e2f8d7093f77fbd0004fa0f4cf52ebcb4134e240?__gda__=exp=1563154156~hmac=dbb85ce33d64392e0efb8fdcb591e5539032e831785c7d566986da4e4f13d514&response-content-disposition=attachment%3Bfilename%3D%22whalebrew-0.2
######################################################################## 100.0%
==> Pouring whalebrew-0.2.2.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/whalebrew/0.2.2: 6 files, 15.1MB

@superbrothers NICE! Thank you so much!
This would make a neat addition to the installation instructions in the readme. "Upgrade from Homebrew to Whalebrew" ;)
@tjamet A little thing -- I noticed the version number in the readme installation instructions is out of date. I wonder if that can be automated somehow...

@bfirsh Indeed, created #87 :)


How to pass []{any} to a fn?

package main

import fmt

printAllFrom :: int -> []{int} -> ()
printAllFrom n s -> if n < 0 || n >= len(s) then () else {
  fmt.Println(s[n])
  printAllFrom(n + 1, s)
}

main -> printAllFrom(0, []{1, 3, 10, 15})

works but trying to pass values of type any instead:
package main

import fmt

printAllFrom :: int -> []{any} -> ()
printAllFrom n s -> if n < 0 || n >= len(s) then () else {
  fmt.Println(s[n])
  printAllFrom(n + 1, s)
}

main -> printAllFrom(0, []{1, 3, 10, 15})

results in:
/var/folders/r6/vbhgdgrx66q_2hfspf5z8hd80000gn/T/oden-run.go23883/src/main.go:9: cannot use []int literal (type []int) as type []interface {} in argument to printAllFrom(0)

The interface{} type for any does not work with primitives and slices.

It would be nice not to have the any type at all. Not sure how to interact with interface{} in Go without it though.

You could do static analysis on a given go codebase's use of that interface{} and turn it into a sum type.

Sounds like that would be very tricky and error prone. I'm thinking we could exclude any from Oden (in terms of the type system and what can write) and treat interface{}s imported from Go as type variables. Then, after the monomorph phase, we wrap basic types in pointers to be able to pass them as interface{}. This is just an idea that I have, not sure if it will work in practice.
A problematic scenario with this is variadic functions. In the following case f would have a different set of auto-generated type variables depending on how you call it. Reusing a single type variable would be very limiting, i.e. being able to only fmt.Println args of the same type, so each argument needs to be a new one.
// given a Go func:
f(args ...interface{})

// calls will need these types:
f(x)       // f :: forall a. a -> ()
f(x, y, z) // f :: forall a b c. a -> b -> c -> ()
f()        // f :: -> ()

Regarding pointer and interface types, this is probably related to https://groups.google.com/forum/#!topic/oden-lang/ramxVe-lFHw.

Closing this for now as any is removed. Might need to discuss related stuff regarding type variables but we'll handle it then.


Get word from complement lazy determinization

This PR implements a method to get an arbitrary word from a complement of a language lazily, as requested by #415. That is, we start computing the complement by determinizing the existing NFA while making it complete. We immediately stop when we encounter a macrostate which is not final. Then we can return the access word for this macrostate as an arbitrary word from the complement.
The PR utilizes the overall algorithm of determinization, but does not run nfa::determinize() directly, as there are too many changes to extract any common operations without significantly overengineering the function.
The PR implements the callback function for nfa::determinize() discussed in #415, but since the proper handling of all edge cases proved to be more complex, the callback function is not being used in Nfa::get_word_from_complement() in the end. The callback might yet come in handy for lazily getting an arbitrary word from the language difference, which will be implemented in a future PR.
This PR implements the first requested operation from #415.

We will see how it works. I used iterators to the subset map, as it is 10 times faster on even the smallest NFAs, and presumably more on larger ones. Whether it is enough remains to be seen.


fix aot issue; bump patch version

@mseemann This PR is for fixing the aot issues in angular2 branch. It has the changes from the commit d80e35cd076653463293ffca6560f517061c4548 on master
Thanks,
racerhere

Coverage remained the same at 95.17% when pulling 74aa098c6d87fc570356d90a33cbb27482a2e915 on racerhere:fix-aot-issue into e5303c9b5e72ca2f35d6e8145ed06a815e2505b7 on mseemann:angular2.

@racerhere thx! will be published in a few minutes...

done.

@mseemann , Thanks a ton. AOT needs a few more fixes. Please let me know if #613 looks good. Thanks  again.


yarn.lock: Share duplicate packages with yarn-deduplicate

You won’t be shocked to learn that we’re installing unnecessary duplicate copies of several packages (e.g. three versions of lodash and four versions of ajv). Use yarn-deduplicate to deduplicate them, and add it as a linter.

Nice, merged, thanks @andersk!


Release 2.3.0

anything obviously necessary pre-publish? I'd like to just get it pushed if there are no red flags.

Coverage increased (+0.2%) to 95.059% when pulling 74425a271ce1a52a6261ea66f869fe3c0df792d3 on release-2.3.0 into 90ef48b3ade57c77526b285f75dc0cfc41537831 on release.

I'm confused; what's in this branch that isn't already in master? I'm not familiar with this flow for releasing.

I gave this a basic look-over and didn't see any show-stoppers. The boat has sailed on the constituent PRs so I'm not commenting on implementation.
The Readme and Changelog changes appear to be complete.

@ljharb: nothing. I just do this to get a final confirmation CI is working + it highlights the set of commits since the last release.
I'll merge and publish when I get to my desk.

published!


Make PyCairo Dependency Optional

The Cairo API is really nice, but it is a pain to install in many contexts. When working in a notebook, the SVG backend seems fine and has minimal dependencies.
Proposal:

Replace the Transformations class with Affine: https://github.com/rasterio/affine
Remove all the SVG renderers in transformations.
Write converters from Affine to SVG "matrix" and cairo "Matrix"
Figure out a better solution for SVG text sizes than calling Cairo.

!pip install https://github.com/danoneata/chalk/ now works without dependencies.


feat: add joplin server

Add joplin server
https://joplinapp.org/

Thank you for the PR 💜. I will test it and fix it if necessary.


2

First check

[ ] I added a very descriptive title to this issue.
[ ] I used the GitHub search to find a similar issue and didn't find it.
[ ] I searched the FastAPI documentation, with the integrated search.
[ ] I already searched in Google "How to X in FastAPI" and didn't find any information.
[ ] I already read and followed all the tutorial in the docs and didn't find an answer.
[ ] I already checked if it is not related to FastAPI but to Pydantic.
[ ] I already checked if it is not related to FastAPI but to Swagger UI.
[ ] I already checked if it is not related to FastAPI but to ReDoc.
[ ] After submitting this, I commit to:

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.
Or, I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.
Implement a Pull Request for a confirmed bug.

Example
Here's a self-contained minimal, reproducible, example with my use case:

from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def read_root():
    return {"Hello": "World"}

Description

Open the browser and call the endpoint /.
It returns a JSON with {"Hello": "World"}.
I would like it to have an extra parameter to teleport me to the moon and back.

The solution you would like

I would like it to have a teleport_to_moon parameter that defaults to False, and can be set to True to teleport me:
from fastapi import FastAPI

app = FastAPI()

@app.get("/", teleport_to_moon=True)
def read_root():
    return {"Hello": "World"}

Describe alternatives you've considered

To wait for Space X moon travel plans to drop down long after they release them. But I would rather teleport.
Environment

OS: [e.g. Linux / Windows / macOS]:
FastAPI Version [e.g. 0.3.0]:

To know the FastAPI version use:
python -c "import fastapi; print(fastapi.__version__)"

Python version:

To know the Python version use:
python --version

Additional context

Duplicate of #2527.


Merge 'bind' and 'rebind' commands.

This PR merges the 'bind' and 'rebind' commands, allowing users to rebind their 'bind' command simply by adding an input to the command:
bind AAAA
binds the code AAAA to the bind command. This should be usable with aliases as well.

Looks good, I think it just needs an error message for when the user tries to play a bind but does not have one set. Right now it will raise an IndexError on line 14 in this scenario.

The check on lines 12-13 need to be moved into the block on line 15, otherwise the user can't change their bind initially.


Assignment REST API changes

Ok. Can you rebase and merge it so that I can use it in my template code?

@ostcar Ping.

Maybe we should change the flake8 test, that maximal 114 characters are allowed

All done. Ready for last review.

All done (or commented).


high efficiency recording extractor

Currently sortingview doesn't include the labbox-ephys high efficiency recording extractor.  It would be helpful if this was added so we can try to speed up the process of writing the recording extractor to a file.

I found the extractor, but it's not included in the extractor init.py, so I can't import it. Could you fix that?

@lfrank This is now fixed in version 0.2.38 (on pypi)
So you can do:
import sortingview as sv
import kachery_client as kc

recording = ...

X = sv.H5RecordingExtractorV1.write_recording(recording=recording, h5_path='/some/path.h5')

# Load it at a later time
Y = sv.H5RecordingExtractorV1(h5_path='/some/path.h5')

# The recommended/preferred method is to use LabboxEphysRecordingExtractor
recording_uri = kc.link_file('/some/path.h5')
Z = sv.LabboxEphysRecordingExtractor({
    'recording_format': 'h5_v1',
    'data': {'h5_uri': recording_uri}
}

You can examine the source code here:
https://github.com/magland/sortingview/blob/09124de0a99a44fad0ff8580cdc0dde379a8be56/src/python/sortingview/extractors/labboxephysrecordingextractor.py#L212-L387
and here:
https://github.com/magland/sortingview/blob/09124de0a99a44fad0ff8580cdc0dde379a8be56/src/python/sortingview/extractors/h5extractors/h5recordingextractorv1.py#L12-L48

@magland: I’ve tried 0.2.38 and 0.3.0 and neither seems to have sv. H5RecordingExtractorV1. Can you check this on your end?

On Aug 9, 2021, at 7:14 AM, Jeremy Magland @.***> wrote:
@lfrank https://github.com/lfrank This is now fixed in version 0.2.38 (on pypi)
So you can do:
import sortingview as sv
import kachery_client as kc
recording = ...
X = sv.H5RecordingExtractorV1.write_recording(recording=recording, h5_path='/some/path.h5')
Load it at a later time
Y = sv.H5RecordingExtractorV1(h5_path='/some/path.h5')
The recommended/preferred method is to use LabboxEphysRecordingExtractor
recording_uri = kc.link_file('/some/path.h5')
Z = sv.LabboxEphysRecordingExtractor({
'recording_format': 'h5_v1',
'data': {'h5_uri': recording_uri}
}
You can examine the source code here:
https://github.com/magland/sortingview/blob/09124de0a99a44fad0ff8580cdc0dde379a8be56/src/python/sortingview/extractors/labboxephysrecordingextractor.py#L212-L387 https://github.com/magland/sortingview/blob/09124de0a99a44fad0ff8580cdc0dde379a8be56/src/python/sortingview/extractors/labboxephysrecordingextractor.py#L212-L387
and here:
https://github.com/magland/sortingview/blob/09124de0a99a44fad0ff8580cdc0dde379a8be56/src/python/sortingview/extractors/h5extractors/h5recordingextractorv1.py#L12-L48 https://github.com/magland/sortingview/blob/09124de0a99a44fad0ff8580cdc0dde379a8be56/src/python/sortingview/extractors/h5extractors/h5recordingextractorv1.py#L12-L48
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/magland/sortingview/issues/98#issuecomment-895260336, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV4PSMDGVRXMHTU4BJSLCDT37PFFANCNFSM5BYCXU6A.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

oops, i exported the H5SortingExtractorV1, but not H5RecordingExtractorV1... this will be fixed on the next release.

@lfrank This should be fixed in 0.3.1 on pypi. Once you confirm you can close this issue.


Deactivated person should not be listed from API

PT-1804.
There are 2 kind of persons in the API: Those that acts as event
providers and are linked to some admin users, but also those that leads
a study group or makes an enrolment to the event. Both types are casted
as PersonNode, but only one of them has a user linked to it. However,
there is no case where we should currently include the deactivated user
instances, so those can always be excluded.
NOTE: After the authorization service is changed from the Tunnistamo to
the Helsinki Profile Keycloak, there will be duplicate user instances
for the admin users. Then, the clearest way to separate the old
Tunnistamo accounts from the active ones, is to mark them deactivated
and at that point, we don't want to have them listed in the event
contact person list or anywhere else.

For some reason, the automated checks are not running as expected. They don't start at all. The same issue was in Kukkuu API: https://github.com/City-of-Helsinki/kukkuu/pull/430 and https://dev.azure.com/City-of-Helsinki/kukkuu/_build/results?buildId=206206&view=logs&j=d319fce4-cb46-5c9b-3d68-d529030f0183&t=2120c938-01a3-50af-fdbe-41d2d4cfb9f6&l=533. The Kukkuu is having some issues with Postgre!

[ ] Fix the issue with pipelines and automated checks

The branch name is so long that the PostgreSQL database's name in the review environment goes over maximum of 64 characters and fails:

AttributeError: 'NoneType' object has no attribute 'info'
ImproperlyConfigured: The database name 'R20241029_kultusapi66ed2dev_pt_1804_api_should_not_list_deactivated_persons' (75 characters) is longer than PostgreSQL's limit of 63 characters. Supply a shorter NAME in settings.DATABASES.
(14 additional frame(s) were not displayed)

Closing this for https://github.com/City-of-Helsinki/palvelutarjotin/pull/371 with a shorter branch name


Add options description in doc and improve iOS support

Added descriptions for iOS and Android options;
Added support for older/newer versions of iOS for autolock, bluetooth and search options;
Added iOS options: battery, privacy, do_not_disturb, keyboards and mobile_data.

Could you also update the NPM package? It doesn't include the patch for the iOS touch option. Thanks!

merged


Failed to initialize audio interface.

Thanks for this addon!
I am trying to make this work on Windows 11, but i get Failed to initialize audio interface. when i launch full screen mode in Playnite. I tried disabling switching audio, but that didn't help, the popup window still shows up.

Same as #10, this is not an extension error, you need to change audio engine in the playnite settings

That was it, thank you man. And big <3 for this plugin, it's really AWESOME!

I can't see any audio settings in playnite, nor can I see the plugin after installing it either.


[Feature] SparkDpp support date/datetime/decimal distribution column

Fixes #issue
What type of PR is this:

[ ] BugFix
[x] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.1
[x] 3.0
[x] 2.5
[ ] 2.4

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

@Mergifyio backport branch-3.1

@Mergifyio backport branch-3.1

@Mergifyio backport branch-3.0

@Mergifyio backport branch-2.5


Bluetooth capability agent added later?

Hi AVS team,
Do you have the plan to add Bluetooth Capability Agents?

Hi @cuizhenke,
Yes - we are working on bluetooth support, and will be including it in a future release.
Ken

The question appears to have been answered. Please re-open this issue if it has been closed in error.

Any ETA for bluetooth support ?  Thanks,


layer.once happening more than once

I'm seeing an issue where layer.once is happening more than once. In a click handler setting a once event on Events.animationEnd. Even though only one click happens, the layer.once handle runs twice. Here's an example. Click the layer before the 5 delay is done and you will see the .once happens a second time.
iconLayer = new Layer width:256, height:256, backgroundColor: 'blue'
iconLayer.center()

anim_end_count = 0
click_count = 0

iconLayer.on Events.Click, ->
    print 'click count was' + anim_end_count++
    iconLayer.once Events.AnimationEnd, ->
        print 'animation count was ' + anim_end_count++

    iconLayer.animate {
        properties: {
            x: iconLayer.x + 100
        },
        time: 0.2
    }

Utils.delay 5, ->
	iconLayer.animate {
        properties: {
            x: iconLayer.x + 100
        },
        time: 0.3
    }

For those inclined, full code looks like this:
anim_end_count = 0
click_count = 0
# background layer
background = new Layer
	x: 0
	y: 0
	width: Framer.Device.screen.frame.width
	height:  Framer.Device.screen.frame.height

background.backgroundColor = '#573d82'

l = window.layers = Framer.Importer.load "imported/Chrome Field Experiments - Dio"

# Global use stuff and defaults
setVisibilityWhenAnimating = (layer, showStateName, hideStateName) ->
	showStateName = 'showing' if !showStateName

	hideStateName = 'hidden' if !hideStateName

	layer.on Events.StateWillSwitch, (from, to) ->
		layer.visible = true  if to is showStateName or 'default'

	layer.on Events.StateDidSwitch, (from, to) ->
		layer.visible = false  if to is hideStateName

standard_spring_curve_options = {
	tension: 50,
	friction: 10,
	velocity: 200
}

standard_spring_anim_options = {
	curve: 'spring-rk4',
	curveOptions: standard_spring_curve_options
}

# lowercase, plz
Object.keys(l).forEach (layer_name) ->
	layer = l[layer_name]
	delete l[layer_name]
	l[layer_name.toLowerCase()] = layer
	return

# make some sweet local vars visible
icon_conversation = l['icon_conversation']
icon_bell = l['icon_bell']
icon_you = l['icon_you']
icon_more = l['icon_more']
current_section_indicator = l['current_section_indicator']
switcher_header = l['switcher_header']
channel_card = l['channel_card']
channel_header = l['channel_header']
dm_list = l['dm_list']
conversation_list = l['conversation_list']
people_button = l['people_button']
conversation_list_button = l['conversation_list_button']

people_button.bringToFront()
conversation_list_button.bringToFront()

initially_hidden = [
	'filter_controls',
	'bottom_controls',
	'notifications_card',
	'conversation_list',
	'conversation_list_button',
	'people_button',
	'switcher_header',
	'notifications_header',
	'badge',
	'dm_list'
]

Object.keys(l).forEach (layer_name) ->
	l[layer_name].visible = initially_hidden.indexOf(layer_name) is -1
	return;

conversation_list.opacity = 0
conversation_list.states.add {
	focused: {
		x: conversation_list.x
		y: conversation_list.y
	},
	blurred: {
		x: conversation_list.x - conversation_list.width - 50
		y: conversation_list.y
	}
}
conversation_list.states.switchInstant 'focused'

dm_list.opacity = 0
dm_list.states.add {
	focused: {
		x: dm_list.x,
		y: dm_list.y
	},
	blurred: {
		x: dm_list.x + dm_list.width + 50,
		y: dm_list.y
	}
}
dm_list.states.switchInstant 'blurred'

channel_card.states.add {
	focused: {
		x: channel_card.x,
		y: channel_card.y
	},
	peak: {
		x: channel_card.x + channel_card.width - 32,
		y: channel_card.y - 10
	}
}

# Standard hidden/showing states for everything that needs it
[
	'channel_header',
	'icon_conversation',
	'icon_bell',
	'icon_you',
	'icon_more',
	'current_section_indicator',
	'switcher_header'
].forEach (layer_name) ->
	layer = l[layer_name]
	layer.states.add {
		hidden:  { opacity: 0 },
		showing: { opacity: 1 },
	}
	setVisibilityWhenAnimating(layer)
	if initially_hidden.indexOf(layer_name) isnt -1
		layer.states.switchInstant 'hidden'

# States for conversation list switching FABs
[
	'conversation_list_button',
	'people_button'
].forEach (layer_name) ->
	layer = l[layer_name]
	layer.states.add {
		hidden: {
			x: layer.x,
			y: layer.y + layer.height + 110
		},
		showing: {
			x: layer.x,
			y: layer.y
		},
	}
	setVisibilityWhenAnimating(layer)
	layer.states.switchInstant 'hidden'

channel_card_anim_options = {
	curve: 'ease-out',
	time: 0.3
}

header_fade_anim_options = 	{
	curve: 'ease-in-out',
	time: 0.3
}

fab_curve_options = {
	tension: 500,
	friction: 25,
	velocity: 20
}

showSwitcher = ->
	[
		'icon_conversation',
		'icon_bell',
		'icon_you',
		'icon_more',
		'current_section_indicator',
		'channel_header',
	].forEach (layer_name) ->
		l[layer_name].states.switch 'hidden', header_fade_anim_options

	[
		'switcher_header'
	].forEach (layer_name) ->
		l[layer_name].states.switch 'showing', {
			curve: 'ease-out',
			time: 0.3,
			delay: 0.2
		}

	channel_card.on Events.Click, handleChannelCardClick
	icon_conversation.off Events.Click, handleConversationsClick

	channel_card.states.switch 'peak', channel_card_anim_options
	people_button.states.switch 'showing', {
		curve: 'spring-rk4',
		delay: 0.3,
		curveOptions: fab_curve_options
	}
	dm_list.visible = true
	dm_list.animate {
		properties: { opacity: 1 }
		curve: 'ease-in-out',
		time: 0.3
	}
	conversation_list.visible = true
	conversation_list.animate {
		properties: { opacity: 1 }
		curve: 'ease-in-out',
		time: 0.3
	}

showChannel = ->
	[
		'switcher_header'
	].forEach (layer_name) ->
		l[layer_name].states.switch 'hidden', header_fade_anim_options

	[
		'icon_conversation',
		'icon_bell',
		'icon_you',
		'icon_more',
		'current_section_indicator',
		'channel_header'
	].forEach (layer_name) ->
		l[layer_name].states.switch 'showing', {
			curve: 'ease-out',
			time: 0.3,
			delay: 1
		}

	icon_conversation.on Events.Click, handleConversationsClick
	channel_card.off Events.Click, handleChannelCardClick

	channel_card.states.switch 'focused', channel_card_anim_options
	people_button.states.switch 'hidden', {
		curve: 'spring-rk4',
		curveOptions: fab_curve_options
	}

handleConversationsClick = ->
	showSwitcher()

handleChannelCardClick = ->
	showChannel()

icon_conversation.on Events.Click, handleConversationsClick

list_spring_options = {
	tension: 500,
	friction: 50,
	velocity: 20
}
people_button.on Events.Click, ->
	print 'click count was' + anim_end_count++
	conversation_list.visible = true
	conversation_list.states.switch 'blurred', {
		curve: 'spring-rk4',
		curveOptions: list_spring_options
	}
	dm_list.visible = true
	dm_list.states.switch 'focused', {
		curve: 'spring-rk4',
		curveOptions: list_spring_options
	}
	people_button.once Events.AnimationEnd, ->
		people_button.visible = false
		print 'animation count was' + anim_end_count++

	people_button.animate {
		properties: {
			opacity: 0
		},
		time: 0.2,
		curve: 'ease-in'
	}
	conversation_list_button.states.switchInstant 'showing'

	conversation_list_button.animate {
		properties: {
			opacity: 1
		},
		time: 0.4,
		curve: 'ease-out'
	}

conversation_list_button.on Events.Click, ->
	conversation_list.visible = true
	conversation_list.states.switch 'focused', {
		curve: 'spring-rk4',
		curveOptions: list_spring_options
	}
	dm_list.visible = true
	dm_list.states.switch 'blurred', {
		curve: 'spring-rk4',
		curveOptions: list_spring_options
	}

	conversation_list_button.once Events.AnimationEnd, ->
		conversation_list_button.visible = false
	conversation_list_button.animate {
		properties: {
			opacity: 0
		},
		time: 0.2,
		curve: 'ease-in'
	}

	people_button.visible = true
	people_button.states.switchInstant 'showing'
	people_button.animate {
		properties: {
			opacity: 1
		},
		time: 0.4,
		curve: 'ease-out'
	}

Download this sample, made in the latest Framer Studio, here: https://dl.dropboxusercontent.com/u/1334233/more-than-once.framer.zip

Fixed! Thanks so much for reporting!

Can I get this fix by running the update framer command in Framer Studio?
On Mon, Feb 2, 2015 at 2:30 AM, Koen Bok<EMAIL_ADDRESS>wrote:

Fixed! Thanks so much for reporting!
Reply to this email directly or view it on GitHub:
https://github.com/koenbok/Framer/issues/169#issuecomment-72435295

Yup. Whatever you see here on master is always what you pull in then (assuming the tests don't fail).

Awesome, thanks.
On Mon, Feb 2, 2015 at 9:09 AM, Koen Bok<EMAIL_ADDRESS>wrote:

Yup. Whatever you see here on master is always what you pull in then (assuming the tests don't fail).
Reply to this email directly or view it on GitHub:
https://github.com/koenbok/Framer/issues/169#issuecomment-72494953

While you are in there, you might be able to close this one out: https://github.com/koenbok/Framer/issues/172
The .once handler doesn't seem to get passed the sam args as .on.


farming needs to happen on all networks

farming needs to happen on mainnet, testnet, devnet

Do you mean minting ?

@LeeSmet please feel free to transfer this issue to the suitable repo.

https://wiki.threefold.io/#/threefold__farming_logic3

Minting is active on mainnet and testnet right now
For devnet, we should  consider that devnet is latest master of zos, which might be broken. This is advertised on the zos readme. However, we also announce a 99% uptime SLA for a minting reward. This seems to lead to some potential issues imo, as a bad commit might cause  minting to not happen that month on devnet.

why does minting need to happen on devnet? @despiegk @xmonader

Minting was set up on devnet last month


Docker leaks container IDs and IPs even with icc=false

When running the docker daemon with DOCKER_OPTS="-s overlay -icc=false", I'd expect that the auto-population of /etc/hosts inside containers would not occur. However, it does very plainly:
root@a8887a462d5f:~# cat /etc/hosts
<IP_ADDRESS>	a8887a462d5f

This occurs on both 1.8 and 1.9, and is somewhat of a security risk for me. I have mitigated this in userland but would have preferred not to have had to.
vwoo@ubuntu:~$ docker info
Containers: 2
Images: 22
Server Version: 1.9.0
Storage Driver: overlay
 Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.19.0-21-generic
Operating System: Ubuntu 14.04.2 LTS
CPUs: 2
Total Memory: 3.766 GiB
Name: ubuntu
ID: 6LST:RRCU:BKCS:Z73Y:HOMA:UUY7:RHNL:YRDY:52H6:IGID:SL3G:57BR
Username: coderpad
Registry: https://index.docker.io/v1/
vwoo@ubuntu:~$ docker --version
Docker version 1.9.0, build 76d6bc9
vwoo@ubuntu:~$ uname -a
Linux ubuntu 3.19.0-21-generic #21~14.04.1-Ubuntu SMP Sun Jun 14 18:45:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

ping @tiborvass @mavenugo

@vincentwoo when icc is false, docker doesn't update the /etc/hosts of containers in the default bridge network. the <IP_ADDRESS>  a8887a462d5f update that you see in your container is the ip-address of self (not that of other containers in the bridge network). Can you please confirm ?

Ah, you're correct. I confused myself testing both 1.8 and 1.9 - I think the behavior changed. Closing.


UX/UI: support more features for users

This PR intends to fix some missing features in the ocaml-ci web UI. Here is a list of the new added:

[ ] Fix #656:

[X] Organisation
[x] Repo
[x] Refs
[ ] Build
[ ] Step

Introduce dark-mode:

[ ] Organisation
[ ] Repo
[ ] Refs
[ ] Build
[ ] Step

Organisation page with module support:

Ref page with mobile support. It uses the code introduced by @benmandrew in #660:

@maiste this is excellent thanks :) What do you think about pulling this into smaller PRs and merging things to master as you go? Perhaps at the level of each checkbox you've mentioned in the intro?

Sure! Can do that :)

Closing in favour of the smaller PRs.


Convert commands over to use pflag library for POSIX style opts

The standard Go flag library treats long & short options as
identical (eg --foo & -foo are the same). This prevents the
creation of short aliases for flags. The replacement pflag
library supports full POSIX opts syntax where long and
short options are distinct.  The virtctl command already
uses this library. Convert the remaining commands over to
use it too, so we can later add short options for common
args.
Signed-off-by: Daniel P. Berrange<EMAIL_ADDRESS>

needs a rebase. Otherwise fine.

Rebased


ARC Challenge を追加

ARC Challenge を追加します。試しにsarashina2-7bで実行した結果は次のような感じになりました。
arc_easy
  0%|          | 0/2365 [00:00<?, ?it/s]2024-11-27 15:37:45.253 | INFO     | flexeval.core.evaluate_multiple_choice:evaluate_multiple_choice:58 - Example of the model inputs and outputs:
2024-11-27 15:37:45.253 | INFO     | flexeval.core.evaluate_multiple_choice:evaluate_multiple_choice:59 - prefix:
Question: A meeting of scientists, called a symposium, occurs every year to share recent research about the atmosphere of Earth. This symposium mainly serves which purpose in science?
Answer: to discuss the meaning of new discoveries

Question: When someone plays the flute, sound is produced because the air in the flute is
Answer: vibrating.

Question: The number of daylight hours in New York State changes with the
Answer: season of the year

Question: Scientists dig in a dry area at the bottom of a mountain range. Fossilized shells of freshwater mussels are found in the area. Which is a likely conclusion that scientists will draw based on this evidence?
Answer: Rivers once flowed through the area.

Question: Which statement best explains why photosynthesis is the foundation of most food webs?
Answer:
2024-11-27 15:37:45.253 | INFO     | flexeval.core.evaluate_multiple_choice:evaluate_multiple_choice:60 - choices: [' Sunlight is the source of energy for nearly all ecosystems.', ' Most ecosystems are found on land instead of in water.', ' Carbon dioxide is more available than other gases.', ' The producers in all ecosystems are plants.']
100%|██████████| 2365/2365 [01:58<00:00, 19.89it/s]
2024-11-27 15:39:44.146 | INFO     | flexeval.core.evaluate_multiple_choice:evaluate_multiple_choice:108 - {'accuracy': 0.7357293868921776, 'byte_norm_accuracy': 0.746723044397463}

arc_challenge
  0%|          | 0/1165 [00:00<?, ?it/s]2024-11-27 15:41:53.943 | INFO     | flexeval.core.evaluate_multiple_choice:evaluate_multiple_choice:58 - Example of the model inputs and outputs:
2024-11-27 15:41:53.943 | INFO     | flexeval.core.evaluate_multiple_choice:evaluate_multiple_choice:59 - prefix:
Question: Which of the following best explains how stems transport water to other parts of the plant?
Answer: through a system of tubes

Question: Rubbing sandpaper on a piece of wood produces what two types of energy?
Answer: sound and heat

Question: What compound is formed when the soft putty-like metal sodium (Na) reacts with the green-colored poisonous gas chlorine (Cl_{2})?
Answer: table salt

Question: A student mixed salt and sugar. Which statement describes the physical properties of salt and sugar after they were mixed?
Answer: The sugar and the salt were unchanged.

Question: An astronomer observes that a planet rotates faster after a meteorite impact. Which is the most likely effect of this increase in rotation?
Answer:
2024-11-27 15:41:53.944 | INFO     | flexeval.core.evaluate_multiple_choice:evaluate_multiple_choice:60 - choices: [' Planetary density will decrease.', ' Planetary years will become longer.', ' Planetary days will become shorter.', ' Planetary gravity will become stronger.']
100%|██████████| 1165/1165 [01:06<00:00, 17.59it/s]
2024-11-27 15:43:00.157 | INFO     | flexeval.core.evaluate_multiple_choice:evaluate_multiple_choice:108 - {'accuracy': 0.39742489270386266, 'byte_norm_accuracy': 0.4412017167381974}

Q&Aというよりはcontinuationっぽい例もあるのですが、lm-evaluation-harnessでQ&A形式にしてたのでそれに合わせました。
https://github.com/EleutherAI/lm-evaluation-harness/blob/0ef7548d7c3f01108e7c12900a5e5eb4b4a668f7/lm_eval/tasks/arc/arc_easy.yaml#L14

keep_conditionsにテストが対応していない

choice_templateをrenderして空なら無視するようにしました。arc_challengeとarc_easyの評価を実行して成功すること、評価結果がその変更をする前と大きく変わらないことを確認しました。


Loader problems with different games during same session

Our case is a Vue3 SPA where users can play various different Unity games. Because it is an SPA, users can play different games within the same single session. When this happens, we see problems with loading any streaming assets, like translation files.
With this information, I started investigating the loader part.
This is what I've observed so far:

The first game that loads creates 2 <script>s in the DOM, the .loader.js and the .framework.js.
When the first game is unloaded (with await unityContext.unload();), both of these scripts disappear from the DOM.
The second game that loads only creates 1 <script>, for the .framework.js.
This second game mostly "works", but things like translations are not loaded.
By looking at the network requests, I can see that the .loader.js code from the first game is reused from browser cache to load the second game.
In the build files, I see that the .loader.js files of the two games are similar, but not identical. Because there is a difference, I expect that this reusing should not happen.
Looking at the code, I think that this line is relevant: https://github.com/Meqn/UnityWebGL.js/blob/main/packages/lib/src/loader.ts#L28

If I change my code after unload() so that it sets window.createUnityInstance = null, then loading a second game will create the 2 <script>s and I don't see problems with translations anymore.
From what I understand, even if the <script> tag for the .loader.js is deleted, the window.createUnityInstance function will still exist in the browser's memory.
I'm not sure my solution of unsetting the createUnityInstance is correct, which is why I'm posting here.
Sorry that I don't have a reproduction. Hope this helps to clear up the issue.

Great, there is no problem with this solution.
window.createUnityInstance = null

Thanks! Should this be adopted into the library, or is this too much of an edge case?

Yes, this is a special case. Unlike your situation, which I encountered at work, the loader script did not need to be reloaded.
So I'm thinking about how to better add it to the library.
Thank you for your suggestion.

On balance, I deleted the loader script cache. Its actual benefit was too small, and there were no side effects from deleting it.
You can upgrade to v3.5.4.


Close PhEDEx blocks in smaller bulks of location and dataset - wmagent version

wmagent branch version of https://github.com/dmwm/WMCore/pull/9438
We should backport it to the branch 1.2.6_wmagent as well, but I'll simply to apply this patch to those nodes.

 Fix #9439 - Close PhEDEx blocks in smaller bulks of location and dataset

This has been pushed to all the agents.


Keyboard navigation is not in the right order with popups

Jodit Version:  3.9.4 +
Expected behavior:
After opening the paragraph popup, my tab navigation should go to the popup before going to the next toolbar button.
Actual behavior:
When I use allowTabNavigation: true I can navigate between toolbar buttons but when I have a button that opens a popup with a list like paragraph, I have to use tab to navigate trough everything in the toolbar before going to the first item in the paragraph list.

I'm working on a PR to improve it


Vllm or Huggingface  for local LLMs  for CrewAI

Would it be possible for us to use Huggingface or vLLM for loading models locally. Ollama implantation bit more challenging

I have the same request features.

I have the same request features.

I have the same request features.

Hi,
my solution on this request:
from langchain_openai import ChatOpenAI as LOAI

os.environ["OPENAI_API_KEY"] = "NA"

llm_model = LOAI(base_url="http://your_endpoint/v1", model_name = 'your_model')

your_agent = Agent(
    role="Your Role",
    goal="Your goal",
    backstory="Your backstory",
    async_execution=False,
    allow_delegation = False,
    llm=llm_model
)

or setting the environment varaibles:
os.environ["OPENAI_API_KEY"] = "NA"
os.environ["OPENAI_API_BASE"] = "Your Endpoint"
os.environ["OPENAI_MODEL_NAME"] = "Your Model"

I'm using the first solution because of the ability to use several models in my crew. The second is for those who only need one model.

This solution is giving me this
Provider List: https://docs.litellm.ai/docs/providers

ERROR:root:Failed to get supported params: argument of type 'NoneType' is not iterable


scrollMouse does not work

scrollMouse doesn't seem to be working when y is specified
Expected Behavior

I would expect it to scroll focused window vertically.
Current Behavior

On Ubuntu 16.04 it crashes:
/path/node_modules/electron/dist/electron .: symbol lookup error:
/path/node_modules/robotjs/build/Release/robotjs.node: undefined symbol: YTestFakeButtonEvent
error Command failed with exit code 127.
error Command failed with exit code 1.

On Windows 10 nothing happen.
Your Environment

RobotJS version: 0.4.7
Node.js version: 7.9.0
npm version: 4.2.0
Operating System: ubuntu and windows

Updated description - crash happens only when y is specified:
robot.scrollMouse(10, 0) - works
robot.scrollMouse(0, 10) - crash
robot.scrollMouse(10, 10) - crash

@GuskiS you can try this code：
var robot = require("robotjs");
setTimeout(function()
{
robot.scrollMouse(-14,'down');
}, 2000);

@roy2651 I found this PR - https://github.com/octalmage/robotjs/pull/306
That should fix the issue, I think.

@roy2651 I tried that code (after all, the index.d.ts labels the params as magnitude and direction) -- however, that didn't work.  Looking at mouse.c, it's pretty obvious the args are x and y.
I manually applied the changes in #306, and that did work!  So hopefully we can get that merged soon.

Bump

This issue has been closed because it has been inactive for > 180 days.
You may reopen this issue if it has been closed in error.

Same Issue here. Only for Windows 10.

Same Mouse Scroll Issue With Windows 10.


Repo sync for protected CLA branch

The pull request is created from main637916886174567721 to main to fix git push error for protected CLA branch

@opbld17 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

PRMerger Results

Issue
Description

Added File(s)
This PR contains added files. New files require human review.

Yaml File(s)
This PR includes changes to .yml file(s) owned by another author.

File Change Percent
This PR contains file(s) with more than 20% file change.

Docs Build status updates of commit 469c04b:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch main637916886174567721 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Mongodb

Is it possible to use mongodb to run this package?

It's not supported by Laravel, so no, at least not officially - but you might be able to get it working by using a package like this and implementing the models from this package yourself.


e2e: fix TestBackupStatus

fix https://github.com/coreos/etcd-operator/issues/828

lgtm. Thanks for fixing this.


Look at http-message-util

Investigate https://github.com/php-fig/http-message-util and see if we need it.

Migrated to https://github.com/slimphp/Slim-Psr7/issues/12


Forex Dashboard Chart

[x] Download library

[x] Create Chart View

Chart using d3 or NVD3 to show historical forex data. Include buttons for different views.

closed as of 68f2f3a4bb7c5286d5c83e2255d27c6682d2ae19


SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

I get the error: "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
When i click "Upload" button, after selecting a image.
Does anyone know what might be wrong?

@kallekanin the image uploader is expecting a JSON payload back - my guess is you're not returning that from your server side script.

I run this: console.log(file); and that gives me a JSON, but that JSON is not valid (tested in JSONLint).

Hi @kallekanin, CT's ImageUploader example class doesn't itself attempt to create and parse JSON, it only parses JSON that is returned to it from a call to the server. I'm not sure what console.log(file) is in reference to here?

I am using the code found on the homepage for this ( http://getcontenttools.com/tutorials/handling-image-uploads ), but the script gives me an error, does i need to modify/add more to it for work?
I just added console log to see if there was a JSON available, and checked that for errors. Is there somthing more that needs to be done for the script to work?

file uploaded to server, but i still get: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data.

Seams like the JSON format from the callback is formated wrong, even tho the file is uploaded to the server, it wount return valid JSON.
Select image -> upload to server -> error -> image is not visible in the frame.

@kallekanin if the server isn't returning valid JSON then that needs to be resolved but that's beyond the scope of CT. I'll happily take a look at your server code if you post it and see if I can spot the issue but keep in mind I don't know what language or framework your using so I might be of limited help.

The image are uploaded but it wont show in the editing window (added screenshot)
JS code that trigger uploadscript:
$.getJSON('save.php', 'test', function(e){
	console.log(e);
});

save.php:
<?php
	move_uploaded_file($_FILES['image']['tmp_name'],"images/".$_FILES['image']['name']);
?>

Gives me this message in browser: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data (  editor.js:128:28 )


Knowledge check not clickable in Module 1.6

Describe the bug
The knowledge check in Module 1 can't be clicked to answer the quiz. It shows all correct and Incorrect options.
To Reproduce
Steps to reproduce the behavior:

Go to Module 01 https://github.com/microsoft/studentambassadors/tree/main/Bug-Bash/C%23 Beginner Training/1_LP_AZ_get-started-with-c-sharp/M01-write-your-first-c-sharp-code/includes
Click on 6-Knowledge-check.md
See error

Expected behavior
An Interactive interface where we can select our options and it later shows the results
Screenshots

Desktop (please complete the following information):

OS: Windows
Browser Opera
Version 63

🎓 Student Ambassador

@Simondelali sorry about that. Our Markdown is hard to read for the knowledge checks and we should have supplied a warning about it. when transformed the knowledge checks look like this https://learn.microsoft.com/en-us/training/modules/csharp-basic-operations/7-knowledge-check - this is same issue as https://github.com/microsoft/studentambassadors/issues/113

Closing issue since this will be resolved when transformed into Learn content

Noted, thanks


Drop rafter reconciler

Related issues
Part of https://github.com/kyma-project/control-plane/issues/1798

LGTM


Add logic to setVolumeControlStream

It closes #9.
It closes https://github.com/hayanmind/mimiking-rn/issues/456.
It is needed to be tested on Android devices.

@ghsdh3409  Please let me know if you need to test it on my Nexus 5.

@ohtangza I checked this pull request make be able to control volume on the Nexus 5.


File index.json in the project backup

Hello，
I have a probelm, I want to selfcreat a task using c# to create a document like a task backup from cvat, include annotations.json、task.json、index.json and manifest.jsonl. The question is I dont know how to design the index.json
index.json like that
{"0":36,"1":209,"2":382,"3":555,"4":728,"5":901,"6":1074,"7":1247,"8":1420,"9":1589}
I dont know this number how to design, because every tasks have different number.
Can you tell me how to define these key values? When id is 1, what is its corresponding number?
Thanks！

@bsekachev ,Thank you for your response. I've addressed the issue.
I discovered a functional issue in CVAT: when choosing the "Labelme 3.0 "export format in the "Export Task Dataset" option, the resulting file is in XML format. However, Labelme exclusively supports JSON format, and the content in XML doesn't align with the JSON structure used by Labelme. This mismatch hinders my ability to convert CVAT-annotated files into a format that Labelme can open. I hope this matter can receive your attention.
having a good day!

@zhiltsov-max
Do you think labelme changed their format from XML to JSON?

Certainly, in Labelme, only JSON format is supported, as I am currently using Labelme for annotation.

@bsekachev, yes, seems like there is LabelMe v4.0 format now, which uses JSON. The format is pretty simple, you can find it's implementation here.


Allow for use of SConstruct.py where SConstruct is not detected

This issue was originally created at: 2017-05-07 14:46:20.
This issue was reported by: garlicbread.
garlicbread said at 2017-05-07 14:46:20

Hi,
One thing I'd like to ask for as a feature request
is if Scons does not detect the presence of a SConstruct file
that it also tries searching for a SConstruct.py file
Typically I've been using Visual Studio with python tools to debug the build
scripts - http://grbd.github.io/posts/2016/07/27/scons-builds-with-visual-
studio/
However because the file doesn't have an extension this makes it difficult
to associate with the Python editor in the IDE.
One work around I've been using is to create a SConstruct file with the
following line in as a workaround
execfile('SConstruct.py')
It doesn't need to be a .py extension, it could be something like .scons
As long as there's some form of extension this should make it easier to
associate with python inside IDE's

Fixed in next post 3.0.1 release.


Error when edit and upload main.js file (Dynamics 365 Portal Hosted)

Hi,
I am using Dynamics 365 event website with portal hosted. I modified the sample website, built to main.js file, and rename it to main.es.
Then I manual upload to Dynamics 365 following by edit the file in note of main.js. But after refreshing the website, the request to get main.js from website is always returned as "application/octet-stream", not "application/javascript".
Please give me your recommendation.
Thanks,
Binh

@krkerezs Did you open a support ticket for this issue. Please post it here, so that users can know the status of the issue.

@Nkrb @trucbinh  Ticket is open and under investigation . Portals team is looking into this.
https://icm.ad.msft.net/imp/v3/incidents/details/173183065/home
We will get back to you once we have more info on this. Also please let us know if this issue is urgent as we can try to help you in with you with your website

@krkerezs : It isn't urgent. Temporarily, I can use the Powershell script to upload it.

@trucbinh Closing the issue for now.


Feature request: Detect duplicated files

Would be nice if this was flagged somewhere. Can probably just use the checksum to start with (which should be relatively easy given they're already being collected), but some kind of similarity algorithm would be nice long-term (for if stuff has been reencoded, etc)

yea i already had a vague TODO item in my disorganised notes for something like this, both to show dupes on the item page and to provide some sort of way to list all files that have a dump
that was only going to be based on checksums, though something more advanced would be lovely, though not something i currently know how to implement

adding the first part of this, the actual searching, turned out to be quite simple and proves the concept.
next part is to update the item page to list out the duplicate file paths, but might not get to doing that today.

ok actually i did add the UI part cos i realised how quick it was.


Fix and Improve Streaming Rpc

Fix and Improve Streaming Rpc

Status
Type
⚠ Core Change
Issue

Ready
Feature
No
https://github.com/magicblock-labs/Solana.Unity-SDK/issues/184, https://github.com/magicblock-labs/Solana.Unity-SDK/issues/182,  https://github.com/magicblock-labs/Solana.Unity-SDK/issues/183

Problem

See https://github.com/magicblock-labs/Solana.Unity-SDK/issues/184, https://github.com/magicblock-labs/Solana.Unity-SDK/issues/182,  https://github.com/magicblock-labs/Solana.Unity-SDK/issues/183 for detailed descriptions

Solution

Default values for localhost
WebSockets now try to reconnect when losing connection
Global settable default Commitment for IStreamingRpc
Several fixes in the Websockets, removed the need for a dispatcher object and replaced infinite loop with events

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

12 of 81 (14.81%)  changed or added relevant lines in 4 files are covered.
5 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.1%) to 73.507%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Solana.Unity.Rpc/Core/Sockets/SubscriptionState.cs
0
2
0.0%

src/Solana.Unity.Rpc/Core/Sockets/StreamingRpcClient.cs
1
8
12.5%

src/Solana.Unity.Rpc/Core/Sockets/WebSocketWrapper.cs
1
26
3.85%

src/Solana.Unity.Rpc/SolanaStreamingRpcClient.cs
10
45
22.22%

Files with Coverage Reduction
New Missed Lines
%

src/Solana.Unity.Rpc/Core/Sockets/WebSocketWrapper.cs
1
1.47%

src/Solana.Unity.Rpc/SolanaStreamingRpcClient.cs
4
3.45%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
4992

Relevant Lines:
6491

💛  - Coveralls


ensure to use resourceType properly when it is explicitly provided in a chained reference param

This PR ensures that when the resourceType is explicitly defined in the reference search parameter, that it gets used properly and also that the value also gets parsed properly.
Before this fix, specifying a search like Observation?subject:Patient.identifier=http://a.b/c/d|123, the 'Patient' resourceType would be overwritten with a path from the provided url value, and the value would be incorrect. This is due to the invocation of setValue(), which internally calls myId.setValue().

Coverage increased (+0.01%) to 82.797% when pulling b2776931066d0d286d0ff5acc6dbab9101531ef5 on CarthageKing:bugfix-chaining-urlvalue into 6da0809284fbb5b394daebb453add2d016e8839d on jamesagnew:master.

Looks great, thanks for the PR!


Fishing Spot Missing

Fishing overlays are not present at barbarian fishing spots in Mount Quidamortem.
There are 3 fishing spots just South East of the COX enterance (World location: 1266, 3541, 0).
The three spots have NPC ID's like other fishing spots, but it appears they have not been added to the Runelite plugin. Not sure if this is a bug, oversight or just haven't been added, but I thought I would raise it to the devs attention.
The information I am getting from the NPC ID in the developer tools are:
Fishing spot (ID:7323) (A: -1)(G: -1)
Screenshots
https://imgur.com/txCXoU0
https://imgur.com/0N7XsNt
Environment (please complete the following information):

OS: Windows 10
RuneLite version: Unsure. Current version as of 22/5/19
Launcher version: Unsure.  Thanks for that.


Organization commands

Telegram and radio broadcast

#TheKröwe @Akaedes

#TheKröwe @Akaedes

It's all uphill for the Akrana

AltLayer Airdrop Season One Update

🚀 Exciting Announcement!
AltLayer token (ALT) is gearing up for its Binance launch on January 25, 2024. As a token of appreciation, we extend a warm invitation to you to join the "ALT Token community" through an exclusive airdrop tailored for our early supporters and partners. Here's a quick overview:

Total Allocated ALT Tokens: 400,000,000 (4% of the total supply)

For a comprehensive breakdown of criteria and further details, refer to the complete announcement Oficial Website.
The window to Claim $ALT tokens is open from January 25 to February 08, 2024.
Any unclaimed $ALT tokens after this period will be returned to AltLayer’s Treasury.
We deeply appreciate your contribution to AltLayer's success! Stay tuned for more exciting developments in Season One.
Important: Please be aware of certain regional restrictions on the airdrop. Review the disclaimer before participating.
saurabhjinturkar, @ShemuelBensusan, @dmdque, @KarlChristomer, @AeonPatton, @cobycloud, @ch4ot1c, @EruditePanda, @Etaas, @gaslimitreached, @matthewlilley, @JonathanWfels, @siutin, @dognie, @tony204601, @alirezaayande92, @kirillzh, @Z0rlord, @mygirl8893, @milaabl

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!
hlc199399, @atifnimran, @Nonikoff, @biserd, @scDisorder, @timotanhong, @orpheuslummis, @megamissil, @adibmed, @nangbowan, @0xJohnnie, @yiuked, @IbrahimSam96, @raugfer, @xcshuan, @huris, @fwyh, @rafialhamd, @codeninja819, @alatushkin, @Coffcer, @MichalZalecki, @pikameow420, @Wszl, @hicoldcat, @victorrodriguez22, @kingman978, @chaojimianshiti, @atiselsts, @an7agon1st, @wongnoubo, @Blockchainer1, @Sweetling90, @gb0g0, @KangfeiHK, @phil-lgr, @francine-caruccio, @gobuddy, @vghernandz, @GW250, @JuanCSUCoder, @regunakyle, @MehdiRaash, @wesleysmyth, @mengguang, @ryanio, @AdNaN-rK, @brentgreeff, @SamaanBrainstorms, @kelvinlockwood

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!
cerveeza77, @adamwrichard-zz, @gin1231, @MattyMead, @KenMan79, @TerasakaKazuma, @phamnhungoctuan, @abovewallstreet, @jerinzech, @diogomqbm, @nickdoherty, @abelorian, @carver, @kevinxiong, @lpsoltys, @NoriMin, @455631680, @farleylai, @mitchellmusarra, @tatianajiselle, @cc-hasada, @theodesp, @zyn926, @mfahampshire, @Dobby233Liu, @daweth, @ayuthmang, @jasonzhouu, @deman41191, @wujunze, @ywlyu, @kevin-fruitful, @14282, @mikule1, @Aydoggy, @hiromaily, @ulerdogan, @denisovpi, @sirlupinwatson, @starry8004, @CrystallineButterfly, @Ualidali21, @yonglehou, @imranismail, @cuneyteti, @coolmenu, @yaojunyu, @Charles-liaorc, @ashwaqqasem, @rjcpereira


ImportError: cannot import name 'Figure' from 'bokeh.plotting'

Checklist

[X] I've read the contribution guidelines.
[X] I've confirmed the issue is certainly related to this repository. If not, please consider to make a new issue in https://github.com/tier4/caret/issues

Description
Hi, I followed the tutorial.  https://tier4.github.io/CARET_doc/main/tutorials/visualization/
"Visualizing latency of node chain with message flow" where the following error occurs.

$ from caret_analyze.plot import Plot

Succeed to find record_cpp_impl. the C++ version will be used.
Traceback (most recent call last):
File "", line 1, in
File "/home/caret/ros2_caret_ws/build/caret_analyze/caret_analyze/plot/init.py", line 17, in
from .plot_facade import Plot
File "/home/caret/ros2_caret_ws/build/caret_analyze/caret_analyze/plot/plot_facade.py", line 21, in
from .callback_scheduling import CallbackSchedulingPlot, CallbackSchedulingPlotFactory
File "/home/caret/ros2_caret_ws/build/caret_analyze/caret_analyze/plot/callback_scheduling/init.py", line 15, in
from .callback_scheduling_plot import CallbackSchedulingPlot
File "/home/caret/ros2_caret_ws/build/caret_analyze/caret_analyze/plot/callback_scheduling/callback_scheduling_plot.py", line 20, in
from bokeh.plotting import Figure, save, show
ImportError: cannot import name 'Figure' from 'bokeh.plotting' (/home/caret/.local/lib/python3.10/site-packages/bokeh/plotting/init.py)**

How do you solve it?

@YunSeungHoe
Sorry for the delay in informing you.
The fix to make bokeh3>0 available has been applied in #391 .


Updated to v0.2.0 of jupyterlab-blockly

Hey @DenisaCG! Thanks for opening the PR.
I didn't see this PR, and I opened a new one to update to v0.2.1 in #14. Feel free to update this PR to v0.2.1 and close mine.

Thanks, @DenisaCG! LGTM.


KID header not sent in certificate request

KID header not sent in certificate request
Describe the bug:
Hello, we are currently setting up cert-manager, and we are facing an issue when requesting a DNS challenge from our ACME server (open trust pki / idnomic).
It appears that the KID (Key ID) is not being sent in the header to the newOrder endpoint of our ACME server. It's not really necessary to discuss the challenge itself since we are encountering a blockage at the preliminary steps.
Context
Flow
According to RFC 8555, here is the process for obtaining a challenge for an ACME server.
newAccounts ------------> ACME
account         <------------- ACME
newOrder + account --> ACME (problem here)
challenge <------------------ ACME
Header content
The new order endpoint is supposed to be called with
   POST /acme/new-order HTTP/1.1
   Host: example.com
   Content-Type: application/jose+json

   {
     "protected": base64url({
       "alg": "ES256",
       "kid": "https://example.com/acme/acct/evOfKhNU60wg",
       "nonce": "5XJ1L3lEkMG7tR6pA00clA",
       "url": "https://example.com/acme/new-order"
     }),
     "payload": base64url({
       "identifiers": [
         { "type": "dns", "value": "www.example.org" },
         { "type": "dns", "value": "example.org" }
       ],
       "notBefore": "2016-01-01T00:04:00+04:00",
       "notAfter": "2016-01-08T00:04:00+04:00"
     }),
     "signature": "H6ZXtGjTZyUnPeKn...wEA4TklBdh3e454g"
   }

Manifest
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: my-dns-issuer
spec:
  acme:
    email<EMAIL_ADDRESS>    server: https://acme.myorg.com/opentrust-pki-server-client/directory
    privateKeySecretRef:
      name: my-dns-issuer-account-key
    solvers:
      - dns01:
          webhook:
            config:
              email<EMAIL_ADDRESS>            groupName: myorg.com
            solverName: my-custom-solver

After the creation of the issuer, the registration status is correct; the account has been successfully created, as indicated by the status.
status:
  acme:
    lastPrivateKeyHash: **********************
    lastRegisteredEmail<EMAIL_ADDRESS>    uri: >-
      https://acme.myorg.com/opentrust-pki-server-client/acct/mt******
  conditions:
    - lastTransitionTime: '2024-01-30T14:39:37Z'
      message: The ACME account was registered with the ACME server
      observedGeneration: 1
      reason: ACMEAccountRegistered
      status: 'True'
      type: Ready

Next, we request a certificate.
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: test.myorg.com
spec:
  secretName: mysecret
  dnsNames:
    - test.myorg.com
  issuerRef:
    name: my-dns-issuer
    kind: ClusterIssuer

This generates a certificate request that indicates an error.
status:
  conditions:
    - lastTransitionTime: '2024-01-30T15:59:25Z'
      message: Certificate request has been approved by cert-manager.io
      reason: cert-manager.io
      status: 'True'
      type: Approved
    - lastTransitionTime: '2024-01-30T15:59:25Z'
      message: >-
        Failed to wait for order resource test.myorg.com-1-323921463" to become
        ready: order is in "errored" state: Failed to create Order: 400
        urn:ietf:params:acme:error:malformed: The request message is malformed
      reason: Failed
      status: 'False'
      type: Ready
  failureTime: '2024-01-30T15:59:25Z'
spec:
  extra:
    authentication.kubernetes.io/pod-name:
      - cert-manager-**********
    authentication.kubernetes.io/pod-uid:
      - ************
  groups:
    - system:serviceaccounts
    - system:serviceaccounts:cert-manager
    - system:authenticated
  issuerRef:
    kind: ClusterIssuer
    name: my-dns-issuer
  request: >-
    ************************
  uid: 5d4eaf0*********
  username: system:serviceaccount:cert-manager:cert-manager

Acme server log
Validating integrity protection for request. Checking header url https://acme.myorg.com/opentrust-pki-server-client/new-order against actual url https://acme.myorg.com/opentrust-pki-server-client/new-order
Request must contain either KID header field.

Cert-Manager log
I0130 14:59:24.821061       1 sync.go:117] "cert-manager/controller/certificaterequests-issuer-vault: issuer reference type does not match controller resource kind, ignoring" related_resource_kind="acme"
I0130 14:59:24.821066       1 controller.go:174] "cert-manager/certificaterequests-approver: finished processing work item" key="default/test.myorg.com-1"
I0130 14:59:24.821049       1 sync.go:117] "cert-manager/controller/certificaterequests-issuer-ca: issuer reference type does not match controller resource kind, ignoring" related_resource_kind="acme"
I0130 14:59:24.821085       1 controller.go:174] "cert-manager/certificaterequests-issuer-vault: finished processing work item" key="default/test.myorg.com-1"
I0130 14:59:24.821096       1 acme.go:208] "cert-manager/certificaterequests-issuer-acme/sign: acme Order resource is not in a ready state, waiting..." resource_name="test.myorg.com-1" resource_namespace="default" resource_kind="CertificateRequest" resource_version="v1" related_resource_name="test.myorg.com-1-323921463" related_resource_namespace="default" related_resource_kind="Order" related_resource_version="v1"
I0130 14:59:24.821106       1 controller.go:174] "cert-manager/certificaterequests-issuer-ca: finished processing work item" key="default/test.myorg.com-1"
I0130 14:59:24.821112       1 controller.go:174] "cert-manager/certificaterequests-issuer-acme: finished processing work item" key="default/test.myorg.com-1"
I0130 14:59:24.820945       1 sync.go:117] "cert-manager/controller/certificaterequests-issuer-venafi: issuer reference type does not match controller resource kind, ignoring" related_resource_kind="acme"
I0130 14:59:24.821161       1 controller.go:174] "cert-manager/certificaterequests-issuer-venafi: finished processing work item" key="default/test.myorg.com-1"
I0130 14:59:24.821410       1 issuing_controller.go:342] "cert-manager/certificates-issuing: CertificateRequest not in final state, waiting..." key="default/test.myorg.com" resource_name="test.myorg.com" resource_namespace="default" resource_kind="Certificate" resource_version="v1" resource_name="test.myorg.com-1" resource_namespace="default" resource_kind="CertificateRequest" resource_version="v1" reason="Pending"
I0130 14:59:24.821438       1 controller.go:174] "cert-manager/certificates-request-manager: finished processing work item" key="default/test.myorg.com"
I0130 14:59:24.821440       1 controller.go:174] "cert-manager/certificates-issuing: finished processing work item" key="default/test.myorg.com"
E0130 14:59:25.191268       1 sync.go:290] "cert-manager/orders: failed to create Order resource due to bad request, marking Order as failed" err="400 urn:ietf:params:acme:error:malformed: The request message is malformed" resource_name="test.myorg.com-1-323921463" resource_namespace="default" resource_kind="Order" resource_version="v1"

Expected behaviour

With all this information, I conclude that the header does not contain the 'kid' in its headers, even though we do have the account, as confirmed by our issuer, which has successfully registered.
Furthermore, I am unable to obtain the POST request to the new order endpoint. The logs are not detailed enough, and on the ACME server side, I cannot display the request either.
If anyone has a new lead for me, I would greatly appreciate your help as I am struggling to understand why this request would be malformed.
Thank you very much for your assistance.

Anything else we need to know?:
Environment details:

Kubernetes version: 1.22
Cloud-provider/provisioner: X
cert-manager version: quay.io/jetstack/cert-manager-controller:v1.13.3
Install method: helm

/kind bug

WE have updated our ACME server. The problem is solved.

@quequiere I'm also facing the same error. Could you please share what update you did in the ACME server?


Bump 3.1.x and add GA 3.2.0

Coverage remained the same at 85.612% when pulling f350c3e25bb06b92e00df475092c4a0d7e7eec25 on bump_3.x into 2d82d1b9b6b7fa7ce90eab4d701cb9cab9762c04 on master.

Coverage remained the same at 85.612% when pulling c82c5e8f64bdd3a4594c87e132a38f09b5cf6abb on bump_3.x into 86d6a1916095dd914aa2e820d06f8e0001986226 on master.

Coverage remained the same at 85.612% when pulling c82c5e8f64bdd3a4594c87e132a38f09b5cf6abb on bump_3.x into 86d6a1916095dd914aa2e820d06f8e0001986226 on master.

Coverage remained the same at 85.612% when pulling 722a6b45fa0b968147a2d08a6a49679e660d3dc9 on bump_3.x into 86d6a1916095dd914aa2e820d06f8e0001986226 on master.


Feature/issue 1465 math lib: moving the Stan Math Library to the lib folder

Summary:
Preps the Stan Math Library for release.

moved the existing Stan math library to lib/stan_math_2.7.0/
the git history is preserved. Merging the existing pull requests should be easy.
I had to copy a lot of the makefiles (and trimmed where appropriate) to the new location of the Stan Math library for the tests
removed all folder level header files
updated the travis yml files so that all the unit tests still run, including the math unit tests.

Intended Effect:
Moves the Stan Math library closer to release. We'll move it to its own repository once the existing pull requests are updated.
One thing that I didn't take care of was removing src/stan/math/rev/core.hpp and src/stan/math/fwd/core.hpp. These two headers are implicated in many files and tests and couldn't be removed easily.
How to Verify:

Inspect the code. The ./src/stan/math folder has moved to lib/stan_math_2.7.0/src/stan/math. The tests have also moved -- both unit tests and prob tests.
Run the tests from the main Stan folder.
Run the math tests from the lib/stan_math_2.7.0 folder. > ./runTests.py src/test/unit/math and > ./runTests.py src/test/prob

Side Effects:
Everything works as it used to work.
Documentation:
I updated some of the doxygen. We'll might consider documenting the Stan Math Library as part of another pull request.
Reviewer Suggestions:
Bob.

Jenkins has not been updated for this -- can someone review this pull request? If it's good, I'll update the Jenkins jobs appropriately so all the jobs run.

Are you thinking that in 2.7 we'll have a standalone math lib?
Will this need to be coordinated with the R StanHeaders package?

Bob

On Jun 3, 2015, at 11:52 PM, Daniel Lee<EMAIL_ADDRESS>wrote:
Jenkins has not been updated for this -- can someone review this pull request? If it's good, I'll update the Jenkins jobs appropriately so all the jobs run.
—
Reply to this email directly or view it on GitHub.

With this pull request, the math library will be in the lib folder and it
can start being treated as a separate library. I don't think we will be
able to separate out the repos in time for a 2.7.0 release. We really want
to wait for the outstanding pull requests before splitting it out just to
avoid duplication of work.
Yes, it will need to be coordinated with the R StanHeaders package. This
shouldn't be a problem. (Sorry, I forgot about it.) That's a quick fix.
On Thu, Jun 4, 2015 at 12:09 AM, Bob Carpenter<EMAIL_ADDRESS>wrote:

Are you thinking that in 2.7 we'll have a standalone math lib?
Will this need to be coordinated with the R StanHeaders package?

Bob

On Jun 3, 2015, at 11:52 PM, Daniel Lee<EMAIL_ADDRESS>wrote:
Jenkins has not been updated for this -- can someone review this pull
request? If it's good, I'll update the Jenkins jobs appropriately so all
the jobs run.
—
Reply to this email directly or view it on GitHub.

—
Reply to this email directly or view it on GitHub
https://github.com/stan-dev/stan/pull/1480#issuecomment-108713205.

This all looks great.
Is there any way we can change the path of Stan in the math lib to parallel Boost and Eigen, so that it looks as follows?
stan/lib/stan_math_2.7.0/stan

I see that what you've done is put everything you think is going along with the math library to its new repo.  When we use Boost and Eigen, we cut out just the header files we need and don't include anything else.  I'm hoping we can do that with Stan Math, too, because it's header only.

Yes -- I should have thought about that. We can make that happen. I'll adjust the makefiles accordingly.

I've updated the math library's location of source and test files, the makefiles, and everything else. Bob, want to take another look?
The tests will fail on Jenkins for now. If it looks ok, I'll update Jenkins and run through the tests again.

Looks good to me.

Jenkins, retest this please.

Jenkins, retest this please.


Device stopped working after switching to thread.

Hi,
I have a ELRO23 device, RPI shield (ttyAMA0) (Em357)
Did the zigbee upgrade, all went good. Then i misunderstood and believed the thread update/switch command was a secondary step.
After this, my device went dark.
python3 Elelabs_EzspFwUtility.py probe -p /dev/ttyAMA0 2022/07/26 22:03:11 Elelabs_EzspFwUtility:   Couldn't communicate with the adapter in Zigbee (EZSP) mode, Thread (Spinel) mode or bootloader mode
I have tried the recover options without any luck, and i cannot connect to the serial port with either screen or minicom. Both programs seem to just hang.
Any ideas on how to proceed?
Regards,
Kim

Hello, I am having the same problem. Could you solve it?


Not working with containers

The workflow below is not working with a node project in a container, please the sample code below:
name: Unit tests
on:
  pull_request:
    branches:
      - development

jobs:

  unit-test:
    #...

  dependency-check:
    #...

  upload-report:
    name: 🔨 Upload report
    runs-on: ubuntu-latest
    container: node:14.17.1-alpine3.12 #non alpine also doesn't work
    needs: [unit-test]
    timeout-minutes: 30
    env:
      ImageOS: ubuntu20 ## Stops error #52, not sure if this is right.

    if: "!contains(toJSON(github.event.head_commit.message), '[skip-ci]')"

    steps:

      - name: 🔨 Install dependencies
        run: apk add tar ruby # Ruby here makes no different

      - name: 📦 Download unit-test reports folder
        uses: actions/download-artifact@v2
        with:
          name: code-coverage-unit-test

      # same error here:
      # - name: Set up Ruby
      #   uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
      #   with:
      #     ruby-version: '2.7'

      - name: 🕒 Wait for dependency-check to complete
        uses<EMAIL_ADDRESS>        with:
          ref: ${{ github.ref }}
          check-name: 'dependency-check'
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          wait-interval: 10

      - name: 📦 Download dependency-check reports folder
        uses: actions/download-artifact@v2
        with:
          name: dependency-check

It's returning this error:
Error: There was an error when attempting to execute the process '/opt/hostedtoolcache/Ruby/2.7.4/x64/bin/gem'. This may indicate the process failed to start. Error: spawn /opt/hostedtoolcache/Ruby/2.7.4/x64/bin/gem ENOENT

I migrated to another project that uses Javascript to do the same. Unfortunately I won't name it.


[bug]: cant find output from          GPU_FLAGS=all ./docker/run.sh --outdir /data

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Linux
GPU
cuda
VRAM
16 GB GDDR6
What happened?
looking for a little guidance. Reading through the documentation I can't find any output from running
GPU_FLAGS=all ./docker/run.sh --outdir /data
the documentation says that default images are stored in (outputs/img-samples/) but since I put /data as the --ourdir I would have expected the output to be in the /data in the pwd.
This is on a google cloud platform vm if that makes a difference.
Thank you.
Screenshots
No response
Additional context
No response
Contact Details
No response

The Output is stored on a Docker Volume (name is shown when executing build.sh or run.sh) - but you just gave me the idea to improve this. Will soon™ be added to #2595

@mauwii thanks! I had to ask my buddy what exactly you meant. but I figured it out!! thank you so much! this is all super new to me and it's pretty awesome lol


Gracefully handle JSON.parse errors

This PR improves handling of parse errors for incoming message.

@kaisalmen I'll let you have a look and approve, LGTM

I have no objections. Who is going to push the button?

@AlexTugarev I guess you require a new release?

👋🏻 @kaisalmen!
Indeed, it would be awesome ifvscode-ws-jsonrpc would be updated soon.
🦊 🍻

Here you go: https://www.npmjs.com/package/vscode-ws-jsonrpc/v/2.0.2


Migrate some African countries to holiday groups

Proposed change

Migrate some African countries to holiday_groups standard
Add Africa Day (May 25) to InternationalHolidays

Type of change

[ ] New country/market holidays support (thank you!)
[ ] Supported country/market holidays update (calendar discrepancy fix, localization)
[x] Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
[ ] Dependency upgrade (version update)
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (a code change causing existing functionality to break)
[ ] New feature (new python-holidays functionality in general)

Checklist

[x] I've followed the contributing guidelines
[x] This PR is filed against beta branch of the repository
[x] This PR doesn't contain any merge conflicts and has clean commit history
[x] The code style looks good: make pre-commit
[x] All tests pass locally: make test, make tox (we strongly encourage adding tests to your code)
[x] The related documentation has been added/updated (check off the box for free if no updates is required)

coverage: 99.991%. remained the same when pulling 7c02d9d9ac44a7c5954efd533cb8a4862a7523e7 on KJhellico:upd-observed into 5d82315bdea385eeca75605ab22b3d534bc7b081 on dr-prodigy:beta.


Empty dataset with column headers

Was looking to create a dataset with empty rows in them but with column headers so that I can render the grid with an empty dataset. The following results in an exception.
DataSet ds1 = N.newDataSet(N.asList("id", "type", "amount"), null); // NullPointerException
DataSet ds1 = N.newEmptyDataSet(); //Doesn't have the column headers.
Any other way to do this?
Thanks
Andy

I guess the following will work.
DataSet ds1 = N.newDataSet(N.asList("id", "type", "amount"), N.emptyList());

It worked for me. Opened this issue a little too early.
Think I am getting the hang of this amazing library. :)
Thx
Andy

Will add a new method in N: DataSet newEmptyDataSet(final Collection<String> columnNames)