Can not require/import custom function from lambda layer.

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the
Amplify Console GitHub Issue Tracker

Describe the bug
I am using the lambda layer for node modules. Recently I decided to share a piece of code across multiple lambdas so I decided to put that piece of code in the lambda layer /opt directory. For example, I created a file named toast.js inside /opt/ directory so the full path is like this: /opt/toastjs
toast.js:
const getValue = async () => {
  console.log('Toast');
};
module.exports = getValue;

In my Lambda function that uses that layer, I import that toast.js file like this.
const getValue = require('/opt/toast');

However, when I run my lambda function, I get this error.
{
    "errorType": "Runtime.ImportModuleError",
    "errorMessage": "Error: Cannot find module '/opt/toast'\nRequire stack:\n- /var/task/app.js\n- /var/task/index.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
    "stack": [
        "Runtime.ImportModuleError: Error: Cannot find module '/opt/toast'",
        "Require stack:",
        "- /var/task/app.js",
        "- /var/task/index.js",
        "- /var/runtime/UserFunction.js",
        "- /var/runtime/index.js",
        "    at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
        "    at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
        "    at Object.<anonymous> (/var/runtime/index.js:43:30)",
        "    at Module._compile (internal/modules/cjs/loader.js:1015:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)",
        "    at Module.load (internal/modules/cjs/loader.js:879:32)",
        "    at Function.Module._load (internal/modules/cjs/loader.js:724:14)",
        "    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)",
        "    at internal/main/run_main_module.js:17:47"
    ]
}

I can successfully use node_modules from the lambda layer inside my lambda functions though.
Amplify CLI Version
4.37.1
Expected behavior
I should be able to use custom code from inside the lambda layer in my lambda function.
Desktop (please complete the following information):

OS: Ubuntu 20.04.1 LTS (Focal Fossa)
Node Version. v12.14.1

@Usama-Tahir you do not have to refeerence /opt folder from your Lambda code as whatever you put into /opt in your layer will be . in your Lambda, please try this: const getValue = require('./toast'); and it should work.
Try out something similar by using node modules in a layer by following this guide: https://aws.amazon.com/blogs/mobile/how-to-use-lambda-layers-with-the-amplify-cli/
I'm closing the question as it was answered if something new comes up feel tree to re-open it or open a new one.


Add a method to get a node from id

Hello!
First of all, love this script!
I was wondering if it would be possible to add a function to be able to get the node object from the node is.
The reason i want this is because I don't want multiple connections from an output. My idea is to register the connection event which passes the node ID, use that id to see how many connections the output it currently has.
Thanks,
Joe

Hello
I love that you like it!
A function for example ???
getNodeInfoId(id).

It returns the same information as this:
editor.drawflow.drawflow.Home.data[3]

In the example:
{
  "id": 3,
  "name": "telegram",
  "data": {
    "channel": "channel_2"
  },
  "class": "telegram",
  "html": "\n
\n
 Telegram bot
\n
\n
Send to telegram
\n
select channel
\n              <select df-channel>\n                <option value=\"channel_1\">Channel 1</option>\n                <option value=\"channel_2\">Channel 2</option>\n                <option value=\"channel_3\">Channel 3</option>\n                <option value=\"channel_4\">Channel 4</option>\n              </select>\n
\n
\n          ",
  "typenode": false,
  "inputs": {
    "input_1": {
      "connections": [{
        "node": "7",
        "input": "output_1"
      }]
    }
  },
  "outputs": {},
  "pos_x": 1032,
  "pos_y": 184
}

With this would be solved?
Jero

Hey @jerosoler !
Yes thats exactly it, I have been using:
getNodeFromId: function (id) {     return this.editor.drawflow.drawflow.Home.data[id]; },
A addConnection function would be good too, however I dont mind making a PR for this if that helps you?
Also I would like to note that the event for connectionCreated and connectionRemoved has a typo, ouput_id should be output_id
Thanks,
Joe!

Would also like to mention that deleting a node that has connections doesn't trigger connectionRemoved for the connections that were destroyed because of this

Hello
Thank you! 👏👏
I just implemented your changes.
I also noticed another mistake. But it has already been corrected.
You will see a new function getModuleFromNodeId.
You can see the changes in the last commits.
The getNodeFromId function has also been implemented.
Anything else?

Hey @jerosoler
Thank you so much for implementing my changes 🎉🎉 Im sure others will find these useful!
I have just created a function to create connections programatically, see: https://github.com/icabbi-joegarlick/Drawflow/commit/ed8263c277b9c2459298c7d6f8798517378d0910
Im not sure if this function is 100% correct and you will probably be able to tell me if it is however it seems to be working in my use case (custom loading using addNode and addConnection)
Thanks again!
Joe

WoW!!! 👀👀
I would say it is not correct.
The connection to node i is added directly not to the general flow. If you change modules you will see why. I think that it would not be exported correctly either.
You should also take into account what module you are on!
Jero

Thanks for the feedback @jerosoler !
I mean its working for me so far, ill keep testing it tomorrow. Do you think you would be able to make a similar function that is correct?
Thanks,
Joe

Thanks for the feedback @jerosoler !
I mean its working for me so far, ill keep testing it tomorrow. Do you think you would be able to make a similar function that is correct?
Thanks,
Joe

I'll look at it tomorrow.
I just added some modifications and fixes

Hi! 👋
Method added addConnection
Commit: https://github.com/jerosoler/Drawflow/commit/de99a4e2d42bfbaf2a0ed49cd064721f7c0840b6
Use:
addConnection(id_output, id_input, output_class, input_class)
Example:
 addConnection(15,16,'output_1','input_1')
And other fixes and features ;)

Hey @jerosoler!
Thank you so much for looking into this for me! I really appreciate it. This will make development so much easier.
We can now close this issue now.
I will add another issue if I come across anything else!
Thanks again,
Joe


JSON diff & patch feature

Awesome lib so far :D, i'm currently migrating from nlohmann json and i was wondering if there are plans on implementing a diff & patch method? I tried looking around and merge seems to be the closest to patch, i'm currently implementing it on my lib, but would be nice to have glaze do it
Aka:
auto diff = glz::diff(json1, json2);

...later on..
auto patchedJSON = glz::patch(diff);

patchedJSON contains data kept the non-removed / replaced data from the prev json and added / removed data from json2, kinda like a migration.
Similar to https://json.nlohmann.me/api/basic_json/diff/

Glaze is focused on doing as much work at compile time as possible (for performance). Would a glz::diff on two separate structs, which produces a new object that we can read into to produce your patched JSON work? Or, does this diff need to occur at runtime for you?
In other words, do you know the layout (fields and types) of json1 and json2 at compile time? If so, we can make this diff reading/writing much more efficient.

Thanks for your additional explanation and thoughts. I like this idea and think it should be added, but it won't be a priority at the moment so I can't give you a date for the feature yet.

Thanks for your additional explanation and thoughts. I like this idea and think it should be added, but it won't be a priority at the moment so I can't give you a date for the feature yet.

No worries :D, am already implementing something on the side (not great but it works), thanks again for the amazing lib ^^


Move source and bucket dropdowns to first column

Move source and bucket dropdowns to first column

Let's do it


added ssl support to start()

@briancray

If you try to run a server on a host that already has a port 80 in use, it will cause an error. Plus, you need to be a super user to run that on 80 too. Might not always want that.


TLS: Allow specification of both typed and non-typed san matchers in config

Commit Message:
Additional Description:
Allow configs with both typed and non typed san matchers specified to allow config servers to use the same config for Envoys across multiple versions. The match_subject_alt_names field is ignored if match_typed_subject_alt_names is set.
Risk Level: Low
Testing: Modified test, ran //test/...
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

/assign adisuissa

Just curious if we can back port this to v1.21 ?

Just curious if we can back port this to v1.21 ?

Yes!

