fix interface select problem with swd mode (OCDOE-8)

found a bug in swd mode. interface value in json should be an interger type but the web generate a string type. It cause the error decode in esp32 device, and still select jtag interface

Fixed in the master branch with the existing pattern to keep consistency. Thanks for reporting the issue. Did you able to manage to get this work?

Thanks for your reply!
My PR has fixed the issue mentioned this time and passed the test on my device. I believe that this PR is effective for all devices.
I am not sure if my modifications are the best, but I hope you will consider them. Or I can modify the code in esp32 side if keep the website file not changed.
I am happy to participate in the development of this repo, and I am still trying to learn and understand the code in this repo, it is truly amazing repo for me.

@442534820 Thank you for your interest. As I said, I fixed "swd" issue in the master branch. For now, we will not merge this PR. But feel free to create another PR if you think there is a bug, or something useful for everyone.


Generate keypair

Maybe even make it cargo-install-able.

Can be installed with cargo install threema-gateway --example generate_keypair.


Customizations on an it-block completely remove customizations set on a parent describe

In some situations, I was my test to be more descriptive, but I don't necessarily want my docs to have the same description. However, when I customize the description on the test level, the values set on the describe are lost. For example, the following test...
describe V1::MyController, openapi: {
  summary: 'Do the stuff that my controller does',
  tags: ["My tag"],
} do
  it 'returns a 200 status with a json body' , openapi: { description: 'Success' } do
    get 'v1/my'
    expect(response).to have_http_status(:ok)
    expect(response.parsed_body).to eq(expected_response)
  end
end

produces the following yaml
"/v1/my":
    get:
      summary: index
      tags:
      - V1::My
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                ...

But I would expect it to output the following yaml
"/v1/my":
    get:
      summary: Do the stuff that my controller does
      tags:
      - My tag
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                ...

:openapi metadata is currently extracted only from it(...) blocks.
Supporting metadata in describe(...) block seems to make sense for tags (not sure for summary).
If someone want to contribute to this feature, metadata extraction can be found:
https://github.com/exoego/rspec-openapi/blob/988f87fb2d85650261279e351a97dac3633f73f5/lib/rspec/openapi/extractors/rails.rb#L19
https://github.com/exoego/rspec-openapi/blob/988f87fb2d85650261279e351a97dac3633f73f5/lib/rspec/openapi/extractors/hanami.rb#L59
https://github.com/exoego/rspec-openapi/blob/988f87fb2d85650261279e351a97dac3633f73f5/lib/rspec/openapi/extractors/rack.rb#L9


[MRG] Sampling iterables

Work in progress. Addresses #344.
TODO

[x] Review literature.
[ ] Sampling with/without replacement.
[x] Sampling with/without weights.
[x] Perform empirical analysis of running time.
[x] Decide on function signature.

Decided not to add sampling with replacement in this PR. Three reasons: (1) with a large number of elements, sampling with replacement is not that interesting, (2) there's no general algorithm, so we would have to split up into four cases: weighted/unweighted and with/without replacement and (3) I couldn't find a paper for the weighted case with replacements. Could be generalized from the other papers, but I don't want to spend time trying to do the math right now. Out of scope for this PR.

Sampling could either return a list after consuming the entire iterable, e.g.,
samples = sample(range(5), k=3)
print(samples) # [3, 1, 4]

or it could yield the reservoir (current list of samples) after consuming each item, e.g.,
for samples in sample(range(5), k=3):
    print(samples)

# [0]
# [0, 1]
# [0, 1, 2]
# [3, 1, 2]
# [3, 1, 4]

Thoughts? The first option might be more intuitive (and more in line with current APIs in e.g. random), but it consumes the entire iterable before returning. The second approach strikes me as more flexible, but perhaps less intuitive.

I favor the second approach.
Yes, me too.

I messed up the PR, but fixed it and force pushed now.

Thanks for fixing the merge issues - much cleaner now.
Re: function signature, I'd get rid of the k=1 and just let that be a positional argument?
Re: splitting the weighted and unweighted - this seems fine.
Re: Tests, I would suggest checking out the method here.
I'm having second thoughts about "yield the reservoir." It appealed at first, but playing with how it works, I think the common use case would be: "just give me the last one." What do you think?

Thanks for the feedback, will address these comments :+1:

I'm having second thoughts about "yield the reservoir." It appealed at first, but playing with how it works, I think the common use case would be: "just give me the last one." What do you think?

I agree completely that the most common use case would be likely "give me the last one," which could be written as last(sample(iterable, k)) if we "yield". If we consume the entire thing and "return", the drawback is that the user loses control and will have to consume the entire iterable. Unless the user does something like sample(islice(iterable, n), k) or sample(time_limited(seconds, iterable)), k).
Three options:

We "yield" as sketched in the code now, but include last(sample(iterable, k)) in the docstring to help users along.
We "return" after consuming the iterable. This is perhaps more intuitive, but the way I see it the user loses some control. The "yield" alternative reduces to the "return" alternative, but not the other way around.
We include a keyword sample(iterable, k, yield_reservoir=False). This will allow for both use cases, but to me a function that's either a generator function or a normal function depending on a keyword feels a bit wrong.

I still slightly favor alternative (1) above since it's the most general one. However, I'll happily implement any of the three alternatives. I suppose there's a tradeoff between generality and what a user might expect here. Thoughts @bbayles ?

Apologies for backtracking, but I think we should just return the final list and not yield intermediate ones. If the user wants to get results from something other than the full iterable, they can pass in an islice-ed version.

No worries! Will do. Might take some time due to christmas, but I'll finish up the PR and ask for another review soon-ish.

Ready for a review round. Some comments below:
Speed
I'd say the algorithms are competitive in terms of speed for most inputs. They are asymptotically optimal, and the most complex algorithms from the papers are implemented (using so-called skip distributions). Their primary virtue is of course that they are memory efficient and work on iterables of unknown length. Notice below that random.choices actually samples with replacement. I just compared to this algorithm to get a feeling for speed.
N=10000000, k=1000
======== UNWEIGHTED SAMPLING ========
Unweighted sampling (_sample_unweighted) ran in: 0.39156
Unweighted sampling (random.sample) ran in: 0.0815
Unweighted sampling (np.random.choice) ran in: 0.87555
======== WEIGHTED SAMPLING ========
Weighted sampling (_sample_weighted) ran in: 0.71794
Weighted sampling (random.choices) ran in: 0.45808
Weighted sampling (np.random.choice) ran in: 1.24391

N=10000000, k=100000
======== UNWEIGHTED SAMPLING ========
Unweighted sampling (_sample_unweighted) ran in: 0.92425
Unweighted sampling (random.sample) ran in: 0.1321
Unweighted sampling (np.random.choice) ran in: 0.85672
======== WEIGHTED SAMPLING ========
Weighted sampling (_sample_weighted) ran in: 1.88625
Weighted sampling (random.choices) ran in: 0.65419
Weighted sampling (np.random.choice) ran in: 1.35635

N=10000000, k=1000000
======== UNWEIGHTED SAMPLING ========
Unweighted sampling (_sample_unweighted) ran in: 2.99556
Unweighted sampling (random.sample) ran in: 0.75991
Unweighted sampling (np.random.choice) ran in: 0.85322
======== WEIGHTED SAMPLING ========
Weighted sampling (_sample_weighted) ran in: 14.58644
Weighted sampling (random.choices) ran in: 2.45623
Weighted sampling (np.random.choice) ran in: 2.20805

Numerical stability
Weights in the range 1E-100 to 1E100 have been tested and give the same result. In other words, the algorithm is invariant with respect to scaling such as new_weights = [weight * scale for weight in weights] and I've tested with this scale = 10**100 and scale = 10**-100. I implemented the weighted sampling algorithm in log-space to increase numerical stability. Works well.
Bias
The plot below shows the difference between means in many samples, when permuting the order of the iterable (of course the sampling algorithms should be invariant w.r.t. such permutations). There doesn't seem to be any bias. This is a sign that I've managed to implement the algorithm correctly. I had a bias of ~ 0.4 earlier here, found the bug and now the bias is 0.0032 in the plot.

Review
Please look over and comment on anything at all. I kept some notation from one of the papers, but in general I have tried to use decent variable names.
Thanks.

Great work. A few questions and suggestions - let me know what you think.

I agree with all your comments and have committed them.
Regarding testing the functions, I don't believe seeding the random number generator and testing "actual vs expected" provides much value here. It might even provide a false sense of security. Consider the following:
I could implement a complete junk algorithm for sampling (e.g. take k first elements, skip every remaining element) and a unit test with a fixed seed would pass. On the other hand, I could implement a more naive algorithm for sampling (e.g. algorithms without skip distributions from the papers) that's completely correct, but the unit test with a fixed seed would then fail since this new algorithm uses the random number generator differently.
I've added a test with a fixed random seed anyway (but I don't think it's very useful). I've also kept my property-based tests. I've highlighted in code comments that the thresholds are not arbitrary - they are set based on 10000 simulations. Though stochastic, these tests verify properties that any sampling algorithm should have. Unlike fixed seed unit tests, the property-based tests would immediately fail on a junk algorithm, and would pass for sampling algorithms that are correct regardless of implementation details. The false alarm rate should be less than 1/10000 - I hope that's OK. If not I can make it lower.
Hope the above makes sense. :+1:  Other have said it better than me, e.g. "I don't think unit tests are the right tool for testing randomness.".

Re: testing with a fixed seed, here's what I was suggesting: given a handful of items and a known stream of values from the RNG, we could work through the algorithms with pencil and paper and produce a good result. Then we could run the code with those same parameters and ensure that it produces the same result.
Make sense? If the "expected" values of the tests that are currently written aren't from that method, I agree they're not useful. But if they were worked out in advance, then they're good.

Not entirely sure if I understand. If I understand correctly: Creating such a test it would force me, as the author, to step through the algorithm like a debugger. This is a useful exercise for me, but I don't see how it provides value as a test in a test suite. Values from the current test are ad-hoc, so we agree that the test as it stands is not very valuable.
Anyway, I've changed from WIP to MRG and consider this PR to be done unless you have any further comments. You're of course very welcome to make changes to the branch before merging if you want to - whether that's adding a test or changing the comments after reading through the algorithm.
Your comments regarding the algorithm are correct :+1: . I'm fairly confident in the implementation: I've implemented it with care, it matches the numpy implementation and naive implementations, the properties are obeyed (e.g. scaling and permutations, as in the stochastic tests), and you have looked over it too.

Thanks for the PR; I'll update before the next release.

Great! Thanks for reviewing and merging @bbayles :+1:


v11: update style tabs with new tokens

