Check the validity of attributes in getters

The get_attribute_value method can set the ulValueLen field of the
attributes that could not be get to CK_UNAVAILABLE_INFORMATION without
returning an error.
This commit adds checks in those function to make sure the attributes
are valid before getting them.
Fix #15

ctx_get_attribute_value fails and can reproduce locally as well. Investigating.

ctx_get_attribute_value fails and can reproduce locally as well. Investigating.

Found it, was doing something very wrong with from_raw_parts

Thanks for your quality review!

There are 3 things that I pointed out with comments that I think should get addressed:

Discussed about that in the specific comments. I'll let you decide on the naming one.

this is a breaking API change (although this is before 1.0 so I don't care too much)

You could also decide to safely panic when an attribute is found to be invalid so that the API can stay the same. I do not think it is the best behaviour to adopt though... maybe two versions of the API, one checked and one panicking?

this part of the library is supposed to be as close to its C equivalent as makes sense

I understand totally why you would keep this layer close to C and prefer this kind of abstraction to be done at a higher layer. I personally think that all methods of a layer trying to be the closest to C should be unsafe but as soon as you remove unsafe then you have the responsability to provide safe Rust code. Removing unsafe is an extremely difficult task to do and should not be treated lightly. You could totally remove my checks and put the methods as unsafe with code documentation explaining why.
You could also say that the get_ and set_ methods are already kind of an abstraction over simply setting the C attributes by hand.
Maybe it would help to "design" the different abstraction layers you had in mind, their limits, document them and separate them in modules? You would have to have a very good knowledge of PKCS 11 though, which I certainly do not have 😅

@hug-dev Let's proceed with this!
This convinced me at the end (plus I slept on it 😄):

I personally think that all methods of a layer trying to be the closest to C should be unsafe but as soon as you remove unsafe then you have the responsability to provide safe Rust code.

You can call this function multiple times, but as long as you haven't provided the right amount of memory, this wouldn't do anything unsafe or stupid. However, if CK_UNAVAILABLE_INFORMATION is set, it means that this is actually a return value from the get_attribute_value call and should be treated as such. And the objects are safe to be called get_ on as long as they have been set with eith with_ or set_.
Also, already all other function calls are rewritten in the sense to have return values with Result types, so this helps with it intrinsically on the get_attribute_value call.
So yes, please do the adjustments as discussed in the comments and we can merge it!

Added a new commit to address your comments. Feel free to squash them together when merging if you want.
Two small modifications of what you expected I made:

Made the methods returning bool public: I think there is no wrong at having those methods public as it might be a valid thing a caller can ask about an attribute value, not in a context where it is valid or an error (such as the getters).
For the twin methods (the one returning bool and the one returning Result): I named the ones returning bool with a name starting with is_ as the contract implies better that it is a question with no valid/failure answer. Named the ones returning a Result as a declaration as, when you call them, you expect the result to be Ok().

Please feel free to say if you feel strongly about any of those point and I can change.

any strong opinions if I make the methods returning the Result pair private? My reasoning would be that the expectation here could be that the left part actually contains the value.

Not at all! Thanks for the merge.

An independant question: any reason why you are using a custom Rust formatting file and not the default one 😋 ?

@hug-dev that's another thing on the chopping block 🙂
When I started this project in 2017 the default Rust formatting was horrible for this project. And especially with this partially "C-style" code produced unreadable results. I realized though just the other day, that this has changed significantly. Even 80% of the options in my rust format file don't even exist anymore. So funny coincidence that you are bringing this up 😄
As I am currently taking some time to do some cleanup around this project (and hopefully actually picking it up again a bit), expect this to change :)
Somebody else just recently helped getting in Travis support, and I also realized that this should actually get moved to GitHub actions (they are very very Rust friendly) which will also help to test this on Linux, macOS and Windows with every PR.
If there is anything else you would like to see, don't hesitate to reach out! Thanks again for the PR!

Good to know!
I will definitely keep in touch as we increasing our crypto operations support 😃


Status icon

Hi,
Do you know if there is a way (via Applescript) to determine current status of mic/camera, in order to set the icon accordingly?

Hi @wabiloo - thanks for the issue. Microsoft has released a native Teams plugin for the Elgato Stream Deck yesterday which has obsoleted the need for my repository. So, I'm going to archive this repository in favor of the official plugin (which also adds a lot more great features).


🚧 Dev ➾ Add Support for Versioned Documentation to Taqueria.io

🔗 Epic|Feature Link
No response
🚥 Definition of Done

[X] 🎯 Planning and Design
[ ] 🏎 Dev Implementation (PR merged)
[ ] ✍ Release Notes Added
[ ] 🏆 Product Acceptance

✅ To Do
No response
⚖ Acceptance Criteria
✨ Functional:

[ ] A menu bar drop down shows the historical, current, and next versions of Taqueria
[ ] Clicking on a particular version will show documentation versioned to that release
[ ] Clear and concise instructions for adding a new release  are documented in the readme.md file
[ ] Must support staging of unreleased docs (ie PR with docs merged, but no release has gone out yet) which get published as current as part of the release process

📐 Non-Functional:

[ ] Maintenance burden should be minimized

🔭 Scope
🙅♂ Out of Scope:

Backfilling docs for versions previous to the feature launch version

🧰 Work Description
Taqueria is now releasing incremental features at a rapid rate. As such, documentation can change significantly between releases and it's increasingly important to have a way to version docs to match with releases. This ticket covers the work involved to implement versioned docusaurus docs in the same manner handled on tezostaquito.com
🦄 Sizing
5
Code of Conduct

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

@dsawali, Jev mentioned that you implemented this for the Taquito site and was hoping you could share some knowledge or even give us a hand with it

Hello @hu3man, I would be glad to help the Taqueria team.
I assume that the Taqueria website also uses Docusaurus, since that is what we use to implement versioned docs in Taquito.
To start, I would suggest going over this documentation https://docusaurus.io/docs/versioning. It has most of the things we'd need, but I would be glad to help out if needed.
Let me know the team's bandwidth (or lack thereof) so we could adjust who would be driving most of the change

Luckily I find this is one of those things that is pretty straightforward in Docusaurus. If you have any questions, please don't hesitate to reach out again! @hu3man

Awesome, thanks @dsawali!


Sway by James Francies unsupported.

Check if issue with swaglyrics or whether song lyrics unavailable on Genius.

Not on Genius.


Breast cancer

Breast Cancer
Overview
The Breast Cancer Synthea module models the symptoms, diagnoses, observations and treatments surrounding malignant neoplasm of the breast.
This module is designed to align with mCODE where possible. Observations are intended to reflect the FHIR Implementation guide for mCODE:
http://standardhealthrecord.org/guides/mcode/profiles.html

Submodules
tnm_diagnosis.json - Determines tumor size (T category), Lymph Node involvement (N category), and metastatic state (M category) for the patient.

hormone_diagnosis.json - Determines estrogen receptor (ER), progesterone receptor (PR), and human epidermal growth factor receptor 2 (HER2) states for the patient (+/-).

surgery_therapy_breast.json - Determines whether or not a patient requires a surgical procedure, and the proper follow-up treatments that should be taken post-surgery (radiation therapy, chemotherapy, advanced drugs, etc.).

chemotherapy_breast.json - Models the process a patient undergoes while taking chemotherapy

hormonetherapy_breast.json - Determines whether or not a patient needs a particular hormone treatment, based upon their hormone diagnosis in the ER, PR, and HER2 categories.

Demographics and Screening
In this module, the Synthea population is primarily divided by gender, since the condition is far more likely among women. While men only have a 1% chance of developing breast cancer over their lifetime, women have a 12.5% lifetime risk on average. This percentage was further specified into different racial categories. Patients then progress along two tracks, where they either receive a mammogram after undergoing a series of breast cancer symptoms, or go in for a regularly scheduled mammogram visit at which their breast cancer condition is realized. Both tracks eventually lead to the onset of breast cancers, diagnosed by a series of procedures completed during their initial encounter.
Diagnosis
After a mammogram, ultrasound/MRI, and a biopsy has been performed, the tnm_diagnosis submodule is called to determine a patient’s tumor size, lymph node involvement, and metastatic state. This submodule is modeled as a decision tree. The percentages in deciding the three TNM markers are based upon real diagnosis prevalence data for the three categories. As a result of this submodule, each breast cancer patient is given a value for each of the three markers, which will later be used to determine the cancer stage.
Next, the hormone_diagnosis submodule is subsequently called. This submodule determines the estrogen receptor (ER), progesterone receptor (PR), and human epidermal growth factor receptor 2 (HER2) states for the patient (+/-). These three hormone receptors are key influencers for the eventual treatment path that the patient will take. Again, this is modeled as a decision tree, with percentages from publicly available breast cancer diagnosis statistics.
Staging
So after screening and diagnosis of the symptoms and mammogram, the TNM markers and Hormone receptors were then assessed to determine which stage the patient would roughly lie in. Using the AJCC 8th edition textbook, we modeled the stages according to these guidelines. Furthermore, we divided the stages into more specific entities (e.g. IA, IB, IIA, IIB, etc…) as the specific combinations of TNM markers make these differences.
Treatment
Following the staging of the cancer, treatment options were then ensued depending on which categories and sizes of the tumors that were found within the individual patients. For stage 1 and 2, the treatment options generally followed surgery in either the lymph nodes or breast and then followed by radiation therapy or chemotherapy. The submodule surgery_therapy_breast and chemotherapy_breast were called for their respective tasks. Along with this, the hormonetherapy_breast submodule was also called to give the proper treatment for either HER2, ER, or PR hormones being present or all three of them not being present.
For stages 3 and 4, there was Neoadjuvant chemotherapy that was administered to the patients prior to leading them to surgery -> radiation -> chemotherapy. Afterwards, they were also administered hormone therapy.
Follow-ups and Death
After treatment, patients with breast cancer will either begin a track towards remission or a track towards death. This is decided based upon 5-year survival rates among real-life breast cancer patients from each stage (Stage I has a 99% survival rate, stage IV has a 22% survival rate, etc.). Patients from both tracks then begin a surveillance period where they undergo regularly scheduled follow-up doctor visits, mammograms, and some other tests that vary depending on the treatment they received. The patients in the death track are sentenced to a random time of death ranging between 0 and 5 years in the future, while the patients on the remission track continue to loop through the surveillance follow-ups until they die by some other means or until the simulation is terminated.
Validation and Results
We ran 5000 patients in Massachusetts and observed how they proceeded through the breast cancer module specifically. We restricted the age and gender to 15-100 and female respectively. We can see the stats below:
results.txt
Some validation points are that ~60-65% should be Local, ~30% should be within Regional, and Distant should be within 5-10%, which the model has achieved.
Shortcomings:

The way a breast cancer’s stage is determined is constantly being updated. With the addition of new factors comes increased complexity in possible signs and markers that go into determining a patient’s breast cancer stage. In order to avoid the need to exponentially scale the number of states in our diagnosis decision trees, we did not take into account the tumor grade or genomic mutations (BRCA1 or BRCA2 for example), which are currently used alongside the aforementioned factors to more holistically determine breast cancer stage.
The module currently does not account for recurrence of breast cancer or other types of cancer after treatment.
There is currently no way for a patient to reach Stage IIIB. Stage IIIB is defined by a T4 tumor, one that has extended to the chest wall and/or to the skin. However, this module does not predict tumor location, since there are a lack of publicly available prevalence statistics that would allow for this to be accurately predicted. Because Stage IIIB is very similar to other stages except for this tumor location factor, we omitted it from being reached by patients. Stage IIIB is in fact relatively rare, and this decision was approved by Dr. Jim O'Connor.

Sample Patients
Garden Variety Patient - ER-positive, PR-positive, HER2-negative:
Garden Variety Patient.json.txt
Triple Negative Patient:
Triple Negative Patient.json.txt
Stage IV Patient - Advanced Drugs Treatment Recipient:
Stage 4 Patient - Advanced Drugs Treatment Recipient.json.txt
Death from Cancer Patient:
Death From Breast Cancer.json.txt
Disclaimers
The synthetic data does not assume concordance with NCCN evidence-based guidelines version 1_2019.

Thank you @pmadria3 and @mickohanlon23 -- this is the best pull request we've ever received:

[x] extremely detailed modules
[x] reviewed by physicians
[x] validation results
[x] sample data
[x] exemplary documentation and citations.

Excellent! 🥇


Case insensitive keywords

So that WITH is interpreted as with, etc.

Closed, as it is a bad idea.


Introduce prompting behavior to inputs for Aspire manifests

In preview 2 we shipped the ability to tell the deployment tool the generate a random password for a particular resource, here is an example:
{
  "resources": {
    "postgresabstract": {
      "type": "container.v0",
      "image": "postgres:latest",
      "env": {
        "POSTGRES_HOST_AUTH_METHOD": "scram-sha-256",
        "POSTGRES_INITDB_ARGS": "--auth-host=scram-sha-256 --auth-local=scram-sha-256",
        "POSTGRES_PASSWORD": "{postgresabstract.inputs.password}"
      },
      "bindings": {
        "tcp": {
          "scheme": "tcp",
          "protocol": "tcp",
          "transport": "tcp",
          "containerPort": 5432
        }
      },
      "connectionString": "Host={postgresabstract.bindings.tcp.host};Port={postgresabstract.bindings.tcp.port};Username=postgres;Password={postgresabstract.inputs.password};",
      "inputs": {
        "password": {
          "type": "string",
          "secret": true,
          "default": {
            "generate": {
              "minLength": 10
            }
          }
        }
      }
    }
  }
}

Note the password input with the default value set to generate. Prompting would be the absence of a default, for example:
      "inputs": {
        "password": {
          "type": "string",
          "secret": true,
        }
      }

In this scenario the deployment tool would pause and prompt for the value. The deployment tool may persist the value and may provide a mechanism to provide the value in advance for CI/CD scenarios (both recommended).
To fine tune the prompt, an additional field would be added with the name "prompt" which would allow the prompt that is presented to the user to be fine-tuned.
      "inputs": {
        "openaikey": {
          "type": "string",
          "secret": true,
          "prompt": {
             "text": "Enter the Open AI API key."
          }
        }
      }

This is a simplistic example, but the prompt field could be expanded to support things like creating pick lists and simple validation rules. Some resource types which are intrinsically linked with a particular cloud (e.g. Azure OpenAI) might even have the ability to have a resource picker (with fallback behavior).
This particular feature will become important when introducing the concept of app wide secrets where a secret is shared between multiple services. In cases like this we might have a resource defined as follows:
{
  "resource": {
    "mysecretstore": {
      "type": "secret.store.v0"
    },
    "githubsharedsecret": {
      "type": "secret.value.v0",
      "value": "{githubsharedsecret.inputs.value}",
      "inputs": {
        "value": {
          "type": "string",
          "secret": true,
          "prompt": {
            "text": "Enter GitHub application shared secret"
          }
        }
      }
    }
  "webhookendpoint": {
    "type": "project.v0"
    "env": {
      "webhooksecret": "{githubsharedsecret.value}"
    },
    // Other properties omitted for brevity.
  }
  }
}

Here the deployment tool would notice that webhookendpoint (an app) references the shared secret, and the shared secret in turn defines an input field for its value. If deployed using a tool like azd this would result in a keyvault being created called mysecretstore containing a secret named githubsharedsecret with its value provided by the user when azd up is invoked.
The environment variable defined on the webhookendpoint project resource would be bound to keyvault using this mechanism.
Different target environments might have different analogues.

/cc @davidfowl @ellismg

Another dimension to these prompt mechanics is how they work for local development. Even though we don't generate the manifest for local execution, we do have requests coming in from folks who want to have some secret centrally managed which they share across their apps. Using builder.Configuration[...] is kind of clunky but works.

Once the secrets work is done, azd should be able to do this. Putting this in preview 3 but I think the work left to do is on the AZD side.
Tracking issue:
https://github.com/Azure/azure-dev/issues/3189
@ellismg its important that when the enhancements are made to handling the "inputs": field, that the behavior isn't limited to just secret resources.

@ellismg its important that when the enhancements are made to handling the "inputs": field, that the behavior isn't limited to just secret resources.

Agree.

This feature should work with any resource, but we will primarily use it with parameter.v0 resources.

@ellismg do you have a mirror of this issue over in the azd repo.

https://github.com/Azure/azure-dev/issues/3234


Fix interactive call of doom/narrow-buffer-indirectly

The optional 3rd arg to the function was removed in f9190c08bfb908df1df3cc49ee2ecec4b360d42c

Good catch. Thanks for your help!


Links to WebUI in docs are broken

The page https://kythe.io/docs/exploring-kythe-sample-web-ui.html has links to urls like https://xrefs-dot-kythe-repo.appspot.com/#kythe/java/com/google/devtools/kythe/util/JsonUtil.java?line=36 and https://xrefs-dot-kythe-repo.appspot.com/#kythe/cxx/common/CommandLineUtils.h?line=61
These are broken because they are missing the corpus=kythe parameter.

Deploying now, but my manual tests verify the fix.


Upload to PyPi

Have you considered uploading a release to PyPi?

Hey there @renstrom, thanks so much for your comment.  Absolutely! :smile:
I'm working really hard on a first release as I'm still changing the API.  The final version will look something like this:
from pynetsnmp import Session
session = Session(hostname='localhost', community='public', version=2)
system_description = session.get('sysDescr.0')

There won't be any needing to deal with Varbinds or VarLists at all :smile:
Please bear with me, I'll probably need another week or two before it's been well tested and ready for release.  We have a heap of network gear in production and UAT to test against and I'd love to really run it through its paces before release.
Also the documentation (the README) is still unaltered and needs to be re-written along with possible publishing of docs to RTD.
Thanks so much for your interest, I'll be sure to post again when I release it on PyPi
Cheers
Fotis

No worries, noticed you had some very recent activity and came here from a StackOverflow. The official package is lacking to say the least, especially when it comes to installability! Good to see there is finally popping up an alternative :)
I will definitely be on the lookout for a release!

Hey there, I've made huge progress on this library over the last few days and would like to invite you to test the first release with me.
Although the first release is not yet on PyPi, you may install it via pip as follows:
pip install<EMAIL_ADDRESS>
Documentation is now published at Read the Docs.
My friend Naveen and I would first like to make use of this library in our SNMP polling application and once we're a bit more confident of its stability and design, I'll release it on PyPI.
Cheers
Fotis

I have decided to go ahead and release this on PyPi, you may find it here.
More improvements and documentation on PyPi will come with the next version.
Cheers
Fotis


Fix - trigger chosen:update when value is empty

Coverage remained the same at 86.019% when pulling f7e4df067201b7d9174ebd2b35a2c45dd8727bd6 on savoirfairelinux:manytomany_update1 into 2ecfe8857d3ceee302d5045a6dd9c3c747b98c35 on digi604:master.

Hi, I just got added as the maintainer for this project. Can you go into more detail about what this PR is fixing? Thanks!

jquery.chosen isn't (still I believe) refreshing on cleaning the control, so it's just probably attempt to fix it.
Are you going to merge it or just wait for description from PRer?

Merged with d78bcf014f01e851a6a60d2f4a4cfa4642cbc15b.


❓ [Immich] can not update from 1.105.1 to  1.106.4-2

Immich?