Assigning Greg who also reviewed the original PR (#18628).
/assign @ggreenway

LGTM excep the doc need to be fixed.

PTAL at CI
/wait

The windows only failure (https://dev.azure.com/cncf/envoy/_build/results?buildId=104855&view=logs&j=b840a642-5ff3-5357-2e4b-e06e40b0cffd&t=67965174-5100-5631-9dc0-68b9f0aacb53&l=3085) seems to be unrelated to my changes. Will try retesting.

/retest

/retest

Hi @ggreenway, do the changes look good to you?

LGTM, thanks for udpate

Thanks for the review @soulxu  and @adisuissa !

High level question: why is this needed? We've had many situations where we've deprecated a field and replaced it with another, and make it an error to specify both. Why not just use the old field in your config server until all Envoy's support the new field? Why is this setting different from other deprecated-and-replaced settings?

High level question: why is this needed? We've had many situations where we've deprecated a field and replaced it with another, and make it an error to specify both. Why not just use the old field in your config server until all Envoy's support the new field? Why is this setting different from other deprecated-and-replaced settings?

This is needed for servers that support both "old" and "new" clients, and have a hard time differentiating whether they should send the "old" config or the "new" config, so they send both. This should be solved once xDS version negotiation will be completed.

Is this situation unique, or are there other fields that are handled the same way?

This should be solved once xDS version negotiation will be completed.

Yep, that makes sense.

@adisuissa and @ggreenway -- are we waiting for further changes here?

This needs a main merge. Can you do that and we can get this in? Thank you.
/wait

Done, thanks Matt!
/backport

Is this situation unique, or are there other fields that are handled the same way?

@pradeepcrao any information about this question?
/wait-any

Is this situation unique, or are there other fields that are handled the same way?

@pradeepcrao any information about this question?
/wait-any

Hi Greg, this was the only one I could find:
https://github.com/envoyproxy/envoy/blob/f9d936ec65e42308f72b48e52ed5b810effc40e5/api/envoy/config/core/v3/base.proto#L249
(note that filter_metadata is not yet deprecated, but the plan is to deprecate it soon as per @yanjunxiang-google)

@envoyproxy/api-shepherds can you comment on if this the correct way to handle this from an API perspective? If there's nothing unique about this situation, how has this been handled for other similar issues?
/wait-any

/retest

@ggreenway I think this is a common pattern (introduce new field which is effectively oneof, prefer one over the other), but there are also places where you see  both fields continuing to be used, e.g. verify_certificate_{spki,hash}. I think as long as you can set both, and prefer the most correct/safest/etc, you enable safe rollouts.

/retest


changing root view controller affects status bar

whenever change root view controller, status is hidden and shown after a sec which looks bad

Try this set "LGSideMenuStatusBarVisibleOnAll" on "rightViewStatusBarVisibleOptions" property

@Asich thanks for advise but this property will make the status bar visible for right side menu  that's not what I want
I need to make the status bar hidden when right side menu is opened and show it again when menu is closed
and this issue happens in this case

Try new version, is it ok now?
Better use UINavigationController as rootViewController for sideMenuController and change viewControllers for this navigationController.
[sideMenuController.rootViewController setViewControllers:@[newViewController]];

Feel free to open issue back if you have more questions.


KAFKA-10011: Remove task id from lockedTaskDirectories during handleLostAll

As stated, we couldn't wait for handleRebalanceComplete in the case of handleLostAll, as we already closed the active task as dirty, and could potentially require its offset in the next thread.runOnce call.
Committer Checklist (excluded from commit message)

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

test this please

Test this please

Instead of removing the tasks during handleLostAll, can we just clear the lockedTaskDirectories set at the end of releaseLockedUnassignedTaskDirectories? This set is only used to keep track of which task directories we only temporarily locked for the rebalance, so it makes sense that it should be empty outside of a rebalance.

I agree with @ableegoldman here, after the while (taskIdIterator.hasNext() loop we can see if there are still remaining tasks, and then log an WARN similar to the end of handleRevocation before clearing them:
if (!remainingPartitions.isEmpty()) {
            log.warn("The following partitions {} are missing from the task partitions. It could potentially " +
                         "due to race condition of consumer detecting the heartbeat failure, or the tasks " +
                         "have been cleaned up by the handleAssignment callback.", remainingPartitions);
        }

I also think we should reset/clear the set at the beginning of tryToLockAllNonEmptyTaskDirectories

Will attempt Sophie's suggestion here

I think it is still better to log a warn at the end of releaseLockedUnassignedTaskDirectories if the map is not empty at the end, will add it before merging.

@guozhangwang Why would we warn? You mean if we have any tasks leftover? These are just tasks that are currently assigned

@guozhangwang Why would we warn? You mean if we have any tasks leftover? These are just tasks that are currently assigned

I think we would only have leftover tasks if they are closed due to exception during the rebalance.


Improve the performance of prepareContentFolder

The prepareContentFolder function in our test suite takes a long time to execute because it does so much unnecessary work.
This PR currently fails tests, creating for collaboration :)

This is probably worth rebasing now, although I don't think it'll fix everything just yet :)

Gonna close this for now, as having a bit of a cleanup before the branch rejig. We know we need to come back to it!


Is maxinputs supported by SCP 2?

When I specifies maxinputs=50000 in metadata returned to splunk. I got a warning
WARN  ChunkedExternProcessor - Unsupported metadata field sent by custom search command: maxinputs
Seems SCP 1 supports maxinputs because I can find it in commands.conf.spec.

@likel, It is not supported in SCPv2. The value of maxresultrows will be pulled from limits.conf by Splunkd.


ResolveExternalDependencies is configuration-cache compatible.

This is a first step towards making the rest of the plugin compatible.
Replaces https://github.com/autonomousapps/dependency-analysis-gradle-plugin/pull/867.

Build failed


chore(website): fix links in plugins docs

Also, change the npm run commands to use gulp - they're
smart enough to grab the right thing now.

Changing the link URLs like this shouldn't be necessary pending https://github.com/angular/protractor/pull/2288, but we can still do it if you want.  The other part looks fine.


WIP: Internalization of 4Mintz

This PR introduces a new feature to 4Mintiz: Multilingual Support. For this, I added the packages meteor:universe-i18n and meteor:universe-i18n-blaze. Most of the work will consist of finding all hard-coded strings and replace them with appropriate message format strings. As soon as all strings have been found, I will upload the language file en-us.yml to Crowdin for easier collaborative translation.

 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.

@itrich Hey!! In a busy work week, I just wanted to pop by and say a big "Thank you" for this initiative. Greatly appreciated that you work on issue #30.
When the dust has settled and things work as expected we sure want to merge your work.
For the time being please ignore the red travis tests. We need to invest some time there...
Bye. WOK.

Strings that won't be translated with this PR:

All console.log messages
All Meteor.Error messages

However, if someone is keen on doing this task of diligence, simply grep for the above methods.

Strings that won't be translated with this PR:
* All console.log messages
* All Meteor.Error messages

Yes, I agree that we can keep these "admin only strings" in English.

Hi @itrich ,
I'm really looking forward to this feature... but no commits since >4 weeks - yet the pull request is still labeled "WIP". Is the PR ready for review & merge? Can we help somehow? Or should we just wait?
Keep up the good work!
WOK.

Hi @derwok,
unfortunately I had to focus on other projects. I'm opening my PR to maintainers and looking forward to further collaboration!
Best wishes,
Eduard

unfortunately I had to focus on other projects. I'm opening my PR to maintainers and looking forward to further collaboration!

Happy new year, first!!! Hope all family fine!
@itrich Did you have the chance to open your repo's pull request branch for maintainers?
I just tried a test push - returned with error.

unfortunately I had to focus on other projects. I'm opening my PR to maintainers and looking forward to further collaboration!

Happy new year, first!!! Hope all family fine!
@itrich Did you have the chance to open your repo's pull request branch for maintainers?
I just tried a test push - returned with error.

Strange, because I checked the option „Allow edits from maintainers.“


If more information can be offered about the fluxterm in the interface_equation?

Before opening an issue, please create a discussion concerning your request at https://forum.devsim.org
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
__

This is discussed here:
https://forum.devsim.org/t/could-the-more-information-can-be-offered-about-fluxterm-in-interface-equation/66/3


feat: use infra reverse_proxy

:tada: This PR is included in version 1.51.0 :tada:
The release is available on:

v1.51.0
GitHub release

Your semantic-release bot :package::rocket:


Expose license hash

This pull request exposes License#hash and LicenseFile#hash methods for identifying and comparing non-standard licenses.
This is implemented by adding hash and content_normalized methods to ContentHelper, which simply strip whitespace and calculates the SHA256 hash of the file's content. I'm not beholden to SHA256, if folks like @vmg have strong opinions for one hashing algorithm over another. Given the use case, it doesn't need to be cryptographic, but we'd want it to be fast and unique.
This isn't used for the built in license detection. The use case in mind here is the one described in #67. Where Licensee fails to detect a license, the hash could be used by end users to identify identical (once normalized, including removing copyright information) but unknown licenses.
I also moved LicenseFile and ProjectInfo into their own files, to make it a bit easier to test things more granularly, and standardized License and LicenseFile to use #content (rather than License using #body before) to describe the contents of the license (but aliased to #body to preserve backwards compatibility).
Fixes #67

Awesome! :tada:


bug: age of transactions and blocks always 12 days

If the explorer is catching up to blocks all the the age is always 12 days ago

Can also be an aztec problem sandbox problem


feat: export ts-rest react query types

Codecov Report

Merging #206 (6203fa7) into main (56170dd) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main     #206   +/-   ##
=======================================
  Coverage   63.05%   63.05%
=======================================
  Files          11       11
  Lines         295      295
  Branches       69       69
=======================================
  Hits          186      186
  Misses         97       97
  Partials       12       12

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


how to bind 'pm:create' event on two separate custom controls whose shapes are both 'Polyline'

Hi all,
in my case, I have to create two Polyline controls for two separate things(one is to draw navigation route, another to draw something like virtual walls).
here is the code for creating the two controls:
`mapEle.pm.Toolbar.copyDrawControl('Polyline', {
name: 'PolylineCopy1',
title: 'Draw a Navigation Route',
onClick: () => {
mapEle.pm.setPathOptions({
color: '#8dc6ff',
fillColor: 'green',
fillOpacity: 0.4,
});
},
});
  mapEle.pm.Toolbar.copyDrawControl('Polyline', {
    name: 'PolylineCopy2',
    title: 'Draw a Virtual Wall',
    className: 'draw-wall-btn',
    onClick: () => {
      mapEle.pm.setPathOptions({
        color: 'green',
        fillColor: 'green',
        fillOpacity: 0.4,
      });
    },
  });`

Now I bind the 'pm:create' event to the map(mapEle.on('pm:create', e => {         console.log('new: ', e);       });),
The problem here is, drawing navigation route or virtual wall  calls the same event handler, and it's hard to tell what is it  one is trying to draw....
Has anyone has seen this issue before and how to solve it please?
Thank you!

@Amber711 thx for reporting! I will fix this.
Workaround for you:
map.pm.Toolbar.copyDrawControl('Polyline', {
  name: 'PolylineCopy1',
  title: 'Draw a Virtual Wall',
  className: 'draw-wall-btn',
});
// set the pathoptions for the new shape and not in the onClick. Else every shape changes the color.
map.pm.Draw.PolylineCopy1.setPathOptions({
  color: '#8dc6ff',
  fillColor: 'green',
  fillOpacity: 0.4,
  layer: 'Copy1' // define a custom option with a name
});
map.pm.Toolbar.copyDrawControl('Polyline', {
  name: 'PolylineCopy2',
  title: 'Draw a Virtual Wall',
  className: 'draw-wall-btn',
});
map.pm.Draw.PolylineCopy2.setPathOptions({
  color: 'green',
  fillColor: 'green',
  fillOpacity: 0.4,
  layer: 'Copy2' // define a custom option with a name
});
map.on('pm:create',e => {console.log(e.layer.options.layer)}) // readout the custom option with the name

Hi @Falke-Design ,
Thank you so much for the workaround. Have tried it and that works well!

Fixed in Release:  2.7.0


Add loading of dependent VS packages to UI test runner.

Django and Profiling UI tests were having issues loading dependent package assemblies.

I'd just made the debugger test DLL included in the VSIX, but I like this approach better. 👍


Make SpatialRDD a generic class parameterized over geometry type

Allow creating SpatialRDD with a mix of geometry types by making SpatialRDD a generic class parameterized over geometry type. Restricting objects stored in Spatial RDD to instances of Geometry enhances type safety and reduces the need for dynamic cast.
Updated core/pom.xml to add dependencies to allow 'mvn clean install' to succeed.

@mbasmanova Thanks for your contribution!


CSS: Add overflow-wrap to links inside paragraphs

Problem
Long links are not wrapping and are either triggering the body horizontal scrollbar or overflowing outside the document.
Changes
Adds the following styles
.rst-content p a {
    overflow-wrap: anywhere
}

Change looks good! Added a new visual regression test:

This change caused issue #1368


Add Cluster.DBSize

Fixes https://github.com/go-redis/redis/issues/632

result of DBSize() is different from DbSize()??

DbSize is deprecated in favor of DBSize.


server rendering breaks component. "TypeError: Cannot read property 'modal' of undefined"

I get "TypeError: Cannot read property 'modal' of undefined" when server rendering a component with this. the component's state has the wysiwyg not even open on load. but still wont render.
might work to hold off initializing summernote until it hits the componentDidMount hook. but I am just guessing at this without source diving.

great job closing without responding. so no thoughts at all. no reference to another PR? anything here?

It's impossible to use Summernote with server-side rendering because of client-side dependencies


Route params documentation

Hey I found the documentation about route params to be very useful, but as a developer I would love to see that in the README to get a better and more immediate idea of the Route interface.
Could we include them on the README?

I'm going to be working on the docs/README etc. soon, I'm not sure cherry picking various things for the readme is the right approach. thank you though, we definitely need to improve the learning experience.

Ok no worries :)


