[FEATURE] Adjustment of busylight.color.colortuple_to_name Error Catching

Is your feature request related to a problem? Please describe.
When using busyserve "rainbow" or "pulse" modes where the color is not a standard string ('red', 'blue', 'green', etc.), checking the status via an http://<ip address>:8000/lights/status or http://<ip address>:8000/light/<number here>/status reports an error (per error catching here).  This error results the json schema to only have "message", but not the other fields typically reported.  This schema variability prevents creation of a custom Home Assistant RESTful Sensor.
Describe the solution you'd like
A modification to error message/catching in busylight.color.colortuple_to_name to not report an error message, but instead report some other constant (i.e. "unknown", "null", "error", etc.) in the color field for status calls.
Describe alternatives you've considered
Unfortunately, I am not well experienced with http requests (or webdev standards), so I am limited in my recommendations.  I am up for whatever you think is best!
Additional context
Here is the status my busylight showed when status was requested in "rainbow" mode:

Excellent find! That is definitely an oversight on my part.
Instead of raising ColorLookUpError, I could just return the hex tuple in string format:
def colortuple_to_name(color: Tuple[int, int, int]) -> str:
    """Returns a string name of the given Tuple[int, int, int] if found.

    :color: Tuple[int, int, int]
    :return: str

    Raises:
    - ColorLookupError
    """
    try:
        return webcolors.rgb_to_name(color)
    except ValueError as error:
        logger.info(f"{color} -> {error}")

    r, g, b = color
    return f"#{r:02x}{g:02x}{b:02x}"

This should allow the status inquiries succeed.

I've tested this commit and I'll publish a patch release with the fix shortly.

I just pulled in 0.25.2.  It works fantastic!!  Thank you so so much and for the lighting quick fix!

Thanks for confirming that the change works for you!


Use Travis to build executables?

Can Travis build executables for various platforms and output them somewhere?

Would need API keys in .travis.yml I think, going to skip this.


Upgrade Drivers to be able to read metric files

Is your feature request related to a problem? Please describe.
In order to enable DB metrics-based experiments (like mirroring), driver needs to support reading not just experiment specs, but also metric specs. This feature needs to be created.
Describe the solution you'd like
// Driver enables interacting with experiment result stored externally
type Driver interface {
	// ReadSpec reads the experiment spec
	ReadSpec() (ExperimentSpec, error)
	// ReadMetricsTemplate reads the metrics template
	ReadMetricsTemplate(provider string) (*template.Template, error)
	// ReadResult reads the experiment result
	ReadResult() (*ExperimentResult, error)
	// WriteResult writes the experiment result
	WriteResult(r *ExperimentResult) error
}

Implement the delta required in both FileDriver and KubeDriver.

Closed with #1260


please document<PHONE_NUMBER> exit code too

We should document the other common error code meaning CTRL+C in this doc
as seen in SFX event tab

ExitCode
:<PHONE_NUMBER>

ExitReason
: The process/container terminated with exit code:3221225786. Deactivating as part of upgrade since code package changed. For information about common termination errors, please visit https://aka.ms/service-fabric-termination-errors

meaning :
STATUS_CONTROL_C_EXIT | {Application Exit by CTRL+C} The application terminated as a result of a CTRL+C. | ntstatus.h

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

ID: f541a9f9-4be2-9537-5f94-bbfa02cf72ca
Version Independent ID: c44b249f-243f-6a2d-fd34-9a8497102076
Content: Diagnose common code package errors by using Service Fabric - Azure Service Fabric
Content Source: articles/service-fabric/service-fabric-diagnostics-code-package-errors.md
Service: service-fabric
GitHub Login: @grzuber
Microsoft Alias: grzuber

@sedwardstx Thank you for your feedback . We will have this reviewed by the content team and the doc updated as necessary .

Hi @shashishailaj -- I'm no longer with the Service Fabric team. They should be able to direct you to someone that could take care of this. If you need any help finding someone, let me know! 😃

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. Though the scope of our feedback channel here on GitHub covers specific documentation fixes, we can help redirect you to the right support channel to get an answer to your question: [reference to alternative product/service or community endpoint]. Because this issue does not relate to documentation, we are closing this issue. #please-close


How to test curl POST with token key and data ?

How to test curl POST with token key and data ?
Example:
curl -H "Content-Type: application/json" -H "authToken: eyJhbGciOiJIUzI1NiIsImV4cCI6MTQ4OTk3ODY3MSwiaWF0IjoxNDg5OTc4MDcxfQ.eyJpZCI6MX0.wphF8H3o4p9r-DcynZr_6o_vxOccDaQVfcgQDOsUZrM" -d '{"username":"Test1","password":"adada"}' http://<IP_ADDRESS>:5000/api/users
Result:
Unauthorized Access

Assuming you are using defaults, the command should be:
curl -H "Content-Type: application/json" -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsImV4cCI6MTQ4OTk3ODY3MSwiaWF0IjoxNDg5OTc4MDcxfQ.eyJpZCI6MX0.wphF8H3o4p9r-DcynZr_6o_vxOccDaQVfcgQDOsUZrM" -d '{"username":"Test1","password":"adada"}' http://<IP_ADDRESS>:5000/api/users


Issues with usage detection even after container xml is provided

Methods marked with #[Required] as well as class constructors and whole classes (Commands), some services and event subscribers are marked as unused with the findUnusedCode="true" setting for psalm.
Class constructors are not marked as used, along with anything using the #[Required] attribute, even though it works the same as @required.
I had to temporarily disable the unused code search, as this is causing hundreds of issues.
It should be possible to correctly determine usage from the plugin by looking at existing and known references and simply unmarking these issues as needed.
Using the newest version of plugin and psalm as of writing this, php8.2

@pkly thank you for the report.
The issue is fixed with v5.0.4. Feel free to reopen the issue if it is not resolved


docs: correct pronoun in update-how-to-setup-freecodecamp-locally.md

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Closes #XXXXX
I changed the pronoun "This" to "These" because it qualifies either the phrase "data sets" or the word "services" from the previous sentence. I hope that makes the paragraph grammatically correct and contextually appropriate.
@abdulbasitkay

Nice work @meetmuhd. First pr done. Looking forward to many more.
On Mon, 2 Sep 2019, 20:10 Muhammad Bello<EMAIL_ADDRESS>wrote:

I have read freeCodeCamp's contribution guidelines
https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md
.
My pull request has a descriptive title (not a vague title like Update
index.md)
My pull request targets the master branch of freeCodeCamp.
None of my changes are plagiarized from another source without
proper attribution.
All the files I changed are in the same world language (for example:
only English changes, or only Chinese changes, etc.)
My changes do not use shortened URLs or affiliate links.

Closes #XXXXX
I changed the pronoun "This" to "These" because it qualifies either the
phrase "data sets" or the word "services" from the previous sentence. I
hope that makes the paragraph grammatically correct and contextually
appropriate.
@abdulbasitkay https://github.com/abdulbasitkay
You can view, comment on, or merge this pull request online at:
https://github.com/freeCodeCamp/freeCodeCamp/pull/36745
Commit Summary

docs: update how to setup freecodecamp locally

File Changes

M docs/how-to-setup-freecodecamp-locally.md
https://github.com/freeCodeCamp/freeCodeCamp/pull/36745/files#diff-0
(2)

Patch Links:

https://github.com/freeCodeCamp/freeCodeCamp/pull/36745.patch
https://github.com/freeCodeCamp/freeCodeCamp/pull/36745.diff

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/pull/36745?email_source=notifications&email_token=ADG7Y46AFCVCUNXHFPQXCZLQHVQKFA5CNFSM4IS7XBD2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HI2ZL7Q,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADG7Y424RDMJN6XADQP6JPTQHVQKFANCNFSM4IS7XBDQ
.

Thank you. Thank you for all the support. But I guess it's not "done" until accepted and merged. Fingers crossed.


Smart Contract function call pending

Describe the bug
Whenever I make a smart contract function to metamask, it remains pending. I am still not able to fully develop an android app which can connect to metamask android app and execute a smart contract function. Someone help me here

Metamask currently does not support Sign V2. To work with Metamask right now, you'll have to use V1.
Just an fyi, V1 will be shut down on June 28, 2023 along with the expectation of Metamask also supporting V2 by then.
To test your code, you can use any other V2 supported wallet. We have a list here

So what to do if I want to connect my android app to metamask android app? Don't you think this feature is quite important as it opens opportunities for android app developers to work on dapps?


Linking Literal.Tag with base.tag

Abstract class Term implements FindByTag() method and assumes that the Tag is stored in a member called tag.
Child class Literal defines a Tag property that is unlinked to it's base.tag member.
As a result of this FindByTag() method fails to find the tags.
As a consequence of this bug the main app fails to show the pictures tagged as Hidden because AndTerm uses FindByTag(hidden) to add the restriction in the SQL expression.
This commit refactors Literal.Tag property as a wrapper of Term.tag member.

Would you be willing to add some unit tests for this?