I have trouble updating Immich to the latest version.
I get this error in the GUI of HA
Failed to call service update/install. Error updating Immich: Can't install ghcr.io/alexbelgium/immich-amd64:1.106.4-2: 404 Client Error for http+docker://localhost/v1.45/images/ghcr.io/alexbelgium/immich-amd64:1.106.4-2/json: Not Found ("No such image: ghcr.io/alexbelgium/immich-amd64:1.106.4-2")
And not sure if that is related but this in the log of the addon itself
      '5'
    ]
  }
}
ReplyError: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
    at parseError (/app/immich/server/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/app/immich/server/node_modules/redis-parser/lib/parser.js:302:14) {
  command: {
    name: 'brpoplpush',
    args: [
      'immich_bull:facialRecognition:wait',
      'immich_bull:facialRecognition:active',
      '5'
    ]
  }
}
ReplyError: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
    at parseError (/app/immich/server/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/app/immich/server/node_modules/redis-parser/lib/parser.js:302:14) {
  command: {
    name: 'brpoplpush',
    args: [
      'immich_bull:faceDetection:wait',
      'immich_bull:faceDetection:active',
      '5'
    ]
  }
}
ReplyError: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
    at parseError (/app/immich/server/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/app/immich/server/node_modules/redis-parser/lib/parser.js:302:14) {
  command: {
    name: 'brpoplpush',
    args: [
      'immich_bull:metadataExtraction:wait',
      'immich_bull:metadataExtraction:active',
      '5'
    ]
  }
}
ReplyError: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error. script: b4cd4bbdf096cd8d06246080315ae81c56e05a46, on @user_script:222.
    at parseError (/app/immich/server/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/app/immich/server/node_modules/redis-parser/lib/parser.js:302:14) {
  command: {
    name: 'evalsha',
    args: [
      'b4cd4bbdf096cd8d06246080315ae81c56e05a46',
      '10',
      'immich_bull:sidecar:wait',
      'immich_bull:sidecar:active',
      'immich_bull:sidecar:prioritized',
      'immich_bull:sidecar:events',
      'immich_bull:sidecar:stalled',
      'immich_bull:sidecar:limiter',
      'immich_bull:sidecar:delayed',
      'immich_bull:sidecar:paused',
      'immich_bull:sidecar:meta',
      'immich_bull:sidecar:pc',
      'immich_bull:sidecar:',
      '1719221664403',
      '',
      <Buffer de 00 03 a5 74 6f 6b 65 6e d9 2a 63 61 30 64 66 32 66 61 2d 34 33 38 37 2d 34 66 39 63 2d 62 32 34 61 2d 34 66 64 31 30 39 32 35 64 37 66 30 3a 31 32 ... 28 more bytes>
    ]
  }
}
ReplyError: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
    at parseError (/app/immich/server/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/app/immich/server/node_modules/redis-parser/lib/parser.js:302:14) {
  command: {
    name: 'brpoplpush',
    args: [
      'immich_bull:migration:wait',
      'immich_bull:migration:active',
      '5'
    ]
  }
}
ReplyError: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
    at parseError (/app/immich/server/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/app/immich/server/node_modules/redis-parser/lib/parser.js:302:14) {
  command: {
    name: 'brpoplpush',
    args: [
      'immich_bull:notifications:wait',
      'immich_bull:notifications:active',
      '5'
    ]
  }
}
ReplyError: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
    at parseError (/app/immich/server/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/app/immich/server/node_modules/redis-parser/lib/parser.js:302:14) {
  command: {
    name: 'brpoplpush',
    args: [
      'immich_bull:videoConversion:wait',
      'immich_bull:videoConversion:active',
      '5'
    ]
  }
}

Hi, mmh it is here so it exists : "https://github.com/alexbelgium/hassio-addons/pkgs/container/immich-amd64"
Perhaps try rebooting ?

Hey.
Unfortunately reboot did not help. This issue persist for more than a week. In the meantime I have rebooted several times and also updated the HA OS and core but I end with this error all the time.

Crazy... Well I can try to push a new version and we'll see how that goes

Thanks for the new version but it still does not work
 Failed to call service update/install. Error updating Immich: Can't install ghcr.io/alexbelgium/immich-amd64:1.106.4-3: 404 Client Error for http+docker://localhost/v1.45/images/ghcr.io/alexbelgium/immich-amd64:1.106.4-3/json: Not Found ("No such image: ghcr.io/alexbelgium/immich-amd64:1.106.4-3")
Maybe tomorrow I will try to roll back to an older version from backup to see if that helps.

Unfortunatelly I still was not able to get it working. Even when downgrading to an older version I get the same error.
I would not mind the old version, but as  iOs can not roll back to older versions of the app I can not use Immich on my phone.
What would be you suggestion to do ? How could I reinstall Immich most effectively, without having to reupload all the phtos again ?


SAK-28952 initial addition of message bundle manager tool

Okay, I tested locally and this works well.  I'd like to see bootstrap and jquery move into reference/library but let's do that in separate JIRAs.


ValueError: num_samples should be a positive integer value, but got num_samples=0

Traceback (most recent call last):
File "/home/noor/fasterrcnn-pytorch-training-pipeline/train.py", line 539, in
main(args)
File "/home/noor/fasterrcnn-pytorch-training-pipeline/train.py", line 251, in main
train_sampler = RandomSampler(train_dataset)
File "/home/noor/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/torch/utils/data/sampler.py", line 107, in init
raise ValueError("num_samples should be a positive integer "

@Noor-Kalibbala
It looks like the path to the data folders in the YAML file is wrong. Can you please check that again? They should be relative to the fasterrcnn-pytorch-training-pipeline directory, i.e., from where we execute the train.py file.

@sovit-123 my configuration file is given below,
TRAIN_DIR_IMAGES: '../data/Katunda_dataset/train'
TRAIN_DIR_LABELS: '../data/Katunda_dataset/train'
VALID_DIR_IMAGES: '../data/Katunda_dataset/valid'
VALID_DIR_LABELS: '../data/Katunda_dataset/valid'
TEST_DIR_IMAGES: '../data/Katunda_dataset/test'
TEST_DIR_LABELS: '../data/Katunda_dataset/test'
# Class names.
CLASSES: ['Fruits brown spot',
'Fruits healthy',
'Fruits woodiness',
'Leaves brown spot',
'Leaves healthy',
'Leaves woodiness']
# Number of classes (object classes + 1 for background class in Faster RCNN).
NC: 6
# Whether to save the predictions of the validation set while training.
SAVE_VALID_PREDICTION_IMAGES: True

@sovit-123 my configuration file is given below,
TRAIN_DIR_IMAGES: '../data/Katunda_dataset/train'
TRAIN_DIR_LABELS: '../data/Katunda_dataset/train'
VALID_DIR_IMAGES: '../data/Katunda_dataset/valid'
VALID_DIR_LABELS: '../data/Katunda_dataset/valid'
TEST_DIR_IMAGES: '../data/Katunda_dataset/test'
TEST_DIR_LABELS: '../data/Katunda_dataset/test'
# Class names.
CLASSES: ['Fruits brown spot',
'Fruits healthy',
'Fruits woodiness',
'Leaves brown spot',
'Leaves healthy',
'Leaves woodiness']
# Number of classes (object classes + 1 for background class in Faster RCNN).
NC: 6
# Whether to save the predictions of the validation set while training.
SAVE_VALID_PREDICTION_IMAGES: True

can i use full paths instead

I have solved it

how you solve it

Please check the image and label paths in the YAML file. Most probably, they do not point to the correct directory.

Please what is the format of annotations should be i get this results
IoU metric: bbox
Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = -1.000
Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = -1.000
Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = -1.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = -1.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = -1.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = -1.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = -1.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = -1.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = -1.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = -1.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = -1.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = -1.000
My XML FORMAT

0_jpg.rf.952079b842be24cd0b6e52ab79585935.jpg
0_jpg.rf.952079b842be24cd0b6e52ab79585935.jpg

roboflow.ai

416
416
3

0

0
Unspecified
0
0
0

249
330
252
317

Take a look at this YAML file.
# Images and labels direcotry should be relative to train.py
TRAIN_DIR_IMAGES: '../input/Aquarium Combined.v2-raw-1024.voc/train'
TRAIN_DIR_LABELS: '../input/Aquarium Combined.v2-raw-1024.voc/train'
VALID_DIR_IMAGES: '../input/Aquarium Combined.v2-raw-1024.voc/valid'
VALID_DIR_LABELS: '../input/Aquarium Combined.v2-raw-1024.voc/valid'

# Class names.
CLASSES: [
    '__background__',
    'fish', 'jellyfish', 'penguin',
    'shark', 'puffin', 'stingray',
    'starfish'
]

# Number of classes (object classes + 1 for background class in Faster RCNN).
NC: 8

# Whether to save the predictions of the validation set while training.
SAVE_VALID_PREDICTION_IMAGES: True

Here CLASSES contain the class names that correspond to the name attribute in the XML file. In your XML file it is 0, so your CLASSES should contain [__background__, 0]

thank you a lot

Welcome


Breadcrumb Programming Exercises in Exams

Describe the bug
In Exam Management, for Exercise groups and there Configure Grading the breadcrumb path is replaced by Exercise which is misleading.__
To Reproduce

Create an exam with programming exercise
Edit the grading of the exercise
Look at the breadcrumbs (which point to exercises instead of exams)

Expected behavior
The breadcrumbs shall include the exam not the exercises
Screenshots
No response
What browsers are you seeing the problem on?
Firefox
Additional context
No response
Relevant log output
No response

@FrankeLukas could you please have a look?


[Feature] Spending UTXOs from multiple wallets in a single transaction

Is it reasonable to implement such feature? How difficult would it be?

The point of having multiple wallets/accounts is segregation - to avoid combining UTXOs in a single transaction that links them onchain. Adding this feature could cause more harm than good.
From an implementation perspective, it's quite difficult - there would need to be some kind of a "master wallet" which acted like all the open wallets simultaneously.

Although I'd still benefit from this feature, I understand there's only a niche use case. Thanks for the reply.


Use correct remote version.json

Fixed in https://github.com/staabm/xhprof.io thx

Thanks.
When do you think this will be merged into the official one? gajus/xhprof.io

Last commit in this repo is from 2013...

LOL and sigh :/

Last commit in this repo is from 2013... Feel free to use my fork. See Readme there.

Most of my clients have moved to Node.js, thus I have little time to contribute to PHP community. Nonetheless, PHP 7 is a long awaited development. I plan to be using it when a stable version comes out.
Somewhat surprisingly, the community interest in xhprof.io remained active throughout these years and to this day there are no worthy alternatives that I know of (please update me if you know any).
I have refrained from accepting any pull requests primarily because the platform is not broken and I am afraid that accepting changes can do more harm than good (suppose something goes wrong, I would not have time to troubleshoot). Besides, this library would use a complete overhaul starting with test driven development that would de-risk accepting new pull requests.
Finally, I have seen that @staabm is doing a great job maintaining https://github.com/staabm/xhprof.io and I don't mind him at all (somewhat persistently) promoting his own fork. Furthermore, if @staabm would like to become the maintainer of the original package, I'd be happy to allow that.

Regarding this specific issue, server side version checking should be rooted out of the code. I have no idea what made me think this is a good idea to begin with.

Regarding this specific issue, server side version checking should be rooted out of the code.

Actually due to proxy problems this is exactly what I've done.

Somewhat surprisingly, the community interest in xhprof.io remained active throughout these years and to this day there are no worthy alternatives that I know of (please update me if you know any).

right, this is still the case.

I have refrained from accepting any pull requests primarily because the platform is not broken and I am afraid that accepting changes can do more harm than good (suppose something goes wrong, I would not have time to troubleshoot). Besides, this library would use a complete overhaul starting with test driven development that would de-risk accepting new pull requests.

cant agree more. I am also dont using this tool on my own in the last months but using blackfire.io when required. Nevertheless ist a awesome tool built by gajus.

Finally, I have seen that @staabm is doing a great job maintaining https://github.com/staabm/xhprof.io and I don't mind him at all (somewhat persistently) promoting his own fork.

Its not about promoting my fork, but pointing the users to a maintained fork.

Furthermore, if @staabm would like to become the maintainer of the original package, I'd be happy to allow that.

As I dont use the tool that regularly I dont want to invest the time to move/merge all the commits/adaptions made until now.

FYI #74 created.


Udplistener start/stop during runtime

1. Tell us something about your changes.
implement udplisitener start/stop during runtime.
@penfold42 can you check if all things go right?
2. If this changes affect the .conf file. Please provide the changed section
3. Reference a issue (optional)
Note: For further discussions use our forum: forum.hyperion-project.org

I won't be able to test it for a couple of days but I'm happy enough from a diff review to merge.
Much cleaner - Thanks!

Forgot to add some signal/slots for better control. Will add it during the day.

... added missing signal/slots. ready for merge :-)

