Copying an image

How can ı copy an image to clipboard?
Can you write a simple example?

I don't recall a specific example where I've attempted to copy an image to the clipboard.

I'm currently looking for a solution to copy and paste images as well. The scenario I need it for is this:
I've written an AI bot for the IT team I work with at work. This bot uses Selenium to interface with Microsoft Teams (yes, I know they offer a bot framework... for a price, and I don't know how limited it could be). However, I'd like to add image generation (chart / graph / plots / etc.) functionality to the AI bot. Generating the image isn't necessarily the problem, there's libraries to do just that even for data plotting. However, I'm not looking to save it to a file and then attach the file to the message and then delete the file (that's kind've messy and seems pretty unnecessary). It'd be nice to, where I generate the image, copy it to clipboard, and then paste it in the message with the text generated. Since this library doesn't appear to support that, I'll probably keep looking rather than wait for the functionality to become present, but I thought I would pass along a scenario where such functionality would be used.

The code for getting an image is pretty straightforward on Windows. Probably setting an image would be something as simple as:
def set_image(dib: bytes):
    with context():
        SetClipboardData(clipboard.CF_DIB, dib)

However, that approach would only be useful for setting a device-independent bitmap. Is that a useful format? Would Windows-only support be useful, or would users need support for other platforms. To add support from other platforms, it would need to be contributed to pyperclip (Linux) or richxerox (macOS) or to another library that could replace one of those.

For me, unfortunately no. The VM I'm running my bot on is Linux (kUbuntu distro). I managed to utilize a workaround (creating an image and specifying it to xclip -- not ideal but for now, it works). The relevant reference information I think is here:
https://tronche.com/gui/x/icccm/
It refers to the events and process that occurs with X11's clipboard data. Granted, I suppose other frameworks Gnome, Kde, Qt, et al. have their own clipboard implementation, and I don't know how different (that is, if it is different) Wayland APIs are from X11. I just saw in my news feed today that Gnome is looking at making the push to drop support for X11 and continue forward with only Wayland since they're already, apparently, defaulting to that. Regardless, I think being able to copy images to the clipboard under Linux is still a valued functionality since it seems like there's almost nothing really out there that does it (short of doing like what I'm doing -- calling out to an external program). Using the GDK / GTK documentation, I was able to store images in the clipboard from Python and can even see the image, but when I use Selenium to simulate the paste via action_chains (sending the ctrl+v), it doesn't paste anything. To me, this indicates an issue with the target needing to be image/png but I can't seem to be able to set the target manually (like there's a call or two missing from the Python bindings to GTK / GDK or something)


DCOS-13348: Increase Environment form section column widths

Before:

After:

LGTM! 💯  💖

Can we update the widths of the fields in the pods environment section to match?

@philipnrmn they actually use the same component, so the classes are applied to both. The multi-container env section was more narrow because the form's parent didn't have the right flex-grow property set, but that was fixed by #1861. I just rebased this to include those changes :)

Ah, I see. I was wondering why the same component had two different widths.

lint errors :hammer:

Ohh thank oyu @philipnrmn!


Trying to follow the getting started guide

Hi Petar,
I tried the following:

run npm install to download dependencies
run npm start to build and start webpack-dev-server
open http://localhost:3333/

But i am getting the following message:
error TS2322: Type '{}' is not assignable to type 'string'
My environments are:
$ node -v
v6.9.1
$ npm -v
3.10.8

The issue is fixed with #17


Windows?

Does this not work with homebridge on windows? worked on my mac, but moving homebridge over to my windows computer to free up resources. have the new token thing working, but when i go to view live feed of camera, homebridge shuts down on windows.
here is the error:
events.js:183
throw er; // Unhandled 'error' event
^
Error: spawn ffmpeg ENOENT
at _errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

You need to install the windows version of FFmpeg.

I figured that out eventually late last night, but now I don’t get a live stream, but it doesn’t crash homebridge.  Also i appreciate your help and coding of this package!
Sent from my iPhone

On Dec 21, 2018, at 11:48 AM, Damian Romanowski<EMAIL_ADDRESS>wrote:
You need to install the windows version of FFmpeg.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I have both the thumbnail and video stream working on a Windows 10 machine. On the instance that I have the Nest-Cam plugin, I am also installing and loading in homebridge-camera-ffmpeg plugin. However, i do not specify anything in the config.json file for homebridge-camera-ffmpeg plugin other than in my allowed plugins list (but that's more for running multiple instances of Homebridge).
"plugins": [
"homebridge-camera-ffmpeg",
.....,
"homebridge-nest-cam",
.....
],
However, I also use this machine as a media server and bluray ripping machine, so I have installed other things like Plex, Handbrake, and MakeMKV which could have slipped in ffmpeg somewhere that the nest-cam plugin is pulling form.


first-commit-V2 of pe-report src

Re-submitting first-commit and PR
🗣 Original pull request did not align structurally with the python-skeleton repo which in-turn caused issues with the builds/tests. It was easier to create new branch with a new PR.
Changes - added 'pe_reports' to 'src' directory and did not modify any other original skeleton code. The intent is to just initialize the repo in-line to dev-standards. Modifications will be made here on out to update specific usage for pe-reports, by modifying the 'examples' code approprietly.
Next Steps - Build out additional code to run report_generation.py which will automatically create 'PE Reports Powerpoint file'  from customer data feeds. Additional actions will include encryption, PDF generation and logic to feed data-frames.
🧪 Testing
pre-commit test were made locally and no git errors were thrown.
report_generation.py runs successfully - local
✅ Checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] All future TODOs are captured in issues, which are referenced
in code comments.
[x] All relevant type-of-change labels have been added.
[x] I have read the CONTRIBUTING document.
[x] These code changes follow cisagov code standards.
[x] All relevant repo and/or project documentation has been updated
to reflect the changes in this PR.

Pull Request Test Coverage Report for Build 810595128

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 796323037:
0.0%

Covered Lines:
41

Relevant Lines:
41

💛  - Coveralls

Any idea why check 23/24 is showing as "build Expected — Waiting for status to be reported"

Any idea why check 23/24 is showing as "build Expected — Waiting for status to be reported"

I think it was an old check that ran at one time but now no longer exists.  I removed it from the settings page.

@dav3r I am getting the expected flake8 error noted in the example init.py, which also errors in the checks. Whats the best way to handle this. Am I missing something that was configured in the skeleton or comment it out right now?
pre-commit...
flake8...................................................................Failed

hook id: flake8
exit code: 1

src/pe_reports/init.py:6:1: F401 '._version.version' imported but unused
src/pe_reports/init.py:7:1: F401 '.report_generator.main' imported but unused

Requesting a re-review to align with all minimal requirements for a "first-commit".
Some quick notes: I updated flake to ignore error F401 per the issue explained and commented on regarding init.py. Other issued addressed since last review: Updated CODEOWNERS, setup.py, Docstrings, removal of example code, added in python constructors to src and inserted a simple test and added README.md. Intended next branch and PR will include a fully functional reporting tool for Posture & Exposure.

@dav3r I am getting the expected flake8 error noted in the example init.py, which also errors in the checks. Whats the best way to handle this. Am I missing something that was configured in the skeleton or comment it out right now?

@schmelz-ctr Please see my reply here.

I agree with @dav3r's requested changes. In addition, there is no reason for the src/example directory to continue to exist. You should remove that directory once you have used git mv to move the __init__.py, __main__.py, and _version.py files into your src/pe_reports directory.
For future reference, it would make more sense to start from the skeleton, do git mv src/example src/pe_reports, and then add your source code directly into src/pe_reports.

@schmelz-ctr - It doesn't look like you did what @jsf9k asked above with regard to using git mv for __init__.py, __main__.py, and _version.py.  None of them have their historical commits from the skeleton:

https://github.com/cisagov/pe-reports/commits/first-commits-V2/src/pe_reports/__init__.py
https://github.com/cisagov/pe-reports/commits/first-commits-V2/src/pe_reports/__main__.py
https://github.com/cisagov/pe-reports/commits/first-commits-V2/src/pe_reports/_version.py

(e.g. __init__.py should have a commit history that includes these commits from the skeleton: https://github.com/cisagov/skeleton-python-library/commits/develop/src/example/init.py)
Please take care of that as well.  If you need additional guidance on how to do this, please reach out to us.

@dav3r Can we schedule a few minutes on teams to review the "git mv for init.py, main.py, and _version.py issue". I went through the process this morning, yet somewhere between moving the files from "example" to "pe_reports" and git/github I am loosing the history.
I almost am attempted to re-branch from "develop" and go through the steps requested.

@dav3r Can we schedule a few minutes on teams to review the "git mv for init.py, main.py, and _version.py issue". I went through the process this morning, yet somewhere between moving the files from "example" to "pe_reports" and git/github I am loosing the history.
I almost am attempted to re-branch from "develop" and go through the steps requested.

@schmelz-ctr Sure, please ping me on Teams or send me a calendar invite.

@dav3r as per our conversation last Friday and our attempt to do a git mv: It appears that even though applying a git mv to the src/example files _version.py, init.py and main.py, tracking history does not display in GitHub. However nativity Git can track history and can be reviewed by using git log --follow <file>.
The following 2 links outline this issue: https://stackoverflow.com/questions/2314652/is-it-possible-to-move-rename-files-in-git-and-maintain-their-history and https://git-scm.com/docs/git-log.
Per conversation on next steps, I am cleaning up open items in this PR and will reissue a request for re-review.

Requested a re-review with @dav3r.

@schmelz-ctr - Thanks for sticking with this and working through all of our feedback. Everything now looks good to me 🎉 , but @jsf9k or @mcdonnnj should also take a look here to ensure that there are no other big things that need to be taken care of at this point.

Dave, thanks. Please reach out if there is anything else you need from me to do.

Dave, thanks. Please reach out if there is anything else you need from me to do.

Once you get your 2nd approval from @jsf9k or @mcdonnnj, you're all clear to merge this PR (you should have the ability to do that, but let me know if you can't).

Dave, thanks. Please reach out if there is anything else you need from me to do.

Once you get your 2nd approval from @jsf9k or @mcdonnnj, you're all clear to merge this PR (you should have the ability to do that, but let me know if you can't).

Sounds good. Will do.

@mcdonnnj thanks for the feed back. With the PR closed how would you recommend to best update these issues. Should I create a new Pull Request? It does not look like I can amend 'develop'.

@mcdonnnj thanks for the feed back. With the PR closed how would you recommend to best update these issues. Should I create a new Pull Request? It does not look like I can amend 'develop'.

@schmelz-ctr - Yes, please create a new branch and PR to take care of #5 and the other issues that @mcdonnnj mentioned above.  Thanks!

Sounds good - thanks.


Cypress Start and Build inputs should resolve to working directory

I'm unable to run this action because my server is started in a working directory because it is in a mono repo.
I've noticed this line hinting at those commands running under the working directory.
Is there a current workaround for starting a server that is not in the root directory?

I've made a fork with some changes that utilize using the working directory. To me this seems pretty straight forward. I haven't taken a ton of time to look into cypress's contributing docs yet so I'm not going to make a PR.
https://github.com/patricksimonian/github-action/blob/feat/start-build-wd/index.js#L286

@patricksimonian could you explain the folder structure in your monorepo and where you want to start the server? Is it something like
root/
  packages/
    server/
    e2e/

and you want to execute npm start inside packages/server and then run Cypress tests from packages/e2e?

