fix: correct unknown method

hello @glepnir
dope install failed to print success message, because of unknown method being called.
I am now using your config. Thank you. When I started dope program in <repo>/bin/dope did not run as it could not resolve many of its requirable modules such as cli.lua  etc. So I copied dope program to <repo>/lua/ directory & able to run. Generally how dope is supposed to be run?
Also it required lua programming language executables, so i ended up installing those as well in the first place. Can your README be updated with these?
--
Thanks.

thanks for contribute this repo :)


Cannot open dialog straight after closing another one?

I have a function, which on success shows a dialog. However, if there is an error it will show a different dialog. If they press "OK" on the error dialog the function is recursively called and now ends in success. However the other dialog will not show, it's almost as if the old dialog isnt being dismissed in time.

thanks for the reporting this, let me check it.

Any news on this? :)

/**

It adds the dialog view into rootView which is decorView of activity
*/
public void show() {
if (isShowing()) {
return;
}
onAttached(rootView);
}

/**

It basically check if the rootView contains the dialog plus view.

@return true if it contains
*/
public boolean isShowing() {
View view = decorView.findViewById(R.id.outmost_container);
return view != null;
}

Looks like it's finding the same outmost_container when trying to open a new dialog and returning

The problem lays in the animation duration actually, we need to differentiate for each instance. By the way, sorry I couldn't have enough time to check this issue

I'm assuming the isShowing will only return false once the dismiss animation as ended for the previous dialog?

No problem! I've gotta try and figure out a solution asap though!

A work around would be to use dismiss listener and show the second dialog

I was thinking the same thing, however the action needs to be taken based on the option chosen in the first dialog i.e. "If YES" on dismiss try again, otherwise do nothing" I can probably do this with some awkward boolean switches though

I have the same problem. As #1 is pointing out, It seems like the first dialog doesn't dismiss in time so the second one doesn't show up.

Any update on this bug?
Following your suggestion for opening the new dialogPlus in the "OnDismiss" listener, that will open the new dialog if the user taps outside the first dialog as well. Any way to prevent this from happening?
This is an awesome library by the way !!

The issue can be solved by work around via using dismissListener for now.

ugly but works

Closing this issue due to long time period, can reopen if needed

AFAIK there's only one dialog can be shown at once, is it possible to put static function to check whether any dialog shown or not?


bugfix for #603 : the text .record.index where not replaced with  .record.splunk_index during the renaming of the field.

Proposed changes
The commit https://github.com/splunk/splunk-connect-for-kubernetes/commit/51b94c2a190ec9f8a3f793f5d4d078f1e776d47b renamed the field 'index' to  'splunk_index'. The change where not done for the non-container log files filter. Logfiles are therefore sendt to the main index.
This PR renames the field to splunk_index so that the logs are sendt to the correct index
Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
Put an x in the boxes that apply.

[x] I have read the CONTRIBUTING doc
[x] I have read the CLA
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

This bit us as well, can confirm the solution works.


Add support for Oh-my-zsh plugin manager

This PR adds support and instructions for installing the zsh-magic-dashboard plugin using Oh My Zsh. The changes are included in the "Package Managers" section of the README for clarity and convenience.
Kindly suggest ways I can improve this PR.

thanks!


Reorder parameters in apache rewrite rule and add + sign in token regex

Thanks for review, I was testing with another version in my GMF virtual env.
Now it should works.

Nice now it should works except when we don't have any dimensions, because we will have two '/' where we place the dimensions...

Good catch

Should be rebase to make the tests pass :-)

Done

In the Travis test we can see two code style error and 3 test failed (open the line 1226) than I hope that's done :-)

Travis is happy now. I think you could merge.

Just a small comment, fix it and I will merge it :-)

Done, missing spaces added.

Thanks :-)


Meters parallelizable?

Need to write tests to make sure that meters and meter evaluations are 100% embarrassingly parallel.

No tests written, but closing anyway.


Winget is gone with Microsoft.DesktopInstaller on freshly factory reset computers.

Brief description of your issue
We are using Winget to install applications with Powershell on our computers, when I have freshly factory resetted a computer with win 11 24h2 26100.2314 Winget and the desktopinstaller is gone its not in local app data or the windowsapp folder, it never downloads automatically. If I install Winget manually with the msix file I can get it to work.
It looks like if machines that already have Winget is not affected but I'm not 100% sure.
Is this a bug introduced in the November cumulative patch?
Steps to reproduce

Factoryreset computer
Setup computer with Out of Box Experience
launch cmd and type Winget the command is not there.

Expected behavior

Factoryreset computer
Setup computer with Out of Box Experience
launch cmd and type Winget the command should print a output.

Actual behavior

launch cmd and type Winget the command is not there.

Environment
Windows 11 24H2 (26100.2314) Winget version is not available.

For my validation VMs, I usually have to update the Microsoft Store, then let it update all applications. After this the package manager client responds to commands.

I think this is related to:

#5005

Try installing the latest Windows Update and checking the store for updates. The "App Installer" is a system component that should get updated. If it doesn't, after the Windows Update is applied and the system is rebooted, try running the following commands in PowerShell:

Install-Module Microsoft.WinGet.Client
Repair-WinGetPackageManager -Latest -Force


Changed type of value to String

Closes #236

Changed the type for value in InnerTransactions served and expected .

** NOTE ** This depends on the core services issue that changes the type too.

Pull Request Test Coverage Report for Build 697

