text:
Client doesn’t resolve a hostname when pinging a hostname

When pinging a hostname, Error 6: Parse is observed.
Build Steps:
a) git clone https://github.com/openthread/ot-nrf528xx.git --recursive
b) cd ot-nrf528xx
c) ./script/bootstrap
b) script/build nrf52840 USB_trans -DOT_SRP_CLIENT=ON -DOT_ECDSA=ON
c) arm-none-eabi-objcopy -O ihex build/bin/ot-cli-ftd ot-cli-ftd.hex
d) nrfjprog -f nrf52 --chiperase --program ot-cli-ftd.hex --reset
e)
GitHubGitHub
GitHub - openthread/ot-nrf528xx: OpenThread on Nordic nRF528xx examples.
OpenThread on Nordic nRF528xx examples. Contribute to openthread/ot-nrf528xx development by creating an account on GitHub. (53 kB)

Can you provide more information?

A copy of your console showing command and resulting output.
What Thread Border Router are you using? How did you configure it?
Packet capture for analysis in Wireshark.
DEBG-level OpenThread logs on both end device and border router.

Also note that the ping CLI command only accepts IP addresses for the destination, and not a host name.
See the ping CLI documentation for more details.


text:
OTBR 1.3 reference device DUA issue

I'm trying to validate the OTBR 1.3 reference device as Thread Certification compliant, but some Commercial tests are failing.
This branch https://github.com/openthread/ot-reference-release/compare/main...edmont:pr-add-ncs-1-3 has been used to build the reference device, with this command: REFERENCE_PLATFORM=ncs REFERENCE_RELEASE_TYPE=1.3 ./script/make-reference-release.bash
What I found to be the problem in the test C5.9.1 is that the BR_1 device is not forwarding DUA traffic towards the Thread Network. Frame 347 in the attached PCAP. The test logs show the proper solicited Neighbor Advertisement in line 2017, but nothing about the incoming Echo Request.
C_5_9_1-fail2.zip

Gave a try with BORDER_ROUTING=0 and the test is still failing in the same way.

Closing stale issue.

source: gharchive/issue

authors: edmont jwhui

repo: openthread/ot-br-posix

license_type: permissive

license_source: bigquery


text:
Any way i can use centralise location to refer provider.tf for customise plugin location?

Thank you for reporting an issue.
I want to use custom plugin & I have 5 different terrafrom (opentofu) resource template placed at different location. But i dont want to refer the provider.tf for all the resources every time i am doing "tofu init".
I tried using .terraformrc to provide the custom location for plugin but it seems not working.
Any idea?
OpenTofu Version
opentofu version: 1.6.1

OpenTofu Configuration Files
// Snippet of HCL that can be used to help reproduce this problem

Hey @yogeshlc thank you for posting your question. Unfortunately, this is not the right place to post questions as this is neither a bug nor is it related to the OpenTofu registry itself, but related to the Tofu language. I will close this issue. Please use the GitHub Discussions or the OpenTofu Slack to ask questions.

authors: janosdebugs yogeshlc

repo: opentofu/registry

license_source: github-api


text:
🛑 [CN] OpenUPM Website Packages is down

