text:
Demo Issue 2

This is to test the workflow

This issue has been automatically marked as stale due to inactivity. If no further activity occurs, it will be closed.

This issue has been closed due to inactivity.

authors: alloydsa dkharkwal

repo: alloydsa/Testaction


text:
Copy ~/artifacts.key to working directory, so it is rsynced to duffy

machine.
This should enable rsyncing to artifacts.ci.centos.org directly from
duffy machine (useful for junit results, screenshots, ...).
Signed-off-by: rhopp rhopp@dhcp-10-40-4-239.brq.redhat.com

Len is using this approach in his jobs (https://github.com/almighty/almighty-jobs/blob/master/devtools-ci-index.yaml#L1140). I think it could be beneficial for all jobs. What do you think @kbsingh ? Is it ok to have it in global template, or should I put it just into jobs I'm interested in?

source: gharchive/pull-request

repo: almighty/almighty-jobs

license_type: permissive

license_source: bigquery


text:
[BUG] На телефоне выпадающий список не перемещается вместе с остальной формой

Опишите баг

В виджетах "Заявка" в разделе "Продвинутые" для "Группа", "Тип исполнения заявки", "Сторона", а также в табе Условная для "Условие"
в настройках "Блоттер" и "Стакан"
в Профиле в табах "Общие" и "Уведомления":

при клике на поле с дропдауном (например, Колонки заявок) и свайпе вне выпадающего списка - дропдаун остается в том же месте на экране телефона:
https://github.com/alor-broker/Astras-Trading-UI/assets/88287882/1735b816-f5d6-4ff9-82b3-2c958be83399
Воспроизведение

С телефона авторизоваться в Астрас.
Перейти в блоттер, в раздел настроек.
Нажать на любое поле ввода и свайпнуть вверх/вниз.
Посмотреть на перемещение выпадающего списка.

Среда.
Android 10
Google Chrome v110, Mozilla Firefox
Ожидаемое поведение
При таче или свайпе на область вне дропдауна сворачивать дропадун или также перемещать вверх / вниз относительно экрана телефона.
Скриншоты
No response
Дополнительная информация
No response
Правила

[X] Я согласен следовать правилам

Мы обсудили эту задачу. Так по умолчанию реализовано в ng zorro (нашем UI фреймворке) и мы не видим сильных аргументов чтобы менять это поведение. Поэтому закрою как wont' fix

source: gharchive/issue

repo: alor-broker/Astras-Trading-UI

license_source: github-api


text:
Fail fast if S3 bucket name is not configured in production

Supersedes #159.
The app will now fail fast with a KeyError if the AWS_S3_BUCKET_NAME environment variable is not set in the production environment.
If the environment variable is not set in the development environment then a "null object" version of the S3Storage class is used so that uploads are a no-op. However, note that asset requests using the proxy_to_s3_via_nginx option will fail with a 500 Server Error via the S3Storage::NotConfiguredError exception.
In the test environment, by default the Services.cloud_storage method returns an RSpec stub. This can be overridden by setting disable_cloud_storage_stub: true in the RSpec metadata for an example, context, or spec.
I've updated the README to reflect these changes and indicate which environment variables are required in production.
Fixes #154.

@chrislo: Thanks. I'll get it merged.

repo: alphagov/asset-manager

license: mit


text:
GUA-468 delete stack alerting

WIP whilst I test
How to test
SNS Topic Alerts trigger
Prerequisites
Check the topic SQS DLQ exists:
https://eu-west-2.console.aws.amazon.com/sqs/v2/home?region=eu-west-2#/queues/https%3A%2F%2Fsqs.eu-west-2.amazonaws.com%2F985326104449%2Faccount-mgmt-backend-UserAccountDeletionTopicDeadLetterQueue-gZpDthtNx75m
Check an Alarm is present for the DLQ:
https://eu-west-2.console.aws.amazon.com/cloudwatch/home?region=eu-west-2#alarmsV2:alarm/account-mgmt-backend-dev-UserAccountDeletionTopicDeadLetterQueueAlarm?
Check that the it is not in the alarm state.
Add an event to the queue and check for alarm
gds aws di-account-dev -- aws sqs send-message --queue-url https://sqs.eu-west-2.amazonaws.com/985326104449/account-mgmt-backend-UserAccountDeletionTopicDeadLetterQueue-gZpDthtNx75m --message-body "Test the alarm system"

Check that there is 1 message on the queue
Check that the alarm has gone off in AWS console
Check that you have recieved an email titled:

ALARM: "account-mgmt-backend-dev-UserAccountDeletionTopicDeadLetterQueueAlarm" in EU (London)
Inbox

Once you are done
Purge the DLQ There's a button on the top right next to Delete
Delete Lambda DLQ
Prerequisites
Check the topic SQS DLQ exists:
https://eu-west-2.console.aws.amazon.com/sqs/v2/home?region=eu-west-2#/queues/https%3A%2F%2Fsqs.eu-west-2.amazonaws.com%2F985326104449%2Faccount-mgmt-backend-DeleteUserServicesDeadLetterQueue-oRaAT30LQz35
Check an Alarm is present for the DLQ:
https://eu-west-2.console.aws.amazon.com/cloudwatch/home?region=eu-west-2#alarmsV2:alarm/account-mgmt-backend-dev-DeleteDeadLetterQueueAlarm?
Check that the it is not in the alarm state.
Add an event to the queue and check for alarm
gds aws di-account-dev -- aws sqs send-message --queue-url https://sqs.eu-west-2.amazonaws.com/985326104449/account-mgmt-backend-DeleteUserServicesDeadLetterQueue-oRaAT30LQz35 --message-body "Test the alarm system"

Check that there is 1 message on the queue
Check that the alarm has gone off in AWS console
Check that you have recieved an email titled:

ALARM: "account-mgmt-backend-dev-DeleteDeadLetterQueueAlarm" in EU (London)
Inbox

Once you are done
Purge the DLQ There's a button on the top right next to Delete
Test the integration
Invoke the lambda with a purposefully dodgy set of params
Aim here is to check that the DLQ gets written to if the lambda fails in any way.
Starting with a quieted alarm and empty DLQ invoke:
Visit the Lambda function in aws console. Select "Configure test event" and under template select "SNS Topic Notification".
Save this and hit test. This will be a roughly valid shaped SNS event, but the message is just an example string which should fail.
You should see a new item on the DLQ.
Delete the lambda and write an SNS topic
Aim here is to check that the DLQ gets written to if the lambda is not present
Starting with a quieted alarm and empty topic DLQ.
Go find the lambda in AWS console and delete it.
Get the ARN for your SNS topic
Either check in the console, starting here
OR
 gds aws di-account-dev -- aws di-account-dev -- aws sns list-topics

Fire an SNS event
 gds aws di-account-dev -- aws sns publish \
    --topic-arn SNS_TOPIC_ARN_HERE \
    --message '{ "user_id": "test-to-delete" }'

You should see one Item on the Topic DLQ

After some investigation we've resolved we can't fully test the SNS DLQ. @alex9smith and I are not sure why not... usual plans didn't pan out.
We're keen not to get sidetracked on this. This PR improves alerting. We'll document out 🤔 elsewhere, and move on.
So this is ready for review.

repo: alphagov/di-account-management-backend

license: MIT


text:
PYIC-2621 Change made to store clientOAuthSessionId with ipvSession.

Proposed changes
Store clientOAuthSessionId with ipvSession.
What changed
Update InitialiseIpvSessionHandler to store clientOAuthSessionId with ipvSession.

Why did it change

Issue tracking

PYIC-2621

Checklists
Environment variables or secrets

[ ] No environment variables or secrets were added or changed

[ ] Documented in the README
[ ] Added to deployment repository
[ ] Added to local startup repository

Other considerations

[ ] Update README with any new instructions or tasks

Tested end to end journey in dev.

repo: alphagov/di-ipv-core-back


text:
Fix disappearing fields bug

Brings in https://github.com/alphagov/digitalmarketplace-utils/pull/74 as well as some other fixes to the utils.
This fixes a bug where filtering of the content persisted between requests, causing some fields which should have been shown to start disappearing (terminationCost was the example found by the smoke tests).

Could we add a test for the scenario that shows how the issue occurred? Something like:

Request a SaaS service
Check that terminationCost is not shown
Request SCS service
Check that terminationCost is shown.

@allait Turned your <ol> into code: b0044d1

@quis :+1: It's good to merge, just needs a rebase.

@allait Rebased

authors: allait quis


text:
Replace banners-with-actions with confirm-action page

https://trello.com/c/JhIzksR3/116-2-replace-banners-with-actions-with-confirm-action-page-pattern
Withdrawing and deleting briefs now show a separate confirmation page.

My review checklist
I've:

[ ] looked at the code
[ ] tested locally
[ ] run functional tests locally

🙌

authors: domoscargin lfdebrux


text:
Feature flag for new supplier flow

For this story on Pivotal.
This feature flag will render a new message and button before a supplier starts applying for a brief when turned on. It's currently only set in the base config and can be turned on in different environments when needed.
More feature flags will be needed in the supplier app, and the api when the actual new flow is being developed. This flag is in the buyer app, and clicking the button to start an application takes you to the supplier app. Therefore this flag can only be used for this message, which is a bit weird.
Feature flag not activated:

Feature flag activated:

Nice work 👍

authors: Wynndow idavidmcdonald


text:
Update indexing script

Summary
Update index-services script to have a default mapping (for services) to remain compatible after updates to the search-api/apiclient

I might be missing something, but isn't the "index-services" script always going to index services?  Why parameterise something that will always be services?

authors: TheDoubleK samuelhwilliams

repo: alphagov/digitalmarketplace-scripts


text:
[#141943157]mark_definite_framework_results: make declaration "status" handling "special case"

Story https://www.pivotaltracker.com/story/show/141943157
It was going to be ugly to get the frameworks to automagically generate
an assessment schema that also included the status criteria, and what's
more we already do "special case" handling of the service "status" field.
also change included dos2 schema, no longer including status, to match
this.

Seems reasonable to me.
:+1:

Famous last words

authors: TheDoubleK risicle


text:
Fix page title on local petitions without a postcode

If the user doesn't enter a postcode when searching from the home page or they navigate to the page directly then the page title helper doesn't have a count to pick which translation to use. For this case set the count to -1 so that the :other key is used from the translation.

This is what you currently get on production:

LGTM

authors: alanth pixeltrix

repo: alphagov/e-petitions


text:
Update Node.js to active LTS version

What
Update the project to use the latest active Long Term Support (LTS) version of Node.js for development, testing, and deployment.
Why
This project currently uses Node.js version 14, which has been in maintenance since last October (2021-10-19) and won't receive new features.
Who needs to work on this
Developer
Who needs to review this
Developer, Tech lead
Done when

[ ] Update .nvmrc
[ ] Update package-lock.json to use lockfile v2

We've encountered some issues with this change on Mac M1 devices. They appear to related to node-sass, which we use in our tests and with gulp-sass.
gulp-sass will not support M1 chips with the node-sass compiler.
We've managed to get this working on M1 machines by deleting node_modules, then running:
nvm use
npm uninstall node-sass -g && npm cache clean -force && npm install node-sass
nvm use
npm install

Current theories are that the issue might be related to installing with Node v14, then installing this change, and something going awry in the switch. We're going to test installing straight from this branch and see if a clean install works.
We're then going to decide whether:

We stick to Node 14 for a while
We push the Node 16 update and document these steps for devs to troubleshoot any issues
We look at switching to dart-sass

Additionally, after updating to Node 16, metalsmith-tagcleaner generates a warning during npm install:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'metalsmith-tagcleaner@0.0.2',
npm WARN EBADENGINE   required: { node: '>=4.00' },
npm WARN EBADENGINE   current: { node: 'v16.14.0', npm: '8.3.1' }
npm WARN EBADENGINE }

metalsmith is now being actively developed: https://github.com/metalsmith/metalsmith/issues/365
So it's possible we might be able to drop this extension or get an updated version at some point.
Alternatively, we may want to look at alternatives to metalsmith.

@domoscargin FWIW there is now an official @metalsmith/sass package you can use to replace metalsmith-sass (which uses node-sass under the hood). It uses Dart sass as in your proposed solution and config changes should be minimal.

authors: domoscargin lfdebrux webketje

repo: alphagov/govuk-design-system


text:
Use the same version of marked in our build and our plugins

What
Sync marked version/source across:
@metalsmith/markdown
lib/extract-page-headings
lib/get-macro-options
lib/marked-renderer
Why
@metalsmith/markdown uses marked v4+ under the hood, and this does the heavy lifting of rendering our markdown code to HTML.
However, we also directly depend on marked for some of our plugins which we use to define custom renderers and lexers.
Recently, dependabot tried to bump this direct dependency to the new v5, which resulted in a swathe of deprecation warnings for the mangled and headerIds options.
mangled
We set mangled to false via @metalsmith/markdown, but not in our plugins, so even though we don't need mangling in these plugins, we were still deprecation warnings because we hadn't explicitly disabled it.
headerIds
We use this property to generate ids for our headings. I looked into use the plugin marked recommends instead, but it generated ESM-related errors: https://github.com/markedjs/marked-gfm-heading-id/issues/310
We want to avoid getting warnings or errors like these that only apply to one part of the build process.
Who needs to work on this
Developer
Who needs to review this
Developer
Done when

[ ] Our marked plugins and @metalsmith/markdown use the same version of marked
[ ] We have a way to keep these in-sync (preferably by having each of the relevant modules use the same source marked)

Since v1.9.0 @metalsmith/markdown provides a render option which you could use to force using a locally installed marked version: https://github.com/metalsmith/markdown#using-another-markdown-library.
Since v1.8.0 the options have moved to engineOptions, see https://github.com/metalsmith/markdown/releases/tag/v1.8.0 (this warning is logged when metalsmith.env('DEBUG') contains @metalsmith/markdown*)
I may consider making marked an (optional) peerDependency in the future due to the complications of their switch to extensions vs options (tracked in https://github.com/metalsmith/markdown/issues/70)

Just a note to say marked@8.0.0 has been released so deprecated options have been removed

https://github.com/alphagov/govuk-frontend/pull/4165
https://github.com/alphagov/govuk-design-system/pull/3123

Breaking changes
Heading IDs from Metalsmith's marked@4.3.0 are removed in DesignSystemRenderer() using marked@8.0.0
We've seen this before, since in https://github.com/alphagov/govuk-design-system/pull/3002/commits/21787a8a593b5487d1ba0a64aed58edbb7cc8c5f we noted that jstransformer-marked still needed { smartypants: true } but elsewhere the option was logging deprecation warnings so needed marked-smartypants instead
Using the suggestion above though we could bypass Metalsmith's marked@4.3.0 rendering with:
const markdown = require('@metalsmith/markdown')
const { Marked } = require('marked')

// Use `marked@8.0.0`
const marked = new Marked()

metalsmith.use(
  markdown({

    // Bypass `marked@4.3.0`
    render(source) {
      return marked.parse(source)
    }
  })
)

Deprecated options removed
The renderer bypass would need to use the following packages instead of options:

smartypants: true → marked-smartypants
headerIds: true → marked-gfm-heading-id
highlight → marked-highlight

Since the previous options have now been removed (see known extensions list)

Turns out { renderer: DesignSystemRenderer() } does override by design
From the documentation:

The Marked Pipeline
For example, using marked.use({renderer}) would modify a render, whereas marked.use({extenstions: [{renderer}]}) would add a new renderer.

But handling tokens (not strings) with named extensions lets each one keep their own new renderer:

https://github.com/alphagov/govuk-design-system/pull/3130

Ready for review

Looks like this is done 🎉

authors: 36degrees colinrotherham domoscargin webketje


text:
Add GOV.UK Frontend WTForms package

Adding WTForms Widget package to generate GOV.UK compliant forms. Works in conjunction with the existing GOV.UK Frontend Jinja package.

You can preview this change here:
Built without sensitive environment variables with commit a6028b9c238bdb74011dcb91110ae63103ea8d1b
https://deploy-preview-1532--govuk-design-system-preview.netlify.app

Had a chat with @matthew-shaw on Slack about a couple of the contribution criteria which I was unsure this meets at the moment. We agreed that https://github.com/LandRegistry/govuk-frontend-wtf and https://pypi.org/project/govuk-frontend-wtf/ will be updated to:

make explicit that this is a community resource that uses GOV.UK Frontend and is maintained by Land Registry
add contribution and support info

Thanks for reviewing @vanitabarrett. I've added what we discussed to the package in this pull request https://github.com/LandRegistry/govuk-frontend-wtf/pull/4 Would you mind confirming this meets the community contribution criteria before I merge and release an updated version of the package please? Thanks again.

@matthew-shaw Thank you for making those changes, they look great to me! 💯

@vanitabarrett Thanks. Merged and released a new version of the package: https://pypi.org/project/govuk-frontend-wtf/
Hopefully all good to be added to the community resources page now 👍

FYI I've also applied all the same updates to the sister package GOV.UK Frontend Jinja here: https://pypi.org/project/govuk-frontend-jinja/ so they should both meet the community contribution criteria


text:
Remove errors from phone numbers guidance

Fixes #2022.
Updates the 'links' section of our telephone numbers guidance.
Changes
Current guidance says:

most desktop machines do not support calls - this is untrue so we're changing it
most modern mobile browsers detect phone numbers and display them as links - as above

Also, when users click on linked numbers, it can trigger a Skype setup process or the like. So we're also adding a sentence to tell users to bear this in mind.

@owenatgov Thanks Owen, appreciate the speedy review!

Hey @EoinShaughnessy! I'm not sure what's needed for a review, but I might hop in to second-guess the removal of that second line.
For this line:

most modern mobile browsers detect phone numbers and display them as links

Should we just keep it in and update it to be more accurate?

some modern mobile browsers detect phone numbers and display them as links

Not sure if that'll just add more ambiguity about what to do - but hey, this is a pattern not a component.

@davidc-gds Great suggestion, thanks! Will add in. 👍🏻

@calvin-lau-sig7 Does the update look ok to you? :)

authors: EoinShaughnessy davidc-gds


text:
Draft: 'share user research' guidance

Draft of some guidance to help teams share useful research findings about things in the Design System

@christopherthomasdesign The PR to fix your Markdown code wrapping got merged by the way 👍

https://github.com/alphagov/govuk-design-system/pull/2563

Sorry @calvin-lau-sig7 due to the way Nunjucks renders before Markdown we need to use HTML for the link:
Before
{% set callout %}
Share information responsibly. [You must get informed consent from your participants](https://www.gov.uk/service-manual/user-research/getting-users-consent-for-research) before you can share findings of any research they’ve participated in.
{% endset %}

After
{% set callout %}
Share information responsibly. You must get informed consent from your participants before you can share findings of any research they’ve participated in.
{% endset %}

Otherwise it looks like Markdown is injecting
 tags where it shouldn't

@calvin-lau-sig7 There was one more
 wrapping the govukWarningText()
 so fixed it 👍
-

 {{ govukWarningText({
   html: callout,
   iconFallbackText: "Warning"
 }) }}
-

All passing now and deployment is working again

authors: christopherthomasdesign colinrotherham


text:
Simplify nodemon configuration

We have been seeing some weird bugs with watching the .env file, which this change fixes by simplifying how we use nodemon.
Apart from .env, the only files the user might change that we want to restart the app automatically for are now in their app folder. We can therefore simplify our code by restricting the watch directives to that folder, and remove a bunch of ignore filters.
This should also result in nodemon needing to watch many fewer files, which should hopefully mean more reliable performance generally, apart from fixing the dotenv bug.
This might be a breaking change for users who have put files their prototype files outside the app folder, but in the past we've tried to encourage them not to do that so it shouldn't affect too many users.

@BenSurgisonGDS would you mind checking if this PR fixes things on your machine so it now restarts the app when .env changes like it should?

Hmm, so it seems that this PR doesn't fix things on Ben's machine. I tried getting a test working in CI (see commit ), but that didn't go anywhere either :( I will test on a different Linux machine on Monday, in case it's just Ben's setup, otherwise we should probably just merge this fix and then try fixing the Linux issue later.

I can reproduce the same behaviour I was seeing on macOS (both the issue and the fix) on a machine running a native install of Linux and Node.js 14, and a machine running a native install of Windows and Node.js 16. I'm not sure why @BenSurgisonGDS was seeing different behaviour, but I'm going to call this issue fixed.

repo: alphagov/govuk-prototype-kit


text:
Staff changes

Remove Matt and add Jon

:+1: go merge

authors: deanwilson surminus

repo: alphagov/govuk-terraform-provisioning


text:
Upgrade Ruby to 2.7.0

Upgrade Ruby to 2.7.0, see commits for more details.
        https://trello.com/c/XoJF36Pn/1663-8-upgrade-to-ruby-27

Closing. Sorry for the spam across all the apps!
It turns out that there's a key deprecation which is causing a load of errors in gems that we use. The gem authors (including Rails) are working hard to fix their software, but there's no point us using it until they've done that or we'll get a tonne of warnings (and turning them off is bad practice). Also, it's possible that Rails may only put their fixes into Rails 6 - and in most of the cases we're still running Rails 5.
Platform Health is going back to the drawing board on this one, because it may be that we want to upgrade every app to Rails 6 first.

repo: alphagov/manuals-publisher


text:
Make vault decryption more quiet

Set gpg to be quiet while decripting the vault. This prevents printing
all the recipients of the vault everytime we run ansible.
The same option has been already added to
tsuru-ansible

works, merging

authors: keymon mtekel

repo: alphagov/multicloud-deploy


text:
PP-1717 username in api urls cleanup

WHAT
Modifies pay-adminusers service to use only external id in api endpoints.
Before that we were querying for username and externalId in api endpoints.
This PR replaces username with externalId from the endpoints and services (removes the username condition)
HOW

Modified UserResource and removed is_new_api_request  GET parameter
Modified service and dao layers and removed the username condition
Modified tests and documentation

LGTM 👍

authors: DanailMinchev mrlumbu

repo: alphagov/pay-adminusers


text:
[WIP] Proposal for new validation pattern in connector

This commit illustrates how to use Dropwizard's built in validation
functionality to validate incoming requests. It is quite powerful, and
can do most of (probably all) the things we require of it.
In this commit I have taken one example endpoint
/v1/frontend/charges/{chargeId}/status, and refactored
validation for the PUT method.
I do not necessarily think that the validation logic is right
(in particular the constraint on the value of new_status),
but I have not changed it at this stage, just the implementation.
In order to change as little as possible, I have overridden the
dropwizard default exception mapper (see https://www.dropwizard.io/0.9.2/docs/manual/validation.html)
, so as  to be able to add my own ConstraintViolationExceptionMapper,
which allows me to map ConstraintViolationExceptions to 400 status
code. The returned message is slightly different from before, but
is not any worse IMHO.
In tandem with this change to the validation, I have changed how it
is tested. Instead of spinning up a whole application and db, I have
used the ResourceTestRule that provides a testable resource which can be
interacted with as if it is an http server, whilst allowing mocking
of it's dependencies. This allows tests to complete in ~400 ms as opposed to
~16 seconds before.
To do this I again had to do some fiddling with the exception mapper config,
(see https://www.dropwizard.io/1.3.5/docs/manual/testing.html)
which is the reason for the brillaintly named
ResourceTestRuleWithCustomExceptionMappersBuilder, which encapsulates the needed
changes.

👍 for using ResourceTestRule!!
Generally LGTM; no issues from me.

authors: mrlumbu oswaldquek

repo: alphagov/pay-connector


text:
Updates list of countries with converted headers

Trello: https://trello.com/c/ZegaI995
What's changed?
Update the list of countries in the countries_with_content_headers_converted method ready for go live.
The full list is here: https://foreign-travel-spike.herokuapp.com/api/completed_locations.
Why?
More countries have had their headers converted so we are able to point user to more specific content.
Expected changes

Before
After

⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠

@Rosa-Fox @gclssvglx That sneaky Slovenia! It must have just been converted 😱. It's been added now.

haha I thought it might have been! We can double check them tomorrow before launching too.

authors: Rosa-Fox leenagupte

repo: alphagov/smart-answers


text:
[CLOSED] RSpec3

 Issue by bestie
Monday 28 July 2014 at 13:36 GMT
Originally opened as https://github.com/alphagov/specialist-publisher/pull/193

Cucumber updagraded to 1.3.16
rspec-rails gem removed
Disable should syntax

bestie included the following code: https://github.com/alphagov/specialist-publisher/pull/193/commits

 Comment by kalleth
Monday 28 July 2014 at 15:35 GMT

lgtm :thumbsup:

repo: alphagov/specialist-publisher-rebuild


text:
Add related item to business finance support scheme

Adds the 'Apply for a start up loan' start page as related to the business finance support finder.
See https://trello.com/c/xm4W1SzB

👍
https://www.gov.uk/apply-start-up-loan doesn't exist yet (it's in draft - https://draft-origin.publishing.service.gov.uk/apply-start-up-loan), so it will not show up on the page yet.

authors: andrewgarner tijmenb

repo: alphagov/specialist-publisher


text:
PP: Add 'permit eligibility requirements' to things needed on start page

It's already on the actual start page, just need to add it to the bullet list

Thanks @kateiw 🐐 💯  🙏

repo: alphagov/verify-local-patterns


text:
DO NOT MERGE: BAU: Use later version of hub-saml and verify-saml-libs with fixes

The newer version of verify-saml-libs have fixes to give metadata resolver unique names when adding them to the metric.

There are issues with this set of changes.


text:
Add form to tag Education content to beta taxonomy

For documents belonging to DfE and SFA, show a button to tag to the
Finding Things education taxonomy. This allows stakeholders to keep
tagging content to the taxonomy during beta.
Look & Feel

Trello:
https://trello.com/c/miTSiYfk/409-create-tagging-interface-for-new-taxonomy-in-whitehall
Paired with @MatMoore and @klssmith from @alphagov/team-gov-uk-finding-things

This looks really good!

I moved the mixin from Editions to the various models that include the Edition::Organisations concern, because not every Edition has the organisations association.
As far as I can tell, the only exception is CorporateInformationPage, which isn't relevant to the beta.

This is missing a feature flag as discussed offline

This can only be deployed after implementation of feature flag and the deploy of puppet with the new environment variable (feature flag) https://github.com/alphagov/govuk-puppet/pull/5361

authors: Davidslv MatMoore tijmenb

repo: alphagov/whitehall


text:
Add guidance for images tab on Case Studies, Speeches and Fatality Notices

Trello ticket link
What
Adds guidance for using the new images tab on Case Studies, Speeches and Fatality Notices for users who have the Preview images update permission.
Why
These content types only support image attachments - not file attachments - and hence do not benefit from the recent additions to guidance for content types which support both image and file attachments.
Screenshots
Case Studies

Fatality Notices

Speeches

⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠

@dnkrj yea you're right, I've just pushed some changes to correct this


text:
Add support for OpenEncryptedFileRaw and related functions.

Issue by alphaleonis from Friday Jan 02, 2015 at 19:33 GMT
Originally opened as https://github.com/alphaleonis/AlphaFS/issues/3

Encryption/decryption happens automatically with most of the regular api calls if the right cert is installed.
However there are situations when if the drive was taken out of the computer for forensic analysis, you would need to access the encrypted files.
In that situation there is usually a delegated decryption user's certificate is stated in the encrypted files metadata, usually it is a active directory primary administrator who allowed the EFS to be used by regular users. So you would need to acquire the cert from that admin to the computer which will try to decrypt affected files.
I think think we could add some extra methods when the right Windows license with EFS lands on one of our hands.

Comment by alphaleonis from Friday Jan 02, 2015 at 19:34 GMT

Copied from CodePlex. Comments:
lambchops wrote Feb 14, 2013 at 3:27 AM
Downloaded src to have a look at implementing these functions.... but a little lost as it appears that in the releases folder, there is 1.0 and not 1.5. Looking at the changes log it seems that you are up to 1.6? Functions like File.OpenBackupRead do not seem to be there.
Please advise :) thnx
Yomodo wrote Feb 14, 2013 at 10:37 AM
Hi,
Just download and use the latest development build to start implementing.
Perhaps the BackupFileStream() and/or BackupStreamInfo() classes have what you need.
Regards,
Yomodo


text:
Cannot save external access to GUI

I have used the cmd:
HOST=0.0.0.0 PORT=9000 crontab-ui
Where host = my server IP but as soon as I exit SSH, its not saving and I am unable to access crontab-ui

What do you mean? Just like any program, If it is running in the foreground, it wouldn't work once you close the shell. Either run it as a service or use tmux/pm/screen.

Hi, apologies I'm new to this and only know the basics.
How would I run Crontab-ui as a service, please?

checkout http://pm2.keymetrics.io/

Any chance you can help with how to use that?

I'm not sure why you want to run crontab-ui as a service it creates all the required files.  Are you clicking the "Save to crontab" button?

Maybe I have the wrong idea of the crontab-ui.
The problem I have is, how do I access crontab-ui via the GUI without having to SSH in each time and run it?

You should not have to SSH at all.
1- Open terminal and type crontab-ui and press enter.
You should see something like this:
Node version: 8.10.0
Crontab UI is running at http://127.0.0.1:8000
The http://127.0.0.1:8000 should actually be a hyperlink so when you hover your mouse over it you can see it get underlined and the cursor changes to a hand or something.  Click on it and your browser will open with the crontab-ui GUI.

Yes, that it what comes up when i type crontab-ui but if you browse to 127.0.0.1:8000, my PC is trying to access itself (127.0.0.1 is a loopback)
The server running crontab-ui is a hosted server so is not local to me

can someone help please?

authors: JayBird707 alseambusher charliejsford

repo: alseambusher/crontab-ui


text:
Lifetime of scene::Children bound to parent

Currently, one can't own the children of nodes due to incorrect lifetimes.
fn process(node: gltf::Node) {
    struct Item {
        node: gltf::Node,
    }

    let mut stack = vec![Item { node }];

    while let Some(item) = stack.pop() {
        for child in item.node.children() {
            // Error: lifetime of `child` bound to `item.node`.
            stack.push(Item { node: child });
        }
    }
}

Workaround
        fn clone_child<'a>(
            gltf: &'a gltf::Gltf,
            child: &gltf::Node,
        ) -> gltf::Node<'a> {
            gltf.nodes().nth(child.index()).unwrap()
        }

repo: alteous/gltf


text:
🛑 roothouse-1 is down

In 1f4f763, roothouse-1 (https://rhstatus-proxy.alterine0101.id/?deviceId=roothouse-1) was down:

HTTP code: 404
Response time: 749 ms

Resolved: roothouse-1 is back up in 318041d.


text:
🛑 roothouse-2 is down

In 60d537c, roothouse-2 (https://rhstatus-proxy.alterine0101.id/?deviceId=roothouse-2) was down:

HTTP code: 404
Response time: 259 ms

Resolved: roothouse-2 is back up in a39a307.


text:
Beta lower than one

is it right to have beta lower than one multiplied by KLd?

Good question - this is more a question of what helps empirically. E.g. in some work annealing beta helps: https://arxiv.org/abs/1511.06349
It probably depends on the problem; it's easy to try.
However, leaving beta lower than one is technically incorrect if the goal is to have a well-defined loss function that is a lower bound on the evidence.

Thank you @altosaar , when I have beta = 1 my elbo doesnot decrease , but when I have beta lower than one it decrease, Where I have made mistake you think , do you think writing loss function in a
way you wrote differes results? I wrote simple KLD loss + reconstruction loss , but you wrote in a different form

Can you write the LaTeX form of your loss please? And do you mean your elbo
increases? Can you plot both terms in the ELBO and try annealing beta?
On Wednesday, September 11, 2019, Ivamcoder notifications@github.com
wrote:

Thank you @altosaar https://github.com/altosaar , when I have beta = 1
my elbo doesnot decrease , but when I have beta lower than one it decrease,
Where I have made mistake you think , do you think writing loss function in
a
way you wrote differes results? I wrote simple KLD loss + reconstruction
loss , but you wrote in a different form
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/altosaar/variational-autoencoder/issues/22?email_source=notifications&email_token=ABISE7GCY4UDOKYHJ3DZVP3QJCOA7A5CNFSM4IVOCL32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6NSLUY#issuecomment-530261459,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABISE7AOY5D4VJIWX6UPSKDQJCOA7ANCNFSM4IVOCL3Q
.

@altosaar , My plot shows that for beta=1 my results is worse than Beta lower than 1.

and loss function I have used is `import numpy as np
import torch.nn.functional as F
""" KLD DIVERGENCE"""
def kl_divergence(mu, logvar):
batch_size = mu.size(0)
assert batch_size != 0

klds = -0.5 * (1 + logvar - mu.pow(2) - logvar.exp())

total_kld = klds.sum(1).mean(0, True)
dimension_wise_kld = klds.mean(0)
mean_kld = klds.mean(1).mean(0, True)

return total_kld, dimension_wise_kld, mean_kld

""" RECONSTRUCTION LOSS """
def reconstruction_loss(x, x_recon, ID):
batch_size = x.size(0)
assert batch_size != 0

if ID == 'bernoulli':
    recon_loss = F.binary_cross_entropy_with_logits(x_recon, x, size_average=False).div(batch_size)

elif ID == 'gaussian':
    recon_loss = F.mse_loss(x_recon, x, size_average=False).div(batch_size)
else:
    recon_loss = None

return recon_loss

""" ANNEAL REGULARIZATION """
def anneal_reg(step, anneal):
k = anneal.K
x0 = anneal.X0
ID = anneal.ID

if ID == 'logistic':
    return float(1 / (1 + np.exp(-k * (step - x0))))

elif ID == 'linear':
    return min(1., max(0., step/x0))

else:
    return 1.0

`

Do you think if I wrote my loss function like you , Would I get different results?

Thanks, that's interesting. Were you able to write the LaTeX for the ELBO?
That will help us figure out if we're talking about the same thing.
On Wednesday, September 11, 2019, Ivamcoder notifications@github.com
wrote:

Do you think if I wrote my loss function like you , Would I get different
results?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/altosaar/variational-autoencoder/issues/22?email_source=notifications&email_token=ABISE7A7ZBPSKZBDB2KUF4TQJGFOJA5CNFSM4IVOCL32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6QJJ5Q#issuecomment-530617590,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABISE7FY3ZV7SP4RFJ4MP4TQJGFOJANCNFSM4IVOCL3Q
.

Probably best to start from annealing beta, with anneal_w removed. It
will be easier to understand whether annealing beta helps your task.
Feel free to follow up with me about this via email.
On Fri, Sep 13, 2019 at 2:05 AM Ivamcoder notifications@github.com wrote:

Shouldn't beta be the thing being annealed here? Or are you annealing
anneal_w as well?
beta took different constant values beta=0.01, 0.1, 1 multiplied by
anneal_w , in fact beta change the final value of anneal_w, for example
if beta=1 , the factor of KLD initialize from zero to 1, if beta=0.1 the KLD
factorinitializes from zero to 0.1.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/altosaar/variational-autoencoder/issues/22?email_source=notifications&email_token=ABISE7BVNAICTN3LRD6V6TTQJMURDA5CNFSM4IVOCL32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6UBVZQ#issuecomment-531110630,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABISE7HQGWAIGA4PCQ5R5CDQJMURDANCNFSM4IVOCL3Q
.

authors: Ivamcoder altosaar

repo: altosaar/variational-autoencoder


text:
Query Document Validation

As described in the GraphQL Working Draft, October 2016:
Operations

[x] Operation Name Uniqueness (5.1.1.1)
[x] Lone Anonymous Operation (5.1.2.1)

Fields

[x] Field Selections in Scope (5.2.1)
[ ] Field Selection Merging (5.2.2)
[x] Leaf Field Selections (5.2.3)

Arguments

[x] Argument Names in Scope (5.3.1)
[x] Argument Uniqueness (5.3.2)
[x] Argument Value Type Correctness (5.3.3.1)
[x] Required Non-Null Arguments (5.3.3.2)

Fragments

[x] Fragment Name Uniqueness (5.4.1.1)
[x] Fragment Spread Type Existence (5.4.1.2)
[x] Fragments only on Composite Types (5.4.1.3)
[x] Fragments must be used (5.4.1.4)
[x] Fragment Spread Target Existence (5.4.2.1)
[x] Fragment Spreads must not form cycles (5.4.2.2)
[x] Fragment Spread Possible in Scope (5.4.2.3)

[x] Object Spread in Object Scope (5.4.2.3.1)
[x] Abstract Spread in Object Scope (5.4.2.3.2)
[x] Object Spread in Abstract Scope (5.4.2.3.3)
[x] Abstract Spread in Abstract Scope (5.4.2.3.4)

Values

[x] Input Object Field Uniqueness (5.5.1)

Directives

[x] Directives are defined (5.6.1)
[x] Directives are in valid locations (5.6.2)
[x] Directives are unique per location (5.6.3)

Variables

[x] Variable Uniqueness (5.7.1)
[x] Variable Default Values are correctly typed (5.7.2)
[x] Variables are Input Types (5.7.3)
[x] All Variable Uses Defined (5.7.4)
[x] All Variables Used (5.7.5)
[x] All Variable Usages are allowed (5.7.6)

As of [alumbra/validator "0.1.0"] all validations given in the GraphQL Working Draft, October 2016, are implemented.

repo: alumbra/alumbra


text:
RK-G210S

Здравствуйте!
А возможно ли как-то добавить чайник RK-G210S?

Думаю, будет работать. Выберите ближайший, например RK-G211S.

Пробовал все выбирать, но не подключается. Пишет, что последнее найденное устройство bluetooth - RK-G210S.

Всё работает, в настройках надо ещё имя чайника прописать - RK-G210S. Я единственное в новой прошивке не понял, как выключить мигающую подсветку, когда выключен чайник?

А подсветка была включена из шлюза?

Я прописывал имя "Kettle" и не смог подключится. Сейчас на работе попробую с чайником 200 модели, а вечером ещё раз дома с 210 буду пробовать...

Вообщем к 200 подключился, но управлять ни подсветкой и чайником не хочет! В HA прокинулся без проблем. Управление ни из веб интерфейса, ни из  HA не работает! Только уровень сигнала показывает. И ещё точмозит веб интерфейс...
В чём может быть проблема???

Тип чайника установлен в 200?

А подсветка была включена из шлюза? Если включить и потом выключить подсветку из шлюза, все нормально выключается? Вроде недавно подсветку правил, вроде бы работает. Попробуйте самую последнюю версию.
Подсветка (ночник) работает нормально, включается и управляется через Web и в HA. Я про другую подсветку, которая плавно загорается и гаснет в цвет температуры воды, когда чайник выключен и стоит на подставке.

Я прописывал имя "Kettle" и не смог подключится. Сейчас на работе попробую с чайником 200 модели, а вечером ещё раз дома с 210 буду пробовать...

У меня тоже rk-g210s, если выбрать 211 или 240, то всё работает.

Пришёл домой, всё настроил с 210, работает отлично! И интерфейс не тормозит! Видимо на работе что-то с сетью странное... Спасибо всем!
Ещё вопрос, а зачем настройки часового пояса? Или это для мультиварки?

В последних версиях шлюза на чайник примерно раз в минуту отправляется время. Читал, что чайник с установленным временем как раз и позволяет оценивать температуру воды. Вот только где это отключить, я не знаю, думаю, что в родном приложении должна быть такая опция.
Часовой пояс нужен для установки времени. в то же кофеварке, розетке и чайниках 211 и 240. Но, кроме того, шлюз может быть с экраном, на котором как раз часы, температура дома и на улице, а также на выходе котла, некоторые параметры устройств и снимок с камеры.

отправляется время. Читал, что чайник с установленным временем как раз и позволяет оценивать температуру воды. Вот только где это отключить, я не знаю, думаю, что в родном приложении должна быть такая опция. Шлюз управлять

Ясно! Спасибо! Теперь управление чайником отчилно работает, а то мой RP4 до него с коридора через раз добивает своим блютузом))

Подсветка (ночник) работает нормально, включается и управляется через Web и в HA. Я про другую подсветку, которая плавно загорается и гаснет в цвет температуры воды, когда чайник выключен и стоит на подставке.

Мигающая подсветка, это, если включена функция Световая индикация. Зайдите в настройки родного приложения Redmon и выключите функцию Световая индикация, предварительно выключите шлюз, а после того как выключите эту функцию, включите шлюз и подсветка перестанет мигать.

Мигающая подсветка, это, если включена функция Световая индикация. Зайдите в настройки родного приложения Redmon и выключите функцию Световая индикация, предварительно выключите шлюз, а после того как выключите эту функцию, включите шлюз и подсветка перестанет мигать.

Спасибо, помогло.
Ещё заметил, что в родном приложении режим ночник светит в 2 раза ярче, чем через шлюз. Максимальная подсветка через шлюз это где-то половины яркости если управлять в родном приложении

Добавил яркость подсветки в релиз 2020.10.27, нужно проверить.


text:
Needed to change role name podman to alvistack.podman

This role is awesome but for the "quick start" i needed to change the role name podman to alvistack.podman in molecule/default/converge.yml. Is this an error or did I make a mistake?

Good question with some background history:

In the old bad day before Ansible Galaxy, install Ansible Role with GIT submodule looks much usable for me
During the early day with Ansible Galaxy, we are not enforced with FQCN as https://ansible-lint.readthedocs.io/en/latest/default_rules/#fqcn-builtins now a day
I didn't use any external Ansible Role across my ecosystem, so no FQCN with alvistack.* is required
Now a day Ansible Galaxy handle both Role and Collection (e.g. https://galaxy.ansible.com/alvistack/kube_master and https://galaxy.ansible.com/alvistack/kubernetes) so naming with FQCN looks much important.
As https://github.com/alvistack/ansible-role-podman/blob/master/.gitlab-ci.yml#L8-L12, I will symlink the Role as $HOME/.ansible/roles/podman before running CI with my self-hosted GitLab Runner

Anyway, thank you for your suggestion, and I will give some effort to update all of my Ansible Role / Collection / Docker /Vagrant with Ansible FQCN ;-)

Ah, I see. Thanks for your quick reply :smile:

@g3n35i5 ok let see how its going on: https://github.com/alvistack/ansible-role-podman/commit/0b7641e3ba5e958cded57b843da7edb789b2efbc

@g3n35i5 finally it result as 150+ repo need update across the ecosystem~~~
Thank you very much for pushing this reasonable fix, which delay for quite a while due to my laziness :-(

@g3n35i5 some follow up issue for Ansible Collection: in case roles are managed as git submodule under Ansible Collection, it should be rename as "roles/podman" only without the namespace.
This is because Ansible Collection contents, e.g. plugin and module and roles, are already prefix with alvistack.kubernetes. so here podman become alvistack.kubernetes.podman.
Therefore we couldn't name it as roles/alvistack.podman else become alvistack.kubernetes.alvistack.podman and so invalid :-(

repo: alvistack/ansible-role-podman


text:
🛑 zhibao.itove.com is down

In febe52b, zhibao.itove.com (https://zhibao.itove.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: zhibao.itove.com is back up in 0855b6e after 12 minutes.

repo: alzee/up


text:
Initial setup instructions missing a step for  iOS

I'm on a M1 Mac.
It took me a while to discover that I need to run "dart pub get" first to before the .pub-cache directory was created.
Then
mv ~/Downloads/TensorFlowLiteC.framework ~/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.9.0/ios/
worked and I succeeded in build and running  test app on a connected iPhone.

thank you. This really heps

Stumbled over this comment after hours of trying...
Thank you a ton, finally my app is running on iOS!

authors: CaptainDario YupengLin hapasa


text:
🛑 AllTyres2U is down

In fa16235, AllTyres2U (https://alltyres2u.com.au) was down:

HTTP code: 403
Response time: 937 ms

Resolved: AllTyres2U is back up in e8922dd after 10 minutes.


text:
License

Great sample! What is the license for this code? Thanks.

Sorry I didn't see this, I accidentally had notifications disabled. Just added MIT license.

authors: amacneil robinbobbitt

repo: amacneil/git-banish-large-files


text:
Redlocate endpoint

the /homepage endpoint is currently located in the /error controller, we should move this to its own homepage controller class

issue closed. no notes


text:
How to send the language (locale) code to Fetch operations processed by the Client Side?

Description
I've done all the checks and I've gone through all the documents in detail, but I can't find a solution. I think there's something missing here.
Problem 1:
I want to fetch from the client side (when the document is created). For example, the user will submit a form to the API. I want to create a global fetch function for such later fetch operations and include the locale information in the header of this function so that I don't have to call the useLocale hook all the time.
But it seems that it is not possible to access locale information from outside Next-Intl.
Example: In this example I want to create a function that I can use globally and I want to include the locale information in this function.
(I can send this in Component. But this causes me to run the uselocale() hook on every fetch operation. This is also not useful)
const request = async (method, path, data = {}) => {
  const options = {
    Method,
    headers: {
      headers,
     // "x-locale": *** /** I want to add locale information globally here*/
    },
    body: JSON.stringify(data),
  };

  const respose = await fetch(process.env.NEXT_PUBLIC_API_URL + path, options);
  return await respose.json();
};

const onFavorite = async () => {
   const resrult = await request("POST", "favorite", {id: 4566})
}

<Button.favorite onClick={onFavorite}>

Please tell me how to pass locale information outside the Component of the request() function.
Issue 2:
I want to access locale information from the server side, but the problem is that x-locale information is sent in server side requests. This information is not sent in custom requests on the client side. Also getLocale() does not get the locale code in special requests.
Example:
import { getTranslations, getLocale } from "next-intl/server";

const locale = getLocale();

const t = await getTranslations({ locale, namespace: "home" });

I can't get the locale information from the server side with getLocale. Intl already generates a locale information. I don't understand why this is empty by the API.
I wonder why this happens?
Problem 3:
In some translation files I want to store an array. For example I have a static list of items. Since I am not going to update this list, I want to take it as an array and use it with map. However, I realized that it is not possible to access it as raw, even though I have examined the documentation many times.
Is this feature not available? (It is a must-have feature)
Respectfully
Verifications

[X] I've verified that the problem I'm experiencing isn't covered in the docs.
[X] I've searched for similar, existing issues on GitHub and Stack Overflow.
[X] I've compared my app to a working example to look for differences.

Mandatory reproduction URL
https://next-intl-docs.vercel.app/docs/getting-started/app-router/with-i18n-routing
Reproduction description
Next-Intl should be developed further. It is easy to set up and the documentation clearly answers everything. But it needs to be improved.
The user should be given more access.
Expected behaviour
1 - It is necessary to get the Array/Object array in the translation file in raw format and use it.
2 - The server should be able to get the locale information without any additional settings.
3 - Functions/global functions other than Component should have access to locale and translation information.

Problem 1
The locale can only be read during render, via useLocale() (or await getLocale() in Server Components). If it's a hassle to read the locale for every HTTP call you're making from the client side, you can consider storing it in React Context.
This would enable usage like this in components:
const fetch = useFetcher();

async function onFavorite() {
  const result = fetch('POST', 'favorite', {id: 4566});
}

In this case you can use this opportunity to share other options, like your API URL as well.
Libraries like React Query have this behavior built-in by allowing to configure a global fetcher.
Problem 2
If you're sending the locale consistently via a x-locale request header, then you can read it accordingly via headers().
Problem 3
See arrays of messages in the docs.

I'm going to move this to a discussion since this is a usage question and not a bug report.

authors: amannn salihandic

repo: amannn/next-intl


text:
Module '"next-intl/server"' has no exported member 'getRequestConfig'

Description
I use Next 13.5.3
I follow this guide - https://next-intl-docs.vercel.app/docs/getting-started/app-router-server-components
When I paste this to my i18n.ts (in root directory)
import {getRequestConfig} from 'next-intl/server';

export default getRequestConfig(async ({locale}) => ({
  messages: (await import(`./messages/${locale}.json`)).default
}));

I got this error
Module '"next-intl/server"' has no exported member 'getRequestConfig'
Mandatory reproduction URL (CodeSandbox or GitHub repository)
https://codesandbox.io/p/sandbox/i18n-thzc9v
Reproduction description
Steps to reproduce:

Open codesandbox
Click on VS conde in top right corner
See error in i18n.ts

Expected behaviour
I wait no error
But got an error

Any chance next-intl got installed incorrectly?
When I run your example I also get this error:

Seems like your middleware.ts example is empty.
I'll move this to a discussion since it seems to be a usage question.

authors: amannn nicitaacom


text:
Leetcode Question Number 1290

Leetcode Question Number 1290 solution needs to be added in the repo .
The link for the question is this.
Accepted Languages C++ / JAVA .
You Only need to add the  class Solution in the file.
Make Sure you have read the contributions guidelines before creating an PR.

Assign me


text:
Can I reduce the time it takes to initiate the camera?

I'm working on an application that requires that the device wakes up and takes a picture extremely quickly. So far I've been able to get this down to 267ms which meets spec for the project. But to do this I had to initialize the file system AFTER I initialized the camera. I need to be able to apply settings to the camera that are stored on the SD card. However reading the SD card takes an additional ~250ms which pushes the overall time to picture up to nearly 600ms which is a little longer than I want. I want to see if I can shave off a few more milliseconds.
One of the things I would like to look at is the camera boot process. Right now it shows this:
VOE]ext_in = 0 sync = 0
[VOE]md init success
[VOE]algo ver ea63d5a
[VOE]pack_v 0x0000 0x0002 cus_v 0 iq_id 0 dn 0 day 0 night 1 other 2 offset 224 length 16436 iq_size 32716
[VOE]Ver 0x0001000c Fast3A Cnt AE 1 AWB 1 period AE 5 AWB 1 delay 0 0
[VOE][isp_mod_sensor_init][1581]Errhdr_mode 0 is over sensor driver num 1
[VOE]hdr_mode 0 sensor driver num 1
[VOE]fps: 1880018620, pclk: 0, hts: 1077805056
[VOE]fps max 30.000000 min 5.000000
[VOE]exposure_step 29.629629
[VOE]change sensor mode => 1920x1080@30.000000fps - 'linear'
[VOE]min_fps 5.000000, max_fps 30.000000, exp_step 29.629629
[VOE]md ver 0x6d640100
[VOE]ae ver 0x61650200
[VOE]awb ver 0x77620100
[VOE]cur_hdr_mode = 0
[VOE]VOE MEM Size = 11447 Used=  3550 KB Free= 7897 KB (8086944)
[VOE]stream 0  buffer 0: 0x7054ac00 size 460800
[VOE]stream 0  buffer 1: 0x705bb500 size 460800
[VOE]first_config_osd2_block_num[0]: 1
[VOE]osd2_block_num[0]: 24
[VOE]NV12 640x480 1/30
[VOE]dynamic set fps 0 -> 30 ok
[VOE]sensor power on
[VOE]zoom crop default setting
[VOE]status == 1718
[VOE]buffer size == (0x7063bbc0) (115200 38400) queue(20)

I want to get into the code that generates this output to see what I can tighten up. However I can't seem to find the .c/.cpp files generating this output. I'm seeing header files (.h) but no matching .c or .cpp files. I am also seeing a lot of .a files which makes me suspect that some of the files are precompiled binaries and not source code. Are the source files used to compile those binaries available? Is there a way I could have access to them? Or am I just looking in the wrong place?
Also do you have an environment for this camera that is outside of the Arduino library? The ESP32 had the C-level ESP-IDF. This product is advertised as having RTOS capabilities so is there a C-level library that can be used for development?
Thanks,
Jonathan L Clark

@jonathan84clark
For your situation, yes you are right, the boot process are prebuild as bin files for the SDK to use. For more sensors supported currently there are 2, GC5035 and JXF37.
To go further, I think currently it is very hard to push the whole process faster. You may want to try running your application at multi-thread.

there is a feature FCS, but have not port to Arduino SDK yet

Closed as no further request.


text:
Fix multiprocessing support for Windows binary

The black binary generated for Windows builds would fail on
reformatting multiple files due to a Windows-specific
multiprocessing issue. Fix by calling freeze_support() as
described in Python docs.

I didn't create an issue for this, not sure if that's a required part of the workflow?  If that's preferred, let me know and I'll do it and link this PR to it.

You probably want to add this in blackd.py as well

Pull Request Test Coverage Report for Build 827

1 of 2 (50.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.03%) to 96.064%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

black.py
1
2
50.0%

Totals

Change from base Build 824:
-0.03%

Covered Lines:
2904

Relevant Lines:
3023

💛  - Coveralls

@zsol Added now. At the moment, this binary is not built in CI, but I built it locally with C:\\Python36\\python.exe -m PyInstaller --clean -F --add-data blib2to3/;blib2to3 blackd.py and verified that it fails before the fix and works after.

Thanks!

authors: allhailwesttexas coveralls zsol

repo: ambv/black


text:
React capstone project - Metrics webapp

Raised for React Capstone Project. I have built Air Quality Data Metrics mobile web application using the Air Pollution  API. Following project requirements have been implemented:
Features;

Followed these provided guidelines.

Built a Home Page that:

Build Home Page where is displayed Countris which city Air Quality will be displayed on Detail page. Filtering is enabled through a search field

Build Detail Page tha show the selected city air data metrics in details

Bac Button is add to enable nagation back to the Home Page

Create tests using React Testing Library.

Deployed the project and added the live demo link in the README.md file

Is this a requirement ? How did the first reviewer didn't tell anything about it ?


text:
use constant name not value in documentation.

Problem Statement
Documentation is out of sync with code. Uses constant value and not constant name.
Description of Change
Changes all instances in documentation from value to constant name.
Breaking Change
not
Closes #5

Hey @wadearnold thanks for the PR, looks like there are some compile and linting issues. But overall I think adding an example directory would be a good idea!

authors: madflojo wadearnold

repo: americanexpress/simplemli


text:
Added resources for Git.

Added resources for Git.

Thanks, @yashk2000 for the PR.
I have a few changes, I will do the changes in the evening and merge it then. :tada:

@vchrombie any updates? Any changes I should make?

repo: amfoss/vidyaratna


text:
🛑 KMHARS Main Fiber Line is down

In 6639e1e, KMHARS Main Fiber Line (het09022amj.sn.mynetname.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: KMHARS Main Fiber Line is back up in 15cdc2b after 5 hours, 2 minutes.

repo: amin-IT/kmhars


text:
请问搜索栏怎么设置默认值，比如下拉设置一个默认的选项

请问搜索栏怎么设置默认值，比如下拉设置一个默认的选项，我知道可以在get_page里面直接填充filterform对应的value
,但是还是想问下怎么直接设置

重写get_list_table, 给table添加defaultParams属性.

好的，我试下，

其实有了get_page 重构，这个框架灵活性完全不是问题，感谢作者这轮子，熟悉后，很高效。

authors: amisadmin tomasky

repo: amisadmin/fastapi-amis-admin


text:
Any way to use vercel.json?

As the title says — is there a way to get this excellent GHA to “see” and respect a project’s top-level vercel.json file, such as to provide Cache-Control headers and so forth?

@brycewray
Just place vercel.json in your distribution directory.
https://github.com/amondnet/vercel-action/blob/master/example/angular/src/vercel.json
https://github.com/amondnet/vercel-action/tree/master/example/nextjs
https://github.com/amondnet/vercel-action/blob/master/example/static/vercel.json
https://github.com/amondnet/vercel-action/blob/master/example/express-basic-auth/vercel.json

@amondnet Had already tried without success. It’s a Hugo project that creates the distribution dir (public) on the fly. I suppose I could put it in the static dir and let Hugo copy it there. However, I’ve already found another way, by using a variation on the officially suggested method.
Thanks for the reply!

authors: amondnet brycewray

repo: amondnet/vercel-action


text:
Storyline for Demo-Day: What scenarios to include and how to approach them?

User story

As a team
We want / need have a great demo day presentation
So that we finish the project in style

Acceptance criteria

[ ] POs and one SD have a meeting and think about what scenarios we could show and how we can implement them
[ ] create a documentation and update the rest of the team to have common understanding

Definition of done (DoD)

It builds without errors
code has been reviewed
Build has been made and deployed on a testing environment
Code coverage >75%
All acceptance criteria were met
Documentation updated whenever needed within planning documents (Tabs: Bill of materials, Documentations)
Branch/feature was merged into dev and then main

DoD general criteria

Feature has been fully implemented
Feature has been merged into the mainline
All acceptance criteria were met
Product owner approved features
All tests are passing
Developers agreed to release

Possible Structure Demo day.pdf

authors: Meisterlu codingwithelijah


text:
cannot upload sftp after latest atom update

Atom v.1.0.19
OS Win10x64
Trace:
Error: Cannot find module 'ssh2'
at Module._resolveFilename (module.js:334:15)
at Function.Module._resolveFilename (C:\Users\Стас\AppData\Local\atom\app-1.0.19\resources\app.asar\src\module-cache.js:383:52)
at Function.Module._load (module.js:284:25)
at Module.require (module.js:363:17)
at require (module.js:382:17)
at Object. (C:\Users\Стас.atom\packages\SFTP-deployment\lib\connections\SftpConnection.js:8:21)
at Module._compile (module.js:428:26)
at Object.defineProperty.value [as .js] (C:\Users\Стас\AppData\Local\atom\app-1.0.19\resources\app.asar\src\compile-cache.js:169:21)
at Module.load (module.js:353:32)
at Function.Module._load (module.js:308:12)
at Module.require (module.js:363:17)
at require (module.js:382:17)
at Object. (C:\Users\Стас.atom\packages\SFTP-deployment\lib\connections\ConnectionFactory.js:7:22)
at Module._compile (module.js:428:26)
at Object.defineProperty.value [as .js] (C:\Users\Стас\AppData\Local\atom\app-1.0.19\resources\app.asar\src\compile-cache.js:169:21)
at Module.load (module.js:353:32)

Hi @lightinen,
I will take a look, but it's an old post, maybe it's fixed since updates.
Thank you for your feedback.

authors: amoussard lightinen

repo: amoussard/sftp-deployment


text:
stat failed

hi, i have an error in amphp when i init madeline
Exception:              stat(): stat failed for E:\php\telegram\tbot\session.madeline.safe.php in BlockingDriver.php:47
PHP Fatal error:  Uncaught \danog\MadelineProto\Exception: stat(): stat failed for E:\session.madeline.safe.php in phar://madeline-12bb67bc0618338b71ff507bd50a6b948d48e98e-80.phar/vendor/phabel-transpiler80.amphp/file/src/Driver/BlockingDriver.php:47

Unrelated to amphp, check online why the underlying php function fails for you.
stat failed

the error is about my telegram session,i close it and its work.

authors: amirziaee enumag

repo: amphp/file


text:
[TACHYON-988] Added LocalTachyonClusterResource

This is a Junit rule, which serves as sort-of a mixin for integration
tests. The goal is that instead of creating and managing your own
LocalTachyonCluster for every integration test, you use a
LocalTachyonClusterResource, with some basic defaults, and can employ
per-class or per-method configuration on it.
The rule can also be created as a static class, which means its only
initialized once per suite, rather than once per method.

Thanks for the patch! Really a smart approach to improve integration tests. I left a few questions and please take a look. Thanks.

LGTM

Thanks for adding this rule to better organize the test cases. I like the approach.

+1 LGTM

LGTM. I guess you will have a follow-up PR to rewrite the tests to use this rule, right?

repo: amplab/tachyon


text:
[TACHYON-324] Fix format issue

Previously, Tachyon only delete block files under data folder during formatting worker storage.
and it is not right to format directory by deleting and creating the directory, because the user may doesn't have the privilege in parent directory.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/2861/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/2872/
Test PASSed.

+1 LGTM

authors: AmplabJenkins calvinjia shimingfei


text:
[TACHYON-371] Upgrade release plugin

https://tachyon.atlassian.net/browse/TACHYON-371
Fixes some critical bugs when integrating with newer versions of git.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/2989/Failed Tests: 1org.tachyonproject:tachyon: 1tachyon.master.MasterClientTest.openCloseTest
Test FAILed.

Jenkins, retest this please.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/2990/
Test PASSed.

authors: AmplabJenkins calvinjia


text:
Offline support for React Native SDK

Summary
This issue is to collect customer requests on supporting offline mode for React Native SDK while Amplitude Browser SDK supports offline mode out of the box by https://github.com/amplitude/Amplitude-TypeScript/pull/644.
Leave a comment under this issue with the use causes when and why you need this feature. We will prioritize it and fit into our roadmap.

This would be a very useful feature for React Native as it's more likely to go "offline" then other use cases. E.g, a user is using the app on a train and the 4G reception drops out (either bad area or going through a tunnel). So those events will be lost.
For our use case, the app is used in locations where internet connections are almost guaranteed to be non-existent (underground or remote areas). The phone / tablet connects to our devices WiFi to stream data and once they have completed their scan will then connect to a internet based WiFi.
Being able to keep the events in local storage until there is a successful upload of the event would be vital to us. As in, if the sending of the event fails due to a network issue, it should not be removed from the unsent collection and be available for another retry.

repo: amplitude/Amplitude-TypeScript


text:
AMP Story previews missing

https://ampbyexample.com/stories/introduction/amp_story_hello_world/preview/embed/ 404s. It previously existed, and is the "view story" link from https://ampbyexample.com/stories/introduction/amp_story_hello_world/.
Not sure what happened here. Some of the code around this was fiddled with recently (in #1490 and #1489) but everything works as expected when building from a fresh checkout locally.

https://github.com/ampproject/amp-by-example/pull/1489 is the culprit. Will fix.

authors: ithinkihaveacat sebastianbenz

repo: ampproject/amp-by-example


text:
Improve linking between ampproject/amphtml and amp-by-example

It would be useful to have a better way to reference amp-by-example from the project pages.
For example: a "Check out this component on ABE" badge.

Which project pages are you talking about, amphtml?

Yes, and https://www.ampproject.org/
Let me edit the FR.

I really like Malte's suggestion of having an ABE badge.

authors: juliantoledo kul3r4 sebastianbenz


text:
Carousel lightbox

Fixes #578

Can you please fix the HTML validation error: The id value [ carousel-with-preview ] must be unique. (id-unique)

@sebastianbenz Done!


text:
ULTRA SEVERITY: README.md contains evil word "lazy"

Version  v0.1.0
Severity
Ultra
Summary
Readme file contains prohibited word "lazy".
What kind of issue is this?
The inclusion of the word "lazy" in the README.md file represents a clear violation of the guidelines established by HR Manager Karen. This term is considered unprofessional and carries negative connotations that can contribute to a hostile work environment. Its usage in official documentation sets a poor example for the team and undermines the company's commitment to fostering a respectful and inclusive workplace culture. Moreover, such language can lead to misunderstandings, decrease team morale, and potentially expose the organization to reputational risks. It is imperative that all team members adhere to HR policies by using appropriate and professional language in all forms of communication to promote a positive and productive work environment.
Violated rule
Rule: We don’t tolerate calling anyone lazy here.
Word in question
lazy
To avoid misunderstandings: Please provide the exact line with the inappropriate word in bold text.
[Line 12]:  - Single-letter variable names are lazy. Use more descriptive names.
Link to flawed file
https://github.com/amshamah419/Karen-Inspect/blob/main/README.md
Steps To Reproduce
Read README.md using your favorite browser or text editor.
Appropriate punishment
(IMMEDIATE TERMINATION)
The current behavior
Word "lazy" is present.
The expected behavior
A version of the code which does not contain the word "lazy" in README.md should be released.

This issue also happens to contain the word 'lazy'.

This issue also happens to contain the word 'lazy'.

Could you please provide evidence for this?

Nevermind, I see that you have fixed the issue with an edit.

Thank you for raising this ultra-severe issue. The use of the word "lazy" in the README.md is indeed a violation of our HR-approved guidelines. To ensure compliance with our contributor program, please note that several mandatory trainings remain incomplete for both @Mineshafter61 and @Meltr0n:

Professional Vocabulary Sensitivity Training – Understanding words like "lazy" and why they're problematic.

Respectful Language in Documentation – Guidelines for describing code without offending anyone.

Avoiding the Termination Zone – How to keep commits and documentation "HR-friendly" and avoid immediate termination.

We will have a developer (or feel free to do so yourself once you are compliant with your trainings) revise the README by replacing "lazy" with a more inclusive term, such as "reluctantly efficient", and ensure future language adheres to these standards. We expect compliance with these guidelines in future commits to foster a respectful and positive development environment.
Thank you for your attention to this matter.
Karen from HR 🛑


text:
docs : add WeTransfer to 'Who uses Amundsen?'

Summary of Changes
Adds WeTransfer to Who uses Amundsen? in the README
As a side note, I'm sharing some of the things we did differently. Maybe helpful for some people.

use Kuberenetes Ingress
set up authentication with OAuth Proxy
separate config and application codes by using templated json (i.e .j2) for configuration and render values when passing them to Airflow tasks
use Factory Pattern so that developers with less experience in Amundsen can simply pass job, task, publisher, extractor, loader, transformer and prepare a j2 file.

# returns DefaultJob
runner = DataBuilderRunner(
    job_type=dag_args.pop("job"),
    publisher_type=dag_args.pop("publisher"),
    task_type=dag_args.pop("task"),
    extractor_type=dag_args.pop("extractor"),
    transformer_type=dag_args.pop("transformer"),
    loader_type=dag_args.pop("loader"),
    job_config=dag_args.pop("job_config"),
    logger=logger,
    **dag_args
)

# runs DefaultJob.launch() along with other custom actions
runner.execute()

CheckList
Make sure you have checked all steps below to ensure a timely review.

[x] PR title addresses the issue accurately and concisely, including a title prefix.
[x] PR includes a summary of changes.
[x] My commits follow the guidelines from "How to write a good git commit message"

also @higee , your note is useful for folks who are not familiar with databuilder and its different configs. Maybe you could share that to the slack channel?

authors: feng-tao higee

repo: amundsen-io/amundsen


text:
Type cast before normalize dpt

What does this PR do?
Modifies the feature extractor call to make the inputs to BatchFeature always numpy arrays. This ensures the type of the returned pixel_values matches those requested with return_tensors. The conversion to numpy arrays happens before normalization to ensure consistent rescaling is done on the inputs.
This solution means the return_tensors=None default can stay and that the behaviour is as expected for any combination of the do_xxx flag values.
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[x] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[x] Did you write any new necessary tests?

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

authors: HuggingFaceDocBuilderDev amyeroberts

repo: amyeroberts/transformers


text:
Add support for TYPE_MATCHES relocation

This change adds support for the TYPE_MATCHES relocation to the program.
This relocation backs the type match relation, which is introduced here:
https://lore.kernel.org/bpf/20220620231713.2143355-1-deso@posteo.net/
Signed-off-by: Daniel Müller deso@posteo.net

Thanks!

authors: anakryiko danielocfb

repo: anakryiko/btfdump


text:
fix: additional dir paths windows

Closes #
[optional] What gif best describes this PR or how it makes you feel?

@allcontributors add @illunix for code

authors: brandonroberts illunix

repo: analogjs/analog


text:
Stable API for components

多分需要があるけどどのコンポーネントから手を付ければいいかがわからないのでほしいcomponentをユースケースとともに教えてください

Merge Skinned Mesh

declavatar で切り替えアニメーションを生成する際、マージした状態でアニメーションを生成するようにしたい
他のエディタ拡張などでも、切り替えパターン的にマージ可能なもの同士を自動でマージするような機能を実装する余地がうまれるはず
極論ツールの都合のみで必要な GameObject/Component を手動で生成させたくない

Remove Mesh by BlendShape / in Box

おおむね同上(外部エディタ拡張側のヒューリスティックなどでコンポーネントを付与できるメリットが大きそう)

T&O
ユーザーにワンクリックでできる簡単な最適化機能として、T&Oのアバターへのアタッチを外部から行いたいため

T&Oについては原則デフォルト設定のみでも問題ないですかね

はい

現在要求があるものを #976 で仮に実装してみましたので、使用上で問題ないかを教えていただきたいです。

RemoveMeshByBlendShape, RemoveMeshInBox, MergeSkinnedMesh については問題なさそうです

T&O も問題ありません


text:
Connection aborted due to "bad status line"

http://termbin.com/k7jp
I thought this might somehow be related to the issues that github was having, but I'm still getting this error.
I don't think there's some issue with my repository settings or the path or anything, since it was able to get the image digest of the docker image.

hi @paulcdejean -
From that log output, the suspicious lines are the 'Connection aborted' errors which is indicating that the connection between the analyzer (client) and the upstream services (policy_engine, catalog) is being closed prematurely.
One thing to check is to make sure that the catalog/policy_engine services are not being killed/restarted due to memory pressure, which would show up like this on the analyzer.  Close inspection of the policy_engine/catalog log files should help to determine if this is the case (or other reason), as well as inspection of 'dmesg' on the host that is running the catalog/policy_engine server containers, if possible.
For larger installations/images, especially when there are multiple analyzers, we recommend that 4gb ++ of RAM for the services (which should resolve this, if memory pressure is the core issue!).

We'll close this ticket since some time has passed - please let us know if there are continuing / related issues!

authors: nurmi paulcdejean

repo: anchore/anchore-engine


text:
Package list API should use syft packages (python packages)

As an engine user I expect the product to leverage syft capabilities to produce the listing for Python packages.
AC
In order to support the existing UI client implement a translation layer on syft for the following:

Match the existing packages API call syntax.

Steps to Test

Use the Anchore CLI for known image and compare results to a known image matches.
Look at the anchore_engine/analyzers/modules dir within the anchore container image and ensure the Python analyzer (32_python_packages.py) is not present.
pytest -v standalone/test_package_list runs in the anchore-engine/tests/functional/clients directory reporting Python-related tests that are all passing.

Developer Notes
New tests and fixtures should be added to ensure that before/after changes do not alter the expectations of the system.

The syft cataloger 2.0 work is required to continue further. The existing cataloger uses python-specific utils, where as the golang equivalent will need to piece together the information from multiple file sources --requiring the cataloger 2.0 interface to do so.


text:
ModelInterface and Structure

Please organize the ModelInterface.php and Structure.php files into an interface folder for separation of concerns and modular structure in your project.

I renamed ModelInterface to Structure, renamed Structure to ModelStructure and put ModelStructure into a folder called Structure

authors: andela-ooduye busayo

repo: andela-ooduye/PotatoORM


text:
Fix incorrect added book number

always show added book for the last

https://github.com/andgineer/goodreads-export/commit/1ac07c72b7201084230208034b6b79e7c5117800

repo: andgineer/goodreads-export


text:
MACD difference bar up/down styling

I found that MACD component doesn't support such feature.
Just like class "path.candle.up" in Candle charts.

That's correct, the difference path does not distinguish between positive/up and negative/down. This would have be a new feature.

This would be really useful.

authors: andredumas diaodou nosachamos


text:
🛑 Historisch Museum Den Briel is down

In 214e27c, Historisch Museum Den Briel (https://www.historischmuseumdenbriel.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Historisch Museum Den Briel is back up in 89be377 after 24 minutes.

repo: andreesg/intk-upptime


text:
🛑 Instituto Corpo is down

In 301273f, Instituto Corpo (https://institutocorpo.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Instituto Corpo is back up in 192ecd6.

repo: andrelug/uptime


text:
installing mariadb on mac

I am trying to install mariadb on mac and get the following error:
~/git/ocaml-caqti master
❯ opam install mariadb
The following actions will be performed:
  ∗ install mariadb 1.1.4

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
⬇ retrieved mariadb.1.1.4  (cached)
[ERROR] The compilation of mariadb.1.1.4 failed at "./configure
        --prefix=/Users/zish/.opam/4.12.1".

#=== ERROR while compiling mariadb.1.1.4 ======================================#
# context     2.1.2 | macos/arm64 | ocaml-base-compiler.4.12.1 | https://opam.ocaml.org#71d8d30e
# path        ~/.opam/4.12.1/.opam-switch/build/mariadb.1.1.4
# command     ~/.opam/opam-init/hooks/sandbox.sh build ./configure --prefix=/Users/zish/.opam/4.12.1
# exit-code   1
# env-file    ~/.opam/log/mariadb-55095-0e674d.env
# output-file ~/.opam/log/mariadb-55095-0e674d.out
### output ###
# Could not detect a MariaDB client library

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
┌─ The following actions failed
│ λ build mariadb 1.1.4
└─
╶─ No changes have been performed

~/git/ocaml-caqti master                                                ✘ 31 10s
❯ which mariadb
/opt/homebrew/bin/mariadb

 ~/git/ocaml-caqti  master 

I have run opam update and opam upgrade. I have mariadb installed via brew.
Any suggestions on resolving this error would be greatly appreciated. Thank you.
#UPDATE
I had been meaning to factory reset my machine so I went ahead and did that to erase the possibility that I had some config that was interfering. I get the same error:
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved mariadb.1.1.4  (cached)
-> removed   conf-mariadb.2
-> removed   conf-pkg-config.2
-> installed conf-pkg-config.2
-> installed conf-mariadb.2
[ERROR] The compilation of mariadb.1.1.4 failed at "./configure
        --prefix=/Users/mando/.opam/default".

#=== ERROR while compiling mariadb.1.1.4 ======================================#
# context     2.1.2 | macos/arm64 | ocaml.4.13.1 | https://opam.ocaml.org#28fab8d8
# path        ~/.opam/default/.opam-switch/build/mariadb.1.1.4
# command     ~/.opam/opam-init/hooks/sandbox.sh build ./configure --prefix=/Users/mando/.opam/default
# exit-code   1
# env-file    ~/.opam/log/mariadb-28306-488530.env
# output-file ~/.opam/log/mariadb-28306-488530.out
### output ###
# Could not detect a MariaDB client library

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build mariadb 1.1.4
+-
+- The following changes have been performed
| - recompile conf-mariadb    2
| - recompile conf-pkg-config 2
+-

Thanks

Could not detect a MariaDB client library

ocaml-mariadb doesn't use pkg-config (probably should), so solution is the same as for all such bindings - make sure C compiler can find mariadb includes and libraries. On Linux it means setting/extending C_INCLUDE_PATH and LD_LIBRARY_PATH to point at appropriate directories, on mac it is C_INCLUDE_PATH and LIBRARY_PATH.

authors: idkjs ygrek

repo: andrenth/ocaml-mariadb


text:
Add Numeraire to list of providers

Hi everyone!
We are glad to announce that Numeraire Technologies has been working on a new Bitcoin wallet called Numeraire SwissKnife and a service called Numeraire Account. We are currently in the phase of releasing it to the public and promoting it, seeking engagement and usage from the community.

Creating a Numeraire Account enables you to create your own LN Address (your@numeraire.tech).
Self hosting a Numeraire SwissKnife enables you to deploy your own custom LN Addresses (username@yourdomain.com)

You can find more info here!

Website
Docs

Conflicts are resolved with main. @andrerfneves

Sorry for the delay merging this.

authors: andrerfneves darioAnongba

repo: andrerfneves/lightning-address


text:
🛑 vStream is down

In 622e7a0, vStream (https://vstream.ie) was down:

HTTP code: 0
Response time: 0 ms

Resolved: vStream is back up in 1c2a484 after 1 day, 21 hours, 44 minutes.

repo: andrespitt/uptime


text:
Donations

I tried sending it a tf2 item and it didnt accept it...

Would u like to explain? Maybe show ur code? Cause we can't help u like this.

repo: andrewda/node-steam-guide


text:
🛑 nhcam is down

In 4261623, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in 1439189.

repo: andrewdavies-net/upptime


text:
🛑 plexd is down

In 18f3e1e, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 274 ms

Resolved: plexd is back up in 8cfd4ac.


text:
🛑 nhcam is down

In cc97e2c, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in 31e2387.


text:
🛑 pass is down

In c24c52b, pass ($PASS) was down:

HTTP code: 503
Response time: 383 ms

Resolved: pass is back up in c392612.


text:
addValidationMethod[s] not working

Hey!
I'm working on adding some custom validation. Here's my setup:
import React from 'react';
import Winterfell from 'winterfell';
import SignupSchema from '../forms/signup.js';
import 'moment';
import { default as isPhone } from 'is-phone-number';

export default class SignUpForm extends React.Component {
  constructor (props) {
    super(props);
    Winterfell.addValidationMethods({
      isPhoneNumber: value => isPhone(value)
    });
  }
…

It's throwing:
TypeError: _winterfell2['default'].addValidationMethods is not a function. (In '_winterfell2['default'].addValidationMethods', '_winterfell2['default'].addValidationMethods' is undefined)

and if I console.log(Winterfell)
function Winterfell(props) {
	    _classCallCheck(this, Winterfell);

	    _get(Object.getPrototypeOf(Winterfell.prototype), 'constructor', this).call(this, props);

	    this.panelHistory = [];

	    var schema = _.extend({
	      classes: {},
	      formPanels: [],
	      questionPanels: [],
	      questionSets: []
	    }, this.props.schema);

	    schema.formPanels = schema.formPanels.sort(function (a, b) {
	      return a.index > b.index;
	    });
	    var panelId = typeof this.props.panelId !== 'undefined' ? this.props.panelId : schema.formPanels.length > 0 ? schema.formPanels[0].panelId : undefined;

	    var currentPanel = typeof schema !== 'undefined' && typeof schema.formPanels !== 'undefined' && typeof panelId !== 'undefined' ? _.find(schema.formPanels, function (panel) {
	      return panel.panelId == panelId;
	    }) : undefined;

	    if (!currentPanel) {
	      throw new Error('Winterfell: Could not find initial panel and failed to render.');
	    }

	    this.state = {
	      schema: schema,
	      currentPanel: currentPanel,
	      action: this.props.action,
	      questionAnswers: this.props.questionAnswers
	    };
	  }

Do i need to import the validation utils from somewhere else?

Oh, this is a README issue. The actual way to add validation methods is like so:
Winterfell
  .validation
  . addValidationMethods({});

I'm just pondering, it would probably be nicer to do it the way to README says instead.

ahhh. Yes it may be easier since we're already saying .validation, then .addValidation on top of it is a little verbose. I don't really mind it either way.
Thanks - I'll PR the README once you decide.

I think what the README says should be the correct way. This also may need changing for the error message handlers.

authors: VinSpee andrewhathaway

repo: andrewhathaway/Winterfell


text:
feat: adds variable playbackrate in settings

Adds an option in data.json to play at various playrate (could be an option directly in obsidian)
Adds an option in data.json to start live videos at zero, so that it can play at an increased playbackrate (could be an option directly in obsidian)
Adds 500ms delay onSoundscapeChange (let the player load info before using seekTo() and setPlayBackRate())

Motivation: I enjoy listening to LoFi at x1.25 :)

Hey @AndreCI :)
Appreciate you taking the time to open this PR. 😃
I just released a pretty big update of this plugin that would render your PR unmergeable at this point, so you'll likely need to go back to the drawing board.
Other feedback I'd have before I could consider this contribution:

There should be nothing stored in settings without a physical UI in the settings screen
setTimeout should generally be avoided in the way you're using it as it created an unnecessary race condition

Happy to consider this on a new PR against the up-to-date code base and those feedback items addressed or you can open an issue and I may get to it at some point but in either case, closing this PR for now.

authors: AndreCI andrewmcgivery

repo: andrewmcgivery/obsidian-soundscapes


text:
basic support for comments

Adds support for xml with multi-line xml comments by naively skipping them - doesn't handle nested comments because I'm not parsing xml with those

Sweet!

Yeah, it's way better like that. Thanks!

authors: andrewrk hazeycode

repo: andrewrk/xml


text:
A question regarding the translation of long texts.

In your code, to ensure that long texts do not exceed the model's maximum token limit, you have segmented the text. However, during the actual translation process, all the segmented pieces are included in the context.

Hi @weizjajj , yes that is accurate. We found in our testing that including all the text allows for better reflection/translations since the model has context of the entire text, which would be lost if it is processed piecemeal. Even if this limit is under the 4k allowed output from current LLM vendors, the reflections--and thus, translations--were better when processing at a smaller scale (~1k tokens). If you have any further questions, let me know. If not, we'll close this issue and thank you for trying out the translation-agent!

Wow
On Fri, Jun 28, 2024 at 5:54 PM Joaquin Dominguez @.***>
wrote:

Hi @weizjajj https://github.com/weizjajj , yes that is accurate. We
found in our testing that including all the text allows for better
reflection/translations since the model has context of the entire text,
which would be lost if it is processed piecemeal. Even if this limit is
under the 4k allowed output from current LLM vendors, the reflections--and
thus, translations--were better when processing at a smaller scale (~1k
tokens). If you have any further questions, let me know. If not, we'll
close this issue and thank you for trying out the translation-agent!
—
Reply to this email directly, view it on GitHub
https://github.com/andrewyng/translation-agent/issues/28#issuecomment-2197748745,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AY7DCNDGAEEY3PX2IGCQ3A3ZJXSRTAVCNFSM6AAAAABJ47BMRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJXG42DQNZUGU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Thank you for your response. If I understand correctly, the reason for segmenting the text is to have the model translate only about 1,000 words at a time, and in such cases, outputs of roughly 1,000 or slightly fewer tokens result in more accurate translations than those exceeding this amount, correct? However, doesn't this scenario pose an issue with handling input texts that exceed the model's max_context_length? In my testing process, when attempting to translate the first chapter of a novel from English to Chinese, I encountered an error indicating the input exceeded the model's maximum token limit.

Thank you for your response. If I understand correctly, the reason for segmenting the text is to have the model translate only about 1,000 words at a time, and in such cases, outputs of roughly 1,000 or slightly fewer tokens result in more accurate translations than those exceeding this amount, correct? However, doesn't this scenario pose an issue with handling input texts that exceed the model's max_context_length? In my testing process, when attempting to translate the first chapter of a novel from English to Chinese, I encountered an error indicating the input exceeded the model's maximum token limit.

That would be a case that is not accounted for if it exceeds the model's max_context_length, you're right. However, to the extent that the entire text contributes to improving the translation of a section,(although we didn't test it) I would surmise that it would not have much of a benefit if your text is >8k tokens. So in that case, I don't suppose that the quality would be affected if you break up the text into sections that do fit in the context_length. That is, if your text is greater than max_context_length, it would not affect the quality of the translation to break it up in the same way that it would be if you don't include the full text for the translation of a section.

@weizjajj closing this for now and we welcome follow up questions and PRs in case you see an opportunity for improvements.

repo: andrewyng/translation-agent


text:
Hidden textarea width

Looks like the hidden textarea doesn't respect the width attribute immediately, so the height calculations are off. See this screenshot https://media.giphy.com/media/3ohjUTFNBwe7485jcQ/giphy.gif
I'm not sure about the cause, but setting maxWidth=width to the hidden text area seems to solve it (at https://github.com/andreypopp/react-textarea-autosize/blob/a836fa4e00b4f6885b8593bf65450659200f9197/src/calculateNodeHeight.js#L69 add hiddenTextarea.style["max-width'] = sizingStyle["width"];
Maybe there is some css in my app that is causing this, but hidden textarea should ideally have all styles reset first.

Closing because original author did not provide enough information to handle this.

authors: Andarist gondzo

repo: andreypopp/react-textarea-autosize


text:
Not detecting any data from the Galaxy Watch 4

Is it possible for it to return all steps data from Samsung Health instead of just the phone steps using the HealthData?
I've connected Health Platform and I'm accurately reading the phone steps but steps from the watch are ignored.
I'm using a ReadTimeGroupAggregatedDataRequest
builder.addCumulativeAggregationSpec(
CumulativeAggregationSpec.builder(IntervalDataTypes.STEPS)
.setDataOrigin(DataOrigin.all())
.build());
I've tried changing DataOrigin to "all()" and "fromPlatform()" but it isn't changing anything.
Also when calling healthDataClient.getDevices(), only my phone is returned.
Are watches even supported by the HealthData client?
Thanks

@danJarNC Currently reading merged data is not supported. It will be supported in a future release.

Is there any estimated time when it will be supported? I'd like to feedback to my team, thanks!

It will be in the order of months, rather than weeks (or years).
Out of interest: what's your use case? Are you interested in just step count data, or other data as well?

Yes, we are initially interested in reading steps, distance and calories from Samsung Health, however, it's important that the watch data is included.
Thanks

Hi, I'm also unable to read the data individually from the watch.
healthDataClient.getDevices() returns the watch uid successfully.
Then with ReadTimeGroupAggregatedDataRequest builder,
I set the watch uid like so:
builder.addCumulativeAggregationSpec(
CumulativeAggregationSpec.builder(IntervalDataTypes.STEPS)
.setDataOrigin(DataOrigin.fromDevice(device.getUid()))
.build());
But when I run the readTimeGroupAggregatedData, the callback always returns the same step data as the phone.
Is there anything you can recommend that I could try?

I also try galaxy watch4, android health api always get the phone steps.
But for the user case, user see the total steps is (galaxy watch steps + phone steps) in Samsung health app.
It will confused user, and then said our app occur bug.
So hope api can get the galaxy watch steps or all steps not just phone steps.

I have a similar problem. Please fix it.

Please see https://developer.android.com/guide/health-and-fitness/health-connect for these use cases.

authors: LeFal danJarNC ithinkihaveacat yayajoiiup

repo: android/health-samples


text:
Creating a composition with an edited video and an image applies the image on top of the video as an overlay instead of displaying the image after the video

Version
Media3 main branch
More version details
No response
Devices that reproduce the issue
Pixel 6
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
Create a composition with (1) a video with effects and (2) an image. IE: Code below
    val editedMediaItem = EditedMediaItem.Builder(MediaItem.fromUri(originalVideoUri))
        .setEffects(
            Effects(
                listOf(), // audio effects
                listOf(RgbFilter.createGrayscaleFilter()),
            ),
        )
        .build()

    val introImage = EditedMediaItemSequence(
        EditedMediaItem.Builder(
            MediaItem.fromUri("https://developer.android.com/static/images/shared/android-logo-verticallockup_primary.png"),
        )
            .setDurationUs(1_000_000) // Show the image for 1 seconds in the composition
            .setFrameRate(30)
            .build(),
    )

    val transformedVideoFilePath = createNewVideoFilePath(
        context,
        "some-file-path",
    )

    val transformer = Transformer.Builder(context)
        .addListener(transformerListener)
        .build()

   val composition = Composition.Builder(introImage, EditedMediaItemSequence(editedMediaItem))

    transformer.start(composition
            .experimentalSetForceAudioTrack(true)
            .build(),
        transformedVideoFilePath,
    )

Expected result
Output video showing (1) image and then (2) video with added effects
Actual result
Output video shows video with added effects and image as overlay. Video also stops after duration set for image.
Video shows capturing a screen recording, and then displaying the output video with the code snippet provided above.
https://github.com/androidx/media/assets/5016806/15f1c8d7-c96c-4710-8eba-68b219da4b6d
Media
Video can be recorded through the sample app here:
https://github.com/android/socialite/tree/caren/transformer_demo_with_image_added
by going to Chats > Sheep > Camera > Record video
Bug Report

[ ] You will email the zip file produced by adb bugreport to android-media-github@google.com after filing this issue.

realized this was actually a coding error and that val composition = Composition.Builder(introImage, EditedMediaItemSequence(editedMediaItem)) should be val composition = Composition.Builder( EditedMediaItemSequence(introImage, editedMediaItem))

repo: androidx/media


text:
🛑 GCMS - www.uni-goettingen.de is down

In 3969a71, GCMS - www.uni-goettingen.de (https://www.uni-goettingen.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GCMS - www.uni-goettingen.de is back up in 0076b4e after 8 minutes.

repo: androtelema/upptime


text:
🛑 DCIC is down

In bc632ea, DCIC (https://cs.uns.edu.ar/~devcs) was down:

HTTP code: 500
Response time: 1485 ms

Resolved: DCIC is back up in 761ad4e after 8 hours, 59 minutes.

repo: andrus-code/pagesstatus


text:
Update to node16

node12 is deprecated
Fixes #72

Thanks 😊

authors: DaSchTour andstor

repo: andstor/file-existence-action


text:
🛑 Fundsub landing page is down

In 906f534, Fundsub landing page (https://www.fundsub.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Fundsub landing page is back up in a14daed.

repo: anduintransaction/upptime