Um, I think that that is beyond my abilities in FSpot, NUnit, C# and so.
(Also src/Clients/FSpot.UnitTest/FSpot/AndTermTests.cs doesn't give me any clues about how to face a unit test for that module.)
Besides the unit tests, if you look at the sources you will see that there's not single line of code that initializes tag member (try with grep "tag = " *) also the only use of the tag member is in FindByTag() method, then there's no chance of side effects. Others modules uses the Literal.Tag property (e.g. LogicWidget.cs:364: (parent.Last as Literal).Tag).
About FindByTag() method is only used by AndTerm.SqlCondition() which has the bug that I'm trying to fix and by LogicWidget.cs. I don't know if fixing the bug in FindByTag() changes the behaviour of LogicWidget.cs's functions.
Sorry, but I'm not able the write that tests you need.


False performance claims?

I decided to make a promise performance test, and my test is showing me that bluebird is the absolute slowest of every library I tested (including native Promises).
I tested these implementations:

bluebird
when
then/promise
native

Here's what the test does:

Wait 500 milliseconds before starting the test, because node needs time to stabilize its CPU/memory usage.
Create 10,000 pending promises that each resolve at process.nextTick.
Wait until all promises are resolved, and measure how long it took.
Repeat steps (2) and (3) 100 times, for more data points.

Here are the results I got:

What results do you get for 100K promises and 10 datapoints?

This comes up every now and then and the reason has so far always been that you have enabled long stack traces without knowing it
Check that:

The environment variable NODE_ENV is not set to development
The various BLUEBIRD_ environment variables are not enabled
You are not calling Promise.config or Promise.longStackTraces()
Promise.hasLongStackTraces() returns false (it might be haveLongStackTraces I forgot)

Also what version you are using? I could have messed up something with the monitoring PR which has potential to make really bad perf regression

I have ran this benchmark on both 3.3.1 and 3.2.2 and the results are the same.

BTW, this benchmark gives different results on my machine, the mean is:
bluebird.js: 1824801 promises/s
native.js: 545893 promises/s
promise.js: 2710532 promises/s
when.js: 1088571 promises/s

I ran it for 100K promises, 10 datapoints and bluebird was faster than everything else but the number of promises/s was significantly smaller overall. Thats why I asked - it seems to me like the benchmark isn't quite stable.

bluebird.js
Rate of raw promise lifecycles:	716767 promises/s
native.js
Rate of raw promise lifecycles:	193564 promises/s
promise.js
Rate of raw promise lifecycles:	581570 promises/s
when.js
Rate of raw promise lifecycles:	557073 promises/s

This comes up every now and then and the reason has so far always been that you have enabled long stack traces without knowing it

Ah yes, I did have NODE_ENV=development.
After fixing that, I get these results:
bluebird.js
Rate of raw promise lifecycles:	1905698 promises/s

native.js
Rate of raw promise lifecycles:	387428 promises/s

promise.js
Rate of raw promise lifecycles:	3578438 promises/s

when.js
Rate of raw promise lifecycles:	1077647 promises/s

then/promise still seems to be outperforming bluebird, which comes in second place.
However, then I took @spion's recommendation and bumped the test up to 100k promises, and I got these results:
bluebird.js
Rate of raw promise lifecycles:	879554 promises/s

native.js
Rate of raw promise lifecycles:	260321 promises/s

promise.js
Rate of raw promise lifecycles:	793255 promises/s

when.js
Rate of raw promise lifecycles:	658497 promises/s

Finally bluebird is the fastest. I then tried with even more promises (more than 100k), and I got similar results.
Without actually measuring memory usage, this leads me to believe that then/promise has better raw performance than bluebird, but that it uses more memory, and thus when there were a very large number of promises, its memory allocation caused it to become slower than bluebird.
Is that a logical hypothesis? What else could have caused the difference in results when running the test at 10k promises and 100k promises?

@JoshuaWise these tests typically aren't very meaningful in isolation, that's why bluebird is benchmark against a suite simulating a real workload.

So, I just added fake data for the promises to pass around, and now then/promise is performing about as well as when, and bluebird is twice as fast as both.
After further investigation, it appears that then/promise performs 3x faster when you don't pass any arguments to the resolve() callback. Even if you just pass undefined, it's 3x slower suddenly.

After adding fake data to the stress test, and making sure bluebird's long stack traces are off, here are the new results (10k promises, 100 tests)

@JoshuaWise ok so I take it you are satisfied? Can we close this or?

Yes, we can close this :)

I just want to point out now that we "win" this benchmark that I still find it mostly meaningless in determining the performance characteristics of code using promises.


Subtract out overheads of timing tests

In the *_check tests we are not just measuring the time to invoke the operation under test, but we're also measuring some of the overheads of timing things. Need to add a "nop" test that will compute the overhead and subtract it out from the other tests.

Resolved!


Testing project "Automatise your processing pipelines with nipype / pydra" for Brainhack Marseille template compatibility

Title
Automatise your processing pipelines with nipype / pydra
Leaders
David Meunier :
Twitter: https://twitter.com/DavidM0579
Mattermost: @david.meunier https://mattermost.brainhack.org/brainhack
Collaborators
To fill at the end
Brainhack Global 2022 Event
Brainhack Marseille
Project Description
Neuroimaging and electrophysiology processing requires many steps, calling different softwares, possibly in different languages (typically, matlab batches or shell scripts).
Nipype has provided an integrative solution, with a sufficient level of complexity to cover most of the needs for writting pipelines in neuroimaging. It is based on the notion workflows, being an orderd succession of nodes, linking inputs and outputs. Nodes can be user-written function (in python), interfaces with existing softwares (e.g. FSL, AFNI or SPM), or even other user-defined sub-workflows.
Nipype is at the base of many widely used docker images, such as fmriprep and qsiprep. And has been extendend for other applications, such as EEG/MEG processing (ephypype), graph analysis in functional connectivity (graphpype) or non-human primate anatomical MRI segmentation (macapype).
Nipype has now achieved a degree of maturity to have become predominant in the community. But some of the limitations still prevails. It has decided in the last years to rewrite the core engine of nipype, to incorporate new functionnalities, such as runnnig containers as one node. The new implementation will be called pydra, and also still in its infancy, we expect it to become a major standard in the community.
Link to project repository/sources
Nipype:
https://github.com/nipy/nipype
Pydra:
https://github.com/nipype/pydra
Related projects:
https://github.com/Macatools/macapype
(potentially)
https://github.com/neuropycon/ephypype
https://github.com/neuropycon/graphpype
Goals for Brainhack Global
In this project, we propose :

to give an overview of how nipype works
to advise you if it is useful for your typical processing,
to help writting specific nodes or workflows dedicated to your processing.

For advaced users, We also propose:

to explain the advances of pydra compaired to nipype
to write some tools existing in nipype in pydra.

Good first issues

write an interface of your own python function
build your own very simple processing pipelines with 2 nodes (possibly with your onw function) and one connection using pyBIDS inputs
convert an existing pipeline from nipype to pydra

Communication channels
https://mattermost.brainhack.org/brainhack/channels/project_pipelining
Skills
Neuroimaging/electrophysiology processing: 100%
Shell Script / Matlab Batch: 75%
Python: 50%
Nipype: 25%
Onboarding documentation
https://macatools.github.io/macapype/contribute.html
What will participants learn?
Writing easily modifiable and reusable pipeline;
Contributing to reproducible science
Data to use
None
Number of collaborators
1
Credit to collaborators
Starting a new pydra-based project will be rewarded as a main contributor to the project, and possibly as an author on a subsequent prospective (methological) article.
Working on your pipeline will be rewarded as your own github project.
Image

Type
pipeline_development
Development status
0_concept_no_content
Topic
reproducible_scientific_methods
Tools
Nipype
Programming language
Python
Modalities
fMRI
Git skills
2_branches_PRs
Anything else?
Testing is project template is directly usable on the website BrainHack Marseille 2022,
Subject to modification.
Things to do after the project is submitted and ready to review.

[x] Add a comment below the main post of your issue saying: Hi @brainhackorg/project-monitors my project is ready!
[x] Twitter-sized summary of your project pitch.

@Brainhack-Marseille

Things look good to me but I am unsure whether this is a project within macapype or something more generic where the aim is to contribute back to pydra or something else. Or maybe I misread it.

yup makes sense to me!

@davidmeunier79
Your project is on the website: https://brainhack.org/global2022/projects/


SQL

select a.id,a.title,b.rating*10 as 市场指数
from movies as a inner join boxoffice as b
on a.id=b.Movie_id

SQL最后一题


Fixed compilation for zig 0.13

Simple rename of all the std.ChildProcess --> std.process.Child

Could you squash into 1 commit and also fix artifacts.yml to point to 0.13.0?

yep no problem sorry didn't check that

I get compilation issues with the zig build ci for macos targets and I don't really know ho to fix it sorry

Thanks!

Thank you for the awesome project it has been my goto for managing zig versions


Are we identifying all affected Ubuntu packages?

While working on the SUSE Oval importer, I've been exploring the Debian and Ubuntu OVAL importers and noticed that in one set of test files, we are reporting potrace as an affected package but arguably should also report libpotrace0 as an affected package.
I think the relevant oval_parser.py code is here.  This function searches the <object> element for a var_ref field and when found uses RegEx to extract the name of a package from the comment field.
With the test file ubuntu_oval_data.xml, for example, it seems the term potrace is extracted from comment="The 'potrace' package binaries." on line 83.
However, in the <variables> element below, there is not only a similar comment field, but two nested <value> elements, one with the text libpotrace0 and the other with the text potrace.  I suspect that we actually want to report both of these as affected packages, but current report only potrace (see ubuntu-oval-expected.json).
BTW, based on minor sampling thus far, it appears that neither Debian nor SUSE includes a <variables> element in their respective OVAL XML structures.

also see #1172

Taking a new look at this issue I created, it strikes me as low priority at best and correctly tagged Data collection and enhancement, but does not concern data quality -- so I am removing that tag.


ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.

ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.
How to solve it?
Thanks in advance.
This website is not useful for me.
https://blog.csdn.net/ShuqiaoS/article/details/88420326

This is helped me: https://github.com/jwyang/faster-rcnn.pytorch/issues/412#issuecomment-688427502

This is helped me: https://github.com/jwyang/faster-rcnn.pytorch/issues/412#issuecomment-688427502


NEw-BCContainer issue

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
I have this error message when creating a new container with New-BcContainerHelper.
i have a custom configuration with bccontainerhelper.json, i used folders in another disk
Scripts used to create container and cause the issue
New-BcContainer     -accept_eula
-containerName $containerName     -credential $credential
-auth $auth     -artifactUrl $artifactUrl
-multitenant:$false     -isolation 'hyperv'
-memoryLimit 8G     -updateHosts
-dumpEventLog
Full output of scripts
Name                           Value