;)


Thumbnails

Any reason to don't do thumbnailing?
I could do it.

Yeah, a extra path could be added, something like GET:/thm/image.jpg, but image.jpg would have to have the same name for GET:/img/.

Now that it is done, I'm closing.


Add permissions for broker secret

Pull Request Test Coverage Report for Build 128

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 74.317%

Totals

Change from base Build 119:
0.0%

Covered Lines:
136

Relevant Lines:
183

💛  - Coveralls


Directory name and package name mismatch can cause deletion of classes without recompile

When there is a mismatch between the package name and the directory name for a Java class, there are no warnings or errors thrown.  The compile will succeed using the package name in the output classes directory structure.  While this is expected behavior from the Java compiler, it can cause an issue with the Gradle incremental compiler.
The incremental compiler uses the following when determining if there are classes to delete and classes that need to be recompiled:
void preparePatterns(Collection<String> staleClasses, PatternSet filesToDelete, PatternSet sourceToCompile) {
        for (String staleClass : staleClasses) {
            String path = staleClass.replaceAll("\\.", "/");
            filesToDelete.include(path.concat(".class"));
            filesToDelete.include(path.concat(".java"));
            filesToDelete.include(path.concat("$*.class"));
            filesToDelete.include(path.concat("$*.java"));

            sourceToCompile.include(path.concat(".java"));
            sourceToCompile.include(path.concat("$*.java"));
        }
    }

That is, it converts the package name to a directory name in an attempt to find the source.  If the directory name does not match the package name, it will come up with nothing that needs to be compiled, and so it will end up deleting the stale classes but then not compiling them again.
Expected Behavior

Ideally, the incremental compiler would be able to find the path to the source code, but if it is going to assume that the path and package names are the same then a warning about the mismatch between directory and package names would be quite helpful.
Current Behavior

Current behavior is no warning when a mismatch happens, which can result in classes disappearing and then not getting recreated after a change.
Context

I discovered this when I mistakenly created my classes in a directory with different capitalization than the package name.  When there were changes to the dependencies of one project that caused some classes in my project to become stale, classes were deleted and then not recreated, which caused the jar file to be less than useful.
Steps to Reproduce (for bugs)

Though easy enough to produce a sample project in which the package name and directory name are different, my attempts thus far to produce staleness with this simple example that will trigger the incremental recompile have been unsuccessful.
deletingClasses.zip
Your Environment

Gradle 4.7
Java 8
Multi-project build

I ran also into the problem.
If you make a mistake and you have a folder named e.g. org.acme instead of having folder org and subfolder org/acme it will also delete your classes.
Worst than that, it will push in your local gradle cache your "new" classes with missing files... so even if you do a full clean the build fails. The only way is then to clear the cache.
It was quite hard to debug that!

This was fixed in Gradle 6.5, which gets the source-to-class mapping from the compiler API instead of deriving it from the source file name.


Drop hessio event source?

It hasn't been updated for a while (cannot read >= prod4 data) and is not compatible with python 3.8.
Do we want to keep it? Or just be confident in the simtel event source and move on?

It's funny - i just came here to make this exact issue :-)
Yes, let's drop it! I think SimTelEventSource (and the eventio library) has proven itself.


Add haddocks to new compile/TracingMode API

TracingMode doesn't have any haddocks, and its not immediately apparent what DetTracing does.

deterministic tracing

What does deterministic tracing do vs regular tracing?

@peter-mlabs When you're doing tests, you often want the compiled code not to change if the source code hasn't. Without DetTracing, moving around lines (without changing anything), will change the trace messages, since they will include the line numbers.

Ah good! Thanks


Allow admins to set stream as default from stream settings UI

Currently admins have to goto organisation settings to make a stream default. They should be able to do this from stream settings UI itself. The first step would be to to add a "Include in default streams" checkbox for admins in the streams setting (both in the creation form and in the already-created view)
See https://chat.zulip.org/#narrow/stream/101-design/topic/default.20streams/near/705770 for more details
@zulipbot label "area: stream settings"

Closed in favour of #2284 and #7787


FIX-#2408: Fix read_csv and read_table args when used inside a decora…

What do these changes do?
Fix an issue when read_csv or read_table are used in a decorator which does not use functools.wraps, additional local variables may be introducted that causes parser_func in _make_parser_func incorrectly adding unknown kwargs to read_csv and read_table.

 I didn't find a place to run one one individual job. Please let me know your thoughts on the PR @devin-petersohn . I hope the job won't hang on follow up changes.
P.S. unrelated.  it looks like github CI is missing the option to re-run single job?

@staftermath I will take a look. We have some issues with coverage sometimes, especially after rebases.

LGTM, @devin-petersohn do you have any comments?

@staftermath please resolve conflicts. After this I think we will merge this.

@staftermath please resolve conflicts. After this I think we will merge this.

Conflicts should have been resolved :) please let me know if there is any other comment. Thanks!


Fixed incorrect error being returned when the path does not exist.

Changed error being returned from EEXIST to ENOENT when path does not exist.

Looks good!


Add dataloader for POSP dataset

Closes #29
Checkbox

[ ] Confirm that this PR is linked to the dataset issue.
[ ] Create the dataloader script nusantara/nusa_datasets/posp/posp.py (please use only lowercase and underscore for dataset naming).
[ ] Provide values for the _CITATION, _DATASETNAME, _DESCRIPTION, _HOMEPAGE, _LICENSE, _URLs, _SUPPORTED_TASKS, _SOURCE_VERSION, and _NUSANTARA_VERSION variables.
[ ] Implement _info(), _split_generators() and _generate_examples() in dataloader script.
[ ] Make sure that the BUILDER_CONFIGS class attribute is a list with at least one NusantaraConfig for the source schema and one for a nusantara schema.
[ ] Confirm dataloader script works with datasets.load_dataset function.
[ ] Confirm that your dataloader script passes the test suite run with python -m tests.test_nusantara --path=nusantara/nusa_datasets/posp/posp.py.
[ ] If my dataset is local, I have provided an output of the unit-tests in the PR (please copy paste). This is OPTIONAL for public datasets, as we can test these without access to the data files.

Hi @madenindya, could you try to check and tick the checkboxes in your first pr comment?
This is to indicate that you have done the checks that is needed to ensure the dataloader created correctly.
Thanks!

Hi @madenindya, could you try to check and tick the checkboxes in your first pr comment? This is to indicate that you have done the checks that is needed to ensure the dataloader created correctly.
Thanks!

Hi @bryanwilie thanks for the review. I've checked and ticked the checkboxes. Thanks!


Not accounting for non-RGB inputs in coin selection

Trying to execute a few transfers using this branch of rgb-sandbox I run into the following error:
Error: not enough funds to pay fee of 400 sats; all inputs contain 2000 sats and outputs spends 2000 sats out of them.

The wallet should have enough bitcoins as the unspents come up as:
Height     Amount, ṩ    Outpoint
bcrt1q06vjlq89kufjgzenwusm99l6hv5ygxhur8qun8    &9/0
107             2000    e6cfb776a1e03165f6e739a6452231ac9d30fb20cbde0ae130ed7b10d20dc7b1:0
106             2000    7a39dd007218bdbf3d6d1a2b919700d9a144a1d2cab20cace5a8ad57df2395b7:0

bcrt1qwke7jgvxuwcwk8q4m4mglgmltyfzasde5c4nsj    &0/0
105        100000000    2a0bd1672cfb051c7c0627d1295c07325974b53048a87169c80b44f8698c949e:0

I guess this happens because the input selection is not adding more inputs if needed to cover fees (or outputs), but I haven't dug deeper than this.

Yes, you are right in your assumption. I remember writing that logic, but it seems somehow it is skipped. We need to move the issue into BP wallet since it happens there.

