text:
Reporting of Test/Conformance coverage for endpoints is not accurate

Request: Correct reporting of test/conformance endpoint coverage
Short description:
At the time this issue was opened, https://apisnoop.cncf.io data was gathered from this test run at revision https://github.com/kubernetes/kubernetes/tree/2e55cf01d121e7
Examples:

listApiextensionsV1CustomResourceDefinition shows as "Not Tested", but it is exercised by the CustomResourceDefinition resources [Privileged:ClusterAdmin] Simple CustomResourceDefinition listing custom resource definition objects works [Conformance] test, which was executed and passed in the source test run
patchApiextensionsV1CustomResourceDefinition shows as "Tested, but not Conformance Tested", but is exercised by the CustomResourceDefinition resources [Privileged:ClusterAdmin] Simple CustomResourceDefinition getting/updating/patching custom resource definition status sub-resource works [Conformance] test, which was executed and passed in the source test run

(there are many other examples, I just picked two representative ones)
If API Snoop metrics are going to be used in merge-blocking CI jobs, they must be accurate.

I suspect it's related to e2e.framework not updating the user-agent for every call those tests are looking at:
https://github.com/kubernetes/kubernetes/commit/229ecedac5084eba6e93973095cc7846893288da
I'm digging in to get confirmation.

The code above doesn't seem to get run to append -- for combining the ginko componentTexts to the useragent for these calls.
These tests hit other operations/endpoints, setting the useragent correctly
select distinct operation_id, useragent from audit_event
 where
   job = '1183553991464718336'
   and useragent like
   'e2e.test%--%[sig-api-machinery] CustomResourceDefinition resources [Privileged:ClusterAdmin] Simple CustomResourceDefinition listing custom resource definition objects works  [Conformance]%'
and operation_id not ilike '%alpha%'
and operation_id not ilike '%beta%'
;
--\df+ load_audit_events

                  operation_id                  |                                                                                useragent
------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 createAuthorizationV1SubjectAccessReview       | e2e.test/v1.17.0 (linux/amd64) kubernetes/2e55cf0 -- [sig-api-machinery] CustomResourceDefinition resources [Privileged:ClusterAdmin] Simple CustomResourceDefinition listing custom resource definition objects works  [Conformance]
 createCoreV1Namespace                          | e2e.test/v1.17.0 (linux/amd64) kubernetes/2e55cf0 -- [sig-api-machinery] CustomResourceDefinition resources [Privileged:ClusterAdmin] Simple CustomResourceDefinition listing custom resource definition objects works  [Conformance]
 createRbacAuthorizationV1NamespacedRoleBinding | e2e.test/v1.17.0 (linux/amd64) kubernetes/2e55cf0 -- [sig-api-machinery] CustomResourceDefinition resources [Privileged:ClusterAdmin] Simple CustomResourceDefinition listing custom resource definition objects works  [Conformance]
 deleteCoreV1Namespace                          | e2e.test/v1.17.0 (linux/amd64) kubernetes/2e55cf0 -- [sig-api-machinery] CustomResourceDefinition resources [Privileged:ClusterAdmin] Simple CustomResourceDefinition listing custom resource definition objects works  [Conformance]
 listCoreV1NamespacedServiceAccount             | e2e.test/v1.17.0 (linux/amd64) kubernetes/2e55cf0 -- [sig-api-machinery] CustomResourceDefinition resources [Privileged:ClusterAdmin] Simple CustomResourceDefinition listing custom resource definition objects works  [Conformance]
 listCoreV1Node                                 | e2e.test/v1.17.0 (linux/amd64) kubernetes/2e55cf0 -- [sig-api-machinery] CustomResourceDefinition resources [Privileged:ClusterAdmin] Simple CustomResourceDefinition listing custom resource definition objects works  [Conformance]
 readCoreV1Namespace                            | e2e.test/v1.17.0 (linux/amd64) kubernetes/2e55cf0 -- [sig-api-machinery] CustomResourceDefinition resources [Privileged:ClusterAdmin] Simple CustomResourceDefinition listing custom resource definition objects works  [Conformance]
(7 rows)

useragent is unset when hitting these endpoints
For calls to these endpoints, the standard e2e.test useragent is still being sent.
I'm unsure of the reason for this.
We need to update the e2e.test framework to correctly transmit the test name, which includes the [Conformance] tag.
SELECT distinct
  audit_event.operation_id
  ,audit_event.useragent
  FROM audit_event
 WHERE
   job = '1183553991464718336'
   AND audit_event.operation_id in (
     'listApiextensionsV1CustomResourceDefinition',
     'patchApiextensionsV1CustomResourceDefinition' )
 ;

                 operation_id                 |                                      useragent
----------------------------------------------+-------------------------------------------------------------------------------------
 listApiextensionsV1CustomResourceDefinition  | e2e.test/v1.17.0 (linux/amd64) kubernetes/2e55cf0
 listApiextensionsV1CustomResourceDefinition  | kube-controller-manager/v1.17.0 (linux/amd64) kubernetes/2e55cf0/metadata-informers
 patchApiextensionsV1CustomResourceDefinition | e2e.test/v1.17.0 (linux/amd64) kubernetes/2e55cf0
(3 rows)

audit log ids / payload to ensure these are indeed coming from the tests in question
I suspect these are the log entries we are looking for, as the number of times they are hit and parameters seem to match what we see in the test source code.
I'd like to understand why the code to set the test name / component texts wasn't called in these three cases, though a direct path isn't obvious at the moment.
SELECT
   distinct audit_event.audit_id,
   -- audit_event.useragent,
   audit_event.operation_id,
   jsonb_pretty(audit_event.request_object)
  FROM audit_event
 WHERE (
   (audit_event.operation_id = 'listApiextensionsV1CustomResourceDefinition'::text)
   OR (audit_event.operation_id = 'patchApiextensionsV1CustomResourceDefinition'::text)
 ) AND audit_event.useragent like 'e2e.test%'
 AND job = '1183553991464718336'
 ;

               audit_id               |                 operation_id                 |                             jsonb_pretty
--------------------------------------+----------------------------------------------+----------------------------------------------------------------------
 39e30adc-c1f2-413b-8805-70d1ca0ae968 | patchApiextensionsV1CustomResourceDefinition | [                                                                   +
                                      |                                              |     {                                                               +
                                      |                                              |         "op": "test",                                               +
                                      |                                              |         "path": "/spec/versions/1/name",                            +
                                      |                                              |         "value": "v3"                                               +
                                      |                                              |     },                                                              +
                                      |                                              |     {                                                               +
                                      |                                              |         "op": "replace",                                            +
                                      |                                              |         "path": "/spec/versions/1/name",                            +
                                      |                                              |         "value": "v4"                                               +
                                      |                                              |     }                                                               +
                                      |                                              | ]
 986055d3-a2c1-43ad-b36a-7b1af663811a | patchApiextensionsV1CustomResourceDefinition | {                                                                   +
                                      |                                              |     "spec": {                                                       +
                                      |                                              |         "versions": [                                               +
                                      |                                              |             {                                                       +
                                      |                                              |                 "name": "v1",                                       +
                                      |                                              |                 "schema": {                                         +
                                      |                                              |                     "openAPIV3Schema": {                            +
                                      |                                              |                         "type": "object",                           +
                                      |                                              |                         "x-kubernetes-preserve-unknown-fields": true+
                                      |                                              |                     }                                               +
                                      |                                              |                 },                                                  +
                                      |                                              |                 "served": true,                                     +
                                      |                                              |                 "storage": false                                    +
                                      |                                              |             },                                                      +
                                      |                                              |             {                                                       +
                                      |                                              |                 "name": "v2",                                       +
                                      |                                              |                 "schema": {                                         +
                                      |                                              |                     "openAPIV3Schema": {                            +
                                      |                                              |                         "type": "object",                           +
                                      |                                              |                         "x-kubernetes-preserve-unknown-fields": true+
                                      |                                              |                     }                                               +
                                      |                                              |                 },                                                  +
                                      |                                              |                 "served": true,                                     +
                                      |                                              |                 "storage": true                                     +
                                      |                                              |             }                                                       +
                                      |                                              |         ]                                                           +
                                      |                                              |     }                                                               +
                                      |                                              | }
 a82e542b-e3ba-4c33-96c9-ad742c1740e1 | listApiextensionsV1CustomResourceDefinition  |
(3 rows)

I spoke with the Testing-Commons subproject, and @timothysc think there is a race condition.
I'll look into wrapping this BeforeEach initialization with a lock.

The test job we currently use runs with --ginko-parallel=30
Discussion on slack https://kubernetes.slack.com/archives/C78F00H99/p1572293122011100

if so, I don't think a lock in beforeeach will help, if multiple tests are sharing the same framework (edited)
and if they aren't sharing the same framework, then I'm not seeing shared data in the BeforeEach method that would be helped by a lock @liggitt

It might make sense to look at another job, or to run the test in isolation to see if these two tests results in the same omissions from the user-agent.

It looks like the injected user agent is only effective for the three clients set up in BeforeEach()
Many tests make use of framework.LoadConfig() directly to obtain client config and set up clients. Those clients will not have the identifying user agent set.

Opened https://github.com/kubernetes/kubernetes/pull/84725 to resolve https://github.com/cncf/apisnoop/issues/271#issuecomment-549360423

Closing this issue, as the linked PR fixes the issue outlined here.

authors: hh liggitt zachmandeville

repo: cncf/apisnoop


text:
Allow add data at repo level

Ideas: Using GraphQL may speed up the script by reducing a lot of bytes transferred that are unused.

Push a new commit to let the formatter happy

source: gharchive/pull-request

repo: cncf/contribcard

license_type: permissive

license_source: github-api


text:
[tw] Update contribute/_index.md for Traditional Chinese

Update contribute/_index.md for Traditional Chinese
Origin content is updated https://github.com/cncf/glossary/pull/2343/files#diff-876ed670f5369381fd171c016547005170366cfd45cae03f3b95c4d4b8f0461d

Get Merged!

source: gharchive/issue

repo: cncf/glossary


text:
Settings and initial contents for Arabic localization

This PR is to initiate Arabic localization based on Issue to https://github.com/cncf/glossary/issues/326
https://github.com/cncf/glossary/blob/main/LOCALIZATION.md guide

[ ]  [languages.ar] section in config.toml

[ ] content/ar/ directory

[ ] i18n/ar.toml

[ ] Some translated documents

Main page:

content/ar/_index.md

Terms:

"Cloud Native Technology": content/ar/cloud_native_tech.md

Others

contribute: content/ar/contribute/_index.md

@same7ammar ! Thank you for the contribution ! :)
We are going to check following tasks in this PR. (target branch is dev-ar)

[ ] 3-1. Adding a new language setting to site configuration https://github.com/cncf/glossary/blob/main/LOCALIZATION.md#3-1-adding-a-new-language-setting-to-site-configuration
[ ] 3-2. Adding a file for site strings https://github.com/cncf/glossary/blob/main/LOCALIZATION.md#3-2-adding-a-file-for-site-strings
[ ] 3-3. Adding a new localization directory https://github.com/cncf/glossary/blob/main/LOCALIZATION.md#3-3-adding-a-new-localization-directory
[ ] 3-4. Minimum required content https://github.com/cncf/glossary/blob/main/LOCALIZATION.md#3-4-minimum-required-content
[ ] 3-5. Check configuration works https://github.com/cncf/glossary/blob/main/LOCALIZATION.md#3-5-check-configuration-works-and-open-a-pr