sure thing. This may be a case where I've read instructions incorrectly.
my structure is as follows
/
   web/
     package.json
     cypress/
        integration/
              spec1.js
              spec2.js

The cypress project and the web project are at the same root relative to each other.
The server is just a simple GatsbyJS one for illustration.
- name: Cypress run
        uses: cypress-io/github-action@v1
        with:
          working-directory: web
          start: npm start

When attempting to start the server, it looks like it used cwd as the root (as logged out during the runtime of the action). Because the npm start command is using the @actions/exec you are unable to change commands like cd web && npm start.
Does that clarify?


await to_name(uuid) returns None even when uuid is valid

Code to reproduce error:
from MinePI import to_name
import asyncio
async def test():
    name = await to_name("51477bde9a874fc5b477ab29ff0f9acb")
    print(name)
asyncio.run(test())

None

I think it is like this because mojang changed their api
import asyncio
from aiohttp import ClientSession
from json import loads
async def to_name(uuid: str, timestamp: float = None):
    async with ClientSession() as session:
        async with session.get("https://api.mojang.com/user/profiles/{}/names".format(uuid)) as resp:
            name_dict = loads(await resp.text())
            print(name_dict)
            if resp.status == 200:
                if timestamp == None:
                    max_entry = len(name_dict) - 1
                    name = name_dict[max_entry]["name"]
                    return name
                else:
                    for i in range(len(name_dict) - 1, 0, -1):
                        if timestamp > name_dict[i]["changedToAt"]:
                            return name_dict[i]["name"]
                    else:
                        return name_dict[0]["name"]
            elif resp.status == 400:
                raise ValueError(name_dict["errorMessage"])
name = asyncio.run(to_name("15014a7479d44ab090cccf83e9eac3d3"))
print(name)

if i run your to_name function and print the dict that the mojang api responed
{'error': 'Not Found', 'errorMessage': 'The server has not found anything matching the request URI'}
None

I just checked and they removed the "https://api.mojang.com/user/profiles/{}/names" endpoint

Sorry for answering late.
You are right, they removed the endpoint. Thanks for letting me know.
The workaround isn't hard, but it will (again) increase the amount of requests. I will see what I can do to keep it down nevertheless.
A fix should (hopefully) be up in the comming days.

Still broken :(, my bot still doesn't work

Issue has been fixed in the latest release.
Refer to the documentation here https://minepi.readthedocs.io/en/latest/ for more infos about the release


user12986714: Watch owenjaxo321(?:@gmail.com)?

user12986714 requests the watch of the watch_keyword owenjaxo321(?:@gmail\.com)?. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

owenjaxo321(?:@gmail\.com)? has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Makyen in Charcoal HQ


FS-3464-3466-cosmetic-fix-for-file-upload-component

https://dluhcdigital.atlassian.net/jira/software/c/projects/FS/boards/50?quickFilter=343&selectedIssue=FS-3464
https://dluhcdigital.atlassian.net/jira/software/c/projects/FS/boards/50?quickFilter=343&selectedIssue=FS-3466
Description
Cosmetic fix for the file upload component
Screenshots of UI changes

@ramsharma-prog The simplest ticket you will ever do.


New menus do not appear after creation

I installed on a clean version of Laravel 5.2 and everything seems to be working. I create a new menu and all the DB tables are updated, a controller is created and everything seems to be working. However no new menu is created on the side bar. Also, any item below the parent menu is inaccessible to me.
Attached screen shot: there should be another menu below the Database Structure menu

Hello, thank you for this report, will check this as soon as possible

Issue should be solved. If you have generated CRUD and it didn't appear - please check that your parent id is correct.
Have a nice day!


A way to create an AudioFrame of a specific size

When working on an example to send recorded data via radio like walkie-talkie, one idea is to record AudioFrames of the same size than the packet size for radio.
With the current API is not straightforward at all to work out how to create an AudioFrame of say 64 bytes.
We need to use a sample rate that is easily divisible by the packet size, and a packet size that is a multiple of 32 bytes.
Initial attempts using the default rate (which is not a multiple of 32 bytes either) ended up with floats as the duration, which doesn't work as duration has to be an integer. So you end up setting a non-default rate.
We originally discarded a size arguments (AudioFrame(size, duration, rate)), as size is directly related to the other two parameters, so providing all three options would have to raise an error or similar.
We could replace the duration parameter from AudioFrame, but still have it for microphone.record(duration, rate), as that is the simplest way to create an audio sample.
In this case we would end up with code like this:
DURATION = 4000
RATE = 7812
af1 = audio.AudioFrame(size=DURATION*RATE, rate=RATE)
af2 = microphone.record(DURATION)

Not too sure what other simple options we might have, or if there is a better way to implement a size parameter.
Any suggestions are very welcomed.

As a workaround, I've been creating AudioFrames with the size as the rate and 1s duration, but then we need to set the rate back to the value we'd like. For example, for 128 bytes:
af = AudioFrame(duration=1000, rate=128)
af.set_rate(7812)

Let's try AudioFrame(duration=None, *, rate=7812, size=None)

A different class has been created that can be initialised from an external buffer, which can be set to a specific size in bytes, as described in:

https://github.com/microbit-foundation/micropython-microbit-v2/issues/205#issuecomment-2221716206


Assigning alias in initial now build

I am trying to assign an alias to my now deploy within CircleCI. I was wondering if it is currently possible to assign an alias to the deploy inline so for example instead of:
now -t ${token}
now -t ${token} alias {OLD_NOW_URL} blabladev
it would be:
now -t ${token} alias blabla-dev
The docs here: https://zeit.co/docs/features/aliases seem to only reference the two step approach.

You could create a now.json with the key alias and name and then run:
now -t ${token}
now alias -t ${token}

And Now will apply the alias defined in now.json to the latest deployment with the name defined in now.json.
Another option is to run now -t ${token} alias $(now -t ${token}) blabladev to run the deploy and alias in one command and pass the deployment URL directly to the alias command.


Bosch oven - Cannot read properties of undefined  (reading 'min')

Bosch Backofen
enumber: HBG7741B1/D3
TypeError: Cannot read properties of undefined  (reading 'min')
Protokoll:
`
2024-01-09 20:04:42.037  - info: host.RaspberryPi-Home "system.adapter.homeconnect.0" enabled
2024-01-09 20:04:42.104  - info: host.RaspberryPi-Home instance system.adapter.homeconnect.0 started with pid 1244207
2024-01-09 20:04:44.030  - info:  homeconnect.0 (1244207) Plugin sentry Sentry Plugin disabled for this  process because sending of statistic data is disabled for the system
2024-01-09 20:04:44.149  - info:  homeconnect.0 (1244207) starting. Version 1.3.0 in  /opt/iobroker/node_modules/iobroker.homeconnect, node: v18.19.0,  js-controller: 5.0.17
2024-01-09 20:04:44.793  - info: homeconnect.0 (1244207) Found 2 devices
2024-01-09 20:04:46.845  - info: homeconnect.0 (1244207)<PHONE_NUMBER>56003304-001/programs/active: There is no program active.
2024-01-09 20:04:46.848  - info: homeconnect.0 (1244207)<PHONE_NUMBER>56003304-001/programs/active/options: There is no program active.
2024-01-09 20:04:46.854  - info: homeconnect.0 (1244207)<PHONE_NUMBER>56003304-001/programs/selected: There is no program selected.
2024-01-09 20:04:46.857  - info: homeconnect.0 (1244207)<PHONE_NUMBER>56003304-001/programs/selected/options: There is no program selected.
2024-01-09 20:04:46.867  - info: homeconnect.0 (1244207) No array: active
2024-01-09 20:04:46.872  - info: homeconnect.0 (1244207) No array: selected
2024-01-09 20:04:46.989  - info: homeconnect.0 (1244207)<PHONE_NUMBER>51004339/programs/selected/options: There is no program selected.
2024-01-09 20:04:46.994  - info: homeconnect.0 (1244207)<PHONE_NUMBER>51004339/programs/active: There is no program active.
2024-01-09 20:04:46.999  - info: homeconnect.0 (1244207)<PHONE_NUMBER>51004339/programs/active/options: There is no program active.
2024-01-09 20:04:47.003  - info: homeconnect.0 (1244207)<PHONE_NUMBER>51004339/programs/selected: There is no program selected.
2024-01-09 20:04:47.013  - info: homeconnect.0 (1244207) No array: active
2024-01-09 20:04:47.014  - info: homeconnect.0 (1244207) No array: selected
2024-01-09 20:04:47.014  - info: homeconnect.0 (1244207) No available programs found for:<PHONE_NUMBER>51004339
2024-01-09 20:04:47.441  - error: homeconnect.0 (1244207) TypeError: Cannot read properties of undefined (reading 'min')
2024-01-09 20:04:47.442  - error: homeconnect.0 (1244207) TypeError: Cannot read properties of undefined (reading 'min')
at Homeconnect.getAPIValues (/opt/iobroker/node_modules/iobroker.homeconnect/main.js:502:36)
2024-01-09 20:04:47.443  - error: homeconnect.0 (1244207) /programs/available/Cooking.Oven.Program.HeatingMode.HotAir
2024-01-09 20:04:47.443  - error:  homeconnect.0 (1244207)  {"data":{"key":"Cooking.Oven.Program.HeatingMode.HotAir","name":"Heißluft","options":[{"name":"Temperatur","key":"Cooking.Oven.Option.SetpointTemperature","constraints":{"min":30,"liveupdate":true,"max":275,"stepsize":1,"default":180},"unit":"°C","type":"Double"},{"name":"Dauer   anpassen","key":"BSH.Common.Option.Duration","constraints":{"min":1,"max":86400,"default":1,"liveupdate":true},"unit":"seconds","type":"Int"},{"name":"Startzeit","key":"BSH.Common.Option.StartInRelative","constraints":{"min":0,"max":86340,"default":0,"liveupdate":true},"unit":"seconds","type":"Int"},{"key":"Cooking.Oven.Option.FastPreHeat","type":"Boolean","name":"Schnellaufheizen"}]}}
2024-01-09 20:04:47.948  - error: homeconnect.0 (1244207) TypeError: Cannot read properties of undefined (reading 'min')
2024-01-09 20:04:47.949  - error: homeconnect.0 (1244207) TypeError: Cannot read properties of undefined (reading 'min')
at Homeconnect.getAPIValues (/opt/iobroker/node_modules/iobroker.homeconnect/main.js:502:36)
2024-01-09 20:04:47.950  - error: homeconnect.0 (1244207) /programs/available/Cooking.Oven.Program.HeatingMode.TopBottomHeating
2024-01-09 20:04:47.950  - error:  homeconnect.0 (1244207)  {"data":{"key":"Cooking.Oven.Program.HeatingMode.TopBottomHeating","name":"Ober-/Unterhitze","options":[{"name":"Temperatur","key":"Cooking.Oven.Option.SetpointTemperature","constraints":{"min":30,"liveupdate":true,"max":300,"stepsize":1,"default":180},"unit":"°C","type":"Double"},{"name":"Dauer   anpassen","key":"BSH.Common.Option.Duration","constraints":{"min":1,"max":86400,"default":1,"liveupdate":true},"unit":"seconds","type":"Int"},{"name":"Startzeit","key":"BSH.Common.Option.StartInRelative","constraints":{"min":0,"max":86340,"default":0,"liveupdate":true},"unit":"seconds","type":"Int"},{"key":"Cooking.Oven.Option.FastPreHeat","type":"Boolean","name":"Schnellaufheizen"}]}}
2024-01-09 20:04:59.408  - info: host.RaspberryPi-Home "system.adapter.homeconnect.0" disabled
2024-01-09 20:04:59.409  - info: host.RaspberryPi-Home stopInstance system.adapter.homeconnect.0 (force=false, process=true)
2024-01-09 20:04:59.414  - info: host.RaspberryPi-Home stopInstance system.adapter.homeconnect.0 send kill signal
2024-01-09 20:04:59.414  - info: homeconnect.0 (1244207) Got terminate signal TERMINATE_YOURSELF
2024-01-09 20:04:59.421  - info: homeconnect.0 (1244207) terminating
2024-01-09 20:04:59.423  - info: homeconnect.0 (1244207) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2024-01-09 20:04:59.925  - info: homeconnect.0 (1244207) terminating
2024-01-09 20:04:59.977  - info: host.RaspberryPi-Home instance system.adapter.homeconnect.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)

`

Bitte die GitHub version testen ob das noch auftritt

Mit der GitHub version :-)
Version 1.3.0 (non-npm: iobroker-community-adapters/ioBroker.homeconnect) in /opt/iobroker/node_modules/iobroker.homeconnect, node: v18.19.0, js-controller: 5.0.17
TypeError: Cannot read properties of undefined (reading 'allowedvalues')
Protokoll:
`
2024-01-09 21:04:25.770  - info:  homeconnect.0 (1248139) Plugin sentry Sentry Plugin disabled for this  process because sending of statistic data is disabled for the system
2024-01-09 21:04:25.881  - info:  homeconnect.0 (1248139) starting. Version 1.3.0 (non-npm:  iobroker-community-adapters/ioBroker.homeconnect) in  /opt/iobroker/node_modules/iobroker.homeconnect, node: v18.19.0,  js-controller: 5.0.17
2024-01-09 21:04:26.502  - info: homeconnect.0 (1248139) Found 2 devices
2024-01-09 21:04:29.214  - info: homeconnect.0 (1248139)<PHONE_NUMBER>51004339/programs/selected: There is no program selected.
2024-01-09 21:04:29.225  - info: homeconnect.0 (1248139)<PHONE_NUMBER>51004339/programs/active: There is no program active.
2024-01-09 21:04:29.231  - info: homeconnect.0 (1248139)<PHONE_NUMBER>51004339/programs/active/options: There is no program active.
2024-01-09 21:04:29.238  - info: homeconnect.0 (1248139)<PHONE_NUMBER>51004339/programs/selected/options: There is no program selected.
2024-01-09 21:04:29.242  - info: homeconnect.0 (1248139) No array: active
2024-01-09 21:04:29.243  - info: homeconnect.0 (1248139) No array: selected
2024-01-09 21:04:29.245  - info: homeconnect.0 (1248139) No available programs found for:<PHONE_NUMBER>51004339
2024-01-09 21:04:29.373  - info: homeconnect.0 (1248139)<PHONE_NUMBER>56003304-001/programs/active/options: There is no program active.
2024-01-09 21:04:29.378  - info: homeconnect.0 (1248139)<PHONE_NUMBER>56003304-001/programs/active: There is no program active.
2024-01-09 21:04:29.381  - info: homeconnect.0 (1248139)<PHONE_NUMBER>56003304-001/programs/selected/options: There is no program selected.
2024-01-09 21:04:29.410  - info: homeconnect.0 (1248139)<PHONE_NUMBER>56003304-001/programs/selected: There is no program selected.
2024-01-09 21:04:29.414  - info: homeconnect.0 (1248139) No array: active
2024-01-09 21:04:29.419  - info: homeconnect.0 (1248139) No array: selected
2024-01-09 21:04:30.142  - error: homeconnect.0 (1248139) TypeError: Cannot read properties of undefined (reading 'allowedvalues')
2024-01-09 21:04:30.143  - error: homeconnect.0 (1248139) TypeError: Cannot read properties of undefined (reading 'allowedvalues')
at Homeconnect.getAPIValues (/opt/iobroker/node_modules/iobroker.homeconnect/main.js:509:36)
2024-01-09 21:04:30.144  - error: homeconnect.0 (1248139) /programs/available/Cooking.Oven.Program.HeatingMode.TopBottomHeating
2024-01-09 21:04:30.144  - error:  homeconnect.0 (1248139)  {"data":{"key":"Cooking.Oven.Program.HeatingMode.TopBottomHeating","name":"Ober-/Unterhitze","options":[{"name":"Temperatur","key":"Cooking.Oven.Option.SetpointTemperature","constraints":{"min":30,"liveupdate":true,"max":300,"stepsize":1,"default":180},"unit":"°C","type":"Double"},{"name":"Dauer   anpassen","key":"BSH.Common.Option.Duration","constraints":{"min":1,"max":86400,"default":1,"liveupdate":true},"unit":"seconds","type":"Int"},{"name":"Startzeit","key":"BSH.Common.Option.StartInRelative","constraints":{"min":0,"max":86340,"default":0,"liveupdate":true},"unit":"seconds","type":"Int"},{"key":"Cooking.Oven.Option.FastPreHeat","type":"Boolean","name":"Schnellaufheizen"}]}}
2024-01-09 21:04:30.309  - error: homeconnect.0 (1248139) TypeError: Cannot read properties of undefined (reading 'allowedvalues')
2024-01-09 21:04:30.310  - error: homeconnect.0 (1248139) TypeError: Cannot read properties of undefined (reading 'allowedvalues')
at Homeconnect.getAPIValues (/opt/iobroker/node_modules/iobroker.homeconnect/main.js:509:36)
2024-01-09 21:04:30.310  - error: homeconnect.0 (1248139) /programs/available/Cooking.Oven.Program.HeatingMode.HotAir
2024-01-09 21:04:30.311  - error:  homeconnect.0 (1248139)  {"data":{"key":"Cooking.Oven.Program.HeatingMode.HotAir","name":"Heißluft","options":[{"name":"Temperatur","key":"Cooking.Oven.Option.SetpointTemperature","constraints":{"min":30,"liveupdate":true,"max":275,"stepsize":1,"default":180},"unit":"°C","type":"Double"},{"name":"Dauer   anpassen","key":"BSH.Common.Option.Duration","constraints":{"min":1,"max":86400,"default":1,"liveupdate":true},"unit":"seconds","type":"Int"},{"name":"Startzeit","key":"BSH.Common.Option.StartInRelative","constraints":{"min":0,"max":86340,"default":0,"liveupdate":true},"unit":"seconds","type":"Int"},{"key":"Cooking.Oven.Option.FastPreHeat","type":"Boolean","name":"Schnellaufheizen"}]}}

`