Suppose Alice has one UTXO with 2000 sats.
2000 -> 1600 -> 1200 -> 800 -> 400 (it won't be able to broadcast anymore)

Suppose Alice has one UTXO with 2000 sats.
2000 -> 1600 -> 1200 -> 800 -> 400 (it won't be able to broadcast anymore)

It would - you just need to add more tx inputs and feed additional sats into the witness transaction

Re-opening and changing the name as explained in https://github.com/BP-WG/bp-wallet/issues/13#issuecomment-2021330041

Now, there is the question: when and how should we use non-RGB inputs for moving some BTCs to RGB outputs.
In other words, this situation is not a bug but a feature - however possibly bad UX. I just do not know how to make it better: I assume many wallets will differenciate BTC and RGB balances, and if some BTC are "disappearing" after RGB transactions it would be even worse UX...

I agree that using funds from the "BTC balance" without prior user consent would be bad UX.
I propose doing something similar to what rgb-lib does to handle this. Specifically, I would:

add a command that lets the user spend some "BTC balance" (i.e. keychains 0 or 1) to create new RGB UTXOs

with default number and size of the UTXOs (e.g. 5 / 5000 sat)
with options to specify custom values

automatically use RGB UTXOs with 0 allocations to pay for fee or witness transfers (or blind them to allocate assets)
return an informative error in case funds (a.k.a. UTXOs) are needed but none are available, hinting at the command to create RGB UTXOs

This is a large feature request, and since rgb cli is not a mainstream wallet I propose to postpone this for v0.12. End-users will be able to do that anyway with proper mobile and web wallets build with rgb-lib


LastAccessedUtc not working on Redis

CacheItem retrieved from Redis Cache has LastAccessedUtc always set to DateTime.UtcNow.
Expected behaviour:
LastAccessedUtc should be populated with the last time this Redis key was accessed
This can be implemented using the OBJECT IDLETIME command in Redis

Well, the key gets accessed when the item gets read or updated, and that's where the LastAccessedUtc field gets set.
It is mostly used to track expiration locally and I think its totally fine how and when its set for its purpose.


Documentation request: how to use SerializableReference with SerializableType

In a Unity post you show a screenshot of using the reference with a type.

I haven't figured out how to do this in my project. Can you show how this is done in more detail?

Hi, the code for this is found in the documentation already:
https://careboo.github.io/Serially/2.2/manual/ShowSerializeReference.html

Ah, gotcha.
As a user of this repo, I would personally love for the main parts of the documentation to be available directly in the README. Even better would be to have it showcase the main usages so I don't need to figure out how it can be used. I looked at the docs earlier but thought they might be incomplete not finding anything about the SerializableType interacting with ShowSerializeReference, having thought the Unity forum was hinting at that.
Even just copy pasting the docs into the README would be nice. Most repos I've used in the past don't use Github pages.
Hope I don't sound ungrateful - it's a really nice package, thanks for making it available open source.

good points, I added some basic use cases to the README and updated it with a Table of Contents. Hopefully, it's easy to tell that there is more information available under the Documentation header.


Cleanup in test projects.

Fixed namespace for CtfTracing.Tests.
Fixed assembly name for CtfTracing.Tests.
Fixed namespace for LinuxTracing.Tests.
Fixed directory name to match LinuxTracing.Tests.
Fixed assembly name for LinuxTracing.Tests.
Removed  from TraceEvent.Tests (it is not in the rest of test projects and frankly it's not needed there).

@cincuranet can you please take a look at the merge conflicts?

@brianrob Solved.


Multiple Passes

Hey, is there any way to return multiple event tickets at once?
Thank's in advance!

No, Apple's PKPass specification doesn't allow this currently, unfortunately...


treewide/pkgs: remove with lib;, part 2

Motivation for change

#208242

Description of changes
Follow-on to this PR:

#334470

meta = with lib; was only mutated if it contained non-regular statements, like if statements or // or the like.
I validated this change by comparing the outPath of all derivations that evaluated on master vs. the ones on this branch.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

https://gist.github.com/GrahamcOfBorg/1eab084267c1f1130592f05cc6e94380
huh
I'll take a look tomorrow at these and figure out why the rebuild.

LGTM. we could merge if you fix the conflicts.

Thank you all!


Test widgets1

Fixes #

[ ] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[ ] Title summarizes what is changing.
[ ] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for feature-requests.
[ ] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).

Codecov Report

Merging #10730 (58a71bb) into main (5e0e77a) will decrease coverage by 11%.
The diff coverage is 37%.

:exclamation: Current head 58a71bb differs from pull request most recent head b7d9c0f. Consider uploading reports for the commit b7d9c0f to get more accurate results

@@           Coverage Diff            @@
##            main   #10730     +/-   ##
========================================
- Coverage     62%      51%    -12%
========================================
  Files        476      476
  Lines      32985    33048     +63
  Branches    5356     5379     +23
========================================
- Hits       20748    16950   -3798
- Misses     10254    14376   +4122
+ Partials    1983     1722    -261

Impacted Files
Coverage Δ

src/kernels/raw/finder/jupyterPaths.node.ts
54% <37%> (-10%)
:arrow_down:

src/notebooks/outputs/tracebackFormatter.ts
24% <0%> (-76%)
:arrow_down:

src/kernels/debugger/kernelDebugAdapterBase.ts
6% <0%> (-74%)
:arrow_down:

...ve-window/debugger/jupyter/debugCellControllers.ts
23% <0%> (-74%)
:arrow_down:

...views/extension-side/variablesView/variableView.ts
17% <0%> (-73%)
:arrow_down:

src/interactive-window/debugger/helper.ts
33% <0%> (-67%)
:arrow_down:

src/notebooks/export/exportToPythonPlain.ts
21% <0%> (-66%)
:arrow_down:

src/notebooks/debugger/kernelDebugAdapter.ts
20% <0%> (-65%)
:arrow_down:

src/interactive-window/interactiveWindow.ts
7% <0%> (-65%)
:arrow_down:

src/platform/webviews/webviewPanelProvider.ts
12% <0%> (-64%)
:arrow_down:

... and 223 more


Eta reduction gives better generated code

Did you check if the *default functions are still usable? They probably need eta-expanding at the use site, but I'm not sure if they were done here that way intentionally for some reason.
I'm pretty sure sequenceDefault didn't used to typecheck when eta reduced, so that's nice :)

Thanks!


Allow syncing anonymous issues created from GitHub to Linear

Context
We use linear to triage all our GitHub community issues, and when issues are created by community members they are not synced to linear.
How?
I was thinking on adding a similar to the anonymous comment functionality, that guest users issues will be created as the "sync app" similar to how the comments work now.

this works already, just add the issue "linear" to the github ticket and it'll magically appear in linear


Dynamic partial gives: jQuery.Deferred exception: (intermediate value).call is not a function ...

When I try to load a partial dynamically using this syntax:
{{#each data.fields}}
	{{>(this.type)}}
{{/each}}

Where this.type is a string ('text', 'image' etc.), I get this error:
jQuery.Deferred exception: (intermediate value).call is not a function ... yadda yadda.

Partials are registered during a Gulp build ...
What is it that I'm missing?

The answer is in the docs (hooray), but I was confused as well until I read it the second time and the docs could be better (so don't worry). The important sentence on http://handlebarsjs.com/partials.html is:

Subexpressions do not resolve variables so whichPartial must be a function. If a simple variable has the partial name, it's possible to resolve it via the lookup helper.

This should work:
{{> (lookup . 'type') }}


Displaying help takes a long time

Bringing up the help takes about ten seconds for me.
The following is logged by Talon:
2022-01-25 13:49:10 WARNING [watchdog] "user.cursorless-talon.src.cheatsheet.cheat_sheet.draw" @2.0s
   13:                                     talon/canvas.py:17 |
   12:                                     talon/canvas.py:164|
   11:                         talon/scripting/dispatch.py:144|
   10:                         talon/scripting/dispatch.py:135|
    9:                             talon/scripting/rctx.py:233| # 'draw' user.cursorless-talon.src.cheatsheet.cheat_sheet:draw()
    8: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:123| self.draw_section(canvas, "Special mar..
    7: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:161| self.draw_items(canvas, items)
    6: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:236| self.draw_dict(canvas, items)
    5: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:254| self.draw_value(canvas, text)
    4: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:283| canvas.paint.typeface = text_font
    3:                                 talon/skia/paint.py:189|
    2:                                  talon/skia/font.py:79 |
    1:                              talon/skia/typeface.py:44 |
2022-01-25 13:49:13 WARNING [watchdog] "user.cursorless-talon.src.cheatsheet.cheat_sheet.draw" @2.0s
   13:                                     talon/canvas.py:17 |
   12:                                     talon/canvas.py:164|
   11:                         talon/scripting/dispatch.py:144|
   10:                         talon/scripting/dispatch.py:135|
    9:                             talon/scripting/rctx.py:233| # 'draw' user.cursorless-talon.src.cheatsheet.cheat_sheet:draw()
    8: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:123| self.draw_section(canvas, "Special mar..
    7: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:161| self.draw_items(canvas, items)
    6: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:236| self.draw_dict(canvas, items)
    5: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:254| self.draw_value(canvas, text)
    4: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:283| canvas.paint.typeface = text_font
    3:                                 talon/skia/paint.py:189|
    2:                                  talon/skia/font.py:79 |
    1:                              talon/skia/typeface.py:44 |
2022-01-25 13:49:15 WARNING [watchdog] "user.cursorless-talon.src.cheatsheet.cheat_sheet.draw" @2.0s
   13:                                     talon/canvas.py:17 |
   12:                                     talon/canvas.py:164|
   11:                         talon/scripting/dispatch.py:144|
   10:                         talon/scripting/dispatch.py:135|
    9:                             talon/scripting/rctx.py:233| # 'draw' user.cursorless-talon.src.cheatsheet.cheat_sheet:draw()
    8: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:111| self.draw_section(
    7: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:161| self.draw_items(canvas, items)
    6: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:236| self.draw_dict(canvas, items)
    5: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:254| self.draw_value(canvas, text)
    4: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:283| canvas.paint.typeface = text_font
    3:                                 talon/skia/paint.py:189|
    2:                                  talon/skia/font.py:79 |
    1:                              talon/skia/typeface.py:44 |
2022-01-25 13:49:17 WARNING [watchdog] "user.cursorless-talon.src.cheatsheet.cheat_sheet.draw" @2.0s
   13:                                     talon/canvas.py:17 |
   12:                                     talon/canvas.py:164|
   11:                         talon/scripting/dispatch.py:144|
   10:                         talon/scripting/dispatch.py:135|
    9:                             talon/scripting/rctx.py:233| # 'draw' user.cursorless-talon.src.cheatsheet.cheat_sheet:draw()
    8: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:123| self.draw_section(canvas, "Special mar..
    7: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:161| self.draw_items(canvas, items)
    6: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:236| self.draw_dict(canvas, items)
    5: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:254| self.draw_value(canvas, text)
    4: user/cursorless-talon/src/cheatsheet/cheat_sheet.py:283| canvas.paint.typeface = text_font
    3:                                 talon/skia/paint.py:189|
    2:                                  talon/skia/font.py:79 |
    1:                              talon/skia/typeface.py:44 |

I am running talon v0.2.0-305-g968a (305)
cursorless-talon 0.25.0
and knausj_talon commit ea9b2d767be59cfccb5e6831874f2173114cd6bb
on Linux.
Greetings, Anton

As this is on Linux it might be nice to get a strace -tt -eopenat,stat or perf trace output for the period the watchdog is active. We're probably stalled on something Skia is doing, which might be stalled in the GPU driver or filesystem, and I have no idea what exactly without some kind of trace.
Also are you setting the font multiple times? Those watchdogs are each for 2s. Maybe it will improve if you only set it once per draw?

Also are you setting the font multiple times? Those watchdogs are each for 2s. Maybe it will improve if you only set it once per draw?

Ah yes we do set it back and forth a lot.  The reason is that we draw a bunch of key-value pairs, where the key is in one font and the value is in another font.  Didn't realise setting font would have such a performance penalty.  Should we try to draw it column-wise so that we reduce the number of font changes?
Here's a section of the cheatsheet to show what I mean

Would love to get a trace to know why it's slow, I assume it needs to go actually find and load the font from disk every time for some reason.

As this is on Linux it might be nice to get a strace -tt -eopenat,stat or perf trace output for the period the watchdog is active. We're probably stalled on something Skia is doing, which might be stalled in the GPU driver or filesystem, and I have no idea what exactly without some kind of trace.

@iSchluff any chance you'd be able to post this output to help us debug this one?

Sorry for the delay, haven't been keeping up with GitHub so much lately ^^'
strace.txt
Apparently its locking a lot and checking the permissions of the fonts, but no open/read.
perf trace -s
syscall summary.txt

thanks @iSchluff!  @lunixbochs does the above help?


Refactor perf tests into individual areas

Refactor perf tests into individual areas.
Remove dependency on mock layer (a prerequisite to adding performance tests that call run in kernel CI/CD).
Resolves: #479
Signed-off-by: Alan Jowett<EMAIL_ADDRESS>

Remove dependency on mock layer (a prerequisite to adding performance tests that call run in kernel CI/CD).

Did you mean "that can run in..."?


[hollywoodlife] site support request

[x] I've verified and I assure that I'm running youtube-dl 2<IP_ADDRESS>

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[x] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

C:\Users\Desktop\youtube-dl>youtube-dl.exe -f best --all-subs http://hollywoodlife.com/2017/05/19/andi-mack-dad-jonah-sneak-peek-episode-video/ -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'best', '--all-subs', 'http://hollywoodlife.com/2017/05/19/andi-mack-dad-jonah-sneak-peek-episode-video/', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg N-83034-gf48b6b8, ffprobe N-83096-g6596b34
[debug] Proxy map: {}
[generic] andi-mack-dad-jonah-sneak-peek-episode-video: Requesting header
WARNING: Falling back on generic information extractor.
[generic] andi-mack-dad-jonah-sneak-peek-episode-video: Downloading webpage
[generic] andi-mack-dad-jonah-sneak-peek-episode-video: Extracting information
ERROR: Unsupported URL: http://hollywoodlife.com/2017/05/19/andi-mack-dad-jonah-sneak-peek-episode-video/
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpwgfs80it\build\youtube_dl\YoutubeDL.py", line 760, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpwgfs80it\build\youtube_dl\extractor\common.py", line 433, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpwgfs80it\build\youtube_dl\extractor\generic.py", line 2795, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: http://hollywoodlife.com/2017/05/19/andi-mack-dad-jonah-sneak-peek-episode-video/
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: http://hollywoodlife.com/2017/05/19/andi-mack-dad-jonah-sneak-peek-episode-video/
Single video: http://hollywoodlife.com/2017/05/05/quantico-sneak-peek-scene-new-episode-video/
Single video: http://hollywoodlife.com/2017/04/18/pretty-little-liars-premiere-sneak-peek-spencer-mary-drake-video/

Description of my *ssue
Can you add hollywoodlife.com? Thanks!

nvm


chore: staking period length for rococo

Staking pallet with period length of 1 block for rococo testing.

no longer relevant


Can't I use my own data for training?

I want to train a tf_regression model with my own data. My data has 12628 molecules, 1 protein sequence,I changed the attribute fields in the data to be the same as the davis data you provided., and they look like this:

Then I ran drive4_d_warm.sh, but I got the following error:
Traceback (most recent call last):
  File "driver.py", line 696, in <module>
    tf.app.run(main=run_analysis, argv=[sys.argv[0]] + unparsed)
  File "/home/zh/anaconda3/envs/deep2.0.0/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 124, in run
    _sys.exit(main(argv))
  File "driver.py", line 278, in run_analysis
    prediction_file=csv_out)
  File "/project/git2/PADME/dcCustom/molnet/run_benchmark_models.py", line 217, in model_regression
    no_r2=no_r2)
  File "/project/git2/PADME/dcCustom/models/tensorgraph/tensor_graph.py", line 178, in fit
    max_checkpoints_to_keep, checkpoint_interval, restore, submodel)
  File "/project/git2/PADME/dcCustom/models/tensorgraph/tensor_graph.py", line 378, in fit_generator
    for feed_dict in self._create_feed_dicts(feed_dict_generator, True):
  File "/project/git2/PADME/dcCustom/models/tensorgraph/tensor_graph.py", line 1107, in _create_feed_dicts
    for d in generator:
  File "/project/git2/PADME/dcCustom/models/tensorgraph/fcnet.py", line 331, in default_generator
    pad_batches=pad_batches):
  File "/project/git2/PADME/dcCustom/data/datasets.py", line 758, in iterate
    next_shard = pool.apply_async(dataset.get_shard, (shard_perm[0],))
IndexError: index 0 is out of bounds for axis 0 with size 0

Why is this happening? Is there any problem with my data? When extracting features, my data has all been removed. Why is this? What should I do?

Again, try to add a phosphorylation field right before A, exactly following my prot_desc.csv format. Ask me if you still have any problems after that.

@simonfqy
My data has been processed in the format of davis data.

But I still can't train, I got the following error:
Traceback (most recent call last):
  File "driver.py", line 699, in <module>
    tf.app.run(main=run_analysis, argv=[sys.argv[0]] + unparsed)
  File "/home/zh/anaconda3/envs/deep2.0.0/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 124, in run
    _sys.exit(main(argv))
  File "driver.py", line 278, in run_analysis
    prediction_file=csv_out)
  File "/project/git2/PADME/dcCustom/molnet/run_benchmark_models.py", line 217, in model_regression
    no_r2=no_r2)
  File "/project/git2/PADME/dcCustom/models/tensorgraph/tensor_graph.py", line 178, in fit
    max_checkpoints_to_keep, checkpoint_interval, restore, submodel)
  File "/project/git2/PADME/dcCustom/models/tensorgraph/tensor_graph.py", line 378, in fit_generator
    for feed_dict in self._create_feed_dicts(feed_dict_generator, True):
  File "/project/git2/PADME/dcCustom/models/tensorgraph/tensor_graph.py", line 1107, in _create_feed_dicts
    for d in generator:
  File "/project/git2/PADME/dcCustom/models/tensorgraph/fcnet.py", line 331, in default_generator
    pad_batches=pad_batches):
  File "/project/git2/PADME/dcCustom/data/datasets.py", line 758, in iterate
    next_shard = pool.apply_async(dataset.get_shard, (shard_perm[0],))
IndexError: index 0 is out of bounds for axis 0 with size 0

This is the content of the bash file I am running:
CUDA_VISIBLE_DEVICES=0
spec='python driver.py --dataset davis \
--model tf_regression --prot_desc_path davis_data/Mer_psc2_Phosphorylated=0.csv \
--model_dir ./model_dir/model_dir4_davis_w --filter_threshold 1 \
--arithmetic_mean --aggregate toxcast \
--intermediate_file ./interm_files/intermediate_cv_warm_3.csv '
eval $spec

@Running-z Have you already stored the trained model in ./model_dir/model_dir4_davis_w? Besides, when you're predicting, please remove the parameter --filter_threshold 1, because that parameter is only used for training and validation, not for predicting.

Hi, I guess the reason is that you used the parameter --filter_threshold 1. This parameter will cause the program to remove any entities (compounds or proteins) that only appeared once in the whole dataset. As you only have 1 protein, all your compounds only appear once in the dataset, causing them to be removed completely from the dataset, rendering the dataset empty.

@simonfqy
I tried the method you said again. I removed the --filter_threshold 1 parameter, but I can't use --split random.otherwise I get the following error:
Traceback (most recent call last):
  File "driver.py", line 699, in <module>
    tf.app.run(main=run_analysis, argv=[sys.argv[0]] + unparsed)
  File "/home/zh/anaconda3/envs/deep2.0.0/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 124, in run
    _sys.exit(main(argv))
  File "driver.py", line 172, in run_analysis
    filter_threshold=filter_threshold)
  File "/project/git2/PADME/dcCustom/molnet/load_function/davis_dataset.py", line 110, in load_davis
    fold_datasets = splitter.k_fold_split(dataset, K)
  File "/project/git2/PADME/dcCustom/splits/splitters.py", line 121, in k_fold_split
    frac_test=0)
  File "/project/git2/PADME/dcCustom/splits/splitters.py", line 844, in split
    assert self.threshold > 0
