Improve text preview (or disable) text preview for binary files

Displaying a text preview for non-text files seems to be not that useful, as the content shown most times won't even be readable. So, It seem to me that there are two options for improvement:
A. Detect if it is a text file (how?) and only show a preview if that's the case.
B. Detect the file type (maybe using puremagic and display useful metadata (for instance, image size) if available.

How about that:
Determine the list of extensions for which preview is available
Check the user-selected extension. If it in list then - preview

Seems a good idea.
There are some known extensions that can be previewed as text, but we will also need to put in place some kind of check to distinguish between text and binary files, as a fallback after checking for known formats. Here is an implementation by Andrew Dalke: https://www.safaribooksonline.com/library/view/python-cookbook-2nd/0596007973/ch01s12.html
Also, puremagic may be useful here.
https://pypi.org/project/puremagic/
For PDF files, we could use PyPDF2 to get the number of pages (PdfFileReader.getNumPages()):
https://pythonhosted.org/PyPDF2/PdfFileReader.html#PyPDF2.PdfFileReader.getNumPages
For images, PIL/Pillow can provide image size info:
http://pillow.readthedocs.io/en/5.1.x/reference/Image.html
For zip and gzip archives, we could display the number of compressed items. Here’s a useful StackOverflow on that subject:
https://stackoverflow.com/questions/31124670/how-to-programmatically-count-the-number-of-files-in-an-archive-using-python?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
For audio files, we could display duration, bitrate, sample rate, artist, album, if available. Maybe this package can help:
https://pythonhosted.org/hsaudiotag3k/usage.html#available-attributes
Regarding these new dependencies, as long as they are also available or installable on Pythonista for iOS, we can add them.

I just discovered this. Possible to puremagic (file type detection), seems to have been updated more recently, but still not sure if the codebase is more mature.
https://github.com/floyernick/fleep-py

Having gone through pure magicdocumentation and code, it seems to me that it offers pretty easy path for file type identification:

Use puremagic to identify filetype (mime).
If mime starts with text/, show a simple text preview.
If it doesn't, try to use use another available preview method.
If no preview method is available for the detected mime, or if no mime was detected, display a simple "No text preview available." message.

Having gone through pure magicdocumentation and code, it seems to me that it offers a pretty easy path for file type identification:

Use puremagic to identify filetype (mime).
If mime contains text/, show a simple text preview.
If it doesn't, try to use use another available preview method.
If no preview method is available for the detected mime, or if no mime was detected, display a simple "No text preview available." message.

Trying to make an initial "skeleton" of this, that should be committed soon.

You found a lot of useful information.
Maybe it's a lazy method, but why not temporarily do it like this:
add in def get_files_by_extension:
                if preview:
                    try:
                        print('text')
                        print(f.read_text()[0:preview_size].replace('\n', ' '))
                    except:
                        print('bytes')
                        print(f.read_bytes()[0:preview_size])
                    print('–––––––––––––––––––––––––––––––––––')
                    #print(f.read_text(errors="replace")[0:preview_size].replace('\n', ' '))
                    print("–––––––––––––––––––––––––––––––––––\n")

for python countfiles.py --file-extension png  --preview --preview-size 500 it is return:
bytes
b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00Z\x00\x00\x012\x08\x06\x00\x00\x00zx\xc7\x81\x00\x00\x00\tpHYs\x00\x00\x0b\x13\x00\x00\x0
b\x13\x01\x00\x9a\x9c\x18\x00\x00\x01niTXtXML:com.adobe.xmp\x00\x00\x00\x00\x00<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0
">\n   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n      <rdf:Description rdf:about=""\n            xmlns:dc="http:
//purl.org/dc/elements/1.1/">\n         <dc:subject>\n            <rdf:Bag/>\n         </dc:subject>\n      </rdf:Description>\n   </rdf:R
DF>\n</x:xmpmeta>\n\xe5?\rA\x00\x00\x03\xeaIDATx\x9c\xed\xdd\xc1r\x1bU\x10@\xd1\x1e\x03\x81\xa2\xe0\xff?\x146@\xc2c\x91R\xc1\xc2\x89\x8c5\
xbe<\x0f\xe7\xac]\x1d\xe5f\xfc,M[\xd113?\xcf\xcc\xef\xc3\x9b\xfavff\xad\xf5\xdb\xa3'

Not a bad idea!
In fact, I have been testing both puremagic and fleep, and apparently text file detection is not included at all, which means that .py or .html are not detected. So, the approach I was getting into was to keep a list of known text types and check if the file extension was in that list. If it wasn't, it would use puremagic to determine the filetype. In the end, if no suitable preview method was found, then bytes preview could be displayed.
I am still not sure if we really need to detect filetypes, as the user has to indicate the file extension. Maybe we can use your approach and improve upon it:

try first to display a known text or binary format, using one of the available preview methods (e.g. for img, pdf...) – the file format could be inferred from the file extension provided by the user;
if it fails or the file format is unknown, do the text/bytes sequence you described above.

Using Pandas on this project falls a little out of its proposed scope, as it would make it incompatible with Pythonista for iOS. Unless it is added as an optional requirement and everything else works fine even when Pandas is not installed.
Regarding Standard Library (or easily installable pure-python packages), you are right. We have tools that can allow some interesting previews, and no time limits. It can be added one at a time.


iproute2: fix building for musl with GCC 14

Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

OfBorg failed on aarch64-linux because libaom is currently broken in staging due to a GCC ICE, which I have reported.  We're discussing what to do about it in #staging:nixos.org.


NumericUpDown does not obey Minimum when using Down Arrow if Minimum uses Binding

Describe the bug
When using the down arrow keys to decrement values, NumericUpDown control doesn't stop at value set in Minimum property if Minimum uses Binding and is greater than 0. It will instead decrement to 0.
Only Minimum shows problem. Maximum works as expected.
To Reproduce
<NumericUpDown
    Increment="1"
    Minimum="{Binding MinSample}"
    Maximum="{Binding MaxSample}"
    Value="{Binding Sample}"  />

this.WhenActivated(disposables => {
                Sample = 5;
                MinSample = 1;
                MaxSample = 15;
}

Expected behavior
Using the down arrow key to decrement will stop at value set in Minimum.
Desktop (please complete the following information):

OS: Windows 10
Version 0.10.0-rc2

A little note for anyone else looking at this issue. I've been unable to reproduce this if I don't use any ReactiveUI goodness. The minimum value is respected if I simply create a public property and set its value in the constructor.

A little note for anyone else looking at this issue. I've been unable to reproduce this if I don't use any ReactiveUI goodness. The minimum value is respected if I simply create a public property and set its value in the constructor.


MCP client implementation

This can be done after we get a LC4j version with https://github.com/langchain4j/langchain4j/pull/2240 in
Idea: We could create a configuration model like this
# one stdio-based MCP server
quarkus.langchain4j.mcp.server.server1.transport-type=stdio
quarkus.langchain4j.mcp.server.server2.command=npm exec<EMAIL_ADDRESS>
# and one HTTP-based MCP server
quarkus.langchain4j.mcp.server.server2.transport-type=http
quarkus.langchain4j.mcp.server.server2.sse-url=http://localhost:3000/sse
quarkus.langchain4j.mcp.server.server2.post-url=http://localhost:3000/message

and Quarkus would automatically generate a Tool provider that is backed by these two servers and register it in CDI to be picked up by AI services automatically

cc @langchain4j @geoand

👍🏽

BTW @edeandrea this will be a cool thing for demos :)

@mkouba is working a prototype to create MCP servers. Watch https://github.com/quarkusio/quarkus/issues/45054 for updates


Sorting by Title prefers capitalized string

The problem was discovered while working on this issue: selwynpolit/d9book#132
The expected behavior is that the sorting will not take into account capitalized text.
Also, when trying to fix this with manualSortFileNameByPriority, it doesn't seem to work if sorting by sortMenusByName is enabled. It would be great if it worked with other types of sorting.

Hello! Thank you for using the vitepress-sidebar plugin and for reporting the bug.
I've identified the issue and it's fixed in version 1.16.2, which i've just released. Please upgrade to this version and check if the issue is resolved.
This issue has been automatically closed, but if you continue to experience issues, please leave a comment and i'll reopen it.
Regards,


oom_get_keyvalue_cached should be eliminated

oom_get_keyvalue_cached() is almost identical to oom_get_keyvalue().  Pass in an optional flag to force use of cached data, use the flag as:
if (mm[key][0] == 0) or (use_cached):
Do that in both the SFF and CFP clauses

Yes. You are right.
BTW, it will be great if you will provide explanation what is the aim for "cached" reads. While looking though the code it was big surprise to me when I find "cached" read. I didn't find any obvious reasons it in code and docs. Will be very glad.

The purpose of cached reads is to allow multiple dynamic keys to be read in a single access.  The obvious case is reading DOM data.  This requires a read of temp, voltage, Tx/Rx power and laser bias (x4 lanes for QSFP).  That's 5-14 data points for one DOM read.  With the cached path, I can invalidate the cache to trigger a read, then read each of those 14 keys (cached).  The buffer gets filled once (the data is dynamic, so I need that refresh), then the remaining reads all use the same buffer data.  The data is also consistent this way, with all of the keys gathered at the same time.
The original issue here is that the code is redundant.  If I collapse those two routines together, then any changes in the future will only need to be made once, reducing the chance of fixing one and forgetting the other.


Exposing virtual machine images collection, unit test for ssh

Can one of the admins verify this patch?


schedule cron batch property documentation misleading

The documentation for the batch property reads:

Whether to run the pipeline if the previously scheduled run is in-progress; the default is false.

This part:

Whether to run the pipeline if the previously scheduled run is in-progress

suggests that you should set it to true if you want a new instance of the pipeline to start while the previously scheduled run is in progress.  However, the name of the parameter suggests otherwise.  I believe setting it to true actually specifies to not allow a new instance to start while the previously scheduled run is in progress, but am not completely clear on this without testing it myself.

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

ID: 251b71d4-0c7c-bf2f-2da7-625d13d8aa2e
Version Independent ID: 251b71d4-0c7c-bf2f-2da7-625d13d8aa2e
Content: schedules.cron definition
Content Source: content/schedules-cron.md
Service: azure-devops-pipelines
GitHub Login: @steved0x
Microsoft Alias: sdanie

@jrb-github -- thank you for your feedback and research.  Please clarify the product issue, and I will create a bug for you here:

Developer Community

@steved0x -- please look into this issue.

@WilliamAntonRohm - Thanks for the response.  From the documentation it sounds like either batch: true or batch: false on a YAML schedule (ambiguious which one) is supposed to yield behavior where only one scheduled build is running at a time (presumably based on the latest source, either at the time it is starts, or is queued), regardless of whether the builds take longer to complete than the scheduling interval.  That is not the case.

@jrb-github -- thank you for your follow-up.

@jrb-github with batching, there should only ever be 1 running per branch, and when it completes, then only the most recent of the stacked runs would then run (since it represents the most recent version, for that branch). Let me build a repro scenario and I will file a product bug. And then I will try and word that property description better as I agree with your feedback (and now I want to go and check the batch property description for CI trigger to ensure it isn't worded the same).

@jrb-github I have reached out to the author of this feature to get a clarification.

@jrb-github I have gotten some details back. There is a bug filed on the behavior of the batch property. I don't have any updates for now (it is still in progress), but I am tracking the bug and I am finding out if I can put a note in the article to let folks know to set the batch=false for now until it is resolved.

@jrb-github OK I have gotten an update from the product team. Cron schedules are intended to be sufficiently spaced so that potential batching does not play a role. The always property can be set to false to optimize the number of builds, if the code hasn't changed. I have been directed to remove batch from the documentation, as it is intended for CI triggres only, and does not work with respect to scheduled triggers.
The guidance for now is to remove batch from your scheduled triggers (which is the equivalent of setting it to false) and we will update the documentation to reflect that.
There is currently a feature request for this, here: https://developercommunity.visualstudio.com/t/Cron-schedule-in-yaml-doesnt-respect-ba/10128592?q=cron+batch
Please go there and upvote this discussion. If this feature/fix is implemented, it will be for Azure DevOps Services only (and then any Azure DevOps Server versions that are released after that).

That is unfortunate, but reasonable, thanks for the follow-up Steve.

@jrb-github The Azure Pipelines team made an update to batch for YAML scheduled triggers that just deployed as part of Azure DevOps sprint 224:
https://learn.microsoft.com/en-us/azure/devops/release-notes/2023/sprint-224-update#updates-to-yaml-cron-schedules
The doc should be live momentarily here:
https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/schedules-cron?view=azure-pipelines

Always
Batch
Behavior

false
false
Pipeline runs only if there's a change with respect to the last successful scheduled pipeline run.

false
true
Pipeline runs only if there's a change with respect to the last successful scheduled pipeline run, and there's no in-progress scheduled pipeline run.

true
false
Pipeline runs according to the cron schedule.

true
true
Pipeline runs according to the cron schedule.


Scan - Less number of scanned expenses show up inside the expense conversation page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.25-10
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4898296
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause - Internal Team
Action Performed:

Navigate to staging.new.expensify.com
Sign in with a new gmail account
Create a workspace
Go to workspace chat and submit 4 scan expenses using the same receipt
Wait for the scan to finish for all 4 receipts
Once scanning is done click on the IOU preview to go to expense conversation page
Additionally go to search > Expenses to see number of expenses

Expected Result:
4 expenses show up inside the expense conversation page
Actual Result:
Less than 4 expenses are displayed inside the expense conversation page (Sometimes 3, sometimes 2) even though the number of expenses shown on the preview component in workspace chat page is 4. When going to search > Expenses only 2 expenses are visible there too
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/user-attachments/assets/83bdd58e-9a82-4e41-b096-1264d5f50ce4
View all open jobs on GitHub

@trjExpensify  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

The tester has uploaded the same receipt 4 times. Check the Concierge conversation, it'll tell you they were deleted as dupes. This is the test they were executing, we don't ask to upload the same receipt loads of times.
As for the count in the report preview component after expenses are deleted, looks like we have an issue for it here: https://github.com/Expensify/App/issues/47617
Closing.


chore: attempt to fix broken links in docs

For example, the page of Mathlib.Data.List.BigOperators.Basic is trying to link to Mathlib.Data.List.Defs using ./defs but that becomes ../../../../././defs and a broken link.

Assuming that the four ../../../../ are added by the HTML generator because we are four directories deep in Mathlib/Data/List/BigOperators, I changed the ./defs to  Mathlib/Data/List/Defs.
The code search for ](. returned two similar problems in other files.
I have to admit that I do not actually understand how the documentation is built. The Readme mentions https://github.com/leanprover-community/doc-gen4 but that does not exist. (fixed, it's at https://github.com/leanprover/doc-gen4)

Thanks!
bors merge


Need to add OKCSharp to http://us.techlahoma.org/groups

Not sure if this is the right place to open an issue or not.  The OKC-Sharp information is missing from list of groups on the http://us.techlahoma.org/groups page.  I'd be happy to add it if someone would be willing to walk me through it :)

Yep! thanks man! This is indeed the place to open this

I'll swing by and handle entry.

^bump
I don't see OKC# on http://us.techlahoma.org/groups or http://techlahoma.org/groups.html

https://github.com/techlahoma/techlahoma_lander/issues/25

The user groups list now lives in the techlahoma_lander project.
https://github.com/techlahoma/techlahoma_lander/tree/master/data

Can somebody close this issue please?


fix: make status queue not block when no sub exists

What this PR does / why we need it:
Fixes the status.Queue so that it does not block on Publish when no Subscribe was called before, adds missing subscriptions for Gateway API *Routes and covers the regression with tests. Also adds --update-status-queue-buffer-size to allow reproduction.
Which issue this PR fixes:
Fixes #4260.

Special notes for your reviewer:

PR Readiness Checklist:
Complete these before marking the PR as ready to review:

[x] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

Seems that the PR did not add the status queue to TLSRoute?

Good catch, thanks.


infoj entry dependents array

The dependents entry property must be defined as an array.
Setting a string value crashes the syncFields method.
A string value should be interpreted as an array with the string as only array entry.
          {
            "type": "pin",
            "field": "pin",
            "fieldfx": "ARRAY[ST_X(ST_PointOnSurface(geom)),ST_Y(ST_PointOnSurface(geom))]"
          },
          {
            "type": "geometry",
            "field": "geom",
            "fieldfx": "ST_asGeoJSON(geom)",
            "dependents": "pin", // should be the same as ["pin"]
            "edit": true
          },

This issue has been resolved in the PR.


Update 0133-bridging-gap-for-anti-gaming-measures-phase2.md

This proposal aims to be a further refinement of HIP-131, and will further extend its scope to cover all remaining areas that were not previously included (such as C** areas), along with other tweaks and changes.

@abhay @hiptron will this merge now?


dateTimeAdd function does not correctly handle leap years

Bicep version
v0.21.1
Describe the bug
dateTimeAdd function does not add extra day for leap year when adding years to a base time.
To Reproduce
param baseTime string = utcNow('u')

var add2Years = dateTimeAdd(baseTime, 'P2Y')

output add2YearsOutput string = add2Years

baseTime

2023-09-11 14:42:56Z

add2YearsOutput

2025-09-10T14:42:56Z

Expected output

2025-09-11T14:42:56Z

Related to Azure/bicep#8188

Closing as duplicate of #8188.


feat(form): implement FormControl and ControlConfig prop triggerValidationOn

feat(form): implement FormControl and ControlConfig prop triggerValidationOn

Fixes #201
Description of changes:

Created a new type in validator.types.ts called ValidationHooks.

This is used to define different types of event listeners. I only added 3 basic ones (blur, keypress, and click), but more can and should be added.

Added a new attribute to the interface ControlBase in control.types.ts called  triggerValidationOn

This will hold the user specified event listener

Added an additional class variable in FormControl called  _triggerValidationOn.

The user specified event listener will be assigned to this variable to use in the <input> elements.

Added a data attribute called data-validation-on in input.astro to hold  the user specified event listener type. Will be null is no type is specified.
Adjusted Validator.astro to use the data attribute valaidationOn to get the event listener type from <input> elements.

Notes:

Demo pages now need to be adjusted to specify event listener types. Since the default is null if nothing is specified, there's no validation anymore.
As mentioned, need to add more event listener types. Since there's a lot, I'm not sure what we consider "crucial" to add.

Let me know if any adjustments are needed. I can also fix the demo pages and add more event listener types in the same PR, if necessary.
Tag a reviewer: @ayoayco
Tasks:

[x] I have ran the build command to make sure apps are working: npm run build
[x] I have ran the tests to make sure nothing is broken: npm run test
[x] I have ran the linter to make sure code is clean: npm run lint
[x] I have reviewed my own code to remove changes that are not needed

Let's keep onBlur as default so the existing demos and examples are still supported for now. @alexsam29

Also, I think this solution only works with the Input.astro, so we should open a new issue for other components (RadioGroup, Dropdown, and TextArea) to work with this feature later.

This can work with RadioGroup as well since it uses the <input> element. All that needs to be added is the data-validation-on data attribute.
If we want the other components to work, in Validator.astro we can select all elements on the page and just add an event listener for whatever element contains the data attribute data-validation-on

Yeah, I think we can have a selector using the attribute instead of the element name. That's a good approach 👌

This can work with RadioGroup as well since it uses the <input> element.

Oh, my mistake 😅 Yes, you're right.

If we want the other components to work, in Validator.astro we can select all elements on the page (instead of just form input like we do now) and just add an event listener for whatever element contains the data attribute data-validation-on

That's sound goods!

Nice! Now it supports every component that we supported now except only RadioGroup. I have pulled your branch to test on my local. Only RadioGroup isn't working with this config.
{
  name: "rating",
  label: "Rating",
  type: "radio",
  validators: [Validators.required],
  triggerValidationOn: "click",
  options: ["1", "2", "3", "4", "5"],
}

@Icyscools  Hmmm... What do you mean it doesn't work? The attribute doesn't change to click? I tried this configuration and the attribute's value is click and the validator gives false values to the other attributes:

Nice! Now it supports every component that we supported now except only RadioGroup. I have pulled your branch to test on my local. Only RadioGroup isn't working with this config.
{
  name: "rating",
  label: "Rating",
  type: "radio",
  validators: [Validators.required],
  triggerValidationOn: "click",
  options: ["1", "2", "3", "4", "5"],
}

@Icyscools Hmmm... What do you mean it doesn't work? The attribute doesn't change to click? I tried this configuration and the attribute's value is click and the validator gives false values to the other attributes:

Sorry! I didn't give you all of the information. My bad 😅.  You have to set a validateOnLoad in Form.astro to see through the problem.
// check on apps/demo/src/index.astro
<Layout title={title} theme={theme}>
  <Form showValidationHints={true} formGroups={form} theme={theme} validateOnLoad={true} />
</Layout>

With a validateOnLoad property, the form will validate from the server side. In another word, if we open it through the browser, we'll see a form with server-side validation. (yes, this is the power of Astro 🤣)
Back to our problem, the RadioGroup with a required validation should need to check if a radio group has a checked mark on any options. However, it doesn't work with the current solution right now, since the validator will do client-side validate every form control one by one.

Thanks @Icyscools and @alexsam29 for iterating on this! Just mention this PR as well in the new issue so there is continuity in the discussion. I think this is safe to be merged @Icyscools 🚀


Use new happy module version.

@jgadling I'm closing this as I merged this in in another PR since this one had a bunch of merge conflicts


Normalize line endings when splitting for docs

The tests only cover one overload, but it basically works the same
in both cases.
Fixes #2268.

Codecov Report

Merging #2269 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #2269      +/-   ##
============================================
+ Coverage     86.76%   86.76%   +<.01%
  Complexity     5135     5135
============================================
  Files           452      452
  Lines         20398    20400       +2
  Branches       2190     2190
============================================
+ Hits          17699    17701       +2
  Misses         1929     1929
  Partials        770      770

Impacted Files
Coverage Δ
Complexity Δ

...m/google/api/codegen/util/CommonRenderingUtil.java
80.55% <100%> (+1.14%)
18 <7> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


[WIP] Y2K-1287 Channel Infopanel Settings

Added new designs to the settings tab
Allows Admin/Owner of team NOT in channel to access this settings tab

Messed up some git stuff, see #22545


Dbz 7653 adjust tech preview designations for 2.5 productization

DBZ-7653
Adds and removes conditionalized DP and TP boilerplate text to reflect changes in release status of MongoDB, MySQL, and PostgreSQL connector features.
Tested in local Antora and downstream builds.
Backport to 2.5 (bc 2.6 is not targeted for downstream release, I assume that no bp is needed there, unless we have strong feelings about keep branch content in sync).

@roldanbob Applied, thanks!


Butlers can't slow down nearby players, when the Fedora Suit is active.

Sorry for my bad english.
When I'm alone with a butler, he doesn't slowing down to sweep the floor.
I know that if the butler doesn't have any target, then he will go much faster to find one.
In this video he shows us from 1:06 to 1:24 what does the butler do if he has no target.
https://www.youtube.com/watch?v=hmPD0j_urVE&t=66s

You still get targetted. They just can't go into attack mode if you have the upgrade.

And can you do that, if the upgrade is active, then the butlers will be only sweeping or something?


CPS test data

We have some CPS data in this repo for testing purposes.   Instead, we might consider just using the CPS_constructor() from Tax-Calc.  If this works, we can remove these data from the repo.
To do this, we need to update test_basic.py, among other scripts.
cc @hdoupe

What do you think the options should be? One way to do this is:

data=None implies use the CPS and cps records constructor
data='path/to/data.csv' use the file that is at this location (it could be the PUF or CPS)

We currently have the following options:

data=None implies use the PUF file in the current directory
data='cps' implies use the cps records constructor
data='path/to/data.csv' implies use the file that is at this location (it could be the PUF or CPS)

I think what we've got now is just fine.  Users can easily specify CPS or another data file.  Closing this issue as a results.


Please consider renaming this to something less generic

I'd like to add this to awesome-zsh-plugins, but the name is awfully generic. Please consider renaming it to something descriptive, or even just name it after your github username.
Thanks!

Can you refer to it as ncihnegn/zsh-theme?

Could you name it ncihnegn/ncihnegn? zsh-theme is too generic and I prefer to not include account names in the link titles.

I hope you understand I won't use my account name for a theme repo.
How about "ncihnegn"?

Ok, I won't add it.


Version 1 of the CommunicationRole service

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

Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[ ] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[x] Other, please clarify
This is a new resource in an existing service.

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
This is for 2022-01, to my best guess
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
This is for 2022-01, to my best guess
If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the swagger is published.

[x] SDK of .NET (need service team to ensure code readiness)
[x] SDK of Python
[x] SDK of Java
[x] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No refresh required for updates in this PR

Contribution checklist:

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

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

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[ ] Check this box if any of the following apply to the PR so that label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.

[ ] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

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

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[ ] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

This PR was part of a work that got cut. No work is expected here. Closing.


cdnjs issue

Hi. Great script - very usefull.
Problem:
I was trying to use cdnjs: https://cdnjs.cloudflare.com/ajax/libs/Fort.js/1.0.0/fort.min.js
But if I do so, the script fails to initiate: Uncaught ReferenceError: Fort is not defined.
When I use .js file from the demo, everything works well!
Thx!

The script has now been updated to version 2.0.0. You can access it by using here


Matlab lexer: Doesn't properly handle transpose operator

(Original issue 414 created by None on 2009-05-19T03:51:25+00:00)
The Matlab lexer handles the special case where a single quote is used as a transpose operator, instead of as the marker to start and end strings. However, the way the code is written, there is a side effect: whatever came right before the transpose operater gets turned into plain Text, even if it's supposed to be a Punctuation.
Most of these work, except for the ones with comments:
{{{
'abc'
abc'
[1 2 3]
[1 2 3]'   % Right bracket not recognized
'[1 2 3]'
f(a)
f(a)'       % Right paren not recognized
}}}
Use the Tango color scheme here to see that it's not quite right:
http://pygments.org/demo/1799/
This is the present code:
{{{
(r'([\w\)\]]+)(\')', bygroups(Text, Operator)),
}}}
I believe that replacing it with this should fix it. This says to recognize the single quote as an operater, as long as it's preceded by letters/nums or ] or ). It's not perfect - it won't catch cases where there's a space before the transpose operator. But it should be an improvement on the current version because it won't turn the preceding stuff into Text.
{{{
(r'(?<=[\w\)\]])\'', Operator),
}}}
Similarly, this might be a better way to start a string. Instead of looking for a plain single quote, this looks for a single quote as long as it's NOT preceded by words/nums or ] or ). I believe that a string can't start right after these characters.
{{{
(r'(?<![\w\)\]])\'', String, 'string'),
}}}
Reported by guest

(Original issue was assigned to thatch)
(Original issue 414 last updated on 2012-01-23T10:00:10.497905+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by thatch on 2009-06-22T16:10:27+00:00)
...and merged.

(Original comment by thatch on 2009-06-21T21:12:24+00:00)
Nice catch. Patch applied in [e447deafac05] in my branch.

(Original comment by None on 2011-10-10T22:00:38.206505+00:00)
This may be able to rear it's head in other forms. Check out: http://pygments.org/demo/25413/
You probably need to make sure that this applies to curly braces for cell arrays also.

(Original comment by rjollos on 2012-01-23T10:00:10.491574+00:00)
I'm seeing a problem with the transpose operator, using Pygments 1.4 on Trac 0.12.2. I thought I'd post here before opening a new issue.
The problem may only occur when using the dot-transpose operator: .'
After using the dot-transpose operator (period followed by a single quote), all text that follows is highlighted in pink, as is done for strings, which are also delimited by single quotes.
See attached image for an example.


Add whole-run DFK pytest fixture. Remove many-config capability.

This change will (in non-local mode) load a single DFK for a specified
config, which will be used for all tests in the run.
For local mode, new ways of initialising tests are added: local_config,
local_setup and local_teardown, that can be used to write 'local'-mode
tests which do not interfere with other tests - the parsl test suite
local mode tests, at present, do lots of global stuff, and these new
parameters and methods allow that globus stuff to be more constrained
to individual test runtime.
This conflicts with the implementation of multiple test configurations
in one run - that feature causes the DFK to be loaded/unloaded for each
test module as pytest sweeps over the list of configs, even if the list
only has one entry.
Multiple test configuration handling is removed, and --configs is renamed
to --config.
The behaviour can be demonstrated by running:
pytest parsl/tests/test_bash_apps/test_apptimeout.py
parsl/tests/test_bash_apps/test_basic.py
--config parsl/tests/configs/local_threads.py --setup-show
before and after, where --setup-show will show when each fixture is executed

oops missing a bit

This is failing tests because the rearranged DFK initialisation now means two DFKs are present when a test module loads a DFK globally. I have fixed most of this in my other branch, so I'll probably abandon this PR in favour of merging all of that.


Strip prefix when adding new users to groups

It would be nice if this worked:
wilfred> @hubot group add mygroup @bob
... currently no response from hubot ...

Currently, I have to write:
wilfred> @hubot group add mygroup bob
hubot> bob added to group mygroup

Good point. We'll fix this after #11 / #12 are sorted out.

Closing due to age, feel free to re-open if this is still an issue. My hubot deployments are currently in Keybase, not in Slack, so I don't know what the state of affairs is in Slack land. The HackMIT team is still using this bot in Slack, though, and I think it's working fine for them.


Change heart position

Issue

close #89

Overview (Required)

The position of the favorite button (heart icon) of FeedItem has been adjusted.
In the implementation of IconToggleButton, the alignment of content cannot be specified externally, so I used constraints of constraintLayout to pseudo-position it. What do you think of this policy?

Links

Screenshot

Before
After

LGTM!!
By the way, If you want to add contributors. You can add an email to commit. 📫
git config --global user.email<EMAIL_ADDRESS>https://github.com/DroidKaigi/conference-app-2020/graphs/contributors

Added email address to commit✅

Thanks!


Initial commit of Logger helper - structured log

Description
This PR is to add logger helper for structured logging defined in https://github.com/dapr/dapr/issues/970.

Exposed the same api set of logrus log package which reducing the amount of code changes in the existing codes.
Moved out command flag parsers for logging which reduces the duplicated codes when enabling the structured log in Dapr system components
Enabled the logger scope which figure it out the problem easier
Switched logrus to dapr logger pkg only in Dapr runtime - I will create the separate PRs for the other system components
Default format - Console log

Default console log

structured JSON formatted log
youngp@Youngs-MBP dapr % ./dist/darwin_amd64/release/daprd  -dapr-id="dapr-app" -log-json-enabled=true
{"dapr_id":"dapr-app","dapr_ver":"edge","instance":"MININT-Q8GQR8F.x.com","level":"info","log_type":"log","message":"starting Dapr Runtime -- version edge -- commit v0.3.0-rc.0-112-g706f04d","scope":"dapr.runtime","time":"2020-02-22T20:03:21.188044Z"}
{"dapr_id":"dapr-app","dapr_ver":"edge","instance":"MININT-Q8GQR8F.x.com","level":"info","log_type":"log","message":"standalone mode configured","scope":"dapr.runtime","time":"2020-02-22T20:03:21.188125Z"}
{"dapr_id":"dapr-app","dapr_ver":"edge","instance":"MININT-Q8GQR8F.x.com","level":"info","log_type":"log","message":"dapr id: dapr-app","scope":"dapr.runtime","time":"2020-02-22T20:03:21.188146Z"}
{"dapr_id":"dapr-app","dapr_ver":"edge","instance":"MININT-Q8GQR8F.x.com","level":"info","log_type":"log","message":"mTLS is disabled. Skipping certificate request and tls validation","scope":"dapr.runtime","time":"2020-02-22T20:03:21.188161Z"}
{"dapr_id":"dapr-app","dapr_ver":"edge","instance":"MININT-Q8GQR8F.x.com","level":"warning","log_type":"log","message":"failed to load components: open ./components: no such file or directory","scope":"dapr.runtime","time":"2020-02-22T20:03:21.188180Z"}
{"dapr_id":"dapr-app","dapr_ver":"edge","instance":"MININT-Q8GQR8F.x.com","level":"warning","log_type":"log","message":"either no actor state store or multiple actor state stores are specified in the configuration, actor stores specified: 0","scope":"dapr.runtime","time":"2020-02-22T20:03:21.188329Z"}

Issue reference
#970
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[x] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation
[ ] Specification has been updated
[ ] Provided sample for the feature

Before I start reviewing, just want to make sure that when looking at stdout/stderr console logs, the output will not be JSON.
Is that correct?

Before I start reviewing, just want to make sure that when looking at stdout/stderr console logs, the output will not be JSON.
Is that correct?

Right. default is non-json formatted. please look at the screen shot in PR description.

@jjcollinge Please review this PR.

Before I start reviewing, just want to make sure that when looking at stdout/stderr console logs, the output will not be JSON.
Is that correct?

Right. default is non-json formatted. please look at the screen shot in PR description.

Good. so far this looks promising.

@yaron2 i resolved all comments. Please review it again.

/ok-to-test

/ok-to-test


UnorderedObjectListWarning in management application

I'm seeing this warning when clicking around the "Manage" page for Cohorts. @jonespm said it looks like we can specify a column somewhere to suppress this warning.
student_explorer | /usr/local/lib/python3.7/site-packages/django/views/generic/list.py:88: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'management.models.StudentCohortMentor'> QuerySet.

I don't remember the details of this one and this isn't on any project so going to unassign myself for now. This might have been the fix we need to add to this StudentCohortMentor. https://stackoverflow.com/a/44036414/3708872


OpenStack multi-tenant support

Signed-off-by: Konstantin Semenov<EMAIL_ADDRESS>

@jhvhs is this similar to keystone v3? or is tenant also allowed with domain/project?

Nope, tenant is a keystone-v2 thing. So @jhvhs https://github.com/cloudfoundry/bosh-deployment/blob/master/openstack/keystone-v2.yml should already give you what you're looking for. Let me know if you need something different.

@voelzmo does that ops file (https://github.com/cloudfoundry/bosh-deployment/blob/master/openstack/keystone-v2.yml) look right? shouldnt it be doing same thing for both job and cloud provider sections?

@cppforlife good catch, I issued a PR to fix it.

@voelzmo In addition to that, we would suggest to add an openstack_ prefix to the variables used in the keystone-v2.yml file.

https://github.com/cloudfoundry/bosh-deployment/pull/23

thanks @voelzmo


feat: run dart fix --apply as post generation step

Description

feat: run dart fix --apply as post generation step

Type of Change

[X] ✨ New feature (non-breaking change which adds functionality)
[ ] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

Oii
Iii


add a few depdencies.

From last night's conversation. Seems like these two would be important.

This change is

By default these should not be part of the build image as that does not create hermetic builds.   It is sometimes necessary for some environments, but it should not be the standard.

Yea, I agree completely. We were discussing the project, stepping through some issues.
There are other hermeticity considerations as well. This PR is definitely close-able.


binwalk, diffoscope: update after Python 3.12

Description of changes

[x] binwalk uses both imp and nose which are not supported on Python 3.12. See https://github.com/ReFirmLabs/binwalk/pull/668
[x] diffoscope unit test for binwalk now sees more cpio binaries in its test.

related to https://github.com/NixOS/nixpkgs/issues/325657#issuecomment-2215424154
cc @Mag1cByt3s
Result of nixpkgs-review run on x86_64-linux 1

15 packages built:

binwalk (python312Packages.binwalk)
binwalk.dist (python312Packages.binwalk.dist)
diffoscope
diffoscope.dist
diffoscope.man
diffoscopeMinimal
diffoscopeMinimal.dist
diffoscopeMinimal.man
ghidra-extensions.ghidraninja-ghidra-scripts
python311Packages.binwalk
python311Packages.binwalk-full
python311Packages.binwalk-full.dist
python311Packages.binwalk.dist
python312Packages.binwalk-full
python312Packages.binwalk-full.dist

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

@trofi fyi

Is that behavioural change in binwalk benign? I’m curious as to why a Python upgrade and an import internals change would lead to it finding more binaries.

Is that behavioural change in binwalk benign? I’m curious as to why a Python upgrade and an import internals change would lead to it finding more binaries.

I was quite surprised to see it as well. You can see from the patch what the detected differences are.
I checked out upstream (https://salsa.debian.org/reproducible-builds/diffoscope) locally and ran master's copy of binwalk (for me, /nix/store/ckv7akdj4cjl8qkiij8vraiisw9n6mvj-python3.11-binwalk-2.3.4):
$ /nix/store/ckv7akdj4cjl8qkiij8vraiisw9n6mvj-python3.11-binwalk-2.3.4/bin/binwalk tests/data/test{1,2}.binwalk

Scan Time:     2024-07-08 13:07:08
Target File:   /home/philip/Code/salsa.debian.org/reproducible-builds/diffoscope/tests/data/test1.binwalk
MD5 Checksum:  03bb6be017bd9db1586ee5cc291dd992
Signatures:    411

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             ASCII cpio archive (SVR4 with no CRC), file name: ".", file name length: "0x00000002", file size: "0x00000000"
112           0x70            ASCII cpio archive (SVR4 with no CRC), file name: "dir", file name length: "0x00000004", file size: "0x00000000"
228           0xE4            ASCII cpio archive (SVR4 with no CRC), file name: "dir/link", file name length: "0x00000009", file size: "0x00000006"
356           0x164           ASCII cpio archive (SVR4 with no CRC), file name: "dir/text", file name length: "0x00000009", file size: "0x000001BE"
924           0x39C           ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!", file name length: "0x0000000B", file size: "0x00000000"
1536          0x600           ASCII cpio archive (SVR4 with no CRC), file name: ".", file name length: "0x00000002", file size: "0x00000000"
1648          0x670           ASCII cpio archive (SVR4 with no CRC), file name: "dir", file name length: "0x00000004", file size: "0x00000000"
1764          0x6E4           ASCII cpio archive (SVR4 with no CRC), file name: "dir/link", file name length: "0x00000009", file size: "0x0000000D"
1900          0x76C           ASCII cpio archive (SVR4 with no CRC), file name: "dir/text", file name length: "0x00000009", file size: "0x0000029F"
2692          0xA84           ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!", file name length: "0x0000000B", file size: "0x00000000"

Scan Time:     2024-07-08 13:07:08
Target File:   /home/philip/Code/salsa.debian.org/reproducible-builds/diffoscope/tests/data/test2.binwalk
MD5 Checksum:  d47335a3e695dc2b3dd8bfc56ba476a5
Signatures:    411

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             ASCII cpio archive (SVR4 with no CRC), file name: ".", file name length: "0x00000002", file size: "0x00000000"
112           0x70            ASCII cpio archive (SVR4 with no CRC), file name: "dir", file name length: "0x00000004", file size: "0x00000000"
228           0xE4            ASCII cpio archive (SVR4 with no CRC), file name: "dir/link", file name length: "0x00000009", file size: "0x0000000D"
364           0x16C           ASCII cpio archive (SVR4 with no CRC), file name: "dir/text", file name length: "0x00000009", file size: "0x0000029F"
1156          0x484           ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!", file name length: "0x0000000B", file size: "0x00000000"
1536          0x600           ASCII cpio archive (SVR4 with no CRC), file name: ".", file name length: "0x00000002", file size: "0x00000000"
1648          0x670           ASCII cpio archive (SVR4 with no CRC), file name: "dir", file name length: "0x00000004", file size: "0x00000000"
1764          0x6E4           ASCII cpio archive (SVR4 with no CRC), file name: "dir/link", file name length: "0x00000009", file size: "0x00000006"
1892          0x764           ASCII cpio archive (SVR4 with no CRC), file name: "dir/text", file name length: "0x00000009", file size: "0x000001BE"
2460          0x99C           ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!", file name length: "0x0000000B", file size: "0x00000000"

Then, with this PR (note the Python 3.12 in the derivation name):
$ /nix/store/2c7kkgy4hbvxjh1rj0cvcvc0r1yb136l-python3.12-binwalk-2.3.4/bin/binwalk tests/data/test{1,2}.binwalk

Scan Time:     2024-07-08 13:08:08
Target File:   /home/philip/Code/salsa.debian.org/reproducible-builds/diffoscope/tests/data/test1.binwalk
MD5 Checksum:  03bb6be017bd9db1586ee5cc291dd992
Signatures:    411

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             ASCII cpio archive (SVR4 with no CRC), file name: ".", file name length: "0x00000002", file size: "0x00000000"
112           0x70            ASCII cpio archive (SVR4 with no CRC), file name: "dir", file name length: "0x00000004", file size: "0x00000000"
228           0xE4            ASCII cpio archive (SVR4 with no CRC), file name: "dir/link", file name length: "0x00000009", file size: "0x00000006"
356           0x164           ASCII cpio archive (SVR4 with no CRC), file name: "dir/text", file name length: "0x00000009", file size: "0x000001BE"
924           0x39C           ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!", file name length: "0x0000000B", file size: "0x00000000"
1536          0x600           ASCII cpio archive (SVR4 with no CRC), file name: ".", file name length: "0x00000002", file size: "0x00000000"
1648          0x670           ASCII cpio archive (SVR4 with no CRC), file name: "dir", file name length: "0x00000004", file size: "0x00000000"
1764          0x6E4           ASCII cpio archive (SVR4 with no CRC), file name: "dir/link", file name length: "0x00000009", file size: "0x0000000D"
1900          0x76C           ASCII cpio archive (SVR4 with no CRC), file name: "dir/text", file name length: "0x00000009", file size: "0x0000029F"
2692          0xA84           ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!", file name length: "0x0000000B", file size: "0x00000000"

Scan Time:     2024-07-08 13:08:08
Target File:   /home/philip/Code/salsa.debian.org/reproducible-builds/diffoscope/tests/data/test2.binwalk
MD5 Checksum:  d47335a3e695dc2b3dd8bfc56ba476a5
Signatures:    411

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             ASCII cpio archive (SVR4 with no CRC), file name: ".", file name length: "0x00000002", file size: "0x00000000"
112           0x70            ASCII cpio archive (SVR4 with no CRC), file name: "dir", file name length: "0x00000004", file size: "0x00000000"
228           0xE4            ASCII cpio archive (SVR4 with no CRC), file name: "dir/link", file name length: "0x00000009", file size: "0x0000000D"
364           0x16C           ASCII cpio archive (SVR4 with no CRC), file name: "dir/text", file name length: "0x00000009", file size: "0x0000029F"
1156          0x484           ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!", file name length: "0x0000000B", file size: "0x00000000"
1536          0x600           ASCII cpio archive (SVR4 with no CRC), file name: ".", file name length: "0x00000002", file size: "0x00000000"
1648          0x670           ASCII cpio archive (SVR4 with no CRC), file name: "dir", file name length: "0x00000004", file size: "0x00000000"
1764          0x6E4           ASCII cpio archive (SVR4 with no CRC), file name: "dir/link", file name length: "0x00000009", file size: "0x00000006"
1892          0x764           ASCII cpio archive (SVR4 with no CRC), file name: "dir/text", file name length: "0x00000009", file size: "0x000001BE"
2460          0x99C           ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!", file name length: "0x0000000B", file size: "0x00000000"

What I don't understand is how there were ever two emitted items. Master appears to have 10 as well.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/error-nose-1-3-7-not-supported-for-interpreter-python3-12/48703/22

Please rebase.

Both binwalk and diffoscope appear to build on current master

Both binwalk and diffoscope appear to build on current master (6bf4ef3)

Yes, because I merged #326295.

But there’s nothing to rebase now; #326295 replaces this.

Right, what I'm saying is I believe this PR can be closed as it appears to be a build fix. Unless there was some other plan with the PR as well.

But there’s nothing to rebase now; #326295 replaces this.

Quite so.


Code details

Hello, thank you for releasing this repo, would it be possible to add some details about the use-case of the code? If the code based on some paper?
Thank you,

I'm interested in this too!
Would appreciate it if you can give more details on how to use the code?
thanks,


Resource cleanup

This adds the Stk "rawwaves" to the bundle resources, instead of storing the waves in headers and writing out tmp files.

Judging from the errors, it looks like the CI is trying to build resource_bundle_accessor.m (auto-generated by SPM) as a C file (not ObjC). This seems like a bug in SPM. Works fine in Xcode.

Well seems like the SPM support for resources in ObjC pretty half-assed. I'll work on this later.

I think the main reason we tried to avoid actual files as resources is that it becomes a problem for static frameworks. Not really a problem for dynamic ones since you have to keep the bundle around, but the point of static is that all of it ends up in your compiled binary so not having to worry about figuring out the paths to the file in the bundle is easier.
Also as you can see SPM is still pretty half-assed in some ways.

If we could feed the data from memory directly instead of relying on a temp file that would be ideal though.

I filed a bug with Apple:

If we could feed the data from memory directly instead of relying on a temp file that would be ideal though.

We should use resources as they are intended. Feeding the data to STK from memory would require modifying STK in various places.

With merging in the change to CI to use xcodebuild, this is now passing.


Mirror image rewrites break fallback to original repository

Environmental Info:
K3s Version: v1.25.6+k3s1 (9176e03c)

Node(s) CPU architecture, OS, and Version: Linux server-pi-01 5.15.0-1024-raspi #26-Ubuntu SMP PREEMPT Wed Jan 18 15:29:53 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Cluster Configuration: 1 server, single node.

Describe the bug:

When attempting to use registry mirrors with rewrites (to a local harbor installation hosted on the node itself) fallback to upstream repositories will fail with errors logged in the containerd log file that suggests the rewrites are being applied to queries sent to the original registry.
This prevents it from gracefully falling back on the original registry when using mirrors as a caching source.
Steps To Reproduce:

Installed K3s:
Disabled traefik and servicelb via systemd overrides
Added registries.yaml with content
Try to pull an image

mirrors:
  docker.io:
    endpoint:
      - https://harbor.services.home.arpa
    rewrite:
        "^(.*)$": "dockerhub/$1"

Expected behavior:

For it to successfully pull images from the original repository when the registry is offline.
Actual behavior:

It failed to pull images, and logged errors saying no authorization in containerd logs which suggests the rewrite was applied to the request to the original repository.
With the mirror configuration removed, it successfully pulls as expected.
Additional context / logs:

time="2023-03-01T16:27:18.776856761+08:00" level=info msg="trying next host" error="failed to do request: Head \"https://harbor.services.home.arpa/v2/dockerhub/library/busybox/manifests/latest?ns=docker.io\": dial tcp <IP_ADDRESS>:443: connect: no route to host" host=harbor.services.home.arpa
time="2023-03-01T16:27:20.787335780+08:00" level=info msg="trying next host" error="pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed" host=registry-1.docker.io
time="2023-03-01T16:27:20.802273766+08:00" level=error msg="PullImage \"busybox:latest\" failed" error="failed to pull and unpack image \"docker.io/library/busybox:latest\": failed to resolve reference \"docker.io/library/busybox:latest\": failed to do request: Head \"https://harbor.services.home.arpa/v2/dockerhub/library/busybox/manifests/latest?ns=docker.io\": dial tcp <IP_ADDRESS>:443: connect: no route to host"

Yes, this is an issue with rewrites. They probably should have been made per endpoint rather than per registry. They also probably should have been an ordered list instead of a map[string]string. Fixing either of these issues in a backwards compatible way will need to be managed carefully though.

What about supporting the hosts.toml mechanism and it's override-path option found in upstream containers?
That works as expected with harbor as a proxy and will correctly fall back to the upstream source, judging by my experience with that on another cluster running Talos Linux.

For anyone who stumbles upon this:
I've worked around it by simply not using k3s registries and rewrites and modifying the containerd config instead to use the hosts.toml mechanism instead. Documentation can be found here:

https://docs.k3s.io/advanced#configuring-containerd
https://github.com/containerd/containerd/blob/main/docs/hosts.md

There's an existing issue for switching registries.yaml to use hosts.toml instead, I'll probably close this in favor of tracking on that one.

Will track in #5568


Convert the results of the Guardrails test (#2014) to a human readable report

Describe the issue
#2014 is actually larger than intended. Among other components, it also involves the creation of reports that will summarize the results
Additional context
Not all the guardrails will be tested. Some of the deny policies can not be executed because there are other deny policies (for example, can't delete a EC2 container because there is another deny create EC2 container)
Ideally the report will list all the guardrails, and indicate if they can be tested/not tested, ignored or the test results.
Definition of done
A html document that will list the existing guardrails and the test results, if tested

Done: The script pokeSCP.py now also generates a html report
The repo is aws-sea-poking-guardrail


kubeconfig.ts does not respect kubeconfig setting or environment variable

From kubeconfig.ts:
export function readKubectlConfig(): Promise<KubeConfig> {
    return new Promise((resolve, reject) => {
        const kubeConfig = shell.combinePath(shell.home(), ".kube/config");

If the KUBECONFIG environment variable is set, or the vs-kubernetes.kubeconfig configuration setting is present, then we should probably be using that config file instead of the default one.

This file has been removed and this code now uses the official javascript/typescript client library which respects these variables.


Reading incremental data from MySQL in parallel not work

Environment :

Flink version :  1.13.2
Flink CDC version:  2.0.2
Database and version: Mysql5.7

To Reproduce
jobManager: 1
taskManager: 2
flink deploy with standalone mode.
taskmanager.numberOfTaskSlots: 2
parallelism.default: 2
Additional Description
My job is simply sync mysql data(ps. only 1 table) to es7 , and the job is created by SQL CLI. The incremental snapshot reading
is Not Work after snapshot phase. But I've tried to set the 'parallelism.default = 1' and the incremental snapshot reading worked fine.I'm so confused.

You may forget to enable checkpoint SET 'execution.checkpointing.interval' = '3min'; .  Binlog phase will wait for at least one complete checkpoint.

@Sam-Tsui , this is an optimization for 1 parallelism. The checkpoint is required to guarantee the global order of update events for multiple source tasks. However, for single task, the update events is natually ordered, so we don't need a complete checkpoint.


Lyrics not showing

🧐 Have you fully read the README and viewed similar issues?

[X] I have read the README
[X] I have checked older issues, open and closed
[X] I did a clean install of Spotify and SpotX

Сountry of your account
Australia
What is your Spotify Plan?
Free
Do you have Spicetify installed?
No
ℹ Computer information
- Spotify: <IP_ADDRESS>6
- Distro: Garuda Linux
- Shell: fish 3.5.1

📝 Description
Installing the script is perfectly fine, and no ads are to be seen, but when launching there is no more lyrics. Existing issue already was "resolved", but the "fix" does not fix the issue.
🖵 Terminal Output

SpotX-Linux by @SpotX-CLI

SpotX-Linux version: <IP_ADDRESS>8-1
Spotify directory found in PATH: /opt/spotify
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
Spotify version:  <IP_ADDRESS>6
Creating xpui backup...
Extracting xpui...
Applying SpotX patches...
Removing ad-related content...
Removing premium-only features...
Unlocking Spotify Connect...
Removing logging...
Rebuilding xpui...
SpotX finished patching!
📸 Screenshots

look in bottom right hand corner*

You didn't share terminal input as requested in template but it seems -e was not used which may be required if lyrics are not showing for you.. as the "fix" is in the experimental patches subset. And since SpotX was already ran, you'd also need the -f flag to force a re-patch.

typing in multiple flags does not work? like for example when i add -e -f to the command, it does not register the flags.

typing in multiple flags does not work? like for example when i add -e -f to the command, it does not register the flags.

as already shown in the example in the readme, combine them: -ef

sorry but adding both flags still does not work? still no lyrics show...

I would suspect this is due to cached app data conflicting with the new settings. you can try re-running SpotX with the -cef flags and have SpotX attempt to clear Spotify app data..
but due to so many file location variables with Spotify on Linux it may notbe able to find the proper location where app cache is located on your system. And in that case you would need to manually locate your Spotify cache folder and delete it. By default, the location SpotX looks for app cache is CACHE_PATH="${HOME}/.cache/spotify/".

i get bash: -c: option requires an argument when trying to add -cef argument.
also tried deleting cache folder and reinstalling but still no change.


link to modules in parameters and returns value do not work.

See the return value of the placeAt method here http://ibm-js.github.io/delite/docs/api/0.5.1/delite/Widget.html and the parameter of the method close here http://ibm-js.github.io/delite/docs/api/0.5.1/delite/popup.html

Also reproducible with jsdoc-amddcl's own sample project (https://github.com/ibm-js/jsdoc-amddcl/tree/master/sampleprojects). Generate the doc and check the doc of sampleframework/Base0#methodWithParamAndReturns() => the links for both the param and return type are broken.


Documentation links to Design Token

I looked for a repo but couldn't find one to just do this as a PR, so submitting here

Documentation Page
https://www.skeleton.dev/docs/themes#preset-extras (Backgrounds section)

Design Token link points to:

https://www.skeleton.dev/elements/tokens but should be...
https://www.skeleton.dev/docs/tokens

There may be more but ran into this one first.

@ucffool just realized you filed this originally under the CLI project repo. Just FYI the main Skeleton project is built with SvelteKit. SvelteKit allows your library and docs to live within a single project. I've transferred the issue for you.

This didn't link properly so I'm closing this out manually.


optimize model parameters

see analysis code and summary in
https://ultimagen.atlassian.net/browse/BIOIN-1269

Hi Rina. The Pa_46 AUC and signature results look incredible. I see there's a reference to 5 additional WFIDs but I can't seem to find the results for any of these, do you have them?


Add Upsert option on Most Resources

Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
Install Method: brew install azure-cli
CLI version: azure-cli (2.0.27)
OS Version: mac-os
Shell Type: bash

New Feature Request
Currently, most resources only have create, update, delete, show, list...
Adding an upsert (Update Or Insert) option will be beneficial from DevOps Automation using cli, it would reduce coding where in developer first has to check if resource exists then then implement either insert or update operation

We have discussed this within the team and decided not to implement this. Our create commands and idempotent and we have done dedicated work to standardize the "exists" check with our show commands. To implement this in a consistent way, we would have to expose and test this upsert command across dozens of services, including modules the CLI team does not own. We have another work item to opt into "create if not exists" behavior that we would favor.


Disable BGP propagation guidance

Current ESLZ guidance for hub and spoke network architecture when connectivity between landing zones across two hubs is required, is to cross-connect the ExpressRoute circuits across hubs.
While this scenario addresses the required connectivity needs, spokes across hubs will communicate directly bypassing the firewall. We need to update the guidance to indicate that, if customer requires traffic across hubs to be inspected by their firewall, they have to either 1) create more specific route entries in their UDRs (so that traffic across hubs is redirected via the local firewall) or 2) disable BGP propagation on the spokes, as this will simplify the route configuration in the UDR.

Amended guidance on hub and spoke
https://github.com/MicrosoftDocs/cloud-adoption-framework-pr/pull/2007

Closing issue as PR has been merged.


[Amazon AWS] extension fails to run any command

Extension
https://www.raycast.com/Falcon/aws
Description
Error:
Error: Command failed: /bin/zsh -l -c "assume -c default"
zsh:1: command not found: assume

zsh:1: command not found: assume
ChildProcess.exithandler:node:child_process:412:12
ChildProcess.emit:node:events:513:28

actions other than run profile script no longer work in any capacity. Meaning when I enter the command (for instance, search dynamodb tables) and type a table name, no search results are shown on any profile.
Steps To Reproduce

Select the run profile script command
Select a profile
Error occurs

Current Behaviour
No response
Expected Behaviour
No response

Also confirmed that my aws cli is properly authed and working as intended, is there a way to reset the path to the creds? It looks like its reading them correctly since it's finding the right two profiles, it just can't actually display any results for any of the actions.

The "run profile script" is a flexible command where you can setup a script to run for a certain profile. The provided default example using https://granted.dev "assume" command, requires you to install granted first and configure it correctly.
In any case, it's up to you to make sure the script/command you provide for "run profile script" is working as intended.

I've got the same issue -- it's more than just the "run profile script" that's failing.  All the AWS actions are not working. If I select "EC2 Instances" I get a blank screen and I've got a bunch of EC2 instances

I've verified my cli permissions are working.  "aws ec2 describe-instances" works.

Yes sorry I did a bad job explaining but @sbl3 explained it perfectly. Happy to record a loom to demo the behavior but all commands are silently failing in the way captured by his screenshot. This started maybe 2-3 days ago so I assume there was a breaking change in a recent release.

Here is a loom demoing the issue:
https://www.loom.com/share/af4880f3564441df9ad0af5a90a16af1

I prepared the fix: https://github.com/raycast/extensions/pull/6358


Traefik reuses connection for different router and service

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
I have a reverse proxy with single entry point port 8000 and two backend services (service-1, service-2), the reverse proxy routes traffic based on the host name(s1.example.com to service-1, s2.example.com to service-2), BUT the routing only happened when a new connection is established.
I configure two separated routers and services (ingress-0, ingress-1), see the configuration below.
What did you see instead?
When I issue an HTTP request to s1.example.com (http://s1.example.com), a new connection to reverse proxy :8000 established, the routing is as expected.
When I issue an HTTP request to s2.example.com (http://s2.example.com) again, it reuses the last connection to s1.example.com, and the routing not happening.
I think the connection should not be reused between different routers.
What version of Traefik are you using?
Version:      2.9.6
Codename:     banon
Go version:   go1.19.4
Built:        2022-12-07T14:17:58Z
OS/Arch:      linux/amd64
What is your environment & configuration?
version: '3'

services:
  traefik:
    # The official v2 Traefik docker image
    image: traefik:v2.9.6
    restart: always
    # Enables the web UI and tells Traefik to listen to docker
    command:
      - "--providers.docker"
      - "--entrypoints.web.address=:80"
    ports:
      # The HTTP port
      - "80:80"
    volumes:
      # So that Traefik can listen to the Docker events
      - "/var/run/docker.sock:/var/run/docker.sock:ro"

  reverse-proxy:
    image: image/name
    labels:
      - "traefik.http.routers.ingress-0.rule=Host(`s1.example.com`)"
      - "traefik.http.routers.ingress-0.service=ingress-0"
      - "traefik.http.services.ingress-0.loadbalancer.server.port=8000"
      - "traefik.http.routers.ingress-1.rule=Host(`s2.example.com`)"
      - "traefik.http.routers.ingress-1.service=ingress-1"
      - "traefik.http.services.ingress-1.loadbalancer.server.port=8000"

If applicable, please paste the log output in DEBUG level
No response

Hello @ginuerzh
Are you talking about the connection between the client and traefik? If yes, reuse of the connection is then expected (and desired, in most cases). But in any case, I would think that it is irrelevant, and your problem might come from something else.
When you say that the routing to s2.example.com is not happening, what is the observed behaviour exactly? Do you get a 404, or does the request go to s1 instead? Or something else?
Can you please enable debug level and provide the traefik logs at the moment of the observed behaviour? Are you able to reproduce with a command line client such as curl? If yes, can you show us the commands that you're using?

Hi, I'm encountering a similiar issue with my setup and the same Traefik version.
These are the two IngressRoutes I have
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: {{ include "toolbox.fullname" . }}-web
spec:
  entryPoints:
    - web
  routes:
    - match: Host(`{{ include "toolbox.fullname" . }}.{{ .Values.env.ENVIRONMENT }}.domain`)
      kind: Rule
      services:
        - name: {{ include "toolbox.fullname" . }}
          port: http
      middlewares:
        - name: cors

---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: {{ include "toolbox.fullname" . }}-websecure
spec:
  entryPoints:
    - websecure
  routes:
    - match: Host(`{{ include "toolbox.fullname" . }}.{{ .Values.env.ENVIRONMENT }}.domain`)
      kind: Rule
      services:
        - name: {{ include "toolbox.fullname" . }}
          port: http
      middlewares:
        - name: cors

(toolbox is the app name)
I also have global redirection setup and, when I call my service I can see how the request is being redirected:
│ <IP_ADDRESS> - - [07/Feb/2023:20:04:03 +0000] "GET /files/jejeje HTTP/1.1" 301 17 "-" "-" 4 "web-to-websecure@internal" "-" 0ms                          │

But it gets stuck there and nothing else happens. It's like something changes in the connection and then it is unable to match the host and therefore is not calling my backend.
Here are the cURL logs:
❯ curl http://service.url/files/jejeje -v -L -k
*   Trying xxxx:80...
* Connected to service.url (xxxx) port 80 (#0)
> GET /files/jejeje HTTP/1.1
> Host: this-is-the-correct-host
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< Location: https://service.url/files/jejeje
< Date: Tue, 07 Feb 2023 20:04:03 GMT
< Content-Length: 17
< Content-Type: text/plain; charset=utf-8
<
* Ignoring the response-body
* Connection #0 to host service.url left intact
* Issue another request to this URL: 'https://service.url/files/jejeje'
*   Trying xxxx:443...
* Connected to service.url (xxxx) port 443 (#1)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
* (304) (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: CN=*.xxxxxxxx
*  start date: Dec  7 00:00:00 2022 GMT
*  expire date: Jan  5 23:59:59 2024 GMT
*  issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M01
*  SSL certificate verify ok.
> GET /files/jejeje HTTP/1.1
> Host: this-is-the-correct-host-too
> User-Agent: curl/7.79.1
> Accept: */*
>
* TLSv1.2 (IN), TLS alert, close notify (256):
* Empty reply from server
* Closing connection 1
* TLSv1.2 (OUT), TLS alert, close notify (256):
curl: (52) Empty reply from server

In another setup, adding a middleware that redirects to https, what I get is a 404 via https while I can reach the service via http (removing the middleware, of course)
I have another service with the very same setup but using Traefik 2.5.6 and it works as expected.
Can I get some help here? #9359
Thanks in advance

Are you talking about the connection between the client and traefik?

No, I mean the connection between the traefik and the backend reverse-proxy.

When you say that the routing to s2.example.com is not happening, what is the observed behaviour exactly? Do you get a 404, or does the request go to s1 instead? Or something else?

When the first request is sent, a new connection established between traefik and reverse-proxy, and in reverse-proxy, it will route traffic to service-1. Then the second request, no new connection created, traffic is again sent to service-1. Acutually, a new connection from traefik to reverse-proxy is expected, then the reverse-proxy can re-route to the right backend service service-2.

Can you please enable debug level and provide the traefik logs at the moment of the observed behaviour?

traefik log:
time="2023-02-08T02:08:26Z" level=info msg="Configuration loaded from flags."
time="2023-02-08T02:08:26Z" level=info msg="Traefik version 2.9.6 built on 2022-12-07T14:17:58Z"
time="2023-02-08T02:08:26Z" level=debug msg="Static configuration loaded {\"global\":{\"checkNewVersion\":true},\"serversTransport\":{\"maxIdleConnsPerHost\":200},\"entryPoints\":{\"web\":{\"address\":\":80\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{},\"http2\":{\"maxConcurrentStreams\":250},\"udp\":{\"timeout\":\"3s\"}}},\"providers\":{\"providersThrottleDuration\":\"2s\",\"docker\":{\"watch\":true,\"endpoint\":\"unix:///var/run/docker.sock\",\"defaultRule\":\"Host(`{{ normalize .Name }}`)\",\"exposedByDefault\":true,\"swarmModeRefreshSeconds\":\"15s\"}},\"log\":{\"level\":\"DEBUG\",\"format\":\"common\"}}"
time="2023-02-08T02:08:26Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://doc.traefik.io/traefik/contributing/data-collection/\n"
time="2023-02-08T02:08:26Z" level=info msg="Starting provider aggregator aggregator.ProviderAggregator"
time="2023-02-08T02:08:26Z" level=debug msg="Starting TCP Server" entryPointName=web
time="2023-02-08T02:08:26Z" level=info msg="Starting provider *traefik.Provider"
time="2023-02-08T02:08:26Z" level=info msg="Starting provider *docker.Provider"
time="2023-02-08T02:08:26Z" level=debug msg="*docker.Provider provider configuration: {\"watch\":true,\"endpoint\":\"unix:///var/run/docker.sock\",\"defaultRule\":\"Host(`{{ normalize .Name }}`)\",\"exposedByDefault\":true,\"swarmModeRefreshSeconds\":\"15s\"}"
time="2023-02-08T02:08:26Z" level=debug msg="*traefik.Provider provider configuration: {}"
time="2023-02-08T02:08:26Z" level=info msg="Starting provider *acme.ChallengeTLSALPN"
time="2023-02-08T02:08:26Z" level=debug msg="*acme.ChallengeTLSALPN provider configuration: {}"
time="2023-02-08T02:08:26Z" level=debug msg="Configuration received: {\"http\":{\"services\":{\"noop\":{}},\"serversTransports\":{\"default\":{\"maxIdleConnsPerHost\":200}}},\"tcp\":{},\"udp\":{},\"tls\":{}}" providerName=internal
time="2023-02-08T02:08:26Z" level=debug msg="Provider connection established with docker 20.10.17 (API 1.41)" providerName=docker
time="2023-02-08T02:08:26Z" level=debug msg="Configuration received: {\"http\":{\"routers\":{\"traefik-traefik\":{\"service\":\"traefik-traefik\",\"rule\":\"Host(`traefik-traefik`)\"}},\"services\":{\"traefik-traefik\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://<IP_ADDRESS>:80\"}],\"passHostHeader\":true}}}},\"tcp\":{},\"udp\":{}}" providerName=docker
time="2023-02-08T02:08:26Z" level=debug msg="No default certificate, fallback to the internal generated certificate" tlsStoreName=default
time="2023-02-08T02:08:26Z" level=debug msg="No entryPoint defined for this router, using the default one(s) instead: [web]" routerName=traefik-traefik
time="2023-02-08T02:08:26Z" level=debug msg="No default certificate, fallback to the internal generated certificate" tlsStoreName=default
time="2023-02-08T02:08:26Z" level=debug msg="Creating middleware" middlewareType=Pipelining entryPointName=web routerName=traefik-traefik@docker serviceName=traefik-traefik middlewareName=pipelining
time="2023-02-08T02:08:26Z" level=debug msg="Creating load-balancer" entryPointName=web routerName=traefik-traefik@docker serviceName=traefik-traefik
time="2023-02-08T02:08:26Z" level=debug msg="Creating server 0 http://<IP_ADDRESS>:80" routerName=traefik-traefik@docker serviceName=traefik-traefik serverName=0 entryPointName=web
time="2023-02-08T02:08:26Z" level=debug msg="child http://<IP_ADDRESS>:80 now UP"
time="2023-02-08T02:08:26Z" level=debug msg="Propagating new UP status"
time="2023-02-08T02:08:26Z" level=debug msg="Added outgoing tracing middleware traefik-traefik" entryPointName=web middlewareName=tracing middlewareType=TracingForwarder routerName=traefik-traefik@docker
time="2023-02-08T02:08:26Z" level=debug msg="Creating middleware" middlewareType=Recovery middlewareName=traefik-internal-recovery entryPointName=web
time="2023-02-08T02:08:27Z" level=debug msg="Provider event received {Status:start ID:38eb8735c6556572895581e1adce745ff7383a05b9dae145f0b31f5c6bd1cca2 From:image/name Type:container Action:start Actor:{ID:38eb8735c6556572895581e1adce745ff7383a05b9dae145f0b31f5c6bd1cca2 Attributes:map[com.docker.compose.config-hash:ac447edcb3cca349218e58d7a6eeb98f21cbd8db8c04b80691317f49a79e02a6 com.docker.compose.container-number:1 com.docker.compose.oneoff:False com.docker.compose.project:traefik com.docker.compose.project.config_files:docker-compose.yaml com.docker.compose.project.working_dir:/home/gerry/code/traefik com.docker.compose.service:reverse-proxy com.docker.compose.version:1.29.2 image:image/name name:traefik_reverse-proxy_1 traefik.http.routers.ingress-0.rule:Host(`s1.example.com`) traefik.http.routers.ingress-0.service:ingress-0 traefik.http.routers.ingress-1.rule:Host(`s2.example.com`) traefik.http.routers.ingress-1.service:ingress-1 traefik.http.services.ingress-0.loadbalancer.server.port:8000 traefik.http.services.ingress-1.loadbalancer.server.port:8000]} Scope:local Time:1675822107 TimeNano:1675822107356654519}" providerName=docker
time="2023-02-08T02:08:28Z" level=debug msg="Configuration received: {\"http\":{\"routers\":{\"ingress-0\":{\"service\":\"ingress-0\",\"rule\":\"Host(`s1.example.com`)\"},\"ingress-1\":{\"service\":\"ingress-1\",\"rule\":\"Host(`s2.example.com`)\"},\"traefik-traefik\":{\"service\":\"traefik-traefik\",\"rule\":\"Host(`traefik-traefik`)\"}},\"services\":{\"ingress-0\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://<IP_ADDRESS>:8000\"}],\"passHostHeader\":true}},\"ingress-1\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://<IP_ADDRESS>:8000\"}],\"passHostHeader\":true}},\"traefik-traefik\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://<IP_ADDRESS>:80\"}],\"passHostHeader\":true}}}},\"tcp\":{},\"udp\":{}}" providerName=docker
time="2023-02-08T02:08:28Z" level=debug msg="No entryPoint defined for this router, using the default one(s) instead: [web]" routerName=traefik-traefik
time="2023-02-08T02:08:28Z" level=debug msg="No entryPoint defined for this router, using the default one(s) instead: [web]" routerName=ingress-0
time="2023-02-08T02:08:28Z" level=debug msg="No entryPoint defined for this router, using the default one(s) instead: [web]" routerName=ingress-1
time="2023-02-08T02:08:28Z" level=debug msg="No default certificate, fallback to the internal generated certificate" tlsStoreName=default
time="2023-02-08T02:08:28Z" level=debug msg="Creating middleware" routerName=ingress-1@docker serviceName=ingress-1 middlewareName=pipelining middlewareType=Pipelining entryPointName=web
time="2023-02-08T02:08:28Z" level=debug msg="Creating load-balancer" routerName=ingress-1@docker serviceName=ingress-1 entryPointName=web
time="2023-02-08T02:08:28Z" level=debug msg="Creating server 0 http://<IP_ADDRESS>:8000" serviceName=ingress-1 entryPointName=web routerName=ingress-1@docker serverName=0
time="2023-02-08T02:08:28Z" level=debug msg="child http://<IP_ADDRESS>:8000 now UP"
time="2023-02-08T02:08:28Z" level=debug msg="Propagating new UP status"
time="2023-02-08T02:08:28Z" level=debug msg="Added outgoing tracing middleware ingress-1" routerName=ingress-1@docker middlewareName=tracing middlewareType=TracingForwarder entryPointName=web
time="2023-02-08T02:08:28Z" level=debug msg="Creating middleware" entryPointName=web routerName=traefik-traefik@docker serviceName=traefik-traefik middlewareName=pipelining middlewareType=Pipelining
time="2023-02-08T02:08:28Z" level=debug msg="Creating load-balancer" entryPointName=web routerName=traefik-traefik@docker serviceName=traefik-traefik
time="2023-02-08T02:08:28Z" level=debug msg="Creating server 0 http://<IP_ADDRESS>:80" serviceName=traefik-traefik serverName=0 entryPointName=web routerName=traefik-traefik@docker
time="2023-02-08T02:08:28Z" level=debug msg="child http://<IP_ADDRESS>:80 now UP"
time="2023-02-08T02:08:28Z" level=debug msg="Propagating new UP status"
time="2023-02-08T02:08:28Z" level=debug msg="Added outgoing tracing middleware traefik-traefik" routerName=traefik-traefik@docker middlewareType=TracingForwarder middlewareName=tracing entryPointName=web
time="2023-02-08T02:08:28Z" level=debug msg="Creating middleware" middlewareType=Pipelining serviceName=ingress-0 entryPointName=web routerName=ingress-0@docker middlewareName=pipelining
time="2023-02-08T02:08:28Z" level=debug msg="Creating load-balancer" entryPointName=web routerName=ingress-0@docker serviceName=ingress-0
time="2023-02-08T02:08:28Z" level=debug msg="Creating server 0 http://<IP_ADDRESS>:8000" serviceName=ingress-0 serverName=0 entryPointName=web routerName=ingress-0@docker
time="2023-02-08T02:08:28Z" level=debug msg="child http://<IP_ADDRESS>:8000 now UP"
time="2023-02-08T02:08:28Z" level=debug msg="Propagating new UP status"
time="2023-02-08T02:08:28Z" level=debug msg="Added outgoing tracing middleware ingress-0" routerName=ingress-0@docker middlewareName=tracing middlewareType=TracingForwarder entryPointName=web
time="2023-02-08T02:08:28Z" level=debug msg="Creating middleware" middlewareType=Recovery entryPointName=web middlewareName=traefik-internal-recovery

BTW, when I change the server port of service ingress-1 to different one (traefik.http.services.ingress-1.loadbalancer.server.port=8080), it works well.


Add missing values to smoke tests

This randomly assigns missing values to our Grid tests.  It also adds a test to each tested grid type (Regular, Stretched, Layered, Curvilinear) where all values are assigned as missing-values.
This seems to break various tests for the Stretched, Layered, and Curvilinear grids.  Regular seems ok though.
Note: I also made the default arguments for the smoke test binary directory, data directory, and results directory more sensible.  Users can now specify these from their home with '~'.

This PR has uncovered some bugs in Grid::GetValueLinear() that will need to be addressed before this can be merged. Assigning myself to fix the bugs.

@sgpearse the grid classes handle interpolation with missing values inconsistently. It was not obvious to me which approach was the "right" one, none of them being completely satisfying. After a bit of googling I've come to believe that being consistent with Xarray (SciPy) is probably the least bad thing to do. Though it is not documented anywhere that I can find, here is what Xarray/SciPy do with missing values (NaNs) in 1D, which also generalizes to nD. If an interpolant point b is in the range a <= b <= c, and either f(a) or f(c) is evaluates to NaN, then f(b) will interpolate to NaN. Seems simple, but one might expect that if f(a) is valid, f(c) is a NaN, and b == a, then f(b) might interpolate to f(a). Nope. That is not what happens. Moreover, now consider known values at a,b,c, where a < b < c, and interpolating a point d, where d == b. The point d might be interpolated in the range [a..b] or [b..c]. Depending on the choice, and whether f(a) is NaN and f(c) is valid, or f(a) is valid f(c) is NaN, f(d) might interpolate to NaN depending on whether the algorithm uses the range [a..b] or [a..c].
Bottom line, as I said making our missing value handling consistent with Xarray and SciPy is probably the best choice. The implication is that the current CompareIndexToCoords() code will need to be changed. When missing values are present the current CompareIndexToCoords() won't work with linear interpolation (nearest is fine). So either linear can be removed when there are missing values, or CompareIndexToCoords() should recognize that GetValueAtIndex() main return a valid value, while GetValue() may return a NaN.
Does this make sense? Correcting the inconsistency as described above should be a pretty small change.

Does this make sense? Correcting the inconsistency as described above should be a pretty small change.

Not entirely, but I need to give this more than a cursory glimpse.  I'll get on this after my upcoming iteration on #3089, which I'm hoping to finish tomorrow.

... or CompareIndexToCoords() should recognize that GetValueAtIndex() main return a valid value, while GetValue() may return a Infinity.

I'll try this route.  I think in the case where GetValueAtIndex() and GetValue() both register as missing, we can consider the value as truly missing.  When GetValueAtIndex() is non-missing and GetValue() is missing, we discard that sample.  Does that sound right?  Changes are now posted in gridTools.cpp:219.

@sgpearse just sit tight. I'm looking at this now.

I've made the changes to Grid::GetLinearValue so that all grid classes handle linear interpolation with missing values consistently. I've also updated gridTools.cpp to correctly assess validity when missing values are present. I've also added a test case where the are NO missing values in the data.
@sgpearse, @shaomeng, you should both review these changes. @shaomeng once you've both approved you'll need to merge this into your 'range_omp' branch. Per our conversation yesterday this branch was not created from 'main'


扫描移动到没有二维码的时候能否给个回调函数呢？

111

To reply to your question, "Can you give a callback function when the scan moves to no QR code?":
Handling whether the resulting BarcodeCapture has no result can be done by inspecting the length of the barcodes list.

Thank you


[Snyk] Upgrade @tailwindcss/line-clamp from 0.4.0 to 0.4.2

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade @tailwindcss/line-clamp from 0.4.0 to 0.4.2.

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 2 versions ahead of your current version.
The recommended version was released 22 days ago, on 2022-09-02.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Codecov Report
Base: 82.03% // Head: 82.03% // No change to project coverage :thumbsup:

Coverage data is based on head (e96dcef) compared to base (9cf508e).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #358   +/-   ##
=======================================
  Coverage   82.03%   82.03%
=======================================
  Files          31       31
  Lines         412      412
  Branches       59       59
=======================================
  Hits          338      338
  Misses         68       68
  Partials        6        6

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Support multiple configurations

I have a project that has multiple "main" files, depending on the situation.
I would love to be able to use the project configuration to specify which main script is run.
For example, I could have a "debug wrapper" main script that require()s my real "app.js" to distinguish between debug and release mode, where the "release" configuration would just run "app.js".
Right now, project configurations are ignored.

The easy workaround here is to create multiple projects, integrating this in the project is a lot of work for relative little gain.