@same7ammar could you add contribute/_index.md and style-guide/_index.md the to this PR?
to fulfill 3-4. Minimum required content in one PR.
Home: content/en/_index.md -> content/ar/_index.md
How to contribute: content/en/contribute/_index.md -> content/ar/contribute/_index.md
Style guide: content/en/style-guide/_index.md -> content/ar/style-guide/_index.md

@same7ammar
This PR includes commits from main branch which is not ideal. (so, hold)
I guess It happens sometimes if we use Github web UI without caution.
We need to avoid merging commits main branch into dev-xx branch. (unless there is a reasonable intention)
It is to avoid possible merge conflicts among branches and to manage commit history. (One day we will open a PR to merge dev-xx branch into main branch. So, we need to minimize possible conflict zone in advance.)

All approvers in localization teams need to aware of.

Please do not merge (approve) if a PR includes commits which are not related with the PR
Utilize Squash and merge if a PR includes meaningless commit messages.
One day we will open a PR to merge dev-xx branch into main branch. So, we need to minimize possible conflict zone in advance.

So, this PR needs to revert or open again for a cleaner PR.

@same7ammar This PR includes commits and files from main branch that it is not ideal. (so, hold) I guess It happens sometimes if we use Github web UI without caution.
We need to avoid merging commits main branch into dev-xx branch. (unless there is a reasonable intention) It is to avoid possible merge conflicts among branches and to manage commit history. (One day we will open a PR to merge dev-xx branch into main branch. So, we need to minimize possible conflict zone in advance.)

All approvers in localization teams need to aware of.

Please do not merge (approve) if a PR includes commits which are not related with the PR
Utilize Squash and merge if a PR includes meaningless commit messages.
One day we will open a PR to merge dev-xx branch into main branch. So, we need to minimize possible conflict zone in advance.

So, this PR needs to revert or open again for a cleaner PR.

@seokho-son  Thanks a lot for your review, the merge has been reverted.

Current situation. (git log)

@jihoon-seo do you have any advice to make a cleaner doc :)

@seokho-son @same7ammar IMO:
Option 1: Try removing irrelevant commits from your dev-ar branch.

[Git graph as-is]

In your dev environment, run git rebase -i HEAD~12.

Among commits, pick only Arabic-relevant ones and drop others, like:

[Git graph to-be]

Push to your dev-ar branch. You might need to add --force flag to git push command.

Option 2: Open a new PR that only contains Arabic-relevant commits. 😊

Hope this helps!

Thanks @jihoon-seo for the options :) I agree with.
@same7ammar are you familiar with Option 1 that @jihoon-seo suggested ?
If you are not confident, I don't mind Option 2: Open a new PR that only contains Arabic-relevant commits.
It's up to you :)

@seokho-son @same7ammar IMO:
Option 1: Try removing irrelevant commits from your dev-ar branch.

[Git graph as-is]

In your dev environment, run git rebase -i HEAD~12.

Among commits, pick only Arabic-relevant ones and drop others, like:

[Git graph to-be]

Push to your dev-ar branch. You might need to add --force flag to git push command.

Option 2: Open a new PR that only contains Arabic-relevant commits. 😊
Hope this helps!

@jihoon-seo Thank you so much 👍 . @seokho-son  Could you Please have a look :)

@same7ammar Could you remove the highlighted commit too ?

@same7ammar
Please don't be discouraged with this commit history issue. :)
This PR will be a good example how to handle commits for l10n branches for every localization teams!
(and this experience will be your knowledge)

Other commits in main have been included here.

authors: jihoon-seo same7ammar seokho-son


text:
Adding Swisscom as KCSP

Pre-submission checklist:
Please check each of these after submitting your pull request:

[x] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[x] Is your project closed source or, if it is open source, does your project have at least 300 GitHub stars?
[x] Have you picked the single best (existing) category for your project?
[x] Does it follow the other guidelines from the new entries section?
[x] Have you included a URL for your SVG or added it to hosted_logos and referenced it there?
[x] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[x] Does your project/product name match the text on the logo?
[x] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[ ] ~15 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

Deploy preview for landscape ready!
Built with commit 4521b7239785efa820dc946fdfbb0317e9290b1a
https://deploy-preview-2099--landscape.netlify.app

LGTM

authors: CNCF-Bot ErinThacker

repo: cncf/landscape


text:
On profile don't show Website value

On view profile don't show value for field website.
Reviewing the view views.backend.profile.partials.form.social-networks.blade.php input url is not have value.
Set $data['url'] for working.

@CesaRamirez The latest release(v3.0.2) is out and should solve this issue. Feel free to close it out when you see it work! 👍
Run php artisan canvas:update from a Terminal in your project root to pull in the change.

Great, but I don't see the change on last commit

@CesaRamirez My mistake, apologies. Made a couple other changes and thought I had put this one in as well. Doing it right now.

Ok, v3.0.3 will address your bug. Give it a try!

Yeah! It's Working :+1:

authors: CesaRamirez austintoddj

repo: cnvs/easel

license: mit

license_source: bigquery


text:
feat: add troubletrees to proto

This PR corresponds with the changes in the Bluehenge Troubletree PR.

This PR is not linked to a task in ClickUp.  Please add the task ID starting with "CU-" (e.g. CU-1umz2q2) as the first word in the title.
To create a new task in the list click here.
Review task created in list 49208581

This PR is not linked to a task in ClickUp.  Please add the task ID starting with "CU-" (e.g. CU-1umz2q2) as the first word in the title.
To create a new task in the list click here.
Review task created in list 49208581

authors: cobaltjenkins morleyd

repo: cobaltspeech/proto


text:
Bump dependencies

Changed dependencies
No dependencies bumped.
Requirement changes
No requirements changed.

whyyy did i update npm to v10 :sob:

license: MIT


text:
phantomjs click user_agent

use the  phantomjs ，
browser = Browser('phantomjs',user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36")
browser.find_by_tag('a').first.click()
BUT
the user-agent of the newly opened page is not my set.

I'm not able to reproduce this, user_agent is set as expected.
Here's the code I used to test
from splinter import Browser

with Browser('phantomjs', user_agent='my user agent string') as browser:
    url = "http://www.whatsmyua.com/"
    browser.visit(url)
    if browser.status_code.is_success():
        browser.driver.save_screenshot('screenshot.png')
    else:
        print('page failed to load.')
    browser.quit()

authors: bmcculley wenson

repo: cobrateam/splinter


text:
Donation not work

Hi Cocco,
i'm run this command : python3 -m bin.mining.closeMines {user address}
close mines is done but there is error, i think this is becouse donation, like this the log:
transactionHash -> HexBytes('0x0f2bab25cd9487170bb989954a818dabd3889a1b330de41e65e49b7748df3563')
transactionIndex -> 8
type -> '0x1'
}
src.common.logger - DEBUG - Spent 1.61639 TUS
src.common.logger - INFO - Mine 210206 closed correctly
/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/web3/contract.py:1166: UserWarning: The log with transaction hash: HexBytes('0x0f2bab25cd9487170bb989954a818dabd3889a1b330de41e65e49b7748df3563') and logIndex: 12 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
i'm already run this command: python3 -m src.tests.testConfig
'>>> USERS & TEAMS'
[{'address': '0xFxxxxx',
'closeLootMaxGasInGwei': inf,
'closeMineMaxGasInGwei': inf,
'mineMaxGasInGwei': inf,
'reinforcementMaxGasInGwei': inf,
'reinforcementMaxPriceInTus': 25.0,
'reinforcementMaxPriceInTusWei': 25000000000000000000,
'staggeringDelayInMinutes': 35,
'staggeringGroups': [],
'teams': [{'battlePoints': None,
'groupNumber': 0,
'id': xxxxx,
'lootStrategies': ['LowestBp'],
'reinforceStrategies': ['HighestBpHighCost'],
'reinforcementToPick': 1,
'task': 'mine',
'teamNumber': 1,
'userAddress': '0xFxxxxxx'}]}]

NODE URI
https://subnets.avax.network/swimmer/mainnet/rpc
DONATE PERCENT
1.0
DONATE FREQUENCY
10
NOTIFICATIONS
{'instantMessage': {'enable': True}}
TELEGRAM

can u help me?
Thanks,

Hello @bahrie127 and welcome to the community!
Is this the error you are referring too?
/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/web3/contract.py:1166: UserWarning: The log with transaction hash: HexBytes('0x0f2bab25cd9487170bb989954a818dabd3889a1b330de41e65e49b7748df3563') and logIndex: 12 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.

If so, it is just a warning: nothing to worry about.
Otherwise, please let us know what the error is.
Cheers,
Cocco


text:
backupccl: support restoring views with into_db

PR: https://github.com/cockroachdb/cockroach/pull/24555
From release notes:

It is now possible to RESTORE views when using the into_db option. [#24555][#24555] {% comment %}doc{% endcomment %}

As discussed with David, this is already documented correctly. (#24555 is a bug fix)

authors: Amruta-Ranade jseldess

repo: cockroachdb/docs


text:
cherrypick-2.0: sql: fix qualified index name resolution

PR: https://github.com/cockroachdb/cockroach/pull/24817
From release notes:

Added more ways to specify an index name for statements that require one (e.g., DROP INDEX, ALTER INDEX ... RENAME, etc.), improving PostgreSQL compatibility. [#24817][#24817] {% comment %}doc{% endcomment %}

Closing as this is for a very old, now-unsupported version of crdb.


text:
popup bottom right corner asking for docs feedback is stuck open (can’t click a ratings choice)

FYI the popup bottom right corner asking for docs feedback is stuck open (can’t click a ratings choice). Using Chrome .

We're looking into an alternative tool for this survey functionality. Closing this for now.

authors: dweatherbee jseldess


text:
DOC-1511: Added off-peak recommendation for secondary indexes

Added recommendation to limit secondary index operations during off-peak hours

This change is

@ericharmeling TFTR!

authors: cockroach-teamcity nickvigilante


text:
Mention OCSP-enabled setup as preferred for certificate rotation

Hi,
This PR clears up a couple of things I bumped into while setting up mTLS-enabled setup for CockroachDB.

Mention OCSP on the "Rotate Certificates" page, it is not clear that rotated certificates will still be valid and without revocation, rotation doesn't really make a lot of sense.
Point out that "cluster locked-out" behavior with unavailable OCSP server can be changed using lax mode on the "Create Security Certificates using a Custom CA" page.

I hope that these additions make sense and will help other people to figure out the setup faster.
Thank you for your work!

This change is

authors: alexey-medvedchikov cockroach-teamcity


text:
docs: suggest running a locked install when using cargo

Just tried cargo install cocogitto and it failed because it tried to use deps that were too new 😄

I noticed and fixed the problematic dep on the latest PR but we shall indeed recommend a locked build.

authors: oknozor tranzystorek-io

repo: cocogitto/cocogitto


text:
Enter the guest VMSA from a consistent place

Ensure that every entry to the guest VMPL occurs from the same point in the execution loop.  This will become important in the future when REFLECT_VC is enabled, and will be critical on non-SNP platforms that do not use simple GHCB calls for guest entry.

I did some testing again with this change and run into a boot issue with the Linux kernel. At boot, it dies with this message:
[    0.887221][    T2] ------------[ cut here ]------------^M
[    0.888472][    T2] Failed to validate address ffff888100a00000 ret=0xffffffea (-22)^M
[    0.888477][    T2] WARNING: CPU: 4 PID: 2 at arch/x86/kernel/sev-shared.c:1314 pvalidate_pages+0x1f3/0x430^M

Right after that the kernel calls the GHCB Terminate call to kill the VM. Debugging showed that the most likely reason for this is that the SVSM does not clear the pending bit in the CAA.
I have not yet figured out how that can happen, probably Linux and the SVSM disagree about the actual CAA location. Any ideas? It still boots fine without this change.

I think I tracked it down. The problem is that there is no request processing between the halt() call and the call to run_vmpl(). Here are the steps:

SVSM boots up AP; AP has no guest VMSA and goes to HLT
SVSM on BSP launches firmware and that boots through to the Linux kernel
Linux kernel sets a VMSA for the AP via SVSM calls on BSP
Hypervisor starts executing the AP in guest VMPL (note that VMPL-0 is still at the HLT instruction)
AP does an SVSM call
SVSM on AP comes out of HLT and goes straight back to guest VMPL, without processing the request
Linux finds the pending bit still set and panics.

I think I tracked it down. The problem is that there is no request processing between the halt() call and the call to run_vmpl(). Here are the steps:

SVSM boots up AP; AP has no guest VMSA and goes to HLT
SVSM on BSP launches firmware and that boots through to the Linux kernel
Linux kernel sets a VMSA for the AP via SVSM calls on BSP
Hypervisor starts executing the AP in guest VMPL (note that VMPL-0 is still at the HLT instruction)
AP does an SVSM call
SVSM on AP comes out of HLT and goes straight back to guest VMPL, without processing the request
Linux finds the pending bit still set and panics.

Thanks for debugging this!  I understand the issue and should be able to provide a fix soon.

authors: joergroedel msft-jlange

repo: coconut-svsm/svsm


text:
Cannot read properties of undefined (reading 'valueController')

Hello, I have some problems to dinamically update the sliders min and max values.
Working on "tweakpane": "^4.0.1".
I was updating the values as described in this previous issue.
In particular this is my simplified code:
let minValue = -10;
let maxValue = 10;
const stc = sliderInputs.controller_.valueController;
const sc_props = stc.sc_.sliderProps;
sc_props.set("minValue", minValue);
sc_props.set("maxValue", maxValue);

The values are not being updated, and I get the following error:
Uncaught TypeError: Cannot read properties of undefined (reading 'valueController')
    at updateBboxFolder (Gui.svelte:262:49)
    at SliderBladeApi.<anonymous> (Gui.svelte:334:9)
    at Object.handler (tweakpane.js:7424:13)
    at tweakpane.js:154:22
    at Array.forEach (<anonymous>)
    at Emitter.emit (tweakpane.js:153:19)
    at Object.handler (tweakpane.js:7394:27)
    at tweakpane.js:154:22
    at Array.forEach (<anonymous>)
    at Emitter.emit (tweakpane.js:153:19)

There is a new updated way to do this? Perhaps without using private attributes?
Thank you in advance for your support.

Update
I fixed in this way:
const stc = sliderInputs[i].controller.valueController;
const sc = stc.sliderC_.props.valMap_;
sc.min.value_ = properties[i].min;
sc.max.value_ = properties[i].max;

But I keep using private methods...

Tweakpane v4 creates SliderInputBindingApi for slider inputs, so you can access its min and max directly:
const pane = new Pane();
const i = pane.addBinding(params, 'foo', {
  min: 0,
  max: 1,
});

i.min = -100;
i.max = 100;

API:
https://tweakpane.github.io/docs/api/classes/SliderInputBindingApi.html

That solved my issue.
Thank you so much for the fast answer.
Fixed previous code:
let minValue = -10;
let maxValue = 10;
sliderInputs.min = minValue;
sliderInputs.max = maxValue;

authors: bolopenguin cocopon

repo: cocopon/tweakpane


text:
Update overview.md

Description

Include a summary of the new content you're adding or the reason for the change.
Include relevant context.
Do not link to work items.
Any PNG images should be compressed using Tiny PNG or equivalent.

Type of change
Please delete options that are not relevant.

[ ] New document(s)/updating existing
[ ] Fixes
[ ] Styling
[ ] Bug fix (non-breaking change which fixes an issue)

Reviews and merging
You are responsible for getting your PR merged. Address review comments promptly and make sure to merge the PR when ready.
Feel free to 'Enable automerge' - your PR will automatically merge when accepted and passing the build.

not what you planned, I assume? :D

Thats a shame

authors: mcclowes pzaichkina

repo: codatio/codat-docs


text:
getting Error in angular 5.0

HI, I am converting my angular project form 4.3 to 5.0 ,, I installed the"angular2-logger": "^0.6.0",
but its not working in 5.0
I got below error.

ERROR in ./node_modules/angular2-logger/app/core/level.ts
Module build failed: Error: C:\Users\ksath\Documents\POC\ProjectCli\newProject\node_modules\angular2-logger\app\core\level.t
s is not part of the compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
at AngularCompilerPlugin.getCompiledFile (C:\Users\ksath\Documents\POC\ProjectCli\newProject\node_modules@ngtools\webpa
ck\src\angular_compiler_plugin.js:624:23)
at plugin.done.then (C:\Users\ksath\Documents\POC\ProjectCli\newProject\node_modules@ngtools\webpack\src\loader.js:467:
39)
@ ./node_modules/angular2-logger/core.js 6:9-36
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts

can you please help.

Somewhat similar error but on angular 4.4.4.
ERROR in ./node_modules/angular2-logger/app/core/level.ts
Module build failed: Error
    at new FatalError (>>path<<\sources\node_modules\tslint\lib\error.js:31:23)
    at Linter.getSourceFile (>>path<<\sources\node_modules\tslint\lib\linter.js:204:23)
    at Linter.lint (>>path<<\sources\node_modules\tslint\lib\linter.js:72:31)
    at lint (>>path<<\sources\node_modules\tslint-loader\index.js:70:10)
    at Object.module.exports (>>path<<\sources\node_modules\tslint-loader\index.js:140:3)
 @ ./node_modules/angular2-logger/core.js 6:9-36
 @ ./src/app/module.ts
 @ ./src/main.ts
 @ multi (webpack)-dev-server/client?http://docker.for.win.localhost:4200 ./src/main.ts

ERROR in ./node_modules/angular2-logger/app/core/logger.ts
Module build failed: Error
    at new FatalError (>>path<<\sources\node_modules\tslint\lib\error.js:31:23)
    at Linter.getSourceFile (>>path<<\sources\node_modules\tslint\lib\linter.js:204:23)
    at Linter.lint (>>path<<\sources\node_modules\tslint\lib\linter.js:72:31)
    at lint (>>path<<\sources\node_modules\tslint-loader\index.js:70:10)
    at Object.module.exports (>>path<<\sources\node_modules\tslint-loader\index.js:140:3)
 @ ./node_modules/angular2-logger/core.js 7:9-37
 @ ./src/app/module.ts
 @ ./src/main.ts
 @ multi (webpack)-dev-server/client?http://docker.for.win.localhost:4200 ./src/main.ts

ERROR in ./node_modules/angular2-logger/app/core/providers.ts
Module build failed: Error
    at new FatalError (>>path<<\sources\node_modules\tslint\lib\error.js:31:23)
    at Linter.getSourceFile (>>path<<\sources\node_modules\tslint\lib\linter.js:204:23)
    at Linter.lint (>>path<<\sources\node_modules\tslint\lib\linter.js:72:31)
    at lint (>>path<<\sources\node_modules\tslint-loader\index.js:70:10)
    at Object.module.exports (>>path<<\sources\node_modules\tslint-loader\index.js:140:3)
 @ ./node_modules/angular2-logger/core.js 8:9-40
 @ ./src/app/module.ts
 @ ./src/main.ts
 @ multi (webpack)-dev-server/client?http://docker.for.win.localhost:4200 ./src/main.ts

@Sathishchary I ran into the same problem after upgrading to Angular 5.x. If you go to node_modules\angular2-logger\app\core and remove all of the .ts files in there it will temporarily fix the problem. We need to get a build of this library without the source included in it to fully fix the problem.

I'm not going to have time for a while to go into this, but I'll review PRs if receive any. However if angular was what got upgraded and then it started failing, then it sounds to me like an Angular issue.

I will try and get some time this weekend to help out if I can. It appears that Angular is following Typescripts standards for tsconfig more strictly (blog entry and there is also more conversation about the problem (as well as some things you can try and do to solve it) here. @langley-agm Thanks for putting this library together, I use it a ton, and am happy to help out if I can.

Even I have the same error

Probably related angular issue https://github.com/angular/angular-cli/issues/8284#issuecomment-341417325

You have TS files in your node_modules. This really goes against how libraries should be packaged: libraries should never ship their source .ts files.

"This really goes against how libraries should be packaged: libraries should never ship their source .ts files"
I'm not so sure who started stating this crazy idea as a fact, but I'm pretty sure it only started until Typescript started making things harder by not defining standards, not only npm is way newer than other builders to call the shots at what the standard should be but I haven't seen a single source from them stating something like that and many other builders allow you to select whether you want the source included or not, why would this option exist if libraries should never ship their source files?
For reference if you install RxJS you'll see the src files and Angular uses RxJS, or at least they did last time I checked.
Just to clarify, I'm not against removing them, I don't believe that's the correct solution because I've found it incredibly helpful in the past to have the src files in my third party libraries. Whoever I do not have the time to review this atm to find a real solution and the fact that they keep changing the structure/standards every couple of months doesn't help. However, like I mentioned before anyone's welcome to publish a PR and I'll take a look at it even if it fixes it by removing the src files.

As the error states, you need to include a reference to the Typescript files that are imported by angular2-logger so TypeScript is aware of them. Edit the tsconfig.json (or tsconfig.app.json if you're using the angular cli) to include the following snippet:
"include": [
    "../node_modules/angular2-logger/app/core/level.ts",
    "../node_modules/angular2-logger/app/core/logger.ts",
    "../node_modules/angular2-logger/app/core/providers.ts",
    "**/*.ts"
],

@Aitchy13  I tried this. Doesnt work for me.

Worked for me.

Hi, @Aitchy13  workaround worked for me too. Thanks a lot.

@FreezeSoul  Aitchy13's solution is worked for me,not only 'ng serve',but also 'ng build --prod --aot',maybe I add extra solution from stack overflow ,maybe it helps

Solution that worked for me.
the installed package has a dist dir node_modules/angular2-logger/dist/es6/.
in package.json node_modules/angular2-logger/package.json main is set to
"main": "./dist/cjs/core.js",

change this to
"main": "./dist/es6/core.js",

Change all the import statements for  Logger to
import { Logger } from 'angular2-logger';

Compile and run and stay happy.
I don't know wheather this is a typo or delibrate decision, but this works event for ng build --prod

Modifying the package.json wasn't a suitable solution for us.
So we fixed it by importing Logger like so
import { Logger } from 'angular2-logger/dist/es6/core';

Aitchy13 worked for me, your really help me

authors: Aitchy13 Eve-1995 MitekDev-Mcalvin RilRil Sathishchary abngal appdevchicago elendil-software langley-agm pankajsri03 prudvi pyarun ricforaf wojtuch


text:
VS crash on CC0016

Visual studio crashes when refactoring of CC0016 runs on the following code
void Foo(Func<int, bool> isZero)
{
    if (1 == 1 && isZero(2))
    {
        // Some Stuff
    }
}

I am not getting CC0016 raised on this method:

It is exiting on line 47:
https://github.com/code-cracker/code-cracker/blob/master/src/CSharp/CodeCracker/Design/CopyEventToVariableBeforeFireAnalyzer.cs#L47
The condition it is hitting to exit is symbol is IParameterSymbol. CC0016 will not be raised for parameters.
Are you using the latest VS (CTP 6)?
I am closing this for now, please let me know how can I reproduce it so we can fix it.

repo: code-cracker/code-cracker


text:
Fix bug in CC0008 when accessing declaring variable

Closes #324

Coverage increased (+0.02%) to 89.96% when pulling cda7e65f30c5dda882fac163456df297fda346cb on giggio:fix-cc0008 into b66ec13b3b120f3e8413d18d0e1a65ea42b39cf1 on code-cracker:master.

authors: coveralls giggio


text:
[MODULE] - Spelling Correction (Generator)

Description
This module looks through the spelling errors in the text and returns the corrected text. It makes the use of nltk library and its corpora like words and brown, which when combined, contains more than a million words. This makes the execution of the module take up a few seconds.
Implementation
from collections import Counter
import nltk
from nltk.metrics.distance import jaccard_distance
from nltk.util import ngrams
from nltk.corpus import words, brown

words = words.words()
brown = brown.words()
word_list = words + brown
text = "This text contaisn some speling errors."
text_list = text.replace(',', '').replace('.','').lower().split()
text_list_original = text.replace('"', '').split()
misspelled = []
for i, _ in enumerate(text_list):
    if text_list[i] not in word_list and text_list_original[i] not in word_list:
        misspelled.append(text_list_original[i])

suggestions = []
for word in misspelled:
    temp = [(jaccard_distance(set(ngrams(word, 2)), set(ngrams(w, 2))), w) for w in word_list if w[0] == word[0]]
    suggestions.append([i[1] for i in sorted(temp, key=lambda val:val[0])[0:15]])

for i, _ in enumerate(text_list):
    for j, _ in enumerate(misspelled):
        count = Counter(suggestions[j])
        if text_list_original[i] == misspelled[j]:
            text_list_original[i] = count.most_common(1)[0][0]

text_corr = " ".join(text_list_original)

print(text_corr)

Additional context
Add any other context or screenshots about the feature request here.

The spelling correction is also currently not working. When running the module, it returns an error. Other endpoints are not affected by this, however.

authors: LeonardPuettmann divyanshukatiyar

repo: code-kern-ai/bricks


text:
bugfix

The legal hold API endpoints for listing memberships and matters were formatted a little differently such that they returned a list of items without additional data.  This was throwing an error in the get_all_pages() method.  Adjusting this method so that it will return the response data if a key is not provided fixes this.

CLA will fail because the target branch isn't main

CLA will fail because the target branch isn't main

I'm actually pretty sure that it's just failing all the time, there's something else going on with it.

I think the mocks in a couple of the legal hold unit tests do not currently reflect reality and this is making some tests fail.

Oops yeah I saw that, was in a meeting for a while but they should be good now


text:
Replace Rinkeby with Goerli everywhere, because Rinkeby is getting de…

…precated.

Is 'https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161' correct?

repo: codeSTACKr/minter-dapp


text:
Get File is not working

https://res.cloudinary.com/codebar-solutions-ag/raw/upload/application-staging-vanta-ch/assets/mix-manifest.json

Fehlt da der zweite ://?

Der Filedriver funktioniert nur mit relativen Pfaden. Versuch es mal mit Storage::get('assets/mix-manifest.json');.
Wenn du den ganzen Pfad hast, kannst du es mit file_get_contents($path) versuchen.

authors: StanBarrows SuddenlyRust

repo: codebar-ag/laravel-flysystem-cloudinary


text:
Suggestion - Wall hit indication

There's been times where I feel like I shouldn't get the speed penalty from hitting the wall, but still do. I was wondering if there could be some kind of color change for the wheels when you hit the wall. (Like pink maybe? That hasn't been used yet.)
Some other features of this that would be cool is a per wheel color change based on where you hit, or a percentage of acceleration penalty based on how hard you hit the wall. I don't know the API though, so maybe those aren't possible.
A con to putting too much time into this would be that if you hit the wall, you hit the wall and you're going to restart anyway. You usually don't need to know how hard you hit it.

It sounds like these features would only be available through the game's physics code, which I am not touching to avoid people using that research for nefarious purposes (plus the fact that any such code would be very unstable across game updates).
As such, this is likely not possible unless Nadeo adds the necessary information to their visual data classes.

repo: codecat/tm-dashboard


text:
new contributor

Added me to the contributors list

Thanks for your PR @Pavankalyan0105, welcome to the community!!

Thanks for your PR @Pavankalyan0105, welcome to the community!!

repo: codeforcauseorg/pledge


text:
Strange message about temp library when connecting to power server

👉🏻 After latest update few days ago I keep receiving this warning when connecting to one of my power server
Code for IBM i will not function correctly until the temporary library has been corrected in the settings.
In my settings temporary tab i have

what's wrong with this?

Context
Version

Code for IBM i version
2.6.1

Visual Studio Code version
1.85.1

Operating System
win32_x64

Active extensions
COBOL (cobol): 9.12.14
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.4.0
Db2 for IBM i (vscode-db2i): 0.6.0
ESLint (vscode-eslint): 2.4.2
Emmet (emmet): 1.0.0
Error Lens (errorlens): 3.16.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
GitHub (github): 0.0.1
HTML CSS Support (vscode-html-css): 1.13.1
IBM i Notebooks (vscode-ibmi-notebooks): 0.0.6
IBM i Project Explorer (vscode-ibmi-projectexplorer): 2.6.0
IntelliSense for CSS class names in HTML (html-css-class-completion): 1.20.0
JSON Language Features (json-language-features): 1.0.0
Merge Conflict (merge-conflict): 1.0.0
Node Debug Auto-attach (debug-auto-launch): 1.0.0
TODO Highlight (vscode-todo-highlight): 1.0.5
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0

Remote system

Setting
Value

IBM i OS
V7R3M0

Tech Refresh
12

CCSID
65535

SQL
Disabled

Source dates
Disabled

Enabled features

/usr/bin
/QSYS.lib/ILEDITOR.lib
/QSYS.LIB

attr
GENCMDXML.PGM
QZDFMDB2.PGM

iconv
GETNEWLIBL.PGM

ls

setccsid

tar

Shell env

Variants
{
  "american": "#@$",
  "local": "��$"
}

Errors
[
  {
    "command": "/QOpenSys/usr/bin/qsh",
    "code": 1,
    "stderr": "CPC9801:  Oggetto MXCMD2RUN di tipo *DTAQ creato nella libreria QTEMP.\nCPC9801:  Oggetto MXRSNDMG di tipo *DTAQ creato nella libreria QTEMP.\nCPF2111:  La libreria ILEDITOR esiste gi�.",
    "cwd": "/home/userx"
  },
  {
    "command": "export BUILDLIB=\"QGPL\" && export CURLIB=\"QGPL\" && export USERNAME=\"USERX\" && export HOST=\"PowerServerLND\" && export HOME=\"/home/USERX\" && export LIBLS=\"MY_LIBRARY_LIST\" && env",
    "code": 1,
    "stderr": "bsh: BUILDLIB=QGPL: is not an identifier",
    "cwd": "/home/userx"
  }
]

Please share the contents of your Code for IBM i output channel after connecting to the system where you get this message.

.: echo "This should be the only text!"
{
"code": 0,
"signal": null,
"stdout": "This should be the only text!",
"stderr": ""
}
.: echo $HOME && cd && test -w $HOME
{
"code": 0,
"signal": null,
"stdout": "/home/USERX",
"stderr": ""
}
/home/USERX: /QOpenSys/usr/bin/qsh
liblist
{
"code": 0,
"signal": null,
"stdout": "MAXSYS      SYS\nQSYS        SYS\nQSYS2       SYS\nQHLPSYS     SYS\nQUSRSYS     SYS\nQSHELL      PRD\nQGPL        USR\nQTEMP       USR\nJGPL        USR\nACGGAA      USR",
"stderr": ""
}
/home/USERX: /QOpenSys/usr/bin/qsh
system  "CRTLIB LIB(ILEDITOR) TEXT('Code for i temporary objects. May be cleared.')"; if [[ $? -ne 0 ]]; then exit 1; fi
{
"code": 1,
"signal": null,
"stdout": "",
"stderr": "CPC9801:  Oggetto MXCMD2RUN di tipo *DTAQ creato nella libreria QTEMP.\nCPC9801:  Oggetto MXRSNDMG di tipo *DTAQ creato nella libreria QTEMP.\nCPF2111:  La libreria ILEDITOR esiste gi�."
}
/home/USERX: [ -d "/tmp" ]
{
"code": 0,
"signal": null,
"stdout": "",
"stderr": ""
}
/home/USERX: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')"
select OS_VERSION || '.' || OS_RELEASE as VERSION from sysibmadm.env_sys_info
/home/USERX: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')"
select max(ptf_group_level) as HIGHEST_DB2_PTF_GROUP_LEVEL from qsys2.group_ptf_info where PTF_GROUP_DESCRIPTION like 'DB2 FOR IBM I%' and ptf_group_status = 'INSTALLED';
/home/USERX: ls $HOME/.vscode/codeforiserver-1.4.5.jar
{
"code": 4,
"signal": null,
"stdout": "DB2>\n  ?>\n\n **** CLI ERROR *****\n         SQLSTATE: 42601\nNATIVE ERROR CODE: -104\nToken | non valido. Token validi: + - AS .",
"stderr": ""
}
{
"code": 0,
"signal": null,
"stdout": "/home/USERX/.vscode/codeforiserver-1.4.5.jar",
"stderr": ""
}
{
"code": 0,
"signal": null,
"stdout": "DB2>\n\nHIGHEST_DB2_PTF_GROUP_LEVEL \n----------------------------\n                          29\n\n  1 RECORD(S) SELECTED.\n\nDB2>",
"stderr": ""
}

@worksofliam I know why. Look at stderr from CRTLIB:
"stderr": "CPC9801: Oggetto MXCMD2RUN di tipo *DTAQ creato nella libreria QTEMP.\nCPC9801: Oggetto MXRSNDMG di tipo *DTAQ creato nella libreria QTEMP.\nCPF2111: La libreria ILEDITOR esiste gi�."

@lgiammattei 's system must have either a custom CRTLIB or an exit program that creates these two DTAQ before the library creation gets attempted. This adds more messages in stderr and our logic here is flawed: https://github.com/codefori/vscode-ibmi/blob/7c7dfb42d6cbf7cf7cb43c36072a206ed32dbf33/src/api/IBMi.ts#L356
I'll fix that 😉

@sebjulliand this system works in a disaster recovery scenario, every time a library is created it is replicated on the secondary site

@lgiammattei Thanks for the info, that makes sense. The PR mentioned above will fix this issue.

authors: lgiammattei sebjulliand worksofliam

repo: codefori/vscode-ibmi


text:
Incorporate NO VOTES into ZoneCandidateList.

The puzzle 1-77a0075b from #1 has to be resolved:
https://github.com/codeforthailand/election-live/blob/c441e46ab4a8e6c815c4d70c29aa5a4e9b7c94b3/src/pages/index.js#L285-L285
The puzzle was created by Thai Pangsakulyanont on 22-Mar-19.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

From design:
ให้ถือเป็นผู้สมัครอีกคนนึงไปเลย (Re-use component CandidateStatsRow) ใช้ชื่อพรรคว่า “ไม่เลือกใคร” และซ่อนช่ือผู้สมัครและหมายเลขผู้สมัคร (maybe send props.candidateNumber === 0 and use that to determine whether to show/hide)

I will take this one.

The puzzle 1-77a0075b has disappeared from the source code, that's why I closed this issue.

authors: 0pdd dtinth parnurzeal

repo: codeforthailand/election-live


text:
fix ci pipelines

I think the issue was caused by a new version of poetry being released that no longer parsed our lock files. I upgraded my poetry to 1.2.2 and regenerated the lock files.

Codecov Report
Base: 54.26% // Head: 45.84% // Decreases project coverage by -8.42% :warning:

Coverage data is based on head (98f2ad2) compared to base (a7eac7c).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #144      +/-   ##
==========================================
- Coverage   54.26%   45.84%   -8.43%
==========================================
  Files           8       28      +20
  Lines         164      999     +835
  Branches       13       93      +80
==========================================
+ Hits           89      458     +369
- Misses         75      540     +465
- Partials        0        1       +1

Impacted Files
Coverage Δ

...lls-rpg-demo/src/seagulls/rpg_demo/_rpg_scene_2.py
31.03% <0.00%> (ø)

...gulls-rpg-demo/src/seagulls/rpg_demo/_character.py
28.15% <0.00%> (ø)

...rpg-demo/src/seagulls/rpg_demo/_homes_and_trees.py
31.16% <0.00%> (ø)

...s-rpg-demo/src/seagulls/rpg_demo/_fit_to_screen.py
60.86% <0.00%> (ø)

...s-cli/src/seagulls/seagulls_cli/_runtime_client.py
50.00% <0.00%> (ø)

...gulls-rpg-demo/src/seagulls/rpg_demo/_rpg_scene.py
0.00% <0.00%> (ø)

...gulls-rpg-demo/src/seagulls/rpg_demo/_debug_hud.py
50.00% <0.00%> (ø)

...eagulls-rpg-demo/src/seagulls/rpg_demo/_session.py
64.70% <0.00%> (ø)

...ulls-rpg-demo/src/seagulls/rpg_demo/_cli_plugin.py
69.23% <0.00%> (ø)

...lls-cli/src/seagulls/seagulls_cli/_di_container.py
70.27% <0.00%> (ø)

... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: Zeelot codecov-commenter

repo: codeghetti/seagulls-py


text:
能否支持解析普通速度的下载链接

像我的需求是,不去客户端下载,小文件其实对下载速度没要求的.
大文件就正常开svip嘛.

是可以识别普通账号的，普通账号解析的自然就是普通链接。不过速度EMMM.....

感谢回复。我是普通百度账号，但并未获取到普通速度链接；我的操作步骤和相关截图如下：
1.本地网盘点击就是加速启动，并未获取到普通链接。而是提示脚本维护，需要到web页操作。网页截图如下

2.在web页提示账号不足，换个时间段再访问

感谢回复。我是普通百度账号，但并未获取到普通速度链接；我的操作步骤和相关截图如下： 1.本地网盘点击就是加速启动，并未获取到普通链接。而是提示脚本维护，需要到web页操作。网页截图如下  2.在web页提示账号不足，换个时间段再访问

你这个是就是加速那边的业务了，不在我开源项目管辖内。
用我的演示站点吧:https://www.uy5.net/discuss/19115.html

原来是来到了克隆窝这边的开源项目。。。误打误撞发现一个宝藏平台，赞


text:
Seed Command in document Not found

Hello the Seed command for creating a seeder file not found in the document. I was doing try and error to get it and finally I get two commands that is not documented in the document.
This command lines are

php spark make:seeder file_name

php spark db:create db_name

Please try include this to the document.

I don't know how to contribute to codeigniter else i suppose to do it by myself without even giving anyone headache to this

See the current in-progress User Guide:
https://codeigniter4.github.io/CodeIgniter4/cli/cli_generators.html#make-seeder

See the current in-progress User Guide:
https://codeigniter4.github.io/CodeIgniter4/cli/cli_generators.html#make-seeder

Currently, we do not have documentation for db:create as it is new.

Currently, we do not have documentation for db:create as it is new.

@ChibuezeAgwuDennis please see doc fix for db:create. For the make:seeder, doc is already in the latest develop.

@ChibuezeAgwuDennis please see doc fix for db:create. For the make:seeder, doc is already in the latest develop.

authors: ChibuezeAgwuDennis kenjis paulbalandan


text:
docs: add highlights for v4.2.0

Description

add Highlights in changelog v4.2.0

Checklist:

[x] Securely signed commits
[] Component(s) with PHPDoc blocks, only if necessary or adds value
[] Unit testing, with >80% coverage
[x] User guide updated
[] Conforms to style guide

I forgot to add new contributors.
Added.

Thank you @kenjis

authors: kenjis samsonasik


text:
Website login functionality

This is not so much an issue as a suggestion/request.
This suggestion came up as I needed to pull articles from a website with a paywall. I have a user, but could not for the life of me figure out how get a logged in session going in Newspaper.
If the solution is simple and I am just too daft to understand it, feel free to come with suggestions.

bumping

I think I have found a workaround. It simply requires all requests to be done with a Session object. You would first create a Session object, login to the website with the Session using a tool such as Selenium, and then pass the Session object to Newspaper to be used in all future requests.
Changes needed:
In: configuration.py

Add "session = requests.Session()" as a new parameter.

In: network.py

add "session = config.session"  to function "get_html_2XX_only()".
Replace "response = requests.get" with "response = session.get" in function "get_html_2XX_only()".
Add "self.session = config.session"  to class "Mrequest", function "init()".
Replace "self.resp = requests.get" with "self.resp = session.get" in class "Mrequest", function "send()"

When you have logged into your Session object with Selenium, you set the session parameter in Configuration.py to be this object.

@nup002 could you elaborate on your statement "When you have logged into your Session object with Selenium, you set the session parameter in Configuration.py to be this object"?

I would also like to know any good practice to use newspaper for website with login, especially oauth2 authentication

authors: chsuong njwfish nup002 timzhangau

repo: codelucas/newspaper


text:
[php mode] HTML-assimilated indentation

(https://github.com/adobe/brackets/issues/10038)
In PHP, it's common practice to indent the PHP code to the same level the surrounding HTML has.
As of now, CodeMirror though resets the indentation level while inside <?php tags:

Does the attached patch solve the problem?

authors: MarcelGerber marijnh

repo: codemirror/CodeMirror


text:
Build failing when working with strict mode

When tsconfig.json has strict mode on, when doing ng serve  dependencies throws error for code-mirror

Even libcheck to false, issue still persists.

What can be done here.

This library isn't written in TypeScript and doesn't provide (it's own) TypeScript declaration file, so this isn't something we're going to take responsibility for.

authors: JerinJ marijnh


text:
PyMySQL or MySQL-python module is required

Description
Issue occurs on a Vagrant deployed VM when testing the playbook for a localhost install.

Environment
OS: Ubuntu
Version(s): 16.04 Xenial, 18.04 Focal
Possible Fix
Adding a task to install PyMySQL using Ansible pip module.

This issue does not appear when using a privileged user.

repo: codenamenuke/wordpress-ansible-setup


text:
Add reapplyFilters (or similar name) to the TableFilterHeader

(Original issue 18 created by None on 2011-06-07T13:57:18+00:00)
As part of the previous issue, it would be interesting to being able to reapply the
filters.
In this case, if setFilterOnUpdates does not work, or is set to false, the filters
can be programmatically applied

Original issue reported on code.google.com by luismpena on 2011-06-07 13:57:18

(Original issue 18 last updated on 2011-06-07T13:57:18+00:00)
(Issue automaticaly closed due to status in Bitbucket: wontfix)

(Original comment by coderazzi on 2011-06-07T15:07:59+00:00)
(No text was entered with this change)

Original issue reported on code.google.com by coderazzi on 2011-06-07 15:07:59

(Original comment by coderazzi on 2011-11-09T17:12:37+00:00)
As reported on the previous bug (17),
the issue is a repainting problem on the underlying table,
that is, the filters are applied properly.
To solve the issue, it is enough to request a table.repaint()

Original issue reported on code.google.com by coderazzi on 2011-11-09 17:12:37

repo: coderazzi/tablefilter-swing


text:
Update Chart.js to version 2.0.2

Update to the most recent version https://github.com/chartjs/Chart.js/releases/tag/2.0.2

@coderbydesign Would love to use your gem! Can you update the library to the newest release?

You bet, thanks for the PR!

authors: Skovy coderbydesign

repo: coderbydesign/chart-js-rails


text:
Change license from CC-BY-SA to CC-BY

Motivation (discussion on the Carpentries mailing list): https://carpentries.topicbox.com/groups/discuss/Td64229aeb252a027
In short, the motivation is to simplify reuse for those who wish to take parts of our lessons and remix them into material which is CC-BY.
At the team meeting 2019-08-12 we have decided to change the license to CC-BY provided that all contributors to this lesson material agree to this change.
This issue will track the progress of this change.

@blindij @wikfeldt can you please comment whether you agree to this change?

I agree to a license change to CC-BY.

I agree to a license change to CC-BY

@blindij do you agree?

I agree to a license change to CC-BY

authors: bast blindij wikfeldt

repo: coderefinery/cmake


text:
Add GDCR2018 London entry

London entry for GDCR 2018 hosted at the J.P. Morgan offices

Welcome @mmhanif , have a good one! 💯

authors: mmhanif thodorisbais


text:
option(s) to submit fixes

For a PR it would be a commit to the same branch. (we do similar for adding changelog entries to PRs upon a specific label being present: https://github.com/datalad/release-action/blob/master/add-changelog-snippet/action.yml#L23 )
For a run within a non-PR branch - would be a new PR against that branch.

@yarikoptic
Hmm. Certainly doable from the codespell end, since it has a -w mode that writes back changes, and when run that way it reports:
FIXED: relative/path/to/first/file.xtn
FIXED: relative/path/to/other/code.xtn

and etc.
So it'd just be a matter of git add <foo> for each file listed, and then commit the changes.
...Arguably that functionality may be out of scope for this action, though, because it's "codespell with annotations" — and there's no real point in making annotations for spelling errors that are automatically fixed. It's kind of taking things in a different direction, functionality-wise.
A separate action to run codespell and auto-apply the changes, instead of making annotations, might actually make more sense, despite the seeming redundancy of two different actions to run codespell. (In truth there are multiple codespell actions already, so adding an "auto-apply codespell fixes" action would just be expanding the existing set of choices.)

IMHO there is no need for a separate action and indeed could be just a matter of adding an option and committing/pushing. FWIW, here is a "live" fresh request for such a feature

https://github.com/cryptnono/cryptnono/pull/37#issuecomment-2267111135
Do you think we could pull off this quickly (e.g. if I sent a PR) or should I redo the workflow to just do "manual" installation of codespell and pushing?

@yarikoptic ¯\_(ツ)_/¯ I'm not a dev/committer here, just another user... but since I'm also the only one who's responded here in over a year, I think it's safe to assume that "quickly" is probably way off the table.

Would it be enough to allow actions-codespell to have a "write" mode and then you use autofix.ci or something similar to push the fix to the given PR?
I also wonder if it's easier instead to use pre-commit.ci to do it instead for most people

but pushing from CI is easy for a PR, isn't it?
people who use pre-commit.ci typically do not even wan to use actions-codespell since they have codespell in their pre-commit config.

authors: ferdnyc larsoner yarikoptic

repo: codespell-project/actions-codespell


text:
CSS & HTML support

Is your feature request related to a problem? Please describe.
Would be great to see support for CSS.
Describe the solution you'd like
There's a bit similar project: https://cssbattle.dev/ but it has a bit different angle: It embraces short and clever code and AFAIK you can't see the results from others. In Codewars the beauty is in seeing the results others came up with.
I think the project I linked used headless chrome to render the result and taking the screenshot: https://developers.google.com/web/updates/2017/04/headless-chrome#screenshots , then comparing it to an image. The closer the match, the better points I believe. The solution could potentially also utilize this to do the actual comparison: https://github.com/americanexpress/jest-image-snapshot
In optimal solution you would write your HTML & CSS, then submit the results. If the result matches 100% with example images (possibly multiple different resolutions for responsive layout katas), the test would pass. You could also see how your result differs from expected result.
Describe alternatives you've considered
An alternative could be to provide HTML, and let the user to only write CSS.
It could also give points from semantics of the result, but that's secondary.
Additional context
Is there a timeline for CSS and HTML support?

Thanks for requesting support for a new programming language and providing details of how the testing could be done. Since CSS support was already requested in Codewars/codewars-runner-cli#172, would you mind moving the information you provided to that issue ticket?
cc @kazk

@DonaldKellett I was thinking about it but the readme says that the repo is obsolete.

authors: DonaldKellett villesau


text:
Error 9989

Hi!
I'm getting the following error:
[Connection-1 severe] Unable to connect socket: Error code: -9989(0x-2705), Operation not permitted
my config looks like this
var configuration = PostgresClientKit.ConnectionConfiguration()
configuration.host = "localhost"
configuration.database = "recetas"
configuration.user = "postgres"
configuration.ssl = false
configuration.credential = Credential.trust

while this works:

Any idea of what am I doing wrong?

Your code snippet looks OK.  Are you able to connect using psql?  For example:
psql -h localhost -p 5432 recetas postgres

Is the client app running on macOS or Linux?  If macOS, what version?  And are you running within Xcode, or a built application?
"Operation not permitted" sounds like the enhanced System Integrity Protection features in macOS.  I'm still on Mojave (10.14.6), but I understand that SIP is even more aggressive in Catalina.  If you are on Catalina, you might try temporarily disabling SIP using csrutil (as described here).

I can, and other clients like "SQLPro for Postgres" app is able to connect. I'm in catalina, I'll look deeper into it...

I'm running in to the same issue in Monterey. Could you point me to how you resolved this?

After a little bit of reading and settings browsing and for the benefit of others:
Xcode project settings -> Targets: Signing / Capabilities -> App Sandbox -> Network - Outgoing connections

authors: NSCabezon dirkwingenter pitfield

repo: codewinsdotcom/PostgresClientKit


text:
🛑 Codext Sentry is down

In 0d5566e, Codext Sentry (https://sentry.codext.de/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Codext Sentry is back up in 4c97c7a after 8 minutes.

repo: codextde/uptime


text:
Length of an array

Title of programme
Write a GO programme to find the length of an array.
Additional information
No response
Code of Conduct

[X] I have read and agree to the Codinasion project's Code of Conduct

I can pick this up.

repo: codinasion/codinasion-programme


text:
Added python file for checking armstrong number and updated readme fo…

Why:
Closes #77
What's being changed:

Added armstrong-number.py
Updated README.md for armstrong-number

Check off the following:

[x] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

https://codinasion.web.app/programme/armstrong-number/

repo: codinasion/codinasion


text:
Write a Kotlin program to find average of digits of a number

Description
Write a Kotlin program to find average of digits of a number
Average of digits of a number is the sum of all digits divided by the number of digits.
Input  : 123
Output : 2

How to contribute

Save the solution in program/FindAverageOfDigitsOfANumber.kt file
Add FindAverageOfDigitsOfANumber.kt file in find-average-of-digits-of-a-number folder

!assign

repo: codinasion/program


text:
feat: add convertStringToDotcase with C#

📑 Description

Closes #2424

🤖 Generated by Copilot at 92044af
Summary
📝🛠🌐

Added a new function convertStringToDotcase to the program repository. This function converts a string to dot case by replacing spaces with dots.

convertStringToDotcase
A new function for strings
Dots like falling snow

Walkthrough

Implement convertStringToDotcase function to convert a string to dot case (link)

I'm deeply sorry, I misread.
It's fixed now


text:
Added Tictactoe in Golang

Release notes

Added Tictactoe in Golang
Bug fix of C# implementation

Thanks for the fixes and contributions! ❌⭕

authors: coding-horror masykur

repo: coding-horror/basic-computer-games

license: Unlicense


text:
[Project] Dokku ClickHouse

It would be great to have a Dokku database plugin for ClickHouse.
Official databases plugins for Dokku:

https://github.com/dokku/dokku-postgres
https://github.com/dokku/dokku-mysql
https://github.com/dokku/dokku-mongo
https://github.com/dokku/dokku-mariadb
https://github.com/dokku/dokku-elasticsearch
https://github.com/dokku/dokku-redis
https://github.com/dokku/dokku-memcached
https://github.com/dokku/dokku-couchdb
https://github.com/dokku/dokku-rethinkdb

The plugin is available here: https://github.com/dokku/dokku-clickhouse
Coding Socks sponsored this plugin under my name on https://opencollective.com/dokku.

repo: coding-socks/introduction


text:
sometimes the plus to add a transaction is missing

the right + next to a account is some times missing. I open a account and on the actual showed display the + is shown in the screen. When I now scroll down/up these + disappear. I use the German version 1.5.1
This is when open the account:

This is after scrolling down/up

Thanks for reporting that!

Fixed in v2.0.0

authors: MaDill codinguser

repo: codinguser/gnucash-android


text:
Uncaught Error: Read a response from the engine before a request was written.

[Enter steps to reproduce:]

...
...

Atom: 1.58.0 x64
Electron: 9.4.4
OS: Ubuntu 18.04.4
Thrown From: TabNine package 4.0.3
Stack Trace
Uncaught Error: Read a response from the engine before a request was written.
At /home/danil/.atom/packages/TabNine/dist/main.js:9

Error: Read a response from the engine before a request was written.
    at /packages/TabNine/dist/main.js:9:7794)
    at Interface.emit (events.js:223:5)
    at Interface._onLine (readline.js:315:10)
    at Interface._normalWrite (readline.js:460:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

Commands

Non-Core Packages
TabNine 4.0.3

gz#7302

fixed in 4.0.7 version

@dimacodota unfortunately I just experienced this immediately upon restarting Atom post apm install tabnine. I am on version 4.0.7 and using an up-to-date Arch Linux installation. Here are my developer console logs.
electron/js2c/renderer_init.js:15 (electron) crashReporter.start is deprecated in the renderer process. Call it from the main process instead.
styles-element.coffee:82 [Deprecation] document.registerElement is deprecated and will be removed in M80, around February 2020. Please use window.customElements.define instead. See https://www.chromestatus.com/features/4642138092470272 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
status-item.ts:8 this: class o extends HTMLElement{static initialize(){return customElements.define("tabnine-status-item",this),console.log("this:",this),this}constructor(){super(),this.classList.add("inline-block");const e=docu…
emmet.coffee? [sm]:110 Loading Emmet extensions from ~/emmet
emmet.coffee? [sm]:125 Emmet: no such extension folder: /home/tim/emmet
/home/tim/.atom/pack…/web/pusher.js:1451 WebSocket connection to 'wss://ws-mt1.pusher.com/app/f119821…?protocol=7&client=js&version=4.4.0&flash=false' failed: WebSocket is closed before the connection is established.
/home/tim/.atom/pack…etype-package.js:51 teletype: Using pusher key: f119821248b7429bece3
/home/tim/.atom/pack…etype-package.js:52 teletype: Using base URL: https://api.teletype.atom.io
index.ts:8 activeVersionPath: null
index.ts:13 existingVersion: null
14
preview-gutter.js? [sm]:67 Failed to expand color preview gutter!
/home/tim/.atom/pack…dential-cache.js:29 Falling back to storing credentials in memory. Auth tokens will only be stored for the lifetime of the current window.
runBinary.ts:11 Running binary: /home/tim/.tabnine/4.0.44/x86_64-unknown-linux-musl/TabNine ide-restart-counter=0
OnceReader.ts:13 Read a response : Opening in existing browser session. from the engine before a request was written.
OnceReader.ts:14 Uncaught Error: Read a response from the engine before a request was written.
    at Interface.<anonymous> (OnceReader.ts:14)
    at Interface.emit (events.js:223)
    at Interface._onLine (readline.js:315)
    at Interface._normalWrite (readline.js:460)
    at Socket.ondata (readline.js:172)
    at Socket.emit (events.js:223)
    at addChunk (_stream_readable.js:309)
    at readableAddChunk (_stream_readable.js:290)
    at Socket.Readable.push (_stream_readable.js:224)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181)
Binary.ts:98 Binary child process exited with code 0 signal unknown
index.ts:8 activeVersionPath: null
index.ts:13 existingVersion: /home/tim/.tabnine/4.0.44/x86_64-unknown-linux-musl/TabNine
runBinary.ts:11 Running binary: /home/tim/.tabnine/4.0.44/x86_64-unknown-linux-musl/TabNine ide-restart-counter=1
binaryValidator.ts:14 validating /home/tim/.tabnine/4.0.44/x86_64-unknown-linux-musl/TabNine timeout

[Enter steps to reproduce:]

...
...

Atom: 1.58.0 x64
Electron: 9.4.4
OS: Ubuntu 20.04.3
Thrown From: TabNine package 4.0.7
Stack Trace
Uncaught Error: Read a response from the engine before a request was written.
At /home/kuba/.atom/packages/TabNine/dist/main.js:9

Error: Read a response from the engine before a request was written.
    at /packages/TabNine/dist/main.js:9:7763)
    at Interface.emit (events.js:223:5)
    at Interface._onLine (readline.js:315:10)
    at Interface._normalWrite (readline.js:460:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

Commands

Non-Core Packages
atom-beautify 0.33.4
atom-material-syntax 1.0.8
atom-material-ui 2.1.3
autocomplete 0.47.0
autocomplete-R 0.6.0
file-icons 2.1.47
highlight-selected 0.17.0
language-r 0.4.2
linter 3.4.0
minimap 4.40.0
TabNine 4.0.7
teletype 0.13.4
wakatime 11.0.8

I just installed atom and downloaded tab nine to be greated by this error I am on Manjaro and this is my first time installing Atom and the tab nine package
Atom: 1.58.0 x64
Electron: 9.4.4
OS: "Manjaro Linux"
Thrown From: TabNine package 4.0.7
Stack Trace
Uncaught Error: Read a response from the engine before a request was written.
At /home/zeeshan/.atom/packages/TabNine/dist/main.js:9

Error: Read a response from the engine before a request was written.
    at /packages/TabNine/dist/main.js:9:7763)
    at Interface.emit (events.js:223:5)
    at Interface._onLine (readline.js:315:10)
    at Interface._normalWrite (readline.js:460:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

Commands
     -1:32.6.0 core:cut (input.hidden-input)
     -1:31.4.0 core:paste (input.hidden-input)
     -1:30.2.0 core:select-all (input.hidden-input)
     -1:30 core:backspace (input.hidden-input)
     -1:26.6.0 core:paste (input.hidden-input)

Non-Core Packages
TabNine 4.0.7

authors: Nichidanil TimTinkers dimacodota woropajj zeeshan595

repo: codota/tabnine-atom


text:
Can I add my name please

Hey, let me add my name!

Yes sure open a PR

repo: codu-code/contributors


text:
Phone input form field with  country picker -  text form field with country picker support.

it would be amazing if we can bring an country picker component (inbuilt)
I know it is possible with adding leading widget to text field & modification may archive same.
Happy to open pull request if allowed or in your roadmap..

This is something that is not in our design system and is better handled via another package regardless. I understand that the current country flag picker solutions out there all have their shortcomings. But country flag picker is something that has a lot of product specific constraints (served from assets, fetched from flag-cdn, sizes, shapes etc). So currently we are not considering implementing it.

authors: Kypsis shajin-sha


text:
Add title for meta

There is already describe https://github.com/colinhacks/zod/commit/e2389b0312fb1b280a90d4bd1f10d099178aec9a , please add a title for schema, want to use like json schema , but missing title makes generate form and other ui harder.

What would title do?

Maybe not title, how about allow attach a meta: Record<string,any> ?

ok, what would meta do?

I want to add some schema related in meta, like $id in json schema, using zod as source of truth I want to attach meta to keep info in schema. Maybe zod should not used as general schema ?

Hey @wenerme @JacobWeisenburger I had the same idea. Since Zod (and zod-to.json) became the de-facto standard for structured outputs for LLMs, it would be useful if Zod would provide a method to add fields to the Zod schema which end up on the serialized JSON schema.
The .describe() function is used as description in the JSON schema. However, JSON schema provides more so-called annotation keywords like title, examples, etc. See: https://json-schema.org/understanding-json-schema/reference/annotations
As they are called annotations, maybe Zod could add a .annotate() function to provide these additional keywords which are used by a schema serializer such as JSON schema.

authors: JacobWeisenburger wenerme zirkelc

repo: colinhacks/zod


text:
ZodUnion inside ZodObject question

import {z} from "zod";

const adapter = z.object({
    union: z.union([
        z.object({
            name: z.string(),
            ip: z.string(),
        }),
        z.object({
            name: z.string(),
            subnet: z.string(),
        })
    ]),
});

why we got
type Adapter = {
    union: ({
        name: string;
        ip: string;
    } | {
        name: string;
        subnet: string;
    }) & ({
        name: string;
        ip: string;
    } | {
        name: string;
        subnet: string;
    } | undefined);
}

instead of
type Adapter = {
    union: {
        name: string;
        ip: string;
    } | {
        name: string;
        subnet: string;
    };
}

I have confirmed this

This looks like the same issue as https://github.com/colinhacks/zod/issues/2203

👀

should be closed as duplicate of should be closed as duplicate of https://github.com/colinhacks/zod/issues/2203

authors: 6XGate CGQAQ JacobWeisenburger Pyrolistical xsjcTony


text:
Fix grammer in Aryav's journey

Description
I have fixed "2" grammer errors in @aryav-v 's journey.
@aryav-v please review and our team (@collab-community/journey-book) will then merge!
Reference
https://writer.com/grammar-checker/

@KendallDoesCoding Actually , the grammar fixes you have applied removed
 tag at two places .

@KendallDoesCoding Actually , the grammar fixes you have applied removed
 tag at two places .

Oops sorry. Didn't realize. Fixed, Please review now.

Epic! No worries. It was all writer.com
On Wed, 3 Aug 2022, 12:02 am Aryav Chaturvedi, @.***>
wrote:

@.**** approved this pull request.
Its fixed now , thanks for your effort @KendallDoesCoding
https://github.com/KendallDoesCoding :)
—
Reply to this email directly, view it on GitHub
https://github.com/collab-community/journey-book/pull/82#pullrequestreview-1059245805,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUGJUTM7RXMQTXIK3S7A2DTVXFSVDANCNFSM55DBK4NA
.
You are receiving this because you were mentioned.Message ID:
@.***>

authors: KendallDoesCoding aryav-v

repo: collab-community/journey-book


text:
Feature Request: Chrome extension popup Element to act more like picture in picture captions

I utilize the YouTube Picture in Picture feature frequently in the Arc browser and it would be great if the popupElement would act similarly independent from the YouTube tab or transpose on top of the existing picture in picture window.

nice idea, yes! please also make the extension go "auto stop translation" if the server crashes, i constantly have to click stop and start again, sometimes it also interferes (the old stop with the new server instance).

repo: collabora/WhisperLive


text:
Deprecation warning for cleanup and prepare on Rails 5

I am trying to make DelayedJob work on a Rails 5 app.
When running bin/delayed_job start I get deprecation warnings in the log:
DEPRECATION WARNING: cleanup! is deprecated and will be removed from Rails 5.1 (use Rails.application.reloader.reload! instead of cleanup + prepare) (called from <main> at bin/delayed_job:5)

DEPRECATION WARNING: prepare! is deprecated and will be removed from Rails 5.1 (use Rails.application.reloader.prepare! instead) (called from <main> at bin/delayed_job:5)

Delayed::Backend::ActiveRecord::Job Load (0.4ms)  UPDATE "delayed_jobs" SET locked_at = '2016-09-28 07:19:35.686953', locked_by = 'delayed_job host:ubuntu-xenial pid:6922' WHERE id IN (SELECT  "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-09-28 07:19:35.686497' AND (locked_at IS NULL OR locked_at < '2016-09-28 03:19:35.686539') OR locked_by = 'delayed_job host:ubuntu-xenial pid:6922') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *

The offending code starts in the generator template which I guess eventually leads to Worker#reload!

Same here. Any news on this?

This is true for me too.

I'm having the same warnings on rails 5.0.0.1.

I have this too. Here is a temporary solution until delayed_job merges #948:
# config/initializers/dj_rails5_patches.rb
# RAILS 5 patches for delayed_job
# TODO: REMOVE WHEN upstream is updated

module DelayedWorkerPatches
  def reload!
    return unless self.class.reload_app?
    if defined?(ActiveSupport::Reloader)
      Rails.application.reloader.reload!
    else
      ActionDispatch::Reloader.cleanup!
      ActionDispatch::Reloader.prepare!
    end
  end
end

module Delayed
  class Worker
    prepend DelayedWorkerPatches
  end
end

Awesome, @hammady. Thanks for the temporary patch!

Hope to see this fixed soon!

It looks like #948 is merged now. Can the issue be closed?

Looking forward to seeing this go out in the next version!

Who is willing to release the next version?

thank @hammady

Hello, I'm getting a warning that Delayed Job requires activerecord < 5.1 when trying to upgrade to Rails 5.1.  Is the blocker just creating a new version?

Any update on if this issue can be closed?

authors: DannyBen atomaka dg-ratiodata hammady lysender malagant maurosbu shrkw simonknoll toobulkeh vuductuyen wfried


text:
Make skip-empty the default behavior and deprecate option

The default behavior of the protoc-gen-twirp_ruby go module is to generate empty scaffolding files for .proto files that do not contain any services. We chose to make our plugin behave similarly, for easier migration / backwards compatibility.
We then introduced the skip-empty flag opt-in to avoid generating those empty files, in #21.
At this point, we're ready to remove the flag and make this the default behavior. It's common for other twirp generators to do the same, see protoc-gen-twirp_typescript, protoc-gen-twirp-java, and protoc-gen-twirp_cpp.
For this change, we output a warning when the flag is present on the command line. For the next release, we'll remove recognizing the flag and error instead.

@danielmorrison I opted for a "safe" deprecation by introducing a warning this release if the flag is still present on the command line, and then error next release. I'm not entirely sure we need to do that. You could easily convince me to skip the warning altogether and just drop the flag entirely here.


text:
UUIDs cannot be queried using get as primary key

Recently, I started using ormar instead of tortoise-orm in my projects, but have encountered a strange problem, if I use uuid as the primary key of a model, I can't match the data when using get query.
example:
class MainMeta(ormar.ModelMeta):
    metadata = metadata
    database = database

class UserModel(ormar.Model):

    class Meta(MainMeta):
        tablename = "usermodel"

    id: ormar.UUID(primary_key=True)
    username = ormar.String(index=True, unique=True, null=False, max_length=255)
    email = ormar.String(index=True, unique=True, nullable=False, max_length=255)
    hashed_password = ormar.String(null=False, max_length=255)
    is_active = ormar.Boolean(default=True, nullable=False)
    is_superuser = ormar.Boolean(default=False, nullable=False)

user = await UserModel.objects.first()
await UserModel.objects.get(id=user.id) # raise NoMatch
await UserModel.objects.get(username=user.username) # Match user

Hi,
UUID field has no default as there are different types.
The most common i uuid4 I would say but not exclusive.
But the fix is easy just provide a default function and pass uuid like:
import uuid
id: uuid.UUID = ormar.UUID(primary_key=True, default=uuid.uuid4)

The addition of a default value for uuid4 did not take effect, the data came from an existing db and was not created via ormar. However, it can be confirmed that the id of the old data is uuid4
class BaseUser(CreateUpdateDictModel):
    """Base User model."""

    id: Optional[UUID4] = None
    email: Optional[EmailStr] = None
    is_active: Optional[bool] = True
    is_superuser: Optional[bool] = False

    @validator("id", pre=True, always=True)
    def default_id(cls, v):
        return v or uuid.uuid4()

Is there more information that I can provide to help locate the problem?

Ok, so there is a database with a field already.
I need info what type of the field is in DB (I think only postgres support special uuid but might remember wrong).
Since you moved from tortoise I assume you use postgres, so that I don't have to ask :)

@collerek Currently using sqlite, not postgre

Oh right I confused with gino :) So what is the db field type? Varchar(?)

This is the table structure corresponding to the usermodel

Sorry, it's the middle of the night in my time zone, it's too late for me to go to bed, I'll check back in the morning to see if it's a problem with my usage.

Don't worry same here (currently Lao - 3 AM :) ). WIll also check it later - might be some weird handling of uuid fields in compiling filters for sqlalchemy.

OK, so ormar is by default saving UUID in hex format in CHAR(32) field without the dashes.
So I added the parameter uuid_format for UUID field that can be:

hex (default) -> like it was CHAR(32) - no dashes
string -> CHAR(36) with dashes.

to change to string set it to 'string':
id: uuid.UUID = ormar.UUID(primary_key=True, default=uuid.uuid4, uuid_format='string')

Sample:

hex value = c616ab438cce49dbbf4380d109251dce
string value = c616ab43-8cce-49db-bf43-80d109251dce

Please update to version 0.5.4 for this feature.

Problem solved, thank you for such a quick response and fix!

authors: collerek hidaris

repo: collerek/ormar


text:
Question about EntityPlayer location.

Everytime i start the game the player is located at the top-left corner of the map.
Someone knows where the problem is?
Screenshot:
Editor: http://puu.sh/kw1ol/069f3910e3.png
Ingame: http://puu.sh/kw1py/02f60a1151.png
Greetings
Navo

@nxxv0 are all those blocks behind the character colliders?

Nevermind, i found my problem.
I changed something in the impactplusplus code directly, so i broke the player spawning :)

repo: collinhover/impactplusplus


text:
PhantomJS not detected on Travis

Travis has PhantomJS preinstalled, but this gem doesn't seem to detect it.
The Travis documentation has this note:

(available in PATH as phantomjs; don’t rely on the exact location)

So perhaps this gem is looking in the wrong location? This is where it's currently looking:
/home/travis/.phantomjs/2.1.1/x86_64-linux/bin/phantomjs

Travis has phantomjs 1.9.8 preinstalled -- you really don't want to be using that anymore

I don't have a need for a particular version. I only created this ticket under the assumption that this gem would never use the version that Travis provides. If that's not true, and it'll start using the Travis version once Travis upgrades the version they provide, this ticket can be closed.

@seanlinsley do you still have this issue? For me, it correctly installs and locates the latest version (2.1.1) of phantomjs. I notice the issue is a bit outdated hence the question.

No, this is no longer an issue.

authors: andresilveira seanlinsley twalpole

repo: colszowka/phantomjs-gem


text:
Update jline-reader, jline-terminal, ... to 3.27.0

About this PR
📦 Updates

org.jline:jline-reader
org.jline:jline-terminal
org.jline:jline-terminal-jna

from 3.14.1 to 3.27.0
📜 Changelog
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.jline" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.jline" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

FYI, we've recently taken this upgrade in Scala 2, Scala 3, and sbt

Superseded by #1570.

authors: SethTisue scala-steward

repo: com-lihaoyi/Ammonite


text:
Java/Scala: Improve resources handling

Mill currently only has one resources target. It's content will end up in the built jar and also in the classpath. But it is also evaluate before and feed into compile target. This has various implications:

Each change to resources will trigger a recompilation
Generated resources (after compile) are not supported

See also the following discussion on Gitter: https://gitter.im/lihaoyi/mill?at=6246909d9a09ab24f3d00982

Victor Borja @vic 07:41
Hello, running compile on a ~400 scala source files module I've noticed something weird: turns out if you do mill inspect foo.compileClasspath it includes the output of foo.resources that is somewhat surprising to me, and noticed because if I change eg, foo/resources/application.conf then that will cause scalac to compile all ~400 sources again, just for changing a value that will be used at runtime. So in my project I fixed it by overriding the compileClasspath task and removing the same module resources from it. I believe if some project compilation depends on it's own resources, they should be explicitly added to compileClasspath instead of it being the default. The only way I imagine it useful for resources being on compileClasspath of the SAME module would be for some advanced macros to generate code from resources or something. On the other hand, editing a foo/resources/application.conf or whatever is a pretty much more common scenario and that would likely trigger compilation since one of the compile task input changes. I'd be happy to provide a pull-request if you people think this is something worth fixing.
Tobias Roeser @lefou 08:39
@vic In the past, I though about adding some "runtimeResources" multiple times. Something that ends up in the final JAR and/or the runtime classpath. The motivation was to add stuff that gets generated after the compilation. It's probably the same feature but motivated from the other side. As we probably going to need both: resources in the compile classpath and resources after, we may want to avoid breaking compatibility and just add a new runResources? WDYT?
Andrew Richards @ajrnz 10:02
Regarding the resources issue I'd vote for changing the default. I come across this issue when modifying application.conf, logback.xml, web content and probably more file types. Apart from the macros example above I can't think of any reason to have them on the compile path (counter examples welcome). In the past I've removed the resources from the compile path when doing for example web development where the .html, .css etc were in resources. Adding a runResources would require a new directory and a name for it and would be doing what I imagine most people want by default.

To improve the resource handling, I'm interested in your opinion. Which route do you prefer?

Break behavioral compatibility: No longer feed resources into compile and add a compileResource target which is feed into compile instead
Keep behavior and the resources target as is and introduce a new runResources

I'm in favor of (1.).
I'm having trouble coming up with an example where having resources during compilation is necessary. I know in theory macros or compile plugins could read resources, but I don't know of any existing macros or plugins that actually do.
Combining the relativey low chance of semantic breakage, with the fact that this is a binary compatible change, makes me feel like accepting the small semantic breakage will be less painful than having to for-ever-after tell people "use runResources, it's what you actually want, not resources"

We may also collect some info how other build tools handle resources, e.g. sbt, Maven, Gradle, etc. Despite of our decision, when it is significantly different than in other tools, we may want to add some clarifying text to the documentation.

If we decide to go with a semantic change, we should still increment to the next Mill binary platform version, as external modules will need a way to deal with the changed semantics. E.g. my plugins which touch the compiler or packaging aspects (mill-kotlin, mill-aspectj, mill-osgi) will go crazy, if we introduce this change in a patch level release.

I'd be interested in implementing this (1.), of course I'll need a lot of direction along the way and will ask for reviews/comments but feel free to assign this to me :)

I'd be interested in implementing this (1.), of course I'll need a lot of direction along the way and will ask for reviews/comments but feel free to assign this to me :)

Great! Just open a draft pull request once you have some code.

authors: lefou lihaoyi vic

repo: com-lihaoyi/mill


text:
e2e: add flag and/or manifest option to control the time interval between each perturbation

Currently, when calling the perturb command, runner will read all perturbations for all nodes declared in the manifest and apply them one by one, with a fixed interval of 3 seconds.
For testing DOG, we need to perturb all nodes during the whole execution of a test instance. For example, while all the nodes in the testnet are running, and transaction load is being injected, we want to run in parallel runner perturb --interval 30 to trigger one perturbation to one of the nodes every 30 seconds.

if you run the command individually can you perturb multiple nodes in the same timeframe ?

I think that's currently not possible. perturb applies sequentially all perturbations that it finds in the manifest. I mean, you can run multiple perturb in parallel but you cannot control how it will apply individual perturbations in the manifest.
For the DOG use case I was thinking of applying perturbations sequentially in any order, so just extending the interval between perturbations will be enough.

repo: cometbft/cometbft


text:
docs: Fix broken links / missing content on v0.38

closes: #1375
Fixing broken links / missing content on v0.38 docs/spec

PR checklist

[ ] Tests written/updated
[ ] Changelog entry added in .changelog (we use unclog to manage our changelog)
[X] Updated relevant documentation (docs/ or spec/) and code comments

This should target v0.38.x not main


text:
misc(go.mod): remove unused peg dependency

Refs #523

wanna really have fun?
watch this :)

#2046

authors: faddat melekes


text:
Support for libre sense sport glucose sensor

Hi great app,.
Would it be possible to support the libre sense sport glucose sensor as well ?

The "Patch Infos" of the latest Libre sensors start with:
Libre 2 US:
76 09 39 02

Libre 2 CA:
76 09 39 04

Libre Sense:
76 09 79 01

They are essentially the same device. The fifth nibble stands for the product family (3 = Libre 2, 7 = Libre Sense) which corresponds to the first character of the serial number. The final nibble stands for the region where the sensor is marketed.
They adopt enhanced "Gen2 Security" protocols both for the BLE and NFC communications and have closed the backdoors that are available for the European Libre 1.

authors: gui-dos jimmykane

repo: cominixo/OpenLibreNFC


text:
canError alerts needs higher priority than commIssue

when there is a canError carState will become invalid, leading to plan being invalid, which leads to a comIssue alert. In this case the canError is the root cause so needs higher priority.

This already seems the case.

repo: commaai/openpilot


text:
replay/ui.py: get image from vipc

Can you add reconnect for when you restart replay. Now it's still connected to the wrong vipc server.

how about this? added is_connected  to VisionIpcClient


text:
temp

We maintained most of the ECUs when merging https://github.com/commaai/openpilot/pull/28634, but lost the engine ECU on a Nissan Rogue: b7287535e2a23992|2023-07-31--21-10-01
Strangely, the same ECU appears to be on multiple RX addresses, and it can support different sub-functions and protocols. On this Rogue, it looks like the engine is on 0x7e0 + 8 (responds to KWP with old diag mode 0xc0), and 0x7e0 - 0x80 (responds to UDS)
48053547532 rxaddr=2016, bus=1, 2690.45 ms, 0x0322f18800000000, b'\x03"\xf1\x88\x00\x00\x00\x00', len(can.dat)=8

48063507844 rxaddr=2016, bus=129, 2700.41 ms, 0x0322f18800000000, b'\x03"\xf1\x88\x00\x00\x00\x00', len(can.dat)=8
48063507844 rxaddr=2016, bus=0, 2700.41 ms, 0x0322f18800000000, b'\x03"\xf1\x88\x00\x00\x00\x00', len(can.dat)=8
48063507844 rxaddr=2016, bus=2, 2700.41 ms, 0x0322f18800000000, b'\x03"\xf1\x88\x00\x00\x00\x00', len(can.dat)=8
48063507844 rxaddr=2024, bus=1, 2700.41 ms, 0x037f228000000000, b'\x03\x7f"\x80\x00\x00\x00\x00', len(can.dat)=8
48063507844 rxaddr=2024, bus=0, 2700.41 ms, 0x037f228000000000, b'\x03\x7f"\x80\x00\x00\x00\x00', len(can.dat)=8
48063507844 rxaddr=2024, bus=2, 2700.41 ms, 0x037f228000000000, b'\x03\x7f"\x80\x00\x00\x00\x00', len(can.dat)=8

looking at wrong FW version


text:
Search and add Geonetwork instances

Find and add Geonetwork servers

Most Geonetwork instances found and added to data/_unprocessed/geonetwork.txt

repo: commondataio/dataportals-registry