Enhanced CLI with Node Project

Use the access token mechanism for API. Make sure we don't expose secrets.

The following is just a bunch of notes I took when learning about CLI design. I wanted to preserve this list somewhere, so here we go 😄
A talk about the design of the GitHub CLI: https://www.youtube.com/watch?v=zsjeZZVAk1E
--> Related: https://primer.style/cli/getting-started/prototyping
The code of the GitHub CLI (https://github.com/cli/cli) is structured in the same way as the available commands:
pkg/
`-- cmd/
    |-- actions/
    |-- alias/
    |-- api/
    |-- auth/
    |   |-- gitcredential/ [this is no actual command]
    |   |-- login/
    |   |-- logout/
    |   |-- refresh/
    |   |-- setupgit/ [maps to the "setup-git" command]
    |   |-- shared/ [this is no actual command]
    |   |-- status/
    |   |-- token/
    |   `-- auth.go
    |-- browse/
    `-- codespace/

Screenshots from the GitHub CLI

Commands
msadoc

> msadoc

USAGE
  msadoc <command> <subcommand> [flags]

CORE COMMANDS
  check: Check whether a given Service Doc is valid
  upload: Send a Service Doc to a server
  server: Manage login credentials for servers

msadoc server

> msadoc server

Manage login credentials for MSAdoc servers.

USAGE
  msadoc server <command> [flags]

COMMANDS
  add: Add a new server (this is essentially a login command)
  delete: Remove a server
  list: List all servers

msadoc server add

This is an interactive prompt, asking for:

The server URL
Username
Password

> msadoc server add

? The URL to the server: https://example.com

> msadoc server add

? The URL to the server: https://example.com
? Username: john-doe
? Password: *********

> msadoc server add

? The URL to the server: https://example.com
? Username: john-doe
? Password: *********

Successfully added server "https://example.com".

In case of an error, we simply abort. This is probably not ideal for UX, but should be good enough for now.
> msadoc server add

? The URL to the server: https://example.com
? Username: john-doe
? Password: *********

Failed to authenticate on "https://example.com".

msadoc check

> msadoc check

Check whether a Service Doc is valid.

USAGE
  msadoc check <path-to-file>

EXAMPLE
  msadoc check ./service-doc.json

> msadoc check ./valid-service-doc.json
The Service Doc is valid.

> msadoc check ./invalid-service-doc.json
The Service Doc is invalid. Errors:
- Mandatory field "name" is missing.
- Field "tags" must be an array, string given.

msadoc upload

> msadoc upload

Upload a Service Doc to a server.

In an interactive shell, this command will ask you to select a server you want to perform the upload to. In a non-interactive shell like a CI environment, please specify the following two environment variables:
- MSADOC_SERVER: The URL to the server, e.g. https://example.com
- MSADOC_AUTH_TOKEN: The auth token that shall be used to authenticate to MSADOC_SERVER

USAGE
  msadoc upload <path-to-file>

EXAMPLE
  msadoc upload ./service-doc.json

Interactive shell:
> msadoc upload ./service-doc.json

? Which server would you like to upload the Service Doc to?
  > https://example1.com
    https://example2.org

CI environment:
> msadoc upload ./service-doc.json
The Service Doc has successfully been uploaded to "https://example.com".

Missing environment variables:
> msadoc upload ./service-doc.json
You are running this command in a non-interactive shell. For this to work, please specify the following environment variables:
- MSADOC_SERVER: The URL to the server, e.g. https://example.com
- MSADOC_AUTH_TOKEN: The auth token that shall be used to authenticate to MSADOC_SERVER

Update: Version number will, for now, be taken from cli/package.json.

Deployment in #164


Revert "[BEAM-5709] Changing sleeps to CountdownLatch in test"

Reverts apache/beam#8395
Seems like this change has caused the flakes to pop back up when they were previously gone.

Example flake: https://builds.apache.org/job/beam_PreCommit_Java_Phrase/1056/testReport/org.apache.beam.runners.dataflow.worker.fn/BeamFnControlServiceTest/testClientConnecting/

R: @boyuanzz @tvalentyn

Just curious, will increasing timeout to a larger value help de-flaky?

It might, but I'll test out that fix and make a new PR if it works. I don't want to block people waiting on the Precommit

Run Python PreCommit


Commit minor changes to generated code

It seems the generated code is slightly different than whats committed,
so this updates what's committed in the repo to what is actually being
generated.
No functional changes.

I don't think this should have been committed. From what I've seen, the go-bindata repo hasn't changed since this commit #3477.

@tariq1890 you are correct :)

Yeah, apparently my go-bindata was outdated even though I just installed it very recently ;) Will make a revert PR.

Oh looks like @jackfrancis already took care of it!
Sorry!

I guess we really need a way of locking on to a particular go-bindata version :).


error: command 'clang' failed with exit status 1

pip install j2cli[yaml]
gives
    building '_yaml' extension
    creating build/temp.macosx-10.14-x86_64-3.7/ext
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c ext/_yaml.c -o build/temp.macosx-10.14-x86_64-3.7/ext/_yaml.o
    In file included from ext/_yaml.c:343:
    ext/_yaml.h:10:9: warning: 'PyString_CheckExact' macro redefined [-Wmacro-redefined]
    #define PyString_CheckExact PyBytes_CheckExact
            ^
    ext/_yaml.c:184:11: note: previous definition is here
      #define PyString_CheckExact          PyUnicode_CheckExact
              ^
    ext/_yaml.c:1346:17: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
      __pyx_v_value = yaml_get_version_string();
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~

Python 3.7.3, Mojave

Wow, that was stupid of me. Fixed it, thank you for your vigilance!
I'll publish a release shortly.


ldapjs paging issue

http://ldapjs.org/client.html#paging
as in document you mentioned i used same thing to automate paging
Opts ={
scope:"one",
filter:"(cn=ABC*)",
timeLimit:60,
sizeLimit:2000,
paging: true
};
in search query control will never go inside page block and if i defined sizeLimit is 2000 then i am getting same error AdminLimitExceeded, if i define size limit is beyond 1000 eg 900 then i am getting error SizeLimitExceeded. can u please tell me if i want to fetch records around 5000 what parameter or paging configuration should i pass?
only enabling paging true is not working.
opts = {
filter: '(cn=ABC*)',
scope: 'one',
paging: {
pageSize: 250,
pagePause: true
},
timeLimit:60,
attributes: ['cn'],
sizeLimit:2000
};
i am mentioning page size is 250 so after fetching 250 record controls has to go in page block but it continuously fetch 1000 records after that giving error AdminLimitExceeded .
please tell me in details how to solve this problem ?

You already have an issue open regarding questions about paging.
Please use that.

⚠ This issue has been locked due to age. If you have encountered a recent
problem that seems to be covered by this issue, please open a new issue.
Please include a minimal reproducible example
when opening a new issue.


Graph flows

This change is

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.

docs/research/flows.md, line 38 at r1 (raw file):

https://github.com/istalker2/ac-etcd

I'm not 100% sure if linking to 3rd party repo (looking from AC repo perspective) is right there, but it's not that I'm against it.

Comments from Reviewable

Review status: 0 of 1 files reviewed at latest revision, 9 unresolved discussions.

docs/research/flows.md, line 5 at r1 (raw file):

Flow is a way to designate a part of AC resource graph (i.e. its subgraph) and then use
it as a atomic in other parts of a graph. Thus the deployment of a bigger system may be

as a atomic seems to not be correct. as an atomic, but I would also change atomic to vertex, so my final proposal is as vertex.

docs/research/flows.md, line 13 at r1 (raw file):

and an application, that depends on it, both database and the application become such
components and the main graph has just these two nodes, whereas there are separate
subgraphs for each of them. If then one want to change the database subgraph he is free

s/If then one want/If then one wants

docs/research/flows.md, line 14 at r1 (raw file):

components and the main graph has just these two nodes, whereas there are separate
subgraphs for each of them. If then one want to change the database subgraph he is free
to do say without a need to make any changes to the application subgraph since it doesn't

s/say/so

docs/research/flows.md, line 18 at r1 (raw file):

whole.

Flows are a means to define such components, their scope within the graph and their

s/are a means/are means

docs/research/flows.md, line 26 at r1 (raw file):

  AppController CLI
* Can be replicated, i.e. produce more than one deployment of the subgraph
* Each flow replica has a unique name which can be substituted into dependent resource

probably s/substituted into/substituted with

docs/research/flows.md, line 27 at r1 (raw file):

* Can be replicated, i.e. produce more than one deployment of the subgraph
* Each flow replica has a unique name which can be substituted into dependent resource
  names or anywhere in their definition. Thus each flow replica might produce both

I don't understand this sentence.  "Each flow replica has a unique name which can be substituted into dependent resource names or anywhere in their definition." I don't know what "or anywhere in their definition" means in this context.

docs/research/flows.md, line 30 at r1 (raw file):

  different resources (if the replica name is used as part of its name) and share
  common resources
* Can be parametrized. Parameter values can be used in resource defiitions the same

s/defiitions/definitions

docs/research/flows.md, line 36 at r1 (raw file):

https://docs.google.com/document/d/1UH9r9X3AaOND_KZO0Qslp6iPkt526PMDpG29B4L1sVQ/edit?usp=sharing
Not sure about putting google doc here, maybe @jnowak what do you think?

docs/research/flows.md, line 38 at r1 (raw file):
Previously, pigmej (Jędrzej Nowak) wrote…

https://github.com/istalker2/ac-etcd

I'm not 100% sure if linking to 3rd party repo (looking from AC repo perspective) is right there, but it's not that I'm against it.

I am OK with that, google doc above makes me more nervous TBH.

Comments from Reviewable

Review status: 0 of 1 files reviewed at latest revision, 9 unresolved discussions.

docs/research/flows.md, line 38 at r1 (raw file):
Previously, nebril (Maciej Kwiek) wrote…
I am OK with that, google doc above makes me more nervous TBH.

GDoc can be merged when everything will be finished.

Comments from Reviewable

Review status: 0 of 1 files reviewed at latest revision, 10 unresolved discussions.

docs/research/flows.md, line 33 at r1 (raw file):

May be stable (idempotent) or not. Stable flows produce the same replica names on each run, which result in the same resource graph

I'm not sure if I understand this English :)

docs/research/flows.md, line 36 at r1 (raw file):
Previously, nebril (Maciej Kwiek) wrote…

https://docs.google.com/document/d/1UH9r9X3AaOND_KZO0Qslp6iPkt526PMDpG29B4L1sVQ/edit?usp=sharing
Not sure about putting google doc here, maybe @jnowak what do you think?

gdoc is ok at this stage, later we will export and merge it there.

Comments from Reviewable

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, 11 unresolved discussions.

docs/research/flows.md, line 5 at r1 (raw file):
Previously, nebril (Maciej Kwiek) wrote…
as a atomic seems to not be correct. as an atomic, but I would also change atomic to vertex, so my final proposal is as vertex.

as a vertex?

docs/research/flows.md, line 6 at r1 (raw file):

Flow is a way to designate a part of AC resource graph (i.e. its subgraph) and then use
it as a atomic in other parts of a graph. Thus the deployment of a bigger system may be
split into smaller reusable components and then compose the overall deployment from these

Thus the deployment of a bigger system may be split into smaller reusable components. imo rest should be dropped.

docs/research/flows.md, line 14 at r1 (raw file):
Previously, nebril (Maciej Kwiek) wrote…
s/say/so

to do this without a need to do any changes in the application subgraph

docs/research/flows.md, line 33 at r1 (raw file):
Previously, pigmej (Jędrzej Nowak) wrote…

May be stable (idempotent) or not. Stable flows produce the same replica names on each run, which result in the same resource graph

I'm not sure if I understand this English :)

Missing explanation for unstable part even if it's opposite for same graph. Maybe this should be rephrased as: May be unstable, which results in different graphs with different replica names on each run, or stable (idempotent), resulting in same replica names (so in effect same resource graph) for each run.

Comments from Reviewable


first draft of article

Description
An article explaining how to use images in dashboard hosted on FlowForge.

@iskerrett

This still needs the image header adding - https://github.com/flowforge/content/issues/123

Pending the tile from @Yndira-FlowForge, but otherwise; feel free to merge.


Expose createIndex() of IDBObjectStore

We store a huge model with more than 70 properties. We would like to filter with about 20 properties, and with all possible combinations of these filters at the same time. Creating all index combination statically is very huge, we would like to create indexes dynamically following filters we would like to apply to the object store.
I found that IndexedDB exposes a createIndex() method. Is it possible to do the same throught DexieJS ?

You can create an index using Dexie but this is as far as I remember only possible during a version upgrade. I think the same is the case when using IndexedDB directly.
I don't know exactly what you mean by "create indexes dynamically" but generally speaking it is pretty useless to create an index when the user is ready to do a search as the DB would have to index each and every record and then start the search. That would probably be slower than just reading all the records and doing the filtering in JavaScript.

Thanks for your response :)
Effectively we built a 2-levels filtering engine for our application

First level : IndexedDB / DexieJS because we start with a huge amount of data first ;
Second level : in-memory filtering with crossfilter library.

We understand now the limitation of IndexedDB ;)


#116 doesn't work with Amazon Linux having EPEL enabled

The package changes in #116 do not work with Amazon Linux when EPEL is enabled.
Amazon Linux has three packages:
tomcat6 (6.0.43-1.2.amzn1)
tomcat (7.0.33-4.el6) -> coming from EPEL
tomcat7 (7.0.62-1.9.amzn1)
So with the base version being six, it ends up installing "tomcat" which installs version 7.0.33.

First off I'm very sorry that it's taken so long to get back to you on this issue.  For a significant period of time there was no active Chef Software Inc. maintainer for this repository and things languished.  We're now actively maintaining this cookbook again, and as part of that I've rewritten the cookbook with new custom resources for installing Tomcat from Apache Org sources.  This will ship in an upcoming 2.0 release and then we'll remove the existing recipes and providers in a future 3.X release.  With those new providers I believe the need for this change goes away so I'm going to close this out.  I encourage you to give the new providers a try and let me know if we can tackle more Tomcat management without the attributes bloat the current code suffers from.  They're on the master branch and once the documentation and testing improves a bit they'll be released as a 2.0 cookbook.


Adds plan id to apply notifications

Makes changes to how apply notifications are called in context.py to include plan_id. Also modifies the Airflow plan_request_id to be the same as plan_id so that apply notifications can include links to the Airflow job. All of this will help our users find logs when they want to see what SQL queries SQL Mesh runs or track down an error.
Currently when a SQL Mesh apply fails with Airflow acting as scheduler, the stack trace sent to the notification integration doesn't include any information about why the apply failed. Getting the actual stack trace out of airflow and into the notification would be very complicated, so a good work around is just to include a link to the DAG so users can quickly explore the logs for their run.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: Isaiah Morgan:x: isaiahgmIsaiah Morgan seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


URL Cleanup

This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
Fixed URLs
Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

[ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
https://www.apache.org/licenses/ (https result 200).
[ ] http://www.apache.org/licenses/LICENSE-2.0 with 121 occurrences migrated to:
https://www.apache.org/licenses/LICENSE-2.0 (https result 200).

@garyrussell ,
I wonder if we still need that 0.11 branch...

Deleted


Negative (.not) assertion timeout defaults to 30 seconds

According to the docs helper methods liketoHaveSelector, toHaveText, toEqualText, and toEqualValue have a default timeout of 1 second.

It has a default timeout of 1 second, which you can overwrite via the options.

This is working as expected for positive assertions:
// Immediate (working)
await expect(page).toHaveSelector('#foo');

But negative assertions are defaulting to a 30 second timeout:
// 30 second timeout (not working)
await expect(page).not.toHaveSelector('#foo');

I can fix this by manually setting the timeout in options, but it would be nice to not have to do this:
// Immediate (manual fix)
await expect(page).not.toHaveSelector('#foo', { timeout: 1 });

Configuration:

jest: 26.1.0
jest-playwright-preset: 1.2.1
playwright: 1.2.0

Thanks!

Hi!
I'll tomorrow make a new release and address this, thanks for creating this detailed issue 👍

Hi, sorry for the delay!
Unfortunately we decided internally that it's not that useful to have a default timeout of 1 second because we would then have this 1 second for all matchers. Not only the not selectors.

No worries, @mxschmitt. Really appreciate the quick turnaround!


Fix incorrect MultiplayerHub storage and usage

Fixes https://github.com/ppy/osu-server-spectator/issues/114
Hubs are transient objects (see bottom of https://docs.microsoft.com/en-us/aspnet/core/signalr/hubs?view=aspnetcore-6.0#configure-signalr-hubs), so it is incorrect to store them. The proper way to "store" them is to instead store an IHubContext<THub>, as explained in https://docs.microsoft.com/en-us/aspnet/core/signalr/hubcontext?view=aspnetcore-6.0.
Doing this incorrectly leads to multiple issues:

External calls require hacks, such as the hack I added for Clients in https://github.com/ppy/osu-server-spectator/pull/109:
https://github.com/ppy/osu-server-spectator/blob/be334d32a5fa44e7a8321a459f8ed2ce249fc4fc/osu.Server.Spectator/Hubs/MultiplayerHub.cs#L996-L1011
Direct-appearing calls on the MultiplayerHub are actually external calls, causing https://github.com/ppy/osu-server-spectator/issues/114.
E.g.: MultiplayerHub.EditPlaylistItem() (new hub) -> MultiplayerQueue.EditItem() (references old hub) -> MultiplayerHub.OnPlaylistItemChanged() (old hub).

The MultiplayerHubContext class has been added to fix this:

Instantiated by the MultiplayerHub and persisted to the ServerMultiplayerRoom.
Communicates with clients via the IHubContext<MultiplayerHub> API.
Contains the basic set of methods that are common to both MultiplayerHub and external usages (team types, queue, countdowns, etc).
I'm not yet sure how far to take the implementation here, so currently half implementations exist in MultiplayerHub while the other half are in MultiplayerHubContext. There would be reasonable argument to make this an all-encompassing class with the MultiplayerHub just acting as a proxy for clients.

Unfortunately, using IHubContext requires using the raw SendAsync(string, params object[] parameters) API to send messages to clients, similar to the osu!-side implementation.
I've also bunched in method renaming as discussed in Discord (e.g. OnPlaylistItemChanged -> NotifyPlaylistItemChanged) and xmldoc rewriting in this.
On top of fixing the above issue thread, it also removes the Dispose() hack for countdown timers. It could also probably remove the StatefulUserHub disposal hack too, but I haven't tested it yet: https://github.com/ppy/osu-server-spectator/blob/be334d32a5fa44e7a8321a459f8ed2ce249fc4fc/osu.Server.Spectator/Hubs/StatefulUserHub.cs#L151-L158

Tests aren't passing for me..

Oops, for some reason those tests aren't under the Multiplayer namespace that I was running... Fixed.


[SPARK-28942] Spark in local mode hostname display localhost in the Host Column of Task Summary Page

What changes were proposed in this pull request?
In spark-shell local mode, in the task page, host name is coming as localhost
This PR changes it to show machine IP, as shown in the "spark.driver.host" in the environment page

Why are the changes needed?
To show the proper IP in the task page host column

Does this PR introduce any user-facing change?
It updates the SPARK UI->Task page->Host Column

How was this patch tested?
verfied in spark UI

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Hello,
I am new to this community. How can I start contributing ?
On Sun, Sep 1, 2019 at 9:44 PM UCB AMPLab<EMAIL_ADDRESS>wrote:

Can one of the admins verify this patch?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/spark/pull/25645?email_source=notifications&email_token=AENUFG4FZ7SN7N72F44LHK3QHPS4XA5CNFSM4ISXHQCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5UFO5I#issuecomment-526931829,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AENUFG322NMN25SZSQKDB33QHPS4XANCNFSM4ISXHQCA
.

@HyukjinKwon @srowen

Test build #4856 has started for PR 25645 at commit 6320f8a.

Test build #4856 has finished for PR 25645 at commit 6320f8a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged to master

@srowen


Db upgrade

Upgraded the database to Postgres so that I can install Q3C, which allows spatial indexing on a sphere so that you can do quick cone searches to find nearby sources/candidates within your database
Installed [django-q3c) which is a private repo that Data Central gave me access to
Made some documentation on how to install the database and web app and install updates
Can now quickly filter candidates by position on the candidate page, and the candidate rating page will list nearby candidates

That's a cookie error, clear them and try again


A unique word submission earns 10 points, a non-unique word earns 5 points and no submission earns 0 points

Commit: baa68d2


chore: update .gitignore

E.g., *.logs aren't ignored yet. See e.g. https://github.com/github/gitignore/blob/master/Node.gitignore

Do we need to ignore everything specified in https://github.com/github/gitignore/blob/master/Node.gitignore? Otherwise, where can I find out which lines are truly necessary?


Eviction error for downgrade of Scala 3.x

https://twitter.com/eed3si9n/status/1450320726750375937
steps
ThisBuild / scalaVersion := "3.0.0"

pick some library that uses 3.1.0.
problem
sbt would likely pick 3.0.0, which might result in some error.
expectation
Eviction warning or error?

Looking at the transitive scala3-library version is a reasonable and easier approximation.
I also wonder if it's time to let transitive dependencies update the scala version.  We don't seem to mind when transitive dependencies update our declare dependencies, and we have ways to force that not to happen, so why not this one too?  Why is it better for me to be running 3.0.1 compiler with a dependency that used 3.0.2?


Integrate Google CSE for agnostic search

I just checked that a Google site search can point to a Mastodon instance and get result counts for a search term including date ranges. This can be the core of the term explorer. And it should work for Twitter and Reddit as well. https://developers.google.com/custom-search/v1/reference/rest/v1/cse/list

Unfortunately, using the CSE has a cost of $5/1000 queries after using the first 100, reset every day. And it's limited for 10,000 searches. Not sure if doing this is worth it.


Use signals for GUI debug to prevent endless yields caused by TestRunner crashes or debugger force stop

Fixes #316.
Changes
Whenever the test_client disconnects while running the tests, the test_server will now emit "results_received" but with whatever cases it currently has. This allows the GUI to always display the results eventually, without fail, and will not be stuck because it is done using signals. For debugger force stop (F8), the test_client doesn't actually disconnect from the test_server because it is terminated abruptly. So in this situation, it is the network peer timeout's job to disconnect the client. I changed the timeout from 61 seconds to 3 seconds.
Timeout Behavior
As described in NetworkedMultiplayerENet docs, the timeout is determined as:

a fixed timeout for which any packet must be acknowledged or the peer will be dropped.

Therefore, even if the peer is inactive for a long time, it will still be connected; it's only when it stops responding to polls that it will be kicked after 3 seconds. I tried writing a test script to yield for 10 seconds, performed the 10 second wait test by fd5ae8d9fd9d57b2006e142ec39fa95b8ba1325b, and it still did not end the test prematurely. Hence, I think changing the network peer timeout to 3 seconds is alright, at least for GUI debug's use case.

Going merge this on a tentative basis. If no problems arise, we'll just leave as is. Thanks.


#6208 overflow fix

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[ ] Bugfix
[ ] Feature
[x] Refactoring

Needs QA check

@kodadot/qa-guild please review

Context

[x] Closes #6208
[ ] Requires deployment <snek/rubick/worker>

Did your issue had any of the "$" label on it?

[x] My DOT address: Payout

Screenshot 📸

[x] My fix has changed UI

Copilot Summary

@prachi00 deploy has failed

uh now sure why that happened, how do we redeploy? @roiLeo

uh now sure why that happened, how do we redeploy? @roiLeo

Push a commit with anything change, that could trigger it redeploy.

uh now sure why that happened, how do we redeploy? @roiLeo

Push a commit with anything change, that could trigger it redeploy.

isnt there any way through netlify? @Jarsen136

uh now sure why that happened, how do we redeploy? @roiLeo

Push a commit with anything change, that could trigger it redeploy.

isnt there any way through netlify? @Jarsen136

Yes, but I have no permission to operate it. Pushing an empty commit would be the easier way.

good


Configure headDirPath appropriately from --config_dir and --config_file

I found a configuration bug while working on #274. The headDirPath for both the Regery and the ` is not set from the
The --config argument to init.py was never used so I added the "-dir" suffix to clarify the intent of the argument.
The Keeper did not recognize the headDirPath passed in through the Configer instance in ****kwargs['cf']**. This was causing the Keeper to create files in either the default HeadDirPath or the AltHeadDirPath when everything else was being created in the configured headDirPath

PR #413 solves this issue.

This is not an issue. I misunderstood the purpose of the configuration directory and the configuration file properties.
Closing this issue.


Support loading lesson artifacts hosted within company network

Would it be possible to host lessons (XMLs) within company network (perhaps in source control/wiki etc), and then somehow register them with the Trainer plugin?
This could be super useful for in-house platform/framework developers who can provide these lessons to other teams that build applications on these platforms and leverage IDEA to do so.

@kodeninja sorry for a long reply. What language do you need to use (Java, Python, Kotlin) for this kind of lessons?


Errors occured when rusing the 'pipreqs' command

(lastFYP_venv) PS C:\Users\Jun\Desktop\Last_FYP> pipreqs
Traceback (most recent call last):
  File "C:\Users\Jun\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Jun\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Jun\Desktop\Last_FYP\lastFYP_venv\Scripts\pipreqs.exe\__main__.py", line 7, in <module>
  File "c:\users\jun\desktop\last_fyp\lastfyp_venv\lib\site-packages\pipreqs\pipreqs.py", line 488, in main
    init(args)
  File "c:\users\jun\desktop\last_fyp\lastfyp_venv\lib\site-packages\pipreqs\pipreqs.py", line 415, in init
    candidates = get_all_imports(input_path,
  File "c:\users\jun\desktop\last_fyp\lastfyp_venv\lib\site-packages\pipreqs\pipreqs.py", line 115, in get_all_imports
    contents = f.read()
  File "C:\Users\Jun\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 454: character maps to <undefined>

Hi, I have that error now on multiple machines, too. I did not traceback yet, when it occurred the first time. I updated all packages, but it still occurs. All machines run under windows. But under Linux this is working.

@mingjun1120 Please try add the flag  --encoding=utf-8

U mean type pipreqs --encoding=utf-8 in the terminal?

@mingjun1120 Please try add the flag --encoding=utf-8
U mean type pipreqs --encoding=utf-8 in the terminal?

@mingjun1120 Please try add the flag --encoding=utf-8

Does not work!

Works for me, thanks.


IncludedResources Kind conflict

I was checking out https://github.com/openshift/oadp-operator/issues/632 and it seems knative have an object called routes.
Specifically routes.serving.knative.dev or
kind: Route
apiVersion: serving.knative.dev/v1

Similar to https://github.com/konveyor/mig-operator/issues/808 I would really like to see
https://github.com/openshift/openshift-velero-plugin/blob/017118efcd078e151c0955a62a731feb60a2a0f2/velero-plugins/route/restore.go#L20
and other IncludedResources spell out full api names to avoid conflicts with other workloads.

/remove-lifecycle stale


On-disk permissions

I'm hosting a VM with RetroNAS on my Unraid server which works smoothly having files with nobody:users ownership. The problem is RetroNAS loves having user:user ownership.
Is there any way we could have a setting custom user:group permissions for files created and modified by RetroNAS and the Permissions fix tool?
Thank you!

Yeh, I don't particularly see an issue with this providing this options, we could certainly entertain the fact. We use discussions for these new ideas while they are fleshed out though so I will convert this to a discussion


[BUG] topic list not responsive

The predefined topics list is not responsive to the changing screen dimensions.
The overflowing topics should move to next line below it.
I would like to work on this and contribute as my hacktoberfest submission.

@Vijaykv5

Ig it's not good to do that... As it will be already enclosed in other issues


White line on the bottom in window on Windows 11

Describe the bug
Always white line on the bottom in window, when I set fillMaxSize and have any background expect white.
I haven't this bug on Linux.
Affected platforms
Select one of the platforms below:

Desktop

Versions

Kotlin version*:  1.8.0
Compose Multiplatform version*: 1.3.0
OS version(s)* (required for Desktop and iOS issues): Windows 11 Pro for Workstations 22H2 (22621.1105)
OS architecture (x86 or arm64): x86-64
JDK (for desktop issues): 19.0.2

To Reproduce
Steps and/or the code snippet to reproduce the behavior:

Have the same OS and Compose version
Paste this code:

fun main() {
    application {
        Window(onCloseRequest = ::exitApplication, title = "Test") {
            Box(modifier = Modifier.background(Color.Red).fillMaxSize())
        }
    }
}

Run it
Check bottom of window:

Thanks! Let's keep this issue


Added a face_detection algorithm.

#115 I am adding the face detection algorithm.

ATTENTION 🚨🚨🚨
Don’t Forget To Follow Me On Github , and Add Your Name In _contributing.md if not found your name in _contributing.md it should be Labelled as SPAM.
STAR 🌟 this REPO for future HacktoberFest.


Plugin /homebridge/node_modules/homebridge-lib package.json does not contain the keyword 'homebridge-plugin'.

after updating i get this error message.
What can i do? Homebridge is online but does not work anymore in the homeapp

homebridge-lib is part of some other plugin you have installed, not this one.
The message you've posted is just a warning, it shouldn't prevent homebridge from starting.

all right thx @oznu


update translations in mlp.md

Job d2l-zh/PR-734/1 is complete.
Check the results at http://preview.d2l.ai/d2l-zh/PR-734/

Thanks @thebesttv , if you haven't added your name to the contributors, please do it as same as #PR721.

Job d2l-zh/PR-734/2 is complete.
Check the results at http://preview.d2l.ai/d2l-zh/PR-734/


routing: last hop restriction

This PR adds an optional last hop restriction to payments.

Very nice and clean PR! This will allow us to craft rebalance payments without external tools, right?

In combination with #3736 it does.
Also we can use this to loop into a specific channel.


install independencies error(npm install)

Describe the bug
~/project
❯
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@nativescript%2Fsqlite - Not found
npm ERR! 404
npm ERR! 404  '<EMAIL_ADDRESS>is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2024-12-16T21_04_31_187Z-debug-0.log
~/project 6s
❯
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-fx2jgyz2?utm_campaign=stackblitz-on-page&utm_source=web-app&utm_medium=nav-button
Steps to reproduce
Terminal
~/projects/sb1-gwrjfsm3
❯ npm install && setup-nativescript-stackblitz && ns preview
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@nativescript%2Fsqlite - Not found
npm ERR! 404
npm ERR! 404  '<EMAIL_ADDRESS>is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2024-12-16T21_01_27_199Z-debug-0.log
~/projects/sb1-gwrjfsm3 7s
❯
Expected behavior
~/project
❯ npm install
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@nativescript%2Fsqlite - Not found
npm ERR! 404
npm ERR! 404  '<EMAIL_ADDRESS>is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2024-12-16T21_04_31_187Z-debug-0.log
~/project 6s
❯
Screen Recording / Screenshot
~/project
❯ npm install
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@nativescript%2Fsqlite - Not found
npm ERR! 404
npm ERR! 404  '<EMAIL_ADDRESS>is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2024-12-16T21_04_31_187Z-debug-0.log
~/project 6s
❯
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 61625731,
  "usedJSHeapSize": 60037355,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = ABDELY
Chat ID = 035cff46bbff

Additional context
No response


Custom merge strategies (Java)

Problem:
For certain properties of a model, custom merge logic is desired. This could be to execute a deeper merge, to skip a merge, or just to implement other arbitrary custom behavior.
Proposal:
Expose an interface that allows for customization of merging.
Example:
User.Builder.setMergeStrategy(new User.Builder.MergeStrategy() {

    /**
    Custom merging of the avatarURLs field. Merges the Maps.
    **/
    @Override
    public void mergeAvatarURLs(@NonNull User.Builder builder, @Nullable Map<String, String> avatarURLs) {
        if (builder.getAvatarURLs() == null) {
            builder.setAvatarURLs(avatarURLs);
        } else if (avatarURLs != null) {
            builder.setAvatarURLs(build.getAvatarURLs().putAll(avatarURLs));
        }
    }
});

Notes:

User.Builder.MergeStrategy is an abstract class that applies default merging (based on the isSet). Developers only need to implement the methods for the fields which they want to apply custom merge behavior.
User.Builder.setMergeStrategy is a static method that overrides the current merge strategy. If called multiple times, only the last strategy set will be used. The custom strategy applies to all User.Builder instances once set.
In this example, mergeAvatarURLs() would only be called if the avatarURLs field is "set" in the new model. So if the avatarURLs method parameter is null, it means it was explicitly set to null in the new model.

Alternatives:

Force developers to pass in the MergeStrategy when calling user.mergeFrom(User newUser, MergeStrategy mergeStrategy). This would allow us to avoid the static User.Builder.setMergeStrategy method, and allow for dynamic merge strategies. I'm not sure this really has much benefit in practice though, as I would think the predominant use case will be to set the merge strategy once at app initialization.

This seems like a reasonable proposal. I have a slight preference away from the static merge strategy only to avoid having a large initialization block early in app start.

After further consideration, I've decided to do this purely in our own codebase code. There isn't that much overhead to letting Plank execute the default merge first, and then adjusting the result of the merge afterwards. I'll re-open the issue if plans change.


Correction to New-ClientAccessRule parameters

In the parameters for the command the -UsernameMatchesAnyOfPatterns states that "This parameter accepts text and the wildcard character () (for example, jeff, but not jeff)"
In the summary table at the bottom it states "Accept wildcard characters: False"
One of these statements must be incorrect.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 08ff3b1b-938c-1858-043f-bc6f8fc9a156
Version Independent ID: 754c6644-e09e-5474-f6a3-4da35fb068c1
Content: New-ClientAccessRule (exchange)
Content Source: exchange/exchange-ps/exchange/client-access/New-ClientAccessRule.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

Thanks @DGuest44 for your feedback. After consulting with @chrisda I am updating this cmdlet now.
Accept wildcard characters will be True for the parameter named -UsernameMatchesAnyOfPatterns.


dropdown menu does not show anything.

When clicking dropdown menu, nothing happens. If I type name of loras that are present in the box, then also nothing appears. As it is the extension does not have any use.

Did you add any .txt or .md files to the asset directory as described in the readme?

No I did not. I thought I would be able to add notes from within the webui. Am I supposed to add text file related to each file there is in the directory?Like for model abc.safetensor or lora xyz.safetensors, I will have to have an abc.txt, xyz.txt for Each and Every file there are?


Parallel Enrichment

Support parallel enrichment using dask-geopandas.

It's possible to parallelize the connectors if they have no dependency on columns usage.

The parallel enrichment is done using dask-geopandas. See PR #31. I'll close for now this issue and open another with parallel connectors enrichment.


Provide disk quota when desiring lrp from opi

#167725778

A short explanation of the proposed change:
Sends over the desired disk limit to eirini, so it can be properly set in the pod spec.

Links to any other associated PRs

[X] I have reviewed the contributing guide

[X] I have viewed, signed, and submitted the Contributor License Agreement

[X] I have made this pull request to the master branch

[X] I have run all the unit tests using bundle exec rake

[X] I have run CF Acceptance Tests
NOTE: We only ran the ones which work with Eirni. But since the change is only in the opi apps client, it should give us enough confidence.

Closing in favour of #1474


Expose replicator scheduler feature in the API

That was the intent all along, just forgot to enable before the merge.
Testing recommendations
Start a 3 node dev cluster.  Query any of the node's top level API:
http http://adm:pass@localhost:15984

{
    "couchdb": "Welcome",
    "features": [
        "scheduler"
    ],
    "vendor": {
        "name": "The Apache Software Foundation"
    },
    "version": "2.1.0-a9ad3429e"
}

[x] Code is written and works correctly;
[x] Changes are covered by tests: there is a features tests in chttpd
[ ] Documentation reflects the changes: will make a separate PR for docs repo

+1


req and res code error

'res' is declared but its value is never read.ts(6133)
(parameter) res: Response<any, Record<string, any>, number>

/needsMoreInfo

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


RTMP audio issues

Hi,
I have issues playing RTMP audio, in the first place the player is unable to display the audio duration, which is landing in to other side effects like the progress is not shown, it does not allow the user to seek through the audio. I found that the flash plugin is not returning the duration property, I think this is causing all the problems as other features like showing the audio progress and all require duration, which is cause of failure, can some one roll out a quick fix for this
Regards
Srinivas Masam

Can you post a URL so I can see the issue please?

I am not on a public domain, you cannot access my server, is there any place that I try out the snippet.

Try CodePen

Or post your code here

That saves my time, I was searching for some RTMP audio stream available on web.
here is the code, it very simple, basic code

 New Document

HTML5 MediaElement

<link rel="stylesheet" href="/mediaelement3/build/mediaelementplayer.css" />
<script>

	jQuery(document).ready(function() {

		var player = new MediaElementPlayer($('audio'), {

			pluginPath:'/mediaelement3/build/',
			enablePluginDebug: true,
			alwaysShowControls: true,

		});

});

 <audio is="x-audio" width="640" height="360" controls="controls" preload="none" type="audio/rtmp" poster="http://in07442:8080/mediaelement/media/echo-hereweare.jpg">
		<source src="rtmp://in07442:21080/vod/media/mp3:/Kalimba"   type="audio/rtmp" />

</audio>

Thanks. I'll check this and keep you posted

Thank you, basically I even tested with a feature to see if duration is returned by the player, it does not

@ale-grosselle Can you help me with this? Seems like the meta data is not being passed but I can't figure out why

@an1kr4 since you recently worked at something related with the shims can you assist me as well?

Hi Miranda,
Mediaelement flash implementation don't handle hls metadata event.
It provide play, pause, seek but not metadata event.
So we have to implement handle logic
Il 15/feb/2017 17:55, "Rafael Miranda"<EMAIL_ADDRESS>ha
scritto:

@ale-grosselle https://github.com/ale-grosselle Can you help me with
this? Seems like the meta data is not being passed but I can't figure out
why
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/johndyer/mediaelement/issues/2078#issuecomment-280068764,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF4xoF5KB0rNnthwEQXW64OI-1lURDhXks5rcy4OgaJpZM4MBSOg
.

@ale-grosselle Thanks for your reply. This issue is for RTMP, not HLS.

@smasam Do you have a valid RTMP; I'm trying to access it but it's denying me access

@smasam I pushed a fix that solved some issues in Flash video; please download it from GitHub and let me know. @ale-grosselle just FYI

Any updates on this?

Thanks for looking in to the issue.
I tested, but still has same issue

Can you send me a RTMP so I can test this please?

Closing this issue since no response has been posted in the last 14 days. You can always request this to be reopened. Thanks


jackett: 0.18.925 -> 0.19.138, use buildDotnetModule

Motivation for this change
Now compiled from source :)
As far as I can tell, there don't seem to be any regressions.
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 wip"
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[X] Fits CONTRIBUTING.md.

/marvin opt-in
/status needs_reviewer


Jest: Add --runInBand to npm run verify script

This option can help with slow tests in resource constrained environments (CI) by running tests sequentially.

Closing this as the difference in time on the Jenkin's job was marginal, a few seconds at best for each test suite.


bug(CDK - cdkDragPreview): SVG masks are not shown in the drag preview

Expected Behavior
I expect to see the applied SVG mask in the drag preview.
Actual Behavior
The element drag preview without the applied SVG mask.
The problem
It seems that the dragged element with SVG mask definition is set to display:none;, also there seems to be a clone without the mask id the in DOM.
For that reason the SVG mask is not found and not applied in the drag preview.
Environment

Angular: v10.1.4
CDK/Material: v10.2.3
Browser(s): all
Operating System (e.g. Windows, macOS, Ubuntu): all

Hi @BuZZ-dEE, could you supply us with a stackblitz and some steps to reproduce so we can better understand your issue.
@crisbeto Maybe you can better understand this than me. For now I'm marking as needs clarification

It is a legitimate issue. When we clone the element to create the preview we strip all IDs so that we don't generate duplicates which can break SVG since we hide the original element.


Crates with inner attributes in root module no longer build

The Problem
The build system merged in #223 fails to build crates which have inner attributes in the root module.
Incomplete Example
// Inner attributes
#![no_std]
#![cfg_attr(
not(any(
    feature = "example_feature"
    )),
	allow(dead_code, unused_extern_crates, unused_imports)
)]

