Run September 2023 ConMon scans

In order for us to update the JAB on our compliance in a consistent way, we need to run Continuous Monitoring scans on approximately the 23rd of the month. (If this date falls on a weekend or federal holiday, adjust to the last business day before the date.)
For context, see our Continuous Monitoring Strategy, including the monthly reporting summary explanation.
Netsparker
Omit: I am not finding a clear path to using Netsparker for our admin apps, and NetSparker has its own issues with false positives
OWASP ZAP Scans
From the ZAP documentation: "Zed Attack Proxy (ZAP) is a free, open-source penetration testing tool being maintained under the umbrella of the Open Web Application Security Project (OWASP). ZAP is designed specifically for testing web applications and is both flexible and extensible."
We run ZAP from a platform operator's local machine. ZAP opens a Firefox instance that is configured to proxy all requests through ZAP. ZAP can then analyze and modify the requests.
Preliminary work - Sandbox User Setup
We scan our externally facing apps as sandbox users of cloud.gov, via the cloud.gov IdP, instead of platform admins. This vastly speeds up scans since the spider doesn't crawl every app and org in logs or dashboard, and also avoids issues with ZAP "clicking" on links with undesired impacts.
Create a sandbox account, starting from https://account.fr.cloud.gov/signup, and use an email such as your<EMAIL_ADDRESS>pif.gov, fedramp.gov}
As your "sandbox" user identity, launch a "Hello World" app so there's something in the dashboard and logs apps to spider.  (ToDo: Determine if this is really necessary, provide link to steps).
Install, Configure, and Update

Make sure no other process is bound to port 8080 by running lsof -i TCP:8080. The ZAP proxy binds to this port.
 Chrome does not support proxy settings while Firefox does.
git clone git@github.com:cloud-gov/product.git so you have the context files you need.
Install the latest stable version of ZAP. Install/update via Homebrew with:

brew update; brew install owasp-zap or
brew update; brew reinstall owasp-zap

NOTE: If you see an error running ZAP as an unsigned application, run the following from the command line:

xattr -dr com.apple.quarantine '/Applications/OWASP ZAP.app'

Start ZAP and update

For "Session persistence", select "No, I do not want to persist my session..."

For "Manage add-ons", select "Update All"

ZAP -> Preferences -> Options:

JVM -> JVM options: -Xmx8192m
Active Scan:

3 hosts
5 threads

Global Exclude URL:

Site - Firefox (select all)
Site - Font CDNs
Site - Mozilla CDN

Spider

Max Depth to Crawl: 5
Number of Threads: 7

Quit and restart ZAP if you change the JVM options.
Running ZAP scans
ZAP scans take hours. We recommend you start in the morning or run them overnight. There are two separate scans to run, external and internal, and the internal one takes considerably longer. (You may want to run it when VPN traffic is lower.)
The following steps are for the external scan (except as noted):

From the cloud.gov product repo, load the cloud.gov cloud.gov-conmon-external.context into ZAP (File > Import Context)

Delete the "Default Context" or any already completed context.

On the top line of icons, there should be a Firefox icon on the far right. Click that to open Firefox preconfigured to proxy through ZAP.
Open the context to see the included web applications (Context -> Included in Context)
In the ZAP-configured Firefox, log in to each site in the context list.

You must type the full URL each time, including the protocol (https://). Using ZAP stops automatic redirects from HTTP to HTTPS from working.
For the external context, use your "sandbox" identity. VPN not needed.
For the internal context, use your Cloud Ops (GSA SecureAuth) identity, and join the VPN

To prevent getting noise in the scan results (since that causes major confusion when the FedRAMP team processes the ConMon report), review the Sites list to ensure only the cloud.gov sites have a small red circle/sight on them (denoting the site will be included). Remove any sites not needed by CTRL-clicking on them and selecting Delete.
CTRL-click on the context and run the Spider scan. This should only take a few minutes.
After the Spider scan is complete, again CTRL-click on the context and this time run the Active Scan.
After the Spider and Active scans are complete, export the results:

From Report menu, select Generate Report ...

Select the Template options, and use the templates:

Traditional HTML report
Traditional XML report

Name the files according to YYYYMMDD-ZAP-(context).xml/html. E.g.

20210623-ZAP-external.xml
20210623-ZAP-external.html

Optional: Check with compliance lead on whether we also need
"Traditional HTML Report with Requests and Responses"

Quit ZAP, then repeat the "Running ZAP scans" steps for the internal context (which will require the VPN)
Troubleshooting ZAP Scans
502 Bad Gateway, ZAP Error
If you encounter the following:
ZAP Error [org.apache.hc.core5.http.NoHttpResponseException]
Make sure you are typing the entire URL, including the https:// protocol, into Firefox. Firefox will appear to automatically redirect from http to https, but if you check the ZAP console, you'll see the requests being made in http and failing with 502 Bad Gateway.
Browser Was Not Found, Java Exceptions

Did you stop all locally running web servers? If they are bound to port 8080, they will prevent Firefox from connecting to the proxy. (You might see the error: "browser was not found".)

Java Unable to Connect Exception
In Firefox if you see a Java Unable to Connect Exception, try the following:
Close both Firefox and ZAP.
In ~/Library/Application Support/ZAP/log4j2.properties:
Change the following level's to debug so the entries look like this:
logger.paros.name = org.parosproxy.paros
logger.paros.level = debug

logger.zap.name = org.zaproxy.zap
logger.zap.level = debug

Open ZAP, follow the above and open Firefox. Try to go to the server that failed previously.
If that works, then change the levels back to info from debug, so they look like this:
logger.paros.name = org.parosproxy.paros
logger.paros.level = info

logger.zap.name = org.zaproxy.zap
logger.zap.level = info

For the internal sites, try the following order in Firefox to bring up the sites according to the context:
https://ci.fr.cloud.gov
https://alertmanager.fr.cloud.gov
https://logs-platform.fr.cloud.gov
https://grafana.fr.cloud.gov
https://prometheus.fr.cloud.gov
https://opslogin.fr.cloud.gov

If the context changes the sites, this list and order will need to be revisited.
Generic Troubleshooting
For when the other troubleshooting has not helped:

Fully close Firefox and restart ZAP.
Uninstall and reinstall FF and ZAP.
ZAP also has a weekly build available. If the current stable build isn't working for some reason, try the weekly build instead. Download the ZIP, cd to it in your terminal, and run it with ./zap.sh. If it outputs a message like Exiting: ZAP requires a minimum of Java 11 to run, run brew install java to install the latest Java and try again.

Upload and wrap up
Upload all reports to Google Drive: https://drive.google.com/drive/u/0/folders/0B5fn0WMJaYDnaFdCak5WNWRGb1U in a folder named YYYYMMDD-ZAP-Nessus.
You can shut down ZAP and Firefox.
Potential ZAP Issues
Acceptance criteria

[ ] YYYYMMDD-external.xml ZAP scan is present in YYYYMMDD-ZAP-Nessus folder
[ ] YYYYMMDD-internal.xml ZAP scan is present in YYYYMMDD-ZAP-Nessus folder
[ ] YYYYMMDD-pages.xml ZAP scan is present in YYYYMMDD-ZAP-Nessus folder

Disk Usage
A single ZAP scan of the cloud-gov context requires significant disk space (over 100GB). If you have run ZAP previously, you should check to see if you previous sessions have been persisted. If so, you likely need to clear out those directories before proceeding.
You can check ZAP's disk usage with:
du -h -d 1 ~/Library/Application\ Support/ZAP/

If you see an abnormally large session or sessions directory (my last run was 132G), you likely want to delete all files in these directories before proceeding. Choosing to "Not persist" sessions should alleviate this issue.
Export Nessus Scans

Log in to Nessus: https://nessus.fr.cloud.gov/
Select All Scans

You should see more than a dozen scans. If you see fewer, ask on Slack to be added to the Scan Admins group under Groups: https://nessus.fr.cloud.gov/#/settings/groups

Click on each vulnerability scan for Tooling and Production, and export the .nessus file (Export > Nessus) and the "Complete List of Vulnerabilities by Host" report (Report > HTML).
Click on each compliance scan for Tooling and Production, and export the .nessus file (Export > Nessus) and the "Compliance" report (Report > HTML).
Click on each scan for RDS Compliance, and export the .nessus file (Export > Nessus) and the "Compliance" report (Report > HTML).

Acceptance criteria:
The following (.nessus and .html) are all uploaded to YYYYMMDD-ZAP-Nessus folder:

[ ] Production_Vulnerability_scan
[ ] Tooling_Vulnerability_scan
[ ] Production_Compliance_scan
[ ] Tooling_Compliance_scan
[ ] ALL the RDS compliance scans

Update the POAM Inventory sheet
A python script is used to generate the inventory list.

Open the POAM Inventory sheet

Delete the data rows (starting after the manually maintained inventory items) - These rows are locked to prevent inadvertent editing.

For the tooling and production jumpboxes:

Login to each jumpbox and take note of the container number:

[ ] production
[ ] tooling
[ ] master

Run python3 cg-scripts/generate-POAM-inventory.py > inv.csv, then exit.

Copy the CSV to your local clipboard by running the following, where {environment} is production, master, or tooling and container-number is the number from the first step.
fly -t ci i -j "jumpbox/container-bosh-{environment}" -s jumpbox -b "{container-number}" -- cat inv.csv | pbcopy

Paste the contents in the spreadsheet by selecting the first cell in the first blank row following the manually maintained inventory items, then pasting with CTRL-Shift-V (Command-Shift-V for macOS) to paste without formatting. Then select the paste icon that appears and click Split text to columns

[ ] Verify you have pasted the inventory for both production and tooling.

[ ] Verify that the RDS information has not been overwritten.

Hey @drewbo, just tagging you as a Pages team member, feel free to reassign!

Closing complete


Multiple Validation Errors and Unauthorized Access When Applying Template

Description
I encountered multiple issues while applying a Directus template using the directus-template-cli. The process produced numerous validation errors and unauthorized access warnings. Below are the details of the encountered issues.
Steps to Reproduce

Run the directus-template-cli command:npx directus-template-cli@latest apply

Choose to apply a template from a local directory.
Provide the local template directory: templates/headless-cms.
Enter the Directus URL and Admin Token when prompted.

Observed Behavior

Unique Constraint Violations: When loading users, the following warning was generated:
Warning: Status 400 • "Value for field \"email\" in collection \"directus_users\" has to be unique."

Validation Errors: Multiple fields required by the template were missing values, causing numerous validation errors:
Warning: Status 400 • "Validation failed for field \"image\". Value is required."
Warning: Status 400 • "Validation failed for field \"primary_image\". Value is required."
Warning: Status 400 • "Validation failed for field \"headline\". Value is required."
Warning: Status 400 • "Validation failed for field \"cta\". Value is required."
Warning: Status 400 • "Validation failed for field \"name\". Value is required."
Warning: Status 400 • "Validation failed for field \"type\". Value is required."
Warning: Status 400 • "Validation failed for field \"schema\". Value is required."
Warning: Status 400 • "Validation failed for field \"data\". Value is required."
Warning: Status 400 • "Validation failed for field \"title\". Value is required."
Warning: Status 400 • "Validation failed for field \"thumbnail\". Value is required."
Warning: Status 400 • "Validation failed for field \"value\". Value is required."
Warning: Status 400 • "Validation failed for field \"label\". Value is required."

Invalid Foreign Key Errors: There were numerous warnings about invalid foreign key values:
Warning: Status 400 • "Invalid foreign key for field \"cta\" in collection \"block_banner_cta\"."
Warning: Status 400 • "Invalid foreign key for field \"element_brand_id\" in collection \"block_brands_detailed_carousel_element_brand\"."
Warning: Status 400 • "Invalid foreign key for field \"block_generic_heading_id\" in collection \"block_generic_heading_translations\"."
Warning: Status 400 • "Invalid foreign key for field \"element_image_id\" in collection \"block_hero_carousel_element_image\"."

Permission Issues: There were warnings about lacking permission to access certain fields or collections:
Warning: Status 403 • "You don't have permission to access this."

Expected Behavior
The template should apply successfully without any validation errors, foreign key issues, or unauthorized access warnings.
Environment

Directus Version: 10.11.2
Directus Template CLI Version: 0.4.3
Operating System: macOS
Node.js Version: 18.19.1
Database: Postgis 16-3.4

Logs and Screenshots
Please find attached the complete terminal log for further reference.
template
terminal_logs
Additional Information
Any help in resolving these issues would be greatly appreciated. Thank you!

I am facing similar issues, particularly since Directus v11.x

This is probably could be a couple things

The error about emails is probably because the default admin@example user that gets created when you spin up an instance.
If you're sure you have the correct access token with admin permissions, then it's likely an issue where you've set Not Allow Null to true for some of the fields

The way we load the data is creating "skeleton" records (essentially empty) first to make maintaining relationships much easier and then we go back and update all the data. So if you have fields that DO NOT allow null values then the Directus API will throw an exception when trying to create that item.

I am facing similar issues, particularly since Directus v11.x
We don't have v11 support yet in the CLI.
Tracking  V11 support here #61

Hopefully these issues should be fixed in v0.5.0
See #63
A beta version is now published and you can test it using @beta tag
npx directus-template-cli@beta apply
or
npx directus-template-cli@beta extract


Tests raise warnings

On my setup:
src/openfermion/ops/_qubit_operator_test.py::test_get_operator_groups_zero
  /home/kjs/Projects/OpenFermion/src/openfermion/ops/_qubit_operator.py:223: RuntimeWarning: Invalid num_groups 0 < 1.
    RuntimeWarning)