Primary task
Update all component style tab pages in the v11 branch to have the new token names. See Notion doc for full list. Some component specs with v11 tokens are available in this other issue or just reference the notion doc for old -> new tokens migration.

Updates will be made in markdown in the ## Color section of the style tab.

Optional image updates
Also is if any one feels inclined to update in out date style tabs in there while you're at it you get super brownie points with me! (not required though but please at least make a note of in correct images)
Thy

[x] Accordion
[x] Breadcrumb
[ ] Button
[x] Checkbox
[ ] Code snippet
[x] Content switcher

Lauren

[ ] Date table (PR)
[ ] Date picker (in progress)
[ ] Dropdown
[ ] File uploader
[ ] Link
[ ] List

John

[x] Loading
[x] Modal
[x] Number input
[x] Overflow menu
[ ] Pagination
[ ] Progress indicator

Tracey

[ ] Radio button
[ ] Search
[ ] Select
[ ] Slider
[ ] Structured list
[ ] Tabs

Anna

[ ] Notifications
[ ] Tag
[ ] Text input
[ ] Tile
[ ] Toggle
[ ] Tooltip
[ ] UI Shell

Updates can either be made through your local build or you can makes these updates through the GitHub web app by going to "Edit this page on Github" link at the bottom of each page.

Go to the page and tab you want to edit. Scroll to the bottom and click on the  "Edit this page on Github" link.

Edit markdown file with update content

After you make all your edits scroll to the bottom of the page and select "create new branch" then hit the commit changes button

Change base from main to v11 then create your pull request.

Adding Jan's example here to make it easier for reviewers when creating PRs for v11
Title
docs: v11 color token updates for accordion component
Description
This PR updates the color tokens on the Style tab for the accordion component.

Embedded components
Link out to the guidance for that specific component above the table in the written description. Ref: Modal
Specifying  an inline theme
Use $[token]: inline theme when inline theming is required for a part of the component by default.


Add a Data Tier

We need to add a data service to this application to store previously computed values. Since we're going to access this service via an API, we can implement the data store however we want for the POC. When we go to deliver the project to the client, we can figure out what to do with the data tier.
Meanwhile, we'll use memcached as our working implementation.

The data service has been added. For right now it's storing locally in a Python dictionary as there were docker-compose networking issues that took a while to get worked out.


All committee information is stale.  / The future of committees

There are a lot of issues on committee information, but I don't think a lot of people interested in making PRs for it.  Committee scrapers are very prone to breakage, maybe the highest of all the ones we maintain.
This leaves us in a tough spot, should we continue to provide it?  Are people using this data?  Is anyone interested in helping maintain it?

I opened #135 as I was perusing openstates.org. I'm new to GA and was merely browsing for my own interest when I noticed the bug. While I don't currently have a particular use for such data, I think having easy-to-access, structured data on committee composition - and particularly the reverse map, legislator committee membership - is generally useful. Committee membership is an important aspect of understanding a legislator's politics and is not always readily available from other sources. The value of openstates is that it collects this information for the times when it is useful.
Regarding maintainence: In the past I have contributed an unsolicited PR for the MS scrapers. The functionality in that PR was eventually duplicated by someone on staff, and my PR was rejected. I observed several PRs from various people/states get subsumed in a similar manner during that time. I have no issue with this - the bugs were fixed, which is the ultimate goal - but this time I didn't spend the time to fix the issue when I reported it, expecting a similar response. If it's helpful, I can look at making patches for the GA committee data and scrapers.

