Getting MP data by constituincy name

Hi,
Would it be possible to implement a method to get all the MP's related to a specific constituency? I need to get data on the names, party affiliation and gender of the current MPs for UK constituencies and https://github.com/Reclaim-The-Night-Leeds/pdpy/blob/9f0058e4de432f09b69d556fa04d0889afac3fab/pdpy/mps.py#L168 only returns their names.
Thanks in advance

Hi. There are a couple of issues here.
First, you can in principle get the data you need if you call:

fetch_mps
fetch_commons_memberships
fetch_mps_party_memberships

And then join across the dataframes returned.
You will need to filter the party memberships for those belonging to the members returned by fetch_mps for the given date. This is because party memberships are not automatically closed when people leave Parliament, because defeated MPs typically remain members of their parties.
However, I would not recommend using the Data Platform as a source for this data right now.
In January 2019 the Parliamentary Digital Service paused work on the Data Platform to carry out a broad review of their technology strategy. Last year, PDS recommitted themselves to the Data Platform and they are currently recruiting for a new Technical Lead. My understanding is that while data on MPs still flows into the Data Platform from the business systems, this pipeline is not currently being actively maintained. If you want to take Parliament's administrative data on MPs right now, I would take it from the upstream system, which is MNIS. We have an R package for that, but not a Python package.
I have always planned to add more utility functions like the one you describe to the Data Platform packages. However, I am reluctant to do any further development work on these packages until I know more about the technical direction that the platform will take under new leadership, for fear of doing wasted work. Hopefully we will see development work resume on the Data Platform in the next few months, at which point we will be able to rely on it as a data source and development work can resume on this package (and its twin pdpr).

Hi,
Thanks for your reply, is the house of commons API detailed here
https://developer.parliament.uk/ facing similar restructuring?
Kind Regards
George Sykes (He/Him)
On Mon, 2021-04-12 at 02:46 -0700, Oli Hawkins wrote:

Hi. There are a couple of issues here.
First, you can in principle get the data you need if you call:
fetch_mps
fetch_commons_memberships
fetch_mps_party_memberships
And then join across the dataframes returned.
You will need to filter the party memberships for those belonging to
the members returned by fetch_mps for the given date. This is because
party memberships are not automatically closed when people leave
Parliament, because defeated MPs typically remain members of their
parties.
However, I would not recommend using the Data Platform as a source
for this data right now.
In January 2019 the Parliamentary Digital Service paused work on the
Data Platform to carry out a broad review of their technology
strategy. Last year, PDS recommitted themselves to the Data Platform
and they are currently recruiting for a new Technical Lead. My
understanding is that while data on MPs still flows into the Data
Platform from the business systems, this pipeline is not currently
being actively maintained. If you want to take Parliament's
administrative data on MPs right now, I would take it from the
upstream system, which is MNIS. We have an R package for that, but
not a Python package.
I have always planned to add more utility functions like the one you
describe to the Data Platform packages. However, I am reluctant to do
any further development work on these packages until I know more
about the technical direction that the platform will take under new
leadership, for fear of doing wasted work. Hopefully we will see
development work resume on the Data Platform in the next few months,
at which point we will be able to rely on it as a data source and
development work can resume on this package (and its twin pdpr).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

The API's listed at developer.parliament.uk are the business systems APIs. Their primary function is to provide data to services on the Parliament website, so they can change at short notice as those services evolve. For example, the Committees API and the Written Questions API both changed at short notice in the last few months. There are also known issues with the data published through some of the business systems endpoints.
The data platform was designed to avoid these kinds of issues. It's purpose is to validate and integrate Parliamentary data into a single well-modelled graph database with a stable endpoint (similar to Wikidata). So the data platform has much better technical characteristics as a public record of Parliament's work.
But at the moment to the project to "unpause" the data platform is still getting off the ground, so the data in the business systems APIs is more up to date but less well-modelled. We have developed a set of R packages for working with the business systems APIs until the data platform is restored. That's the best source of data available for the time being, but it's administrative data and not without problems.


Update testing env to use sqlite:memory:

Just switches the tests to use sqlite in memory database, no need to create a new database and better performance.
Just for reference #20

hrmm the travis env vars are overriding the phpunit config