src/openfermion/utils/_davidson_test.py::QubitDavidsonTest::test_get_lowest_y_complex
  /home/kjs/Projects/OpenFermion/src/openfermion/utils/_davidson.py:142: RuntimeWarning: Initial guess is not real only!
    warnings.warn('Initial guess is not real only!', RuntimeWarning)
  /home/kjs/Projects/OpenFermion/src/openfermion/utils/_davidson.py:213: RuntimeWarning: Unable to get real only eigenvectors, return complex vectors instead with success state True.
    .format(success), RuntimeWarning)

src/openfermion/utils/_davidson_test.py::QubitDavidsonTest::test_get_lowest_y_real
  /home/kjs/Projects/OpenFermion/src/openfermion/utils/_davidson.py:142: RuntimeWarning: Initial guess is not real only!
    warnings.warn('Initial guess is not real only!', RuntimeWarning)
  /home/kjs/Projects/OpenFermion/src/openfermion/utils/_davidson.py:213: RuntimeWarning: Unable to get real only eigenvectors, return complex vectors instead with success state True.
    .format(success), RuntimeWarning)

src/openfermion/utils/_davidson_test.py::QubitDavidsonTest::test_get_lowest_y_real_fail
  /home/kjs/Projects/OpenFermion/src/openfermion/utils/_davidson.py:142: RuntimeWarning: Initial guess is not real only!
    warnings.warn('Initial guess is not real only!', RuntimeWarning)
  /home/kjs/Projects/OpenFermion/src/openfermion/utils/_davidson.py:213: RuntimeWarning: Unable to get real only eigenvectors, return complex vectors instead with success state False.
    .format(success), RuntimeWarning)

src/openfermion/utils/_davidson_test.py::QubitDavidsonTest::test_get_lowest_z_real
  /home/kjs/Projects/OpenFermion/src/openfermion/utils/_davidson.py:142: RuntimeWarning: Initial guess is not real only!
    warnings.warn('Initial guess is not real only!', RuntimeWarning)

src/openfermion/utils/_davidson_test.py::DavidsonUtilityTest::test_append_vectors_big_col
  /home/kjs/Projects/OpenFermion/src/openfermion/utils/_davidson.py:413: RuntimeWarning: Unable to generate specified number of random vectors 1: returning 10 in total.
    col, vector_columns), RuntimeWarning)

src/openfermion/utils/_low_rank_test.py::LowRankTest::test_spatial_operator_consistency
  /home/kjs/Projects/OpenFermion/src/openfermion/utils/_low_rank.py:257: ComplexWarning: Casting complex values to real discards the imaginary part
    chemist_two_body_coefficients[p, q, r, s])

@sheilaliuxl this seems to originate from the Davidson code. Any ideas what is going on there?

@babbush Yes, that's intentional actually.

Warns users of not that good usage;
Makes sure tests cover this part of script.

What's your suggestion, 1) changing to logging.info, 2) remove completely?

You can test that warnings are properly caught. An example from ops/_symbolic_operator_test.py:
    def test_warnings(self):
        """Test that warnings are raised appropriately."""
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always")

            op1 = DummyOperator1()
            op1.isclose(op1)

            self.assertEqual(len(w), 1)
            self.assertTrue(issubclass(w[0].category, DeprecationWarning))
            self.assertTrue("deprecated" in str(w[0].message))

@sheilaliuxl sorry for the huge delay! I would suggest taking Kevin's suggestion.


[EH] Update main stress tests

API change check
API changes are not detected in this pull request.


watched-icon not properly displayed on firefox

Hello,
first: thanks for creating the plugin!
Unfortunately there seems to be an issue displaying the watched icon on firefox (126.0.1), causing the icon to be a transparent black bar at the top of the thumbnail:

while chromium based browsers (used MS Edge to test) correctly display the icon:

maybe it's something easy to fix, but I'd understand if you won't support firefox (as video playback on chromium based browsers seem to be much better supported codec-wise) :D

I think I know exactly why and this has haunted me across projects https://caniuse.com/css-has
If you can confirm or deny your FireFox version (<121), that would help immensely, otherwise I gotta get creative haha

my firefox version is 126.0.1

I somehow can't seem to get it working even on chrome on v26 so I'm working on some updates heh

Turns out FF is much stricter with SVGs. Found a fix and tested it on latest ff https://stackoverflow.com/a/28783110


Niad-2455: JMeter performance load test

What
JMeter load tests were run to confirm PS Adaptor performance ability to handle 2000 transfers load in a short period of time.
Why
JMeter load tests were run in order to be sure about PS Adaptor performance and stability under extreme load.
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Internal change (non-breaking change with no effect on the functionality affecting end users)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] I have performed a self-review of my code
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[] I have updated the Changelog with details of my change in the UNRELEASED section if this change will affect end users
[ ] A corresponding change has been made to the Mapping Documentation repository

Is there any PRs for the NHSDigital/patient-switching-standard-adaptors-architecture repo?


Sort out where words are listed and linked from/to

Current situation
The main visible word list page doesn't link to the word lists directly, only from the menu.
The URL path to /word-lists/ does not have an index file, so gives a 404 error.
All of the terms are in two locations:

/word-lists/tier-N/ -- all terms are in the single tier file
/language/word-list/ -- one file for each term

Relevant URLs

https://inclusivenaming.org/word-lists/overview/
https://inclusivenaming.org/word-lists/
https://inclusivenaming.org/word-lists/tier-1/
https://inclusivenaming.org/word-lists/tier-2/
https://inclusivenaming.org/word-lists/tier-3/
https://inclusivenaming.org/language/word-list/
https://inclusivenaming.org/language/word-list/master/  etc.

Recommended fixes

Create a file in the repo /website/content/word-lists/index.md that contains or links to the overview and tiered list.
Remove the /word-lists/tier-N/ files as too cumbersome to keep a growing list of words in a single file. Create redirects from there to index.md.
Rename /website/content/word-lists/overview.md to index.md, then have the Tier 1, 2, 3 subsections in the file contain a list of the terms, which are themselves links to the actual term.md file.
Have a single file for all terms, located in /website/content/language/word-list/.
Create a file /website/content/language/word-list/index.md that duplicates  /website/content/word-lists/index.md.

Alternately, merge all together into a single relative path e.g. inclusivenaming.org/word-list/{index.md,term.md}

Your ideas sound good, Karsten. Just so I'm clear: When you refer to term.md, should I assume that's a generic term referring to the Markdown files for each term? (Rather than a single term.md file containing all the definitions.) If so, then I'm good with that.
As for item (5), it sounds cleaner -- and easier to maintain going forward -- if we merge everything into a single relative path. But I defer to you and @abuango on that one.

Discussion from not-a-meeting:

Have a page per tier that is visually parsable by humans with: term, replacement, link to the full term page
One markdown file per term

Different people do the pull requests

@abuango is working on a proof of concept for automating the creation of index pages out of the individual markdown files (aiui)

Is https://inclusivenaming.org/word-lists/ supposed to exist? If so it has no content I can see.


add flags for jx import remote cluster