useCompilerFolder              False
DebugMode                      False
WinRmCredentials
DoNotUseCdnForArtifacts        False
defaultContainerName           bcserver
WarningPreference              SilentlyContinue
useSharedEncryptionKeys        True
MinimumDotNetRuntimeVersion    @{Major=6; Minor=0; Build=16; Revision=-1; MajorRevision=-1; MinorRevision=-1}
tryWinRmSession                False
use7zipIfAvailable             True
SendExtendedTelemetryToMicr... False
psSessionTimeout               0
AlpacaSettings                 @{BaseUrl=https://cosmo-alpaca-enterprise.westeurope.cloudapp.azure.com; ApiBaseUrl=https://cosmo-alpaca-enterprise....
ObjectIdForInternalUse         88123
mapNetworkSettings
addTryCatchToScriptBlock       True
hostHelperFolder               D:\BcContainerHelper
useVolumes                     False
NoOfSecondsToSleepAfterPubl... 1
apiBaseUrl                     https://api.businesscentral.dynamics.com
genericImageNameFilesOnly      mcr.microsoft.com/businesscentral:{0}-filesonly
digestAlgorithm                SHA256
PartnerTelemetryConnectionS...
RenewClientContextBetweenTests False
mapCountryCode                 @{ae=w1; ar=w1; bd=w1; dz=w1; cl=w1; pr=w1; eg=w1; fo=dk; gl=dk; id=w1; ke=w1; lb=w1; lk=w1; lu=w1; ma=w1; mm=w1; mt...
baseUrl                        https://businesscentral.dynamics.com
timeStampServer                http://timestamp.digicert.com
useVolumeForMyFolder           False
TraefikUseDnsNameAsHostName    False
killPsSessionProcess           False
containerHelperFolder          D:\BcContainerHelper
UseNewFormatForGetBcContain... False
TraefikImage                   tobiasfenster/traefik-for-windows:v1.7.34
defaultNewContainerParameters
usePsSession                   True
genericImageName               mcr.microsoft.com/businesscentral:{0}
MicrosoftTelemetryConnectio... InstrumentationKey=5b44407e-9750-4a07-abe9-30c3b853821b;IngestionEndpoint=https://southcentralus-0.in.applicationins...
MinimumDotNetRuntimeVersionUrl https://download.visualstudio.microsoft.com/download/pr/ca13c6f1-3107-4cf8-991c-f70edc1c1139/a9f90579d827514af05c346...
DOCKER_SCAN_SUGGEST            False
AddHostDnsServersToNatConta... False
sandboxContainersAreMultite... True
TreatWarningsAsErrors          {}
bcartifactsCacheFolder         D:\Artifacts.cache
BcContainerHelper is version 5.0.5
BcContainerHelper is running as administrator
HyperV is Enabled
UsePsSession is True
Host is Microsoft Windows 11 Professionnel - 10.0.22621.1992
Docker Client Version is 24.0.5
Docker Server Version is 24.0.5
Removing entries from hosts
Removing bc23preview from container hosts file
Removing bc23preview-* from container hosts file
Removing Desktop shortcuts
Removing D:\BcContainerHelper\Extensions\bc23preview
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.1906
Creating Container bc23preview
Style: sandbox
Multitenant: No
Version: 22.0.54157.60161
Platform: 22.0.60139.0
Generic Tag: <IP_ADDRESS>
Container OS Version: 10.0.20348.1906 (ltsc2022)
Host OS Version: 10.0.22621.1992 (22H2)
Using hyperv isolation
Using locale fr-FR
Files in D:\BcContainerHelper\Extensions\bc23preview\my:

AdditionalOutput.ps1
SetupVariables.ps1
updatehosts.ps1
Creating container bc23preview from image mcr.microsoft.com/businesscentral:10.0.20348.1906
9070c4523607f579b47356a11fc8d33dbea1f4c990c54fe2a1ee28d089ec6087
New-BcContainer Telemetry Correlation Id: 170f5fc3-de70-4b5c-90ac-fc055dae8dcf
DockerDo : docker: Error response from daemon: container 9070c4523607f579b47356a11fc8d33dbea1f4c990c54fe2a1ee28d089ec6087 encountered an error during
hcs::System::Start: failure in a Windows system call: The virtual machine or container exited unexpectedly. (0xc0370106).
ExitCode: 125
Commandline: docker run --volume "D:\Artifacts.cache:c:\dl" --label nav= --env isBcSandbox=Y --label version=22.0.54157.60161 --label
platform=22.0.60139.0 --label country=FR --env artifactUrl=https://BcPublicPreview.azureedge.net/sandbox/22.0.54157.60161/fr --env licenseFile=""
--name bc23preview --hostname bc23preview --env auth=NavUserPassword --env username="admin" --env ExitOnError=N --env locale=fr-FR --env
databaseServer="" --env databaseInstance="" --volume "D:\BcContainerHelper:D:\BcContainerHelper" --volume
"D:\BcContainerHelper\Extensions\bc23preview\my:C:\Run\my" --isolation hyperv --restart unless-stopped --env filesOnly=False --memory 8G --env
enableApiServices=Y --env useSSL=N --volume "c:\windows\system32\drivers\etc:C:\driversetc" --env securePassword=76492d1116743f0423413b16050a5345MgB8A
DMAQgAxAEgAcwByAHYARwBLADYALwBJAEIAagArAG4AVgB0AG4AZwBYAGcAPQA9AHwAOQA1ADEAOQAyAGYAZAA1ADUAZgAyAGYANwA2ADAAZAA2AGYANgA1ADkAYQA2ADgAYwA0ADQAZgA3ADUAMAB
mAGMAYQA3ADYAMwAxAGQAZAA2ADEAMAA5AGIAZABjADMAYwBjADEAMQAwAGIAZQAxADQAZAAyADgAZQA0AGUAYgA= --env passwordKeyFile="c:\run\my\aes.key" --env
removePasswordKeyFile=Y --env accept_eula=Y --env accept_outdated=Y --detach mcr.microsoft.com/businesscentral:10.0.20348.1906
Au caractère C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.5\ContainerHandling\New-NavContainer.ps1:1951 : 15

...       if (!(DockerDo -accept_eula -accept_outdated:$accept_outdated - ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DockerDo
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

does it happen all the time? Yes on two different machine
did it use to work? yes

I started having this issue as well.
I noticed that my Docker Desktop popped up a few times, saying it wasn't running, despite the whale being in the taskbar.
I ended up doing the following:

Stopped my containers
docker system prune -a --force     <- You will lose everything
Reboot
Let Docker kind-a start
open Docker desktop, and check for updates
Reboot
Quit Docker Desktop
<sleep 5000>
Start Docker Desktop, run as Administrator
<sleep 5000>
reboot
After that reboot Docker asked me to acknowledge the user agreement (free if less than 10M blah blah)

I cannot say exactly what did it, but I am back in business. And I have often had weird issues come up, and generally the docker system prune -a --force / reboot does the trick for me.
ALSO - I do run in Hyper-V.

My Docker version
Client:
 Cloud integration: v1.0.35-desktop+001
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.6
 Git commit:        ced0996
 Built:             Fri Jul 21 20:36:24 2023
 OS/Arch:           windows/amd64
 Context:           default

Server: Docker Desktop 4.22.1 (118664)
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.24)
  Go version:       go1.20.6
  Git commit:       a61e2b4
  Built:            Fri Jul 21 20:35:10 2023
  OS/Arch:          windows/amd64
  Experimental:     false

There's nothing wrong with the script - works fine.
The problem is (as @TheDoubleH suggests) on your machine or in the config file, which contains a lot of values I haven't tried.
You could try to remove the config file and if the error persists - troubleshoot docker or like.

@freddydk - Thanks for reminding me
I DID remove the %appdata%\Docker\settings.json file as well in my process - That might have been why Docker Desktop reacted as if it was a fresh install - and that's when things started working.

@freddydk
I have reverted the ContainerHelperFolder back to "C:\ProgramData\BcContainerHelper" to point to the folder within the container and everything is now working.  Thank you


MemoryError python convert.py

System: ubuntu 22,  rtx 3090, 64gb Ram.
Tried with both CUDA 12/11 and on global shell/conda env. Same result.  Requirements are installed. Also tried with different models.
python convert.py     -i /home/vincent/Develop/exllamav2/models/NeuralExperiment-7b-MagicCoder-v7.5//     -o /home/vincent/Develop/exllamav2/tempQuantization/     -cf /home/vincent/Develop/exllamav2/quantizedModel/     -b 5.0

Result:
Traceback (most recent call last):
  File "convert.py", line 65, in <module>
    config.prepare()
  File "/home/vincent/Develop/exllamav2/exllamav2/config.py", line 219, in prepare
    f = STFile.open(st_file, fast = self.fasttensors, keymap = self.arch.keymap)
  File "/home/vincent/Develop/exllamav2/exllamav2/fasttensors.py", line 114, in open
    return STFile(filename, fast, keymap)
  File "/home/vincent/Develop/exllamav2/exllamav2/fasttensors.py", line 67, in __init__
    self.read_dict()
  File "/home/vincent/Develop/exllamav2/exllamav2/fasttensors.py", line 127, in read_dict
    header_json = fp.read(header_size)
MemoryError

This usually happens if the .safetensors file is corrupt. Can you verify that you downloaded it correctly?

Ah, you are correct, git lfs wasn't properly installed.


Description
Rename the "How to Start Blockchain" section to a more catchy name

To Reproduce

Go to '...'
Click on '....'
Scroll down to '....'
See error

Anything else?
No response
Code of Conduct

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

solved by #433


⚠ Bofrost.lu has degraded performance

In e4a993e, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1545 ms

Resolved: Bofrost.lu performance has improved in 579ae4f after 14 minutes.


mac os sierra crashes failed to inject: module:0x0 bootstrapfn:0x0

failed to inject: module:0x0 bootstrapfn:0x0

You need the bootstrap.dylib at the same directory too

mach_inject: found threadEntry image at: 0xde000 with size: 9888
mach_inject failing.. (os/kern) invalid address

help me


Release fails with 403 from GitHub API

Hi there, I am trying to use this fine action on a private repo.
Building works fine, however the release / publishing to GitHub fails with a 403. Here is the output:
2020-07-29T15:14:03.5631080Z Running the build script…
2020-07-29T15:14:03.8488620Z
2020-07-29T15:14:03.8490070Z Building and releasing the Electron app…
2020-07-29T15:14:04.1967020Z   • electron-builder  version=22.8.0 os=19.6.0
2020-07-29T15:14:04.3610210Z   • loaded configuration  file=package.json ("build" field)
2020-07-29T15:14:04.7975230Z   • packaging       platform=darwin arch=x64 electron=9.1.1 appOutDir=dist/mac
2020-07-29T15:14:05.0681650Z   • downloading     url=https://github.com/electron/electron/releases/download/v9.1.1/electron-v9.1.1-darwin-x64.zip size=72 MB parts=8
2020-07-29T15:14:05.5645240Z   • downloaded      url=https://github.com/electron/electron/releases/download/v9.1.1/electron-v9.1.1-darwin-x64.zip duration=753ms
2020-07-29T15:14:11.6323690Z   • default Electron icon is used  reason=application icon is not set
2020-07-29T15:14:11.7897950Z   • skipped macOS application code signing  reason=cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate, see https://electron.build/code-signing allIdentities=
2020-07-29T15:14:11.7898430Z                                                    0 identities found
2020-07-29T15:14:11.7898720Z
2020-07-29T15:14:11.7899000Z                                                 Valid identities only
2020-07-29T15:14:11.7899260Z                                                    0 valid identities found
2020-07-29T15:14:11.7921890Z   • building        target=macOS zip arch=x64 file=dist/Prototype-0.0.1-mac.zip
2020-07-29T15:14:11.7925150Z   • building        target=DMG arch=x64 file=dist/Prototype-0.0.1.dmg
2020-07-29T15:14:54.9080440Z   • building embedded block map  file=dist/Prototype-0.0.1-mac.zip
2020-07-29T15:14:55.8183250Z   • publishing      publisher=Github (owner: electron, project: electron-quick-start, version: 0.0.1)
2020-07-29T15:14:55.8467140Z   • uploading       file=Prototype-0.0.1-mac.zip provider=GitHub
2020-07-29T15:14:56.5540610Z   • creating GitHub release  reason=release doesn't exist tag=v0.0.1 version=0.0.1
2020-07-29T15:15:42.0659830Z   • building block map  blockMapFile=dist/Prototype-0.0.1.dmg.blockmap
2020-07-29T15:15:42.9692560Z   • uploading       file=Prototype-0.0.1.dmg.blockmap provider=GitHub
2020-07-29T15:15:42.9693340Z   • uploading       file=Prototype-0.0.1.dmg provider=GitHub
2020-07-29T15:15:43.0456390Z   ⨯ Cannot cleanup:
2020-07-29T15:15:43.0456690Z
2020-07-29T15:15:43.0457650Z Error #1 --------------------------------------------------------------------------------
2020-07-29T15:15:43.0458000Z HttpError: 403 Forbidden
2020-07-29T15:15:43.0458310Z {
2020-07-29T15:15:43.0458500Z   "message": "Resource not accessible by integration",
2020-07-29T15:15:43.0459210Z   "documentation_url": "https://developer.github.com/v3/repos/releases/#create-a-release"
2020-07-29T15:15:43.0459510Z }
2020-07-29T15:15:43.0459750Z Headers: {
2020-07-29T15:15:43.0459940Z   "server": "GitHub.com",
2020-07-29T15:15:43.0460140Z   "date": "Wed, 29 Jul 2020 15:14:56 GMT",
2020-07-29T15:15:43.0460780Z   "content-type": "application/json; charset=utf-8",
2020-07-29T15:15:43.0461310Z   "content-length": "139",
2020-07-29T15:15:43.0462370Z   "connection": "close",
2020-07-29T15:15:43.0462570Z   "status": "403 Forbidden",
2020-07-29T15:15:43.0463140Z   "x-ratelimit-limit": "1000",
2020-07-29T15:15:43.0463700Z   "x-ratelimit-remaining": "979",
2020-07-29T15:15:43.0464210Z   "x-ratelimit-reset": "1596037747",
2020-07-29T15:15:43.0464750Z   "x-github-media-type": "github.v3; format=json",
2020-07-29T15:15:43.0465620Z   "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset",
2020-07-29T15:15:43.0466180Z   "access-control-allow-origin": "*",
2020-07-29T15:15:43.0466760Z   "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
2020-07-29T15:15:43.0467250Z   "x-frame-options": "deny",
2020-07-29T15:15:43.0467750Z   "x-content-type-options": "nosniff",
2020-07-29T15:15:43.0468270Z   "x-xss-protection": "1; mode=block",
2020-07-29T15:15:43.0468890Z   "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
2020-07-29T15:15:43.0469380Z   "content-security-policy": "default-src 'none'",
2020-07-29T15:15:43.0469930Z   "vary": "Accept-Encoding, Accept, X-Requested-With",
2020-07-29T15:15:43.0470490Z   "x-github-request-id": "C0D5:5C98:634319:E50146:5F21926F"
2020-07-29T15:15:43.0470750Z }
2020-07-29T15:15:43.0471510Z     at createHttpError (/Users/runner/work/electron-quick-start/electron-quick-start/node_modules/builder-util-runtime/src/httpExecutor.ts:30:10)
2020-07-29T15:15:43.0472310Z     at IncomingMessage.<anonymous> (/Users/runner/work/electron-quick-start/electron-quick-start/node_modules/builder-util-runtime/src/httpExecutor.ts:166:18)
2020-07-29T15:15:43.0472570Z     at IncomingMessage.emit (events.js:327:22)
2020-07-29T15:15:43.0472840Z     at endReadableNT (_stream_readable.js:1221:12)
2020-07-29T15:15:43.0473090Z     at processTicksAndRejections (internal/process/task_queues.js:84:21)
2020-07-29T15:15:43.0473220Z
2020-07-29T15:15:43.0473940Z Error #2 --------------------------------------------------------------------------------
2020-07-29T15:15:43.0474240Z HttpError: 403 Forbidden
........

This is my .yml:
name: Build/release

on: push

jobs:
  release:
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [macos-latest, windows-latest]

    steps:
      - name: Check out Git repository
        uses: actions/checkout@v2
        with:
          submodules: true

      - name: Install Node.js, NPM and Yarn
        uses: actions/setup-node@v1
        with:
          node-version: 12

      - name: Build/release Electron app
        uses: samuelmeuli/action-electron-builder@v1
        with:
          # GitHub token, automatically provided to the action
          # (No need to define this secret in the repo settings)
          github_token: ${{ secrets.GITHUB_TOKEN }}

          # If the commit is tagged with a version (e.g. "v1.0.0"),
          # release the app after building
          release: ${{ startsWith(github.ref, 'refs/tags/v') }}

Any ideas? Am I missing something?
Thank you,
Jan 👋

PS: I am Admin on the repo.

Man, guess what... The repository-key on my package.json was wrong... It still pointed to electron-quickstart...
Oh well...
Never mind 😅
Sorry of the noise.

 Thanks for posting 🙌🏼


<EMAIL_ADDRESS>hash check failed

Checking hash of Axiom.zip ... ERROR Hash check failed!
App:         extras/axiom
URL:         https://github.com/MattMcManis/Axiom/releases/download/v<IP_ADDRESS>-alpha/Axiom.zip
First bytes: 50 4B 03 04 14 00 00 00
Expected:    50d68c53ec0573dde9ba58f5bbb864717e5c21e9c1b628e77098be833ad1e79f
Actual:      63da23878af4bd136f2528023ed18c36c3e01c40367ed11c5fc89c954307b552

Superseded by https://github.com/lukesampson/scoop-extras/commit/6dbda81dd77fc44adc980f0814c7d7e20df948e1


package built wrong

When referencing the package using the import statement:
import { Machine } from 'xstate'
It says it can't find xstate.  If I open the npm package.json found here:
node_modules/xstate/package.json
and change line 5 to this:
"main": "dist/xstate.js",
That error goes away.  Maybe there is a better fix, but hopefully that gives you enough info, here is the package.json after I changed it:
package copy.txt
.  Thanks!

Hey @sec0ndhand,
The latest release v1.0.3, should have fixed this issue. #11

Yep, please let me know if it works now.

@davidkpiano still doesn't work for me. I tried to install more latest version of node. thought this is the case. then loaded 1.0.3, built and dropped into 'node_module' this didn't help either. I got following

@SuperManEver Just made some changes to 1.1.0, please reinstall and see if it works now.

Closing - I'll reopen if you run into further issues.


I need help setting it up

Basically i just need help with the "go build -ldflags "-s -w"" i dont know what to put as the -s and -w
Help would be much appreciated

Simply paste go build -ldflags "-s -w" in your terminal.


Remove memory management-related dead code

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss<EMAIL_ADDRESS>

LGTM

LGTM


add websocket support

[x] add binary websocket support
[x] add text websocket support

binary websocket compleed, text was dropped year ago from noVNC


Laikad preperation

Contains all changes which are needed to change to laikad.
Does not contain behavioral changes, just prepares for them

🎉


[MBL-1687] Fix continue button on confirm details page not working

📲 What
We accidentally introduced a bug where the late pledge flow can't be completed because the location id isn't correctly transformed to a string. This fixes that bug and the "no shipping" test that I thought might be related that ended up not being related after all.
👀 See
Jira

With flag off
With flag on

✅ Acceptance criteria

[x] Checkout id is created successfully and user can navigate from confirm details to checkout screen. Tested with and without flag on and with and without shipping

          1 Warning

:warning:
Big PR

  Generated by :no_entry_sign: Danger


Discrepancies between DNS builds

Already noted are https://github.com/OSU-Net/cyder/issues/589 (SOA with a different primary) and https://github.com/OSU-Net/cyder/pull/579 (Creating domains for CNAMEs).
Additionally, there are certain records that are CNAME'd to another address (usually www.orst.edu - <IP_ADDRESS>), but in Maintain, there is an address record for them as well. We don't allow the address record in Cyder, so it gets removed, but this causes differences in the builds.

Resolved by https://github.com/OSU-Net/cyder/pull/832... as far as we can tell. Invalid records in Maintain will need to be cleaned up separately.


IndexTargetNode should always have ATTRIBUTE_WRITE

Fixes #2102
Because this is a user-facing change, we also need to deal with the fact that CRuby 3.3.0 was just released.
In order to support workflows that want to parse exactly as CRuby parses in a specific version, this PR introduces a new option to the options struct that is "version". This allows you to specify that you want "3.3.0" parsing.
I'm not sure if this is the correct solution. Another solution is to just fork and keep around the old branch for security patches. Or we could keep around a copy of the source files within this repository as another directory and only update when necessary. There are a lot of potential solutions here.
Because this change is so small and the check for it is so minimal, I've decided to go with this enum. If this ends up entirely cluttering the codebase with version checks, we'll come up with another solution. But for now this works, so we're going to go in this direction for a bit until we determine it's no longer working.

@enebo yeah great point. I just updated it


"$(icon octioicon-git-pull-request)" in status bar instead of icon

Issue Type: Bug
I see $(icon octicon-git-pull-request) etc. in my status bar instead of actual icons.  Guessing this is a problem with WAVE plugin?
Extension version: 2.0.191022002
VS Code version: Code - Insiders 1.40.0-insider (a14de79ac74f2e0e6566d3cc9410eeb7dc769cde, 2019-11-02T00:39:42.595Z)
OS version: Windows_NT x64 10.0.19511

Related: https://github.com/microsoft/vscode/issues/83210

Do you have the Azure Repos extension installed?

Pretty sure this is the same issue as #83210, which is caused by the Azure Repos extensions and they already have a fix, see https://github.com/microsoft/azure-repos-vscode/issues/572.

Yes, it is, and now it's fixed.  Thanks.


Pre-Compiled Binary

Hi, I was looking into this project but, I noticed it doesn’t have any releases. I’m not familiar with compiling Go, so I hoping you’d be able to help me out. What’s the best method for getting the binary on my machine so I can set up a systemd service? Personally, I’d rather not use docker, but that was the only method I saw on the README.
Thanks!

If you have go sdk installed then you can build the project using:
go get github.com/Alexander-r/gosrvmon
The resulting binary will be located at $GOPATH/bin/gosrvmon
But I just noticed that at the moment it will not work with go 1.16 as I have not set up modules for that. I will fix it when I have some time.
For github releases I will also look into github actions acd check if I can use it.
Right now the project has a mirror at gitlab and it has CI set up there. You can download the binary from pipeline artifacts there (download artifacts button on the right next to the pipeline):
https://gitlab.com/Sonnix/gosrvmon/-/pipelines
For the current version the binary will be at:
https://gitlab.com/Sonnix/gosrvmon/-/jobs/1078861274/artifacts/file/gosrvmon
That binary is for Linux (it is built with CGO_ENABLED=0 and is not linked to libc so it should work on most distributions). The project can also be built for Windows and Mac OS. I will update the documentation on that once I fix the modules for go 1.16.
The project has an example systemd unit file at https://github.com/Alexander-r/gosrvmon/blob/master/gosrvmon.service


didn't see data on 07/13 and 07/14

I am using this api to query data: "https://coronadatascraper.com/timeseries.csv". But it seems doesn't have 07/13 and 07/14 data generally. I checked the #home website, it update until 07/14.
Anyone know why this api doesn't update anymore or is there a new api for the data?
Thank you so much.

It should be updating every night.  It's possible that there was an issue with the automated launch last night.
fyi we are moving to a new project, Li, which will have slightly different reports.  I've tagged you on that issue in the project -- https://github.com/covidatlas/li/issues/284.

Thank you so much. So this api is still updating? do you guys notice the issue as I have or just me can't find the recent two days data

I just checked with the nightly launch script maintainer and he said that there was a problem with the launch the past few nights; hopefully it will now be fixed!  Let us know, and if it's fixed, please close this issue.  Cheers! jz

Thank you so much for confirm this. Good luck and appreciated with your group's effort

@jzohrab seems that this issue is still present - I am only seeing data up to 7/12 at the coronadatascraper.com/timeseries.csv endpoint.

Hi @eskirk - we've been running into issues with the launches of coronadatascraper.com.  I've recently switched the reports over to the Li reports, and everything appears to be working correctly, with data included.
Can you take a look at the reports in https://covidatlas.com/data to verify?  Cheers! jz

Closing due to no response, I assume it is working.


Moving the FAB out of tab bar

I added a UITabBar to my view, so now the FAB is partially covered by the bar.
I tried to change the frame of the FAB, but it stays in the same place.

I am having the same issue. What I tried as a workaround is to add the FAB with a custom frame using the initWithFrame: method, so it floats above the tab bar. However, this gives me a new issue: when showing the keyboard, the FAB is moved up, but when hiding the keyboard the FAB stays in place.

Hello,
You can use paddingY property in KCFloatingActionButton.


Support for Ubuntu 16.04

Placeholder in case this isn't on your roadmap yet.  The cookbook needs a bit of work to support Ubuntu 16.04.  Thanks in advance!

Support for Ubuntu 16.04 got merged on May 4.


Clarify the docs on the driver.Queue interface. [phab:D986]

Created by fromberger at 2016-07-27 16:52:53:

schroederc accepted this revision at 2016-07-27 16:56:50

fromberger closed via commit 7aa18d51a4515739583886d175beef508e1f2d39 at 2016-07-27 16:57:53


docs: Add note to local setup for WSL users to skip mongodb creation step.

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #47493
This change adds the following note to how-to-setup-freecodecamp-locally.md since users who follow the WSL setup guide already have a MongoDB instance setup by the time they get to the MongoDB creation step.

[!NOTE]
If you followed along with the Windows 10 via WSL2 Setup Guide, then you should be able to skip this step if the MongoDB server from that guide is already running. You can confirm this by checking that you can reach http://localhost:27017 on your local machine.

@naomi-lgbt My apologies, I didn't check with the linter when I committed your requested change earlier. Not sure if you have to re-review since I pushed more changes, but if you could re-review, that would be great!

I didn't check with the linter when I committed your requested change earlier.

Haha no worries - my fault for giving a borked suggestion


Library Recipes for 1.0

The library recipes for 1.0 have been added to the 1.0 branch. These are borrowing and econtent accessed. Content accessed is similar to the vle resource viewed and I don't suspect there will be a problem with that. We have not yet looked at borrowed. Information on the contents of worldshare and ezzproxy can be found in ticket #150.
So far we have my first attempts. I will look at how these match up to what lee has, then work towards testing in the xapi translater.

Moved back to 1.1


Add support for mixed rendering

Mixed rendering is a mode that works like shallow rendering, but where
you can specify a list of components you want to render even tho they
are deeply nested.
We have a use case where we are using shallow rendering and Cheerio for unit testing our Preact components. We are using a redux-connect like higher order component to connect some components to our global state.
When testing a component, that uses another component that is wrapped in a HOC, the shallow renderer stops at the HOC.
With mixed rendering we can white list components we want to render and test that the wrapped components are used correctly.

Had to do some commits to use this internally at our company. Closing this in favour of  https://github.com/developit/preact-render-to-string/pull/50


Retry event handler and process router on error

Event handlers and process managers are expected to return :ok on successful handling of an event. They return {:error, reason} on failure. In this case the event handler should be retried.
The number of retries and delay between retrying should be configurable in the environment config file (e.g. config/dev.exs).
Once the number of retries has been exceeded the error should be logged and the event should be skipped.
One approach would be to provide a Commanded.RetryStrategy behaviour that can be implemented by consumers to control retries and failure. An out-of-the-box default implementation could be provided where you state the number of retries, delay between retries, and what to do on failure.

Maybe skipping the event is not always a viable option depending on the domain. I guess that failing is a must in many scenarios. Maybe there is a bug that has to be fixed and skipping some events leads to inconsistent state.

@Papipo Skip event on error could be made configurable, either per event handler or globally.

Could use tarearbol to provide retry logic.

I see no need for this.

Crash the app.
App restarts as defined pre restart policy.
Event gets delivered again.
App may crash again. After erlang-defined crash semantics exceed the threshold the BEAM shuts down.
Upper level machinery (e.g. docker) may restart the server.

This works great for my own cases (where I hand-built my process managers). Can't see why commanded would not succeed with this simple approach as well.

@drozzy, I think you talking about scenario when process manager generally fails (all process manager instances are failed), it's definitely should result app crash.
And I think proposal about - why crash the whole application if only one specific process manager instance fails? Just submit log, and stop executing bad process manager instance, or try another restart policy (like dropping state or skip event).

@drozzy Providing an extension point allows consumers of Commanded finer control over how they deal with errors on a case by case basis. So you could decide that for a certain event handler, or particular event, it should retry X times with exponential back-off between retries. Another handler could simply skip any problematic events.
I don't know exactly what the best strategy is for each use case, therefore make it user configurable.

Seems like this can be done with some external  dependency in client code. Is there any actual uses for this?
P.S.: I quite like Gregg's approach to features.

Closing this issue. Replaced by #93 to support error handling for process manager command dispatch only.


Implement a "back off jump" or "disengage" action

Back off jump/disengage action means that a player who sees another player in its line of sight has to be able to choose an option to "flight" (it's a part of a basic fight or flight response).
The action is implemented by letting a player jump two tiles backwards (opposite of the direction it's facing) in the case if they're seeing another player in their immediate vicinity and choose to "flight".
As of right now, players can only move in the direction they're facing, so this may be a bit difficult to implement.

This is also blocked by the #10 line of sight mechanics implementation because to determine if its looking at another player to then choose to flee, the player needs to have a line of sight. As of right now, the only tile a player can expect is the immediate tile they're looking at.

This ability to move two tiles backwards kind of breaks the consistency of only being able to walk where player's looking, therefore in the future, when the simulation evolves, look into these possibilities:

Implement a queue of actions per player, where a player can pre-plan several of the next actions for the next few turns, like "Disengage" may mean "turn left, turn left, move forward, move forward" or something like that. Meaning, think about implementing the possibility of players being able to perform chains of several pre-planned actions.
Look into implementing speed of an action or player itself. That is, apart from the hunger cost, actions can also be performed with varying speed, therefore a player may be able to fit 2 or more actions into a single turn.

For now though, for ease of implementation and to quickly move on to genetics, implement "disengage" as moving backwards 2 tiles in a single turn.

NOTE: there is a minor bug in this implementation because of a conflict with color blinking on line of sight detection where if a player dies in the same turn as it changes color due to line of sight, it will return to its old "alive" red color instead of the correct black to indicate that it's dead. This is not a big issue because in the future color blinking is going to be replaced with using line of sight detection properly, so the issue is temporary and therefore is not worth fixing.


Passenger - Failed to find required executable gem

TASK: [/Users/mike/projects/rails-stack | Install passenger gem] **************
failed: [<IP_ADDRESS>] => {"failed": true}
msg: Failed to find required executable gem

FATAL: all hosts have already failed -- aborting

Temporary fix: run the playbook again and the error should not reoccur.

Fixed in e90bc6a.


List bug

Issue #, if available:
Description of changes:
Reopening merged PR : https://github.com/awslabs/document-understanding-solution/pull/154
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Changes have been approved by @ShivaniMehendarge  and me but we need to wait until we are completed with an external review before release

Merging in since approved here https://github.com/awslabs/document-understanding-solution/pull/154


Data model intro paragraphs

Feel free to take an axe to anything here

I like it! Dave, can you reformat it to be 79 characters max per line? Otherwise our linter would not allow us to merge this.

I like it! Dave, can you reformat it to be 79 characters max per line? Otherwise our linter would not allow us to merge this.

This is for https://edgedb-staging.vercel.app/docs/datamodel/index

This is for https://edgedb-staging.vercel.app/docs/datamodel/index

Thanks Dave!

Thanks Dave!


Add a Project

I have added a Project!

@Iamtripathisatyam. Name your project in PR title, update your project with short intro in projects_doc.md and add up your name as contributor in format given in README.md

resolve conflicts and raise another PR


Setup Sonar for developers to identify bugs through static code analysis

As a developer, I should be able to run static code analysis and identify bugs, vulnerabilities, code smells, etc.

Closing this in favor of #1247.


www/nginx: Regex validation constraint for location

The URL pattern field of a location expects either a string (Match Type is empty, "=" or "^~") or a valid regular expression (Match Type is "~" or "~*"). The regex is currently not validated, which is implemented in this PR.
Open points/to discuss:

How to implement the model migration - what to do with invalid regexes during migration?

A field type would probably be better as the constraint scope suggest it's generic functionality, but in reality it can only be used for this model. leaving this open for now, please close if not deemed important anymore.


StackedColumns with multiple axes

How to reproduce?
When using multiple axes with StackedColumns, the chart won't separate the different labels according to the axes, even though theay are declared in the xaml file, instead the chart combines everything in one of the axes, as if it ignores the ScalesAtY parameter.
Extra notes
The chart should display tow stacked columns side by side for each label, scaled to their correspondig axes
I am using

Live-Charts version
<IP_ADDRESS>

.Net Version
4.5.2

Windows
Windows 7 Professional

This works indeed, it seems that it doesn't because a column is over the second one, check out this sample:
<lvc:CartesianChart>
            <lvc:CartesianChart.Series>
                <lvc:StackedColumnSeries Values="1,6,3,8" MaxColumnWidth="999"></lvc:StackedColumnSeries>
                <lvc:StackedColumnSeries Values="6,2,9,4" MaxColumnWidth="999"></lvc:StackedColumnSeries>

                <lvc:StackedColumnSeries Values="2,6,3,5" ScalesYAt="1" ></lvc:StackedColumnSeries>
                <lvc:StackedColumnSeries Values="6,3,5,6" ScalesYAt="1" ></lvc:StackedColumnSeries>
            </lvc:CartesianChart.Series>
            <lvc:CartesianChart.AxisY>
                <lvc:Axis></lvc:Axis>
                <lvc:Axis></lvc:Axis>
            </lvc:CartesianChart.AxisY>
       </lvc:CartesianChart>

and the result:

I am closing this, since this works, maybe you need a different plot for this case, feel free to open a request with what you need.
Thanks for the report


Add support for variables

This adds support for variables:

Last recalled event #
Current key status on/off

I haven't tested with an HVS-2000, so I assumed the key variables. I can add other variables that might be helpful. My use case is to hopefully use the variables with bitfocus/companion#1186 (ie, when event # 12 is recalled, start playing a video).

Thanks for the PR. The variables on the 100 are working great.
Based on packet captures I have from the 2000, the regexes in parseVariables() will not work with that model, but it should be a simple fix. I'm going to go ahead and approve this PR, then push my changes for the 2000.


fix(jsx): preserve the state of element even if it is repeatedly evaluated by children

There was a bug where the hook state was not maintained when passed as children.
This is not a specification change, but a fix to the original expected behaviour, so a patch version release would be acceptable, but it might cause changes in the results in existing applications, so it is better to include it in a minor version update with #2553.
Author should do the followings, if applicable

[x] Add tests
[x] Run tests
[x] yarn denoify to generate files for Deno

Thank you @usualoma !
I'll merge this into the "next" branch, which I will create later. The next minor version will be shipped soon!


Correctly find uniq index stores

Without sort, this uniq call is really doing nothing. If the same index store appears multiple times in the build event file (which is the case for bazel-out/rules_ios_global_index_store.indexstore) we will pass it multiple times to index-import causing performance issues in complex apps.

Nice findings!


[Feature] Drag and Drop Resource Tracking

Suggestion from the Discord server:

The ability to drag an item (like potions) onto the "Resource 1/2/3/4" tab and have it automatically keep track of the item quantity would be amazing.

Probably going to be going for something more like this: https://foundryvtt.com/packages/link-item-resource-5e


SCSI cmd requested data size can be different to actual data size transferred. No way to see this atm.

When doing scsi commands that request for data from a device, the actual size of the data transferred can be different to the requested size. I guess this usually occurs when you ask for a big amount of data, but the device only supports a smaller amount of data.
see: https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddscsi/ns-ntddscsi-_scsi_pass_through_direct
"The value in DataTransferLength must be an integral multiple of this predefined, minimum length that is specified by the device. If an underrun occurs, the miniport driver must update this member to the number of bytes actually transferred."
An example of this is when doing an Inquiry (12h) command.
On a dvd-drive I have I ask for 0xF0 bytes but my device only returns 0x60 bytes.
If you aren't made aware that the actual data returned is less than the requested data, you may then try to use the full amount of data which is not going to be the correct or expected values.
(Note that the amount of data returned by an Inquiry command can be device specific. So it may not be 0x60 bytes on all devices)
For Windows the value "SCSIPassThroughDirect.data_transfer_length" gets updated during the call to DeviceIoControl() to contain the actual size of the data transferred. So in my above example it would be intially set to 0xF0 bytes before calling DeviceIoControl(), then once the call is finished, reading out the value would show that it is now 0x60.
It looks like SGIO on Linux has a value "resid" to show the actual number of bytes transferred on it.
I am not sure how to best handle this in your smartie code.
Do you think it would be safe to truncate the 'data' parameter passed into SCSIDevice.issue_command()?
Or instead return 2 values, where one is the sense data and the other is the data?
Or include a new parameter passed in for data size?

We don't know where the data field is coming from, or even what memory allocator was actually used to allocate it, so we have no way to safely resize it - and we probably wouldn't want to, since it'll likely be reused by a following call for performance. We should probably just return the size actually read, if available, or None if unknown, in a tuple with the sense information.

Can you try the changes in main? I won't have a chance to test on Windows myself until Sunday.


cli_demo_quantization.py does not work with latest torchao (git)

System Info / 系統信息
torch 2.4.1 /  diffuser 0.30.2 / Ubuntu 22.04.4 LTS / Cuda driver 12.6
Information / 问题信息

[X] The official example scripts / 官方的示例脚本
[ ] My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程
pip install git+https://github.com/pytorch/ao.git

python cli_demo_quantization.py --prompt "A girl riding a bike." --model_path THUDM/CogVideoX-5b --quantization_scheme fp8 --dtype bfloat16

Expected behavior / 期待表现
does not work with torchao from current git tree anymore
Traceback (most recent call last):
File "/home/x/CogVideo/inference/cli_demo_quantization.py", line 26, in
from torchao.float8.inference import ActivationCasting, QuantConfig, quantize_to_float8
ImportError: cannot import name 'ActivationCasting' from 'torchao.float8.inference'
it seems it got (re)moved here:
https://github.com/pytorch/ao/commit/848e123e37df7e7033f26619b02562525404c2b5
Is there any up-to-date example of how to do inference with quantization?

I'm not updated with all the changes in torchao at the moment but for now, I think it would be best to use the version of torchao before these modifications.

torchao version === 0.6.1
same problem

@anmingan try torchao==0.4.0

This should be re-opened so that someone can submit a PR to update it.

As an intern at Zhipu AI, I'd like to share a solution for the FP8 quantization issue that users have been encountering with CogVideoX:
When using newer versions of TorchAO, users are encountering an ImportError with the FP8 quantization feature. Here's the working solution I've verified:
Instead of using:
from torchao.float8.inference import ActivationCasting, QuantConfig, quantize_to_float8
quantize_to_float8(part, QuantConfig(ActivationCasting.DYNAMIC))

You should use:
from torchao.quantization import quantize_, float8_weight_only
quantize_(model, float8_weight_only())

I've tested this solution with CogVideoX-5B model. This workaround addresses the API compatibility issue for users with newer versions of TorchAO.
The modification provides the same FP8 quantization functionality while being compatible with the updated TorchAO API structure. Please make sure you have the latest version of TorchAO installed.


CrossTalk_1_6_3_090501-beta not backwards compatible with TS3.0.16

Hi,
I have CrossTalk_1_6_3_070301-beta installed. When I started my TS 3.0.16 as usually it notified me about an update of CrossTalk (compiled for 3.0.17). But that does not seem to be backwards compatible with my version.
Are you going to make it backwards compatible?
Regards ,
zs
Error message:

ts3client_win64.exe - Entry Point Not Found

The procedure entry point ??0QSqlError@@QEAA@AEBVQString@@0W4ErrorType@0@0@Z could not be located in the dynamic link library Qt5Sql.dll.

That's not very attractive, as it's not just compiling against a different target - the source code from 3.0.17 onwards is also going to be different, unless I'd be willing to not use C++11/14 functions.
Changes for compatibility with C++11 are the sole changes of the latest beta update, so there's not much of a point for having that in 3.0.16.
All in all, I feel it's more feasible to sort out what's holding you back from 3.0.17 than me starting forks for different TS versions. Did you try if the 3.0.18 beta fixed whatever the problem is with 3.0.17?

You should really consider updating to 3.0.18 [Stable] as 3.0.16 is a big security risk to you!

@thorwe Thanks.
I do understand your reasoning and for this particular release it seems really like a no-go.
Are you interested in any future backwards incompatibilities I might spot? Or is this generally of no concern to you?
For my reasons: ACRE usually lags behind on updates for TS3. Since it is one of the main reasons I use TS3 it is my indicator for when to update TS3.
@Bluscream: what is the big security risk you speak of? Nothing in that regard has been mentioned to have been fixed. Do you have any source for your claim?
http://forum.teamspeak.com/showthread.php/119239-TeamSpeak-Client-3-0-17-released
http://forum.teamspeak.com/showthread.php/120411-TeamSpeak-3-Client-3-0-18-released

It's not the client per se that's been vulnerable, it's simply been en vogue the last couple of weeks to disguise server welcome messages as "Teamspeak update" notification pointing to some, you guessed it, completely proper download location... The latest client adds some warnings on hyperlinks to external sites.
Backwards compatibility is broken in the following cases:
Plugin API update (rare),
Msvc update, that will happen again once TS switches to Visual Studio 2015 (or...17, 19, 20, or whatever ;) )
Major Qt Update (extremely rare), usually stuff keeps running, e.g. the client 3.0.18 updating to Qt5.5 is not an issue, the plugin will happily use that one.
Point 2 & 3 are somewhat CrossTalk specific, since I a) use Qt and b) use Qt in a way that I have the same instance than the main program, which enables certain information to flow that'd be less elegant to get otherwise. That's why compiling in a way that I'm independent from the client's msvc + qt version, by bringing my own ones so to speak, would break things.
Arma afaik also uses Qt, but I don't know if it's also compiled in that more fragile way I do, or if it's just using it for the UI (then it wouldn't need to do that).
Other than that, there shouldn't be a problem with updates, feel free to report if there're, could be sth. small who knows.
An easy way to test that is by using a second client (temporarily).
TeamSpeak actually doesn't really use the registry other than for uninstall routines. Settings are either in TeamSpeak/config order %LOCALAPPDATA/TSClient. Hence, one can simply copy the TS program folder to another location, say c:\TS_Test, update it there and see what happens. Just in case you weren't aware :)
TLDR If it's just some Plugin API update in an irrelevant function, where I just can do another compile and have this done in a couple of minutes, sure. If there's more work involved, splitting code bases and such, odds are against it, after all I'm barely keeping up with maintenance and delivering promised new features as it is and then there're decisions to be made what to spend limited time on.

