BE AS CLEAR AND CONCISE AS POSSIBLE.
describe the bug
what is the bug - what happens?
I'm running 'python customiser.py' in the command prompt and getting a syntax error. (see screenshot below).
expected behaviour
why is this a bug - what should be happening?
Shouldn't be getting an error
screenshots
if applicable, add screenshots of your problem.

platform
what OS are you using? e.g. windows 7, windows 10, WSL, ubuntu, arch linux, macOS
Windows 10

I also opened up the cleaner file in Visual Studio Code and it also has an error. I think it's because of differences between Python 2 and 3 but I am not familiar at all with Python.

PS: when I disable the Python linter, VSCode doesn't say there are any problems, but it still gives the same exact error messages.

what version of python are you running? in theory that error should only be occurring on python 2, though a couple people have reported weird stuff on python 3.8 that i haven't been able to reproduce yet.
for lines that print()/log something, you can probably just delete them. otherwise you might need to translate the f-strings into normal strings with concatenation (just 'text ' + variable instead of f'text variable').
this is already fixed in the wip update (see the js branch), so to minimise branch conflicts and leave me able to get this done asap I'm not committing any bugfixes to the master branch yet.

I have python 2 and 3.8 installed. I'm not sure which one it's trying to use.
Get Outlook for Androidhttps://aka.ms/ghei36

