text:
[#148234139] Deploy cf-networking-release (enable private applications)

#148234139 Deploy cf-networking-release (enable private applications)
What
We want to use cf-networking-release to enable private networking between
containers and apps in the platform.
In this PR:

We copy the config from cf-deployment, adapting it to use RDS, our own
secrets, CA rotation, etc
Adapt the tests for the new feature.
Enable the related tests from acceptance test.
Add test to avoid vpc peering overlap.

How to review
Code review. Run the deployment and acceptance tests.
You can test the private networking https://docs.cloudfoundry.org/devguide/deploy-apps/cf-networking.html#add-policy
Who can review
Anyone but @henrytk or @keymon

While deploying from master I had one error in the API availability tests, but I do not think it was related.

The admin user in dev environments doesn't get updated to have the additional permissions. This is because the sync_admin_users job is skipped in dev environments.

Scratch that. It does get the permissions, I had to do a fresh login to pick them up though.

I've been testing rotating the certificates following the team manual, and I've run into an issue after the first redeploy (after rotating the CAs). Bosh errored with:
Task 185 | 10:59:43 | Error: 'diego-cell/752b03a9-d9b3-4c68-8a4b-82118b308abc (0)' is not running after update. Review logs for failed jobs: vxlan-policy-agent

On the VM, the vxlan-policy-agent job isn't running. I see the following error in the logs:
{"timestamp":"1524483809.405450344","source":"cfnetworking.vxlan-policy-agent","message":"cfnetworking.vxlan-policy-agent.policy-client-get-policies","log_level":2,"data":{"error":"http client do: Get https://policy-server.service.cf.internal:4003/networking/v1/internal/policies: x509: certificate signed by unknown authority (possibly because of \"crypto/rsa: verification error\" while trying to verify candidate authority certificate \"networkPolicyCA\")"}}

Looking on the VM, I see that /var/vcap/jobs/vxlan-policy-agent/config/certs/ca.crt only contains a single cert, whereas I'd expect it to include 2 while rotation was in progress. I think the instance_groups.diego-cell.jobs.vxlan-policy-agent.properties.cf_networking.vxlan_policy_agent.ca_cert needs to be included in 010-cert-rotation.yml.

Well spotted, I though I fixed all those cases.
There is a test to check every CA which has a corresponding _old CA certificate, is used in the manifest as ((<name>_ca))((<name>_ca_old)).
But in this case I did not even add network_policy_ca_old and the test pass.
Shall we add a test that checks that every <name>_ca certificate must have a corresponding <name>_ca_old one?

Shall we add a test that checks that every _ca certificate must have a corresponding _ca_old one?

I think that's a good idea given we missed this one.

authors: alext keymon

repo: alphagov/paas-cf


text:
[#157737884] Add check for Aiven API token in pipelines script

What
This means that the pipeline will fail early if the API token hasn't
been uploaded, instead of waiting until the post-deploy task before
failing.
How to review

Run make dev pipelines without aiven secrets uploaded, and verify you get a helpful error message.
Upload the secrets (make dev upload-aiven-secrets), and repeat. Verify it now works.

Who can review
Not me.

The code looks good to me having done something similar in #1329, but don't have a dev env to try it in practice.

source: gharchive/pull-request

license: mit

license_type: permissive

license_source: bigquery


text:
PP-10717: Upgrade Docker Java image

Image location.

@nlsteers fixed

repo: alphagov/pay-cardid

license: MIT

license_source: github-api


text:
BAU simplify cypress

Review specifying Cypress version for build env.

Closed marked duplicate

authors: nlsteers sfount

repo: alphagov/pay-frontend


text:
Move custom start button text to StartNodePresenter

This moves the custom start button text from StartButton to the ERB templates for the Smart Answer start pages. This allows us to access the custom start button text from the StartNodePresenter which will make it possible to send this content to the Publishing API as part of PR #3126.
Note that calculate-your-child-maintenance is the only Smart Answer that has custom start button  text at the moment.
https://trello.com/c/arlZczQO/423-2-republish-smart-answer-part-year-profits-to-finalise-your-tax-credits-start-page-as-a-transaction-page

Thanks, @chao-xian! I'll get it merged.

repo: alphagov/smart-answers


text:
Change job link in humans.txt

Will change https://www.gov.uk/humans.txt

The route is here: https://github.com/alphagov/static/blob/c8346267ecbf29ac9c8b1152ce2e8afaf1976e37/lib/tasks/publishing_api.rake#L8-L14

Where's the "Thanks Martha"?

@chao-xian Also here: https://github.com/alphagov/static/blob/6a0d8a619e56063c81c193458bff92618f163306/app/views/root/homepage.html.erb#L13.

@chao-xian suggest an edit! :-)

authors: bilbof chao-xian issyl0

repo: alphagov/static


text:
setting up template

i was wondering if there were any issues with the template? my colleague and I are trying to set up middleman using the template provided and the page doesn't load properly but we are both getting different results. mine doesn't load at all but my colleagues loads but not correctly.

Hi, sorry to to hear you're having trouble. Do you have any other information about the problem? When a page doesn't load property, what's the last thing you or your colleague sees, either in the browser or the terminal?
Do you have the new search functionality enabled? We've been having a few issues with the bundle exec middleman serve process hanging when search is enabled.

Hi, it looks like we managed to get it working. We just deleted everything and started again. Not sure why we were both getting different issues but at least it's working now :)

source: gharchive/issue

authors: katie-longstaff lewisnyman

repo: alphagov/tech-docs-template


text:
Send draft item links to Publishing Api

links information is missing in the publishing-api for draft content.
This is causing errors when importing data into Content Publisher as draft documents are missing primary_publishing_organisation within links.
This task will patch the links information for draft documents. It looks like it was previously only run for published and withdrawn content.
It seems like we may be encountering this issue for similar reasons to: https://github.com/alphagov/whitehall/pull/2792#issuecomment-255812139 - only in our case for draft rather than withdrawn content.

Thanks for putting this together Rosa.  Have we looked into this was a legacy issue for old draft NDA content, and whether patching links occurs automatically if an organisation creates new content now?  My concern is we would need to remember to run this right before kicking off the import process.
Could you also add a link to the Trello card in the description?  A link to this PR will then automatically get added to the card.

@emmabeynon I tested on Whitehall integration and drafts do have the links data when created, so it should be a case of fixing the existing draft documents.
Will link the PR :)

authors: Rosa-Fox emmabeynon

repo: alphagov/whitehall


text:
Topical event  about new page to design system. .

This PR transits new topical event about page to gds.
It does the following.

Duplicates existing new topical event about page to legacy.
Added design system logic to the controller.
Created new topical event about page.
Fixed the existing tests.

Screen shots:

With errors:

With success message:

Trello:
https://trello.com/c/lOEiufQ0/271-new-about-page

Looking good so far @farahTW just some design adjustments:

Could we update the title to "New about page" instead of "Create page about Autumn Budget 2017"
Lets use the caption above heading: "Autumn Budget 2017"
Can we decrease the space between the page title/heading and Warning Text from 50px to 30px

Just had a 1-2-1 with @farahTW. Design updates made during call and it looks really good. Great job 👍🏽

authors: farahTW nnagewad


text:
"proxyconnect tcp: EOF" using proxy

To use this tool to connect to some specific servers (like Instagram, Twitter etc.) which are censored by my ISP I must use a proxy server,
I've used
export socks_proxy='http://127.0.0.1:20170'
export http_proxy='http://127.0.0.1:20171'
export https_proxy='https://127.0.0.1:20171'

commands to export these variables and they work fine when curling ifconfig.me (it shows my proxied IP)
but I get various errors (each time a different one) ending in proxyconnect tcp: EOF
this is an example
v2.3
https://github.com/alpkeskin/
Now: Wednesday, 15 Feb 2023
   0% |                                              | (0/100, 0 it/hr) [0s:0s]panic: Get "https://www.google.com/search?q=intext:\"someone@gmail.com\"&hl=en": proxyconnect tcp: EOF

goroutine 21 [running]:
github.com/alpkeskin/mosint/cmd/controllers.Googling({0x7ffe2c1c33b9?, 0x1?})
	/Users/alpkeskin/Desktop/mosint/cmd/controllers/googling.go:18 +0x1d8
github.com/alpkeskin/mosint/cmd.Do.func1()
	/Users/alpkeskin/Desktop/mosint/cmd/handler.go:49 +0x32
github.com/gammazero/workerpool.worker(0x0?, 0x0?, 0x0?)
	/Users/alpkeskin/go/pkg/mod/github.com/gammazero/workerpool@v1.1.3/workerpool.go:237 +0x2a
created by github.com/gammazero/workerpool.(*WorkerPool).dispatch
	/Users/alpkeskin/go/pkg/mod/github.com/gammazero/workerpool@v1.1.3/workerpool.go:197 +0x2dd

this is another one
v2.3 https://github.com/alpkeskin/ Now: Wednesday, 15 Feb 2023    0% |                                              | (0/100, 0 it/hr) [0s:0s]2023/02/15 09:58:06 Post "https://discord.com/api/v9/auth/register": proxyconnect tcp: EOF
what's the proper way to use proxy using mosint?

Bugs have been fixed in the new version (v3.0.0). Ensure the config file is configured correctly for Mosint to work properly.

authors: alpkeskin itselamir

repo: alpkeskin/mosint


text:
[BUG] Contributing docs link to non-existent part of the repository

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
It seems that the website is no longer available in site subdirectory of this repository but it's still linked in the contribution docs. I was hoping to send a PR for #2713 but I can't find any up-to-date link on how to do so.
Expected Behavior
Contributing guides should include details on how to contribute to the website and docs or the section should be removed
Steps To Reproduce

Go to https://altairgraphql.dev/docs/contributing#documentation-📖
Click on "repo" part of "The content of this site is stored on the repo as well,"

Environment
- OS: Any
- Browser: Any
- Platform: website
- Version: Any

Additional context
No response

Thanks for reporting!

repo: altair-graphql/altair


text:
Implement Vega-Lite 4.0 transforms

Vega-Lite 4.0 adds a number of additional transforms, including density, loess, pivot, quantile, and regression. These can't be fully supported until Altair 4.0 comes out, but we could start implementing them before that.

I was wondering if for these transforms the calculated values will now be accessible, as the current release of altair is 4.1.0?
Especially I would like to extract the values of a density transform, but get the NotImplementedError.
My current way around is to calculate a KDE outside of altair (using SKLearn, as @jakevdp recommended here). But it would be great if I was able to do it from altair directly because of the easy groupby functionality it provides.

Some of these transforms have been implemented on master, but there hasn't been a release of this package for a while/

authors: jakevdp robna

repo: altair-viz/altair-transform


text:
Not full info about error