Bitte nochmal installieren und testen

Habe den Adapter komplett entfernt und neu von Github installiert. Die Fehler werden weiterhin ausgegeben.

kannst du nochmal ein log zeigen

Das aktuelle log.
`
2024-01-11 10:37:33.711  - info: host.RaspberryPi-Home "system.adapter.homeconnect.0" enabled
2024-01-11 10:37:33.793  - info: host.RaspberryPi-Home instance system.adapter.homeconnect.0 started with pid 9419
2024-01-11 10:37:35.634  - info:  homeconnect.0 (9419) Plugin sentry Sentry Plugin disabled for this  process because sending of statistic data is disabled for the system
2024-01-11 10:37:35.761  - info:  homeconnect.0 (9419) starting. Version 1.3.0 (non-npm:  iobroker-community-adapters/ioBroker.homeconnect) in  /opt/iobroker/node_modules/iobroker.homeconnect, node: v18.19.0,  js-controller: 5.0.17
2024-01-11 10:37:36.416  - info: homeconnect.0 (9419) Found 2 devices
2024-01-11 10:37:36.674  - info: homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/active: There is no program active.
2024-01-11 10:37:36.971  - info: homeconnect.0 (9419)<PHONE_NUMBER>51004339/programs/active: There is no program active.
2024-01-11 10:37:37.152  - info: homeconnect.0 (9419)<PHONE_NUMBER>51004339/programs/active/options: There is no program active.
2024-01-11 10:37:37.193  - info: homeconnect.0 (9419) No array: active
2024-01-11 10:37:37.198  - info: homeconnect.0 (9419) No array: selected
2024-01-11 10:37:37.287  - info: homeconnect.0 (9419)<PHONE_NUMBER>51004339/programs/selected/options: There is no program selected.
2024-01-11 10:37:37.292  - info: homeconnect.0 (9419)<PHONE_NUMBER>51004339/programs/selected: There is no program selected.
2024-01-11 10:37:37.531  - info: homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/selected: There is no program selected.
2024-01-11 10:37:37.729  - error: homeconnect.0 (9419) TypeError: Cannot read properties of undefined (reading 'default')
2024-01-11 10:37:37.730  - error: homeconnect.0 (9419) TypeError: Cannot read properties of undefined (reading 'default')
at Homeconnect.getAPIValues (/opt/iobroker/node_modules/iobroker.homeconnect/main.js:532:36)
at runNextTicks (node:internal/process/task_queues:60:5)
at process.processImmediate (node:internal/timers:447:9)
2024-01-11 10:37:37.732  - error: homeconnect.0 (9419) /programs/available/Cooking.Oven.Program.HeatingMode.HotAir
2024-01-11 10:37:37.732  - error:  homeconnect.0 (9419)  {"data":{"key":"Cooking.Oven.Program.HeatingMode.HotAir","name":"Heißluft","options":[{"name":"Temperatur","key":"Cooking.Oven.Option.SetpointTemperature","constraints":{"min":30,"liveupdate":true,"max":275,"stepsize":1,"default":180},"unit":"°C","type":"Double"},{"name":"Dauer   anpassen","key":"BSH.Common.Option.Duration","constraints":{"min":1,"max":86400,"default":1,"liveupdate":true},"unit":"seconds","type":"Int"},{"name":"Startzeit","key":"BSH.Common.Option.StartInRelative","constraints":{"min":0,"max":86340,"default":0,"liveupdate":true},"unit":"seconds","type":"Int"},{"key":"Cooking.Oven.Option.FastPreHeat","type":"Boolean","name":"Schnellaufheizen"}]}}
2024-01-11 10:37:37.745  - info:  homeconnect.0 (9419)<PHONE_NUMBER>51004339/settings/BSH.Common.Setting.AlarmClock: The rate  limit "50 calls in 1 minute" was reached. Requests are blocked during  the remaining period of 1 seconds..
2024-01-11 10:37:37.752  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/available/Cooking.Oven.Program.HeatingMode.HotAirGrilling:  The rate limit "50 calls in 1 minute" was reached. Requests are blocked  during the remaining period of 1 seconds..
2024-01-11 10:37:37.766  - info:  homeconnect.0 (9419)<PHONE_NUMBER>51004339/settings/BSH.Common.Setting.PowerState: The rate  limit "50 calls in 1 minute" was reached. Requests are blocked during  the remaining period of 1 seconds..
2024-01-11 10:37:37.811  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/available/Cooking.Oven.Program.HeatingMode.TopBottomHeating:  The rate limit "50 calls in 1 minute" was reached. Requests are blocked  during the remaining period of 1 seconds..
2024-01-11 10:37:37.814  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/selected/options:  The rate limit "50 calls in 1 minute" was reached. Requests are blocked  during the remaining period of 1 seconds..
2024-01-11 10:37:37.862  - info:  homeconnect.0 (9419)<PHONE_NUMBER>51004339/programs: The rate limit "50  calls in 1 minute" was reached. Requests are blocked during the  remaining period of 1 seconds..
2024-01-11 10:37:38.078  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/active/options:  The rate limit "50 calls in 1 minute" was reached. Requests are blocked  during the remaining period of 1 seconds..
2024-01-11 10:37:38.091  - info:  homeconnect.0 (9419)<PHONE_NUMBER>51004339/settings/BSH.Common.Setting.TemperatureUnit: The rate  limit "50 calls in 1 minute" was reached. Requests are blocked during  the remaining period of 1 seconds..
2024-01-11 10:37:38.097  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/available/Cooking.Oven.Program.HeatingMode.PreheatOvenware:  The rate limit "50 calls in 1 minute" was reached. Requests are blocked  during the remaining period of 1 seconds..
2024-01-11 10:37:38.117  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/settings/BSH.Common.Setting.AlarmClock: The rate  limit "50 calls in 1 minute" was reached. Requests are blocked during  the remaining period of 1 seconds..
2024-01-11 10:37:38.137  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/available/Cooking.Oven.Program.HeatingMode.KeepWarm:  The rate limit "50 calls in 1 minute" was reached. Requests are blocked  during the remaining period of 1 seconds..
2024-01-11 10:37:38.377  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/available/Cooking.Oven.Program.HeatingMode.PreHeating:  The rate limit "50 calls in 1 minute" was reached. Requests are blocked  during the remaining period of 1 seconds..
2024-01-11 10:37:38.463  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/settings/BSH.Common.Setting.PowerState: The rate  limit "50 calls in 1 minute" was reached. Requests are blocked during  the remaining period of 1 seconds..
2024-01-11 10:37:38.507  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/available/Cooking.Oven.Program.HeatingMode.BottomHeating:  The rate limit "50 calls in 1 minute" was reached. Requests are blocked  during the remaining period of 1 seconds..
2024-01-11 10:37:38.584  - info:  homeconnect.0 (9419)<PHONE_NUMBER>51004339/settings/BSH.Common.Setting.ChildLock: The rate limit  "50 calls in 1 minute" was reached. Requests are blocked during the  remaining period of 0 seconds..
2024-01-11 10:37:38.684  - info:  homeconnect.0 (9419)<PHONE_NUMBER>56003304-001/programs/available/Cooking.Oven.Program.HeatingMode.TopBottomHeatingEco:  The rate limit "50 calls in 1 minute" was reached. Requests are blocked  during the remaining period of 0 seconds..
2024-01-11 10:37:50.269  - info: host.RaspberryPi-Home "system.adapter.homeconnect.0" disabled
2024-01-11 10:37:50.270  - info: host.RaspberryPi-Home stopInstance system.adapter.homeconnect.0 (force=false, process=true)
2024-01-11 10:37:50.274  - info: host.RaspberryPi-Home stopInstance system.adapter.homeconnect.0 send kill signal
2024-01-11 10:37:50.275  - info: homeconnect.0 (9419) Got terminate signal TERMINATE_YOURSELF
2024-01-11 10:37:50.280  - info: homeconnect.0 (9419) terminating
2024-01-11 10:37:50.282  - info: homeconnect.0 (9419) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2024-01-11 10:37:50.783  - info: homeconnect.0 (9419) terminating
2024-01-11 10:37:50.851  - info: host.RaspberryPi-Home instance system.adapter.homeconnect.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)

`