I understand it won't be done for this version.
I will keep mentioning backwards incompatibilities as I spot them since those require individual decisions.

@zsawyer We from www.r4p3.net are searching security exploits in Teamspeak, and i can tell you that the old client with the old QT version is a HUGE security risk ;)
Even the newest is :P


Set up CI

Just a tracking issue for setting up tests / CI on pull-requests

We can copy the config from synthtool for this.


(PDB-4751) Improve console output during upgrades

Print friendlier, more concise output to the console during upgrades.
May want to make this nicer later.  One easy way to see the new
output:

Create a 5.2.x database
Add some commands via benchmark
./pdb upgrade -c ... > tmp.log

CLA signed by all contributors.

We decided not to pursue this for now since it wasn't quite what was needed for the case in question.  See the ticket for more information.


hydration

Hydration implementation details (major)
Step 1: Should still happen in render for new queries (and queries with no observers?), but be scheduled for a useEffect for queries that someone is actively listening to since this results in re-renders/observable side effects
Step 2 (optional): When hydrating in useEffect also add the new data to a context for that subtree, refactor all reads to patch in data from that context. That subtree safely gets the new data during the same render instead of after, "true" cache and thus anything listening outside of that subtree gets updated via the useEffect (This might be overkill, we should evaluate if step 1 is good enough first)
@Ephem