Description of the problem
i have an error in my scripts, but i can't find what exacly happends. It doesn't show full info about error. I just have
[16:24:22] [V8] Starting script client/index.js
[16:24:22][Error] [V8] Unhandled promise rejection at diserv::13 (Error: 1 or 2 arguments expected)
[16:24:22][Error]   at [anonymous] (:13)
Reproduction steps
i don't know because i can't find what happened
Expected behaviour
info about error
Additional context
No response
Operating system
win 10 64
Version
10,5 release
Scope
client

The info there is the info V8 provides, if there is no more info; I can't do anything to change that.

@LeonMrBonnie i think he means this:

clientside startup errors are not displayed correctly because of the js bootstrapper

authors: LeonMrBonnie dominion56 xxshady

repo: altmp/altv-js-module


text:
doubts on funchook?

hey very interesting project, but is the hooking method not going to be detected since it uses generic approaches such as trampoline hooking? took a look at other projects and they're using kiero/minhook

Mh also trampoline lmao, changing to another hooking library doesnt make ur code magically undetected

Yes this hooking is probably detected

You can do inline hooking if you have a proper VAC bypass.

authors: asm00009 maecry pogrammerX slow-dev


text:
🛑 stamp.itove.com is down

In 7499302, stamp.itove.com (https://stamp.itove.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: stamp.itove.com is back up in 9600148 after 14 minutes.

repo: alzee/up


text:
🛑 hbljk.cn is down

In 0a2a178, hbljk.cn (https://hbljk.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: hbljk.cn is back up in 709aef8 after 13 minutes.


text:
Migrate to package:ffi 1.0.0

Makes this package compatible with Dart 2.12 and package:ffi 1.0.0.
Tested locally on iPod.

@am15h, CI for Android fails with requiring Dart 2.7, can we update this to Dart 2.12-beta.9?
(Also, the iOS CI fails completely and has been for a while looking at past commits.)
@mit-mit PTAL at the migration.

I just added an issue to that topic and wanted to make a PR, then I saw yours. Phew!

@dcharkes Thanks a lot for the PR.

@am15h, CI for Android fails with requiring Dart 2.7, can we update this to Dart 2.12-beta.9?

Sure, I will update this.

(Also, the iOS CI fails completely and has been for a while looking at past commits.)

The current setup using GitHub actions isn't working well, it requires constantly updating the ios device version and some time ago it started exiting flutter driver after executing some intitial tests, (I tried to troubleshoot it here).
I am planning to shift CI to code magic. Please let me know if there is a better option.

@dcharkes Thanks a lot for the PR.

@am15h, CI for Android fails with requiring Dart 2.7, can we update this to Dart 2.12-beta.9?

Sure, I will update this.

(Also, the iOS CI fails completely and has been for a while looking at past commits.)

The current setup using GitHub actions isn't working well, it requires constantly updating the ios device version and some time ago it started exiting flutter driver after executing some intitial tests, (I tried to troubleshoot it here).
I am planning to shift CI to code magic. Please let me know if there is a better option.

cc @mannprerak2 how does our setup on package:ffigen work?

@dcharkes the CI for package:ffigen is much simpler than this one, since we only run dart tests, the initial setup is also quite simple since all we need to do is install libclang (llvm), overall structure however seems similar.
The errors all seem very weird to me, I think code magic might be better, especially when it comes to iOS, but I don't have any experience to say.

Sure, I will update this.

Okay, let's see if the Android CI turns green after that.

@dcharkes the CI for package:ffigen is much simpler than this one, since we only run dart tests, the initial setup is also quite simple since all we need to do is install libclang (llvm).

Ah yeah, of course. We don't do any Flutter things on that repo.

@dcharkes Thanks again for this migration, I have merged the PR and updated the CI workflow, unfortunately it is still failing. Logs: https://github.com/am15h/tflite_flutter_plugin/runs/2020313197?check_suite_focus=true

Hey, now that Flutter 2 is released, can you try bumping the SDK constraint to Flutter 2? I'd hope Flutter driver is migrated to null-safety in the release.
Alternatively, you could pass the --no-sound-null-safety flag.
Let me know if you need more help.

Unfortunately, these two steps do not resolve the error. You may have a look at the latest 3 commits in update_workflow branch and latest logs

Seems like the flutter driver doesn't run with sound null safety yet.

@am15h Will you publish it on pub.dev as 0.6.0 version?

Sorry for the delay @tomk9, v0.6.0 is now published.
Thanks @dcharkes for the PR and @mannprerak2 for the help in fixing ci. Android is now green.


text:
🛑 Amagno Business Cloud (Main) is down

In 44fa61c, Amagno Business Cloud (Main) (https://amagno.cloud/amagnoservice/amagnoservice.svc) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Amagno Business Cloud (Main) is back up in 5cd9e9b.

repo: amagno-io/upptime


text:
Add pngquant optimizer

Pngquant reduces filesize by about 70%.

Pls test if everything works ok on mac.(default optimizer is still optipng, changeable in preferences)

Well, what the results of optimization you get?

No optimization: 95,2KB
Optipng Level 3: 91.8KB
Pngquant:           26.5KB

No optimization: 145KB
Optipng Level 6: 140KB
Pngquant 6: 40KB! oO
Level 3 == 6 for all
Pngquant - result != original quality :(

Yes the slider has currently no effect. Thats to expect in contrast to optipng pngquant is not lossless, your sacrifying quality for filesize(but the results are mostly pretty good).

I dont know... only
connect(ui->trimSpinBox, SIGNAL(valueChanged(int)), this, SLOT(propertiesValueChanged(int)));
for all items

Well, then i have to do that for all properties that are saved in the project file.

authors: TheCodez amakaseev

repo: amakaseev/sprite-sheet-packer


text:
Fix CPU mode

torch.cuda.is_available() would return true if the user has a GPU with CUDA ready, argument check should be present here

You raise a very valid point. Merged your changes in.
Thanks!

authors: amanchadha imPRAGMA

repo: amanchadha/iSeeBetter


text:
Next.js - Navigation between pages in the pages router loses translations.

Description
I've cloned the "App router migration" example, added two basic test pages in the pages router with translations strings and links using the the link component wrapper exported from the next-intl navigation file, and deployed to a serverless environment representative of the hosting environment used at the company I work via default SST configurations for a Next.js project.
When running the application locally in development mode, there are no issues and behaviour is expected.
When building the application for production and running the built application locally, the behaviour is as expected.
However, only on the deployed version of the application when transitioning via a link between two pages from the page router, the translations are lost, and the translations keys show on the page which is transitioned to.
This does not happen when transitioning between two app router pages.
Please check the reproduction URL to observe the behavior.
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://d3gc586bjowmi6.cloudfront.net/en/about
Reproduction description
Steps to reproduce:

Open reproduction url (linked page is a pages router page)
Click on "To test2" link (another pages router page)
Observe that all translations on the new pages have become their translation keys, and the browser console reports "MISSING_MESSAGE".
Also observe that all translations are correctly in the pageProps of the page contents + prefetch of the test2 page.
Refresh the page that is incorrectly showing the translation keys.
Observe that the refreshed page shows the translation strings.

Expected behaviour
Clicking on links to go between pages should show the newly navigated page with it's translations, and not it's translation keys and browser console should not throw errors.

could be a issue parsing your messages file. I would check if they have an identical structure across languages and theres nothing wrong

Really haven't seen that behavior before! It's unfortunately a bit hard to say what's going wrong here, esp. if everything is working correctly locally.
From the currently available information, this sounds more like a deployment issue. Maybe you can try to diagnose and diff the requests for subsequent navigations between the deployed version and what you're seeing locally (headers, payload, …)?

authors: SoloReverse amannn rhoiyds

repo: amannn/next-intl


text:
serial: A proposal to add verification using formal tools

 Issue by HarryHo90sHK
Friday Jan 03, 2020 at 06:47 GMT
Originally opened as https://github.com/m-labs/nmigen-stdio/pull/4

On this pull request, I propose modifications on @whitequark's UART / asynchronous serial transmitter/receiver that would introduce a way to formally verify the I/O. The major changes include:

Deprecated nMigen syntax (e.g. FFSynchronizer, nmigen.tools) have been eradicated.
AsyncSerialRX now has the following signals: ack for enabling transfer of received data to another module, busy for indicating ongoing data reception, and r_rdy for indicating whether or not the received data is ready to transfer.
AsyncSerialTX now has the following signals: ack for enabling transmission of data from another module, busy for indicating ongoing data transmission, and w_done for indicating whether or not the data has been transmitted.
The data bits are now ordered in ascending significance of bit, i.e. LSB is transmitted first, MSB is transmitted last.
Two test cases (AsyncSerialLoopbackTestCase and AsyncSerialBitstreamTestCase) that use a formal verification approach has been added to nmigen_stdio.test.test_serial. In short, they use Bounded Model Checking to check if the desired states (e.g. "DONE" for correct data transmission, or "ERROR" for data with errors) can be reached within certain numbers of cycles, usually equal to the duration that starts before the RX/TX is enabled and ends after the RX/TX asserts r_rdy/w_done.

I will provide further useful descriptions and explanations later on. I look forward to seeing further comments, thanks.
Edit: the version check in setup.py will be modified according to the final decision.

HarryHo90sHK included the following code: https://github.com/m-labs/nmigen-stdio/pull/4/commits

The PR is outdated and the author is no longer working on it.

authors: nmigen-issue-migration whitequark

repo: amaranth-lang/amaranth-stdio


text:
Amaranth emitted invalid Verilog (Amaranth conditionals containing only comb assignments results in Verilog "empty case" error)

Using Amaranth (0.4.dev198+g05cb82b) to target Cyclone V (Analogue Pocket), which means generating Verilog which gets parsed by Quartus. Got an error of invalid Verilog from Quartus.
Errors contained phrases such as

near text: "endcase";  expecting an operand
near text: "end";  expecting "endcase"
near text: "always";  expecting "endcase"

Repro code:
https://github.com/mcclure/analogue-core-template-amaranth/tree/control-test COMMIT 2354a5e
Build steps (contains system local paths):
(cd src/fpga/amaranth_core/ && python.exe -m pdm generate) && \
(cd src/fpga && /mnt/d/intelFPGA_lite/22.1std/quartus/bin64/quartus_sh.exe --flow compile ap_core)

Error messages:
quartus_errors.txt
Referenced amaranth_core.v:
amaranth_core.v.txt
This code is a slight modification of code which worked.
I have not yet tried clearing my pdm.lock.

Cleared pdm.lock, upgraded to Amaranth 0.4.dev214+gc7da6c1. No apparent change. Can re-upload errors/core.v from new code if helpful.

Looking at the error site:
In my code, I have this complex tree of checking conditions such as "bottom_left_diag" "top_left_diag"
Based on this I set various values in the "comb" domain
The way it has been described to me amaranth comb signals "do not exist"
That is, it ought to be no actual verilog will be emitted at the point where they are set. Instead they are inlined into some other expression later
Amaranth is emitting the tree of IFs but putting nothing inside them (possibly because nothing is inside them but combs, which do not exist)

The way it has been described to me amaranth comb signals "do not exist"
That is, it ought to be no actual verilog will be emitted at the point where they are set. Instead they are inlined into some other expression later

I... don't think that's accurate at all?

I... don't think that's accurate at all?

Okay. Well in any case these case statements were empty as if their contents had been optimized away.

In my testing, this is fixed by https://github.com/YosysHQ/yosys/pull/3992
(With that patch, my code will successfully build. When run, the code paints a black screen. Because this is the first time I have compiled it, it is as of yet unclear to me whether that is correct.)

Update: Fixed some logic bugs so the screen is no longer back and can confirm, yosys#3992 fixes the issue

@wanda-phi Is this something that was broken in Yosys since forever, or is this relatively new? Asking because we might want to update the Yosys version constraint in response to this issue.

I'm reasonably sure that has been broken since forever.

Thanks. In that case once the upstream PR gets merged I'll need to bump amaranth-yosys dependency and also required Yosys version.

It has already been merged.

Ah right. In that case I'm waiting until the next version bump so that I can do something reasonably consistent in face of this monstrosity.

Yosys 0.35 was released, so that can become our new Yosys requirement.

authors: mcclure wanda-phi whitequark

repo: amaranth-lang/amaranth


text:
不知道为什么出现下面的问题

执行 npm install；
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "D:\DevelopPros\nodejs\\node.exe" "D:\DevelopPros\nodejs\no
de_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v0.12.1
npm ERR! npm  v2.5.1
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: amazeui-react@'>=1.0.0 <2.0.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["1.0.0-alpha3","1.0.0-beta1"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! Please include the following file with any support request:
npm ERR!     D:\reacttest\react-starter-kit-master\npm-debug.log

打开项目根目录下面的 package.json，改一下依赖的版本号：
"amazeui-react": "^1.0.0"

改为：
"amazeui-react": "*"

原来还有这样的即决办法 非常感谢

没在 npm 2.x 下测试过，有点小问题， 已经修复 f73f40b7cd50a7c00754564712d33f35edfa73e9

repo: amazeui/react-starter-kit


text:
5.7 Release does not configure correct KMS permissions on Lambda Roles

I upgraded our deployment of the ServerLess Repo CTI Adapter to 5.7.3 but Lambdas are now failing with errors.
On investigation it seems code was added to salesforce.py to write an OAuth token to SecretsManager:
https://github.com/amazon-connect/amazon-connect-salesforce-lambda/blob/3a926720ee1ae550a2829f8976cdfea2bd985f69/sam-app/lambda_functions/salesforce.py#L88
However, the CloudFormation policy document for the Lambda functions has not been updated to include permissions to Encrypt with the SecretsManager KMS key as provided by the parameter:
SalesforceCredentialsKMSKeyARN
In the template the resource KMSManagedPolicy only attaches permissions for kms:Decrypt:
https://github.com/amazon-connect/amazon-connect-salesforce-lambda/blob/3a926720ee1ae550a2829f8976cdfea2bd985f69/sam-app/lambda_functions/template.yaml#L226
This causes the following error when the Lambda runs:

[DEBUG]	2020-11-16T16:44:43.856Z	3e02e379-48a5-4f10-8405-04c11d08f9ba	https://secretsmanager.eu-west-2.amazonaws.com:443 "POST / HTTP/1.1" 400 75

[DEBUG]	2020-11-16T16:44:43.857Z	3e02e379-48a5-4f10-8405-04c11d08f9ba	Response headers: {'Date': 'Mon, 16 Nov 2020 16:44:43 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '75', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'ce54db28-100a-4fef-909f-3bc87b30fd6d'}

[DEBUG]	2020-11-16T16:44:43.857Z	3e02e379-48a5-4f10-8405-04c11d08f9ba	Response body:
b'
{
    "__type": "AccessDeniedException",
    "Message": "Access to KMS is not allowed"
}
'

Steps to reproduce
Launch AWS::Serverless::Application resource via Cloudformation passing SemanticVersion: 5.7.3. Fill in all required parameters as desired, they won't effect the behaviour.
cti:
    Type: AWS::Serverless::Application
    Properties:
      Location:
        ApplicationId: arn:aws:serverlessrepo:us-west-2:821825267871:applications/AmazonConnectSalesforceLambda
        SemanticVersion: 5.7.3

The issue is with 5.7.

Hi guys,
apologies for this issue. We've already merged the fix into our repo, but you can fix this yourself by adding the kms:generatedatakey action to the KMSManagedPolicy managed policy.

authors: LorneCurrie blee-amzn zopa-dkitchen


text:
Fix amazonlinux 1 & 2 builds

Issue #, if available: n/a
Description of changes:
GitHub has changed the default nodejs used for actions to node20, which requires a more recent glibc than amazonlinux 1 & 2 have. This PR uses GH provided env variables to force the runner to use node16 which will work with amazonlinux 1 & 2.
Amazon Linux 2 was supposed to be EOL'd a year ago, but support was extended until June of 2025.
Amazon Linux 1 has been EOL'd since Jan 1st 2024, after also being extended.
Node16 will probably be removed from the GHA runner before Amazon Linux 2 is EOL'd, so we'll have to determine if we can work around it, or if we should just move everything over to Amazon Linux 2023.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Added an issue (#346) to give some TLC to Amazon Linux versions in our workflows.

repo: amazon-ion/ion-c


text:
🛑 ambler.kr is down

In ee7aa13, ambler.kr (https://ambler.kr/) was down:

HTTP code: 429
Response time: 227 ms

Resolved: ambler.kr is back up in e87fb6a after 11 minutes.

repo: amblerkr/status


text:
cmd: migrate from getopt to argp

Reopened because of fail in #71 / #70
The argument handling is quite hard to make it good when using getopt with help and usage messages. The argp library is a better choice for this task.
Note: cleanup of dirty code or unwanted redundancies will be done from time to time in this PR. If you notice anything that bothers you, please add a comment directly. Thanks!
Checklist:

[x] Migrate command base structure to argp
[ ] Refactor host_init and ast_ahb_access for standardised flags
[ ] Cleanup inconsistencies
[ ] Consolidate possible duplicates and make it more user-friendly
[ ] Add proper git commit messages
[ ] Documentation

@amboar I don't have an AST2600 system on-hand to test the coprocessor stuff. Could you please test if the command still works as before?

@amboar I don't have an AST2600 system on-hand to test the coprocessor stuff. Could you please test if the command still works as before?

Looks like the argument processing is a bit off:
root@ast2600:~# ./culvert -vv coprocessor run 0xba000000 $((32 * 1024 * 1024)) < sclydesdale.bin
[*] Found 5 registered bridge drivers
[*] Trying bridge driver p2a
[*] Trying bridge driver ilpc
[*] Trying bridge driver devmem
[*] Trying bridge driver debug-uart
[*] Opening 33554432
[*] Failed to initialise the console (33554432): -1
[*] Failed to initialise local debug interace on 33554432: -1
[*] Trying bridge driver l2a
[*] Bridge discovery failed, cannot access BMC AHB
[*] Failed to acquire AHB interface

It should instead look like:
root@cc-nvme-mi:~# ./culvert -vv coprocessor run 0xba000000 $((32 * 1024 * 1024)) < sclydesdale.bin
[*] Found 5 registered bridge drivers
[*] Trying bridge driver p2a
[*] Failed to initialise P2A bridge: -2
[*] Trying bridge driver ilpc
[*] Failed to initialise iLPC bridge: -95
[*] Trying bridge driver devmem
[*] Probing devmem
[*] Probing for SoC revision registers
[*] ahb_readl: 0x1e6e2004: 0x05030303
[*] ahb_readl: 0x1e6e207c: 0x00000000
[*] ahb_readl: 0x1e6e2014: 0x05030303
[*] Found revision 0x5030303
...

Looks like the argument processing is a bit off:

Found the issue. That was a leftover when I made the subcommand stuff easier 😄
New commit pushed where the argument processing for host_init is now correct.

Currently:
root@ast2600:~# ./culvert -vv coprocessor run 0xba000000 $((32 * 1024 * 1024)) < sclydesdale.bin
[*] Found 5 registered bridge drivers
[*] Trying bridge driver p2a
[*] Trying bridge driver ilpc
[*] Trying bridge driver devmem
[*] Trying bridge driver debug-uart
[*] Unrecognised argument list for debug interface (2)
[*] Trying bridge driver l2a
[*] Bridge discovery failed, cannot access BMC AHB
[*] Failed to acquire AHB interface

:slightly_smiling_face:
I suspect there's a stray two arguments being passed to devmem_driver_probe(), which then takes an early-exit.

@sinuscosinustan something I have been idly considering for a while is to require a keyword like via (in the vein of ip route ...) to help sync the argument parsing where the user wants a specific interface to be used, e.g:
# culvert write firmware via /dev/ttyUSB0

or maybe even with the bridge name:
# culvert write firmware via debug /dev/ttyUSB0

What do you think?
This might help where there are other positional arguments, such as in the case of the coprocessor run subcommand (which I've just tested again and isn't yet working).
For the record, I plan to tag a release of culvert immediately prior to merging your changes. I think it's reasonable that we can break the command line behaviour a bit subsequent to the tag, in the process of cleaning up the implementation.
Thanks again for your effort here. I'm honestly not sure how you've motivated yourself through it, because I was certainly struggling to motivate myself :sweat_smile:

What do you think?

I was thinking about a generic set of options like -I /dev/ttyUSB0 -H <IP> and so on, but using via is also a cool idea!

For the record, I plan to tag a release of culvert immediately prior to merging your changes
Awesome! At least some breakage possible 😄

I'm honestly not sure how you've motivated yourself through it

Holiday, a lot of caffeine and suffering from the broken parsing 😂

I've pushed commit ae1c35c as proposal.
@amboar What do you think about this? Would this be suitable or would be the via approach better?

I've pushed commit ae1c35c as proposal (I know it'll cause pointer errors and whatsoever in its current state).
@amboar What do you think about this? Would this be suitable or would be the via approach better?

Sorry for the delay; after a quick look I think I prefer the via approach? I'm happy to prototype it myself if you don't prefer that direction (you've done a lot of great work already and I don't want you to feel obligated to any requests on my part).

after a quick look I think I prefer the via approach?

Sounds good! I've tried to take a look into implementing my approach but for some reason argp doesn't want me to use the children option for that and always segfaults with non-explainable coredumps (lol).

I'm happy to prototype it myself if you don't prefer that direction

If you have a small prototype of how it should look like I'd be happy to implement it! In the meanwhile I'll rework the host_init stuff to use struct connection instead and cleanup any inconsistencies.

@amboar I have pushed a new proposal with the via keyword. Yes, it may not look nice rn but the way how iproute2 is doing it is waaaay more disgusting.

@sinuscosinustan so you've motivated me to do something I've been meaning to get to for a while: convert the commands to use autodata.
Can you please take a look at https://github.com/amboar/culvert/pull/77 ?
Regarding your argp rework, the new struct cmd gives us a place to capture argp children. We can hook them into the reference instance, which I think is interesting?

Can you please take a look at https://github.com/amboar/culvert/pull/77 ?

I like the autodata idea. That's definitely an improvement and will make it easier for implementation, although subcommand handling might still be a bit funky (but easier).

the new struct cmd gives us a place to capture argp children

I have looked into argp children in a playground project for some reason the input struct from the state is not being passed into the children's parser (and the children approach does not allow things like via at the end easily). IMO, it'll be easier to not use argp childrens.

We can hook them into the reference instance, which I think is interesting?

We can definitely use the reference instance and combine the subcommand stuff with autodata which will reduce the overall code complexity.

authors: amboar sinuscosinustan

repo: amboar/culvert


text:
Config app crashes for all anndata objects

A recent change to the code of the config app resulted in a conditional statement that causes the app to stop with no error message. This was due to a conditional statement that did not properly check for the class of anndata objects, and that triggered a stop() statement with no error message provided when the object class did not match.

This underscored the need for automated testing of the config app (#345).

This was resolved with the merge of #346.

repo: amc-heme/scExploreR


text:
Running pod install for example project gives error

Running pod install for the example project give this error:
[!] Unable to satisfy the following requirements:

- `loudspeaker (from `../`)` required by `Podfile`
- `loudspeaker (from `../`)` required by `Podfile`
- `loudspeaker (= 0.1.2)` required by `Podfile.lock`

Fixed with commit https://github.com/amco/loudspeaker/commit/233f40d8e4e0eb66da9e10b290e8a422fef145d1 in PR https://github.com/amco/loudspeaker/pull/9.

repo: amco/loudspeaker


text:
Implement integrations specs and fix n+1 problems

In this PR, we followed below requirements:

Solve the N+1 problem when fetching all posts and their comments for a user. Screenshots of the results are as follows:

Use Capybara to write integration tests for each view in our project, which includes user index page, user show page, post index page, and post show page

Hi @amentetteh @sebalp100 and @SimonGideon,
While you made a great effort in this project, I cannot proceed to review your code.
Invalid Code Review Request
You have submitted a project that has failed linter checks
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.

authors: DammyShittu amentetteh

repo: amentetteh/ror-blog-app


text:
Enable periodic actions

Enables periodic ci checks. Following https://github.com/ami-iit/ADAM/issues/32#issuecomment-1361165257

This also fixes NumPy 3.8 compatibility?

Thanks @traversaro !

This also fixes NumPy 3.8 compatibility?

Nop, but there is #34!

This also fixes NumPy 3.8 compatibility?

Nop, but there is #34!

I may be wrong, but it seems that the commit that fixed NumPy 3.24 compatibility was also present in this branch/PR?

authors: Giulero traversaro

repo: ami-iit/ADAM


text:
Build and release setup

PR for #4

@rultor merge

@rultor merge

@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@amihaiemil Done! FYI, the full log is here (took me 1min)

authors: amihaiemil rultor

repo: amihaiemil/camel


text:
Logger properties bug in Action()

The logger for an Action thread is not constructed correctly. The main problem is that PropertyConfigurator.configure(properties) is not thread safe.
The other approach with
Logger logger = Logger.getLogget("name")
...
logger.setAppender(...)
...

should be used.

done

repo: amihaiemil/charles-github-ejb


text:
🛑 KMHARS Main Fiber Line is down

In f11ea62, 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 9127c26 after 1 hour, 6 minutes.

repo: amin-IT/kmhars


text:
MSVC installation issues

This is now mostly fixed for VS2019 and VS2017. But still requires some more testing. The best way to fix it is to run the tests and debug the issues.

Old Description
Copied from https://github.com/jberezanski/ChocolateyPackages/issues/117
I am using visualstudio2017buildtools  and visualstudio2019buildtools to set up MSVC. However, my tests fail because vcvars.bat cannot find the toolset.
https://github.com/aminya/setup-cpp

    invalid parameters
    [ERROR:vcvars.bat] Toolset directory for version '15.9' was not found.
    [ERROR:VsDevCmd.bat] *** VsDevCmd.bat encountered errors. Environment may be incomplete and/or incorrect. ***
    [ERROR:VsDevCmd.bat] In an uninitialized command prompt, please 'set VSCMD_DEBUG=[value]' and then re-run
    [ERROR:VsDevCmd.bat] vsdevcmd.bat [args] for additional details.
    [ERROR:VsDevCmd.bat] Where [value] is:
    [ERROR:VsDevCmd.bat]    1 : basic debug logging
    [ERROR:VsDevCmd.bat]    2 : detailed debug logging
    [ERROR:VsDevCmd.bat]    3 : trace level logging. Redirection of output to a file when using this level is recommended.
    [ERROR:VsDevCmd.bat] Example: set VSCMD_DEBUG=3
    [ERROR:VsDevCmd.bat]          vsdevcmd.bat > vsdevcmd.trace.txt 2>&1

https://github.com/aminya/setup-cpp/runs/3618796745?check_suite_focus=true#step:7:302

Upvote & Fund

I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

Thank you in advance for helping prioritize & fund our backlog.

Found a use-case
https://github.com/rollbear/trompeloeil/issues/265

We should switch from MSVC build tools to the full Visual Studio installation. The installation of build tools is not enough in many situations.

repo: aminya/setup-cpp


text:
feat/support FreeBSD

Closes #70
Todo:

[ ] Add tests
[ ] Update README with additional instructions
[ ] Add IPv6 support

Support added through alternate PRs (available from release v0.3.0).


text:
Error Handling

We want to display meaningful error messages to the user when they are appropriate. Therefore we need to think about a good way to handle such errors.
How do we do this in the Backend? The Service classes contain the business logic and there would be the place to define good error messages, that can be sent to the frontend. But do we define then in german, so that they can be displayed directly to the user? And how will we decide what message should be displayed to the user and what message shouldn't?
We could define a class that maps error codes to error messages. This could be done for german and english error messages. Then we provide an endpoint that either returns the english or german mapping for the frontend.
How do we create these errors in the backend? Is there some mechanism for spring where we just catch any errors thrown in the controllers and transform it to the standard response {"success": false, "errorId": 1001}
That would be the most comfortable way, because then we can always just throw errors in the service classes and don't have to do so much checking of Optional objects...
How do we handle special cases like: frontend sends a request without request body? Spring automatically generates a bad request in this case and the response body wont contain our general response format. So the frontend wouldn't be able to handle it.

See the last commit for the solution im currently going for.
We now have a GlobalExceptionHandler. This handler will basically catch all exceptions that happen anywhere in a controller function and that are not caught otherwise. The ExceptionHandler differentiates between BusinessLogicExceptions and Exceptions.
If it receives a BusinessLogicException, we return a JSON with {"success": false, "error": {ERROR MESSAGE FROM EXCEPTION}, "payload": null}
So we bascially just forward the content that we have written into the BusinessLogicException to the user. This means when we are like doing some sanity checks in service classes, you should throw BusinessLogicExceptions that contain a relevant message for the user in the error cases. Currently these exceptions should be done in german, because our frontend will be german only for now.
Refactoring that should not be that hard later on :)
Since it is totally possible, that other exceptions occur in a controller function also, like NullPointerExceptions (these usually come from bugs...) we also catch any other exception than BusinessLogicException in the GlobalExceptionHandler.
But in that case, the exception does not contain relevant information for the user, so we only log it in the backend and return
{"success": false, "error": "Ein unbekannter Fehler ist im Server aufgetreten.", "payload":null}
to the user.
So right now, the frontend will always get a message returned with the fields "success", "error" and "payload".
It should first check if success if true. If it is not, then display the error message to the user. If it is true, then you can
use the payload field.
This mechanism should hopefully work well for our whole application!

With the latest commit now all other exceptions (especially validation exceptions) are also caught.
So now when a requestbody is invalid (for example a field is missing in the json) there is a bad request response returned stating that the request was invalid. Will hopefully prevent some confusion in the future


text:
Config the Pipeline using a config file

Currently the pipeline is configured through the command line. Woth an increasing number of steps and settings, this has become quite complex. A better alternative would be a configuration file containing the Steps to execute and their respective settings. This file would then be read and the pipeline would be co structed accordingly. This way we would also have a "single source of truth" config that is guaranteed to work, during demos.

This would also enable us to check if a config is valid before executing the pipeline, by checking the required and added columns of each step.


text:
Implement the LangChain pipeline in Typescript

Item type: data pipeline
Description: As people have figured out lately, it is possible to convert the LangChain pipeline in TypeScript so that it can be integrated directly into the frontend of the mobile app without the need for a backend server.
I am not sure how a full decoupling from a backend can be achieved (e.g. how the API keys can be protected in this way).
This can probably be done by utilising the LangChain.js version of LangChain.
https://js.langchain.com/v0.2/docs/introduction/
https://github.com/langchain-ai/langchainjs

User story

As a developer of this team,
I want to rewrite the LangChain pipeline in TypeScript so that it can integrate directly with the mobile app frontend,
eliminating the need for backend infrastructure.

Acceptance Criteria

[ ] The LangChain pipeline has been fully implemented in TypeScript
[ ] No keys to other services (OpenAI etc.) have been embeded in the code

Definition of Done

[ ] The feature has been fully implemented and integrated into the app.
[ ] The feature has been manually tested and works as expected without critical bugs.
[ ] The feature code is documented with clear explanations of its functionality and usage.
[ ] The feature code has been reviewed and approved by at least one team member.
[ ] The feature branches have been merged into the main branch and closed.

No keys to other services (OpenAI etc.) have been embedded in the code.

@tubamos , We need keys to call but that will be inside .env file so it will be not visible on GitHub, and only used while build process.
Even someone try to de-compile android or iOS app then it will be converted into garbage during to de-compile process, so no one get it.

@tubamos , Here I am seeing LangSmith that will be a good approach to debug app because we will be able to see user's query selected documents from vectorDB and response generated by OpenAI. If someone like to explore this then it might be helpful in future.

The feature has been fully implemented and integrated into the app.

This thing is depends upon the development of other mobile app stuffs like Auth and etc, so I suggest if someone can show a raw JS or TS that print results on console then also we can consider it as completed. then it will be easy to attach it with app in future.

authors: preetvadaliya tubamos


text:
Files outside the project

Plugin uploads files that are outside of the project (including Atom configuration files). Result path: [RemotePath]/C:/Path/To/File...
Sorry for the bad english

Hi @NomNes,
What is the problem exactly ?
You want to upload a file that is not in the project directory ?
Thank you for using my package.

Hi. I don't wont to upload file if it not in the project dirrectory. For example, i'm quick edit one file from local, but it open in current project window

authors: NomNes amoussard

repo: amoussard/sftp-deployment


text:
Behavior on GCed response bodies

What should we do with unconsumed response bodies? Currently we just discard them, but that could result in a streaming response keeping open the connection forever (with body settings set to unlimited).

I think we'll go with the current behavior, it will work just fine by default, because we always have a limit and all streaming responses that use a unlimited length can use a cancellation token to close the socket.

repo: amphp/artax


text:
[TACHYON-652][TACHYON-653] Define new exceptions and try to use them in worker package

https://tachyon.atlassian.net/browse/TACHYON-652
https://tachyon.atlassian.net/browse/TACHYON-653

Overall, I think that the new defined exceptions make the exceptional situation more explicit than IOException, but since nobody actually handle these exceptions other than throwing, the resulting code is more verbose because one method may throw 3 ~ 5 exceptions, but if these exceptions may be taken different approach to handle, so it is reasonable to keep them.
One way to get rid of the verbosity of many exceptions thrown in one method as well as keeping the valuable explicit exceptions is that we thrown explicit exceptions in lower level classes like StorageTier, StorageDir, but in higher level classes like TieredBlockStore, we always wrap the actual exception in the cause of IOException, so that the interface is clean, and if specific exceptions need to be handled, they can be gotten by calling getCause on the IOException.

We can’t automatically merge this pull request.

@uronce-cc , really appreciate this PR---the unit tests look much better as one can expect the exception in different types now.
I left only one comment regarding whether we need our own InvalidArgumentException or we can still take advantage of IllegalArgumentException. I am leaning to keep IllegalArgumentException.
Also, you mentioned verbosity in earlier comments and I think it makes sense. Given that we have 4 (if we remove InvalidArgumentException) types of exceptions for now, it might still be OK. But as we evolve to more types, definitely we need to address it.

In general, I like this PR a lot. Thanks for the patch!

thanks all, comments resolved.

We can’t automatically merge this pull request.

@haoyuan merged.

@uronce-cc , I left my comments. Basically I feel we need exception conversion to be consistent (e.g., where to do the conversion) so we don't lose information.

The philosophy of exception conversion is that for example, for interface freeSpaceInternal, the NotFoundException is related to implementation of this interface, if we throw NotFoundException, in javadoc, we need to explain the EvictionPlan, so I wrap these specific exceptions into cause of OutOfSpaceException so that exception information is not lost since if freeSpaceInternal fails, it is out of space.
But I now think it is fine to just propagate exceptions without conversion for now, we can address the conversion issue later, maybe have some more general exceptions like RecoverableException.

+1 LGTM. Thanks for the patch!
Meanwhile, could you open a JIRA about improving exception handling (mostly reducing verbosity, e.g., by having RecoverableException)?

+1 LGTM

JIRA ticket on further PRs: https://tachyon.atlassian.net/browse/TACHYON-678, https://tachyon.atlassian.net/browse/TACHYON-521

authors: apc999 calvinjia haoyuan uronce-cc

repo: amplab/tachyon


text:
[SMALLFIX] Fixed documentation in 'ReplayCache'

Fixed problems in JavaDoc references in ReplayCache.

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/6882/
Test FAILed.

Jenkins, test this please

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/6883/
Test FAILed.

Don't know what the problem with the build is. Any hints?

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/6885/
Test PASSed.

LGTM

authors: AmplabJenkins HorizonNet calvinjia


text:
feature: select env-s in which the scaffold runs.

Allow the user to select environments in which the /scaffold url's will be allowed.
requires the following middleware to be added to global HTTP middleware stack.
\Amranidev\ScaffoldInterface\Http\Middleware\ScaffoldMiddleware::class,

and the environments are selected under
config\scaffold.php

@athikrishnan
Thanks !!
Already have a config file.
env should be added to config/amranidev/config.php

1) Amranidev\ScaffoldInterface\Tests\BehavioralTest::testPaths
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'C:\Users\athithan\Works\scaffold\scaffold-interface\vendor\orchestra\testbench\src\Traits/../../fixture\app\Test_abraham.php'
+'C:\Users\athithan\Works\scaffold\scaffold-interface\vendor\orchestra\testbench\src\Traits/../../fixture/app/Test_abraham.php'

any idea why its happening?
and also, does the config file you mentioned published into laravel config directory?

@athikrishnan yes the config file publishes into laravel config directory config/amranidev/config.php.

@athikrishnan Anyway
I will merge it and fix it
Thanks

authors: amranidev athikrishnan

repo: amranidev/scaffold-interface


text:
Spin-Widgets should respect min/max and steps

spin respect min/max and steps
The problem of course is that if multiple of is not satisfied at
initialization, then it can't be satisfied using only up and down. In
this case the user must type the number by hand.
Once it's satisfied however, the number will always keep satisfying
the constraint

Source

implemented https://github.com/amsico/pyqtschema/commit/ef23e25dba9fd988c267e57f5632fb3a97fbf13f

repo: amsico/pyqtschema


text:
Submit on change change ?

Hi,
Is it possible to submit parent form on input value change ? (when the date is picked)
Thanks for your help,

Such questions belong on StackOverflow: http://stackoverflow.com/search?q=pickadate
Guidelines.
Cheers.

authors: amsul barbuslex


text:
cmake doesn't check if doxygen is installed

... building fails if it isn't.

which machine are you on and what is the error? works ok for me on my own server (Ubuntu 16.04) without doxygen

Correct. Works without doxygen. Failure to compile was due to incompatible CUDA libraries, and the cmake message about missing doxygen was the first one I saw.

authors: hieuhoang ugermann

repo: amunmt/marian


text:
No Camera Access in Demo File

If I open the downloaded demo file, it does not access the camera. It displays the placeholder in the canvas.

I don't think the demo is supposed to work outside a web server. You can't just open the file from disk. Use a local web server for testing.
You can view the demo online at https://amw.github.io/jpeg_camera/demo/ . These are exactly the same files that you download from the repo.

Thanks alot for your quick response. Actually I am new coder, so sorry for asking this type of question.

authors: amw jawadrasheed


text:
Add ability to cleanly uninstall PolicyKit from Slack

Splitting this into a few scenarios:
1) Handling cleanup when someone uninstalls the PolicyKit via the Slack app/website
In this case, we can handle the app_uninstalled event. Should delete the community and all data? This would allow for admins to reset PolicyKit to a fresh start, by uninstalling the app and reinstalling it via policykit.org.
2) Allowing users to uninstall PolicyKit from Slack via policykit.org, where Slack is the primary platform integration.
There's currently no mechanism in the PolicyKit UI for deleting a community. We could probably add support for that, and make sure that it explicitly uninstalls the app from Slack by calling apps.uninstall. Alternatively, if we handle (1) correctly then we can just direct people to uninstall via Slack.
Note: PolicyKit also doesn't support deleting the "primary" integration while keeping the community (for example: install PolicyKit to Slack ==> add Open Collective integration ==> delete Slack integration).
3) Allowing users to uninstall PolicyKit from Slack via policykit.org, where Slack is a secondary integration.
Scenario: Install PolicyKit to Discord ==> add Slack integration ==> delete Slack integration
I think the "delete integration" option for Slack should actually uninstall the PolicyKit app from the Slack workspace, by calling apps.uninstall (this should happen in Metagov on Plugin teardown?)

This all probably applies to Discord and maybe GitHub, too, since both support apps/bots.

Currently the "delete integration" button for Slack doesn't actually delete the slackcommunity. It is handled by this view:
https://github.com/amyxzhang/policykit/blob/623523d76d63c06b6d559ad7b477d80512fbd2e7/policykit/integrations/slack/views.py#L107-L116

repo: amyxzhang/policykit


text:
adds changes for container_length implementation

Issue #9 #10
Description of changes:
This PR works on adding implementation of container_length constraint.
Grammar:
<CONTAINER_LENGTH> ::= container_length: <INT>
                     | container_length: <RANGE<INT>>

Ion Schema specification:
https://amzn.github.io/ion-schema/docs/spec.html#container_length
List of changes:

adds IslConstraint::ContainerLength and Constraint::ContainerLength
enum variants
adds IslLength that can be used by byte_length, codepoint_length and
container_length constraints
fixes bug for non negative integer/integer ranges in occurs constraint
adds validation logic for container_length constraint in
ContainerLengthConstraint implementation
adds ViolationCode::InvalidLength for any invalid length for constraints like codepoint_length, byte_length, container_length
adds unit tests for container_length constraint

Tests:
added unit tests for container_length implementation.

adds tests for programmatically creating container_length constraint
adds tests for loading a schema using container_length constraint
adds validation tests for container_length constraint

Changes with commit https://github.com/amzn/ion-schema-rust/pull/67/commits/1a811a9f7165c37222e958457dc38e885bffaeb2:

Removes implmentation of both IslLength and IslOccurs
Uses Range directly to create container_length constraint
programmatically
Uses usize for IntegerNonNegative Range
From implementation instead of TryFrom for creating non
negative integer ranges
optional() and required() methods now return Range instead of
IonSchemaResult as these ranges will always be successfully
created

repo: amzn/ion-schema-rust


text:
Shift+Return does not create a line break

I've only tried this extension on Firefox but when using shift+return to try and create a line break in a message, it stays on the same line.
I have my settings set to the recommended ones in the README, so I'm not sure where this issue is coming from. It's not a huge one but it makes sending something like a block of code relativity more difficult.
Images from Firefox and Edge respectively

I'll try to look into this. One question: Doesn't Bing eventually ignore all line breaks when submitting the prompt?

I'm not sure, I haven't been able to use it enough. The only scenario I could see where you'd want to use them a lot is, like I said, writing a quick snippet of code or something.

So after using it a bit more, the formatting does get lost once you send your message (or at the very least the code I sent was completely jumbled), thought I don't think Sydney seems to care--she still understands perfectly.
I do still think it would be a good thing to have, just for the sake of making sure everything is properly formatted in the input box beforehand, regardless of how the output displays. Personally speaking it just helps me make sure everything is correct before I send it to Bing, which is especially important right now when conversations are still so limited.

Ok. I'll look into the matter.

It seems to be working fine for me.

I have this problem too. It's hard to read my own messages without being able to use line breaks.

The biggest issue is when I try to type (or even paste from plain text editor) a code block. It is pretty tough to read code without visible line breaks :-) On the other hand, it seems that line break characters are preserved as Bing happily translates the code to other programming language without errors. (I use Firefox, Ubuntu Linux.)

I think it's worth noting that Bing has recently been updated to render line breaks in the user's message bubbles now, despite Firefox still not displaying it properly. Doesn't really help with this issue in particular but I thought it was worth a mention that they are registered during and after being sent, even though not shown in the input box.

I think the message-composing area is crucial. However, the current Bing design employs a label, which makes it impossible to create a line break. Can you suggest any alternatives?

document.querySelector("cib-serp")
    .shadowRoot.querySelector("cib-action-bar")
    .shadowRoot.querySelector("#searchboxform label")
        .style.whiteSpace = "pre-wrap"

#119

authors: DovieW JustYourBud anaclumos archont00 fullerenedream jcuenod

repo: anaclumos/bing-chat-for-all-browsers


text:
unable to implement ITimelineDataProvider interface

When trying to implement the ITimelineDataProvider interface it says component not available.

Closed along with a few bugs resolved in v2.5 of the package

repo: anandbn/timeline-lwc


text:
do not plot correct simulations; reduce atol increase rtol

The last version of main plotted either all or none simulation results. I think the ones of primary interest are the wrong results. We could also think of passing Strings to the saveplot argument ("all", "wrong", "correct", "none").

Codecov Report

Merging #36 (6fc1d4f) into main (b8dee11) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #36   +/-   ##
=======================================
  Coverage   92.36%   92.36%
=======================================
  Files           3        3
  Lines         131      131
=======================================
  Hits          121      121
  Misses         10       10

Impacted Files
Coverage Δ

src/suite.jl
83.05% <100.00%> (ø)

Continue to review full report at Codecov.

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

authors: codecov-commenter paulflang


text:
Add HardCodedTenantMapper

This pull request implements HardCodedTenantMapper that can assign active tenant for OpenID session. We need it to set active tenant for API clients that do not have ability to interact with login forms.

I'm experiencing a simlilar situation where i need to have a default tenant or switch to a new tenant using the API. Really hoping the pull request is considered.

@joas8211 thank you for the contribution, I've been on vacation the last few weeks so haven't had a chance to check the PR but will do so asap.

@joas8211 @gpproton wouldn't it be useful to be able to configure role as well?

Sorry for long silence, I was also on holiday. We haven't had reason to use tenant roles because they don't integrate with Keycloak's authorization system. We created our own system to map realm roles to tenants so that we can use them instead.

Thanks for the clarification, @joas8211! Let's proceed with merging this since it fits your use case, and we can extend it if needed in the future. Could you also elaborate on how you integrate realm roles with tenants? Your approach might present potential improvements for the extension.

We use realm role attribute with tenant ID as the value to make a role available for a tenant. We have a custom service that contacts Keycloak Admin API to report and define assigned and available roles to users. The realm roles are used with Keycloak's access control system to assign wanted permissions for a session. For now we use regex policy to match active tenant from the session attributes, but that could definitely be improved by implementing a custom policy type for active tenant.

Hi!
I am currently using Keycloak version 22.0.3. After upgrading to the latest version of this extension, I encountered an issue where Keycloak can no longer be built due to the introduction of the following mapper:
dev.sultanov.keycloak.multitenancy.protocol.oidc.mappers.HardcodedTenantMapper
The problem arises because the mapper uses the function:
void org.keycloak.provider.ProviderConfigProperty.<init>(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Object, boolean, boolean)

This function was introduced in Keycloak version 23.0.0, but is not present in my current version (22.0.3). Specifically, the use of the boolean required parameter is causing the build to fail.
If the goal is to maintain backwards compatibility, this will need to be addressed!
Thanks!

Thank you for your comment, @oleaasbo. I appreciate your feedback.
However, as mentioned in the README, this extension is intended to support only the latest version of Keycloak. Maintaining backwards compatibility with all previous versions is not within the scope of this project.

authors: anarsultanov gpproton joas8211 oleaasbo

repo: anarsultanov/keycloak-multi-tenancy


text:
systemd-boot now can default to /efi as the folder for initramfs images. How does booster cope with that?

I'm asking this question because I see some hardcoded /boot in booster codebase.
https://www.freedesktop.org/software/systemd/man/systemd-gpt-auto-generator.html

The ESP is mounted to /boot/ if that directory exists and is not used for XBOOTLDR, and otherwise to /efi/.

And here is my root directory layout. As you can see there is no /boot
~ $ ls -l /
total 16K
lrwxrwxrwx   1 root root    7 Sep 18 21:18 bin -> usr/bin/
drwxr-xr-x  11 root root 2.6K Sep 28 10:20 dev/
drwxr-xr-x   2 root root    0 Sep 28 10:20 efi/
drwxr-xr-x   1 root root 2.0K Sep 28 10:07 etc/
drwxr-xr-x   1 root root    8 Apr  6  2017 home/
lrwxrwxrwx   1 root root    7 Sep 18 21:18 lib -> usr/lib/
lrwxrwxrwx   1 root root    7 Sep 18 21:18 lib64 -> usr/lib/
drwxr-xr-x   1 root root    0 May  2 10:15 mnt/
drwxr-xr-x   1 root root    0 Mar 27  2017 opt/
dr-xr-xr-x 140 root root    0 Sep 28 10:20 proc/
drwxr-x---   1 root root  138 Sep 28 10:24 root/
drwxr-xr-x  16 root root  460 Sep 28 10:24 run/
lrwxrwxrwx   1 root root    7 Sep 18 21:18 sbin -> usr/bin/
drwxr-xr-x   1 root root   14 Mar 27  2017 srv/
dr-xr-xr-x  11 root root    0 Sep 28 10:20 sys/
drwxrwxrwt   8 root root  160 Sep 28 10:26 tmp/
drwxr-xr-x   1 root root   80 Sep 28 09:55 usr/
drwxr-xr-x   1 root root  116 Sep 28 10:07 var/

for more details regarding to /efi:
https://www.freedesktop.org/software/systemd/man/systemd-boot.html

As you can see, dracut fixed this already, so maybe you can take the following code as a reference?
https://github.com/dracutdevs/dracut/commit/093bc9b5cfc071409a20351a669c594c748eb647
https://github.com/dracutdevs/dracut/commit/49ea6c42db7180eec5ba57e082a38d116f2d17a5

Instead of ad-hoc script, I thought an elegant way to copy initramfs artifacts over to $BOOT directory is to use systemd-kernel-install
An example would be:
https://gitlab.com/dalto.8/kernel-install-for-dracut
What do you think?

On Arch Linux, Booster provides a shell script that puts the initramfs image at /boot. The shell script does not currently accommodate this causing the image to not be built. As a result, since there's no image, the bootloader probably wouldn't find it.
As a workaround, you would have to manually build and specify the appropriate path

On Arch Linux, Booster provides a shell script that puts the initramfs image at /boot. The shell script does not currently accommodate this which (should) cause the image to not be built. As a result, since there's no image, this implies that the bootloader wouldn't find it.
As a workaround, you would have to manually build and specify the appropriate path

right, that's the problem. as a workaround, i manually replaced /boot with /efi. hopefully there'll be a more elegant approach to resolve this.

@enihcam To follow up, is there any specific reason why you do not have a /boot directory? I understand the case where one can have both /boot and /efi but not only /efi.
This is an Arch Linux script so the default boot path for initramfs images and other components is /boot.  If going by mkinitcpio and assuming you have only 1 ESP partition, /efi seems to be only reserved for UKIs which (should) require the user to adjust the new mount point of the ESP to /efi, leaving boot files residing within the root partition.
I understand that there are cases for other ESP mount points, but what's yours specifically?

I cannot remember which, either grub, arch's mkinitcpio, or dracut (but I think one of the first two) has some functionality hard-coded to /boot. So I went with that, but I've found that even creating /efi causes systemd to enable efi.automount, which does as it's named. It didn't cause issues on my machine but could others. I can't remember what created /efi, but I removed it and everything works fine.
This is outside the scope of the issue, but relevant -- @anatol , is compatibility with systemd's kernel-install & systemd-ukify something that you'd want? If so, I have written a plugin script for booster to work in this context & could send a PR for you to look at. No worries if not!

I understand using /boot as the default path, but I think it would be nice to have a solution that doesn't require manually editing the scripts.

authors: c3Ls1US enihcam kjkent lpnh

repo: anatol/booster


text:
Subscriptions

Hi @anchan828  thanks for this library, it is just what I was looking for!
There is something that maybe I'm missing, I need to send messages from cloud run on pub sub and then to receive messages on cloud run through a push subscription and it seems to me that this library does just that.
But does the subscription have to be created by hand or is it created from your library?
Thanks again

Hi @ftognetto,
If you use Cloud Pub/Sub or Tasks, you will need to configure the settings manually. This Library does not subscribe automatically as it merely receives HTTP requests.


text:
Only "top level" lock files should be inspected for NPM packages

Preface: This is on the border of "enhancement" and "bug", depending on how you look at it.

Today, when looking for NPM-related lock files (package-lock.json and yarn.lock), Syft finds files with these names at any location in the file tree, and then it parses each found file for a list of packages and their versions.
According to the package-lock.json docs and the yarn.lock docs, lock files found for a project's dependencies (i.e. not for the project itself) should be ignored entirely. In other words, only a project's top-level lock file will ever be used by the tooling, and, of particular importance for Syft, during installations and builds for that project.
Today these lock files are used during directory scans and not during image scans. This fact may change in the future, but still, it's worth considering a possible relationship between the implementation of this issue and the implementation of configurable cataloging methods.
Lock files are used for directory scans because the primary use case for directory scans is to scan a software project, typically from the root of a repository.
With this in mind, it could easily be considered more correct to surface only the top-level lock files' contents, both for SBOM generation and for downstream vulnerability matching. That is, a project's dependencies — even in the exhaustive sense — would not include packages found in lower-level lock files but not found in the top-level lock file. This is important when it comes to creating an SBOM (answering "what software ships with this project?") and identifying vulnerabilities (answering "what vulnerabilities would be present when this code is packaged up and published?").
IMPORTANT: While various implementations are possible, implementers should strongly consider the potential for their solution to cause Syft not to find valid packages. The intent of this bug is to reduce false positives, but it would be easily possible to produce a solution that introduces false negatives, which should be avoided if possible.

I would suggest the "correct" way to handle this is to exclude any of these lock files found in the node_modules directory trees, specifically. The user might have multiple projects in the same repository, etc..

See this thread from our community Slack for specific user pain caused by this. (from 2021-08-18)

Assuming that the fix is not to process any javascript lock files (packages-lock.json and yarn.lock) that are anywhere within a node_modules directory, a possible fix for this would be to return no packages from these parsers (yarn lock parser and package lock parser) if the given path (the first argument to these functions) contains node_modules/ at all.

NOTE: we'll want to release a new version to get grype updated so the actual end-user reported issue is fixed

authors: kzantow luhring wagoodman

repo: anchore/syft


text:
Andle/recursive movement

Implements recursive pushing for trash objects. Each movement, not only the initial one, is treated as something that can initiate the movement of other objects. Pushing only happens in one direction; there is no circular pushing.
I deleted the code that distinguished between pushing and moving, since with recursive pushing, there is no longer a need to distinguish between them to implement movement.
This PR also handles the disappearing of trash when it is pushed onto a stash cell. Currently the game doesn't maintain any state to track the number of trash objects left; this can be added later to facilitate checking when a level is complete.
Compiled and built code; verified that terminal program works; all tests pass.

Looks good to me!
A side note, could you also add a short doc about how to run/setup the test suite?

This documentation is a better explanation for writing tests: https://hackage.haskell.org/package/HUnit
As for running the tests, doing stack test will suffice. I will add this to the README.

authors: and-le viclzhu


text:
Problem on windows

I'm a developer. I'm coding a program listen on port: 5000.
My program run on windows 7 and using .Net framework 2.0. But it not working. PC and mobile phone same network (ping ok). Please help me !

Here is my code:
Imports System.Net
Imports System.Net.Sockets
Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim t As New Threading.Thread(AddressOf ThucthiTCP)
t.Start()
End Sub
Sub ThucthiTCP()
Try
Dim l As New TcpListener(5000)
'Lắng nghe dữ liệu
l.Start()
Control.CheckForIllegalCrossThreadCalls = False
txtKetQua.Text = "Đang lắng nghe trên port: 5000" & vbNewLine
Dim s As Socket
s = l.AcceptSocket
txtKetQua.Text &= "Kết nối được nhận từ máy: " & s.RemoteEndPoint.ToString & vbNewLine
Dim ntStream As New NetworkStream(s)
Dim reader As New StreamReader(ntStream)
While True
Dim strData As String
'Nhận dữ liệu
strData = reader.ReadLine
If strData <> "" Then
txtKetQua.Text &= strData & vbNewLine
End If
End While
ntStream.Close()
s.Close()
l.Stop()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class

Unfortunately I am not familiar with either .NET or Visual Basic, so I won't be able to help you. One thing that comes to mind is that the pebble application sends data as POST requests over HTTP, which will not necessarily reuse the same TCP connection for each request.

But are these "pebble controller" send key press to IP server running on port 5000 ???
 Vào ngày 12:53 Thứ Ba, 17 tháng 11 2015, Andrew Foote <notifications@github.com> đã viết:

Unfortunately I am not familiar with either .NET or Visual Basic, so I won't be able to help you. One thing that comes to mind is that the pebble application sends data as POST requests over HTTP, which will not necessarily reuse the same TCP connection for each request.—
Reply to this email directly or view it on GitHub.

If I understand you correctly, the answer is yes. Running nc -k -l 0.0.0.0 5000 (netcat as server on port 5000) yields:
POST /data HTTP/1.1
Host: 10.0.1.2:5000
Content-Type: application/x-www-form-urlencoded
User-Agent: PebbleApp/20151005205738 CFNetwork/711.5.6 Darwin/14.0.0
Accept: */*
Accept-Language: en-us
Content-Length: 8
Accept-Encoding: gzip, deflate
Connection: keep-alive

button=2

Thank you for reply !
I run nc -l -p 5000 to lisen on port 5000.
I press key on pebble but Nothing happenned. pebble-controller app not show connection information. pebble app running android 4.0 and still working normally. please help me !
Vào ngày 14:26 Thứ Ba, 17 tháng 11 2015, Andrew Foote <notifications@github.com> đã viết:

If I understand you correctly, the answer is yes. Running nc -k -l 0.0.0.0 5000 (netcat as server on port 5000) yields:POST /data HTTP/1.1
Host: 10.0.1.2:5000
Content-Type: application/x-www-form-urlencoded
User-Agent: PebbleApp/20151005205738 CFNetwork/711.5.6 Darwin/14.0.0
Accept: /
Accept-Language: en-us
Content-Length: 8
Accept-Encoding: gzip, deflate
Connection: keep-alive
button=2
—
Reply to this email directly or view it on GitHub.

How to check my pebble-controller connected successfull to ip server on port 5000.My pebble-controller always show this screen: (view attach file, my ip server: 192.169.6.202, on my mobile execute ping and tracert to ip server ok)
Vào ngày 14:26 Thứ Ba, 17 tháng 11 2015, Andrew Foote <notifications@github.com> đã viết:

If I understand you correctly, the answer is yes. Running nc -k -l 0.0.0.0 5000 (netcat as server on port 5000) yields:POST /data HTTP/1.1
Host: 10.0.1.2:5000
Content-Type: application/x-www-form-urlencoded
User-Agent: PebbleApp/20151005205738 CFNetwork/711.5.6 Darwin/14.0.0
Accept: /
Accept-Language: en-us
Content-Length: 8
Accept-Encoding: gzip, deflate
Connection: keep-alive
button=2
—
Reply to this email directly or view it on GitHub.

Like I said, I am not familiar with either VB or .NET, and I have never used windows for any development. If your tcp server is working correctly and you have entered the correct IP on the watch, you should receive data similar to the above. I would recommend trying the existing rust or ruby servers.

authors: andars thucngocle

repo: andars/pebble-controller


text:
🛑 🍛 LostArk Chinese Forum is down

In 5a61a28, 🍛 LostArk Chinese Forum (https://lost-ark.top/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 🍛 LostArk Chinese Forum is back up in 57bd575 after 2 minutes.

repo: andatoshiki/toshiki-status


text:
Checkpoint 1 Review

Description

Placed a heading to display article news sources
Refactored action to fetch articles object elements to include news source name

Coverage remained the same at 100.0% when pulling f835ef16b68c2dad2c80b752f8ad5240a2500221 on checkpoint/feedback/display-newssource-title-above-articles into c8d4288275b8339d8f8f6170f232c887bb0b525b on develop.

authors: andela-aanchirinah coveralls


text:
Article model

Model for article is not found .model need to be created.

It is fixed

repo: andela/project-arakari


text:
Valid Balance and more...

First of all : Great project !
Question #1: Please details how transactions are validated (there are sufficient funds)
In video you mentioned if user A received in previous block $10 than in the next one can transfer $2.
What if user A besides receiving $10 also transfer those $10 in previous block?
Question #2: Please explain how peers synchronize their chains?
Question #3: Do you plan to add the functionality to add "Blocks"?
Thanks

Question #1: Peers follow the network's rules to validate. If a user has already spent their money, a new spend of additional funds that they wouldn't have would be considered invalid. Blocks containing transactions like these would be considered invalid and wouldn't be propagated to other peers on the network. Nobody else would hear about these blocks and nobody will consider them part of the valid blockchain.

Question #2: Peers synchronize their chains by communicating directly with a random set of other peers. When they first connect, they exchange information on the longest chain they know about. If another "has a longer chain", the peers that don't have the newer blocks ask for each block they don't have, validating it before adding it to their copy of the chain. Eventually everyone becomes synchronized.
When new blocks are created, the miner that created the new block tells the random set of peers it is connected to about it. As other peers hear about it, they independently validate the new block, adding it and telling other peers about it if it satisfies the network's rules. If it doesn't pass the rules, the peer doesn't tell other peers about it and that block languishes in obscurity.

Question #3: I don't currently plan to have adding blocks as part of the demo. I may decide to touch on it though if there is significant confusion about it.


text:
Push Gateway support

Hi,
We are considering using your library to instrument a B2C .NET Desktop client. I believe we will need to be able to use the Push To Gateway mechanism since our users application sessions are short lived and we cannot expect the prometheus server to scrape hundreds of thousands of clients across our customer base. Do you have any plans to add support for Push To Gateway in this library?
Andrew

Hi Andrew,
I had no concrete plans to add push gateway support but a "proper" Prometheus client lib should really support this functionality, so I'm inclined to add this. I'm a bit busy these days but can look into this in the next couple of weeks if you really need this. Are you sure this is the best option for your use case? Metric timestamps could be confusing (push ts vs scrape ts)
Regards
Andras

Hi Andras,
Thank you for the fast response. I decided to checkout InfluxDB first, so I may not end up needing it. If I decide to go with Prometheus instead, then I'll ping you on this thread again.
Andrew

repo: andrasm/prometheus-net


text:
Versioning of ANTLR

Got versioning issues with version 4.10 (which is installed when using ~= instead of ==).
https://github.com/andreamust/TPSD/blob/aa2bd70fb0439c9bea6cac949bb2fc555b187245/requirements.txt#L3
Can be easily solved if requesting ==4.7 but it still not clear why this happens.

I've had the same issue.
Planning to switch to another chord converter, as documented in #3

The chord parser has been removed and reimplemented using the harte-library in 72ec89522a729971695432b8c20b05da3cd845d3

authors: andreamust jonnybluesman

repo: andreamust/TPSD


text:
🛑 AG Santos Engenharia is down

In 22ee708, AG Santos Engenharia (http://agsantosengenharia.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AG Santos Engenharia is back up in 4136f2f.

repo: andrelug/uptime


text:
🛑 Destec is down

In 948a39a, Destec (https://destec.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Destec is back up in bf8bb1b.


text:
P2P fetch urls

I want to be able to host the all the source code hpkgs relies on via some external harddrives, it would be nice if people could easily provide bandwidth. P2P protocols seem to be good candidates for this.
We could support:

Bittorrent
maybe... ipfs

In general I don't want hermes itself to depend on more than plain C.

See also Hyperdrive and other Dat projects.
Main implementation is in JavaScript, but there is a Rust version: https://datrs.yoshuawuyts.com/

repo: andrewchambers/hermes


text:
🛑 plexd is down

In 6010b57, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 289 ms

Resolved: plexd is back up in b802fb6.

repo: andrewdavies-net/upptime


text:
🛑 plexd is down

In 7709ab8, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 275 ms

Resolved: plexd is back up in 5bdfbc1.


text:
🛑 nhcam is down

In 3be8ea9, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in 50026ce.


text:
🛑 nhcam is down

In 6a75550, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in ae73801.


text:
🛑 plexd is down

In 52530a1, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 278 ms

Resolved: plexd is back up in d4040b9.


text:
🛑 plexd is down

In 401fde5, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 276 ms

Resolved: plexd is back up in c0f17e5.


text:
add examples section to README.md w/ check if file exists

Cementing some wisdom from https://github.com/andrewrk/node-s3-client/issues/88

Thankyou very much :)

authors: faceleg gswalden


text:
ARC Compatibility

After making the project arc compatible I have the following problem in this line:
 UIView *view = [_tableView hitTest:point withEvent:UIEventTypeTouches];

The problem: I get a compiler error saying:
implicit conversion of int to uievent* is disallowed with arc
Do you know a solution or a workaround for the problem?

I got it working on iOS5 :-). My solution:
-First convert the project to ARC: that means basically get rid off all the memory management stuff in the code of the timscroller like releases etc.
-then in the UITableView where you want to use the timescroller use custom cells instead of the standard ones
-in your custom cell class override the following method as follows:
  -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
[[NSNotificationCenter defaultCenter]
postNotificationName:@"touchEventFromCell" object:event];
[super touchesBegan:touches withEvent:event];

}
-in the init method of the timescroller you have to add the following now:
  [[NSNotificationCenter defaultCenter]
 addObserver:self
 selector:@selector(touchEventFromCell:)
 name:@"touchEventFromCell"
 object:nil];

-and the following method has to be added to the timescroller class:
   - (void)touchEventFromCell:(NSNotification *)notification {

UIEvent * event = ((UIEvent *) notification.object);
currentEvent = event;
}
-currentevent is a property of timescroller that you can use in the following line of code:
        UIView *view = [_tableView hitTest:point withEvent:currentEvent];

-with the above code you get an event to use for the hittest since UIEventTypeTouches cannot be used with ARC. It is maybe not a nice solution but it works and performance is still the same.

repo: andrewroycarter/TimeScroller


text:
Wont record anymore. Port is closed immediately

Worked fine yesterday. Today only this :

Theres at least one other user with the same problem. What happened?

same issue:
Message dropped because the port is closed
Signed in but not recording

Same issue

me too

Have you guys found any solution or good alternative?

This was a very powerful and useful app indeed!
H+lping in any manner?

erik1o6: is whatsapp updating the servers in all the countries at once?

@ga-mer Yeah they probably did something to their systems, but not all at once worldwide, so maybe somewhere this amazing stool is still up and running.

Anyone here good at this code? The record seems to still recognize online users. It just wont report to online/timeline. There should be a workaround. I tried a bit but failed ;D

I have workaround for this problem.. Will post as soon as I get home.
On Mon 16 Apr, 2018, 6:23 PM MAISTA23, notifications@github.com wrote:

Anyone here good at this code? The record seems to still recognize online
users. It just wont report to online/timeline. There should be a
workaround. I tried a bit but failed ;D
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/andrey-leshenko/WaTracker/issues/14#issuecomment-381588732,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQfQ0j9znOfI8ZThSTZK37ZutWRwGI_Sks5tpJROgaJpZM4TRuII
.

I have workaround for this problem.. Will post as soon as I get home.

Nice ;)

Awesome great job

I gues due to some server side changes in web whatsapp, the 'wa_stream_start' message type never occurs, instead we see a 'wa_logged_in' message. So I have modified the code in record.js file to accommodate the changes. Do note that this fix is in no way a permanent solution and may need a better solution after studying all the changes that have occurred in web whatsapp.
Attached record.js file, replace the one in the folder by this and reload the extension in chrome. Will send a pull request once I get the time to make some enhancements to this awesome tracker.
record.zip

btw the app still works despite the warning in the readme file about google dropping support for chrome apps
was this canned?

I guess due to some server side changes in web whatsapp, the 'wa_stream_start' message type never occurs, instead we see a 'wa_logged_in' message. So I have modified the code in record.js file to accommodate the changes. Do note that this fix is in no way a permanent solution and may need a better solution after studying all the changes that have occurred in web whatsapp.

Attached record.js file, replace the one in the folder by this and reload the extension in chrome. Will send a pull request once I get the time to make some enhancements to this awesome tracker.
record.zip
Thanks alot. Do you have any workaround for the tracker only recording contacts with an active conversation tab? writing something and not sending it doesnt work for me

Wow
WaTracker is back!
Thanks a lot for that

WOW !!!
Not even is it working again, you also fixed the stream_end error, so you had to restart.
@kedaranmol you are fucking awesome

Doesnt work. Ubuntu linux chrome
I had to insert lines
			if (!port) 				port = chrome.runtime.connect({name: 'presenceUpdates'});
in record.js in line 58

NVM, got it. You have to click the contacts once to get recognized

That's not working for me. After a few minutes it doesn't recognize online activities as long as you don't have an open conversation with the contact or, at least, open the empty chat on smartphone and laptop.
Any solution for that? Did WhatsApp change things here?

On 2nd may whatsapp changed something. no tracker software is working right now

repo: andrey-leshenko/WaTracker


text:
Cannot send JSON thought StringEntity using POST

Hi, I send a couple of messages via email and other ways, but I believe this is the right medium to ask this question.
I few months ago I used the version 1.4.4 to send JSON using POST and StringEntity. But now this seems to be different, as post does not uses StringEntity anymore. What's the new way to achieve this?
Thank you.
This is the way I used before:
JSONObject json = new JSONObject();
    try {
        json.put("password", password);
        json.put("correo", email);

        StringEntity entity = new StringEntity(json.toString(), HTTP.UTF_8);
        entity.setContentType("application/json");

        AsyncHttpClient client = new AsyncHttpClient();

        client.post(this, "http://192.168.10.66:8080/useraccountPost3/post/dopost", entity, "application/json",
                new AsyncHttpResponseHandler() {
                    @Override
                    public void onSuccess(String estado) {
                        Log.d("HTTP", "OK");
                        doSomething();
                    }
                    @Override
                    public void onFailure(int statusCode, Throwable error,
                                          String content) {
                        Toast.makeText(getApplicationContext(), "error", Toast.LENGTH_SHORT).show();
                        Log.d("HTTP", "onFailure: " + statusCode);
                    }
                });

I use like this, working for me.
private void fetchProfile(final String result) {

    JSONObject j = new JSONObject();
    try {
        j.put("uacc_id", result);
    } catch (JSONException e) {
        e.printStackTrace();
    }

    try {
        RestClient.post("/getprofile", mContext, new StringEntity(j.toString()), new JsonHttpResponseHandler() {
            @Override
            public void onSuccess(int statusCode, Header[] headers, JSONObject response) {

                Timber.e(response.toString());

                if (response.optInt("status") == 1) {
                    replaceFragment(Profile.newInstance(result));
                } else {
                    showSnack(view, "User not exist", Snackbar.LENGTH_LONG);
                }
            }

            @Override
            public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {
                Timber.e(throwable.toString());
            }
        });
    } catch (UnsupportedEncodingException e) {
        e.printStackTrace();
    }
}

public RequestHandle post(String url, Context context, HttpEntity entity,      AsyncHttpResponseHandler responseHandler) {
    Timber.e(entity.toString());
    return client.post(context, getAbsoluteUrl(url), entity, null, responseHandler);
}

@azizimusa suggestion is correct in my opinion and no response from author, closing this ticket for inactivity

authors: Manck azizimusa smarek

repo: android-async-http/android-async-http


text:
自定义view的onmeasure事件调用问题

项目中遇到如下问题:
点击一个自定义view后,在代码中调用该自定义view的invalidate()函数重绘,该自定义view的onMeasure函数不会执行.
但如果在调用该自定义view的invalidate()函数重绘后立即调用view(界面中的另一个view).setVisibility()函数,有概率会执行onMeasure函数
请高手指点一下造成问题的原因.

在下说说我的理解哈。。。
没记错的话，系统底层会给每个view给一个状态，然后子控件根据这个状态判断是否需要执行measure什么的。（貌似是ViewRoot类的performTraversals()？）
期中measure函数是当子控件需要测量自身空间的时候调用，简单的说就是跟下面的对话一样：
子：老大，还有没有位置，让我挤挤
父：可以啊，你要多大
子：不知道，你看着办
父：好的，我看看（measure，同时传入widthMeasureSpec和heightMeasureSpec，也就是看看子控件本身需要有多大，如果是wrap_content或者match_parent什么的，就看着给咯。。。）
ps:子控件大小/位置就是viewGroup不断递归measure/layout操作
然后那啥，这些底层的东西咱们先不管，反正谷歌都写好了，咱们就看看平时涉及到的方法吧
大概就这么几个：
invalidate()（postInvalidata()）
requsetLaytout()
requestFocus()
一般而言，invalidate只会引起draw的调用，也就是所谓的“重绘”，说起来，其实很多方法都会直接或者间接调用到这个invalidate()，因为你能看到的变化都是通过这个来引起draw变化再投射到屏幕上的对吧。。
那么回到你的题目：
普通的调用invalidate()，那么一般而言只会直接调用到draw，比如说我有一个进度条，需要更新数值，就直接用这个吧。。。。但是我的view大小没有变化啊，那还需要什么测量，对吧
但是如果setVisibility()，那就不同了，大概就是这样的对话：
子：老大，我有事，先闪了啊
父：好的，你忙
子：飘然离去（gone/invisible）
父：哎哎哎，后面的，排好队，空位补上（measure/layout）
还有一种，textview的setText貌似会回调到onSizeChange，但有没有调用到measure，这个没查证过，不过估计有。。。
噢，另外说说setEnable/setClickable，这个也会调用到draw，但不执行任何绘制步骤就是了
第二个requsetLaytout()，既然名字都这么写了，那么需要measure和layout妥妥的
最后一个，嗯。。。。不怎么了解- -

楼上的回答我给满分，太好理解了

@razerdp 有博客没有太溜了

2楼上成功解决了我的问题，谢谢

repo: android-cn/android-discuss


text:
[Bug]:  Theme does not change navigation bar

Is there an existing issue for this?

[X] I have searched the existing issues

Is there a StackOverflow question about this issue?

[X] I have searched StackOverflow

What happened?
When I click on settings to change app theme, navigation bar doesn't change instantly causing navigation bar conflict.
I'm using a Galaxy S10+
https://user-images.githubusercontent.com/98971466/231753333-52e49de7-f869-4227-84dc-fa61c1a99d67.mp4
Relevant logcat output
No response
Code of Conduct

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

Which version of the app are you seeing this on? Is the the version downloaded from the Play Store, or built from source?
This looks like a duplicate of #422 which should be fixed locally, but not in the Play Store version yet.

I downloaded it from the play store this week.

Thank you! This should be fixed then when we make our next release on the Play Store.

authors: alexvanyo cleissondarosa

repo: android/nowinandroid


text:
Update README.md

Update the Scholarship Section ( added The Google Developer Scholarship - Udacity)

Closing since no files changed.


text:
Why is the dark mode commented-out?

I have noticed that in your last release, the code responsible for the dark theme is commented-out.
/*
@media (prefers-color-scheme: dark) {
    :root {
        --color: #0097fc;
        --color-accent: #0097fc4f;
        --color-bg: #333;
        --color-bg-secondary: #555;
        --color-secondary: #e20de9;
        --color-secondary-accent: #e20de94f;
        --color-shadow: #bbbbbb20;
        --color-text: #f7f7f7;
        --color-text-secondary: #aaa;
    }
}
*/

and your commit regarding this change does not explain why it was commented.
I started to use this CSS library and I had modify it in order to enable the dark theme, I was just wondering why it was not enabled by default.
Thanks.

It's included by default now: https://github.com/andybrewer/mvp/releases/tag/v1.8

authors: andybrewer cizordj

repo: andybrewer/mvp