Error setting up entry Volvo - XC40 for volvoaaos

System Health details
System Information

version
core-2023.10.3

installation_type
Home Assistant Container

dev
false

hassio
false

docker
true

user
root

virtualenv
false

python_version
3.11.5

os_name
Linux

os_version
4.4.302+

arch
x86_64

timezone
Europe/Tallinn

config_dir
/config

Home Assistant Community Store

GitHub API
ok

GitHub Content
ok

GitHub Web
ok

GitHub API Calls Remaining
4976

Installed Version
1.33.0

Stage
running

Available Repositories
1396

Downloaded Repositories
21

HACS Data
ok

Home Assistant Cloud

logged_in
true

subscription_expiration
November 13, 2023 at 02:00

relayer_connected
true

relayer_region
eu-central-1

remote_enabled
true

remote_connected
true

alexa_enabled
false

google_enabled
true

remote_server
eu-central-1-14.ui.nabu.casa

certificate_status
ready

can_reach_cert_server
ok

can_reach_cloud_auth
ok

can_reach_cloud
ok

Dashboards

dashboards
1

resources
7

views
13

mode
storage

Recorder

oldest_recorder_run
October 29, 2023 at 20:15

current_recorder_run
November 1, 2023 at 10:28

estimated_db_size
929.42 MiB

database_engine
sqlite

database_version
3.41.2

Checklist

