Print generation result for each generated files

Codecov Report

Merging #116 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #116   +/-   ##
=======================================
  Coverage   60.61%   60.61%
=======================================
  Files          40       40
  Lines        1338     1338
=======================================
  Hits          811      811
  Misses        470      470
  Partials       57       57

Continue to review full report at Codecov.

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


Machine Config Controller does not retry draining nodes: stuck in degraded

Describe the bug

I upgraded the cluster to 4.7.0-0.okd-2021-04-11-124433, and in the part when worker nodes should reboot with new machine config, the node has stuck in degraded state. The reason for that was node timed out while draining (due to a pdb) and the machine-controller didn't retry anymore even after I drained the node manually and fixed the drain issue. I rebooted the node and restarted the machine-config-controller, but it didn't help and node was still stuck in degraded state.
oc describe mcp worker
    Message:               Node okd4-worker-worker-1 is reporting: "failed to drain node (5 tries): timed out waiting for the condition: [error when evicting pods/\"elasticsearch-sample-es-default-1\" -n
\"jaeger-pro-es\": global timeout reached: 1m30s, error when evicting pods/\"elasticsearch-sample-es-default-1\" -n \"jaeger-system-pro-es\": global timeout reached: 1m30s]"

I also change node annotations to match a node which wasn't updated yet:
    machineconfiguration.openshift.io/currentConfig: rendered-worker-ebe004d73753a16b988adbf1dcc3a57d
    machineconfiguration.openshift.io/desiredConfig: rendered-worker-ebe004d73753a16b988adbf1dcc3a57d
    machineconfiguration.openshift.io/reason: ""
    machineconfiguration.openshift.io/state: Done

Machine-config-controller continued updating nodes, but the same node still got degraded this time with:
    machineconfiguration.openshift.io/reason: 'unexpected on-disk state validating against rendered-worker-8f1e87f0faa38cf72b460505d6e1de20: expected target osImageURL "quay.io/openshift/okd-content@sha256:16da407404e6cedf64b0b6680ddac2bc2e2a3cc6b761fb8ff92d23ef55c7cfdb", have "quay.io/openshift/okd-content@sha256:21a90d62459c272718c77ce5e28cd38026b877cb3461c193f687c37a696db57e"'

Version
4.7.0-0.okd-2021-04-11-124433

@vrutkovs Should I fill an issue in machine-config-controller repo too?

The reason for that was node timed out while draining (due to a pdb)

There is nothing MCO can do about this.

I rebooted the node and restarted the machine-config-controller

What was the output of machine-config-daemon on that node?

@vrutkovs

What was the output of machine-config-daemon on that node?

The same thing as annotation reason:
unexpected on-disk state validating against rendered-worker-8f1e87f0faa38cf72b460505d6e1de20: expected target osImageURL "quay.io/openshift/okd-content@sha256:16da407404e6cedf64b0b6680ddac2bc2e2a3cc6b761fb8ff92d23ef55c7cfdb", have "quay.io/openshift/okd-content@sha256:21a90d62459c272718c77ce5e28cd38026b877cb3461c193f687c37a696db57e

I tried annotating node's machineconfiguration.openshift.io/currentConfig equal to not updated nodes, and also updated nodes, but in either case I received the similar issue.

As I found in the code here, if the function returns false, then we need to perform an update. However, here if OS does not match, it returns an error to here which cause to mark node as degraded and then mc-controller stops updating the nodes!

One line from the logs doesn't help me figure out all details of this issue. Please provide a must-gather

I destroyed the old worker node and upgrad completed. I'll try reproducing the issue, and if I could, I'll reopen this issue with bundle logs attached. Thanks.


Set version 0.4.0

Pull Request Test Coverage Report for Build 189

16 of 20 (80.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 80.753%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

safe_relay_service/safe/serializers.py
1
2
50.0%

safe_relay_service/safe/safe_service.py
10
13
76.92%

Totals

Change from base Build 179:
0.01%

Covered Lines:
1695

Relevant Lines:
2099

💛  - Coveralls


add api_base to _client_params

Description: This PR adds api_base to _client_params in the chat_model of LiteLLM to ensure it's included in API calls. Previously, api_base was set on the client but was not included in the parameters passed to the completion function. This change ensures that api_base is correctly passed to all API calls.
Issue: #14338
Tag maintainer: @hwchase17 @agola11
Twitter handle: @LMS_David_RS

Changed to community version in #14644.


WARN cannot connect to ftp: java.lang.Exception: cannot login to ftp: 530: null

I am using version: 0.2.6. The connector starts and initializes successfully but then it starts throwing these messages on the log. Can you please help? Just to note that I can login to the ftp site using chrome with the same credentials.
[2017-09-10 02:59:54,585] WARN cannot connect to ftp: java.lang.Exception: cannot login to ftp: 530: null (com.datamountaineer.streamreactor.connect.ftp.FtpMonitor:251)
[2017-09-10 02:59:54,586] WARN ftp monitor failed: java.lang.Exception: cannot login to ftp: 530: null (com.datamountaineer.streamreactor.connect.ftp.FtpSourcePoller:114)
[2017-09-10 02:59:54,586] INFO let's backoff PT2M (com.datamountaineer.streamreactor.connect.ftp.FtpSourcePoller:116)
[2017-09-10 03:01:55,176] INFO poll (com.datamountaineer.streamreactor.connect.ftp.FtpSourcePoller:103)

@msiddiqi Whats your configuration?

Here is my config:
name=ftp-source
#connector.class=com.datamountaineer.streamreactor.connect.ftp.source.FtpSourceConnector
connector.class=com.datamountaineer.streamreactor.connect.ftp.FtpSourceConnector
tasks.max=1
#server settings
connect.ftp.address=FTP_ADDRESS
connect.ftp.user=USER_NAME
connect.ftp.password=PASSWORD
#refresh rate, every minute
connect.ftp.refresh=PT1M
#ftp.refresh=PT1M
#ignore files older than 14 days.
connect.ftp.file.maxage=P14D
#ftp.file.maxage=P14D
#monitor /forecasts/weather/ and /logs/ for appends to files.
#any updates go to the topics weather and error-logs respectively.
#connect.ftp.monitor.tail=/ETFUser/:ftp-files,/logs/:error-logs
#keep an eye on /statuses/, files are retrieved as a whole and sent to topic status
connect.ftp.monitor.update=/data/:ftp-files-data
#ftp.monitor.update=/data/US_HEDI/Valuation/:ftp-files-data
#topic=tpc
#keystyle controls the format of the key and can be string or struct.
#string only provides the file name
#struct provides a structure with the filename and offset
connect.ftp.keystyle=struct
#ftp.keystyle=struct

@msiddiqi remove the connect prefix on the options, or build the latest jar from master, we had a regression when merging in Eneco's latest fixes. The prefix was accidently dropped. Release 3.0.0 has this, we have fixed on master.

I did try that. It was working fine with the latest version but it throws error with this version. But the latest version has other regression issue, which makes it not usable.

Build from master.

The 0.3.0 release will ignore the options being with connect which is probably why you can't connect.

So when I remove the connect prefix, I get the following error:
java.util.concurrent.ExecutionException: org.apache.kafka.connect.runtime.rest.errors.BadRequestException: Connector configuration is invalid and contains the following 6 error(s):
Missing required configuration "connect.ftp.address" which has no default value.
Missing required configuration "connect.ftp.user" which has no default value.
Missing required configuration "connect.ftp.password" which has no default value.
Missing required configuration "connect.ftp.refresh" which has no default value.
Missing required configuration "connect.ftp.file.maxage" which has no default value.
Missing required configuration "connect.ftp.keystyle" which has no default value.
You can also find the above list of errors at the endpoint /{connectorType}/config/validate
at org.apache.kafka.connect.util.ConvertingFutureCallback.result(ConvertingFutureCallback.java:79)
at org.apache.kafka.connect.util.ConvertingFutureCallback.get(ConvertingFutureCallback.java:66)
at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:97)

Can you clarify which version of the stream reactor you are using?

@msiddiqi Did you resolve your issue?

@msiddiqi I'm closing this issue as all our tests can connect.


Exit from action step with correct exit code.

By default shell exits with exit code from latest command.
In this case this is 'echo' that always exits with 0 exit code.

@vterdunov Thank you for your contribution! 🚀


Button entity to restart frigate server?

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
I would love to be able to automate a restart schedule for the frigate server via HA. I think adding a restart button entity for the integration would be the best solution.
Describe alternatives you've considered
None
Additional context
None

this has already been implemented in 5.0 beta

Is the entity hidden by default? What should the name of the entity appear as?

Oops, my bad, seems I never submitted that PR

Apologies, I’m not sure what PR is. Could you explain?
On Fri, Sep 29, 2023 at 5:21 PM Nicolas Mowen @.***>
wrote:

Oops, my bad, seems I never submitted that PR
—
Reply to this email directly, view it on GitHub
https://github.com/blakeblackshear/frigate-hass-integration/issues/547#issuecomment-1741544981,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZXWIX2HJZI26EB5UE37UMDX45CXVANCNFSM6AAAAAA5NBXTQM
.
You are receiving this because you authored the thread.Message ID:
@.***
com>

I mean, I did the work but I have not actually submitted the code to the repo yet. I was incorrect in my first statement

Ah gotcha! Thanks for your work on this project. Do you know when the next
repo will be posted?
On Fri, Sep 29, 2023 at 5:36 PM Nicolas Mowen @.***>
wrote:

I mean, I did the work but I have not actually submitted the code to the
repo yet. I was incorrect in my first statement
—
Reply to this email directly, view it on GitHub
https://github.com/blakeblackshear/frigate-hass-integration/issues/547#issuecomment-1741553085,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZXWIXYN2GCJJ5RYREGRSGDX45EM7ANCNFSM6AAAAAA5NBXTQM
.
You are receiving this because you authored the thread.Message ID:
@.***
com>

Maybe tomorrow but will have to see, I was pretty sure I submitted the code so kind of confused

Awesome! Looking forward to it, and thanks again!
On Fri, Sep 29, 2023 at 5:39 PM Nicolas Mowen @.***>
wrote:

Maybe tomorrow but will have to see, I was pretty sure I submitted the
code so kind of confused
—
Reply to this email directly, view it on GitHub
https://github.com/blakeblackshear/frigate-hass-integration/issues/547#issuecomment-1741554956,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZXWIX6EVRYQB36DCO466PLX45EZ7ANCNFSM6AAAAAA5NBXTQM
.
You are receiving this because you authored the thread.Message ID:
@.***
com>

Hey Nick,
Did this make it into one of the Frigate betas? I haven't seen this feature show up.


Valeriya: Workflows, 2 week

🥚 0. Local Development Without Git
Practice the foundational workflows of software development by learning to write
Markdown locally on your own computer using Visual Studio Code (VSCode), the
Command Line Interface (CLI), and NPM scripts to automate your code's quality
(formatting, linting and spell checking).