AssertionError

Then I clone your latest code, run the dirve4_d_warm.sh file and get the following error:
Traceback (most recent call last):
  File "driver.py", line 716, in <module>
    tf.app.run(main=run_analysis, argv=[sys.argv[0]] + unparsed)
  File "/home/zh/anaconda3/envs/deep2.0.0/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 124, in run
    _sys.exit(main(argv))
  File "driver.py", line 175, in run_analysis
    filter_threshold=filter_threshold, oversampled=oversampled)
  File "/project/git3/PADME/dcCustom/molnet/load_function/davis_dataset.py", line 109, in load_davis
    fold_datasets = splitter.k_fold_split(dataset, K)
  File "/project/git3/PADME/dcCustom/splits/splitters.py", line 122, in k_fold_split
    frac_test=0)
  File "/project/git3/PADME/dcCustom/splits/splitters.py", line 917, in split
    assert len(entry_to_write) == 1
AssertionError

The content of drive4_d_warm.sh is:
CUDA_VISIBLE_DEVICES=5
spec='python driver.py --dataset davis --cross_validation
--model tf_regression --prot_desc_path davis_data/prot_desc.csv
--model_dir ./model_dir/model_dir4_davis_w --filter_threshold 1
--arithmetic_mean --aggregate toxcast --split_warm
--intermediate_file ./interm_files/intermediate_cv_warm_3.csv '
eval $spec