I think the committee data is essential. Reps have more responsibility and leverage for work that is in their committees.  The bill has to get through committee before non-committee members get a vote.  Currently PA has an excellent state site for this information (e.g. https://www.legis.state.pa.us/cfdocs/cteeInfo/StandingCommittees.cfm?CteeBody=H) and RSS feeds.  But I suspect as rconnorlawson said, not all states have good sites. So openstates provides a service in providing that information consistently, if it can do it with accuracy.
Maintenance: I'm not currently in a position to promise much but am interested and may be able to help in the future; I'll take a look at the code when I can.

Given that we don't have a maintainer and the information is very stale, I will begin the process of removing the stale info for now.  This isn't meant to preclude the future inclusion, in fact I think the existing data is more of an obstacle than a help.


create a multiple choice style that has clickable images / components

a multiple choice element except that it can take slots for each response. Because of how this would work we'd have to set a limit of like 6 or something but we could allow the user to put whatever they wanted there. If we added slot support to multiple choice in its current form (which I dont know if its actually possible...) then we'd still have to basically just make a different HAX schema for it. This would be a good oppurtunity to see how we could supply alternative ways of creating things off of the same element.
It might be good to have support for an image field for example in the hax wiring which then just adds an additional field to the mutliple choice area. We could directly support images but that might be clunky, let's explore

misunderstood the requirements.


General dartpad performance - Flutter API docs

This bug describes Flutter's use case for improved performance.
We have noticed that the addition of dartpad to Flutter API docs has resulted in a noticeably slower page.
For some surface level metrics, With dartpad: speedtest vs without dartpad: speedtest
We have seen through surveys on the docs that there are a subset of users who are already complaining that the old dartpad-less docs are too slow/memory heavy, which causes concern that the addition of dartpad would increase performance requirements to the point of a non-insignificant chunk of people to be unable to use the API docs.
Some areas we have noticed slowdown:

Memory
Initial download
FPS
responsiveness

Thanks for the issue and details!
DartPad has evolved a lot since then and we have a few newer issues tracking specific performance concerns, so I'll close this in favor of those. Feel free to open other more specific issues too.
The largest performance issues for the API docs occurs multiple embedded DartPads, which likely won't be solved until multi-view support lands in Flutter.


Explicitly set source/targetCompatibility=11 for build-logic-commons

@bot-gradle test and merge

OK, I've already triggered a build for you.


fix: run systemctl daemon-reload before Containerd restart

What problem does this PR solve?:
During Machine bootstrapping Contianerd drop in files may be added.
These files are written to the disk before preKubeadmCommmands are run.
Always run systemctl daemon-reload along with systemctl restart containerd to pick up these dropins.
I saw a warning about the drop-ins when cloud init runs the Containerd restart script, so figured it makes sense to add it here instead of a separate script.
[2024-08-05 16:35:46] /tmp/tmp.MzIe5jTIdG
[2024-08-05 16:35:46] Warning: The unit file, source configuration file or drop-ins of containerd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[2024-08-05 16:35:46] /usr/bin/crictl
[2024-08-05 16:35:46] {
...

Which issue(s) this PR fixes:
Fixes #
How Has This Been Tested?:

Special notes for your reviewer:

This systemctl behavior is unfortunate.
Systemctl knows when you need to run daemon-reload, and in fact, warns you. I think it should do it in your behalf automatically. That's been requested once in the past, and denied. But I think it's worth reexamining upstream.
Because daemon-reload affects all configuration, so it's best to run at a known "synchronization point," i.e. when you're done adding all drop-ins, not just the ones for containerd. It a relatively expensive operation, so it's best to run it once, if possible.
We can also avoid running it by first checking if it's required for any service whose configuration we've updated. Example:
if [ $(systemctl show containerd -p NeedDaemonReload --value) == "yes" ]; then
    systemctl reload-daemon
fi
systemctl restart containerd

For long-term maintenance, I think we might want to factor this out, so that we have this general structure:

Make any handler that updates the configuration of a systemd service implement ttwo methods: one that updates configuration, and another that restarts the service.
Call the first method of all handlers.
Run daemon-reload (to reload configuration possibly updated in the previous step).
Call the second method of all handlers.

For long-term maintenance, I think we might want to factor this out, so that we have this general structure:

Make any handler that updates the configuration of a systemd service implement ttwo methods: one that updates configuration, and another that restarts the service.
Call the first method of all handlers.
Run daemon-reload (to reload configuration possibly updated in the previous step).
Call the second method of all handlers.

Great idea @dlipovetsky, let me create an issue in this repo. We've gone through a couple of iterations now of this common Contianerd command that's needed by different handlers and moving it out to somewhere more generic makes sense to me.

This systemctl behavior is unfortunate.
Systemctl knows when you need to run daemon-reload, and in fact, warns you. I think it should do it in your behalf automatically. That's been requested once in the past, and denied. But I think it's worth reexamining upstream.
Because daemon-reload affects all configuration, so it's best to run at a known "synchronization point," i.e. when you're done adding all drop-ins, not just the ones for containerd. It a relatively expensive operation, so it's best to run it once, if possible.
We can also avoid running it by first checking if it's required for any service whose configuration we've updated. Example:
if [ $(systemctl show containerd -p NeedDaemonReload --value) == "yes" ]; then
    systemctl daemon-reload
fi
systemctl restart containerd

Doing a test with this suggestion.


Improve numerical RAOB site ID support

In some cases when using RAOB identifiers other than the standard 3-digit ID ('DTX'), get_obs_data() will fail when looking for the right station ID in the station ID lists, even though it did correctly retrieve the data because the provided station ID is valid.
The function needs to be able to search through the numerical IDs as well.
This will be fixed in upcoming releases.

This issue is fixed and users can now us WMO ID numbers when using the get_obs_data() function.


Update virtual-machines-size-specs.md

(The complete list of valid options should potentially be validated with the team who owns the sizes - these simply worked for me.)  When allocating the A* sizes in Azure Resource Manager, you need to use Standard_A* or Basic_A* (some only support standard). When trying to allocate with simply "A8" as an example, this did not work.

Hi @AlanSt, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@AlanSt Thanks for the contribution!  I've sent this to the author for review.

@AlanSt - thanks for this feedback and sorry for the delay responding. I'll repro this against the latest Azure PowerShell bits and update the article accordingly this week. I'll also reply back with the result.

@AlanSt -- After some digging, I think the allowed values are different depending on whether the VM is created in the Service Management stack or the Resource Manager stack. This means accepting the update in your PR won't cover all the uses. Instead, I'll need to rework the info and have put that in my work queue. For the interim, I'll add a note re this discrepancy. Thanks again for bringing this to my attention.
~Kathy

@AlanSt We're closing this PR based upon the response from the author.  Please comment if you feel we should reopen.


To save environments into Docker images

Including files and databases.

This feature has been added to v1.2.


Destroy root node and clean up sensor resources on exit

Signed-off-by: Ian Chen<EMAIL_ADDRESS>🦟 Bug fix
Fixes https://github.com/ignitionrobotics/ign-rendering/issues/615
Summary
When the scene was destroyed, only non-root nodes were destroyed. This PR makes sure to destroy the root node as well.  As soon as that is done, I noticed that destructors of sensors are now called but tests are segfaulting. Fixed by cleaning up more resources in sensors' Destroy function.
Checklist

[x] Signed all commits for DCO
[x] Added tests
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
[ ] codecheck passed (See contributing)
[ ] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

I believe there are more places where we can use kCubeCameraCount. But I will create a follow up PR

sounds good, thanks

hmm a few windows warnings started showing up on CI, not sure why. They are not introduced by this PR. I''ll look into fixing them in a separate PR.

hmm a few windows warnings started showing up on CI, not sure why. They are not introduced by this PR. I''ll look into fixing them in a separate PR.

https://github.com/gazebosim/gz-rendering/pull/622


Maybe a nice picture of our logo or a camperbot?

I'd be in favour of that.

this isn't a bug. this is more of a preference change. while I understand and agree with the change suggested and I do think that having an unrelated image as a sort of boiler plate that gives an instant "hey!! jerk!! this is not a cat". that being said, this is a misclassification of what the issue is.. the code is not incorrect nor does it pose any security or syntax issues to the user . there for not a bug.

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

I wouldn't worry too much about the tag - it's automatically generated. Not worth obsessing over.

Going to go ahead and open this one up for contribution.
The referenced example image is found in this repo: https://github.com/freeCodeCamp/freeCatPhotoApp
And can be replaced with this image: https://github.com/freeCodeCamp/cdn/blob/main/build/platform/universal/logo-512X512.png (make sure to keep the your-image.jpg filename so the links in the curriculum still work.


[need verification on a statement]: panic does segfault (Aborted core dumped) by default cuz its not yet supported

hello
im getting a panic inside my project from the crates that im using.
by running in terminal this happened:

program prints panic message
it does some stuff because 1 core is up and running and linux system core-dump writes some logs or does some stuff (i dont know exactly, i saw it was using the disk and i saw the process on htop)
and then if i dont force close the GUI app (my project) the system aborts automatically showing in the terminal Aborted (core dumped)

i've saw this in the readme
Unwinding on panics (https://github.com/bytecodealliance/wasmtime/issues/1677, -Cpanic=abort is enabled by default)

and also saw that cleanup is requested as an open issue and its still open so no cleanup right now.
so my guess is that cranelift compiles code with panic=abort by default both in debug and release mode. right?
and when the rust program panics with panic=abort it will create a segfault. right? (this is what i saw in the past when running a release binary with panic=abort)
this is expected to happen right? im assuming, but i need your confirmation.
thanks in advance.

Yes, panics do indeed abort (SIGABRT) due to -Cpanic=abort being the only mode supported by cg_clif. Note that this is not a segfault (SIGSEGV), but a controlled abort() call. Both do indeed write core dumps by default on some distros. Depending on the amount of memory the process used, this can take a while. If you want to disable core dumping, you should be able to run ulimit -c 0 in the terminal from which you run the compiled program. This will only apply to processes spawned from this specific terminal and won't persist once you close it.

wow, very nice guide. thanks a lot.

I believe I answered your question. If not, feel free ask more though.

ok, i can confirm that both ways are achieving the same result.
and indeed, i can confirm that is working (ulimit -c 0), the program is not writing core-dumps anymore into the system, so right now the process closes immediately.
thanks a lot for the response!

The second one definitively works. The first one may or may not work. ulimit is a command built into your shell which changes the "resource limits" of the shell itself, any processes started by the shell then inherit these "resource limits".


Authorize error

Hi, could you add the error log from XCode?

Hi, I tried twitter and facebook. Getting this in both.
Response: (null)
Error:Error Domain=SimpleAuthErrorDomain Code=102 "(null)" UserInfo={NSUnderlyingError=0x7f9d0bc9d680 {Error Domain=com.apple.accounts Code=6 "(null)"}}

Ah, ok - this is expected behaviour. the Twitter and Facebook providers use iOS social framework. When you're not logged in to Facebook on the device, you get Error Domain=com.apple.accounts Code=6. To fix - go to settings on your device and log in to Facebook (https://support.apple.com/en-gb/HT202605)
If you want to prompt the user to login if they're not already logged in on their iphone, you can customise the error message or use the 'FacebookWeb' (which spawns a WebView with the Facebook login form) provider asa fallback, something like https://github.com/adamjmcgrath/react-native-simple-auth/issues/25#issuecomment-166947111

great . Thank you for resolving this on time ..


load member of custom Dock-able panel is only called once when creating/deleting the panel multiple times

Minimal example package:
https://gitlab.com/InstitutMaupertuis/rviz_plugin_load_bug
I expect the load member of my RViz panels to be called each time the panel is created, it is not the case.
How to reproduce:

Start RViz
Add a custom panel with a load(const rviz::Config& config) member
Delete the panel
Add the same panel again

The load member will not be called after the first creation, resulting in a partially initialized panel.
This is problematic for me because I use the load member to make sure service connections are done etc...
I'm not sure if it is a bug or an intended behaviour.

I'd say it's not a bug, but that this part of the system was just not designed to allow load to be called each time. However, I don't see why that must be the case. So I'll conservatively mark this as an enhancement, though I think there's a case for it being considered a bug as well. Either changing this would be possible if anyone wanted to pursue a pull request to that end.

Closing because of the discussion in https://github.com/ros-visualization/rviz/pull/1300
This is not a bug but an intended behavior that makes sense.


How to predict more than 2 classes in the end?

Helo, I need help. How to add more classes in the output below? I have 6 different classes of plant and i do not know how to edit at the end.
from keras.models import load_model
saved_model = load_model("VGG16_Model_FYP.h5")
output = saved_model.predict(img)
if output[0][0] > output[0][1]:
print("Kacip Fatimah")
else:
print('Mempisang')

You can use numpy.argmax to find which index is having highest value and identify classes accordingly.


[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc we don't use Prow
/assign we don't use Prow
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/eventing ab981d6...cb3901f:
  > cb3901f Increase max namespace count for e2e test runner (# 6486)
  > 1d00055 upgrade to latest dependencies (# 6485)
bumping knative.dev/pkg d02dcd0...4a03844:
  > 4a03844 fix double close of channel (# 2575)
  > f78a006 upgrade to latest dependencies (# 2573)

Codecov Report

Merging #465 (4c779f4) into main (e682cee) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #465   +/-   ##
=======================================
  Coverage   66.23%   66.23%
=======================================
  Files          38       38
  Lines        2070     2070
=======================================
  Hits         1371     1371
  Misses        655      655
  Partials       44       44

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


Enable Cloudflare Worker Testing with Vitest Pool Workers

Set up @cloudflare/vitest-pool-workers to enable Cloudflare environment testing in Vitest. This will allow us to simulate a Cloudflare Workers environment in local tests, accessing environment variables and other bindings configured in wrangler.toml.

NO


Server response with null reference

We noticed an issue where the server returns a null reference (data), but the lib isn't updated correctly and it keeps the old reference.

Fixed in 4.3.1


Bug: Performance on Open Pandora is 'laggy'

For some reason, LOAD81 doesn't perform very well on the Open Pandora console - its useable, but seems to be very laggy.  Normally such an SDL program on OpenPandora/Angstrom performs very, very well, but with LOAD81 there appears to be some performance issue in the inner loop of the app which results in lag.  It is very noticeable with the "text.lua" demo, where the text lags behind the mouse cursors as it moves, by a few milliseconds.
It may be related to a build issue (I have built LOAD81 using the CDEV tools, which is an onboard toolchain which runs on the Pandora itself, -i.e. not cross-compiling, but native compiling on the Pandora hardware itself), or it could have something to do with the overall architecture of LOAD81 itself - is the Lua VM somehow being polled too often, or some other unnecessary code-branch being taken during execution of the Lua script, perhaps?

This issue isn't unique to Open Pandora - I see it on Native Client and even in Linux on my laptop. I sent pull request #24 with a fix.


To detect your current Python install you will need to run:  python -m pip install ipykernel python -m ipykernel install --user

On a windows 10 laptop.
I do apologise for how basic this question is.
But where am I meant to run
python -m pip install ipykernel
python -m ipykernel install --user

I've changed the name of the script to .py and set the language from the drop down menu at the bottom to python

I still keep getting the message
Check that the language for this file is set in Atom, that you have a Jupyter kernel installed for it, and that you have configured the language mapping in Hydrogen preferences.
To detect your current Python install you will need to run:

python -m pip install ipykernel
python -m ipykernel install --user

Hydrogen should automatically detect kernels installed on your disk. These are the steps you should follow:

Have Python installed
Using pip install jupyter (ipykernel comes with it) or ipykernel
Run ipykernels install command
Open atom and go into the package settings of hydrogen (click packages and then hydrogen)
Make sure you set up a language mapping if you require one.
open a .py file, and make sure your grammar is set in the bottom right hand corner of atom
try to run a line via hydrogen:run

I have installed anaconda, is that sufficient?
I don't even know here to run pip3 install jupyter
Where do I run this?
& 5) I have messed around the with the language mapping but unsure exactly what to put in the fields

Since you have anaconda you should be able to go to your windows search and open anaconda prompt and use pip inside there

It keeps giving errors
pip install juypter
Collecting juypter
Could not find a version that satisfies the requirement juypter (from versions: )
No matching distribution found for juypter
pip install --upgrade pip Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\Users\ald04\AppData\Local\Temp\pip-uninstall-fxm00eqq\pip.exe'

Have you read the directions for installing kernels yet. https://nteract.io/kernels
There is a section for using anaconda or python environments or globally.
For global, If you use anaconda you may have to update your environment variable called path to include your python installation from conda.
https://jupyter.org/install
This is how to install jupyter, which you should already have. Try running jupyter notebook and seeing if it works.
If it does screenshot the error you get when you try to use hydrogen.

Have you read the directions for installing kernels yet. https://nteract.io/kernels
There is a section for using anaconda or python environments or globally.
For global, If you use anaconda you may have to update your environment variable called path to include your python installation from conda.
https://jupyter.org/install
This is how to install jupyter, which you should already have. Try running jupyter notebook and seeing if it works.
If it does screenshot the error you get when you try to use hydrogen.

I am going to close this as the linked docs should have your answers. If you still have trouble or errors, you may open a new issue.


AttributeError in runner.py When Handling Exceeded Context Length

Description:
Encountered an AttributeError in runner.py after multiple attempts to process a long code snippet using the gpt-3.5-turbo-16k model.
Error Messages:
Repeated errors indicating the model's maximum context length was exceeded:
Error: The model's maximum context length is exceeded. Reducing the length of the messages. Attempt 1 of 5
...
Error: The model's maximum context length is exceeded. Reducing the length of the messages. Attempt 5 of 5

Followed by an AttributeError:
   File "ai_doc\runner.py", line 341, in <module>
    runner.run()
  File "ai_doc\runner.py", line 165, in run
    self.process_file_changes(repo_path, file_path, is_new_file)
  File "ai_doc\runner.py", line 217, in process_file_changes
    json_data[file_handler.file_path] = self.update_existing_item(json_data[file_handler.file_path], file_handler, changes_in_pyfile)
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "ai_doc\runner.py", line 298, in update_existing_item
    future.result()
  File "Python\Python311\Lib\concurrent\futures\_base.py", line 456, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "Python\Python311\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception
  File "Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "ai_doc\runner.py", line 308, in update_object
    obj["md_content"] = response_message.content
                        ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'content'

Suspected Issue:
The response_message object is None, likely due to the previous errors where the model's maximum context length was exceeded. The code attempts to access the content attribute of a NoneType object, leading to the AttributeError.
Suggested Solution:

Investigate why the model's maximum context length is being exceeded and attempt to reduce the input size accordingly.
Implement a check to ensure response_message is not None before attempting to access its content attribute. This could prevent the AttributeError and provide a clearer indication of the underlying issue.

resolved， please try it on dev branch


Disabled Test_V_arg on Windows as it hangs in Appveyor

This PR disables test Test_V_arg which was recently
added in patch 8.1.0406.  This should hopefully avoid
Appveyor CI to hang in test_startup, with timeout
after 60 min.  I'm not sure why the test hangs but
I suppose that it's related to using system().
It would also be nice the reduce the Appveyor timeout
to 30 minutes or so, as tests on Windows typically
take 20 minutes. How can we do that?

It would also be nice the reduce the Appveyor timeout to 30 minutes

That is not easily configurable. There are some environment variables allowing to tweak certain timeouts, but not the overall build time. That seems to hard-coded to 60 minute. However we could request a decreased timeout at the appveyor/ci repository here

Dominique wrote:

This PR disables test Test_V_arg which was recently
added in patch 8.1.0406.  This should hopefully avoid
Appveyor CI to hang in test_startup, with timeout
after 60 min.  I'm not sure why the test hangs but
I suppose that it's related to using system().
It would also be nice the reduce the Appveyor timeout
to 30 minutes or so, as tests on Windows typically
take 20 minutes. How can we do that?

This must be hard without being able to run it locally.
The Arabic test fails because it prompts the user to switch to utf-8
encoding.
The verbose test fails because the output differs.  Mainly backslashes
vs slashes.
I'll give it a go.
--
From "know your smileys":
:-O>-o   Smiley American tourist (note big mouth and camera)
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Codecov Report

Merging #3448 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3448      +/-   ##
==========================================
+ Coverage   77.09%    77.1%   +<.01%
==========================================
  Files          99       99
  Lines      138944   138943       -1
==========================================
+ Hits       107122   107131       +9
+ Misses      31822    31812      -10

Impacted Files
Coverage Δ

src/if_xcmdsrv.c
83.81% <0%> (-0.72%)
:arrow_down:

src/term.c
60.48% <0%> (-0.06%)
:arrow_down:

src/channel.c
83.06% <0%> (-0.04%)
:arrow_down:

src/if_py_both.h
76.3% <0%> (-0.01%)
:arrow_down:

src/window.c
83.51% <0%> (+0.03%)
:arrow_up:

src/gui_gtk_x11.c
48.4% <0%> (+0.04%)
:arrow_up:

src/undo.c
83.18% <0%> (+0.06%)
:arrow_up:

src/ex_cmds.c
79.96% <0%> (+0.08%)
:arrow_up:

src/os_unix.c
57.87% <0%> (+0.13%)
:arrow_up:

src/gui.c
57.65% <0%> (+0.15%)
:arrow_up:

... and 2 more

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 a87f8fd...ddcb84b. Read the comment docs.

I confirmed Test_V_arg fails on linux gvim, so I think need check if !has('unix') || has('gui_running') as with other tests e.g. Test_silent_ex_mode.
--- a/src/testdir/test_startup.vim
+++ b/src/testdir/test_startup.vim
@@ -104,7 +104,7 @@ func Test_pack_in_rtp_when_plugins_run()
 endfunc

 func Test_help_arg()
-  if !has('unix') && has('gui')
+  if !has('unix') && has('gui_running')
     " this doesn't work with gvim on MS-Windows
     return
   endif
@@ -252,8 +252,13 @@ func Test_p_arg()
   call delete('Xtestout')
 endfunc

-" Test the -V[N] argument to set the 'version' option to [N]
+" Test the -V[N] argument to set the 'verbose' option to [N]
 func Test_V_arg()
+  if !has('unix') || has('gui_running')
+    " can't get output of Vim.
+    return
+  endif
+
   let out = system(GetVimCommand() . ' --clean -es -X -V0 -c "set verbose?" -cq')
   call assert_equal("  verbose=0\n", out)

@@ -266,6 +271,10 @@ endfunc

 " Test the -A, -F and -H arguments (Arabic, Farsi and Hebrew modes).
 func Test_A_F_H_arg()
+  if !has('unix')
+    return
+  endif
+
   let after = [
        \ 'call writefile([&rightleft, &arabic, &fkmap, &hkmap], "Xtestout")',
        \ 'qall',

@ichizok wrote:

I confirmed Test_V_arg fails on linux gvim

How do you reproduce that?  I tried the following with the gtk2 GUI,
but it succeeds:
$ cd vim/src/testdir
$ make gui
...

I had to disable at least Test_A_F_H_arg() on Windows.
I also disabled Test_V_arg() on Windows although I'm not 100% sure this one needed to be disabled.

CI is now green at least in branch "disable-Test_V_arg-for-windows".

@dpelle
My test/gui branch: https://github.com/vim/vim/compare/master...ichizok:test/gui.diff
CI result: https://travis-ci.org/ichizok/vim/jobs/430443392
From test_startup.vim:
Found errors in Test_V_arg():
function RunTheTest[40]..Test_V_arg line 2: Expected '  verbose=0\n' but got 'Xlib:  extension "RANDR" missing on display ":99.0".\n  verbose=0\n'
function RunTheTest[40]..Test_V_arg line 5: Pattern '^sourcing "$VIMRUNTIME/defaults.vim"\r\nSearching for "filetype.vim".*\n  verbose=2\n$' does not match 'Xlib:  extension "RANDR" missing on display ":99.0".\n\n \r\n  verbose=2\n'
function RunTheTest[40]..Test_V_arg line 8: Pattern '+*\nsourcing "$VIMRUNTIME/defaults.vim"\r\nline 1: " The default vimrc file..*\n  verbose=15\n+*' does not match 'Xlib:  extension "RANDR" missing on display ":99.0".\n\n \r\nline 0: set verbose?\r\n\r\n  verbose=15\n\r\nline 0: q\r\n'


[labs/ssr] Add global render and ElementRenderer plugin API

Adds a render-global entrypoint which installs the DOM shim onto the nodejs global and exports render ready to use.  The test setup code was refactored a bit to run all integration tests both in vm/sandboxed mode and global mode.
This PR also adds an ElementRenderer plugin API:

registerRenderer(matcher: (typeof HTMLElement) => boolean, rendererClass).

LitElementRenderer is still installed by default with a suitable matcher (PR also adds a branding field to LitElement for this purpose), but this allows other renderers to be installed as well. One pattern I'm experimenting with would be renderers providing a static register() method that installs a known-good matcher for the renderer, so an end-user would use it all together like this:
import {render} from<EMAIL_ADDRESS>import {someTemplate} from 'some-template.js';
// Example custom element renderer using plugin system
import {KaonRenderer} from 'kaon-renderer';
KaonRenderer.register();
...
context.body = Readable.from(render(someTemplate(data)));

@kevinpschaaf can you rebase or merge main?


Trying to replace openssl x509 -hash -noout with go

I am looking to replace openssl x509 -hash -noout with go code.
Is that possible with this package ?
If yes, is there an example in the docs ? I failed to find anything.
I am aware of #112. It looks to be related, but not the same (It talks about the -subject_hash_old instead of -hash).
Further, do I understand correctly that this package requires a regular openssl.so in the environment it will then make uses of ?

Hm. Could adding
func (c *Certificate) GetSubjectNameHash() (uint32, error) {
	hash := C.X509_subject_name_hash(c.x)
	return uint32(hash), nil
}

to cert.go be enough ? (I am unsure about endianess things)
Could then do
	pemBytes, err := ioutil.ReadFile(os.Args[1])
	if err != nil {
		return fmt.Errorf("unable to open certificate: %v", err)
	}

	block, _ := pem.Decode(pemBytes)
	if block == nil {
		return errors.New("failed to decode PEM")
	}

	cert, err := x509.ParseCertificate(block.Bytes)
	if err != nil {
		return fmt.Errorf("failed to parse certificate from PEM: %v", err)
	}

        hash, _ := cert.GetSubjectNameHash()
        asString := fmt.Sprintf("%08x\n", hash)
        ...


Public repository tag list returns unauthorized?

Why, when I try to list the tags on a library image, do I get an unauthorized response?
https://registry.hub.docker.com/v2/library/mongo/tags/list
{
   "errors":[
      {
         "code":"UNAUTHORIZED",
         "message":"authentication required",
         "detail":[
            {
               "Type":"repository",
               "Name":"library/mongo",
               "Action":"pull"
            }
         ]
      }
   ]
}

hi @paralin .  This is a hub issue.  The best place to find an answer is here: https://hub.docker.com/help/

@paralin the registry you are talking to requires a token, look at the authenticate header.
HTTP/1.1 401 Unauthorized
Content-Type: application/json; charset=utf-8
Docker-Distribution-Api-Version: registry/2.0
Www-Authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io",scope="repository:library/mongo:pull"
Date: Wed, 08 Jun 2016 18:07:52 GMT
Content-Length: 145
Strict-Transport-Security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Name":"library/mongo","Action":"pull"}]}]}

Tokens may be retrieved for anonymous users in this case but it is the authentication server which decides that, the registry just expects a token.

@dmcgowan I have the same issue.
I configured docker_auth as authentication server, allowed anonymous users to pull and access the catalog.
When I try to access the catalog through browser and curl I'm getting a 401.
When I check the registry logs and docker_auth ones, it seems the registry never check the authentication server when curling nor browsing.
Is it normal? I was expecting it checks the authentication server even when accessing the registry through curl or a browser.


Add key? method to CouchRest::Document

CouchRest::Document mimics the behavior of a Hash, but is lacking the key? method. It provides the has_key? instead, which is deprecated (and replaced automatically by tools like rubocop).
This commit renames has_key? to key? and creates a new has_key? which
delegates to key?.

FTW, thanks!

Very great fix, thanks @amuino!


Add Annotations

Changes

Canvas implementation now uses a bridge between SwiftUI and UIKit. This is for compatibility with PencilKit's PKCanvasView which is required for annotations.
Pan gestures now use two fingers (instead of one finger).
Background colour is not set. Previously we used white background. This is so that the  CanvasElementMapView will not be covered by the white background color.

Notes

Annotation is not a CanvasElementProtocol as we initially discussed during our previous meeting. Instead it one giant AnnotationCanvas which stores the PKDrawing - a representation of all the annotations.
The middle point of the canvas is currently at (x: 250000, y: 250000) instead of (0, 0). This allows the user to pan in all directions before hitting the end of the "infinite" canvas.
To test this with the previously added CanvasImageElement feature in #9 , the position of the CanvasElement must be at (250000,250000) in order for it to be seen at the start without needing to pan.

Design decisions:

Changed the entire CanvasView to integrate it with PKCanvasView instead of overlaying an AnnotationView on the CanvasView. This is because the previous zoom implementation will result in the overlayed AnnotationView to be scaled as well, which prevents the user from annotating freely, anywhere on the canvas.

Note that the screenshot was taken prior to merging #10 into my branch, but have tested after merging and it works!

Also, if I zoom out to the maximum, the red test squares will disappear then reappear momentarily after.

Yep this is a known issue, ps didn't mention it in the initial comments. Still trying to find a fix for this! If it isn't too big an issue we can merge this in first to not block the other implementations while I find a fix?

Also, if I zoom out to the maximum, the red test squares will disappear then reappear momentarily after.

Yep this is a known issue, ps didn't mention it in the initial comments. Still trying to find a fix for this! If it isn't too big an issue we can merge this in first to not block the other implementations while I find a fix?

Yep, ok!


Created Teams PowerShell > Supported Versions

Created new page to announce updates related to Teams PowerShell Module version support. This page is to be available at  https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-supported-versions
Navigation to be setup similar to https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-overview

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@pbafna03
Hi, Prashant,
This pull request was opened in the public repo. PMs and content developers should work in the private repo, as described in the authoring guide.
Closing this PR. Please submit your new article in the private repo.
Thanks!


[Feature-Request] Quick browser open

Provide a description of the new feature / enhancement
There is a URI Handler plug-in in PT Run.
You can quickly access URLs/UNC with the direct activation syntax (// by default).
(Let's take "//" as an example)
When you run "//sentence", your default browser will be launched with the address "https://sentence".
In other words, in order to run the default browser, you do not need to search for the browser name in PT Run.
Therefore, I  request the ability to run the default browser  when typing only the direct activation statement ("//") in RT Run.
To launch the default browser,
Rather than typing "firefox" directly or moving directly by Specific URL, it is more efficient to type "//", open the default browser, and use the URI and Search engine with the support of the default browser.
like this.

@mykhailopylyp
Can we trigger plugins to show a result without any search query and only if the plugin is triggered with action phrase?

@htcfreek

Can we trigger plugins to show a result without any search query and only if the plugin is triggered with action phrase?

No

Can we inform plugins if they triggered as global result or by action phrase?

No
Anyway, take a look at the Registry plugin. It looks like current implementation allows us to implement it. URI plugin needs to return the default browser result on the empty query.

okay

Thank you for reply and  check.
If there is a need to implement the feature, I would like to implement it myself.
If the feature is worthwhile, is it okay to implement it?

@Lee-WonJun
Feel free to implement it and send a PR.
@crutkas, @enricogior, @mykhailopylyp: Any reason why @Lee-WonJun should not implement it and not send a PR?

@htcfreek @Lee-WonJun
before opening a PR we need a full specification for the feature.

I think it is a neat idea.  But it shouldn't be triggered IMO unless a direct activation is used.

I think it is a neat idea.  But it shouldn't be triggered IMO unless a direct activation is used.

Agree.

@Lee-WonJun
Can you plz reopen the issue. We close it on release of the target version.

Resolved with the release of v0.41.


VDI: Allow vdi service url to be configured by deployment environment

This PR adds infrastructure to allow the VDI service url to be configured via the deployment environment (local .env file, or conifer for managed web servers).

Despite the CI check failing, the website code still builds. I will try to figure out how to fix the failure, soon.


A better way to validate manifest objects

Hi Giacomo, if I want to validate a manifest before it gets written to a file, I need to do
jsonschema.validate(instance=json.loads(manifest.json_dumps()), schema=json.load(schema))

to turn a Manifest object into JSON object. manifest.json_dumps() will give me a string that doesn't work with the validator. Maybe it would be useful to have a to_json method to make this cleaner?
def to_json(self):
  return json.loads(self.json_dumps())

jsonschema.validate(instance=manifest.to_json(), schema=json.load(schema))

Hi Martim, that would be great!
Would you like to do a pull-request? You could add the function you wrote after this line:
https://github.com/giacomomarchioro/pyIIIFpres/blob/fc1fd56d68aa8349b37fc5a1725849db14dc3c06/IIIFpres/iiifpapi3.py#L361
Otherwise I can do it.
Thanks for your feedback!

Sure, I can do it. I'll include json_dumps arguments in to_json so the user can fine tune the object creation, does that sound good? Also, is there need for a to_orjson method as well? (I'm curious about the performance improvement using orjson for IIIF manifests, have you benchmarked this?)

Hi Martim, thanks for your contribution.
Yes orjson is much faster so a similar method could be helpful, I don't know how many people generate manifest on the fly
https://github.com/giacomomarchioro/pyIIIFpres/wiki/Improve-performance-of-writing-and-serving-JSON-IIIF-objects
here is the article that treats the performance improvements tricks, feel free to add a pull request with your testing result that you can run after cloning the repository as explained in the article.


Adding new Package Alarm resource

Added the new resource for creating a package alarm in massdriver when we create an alarm in a bundle.
Overhauled the dev setup.
Updated the readme.

Still need to review. AFK at the moment. I did notice the files are named alarm_channel but these are package alarms


Extract text from Html

Hi there @j-mendez initially thanks a lot for this spider awesome crate
i am using you example scrape.rs to scrape website and along with sublinks of that domain present in it
but it gives me raw html
i want to extract text from raw html provided via scrape any idea or advice is accepted

Hi @MihirModi1421 take a look at this example here to extract content as text https://github.com/seoderapp/seoder/blob/main/seoder_lib/src/packages/spider/fs.rs#L171C6-L171C6.


Empty project.prisma generates an error

$ yarn add prisma2
$ touch project.prisma
$ yarn prisma2 generate
Error: undefined

Update getting this even with a project.prisma file filled out. Investigating.

Seems to be fixed now, not sure what happened.


Content type link is broken

Page: https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/ydy4x04a(v=vs.100)
See description of Content-Type field.
It has a link to MSDN which leads to nowhere
http://go.microsoft.com/fwlink/?linkid=37118

@alexxn This page is no longer to update due to out of product lifecycle. Please go to the newer version.


[IDEA] Support for Nemo's More Ladder Variants (MStV+)

I would love to see 3D Ladders with the Nemo's More Ladder Variants (MStV+) mod!

Added in version 1.3


Compatibility for Factorio-Tiberium mod

https://mods.factorio.com/mod/Factorio-Tiberium
https://github.com/James-Fire/Factorio-Tiberium
As I mentioned in the mod page, P.U.M.P. can unfortunately not be used for automated placement of tiberium spikes because the resource they can be placed on is not a liquid before placement.
tiberium-pump-compatibility.zip

Thanks for the save.
Early look suggest P.U.M.P. should be able to pick up on it:

It definitly has found a liquid resource form the tiberium mod, and figured out it needs to put a tiberium spike on it when selected.
So it seems to be a selection issue, and not a resource type issue. I'll look a little deeper and get back to you later.

Right, .. you weren't kidding. They replace the actual resource upon placement of the Spike.
I was actually assuming/expecting some resource mapping was missing somewhere. But it all looks good.
Specifically, the problem is the surface has a tibGrowthNode, which has the advanced-solid-tiberium resource.
The spike, which can do both advanced-solid-tiberium and advanced-liquid-tiberium,  ..  the solid not-reallym though.
But, the placement of the spike, replaces the tibGrowthNode with a tibGrowthNode_Infinite, which has the advanced-liquid-tiberium as result, which the spike can properly do.
Therefor, P.U.M.P. properly picks up on the liquid bit, but that's completely useless, since the surface only has solids.
I don't really see a way out of that, unfortunately. I was thinking to maybe check each miner that can do a liquid resource, to also scan for its solid resources. But I fear that might cause yet other issues with other mods. Unfortunately it's the resource that dictates the mining result, and not the miner. So another mod could have a miner that can do both liquids and solids, and has outputs for both as well. With the change, P.U.M.P. would draw wrong conclusions on that.
I'm also not a fan of adding mod-specific exceptions to P.U.M.P. I've successfully avoided it so far and would prefer to keep it that way. Perhaps the folk of the tiberium mod can properly add the fluid resource on the surface, instead? Or add both resources on the surface on the same spot, and remove the one, or the other, depending which miner is placed?

I'll talk to them and see if there's a way around it. However, I found a possible workaround in the meantime, which unfortunately crashes. With normal pumpjacks, after I have placed them, I can use P.U.M.P. afterwards to just link them. This should work with the tiberium spikes as well, however, it will crash for some reason.
Error while running event pump::on_player_selected_area (ID 51)
__pump__/toolbox.lua:290: attempt to index field '?' (a nil value)
stack traceback:
	__pump__/toolbox.lua:290: in function 'add_available_extractors'
	__pump__/toolbox.lua:335: in function 'add_toolbox'
	__pump__/control.lua:60: in function 'process_selected_area_with_this_mod'
	__pump__/control.lua:8: in function <__pump__/control.lua:6>

Is that an unforeseen circumstance in your mod, or is that due to an implementation error on the tiberium spike?

It seems to have issues when accessing the property fluidbox_prototypes on the tiberium spike. I wanted to see what the issue could be, but I found no documentation on this property anywhere in the base game files. Can you shed more light on it?

"With normal pumpjacks, after I have placed them, I can use P.U.M.P. afterwards to just link them. "
You can? I didn't know that. Did you make that yourself, or does it come out of the box? It's not something I intentionally added for sure. I would expect the linking to fail because P.U.M.P. doesn't get to chose the rotation of the pump.
"It seems to have issues when accessing the property fluidbox_prototypes on the tiberium spike."
A lot of data is lacking. Much of the API I found is merely the "these things exists" and "this is how they interact". But what's actually there is a mystery, at least in the API docs.
I recommend checking out this repository. It's the prototype definitions of the core game and is very insightful:
https://github.com/wube/factorio-data
It's not giving the exact answers as well. But you'll find that a pumpjack has 1 output fluidbox

A fluidbox is basically "something that hold fluids". And you specify how the pipes can access it with the "pipe_connections" property.
You'd be tempted to think P.U.M.P. should read output_fluid_box instead of fluidbox_prototype. But there's a difference between the prototype (like the repo), and how they end up in the game entities after all prototypes are loaded.
I'm pretty sure the spike does have one. See, when I was doing my own checks, I did add a temporary hardcoded exception in P.U.M.P. to allow spikes to be placed on the tibGrowthNode. There was one other fix I had to do, but then PUMP worked on tiberium as you requested. It, unfortunately, is not a sustainable solution as explained earlier. But it does prove the fluidbox_prototype exists on the Spike. So if you encounter an issue that it suddenly doesn't you might want to check the stage where you try to access it. There's several loading stages of a mod, and not all stages have access to the same kind of info.
Perhaps you can shed some more light on type of changes you've made so far?

In terms of what I can do from P.U.M.P. while still ignoring other mods exist ...
As I posted, I had to change 2 things.

Change the selection-tool to accept selection of tibGrowthNode
Further restrict which miners can be used, by checking if the available miners support fluids at all.

I don't really mind adding the 2nd thing. It's a restriction I don't really need in a regular scenario, but it doesn't hurt in terms of knowing which specific other mods are out there.
The 1st thing I have issue with, because I need to make an exception just for the tiberium mod. But ... I think mods can make alterations to other mods. I think you might be able to make a mod, that alters the selection-tool of PUMP, to also add  tibGrowthNode to the selection filter.

I think a mod that executes these 2 lines in the data-final-fixes should do the trick:
table.insert(data.raw["selection-tool"]["pump-selection-tool"].entity_filters, "tibGrowthNode");
table.insert(data.raw["selection-tool"]["pump-selection-tool"].alt_entity_filters, "tibGrowthNode");

You could even ask the folk of the Tiberium mod to add these. They seem to have mod specific exceptions in place already.

I just uploaded version 1.1.4. of P.U.M.P. with the above change in it. I realized it was a good change to add. Because P.U.M.P. shouldn't attempt to work with the miner's inputs anyway. So I was able to make it a little more secure in case yet another ever works with an input AND output pipe. And at the same time, the 2 lines of code for final fixes should now be enough to get it to work with tiberium, too.
I hope this helps. I'm curious to hear if you end up making your own small mod, or if it get's embedded into Tiberium. Keep me posted :-)

"I would expect the linking to fail because P.U.M.P. doesn't get to chose the rotation of the pump." - Turns out, what it actually did was deconstruct the existing extractor and place a ghost for a new one on top of it, with the proper orientation. No change was necessary to enable that, but it still provokes that crash. As spikes were placed on the nodes, the nodes had fluid resources. P.U.M.P. realized that and also seemed to grasp that there was already an extractor on it. Then it tried to connect those extractors, and crashed with the aforementioned stack trace.
Trying to trace it back, I just added some temporary variables, so instead of
  local cardinal_output_positions =
    extractor.fluidbox_prototypes[1].pipe_connections[1].positions

I had
  local tmp1 = extractor.fluidbox_prototypes
  local tmp2 = tmp1[1]
  local tmp3 = tmp2.pipe_connections
  local tmp4 = tmp3[1]
  local cardinal_output_positions =
    tmp4.positions

With the crash now resulting in the assignment to tmp2, factorio claiming it couldn't access the properties of tmp2, as it was nil.
As a sidenote on this: I also followed your other suggestion and added both the fluid and the solid resources to the solid node, with the following reasoning:
If P.U.M.P. sees that there is a fluid resource, it will construct ghosts with the appropriate extractor, as it usually does. Once that extractor is placed, the solid node will be replaced with the usual fluid node, and the spike will work as it should.
However, it resulted in exactly the same stacktrace, which is why I thought it was the extractor's fault, as this works with oil pumps.
I just made some adjustments to their mod and tested your change, and it works perfectly. Thank you so much for that simple solution.
I will make a pull request in their repo and ask them to put it in for the next version.
I also have a small pull request for you that I'll open once I've tested those changes. It's related to another topic though.

Sounds like we came to an agreeable solution for this issue. I think we can close this one now. :-)


[Bug] All grpc thread hang due to the disk corruption

Code of Conduct

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

Search before asking

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

Describe the bug
In our production environment, there was a shuffle-server hang, that is blocked on the LocalFileDeleteHandler which held the app's write lock and then all grpc threads were blocked.
And the root cause is the disk broken.

Affects Version(s)
master
Uniffle Server Log Output
No response
Uniffle Engine Log Output
No response
Uniffle Server Configurations
No response
Uniffle Engine Configurations
No response
Additional context
No response
Are you willing to submit PR?

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

@zuston Can you please add a new PR to branch-0.9? I think it is a critical fix. But can not cherry-pick to branch-0.9.

app lock is introduced by #1593, not merged to branch-0.9, remove from 0.9.1 milestone.


[loss OVERFLOW] Several Issues

Describe the bug
Splitting of from https://github.com/microsoft/DeepSpeed/pull/1593
This Issue documents multiple issues wrt OVERFLOW event

ZeRO2 OVERFLOW goes from initial_scale_power set in config to the one where it gets resolved or can't be resolved in one step (compared to zero3 where it reduces the power one step at a time and reports each decrement) As you can see in https://github.com/microsoft/DeepSpeed/pull/1593#issue-789881585 I get the report of power 1 right away when initial_scale_power=16

OVERFLOW! Rank 0 Skipping step. Attempted loss scale: 1, reducing to 1

ZeRO3 OVERFLOW  has a one-off issue: Attempted loss scale: 65536, reducing to 65536 - i.e it's not scaling the first time around.

Both ZeRO2 and ZeRO3 should probably assert if:
a. loss is nan - related: https://github.com/microsoft/DeepSpeed/issues/931
b. Attempted loss scale: 1, reducing to 1 happens - clearly this is broken.
since it's impossible to recover from either. But Deepspeed optimizer skips the step and gets stuck in the above scaling

Here is another reported issue where a user reports this endless loop that can't resolve overflow and where I think Deepspeed ought to assert:
https://github.com/huggingface/transformers/issues/14834

This has been resolved in https://github.com/microsoft/DeepSpeed/pull/1958

yes, definitely #3 was resolved - not sure about the rest

yes, definitely item 3 was resolved - not sure about the rest

Gotcha. I think item 1 has been resolved since the loss overflow logic has been unified between Zero-1/2.
As for item 2 the reason such messages are printing is because of fp16 hysteresis . I agree it's confusing, so I just made a PR to clarify those messages in https://github.com/microsoft/DeepSpeed/pull/3008.
Now loss overflow logs look like:
...
OVERFLOW! Rank 0 Skipping step. Attempted loss scale: 65536, but hysteresis is 3. Reducing hysteresis to 2
OVERFLOW! Rank 0 Skipping step. Attempted loss scale: 65536, but hysteresis is 2. Reducing hysteresis to 1
OVERFLOW! Rank 0 Skipping step. Attempted loss scale: 65536, reducing to 32768
OVERFLOW! Rank 0 Skipping step. Attempted loss scale: 32768, reducing to 16384
...


WebGLTileLayer: updateStyleVariables is broken after using setStyle

Describe the bug
When using a WebGLTileLayers setStyle function, the updateStyleVariables does not seem to work anymore and the
To Reproduce
Steps to reproduce the behavior:

Go to https://geotiffjs.github.io/dem-app/
Use any slider, which should update the visualization (this is using updateStyleVariables underneath)
Set a different color ramp or visualization mode (this is using setStyle underneath)
Use the sliders again, and no changes in the visualization is to be observed

Expected behavior
Using updateStyleVariables should work after using setStyles

@constantinius Can you please share the source code you are using, or - even better - modify an existing example in a codesandbox so it shows the problem?

@ahocevar the relevant part is here: https://github.com/geotiffjs/dem-app/blob/7809568019318443dea101c9f80284477579b32f/src/components/Map.vue#L72-L89
Will try a codesandbox too.

@ahocevar This sandbox also shows the issue: https://codesandbox.io/s/strange-swartz-3pwcw?file=/main.js
The setStyle is invoked on line 74, thus the variable update does not work.
(Using NumpyTiles here as geotiff examples keep acting up in the sandbox)

Thanks @constantinius, I should have enough information now to investigate the issue.
Regarding geotiffs in codesandbox, we’re eagerly waiting for geotiff.js v2 to fix that 🙂


Sidebar open without animation once

I want to open & calculate the size of sidebar in one function, is there a function to open it without delay & animation once?

You would have to manually apply the css instead of using the classes.
// close
$('.sidebar').css('transform', 'translateX(-250px)');

// open
$('.sidebar').css('transform', 'translateX(250px)');

Thanks!

But it will make some problem? I don think manually do this will be good?


[Computing] How Big Data Is Helping Fight Sleep Disorders

Proposed title of article
How Big Data Is Helping Fight Sleep Disorders
Proposed article introduction
Sleep disorders have reached epidemic proportions worldwide, affecting the youth as well as the elderly, crossing the entire lifespan in both developed and developing countries. "Real-life" behavioral (sensor-based), molecular, digital, and epidemiological big data represent a source of an impressive wealth of information that can be exploited in order to advance the field of sleep research.
Big Data has many advantages because of its simplicity and cost reduction nature. Modern-day sleep data can be collected with much ease on a large scale using the benefits of Big Data. Today, since much technologically improvised, new technologically well-equipped tools are invented to collect data.
Key takeaways

Why big data?
Sleep and digital and computational big data
Sleep and imaging-based big data
Sleep and portable devices (wearable sensors)

Article quality
How is your article unique? Tell us what makes your approach different from similar articles that have published on the same topic?
Is yours more in-depth? Does it cover additional topics? Do you provide handy tips or anecdotal advice?
References
Please list links to any published content/research that you intend to use to support/guide this article.

Please fill in the Article Quality section so we can review your article.

The available articles related to the topic discuss sleep in relation to data collected from wearable sensors. This article digs deeper into this topic to discuss the use of computational big data and imaging-based big data in fighting sleep disorders. @louisefindlay23


Sails-CLI should look for an app.js in the local directory first.

What are you guy's thoughts on having sails lift look for a local app.js file in the project and running that instead of the default.  This could be useful.  I know that Bootstrap allows you to add code before sails is lifted, but there may be other things that you need to override or do during the boot process that bootstrap doesn't allow access to.

I like this idea. We've discussed this internally quite a bit, actually. Running node app.js and sails lift shouldn't run two different programs, IMO.

I can create a pull request on this if we get a few up-votes.  I'm actually working to implement this as i need the functionality.

:+1:  I like this idea

Has there been any progress on this? I'd like to help out since it seems like a fairly small thing to implement.


add doc for feature LoadBalancerIPMode

Doc for new feature LoadBalancerIPMode.
PR link: https://github.com/kubernetes/kubernetes/pull/119937
KEP issue: https://github.com/kubernetes/enhancements/issues/1860

/sig network

/approve


Noise Correlation Function

We have managed to compute the distribution of the mean field at a particular lattice site. However, we are also interested in the joint distribution of two neighboring lattice sites. In FaP, this happens to be two neighboring F atoms in the unit cell. Given disorder field h_i at point i and the disorder field h_j at point j, are these fields independent? Probably not, if they are nearby!
However, in the NMR system we actually want to ensure that <cos(h_i * t) cost(h_j *t)> = \delta_ij. How long do we need to wait for this to be (approximately) true?
Implement a function, or collection of functions, to solve this problem.

Update! Does the second part change significantly if we use sine instead of cosine? that is, does <sin(h_i * t) sin(h_j *t)> \longrightarrow \delta_ij as well?


Latest GRUB update breaks booting

This is a different bug compared to what is described in https://github.com/oracle/oracle-linux/issues/147
When the latest updates are applied and a server is then rebooted GRUB will not start and appears to be stuck in a busy loop displaying the following message.
"error: ../../grub-core/commands/efi/tpm.c:150:unknown TPM error"
Secure Boot is disabled and no previous problems.
Steps to reproduce:
Download and install OL 9.4 x86_64
OK for first boot.
Apply updates
Reboot and GRUB will then fail to load with the above error message.
As a cross check a fresh install was done and grub updates were excluded with
exclude=grub*
in the /etc/dnf/dnf.conf file.
The non-grub updates were installed and the server rebooted OK.

Hello!
Thanks for the report, in fact last update issued for linked issue has zero code changes, though it MIGHT have regenerated a grub config for you, maybe that is triggering the issue.
Are you seeing any other errors except for unknown TPM error ?
Are you using BTRFS filesystem or/and BTRFS snapshots ?

Nevermind, reproduced it, we are going to pull out this update and issue a proper one shortly.

Thank you.
For info the filesystem is XFS.
A minor change is the name of lvm group form "ol" to "olb" so as not to clash with the volume group name of the the previous installation on the original drive when I copy files across.  I wondered if this could be relevant due to the questions about the filesystem, but from your last reply probably not.
The installation is on a separate SATA drive and all other drives are disconnected.

@robertm98 once again thank you very much! I see that it is not related to filesystems, just broken grub config.

same issue here, is there any way to fix broken grub / grub.cfg from within UEFI interactive shell?

The only way I think this could be repaired is to do a recovery boot from the installation media.  chroot to /mnt/sysroot (I think) then possibly use dnf to do a roll back or edit the config.
@aburmash Would it be possible to get the details of the errors in the config and what needs to be done to make things good, please?  What needs editing and then running to apply the config changes.

@robertm98 @m45733r i will provide recovery instructions from UEFI shell shortly.

if you have already installed bad update, but did not reboot:
grub2-mkconfig > /boot/grub2/grub.cfg
OR
grub2-mkconfig > /boot/EFI/efi/redhat.grub.cfg
if you can only do stuff from UEFI shell.

identify which FS is your ESP partition
to do that, just check all displayed partitions one by one, ESP is usually FS0

      FS0: Alias(s):HD0a1b:;BLK1:
          PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x0,0x1)/HD(1,GPT,3AF7074E-C0BB-400D-8FC7-E9EC738AA53F,0x800,0x32000)
     BLK0: Alias(s):
          PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x0,0x1)
     BLK2: Alias(s):
          PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x0,0x1)/HD(2,GPT,14BE7023-6C02-4573-8891-9F639B9D936A,0x32800,0x400000)
     BLK3: Alias(s):
          PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x0,0x1)/HD(3,GPT,E700F071-90A5-40BB-8132-52AF688193B7,0x432800,0x5900800)****

fs0:
ls

if you see EFI dir, you are where you need to be
cd EFI/redhat
rm grub.cfg
grubx64.efi

you will be dropped to grub cmdline
ls
it will display list of disks available, there you need to find a disk that has /boot dir or identify /boot partition
run
ls <disk>/ to see which one is that
for example:
ls (hd0,gpt2)/
when you have found the /boot you will see something like
grub> ls (hd0,gpt2)/
./ ../ efi/ grub2/ loader/ vmlinuz-5.14.0-427.16.1.el9_4.x86_64
System.map-5.14.0-427.16.1.el9_4.x86_64 config-5.14.0-427.16.1.el9_4.x86_64
.vmlinuz-5.14.0-427.16.1.el9_4.x86_64.hmac
symvers-5.14.0-427.16.1.el9_4.x86_64.gz
initramfs-5.14.0-427.16.1.el9_4.x86_64.img
vmlinuz-5.15.0-206.153.7.el9uek.x86_64
System.map-5.15.0-206.153.7.el9uek.x86_64 config-5.15.0-206.153.7.el9uek.x86_64
.vmlinuz-5.15.0-206.153.7.el9uek.x86_64.hmac
symvers-5.15.0-206.153.7.el9uek.x86_64.gz
initramfs-5.15.0-206.153.7.el9uek.x86_64.img
initramfs-0-rescue-36703c3cdc50ff74e863e867384f6a8a.img
vmlinuz-0-rescue-36703c3cdc50ff74e863e867384f6a8a
initramfs-5.15.0-206.153.7.el9uek.x86_64kdump.img

Now you need to check boot info for you kernel
ls (hd0,gpt2)/loader/entries/
grub> ls (hd0,gpt2)/loader/entries/
./ ../ 8c622b7d13354f7fbe5eee50d3f340bd-5.14.0-427.16.1.el9_4.x86_64.conf
8c622b7d13354f7fbe5eee50d3f340bd-5.15.0-206.153.7.el9uek.x86_64.conf
36703c3cdc50ff74e863e867384f6a8a-0-rescue.conf

cat (hd0,gpt2)/loader/entries/8c622b7d13354f7fbe5eee50d3f340bd-5.15.0-206.153.7.el9uek.x86_64.conf You will see something like:
title Oracle Linux Server (5.15.0-206.153.7.el9uek.x86_64 with Unbreakable Ente
rprise Kernel) 9.4
version 5.15.0-206.153.7.el9uek.x86_64
linux /vmlinuz-5.15.0-206.153.7.el9uek.x86_64
initrd /initramfs-5.15.0-206.153.7.el9uek.x86_64.img $tuned_initrd
options root=/dev/mapper/ocivolume-root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M LANG=en_US.UTF-8 console=tty0 console=ttyS0,115200 rd.luks=0 rd.md=0 rd.dm=0 rd.lvm.vg=ocivolume rd.lvm.lv=ocivolume/root rd.net.timeout.dhcp=10 rd.net.timeout.carrier=5 netroot=iscsi:<IP_ADDRESS>:::1:iqn.2015-02.oracle.boot:uefi rd.iscsi.param=node.session.timeo.replacement_timeout=6000 net.ifnames=1 nvme_core.shutdown_timeout=10 ipmi_si.tryacpi=0 ipmi_si.trydmi=0 libiscsi.debug_libiscsi_eh=1 loglevel=4 crash_kexec_post_notifiers
grub_users $grub_users
grub_arg --unrestricted
grub_class ol

Now still in grub cmdline run:
linux (hd0,gpt2)/vmlinuz-5.15.0-206.153.7.el9uek.x86_64 root=/dev/mapper/ocivolume-root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M LANG=en_US.UTF-8 console=tty0 console=ttyS0,115200 rd.luks=0 rd.md=0 rd.dm=0 rd.lvm.vg=ocivolume rd.lvm.lv=ocivolume/root rd.net.timeout.dhcp=10 rd.net.timeout.carrier=5 netroot=iscsi:<IP_ADDRESS>:::1:iqn.2015-02.oracle.boot:uefi rd.iscsi.param=node.session.timeo.replacement_timeout=6000 net.ifnames=1 nvme_core.shutdown_timeout=10 ipmi_si.tryacpi=0 ipmi_si.trydmi=0 libiscsi.debug_libiscsi_eh=1 loglevel=4 crash_kexec_post_notifiers
initrd (hd0,gpt2)/initramfs-5.15.0-206.153.7.el9uek.x86_64.img
boot

where kernel = kernel form config
options for kernel = options from config
initrd = initrd from config
IMPORTANT: when doing copy/pastes VERIFY that
linux string is a single string, if you have newlines or returns in the buffer - they will NOT be applied.
So when you have full linux string copied - paste it to some file to verify that it is a single string.
do not forget that path is relative to your partition with /boot or /boot partition.
If your /boot is on /root partition, you will need to find the disk with root partition and your paths will be something like
(lvm/volume-root)/boot/
When system is booted run:
grub2-mkconfig > /boot/grub2/grub.cfg

@robertm98 the problem is that on OL9, config file for grub2 was switched to parent config in /boot/efi/EFI/redhat/grub.cfg that in order loads proper /boot/grub2/grub.cfg config.
For CERTAIN /boot/efi/EFI/redhat/grub.cfg config contents fix that was applied for leapp in-place upgrade instead of correctly updating configs ( or not touching them ), writes /boot/efi/EFI/redhat/grub.cfg into /boot/grub2/grub.cfg and system chainloops.

Thanks for the instructions, some remarks from my expierence:
Running grubx64.efi after grub.cfg was deleted did not automatically put me into grub cmdline but was stuck and I needed to power-cycle the machine.
ls (hd0,gpt1) only shows "Filesystems is fat" or "Filesystem is xfs", not actual contents.
However ls (hd0,gpt2)/loader/entries would only succeed on the right disk and list its contents, and show not found on all others.
boot was successful, but after login + grub2-mkconfig + reboot it would return to grub cmdline again :/
Reading your latest comment I tried mkconfig to /boot/efi/EFI/redhat/grub.cfg and it seems to work now!

ls (hd0,gpt1)
yeah, you need slash in the end to display content:
ls (hd0,gpt1)/

boot was successful, but after login + grub2-mkconfig + reboot it would return to grub cmdline again :/

OH! yes, that is because  /boot/efi/EFI/redhat/grub.cfg was removed from UEFI shell during recovery.
I've updated my post to reflect that.

Thank you.

Im not sure if that is related to the original issue but the only thing that is a bit weird now is that grubby shows:
[root@ol9-machine ~]# grubby --default-kernel
/boot/vmlinuz-5.15.0-207.156.6.el9uek.x86_64
[root@ol9-machine ~]# grubby --default-index
3
[root@ol9-machine ~]# grubby --info DEFAULT
index=3
kernel="/boot/vmlinuz-5.15.0-207.156.6.el9uek.x86_64"
args="ro rd.lvm.lv=ol/root rhgb quiet crashkernel=1G-64G:448M,64G-:512M $tuned_params"
root="/dev/mapper/ol-root"
initrd="/boot/initramfs-5.15.0-207.156.6.el9uek.x86_64.img $tuned_initrd"
title="Oracle Linux Server (5.15.0-207.156.6.el9uek.x86_64 with Unbreakable Enterprise Kernel) 9.4"
id="bda9a182a36740ada28baaa218d5c09d-5.15.0-207.156.6.el9uek.x86_64"

And yet, when I reboot it would automatically select index 0 with a kernel that is no longer present in /boot.
So the system is usable but wouldnt survive an automated reboot. See screenshot attached.
[root@ol9-machine ~]# uname -r
5.15.0-207.156.6.el9uek.x86_64
[root@ol9-machine ~]# dnf list installed | grep kernel
kernel.x86_64                         5.14.0-427.22.1.el9_4               @ol9_baseos_latest
kernel-core.x86_64                    5.14.0-427.22.1.el9_4               @ol9_baseos_latest
kernel-modules.x86_64                 5.14.0-427.22.1.el9_4               @ol9_baseos_latest
kernel-modules-core.x86_64            5.14.0-427.22.1.el9_4               @ol9_baseos_latest
kernel-tools.x86_64                   5.14.0-427.22.1.el9_4               @ol9_baseos_latest
kernel-tools-libs.x86_64              5.14.0-427.22.1.el9_4               @ol9_baseos_latest
kernel-uek.x86_64                     5.15.0-207.156.6.el9uek             @ol9_UEKR7
kernel-uek-core.x86_64                5.15.0-207.156.6.el9uek             @ol9_UEKR7
kernel-uek-modules.x86_64             5.15.0-207.156.6.el9uek             @ol9_UEKR7

Any help appreciated.

can you show please
for x in $(find /boot |grep grubenv); do echo $x; cat $x; done
cat /boot/efi/EFI/redhat/grub.cfg |grep grubenv
cat /boot/grub2/grub.cfg |grep grubenv

Sure, here you go:
/boot/grub2/grubenv
# GRUB Environment Block
# WARNING: Do not edit this file by tools other than grub-editenv!!!
saved_entry=bda9a182a36740ada28baaa218d5c09d-5.15.0-207.156.6.el9uek.x86_64
boot_success=1
boot_indeterminate=0
##################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################

/boot/efi/EFI/redhat/grub.cfg
if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
# The kernelopts variable should be defined in the grubenv file. But to ensure that menu
# without a grubenv file, define a fallback kernelopts variable if this has not been set.
# The kernelopts variable in the grubenv file can be modified using the grubby tool or by
# the kernelopts variable in the grubenv file and the fallback kernelopts variable.

/boot/grub2/grub.cfg
if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
# The kernelopts variable should be defined in the grubenv file. But to ensure that menu
# without a grubenv file, define a fallback kernelopts variable if this has not been set.
# The kernelopts variable in the grubenv file can be modified using the grubby tool or by
# the kernelopts variable in the grubenv file and the fallback kernelopts variable.

OK, everything above looks correct.
Now
ls /boot/loader/entries/
It seems you have some redundant entries there.

[root@ol9-machine grub2]# ls -al /boot/loader/entries/
total 28
drwx------. 2 root root 4096 Jun 25 13:34 .
drwxr-xr-x. 3 root root   21 Oct 17  2022 ..
-rw-r--r--. 1 root root  440 May 22 13:59 495620e0609f491080cb4e769e86283d-0-rescue.conf
-rw-r--r--. 1 root root  381 May 22 13:59 495620e0609f491080cb4e769e86283d-5.14.0-284.30.1.el9_2.x86_64.conf
-rw-r--r--. 1 root root  428 May 22 13:59 495620e0609f491080cb4e769e86283d-5.15.0-200.131.27.el9uek.x86_64.conf
-rw-r--r--. 1 root root  405 May 22 13:59 bda9a182a36740ada28baaa218d5c09d-0-rescue.conf
-rw-r--r--. 1 root root  381 Jun 25 10:18 bda9a182a36740ada28baaa218d5c09d-5.14.0-427.22.1.el9_4.x86_64.conf
-rw-r--r--. 1 root root  424 Jun 25 10:19 bda9a182a36740ada28baaa218d5c09d-5.15.0-207.156.6.el9uek.x86_64.conf

oh, heres the problem - sorry for bothering you - but thanks for pointing me in the right direction. looks like (some script or person) regenerated the machine-id a few weeks ago...

For everyone tracking this issue:
grub2 updates that does NOT contain scriptlet bug and, at the same time, resolves the issue for people who had installed broken package, but did not reboot, was published to public repositories:
version is 2.06-80.0.3.el9_4


Support native viewing of videos created with this library (without large file sizes)

Currently with this library neither quicktime or windows media player are able to open most of the encodings supported by this library.
You can open with VLC but ideally the default media players should work.
See more details at https://github.com/jenkinsci/acceptance-test-harness/issues/1041#issuecomment-2277208930

With the current version of the montemedia library you can create videos in the following formats, that will open natively:
Windows: AVI with JPEG encoding.
macOS: QuickTime with JPEG encoding.
I know that these settings produce impractically huge files.
I am planning to do a proof-of-concept with the Foreign Function & Memory API that was released in JDK 21.
Maybe it is possible to encode videos using the native Windows and macOS APIs.

Yes, this is a problem in my projects too.
I am planning to use the MP4 H.264 codec from the JCodec library in a future version of this library.

I made some progress. I have integrated some code from JCodec into the main branch.
It turns out, that the JCodec H264Encoder is too slow for encoding a screen recording in realtime.
I am now investigating possible solutions.
For example,

The screen recorder could write a temporary movie file with a lossless low-complexity codec (for examle RLE). After recording is completed, it could convert it to H.264.
We could device a low-complexity H.264 encoder. And use that one instead JCodec's H264Encoder.


AnimationWorklet article

What's changed, or what was fixed?

New article on Houdini’s AnimationWorklet

Target Live Date: ASAP

[x] This has been reviewed and approved by (@jakearchibald)
[x] I have run npm test locally and all tests pass.
[x] I have added the appropriate type-something label.
[x] I've staged the site and manually verified that my content displays correctly.

CC: @petele @jpmedley @majido @flackr
@petele PTAL, specifically at videos and the code-in-tables situation :)

Whoops!
There were 2 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/10/animation-worklet.md#L493 - Consider adding a "was this page helpful?" widget to your page: https://developers.google.com/web/resources/widgets#helpful
src/content/en/updates/2018/10/animation-worklet.md#L221 - Common typo found: 'implicity' Should it be 'implicitly'?

Whoops!
There were 2 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/10/animation-worklet.md#L497 - Consider adding a "was this page helpful?" widget to your page: https://developers.google.com/web/resources/widgets#helpful
src/content/en/updates/2018/10/animation-worklet.md#L221 - Common typo found: 'implicity' Should it be 'implicitly'?

Joe, I 100% appreciate you taking the time to give this monster an in-depth review. Thank you very much.
Waiting for a LGTM from @petele and then this is probably good to go :)

Whoops!
There were 2 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/10/animation-worklet.md#L497 - Consider adding a "was this page helpful?" widget to your page: https://developers.google.com/web/resources/widgets#helpful
src/content/en/updates/2018/10/animation-worklet.md#L221 - Common typo found: 'implicity' Should it be 'implicitly'?

Whoops!
There were 4 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/10/animation-worklet.md#L499 - Consider adding a "was this page helpful?" widget to your page: https://developers.google.com/web/resources/widgets#helpful
src/content/en/updates/2018/10/animation-worklet.md#L10 - Common typo found: 'and and' Should it be 'and'?
src/content/en/updates/2018/10/animation-worklet.md#L223 - Common typo found: 'implicity' Should it be 'implicitly'?
src/content/en/updates/2018/10/animation-worklet.md#L12 - Line must be at most 100 characters

Whoops!
There were 2 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/10/animation-worklet.md#L497 - Consider adding a "was this page helpful?" widget to your page: https://developers.google.com/web/resources/widgets#helpful
src/content/en/updates/2018/10/animation-worklet.md#L221 - Common typo found: 'implicity' Should it be 'implicitly'?

:tada: This has been pushed live to https://developers.google.com/web/


Enable gzip for broker web service

Enable gzip compression on broker WebService, this would mostly benefit stats requests as they are very heavy and JSON is really compressible.

We had this long time back. Eventually we turned off compression because compressing stats was generating a log GC pressures.
I'd be ok to put this with a config switch to disable it.

Can we keep the default to off?

@merlimat have you ever considered moving the WebService to a netty backed http server implementation?
It of course wouldn't be as nice or magical as the current one, but would surely be more performant, and would reduce gc.

@sschepens Yes, I actually thought of that long time back :). Main problem is that we have a big number of REST handlers already in place and most of them are not really perf sensitive or called that much frequent. So it would be a huge effort to port them all.