I wanted to throw together a demo of this issue so it's easily understandable, and as something to verify the changed behaviour against, so threw together a sandbox here: https://codesandbox.io/s/hydrate-in-render-demonstration-uvpe46?file=/src/App.js


Mipmaps

Store and load mipmaps in the custom format.
Textures have to be reimported (this reimports textures already in master).
Fixes #782 , #783

SonarQube analysis reported 1 issue
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 AncientFungus:LGEPR: Cppcheck cannot find all the include files (use --check-config for details)

This should probably not be merged before the testing, since a lot of textures will have to be reimported.

iamheman

iamheman

iamheman

iamheman

iamheman

iamheman


allow block setattr to reset the prefix when setting new block

Description
allow use cases like block1.features = block2.features to be able to save and load on block1 by overriding prefix
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] make shallow copies of block when overriding prefix
[x] make shallow copies of parameters when overriding prefix

copying block is a very bad idea.
reseting prefix in the same block is more acceptable, but may still cause problems.

reseting prefix will cause the previous parent block to malfunction.

ping @piiswrong

I think we should solve this with better warnings and documentation instead of hacking around specific use cases

This shouldn't be considered as hack. The proposed changes work under the following constraints:

the parameters of a block/hybridblock should always be able to be saved and loaded.
our block/hybridblock supports setattr with other block/hybridblocks.
when doing net2.block1 = net1.block1, net1 and net2 should continue to function normally.