Then I removed the --filter_threshold 1 from drive4_d_warm.sh and I got the following error:
Traceback (most recent call last):
  File "driver.py", line 716, in <module>
    tf.app.run(main=run_analysis, argv=[sys.argv[0]] + unparsed)
  File "/home/zh/anaconda3/envs/deep2.0.0/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 124, in run
    _sys.exit(main(argv))
  File "driver.py", line 175, in run_analysis
    filter_threshold=filter_threshold, oversampled=oversampled)
  File "/project/git3/PADME/dcCustom/molnet/load_function/davis_dataset.py", line 109, in load_davis
    fold_datasets = splitter.k_fold_split(dataset, K)
  File "/project/git3/PADME/dcCustom/splits/splitters.py", line 122, in k_fold_split
    frac_test=0)
  File "/project/git3/PADME/dcCustom/splits/splitters.py", line 865, in split
    remain_this_mol_entries = mol_entries[molecule] - removed_entries
UnboundLocalError: local variable 'removed_entries' referenced before assignment

My data format is the same as davis data:

Excuse me, I’m exposing so many problems, but it’s really my confusion, I hope you guide.

@Running-z Hi, I assume that you have only one protein in your interaction file, is that right? If so, the split_warm cannot work, because every compound only appear once in the whole dataset, there is no way to ensure that every compound appears in at least two cross-validation folds. If that is the case, simply remove the split_warm parameter in addition to the filter_threshold 1 parameter.

@simonfqy
In fact, I have 8 kinds of proteins, but not all molecules interact with these 8 proteins. The molecules of each target protein only interact with the corresponding proteins. There may be cases where all molecules appear only once, so I According to the method you said, the --filter_threshold 1 and --split_warm parameters were removed, and then the training was modified to 1 training session, but I still got an unexpected error:
Traceback (most recent call last):
  File "driver.py", line 696, in <module>
    tf.app.run(main=run_analysis, argv=[sys.argv[0]] + unparsed)
  File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 126, in run
    _sys.exit(main(argv))
  File "driver.py", line 378, in run_analysis
    train_score = train_scores_list[h]
IndexError: list index out of range

At the same time, if I remove the --cross_validation parameter, I will be able to complete the training.

@Running-z  Glad to know that you were able to complete the training process. Don't know why there is list index out of range error when --cross_validation is enabled.
My clipboard is malfunctioning now. Please refer to line 288 of driver.py, current version. Previously I made an error in that line of code, I used range(1, fold_num) instead of range(fold_num). It was initially a hard-coded temporary thing to execute cross-validation in different times, but I forgot to fix it after that task was done. If your code uses range(1, fold_num), it could be the source of this problem. Many apologies.

@simonfqy
Ok, I saw the code, the code I used is indeed for h in range(1,fold_num), I will modify it and continue to try, thank you

Seems to be solved. Closed for now.


bitbar.darkMode always returns true

Thanks for creating this!
When I tried the example from the README, bitbar.darkMode always returns true. I have also tried performing a Refresh All without success. Any ideas?
macOS 10.14.4
BitBar 1.9.2

Closing in favor of https://github.com/matryer/bitbar/issues/470


gamma_gamma_fitter.py:66: RuntimeWarning: divide by zero encountered in log

The documentation describes frequency as the number of time periods containing repeat purchases. I'm converting transactional SQL data to RFM so frequency in my case is count(distinct date(date_trans)) - 1 as frequency. This results in a zero for all customers who only made a single purchase. When feeding these samples into the GammaGammaFitter, at https://github.com/CamDavidsonPilon/lifetimes/blob/master/lifetimes/fitters/gamma_gamma_fitter.py#L66 log(frequency) is calculated which causes a divide by zero runtime exception for those zero entries.
What is the correct fix for this?

Remove all samples with no repeat purchases from the GammaGammaFitter data set.
Change the definition of frequency for GammaGammaFitter to include the first purchase by adding 1 to the value.
Something else?

Hey @jhurliman, the correct answer is 1. The implemented model only allows for repeat purchases. The docs here do the filtering you suggest, too.

Forgive me if this isn't the right place for this question, but I've actually been working through this particular process recently. I've read the papers, the docs, and the BTYD documentation. Is there an intuitive reason that the first purchase is not included when modeling a customer's average purchase value? From a code standpoint, I can see why having 0 in the frequency column would result in all weight being placed on the overall average purchase value, but it is unclear to me why first purchases can't be considered for gamma-gamma modeling.
Here's a stackexchange question I made on the subject just prior to seeing this issue, but I don't expect it to get any responses.
The BTYD walkthrough briefly mentions that intermediate steps of the transformation process are exposed so that a user can make slight changes, such as including first purchases by a customer.
That comment can be found on page 5 of this doc, end of section 2.1.

@CamDavidsonPilon I am running into same RuntimeWarning: divide by zero encountered in log even though my data is filtered for frequency > 0.
returning_customers_summary = summary_data[summary_data['frequency'] > 0]
returning_customers_summary[['monetary_value', 'frequency']].corr()

ggf = lifetimes.GammaGammaFitter(penalizer_coef = 0.01)
ggf.fit(returning_customers_summary['frequency'], returning_customers_summary['monetary_value'])

summary_data['CLV_1year'] = ggf.customer_lifetime_value(
    transaction_prediction_model=model,
    frequency=summary_data['frequency'],
    recency=summary_data['recency'],
    T=summary_data['T'],
    monetary_value=summary_data['monetary_value'],
    time=12,
    discount_rate=0
).round(0)

Any thoughts?


replit says node 14 required

how do I install node 14 in replit since when I use glitch the bot goes offline after 30 minutes

You can also user node 16


Contributing guide: improve the (markdown) syntax

Add a missing word.
Wrap the script filename with backticks.

:+1:


Add support for disabled reason with utPLSQL v3.12

With utPSLQL v3.12 we will allow users to provide reason when test is disabled.
See PR 1183
The disabled reason should be consumed by IDE and shown in test results window of utPLSQL.

There is an issue open in PLSQLDeveloper plugin to address the same.
utPLSQL/utPLSQL-PLSQL-Developer#25
@simasch @PhilippSalvisberg @lwasylow
Let's discuss the details of implementation there.

The ut_realtime_reporter in utPLSQL v3.12 does not include the disabled reason. Hence it is currently not possible to show that in the UI. Maybe with v3.13.


Update UG

Summary

Update UG about the separator
Add more tests about Id

Checks

[x] Link PR to issue
[x] Add Reviewer
[x] Pass CI

Codecov Report

Merging #77 (fb15be8) into master (83b6791) will increase coverage by 0.15%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master      #77      +/-   ##
============================================
+ Coverage     72.27%   72.43%   +0.15%
- Complexity      412      415       +3
============================================
  Files            73       73
  Lines          1255     1255
  Branches        129      129
============================================
+ Hits            907      909       +2
+ Misses          315      312       -3
- Partials         33       34       +1

Impacted Files
Coverage Δ

src/main/java/gomedic/model/commonfield/Id.java
92.30% <0.00%> (+15.38%)
:arrow_up:

Continue to review full report at Codecov.

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


[stable/concourse]: use detect as default baggageclaim driver

What this PR does / why we need it:
This PR switches the default baggageclaim driver from naive to detect, so that baggageclaim can take the decision on whether it should use one driver or another based on kernel features and the mountpoint that CONCOURSE_WORK_DIR indicates.
https://github.com/concourse/baggageclaim/blob/538ce58b9dc4896cf7a4ba42a822d0003bbfccf1/baggageclaimcmd/driver_linux.go#L52-L60
Which issue this PR fixes

fixes #14033

Special notes for your reviewer:
I also removed the note under NOTES.txt as now one would need to explicitly opt-in to leverage this driver.
Regarding upgrades:

because we remove all of the contents of the attached persistent volume on start up, the transition should not see any impacts.

Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

@cirocosta, needs a rebase

@YoussB, thx!! Just rebased it 😁

@cirocosta since this might change the default behavior of the chart, does is make sense to change the minor or major version instead of just the patch?


BlockUrls Parameter instructions wrong

Written as: The BlockUrls parameter specifies the URLs that are always blocked by Safe Links scanning. You can specify multiple values separated by semicolons.
Correction to be made: You can specify multiple values separated by commas.
Using semicolons does not work.

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

ID: f989bf3c-3ed0-3dc2-3e9e-4643c85eec9f
Version Independent ID: c14642cb-4623-8f30-cf51-6b8176a6893a
Content: Set-AtpPolicyForO365 (exchange)
Content Source: exchange/exchange-ps/exchange/advanced-threat-protection/Set-AtpPolicyForO365.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

@AzureGuineaPig, OK I fixed it as you described.
Thanks for the feedback.


Update redis-protocol and other crates

Since https://github.com/shotover/shotover-proxy/pull/1854 is blocked on upstream and we have not heard back, lets continue with the upgrade but leave out scylla-rust-driver.
Crates requiring changes to shotover/tests:

redis-protocol - a new argument was added to extend_encode: https://docs.rs/redis-protocol/latest/redis_protocol/resp2/encode/fn.extend_encode.html
we can just pass false which maintains the original functionality.
fred - redis specific prefixes were removed from types.

Since https://github.com/shotover/shotover-proxy/pull/1854 is blocked on upstream and we have not heard back, lets continue with the upgrade but leave out scylla-rust-driver.

Did you mean https://github.com/shotover/shotover-proxy/pull/1840?

yep, my mistake, I meant #1840


--check-additional-checksum should be added.

--check-etag can't be used with SSE-KMS/SSE-C. So, --check-additional-checksum should be added.

released.
https://github.com/nidor1998/s3sync/releases/tag/v1.5.0


Displaying certain Parameter attributes of Parameterized

Is it possible to pick and arrange all Parameters of a Parameterized object? Let's say we have following class:
class Options(param.Parameterized):
    left_slider = param.Number(default=0, bounds=(0, 10))
    left_button = param.Action(doc='Something')
    right_slider = param.Number(default=0, bounds=(0, 10))
    right_button = param.Action(doc='Something')

Now I would like to arange my widgets manually, suppose like this:
ops = Options()
left_side = pn.layout.WidgetBox(ops.params('left_slider'), ops.params('left_button'))
right_side = pn.layout.WidgetBox(ops.params('right_slider'), ops.params('right_button'))
pn.Row(left_side, right_side)

Obviously the code doesn't work as intended, but is there a way to do this?