This PR is evidently stale or abandoned. Reopen if this is not so.


Update checkov configuration

The --skip-fixes flag has been deprecated in v3.x.

@ramessesii2 Since you created the configuration, please validate that there is no impact to removing the flag,

I don't think removing the flag will affect our current configuration since --skip-fixes only had effect when using the Bridgecrew API key.


Create a detailed show for PowerSystemDevice

I created a generic long version print for power system devices. There are quite a few, and so this will help until custom print functions are created for each device (as desired). All it does is print the fieldnames and their values, but because the fieldnames are mostly descriptive already, it seems useful.

@jd-lara, please see my new (amended) commit.
Since the members of TechnicalParams do not have a "name" field, the "short" print for those just show the type right now. I suggest we merge this and then I can work on customized print functions for various types.


Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:54:11)
new PreviewView (/Users/andrew/.atom/packages/preview/lib/preview-view.coffee:74:9)

Noticed this was duplicate.


Anyone can help me with the build check after an PR?

I have make an PR #3811  but fails in checks. It's very  stange to me , Could anyone help me with this?  I check the all log of the build check, it seem to be noting with my commits.
the build logs:
http://<IP_ADDRESS>:8080/job/mxnet/412/consoleText
https://travis-ci.org/dmlc/mxnet/builds/176068718

Fetch upstream again and rebase should fix it. Some links have been fixed which caused the
check to fail.

@zhreshold  Thanks, I will try

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!