Currently, the problem is that for 3., if net1 and net2 don't have the same prefix, 1. is violated. I don't think this is "unintended use case" since this is allowed under current design. I don't believe that forcing users to always do with net2.name_scope(): create_net1() will be productive, nor will it be easy to use.

We should raise a warning when assign blocks with non-matching prefix.
In python copy on assignment only happens for builtin types. This kind of hidden protocol that decides when to copy is a hack.
Also net2.block1 = net1.block1 itself is a hack. The right approach is to define a new block and compose them.

If net2.block1 = net1.block1 is a hack, what's the intended use case for __setattr__ for blocks?

That should have been disabled. Unfortunately we forgot to do so in the beginning.
Pytorch for example, disables it: https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/module.py#L146


Current generative drops are not unlockable

And I think generative drops are currently not unlockables.

ref

#7838
#7580

And I think generative drops are currently not unlockables.

How about hiding this part for now?

How about hiding this part for now?

You can check if it's unlockable by queriing keywise service

How about hiding this part for now?

You can check if it's unlockable by queriing keywise service

Thank you, but I still need to know how to deal with the collection if that isn't unlockable. Hiding this section or changing the text etc.

Hide


Switch to use IPAM in EDPM baremetal job

Depends-On: https://github.com/openstack-k8s-operators/dataplane-operator/pull/254