sollte jetzt auch weg sein

Die Fehler sind nun nicht mehr vorhanden. Vielen lieben Dank.


Vulnerability roundup 87: ffmpeg-4.3: 1 advisory [8.8]

search, files

[ ] CVE-2020-14212 CVSSv3=8.8 (nixos-unstable)

Scanned versions: nixos-unstable: b3251e04ee4. May contain false positives.
Cc @codyopel

master is at 4.3.1, so this is remediated already.
Closing.


More detailed video decoding/encoding operation logging

This is a wish; other decoding APIs have utilities like vainfo, vdpauinfo, nv-video-info to display all supported video codecs, profiles, levels and capabilities, but vulkaninfo currently only prints whether a decoding extension is supported.

I think that would be a fine addition.
I am not very familiar with the video extensions nor have a clue what would be the kind of information wanted. I suppose running those tools you mentioned would be a good starting point.
Unfortunately, I do not foresee this being a very high priority and thus can't focus on it. I'm very open to PR's or detailed explanations of what info is desired, which would help streamline the process.

Idle thought - in addition to showing the relevant information, there should be a ‘video’ command line option that only displays the video information, to streamline usage for those needing that info.


Updated to Rust 2018 edition

@rsaarelm Is there still interest in this repo? As I have another MR ready.

Ill close this now


disabledDates refuses to work

I forked the jsfiddle, and it works ok here:
http://jsfiddle.net/JackWells/dd49ys79/2/
I forked your git (the time-false demo) and it does not work:
https://github.com/JackWells/bs3dp-test
What I did with the git:

Ran "rake rails:update:bin"

Ran "bundle install"

Changed app/assets/javascripts/test.js by copying exactly what is in the fiddle:
 $(function() {
   $('#datetimepicker').datetimepicker({
   pickTime: false,
   defaultDate: "10/25/2014",
   disabledDates: [
 	  "10/27/2014 00:53",
 	  "10/28/2014 00:53"
   ]});
 });

The "pickTime: false" works.  The disabledDates does not.  Yet it works in the jsFiddle.  How can this be?
Edit:
Took out '//= require bootstrap-datetimepicker' and put the 'bootstrap-datetimepicker.js ', referenced in the fiddle, in the tree.  No change.
Added moment.js, referenced in the fiddle, to the js folder, removed require_tree, and manually required each js file, in order.  No change.

Updated to 4.0.0 will you check to see if you have similar issues and reopen if so?


Consider using NamedTuple instead of dictionaries

Report
for example, here https://github.com/scverse/spatialdata-plot/blob/582c8379f2478d0e7bc0a7d4733d3cb6fa9af061/src/spatialdata_plot/pl/basic.py#L574-L582
and here https://github.com/scverse/spatialdata-plot/blob/582c8379f2478d0e7bc0a7d4733d3cb6fa9af061/src/spatialdata_plot/pl/basic.py#L372
named tuple are more suitable for this approach.
Version information
No response

What would be the advantage of using namedtuples ? To keep the param dictionaries immutable ?

actually doing everything with dataclasses. heads up, am doing big rewrite at #45 , it's gonna be prob too disruptive and you guys will hate me but please bear with me, we can discuss on tue


Extract #steps and #step into a separate plugin gem

Born of #273. This would mean that Cucumber, out of the box, does not support this feature which many of us consider to be an anti-pattern. You'd have to opt-in to use it.
This might interest you @tooky, since you're all over those nested steps at the moment. :) How possible do you think it would be?

I would be happy to give this issue a go in order to progress the milestone. What do you think @mattwynne ? Is there anything more pressing?

@nodo I haven't updated the 3.0.0 milestone in a while and I think this issue was just hanging around there. It would be nice to do it sometime, but it's not high priority I don't think.
I'm playing around with the new "Projects" feature in GitHub, so look there to help you figure out priorities, or ping me on gitter. Thanks for all your efforts so far, it's great to have you on the team!

Thanks @mattwynne , will keep an eye on projects or ping you!

@mattwynne Has work been done already to this end? I would love to help make this happen, since we have an app that needs to access the steps of failing scenarios, but I don't know where to start

Hi @ericgriffis can you tell me more about your use-case?

Ref: Ref: https://github.com/cucumber-attic/gherkin2/issues/178


Lit component shows initial value instead of current persisted value in localStorage after page reload

I use nanostores to store a count in localStorage:
import { persistentAtom } from '@nanostores/persistent'

export const counterStore = persistentAtom('count', 0, {
  encode: JSON.stringify,
  decode: JSON.parse,
})

Incrementing the count works as expected, the count value is updated in localStorage. However, after a page reload, the Lit component always shows the initial value 0. After clicking the increment button, the value in localStorage is read, incremented and then displayed in the Lit component.
import { LitElement, html } from 'lit';
import { StoreController } from '@nanostores/lit'
import { counterStore } from '../stores/count.js'

export class LitCounter extends LitElement {
  static properties = {
    count: {state: true}
  };

  constructor() {
    super()
    this.count = new StoreController(this, counterStore)
  }

  _increment(e) {
    counterStore.set(this.count.value + 1)
  }

  _current(e) {
    const current = this.count.value
    console.log(`current: ${current}`)
  }

  render() {
    return html`

          Count  ${this.count.value} (Lit)

        <button @click="${this._increment}">
          + 1
        </button>
        <button @click="${this._current}">
          Current
        </button>

    `;
  }
}

customElements.define('lit-counter', LitCounter);

Sorry, you need to ask Lit adapter team


REST client example shouldn't create instances of HttpClient per call

The article at https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/console-webapiclient is using the anti-pattern of creating a new instance of HttpClient per call. It should be using a shared instance. See the docs at https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=netframework-4.7.1:

HttpClient is intended to be instantiated once and re-used throughout the life of an application. Instantiating an HttpClient class for every request will exhaust the number of sockets available under heavy loads.

The way I usually handle this is by adding a HttpClient singleton to the dependency injection container, and inject it into the constructor.

I am thinking about the best way to present this. I'm concerned about adding DI to an introductory tutorial. You are right that we need a better way to reuse the same client.

@BillWagner What if you just make it a static instance?
private static readonly HttpClient _client = new HttpClient()

@Daniel15 This sample is a reasonably simple one, so a static HttpClient is probably a good plan.
Do you want to make a PR for this? If not, I'll likely update it after the holidays.

I don't think I'll get time to send a PR any time soon, unfortunately :(

@Daniel15 I understand. It's on my list then.


Not Initialising on Windows

I've installed Warp10 in a Windows environment (yes, I know it's not strongly supported - but for some reason our AMD system working with Docker, even though Hyper-V is enabled in Windows).
The 'WarpInit' function doesn't seem to work as expected. I get no output, and there doesn't seem to be any actual result. No initial tokens are created, no configuration files are copied into conf.d, no security hashes generated.
If I copy the template files over into conf.d (removing '.template' from their filename), set a couple of critical values and run the script that creates the various security keys/hashes, then I can actually //run// the database. But without those initial tokens, there's very little I can actually do.
I've installed the system onto my D: drive (d:\Warp10).
Note the init script listed on the web includes the //Warp10// folder twice. Not sure if that's required or intentional?
java -Djava.awt.headless=true ^
-Dlog4j.configuration=file:C:\warp10\etc\log4j.properties ^
-Xms1g -Xmx1g -XX:+UseG1GC ^
-cp C:\warp10**\warp10**\etc;C:\warp10\bin\warp10-2.4.0.jar;C:\warp10\lib* ^
io.warp10.standalone.WarpInit ^
C:\warp10\leveldb

While this issue is still valid, I eventually figured out what was preventing Docker from functioning - turns out Gigabytes motherboard BIOS does a really good job of hiding the option to turn on virtualisation.

Closing this issue with this link


Updating funnies

