text:
Rip out haproxy PROXY command?

haproxy's textual PROXY protocol doesn't provide a way to say whether they're using SSL/TLS or not. Because of this, I think we should just rip it out rather than worry too closely about it. We could add a "DoesThisSupportTLS?" bool to the PROXY handler, but eh it's just easier to rip out given that the range of TLS support Go offers should be enough for most clients out there today.

Done as of 43e28e2fef85fd9c96b228dde6d2c866e466eae3

repo: DanielOaks/oragono


text:
Implement startup functionality

Determine, based on what auth tokens are available, what activity to route user to

[ ] Store user token in sharedPreferences
[ ] Read token, see if still valid (against twitter)
[ ] Handle special cases
[ ] Route to Activity of interest

it seems that Auth Tokens don't expire https://dev.twitter.com/oauth/overview/faq   -- search for "expire" -- just going to check if the token exists.

source: gharchive/issue

authors: srowhani zandermax

repo: DankIdeaCentral/migrate-app

license_type: permissive

license_source: bigquery


text:
Unclear install instructions for ROCm backend

The install instructions for ROCm in the README recommend usage in a Docker container, but do not accurately list specific requirements otherwise. This impedes usage on non-containerized systems.
Specific install steps such as pip install packaging are provided in the CUDA install instructions; conversely, this is not even listed as a requirement in the ROCm instructions.
Similarly, the CUDA instructions recommend installing ninja; is this required or recommended for ROCm installation?
I.e, it is unclear to the user which packages should be installed prior to running python setup.py install.

cc @rocking5566

I suggest to use this docker
rocm/pytorch:rocm6.1.3_ubuntu22.04_py3.10_pytorch_release-2.1.2
If you have MI200 or MI300 with this docker, just python setup.py install, everything should be ok.

@rocking5566 Not everyone wants to use Docker all the time. Also, does the ROCm installation work with ninja to do multithreaded compilation? I have seen others posting about long compilation times (for me personally, this has been 15+ hours, compared to the ~10 minute compilation time for CUDA with ninja). Any communication on this would be nice.

@garrettbyrd

we share the same required python package, because we share the same python api. In addition, packaging are listed in setup.py
About the compilation method, ROCm FA2 and CUDA FA2 share the same setup.py. Hence, ROCm also support multithreaded compilation. However, we know the compilation time of ROCm backend is stiil too long....  we will improve it in the future

@rocking5566 Right now for AMD GPU/ROCm Support all that is listed under requirements is:

Requirements:

ROCm 6.0+
PyTorch 1.12.1+

This is just a partial list of requirement that causes confusion; the user needs more than just ROCm and PyTorch. Either explicit say that all Python dependencies can be found in setup,py + ROCm 6.0+ (the less user friendly way of documenting things), or explicitly list out dependencies.
It should also be clear that ROCm DOES support multithreaded compilation.

About the compilation method, ROCm FA2 and CUDA FA2 share the same setup.py. Hence, ROCm also support multithreaded compilation.

The required python package listed here is same as original flash attention, except to replace CUDA with ROCm.
I will noted this in next sending PR to upstream.

The main install instructions do mention packaging and ninja (link):

Make sure that PyTorch is installed.
Make sure that packaging is installed (pip install packaging)
Make sure that ninja is installed and that it works correctly (e.g. ninja --version then echo $? should return exit code 0). If not (sometimes ninja --version then echo $? returns a nonzero exit code), uninstall then reinstall ninja (pip uninstall -y ninja && pip install ninja). Without ninja, compiling can take a very long time (2h) since it does not use multiple CPU cores. With ninja compiling takes 3-5 minutes on a 64-core machine.

This all could be cleared up with a line like "If you are not using Docker, follow the normal install steps for flash attention.", and perhaps mentioning that multithreaded compilation is supported for ROCm as well.

@rocking5566 Actually an even more elegant solution would just be to provide different subsections for CUDA and ROCm support in the Installation and Features section. (Currently there are two Installation and Features sections.) This would be a bit more readable regardless of backend.
A solution might look something like the README I've adjusted and provide here. Let me know if I should PR.

Went ahead and made a PR.

Went ahead and made a PR.

Good job! @garrettbyrd
It looks elegant now.

PR was merged, so I'm closing this.

authors: carlushuang garrettbyrd rocking5566

repo: Dao-AILab/flash-attention

license_source: github-api


text:
PDF not generating without table border and 5 rows

I am trying to create pdf. I have three column table with border "1" in the CTP file. PDF is not generating when the table have only few rows.  PDF is generated after adding some extra rows with empty TD.
One more problem is if I change table border to 0 then it's stop generating PDF.
I don't want the border for empty rows. so tried to change the TD border colour to white.then applied
Style border colour white to all 3 empty TD to make it as invisible in the pdf.
If I applied style to all 3 column then again it is stop generating PDF. But it is working when I applied only to first column.
Please help on this issue

Hi, it's a problem with DomPdf lib, this lib is just a helper. Send an issue here

repo: DaoAndCo/cakephp-dompdf

license: mit


text:
【镜像仓库】【中英文】镜像列表缺少对镜像删除的介绍

镜像列表中缺少对镜像删除功能的介绍
1、需要编写 针对公有以及私有镜像空间删除镜像的前提
2、需要填充截图

1、镜像删除

2、版本删除

Seems fixed, thanks~
See the current page: https://docs.daocloud.io/kangaroo/space/imagelist/

authors: ModetaNiu yt-huang

repo: DaoCloud/DaoCloud-docs


text:
https://hub.docker.com/r/makedie/fastapi-dls

要同步的级别
只需要这一个镜像 (如 docker.io/library/busybox) (要求满足下面的内容)
Source
https://hub.docker.com/r/makedie/fastapi-dls
Dockerfile
https://hub.docker.com/r/makedie/fastapi-dls
Image
https://hub.docker.com/r/makedie/fastapi-dls

建议放国内镜像仓库 https://github.com/DaoCloud/public-image-mirror/issues/2328

authors: Hhh-YC wzshiming

repo: DaoCloud/public-image-mirror


text:
Install the agreed-upon sims version at SLAC for Run3 data generation and analysis

@heather999 @danielsf @rbiswas4 @jbkalmbach  Can you guys sort out which version to install?

I'll keep an eye on the discussion here.  @jchiang87 would you want this installed at SLAC in:
/nfs/farm/g/lsst/u1/software/redhat6-x86_64-64bit-gcc44/DMstack  ?
I'm assuming we're not using NERSC due to the Cori outage.

I think that should be fine.

repo: DarkEnergyScienceCollaboration/Twinkles


text:
bug in MapImage()

MapImage()--->RunModuleInitializers() ---->DllMain(). .
when called DllMain() Before called dllmain_crt_process_attach() ...
in dllmain_crt_process_attach(),  calling _initterm()...
but in initterm() , exception occurred 0xc0000005 in dynamic_initializer_for____ExceptionPtr__m_badAllocExceptionPtr(),
how to repair it?

ok, no one answered me , this bug is m_badAllocExceptionPtr's initialize() calling RtlPcToFileHeader() to get image base, but this function ret NULL...ok, we need repair it

That means loader must be able to find the module. Use CreateLdrRef flag or module mapping callback for more precise control.

authors: DarthTon zhengsyou

repo: DarthTon/Blackbone


text:
Multiple issues