6 of 6 (100.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 78.93%

Totals

Change from base Build 667:
0.0%

Covered Lines:
3967

Relevant Lines:
5026

💛  - Coveralls

Pull Request Test Coverage Report for Build 697

6 of 6 (100.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 78.93%

Totals

Change from base Build 667:
0.0%

Covered Lines:
3967

Relevant Lines:
5026

💛  - Coveralls


Makefile: allow overriding default "go" program

I use Go 1.8 for most work stuff, so I shouldn't install 1.9 as my default Go version. This patch enables me to run make commands with go1.9rc2 simply and doesn't require any aliasing hacks.

LGTM!

Thanks dude!


[Optimization][admin, core] local 模式开发时是否考虑实时推送结果

Search before asking

[X] I had searched in the issues and found no similar optimization requirement.

Description
是否考虑实时推送结果,而不是从 结果 -> 获取最新数据 中查询
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

请问您是要计划贡献该优化吗

@aiwenmo 如果需要这个功能的话，我可以实现后端逻辑

我目前的优化想法是前端自动轮询请求数据

@aiwenmo 可以通过 websocket 将实时的 TableResult 推送给前端

1.0 has already suppory


Support Docker credential helpers

Replaces https://github.com/woodpecker-ci/woodpecker/pull/857. Removes the ecr package and adds some docs about it instead.

Codecov Report

Merging #1075 (d5eda6c) into master (550aefe) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1075      +/-   ##
==========================================
- Coverage   50.58%   50.50%   -0.08%
==========================================
  Files          82       82
  Lines        6271     6271
==========================================
- Hits         3172     3167       -5
- Misses       2916     2921       +5
  Partials      183      183

Impacted Files
Coverage Δ

server/logging/log.go
48.83% <0.00%> (-5.82%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Creating Pull Request for Bitbucket Cloud

Currently, CLI only generates the output file. but does not create a pull request. Also, there is documentation on how to use the output file.
What is the plan of adding support for actually creating PR?

Hi @MukulSoul could you please point me the documentation on how to use the output file to create PR?

We're open to it, just haven't had time to work on extending the cli output to actually create PR's.
The great thing is this is open source, you're welcome to contribute a PR. May want to start with an issue describing the interface you'd like to build.

@jeffwidman Do you have thoughts on how you'd want the CLI to raise pulls?  I've always wanted to play with golang, and perhaps this is my opportunity (but this is by no means any indication that i will raise a PR or have anything concrete to show you), but some direction of where to take it might be useful.


Add an 'X-FBMS-UpToDate' response header to GET requests for Submission objects

Example...
  X-FBMS-UpToDate: true

This feature will make some integration tasks a lot easier.

Merged.


Update Raven instrument config

The config ended up changing slightly before landing on master. See https://github.com/getsentry/raven-js/commit/57859119d5e3d1b4255aa6a0603e844761ff47b7 -- I'll add a commit to this PR when @benvinegar publishes a new release of raven-js to bump the raven-js dependency version in react-native-sentry.

I will bump the version when I merge the android branch 👍
Thank you

@HazAT - looks like @benvinegar hasn't had a chance to publish the new version of raven-js yet, be sure to sync with him when you go to bump the react-native-sentry version :)


Update Buy SOV page

BUY SOV v1.6.zip
https://xd.adobe.com/view/ab490ef7-e35a-498a-5e57-372aa1f67604-dd78/
msg for password

please also note the live data has been put on one line to help fit the widget onto smaller screens


consumerRestriction: add method support

fixes: https://github.com/mosn/htnn/issues/253

Merged. Thanks!


Action.transitionClicked function causing errors when gathering code for transitions

The Action.transitionClicked function sometimes fails to accurately gather the code for transitions. This issue affects the display of transition menus.
Steps to Reproduce
Navigate to UmpleOnline and load  state machine diagram with example Home Heating System.
Click on a transition to trigger the Action.transitionClicked function for transition ((actualTemp - setTemp) > 2)] / {...}.

Expected Result
it should highlight the the transition [!((actualTemp - setTemp) > 2)] -> idleHeat;
Actual Result
it highlight the code as the screenshot showing
to fix modify the Action.transitionClicked = function(identifier) under the file umple_action.js

it also occur for the Security Light example when click on the light /lampOff(); transition
it should highlight the "light/{lampOff();} ->day;" but it highlight "lighting for: "+((timer.getStopTime()-timer.getStartTime())/1000)+" seconds"); "


Rate limited scans and Throttle do not work with GSIs

When GSIs are used, the consumed capacity value returned by DynamoDB is a dict instead of a float. This breaks both rate_limited_scan and the experimental Throttle interface, since they don't handle this properly:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ec2-user/ansible-env/lib/python2.7/site-packages/pynamodb/models.py", line 707, in rate_limited_scan
    for item in scan_result:
  File "/home/ec2-user/ansible-env/lib/python2.7/site-packages/pynamodb/connection/base.py", line 1052, in rate_limited_scan
    total_consumed_read_capacity += latest_scan_consumed_capacity
TypeError: unsupported operand type(s) for +=: 'float' and 'dict'

NM, this appears to be fixed by #235, will test.


bluez: 5.71 -> bluez: 5.72

Description of changes
Bump to bluez: 5.72
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

commit message should be bluez: 5.71 -> 5.72
also update PR title and please include either change log or link to diff between two versions


rigbits: Gimmick SetupTool bugs and enhancements

some bugs related to: NewFeature: Gimmick SetupTool has been added in rigbits #272

[ ] mirror blend joints in default biped is not working
[ ] If click mirror with a regular joint selected will break the joint structure connection
[ ] change the .json extension to something like .gst  this will help add a drag and drop behavior in the future, by making a distinction of the file type
[ ] Please add some documentation on how to use the tool. In general is very straightforward, but I didn't get the use of side tagging in the creation section. I think that is inherited from the parent joint, but maybe missing something 😅

Thanks!

Thank you for testing the tool!
I will address all of the identified issues and create documentation.
Currently, the tool relies on joint naming rules derived from a guide node. This approach has limitations, as it requires the presence of a guide node in the scene for the process to proceed.
To improve this, I suggest incorporating the naming rule pattern within the top rig node as an extra attribute. At the same time, we can add a controller naming pattern as well. What do you think?
Thanks!

@joji2468ng  since the last release we started embedding the guide description in the rigs. You will find all the information there 😉
https://github.com/mgear-dev/mgear4/issues/248

Wow, I found all the information there. it seemed to miss the new feature!
I realized that this can cause issues in any case, okay I will fix the part as well.
I will let you know once I finish all of them!

Hi @miquelcampos I submitted a pull request with all bugs fixed, and new features. https://github.com/mgear-dev/mgear4/pull/284
Thanks,

Hi @miquelcampos , Thank you for merging the pull request!
It seems like the tool menu has been commented out since it was omitted.
Could you take a look at it when you have time?
Thanks,

@joji2468ng  Yes, I know. However I have found some issues while testing it.
The issue is when you add a support joint to a blend joint, and mirror. The support joint will not change the side in the name.
I will record a video ASAP

I just found out the bug on my end, will fix it ASAP.


[Bug]:

Bug Description
Hi,
I'm having trouble importing the GPTVectorStoreIndex, SimpleDirectoryReader, ServiceContext classes from the llama_index package. I've installed the package using pip, but I'm getting an ImportError when trying to import the classes, it was working fine till yesterday. Is there any known issue or workaround for this problem? I've followed the documentation, but I can't seem to resolve the ImportError.
Used :
pip install llama-index
from llama_index import GPTVectorStoreIndex, SimpleDirectoryReader, ServiceContext
Error:
ModuleNotFoundError                       Traceback (most recent call last)
 in <cell line: 7>()
5 logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
6
----> 7 from llama_index import GPTVectorStoreIndex, SimpleDirectoryReader, ServiceContext
8 from llama_index.llms import HuggingFaceLLM
9
1 frames
/usr/local/lib/python3.10/dist-packages/llama_index/indices/common/struct_store/base.py in
21 from llama_index.schema import BaseNode, MetadataMode
22 from llama_index.text_splitter import TextSplitter
---> 23 from llama_index.utilities.sql_wrapper import SQLDatabase
24 from llama_index.utils import truncate_text
25
ModuleNotFoundError: No module named 'llama_index.utilities'
Version
(0.8.39)
Steps to Reproduce
pip install llama-index
from llama_index import GPTVectorStoreIndex, SimpleDirectoryReader, ServiceContext
Relevant Logs/Tracbacks
ModuleNotFoundError                       Traceback (most recent call last)

<ipython-input-8-3ce7d01dd77c> in <cell line: 7>()
      5 logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
      6
----> 7 from llama_index import GPTVectorStoreIndex, SimpleDirectoryReader, ServiceContext
      8 from llama_index.llms import HuggingFaceLLM
      9

1 frames

/usr/local/lib/python3.10/dist-packages/llama_index/indices/common/struct_store/base.py in <module>
     21 from llama_index.schema import BaseNode, MetadataMode
     22 from llama_index.text_splitter import TextSplitter
---> 23 from llama_index.utilities.sql_wrapper import SQLDatabase
     24 from llama_index.utils import truncate_text
     25

ModuleNotFoundError: No module named 'llama_index.utilities'

we're patching it soon, sorry about that. was a broken release

facing same issue ? when it will be solved ?

try pip install llama-index==0.8.39.post2

It is fixed now. Thanks.

Thanks for the quick resolution @jerryjliu working now.

why am getting this error ?
index = VectorStoreIndex.from_documents(documents, chunk_size=512)
RetryError: RetryError[<Future at 0x7cc47a020df0 state=finished raised RateLimitError>]

@whyusharthwhy try a clean reinstall or a fresh venv. Also make sure you have no file or folder named llama_index in your current working directory
@aadhil96 either you have a ton of documents, or you don't have a paid openai account (the free tokens are severely rate limited)


Utility injection in CanBeValidated@rules

Description
This pr aims to allow utility injection in CanBeValidated@rules, since I need it for a couple of edge cases (I need to make the same db query for a bunch of custom rules, so that by using utility injection on every single rule, that would be repeated). It is working well in my tests, if it pass your further scrutiny let me know if I should somehow mention this feature in the docs as well (here).
Thanks.
Code style

[x ] composer cs command has been run.

Testing

[ x] Changes have been tested.

Documentation

[ ] Documentation is up-to-date.

This would not work for many utilities, as it's too early in the lifecycle. We do avoid evaluating in setter methods.
You can pass multiple closures to an array already, for evaluation later: [fn ($get) => ...]


Update rules schema to support USDM v3.0 and v4.0

Update the rules schema to:

Accept "USDM" instead of "DDF" for Standards.Name
When Standards.Name is "USDM", accept:

"3.0" or "4.0" instead of "2" for Standards.Version
"USDM Conformance Checks" instead of "DDF Conformance Checks" for Standards.References.Origin

The pattern for Standards.References.Rule Identifier.Id should remain unchanged as DDFnnnnn.

@nickdedonder

"USDM Conformance Checks" instead of "DDF Conformance Checks" for Standards.References.Origin

Currently, it is DDF Conformance Rules. Should it also be changed from ...Rules to ...Checks?

@nickdedonder @ASL-rmarshall

"USDM Conformance Checks" instead of "DDF Conformance Checks" for Standards.References.Origin

Currently, it is DDF Conformance Rules. Should it also be changed from ...Rules to ...Checks?

My mistake - it should be USDM Conformance Rules.  (I've now edited the description above to show this).


Avalanche - Stake Dao : wrong network error and no possibility to switch to avalanche

Open the Stake Dao app https://app.safe.global/apps/open?safe=avax%3A0xbD99AB5EbD2a68e4Ad4b21dF73f5f393fe223411&appUrl=https%3A%2F%2Fapp.stakedao.org%2F
Current result: there is no possibility to connect to the app on Avalanche

@JulienKode FYI. I've disabled the app on Avalanche.

Thanks for letting me know @katspaugh
adding @bneiluj for visibility


Implement Factory Design pattern`

Aircraft object is used for referring to all the modes of Air-transport. Then the model of the Aircraft is checked using a long if else method (Flight.java, ScheduleFlight.java), resolve the issue using the factory Design pattern, create an interface Aircraft.
Also please take care that furthure functionality addition to different aircraft services may be differently implemnted. For example: servingFood, this funtion will be a part of all the aircrafts, but will be implemnted differntly

https://github.com/Arya-Ayra/Reservation-System-Starter/pull/4
Solved


list found relations in RelFinder

We can push a  to a Panel right after https://github.com/bluejoe2008/InteractiveGraph/blob/ef89d80383b017336d204978673b01cbba0c77b0/src/main/javascript/control/RelFinderCtrl.js#L56 using jQuery.
While the best maintainable solution is held edge info in a global state store likes @rematch/core, and bind Relation Panel to that store.

If you don't mind, I would try a PR for this.

ok, thx, your pr is welcome.

Sorry but I have to ask how to run a development server.
You may have deleted the package.json which contains the build script. And there is no webpack.dev.config or .rollup.js for bundling.
And the source seems to be incomplete because there is no ./src/main/style/xxx.css. So I can't add new styles. I can't directly add CSS to interactive-graph.min since it's the compiled file.

very sorry for that.
actually this is a release project which was built from an external project written in typescript. i will soon provide that one with package.json files in 1-2 days.

Oh, no wonder why Readme mentioned TS but this project is in ES5. Looking forward to that.

this work is done since version 0.3.1


#2449 Support the invalidation of evaluation results

Part of #2449
This PR adds a new endpoint in the mongodb-datastore that allows to retrieve events of a certain type:
GET /event/type/{eventType}?filter=<filter_string>&fromTime=<from_timestamp>&excludeInvalidated=<true|false>&limit=<nr_of_events>

The endpoint accepts the following parameters:
filter
Allows to specify a list of attributes that can be used to apply filters to any properties within the documents in the collection. Multiple filters can be combined by separating them using the string %20AND%20.
Example1: filter=project:sockshop%20AND%20data.stage:hardening%20AND%20shkeptncontext:1234 will get all events where data.project="sockshop" and data.stage="hardening" and shkeptncontext=1234
Example2: filter=data.result:pass,warning will get all events where `data.result="pass" OR data.result="warning"
fromTime
Returns all events that occured after the provided timestamp
excludeInvalidated
excludes all events where a matching .invalidated is present. Note: An event e matches with an invalidated event ie when e.id == ie.triggeredid (See the discussion in #2449 as reference)
limit
Allows to limit the number of returned events
This PR also adapts the lighthouse-service to use this new endpoint to only fetch previous evaluation.finished events that have not been invalidated.
Example Payload
{
    "events": [
        {
            "contenttype": "application/json",
            "data": {
                "deploymentstrategy": "",
                "evaluationdetails": {
                    "comparedEvents": [
                        "1ef944e8-a0db-4b9f-869a-1e790b59abf9",
                        "5bff7137-c293-4d10-b421-9d743f4ac6cf",
                        "93cbe7bc-7f96-4902-b434-97a4934b4f29"
                    ],
                    "indicatorResults": [
                        {
                            "score": 1,
                            "status": "pass",
                            "targets": [
                                {
                                    "criteria": "<600",
                                    "targetValue": 600,
                                    "violated": false
                                },
                                {
                                    "criteria": "<+10%",
                                    "targetValue":<PHONE_NUMBER>771516,
                                    "violated": false
                                }
                            ],
                            "value": {
                                "metric": "response_time_p95",
                                "success": true,
                                "value":<PHONE_NUMBER>7010935
                            }
                        },
                        {
                            "score": 1,
                            "status": "pass",
                            "targets": [
                                {
                                    "criteria": "<5",
                                    "targetValue": 5,
                                    "violated": false
                                }
                            ],
                            "value": {
                                "metric": "error_rate",
                                "success": true,
                                "value": 0
                            }
                        },
                        {
                            "score": 0,
                            "status": "info",
                            "targets": null,
                            "value": {
                                "metric": "throughput",
                                "success": true,
                                "value": 793
                            }
                        },
                        {
                            "score": 0,
                            "status": "info",
                            "targets": null,
                            "value": {
                                "metric": "response_time_p50",
                                "success": true,
                                "value": 20.117599629455125
                            }
                        }
                    ],
                    "result": "pass",
                    "score": 100,
                    "sloFileContent": "LS0tCnNwZWNfdmVyc2lvbjogIjEuMCIKY29tcGFyaXNvbjoKICBhZ2dyZWdhdGVfZnVuY3Rpb246ICJhdmciCiAgY29tcGFyZV93aXRoOiAic2V2ZXJhbF9yZXN1bHRzIgogIGluY2x1ZGVfcmVzdWx0X3dpdGhfc2NvcmU6ICJwYXNzX29yX3dhcm4iCiAgbnVtYmVyX29mX2NvbXBhcmlzb25fcmVzdWx0czogMwpmaWx0ZXI6Cm9iamVjdGl2ZXM6CiAgLSBzbGk6ICJyZXNwb25zZV90aW1lX3A5NSIKICAgIGtleV9zbGk6IGZhbHNlCiAgICBwYXNzOiAgICAgICAgICAgICAKICAgICAgLSBjcml0ZXJpYToKICAgICAgICAgIC0gIjw2MDAiCiAgICAgICAgICAtICI8KzEwJSIgICAKICAgIHdhcm5pbmc6ICAgICAgICAKICAgICAgLSBjcml0ZXJpYToKICAgICAgICAgIC0gIjw9ODAwIgogICAgd2VpZ2h0OiAxCiAgLSBzbGk6ICJlcnJvcl9yYXRlIgogICAga2V5X3NsaTogZmFsc2UKICAgIHBhc3M6CiAgICAgIC0gY3JpdGVyaWE6CiAgICAgICAgICAtICI8NSIKICAtIHNsaTogdGhyb3VnaHB1dAogIC0gc2xpOiAicmVzcG9uc2VfdGltZV9wNTAiCnRvdGFsX3Njb3JlOgogIHBhc3M6ICI5MCUiCiAgd2FybmluZzogIjc1JSI=",
                    "timeEnd": "2020-10-14T10:46:09.000Z",
                    "timeStart": "2020-10-14T10:41:09.000Z"
                },
                "labels": {
                    "DtCreds": "dynatrace"
                },
                "project": "dynatrace",
                "result": "pass",
                "service": "mongodb-datastore",
                "stage": "quality-gate",
                "teststrategy": "manual"
            },
            "id": "c08973b5-30e8-4847-a9ad-9c979d9331de",
            "source": "lighthouse-service",
            "specversion": "0.2",
            "time": "2020-10-14T10:46:11.668Z",
            "type": "sh.keptn.events.evaluation-done",
            "triggeredid": "triggered-id",
            "shkeptncontext": "8ceee3c7-83f5-447b-9043-6bd7d5280ae3"
        }
}

Codecov Report

Merging #2542 into master will increase coverage by 0.09%.
The diff coverage is 39.63%.

@@            Coverage Diff             @@
##           master    #2542      +/-   ##
==========================================
+ Coverage   33.20%   33.29%   +0.09%
==========================================
  Files         160      160
  Lines        8879     9028     +149
  Branches      185      185
==========================================
+ Hits         2948     3006      +58
- Misses       5433     5524      +91
  Partials      498      498

Flag
Coverage Δ

#moduleA
23.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

mongodb-datastore/handlers/events.go
23.70% <35.75%> (+9.41%)
:arrow_up:

...ouse-service/event_handler/evaluate_sli_handler.go
59.94% <57.89%> (-0.50%)
:arrow_down:

Continue to review full report at Codecov.

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


one warmup function many region functions

I want to keep one warmup function that pings all of my functions on any region

Closing for the same reason as #40.


Change "Ships to" default to Worldwide

As a follow-up to #351, a more appropriate default for the default "Ships to" field would be Worldwide, instead of the US. (More global, more neutral.)

It would probably be best to default to the vendor's country instead of worldwide.

@morebrownies: :+1:

Combining this with #351


Kmshultz/doc sync consul

This is a new README doc for Consul.

@kmshultz good to go?

@masci The Overview for this and similar PRs may need to be re-worked to be corpsite-friendly, but sure, let's merge it for now to get the Install, Config, and other updates merged. Thanks!


Consider using babel-node instead of babel to avoid the *.babel.js need in node context

File consumed via webpack build don't need this, but since we removed babel-plugin-webpack-loaders, I also removed babel-node.
We should try using it back and check perfs. If same result (or almost, since require hook is already on, to handle those *.babel.js via https://github.com/tkellen/node-interpret) we can add it back.

Hum. I confused. The require hook no the same as babel-node. Maybe remove the pattern /\.babel\.js/  in the require hook ? It should work.

We just got an issue about that with @montogeek. importing a file from webpack config that is written in es6 but don't have .babel.js breaks everything.  So module.exports or .babel.js... until we fix this.

Again:

Hum. I confused. The require hook is the same as babel-node. Maybe remove the pattern /.babel.js/ in the require hook ? It should work.

I can handle this if this is the way you want to do it. We don't need babel-node

We do need babel-node to allow webpack.config being written in es6+.

Try without an we will see...

OK. I'll work on it.


Uncaught Exception: Attempting to call a function in a renderer window that has been closed or released. Function provid

An uncaught exception was reported.
Info:
OS: win32
Arch: ia32
GPMDP Version: 3.0.1
Time: Mon Mar 28 2016 17:09:25 GMT-0500 (Central Daylight Time)
Error:
Attempting to call a function in a renderer window that has been closed or released. Function provid
Error: Attempting to call a function in a renderer window that has been closed or released. Function provided here: Object.<anonymous> (C:\Users\Perry\AppData\Local\GPMDP_3\app-3.0.1\resources\app\build\inject\GPMInject\interface\mouseButtonNavigation.js:8:8.
    at BrowserWindow.callIntoRenderer (C:\Users\Perry\AppData\Local\GPMDP_3\app-3.0.1\resources\atom.asar\browser\lib\rpc-server.js:201:19)
    at emitTwo (events.js:92:20)
    at BrowserWindow.emit (events.js:172:7)

This issue was created automatically inside the uncaughtException handler

Closing this automatically reported issue as a duplicate of #470


Vault delete shouldn’t expect a response

Vault DELETE returns empty content.
Trying to retrieve a response was causing an EOF error.

Thanks!


Identity list does not differentiate between .id names and subdomain names.

I have two registered ids:
riot.id
riot.id.blockstack
In the id selection list, they are not differentiated in any way.  Both are presented simply as "riot".
As a user I should be able to identify the specific identity that I wish to use, without guessing.

I'd suggest we stop hiding the subdomain in general now that we're on Stacks 2.0 and going to be encouraging the implementation of many possible subdomain registrars going forward.

I'd suggest we stop hiding the subdomain in general now that we're on Stacks 2.0 and going to be encouraging the implementation of many possible subdomain registrars going forward.


Node 18.18  indy-vdr not found https://github.com/hyperledger/indy-vdr/releases/download/v0.4.0-dev.16/library

Created the following project  from tutorials in documentation.
Using node 18.18 via Git Bash Windows 10.
After running npm install the following error occurs:
npm ERR! path C:\Users\DNaicker\Github\AriesJS\aries-js-project-1\node_modules\@hyperledger\indy-vdr-nodejs
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --target_arch=$(node scripts/arch.js) --target_platform=$(node scripts/platform.js)
npm ERR! response status 404 Not Found on https://github.com/hyperledger/indy-vdr/releases/download/v0.4.0-dev.16/library-$(node-$(node.tar.gz
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using<EMAIL_ADDRESS>npm ERR! node-pre-gyp info using<EMAIL_ADDRESS>| win32 | x64
npm ERR! node-pre-gyp info check checked for<EMAIL_ADDRESS>(not found)
npm ERR! node-pre-gyp http GET https://github.com/hyperledger/indy-vdr/releases/download/v0.4.0-dev.16/library-$(node-$(node.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/hyperledger/indy-vdr/releases/download/v0.4.0-dev.16/library-$(node-$(node.tar.gz
npm ERR! node-pre-gyp ERR! install error
npm ERR! node-pre-gyp ERR! stack Error: response status 404 Not Found on https://github.com/hyperledger/indy-vdr/releases/download/v0.4.0-dev.16/library-$(node-$(node.tar.gz
npm ERR! node-pre-gyp ERR! stack     at C:\Users\DNaicker\Github\AriesJS\aries-js-project-1\node_modules\@mapbox\node-pre-gyp\lib\install.js:67:15
npm ERR! node-pre-gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.18362
npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\DNaicker\\Github\\AriesJS\\aries-js-project-1\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--target_arch=$(node" "scripts/arch.js)" "--target_platform=$(node" "scripts/platform.js)"
npm ERR! node-pre-gyp ERR! cwd C:\Users\DNaicker\Github\AriesJS\aries-js-project-1\node_modules\@hyperledger\indy-vdr-nodejs
npm ERR! node-pre-gyp ERR! node -v v18.18.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in: C:\Users\DNaicker\AppData\Local\npm-cache\_logs\2023-09-20T07_10_36_767Z-debug-0.log

package.json
{
  "name": "aries-js-project-1",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "run": "ts-node index.ts"
  },
  "dependencies": {
    "@hyperledger/indy-vdr-nodejs": "^0.1.0",
    "@hyperledger/anoncreds-nodejs": "^0.1.0",
    "@hyperledger/aries-askar-nodejs": "^0.1.0",
    "inquirer": "^8.2.5"
  },
  "devDependencies": {
    "@aries-framework/react-native": "*",
    "@hyperledger/aries-askar-react-native": "*",
    "@aries-framework/anoncreds": "*",
    "@aries-framework/anoncreds-rs": "*",
    "@aries-framework/askar": "*",
    "@aries-framework/core": "*",
    "@aries-framework/indy-sdk": "*",
    "@aries-framework/indy-vdr": "*",
    "@aries-framework/cheqd": "*",
    "@aries-framework/node": "*",
    "@types/figlet": "^1.5.4",
    "@types/indy-sdk": "^1.16.26",
    "@types/inquirer": "^8.2.6",
    "clear": "^0.1.0",
    "figlet": "^1.5.2",
    "ts-node": "^10.4.0"
  },
  "overrides": {
    "@cosmjs/amino": "npm<EMAIL_ADDRESS>    "@cosmjs/encoding": "npm<EMAIL_ADDRESS>    "@cosmjs/math": "npm<EMAIL_ADDRESS>    "@cosmjs/stargate": "npm<EMAIL_ADDRESS>    "@cosmjs/tendermint-rpc": "npm<EMAIL_ADDRESS>    "@cosmjs/utils": "npm<EMAIL_ADDRESS>    "@cosmjs/proto-signing": "npm<EMAIL_ADDRESS>    "@cosmjs/crypto": "npm<EMAIL_ADDRESS>  },
  "author": "Denver",
  "license": "ISC"
}

Did the following steps to resolve some of the errors:

npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
Install Python3, fresh installation of Windows was done, so needed to have this in GitBash
Am able to compile but not run as the following imports show errors:

Cannot find module '@aries-framework/node' or its corresponding type declarations
Cannot find module '@aries-framework/cheqd' or its corresponding type declarations

import { HttpInboundTransport } from '@aries-framework/node'
import {
  CheqdAnonCredsRegistry,
  CheqdDidRegistrar,
  CheqdDidResolver,
  CheqdModule,
  CheqdModuleConfig,
  CheqdDidCreateOptions,
} from '@aries-framework/cheqd'

Will close this as the issue is resolved. Re the modules, you should move them from the devDependencies to dependencies and likely relaunch your project.

Will close this as the issue is resolved. Re the modules, you should move them from the devDependencies to dependencies and likely relaunch your project.

Have moved them to dependencies but the imports  '@aries-framework/node and @aries-framework/cheqd cannot be found


overview page not shown

My page at:
https://gogo2464.github.io/gogo-s-blog/post/
is printed but the readme at https://gogo2464.github.io/gogo-s-blog/ is not found.
It sounds to be abug in github-style.
Is my readme.md wrong please? readme is present at:
https://github.com/gogo2464/gogo-s-blog/tree/main/content
Or is it my bad please?
Best regards.

Hello, I've recently reviewed my settings and noticed that my README page is located at the base URL,
which should correspond to: https://gogo2464.github.io/ on your site.
Perhaps you could give it a try and generate a README file by executing the following commands:
hugo new readme.md
echo '`Hello World!`' > content/readme.md

And the readme page should be at a single directory after printing;
   ├── post
   └── readme
       └── index.html

I hope this solution works for you.

Ah yes. There may be a bug because I set a custom base url


Update Go extended libraries in all modules

What does this PR do?

Update all modules from the Go extended repo.
Motivation

Use up-to-date dependencies.
Often the root module of the repo is kept updated but individual modules are still indicating very old versions of some dependencies.
New versions can include bug and security fixes so we should use them if it doesn't break anything.
Additional Notes

PR generated by running:
inv modules.for-each "go get golang.org/x/arch golang.org/x/crypto golang.org/x/lint golang.org/x/mod golang.org/x/net golang.org/x/sync golang.org/x/sys golang.org/x/term golang.org/x/text golang.org/x/time golang.org/x/xerrors golang.org/x/tools golang.org/x/exp"
inv tidy-all

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

I expect CI to catch any issue.

/merge


Suitable value for etaBuffer?

I have a long-running job (about 24 hours) that updates every five to ten minutes.  I'm trying to use {eta_formatted}, but after my first update, I get "INFs".  I've been gradually increasing the value of etaBuffer to try to eliminate it as the docs suggest, and I'm currently at 100000000, but it's still happening.  I've also tried setting etaAsynchronousUpdate to true with a fps of 1.  Am I not approaching this correctly...?
Thank you.

i've never tried to use it for such long runs...

you can try to set fps:  0.05 (20s) and increase the eta buffer to a value that at least 3...4 updates are includes.
etaAsynchronousUpdate is not always useful - see https://github.com/AndiDittrich/Node.CLI-Progress/blob/master/lib/generic-bar.js#L74

take a look into the eta calculation for details: https://github.com/AndiDittrich/Node.CLI-Progress/blob/master/lib/eta.js

maybe you need a custom eta calculation (just use it as payload)

i've never tried to use it for such long runs...

you can try to set fps:  0.05 (20s) and increase the eta buffer to a value that at least 3...4 updates are includes.
etaAsynchronousUpdate is not always useful - see https://github.com/AndiDittrich/Node.CLI-Progress/blob/master/lib/generic-bar.js#L74

take a look into the eta calculation for details: https://github.com/AndiDittrich/Node.CLI-Progress/blob/master/lib/eta.js

maybe you need a custom eta calculation (just use it as payload)

Thanks for the information.  Is this code causing it?  Is there any reason for this check?
// > 100k s ?
}else if (eta > 100000){
this.eta = 'INF';

Thanks for the information.  Is this code causing it?  Is there any reason for this check?
// > 100k s ?
}else if (eta > 100000){
this.eta = 'INF';

such long running eta's normally indicates some kind of error.

such long running eta's normally indicates some kind of error.

It can be normal behavior, though, as in my case.  If it was an error, it seems like it would sort itself out after some iterations.  In any case, that's a pretty arbitrary cutoff and is only 27 hours.  Could you at least increase that check by an order of magnitude?

It can be normal behavior, though, as in my case.  If it was an error, it seems like it would sort itself out after some iterations.  In any case, that's a pretty arbitrary cutoff and is only 27 hours.  Could you at least increase that check by an order of magnitude?

i can increase it but i wouldn't call your use-case "normal"

i can increase it but i wouldn't call your use-case "normal"

Thank you.  Maybe "normal" isn't the right word, but it's correct behavior that shouldn't just be called an error.  I work in an area where long-running programs aren't unusual.  It's exactly why I wanted the ETA functionality.

Thank you.  Maybe "normal" isn't the right word, but it's correct behavior that shouldn't just be called an error.  I work in an area where long-running programs aren't unusual.  It's exactly why I wanted the ETA functionality.

the problem with the current eta calculation is the limitation of a linear interpolation - especially long running tasks are mostly non-linear which makes the calculated eta value useless. you'll find some discussion about this topic.
therefore i would recommend to use a "custom" eta calculation for serious usage.

the problem with the current eta calculation is the limitation of a linear interpolation - especially long running tasks are mostly non-linear which makes the calculated eta value useless. you'll find some discussion about this topic.
therefore i would recommend to use a "custom" eta calculation for serious usage.

You're making a lot of assumptions.  My task actually is fairly linear and should be fine, it just happens to be long.  I would have written something similar for estimating ETA.  Why break your code for me just because it may give inaccurate results for someone else?  I would suggest that you don't artifically limit it, but warn the users in the docs that if their task is too nonlinear, the results may not be accurate/useful.  That's true for a task of any duration.

You're making a lot of assumptions.  My task actually is fairly linear and should be fine, it just happens to be long.  I would have written something similar for estimating ETA.  Why break your code for me just because it may give inaccurate results for someone else?  I would suggest that you don't artifically limit it, but warn the users in the docs that if their task is too nonlinear, the results may not be accurate/useful.  That's true for a task of any duration.

By the way, Microsoft's progress meters are pretty notorious for this, in my limited experience.  A task might take 15 minutes, but the first five will sit at 0%, then it'll suddenly jump to 40%, take another five minutes, etc.

By the way, Microsoft's progress meters are pretty notorious for this, in my limited experience.  A task might take 15 minutes, but the first five will sit at 0%, then it'll suddenly jump to 40%, take another five minutes, etc.

i fully understand your issue and your intention but on the other hand i've to be aware of a lot of other known use cases and issues.
and as said i'll change the limit to 1e6

i fully understand your issue and your intention but on the other hand i've to be aware of a lot of other known use cases and issues.
and as said i'll change the limit to 1e6

Understood, thank you.  I'm just trying to be helpful with constructive suggestions.

Understood, thank you.  I'm just trying to be helpful with constructive suggestions.

changed in https://github.com/AndiDittrich/Node.CLI-Progress/commit/ea733711821cad6ab78548cffa7647ebdee2c9a7

changed in https://github.com/AndiDittrich/Node.CLI-Progress/commit/ea733711821cad6ab78548cffa7647ebdee2c9a7


Providing an array as a param isn't working as expected.

Hi,
I attempting to use the USDA Food Composition Database's API to access nutritional information. I want to put in the following get request using axios config.params object:

https://api.nal.usda.gov/ndb/nutrients/?format=json&api_key=DEMO_KEY&nutrients=205&nutrients=204&nutrients=208&nutrients=269

This is my code for the axios.get request:
axios.get('https://api.nal.usda.gov/ndb/nutrients/', {
    params: {
      format: 'json',
      api_key: 'DEMO_KEY',
      nutrients: [
        205,
        204,
        208,
        269
      ]
    }
  })
  .then(response => console.log(response))
  .catch(error => console.log(error))

But when I get the response, I see that the built url becomes:

https://api.nal.usda.gov/ndb/nutrients/?format=json&api_key=DEMO_KEY&nutrients[]=205&nutrients[]=204&nutrients[]=208&nutrients[]=269

Is this meant to happen? Do other APIs adhere to this format? If so, is there a way to avoid the insertion of '[]' after each 'nutrients' param, so that I may get around this issue for this specific API?

According to this test  it seems to be the expected behavior.
In order to get around it you could probably use the "paramsSerializer" method.

I'll look into that, thank you.

Hi @stsourlidakis , I am trying to use delete method in the front-end, the params can be an array, so I set:
axios.delete(url,
        {paramsSerializer: accountsInfo }  //--> paramsSerializer
    ).then(
        (res) => {
            .....
         }
)

However, I cannot get the params at the back-end. My back-end environment is node and koa2, if I put params as GET use:
//front-end
axios.delete(`url/${array}`).then(
    (res) => {...}
)

//back-end
handleDelete = async(ctx, next) => {
    let arrayString = ctx.params.array;
}

if I do PUT, PATCH or PATCH, I can get data from body:
//front-end
axios.patch(url, data).then(
     (res) => {...}
)

//back-end
handlePatch = async(ctx, next) => {
    let data = ctx.request.body.data;
    ...
}

So I can get params like above, but not DELETE. I also try qs, however doesn't work neither..
any tips about that?
Thanks

this should helps
var qs = require('qs');

axios.get('api/', {
    'params': {'country': ['PL', 'RU']}
    'paramsSerializer': function(params) {
       return qs.stringify(params, {arrayFormat: 'repeat'})
    },
})

Thank you @kmmbvnr , but I'd rather this was a built-in behavior when handling arrays (checkbox values)

const transformRequestOptions = params => {
   let options = '';
   for (const key in params) {
   if (typeof params[key] !== 'object') {
     options += `${key}=${params[key]}&`;
   } else if (typeof params[key] === 'object' && params[key].length) {
       params[key].forEach(el => {
           options += `${key}=${el}&`;
    });
   }
 }
 return options ? options.slice(0, -1) : options;
};

and
axios.get('api/', {
   'params': {'country': ['PL', 'RU']}
   'paramsSerializer': params => transformRequestOptions(params)
})

get options url/country=PL&country=RU

Refactoring @AndreyPatseiko 's answer to ES6+ style:
const parseParams = (params) => {
  const keys = Object.keys(params);
  let options = '';

  keys.forEach((key) => {
    const isParamTypeObject = typeof params[key] === 'object';
    const isParamTypeArray = isParamTypeObject && (params[key].length >= 0);

    if (!isParamTypeObject) {
      options += `${key}=${params[key]}&`;
    }

    if (isParamTypeObject && isParamTypeArray) {
      params[key].forEach((element) => {
        options += `${key}=${element}&`;
      });
    }
  });

  return options ? options.slice(0, -1) : options;
};

and
axios.get('api/', {
   'params': {'country': ['PL', 'RU']}
   'paramsSerializer': params => parseParams(params)
});

@jorge683 that generates incorrect query nutrients=205,204,208,269


NativeEthernet with long delay instruction or inside IntervalTimer loop function

Good afternoon,
I tried to use the NativeEthernet inside IntervalTimer function, however, after 1-2 minute(s), the NativeEthernet freezes for no appearent reason (it stops receiving packets, however the led on the magjack kit stills work and windows continues sending packets). When i move the NativeEthernet instructions inside the loop function, the NativeEthernet works perfectly (without freeze), except if there is a long delay instruction (as below ; if there is a long delay instruction, NativeEthernet also freezes ).
Below, there is a code that freezes.
Do you know how to solve it ?
Thank you
My Source code:
#include <NativeEthernet.h>
#include <NativeEthernetUdp.h>
EthernetUDP myUDP;
byte ip[] = {192, 168, 1, 177};
byte mac[] = {0x04, 0xE9, 0xE5, 0x00, 0x69, 0xEC};
#define NET_PORT 6450
uint8_t netPacket[1470];
unsigned short packetSize;
//IntervalTimer myTimerLoopNetwork;

void setup() {
  Ethernet.begin(mac,ip);
  myUDP.begin(NET_PORT);
//  Ethernet._fnet_poll.end(); // Note : poll is useless in my case and i wanted to know if it changes something or not (sadly it changes nothing)
//  myTimerLoopNetwork.begin(loopNetwork, 100);
}

void loop() {
  loopNetwork();
  delay(100);
}

//bool isLoopNetwork=false;
void loopNetwork(){
//  if(isLoopNetwork) return;
//  isLoopNetwork=true;
  packetSize = myUDP.parsePacket();
  if (packetSize){
//      isLoopNetwork=false;
      myUDP.read(netPacket, packetSize);
      Serial.print((char)(netPacket[0]));
      Serial.println(" test_for_freeze");
  }
//  isLoopNetwork=false;
}

I didn't realize I wasn't receiving notifications for issues.
My best guess is that because you are only checking and reading one packet every 100ms you aren’t reading all the packets that could be in the buffer so eventually there is an overflow. There is nothing wrong with reading every 100ms, but you have to make sure you don't exceed the buffer in that timeframe and that you read everything that's there when you do since there may be more than one packet available. You should be able to easily accomplish that by encapsulating your if statement with a while loop like this so it will read all packets in the buffer.
//bool isLoopNetwork=false;
void loopNetwork(){
//  if(isLoopNetwork) return;
//  isLoopNetwork=true;
  while((packetSize = myUDP.parsePacket())){
    if (packetSize){
//        isLoopNetwork=false;
        myUDP.read(netPacket, packetSize);
        Serial.print((char)(netPacket[0]));
        Serial.println(" test_for_freeze");
    }
  }
//  isLoopNetwork=false;
}

I'm considering this issue closed for the time being.


Create ideas-list.md

Added ideas page for 2022.

Pinging @7yl4r for awareness.

@yosoyjay it would be nice to get ioos_qc ideas page. Are you interested?

@ocefpaf Is this good to merge, or is there still more to add?

switched master -> main, hope that didn't break this PR.

@ocefpaf Is this good to merge, or is there still more to add?

We can merge and discuss further in other issues/PRs.


Vickel: Watch offshorehrsolutions.com

Vickel requests the watch of the watch_keyword offshorehrsolutions\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

offshorehrsolutions\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


JAX (vs Autograd) convergence and runtime problems?

I built a toy optimization script comparing JAX with Autograd in the minimization of a function using scipy.optimize.BFGS. Two issues:

with a start point x0 further from the minimum BFGS with JAX gradients failed to converge, but it converged with Autograd gradients.

with a start point x1 closer to the minimum BFGS converged with both gradients. However its runtime was 2.2 times slower with JAX gradients, despite using jit.

Why could this be happening?
Using the code below I get the following output:

JAX converged with x0?: False
JAX converged with x1?: True
JAX elapsed time with x1: 1.44 sec
Autograd converged with x0?: True
Autograd converged with x1?: True
Autograd lapsed time with x1: 0.65 sec

import time
import scipy.optimize
import jax.numpy as jnp
import autograd.numpy as anp
import jax
import autograd

def rosenbrock(x):
    answer = sum(100.0*(x[1:]-x[:-1]**2.0)**2.0 + (1-x[:-1])**2.0)
    return answer

jEvalFunc = jax.jit(rosenbrock)
jGradFunc= jax.jit(jax.grad(rosenbrock))
aEvalFunc = rosenbrock
aGradFunc = autograd.grad(rosenbrock)

x0 = [76.0, 97.0, 20.0, 120.0, 0.01, 1e4]
x1 = [76.0, 97.0, 20.0, 120.0, 0.01, 1e2]
jx0 = jnp.array(x0)
jx1 = jnp.array(x1)
ax0 = anp.array(x0)
ax1 = anp.array(x1)

jOptimRes_x0 = scipy.optimize.minimize(fun=jEvalFunc, x0=jx0, method='BFGS', jac=jGradFunc)
startTime = time.time()
jOptimRes_x1 = scipy.optimize.minimize(fun=jEvalFunc, x0=jx1, method='BFGS', jac=jGradFunc)
jElapsedTime = time.time()-startTime

aOptimRes_x0 = scipy.optimize.minimize(fun=aEvalFunc, x0=ax0, method='BFGS', jac=aGradFunc)
startTime = time.time()
aOptimRes_x1 = scipy.optimize.minimize(fun=aEvalFunc, x0=ax1, method='BFGS', jac=aGradFunc)
aElapsedTime = time.time()-startTime

print("JAX converged with x0?: {}".format(jOptimRes_x0.success))
print("JAX converged with x1?: {}".format(jOptimRes_x1.success))
print("JAX elapsed time with x1: {:0.2f} sec".format(jElapsedTime))
print("")
print("Autograd converged with x0?: {}".format(aOptimRes_x0.success))
print("Autograd converged with x1?: {}".format(aOptimRes_x1.success))
print("Autograd lapsed time with x1: {:0.2f} sec".format(aElapsedTime))

I'm not certain about the execution times, but the convergence is likely due to the fact that JAX does computations in float32 by default. If you set jax_enable_x64 to True, both starting points converge (see https://jax.readthedocs.io/en/latest/notebooks/Common_Gotchas_in_JAX.html#Double-(64bit)-precision)
Regarding the timing: I would not expect scipy optimization routines that use JAX to be particularly performant, because every time a gradient is evaluated, the array must be copied from numpy to JAX and back. Numpy to JAX on CPU cannot be guaranteed to be done in a zero-copy manner due to constraints in XLA. I suspect this repeated copying of data is to blame for JAX's slow execution time.
If you want jax-native optimization, you might try jax.experimental.optimizers, although they are still experimental.

jax.scipy.optimize.minimize with method='BFGS' should also work. It will compile the entire computation + optimization together, which should have less overhead than using SciPy optimizers.

Forgot about that - thanks @shoyer!

Thanks @jakevdp  and @shoyer  for your quick replies.

As pointed by @jakevdp  I fixed the convergence problem using

jax.config.update("jax_enable_x64", True)

jax.scipy.optimize.minimize does not run faster than scipy.optimize with JAX gradients.
Am I doing anything wrong using jax.scipy.optimize.minimize (code below)?

scipy.optimize and JAX grads converged with x0?: False
scipy.optimize and JAX grads converged with x1?: True
scipy.optimize and JAX grads elapsed time with x1: 1.382964 sec
jax.scipy.optimize and JAX grads converged with x0?: True
jax.scipy.optimize and JAX grads converged with x1?: True
jax.scipy.optimize and JAX grads elapsed time with x1: 1.383739 sec
scipy.optimize and Autograd grads converged with x0?: False
scipy.optimize and Autograd gards converged with x1?: True
scipy.optimize and Autograd grads elapsed time with x1: 0.632463 sec

import time
import scipy.optimize
import jax
import jax.numpy as jnp
import jax.scipy.optimize
import jax.config
import autograd.numpy as anp
import autograd

jax.config.update("jax_enable_x64", True)

def rosenbrock(x):
    answer = sum(100.0*(x[1:]-x[:-1]**2.0)**2.0 + (1-x[:-1])**2.0)
    return answer

jEvalFunc = jax.jit(rosenbrock)
jGradFunc= jax.jit(jax.grad(rosenbrock))
aEvalFunc = rosenbrock
aGradFunc = autograd.grad(rosenbrock)

x0 = [76.0, 97.0, 20.0, 120.0, 0.01, 1e4]
x1 = [76.0, 97.0, 20.0, 120.0, 0.01, 1e2]
toleranceChange = 1e-9
maxIter = 10000
jx0 = jnp.array(x0)
jx1 = jnp.array(x1)
ax0 = anp.array(x0)
ax1 = anp.array(x1)

jOptimRes_x0 = scipy.optimize.minimize(fun=jEvalFunc, x0=jx0, method='BFGS', jac=jGradFunc)
startTime = time.time()
jOptimRes_x1 = scipy.optimize.minimize(fun=jEvalFunc, x0=jx1, method='BFGS', jac=jGradFunc)
jElapsedTime = time.time()-startTime

j2OptimRes_x0 = jax.scipy.optimize.minimize(fun=jEvalFunc, x0=jx0, method='BFGS')
startTime = time.time()
j2OptimRes_x1 = jax.scipy.optimize.minimize(fun=jEvalFunc, x0=jx1, method='BFGS')
j2ElapsedTime = time.time()-startTime

aOptimRes_x0 = scipy.optimize.minimize(fun=aEvalFunc, x0=ax0, method='BFGS', jac=aGradFunc)
startTime = time.time()
aOptimRes_x1 = scipy.optimize.minimize(fun=aEvalFunc, x0=ax1, method='BFGS', jac=aGradFunc)
aElapsedTime = time.time()-startTime

print("scipy.optimize and JAX grads converged with x0?: {}".format(jOptimRes_x0.fun<1e-6))
print("scipy.optimize and JAX grads converged with x1?: {}".format(jOptimRes_x1.fun<1e-6))
print("scipy.optimize and JAX grads elapsed time with x1: {:f} sec".format(jElapsedTime))
print("")
print("jax.scipy.optimize and JAX grads converged with x0?: {}".format(j2OptimRes_x0.fun<1e-6))
print("jax.scipy.optimize and JAX grads converged with x1?: {}".format(j2OptimRes_x1.fun<1e-6))
print("jax.scipy.optimize and JAX grads elapsed time with x1: {:f} sec".format(j2ElapsedTime))
print("")
print("scipy.optimize and Autograd grads converged with x0?: {}".format(aOptimRes_x0.fun<1e-6))
print("scipy.optimize and Autograd gards converged with x1?: {}".format(aOptimRes_x1.fun<1e-6))
print("scipy.optimize and Autograd grads elapsed time with x1: {:f} sec".format(aElapsedTime))

@jakevdp I am looking forward to start using JAX in my code, but I cannot do it unless I have a decent runtime performance in LBFGS optimizations. Could you please let me know if this could be achieved in the near future. Thanks.

One issue is that you're calling Python sum when it's better to call jnp.sum. With this change, I run your benchmarks & see that the JAX method is about 20% faster than scipy, but still about 2x slower than autograd. There may be room for further optimizations in JAX's BFGS method, but I'm not very familiar with that part of the code.

Thanks @jakevdp your tip of using jnp.sum. In my laptop jnp.sum makes jax.scipy.optimize 9.4% faster ((runtime_slowest-rutime_faster)/runtime_slowest) than scipy.optimize, both methods using JAX gradients.
Hower, scipy.optimize using Autograd gradients is 66.2% faster than jax.scipy.optimize using JAX gradients. I also found convergence problems in jax.scipy.optimize, compared to scipy.optimize (#5292). So I am concluding that at the moment, for my application (that relies heavily on BFGS optimizations and is not using GPUs) it is better to use scipy.optimize with Autograd gradients. Am I missing anything?
Thanks again, Joaquin

@joacorapela
I am probably doing something wrong, but if you jit minimize its absurdly fast.
import time
import scipy.optimize
import jax
import jax.numpy as jnp
import jax.scipy.optimize
import jax.config
import autograd.numpy as anp
import autograd

jax.config.update("jax_enable_x64", True)

def rosenbrock(x):
    answer = sum(100.0*(x[1:]-x[:-1]**2.0)**2.0 + (1-x[:-1])**2.0)
    return answer

jEvalFunc = jax.jit(rosenbrock)
jGradFunc= jax.jit(jax.grad(rosenbrock))
aEvalFunc = rosenbrock
aGradFunc = autograd.grad(rosenbrock)

x0 = [76.0, 97.0, 20.0, 120.0, 0.01, 1e4]
x1 = [76.0, 97.0, 20.0, 120.0, 0.01, 1e2]
toleranceChange = 1e-9
maxIter = 10000
jx0 = jnp.array(x0)
jx1 = jnp.array(x1)
ax0 = anp.array(x0)
ax1 = anp.array(x1)

@jax.jit
def minimize_jit(x0):
    out = jax.scipy.optimize.minimize(fun=rosenbrock, x0=x0, method='BFGS')
    out = out._replace(message=None)
    return out

jOptimRes_x0 = scipy.optimize.minimize(fun=jEvalFunc, x0=jx0, method='BFGS', jac=jGradFunc)
startTime = time.time()
jOptimRes_x1 = scipy.optimize.minimize(fun=jEvalFunc, x0=jx1, method='BFGS', jac=jGradFunc)
jElapsedTime = time.time()-startTime

j2OptimRes_x0 = minimize_jit(jx0)
startTime = time.time()
j2OptimRes_x1 = minimize_jit(jx1)
j2OptimRes_x1.x.block_until_ready()
j2ElapsedTime = time.time()-startTime

aOptimRes_x0 = scipy.optimize.minimize(fun=aEvalFunc, x0=ax0, method='BFGS', jac=aGradFunc)
startTime = time.time()
aOptimRes_x1 = scipy.optimize.minimize(fun=aEvalFunc, x0=ax1, method='BFGS', jac=aGradFunc)
aElapsedTime = time.time()-startTime

print("scipy.optimize and JAX grads converged with x0?: {}".format(jOptimRes_x0.fun<1e-6))
print("scipy.optimize and JAX grads converged with x1?: {}".format(jOptimRes_x1.fun<1e-6))
print("scipy.optimize and JAX grads elapsed time with x1: {:f} sec".format(jElapsedTime))
print("")
print("jax.scipy.optimize and JAX grads converged with x0?: {}".format(j2OptimRes_x0.fun<1e-6))
print("jax.scipy.optimize and JAX grads converged with x1?: {}".format(j2OptimRes_x1.fun<1e-6))
print("jax.scipy.optimize and JAX grads elapsed time with x1: {:f} sec".format(j2ElapsedTime))
print("")
print("scipy.optimize and Autograd grads converged with x0?: {}".format(aOptimRes_x0.fun<1e-6))
print("scipy.optimize and Autograd gards converged with x1?: {}".format(aOptimRes_x1.fun<1e-6))
print("scipy.optimize and Autograd grads elapsed time with x1: {:f} sec".format(aElapsedTime))

Output
scipy.optimize and JAX grads converged with x0?: False
scipy.optimize and JAX grads converged with x1?: True
scipy.optimize and JAX grads elapsed time with x1: 1.689257 sec

jax.scipy.optimize and JAX grads converged with x0?: True
jax.scipy.optimize and JAX grads converged with x1?: True
jax.scipy.optimize and JAX grads elapsed time with x1: 0.000679 sec

scipy.optimize and Autograd grads converged with x0?: False
scipy.optimize and Autograd gards converged with x1?: True
scipy.optimize and Autograd grads elapsed time with x1: 0.484108

Many thanks @cgarciae
jit compiling jax.scipy.optimize.minimize yield huge runtime performance improvements.
However, the convergence problem I reported in (#5292) are still present in jax. Please see below.
Thanks again, Joaquin
import jax
import jax.numpy as jnp
import jax.scipy.optimize
import jax.config
import autograd.numpy as anp
import autograd

jax.config.update("jax_enable_x64", True)

def zakharov_jaxNumpy(x):
    def zakharovFromIndices(x, ii):
        sum1 = jnp.sum(jnp.power(x, 2))
        sum2 = jnp.sum(0.5*ii*x)
        answer = sum1+sum2**2+sum2**4
        return answer

    ii = jnp.arange(1, len(x)+1, step=1)
    answer = zakharovFromIndices(x=x, ii=ii)
    return answer

def zakharov_autogradNumpy(x):
    def zakharovFromIndices(x, ii):
        sum1 = (x**2).sum()
        sum2 = (0.5*ii*x).sum()
        answer = sum1+sum2**2+sum2**4
        return answer

    ii = anp.arange(1, len(x)+1, step=1)
    answer = zakharovFromIndices(x=x, ii=ii)
    return answer

jEvalFunc = jax.jit(zakharov_jaxNumpy)
jGradFunc= jax.jit(jax.grad(zakharov_jaxNumpy))
aEvalFunc = zakharov_autogradNumpy
aGradFunc = autograd.grad(zakharov_autogradNumpy)

x0 = [76.0, 97.0, 20.0, 120.0, 0.01, 1e4]
x1 = [76.0, 97.0, 20.0, 120.0, 0.01, 1e2]
toleranceChange = 1e-9
maxIter = 10000
jx0 = jnp.array(x0)
jx1 = jnp.array(x1)
ax0 = anp.array(x0)
ax1 = anp.array(x1)

@jax.jit
def minimize_jit(x0):
    out = jax.scipy.optimize.minimize(fun=zakharov_jaxNumpy, x0=x0, method='BFGS')
    out = out._replace(message=None)
    return out

jOptimRes_x0 = scipy.optimize.minimize(fun=jEvalFunc, x0=jx0, method='BFGS', jac=jGradFunc)
startTime = time.time()
jOptimRes_x1 = scipy.optimize.minimize(fun=jEvalFunc, x0=jx1, method='BFGS', jac=jGradFunc)
jElapsedTime = time.time()-startTime

j2OptimRes_x0 = minimize_jit(jx0)
startTime = time.time()
j2OptimRes_x1 = minimize_jit(jx1)
j2OptimRes_x1.x.block_until_ready()
j2ElapsedTime = time.time()-startTime

aOptimRes_x0 = scipy.optimize.minimize(fun=aEvalFunc, x0=ax0, method='BFGS', jac=aGradFunc)
startTime = time.time()
aOptimRes_x1 = scipy.optimize.minimize(fun=aEvalFunc, x0=ax1, method='BFGS', jac=aGradFunc)
aElapsedTime = time.time()-startTime

print("scipy.optimize and JAX grads converged with x0?: {}".format(jOptimRes_x0.fun<1e-6))
print("scipy.optimize and JAX grads converged with x1?: {}".format(jOptimRes_x1.fun<1e-6))
print("scipy.optimize and JAX grads elapsed time with x1: {:f} sec".format(jElapsedTime))
print("")
print("jax.scipy.optimize and JAX grads converged with x0?: {}".format(j2OptimRes_x0.fun<1e-6))
print("jax.scipy.optimize and JAX grads converged with x1?: {}".format(j2OptimRes_x1.fun<1e-6))
print("jax.scipy.optimize and JAX grads elapsed time with x1: {:f} sec".format(j2ElapsedTime))
print("")
print("scipy.optimize and Autograd grads converged with x0?: {}".format(aOptimRes_x0.fun<1e-6))
print("scipy.optimize and Autograd gards converged with x1?: {}".format(aOptimRes_x1.fun<1e-6))
print("scipy.optimize and Autograd grads elapsed time with x1: {:f} sec".format(aElapsedTime))

I ran your version and added some prints with the found solutions:
scipy.optimize and JAX grads converged with x0?: True
scipy.optimize and JAX grads converged with x1?: True
scipy.optimize and JAX grads elapsed time with x1: 0.140804 sec
[ 1.07557258e-07 -2.56314298e-09  2.47102737e-07 -1.83395703e-07
 -1.35773457e-07  3.40634401e-08]

jax.scipy.optimize and JAX grads converged with x0?: False
jax.scipy.optimize and JAX grads converged with x1?: True
jax.scipy.optimize and JAX grads elapsed time with x1: 0.000442 sec
[ 1.36015728e-09  2.70359824e-09  1.99681451e-08 -1.56991512e-09
  5.89690825e-10 -1.85915893e-08]

scipy.optimize and Autograd grads converged with x0?: True
scipy.optimize and Autograd gards converged with x1?: True
scipy.optimize and Autograd grads elapsed time with x1: 0.054576 sec
[-7.83446187e-09  1.79433087e-08  3.98365883e-08  3.05088107e-08
  1.50198881e-08 -7.08106598e-08]

If the solution is a vector of zeros they are all pretty close 😅, for x1 the minimize_jit solution reports convergence but not for x0 which I guess its the problem?

Thanks again @cgarciae Yes, for the zakharov function the unique global minimum is at zero (please see here) and the JAX convergence problem is for the starting point x0, which is further away from the global minimum.


iOS Undefined symbols for architecture arm64

Hello,
After adding the project to the dependencies and compiling the iOS project, I'm faced with the following error while building:

If there is any kind of help you can provide I would appreciate.

Hi @comoser,
Apologies for the late response - I saw this by chance now. Did you manage to get anywhere with this?

Hey @AndrewBestbier
After a bit of struggling I found out that I hadn't done the "Prepare for Deploy" phase of the documents.
After I did what was in the guide, everything compiled smoothly.
Thanks

"Prepare for Deploy"

Hey @comoser, what guide are you referencing with the instructions to overcome this error?
Thank you

"Prepare for Deploy"

Hey @comoser, what guide are you referencing with the instructions to overcome this error?
Thank you

Hey There @itjunkii83 !
I'm sorry I didn't provide a link and only a name for the documentation section.
I was searching again for this and I think the page relevant to you is this one
https://developer.salesforce.com/docs/atlas.en-us.service_sdk_ios.meta/service_sdk_ios/prepare_for_appstore.htm#!
Good luck 😉


🐛 CLI setting --staged checks unstaged changes

Environment information
CLI:
  Version:                      1.8.3
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-color"
  JS_RUNTIME_VERSION:           "v20.12.2"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

What happened?
Hello,
i have pre-commit hook in git which looks like this:
./node_modules/.bin/biome check --staged --no-errors-on-unmatched

The issue is that Biome checks staged files, but i have unstaged changes, that may cause linter error.
For now i ended up with this workaround:
# get staged file names
stage_files=$(git diff --cached --name-only)

err_output=""
# check each staged file via biome check
# @see https://biomejs.dev/reference/cli/
for file in $stage_files; do
    file_content=$(git show ":$file")
    err_output="$err_output"`echo "$file_content" | ./node_modules/.bin/biome lint --no-errors-on-unmatched --stdin-file-path="$file" 2>&1 > /dev/null`
done

if [ -n "$err_output" ]; then
    echo "$err_output"
    exit 1
fi

Expected result
Would be nice, that biome could have options like --staged-files and --staged-changes.
Code of Conduct

[X] I agree to follow Biome's Code of Conduct

Can you provide a reproduction, or a least some steps to reproduce it locally?

Yes,

make some changes in file, that are ok with linter
git stage that file
make some changes in the same file, that you know will have lint error
now call biome lint --staged
You should obtain linter error on unstaged changes

@hrasekj this is the expected behaviour, because the VCS integration isn't enabled by default. Please refer to this page https://biomejs.dev/guides/integrate-in-vcs/

@ematipico I've also tested this behavior with VCS enabled, the result was the same.
Ok, then i made gist for thar pre-commit hook. maybe it helps to someone with the same issue.
https://gist.github.com/hrasekj/ec6eb27491643306aed3e04efbd1fda6

@ematipico I've also tested this behavior with VCS enabled, the result was the same.

Sorry, that wasn't stated in your instructions. Please create a reproduction


oslo_policy: set enforce_new_defaults & enforce_scope to true as standard for new installations

Since the Ussuri release the default settings for the oslo_policy handling for enforce_new_defaults and enforce_scope is set to false. So new installations will be unable to make use of "richer access management" (like read-only access for example).

Support for scope types and additional roles in the default nova policies, allowing for richer access management including the ability to configure read-only access to resources. This feature is disabled by default. See the Policy Concepts documentation for more details.

This is still valid for the Xena release.
So we would like to see that new installations will get this enabled by default.
[oslo_policy]
enforce_new_defaults = True
enforce_scope = True

Scope
Each policy is protected with appropriate scope_type. Nova support two types of sope_type with their combination. ['system'], ['project'] and ['system', 'project'].
To know each policy scope_type, please refer the Policy Reference
This feature is disabled by default can be enabled via config option [oslo_policy]enforce_scope in nova.conf
New Defaults(Admin, Member and Reader)
Policies are default to Admin, Member and Reader roles. Old roles are also supproted. You can switch to new defaults via config option [oslo_policy]enforce_new_defaults in nova.conf file.

Makes sense for me.
For the moment you can place the mentioned parameters in the global.conf configuration file in environments/kolla. This way those parameters will be used by all OpenStack services.


Billing - STRIPE - feature toggle

Feature toggles have been introduced to make it easier to check the intermediate versions of the STRIPE implementation.

Feature.BILLING_SYNC_USERS
Feature.BILLING_SYNC_USER,
Feature.BILLING_CHECK_USER_BILLING_DATA,
Feature.BILLING_CHECK_CUSTOMER_ID,
Feature.BILLING_CHECK_USER_DEFAULT_PAYMENT_METHOD,

The features can be switched ON/OFF depending on our needs.
The goal is to be able to only activate part of the features. This will allow to step by step validate the flow on a productive environment (i.e.: SLF PROD).
In this first integration, only selected beta-testers will have the ability to check the billing capabilities. The beta-testeurs are the ones having billing data attached to their user. This data can only be added by explicitly/manually calling a "Force Sync User".
Moreover the billing of charging sesions (transactions) is disabled with the default BILLING settings. The UI to enable it is not yet available.

@ClaudeROSSI Conflicts to solve.

conflict with jerome reordering solved

utbilling tests are failing!

billing tests should now be ok


Error while using in Vs code

Before you submit an question we recommend you to check out the DOCUMENT first.
You can also find more information in:

TROUBLESHOOTING
FAQ

💬 Questions and Help
Please outline the questions.

Hi,
i was using this in vs code but it is giving errors like (vector is not a template) , (string is not defined) etc. please help


Fix logging after the move to go-kit/log

Not perfect, but works until we have a proper fix for the underlying library.
This enables us to get a 2.28.1 release out.
cc @juliusv
Signed-off-by: Julien Pivotto<EMAIL_ADDRESS>

Is there some way I can help to make this better? I'd like it if you could avoid the go-kit/kit dependency, of course.

@peterbourgon My understanding from the sidelines: I think the issue is just that we used another library (https://github.com/simonpasquier/klog-gokit/) in the k8s-related parts of Prometheus that hadn't switched over to the more light-weight logging lib, so the log-level-related types didn't match up between that and the rest of Prometheus, and we couldn't get a hold of @simonpasquier quickly enough to cut a new release of klog-gokit in time for a quickly-needed Prometheus 2.28.1. But it should fix itself once we release that library (with https://github.com/simonpasquier/klog-gokit/pull/18 already merged into it) and use it Prometheus.

Is there some way I can help to make this better? I'd like it if you could avoid the go-kit/kit dependency, of course.

You could release a new go-kit/kit where the log package public functions would simply call the go-kit/log ones. That way the transition could be smooth for everyone.

You could release a new go-kit/kit where the log package public functions would simply call the go-kit/log ones. That way the transition could be smooth for everyone.

Sure. But it's not really meant to be a transition, it's meant to be a distinct package. It's unlikely go-kit/kit/log will ever reference go-kit/log, or vice versa.

You could release a new go-kit/kit where the log package public functions would simply call the go-kit/log ones. That way the transition could be smooth for everyone.

Sure. But it's not really meant to be a transition, it's meant to be a distinct package. It's unlikely go-kit/kit/log will ever reference go-kit/log, or vice versa.

You asked how you could help make this better, I answered :) The issue here was that both level packages are not compatible :)


Import Ethereum account

From the drawer menu user can import ethereum account by providing mnemonic or secret key from wallet like metamask.
https://mirror.xyz/0x9f9f98e28456EEEFC4Af1c990a170e2B0D2d6027/r4R9-kc_KlhwsmpcQVG8b7ENQDkJBjYA1Ob5v0M0l1c
https://pub.dev/packages/dart_bip32_bip44
https://pub.dev/packages/web3dart
https://pub.dev/packages/ethereum_addresses
https://pub.dev/packages/dart_web3

Size: XL


TCP connections not reused when HTTP proxy-url is set

In our corporate environment, we're only able to access our clusters via a HTTP proxy. We set the proxy-url field in our configs to do this. It looks something like this:
apiVersion: v1
kind: Config
clusters:
  - name: rancher-desktop
    cluster:
      server: https://<IP_ADDRESS>:6443
      proxy-url: http://localhost:5555
      certificate-authority-data: ...
      insecure-skip-tls-verify: false
...

I've noticed that interacting with the cluster through k9s is much slower when this proxy is in use compared to hitting the API server directly
I did a test on my personal machine with just Rancher Desktop and a basic HTTP CONNECT proxy from a gist.
If proxy-url is unset, the connections are reused as expected and new connections are not spawned from actions in k9s.

When proxy-url is in use, I can see that significantly more TCP connections from the client are opened in Wireshark, as if they aren't being reused at all. Most actions in k9s like describing a pod open a new connection. The connections are also left open for a long time.

I'm assuming this is a bug in client-go but could also be in k9s, not too sure yet. I would like to try and write a quick test program that retrieves pods or something since kubectl doesn't run for long enough to demonstrate if TCP connection pooling is working properly.

Wrote a quick test program and can't produce the same effect, so looks like a bug in k9s. Closing.
package main

import (
	"context"
	"flag"
	"fmt"
	"log"
	"time"

	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/kubernetes"
	"k8s.io/client-go/tools/clientcmd"
)

func main() {
	kubeconfig := flag.String("kubeconfig", "", "path to the kubeconfig file")
	flag.Parse()

	// Use the current context in kubeconfig
	config, err := clientcmd.BuildConfigFromFlags("", *kubeconfig)
	if err != nil {
		log.Fatal(err)
	}

	// Create a new Kubernetes client
	clientset, err := kubernetes.NewForConfig(config)
	if err != nil {
		log.Fatal(err)
	}

	for range time.Tick(1 * time.Second) {
		// Retrieve the list of pods in the default namespace
		pods, err := clientset.CoreV1().Pods("kube-system").List(context.Background(), v1.ListOptions{})
		if err != nil {
			log.Fatal(err)
		}

		// Print the name of each pod
		for _, pod := range pods.Items {
			fmt.Println(pod.Name)
		}
	}
}


Remove the ec2_hints recipe

This is not necessary with modern Chef
Signed-off-by: Tim Smith<EMAIL_ADDRESS>

I'll get around to it at some point. I'm in no real rush. My main goal here is to remove the need for the ohai cookbook. We had a bug report that came in here where this didn't work with Chef 13 entirely due to this recipe that isn't actually needed


Update scalameta, semanticdb-scalac, ... to 4.4.27

Updates

org.scalameta:scalameta
org.scalameta:semanticdb-scalac
org.scalameta:semanticdb-scalac-core
org.scalameta:testkit

from 4.4.24 to 4.4.27.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta" } ]

labels: library-update, semver-patch

Superseded by #297.


Add test page

the most important page of all
https://github.com/maxbeatty/jsperf.com/blob/breakdown/_tpl/testPage.tpl

How does one help with this? (Or any of the other issues at the v2 milestone?)
The contribution instructions are unclear.

#1 lays out how I was thinking about it:

Interpret what the PHP is doing
Implement in JS here
Remove translated bits
Repeat until there's nothing left

Fork, branch, implement, and submit pull request. The README has instructions for getting setup and running tests. May be easier to give more real-time help in IRC channel

platform.js is in maintenance mode so I wouldn't mind handing off to uap-core by way of node-uap.

I'm about to be AFK for the next two weeks and was really hoping to finish this PR but alas there's still a few more tests to write :crying_cat_face: hopefully someone can fill in the rest or I can pick it up when I get back :smile_cat:
$ npm run test-cov

><EMAIL_ADDRESS>test-cov /Users/max/Sites/jsperf.com
> lab -t 100 -c -L

  ..................................................
  ..................................................
  ..................................................
  ............

162 tests complete
Test duration: 2392 ms
No global variable leaks detected
Coverage: 99.52% (8/1653)
server/web/test/index.js missing coverage on line(s): 57, 58, 61, 62, 65, 66, 70, 82
Code coverage below threshold: 99.52 < 100
Linting results: No issues

On it, thanks @maxbeatty

Tagging in @mathiasbynens for a final review.

LGTM. Thanks, everyone!


channel.videos.where(max_results: 2) generates 2 queries

Found it with VCR gem.
The difference is that the second query has pageToken=<TOKEN> parameter and there is different videos (i guess because of sorting)

Can you point out a case in which this is happening? I think it could be something related to sorting and/or the way Yt tries to workaround the search endpoint's 500 video limit (see https://github.com/Fullscreen/yt/issues/363 for more info).

Hi @dgb
I think it depends on how many videos channel contains. With one video - only one request sent.
Tested on channel with 59 videos - two requests.

Probably because Yt fetches 50 videos at a time to get metadata after searching the first 50 videos. If you have further concerns let us know


little hack to make elasticsearch search OK on indexes WITHOUT any "metadata" field

Description:
This is for enabling the whole thing for people (like me) who just don't have "metadata" field in their index... these extra things I put them at the same level as content in the doc, so using your tools was asking me to add a useless metadata field... I prefered to share this.
I Tested it, looks ok! The search returns the expected doc without any metadata part
Issue:
Blocking the search if docs DONT have the "metadata" field.
Dependencies:
no change

cc @joemcelroy

Also if you could get lint passing that would be great! @RodolpheCalvet

hi there @RodolpheCalvet - Thanks for your contribution, this is a good addition :)
Yes you're fine to update the existing PR.

elasticsearch integration has been moved to it's own package and repo, we should re-open this fix against langchain-elastic repo here: https://github.com/langchain-ai/langchain-elastic/blob/main/libs/elasticsearch/langchain_elasticsearch/vectorstores.py


Try to fix flaky ResizeShardsITest

Summary of the changes / Why this improves CrateDB
Fixates the number of replicas to 1.
The tests have been flaky since https://github.com/crate/crate/pull/10734 got merged
Checklist

[x] Added an entry in CHANGES.txt for user facing changes
[x] Updated documentation & sql_features table for user facing changes
[x] Touched code is covered by tests
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

Still fails :(
Will investigate further

Pushed another commit. I hope that fixes it.


Upgrade dependencies for dart 2.15

@Mufaddal1125 Workflow not passed....

Updated pubspec.yaml, please run the tests again.


[Idea] Add Someone Features From Advance Chrome Fork

Advance Chrome is a Special Build Of Chromiun That add:

Improved Download System.
Allows to open, save or discard downloads.
Downloads show realtime speed.
Integrated Flash Player.
Option to block javascript located on right click menu.
Webpage read mode option located on right click menu.
Browser address bar show full URLs.
Enabled Password Autofill on self signed SSL sites.
Disabled Blurry fonts created by DirectWrite and Skia.
All Chrome stock features working.

and many others here: [http://browser.taokaizen.com/](Advance Chrome´s Page)
And of course the [http://browser.taokaizen.com/download/patch.txt](The Diff File)

I've seen this before in #279. Closing this as a duplicate.


Only publish from release branches

Any push to the repo will overwrite the image tag using only the version. This will be problematic if someone is depending on that tag. Only pushes to specific release branches (like master, v0.1.x, etc) should overwrite an existing tag.

Done in #7


Fix openocd settings to use ESP builtin JTAG

Resolves #234

The default has been changed to esptool, thank you

@lewisxhe , thanks for the fix!
Even though the default is esptool, the JTAG is an option:
; Use this when burning with USB CDC
upload_protocol = esptool

; When using ESP32-USB-JTAG debugging
; upload_protocol = esp-builtin

I think this PR could be important so that it works properly for those who remove the comment to use JTAG


Support ClangFormat 3.9 and later

Currently, Aikido only supports 3.8 because different versions result in different code formatting with the same configuration. However, this constraint might be an unnecessary inconvenience if there is a way to workaround this.
This is a related comment.

We upgraded to 6.0 in #547. As @jslee02 noted originally, there are some minor formatting differences so unfortunately we still need to standardize on a specific version.


Participants - duplicate text

See page 'Deelnemers', 'Werving'. It says:
Dit veld is vereist.
Dit veld is verplicht.
Can you delete the first line? (In other places, it also says 'verplicht’.)

This issue is known, and logged as part of #124
Therefore, I'm closing this issue
To comment a bit on the issue itself; it's been there for as long as I've been working on the portal, but I've never found the cause. But, tbh, as it's only a visual quirk we've never really looked too deeply into it.


Fix client transaction stats

Fix #5619.
https://github.com/apache/trafficserver/commit/92338aed4d2ec8fc0ba9132e88ac12d97b08c7aa removed increment_client_transactions_stat()/increment_client_transactions_stat() function calls.

https://github.com/apache/trafficserver/commit/92338aed4d2ec8fc0ba9132e88ac12d97b08c7aa#diff-9c809c3761b279ca1d9aea6b3f952b2fL52
https://github.com/apache/trafficserver/commit/92338aed4d2ec8fc0ba9132e88ac12d97b08c7aa#diff-9c809c3761b279ca1d9aea6b3f952b2fL62

This revert the changes.

[approve ci autest]

[approve ci autest]


allow precise assembler overclock after max

Wouldn't it be better to create a MB class that works with long in GT5U? There are already quite a few multis that implement this workaround, which could be unified.

the problem is tectech's hatch, it is not easy to implement the energy drain from them in gt5u

there is a way to drain them already tho? GT_ExoticEnergyInputHelper has methods to do it, the only thing is that you need to combine the normal energy hatches and tectech hatches into one list

ok


Increment versions for kubernetesconfiguration releases

Increment package versions for kubernetesconfiguration releases

API change check
API changes are not detected in this pull request.


Memcached persistent connections, SASL authentication, and custom options

This PR adds support for memcached persistent connections, SASL authentication, and custom options. I released this package to offer these features, but I think it would be great to have them out the box with the framework!
Proposed additions to cache configuration file are below. I can create a PR for these if this PR is accepted.
The following extra configuration items are available for use with a memcached store:

persistent_id - [Memcached::__construct] (http://php.net/manual/en/memcached.construct.php)
explains how this is used
sasl - used by Memcached::setSaslAuthData
options - see Memcached::setOptions

These may be used in a store config like so:
'stores' => [
    'memcachedstorefoo' => [
        'driver'  => 'memcached',
        'persistent_id' => 'laravel_foo',
        'sasl'       => [
            env('MEMCACHED_USERNAME'),
            env('MEMCACHED_PASSWORD')
        ],
        'options'    => [
            'OPT_NO_BLOCK'         => true,
            'OPT_AUTO_EJECT_HOSTS' => true,
            'OPT_CONNECT_TIMEOUT'  => 2000,
            'OPT_POLL_TIMEOUT'     => 2000,
            'OPT_RETRY_TIMEOUT'    => 2,
        ],
        'servers' => [
            [
                'host' => '<IP_ADDRESS>', 'port' => 11211, 'weight' => 100
            ],
        ],
    ],
],

When defining options the config key should be set to the Memcached constant name as a string.
This avoids any issues with local environments missing ext-memcached and throwing a warning about
undefined constants. The config keys are automatically resolved into Memcached constants by
MemcachedConnector which throws a RuntimeException if the constant is invalid.
Tests for the new features are included, and as part of these I have extracted out some common methods used by all the CacheMemcachedConnectorTest tests, for example to generate the mocks etc. Happy to have feedback if this isn't the best approach.
It would be great to have any feedback on this if you have any queries or concerns.
Thanks!

Tests are failing because ext-memcached isn't enabled on Travis. Currently there is no Travis php config - would you like me add to this PR to enable ext-memcached on Travis as I have here, or is there a different approach you'd like to take?


Table formatting issue

page 53 - if you could make the first column wider as the word "maintainable" wraps into a 2nd line. Then functional requirements for "maintainable" and "coordinated" is one line off (needs to go up to align).

These are the pages from the kindle preview


Add missing word to docs

Description:
This PR adds a missing word to the marble test docs

Coverage remained the same at 97.56% when pulling 0005acef70cdb03bb69936a9082ffb9413eb9fd5 on johanneslumpe:patch-2 into 2f9efbfa1f2c9c9c0d08598cda287b99b3f8b87c on ReactiveX:master.


Map-based processing

Same code path supports map, sort, and filter against Python iterators in-memory or distributed via RDD or DF
pre/post is replaced with internal method that can cache exact and call repeatedly (unit test has example)
Fixed bug where GROUP BY on numeric column was adding noise
Removed sensitivity and sort from TypedRowset, they're not needed.

TODO:

Removed confidence intervals, will add back as output columns like colname_095_low
internal convert() function isn't necessarily robust yet.  Would be useful for cracking CSVs, stripping quote characters, doing date conversions, etc.  Should make it a library function that can be called in a map(zip())

Some updates:

row_privacy works now, so tables with no keys can be used
non-key counts can be clamped to zero
COUNT DISTINCT works properly again
reservoir sampling is for the whole query
analyst can pass in a max_contrib that is more aggressive than curator-supplied


technitium-dns-server: init at 12.0.1

Description of changes
Created a new package for Technitium DNS Server which is an authorative and recursive DNS server.
Homepage: https://technitium.com/dns/
GitHub: https://github.com/TechnitiumSoftware/DnsServer
Added myself as maintainer.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Now I have also removed the "with lib;" part for meta. I hope this PR fulfills all requirements and could be merged. It would be great if you could have a look at your comments and see if they are addressed. Thank you for your support!

Thank you for your review. :-)
You need to specify a config directory. Try running it with "~/.config/technitium-dns-server/" as argument:
./result/bin/technitium-dns-server ~/.config/technitium-dns-server/

What does mainProgramm add?

I did take another look for unnecessary files: env-vars: A remnant from the nix build process systemd.service: Currently unusable as it isn't patched. Either
1. Move it to `$out/lib/systemd/` and patch  `ExecStart` Arguments, so you can just do `systemd.packages = [ pkgs.technitium-dns-server ]` on nixos.

2. Remove it, and the potential nixos module would recreate in nix code.

I removed both files. In the future, a nixos module might come in handy.
Thank you for your review and for the hints! I'm glad it's working for you.

I don't see any changes.

I don't see any changes.

Sorry, my bad. Fixed.


Allow booleans in place of any top-level schema field

Replacement PR for #2598
This targets v3.1.1 as we have agreed this is a clarification. The change spells out that boolean values MAY be used wherever a schemaObject is allowed.
Plus one bonus fix.

There can be also added some example with true/false schemas like in https://github.com/asyncapi/spec/pull/550:
{
  "type": "object",
  "required": [
    "anySchema"
  ],
  "properties": {
    "anySchema": true,
    "cannotBeDefined": false
  }
}

type: object
required:
- anySchema
properties:
  anySchema: true
  cannotBeDefined: false

@magicmatatjahu rather than add examples to the spec, I have updated the tests folder with passing and failing examples. Still open to adding spec examples if people feel that is warranted.

Good to know, let's wait for people's opinion. Feel free to use these examples anywhere you want.


Consider adding kotlinx() to the DependencyHandler in Kotlin DSL

The KotlinDependecyExtensions provides some great helper methods to call.
Like kotlin("stdlib").
There exist also the embeddedKotlin() function.
I would recommend that you add kotlinx() to that as well.
Then coroutines leads from
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.0")

to
implementation(kotlinx("coroutines-core:1.1.0")

@eskatos would you merge this if I would create a PR for it?

A better home for that would be the Kotlin Gradle Plugin

I am not aware of the current state / code of the Kotlin DSL stuff.
But wouldn't it make sense to have both extensions (kotlin() and
kotlinx()) at the same place? 🤔
Anyways. I see two plugins. The Kotlin DSL base and "just" kotlin DSL
plugin. In which of them would you add it?
On Tue, Sep 8, 2020, 4:08 PM Paul Merlin<EMAIL_ADDRESS>wrote:

A better home for that would be the Kotlin Gradle Plugin
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gradle/gradle/issues/9259#issuecomment-688900672, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACOBQ6652HI3QVWXEJDFISDSEY3FFANCNFSM4HINHDUA
.

Both kotlin() and kotlinx() extensions would be better in the Kotlin Gradle Plugin at https://github.com/JetBrains/kotlin.

Ah sorry 😅 that is what you mean.
Yeah, I agree. Will close this.
On Wed, Sep 9, 2020, 11:59 AM Paul Merlin<EMAIL_ADDRESS>wrote:

Both kotlin() and kotlinx() extensions would be better in the Kotlin
Gradle Plugin at https://github.com/JetBrains/kotlin.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gradle/gradle/issues/9259#issuecomment-689459975, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACOBQ66J55FBKHKJBIN3VX3SE5GXDANCNFSM4HINHDUA
.