recheck

recheck

recheck

I think the issue is after provisioning. I noticed that we don't deploy metallb when NETWORK_ISOLATION=false, so the DNS LB endpoint is not available and we download some images in the nodes from quay.. I've a patch in ci-framework[1] and would add as Depends-On here.. Hope the the depends-on would work. ELse we've to wait for [1] to merge.
[1] https://github.com/openstack-k8s-operators/ci-framework/pull/346

recheck

recheck

The first try failed to provision the BMH, with this error appearing in the Metal3 operator logs

@abays Yeah that's because currently ironic uses sqlite as the database and it sometimes ends up in locking issues. I normally delete the ironic pod in baremetal-operator-system  and that fixes the issue. I've been thinking about changing to use mariadb which would require TLS to be configured for ironic.


Add support for 'Cucumber expressions'

The reference implementation for Gherkin has adopted 'Cucumber expressions' which are a type based argument substitution in step definitions, similar to ours but using a different syntax. Ref. https://cucumber.io/docs/cucumber/cucumber-expressions/
We currently allow this transformation in step definitions (ref #863):
@Then I should be a user named :name

In order to increase compatibility with the reference Gherkin implementation, we can also support this transformation:
@Then I should be a user named {string}

Yes I'd like to do this long-term. Probably first step is a PHP implementation in cucumber/cucumber-expressions


Rails 7 compatibility

Hello there, we've been using this glorious gem since Rails 4. We're now upgrading to Rails 7 and we noticed that it's not supported yet. Is there already work in progress to support it, or are you waiting for contributions? 🙂

Hello, and thanks for bringing this up. No work (that I'm aware of) has been done for Rails 7 yet. This might be a good place to start building a to-do list.

@duarme Curious, what about geocoder doesn't work right now in Rails 7? Currently using it in a Rails 7 app but only for near queries on the database. Thinking of using it for IP Address geolocating, but now I'm hesitant.

I'm not aware of any issues using Geocoder with Rails 7. If anyone has specific problems, please create issues for them. I'm going to close this (and update the README).


Decompiler: parameters based on indirect addressing - CODE vs. DATA segment

This relates to ghidra 9.0.4 and the PIC processors, I'm specifically working with a PIC16F153xx.
An assembly sequence like this
CODE:0008 20 30           MOVLW      #0x20
CODE:000a 84 00           MOVWF      FSR0L
CODE:000b 00 30           MOVLW      #0x0
CODE:000c 85 00           MOVWF      FSR0H
CODE:000d 4b 30           MOVLW      #0x4b
CODE:000e 82 31           MOVLP      #0x2
CODE:000f 97 22           CALL       clearBuffer   (byte clearBuffer(byte * buffer, ...)

is decompiled to
  clearBuffer((byte *)((short)configureOscillator + 1),0x4b);

Inside the function clearBuffer(byte *buffer,byte len)
                             **************************************************************
                             *                          FUNCTION                          *
                             **************************************************************
                             byte __stdcall clearBuffer(byte * buffer, byte len)
                               assume PCLATH = 0x2
             byte              W:1            <RETURN>
             byte *            FSR0:2         buffer
             byte              W:1            len
                             clearBuffer                                     XREF[1]:     CODE:000f(c)
       CODE:0297 64 00           CLRWDT
                             LAB_CODE_0298                                   XREF[1]:     CODE:029b(j)
       CODE:0298 80 01           CLRF       INDF0

the indirectly addressed parameter FSR0 is accessed e.g. via INDF0, like CLRF       INDF0.
Now here is my question:
The decompiled function call
  clearBuffer((byte *)((short)configureOscillator + 1),0x4b);

shows an (unrelated) label "configureOscillator + 1" from the CODE segment.
However, PIC FSR0/FSR1/INDF0/INDF1/... instructions access the DATA segment.
Both segments use overlapping addresses (starting at 0x0000).
How can I make ghidra show labels from the DATA segment for this decompiler use case?

Ok, I found a possible solution in GhidraDocs/languages/html/sleigh_definitions.html#idm140310875499872 (Section "4.3 Space Definitions):

At least one space needs to be labeled with the default attribute. This should be the space that the processor accesses with its main address bus. In terms of the rest of the specification file, this sets the default space referred to by the ‘*’ operator

Currently, pic16.sinc has
# Instruction Memory (ROM-based)
define space CODE type=ram_space wordsize=2 size=2 default;

When I remove the default attribute there, and instead add it to
# General Purpose Register Memory consists of 4-banks of 255-bytes for PIC16,
(...)
define space DATA type=ram_space size=2 default;

then the decompiler works as desired for the use case above.
I'm not sure if this has other undesired side-effects, though.
(BTW, the Sleigh documentation also mentions a rom_space type that would be more appropriate for the PIC CODE space, however, it doesn't seem to be implemented in Sleigh currently?)

You can try using the following in the .pspec file, but I don't think this will quite help you, although it might make some other things work better.
....
<processor_spec>

  <programcounter register="PC"/>
  <data_space space="DATA"/>
 ....

By your program in the data space, do you mean when you load it?
If you always specify the address space in your pcode, then it will refer to the right space, except for values that are passed to functions.  Take a look at the AVR8, as it suffers from this same issue.
rel7addr: rel is op3to9signed [ rel = (op3to9signed + inst_next);] {
export *[code]:2 rel;
}

except for values that are passed to functions

This was the problem I initially encountered - values that are passed to functions.
I want Ghidra to know hat these values are from the DATA space (and therefore show the correct labels).
Is there no way to achieve that?

You can override the branching flow, but the decompiler currently only has a default space.
We have had this on the books for quite a while, and have a plan to address it in the next release or so along with a few other things related to this type of hint issue.  The idea is to add an address space tag to data types in certain uses such as parameters and structures.  Very similar to attribute() or other tags that GCC uses on a data type.
I think the best thing is to set the default data space, and make sure any code references are caveated with correct [CODE] [DATA] access when the value is used as an address.  I'm not sure what you mean by now your code references are going to the data space.Iis that when passed to parameters, or within the disassembly flow?

When I set the default DATA space, a .hex file is imported into this DATA space, even if I set the base address to CODE: in options:

Regarding

I think the best thing is to set the default data space, and make sure any code references are caveated with correct [CODE] [DATA] access when the value is used as an address.

I can only either use *[const]:2 or *[CODE]:2, but not both, correct?
Unfortunately I need the *[const]:2 caveat to avoid false switch/case detections.


[Release 1.28] Update CNI plugins version

Backport for #10798
Issue: #10816

Drone runners were out of disk space, feel free to restart and they should go green.


parquet::ArrowWriter show allow writing Bloom filters before the end of the file

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
https://parquet.apache.org/docs/file-format/bloomfilter/#file-format mentions two ways to layout Bloom Filters: either write each Bloom Filter after its row group, or write all Bloom Filters at the end; then write pointers to Bloom Filters in the footer.
The parquet crate opts for writing all Bloom Filters at the end, while computing them while each row group is being written. This means Bloom Filters need to be kept in memory while files are being written, which can take significant space. In my use case, ~4TB of Bloom filters while writing a 20TB table.
Describe the solution you'd like
Either switch to the other layout (interleaved with row groups), provide an option to switch between the two, or allow users to flush when they want to.
Describe alternatives you've considered
Expecting users to close the ArrowWriter from time to time, and opening a new one. This would mitigate the memory usage, but not entirely remove it. When writing in parallel from multiple threads, it also means they need to stagger re-openings when writing many files in parallel in order to avoid spikes in RAM.

label_issue.py automatically added labels {'parquet'} from #5860


dynamodb controller helm chart release 0.0.3 refers to 0.0.2 controller image.

Describe the bug
When following the instructions at https://aws-controllers-k8s.github.io/community/user-docs/install/ and installing the latest (0.0.3) dynamodb controller using helm, the 0.0.2 DynamoDB ACK controller container image is used.
Steps to reproduce
Pull the 0.0.3 dynamodb helm chart from public.ecr.aws/aws-controllers-k8s/chart:dynamodb-v0.0.3 and deploy it. The 0.0.2 container image will be deployed.
alternatively you can just inspect the values.yaml from the chart:
$ helm chart pull public.ecr.aws/aws-controllers-k8s/chart:dynamodb-v0.0.3
$ helm chart export public.ecr.aws/aws-controllers-k8s/chart:dynamodb-v0.0.3
$ grep tag: ack-dynamodb-controller/values.yaml
  tag: dynamodb-v0.0.2

Expected outcome
The 0.0.3 dynamodb ACK controller should be deployed.
Environment

Kubernetes version N/A
Using EKS (yes/no), if so version? M/A
AWS service targeted (S3, RDS, etc.) DynamoDB

Thank you for reporting this @beezly .
I've updated the DynamoDB to use the latest ACK runtime (v0.7.1) and cut a new release for it (v0.0.4) - https://github.com/aws-controllers-k8s/dynamodb-controller/pull/11
https://github.com/aws-controllers-k8s/dynamodb-controller/releases/tag/v0.0.4


Remove .[docs] extra dependency

In https://github.com/huggingface/huggingface_hub/pull/1849, I updated the [docs] extra dependency to install hf-doc-builder from source. The doc builder must be installed from source as the last release dates back to Aug 2022 and we don't actively maintain regular releases. This was fine until I tried to build and publish the package on PyPI. It looks like PyPI has their reason to forbid packages that have a dependency installing from source. See github action:
Run twine upload dist/* -u __token__ -p "$PYPI_TOKEN"
Uploading distributions to https://upload.pypi.org/legacy/
Uploading huggingface_hub-0.20.0rc0-py3-none-any.whl
25l
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/357.9 kB • --:-- • ?
 23% ━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ [8](https://github.com/huggingface/huggingface_hub/actions/runs/7262705875/job/19786427581#step:7:9)1.9/357.9 kB • 00:01 • 43.5 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 357.9/357.9 kB • 00:00 • 7.0 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 357.9/357.9 kB • 00:00 • 7.0 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 357.9/357.9 kB • 00:00 • 7.0 MB/s
25hWARNING  Error during upload. Retry with the --verbose option for more details.
ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
         Invalid value for requires_dist. Error: Can't have direct dependency:
         "hf-doc-builder @ git+https://github.com/huggingface/doc-builder@main ;
         extra == 'docs'"

To prevent this, this PR completely removes the [docs] extra package and updates the contributing guide to show how to install from source. This way PyPI won't complain and contriubutors will still be able to build docs locally.
NOTE: I noticed that transformers/diffusers/... also have the same problem. They still install hf-doc-builder from PyPI which will installed an outdated (and non-working) version. Very low impact to take care of it though.

Thanks @osanseviero !

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


pulsar-functions kuberenetesRuntime does not use downloadDirectory for placement of download files.

Describe the bug
When configuring a pod to run as a different users, we found that the download files for the kubernetes runtime are placed in pulsarRoot vs. in the configured workerConfig:downloadDirectory as we had expected. For kubernetes to be able to write the files as other users, these directories should be mounted as volumes, however, since the volume cannot be specified for pulsarRoot, you cannot move where the download files are located, as suggested by the worker configuration.
To Reproduce
Steps to reproduce the behavior:

Use kubernetes runtime, create a new functions worker for a java based worker, and inspect the functions pod command line to identify the location of the Jar files

/pulsar/bin/pulsar-admin --admin-url https://itomdipulsar-proxy:8443 functions
download --tenant public --namespace default --name provider --destination-file
/pulsar/minio-source-0.0.1-SNAPSHOT.nar && SHARD_ID=${POD_NAME##-} && echo shardId=${SHARD_ID}
&& exec java -cp /pulsar/instances/java-instance.jar:/pulsar/instances/deps/
-Dpulsar.functions.extra.dependencies.dir=/pulsar/instances/deps -Dpulsar.functions.instance.classpath=/pulsar/conf:::/pulsar/lib/*:
-Dlog4j.configurationFile=kubernetes_instance_log4j2.xml -Dpulsar.function.log.dir=logs/functions/public/default/provider
-Dpulsar.function.log.file=provider-$SHARD_ID -Xmx1073741824 org.apache.pulsar.functions.instance.JavaInstanceMain
--jar **/pulsar/**minio-source-0.0.1-SNAPSHOT.nar --instance_id $SHARD_ID --function_id
Expected behavior
Expected to see the configured download directory prefixing the nar file and specified as the location of the sources.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]

Additional context
We tweaked the KubernetesRuntime code to set the:
this.originalCodeFileName = pulsarRootDir + "/" + originalCodeFileName;
to
this.originalCodeFileName = narExtractionDirectory + "/" + originalCodeFileName;
...
Although not correct, this allowed us to configure the resulting directory, and work around the problem, so that as a custom user ID we have access to write the jar file into the mounted /tmp location of the container image. Where narExtractionDirectory is set to "/tmp" by default.

I have initialized a pr to fix this issue. Please take a look when the pr is ready to review, thanks.

I have initialized a pr to fix this issue. Please take a look when the pr is ready to review, thanks.

Thank you

Thank you

@klwilson227 the pr is ready to review, PTAL, thanks.


discovery: Guarantee that HealthCheck stops calling the listener after HealthCheck.Close() returned.

@guoliang100
You can ignore the first two commits. They're identical to https://github.com/youtube/vitess/pull/1724 since this PR is based on that PR.
Description:
Without this change, it's difficult to synchronize the shutdown of a listener implementation and HealthCheck.
For example, a listener implementation could send to a channel for every update. But the shutdown of the listener implementation will close that channel and future sends to it will panic. Therefore, a HealthCheck.Close() must guarantee the user that the listener won't be called anymore when it returned. After that, the listener can shut down itself.

This change is

LGTM

@guoliang100 PTAL at the last commit.
I had to add it because the code prolonged our unit test execution internally. With the commit, this is fixed now.

And a second commit for another problem was necessary :) Please review this one as well.

LGTM


Custom protocol like zxing

Does Barcode API support scanning from website? For example zxing ha zxing:// custom protocol handler. And if not is it on roadmap?

No, there is no custom protocol support, nor is it on the roadmap.
The barcode API is for purely for application developers and doesn't provide any UI that could handle the use cases you suggest.


Touch Emulator

This adds a touch emulator on desktop. It is enabled by default on non-touch devices.
Use alt to pinch and alt + cmd to pan.
This also changes the gesture api to:

layer.pinchable.enabled = true like draggable
layer.on Gestures.Pinch for raw gestures

@koenbok If I can help somehow, let me know! :)

Haha so... much... work... and we changed the api again because we didn't like it.
It's in the latest beta now, you can try an example here: http://share.framerjs.com/rjk8t2bgmsra/

I see!! But it's looking really great. I like the pinchable property, it can't get any easier, I guess. :)
Re: the beta link, some things I noticed:

If you Alt+click or Alt+Cmd+click just after opening, it gives the following error:

TouchEmulator.coffee:76 Uncaught TypeError: Cannot read property 'x' of undefined
TouchEmulator.showTouchCursor	@	TouchEmulator.coffee:76
TouchEmulator.keydown	@	TouchEmulator.coffee:104
(anonymous function)	@	TouchEmulator.coffee:1

In this case, the line that is crashing is:
	showTouchCursor: ->
		@touchPointLayer.animateStop()
		@touchPointLayer.midX = @point.x

Sometimes it shows this other one:
Uncaught TypeError: Cannot read property 'x' of undefined
Utils.pointSubtract @ Utils.coffee:563
TouchEmulator.panPoint @ TouchEmulator.coffee:200
TouchEmulator.mousemove @ TouchEmulator.coffee:166
(anonymous function) @ TouchEmulator.coffee:1

That corresponds to:
Utils.pointSubtract = (pointA, pointB) ->
	return point =
		x: pointA.x - pointB.x
		y: pointA.y - pointB.y

For the two pointers that appear, I'd suggest to show them separated just after the user hits Alt, so she sees very clearly that the pinch action has started
Sometimes it seems that when pinching, it doesn't keep the original scale value so the layer gets larger after every pinch gesture

I could help tomorrow night with any of these. :+1:


update for 2021

Looks like most folks should have filed '21 by now.
Wyden NO https://efdsearch.senate.gov/search/view/annual/56842b03-e113-4a9c-b0ee-f8313178a9a8/

Cawthorn YES https://disclosures-clerk.house.gov/public_disc/ptr-pdfs/2022/20021112.pdf

Update with https://unusualwhales.com/portfolios


Feature Request: Modify How Projects/Posts Currently Work

What I am trying to accomplish in short is the ability to host dedicated pages for projects on the site rather than external links. I have tried a few workarounds but currently, I can't get it to work exactly how I would like.
Required Features:

Dedicated page for each project
Section on the homepage for a list of projects (like we already have)
Clicking a project on the homepage brings you to that page
Button on the nav bar that scrolls the page to that section (like we have for all sections)

I have tried the following but it's not exactly how I would like it:

Use projects as is:

Only able to use external links for projects.

Use the posts feature for my projects:

Must enable the "recent posts" section on the homepage. I can easily rename this in the YAML file to "Projects" which changes the header and nav bar text to how I would want it, which is great. I must then enable the posts feature in the main config.yaml. What I don't like about this is that it adds another button to the nav bar and I don't see any way to rename it.
Solution suggestion:
The easiest way I can see to implement this with the way the template is currently set up would be to allow users to hide the posts button from the nav bar even if they choose to enable this feature, just like we can with the homepage sections. This way I can write individual posts and then use that link as the URL in the current projects section, although it would be preferred if there was a way to have these links load within the same tab rather than opening a new one.

You can hide the section from Navbar by setting showOnNavbar to false. Here is an example: https://github.com/hugo-toha/hugo-toha.github.io/blob/063dbaebafce133ec200c745e4e1459ed9d972ee/data/en/sections/recent-posts.yaml#L7
I have added guide on how to add custom section. You can add custom section for your projects.
https://toha-guides.netlify.app/posts/customizing/new-section/


Drop gRPC client

Summary
Closes #1399
Checklist
Delete items not relevant to your PR:

[ ] Unit and integration tests covering the common scenarios were added
[x] A human-readable description of the changes was provided to include in CHANGELOG
[ ] For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

Hi @mzitnik, please review this pull request at your earliest convenience. I will be submitting a few more pull requests for updating dependencies, addressing bugs, and merging pending pull requests.

@zhicwu did you decide to drop gRPC ?

Yes, I see no benefit of keeping this but troubles(e.g. never production ready, CI failure time from time, and extra dependencies etc.). As I mentioned in the linked issue, Apache Arrow Flight is probably a better choice, and hopefully it will be supported in the future.

Replaced with https://github.com/ClickHouse/clickhouse-java/pull/1844