defined methods in options are undefined?

Whenever i define a method or key inside the options, i have undefined results each time I run the page.
Sample code for method. getFromDate was undefined.
myApp.controller('here', ['$scope', function ($scope) {
        $scope.options = {
            getFromDate : function () {
                var temp = new Date().setHours(0, 0, 0, 0);
                return temp;
            },
            //<time options>
            from: getFromDate()
        }}]);

I tried it with different versions such as $scope.options.getFromDate(), or carried it to the scope like $scope.getFromDate(), and it still didn't work
Any recommendations?

The options provided in scope is not directly used by the component, but a new internal object is build from the supported options properties. So you can't do that.
Write this instead :
myApp.controller('here', ['$scope', function ($scope) {
var fromDate = new Date().setHours(0, 0, 0, 0);
    $scope.options = {
        //<time options>
        from: fromDate
    }}]);

thanks, it works now :)


[Bug Fix] Silent recaptcha with challenge if confidence is low

Addresses: https://github.com/restarone/violet_rails/issues/916
Demo Video
https://user-images.githubusercontent.com/25191509/182033120-061b7e9a-836c-4f72-8fe4-ed5da43083ac.mp4
IRL example
Nikean.org uses recaptcha V3 and present a challenge if bot-like behavior is detected.
https://user-images.githubusercontent.com/35935196/182044455-b7386aec-f2eb-4a93-b89b-a3906b81f6e1.mov
Co-authored-by: Prashant<EMAIL_ADDRESS>

Acceptance Criteria :clipboard:

General Regression pass: Forms without any recaptcha :heavy_check_mark:
Recaptcha V2 on staging :hourglass:
Recaptcha V3 on staging :hourglass:

@alis-khadka
UAT findings :test_tube:
Submission button /layout is broken

https://user-images.githubusercontent.com/35935196/182044455-b7386aec-f2eb-4a93-b89b-a3906b81f6e1.mov


Feature (Helm): Add library chart

What this PR does / why we need it:
This PR differentiate between an application chart and a library chart by defining a new type field in Chart.yaml . Library charts can be used as dependencies but are not installable.
Closes  #5085
Special notes for your reviewer*:
Update on design proposal: https://github.com/helm/helm/issues/5085#issuecomment-462385310
If applicable*:

[x] this PR contains documentation
[x] this PR contains unit tests
[x] this PR has been tested for backwards compatibility

/cc @mattfarina @prydonius

Thanks @technosophos for the review and comment.
Review comment updated and ready for review again.

Thanks @adamreese for merging.


[Feature Request] Support debugging .NET Core apps in Docker Windows Container (nanoserver)

We are working on Azure IoT Edge tooling. Azure IoT Edge modules (.Net Core) can be running in Windows nanoserver container, which requires debugging support. https://docs.microsoft.com/en-us/azure/iot-edge/quickstart

@gregg-miskelly @DustinCampbell  any updates on this? Thanks.


ledc_example_main.c doesn't compile (IDFGH-5373)

Environment

Development Kit:      [ESP32-Wrover-Kit]
Kit version (for WroverKit/PicoKit/DevKitC): [v1]
Module or chip used:  [ESP32-WROOM-32]
IDF version   Arduino 1.8.15
Operating System:     [Windows]
(Windows only) environment type: [Arduino].
Power Supply:         [USB]

Problem Description
ledc_example_main.c doesn't compile. Throws ERROR 1 with the code as-is from the git.
I googled the error and found: https://www.mikrocontroller.net/topic/496993#6284479
adding the "#define LEDC_AUTO_CLK 0" near the top made ERROR 2.
Both ERROR 1 and 2 are referencing line 74.
Commenting that out makes the code progress to ERROR 3 which happens on lines: 106, 115, 125, and 134.
Expected Behavior
Compiling
Actual Behavior
Error 1: " 'LEDC_AUTO_CLK' was not declared in this scope"
ERROR 2: "'ledc_timer_config_t' has no non-static data member named 'ledc_clk_cfg_t'"
ERROR 3:  "expected primary-expression before '.' token"
Steps to reproduce

Download and compile code for ERROR 1
add "#define LEDC_AUTO_CLK 0" and compile for ERROR 2
comment out line 74 to get ERROR 3

IDF version Arduino 1.8.15

No that's the IDE version.  You probably need to use an older version of the example code https://github.com/espressif/esp-idf/blob/release/v3.3/examples/peripherals/ledc/main/ledc_example_main.c
You may have other issues building esp-idf examples against precompiled Arduino libraries.

@grantcroft Does the issue still persist?

@grantcroft I'm closing this issue since there hasn't been any feedback. If you come across this issue again, please let us know. Feel free to re-open this issue then.


Posts with hashtag show “Translate this post”

Describe the bug
Posts with hashtag show “Translate this post” message.
Expected behavior
“Translate this post” should not appear
Screenshots

Details

Platform: iOS
App version: 1.40

@hensonb3 are you creating these posts with a bot or similar? This can be solved by correctly setting the language value on the post.

@pfrazee I am indeed posting with a bot. Do you have a quick/handy example? Here is a snippet of my Python code:
from atproto import Client
# Set up Bluesky Social API
bluesky_client = Client()
bluesky_client.login('mlbscores.bsky.social', 'REMOVED)
           # Post to Bluesky Social
        bluesky_client.send_post(text=final_score_text)

I dont know which API you're using so I can't say for sure. The relevant schema is here:
https://github.com/bluesky-social/atproto/blob/main/lexicons/app/bsky/feed/post.json#L32
So you ultimately want something like this:
{
  text: "Hello!",
  langs: ["en"],
  ...
}

This is a recent update so if your python client doesnt have a parameter for it yet, you'll need to ask them for the addition!

Going to close this issue to keep things clean but feel free to reply

Thanks, I have asked the Discord for: https://github.com/MarshalX/atproto


fix: change csrf token key

The change was based on RFC 6648. See https://datatracker.ietf.org/doc/html/rfc6648.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
226

Relevant Lines:
226

💛  - Coveralls


Create govee-lights-user-friendly.md

I created a tutorial for setting up Govee Light Control. Includes how to get your API Key, how to get your Device ID, and I modified psxboy's C# code so that all configuration can be done through Streamer Bot UI.

Updated the subathon countdown timer to include cheers and manual add minutes via chat command. All configuration is done via a few actions instead of inside the C# code.


nixos/gitea: add hmacKey support

Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

@emilylange @Ma27 could you take a quick look, please?

@SuperSandro2000 I do not maintain nixos/gitea anymore.


Do not update the inventory while deployment is in progress

webhook approach: https://github.com/openstack-k8s-operators/dataplane-operator/pull/839

/test dataplane-operator-build-deploy-kuttl

/test functional


Hydro-Québec sensor fails to init with unexpected mimetype error

Home Assistant release with the issue: 0.75.3
Last working Home Assistant release (if known): Not known
Operating environment (Hass.io/Docker/Windows/etc.): Docker (running in Ubuntu 18.04 virtual machine)
Component/platform: Hydro-Québec
Description of problem:
Sensor fails to initialize with following error,
2018-08-11 22:16:19 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform hydroquebec
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/src/app/homeassistant/components/sensor/hydroquebec.py", line 109, in async_setup_platform
    contracts = yield from hydroquebec_data.get_contract_list()
  File "/usr/src/app/homeassistant/components/sensor/hydroquebec.py", line 180, in get_contract_list
    ret = yield from self._fetch_data()
  File "/usr/src/app/homeassistant/components/sensor/hydroquebec.py", line 190, in _fetch_data
    await self.client.fetch_data()
  File "/usr/local/lib/python3.6/site-packages/pyhydroquebec/client.py", line 372, in fetch_data
    hourly_data = yield from self._get_hourly_data(day_date, p_p_id)
  File "/usr/local/lib/python3.6/site-packages/pyhydroquebec/client.py", line 309, in _get_hourly_data
    json_output = yield from raw_res.json(content_type='text/json')
  File "/usr/local/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 927, in json
    headers=self.headers)
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8'

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
sensor:
  - platform: transmission
    host: INTERNAL_IP
    username: transmission
    password: transmission
    monitored_variables:
      #- 'current_status'
      - 'download_speed'
      - 'active_torrents'
      #- 'paused_torrents'
  - platform: hydroquebec
    username: USERNAME
    password: PASSWORD
    contract: CONTRACTNO
    monitored_variables:
#     - period_total_bill
      - period_total_consumption
#     - period_average_temperature

cc @titilambert

Hello, this seems relates to pyhydroquebec lib, could open an issue here : https://github.com/titilambert/pyhydroquebec

@titilambert Created an issue in library repo, basically a duplicate of this one sans some obvious info.

Bump. Any update on this? I can help debugging, if need be!

@titilambert is it worth waiting or is the project dead?

@b0ne Sorry I'm really busy for months. I will handle this issue here https://github.com/titilambert/pyhydroquebec/issues/23

Is this still an issue you are experiencing? Can you please try upgrading to the latest version of Home Assistant (0.90) and report back if this is still a problem? Thanks!

@titilambert Your PR was closed as it needed to be updated to the latest versions. Feel free to open a new one and link to this issue. Closing for now.

Here is error:
data.keys() does own  'yesterday_hourly_consumption'  (output.py line 67)
Turn around by :  if show_hourly and 'yesterday_hourly_consumption' in data.keys():
But may be there is some thing wrong with json fetch data because in HydroQuebec Website, the daily consumption was there.


Missing span for TypeProperty

Closes #1231
These are internal errors and the user shouldn't try to decode them, but it's still worth passing a span to help us debug issues.
E.g. we now get this error for the test case in the issue:
error
  --> proj/src/main.sw:11:16
   |
 9 |