// macro_use attribute is only allowed at the crate root.
#[macro_use]
extern crate lazy_static;

mod child_mod;

fn main() {
	child_mod::do_something();
}

References

https://github.com/rust-lang/rfcs/issues/752
https://github.com/rust-lang/rust/issues/47995
https://github.com/rust-lang/rust/issues/18810

There is a proposed solution at the bottom of the issue. The following sections are included for discussion and documentation purposes.
Things that don't work.
Nested module with path attribute
For most uses of include!, this can be worked around by declaring an inner module and use the path attribute such at:
#[path="../real/main.rs"]
mod inner;

However, this solution is not feasible for our use case because:

main is private and cannot be called
Produces an error because macro_use is no longer at the crate root.
Furthermore, although no_std will compile, it will produce a warning since it is not at the crate level.

Embed main.rs into lib.rs
Simply moving the contents of the root module such as main.rs into lib.rs does not work. Since lib.rs is in a separate directory, it is unable to find any additional modules.
Hacky Solution

Read the main.rs and embed it in the generated lib.rs
Extract troublesome statements like inner attributes and macro_use and move them to top level.
Add pub to main.
Add path attribute so that child modules will be resolved.

Example:
// Inner attributes
#![no_std]
#![cfg_attr(
not(any(
feature = "example_feature"
)),
	allow(dead_code, unused_extern_crates, unused_imports)
)]