From: Tom<EMAIL_ADDRESS>Sent: Thursday, July 16, 2020 5:09:45 PM
To: dragonwocky/notion-enhancer<EMAIL_ADDRESS>Cc: Kayla Miller<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dragonwocky/notion-enhancer] Syntax Error when running customiser.py (#24)
what version of python are you running? in theory that error should only be occurring on python 2, though a couple people have reported weird stuff on python 3.8 that i haven't been able to reproduce yet.
for lines that print()/log something, you can probably just delete them. otherwise you might need to translate the f-strings into normal strings with concatenation (just 'text ' + variable instead of f'text variable').
this is already fixed in the wip update (see the js branch), so to minimise branch conflicts and leave me able to get this done asap I'm not committing any bugfixes to the master branch yet.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dragonwocky/notion-enhancer/issues/24#issuecomment-659674365, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMTL35NADIXS3PLWPQSMAA3R35UBTANCNFSM4O4OBTDA.

if you just run the python command alone to enter the shell it'll print the version up the top: if it says anything below 3.6 you may need to run with python3 instead

Installing the windows store python fixed it!


(ISSUE FOUND) Start-Process : Cannot convert 'System.Object[]

Removed

This is not a legitimate bug and you and was corrected because you continue to post 'issues' from older versions of the script instead of using the latest ones.

@DrEmpiricism The commit was titled 'Minor process optimizations' and the last issue made it sound like you didn't think there was a bug. Sorry for not realizing it was fixed. :\

Why?


[Feature] Add 'archetype' field for paths

Feature Name
Path Archetype Property
Metadata

Tag
Value

Proposal
2023-09-14-Path-Archetype-Property

Authors
Myron W. Walker

Review Manager
TBD

Status
Proposal

Implementations
Click Here

Issues
3372

Previous Revisions
{revid}

Introduction
Provide a mechanism to convey path "archetype" information or information about the architectural patterns that a path implements.
Motivation
When working with larger product API sets that span multiple features and teams, it is important to ensure that the "Paths" associated with the different features produce consistent patterns of behavior across the entire product API.  It is also equally important that API Paths communicate any patterns they are attempting to implement to the tools that will work with the API reflection document.
When API path sets are tested, the tests need to ensure that the path, properly implements all aspects of specific archetypical patterns.  For example, an api path that implements a 'editable-collection' pattern for users on '/v1/users/' might need to adhere to the following set of design rules:

Provide a 'post' method for creating new collection items
Provide a 'delete' method for removing items from the collection
Provide a 'get' method for listing the items in the collection
Provide a 'patch' method for updating an item
Provide a 'put' method for replacing an item
Return data in a standard collection form { items: [...], "total-count"=100, "page-count"=10, "page-num"=1, pages=10 }

Having the information about the archetype that an API is supposed to implement is critical for testing to ensure that the APIs are meeting architectural standards across the entire API.
When API path information is consumed by a code generation tool that is attempting to create an interop client, currently the tool must infer information about how to generate code for a path from different pieces of information from the URL, methods and method descriptions or possibly form method tags.   This means that tools often cannot accurately distinguish implied patterns when bugs are present or missing elements of information.  Tools can utilize the archetype identifier declared for a path to uniquely identify design and architectural patterns and then tune the generated code to better align with the intended behavioral patterns and functionality of an API
By providing archetype desciptions for paths, the OpenAPI document can play a vital role in ensuring that APIs are testable across larger API sets and that code generators have the informaiton they need to properly implement API interop patterns for APIs.
Proposed solution
The proposed solution is to add an 'archetype' field that is declared for a path.  The archetype field provides a unique identifier that describes any special architectural design rules that a path should follow in its implementation and that provides detailed design information for code generation tool creators.
Detailed design
To provide archetype information for paths, this design would add a field called 'archetype' to the 'path' specification.
The schema for a path-item would be modified to include an optional 'archetype' property.
"archetype": {
"type": "string",
"optional": true
},
The type of the new field is a string.  This would allow for any unique identifier to be used, but would also allow for URL based identifiers  Allowing for URL based identifiers means that the archetype field value can both serve as a unique identifier and at the same time refer an observer to a document that describes the design of the architypal pattern being declared.
The use of URLs for the archetype identifier would also allow for standard archetypes to be published for consumption and sharing across API sets.
As an example of how this might show up in an API set is in the design of APIs used to manage a collection of users.
"/v1/users": {
"summary": "Path for working with the collection of users."
"archetype": "http://someorg.com/api-docs/design/collection.md"
}
"/v1/users/{user-id}": {
"summary": "Path for working with a single user."
"archetype": "http://someorg.com/api-docs/design/collection-item.md"
}
Backwards compatibility
The addition of a new field should not impact older code unless if the code was implemented with overly strict document processing mannerisms that will not handle the addition of a new field.

I'm going to move this issue over to the Moonwalk (OAS 4.0) repo as a discussion, because this sort of philosophical change should be considered in that project.  I will leave the PR here awaiting resolution of our draft proposal process, which we will get to as we work through our process/housekeeping backlog (#3516).  There's at least one other Moonwalk discussion that has a draft proposal PR here in the same limbo, so that seems to be our temporary process 😅


MSSQL - Allow Insert of Primary Keys When Identity is Not Defined for the Table.

This PR resolves Issue #28 for MSSQL for the case when an Identity is not defined for the PK in a table.  It is implemented the same methodology as the previous pull request for Postgres/MySQL/SQLite.
There is no similar automatic way to do this for the Oracle database so this should finalize Issue #28 to the extent possible.

Thanks for the submission! Bit busy now, but will review in the next couple days and merge. Again, thanks!

Thanks for the update and you're welcome!

Added to master; again thank you for your high quality work!


sap.ui.core.Fragment.load is not async

OpenUI5 version:  <= 1.65.0
URL (minimal example if possible): https://embed.plnkr.co/IcOrLE/
Steps to reproduce the problem:

Run the Plnkr example;
Open Browser Dev Tools;
Check network requests.

What is the expected result?
sap.ui.core.Fragment.load returns a Promise, it should load the fragments async.
What happens instead?
sap.ui.core.Fragment.load returns a Promise, however it load the fragments sync.
Any other information? (attach screenshot if possible)

Fragment.load sync

Fragment.load sync requests

Fragment.load async (proposal)

Fragment.load async requests (proposal)

Thank you for the detail report. This is known and on our backlog.

I was going to create a pull request, it seems it's not necessary... Here is my fix, just in case...
In Fragment.load, I've replaced return Promise.resolve(fragmentFactory(mParameters)) by 		return Promise.resolve(fragmentFactoryAsync(mParameters)).
Also, I've created these functions to load it async:
`    function fragmentFactoryAsync(vName, vType, oController) {
var mSettings = {};
if (typeof (vName) === "string") { // normal call
mSettings.fragmentName = vName;
mSettings.oController = oController;
mSettings.type = vType;
  } else if (typeof (vName) === "object") { // advanced call with config object
    mSettings = vName; // pass all config parameters to the implementation
    if (vType) { // second parameter "vType" is in this case the optional Controller
      mSettings.oController = vType;
    }
  } else {
    Log.error("sap.ui.fragment() must be called with Fragment name or config object as first parameter, but is: " + vName);
  }
  if (vType === "XML") {
    return loadFragmentXMLAsync(mSettings);
  } else {
    return new Fragment(mSettings);
  }
}

function loadFragmentXMLAsync(mSettings) {
  return XMLTemplateProcessor.loadTemplatePromise(mSettings.fragmentName, "fragment")
    .then(function(documentElement) {
      mSettings.fragmentContent = documentElement;
      return new Fragment(mSettings);
    });
}`

To be honest, I don't remember exactly what kept us from implementing this together with the async factory method. In the past, we had some compatibility issues with internal apps that stumbled upon async view loading, e.g. in their integration tests. As we propagate the async flag from views to nested fragments, this might have been one issue.
In other words: I expect delays in reviewing a PR due to the compatibility questions. If you don't mind that, a PR would be appreciated.

Quick update on this topic, since we had a couple of inquires in the last days and weeks:
We have just started working on this.
As @codeworrior mentioned, we aim for more than just the asynchronous behavior of the factory.
We also want to integrate the asynchronous loading of fragments into the regular XML processing workflow.
So fragments inside XMLViews, as well as nested Fragments are in our current scope.
We will update the Github issue once we got a commit done.

The documentation now states that Fragments are loaded asynchronously as of 1.84: https://openui5.hana.ondemand.com/topic/ccf76b76327c421e9d87ff7fc3d7ba41
Fixed by https://github.com/SAP/openui5/commit/1766288e137c40b85152c4225ac7c0f2a441353a and https://github.com/SAP/openui5/commit/7058c425404a92986f30f72245c4304d5961cb4c.

As @boghyon already mentioned this issue was fixed with 1.84.


Add limiter to Playground runtime

Closes: #4
Added limiter function to runtime.js using el.compress with limiter-style settings. The current settings preserve approx. 1 dB headroom at max input. Also updated package.json to the latest versions of @elemaudio/core and @elemaudio/web-renderer to ensure correct type classification w/ isNode.

Hey @mark-mxwl I'm catching up on github notification emails and just saw this PR closure– I completely missed that you had updated the PR to account for that feedback, so sorry about that. The latest changes look great; if you want to reopen I will be happy to merge!

Hi @nick-thompson, thx for the note. Having not heard back in several months, I assumed this PR was stale and deleted the fork. Fortunately, the changes were pretty minimal, so copying over the lines should wrap it up.

I understand, that makes plenty of sense! Sorry again for that.


xfce.xfdashboard: 0.9.5 -> 1.0.0

Description of changes
Update to version 1.0.0
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

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

1 package built:

xfce.xfdashboard

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1108


Failed to install sharp on termux

I develop in termux linux.
when I try to install @nuxt/image in my nuxt project, error: sharp: Installation Prebuilt libvips 8.14.5 binaries are not yet available for android-arm64v8
then I try to run: npm install --unsafe-perm --platform=linux sharp, error:
sharp: Installation error: EACCES: permission denied, link '/data/data/com.termux/files/home/projects/greenroom/greenroom/node_modules/ipx/node_modules/sharp/vendor/8.14.5/linux-arm64v8/include/libpng16/pngconf.h' -> '/data/data/com.termux/files/home/projects/greenroom/greenroom/node_modules/ipx/node_modules/sharp/vendor/8.14.5/linux-arm64v8/include/pngconf.h'

Please upgrade to the latest version of ipx and therefore the latest version of sharp.
For Termux, you'll also need to configure npm to ensure it knows the OS is Linux using the npm install --os=linux flag.
https://sharp.pixelplumbing.com/install#cross-platform

when I run npm install --os=linux sharp, encountered error as below:
Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'         to the PKG_CONFIG_PATH environment variable                         Package 'xproto', required by 'xrender', not found                  gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyp
please further help!

Hi,
I'm experiencing the same issue with the Sharp library. I'm developing on a MacBook M1 and trying to use Sharp for image manipulation. When attempting to deploy it on AWS Lambda, I encountered problems. I added the following to my package.json:
"postinstall": "yarn add sharp --ignore-engines"

However, this results in an endless loop during installation. I've tried other solutions, but none have worked.
I then moved my deployment to Heroku but faced similar issues. I have limited access to specify the environment, and I don't have the necessary permissions to install Sharp via the shell.
Any assistance or guidance would be greatly appreciated.
Thank you!

@ahtashamabbasse This issue relates to Termux. If you're still having problems, please open a new installation issue and answer all of the questions.

 Thank you!

In your first comment you provided an error seen when installing a version of sharp that is not the latest. From your most recent comment it looks like installing the latest version works.
It looks like you're using sharp through the ipx dependency, so therefore please upgrade to the latest version of ipx and therefore the latest version of sharp.

Even when I run this script  npm install --os=linux --save<EMAIL_ADDRESS>specific the exact
the latest version, it still try to install the older version 0.32.6, this is the output:
npm install --os=linux --save<EMAIL_ADDRESS>
<EMAIL_ADDRESS>install
node install/check

<EMAIL_ADDRESS>install
(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-android-arm64v8.tar.br
sharp: Installation error: Prebuilt libvips 8.14.5 binaries are not yet available for android-arm64v8
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies

<EMAIL_ADDRESS>install
(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-android-arm64v8.tar.br
sharp: Installation error: Prebuilt libvips 8.14.5 binaries are not yet available for android-arm64v8
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm error code 1
npm error path /data/data/com.termux/files/home/projects/greenroom/greenroom/node_modules/ipx/node_modules/sharp
npm error command failed
npm error command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm error A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2024-07-19T02_46_50_242Z-debug-0.log

What is the output of running npm ls sharp in the /data/data/com.termux/files/home/projects/greenroom/greenroom directory?

@lovell This the output, please check.
npm ls sharp
nuxt-app@ /data/data/com.termux/files/home/projects/greenroom/greenroom
├─┬<EMAIL_ADDRESS>invalid: "^2.1.0" from node_modules/@nuxt/image
│ └──<EMAIL_ADDRESS>deduped
└──<EMAIL_ADDRESS>

Change the ipx to the latest version in @nuxt/image package.json solve my problem. Thank you very much lovell! I can't solve this it without your help!


(chore, go): Update docker builds to consume private modules

This updates the Go docker images so that we can consume private GitHub repositories.

This approach won't work well for our local development environments.


Discord Link

Not so much of an issue but the disocrd link is now invalid.
Cheers.

https://discord.gg/evilcrowrf


Bootstrap CSS for admin pages

Let's get Bootstrap in the project and use it for the basic navigation and other UI of the admin pages.
Just having their default form CSS will make the forms a lot better I think, and if that's not enough it will be easy to tweak it into something good.

Done in #14


GET-PSIISBinding -computername cannot convert value to type System.String

When running Get-PSIISBinding and specifying the remote computer, I get an error saying it cannot convert the value to a System.String.
Expected Behavior

This should return bindings from remote server
Steps to Reproduce (for bugs)

Run Get-PSIISBinding with a specified computer name

Your Environment

Environment name and version (e.g. Chrome 39, node.js 5.4): PowerShell 7.2
Operating System and version (desktop or mobile): Windows 11

Fixed with 4df73f9


Amplify build unable to clone CodeCommit repo

Hi,
I have a CodeCommit repo:
Repository ID
042e1b2d-65f9-407e-81a7-13d1956c5cbd
Repository ARN
arn:aws:codecommit:eu-central-1:035570781852:ddady-frontend
which I'm trying to deploy to AWS Amplify App. I created this app through the Amplify CLI:
App ARN
arn:aws:amplify:eu-central-1:035570781852:apps/d2l5jmllbeznlf
The build fails though:

The error message suggests to 'click "Re-authenticate app" in General Settings, and then try your build again.'
however I can see no such button. I tried the "Reconnect repository" on the General settings page, but it didn't help.
Also tried to remove/add the branch.
What's interesting, is that I have another Amplify app connected to the same repo, in which the deployment is working:
App ARN
arn:aws:amplify:eu-central-1:035570781852:apps/d1x1fk420g162
I created this app first through the Amplify Console, and never had any issues with the build cloning the repo.
Need help!
Cheers

Was solved by adding a missing role as described here: https://docs.aws.amazon.com/amplify/latest/userguide/how-to-service-role-amplify-console.html


Update a russian translation

When I try to sync the branch, it tries to undo around 20 changes.

@Heimdallr-1 I can fix that for you, but one question, do you intend to use RuRu provider yet, or not?
It had a bunch of errors which I fixed, but it is currently not set up to generate a file

I do not modified the code; I only copy the relevant text. In the future, I will use RURU Provider in the process of you change the code.


[5.1] Pass conditions to where as arrays.

Allows conditions to be passed as array in where function call. Already implemented in 5.2@491feeb82ac27542c6a5512f26735451a2d9c09f by @taylorotwell.

5.1 is only receiving bug fixes during it's 2 year LTS phase.


List of workshops included on packrat

Are you going to hard code the workshops or are you going to generate a list on the fly?

@ZucchiniZe Haven't worked out the details yet, but open to suggestions!

Closed by https://github.com/hackedu/hackedu/commit/c915c5242e930fa6ab3826ad279f8a9b191c4d10. This information is now accessable on our main github repo


fix(create): rename directory of page-main test

fixes #987
Fix forgotten remnant of renaming packages to components (#945) that caused failing of tests.
The test is still failing because of insufficient branch code coverage, which I could not to improve. I am not sure if it could be done.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@kuka-radovan I added a test to improve the coverage. Thanks for making the PR and reporting the bug, and sorry for introducing the bug 🙈
LGTM :)


Videos put on static/videos isn't included in the build

Hi, I'm trying the shortcode for video
{{< video src="/videos/zabbix-install.mp4" >}}
But the video player isn't working.
Upon further checking, the video isn't included to the build.
Moving the video to static/files isn't working either, the video still not included to the build.
How can I fix this?
Thank you

You are absolutely correct! I have no idea how to set it up beyond what you have documented.
This is the bits of relevant lines on hugo.yaml,
...
module:
  imports:
  - path: github.com/hugo-toha/toha/v4
  mounts:
  - source: static/files
    target: static/files
  - source: static/videos # added
    target: static/videos # added
...

After the change, I can put the video in static/videos and it would appear under public/videos when the site is compiled.
Thank you very much!


Prioritize Ed25519 public key credential algorithm

The EDDSA algorithm paired with Curve25519 is the current darling child of the cryptography world. RP's can request public key credentials be created with this algorithm by including -8 (in COSE land) in the array of algorithm identifiers passed into the supportedAlgorithmIDs argument of generateRegistrationOptions().
I can encourage more RP's to adopt Ed25519 by moving the -8 entry in supportedCOSEAlgorithmIdentifiers higher up the list, as authenticators will work top-down and choose the first algorithm ID that they support (Step 7) when the authenticator generates a keypair.

NOTE: supportedCOSEAlgorithmIdentifiers is the default list of algorithms returned as pubKeyCredParams from generateRegistrationOptions() if an RP doesn't specify their own list.

Ed25519 keypairs are now encouraged as of the newly published<EMAIL_ADDRESS>


Configure Crystal compiler version in Makefile

Some complicated logic was used to detect the current compiler version
from git tags. This method is unreliable and could produce invalid
results.
This is completely removed from Crystal source code and the version is
set as env var CRYSTAL_CONFIG_VERSION in the Makefile. The value is
determined from the most recent release listed in CHANGELOG.md. This
is a reliable method even if the code is not checked out in a git
repository.
By default, -dev suffix is appended to the version. For creating a
release build with a non-dev version, CRYSTAL_CONFIG_VERSION needs
to be explicitly specified.
Example usage (assuming inside a git repo):
$ # Development build
$ make crystal
$ bin/crystal version
Crystal 0.26.1-dev [ga107c84] (2018-09-19)
$ # Release build
$ make crystal CRYSTAL_CONFIG_VERSION=0.27.0-rc1
$ bin/crystal version
Crystal 0.27.0-rc1 [ga107c84] (2018-09-19)

Previously, the development version would have been Crystal 0.26.1+64 [ga107c84], or Crystal 0.26.1+? if not built inside a git repository. The release version would have been Crystal 0.27.0 [ga107c84].
The number of commits since release has been lost. But I don't think it has much meaning and is unreliable. It wouldn't be difficult to add it back, though. A maybe even more important option could be including the branch name in a development build, if inside a git repository.
An alternative or supplementary source for the most recent release could also be a VERSION file. But  CHANGELOG.md should be pretty solid.
Fixes #6715

I am not in favor of using the changelog as a source of information for the compiler or the build process.
The current source code already allows a specific version to be used as branding (set a value in CRYSTAL_CONFIG_VERSION env var and that will get embedded in the generated binary).
In other projects I worked in, having the literal version that is been built is nice as simple. Then we enforce that tagged build match that description and non tag build have a -dev suffix. This is equivalent to what you are proposing in.
One issue I have with changing the tagging is that after a release, until some period of time we don't know if the next release will be a minor or patch. So there is some inconsistency if the version is not updated immediately after release.
I understand the recent glitch in travis, and that the process can be changed/simplified, but this also affect the whole build process.
I don't think we should invest effort in this area for the time being because:

The official releases are always tagged correctly right now (fingers crossed :-P)
The CI is happy
There is working way to allow non official built to inject the version information.

Maybe we should document better how to create releases of other distros to help mainteners a bit more. I believe the core nature of the PR is that.

Ideally the solution should be in a separate project – crystal-lang/crystal isn't the only project facing this issue, and others can use the adopted solution. In a way this will standardize it. I'm thinking to crystal-lang/shards, or versioning bots.


Add automation for Bloody Barber Goon's Thunk 'n' Slice

I would expect the "slashing or piercing damage (for the dagger)" to eventually be handled by versatile support for NPCs.


Numerical inputs to getGenes

getGenes accepts multiple gene ID's as input, but it doesn't accept multiple numerical inputs. getDatasets uses the same validator and does accept multiple numerical inputs.
getGenes(c('1','2'))  # works
getGenes(c(1, 2))  # doesn't work
getDatasets(c(1, 2)) # works

Should be fixed in 470df61


SUPPORT - Error adding resource

Email to<EMAIL_ADDRESS>Subject: Error adding resource
I was uploading resources to Hydroserver and a couple times got this funny error. I just wanted to let you guys know that this was happening.

If you see it again please switch to the copy and paste view and add a
stacktrace to this ticket.
On Fri, May 15, 2015 at 9:56 AM, Michael J. Stealey <
<EMAIL_ADDRESS>wrote:

Email to<EMAIL_ADDRESS>Subject: Error adding resource
I was uploading resources to Hydroserver and a couple times got this funny
error. I just wanted to let you guys know that this was happening.
[image: screen shot 2015-05-15 at 9 54 37 am]
https://cloud.githubusercontent.com/assets/5332509/7654092/70c28208-fae8-11e4-9247-8ab1993dfe05.png
—
Reply to this email directly or view it on GitHub
https://github.com/hydroshare/hydroshare/issues/375.

--
Calvin SpealmanLead Front-end Developer
<EMAIL_ADDRESS><EMAIL_ADDRESS>www.caktusgroup.com

This is a duplicate of #374


Gather Coverage Data should be disabled in default scheme

Xcode 9 now builds the same binary for build, test and run, and therefore apps submitted using a framework built with coverage enabled are rejected by Apple for including tooling in the build settings.
Please disable code coverage so that default Carthage builds can be submitted to the App Store.

I've just released GzipSwift 4.0.1 with this fix.
Does it work?

Seems to be as expected, thanks.


Revert "Camera workflow"

Reverts ansys/optical-automation#96

please review to revert the previous camera workflow merge


About prepare.dataset.py --configs file

HI！
When I run tools/prepare_dataset/prepare_data.py
--config configs/config_rodnet_cdc_win16.py \
There is always an error：in the load_configs.py import_module.No module name config_rodnet_cdc_win16。
It is confusing whether the configs file should not be set to this. @yizhou-wang I sincerely hope you can help me。

config_rodnet_cdc_win16.py is located in the folder config. Please make sure you have input the correct file path.


Fire a function on drop

Hello,
is it ok to fire a function from drop method?
I need to fire an action when I drop an item into drop zone and I would like to use it like this:
    drop(props, monitor) {
        return props.onDropTarget(monitor.getItem());
    }

Thank you

@martinnov92 Are you planning to dispatch a redux action? Calling a handler from drop has already been used in examples.

@anilreddykatta Not a redux action, just a function from a parent component

Ahh, it should be ok, I just found it in the examples, thanks @anilreddykatta .


Error while checking out as Guest

What I'm trying to achieve
I'm trying to do checkout as a guest without logging in.
Steps to reproduce the problem

Add a product to the basket
Checkout as Guest
Fill out Shipping Address
Click Continue to Shipping

What I expected to happen
I expected that it would take me to the Shipping Method (second part of the checkout), but it just stays there. I traced the error to the response from the backend, and it gives a "Permission Denied" error.
Screenshots

System information
Operating system: Linux
Browser: Firefox and Chrome

@Dostonbek1 Hello! Do you use a master branch or the latest stable version 2.9.1?

@karolkielecki
Hey! I'm using the latest stable version 2.9.1.

I can confirm that there is an issue if you're using Saleor 2.9.1 with Storefront 0.7.0. What I could suggest is upgrading the Storefront version to master as it seems to be working fine there (with 2.9.1 on the backend side).

@maarcingebala I tried on the master branch and it works there fine, and I was able to do a complete checkout. Thank you.


Fatal error: Class 'Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory' not found

I got an error message: FatalThrowableError in RoutingServiceProvider.php line 120: Fatal error: Class 'Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory' not found
In the class RoutingServiceProvider.php (vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php) the classes Zend\Diactoros\Response as PsrResponse and Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory are used. But are not present.
Trace:
1 in RoutingServiceProvider.php line 120
2 at RoutingServiceProvider->Illuminate\Routing\{closure}(object(Application), array()) in Container.php line 735
3 at Container->build(object(Closure), array()) in Container.php line 633
4 at Container->make('Psr\Http\Message\ServerRequestInterface', array()) in Application.php line 697
5 at Application->make('Psr\Http\Message\ServerRequestInterface') in RouteDependencyResolverTrait.php line 85
6 at ControllerDispatcher->transformDependency(object(ReflectionParameter), array(), array()) in RouteDependencyResolverTrait.php line 57
7 at ControllerDispatcher->resolveMethodDependencies(array(), object(ReflectionMethod)) in RouteDependencyResolverTrait.php line 41
8 at ControllerDispatcher->resolveClassMethodDependencies(array(), object(OAuth2Controller), 'passwordGrant') in ControllerDispatcher.php line 143
9 at ControllerDispatcher->call(object(OAuth2Controller), object(Route), 'passwordGrant') in ControllerDispatcher.php line 94
10 at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
11 at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
12 at Pipeline->Illuminate\Routing\{closure}(object(Request))
13 at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
14 at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 96
15 at ControllerDispatcher->callWithinStack(object(OAuth2Controller), object(Route), object(Request), 'passwordGrant') in ControllerDispatcher.php line 54
16 at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\Authentication\OAuth2Controller', 'passwordGrant') in Route.php line 174
17 at Route->runController(object(Request)) in Route.php line 140
18 at Route->run(object(Request)) in Router.php line 724
19 at Router->Illuminate\Routing\{closure}(object(Request))
20 at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
21 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
22 at ShareErrorsFromSession->handle(object(Request), object(Closure))
23 at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
24 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
25 at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
26 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in StartSession.php line 62
27 at StartSession->handle(object(Request), object(Closure))
28 at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
29 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
30 at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
31 at Pipeline->Illuminate\Routing\{closure}(object(Request))
32 at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
33 at Pipeline->then(object(Closure)) in Router.php line 726
34 at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 699
35 at Router->dispatchToRoute(object(Request)) in Router.php line 675
36 at Router->dispatch(object(Request)) in Kernel.php line 246
37 at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
38 at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
39 at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
40at CheckForMaintenanceMode->handle(object(Request), object(Closure))
41 at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
42 at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
43 at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
44 at Pipeline->Illuminate\Routing\{closure}(object(Request))
45 at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
46 at Pipeline->then(object(Closure)) in Kernel.php line 132
47at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
48 at Kernel->handle(object(Request)) in index.php line 53

Laraval v5.2.29

You forgot to install the bridge package.

I am so sorry. Totally forget to read the PSR7 Requests part :flushed:

https://github.com/laravel/framework/blob/5.1/composer.json#L111

:)

Actually, the bridge package only suggest zendframework/zend-diactoros too. You have to install it manually too, otherwise the Response class causes a fail too.

The below will solve your problem
composer require symfony/psr-http-message-bridge

This issues suddenly started in my app. I have installed it but all to no avail. Please help

@salvationarinze - I saw the same error and dug into. Passport updated symfony/psr-http-message-bridge from ^1.0 to v2.0 during the upgrade from v8.4.0 - v8.4.1. A minor upgrade for Passport, but a big jump for the internal under the hood tech.
v2.0 of message bridge drops the DiactorosFactory completely. Which funny enough is the entire changelog of "v2.0" - https://github.com/symfony/psr-http-message-bridge/blob/master/CHANGELOG.md#200-2020-01-02
You have a few other factories in the bridge you may use.


unhandledRejection upon network issues

"rabbot": "^2.1.0"
Developing locally, I see the following error when my MacBook goes into sleep:
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
Error: Operation failed: ExchangeBind; 404 (NOT-FOUND) with message "NOT_FOUND - no exchange 'std-jobs-q' in vhost 'XXX'"
  at reply (/myPath/node_modules/amqplib/lib/channel.js:127:17)
  at Channel.C.accept (/myPath/node_modules/amqplib/lib/channel.js:401:7)
  at Connection.mainAccept [as accept] (/myPath/node_modules/amqplib/lib/connection.js:64:33)
  at Socket.go (/myPath/node_modules/amqplib/lib/connection.js:477:48)
  at emitNone (events.js:106:13)
  at Socket.emit (events.js:208:7)
  at emitReadable_ (_stream_readable.js:513:10)
  at emitReadable (_stream_readable.js:507:7)
  at addChunk (_stream_readable.js:274:7)
  at readableAddChunk (_stream_readable.js:250:11)
  at Socket.Readable.push (_stream_readable.js:208:10)
  at TCP.onread (net.js:594:20)

My code looks like this:
//...
rabbit
  .configure(config)
  .then(function() {
    info('RabbitMQ config successful');
  })
  .catch(function(err) {
    error('rabbit-configure: Could not connect to Q');
  });

// For debugging this
rabbit.on('closed', function() {
  error('rabbit-configure: closed');
  rabbit.retry();
});

rabbit.on('failed', function() {
  error('rabbit-configure: failed');
  rabbit.retry();
});

rabbit.on('unreachable', function() {
  error('rabbit-configure: unreachable');
  rabbit.retry();
});
//...

When the failure happens the error msgs on catch and on the the closed, etc. events are not printed.
The rejection not being handled seems to be in amqplib, not in rabbot originally.
Questions:

Am I doing something wrong?
If not, can rabbot catch those?
If not, shall I raise this issue at amqplib?

I'm having this issue in production too


MINOR: Slight MetadataCache tweaks to avoid unnecessary work

Avoid tuple allocations by using foreachEntry and update methods
Use empty instead of apply to avoid unnecessary array allocation

Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

foreachEntry doesn't exist in Scala 2.12, so will have to revert that change.

retest this please

Unrelated flaky failures:

org.apache.kafka.streams.integration.EosBetaUpgradeIntegrationTest.shouldUpgradeFromEosAlphaToEosBeta[true]
org.apache.kafka.streams.integration.EosBetaUpgradeIntegrationTest.shouldUpgradeFromEosAlphaToEosBeta[true]


CityTile road fix

As most recently mentioned by snozzled, the game state is generated with cell.road instead of cell.getRoad(), so the hardcoded exception for CityTiles is skipped.  This is not an issue with the gameplay since the engine still uses cell.getRoad().

oh wait that was the bug okay, fixing it, thanks!


Allow central scheduler logging to be configured based on the logging…

….conf file specified in luigi.cfg.
Although the luigi configuration file has an option to specify a logging conf file, this option currently only applies to the workers, not the central scheduler, which AFAICT ignores any logging configuration and starts up with a basic configuration. I poked around and didn't see any way to configure the central scheduler's logging other than hacking on its entry point; hence this PR.

tests? https://github.com/spotify/luigi/blob/master/test/cmdline_test.py

Haha, I just needed this last Monday! I got surprised nobody had sent a PR yet. You're two days late! :D

Also, can you please also add print() statements saying "Loading logging conf from file" or "Defaulting to only logging to stdout. You're highly advised to setup logging"? Something like that.

@dlstadther "What is it that the central scheduler could log that you want to see?"
This came up for me recently when I wanted to turn on SQLAlchemy logging of the database statements made to the task history database.

Added unit tests and print statements. PTAL. Also let me know if you want me to squash the commits.

Looks good to me. I will squash-accept this PR so no need to merge commits.


Ashita v4 port?

Hello,
I wanted to port this to Ashita v4 on a fork but there's no license that would allow me to do so, that requires I get explicit permission from the author (Flippant). Am I allowed to do so? Alternatively, a license could be added to this repo that would allow that.
Thank you for your time and a great addon.

Hey, thank you for reaching out about this!
I went ahead and added a new file with the license, and then shortly after realized that I did have it before, but it is listed on each individual file. Well, at least it is easier to find now!
Also consider this explicit permission, in case something in the existing license does not suffice for your purposes (I'm no good at legalese).


zoom is broken for bar charts

First of all, thank you for this nice plugin.
Since I'm trying to manage the front-end dependencies of a project I'm working on, I upgraded chartist-plugin-zoom in the process (aumayr/fava#125). This breaks zoom for bar charts...
I used git bisect to find the offending commit. The last one where the "zoom box" is drawn is 53406ce91f2d33101b992c2edb163c64aa675106 (but the callback wasn't implemented back then). In the next one you added the callback. From this one on, not even the zoom box is drawn.
I'm using webpack to "require" the plugin and tried both the plugin installed from npm as well as directly from this repository. Since line charts work flawlessly, I don't think it's a loading issue though.
This is the version we've been using previously and that still works well:
https://github.com/aumayr/fava/blob/ee483d6814990010702a5adeba317ec295182b09/fava/static/vendor/chartist-js/chartist-plugin-zoom.js
(I'm using the latest version of Chartist, as well as the tooltip and legend plugins)

Turns out we were using a modified version of your plugin, so nevermind ;)


Specify View/ViewController Description Attributes

One of the current supported strategies is recursiveDescription, this gets you lines like:
<UILabel; frame = (109.5 0; 50.5 30); text = 'Live'; gestureRecognizers = <NSArray>; layer = <_UILabelLayer>>

I understand this currently uses Apple's ObjC method under the same name, but was wondering if we created our own version if we would then be able to add the flexibility to specify exactly what attributes we want to be included in each of the views logs?
For instance I'd like to ensure that colour (text (where appropriate)/background colours) are all consistent. I also don't get much value from layer = <_UILabelLayer> in this test.
.recursiveDescription(properties: [.colours, .text]) (intentionally simplified)
Needs a bit more fleshing and detailing, but does this sound within the scope of this project?

Hi @Sherlouk! We're definitely interested in what you come up with. SnapshotTesting's API should be completely open to define custom strategies from existing ones. You could ship this strategy as its own package, or if it makes sense, we could merge it into SnapshotTesting proper.

Appreciate the comment, and have just read up on the documentation for creating custom strategies - I'll be sure to take a look at that for our project and see how it comes along!
I'll close this issue for now, and will open a PR (or a separate package) in the future if I can make something that would be valuable to the community!
Thanks Stephen!


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/68863

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/69043

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/82232

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/82233


Allow more glitch levels (or maybe floats for levels?)

Just a suggestion for an enhancement: Currently there are only glitch levels between 1 and 10 allowed, but I miss a setting somewhere between 1 and 2. This could be solved by either allowing floats for glitch levels (not sure if the algorithm used can work with floats), or by doubling the number of levels by using a range from 1 to 20 instead of 1 to 10.

@KopfKrieg Just added this in 0.1.3! You can now use floats between 1.0 and 10.0 as glitch_amount! Single or double digit precision works best with this. Check out the docs for more info!
Increment/Decrement (aka glitch_change) will also receive support for floats shortly. Should be done by tomorrow, stay tuned :)
P.S - Sorry for taking so long, I had exams and had to postpone development

Alright, glitch_amount can now be in range 0.1 to 10.0 and increment/decrement (aka glitch_change) also supports floats! Check out 0.1.4!

Cool, thank you :)


Zooming in on Safari does not animate properly.

May have to scrap isVisible and opt for animate on scroll location

Fixed with https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag. This also removes the need for complex transforms and transitions.


How to install in ubuntu 20

Hi,
I want install this script in ubuntu server but i am facing many issues need apache also
Please guide me.
Thank you

Hey there,
I don't understand what do you mean by install the script? If you mean running the server, you can just follow the README.md and the server should start.
But if you mean running the website in production I don't really have a guide for that.
best regards,

Please check below error.

It seems like you have a problem with npm not the project itself. did it run properly after running the npm install?


test: Reduce the number of mutations

Codecov Report

Merging #432 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #432   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          25     25
  Lines        1843   1843
  Branches      292    292
=====================================
  Hits         1843   1843

Flag
Coverage Δ

#unittests
100% <100%> (ø)
:arrow_up:

Impacted Files
Coverage Δ

src/schemathesis/types.py
100% <100%> (ø)
:arrow_up:

src/schemathesis/exceptions.py
100% <100%> (ø)
:arrow_up:

src/schemathesis/runner/__init__.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6897d2d...51b576e. Read the comment docs.


BUG: XGBRFRegressor invalid number of trees error with shap>=0.42

Issue Description
XGBRFRegressor from xgboost raises "Invalid number of trees" error shap>=0.42 when running shap_values method from shap.TreeExplainer. I tried it on Windows 10 with conda environment on Python 3.8.18 and on Linux environment with Python 3.8.11. Minimal install:
pip install shap==0.44.1
pip install xgboost==1.7.6

I checked that with shap<0.42 there is no such issue. Also with shap>=0.42 similar model XGBRFClassifier works fine, the problem seem to be only with XGBRFRegressor.
Minimal Reproducible Example
import numpy as np
from xgboost import XGBRFRegressor
from shap import TreeExplainer

num_points = 50
num_features = 5
rng = np.random.default_rng(seed=1)
X = rng.normal(size=(num_points, num_features))
y = rng.normal(size=(num_points,))
model = XGBRFRegressor().fit(X, y)
explainer = TreeExplainer(model, feature_perturbation="tree_path_dependent", model_output="raw")
explainer.shap_values(X)

Traceback
Traceback (most recent call last):
  File "C:\Users\...\xgb_rf_regressor_test.py", line 12, in <module>
    explainer.shap_values(X)
  File "C:\Users\...\AppData\Local\miniconda3\envs\test_env\lib\site-packages\shap\explainers\_tree.py", line 418, in shap_values
    model_output_vals = self.model.original_model.predict(
  File "C:\Users\...\AppData\Local\miniconda3\envs\test_env\lib\site-packages\xgboost\core.py", line 2163, in predict
    _check_call(
  File "C:\Users\...\AppData\Local\miniconda3\envs\test_env\lib\site-packages\xgboost\core.py", line 279, in _check_call
    raise XGBoostError(py_str(_LIB.XGBGetLastError()))
xgboost.core.XGBoostError: [13:16:44] C:\buildkite-agent\builds\buildkite-windows-cpu-autoscaling-group-i-0fdc6d574b9c0d168-1\xgboost\xgboost-ci-windows\src\gbm\gbtree.cc:549: Check failed: tree_end <= model_.trees.size() (10000 vs. 100) : Invalid number of trees.

Process finished with exit code 1

Expected Behavior
No response
Bug report checklist

[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest release of shap.
[ ] I have confirmed this bug exists on the master branch of shap.
[ ] I'd be interested in making a PR to fix this bug

Installed Versions
0.44.1

Thanks for the bug report!
On the master branch of shap, I can reproduce the issue above with xgboost == 1.7.6 but not with xgboost == 2.0.0. Shap currently aims to support xgb 1.6+ , so this needs to be fixed.
It doesn't look like there are any tests for XGBRFRegressor or XGBRFClassifier at the moment, so it would be good to explore if shap can officially support them. @trivialfis , do you by any chance know about this history of XGBoost & shap, if there is any particular reason why the XGB RF models are not already supported / tested by shap?

This may be solved by #3462 , which will improve the XGBoost model loading significantly. As a temporary workaround for now, you could try updating to XGBoost 2+ if possible.

This should be solved by #3462, and will be released in 0.45.0.


Three leg basis swap

This work closes #588

I'm happy with the change, over to @marc-opengamma now

An extra test on the PricerTest for the parSpread will be useful.
An example with curve calibration using this type of basis swap should be added (in another PR).


noseyparker: init at 0.11.0

Description of changes

Add Nosey Parker to nixpkgs.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

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

1 package built:

noseyparker

Meanwhile, 0.13.0 is out.
https://github.com/praetorian-inc/noseyparker/releases/tag/v0.13.0

Your 0.12.0 package works great, just scanned a repo!
(best squash the commits to noseyparker: init at 0.12.0 and change the PR name)


FFM-7336: Relnotes for ff server 1.979

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


Use CustomEvent instead of Event

Hey there 👋
As far as I have seen vanilla-js-dropdown doesn't work in IE at the moment because it uses Event which is not supported. This PR changes it to use CustomEvent which can be brought to IE using a polyfill:
https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill
https://www.npmjs.com/package/custom-event-polyfill

Coverage remained the same at 100.0% when pulling 8b0a0cd0876c9db93fc97c624abb21326ff041c6 on calmyournerves:customevent into 33e229b59fc12e08245eac516708580850499bf3 on zoltantothcom:master.


report issue form working and other contact updates

Test Plan (Steps to test):

Go to subscriptions -> orders -> report an issue
Type a message and submit it.
Check in gorgias that the message looks as you'd expect.
Go to /contact. Notice your session info pre-populates if you're signed in.
Send a message.
Check that it looks okay in Gorgias.

@mcat Phone # is optional and not available easily. I'm just populating required fields to remove an annoyance for the customer.

@mcat  I just confirmed with Gorgias — the error you're seeing is because you're also a user. It's a benign error, and kind of dumb. Doesn't happen if you use a non-user email.


[Bat] add a unit test

Add a sort of unit test for bat package based on what was done with openssl. It helps to figure out if the package is at least built correctly with a basic test.
To run it (not for @kylewlacy since he knows it):
brioche build -p packages/bat -e test

If it suits you (@kylewlacy), I could do the same for the other packages.

If it suits you (@kylewlacy), I could do the same for the other packages.

I'm fine with adding these kinds of tests for one-offs like this (e.g. where the test was added because it was useful), so I'm good to merge this PR, but I'd suggest holding off going through every package for now. At a minimum I'd like to at least have some way to automate the tests in CI/CD first
But ideally, I'd like to try adding a proper brioche test subcommand first. I think I want it to be a bit more than just calling export function test(). I opened brioche-dev/brioche#94 as a larger issue for brioche test, and I'll also start writing down some design ideas there


Best way for prepared statement to cast a json array as a json type instead of json[] type

const array = [{name: 'foo'}, {name: 'bar'}]
pg.query(`
INSERT INTO tbl (field)
VALUES ($1::json)
`, { params: [array] })

Results with the error:
DatabaseError: cannot cast type json[] to json
What would be the best way to coerce the array to a json type instead of a json[] type?

Hi,
Your query is wrong. You pass an array of json object as an argument but trying to cast to a json. Please try this.
INSERT INTO tbl (field)
VALUES ($1::json[]

By the way, you don't need to cast. I think the following sql code will also work.
INSERT INTO tbl (field) VALUES ($1)

Thank you for the response. The issue is field is type json, not json[]. Casting as json[] results in another error
DatabaseError: column "field" is of type json but expression is of type json[]

I did find a solution...which is to use json_populate_record
	`
INSERT INTO portfolio(${param_a_sql})
SELECT ${param_a_sql}
  FROM json_populate_record(NULL::portfolio_type, '${json}')
ON CONFLICT (email, name)
DO UPDATE
	SET (${param_a_sql})=((
		SELECT ${param_a_sql}
			FROM json_populate_record(NULL::portfolio_type, '${json}')
	))
RETURNING *
	`.trim()

Sorry for my misunderstanding. The solution is is simple, just use a BindParam instance. By default library requires BindParam for parameters. If you pass any other value, it makes a try to find the correct OID. In the example above you pass an Array value. So it thinks this is an OID "array". Try the code below.
const array = [{name: 'foo'}, {name: 'bar'}]
pg.query(`
INSERT INTO tbl (field)
VALUES ($1::json)
`, { params: [new BindParam(DataTypeOIDs.json, array)] })


WIP: Use AttributedStringCell for IssueLabeledCell

Closes #1057
Would've liked to make the glyph taller but looks like we're limited to the line height 😞 I did add a shadow though? 😄

Gonna go ahead and mark this as WIP until I do more checks of how it handles wrapping onto multiple lines and multiple labels in a single string etc!

Made the changes, we'll probably have to change this as new requirements come in (e.g. adding images etc) but as a starting point it should be solid!


Linux Version

You should add a linux version
Wine is not working

There's a Linux version, but I just don't upload it. There will be automated system in the future.
SkEditorLinuxDebian (x64).zip

do you have a fedora version?

also when i convert it using alien it says
package SkEditor-2.3.1-2.arm64 from @commandline does not have a compatible architecture

This version should work on all Linux distributions:
https://notro.me/resources/SkEditorLinux64.zip


remove singleton metaclass

The use of a metaclass to make Resource a singleton is a bit counter-intuitive. Particularly as users won't often interact with this class directly, and I've been caught out by passing a value into SNPs(resource_dir='something') and not seeing the expected result because a Resource single had been created elsewhere.
This PR removes that singleton metaclass, and achieves the same behaviour by default by creating the instance as the default argument to the SNPs.__init__ method. Default method arguments are evaluated when the class is defined, therefore objects created as a default argument are singleton.
Users who want to manage the singleton themselves can use the resources_obj argument to pass the Resource instance to use. This also opens the possibility for having different sub-classes e.g. for storage backends such as a database, or AWS S3.

Codecov Report

Merging #116 (dde6a29) into develop (1989b81) will decrease coverage by 0.62%.
The diff coverage is 42.85%.

@@             Coverage Diff             @@
##           develop     #116      +/-   ##
===========================================
- Coverage    94.48%   93.86%   -0.63%
===========================================
  Files            8        8
  Lines         1468     1417      -51
  Branches       252      253       +1
===========================================
- Hits          1387     1330      -57
- Misses          43       46       +3
- Partials        38       41       +3

Impacted Files
Coverage Δ

src/snps/utils.py
88.73% <ø> (-0.88%)
:arrow_down:

src/snps/snps.py
94.55% <20.00%> (-0.99%)
:arrow_down:

src/snps/resources.py
94.73% <100.00%> (-0.34%)
:arrow_down:

src/snps/ensembl.py
65.85% <0.00%> (-4.88%)
:arrow_down:

src/snps/io/reader.py
97.87% <0.00%> (-0.02%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1989b81...dde6a29. Read the comment docs.

This is a better example of how kwargs can be used as a default singleton:
from snps import SNPs
from snps.resources import Resources
s1 = SNPs()
s2 = SNPs()
id(s1._resources) == id(s2._resources)
# True on this branch
# True on master

However, on this branch this would then break down if it is manually specified :
s3 = SNPs(resources_dir="/tmp/resources")
s4 = SNPs(resources_dir="/tmp/resources")
id(s3._resources) == id(s4._resources)
# False on this branch
# True on master

Also note that this is what happens on master, which is the potentially confusing side-effect:
s5 = SNPs(resources_dir="/tmp/foo/resources")
s6 = SNPs(resources_dir="/tmp/bar/resources")
id(s5._resources) == id(s6._resources)
# True and will use /tmp/foo/resources for both

I like the idea of allow a filename or a url string, but I'm not sure that will cover all cases so falling back to a non-string object instead might be necessary.
I'm happy with a single "resources" parameter instead of separating parameters by type. It does break compatibility for some existing users, but that's probably a good thing to make sure everyone is aware of the change in meaning.

Thanks for those examples, they help explain the issue. How about this?

remove the singleton to remove confusion
keep resources_dir="resources" for backwards compatibility (i.e., resources on the local filesystem)
for new resources, add kwargs as necessary (e.g., resources_url="")

Then a regular Resources object will be instantiated based on those parameters, with preference for what functionality to use based on whether or not particular fields are specified (e.g., if resources_url is specified, use that resource).


Bug when using templates inside links

Hello, thanks for lib
I'm using this in pair with ejs, so I know, that this lib supports template with <?, I've switched it in ejs already and everything I need works just fine except templating links
I konw I can use html tag, but I want to use md syntax.
As I can see this feature can be done skipping some checks for links with new option parameter, isn't it?
Thanks in advance

Not a bug. Input is rendered exactly as spec says. You should render template before markdown-it call.

You should render template before markdown-it call.

that will make me add extra templating engine to end users, while I can precompile it:
I have md as first template source, then compile it to html template via https://www.npmjs.com/package/babel-plugin-markdown which use this lib underhood, and then at runtime using compiled html template

I'm not quite sure what spec says, but when I'm using [foo](bar) it's more then expected to get foo no matter what values are passed 😀

Scopes are ignored as valid url quoting. The rest is percent-encoded.
Please, start with commonmarc spec reading. That's mandatory requirement for asking questions here.


Documentation not found

Hi there, the documentation has gone, could anyone find it? THANKS!!

Recently transferred repository so documentation is now at: http://jpadilla.github.io/django-rest-framework-jwt/

Recently transferred repository so documentation is now at: http://jpadilla.github.io/django-rest-framework-jwt/

Thanks!


[Feature]: Added the linked list (Singly, Doubly, and Circularly) using C language

Hi @ismaelsadeeq, I will start working on it Immediately. Thanks for the feed back.

Hi @ismaelsadeeq , I am done working on it. Please, take a look at it.

Okay I will Review soon

Hello  Man @Ddilibe  their is a .gitignore file in the Linkedlist, have you used any library/packages for the implementation?

@ismaelsadeeq, I had to remove some files that appeared during the complications


Webview resize event is fired early

Environment
  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: (8) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
      Memory: 65.25 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.10.0 - /usr/local/bin/node
      npm: 6.4.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 26, 27, 28
        Build Tools: 27.0.3, 28.0.0
        System Images: android-27 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 3.1 AI-173.4819257
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728
      react-native: 0.57.4 => 0.57.4
    npmGlobalPackages:
      react-native-cli: 2.0.1

Description
I want a <Webview/> that resizes when the keyboard opens. I've been able to accomplish this by using a "spacer" <View/> and listening to keyboard events.
However, when listening to the window resize event inside the html webpage, the event appears to fire early when dismissing the keyboard.
Reproducible Demo
https://github.com/ccorcos/react-native-demo/tree/resize-bug
git clone https://github.com/ccorcos/react-native-demo.git
cd react-native-demo
git checkout resize-bug
npm install
# Server the index.html file
python -m SimpleHTTPServer 8000
# Start react native
npm start
# Open Xcode and run the app.
open ios/chetapp.xcodeproj

Thanks @ccorcos, another excellent issue report.

No problem! This be a webkit issue (like this one). I just didn't have time to test it out. Its not really blocking me right now so I probably won't get around to it...

Does anyone have any solution for this one? I use webview to display mails from googleapis. APIs provide me raw html and css. In case of autogenerated emails with more css and/or images. I'm not able calculate the height in time.


How to use djl to transform image Base64 to NDArray or Tensor

Description
(A clear and concise description of what the feature is.)
Will this change the current api? How?
maybe
Who will benefit from this enhancement?
CV developer
References

list reference and related literature
list known implementations

@doctorbean
You can use java built-in Base64 encoder to decode the base64 string to byte[] and use ImageFactory to convert to NDArray:
byte[] buf = Base64.getDecoder().decode(base64Image);
ImageFactory factory = ImageFactory.getInstance();
Image image = factory.fromInputStream(new ByteArrayInputStream(buf));
NDArray array = image.toNDArray(manager);

thanks
---Original---
From: "Frank @.>
Date: Fri, Apr 2, 2021 11:15 AM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [awslabs/djl] How to use djl to transform image Base64 to NDArray or Tensor (#807)
@doctorbean
You can use java built-in Base64 encoder to decode the base64 string to byte[] and use ImageFactory to convert to NDArray:
byte[] buf = Base64.getDecoder().decode(base64Image); ImageFactory factory = ImageFactory.getInstance(); Image image = factory.fromInputStream(new ByteArrayInputStream(buf)); NDArray array = image.toNDArray(manager);
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


Update ASP.NET Core Logging Extensions name

Fixes #9968
Cross-ref: Build 3.0 AggregateSite extension (aspnet/AspNetCore #6849
@pakrym Do I need to version this in the topic for 3.0, or is the new name in effect at this time?

We didn't ship new logging site extensions in 3.0 yet but as soon as it goes out it preview3 this would be the only name around.

mmmmm 🤔 Let's not version this then and just hold it here for a bit.

Preview3 landed but the name hasn't changed yet. I'll keep an :eye: on it.

@Rick-Anderson @pakrym Going by what I'm seeing in the portal, this looks like it will be a 3.0 update. Let's version this and get it merged. I can strip the old bit out after I see that it's disappeared in the portal later :point_right: Strip logging extension versioned content (aspnet/Docs #11658).


feat: OneHot Operator

Feature Request
Describe the Feature Request
Implementation of ONNX Operator
Describe Preferred Solution
Implementation following the same Operator interface as defined in ONNX. See Contribution Guidelines
Additional Context

ONNX OneHot Operator

i'll take this one

#187


On the remaining cluster, the vrg is stuck trying to delete data from the s3 store on the unavailable cluster.
On the hub, the drpc is stuck waiting for the stuck vrg, and for the stale vrg reported bu the managedclusterview of the unavailable cluster.
This change fixes the issue by supporting a new annotation:
drcluster.ramendr.openshift.io/drcluster-is-unavailable: "true"

If a drcluster is annotated with this annotation:

When creating or updating a vrg manifestwork include only s3 profile from available clusters. This fixes the issue of stuck vrg on the remaining cluster, and this vrg is deleted successfuly.
When reconciling the drcluster, we skip the drcluster so we don't get stuck trying to access the s3 store or storage on this cluster
When waiting for vrg count to become zero we skip the stale vrg on the unavailable cluster and deleting a drpc completes.

Testing
Tested using https://github.com/RamenDR/ocm-ramen-samples/pull/41
Recommended flow
Mark cluster as unavailable before failing over to the new cluster

[x] k8s regional rbd sub
[ ] ocp regional rbd sub
[ ] ocp regional rbd appset
[ ] ocp regional cephfs sub
[ ] ocp regional cephfs appset
[ ] ocp metro?

Alternative flow
Mark clusters as unavailable if disable DR get stuck.

[ ] k8s regional rbd sub
[ ] ocp regional rbd sub
[ ] ocp regional rbd appset
[ ] ocp regional cephfs sub
[ ] ocp regional cephfs appset
[ ] ocp metro?

Based temporarily for easier testing on:

#1133
#1148

Fixes #1139

Example run
Setup:
$ basic-test/setup $env
2023-11-22 23:44:06,621 INFO    [setup] Setting up environment
2023-11-22 23:44:06,621 INFO    [setup] Deploying drpolicy 'ramen-basic-test'
2023-11-22 23:44:07,641 INFO    [setup] Waiting until drpolicy 'ramen-basic-test' is validated
2023-11-22 23:44:20,143 INFO    [setup] Deploying channel
2023-11-22 23:44:21,512 INFO    [setup] Environemnt is ready

Deploy app:
$ basic-test/deploy $env
2023-11-22 23:44:40,917 INFO    [deploy] Deploying application
2023-11-22 23:44:40,918 INFO    [deploy] Deploying application 'busybox-regional-rbd-deploy'
2023-11-22 23:44:42,294 INFO    [deploy] Waiting for 'placement.cluster.open-cluster-management.io/busybox-placement' decisions
2023-11-22 23:44:42,529 INFO    [deploy] Application running on cluster 'dr1'

Enable Dr:
$ basic-test/enable-dr $env
2023-11-22 23:44:59,866 INFO    [enable-dr] Enable DR
2023-11-22 23:44:59,938 INFO    [enable-dr] Disabling OCM scheduling for 'placement.cluster.open-cluster-management.io/busybox-placement'
2023-11-22 23:45:00,100 INFO    [enable-dr] Waiting for 'placement.cluster.open-cluster-management.io/busybox-placement' decisions
2023-11-22 23:45:00,648 INFO    [enable-dr] waiting for namespace busybox-regional-rbd-deploy
2023-11-22 23:45:00,811 INFO    [enable-dr] Waiting until 'drplacementcontrol.ramendr.openshift.io/busybox-regional-rbd-deploy-drpc' reports status
2023-11-22 23:45:01,207 INFO    [enable-dr] Waiting for 'drplacementcontrol.ramendr.openshift.io/busybox-regional-rbd-deploy-drpc' Available condition
2023-11-22 23:45:01,414 INFO    [enable-dr] Waiting for 'drplacementcontrol.ramendr.openshift.io/busybox-regional-rbd-deploy-drpc' PeerReady condition
2023-11-22 23:45:01,655 INFO    [enable-dr] Waiting for 'drplacementcontrol.ramendr.openshift.io/busybox-regional-rbd-deploy-drpc' first replication
2023-11-22 23:46:30,127 INFO    [enable-dr] DR enabled

Simulate disaster by suspending the minikube vm for cluster dr1:
$ virsh -c qemu:///system suspend dr1
Domain 'dr1' suspended

Mark the drcluster as unavailable
$ kubectl annotate drcluster dr1 drcluster.ramendr.openshift.io/drcluster-is-unavailable=true --context hub
drcluster.ramendr.openshift.io/dr1 annotated

Failover to cluster dr2:
$ kubectl patch drpc kubevirt-drpc \
    --patch '{"spec": {"action": "Failover", "failoverCluster": "dr2"}}' \
    --type merge \
    --namespace busybox-regional-rbd-deploy \
    --context hub

Wait until the app is running on cluster dr2.
VRG on cluster dr2:
$ kubectl get vrg -A -o yaml --context dr2
apiVersion: v1
items:
- apiVersion: ramendr.openshift.io/v1alpha1
  kind: VolumeReplicationGroup
  metadata:
    creationTimestamp: "2023-11-22T21:51:29Z"
    finalizers:
    - volumereplicationgroups.ramendr.openshift.io/vrg-protection
    generation: 1
    name: busybox-regional-rbd-deploy-drpc
    namespace: busybox-regional-rbd-deploy
    ownerReferences:
    - apiVersion: work.open-cluster-management.io/v1
      kind: AppliedManifestWork
      name: 3bdd11ecdb0e9907e8a338b1cf39d00d730766119af6bb261f23c2685cbdd9c3-busybox-regional-rbd-deploy-drpc-busybox-regional-rbd-deploy-vrg-mw
      uid: 620d6846-8fab-457a-99ae-2d66d3766c5c
    resourceVersion: "15150"
    uid: 9e76a26d-202a-4ded-9dd7-5d590a89294b
  spec:
    action: Failover
    async:
      replicationClassSelector: {}
      schedulingInterval: 1m
      volumeSnapshotClassSelector: {}
    pvcSelector:
      matchLabels:
        appname: busybox
    replicationState: primary
    s3Profiles:
    - minio-on-dr2
    volSync: {}
  status:
    conditions:
    - lastTransitionTime: "2023-11-22T21:51:39Z"
      message: PVCs in the VolumeReplicationGroup are ready for use
      observedGeneration: 1
      reason: Ready
      status: "True"
      type: DataReady
    - lastTransitionTime: "2023-11-22T21:51:30Z"
      message: VolumeReplicationGroup is replicating
      observedGeneration: 1
      reason: Replicating
      status: "False"
      type: DataProtected
    - lastTransitionTime: "2023-11-22T21:51:29Z"
      message: Restored cluster data
      observedGeneration: 1
      reason: Restored
      status: "True"
      type: ClusterDataReady
    - lastTransitionTime: "2023-11-22T21:51:33Z"
      message: Cluster data of all PVs are protected
      observedGeneration: 1
      reason: Uploaded
      status: "True"
      type: ClusterDataProtected
    kubeObjectProtection: {}
    lastUpdateTime: "2023-11-22T21:54:39Z"
    observedGeneration: 1
    protectedPVCs:
    - accessModes:
      - ReadWriteOnce
      conditions:
      - lastTransitionTime: "2023-11-22T21:51:39Z"
        message: PVC in the VolumeReplicationGroup is ready for use
        observedGeneration: 1
        reason: Ready
        status: "True"
        type: DataReady
      - lastTransitionTime: "2023-11-22T21:51:33Z"
        message: 'Done uploading PV/PVC cluster data to 1 of 1 S3 profile(s): [minio-on-dr2]'
        observedGeneration: 1
        reason: Uploaded
        status: "True"
        type: ClusterDataProtected
      - lastTransitionTime: "2023-11-22T21:51:33Z"
        message: PVC in the VolumeReplicationGroup is ready for use
        observedGeneration: 1
        reason: Replicating
        status: "False"
        type: DataProtected
      csiProvisioner: rook-ceph.rbd.csi.ceph.com
      labels:
        app: busybox-regional-rbd-deploy
        app.kubernetes.io/part-of: busybox-regional-rbd-deploy
        appname: busybox
        ramendr.openshift.io/owner-name: busybox-regional-rbd-deploy-drpc
        ramendr.openshift.io/owner-namespace-name: busybox-regional-rbd-deploy
      name: busybox-pvc
      namespace: busybox-regional-rbd-deploy
      replicationID:
        id: ""
      resources:
        requests:
          storage: 1Gi
      storageClassName: rook-ceph-block
      storageID:
        id: ""
    state: Primary
kind: List
metadata:
  resourceVersion: ""

Disable DR:
$ test/basic-test/disable-dr $env
2023-11-22 23:57:11,542 INFO    [disable-dr] Disable DR
2023-11-22 23:57:11,603 INFO    [disable-dr] Deleting 'drplacementcontrol.ramendr.openshift.io/busybox-regional-rbd-deploy-drpc'
2023-11-22 23:57:30,246 INFO    [disable-dr] Enabling OCM scheduling for 'placement.cluster.open-cluster-management.io/busybox-placement'
2023-11-22 23:57:30,311 INFO    [disable-dr] DR was disabled

The sub and vrg manifestwork are deleted, but the operation cannot complete since the cluster is unavailable:
$ kubectl get manifestwork busybox-regional-rbd-deploy-busybox-sub -n dr1 --context hub -o yaml | grep deletionTimestamp
  deletionTimestamp: "2023-11-22T21:52:00Z"

$ kubectl get manifestwork busybox-regional-rbd-deploy-drpc-busybox-regional-rbd-deploy-vrg-mw -n dr1 --context hub -o yaml | grep deletionTimestamp
  deletionTimestamp: "2023-11-22T21:57:11Z"

Note from discussion with @ShyamsundarR

using annotation (or label) allows going back and making the cluster availlable again, which can lead to stale data in s3 store (was not deleted during disable dr). We want one way change that cannot be undone
Currently this works only when the annotation is applied before failover, since exiting VRG are not updated, so user need to add the annotation before failover. But failover is likely to be done quickly (to restore the service for users) before understanding that the cluster will never be available again. Since we don't want to be able to make a cluster available after it was marked as unavailable, we want to do this before disable dr, or maybe only if disable dr got stuck.
We can delete the drcluster instead of adding an annotation - this cannot be undone, and does not require teaching users about the new annotation.
The code should behave correctly when a drcluster is deleted, but not sure this is tested
Ideally when deleting the drcluster that drpolicy will become invalid, but not sure that this will be easy to do now
To update VRG when drcluster changes we can call the code creating or updating the vrg on every reconcile (it should read state from the cache so this should not be an issue)

Wanted behavior when drcluster is deleted:

Creating new drpc must fail
Relocate must fail
Failover must succeed

@ShyamsundarR @BenamarMk please review.


luci-app: Updated this morning, now cannot load LuCI

Is there an existing issue for this?

[X] I have searched the existing issues

screenshots or captures
Updated bunch of LuCI packages this morning, then can't load even the main screen anymore, any idea how to get it back to normal?
I just tried on Edge, the login screen appears, but after you login this error shows up:

Actual behaviour
Installed updates via LuCI, bunch of them were LuCI related.
Expected behaviour
I'd expect everything to work as before and login screen to load up.
Steps to reproduce
Updated to latest packages via LuCI
Additional Information
NAME="OpenWrt"
VERSION="23.05.5"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 23.05.5"
VERSION_ID="23.05.5"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r24106-10cc5fcd00"
OPENWRT_BOARD="x86/64"
OPENWRT_ARCH="x86_64"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt 23.05.5 r24106-10cc5fcd00"

What browsers do you see the problem on?
Chrome, Microsoft Edge
Relevant log output
Error
Unhandled exception during request dispatching
module 'luci.ucodebridge' not found:
no field package.preload['luci.ucodebridge']
no file './luci/ucodebridge.lua'
no file '/usr/share/lua/luci/ucodebridge.lua'
no file '/usr/share/lua/luci/ucodebridge/init.lua'
no file '/usr/lib/lua/luci/ucodebridge.lua'
no file '/usr/lib/lua/luci/ucodebridge/init.lua'
no file './luci/ucodebridge.so'
no file '/usr/lib/lua/luci/ucodebridge.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'

In [anonymous function](), file [C]
In [anonymous function](), file /usr/share/ucode/luci/runtime.uc, line 133, byte 10:
  called from function [arrow function] (/usr/share/ucode/luci/runtime.uc:141:63)
  called from function render ([C])
  called from function [anonymous function] (/usr/share/ucode/luci/runtime.uc:141:64)
  called from function run_action (/usr/share/ucode/luci/dispatcher.uc:778:34)
  called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:1003:48)
  called from anonymous function (/www/cgi-bin/luci:39:13)

 `            die(ex);`
  Near here --------^

Run opkg install luci-lua-runtime and see if that fixes it.


fix: remove deprecated upper functionality in Request::getMethod()

Description
The strike line is annoying.

remove deprecated upper functionality in getMethod()
fix HTTP verbs case. E.g., get → GET.

Checklist:

[x] Securely signed commits
[x] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[x] User guide updated
[x] Conforms to style guide

Yes, this is a big change.
But it has been deprecated since v4.0.5 (January 31, 2021):
https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_405.html?highlight=getmethod#message-getheader-s

I found this: https://github.com/JakeChampion/fetch/issues/254
It seems in fetch API only PATCH is not normalized, so patch does not work.

In the routes array, there is still lower case method names.
We need to change them.

I'm more worried about people using
$this->request->getMethod() === 'post'

I understand your concern. But it has been documented for long time.
https://codeigniter4.github.io/CodeIgniter4/incoming/incomingrequest.html#getmethod
We must change the output of getMethod() at once. If it is not changed, almost nothing will change. If we add a feature flag, we will have to prepare more than twice as much test code.
In the end, the question is when to fix this bug. If it is still too early, we can postpone, but what can we do in the meantime?

I get it, believe me. I have no problem with removing depreciated code in general. Most such code is long gone and/or smoothly replaced by alternatives.
Here, for a long time we had no alternatives - until the is() method was implemented. That's why I think this could be a pretty painful change.
However, looking at the amount of removed depreciated code in the upcoming 4.5 - maybe it's the right time.

@MGatner The getMethod() returns string, and our input to HTTP methods is all string.
So it seems difficult to use enum. I added a class with constants.


Get extra from omniauth-facebook.

Hi there, I'm trying to get Facebook birthday of the user identifying to save it in my User but I don't get the data.
I have set my config/initializers/omniauth.rb
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET'], image_size: 'large', scope: 'email,user_birthday'
end

I have seen in omniauth-facebook that they collect all infos in https://github.com/mkdynamic/omniauth-facebook/blob/master/lib/omniauth/strategies/facebook.rb with this code
extra do
  hash = {}
  hash['raw_info'] = raw_info unless skip_info?
  prune! hash
end

But I never get it in request.env['omniauth.auth'] in OmniauthCallbacksController, I only get the info.
How can I get the extra ?

Ok, got it to work.
I had to over write 2 functions in OmniauthCallbacksController :
# intermediary route for successful omniauth authentication. omniauth does
# not support multiple models, so we must resort to this terrible hack.
def redirect_callbacks
  # derive target redirect route from 'resource_class' param, which was set
  # before authentication.
  devise_mapping = [request.env['omniauth.params']['namespace_name'],
                    request.env['omniauth.params']['resource_class'].underscore.gsub('/', '_')].compact.join('_')
  redirect_route = "#{request.protocol}#{request.host_with_port}/#{Devise.mappings[devise_mapping.to_sym].fullpath}/#{params[:provider]}/callback"

  # preserve omniauth info for success route. ignore 'extra' in twitter
  # auth response to avoid CookieOverflow.
  session['dta.omniauth.auth'] = (params[:provider] == 'twitter') ? request.env['omniauth.auth'].except('extra') : request.env['omniauth.auth']
  session['dta.omniauth.params'] = request.env['omniauth.params']

  redirect_to redirect_route
end

protected

  # break out provider attribute assignment for easy method extension
  def assign_provider_attrs(user, auth_hash)
    user.assign_attributes({
      nickname: auth_hash['info']['nickname'],
      name:     auth_hash['info']['name'],
      image:    auth_hash['info']['image'],
      email:    auth_hash['info']['email'],
      birthday: Date.strptime(auth_hash['extra']['raw_info']['birthday'], '%m/%d/%Y'),
      gender: auth_hash['extra']['raw_info']['gender']
    })
  end

I think this line 20 should be session['dta.omniauth.auth'] = (params[:provider] == 'twitter') ? request.env['omniauth.auth'].except('extra') : request.env['omniauth.auth'] as it says it removes extra only for Twitter.
Now I'm wondering if I have a better option to include those extra informations inside my User model than over writing a protected assign_provider_attrs method. Do I ?

Hi there @alain-andre    ,
In an effort to cleanup this project and prioritize a bit, we're marking issues that haven't had any activity in a while with a "close-in-7-days" label. If we don't hear from you in about a week, we'll be closing this issue. Obviously feel free to re-open it at any time if it's the right time or this was done in error!
If you are still having the issue (especially if it's a bug report) please refer to our new Issue Template to provide some more details to help us solve it.
Hope all is well.


.DS_Store file got packed into mtar

When build using the tool, it appears the .DS_Store file will also be packed into the final mtar file. Then when deploying the created mtar to SCP CF, the deployment failed with error
Error: Adding "cfg/.DS_Store" for deploy... failed [8211700] (STDOUT, APP/TASK/deploy)#
Please provide the following info:

MBT Version: 1.0.7
OS Version: Mac OS Mojava 10.14.6

Steps to reproduce:

Run mbt build to build mtar
Run cf deploy created.mtar

More logs for the deploy:
#2.0#2020 01 07 05:39:35.559#Z#DEBUG#com.sap.cloud.lm.sl.xs2.db.executeTaskTask#
######com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger########flowable-async-job-executor-thread-6###
[PollExecuteTaskStatusExecution] [Tue Jan 07 05:39:32 UTC 2020]    [2020-01-07 05:39:32.275169000] Error: Adding "cfg/.DS_Store" for deploy... failed [8211700] (STDOUT, APP/TASK/deploy)#
#2.0#2020 01 07 05:39:35.559#Z#DEBUG#com.sap.cloud.lm.sl.xs2.db.executeTaskTask#
######com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger########flowable-async-job-executor-thread-6###
[PollExecuteTaskStatusExecution] [Tue Jan 07 05:39:32 UTC 2020]      at "cfg/.hdiconfig" (0:0) (STDOUT, APP/TASK/deploy)#
#2.0#2020 01 07 05:39:35.560#Z#DEBUG#com.sap.cloud.lm.sl.xs2.db.executeTaskTask#
######com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger########flowable-async-job-executor-thread-6###
[PollExecuteTaskStatusExecution] [Tue Jan 07 05:39:32 UTC 2020]    [2020-01-07 05:39:32.275144000] Error: "cfg/.hdiconfig": Configuration does not define a build plugin for file suffix "ds_store" [8210015] (STDOUT, APP/TASK/deploy)#
#2.0#2020 01 07 05:39:35.560#Z#DEBUG#com.sap.cloud.lm.sl.xs2.db.executeTaskTask#
######com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger########flowable-async-job-executor-thread-6###
[PollExecuteTaskStatusExecution] [Tue Jan 07 05:39:32 UTC 2020]      at "cfg/.DS_Store" (0:0) (STDOUT, APP/TASK/deploy)#
#2.0#2020 01 07 05:39:35.560#Z#DEBUG#com.sap.cloud.lm.sl.xs2.db.executeTaskTask#
######com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger########flowable-async-job-executor-thread-6###
[PollExecuteTaskStatusExecution] [Tue Jan 07 05:39:32 UTC 2020]    [2020-01-07 05:39:32.275124000] Error: "cfg/.DS_Store": could not create a compile unit for the file [8211714] (STDOUT, APP/TASK/deploy)#
#2.0#2020 01 07 05:39:35.560#Z#DEBUG#com.sap.cloud.lm.sl.xs2.db.executeTaskTask#
######com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger########flowable-async-job-executor-thread-6###
[PollExecuteTaskStatusExecution] [Tue Jan 07 05:39:32 UTC 2020]    [2020-01-07 05:39:32.260891000] Adding "cfg/.DS_Store" for deploy... (STDOUT, APP/TASK/deploy)#

Hi,
The MBT automatically packages all content of a build result folder, which is the module's root folder by default or the folder configured by the corresponding build parameter. You can exclude files/folders by using the 'ignore' option https://sap.github.io/cloud-mta-build-tool/configuration/#configuring-module-build-artifacts-to-package-into-mta-archive.
Regards
Natalia

automatically

Hi Natalia
Thank you for getting back to me. As you pointed out, I tried to put ignore to all of the modules in my app, then tried to rebuild. But the build result still not excluding .DS_Store files. I tried to use '.DS_Store', 'DS_Store', '*.DS_Store' in the ignore expression, and none of them seem to work. Also, is it possible to set it as global build parameter instead?
build-parameters:
  ignore: ['*.DS_Store']

Hi,
I see. We will investigate the issue.
"ignore" option is not considered at the global level: https://sap.github.io/cloud-mta-build-tool/configuration/#configuring-a-global-build
The reason is that the "ignore" parameter configures what to exclude from a module build results when they are packaged into an MTA archive. The global build results are not packaged directly, only if it produces output that is configured to be a module build result.
Regards
Natalia

Hi,
Which folder in your project is the file packaged from? And where inside the mtar is it created?
Best regards,
Tal

Hi Andrew,
Please try to use something like: ["cfg/.DS_STORE"] ,
which is: <relative (to the module) path to ignored file>/.DS_STORE
Regards,
Alla

Hi Andrew,
I'm closing the issue. If you still have a problem please reopen.
Regards,
Alla


Feature Request - Kindle Cloud Reader support

https://read.amazon.com does not colorize. It would be wonderful if it did. Perhaps related to the same issue when certain types of subparagraphs do not colorize on some websites.
Please keep this going, it is a wonderful project

This is on Android using Kiwi browser


Option to manually enable it on a server?

Hey.
I'm running my connection to Twitch though a ZNC bouncer. Is there any chance this add-on could have an option to force it to be enabled for a specific server?
Right now it looks like it is using the server address to figure out if it should do it's thing or not. And obviously that isn't working when I have a different server in the middle.

Thanks for the suggestion! Adding a preferences pane for the plugin is on my to-do list; once that base work is done I'll be able to add server configuration options.

A preferences pane is available in v0.0.2, and lets you manually enable the plugin on specified servers.


blog: our open source tier is not competition

Got a few questions around this, through LinkedIn and email, wanted to reply with a blog post instead.
Related Issue(s)

Checklist

[ ] I have read the contribution guidelines
[ ] I have considered the performance impact of these changes
[ ] Suitable unit/system level tests have been added and they pass
[ ] Documentation has been updated

@iskerrett If this is not content we'd want on our blog, let me know. 😄


[full-ci] [tests-only] Removed method isTestingOnOc10, and refactored code

Forward port of PR https://github.com/owncloud/ocis/pull/5722
Part of https://github.com/owncloud/ocis/issues/5337

E2E tests failed: https://drone.owncloud.com/owncloud/ocis/20171/84/1
:boom: To see the trace, please open the link in the console ...

npx playwright show-trace https://cache.owncloud.com/public/owncloud/ocis/20171/tracing/user-login-can-be-managed-in-the-admin-settings-admin-2023-3-10-03-32-47.zip
npx playwright show-trace https://cache.owncloud.com/public/owncloud/ocis/20171/tracing/user-login-can-be-managed-in-the-admin-settings-admin-2023-3-10-03-32-52.zip
npx playwright show-trace https://cache.owncloud.com/public/owncloud/ocis/20171/tracing/user-login-can-be-managed-in-the-admin-settings-alice-2023-3-10-03-32-51.zip


Generate unique IDs and reused them on a quit

Modify Server::Client so the getIndex() returns a unique ID instead of an incremented counter, so it can be used for other purpose than logging and debugging.

Unmaintained project (published for reference)