Sure:
ops = pn.panel(Options())[0]
left_side  = pn.layout.WidgetBox(ops[1], ops[2])
right_side = pn.layout.WidgetBox(ops[3], ops[4])
pn.Row(left_side, right_side)

You can figure out the indexing involved by printing the representation of a Panel object, which shows you that the index of left_button is [0][1]:
print(pn.panel(Options()))

Column(name='Options00104')
    [0] WidgetBox(name='Options00104', width=300)
        [0] StaticText(value='<b>Options</b>')
        [1] Button(button_type='success', name='Left button')
        [2] FloatSlider(end=10, name='Left slider', start=0, value=0)
        [3] Button(button_type='success', name='Right button')
        [4] FloatSlider(end=10, name='Right slider', start=0, value=0)

Alternatively this also works:
class Options(param.Parameterized):
    left_slider = param.Number(default=0, bounds=(0, 10))
    left_button = param.Action(doc='Something')
    right_slider = param.Number(default=0, bounds=(0, 10))
    right_button = param.Action(doc='Something')

left = pn.panel(Options, parameters=['left_button', 'left_slider'])
right = pn.panel(Options, parameters=['right_button', 'right_slider'])
pn.Row(left, right)

Or the same but with the instance as in the original example:
ops = Options()

left = pn.panel( ops, parameters=['left_button',  'left_slider'])
right = pn.panel(ops, parameters=['right_button', 'right_slider'])
pn.Row(left, right)

Or the same but with the instance as in the original example:
ops = Options()

left = pn.panel( ops, parameters=['left_button',  'left_slider'])
right = pn.panel(ops, parameters=['right_button', 'right_slider'])
pn.Row(left, right)

Thank you both very much. Just one quick question:
Can I disable panel to order the parameters alphabetically? (If needed, I can open a new issue)

I'd be happy to have an option to do that.  The sorting is controlled by key_fn in _get_widgets, and one could add a parameter allowing users to supply another sorting function instead.  PRs welcome!

Currently I am fairly busy, but I could try to add that functionality later.


@layer components not working on build/production

Describe the bug
Currently I working on vue 3 using sass and vite-plugin-windicss
When I use yarn dev the template is working well, but when production yarn build my template is broken
After I search it turns out scss file with @layer components not build
Minimal Reproductions
vite.config.js
plugins: [vue(), WindiCSS()],

main.js
import { createApp } from 'vue'
import App from './App.vue'
import './assets/scss/style.scss'

/assets/scss/style.scss
@import "layout/global";
@import "layout/content";

/assets/scss/layout/_global.scss (working both yarn dev and yarn build)
html {
    @apply bg-blue-700;
}

/assets/scss/layout/_content.scss (working only for yarn dev)
@layer components {
   .content {
        @apply min-w-0 min-h-screen bg-red-700;
   }
}

Versions

"vue": "^3.2.19"
"@vitejs/plugin-vue": "^1.9.2"
"@vue/compiler-sfc": "^3.2.19"
"sass": "^1.42.1"
"sass-loader": "^12.1.0"
"vite": "^2.5.10"
"vite-plugin-windicss": "^1.4.7"
"windicss": "^3.1.8"

Additonal Context
I don't know where is the problem, is the bug or I have some error on code, but before I update dependencies to this version everything works normally (I forgot which version is working fine)

It also relevant without Vue. You can use my repo to reproduce: https://github.com/cawa-93/windicss-issue

npm run build
npm run serve

You should see two same paragraphs with white text on blue background

Hi @cawa-93
Do you have temporary solution for this ?
This serious problem for me when production :(

@cawa-93 by default, vite-plugin-windicss only scans files under src, to make your repro work, you need to specify them in your windi.config.ts
import {defineConfig} from 'windicss/helpers';

export default defineConfig({
  preflight: false,
  extract: {
    include: ['index.css', 'index.html']
  }
});

@antfu So CSS files also need to be specified in the extract? It was not obvious to me 😅 That's fix. Thank

Yes, giving the fact that you are "extracting" the layers from them to another entry, we will need to scan them statically before the bundling (since there is no HMR in the build). By default, it will include css if you are working under src folder.

I'm sorry @antfu
This issue is created by me, this issue is about @layer components, I haven't got the solution and why is it closed ?
Thanks

Giving you didn't provide the reproduction I would expect you have the same situation as the one given. You might want to include your assets dir to the extract target.

@antfu
Hmm, do you read my first thread first ?
All issue/ticketing template follow up and every section I describe my problem, you can read on my minimal reproduction
Again, this ticket is about @layer component not working, not about "assets dir to the extract target" because it's written in @cawa-93 problem, and my problem it's different, @cawa-93 just comment on my issue because maybe the problem is same
I have included all assets in the src, but because I said earlier this is the directory of vite, so I assume you understand when I write ./asset it means it is in the src folder
Let me write again with /src, because you always talk about asset dir, and I dont write about "asset dir" in this issue, I write on dev is running, but on production @layer component not working. All style is scan very well on dev, but on production just @layer component is not included on generated build
Please, I just need help, because current this issue show on production, and I have many problem because of it
Describe the bug
Currently I working on vue 3 using sass and vite-plugin-windicss
When I use yarn dev the template is working well, but when production yarn build my template is broken
After I search it turns out scss file with @layer components not build
Minimal Reproductions
vite.config.js
plugins: [vue(), WindiCSS()],

src/main.js
import { createApp } from 'vue'
import App from './App.vue'
import './assets/scss/style.scss'

src/assets/scss/style.scss
@import "layout/global";
@import "layout/content";

src/assets/scss/layout/_global.scss (working both yarn dev and yarn build)
html {
    @apply bg-blue-700;
}

src/assets/scss/layout/_content.scss (working only for yarn dev)
@layer components {
   .content {
        @apply min-w-0 min-h-screen bg-red-700;
   }
}

Versions

"vue": "^3.2.19"
"@vitejs/plugin-vue": "^1.9.2"
"@vue/compiler-sfc": "^3.2.19"
"sass": "^1.42.1"
"sass-loader": "^12.1.0"
"vite": "^2.5.10"
"vite-plugin-windicss": "^1.4.7"
"windicss": "^3.1.8"

Additonal Context
I don't know where is the problem, is the bug or I have some error on code, but before I update dependencies to this version everything works normally (I forgot which version is working fine)

I appreciate the info you have provided but sorry this is NOT a reproduction

You can use my repo to reproduce: https://github.com/cawa-93/windicss-issue

This is.
It's still not clear what's your config, what your setup, and I can't be sure if it's a bug or just misconfigure from the info you have provided. Please note you are asking for help for FREE, while I am still willing to help as I could, but aware that my time is also limited. If you don't bother to set up a minimal reproduction environment, you can't expect me to waste 30 minutes following the steps you describe and maybe find it's a non-problem.


Missing dependencies on default template install on windows

Version
3.1.1
Node and OS info
node 11.2, npm 6.4.1, windows 2012
Steps to reproduce
vue create project
go with default options: babel eslint
What is expected?
No missing dependencies
What is actually happening?
Missing dependencies

Requires different versions of ajv, is this an issue? (version 5 required by eslint, 6 by the rest.)

I'm getting the same warnings on a fresh Linux install
Node v10.14.0, NPM 6.4.1 Vue CLI 3.2.1
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.


[docs] REST API issues

Describe the bug
There are sth wrong with the REST APIs.
To Reproduce
Steps to reproduce the behavior:

Go to https://pulsar.apache.org/docs/en/admin-api-functions/
Check the REST API tabs, and found they do not work.

Expected behavior
It should be displayed as link format, and the link navigates to the REST API pages.
Screenshots

Desktop (please complete the following information):

OS: [ iOS]

Related to https://github.com/apache/pulsar/issues/8853

Closed as stale. Please create a new issue if it's still relevant to the maintained versions.


Define milestones for sponsoring committee

needs to be coordinated with official timeline as per #3.

Looks like they don't use this repo, so closing for now.


No onSceneLoading behaviour

Sight powers that are on don't work when loaded into a new scene. They do work when toggled off and on. (data stored with token rather than actor?)

Not needed.  Reworked with to use _prepareDetectionModes


I cannot use this plugin It has this error

E/flutter (12364): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method readQRCode on channel qrcode_reader)
E/flutter (12364): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)
E/flutter (12364):
E/flutter (12364): #1      QRCodeReader.scan (package:qrcode_reader/qrcode_reader.dart:74:27)
I tried with all the same issues but still the same error.
qrcode_reader:
git: https://github.com/bcko/flutter_qrcode_reader.git

Yeah same error for me too i am not getting any idea hoe to solve it if anyone can help????pls help us

Yeah same error for me too i am not getting any idea hoe to solve it if anyone can help????pls help us

https://github.com/bcko/flutter_qrcode_reader/pull/57#issuecomment-575262152

Did you try
qrcode_reader:
git: https://github.com/bcko/flutter_qrcode_reader.git
in your pubspec.yaml?
Unfortunately I can not publish to pub.dev.

Same problem here!
I decided to change to qrscan 0.2.17 which works fine!

Same problem here!
I decided to change to qrscan 0.2.17 which works fine!

qr scan 0.2.17 does not work to ios be careful

As suggested by @johanhenselmans , use this in your pubsec.yaml
qrcode_reader:
git: https://github.com/bcko/flutter_qrcode_reader.git


finished

Not sure what's going on with merging, been trying to troubleshoot.
For now, our answers are under "files changed".


Problem signing-out from Firebase

I'm having troubble signing-out from Firebase. I'm calling _signOut() when I tap a button:
final GoogleSignIn _googleSignIn = GoogleSignIn();
final FirebaseAuth _auth = FirebaseAuth.instance;

static Future<void> _signOut() async {
    await _auth.signOut();
    await _googleSignIn.signOut();
  }

But when I call googleUser.authentication on my SignIn function it skips the google login page and returns a valid GoogleSignInAuthentication. It seems that the user is not properly signedOut therefore its data is used googleUser.authentication.
What could I do to fix this?

@rma6
The issue at https://github.com/flutter/flutter/issues/26447 has been closed and moved here. Future collaboration on this issue will be done here.

Hi @rma6
If you are still experiencing this issue
with the latest version of Flutter and FlutterFire plugin
can you please provide your updated  flutter doctor -v
and your and your flutter run --verbose/flutter build --verbose ?
Also, to better address the issue, would be helpful
if you could post a self contained app on github
or the steps to reproduce it.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.