// macro_use attribute is only allowed at the crate root.
#[macro_use]
extern crate lazy_static;

#[path="../real/"]
mod example {
    mod child_mod;

    // pub added to main
    pub fn main() {
        child_mod::do_something();
    }
}

use example::*;

Proposed Solution - Create temporary file in user's source directory.
This solution is one I avoided experimenting with because it requires producing files outside of the target folder. However, it is the simplest. Because of is simplicity, it should be less fragile. I believe this solution should be implemented unless another one is proposed.

Read root module such as main.rs
Write it along with the current contents of cargo-apk's lib.rs to a temporary file in the same folder as main.rs.
Compile it.

Does anyone have thoughts about a better way to handle this case?
@mb64

My understanding of how it used to work is that it would tell rustc to build an executable, then intercept the linker call and link a dynamic library instead (and link in all the extra stuff, such as android_native_app_glue).
With #223, it makes a new file lib.rs (roughly replacing glue_obj.rs) that looks like
include!("/path/to/src/main.rs"); // Side note: I'm pleasantly surprised this resolves modules correctly

#[no_mangle]
pub extern "C" fn android_main(...) { /* stuff with main() */ }

and it tells rustc to compile this as a static library.
It would be possible to go back to intercepting linker calls.  There might be a nicer way to do it than a wrapper executable; I'm not familiar with the Cargo library.
Aside from copying the whole source directory (which might be bad if things include!("../../file_outside_of_source_dir")), I think a temporary file in the source directory might be the best solution.  As long as it gets deleted afterward, and it doesn't conflict with other files in the source directory, it won't have a real impact on users.