Hello
I'm currently working on adding support for this provider to linq2db library (https://github.com/linq2db/linq2db/pull/1159).
We have a lot of tests for native provider already and reuse them for your provider. While all those tests pass for native provider, for this provider we have a lot of failing tests.
Should I add separate issue for each failure or we can have this as meta-issue and work together on them?
Also we can discuss stuff in Slack to make communication more productive.

Hi @MaceWindu , thanks for the interest!
For tracking purposes, it makes sense to break this down into multiple Issues, perhaps with into a milestone entry labeled linq2db-integration.
Looking at the linked PR, there are quite a lot of failing tests (365), which would make issue-writing a long and arduous process. So, can the failing tests be grouped into broader categories?
Happy to discuss more in detail on Slack

I think our time difference is too big  :)
For now I will just go through tests one-by-one and report issues.

Thanks for raising them.
Yeah, time difference might be too big, it's nearly bed time here 😉

Ok, I've reviewed all tests - many of them were just automatically enabled for new provider and should have been disabled as we don't run them for native provider too.
Looks like I created issues for all observed unique failures.

Thanks, I'll close this issue now that the others have been raised

I've rerun all our Sybase tests with recent master and all of them pass for AdoNetCore provider! Great job!

authors: MaceWindu senseibaka


text:
dsub with a shared VPC