Adding some random quotes from IT Crowd (#6)

@xingwang Looks great! Can you fix the merge conflict?


SelectField multiple - defaultValues doesn't work

Hi,
just found out that defaultValues is literally ignored on Select in mode "multiple". Problem seems to be in this redux-form binding wrapper. When native Select component from antd used, default values works just fine.
I understand that you don't have much of a spare time to deal with these issues, but I thought keeping bug tracked is a good thing anyways.

why dont you set initialValues on reduxForm config? I think it could be cleaner using the reduxForm api to set the values https://redux-form.com/7.2.3/docs/api/reduxform.md/#-code-initialvalues-object-lt-string-string-gt-code-optional-

Turned out I had initialValues for that select set to empty array deep down in component, away of handling logic. My bad, multiselect works just fine.


Two manual boundaries (updated 11/24/2021)

This PR implements the manual boundaries proposed in the note:
https://xe1t-wiki.lngs.infn.it/doku.php?id=xenon:xenonnt:yue:classification_manual_boundary_update_1
Thanks for the suggestions from @JoranAngevaare and @WenzDaniel. I have moved the boundaries into separate functions as they suggested.
Besides, I closed the old PR (#708) because it was based on the old straxen version (v1.1.2) and made this new PR which is consistent with the latest one (v1.1.3)

@yuema137 I did a minor refactor and some style changes mentioned by the review dog. Can you quickly check if I did not do any mistake during the refactoring?

@yuema137 I did a minor refactor and some style changes mentioned by the review dog. Can you quickly check if I did not do any mistake during the refactoring?

Thanks Daniel! It is much more clear now and I didn't find any mistakes.

Based on https://xe1t-wiki.lngs.infn.it/doku.php?id=xenon:j_angevaare:pema_efficiency#c_c_update_in_pr775 I think this is fine to go ahead. Thanks Yue!

Actually, @JoranAngevaare can you wait a tiny bit to merge. Since this is very likely the last version, I am doing some quick final checks.

Of course, there are also pending other PRs with changes to C&C, I just wanted to approve 👍

Thanks for spotting and fixing. Yes I think we should only merge those lineage changing PRs shortly before the new release.

Sorry, I made the mistake, it should be the other minus sign


fiff_open fails on a MAG4Health fif file

Hi Eric @larsoner can I pick your brain a bit for the following (or otherwise please point me to whomever is more fit to be brainpicked about this). Vladimir @vlitvak reported an issue with reading a MAG4Health OPM fif-file in FieldTrip (which uses the mne-tools/mne-matlab code). Specifically, MNE-python and brainstorm seem to do just fine. The issue is referenced here:
https://github.com/fieldtrip/fieldtrip/issues/2459
I looked into this a bit, and it turns out that the very last tag in the culprit file has a value of '0' in the 'next' field. This causes fiff_open to try and read beyond the end of the fif-file in the corresponding while loop (lines 95-103). The long story short seems to be that (also according to the FIFFV_NEXT_NONE constant, which is defined as -1) the code kind of expects to be able to escape the while loop when tag.next==-1 at the end of a fif-file.
I could confirm that all other fif-files I have lying around close by indeed have a tag.next==-1 at the end of the file.
I could not find online any chatter about the official way in which the end of a fif-file should be formatted, so I was wondering whether the referenced file is fif-invalid in its definition,  and whether that should be brought to the attention of the Mag4health folks. Alternatively, I could of course put a small bandaid on the relevant piece of code and then crawl back into my cave to try and forget about the current state of the world.

TL;DR: PR welcome to fix MNE-MATLAB!

I could not find online any chatter about the official way in which the end of a fif-file should be formatted

There are PDFs but not very discoverable, so I opened https://github.com/mne-tools/fiff-constants/pull/44 to at least get the ball rolling. Ideally we would autogenerate this using CIs but in the meantime it should at least help.

I was wondering whether the referenced file is fif-invalid in its definition

I think the relevant parts are starting on page #8 (12 in the PDF):

name
type
size
description

next
int32_t
4
Location of the next tag in the file. If this value is 0 , the next tag follows sequentially. If the value is -1 the list of tags ends here. Otherwise next indicates tthe byte position of the next tag in the file.

And

2.4 Tag directory
The purpose of the tag directory is to facilitate searching of information
from a FIFF file. Without the directory, the tag list would have to be read
from the beginning until the desired data are located. The data of dir tag,
which dir_pointer tag points to, is an array of dir_entry_t structures (see
Section A.4.3). Programs can read the directory into memory for search-
ing the contents, and then access the data through pointers in the directory.
The tag directory is not mandatory. Programs using FIFF files should be
able to manage files with or without the directory.

So maybe your suggestion:

I could of course put a small bandaid on the relevant piece of code

I think yes if MNE-Python reads something, MNE-MATLAB should ideally read it the same way to the extent possible. MNE-Python emits a warning that it tried to read a tag (probably at the end of the file) but it was invalid, which I think is what I'd expect:
$ mne show_fiff fyna_research_raw.fif
/home/larsoner/python/virtualenvs/base/bin/mne:8: RuntimeWarning: Invalid tag with only 0/16 bytes at position 173802913 in file /home/larsoner/Desktop/fyna_research_raw.fif
  sys.exit(main())
999  = FIFFB_ROOT
    100  = FIFF_FILE_ID (20b ids)  = {'version': 1234, 'machid': ar ... dict len=4
    101  = FIFF_DIR_POINTER (4b >i4)  = [0]
    100  = FIFFB_MEAS
        101  = FIFFB_MEAS_INFO
            212  = FIFF_EXPERIMENTER (13b str)  = FYNA Research ... str len=13
            204  = FIFF_MEAS_DATE (4b >i4)  = [1729855256]
            206  = FIFF_COMMENT/FIFF_DESCRIPTION (18b str)  = 4He OPMs recording ... str len=18
            200  = FIFF_NCHAN (4b >i4)  = [141]
            x141: 203  = FIFF_CH_INFO (96b cis)  = {'scanno': 141, 'logno': 4703, ... dict len=11
            201  = FIFF_SFREQ (4b >f4)  = [1003.21027]
            106  = FIFFB_SUBJECT
                400  = FIFF_SUBJ_ID (4b >i4)  = [999]
                401  = FIFF_SUBJ_FIRST_NAME (6b str)  = Empty  ... str len=6
                403  = FIFF_SUBJ_LAST_NAME (4b str)  = Room ... str len=4
            102  = FIFFB_RAW_DATA
                201  = FIFF_SFREQ (4b >f4)  = [1003.21027]
                x615: 300  = FIFF_DATA_BUFFER (282564b >f4)  = [ 11.434588     2.4555857  -34 ... array size=70641

And yes I think it's also worth telling the MAG4Health folks that ideally the last tag in the file should have a -1 / FIFFV_NEXT_NONE. Or even better would be a tag directory, but understandable if they don't want to (it's more work and more complicated).

and then crawl back into my cave to try and forget about the current state of the world.

This part I'll let you decide but either way I'm glad you came out into the light for a bit :laughing:


docs: markdown and textual fixups in reference/run.md

This fixes markdown formatting, and formatting of tables;

Our markdown engine doesn't support spanning rows, so
re-wrapped table contents.
Added a CSS-styles to prevent "code" blocks in tables
from wrapping
The "logging drivers" table didn't have a header
Aligned table borders in source code for better readability.
Standardize on using -it in stead of -i -t or -ti
Some markup issues
Some minor textual fixups

The extra CSS style turns this;

Into this:

ping @SvenDowideit @moxiegirl :-)

LGTM

author LGTM
thanks @moxiegirl


PGP-sign your releases

I hope you understand that publishing hashes on Github offers very weak assurances of the authenticity of the software. please create a release signing PGP key controlled by your main developers and sign the files you release.

Doesn't GitHub already sign them?

How would you envision a signed release to be distributed?

Cool, thanks for breaking it down.
I've already created a GPG key pair and configured git to use it. Still need to do steps 3, 4 and 5.


Failed to set up mount namespacing

Required information

Distribution: Ubuntu 18.04.4 LTS
LXD with snapd
The output of "lxc info" or if that fails:

config: {}
api_extensions:
- storage_zfs_remove_snapshots
- container_host_shutdown_timeout
- container_stop_priority
- container_syscall_filtering
- auth_pki
- container_last_used_at
- etag
- patch
- usb_devices
- https_allowed_credentials
- image_compression_algorithm
- directory_manipulation
- container_cpu_time
- storage_zfs_use_refquota
- storage_lvm_mount_options
- network
- profile_usedby
- container_push
- container_exec_recording
- certificate_update
- container_exec_signal_handling
- gpu_devices
- container_image_properties
- migration_progress
- id_map
- network_firewall_filtering
- network_routes
- storage
- file_delete
- file_append
- network_dhcp_expiry
- storage_lvm_vg_rename
- storage_lvm_thinpool_rename
- network_vlan
- image_create_aliases
- container_stateless_copy
- container_only_migration
- storage_zfs_clone_copy
- unix_device_rename
- storage_lvm_use_thinpool
- storage_rsync_bwlimit
- network_vxlan_interface
- storage_btrfs_mount_options
- entity_description
- image_force_refresh
- storage_lvm_lv_resizing
- id_map_base
- file_symlinks
- container_push_target
- network_vlan_physical
- storage_images_delete
- container_edit_metadata
- container_snapshot_stateful_migration
- storage_driver_ceph
- storage_ceph_user_name
- resource_limits
- storage_volatile_initial_source
- storage_ceph_force_osd_reuse
- storage_block_filesystem_btrfs
- resources
- kernel_limits
- storage_api_volume_rename
- macaroon_authentication
- network_sriov
- console
- restrict_devlxd
- migration_pre_copy
- infiniband
- maas_network
- devlxd_events
- proxy
- network_dhcp_gateway
- file_get_symlink
- network_leases
- unix_device_hotplug
- storage_api_local_volume_handling
- operation_description
- clustering
- event_lifecycle
- storage_api_remote_volume_handling
- nvidia_runtime
- container_mount_propagation
- container_backup
- devlxd_images
- container_local_cross_pool_handling
- proxy_unix
- proxy_udp
- clustering_join
- proxy_tcp_udp_multi_port_handling
- network_state
- proxy_unix_dac_properties
- container_protection_delete
- unix_priv_drop
- pprof_http
- proxy_haproxy_protocol
- network_hwaddr
- proxy_nat
- network_nat_order
- container_full
- candid_authentication
- backup_compression
- candid_config
- nvidia_runtime_config
- storage_api_volume_snapshots
- storage_unmapped
- projects
- candid_config_key
- network_vxlan_ttl
- container_incremental_copy
- usb_optional_vendorid
- snapshot_scheduling
- container_copy_project
- clustering_server_address
- clustering_image_replication
- container_protection_shift
- snapshot_expiry
- container_backup_override_pool
- snapshot_expiry_creation
- network_leases_location
- resources_cpu_socket
- resources_gpu
- resources_numa
- kernel_features
- id_map_current
- event_location
- storage_api_remote_volume_snapshots
- network_nat_address
- container_nic_routes
- rbac
- cluster_internal_copy
- seccomp_notify
- lxc_features
- container_nic_ipvlan
- network_vlan_sriov
- storage_cephfs
- container_nic_ipfilter
- resources_v2
- container_exec_user_group_cwd
- container_syscall_intercept
- container_disk_shift
- storage_shifted
- resources_infiniband
- daemon_storage
- instances
- image_types
- resources_disk_sata
- clustering_roles
- images_expiry
- resources_network_firmware
- backup_compression_algorithm
- ceph_data_pool_name
- container_syscall_intercept_mount
- compression_squashfs
- container_raw_mount
- container_nic_routed
- container_syscall_intercept_mount_fuse
- container_disk_ceph
- virtual-machines
- image_profiles
- clustering_architecture
- resources_disk_id
- storage_lvm_stripes
- vm_boot_priority
- unix_hotplug_devices
- api_filtering
- instance_nic_network
- clustering_sizing
- firewall_driver
- projects_limits
- container_syscall_intercept_hugetlbfs
- limits_hugepages
api_status: stable
api_version: "1.0"
auth: trusted
public: false
auth_methods:
- tls
environment:
  addresses: []
  architectures:
  - x86_64
  - i686
  certificate:
REMOVE
  driver: lxc
  driver_version: 3.2.1
  firewall: xtables
  kernel: Linux
  kernel_architecture: x86_64
  kernel_features:
    netnsid_getifaddrs: "false"
    seccomp_listener: "false"
    seccomp_listener_continue: "false"
    shiftfs: "false"
    uevent_injection: "false"
    unpriv_fscaps: "true"
  kernel_version: 4.15.0-38-generic
  lxc_features:
    cgroup2: "false"
    mount_injection_file: "true"
    network_gateway_device_route: "true"
    network_ipvlan: "true"
    network_l2proxy: "true"
    network_phys_macvlan_mtu: "true"
    network_veth_router: "true"
    seccomp_notify: "true"
  project: default
  server: lxd
  server_clustered: false
  server_name: erebus
  server_pid: 157990
  server_version: "3.22"
  storage: zfs
  storage_version: 0.7.5-1ubuntu16.4

Issue description
After a restart of my container I have an error which is related to systemd:
Mar 20 16:43:19 beta-wordpress systemd[1]: Starting MariaDB 10.3.22 database server...
Mar 20 16:43:20 beta-wordpress systemd[350]: mariadb.service: Failed to set up mount namespacing: Permission denied
Mar 20 16:43:20 beta-wordpress systemd[350]: mariadb.service: Failed at step NAMESPACE spawning /usr/sbin/mysqld: Permission denied
Mar 20 16:43:20 beta-wordpress systemd[1]: mariadb.service: Main process exited, code=exited, status=226/NAMESPACE
Mar 20 16:43:20 beta-wordpress systemd[1]: mariadb.service: Failed with result 'exit-code'.
Mar 20 16:43:20 beta-wordpress systemd[1]: Failed to start MariaDB 10.3.22 database server.

I got the same error on the systemd-networkd service.
I have not changed anything in my container configuration. If I start the service manually it works perfectly.
I had the case on another container where the "redis" service was not working with the same error.

What's the distro in the container?
Can you also show your dmesg output around the time this happens?

Nothing into dmesg but in syslog I see this:
Mar 20 17:07:45 host kernel: [43286694.926594] audit: type=1400 audit(1584720465.171:19664): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-beta-wordpress_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/bin/" pid=92914 comm="(mysqld)" flags="ro, remount, noatime, bind"
Mar 20 17:09:04 host kernel: [43286774.575423] audit: type=1400 audit(1584720544.818:19666): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-beta-wordpress_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/bin/" pid=96632 comm="(ionclean)" flags="ro, remount, noatime, bind"

The 2 containers are a Debian 10

Can you see if setting security.nesting=true on the container and restarting it fixes that?

Yes after passing the parameter all services are working again.

I just checked LXD's source code and we do set the right options for the filter in this case.
The problem is likely one of the very many apparmor mount enforcement bugs that we have opened over the years...
If security.nesting=true works for you, I'd suggest you do that for the time being. It comes with no additional security concerns so long as the container isn't also privileged.
I'm closing the issue as unfortunately the profile we generate is correct and does allow the action you show as denied above, the issue is a parser/kernel bug in apparmor.

Thank you for your quick help!
Where can I see in the documentation what the parameter "security.nesting" does? I saw on this link that it was used to launch Docker but what does it do exactly ?
https://lxd.readthedocs.io/en/latest/

Yeah, it does two main things:

Propagate a /proc and /sys mount into a hidden location to bypass a kernel limitation
Allow arbitrary bind-mounts, so that a container filesystem can be setup.

The second part is what's making systemd work in your case.


I can't get the permissions

Basic Information
Device type: ________
OS version: 5.1.1
EasyPermissions version: 1.1.3
I use easypermissions to get permissions,I promiss the permissions,but when
EasyPermissions.hasPermissions(this, PositionActivity.LOCATION_AND_CONTACTS)
still return false
@AfterPermissionGranted(PositionActivity.RC_LOCATION_CONTACTS_PERM)     public void findPosition() {         if (EasyPermissions.hasPermissions(this, PositionActivity.LOCATION_AND_CONTACTS)) {             // Have permissions, do the thing!             BaiDuLocation.getLocationClient().start();         } else {             // Ask for both permissions             EasyPermissions.requestPermissions(                     this,                     "获取定位需要开启权限",                     PositionActivity.RC_LOCATION_CONTACTS_PERM,                     PositionActivity.LOCATION_AND_CONTACTS);         }     }
public static final String[] LOCATION_AND_CONTACTS =             {Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.WRITE_EXTERNAL_STORAGE};  public static final int RC_LOCATION_CONTACTS_PERM = 124;

I got the reason 。Because the phone ，it is 23，but it needn't to get the permissions 。so everytime it got
to regest the perssion but return false 。


Start with existing init image?

Hi, is it possible to start with an existing image instead of generating from scratch?

Yes, see fork https://github.com/talesofai/AnimateDiff   , that one has an example of an initial image being used on example 10.

According to the 10-InitImageYoimiya.yaml and tutorial, I got the following results. Unlike the given yoimiya example, it seems that the generated contents are not very consistent with the initial image. May I make some mistakes?

Oh, I know the mistake! There are some differences in animated.py of two repositories. The updated results are consistent with the tutorials.

When trying to run the provided example as-is, I'm getting an error:
  File "/content/animatediff_image/scripts/animate.py", line 100, in main
    pipeline.text_encoder = convert_ldm_clip_checkpoint(base_state_dict)
  File "/content/animatediff_image/animatediff/utils/convert_from_ckpt.py", line 726, in convert_ldm_clip_checkpoint
    text_model.load_state_dict(text_model_dict)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 2041, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for CLIPTextModel:
	Unexpected key(s) in state_dict: "text_model.embeddings.position_ids".

Are there specific library / checkpoint versions I should be using?

despite the recent help from LLM models it seems like many of these issues are still outstanding. I wish I had time to put towards fixing even just this one,


Reduce interrupt limit

Having to hit Ctrl+C 7 times doesn't make for the best user experience. We should only have to hit Ctrl+C once, and then get prompted to hit it again in order to kill the process.

Sounds good to me! Why don't you open a PR.


Use named imports for @rapideditor/country-coder

Hey @tsmock  - I think you told me a while ago what this was for, but I don't remember now.
Did it end up not mattering?
Bundlers should be able to handle either the * import or the named import the same?

I think you told me a while ago what this was for, but I don't remember now.

Neither do I.
What I ended up doing for the TM was creating a script element set to a CDN, which also drastically reduced the TM build time (when I was testing the difference, it was ~18 minutes to ~3 minutes). I think I might have done this when debugging something, and I thought I might as well pass the changes along.

Bundlers should be able to handle either the * import or the named import the same?

I think it depends upon the bundler and how "smart" it is.

ok good to know!  I will close this for now - it was probably just some issue with the TM tooling.


Update pydantic.md

Fix User -> UserType in the pydantic docs
Description
Fixes an incorrect reference in the Pydantic documentation
Types of Changes

[ ] Core
[ ] Bugfix
[ ] New feature
[ ] Enhancement/optimization
[x] Documentation

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] I have tested the changes and verified that they work and don't break anything (as well as I can manage).

Hi, thanks for contributing to Strawberry 🍓!
We noticed that this PR is missing a RELEASE.md file. We use that to automatically do releases here on GitHub and, most importantly, to PyPI!
So as soon as this PR is merged, a release will be made 🚀.
Here's an example of RELEASE.md:
Release type: patch

Description of the changes, ideally with some examples, if adding a new feature.

Release type can be one of patch, minor or major. We use semver,so make sure to pick the appropriate type. If in doubt feel free to ask :)

@patrick91 do we want a patch file (and release) if the only changes are documentation?

we need a release to update docs, but considering I'll merge another PR soon I think we can remove it from here, will do when I merge the other PR :)
@peniqliotuv thanks for the fix! will merge later today 😊


Fix graph node instance

Details in commit messages

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 5.644%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

service/src/graph_node.rs
0
3
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
78

Relevant Lines:
1382

💛  - Coveralls

The code looks good, would you be able to post some examples of what the expected requests look like?
I'm asking because the previous format doesn't seem to process anymore and I started to get "Empty reply from server"

:red_circle: as expected!

And now :green_circle: !
Though it looks that Semantic PR is not set to accept revert commits

lgtm! I will request an update to our org semantics settings for revert commits, you could also rewrite the commit message, or drop the commit (don't know if it is more conventional to use Merge and Revert commits, I usually prefer rebase and squash commits for a linear and concise git history

Yup, we can definitely squash this one


Authentication in Maintanence Mode

Problem
When the maintanence mode is enabled and nobody is logged in, the modal for "session expired" will be shown. this overlays the login-page from the admin area.

Technical Details

Pagekit version: 1.0.7
Webserver: Apache/2.4.20
Database: MySQL
PHP Version: 7.0.6

I think this is caused by the translation API route which is blocked falsely by the maintenance listener. Currently API routes are only accessible in maintenance mode by administrators or uses with  maintenance privileges.
The latest Pagekit update introduced this new feature of authenticating requests blocked because of maintenance mode  (https://github.com/pagekit/pagekit/issues/727). So prior to this update just wrong translations where shown. Now this bug is more present :)
We have to find a way to allow some routes to be requested unauthenticated in maintenance mode.


Fix installation from GitHub

Currently, trying to install the package from GitHub with pip install https://github.com/online-ml/river-torch --upgrade leads to the following error:

ERROR: Cannot unpack file /tmp/pip-unpack-8zu6salu/river-torch (downloaded from /tmp/pip-req-build-mlo_scrb, content-type: text/html; charset=utf-8); cannot detect archive format
ERROR: Cannot determine archive format of /tmp/pip-req-build-mlo_scrb

Up

Hi,
for the moment, you can try to install it with pip install https://github.com/online-ml/river-torch/archive/refs/heads/master.zip.
Best
Cedric

This also gives an error.

Installation from GitHub should now work as intended. (Tested on Google Colab with Python 3.7 and locally with Python 3.10)


macOS: upgrade earliest supported version to 10.13

The documentation already says >= 10.13
https://sharp.pixelplumbing.com/install#prebuilt-binaries
Also:

Block use of API newer than deployment target, will fail compilation if found
Temporarily patch orc to prevent use of pthread_jit_ functions on 10.x (x64)

Looks like the latest meson v0.64.0 as installed via Homebrew is broken (updated < 1 hour ago).

Ouch, perhaps removing brew update would temporally fix that?
https://github.com/lovell/sharp-libvips/blob/34c25b5b93417d67d408d3385abaeb1832027e5b/.github/workflows/build-release.yml#L44
IIUC, that would prevent Meson from being updated. But when GitHub updates its macOS runners it probably starts failing again. :(

... looking at the logs, I see this:
==> Pouring<EMAIL_ADDRESS>Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3-3.11
Target /usr/local/bin/2to3-3.11
already exists. You may want to remove it:
  rm '/usr/local/bin/2to3-3.11'

To force the link and overwrite all conflicting files:
  brew link --overwrite<EMAIL_ADDRESS>
To list all files that would be deleted:
  brew link --overwrite --dry-run<EMAIL_ADDRESS>
Possible conflicting files are:
/usr/local/bin/2to3-3.11 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/2to3-3.11
/usr/local/bin/idle3.11 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/idle3.11
/usr/local/bin/pydoc3.11 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/pydoc3.11
/usr/local/bin/python3.11 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
/usr/local/bin/python3.11-config -> /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11-config

Looks like Homebrew is migrating to Python 3.11.
<EMAIL_ADDRESS>We could consider reverting https://github.com/lovell/sharp-libvips/pull/163 if this happens more often. Perhaps that issue was fixed with commit https://github.com/actions/runner-images/commit/f6632ff53b24db9705c5b15bf90dbf05cc3fe295?

Ah, maybe we should try using actions/setup-python? I'll try in a separate PR.
The sharp CI environment uses this to pin Python v3.10 as the version of node-gyp provided by Node.js 14 doesn't work with v3.11.
https://github.com/lovell/sharp/blob/ca22af203f77dc484d57e934e3a2c5b057e095f6/.github/workflows/ci.yml#L81-L85

Quickest solution was to temporarily remove brew update for now via https://github.com/lovell/sharp-libvips/commit/033f05adad92ea1572d05b7e4db8e9676a20ca23
This can be added back once every Python-dependent package in Homebrew has been updated.

Does this mean that libvips older than 10.13 is no longer supported? I have a globally built libvips (vips-8.11.4-Thu Sep 23 09:40:01 UTC 2021) but no matter what I do, npm install --build-from-source still tries to download the latest 8.13.3, which results in the same error:
dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Users/jiinjoo/repos/media-service/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Users/jiinjoo/repos/media-service/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

@ongjiinjoo Please see https://github.com/lovell/sharp/issues/3438 for the details behind this.


Stack chart?

Hi
I have a question.
Do you have a plan to provide Stack chart?
Thanks!

at the moment no but ill leave this up as an enhancement for future reference

@imman731 take a look at the overlay chart with overlayBars: true option

@imman731 the overlayBars don't stack though like a stacked bar chart should, they just sit in front of each other to provide an overlay

Hi, could you find something to stack the bar ? cause I have a line chart which overlays a bar chart and at the beginning i think it was stacked with the overlayBars: true and I have had incorrect results
Now I understand that the bar sit in front of each other ...
Do you have a plan to provide an Overlay Stack chart?


Additional Unit tests for UsersTeamsControllerService

Related EPIC https://github.com/Aiven-Open/klaw/issues/2427
Use cases that require additional unit tests.
getTeamDetails

Attempt to get Team that does not exist
Get Team from Tenant that does not exist. (See line 255)
Get Team which has no RequestEnvList associated

addTwoDefaultTeams & addNewTeam

Add Team where the teamname already exists
Expect Not Authorized response
Have the DB return "Failure. Team already exists" on save
Successfully save team
Successfully save multiple teams

Hello @aindriu-aiven I followed the instructions  to open the pull request, but I cannot add any reviewers, please can you guide me on the next steps. Thanks.

@khatibtamal Superstar, I've added myself as a reviewer, I am currently away at at onsite, but I am going to try review this tonight or tomorrow morning.
Thanks a million for your contribution it is greatly appreciated!

@aindriu-aiven no problem, glad to be contributing. I will get started on #2485 meanwhile.


Adding Laravel dependencies

Because this can cause other builds to fail (trying to install things that are already here) and it's the first time we're including anything in this container aside from standard PHP, I'd like some feedback before merging this in.
// @mabon @jmauerhan @mh3720 Thoughts?

We are also switching all of our apps to use the combined fpm/nginx container.  Running them separately, both the fpm/nginx containers need to be redeployed when your application is updated. Nginx maintains an internal DNS cache, so while Docker may ensure zero downtime for fpm containers, nginx's internal workings can still create problems. The only way to solve this (that I've found) is to restart the nginx process.
Having these processes on the same container eliminates the problem altogether.

For those pesky running composer as root messages, you can do this btw.
https://getcomposer.org/doc/03-cli.md#composer-allow-superuser

There appears to be no objections, so I'm proceeding.


Fix test bundling on physical iOS devices

This PR fixes #1297.
Caveats

Running tests on iOS works only in release mode (patrol test --release).

Hot Restart doesn't work.
That's because, in a Flutter app built in release mode, there's no Dart VM that can JIT compile code.
In other words, for Hot Restart to work, the app must be started in debug mode on iOS.
Starting the app in debug mode on iOS is mutually exclusive with test bundling.
A workaround would be to not use test bundling at all when using Hot Restart.
This would require re-adding the code that was present before test bundling.
But even if we fixed this and re-added that, Hot Restart on iOS wouldn't work right away. We'd also have to fix #1059.

Enabling or disabling airplane mode crashes the test suite.

cc: @mateuszwojtczak, @jBorkowska

Tested locally on my private iPhone and iPad and it works. Here's the xcresult:

TODO:
Print error message when trying to patrol test on physical iOS device.

Running tests on a physical iOS devices requires the --release flag.

Are these limitations documented anywhere (do you have any changelog?)?

* Running tests on iOS works only in release mode (`patrol test --release`).

What is the predicted impact of this limitation? Is there any benefit of debug mode testing?

* Enabling or disabling airplane mode crashes the test suite.

Because of some connection issue?

Do we plan using go-ios?

go-ios is a replacement for ios-deploy. And since in this PR I've removed our usage of ios-deploy, using go-ios doesn't make much sense anymore.

@shilangyu

Are these limitations documented anywhere (do you have any changelog?)?

Yes, we do, although it's pretty basic (https://pub.dev/packages/patrol/changelog).
We'll be rewriting the docs for 2.0 + writing a migration guide.

Enabling or disabling airplane mode crashes the test suite.

I don't know, but I suspect it's because Patrol (running in the app under tests) makes HTTP requests to the Patrol server (running in the instrumentation app). More specifically, all communication between these 2 apps happen over gRPC (which builds on HTTP/2’s long-lived connections).
And toggling (yes, toggling - everything works when airplane mode is disabled, and enabling it results in tests crashing) airplane mode probably somehow interferes with this.


Update requirements.txt

PyYAML 3.12 is not working. It cannot be installed (it generates 51 warnings and 15 errors while compiling)

51 warnings and 15 errors generated. error: command 'clang' failed with exit status 1

Haha, I guess you got the answer. Issues were deliberately disabled. Otherwise, there would have been a response.


Update "allowableConversionType" lists

I've noticed that the list of "allowableConversionType" for the sport scales are not aligned.
Scale A might have Scale B as allowed conversion but not Viceversa.
It looks like this was more of an oversight than an intentional result.
I'm assuming that the purpose for this variable was to prevent conversion between bouldering and sport grades. But maybe there is more to it.
Either way maybe there is some potential here for some refactoring and to apply the DRY principle.

Yes, I agree that there is much room for improvement here...


code review cleanups

Various code review cleanups from Marica's reviews.
Discovered some design patterns I want to fix outside of this PR:

functions and statements should return something like ChannelMessage. Basically, no user-defined function should really be called self.send_channel_message - instead, it should just return things and whatever it returns gets sent. This will help reduce multiple payloads and make point 2 easier to implement
All functions should return things to the channel for the channel to use (e.g NOW should send the current time to the slack channel)
It should be way easier to manipulate the main parse loop. I've done this before via register_step : (a -> M b) -> M a -> M b, basically a function that is injected into the main parse loop and can manipulate

assigned based on the WIP tag in the title

That's better! though I think it still needs some extra tweaking - I'm not if things like . or .* should be allowed without other patterns to restrict it

@ento back to you!


Request

Great Theme!!
Feature Request
Adding options to the theme settings:

[ ] Custom fonts from google cdn.
[ ] Update to the latest Font Awesome.
[ ] Alternate between Font Awesome & Google Material Icons.

Thank you @dangerstudios .
Actually, I had tried to update the Font Awesome icons, but the final effect was lower than my imagination.
I will consider your requests in the future updates.

@dangerstudios Feature 1 and 3 have been supported in the last release 1.1.1.

AWESOME!!!


Fix/wrong ordering on supplementary ocr

i believe from the point of view of the unstructured library, this "intermediate" ordering won't matter much since a significant reordering happens as part of https://github.com/Unstructured-IO/unstructured/pull/1161/files#diff-cefa2d296ae7ffcf5c28b5734d5c7d506fbdb225c05a0bc27c6b755d5424ffda

Yeah, however, is changing the correct order of some tests, the one I've been tracking for checking is the test_unstructured_ingest/download/s3/small-pdf-set/Silent-Giant-(1).pdf file.  The expected output shows:
"text": "Nuclear energy is a proven solution ...
"text": "Energy is the essential agent ...
"text": "Nuclear energy has shown ...
and should be:
"text": "Energy is the essential agent ...
"text": "Nuclear energy is a proven solution ...
"text": "Nuclear energy has shown ...
But, I'm noting that the result of the ingest-test for this file is distinct from than partition call with the same file. (Partition call shows the content correctly)


Allow specifying parallel_tool_calls=False in ToolDef

While the execution of tools in parallel is available via ToolDef.parallel, actually specifying that the model itself is not allowed to call a tool in parallel (i.e. multiple times in a single turn) like https://platform.openai.com/docs/guides/function-calling/configuring-parallel-function-calling is not currently available.
As a concrete example, if a model is given a select_option tool, we only allow it to call select_option once per response.
For example, an implementation using a hypothetical ToolDef.multiple_tool_calls_per_response_allowed in call_model (name arbitrarily chosen for illustration).
async def call_model(state: TaskState, tools: Sequence[ToolDef], no_tool_call_message: str | None = None) -> TaskState:
    tool_infos = [def_to_info(tool_def) for tool_def in tools]
    names_to_tools = {tool_def.name: tool_def for tool_def in tools}

    state.output = await get_model().generate(state.messages, tools=tool_infos)
    state.messages.append(state.output.message)

    if state.output.message.tool_calls is None:
        if no_tool_call_message is not None:
            # Anthropic models do not allow 2 consecutive assistant messages
            message: ChatMessage = ChatMessageUser(content=no_tool_call_message)
            state.messages.append(message)
        return state

    tool_calls: list[ToolCall] = state.output.message.tool_calls

    tool_call_count_per_tool = collections.Counter(tool_call.function for tool_call in tool_calls)

    for tool_call in tool_calls:
        tool = names_to_tools[tool_call.function]

        # check for disallowed parallel tool calls, creating one error per tool call in case there's
        # apis which enforce that each tool call gets a response
        if not tool.multiple_tool_calls_per_response_allowed and tool_call_count_per_tool[tool_call.function] > 1:
            content = (
                f"Only one tool call at a time allowed for {tool.name} but "
                f"{tool_call_count_per_tool[tool_call.function]} found"
            )
            tool_call_error = ToolCallError(type="parsing", message=content)
            message = ChatMessageTool(
                tool_call_id=tool_call.id, function=tool.name, content=content, error=tool_call_error
            )
            state.messages.append(message)
            continue

We actually had this but took it out (thinking that our making the tool calls sequential was enough). But if you think we should we can bring this code back:
https://github.com/UKGovernmentBEIS/inspect_ai/commit/c2c9190a9aa6844a0aa82597c3bd94e936cfd527#diff-7c1c5a97261e2f87c1c3fd17c1cd3f6e68e66a1fb26e5701ed02b7f395866bbbL229
Does that cover this concern?

I think that would cover it. There might be a requirement to control them separately but I don't think we have that yet.
In any case I think we should make it clear in the docs that there are 2 things:

models calling a tool multiple times in one message
executing multiple tools in parallel

there is a world where you let the model call multiple tools in a single message but they still get executed serially

okay, resolved here: https://github.com/UKGovernmentBEIS/inspect_ai/commit/7394bd9b1ccbf3d114e9da5f8c150fc0b55599b2


Max number of accounts per region per SUB

Max number of accounts should read max number of accounts per region per subscription or otherwise indicate its per sub.

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

ID: 93ca706a-09d1-39dc-80b5-3df2a180a5e9
Version Independent ID: 72abc701-095f-3f2f-b35c-0161e4980c1e
Content: Resource limits for Azure NetApp Files
Content Source: articles/azure-netapp-files/azure-netapp-files-resource-limits.md
Service: azure-netapp-files
GitHub Login: @b-juche
Microsoft Alias: b-juche

@elfcounsel - thanks for the input.  We'll run this suggestion by our subject matter experts and implement after verification.

@elfcounsel Thanks for bringing this to our attention. Your feedback has been shared with the content owner for further review.

@elfcounsel - Thanks again for calling out this change.  We changed the limit description
From:
Number of NetApp accounts per Azure region
To:
Number of NetApp accounts per Azure region per subscription
The change is in the pipeline for publishing.  ETA: 12/2/2020.
Let me know if you have further comments.

Change made in PR 139570, merged for publishing.
#please-close


Implement Lambda warmer

Hey @michaeldimoudis, what if you were to use the Amazon.Lambda.AspNetCoreServer.ApplicationLoadBalancerFunction. How would you implement this, it doesn't seem to have "request.Resource". Would you then just dissect the json body and check if it's a lambda warmer request?

Hi @bsthomsen I'm not sure sorry as I haven't had to do this before. I'm guessing it should be possible though? However if you are using an ALB, why not make the health check your Lambda so you won't need a warmer then?

Hi guys,  has anyone implemented a customruntime and used Amazon.Lambda.AspNetCoreServer.ApplicationLoadBalancerFunction instead of  Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction

Ended up resolving it like this, for ApplicationLoadBalancer:
https://gist.github.com/bsthomsen/f6397b1e171b91387c2a65bfb05169c5

Thanks @bsthomsen!!

I got your code to work but somehow cannot get a response correctly from the modified Lambda although routing and methods fire.
Method:
[HttpGet("get")]
[ProducesResponseType(typeof(void), (int)HttpStatusCode.BadRequest)]
public IActionResult Get()
{
LambdaLogger.Log("Test Get Fired");
return StatusCode(500, "TestAPI returned GET");
}
Logs:

04:23:13
Request does not contain ELB information but is derived from ApplicationLoadBalancerFunction.

04:23:13
[Debug] Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction: ASP.NET Core Request PathBase: , Path: /api/test/get

04:23:13
ASP.NET Core Request PathBase: , Path: /api/test/get

04:23:13
Test Get Fired

04:23:13
[Debug] Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction: Response Base 64 Encoded: False
I am trying to fire through the ApplicationGateway vs the ALB but thought methods should return anyways.

@richardkeller411 if you use the ApiGateway you should use the code in this pull request instead. The code I wrote is for when you're using ApplicationLoadBalancer.

I’m using ALB but can’t seem to get response to return although I have the method firing and see it in the Post Method overloads that I have logging.    The APIGateway message is part of the SDK logging from the ALB method

@richardkeller411 you need to update your LambdaEntryPoint to reflect the other class I posted, I've added it to the gist so you can see how I did it:
https://gist.github.com/bsthomsen/f6397b1e171b91387c2a65bfb05169c5#file-lambdaentrypoint-cs

I did that already.

For anyone else looking at ALB...  You need to make sure security groups account for HTTP Traffic Inbound and if you method connects to a Database or External HTTP call you need to have your VPC setup right with NAT Gateway and DB Internal Ports.


Geocoder error

this is from SoulissApp logcat
08-25 21:02:51.994    6320-6320/it.angelic.soulissclient:souliss_process E/SoulissApp﹕ Geocoder ERROR
java.io.IOException: Timed out waiting for response from server
at android.location.Geocoder.getFromLocation(Geocoder.java:136)
at it.angelic.soulissclient.LauncherActivity$13.run(LauncherActivity.java:757)
at java.lang.Thread.run(Thread.java:841)

this is quite common, since the reverse lookup tries to find the name of your location by your coordinates, thus needing both an active connection and GPS fresh coords. If one of these fails/is not available, you got that on log.
What about front-end? Main screen should write out your current position name (town, city, whatever). Does this work?

Oh I see.. Yes it is work... I see my location..
On Aug 26, 2015 6:07 AM, "shineangelic"<EMAIL_ADDRESS>wrote:

this is quite common, since the reverse lookup tries to find the name of
your location by your coordinates, thus needing both an active connection
and GPS fresh coords. If one of these fails/is not available, you got that
on log.
What about front-end? Main screen should write out your current position
name (town, city, whatever). Does this work?
—
Reply to this email directly or view it on GitHub
https://github.com/souliss/soulissapp/issues/27#issuecomment-134766439.


Add example for Amazon VPC CNI Network Policy feature

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

What is the outcome that you are trying to reach?
Amazon announced native Network Policy support through Amazon VPC CNI (https://aws.amazon.com/about-aws/whats-new/2023/08/amazon-vpc-cni-kubernetes-networkpolicy-enforcement/). Adding an example how to use Network Policies with Amazon VPC CNI helps user to get started.
Describe the solution you would like
Add TF code (inside examples folder) how to use Network Policies with Amazon VPC CNI
Describe alternatives you have considered
N/A
Additional context

Thank you for working on this @valentinwidmer 👍

are there examples or PRs? If not I could help contribute

https://github.com/aws-ia/terraform-aws-eks-blueprints/pull/1781

are there examples or PRs? If not I could help contribute
my own setting
    vpc-cni = {
      configuration_values = jsonencode({
        enableNetworkPolicy = "true",
        init = {
          env = {
            DISABLE_TCP_EARLY_DEMUX = "true"
          }
        }
        env = {
          ENABLE_POD_ENI                    = "true",
          POD_SECURITY_GROUP_ENFORCING_MODE = "standard",
          AWS_VPC_K8S_CNI_EXTERNALSNAT      = "true"
      } })
    }

Hi @alanwu4321 . Thanks a lot for your contribution. I've already raise a PR https://github.com/aws-ia/terraform-aws-eks-blueprints/pull/1781


Set up benchmarking with vbench

I would like to give vbench [1, 2] a try for monitoring performance over time.
There are many convolution libraries we could compare our speed against,
to get started let's compare against scipy.ndimage.convolve [3]
[1] https://github.com/wesm/vbench
[2] http://wesmckinney.com/blog/?p=373
[3] http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.filters.convolve.html

I just saw this:
http://pythonimaging.blogspot.com/2011/08/why-opencv-is-so-fast.html
We can use opencv for speed comparisons, though.
And we could look at how they generate their C, C++ and python API.


Help Please

How can i get names?

That's not possible at this moment.

Store.Contact.find -> name value sometimes working.


Parametrize visdom connection better

Currently experiments are connecting to a local Visdom server. Conection string needs to be parametrized to allow a remote visdom.

Closed by 2ae53ec129965e81316bff4fb06a7c9dc58107c9


Angular routing / sails routing question

Before I dig into the code for the sails routing system I have a question to see if my idea is even sound.
Is it possible to create a custom hook that would act as a navigator and catch requests before they hit the sails routing system?
I ask this because I find using a dummy controller to render a view to render an angular page a cumbersome solution that traverses the the framework when it isn't needed.
My ides is to create a feature that acts as a buffer between the client and sails when requests are sent. This buffer, or navigator, would examine the prefix for the api system in blueprints and either return the index.html in the public folder or forward the request to the api in sails. This would then negate the need to specify all angular routes in routes.js, dummy controllers and the loopback that is currently needed when angular is used with sails.
Thoughts?

@blah238 just noticed this... Thanks for that reference, I hope that "boilerplate" has help you people.


Adding AES ECB mode for the EncryptTool

One more readme file to be modified : KeyGenDistributed/README.md

One more readme file to be modified : KeyGenDistributed/README.md
Looks good otherwise

That README.md doesn't use EncryptTool. I only updated the EncryptTool executable and not the KeyGenDistributed executable.

One more readme file to be modified : KeyGenDistributed/README.md
Looks good otherwise

That README.md doesn't use EncryptTool. I only updated the EncryptTool executable and not the KeyGenDistributed executable.

Oh I see. In the updated code, the flag "--key-type" would represent different things in these 2 commands. This is of course okay, but may not be crystal clear. The user will need to specify "--key-type=aes" in the first command (KeyGenDistributed) and "--key-type=aes-ocb" in the second command (EncryptTool).
KeyGenDistributed --user=alice --token=$QRYPT_TOKEN --key-type=aes --metadata-filename=aes_metadata.bin --key-filename=alice_aes.bin
EncryptTool --op=encrypt --key-type=aes-ocb --key-filename=alice_aes.bin --file-type=bitmap --input-filename=/workspace/files/tux.bmp --output-filename=aes_encrypted_tux.bmp

How about if we introduce a separate flag "--aes-mode" for EncryptTool with ocb as its default. I think it might be more clear this way. Thoughts?
EncryptTool --op=encrypt --key-type=aes --aes-mode=ecb --key-filename=alice_aes.bin --file-type=bitmap --input-filename=/workspace/files/tux.bmp --output-filename=aes_encrypted_tux.bmp

One more readme file to be modified : KeyGenDistributed/README.md
Looks good otherwise

That README.md doesn't use EncryptTool. I only updated the EncryptTool executable and not the KeyGenDistributed executable.

Oh I see. In the updated code, the flag "--key-type" would represent different things in these 2 commands. This is of course okay, but may not be crystal clear. The user will need to specify "--key-type=aes" in the first command (KeyGenDistributed) and "--key-type=aes-ocb" in the second command (EncryptTool).
KeyGenDistributed --user=alice --token=$QRYPT_TOKEN --key-type=aes --metadata-filename=aes_metadata.bin --key-filename=alice_aes.bin
EncryptTool --op=encrypt --key-type=aes-ocb --key-filename=alice_aes.bin --file-type=bitmap --input-filename=/workspace/files/tux.bmp --output-filename=aes_encrypted_tux.bmp

How about if we introduce a separate flag "--aes-mode" for EncryptTool with ocb as its default. I think it might be more clear this way. Thoughts?
EncryptTool --op=encrypt --key-type=aes --aes-mode=ecb --key-filename=alice_aes.bin --file-type=bitmap --input-filename=/workspace/files/tux.bmp --output-filename=aes_encrypted_tux.bmp

That sounds good. Done!

That sounds good. Done!
Looks good thanks!