10 |   fn new() -> RawVec<T> {
11 |     let size = size_of::<T>();
   |                ^^^^^^^^^^^^^^ Internal compiler error: Generic type cannot be resolved in IR.
Please file an issue on the repository and include the code that triggered this error.
12 |     RawVec {
13 |       ptr: 0,
   |
____

There might be more of these spanless conversions which could be fixed, dunno.  It was mostly written before I'd added spans via metadata to IR.

I'll open an issue to track the rest of them :)


Links to other accounts don't fully update page

In short, the issue is that if you are on an account page and click a link to another account, the account  information pane does not fully update.
Steps to reproduce.

Visit any account, such as by clicking here
Find an "account debited" or "accounted credit" listing, such as here
Click the link for the account in the "Details" column.

Expected outcome: The page should update to all new information.
Actual outcome: The URL for the web browser updates, but the information shown in the browser does not actually update.
I've reproduced this on OSX on both Opera and Chrome browsers.

Fixed.


Update the AWS IoT integration documentation with recent changes

Summary
Update the AWS IoT integration documentation based on the recent changes in the v3.13.0 release related to skipping payload crypto.
Why do we need this ?
In the recent release v3.13.0, we restrict scheduling downlinks from the TTS Console when the End-to-End Encryption (in AWS Integration)/Skip Payload Crypto (in TTS) is enabled. In this case, the downlinks are expected to be scheduled from AWS only and not the TTSC Console. The users are unaware of the reason for this behavior.
What is already there? What do you see now?
Information on End-to-End Encryption stating only about the encryption and decryption of application payload is not done at TTS end when this option is enabled.
Ref: https://www.thethingsindustries.com/docs/integrations/aws-iot/default/architecture/#end-to-end-encryption
What is missing? What do you want to see?
When the End-to-End Encryption option in the AWS Integration is enabled, the Skip Payload Crypto option in TTS at the application level will be enabled. The users are unaware of this behavior and confused on why they couldn't schedule downlinks from TTS.
Also, specify that when End-to-End Encryption is enabled in the AWS IoT integration, the downlinks are not expected to be scheduled from the TTSC Console.
Ref: https://github.com/TheThingsIndustries/lorawan-stack-support/issues/437#issuecomment-848020927
How do you propose to document this?

...
Can you do this yourself and submit a Pull Request?
No.

@nejraselimovic the suggestion by @i3mSuperMan is accurate; it only needs a clarification under End-to-end encryption.


test freeflow across different browsers

Description
we need to test all the basics functions of the freeflow website across different browsers.
Methods need to be tested

Registration
Login/Logout
Set profile pic
Set cover pic
Write a post
Send/Receive messages
Add/Remove friends
Follow communities
Comment in a post
Like with emotions in a post
create events
calendars
create/edit custom pages
etc

Browsers

[x] Chrome
[x] Firefox
[ ] IE11
[ ] Edge
[ ] Safari
[ ] Opera

OS

[x] Linux
[ ] Windows
[ ] Mac

Hardware

[x] Laptop
[x] Android smartphone
[ ] Android Tablet
[ ] iPhone
[ ] iPad

am testing
1 - ( Firefox, Linux, Laptop)

testing
1- (Opera, Safari)

testing windows ( firefox, chrome, safari, opera, IE11 and Edge )

testing in mac ( firefox, chrome, safari, opera, IE11 and Edge )

issue with create event in calendar in android smartphone ( chrome,Firefox,opera,edge)
feature request: reply in a specific comment, search a word on all messages, change default page of ffp to be login page instead dashboard

Android Tablet ( Andriod version : 4.4.4 )
done with opera and chrome

opera ( 38.0.2254.134507 ) -- cannot login with both 3bot and iyo.
chrome ( 71.0.3578.89 ) -- cannot login with 3bot, but can login with iyo and all functions working fine.

Tested in
iPhone 6s, IOS 11.4, safari 11.0 --> done but calender issue exist
iPhone 7, IOS 12.2, safari 12.1 --> done but calender issue exist


Cannot add datagrid control

Describe the bug
I create new project, run in desktop can open window with message 'Welcome to Avalonia'
Want to add datagrid, but cannot do so

To Reproduce

from https://docs.avaloniaui.net/docs/reference/controls/datagrid/

dotnet add package Avalonia.Controls.DataGrid

get compile error

Update patch

become

Press F5, cannot run

Have not add datagrid control yet

Expected behavior
No response
Avalonia version
11.1.0-beta2
OS
Windows
Additional context
No response

You need to upgrade to 11.0.10 instead of 11.1beta

version was 11.0.2
after done step 2, has compile error
cannot find version 11.0.1
installed from https://marketplace.visualstudio.com/items?itemName=AvaloniaTeam.AvaloniaVS
nuget also no 11.0.1

11.0.10

link please?

can see welcome message from 11.0.2

from https://www.nuget.org/packages/Avalonia/11.0.10
dotnet add package Avalonia --version 11.0.10

compile no error, but F5

whole window only can see title bar

installed version 11.5 become 11.0.2

nuget version has nothing to do with extension. just open your csproj file and edit every version related to Avalonia to 11.0.10.

And using nuget packcage you can choose the version here

Please don't open bug reports for questions. Use discussions instead. Will convert this one later when I have time to.

When I say every, I mean every. Your desktop, android and browser project is still 11.0.2

Also the VS package manager is a real pain to use with a large dependency chain like Avalonia. It's easier to just manually upgrade everything by editing your project file.

@rabbitism do you see below error?

@thevortexcloud may i know how to edit project file

If you are using a project using the new SDK format (which you likely are if you have made a new project), you can double click the project in the solution explorer. If you are using the old format, you need to unload the project and then right click it, and press edit. Or you can just open it directly with an external text editor.

kindly please give me the step, isnt sample as below,

in .csproj file add all packagereference for below

that is

and so on

You may also need to trigger a restore. Try running dotnet restore in a terminal while inside your project directory. While you are there, also run dotnet new update to update your Avalonia templates. If it still does not work after all that, then you should be able to create a new solution using the latest templates.

cannot edit .csproj file

original .csproj is

You may also need to trigger a restore. Try running dotnet restore in a terminal while inside your project directory. While you are there, also run dotnet new update to update your Avalonia templates. If it still does not work after all that, then you should be able to create a new solution using the latest templates.

isnt using

developer console?

In case of android project, you will also need to change the TargetFramework to net7.0-android.

may i know how to change TargetFramework to net7.0-android.
target framework: 7.0, rebuild solution, error

target framework: 6.0, rebuild solution, error

I suggest reading the official .NET docs and watching/reading a few tutorials. Most of this has nothing directly to do with Avalonia.
https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview
https://learn.microsoft.com/en-us/dotnet/standard/frameworks
ANyway, you should not have android/iOS package references in a project that does not target the correct TFM.

You have mixed Desktop,  iOS and Android package.  Single project is experimetal feature.
You should use following comnand to create new Cross platform project from template
dotnet new avalonia.xplat  -n MyApp

or select Cross Platform Application template.
After creation. You have more project, each for plat (MyApp.Android.cspoj, ...).
The Cross plat xaml and code should put into MyApp.csproj
Add DataGrid package to MyApp.csproj
Rebuild the solution
Edit app.axaml and add DataGrid Style


Linker/optimiser performance in 0.6.6

Linker/optimiser is doing weird stuff and taking a looong time.
Here is a graph of CPU load x time:

Here is a stack trace when low:
stack2.txt
Here is a stack trace when high:
stack3.txt
You could probably reproduce this - I was working on scalajs-react and using this command:
~test/test-only -- japgolly.scalajs.react.experimental

Uh oh ... OptimizerCore.scala:205 was last touched by #2022. And somehow your threads stay so long in this map that you always capture snapshots there :-s
That PR stopped trying to do manual memory management of the states that tryOrRollback has to restore. The theoretical consequence was that it might have to keep more states than actually necessary, and then "in theory" spend more time doing useless work there. But I did not think it could be noticeable, in the sea of everything else the optimizer does :-s

Note-to-self: possible explanation: a method (or a lot of methods) in the codebase perform an undue amount of rollbacks. Rollbacks would, I think, keep growing the set of states in use. If things get as bad as I can imagine, the number of states would grow exponentially with the number of rollbacks. In that case, 10/15 rollbacks might already be enough to cause serious slowdowns.

@japgolly There's a possible fix in #2233. You could try to publishLocal the branch of that PR and use 0.6.7-SNAPSHOT in scalajs-react if this is currently a serious issue for you. (Avoid publishing a version of your library built with a Scala.js SNAPSHOT, though.)

Ok, I'll give it a try now.

Tested 0.6.6 and the PR twice:

65s → 17s
70s → 12s

You fixed it. :+1:

Lovely!


[Bug Report] Music stops after 1 or 2 times of playback in repeat mode

Bug Description
in console the error is com.sedmelluq.discord.lavaplayer.source.youtubeaudiotrack.processsstatic(youtubeaudiotrack.java:57)
com.sedmelluq.discord.lavaplayer.source.youtubeaudiotrack.processs(youtubeaudiotrack.java:49)
Steps to Reproduce
Try fixing it by adding loop mode usage in it
Expected Result
I was hearing it for some time in first time it occured after first music only then i used play command it joined vc then left instantly with that error. Second time it occured after 3 to 4 hours whiled i looped a single song
Debug Output
windows 10, jmusicbot 0.3.9
Additional Info
And Is repeat mode for repeating a song 24/7 or only play 2 times then leave
Checklist

[x] I have looked for information about this within the documentation
[X] I have searched for similar issues on the issues page
[X] I am running the latest version of the bot:

That's because occassionally JMusicBot 0.3.9 silently fails to play a track & silently removes it from the queue. We're tracking playback issues in #1537 at the moment, and hope to release 0.4.1 soon that resolves this.
I'll close this issue for now, as this very closely relates to #1537


Use Oxford Writing

I'd probably encourage the usage of the standard Oxford writing for the library name: https://en.oxforddictionaries.com/definition/authorizer
So instead of react-authorizor - I'd probably go for react-authorizer (Note the e). This prevents confusion for people trying to install the library.

This is already done, thanks for reporting though


How to distinguish kakfa/rabbit in ChannelInterceptor

Hello Gary @garyrussell ,
Describe the issue
How to distinguish rabbitmq or kafka in ChannelInterceptor interface afterSendCompletion method?
Please refer to the code below. Is it possible to distinguish mq type by Message<?>or MessageChannel's attributes?
@Component
@GlobalChannelInterceptor
public class MyMessageInterceptor implements ChannelInterceptor {

	@Override
	public void afterSendCompletion(
			Message<?> message, MessageChannel channel, boolean sent, @Nullable Exception ex) {

        }
}

Please use Stack Overflow for asking questions in the future.
You can look at message headers and determine if message came from kafka or rabbit.
You can also have access to binding properties


Create a terraform module for katib-ui charm

Context
According to the terraform modules organization spec, this is the first step to provide a terraform solution module. We need to create a terraform module for each charm.
What needs to get done
Create a terraform module for this charm that complies with the spec.
Definition of Done
Charm has a terraform module

Closed by #240 and #241


<EMAIL_ADDRESS>not published to npm

Hey, it looks like the inferno-create-element package of the dev branch hasn't been published to npm.
I've been testing the 1.0.0-alpha releases so it'd be great to have this package published as well. Thanks!

@rtsao well spotted, published both create-element and create-class


Clean up tournament runner code

#166 will create a tour runner that works, altho it might have bad code, be slow, or be hard to use. This is fine cuz deadlines...but for later it will be bad. Clean!!

Per our offline discussions, unsure what makes it hard to use if we implement the specs we decided on?

eg uninformative error messages, doscstrings/option names, uninformative http errors
mainly cuz im lazy


release ros-foxglove-bridge c++ ros1 node

Melodic and noetic release PRs are out

https://github.com/ros/rosdistro/pull/35383
https://github.com/ros/rosdistro/pull/35384


runJavaScript to core-kit?

When using the new syntax code() and recipe, it requires runJavaScript and invoke, both of which are in different kits.
Should they be in the same kit?
We don't notice it in things like breadboard-ui because we always include them, however on the CLI and any apps I build I now have to make sure I always include them.

Dupe of #177


Add cpu resource management

corresponding issue is #67

This change is

please check also https://github.com/Mirantis/virtlet/issues/67#issuecomment-251979381 it contains explanations and limititations

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

pkg/libvirttools/virtualization.go, line 43 at r1 (raw file):

const (
	defaultMemory = 1024
	defaultVcpu   = 1

Unused value left.

pkg/libvirttools/virtualization.go, line 266 at r1 (raw file):

	cpuShares := config.GetLinux().GetResources().GetCpuShares()
	cpuPeriod := config.GetLinux().GetResources().GetCpuPeriod()
	cpuQuota := config.GetLinux().GetResources().GetCpuQuota()

This 3 settings - their default values are probably 0 if they are not set in POD definition (like vcpus, like memory limit).
Are you sure that they do not require increasing this 0 to something more like in memory limit?

pkg/utils/machine_info.go, line 35 at r1 (raw file):

		return 0, err
	}
	re := regexp.MustCompile("processor( |\t)*: ")

"processor\s+: "

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions.

pkg/libvirttools/virtualization.go, line 43 at r1 (raw file):
Previously, jellonek (Piotr Skamruk) wrote…
> Unused value left.

Done.

pkg/libvirttools/virtualization.go, line 266 at r1 (raw file):
Previously, jellonek (Piotr Skamruk) wrote…
> This 3 settings - their default values are probably 0 if they are not set in POD definition (like vcpus, like memory limit).
> Are you sure that they do not require increasing this 0 to something more like in memory limit?

Only these 3 settings are used by k8s to handle resource usage. CpuShares value is never zero, if nothing is set, its default is 2. Two others are considered not set by libvirt if they are zero.
Also we can't let virtlet to change this, as then k8s will have invalid info regarding avaialble resources. The same is for memory, but as i see its handling is not fully implemeted now for kubeRuntimeManager, I will create separate issue to check how it should be handled.

pkg/utils/machine_info.go, line 35 at r1 (raw file):
Previously, jellonek (Piotr Skamruk) wrote…
> "processor\s+: "

Done.

Comments from Reviewable


expanding acronyms in content

Trello card
https://trello.com/c/8ejaz38U/3422-add-definitions-for-acronyms-so-expander-can-be-removed
Context
We're removing the acronym expander so we need to ensure that the content effectively explains any acronyms used.
Changes proposed in this pull request
Guidance to review

@ethax-ross not sure why this is failing - something to do with the welcome guide, I think? Could you take a look when you can thanks


DiazBaso's noteboook has been added

I have added a notebook in  /notebooks/03 with the chapter about "Enhancing SDO/HMI images using deep learning"

Thanks, Carlos! We really appreciate it 👍


:bug: Fix: Add vm to workspaces

Description
Concise description of proposed changes
Testing
Explain the quality checks that have been done on the code changes
Additional Information

[ ] I read the contributing docs (if this is your first contribution)

Your ENS/address:

Current dependencies on/for this PR:

main

PR #651   👈

This stack of pull requests is managed by Graphite.


[suggestion] Confidence interval for random baseline

For tasks where performance is close to random, it's hard to understand how significant the improvements are. Having confidence intervals for random baseline would help evaluating the progress for those tasks

Also we maybe should mark standard deviation for average human performance? Both can be shown as shaded region on plots

For multiple choice with different number of answers, poibin (https://github.com/tsakim/poibin) package can be used to evaluate cdf/p-values which can be used to produce 95% confidence intervals (or maybe 68% corresponding to 1 sigma is is it is often used in ML).


[Codegen] Emit tir::Let as var assignment explicitly

Prior to this PR, the PrimExpr tir::Let is treated as inlining during codegen, which makes any common subexpression elimination (CSE) efforts using tir::Let at TIR level effectless.
This PR updates codegen so that the tir::Let will have an explicit var assignment and thus can effectively reflect the CSE efforts.

@tvm-bot rerun

I'm a little bit late on the review, but I like the fix, thank you!  I double-checked codegen_llvm.cc, and it tracks tir::Let expressions by their llvm::Value*, and wouldn't be susceptible to the same issue.


Interaction and likes count per card is implemented.

Add like interaction
Display likes of the cards

Hi @sambeck87
Everything looks great! I don't think there is anything to add at the moment so you can merge!

Great job and Happy Codding!


Avoid seeking when reading Android timezone identifier 'file'

winpr_read_unix_timezone_identifier_from_file takes a file pointer to read a "file" by seeking to the end and allocating a buffer that fits. The only problem is that not all code paths return a file handle that you can seek, resulting in deadlocks on some Android devices. The Android timezone detection code on Android tries using JNI and fallbacks to calling popen("getprop persist.sys.timezone", "r"); to obtain a file pointer, but that file pointer cannot be seeked, leading to the issue. A long time ago I think the original code was doing a loop + realloc to read the buffer by chunks and it was changed to use seek calls, this pull request basically restores that old code to read by chunks and avoid seeking.

@freerdp-bot test

@freerdp-bot test

@freerdp-bot test


cli container dies after it tries to delete the drupal config file

cli container dies after scaffold files for Drupal. follow error kills the cli container -
Could not delete /app/web/sites/default/default.services.yml:
cli_1     | Deprecation Notice: Class EasyRdf_Parser_JsonLd located in ./vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/JsonLdImplementation.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201 cli_1     |   * Homepage: https://www.drupal.org/project/drupal cli_1     |   * Support: cli_1     |     * docs: https://www.drupal.org/docs/user_guide/en/index.html cli_1     |     * chat: https://www.drupal.org/node/314178 cli_1     | Scaffolding files for drupal/core: cli_1     |   - Copy [project-root]/.editorconfig from assets/scaffold/files/editorconfig cli_1     |   - Copy [project-root]/.gitattributes from assets/scaffold/files/gitattributes cli_1     |   - Copy [web-root]/.csslintrc from assets/scaffold/files/csslintrc cli_1     |   - Copy [web-root]/.eslintignore from assets/scaffold/files/eslintignore cli_1     |   - Copy [web-root]/.eslintrc.json from assets/scaffold/files/eslintrc.json cli_1     |   - Copy [web-root]/.ht.router.php from assets/scaffold/files/ht.router.php cli_1     |   - Copy [web-root]/.htaccess from assets/scaffold/files/htaccess cli_1     |   - Copy [web-root]/example.gitignore from assets/scaffold/files/example.gitignore cli_1     |   - Copy [web-root]/index.php from assets/scaffold/files/index.php cli_1     |   - Copy [web-root]/INSTALL.txt from assets/scaffold/files/drupal.INSTALL.txt cli_1     |   - Copy [web-root]/README.txt from assets/scaffold/files/drupal.README.txt cli_1     |   - Copy [web-root]/robots.txt from assets/scaffold/files/robots.txt cli_1     |   - Copy [web-root]/update.php from assets/scaffold/files/update.php cli_1     |   - Copy [web-root]/web.config from assets/scaffold/files/web.config cli_1     |   - Copy [web-root]/sites/README.txt from assets/scaffold/files/sites.README.txt cli_1     |   - Copy [web-root]/sites/development.services.yml from assets/scaffold/files/development.services.yml cli_1     |   - Copy [web-root]/sites/example.settings.local.php from assets/scaffold/files/example.settings.local.php cli_1     |   - Copy [web-root]/sites/example.sites.php from assets/scaffold/files/example.sites.php cli_1     | cli_1     | cli_1     |   [RuntimeException] cli_1     |   Could not delete /app/web/sites/default/default.services.yml: cli_1     | cli_1     | cli_1     | install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]... cli_1     | crossword_cli_1 exited with code 1

@ravindrasingh22 - What command did you execute? and do you have root permission on your machine?

I do have permission on my system but my user doesn't have permission. Please tell what has to be executed.

simple commands
after setup
vega up
it runs all the container well but cli gets crashed while copying the files

Copy [web-root]/sites/example.settings.local.php from assets/scaffold/files/example.settings.local.php
Copy [web-root]/sites/example.sites.php from assets/scaffold/files/example.sites.php

[RuntimeException]
Could not delete /app/web/sites/default/default.services.yml:

@ravindrasingh22 we Have identified the root cause of the issue.
As per the discussion on the drupal forum here and composer-scaffolding doc we have added file-mapping to the composer.json
https://github.com/srijanone/vega/blob/981341df6f964a9ff3e47e2619df12e1a969a80e/starterkits/drupal8-php-fpm-apache/composer.json#L39-L42


Incorrect links in 00-Home.md

The links to Design and Usage do not work properly and are throwing a 404-NotFound Error.

@Mec-iS please review #6

Fixed with #6


Avoid allocation in ObjectIdentifier::from_str

Hmm, this change has an effect on the semantics of the obtained field of ObjectIdentifierConversionError::TooLong. Instead of setting it to index + 1, which is not necessarily true (and always ends up being MAX_SUB_IDENTIFIER_COUNT + 1), I'd either get rid of it or run through the split the OID string twice -- once to get the number of sub-identifiers, once to parse them.
What's your take?

Sorry for the late response, I was distracted by other projects.
Yup, this looks good. Thanks for your contribution!


ZAP Scan Baseline Report

Site: http://localhost:8080
New Alerts

Content Security Policy (CSP) Header Not Set [10038] total: 11:

http://localhost:8080
http://localhost:8080/
http://localhost:8080/Account/ForgotPassword
http://localhost:8080/Account/Login
http://localhost:8080/Account/Login?ReturnUrl=%2Fauth
..

Missing Anti-clickjacking Header [10020] total: 13:

http://localhost:8080/
http://localhost:8080/Account/ForgotPassword
http://localhost:8080/Account/Login
http://localhost:8080/Account/Login?ReturnUrl=%2Fauth
http://localhost:8080/Account/Register
..

Permissions Policy Header Not Set [10063] total: 11:

http://localhost:8080
http://localhost:8080/
http://localhost:8080/Account/ForgotPassword
http://localhost:8080/Account/Login
http://localhost:8080/Account/Login?ReturnUrl=%2Fauth
..

X-Content-Type-Options Header Missing [10021] total: 11:

http://localhost:8080
http://localhost:8080/
http://localhost:8080/Account/ForgotPassword
http://localhost:8080/Account/Login
http://localhost:8080/Account/Login?ReturnUrl=%2Fauth
..

Authentication Request Identified [10111] total: 2:

http://localhost:8080/Account/Login
http://localhost:8080/Account/Login?ReturnUrl=%2Fauth

Information Disclosure - Suspicious Comments [10027] total: 1:

http://localhost:8080/_framework/blazor.web.js

Loosely Scoped Cookie [90033] total: 4:

http://localhost:8080
http://localhost:8080
http://localhost:8080/Account/Login
http://localhost:8080/Account/Login?ReturnUrl=%2Fauth

Modern Web Application [10109] total: 11:

http://localhost:8080
http://localhost:8080/
http://localhost:8080/Account/ForgotPassword
http://localhost:8080/Account/Login
http://localhost:8080/Account/Login?ReturnUrl=%2Fauth
..

Non-Storable Content [10049] total: 4:

http://localhost:8080
http://localhost:8080/
http://localhost:8080/Account/Register
http://localhost:8080/auth

Session Management Response Identified [10112] total: 2:

http://localhost:8080
http://localhost:8080

Storable and Cacheable Content [10049] total: 7:

http://localhost:8080/Account/Login
http://localhost:8080/Account/Login?ReturnUrl=%2Fauth
http://localhost:8080/app.css
http://localhost:8080/favicon.png
http://localhost:8080/robots.txt
..

User Controllable HTML Element Attribute (Potential XSS) [10031] total: 10:

http://localhost:8080/Account/Register?ReturnUrl=%2Fauth
http://localhost:8080/Account/Register
http://localhost:8080/Account/Register
http://localhost:8080/Account/Register
http://localhost:8080/Account/Register
..

View the following link to download the report.
RunnerID:11201557651

ZAP by Checkmarx

Site: http://localhost:8080
New Alerts

CSP: Wildcard Directive [10055] total: 5:

http://localhost:8080
http://localhost:8080/
http://localhost:8080/Account/Login
http://localhost:8080/Account/Login?ReturnUrl=%2Fauth
http://localhost:8080/Account/Register

CSP: style-src unsafe-inline [10055] total: 5:

http://localhost:8080
http://localhost:8080/
http://localhost:8080/Account/Login
http://localhost:8080/Account/Login?ReturnUrl=%2Fauth
http://localhost:8080/Account/Register

Resolved Alerts

Content Security Policy (CSP) Header Not Set [10038] total: 11:

View the following link to download the report.
RunnerID:11313021352

Site: http://localhost:8080
Resolved Alerts

Missing Anti-clickjacking Header [10020] total: 12:

View the following link to download the report.
RunnerID:11323661322

Site: http://localhost:8080
Resolved Alerts

CSP: Wildcard Directive [10055] total: 5:
CSP: style-src unsafe-inline [10055] total: 5:

View the following link to download the report.
RunnerID:11323923760

Site: http://localhost
New Alerts

Permissions Policy Header Not Set [10063] total: 1:

http://localhost:80

X-Content-Type-Options Header Missing [10021] total: 1:

http://localhost:80

Loosely Scoped Cookie [90033] total: 1:

http://localhost:80

Modern Web Application [10109] total: 1:

http://localhost:80

Non-Storable Content [10049] total: 2:

http://localhost:80
http://localhost:80

Session Management Response Identified [10112] total: 1:

http://localhost:80

View the following link to download the report.
RunnerID:12275150814


Planned charge does not start

Describe the bug
A planned charge does not start.
Steps to reproduce
In Solar mode, set a target limit higher that current charge, set departure time. Setting Smart Grid price limit has no effect. Running in docker on x86_64 Linux.
Configuration details
site:
  - title: My Home  # display name for UI
    residualPower: -700
    smartCostLimit: 0.40
    meters:
      grid: my_grid # grid meter reference
      pv: # (pvs = veraltet)
        - my_pv # first pv meter reference
interval: 30s
log: debug
loadpoints:
  - title: Carport # display name for UI
    charger: my_charger # charger reference
    vehicle: my_car # reference to standard vehicle
    mode: pv # charge mode (off, now, minpv, pv)
    soc:
      poll:
        mode: charging
        interval: 60m
      estimate: true
    phases: 1
chargers:
  - name: my_charger
    type: template
    template: abb

    # RS485 via adapter (Modbus RTU)
    modbus: rs485serial
    id: 2
    device: /dev/ttyACM0 # USB-RS485 Adapter Adresse
    baudrate: 38400 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
    comset: "8N1" # Kommunikationsparameter für den Adapter
meters:
  - name: my_grid
    type: template
    template: fronius-gen24
    usage: grid
    host: <IP_ADDRESS> # IP address or hostname
    #port: 502 # Port (optional)
  - name: my_pv
    type: template
    template: fronius-gen24
    usage: pv
    host: <IP_ADDRESS> # IP address or hostname
    #port: 502 # Port (optional)
vehicles:
  - name: my_car
    type: template
    template: bmw
    title: BMW i3 # Will be displayed in the user interface (optional)
    user: some@email # User account (e.g. email address, user id, etc.)
    password: "somePw" # Password of the user account (use single quotes in case of leading zeros)
    vin: xxxxx  # Required if you own multiple vehicles of the same brand (optional)
    capacity: 20 # Battery capacity in kWh (optional)
    phases: 1
tariffs:
  currency: DKK
  grid:
    type: energinet # Energinet using the price in DKK
    region: dk1 # or dk2
    charges: 0.02 # optional, additional charges per kWh
    tax: # optional, additional tax (0.1 for 10%)
  feedin:
    type: energinet # Energinet using the price in DKK
    region: dk1 # or dk2
    charges: -0.05 # optional, additional charges per kWh
    tax: # optional, additional tax (0.1 for 10%)
network:
  # schema is the HTTP schema
  # setting to `https` does not enable https, it only changes the way URLs are generated
  schema: http
  # host is the hostname or IP address
  # if the host name contains a `.local` suffix, the name will be announced on MDNS
  # docker: MDNS announcements don't work. host must be set to the docker host's name.
  host: evcc.xyx
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070
messaging:
  events:
    start:
      title: Charge of {{.vehicleTitle}} started
      msg: Charger ${title} started charging ${vehicleTitle} in ${mode} mode
    stop:
      title: Charge of {{.vehicleTitle}} finished
      msg: Charger ${title} finished charging ${vehicleTitle} with ${chargedEnergy:%.1fk}kWh in ${chargeDuration}
    connect:
      title: "{{.vehicleTitle}} connected on Charger {{.title}}"
      msg: ${vehicleTitle} connected on Charger ${title} at ${pvPower:%.1fk}kW PV
    disconnect:
      title: "{{.vehicleTitle}} disconnected of Charger {{.title}}"
      msg: ${vehicleTitle} disconnected of Charger ${title} after ${connectedDuration}
    guest:
      title: Guest vehicle detected
      msg: Guest vehicle detected
  services:
    - type: ntfy
      uri: https://ntfy.sh/kljdslfksd
      priority: default
      tags: electric_plug,blue_car
sponsortoken: xxxxx

Log details
[site  ] DEBUG 2023/11/03 09:56:06 ----
[lp-1  ] DEBUG 2023/11/03 09:56:06 charge power: 0W
[site  ] DEBUG 2023/11/03 09:56:06 pv power: 349W
[site  ] DEBUG 2023/11/03 09:56:06 grid power: 208W
[site  ] DEBUG 2023/11/03 09:56:06 grid currents: [1.68 0.939 -0.699]A
[site  ] DEBUG 2023/11/03 09:56:06 site power: -492W
[lp-1  ] DEBUG 2023/11/03 09:56:06 charge voltages: [232 231 231]V
[lp-1  ] DEBUG 2023/11/03 09:56:06 detected connected phases: 3p
[lp-1  ] DEBUG 2023/11/03 09:56:06 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/11/03 09:56:06 charger status: B
[lp-1  ] DEBUG 2023/11/03 09:56:06 plan: charge 0s (required: 1h16m5s) starting at 0001-01-01 00:53:28 +0053 LMT until 2023-11-03 10:00:00 +0100 CET (power: 3680W, avg cost: NaN)
[lp-1  ] DEBUG 2023/11/03 09:56:06 pv charge current: 2.14A = 0A + 2.14A (-492W @ 1p)
[site  ] DEBUG 2023/11/03 09:56:36 ----
[lp-1  ] DEBUG 2023/11/03 09:56:36 charge power: 0W
[site  ] DEBUG 2023/11/03 09:56:36 pv power: 341W
[site  ] DEBUG 2023/11/03 09:56:36 grid power: 220W
[site  ] DEBUG 2023/11/03 09:56:36 grid currents: [1.69 0.939 -0.693]A
[site  ] DEBUG 2023/11/03 09:56:36 site power: -480W
[lp-1  ] DEBUG 2023/11/03 09:56:36 charge voltages: [232 232 231]V
[lp-1  ] DEBUG 2023/11/03 09:56:36 detected connected phases: 3p
[lp-1  ] DEBUG 2023/11/03 09:56:36 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/11/03 09:56:36 charger status: B
[lp-1  ] DEBUG 2023/11/03 09:56:36 plan: charge 0s (required: 1h16m5s) starting at 0001-01-01 00:53:28 +0053 LMT until 2023-11-03 10:00:00 +0100 CET (power: 3680W, avg cost: NaN)
[lp-1  ] DEBUG 2023/11/03 09:56:36 pv charge current: 2.08A = 0A + 2.08A (-480W @ 1p)
[site  ] DEBUG 2023/11/03 09:57:06 ----
[lp-1  ] DEBUG 2023/11/03 09:57:06 charge power: 0W
[site  ] DEBUG 2023/11/03 09:57:06 pv power: 334W
[site  ] DEBUG 2023/11/03 09:57:06 grid power: 246W
[site  ] DEBUG 2023/11/03 09:57:06 grid currents: [1.74 0.978 -0.687]A
[site  ] DEBUG 2023/11/03 09:57:06 site power: -454W
[lp-1  ] DEBUG 2023/11/03 09:57:06 charge voltages: [232 232 231]V
[lp-1  ] DEBUG 2023/11/03 09:57:06 detected connected phases: 3p
[lp-1  ] DEBUG 2023/11/03 09:57:06 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/11/03 09:57:06 charger status: B
[lp-1  ] DEBUG 2023/11/03 09:57:06 plan: charge 0s (required: 1h16m5s) starting at 0001-01-01 00:53:28 +0053 LMT until 2023-11-03 10:00:00 +0100 CET (power: 3680W, avg cost: NaN)
[lp-1  ] DEBUG 2023/11/03 09:57:06 pv charge current: 1.98A = 0A + 1.98A (-454W @ 1p)
[site  ] DEBUG 2023/11/03 09:57:36 ----
[lp-1  ] DEBUG 2023/11/03 09:57:36 charge power: 0W
[site  ] DEBUG 2023/11/03 09:57:36 pv power: 340W
[site  ] DEBUG 2023/11/03 09:57:36 grid power: 252W
[site  ] DEBUG 2023/11/03 09:57:36 grid currents: [1.69 1 -0.721]A
[site  ] DEBUG 2023/11/03 09:57:36 site power: -448W
[lp-1  ] DEBUG 2023/11/03 09:57:36 charge voltages: [233 232 232]V
[lp-1  ] DEBUG 2023/11/03 09:57:36 detected connected phases: 3p
[lp-1  ] DEBUG 2023/11/03 09:57:36 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/11/03 09:57:36 charger status: B
[lp-1  ] DEBUG 2023/11/03 09:57:36 plan: charge 0s (required: 1h16m5s) starting at 0001-01-01 00:53:28 +0053 LMT until 2023-11-03 10:00:00 +0100 CET (power: 3680W, avg cost: NaN)
[lp-1  ] DEBUG 2023/11/03 09:57:36 pv charge current: 1.95A = 0A + 1.95A (-448W @ 1p)
[site  ] DEBUG 2023/11/03 09:58:06 ----
[lp-1  ] DEBUG 2023/11/03 09:58:06 charge power: 0W
[site  ] DEBUG 2023/11/03 09:58:06 pv power: 353W
[site  ] DEBUG 2023/11/03 09:58:06 grid power: 288W
[site  ] DEBUG 2023/11/03 09:58:06 grid currents: [1.72 1.12 -0.722]A
[site  ] DEBUG 2023/11/03 09:58:06 site power: -412W
[lp-1  ] DEBUG 2023/11/03 09:58:06 charge voltages: [233 232 232]V
[lp-1  ] DEBUG 2023/11/03 09:58:06 detected connected phases: 3p
[lp-1  ] DEBUG 2023/11/03 09:58:06 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/11/03 09:58:06 charger status: B
[lp-1  ] DEBUG 2023/11/03 09:58:06 plan: charge 0s (required: 1h16m5s) starting at 0001-01-01 00:53:28 +0053 LMT until 2023-11-03 10:00:00 +0100 CET (power: 3680W, avg cost: NaN)
[lp-1  ] DEBUG 2023/11/03 09:58:06 pv charge current: 1.79A = 0A + 1.79A (-412W @ 1p)
[site  ] DEBUG 2023/11/03 09:58:36 ----
[lp-1  ] DEBUG 2023/11/03 09:58:36 charge power: 0W
[site  ] DEBUG 2023/11/03 09:58:36 pv power: 359W
[site  ] DEBUG 2023/11/03 09:58:36 grid power: 175W
[site  ] DEBUG 2023/11/03 09:58:36 grid currents: [1.66 0.938 -0.694]A
[site  ] DEBUG 2023/11/03 09:58:36 site power: -525W
[lp-1  ] DEBUG 2023/11/03 09:58:36 charge voltages: [233 232 232]V
[lp-1  ] DEBUG 2023/11/03 09:58:36 detected connected phases: 3p
[lp-1  ] DEBUG 2023/11/03 09:58:36 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/11/03 09:58:36 charger status: B
[lp-1  ] DEBUG 2023/11/03 09:58:36 plan: charge 0s (required: 1h16m5s) starting at 0001-01-01 00:53:28 +0053 LMT until 2023-11-03 10:00:00 +0100 CET (power: 3680W, avg cost: NaN)
[lp-1  ] DEBUG 2023/11/03 09:58:36 pv charge current: 2.28A = 0A + 2.28A (-525W @ 1p)
[site  ] DEBUG 2023/11/03 09:59:06 ----
[lp-1  ] DEBUG 2023/11/03 09:59:06 charge power: 0W
[site  ] DEBUG 2023/11/03 09:59:06 pv power: 365W
[site  ] DEBUG 2023/11/03 09:59:06 grid power: 229W
[site  ] DEBUG 2023/11/03 09:59:06 grid currents: [1.71 1.03 -0.681]A
[site  ] DEBUG 2023/11/03 09:59:06 site power: -471W
[lp-1  ] DEBUG 2023/11/03 09:59:06 charge voltages: [233 232 232]V
[lp-1  ] DEBUG 2023/11/03 09:59:06 detected connected phases: 3p
[lp-1  ] DEBUG 2023/11/03 09:59:06 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/11/03 09:59:06 charger status: B
[lp-1  ] DEBUG 2023/11/03 09:59:06 plan: charge 0s (required: 1h16m5s) starting at 0001-01-01 00:53:28 +0053 LMT until 2023-11-03 10:00:00 +0100 CET (power: 3680W, avg cost: NaN)
[lp-1  ] DEBUG 2023/11/03 09:59:06 pv charge current: 2.05A = 0A + 2.05A (-471W @ 1p)

What type of operating system are you running?
Docker container
Version
0.121.5

Please share the full log. There is something odd with the timestamps:

plan: charge 0s (required: 1h16m5s) starting at 0001-01-01 00:53:28 +0053 LMT until 2023-11-03 10:00:00 +0100 CET (power: 3680W, avg cost: NaN)

Here is the full log
evcc.log

Im Log wird leider nicht klar, wo die komische Startzeit her kommt. Es scheint, als hätte der Planner einen Plan ohne Inhalt gemacht- da würde auch zu den NaN Kosten passen. Warum das passiert ist leider absolut nicht erkennbar. Falls Du das Szenario reproduzieren kannst würde ich mich über Beschreibung freuen. As-is gibts leider nix was wir tun könnten :/

@andig I have not been able to not reproduce this. How do I debug this to actually make it work? I have tried to mount /etc/localtime from the docker host, also mounting /usr/share/zoneinfo/Europe/Berlin  to match the TZ env. It does not change anything.

It does not change anything.

Change what?

How do I debug this to actually make it work?

Now you got me confused. To make what work? Are you saying Planner never works for you? That would be enough of a reproducer! In that case- please add steps to reproduce.

Planner never worked for me. The steps to reproduce:

Run above config in docker.
Set Smart Grid Charging price so low that it is not charging due to cheap prices.
Set a planned time to reach target charging state.
Now it logs what is seen above.

@andig I just tried to run 0.122.0 directly on the host OS (so not in Docker) and it has the same issue with Planner not working. It is also logging the weird LMT timezone.

Mhhm. I cant repro. Are you able to see that in the demo instance or using the demo.yaml config? I need something to attach the debugger to…

@andig demo.yaml does not reproduce the issue. That logs just fine charge plans.
[lp-1  ] DEBUG 2023/11/05 20:07:07 plan: charge 2h52m52s (required: 3h36m49s) starting at 2023-11-05 20:07:08 +0100 CET until 2023-11-05 23:00:00 +0100 CET (power: 3680W, avg cost: 206.976)

@andig  Using demo.yaml with tariffs from my config above triggers the issue.
[lp-1  ] DEBUG 2023/11/05 20:21:39 plan: charge 0s (required: 3h41m36s) starting at 0001-01-01 00:53:28 +0053 LMT until 2023-11-05 23:00:00 +0100 CET (power: 3680W, avg cost: NaN)

Please provide exact steps. Which loadpoint, vehicle, limit etc. Still cant repro.

Using evcc.yaml and no evcc.db file I did these steps:
Set a charge plan for 'blauer e-Golf' to a few hours from now. Immediately it logs
[lp-1  ] DEBUG 2023/11/05 21:29:20 plan: charge 0s (required: 3h39m12s) starting at 0001-01-01 00:53:28 +0053 LMT until 2023-11-05 23:00:00 +0100 CET (power: 3680W, avg cost: NaN)

Could you please try 0.122.0? It has some additional logging I think. Doing as you describe (and deleting evcc.db) I get:
go run main.go -c cmd/demo.yaml

[main  ] INFO 2023/11/06 20:17:53 using config file: cmd/demo.yaml
...
[lp-1  ] DEBUG 2023/11/06 20:18:12 set target time: 2023-11-06 23:00:00 +0100 CET
...
[lp-1  ] DEBUG 2023/11/06 20:18:18 plan: charge 2h41m42s (required: 3h38m24s) starting at 2023-11-06 20:18:18 +0100 CET until 2023-11-06 23:00:00 +0100 CET (power: 3680W, avg cost: 172.000)

Are you able to repro with the demo.yaml? Unfortunately I can't use your yaml sind the devices are different :(

With the orignal demo.yaml i do not reproduce the issue.
With https://github.com/evcc-io/evcc/files/13260725/evcc.yaml.txt I do reproduce the issue - it is demo.yaml with energinet tariffs

Great find, thank you! It turns out, that Energinet violates a core (and sane) assumption of the planner
// rates are by default sorted by date, oldest to newest
last := rates[len(rates)-1].End

since it's API returns time slots in reverse order (why would anybody do this?). PR ensures all tariffs are sorted in ascending order now, just to be safe.

I have rebuilt the Docker image, it looks good - now I hope my car is charged tomorrow :-)


Route table not setup properly for PTP CNI plugin

For full details
https://github.com/containers/virtcontainers/issues/500

@amshinde the best option would be to delete the conflicting route and add the new one if we see conflict.

@mcastelino Agree, that seems like the best option to handle this.

@amshinde for now :) Later we need to implement a wipe and update.


feat: cluster bearer token hide from dashboard

Description
Cluster bearer token should not visible in UI, eliminate from the fetch apis and handle in update api.
Fixes #https://dev.azure.com/DevtronLabs/Devtron/_workitems/edit/1813
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

[ ] The title of the PR states what changed and the related issues number (used for the release note).
[ ] Does this PR requires documentation updates?
[ ] I've updated documentation as required by this PR.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have tested it for all user roles.
[ ] I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?

Github Issue : https://github.com/devtron-labs/devtron/issues/2509 , one of the item from github issue is fixed in this release.


ERROR: [facebook]

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I'm running yt-dlp version 2023.10.13 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
Colombia
Provide a description that is worded well enough to be understood
ERROR: [facebook]<PHONE_NUMBER>17364: Unable to download webpage: HTTP Error 302: Found (redirect loop detected) (caused by <HTTPError 302: Found>);
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
ERROR: [facebook]<PHONE_NUMBER>17364: Unable to download webpage: HTTP Error 302: Found (redirect loop detected) (caused by <HTTPError 302: Found>);

Please stick to the instructions. You input so far is not usable for reproducing your issue.

Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

looks like a duplicate of #8319

can i ask how to scrape fb posts like in youtube command?
yt-dlp --print-to-file "%(title)s|%(upload_date)s|%(duration_string)s|%(view_count)s|%(comment_count)s|%(availability)s|%(channel)s|%(webpage_url)s|" "list.txt" "https://www.youtube.com/@IndiaNewsITV/videos"  --playlist-reverse --simulate


iframe embed (for the sake of scholar articles)

@caseyedavis12

Is this for internal, on-site usage only, or should it be usable outside as well? (Default rails security prevents it from being used outside, but that can be overridden.)
Is it just the media, or do you want a scrolling transcript as well?

@mccalluc: For launch, this is for internal on-site usage only. Just the media.


the instances varialbe not set correctly from _instances in role web/config_reverseproxy_redis/tasks/main.yml

Hello,
When I configure Redis with role web/config_reverseproxy_redis, I noticed following task is not executed because passed in instance variable is not the content from _instances although _instances itself is correct:

name: Enable/disable Redis enabled distributed session
vars:
instances: "{{ _instances }}"
include_role:
name: web/configure_reverseproxy_instances
when:

_instances is defined

This is because instances variable is already used in previous tasks and it is not updated in the above task due to variable scope issue I think.
Can you review and validate to ensure both web/config_reverseproxy_redis and web/configure_reverseproxy_instances works correctly together?
Thanks, could you please have fix to be available asap?

I'll take a look.  Thanks for opening an issue


Manual flip fails in Chrome : $(...).flip is not a function

Issue can be reproduced on the plugin website.

Go the manual flip image
Click on the "Click to flip" button

=> Image won't flip
=> Console shows Uncaught TypeError: $(...).flip is not a function
I'm running Version 48.0.2564.97 (64-bit) on Linux Ubuntu 14.04

For some reason, it was not occuring in incognito mode. So i've created my chrome user profile from scratch, and issue disappeard ...


Improved: app to upgrade ionic to 7.5.8(#244)

Upgraded Ionic to 7.6.0
Updated the usage of some components as per the changes required
Changed the label for select options inside Product Identifier card, as after ionic upgrade the labels are getting truncated, and also the labels are having redundant keywords.


Prevent the zoom from being reset at each page change?

We use OSG with Mirador.
I do not know if the question really concerns OSD.
In Mirador, and for an image collection, we added a small feature to keep and block the zoom ratio from one image to another (in the example, the padlock at the top right).
http://ad53-recette.pleade.com/ark:/37963/r275zzjlsj8kbk/f1
When you change pages, the zoom ratio starts by re-initializing to the default value (home) and then the zoom ratio is applied.
This causes a zoom in effect at each page change (this is more visible when pages are already cached).
Is there a way to prevent the zoom from being reset at each page change?
Thank you !

How is Mirador moving from image to image? If it's using sequence mode or something similar, you could create the viewer with preserveViewport: true.


Return impl AsyncBufRead from into_async_read

Motivation and Context
The tokio StreamReader implements AsyncBufRead, but we're returning AsyncRead currently. If a user needs an AsyncBufRead, then they've to wrap the returned value in tokio BufReader for no reason. Since ByteStream doesn't implement Stream anymore, one has to either wrap the returned value unnecessarily or write a wrapper similar to this function.
See https://github.com/smithy-lang/smithy-rs/pull/2983#discussion_r1380822997.
Description
Simply changed the return type to say impl AsyncBufRead. Since AsyncBufRead is a super-set of AsyncRead, this is not a breaking change.
Testing
The code example tests it.
Checklist

[x] I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

It looks like the changes to the example aren't compiling:
 error[E0599]: no method named `lines` found for opaque type `impl tokio::io::async_buf_read::AsyncBufRead` in the current scope
   --> src\byte_stream.rs:434:50
    |
7   | let mut lines =  my_bytestream.into_async_read().lines();
    |                                                  ^^^^^ method not found in `impl AsyncBufRead`
    |
   ::: C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.33.0\src\io\util\async_buf_read_ext.rs:342:12
    |
342 |         fn lines(self) -> Lines<Self>
    |            ----- the method is available for `impl tokio::io::async_buf_read::AsyncBufRead` here
    |
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
2   + use tokio::io::util::async_buf_read_ext::AsyncBufReadExt;
    |

error: aborting due to previous error

fixed external types, CI should pass now I think


No language features for .graphql files since v0.5.0 (only colorization)

I've been trying to make the latest versions of this extension to work but it seems like completion (and most other language features) broke since v0.5.0. Note that everything works fine in v0.4.15.
The project I'm currently working on is here, in case you want to check out my setup. But as a summary, my graphql.config.json file looks like this:
{
    "schema": "./graphql-server/introspection.json",
    "documents": "./graphql-server/**/*.graphql"
}

And I'm using codegen with the following configuration:
schema: './graphql-server/schema.ts'
documents: './graphql-server/**/*.graphql'
generates:
  ./graphql-server/introspection.json:
    plugins:
      - introspection
    config:
      minify: true
  ./graphql-server/sdk.ts:
    plugins:
      - add:
          content: '// @ts-nocheck Ignore this file, it is just codegen output'
      - typescript
      - typescript-operations
      - typescript-graphql-request
      - plugin-typescript-swr
    config:
      skipTypename: true
  ./graphql-server/resolvers-types.ts:
    plugins:
      - add:
          content: '// @ts-nocheck Ignore this file, it is just codegen output'
      - typescript
      - typescript-resolvers

The logs only show the following:
8/14/2022, 2:55:11 PM [3] (pid: 7005) graphql-language-service-usage-logs: {"type":"usage","messageType":"initialize"}

I should also mention that the only way I've been able to make this extension work is by using the result of a schema introspection in my graphql.config.json (I explained this approach here).

No highlighting even?! I’m sorry! I hope to test these cases over the next week and have some answers for you soon

No highlighting even?! I’m sorry! I hope to test these cases next weekend and get back to you soon

No need to be sorry! Thanks for the quick reply ❤
Let me know if there's any more information you would like me to provide to ease your investigation!

@acao Any updates on this? I can try taking a look :)
Are there any special steps I should follow if I only want to work with the VS Code extension part of this repo?

@MariaSolOs very sorry, trying to get to it, some things came up and I haven’t been able to do as much oss as I’ve liked.
the issue is somewhere in graphql-language-service-server. It could be in parseDocument, perhaps some logic was changed and disabled handling graphql files directly? You can clone the repo, run yarn and yarn build —watch while editing the server, and then keep restarting vscode graphql debugger on each server change. I should have these instructions in DEVELOPMENT.md but not sure if i do. PRs are welcome if you have luck!

No worries @acao! I can try taking a look ;)