Now that we can use dsub with a VPC (related issue #111), can we use dsub with a shared VPC?

Hi Joe,
Can you explain more about the use-case? What is it that you are trying to accomplish.
Is there something that you have tested that fails?
Thanks.

Sure can.  We’ve recently moved to a infrastructure where we have a hosting GCloud project that has a VPC with a VPN tunnel to our organization.  We then share this VPC out to other projects, this way we don’t have to setup a VPN tunnel with every new project and it can be centrally managed.   While it’s true that our dsub VMs almost never would need to access back to our organizations network so you would think we could just use a project only VPC for dsub.  However due to reasons beyond our control (security requirements/central management/etc) we’re asked to use a specific shared subnet in a shared VPC for these types of jobs.
From what little I understand, shared network/subnets are listed and specified differently than how you would for a norma project’s VPCs, as you have to specify the host project e.g. to create a instance:
gcloud compute instances create [INSTANCE_NAME]
--project [SERVICE_PROJECT_ID]
--subnet projects/[HOST_PROJECT_ID]/regions/[REGION]/subnetworks/[SUBNET]
--zone [ZONE]
From: Matt Bookman [mailto:notifications@github.com]
Sent: Thursday, November 29, 2018 12:44 PM
To: DataBiosphere/dsub dsub@noreply.github.com
Cc: Slagel, Joseph L Joseph.Slagel@providence.org; Author author@noreply.github.com
Subject: Re: [DataBiosphere/dsub] dsub with a shared VPC (#137)
Hi Joe,
Can you explain more about the use-case? What is it that you are trying to accomplish.
Is there something that you have tested that fails?
Thanks.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DataBiosphere_dsub_issues_137-23issuecomment-2D442986217&d=DwMCaQ&c=KoC5GYBOIefzxGAm2j6cjFf-Gz7ANghQIP9aFG9DuBs&r=wItZQv9607iYGyuIVq_Pk3Qr-Yy3oS1MW_vcxPgKYrE&m=DdWniaCxDsvhU3peB8hiwluK_iBMG25Rja5b6OQv0HE&s=7L_-zqv9nljiyfxHpp7lHXdQz25MUYr_So5LVBtv8Ks&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AKBQyDxC7Q-5FI-2Dpro67UVYdtmPTPnX3rpks5u0EcLgaJpZM4Y6c1b&d=DwMCaQ&c=KoC5GYBOIefzxGAm2j6cjFf-Gz7ANghQIP9aFG9DuBs&r=wItZQv9607iYGyuIVq_Pk3Qr-Yy3oS1MW_vcxPgKYrE&m=DdWniaCxDsvhU3peB8hiwluK_iBMG25Rja5b6OQv0HE&s=022nZhzgvqqdUvKdhO3ZPVrLA5cDKU2JttRkzSzTrsU&e=.

This message is intended for the sole use of the addressee, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message.

Thanks for the details.
Have you manually created an instance in the target project?
If that is successful, have you tried passing the full projects/[HOST_PROJECT_ID]/regions/[REGION]/subnetworks/[SUBNET] to dsub with the --subnetwork flag? If so, what happened?

Working on it.  I tried the long subnetwork flag and it didn’t work but I want to confirm I can create a instance via the command line and long flag first and then I’ll try again.
From: Matt Bookman [mailto:notifications@github.com]
Sent: Thursday, November 29, 2018 1:50 PM
To: DataBiosphere/dsub dsub@noreply.github.com
Cc: Slagel, Joseph L Joseph.Slagel@providence.org; Author author@noreply.github.com
Subject: Re: [DataBiosphere/dsub] dsub with a shared VPC (#137)
Thanks for the details.
Have you manually created an instance in the target project?
If that is successful, have you tried passing the full projects/[HOST_PROJECT_ID]/regions/[REGION]/subnetworks/[SUBNET] to dsub with the --subnetwork flag? If so, what happened?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DataBiosphere_dsub_issues_137-23issuecomment-2D443006216&d=DwMFaQ&c=KoC5GYBOIefzxGAm2j6cjFf-Gz7ANghQIP9aFG9DuBs&r=wItZQv9607iYGyuIVq_Pk3Qr-Yy3oS1MW_vcxPgKYrE&m=oGTIl6Wvyi7KA5c0IJhWqnJ1FmkH8b1yXasPMz3aLHg&s=B5k_NVX0EiPjDpt0VS-O4wSzCV0_iaw4VKR2RxT0bnA&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AKBQyHaUnnZii27IhwzpWJFR2piqFL0Tks5u0FaOgaJpZM4Y6c1b&d=DwMFaQ&c=KoC5GYBOIefzxGAm2j6cjFf-Gz7ANghQIP9aFG9DuBs&r=wItZQv9607iYGyuIVq_Pk3Qr-Yy3oS1MW_vcxPgKYrE&m=oGTIl6Wvyi7KA5c0IJhWqnJ1FmkH8b1yXasPMz3aLHg&s=SWYWZroZHZOvV2vuQqJZLFbtnDNP7p292p1xQoGxGjk&e=.

This message is intended for the sole use of the addressee, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message.

Ok, so I confirmed that the full projects/[HOST_PROJECT_ID]/regions/[REGION]/subnetworks/[SUBNET] works for Google Genomics, but doesn't seem to work with dsub version: 0.2.3.  You get back a job id suggesting the job started but then no VMs start up and dstat doesn't show anything is running.  The command I ran was:
dsub \
    --project XXXX  \
    --zone "us-east1-b" \
    --provider google-v2 \
    --logging gs://XXXX/logs \
    --command 'echo hello' \
    --network projects/XXXX/regions/us-east1/YYYY \
    --subnetwork projects/XXXX/regions/us-east1/subnetworks/mgmt01 \

Thanks Joe.
Can you get the operation id with:
dstat ... --full | grep internal-id

and then pass the internal-id value to:
gcloud alpha genomics operations describe <id>

and I'd be curious if then events section of
dstat ... --full

reflects what the underlying operation indicates is occurring.

Sure thing.  But when I run dstat I get:
2018-12-05 17:44:07.054968: Exception HttpError: <HttpError 503 when requesting https://genomics.googleapis.com/v2alpha1/projects/XXXXX/operations?filter=%28labels.%22user-id%22+%3D+%22joe%22%29+AND+%28labels.%22job-id%22+%3D+%22echo--joe--181205-174312-38%22%29&alt=json&pageSize=128 returned "The service is currently unavailable.">
Retrying...

However listing the operations revealed the problem (which was on my part):
gcloud alpha genomics operations list

"Execution failed: creating instance: inserting instance: Invalid value\
    \ for field 'resource.networkInterfaces[0].network': 'projects/XXXXX/regions/us-east1/YYYYY'.\
    \ The URL is malformed."

Fixing the network/subnetwork as follows I'm happy to report works:
    --network projects/XXXXX/global/networks/YYYYY  \
    --subnetwork projects/XXXXX/regions/us-east1/subnetworks/ZZZZZZ

However the dstat command is still reporting the service as unavailable.

Hi Joe,
Does the dstat error persist?
Are you able to run dstat for other tasks? Other projects?
I'll file a bug with the Pipelines API if operations.list is returning a 503 for a specific request.
dstat is presently working for me.
Thanks,
-Matt

Thanks for discovering, Joe, that dsub works with a shared VPC.
Going to close this. The remaining issue that you are running into is a Pipelines API issue that the Cloud Health team is working to fix.

authors: mbookman slagelwa

repo: DataBiosphere/dsub


text:
Remove opencensus from serverless agent

THIS IS BLOCKED UNTIL THE otlp TAG IS REMOVED FROM THE SERVERLESS BUILD

What does this PR do?

Remove opencensus and various other dependencies from the serverless agent.
Motivation

Reduce as much as possible the size and init duration of the serverless agent
Additional Notes

Here is the import graph before this change, importing go.opentelemetry.io/collector/component/componenttest indirectly imports dozens of dependencies, that are really not used at all by the Serverless agent, since we are only using a single function from that package:

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Closing as it doesn't seem like we're going to remove the otlp tag from serverless in the end

source: gharchive/pull-request

repo: DataDog/datadog-agent


text:
[ASCII-1162] Make it easier to add a new dependencies to diagnose

What does this PR do?
This PR adds a structure to make it easier to add new dependencies to diagnose suite.

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge

/merge

/merge


text:
fix(ci): remove useless variables directives

What does this PR do?
Remove useless code in gitlab yaml files

Motivation
Clean-up

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


text:
omnibus cache: disable for OCI builds

What does this PR do?
Disabling omnibus cache for OCI builds

Motivation
Currently we can't reliably share binaries between 2 OCI builds, as OCI builds provide a different installation path for each pipelines.
This causes the omnibus cache tooling to systematically cache miss, as the INSTALL_DIR environment variable contains the pipeline ID among other things, which makes the cache key different for every pipelines.
In addition, the install directory is used as the rpath value, which means a first build using an install directory /a/b/c would be used by a later build through the omnibus cache, with a different install dir, which would cause failures to load shared libraries at runtime.
Until we have a way to provide location agnostic binaries, we can't leverage the omnibus cache for OCI builds.

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


text:
[dcos-auth] Fix bug with exp timestamp being non-int

What does this PR do?
After refactoring I missed the fact that the type for the exp timestamp is no longer int.
Motivation

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

/azp run

repo: DataDog/integrations-core


text:
Migrate nginx, pgbouncer, postfix, riakcs dash from dogweb

What does this PR do?

Migrates the following dashboards from dogweb:

nginx

overview Staging Link
metrics Staging Link

pgbouncer Staging Link
postfix Staging Link
riakcs Staging Link

Dogweb PR
Motivation

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

Validate manifest is failing

authors: hithwen luisgonzalex


text:
[aws][fakeintake] log on fakeintake errors while waiting for a healthy task

What does this PR do?
Add logs when we fail waiting for healthy fakeintake on ECS without load balancer
Which scenarios this will impact?
VM
Motivation
#incident-30445
ADXT-572
ADXT-574
ADXT-575
We had a bunch of errors related to unhealthy fakeintake tasks yesterday, adding more logs to make sure the fakeintake is healthy
Additional Notes

/merge

repo: DataDog/test-infra-definitions


text:
🛑 Bar is down

In 42a5923, Bar (https://bar.data-ensta.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bar is back up in 7e63f25 after 17 minutes.

repo: DataEnsta/upptime

license: MIT


text:
[Question] [spring] Why we need both application.yml and application.properties here?

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
Why we need both application.yml and application.properties here? It seems we can keep one.

Version
dev
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

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

Hi.It can be optimized.

Got, will do.

repo: DataLinkDC/dlink


text:
Add new feature to "retrieve" sysmeta and obj content using pid

Feb. 6, 2023

Update store method
-- Split into "store_object" and "store_sysmeta"
-- New argument (optional parameter) to be added with checksum algorithm in case sysmeta comes first
Note: private method "_add_object" calls the HashFS "put" method which checks whether a file exists or not before copying/storing it. See put() -> _copy() for implementation in the HashFS docs.

Jan. 25, 2023

The "retrieve" method is the opposite of the "store" method and should return a list of the sysmeta and stream of the obj content.

Original Description:
Given the pid of a metadata file, be able to retrieve the respective sysmeta content and send it back.
(Suggestion) To follow the existing code pattern, we could create a public method "retrieve" that uses a private method "_get_sysmeta" to return the content, similar to the current "store" method.

The most common obj algorithm types currently used can be found using this query:

https://cn.dataone.org/cn/v2/query/solr/?q=*:*&fl=checksumAlgorithm&facet=true&facet.field=checksumAlgorithm

A full list of parameters can be found with this URL:

https://cn.dataone.org/cn/v2/query/solr

This branch has been used to develop additional features discussed in the Public API section in the substorage document and is the base for the alpha release of Hashstore.

repo: DataONEorg/hashstore


text:
JSON Schema Validation for Function Call Parameters

JSON Schema Validation of Function Call parameter
This PR adds JSON Schema validation to function calls made by the LLM. If the validation fails, the LLM is asked to try again.
Implementation Details
The function call schema validation is done in the FunctionBackend.validateFunctionCall() method. The logic to decide to retry is implemented in the ChatSession and flagged to the user of the validateAndExecuteFunctionCall() method with a new Enum, which signals that a retry will be attempted.

I started this branch on a very old version of main by mistake, and was unable to rebase. Sorry for the many merge commits. 👀

repo: DataSQRL/apiRAG


text:
Some API changes

Made API less specific about the returned empty memory;
Hidden WritableDirectHandle from the API
Added WritableMemory.wrap(byte[], BO) and wrap(byte[], int, int, BO)

Coverage decreased (-0.4%) to 96.033% when pulling e14076de877a78c517444b15fd973ae71e5caf0f on api-changes into dced1029f9b4f3ee29ab97126f06ed22864e05f0 on master.

authors: coveralls leventov

repo: DataSketches/memory


text:
How to using DataTables with React ?

How to using DataTables with React ?
I just want to know that it's possible to combine DataTables with React!

Thanks for your question. However, per the "New issue" template text and the Contributing document, please post support requests in the DataTables forums. Please also ensure that you link to a running test case showing the issue so it can be debugged. I'm sorry if the new issue text and contributing document wasn't clear enough on that topic.
Regarding your question, this article might be of some interest.

authors: DataTables xgqfrms-GitHub

repo: DataTables/DataTables


text:
提个建议：介绍如何自己增加边框、装饰

这不是个BUG帖子。
是想提个建议：能否写篇文档说说如何自己增加边框、装饰这些组件，也可以让大家贡献一点力量。

@jiaming743

authors: sjcarr yizhiyuyou

repo: DataV-Team/DataV-React


text:
How to use this on a Raspberry Pi

Hi!
How can I use this on a Raspberry Pi?
Do I need to install go on the Pi and clone and build the project?
How would I do that?
Thanks in advance!

My builds don't seem to work anymore on the latest version of Go. I'll take some time to update

I installed go on the Raspberry Pi, and did:
git clone https://github.com/David-Igou/bsbmp-exporter
cd bsbmp-exporter
go build -v -o bsbmp-exporter github.com/david-igou/bsbmp-exporter

Then I was able to call the ./bsbmp-exporter
I then created a systemd service to call it on every boot.
Thanks for this repository! :+1:

authors: David-Igou viktorsmari

repo: David-Igou/bsbmp-exporter


text:
Add flag to print list of files processed

Basically something along the same lines as https://github.com/igorshubovych/markdownlint-cli/pull/415. The output would change from:
$ markdownlint-cli2 '**/*.md'
markdownlint-cli2 v0.9.2 (markdownlint v0.30.0)
Finding: **/*.md
Linting: 5 file(s)
Summary: 3 error(s)
CHANGELOG.md:13:52 MD052/reference-links-images Reference links and images should use a label that is defined [Missing link or image reference definition: "#161"] [Context: "[#161][]"]
docs/index.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "Foobar"]
README.md:94 MD001/heading-increment/header-increment Heading levels should only increment by one level at a time [Expected: h3; Actual: h4]

to this:
$ markdownlint --verbose '**/*.md'
markdownlint-cli2 v0.9.2 (markdownlint v0.30.0)
Finding: **/*.md
Linting: 5 file(s)
    README.md
    LICENSE.md
    CONTRIBUTING.md
    CHANGELOG.md
    docs/index.md
Summary: 3 error(s)
    CHANGELOG.md:13:52 MD052/reference-links-images Reference links and images should use a label that is defined [Missing link or image reference definition: "#161"] [Context: "[#161][]"]
    docs/index.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "Foobar"]
    README.md:94 MD001/heading-increment/header-increment Heading levels should only increment by one level at a time [Expected: h3; Actual: h4]

(Or something similar — I'm not particular about the specific formatting of the output!)

You can do part of that with an output formatter. This one lists files that failed validation (the second half of your example): https://github.com/DavidAnson/markdownlint-cli2/tree/main/formatter-summarize
The first half of the example, printing all the files that are examined is not possible with an output formatter today. If you do something like that interactively with a large set of files, the cost of writing everything to the console can become overwhelming and slow everything down. There's also no guarantee of the order things would be printed because of the asynchronous nature of the tool. And ordering output would slow everything down even further.
What is the objective here? Are you trying to verify the right set of files are being looked at? Or make sure the tool is not hung?

What is the objective here? Are you trying to verify the right set of files are being looked at?

Yes, in essence that's it. More detailed context below, collapsed for convenience.

This came out in the context that triggered https://github.com/DavidAnson/markdownlint/issues/915. I created that issue after being puzzled by a mistake that was being caught locally in VS Code, but not by markdownlint-cli2 in GitHub Actions (see relevant comment).
It turns out the issue was being caught by VS Code's own markdown linter, not by the markdownlint extension (which I also have installed in VS Code). There's an UI issue here which is not the responsibility of markdownlint, but VS Code's, which does not make it clear that the source of the reported problem is its native markdown support and not markdownlint extension, despite the presentation being very similar.
But beyond that, I was further confused due to not being aware that MD0052 explicitly excluded shortcut-style links. I ended up sifting the markdownlint repo for clues into this, leading to this comment and the discussion following it.
Having the list of files would have confirmed that markdownlint-cli2 was indeed processing the file in question and not finding any issue with it.

There's also no guarantee of the order things would be printed because of the asynchronous nature of the tool.

IIUC, this is already the case in the printing of the issues list, so I wasn't expecting the list of files to be processed to be sorted either. (It would be nice, sure, but most of the value of the flag would be preserved even without the sorting).

If you do something like that interactively with a large set of files, the cost of writing everything to the console can become overwhelming and slow everything down.

Isn't this already the case if the command is invoked with a plain (unquoted) glob in a directory with many markdown files? In that case the "Finding" line already prints the list of files anyway:
$ markdownlint-cli2 *.md
markdownlint-cli2 v0.9.2 (markdownlint v0.30.0)
Finding: CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md
...

...so the potential issue already exists (and happens by default in that case). In the mode I'm proposing, printing the full file list (for quoted globs) would only happen if the user explicitly opts in to that via the --verbose flag (or whatever it's called). I would argue that these two aspects diminish the severity of the potential slowdown you describe.

Thanks for the info! I have some ideas here I will explore soon.
Regarding how to verify a file is being included, an easy thing is to introduce a problem and see if it gets caught.
Regarding status output slowing things down, it's not displaying the large list that's a problem (in the example you show, the shell has already enumerated those files), instead it's the printing of each file as it is scanned that can slow things down. If you have a tool that does that and it has an option not to, time it both ways and you may be surprised how much faster it is without the status. :) I agree with you that opting into this demonstrates a person's willingness to deal with that, though.

Regarding how to verify a file is being included, an easy thing is to introduce a problem and see if it gets caught.

Yes, that's what we eventually did, but not at first because we assumed a problem was already there. When there are rules with subtle exceptions (like MD052), what one assumes to be a problem may not actually be a problem in markdownlint's eyes, so a file list might help reassure/guide one to look in the right places.

Regarding status output slowing things down, it's not displaying the large list that's a problem (in the example you show, the shell has already enumerated those files), instead it's the printing of each file as it is scanned that can slow things down.

I assumed markdownlint either consumed the expanded list produced by the shell, or produced such a list itself via globby, before processing the files. I wasn't expecting the tool to interactively print the list of files as it processes them, but rather just dump the list all at once at the beginning. I'm not sure if this alleviates the issue, but if I'm understanding you correctly, then perhaps it does?

Yes, displaying the whole list at once avoids the overhead of doing so during processing. I'm thinking to maybe provide the file list to the output formatters so people can do whatever they want with it. If so, it will be provided after linting along with results. (Unless linting takes a very long time, I don't think this is worse than displaying it earlier.)

I'll be honest, I would prefer not having to install multiple packages (markdownlint-cli2 plus the formatter) as well as set up a .markdownlint-cli2.jsonc config file just to get this behavior... :sweat_smile:

@waldyrious, here's the proposal: https://github.com/DavidAnson/markdownlint-cli2/commit/3ea8f2455b80cd9ed4e9c0e90e082692ec8bbd83
It's not a command-line option because those are reserved for things that NEED to be.
I plan to review this and commit tomorrow evening.

authors: DavidAnson waldyrious


text:
Umlauts like Ä, Ö, Ü in Mailadresses/URLs are not detected as normal letters

The Mailaddress
<küche@tf.de>

is automatically formatted to
<kü<che@tf.de>>
```.

Is that intended?

MD034 reports: Bare URL used [Context: "che@tf.de"]
So it looks like the umlaut character is not allowed in an email address. That appears to be the case for the parser which limits that section to ASCII alphanumeric: https://github.com/micromark/micromark-extension-gfm-autolink-literal?tab=readme-ov-file#syntax
Rendering of the sample input via the parser markdownlint uses is the same as what happens on GitHub - the first two characters are not part of the link: https://dlaa.me/markdownlint/#%25m<küche%40tf.de>

So I think the current behavior is correct (and consistent with GitHub) based on how email addresses are defined and corresponding autolink behavior.

Alright, we could solve our problem from the other direction: kueche@tf.de is forwarded to the same e-mailaddress (or is the same address?).

I doubt that would go to the same person. I think the recommendation is probably to "percent encode" the umlaut character. or maybe ask the person who owns that alias as this is probably something they have dealt with before.
https://en.m.wikipedia.org/wiki/Percent-encoding

Great, thank you for the update!

authors: DavidAnson leanderbuerkin

repo: DavidAnson/markdownlint


text:
🛑 (Server) World Evolved RU is down

In 3d07083, (Server) World Evolved RU (http://92.63.111.195:8680/soapbox-race-core/Engine.svc/GetServerInformation) was down:

HTTP code: 0
Response time: 0 ms

Resolved: (Server) World Evolved RU is back up in 4e079ad after 45 minutes.

repo: DavidCarbon-SBRW/Status


text:
Cleanups

Mostly cleanups and a few fixes. The biggest structural change is replacing the new-format team (a list of seven items) with a class.
Behavioural changes:

Referee score now includes every round, not just the last round.
Now search every group for alternative referees, instead of accepting the first group with a valid referee. This lowers the average score (over 5000 sims) from 28.14 to 27.16
Refreshing now always extends the list of eligible players instead of replacing it. This helps preserve the desired play order

I will look at this properly after work

Thanks for your changes, they look good to me.
The tests in this repo are in the pre-commit hook. Currently flake8 and mypy are failing on your branch. Please pass the pre-commit hook checks. I haven't hooked it up to the gitlab CI yet so there is no red CI to show you yet. You can install pre-commit from here: https://pre-commit.com/ or you can run the commands in the hook manually.
I was not expecting any external contributors otherwise I would have put up a proper CI.

pre-commit

Now passing.
You might want to update your pre-commit hooks. pre-commit autoupdate updates. Black is currently set to "stable", but this is a movable reference so you can get inconsistency issues where one person is on an old "stable" and another is on a new "stable". This is fixed with pre-commit autoupdate.

I agree that there is a potential issue with floating versions for things like black. We hit that one at work.

Thanks for your changes

authors: DavidHowlett jebob


text:
Instrument not associated error being raised when assigning spec results to spectra

This seems to be happening because there was a previously successful fitting run (and thus output results file) which had the particular instrument associated with the particular ObsID.
Then I re-ran things with a different selection criteria for the obs cleaning, and this instrument was excluded, but it still tries to read in the output file with the instrument when the spectral fit is done?

I think it might happen because a fit actually failed this time (or maybe it did work), but an existing file with the exact same name is already present and is read in. I'm going to try and improve the logic in the fit running function to make sure it doesn't happen.
The spectral fitting storage is garbage in XGA currently though


text:
1.2.9 is not found in Ansible Galaxy

Got following error when using 1.2.9.
davidwittman.redis was NOT installed successfully: - the specified version (1.2.9)
of davidwittman.redis was not found in the list of available versions

Looking at https://galaxy.ansible.com/DavidWittman/redis, the lastest is still 1.2.8

Is there any workaround while we are waiting for this to be released?

Actually it's as easy as this:
- name: DavidWittman.redis
  version: 1.2.9
  src: https://github.com/DavidWittman/ansible-redis

Thanks for the nudge; I just re-imported this role into Galaxy and 1.2.9 is available.

authors: AidasK DavidWittman FuhuXia

repo: DavidWittman/ansible-redis


text:
Формат файла для --filename

Сгенерировал сессию, используя telethon.sessions import StringSession - длинная шифрованная строка.
Поместил в файл, скормил через параметр --filename, но пишет:
session-keeper: error: argument --filename: invalid typing.Optional[str] value: './file.session'
Какого вида должен быть файл с сессией?

Используется собственный формат файлов. Скормить сессию, сгенерированную Telethon не получится. Просто запустите программу, файл с сессиями будет создан в директории, откуда произошёл запуск.

Ясно, спасибо! Вопрос закрыт.

authors: DavisDmitry FreemanBel

repo: DavisDmitry/tg-session-keeper


text:
:dispatch-later not sent in React Native on Android when in background

Observed when running re-frame v0.9.4 in React Native on an Android device (tested with multiple Android manufacturers/versions).
Create and register a handler:
(reg-event-fx
  :my-evt
  (fn [_ _]
    (println "my-evt triggered")
    {:dispatch-later [{:ms 1000
                       :dispatch [:my-evt]}]})

Steps to reproduce:

Start app on Android with the above handler registered
(dispatch [:my-evt])
Observe how logs are printed every second
Bring app into background
Observe how logs stop printing
Bring app into foreground
Observe how logs resume printing

Note: This is not related to the app being stopped/suspended - if the app is connected to a Bluetooth device it still continues to respond to Bluetooth events.

@Looveh at Day8 we have no react-native experience at all so are unlikely to be able to help with any deep debugging. However, this sounds like the JS engine just throttling timeouts when the app is in the background. Can you check what happens if you use js/setTimeout or js/setInterval directly?

@danielcompton Thanks, getting the same behavior when running js/setTimeout and js/setInterval, if that's what re-frame is running under the hood to trigger :dispatch-later's I'll move this issue to React Native and come back here if I ever find a solution (let's hope) :)

authors: Looveh danielcompton


text:
payback loan and borrow more - display dollar values

What would you like to be added:

Display dollar values on Available;

Amount to Pay and Resulting loan amount

Do the same with Borrow More page (Same layout)

Why is this needed:

Acceptance Criteria:  To verify dollar value is displayed in PAYBACK LOAN flow and BORROW MORE
Android:

[ ]  Loans > Your Vaults > Loans Section > PAYBACK LOAN  >  Verify dollar value displayed
[ ]  Loans > Your Vaults > Loans Section > BORROW MORE > Verify dollar value displayed

iOS:

[ ]  Loans > Your Vaults > Loans Section > PAYBACK LOAN  >  Verify dollar value displayed
[ ]  Loans > Your Vaults > Loans Section > BORROW MORE >  Verify dollar value displayed

authors: dwivedinalin thedoublejay

repo: DeFiCh/wallet


text:
feature(ui-ux): loans v2 bottom sheet search

What this PR does / why we need it:

Input search bar on loans bottom sheet

Which issue(s) does this PR fixes?:

Fixes #
Additional comments?:

Updated testIDs of related components
Not all .specs files are updated due to ongoing development of vault screens V2

Developer Checklist:

[x] Read your code changes at least once
[x] Tested on iOS/Android device (e.g, No crashes, library supported etc.)
[x] No console errors on web
[x] Tested on Light mode and Dark mode*
[x] Your UI implementation visually matched the rendered design*
[ ] Unit tests*
[x] Added e2e tests*
[x] Added translations*

In loans.specs file there is a skipped test, need help with verifying

As discussed, let's follow the design of the header in another PR

authors: chloezxyy pierregee


text:
cpselect fails if you try and run it twice from the same ipython instance

cpselect fails if you try and run it twice from the same ipython instance
Should write a short complete, minimal & verifiable example to put in an issue at https://github.com/adal02/cpselect

Oddly this does not seem to occur if I change the format strings to "string {}".format('hi') instead of the current f"string {'hi'}". That really doesn't seem like it should be affecting this!

repo: DeMarcoLab/correlateim


text:
Fix InitializeOnLaunchAutopilotAttribute acquisition process

Changes
InitializeOnLaunchAutopilotAttribute acquisition process was rewritten using TypeCache.GetMethodsWithAttribute().
Reason

Performance Improvement

https://forum.unity.com/threads/unityeditor-typecache-api-for-fast-extraction-of-type-attributes-in-the-editor-tooling.687682/

Contribution License Agreement

[x] By placing an "x" in the box, I hereby understand, accept and agree to be bound by the terms and conditions of the Contribution License Agreement.

Thank you for your contribution!
In my opinion:
TypeCache can only be used in editor.
I don't strongly disagree with this change, because currently only supports editor execution. But it needs to be reverted when we support running on the standalone player.
Even if you don't fix it, I should have written this as a comment. sorry.
This code is called only once at launch. It doesn't affect performance much.

Thank you for the quick review.
Sorry, I completely forgot about the Standalone Player. 🙇
I will close the PR as I think it would be more beneficial not to include this change.

authors: VeyronSakai nowsprinting

repo: DeNA/Anjin


text:
Clarified in Sample Application that the calling application must call ShowUpdateNeededUi

Very minor change: I've updated the Sample Application to show that the calling application must explicitly call ShowUpdateNeededUi after CheckForUpdatesQuietly if it has returned that updates are available.
(Rolled back inadvertent changes to other files!)

Thanks for the contribution! 😁

authors: Deadpikle Mostlypyjamas

repo: Deadpikle/NetSparkle


text:
Convert summary and signatures sections to extend section

The in-page table-of-contents is a really valuable feature:

But, it only captures elements that are based upon <section> - so it doesn't include summary or signatures
Could we please change the DTD for summary and signatures so that they are based upon section?
We'd still like the elements within them to be constrained in the same way that they currently are.
I'm expecting the outcome of this issue to be a PR in this Fi3ldMan repo.
Note: it looks like this is fixed, but they aren't showing in the local menu.  @IanMayo  to check if it's because the title is missing.

Done - I just needed to include the section titles


text:
Generate the gif demo

Hi authors, I'm able to generate the video file from your code, thx.

But I want to generate the gif file like your work (like this one gif file)
I try to use PIL/imageio lib to generate the gif from video, but my gif kinda lagging, maybe because of the "fps" and "duration" parameters, but I'm not sure how to make it smooth like your gif.
I use PIL/imageio lib because I want to auto-generate the text in gif file.

I hope you can give me some idea to generate the gif like you, thank you in advance.

Hi! I'm sorry that I'm not familiar with PIL/imageio. In our case, the gif file is generated by Adobe Premiere (for putting multiple video together + adding text. In fact, you can directly export a GIF file with Premiere) and GIF Brewery (for converting videos to gifs, where you can tune the parameters to balance between quality and size).

repo: DeepMotionEditing/deep-motion-editing


text:
Can I do data enhancement directly on the tensor?

I want to apply data enhancement on tensor instead of first data enhancement and then convert into tensor. Can this be done?

Sure, but you would need to implement the image transformations with PyTorch. It is definitely possible.

repo: DeepVoltaire/AutoAugment


text:
Email notification improvements

This PR improves a bunch of things around (email) notifications:

Move most of the notification stuff into a help class (dojo/notifications/helper.py)
Switch to html content_type so we can use links
Add protocol + hostname to urls so they actually work
Rename results_added to scan_added to make its naming more aligned
Add added / mitigated / closed / created / untouched findings to scan_added email notfication
Make engagement_added, test_added and scan_added work in api v2
Update contents of engagement_added and test_added emails
Add product specific notifications so users can choose for which products to receive notfications
Make notification creation async. For this the notification creating code needs to now who initiated the notification, so we have to pass an initiator parameter. I only added this in a couple of places as I didn't want to change everything at once.

What I didn't do:

Update the legacy code in test/views.py and engagement/views.py. They are sending simplified emails. I don't want to maintain two pieces of code that are 99% the same, this should all be deduplicated in another PR. For me the api v2 is leading.

It's ready to be tested/merged, I am dogfooding this.

No, Just closed/opened it, but no luck.

It still says "Reviewing for accessibility issues" here. Myabe it's confused due to the very dynamic way of generating form fields.

repo: DefectDojo/django-DefectDojo


text:
Nexpose parser: Process all hosts + add Endpoint (+ add new reference links)

Used for-loop processed only last "discovered" host in XML file. I move it to the upper loop.
There was missing also adding Endpoint - so it wasn't possible to identify where vulnerability is.
I also added a couple of new references used in Nexpose reports.

Replaced by #4082


text:
Missing errors package?

Just pulled latest master and tried rebuilding my program:
$ go build -v
blockwatch.go:8:2: no Go files in /home/baking/go/src/github.com/DefinitelyNotAGoat/go-tezos
../github.com/DefinitelyNotAGoat/go-tezos/client/client.go:13:2: cannot find package "github.com/pkg/errors" in any of:
	/usr/local/go/src/github.com/pkg/errors (from $GOROOT)
	/home/baking/go/src/github.com/pkg/errors (from $GOPATH)

$ go get github.com/pkg/errors

Ran make and still have issue above with 'no Go files...'
$ make
GO111MODULE=on go test  -p=1 -cover ./...
go: finding gotest.tools v2.2.0+incompatible
go: finding golang.org/x/crypto latest
go: downloading gotest.tools v2.2.0+incompatible
go: downloading golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
go: extracting gotest.tools v2.2.0+incompatible
go: extracting golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
go: finding github.com/google/go-cmp v0.3.1
go: downloading github.com/google/go-cmp v0.3.1
go: extracting github.com/google/go-cmp v0.3.1
ok  	github.com/DefinitelyNotAGoat/go-tezos/v2/account	0.299s	coverage: 66.9% of statements
ok  	github.com/DefinitelyNotAGoat/go-tezos/v2/block	0.023s	coverage: 82.4% of statements
ok  	github.com/DefinitelyNotAGoat/go-tezos/v2/client	0.011s	coverage: 61.4% of statements
ok  	github.com/DefinitelyNotAGoat/go-tezos/v2/contracts	0.011s	coverage: 75.0% of statements
?   	github.com/DefinitelyNotAGoat/go-tezos/v2/crypto	[no test files]
ok  	github.com/DefinitelyNotAGoat/go-tezos/v2/cycle	0.011s	coverage: 62.5% of statements
ok  	github.com/DefinitelyNotAGoat/go-tezos/v2/delegate	0.008s	coverage: 0.0% of statements [no tests to run]
?   	github.com/DefinitelyNotAGoat/go-tezos/v2/gt	[no test files]
ok  	github.com/DefinitelyNotAGoat/go-tezos/v2/network	0.014s	coverage: 78.1% of statements
ok  	github.com/DefinitelyNotAGoat/go-tezos/v2/node	0.008s	coverage: 0.0% of statements [no tests to run]
ok  	github.com/DefinitelyNotAGoat/go-tezos/v2/operations	0.008s	coverage: 0.0% of statements [no tests to run]
ok  	github.com/DefinitelyNotAGoat/go-tezos/v2/snapshot	0.012s	coverage: 75.6% of statements

Thanks!

│main.go:7:3: cannot find package "github.com/DefinitelyNotAGoat/go-teszos" in any of:
3                                                                                │        /usr/local/go/src/github.com/DefinitelyNotAGoat/go-teszos (from $GOROOT)
4                                                                                │        /home/thalo/coding/go/src/github.com/DefinitelyNotAGoat/go-teszos (from $GOPATH)

main.go:7:3: no Go files in /home/thalo/coding/go/src/github.com/DefinitelyNotAGoat/go-tezos
line 7 is:   7   goTezos "github.com/DefinitelyNotAGoat/go-tezos"                 (import)

authors: DefinitelyNotAGoat fichtknick utdrmac

repo: DefinitelyNotAGoat/go-tezos


text:
chore: Refactor deprecated sensitive content

Change script ownership after copying
Remove deprecated local file

This PR is included in version 2.2.0 :tada:

authors: MeNsaaH llabake

repo: DeimosCloud/terraform-google-openvpn


text:
[Feature request] v1.9.x support

Thanks

I have prepared for that, and now it's time to release it. Please test it now.
V1.9.5 will be released to public some days later.

That works, thank you !


text:
🛑 cPanel is down

In b62cc63, cPanel (https://charlie.delta-core.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cPanel is back up in f7ab836 after 3 minutes.

repo: Delta-Core/status


text:
🛑 cPanel is down

In 5ebc6c5, cPanel (https://charlie.delta-core.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cPanel is back up in e6f0dda after 12 minutes.


text:
Delayed read breaks when changing working directory

In GitLab by @Huite on Apr 8, 2019, 21:01
I just did a .open(), then a chdir, then .compute() and this results in an error.
The reason is that the argument are cached by dask. Maybe it's a good idea to call .resolve on the path before sending it off to read.

In GitLab by @visr on Apr 8, 2019, 21:38
Yeah that seems like a good fix. We can probably add a test for it as well.

In GitLab by @Huite on May 16, 2019, 14:33
Dealt with in 73f77358cbee808f068fbab9068bc9c0acc2774d

In GitLab by @Huite on May 16, 2019, 14:33
closed

repo: Deltares/imod-python


text:
expected imod.prepare.spatial.celltable to return given column name, got 'id' instead

In GitLab by @jdelsman on Sep 2, 2019, 11:16
caused by line
df["id"] = values
in _cell_table. Could be easily replaced by
df[column] = values
also: description of celltable could be a bit more descriptive on what info you are getting in the result dataframe (esp column names)

In GitLab by @Huite on Sep 2, 2019, 21:37
Thanks for reporting this, it should be fixed by 13cacb26415080ad6269a483bc6a15557a81de80
I've significantly exanded the docstring:
https://deltares.gitlab.io/imod/imod-python/api/prepare.html#imod.prepare.celltable
If it's still not clear, I'm happy to take suggestions!


text:
attributes added to mesh2d variable point to non-existent variables

xu.open_dataset() adds several attrs to mesh2d that point to non-existing variables, like for instance 'boundary_node_connectivity': 'mesh2d_boundary_nodes'. This is an issue when using the file obtained from .ugrid.to_netcdf() in other processes.
MWE:
import xugrid as xu
import xarray as xr

file_nc = 'Grevelingen-FM_0000_map.nc'
file_nc = xu.data.adh_san_diego(xarray=True).encoding['source']

ds = xr.open_dataset(file_nc)
ds_mesh2d = ds.mesh2d.attrs

uds = xu.open_dataset(file_nc)
uds_mesh2d = uds.grid.to_dataset().mesh2d.attrs

uds_mesh2d_new = uds.grid.to_dataset().mesh2d.attrs
for key in ds_mesh2d.keys():
    uds_mesh2d_new.pop(key)
print(uds_mesh2d_new)

for varn in uds_mesh2d_new.values():
    try:
        uds[varn]
    except KeyError as e:
        print(f'KeyError: {e}')

Gives:
KeyError: 'mesh2d_nEdges'
KeyError: 'face'
KeyError: 'mesh2d_nMax_face_nodes'
KeyError: 'mesh2d_nBoundary_edges'
KeyError: 'mesh2d_boundary_nodes'
KeyError: 'mesh2d_face_faces'
KeyError: 'mesh2d'

I've come across this issue myself as well: after writing the netCDF, QGIS via MDAL will not accept these attributes.
I think you can make two cases for how these attributes should be interpreted;

"This variable exists, under this name"
"If it exists, or if you create this variable, it will be under this name"

I went with the second interpretation -- though probably mostly due to implementation convenience since you can always assume the variables are all available. It allows for a relatively easy configuring of a naming scheme.
Regardless, if the unused variables are removed during the to_dataset() call, that behavior is maintained and other software shouldn't trip up.

authors: Huite veenstrajelmer

repo: Deltares/xugrid


text:
on the topic of organizational decision making

Aragon gave a shout out to DEF in their white paper because of the natural partnership between organizing and decision making i.e just as we are bringing liquid democracy to Aragon's organization platform, they are bringing organization to our liquid democracy.
Are we touching on this in the white paper? Should we?

Yes, think we should and I know exactly where i have Aragon in mind to use as example.

@herbstephens @santisiri  given Luis' enthusiasm maybe DEF and Aragon co-write a Medium post on 50/50 org, or UX (3 modes)?

authors: SFSandra santisiri

repo: DemocracyEarth/paper


text:
SVGs have size 0x0

I'm using the latest git version of yew, my main component just renders this:
		html! {
			<svg width="500", height="400", viewBox="0 0 800 500", preserveAspectRatio="none",>
				<rect x="0", y="0", width="400", height="500", fill="none", stroke="yellow", stroke-width="2", />
				<rect x="0", y="0", width="800", height="500", style="fill: none; stroke: black; stroke-width: 2;", />
				<rect x="0", y="0", width="300", height="100", style="fill: blue;", />
				<rect x="10", y="200", width="300", height="100", style="fill: red;", />
			</svg>
		}

Here you can see it working in a fiddle.
But when I render it with yew, the svg has width 0 and height 0, and when I use chrome dev tools to edit the width and height, I see that all the rect's also have size 0x0.
Btw, when I right-click on the svg node in the "Elements" view in dev tools, then "Edit as HTML", then add a blank line at the end (to make it cause a re-render), then hit ctrl-enter to save, it renders the SVG with its correct size, like in the fiddle!
Why isn't it rendered with correct size by yew? :)

Sorry for the low effort reply, but I was able to get svgs working with the following code:
// load the svg file into the compiled binary via include_str!()
const LOADING_SVG: &'static str = include_str!("../inlined_assets/Loading.svg");

struct LoadingIcon (&'static str);
impl Renderable for LoadingIcon
    where
        U: Component
{
    fn view(&self) -> Html {
        let js_svg = js! {
            var div = document.createElement("div");
            div.innerHTML = @{self.0.to_string()};
            return div;
        };
        let node = Node::try_from(js_svg).expect("convert js_svg");
        let vnode = VNode::VRef(node);
        vnode
    }
}

As far as I'm aware, the html! macro doesn't work well with svg, instead you need to do the above to get it to work. Maybe @DenisKolodin could explain more.

Yes, I was also doing the above and it worked, but I thought it should also work with the way I wrote it with tags in html!{}, right?
Or am I doing anything wrong in the way I'm writing the svg tags there?

I'm having the same problem. Using the js! macro does not work for my case since I want to change the fill color dynamically.

@tiberiusferreira I'm generating the whole SVG dynamically, with a rect for every midi note in the midi clip I'm rendering. Just use a function to compute the SVG String before you embed it in the js!{} :)

@Boscop This is the way that I am implementing svg. Just thought I'd share.
impl Renderable<Model> for Model {
    fn view(&self) -> Html<Self> {
       // This could be moved into a function
        let svg = Element::try_from(js! {
            return document.createElementNS("http://www.w3.org/2000/svg", "svg");
        }).unwrap();

        svg.set_attribute("style", "border: 1px solid black");
        svg.set_attribute("width", "600");
        svg.set_attribute("height", "250");

        let circle = Element::try_from(js! {
            return document.createElementNS("http://www.w3.org/2000/svg", "circle");
        }).unwrap();

        circle.set_attribute("cx", "50");
        circle.set_attribute("cy", "50");
        circle.set_attribute("r", "50");

        svg.append_child(&circle);

        html! {

                {VNode::VRef(Node::from(svg))}

        }
    }
}

This is how I'm currently using it:
impl Renderable<Model> for Model {
	fn view(&self) -> Html<Self> {
		let svg = self.generate_svg_as_string();
		let js_svg = js! {
			var div = document.createElement("div");
			div.innerHTML = @{svg};
			div.style.width = "100%";
			div.style.height = "100%";
			return div;
		};
		let node = Node::try_from(js_svg).expect("convert js_svg");
		let vnode = VNode::VRef(node);
		html! {

{ &self.song_name }

				{ vnode }

		}
	}
}

Any news to this? What would be a possible way to make !html work with svg? I am new to rust+yew and want to demonstrate it's usage by a small data logging app where i definitely want to use svg+events on it (onmouseover etc.).

These hacks are a bit awkward and it seems like it breaks the dom reconciliation stuff. I have a function that uses document.createElementNS("http://www.w3.org/2000/svg", "svg") to create an svg element and return it as an yew::Html<_>, but the svg element in the dom is destroyed and recreated every time the component changes even though the svg doesn't.
I assume I can work around this by having a component for svgs so yew can tell that the svg component hasn't changed and not ask for an update; but even if that works this is like bandaging a bandage. :(

authors: Boscop fattenap fstuess hgzimmerman sqwishy tiberiusferreira

repo: DenisKolodin/yew


text:
fixing some memory problems

fixes one missing delete
fixes reading after the end of inputRestrictions.end()

what bugs did this result in?

currently i did not run into a problem. The missing "delete" is really just cosmetic. The other fix solves a problem which could lead to problems: The last
u == secondRestrictionIterator->fromNode
could lead to another loop even if secondRestrictionIterator points after the defined area. The result of 'secondRestrictionIterator->fromNode' is undefined. While it is unlikely that the memory at this position contains "u", it is still possible.

Thanks, will have a look at this when I return next week.
Am 26.01.2012 um 01:56 schrieb DrVanScott:

fixes one missing delete
fixes reading after the end of inputRestrictions.end()

You can merge this Pull Request by running:
git pull https://github.com/DrVanScott/Project-OSRM memory
Or you can view, comment on it, or merge it online at:
https://github.com/DennisOSRM/Project-OSRM/pull/92
-- Commit Summary --

fixing some memory problems

-- File Changes --
M Contractor/EdgeBasedGraphFactory.cpp (4)
M createHierarchy.cpp (1)
-- Patch Links --
https://github.com/DennisOSRM/Project-OSRM/pull/92.patch
https://github.com/DennisOSRM/Project-OSRM/pull/92.diff

Reply to this email directly or view it on GitHub:
https://github.com/DennisOSRM/Project-OSRM/pull/92

Commit bef3aad fixes segfaults in osrm-prepare for certain osm files. It is likely the fix for segfaults reported in issue #88

so far this seems to fix #88 for me

DrVanScott, thanks for your additions. Please feel free to append your name to the author text file and open a pull request with that.

you can just push additional changes to the same branch, then it will be included in the existing pull request...

authors: DennisOSRM DrVanScott emiltin

repo: DennisOSRM/Project-OSRM


text:
BODS-5893 SIRI-VM extra-validation

only output SIRI-VM vehicle activites that have all required properties
ensure vehicle activity properties that are empty strings are removed
do not override RecordedAtTime in SIRI-VM generation

Just a heads up, our pipeline doesn't detect changes to the shared folder so it hasn't zipped up any of the lambdas that use the code that's been changed in the shared folder. So we'll have to use the gh action to deploy to apply all functions to dev and test when this gets merged.

authors: DeannaSharma nbetts


text:
🛑 Blog is down

In b2672da, Blog (https://der.reisko.ch) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blog is back up in 87f5baa.

repo: Der-Reiskoch/upptime


text:
WIP initial platformio setup

This is for now just for testing. The original structure is Arduino IDE focused. This means, there is still a lot of work to clean up the order of function definitions. Also the main file should be split up into multiple ones to have a much easier workflow.

If I understand it correctly, this PR would delete the old .ino file. WOudl it be possible to merge this PR into a new folder so that the old software version stays for now?

On windows, you don't have to specify any upload_* commands for your platformio.ini
Port gets detected automatically and avrdude does it's magic by selecting the correct mcu, baud and protocol.
I haven't tested this on a linux system though.

If I understand it correctly, this PR would delete the old .ino file. WOudl it be possible to merge this PR into a new folder so that the old software version stays for now?

@DerSpatz It crossed my mind when I started but forgot to restore it before the commit. Restored it and just created a new folder form the PlatformIO based firmware.

On windows, you don't have to specify any upload_* commands for your platformio.ini
Port gets detected automatically and avrdude does it's magic by selecting the correct mcu, baud and protocol.
I haven't tested this on a linux system though.

@deafloo Valid point regarding upload_protocol. However, due to jtag2updi we need a modification for a correct upload. So I removed the upload_protocol option but kept the other ones.

authors: DerSpatz deafloo oltdaniel

repo: DerSpatz/PCB-reflow-solder-heat-plate


text:
Fix/update bindings

Summary
trying to use inside of a node project, the binding when calling setLanguage from node tree-sitter, was throwing an error Type error: Invalid language object. This was due to the use of nan in the old binding from tree-sitter, but now it uses node-addon-api, so I've updated it. Also, for wasm build, the scanner.c uses strcpy, but it is not available symbol after compilation with new version of tree-sitter.

thanks for working on this.... once this lands, we can integrate sql parser to ast-grep to enable automated code transformation of sql for a variety of use cases. so looking forward to it.

authors: alexbit-codemod grpse

repo: DerekStride/tree-sitter-sql


text:
[Demo]Success condition, two resource provider.

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of “no breaking changes
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[ ] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
Adding a new service

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable version with Breaking Change Validation errors
[ ] Updating API(s) in preview over 1 year

Please follow the link to find more details on PR review process.

azure-resource-manager-schemas⌛ Pending...

azure-resource-manager-schemas⌛ Pending...

repo: Descatles/azure-rest-api-specs


text:
🛑 INVESTARIOSUSMEF is down

In 99ef1af, INVESTARIOSUSMEF (https://inventariousmef.com.mx/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: INVESTARIOSUSMEF is back up in 376bdc7 after 34 minutes.

repo: DesignaAdmin/Monitor


text:
SC-159576 Upgrade github actions

source: https://app.shortcut.com/deskpro/story/159576/upgrade-github-actions-to-the-latest-version
This bumps up our dependencies for Github actions which is also what does the deploys. This may help reduce bugs as newer releases often have fixes as well as performance due to optimization gains in newer releases.
This is also public facing so we should do our best to show our best face.

Approved - please consider all app PRs that are the same as this approved as well.

source: @AshleyDawson here

repo: DeskproApps/docusign


text:
将默认添加创建人ID,创建时间，修改时间，等默认属性移动到上下文的SaveChange中；

将创建人等公共属性，移动到上下文中去做处理

👍

👍

已完成

已完成

authors: GeorGeWzw joesdu lurudong