@RDelorier I figured out the problem. Revert your changes to the .travis.yml file and add a commit that changes the default value of from storage_path('database.sqlite'), to env('DB_DATABASE', storage_path('database.sqlite')

@erikgall it shouldn't need to create a database since its using :memory: but I guess travis doesn't apply environment variables from the phpunit.xml ...

@erikgall ahh I see now ty

@RDelorier The DB_DATABASE environment variable is not used in the sqlite db connection.

just gonna let that run to make sure it works then I'll clean up these commits lol

Success! Thanks again @erikgall

Great work guys! Watching you guys tackle this is pretty sweet. Last question before the merge: if this removes the need for canvas_testing like @erikgall implemented earlier, can we remove that section from the readme @RDelorier?

@austintoddj It does..

Thought so. @RDelorier wanna add that to the commit? Then I'll merge it in.

Coming right up

Thanks for this platform @austintoddj , I haven't gotten gotten up the guts to use it yet but I've played around on local and loved it right away. Good luck I'm exited to see how it evolves.

It's really my pleasure @RDelorier 👍 Thanks for contributing your expertise as much as you have already. It's so great to see everyone come together and work on it like they do. That's why I love the open source world!


Pycrypto appears unused and is causing build issues

I've been trying to install the latest code into my Python 3.6 environment. Setup.py fails when installing pycrypto due to a build error for a required C library.

After some digging, I found two things:

Pycrypto is completely unsupported and hasn't been developed for over 3 years. It's been recommended to switch to PyCryptodome, which is an active fork and almost a drop-in replacement. See this issue on the pycrypto github page for more info.

As far as I can tell, pycrypto isn't used anywhere in the project. This is based on a search I did of the badgecheck repo for "pycrypto", which only came up with requirements.txt and setup.py, which are just dependency lists. I would assume that there would be an import for pycrypto if it were used.

Thanks, @SecondFlight
The tool is used by our dependency jws, so in order to remove it from the project, it will have to also be removed from jws. Totally possible, and thanks for bringing this up.
It appears in import statements like from Crypto.PublicKey import RSA, which are used in our tests to generate the signing keys etc that we then check with the jws module.
If you have time to commit to submitting a PR, let us know, otherwise @mgylling will look for a volunteer among the IMS membership. I might be able to do it myself in the next week or two, as Concentric Sky makes a little of my time available for maintaining this package.

Thanks for the reply, @ottonomy.
Unfortunately, the project I'm working on won't allow time to work on this, and I don't think I'll be able to find time to commit to this outside of work hours.
I should mention, I was able to get it to install by simply removing the reference to pycrypto. This would make sense if pycrypto is only used for the unit tests.
I appreciate all the work you folks have done for this project! Sorry I can't help more.


Custom Regular Expression

I'm having a hard time understanding how to validate using a custom regex string. I see the enum of various types of pre-set expressions, but how does one validate for something outside of those definitions? If I try to pass a string as the regex, I get an error that the string does not conform to the RegularPattern protocol.

Hi @donniefitz2
Thank you for your question.
I left the custom regex example in the Sources/Examples folder. Follow this here
Custom regex should be conform to RegexProtocol in order to have more convenient underlying API in short code, instead of complex Regex third party libs.
By design custom regex ease to construct and look like that:
enum SocialLinkPattern: RegexPattern, RegexProtocol {
    case facebook = #"(?:https?:\/\/)?(?:www\.)?facebook\.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*?(\/)?([\w\-\.]{5,})"#
    case linkedIn = #"^(http(s)?:\/\/)?([\w]+\.)?linkedin\.com\/(pub|in|profile)"#
    case instagram = #"(?:(?:http|https):\/\/)?(?:www.)?(?:instagram.com|instagr.am|instagr.com)\/(\w+)"#
}

Hope I help to you.
Have a nice day!

Okay, I see what you mean. I'll create my own implementation of RegexPattern. Thanks for the quick response and for the library.


ENH: Add encryption support.

Adds new configurable crypto attributes to PostgresContentsManager
and PostgresCheckpoints.  crypto objects must provide encrypt
and decrypt methods, which will be called on data being written to
and read from the database, respectively.
The default crypto implementation is NoEncryption, which returns
its inputs unchanged.
The built-in crypto implementation is FernetEncryption, which
uses cryptography.fernet to implement symmetric-key encryption of
all notebooks and files in the database.

Assigned this to @TimShawver since he's done some work on pgcontents previously.

LGTM, just the two comments to address.  Seems like the Travis build is failing due to the missing cryptography package.

Re-entrancy stuff looks good to me!
Build failed from a flake8 error though: pgcontents/utils/sync.py:10:1: F401 '..crypto.NoEncryption' imported but unused


update endowed positions data

READY FOR REVIEW
Summary

Update to endowed positions data set
Please merge into dev for review by the client in advance of the prod push on EOD, 10/19

Review By (Oct 17)

The client has requested that this update be pushed to prod at the EOD on Thursday, 10/19, and not earlier

Criticality - 4

This update only impacts the endowed positions data

Review Tasks
Setup tasks and/or behavior to test
Go to preview link append `/endowed-positions/graduate-school-of-education, make sure it renders
Front End Validation

[ ] Is the markup using the appropriate semantic tags and passes HTML validation?
[ ] Cross-browser testing has been performed?
[ ] Automated accessibility scans performed?
[ ] Manual accessibility tests performed?
[ ] Design is approved by @ user?

Backend / Functional Validation
Code

[ ] Are the naming conventions following our standards?
[ ] Does the code have sufficient inline comments?
[ ] Is there anything in this code that would be hidden or hard to discover through the UI?
[ ] Are there any code smells?
[ ] Are tests provided? eg (unit, behat, or codeception)

Code security

[ ] Are all forms properly sanitized?
[ ] Any obvious security flaws or new areas for attack?

General

[ ] Is there anything included in this PR that is not related to the problem it is trying to solve?
[ ] Is the approach to the problem appropriate?

Affected Projects or Products

Does this PR impact any particular projects, products, or modules?

Associated Issues and/or People

JIRA ticket(s)
Other PRs
Any other contextual information that might be helpful (e.g., description of a bug that this PR fixes, new functionality that it adds, etc.)
Anyone who should be notified? (@mention them here)

Resources

AMP Tool
Accessibility Manual Test Script
HTML Validator
Browserstack and link to Browserstack Credentials

An update to the Endowed Positions data set. Client would like to make the push to Prod at the end of the workday on Thursday, Oct 19. Please push to Dev in advance for client review and approval. Thank you!

Thank you for the review @sherakama!


Multiremote support seems to be broken

Environment (please complete the following information):

Node.js version: 18.16
NPM version: 9.5.1
Browser name and version: Chrome
Platform name and version: Mac
WebdriverIO version: 7
wdio-image-comparison-service version: 5.0.2

Config of WebdriverIO + wdio-image-comparison-service

Clone the project
npm i
npm run test.local.desktop.multi

Describe the bug
[MultiremoteBrowser #0-0] Expected false to be true, 'File : "undefined/homepage-multi-chrome-latest-two-1366x768.png" could not be found'.
      actual expected

      false[ true, 'File : "undefined/homepage-multi-chrome-latest-two-1366x768.png" could not be found' ]

To Reproduce
See above
Expected behavior
It can automatically determine the name of the browser

This was an error in the specs, will be fixed with https://github.com/webdriverio/visual-testing/pull/270


when ignoring / typing into address bar during attempted auto completion suggestions, cursor jumps to signature section

Please search to check for an existing issue (including closed issues, for which the fix may not have yet been released) before opening a new issue: https://github.com/k9mail/k-9/issues?q=is%3Aissue
Expected behavior
k9mail would allow me to simply finish typing in my desired email address and not care that i ignored the auto complete suggestions.
Actual behavior
if there is an auto complete suggestion, either from my address book or from sent history, and i keep typing in my custom address, ignoring the auto-complete, it was eventually cause my cursor to jump into the signature section of my email.
Steps to reproduce

start new email
start typing in to: address
ignore auto-complete suggestion when it appears and continue typing

Environment
K-9 Mail version: 5.208
Android version: O, 8.0.0, 9/5/2017 patches, on google pixel 2 (note, this also happened on a nexus 6p, and pixel 1 on android N thru now as well)
Account type (IMAP, POP3, WebDAV/Exchange): IMAP

Duplicate of #2829


Forking OMC into the openshift org ?

I find this tool useful and I think many others would agree with me. Any plans to create a fork of this repo under the Openshift organization for increased visibility and integration with OpenShift CI ?

Hi @fxierh , I think the best way to request that is opening an RFE for it [1], adding as much information as possible about the reasons.
[1] https://issues.redhat.com/browse/RFE


Question: DEPRECATION WARNING: The behavior of changed?

First, thanks for this great gem @myronmarston . (:
I don't know where to ask, so hope this issue is not a noise. I couldn't find any thing about RSpec method, different of the *changed? code for my own.
I have this code:
expect { delete :destroy }.to change { User.count }

# or

expect { delete :destroy }.to change(User, :count)

It raises the following WARN:
DEPRECATION WARNING: The behavior of `changed?` inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after `save` returned (e.g. the opposite of what it returns now). To maintain the current behavior, use `saved_changes?` instead.

In other specs:
DEPRECATION WARNING: The behavior of `changed_attributes` inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after `save` returned (e.g. the opposite of what it returns now). To maintain the current behavior, use `saved_changes.transform_values(&:first)` instead.

How can I solve this warn? Is there any other method instead of change for this? Should I just ignore and it will still works fine?
Thanks.

Those deprecation warnings are being issued by Rails (notice the "in the next version of Rails" bit), and they have no connection to RSpec's change matcher.  As this is a Rails issue, we're not able to provide support.  You can seek help from the Rails maintainers.

@wbotelhos did you work out why you were getting this?

No, I don't @chrise86 . I'm sorry.

@wbotelhos, @chrise86 any luck getting rid of these warnings?


Send and Sync for Weak reference

Suggestion
Is there any danger in assuming Send and Sync for types that contain windows_core::Weak? In comparison, std::sync::Weak is Send and Sync.
If it's safe, I'd like it to be implemented directly in the windows_core::Weak definition. Thanks!

Yep, IWeakReference and IWeakReferenceSource are designed and implemented to be completely thread safe.


Make MlflowMetricsDataSet capable of saving a Dict[str, float] object, as mlflow.log_metrics() does

Description
At the moment MlflowMetricsDataSet can only save an object which is a nested Dict. For example:
{
    "metric1": {"value": 1.1, "step": 1},
    "metric2": [{"value": 1.1, "step": 1}, {"value": 1.2, "step": 2}],
}

However, it cannot save an object like this:
{
    "metric1": 1.1,
    "metric2": 1.2,
}

Which is frequently used and e.g. mlflow's native log_metrics() API deals fine with it.
Context
Having this support would be great to:

Make MlflowMetricsDataSet more compatible with mlflow.log_metrics()
Allow users to save simple non-nested Dict, without the need to convert it to nested format.

Possible Implementation
Either add a new Dataset or handle this within existing MlflowMetricsDataSet.

P.S. I read about flatten and recursive settings in mlflow.yml, but at least to my understanding those serve other purposes than the one I described above.

Hi, this is indeed really something needed and it's been on my to do liste for a long time. As for MlflowMetricDataSet  we should likely modify MlflowMetricsDataSet to have suggested behaviour and move the existing behaviour to a new MlflowMetricsHistoryDataSet.
The reason why it is done like this currently is to maintain consistency between save and load method but I acknowledge that the user experience is a pain.
Feel free to open a PR to help this getting real ;)

I don't think it was ever tackled properly, glad to get a PR if you can @lvijnck !


Add Handayani

@robikurniawan Pull request merged. Thank you!

@robikurniawan Pull request merged. Thank you!


Add temporary patch for linux-tegra

The patch has been submitted upstream as well:
https://github.com/madisongh/meta-tegra/pull/101
Signed-off-by: Alberto Mardegan<EMAIL_ADDRESS>

@mardy are you sure you it has to go to master? aren't you guys using rocko atm?

We are using master in our manifest file, but the hash we reference is also in the rocko branch, so I guess it's a better idea if I rebase this.

Hi! I prefer to see if I can find some other solution, since the upstream maintainer didn't approve the patch. Let's keep it floating for some time :-)

I've found a better way to do this, without touching the meta-tegra layer: https://github.com/madisongh/meta-tegra/pull/101
So, we can drop this.


callCabal2nix default.nix is garbage collected

When using callCabal2nix, the resulting derivation has no gc link to the IFD'd default.nix. I think this should be added as a build time dependency so that cabal2nix doesn't get collected, and so you don't have to repeatedly wait for the derivation to be built. It's minor, but enough to be annoying.

/cc @shlevy @peti

:+1: from me.

I'm not sure whether I understand this correctly. You want to prevent the garbage collector from collecting a file that it could collect so that this file doesn't have to be re-built even though it can be re-built?

@peti It would only be a  build-time dependency, and thus only kept if keep-derivations and keep-outputs are both true. Those settings indicate "I don't want to have to do any work to rebuild things I already have and I'll take the disk hit"

Hmm, okay. That sounds fine.

Just pointing out that https://github.com/NixOS/nixpkgs/pull/36216 was reverted by https://github.com/NixOS/nixpkgs/pull/194753 to avoid rebuilds, but you can still explicitly add a GC root on haskellPackages.foo.cabal2nixDeriver.


reformat all codes by autoflake and isort

add autoflake and isort in pre-commit
clean all codes

Don't change all files in this PR. You should only change the precommit config. File formatting should be done incrementally.

You don't need to use flake, instead you can use https://github.com/hadialqattan/pycln to remove unused imports.


Hello sir, i got a bug just like in the picture below, may i ask you why? Thank you so much

The error said
error ../../packages/ui/src/components/ui/accordion.tsx:7:0
shell:dev: Module not found: Can't resolve '@ui/lib/utils'
shell:dev:    5 | import { ChevronDown } from 'lucide-react'
shell:dev:    6 |
shell:dev: >  7 | import { cn } from '@ui/lib/utils'
shell:dev:    8 |
shell:dev:    9 | const Accordion = AccordionPrimitive.Root
shell:dev:   10 |
shell:dev:
shell:dev: https://nextjs.org/docs/messages/module-not-found

I followed your instructions and only seemed to change the tsconfig.json file because my folder structure was surrounded by the src folder.
My tsconfig.json
{
  "extends": "tsconfig/react-library.json",
  "include": ["."],
  "exclude": ["dist", "build", "node_modules"],
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@ui/*": ["./src/*"],
      "@ui/components/ui/*": ["./src/components/ui/*"]
    }
  }
}

This should be fixed with the latest relase 1.1.0


feat(tiller): Allow Third Party Resources

Allow third party resources in helm packages, e.g. Certificate
objects for kube-cert-manager.

This change is

Superseded by #1473


Wrong ontological links

Hi Adnan,
I have noticed that
aglaiabbreviatin F (CHEBI:70267)
crispolide (CHEBI:73231)
wybutoxosine  (CHEBI:64330)
all have the relationship: is a hydroperoxide (CHEBI:35923)
It should in stead be: is a peroxol (CHEBI:35924)
Cheers,
Kristian

now fixed. thanks


How to remove an old sensor from VRM Portal (online)?

Hi, thank you for providing this code, enabling us to easily integrate MQTT sensors into VRM installations. It is currently running very smoothly on a Raspberry Pi in a camper installation.
I have abused the implementation somewhat, by skipping the MQTT registration entirely on my sensor (to enable deep sleep and maximize battery life). The registration and formatting to the portal ID is now done in Node Red; my sensor only publishes its own data via ESP Now.
Having worked recently on the installation with a colleague (it's not mine) we have swapped out the sensor in favor of another one. During this, i have changed the sensor IDs/names as well, requiring new topics. However, even after posting a "connected":0 key/value to the old topic, it didn't go away from the VRM portal. It is still visible and cannot be removed by the device list, since the devices through this driver do not appear there:

The VRM instance, "1" is not handed out to newer devices so some part of the system must still know that the device still exists.
Is there a possibility to remove the device remotely without SSH? It will be a few days before I can get back to the unit physically and enter it through SSH.
Best regards

You need to see what is on the GX device not VRM. VRM is delayed by time and only displays what the GX device has collected. You should be able to access the GX console remotely from within VRM. When a device is disconnected the GX device should show an option to remove disconnected devices.

By the way, this is how Venus OS works and not a defect in the driver. For example, I have a set of 4 Ruuvi tags that were connected to my CCGX via Bluetooth until this week. They still show up in VRM despite not being connected.

Thank you for your response.Despite sending a disconnect tag and removing the device from its internal list after disconnecting it virtually, it no longer exists in the internal list. It only shows up in the online VRM portal. It seems to be a bug there - I will watch it for a few days and then reach out to Victron.Am 17.05.23, 09:08 schrieb Martin Jarvis @.***>:
By the way, this is how Venus OS works and not a defect in the driver. For example, I have a set of 4 Ruuvi tags that were connected to my CCGX via Bluetooth until this week. They still show up in VRM despite not being connected.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>


imap-backup do not start on Ubuntu 22.04

I'm messed up.
When I updated to Ubuntu 22.04 (Mint 21) my imap-backup stopped to work. At first, I downloaded the last version from here, then I installed the last version of imap-backup using "gem install". ERRORS
Then I uninstalled all up to ruby on my pc, deleted manually all old versions of gem in all folders and began a clean installation of ruby.
But after all: Starting imap-backup I'm still receiving this horror list of error messages
imap-backup  <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:160:in require': cannot load such file -- mail/indifferent_hash (LoadError)
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:160:in rescue in require' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:149:in require'
from /var/lib/gems/3.0.0/gems/mail-2.8.0/lib/mail.rb:14:in <module:Mail>' 	from /var/lib/gems/3.0.0/gems/mail-2.8.0/lib/mail.rb:3:in <top (required)>'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/email/mboxrd/message.rb:2:in <top (required)>' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/serializer.rb:3:in <top (required)>'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup.rb:10:in <top (required)>' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli/helpers.rb:1:in <top (required)>'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli.rb:8:in <class:CLI>' 	from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli.rb:7:in module:Backup'
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli.rb:6:in <top (required)>' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/bin/imap-backup:8:in <top (required)>'
from /usr/local/bin/imap-backup:25:in load' 	from /usr/local/bin/imap-backup:25:in '
internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require': cannot load such file -- mail/indifferent_hash (LoadError) 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from /var/lib/gems/3.0.0/gems/mail-2.8.0/lib/mail.rb:14:in <module:Mail>' 	from /var/lib/gems/3.0.0/gems/mail-2.8.0/lib/mail.rb:3:in <top (required)>'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/email/mboxrd/message.rb:2:in <top (required)>' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/serializer.rb:3:in <top (required)>'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup.rb:10:in <top (required)>' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli/helpers.rb:1:in <top (required)>'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli.rb:8:in <class:CLI>' 	from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli.rb:7:in module:Backup'
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli.rb:6:in <top (required)>' 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in require'
from internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in require' 	from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/bin/imap-backup:8:in <top (required)>'
from /usr/local/bin/imap-backup:25:in load' 	from /usr/local/bin/imap-backup:25:in '
`
imap-backup worked properly for nearly a year on this pc and now such a mess. All the folder exist. When I'm starting imap-backup with sudo, the list is a lot shorter:
sudo  imap-backup /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli/helpers.rb:68:in load_config': Configuration file '/root/.imap-backup/config.json' not found (Imap::Backup::ConfigurationNotFound)
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli/backup.rb:15:in run' 	from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/cli.rb:58:in backup'
from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in run' 	from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in invoke_command'
from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in dispatch' 	from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in start'
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/bin/imap-backup:12:in block in <top (required)>' 	from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/lib/imap/backup/logger.rb:34:in sanitize_stderr'
from /var/lib/gems/3.0.0/gems/imap-backup-8.0.1/bin/imap-backup:11:in <top (required)>' 	from /usr/local/bin/imap-backup:25:in load'
from /usr/local/bin/imap-backup:25:in <main>'
Here is the only thing I understand: The json config file is not there, because it is in my home folder, of course. When I copied the whole .imap-backup-Folder to root-Folder, it worked right away and transformed all boxes metadata to the Version 3 Format.
Does that mean, that from now on, I have to execute imap-backup with sudo rights and configuration file stored in root-Folder?
That's not good for my needs. Don't like to execute usual programs in root mode. Also don't like to make a user-install into my home folder.
What is to do, to have the former behavior back?

Hi @Rudiberto
Thanks for reporting this issue.
It is caused by release 2.8.0 of the 'mail' gem.
Here's the GitHub issue.
There's no need to switch to running imap-backup as root.
As a quick fix, you can do this:
sudo chmod o+r /var/lib/gems/3.0.0/gems/mail-2.8.0/lib/*.rb

I'll release an update to imap-backup with a fix later today.

Glad that's sorted out!


Document how to set attribute precedence

Issue type
Missing information
Problem description
The mentioned page contains a very brief half-sentence telling that you can somehow configure attribute precedence.
But it misses to describe how this can be done.
It would be nice to have a short section like for compatibility rules and disambiguation rules, that describes how to properly configure attribute precedence.
Page with the problem
https://docs.gradle.org/current/userguide/variant_attributes.html#sec:abm_algorithm

Thank you for your interest in Gradle!
This is a valid documentation issue.


May I use a higher version of tensorflow

Hello,
Thank you for your excellent work. I am using a new PC whose GPU is only eligible to cuda>=11.2. Thus, I am wondering if I can use tensorflow==2.6.0 instead of 1.4.0. And what else dependence version should I change?

Yes, theoretically, experiments can be replicated in an environment with updated dependencies.


⚠ Bofrost.at has degraded performance

In de95f6e, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1682 ms

Resolved: Bofrost.at performance has improved in cb8c48f after 313 days, 2 hours, 22 minutes.


commandline argument -oJunit disables -v

I just noticed on our jenkins that the verbose output is not working. This seems to be caused by also having the option '-oJunit' active. It seems the inheritance of testOutput by JUnitTestOutput disables this functionality.
Is this accidental or is there a rationale behind this?
I'm already looking into fixing it myself.

Hi there,
This behavior is intentional. One simple solution would be to run the tests twice, one time with -oJunit, the other time without.
As an aside, we found the JUnit option of little use. We are using the -v output for further parsing and report collection.

the junit is useful for us to combine the results of different test projects run within one Jenkins job.
And running twice might work for now, but in the end we will need thousands of tests and I dislike the idea of then doubling the run time.
I do find it hard to verify my changes though, maybe because vs2010 is the one I do not have installed.

We had the same problem. Our tests produce lots of output to the console, and having the test names written before each test is run really helps to find the problem. Like you @WilcoBT we use the xUnit output to give at-a-glance summaries of the project that integrated with our CI server.
In the end the solution I came up with was to write a simple plugin that did almost exactly what the TestOutput class does and register it in our main function if both '-v' and '-oJunit' were defined. If you take a look at the TestPlugin class then you can see that all is needed is for the plugin's preTestAction and postTestAction methods to get the test case's name as is done here. This method will ensure you don't have to run your tests twice, which would be very undesirable as you say.
Sorry for this verbose reply, but I'm not permitted to distribute the source code.
@arstrube is does seem like an odd design decision. The xUnit output in no way adversely affects what's written to the console, and it does seem like all the logging (default, verbose, xUnit) could be implemented as a stack of test plugins. If it really is a deliberate decision then it may be better to show the intent when parsing the command line arguments (e.g. throw an error like unable to support verbose flag when -ojunit is selected) although that would be worse for me and @WilcoBT.

@ajf58 I made it sound like it was my design decision ;-) Actually, I have no idea who decided it or why, but my new PR #596 attempts to solve the problem in the simplest way I could think of. I gave the JUnitTestOutput a ConsoleTestOutput member and have it delegate console output to that, if -v is active. (I think there's not much point in having the dots printed out when doing -junit, is there?)
Seems like a very nifty idea to me to write a plugin to do the job :-).

@arstrube This is fixed, right? If so, it should be closed.

Yes. I did -v -ojunit recently and there was console output for that as expected.


docs: added some badges

closes #249

It says 0% on codecov? Do we want that badge?

It says 0% on codecov? Do we want that badge?

Yeah all we have a e2e tests on a compiled version which does not work well for coverage. I think we can leave it out, but more tests should for sure be added.


GetLocalUrl

I've been following the article until the part Url.GetLocalUrl which does not seem to exist. Do i miss something?

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

ID: d2229fc6-f8c8-952e-e567-b1d5a463055a
Version Independent ID: b18a015b-914d-f014-f711-120d208904d9
Content: Use cookie authentication without ASP.NET Core Identity
Content Source: aspnetcore/security/authentication/cookie.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Hello @seikosantana ... It's in the sample app at ...
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authentication/cookie/samples/6.x/CookieSample/Extensions/UrlHelperExtensions.cs
... so you'd use that in your app.
Leave this open, as @Rick-Anderson might do something in the text to call that out ... or it might already be in the topic somewhere. I'm not sure. This is one that he takes care of.


Wolf API

Overview
The basic idea is to properly separate the core of Wolf from the Moonlight protocol:

The main benefit of this approach is that the same underlying core methods (create virtual remote sessions and stream them) could be accessed by any other kind of client, for example:

A web config page where you can see live what's running and have full control over start/stop of any part of it
A different streaming protocol like WebRTC
As a normal API accessible from any other kind of language

This would also allow controlling multiple distributed servers (aka: Kubernetes support, as requested by many)
Implementation
So... a REST API?
A typical REST API could work, but it doesn't cover all the events that are starting from the backend and that needs to be sent to clients, ex: an application stopped running, a pipeline failed, or a remote controller received rumble data.
So... a WebSocket?
A WebSocket allows having a communication channel that is bidirectional, and has the good advantage that can also be used natively by browser based languages. This might be one way forward, but then I discovered something that might be a better fit:
MQTT:

Event driven, a great fit to how Wolf is already structured
Can work over TCP/UDP and WebSockets.
Supports QoS, persistent sessions, encryption and authentication
Lots of well-supported libraries to use it in most programming languages

My only concern is how well it'll be suited for carrying mouse/keyboard/joypad inputs where latency is absolutely fundamental.
This still needs to be fleshed out properly, in the meantime, here are a few interesting links:

Broker: eclipse/mosquitto or emqx/nanomq

Latency, see: https://github.com/eclipse/mosquitto/issues/1616 and https://github.com/eclipse/mosquitto/issues/433

Using AsyncAPI it's possible to formally define the API and even automatically
generate the boilerplate code for clients.
MQTT Debug app

Hi @ABeltramo, Have you considered gRPC?

I have looked briefly into it, I think it wasn't well suited for browser based apps or it was lacking in some other department.
I should double check though!

I work with web-based grpc technology professionally. It is possible to achieve server-side streaming with it, but duplex is not yet possible -- from the client, only unary calls are supported. However I know that you can fall back to websocket streaming from the client, so I wonder if the same functionality can be achieved with MQTT instead of ws?
Though this does raise the question of whether you would need a true duplex connection for your API, because as far as I'm aware, the fallback protocol would essentially create two connections: one server-side (gRPC), and one client-side (ws or hopefully MQTT)

Yeah we absolutely need duplex since some stuff will come from the client (like joypad inputs) and some stuff will come from the server (like joypad rumble) and the link must be as low latency as possible for obvious reasons.
My idea in the end was to start with a simple plain websocket and see how that goes. It should be trivial to swap one technology with another one once everything is properly setup in code.

Keeping to a more mature technology to start out sounds like a solid plan!
I'm curious though if you are planning on opening up a full duplex stream through which to transmit every type of data? The reason I bring this up is because I'm thinking about things like video and audio versus things like input. Video and audio could conceivably be solely server-sent, where input would be only client-sent no? Would either of these transports need to be two-way as opposed to a one-way stream for each of them?

Audio and video will surely go over WebRTC, but we need an additional bidirectional stream for user inputs and general server events (app start/stop for example).

input would be only client-sent

This is something I also wrongly assumed before working on this project but it's not as simple as that, rumble (and more recently force feedback for PS controllers) are events that originates from the remote game running and needs to be sent all the way to the local gamepad from the server.
There are other "minor" things like setting the gamepad led color for example which is something that originates from the app remotely and not from the local gamepad.

I’m working with Farcry to get a setup using sway and webrtc to do video+audio and gamepad. We’re going to be using WebRTC DataChannels for input. DataChannels are pretty neat in that you can specify packet ordering, retransmits etc (https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel). We’ll be using MQTT for signaling and for things like periodic server/client stats being broadcast around.

Thanks for pointing out DataChannels I didn't knew about them, but it sounds like a very nice fit for what we need!

If you looking to the bleeding edge you might consider WebTransport over HTTP/3 (QUIC) for a data transport layer.
Additional ref: https://github.com/kixelated/moq-rs
As QUIC is over UDP it opens a lot of interesting options you dont get with WebSockets, MQTT and the like.

Since this was opened I've further separated the modules into independent projects, like inputtino and gst-wayland-display. I don't exclude that we might re-visit exposing an API for Wolf in future, but the focus will be different compared to what it's outlined in here..


Avoid using any force !

I found there're some table view extension using force_casting.
Let's return exactly the same as normal tableView's function. Also these repository is extension. It means that this code is kind of hidden code. Let's make it simple as possible.

also this will crash the app when cell is not registered or cannot be casted. Imagine someone dequeue the cell without testing and it is missed in code review. The app will crash on production or on tester hand.

I don't understand your mean about return exactly the same as normal tableView's function. Could you explain more?

in UITableView class, there're function to dequeue cells and headers. They return CellType and HeaderType with optional type. Because there are cases that the cell cannot be dequeue some how .
Let's keep it's behavior by returning optional type
    func dequeueReusableCell<T: UITableViewCell>(for cellClass: T.Type, reuseIdentifier: String = T.stringClass, for indexPath: IndexPath) -> T? {
        return dequeueReusableCell(withIdentifier: reuseIdentifier, for: indexPath) as? T
    }

    func dequeueReusableHeaderFooterView<T: UITableViewHeaderFooterView>(for headerFooterClass: T.Type, reuseIdentifier: String = T.stringClass) -> T {
        return dequeueReusableHeaderFooterView(withIdentifier: reuseIdentifier) as? T
    }

Ya! Could you also setup SwiftLint here?

Ya! Could you also setup SwiftLint here?

Yes, will add to the project


DB2 - Listing schemas error

System information:

Windows 10 Pro
DBeaver version - Version <IP_ADDRESS>909040839

Connection specification:

Database name and version -DB2 DSN10015
Driver name - IBM Data Server Driver for JDBC and SQLJ 4.19.26
Do you use tunnels or proxies (SSH, SOCKS, etc)?  - No

Describe the problem you're observing:
After successfully connecting to DB click on the Schemas in the Database navigator it shows an error:
SQL Error [42704]: SYSCAT.SCHEMATA IS AN UNDEFINED NAME. SQLCODE=-204, SQLSTATE=42704, DRIVER=4.19.26
SYSCAT.SCHEMATA IS AN UNDEFINED NAME. SQLCODE=-204, SQLSTATE=42704, DRIVER=4.19.26
SYSCAT.SCHEMATA IS AN UNDEFINED NAME. SQLCODE=-204, SQLSTATE=42704, DRIVER=4.19.26
THE DESCRIBE STATEMENT DOES NOT SPECIFY A PREPARED STATEMENT. SQLCODE=-516, SQLSTATE=26501, DRIVER=4.19.26
THE CURSOR SQL_CURLH200C1 IS NOT IN A PREPARED STATE. SQLCODE=-514, SQLSTATE=26501, DRIVER=4.19.26
Steps to reproduce, if exist:
Include any warning/errors/backtraces from the logs

No problems here:

Are you sure it is not a privilege/authorisation issue ?

The same user on other DB Tools works just fine.

@fmatosic What DB2 server do you use? Is it DB2 LUW or DB2 i or DB2 z/OS?

DB2 z/OS

@fmatosic Then you should use DB2 for z/OS driver. Currently you are trying to use DB2 LUW driver.
DB2 LUW and DB@ z/OS have very different system catalogs.

Great this worked, I was using my db2 jars for zos but I chosen the DB2 LUW when selecting the Database. Thnx


opnsense provider crashes with segfault

System Information
Linux distribution
Debian 11
Terraform version
Terraform v1.2.3
Provider versions
0.3.0

Description of Issue/Question
Setup
infra.tf
resource "opnsense_dhcp_static_map" "dhcp1" {
  interface = "LAN"
  mac       = "9e:0d:a6:a7:7e:fb"
  ipaddr    = "<IP_ADDRESS>"
  hostname  = "myhostname"
}
resource "opnsense_dns_host_override" "dns1" {
  type   = "A"
  host   = "myhostname"
  domain = "example.com"
  ip     = "<IP_ADDRESS>"
}

Steps to Reproduce Issue
Running terraform apply produces the following output and stacktrace
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with
the following symbols:
  + create

Terraform will perform the following actions:

  # opnsense_dhcp_static_map.dhcp1 will be created
  + resource "opnsense_dhcp_static_map" "dhcp1" {
      + hostname  = "myhostname"
      + id        = (known after apply)
      + interface = "LAN"
      + ipaddr    = "<IP_ADDRESS>"
      + mac       = "9e:0d:a6:a7:7e:fb"
    }

  # opnsense_dns_host_override.dns1 will be created
  + resource "opnsense_dns_host_override" "dns1" {
      + domain = "example.com"
      + host   = "myhostname"
      + id     = (known after apply)
      + ip     = "<IP_ADDRESS>"
      + type   = "A"
    }

Plan: 2 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

opnsense_dns_host_override.dns1: Creating...
opnsense_dhcp_static_map.dhcp1: Creating...
opnsense_dhcp_static_map.dhcp1: Still creating... [10s elapsed]
opnsense_dns_host_override.dns1: Still creating... [10s elapsed]
opnsense_dns_host_override.dns1: Creation complete after 11s [id=A/myhostname/example.com/<IP_ADDRESS>/0]
╷
│ Error: Plugin did not respond
│
│   with opnsense_dhcp_static_map.dhcp1,
│   on infra.tf line 3, in resource "opnsense_dhcp_static_map" "dhcp1":
│    3: resource "opnsense_dhcp_static_map" "dhcp1" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The
│ plugin logs may contain more details.
╵

Stack trace from the terraform-provider-opnsense_v0.3.0 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xc56096]

goroutine 23 [running]:
github.com/gxben/terraform-provider-opnsense/opnsense.(*DHCPSession).GetStaticFieldNames(0xc00062a180, 0xc0000e9b90, 0x2)
        github.com/gxben/terraform-provider-opnsense/opnsense/dhcp.go:69 +0x116
github.com/gxben/terraform-provider-opnsense/opnsense.(*DHCPSession).GetAllInterfaceStaticMappings(0xc00062a180, 0xc000322549, 0x3, 0xd37a80, 0xfd8d40, 0x0, 0xc0002ae600, 0x0)
        github.com/gxben/terraform-provider-opnsense/opnsense/dhcp.go:146 +0x298
github.com/gxben/terraform-provider-opnsense/opnsense.(*DHCPSession).FindMappingByMAC(0xc00062a180, 0xc000685778, 0xc0002ae650, 0x0, 0x0)
        github.com/gxben/terraform-provider-opnsense/opnsense/dhcp.go:249 +0x46
github.com/gxben/terraform-provider-opnsense/opnsense.(*DHCPSession).CreateStaticMapping(0xc00062a180, 0xc000685778, 0x8, 0xd37a80)
        github.com/gxben/terraform-provider-opnsense/opnsense/dhcp.go:268 +0x39
github.com/gxben/terraform-provider-opnsense/opnsense.resourceDhcpStaticMappingCreate(0xc000189c00, 0xd0ed60, 0xc0000a0b40, 0x2, 0x15ab440)
        github.com/gxben/terraform-provider-opnsense/opnsense/resource_opn_dhcp_static_map.go:89 +0x25f
github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc000364120, 0xc000607310, 0xc0006005c0, 0xd0ed60, 0xc0000a0b40, 0xd73601, 0xc0000a3968, 0xc0006ff470)
        github.com/hashicorp/terraform-plugin-sdk@v1.9.0/helper/schema/resource.go:310 +0x375
github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc000370100, 0xc00020da18, 0xc000607310, 0xc0006005c0, 0xc0000a4ce8, 0xc0000be3d0, 0xd752a0)
        github.com/hashicorp/terraform-plugin-sdk@v1.9.0/helper/schema/provider.go:294 +0x99
github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc00036e038, 0xffbf30, 0xc0006fec60, 0xc0001896c0, 0xc00036e038, 0xc0006fec60, 0xc000624b80)
        github.com/hashicorp/terraform-plugin-sdk@v1.9.0/internal/helper/plugin/grpc_provider.go:885 +0x8a5
github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0xe49ec0, 0xc00036e038, 0xffbf30, 0xc0006fec60, 0xc000075500, 0x0, 0xffbf30, 0xc0006fec60, 0xc00013e540, 0xdf)
        github.com/hashicorp/terraform-plugin-sdk@v1.9.0/internal/tfplugin5/tfplugin5.pb.go:3305 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000082a80, 0x1003718, 0xc000083500, 0xc000588500, 0xc0004b8f60, 0x1555be0, 0x0, 0x0, 0x0)
        google.golang.org/grpc@v1.27.1/server.go:1024 +0x522
google.golang.org/grpc.(*Server).handleStream(0xc000082a80, 0x1003718, 0xc000083500, 0xc000588500, 0x0)
        google.golang.org/grpc@v1.27.1/server.go:1313 +0xd2c
google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc0000b8170, 0xc000082a80, 0x1003718, 0xc000083500, 0xc000588500)
        google.golang.org/grpc@v1.27.1/server.go:722 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
        google.golang.org/grpc@v1.27.1/server.go:720 +0xa5

Error: The terraform-provider-opnsense_v0.3.0 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.

I logged in to opnsense after running terraform apply and the Reporter caught an error:
[06-Jul-2022 11:56:52] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/services_unbound_host_edit.php on line 121

This would mean that there was an issue with configuring the DNS Override via API, however the override was successfully added:

The issue is, that the DHCP Static Lease isn't configured.

Additional information:
I made sure that my opnsense firewall has a valid ssl certificate and that username and password are correct

Just to add to this conversation, I believe you can also see the interface name to use in the opnsense_dhcp_static_map resource from the url in OPNSense. I.e. when going to Services » DHCPv4 » LAN, you can see the interface name in the url: https://<opnsense_url>/services_dhcp.php?if=lan


[SR-15923] Incorrect coverage report if nil coalescing operator (??) is used

Previous ID
SR-15923

Radar
rdar://problem/90348983

Original Reporter
qyang (JIRA User)

Type
Bug

Attachment: Download

Environment
Xcode 13.2.1 / Swift 5.5.2

Additional Detail from JIRA

Votes
0

Component/s

Labels
Bug

Assignee
None

Priority
Medium

md5: cc7b4ce59763252105881efdb3941cfa

Issue Description:
We noticed that code coverage reports is incorrect if nil coalescing operator (??) is used in the code.
Here are the steps to repro:
create main.swift with following content,
func compare1(_ lhs: Int?, _ rhs: Int?) -> Bool {
    return (lhs ?? 0) > (rhs ?? 0)
}
func compare2(_ lhs: Int?, _ rhs: Int?) -> Bool {
    return (lhs != nil ? lhs! : 0) > (rhs != nil ? rhs! : 0)
}
let _ = compare1(2, 5)
let _ = compare2(2, 5)

$ xcrun swiftc -profile-generate -profile-coverage-mapping main.swift
$ ./main
$ xcrun llvm-profdata merge default.profraw -o coverage.profdata
$ xcrun llvm-cov report -instr-profile coverage.profdata main
$ xcrun llvm-cov show -instr-profile coverage.profdata main

As we can see, the number of line showed in the report is 10, but there are only 8 lines of code. The difference is 2, because two `— ` is used in the sample. Also, the missed line shows 2, which really should be 0 by the definition of line coverage. The behavior of `` should be similar to `?:`.
Xcode's coverage viewers displays the same incorrect numbers, which have confused people.

This appears to be an issue generally for closures that share the same line with other code, e.g:
func bar<T>(_ x: T, _ y: () -> T) -> T { x }

func foo() -> Int {
  bar(1, { 1 })
}
foo()

Looks like this is an llvm-cov issue as I can also reproduce it with:
static void foo() {}; static void bar() {}

int main(int argc, const char *argv[]) {
  foo();
}


Added german translation

Hello,
thanks for the nice package!
I have added a language file for german in this pull request.

Hey! Thank you so much for this addition!


[AppService] az appservice list-locations: Add hyperv-workers-enabled parameter

Add hyperv-workers-enabled parameter to get regions which support hosting web apps on windows container workers
Related command

az appservice list-locations
Description

Add hyperv-workers-enabled parameter to get regions which support hosting web apps on windows container workers
Testing Guide

Tested getting regions support hosting web apps on windows container worker by running az appservice list-locations --hyperv-workers-enabled
History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

AppService

Please add some test cases for this new parameter

Test case for this new parameter is added

Please fix CI issues.

Please fix CI issue

A new fix is merged in dev to fix test_read_images_from_alias_doc test, all CI checks passed after merging with latest dev.


Implemented around-only and around-when-alone.

This fixes #733 and also fixes #840.
For details on what has been done see the changes in the docs.

I have now rebased the changes and resolved the merge conflict.

Hmm, there seem to be many issues in my code style which could have been solved by a formatter and maybe a spell / grammar checker (#866 - whoops).
As I have seen different code formatting choices used throughout the code base I was wondering which I should use for KMonad PRs.

Most of it is just trailing whitespace and grammar, yeah. I wouldn't worry too much about the style changes, this is mostly just OCD-ish behaviour on my part :) We don't really use any kind of formatter, so I'll try to cool that a bit in the future

so I'll try to cool that a bit in the future
I have no problem with how it is currently done, since it doesn't create any extra work for me.
I just didn't want to create extra work for you.
So feel free to correct things as you have done before.

Thanks!

@jokesper seems like something slipped through: lower-case compose key sequences in the config (e.g., ü or à) automatically get translated to upper-case with the new default. I haven't investigated this much further, but for now I will revert the commit that changes the default

Hmm I will investigate this further.

The problem is that the tap function runs the press followed by the release action. But the new buttons, which were inspired (code wise) by the tap-hold button family which all only assign a press action.
So this results in some wierd entanglement between buttons and concrete keycodes. I.e They can only be truly released via key releases.


[Feature Request] Sort/Group by Tracking Status

Why/User Benefit/User Problem
TachiyomiSY has a feature in the library sort menu that allows grouping by Categories, Sources, Status, and Tracking Status.
I personally rely on tracking sites like Anilist to manage the anime I watch, so it would be useful to have the Tracking Status grouping instead of manually creating my own categories for Watching, Rewatching, and Planned series.
What/Requirements
TachiyomiSY has already implemented this feature.
Group by Categories, Sources, Status (ongoing, complete, etc), and Tracking Status (currently watching, planned, completed, paused, not tracked, etc).

I would love this as well.


Cydo errors on unc0ver 2.10

I've lately been having a problem with Cydia not being able to install packages after a certain amount of time. I can install a few packages, but after that, I get an error message: sub-process /usr/libexec/cydia/cydo has exited unexpectedly
The message is shown whenever I try to download packages https://i.imgur.com/hJPVtGn.jpg
My troubleshooting has gone through countless rootfs restores, to no help. My device is a iPhone SE on 11.1 with unc0ver 2.10. I will greatly appreciate any and all help!!

Do same setting sure will work sorry for My bad English


Ft-home-page component #153150277

What does this PR do
Create the component for home page
Description of Task to be completed
split the homepage template  into components
create each components
combine all components
create a route to link homepagecomponent

Coverage remained the same at 90.396% when pulling 82484cd2a3aa86b628a26497c8d5ac2e245a376e on ft-homePageComponent-#153150277 into 4ff688dcab4cf3d63e5044b6c5579321c29f3c79 on develop.


Error messages during export All commands

Describe the bug
When trying to "export all Access Profiles as CSV" via the right click menu item after inputting a filename, receive error message:
Error running command vscode-sailpoint-identitynow.csv.export.access-profiles.view: Request failed with status code 429. This is likely caused by the extension that contributes vscode-sailpoint-identitynow.csv.export.access-profiles.view.
An error is also seen when trying to use "export all roles as CSV" via the right click menu item after inputting a filename:
Error running command vscode-sailpoint-identitynow.csv.export.roles.view: Cannot read properties of null (reading 'property'). This is likely caused by the extension that contributes vscode-sailpoint-identitynow.csv.export.roles.view.
It is unclear how to resolve these.
To Reproduce

Right click on "Access Profiles" or "Roles" and choose export
put a path and filename in place (or accept defaults)
Encounter error

Expected behavior
exports should occur, and without error.

Can you try the new release v0.0.26?

@chadcarlton does the latest release (v0.0.27) solve this issue?

@chadcarlton without any answer, I'll close this issue.
Let me know if you still have an issue and we will reopen it.


Link is broken to Python Agent configuration

Link http://newrelic.com/docs/python/python-agent-configuration is broken (404 error). That link is mentioned here.

Thanks for pointing this out @DmytroLitvinov! We will get that updated shortly.


Add Expendable tabs editor for Content, JS and CSS

Resolved in https://github.com/VolkovLabs/business-text/pull/348


Youtube videos source url fail

Hi,
I have installed this package in Angular 12 and playlist is working fine with the urls of videos that you have used in your demo  but its not playing videos when I replaced youtube videos URLs in src attribute.

can you please help me in sorting this issue ? I have added code snippet as well.

Thanks

Hi peter,
Thanks for detailed explanation. I'll try to handle it with another way.
Best Regards,
Bilal Ahmad
On Sat, 9 Oct 2021, 12:47 pm Péter Babják, @.***> wrote:

Hi Bilal14078,
I have to say with regret, it is impossible with this videoplayer package,
because video tag only supports files that are either MP4, WebM and Ogg.
Youtube already provides you with an "embed" function on their page which
auto generates the iFrame for you.
This package work with video tag and not with iframe.
Youtube link is not a videosource. It is a link to a page, where you can
see a video.
There is Youtube API, but it is compleceted and it can not handle all of
my control, so I did not deal with it.
Summary: please, change your Youtube link to video source link.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pepe19000/NgxVideoListPlayer/issues/3#issuecomment-939249965,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHEWXCKDOFD5PTF4D7KV45TUF7XRXANCNFSM5FUDELEA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Yes player would work this way but in my use case I have to play dynamic
playlists using youtube videos. So I can't save these videos on google
drive etc.
Thanks
On Sat, 9 Oct 2021, 5:03 pm Péter Babják, @.***> wrote:

Maybe try to download the video, upload it to a public file server (e.g.:
Google Drive) and link from there
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pepe19000/NgxVideoListPlayer/issues/3#issuecomment-939286013,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHEWXCIW4O6OQGZ4336KR4DUGAVR5ANCNFSM5FUDELEA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Okay, i understand your problem.
I will see Youtube API tonight. Maybe i can found a solution for you. If need i modify this package with a youtube play solution :)

I checked Youtube API.
I started the integration of it successfully and finished it, but i need more time to test it.
Tomorrow night i will update this npm package. Please be patient.
Thank you :)

Alright that's great.
On Mon, 11 Oct 2021, 12:32 am Péter Babják, @.***>
wrote:

I checked Youtube API.
I started the integration of it successfully and finished it, but i need
more time to test it.
Tomorrow night i will update this npm package. Please be patient.
Thank you :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pepe19000/NgxVideoListPlayer/issues/3#issuecomment-939539437,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHEWXCKVPQGSTE7NMP7IXJ3UGHS4NANCNFSM5FUDELEA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

The integration is done. You can update the package to 12.2.4.
Please, read the new install guide and enjoy it :)
If you satisfied with this you can find a donation button in my Demo site.
Thank you,
Peter

Closed


Add Chinese version refer link

Hi, I've finished the pattern part translation. Would you mind I add this reference link now? Or you think it's better to add it when I finish all the translation?

@hateonion Thanks for putting this up :)


gh-actions: add 'continuous-integration.yaml'

Add 'continuous-integration.yaml' with a build matrix.

Simple config, it tests on all 3 major platforms, LGTM!

There are some things to iron out:

retry
failed ripgrep issue (likely due to unauthenticated token)

@MatthewKhouzam we will need to setup a token for the upstream repo to authenticate requests (such as ripgrep) which the yaml file can then reference. We can also include retries to the jobs so we run them max 3 times (like in the upstream theia repo) if you want.


Draw circle with color fill inside

I need to draw a circle where there is the color inside
I think you have to add a fill function for each drawing

Great idea. Im going to learn how to do it to help this issue.


Add test for x-ms-client-name on schemas

m4 recently added the feature. Test it.

cc @tg-msft, x-ms-clientname should be allowed on everything now.


Gitea: Recover soft-deleted secret

PR for issue https://github.com/microsoft/AzureTRE/issues/1760
What is being addressed
Due to:

purge protection being enabled on keyvault in some environment (e.g. main E2E tests in CI), and
Terraform purging secrets while deleting them (enabled by default),
E2E tests are failing on main because secrets can't be purged.

This PR changes settings for azurerm Terraform provider, so that it does no longer purge secrets while deleting them, and restores soft-deleted secrets.
So secrets will be merely soft-deleted but never purged, consecutive runs of E2E tests will be restoring and using previously deleted secrets.
This was tested in a dev environment with enabled purge protection via running E2E several consecutive times.

/test

/test

/test


[API] Vote confirmation

As a user that has voted, I should be able to confirm my new vote.
The user will receive the magic link sent by the Confirmation Service #11 , the link is a GET request to this API.
A user can vote multiple times, but the last vote will override the previous ones. This API should write in the database the computed vote.
API Endpoint: /vote/confirmation/JWT
API Response
The API should return 200 status code if the vote is accepted and 400 if the request is invalid.
Note: we can create a separated issue to redirect the user to a cool webpage :)

Use pyjwt which give an interface complete for work with JWT is much easy


gnuradio: <IP_ADDRESS> -> 3.7.8

Travis OOM

Are you sure this is the final version? I didn't find any release announcement. (Just worried about upstream changing the tarball right after hydra grabs a snapshot of it and we end up missing some bugfix for a while.)

nox-review on local machine succeeded.

Not sure, we can wait a bit before merging.
V ned., 23. avg. 2015 6:01 pop. je oseba Bjørn Forsman <
<EMAIL_ADDRESS>napisala:

nox-review on local machine succeeded.
—
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/pull/9356#issuecomment-133869447.


Add support for removing spaces from puzzle grids

For https://github.com/puzztool/puzztool/issues/181
Adds the ability for wordsearch to remove all spaces, and spaces just after a letter (in puzzle)

Something to think about on the side:
I'm increasingly convinced that I bungled the API surface for this library. Did you have thoughts on how to improve it? I think for this case a grid: string[][] should be a required constructor parameter and the word list can be substituted. For React it doesn't matter since we need to create a new object for each render pass anyway.
I'm increasingly in favor of function programming style, so maybe we do something where we have parseWordSearchGrid(grid: string, options: {}) which returns a string[][] and then a findMatches(grid, list) which can be called with each attempt to find matches.
Thoughts?

I can fix up your inline comments, if we're going to do a refactor, I'd consider it outside the scope of this pr
I like the general direction you're thinking.
The original intention for the OO was that incremental computation can be much faster.  So if you just add a word to the word list, there's no reason to throw anything out.  Premature optimization and whatnot, I don't think I ever got around to implementing that.  So I'd think we could do something like a findWords(grid, some-trie-encapsulation)?

Yeah, not suggesting a refactor at all, just getting a feel for things. Find words could itself build the trie, presumably the re-usability of the trie wouldn't be that high and the usage of it would warrant the creation.
Any change to the existing API would be semver major, so it would have to come with a 2.0 release.


Haugh Assignment 2

Assignment 2 has been completed

please put images in your README.md.  List the URLs, etc.

Okay will do.
On Fri, Oct 6, 2023, 12:15 PM Michael L. Nelson @.***>
wrote:

please put images in your README.md. List the URLs, etc.
—
Reply to this email directly, view it on GitHub
https://github.com/phonedude/cs533-f23/pull/25#issuecomment-1751027139,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH5Q52X7MUG4IG574NZT4F3X6AVDPAVCNFSM6AAAAAA5KHL7FSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGAZDOMJTHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

All changes have been made, professor.

you need to reissue a PR


style: unify the command parameter style of koordlet

Signed-off-by: Jason Liu<EMAIL_ADDRESS>Ⅰ. Describe what this PR does
The command parameter styles of koord-scheduler, koord-manager and koord-runtime-proxy basically follow the POSIX-compliant flags style, but the style of koordlet is relatively independent, such as KubeletIPAddr, KubeletSyncIntervalSeconds. This PR would keep them the same.

Ⅱ. Does this pull request fix one issue?
fixed #206

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in make test

/hold I'll add some unit tests.

/hold cancel
coverage looks good now.

remember to change the chart and docs on website

remember to change the chart and docs on website

sure, will do after this PR merged.

/lgtm
/approve


OSSM-553: Add luajit2 support in envoyproxy/envoy

Commit Message: Add luajit2 support which gives envoy lua filter.
Additional Description: Integrate luajit2 to resolve envoy's Lua filter not working on OpenShift Service Mesh 2.x ppc64le. In order to support http.lua on ppc64le.
Risk Level: Medium
Testing: Tested on Power VM Test_Execution_Envoyproxy_Envoy.txt
Docs Changes: docs/root/configuration/http/http_filters/lua_filter.rst
Release Notes: N/A
Platform Specific Features: Linux ppc64le only
[Optional Runtime guard:]
[Optional Fixes #Issue] https://issues.redhat.com/browse/OSSM-553
[Optional Deprecated:]

Sorry this is not a patch we can accept. We have already been done this path before with moonjit and removed it. In order to accept this we need:

To have a single Lua implementation.
CI resources for PPC if that is a supported platform.

cc @envoyproxy/dependency-shepherds

I'm going to close this out. Please open an issue to discuss further.


User ID is used in member API

It seems that member ID should be used in member API instead of user ID.

Does this mean that a new field, say member_ID needs to be introduced as part of the project_member table? And the API needs to be updated appropriately as well.

After refactoring project member, member_id will be used. #4179


perf: reduce the CPU usage of HTTP/1.1 header parser

Description:
From a callgraph profile (perf record -g) of an Internet-facing Envoy instance serving mostly HTTP/1.1 traffic, I found that the parsing of request headers and building of the internal HeaderMap structure is somewhat CPU-intensive.
Here is the relevant part of the perf report --sort parent output, showing the percentage of total non-idle clock cycles spent in function+children:
-   86.12%    86.12%  [other]
   - 80.94% start_thread
      - _ZZN5Envoy6Thread6ThreadC4ESt8functionIFvvEEENUlPvE_4_FUNES5_
         - 80.89% Envoy::Server::WorkerImpl::threadRoutine
            - 80.73% event_base_loop
	       - 75.65% event_process_active_single_queue.isra.29
                  - 62.25% Envoy::Event::FileEventImpl::assignEvents(unsigned int)::{lambda(int, short, void*)#1}::_FUN
                     - 62.04% Envoy::Network::ConnectionImpl::onFileEvent
			- 41.59% Envoy::Network::ConnectionImpl::onReadReady
                           - 34.33% Envoy::Network::FilterManagerImpl::onContinueReading
                              - 19.49% Envoy::Http::ConnectionManagerImpl::onData
                                 - 18.05% Envoy::Http::Http1::ConnectionImpl::dispatch
                                    - 17.62% Envoy::Http::Http1::ConnectionImpl::dispatchSlice
                                       - 17.35% http_parser_execute
                                          - 8.54% Envoy::Http::Http1::ConnectionImpl::onHeadersCompleteBase
                                             - 8.44% Envoy::Http::Http1::ServerConnectionImpl::onHeadersComplete
                                                - 8.01% Envoy::Http::ConnectionManagerImpl::ActiveStream::decodeHeaders
                                                   - 6.30% Envoy::Http::ConnectionManagerImpl::ActiveStream::decodeHeaders
                                                      - 4.54% Envoy::Router::Filter::decodeHeaders
                                                         - 2.35% Envoy::Http::Http1::ConnPoolImpl::newStream
                                                            - 1.82% Envoy::Http::Http1::ConnPoolImpl::attachRequestToClient
                                                               - 1.17% Envoy::Router::Filter::UpstreamRequest::onPoolReady
                                                                  - 1.12% Envoy::Http::StreamEncoderWrapper::encodeHeaders
                                                                       0.91% Envoy::Http::Http1::RequestStreamEncoderImpl::encodeHeaders
                                                        0.69% Envoy::Http::IpTaggingFilter::decodeHeaders
                                                     0.75% Envoy::Http::ConnectionManagerUtility::mutateRequestHeaders
                                                     0.53% Envoy::Http::ConnectionManagerImpl::ActiveStream::refreshCachedRoute
                                          - 3.52% Envoy::Http::Http1::ConnectionImpl::{lambda(http_parser*)#7}::_FUN
                                             - Envoy::Http::Http1::ServerConnectionImpl::onMessageComplete
                                                - 2.51% Envoy::Http::ConnectionManagerImpl::ActiveStream::decodeHeaders
                                                   - 1.82% Envoy::Http::ConnectionManagerImpl::ActiveStream::decodeHeaders
                                                      - 1.23% Envoy::Router::Filter::decodeHeaders
                                                           0.53% Envoy::Http::Http1::ConnPoolImpl::newStream
                                                - 0.75% Envoy::Http::ConnectionManagerImpl::ActiveStream::decodeData
                                                   - 0.64% Envoy::Router::Filter::decodeData
                                                      	0.53% Envoy::Router::Filter::onRequestComplete
                                          - 1.33% Envoy::Http::Http1::ConnectionImpl::{lambda(http_parser*, char const*, unsigned long)#3}::_FUN
                                             - Envoy::Http::Http1::ConnectionImpl::onHeaderField
                                                - 1.17% Envoy::Http::Http1::ConnectionImpl::completeLastHeader
                                                     0.69% Envoy::Http::HeaderMapImpl::insertByKey
                                          - 1.33% Envoy::Http::Http1::ConnectionImpl::{lambda(http_parser*)#1}::_FUN
                                             - 1.28% Envoy::Http::Http1::ServerConnectionImpl::onMessageBegin
                                                - Envoy::Http::ConnectionManagerImpl::newStream
                                                     0.69% Envoy::Server::Configuration::HttpConnectionManagerConfig::createFilterChain
                                          - 1.12% Envoy::Http::Http1::ConnectionImpl::{lambda(http_parser*, char const*, unsigned long)#6}::_FUN
                                             - Envoy::Http::Http1::ServerConnectionImpl::onBody
                                                  0.64% Envoy::Http::ConnectionManagerImpl::ActiveStream::decodeData

FYI I have spent considerable time heavily optimizing this code path. There are unlikely to be any low hanging fruit here -- HTTP proxy servers end up spending an incredible amount of time dealing with headers. With that said, I would love to have someone else take a look to see if they can find any wins.

I'll sign up to look at http_parser.
I'm looking at a source-line-level profile of the http_parser library now. It might be possible to speed up the parser by vectorizing more of it with memchr. Conveniently, that library comes with a benchmark program, which will make it easy to validate potential optimizations.

@brian-pane FYI I didn't look at http_parser at all. Yes it's possible that there might be some vectorizing wins. I only optimized the layer on top (custom header string, custom data structure for storing headers, and reducing as many copies as possible).

An idea for anybody who has time to look into HeaderMapImpl: determine whether reducing the size of that struct, and/or grouping commonly accessed O(1)-time header fields within the struct so they’re in the same cache line, will help performance by improving L1 cache hits.  (The approach we used in Proxygen might also be of interest if cache footprint turns out to be an issue: https://github.com/facebook/proxygen/blob/master/proxygen/lib/http/HTTPHeaders.h)

@brian-pane yeah agreed, would love some analysis on the size of the struct, the size of the header string interning buffer, cache alignment, etc. Have never had time to do any of that.

Other potential from our overoptimized !Envoy header parsing: we take the raw header buffer and simply annotate header locations with a string-view equivalent (zero copy for header parsing) and having hash-map lookups for referencing headers (better than list walking for the non O(1) headers)

The PR that I just submitted to the http_parser project should help a bit with the CPU usage. I wasn't able to vectorize the parsing code, but I was able to reduce the average number of conditional branches per input character and also replace some memory reads/writes with register operations.
The parsing code might still be vectorizable. A common operation is to find the next instance of any of a small set of characters. I can think of a way to do that in x86 using N+1 SSE registers, where N is the cardinality of the set, but I'd rather avoid adding any assembly language to the codebase if possible.

One other option to look at is the picohttpparser which according to the benchmark on its page should be about 3-5x faster than http-parser

Thanks for the pointer; I'll take a look at picohttpparser.

@brian-pane Is there still more work you'd like to do on this issue, or should we consider it fixed with #3505?

There's still room for improvement in the HTTP/1 parser speed, but I don't think I'll have time to work on it in the near future. So I'm ok with closing this issue.


Unable to focus typeahead input programmatically

I try to set focus on a typeahead input by calling $('#myTypeahead').focus(), but this does not set the focus in the input. Any hint how this can be achieved?

This is still broken.

Thanks for your comment @tchoulihan . That's so bizarre that that works.

$("tt-menu").addClass("tt-open");
Adding this will over write the default behaviour of typeahead.

This still happens if your typeahead input is within a modal. I have found that not even using the setTimeout technique (at any length of delay), does not seem to focus the input properly when typeahead is enabled on it.

@NinjaKC
This repo seems abandoned.. some kind souls continue maintaing it here: https://github.com/corejavascript/typeahead.js
I'd say the useful thing to do is sending pull requests and issues there.

Having the same issue, can't focus on type ahead when in a modal.  typeahead 0.10.2 and bootstrap 2 modal - have yet to find a solution


UpdateOnly very slow

bin/dependency-check.sh \
--updateonly \
--connectionString jdbc:mysql://owasp/dependencycheck \
--dbDriverPath /usr/share/java/mysql-connector-java.jar \
--dbDriverName com.mysql.jdbc.Driver \
--dbPassword [mydbpassword] \
--dbUser [mydbuser

I have created the DB using the initialize-mysql.sql script from this repo.
The above command is being killed by our three hour job timeout. How long should this update take to update our MySQL DB?
Is there anything I can do to improve the update speed?
Thanks.

Unfortunately, I do not use an external database outside of limited testing. Batch support, which should improve the performance some, will be included in the next release. However, the first run is always the slowest. After you get the initial pull of data from the NVD loaded as long as you run the update at least once a week only a small amount of data is pulled down and processed.

OK, thanks - I think I may have hit issues with RDS IO throttling on the database . If I get a certain fix then I'll add it here, otherwise I'll close it.


Improvements to Deep Dive 2 and 3 content

This pull request represents enhancements to the 2. Elementary and 3. Intermediate sections of the tutorial.  There are a lot of changes, but it can be easier to reason about the adoc changes looking at these changes rendered in antora here.
Changes at a high level:

Reorganizes Operator page to and adds more focus on CRDs (including updating example CRDs to v1 and kubectl explain)
Greatly expands exposition in the secrets section
Expands Jobs/Cron Jobs and cleans
Adds new watch to Intermediate section
Additional partials, examples, and consistency when referring to example files
Adds annotations to some shell commands and examples
Updates to (candidate) course-ui 0.1.12
Adds VS Code .devcontainer support and updates README for usage instructions thereof (devcontainer can also be used for tutorial walkthrough)

@lordofthejars (and @blues-man)> Please see additional changes that we discussed as outcome of the code review we did last week which includes:

Updating to official rh-scholars course-ui v0.1.12 (with additional supplemental UI changes to get previous UI to match this version)
Updating pod watch output in taints and affinity to match the watch
Update StatefulSet section to correct errors and better demonstrate headless services

As always you can preview what my proposed changes look like when they are rendered here:


ATO 879: functionality store form response

Add methods to get put and delete from the dynamoDb table using the authcode or token on the userIdentity
Waiting on merges for authorize and token lambda to update logic call

I've set the token up and this branch has been analysed. Needs a rebase for conflicts and to check if coverage is working

Does it all work as expected in dev?

Will explain a bit of the flow and why we are using userIdentity instead of form data in the commit.


Distill GPT-Neo

Is your feature request related to a problem? Please describe.
My feature request is not related to a problem. Is there a plan to ever get GPT-Neo distilled?
Describe the solution you'd like
Distill any of the GPT-Neo Models.
Describe alternatives you've considered
I considered doing it on my own however saw that the authors of this repo tried to do so already and were unable.
Additional context
The code I was planning on using heavily borrows from this medium article.

You're welcome to try, but we don't have any specific plans to do this after failing to make it work for months.

I apologize, I should have written the issue more clearly. I tried to read the past issues about distilling the model and it was not clear why model distillation was not working. Was it the loss function that prevented the distillation?


feat(query): add query for identifier

I see that it is very hard to keep track of the multiple levels of query identifiers. I created them because HTML, JSX, and TSX all have repeating elements and you use rainbow for it by default.
Demo:

This seems more like something that we could make into a rainbow-blocks query instead of adding it rainbow-delimiters, since this is not really the "standard" behavior of rainbow-delimiters in other languages. If we add this in a rainbow-blocks query, would it make sense to expand any of the three other queries too?
Also, note that this doesn't look that good in :InspectTree<CR>, which is also highlighted by the query parser. (Though that is subjective. It could look better if InspectTree actually had formatting more like the formatting used when writing queries.)

Closed because of duplication with #70

Closed because of duplication with #70

I just want to clarify. I think the stuff in #70 will be moved to its own different queries (not under query) when neovim updates, but for now it uses the query queries because that is what InspectTree uses right now. If you would like something like this in the query queries, I think you should just change this pull request so that it puts the queries you currently have in rainbow-delimiters.scm into rainbow-blocks.scm and then leave rainbow-delimiters.scm as it was before.
I am not sure if @HiPhish would want to add the extra queries, since it gives more stuff to maintain, but the query parser seems pretty small and stable, so this shouldn't bring too much extra work.


Sync: Sync Setup UI

Task/Issue URL:
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

Current dependencies on/for this PR:

develop

PR #3534   👈

This comment was auto-generated by Graphite.


Nuki lock pro v4

Hi, is compatible this new model? Thank you.

I am using the Nuki Lock v4 (without pro) and it works like the others in combination with the bridge.


Implement html.unescape and html.entities.html5

Fixes https://github.com/PythonCharmers/python-future/issues/247. Code was shamelessly copied from https://github.com/frostming/backports.html, which in turn was copied from the Python standard library.
This code is built on top of #496 to make the Travis CI build pass. #496 should be merged before this pull request.

@singingwolfboy I will happily merge this if you can rebase from master to get python26 back for now. I guess we have to deal with the fact that master is failing for quite some time due to Python 2.6 test, until a proper fix is in place.

Please rebase to resolve git conflicts and run GitHub Actions tests.


home-manager: 0-unstable-2024-06-13 -> 0-unstable-2024-06-22

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for home-manager is: Nix-based user environment configurator
meta.homepage for home-manager is: https://nix-community.github.io/home-manager/
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0-unstable-2024-06-22 in filename of file in /nix/store/4pfzh0pck95r7xhvbg7720ra9p31r79i-home-manager-0-unstable-2024-06-22

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

home-manager

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/4pfzh0pck95r7xhvbg7720ra9p31r79i-home-manager-0-unstable-2024-06-22 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A home-manager https://github.com/r-ryantm/nixpkgs/archive/8593ad0d69206d76bb3392ab0039046ecd62de6c.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/8593ad0d69206d76bb3392ab0039046ecd62de6c#home-manager

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/4pfzh0pck95r7xhvbg7720ra9p31r79i-home-manager-0-unstable-2024-06-22
ls -la /nix/store/4pfzh0pck95r7xhvbg7720ra9p31r79i-home-manager-0-unstable-2024-06-22/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

home-manager

Maintainer pings
cc @AndersonTorres for testing.

@NixOS/nixpkgs-merge-bot merge


Add cloudwatch-specific example programs.

I was going to wait for juttle-powered input support to be in
juttle-engine before adding cloudwatch-specific programs, but the set
of metrics isn't too horrible and I've enumerated them anyway in the
documentation, so add the programs now.
aws_defined_metrics.juttle names the cloudwatch metrics that exist for
each product. That in turn is used for the inputs aws_control_metric,1,2.juttle.
The programs are:

top_items.juttle: Show a barchart of the top 10 items by any
cloudwatch metric.
metric_timechart.juttle: Show a timechart of a given cloudwatch
metric across all items.
metric_outlier_timechart.juttle: Like metric_timechart, but shows
the difference from the median as a way to highlight outliers.
metric_correlation_scatterchart.juttle: Show a scatterchart of any
cloudwatch metric vs any other cloudwatch metric for all items.

Also add a barchart of the top EC2 instances by CPU Utilization to the
overview page, just as a way to show off cloudwatch support.
@go-oleg @VladVega @demmer @davidvgalbraith

All feedback addressed, merging so I can include in upcoming juttle-engine release.


[docs] Fix typos in section titles

In my opinion, they are maybe typos.

[x] I have followed (at least) the PR section of the contributing guide.

I have no solution to the broken link which occur in the search dialog.

@iamxukai Thanks!
@siriwatknp There might be an opportunity to improve the workflow. This was a quick one to review and merge.

Happy to see this merged when the first soccer game in the 2022 FIFA World Cup starts. ⚽


Flutter exited unexpectedly...

Logs
Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter --version
exception
VersionCheckError: VersionCheckError: Command exited with code 128: git log -n 1 --pretty=format:%ad --date=iso
Standard error: fatal: your current branch 'master' does not have any commits yet
#0      _runSync (package:flutter_tools/src/version.dart:522:5)
#1      FlutterVersion._latestGitCommitDate (package:flutter_tools/src/version.dart:142:12)
#2      FlutterVersion.frameworkCommitDate (package:flutter_tools/src/version.dart:133:37)
#3      FlutterVersion.toString (package:flutter_tools/src/version.dart:110:99)
#4      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:387:46)
#5      _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:77:64)
#6      _rootRunUnary (dart:async/zone.dart:1132:38)
#7      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#8      _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#9      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#10     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#11     Future._complete (dart:async/future_impl.dart:473:7)
#12     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#13     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async-patch/async_patch.dart:33:20)
#14     _rootRun (dart:async/zone.dart:1120:38)
#15     _CustomZone.run (dart:async/zone.dart:1021:19)
#16     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#17     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#18     _rootRun (dart:async/zone.dart:1124:13)
#19     _CustomZone.run (dart:async/zone.dart:1021:19)
#20     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#21     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#22     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#23     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#24     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#25     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

flutter doctor
encountered exception: VersionCheckError: Command exited with code 128: git log -n 1 --pretty=format:%ad --date=iso
Standard error: fatal: your current branch 'master' does not have any commits yet

#0      _runSync (package:flutter_tools/src/version.dart:522:5)
#1      FlutterVersion._latestGitCommitDate (package:flutter_tools/src/version.dart:142:12)
#2      FlutterVersion.frameworkCommitDate (package:flutter_tools/src/version.dart:133:37)
#3      FlutterVersion.frameworkDate (package:flutter_tools/src/version.dart:95:31)
#4      FlutterValidator.validate (package:flutter_tools/src/doctor.dart:501:127)
<asynchronous suspension>
#5      Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:152:52)
#6      Doctor.diagnose (package:flutter_tools/src/doctor.dart:223:41)
<asynchronous suspension>
#7      _doctorText.<anonymous closure> (package:flutter_tools/runner.dart:193:26)
#8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:29)
<asynchronous suspension>
#9      _rootRun (dart:async/zone.dart:1124:13)
#10     _CustomZone.run (dart:async/zone.dart:1021:19)
#11     _runZoned (dart:async/zone.dart:1516:10)
#12     runZoned (dart:async/zone.dart:1463:12)
#13     AppContext.run (package:flutter_tools/src/base/context.dart:152:18)
<asynchronous suspension>
#14     _doctorText (package:flutter_tools/runner.dart:192:19)
<asynchronous suspension>
#15     _createLocalCrashReport (package:flutter_tools/runner.dart:170:32)
<asynchronous suspension>
#16     _handleToolError (package:flutter_tools/runner.dart:125:33)
<asynchronous suspension>
#17     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:65:22)
<asynchronous suspension>
#18     _rootRun (dart:async/zone.dart:1124:13)
#19     _CustomZone.run (dart:async/zone.dart:1021:19)
#20     _runZoned (dart:async/zone.dart:1516:10)
#21     runZoned (dart:async/zone.dart:1500:12)
#22     run.<anonymous closure> (package:flutter_tools/runner.dart:60:18)
<asynchronous suspension>
#23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:29)
<asynchronous suspension>
#24     _rootRun (dart:async/zone.dart:1124:13)
#25     _CustomZone.run (dart:async/zone.dart:1021:19)
#26     _runZoned (dart:async/zone.dart:1516:10)
#27     runZoned (dart:async/zone.dart:1463:12)
#28     AppContext.run (package:flutter_tools/src/base/context.dart:152:18)
<asynchronous suspension>
#29     runInContext (package:flutter_tools/src/context_runner.dart:56:24)
<asynchronous suspension>
#30     run (package:flutter_tools/runner.dart:51:10)
#31     main (package:flutter_tools/executable.dart:62:9)
<asynchronous suspension>
#32     main (file:///C:/Users/ADMIN/flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#33     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#34     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

Seems like your Flutter install is corrupted. Try opening a command window in there and typing git status. Post the result here.

like you said @Levi-Lesches here is the result from typing git status
PS C:\Users\ADMIN\flutter\flutter> git status
On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .cirrus.yml
        .gitattributes
        .github/
        .gitignore
        AUTHORS
        CODE_OF_CONDUCT.md
        CONTRIBUTING.md
        LICENSE
        PATENTS
        README.md
        analysis_options.yaml
        bin/
        dartdoc_options.yaml
        dev/
        examples/
        flutter_console.bat
        packages/

nothing added to commit but untracked files present (use "git add" to track)

So the problem here is that Git doesn't recognize any Flutter commits. You could try switching to stable by doing flutter channel stable (I think that's it...)

@Omafovbe Please report if the issue is solved.

Finally resolved the issue, guess in the process of cloning with git, the download got corrupt. Had to run git clone again and that worked. Thanks for your help


planner

What does this PR include?
planner
User API changes
How did I test the PR?
New dependencies included

Please split the @stateful, @stateless, decorators, and the planner code into separate PRs

Closed in favor of #35.


Simulation start/stop button flickers during background upload

The button goes from play to stop and back to play during the custom background upload.

Resolved by a GCI student in 2639d299a6c91819127a9fda433cb2aeec60235e.