[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue
In Volvo Cars app everything works for my XC40 Recharge Pure Electric MY2024 but I'm unable to complete the setup of this HACS integration. I've properly entered username, password and VCC API key in HA and even see the count of API calls increasing for the application I created on https://developer.volvocars.com/account/ but in HA the integration status is "Failed to set up" and I see an error messages in logs every time I reload the integration.
Reproduction steps

Install the integration
Enter username/password/API key
Integration fails to start and error messages appear in logs.

Debug logs
This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/volvoaaos/volvo.py:130
Integration: Volvo AAOS (documentation, issues)
First occurred: 10:29:25 (13 occurrences)
Last logged: 10:41:26

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/volvoaaos/coordinator.py", line 71, in update_coordinator_data
    energy = await update_energy(self.energy, access_token, vcc_api_key, vin)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/volvoaaos/coordinator.py", line 89, in update_energy
    energy_data = await energy_call.get_recharge_status()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/volvoaaos/volvo.py", line 130, in get_recharge_status
    return RechargeModel.parse_obj(response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 5 validation errors for RechargeModel
data -> batteryChargeLevel
  field required (type=value_error.missing)
data -> electricRange
  field required (type=value_error.missing)
data -> estimatedChargingTime
  field required (type=value_error.missing)
data -> chargingConnectionStatus
  field required (type=value_error.missing)
data -> chargingSystemStatus
  field required (type=value_error.missing)

Logger: homeassistant.config_entries
Source: config_entries.py:399
First occurred: 10:28:29 (2 occurrences)
Last logged: 10:41:40

Error setting up entry Volvo - XC40 for volvoaaos
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/volvoaaos/__init__.py", line 51, in async_setup_entry
    energy_data = await energy.get_recharge_status()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/volvoaaos/volvo.py", line 130, in get_recharge_status
    return RechargeModel.parse_obj(response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 5 validation errors for RechargeModel
data -> batteryChargeLevel
  field required (type=value_error.missing)
data -> electricRange
  field required (type=value_error.missing)
data -> estimatedChargingTime
  field required (type=value_error.missing)
data -> chargingConnectionStatus
  field required (type=value_error.missing)
data -> chargingSystemStatus
  field required (type=value_error.missing)

Diagnostics dump
No response

It seams that it does not get data when requesting the energy api. What does your response look like from: https://developer.volvocars.com/apis/energy/v1/specification/    ?

@fars-fede-fire

Do I need to publish my Volvo application to make it accessible from HA?

Seems to work correctly on a different API endpoint:

As long as you have a vcc api key you do not need to make it public.
This integration uses the 'recharge status' endpoint. Are you getting data from this on Volvos homepage?

Are you getting data from this on Volvos homepage?

Yes, the same page you asked to check.
What else can we check? I'm happy to help with debugging. I'm based in Estonia.

There is a specific endpoint named /recharge-status which returns data from all the other endpoints.
What does the endpoint return in your case?
Glad to hear you will help!

Tried many times, data part is always empty for recharge-status (see below) and all other Energy API endpoints. At the same time, other APIs (Connected Vehicle, Extended Vehicle and Location) work as expected and return proper data.
I've sent an e-mail to<EMAIL_ADDRESS>- let's see if and what they respond.

I will try to figure something out.
I will be happy to hear the response from Volvo :-)

Fallback wouldn't even be possible -- batteryChargeLevel was the only piece of energy information available in other APIs. I personally suspect the public Energy API is not available for MY2024 cars yet. Let's see if and what they respond.

Ah, I'm afraid we're out of luck -- it seems to be a known issue that the energy API endpoints are not supported for XC40 Recharge MY24 yet :/ See the discussion here:
https://community.home-assistant.io/t/volvo2mqtt-connect-your-aaos-volvo/585699
I suggest to improve the handling of empty data in /recharge-status endpoint. This way myself and other similar users could still at least leverage the other functions. WDYT?

This way myself and other similar users could still at least leverage the other functions of the integration.

Thanks for the investigation.
Can you confirm which functions are working.
(I will get my XC40 MY24 in December. )

I have tried to make a fix. It is rather hacky though...
Can you try it out?
https://github.com/fars-fede-fire/volvoaaos/tree/fix-unavailable-recharge-status

I tried the new code (I'm 100% sure as I manually uploaded the custom_component directory) but still getting the exact same error messages:
Logger: homeassistant.config_entries
Source: config_entries.py:399
First occurred: 16:39:09 (4 occurrences)
Last logged: 16:47:43
Error setting up entry Volvo - XC40 for volvoaaos
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/volvoaaos/init.py", line 51, in async_setup_entry
energy_data = await energy.get_recharge_status()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/volvoaaos/volvo.py", line 130, in get_recharge_status
return RechargeModel.parse_obj(response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 5 validation errors for RechargeModel
data -> batteryChargeLevel
field required (type=value_error.missing)
data -> electricRange
field required (type=value_error.missing)
data -> estimatedChargingTime
field required (type=value_error.missing)
data -> chargingConnectionStatus
field required (type=value_error.missing)
data -> chargingSystemStatus
field required (type=value_error.missing)

Thank you for testing. I have tried to solve it again.
Would you mind to try again?
https://github.com/fars-fede-fire/volvoaaos/tree/fix-unavailable-recharge-status

Getting the following errors now:
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/volvoaaos/coordinator.py:75
Integration: Volvo AAOS (documentation, issues)
First occurred: 20:38:41 (2 occurrences)
Last logged: 20:39:06
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/volvoaaos/coordinator.py", line 75, in update_coordinator_data
energy_data = await update_energy(energy=self.energy, all_recharge_available=self.config_entry.data[CONF_ALL_RECHARGE_AVAILABLE])
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'all_recharge_available'
Logger: homeassistant.config_entries
Source: config_entries.py:399
First occurred: 20:38:53 (2 occurrences)
Last logged: 20:39:04
Error setting up entry Volvo - XC40 for volvoaaos
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/volvoaaos/init.py", line 44, in async_setup_entry
energy_data = await update_energy(energy=energy, all_recharge_available=entry.data[CONF_ALL_RECHARGE_AVAILABLE])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/volvoaaos/coordinator.py", line 93, in update_energy
energy_data = await energy_call.get_battery_charge_level()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/volvoaaos/volvo.py", line 144, in get_battery_charge_level
return BatteryChargeLevelModel.parse_obj(response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for BatteryChargeLevelModel
data -> batteryChargeLevel
field required (type=value_error.missing)

Also, please consider adding /connected-vehicle/v1/vehicles/asdf/battery-charge-level as a fallback in case energy API returns empty data. This would allow at least seeing battery charge level for MY24 cars for which energy API is not supported.

Thank you once again.
Sorry I think I misunderstood you. Thought you could get data from some, but not all energy endpoints, but see now when scrolling through this thread that you get the data from the connected vehicle...
Unfortunately I do not have more time this week but will hopefully look into it next week.

So, /connected-vehicle/v1/vehicles/{vin}/battery-charge-level is the only energy-related API endpoint that returns meaningful data for XC40 MY24. It would be very useful to add this endpoint as fallback in case /energy/v1/vehicles/{vin}/recharge-status returns empty data.

Now I have created the fallback wit the connected vehicle API. Because a new variable is created during config flow you have to delete the car from Home Assistant and re-add it. You can use the same VCC-API-KEY as before.
It is available here: https://github.com/fars-fede-fire/volvoaaos/tree/fix-unavailable-recharge-status

Excellent, works like a charm! I successfully tested the following:

lock/unlock
climate on/off
correct battery charge %

Thank you very much for quick support!

Unfortunately, my joy didn't last for long. Later today I wanted to refresh the data manually and reloaded the integration but it failed to start up again. I was on phone and didn't have time to debug so I simply restarted HA, hoping it would resolve the issue but the integration still wouldn't start up. Unfortunately, I didn't capture the logs but I remember seeing a 404 message for the v2 battery-charge-level endpoint. I deleted the integration completely and reinstalled from scratch but I get an "unknown error occurred" message already when submitting username/password/VCC key. I get the following error message every time I try to add my car. It contains other Python stuff as well but it's definitely triggered by adding car to your integration.
What could be the issue?
Logger: aiohttp.server
Source: /usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py:403
First occurred: 21:03:41 (1 occurrences)
Last logged: 21:03:41
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 293, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 389, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/volvoaaos/config_flow.py", line 75, in async_step_user
return await self.async_step_select_vin()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/volvoaaos/config_flow.py", line 99, in async_step_select_vin
response = await connected_vehicle.list_vehicles()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/volvoaaos/volvo.py", line 170, in list_vehicles
return GetVinModel.parse_obj(response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 2 validation errors for GetVinModel
status
field required (type=value_error.missing)
operationId
field required (type=value_error.missing)


Softphone tab closes without clicking "leave" on pop-up in active call

Starting situation: If you have an active call with the softphone and try to close the tab with the active call, a pop-up starts, asking the user if they really want to close the tab.
Issue: Even without confirming you want to close the tab, the tab closes automatically after a couple of seconds, leading to an unwanted disconnect of the call.
Expected behaviour: The tab remains open until you click "close" on the pop-up and does not close automatically.

Hey,
Thanks for reaching out. I haven't been able to reproduce the issue in Chrome, Firefox or Edge. Which browsers did this work in?


Logical Flow type editor needs to update the data_type_association table

Abandoning - scope of this change to large / risky.  Adopting a more incremental approach to supporting data_types with physical flows etc


AWS v16.3.1 release

ℹ Team Firecracker is drafting AWS v16.3.1 release to support additional EC2 instance types.
Target release date: 2022-01-21
Release PR: TBD
Scope

Make additional AWS x86_64 m4/m5/m6 instances types available;

Pre-Release

[ ] Create release ticket on Releases board
[ ] Make an announcement on #sig-product that team is doing a release. Include a link to the ticket from the release board.
[ ] Make sure release was tested by creating new cluster, upgrading from older version and with HelloWorld app.
[ ] Aggregate release notes from all changed components and add to README.md in the release directory.
[ ] Send draft release announcement to #sig-product for review ASAP.
[ ] Verify documentation is up to date.

Releasing

[ ] Create release PR
Instructions

[ ] Define new release in release.yaml file.
[ ] Activate new release by setting state to active.
[ ] Deactivate old release if it's within same major version (state: deprecated). Verify with PO if you have doubts.
[ ] Check versions of all components included. They shouldn't be lower than those in the previous release unless there was a rollback.

Example PR

[ ] Release relevant operators.

[ ] Tag release branch.
[ ] Bump operator version in draft release.

[ ] Make sure that WIP releases in releases repo branch are removed and not merged to master since the master branch is deployed automatically after merging PR and that would make WIP releases visible in customers’ installations which should generally not happen.

Post-Release

[ ] Update front-end cluster with the new release.
[ ] Verify release is available on all installations. You can use this script.
[ ] Send out release announcement to all customers according to these instructions.
[ ] PO subscribes to release posts on Slack to get notifications if there are follow-up messages.
[ ] Close release task on Releases board.

Configuration for similar instance types: PR https://github.com/giantswarm/config/pull/741. Will be rolled out before release 16.3.1.
Documentation is updated here: https://github.com/giantswarm/docs/pull/1273

The release is out.


build_library/catalyst: Update virtual/rust during catalyst stage1 for alpha

Install virtual/rust to avoid version conflicts that happen in case of rust versions in the SDK being different from those in the new ebuilds.
/usr/share/catalyst/targets/stage1/stage1-chroot.sh installs gcc and its dependencies, including dev-lang/rust, while virtual/rust does not get updated. That results in version conflicts between virtual/rust and dev-lang/rust.
To avoid such an issue, we should update also virtual/rust when building stage1. Since virtual/rust automatically pulls in dev-lang/rust, we do not need to explicitly specify dev-lang/rust here.
Also deal with both virtual/rust and dev-lang/rust.
Toolchain utils have installed only dev-lang/rust. It could result in version mismatch between virtual/rust and dev-lang/rust, because dev-lang/rust does not automatically pull in virtual/rust.
So install virtual/rust instead of dev-lang/rust.
How to use
sudo FLATCAR_DEV_BUILDS_SDK=https://storage.googleapis.com/flatcar-jenkins/sdk \
  /mnt/host/source/src/scripts/bootstrap_sdk

sudo /mnt/host/source/src/scripts/build_toolchains

Cherry-picked to edge.


feat: add tests for new build service annotations

Description
Added tests for new annotations in build service added in https://github.com/redhat-appstudio/build-service/pull/164, please see the linked PR for more information.
Issue ticket number and link
STONEBLD-1189
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Locally by running ./bin/e2e-appstudio --ginkgo.label-filter="annotations" --ginkgo.v and ./bin/e2e-appstudio
Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

/test all

/retest

/retest

/test all

/test all

/test all

/retest


fixed caching issue

The main issue that was causing responses from ChatGPT to return the same response over and over again was not a caching issue, it was the fact that the prompt became too complicated and was using indirect language, instead of implying something to chatGPT, you have to be explicit and also the more concise you can make the prompt, the better. @blinton-ross FYI


allow parameter type inference in specification statement

Currently, parameter type inference for anonymous functions is only allowed when the anonymous function occurs as an argument in a positional argument list. I've often considered also allowing parameter type inference in specification statements.
In #6734, @welopino gives this example:
Integer(Integer) f;
f = (i) => i;

Which is reasonable, I guess, as far as it goes. However, I've never liked the above syntax very much. Actually it would be better to allow the following:
Integer(Integer) f;
f(i) => i;

And:
Integer f(Integer i);
f(i) => i;

And, of course, it should also be supported in named argument lists.
fun { f(i) => i; };

Now, this proposed syntax is bordering closely on ambiguity, since f(a) looks a whole lot like a function call. However, it looks to me like fat arrow might be enough to disambiguate it. I would have to wrestle a bit with ANTLR to see what can be done.

Still, like he says it would be regular to at least allow that syntax too.

+1 for allowing inference in specifications.
I can live with both Integer(Integer) f; and Integer f(Integer i);. Even I'll say to use an intermediate one: Integer(Integer i) f;, as it:

Follows the classic structure return(parameters*) for callables
The name for the member is at the end, like any other member declaration (say regular).
Allow naming parameters, so we can even use those names for invocations.

On the other side, I don't like f(i)=>i as an alias for f=(i)=>i. When assigning, I always expect finding the = symbol separating the variable and the value.  This proposal just gets rid of it, and just make me feel uncomfortable.
I understand f=(i)=>idoes not look the prettiest. Even I found myself sometimes writing things like Integer(Integer) f(Integer i)=>(i)=>i, that is even weirder.
But I can't get a better syntax without introducing noise.

@someth2say Do you write:
value f = (String x) => print(x);

Or do you write:
void f(String x) => print(x);

If it's the second one you write, why on earth would you want to write:
void f(String x);
f = (String x) => print(x);

Instead of:
void f(String x);
f(String x) => print(x);

That doesn't make sense to me.

I mean the first one, a assigning a function reference.
Being true, I didn't even realize you can define a function header, and later assign its body...

In other words (maybe clearer)
function f(Integer i)=>(Integer j)=>i+j

@someth2say well we're not talking about that case at all.
And, FTR, the syntax is:
function f(Integer i)(Integer j)=>i+j

Well, not exactly. I'm talking about functions returning functions:
function f1(Integer i)=>(Integer j)=>i+j; // explicit type is Integer(Integer)
function f2(Integer i)(Integer j)=>i+j; // explicit type is Integer

Anyway, this is driving away from the original topic. My bad, I moved from two-liner to one-liner when providing an example.
Let's forget about that, and just let me keep the rest of my opinion.

@someth2say
What I think that @gavinking is trying to say is that both of your lines do exactly the same thing, even with explicit types.
Integer(Integer) f1(Integer i) => (Integer j) => i+j;
Integer f2(Integer i)(Integer j) => i+j;

// f2 and f1 have both the same type and do the same thing
Integer(Integer)(Integer) f3 = f1;
Integer(Integer)(Integer) f4 = f2;

I honestly cannot see why you’d prefer the f1 syntax over the f2 syntax.

Sometimes you need the f1 form, but in those cases the actual function being returned is indirectly referenced somewhere else...

This issue was duped by #7058, and fixed there.


generate python package

alamo-alerter package created based on cookiecutter :)

:+1:

:+1:

hipchat integration test ;)

:+1:


Clarify error message when an accessor is invoked.

Fixes #24554

I'm cleaning up our PR backlog, so I'm going to close this one since it's been stale for a while.
@krk feel free to open a new PR addressing #24554. I'd recommend changing the check... functions, maybe checkPropertyAccessExpression and checkElementAccessExpression.


Sync translation files

Is it possible to sync translation files?
Like if I were to add new values to en.json, could this library sync the new values with translations to the other files?
If not, regard this as a feature request.

Hi @fatihbabacan92 ,
Thank you for your request. It is not possible for now, but it sounds like an amazing feature. I will try to investigate and implement this feature as soon as I can. 🎈

This would indeed be an amazing feature because it saves time and every time you run the translation for example Google changes the sentence

I will be surprised if it is possible since we cannot get known is some string translated or no... but just as an idea: Probably we can have some additional file that stores some kind of meta information about translated keys? (but in this case probably it should be an option, to not junk in directory when it is not needed)

I kind of worked on the structure of this feature.
and exactly @Demetri0, the only possible way is an additional history or meta-file. That would be a great feature, but unfortunately don't have much time to implement it.


Ind3x

Ind3X Token is a utilitiy token using to power Ind3X Exchange as substitute to fees.
Gas Limit: 60000

请检查 CI 报错。


Running game from editor triggers ERROR: create: Index p_width - 1=-1 out of size (MAX_WIDTH=16384)

Godot version:
Master branch, 6671096dd7
OS/device including version:
Mageia 6 x86_64, Linux
Issue description:
Running any project from the editor seems to trigger this error:
ERROR: create: Index p_width - 1=-1 out of size (MAX_WIDTH=16384)
   At: core/image.cpp:1451.

I suspected an issue with missing icon.png, but I get the same error both with and without icon defined. If running the game directly (not from the editor), it doesn't happen.
This seems to be a relatively recent regression (2-3 days at most I'd say).
Steps to reproduce:

Create a new project (touch project.godot, or via project manager)
Edit it, create basic scene, save and set as main scene
Run the project (F5) and check terminal / output dock

Minimal reproduction project:
image_empty.zip

Bisected:
git bisect start
# good: [d1497b720eb34da7797e5107c357f6ed17b37297] i18n: Fix extract.py after #17440
git bisect good d1497b720eb34da7797e5107c357f6ed17b37297
# bad: [67b0d3c2dc8decdabb21650f1d77a70b1a0d236d] Particles: Allow speed_scale at 0 in property hint, equivalent to pause
git bisect bad 67b0d3c2dc8decdabb21650f1d77a70b1a0d236d
# good: [56bab6509c152e015f2c700a4e3db529d816e619] Merge pull request #21318 from karroffel/gles2-shader-fixes
git bisect good 56bab6509c152e015f2c700a4e3db529d816e619
# bad: [cd945e28def309222abdb2fdc057a0913abde4b8] Merge pull request #21272 from paulloz/tilemap-tools-enhancements
git bisect bad cd945e28def309222abdb2fdc057a0913abde4b8
# bad: [cad24adb977982a776a3ff3246ed9a47268da38e] Merge pull request #21354 from akien-mga/clean-print_line
git bisect bad cad24adb977982a776a3ff3246ed9a47268da38e
# bad: [548c26239907c34081a96bff61d653f2a32ac243] Merge pull request #21359 from dragmz/fix-plot-clear-when-stopped
git bisect bad 548c26239907c34081a96bff61d653f2a32ac243
# good: [f123694b4e5ac52bb82b3a2e3cbd6d36db1d0c9c] Merge pull request #21357 from karroffel/gles2-shader-language-f-to-pay-respects
git bisect good f123694b4e5ac52bb82b3a2e3cbd6d36db1d0c9c
# bad: [92a9a8969dc97cd6b4028f8164c96316af23da10] Fix clear button not clearing plot when stopped
git bisect bad 92a9a8969dc97cd6b4028f8164c96316af23da10
# first bad commit: [92a9a8969dc97cd6b4028f8164c96316af23da10] Fix clear button not clearing plot when stopped

Caused by 92a9a896 (#21359), CC @dragmz.


Is there any way to add SVG image locally from mobile resource?

I am trying to add svg vector icons which is located in assets files in the PDF. is this possible?

same

Hello ✋
Unfortunately I am currently too busy to work on the development of this library. Any kind of contribution will be welcomed and published. 🙏


update pywiscat CLI

Note: this PR is pending https://github.com/wmo-im/pywiscat/pull/11 and a new pywiscat (0.2.0) release.

FYI pywiscat 0.2.0 now released and this PR is ready for review.


Toolbar menu is hidden

Toolbar menu (heading, table) is hidden. Others is ok including inserting image or link.
Please have a look at here: https://codepen.io/taurenshaman/pen/vwMvXY
The front framework is this: https://metroui.org.ua/index.html
Thank you very much!

This issue is odd but if you set bellow css, this issue will be resolved.
.tui-editor-defaultUI-toolbar {
  overflow: visible;
}

Thank you~


Adding Rust world

Hi, I've worked on a Rust world version of the Jargon project recently as a side project.
I think the Rust variation will be an interesting addition to the Functional Programming Jargon projects family for the following reasons

Rust is gaining a lot of tractions
Although it may seem like it supports functional programming features, it does not have Higher Kinded Type, currying, auto-currying and subtyping. functional-programming-jargon.rs provides workarounds to these problems
An attempt to emulate the Haskell ecosystem in a system-level programming language

Link to the project https://github.com/JasonShin/functional-programming-jargon.rs


"command error: Resource temporarily unavailable (os error 11)" when processing a lot of files

When invoking Parallel 70,000 files with filenames piped on stdin, its memory usage grows continously up to 0,5Gb of RAM, and when it stops growing Parallel starts spamming the following line:
parallel: command error: Resource temporarily unavailable (os error 11)
Happens both with and without --no-shell argument. Command line to reproduce the issue:
find '/some/folder/with/tens/of/thousands/of/files' -type f | 'target/release/parallel' -j 6 cat '{}' > /dev/null
Parallel built from git with cargo build --release on Linux x86_64, rustc 1.11.0 (9b21dcd6a 2016-08-15)

For comparison, GNU parallel is limited to 15Mb of RAM on my system on the same workload.

I'll be landing a large amount of changes soon that refactors a decent portion of the source code and adds quiet mode, and once that is done I'll look into how I can improve the resource consumption of inputs. I may need to remove the feature of counting the total number of jobs and use an iterator for reading inputs from standard input.

Spent a whole day trying to fix a bug when it was actually caused by the beta and nightly compiler. Anyway, I've landed the changes that I meant to land yesterday, so now I will begin to work on handling standard input in a more efficient manner.

Ah, I should have warned you about the nightly compiler - I've already figured out that it's buggy with your parallel.
I've already tried chars() iterator on BufReader in my Rust version of tr, and in addition to being an unstable language feature it's also very slow. lines() is probably a better idea.
Also, in 0.4.1 your parallel was 2x slower than GNU parallel when reading arguments from stdin.

Updating the issue to say that I have Nightly builds fixed by eliminating the unsafe { mem::uninitialized<Child>() } usage. Additionally, I have been working on fixing this issue, but it will take some time to implement as I want to implement it as efficiently as possible the first time, such as trying not to use Vectors.
I plan to solve the issue by buffering 64K worth of arguments at a time and writing the arguments to disk in an unprocessed file in reverse-newline-delimited order. Then, creating an iterator that will buffer 64K worth of arguments at a time and truncate the unprocessed file after reading arguments. As arguments are completed, they will be written to  processed file. This should allow me to retain the ability to determine total number of jobs and getting the Nth job, whether it's currently in memory, or in either the processed or unprocessed file. This should keep memory usage very low. Once everything is working, I'll benchmark the program with perf stat and time to get memory consumption and cycles/time spent and modify the size of the buffer to reduce the number of syscalls.

I'm pretty close to resolving this problem. The issue of memory is fixed with my local changes now that inputs are being buffered to and from the disk into byte arrays. However, I've yet to resolve the issue of OS Error 11 as that's being caused by Rust failing to close child processes for some reason. I'm not sure how to ensure that child processes are closed so I'm asking the community for help with this issue.

Processes that you're done working with stay around as zombie processes; this means that they have terminated, and the only thing left from them is an entry in the process table and the exit code. As soon as the exit code is read by parallel, the process table entry will be gone.
This is done by waitpid syscall and I believe the appropriate function to call from Rust is https://doc.rust-lang.org/std/process/struct.Child.html#method.wait

I've been able to fix it by borrowing the Child process as a mutable reference and then borrowing the child's fields with the as_mut() methods. Previously, I was not able to use the wait() method because it caused a borrow checker conflict with the child's fields being borrowed.
It will still be a while before I push the fixes though. I'm in the middle of refactoring a large portion of the code I've written so far, which has caused some bugs that I'm having to track down.

The good news is that I just successfully processed 100,000 inputs, seq 1 100000, using only 13 Mbytes according to the maximum resident set size reported by time.

Later today I'll have the changes landed for you to test out. It's going to be quite the update.

20 files changed, 5265 insertions(+), 612 deletions(-)

And some benchmarks:
Rust Parallel
    ~/D/parallel (master) $ seq 1 10000 | time -v target/release/parallel echo > /dev/null
    	Command being timed: "target/release/parallel echo"
    	User time (seconds): 0.48
    	System time (seconds): 2.48
    	Percent of CPU this job got: 59%
    	Elapsed (wall clock) time (h:mm:ss or m:ss): 0:04.93
    	Average shared text size (kbytes): 0
    	Average unshared data size (kbytes): 0
    	Average stack size (kbytes): 0
    	Average total size (kbytes): 0
    	Maximum resident set size (kbytes): 12928
    	Average resident set size (kbytes): 0
    	Major (requiring I/O) page faults: 0
    	Minor (reclaiming a frame) page faults: 2198164
    	Voluntary context switches: 73174
    	Involuntary context switches: 36678
    	Swaps: 0
    	File system inputs: 0
    	File system outputs: 0
    	Socket messages sent: 0
    	Socket messages received: 0
    	Signals delivered: 0
    	Page size (bytes): 4096
    	Exit status: 0

GNU Parallel
    ~/D/parallel (master) $ seq 1 10000 | time -v parallel echo > /dev/null
    	Command being timed: "parallel echo"
    	User time (seconds): 97.04
    	System time (seconds): 29.17
    	Percent of CPU this job got: 232%
    	Elapsed (wall clock) time (h:mm:ss or m:ss): 0:54.17
    	Average shared text size (kbytes): 0
    	Average unshared data size (kbytes): 0
    	Average stack size (kbytes): 0
    	Average total size (kbytes): 0
    	Maximum resident set size (kbytes): 66848
    	Average resident set size (kbytes): 0
    	Major (requiring I/O) page faults: 0
    	Minor (reclaiming a frame) page faults: 15070207
    	Voluntary context switches: 250452
    	Involuntary context switches: 113320
    	Swaps: 0
    	File system inputs: 0
    	File system outputs: 0
    	Socket messages sent: 0
    	Socket messages received: 0
    	Signals delivered: 0
    	Page size (bytes): 4096
    	Exit status: 0

The new release has been made, so you can try it out to see if it's working as you like.

It doesn't seem to leave a lot of zombie processes around anymore. Huzzah!
Tried it on 10,000 files so far, and it's now significantly slower on a simple 'cat' workload than gnu parallel. The command line is:
find '/folder/with/lots/of/text/files/' -type f | head -n 10000 | parallel -j 6 cat '{}' > /dev/null
Runtime and peak memory usage for each:
rust: 1:40, 36,8MiB
rust, --no-shell: 1:36, 58,9MiB
gnu: 0:31, 14,6MiB
Additionally, the memory usage for Rust parallel grows over time while GNU parallel uses a fixed amount of memory.
For the record, the regular use case for this is piping all that stuff to grep instead of /dev/null to get aggregate statistics for the entire dataset.

This issue is resolved by 0.5.0 release.

Shall I open another issue for the lack of performance parity with GNU?

It should be opened as a bug. I'm guessing that memory consumption is rising because the standard output and error of each task is being temporarily buffered into memory, and subsequently dropped from memory after that process has had it's turn being printed. The solution will be to modify the piping to use the DiskBuffer mechanism I created for inputs.

I think you'll find with the latest version, 0.7.0, the issue of memory consumption has been thoroughly resolved.


Allow the user to download the generated payload

Come up with an alternate design for https://github.com/RedHatCloudForms/cfme-migration_analytics/pull/16
cc @himdel @martinpovolny

Maybe @skateman's idea about a separate static asset server would be relevant here..

(Though I still think accessing this kind of private data should be authenticated)

I vaguely remember something from the containerization effort about a static asset server. However, that doesn't provide us authentication.

I think we could still use the idea from https://github.com/RedHatCloudForms/cfme-migration_analytics/pull/16 , if we just add a proper authenticated API endpoint to server those files from the API appliance.

Yeah, not putting them into the public folder is a good start :wink:

Per internal discussion:

API will support download from the appliance the payload generation is run from
Multiple payloads can be generated on the same appliance however only the latest will be available for download when clicking the button
API will provide path to file in task
Generated payloads will reside in /tmp


added amqp(rabbitmq) default provisioner to score-k8s

This PR adds the RabbitMQ(amqp) provisioner to the default provisioners of score-k8s . Fixes #11
This was tested with a score file that looks like:
apiVersion: score.dev/v1b1
metadata:
  name: pika-python-client
containers:
   pika_client:
      image: python
      variables:
        amqp_connection_string : ${resources.amqp1.connection}
resources:
  amqp1:
    type: amqp

@Gkemhcs Do you have an example of the output running in a k8s cluster?

And once you've signed the DCO and signed your commit, the checks will pass :)

@astromechza
Here is the sample score workload for k8s
apiVersion: score.dev/v1b1
metadata:
  name: amqp-demo
containers:
   nginx:
      image: nginx
      variables:
        AMQP_CONNECTION_URL : ${resources.amqp1.connection}
resources:
  amqp1:
    type: amqp

and resources it has deployed into the cluster along with pvc ,pv is in below snapshot

and logs of rabbitmq statefulset pod

here is output you asked for .

@astromechza   ,As you instructed i have removed connection and management port from outputs of amqp provisioner

Thanks @Gkemhcs for you contribution! JFYI: this was one of the last pieces in order to have this sample apps working successfully and by default with both score-compose and score-k8s: https://medium.com/@mabenoit/what-if-the-azure-samples-aks-store-demo-was-using-score-655c55f1c3dd. Thanks!

 I am glad  that my first contribution helped community.
Looking forward to contribute some more


CSP trails

Description
add support Trails as it was in the Crackshotplus plugin.
Configuration
Projectile:
Projectile_Settings:
Type: "CRIT"  or "REDSTONE"

This is currently what the config for trails looks like.
  Trail:
    Distance_Between_Particles: <Blocks>
    Particle_Chooser: <STOP/CLAMP, RANDOM, LOOP>
    Particles:
      Particle_0:
        Type: <FLAME/CRIT/WHATEVER>
        Color: <ColorSerializer> # Can be used with REDSTONE, MOB_SPELL, DUST_COLOR_TRANSITION
        Fade_Color: <ColorSerializer> # Can only be used with DUST_COLOR_TRANSITION particles
        Size: <Float> # Can be used with REDSTONE, or DUST_COLOR_TRANSITION
        Count: <Integer> # usually the player should not define this
        Noise: <x-y-z>
        Velocity: <x-y-z, scalar (inherit velocity * scalar)>
        Material_Data: <ItemSerializer>
      Particle_1: <Particle Serializer>
      Particle_2: <Particle Serializer>

    Shape: <NONE, SPIRAL, LIGHTNING>
    Shape_Data:
      Spirals: <Integer>
      Radius: <Blocks>
      Points: <How many particles per spiral loop>

https://www.spigotmc.org/resources/104539/


Syncronize assets in the first deploy

Hi there,
I suggest maybe you could consider to copy all assets in /sites/default/files to the shared folder of the remote machine, only for the first deploy.
Thank you in advance ;-)

Done!. Thank you for your suggestion


Output stream issue

Hello! I tried this project but noticed some problems in the response stream. It seems the audio chunks are being played as soon as available, not waiting for the current one to finish playing.
Here's a video of the answer I received (using ./examples/streaming_cli.py) when I asked it to tell a story:
https://github.com/user-attachments/assets/933ca092-854f-41b5-9abd-cfde9862fd53

I can confirm this. The audio chunks are not playing  as expected.

Interesting, if either @RazaProdigy or @WikiLucas00  can spot where the fix is, happy to merge a pr
I'll try to take a look soon if not

Yeah--I'm seeing the same thing.

In case it's helpful, this python code that I wrote does stream audio properly on my system: https://github.com/mdagost/openai-realtime-streamlit

This change helped me in fixing the above issue described - https://github.com/run-llama/openai_realtime_client/pull/5

@tanvithakur94 Still same issue after increasing queue max size ☹

@tanvithakur94 Still same issue after increasing queue max size ☹

@RazaProdigy If you use airpods or some input device with good noise cancellation, it should work. For better performance, you can mute the input volume after you are done talking.

yea, in a noisy environment the interrupt mode is a little flakey. There is some threshold settings that you can play with, I don't think these are fully exposed in the API
I don't think the queue size has much to do with this

This happens when the mic is muted after input.  Similar experience as to when the model is picking itself up, but this issue is NOT related to that.


Failed to resolve component 'esp_adc_cal'.

Keep getting this error:
achimpieters@Achims-iMac esp % cd ~/esp/esp-matter-demo/examples/light
export IDF_CCACHE_ENABLE=1
idf.py set-target esp32
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/Users/achimpieters/esp/esp-matter-demo/examples/light/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /Users/achimpieters/esp/esp-matter-demo/examples/light/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 /Users/achimpieters/esp/esp-matter-demo/examples/light"...
-- Found Git: /usr/bin/git (found version "2.24.3 (Apple Git-128)")
-- Component directory /Users/achimpieters/esp/esp-matter-demo/examples/common/external_platform does not contain a CMakeLists.txt file. No component will be added
CMake Warning at /Users/achimpieters/esp/esp-idf/tools/cmake/project.cmake:337 (message):
  enabled ccache in build but ccache program not found
Call Stack (most recent call first):
  CMakeLists.txt:41 (project)

-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/achimpieters/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/achimpieters/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/achimpieters/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
Solving dependencies requirements
Updating lock file at /Users/achimpieters/esp/esp-matter-demo/examples/light/dependencies.lock
Processing 3 dependencies:
[1/3] espressif/button (2.0.1)
[2/3] espressif/led_strip (1.1.0-alpha)
[3/3] idf (5.0.0)
-- Found Python3: /usr/local/Frameworks/Python.framework/Versions/3.10/bin/python3.10 (found version "3.10.8") found components: Interpreter
CMake Error at /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:245 (message):
  Failed to resolve component 'esp_adc_cal'.
Call Stack (most recent call first):
  /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:287 (__build_resolve_and_add_req)
  /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:282 (__build_expand_requirements)
  /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:282 (__build_expand_requirements)
  /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:288 (__build_expand_requirements)
  /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:574 (__build_expand_requirements)
  /Users/achimpieters/esp/esp-idf/tools/cmake/project.cmake:440 (idf_build_process)
  CMakeLists.txt:41 (project)

-- Configuring incomplete, errors occurred!
See also "/Users/achimpieters/esp/esp-matter-demo/examples/light/build/CMakeFiles/CMakeOutput.log".
HINT: The component esp_adc_cal has been moved to the IDF component manager or has been removed and refactored into some other component.
Please look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.
Refer to the migration guide for more details.
cmake failed with exit code 1, output of the command is in the /Users/achimpieters/esp/esp-matter-demo/examples/light/build/log/idf_py_stderr_output_15805 and /Users/achimpieters/esp/esp-matter-demo/examples/light/build/log/idf_py_stdout_output_15805
achimpieters@Achims-iMac light %

How can I fix it?
Already did:

IDF version 4.1, 4.2, 4.3, 4.4 and 5.0 all the same.

@AchimPieters Can you please provide more info -
i. If you see this intermittently or always
ii. A set of steps that can recreate this along with the SoC used, exact commits and/or branches
iii. Does this occur after changing branches in any of the repositories etc.


Add a table of contents to documentation pages

Hello everyone,
I have been working with Electron for a ling time now. I often refer to documentation and I noticed I spent a lot of time looking for a specific item before finding it. For example the BrowserWindow is very long.
I cloned the repo and noticed you just render the markdown.
I know I am reopening an issue but thy can't you analyse it in order to create a table of content? You could put it in a collapsible panel in order not to take more place.
I don't know how to code on your website but I made a CodePen with a preview of what it could look like with your style :
https://codepen.io/TheRolf/full/wvKWOYK
The demo is interactive, you can click the "Table of Contents" title to expand or collapse the table of content.
The script algorithm behind however is not very complicated. I could help. Just parse the markdown to create a hierarchy with sections, sub sections and platform/deprecated labels.
Thanks for reading!

Currently working on updating our i18n package so that the data needed to make this happen is easier to access from the website code:
https://github.com/electron/i18n/pull/1349

Cool!


Update year in License

Only made 1 change:

Update LICENSE.md to include latest year in the form of a date range

No other changes were made.

Thanks.


Is it normal that generation of density map takes long to complete?

I am running the experiment on colab. The tqdm progress bar shows about 8+ hours for completion. Is it too long or a normal time?

I am running the experiment on colab. The tqdm progress bar shows about 8+ hours for completion. Is it too long or a normal time?

Hi, yes it is quite normal to take the running time more than 8+ hrs. What you can do is, you can create an exception handling and whenever an error occurs, it stores the state of the program and resumes from where it left.
Please find below the code to the above workaround
from tqdm import tqdm
try:
i=0
temp = []
Code will run till all the files are processed (Len of the files in all folder)
for img_path in tqdm(list_of_images(path_sets)):
if os.path.exists('img_paths.pickle'):
  with open('img_paths.pickle', 'rb') as f:
    temp, pkl_path = pickle.load(f)
    if img_path == pkl_path:
      continue

if img_path not in temp:

  # load matlab file and replaces name with the values defined
  mat = io.loadmat(img_path.replace('.jpg', '.mat').replace('images', 'ground_truth').replace('IMG_', 'GT_IMG_'))
  # read image
  img = plt.imread(img_path)
  # create a zero size matrix of image
  k = np.zeros((img.shape[0], img.shape[1]))
  # takes the first element from the image keys and values
  gt = mat['image_info'][0,0][0,0][0]

  # generate Hot encoded matrix of sparse matrix
  for i in range(0,len(gt)):
    if int(gt[i][1]) < img.shape[0] and int(gt[i][0]) < img.shape[1]:
      k[int(gt[i][1]), int(gt[i][0])] = 1

  # generate density map
  k = gaussian_filter_density(k)

  # file path to save the density map of all images
  file_path = img_path.replace('.jpg', '.h5').replace('images', 'ground')

  # write the data into the file
  with h5py.File(file_path, 'w') as hf:
          hf['density'] = k

  temp.append(img_path)

else:

  continue

  #print(img_path)

except (KeyboardInterrupt, SystemError, RuntimeError):
with open('img_paths.pickle', 'wb') as f:
pickle.dump([temp,img_path], f)

Thank you @saahil1292


CME in DataMapperCompiler Plugin

Description:
Got CME  as follows  when I was working in a multi-module project intermittently.

Steps to reproduce:
Affected Versions:
slbeta1-rc5
OS, DB, other environment details and versions:
Ubuntu

This should be fixed with https://github.com/ballerina-platform/module-ballerinax-datamapper/pull/138

closed via: https://github.com/ballerina-platform/module-ballerinax-datamapper/pull/138


Cow: Watch brilliantdirectories.com

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

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

Approved by tripleee in Charcoal HQ


Update bytebuffer-collections to 0.2.5

Adds polygound bound for spatial data. Thanks @scusjs
Fixes cache key collisions for spatial data
Update roaring to 0.5.18

lol, those labels were not at all what I had put on there originally.  Looks like there are newer 0.5.x's, and also 0.6.x's are a thing.
https://github.com/RoaringBitmap/RoaringBitmap/blob/master/CHANGELOG

@gianm because noone submitted a thing to bytebuffer-collections

I don't know what the compatibility between 0.5.x and 0.6.x is. Maybe @lemire can comment if there would be any unexpected things happen to things created with 0.5.x roaring if we updated to 0.6.x?

Filed https://github.com/metamx/bytebuffer-collections/pull/35

@drcrallen
The API and the file format should be considered stable. We are mostly just optimizing performance, reducing memory usage and adding (small) features. Upgrading to the latest version should not be an issue and you should expect performance and memory-usage gains.
If any issue should arise (unlikely), we are there to help.
It is recommended to update to version 0.6 of RoaringBitmap except if you need Java 6 support. We deliberately stopped testing Java 6 with version 0.6. But if anyone is using Druid with Java 6, they have other problems, presumably...

But if anyone is using Druid with Java 6, they have other problems, presumably...

Yes, like "rejected jars" kind of problems. Thanks!

Tests run: 24, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 37.007 sec <<< FAILURE! - in io.druid.indexing.overlord.TaskLifecycleTest
testResumeTasks[taskStorageType=HeapMemoryTaskStorage](io.druid.indexing.overlord.TaskLifecycleTest)  Time elapsed: 14.16 sec  <<< ERROR!
com.metamx.common.ISE: Where did the task go?!: index_foo_2016-06-08T20:25:54.232Z
	at io.druid.indexing.overlord.TaskLifecycleTest.testResumeTasks(TaskLifecycleTest.java:1070)

👍


Generic Trojan detected

https://www.virustotal.com/gui/file/6b3e8a777bbc567b4be33be593d563109ce9ec205ba9a5864f90d6e4ad986b1b
Unable to upgrade due to all the threat detections :/

I've edited my fork of the 7.2.2 code to add W11 23H2 support (the only feature of 7.2.3), until this gets sorted out.
You can copy https://github.com/ajn142attamu/DriverAutomationTool/blob/master/Current Branch/7.2.2/DriverAutomationTool.ps1 into C:\Program Files\MSEndpointMgr\Driver Automation Tool and then run it as admin. You may need to clear the C:\Program Files\MSEndpointMgr\Driver Automation Tool\Temp directory and rename C:\Program Files\MSEndpointMgr\Driver Automation Tool\Settings\OEMLinks.xml to ensure you pull the latest copy of OEMLinks.xml and then the latest copy of all the catalog files.

The virus attack vector is stemming from Repo copies and Forks.  So I recommend you obtain the original files directly from Maurice Daly and not the link from ajn142attamu.

The virus attack vector is stemming from Repo copies and Forks. So I recommend you obtain the original files directly from Maurice Daly and not the link from ajn142attamu.

Feel free to diff the code in my repo against the original repo, GitHub makes that super easy 😄 It's only bug fixes and feature additions. Not discounting the possibility that other folks could be making malicious modifications to their forks, but that's definitely not the case with mine, and because the code under my repo is all open source, you can see that 😄

https://www.virustotal.com/gui/file/6b3e8a777bbc567b4be33be593d563109ce9ec205ba9a5864f90d6e4ad986b1b
--> this is happening with the original file from Maurice
Currently unfortunately impossible to update the tool to 7.23 :(

Don't fork this GitHub project. (Always) download the files from the original source.
just to avoid confusion: I did, the threat detections are with the original file from Maurice, no fork.

Don't fork this GitHub project. (Always) download the files from the original source.

I mean this in the politest way possible, but I will continue to fork the project and maintain the fork until the author and collaborators have as much time to dedicate to solving issues I encounter with the tool as I do, or until my org drops use of this tool. The entire project is licensed under a BSD 2 Clause license, and the source for both 7.2.2 and 7.2.3 has been published by the repo owner, forking is allowed. For a specific example of why I will continue to fork the tool, note that line 13635 of https://github.com/maurice-daly/DriverAutomationTool/blob/master/Current Branch/7.2.3/DriverAutomationTool.ps1 reintroduces a bug that I patched out of my fork 9 months ago (the whole reason I began forking the tool) in this commit https://github.com/ajn142attamu/DriverAutomationTool/commit/042725cdc5ef92b009ed71e1d39b21dc068fbf7e and then introduces the same bug for W11 23H2.
I can't stop using the tool to perform my job, and when I encounter a bug that impacts my ability to do my job, I'm going to fix it. I will continue to put the fixes I make on my fork. I will also continue to suggest trying my fork to folks experiencing issues that I can replicate with the upstream repo (the official files) and cannot replicate in my fork. If anyone has any concerns that my fork is malicious, they're welcome to audit all changes made in my code against the source present in the official repo, that doesn't upset me one whit. If the author or a collaborator on the tool wants to do the same and fix those bugs in the official files, that also won't concern me one whit, I'd love for the tool to be better for everyone, and I'd love to have no justification for the continued work maintaining my own fork.


Canvas does not resize properly when scaling down

Previously fixed bug, working code no longer scales the canvas correctly.
When scaling the window down, the canvas does not resize enough, and scrollbars appear.

Will update when page is refreshed. Has to do with the application not rendering properly with the rescale when an abrupt change in size is made.


[CI/CD] Setup All Contributors Bot

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Let's setup the All Contributors bot.

Hey Ryan, I've been trying to automate updating CONTRIBUTORS.md in sktime as well. I think having a workflow file will be better than having a bot since in the case of the bot we'd have to manually ask it to add the contributors anyways - I figured why not automate it completely?
It's still being tested and probably has some problems but let me know what your thoughts on it are. We could do the same thing for skbase as well.

@achieveordie I like the idea of the fully automated workflow. If your willing to open the PR here, it would be great. I'll check out the PR in sktime as well.

@achieveordie what did the status of this end up being on sktime?

@RNKuhns There are a few important things we need to discuss from here. I believe we're almost at the stage where the workflow file can be added here as well. I'm looking forward to your opinion and input.

@achieveordie I think I'm fine with the caveats described in sktime/sktime#4103. I know you were testing things there. If it looks like that worked. Can you open a PR that adds the functionality here? Also, let's add something in the docs that clearly describes what a new contributor would have to do.
Just ping me when you have a chance to make the PR and I'll review it. Also feel free to bounce any ideas off of me about the doc portion.

that clearly describes what a new contributor would have to do.

I suppose we let them know in our repo's README.md that we follow all-contributors specification followed by a line that asks them to update .all-contributorsrc to add themselves as contributors. I don't think we need a CONTRIBUTING.md file yet, what are your opinions on it?

contributing.md is the "canonical location" that points people to how to contribute.
Some repository inspection interfaces expect it, and users will expect it, so instead of removing it, it should point to the "how to contribute" section of the docs, imo.

@achieveordie sorry for delay in responding.
I’m a fan of building all the plumbing I know I’ll want from the start. So it would be nice to to have contributors.md.
But I am also up for a potential simpler automation strategy. Couldn’t we just have GH action that runs at specified interval (daily). That updates contributors.md with any changes based on underlying contributors file? Then opens PR?
it would be awesome for broader OSS community to have the fuller integration you have been pursuing (help to many projects). But if there is something g that keeps it pretty up to date I think that also helps everyone (it is easy to forget to update contributors).


Properly publish typings

A few things I noticed recently

dist/ and @types/ are published inside of GitHub.
@types folder is not published within NPM

And normally, typing files should live near to the source.

@types are not published into npm, that's a good gotcha.
And for living near the source.. It's not necessary.
https://github.com/SimplrJS/scss-bundle/blob/master/package.json#L5
This line specifies where type definitions are, which makes it easy to consume and self-govern the location of .d.ts file. I will publish the typings into npm now 👏

@DovydasNavickas I know that they don't have to be next to the sources. But it's a recommendation and makes the types property inside of the package.json more optional.
A lot of editors and even custom TypeScript compiler hosts only looks for the typings next to the .js file.

If anyone has problems with editors or custom TypeScript compiler hosts, I guess they will fill the issue.
Our team is used to publishing .d.ts files into @types and specifying types property in package.json, which is there for everyone to consume.
What I'm saying is that if there's a feature that custom compiler hosts or editors omit, it's not really a package's fault.
And what recommendation do you have in mind?
Because what I found here:
https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html

Also note that if your main declaration file is named index.d.ts and lives at the root of the package (next to index.js) you do not need to mark the "types" property, though it is advisable to do so.

Says:

though it is advisable to do so
Which means, it is advisable to set "types" property.

I've also published latest beta without @beta tag.. Which makes it a bit more urgent to release the v2.0.1. Whenever you start using the v2, if no further changes are needed, please ping me here 👍
I will drop the -beta and release a proper version.


How to perform instance segmentation?

Are any of the pre-existing config files able to perform instance segmentation only? I have a custom dataset that has train.json and val.json organized in COCO style that I want to train on for instance segmentation. Thanks.

Hi, about how to perform instance segmentation only, you could refer to the document of mmdetection.


thuang-disable-navigation-prompt

Description

Add a callback function to cancel prompt for useNavigationPrompt hook, we then invoke the callback when samples are successfully created!

Issue
ch<fill_in_issue_number>
Test plan
Write how your changes are tested, or give a convincing reason why they can't be tested automatically.

Yayy thanks Shannon!! Mergingg will update rdev!


Create Single Package of components

We will be releasing a single package of components

We need to first split off the components into a single package
Afterward we can then refactor the styles into css using what was learned in #1663 and complete #1686

This task does not mean removing the individual packages yet but rather consolidating for the refactor of styles and deployment of v1 of the single package design system.
It is recommended that storybook add-ons be left as separate packages as they are now indexed on https://storybook.js.org/

After further discovery we've decide that this introduces to many unknowns in the management and maintenance given the size and maturity of the current PSDS. closes #1768


Override Bottom Tabs Layout on web to create custom navbar on desktop [next]

Done, see example app!


load all js file in nuxt3

Hello, Author.
I use nuxt-vite-legacy lib in my init nuxt3 project.we will use it in chrome 58.
I configured it as follows.
nuxt.config.js
export default defineNuxtConfig({
  devtools: { enabled: true },

  modules: [
    'nuxt-vite-legacy',
  ],

  legacy: {
    targets: ['chrome >= 49', 'firefox >= 64', 'safari >= 10.1', 'edge >= 16'],
    additionalLegacyPolyfills: ['regenerator-runtime/runtime'],
    modernPolyfills: [
      'es.global-this',
      'es.object.from-entries',
      'es.array.flat-map',
      'es.array.to-sorted',
      'es.array.flat',
      'web.queue-microtask',
    ],
  },
});

package.json
{
  "private": true,
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev --host",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "devDependencies": {
    "nuxt": "3.13.1",
    "nuxt-vite-legacy": "^1.2.0",
    "terser": "^5.32.0",
    "vue": "^3.5.3"
  },
  "overrides": {
    "vue": "latest"
  }
}

<template>
  <div>
    <!-- <NuxtRouteAnnouncer /> -->
    <NuxtWelcome @click="handleClick" />
  </div>
</template>
<script setup lang="ts">
const handleClick = () => {
  alert(1);
}
</script>

Then open chrome128 working fine, click alert 1 as ok. but it load all javascript file.

Then open chrome63 working bad,  click it not alert .And load all javascript file.

I guess: in client render project, vite legcy plugin will inject some inline script into html file.Howerer, in server render will not inject some line script.
So, I need your help. Thanks

Please check your code with Nuxt 3.8. If it works, then the module must be updated to support Nuxt 3.13.
The module uses regexps to fiddle with output HTML:
https://github.com/IlyaSemenov/nuxt-vite-legacy/blob/c98e1dbf9f00cfce9990d6ca753edc45a6f0e0ca/src/runtime/server-plugin.ts#L7-L12
This was only tailored to Nuxt 3.4—3.8 output.

Thanks for reply.

So did it work? Why'd you close the issue?

FWIW, I updated regexps to work with Nuxt 3.13 and @vitejs/plugin-legacy 5.4.


Part value auditing

Parse device value (for R, C, L, similar where typically "value" field holds the value such as 100k, 4.7uF, 2 uH) and compare to distributor site value.  All match - green, some mismatch - yellow (warning), all mismatch - red.   Thought is to have some part information auditing while we're at it

This information may be added in the Cat# (of course, after implementation) of each distributor, to not add a lot of new columns. And using just the yellow and red background, green for no warning / error we may white background just as now.


Fix logo path

I changed the path because the server couldn't resolve the logo path in the main page

Hello,
we have made some changes to our hosted server, which is creating conflicts with your current PR. So I request you to close this pull request and add it again so that we can preview it and proceed further towards verification/merge.
Sorry for the inconvenience.
You can also join our slack channel for updates/ discussion.

@anubhavitis  Hmm it says that there are no conflicts, so recreating PR would probably change nothing. Should I change the target branch?

hii @KonradLinkowski actually to have to make or to the beta branch and not the master branch so you have to change the target branch

@servermonk done ✔

@KonradLinkowski, Logo path wasn't showing any error.


Improve curl

This partially addresses issue #533.
I'm not sure there isn't a better way to check if the request flag is being explicitly passed or not, but I'm satisfied with the kind of bad way we came up with as a first draft; I'd be super appreciative of code review that addresses this part in particular - is there a way to do this in jhonda?

Do a git pull --rebase @anEXPer. This was done on a much older version of om.

JT, nice to see you!
No kidding is it an old one. And there's a major refactor that impacts this area of functionality, so rebasing is hard and simply cherry-picking the stuff onto main is incoherent/fails the tests now.
Well, live and learn, maybe I'll re-implement it on the current code as my next interview. I'm going to close this PR now, 'cause I don't actually have time to figure out why it's broken right now. I'm going to leave the branch for a bit, just in case I gain that time in the future.
Thank you!


sonner vs. shadcn toast?

shadcn already has a toast component. So why do we use sonner? Seems to be adding an extra dependency

Because it looks cooler.
You can check out the shadcn sonner component https://ui.shadcn.com/docs/components/sonner.

ah cool. Didn't know it's already included in shadcn/ui already. Thanks for the tip


cloc randomly failing on travis

Failed: https://travis-ci.org/AnalyticalGraphicsInc/cesium/builds/341726531?utm_source=github_status&utm_medium=notification
Same code passed: https://travis-ci.org/AnalyticalGraphicsInc/cesium/builds/341726533?utm_source=github_status&utm_medium=notification
Failed output
6.25s$ npm run cloc
><EMAIL_ADDRESS>cloc /home/travis/build/AnalyticalGraphicsInc/cesium
> gulp cloc
[03:37:51] Using gulpfile ~/build/AnalyticalGraphicsInc/cesium/gulpfile.js
[03:37:51] Starting 'clean'...
[03:37:51] Finished 'clean' after 343 ms
[03:37:51] Starting 'cloc'...
Unable to read copyrightHeader.js; ignoring.
Can't create unknown regex: $RE{comment}{C++} at node_modules/cloc/lib/cloc line 9619.
	...propagated at node_modules/cloc/lib/cloc line 4789.
[03:37:54] 'cloc' errored after 2.74 s
[03:37:54] Error: Command failed: perl node_modules/cloc/lib/cloc --quiet --progress-rate=0 Source/ --exclude-dir=Assets,ThirdParty --exclude-list-file=copyrightHeader.js
Unable to read copyrightHeader.js; ignoring.
Can't create unknown regex: $RE{comment}{C++} at node_modules/cloc/lib/cloc line 9619.
	...propagated at node_modules/cloc/lib/cloc line 4789.
    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>cloc: `gulp cloc`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>cloc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!

Apparently this is still happening CC @hpinkos


Not compatible with your operating system or architecture

Got that on Windows 10 x64 Corporative build 10240:
npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>

The message is accurate. See #118.


[Meshery] DockerApp source files

Description
these files contain the source for creating a CNAB bundle with DockerApp.
How to use it will referenced in a future blog
Notes to reviewers:
You can follow the steps in the demo from the community meeting of the 7th february 2020
Checklist
Place an '[x]' (no spaces) in all applicable fields.

[x] DCO signed.
[x] Title of the PR starts with area name, e.g. meshery:, mesheryctl:, ui:.

Signed-off-by: Nuno do Carmo<EMAIL_ADDRESS>

Link to Feb. 7th community meeting - https://www.youtube.com/watch?v=Cofv4LI4N1Q

@nidhinmahesh FYI - https://docs.docker.com/app/working-with-app/

@nunix did you run into this when running docker-compose up?
ERROR: Invalid interpolation format for "labels" option in service "meshery": "${labels.watchtower}"

Hi @leecalcote
Ok I see what is the issue: even if the file resembles to a docker-compose file, if you do a compose up, you will get the error you saw.
In order to run it with docker-compose, you will need to run docker app render | docker-compose -f - up
hope this clarifies it 😄

Let's give this a whirl. Thank you, @nunix !

Thank you, @nunix 👍


Properly escape color codes

Allow users to escape color codes.
Current situation:
"\&4 ....." turns into "&4 ....."
"&4 ....." turns the " ....." into a dark red text
Atm there is a workaround: add invisible modifiers to the string (Credit to Reinified#2891)
"&&r4 ....." turns into "&4 ....."
tested on CT 0.16.6 in Minecraft 1.12.2

Either a &r or constructing a text/message object in formatted or unformatted parts is the best way to handle this. Adding an escape for & might cause other unforseen issues that I would rather not spaghetti code solve


OpenPype: fix Docker build on Linux

This PR is changing few things how OpenPype is built using Docker.

cx_freeze is upgraded to 6.7 and pointed to our fork where we are fixing issue with not resolved relative paths.
Main Dockerfile is changed to use modern Debian as base image. Original Dockerfile with Centos 7 was renamed to Dockerfile.centos7 and changes in docker_build.sh script allow to add centos7 as argument to it to automatically switch between those Dockerfiles:

./tools/docker_build.sh

will build Debian version and:
./tools/docker_build.sh centos7

will use Dockerfile.centos7 and Centos 7 as base image.
📔 Note: This PR is still missing wheel of patched cx_freeze for macOs Big Sur

Centos build that was created from Docker file on Ubuntu and runs on Centos 7.9:
./openpype_console: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by ./openpype_console)
./openpype_console: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by ./openpype_console)
./openpype_console: /lib64/libc.so.6: version `GLIBC_2.26' not found (required by ./openpype_console)
./openpype_console: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ./openpype_console)
./openpype_console: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./openpype_console)
./openpype_console: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by ./openpype_console)

I've removed devtoolset-7 and that should solve it.

merged into #1744 and resolution is continuing there


 :-(
I installed Loop and I was able to use it for a while until I decided to uninstall it. Now, if I try to re-install it I see the below (I had to freeze the terminal because it goes by very fast)
dialogcancel(0)
RTL Webinterface Setting unchanged.
BTC-RPC-Explorer Setting unchanged.
Cryptoadvance Specter Setting unchanged.
ElectRS Setting unchanged.
BTCPayServer setting not changed.
lndmanage setting unchanged.
chantools setting unchanged.
Balance of Satoshis setting unchanged.
PyBLOCK setting unchanged.
ThunderHub setting unchanged.
LNbits setting unchanged.
LIT Setting changed ..
making sure the lit service is not running
# INSTALL LIGHTNING TERMINAL
adduser: The group `lit' already exists.
Failed to start lnbits.service: Unit lnbits.service not found.
Can't open /home/lit/.lit/tls.cert for reading, No such file or directory
548220057472:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:69:fopen('/home/lit/.lit/tls.cert','r')
548220057472:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:76:
unable to load certificate
please wait ...
Sphinx Relay unchanged.

Now I checked and that folder (/home/lit) is no longer there so it makes sense that there are no files. How can I fix this?
The steps to reproduce would be:

Install Loop
De-install Loop
Try to re Install Loop

Is there some script I can run to 'force install' Loop again? Thanks!

sudo userdel lit
bash config.scripts/bonus.lit.sh on

Thank so much! I had to add a delete group to the fix as well... so:
sudo userdel lit
sudo groupdel lit
bash config.scripts/bonus.lit.sh on


More voltage tests

Codecov Report

Merging #71 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
+ Coverage   97.58%   97.58%   +<.01%
==========================================
  Files           6        6
  Lines         827      829       +2
==========================================
+ Hits          807      809       +2
  Misses         20       20

Impacted Files
Coverage Δ

src/raster.jl
98.92% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Revert "Add c++ google default creds to cloud to prod auth scenarios"

Reverts grpc/grpc#16841
See https://github.com/grpc/grpc/issues/16879

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 1,965,922      Total (=)      1,965,922

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
10,909,000      Total (>)     10,908,997

 No significant differences in binary sizes

[microbenchmarks] No significant performance differences


Mapped collections must be indexed using backslashes when running on Windows

For example, I have an asset at part_types/test_cube.ron, and I can index it as such on Linux. But on Windows the resource gets inserted to the asset map with the key part_types\\test_cube.ron.
I think the path strings should be normalized to use slashes, or possibly the map could be indexed by a path type instead of a string.

Yeah, those keys should be the same on different OS. I think strings with simple slashes would be the nicer solution. That also mimics the behavior of Bevy assets.


Update plugin to nextflow 22.08.0-edge

The plugin should be updated to make it compatible with APIs introduced by Nextflow 22.08.0-edge

Same here @jorgeaguileraseqera 😄

I've tried this and still getting the warn messages
Launching `sql.nf` [nostalgic_murdock] DSL2 - revision: 8106eda419
WARN: Operator extension `sqlInsert` in `nextflow.sql.ChannelSqlExtension` should be marked with the '@Operator' annotation
WARN: Factory extension 'fromQuery' in `nextflow.sql.ChannelSqlExtension` should be marked with the '@Factory' annotation
[4, 6, 6]

Ok, solved


Recursively finds projects to weave  in the Managed solution folder

Modified the unrealsharp build tool to search for csproj files in directories below the managed solution directory and build them all.

Awesome work! ⭐
I'll take a look this weekend!


JSW Daemon: Unable to resolve the full path of the configuration file

We use appassembler to generate a Java Daemon based on JSW. This daemon runs as a service in an Unix environment.
We use traditional Sysvinit to configure this service.
But when server reboots, the following error occurs:
FATAL  | wrapper  | Unable to resolve the full path of the configuration file, /etc/conf/wrapper.conf: No such file or directory
I think this problem is caused by the fact we use multiple levels of soft link.
Our shell script (generated by the plugin) is named "myDaemon".
Content of folder /etc/init.d:
myDaemon -> ../../home/myApss/bin/myDaemon
Content of folder /etc/rc2.d: (we start at runlevel 2):
S20myDaemon -> ../init.d/myDaemon
The unix template of the plugin doesn't deal with multiple levels of soft link. See appassembler-maven-plugin/src/main/patches/sh.script.in
As a workaround we use a modified version of this unix template. If you think my analyse is ok, I can create a pull request with our fixed unix template.

for user-specific customization, see  http://www.mojohaus.org/appassembler/appassembler-maven-plugin/generate-daemons-mojo.html#unixScriptTemplate

Thank you Dantran. We effectively use this configuration with our specific unix template.
For those who might have the same problem, here is the fragment of shell that we use (we added the "while" statement):
...
# discover BASEDIR
BASEDIR=`dirname "$0"`/..
BASEDIR=`(cd "$BASEDIR"; pwd)`
ls -l "$0" | grep -e '->' > /dev/null 2>&1
if [ $? = 0 ]; then
  #this is softlink
  _PWD=`pwd`
  _EXEDIR=`dirname "$0"`
  cd "$_EXEDIR"
  _BASENAME=`basename "$0"`
  _REALFILE=`ls -l "$_BASENAME" | sed 's/.*->\ //g'`
   while [ -h $_REALFILE ]; do
     _REALFILE=`ls -l "$_REALFILE" | sed 's/.*->\ //g'`
   done
   BASEDIR=`dirname "$_REALFILE"`/..
   BASEDIR=`(cd "$BASEDIR"; pwd)`
   cd "$_PWD"
fi
...


feat(errors): Add HTTPGone (410 Gone)

Current coverage is 100% (diff: 100%)

Merging #888 into master will not change coverage

@@           master   #888   diff @@
====================================
  Files          30     30
  Lines        1897   1900     +3
  Methods         0      0
  Messages        0      0
  Branches      314    314
====================================
+ Hits         1897   1900     +3
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update d9d1aed...8e606e6

LGTM

This LGTM (for real this time)!


How can Iuser this module without zookeeper?

Questions?

Check the Troubleshooting / FAQ ?
Search the issues ?

Environment

Node version: v8.1.3
Kafka-node version:latest
Kafka version:latest

For specific cases also provide

Number of Brokers:
Number partitions for topic:

Include Sample Code to reproduce behavior
// include code here

Include output with Debug turned on
Thanks for your contribution!

Actually I don't know much about kafka, and why should i use zookeeper.

I have seen this in readme
New Features

Kafka ONLY no zookeeper

but I don't know how to use.

I'm closing this because i choose another module already.


fix(versions): update Activiti/activiti-cloud-application-chart versions into master

UpdateBot pushed helm dependency: example-cloud-connector to: 7.1.49

UpdateBot commands:
updatebot push-version --kind helm example-cloud-connector 7.1.49

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

UpdateBot commands:
updatebot push-version --kind make CONNECTOR_ACTIVITI_CLOUD_DEPENDENCIES_VERSION 7.1.40

UpdateBot commands:
updatebot push-version --kind helm activiti-cloud-audit 7.1.47

UpdateBot commands:
updatebot push-version --kind make AUDIT_ACTIVITI_CLOUD_DEPENDENCIES_VERSION 7.1.40

UpdateBot commands:
updatebot push-version --kind helm activiti-cloud-query 7.1.48

UpdateBot commands:
updatebot push-version --kind make QUERY_ACTIVITI_CLOUD_DEPENDENCIES_VERSION 7.1.40

UpdateBot commands:
updatebot push-version --kind helm example-runtime-bundle 7.1.63

UpdateBot commands:
updatebot push-version --kind make RB_ACTIVITI_CLOUD_DEPENDENCIES_VERSION 7.1.40

UpdateBot commands:
updatebot push-version --kind helm activiti-cloud-notifications-graphql 7.1.43

UpdateBot commands:
updatebot push-version --kind make NOTIFICATIONS_ACTIVITI_CLOUD_DEPENDENCIES_VERSION 7.1.40


Add full documentation for class methods

Expand docs for class-level .preset_memo_wise
Expand docs for class-level .reset_memo_wise
Add dokaz gem and configure to run code in README.md

Re: #87


add function resettable

Hi @marcelglaeser
Thanks for the pull request.  It looks like you're adding an icon at the end of the stars to reset the value back to 0, which is a good catch considering that was not an included feature before.  Thanks.
My only comment for improvement in the readme is to include a picture of what reset looks like when enabled since it may not be immediately obvious.  Thoughts?

You mean a picture like that?

exactly like that!  Just include it under the
to enable resetable
and include a note about the resetable functionality and that it will reset the star value to 0.

Done. So okay? :)

I don't use the twig extension!

Is it possible to merge this PR please ?

Hi, can you merge this please?


Add the function method plot!(plot, data::Result)

Add a method to the HarmonicBalance Plot function where you can add data to plot by the notation plot!(plot, data::Result) just as in the normal Plots.jl syntax.

I am not sure how we can achieve this with multiple dispatch. However, if we would follow the guidelines of Plots.jl to make a recipe instead of using multiple dispatch it has this feature build in automatically.  I also suggested this in #67.
Indeed, if we use the following example of the documentation
using Plots

mutable struct MyType end
 @recipe function f(::MyType, n::Integer = 10; add_marker = false)
           linecolor   --> :blue
           seriestype  :=  :path
           markershape --> (add_marker ? :circle : :none)
           delete!(plotattributes, :add_marker)
           rand(n)
end

Then writing
mt1 = MyType(); mt2 = MyType()
p = plot(mt1)
plot!(p, mt2)

creates

To be solved by #67


Various minor fixes

Fixes a small typo, enables env_logger to allow for logging output, removes some unnecessary clone() calls, adds Debug to Folder (I needed this while debugging Folder, and everything should derive Debug anyways).
The biggest thing this PR addresses is the fact that the behaviour of splitn changed with RFC 979.

This change is

Reviewed 8 of 8 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Update themes.js

I've been trying to get a different screenshot, but this enchanting table from my skyblock island fits there perfectly (not many sceneries could match dark red theme like this, I made over 40 screenshots in different skyblock locations, but still couldn't make it any better, because they were too bright or there was just full black color in blurred section (but in my original screenshot there are some nice green leaves that matches everything));
The best screenshot from blazing fortress I could make (still doesnt match this good):

How site looks with the new (worse) screenshots:

Related to #587

@JSanchoG if you don't intend to fix the errors on JSanchoG:patch-1 you should close this PR


StatusBar disappears on resize (smaller)

Loving the new StatusBar.
However, on-resize, if the console is made smaller (not if made bigger), it disappears.

@tig  I would love to do that. I have already tried it, but if you check in issue #335 I have already questioned is there any way to get the top and bottom of the window according to the size and position of the scroll bar.

@tig Now I am noticing that the vertical frame is not being well designed in your video. It must be a limitation of PowerShell.

@tig Now I am noticing that the vertical frame is not being well designed in your video. It must be a limitation of PowerShell.

I think this is an issue with gui.cs on Windows Terminal. See https://github.com/migueldeicaza/gui.cs/issues/332

This seems to work:
		public StatusBar(StatusItem [] items) : base()
		{
			X = 0;
			Y = Application.Driver.Rows - 1; // TODO: using internals of Application
			Width = Dim.Fill ();
			Height = 1;
			Items = items;
			CanFocus = false;
			ColorScheme = Colors.Menu;

			Driver.SetTerminalResized (new Action(() => {
				Y = Driver.Rows - 1;
				Redraw (Frame);
			}));
		}

Still does not work in Windows Terminal, cmd.exe, or ConEmu.
https://i.imgur.com/W6CKJdH.png

Because WindowsDriver don't trigger the buffer event changed on the vertical shrink resizing, there is no way to caught that to resize the buffer.


favicon: Close race condition in Chrome bug workaround

Followup to #16582.
Testing Plan: Dev server.

Merged, thanks @andersk!


the fact the new spec tells you to use /v3 endpoints when synapse doesn't implement them yet is very unfortunate

I believe this is more a Synapse issue, see their tracking issue; https://github.com/matrix-org/synapse/issues/11079

The spec release was prioritized over waiting for synapse to fix this.
This feels like a retrospective item rather than an issue.


Extend input selection policy simulator with fee calculation

Description
This PR extends the input selection policy simulator with the fee calculation. It still doesn't implement any actual selection policy using the cardano types, but hopefully paves the way to do so.
Linked issue
CBR-240
Type of change

[~] 🐞 Bug fix (non-breaking change which fixes an issue)
[X] 🛠 New feature (non-breaking change which adds functionality)
[~] ⚠ Breaking change (fix or feature that would cause existing functionality to change)
[~] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
[~] 🔨 New or improved tests for existing code
[~] ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

[~] I have read the style guide document, and my code follows the code style of this project.
[~] If my code deals with exceptions, it follows the guidelines.
[~] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.

Testing checklist

[~] I have added tests to cover my changes.
[~] All new and existing tests passed.

QA Steps

Screenshots (if available)

Closing this one as we decided to incorporate my changes in a cleaner branch, with less conflicts.


Added an optional argument to enable / disable async reads explicitly

I observed a garbage collection issue that occurs after reading a large stream of data using this library.
[monodroid-gc] 48944 outstanding GREFs. Performing a full GC!
[vicesettingsap] Explicit concurrent copying GC freed 10(32KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 4128KB/8257KB, paused 87us total 24.173ms
[monodroid-gc] GC cleanup summary: 206 objects tested - resurrecting 205.
[monodroid-gc] 48943 outstanding GREFs. Performing a full GC!
[vicesettingsap] Explicit concurrent copying GC freed 3(31KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 4128KB/8257KB, paused 87us total 23.970ms
[monodroid-gc] GC cleanup summary: 205 objects tested - resurrecting 205.
Thread finished: <Thread Pool> #26
The thread 0x1a has exited with code 0 (0x0).
[monodroid-gc] 48944 outstanding GREFs. Performing a full GC!
[vicesettingsap] Explicit concurrent copying GC freed 9(32KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 4128KB/8257KB, paused 91us total 24.563ms
[monodroid-gc] GC cleanup summary: 205 objects tested - resurrecting 205.
[monodroid-gc] 48944 outstanding GREFs. Performing a full GC!
[vicesettingsap] Explicit concurrent copying GC freed 4(32KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 4128KB/8257KB, paused 89us total 24.200ms
[monodroid-gc] GC cleanup summary: 205 objects tested - resurrecting 205.
Thread started: <Thread Pool> #33

The root cause appears to be in the way the Java byte object is being allocated. However, it is possible to work around this problem using the sync reads method which does not use the UsbRequest method.
This also significantly improved the USB data throughput in my testing

That makes sense.  The asynch code was added to get around an Android kludge, but that code had its own kludges to address documented Xamarin bugs. This is clean and doesn't impact anyone using the code.  Thank you for the PR!


Take revX metadata into account when sorting OS versions

https://www.flowdock.com/app/rulemotion/resin-devops/threads/yCepfZVbu664FOBN4movTFi7iLl

Fixed in #303, closing.


Coef mismatch

fixing the coef-mismath for Bayesian regression, as pointed by @ShouvikGhosh2048
Main changes are done in apply_schema

formula = apply_schema(formula, schema(formula, data),RegressionModel)

Removed the prior on alpha
Changes the systematic equation as:

#z = α .+ X * β
z =  X * β

previously it was

Linear regression docstrings have an alpha term in the examples (for example here)
Should the commented out lines in the Turing model (regarding the alpha term) be removed? (for example this line)
The bayesian/getter.jl file still uses alpha.

It looks like I forgot to update the docstring for regression. Let me correct it and get back to you.
For the time being, I am commenting out the lines in the Turing model. Once the tests are completed - we will clean the code by removing all the commenting out lines.
Let me remove alphas from 'bayesian/getter.jl'

I have removed alpha from getter.jl
Also corrected the example in linear_regressions.jl