[x] 🥚 Folder Structures: You can explain how files and folders are stored
in your computer and can find, open or create files in your computer
without using the Command Line Interface.
🥚 Command Line Interface (CLI): In a Unix shell you can ...

[x] open a new terminal window
[x] navigate up and down directories using cd
[x] list the contents of a directory using ls
[x] view the contents of a file using cat
[x] create new files using touch
[ ] create new folders using mkdir

[x] 🥚 Markdown: You can write a document in Markdown with no syntax
mistakes that renders into a well-formatted document.
🥚 VSCode: You can complete these workflows in VScode, and can use
keyboard shortcuts to complete them all:

[x] Opening a repository in a new window
[x] Opening the VSCode terminal
[x] Adding a new file
[x] Adding a new folder
[x] Deleting a file
[x] Deleting a folder
[x] Previewing a Markdown File
[x] Formatting a Markdown document

[x] 🥚 READMEs: You can write a README file that describes the project you
are working on, why it's helpful, and how someone can use it.
🥚 NPM: You can use NPM commands to verify your code's quality, this
includes ...

[x] using npm install to install a project's dependencies
[x] reading a package.json file to find which scripts are available for
the project
[x] use npm run <script> to execute an npm script

🥚 Formatting Code: You can use Prettier to make sure all the code in your
project is well-formatted:

[x] You can use the Prettier VSCode extension to format a document while you
are writing it
[x] You can use npm run format to format all of the documents in your
project
[x] You can use npm run format:check to make sure all files are
well-formatted

🥚 Linting Folder and File Names: You can ...

[x] use npm run lint:ls to check all folder and file names in your project
[x] you can fix all linting mistakes reported by npm run lint:ls

🥚 Linting Code: You can ...

[x] use npm run lint:md to check all Markdown files in your folder for
linting mistakes
[x] you can fix all linting mistakes reported by npm run lint:md

🥚 Spell Check: You can ...

[x] use the Code Spell Checker VSCode extension to correct spelling mistakes
in your Markdown documents while you are writing
[x] use npm run spell-check to check the spelling in all the files of your
project
[x] update .cspell.json to add words that should be allowed in your
project

🥚 File and Folder Naming Conventions: You can ...

[x] identify and follow the naming conventions for the project you are
working on.
[x] use npm run lint:ls to check that all files and folders follow the
project's naming conventions.
[x] you can correct any file and folder names to make them match the project
conventions.

[ ] 🐣 File Extensions: You can identify all of the languages covered at
HYF and give the correct file extension. You don't need to know the
languages, just recognize them.
[ ] 🐣 Touch Typing: You can write a Markdown file without looking at your
keyboard to find any letters, numbers or special characters. (slowly is
ok!)

🥚 1. Local Development With Git
Practice using Git to save and organize your development process. You will learn
how you can use Git to go back to previous versions of your project, and to work
on different changes in parallel.

🥚 Git: Using the CLI you can ...

[x] Initialize a new git repository with git init
[x] stage changes using git add <path>
[x] check what is staged with git status
[x] commit changes using git commit -m <message>
[x] display your repository's git history using git log
[x] create a new branch using git branch <branch-name>
[x] check out a branch using git checkout <branch-name>
[x] create a new branch and check it out using
git checkout -b <branch-name>
[x] merge changes from one branch to another using git merge <branch-name>
[x] return to a previous version of your project with git log and
git checkout <commit-hash>
[ ] stash and retrieve uncommitted changes with git stash and git pop

🥚 .gitignore: You can use a .gitignore file to describe which files
you don't want included in your git history.
🥚 VSCode: You can ...

[ ] use the Git Graph extension to to visualize your repo's commit history
[ ] use the Git Lens extension to investigate your repository's commit
history
[x] explain how the file tree in VSCode can show you which files have
uncommitted changes

[x] 🥚 Atomic Commits: You can save your development progress using small
commits with clear and helpful message.
[x] 🐣 Feature Branches: You can organize your development process using
branches. You can create a new branch for each part of your project and
merge those changes to main when they are finished.

🥚 2. Local/Remote Development
Learn how you can connect your local Git repositories with a GitHub repository
to add more structure to your development process and to share your projects.

🥚 Licenses: You can ...

[x] explain why it's important to include a license for your code on GitHub
[ ] choose a license for your projects that matches how you want others to
use your code

[x] 🥚 GitHub SSH Key: You can connect your computer to your GitHub
account using an SSH key, clone using the SSH link, and push/pull using
your SSH connection.
🥚 GitHub Repositories: You can ...

[x] create new repository on GitHub
[x] write a description for your repository
[x] turn on GitHub Pages
[x] configure your repository to block pushing to main
[x] configure your repository to block merging to main until Continuous
Integration (CI) checks have passed

🥚 Git Remote/Local Connection: You can ...

[x] clone a remote repository to your computer
[x] initialize a new repository locally and connect it to an empty remote
repository
[x] push and pull changes between remote & local branches

[x] 🥚 Pull Requests: You can create a pull request between two branches
in your repository and merge changes without causing any conflicts.
[x] 🥚 PR templates: You can use a PR template to add a checklist to all
of your PRs so you are sure the code is great before merging to main.
[x] 🥚 Continuous Integration: You can use GitHub Actions to check your
code's quality before merging a pull request to the main branch.
[x] 🐣 Local/Remote Branching Workflow: You can use a branching workflow
that keeps mistakes away from the main branch and prevents conflicts
from happening in GitHub. For each contribution to the project you can ...

Check out a new local branch and write your code
Check out main on your local machine
Pull changes from remote main to local main
Merge changes locally from main to your new branch

Fix any conflicts on your new branch before pushing!

Format and lint your code
Push your new local branch to your remote repository
Open a Pull Request from the new branch to main

Go through the PR's checklist to make sure everything is correct
Make sure all CI checks pass!

Merge your new remote branch to main

You can delete the branch after it's merged if you want to

🐣 3. Remote Collaboration
Learn how to collaborate with a group on a single project hosted in a GitHub
repository. Practice using GitHub's project management features to organize your
group's tasks and to double-check your project's code quality.

[x] 🥚 Contributor Guidelines: Your group can define contributor
guidelines that describes how everyone can add their work to the project.
[x] 🥚 Code of Conduct: Your group can write a code of conduct for your
project that describes how everyone should communicate and what behavior
is considered unproductive.
[x] 🥚 Repository Contributors: You can add group members as collaborators
in a repository.
[x] 🥚 Issue Templates: Your group can use issue templates to make sure
all issues are complete and relevant to the project. in your repository
and merge changes without causing any conflicts.
[x] 🥚 Code Review: You can use the PR Template and CI checks to review
another group member's code before merging it to main.
🐣 GitHub Project Management: You can ...

[x] use issues to define tasks in a group project. Each issue should have a
helpful title, complete description, and helpful labels.
[x] use a Project Board to organize a project's issues
[x] claim issues and track your progress with the project board
[x] link a PR to your claimed issue
[x] assign someone to review your PR
[x] use GitHub code review features to discuss your code with your reviewer

[ ] 🐣 Fixing Merge Conflicts: You can fix merge conflicts by selecting
which change to keep, or deciding how to combine them. If a conflict
occurs in a GitHub PR you can pull both branches and fixh the conflict
locally.

🐥 4. Open Source Development
Explore the wider world of Open Source software by learning how communities of
independent developers write and maintain the code we all rely on.

[x] 🥚 Finding Issues: You can read through an open source project's
issues and determine if there is one you can help with.
[x] 🐣 Commenting in Issues: You can productively join the conversation in
an open source projects' issues.
[x] 🐥 Opening Issues: You can open a helpful issue in an open source
repository, following their contributor guidelines and code of conduct.
[ ] 🐔 Contributing: You can create a fork of an open source project and
open a PR that contributes something helpful and follows the Contributor
Guidelines and Code of Conduct.

Week 1
I Need Help With:

With all processes on, except writing md. Thanks to the help of Tam, I finished this weeks assignment. I dont have enough time to study, since we have only one laptop and it is often busy, I can use it only 5 hours. I`m going to find or ask for a laptop from you to be able to study constantly. :innocent:

What went well?

Writing Markdown.

What went less well?

Working with npm and creating pull requests, because everything is new to me.

Lessons Learned

Working with Git, working with Github, working with terminal, making pull requests.

Sunday Prep Work

In process :smiley_cat:

@V-Valkiriya Hi, you did well with your pr!! Just need to make more practice, you will get used to use VSCODE, github etc.
I will look a laptop for you to use during the course, please remind me on Sunday class!

I dont have enough time to study, since we have only one laptop and it is often busy, I can use it only 5 hours. Im going to find or ask for a laptop from you to be able to study constantly. 😇

Week 2
I Need Help With:

Installing programs on the Ubuntu operation system. Thank you, Tugba!

What went well?

Create pull requests, check it and merge.

What went less well?

I have problem with naming. Bio should be called exactly like my Github name. But the name on Github is capitalized, which contradicts the spelling of the files .md. As a result, ann error occurs.

Lessons Learned

Working with Git, working with Github, working with terminal, making pull requests teamwork.

Sunday Prep Work

In process :smiley_cat:

hi, @V-Valkiriya yes, other classmates also had difficulties with naming. It gives error if the file name is with capital letter. But I see your pr is merged and it directs to your bio md file. It's good. If you face some difficulties, get some error in vscode, you can check this website out. It is very usefull and widely used by developers.

I have problem with naming. Bio should be called exactly like my Github name. But the name on Github is capitalized, which contradicts the spelling of the files .md. As a result, ann error occurs.


Area2D doesn't respect collision layers

Area2D node detects physics bodies on any collision layer, regardless of collision mask
To Reproduce
Steps to reproduce the behavior:

Overlap an Area2D with any physics body with the Area2D collision mask and the physics collisions layer being mutually exclusive.

Output using Godot default physics:

Same scene with Rapier:

Godot v4.3.beta1 - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; <IP_ADDRESS>01) - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)

SIMD and non-SIMD

rapiermrp.zip

Investigated this, and rapier doesn't as of now support the exact same kind of filtering that godot supports. Will document this better, and see if i'll open a bug or ask for a request on rapier side to see if this can be improved.
As per their documentation, they do:
https://rapier.rs/docs/user_guides/javascript/colliders/#collision-groups-and-solver-groups
if body A is in layer that B mask looks for and B is in layer that A mask looks for, it's collision, if not it's not. They don't support asymetric collisions. Or at least not sure right now about it.
Leaving this answer here, documenting it as a limitation and closing this issue for now.


Display fuzzing results when exiting terminal

Component
Forge
Describe the feature you would like
Sometimes I set the fuzz runs to a high limit and let it run for a while. It would be nice to not have all the fuzz effort wasted and be able to see the output of a longer run, if I accidentally set the fuzz runs too high. Currently when aborting via CMD + C the terminal just exits.
Always displaying all the information could be a bit annoying however, so ideally foundry would know to display the results regardless of the abort if say, over a 30 seconds have passed since fuzzing.
Related:

#990

Additional context
No response

If nothing is printed to the terminal, then up to that point everything was passing. If a test fails the info is shown in the terminal right away. Going to close this since I'm not sure what other results you'd want to see, but feel free to reopen if I'm misunderstanding the request


Can't scroll on the scrollable dom that as zone add to editor

monaco-editor version: v0.21.2
Browser: Google Chrome v87.0.4280.141(x86_64)
OS: macOS
Playground code that reproduces the issue:
var originalModel = monaco.editor.createModel("This line is removed on the right.\njust some text\nabcd\nefgh\nSome more text", "text/plain");
var modifiedModel = monaco.editor.createModel("just some text\nabcz\nzzzzefgh\nSome more text\nThis line is removed on the left.", "text/plain");

var diffEditor = monaco.editor.createDiffEditor(document.getElementById("container"), {
	// You can optionally disable the resizing
	enableSplitViewResizing: false,

	// Render the diff inline
	renderSideBySide: false
});
diffEditor.setModel({
	original: originalModel,
	modified: modifiedModel
});
var modifiedEditor = diffEditor.getModifiedEditor();
var div = document.createElement('div');
var child = document.createElement('div');
div.style.height = '50px';
div.style['overflow-y'] = 'scroll';
child.style.height = '100px';
div.appendChild(child);
modifiedEditor.changeViewZones((accessor) => {
    accessor.addZone({
        afterLineNumber: 2,
        heightInPx: 50,
        domNode: div
    });
})

@alexdima hello, looking forward to your reply~

@alexdima hello, looking forward to your reply~

@chenmy0917 The purpose of a view zone is to reserve space and maybe render some background content that is not interacted with. The pattern we have used in the editor in case of content that needs to be interacted with is to always pair a view zone with either a content widget or an overlay widget.
Two examples from the editor core:
CodeLens: view zone + content widget:

Inline Find all References: view zone + overlay widget:

You can take inspiration from our own implementation of ZoneWidget at https://github.com/microsoft/vscode/blob/ad437ef958c8d8ce8fdbb04d99fdfd4aa2f8d7b4/src/vs/editor/contrib/zoneWidget/zoneWidget.ts#L160

@chenmy0917 The purpose of a view zone is to reserve space and maybe render some background content that is not interacted with. The pattern we have used in the editor in case of content that needs to be interacted with is to always pair a view zone with either a content widget or an overlay widget.
Two examples from the editor core:
CodeLens: view zone + content widget:

Inline Find all References: view zone + overlay widget:

You can take inspiration from our own implementation of ZoneWidget at https://github.com/microsoft/vscode/blob/ad437ef958c8d8ce8fdbb04d99fdfd4aa2f8d7b4/src/vs/editor/contrib/zoneWidget/zoneWidget.ts#L160

@chenmy0917 The purpose of a view zone is to reserve space and maybe render some background content that is not interacted with. The pattern we have used in the editor in case of content that needs to be interacted with is to always pair a view zone with either a content widget or an overlay widget.
Two examples from the editor core:
CodeLens: view zone + content widget:

Inline Find all References: view zone + overlay widget:

You can take inspiration from our own implementation of ZoneWidget at https://github.com/microsoft/vscode/blob/ad437ef958c8d8ce8fdbb04d99fdfd4aa2f8d7b4/src/vs/editor/contrib/zoneWidget/zoneWidget.ts#L160

@chenmy0917 The purpose of a view zone is to reserve space and maybe render some background content that is not interacted with. The pattern we have used in the editor in case of content that needs to be interacted with is to always pair a view zone with either a content widget or an overlay widget.
Two examples from the editor core:
CodeLens: view zone + content widget:

Inline Find all References: view zone + overlay widget:

You can take inspiration from our own implementation of ZoneWidget at https://github.com/microsoft/vscode/blob/ad437ef958c8d8ce8fdbb04d99fdfd4aa2f8d7b4/src/vs/editor/contrib/zoneWidget/zoneWidget.ts#L160

@alexdima Thank you very much for your reply, but I still have question and look forward to your help.
The feature I want is shown below:

Widget can't meet my requirements because it floats on the editor and can't separate line from line, it will obscure the line of code so I cann't see the code:

@alexdima Thank you very much for your reply, but I still have question and look forward to your help.
The feature I want is shown below:

Widget can't meet my requirements because it floats on the editor and can't separate line from line, it will obscure the line of code so I cann't see the code:

The purpose of a view zone is to reserve space and maybe render some background content that is not interacted with. The pattern we have used in the editor in case of content that needs to be interacted with is to always pair a view zone with either a content widget or an overlay widget.

@chenmy0917 You can add both a content/overlay widget and a view zone. You add the view zone to reserve the space and then position the widget precisely on top of the view zone.

The purpose of a view zone is to reserve space and maybe render some background content that is not interacted with. The pattern we have used in the editor in case of content that needs to be interacted with is to always pair a view zone with either a content widget or an overlay widget.

@chenmy0917 You can add both a content/overlay widget and a view zone. You add the view zone to reserve the space and then position the widget precisely on top of the view zone.

@alexdima OK , I will try it, thank you~

@alexdima OK , I will try it, thank you~

Hi @alexdima , I tried to use ViewZone + OverlayWidget, but I can't scroll the widget as Find all References did. Is there any config I missed ?

Hi @alexdima , I tried to use ViewZone + OverlayWidget, but I can't scroll the widget as Find all References did. Is there any config I missed ?

I guess I need to do something like this
domNode.onwheel = function (e) {
      e.stopPropagation();
};

Is this how you implement in Find all References ?

But the problem of stopPropagation is I cannot scroll the editor when I scrolled to the bottom of my OverlayWidget


Created Donate Us Section

before Change:

After Change:

Follow the PR template if you erase it, I won't merge PRs at all !!

Follow the PR template if you erase it, I won't merge PRs at all !!

Where can I find PR template?


Add English support for MultiLangText #174

Issue

close #174

Overview (Required)

Implement MultiLangText by Locale
Change default jaTitle to currentLangTitle

Links

Screenshot

Before
After

👀


Ruby 3: Entities exposing fields via Symbol#to_proc are broken

With grape-entity, I can write code like the following:
    class Blob < Grape::Entity
      expose :path
      expose :filename, &:path
    end

This utilizes Ruby's somewhat obscure & operator to call Symbol#to_proc and forward filename to path. The proc returned by this function takes the receiver of the method described by the symbol as its first argument, and the actual method parameters as the remaining arguments. Obviously the first argument is required (since it is equivalent to self), but Ruby 2 had a design issue where to_proc for symbols would report signature metadata that is not really correct. See https://rubyreferences.github.io/rubychanges/3.0.html#symbolto_proc-reported-as-lambda for a good summary.
The problem in grape-entity is this:
In Entity::exec_with_object, there is a test where grape reflects on the signature of such a block:
    def exec_with_object(options, &block)
      if block.parameters.count == 1
        instance_exec(object, &block)
      else
        instance_exec(object, options, &block)
      end
    rescue StandardError => e
      ...
    end

Here, block.parameters.count (or, block.arity) will return an incorrect value in Ruby 2:
[4] pry(#<API::Entities::Blob>)> block.parameters
=> [[:rest]]

[6] pry(#<API::Entities::Blob>)> block.arity
=> -1

This is Ruby lying about proc arity, since it tosses all possible arguments into a single optional argument (-1 means all arguments are optional, which is not true; you always need a receiver here.)
Ruby 3 fixes this:
[1] pry(#<API::Entities::Blob>)> block.parameters
=> [[:req], [:rest]]
[4] pry(#<API::Entities::Blob>)> block.arity
=> -2

This is correct: the first argument is now required, since it is the receiver of path. The second argument is the optional parameters (perhaps none.) The arity is also correct now: -2 means 1 required parameter, the rest optional.
What this means is that now grape-entity goes down the wrong code path in exec_with_object, since parameter count is now 2, not 1.
I'm not actually all that familiar with grape, I am just working on the Ruby 3 migration at GitLab so I wanted to raise awareness about this somewhat subtle issue.
A simple workaround is to rewrite the entity like so:
    class Blob < Grape::Entity
      expose :path
      expose :filename do |instance|
        instance.path
      end
    end

For reference, we added this to our base entity class:
    def self.expose(*args, &block)
      # See https://github.com/ruby-grape/grape-entity/issues/354
      # If we pass in a lambda, we pass Grape a proc that accepts the canonical number
      # of arguments (2). Then we invoke the lambda in the appropriate manner.
      if block&.lambda?
        orig_block = block
        block = proc do |obj, opts|
          if orig_block.arity <= 0
            # For things like `expose :foo, &bar
            # Obviously you'd use :bar for this but there are cases you may have a 0-arity lambda.
            # Note that nested exposures (blocks with no args) are canonically done with a block,
            # so do not hit this branch.
            instance_exec(obj, &orig_block)
          elsif orig_block.arity == 1
            orig_block.call(obj)
          elsif orig_block.arity == 2
            orig_block.call(obj, opts)
          else
            raise RuntimeError, "expose blocks must take 0, 1, or 2 parameters"
          end
        end
      end
      super(*args, &block)
    end

It succeeds for this spec:
    it "can work around Symbol.to_proc issues with grape-entity in Ruby 3" do
      entity_cls = Class.new(MyProj::Service::Entities::Base) do
        expose :value, &:value
        expose :value, as: :nested do
          expose :value, as: :nested_value
        end
        expose :delegated, &self.delegate_to(:obj, :value)
        expose(:block1) { |o| o.value }
        expose(:block2) { |_o, opts| opts[:passed_option] }
        expose :lambda1, &lambda { |o| o.value }
        expose :lambda2, &lambda { |_o, opts| opts[:passed_option] }
      end

      entity_type = Struct.new('CustomObj', :value, :obj)

      x = entity_type.new(1,entity_type.new(2, nil))
      j = entity_cls.represent(x, passed_option: 5)
      expect(JSON.parse(j.to_json)).to eq({'block1'=>1, 'block2'=>5, 'delegated'=>2, 'lambda1'=>1, 'lambda2'=>5, 'value'=>1, "nested"=>{"nested_value"=>1}})
    end

@rgalanakis Care to PR a fix?

Yeah I will try to get to it soon (unfortunately we finished upgrading all of our Ruby 2.7 projects but I should still get a chance).


Modal repeats ajax calls