Default behavior was changed when importing a remote env from "Auto" to "Never" the idea being:
You don't want other apps to auto promote to that env.
Ability to give a custom name to the env was also added  (all repos have by default the same name, jx3-kubernetes-production, just in different orgs)
Signed-off-by: Youssef El Houti<EMAIL_ADDRESS>

Hi @yelhouti. Thanks for your PR.
I'm waiting for a jenkins-x-plugins or todo member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign jstrachan
You can assign the PR to them by writing /assign @jstrachan in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/ok-to-test
/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jstrachan
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Prevent contracts from being re-initialized

What
Prevent the init function front being executed after the contract has already been initialized.
Why
Incorporating a security feature to prevent adversaries from substituting the admin by invoking the init function, enabling them to upgrade the contract to a malicious version. This fix prevents anyone copying the upgrade functionality from replicating this vulnerability in their contracts.
Known limitations
N/A

Hi @dmkozh, all the checks pass now. It requires your approval again, thanks.


transpile with babel-preset-airbnb

@darknoon I think this module needs to be transpiled to work in some environments, possibly those with an old JSC environment.
I found the bug on my home Mac, and it was just reported here too: https://github.com/airbnb/react-sketchapp/issues/90
SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode..
Plugin “react-sketchapp: Foursquare + Google Maps”, line 12175:
» const SuperInit = (0, _runtime.SuperCall)(NSStringFromSelector("init"), [], { type: "@" });

With this change, it gets transpiled to
var SuperInit = (0, _runtime.SuperCall)(NSStringFromSelector("init"), [], { type: "@" });

Thoughts?

@jongold I don't see a solution to the arguments issue with transpilation here, so how will it not break?

for #2


GraphQL: support collections in primary keys

For example:
create table lists(l frozen<list<int>> primary key);

Currently the table is skipped because DmlSchemaBuilder.buildFilterInputFields() only supports basic scalars.

This was fixed by #286.


max height limit

Do heamap.js limit the height? cause when the height exceed 32767,the map can't show. How could I figure it out?

Hi there,
unfortunately heatmap.js currently follows the canvas size restrictions.
However I plan to change the renderer to a tile-based approach which will solve this problem and there won't be any size restrictions anymore


5.0.0 no longer connects to the vera

Upgraded to 5.0.0 using my 4.5.6 database and none of my existing devices work when I test them from the bridge.
I get this error"
Request Error, Please look in your habridge log: error {"type":"3","address":"/groups/1488527247","description":"resource, /groups/1488527247, not available"}
Downgraded back to 4.5.6 and it works again. Not sure what I am missing here.

Could you put your config here and a step by step on how you create this issue? Thanks.

So, do you have device ids that are greater than 10000? If so, do a renumber devices and have echo forget and rediscover.

Oops sorry, forgot to reply. Do you mean device Ids on the Vera? Then no. On the bridge? I have never had an ID below 10000.
The step by step? From my working 4.5.6 configuration, I downloaded the 5.0.0 jar file. Stopped the 4.5.6 instance and started the 5.0.0. Open the web UI for the bridge and test on and off various Vera devices which were previously setup. None works.

Since many versions ago, if you hit the "Renumber Devices" button in the Bridge Devices Tab, it will renumber them starting at 1. To get this to work, you need to do this as a feature for groups which you don;t use is interferring due to the numbers being above 10000. You will have to have your alexa forget all devices and rediscover for it to find the devices after renumbering.

ok, It is a tedious task for me to renumber and reconfigure Alexa. I have too many groups. I will stick with 4.5.6 for now until I have a need to move to 5.x.x

@rafale77 How many devices do you have in Alexa for the ha-bridge? If it is a small enough number, you can forget each of them individually and keep all of your other settings and the rediscover will only find the newly renumbered ha-bridge devices.

I have over a hundred with ~groups...

Ahh, it's the groups created in Alexa using those devices. Well, we may consider the group feature optional in the ha-bridge so this does not happen.

Well only partially. I am grouping from the Alexa interface because I also have some mixed groups: Vera devices through the bridge and other devices through other skills. Adding grouping in the bridge would only help partially and one could even create scenes in the vera to group the vera devices. I think it is a bit redundant though the value would come in play if several interfaces were being controlled by the bridge itself which I am sure some people have. I am trying to keep as simple as possible so I keep the grouping at the highest level instead of having multiple levels of grouping.

Sorry for the confusion, what I meant was that a switch would have to be used to turn on the new feature in the ha-bridge which is giving you problems so that it would not affect your system.


git config --global user.{name,email}

Setting the username seemed to be missing.  This gives big warnings when you first start doing things.  Mention in basics, perhaps - you don't have to go into depth.  It could be introduced either before you do the first commit, or as a reaction when the error message comes up.  git provides good guidance on what to do.
EDIT: this is in the installation instructions.  Should be moved and discussed in lesson, probably.  Maybe add a "setting up git" section at beginning which is basically copy and paste important aliases and config, with no knowledge of what they do yet.

Could be combined with #74 to make an initial "setup" section - things people should just copy and paste before the lesson starts or knowing what they mean.

I agree that it should be moved to the lesson and we do it together and explain where the info goes. In every workshop there were 2 participants at least who ran into this.


deploy kubernetes-core networking for pods does not work on openstack environment

After deploying kubernetes-core bundles it seems flannel can not start the networking for pods.
After deploying openstack queens where provider and tenant networks are configured as vxlan.
run juju configuration with openstack and bootstrap a node on openstack.
juju deploy kubernetes-core and see kubernetes-master wait for pods startup.
During debug find out that flannel can not start the network.
If your deployment is broken and you'd like help debugging it, please run our CDK Field Agent tool and attach the resulting tarball to this issue.
results-2018-05-17-13-43-39.tar.gz

Hi Narinder,
This is very strange, are you able to try a deployment using the full cdk as well? You might want to speak to Lorenzo who managed to deploy CDK on Openstack already. If you can give me access to your cluster I might be able to take a look.

I'm having a similar issue. kubernetes-master hung  with: Waiting for kube-system pods to start

@ernestmartinez Do you have any information about what pods are failing or why? Without the field-agent, we can't debug very well for you as we don't have any information. If you can do some digging and report back we can try to figure it out.
I would note that unless your issue is identical to this one, I would open a new one so we can track it properly. I'd hate to have this close without solving your specific problem.

I just opened a new issue #595.
I wish I could upload the results file but its 28MB, I'm internal can I get it to you another way?


Delete application spring-boot-http-gradle-v2 from this environment

The command jx delete application was run by fcm-mikes and it generated this Pull Request

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign
You can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fcmcicd: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

promotion-build
11732f6b8259e7674a81b1c18c76946bb65b7c4d
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.


Reenable diesel_async in benchmarks by using the crates.io release

did you run the benchmarks by chance? It'd be neat to see the results if they're available :)

These benchmarks are run ~daily by our CI. New results will hopefully be available tomorrow here


Provide RBAC permission for v1alpha2

Volcano PR: https://github.com/volcano-sh/volcano/pull/314 requires this change

/lgtm
/approve


[sdk][bsp][stm32]:add stm32f103-100ask-pro sdk

100ask made a sdk for board stm32f103-100ask-pro
Local compilation passed

well done ！


Store all the captured data in a structured data format

For ex. in memory, using arrays.
Or in JSON.
Or in YAML. etc...
... rather than writing it immedieately to STDOUT
Advantages:

Could be exported/imported easily for separate editing (see #18 )
Allows splitting the program into more smaller modules (see #62 )
Makes it possible to capture all output of (even different than xinput) programs (see #75 )
Makes the program more portable (no issues yet, but see the distribution milestone)
Implies more robust error handling (not required yet, but bugs are always there)
And possibly many more

Do you want to store images in memory too?

Maybe. I wouldn't state. Maybe it's a good point, to have an option for it?
(The size of images can grow unexceptedly fast)

Best to start writing buffer to disk when memory gets full or some threshold reached


General: FFmpeg conversion also check attribute string length

Brief description
Conversion for ffmpeg is also checking length of string stored in exr attributes because ffmpeg has limit up to 8196 characters.
Changes

information about input file from oiiotool are loaded using xml format

this gives more and more precise information about input

all attributes with string values longer than 8196 are removed from exr to be able pass it to ffmpeg
few smaller tweaks of oiiotool conversion

oiiotool loads only channels that are used for output so works a little bit faster with reducing memory leak issues
function for converting does not require frame start/env arguments

Testing notes:

Try publish exrs with string attributes which have value longer than 8196 characters (e.g. cryptomatte stores whole manifest)
It should be able to create review and thumbnail just fine

Task linked: OP-2573 Multilayer exrs conversion does not work all the time


Is it possible to force Fabric to stop sending crash report temporary?

I'm finding an option to disabled Fabric temporary - to make sure It doesn't send any thing to Fabric in development/testing mode.
And Fabric will be enabled again in distribution mode.

No, there is no way to temporarily disable the plugin. You can, however, use one of the two solutions below to differentiate your dev builds from your production builds.
Option 1: Set a key/value pair that indicates if it is a development build. These key/value pairs show up in the crash details for each crash entry.
window.fabric.Crashlytics.setBoolValueForKey(true, "isDevelopmentBuild");

Option 2: Use a different package ID for your development builds. For example, com.company.yourapp for production builds and com.company.yourapp.dev for development builds. Fabric will treat the package ID as a different app and completely seperate all crashes and answers events in the Fabric console.

@Justin-Credible Thanks you for your suggestions.
I think I will stick with "Option 2" as an temporary solution.
About this feature. I found this document for android: https://docs.fabric.io/android/crashlytics/build-tools.html
I wonder if we can implement this feature!.
According to the document, There are 2 options to disabled Fabric:

At build time : We can implement a build hooks to update build configuration
At run time:  Or disabled fabric at run-time.

It would be nice if we could disable Fabric on dev builds though, we just don't want to clutter our crash reporting stats.


Props can be marked as deprecated

Closes #539

I'm closing this as any new addition of that kind should be addressed in the new declarative API (v0.18) of LV itself.


Add page about how to use Soroban contracts in Jupyter Notebooks

What
Add page about how to use Soroban contracts in Jupyter Notebooks.
Why
Jupyter Notebooks support Rust, albeit experimental, and can run Soroban contracts. For some people Jupyter Notebooks is a useful tool for experimenting, teaching, documenting, and learning.
Close #807

Preview is available here:http://developers-pr854.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr854.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr854.previews.kube001.services.stellar-ops.com

We typically put image in the asset folder: https://github.com/stellar/stellar-docs/commit/0a1cac665ca425b1a19b6644c86948ef0adde189

Preview is available here:http://developers-pr854.previews.kube001.services.stellar-ops.com


TextInput onChangeText callback was not invoked on Android

🐛 Bug Report
When I set TextInput's padding is 0 and keyboardType is numeric on Android, onChangeText was not invoked when I was typing numbers.
To Reproduce
See "Code Example" section.
Expected Behavior
onChangeText should be invoked when I am typing numbers.
Code Example
You can also get the whole project at https://github.com/tianjyan/textinput_issue .
/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 * @flow
 * @lint-ignore-every XPLATJSCOPYRIGHT1
 */

import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View, TouchableOpacity, TextInput} from 'react-native';

const instructions = Platform.select({
  ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
  android:
    'Double tap R on your keyboard to reload,\n' +
    'Shake or press menu button for dev menu',
});

type Props = {};

type State = {
  codes: Array<string>,
};

export default class App extends Component<Props, State> {
  textInput: Object;

  bindRef = (ref: Object) => { this.textInput = ref; };

  constructor(props: Props) {
    super(props);
    this.state = {
      codes: ['', '', '', '', '', ''],
    };
    this._onChangeText = this._onChangeText.bind(this);
  }

  render() {
    return (
      <View style={styles.container}>
        <TouchableOpacity
          activeOpacity={1}
          onPress={() => {
            this.textInput.focus();
          }}
        >
          <TextInput
            ref={this.bindRef}
            autoFocus
            maxLength={6}
            keyboardType="numeric"
            onChangeText={this._onChangeText}
            style={styles.textInput}
          />
          {this._renderItemsView()}
        </TouchableOpacity>
      </View>
    );
  }

  _onChangeText: (text: string) => void;

  _onChangeText(text: string) {
    const codes = text.split('');
    for (let i = 0; i < 6; i++) {
      if (i >= text.length) {
        codes[i] = '';
      }
    }
    this.setState({
      codes,
    });
  }

  _renderItemsView() {
    return (
      <View style={styles.itemsContainer}>
        {
          this.state.codes.map((code, index) => (
            <View
              key={index}
              style={styles.item}
            >
              <Text style={styles.text}>
                {code}
              </Text>
            </View>
          ))
        }
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'stretch',
    backgroundColor: '#F5FCFF',
  },
  textInput: {
    width: 0,
    height: 0,
    // If you change the padding to 1, the onChangeText will be invoked if you type numbers.
    padding: 0,
    backgroundColor: 'transparent',
  },
  itemsContainer: {
    marginTop: 52,
    marginEnd: 24,
    marginStart: 24,
    flexDirection: 'row',
    justifyContent: 'space-between',
  },
  item: {
    width: 32,
    height: 42,
    borderBottomWidth: 1,
    borderBottomColor: 'grey',
    alignItems: 'center',
    justifyContent: 'center',
  },
  text: {
    color: 'black',
    fontWeight: 'bold',
    fontSize: 32,
    textAlign: 'center',
  },
});

Environment
React Native Environment Info:
System:
    OS: macOS 10.14.3
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 111.20 MB / 16.00 GB
    Shell: 5.3 - /bin/zsh
Binaries:
    Node: 8.11.3 - /usr/local/opt/node@8/bin/node
    Yarn: 1.7.0 - /usr/local/bin/yarn
    npm: 5.6.0 - /usr/local/opt/node@8/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
    iOS SDK:
    Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    Android SDK:
    API Levels: 18, 23, 25, 26, 27, 28
    Build Tools: 23.0.1, 23.0.2, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.1, 28.0.2, 28.0.3
    System Images: android-27 | Google Play Intel x86 Atom
IDEs:
    Android Studio: 3.2 AI-181.55<IP_ADDRESS>56338
    Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
    react: 16.6.3 => 16.6.3
    react-native: 0.58.5 => 0.58.5
npmGlobalPackages:
    create-react-native-app: 1.0.0
    react-native-cli: 2.0.1
    react-native-create-library: 3.1.2
    react-native-log-ios: 1.0.1

@tianjyan try moving your renderItemsView function above TextInput
render() {
    return (
      <View style={styles.container}>
        <TouchableOpacity
          activeOpacity={1}
          onPress={() => {
            this.textInput.focus();
          }}
        >
          {this._renderItemsView()}
          <TextInput
            ref={this.bindRef}
            autoFocus
            maxLength={6}
            keyboardType="numeric"
            onChangeText={this._onChangeText}
            style={styles.textInput}
          />
        </TouchableOpacity>
      </View>
    );
  }

Cool, that works. @jacoahmad Could you tell me the theory ?

I'm not sure what's the root cause is, but looking at your code, if you want to have a hidden input, I think you don't have to put your TextInput inside TouchableOpacity.
You can write it this way
render() {
    return (
      <View style={styles.container}>
        <TouchableOpacity
          activeOpacity={1}
          onPress={() => {
            this.textInput.focus();
          }}
        >
          {this._renderItemsView()}
        </TouchableOpacity>
        <TextInput
          ref={this.bindRef}
          autoFocus
          maxLength={6}
          keyboardType="numeric"
          onChangeText={this._onChangeText}
          style={styles.textInput}
        />
      </View>
    );
  }

@jacoahmad Thank you for your response. You are right, I don't have to put the input inside the TouchableOpacity. But put it inside TouchableOpacity does not break the language specific. So I think this is still a bug.

@tianjyan Yes, it won't break the language. TextInput is tap-able out of the box, wrapping it with a component that has event listener and passes a function to it sounds wrong.
I'm not sure how to avoid an event listener on the parent of TextInput which is TouchableOpacity. Imagine textInput.focus() fires multiple times each time you pressed TouchableOpacity

@jacoahmad I think avoid the event listener is not the topic for this issue. I can still input ,/./- by using my code.

@tianjyan I believe your issue was having 0 padding inside TextInput doesn't invoke numbers input. It turns out firing multiple events does break certain event.
But let's say we solved this issue, then you have it working, tap your finger outside the
TouchableOpacity, then try to get the input focused, it won't work. It doesn't solve your problem from the beginning.

TextInput inside touchable opacity event firing behaviour could be related to: https://github.com/facebook/react-native/issues/23720

I am facing the same issue onChangeText didn't call.
import React, {Component} from 'react';
import {View, TextInput} from 'react-native';

export default class App extends Component {
  constructor(props){
    super(props);
    this.state = {email: ''}
  }
  render() {
    return (
      <View >
        <TextInput value={this.state.email} onChangeText={(t) => {
          console.log("running", t)
          this.setState({email: t})
        }}
        />
      </View>
    );
  }
}

The interesting thing is when I put default value TextInput render with that value but again I type onChangeText didn't call.
onChangeText only call when I cut the value using cross key ×
Ex:
this.state = {email: 'something'}

input value => something
press a => input value still =>something         //onChangeText didn't call
press b => input value still =>something         //onChangeText didn't call
...

press **×** => input value still =>somethin     //onChangeText called
press **×** => input value still =>somethi      //onChangeText called


"Got nil RMD for ..." when trying to group chat

On macOS Sierra, Keybase Version 1.0.18-20170207120017+ce0f90d ,
I can chat 1-to-1 but when I try to make a group chat, I receive this cryptic error message.
Error: Got nil RMD for fd0da84303ce8a0dc11347dd3e4ae816 at t (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:15:31264)
at new t (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:16:80)
at s (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:15:31660)
at i (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:15:31588)
at file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:12:14407
at file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:78:27307
at e.t.Deferrals.e._call (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:56:29684)
at file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:56:29835
at c (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:56:29462)
at e.t.Deferrals.e._fulfill (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:56:29794)

Maybe, the two other people I try to talk with aren't following each other, or something like that, or it may be something else.
Edit: After trying again many times it finally worked like a charm. But I didn't understood the problem message.

Can you do a keybase log send?
Cc: @mmaxim

Likely this is already fixed in master and will be in the next release, but it would be good to have a log send to confirm the original error.

done my log id is 073d3116c73659d4c577161c

Both service and KBFS side should have improvements here in the next release (happening imminently), so hopefully we'll have a better story here soon.

Also @yogsototh the problem here is that someone you are trying to chat with reset their account recently, which is a case that is tricky for us and we are actively working on making better.

Same issue when attempting to start a chat with one person.
Log: 7c3a968b7c3856814003251c

@BrandonIngalls I think you need to run run_keybase to update your background processes to the new versions.  They're all pretty old.

@BrandonIngalls I think you need to run run_keybase to update your background processes to the new versions. They're all pretty old.

That fixed it for me so never mind.


Dashboard UI

[ ] Auth page before landing
[x] Markdown support added (React-markdown package)
Landing page

[x] Search box and mock results
[ ] To-do list area

test


Add FaceCropper.

FaceCropper
Project URL
https://github.com/KimDarren/FaceCropper
Description
Crop faces, inside of your image, with iOS 11 Vision api.
Why it should be included to awesome-ios (optional)
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[ ] Supports iOS 9 / tvOS 10 or later
[ ] Supports Swift 3 or later
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

Thx!

Thanks 😄


saving embed style

Noticing that it does not save the option to show line numbers in the embed style

Can you point me a bin url so I can check this out?

Remy,
http://cjseeger.jsbin.com/zalinu/edit?html,css,js,output
JS Bin on jsbin.comhttp://jsbin.com
On Aug 19, 2015, at 3:18 PM, Remy Sharp <notifications<EMAIL_ADDRESS>wrote:
Can you point me a bin url so I can check this out?
—
Reply to this email directly or view it on GitHubhttps://github.com/jsbin/jsbin/issues/2522#issuecomment-132768583.

Remy,
Did you have a chance to look at why when I check the line numbers in the Embed Style that upon return to the page the box is not still checked?
Also had a question about deleting bins.  Maybe I am not using JSBin as intended, but I work on a project and generate 10 - 20 versions. I then get to a point that I think this file is final. Is there an easier way to delete all those versions? Or should I just clone the final as a new bin and go delete the most recent of the old ones?
I also still think it might be need to have some additional way to categorize bins.  For example I could label bins I do with Leaflet as ‘Leaflet’ those that test Census API’s  as “Census”  then those I use for student tutorials as “tutorials”
Thanks,
Chris
On Aug 19, 2015, at 10:13 PM, Seeger, Christopher J [L A] <cjseeger<EMAIL_ADDRESS>wrote:
Remy,
http://cjseeger.jsbin.com/zalinu/edit?html,css,js,output
JS Bin on jsbin.comhttp://jsbin.com/
On Aug 19, 2015, at 3:18 PM, Remy Sharp <notifications<EMAIL_ADDRESS>wrote:
Can you point me a bin url so I can check this out?
—
Reply to this email directly or view it on GitHubhttps://github.com/jsbin/jsbin/issues/2522#issuecomment-132768583.


Get Messages with Attachment

There is no how to get attachment from messages.
Please show the method of this.

@TogrulZade Thanks for reaching out to us. Can you see if these articles help?
Get attachments of an Outlook item from the server
Manage an item's attachments in a compose form in Outlook - Get attachments section
Thanks.


Fix edge dev detection, Add edge channel detection

Closes #80

Hi @vweevers, any thoughts on this? It looks like the linting issues have been fixed (the job just needs approval to run) and I'd love to see this merged so we can use it downstream.


[SPARK-30245][SQL] Add cache for Like and RLike when pattern is not static

What changes were proposed in this pull request?

Add cache for Like and RLike when pattern is not static
Why are the changes needed?

When pattern is not static, we should avoid compile pattern every time if some pattern is same.
Here is perf numbers, include 3 test groups and use range to make it easy.
// ---------------------
// 10,000 rows and 10 partitions
val df1 = spark.range(0, 10000, 1, 10).withColumnRenamed("id", "id1")
val df2 = spark.range(0, 10000, 1, 10).withColumnRenamed("id", "id2")

val start = System.currentTimeMillis
df1.join(df2).where("id2 like id1").count()
// before  16939
// after    6352
println(System.currentTimeMillis - start)

// ---------------------
// 10,000 rows and 100 partitions
val df1 = spark.range(0, 10000, 1, 100).withColumnRenamed("id", "id1")
val df2 = spark.range(0, 10000, 1, 100).withColumnRenamed("id", "id2")

val start = System.currentTimeMillis
df1.join(df2).where("id2 like id1").count()
// before  11070
// after    4680
println(System.currentTimeMillis - start)

// ---------------------
// 20,000 rows and 10 partitions
val df1 = spark.range(0, 20000, 1, 10).withColumnRenamed("id", "id1")
val df2 = spark.range(0, 20000, 1, 10).withColumnRenamed("id", "id2")

val start = System.currentTimeMillis
df1.join(df2).where("id2 like id1").count()
// before 66962
// after  29934
println(System.currentTimeMillis - start)

Does this PR introduce any user-facing change?

No.
How was this patch tested?

Test build #115276 has started for PR 26875 at commit 5250186.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/20084/
Test PASSed.

Test build #115276 has finished for PR 26875 at commit 5250186.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/115276/
Test FAILed.

Test build #115285 has started for PR 26875 at commit 424e0e3.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/20094/
Test PASSed.

Test build #115285 has finished for PR 26875 at commit 424e0e3.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/115285/
Test FAILed.

Do you have time to take a look? @cloud-fan @HyukjinKwon @viirya

This seems not very useful. We should recommend users to use string literal as pattern.

Yes, it just has a few scene and it is disencouraging. But when it happens, spark will run very slowly.
I meet a scene that check two table which storage some file locations, then use join and like to compare location. There is only one way spark can choose is BroadcastNestedLoopJoin.
E.G. table t1 and table t2 both have 1 million rows, and t1 has 200 partitions, t2 is broadcasted, then spark will compile pattern 1 million * 1 million count. But with cache, just compile 1 million * 200 count.

+1. seems to be too corner case that's not worthwhile. Closing.

Sorry, I mistakenly closed. Yeah, it doesn't look worthwhile enough. and yeah, do you have perf numbers?

I test this code in my scene, about 10 times increase.

Test build #115731 has started for PR 26875 at commit d6650e1.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/20525/
Test PASSed.

It seems this sql is not in TPCDS and TPCH.

Test build #115731 has finished for PR 26875 at commit d6650e1.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/115731/
Test FAILed.

The failed ut is not related with this pr.

@ulysses-you can you show the exact steps and perf numbers in the PR description?

@ulysses-you can you show the exact steps and perf numbers in the PR description?

Sure I will add it later.

cc @HyukjinKwon @viirya @cloud-fan
I add the perf numbers and update pr description.

Do you have time to take a look? Thanks in advance.
@HyukjinKwon @viirya @maropu

retest this please

Test build #116209 has started for PR 26875 at commit d6650e1.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/21001/
Test PASSed.

Test build #116209 has finished for PR 26875 at commit d6650e1.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/116209/
Test PASSed.

@cloud-fan Do you have time to take a look again? Thanks in advance.

retest this please

Test build #116582 has started for PR 26875 at commit d6650e1.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/21366/
Test PASSed.

Test build #116582 has finished for PR 26875 at commit d6650e1.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/116582/
Test PASSed.

Merged to master.

@HyukjinKwon thanks for merging, thanks all !

Gentle ping @ulysses-you, would you mind if I ask to do a benchmark, for instance, with a very long strings like "aaaaaaaaaaaab" so strings have to be compared up to the end. I think we should check the worst case as well to see if this PR is really worhty.

Yes, It seems to consider more.

@beliefer, seems the author is inactive. Can you make some perf numbers?  If that's going to take a while, I am going to revert this PR before Spark 3.0 RC.

@HyukjinKwon You can revert this PR first. If I'm ready, I will pick this PR.

Thank you so much @beliefer.

@HyukjinKwon sorry, I missed many things. And thanks @beliefer do the benchmark, but it seems something wrong, the right part should not be a foldable value.
The PR aims to improve perf of the dynamic like. e.g select count(*) from t where c1 like c2. Not affect the static like.
I will do a new benchmark with a very long strings what @HyukjinKwon suggested.

@ulysses-you, thank you so much. Feel free to reopen the PR.

Env: centos 7, 40cores, 4GB
---- test 1 ----
val df1 = spark.range(0, 20000, 1, 200).selectExpr("uuid() as c1")
val df2 = spark.range(0, 20000, 1, 200).selectExpr("uuid() as c2")
val start = System.currentTimeMillis
df1.join(df2).where("c2 like c1").count()
// 3 times test
// before  159228, 157541, 157721
// after   14378,  11545,  11498
println(System.currentTimeMillis - start)

---- test2 ----
// 17+1 length stirngs
val df1 = spark.range(0, 20000, 1, 200).selectExpr("concat('aaaaaaaaaaaaaaaaa', id%2) as c1")
val df2 = spark.range(0, 20000, 1, 200).selectExpr("concat('bbbbbbbbbbbbbbbbb', id%2) as c2")
val start = System.currentTimeMillis
df1.join(df2).where("c2 like c1").count()
// 3 times test
// before  90054, 90350, 90283
// after   13077, 10097, 9770
println(System.currentTimeMillis - start)

About 10x time performance improvement. Seems equals is more quickly than compile pattern. And longer strings would make performance improvement better.
cc @HyukjinKwon

---- test3 ----
val df1 = spark.range(0, 20000, 1, 200).selectExpr("uuid() as c1")
val df2 = spark.range(0, 20000, 1, 200).selectExpr("uuid() as c2")
val start = System.currentTimeMillis
df1.join(df2).where("c1 like c2").count()
// 3 times test
// before  159226, 159147, 159587
// after   159641, 160960, 160091
println(System.currentTimeMillis - start)

The worst case is that do compare and compile each row. And it seems only little regression.

Seems merged PR cann't reopen. Is there any way ? If not I will send an another pr for this.

You can create new one. Can I have some feedback from @rednaxelafx before we go ahead?
@rednaxelafx, does it looks good enough to you or do you have any guidance on the testing for him?

@kiszk too FYI

@ulysses-you I'm sorry! I lost some thing.
---- test 1 ----
val df1 = spark.range(0, 20000, 1, 200).selectExpr("uuid() as c1")
val df2 = spark.range(0, 20000, 1, 200).selectExpr("uuid() as c2")
val start = System.currentTimeMillis
df1.join(df2).where("c2 like c1").count()
// 3 times test
// before  159228, 157541, 157721
// after   14378,  11545,  11498
println(System.currentTimeMillis - start)

---- test3 ----
val df1 = spark.range(0, 20000, 1, 200).selectExpr("uuid() as c1")
val df2 = spark.range(0, 20000, 1, 200).selectExpr("uuid() as c2")
val start = System.currentTimeMillis
df1.join(df2).where("c1 like c2").count()
// 3 times test
// before  159226, 159147, 159587
// after   159641, 160960, 160091
println(System.currentTimeMillis - start)

Why is test1 and test3 so different in time?

---- test2 ----
// 17+1 length stirngs
val df1 = spark.range(0, 20000, 1, 200).selectExpr("concat('aaaaaaaaaaaaaaaaa', id%2) as c1")
val df2 = spark.range(0, 20000, 1, 200).selectExpr("concat('bbbbbbbbbbbbbbbbb', id%2) as c2")
val start = System.currentTimeMillis
df1.join(df2).where("c2 like c1").count()
// 3 times test
// before  90054, 90350, 90283
// after   13077, 10097, 9770
println(System.currentTimeMillis - start)

You use %2 is the extreme best case scenarios are used, so 10x time performance improvement cannot be demonstrated

The positive test case (test1, test2) is to confirm this pr has much better performance in dynamic like scene. The test1 and test2 aim to check the different string length. %2 has no meaning.
The negative test case (test3) is to confirm this pr has little performance regression.

Why is test1 and test3 so different in time?

Since it's a join opt, the best way is using the column which is at right of like as the BufferedSide, then when loop StreamSide, the BufferedSide column will always same as last, so it can avoid pattern compile each row.

test1 looks the same as test3.

It's different. test1 condition use c2 like c1 and test3 use c1 like c2. The result is test1 can always reuse the pattern and test2 always need to re-compile.
As I said above, make column that need to compile at join BufferedSide can avoid compile.

@ulysses-you OK. I understand it. But it seems that the performance is just good at scenarios that left join right.

yeah, but it also has little performance regression with normal case seen as test3.  I think it's a reason to do this.

I think you should to supplement a lot of benchmark and performance investigation.  Consider a variety of scenarios.
Then it's easier for us to make a judgment or decision.

Maybe I miss some point, test3 is the worst case so that other scenarios is always better than it, and test1 and test2 is the best positive case.
The result is that add the cache can make the performance better within [0, 10]x times. But if you have any special scenarios, I'm ready to do the benchmark.


[ja] replace links to /docs/concepts/architecture/controller/ with /ja/docs/...

This is a Feature Request

What would you like to be added

replace links to /docs/concepts/architecture/controller/ with links to /ja/docs/concepts/architecture/controller/.
Why is this needed
/ja/docs/concepts/architecture/controller/ has already been translated into Japanese.
Comments

/language ja
/kind cleanup
/assign
lines to update
content/ja/docs/concepts/_index.md:Kubernetesには、[コントローラー](/docs/concepts/architecture/controller/)に依存して基本オブジェクトを構築し、追加の機能と便利な機能を提供する高レベルの抽象化も含まれています。これらには以下のものを含みます:
content/ja/docs/concepts/overview/components.md:* [コントローラー](/docs/concepts/architecture/controller/)について学ぶ
content/ja/docs/reference/glossary/controller.md:full_link: /docs/concepts/architecture/controller/

/triage accepted

/close


Is Support Print with Bluetooth Printer ??

Is this librarry Support Print with Bluetooth Printer ??

this package only support sunmi printers.

any suggest from you ? the package that support bluetooth and cash drawer ..
On Tue, Sep 17, 2024, 20:33 Marcus Brasizza @.***>
wrote:

this package only support sunmi printers.
—
Reply to this email directly, view it on GitHub
https://github.com/brasizza/sunmi_printer/issues/77#issuecomment-2355819785,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACGRKNPA3IMFYXWOB3TBBR3ZXAVTVAVCNFSM6AAAAABOGM647OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJVHAYTSNZYGU
.
You are receiving this because you authored the thread.Message ID:
@.***>


Bump prod version from 0.3.15 to 0.3.16 - and increase disks 500GB -> 1TB

^

@lukemarsden should we merge this one (to main)? I still needed to https://github.com/filecoin-project/bacalhau/issues/1671


Updates campaign run Title field helper text

What's this PR do?
Updates campaign run Title field helper text to read 'Run titles should be formatted like: Comeback Clothes run 1 or Teens for Jeans run 3. Please do not capitalize "run" or put anything but a space between the campaign name and the word "run."'
How should this be reviewed?
On local, visit http://dev.dosomething.org:8888/us/node/1860/edit/en and make sure above helper text is under the Title field.
Relevant tickets
Fixes #6564

hrm this looks like too many changes, it's even removing the description field and I don't think this commit is doing anything
you should close this PR, pull down dev, run drush fra -y and then make the changes to add the description field.

ok!


Unable to use it in a local development environment and inconsistent dependency tree

Describe the bug
I am trying to extend the functionality of this library. I installed the library from a local path in my sample angular application. But injecting the OAuthService in a component throws this error.
error: NG0203: inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with `EnvironmentInjector#runInContext%60.%20Find%20more%20at%20https://angular.io/errors/NG0203

This error only appears if I use the local variant of the library. Using the version directly from npm works just fine. So my guess is that I am doing something fundamentally different/wrong and hope that someone can give me a hint on doing it right.
I also noticed that the dependency tree is in an unhealthy state (hence the npm install --force command)
% npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/tslib
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/@angular/animations
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!     peerOptional<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!     node_modules/@angular/platform-browser
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!       3 more (@angular/forms, @angular/platform-browser-dynamic, @angular/router)
npm ERR!   17 more (@angular/common, @angular/compiler, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/angular-oauth2-oidc-jwks
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Conflicting peer dependency<EMAIL_ADDRESS>npm ERR! node_modules/tslib
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/angular-oauth2-oidc-jwks
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/timo/.npm/eresolve-report.txt for a full report.

npm ERR!      /Users/timo/.npm/_logs/2023-05-11T11_08_27_388Z-debug-0.log

To Reproduce
# Getting the library and build it
git clone https://github.com/manfredsteyer/angular-oauth2-oidc.git
cd ./angular-oauth2-oidc
npm install --force
npm run build

# After that I installed it on my sample project like so
npm install /Users/timo/Developer/angular-oauth2-oidc/dist/lib

Injecting OAuthService into a component
export class AppComponent {
  constructor(
    private oauthService: OAuthService
  ) {}
}

Unfortunately its not possible to do a Stackblitz or something like this since this will not cover the local development process.

Hello might be a bit late but I stumbled upon your issue, or maybe it could be helpful for someone else.
Have you added "preserveSymlinks": true in your build options in the angular.json after adding your local library?
In the angular.json at projects.your-app-name.architect.build.options, it would look something like this:
         "options": {
            "preserveSymlinks": true,
            "outputPath": "dist/your-app-name",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            ...rest of the options
          },

Maybe this fixes the issue. Can't really explain you the reason it happens and why this fixes it though.

Same here, I forked the project and want to contribute but I can't even install the dependencies... :-/


Refactor wire service

Overhaul the wire message handling and header chain download service. A new
WireService object is introduced which now only downloads headers up to the
wallet creation date and merkle blocks afterwards.

Coverage decreased (-3.03%) to 41.231% when pulling f984989406378c0341751ee7ebda8509156f9b9f on refactor into b276b390bd3aee925df8b4a8cbcaecc2f1135bdb on master.


Let's talk about what problems this library has solved and how to use it

Let's talk about what problems this library has solved and how to use it

When should I use him

I think you shoud learn about Monad in functional programming first.


Fix transmission loss calculation

Use cases 2d and 10 reported wrong transmission losses. The error seems to be in the preprocessing calculation.

It turned out that the losses are still different from the other models. This is due to another dimension of the flows the losses are derived from and another calculated percentage for each region compared to the other models.

Via an energy balance I could affirm that the dimension of the flows and losses seems to be OK for oemof in comparison to the other models.
I am not sure if this is true for the actual transmission capacities and the accounting of losses. The capacities are given as net transfer capacities while the model accounts the loss to the gross capacities. This results in different percentages of loss than with the other models.

Via an energy balance I could affirm that the dimension of the flows and losses seems to be OK for oemof in comparison to the other models.
I am not sure if this is true for the actual transmission capacities and the accounting of losses. The capacities are given as net transfer capacities while the model accounts the loss to the gross capacities. This results in different percentages of loss than with the other models.

I am not sure if I got you right, but I checked quickly: The capacities in oemof.tabular's Link are set on the output side, so they are indeed net capacities.

The capacities are given as net transfer capacities while the model accounts the loss to the gross capacities. This results in different percentages of loss than with the other models.

This (of course) does not affect the percentages. It only depends on the denominator which has to be the gross flow to get the correct results (correct for oemof, not for the other ones).
I think we can close this.


Cannot read properties of null (reading 'removeChild')

hi.
I'm using Annotorius with OSD in my angular project and come across the following error.

So this happened after I added an event on mouse move where I get the currently selected annotation, change its svg and then select the annotation again( this last step was added only because the changes were not visible just only after the selection was made. I don't know why...)

Any Ideas how to get rid of the error or how to change a svg in real time from ts file?

Hi,
hm, hard to tell what's going on there. But in any case: you would't change anything about the annotation. On the one hand because the annotation object isn't directly tied to the SVG; on the other hand, the internal state is (roughly...) immutable. Whatever you get back through the API is just clones of the data objects.
If you want to change an annotation, you'd need to alter the annotation like above, but then re-add the annotation using anno.addAnnotation(). If your modified annotation shares the same ID with the original, it will replace the previous version, and changes should be visible in realtime.

@dianamarginean note sure what the use case is here and what you really are trying to accomplish, but I'm pretty sure you can't just swap the SVG from the DOM element, the annotation is an internal structure/object and the SVG (rendered) is just its representation.
What we do is something like this (works but might not be the prettiest code!), Get a current one and modify (or start from scratch), (see ::toAnnotation), add it and then select it.
https://github.com/esmero/format_strawberryfield/blob/97e4111829bb8fba388e713ba26a7ae636dc8f17/js/iiif-openseadragon_strawberry.js#L491-L499
Also, DOM wise: Existing SVGs can not be modified (most of the time) via simply replacing a value/string. There is a whole SVG way. See here https://github.com/esmero/format_strawberryfield/blob/97e4111829bb8fba388e713ba26a7ae636dc8f17/js/iiif-openseadragon_strawberry.js#L233-L240

Thanks @DiegoPino, yes that's exactly the right way to do it. Also reminds me - I really need to check your OpenCV features! (And in general: good to see you around here :-)

thank you guys

Hi @dianamarginean since you are using Annotorious with OSD in Angular can you help me with my problem?
https://github.com/annotorious/annotorious-openseadragon/issues/181#issue-1841424947


Federico: Watch gaflighttracker.com

Federico requests the watch of the watch_keyword gaflighttracker\.com. See the Metasmoke search here and the Stack Exchange search here.

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

!!/approve

Coverage remained the same at 65.27% when pulling ba46e20346c6c48cb31898b8f55072cae949526c on auto-blacklist-1522268376.6712923 into 222ba8e5715fd0195805e4277b2c7e6b03be9376 on master.


fix: removed vscode folder and updated gitignore

Removed .vscode folder and generated an ignore from gitignore.io
It is unnecessary to check in IDE settings
Todo:

[ ] Add tests
[ ] Add docs
[ ] Add SemVer label

That's quite the gitignore!


WIP: Prune unused nested NSDFG connectors

When input or output connectors of a nested SDFG are not used anywhere inside, we can prune them. This can cascade through multiple levels of nestings with multiple applications of the transformation.
This is used for SDFGs generated from frontends that need to liberally add connectors. It is useful because it can enable other transformations, such as the loop-to-map transformation, which is prevented from overlapping read and write sets.

read_and_write_set will be merged with the one in loop-to-map once it's merged.


chore(gh-actions): correct gh-pages deployment config

@timowolf another one for you. The pages deployment works now, see https://siemens.github.io/ngx-datatable/
/cc @kfenner

LGTM


THANK U GOD OUR CREATOR 4ALL

From BlackRock Insights:
Which investment trend is most important? https://storytelling.blackrock.com/insights/share?cmVzb3VyY2VUeXBlPVNUT1JZJmlkPTEyNTk=

From BlackRock Insights:
Which investment trend is most important? https://storytelling.blackrock.com/insights/share?cmVzb3VyY2VUeXBlPVNUT1JZJmlkPTEyNTk=


KAFKA-6455: KStream-KStream join should set max timestamp for result record

More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.
Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Call for review @guozhangwang @bbejeck @vvcephei @ableegoldman @cadonna

Java8 failed. Java11 passed. Test result not available any longer.
Retest this please.

@guozhangwang Updated this.

Made a second pass, LGTM.

Test failures unrelated. Tracked via Jira tickets. Java8 passed.
Retest this please.

Java11 failures tracked in Jira. Java8 failed with env issues.
Retest this please.


DataLoader.load(None) explicitly disallowed.

Which is rather limiting, consider an ORM with nullable FK:
class SomeObject(models.Model):
    friend = models.ForeignKey(SomeObject, nullable=True, blank=True)
    friends = models.ManyToManyField(SomeObject, blank=True)

def some_object_resolver(parent, info, **kwargs):
    # raises error when load is None! sad :(
    return dataloader.load(parent.friend_id)

def some_object_resolver(parent, info, **kwargs):
    # empty iterable is fine? yay? :)
    return dataloader.load_many([
         friend.id for friend in parent.friends.all()
    ])

For the most reusable DataLoaders it would be nice to allow None to pass through such that batch_load_fn() handles empty values without an issue.
I suppose the alternative is just to return None directly from the resolver if the friend_id is None, but for reusableness' sake it would be awesome to not add that conditional.

@syrusakbary for your consideration!


(PUP-5290) Catch and log exceptions raised by saving to cache

Failing to cache requests could lead to silent exits. For example if the
apply application failed to cache to PuppetDB catalog terminus. This
will log the exception and continue.

Retargeted against stable: #4303


Component grouping - update repo and Storybook

Description / User story
Description / User story
After the discussion on 31.01. about #303 and #742 we made the following decisions:

All components will be restructured, so they all live in the same directory called "components". This will also be changed in Figma and in Storybook. There will not be any semantic groups like "Action", "Form", "UI" etc. and there will also not be any sub-groups like "Internal components".
All components can be combined to creating new components. But not all components should be combined to build a new interfaces, pages or applications. We will optimise the component documentations to make clear if a component is intended to be used when building interfaces, pages, applications or not.
Parts still exist. The decision to separate a section of a component into a part is up to the designer or the developer that is creating the component and they do not have to be aligned between code and design. The only rule is that parts can only be used in a single component, not in multiple components.
Parts are documented close to the component they are used in. In Figma this means they are documented in a separate panel, next to the component panel (see Menu for example). In GitHub the parts will be added to a new folder inside the component folder. So if we decide to build Tabs as a part of the TabBar, a "tab" folder should be part of the "tab-bar" folder.

This issue was created to update the repository and Storybook to follow the new rules.
Acceptance Criteria

[x] Semantic groups (like "Action", "Form", "UI" etc.) have been removed in the repo
[x] Semantic groups (like "Action", "Form", "UI" etc.) have been removed in Storybook
[x] All components are sorted alphabetically in the "components" directory in the repo
[x] The "Design System" section in Storybook has been renamed to "Components" and all components are sorted alphabetically in it. The "Components" section should be placed below the "Foundation" section.
[ ] All components that were "internal" components before have a new paragraph in their intro, which explains that this component should only be used when building new components (and not to build interfaces, pages or applications). See Additional information below for a suggestion.

[x] Counter
[x] Form Caption
[x] Form Caption Group
[x] Form label
[x] Input Icon
[ ] Stepper Button

Additional information
Suggestion for "internal" components:

The [Component Name] is intended to be used when creating new components. Currently it is used like this in the following components:

[List of all Component Names that use this component]
...

It is not intended to use the [Component Name] directly when creating new applications.

Code of Conduct

[X] I agree to follow this project's Code of Conduct

[ ]  All components that were "internal" components before have a new paragraph in their intro, which explains that this component should only be used when building new components (and not to build interfaces, pages or applications). See Additional information below for a suggestion.

[x]  Counter
[x]  Form Caption
[x]  Form Caption Group
[x]  Form label
[x]  Input Icon
[ ]  Stepper Button

@thrbnhrtmnn  I left out the Stepper Button, since it doesn't exist yet


⚠ Processors has degraded performance

In 7f45c8c, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 52 ms

Resolved: Processors performance has improved in 79ba394.


Fix sample code for using SPN with PowerShell

Fix sample code for using SPN with PowerShell

@minghan : Thanks for your contribution! The author, @minewiskan, has been notified to review your proposed change.

#sign-off


Error with starting etcd - 2.2.4 ( latest version)

HI ,
I'm starting a standalone ETCD instance and pulled the latest version -
[root@cdaetcd-ch2-2p system]# etcd --version
etcd Version: 2.2.4
Git SHA: bdee27b
Go Version: go1.5.3
Go OS/Arch: linux/amd64
[root@cdaetcd-ch2-2p system]#
However , etcd fails to start and I'm unable to explain much with this error-
[root@cdaetcd-ch2-2p system]# systemctl status etcd
etcd.service - Etcd Server
Loaded: loaded (/usr/lib/systemd/system/etcd.service; enabled)
Active: failed (Result: start-limit) since Wed 2016-01-27 21:32:19 UTC; 12min ago
Process: 20792 ExecStart=/usr/bin/etcd (code=exited, status=1/FAILURE)
Main PID: 20792 (code=exited, status=1/FAILURE)
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Failed to start Etcd Server.
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Unit etcd.service entered failed state.
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: etcd.service holdoff time over, scheduling restart.
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Stopping Etcd Server...
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Starting Etcd Server...
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: etcd.service start request repeated too quickly, refusing to start.
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Failed to start Etcd Server.
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Unit etcd.service entered failed state.
[root@cdaetcd-ch2-2p system]#
I had to set Type=notify and NotifyAccess=all to get rid of some errors over the default config. I set Restart=always but it fails even without that option enabled. Here is what my config looks like -
[root@cdaetcd-ch2-2p system]# cat /usr/lib/systemd/system/etcd.service
[Unit]
Description=Etcd Server
After=network.target
[Service]
Type=notify
WorkingDirectory=/var/lib/etcd/
EnvironmentFile=-/etc/etcd/etcd.conf
User=etcd
ExecStart=/usr/bin/etcd
NotifyAccess=all
Restart=always
[Install]
WantedBy=multi-user.target
[root@cdaetcd-ch2-2p system]#
Journalctl also doesnt seem to provide me much info.
[root@cdaetcd-ch2-2p system]# journalctl -u etcd.service --since today
-- Logs begin at Mon 2015-06-22 17:07:28 UTC, end at Wed 2016-01-27 21:32:19 UTC. --
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Starting Etcd Server...
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Failed to start Etcd Server.
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Unit etcd.service entered failed state.
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: etcd.service holdoff time over, scheduling restart.
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Stopping Etcd Server...
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Starting Etcd Server...
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: etcd.service start request repeated too quickly, refusing to start.
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Failed to start Etcd Server.
Jan 27 21:32:19 cdaetcd-ch2-2p systemd[1]: Unit etcd.service entered failed state.
[root@cdaetcd-ch2-2p system]#
Can anyone provide some assistance as to what is causing the above error for ETCD to fail? And also a possible resolution?
Would love some insight.
Thanks,
Vandita

These are the permissions on the /var/lib/etcd directory -
[root@cdaetcd-ch2-2p system]# ls -la /var/lib/etcd/
total 8036
drwxr-xr-x   3 etcd etcd      45 Jun 22  2015 .
drwxr-xr-x. 36 root root    4096 Jan 27 03:21 ..
drwx------   3 etcd etcd      19 Jan 27 06:48 automation
-rw-r--r--   1 etcd etcd 8222720 Jun 22  2015 old-cluster.tar
[root@cdaetcd-ch2-2p system]#

This issue was moved to coreos/etcd#4308


Sonoff switchman M5-3C (same UUID as another bridged Accessory)

What issue do you have? Please be as thorough and explicit as possible.
i have Sonoff switchman M5-3C and an older TX-3C
the older T3UK3C shows 1 master switch + 3 individual switches for each channel and it works flawlessly
my new M5-3C switches when they are imported i only get 1 switch (even though it is 3 gang switch) but it doesnt work
and there is log messages about both switches (ignore the part where i have my older TX-3C switches disconnected)
Details of your setup.

Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS?

Homebridge on docker container on Synology NAS

Which version of Homebridge/HOOBS do you have?

1.5.0 latest (and i tried the beta version aswell 1.5.1-beta. 1)

Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.

Synology NAS
i dont know what Node.js/NPM version but one of the logs shows
The plugin "homebridge-ewelink" requires Node.js version of ^14.20.1 || ^16.17.1 which does not satisfy the current Node.js version of v16.16.0. You may need to upgrade your installation of Node.js - see https://homebridge.io/w/JTKEF

Which version of this plugin (homebridge-ewelink) do you have? Has the issue started since upgrading from a previous version?

v10.1.0  (i tried v10.1.01-beta.2 but same issue)

Which eWeLink devices do you have that are causing issues? Please include product models if applicable.

Sonoff Switchman M5-3C
Please paste any relevant logs below.
[9/30/2022, 6:40:33 PM] [eWeLink] Fetching devices from eWeLink home/id [My Home] [********].
[9/30/2022, 6:40:34 PM] [eWeLink] Web socket host received [as-pconnect1.coolkit.cc].
[9/30/2022, 6:40:35 PM] [eWeLink] Sending WS login request.
[9/30/2022, 6:40:35 PM] [eWeLink] LAN discovery starting.
[9/30/2022, 6:40:36 PM] [eWeLink] WS login successful.
[9/30/2022, 6:40:38 PM] [eWeLink] LAN discovery complete.
[9/30/2022, 6:40:38 PM] [eWeLink] LAN monitoring started.
[9/30/2022, 6:40:39 PM] [eWeLink] [M5-3C] could not be added to Homebridge as Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 7a5fa46f-c0f8-4c3b-b908-6b063cf1d1d7 at Bridge.Accessory.addBridgedAccessory (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:594:15).
[9/30/2022, 6:40:39 PM] [eWeLink] [M5-3C] could not be initialised as Cannot read properties of undefined (reading 'eweDeviceId') at new default (file:///homebridge/node_modules/homebridge-ewelink/lib/device/switch-man.js:17:62).
[9/30/2022, 6:40:39 PM] [eWeLink] [M5-3C 1] could not be added to Homebridge as Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 7b03cdeb-dfea-4a93-9b67-d1c9c0c9d7cc at Bridge.Accessory.addBridgedAccessory (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:594:15).
[9/30/2022, 6:40:39 PM] [eWeLink] [M5-3C 1] could not be initialised as Cannot read properties of undefined (reading 'eweDeviceId') at new default (file:///homebridge/node_modules/homebridge-ewelink/lib/device/switch-man.js:17:62).
[9/30/2022, 6:40:39 PM] [eWeLink] [Main Lights] initialising with options {"inchChannels":"","inUsePowerThreshold":0,"logging":"debug","showAs":"default"}.
[9/30/2022, 6:40:39 PM] [eWeLink] [Main Lights] has been reported [offline] via WS.
[9/30/2022, 6:40:39 PM] [eWeLink] [Main Lights] initialised and LAN mode unavailable as not discovered/supported [8:TX3C].
[9/30/2022, 6:40:39 PM] [eWeLink] [Side Lights] initialising with options {"inchChannels":"","inUsePowerThreshold":0,"logging":"debug","showAs":"default"}.
[9/30/2022, 6:40:39 PM] [eWeLink] [Side Lights] has been reported [offline] via WS.
[9/30/2022, 6:40:39 PM] [eWeLink] [Side Lights] initialised and LAN mode unavailable as not discovered/supported [8:TX3C].
[9/30/2022, 6:40:41 PM] [eWeLink] ✓ Setup complete. This plugin has been made with ♥ by bwp91 from the UK!

Hi @KitanaShaw
Please try the newest beta version of the plugin :)

it works now
thank you very much!


tooling-server-configuration not building after adding arquillian-container-bootable

Maybe the bootable container adapter can be added just to the belonging  profile?

Closing via https://github.com/fabiobrz/eap-microprofile-test-suite/pull/27


linker command failed with exit code 1 (use -v to see invocation)

Hi,
I am trying to get Sync to work in my project. I have experience with Carthage for framework dependency so it is my cocoapods premiere (btw. what about the Carthage support? :-).
my Podfile
use_frameworks!

target "em" do
	pod 'Sync'
end

my Pods dir:
Michal-MBP:em kolisko$ v Pods
total 24
drwxr-xr-x  16 kolisko  staff   544 14 čvc 10:27 ./
drwxr-xr-x  14 kolisko  staff   476 14 čvc 09:21 ../
-rw-r--r--@  1 kolisko  staff  6148 14 čvc 10:27 .DS_Store
drwxr-xr-x   5 kolisko  staff   170 14 čvc 09:20 DATAFilter/
drwxr-xr-x   5 kolisko  staff   170 14 čvc 09:20 DATAObjectIDs/
drwxr-xr-x   5 kolisko  staff   170 14 čvc 09:20 DATAStack/
drwxr-xr-x   2 kolisko  staff    68 14 čvc 09:20 Headers/
drwxr-xr-x   2 kolisko  staff    68 14 čvc 00:42 Local Podspecs/
-rw-r--r--   1 kolisko  staff  1262 14 čvc 09:21 Manifest.lock
drwxr-xr-x   5 kolisko  staff   170 14 čvc 09:20 NSDictionary-ANDYSafeValue/
drwxr-xr-x   5 kolisko  staff   170 14 čvc 09:20 NSEntityDescription-SYNCPrimaryKey/
drwxr-xr-x   5 kolisko  staff   170 14 čvc 09:21 NSManagedObject-HYPPropertyMapper/
drwxr-xr-x   5 kolisko  staff   170 14 čvc 09:21 NSString-HYPNetworking/
drwxr-xr-x   4 kolisko  staff   136 14 čvc 09:21 Pods.xcodeproj/
drwxr-xr-x   5 kolisko  staff   170 14 čvc 09:21 Sync/
drwxr-xr-x  11 kolisko  staff   374 14 čvc 09:21 Target Support Files/
Michal-MBP:em kolisko$

Xcode build error output
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/DATAFilter'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/DATAObjectIDs'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/DATAStack'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/NSDictionary-ANDYSafeValue'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/NSEntityDescription-SYNCPrimaryKey'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/NSManagedObject-HYPPropertyMapper'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/NSString-HYPNetworking'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/Sync'

ld: framework not found DATAFilter
clang: error: linker command failed with exit code 1 (use -v to see invocation)

My question is - Is neccessary somehow manually link the DATAFilter framework?
Thank You,
kolisko

SOLVED
it is not a bug - it is my stupidity - is neccessary to open the project 'em' as
open em.xcworkspace
and NOT
open em.xcodeproj

I'm glad you got it fixed! Let me know if there's anything I can do for you :)

Added Carthage support on the latest version.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 2000 ms

Resolved: Bofrost.at performance has improved in 1401f9f after 8 minutes.


Create date.js

I just remembered now, but there's already type == "date". How does this differ?

It's useful for libraries like bootstrap datetimepicker that uses type=text.
Furthermore you can pass a specific format. type=date has only a simpler pattern attribute, and the extra dateiso (that is not documented) does not have a format parameter.
PS: I added this code at the last moment to datebeforenow and dateafternow:
    var valid_date = Parsley._validatorRegistry.validators.date.validateString(value, format);

    if (! valid_date) {
        return true;
    }

My intention is to trigger the date validator. If the date is invalid, the invalid date message of data-parsley-date should be displayed.
Is this correct? I'm not sure it's a good idea, since I'm using a private attribute, and furthermore I'm not sure the message will be displayed.

It's useful for libraries like bootstrap datetimepicker that uses type=text.

You can still use type=text data-parsley-type=date

Furthermore you can pass a specific format.

Not sure what you mean

Furthermore you can pass a specific form
Not sure what you mean

date and the other validators are intended to be used in this way, for example:
data-parsley-date="YYYY-MM-DD"
The format is the moment format. The date is passed to the moment constructor with the format as parameter and the strict parameter set to true. If the date is not in that specific format, the error is displayed. See the moment docs about it.
What about the calling of date validator inside the other validators?

It seems the validator date called inside datebeforenow and dateafternow does not show any error.
Can you please tell me how can I invoke a validator from another validator?

I opened a question on Stackoverflow, can you please help me?

Please, can you tell me if you want to add it to the project?

It's fine to add to /extra, but simply repeat the call to isValid from datebeforenow and dateafternow...

So there's no possibility to call date inside datebeforenow and the other validator, and show the error message of date if the date is wrong?

Well, I've done date.isValid() check as you suggested. I hope that now they can be included in extra.


Scale Kafka CRD instead of the receive adapter

Depends on https://github.com/knative-sandbox/eventing-kafka/pull/138
/hold

/lgtm
/approve

https://github.com/knative-sandbox/eventing-kafka/pull/138 has been merged
/unhold


Consider changing commands to start with DB

LHList -> DBList, etc.
I initially went with LH to fit the name of the plugin, but in practice, it's unnecessarily convoluted. It extends dadbod, so it should be similar to its command. Not to mention, it's much easier to type.
I'm not 100% sure of this change though; comments are welcome.

Don't just change it, deprecate it first.


Editorial request: Add :15 counter to homepage

We don't have any type of counter for when the homepage will be updated next -- I think we need that. It doesn't have to be every 15 secs, but we need to show people when the next update is coming. That has always been a huge thing for readers, as we saw in particular during the primaries.

it's there, but all results are in. so that's why you don't see it.

done


cp: Fail when copying a directory to a file

This addresses the GNU test cp/dir_vs_file. Previously, uutils would ignore failures caused by copying directories to files, and return an exit code of 0 even though the copy didn't suceed. GNU expects an exit code of 1.

Very nice!
Warning: Changes from main: PASS +1 / FAIL -1 / ERROR +0 / SKIP +0


WIP add http to router to be 3.0 compliant

FIX
Description
Add extra http param to make the asgi application compliant with what channels 3.0 expects.
I'm not sure how to test this but I'm happy to discuss it
Fixes # (issue)
Closes #36
Checklist

[ ] Tests are passing
[ ] Documentation has been added or amended for this feature / update

@kaozdl Hey there, thanks for the nudge on this. I wanted to get this in the the release 0.5.0 release so I took it on for myself in the end. You starting on this made me think of an approach to make it possible.

@kaozdl Hey there, thanks for the nudge on this. I wanted to get this in the the release 0.5.0 release so I took it on for myself in the end. You starting on this made me think of an approach to make it possible.


'addNotes' API call

Creates 'addNotes' API call.  If this pull request is accepted, I will also submit code for RTM-CLI to add an 'addNotes' command.

@douglasfsmn Can you update your PR to update the README.md to include the addNotes call

The addNotes() call should already be in the README.md file.  What am I missing?

sorry, my mistake.  Can you commit the corresponding changes to your cli repo, https://github.com/douglasfsmn/rtm-cli ?
Ill clone that and your api repo and start adding my extensions.  thx.

Alan,
My 'dev' branches in both rtm-api and rtm-cli should be good to go. Let me know what else you need from me.
https://github.com/douglasfsmn/rtm-cli/tree/dev
https://github.com/douglasfsmn/rtm-api/tree/dev
Doug
------- Original Message -------
On Thursday, June 16th, 2022 at 10:28 AM, Alan Berezin @.***> wrote:

sorry, my mistake. Can you commit the corresponding changes to your cli repo, https://github.com/douglasfsmn/rtm-cli ?
Ill clone that and your api repo and start adding my extensions. thx.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

FYI - I just submitted a PR to display the tasks notes in rtm-cli https://github.com/dwaring87/rtm-cli/pull/25


Postprocessor for production names and compreffor

Renaming moved from https://github.com/googlei18n/fontmake/pull/69, with optimization added in.

PTAL

LGTM

Compreffor has no setup.py and isn't compatible with Python 3.

Let's disable Compreffor for now, until it's fixed.
Also, theoretically Compreffor does not have to be done in postprocessing, though I think it's fine doing it that way, possibly even saving in a different directory.