Okay so I tried debugging the extension but my breakpoints won't bind anything outside the vscode-graphql package, which makes it hard to understand what's going on in the server :/

@MariaSolOs now that I'm actually looking more closely - the unit tests for the language server only include configs like these:
testMultipleIncludes:
    schema: __schema__/StarWarsSchema.graphql
    documents:
      - __queries__/*.graphql
      - __fragments__/*.graphql

is it that only queries and fragments but no SDL .graphql files are working? or are all types of .graphql files not working?
perhaps you can expand on this test config file in the language server tests, and add a test to MessageProcessor-test.ts to test projects with something that reflects your case

Okay so I tried debugging the extension but my breakpoints won't bind anything outside the vscode-graphql package

my bad, i forgot to mention that the debugger for the vscode graphql start only attaches to the client main process for vscode, and not the language server process. we are just missing I think a seperate debugger we can run alongside the vscode graphql debugger, on an alternative port, I'm sure it's in the vscode extension docs somewhere.
unfortunately, the best way we currently have to debug output when testing the language server with vscode or other clients is with the LSP output channel, in vscode or whichever client. in MessageProcessor it is this._logger, by default only this._logger.error() and this._logger.info() is displayed I think :/.
another option is to execute the graphql-language-service-cli directly for completion output. just noticing how vauge the readme is but I think you could even do this:
packages/graphql-language-service-cli/bin/graphql.js autocomplete -c graphql.config.js path/to/file.graphql

but i wouldn't know to pass --inspect there, perhaps you have to replace the #!/usr/bin/env node with #!/usr/bin/env node --inspect ?

@acao The current version of the extension is not working for me on all .grapqhl files + TypeScript files using gql (which is how my schema is defined).
I will try expanding the tests to reflect the setup that I have.
As for debugging the server, it seems like the server already has a debug configuration that should allow me to use the Chrome Dev Tools for debugging the process running the server. I'll check that.
That being said, I agree that it would make it easier for contributors if there was a debugging VS Code setup for the server package :)

@MariaSolOs oh that’s how to enable that yes, with the debug extension setting

Okay so I have an update: After debugging for a bit today I discovered that the problem is not parseDocument but in getTokenAtPosition. The returned token is not correct, resulting in whack completions that don't apply to the cursor's position.
As an example, I was comparing the behaviour in v0.4.15 versus the current one with the following mutation:
mutation createSnippet(
    $name: String!,
    $description: String!
) {
    createSnippet(
        name: $name,
        description: $description
    ) {
        id
        | <- cursor triggering completions
    }
}

In v0.4.15, the kind of this token would be Field, but now it is Document.

I've also identified #2557 to be the breaking PR.

Thank you @MariaSolOs ! This makes a lot of sense!
hopefully i can take a closer look after work today

@MariaSolOs i have a PR to get rid of the completion insert text anyways, it doesn’t factor in required arguments so it’s not very useful

also for the record, I know this bug exists, because there are duplicates of this issue I will need to find in this repo for when we finally close this. It's just a matter of the mountain of priorities and PRs already lined up for the LSP, but it would be annoying to ship all of that and still this regression. hopefully I'm very productive this weekend! haha

No worries at all @acao! I'm glad I was able to help and I completely understand that there are other problems with higher priorities that need to be addressed first.

@MariaSolOs i have a PR to get rid of the completion insert text anyways, it doesn’t factor in required arguments so it’s not very useful
So are completions going to be removed entirely? That's kind of sad because I do find them extremely helpful (when they do take into account the schema and the context of the completion of course).

@MariaSolOs another clue, i suspect maybe logic I introduced with cacheProjectFiles() in messageprocessor could have caused some issues here

@MariaSolOs another clue, i suspect maybe logic I introduced with cacheProjectFiles() in messageprocessor could have caused some issues here

So I'm not sure if it is a caching issue per se, but I think I have a fix :) #2720

@MariaSolOs thank you so much for the extensive effort you put into finding this fix! 0.7.5 should be the fix version for this in vscode-graphql


Badges for Twitch

A few badges saying "Check out the Twitch Channel" or similar. Thanks.

Will add tomorrow.


Refactoring mesa.space

Can't wait for this feature. This is the only blocker to me implementing mesa-frames version of Sugarscape constant growback. It boils down to implementing the move within the space: https://github.com/projectmesa/mesa-examples/blob/668eb974ffdaaf2d20ca9a5fd7ba828f1b043426/examples/sugarscape_cg/sugarscape_cg/agents.py#L40-L61. Only eat and die part of the step can be DF-vectorized as of now.

Can't wait for this feature. This is the only blocker to me implementing mesa-frames version of Sugarscape constant growback. It boils down to implementing the move within the space: https://github.com/projectmesa/mesa-examples/blob/668eb974ffdaaf2d20ca9a5fd7ba828f1b043426/examples/sugarscape_cg/sugarscape_cg/agents.py#L40-L61. Only eat and die part of the step can be DF-vectorized as of now.

Let me ensure I understood correctly the issue. The available spaces are the neighborhood spaces which are not occupied. The problem is that in the traditional Sugarscape model, since the step is sequential for agents, there is a race condition. If parallelized, we could have two agents that select the same space at the same time.
What if we were to run an iteration across all agents, select randomly one of the agents which have a duplicate neighborhood, and then run the choice algorithm again on the agents with duplicates that are not selected? This approach is not as efficient as parallelizing everything at once, but it shouldn't require many iterations to resolve conflicts.

Yeah, that (update the position in parallel, then do tie-breaking) is the method used in the FLAME 2 implementation of Sugarscape instantaneous growback (i.e. simpler version of constant growback, where the sugar grows to max value in the next step right after being consumed; constant growback has a growing rate), in figure 6. Here is their code.

I see, that's very interesting that it's so recent! Do you think tie-breaking should be left to the user or handled by the library? Depending on the model, it can be either very simple or very complex to handle tie-breaking, similar to the challenge of vectorizing user-defined functions. Perhaps it would be better to include a section in the documentation on how to deal with race conditions?

I think the basic version move_to_empty and move_to_empty_neighborhood should be handled by the library. They can be a starting point for users who want to implement more complex move logic. The former is used by the Schelling model. But the Boltzmann wealth model and Wolf sheep simply use moving to anywhere within the neighborhood.

@rht Do you think it would be better to convert DataFrames to GeoDataFrames with the respective geo-library if space is added to the model or simply adding a position/geometry column?
I think the first way would be much more powerful for the end-user but geopolars is currently 0.1.0-alpha4 and breaking changes are expected. Nevertheless, I would still go for the geolibraries.

Which one is faster to implement? I have no strong opinion on either, as long as there could be a common API -- unlikely? Because Mesa-Geo and Mesa's current space.py have different API. If designing a common API is too much at this stage, my only requirement is that it shouldn't be too much boilerplate code for user who starts learning by doing Schelling or Boltzmann wealth model.
Note that in core Mesa, we are moving away from the old space.py implementation to a new cell-based implementation, https://github.com/projectmesa/mesa/tree/main/mesa/experimental/cell_space, that is conceptually simpler (see e.g. the get neighborhood method, https://github.com/projectmesa/mesa/blob/2cee49efeac07ea44342b918b2db6fb170649793/mesa/experimental/cell_space/cell.py#L132) but also sufficiently performant (the PR itself).
But the structure in core Mesa that is closer to Mesa-Geo is the new experimental PropertyLayer (the PR for more context and examples).

Thank you for the references; they are very useful. So you're moving to a cell-based space to achieve better granularity of the environment (i.e., by setting properties of each single cell with the PropertyLayer) and to create an easier abstraction for interacting with and creating different types of spaces more easily.
To create a unique API that aligns with the future of mesa and works for mesa-geo objects, we can create the cell collection in a GeoPandas DataFrame (GeoPolars could also be implemented in the future). GeoPandas allows the geometry column to be a series of shapely objects, representing the geometry of the cell itself (e.g., a box for a rectangular grid, a complex polygon for continuous spaces). The coordinate reference system (CRS) can also be set, aligning it with mesa-geo. The other columns of the DataFrame would contain the properties for each cell (e.g., maximum number of agents or other custom properties in the PropertyLayer).
I am unsure why there are so many classes with similar functionality but different implementations and interfaces in mesa. This complexity can make it difficult for end-users to understand and use multiple classes with custom behaviors, and it can also be challenging for developers to comprehend the layers of abstraction.
I propose creating a single unique (abstract?) class that stores cells in a GeoDataFrame, with other columns representing the "properties" of the PropertyLayer. This class would combine the functionalities of PropertyLayer/_PropertyGrid, CellCollection, DiscreteSpace, SingleGrid, and MultiGrid. From this abstract class, we could create child classes for each type of space (e.g., network, rectangular grid, etc.).
Additionally, I would movethe move_to method of CellAgent to the AgentContainer.

I am unsure why there are so many classes with similar functionality but different implementations and interfaces in mesa. This complexity can make it difficult for end-users to understand and use multiple classes with custom behaviors, and it can also be challenging for developers to comprehend the layers of abstraction.

Yes I agree, sorry for the mess (old space, property layer, cell space, and the implementations). Mesa was in a flux of development last year, and there is not enough explicit communication to the public on which one is recommended for the current best practice, which one should be used for integration, and so on. Docs, tutorials, and how-to's are lacking.
For clarity, in the cell_space folder, the concrete classes of grid.py and network.py should be in their own folder.
There is also a problem that the cell_space version of Mesa-Geo doesn't exist yet.

I propose creating a single unique (abstract?) class that stores cells in a GeoDataFrame, with other columns representing the "properties" of the PropertyLayer. This class would combine the functionalities of PropertyLayer/_PropertyGrid, CellCollection, DiscreteSpace, SingleGrid, and MultiGrid. From this abstract class, we could create child classes for each type of space (e.g., network, rectangular grid, etc.).

Yes, that would make sense for mesa-frames. In Mesa, the PropertyLayer is separate from grid/space because it is implemented as a np.ndarray, and operation on it would be a vectorized operation, which regular old space/cell space doesn't support.
Optional question: for the GeoDataFrame, how does it work for a sparse agents situation (e.g. 10 agents, in a grid of 100x100)? Wouldn't it be 10k rows of mostly empty agent content, but yet each must have a property? This is optional because I think we can still design a common abstract interface while postponing a more specific implementation.

Additionally, I would move the move_to method of CellAgent to the AgentContainer.

SGTM. The move_to was inspired by NetLogo natural-language-like syntax, so you could say agent.move_to(x) like a sentence would. It currently lives in CellAgent not for a deliberate reason of moving in only the discrete spaces and nothing else; it could have been in mesa.Agent as well, and implemented for GeoAgent.

Yes I agree, sorry for the mess (old space, property layer, cell space, and the implementations). Mesa was in a flux of development last year, and there is not enough explicit communication to the public on which one is recommended for the current best practice, which one should be used for integration, and so on. Docs, tutorials, and how-to's are lacking.
For clarity, in the cell_space folder, the concrete classes of grid.py and network.py should be in their own folder.

I think it's normal; mesa is evolving a lot, and keeping up with documentation is hard. However, I think it should be a priority for mesa 3.0. As a user familiar with mesa, I struggle to understand which classes to use, what has been deprecated or how things work without looking at the source code. I can also help to improve docs at the end of the GSOC period if we have time.

Optional question: for the GeoDataFrame, how does it work for a sparse agents situation (e.g. 10 agents, in a grid of 100x100)? Wouldn't it be 10k rows of mostly empty agent content, but yet each must have a property? This is optional because I think we can still design a common abstract interface while postponing a more specific implementation.

That is a very good point. I think there's a tradeoff here. Either we have very granular cells (i.e., each cell can have its own property) with a large memory usage for sparse models, or we have less granularity (each cell in the set has the same property) with more efficient memory usage (we could store geometries at the agent level and store property attributes for cells at the cell class level). What do you think works better?

I think it's normal; mesa is evolving a lot, and keeping up with documentation is hard.

Yeah, it's a good problem to have (revamping the API). The old API is getting clunky to use.

I can also help to improve docs at the end of the GSOC period if we have time.

Don't worry about this for now. Focus on making mesa-frames more awesome, as there are lots of things to do, mainly the classic models, for Sampy use case, and using GPU to scale to millions of agents and huge space. Also, I'm still reading on hypothesis and deal.

Either we have very granular cells (i.e., each cell can have its own property) with a large memory usage for sparse models, or we have less granularity (each cell in the set has the same property) with more efficient memory usage (we could store geometries at the agent level and store property attributes for cells at the cell class level). What do you think works better?

From the user/API standpoint, I think we should have a sparse flag that is very simple to toggle (along the line of in NumPy where you can switch to a sparse matrix seamlessly). And from the developer standpoint, we will have to worry about the fast move_to_empty, get_neighbors (e.g. which loops over all agents and check their distance instead of the neighborhood).

Thanks for the feedback. I agree work is needed on the examples and tutorials. I think we're doing a good job with docstring though, but if you disagrees or find areas for improvement, please point them out!
I have created open issues with some resources for anyone that wants to improve the examples:

https://github.com/projectmesa/mesa-examples/issues/111
https://github.com/projectmesa/mesa-examples/issues/123
https://github.com/projectmesa/mesa-examples/issues/124

And we have https://github.com/projectmesa/mesa-examples/pull/118 incoming which uses both the AgentSet and the Cell Space.
If I can find the time I will also work on them somewhat myself. Unfortunately, that keeps being a big if.


FlatHub version is stale

Hello! It looks like the past two versions never made it to FlatHub; the latest there is still 1.9.7.

Desktop v1.10 (Windows and Linux) are still in beta. Windows is on its final beta (v<IP_ADDRESS>) before a stable release, but I am troubleshooting rendering issues on Linux. The latest Linux beta (v<IP_ADDRESS>) is available in the Flathub beta repo, or in our Discord server.
I'll update this issue, along with others that have been opened relating to Linux builds, when I am able to fix the rendering issues on Linux and release a stable build.

Ah, gotcha! I got misled by the "(stable)" in the release name. Sounds good! Thanks

1.10 is out on flathub now :)


Fix: Increase timeout limit for Ookla speed test

For low-speed connections, the Ookla speed test takes longer than 35 seconds on average. As a result, devices that are installed on low-speed connections are collecting very few Ookla measurements, because the timeout is occurring a throwing an error in the speed_ookla function.
The solution is simple. Just increase the timeout limit here: https://github.com/chicago-cdac/nm-exp-active-netrics/blob/main/src/netrics/netson.py#L164

Addressed by https://github.com/chicago-cdac/nm-exp-active-netrics/commit/c3f7bebe121954895fafa7edf97138e10a78909c.
@ggmartins let me know when this change has been deployed to our production devices and I'll close this issue out.

Deployed.


Fix for UWP icons not showing up

Summary of the Pull Request
Some of the applications did not have an icon such as calculator, snip & sketch and windows security.

References
theme and Target size Ref - https://docs.microsoft.com/en-us/windows/uwp/app-resources/images-tailored-for-scale-theme-contrast#asset-size-tables

PR Checklist

[x] Applies to #3541
[ ] CLA signed. If not, go over here and sign the CLA
[ ] Tests added/passed
[ ] Requires documentation to be updated
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

We were previously checking only the paths with scale factor. Some of the UWP applications such as calculator did not have it in that format, rather the path either had theme or targetsize included.
Therefore, included paths with contrast and targetsize as well.

Validation Steps Performed
Windows Security -

Calculator -

Snip & Sketch -

@jjw24 this may be of interest


KLEE: properly enable the POSIX runtime and libc

Disable linking our runtime and leave it only as a fall-back option.
Needed to fix (not-only) #103.

There's a problem with 32-bit vs 64-bit build of uclibc. AFAIK there's no way how to tell KLEE that it should use the bitcode with the right architecture.


Doesn't appear to work with Streamlit 1.33.0 using pages.

I stuck "example.py" inside of pages folder using latest 1.33.0
import streamlit as st
import pandas as pd
from streamlit_condition_tree import condition_tree, config_from_dataframe

# Initial dataframe
df = pd.DataFrame({
    'First Name': ['Georges', 'Alfred'],
    'Age': [45, 98],
    'Favorite Color': ['Green', 'Red'],
    'Like Tomatoes': [True, False]
})

# Basic field configuration from dataframe
config = config_from_dataframe(df)

# Condition tree
query_string = condition_tree(config)

# Filtered dataframe
df = df.query(query_string)

Output is entirely blank except for "None".  Tried "Build a query too" but also didn't work.
Using Microsoft Edge browser. Python 3.11

Tried again on another PC - Firefox, Python 3.11.8 Win11. Same result:
I did find that "hovering" in certain parts did partially show the tree.

Hi @netnem,
This is the normal behaviour. The tree is invisible because it is empty. Rules will appear after you create them.
You can pass an argument tree as input for defining a default tree, or set up a placeholder.
As for the buttons, they are only shown on hover by default. You can change it with the parameter always_show_buttons.
Does this resolve your issue ?

Yes, I think this makes sense now.  I had just copied and pasted the example and it looked completely broken.
Even adding a placeholder didn't "look" right to me - and I know that's a subjective thing.

vs what it looks like when a default rule is populated:

Having that contrast between "black and grey" make its look correct.
Expectation:

vs what I saw with the example:

I do have a few suggestions:

Include an "st.write(df)" in your example to display output. - also add "import streamlit as st"
Add an option to left-align "add rule/Add Group - probably above the "Not"
Maybe add always_show_buttons=True into the example.

I do agree that I don't believe this is an issue. I think I just didn't quite understand the UI as it looked like pieces were missing.  I'm good to close this one.


Test failure

The build is failing because of a failing tests, unfortunately the logic is complicated and I don't understand what it's trying to test.
  1) test loading relationships with filter by actor works (AshGraphql.CustpmPaginateTest)
     test/custom_paginate_test.exs:168
     Refute with != failed
     code:  refute count != Enum.count(results)
     left:  1
     right: 0
     stacktrace:
       test/custom_paginate_test.exs:250: (test)

I'm going to bypass it for now.

Did we do a release with this test failing?


Contract verify failed on Ropsten test network

Hello,
i’m trying to verify the contracts i’ve created on ropsten network (because there is an issue on kovan) but with no luck… i’ve tested also the method present on youtube when i get an error with the ABI code but with no luck:
I have 4 files generated by token wizard:
001_SafeMathLibExt (can be verified)
003_CrowdsaleTokenExt (cannot be verified)
005_MintedTokenCappedCrowdsaleExt (cannot be verified)
007_ReservedTokensFinalizeAgent (cannot be verified)
On 003_CrowdsaleTokenExt there isn’t neither an ABI in the txt file but if i try to verify it with no ABI i get a missing construct error
Another related question. I’ve created a test token. To test it the verification is a mandatory step? Or theorically i can sell the token without the verification?
Thank you
If you are reporting a problem with Token Wizard, please include the following information:
Which network did you use? (Mainnet, Kovan, Rinkeby, etc.)
Ropsten
If you were able to create it, what is the URL of your crowdsale?
This is the crowdsale address 0xd56edbf6d4117bbf8a539cdb43222bb169137d56
Do you have screenshots showing the problem?
Just the error that the ABI is wrong
Do you see errors in the dev console? If yes, please include a screenshot
no errors

@afxgroup see answers here https://forum.poa.network/t/verify-the-contracts-code/1043/2


EnableNotificationAPI Option

When I read Dokany's header file,
The EnableNotificationAPI option seems to be gone.

It is no longer required to provide the option to use the API. Before it was a turn on/off switch in the driver but it was removed.


Remote HTTP missing content-type, espeak pronounciation page missing phonemes

Hello,
I'm running a rhasspy image on docker and i'm a noob but because i haven't found stuff about the problems i was facing i decided to post it here.
The profile language is pt,
using espeak for TTS, in the pronunciation page generates the following:
[DEBUG:2020-11-13 18:51:45,661] rhasspyserver_hermes.utils: ['espeak', '--stdout', '-s', '80', '-v', 'pt', '[[]]']
Which looks like the phonemes are not being passed to the tool, i came to this conclusion because i ran the tool on the terminal and it worked when i provided a word but i see [[]] in the debug it looks like it's suppose to contain the phonemes.
Using Remote HTTPS for Audio Playing sends the audio without Content-Type audio/wav, not exactly sure if it's a problem i've just not been able to process it through node-red, i've notice its just calling a curl so i changed it to Local Command and used:
curl -H 'Content-Type:audio/wav' --data-binary @- --url http://<IP_ADDRESS>:1880/input --connect-timeout 10
and this seems to do the trick, unfortunately when i set this arguments it breaks the profile as it removes the [] in the
"play_arguments": field:
"sounds": {
        "command": {
            "play_arguments": "-H 'Content-Type:audio/wav' --data-binary @- --url http://<IP_ADDRESS>:1880/input --connect-timeout 10",
            "play_program": "curl"
        },
        "system": "command"
    },

Generating the following error:
play_command = [play_program] + profile.get("sounds.command.play_arguments", [])
TypeError: can only concatenate list (not "str") to list

I can confirm this problem. when trying to output audio on a remote rhasspy instance it does not work with "Remote HTTP" and the url: http://satellite:12101/api/play-wav
but with the command curl --url http://satellite:12101/api/play-wav --connect-timeout 10 -H 'Content-Type:audio/wav' --data-binary @- audio is correctly forwarded - thanks for this!

The command args issue should be resolved as of 2.5.9. I'll be adding the missing espeak phonemes in 2.5.10. You can copy this file to your profile for now, if you'd like.

The command args issue should be resolved as of 2.5.9. I'll be adding the missing espeak phonemes in 2.5.10. You can copy this file to your profile for now, if you'd like.

unfortunatelly "Remote HTTP" does not yet work for me in 2.5.9

unfortunatelly "Remote HTTP" does not yet work for me in 2.5.9

Sorry @h4de5 , just wanted to confirm is this is still an issue in 2.5.11?

this indeed, is still an issue. Just fired up my setup.
the curl call works, but the http call to the same address doesn't


Update OTG gribi_scaling_test to match the ATE version of the test.

PR #848, #600, #715, and #634 updated the ATE version of this test without updating the OTG version.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 50.147%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
854

Relevant Lines:
1703

💛  - Coveralls

copybara and local test run confirmed the  "remove base routing" specific issue is not happening anymore!


Publish on open-vsx

Do you mind if I publish this on open-vsx?
Under the Apache License I can, but I still want to ask.
I already helped publish the music app:
https://open-vsx.org/extension/softwaredotcom/music-time
If you @ me on any major updates, I can bump the versions.

@HansUXdev - yes you can publish. Thanks!


Fixed spelling mistake in water blaster description.

About the PR

Removed an "e" from the description of the Water Blaster.
Previously "With this bad boy, you'll be the cooleste kid at the summer barbecue." Now "With this bad boy, you'll be the coolest kid at the summer barbecue."
Why / Balance

I was crying and sobbing over one letter. Figured may as well fix it to get the free, undeserved contrib role.
Technical details

Changed ONE entire letter in a description. Complex, I know.
Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.


Defederation - HAADJ device join with ADFS SCP documentation

Hi There,
Should there be a section for Hybrid AAD joined devices with ADFS configured for the SCP as part of device configuration in AAD Connect?
It isn't clear from this page or others on the topic what needs to be done, to ensure that HAADJ devices continue to enroll properly as part of defederation and when this should occur?
Thanks!

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

ID: 57bc474a-a353-984d-3440-144c3444b100
Version Independent ID: 20ec9d72-24f7-ec32-4c68-f36a5d7968ab
Content: Migrate from federation to cloud authentication in Azure Active Directory - Microsoft Entra
Content Source: articles/active-directory/hybrid/migrate-from-federation-to-cloud-authentication.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @janicericketts
Microsoft Alias: jricketts

@MichaelRyan87 Thank you for your feedback. We will investigate and update the thread further.

@MichaelRyan87 Apologies for the delayed response. As I understand from your query you are looking information related to SCP as part of device configuration in AAD Connect, same information has been updated in this article https://docs.microsoft.com/en-us/azure/active-directory/devices/howto-hybrid-azure-ad-join#:~:text=In SCP configuration%2C for each forest where you want Azure AD Connect to configure the SCP%2C complete the following steps%2C and then select Next.
Let me know if you have any further questions.

Hi Givary,
Thanks for the update. I have an example below that I'd have thought might be fairly common in the migration to cloud auth for previously federated environments, should this be in the migration documentation?
Example:
A user has an environment with a federated domain in Microsoft 365, they are looking to de-federate and move to a managed domain. The user environment has been using hybrid join with Windows 10 devices using the SCP configured with ADFS without issues.
Now they have de-federated the domain, do they need to take action and re-update the SCP through AAD Connect with the steps you have provided, or as the tenant is still the same, provided the computer accounts are synchronised does AAD Connect assume control and no further changes are required? If they weren't to update the SCP, what happens to the configuration? I've read that ADFS updates some of the DRS configuration in ADFS but also if ADFS doesn't work AAD Connect is used as a backup.
I see the reference to managed domains in your document link, would this be required in the change over from federated and should it belong in the migration guidance here: https://docs.microsoft.com/en-us/azure/active-directory/hybrid/migrate-from-federation-to-cloud-authentication.
Thanks!


Add Plan interface

Duplicate of https://github.com/material-motion/material-motion-experiments-js/issues/72.


0.8.0 (27) Some boxes doesn't show properly the tasks numbers

...due the large font of my phone

I have set a minimum size for information elements and reduced the possible distance between objects. Try downloading the app again


:bug: Fix: Debug cjs module

Description
Debug is a cjs only module so it should be bundled
Testing
Explain the quality checks that have been done on the code changes
Additional Information

[ ] I read the contributing docs (if this is your first contribution)

Your ENS/address:

Current dependencies on/for this PR:

main

PR #934   👈

This stack of pull requests is managed by Graphite.


Adding functions to access dll handle of fmu instances

I ran into a situation where I needed to call a function that was not implemented according to the FMI standard, but was in the same DLL (a callback, something the FMI 2.0 standard does not support). This requires "raw" access to the underlying DLL or SO. I understand that this bypasses the FMI standard, but that's exactly the point: in the end an FMU is just a DLL, and the DLL can be more than just an FMU :)

I will get around looking into this eventually. Thanks for the PR

Thanks


Generational backups

Currently addon stores a fixed number of backups. It would be great to set a number of weekly and monthly backups to store, not only daily.

Not the first request  for this.. I'll add it to the backlog.

Now available in 2.2


chore: delegate i18next to peer dependency

Following discussion, we have decided that the solutions are either to peer i18next, or, preferably, use something better. Their changes are largely senseless and we cannot trust their development team to be competent, so I will be looking into alternatives, and make a new PR down the road.


CSP (Content Security Policy) rule issue

Hi @mikolalysenko,
I'd love to know your thoughts about this issue recently filed against react-virtualized: bvaughn/react-virtualized/issues/640
I'm using your  interval-tree-1d library (and so this one as well) in a masonry component I created recently. I've really enjoyed working with your library, for what it's worth. 😄

To add a little more detail, the problem is the use of new Function(...) as explained here. I will submit a PR for your consideration that removes the unnecessary new Function syntax (although at the cost of a few additional bytes).