Description
Hi, I have an issue with Modal component, basically, I create a modal, and open in a button click, and everything works fine, but, inside this modal, in the footer, I have a button to send an ajax post request, and the first time it works fine, and the if everything works okay, I close the modal.
But the problem that starts when you click the button again to open the modal and then the post ajax request, send two requests, and if you click again, the modal sends 3 ajax requests, and so it does Every time I open the modal, increase the count, and make that number of requests, I want to think that when the modal is closed, it does not remove it from the scope, and always creates a new one, and therefore, when I click, bubble Click on all the modal buttons and that causes, so many requests.
There is my code:
``
$('.modal').modal({
dismissible: true,
ready: function(modal, trigger) {
		$('.modal-create-task').on('click', function(e){

			var el = $(this);
			var textTask = $('.new_task').val();

			if ( textTask != "" ) {

				el.addClass('disabled');
				$.post("postURL", {
					variable: "",
				},

				function(data, status){

					if ( data.result == "success" ) { // API respond correctly

						var taskId = data.data.id;
						console.log("Id del task: " + taskId);

						$('.body-navegation').append("
" + "
" + "<input type=\"checkbox\" class=\"filled-in\" id=\"" + taskId + "\"/>" + "" + textTask + "" + "
" + "
");
						el.removeClass('disabled');
						 $('.new_task').val('');

					} else {

						alert("Error");
					}
				});

			}
		});
	},
	complete: function() {
		//alert('Closed');
	} // Callback for Modal close
});

`
Thank you so much, for everything.

You have to use .off('click').on('click', function(e)... or .one('click', function(e)...
See http://api.jquery.com/one/

Also bubbling up can be prevented by using .stopPropagation(). You attach a new click event listener every time the modal is opened. It also makes sense to remove the click event listener on close using .off('click').

Closed due inactivity. Feel free to reopen it, if it's still necessary.


Binder Exception when reading ARRAY type from Parquet (for embeddings)

I'm pushing typecasting to the limit here 😅. Am basically trying to ensure I have fine-grained control over each column's data type all the way from Python to Parquet and then into Kùzu. My aim is to replicate a typical Python workflow that would be used in similarity search.
Dependencies
I'll be using sentence-transformers to generate embeddings from raw text, as is common in many real-world scenarios.
pip install pyarrow polars kuzu sentence-transformers

Code
I first write out the vectors computed by an embedding model (from sentence-transformers) alongside the raw data to Parquet, so that I can bulk-import the data to Kùzu (computing vectors/embeddings via a model is expensive, so this would be pre-computed in a real scenario).
Note that I explicitly typecast the integers from Python (by default INT64) to UINT64 so that I can have unsigned integers in Kùzu per the graph schema below.
import os
import shutil
import kuzu

def create_db(conn):
    conn.execute(
        """
        CREATE NODE TABLE Person(
            id UINT64,
            name STRING,
            age UINT8,
            PRIMARY KEY (id)
        )
        """
    )

    conn.execute(
        """
        CREATE NODE TABLE Item(
            id UINT64,
            name STRING,
            vector DOUBLE[384],
            PRIMARY KEY (id)
        )
        """
    )

    conn.execute(
        """
        CREATE REL TABLE Purchased(
            FROM Person
            TO Item
        )
        """
    )

def write_data_to_parquet():
    import warnings
    import polars as pl
    from sentence_transformers import SentenceTransformer
    warnings.filterwarnings("ignore")

    model = SentenceTransformer("Snowflake/snowflake-arctic-embed-xs")

    persons = [
        {"id": 1, "name": "Karissa", "age": 25},
        {"id": 2, "name": "Zhang", "age": 29},
        {"id": 3, "name": "Noura", "age": 31},
    ]

    items = [
        {"id": 1, "name": "espresso machine", "vector": list(model.encode("espresso machine"))},
        {"id": 2, "name": "yoga mat", "vector": list(model.encode("yoga mat"))},
    ]

    purchased = [
        {"from": 1, "to": 1},
        {"from": 1, "to": 2},
        {"from": 2, "to": 1},
        {"from": 3, "to": 2},
    ]
    # Carefully typecast in Polars prior to exporting to Parquet so we can have unsigned integers in Kùzu
    df_persons = pl.DataFrame(persons).with_columns(
        pl.col("id").cast(pl.UInt64),
        pl.col("age").cast(pl.UInt8),
    )
    # Ensure that the `ARRAY` data type is output for the `vector` column prior to exporting to Parquet
    df_items = pl.DataFrame(items).with_columns(
        pl.col("id").cast(pl.UInt64),
        pl.col("vector").cast(pl.Array(pl.Float64, width=384)),
    )
    df_purchased = pl.DataFrame(purchased).with_columns(
        pl.col("from").cast(pl.UInt64),
        pl.col("to").cast(pl.UInt64),
    )
    print(df_persons)
    print(df_items)
    df_persons.write_parquet("persons.parquet")
    df_items.write_parquet("items.parquet")
    df_purchased.write_parquet("purchased.parquet")

def build_graph(conn):
    conn.execute(
        """
        COPY Person FROM 'persons.parquet';
        COPY Item FROM 'items.parquet';
        COPY Purchased FROM 'purchased.parquet';
        """
    )
    print("Finished importing nodes and rels")

if __name__ == "__main__":
    if os.path.exists("./vdb"):
        shutil.rmtree("./vdb")

    # Create database
    db = kuzu.Database("./vdb")
    conn = kuzu.Connection(db)
    create_db(conn)

    write_data_to_parquet()

    # Load data from parquet to graph
    build_graph(conn)

Error
Running the above code gives the following error:
Traceback (most recent call last):
  File "/Users/prrao/code/kuzu-debug/load_graph_similarity.py", line 107, in <module>
    build_graph(conn)
  File "/Users/prrao/code/kuzu-debug/load_graph_similarity.py", line 85, in build_graph
    conn.execute(
  File "/Users/prrao/code/kuzu-debug/.venv/lib/python3.11/site-packages/kuzu/connection.py", line 144, in execute
    raise RuntimeError(_query_result.getErrorMessage())
RuntimeError: Binder exception: Column `vector` type mismatch. Expected DOUBLE[384] but got DOUBLE[].

Workaround
The error disappears when I change the schema to specify the vector column as a LIST, i.e., by stating vector DOUBLE[] in the schema.
Desired behaviour
If we have the node table storing ARRAY values (based on the imported fields from Parquet), we would be able to easily run array functions for similarity search by providing a simple Python list, as the similarity search functions require at least one of the two arguments to be of type ARRAY for it to perform implicit casting. This would make the downstream Cypher query that performs similarity search less verbose and cleaner to write.
Currently, I have to write this query for it to work (requires explicit casting and the user to know a lot more about the correct syntax):
res = conn.execute(
    """
    MATCH (i:Item)
    WITH i, CAST($query_vector, "DOUBLE[384]") AS query_vector
    RETURN i.name as name, array_cosine_similarity(i.vector, query_vector) AS similarity
    ORDER BY similarity DESC
    """,
    parameters={"query_vector": query_vector}
)

What I want to be able to write is the below simpler query that doesn't require explicit casting by the user:
res = conn.execute(
    """
    MATCH (i:Item)
    RETURN i.name as name, array_cosine_similarity(i.vector, $query_vector) AS similarity
    ORDER BY similarity DESC
    """,
    parameters={"query_vector": query_vector}
)

df_items.write_parquet("items.parquet")
I think the write_parquet method of pandas dataframe marks the vector field as double[] instead of double[384]. However, kuzu should perform an implicit casting from double[] to double[384] while doing the copy.
There is already a similar issue:
https://github.com/kuzudb/kuzu/issues/2215

But doesn't this part address the type of the array and fix the width at 384?
    # Ensure that the `ARRAY` data type is output for the `vector` column prior to exporting to Parquet
    df_items = pl.DataFrame(items).with_columns(
        pl.col("id").cast(pl.UInt64),
        pl.col("vector").cast(pl.Array(pl.Float64, width=384)),
    )

I confirmed that this is the structure prior to export:
shape: (2, 3)
┌─────┬──────────────────┬─────────────────────────────────┐
│ id  ┆ name             ┆ vector                          │
│ --- ┆ ---              ┆ ---                             │
│ u64 ┆ str              ┆ array[f64, 384]                 │
╞═════╪══════════════════╪═════════════════════════════════╡
│ 1   ┆ espresso machine ┆ [0.051414, -0.015042, … -0.017… │
│ 2   ┆ yoga mat         ┆ [-0.018925, -0.034097, … 0.002… │
└─────┴──────────────────┴─────────────────────────────────┘

The underlying type is an Arrow array with a width of 384.

Yes, however if you write the structure to parquet, the column type of vector becomes double[] instead of double[384]
You can check the schema of the parquet file using:
parquet_file = pq.ParquetFile("items.parquet")
print(parquet_file.schema)

and i got:
<pyarrow._parquet.ParquetSchema object at 0x8f818c040>
required group field_id=-1 root {
  optional int64 field_id=-1 id (Int(bitWidth=64, isSigned=false));
  optional binary field_id=-1 name (String);
  optional group field_id=-1 vector (List) {
    repeated group field_id=-1 list {
      optional double field_id=-1 item;
    }
  }
}

Solved in #3887


Window maximize not caught in resize event

When a window with MultiSliders is maximized, the track size is not recalculated, and labels are not redrawn. Apparently, maximizing is treated differently from resizing.

Hello, we tried to solve the issue.
This is what we did:
Add a component listener to AbstractMultiSlider to recalculate track size and redraw labels when the window is maximized or resized.
You can review changes in this commit: https://github.com/mnmnk43434/averbraeck-djutils-80/commit/caf3d22278164c56420eaad1f6551a3e734d77b3.

[!CAUTION]
Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.

If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

There was already a ComponentListener.componentResized(...) present. Catching a maximize event as suggested above does not work -- these only exist on a JFrame or AWT Frame, not on a JPanel. The solution involved a small hack that forces a complete redraw: setUI(getUI()):
// listen to resize events to (re)set the track width or height
addComponentListener(new ComponentAdapter()
{
    @Override
    public void componentResized(final ComponentEvent e)
    {
        super.componentResized(e);
        AbstractMultiSlider.this.setUI(getUI());
        calculateTrackSize();
        AbstractMultiSlider.this.dispatcherPane.revalidate();
        AbstractMultiSlider.this.labelPanel.revalidate();
        AbstractMultiSlider.this.labelPanel.repaint();
    }
});

which is a small adaptation from the already existing code.


TextShow for Aeson KeyMap

Could a textshow instance for this type be added ? https://hackage.haskell.org/package/aeson-<IP_ADDRESS>/docs/Data-Aeson-KeyMap.html
It's used to make up the json Object type https://hackage.haskell.org/package/aeson-<IP_ADDRESS>/docs/Data-Aeson.html#t:Object

Yes, certainly. Would you like to submit a patch for this?

I can try it. I think it would be best to start with a new module TextShow.Data.Map because KeyMap uses Map. Get this done first in one patch and when it's ok then to do a second patch for KeyMap in TextShow.Data.Aeson.

Do note that there are Map instances already in TextShow.Data.Containers.

Implemented in #18.


SDK: Prettify methods & params for official endpoints

Currently our OpenAPI TS generator creates a bit too verbose & repetitive method names, e.g
```polar.products.updateProduct({ id, productUpdate})``
vs.
```polar.products.update({id, data})``
Prettify for:

[x] OAuth
[x] Products
[x] Subscriptions
[x] Orders
[x] Metrics
[x] Newsletters/articles
[x] Checkout
[x] Benefits
[x] Advertisements
[x] Files

Amazing work @frankie567 – such a nice lift 😍


VS code claims I am offline, when I'm very much online

Does this issue occur when all extensions are disabled?: Yes

VS Code Version:  1.74.3
OS Version: macos ventura

Steps to Reproduce:
If I knew, I'd know how to fix it.
When searching for extensions, VS Code claims that I am offline when I am absolutely not offline. Chrome has the same problem, where navigator.onLine says false so I suspect your code's using that flag too and that flag is completely useless, don't use it.

@deepak1556 Is there another reliable alternative?

You can just actually fetch the marketplace domain URL instead of trying to see if there's a network first: if it works, it works. If it doesn't, you handle that in the fetch catch clause?

@sandy081 not that I am aware of.
@Pomax the goal with using navigator.onLine was to provide a better notification to users (similar to offline page in browsers) when we are confident that connectivity is offline compared to other network errors we receive from the request API.  Isn't navigator.onLine meant to give a pretty confident response about offline status. Atleast on macOS, chromium implements this by registering notification via SCNetworkReachability api if <IP_ADDRESS> is reachable by any network connection on the device. Refs https://bugs.chromium.org/p/chromium/issues/detail?id=7469
Is there anything in your network setting that would make the above detection not work ?

I know Slack does something "clever" here, if it detects it's running in a browser that claims navigator.onLine is false it reports CONNECTIVITY navigator.onLine appears to be untrustworthy; enabling workaround so maybe worth asking the Slack folks what they do?

@sandy081 seems reasonable that we move the offline status check once the request has failed to address these scenarios.


only call grad once in Blend

Our use of grad is inefficient because it's called during every iteration even though the backward gradient tree doesn't change at all. Store the gradient function at the first call of _backward and call that function every time from then on.

You should just be able to set self._grad = grad(self._loss, tuple(range(len(parameters)))) in Blend.__init__. Then just call self._grad(*parameters) in self._backward.


"No Results" Option?

Hello,
Thank you very much for this very helpful tool!
Is there a feature where you can supply a phrase to be displayed if no results are found by the search?
ie: "No results found."
I read the helpful guide page but could not find record of such a feature.
Yours,
Elliot

It is not possible to do it right now.

Any progress? Thank You.

Hey guys, I'm looking for the same as if the search returns no result which is different from the schema for results, I have to refresh the page. Any workaround?

It looks like someone has sent in a pull request with this very feature, which is promising :)

Hopefully it gets released soon. Have you tested the changes?
Cheers,
_adam
+61 40222 9001
Sent from my iPad
On Jul 12, 2016, at 10:13 PM, Elliot Page <notifications<EMAIL_ADDRESS>wrote:
It looks like someone has sent in a pull request with this very feature, which is promising :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/pawelczak/EasyAutocomplete/issues/197#issuecomment-232029380, or mute the threadhttps://github.com/notifications/unsubscribe/AK9fUgfK-BbDOV7WTGj2dEGg47_THPNuks5qU4T7gaJpZM4H8m-V.

I have, but they do not appear to work. I would encourage you to take a look also and comment on the PR if you have better luck!

if (typeof item ==='undefined'){
alert("Ukendt navn eller ID");
}
This works for me. I use this methods in the  $.getJSON(url)

Is this $.getJSON(url) used inside the easyAutocomplete js file?
Cheers,
_adam
+61 40222 9001
On 4 Oct. 2016, at 7:40 pm, ibrahimince <notifications<EMAIL_ADDRESS>wrote:
if (typeof item ==='undefined'){
alert("Ukendt navn eller ID");
}
This works for me. I use this methods in the $.getJSON(url)

You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/pawelczak/EasyAutocomplete/issues/197#issuecomment-251328711, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9fUnGJz1ZcyYAzyNn3qX0nIu25quEPks5qwhDxgaJpZM4H8m-V.

Have a look at this pull request by dmitov. There is a minor mistake as pointed by Kevin. I tried it and it works great.


Non-module test harness resources?

I'd love to have a way to define resources that are only used during testing.
The module I'm building is only responsible for laying down some basic networking infrastructure. Later modules will reference the state output by this one and add other infrastructure as well as instances. Is there a way that I can define additional resources, instances etc, that are only used during testing? This could also be useful for poking holes for SSHing in through restrictive network ACLs for testing purposes. Also, a module that is adding onto existing infrastructure might need some additional bits to be added before the module scripts are run. For instance, in a hub and spokes network design, I'd like to create the hub as a part of the test harness for testing a spoke module.
For the last example, my current approach is to assume the hub exists and pass in references to it with variables, but this might not always be a tenable solution.
Any thoughts?

Hmm... I must have missed this fixtures directory in the example before. This may be what I'm missing here.

Thanks for your interest in the project!
You can use the provisioner's directory configuration option to change the pathname of the Terraform configuration that is being tested. This means you can create a test module that uses your production module and then run tests against the instances in the test module.
Once #7 is implemented, which I suspect will introduce support for testing the APIs of any Terraform provider, this strategy will no longer be required.

Awesome. Thanks for the quick response.


Fixes Bug in Graph.find_merges that massively slowed down squashing

Fixes an oversight in #176.
In that PR, I addressed the bug in Graph.find_merges that caused nodes that would be merged to be considered independently rather than as a single node. However, I didn't add code to keep track of which nodes had already been processed by the code added for this earlier bugfix. This caused the computation to increase exponentially. For example, if a Graph had 50 nodes that merged into 1 node, my code from #176 would compute the next merge candidate set from the children of all 50 nodes each time one of those 50 nodes was encountered in the overarching traversal. This meant that I was performing 2500 computations, when my code only really needed to be performing 50.
This PR corrects this issue by adding a new list within the Graph.find_merges function that keeps track of which nodes have already been processed.

Needs to be rebased.


[feature request] alternative or custom key for completion

Thank you so much for this plugin! Copilot is finally here for Obsidian!
Like Vim, Tab for completion here is tricky in Obsidian, as many plugins register this key. For example, when LaTeX Suite is enabled, the Tab key won't work for GitHub Copilot. Is it possible to use keys other than Tab? It would be great if the user can configure it.

Hi @zcysxy,
Thanks for using the plugin. I'm currently working on a way to add keybinding (see feature/11 branch).
In the meantime, I've added a fix to use the Tab key with the LaTeX Suite plugin or when writing a list. Please see #12 for details.
You can update to 1.0.1 to retrieve this fix.

@zcysxy I've update the plugin to add keybinding customization. It is available in the v1.0.2.
You can see example in the following screencast :
https://github.com/Pierrad/obsidian-github-copilot/assets/32339081/d03ccaa2-cd63-4ff3-9e3d-431167825dbf
Please tell me if this fill your needs!

Yeah this is exactly what I want. Works like a charm! Thank you @Pierrad 🎉


[Client side decorations] Implement window drag handles.

Based on https://github.com/godotengine/godot/pull/16512
Implements more features for https://github.com/godotengine/godot-proposals/issues/4846
Adds support for adding custom native window move / resize handles.

[x] X11
[x] Windows
[x] macOS

https://github.com/godotengine/godot/assets/7645683/4b8ecdba-0102-48fb-b959-a9d24f7aea59
Test Project: test.zip

Interesting! As this is marked as a draft, what is still left to work on?

@bruvzg Can you upload the project you used for testing somewhere? Thanks in advance 🙂

Can you upload the project you used for testing?

Added test project to the first post.

I know that this is WIP, but I notice that you're including a WindowDecoration class and an associated editor plugin. Does this imply that you're actually finalizing CSDs or is this just an iterative step towards them?

For now, it's just a mover / resizer. I'm not sure if there is anything else necessary for the CSDs. I guess window min/max/close buttons, but the only platform specific about them is snap/display switch popup menu for the maximize button on macOS/Windows, and checking if how minimized/minimized states works with the borderless window.

The only thing I'm not really sure about is how you plan to actually frame some pretty decoration. Will the decoration object be a parent of Window?

Is the framing of the decorations necessary for this PR? Or could it be a separate PR

The only thing I'm not really sure about is how you plan to actually frame some pretty decoration. Will the decoration object be a parent of Window?

Currently, it's children of the Window. WindowDecoration is a normal Control node, can be placed anywhere (and optionally hold a polygonal region for more customization), so any drawing methods can be used. I do not see any reason to restrict it to the actual frame around the window. But I guess something similar to GTK HeaderBar control might be useful as well.

So I tested this and that project a bit and there seems to be an issue with the resize bottom handles where they either stop working completely or stop working until you resize using a different handle.

However, left-clicking and dragging does nothing.

Yes, I have noticed that after last rebase, something seems to change and resize handles only work if window have think border enabled (not sure if it's Windows change or something with our window style flags).

Superseded https://github.com/godotengine/godot/pull/100464 and https://github.com/godotengine/godot/pull/100532 (works on all platforms and allow implementing custom decorations in more Wayland friendly way).


I need your help.

this is off topic but this is the only way I know how to contact you.
You are the man behind bmdview 2 right? I want to fix some problems with it (bmdview 2 still says "Mat supports still lacks texmatrix support, ind tex blocks, color chans and color swap support" after 12 years) , but I don't understand the code or the bmd, bdl, and 3ds formats at all. Now I'm not asking you to fix this softwere that you probably haven't even thought about in over a decade FOR me.  I'm asking you to let the people do it instead. put bmdview 2 up on this github so that people can easily fork it and contribute. bmdview2_src_20110403.zip, from your own websight, is the most compleat release, so please, use that.
why i don't just do it myself

i dont know the  first thing about managing github repositorys.  YOU should be in controll of what changes are made to it, and which ones are not.
you dont need to do anything. just let the comunity make forks and branches, and accsept the ocashanal pull request.

There's tons of versions of bmdview2 on github: https://github.com/search?q=bmdview2&type=Code
There's also lots of code based on it that's maybe more modern. I saw a 3d WebGL viewer the other day I can't remember the name of.
I'm happy it's found a big audience, but I haven't touched it in many years. I wouldn't want to have the final say which pull requests should be merged and which shouldn't.

I only found 1.


Fix Guzzle version constraints

Hey, thanks for the package!
This is a bugfix PR, as Guzzle 7.5 does not exist, the newest version is 7.2.
Laravel 8 itself requires Guzzle 7, but currently it's impossible to install this package (or laravel-mygls for that matter),  on Laravel 8 due to the wrong version constraint.

Hey,
Thank you very much!
We will create a release containing the bugfix shortly.


Attack mixup if weapon name differs only in a postfix

I stumbeld on an issue during test for my own code, I am not sure if that is a realistic scenario in the wild:
When importing a character that has two simmilar weapons where the name of one is the name of another + a prefix all lookks good after the initial import:

But if I import the same character again, the attacks get mixed up:

I tracked tthe issue to this pice of code:
https://github.com/crnormand/gurps/blob/09dcc1d74fe16d3b8e45ee8f408883fa1f4a366d/module/actor/actor-importer.js#L2322C1-L2323C74
From _findElementIn the last attack where the start of the name matches is returned, which leds to one set of attacks beeing update from worng matches.
I am not sure why we can't use an exact match here, as we are matching an attack to an attack (I am aware we need to use startsWith when matching a attack to the weapon in the equipment, but that is another case), but even if we need that, we should use the best match, not the last.
Test character in atttached zip. test.zip
If you can give advise what the actual matching rule here should be, I am happy to prepare a fix, if you want.

I think @nose was always for being lenient in checks in case the user adds text to the imported name. I think the best fix is to get all matches and update the best match.
Alternatively, I'm okay with exact match as well.

Thats a good point! I go for the best match (that is, the shortest entry that matches).


Navigator Controller - Object Unsubscribed

Ionic version:  (check one with "x")
[ ] 1.x
[x ] 2.x
I'm submitting a ...  (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
Has a problem using Navigator Controller, because I noticed when used conditions like ngIf or ngSwicht to alter an item by ion-list, ion-card and ion-grid, when I click in the back button on navigator is showing a error message Object Unsubscribed and stop the navigator controller.
Expected behavior:
In Ionic 1 this problem not exist, I'm starting use the latest version by ionic 2, I don't know if that this error exists in old version.
Steps to reproduce:

Complete Error Message:
note.pdf

Hello! Thanks for using Ionic! We are actually working on fixing this issue now and you can expect it to be fixed in the next release.

Ill update this issue when i can confirm that it is fixed.

This issue should be fixed in the nightly release, to update:
npm install ionic-angular@nightly --save --save-exact

It will also be in the 2.0.0-rc.5 release. Please let me know if you still have an issue, thanks!

@brandyscarney Thank you!!! Now worked very well

Hey @brandyscarney, sorry to say I just run into this error again on the latest nightly (2.0.0-rc.4-201701052314). I'm looking into it, I'll see if I can reproduce it in a minimal example.

Thanks @jsayol! Let me know when you do. I'll leave this issue closed and the other issue (#9751) open since this use case was fixed.

Oops, actually meant to comment on the other one.

Hi there, i'm having this issue with 2.2.0, is that fix in this release?
Your system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 0.0.36
ios-deploy version: 1.9.1
ios-sim version: 3.1.1
OS: macOS Sierra
Node Version: v6.3.1
Xcode version: Xcode 8.2.1 Build version 8C1002

"ObjectUnsubscribedError: object unsubscribed↵    at new ObjectUnsubscribedError
(http://localhost:8100/build/main.js:6908:26)↵    at Subject.next
(http://localhost:8100/build/main.js:7009:19)↵    at ScrollView.scrollEnd [as _endTmr]
(http://localhost:8100/build/main.js:51888:32)↵    at ScrollView.destroy
(http://localhost:8100/build/main.js:52180:30)↵    at Content.ngOnDestroy
(http://localhost:8100/build/main.js:57070:38)↵    at Wrapper_Content.ngOnDestroy
(/IonicModule/Content/wrapper.ngfactory.js:15:16)↵    at
CompiledTemplate.proxyViewClass.View_EncontradoPage0.destroyInternal
(/AppModule/EncontradoPage/component.ngfactory.js:281:22)↵    at
CompiledTemplate.proxyViewClass.AppView.destroy
(http://localhost:8100/build/main.js:10834:14)↵    at CompiledTemplate.proxyViewClass.DebugAppView.destroy
(http://localhost:8100/build/main.js:11062:38)↵    at CompiledTemplate.proxyViewClass.View_EncontradoPage_Host0.destroyInternal
(/AppModule/EncontradoPage/host.ngfactory.js:39:19)"

__p

Getting the same issue too...


Transition timing function fallback

Another minute issue I've come across is if the FX.Tween.CSS3 transition option returns something that does not match a property of transitionTimings, the transition doesn't occur. There should be a default timing function (e.g. linear) in these cases.

Thanks a lot! This is a older project of mine. I'm not using mootools anymore (sadly). Didn't thought that FX.Tween.CSS3 would be useful to anyone anymore.
I will look into this issue if I get some time. :)

Fixed by pull request.


add SSR to improve Twitter link cards

When linking to an article from a Tweet, Twitter will generate a card to preview the content of the article. Since we're using a SPA and Twitter doesn't execute any JS on the page, we've got to provide any relevant <title> and <meta> tags directly in the HTML - hence, we need SSR. This will almost certainly require migrating to a different host than GitHub Pages.
Potential Hosts:

Heroku ($7/month)
DigitalOcean ($5/month)
Firebase (???)
AWS (???)
Azure (???)
Next (free)

Twitter Card reference: https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary.html

It would also be cool to render an image preview for each article on first access, then serve the cached image on subsequent visits (would definitely require custom server side stuff).


Added in a link to Manual Matuzovic's excellent HTML boilerplate intro

Didn't add much!

I have reviewed my own pull request and it is indeed most excellent. (This is not how things are normally done around here! -me)


added missing info to install 'aiofiles' when using 'FileResponse'

Just noticed that using FileResponse needs aiofiles to be installed: https://github.com/encode/starlette/blob/master/starlette/responses.py#L247
Added a hint in the docs in the PR.

Thank you! This was a good PR! :rocket:
Nevertheless, as FastAPI and Starlette are now based on AnyIO, aiofiles is no longer needed. :tada:
Given that I'll close this one one, but thanks for your effort! :cake:


(Mac) Login Screen Won't Load on Version 1.5.1

Initially, after opening the app a javascript error appears. After closing it and relaunching the app (as instructed in the discord), I was able to login and play. Since then, when I try to open the app and click login, I only get a blue loading screen. Only the ads load. I am using a Mac with version: NewCP-1.5.1-x64.dmg. I just joined and got this version yesterday around 8:40pm EST and I have not been able to login since 12:00 am EST.

Issue has been resolved!


Update crude installation instructions to properly find get-pipenv.py

Changed the raw-file link for get-pipenv.py so that calling curl would lead to
the actual file instead of a 302 Redirect to the file.

✨🍰✨


Enabling kdump on ocp worker nodes

This PR is to enable the kdump on worker nodes

/ok-to-test
@Poorna-Gottimukkula1 you are missing newline at the EOF in some places. POSIX defination of a line.


Update link to point to new repo location

The repo location has changed to be a submodule of the parent repository. I'm updating the link to help avoid confusion for future readers.

Thanks!


Event Grid - Migration guide

Create a migration guide for customers transitioning from Track 1 to Track 2 similar to what we have for Service Bus and Event Hubs.

Please wait for this issue to be updated with the link to the Migration Guide template.

Please use the template in this PR that adds the migration guide to our policies

Closing this as a duplicate of #16740


Disarming Alarm without the code returns success (but doesn't disarm the system)

Alarmo Version
v1.10.1
HA Version
2024.5.4
Bug description
Disarming Alarm without the code returns success (but doesn't disarm the system).
I have an existing automation that disables the alarm in the morning when I get up. I put on a PIN code yesterday and the automation still runs successfully - but the alarm was still running this morning. I checked the logs (no Disarm event) and the automation trace (no indicator of anything but success).
Steps to reproduce
see above
Relevant log output
No response

What do you mean by 'returns success' ?
If I understand you correctly, you created an automation in which a service is called to disarm alarmo.
The service does not return anything, so I don't see how you can evaluate whether the call was successful or not.

I’m probably making some bad assumptions here.
My issue was that everything looked correct with the automation trace (even though the system didn’t disarm). Made my debugging challenging.
(Side note - just started using your plugin , along with Ring keypad - it’s been amazing)

I get also an error, while arming without code??
Error running action
Arming requires a code but none was given for alarm_control_panel.aqara_hub_m1s_9635_security_system

@Jeronimo1971 this is not aqara project. Please take care before reporting an issue

I don't think i has something to do with home assistant 2024.6.
Disarming whitout code error is dissapeard with update 2024.6.1 but the arm error is still there.
It's for example with the aqara hub (asks always after a code), but also "alarmo", no error but it does nothing!


'go get' unsupported on Windows

go get -u github.com/fvbock/endless
github.com/fvbock/endless
..\github.com\fvbock\endless\endless.go:99: undefined: syscall.SIGUSR1
..\github.com\fvbock\endless\endless.go:100: undefined: syscall.SIGUSR2
..\github.com\fvbock\endless\endless.go:103: undefined: syscall.SIGTSTP
..\github.com\fvbock\endless\endless.go:107: undefined: syscall.SIGUSR1
..\github.com\fvbock\endless\endless.go:108: undefined: syscall.SIGUSR2
..\github.com\fvbock\endless\endless.go:111: undefined: syscall.SIGTSTP
..\github.com\fvbock\endless\endless.go:193: undefined: syscall.Kill
..\github.com\fvbock\endless\endless.go:243: undefined: syscall.Kill
..\github.com\fvbock\endless\endless.go:288: undefined: syscall.SIGUSR1
..\github.com\fvbock\endless\endless.go:289: undefined: syscall.SIGUSR2
..\github.com\fvbock\endless\endless.go:289: too many errors

syscall being undefined sounds fishy - that's stl...
have you set GOPATH and GOROOT environment variables?

Yes, GOPATH and GOROOT are both set. Just to be safe I set them in both user and system environment variables.

hm. which version of go do you run?

Only standard signals are defined under windows, the more custom ones like SIGUSR1 etc simply don't exist so no this wont work under windows.

i see. we'd have to use go generate to get a different version compiled on windows i guess? does anybody know how that works?

Not sure I follow you there @fvbock signals don't really exist on windows.
If you wanted to be portable I would suggest you remove the signal handling from the core of endless replacing with something like a message channel or action messages which the user of endless can implement how they see fit.
This would allow a unix daemons to use signals but a windows service to use service codes for example.
Another benefit of this is that your compatible with existing code which may well already be doing something different with signals.

@stevenh that's what i meant.
there is stuff like this https://golang.org/src/syscall/syscall_windows.go#L16 - to get different versions depending on what platform you compile. so replacing the signals with something canonical on windows...
i know in general how go generate works but never used it and wonder if somebody has done something like this (platform detect - generate different src - compile) to look at.

Yer the problem is more that there is no good replacement on windows so it would always need to be implementation specific.
In my head removing signal handling totally and just straight exported methods for:

Shutdown (just export shutdown)
Upgrade (fork from SIGHUP case)
Terminate (just rename hammerTime)

This makes it all much cleaner as the use of endless on unix can decide what signals they want to use and call the relevant methods, no having to hook signals any more.
Does that make sense?

the canonical way to tell a unix program to shutdown, restart, or terminate is to send it a signal. i don't plan on changing how that is handled in endless.
for the std behaviour you dont have to hook stuff in yourself - endless sets them up. i recently added a function to add hooks without having to do ugly append stuff https://github.com/fvbock/endless/blob/master/endless.go#L541:L559
if windows has a different way of doing signals (and it is not encapsulated in golangs stl/syscall library) it might be nice to use go generate or something similar to get a version that works on windows.
exporting the shutdown(), fork(), etc functions - and maybe the endlessServer itself might be another thing. then develops can choose what they want to do - restart via a signal or with a call if they need it...

I agree signal handling is the standard way of doing things on unix but each flavour has its own way.
So I guess what I'm saying is allowing endless to be used as a configurable component flexible enough to work how the user wants instead of taking a fixed view provides more options. This is also very idomatic in go, small components that do one job and one job well.
It would be easy to keep the signal handling but as something separate that the user can choose to use if it fits their use case so you end with the best of both worlds. Two separate calls ListenAndServeSignal and ListenAndServeTLSSignal  which add the signal support but are contained in a endless_unix.go that has // +build !windows spring to mind as really easy to do.
I'll try knock something up as an example if I get some free time.

i like the idea of having a choice - i would like to keep ListenAndServe and ListenAndServeTLS - having dropin replacements for the stl is nice...
maybe doing something with env_vars. telling endless whether to start with or without signal handling on... will have to think about it a bit too.

Here's what I was thinking @fvbock https://github.com/fvbock/endless/pull/19

@fvbock I need this to work in Windows.
Are the 3 PRs by @stevenh going to merged any time soon?

wow..I have this problem again~
four years so far

I have this problem again.
go version go1.16.3 windows/amd64
There's a dirty way: https://learnku.com/articles/51696


C# Grpc.Core: Detect binding redirect problems on startup

Is your feature request related to a problem? Please describe.
You'll sometimes see crashes caused by missing binding redirects. Example:
https://github.com/grpc/grpc/issues/21406
The crash is hard to find because you don't get an exception at start. Rather, you need to have GRPC_VERBOSITY set, otherwise you just see RpcException("Cancelled") on client side, with no server side call stacks.
Describe the solution you'd like
When the server is started, we should check the references and raise exception immediately.
Here's an example doing just that:
https://github.com/mgravell/Pipelines.Sockets.Unofficial/blob/5ae5fe451c4f71a618c4324f62c3beb2dc0b39a5/src/Pipelines.Sockets.Unofficial/Helpers.cs#L142-L172

Could you provide an example project that suffers from missing binding redirect? (e.g. as a github repo). I personally have never run into this problem.

I have no reproduction available at this time (as it always happened with our large projects). I may provide one at a later date

I have a separate nuget package "AssyCheck" that solves this: https://github.com/vivainio/AssyCheck
Closing this as separate fix for grpc is not required, hopefully the bug report still serves as a tip for future googlers.


Duplicated servers

Describe the bug
If you add a server that have the same name as another previously added,
you can't change between saved servers unless u change the name.
To Reproduce
Steps to reproduce the behavior:

Add new server with same name as one that is already added
Try navigate between saved connections

Application (please complete the following information):

App version 0.5.13
Installation source: Microsoft Store

Environment (please complete the following information):

OS name: Windows 10
OS version 21H2

Hi Agustín,
thanks for the report. This issue probably is related to a bug hotfixed with 0.5.14.
Can you upgrade and tell me if the problem persists?

Hi Fabio, I just update and the problem is solved. Great work. Thanks!


Update Apex build command

Due to pip having deprecated --global-option and --build-option, the new build command will be highly relevant in the future (removal is planned for 23.3, see https://github.com/pypa/pip/issues/11859).
See also https://github.com/NVIDIA/apex/pull/1690 for why the command is different from the Apex README.

CC @pacman100

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Actually this may not be the correct command after all, see https://github.com/NVIDIA/apex/issues/1679#issuecomment-1622863439.
It suffers from the same deprecations.

If NVIDIA/apex#1692 is accepted as the official solution, the current state will be fine to use.


Importing PEM-encoded certificates may not work

While fixing azure/azure-sdk-for-net#9963, I found that we are base64-encoding PEM files but, despite the parameter name and description in swagger, the service expects PEM files as plain strings. On top of that, we don't know how the developer encoded the PEM file so we can't correctly decode it unless we ask or, instead, add a string overload and handle encoding/decoding internally ourselves.

This was resolved in PR #9998.


Objects Coordinate input

Hi,
Congratulations on the ICML acceptance!
I would like to feed the model several sets of coordinate information with the input image and ask question about the object specified in the coordinates, for example, what are person1 (corresponding to coord1) and person2 (corresponding to coord2) doing?, it is possible for OFA to attend to the objects with the coordinate information? If so, what would be the best input format for this?
Having read the paper I think the grounded captioning in the pre-training task might be most relevant, but I don't see such examples in the pretrain_data_examples,  it is still not clear what the best practice to feed the model with multiple coord info in one example. Also I fail to replicate the results shown in Figure 10 from the Appendix, grounded question answering, which model was used for these? And is the input exactly in the format as shown under the images, e.g. what color is the car in the region? region: <loc301> <loc495> <loc501> <loc596>? I assume the 301, 495, 501, 596 are the x1 y1, x2, y2 coordinates? I tried to ask questions about regions this way on customised images but it does not seem to focus on the region provided.
Thanks!

@chenxwh Hi,

This format what are person1 (corresponding to coord1) and person2 (corresponding to coord2) doing? is OK, but I think you need to collect some training data to finetune OFA;
Grounded captioning (GC) is an inverse task of visual grounding (VG), so the VG samples in the pretrain_data_examples will be used for both GC and VG tasks;
<loc301> <loc495> <loc501> <loc596>  are not raw coordinates but quantized coordinates, you can reproduce the results in Figure 10 through this colab: https://colab.research.google.com/drive/1jogyZ-2rdHU3XxZOf3TBfhex1XHqX-1m?usp=sharing#scrollTo=A4zeA_MmgNqa

Hi @logicwong,
Thanks for the reply.
Although regarding the bounding box, in the paper it says
Apart from representing images, it is also essential to represent objects within images as there are a series of region related tasks. Following [61], we represent objects as a sequence of discrete tokens. To be more specific, for each object, we extract its label and its bounding box. The continuous corner coordinates of the bounding box are uniformly discretized to integers as location tokens <x1; y1; x2; y2>. To improve simplicity, we use a unified vocabulary for all the linguistic and visual tokens, including subwords, image codes, and location tokens.
It sounds like, for each image, a list of objects with the corresponding bounding boxes are taken as input? I wonder how the bounding box are used as input, whether you could point me to it in the code, since I see most tasks only take patched images as input?
Thank you in advance!

@chenxwh  ofa_large_384.pt is the ckpt used in our paper. For the large model in Model Card, we continue pretrain ofa_large_384.pt  with the resolution of 480 x 480 for better results. For how to use bounding boxes in our model, you can refer to data/pretrain_data/unify_dataset.py and data/mm_data/refcoco_dataset.py. The corresponding code snippets are as follows:

@logicwong Hi,

Thanks for the snippets, I have seen this too, but the coordinates are used as targets rather than input if I'm not wrong?

Has the model been pre-trained with a LIST of detected objects and their bounding box as INPUT together with the patched images? Because that's what the paragraph in the papwr sounds like. (Not the refcoco task.)

Basically I am using OFA on images that ask questions regarding SEVERAL regions in the image in one question, I do have the bounding box for each object, and I find OFA struggles to associate the boxes with the region, so all the questions is for me to understand whether I could better use OFA for those task?

@chenxwh

In grounded captioning (GC), we use the bounding box as encoder's input together with the patched images, but we haven't used both detected objects and their bounding boxes as encoder's input (except for the detection task, where we use detected objects and bounding box as decoder's input).

Of course, you can construct a question with several regions, like what are person1 (corresponding to coord1) and person2 (corresponding to coord2) doing? (just remember to encode the object coordinates in parentheses as quantized coordinates). In addition, I think you can also make a copy of the encoder's input as the decoder's input (as we did in the VQA task, the code snippet is shown below), which would help you get better results.

Hi @logicwong,
Thank you for the clarification, although I think in vqa the prompt_type is 'prev_output? so without the eos?
Another question of the code, not really related to coordinate input, I see there is patch_images_2 in unify_transformer.py but don't think it is mentioned/explained. What does this input take? Does it mean it supports multiple input images?
Thank you!

@chenxwh Oh... You are right,  in VQA the prompt_type is prev_output (exclude eos). patch_images_2means it supports processing two input images, but we haven't tested this feature.


[UBS Tariffs Page] Tariff details page wrong buttons and field alignment

Environment: Windows 10, Chroome Version 111.0.5563.65
Reproducible: always
Build found: 25.05.2023
Preconditions
The user should be authorized as Admin
Main UBS menu -> page 'Тарифи' should be opened
Steps to reproduce

Click on any tariff available
Pay attension to the Add service and Add tariff buttons
Pay attention to the Services and Tariffs for services tables

Actual result

UA localization: - different '' and '' buttons' size
- different 'Базова вартість' and 'Повна вартість' fields size
EN localization: - different 'Add service' and 'Add tariff' buttons' size

Expected result

UA localization: - the same buttons size
- the same fields size
EN localization: - the same buttons size

User story and test case links
User story #4429
Labels to be added
"Bug", Priority ("pri: "), Severity ("severity:"), Type ("UI, "Functional"), "API" (for back-end bugs).

The buttons appearance are Ok according to mock-up


createChar for HD44780

In hd44780_i2c.go i found a commented function createChar, which seems to be the functionality of the display, to create an own character. Why is this method commented? It is a nice feature i need.

I don't remember the exact reason; it would have been because it didn't work on a test device, or it needs more work. One thing that stands out is that it assumes only 8 locations, which probably won't hold for different display sizes. If you uncomment that locally, does it actually do what you want?

Till now i am in the finding phase for the right library. My display is on his way to me. So, i will try it. I thought, the reason was more clear.

I found that sometimes I can get stuff working by writing to the hardware spec, but often when you get an actual device, it doesn't work according to the spec, because the hardware has some changes to it. I have found this on devices claiming to be HD44780 compatible, and also on some i2c devices. So some of the code is done by trial and error, and feedback from people like yourself who get an actual device to work. There are way too many devices for me to make them all work myself.


Python  MessagePublisher  creation error

Python
the publisher requires topic _desc as bytes
ecal publisher
class publisher(object):
  """ eCAL publisher """

  def __init__(self, topic_name, topic_type="", topic_desc=b""):

The line below
https://github.com/continental/ecal/blob/6407d9cb68f42402a26b8ddab070bd04b6ecb779/lang/python/core/ecal/core/publisher.py#L28
should be the same as publisher api declares:
def __init__(self, name, topic_type="", topic_descriptor=b""):

@BriFuture thank you for your report. We will correct the documentation asap.


How to run recursive terraform plan/apply in order across multiple directories

@brikis98 Hi Jim, you are very helpful to me in various questions. First of all thanks for all your help.
I have various modules in my live repo as
web, rds, efs, vpc
Each directory will create resources from a separate module and I have to do terraform apply in each and every directory. I want to do CI/CD for my enire terraform code so it will go through each directory and do plan/apply.

How to do terraform plan/apply from one command
How to specify the resources order. Let's say I want to run VPC first, then RDS, then web etc. How to run terraform to follow the order.

Please let me know the best practice to achieve this. Thanks again!
PS: I follow your "terraform up & running" book. Is there any new version coming with recent terraform version updates.

https://github.com/gruntwork-io/terragrunt#execute-terraform-commands-on-multiple-modules-at-once

updated link from the one above: https://terragrunt.gruntwork.io/docs/features/execute-terraform-commands-on-multiple-modules-at-once/

updated link from the one above: https://terragrunt.gruntwork.io/docs/features/execute-terraform-commands-on-multiple-modules-at-once/


Tweak pluralization rules

Type names ending in -o, get a plural form ending in -oes.
The standard spelling rule is -o -> -os. The -oes is rather an exception than a rule.
Can you change the standard pluralization rule for Types to use -os instead of -oes?

To go along with @kbrandwijk, here's some screenshots for extra clarity

Closed in favour of #1342


My workflow fails with no useful info

Hello, I'm trying to use this action to copy issues, but running it results in an

Which is decidedly unhelpful. Where do I even start debugging?

I'm about to get on a plane but I will take a look at it when I land. Are
able to get a minimal workflow that reproduces the error. I can add
additional debug logging as well.
On Sun, Apr 17, 2022, 22:06 Omar Kamel @.***> wrote:

Hello, I'm trying to use this action to copy issues, but running it
results in an
[image: image]
https://user-images.githubusercontent.com/30291302/163757580-dedbe7f3-dfb0-4158-b1a3-1a39639b3bd7.png
Which is decidedly unhelpful. Where do I even start debugging?
—
Reply to this email directly, view it on GitHub
https://github.com/dacbd/create-issue-action/issues/11, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIN7MYKS33Z56A3ZDJPG4LVFTUV7ANCNFSM5TU6SABQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

This is the file i'm using. its fairly minimal already. All I'm doing is duplicating an issue, with the intent of doing this across repos later (public issues -> private repo)

Try using owner and repo, with the example octo-org/my-repo
owner: octo-org
repo: my-repo
On Mon, Apr 18, 2022, 06:18 Omar Kamel @.***> wrote:

This
https://github.com/TekExplorer/featherdactyl.com/blob/main/.github/workflows/mirror_issues.yml
is the file i'm using. its fairly minimal already. All I'm doing is
duplicating an issue, with the intent of doing this across repos later
(public issues -> private repo)
—
Reply to this email directly, view it on GitHub
https://github.com/dacbd/create-issue-action/issues/11#issuecomment-1101402240,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIN7M2YXHC2HOX6YYGPGW3VFVOKTANCNFSM5TU6SABQ
.
You are receiving this because you commented.Message ID:
@.***>

That seems to have worked!
Although, now I want to add a comment to the original issue linking to the new one. Could you add an output that just outputs the new issue object?

@TekExplorer thanks for using my action, I've created #12 and #13 based on your feedback

o7

That should be possible
On Mon, Apr 18, 2022, 07:09 Omar Kamel @.***> wrote:

That seems to have worked!
Although, now I want to add a comment to the original issue linking to the
new one. Could you add an output that just outputs the new issue object?
—
Reply to this email directly, view it on GitHub
https://github.com/dacbd/create-issue-action/issues/11#issuecomment-1101437320,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIN7MZI3R5RP2Y3GJNIF53VFVUJFANCNFSM5TU6SABQ
.
You are receiving this because you commented.Message ID:
@.***>


no way to tell year of update

realized after i implemented #96 and went to random updates only to have no idea when they were actually published

#98 should help with this too, i'll make a PR with both


Upgrade terraform-provider-databricks to v1.31.0

This PR was generated via $ upgrade-provider pulumi/pulumi-databricks.

Upgrading terraform-provider-databricks from 1.29.0  to 1.31.0.
Fixes #263

The only manual change necessary was adding a docs mapping:
			"databricks_default_namespace_setting": {
				Docs: &tfbridge.DocInfo{
					Source: "default_namespace_settings.md",
				},
			}


chore(scripts): update nolints.txt

I am happy to remove some nolints for you!

bors r+

bors r-

bors r+

bors r-
I don't want to introduce unnecessary conflicts with mathlib.

@Mergifyio refresh

Welp, mergify seems to have crashed bors:
{{:badmatch,
  {:error, :merge_branch,
   %Tesla.Env{
     __client__: %Tesla.Client{
       adapter: {Tesla.Adapter.Httpc, :call,
        [
          [
            ssl: [
              verify: :verify_peer,
              verify_fun: {&:ssl_verify_hostname.verify_fun/3,
               [check_hostname: 'api.github.com']},
              cacertfile: '/app/_build/prod/lib/certifi/priv/cacerts.pem'
            ]
          ]
        ]},
       fun: nil,
       post: [],
       pre: [
         {Tesla.Middleware.BaseUrl, :call,
          ["https://api.github.com"]},
         {Tesla.Middleware.Headers, :call,
          [
            [
              {"authorization",
               "token v1.e7640ae25f6c688dd120f75b4632063366b3c758"},
              {"accept", "application/vnd.github.v3+json"},
              {"user-agent", "bors-ng https://bors.tech"}
            ]
          ]},
         {Tesla.Middleware.Retry, :call,
          [[delay: 100, max_retries: 5]]}
       ]
     },
     __module__: Tesla,
     body: "{\"message\":\"Resource not accessible by integration\",\"documentation_url\":\"https://developer.github.com/v3/repos/merging/#perform-a-merge\"}",
     headers: [
       {"date", "Sat, 04 Apr 2020 13:45:54 GMT"},
       {"server", "GitHub.com"},
       {"vary", "Accept-Encoding, Accept, X-Requested-With"},
       {"content-length", "137"},
       {"content-type", "application/json; charset=utf-8"},
       {"status", "403 Forbidden"},
       {"x-ratelimit-limit", "5000"},
       {"x-ratelimit-remaining", "4985"},
       {"x-ratelimit-reset", "1586011541"},
       {"x-github-media-type", "github.v3; format=json"},
       {"access-control-expose-headers",
        "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset"},
       {"access-control-allow-origin", "*"},
       {"strict-transport-security",
        "max-age=31536000; includeSubdomains; preload"},
       {"x-frame-options", "deny"},
       {"x-content-type-options", "nosniff"},
       {"x-xss-protection", "1; mode=block"},
       {"referrer-policy",
        "origin-when-cross-origin, strict-origin-when-cross-origin"},
       {"content-security-policy", "default-src 'none'"},
       {"x-github-request-id",
        "A1F5:751F:2F4C6F:6DD176:5E888F92"}
     ],
     method: :post,
     opts: [],
     query: [],
     status: 403,
     url: "https://api.github.com/repositories/147274828/merges"
   }}},
 [
   {BorsNG.GitHub, :merge_branch!, 2,
    [file: 'lib/github/github.ex', line: 124]},
   {Enum, :"-reduce/3-lists^foldl/2-0-", 3,
    [file: 'lib/enum.ex', line: 1940]},
   {BorsNG.Worker.Batcher, :start_waiting_batch, 1,
    [file: 'lib/worker/batcher.ex', line: 355]},
   {BorsNG.Worker.Batcher, :poll_, 1,
    [file: 'lib/worker/batcher.ex', line: 256]},
   {BorsNG.Worker.Batcher, :handle_info, 2,
    [file: 'lib/worker/batcher.ex', line: 204]},
   {:gen_server, :try_dispatch, 4,
    [file: 'gen_server.erl', line: 637]},
   {:gen_server, :handle_msg, 6,
    [file: 'gen_server.erl', line: 711]},
   {:proc_lib, :init_p_do_apply, 3,
    [file: 'proc_lib.erl', line: 249]}
 ]}

Testing
bors r+

bors r-

bors r+

The crash isn't related to mergify since I'm getting it now when I try bors r+ myself.
From the crash log, it looks like bors doesn't have permission for this merge. Note that the previous push to staging.tmp here does succeed:

Stumped for now. I'm a bit worried that this means that there will be trouble with PRs from external forks.

Oh! Could it be due to this commit which is in master, but not in the branch of this PR?
If so, then people making PRs from external forks may need to ensure that their PRs include any commits in master which touch the github actions config. This could end up being rather annoying to debug later.

bors r+

bors r-

bors r+

bors r-

bors r+

bors r-


dockerfile guidelines

Description :sparkles:

copy Dockerfile guidelines from Confluence
some minor copyediting

Issues :bug:
Closes :no_good_woman:
DEV-36:

Kanslia devs should check if these practices are in line with Kanslia practices. Reviewer should check which practices are Kuva specific and mark those with [[Kuva specific:]].

@jussiarpalahti can you check this?

Closing this since this is a contentious issue and nothing seems to happen here in terms of moving towards an agreement on these issues. Can be reopened if something happens to this.


docs(guide/Forms): format headers to match other docs

Primary header with page title, secondary headers for each description section.

landed, thanks!


Support http interface

Very interesting project! I wonder if you have plan to support http interface also, it's very useful for other app can integrate to build sort of admin project for monitoring and control connection

@Yenle9  Thank you very much for your suggestions, but Zinx is positioned as a TCP keep-alive connection server, mainly focused on providing communication services for application-layer custom protocols. Although there are many WebSocket applications currently, Zinx integrated WebSocket capabilities in response to the demand. However, we currently have no plans to become an HTTP server. In fact, there are better choices for HTTP servers, such as Gin.


In Version 1.2 of Simplex, use of Folder command in the ps1 causes MethodException

Example taken straight from Readme
PS C:\test> cat .\myDrive.ps1
root {
folder MyFolder {
script MyEnvironment -id key {
dir env:
}
script MyModules -id guid {
get-module
}
}
}
PS C:\test> New-PSDrive -Name MD -PSProvider Simplex -Root 'C:\Test\myDrive.ps1'
New-PSDrive : Cannot find an overload for "Folder" and the argument count: "1".
At line:1 char:1

New-PSDrive -Name MD -PSProvider Simplex -Root 'C:\Test\myDrive.ps1'

  + CategoryInfo          : InvalidOperation: (:) [New-PSDrive], MethodException
  + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewPSDriveCommand

PS C:\test> Get-Module Simplex | FL Name,Version
Name    : Simplex
Version : <IP_ADDRESS>
When I created a ps1 that only used the root and script commands, the New-PSDrive command was successful and navigation through the simplex based drive worked fine.
PS C:\test> $PSVersionTable
Name                           Value

PSVersion                      3.0
WSManStackVersion              3.0
SerializationVersion           <IP_ADDRESS>
CLRVersion                     4.0.30319.18444
BuildVersion                   6.2.9200.16481
PSCompatibleVersions           {1.0, 2.0, 3.0}
PSRemotingProtocolVersion      2.2

Yes, noticed this last night and forgot to push the code.  The latest fix is in commit f8969a5a71195be62744ed2a3d4f0d7f9b94e8d4


Optional HTTP(S) tunnel for event replication

Required to run Eventuate on multiple Heroku Private Spaces. /cc @sclasen

http2?


Update connect-to-gcc-data-with-usage-analytics.md

Added a statement to reduce ambiguity on GCCH
Fixes https://github.com/MicrosoftDocs/microsoft-365-docs/issues/12435

@JohanFreelancer9 Please copy review

@efrene Please merge this PR. Thanks