Deploying on Heroku

Having issues building app, has there been any issues lately?
-----> Installing node-v8.10.0-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
       Running: rake assets:precompile
       rake aborted!
       Spaceship::UnexpectedResponse:
       <TITLE>Gateway Timeout - In read </TITLE>

Gateway Timeout

       The proxy server did not receive a timely response from the upstream server.

       Reference #1.b8070f17.1536567888.29ca56a7

       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/fastlane-2.86.2/spaceship/lib/spaceship/client.rb:595:in `parse_response'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/fastlane-2.86.2/spaceship/lib/spaceship/tunes/tunes_client.rb:254:in `applications'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/fastlane-2.86.2/spaceship/lib/spaceship/tunes/application.rb:66:in `all'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/fastlane-2.86.2/spaceship/lib/spaceship/tunes/application.rb:72:in `find'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/app/services/boarding_service.rb:129:in `ensure_values'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/app/services/boarding_service.rb:37:in `initialize'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/config/initializers/services.rb:1:in `new'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/config/initializers/services.rb:1:in `<top (required)>'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `load'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `block in load'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `load'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/engine.rb:652:in `block in load_config_initializer'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/engine.rb:651:in `load_config_initializer'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/engine.rb:615:in `each'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/engine.rb:615:in `block in <class:Engine>'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/initializable.rb:30:in `instance_exec'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/initializable.rb:30:in `run'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/initializable.rb:55:in `block in run_initializers'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/initializable.rb:44:in `each'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/initializable.rb:44:in `tsort_each_child'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/initializable.rb:54:in `run_initializers'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/application.rb:352:in `initialize!'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/config/environment.rb:8:in `<top (required)>'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/application.rb:328:in `require'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/application.rb:328:in `require_environment!'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/railties-4.2.10/lib/rails/application.rb:457:in `block in run_tasks_blocks'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
       /tmp/build_cbcda73c97e8205b3bc1bc8022cd80dc/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
       Tasks: TOP => environment
       (See full trace by running task with --trace)
 !
 !     Precompiling assets failed.
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed

same here, the deployment fails as well

Seeing crashes here now too.

Same here

Have you tried it lately? I just deployed successfully to heroku.

We just pushed a new release, could you try it again?

Still not working.
/tmp/build_d242f269fca9531689ce265f9b404c30/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
       /tmp/build_d242f269fca9531689ce265f9b404c30/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
       Tasks: TOP => environment
       (See full trace by running task with --trace)
 !
 !     Precompiling assets failed.
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed


Set Subsystem for the evicted_workloads_total metric

What type of PR is this?
/kind bug

What this PR does / why we need it:
To make the name of the metric prefixed with kueue_, which allows to easily grep all kueue metrics.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

None since the metric wasn't released yet.
NONE

/assign @tenzen-y @alculquicondor


miscellaneous additions and changes

hi,
in this pull request:

added a few new methods
added GtkComboBoxText
some changes in GtkFileChooser
improved gtk version control that prints a warning if a deprecated function is used

good! thanks.

Ah, it should add C code to ignore compile error

1: error: 'gtk_combo_box_text_new' undeclared (first use in this function)
1: note: each undeclared identifier is reported only once for each function it a ppears in
1: error: 'gtk_combo_box_text_remove' undeclared (first use in this function)
1: error: 'gtk_combo_box_text_prepend_text' undeclared (first use in this function)
1: error: 'gtk_combo_box_text_insert_text' undeclared (first use in this function)
1: error: 'gtk_combo_box_new_with_model_and_entry' undeclared (first use in this function)
1: error: 'gtk_combo_box_text_append_text' undeclared (first use in this function)
1: error: 'gtk_combo_box_text_get_active_text' undeclared (first use in this function)
1: error: 'gtk_combo_box_text_new_with_entry' undeclared (first use in this function)
1: error: 'gtk_combo_box_new_with_entry' undeclared (first use in this function)

unresolved names

see _gtk_dialog_get_widget_for_response
Can you fix this problem?

done.

Thanks for fixing! There is actually a similar problem compiling with gtk3 where deprecated functions have been completely removed. I'm working on it.

trying to keep the same code compilable both in gtk2 and gtk3 is more work than keeping two separated versions. What do you think if I create a ...go-gtk/gdk3 and a .../go-gtk/gtk3?


Error location property is missing for iceberg

Hi,
Using the versions below
dbt-athena-community==1.4.3
dbt-core==1.4.6
Python 3.9.16
I am trying to create an iceberg table as shown in one of the examples of the documentation
{{ config(
    materialized='table',
    table_type='iceberg',
    format='parquet',
    partitioned_by=['bucket(user_id, 5)'],
    table_properties={
    	'optimize_rewrite_delete_file_threshold': '2'
    	}
) }}

SELECT
	'A' AS user_id,
	'pi' AS name,
	'active' AS status,
	17.89 AS cost,
	1 AS quantity,
	100000000 AS quantity_big,
	current_date AS my_date

I get the following error
HIVE_DATABASE_LOCATION_ERROR: Schema 'xyz' location cannot be determined.
Either set the 'location' property when creating the schema, or set the 'hive.metastore.glue.default-warehouse-dir' catalog property.

my profiles.yml configuration is
personal_schema:
  target: personal
  outputs:
    personal:
      type: athena
      s3_staging_dir: "{{ env_var('DBT_S3_DIR') | as_text }}"
      s3_data_dir: "{{ env_var('DBT_S3_DIR') | as_text }}"
      s3_data_naming: schema_table_unique
      region_name: "{{ env_var('AWS_REGION') | as_text }}"
      schema: "{{ env_var('USER') | as_text }}"
      database: awsdatacatalog
      work_group: "{{ env_var('ATHENA_WORKGROUP') | as_text }}"
      num_retries: 1
      threads: 1

When I check the compiled SQL in the logs I see that the location property is missing.
 create table "awsdatacatalog"."xyz"."test"
  with (
    table_type='iceberg',
    is_external=false,
    partitioning=ARRAY['bucket(user_id, 5)'],
    format='parquet',
    optimize_rewrite_delete_file_threshold=2
  )
  as

SELECT
	'A' AS user_id,
	'pi' AS name,
	'active' AS status,
	17.89 AS cost,
	1 AS quantity,
	100000000 AS quantity_big,
	current_date AS my_date

Additional info: Athena query results location is enforced in my case.

This issue should be fixed in the main branch by this PR https://github.com/dbt-athena/dbt-athena/pull/231

@tosolveit could you confirm that using the latest version from main fix this issue? if so we can close it.

@nicor88 thank you.

It worked, thank you so much, sorry for my late reply.


Allow name and content of readyCheck script to be templated

Add support for dynamic value population in check ready script and it's name.
compose:
  - name: Create
    deploy:
      - helm:
          chart: apache-7.3.15.tgz
          name: r{{ system_properties.resource_id_label }}
          namespace: default
          values: "apache-helm-chart-values.yaml"
    checkReady:
      script: "{{ nameCheck }}.py"

Content of the {{ nameCheck }}.py to also be rendered as a template.

Closed by #45


RuntimeWarning encountered for unary_union operations.