In b8da4f4, [CN] OpenUPM Website Packages (https://openupm.cn/packages/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: [CN] OpenUPM Website Packages is back up in cec8ff6.

repo: openupm/upptime-openupmcn

license: MIT


text:
library version information would be useful

When integrated into an application, it can often be useful to know what version of the "heavy lifting" libs are in use (for error reporting / logging on a remote system for example). You can get the compiled-to version from the config.h header, but that may not match the running-against version - being able to show both would be handy, and some languages aren't big on compiled headers in any case.
In the longer term, knowing what data files are in use would also be useful, but a basic libpostal_version() function seems like a start. Will send a PR.

There's probably a larger conversation about versioning.
AFAIK most C libraries do versioning in the following way:

version is #define'd in one of the public header files. Making it a function means replicating that function in all the bindings, where the preprocessor def would suffice.
The shared library itself is often versioned and bumped on any ABI change i.e. adding -version-info 0:3:2 to LDFLAGS.

Most C libraries did do it that way, until they realised that doesn't solve the problem (exactly because of shared libraries).
You build on 0.3, and get that header include value `"0.3". Now you make a bug-fix release (no ABI change) or just add a new function, so existing clients do not need to be recompiled. What version is each service / machine running?
There are multiple ways to do it. Representative are curl, dbus, glib. A search through /usr/include will probably give you many more. A complete design for versioning seemed like too much for a first PR though.

True re: curl, etc. though libpostal has slightly more modest deployment goals than a ubiquitous Linux utility like curl that needs to be distributed in package managers, etc. It's mostly designed to be used by higher-level languages, and I don't see as many examples of that pattern in libraries that are routinely installed and used by Python extensions, etc. Counterexamples that are closer in use-case to libpostal would be more like Google's Snappy or LevelDB i.e. more /usr/local/include libs than /usr/include libs.
The releases so far have been a bit haphazard, so it's not that this won't ever become a issue, it just hasn't particularly been a issue so far, so would prefer to think through versioning a bit first, especially for the merge of the parser-data branch (which will probably constitute a 1.0 and for which we might want to create separate .so versions).

I see the importance of the version information as more closely correlated with the importance of that tool (i.e. how much work the library is doing) rather than the ubiquity of the tool. I only picked those particular examples because you likely have them. A better example would be something like Ogg Vorbis or Theora. I also note that leveldb has this kind of API in the C bindings (albeit as a pair of integers, rather than a string - extern int leveldb_major_version() and equivalent for the minor version).
Is the concern about introducing API that might become legacy? It really doesn't seem like that much code to maintain, and it is a convenient way for users (including bindings) to expose useful information.

Would simply like to consider it some more. As you mentioned above, libpostal has fairly unique versioning requirements as it's both software and trained models. With the next release, we'll likely start training models on some regular basis, so models can automatically incorporate updates to OSM and OpenAddresses over time. When certain changes are made to the C code, the models would have to be retrained to reflect them. In turn, some models may depend on a certain version of the code (model version in that case should probably be written into the data files themselves). There can also potentially be updates that involve no changes to code whatsoever, only a model update, and there's the question of whether those deserve a software version bump or not. There can potentially be parser labels added by just changing the training data. For some people looking to format the parser output as SQL tables, etc. that might even constitute an API change and thus a major version upgrade. Many people have expressed interest in training custom parsers, which I've largely tried to steer them away from doing, but it will inevitably happen, so that needs to at least be possible. Those are a few things that jump out anyway.
Re: leveldb it seems to define the version in both the Makefile and the header, where it's hardcoded: https://github.com/google/leveldb/blob/3080a45b626f8ddb474bc5e860796a48b51b3cf0/include/leveldb/db.h#L16, which is a bit bizarre.

I think of models as data, but that newer data versions might have a minimum code version requirement (which could be a minor version increment in semantic versioning as long older models would still work with the new format too, or a major version if they don't).
Output formats adding labels within the same basic format (JSON) wouldn't be an API break, because there is no assurance that any particular address has any particular label in any case.
So versioning for models is orthogonal to the versioning for code.

authors: bradh thatdatabaseguy

repo: openvenues/libpostal

license: mit


text:
support for model functions to update existing annotations

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

Feature request: allow external models to update existing annotations; i.e., take existing annotations as input and return the modified result.
I currently leverage the interactor and auto-annotation models to lessen the human effort (and am certainly getting much benefit from it!), but I find at times that it would be very useful to apply an interactor model to the results of another model, or some other combination.
As an example, suppose you wanted to first predict bounding boxes with one model, then pass the bounding boxes to DEXTR or HRNET for refinement into masks, and finally pass the resulting masks + crops through a classifier that is perhaps better at choosing the correct labels.
I know that I could currently roll all of these into a single "model" definition that responds to the existing infer(image) api, but I think it would be useful to more interactively test combinations of models, and could allow for some interesting new capabilities.

@matt-deboer , thanks for your feedback and the proposal. The pipeline of DL models can be a very impressive feature. I know that OnePanel tried to implement something like that based on the open source CVAT version. Also it is relatively simple to build UI for the feature. We can create a new model based on stitching together DL models together.

DL model1 -> DL model2 -> ...
Existing annotations -> DL model1 -> ...

Result of the pipeline can be updated annotations or some metrics (e.g. for validation purpose).

authors: matt-deboer nmanovic

repo: openvinotoolkit/cvat


text:
Add a simple UI through web browser then CLi.

We could add a simple UI through web browser if user don't want to bother with Cli, it's perhaps more intuitive, we could wrap up go cli with a web server, and some basic HTML template.

We may need to take a look at how to integrate wskdeploy into OpenWhisk management UI in Bluemix.
OpenWhisk editor in Bluemix supports two kind of interfaces: Web UI and the CLI.

CLI: Can wskdeploy be a part of wsk cli ? We may consider to use wsk deploy to invoke the real go program wskdeploy.
Web UI: The current web UI is not able to manage packages. We may add a section under manage menu called Package. We can allow users to import/delete packages. When importing a package, a URL is specified or a local zip/jar/tar file is specified and uploaded.

@daisy-ycguo ， please open a issue if you think we should integrate with blume mix cli, I'll close this one.

authors: daisy-ycguo lzbj

repo: openwhisk/openwhisk-wskdeploy


text:
*/cgi-bin/luci//admin/system/packages/ - error

http://wklej.org/id/1822729/

See 6c4341ee012b1c946f63a39d5b9a4e5b0abc1f75

repo: openwrt/luci


text:
luci-app-ddns: Complete update of the Spanish language

Only the .po file of the application has been edited.
Signed-off-by: Franco Castillo castillofrancodamian@gmail.com

The binary .mo file should not be included in the PR.
Otherwise it looks ok, as you have even remembered to sign-off the commit

The binary .mo file should not be included in the PR.
Otherwise it looks ok, as you have even remembered to sign-off the commit

Delete that .mo file?

Delete that file in git, add the change, amend the commit, and force-push to update the PR

Commits squashed together with git rebase -i HEAD~2 and applied manually as 7f172e1a2

source: gharchive/pull-request

authors: castillofrancodamian hnyman


text:
luci-app-firewall: add some german translations

Signed-off-by: Martin Schiller ms@dev.tdt.de

Added some suggestions which fit better imho.

Thanks, will update the pr.

@jow- Is the patch ok now?
Or did you mean I should integrate your suggestions with the parentheses?

Yep, looks fine to me now. Merged, thanks.

authors: jow- sch-m


text:
luci-ssl: Remove polarssl dependancy

The openssl backend seems to work in addition to the polarssl one. I imagine mbedtls does as well.

NAK from me here. The purpose of luci-ssl is to provide a convenient way to install all required bits to have working https for luci. Your change breaks that (there is no opkg-installable libustream package).
If you want to use another backend don't select luci-ssl but pick the components (px5g, uhttpd-mod-tls, libustream-*, luci) manually.

authors: jow- neheb


text:
Start using BytecodeWriterConfig to guard against forward incompatibility

https://github.com/llvm/llvm-project/blob/b7fb2a3fec7c187d58a6d338ab512d9173bca987/mlir/include/mlir/Bytecode/BytecodeWriter.h#L82-L86
LogicalResult mlir::writeBytecodeToFile(Operation *op, raw_ostream &os,
                                        const BytecodeWriterConfig &config) {
  BytecodeWriter writer(op, config.getImpl());
  writer.write(op, os);
  // Currently there is no failure case.
  return success();
}

Fixed in #1512.

repo: openxla/stablehlo


text:
[Question] Need a tutorial / manual of feature Device Manager

What happened:
I saw that in OpenYurt 0.4.0 that the road map already support the Device Manager. but I only found the following https://github.com/openyurtio/openyurt/blob/master/docs/proposals/20210310-edge-device-management.md proposal doc on this topic. I would like to try this feature with EdgeX foundry .
What you expected to happen:
Need a tutorial / manual of feature Device Manager
How to reproduce it (as minimally and precisely as possible):
N/A
/kind question

@gaofeng1973 Thanks for filing the issue. The DeviceManager is still under development. We will add the manual once the feature is ready.

@gaofeng1973 DeviceManager has been released in OpenYurt v0.5.0, the repo is here: https://github.com/openyurtio/yurt-device-controller

repo: openyurtio/openyurt


text:
detect the openyurt version automatically

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage
/sig storage

What this PR does / why we need it:
So far, we need to update GIT_VERSION in the init.sh manually when updating the new version of OpenYurt. With this pr, we can do it automatically. Here's the logs of git describe --abbrev=0.
ys3@ys-desktop:~/Github/openyurt$ git describe --abbrev=0
v0.5.0

Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Does this PR introduce a user-facing change?

other Note

/lgtm
/approve

authors: Congrool rambohe-ch


text:
Set default chart image tag as 0.6.0

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage
/sig storage

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Does this PR introduce a user-facing change?

other Note

/lgtm
/approve

repo: openyurtio/yurt-app-manager


text:
Expose Cassandra's default port to the host

All in the title.

thanks!

authors: adriancole jfeltesse-mdsol

repo: openzipkin/docker-zipkin


text:
Short Buffer for Data Decode Error

[  13.202]   ERROR dilithium/protocol/westworld3.(*rxPortal).run: unexpected mt [10] (short buffer for data decode [0 < 9])
[  13.418]   ERROR dilithium/protocol/westworld3.(*rxPortal).run: unexpected mt [10] (short buffer for data decode [0 < 9])
[  15.322]   ERROR dilithium/protocol/westworld3.(*rxPortal).run: unexpected mt [10] (short buffer for data decode [0 < 9])

Should be resolved. Was unref-ing the buffer when it was a duplicate rx, even though we still might have RTT processing to do on the buffer.

repo: openziti/dilithium


text:
XmlDomMapJavaToXml[LANG]Test failure due to timezone issues

Describe the bug
The build fails for some tests due to a comparison failure that indicates timezone issues:
Error:  Failures:
Error:    XmlDomMapJavaToXmlGroovyTest>XmlDomMapJavaToXmlScriptTest.shouldMapJavaToXml:39 expected:<...>2015-04-04T00:00:00[+02:00]</ns2:date>
        ...> but was:<...>2015-04-04T00:00:00[Z]</ns2:date>
        ...>
Error:    XmlDomMapJavaToXmlJavascriptTest>XmlDomMapJavaToXmlScriptTest.shouldMapJavaToXml:39 expected:<...>2015-04-04T00:00:00[+02:00]</ns2:date>
        ...> but was:<...>2015-04-04T00:00:00[Z]</ns2:date>
        ...>
Error:    XmlDomMapJavaToXmlPythonTest>XmlDomMapJavaToXmlScriptTest.shouldMapJavaToXml:39 expected:<...>2015-04-04T00:00:00[+02:00]</ns2:date>
        ...> but was:<...>2015-04-04T00:00:00[Z]</ns2:date>
        ...>
Error:    XmlDomMapJavaToXmlRubyTest>XmlDomMapJavaToXmlScriptTest.shouldMapJavaToXml:39 expected:<...>2015-04-04T00:00:00[+02:00]</ns2:date>
        ...> but was:<...>2015-04-04T00:00:00[Z]</ns2:date>
        ...>
Error:    XmlDomMapJavaToXmlTest.shouldMapJavaToXml:36 expected:<...>2015-04-04T00:00:00[+02:00]</ns2:date>
        ...> but was:<...>2015-04-04T00:00:00[Z]</ns2:date>
        ...>
[INFO]
Error:  Tests run: 650, Failures: 5, Errors: 0, Skipped: 0

To Reproduce
This fails on GitHub CI, e.g. this log.
Expected behavior
Tests should be resilient to the timezone of the machine the build runs on.

Issue is fixed by setting the timezone explicit in maven.config

repo: operaton/operaton


text:
Dell csi operator bugfix

Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

New Submissions

[ ] Does your operator have nested directory structure?
[ ] Have you selected the Project Community Operator Submissions in your PR on the right-hand menu bar?
[ ] Are you familiar with our contribution guidelines?
[ ] Have you packaged and deployed your Operator for Operator Framework?
[ ] Have you tested your Operator with all Custom Resource Definitions?
[ ] Have you tested your Operator in all supported installation modes?
[ ] Is your submission signed?

Updates to existing Operators

[x] Is your new CSV pointing to the previous version with the replaces property?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Submit operators to both upstream-community-operators and community-operators at once
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

@J0zi bug fix, due to No label appeared for certain drivers  could you please approve the changes ?

We have few issues in the Upstream operator versions and we fixed the issues in the existing version (which is v1.1.0).
So please rewrite the existing operator.

repo: operator-framework/community-operators


text:
make deploy failing as ServiceAccount is created in default namespace and RoleBinding is missing the namespace.

target/kubernetes/kubernetes.yml file got generated from the quarkus extension. The ServiceAccount created does not have any namespace that's why it gets created in the default namespace. As RoleBinding does not have the namespace mentioned throws the below error if you try to apply the above file.
Error from server (Invalid): error when creating "target/kubernetes/kubernetes.yml": ClusterRoleBinding.rbac.authorization.k8s.io "memcachedreconciler-cluster-role-binding" is invalid: subjects[0].namespace: Required value

Error from server (Invalid): error when creating "target/kubernetes/kubernetes.yml": ClusterRoleBinding.rbac.authorization.k8s.io "memcachedreconciler-crd-validating-role-binding" is invalid: subjects[0].namespace: Required value

What did you do?
Create docker image of operator and tries to run using make deploy.
What did you expect to see?
The operator will run without any error.
What did you see instead? Under which circumstances?
Got below errors
Error from server (Invalid): error when creating "target/kubernetes/kubernetes.yml": ClusterRoleBinding.rbac.authorization.k8s.io "memcachedreconciler-cluster-role-binding" is invalid: subjects[0].namespace: Required value

Error from server (Invalid): error when creating "target/kubernetes/kubernetes.yml": ClusterRoleBinding.rbac.authorization.k8s.io "memcachedreconciler-crd-validating-role-binding" is invalid: subjects[0].namespace: Required value

Environment
Operator type:
quarkus-memached-operator
Kubernetes cluster type:
kind
$ operator-sdk version
operator-sdk version: "v1.22.0-23-g6084e6cf-dirty", commit: "6084e6cf1eb393c38d9ebce8f9acee5628b3a5c3", kubernetes version: "v1.24.1", go version: "go1.18.3", GOOS: "darwin", GOARCH: "amd64"
$ java -version (if language is Java)
openjdk version "16.0.2" 2021-07-20
OpenJDK Runtime Environment (build 16.0.2+7-67)
OpenJDK 64-Bit Server VM (build 16.0.2+7-67, mixed mode, sharing)
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.0", GitCommit:"2c6062082e8dbbf36936b35dcc27c6882d3a2f67", GitTreeState:"clean", BuildDate:"2022-01-11T19:37:02Z", GoVersion:"go1.15.14", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-21T23:01:33Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
Possible Solution
Need to discuss this with the Quarkus team.

July 28th java operators meeting, waiting on Need to discuss this with the Quarkus team.

authors: jmrodri laxmikantbpandhare


text:
Service is forbidden error in UI

Type of question
Asking for help
Question
The UI shows an error services is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "services" in API group "" in the namespace "default".
Is there any documentation about how to set / change / add a service account with proper privileges or what is the best way do solve this issue?
What did you do?

Installed OLM on my k8s cluster using the scripted installation of release 0.13.0.
Executed make run-console-local to start the UI

What did you expect to see?
I expected the UI to work
What did you see instead? Under which circumstances?
An error message services is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "services" in API group "" in the namespace "default"
Environment

operator-lifecycle-manager version:
https://github.com/operator-framework/operator-lifecycle-manager/releases/tag/0.13.0

Kubernetes version information:

Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.1", GitCommit:"d224476cd0730baca2b6e357d144171ed74192d6", GitTreeState:"clean", BuildDate:"2020-01-14T20:56:50Z", GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind:
Bare metal

I have also tried to install the Operator Lifecycle Manager on baremetal kubernetes and I've got the same error when I run the UI and would also like help understanding how to fix the issue.
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.10", GitCommit:"7a578febe155a7366767abce40d8a16795a96371", GitTreeState:"clean", BuildDate:"2019-05-01T04:14:38Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.10", GitCommit:"7a578febe155a7366767abce40d8a16795a96371", GitTreeState:"clean", BuildDate:"2019-05-01T04:05:01Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}

@SnuK87 not sure if you are still having this issue but I solved it on my environment. Here's my situation:
Baremetal kubernetes installation v1.11.10 and I've followed exactly the same steps that you did in your initial question and got the same error:
services is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "services" in API group "" in the namespace "default"

My understanding of the problem:
The "default" serviceaccount in the "kube-system" namespace doesn't have a role binding or a a cluster role binding and so it doesn't have the permissions it needs to query resources (services etc.). I'm guessing that Openshift gives the kube-system:default service account the permissions it needs and bare metal doesn't but I'm not an expert on Openshift...
My solution:
Create a defaultrolebinding.yaml file for a cluster role binding with the following content:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: default-role-binding
subjects:
- kind: ServiceAccount
  name: default
  namespace: kube-system
roleRef:
  kind: ClusterRole
  name: cluster-admin
  apiGroup: rbac.authorization.k8s.io

Then kubectl apply it:
kubectl apply -f defaultrolebinding.yaml
The cluster-admin role probably has too much power but it'll give the OLM UI the power it needs at least.

@chowarth123 Thank's a lot for your response. I will give it a try when I find some time.
We are still far away from production and just use this as a PoC, so it doesn't really matter now if the cluster-admin role has too many priviliges.

This issue is stale. Closed. Please feel free to reopen if needed.


text:
internal/util: don't panic if project directory is outside go path

MustSetGopath was panic'ing (log.Fatalf) if the project directory wasn't in $GOPATH. However, with go modules this is perfectly reasonable now. Since go modules are default, I figured this should just be removed. Perhaps a new check should be added when under '--dep-manager dep'? I'm open to adding that with some direction, but this unblocked me for now.

@gflarity Thanks for the PR! This something that's on our list to do.
The plan is to remove the requirement for projects that are using go modules to be in $GOPATH, but it requires more than just this change:

For projects that are still using dep, which we plan to support at least until Go 1.13 is released, the requirement for $GOPATH needs to remain.
Some of the other CLI commands require projects to be in $GOPATH so that the project repo can be deduced.

https://github.com/operator-framework/operator-sdk/blob/5f21f56218467e4a741aa82497d53b5c65bdb601/cmd/operator-sdk/add/api.go#L102
https://github.com/operator-framework/operator-sdk/blob/5f21f56218467e4a741aa82497d53b5c65bdb601/cmd/operator-sdk/add/controller.go#L81
We do this in a bunch of places:
$ grep -rn 'projutil.CheckAndGetProjectGoPkg()' cmd internal pkg version
cmd/operator-sdk/internal/genutil/openapi.go:36:	repoPkg := projutil.CheckAndGetProjectGoPkg()
cmd/operator-sdk/internal/genutil/k8s.go:35:	repoPkg := projutil.CheckAndGetProjectGoPkg()
cmd/operator-sdk/migrate/cmd.go:58:	_ = projutil.CheckAndGetProjectGoPkg()
cmd/operator-sdk/migrate/cmd.go:75:		Repo:           projutil.CheckAndGetProjectGoPkg(),
cmd/operator-sdk/migrate/cmd.go:129:		Repo:           projutil.CheckAndGetProjectGoPkg(),
cmd/operator-sdk/add/controller.go:81:		Repo:           projutil.CheckAndGetProjectGoPkg(),
cmd/operator-sdk/add/api.go:102:		Repo:           projutil.CheckAndGetProjectGoPkg(),
cmd/operator-sdk/up/local.go:186:		PackagePath: filepath.Join(projutil.CheckAndGetProjectGoPkg(), scaffold.ManagerDir),
cmd/operator-sdk/new/cmd.go:151:		Repo:           filepath.Join(projutil.CheckAndGetProjectGoPkg(), projectName),
cmd/operator-sdk/build/cmd.go:190:			PackagePath: filepath.Join(projutil.CheckAndGetProjectGoPkg(), scaffold.ManagerDir),
cmd/operator-sdk/build/cmd.go:244:				Repo:           projutil.CheckAndGetProjectGoPkg(),
cmd/operator-sdk/olmcatalog/gen-csv.go:80:		cfg.Repo = projutil.CheckAndGetProjectGoPkg()
internal/pkg/scaffold/internal/deps/print_go_mod.go:31:	repo := projutil.CheckAndGetProjectGoPkg()

Thinking off the top of my head here, we'll need to update projutil.CheckAndGetProjectGoPkg() to be able to return the repo path using another criteria if the project is using go modules (maybe by pulling the module path out of the go.mod file). And I think we'll also have to have the user to pass in the module path when creating a new project if it isn't in $GOPATH.
Thoughts?
/cc @estroz @LiliC @shawn-hurley @theishshah @hasbro17 @AlexNPavel

Unfortunately using the module path in a go.mod file could cause issues if the project isn't in that module path on disk, ex. github.com/kubernetes-sigs/controller-runtime vs sigs.k8s.io/controller-runtime. We could still use that module path until we finish working on global configuration (see #1400), and error if the project path doesn't have that module path suffix on-disk.

A quick glance of the usages of projutil.CheckAndGetProjectGoPkg() shows we typically use that path for generating import paths in scaffolded files. I could be overlooking something, but in the Go modules world, we no longer care about the on-disk path. The module path is what we'd want to scaffold into the imports, right?
For example, I could create $HOME/projects/memcached-operator with a go.mod file that specifies the module as github.com/joelanford/memcached-operator. The on-disk path is useless for go imports, and I'd want to use the module path everywhere, I think.
The other usage seems to be to build package path strings that we pass to go commands. I'm not exactly sure how that works with go modules, but it could be that we need to use relative paths instead of package paths, e.g.
go build github.com/joelanford/memcached-operator/cmd/manager

becomes
go build ./cmd/manager

@joelanford you are correct as long as the project is using modules. However if the project is using dep then the SDK needs to revert back to the current behaviour right?

However if the project is using dep then the SDK needs to revert back to the current behaviour right?

Yes

#1457 captures the idea of what this PR is trying to fix.

Closing in favor of #1475

authors: estroz gflarity joelanford

repo: operator-framework/operator-sdk


text:
Add DSE and a new AST infrastructure to StencilKernel

This merge represents a massive step towards Devito-3.0.It integrates the DSE with the current StencilKernel and adds a new flexible AST node and tree-visitor infrastructure to represent and manipulate arbitrary loop nests. In particular this merge adds:

Perform symbolic DSE optimisation on raw incoming SymPy expressions before building Iterations
Add a hierarchy of AST nodes that include Expression and Iteration among others
Add base classes for tree traversal visitors:

Visitor for passive tree traversal, eg. finding things in the AST
Transformer for manipulating and re-building a tree

FindSymbol visitor, allowing us to infer the kernel signature more elegantly
FindSection visitor and Timer node, allowing us to automate section-specific profiling in C
SubstituteExpression transformer that performs symbolic substitution on Expression nodes in a tree
ResolveIterationVariable transformer that creates and substitutes explicit iteration variables for Dimensions, including explicit buffer variables (eg. t0, t1, t2) for buffered variables

What can I say, this is a joint PR from me and Michael, so maybe someone else should review this code.
I again skimmed through it. There's a lot of polishing that needs to be done, but the PR is already massive. I therefore think this should land ASAP, since it will be followed by a stream of smaller PRs

Signed off in the chat by @ggorman. So merging now...

repo: opesci/devito


text:
Zerotier official package

Would you consider adding Zerotier as a package with GUI configuration?
https://forum.opnsense.org/index.php?topic=5015.0

@dharrigan seems to be working on it https://github.com/opnsense/plugins/tree/master/net/zerotier

Yikes, sorry I missed that :(
Closing...

@obrienmd no problem, lots of things going on here, hard to keep up :)

It'll be in 17.7.1 officially. 😊

On 14. Aug 2017, at 18:30, Ad Schellevis notifications@github.com wrote:
@obrienmd no problem, lots of things going on here, hard to keep up :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Sweet. Looking forward to giving it a test!

Wow... Nice. Works awesome from initial testing, shows up in interface assignments and all.
I'm curious, if I bind , say OPT4 to this interface and set up routing over it (OSPF, BGP, etc.), will it "change" upon reboot enough to break things given it's "dynamic" (for lack of a better term)?

Hi,
Thanks. It's still a work in progress and I welcome the feedback to make it better - I think from my testing there is an issue when binding to an interface, that somehow it doesn't quite work.
The plugin should store its zerotier configuration (i.e., the network association) so that on reboot the interface will come back up again (and rejoin the zerotier network).
Let me do some more testing on binding to interfaces (I may need some help from the OPNsense core team on this one).
Do let me know how it goes for you! Don't forget to backup your OPNsense configuration beforehand :-)
-=david=-

Sorry, I need to move this grousing over to plugins :)

authors: AdSchellevis dharrigan fichtner obrienmd

repo: opnsense/core


text:
Can't get IPV6 to work, trying to add 'Prevent Release', but it doesn't exist.

I've been using OPNsense for a couple of years now and have always been working with IPV4. Recently my ISP also allowed my home to have IPV6 enabled, but I can't get it to work out.
From the email I've gotten from my ISP they only said to configure the Prefix delegation size to 56, and to have it as DHCPv6. Whilst it does allow my NIC to go to IPv6, I can't seem to get an IP.

While I was googling I found out that I probably need to enable the so-called function 'Prevent release' under DHCPv6 client configuration.
But there it stops for me, I can't find the Prevent release button, even though it is shown on the website.
https://docs.opnsense.org/manual/interfaces.html
Is there any way I can get this back, or am I doing something completely wrong?
Greetings,
Bjorn

oops someone forgot to update the docs, Prevent release can be found in Interfaces: Settings. fixed in opnsense/docs@cc02767

Oh thanks! There it was, sadly I still don't have IPv6 but this is at least a step forward ( I hope)

I would try to enable send prefix hint and also enable only request prefix. Some providers don't work without those (despite what they say).
Mind you, prevent release only works if you already got one which you said you haven't.
Cheers,
Franco

also enable only request prefix

Doesn't this mean that the WAN won't get an IP?, because who does then get the IPV6 ip?
(Do note I am new to IPv6 and am just trying to get a lan-to-wan internet connection over IPv6)
I've tried to follow this, but did not work: https://docs.opnsense.org/manual/how-tos/ipv6_dsl.html

Yes and no depending on you ISP.
Yes, but you still get a link-local router which you can use and it works.
No, since it would still work with SLAAC afterwards if the ISP configured it.
Any sort of "generic" IPv6 configuration is bound to fail for ISP reasons. There's a bunch of specific tutorials in the documentation for this purpose but unfortunately not a lot of users submit their success stories for the documentation.
Cheers,
Franco

PS: If you don't have PPPoE "Use IPv4 connectivity" does nothing. It's worth disabling it but I doubt it makes a difference. If you want to look closer set debug level for IPv6 client and grab the logs from system log.

As right now my Interfaces settings are like this:

I wonder if any DHCP Unique Identifier is needed?
I've also seen that I need to restart my modem/router to be able to pass the 'Prefix Delegation' or so. Is it common to restart the router to achieve this?
Also, my WAN setup now contains the following:

I wonder if any DHCP Unique Identifier is needed?

One is generated by dhcp6c and stored on the system. Grab the logs from dhcp6c under system: log files: general.
In general it also matters if you try to emulate ISP router or are behind it.

(oh and those interface generic IPv6 client settings require a reboot for better or worse)

I wonder if any DHCP Unique Identifier is needed?

One is generated by dhcp6c and stored on the system. Grab the logs from dhcp6c under system: log files: general.
In general it also matters if you try to emulate ISP router or are behind it.

The network infrastructure is a bit complex, but the WAN port is the only devices connected to the modem (which is set to bridge mode and also provides the IPv4).

@bjornstevens can you disable the trackers? ue0 in particular.. something errors out here

I removed the ue0, since it is/was a backup WAN connection that doesn't get used anymore.
What do you mean by disable trackers?; Monitoring of the gateway?

the tracking configuration from the non-wan interfaces (ue0 being one of them)

The only one tracking right now is LAN, I will disable that one and reboot later today!

authors: bjornstevens fichtner


text:
security/acme-client: Add support for the Leaseweb API

Hello,
i've installed the ACME-Client plugin in the Opnnsense fw i'm running.
However, i'm missing the Leaseweb options for DNS validation.
When i look @ the source code where this plugin is based upon, there is a leaseweb file available.
Can this be implemented in this plugin as well?
thanks!

This will be available in the upcoming os-acme-client release 1.31.

authors: fraenki tmaniac

repo: opnsense/plugins


text:
os-bind: zone transfer "none" allows zone transfer by default

Information

Plugin version: 1.13
Package version: bind 9.16.5_1
Configuration URI: /ui/bind/general/index#domains

Problem
A master zone has "Allow Transfer" option to choose which ACL the server allows for transfer requests,
but if you select the option "none" there is no allow-transfer {none;}; option set in named.conf.
This allows a zone transfer per default, which states a security risk
Possible solutions
Add allow-transfer {none;} if "none" is selected.
Workarounds
A) Create an ACL for e.g. 127.0.0.1 and chose this in the "Allow Transfer" option.
B) Block TCP Queries in Firewall for DNS/BIND Port (e.g. 53), since zone transfer is done via TCP.

Not sure how to proceed here.
None should be default, if one requires security an acl can be added to it.

None should be default, if one requires security an acl can be added to it.
Maybe it should be made clear that "none" does not mean no zone transfer allowed.
I assumed, if I select "none" there is no possibility to transfer a zone, which is not the case.

Maybe it would be possible to add an Option "NoACL" to the drop down list to have the choice between, "NoACL", "None" and the defined ACLs. "None" is in my Opinion a bad label in the bind context for saying there is no ACL configured.

Give me a week when I am back at a Computer to think about it

Ok, I had a look. The problem is that OPNsense calls nothing selected as none but BIND uses none as noone. So this is a bit misleading when coming from BIND. As I don't want to break current setups where things work cause of not using an ACL, I'd suggest to enhance the help-text that transfer is allowed from everywhere when nothing is set.

authors: laoclos mimugmail


text:
Cookbook tags are not getting annotated as 'releases' in github

According to github the last release was 'v2.3.10.' However supermarket and the tags suggest the latest version if 2.6.0.

This should be resolved with v2.7.0

repo: opscode-cookbooks/apt


text:
Update dependency on mysql cookbook to support v6.0+

The dependency on the mysql cookbook is defined as:
depends 'mysql', '~> 5.0'

The mysql cookbook is now at version 6.0.3 - could the dependency be updated to support the latest mysql cookbook versions?

The mysql cookbook is now at version 6.0.6
+1

The mysql cookbook is now at version 6.0.6
+1

It looks like version 3.0.3 of this cookbook doesn't have an explicit dependency on the mysql cookbook.  Perhaps this issues can be closed?

Yes, It can be closed.

Closing, the dependency has been removed.

authors: ajkerr lluiscanals

repo: opscode-cookbooks/database


text:
Fixed download URL for Server 2003R2

Because the 2003R2 url no longer exists and uses 2008R2 link instead, we need to just point to the 2008R2 location.
Obvious fix.

I have signed the CLA how do I get this updated to reflect this?

@blairham sometimes I have to poke the Curry bot to get it to re-evaluate repositories. It's supposed to happen automatically though.

Both of these links still give me valid download packages. Can you verify the error you were seeing?
https://www.opscode.com/chef/download?p=windows&pv=2003r2&m=x86_64
https://www.opscode.com/chef/download?p=windows&pv=2003r2&m=i686

my guess is chef has fixed it with a proper redirect, as it was not working before.

Thanks! Glad it is working now.

authors: blairham btm

repo: opscode/knife-windows


text:
deploy_scp returns exit code 0 when package is missing

$ opsk deploy_scp XYZ
package is missing please run opsk package first
$ echo $?
0

... which breaks automation

Fixed will be added to next release
Thanks

authors: ilyash-p narkisr

repo: opskeleton/opskeleton


text:
Link to preview on frontend

Hi, thanks for the package.
I wonder if it's easy to extend the package with the option, that would allow admins to see draft resource in frontend, within the design of your website.
Possible solution:

Add another button next to view button that would lead to the real resource view page
It would be available for this admin session only

Thanks in advance.

Is this something you had in mind?

Hi,
Just to summarize, sorry for not being clear.

I have admin panel that allows to create a news for my website
I have website where news are displayed
I think it will be useful to have a button to View News page within frontend design that would allow to see how this news content looks like, probably we can have a poor formatting, etc.

Thanks much!

Hi
I don't think that we can implement this, because each user will have different API and different urls.
I think that it's something that each user will have to implement themselves.
We've done something similar in one of our packages nova-page-manager
I'll put a snippet below simplified version of our implementation.
            Text::make('Slug', function () {
                // get preview_token
                $previewToken = $this->preview_token;
                // create a query parameter '?preview=232asmda'
                $previewPart = $previewToken ? '?preview=' . $previewToken : '';
                // get page path: localhost:8000/home-page
                $pagePath = $this->resource->path;
               // add preview part to path: localhost:8000/home-page?preview=232asmda
                $pageUrl = $pageBaseUrl . $previewPart : null;
                $buttonText = $this->resource->isDraft() ? 'View draft' : 'View';

                return "

                            $pagePath
                            $buttonText

";
            })->asHtml()->exceptOnForms(),

That code will display this in index and details view.

You'd still have to handle it in your API that returns the news content

Closing this for now. If there are more recommendations on how to make this work seamlessly, i can reopen it.

Well I just had an idea to implement a function that would generate URL to view, it would be custom for each project. So you just use a model but the package would add extra button next to view to display this if a function is called 👍
Thanks anyway!

authors: KasparRosin vbezruchkin

repo: optimistdigital/nova-drafts


text:
Functionality to Hide 'Save Settings' button via Authorization

Is it possible to hide the 'Save Settings' button based from an Authorization Policy?
The use case is to only allow read-only of the entire Nova Settings page when a user's role is 'view-settings' only.

Is it possible to hide the 'Save Settings' button based from an Authorization Policy?
The use case is to only allow read-only of the entire Nova Settings page when a user's role is 'view-settings' only.

I think in this case is feature request

hi @kevariable - yes please! That would be really great. Thanks for this awesome Nova Settings piece. It really saved us a lot of time.

Added in 3.5.2, please follow https://nova.laravel.com/docs/3.0/resources/authorization.html#authorization

Added in 3.5.2, please follow https://nova.laravel.com/docs/3.0/resources/authorization.html#authorization

Thanks a lot! I'll give it a go

Hi @Tarpsvo I exposed the settings model and created a SettingsPolicy that has several methods there such as viewAny, view, create, update, delete, etc. similar to what's outlined here https://nova.laravel.com/docs/3.0/resources/authorization.html#authorization.
Authorization to show/hide the entire settings resource or show/hide on a per field basis works great jus tfine.
I noticed that all auth returned to false even if I force it to return true. Is there any configuration I may have been missing?

Can you elaborate and show me the policy you created? I'm not sure I understand what's not working.

I have the below Settings Model and SettingsPolicy. I implemented it based from how my other Policies are setup i.e. UserPolicy, PostsPolicy, etc.
Based from this setup, even after I assign the user a view-settings or update-settings permission, they're not able to see the Nova Settings Resource.
Apologies in advance if I've done it incorrectly. I've just set it up similar to the existing policies I have.
Settings Model
`<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use OptimistDigital\NovaSettings\NovaSettings;
class Settings extends Model
{
protected $primaryKey = 'key';
public $incrementing = false;
public $timestamps = false;
public $fillable = ['key', 'value'];
public function __construct(array $attributes = [])
{
    parent::__construct($attributes);
    $this->setTable(NovaSettings::getSettingsTableName());
}

public function setValueAttribute($value)
{
    $this->attributes['value'] = is_array($value) ? json_encode($value) : $value;
}

public function getValueAttribute($value)
{
    $originalCasts = $this->casts;
    $this->casts =  NovaSettings::getCasts();

    if ($this->hasCast($this->key)) {
        $value = $this->castAttribute($this->key, $value);
    }

    $this->casts = $originalCasts;

    return $value;
}

public static function getValueForKey($key)
{
    $setting = static::where('key', $key)->get()->first();
    return isset($setting) ? $setting->value : null;
}

public function categories(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
{
    return $this->belongsToMany(Category::class)
        ->withTimestamps();
}

}
`
Settings Policy
`<?php
namespace App\Policies;
use App\Models\Settings;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class SettingsPolicy
{
use HandlesAuthorization;
/**
 * Determine whether the user can view any models.
 *
 * @param  \App\Models\User  $user
 * @return \Illuminate\Auth\Access\Response|bool
 */
public function viewAny(User $user)
{
    if ($user->hasPermissionTo('view-settings')) {
        return true;
    }
}

/**
 * Determine whether the user can view the model.
 *
 * @param  \App\Models\User  $user
 * @param  \App\Models\Settings  $settings
 * @return \Illuminate\Auth\Access\Response|bool
 */
public function view(User $user, Settings $settings)
{
    if ($user->hasPermissionTo('view-settings')) {
        return true;
    }
}

/**
 * Determine whether the user can create models.
 *
 * @param  \App\Models\User  $user
 * @return \Illuminate\Auth\Access\Response|bool
 */
public function create(User $user)
{
    if ($user->hasPermissionTo('update-settings')) {
        return true;
    }
}

/**
 * Determine whether the user can update the model.
 *
 * @param  \App\Models\User  $user
 * @param  \App\Models\Settings  $settings
 * @return \Illuminate\Auth\Access\Response|bool
 */
public function update(User $user, Settings $settings)
{
    if ($user->hasPermissionTo('update-settings')) {
        return true;
    }
}

/**
 * Determine whether the user can delete the model.
 *
 * @param  \App\Models\User  $user
 * @param  \App\Models\Settings  $settings
 * @return \Illuminate\Auth\Access\Response|bool
 */
public function delete(User $user, Settings $settings)
{
    //
}

/**
 * Determine whether the user can restore the model.
 *
 * @param  \App\Models\User  $user
 * @param  \App\Models\Settings  $settings
 * @return \Illuminate\Auth\Access\Response|bool
 */
public function restore(User $user, Settings $settings)
{
    //
}

/**
 * Determine whether the user can permanently delete the model.
 *
 * @param  \App\Models\User  $user
 * @param  \App\Models\Settings  $settings
 * @return \Illuminate\Auth\Access\Response|bool
 */
public function forceDelete(User $user, Settings $settings)
{
    //
}

}
`

You didn't need to overwrite the Settings model. You could've just used the model from this package.
\OptimistDigital\NovaSettings\Models\Settings;

However, if you did overwrite the model - you should also define it in the config/nova-settings.php under the models.settings key.

authors: Tarpsvo kevariable pmreyes

repo: optimistdigital/nova-settings


text:
Getting reactor instance into components?

What is the recommended way to get the reactor instance into each component that needs to use it?
I initially just put it on the window object, which works, but that isn't really a good idea.  I can pass it into my react-router as below:
Router.run(routes, Router.HistoryLocation, function (Handler, state) {
  React.render(<Handler reactor={reactor}/>, document.body);
});

which gives me the reactor on this.props.reactor, but that is too late for passing into NuclearReactMixin(reactor).
I could setup a singleton wrapper component and import/require that I suppose.  What do you guys do?

Nevermind.  I see now that you've created a singleton in the TodoMVC example.  That's what I was leaning towards too. https://github.com/jordangarcia/todomvc-nuclear-react/blob/master/src/nuclear/reactor.js

repo: optimizely/nuclear-js


text:
Get pre-commit git hooks working

Currently, eslint is not being enforced upon committing.

I've added linting to travis CI which I think is a better compromise between getting people to install pre-commit hooks (which can be a little slow)

authors: bhamodi jordangarcia


text:
Feature request: DatafileProjectConfig should be round-trippable

Given that the DatafileProjectConfig represents the object form of the datafile JSON structure, it seems reasonable to expect that his object could be re-serialized to JSON. A compelling use-case is for servers to use the ruby-sdk for polling/fetching/storing the datafile and inline the datafile into (cached) page requests. This way the client-side optimizely sdk can avoid another costly HTTP request to fetch data that the server already has.
A rough spike of this feature: (this proof of concept implementation relies on ActiveSupport extensions as_json and deep_transform_keys.)
      def datafile
        as_json.slice *::Optimizely::Helpers::Constants::JSON_SCHEMA_V2["properties"].keys
      end

      def as_json
        project_config_manager.config.as_json.deep_transform_keys { |k| k.camelize(:lower) }
      end

Even without the use-case described above, I would generally expect any library class which represents a serialized data structure to be round-trippable.

My apologies for the delay in response to this issue. The team is updating our processes and reviewing all open issues and PR's. If this Feature Request is still relevant, please add your suggestion to our idea portal here https://feedback.optimizely.com/ where it can be evaluated with the other ideas for the product.  From here it will be appropriately prioritized and brought to the engineering team.

authors: Tamara-Barum jasonkarns

repo: optimizely/ruby-sdk


text:
Release v1.1.0

Introduce support for event tags.
Add optional eventTags argument to track method signature.
Deprecating optional eventValue argument in track method signature.

Coverage increased (+0.2%) to 97.515% when pulling 3d6ac6504cd0a272dbedb2a057f7300d0a2c7c90 on devel into 669580cfc8799bba277c427032de5c3406bdfb9f on master.

authors: coveralls onufryk


text:
Conversion After MediaUploader - No Model?

I am trying to create a media library where you can upload media without it being attached to any model. This is my function for saving the media:
private function save_update_media($request)
{
    $token = $request->input('_token');
    if(\Session::token() !== $token) {
        throw new TokenMismatchException;
    }

    $file = $request->file('file');
    $filename = Carbon::now()->timestamp . '-' . $file->getClientOriginalName();
    $name = ('' != $request->input('name')) ? $request->input('name') : preg_replace("/[\-_]/", ' ', explode('.', $file->getClientOriginalName())[0]);

    $media = MediaUploader::fromFile($file)->useFileName($filename)->useName($name)->upload();
    return $media->id;
}

So this is a globally available media item. My issue is - How to perform any conversions after upload without attaching to a specific model?

I appear to have gotten this working.
Added this at top of Controller:
use Optix\Media\ImageManipulator;
This added this:
app(ImageManipulator::class)->manipulate(     $media, ['thumb'] ); after the $media = MediaUploader::fromFile($file)->useFileName($filename)->useName($name)->upload(); line.
Hopefully, this helps someone or someone can tell me what I'm doing wrong.

Hi @benleeth,
Thanks for updating the issue with your solution. As an alternative method, you can also dispatch the conversion creation as a job by doing the following:
use Optix\Media\Jobs\PerformConversions;

PerformConversions::dispatch($media, ['thumb']);

I plan on adding a method to the MediaUploader class to handle this case in a future version.
Thanks,
Jack

repo: optixsolutions/laravel-media


text:
WMS ID: 11452 Added a lab to Data Flows workshop

Add here your WMS ID
General requirements

Information in the workshop is adequate and updated
Code is correct and working
Links are correct
Make sure you enter the help email link in your manifest.json
Please make sure WMS URLs are updated as needed after your PR is approved

Checklist - Refer to the QA document for the complete list
Please confirm that the following is completed before submitting your PR

[ ] All filenames are lower case (including folders, images, files, etc.)
[ ] Filenames are descriptive
[ ] Your workshop folder structure should be similar to the one used in the sample workshop (https://github.com/oracle-livelabs/common/tree/main/sample-livelabs-templates/sample-workshop)
[ ] Are you using multiple versions (desktop/, sandbox/, tenancy/)? Make sure that each of them contains a manifest.json and an index.html
[ ] Image references in markdown contain an alternate text

@NagwangGyamtso - Could you share the WMS ID of the other workshop folder that is being updated as part of this PR?

Hi Anoosha, just updated it. Thanks!

authors: NagwangGyamtso anooshapilli

repo: oracle-livelabs/analytics-ai


text:
WMS ID:11026 - Get Started with Oracle Exadata Database Service on Cloud@Customer.

WMS ID:11026
All changes were made from the last PR. This PR is for the workshop WMS ID:11026 - Get Started with Oracle Exadata Database Service on Cloud@Customer.
General requirements

Information in the workshop is adequate and updated
Code is correct and working
Links are correct
Make sure you enter the help email link in your manifest.json
Please make sure WMS URLs are updated as needed after your PR is approved

Checklist - Refer to the QA document for the complete list
Please confirm that the following is completed before submitting your PR

[x] All filenames are lower case (including folders, images, files, etc.)
[x] Filenames are descriptive
[x] Your workshop folder structure should be similar to the one used in the sample workshop (https://github.com/oracle-livelabs/common/tree/main/sample-livelabs-templates/sample-workshop)
[x] Are you using multiple versions (desktop/, sandbox/, tenancy/)? Make sure that each of them contains a manifest.json and an index.html
[x] Image references in markdown contain an alternate text

Added All the changes mentioned in PR #30 WMS ID:11026

Everything looks good from my POV.

@anooshapilli can we go ahead and approve?

Added all the changes and got reflected in the page thank you!

authors: bhenndricks leoneila

repo: oracle-livelabs/cloud-database-services


text:
Losing double type when returning 1.0 from JS

I have an application that runs JS code dynamically using Nashorn on Java 8. I'm migrating to GraalJS, but it seems that when you return 1.0 from JS, Nashorn returns Double 1.0, while GraalJS returns Integer 1.
Example Nashorn:
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.util.Map;

...
ScriptEngine engine = new ScriptEngineManager().getEngineByName("javascript");

Map<String, Object> result = (Map<String, Object>) engine.eval("function test() {return { testInt: 1, testDouble: 1.0 } }; test();");

//works
assert result.get("testInt").equals(1);
//works
assert result.get("testDouble").equals(1.0);
...

Example GraalJS:
import org.graalvm.polyglot.Context;
import org.graalvm.polyglot.Engine;
import org.graalvm.polyglot.Source;
import java.util.Map;

...
Engine engine = Engine.newBuilder().build();
try (Context context = Context.newBuilder().engine(engine).build()) {
    Source script = Source.create("js", "function test() {return { testInt: 1, testDouble: 1.0 } }; test();");

    Map<String, Object> result = (Map<String, Object>) context.eval(script).as(Map.class);

    //works
    assert result.get("testInt").equals(1);
    //doesn't work
    assert result.get("testDouble").equals(1.0);
}
...

pom.xml:
<dependency>
    <groupId>org.graalvm.sdk</groupId>
    <artifactId>graal-sdk</artifactId>
    <version>21.3.9</version>
</dependency>
<dependency>
    <groupId>org.graalvm.js</groupId>
    <artifactId>js</artifactId>
    <version>21.3.9</version>
    <scope>runtime</scope>
</dependency>

Note that there is no difference between 1 and 1.0 in JavaScript. It is the same value. It is an implementation detail of Nashorn that it returns Integer in one case and Double in another. We are not going to mimic this detail. I suggest you not to depend on the exact type (in either JavaScript engine).

authors: iamstolis stas-panasiuk

repo: oracle/graaljs


text:
Memory leak io.netty.handler.codec.DefaultHeaderImpl

I am created simple status check web application with helidon.
This program receive 1-3 request per second,
crashed by OutOfMemoryError at several hours.
Environment Details

Helidon Version: 1.1.0
Helidon SE
JDK version: Oracle 8_212
OS: Windows
Docker version (if applicable):

Problem Description
Checked some test with jvisualvm.
In operation, -Xmx option 128m, crashed at several hours,
Test1, -Xms option 16ms and 1 request per second, crashed at 15min.
Test2, -Xms option 16ms and 3 request per second, crashed at 5min.

request from chrome browser.

DefaultHeaderImpl increase each request, and was not GC.
Steps to reproduce
Sample Code
`public class HelidonStatusServer {
public static void main(String[] args) {
	new WatcherRunner().start();

	WebServer.create(
            ServerConfiguration.builder().port(8088).timeout(60_000).build(),
            Routing.builder()
            .get("/status", new StatusHandler())
            .register("/", StaticContentSupport.builder(Paths.get("www"))
                    .welcomeFileName("index.html").build())
            .build()
    ).start();
}

public static class StatusHandler implements Handler {

    @Override
    public void accept(ServerRequest req, ServerResponse res) {
    	res.headers().contentType(MediaType.APPLICATION_JSON);
    	res.headers().add("Access-Control-Allow-Origin", "*");
        res.send(StatusStore.toJson());
    }
}

}`
visualvm screenshot filtered netty packages

@umishu I have confirmed that this issue has already been fixed by PR #695 (and #702), which will be available in the next release.

authors: batsatt umishu

repo: oracle/helidon


text:
minor edits

Minor text edits, and I removed this line, "Please take a look at our wish list to get an idea of the load balancing improvements we would like to do."

Rosemary the doc makes reference to a "Traefik admin UI" the name of the UI is "Clean AngularJS Web UI" or "Traefik Web UI"

authors: mriccell rosemarymarano

repo: oracle/weblogic-kubernetes-operator


text:
Dark to Light Mode transition renders slider image invisible (white)

There is a specific issue that presents itself when the system in is Dark Mode when an application that uses MacControlCenterUI is run.
When the app is run, the controls initially look correct regardless of Light/Dark Mode.

Set system to Dark Mode
Launch the demo app in this package
Set the system to Light Mode
The slider becomes white which renders it invisible against the white background of the slider itself
Set system back to Dark Mode
The image reverts back to the correct dark-gray color it initially started with when the app launched in Dark Mode

All other controls are unaffected.

Also the slider background does not update when changing between Dark and Light mode.

repo: orchetect/MacControlCenterUI


text:
merge bubbles

merge bubbles

this already exists as something else true?

repo: ordinals-wallet/ordinals-collections


text:
feat: Add metrics for ARC

Description
Adds retains, releases and abs(retain-release) metrics based (thanks to @ser-0xff for the low level hooking).
Fixes #115
How Has This Been Tested?
Manual testing of sample benchmarks here, added a simple test.
Minimal checklist:

[x] I have performed a self-review of my own code
[x] I have added DocC code-level documentation for any public interfaces exported by the package
[x] I have added unit and/or integration tests that prove my fix is effective or that my feature works

Would be super with extra eyes on the atomics usage, don't know if 'relaxed' is correct.

Pretty neat, can see HistogramBenchmark:Mean driving heavy ARC traffic.

repo: ordo-one/package-benchmark


text:
New callbacks/events for v3

Hi,
The new version would be great to have two additional callbacks/events when modal shows and hide:

onShow
onHide (not strictly necessary, it is almost the same as a mix of onChange and onFirstConsent)

With these events, you can interact more easily with other popups on the page. You can also use it for statistics on how many users leave without interaction.

I also think they're useful.

The following 2 callbacks/events were added to v3 (will be included in the next release).

onModalShow
onModalHide

Check out the docs for details.

authors: lynt-smitka orestbida

repo: orestbida/cookieconsent


text:
genaration

i would like to make it generate like in the game (The Binding of isaac) with the option of more or less rooms big or small can someone pls help

no hallways or only small ones

repo: orfeasel/DungeonGenerator


text:
Open AI Ada text completion returns bad results in code but works in playground

Describe the bug
I'm trying to use the Ada language processor of OpenAi to summarize a piece of text. When I try to use their playground, the function works and I get a summarization that makes sense and can be used by humans.
This is the cURL from the playground:
curl https://api.openai.com/v1/completions \   -H "Content-Type: application/json" \   -H "Authorization: Bearer $OPENAI_API_KEY" \   -d '{   "model": "text-ada-001",   "prompt": "Please write a one paragraph professional synopsis:\n\nSome text",   "temperature": 0,   "max_tokens": 60,   "top_p": 1,   "frequency_penalty": 0,   "presence_penalty": 0 }'
This is the code that I use in PHP:
`$open_ai_key = 'xxx';
$open_ai = new OpenAi($open_ai_key);
    $complete = $open_ai->completion([
        'model' => 'text-ada-001',
        'prompt' => 'Please write a one paragraph professional synopsis: ' . $text,
        'temperature' => 0,
        'max_tokens' => 60,
        'frequency_penalty' => 0,
        'presence_penalty' => 0,
    ]);

    return $complete;`

I have also tried to use a both ada and davinci and in both cases it returns nonsense. I'm saying nonsense, because the text that it returns is not something that can be read and said, 'Hey, this is a proffesional synopsis'. I'm going to give an example of a sentence that I got in one of the iterations:
'It's not pretty and no I thought to myself, oh look IT'S NOT THAT REPUBLICAN kids would kno one of these things. OH IT'S A RESTRICTIOUS SCHOOL'.
I can assure you, there are no mentions of republicans or kids in the text that I'm processing.
My question is, am I doing something wrong? Does OpenAi work differently on their playground and in code?
To Reproduce

Write a new PHP function that will try to create a proffesional synopsis using the ada model.
Paste in a piece of text and make the request
Compare the results in the OpenAI playground and in code and see that they are wildly different.

Example text that I'm using:
Alright then. Uh So welcome to another episode of E. M. S. On the Mountain. This one from the mountain. Oh snap. This is the show for those interested in Austrian rulers medicine. I'm Sean as always joined by my backcountry partner mike. And today's show we're gonna talk about one of our cases we had, I don't know, probably a couple of years ago now, while back. Yeah, so this was mike's so he's going to lead us through this party. So I'm guessing because I'm so bad at the editing and the getting things online at a reasonable time that this will be the first case review that we put up on the interwebs. But this is a new thing we're trying out. We're uh we're gonna do a few shows from the mountain. So normally I sit in my basement and Sean sits in his basement. We stare at each other across the magic of the interwebs. But today we are literally sitting across the table from each other in a old old building in the middle of the woods, attempting to record something that's lively and exciting for you folks. So let's see how this goes. So, so if you hear background noise like no kidding animals, birds and random people, radios, people, doors, it's all part of the part of the party and it could be a train wreck, but I have a feeling that at least one person and only one person johnny b will give us his feedback on what he thinks about this and maybe our wives will care. But yeah, all right, so let's talk about this. We had a case a couple of years ago that started out as a normal, it's a normal saturday afternoon in the woods. And uh, the tones drop. No, the tones did not drop. I apologize. There was no tone drop it. There was a, there was a call on the radio from a uh, from a report of it went out as a person with a little trouble breathing. That was an understatement in a certain respect. And it was suggested that perhaps we go kind of check it out, see what's going on. So we jump in our magic buggy and bop on over, luckily this patient wasn't too too far away from where we were at the time. We head down trail we found said person, they were 100 yards off of a fire road. And that fire road was maybe 5200 yards from a paved road. So they weren't real deep in the woods. But they were definitely hiking. They were definitely on a trail. They were definitely about £400. Yes, Yes. They were just want to make sure we paint that map properly. So we're, we're about 100 50 yards down a rocky trail. Maybe 200. I said I'd go between two and 300. Okay, a little bit further. That trail led to eventually an intersection with a fire road and that fire road about 100 yards or so from hard top if you will. So here we are with a £400 individual who's breathing at a rate of, I don't know, 800 or so. It's more like it was, it was more like between 35 and 40. They were uh yeah, this patient was panting like a champion. Now let's back up because I love storytelling and I like to do it and completely jacked up time order because I didn't make notes prior to proceeding down trail. After we stepped out of our trusty steed, we were greeted by the patient's family member and this family member immediately informed us that they were within two or three minutes. They informed us that their family member was just having a quote sugar problem because they had the diabetes and that she was in fact a paramedic at one point but did not want to keep that up because they were going to make her do si es She didn't know she had to do si es tu research so she lost it real quick. Like but she definitely was a paramedic and she was definitely convinced that her family member was experiencing a sugar problem. Yeah. So I'm not so convinced that she was ever a paramedic. I'm just going by what I was dog hey, it is what it is. Yeah. So we also learned as we proceeded down to link up with said patient that a number of bystanders. Another a number. Excuse me not bystanders. A number of other hikers that had come by had provided various snacks and sugar free products because it was believed that this individual is experiencing a hypoglycemic event and needed more sugar. So upon arrival on scene, by the way, just a little note here, we did bring a cardiac monitor with us because it was only 100 yards or so. It was a report of a person having trouble breathing. The one and only time mike and I have ever taken a life pack down a trail. There was one other time. We'll talk about that one. That's when I carried it all the way down. Dark hollow for the girl with the weird chest thing. A 30 year old whatever. And I decided I was never doing that again. I'll have to cut out the dark hollow part because that's kind of Yeah, whatever carried it down that trail. So upon arrival, one of the first things a good paramedics gonna do is assess the scene. And then since it was reported that this person is having a sugar problem, we assess the state of her sugar needs keep in mind breathing at 35 to 40. Diaphragmatic. Sitting on a log, leaning against another nice bystander. Yeah. Trying to hold her upright so we get a quick finger prick. I don't remember what her blood pressure was off the top of my head. It wasn't astronomical. No, it was maybe upper one hundred's very low 200. Remember being better than mine. It wasn't. Yeah, nothing that made you go, Oh, she's good at, I mean she's breathing at like 40 And she's diaphragmatic. She's been out hiking. And did I mention that she's not a shrinking flower? So we grab the sugar and I will never forget the sugar number 768. And I thought to myself, uh, probably doesn't need any more sugar. So we do grab a quick 12 lead Until
Code snippets
No response
OS
Linux
PHP version
PHP 7.4
Library version
openai v3.4

Hi @vedran-korponajic ,
Can you produce the same test for openai-python? It should be straightforward to make. And please compare responses with my package. I'll be waiting for the results.

@vedran-korponajic can you reopen the issue after providing the info?
Now I’ll close the issue,
The reason why; need info

authors: orhanerday vedran-korponajic

repo: orhanerday/open-ai


text:
listener interface for long running actions

Listener mechanism for long running actions can help, esp for Hawk.init function it makes sense.

Hawk.init has callback now as optional.

authors: orhanobut yekmer

repo: orhanobut/hawk


text:
Monument-reward cards

Heya, is there a plan to add the monument reward Ability cards in? I see they're added to Any2cards
https://github.com/any2cards/gloomhaven/blob/master/data/milestone-ability-cards.js
Images: https://github.com/any2cards/gloomhaven/tree/master/images/milestone-ability-cards/trail-of-ashes
No idea why this is under a ToA folder
Adds a typically VERY nice ability card for each character

Hey, I didnt know these, it seems pretty simple to add, I'll do it

This is awesome, but is there any chance of hiding the card behind some form of spoiler shield or menu? You're supposed to not know about them until you achieve your "monument" and open the packet.

Hi there, thanks for putting the Milestone cards in. But these should be hidden behind some kind of ‘Unlock Milestone Reward for this class’ option…they’re a class-based quest that unlocks them for the whole class (not just character) after completion for the class in question. They didn’t ship with 1st printing Crimson Scales, but with 2nd printing and the Trail of Ashes expansion.

Added #242 to address unlocking milestones

authors: dtmcgregor kiwitrav orichalque


text:
In nightly, Option menu is covered on Abilities screen

Hi, this may be related to #218 but seeing the following when trying to use Options menu on the nightly:

Huh... Have refreshed page and am now unable to recreate that - even at various ctrl-zoom levels in the browser.

AAH! Recreated:  Only happens on Abilities screen

oh no :(

Thanks for the fix :)

authors: kiwitrav orichalque


text:
Server-Side transactions

Would server-side transactions be a possibility ? Perhaps even (to not encumber the core) as additional service, or even separate process ?

I was very enthusiastic about OrientDB, up to the point where I dived deep-enough to realize that transactions are only supported client-side (previously I just glazed over "tranactions are there", "oooh, they mention MVCC", and thought "supported"). Nearly everything else is "exactly how I'd wanted it", but for this one giant hole. In some settings you cannot even fully trust the clients. And it is - I imagine - a fuck-ton of finicky work to get it right -- so should it even be offloaded to "driver authors" ?.

Would it be possible to leverage the existing Java Client-side transactions ? Wrap the session in something / stick something in the session, and gain server-side transactions this way ?

Hi,
Transaction in java are both client side and server side, you can do only server side transactions doing a sql script like:
begin;
insert ....
update ...
commit;

like explained here: https://orientechnologies.github.io/docs/3.2.x/sql/SQL-batch.html

I never said I wanted to use Java client-side. Quite the contrary, I'll never write anything new on JVM (the most I'm willing to do is patch mission-critical Java crap).
Even if Java is a popular platform, most of the world will, forever, use something else. IMO if OrientDB is to be considered as serious player on the graph-database playing field, server-side transactions are a MUST for each and every client (must be moved to the server).
I'd re-open this, and assign it some "would-be-nice-in-future" tag.

Shiiiiit, let variable, conditions, waits, loops, my Turing-tarpit heaven-hell, it seems like "if you are willing to learn another scripting language, YOU CAN nearly HAS TRANSACTIONS.
Thanks a lot for the patience,

authors: Mr-Dispatch tglman

repo: orientechnologies/orientdb


text:
Fix for issue #5245.

This PR should fix issue #5245.

Super!

authors: lvca mmacfadden


text:
Union any

Allows a catch all Union matcher via the Symbol "any". If you have a big union list, or just don't care and want to catch any of of them (like the default in a switch statement), you can use the new any symbol. References issue #139
const { union } = require('folktale/adt/union');
const { any } = union;
const List = union('List', {
  Empty: () => {},
  Cons: (value, rest) => ({ value, rest })
});

List.Cons(1, List.Empty()).matchWith({
  Cons: (x) => 'cons',
  [any]: (x) => 'anything else'
});

This PR actually undo's the previous by no longer asserting that the matched object have the specific union your looking for. Instead, it'll attempt to find what union was matched first, then the any symbol, and finally will assert an error.
If this is worth merging, I can write up some documentation attempting to following what y'all have done so far with examples.

Coverage decreased, nooooOooOooooo... not on my watch, I'll fix that too.

@JesterXL I'm moving this little conversation off that diff thread to make it a little easier to follow.
I should also mention that I am not a maintainer of this project. I just happen to use this library and I just started contributing to it.

I envisioned it being like Exlixir's case/cond matchers

Could you elaborate a bit on what that sentence means? I'm unfamiliar with Elixir and I'm interested in hearing more about what you're trying to accomplish. I'm not sure I understand what it means to "forward the results along" to the default case.

My reasoning for this behavior comes from how I'd write a pattern match in an ML-like language (a language like Elm or Haskell or OCaml):
type Move
  = Miss
  | Hit Int Bool
  | Attack Int

run : Move -> String
run move = case move of
  Miss -> "miss"
  Hit damage isCritical ->
    if isCritical then
      "critical hit for " ++ (show damage)
    else
      "normal hit for " ++ (show damage)
  _ -> "?"

If I tried to write that pattern match differently, say like this:
run move = case move of
  Miss -> "miss"
  Hit damage isCritical ->
    if isCritical then
      "critical hit for " ++ (show damage)
    else
      "normal hit for " ++ (show damage)
  _ attackResult -> "?"

I'll get a syntax error. For instance, the Elm compiler fails like this:
-- SYNTAX PROBLEM ----------------------------------------------------- Main.elm

I ran into something unexpected when parsing your code!

33|         _ attackResult ->
              ^
I am looking for one of the following things:

    an arrow '->'
    whitespace

That's because ML's don't allow you to do anything specific with the variant of the union type once you've decided to handle it in the default case. If there's some specific behavior you want for a particular variant, it's better to explicitly state that by writing a specific case.
😅 That was a little long-winded. Is there anything I could explain a little better?

@jreut No worries. I don't know much about functional programming, so I'm learning as I go. I may mis-represent words or concepts by accident, so be forewarned.
Yeah, Elixir's cond and case are dope, check out the first case example and others. iex is like the node repl.
iex> case {1, 2, 3} do
...>   {4, 5, 6} ->
...>     "This clause won't match"
...>   {1, x, 3} ->
...>     "This clause will match and bind x to 2 in this clause"
...>   _ ->
...>     "This clause would match any value"
...> end
"This clause will match and bind x to 2 in this clause"

The union types being matched everywhere has lead to Maybe, Result, and Validators all using the matchWith method, which is really cool and easy to learn. However, in playing with it for a couple weeks it "felt" like the Elixir cond, and so my next immediate thought was "dude, we need a default when you really don't care, I just want a default condition to keep moving" like Elixir has.
Problem is I'm still learning this whole Union type thing, so perhaps it's not related and I shouldn't use it like that.
Naw, your Elm'ish example makes total sense. Maybe I'm longing for Elixir, but Folktale makes my JavaScript job fun, and I'm projecting, lol?

The pattern matching features in Elixir (case ... do) and Elm (case ... of) are similar. The major difference is that Elixir is a dynamic language, so the patterns you provide in Elixir don't have to be of the same type as the expression you're matching against, whereas in Elm it's not possible to do something like:
type X = A | B
type Y = C | D

case A of
  A -> "It's A"
  B -> "It's B"
  C -> "It's C" -- this line is an error because `C` isn't part of X

In Elixir you can mix strings and numbers and arrays in your patterns, and that's all cool because the checks are made dynamically.
The way default cases work in either are roughly the same, though. When @jreut suggested removing the parameter for the default case, the reasoning was more in the lines of "We don't know what value is going to be passed there, so we shouldn't pass one." This is because the default case may match more than one type of value.
Consider:
const Move = union('Move', {
  Miss: () => ({ }),
  Hit: (damage, critical) => ({ damage, critical }),
  Attack: (value) => ({ value })
});

Move.Miss().matchWith({
  Hit: ({ damage, critical }) => `${critical ? 'critical' : 'normal'} hit for ${damage}`,
  [any]: ({ value }) => `attack for ${value} damage`
});

Both Attack and Miss may result in the invocation of the default function. In this example, the output is attack for undefined damage because Miss doesn't have a value field. In Elm (and similar language), instead of a struct/record, each of Hit/Attack/Miss would have a different number of positional arguments, so trying to access an index that doesn't exist would result in an actual exception:
type Move =
  Miss -- 0 parameters
  Hit Int Boolean -- 2 parameters
  Attack Int -- 1 parameter

case Miss of
  Hit damage isCritical -> ...
  _ damage -> ...
  -- ^ this is an error because `Miss` has 0 parameters, so there's nothing
  -- to bind to `damage`.

In Folktale's union case, we always pass one object as the only parameter. However, each of these objects will have a different set of properties, so as soon as you try to access these properties/destructure, you'll need to know which properties are available. There's no way of knowing this when you're inside the default case, because it can match any of the alternatives. While there's no actual harm in passing the parameter (unlike in e.g.: Elm), destructuring is a common thing to do, and if we don't pass the parameter that will result in an early error, since you can't destructure undefined.
That said, you'd still be able to access the value inside of the default case if you have a variable pointing to it:
const debug = require('folktale/adt/union/derivations/debug-representation');

const Move = union('Move', {
  Miss: () => ({ }),
  Hit: (damage, critical) => ({ damage, critical }),
  Attack: (value) => ({ value })
}).derive(debug);

function describe(move) {
   return move.matchWith({
    Hit: ({ damage, critical }) => `Hit: ${damage}, ${critical ? 'critical' : 'normal' }`,
    [any]: () => move.toString() // -- safe because all of them implement .toString()
  });
}

describe(Move.Hit(1, true)); // => "Hit: 1, critical"
describe(Move.Miss()); // => "Miss({ })"
describe(Move.Attack(1)); // => "Attack({ value: 1 })"

I... hope that clarifies things. But feel free to ask if any of this is confusing.

Made the 2 changes requested. Regarding documentation, I couldn't find a link to the union document that you have in the union.md file. I figured I'd add some supplementary union any documentation there in hopefully the same style, etc. Is that ok, or should it go elsewhere?

Mmh, which link?
The docs for union are all here https://github.com/origamitower/folktale/blob/master/annotations/source/en/adt/union/union.md, but I just realised it doesn't talk about .matchWith at all :(
If you'd like to add docs to that, it'd be greatly appreciated :) It could go just after the Modelling data with adt/union section.

Yup, that's the one. Ok, cool, will do.

I've been using Folktale for a month at work in Node, and the hiccup I constantly run into is the mis-match of pattern[name] when you start nesting various Results/Maybes/Validators together and screw up what you thought you'd be getting (i.e. .matchWith of Failure/Success vs. Error/Ok). I can't recall if there was anything we could do to enhance the output of assertObject to maybe help here... beyond using TypeScript/PureScript lulz.
Anyway, here is my first stab at documenting the any symbol after your coverage of matchWith. We're doing a lot of matching against validators and union types at work, and any would really help in those various "20 results all return the same thing" scenarios.
I wrote 5 titles to choose from, but feel free to suggest others for me to use instead.

@JesterXL hey, can I merge this PR?

@robotlolita Not yet, lemme work on those changes you requested. Apologies for the delay.

No worries :)

@JesterXL what's the status of your PR? I'd fancy use [any] :)

I'll try again tomorrow. I just suck at Make, y'all, heh!

@JesterXL what's the status of this PR?

I'm going to merge this, and we can look into improvements later :>
Thanks for all the work, @JesterXL

authors: JesterXL imranismail jreut radmen robotlolita

repo: origamitower/folktale


text:
Implement strict mode for warden

Strict mode returns an error if audience and requester mismatch.

supserseded by #162

repo: ory-am/hydra


text:
new syntax and semantics around groups and users

Fixes #6 and #8
This PR also adds tox, precommit and github CI workflows

@negillett   I'm getting some strange static check errors in CI, which I am not getting when I run tox locally:
Collecting types-PyYAML
  Downloading types_PyYAML-6.0.7-py3-none-any.whl (13 kB)
Installing collected packages: types-PyYAML
Successfully installed types-PyYAML-6.0.7
osc_trino_acl_dsl/dsl2rules.py:92: error: Unsupported left operand type for | ("Dict[str, Any]")
osc_trino_acl_dsl/dsl2rules.py:104: error: Unsupported left operand type for | ("Dict[str, Any]")
osc_trino_acl_dsl/dsl2rules.py:121: error: Unsupported left operand type for | ("Dict[str, Any]")
osc_trino_acl_dsl/dsl2rules.py:145: error: Unsupported left operand type for | ("Dict[str, Any]")
osc_trino_acl_dsl/dsl2rules.py:148: error: Unsupported left operand type for | ("Dict[str, Any]")
osc_trino_acl_dsl/dsl2rules.py:158: error: Unsupported left operand type for | ("Dict[str, Any]")
osc_trino_acl_dsl/dsl2rules.py:159: error: Unsupported left operand type for | ("Dict[str, Any]")
osc_trino_acl_dsl/dsl2rules.py:161: error: Unsupported left operand type for | ("Dict[str, Any]")

repo: os-climate/osc-trino-acl-dsl


text:
worker: fix reporting the import error to composer

The result variable wasn't used at all, kojiFinalizeJobResult is what actually reports the error.
Edit: Also, I had to fix the koji test. It was actually invisibly failing the whole time.
Signed-off-by: Ondřej Budai ondrej@budai.cz
This pull request includes:

[ ] adequate testing for the new functionality or fixed issue
[ ] adequate documentation informing people about the change such as

[ ] submit a PR for the guides repository if this PR changed any behavior described there: https://www.osbuild.org/guides/

Force-pushed to fix the koji test that was actually failing the whole time.

repo: osbuild/osbuild-composer


text:
cloudapi/v2: fix verbiage of customizations

Fields which accept an array should be plural. Since these customizations aren't in use yet, this edit should be fine.
This pull request includes:

[ ] adequate testing for the new functionality or fixed issue
[ ] adequate documentation informing people about the change such as

[ ] submit a PR for the guides repository if this PR changed any behavior described there: https://www.osbuild.org/guides/

This is the kind of customization I think we should also drop in the images lib.  Composer should do the conversion early, like it does here, and pass through only users to the Manifest().

authors: achilleas-k croissanne


text:
loop devices: use LOOP_CONFIGURE when available

Currently, when using loop devices, we set the fd and then the status. In 5.8 a new LOOP_CONFIGURE ioctl was introduced that can do both at the same time, without the device being available in between the set_fd and set_status calls. See https://lwn.net/Articles/820408/

The place to dot it is here https://github.com/osbuild/osbuild/blob/main/osbuild/loop.py#L600. That should be straightforward to do.

authors: gicmo lavocatt

repo: osbuild/osbuild


text:
depsolve-dnf: enable weak deps selection

The import of dnf-json came from osbuild-composer, as we sadly have/had multiple copies this wasn't the right version as it was lacking previous work to disable weak dependencies.

FTR: this is a port of https://github.com/osbuild/images/pull/39

authors: achilleas-k supakeen


text:
Host.Service: add signals

This commit brings signals to the host. With the possibility for the
services to send info to their client counterpart while running.
The signal can take file descriptors as extra parameters to send data on
separate files.

Forgot to push actual changes? cc7537c8fa8c480dba95f2ebfe675bc86b341b74 and ae5775a159725b3777ec710cad1ad7ca2000ee9e are identical.

Oh yeah. lol I'm tired today


text:
feat(styles): add a styles prop for customization

add a way to customize the component using a styles prop

Hi!
Any plans to merge this feature?
As you can see there are margins around the action sheet in the iOS guidelines.


text:
Switch for enforcing TLS

In my use-case I want to force any connection to the ldap-container to use encryption. It's possible, see this hint: http://www.openldap.org/lists/openldap-technical/201212/msg00189.html
You think it's easy to add this as a new switch to this image?

hi,
i just added LDAP_TLS_ENFORCE options, please refer to README.md for more information

authors: BirgerK osixia

repo: osixia/docker-openldap


text:
how can i enable memberOf ?

Hi guy's .. i have the next problem :
i am using this image to bring up our ldap ... and i need to connect this ldap with grafana ... my problem is that membOf is not enable by default in this image.
how can i enable this feature ??
regards

It is enabled by default......


text:
multi-tasking bbox don't complete enclose POIs

When working with multiple tasks, I don't always get the expected bbox area and would have to re-download some sections in JOSM.
Is there a way to increase the bbox size?
For example, in this task, I bundled the other nearby tasks but the bbox was unexpectedly smaller

Hi @govvin , thanks for the report! Unfortunately, I haven't been able to replicate this issue, even with that task. Do you know if there are any special steps you might be taking when it occurs? Any additional details you have would be appreciated. Screenshots of the bounds loaded in JOSM versus what you see in MR might also be useful.

Hi @govvin , thanks for the report! Unfortunately, I haven't been able to replicate this issue, even with that task. Do you know if there are any special steps you might be taking when it occurs? Any additional details you have would be appreciated. Screenshots of the bounds loaded in JOSM versus what you see in MR might also be useful.

Hi @nrotstan .
After encountering it a few more times, I realized that it's not really an error on MapRoulette but mainly due to the difference between what a contributor sees from MR, and imagery alignment discrepancies of the image layer (or the accuracy of the coordinates) you're using in your editor.
I think, though, that increasing the bbox buffer is possibly helpful. Or, as what i've been doing, just re-download the area within your editor.
I would love to hear how other MR users doing multiple tasks deal with the issue.

Hi @nrotstan .
After encountering it a few more times, I realized that it's not really an error on MapRoulette but mainly due to the difference between what a contributor sees from MR, and imagery alignment discrepancies of the image layer (or the accuracy of the coordinates) you're using in your editor.
I think, though, that increasing the bbox buffer is possibly helpful. Or, as what i've been doing, just re-download the area within your editor.
I would love to hear how other MR users doing multiple tasks deal with the issue.

I see what you mean about the bounds being a little tight.

I see what you mean about the bounds being a little tight.

authors: govvin nrotstan


text:
Prevent double note

Url hash handling method now blocks user from going directly to the "detail" page without setting a location marker. That marker and associated address objects are cleared once the POI is posted. The Url hash resets them immediately up loading the "done" page confirmation .

Fix for post call failure while running in a Firefox browser.
Minor refactoring

The Italian fork added a second page (active.html) and mixed the assets together. I wanted to split them into separate trees. Each based on the html they are associated with. It will make it easier to manage any changes to files required by the libraries we use when they get upgraded. The problem is that most being use been considered deprecated.

Replacing with #128 which is a cleaner version of this PR

license: unlicense


text:
Allow for asymmetric liquidity adds

Currently, the frontend only allows adding liquidity at exactly 50-50 by using the JoinPool msg type.  This turns into an issue because if a swap happens in the time since a user made the JoinPool tx, it would fail.
The chain also supports JoinSwaps, which would make it possible to swap to the right ratio and then add liquidity.  https://github.com/osmosis-labs/osmosis/blob/main/proto/osmosis/gamm/v1beta1/tx.proto#L126
This is a requested feature, but only low priority imo
https://twitter.com/larry0x/status/1461483020469346311

Currently in design phase. Almost complete.
Should be done by end of the month for sure.

repo: osmosis-labs/osmosis-frontend


text:
Single node setup issue fix

Closes: #XXX
Description

For contributor use:

[ ] Targeted PR against correct branch (see CONTRIBUTING.md)
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
[ ] Re-reviewed Files changed in the Github PR explorer

Are you still having issues with the single node setup?

supercded by #931

repo: osmosis-labs/osmosis


text:
how connect mir adapter to rmf-core rmf-web?

I have run the mir adapter according to its documentation, and use the traffic-editor generated map, but how to connect to rmf-web and rmf-core? my rmf-web could not get the robot map. How do I configure my launch file to remove the rviz and gazebo stuff , lanuch adapter  and get the robot map? Is there any information on this? thank you.

how to connect to rmf-web

The version of this fleet adapter on the main branch of this repo seems to predate rmf-web so it doesn't have a builtin way to talk to rmf-web which uses websockets.
I'd suggest using the version of the fleet adapter in branch xiyu/efc_fleet_adapter_mir which is the branch that this PR is based on - with the caveat that the branch is a work in progress and subject to further changes before it gets merged into main. In that branch, the fleet adapter executable supports a server_uri ROS parameter, which works the same way as the rmf_demos_fleet_adapter so you can refer to the documentation there.

how to connect to ... rmf-core?

This will be done automatically, you just need to launch the "core" nodes, which usually include the schedule node, dispatcher node, building map server, and door+lift supervisors. You can refer to this launch file to see the commonly launched nodes.

How do I configure my launch file to remove the rviz and gazebo stuff

The launch files in rmf_demos are only meant for reference, so you may need to copy/paste and edit those files to fit your particular needs. I would discourage using any of the rmf_demos launch files directly for a deployment because it's possible that we'll add more nodes to those launch files in the future which you do not want to have launched in your deployment.

authors: mxgrey techfoxgithub


text:
Bearing calculation for acoustic pinger does not seem to be correct

For the acoustic pinger the calculation for the bearing does not seem to be correct. For example, with a bearing value of 0.22 when we yaw our boat right 0.22 radians the new bearing value is 0.44 whereas it should be 0. It seems like the bearing calculation is reversed and is counter-clockwise when bearing normally is calculated with positive being clockwise.

I fully agree with @andrew-aj here, bearing is calculated clockwise from north.
From wikipedia:

In nautical navigation the absolute bearing is the clockwise angle between north and an object observed from the vessel.

VRX defines the pinger bearing in the body frame of the WAMV, documented in the wiki: https://github.com/osrf/vrx/wiki/frame_conventions

Thank you for taking a look at this issue! I don't think we have a disagreement on what frame the bearing is computed with respect to, but rather how VRX defines bearing.
Typically, it is considered a clockwise angle in the body frame. Would it be possible to update the documentation to clarify that the bearing is defined as counterclockwise in the body frame?
I think that would be sufficient to close this issue and to prevent confusion for future users familiar with the clockwise definition of the bearing.
An addition like this at the end of the first paragraph under https://github.com/osrf/vrx/wiki/frame_conventions#acoustic-pinger would go a long ways:
The bearing is computed counterclockwise from the body frame x-axis.

@acxz Thanks for the comment!  There was a lot of discussion when this issue first came up as to whether we should make the change.  When we decided to stay with the REP, we added the wiki page to try to help with just that confusion - sounds like a good recommendation to make this easier to interpret for everyone.

authors: acxz andrew-aj j-herman

repo: osrf/vrx