I have a set of polygons:
'POLYGON ((-0.961 0.109, -0.16 -0.98, -0.782 -0.319, -0.961 0.109))',
 'POLYGON ((-0.782 -0.319, -0.622 0.661, -0.961 0.109, -0.782 -0.319))',
 'POLYGON ((-0.179 0.428, -0.961 0.109, -0.622 0.661, -0.179 0.428))',
 'POLYGON ((0.179 -0.428, -0.16 -0.98, 0.622 -0.661, 0.179 -0.428))',
 'POLYGON ((0.179 -0.428, -0.782 -0.319, -0.16 -0.98, 0.179 -0.428))',
 'POLYGON ((0.179 -0.428, -0.622 0.661, -0.782 -0.319, 0.179 -0.428))',
 'POLYGON ((0.782 0.319, 0.622 -0.661, -0.179 0.428, 0.782 0.319))',
 'POLYGON ((0.16 0.98, -0.179 0.428, -0.622 0.661, 0.16 0.98))',
 'POLYGON ((0.16 0.98, 0.782 0.319, -0.179 0.428, 0.16 0.98))',
 'POLYGON ((-0.339 -0.552, -0.179 0.428, 0.622 -0.661, -0.339 -0.552))',
 'POLYGON ((-0.339 -0.552, -0.16 -0.98, -0.961 0.109, -0.339 -0.552))'

when performing union_all() on them, 2 RuntimeWarning are generated:
polygons = pygeos.from_wkt(
      ['POLYGON ((-0.961 0.109, -0.16 -0.98, -0.782 -0.319, -0.961 0.109))',
       'POLYGON ((-0.782 -0.319, -0.622 0.661, -0.961 0.109, -0.782 -0.319))',
       'POLYGON ((-0.179 0.428, -0.961 0.109, -0.622 0.661, -0.179 0.428))',
       'POLYGON ((0.179 -0.428, -0.16 -0.98, 0.622 -0.661, 0.179 -0.428))',
       'POLYGON ((0.179 -0.428, -0.782 -0.319, -0.16 -0.98, 0.179 -0.428))',
       'POLYGON ((0.179 -0.428, -0.622 0.661, -0.782 -0.319, 0.179 -0.428))',
       'POLYGON ((0.782 0.319, 0.622 -0.661, -0.179 0.428, 0.782 0.319))',
       'POLYGON ((0.16 0.98, -0.179 0.428, -0.622 0.661, 0.16 0.98))',
       'POLYGON ((0.16 0.98, 0.782 0.319, -0.179 0.428, 0.16 0.98))',
       'POLYGON ((-0.339 -0.552, -0.179 0.428, 0.622 -0.661, -0.339 -0.552))',
       'POLYGON ((-0.339 -0.552, -0.16 -0.98, -0.961 0.109, -0.339 -0.552))'
      ])
pygeos.union_all(polygons )

C:\ibrus-env\lib\site-packages\pygeos\set_operations.py:388: RuntimeWarning: divide by zero encountered in unary_union
  result = lib.unary_union(collections, **kwargs)
C:\ibrus-env\lib\site-packages\pygeos\set_operations.py:388: RuntimeWarning: invalid value encountered in unary_union
  result = lib.unary_union(collections, **kwargs)

I don't know what exactly triggered this warning and if it affects the calculation result of union operations.

It might also depend on the GEOS version (i.e. I can reproduce it in an environment with GEOS 3.9.1, but not in an environment with GEOS 3.8.1 or GEOS master; although some other things also vary across those environments ...)

I produced this with pygeos 0.10. Not sure which version of GEOS is it running on. How can I check it?

You can check pygeos.geos_version

GEOS version 3.9.1 as well

For the record, shapely seems to be OK with this, shown here:
from shapely import wkt, ops

polygons_str = (['POLYGON ((-0.961 0.109, -0.16 -0.98, -0.782 -0.319, -0.961 0.109))',
    'POLYGON ((-0.782 -0.319, -0.622 0.661, -0.961 0.109, -0.782 -0.319))',
    'POLYGON ((-0.179 0.428, -0.961 0.109, -0.622 0.661, -0.179 0.428))',
    'POLYGON ((0.179 -0.428, -0.16 -0.98, 0.622 -0.661, 0.179 -0.428))',
    'POLYGON ((0.179 -0.428, -0.782 -0.319, -0.16 -0.98, 0.179 -0.428))',
    'POLYGON ((0.179 -0.428, -0.622 0.661, -0.782 -0.319, 0.179 -0.428))',
    'POLYGON ((0.782 0.319, 0.622 -0.661, -0.179 0.428, 0.782 0.319))',
    'POLYGON ((0.16 0.98, -0.179 0.428, -0.622 0.661, 0.16 0.98))',
    'POLYGON ((0.16 0.98, 0.782 0.319, -0.179 0.428, 0.16 0.98))',
    'POLYGON ((-0.339 -0.552, -0.179 0.428, 0.622 -0.661, -0.339 -0.552))',
    'POLYGON ((-0.339 -0.552, -0.16 -0.98, -0.961 0.109, -0.339 -0.552))'
])
polygons = [wkt.loads(t) for t in polygons_str]
print(ops.unary_union(polygons).wkt)

with GEOS 3.9.1:
POLYGON ((-0.961 0.109, -0.622 0.661, 0.16 0.98, 0.782 0.319, 0.622 -0.661, -0.16 -0.98, -0.782 -0.319, -0.961 0.109), (-0.2283390880090073 0.1257980859448302, -0.179 0.428, -0.3879308609659142 0.3427711705266923, -0.2283390880090073 0.1257980859448302))

with GEOS 3.8.0:
POLYGON ((0.622 -0.661, -0.16 -0.98, -0.782 -0.319, -0.961 0.109, -0.622 0.661, 0.16 0.98, 0.782 0.319, 0.622 -0.661), (-0.2283390880090073 0.1257980859448302, -0.179 0.428, -0.3879308609659142 0.3427711705266923, -0.2283390880090073 0.1257980859448302))

which is the equal to 3.9.1 when normalized.

I can

For the record, shapely seems to be OK with this, shown here:
from shapely import wkt, ops

polygons_str = (['POLYGON ((-0.961 0.109, -0.16 -0.98, -0.782 -0.319, -0.961 0.109))',
    'POLYGON ((-0.782 -0.319, -0.622 0.661, -0.961 0.109, -0.782 -0.319))',
    'POLYGON ((-0.179 0.428, -0.961 0.109, -0.622 0.661, -0.179 0.428))',
    'POLYGON ((0.179 -0.428, -0.16 -0.98, 0.622 -0.661, 0.179 -0.428))',
    'POLYGON ((0.179 -0.428, -0.782 -0.319, -0.16 -0.98, 0.179 -0.428))',
    'POLYGON ((0.179 -0.428, -0.622 0.661, -0.782 -0.319, 0.179 -0.428))',
    'POLYGON ((0.782 0.319, 0.622 -0.661, -0.179 0.428, 0.782 0.319))',
    'POLYGON ((0.16 0.98, -0.179 0.428, -0.622 0.661, 0.16 0.98))',
    'POLYGON ((0.16 0.98, 0.782 0.319, -0.179 0.428, 0.16 0.98))',
    'POLYGON ((-0.339 -0.552, -0.179 0.428, 0.622 -0.661, -0.339 -0.552))',
    'POLYGON ((-0.339 -0.552, -0.16 -0.98, -0.961 0.109, -0.339 -0.552))'
])
polygons = [wkt.loads(t) for t in polygons_str]
print(ops.unary_union(polygons).wkt)

with GEOS 3.9.1:
POLYGON ((-0.961 0.109, -0.622 0.661, 0.16 0.98, 0.782 0.319, 0.622 -0.661, -0.16 -0.98, -0.782 -0.319, -0.961 0.109), (-0.2283390880090073 0.1257980859448302, -0.179 0.428, -0.3879308609659142 0.3427711705266923, -0.2283390880090073 0.1257980859448302))

with GEOS 3.8.0:
POLYGON ((0.622 -0.661, -0.16 -0.98, -0.782 -0.319, -0.961 0.109, -0.622 0.661, 0.16 0.98, 0.782 0.319, 0.622 -0.661), (-0.2283390880090073 0.1257980859448302, -0.179 0.428, -0.3879308609659142 0.3427711705266923, -0.2283390880090073 0.1257980859448302))

which is the equal to 3.9.1 when normalized.

I can confirm this. I didn't have this warning when I was purely using Shapely. Now my team is completely switching to pygeos, for performance reason. However, it's too cumbersome to manage Shapely and pygeos in the same environment for the user of our package. So it would be great to be able to rely on pygeos completely.

I just want to note that pygeos returns the correct result, the same as shapely. It just emits those warnings along the way.

Looking at our test suite it seems that many of these warnings were solved in GEOS 3.10.
Still, there are some left. Most of them are emitted when there are NaN coordinates in an input geometry, which is acceptable I think. Ideally the warnings should be filtered out in those specific test cases. So I leave this issue open to address that.


Resolve lint error

Another solution to resolve the lint error
https://github.com/JoaoCnh/react-native-android-voice/pull/12
InvalidPackage: Package not included in Android
../../../../../../.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.6.0/98476622f10715998eacf9240d6b479f12c66143/okio-1.6.0.jar: Invalid package reference in library; not included in Android: java.nio.file. Referenced from okio.Okio.
Priority: 6 / 10
Category: Correctness
Severity: Error
Explanation: Package not included in Android.
This check scans through libraries looking for calls to APIs that are not included in Android.

When you create Android projects, the classpath is set up such that you can only access classes in the API packages that are included in Android. However, if you add other projects to your libs/ folder, there is no guarantee that those .jar files were built with an Android specific classpath, and in particular, they could be accessing unsupported APIs such as java.applet.

This check scans through library jars and looks for references to API packages that are not included in Android and flags these. This is only an error if your code calls one of the library classes which wind up referencing the unsupported package.

More info:

To suppress this error, use the issue id "InvalidPackage" as explained in the Suppressing Warnings and Errors section.
```

@JoaoCnh Please merge this ASAP.

@JoaoCnh hello?


Invalid string escape \v allowed in strings

Using the pypi version "\v" should be invalid since you can only escape \"bfnrts
    kdl_txt = """
      /-n "arg\v";
    """
    try:
      doc = ckdl.parse(kdl_txt)
      print(doc)

Thanks for the report.
The string you're testing does not contain the sequence \v. Python recognizes this escape sequence and turns it into a vertical tab ("\x0b" in Python, "\u{b}" in KDL):
>>> kdl_txt = """
...     /-n "arg\v";
... """
>>> kdl_txt
'\n    /-n "arg\x0b";\n'
>>>

A string containing a vertical tab character is legal in KDL v1 (and erroneously treated as legal in v2 by ckdl, but that's another matter #12)
If you pass a string with backslash \ followed by v to ckdl (e.g. r'''/-n "arg\v";''' or '/-n "arg\\v";'), this will throw an exception as expected.
See Python's escape sequences: https://docs.python.org/3/reference/lexical_analysis.html#escape-sequences